1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/photoswipe-BsE0HlsX.js","assets/photoswipe-6dfNhZnN.css","assets/lottie-B3dX7yFr.js","assets/_commonjsHelpers-Bx2EM-6T.js","assets/AppDownloadModal-BIK_2VeA.js","assets/AppDownloadModal-Bc76582c.css","assets/index-CK0aNGsS.js","assets/Appearance-Dq0pHQBI.js","assets/Appearance-KemmheZk.css","assets/Login-5JiGQEla.js","assets/AuthPageLayout.vue_vue_type_style_index_0_lang-DU2GzriK.js","assets/AuthPageLayout-DuulN2Uf.css","assets/EmailLogin-BpfiV3h3.js","assets/AuthForm.vue_vue_type_style_index_0_lang-C3S96WBm.js","assets/useAsync-DzG2_05v.js","assets/AuthForm-BU3D5R9P.css","assets/Signup-C-u9_N-8.js","assets/EmailSignup-BH5z8fq2.js","assets/EmailConfirm-CYidwLsS.js","assets/EmailConfirm-D6Q32LTW.css","assets/PasswordRecover-BBT3HCGN.js","assets/PasswordChange-D7I6DKW2.js","assets/Frozen-D7ip7XCq.js","assets/Frozen-mkra84F2.css","assets/Cancel-PAuYN_xF.js","assets/Cancel-Bgj6yU76.css","assets/Landing-Br5rMCij.js","assets/PromotableFeature-CdaFD6iJ.js","assets/Landing-LmTT9VbH.css","assets/Promocode-BwS1f7zx.js","assets/Promocode-DFVSW0PC.css","assets/Settings-DaXnd9VD.js","assets/SettingsWrapper.vue_vue_type_style_index_0_lang-DyIBQ-1a.js","assets/SettingsWrapper-dWiBET7r.css","assets/Settings-COYU64Az.css","assets/BlogSettings-BjvBkWQd.js","assets/useCommentingPermissions-BNMMHVn5.js","assets/BlogSettings-BaGyDNI6.css","assets/FeedsSettings-DvSScSeB.js","assets/FeedsSettings-D69YxH54.css","assets/GeneralSettings-BDaIr2P3.js","assets/GeneralSettings-D2oLElQi.css","assets/NotificationsSettings-BwY4oi6l.js","assets/NotificationsSettings-C46eHHtX.css","assets/Donations-CK6zG2FU.js","assets/Layout.vue_vue_type_style_index_0_lang-D03iGsIY.js","assets/Layout-DPSsx4bE.css","assets/Donations-P47vzZRc.css","assets/Registration-DdjM8Kfo.js","assets/Registration-C-J1EAZw.css","assets/Collectibles-uye5rAz6.js","assets/Collectibles-BsqWCyO1.css","assets/Landing-DezMa25t.js","assets/Landing-C75RGmdW.css","assets/GiftsLanding-7E-pYpgR.js","assets/GiftsLanding-DAD-uFlP.css","assets/GiftPurchase-DTle5D0I.js","assets/Scene.vue_vue_type_style_index_0_lang-Tum42h-Z.js","assets/Scene-XFKQtLiL.css","assets/useGiftPurchase-Q6TK4QMo.js","assets/GiftPurchase-D5_hJ-mm.css","assets/Gift-CocUeEmf.js","assets/useDebouncedUiToggle-C0spW3qr.js","assets/Gift-CjxsAGxB.css","assets/Achievement-CkFUj4WS.js","assets/Achievement-BE0ij1ip.css","assets/Achievement-CXHhd8iY.js","assets/Achievement-BICg2faK.css","assets/index-XXxJKW7u.js","assets/index-Bdsenh-A.js","assets/index23-BuXygzda.js","assets/schema-org.F44ipjVJ-BDYVkETE.js","assets/index3-DMVoTICJ.js","assets/index16-CPkCaJSg.js","assets/index28-D2B98dBU.js","assets/index40-DLQkwbBi.js","assets/index39-DX2aW2hZ.js","assets/index5-ClhSFosZ.js","assets/index6-BRgIZ37N.js","assets/index7-B0L0q73x.js","assets/index10-CSJ0vmnw.js","assets/index8-3sSyKaGq.js","assets/index9-DhfZlXFu.js","assets/index11-OhI6njjr.js","assets/index17-A5il1dRe.js","assets/index24-BRbdM7Ip.js","assets/schema-org.Ba7D0Hp1-B4sc1s8a.js","assets/index13-DHCL1uQm.js","assets/index12-C0__GUgG.js","assets/index29-CiAbnHp7.js","assets/index2-B8m2GAo1.js","assets/index32-HAPD0ky5.js","assets/index30-nmmgaLEa.js","assets/index31-DLcLRY3W.js","assets/index14-tIlHKUa7.js","assets/index15-CgxWl9S1.js","assets/index18-Dkew9UcX.js","assets/index38-B_6QAkWd.js","assets/index19-Ddf2o8Xe.js","assets/index20-C2vRf4_4.js","assets/index21-BPiVN2Sd.js","assets/index22-DqCY78IQ.js","assets/index25-BzpmcQet.js","assets/index26-Dc8ciUBQ.js","assets/index27-B_EZBSEG.js","assets/index33-B998HOhV.js","assets/index34-BIvXFXt_.js","assets/index35-D_ogFho5.js","assets/index36-CTTB4tiA.js","assets/index37-6sX8s_UU.js","assets/Banned-DOttuKq4.js","assets/Banned-DpIo0B2o.css","assets/AboutTelegramBot-CjM5f4Vl.js","assets/AboutTelegramBot-DKqnVpGR.css","assets/Stories-D4nnySUB.js","assets/Stories-7ejX_d6V.css","assets/Comments-Ddqk90PY.js","assets/Comments-4molg63Q.css","assets/Menu-BbSucRZf.js","assets/Menu-B1mZw-Cf.css","assets/Apps-C5QjNzo1.js","assets/Apps-8NUu7xtP.css","assets/Editor-GdE44ty2.js","assets/Editor-Czzqx5tz.css","assets/SubsiteCoverEditor-JybUNwvq.js","assets/SubsiteCoverEditor-L00m5Yfg.css","assets/AssistantAnswer-B2oosqRw.js","assets/useRafInterval-UOqXV7by.js","assets/AssistantAnswer-SVgA5Ikc.css","assets/Marketplace-DhFFcPeE.js","assets/marketplace-4hn-uYkG.js","assets/ProductSearchInput.vue_vue_type_script_setup_true_lang-Dlf4kzn2.js","assets/ProductSearchInput-PSRlye-W.css","assets/ProductFields.vue_vue_type_style_index_0_lang--Id0Z3ji.js","assets/FilterField.vue_vue_type_script_setup_true_lang-DDqUSxYQ.js","assets/ProductFields-D7-SJ1YI.
1css","assets/Marketplace-BMw8ILbQ.css","assets/Product-CJAyLBYw.js","assets/Breadcrumbs.vue_vue_type_script_setup_true_lang-DwHtCNR7.js","assets/EsimBalanceButton.vue_vue_type_style_index_0_lang-CQR9HW6e.js","assets/EsimBalanceButton-B524cm8u.css","assets/Product-C6jHRwmv.css","assets/Esim-B3p8CxNK.js","assets/Esim-BqZ_DNy7.css","assets/Courses-BmVc1PY3.js","assets/useCoursesSeo-xn-8e4X3.js","assets/HeaderCollectionNavigation.vue_vue_type_style_index_0_lang-BTDgiVY7.js","assets/CourseItem.vue_vue_type_style_index_0_lang-ClaxSOnI.js","assets/useLocale-Bzgbc9e6.js","assets/CourseItem-IpzDNER4.css","assets/HeaderCollectionNavigation-Dr-mBMUS.css","assets/CourseHeader.vue_vue_type_style_index_0_lang-Fdn0l6VK.js","assets/CourseHeader-Bc3qzKJa.css","assets/Reviews-CM-7002a.js","assets/useLeaveReviewForm--Ee7HZhL.js","assets/useLeaveReviewForm-DeqfvfPL.css","assets/Reviews-CJ2bfW6w.css","assets/Courses-DZO9EiVt.css","assets/Collection-1CBzt6jg.js","assets/CourseGrid-BV_9NQAz.js","assets/CourseGrid-gF438cRF.css","assets/Collection-BYw1tM7d.css","assets/School-BCB-xXOF.js","assets/school.injections-D9uAkOkG.js","assets/School-ClMQpfSS.css","assets/SchoolCourses-D2pR3j-x.js","assets/SchoolCourses-CT6Y6-16.css","assets/SchoolReviews-B76Fbyr2.js","assets/Terminal-C6GHgk9n.js","assets/index-Dr_o1GSC.js","assets/useEnergyBalance-Cl9rcAHv.js","assets/useTerminalSettings-DrZ2ER6A.js","assets/useTerminalChatScroll-FM4lP-Xu.js","assets/Terminal-pfo-i7_w.css","assets/TerminalEmpty-2Fb_wlgv.js","assets/TokensExhausted--IJUMB7u.js","assets/TokensExhausted-UCyc-hoc.css","assets/TerminalEmpty-BzUx5C5L.css","assets/TerminalSettings-CWUEZXuI.js","assets/TerminalSettings-CewrizIn.css","assets/TerminalChat-RcHWOY_F.js","assets/TerminalChat-BZNtG8zY.css","assets/StickyStackSidebar-D_-g1X3c.js","assets/StickyStackSidebar-Bf1TiP2w.css","assets/Blocker-BiWOnU0O.js","assets/Blocker-BHAXbBF_.css","assets/SubsitePreview-ukDn4ksg.js","assets/SubsitePreview-CKNuND1O.css"])))=>i.map(i=>d[i]); 2var Dx=Object.defineProperty;var J0=e=>{throw TypeError(e)};var Nx=(e,t,n)=>t in e?Dx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var le=(e,t,n)=>Nx(e,typeof t!="symbol"?t+"":t,n),Fp=(e,t,n)=>t.has(e)||J0("Cannot "+n);var fe=(e,t,n)=>(Fp(e,t,"read from private field"),n?n.call(e):t.get(e)),Fe=(e,t,n)=>t.has(e)?J0("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),lt=(e,t,n,s)=>(Fp(e,t,"write to private field"),s?s.call(e,n):t.set(e,n),n),Gt=(e,t,n)=>(Fp(e,t,"access private method"),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))s(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();/** 3* @vue/shared v3.5.33 4* (c) 2018-present Yuxi (Evan) You and Vue contributors 5* @license MIT
vendor: 5,377 bytes, line 6
6**/function Vl(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Et={},Ja=[],bi=()=>{},Y_=()=>!1,sd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Rh=e=>e.startsWith("onUpdate:"),kn=Object.assign,xg=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Fx=Object.prototype.hasOwnProperty,Nt=(e,t)=>Fx.call(e,t),Xe=Array.isArray,Za=e=>zl(e)==="[object Map]",X_=e=>zl(e)==="[object Set]",Z0=e=>zl(e)==="[object Date]",Ux=e=>zl(e)==="[object RegExp]",it=e=>typeof e=="function",$t=e=>typeof e=="string",Hs=e=>typeof e=="symbol",Lt=e=>e!==null&&typeof e=="object",Tg=e=>(Lt(e)||it(e))&&it(e.then)&&it(e.catch),Q_=Object.prototype.toString,zl=e=>Q_.call(e),Hx=e=>zl(e).slice(8,-1),J_=e=>zl(e)==="[object Object]",Ih=e=>$t(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wa=Vl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mh=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Vx=/-\w/g,ds=Mh(e=>e.replace(Vx,t=>t.slice(1).toUpperCase())),zx=/\B([A-Z])/g,Ji=Mh(e=>e.replace(zx,"-$1").toLowerCase()),$h=Mh(e=>e.charAt(0).toUpperCase()+e.slice(1)),Xd=Mh(e=>e?`on${$h(e)}`:""),ss=(e,t)=>!Object.is(e,t),el=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},Z_=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Ag=e=>{const t=parseFloat(e);return isNaN(t)?e:t},ek=e=>{const t=$t(e)?Number(e):NaN;return isNaN(t)?e:t};let ey;const Lh=()=>ey||(ey=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ot(e){if(Xe(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],i=$t(s)?qx(s):Ot(s);if(i)for(const o in i)t[o]=i[o]}return t}else if($t(e)||Lt(e))return e}const Wx=/;(?![^(]*\))/g,jx=/:([^]+)/,Gx=/\/\*[^]*?\*\//g;function qx(e){const t={};return e.replace(Gx,"").split(Wx).forEach(n=>{if(n){const s=n.split(jx);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Kx(e){if(!e)return"";if($t(e))return e;let t="";for(const n in e){const s=e[n];if($t(s)||typeof s=="number"){const i=n.startsWith("--")?n:Ji(n);t+=`${i}:${s};`}}return t}function Z(e){let t="";if($t(e))t=e;else if(Xe(e))for(let n=0;n<e.length;n++){const s=Z(e[n]);s&&(t+=s+" ")}else if(Lt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Oh(e){if(!e)return null;let{class:t,style:n}=e;return t&&!$t(t)&&(e.class=Z(t)),n&&(e.style=Ot(n)),e}const tk="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Yx=Vl(tk),ty=Vl(tk+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected");function Pg(e){return!!e||e===""}const Xx=Vl("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),Qx=Vl("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radiu
6s,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan");function Jx(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const Zx=/[ !"#$%&'()*+,./:;<=>?@[\\\]^`{|}~]/g;function eT(e,t){return e.replace(Zx,n=>`\\${n}`)}function tT(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Rg(e[s],t[s]);return n}function Rg(e,t){if(e===t)return!0;let n=Z0(e),s=Z0(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Hs(e),s=Hs(t),n||s)return e===t;if(n=Xe(e),s=Xe(t),n||s)return n&&s?tT(e,t):!1;if(n=Lt(e),s=Lt(t),n||s){if(!n||!s)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const r in e){const a=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(a&&!l||!a&&l||!Rg(e[r],t[r]))return!1}}return String(e)===String(t)}const nk=e=>!!(e&&e.__v_isRef===!0),Y=e=>$t(e)?e:e==null?"":Xe(e)||Lt(e)&&(e.toString===Q_||!it(e.toString))?nk(e)?Y(e.value):JSON.stringify(e,sk,2):String(e),sk=(e,t)=>nk(t)?sk(e,t.value):Za(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,i],o)=>(n[Up(s,o)+" =>"]=i,n),{})}:X_(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Up(n))}:Hs(t)?Up(t):Lt(t)&&!Xe(t)&&!J_(t)?String(t):t,Up=(e,t="")=>{var n;return Hs(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function ik(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/** 7* @vue/reactivity v3.5.33 8* (c) 2018-present Yuxi (Evan) You and Vue contributors 9* @license MIT
vendor: 6,017 bytes, line 10
10**/let Dn;class ok{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Dn,!t&&Dn&&(this.index=(Dn.scopes||(Dn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Dn;try{return Dn=this,t()}finally{Dn=n}}}on(){++this._on===1&&(this.prevScope=Dn,Dn=this)}off(){if(this._on>0&&--this._on===0){if(Dn===this)Dn=this.prevScope;else{let t=Dn;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function rk(e){return new ok(e)}function Ig(){return Dn}function Mg(e,t=!1){Dn&&Dn.cleanups.push(e)}let Jt;const Hp=new WeakSet;class ak{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Dn&&Dn.active&&Dn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Hp.has(this)&&(Hp.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||ck(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ny(this),uk(this);const t=Jt,n=yi;Jt=this,yi=!0;try{return this.fn()}finally{dk(this),Jt=t,yi=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Og(t);this.deps=this.depsTail=void 0,ny(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Hp.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Gm(this)&&this.run()}get dirty(){return Gm(this)}}let lk=0,Wc,jc;function ck(e,t=!1){if(e.flags|=8,t){e.next=jc,jc=e;return}e.next=Wc,Wc=e}function $g(){lk++}function Lg(){if(--lk>0)return;if(jc){let t=jc;for(jc=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Wc;){let t=Wc;for(Wc=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function uk(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function dk(e){let t,n=e.depsTail,s=n;for(;s;){const i=s.prevDep;s.version===-1?(s===n&&(n=i),Og(s),nT(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=i}e.deps=t,e.depsTail=n}function Gm(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(fk(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function fk(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===bu)||(e.globalVersion=bu,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Gm(e))))return;e.flags|=2;const t=e.dep,n=Jt,s=yi;Jt=e,yi=!0;try{uk(e);const i=e.fn(e._value);(t.version===0||ss(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{Jt=n,yi=s,dk(e),e.flags&=-3}}function Og(e,t=!1){const{dep:n,prevSub:s,nextSub:i}=e;if(s&&(s.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Og(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function nT(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let yi=!0;const hk=[];function Ki(){hk.push(yi),yi=!1}function Yi(){const e=hk.pop();yi=e===void 0?!0:e}function ny(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Jt;Jt=void 0;try{t()}finally{Jt=n}}}let bu=0;class sT{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Bh{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Jt||!yi||Jt===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Jt)n=this.activeLink=new sT(Jt,this),Jt.deps?(n.prevDep=Jt.depsTail,Jt.depsTail.nextDep=n,Jt.depsTail=n):Jt.deps=Jt.depsTail=n,pk(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Jt.depsTail,n.nextDep=void 0,Jt.depsTail.nextDep=n,Jt.depsTail=n,Jt.deps===n&&(Jt.deps=s)}return n}trigger(t){this.version++,bu++,this.notify(t)}notify(t){$g();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Lg()}}}function pk(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)pk(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const df=new WeakMap,_a=Symbol(""),qm=Symbol(""),yu=Symbol("");function is(e,t,n){if(yi&&Jt){let s=df.get(e);s||df.set(e,s=new Map);let i=s.get(n);i||(s.set(n,i=new Bh),i.map=s,i.key=n),i.track()}}function So(e,t,n,s,i,o){const r=df.get(e);if(!r){bu++;return}const a=l=>{l&&l.trigger()};if($g(),t==="clear")r.forEach(a);else{const l=Xe(e),c=l&&Ih(n);if(l&&n==="length"){const u=Number(s);r.forEach((d,h)=>{(h==="length"||h===yu||!Hs(h)&&h>=u)&&a(d)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),c&&a(r.get(yu)),t){case"add":l?c&&a(r.get("length")):(a(r.get(_a)),Za(e)&&a(r.get(qm)));break;case"delete":l||(a(r.get(_a)),Za(e)&&a(r.get(qm)));break;case"set":Za(e)&&a(r.get(_a));break}}
vendor: 4,434 bytes, line 10
10Lg()}function iT(e,t){const n=df.get(e);return n&&n.get(t)}function Va(e){const t=wt(e);return t===e?t:(is(t,"iterate",yu),Ns(e)?t:t.map(_i))}function Dh(e){return is(e=wt(e),"iterate",yu),e}function Ui(e,t){return $o(e)?Il(ka(e)?_i(t):t):_i(t)}const oT={__proto__:null,[Symbol.iterator](){return Vp(this,Symbol.iterator,e=>Ui(this,e))},concat(...e){return Va(this).concat(...e.map(t=>Xe(t)?Va(t):t))},entries(){return Vp(this,"entries",e=>(e[1]=Ui(this,e[1]),e))},every(e,t){return oo(this,"every",e,t,void 0,arguments)},filter(e,t){return oo(this,"filter",e,t,n=>n.map(s=>Ui(this,s)),arguments)},find(e,t){return oo(this,"find",e,t,n=>Ui(this,n),arguments)},findIndex(e,t){return oo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return oo(this,"findLast",e,t,n=>Ui(this,n),arguments)},findLastIndex(e,t){return oo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return oo(this,"forEach",e,t,void 0,arguments)},includes(...e){return zp(this,"includes",e)},indexOf(...e){return zp(this,"indexOf",e)},join(e){return Va(this).join(e)},lastIndexOf(...e){return zp(this,"lastIndexOf",e)},map(e,t){return oo(this,"map",e,t,void 0,arguments)},pop(){return vc(this,"pop")},push(...e){return vc(this,"push",e)},reduce(e,...t){return sy(this,"reduce",e,t)},reduceRight(e,...t){return sy(this,"reduceRight",e,t)},shift(){return vc(this,"shift")},some(e,t){return oo(this,"some",e,t,void 0,arguments)},splice(...e){return vc(this,"splice",e)},toReversed(){return Va(this).toReversed()},toSorted(e){return Va(this).toSorted(e)},toSpliced(...e){return Va(this).toSpliced(...e)},unshift(...e){return vc(this,"unshift",e)},values(){return Vp(this,"values",e=>Ui(this,e))}};function Vp(e,t,n){const s=Dh(e),i=s[t]();return s!==e&&!Ns(e)&&(i._next=i.next,i.next=()=>{const o=i._next();return o.done||(o.value=n(o.value)),o}),i}const rT=Array.prototype;function oo(e,t,n,s,i,o){const r=Dh(e),a=r!==e&&!Ns(e),l=r[t];if(l!==rT[t]){const d=l.apply(e,o);return a?_i(d):d}let c=n;r!==e&&(a?c=function(d,h){return n.call(this,Ui(e,d),h,e)}:n.length>2&&(c=function(d,h){return n.call(this,d,h,e)}));const u=l.call(r,c,s);return a&&i?i(u):u}function sy(e,t,n,s){const i=Dh(e),o=i!==e&&!Ns(e);let r=n,a=!1;i!==e&&(o?(a=s.length===0,r=function(c,u,d){return a&&(a=!1,c=Ui(e,c)),n.call(this,c,Ui(e,u),d,e)}):n.length>3&&(r=function(c,u,d){return n.call(this,c,u,d,e)}));const l=i[t](r,...s);return a?Ui(e,l):l}function zp(e,t,n){const s=wt(e);is(s,"iterate",yu);const i=s[t](...n);return(i===-1||i===!1)&&Uh(n[0])?(n[0]=wt(n[0]),s[t](...n)):i}function vc(e,t,n=[]){Ki(),$g();const s=wt(e)[t].apply(e,n);return Lg(),Yi(),s}const aT=Vl("__proto__,__v_isRef,__isVue"),mk=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Hs));function lT(e){Hs(e)||(e=String(e));const t=wt(this);return is(t,"has",e),t.hasOwnProperty(e)}class vk{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(i?o?kk:_k:o?wk:yk).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=Xe(t);if(!i){let l;if(r&&(l=oT[n]))return l;if(n==="hasOwnProperty")return lT}const a=Reflect.get(t,n,Ct(t)?t:s);if((Hs(n)?mk.has(n):aT(n))||(i||is(t,"get",n),o))return a;if(Ct(a)){const l=r&&Ih(n)?a:a.value;return i&&Lt(l)?Ft(l):l}return Lt(a)?i?Ft(a):bt(a):a}}class gk extends vk{constructor(t=!1){super(!1,t)}set(t,n,s,i){let o=t[n];const r=Xe(t)&&Ih(n);if(!this._isShallow){const c=$o(o);if(!Ns(s)&&!$o(s)&&(o=wt(o),s=wt(s)),!r&&Ct(o)&&!Ct(s))return c||(o.value=s),!0}const a=r?Number(n)<t.length:Nt(t,n),l=Reflect.set(t,n,s,Ct(t)?t:i);return t===wt(i)&&(a?ss(s,o)&&So(t,"set",n,s):So(t,"add",n,s)),l}deleteProperty(t,n){const s=Nt(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&s&&So(t,"delete",n,void 0),i}has(t,n){const s=Reflect.has(t,n);return(!Hs(n)||!mk.has(n))&&is(t,"has",n),s}ownKeys(t){return is(t,"iterate",Xe(t)?"length":_a),Reflect.ownKeys(t)}}class bk extends vk{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const cT=new gk,uT=new bk,dT=new gk(!0),fT=new bk(!0),Km=e=>e,_d=e=>Reflect.getPrototypeOf(e);function hT(e,t,n){return function(...s){const i=this.__v_raw,o=wt(i),r=Za(o),a=e==="entries"||e===Symbol.iterator&&r,l=e==="
10keys"&&r,c=i[e](...s),u=n?Km:t?Il:_i;return!t&&is(o,"iterate",l?qm:_a),kn(Object.create(c),{next(){const{value:d,done:h}=c.next();return h?{value:d,done:h}:{value:a?[u(d[0]),u(d[1])]:u(d),done:h}}})}}function kd(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function pT(e,t){const n={get(i){const o=this.__v_raw,r=wt(o),a=wt(i);e||(ss(i,a)&&is(r,"get",i),is(r,"get",a));const{has:l}=_d(r),c=t?Km:e?Il:_i;if(l.call(r,i))return c(o.get(i));if(l.call(r,a))return c(o.get(a));o!==r&&o.get(i)},get size(){const i=this.__v_raw;return!e&&is(wt(i),"iterate",_a),i.size},has(i){const o=this.__v_raw,r=wt(o),a=wt(i);return e||(ss(i,a)&&is(r,"has",i),is(r,"has",a)),i===a?o.has(i):o.has(i)||o.has(a)},forEach(i,o){const r=this,a=r.__v_raw,l=wt(a),c=t?Km:e?Il:_i;return!e&&is(l,"iterate",_a),a.forEach((u,d)=>i.call(o,c(u),c(d),r))}};return kn(n,e?{add:kd("add"),set:kd("set"),delete:kd("delete"),clear:kd("clear")}:{add(i){const o=wt(this),r=_d(o),a=wt(i),l=!t&&!Ns(i)&&!$o(i)?a:i;return r.has.call(o,l)||ss(i,l)&&r.has.call(o,i)||ss(a,l)&&r.has.call(o,a)||(o.add(l),So(o,"add",l,l)),this},set(i,o){!t&&!Ns(o)&&!$o(o)&&(o=wt(o));const r=wt(this),{has:a,get:l}=_d(r);let c=a.call(r,i);c||(i=wt(i),c=a.call(r,i));const u=l.call(r,i);return r.set(i,o),c?ss(o,u)&&So(r,"set",i,o):So(r,"add",i,o),this},delete(i){const o=wt(this),{has:r,get:a}=_d(o);let l=r.call(o,i);l||(i=wt(i),l=r.call(o,i)),a&&a.call(o,i);const c=o.delete(i);return l&&So(o,"delete",i,void 0),c},clear(){const i=wt(this),o=i.size!==0,r=i.clear();return o&&So(i,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=hT(i,e,t)}),n}function Nh(e,t){const n=pT(e,t);return(s,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?s:Reflect.get(Nt(n,i)&&i in s?n:s,i,o)}const mT={get:Nh(!1,!1)},vT={get:Nh(!1,!0)},gT={get:Nh(!0,!1)},bT={get:Nh(!0,!0)},yk=new WeakMap,wk=new WeakMap,_k=new WeakMap,kk=new WeakMap;function yT(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wT(e){return e.__v_skip||!Object.isExtensible(e)?0:yT(Hx(e))}function bt(e){return $o(e)?e:Fh(e,!1,cT,mT,yk)}function $a(e){return Fh(e,!1,dT,vT,wk)}function Ft(e){return Fh(e,!0,uT,gT,_k)}function Bg(e){return Fh(e,!0,fT,bT,kk)}function Fh(e,t,n,s,i){if(!Lt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=wT(e);if(o===0)return e;const r=i.get(e);if(r)return r;const a=new Proxy(e,o===2?s:n);return i.set(e,a),a}function ka(e){return $o(e)?ka(e.__v_raw):!!(e&&e.__v_isReactive)}function $o(e){return!!(e&&e.__v_isReadonly)}function Ns(e){return!!(e&&e.__v_isShallow)}function Uh(e){return e?!!e.__v_raw:!1}function wt(e){const t=e&&e.__v_raw;return t?wt(t):e}function Dg(e){return!Nt(e,"__v_skip")&&Object.isExtensible(e)&&Z_(e,"__v_skip",!0),e}const _i=e=>Lt(e)?bt(e):e,Il=e=>Lt(e)?Ft(e):e;function Ct(e){return e?e.__v_isRef===!0:!1}function P(e){return Sk(e,!1)}function De(e){return Sk(e,!0)}function Sk(e,t){return Ct(e)?e:new _T(e,t)}class _T{constructor(t,n){this.dep=new Bh,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:wt(t),this._value=n?t:_i(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Ns(t)||$o(t);t=s?t:wt(t),ss(t,n)&&(this._rawValue=t,this._value=s?t:_i(t),this.dep.trigger())}}function f(e){return Ct(e)?e.value:e}function ce(e){return it(e)?e():f(e)}const kT={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const i=e[t];return Ct(i)&&!Ct(n)?(i.value=n,!0):Reflect.set(e,t,n,s)}};function Ck(e){return ka(e)?e:new Proxy(e,kT)}class ST{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new Bh,{get:s,set:i}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Hh(e){return new ST(e)}function CT(e){const t=Xe(e)?new Array(e.length):{};for(const n in e)t[n]=Ek(e,n);return t}class ET{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=Hs(n)?n:String(n),this._raw=wt(t);let i=!0,o=t;if(!Xe(t)||Hs(this._key)||!Ih(this._key))do i=!Uh(o)||Ns(o);while(i&&(o=o.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=f(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Ct(this._raw[this._key])){const n=this._object[this._key];if(Ct(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return iT(this._raw,this._key)}}class xT{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Cn(e,t,n){return Ct(e)?e:it(e)?new xT(e):Lt(e)&&arguments.length>1?Ek(e,t,n):P(e)}function Ek(e,t,n){return new ET(e,t,n)}class TT{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Bh(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=bu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Jt!==this)return ck(this,!0),!0}get value(){const t=this.dep.track();return fk(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function AT(e,t,n=!1){let s,i;return it(e)?s=e:(s=e.get,i=e.set),new TT(s,i,n)}const Sd={},ff=new WeakMap;let Gr;function PT(e,t=!1,n=Gr){if(n){let s=ff.get(n);s||ff.set(n,s=[]),s.push(e)}}function RT(e,t,n=Et){const{immediate:s,deep:i,once:o,scheduler:r,augmentJob:a,call:l}=n,c=y=>i?y:Ns(y)||i===!1||i===0?Co(y,1):Co(y);let u,d,h,p,m=!1,v=!1;if(Ct(e)?(d=()=>e.value,m=Ns(e)):ka(e)?(d=()=>c(e),m=!0):Xe(e)?(v=!0,m=e.some(y=>ka(y)||Ns(y)),d=()=>e.map(y=>{if(Ct(y))return y.value;if(ka(y))return c(y);if(it(y))return l?l(y,2):y()})):it(e)?t?d=l?()=>l(e,2):e:d=()=>
vendor: 1,305 bytes, lines 10-13
10{if(h){Ki();try{h()}finally{Yi()}}const y=Gr;Gr=u;try{return l?l(e,3,[p]):e(p)}finally{Gr=y}}:d=bi,t&&i){const y=d,S=i===!0?1/0:i;d=()=>Co(y(),S)}const g=Ig(),b=()=>{u.stop(),g&&g.active&&xg(g.effects,u)};if(o&&t){const y=t;t=(...S)=>{y(...S),b()}}let w=v?new Array(e.length).fill(Sd):Sd;const k=y=>{if(!(!(u.flags&1)||!u.dirty&&!y))if(t){const S=u.run();if(i||m||(v?S.some((E,x)=>ss(E,w[x])):ss(S,w))){h&&h();const E=Gr;Gr=u;try{const x=[S,w===Sd?void 0:v&&w[0]===Sd?[]:w,p];w=S,l?l(t,3,x):t(...x)}finally{Gr=E}}}else u.run()};return a&&a(k),u=new ak(d),u.scheduler=r?()=>r(k,!1):k,p=y=>PT(y,!1,u),h=u.onStop=()=>{const y=ff.get(u);if(y){if(l)l(y,4);else for(const S of y)S();ff.delete(u)}},t?s?k(!0):w=u.run():r?r(k.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function Co(e,t=1/0,n){if(t<=0||!Lt(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ct(e))Co(e.value,t,n);else if(Xe(e))for(let s=0;s<e.length;s++)Co(e[s],t,n);else if(X_(e)||Za(e))e.forEach(s=>{Co(s,t,n)});else if(J_(e)){for(const s in e)Co(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Co(e[s],t,n)}return e}/** 11* @vue/runtime-core v3.5.33 12* (c) 2018-present Yuxi (Evan) You and Vue contributors 13* @license MIT
vendor: 3,711 bytes, lines 14-17
14**/const Gc=[];let Wp=!1;function Zo(e,...t){if(Wp)return;Wp=!0,Ki();const n=Gc.length?Gc[Gc.length-1].component:null,s=n&&n.appContext.config.warnHandler,i=IT();if(s)Wl(s,n,11,[e+t.map(o=>{var r,a;return(a=(r=o.toString)==null?void 0:r.call(o))!=null?a:JSON.stringify(o)}).join(""),n&&n.proxy,i.map(({vnode:o})=>`at <${w2(n,o.type)}>`).join(` 15`),i]);else{const o=[`[Vue warn]: ${e}`,...t];i.length&&o.push(` 16`,...MT(i)),console.warn(...o)}Yi(),Wp=!1}function IT(){let e=Gc[Gc.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function MT(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[` 17`],...$T(n))}),t}function $T({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,i=` at <${w2(e.component,e.type,s)}`,o=">"+n;return e.props?[i,...LT(e.props),o]:[i+o]}function LT(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...xk(s,e[s]))}),n.length>3&&t.push(" ..."),t}function xk(e,t,n){return $t(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ct(t)?(t=xk(e,wt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):it(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=wt(t),n?t:[`${e}=`,t])}function Wl(e,t,n,s){try{return s?e(...s):e()}catch(i){jl(i,t,n)}}function ki(e,t,n,s){if(it(e)){const i=Wl(e,t,n,s);return i&&Tg(i)&&i.catch(o=>{jl(o,t,n)}),i}if(Xe(e)){const i=[];for(let o=0;o<e.length;o++)i.push(ki(e[o],t,n,s));return i}}function jl(e,t,n,s=!0){const i=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Et;if(t){let a=t.parent;const l=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const u=a.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,l,c)===!1)return}a=a.parent}if(o){Ki(),Wl(o,null,10,[e,l,c]),Yi();return}}OT(e,n,i,s,r)}function OT(e,t,n,s=!0,i=!1){if(i)throw e;console.error(e)}const ps=[];let Mi=-1;const tl=[];let ir=null,ja=0;const Tk=Promise.resolve();let hf=null;function un(e){const t=hf||Tk;return e?t.then(this?e.bind(this):e):t}function BT(e){let t=Mi+1,n=ps.length;for(;t<n;){const s=t+n>>>1,i=ps[s],o=wu(i);o<e||o===e&&i.flags&2?t=s+1:n=s}return t}function Ng(e){if(!(e.flags&1)){const t=wu(e),n=ps[ps.length-1];!n||!(e.flags&2)&&t>=wu(n)?ps.push(e):ps.splice(BT(t),0,e),e.flags|=1,Ak()}}function Ak(){hf||(hf=Tk.then(Pk))}function pf(e){Xe(e)?tl.push(...e):ir&&e.id===-1?ir.splice(ja+1,0,e):e.flags&1||(tl.push(e),e.flags|=1),Ak()}function iy(e,t,n=Mi+1){for(;n<ps.length;n++){const s=ps[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ps.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function mf(e){if(tl.length){const t=[...new Set(tl)].sort((n,s)=>wu(n)-wu(s));if(tl.length=0,ir){ir.push(...t);return}for(ir=t,ja=0;ja<ir.length;ja++){const n=ir[ja];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}ir=null,ja=0}}const wu=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Pk(e){try{for(Mi=0;Mi<ps.length;Mi++){const t=ps[Mi];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Wl(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Mi<ps.length;Mi++){const t=ps[Mi];t&&(t.flags&=-2)}Mi=-1,ps.length=0,mf(),hf=null,(ps.length||tl.length)&&Pk()}}let Gn=null,Rk=null;function vf(e){const t=Gn;return Gn=e,Rk=e&&e.type.__scopeId||null,t}function K(e,t=Gn,n){if(!t||e._n)return e;const s=(...i)=>{s._d&&kf(-1);const o=vf(t);let r;try{r=e(...i)}finally{vf(o),s._d&&kf(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function Ie(e,t){if(Gn===null)return e;const n=Gh(Gn),s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[o,r,a,l=Et]=t[i];
vendor: 5,043 bytes, line 17
17o&&(it(o)&&(o={mounted:o,updated:o}),o.deep&&Co(r),s.push({dir:o,instance:n,value:r,oldValue:void 0,arg:a,modifiers:l}))}return e}function Oi(e,t,n,s){const i=e.dirs,o=t&&t.dirs;for(let r=0;r<i.length;r++){const a=i[r];o&&(a.oldValue=o[r].value);let l=a.dir[s];l&&(Ki(),ki(l,n,8,[e.el,a,e,t]),Yi())}}function gt(e,t){if(jn){let n=jn.provides;const s=jn.parent&&jn.parent.provides;s===n&&(n=jn.provides=Object.create(s)),n[e]=t}}function ut(e,t,n=!1){const s=Mn();if(s||Sa){let i=Sa?Sa._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&it(t)?t.call(s&&s.proxy):t}}function Fg(){return!!(Mn()||Sa)}const DT=Symbol.for("v-scx"),NT=()=>ut(DT);function Gl(e,t){return Vh(e,null,t)}function FT(e,t){return Vh(e,null,{flush:"sync"})}function be(e,t,n){return Vh(e,t,n)}function Vh(e,t,n=Et){const{immediate:s,deep:i,flush:o,once:r}=n,a=kn({},n),l=t&&s||!t&&o!=="post";let c;if(xa){if(o==="sync"){const p=NT();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!l){const p=()=>{};return p.stop=bi,p.resume=bi,p.pause=bi,p}}const u=jn;a.call=(p,m,v)=>ki(p,u,m,v);let d=!1;o==="post"?a.scheduler=p=>{Sn(p,u&&u.suspense)}:o!=="sync"&&(d=!0,a.scheduler=(p,m)=>{m?p():Ng(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const h=RT(e,t,a);return xa&&(c?c.push(h):l&&h()),h}function UT(e,t,n){const s=this.proxy,i=$t(e)?e.includes(".")?Ik(s,e):()=>s[e]:e.bind(s,s);let o;it(t)?o=t:(o=t.handler,n=t);const r=ql(this),a=Vh(i,o.bind(s),n);return r(),a}function Ik(e,t){const n=t.split(".");return()=>{let s=e;for(let i=0;i<n.length&&s;i++)s=s[n[i]];return s}}const er=new WeakMap,Mk=Symbol("_vte"),$k=e=>e.__isTeleport,Xr=e=>e&&(e.disabled||e.disabled===""),HT=e=>e&&(e.defer||e.defer===""),oy=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ry=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ym=(e,t)=>{const n=e&&e.to;return $t(n)?t?t(n):null:n},VT={name:"Teleport",__isTeleport:!0,process(e,t,n,s,i,o,r,a,l,c){const{mc:u,pc:d,pbc:h,o:{insert:p,querySelector:m,createText:v,createComment:g,parentNode:b}}=c,w=Xr(t.props);let{dynamicChildren:k}=t;const y=(x,M,I)=>{x.shapeFlag&16&&u(x.children,M,I,i,o,r,a,l)},S=(x=t)=>{const M=Xr(x.props),I=x.target=Ym(x.props,m),N=Xm(I,x,v,p);I&&(r!=="svg"&&oy(I)?r="svg":r!=="mathml"&&ry(I)&&(r="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(I),M||(y(x,I,N),Pc(x,!1)))},E=x=>{const M=()=>{if(er.get(x)===M){if(er.delete(x),Xr(x.props)){const I=b(x.el)||n;y(x,I,x.anchor),Pc(x,!0)}S(x)}};er.set(x,M),Sn(M,o)};if(e==null){const x=t.el=v(""),M=t.anchor=v("");if(p(x,n,s),p(M,n,s),HT(t.props)||o&&o.pendingBranch){E(t);return}w&&(y(t,n,M),Pc(t,!0)),S()}else{t.el=e.el;const x=t.anchor=e.anchor,M=er.get(e);if(M){M.flags|=8,er.delete(e),E(t);return}t.targetStart=e.targetStart;const I=t.target=e.target,N=t.targetAnchor=e.targetAnchor,V=Xr(e.props),$=V?n:I,j=V?x:N;if(r==="svg"||oy(I)?r="svg":(r==="mathml"||ry(I))&&(r="mathml"),k?(h(e.dynamicChildren,k,$,i,o,r,a),Jg(e,t,!0)):l||d(e,t,$,j,i,o,r,a,!1),w)V?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Cd(t,n,x,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const X=t.target=Ym(t.props,m);X&&Cd(t,X,null,c,0)}else V&&Cd(t,I,N,c,1);Pc(t,w)}},remove(e,t,n,{um:s,o:{remove:i}},o){const{shapeFlag:r,children:a,anchor:l,targetStart:c,targetAnchor:u,target:d,props:h}=e;let p=o||!Xr(h);const m=er.get(e);if(m&&(m.flags|=8,er.delete(e),p=!1),d&&(i(c),i(u)),o&&i(l),r&16)for(let v=0;v<a.length;v++){const g=a[v];s(g,t,n,p,!!g.dynamicChildren)}},move:Cd,hydrate:zT};function Cd(e,t,n,{o:{insert:s},m:i},o=2){o===0&&s(e.targetAnchor,t,n);const{el:r,anchor:a,shapeFlag:l,children:c,props:u}=e,d=o===2;if(d&&s(r,t,n),!er.has(e)&&(!d||Xr(u))&&l&16)for(let h=0;h<c.length;h++)i(c[h],t,n,2);d&&s(a,t,n)}function zT(e,t,n,s,i,o,{o:{nextSibling:r,parentNode:a,querySelector:l,insert:c,createText:u}},d){function h(g,b){let w=b;for(;w;){if(w&&w.nodeType===8){if(w.data==="teleport start anchor")t.targetStart=w;else if(w.data==="teleport anchor"){t.targetAnchor=w,g._lpa=t.targetAnchor&&r(t.targetAnchor);break}}w=r(w)}}function p(g,b){b.anchor=d(r(g),b,a(g),n,s,i,o)}const m=t.target=Ym(t.props,l),v=Xr(t.props);if(m){const g=m._lpa||m.firstChild;t.shapeFlag&16&&(v?(p(e,t),h(m,g),t.targetAnchor||Xm(m,t,u,c,a(e)===m?e:null)):(t.anchor=r(e),h(m,g),t.targetAnchor||Xm(m,t,u,c),d(g&&r(g),t,m,n,s,i,o))),Pc(t,v)}else v&&t.shapeFlag&16&&(p(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const id=VT;function Pc(e,t){const n=e.ctx;if(n&&n.ut){let s,i;for(t?(s=e.el,i=e.anchor):(s=e.targetStart,i=e.targetAnchor);s&&s!==i;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function Xm(e,t,n,s,i=null){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[Mk]=r,e&&(s(o,e,i),s(r,e,i)),r}const Bi=Symbol("_leaveCb"),gc=Symbol("_enterCb");function Lk(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leav
17ingVNodes:new Map};return je(()=>{e.isMounted=!0}),et(()=>{e.isUnmounting=!0}),e}const Ys=[Function,Array],Ok={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ys,onEnter:Ys,onAfterEnter:Ys,onEnterCancelled:Ys,onBeforeLeave:Ys,onLeave:Ys,onAfterLeave:Ys,onLeaveCancelled:Ys,onBeforeAppear:Ys,onAppear:Ys,onAfterAppear:Ys,onAppearCancelled:Ys},Bk=e=>{const t=e.subTree;return t.component?Bk(t.component):t},WT={name:"BaseTransition",props:Ok,setup(e,{slots:t}){const n=Mn(),s=Lk();return()=>{const i=t.default&&Ug(t.default(),!0),o=i&&i.length?Dk(i):n.subTree?D():void 0;if(!o)return;const r=wt(e),{mode:a}=r;if(s.isLeaving)return jp(o);const l=ay(o);if(!l)return jp(o);let c=_u(l,r,s,n,d=>c=d);l.type!==_n&&Er(l,c);let u=n.subTree&&ay(n.subTree);if(u&&u.type!==_n&&!pi(u,l)&&Bk(n).type!==_n){let d=_u(u,r,s,n);if(Er(u,d),a==="out-in"&&l.type!==_n)return s.isLeaving=!0,d.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},jp(o);a==="in-out"&&l.type!==_n?d.delayLeave=(h,p,m)=>{const v=Nk(s,u);v[String(u.key)]=u,h[Bi]=()=>{p(),h[Bi]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return o}}};function Dk(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==_n){t=n;break}}return t}const jT=WT;function Nk(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function _u(e,t,n,s,i){const{appear:o,mode:r,persisted:a=!1,onBeforeEnter:l,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:h,onLeave:p,onAfterLeave:m,onLeaveCancelled:v,onBeforeAppear:g,onAppear:b,onAfterAppear:w,onAppearCancelled:k}=t,y=String(e.key),S=Nk(n,e),E=(I,N)=>{I&&ki(I,s,9,N)},x=(I,N)=>{const V=N[1];E(I,N),Xe(I)?I.every($=>$.length<=1)&&V():I.length<=1&&V()},M={mode:r,persisted:a,beforeEnter(I){let N=l;if(!n.isMounted)if(o)N=g||l;else return;I[Bi]&&I[Bi](!0);const V=S[y];V&&pi(e,V)&&V.el[Bi]&&V.el[Bi](),E(N,[I])},enter(I){if(S[y]===e)return;let N=c,V=u,$=d;if(!n.isMounted)if(o)N=b||c,V=w||u,$=k||d;else return;let j=!1;I[gc]=U=>{j||(j=!0,U?E($,[I]):E(V,[I]),M.delayedLeave&&M.delayedLeave(),I[gc]=void 0)};const X=I[gc].bind(null,!1);N?x(N,[I,X]):X()},leave(I,N){const V=String(e.key);if(I[gc]&&I[gc](!0),n.isUnmounting)return N();E(h,[I]);let $=!1;I[Bi]=X=>{$||($=!0,N(),X?E(v,[I]):E(m,[I]),I[Bi]=void 0,S[V]===e&&delete S[V])};const j=I[Bi].bind(null,!1);S[V]=e,p?x(p,[I,j]):j()},clone(I){const N=_u(I,t,n,s,i);return i&&i(N),N}};return M}function jp(e){if(od(e))return e=Oo(e),e.children=null,e}function ay(e){if(!od(e))return $k(e.type)&&e.children?Dk(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&it(n.default))return n.default()}}function Er(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Er(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ug(e,t=!1,n){let s=[],i=0;for(let o=0;o<e.length;o++){let r=e[o];const a=n==null?r.key:String(n)+String(r.key!=null?r.key:o);r.type===ye?(r.patchFlag&128&&i++,s=s.concat(Ug(r.children,t,a))):(t||r.type!==_n)&&s.push(a!=null?Oo(r,{key:a}):r)}if(i>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function J(e,t){return it(e)?kn({name:e.name},t,{setup:e}):e}function Hg(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mt(e){const t=Mn(),n=De(null);if(t){const i=t.refs===Et?t.refs={}:t.refs;Object.defineProperty(i,e,{enumerable:!0,get:()=>n.value,set:o=>n.value=o})}return n}function ly(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const gf=new WeakMap;function nl(e,t,n,s,i=!1){if(Xe(e)){e.forEach((v,g)=>nl(v,t&&(Xe(t)?t[g]:t),n,s,i));return}if(Po(s)&&!i){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&nl(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Gh(s.component):s.el,r=i?null:o,{i:a,r:l}=e,c=t&&t.r,u=a.refs===Et?a.refs={}:a.refs,d=a.setupState,h=wt(d),p=d===Et?Y_:v=>ly(u,v)?!1:Nt(h,v),m=(v,g)=>!(g&&ly(u,g));if(c!=null&&c!==l){if(cy(t),$t(c))u[c]=null,p(c)&&(d[c]=null);else if(Ct(c)){const v=t;m(c,v.k)&&(c.value=null),v.k&&(u[v.k]=null)}}if(it(l))Wl(l,a,12,[r,u]);else{const v=$t(l),g=Ct(l);if(v||g){const b=()=>{if(e.f){const w=v?p(l)?d[l]:u[l]:m()||!e.k?l.value:u[e.k];if(i)Xe(w)&&xg(w,o);else if(Xe(w))w.includes(o)||w.push(o);else if(v)u[l]=[o],p(l)&&(d[l]=u[l]);
17else{const k=[o];m(l,e.k)&&(l.value=k),e.k&&(u[e.k]=k)}}else v?(u[l]=r,p(l)&&(d[l]=r)):g&&(m(l,e.k)&&(l.value=r),e.k&&(u[e.k]=r))};if(r){const w=()=>{b(),gf.delete(e)};w.id=-1,gf.set(e,w),Sn(w,n)}else cy(e),b()}}}function cy(e){const t=gf.get(e);t&&(t.flags|=8,gf.delete(e))}let uy=!1;const Vr=()=>{uy||(console.error("Hydration completed but contains mismatches."),uy=!0)},GT=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",qT=e=>e.namespaceURI.includes("MathML"),Ed=e=>{if(e.nodeType===1){if(GT(e))return"svg";if(qT(e))return"mathml"}},Qr=e=>e.nodeType===8;function KT(e){const{mt:t,p:n,o:{patchProp:s,createText:i,nextSibling:o,parentNode:r,remove:a,insert:l,createComment:c}}=e,u=(k,y)=>{if(!y.hasChildNodes()){Zo("Attempting to hydrate existing markup but container is empty. Performing full mount instead."),n(null,k,y),mf(),y._vnode=k;return}d(y.firstChild,k,null,null,null),mf(),y._vnode=k},d=(k,y,S,E,x,M=!1)=>{M=M||!!y.dynamicChildren;const I=Qr(k)&&k.data==="[",N=()=>v(k,y,S,E,x,I),{type:V,ref:$,shapeFlag:j,patchFlag:X}=y;let U=k.nodeType;y.el=k,X===-2&&(M=!1,y.dynamicChildren=null);let R=null;switch(V){case kr:U!==3?y.children===""?(l(y.el=i(""),r(k),k),R=k):R=N():(k.data!==y.children&&(Zo("Hydration text mismatch in",k.parentNode,` 18 - rendered on server: ${JSON.stringify(k.data)} 19 - expected on client: ${JSON.stringify(y.children)}
19`),Vr(),k.data=y.children),R=o(k));break;case _n:w(k)?(R=o(k),b(y.el=k.content.firstChild,k,S)):U!==8||I?R=N():R=o(k);break;case Kc:if(I&&(k=o(k),U=k.nodeType),U===1||U===3){R=k;const G=!y.children.length;for(let H=0;H<y.staticCount;H++)G&&(y.children+=R.nodeType===1?R.outerHTML:R.data),H===y.staticCount-1&&(y.anchor=R),R=o(R);return I?o(R):R}else N();break;case ye:I?R=m(k,y,S,E,x,M):R=N();break;default:if(j&1)(U!==1||y.type.toLowerCase()!==k.tagName.toLowerCase())&&!w(k)?R=N():R=h(k,y,S,E,x,M);else if(j&6){y.slotScopeIds=x;const G=r(k);if(I?R=g(k):Qr(k)&&k.data==="teleport start"?R=g(k,k.data,"teleport end"):R=o(k),t(y,G,null,S,E,Ed(G),M),Po(y)&&!y.type.__asyncResolved){let H;I?(H=A(ye),H.anchor=R?R.previousSibling:G.lastChild):H=k.nodeType===3?xe(""):A("div"),H.el=k,y.component.subTree=H}}else j&64?U!==8?R=N():R=y.type.hydrate(k,y,S,E,x,M,e,p):j&128?R=y.type.hydrate(k,y,S,E,Ed(r(k)),x,M,e,d):Zo("Invalid HostVNode type:",V,`(${typeof V})`)}return $!=null&&nl($,null,E,y),R},h=(k,y,S,E,x,M)=>{M=M||!!y.dynamicChildren;const{type:I,props:N,patchFlag:V,shapeFlag:$,dirs:j,transition:X}=y,U=I==="input"||I==="option";if(U||V!==-1){j&&Oi(y,null,S,"created");let R=!1;if(w(k)){R=l2(null,X)&&S&&S.vnode.props&&S.vnode.props.appear;const H=k.content.firstChild;if(R){const se=H.getAttribute("class");se&&(H.$cls=se),X.beforeEnter(H)}b(H,k,S),y.el=k=H}if($&16&&!(N&&(N.innerHTML||N.textContent))){let H=p(k.firstChild,y,k,S,E,x,M),se=!1;for(;H;){Rc(k,1)||(se||(Zo("Hydration children mismatch on",k,` 20Server rendered element contains more child nodes than client vdom.`),se=!0),Vr());const ue=H;H=H.nextSibling,a(ue)}}else if($&8){let H=y.children;H[0]===` 21`&&(k.tagName==="PRE"||k.tagName==="TEXTAREA")&&(H=H.slice(1));const{textContent:se}=k;se!==H&&se!==H.replace(/\r\n|\r/g,` 22`)&&(Rc(k,0)||(Zo("Hydration text content mismatch on",k,` 23 - rendered on server: ${se} 24 - expected on client: ${H}`),Vr()),k.textContent=y.children)}if(N){const H=k.tagName.includes("-");for(const se in N)!(j&&j.some(ue=>ue.dir.created))&&YT(k,se,N[se],y,S)&&Vr(),(U&&(se.endsWith("value")||se==="indeterminate")||sd(se)&&!wa(se)||se[0]==="."||H&&!wa(se))&&s(k,se,null,N[se],void 0,S)}let G;(G=N&&N.onVnodeBeforeMount)&&Ss(G,S,y),j&&Oi(y,null,S,"beforeMount"),((G=N&&N.onVnodeMounted)||j||R)&&h2(()=>{G&&Ss(G,S,y),R&&X.enter(k),j&&Oi(y,null,S,"mounted")},E)}return k.nextSibling},p=(k,y,S,E,x,M,I)=>{I=I||!!y.dynamicChildren;const N=y.children,V=N.length;let $=!1;for(let j=0;j<V;j++){const X=I?N[j]:N[j]=Os(N[j]),U=X.type===kr;k?(U&&!I&&j+1<V&&Os(N[j+1]).type===kr&&(l(i(k.data.slice(X.children.length)),S,o(k)),k.data=X.children),k=d(k,X,E,x,M,I)):U&&!X.children?l(X.el=i(""),S):(Rc(S,1)||($||(Zo("Hydration children mismatch on",S,` 25Server rendered element contains fewer child nodes than client vdom.`),$=!0),Vr()),n(null,X,S,null,E,x,Ed(S),M))}return k},m=(k,y,S,E,x,M)=>{const{slotScopeIds:I}=y;I&&(x=x?x.concat(I):I);const N=r(k),V=p(o(k),y,N,S,E,x,M);return V&&Qr(V)&&V.data==="]"?o(y.anchor=V):(Vr(),l(y.anchor=c("]"),N,V),V)},v=(k,y,S,E,x,M)=>{if(Rc(k.parentElement,1)||(Zo(`Hydration node mismatch: 26- rendered on server:`,k,k.nodeType===3?"(text)":Qr(k)&&k.data==="["?"(start of fragment)":"",` 27- expected on client:`,y.type),Vr()),y.el=null,M){const V=g(k);for(;;){const $=o(k);if($&&$!==V)a($);else break}}const I=o(k),N=r(k);return a(k),n(null,y,N,I,S,E,Ed(N),x),S&&(S.vnode.el=y.el,jh(S,y.el)),I},g=(k,y="[",S="]")=>{let E=0;for(;k;)if(k=o(k),k&&Qr(k)&&(k.data===y&&E++,k.data===S)){if(E===0)return o(k);E--}return k},b=(k,y,S)=>{const E=y.parentNode;E&&E.replaceChild(k,y);let x=S;for(;x;)x.vnode.el===y&&(x.vnode.el=x.subTree.el=k),x=x.parent},w=k=>k.nodeType===1&&k.tagName==="TEMPLATE";return[u,d]}function YT(e,t,n,s,i){let o,r,a,l;if(t==="class")e.$cls?(a=e.$cls,delete e.$cls):a=e.getAttribute("class"),l=Z(n),XT(dy(a||""),dy(l))||(o=2,r="class");else if(t==="style"){a=e.getAttribute("style")||"",l=$t(n)?n:Kx(Ot(n));const c=fy(a),u=fy(l);if(s.dirs)for(const{dir:d,value:h}of s.dirs)d.name==="show"&&!h&&u.set("display","none");i&&Fk(i,s,u),QT(c,u)||(o=3,r="style")}else(e instanceof SVGElement&&Qx(t)||e instanceof HTMLElement&&(ty(t)||Xx(t)))&&(ty(t)?(a=e.hasAttribute(t),l=Pg(n)):n==null?(a=e.hasAttribute(t),l=!1):(e.hasAttribute(t)?a=e.getAttribute(t):t==="value"&&e.tagName==="TEXTAREA"?a=e.value:a=!1,l=Jx(n)?String(n):!1),a!==l&&(o=4,r=t));if(o!=null&&!Rc(e,o)){const c=h=>h===!1?"(not rendered)":`${r}="${h}"`,u=`Hydration ${Uk[o]} mismatch on`,d=` 28 - rendered on server: ${c(a)} 29 - expected on client: ${c(l)} 30 Note: this mismatch is check-only. The DOM will not be rectified in production due to performance overhead. 31 You should fix the source of the mismatch.`;return Zo(u,e,d),!0}return!1}function dy(e){return new Set(e.trim().split(/\s+/))}function XT(e,t){if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0}function fy(e){const t=new Map;for(const n of e.split(";")){let[s,i]=n.split(":");s=s.trim(),i=i&&i.trim(),s&&i&&t.set(s,i)}return t}function QT(e,t){if(e.size!==t.size)return!1;for(const[n,s]of e)if(s!==t.get(n))return!1;return!0}function Fk(e,t,n){const s=e.subTree;if(e.getCssVars&&(t===s||s&&s.type===ye&&s.children.includes(t))){const i=e.getCssVars();for(const o in i){const r=ik(i[o]);n.set(`--${eT(o)}`,r)}}t===s&&e.parent&&Fk(e.parent,e.vnode,n)}const hy="data-allow-mismatch",Uk={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Rc(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(hy);)e=e.parentElement;const n=e&&e.getAttribute(hy);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return t===0&&s.includes("children")?!0:s.includes(Uk[t])}}Lh().requestIdleCallback;Lh().cancelIdleCallback;function JT(e,t){if(Qr(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(Qr(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Po=e=>!!e.type.__asyncLoader;function ji(e){it(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:i=200,hydrate:o,timeout:r,suspensible:a=!0,onError:l}=e;let c=null,u,d=0;const h=()=>(d++,c=null,p()),p=()=>{let m;return c||(m=c=t().catch(v=>{if(v=v instanceof Error?v:new Error(String(v)),l)return new Promise((g,b)=>{l(v,()=>g(h()),()=>b(v),d+1)});throw v}).then(v=>m!==c&&c?c:(v&&(v.__esModule||v[Symbol.toStringTag]==="Module")&&(v=v.default),u=v,v)))};
vendor: 4,621 bytes, line 31
31return J({name:"AsyncComponentWrapper",__asyncLoader:p,__asyncHydrate(m,v,g){let b=!1;(v.bu||(v.bu=[])).push(()=>b=!0);const w=()=>{b||g()},k=o?()=>{const y=o(w,S=>JT(m,S));y&&(v.bum||(v.bum=[])).push(y)}:w;u?k():p().then(()=>!v.isUnmounted&&k())},get __asyncResolved(){return u},setup(){const m=jn;if(Hg(m),u)return()=>xd(u,m);const v=k=>{c=null,jl(k,m,13,!s)};if(a&&m.suspense||xa)return p().then(k=>()=>xd(k,m)).catch(k=>(v(k),()=>s?A(s,{error:k}):null));const g=P(!1),b=P(),w=P(!!i);return i&&setTimeout(()=>{w.value=!1},i),r!=null&&setTimeout(()=>{if(!g.value&&!b.value){const k=new Error(`Async component timed out after ${r}ms.`);v(k),b.value=k}},r),p().then(()=>{g.value=!0,m.parent&&od(m.parent.vnode)&&m.parent.update()}).catch(k=>{v(k),b.value=k}),()=>{if(g.value&&u)return xd(u,m);if(b.value&&s)return A(s,{error:b.value});if(n&&!w.value)return xd(n,m)}}})}function xd(e,t){const{ref:n,props:s,children:i,ce:o}=t.vnode,r=A(e,s,i);return r.ref=n,r.ce=o,delete t.vnode.ce,r}const od=e=>e.type.__isKeepAlive,ZT={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Mn(),s=n.ctx;if(!s.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const i=new Map,o=new Set;let r=null;const a=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=s,h=d("div");s.activate=(w,k,y,S,E)=>{const x=w.component;c(w,k,y,0,a),l(x.vnode,w,k,y,x,a,S,w.slotScopeIds,E),Sn(()=>{x.isDeactivated=!1,x.a&&el(x.a);const M=w.props&&w.props.onVnodeMounted;M&&Ss(M,x.parent,w)},a)},s.deactivate=w=>{const k=w.component;wf(k.m),wf(k.a),c(w,h,null,1,a),Sn(()=>{k.da&&el(k.da);const y=w.props&&w.props.onVnodeUnmounted;y&&Ss(y,k.parent,w),k.isDeactivated=!0},a)};function p(w){Gp(w),u(w,n,a,!0)}function m(w){i.forEach((k,y)=>{const S=Cf(Po(k)?k.type.__asyncResolved||{}:k.type);S&&!w(S)&&v(y)})}function v(w){const k=i.get(w);k&&(!r||!pi(k,r))?p(k):r&&Gp(r),i.delete(w),o.delete(w)}be(()=>[e.include,e.exclude],([w,k])=>{w&&m(y=>Ic(w,y)),k&&m(y=>!Ic(k,y))},{flush:"post",deep:!0});let g=null;const b=()=>{g!=null&&(_f(n.subTree.type)?Sn(()=>{i.set(g,Td(n.subTree))},n.subTree.suspense):i.set(g,Td(n.subTree)))};return je(b),zg(b),et(()=>{i.forEach(w=>{const{subTree:k,suspense:y}=n,S=Td(k);if(w.type===S.type&&w.key===S.key){Gp(S);const E=S.component.da;E&&Sn(E,y);return}p(w)})}),()=>{if(g=null,!t.default)return r=null;const w=t.default(),k=w[0];if(w.length>1)return r=null,w;if(!Lo(k)||!(k.shapeFlag&4)&&!(k.shapeFlag&128))return r=null,k;let y=Td(k);if(y.type===_n)return r=null,y;const S=y.type,E=Cf(Po(y)?y.type.__asyncResolved||{}:S),{include:x,exclude:M,max:I}=e;if(x&&(!E||!Ic(x,E))||M&&E&&Ic(M,E))return y.shapeFlag&=-257,r=y,k;const N=y.key==null?S:y.key,V=i.get(N);return y.el&&(y=Oo(y),k.shapeFlag&128&&(k.ssContent=y)),g=N,V?(y.el=V.el,y.component=V.component,y.transition&&Er(y,y.transition),y.shapeFlag|=512,o.delete(N),o.add(N)):(o.add(N),I&&o.size>parseInt(I,10)&&v(o.values().next().value)),y.shapeFlag|=256,r=y,_f(k.type)?k:y}}},Hk=ZT;function Ic(e,t){return Xe(e)?e.some(n=>Ic(n,t)):$t(e)?e.split(",").includes(t):Ux(e)?(e.lastIndex=0,e.test(t)):!1}function La(e,t){Vk(e,"a",t)}function rd(e,t){Vk(e,"da",t)}function Vk(e,t,n=jn){const s=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(zh(t,s,n),n){let i=n.parent;for(;i&&i.parent;)od(i.parent.vnode)&&eA(s,t,n,i),i=i.parent}}function eA(e,t,n,s){const i=zh(t,e,s,!0);ui(()=>{xg(s[t],i)},n)}function Gp(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Td(e){return e.shapeFlag&128?e.ssContent:e}function zh(e,t,n=jn,s=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{Ki();const a=ql(n),l=ki(t,n,e,r);return a(),Yi(),l});return s?i.unshift(o):i.push(o),o}}const Vo=e=>(t,n=jn)=>{(!xa||e==="sp")&&zh(e,(...s)=>t(...s),n)},bs=Vo("bm"),je=Vo("m"),Vg=Vo("bu"),zg=Vo("u"),et=Vo("bum"),ui=Vo("um"),Wg=Vo("sp"),tA=Vo("rtg"),nA=Vo("rtc");function zk(e,t=jn){zh("ec",e,t)}const jg="components",sA="directives";function Gg(e,t){return qg(jg,e,!0,t)||e}const Wk=Symbol.for("v-ndc");function nn(e){return $t(e)?qg(jg,e,!1)||e:e||Wk}function An(e){return qg(sA,e)}function qg(e,t,n=!0,s=!1){const i=Gn||jn;if(i){const o=i.type;if(e===jg){const a=Cf(o,!1);if(a&&(a===t||a===ds(t)||a===$h(ds(t))))return o}const r=py(i[e]||o[e],t)||py(i.appContext[e],t);return!r&&s?o:r}}function py(e,t){return e&&(e[t]||e[ds(t)]||e[$h(ds(t))])}function We(e,t,n,s){let i;const o=n&&n[s],r=Xe(e);if(r||$t(e)){const a=r&&ka(e);let l=!1,c=!1;a&&(l=!Ns(e),c=$o(e),e=Dh(e)),i=new Array(e.length);for(let u=0,d=e.length;u<d;
31u++)i[u]=t(l?c?Il(_i(e[u])):_i(e[u]):e[u],u,void 0,o&&o[u])}else if(typeof e=="number"){i=new Array(e);for(let a=0;a<e;a++)i[a]=t(a+1,a,void 0,o&&o[a])}else if(Lt(e))if(e[Symbol.iterator])i=Array.from(e,(a,l)=>t(a,l,void 0,o&&o[l]));else{const a=Object.keys(e);i=new Array(a.length);for(let l=0,c=a.length;l<c;l++){const u=a[l];i[l]=t(e[u],u,l,o&&o[l])}}else i=[];return n&&(n[s]=i),i}function Is(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(Xe(s))for(let i=0;i<s.length;i++)e[s[i].name]=s[i].fn;else s&&(e[s.name]=s.key?(...i)=>{const o=s.fn(...i);return o&&(o.key=s.key),o}:s.fn)}return e}function Ve(e,t,n={},s,i){if(Gn.ce||Gn.parent&&Po(Gn.parent)&&Gn.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),_(),L(ye,null,[A("slot",n,s&&s())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),_();const r=o&&jk(o(n)),a=n.key||r&&r.key,l=L(ye,{key:(a&&!Hs(a)?a:`_${t}`)+(!r&&s?"_fb":"")},r||(s?s():[]),r&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function jk(e){return e.some(t=>Lo(t)?!(t.type===_n||t.type===ye&&!jk(t.children)):!0)?e:null}function Kg(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Xd(s)]=e[s];return n}const Qm=e=>e?g2(e)?Gh(e):Qm(e.parent):null,qc=kn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Qm(e.parent),$root:e=>Qm(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Kk(e),$forceUpdate:e=>e.f||(e.f=()=>{Ng(e.update)}),$nextTick:e=>e.n||(e.n=un.bind(e.proxy)),$watch:e=>UT.bind(e)}),qp=(e,t)=>e!==Et&&!e.__isScriptSetup&&Nt(e,t),iA={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:i,props:o,accessCache:r,type:a,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(qp(s,t))return r[t]=1,s[t];if(i!==Et&&Nt(i,t))return r[t]=2,i[t];if(Nt(o,t))return r[t]=3,o[t];if(n!==Et&&Nt(n,t))return r[t]=4,n[t];Jm&&(r[t]=0)}}const c=qc[t];let u,d;if(c)return t==="$attrs"&&is(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==Et&&Nt(n,t))return r[t]=4,n[t];if(d=l.config.globalProperties,Nt(d,t))return d[t]},set({_:e},t,n){const{data:s,setupState:i,ctx:o}=e;return qp(i,t)?(i[t]=n,!0):s!==Et&&Nt(s,t)?(s[t]=n,!0):Nt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:i,props:o,type:r}},a){let l;return!!(n[a]||e!==Et&&a[0]!=="$"&&Nt(e,a)||qp(t,a)||Nt(o,a)||Nt(s,a)||Nt(qc,a)||Nt(i.config.globalProperties,a)||(l=r.__cssModules)&&l[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Nt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Yg(){return Gk().slots}function oA(){return Gk().attrs}function Gk(e){const t=Mn();return t.setupContext||(t.setupContext=y2(t))}function bf(e){return Xe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function rA(e,t){return!e||!t?e||t:Xe(e)&&Xe(t)?e.concat(t):kn({},bf(e),bf(t))}function on(e){const t=Mn(),n=xa;let s=e();Su(),n&&il(!1);const i=()=>{ql(t),n&&il(!0)},o=()=>{Mn()!==t&&t.scope.off(),Su(),n&&il(!1)};return Tg(s)&&(s=s.catch(r=>{throw i(),Promise.resolve().then(()=>Promise.resolve().then(o)),r})),[s,()=>{i(),Promise.resolve().then(o)}]}let Jm=!0;function aA(e){const t=Kk(e),n=e.proxy,s=e.ctx;Jm=!1,t.beforeCreate&&my(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:r,watch:a,provide:l,inject:c,created:u,beforeMount:d,mounted:h,beforeUpdate:p,updated:m,activated:v,deactivated:g,beforeDestroy:b,beforeUnmount:w,destroyed:k,unmounted:y,render:S,renderTracked:E,renderTriggered:x,errorCaptured:M,serverPrefetch:I,expose:N,inheritAttrs:V,components:$,directives:j,filters:X}=t;if(c&&lA(c,s,null),r)for(const G in r){const H=r[G];it(H)&&(s[G]=H.bind(n))}if(i){const G=i.call(n,n);Lt(G)&&(e.data=bt(G))}if(Jm=!0,o)for(const G in o){const H=o[G],se=it(H)?H.bind(n,n):it(H.get)?H.get.bind(n,n):bi,ue=!it(H)&&it(H.set)?H.set.bind(n):bi,de=C({get:se,set:ue});Object.defineProperty(s,G,{enumerable:!0,configurable:!0,get:()=>de.value,set:ke=>de.value=ke})}if(a)for(const G in a)qk(a[G],s,n,G);
vendor: 5,198 bytes, line 31
31if(l){const G=it(l)?l.call(n):l;Reflect.ownKeys(G).forEach(H=>{gt(H,G[H])})}u&&my(u,e,"c");function R(G,H){Xe(H)?H.forEach(se=>G(se.bind(n))):H&&G(H.bind(n))}if(R(bs,d),R(je,h),R(Vg,p),R(zg,m),R(La,v),R(rd,g),R(zk,M),R(nA,E),R(tA,x),R(et,w),R(ui,y),R(Wg,I),Xe(N))if(N.length){const G=e.exposed||(e.exposed={});N.forEach(H=>{Object.defineProperty(G,H,{get:()=>n[H],set:se=>n[H]=se,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===bi&&(e.render=S),V!=null&&(e.inheritAttrs=V),$&&(e.components=$),j&&(e.directives=j),I&&Hg(e)}function lA(e,t,n=bi){Xe(e)&&(e=Zm(e));for(const s in e){const i=e[s];let o;Lt(i)?"default"in i?o=ut(i.from||s,i.default,!0):o=ut(i.from||s):o=ut(i),Ct(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[s]=o}}function my(e,t,n){ki(Xe(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function qk(e,t,n,s){let i=s.includes(".")?Ik(n,s):()=>n[s];if($t(e)){const o=t[e];it(o)&&be(i,o)}else if(it(e))be(i,e.bind(n));else if(Lt(e))if(Xe(e))e.forEach(o=>qk(o,t,n,s));else{const o=it(e.handler)?e.handler.bind(n):t[e.handler];it(o)&&be(i,o,e)}}function Kk(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!s?l=t:(l={},i.length&&i.forEach(c=>yf(l,c,r,!0)),yf(l,t,r)),Lt(t)&&o.set(t,l),l}function yf(e,t,n,s=!1){const{mixins:i,extends:o}=t;o&&yf(e,o,n,!0),i&&i.forEach(r=>yf(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const a=cA[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const cA={data:vy,props:gy,emits:gy,methods:Mc,computed:Mc,beforeCreate:fs,created:fs,beforeMount:fs,mounted:fs,beforeUpdate:fs,updated:fs,beforeDestroy:fs,beforeUnmount:fs,destroyed:fs,unmounted:fs,activated:fs,deactivated:fs,errorCaptured:fs,serverPrefetch:fs,components:Mc,directives:Mc,watch:dA,provide:vy,inject:uA};function vy(e,t){return t?e?function(){return kn(it(e)?e.call(this,this):e,it(t)?t.call(this,this):t)}:t:e}function uA(e,t){return Mc(Zm(e),Zm(t))}function Zm(e){if(Xe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function fs(e,t){return e?[...new Set([].concat(e,t))]:t}function Mc(e,t){return e?kn(Object.create(null),e,t):t}function gy(e,t){return e?Xe(e)&&Xe(t)?[...new Set([...e,...t])]:kn(Object.create(null),bf(e),bf(t??{})):t}function dA(e,t){if(!e)return t;if(!t)return e;const n=kn(Object.create(null),e);for(const s in t)n[s]=fs(e[s],t[s]);return n}function Yk(){return{app:null,config:{isNativeTag:Y_,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let fA=0;function hA(e,t){return function(s,i=null){it(s)||(s=kn({},s)),i!=null&&!Lt(i)&&(i=null);const o=Yk(),r=new WeakSet,a=[];let l=!1;const c=o.app={_uid:fA++,_component:s,_props:i,_container:null,_context:o,_instance:null,version:jA,get config(){return o.config},set config(u){},use(u,...d){return r.has(u)||(u&&it(u.install)?(r.add(u),u.install(c,...d)):it(u)&&(r.add(u),u(c,...d))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,d){return d?(o.components[u]=d,c):o.components[u]},directive(u,d){return d?(o.directives[u]=d,c):o.directives[u]},mount(u,d,h){if(!l){const p=c._ceVNode||A(s,i);return p.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),d&&t?t(p,u):e(p,u,h),l=!0,c._container=u,u.__vue_app__=c,Gh(p.component)}},onUnmount(u){a.push(u)},unmount(){l&&(ki(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,d){return o.provides[u]=d,c},runWithContext(u){const d=Sa;Sa=c;try{return u()}finally{Sa=d}}};return c}}let Sa=null;function by(e,t,n=Et){const s=Mn(),i=ds(t),o=Ji(t),r=Xk(e,i),a=Hh((l,c)=>{let u,d=Et,h;return FT(()=>{const p=e[i];ss(u,p)&&(u=p,c())}),{get(){return l(),n.get?n.get(u):u},set(p){const m=n.set?n.set(p):p;if(!ss(m,u)&&!(d!==Et&&ss(p,d)))return;const v=s.vnode.props;v&&(t in v||i in v||o in v)&&(`onUpdate:${t}`in v||`onUpdate:${i}`in v||`onUpdate:${o}`in v)||(u=p,c()),s.emit(`update:${t}`,m),ss(p,m)&&ss(p,d)&&!ss(m,h)&&c(),d=p,h=m}}});return a[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?r||Et:a,done:!1}:{done:!0}}}},a}const Xk=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ds(t)}Modifiers`]||e[`${Ji(t)}Modifiers`];function pA(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Et;let i=n;const o=t.startsWith("update:"),r=o&&Xk(s,t.slice(7));r&&(r.trim&&(i=n.map(u=>$t(u)?u.trim():u)),r.number&&(i=n.map(Ag)));let a,l=s[a=Xd(t)]||s[a=Xd(ds(t))];!l&&o&&(l=s[a=Xd(Ji(t))]),l&&ki(l,e,6,i);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,ki(c,e,6,i)}}const mA=new WeakMap;function Qk(e,t,n=!1){const s=n?mA:t.emitsCache,i=s.get(e);if(i!==void 0)return i;const o=e.emits;let r={},a=!1;if(!it(e)){const l=c=>{const u=Qk(c,t,!0);u&&(a=!0,kn(r,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(Lt(e)&&s.set(e,null),null):(Xe(o)?o.forEach(l=>
vendor: 4,580 bytes, line 31
31r[l]=null):kn(r,o),Lt(e)&&s.set(e,r),r)}function Wh(e,t){return!e||!sd(t)?!1:(t=t.slice(2).replace(/Once$/,""),Nt(e,t[0].toLowerCase()+t.slice(1))||Nt(e,Ji(t))||Nt(e,t))}function Kp(e){const{type:t,vnode:n,proxy:s,withProxy:i,propsOptions:[o],slots:r,attrs:a,emit:l,render:c,renderCache:u,props:d,data:h,setupState:p,ctx:m,inheritAttrs:v}=e,g=vf(e);let b,w;try{if(n.shapeFlag&4){const y=i||s,S=y;b=Os(c.call(S,y,u,d,p,h,m)),w=a}else{const y=t;b=Os(y.length>1?y(d,{attrs:a,slots:r,emit:l}):y(d,null)),w=t.props?a:gA(a)}}catch(y){Yc.length=0,jl(y,e,1),b=A(_n)}let k=b;if(w&&v!==!1){const y=Object.keys(w),{shapeFlag:S}=k;y.length&&S&7&&(o&&y.some(Rh)&&(w=bA(w,o)),k=Oo(k,w,!1,!0))}return n.dirs&&(k=Oo(k,null,!1,!0),k.dirs=k.dirs?k.dirs.concat(n.dirs):n.dirs),n.transition&&Er(k,n.transition),b=k,vf(g),b}function vA(e,t=!0){let n;for(let s=0;s<e.length;s++){const i=e[s];if(Lo(i)){if(i.type!==_n||i.children==="v-if"){if(n)return;n=i}}else return}return n}const gA=e=>{let t;for(const n in e)(n==="class"||n==="style"||sd(n))&&((t||(t={}))[n]=e[n]);return t},bA=(e,t)=>{const n={};for(const s in e)(!Rh(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function yA(e,t,n){const{props:s,children:i,component:o}=e,{props:r,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?yy(s,r,c):!!r;if(l&8){const u=t.dynamicProps;for(let d=0;d<u.length;d++){const h=u[d];if(Jk(r,s,h)&&!Wh(c,h))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:s===r?!1:s?r?yy(s,r,c):!0:!!r;return!1}function yy(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let i=0;i<s.length;i++){const o=s[i];if(Jk(t,e,o)&&!Wh(n,o))return!0}return!1}function Jk(e,t,n){const s=e[n],i=t[n];return n==="style"&&Lt(s)&&Lt(i)?!Rg(s,i):s!==i}function jh({vnode:e,parent:t,suspense:n},s){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.suspense.vnode.el=i.el=s,e=i),i===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Zk={},e2=()=>Object.create(Zk),t2=e=>Object.getPrototypeOf(e)===Zk;function wA(e,t,n,s=!1){const i={},o=e2();e.propsDefaults=Object.create(null),n2(e,t,i,o);for(const r in e.propsOptions[0])r in i||(i[r]=void 0);n?e.props=s?i:$a(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function _A(e,t,n,s){const{props:i,attrs:o,vnode:{patchFlag:r}}=e,a=wt(i),[l]=e.propsOptions;let c=!1;if((s||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d<u.length;d++){let h=u[d];if(Wh(e.emitsOptions,h))continue;const p=t[h];if(l)if(Nt(o,h))p!==o[h]&&(o[h]=p,c=!0);else{const m=ds(h);i[m]=ev(l,a,m,p,e,!1)}else p!==o[h]&&(o[h]=p,c=!0)}}}else{n2(e,t,i,o)&&(c=!0);let u;for(const d in a)(!t||!Nt(t,d)&&((u=Ji(d))===d||!Nt(t,u)))&&(l?n&&(n[d]!==void 0||n[u]!==void 0)&&(i[d]=ev(l,a,d,void 0,e,!0)):delete i[d]);if(o!==a)for(const d in o)(!t||!Nt(t,d))&&(delete o[d],c=!0)}c&&So(e.attrs,"set","")}function n2(e,t,n,s){const[i,o]=e.propsOptions;let r=!1,a;if(t)for(let l in t){if(wa(l))continue;const c=t[l];let u;i&&Nt(i,u=ds(l))?!o||!o.includes(u)?n[u]=c:(a||(a={}))[u]=c:Wh(e.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,r=!0)}if(o){const l=wt(n),c=a||Et;for(let u=0;u<o.length;u++){const d=o[u];n[d]=ev(i,l,d,c[d],e,!Nt(c,d))}}return r}function ev(e,t,n,s,i,o){const r=e[n];if(r!=null){const a=Nt(r,"default");if(a&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&it(l)){const{propsDefaults:c}=i;if(n in c)s=c[n];else{const u=ql(i);s=c[n]=l.call(null,t),u()}}else s=l;i.ce&&i.ce._setProp(n,s)}r[0]&&(o&&!a?s=!1:r[1]&&(s===""||s===Ji(n))&&(s=!0))}return s}const kA=new WeakMap;function s2(e,t,n=!1){const s=n?kA:t.propsCache,i=s.get(e);if(i)return i;const o=e.props,r={},a=[];let l=!1;if(!it(e)){const u=d=>{l=!0;const[h,p]=s2(d,t,!0);kn(r,h),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!l)return Lt(e)&&s.set(e,Ja),Ja;if(Xe(o))for(let u=0;u<o.length;u++){const d=ds(o[u]);wy(d)&&(r[d]=Et)}else if(o)for(const u in o){const d=ds(u);if(wy(d)){const h=o[u],p=r[d]=Xe(h)||it(h)?{type:h}:kn({},h),m=p.type;let v=!1,g=!0;if(Xe(m))for(let b=0;b<m.length;++b){const w=m[b],k=it(w)&&w.name;if(k==="Boolean"){v=!0;break}else k==="String"&&(g=!1)}else v=it(m)&&m.name==="Boolean";p[0]=v,p[1]=g,(v||Nt(p,"default"))&&a.push(d)}}const c=[r,a];return Lt(e)&&s.set(e,c),c}function wy(e){return e[0]!=="$"&&!wa(e)}const Xg=e=>e==="_"||e==="_ctx"||e==="$stable",Qg=e=>Xe(e)?e.map(Os):[Os(e)],SA=(e,t,n)=>{if(t._n)return t;const s=K((...i)=>Qg(t(...i)),n);return s._c=!1,s}
vendor: 4,410 bytes, line 31
31,i2=(e,t,n)=>{const s=e._ctx;for(const i in e){if(Xg(i))continue;const o=e[i];if(it(o))t[i]=SA(i,o,s);else if(o!=null){const r=Qg(o);t[i]=()=>r}}},o2=(e,t)=>{const n=Qg(t);e.slots.default=()=>n},r2=(e,t,n)=>{for(const s in t)(n||!Xg(s))&&(e[s]=t[s])},CA=(e,t,n)=>{const s=e.slots=e2();if(e.vnode.shapeFlag&32){const i=t._;i?(r2(s,t,n),n&&Z_(s,"_",i,!0)):i2(t,s)}else t&&o2(e,t)},EA=(e,t,n)=>{const{vnode:s,slots:i}=e;let o=!0,r=Et;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:r2(i,t,n):(o=!t.$stable,i2(t,i)),r=t}else t&&(o2(e,t),r={default:1});if(o)for(const a in i)!Xg(a)&&r[a]==null&&delete i[a]},Sn=h2;function xA(e){return a2(e)}function TA(e){return a2(e,KT)}function a2(e,t){const n=Lh();n.__VUE__=!0;const{insert:s,remove:i,patchProp:o,createElement:r,createText:a,createComment:l,setText:c,setElementText:u,parentNode:d,nextSibling:h,setScopeId:p=bi,insertStaticContent:m}=e,v=(B,W,oe,he=null,re=null,F=null,z=void 0,ee=null,te=!!W.dynamicChildren)=>{if(B===W)return;B&&!pi(B,W)&&(he=ie(B),ke(B,re,F,!0),B=null),W.patchFlag===-2&&(te=!1,W.dynamicChildren=null);const{type:we,ref:Ee,shapeFlag:ne}=W;switch(we){case kr:g(B,W,oe,he);break;case _n:b(B,W,oe,he);break;case Kc:B==null&&w(W,oe,he,z);break;case ye:$(B,W,oe,he,re,F,z,ee,te);break;default:ne&1?S(B,W,oe,he,re,F,z,ee,te):ne&6?j(B,W,oe,he,re,F,z,ee,te):(ne&64||ne&128)&&we.process(B,W,oe,he,re,F,z,ee,te,ve)}Ee!=null&&re?nl(Ee,B&&B.ref,F,W||B,!W):Ee==null&&B&&B.ref!=null&&nl(B.ref,null,F,B,!0)},g=(B,W,oe,he)=>{if(B==null)s(W.el=a(W.children),oe,he);else{const re=W.el=B.el;W.children!==B.children&&c(re,W.children)}},b=(B,W,oe,he)=>{B==null?s(W.el=l(W.children||""),oe,he):W.el=B.el},w=(B,W,oe,he)=>{[B.el,B.anchor]=m(B.children,W,oe,he,B.el,B.anchor)},k=({el:B,anchor:W},oe,he)=>{let re;for(;B&&B!==W;)re=h(B),s(B,oe,he),B=re;s(W,oe,he)},y=({el:B,anchor:W})=>{let oe;for(;B&&B!==W;)oe=h(B),i(B),B=oe;i(W)},S=(B,W,oe,he,re,F,z,ee,te)=>{if(W.type==="svg"?z="svg":W.type==="math"&&(z="mathml"),B==null)E(W,oe,he,re,F,z,ee,te);else{const we=B.el&&B.el._isVueCE?B.el:null;try{we&&we._beginPatch(),I(B,W,re,F,z,ee,te)}finally{we&&we._endPatch()}}},E=(B,W,oe,he,re,F,z,ee)=>{let te,we;const{props:Ee,shapeFlag:ne,transition:me,dirs:Pe}=B;if(te=B.el=r(B.type,F,Ee&&Ee.is,Ee),ne&8?u(te,B.children):ne&16&&M(B.children,te,null,he,re,Yp(B,F),z,ee),Pe&&Oi(B,null,he,"created"),x(te,B,B.scopeId,z,he),Ee){for(const Ze in Ee)Ze!=="value"&&!wa(Ze)&&o(te,Ze,null,Ee[Ze],F,he);"value"in Ee&&o(te,"value",null,Ee.value,F),(we=Ee.onVnodeBeforeMount)&&Ss(we,he,B)}Pe&&Oi(B,null,he,"beforeMount");const He=l2(re,me);He&&me.beforeEnter(te),s(te,W,oe),((we=Ee&&Ee.onVnodeMounted)||He||Pe)&&Sn(()=>{try{we&&Ss(we,he,B),He&&me.enter(te),Pe&&Oi(B,null,he,"mounted")}finally{}},re)},x=(B,W,oe,he,re)=>{if(oe&&p(B,oe),he)for(let F=0;F<he.length;F++)p(B,he[F]);if(re){let F=re.subTree;if(W===F||_f(F.type)&&(F.ssContent===W||F.ssFallback===W)){const z=re.vnode;x(B,z,z.scopeId,z.slotScopeIds,re.parent)}}},M=(B,W,oe,he,re,F,z,ee,te=0)=>{for(let we=te;we<B.length;we++){const Ee=B[we]=ee?mo(B[we]):Os(B[we]);v(null,Ee,W,oe,he,re,F,z,ee)}},I=(B,W,oe,he,re,F,z)=>{const ee=W.el=B.el;let{patchFlag:te,dynamicChildren:we,dirs:Ee}=W;te|=B.patchFlag&16;const ne=B.props||Et,me=W.props||Et;let Pe;if(oe&&zr(oe,!1),(Pe=me.onVnodeBeforeUpdate)&&Ss(Pe,oe,W,B),Ee&&Oi(W,B,oe,"beforeUpdate"),oe&&zr(oe,!0),(ne.innerHTML&&me.innerHTML==null||ne.textContent&&me.textContent==null)&&u(ee,""),we?N(B.dynamicChildren,we,ee,oe,he,Yp(W,re),F):z||H(B,W,ee,null,oe,he,Yp(W,re),F,!1),te>0){if(te&16)V(ee,ne,me,oe,re);else if(te&2&&ne.class!==me.class&&o(ee,"class",null,me.class,re),te&4&&o(ee,"style",ne.style,me.style,re),te&8){const He=W.dynamicProps;for(let Ze=0;Ze<He.length;Ze++){const nt=He[Ze],ht=ne[nt],jt=me[nt];(jt!==ht||nt==="value")&&o(ee,nt,ht,jt,re,oe)}}te&1&&B.children!==W.children&&u(ee,W.children)}else!z&&we==null&&V(ee,ne,me,oe,re);((Pe=me.onVnodeUpdated)||Ee)&&Sn(()=>{Pe&&Ss(Pe,oe,W,B),Ee&&Oi(W,B,oe,"updated")},he)},N=(B,W,oe,he,re,F,z)=>{for(let ee=0;ee<W.length;ee++){const te=B[ee],we=W[ee],Ee=te.el&&(te.type===ye||!pi(te,we)||te.shapeFlag&198)?d(te.el):oe;v(te,we,Ee,null,he,re,F,z,!0)}},V=(B,W,oe,he,re)=>{if(W!==oe){if(W!==Et)for(const F in W)!wa(F)&&!(F in oe)&&o(B,F,W[F],null,re,he);for(const F in oe){if(wa(F))continue;const z=oe[F],ee=W[F];z!==ee&&F!=="value"&&o(B,F,ee,z,re,he)}"value"in oe&&o(B,"value",W.value,oe.value,re)}},$=(B,W,oe,he,re,F,z,ee,te)=>
vendor: 13,408 bytes, line 31
31{const we=W.el=B?B.el:a(""),Ee=W.anchor=B?B.anchor:a("");let{patchFlag:ne,dynamicChildren:me,slotScopeIds:Pe}=W;Pe&&(ee=ee?ee.concat(Pe):Pe),B==null?(s(we,oe,he),s(Ee,oe,he),M(W.children||[],oe,Ee,re,F,z,ee,te)):ne>0&&ne&64&&me&&B.dynamicChildren&&B.dynamicChildren.length===me.length?(N(B.dynamicChildren,me,oe,re,F,z,ee),(W.key!=null||re&&W===re.subTree)&&Jg(B,W,!0)):H(B,W,oe,Ee,re,F,z,ee,te)},j=(B,W,oe,he,re,F,z,ee,te)=>{W.slotScopeIds=ee,B==null?W.shapeFlag&512?re.ctx.activate(W,oe,he,z,te):X(W,oe,he,re,F,z,te):U(B,W,te)},X=(B,W,oe,he,re,F,z)=>{const ee=B.component=NA(B,he,re);if(od(B)&&(ee.ctx.renderer=ve),FA(ee,!1,z),ee.asyncDep){if(re&&re.registerDep(ee,R,z),!B.el){const te=ee.subTree=A(_n);b(null,te,W,oe),B.placeholder=te.el}}else R(ee,B,W,oe,re,F,z)},U=(B,W,oe)=>{const he=W.component=B.component;if(yA(B,W,oe))if(he.asyncDep&&!he.asyncResolved){G(he,W,oe);return}else he.next=W,he.update();else W.el=B.el,he.vnode=W},R=(B,W,oe,he,re,F,z)=>{const ee=()=>{if(B.isMounted){let{next:ne,bu:me,u:Pe,parent:He,vnode:Ze}=B;{const On=c2(B);if(On){ne&&(ne.el=Ze.el,G(B,ne,z)),On.asyncDep.then(()=>{Sn(()=>{B.isUnmounted||we()},re)});return}}let nt=ne,ht;zr(B,!1),ne?(ne.el=Ze.el,G(B,ne,z)):ne=Ze,me&&el(me),(ht=ne.props&&ne.props.onVnodeBeforeUpdate)&&Ss(ht,He,ne,Ze),zr(B,!0);const jt=Kp(B),Hn=B.subTree;B.subTree=jt,v(Hn,jt,d(Hn.el),ie(Hn),B,re,F),ne.el=jt.el,nt===null&&jh(B,jt.el),Pe&&Sn(Pe,re),(ht=ne.props&&ne.props.onVnodeUpdated)&&Sn(()=>Ss(ht,He,ne,Ze),re)}else{let ne;const{el:me,props:Pe}=W,{bm:He,m:Ze,parent:nt,root:ht,type:jt}=B,Hn=Po(W);if(zr(B,!1),He&&el(He),!Hn&&(ne=Pe&&Pe.onVnodeBeforeMount)&&Ss(ne,nt,W),zr(B,!0),me&&Ke){const On=()=>{B.subTree=Kp(B),Ke(me,B.subTree,B,re,null)};Hn&&jt.__asyncHydrate?jt.__asyncHydrate(me,B,On):On()}else{ht.ce&&ht.ce._hasShadowRoot()&&ht.ce._injectChildStyle(jt,B.parent?B.parent.type:void 0);const On=B.subTree=Kp(B);v(null,On,oe,he,B,re,F),W.el=On.el}if(Ze&&Sn(Ze,re),!Hn&&(ne=Pe&&Pe.onVnodeMounted)){const On=W;Sn(()=>Ss(ne,nt,On),re)}(W.shapeFlag&256||nt&&Po(nt.vnode)&&nt.vnode.shapeFlag&256)&&B.a&&Sn(B.a,re),B.isMounted=!0,W=oe=he=null}};B.scope.on();const te=B.effect=new ak(ee);B.scope.off();const we=B.update=te.run.bind(te),Ee=B.job=te.runIfDirty.bind(te);Ee.i=B,Ee.id=B.uid,te.scheduler=()=>Ng(Ee),zr(B,!0),we()},G=(B,W,oe)=>{W.component=B;const he=B.vnode.props;B.vnode=W,B.next=null,_A(B,W.props,he,oe),EA(B,W.children,oe),Ki(),iy(B),Yi()},H=(B,W,oe,he,re,F,z,ee,te=!1)=>{const we=B&&B.children,Ee=B?B.shapeFlag:0,ne=W.children,{patchFlag:me,shapeFlag:Pe}=W;if(me>0){if(me&128){ue(we,ne,oe,he,re,F,z,ee,te);return}else if(me&256){se(we,ne,oe,he,re,F,z,ee,te);return}}Pe&8?(Ee&16&&ge(we,re,F),ne!==we&&u(oe,ne)):Ee&16?Pe&16?ue(we,ne,oe,he,re,F,z,ee,te):ge(we,re,F,!0):(Ee&8&&u(oe,""),Pe&16&&M(ne,oe,he,re,F,z,ee,te))},se=(B,W,oe,he,re,F,z,ee,te)=>{B=B||Ja,W=W||Ja;const we=B.length,Ee=W.length,ne=Math.min(we,Ee);let me;for(me=0;me<ne;me++){const Pe=W[me]=te?mo(W[me]):Os(W[me]);v(B[me],Pe,oe,null,re,F,z,ee,te)}we>Ee?ge(B,re,F,!0,!1,ne):M(W,oe,he,re,F,z,ee,te,ne)},ue=(B,W,oe,he,re,F,z,ee,te)=>{let we=0;const Ee=W.length;let ne=B.length-1,me=Ee-1;for(;we<=ne&&we<=me;){const Pe=B[we],He=W[we]=te?mo(W[we]):Os(W[we]);if(pi(Pe,He))v(Pe,He,oe,null,re,F,z,ee,te);else break;we++}for(;we<=ne&&we<=me;){const Pe=B[ne],He=W[me]=te?mo(W[me]):Os(W[me]);if(pi(Pe,He))v(Pe,He,oe,null,re,F,z,ee,te);else break;ne--,me--}if(we>ne){if(we<=me){const Pe=me+1,He=Pe<Ee?W[Pe].el:he;for(;we<=me;)v(null,W[we]=te?mo(W[we]):Os(W[we]),oe,He,re,F,z,ee,te),we++}}else if(we>me)for(;we<=ne;)ke(B[we],re,F,!0),we++;else{const Pe=we,He=we,Ze=new Map;for(we=He;we<=me;we++){const Bn=W[we]=te?mo(W[we]):Os(W[we]);Bn.key!=null&&Ze.set(Bn.key,we)}let nt,ht=0;const jt=me-He+1;let Hn=!1,On=0;const io=new Array(jt);for(we=0;we<jt;we++)io[we]=0;for(we=Pe;we<=ne;we++){const Bn=B[we];if(ht>=jt){ke(Bn,re,F,!0);continue}let bn;if(Bn.key!=null)bn=Ze.get(Bn.key);else for(nt=He;nt<=me;nt++)if(io[nt-He]===0&&pi(Bn,W[nt])){bn=nt;break}bn===void 0?ke(Bn,re,F,!0):(io[bn-He]=we+1,bn>=On?On=bn:Hn=!0,v(Bn,W[bn],oe,null,re,F,z,ee,te),ht++)}const Ur=Hn?AA(io):Ja;for(nt=Ur.length-1,we=jt-1;we>=0;we--){const Bn=He+we,bn=W[Bn],Ai=W[Bn+1],st=Bn+1<Ee?Ai.el||u2(Ai):he;io[we]===0?v(null,bn,oe,st,re,F,z,ee,te):Hn&&(nt<0||we!==Ur[nt]?de(bn,oe,st,2):nt--)}}},de=(B,W,oe,he,re=null)=>{const{el:F,type:z,transition:ee,children:te,shapeFlag:we}=B;if(we&6){de(B.component.subTree,W,oe,he);return}if(we&128){B.suspense.move(W,oe,he);return}if(we&64){z.move(B,W,oe,ve);return}if(z===ye){s(F,W,oe);for(let ne=0;ne<te.length;ne++)de(te[ne],W,oe,he);s(B.anchor,W,oe);return}if(z===Kc){k(B,W,oe);return}if(he!==2&&we&1&&ee)if(he===0)ee.beforeEnter(F),s(F,W,oe),Sn(()=>ee.enter(F),re);else{const{leave:ne,delayLeave:me,afterLeave:Pe}=ee,He=()=>{B.ctx.isUnmounted?i(F):s(F,W,oe)},Ze=()=>{F._isLeaving&&F[Bi](!0),ne(F,()=>{He(),Pe&&Pe()})};me?me(F,He,Ze):Ze()}else s(F,W,oe)},ke=(B,W,oe,he=!1,re=!1)=>{const{type:F,props:z,ref:ee,children:te,dynamicChildren:we,shapeFlag:Ee,patchFlag:ne,dirs:me,cacheIndex:Pe,memo:He}=B;if(ne===-2&&(re=!1),ee!=null&&(Ki(),nl(ee,null,oe,B,!0),Yi()),Pe!=null&&(W.renderCache[Pe]=void 0),Ee&256){W.ctx.deactivate(B);return}const Ze=Ee&1&&me,nt=!Po(B);let ht;if(nt&&(ht=z&&z.onVnodeBeforeUnmount)&&Ss(ht,W,B),Ee&6)Q(B.component,oe,he);else{if(Ee&128){B.suspense.unmount(oe,he);return}Ze&&Oi(B,null,W,"beforeUnmount"),Ee&64?B.type.remove(B,W,oe,ve,he):we&&!we.hasOnce&&(F!==ye||ne>0&&ne&64)?ge(we,W,oe,!1,!0):(F===ye&&ne&384||!re&&Ee&16)&&ge(te,W,oe),he&&Se(B)}const jt=He!=null&&Pe==null;(nt&&(ht=z&&z.onVnodeUnmounted)||Ze||jt)&&Sn(()=>{ht&&Ss(ht,W,B),Ze&&Oi(B,null,W,"unmounted"),jt&&(B.el=null)},oe)},Se=B=>{const{type:W,el:oe,anchor:he,transition:re}=B;if(W===ye){_e(oe,he);return}if(W===Kc){y(B);return}const F=()=>{i(oe),re&&!re.persisted&&re.afterLeave&&re.afterLeave()};if(B.shapeFlag&1&&re&&!re.persisted){const{leave:z,delayLeave:ee}=re,te=()=>z(oe,F);ee?ee(B.el,F,te):te()}else F()},_e=(B,W)=>{let oe;for(;B!==W;)oe=h(B),i(B),B=oe;i(W)},Q=(B,W,oe)=>{const{bum:he,scope:re,job:F,subTree:z,um:ee,m:te,a:we}=B;wf(te),wf(we),he&&el(he),re.stop(),F&&(F.flags|=8,ke(z,B,W,oe)),ee&&Sn(ee,W),Sn(()=>{B.isUnmounted=!0},W)},ge=(B,W,oe,he=!1,re=!1,F=0)=>{for(let z=F;z<B.length;z++)ke(B[z],W,oe,he,re)},ie=B=>{if(B.shapeFlag&6)return ie(B.component.subTree);if(B.shapeFlag&128)return B.suspense.next();const W=h(B.anchor||B.el),oe=W&&W[Mk];return oe?h(oe):W};let ae=!1;const pe=(B,W,oe)=>{let he;B==null?W._vnode&&(ke(W._vnode,null,null,!0),he=W._vnode.component):v(W._vnode||null,B,W,null,null,null,oe),W._vnode=B,ae||(ae=!0,iy(he),mf(),ae=!1)},ve={p:v,um:ke,m:de,r:Se,mt:X,mc:M,pc:H,pbc:N,n:ie,o:e};let Me,Ke;return t&&([Me,Ke]=t(ve)),{render:pe,hydrate:Me,createApp:hA(pe,Me)}}function Yp({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function zr({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function l2(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Jg(e,t,n=!1){const s=e.children,i=t.children;if(Xe(s)&&Xe(i))for(let o=0;o<s.length;o++){const r=s[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=mo(i[o]),a.el=r.el),!n&&a.patchFlag!==-2&&Jg(r,a)),a.type===kr&&(a.patchFlag===-1&&(a=i[o]=mo(a)),a.el=r.el),a.type===_n&&!a.el&&(a.el=r.el)}}function AA(e){const t=e.slice(),n=[0];let s,i,o,r,a;const l=e.length;for(s=0;s<l;s++){const c=e[s];if(c!==0){if(i=n[n.length-1],e[i]<c){t[s]=i,n.push(s);continue}for(o=0,r=n.length-1;o<r;)a=o+r>>1,e[n[a]]<c?o=a+1:r=a;c<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function c2(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:c2(t)}function wf(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function u2(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?u2(t.subTree):null}const _f=e=>e.__isSuspense;let tv=0;const PA={name:"Suspense",__isSuspense:!0,process(e,t,n,s,i,o,r,a,l,c){if(e==null)RA(t,n,s,i,o,r,a,l,c);else{if(o&&o.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}IA(e,t,n,s,i,r,a,l,c)}},hydrate:MA,normalize:$A},d2=PA;function ku(e,t){const n=e.props&&e.props[t];it(n)&&n()}function RA(e,t,n,s,i,o,r,a,l){const{p:c,o:{createElement:u}}=l,d=u("div"),h=e.suspense=f2(e,i,s,t,d,n,o,r,a,l);c(null,h.pendingBranch=e.ssContent,d,null,s,h,o,r),h.deps>0?(ku(e,"onPending"),ku(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,o,r),sl(h,e.ssFallback)):h.resolve(!1,!0)}function IA(e,t,n,s,i,o,r,a,{p:l,um:c,o:{createElement:u}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const h=t.ssContent,p=t.ssFallback,{activeBranch:m,pendingBranch:v,isInFallback:g,isHydrating:b}=d;if(v)d.pendingBranch=h,pi(v,h)?(l(v,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():g&&(b||(l(m,p,n,s,i,null,o,r,a),sl(d,p)))):(d.pendingId=tv++,b?(d.isHydrating=!1,d.activeBranch=v):c(v,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=u("div"),g?(l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0?d.resolve():(l(m,p,n,s,i,null,o,r,a),sl(d,p))):m&&pi(m,h)?(l(m,h,n,s,i,d,o,r,a),d.resolve(!0)):(l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0&&d.resolve()));else if(m&&pi(m,h))l(m,h,n,s,i,d,o,r,a),sl(d,h);else if(ku(t,"onPending"),d.pendingBranch=h,h.shapeFlag&512?d.pendingId=h.component.suspenseId:d.pendingId=tv++,l(null,h,d.hiddenContainer,null,i,d,o,r,a),d.deps<=0)d.resolve();else{const{timeout:w,pendingId:k}=d;w>0?setTimeout(()=>{d.pendingId===k&&d.fallback(p)},w):w===0&&d.fallback(p)}}function f2(e,t,n,s,i,o,r,a,l,c,u=!1){const{p:d,m:h,um:p,n:m,o:{parentNode:v,remove:g}}=c;let b;const w=LA(e);w&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const k=e.props?ek(e.props.timeout):void 0,y=o,S={vnode:e,parent:t,parentComponent:n,namespace:r,container:s,hiddenContainer:i,deps:0,pendingId:tv++,timeout:typeof k=="number"?k:-1,activeBranch:null,isFallbackMountPending:!1,pendingBranch:null,isInFallback:!u,isHydrating:u,isUnmounted:!1,effects:[],resolve(E=!1,x=!1){const{vnode:M,activeBranch:I,pendingBranch:N,pendingId:V,effects:$,parentComponent:j,container:X,isInFallback:U}=S;let R=!1;S.isHydrating?S.isHydrating=!1:E||(R=I&&N.transition&&N.transition.mode==="out-in",R&&(I.transition.afterLeave=()=>{V===S.pendingId&&(h(N,X,o===y?m(I):o,0),pf($),U&&M.ssFallback&&(M.ssFallback.el=null))}),I&&!S.isFallbackMountPending&&(v(I.el)===X&&(o=m(I)),p(I,j,S,!0),!R&&U&&M.ssFallback&&Sn(()=>M.ssFallback.el=null,S)),R||h(N,X,o,0)),S.isFallbackMountPending=!1,sl(S,N),S.pendingBranch=null,S.isInFallback=!1;let G=S.parent,H=!1;for(;G;){if(G.pendingBranch){G.effects.push(...$),H=!0;break}G=G.parent}!H&&!R&&pf($),S.effects=[],w&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!x&&t.resolve()),ku(M,"onResolve")},fallback(E){if(!S.pendingBranch)return;const{vnode:x,activeBranch:M,parentComponent:I,container:N,namespace:V}=S;ku(x,"onFallback");const $=m(M),j=()=>{S.isFallbackMountPending=!1,S.isInFallback&&(d(null,E,N,$,I,null,V,a,l),sl(S,E))},X=E.transition&&E.transition.mode==="out-in";X&&(S.isFallbackMountPending=!0,M.transition.afterLeave=j),S.isInFallback=!0,p(M,I,null,!0),X||j()},move(E,x,M){S.activeBranch&&h(S.activeBranch,E,x,M),S.container=E},next(){return S.activeBranch&&m(S.activeBranch)},registerDep(E,x,M){const I=!!S.pendingBranch;I&&S.deps++;const N=E.vnode.el;E.asyncDep.catch(V=>{jl(V,E,0)}).then(V=>{if(E.isUnmounted||S.isUnmounted||S.pendingId!==E.suspenseId)return;Su(),E.asyncResolved=!0;const{vnode:$}=E;nv(E,V),N&&($.el=N);const j=!N&&E.subTree.el;x(E,$,v(N||E.subTree.el),N?null:m(E.subTree),S,r,M),j&&($.placeholder=null,g(j)),jh(E,$.el),I&&--S.deps===0&&S.resolve()})},unmount(E,x){S.isUnmounted=!0,S.activeBranch&&p(S.activeBranch,n,E,x),S.pendingBranch&&p(S.pendingBranch,n,E,x)}};return S}function MA(e,t,n,s,i,o,r,a,l){const c=t.suspense=f2(t,s,n,e.parentNode,document.createElement("div"),null,i,o,r,a,!0),u=l(e,c.pendingBranch=t.ssContent,n,c,o,r);return c.deps===0&&c.resolve(!1,!0),u}function $A(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=_y(s?n.default:n),e.ssFallback=s?_y(n.fallback):A(_n)}function _y(e){let t;if(it(e)){const n=Ml&&e._c;n&&(e._d=!1,_()),e=e(),n&&(e._d=!0,t=Ts,p2())}return Xe(e)&&(e=vA(e)),e=Os(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function h2(e,t){t&&t.pendingBranch?Xe(e)?t.effects.push(...e):t.effects.push(e):pf(e)}function sl(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;n.el=i,s&&s.subTree===n&&(s.vnode.el=i,jh(s,i))}function LA(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ye=Symbol.for("v-fgt"),kr=Symbol.for("v-txt"),_n=Symbol.for("v-cmt"),Kc=Symbol.for("v-stc"),Yc=[];let Ts=null;function _(e=!1){Yc.push(Ts=e?null:[])}function p2(){Yc.pop(),Ts=Yc[Yc.length-1]||null}let Ml=1;function kf(e,t=!1){Ml+=e,e<0&&Ts&&t&&(Ts.hasOnce=!0)}function m2(e){return e.dynamicChildren=Ml>0?Ts||Ja:null,p2(),Ml>0&&Ts&&Ts.push(e),e}function T(e,t,n,s,i,o){return m2(O(e,t,n,s,i,o,!0))}function L(e,t,n,s,i){return m2(A(e,t,n,s,i,!0))}function Lo(e){return e?e.__v_isVNode===!0:!1}function pi(e,t){return e.type===t.type&&e.key===t.key}const v2=({key:e})=>e??null,Qd=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?$t(e)||Ct(e)||it(e)?{i:Gn,r:e,k:t,f:!!n}:e:null);
vendor: 3,909 bytes, line 31
31function O(e,t=null,n=null,s=0,i=null,o=e===ye?0:1,r=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&v2(t),ref:t&&Qd(t),scopeId:Rk,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Gn};return a?(eb(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=$t(n)?8:16),Ml>0&&!r&&Ts&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ts.push(l),l}const A=OA;function OA(e,t=null,n=null,s=0,i=null,o=!1){if((!e||e===Wk)&&(e=_n),Lo(e)){const a=Oo(e,t,!0);return n&&eb(a,n),Ml>0&&!o&&Ts&&(a.shapeFlag&6?Ts[Ts.indexOf(e)]=a:Ts.push(a)),a.patchFlag=-2,a}if(WA(e)&&(e=e.__vccOpts),t){t=Zg(t);let{class:a,style:l}=t;a&&!$t(a)&&(t.class=Z(a)),Lt(l)&&(Uh(l)&&!Xe(l)&&(l=kn({},l)),t.style=Ot(l))}const r=$t(e)?1:_f(e)?128:$k(e)?64:Lt(e)?4:it(e)?2:0;return O(e,t,n,s,i,r,o,!0)}function Zg(e){return e?Uh(e)||t2(e)?kn({},e):e:null}function Oo(e,t,n=!1,s=!1){const{props:i,ref:o,patchFlag:r,children:a,transition:l}=e,c=t?St(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&v2(c),ref:t&&t.ref?n&&o?Xe(o)?o.concat(Qd(t)):[o,Qd(t)]:Qd(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ye?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oo(e.ssContent),ssFallback:e.ssFallback&&Oo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Er(u,l.clone(u)),u}function xe(e=" ",t=0){return A(kr,null,e,t)}function D(e="",t=!1){return t?(_(),L(_n,null,e)):A(_n,null,e)}function Os(e){return e==null||typeof e=="boolean"?A(_n):Xe(e)?A(ye,null,e.slice()):Lo(e)?mo(e):A(kr,null,String(e))}function mo(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oo(e)}function eb(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Xe(t))n=16;else if(typeof t=="object")if(s&65){const i=t.default;i&&(i._c&&(i._d=!1),eb(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!t2(t)?t._ctx=Gn:i===3&&Gn&&(Gn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else it(t)?(t={default:t,_ctx:Gn},n=32):(t=String(t),s&64?(n=16,t=[xe(t)]):n=8);e.children=t,e.shapeFlag|=n}function St(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const i in s)if(i==="class")t.class!==s.class&&(t.class=Z([t.class,s.class]));else if(i==="style")t.style=Ot([t.style,s.style]);else if(sd(i)){const o=t[i],r=s[i];r&&o!==r&&!(Xe(o)&&o.includes(r))?t[i]=o?[].concat(o,r):r:r==null&&o==null&&!Rh(i)&&(t[i]=r)}else i!==""&&(t[i]=s[i])}return t}function Ss(e,t,n,s=null){ki(e,t,7,[n,s])}const BA=Yk();let DA=0;function NA(e,t,n){const s=e.type,i=(t?t.appContext:e.appContext)||BA,o={uid:DA++,vnode:e,type:s,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ok(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:s2(s,i),emitsOptions:Qk(s,i),emit:null,emitted:null,propsDefaults:Et,inheritAttrs:s.inheritAttrs,ctx:Et,data:Et,props:Et,attrs:Et,slots:Et,refs:Et,setupState:Et,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=pA.bind(null,o),e.ce&&e.ce(o),o}let jn=null;const Mn=()=>jn||Gn;let Sf,il;{const e=Lh(),t=(n,s)=>{let i;
vendor: 2,257 bytes, lines 31-34
31return(i=e[n])||(i=e[n]=[]),i.push(s),o=>{i.length>1?i.forEach(r=>r(o)):i[0](o)}};Sf=t("__VUE_INSTANCE_SETTERS__",n=>jn=n),il=t("__VUE_SSR_SETTERS__",n=>xa=n)}const ql=e=>{const t=jn;return Sf(e),e.scope.on(),()=>{e.scope.off(),Sf(t)}},Su=()=>{jn&&jn.scope.off(),Sf(null)};function g2(e){return e.vnode.shapeFlag&4}let xa=!1;function FA(e,t=!1,n=!1){t&&il(t);const{props:s,children:i}=e.vnode,o=g2(e);wA(e,s,o,t),CA(e,i,n||t);const r=o?UA(e,t):void 0;return t&&il(!1),r}function UA(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,iA);const{setup:s}=n;if(s){Ki();const i=e.setupContext=s.length>1?y2(e):null,o=ql(e),r=Wl(s,e,0,[e.props,i]),a=Tg(r);if(Yi(),o(),(a||e.sp)&&!Po(e)&&Hg(e),a){if(r.then(Su,Su),t)return r.then(l=>{nv(e,l)}).catch(l=>{jl(l,e,0)});e.asyncDep=r}else nv(e,r)}else b2(e)}function nv(e,t,n){it(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Lt(t)&&(e.setupState=Ck(t)),b2(e)}function b2(e,t,n){const s=e.type;e.render||(e.render=s.render||bi);{const i=ql(e);Ki();try{aA(e)}finally{Yi(),i()}}}const HA={get(e,t){return is(e,"get",""),e[t]}};function y2(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,HA),slots:e.slots,emit:e.emit,expose:t}}function Gh(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ck(Dg(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in qc)return qc[n](e)},has(t,n){return n in t||n in qc}})):e.proxy}const VA=/(?:^|[-_])\w/g,zA=e=>e.replace(VA,t=>t.toUpperCase()).replace(/[-_]/g,"");function Cf(e,t=!0){return it(e)?e.displayName||e.name:e.name||t&&e.__name}function w2(e,t,n=!1){let s=Cf(t);if(!s&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(s=i[1])}if(!s&&e){const i=o=>{for(const r in o)if(o[r]===t)return r};s=i(e.components)||e.parent&&i(e.parent.type.components)||i(e.appContext.components)}return s?zA(s):n?"App":"Anonymous"}function WA(e){return it(e)&&"__vccOpts"in e}const C=(e,t)=>AT(e,t,xa);function cn(e,t,n){try{kf(-1);const s=arguments.length;return s===2?Lt(t)&&!Xe(t)?Lo(t)?A(e,null,[t]):A(e,t):A(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Lo(n)&&(n=[n]),A(e,t,n))}finally{kf(1)}}const jA="3.5.33";/** 32* @vue/runtime-dom v3.5.33 33* (c) 2018-present Yuxi (Evan) You and Vue contributors 34* @license MIT
35**/let sv;const ky=typeof window<"u"&&window.trustedTypes;if(ky)try{sv=ky.createPolicy("vue",{createHTML:e=>e})}catch{}const _2=sv?e=>sv.createHTML(e):e=>e,GA="http://www.w3.org/2000/svg",qA="http://www.w3.org/1998/Math/MathML",ho=typeof document<"u"?document:null,Sy=ho&&ho.createElement("template"),KA={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const i=t==="svg"?ho.createElementNS(GA,e):t==="mathml"?ho.createElementNS(qA,e):n?ho.createElement(e,{is:n}):ho.createElement(e);return e==="select"&&s&&s.multiple!=null&&i.setAttribute("multiple",s.multiple),i},createText:e=>ho.createTextNode(e),createComment:e=>ho.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ho.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,i,o){const r=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{Sy.innerHTML=_2(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=Sy.content;if(s==="svg"||s==="mathml"){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Xo="transition",bc="animation",$l=Symbol("_vtc"),k2={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},S2=kn({},Ok,k2),YA=e=>(e.displayName="Transition",e.props=S2,e),qn=YA((e,{slots:t})=>cn(jT,C2(e),t)),Wr=(e,t=[])=>{Xe(e)?e.forEach(n=>n(...t)):e&&e(...t)},Cy=e=>e?Xe(e)?e.some(t=>t.length>1):e.length>1:!1;function C2(e){const t={};for(const $ in e)$ in k2||(t[$]=e[$]);if(e.css===!1)return t;const{name:n="v",type:s,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=XA(i),v=m&&m[0],g=m&&m[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:k,onLeave:y,onLeaveCancelled:S,onBeforeAppear:E=b,onAppear:x=w,onAppearCancelled:M=k}=t,I=($,j,X,U)=>{$._enterCancelled=U,tr($,j?u:a),tr($,j?c:r),X&&X()},N=($,j)=>{$._isLeaving=!1,tr($,d),tr($,p),tr($,h),j&&j()},V=$=>(j,X)=>{const U=$?x:w,R=()=>I(j,$,X);Wr(U,[j,R]),Ey(()=>{tr(j,$?l:o),Ii(j,$?u:a),Cy(U)||xy(j,s,v,R)})};return kn(t,{onBeforeEnter($){Wr(b,[$]),Ii($,o),Ii($,r)},onBeforeAppear($){Wr(E,[$]),Ii($,l),Ii($,c)},onEnter:V(!1),onAppear:V(!0),onLeave($,j){$._isLeaving=!0;const X=()=>N($,j);Ii($,d),$._enterCancelled?(Ii($,h),iv($)):(iv($),Ii($,h)),Ey(()=>{$._isLeaving&&(tr($,d),Ii($,p),Cy(y)||xy($,s,g,X))}),Wr(y,[$,X])},onEnterCancelled($){I($,!1,void 0,!0),Wr(k,[$])},onAppearCancelled($){I($,!0,void 0,!0),Wr(M,[$])},onLeaveCancelled($){N($),Wr(S,[$])}})}function XA(e){if(e==null)return null;if(Lt(e))return[Xp(e.enter),Xp(e.leave)];{const t=Xp(e);return[t,t]}}function Xp(e){return ek(e)}function Ii(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[$l]||(e[$l]=new Set)).add(t)}function tr(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[$l];n&&(n.delete(t),n.size||(e[$l]=void 0))}function Ey(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let QA=0;function xy(e,t,n,s){const i=e._endId=++QA,o=()=>{i===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:a,propCount:l}=E2(e,t);if(!r)return s();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,h),o()},h=p=>{p.target===e&&++u>=l&&d()};setTimeout(()=>{u<l&&d()},a+1),e.addEventListener(c,h)}function E2(e,t){const n=window.getComputedStyle(e),s=m=>(n[m]||"").split(", "),i=s(`${Xo}Delay`),o=s(`${Xo}Duration`),r=Ty(i,o),a=s(`${bc}Delay`),l=s(`${bc}Duration`),c=Ty(a,l);let u=null,d=0,h=0;t===Xo?r>0&&(u=Xo,d=r,h=o.length):t===bc?c>0&&(u=bc,d=c,h=l.length):(d=Math.max(r,c),u=d>0?r>c?Xo:bc:null,h=u?u===Xo?o.length:l.length:0);const p=u===Xo&&/\b(?:transform|all)(?:,|$)/.test(s(`${Xo}Property`).toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}function Ty(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Ay(n)+Ay(e[s])))}function Ay(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function iv(e){return(e?e.ownerDocument:document).body.offsetHeight}function JA(e,t,n){const s=e[$l];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Ef=Symbol("_vod"),x2=Symbol("_vsh"),As={name:"show",beforeMount(e,{value:t},{transition:n}){e[Ef]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):yc(e,t)}
vendor: 4,230 bytes, line 35
35,mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),yc(e,!0),s.enter(e)):s.leave(e,()=>{yc(e,!1)}):yc(e,t))},beforeUnmount(e,{value:t}){yc(e,t)}};function yc(e,t){e.style.display=t?e[Ef]:"none",e[x2]=!t}const T2=Symbol("");function Zi(e){const t=Mn();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>xf(o,i))},s=()=>{const i=e(t.proxy);t.ce?xf(t.ce,i):ov(t.subTree,i),n(i)};Vg(()=>{pf(s)}),je(()=>{be(s,bi,{flush:"post"});const i=new MutationObserver(s);i.observe(t.subTree.el.parentNode,{childList:!0}),ui(()=>i.disconnect())})}function ov(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ov(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)xf(e.el,t);else if(e.type===ye)e.children.forEach(n=>ov(n,t));else if(e.type===Kc){let{el:n,anchor:s}=e;for(;n&&(xf(n,t),n!==s);)n=n.nextSibling}}function xf(e,t){if(e.nodeType===1){const n=e.style;let s="";for(const i in t){const o=ik(t[i]);n.setProperty(`--${i}`,o),s+=`--${i}: ${o};`}n[T2]=s}}const ZA=/(?:^|;)\s*display\s*:/;function e4(e,t,n){const s=e.style,i=$t(n);let o=!1;if(n&&!i){if(t)if($t(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&$c(s,a,"")}else for(const r in t)n[r]==null&&$c(s,r,"");for(const r in n){r==="display"&&(o=!0);const a=n[r];a!=null?n4(e,r,!$t(t)&&t?t[r]:void 0,a)||$c(s,r,a):$c(s,r,"")}}else if(i){if(t!==n){const r=s[T2];r&&(n+=";"+r),s.cssText=n,o=ZA.test(n)}}else t&&e.removeAttribute("style");Ef in e&&(e[Ef]=o?s.display:"",e[x2]&&(s.display="none"))}const Py=/\s*!important$/;function $c(e,t,n){if(Xe(n))n.forEach(s=>$c(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=t4(e,t);Py.test(n)?e.setProperty(Ji(s),n.replace(Py,""),"important"):e[s]=n}}const Ry=["Webkit","Moz","ms"],Qp={};function t4(e,t){const n=Qp[t];if(n)return n;let s=ds(t);if(s!=="filter"&&s in e)return Qp[t]=s;s=$h(s);for(let i=0;i<Ry.length;i++){const o=Ry[i]+s;if(o in e)return Qp[t]=o}return t}function n4(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&$t(s)&&n===s}const Iy="http://www.w3.org/1999/xlink";function My(e,t,n,s,i,o=Yx(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Iy,t.slice(6,t.length)):e.setAttributeNS(Iy,t,n):n==null||o&&!Pg(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Hs(n)?String(n):n)}function $y(e,t,n,s,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?_2(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(a!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Pg(n):n==null&&a==="string"?(n="",r=!0):a==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(i||t)}function Ga(e,t,n,s){e.addEventListener(t,n,s)}function s4(e,t,n,s){e.removeEventListener(t,n,s)}const Ly=Symbol("_vei");function i4(e,t,n,s,i=null){const o=e[Ly]||(e[Ly]={}),r=o[t];if(s&&r)r.value=s;else{const[a,l]=o4(t);if(s){const c=o[t]=l4(s,i);Ga(e,a,c,l)}else r&&(s4(e,a,r,l),o[t]=void 0)}}const Oy=/(?:Once|Passive|Capture)$/;function o4(e){let t;if(Oy.test(e)){t={};let s;for(;s=e.match(Oy);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ji(e.slice(2)),t]}let Jp=0;const r4=Promise.resolve(),a4=()=>Jp||(r4.then(()=>Jp=0),Jp=Date.now());function l4(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ki(c4(s,n.value),t,5,[s])};return n.value=e,n.attached=a4(),n}function c4(e,t){if(Xe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>i=>!i._stopped&&s&&s(i))}else return t}const By=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,u4=(e,t,n,s,i,o)=>{const r=i==="svg";t==="class"?JA(e,s,r):t==="style"?e4(e,n,s):sd(t)?Rh(t)||i4(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.
35slice(1),!1):d4(e,t,s,r))?($y(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&My(e,t,s,r,o,t!=="value")):e._isVueCE&&(f4(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!$t(s)))?$y(e,ds(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),My(e,t,s,r))};function d4(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&By(t)&&it(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return By(t)&&$t(n)?!1:t in e}function f4(e,t){const n=e._def.props;if(!n)return!1;const s=ds(t);return Array.isArray(n)?n.some(i=>ds(i)===s):Object.keys(n).some(i=>ds(i)===s)}function A2(e="$style"){{const t=Mn();if(!t)return Et;const n=t.type.__cssModules;if(!n)return Et;const s=n[e];return s||Et}}const P2=new WeakMap,R2=new WeakMap,Tf=Symbol("_moveCb"),Dy=Symbol("_enterCb"),h4=e=>(delete e.props.mode,e),p4=h4({name:"TransitionGroup",props:kn({},S2,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Mn(),s=Lk();let i,o;return zg(()=>{if(!i.length)return;const r=e.moveClass||`${e.name||"v"}-move`;if(!b4(i[0].el,n.vnode.el,r)){i=[];return}i.forEach(m4),i.forEach(v4);const a=i.filter(g4);iv(n.vnode.el),a.forEach(l=>{const c=l.el,u=c.style;Ii(c,r),u.transform=u.webkitTransform=u.transitionDuration="";const d=c[Tf]=h=>{h&&h.target!==c||(!h||h.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",d),c[Tf]=null,tr(c,r))};c.addEventListener("transitionend",d)}),i=[]}
vendor: 4,484 bytes, lines 35-39
35),()=>{const r=wt(e),a=C2(r);let l=r.tag||ye;if(i=[],o)for(let c=0;c<o.length;c++){const u=o[c];u.el&&u.el instanceof Element&&(i.push(u),Er(u,_u(u,a,s,n)),P2.set(u,M2(u.el)))}o=t.default?Ug(t.default()):[];for(let c=0;c<o.length;c++){const u=o[c];u.key!=null&&Er(u,_u(u,a,s,n))}return A(l,null,o)}}}),I2=p4;function m4(e){const t=e.el;t[Tf]&&t[Tf](),t[Dy]&&t[Dy]()}function v4(e){R2.set(e,M2(e.el))}function g4(e){const t=P2.get(e),n=R2.get(e),s=t.left-n.left,i=t.top-n.top;if(s||i){const o=e.el,r=o.style,a=o.getBoundingClientRect();let l=1,c=1;return o.offsetWidth&&(l=a.width/o.offsetWidth),o.offsetHeight&&(c=a.height/o.offsetHeight),(!Number.isFinite(l)||l===0)&&(l=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(l-1)<.01&&(l=1),Math.abs(c-1)<.01&&(c=1),r.transform=r.webkitTransform=`translate(${s/l}px,${i/c}px)`,r.transitionDuration="0s",e}}function M2(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function b4(e,t,n){const s=e.cloneNode(),i=e[$l];i&&i.forEach(a=>{a.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(a=>a&&s.classList.add(a)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=E2(s);return o.removeChild(s),r}const Ny=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Xe(t)?n=>el(t,n):t};function y4(e){e.target.composing=!0}function Fy(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Zp=Symbol("_assign");function Uy(e,t,n){return t&&(e=e.trim()),n&&(e=Ag(e)),e}const Hy={created(e,{modifiers:{lazy:t,trim:n,number:s}},i){e[Zp]=Ny(i);const o=s||i.props&&i.props.type==="number";Ga(e,t?"change":"input",r=>{r.target.composing||e[Zp](Uy(e.value,n,o))}),(n||o)&&Ga(e,"change",()=>{e.value=Uy(e.value,n,o)}),t||(Ga(e,"compositionstart",y4),Ga(e,"compositionend",Fy),Ga(e,"change",Fy))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:i,number:o}},r){if(e[Zp]=Ny(r),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?Ag(e.value):e.value,l=t??"";if(a===l)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(s&&t===n||i&&e.value.trim()===l)||(e.value=l)}},w4=["ctrl","shift","alt","meta"],_4={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>w4.some(n=>e[`${n}Key`]&&!t.includes(n))},At=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((i,...o)=>{for(let r=0;r<t.length;r++){const a=_4[t[r]];if(a&&a(i,t))return}return e(i,...o)}))},k4={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},vn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(i=>{if(!("key"in i))return;const o=Ji(i.key);if(t.some(r=>r===o||k4[r]===o))return e(i)}))},$2=kn({patchProp:u4},KA);let Xc,Vy=!1;function S4(){return Xc||(Xc=xA($2))}function C4(){return Xc=Vy?Xc:TA($2),Vy=!0,Xc}const Ta=((...e)=>{S4().render(...e)}),E4=((...e)=>{const t=C4().createApp(...e),{mount:n}=t;return t.mount=s=>{const i=T4(s);if(i)return n(i,!0,x4(i))},t});function x4(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function T4(e){return $t(e)?document.querySelector(e):e}/*! 36 * vue-router v4.5.1 37 * (c) 2025 Eduardo San Martin Morote 38 * @license MIT 39 */const qa=typeof document<"u";function L2(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function A4(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&L2(e.default)}const Bt=Object.assign;function em(e,t){const n={};for(const s in t){const i=t[s];n[s]=Si(i)?i.map(e):e(i)}return n}const Qc=()=>{},Si=Array.isArray,O2=/#/g,P4=/&/g,R4=/\//g,I4=/=/g,M4=/\?/g,B2=/\+/g,$4=/%5B/g,L4=/%5D/g,D2=/%5E/g,O4=/%60/g,N2=/%7B/g,B4=/%7C/g,F2=/%7D/g,D4=/%20/g;function tb(e){return encodeURI(""+e).replace(B4,"|").replace($4,"[").replace(L4,"]")}function N4(e){return tb(e).replace(N2,"{").replace(F2,"}").replace(D2,"^")}function rv(e){return tb(e).replace(B2,"%2B").replace(D4,"+").replace(O2,"%23").replace(P4,"%26").replace(O4,"`").replace(N2,"{").replace(F2,"}").replace(D2,"^")}
vendor: 9,682 bytes, line 39
39function F4(e){return rv(e).replace(I4,"%3D")}function U4(e){return tb(e).replace(O2,"%23").replace(M4,"%3F")}function H4(e){return e==null?"":U4(e).replace(R4,"%2F")}function Cu(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const V4=/\/$/,z4=e=>e.replace(V4,"");function tm(e,t,n="/"){let s,i={},o="",r="";const a=t.indexOf("#");let l=t.indexOf("?");return a<l&&a>=0&&(l=-1),l>-1&&(s=t.slice(0,l),o=t.slice(l+1,a>-1?a:t.length),i=e(o)),a>-1&&(s=s||t.slice(0,a),r=t.slice(a,t.length)),s=q4(s??t,n),{fullPath:s+(o&&"?")+o+r,path:s,query:i,hash:Cu(r)}}function W4(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zy(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function j4(e,t,n){const s=t.matched.length-1,i=n.matched.length-1;return s>-1&&s===i&&Ll(t.matched[s],n.matched[i])&&U2(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ll(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function U2(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!G4(e[n],t[n]))return!1;return!0}function G4(e,t){return Si(e)?Wy(e,t):Si(t)?Wy(t,e):e===t}function Wy(e,t){return Si(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function q4(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),i=s[s.length-1];(i===".."||i===".")&&s.push("");let o=n.length-1,r,a;for(r=0;r<s.length;r++)if(a=s[r],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(r).join("/")}const Qo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Eu;(function(e){e.pop="pop",e.push="push"})(Eu||(Eu={}));var Jc;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Jc||(Jc={}));function K4(e){if(!e)if(qa){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),z4(e)}const Y4=/^[^#]+#/;function X4(e,t){return e.replace(Y4,"#")+t}function Q4(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const qh=()=>({left:window.scrollX,top:window.scrollY});function J4(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Q4(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function jy(e,t){return(history.state?history.state.position-t:-1)+e}const av=new Map;function Z4(e,t){av.set(e,t)}function eP(e){const t=av.get(e);return av.delete(e),t}let tP=()=>location.protocol+"//"+location.host;function H2(e,t){const{pathname:n,search:s,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),zy(l,"")}return zy(n,e)+s+i}function nP(e,t,n,s){let i=[],o=[],r=null;const a=({state:h})=>{const p=H2(e,location),m=n.value,v=t.value;let g=0;if(h){if(n.value=p,t.value=h,r&&r===m){r=null;return}g=v?h.position-v.position:0}else s(p);i.forEach(b=>{b(n.value,m,{delta:g,type:Eu.pop,direction:g?g>0?Jc.forward:Jc.back:Jc.unknown})})};function l(){r=n.value}function c(h){i.push(h);const p=()=>{const m=i.indexOf(h);m>-1&&i.splice(m,1)};return o.push(p),p}function u(){const{history:h}=window;h.state&&h.replaceState(Bt({},h.state,{scroll:qh()}),"")}function d(){for(const h of o)h();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u,{passive:!0}),{pauseListeners:l,listen:c,destroy:d}}function Gy(e,t,n,s=!1,i=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:i?qh():null}}function sP(e){const{history:t,location:n}=window,s={value:H2(e,n)},i={value:t.state};i.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,c,u){const d=e.indexOf("#"),h=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:tP()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),i.value=c}catch(p){console.error(p),n[u?"replace":"assign"](h)}}function r(l,c){const u=Bt({},t.state,Gy(i.value.back,l,i.value.forward,!0),c,{position:i.value.position});o(l,u,!0),s.value=l}function a(l,c){const u=Bt({},i.value,t.state,{forward:l,scroll:qh()});o(u.current,u,!0);const d=Bt({},Gy(s.value,l,null),{position:u.position+1},c);o(l,d,!1),s.value=l}return{location:s,state:i,push:a,replace:r}}function iP(e){e=K4(e);const t=sP(e),n=nP(e,t.state,t.location,t.replace);function s(o,r=!0){r||n.pauseListeners(),history.go(o)}const i=Bt({location:"",base:e,go:s,createHref:X4.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function oP(e){return typeof e=="string"||e&&typeof e=="object"}function V2(e){return typeof e=="string"||typeof e=="symbol"}const z2=Symbol("");var qy;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(qy||(qy={}));function Ol(e,t){return Bt(new Error,{type:e,[z2]:!0},t)}function ro(e,t){return e instanceof Error&&z2 in e&&(t==null||!!(e.type&t))}const Ky="[^/]+?",rP={sensitive:!1,strict:!1,start:!0,end:!0},aP=/[.+*?^${}()[\]/\\]/g;function lP(e,t){const n=Bt({},rP,t),s=[];let i=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let d=0;d<c.length;d++){const h=c[d];let p=40+(n.sensitive?.25:0);if(h.type===0)d||(i+="/"),i+=h.value.replace(aP,"\\$&"),p+=40;else if(h.type===1){const{value:m,repeatable:v,optional:g,regexp:b}=h;o.push({name:m,repeatable:v,optional:g});const w=b||Ky;if(w!==Ky){p+=10;try{new RegExp(`(${w})`)}catch(y){throw new Error(`Invalid custom RegExp for param "${m}" (${w}): `+y.message)}}let k=v?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;d||(k=g&&c.length<2?`(?:/${k})`:"/"+k),g&&(k+="?"),i+=k,p+=20,g&&(p+=-8),v&&(p+=-20),w===".*"&&(p+=-50)}u.push(p)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const r=new RegExp(i,n.sensitive?"":"i");function a(c){const u=c.match(r),d={};if(!u)return null;for(let h=1;h<u.length;h++){const p=u[h]||"",m=o[h-1];d[m.name]=p&&m.repeatable?p.split("/"):p}return d}function l(c){let u="",d=!1;for(const h of e){(!d||!u.endsWith("/"))&&(u+="/"),d=!1;for(const p of h)if(p.type===0)u+=p.value;else if(p.type===1){const{value:m,repeatable:v,optional:g}=p,b=m in c?c[m]:"";if(Si(b)&&!v)throw new Error(`Provided param "${m}" is an array but it is not repeatable (* or + modifiers)`);const w=Si(b)?b.join("/"):b;if(!w)if(g)h.length<2&&(u.endsWith("/")?u=u.slice(0,-1):d=!0);else throw new Error(`Missing required param "${m}"`);u+=w}}return u||"/"}return{re:r,score:s,keys:o,parse:a,stringify:l}}function cP(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function W2(e,t){let n=0;const s=e.score,i=t.score;for(;n<s.length&&n<i.length;){const o=cP(s[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-s.length)===1){if(Yy(s))return 1;if(Yy(i))return-1}return i.length-s.length}function Yy(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const uP={type:0,value:""},dP=/[a-zA-Z0-9_]/;function fP(e){if(!e)return[[]];if(e==="/")return[[uP]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,s=n;const i=[];let o;function r(){o&&i.push(o),o=[]}let a=0,l,c="",u="";function d(){c&&(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:l==="/"?(c&&d(),r()):l===":"?(d(),n=1):h();break;case 4:h(),n=s;break;case 1:l==="("?n=2:dP.test(l)?h():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+l:n=3:u+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,u="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),d(),r(),i}function hP(e,t,n){const s=lP(fP(e.path),n),i=Bt(s,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function pP(e,t){const n=[],s=new Map;t=Zy({strict:!1,end:!0,sensitive:!1},t);function i(d){return s.get(d)}function o(d,h,p){const m=!p,v=Qy(d);v.aliasOf=p&&p.record;const g=Zy(t,d),b=[v];if("alias"in d){const y=typeof d.alias=="string"?[d.alias]:d.alias;for(const S of y)b.push(Qy(Bt({},v,{components:p?p.record.components:v.components,path:S,aliasOf:p?p.record:v})))}let w,k;for(const y of b){const{path:S}=y;if(h&&S[0]!=="/"){const E=h.record.path,x=E[E.length-1]==="/"?"":"/";y.path=h.record.path+(S&&x+S)}if(w=hP(y,h,g),p?p.alias.push(w):(k=k||w,k!==w&&k.alias.push(w),m&&d.name&&!Jy(w)&&r(d.name)),j2(w)&&l(w),v.children){const E=v.children;for(let x=0;x<E.length;x++)o(E[x],w,p&&p.children[x])}p=p||w}return k?()=>{r(k)}:Qc}function r(d){if(V2(d)){const h=s.get(d);
vendor: 8,881 bytes, line 39
39h&&(s.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(r),h.alias.forEach(r))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&s.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function a(){return n}function l(d){const h=gP(d,n);n.splice(h,0,d),d.record.name&&!Jy(d)&&s.set(d.record.name,d)}function c(d,h){let p,m={},v,g;if("name"in d&&d.name){if(p=s.get(d.name),!p)throw Ol(1,{location:d});g=p.record.name,m=Bt(Xy(h.params,p.keys.filter(k=>!k.optional).concat(p.parent?p.parent.keys.filter(k=>k.optional):[]).map(k=>k.name)),d.params&&Xy(d.params,p.keys.map(k=>k.name))),v=p.stringify(m)}else if(d.path!=null)v=d.path,p=n.find(k=>k.re.test(v)),p&&(m=p.parse(v),g=p.record.name);else{if(p=h.name?s.get(h.name):n.find(k=>k.re.test(h.path)),!p)throw Ol(1,{location:d,currentLocation:h});g=p.record.name,m=Bt({},h.params,d.params),v=p.stringify(m)}const b=[];let w=p;for(;w;)b.unshift(w.record),w=w.parent;return{name:g,path:v,params:m,matched:b,meta:vP(b)}}e.forEach(d=>o(d));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:r,clearRoutes:u,getRoutes:a,getRecordMatcher:i}}function Xy(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Qy(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mP(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function mP(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Jy(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vP(e){return e.reduce((t,n)=>Bt(t,n.meta),{})}function Zy(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function gP(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;W2(e,t[o])<0?s=o:n=o+1}const i=bP(e);return i&&(s=t.lastIndexOf(i,s-1)),s}function bP(e){let t=e;for(;t=t.parent;)if(j2(t)&&W2(e,t)===0)return t}function j2({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function yP(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<s.length;++i){const o=s[i].replace(B2," "),r=o.indexOf("="),a=Cu(r<0?o:o.slice(0,r)),l=r<0?null:Cu(o.slice(r+1));if(a in t){let c=t[a];Si(c)||(c=t[a]=[c]),c.push(l)}else t[a]=l}return t}function e1(e){let t="";for(let n in e){const s=e[n];if(n=F4(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Si(s)?s.map(o=>o&&rv(o)):[s&&rv(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function wP(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Si(s)?s.map(i=>i==null?null:""+i):s==null?s:""+s)}return t}const nb=Symbol(""),t1=Symbol(""),Kh=Symbol(""),sb=Symbol(""),lv=Symbol("");function wc(){let e=[];function t(s){return e.push(s),()=>{const i=e.indexOf(s);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function G2(e,t,n){const s=()=>{e[t].delete(n)};ui(s),rd(s),La(()=>{e[t].add(n)}),e[t].add(n)}function ib(e){const t=ut(nb,{}).value;t&&G2(t,"leaveGuards",e)}function _P(e){const t=ut(nb,{}).value;t&&G2(t,"updateGuards",e)}function or(e,t,n,s,i,o=r=>r()){const r=s&&(s.enterCallbacks[i]=s.enterCallbacks[i]||[]);return()=>new Promise((a,l)=>{const c=h=>{h===!1?l(Ol(4,{from:n,to:t})):h instanceof Error?l(h):oP(h)?l(Ol(2,{from:t,to:h})):(r&&s.enterCallbacks[i]===r&&typeof h=="function"&&r.push(h),a())},u=o(()=>e.call(s&&s.instances[i],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(h=>l(h))})}function nm(e,t,n,s,i=o=>o()){const o=[];for(const r of e)for(const a in r.components){let l=r.components[a];if(!(t!=="beforeRouteEnter"&&!r.instances[a]))if(L2(l)){const u=(l.__vccOpts||l)[t];u&&o.push(or(u,n,s,r,a,i))}else{let c=l();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${r.path}"`);const d=A4(u)?u.default:u;r.mods[a]=u,r.components[a]=d;const p=(d.__vccOpts||d)[t];return p&&or(p,n,s,r,a,i)()}))}}return o}function cv(e){const t=ut(Kh),n=ut(sb),s=C(()=>{const l=f(e.to);return t.resolve(l)}),i=C(()=>{const{matched:l}=s.value,{length:c}=l,u=l[c-1],d=n.matched;if(!u||!d.length)return-1;const h=d.findIndex(Ll.bind(null,u));if(h>-1)return h;const p=n1(l[c-2]);return c>1&&n1(u)===p&&d[d.length-1].path!==p?d.findIndex(Ll.bind(null,l[c-2])):h}),o=C(()=>i.value>-1&&xP(n.params,s.value.params)),r=C(()=>i.value>-1&&i.value===n.matched.length-1&&U2(n.params,s.value.params));function a(l={}){if(EP(l)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch(Qc);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:C(()=>s.value.href),isActive:o,isExactActive:r,navigate:a}}function kP(e){return e.length===1?e[0]:e}const SP=J({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:cv,setup(e,{slots:t}){const n=bt(cv(e)),{options:s}=ut(Kh),i=C(()=>({[s1(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[s1(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&kP(t.default(n));return e.custom?o:cn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),CP=SP;function EP(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function xP(e,t){for(const n in t){const s=t[n],i=e[n];if(typeof s=="string"){if(s!==i)return!1}else if(!Si(i)||i.length!==s.length||s.some((o,r)=>o!==i[r]))return!1}return!0}function n1(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const s1=(e,t,n)=>e??t??n,TP=J({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=ut(lv),i=C(()=>e.route||s.value),o=ut(t1,0),r=C(()=>{let c=f(o);const{matched:u}=i.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=C(()=>i.value.matched[r.value]);gt(t1,C(()=>r.value+1)),gt(nb,a),gt(lv,i);const l=P();return be(()=>[l.value,a.value,e.name],([c,u,d],[h,p,m])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Ll(u,p)||!h)&&(u.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=i.value,u=e.name,d=a.value,h=d&&d.components[u];if(!h)return i1(n.default,{Component:h,route:c});const p=d.props[u],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,g=cn(h,Bt({},m,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(d.instances[u]=null)},ref:l}));return i1(n.default,{Component:g,route:c})||g}}});function i1(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const AP=TP;function PP(e){const t=pP(e.routes,e),n=e.parseQuery||yP,s=e.stringifyQuery||e1,i=e.history,o=wc(),r=wc(),a=wc(),l=De(Qo);let c=Qo;qa&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=em.bind(null,ie=>""+ie),d=em.bind(null,H4),h=em.bind(null,Cu);function p(ie,ae){let pe,ve;return V2(ie)?(pe=t.getRecordMatcher(ie),ve=ae):ve=ie,t.addRoute(ve,pe)}function m(ie){const ae=t.getRecordMatcher(ie);ae&&t.removeRoute(ae)}function v(){return t.getRoutes().map(ie=>ie.record)}function g(ie){return!!t.getRecordMatcher(ie)}function b(ie,ae){if(ae=Bt({},ae||l.value),typeof ie=="string"){const W=tm(n,ie,ae.path),oe=t.resolve({path:W.path},ae),he=i.createHref(W.fullPath);return Bt(W,oe,{params:h(oe.params),hash:Cu(W.hash),redirectedFrom:void 0,href:he})}let pe;if(ie.path!=null)pe=Bt({},ie,{path:tm(n,ie.path,ae.path).path});else{const W=Bt({},ie.params);for(const oe in W)W[oe]==null&&delete W[oe];pe=Bt({},ie,{params:d(W)}),ae.params=d(ae.params)}const ve=t.resolve(pe,ae),Me=ie.hash||"";ve.params=u(h(ve.params));const Ke=W4(s,Bt({},ie,{hash:N4(Me),path:ve.path})),B=i.createHref(Ke);return Bt({fullPath:Ke,hash:Me,query:s===e1?wP(ie.query):ie.query||{}},ve,{redirectedFrom:void 0,href:B})}function w(ie){return typeof ie=="string"?tm(n,ie,l.value.path):Bt({},ie)}function k(ie,ae){if(c!==ie)return Ol(8,{from:ae,to:ie})}function y(ie){return x(ie)}function S(ie){return y(Bt(w(ie),{replace:!0}))}function E(ie){const ae=ie.matched[ie.matched.length-1];if(ae&&ae.redirect){const{redirect:pe}=ae;
39let ve=typeof pe=="function"?pe(ie):pe;return typeof ve=="string"&&(ve=ve.includes("?")||ve.includes("#")?ve=w(ve):{path:ve},ve.params={}),Bt({query:ie.query,hash:ie.hash,params:ve.path!=null?{}:ie.params},ve)}}function x(ie,ae){const pe=c=b(ie),ve=l.value,Me=ie.state,Ke=ie.force,B=ie.replace===!0,W=E(pe);if(W)return x(Bt(w(W),{state:typeof W=="object"?Bt({},Me,W.state):Me,force:Ke,replace:B}),ae||pe);const oe=pe;oe.redirectedFrom=ae;let he;return!Ke&&j4(s,ve,pe)&&(he=Ol(16,{to:oe,from:ve}),de(ve,ve,!0,!1)),(he?Promise.resolve(he):N(oe,ve)).catch(re=>ro(re)?ro(re,2)?re:ue(re):H(re,oe,ve)).then(re=>{if(re){if(ro(re,2))return x(Bt({replace:B},w(re.to),{state:typeof re.to=="object"?Bt({},Me,re.to.state):Me,force:Ke}),ae||oe)}else re=$(oe,ve,!0,B,Me);return V(oe,ve,re),re})}function M(ie,ae){const pe=k(ie,ae);return pe?Promise.reject(pe):Promise.resolve()}function I(ie){const ae=_e.values().next().value;return ae&&typeof ae.runWithContext=="function"?ae.runWithContext(ie):ie()}function N(ie,ae){let pe;const[ve,Me,Ke]=RP(ie,ae);pe=nm(ve.reverse(),"beforeRouteLeave",ie,ae);for(const W of ve)W.leaveGuards.forEach(oe=>{pe.push(or(oe,ie,ae))});const B=M.bind(null,ie,ae);return pe.push(B),ge(pe).then(()=>{pe=[];for(const W of o.list())pe.push(or(W,ie,ae));return pe.push(B),ge(pe)}).then(()=>{pe=nm(Me,"beforeRouteUpdate",ie,ae);for(const W of Me)W.updateGuards.forEach(oe=>{pe.push(or(oe,ie,ae))});return pe.push(B),ge(pe)}).then(()=>{pe=[];for(const W of Ke)if(W.beforeEnter)if(Si(W.beforeEnter))for(const oe of W.beforeEnter)pe.push(or(oe,ie,ae));else pe.push(or(W.beforeEnter,ie,ae));return pe.push(B),ge(pe)}).then(()=>(ie.matched.forEach(W=>W.enterCallbacks={}),pe=nm(Ke,"beforeRouteEnter",ie,ae,I),pe.push(B),ge(pe))).then(()=>{pe=[];for(const W of r.list())pe.push(or(W,ie,ae));return pe.push(B),ge(pe)}).catch(W=>ro(W,8)?W:Promise.reject(W))}function V(ie,ae,pe){a.list().forEach(ve=>I(()=>ve(ie,ae,pe)))}function $(ie,ae,pe,ve,Me){const Ke=k(ie,ae);if(Ke)return Ke;const B=ae===Qo,W=qa?history.state:{};pe&&(ve||B?i.replace(ie.fullPath,Bt({scroll:B&&W&&W.scroll},Me)):i.push(ie.fullPath,Me)),l.value=ie,de(ie,ae,pe,B),ue()}let j;function X(){j||(j=i.listen((ie,ae,pe)=>{if(!Q.listening)return;const ve=b(ie),Me=E(ve);if(Me){x(Bt(Me,{replace:!0,force:!0}),ve).catch(Qc);return}c=ve;const Ke=l.value;qa&&Z4(jy(Ke.fullPath,pe.delta),qh()),N(ve,Ke).catch(B=>ro(B,12)?B:ro(B,2)?(x(Bt(w(B.to),{force:!0}),ve).then(W=>{ro(W,20)&&!pe.delta&&pe.type===Eu.pop&&i.go(-1,!1)}).catch(Qc),Promise.reject()):(pe.delta&&i.go(-pe.delta,!1),H(B,ve,Ke))).then(B=>{B=B||$(ve,Ke,!1),B&&(pe.delta&&!ro(B,8)?i.go(-pe.delta,!1):pe.type===Eu.pop&&ro(B,20)&&i.go(-1,!1)),V(ve,Ke,B)}).catch(Qc)}))}let U=wc(),R=wc(),G;function H(ie,ae,pe){ue(ie);const ve=R.list();return ve.length?ve.forEach(Me=>Me(ie,ae,pe)):console.error(ie),Promise.reject(ie)}function se(){return G&&l.value!==Qo?Promise.resolve():new Promise((ie,ae)=>{U.add([ie,ae])})}function ue(ie){return G||(G=!ie,X(),U.list().forEach(([ae,pe])=>ie?pe(ie):ae()),U.reset()),ie}function de(ie,ae,pe,ve){const{scrollBehavior:Me}=e;if(!qa||!Me)return Promise.resolve();const Ke=!pe&&eP(jy(ie.fullPath,0))||(ve||!pe)&&history.state&&history.state.scroll||null;return un().then(()=>Me(ie,ae,Ke)).then(B=>B&&J4(B)).catch(B=>H(B,ie,ae))}const ke=ie=>i.go(ie);let Se;const _e=new Set,Q={currentRoute:l,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:v,resolve:b,options:e,push:y,replace:S,go:ke,back:()=>ke(-1),forward:()=>ke(1),beforeEach:o.add,beforeResolve:r.add,afterEach:a.add,onError:R.add,isReady:se,install(ie){const ae=this;ie.component("RouterLink",CP),ie.component("RouterView",AP),ie.config.globalProperties.$router=ae,Object.defineProperty(ie.config.globalProperties,"$route",{enumerable:!0,get:()=>f(l)}),qa&&!Se&&l.value===Qo&&(Se=!0,y(i.location).catch(Me=>{}));const pe={};for(const Me in Qo)Object.defineProperty(pe,Me,{get:()=>l.value[Me],enumerable:!0});ie.provide(Kh,ae),ie.provide(sb,$a(pe)),ie.provide(lv,l);const ve=ie.unmount;_e.add(ie),ie.unmount=function(){_e.delete(ie),_e.size<1&&(c=Qo,j&&j(),j=null,l.value=Qo,Se=!1,G=!1),ve()}}};function ge(ie){return ie.reduce((ae,pe)=>ae.then(()=>I(pe)),Promise.resolve())}return Q}function RP(e,t){const n=[],s=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let r=0;r<o;r++){const a=t.matched[r];a&&(e.matched.find(c=>Ll(c,a))?s.push(a):n.push(a));const l=e.matched[r];l&&(t.matched.find(c=>Ll(c,l))||i.push(l))}return[n,s,i]}function ct(){return ut(Kh)}function dn(e){return ut(sb)}const IP="modulepreload",MP=function(e){return"/"+e},o1={},Ce=function(t,n,s){let i=Promise.resolve();if(n&&n.length>0){let r=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),l=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));i=r(n.map(c=>{if(c=MP(c),c in o1)return;o1[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const h=document.createElement("link");
39if(h.rel=u?"stylesheet":IP,u||(h.as="script"),h.crossOrigin="",h.href=c,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((p,m)=>{h.addEventListener("load",p),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function o(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return i.then(r=>{for(const a of r||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})},ot=(e,t)=>{const n=e.__vccOpts||e;for(const[s,i]of t)n[s]=i;return n},$P={},LP={class:"dot-loader"};function OP(e,t){return _(),T("div",LP,[(_(),T(ye,null,We(3,n=>O("div",{key:n,class:"dot-loader__item"})),64))])}const Yn=ot($P,[["render",OP]]),ad=J({__name:"Spinner",props:{size:{default:28},width:{default:4},type:{default:"default"}},setup(e){return(t,n)=>(_(),T("div",{class:Z(["spinner",`spinner--${e.type}`]),style:Ot({width:`${e.size}px`,height:`${e.size}px`,borderWidth:`${e.width}px`})},null,6))}}),BP=J({__name:"StringLoader",props:{text:{},isLoading:{type:Boolean,default:!0}},setup(e){return(t,n)=>(_(),T("div",{class:Z(["string-loader",e.isLoading&&"string-loader--loading"])},[O("span",null,Y(e.text),1),n[0]||(n[0]=O("span",null,null,-1))],2))}}),Re=({name:e,width:t=24,height:n=24,isStatic:s})=>s===!0||e.endsWith("_static")?A("img",{class:["icon","icon--"+e],width:t,height:n,src:`/assets/spritemap.4bbeca92.svg#sprite-${e}-view`},null):A("svg",{class:["icon","icon--"+e],width:t,height:n},[A("use",{"xlink:href":`/assets/spritemap.4bbeca92.svg#sprite-${e}`},null)]),DP=["aria-valuenow"],NP=["width","height","viewBox"],FP=["cx","cy","r","stroke-width"],UP=["cx","cy","r","stroke-width","stroke-dasharray","stroke-dashoffset"],q2=J({__name:"CircularProgress",props:{percents:{},size:{default:40},stroke:{default:2.4},cancelable:{type:Boolean,default:!1}},emits:["abort"],setup(e){const t=e,n=C(()=>(t.size-t.stroke*2)/2),s=C(()=>t.size/2),i=C(()=>s.value*2),o=C(()=>2*Math.PI*n.value),r=C(()=>Math.min(100,Math.max(0,t.percents))),a=C(()=>o.value-r.value/100*o.value);return(l,c)=>(_(),T("div",{class:"circular-progress",role:"progressbar","aria-valuenow":r.value,"aria-valuemin":"0","aria-valuemax":"100"},[(_(),T("svg",{class:"circular-progress__svg",width:e.size,height:e.size,viewBox:`0 0 ${i.value} ${i.value}`},[O("circle",{class:"circular-progress__bg",cx:s.value,cy:s.value,r:n.value,fill:"transparent","stroke-width":e.stroke},null,8,FP),O("circle",{class:"circular-progress__bar",cx:s.value,cy:s.value,r:n.value,fill:"transparent","stroke-width":e.stroke,"stroke-dasharray":o.value,"stroke-dashoffset":a.value,"stroke-linecap":"round"},null,8,UP)],8,NP)),e.cancelable?(_(),L(f(Re),{key:0,name:"cross",class:"circular-progress__cross",onClick:c[0]||(c[0]=u=>l.$emit("abort"))})):D("",!0)],8,DP))}}),HP=(e,t)=>{const n={...t==null?void 0:t.options},s={...t==null?void 0:t.events};let i,o,r=!1;const a=P(!1),l=P(!1);async function c(){if(a.value||l.value)return;a.value=!0,i===void 0&&(i=(await Ce(async()=>{const{OverlayScrollbars:p}=await import("./overlayscrollbars-CCzWZBnH.js");return{OverlayScrollbars:p}},[])).OverlayScrollbars);const h=ce(e);if(h===null){a.value=!1;return}requestAnimationFrame(()=>{var m;if(i===void 0)throw new Error("Failed to initialize scrollbars: OverlayScrollbars is not present");if(ce(e)===null){a.value=!1;return}o=i({target:h,elements:{viewport:ce((m=t==null?void 0:t.elements)==null?void 0:m.viewport)}},n,s),a.value=!1,l.value=!0,r&&(r=!1,o.update(!0))})}function u(){o==null||o.destroy(),o=void 0,r=!1,a.value=!1,l.value=!1}be(()=>ce(e),async h=>{h===null?u():await c()}),je(async()=>{await c()}),ui(()=>{u()});function d(h=!0){if(o===void 0){r=r||h;return}o.update(h)}return{update:d,scrollTop:C({get(){const h=o==null?void 0:o.elements().viewport;return(h==null?void 0:h.scrollTop)??0},set(h){const p=o==null?void 0:o.elements().viewport;p!==void 0&&(p.scrollTop=h)}})}},xu="data-link-preview",Af="data-link-preview-source",Kl="data-scrollable",VP="--scrollbar-width";var Te=(e=>(e.Popular="popular",e.New="new",e.My="my",e.Subsite="subsite",e.Bookmarks="bookmarks",e.Recommendations="recommendations",e.Drafts="drafts",e.Hashtag="hashtag",e.News="news",e.Reposts="reposts",e.Discovery="discovery",e.Editorial="editoral",e.Reacted="reacted",e.Finance="finance",e.ProMaxBlogs="pro-max-blogs",e.Games="games",e))(Te||{});const uv=/(?:[a-z][a-z0-9_-]{1,31})/,zP=new RegExp([Te.Popular+"\\b",Te.My+"\\b",Te.New+"\\b"].join("|")),Yl=J({__name:"Scrollable",props:{disabled:{type:Boolean},ignoreContentMutations:{type:Boolean},stickToBottom:{type:Boolean}},setup(e,{expose:t}){const n=e;function s(){return!0}const i=mt("root"),o=mt("viewport"),r=C(()=>n.disabled?null:i.value),{scrollTop:a,update:l}
39=HP(r,{options:{overflow:{x:"hidden",y:"scroll"},update:{elementEvents:null,ignoreMutation:n.ignoreContentMutations===!0?s:null},scrollbars:{theme:"os-theme-custom",autoHide:"move",autoHideDelay:1e3}},elements:{viewport:o}});return t({el:i,scrollTop:a,update:l}),(c,u)=>(_(),T("div",{ref_key:"root",ref:i,class:Z(["scrollable",{"scrollable--ignore-mutations":e.ignoreContentMutations,"scrollable--stick-to-bottom":e.stickToBottom}]),"data-overlayscrollbars-initialize":""},[O("div",St({ref_key:"viewport",ref:o},{[f(Kl)]:""}),[Ve(c.$slots,"default")],16)],2))}});function Oie(e,t,n={}){let s,i,o,r=!0;const a=()=>{r=!0,o()};be(e,a,{flush:"sync",...n});const l=typeof t=="function"?t:t.get,c=typeof t=="function"?void 0:t.set,u=Hh((d,h)=>(i=d,o=h,{get(){return r&&(s=l(s),r=!1),i(),s},set(p){c==null||c(p)}}));return u.trigger=a,u}function gs(e){return Ig()?(Mg(e),!0):!1}function xr(){const e=new Set,t=o=>{e.delete(o)};return{on:o=>{e.add(o);const r=()=>t(o);return gs(r),{off:r}},off:t,trigger:(...o)=>Promise.all(Array.from(e).map(r=>r(...o))),clear:()=>{e.clear()}}}const sm=new WeakMap,WP=(...e)=>{var t;const n=e[0],s=(t=Mn())==null?void 0:t.proxy;if(s==null&&!Fg())throw new Error("injectLocal must be called in setup");return s&&sm.has(s)&&n in sm.get(s)?sm.get(s)[n]:ut(...e)};function Pn(e){let t=0,n,s;const i=()=>{t-=1,s&&t<=0&&(s.stop(),n=void 0,s=void 0)};return(...o)=>(t+=1,s||(s=rk(!0),n=s.run(()=>e(...o))),gs(i),n)}function K2(e){if(!Ct(e))return bt(e);const t=new Proxy({},{get(n,s,i){return f(Reflect.get(e.value,s,i))},set(n,s,i){return Ct(e.value[s])&&!Ct(i)?e.value[s].value=i:e.value[s]=i,!0},deleteProperty(n,s){return Reflect.deleteProperty(e.value,s)},has(n,s){return Reflect.has(e.value,s)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return bt(t)}function r1(e){return K2(C(e))}const Bo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ob=e=>e!=null,jP=Object.prototype.toString,Y2=e=>jP.call(e)==="[object Object]",Xt=()=>{},GP=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Pf=qP();function qP(){var e,t;return Bo&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Rf(...e){if(e.length!==1)return Cn(...e);const t=e[0];return typeof t=="function"?Ft(Hh(()=>({get:t,set:Xt}))):P(t)}function rb(e,t){function n(...s){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(i).catch(o)})}return n}const X2=e=>e();function Q2(e,t={}){let n,s,i=Xt;const o=l=>{clearTimeout(l),i(),i=Xt};let r;return l=>{const c=ce(e),u=ce(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(s&&(o(s),s=void 0),Promise.resolve(l())):new Promise((d,h)=>{i=t.rejectOnCancel?h:d,r=l,u&&!s&&(s=setTimeout(()=>{n&&o(n),s=void 0,d(r())},u)),n=setTimeout(()=>{s&&o(s),s=void 0,d(l())},c)})}}function KP(...e){let t=0,n,s=!0,i=Xt,o,r,a,l,c;!Ct(e[0])&&typeof e[0]=="object"?{delay:r,trailing:a=!0,leading:l=!0,rejectOnCancel:c=!1}=e[0]:[r,a=!0,l=!0,c=!1]=e;const u=()=>{n&&(clearTimeout(n),n=void 0,i(),i=Xt)};return h=>{const p=ce(r),m=Date.now()-t,v=()=>o=h();return u(),p<=0?(t=Date.now(),v()):(m>p&&(l||!s)?(t=Date.now(),v()):a&&(o=new Promise((g,b)=>{i=c?b:g,n=setTimeout(()=>{t=Date.now(),s=!0,g(v()),u()},Math.max(0,p-m))})),!l&&!n&&(n=setTimeout(()=>s=!0,p)),s=!1,o)}}function YP(e=X2,t={}){const{initialState:n="active"}=t,s=Rf(n==="active");function i(){s.value=!1}function o(){s.value=!0}return{isActive:Ft(s),pause:i,resume:o,eventFilter:(...a)=>{s.value&&e(...a)}}}function a1(e,t=!1,n="Timeout"){return new Promise((s,i)=>{setTimeout(t?()=>i(n):s,e)})}function XP(e){let t;function n(){return t||(t=e()),t}return n.reset=async()=>{const s=t;t=void 0,s&&await s},n}function l1(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function wi(e){return Array.isArray(e)?e:[e]}function J2(e){return Mn()}function js(e,t=200,n={}){return rb(Q2(t,n),e)}function dv(e,t=200,n={}){const s=P(ce(e)),i=js(()=>{s.value=e.value},t,n);return be(e,()=>i()),Bg(s)}function Yh(e,t=200,n=!1,s=!0,i=!1){return rb(KP(t,n,s,i),e)}function Z2(e,t,n={}){const{eventFilter:s=X2,...i}=n;return be(e,rb(s,t),i)}function QP(e,t,n={}){const{eventFilter:s,initialState:i="active",...o}
39=n,{eventFilter:r,pause:a,resume:l,isActive:c}=YP(s,{initialState:i});return{stop:Z2(e,t,{...o,eventFilter:r}),pause:a,resume:l,isActive:c}}function Tu(e,t,n={}){const{flush:s="sync",deep:i=!1,immediate:o=!0}=n,r=wi(t);return be(e,a=>r.forEach(l=>l.value=a),{flush:s,deep:i,immediate:o})}function Bie(e,t={}){if(!Ct(e))return CT(e);const n=Array.isArray(e.value)?Array.from({length:e.value.length}):{};for(const s in e.value)n[s]=Hh(()=>({get(){return e.value[s]},set(i){var o;if((o=ce(t.replaceRef))!=null?o:!0)if(Array.isArray(e.value)){const a=[...e.value];a[s]=i,e.value=a}else{const a={...e.value,[s]:i};Object.setPrototypeOf(a,Object.getPrototypeOf(e.value)),e.value=a}else e.value[s]=i}}));return n}const JP=ce;function ZP(e,t){J2()&&et(e,t)}function Oa(e,t=!0,n){J2()?je(e,n):t?e():un(e)}function fv(e,t=!1){function n(d,{flush:h="sync",deep:p=!1,timeout:m,throwOnTimeout:v}={}){let g=null;const w=[new Promise(k=>{g=be(e,y=>{d(y)!==t&&(g?g():un(()=>g==null?void 0:g()),k(y))},{flush:h,deep:p,immediate:!0})})];return m!=null&&w.push(a1(m,v).then(()=>ce(e)).finally(()=>g==null?void 0:g())),Promise.race(w)}function s(d,h){if(!Ct(d))return n(y=>y===d,h);const{flush:p="sync",deep:m=!1,timeout:v,throwOnTimeout:g}=h??{};let b=null;const k=[new Promise(y=>{b=be([e,d],([S,E])=>{t!==(S===E)&&(b?b():un(()=>b==null?void 0:b()),y(S))},{flush:p,deep:m,immediate:!0})})];return v!=null&&k.push(a1(v,g).then(()=>ce(e)).finally(()=>(b==null||b(),ce(e)))),Promise.race(k)}function i(d){return n(h=>!!h,d)}function o(d){return s(null,d)}function r(d){return s(void 0,d)}function a(d){return n(Number.isNaN,d)}function l(d,h){return n(p=>{const m=Array.from(p);return m.includes(d)||m.includes(ce(d))},h)}function c(d){return u(1,d)}function u(d=1,h){let p=-1;return n(()=>(p+=1,p>=d),h)}return Array.isArray(ce(e))?{toMatch:n,toContains:l,changed:c,changedTimes:u,get not(){return fv(e,!t)}}:{toMatch:n,toBe:s,toBeTruthy:i,toBeNull:o,toBeNaN:a,toBeUndefined:r,changed:c,changedTimes:u,get not(){return fv(e,!t)}}}function Do(e){return fv(e)}function c1(e,t=1e3,n={}){const{immediate:s=!0,immediateCallback:i=!1}=n;let o=null;const r=De(!1);function a(){o&&(clearInterval(o),o=null)}function l(){r.value=!1,a()}function c(){const u=ce(t);u<=0||(r.value=!0,i&&e(),a(),r.value&&(o=setInterval(e,u)))}if(s&&Bo&&c(),Ct(t)||typeof t=="function"){const u=be(t,()=>{r.value&&Bo&&c()});gs(u)}return gs(l),{isActive:Bg(r),pause:l,resume:c}}function e6(e,t,n={}){const{immediate:s=!0,immediateCallback:i=!1}=n,o=De(!1);let r;function a(){r&&(clearTimeout(r),r=void 0)}function l(){o.value=!1,a()}function c(...u){i&&e(),a(),o.value=!0,r=setTimeout(()=>{o.value=!1,r=void 0,e(...u)},ce(t))}return s&&(o.value=!0,Bo&&c()),gs(l),{isPending:Bg(o),start:c,stop:l}}function t6(e,t,n){let s=n!=null&&n.immediate?[]:[...typeof e=="function"?e():Array.isArray(e)?e:ce(e)];return be(e,(i,o,r)=>{const a=Array.from({length:s.length}),l=[];for(const u of i){let d=!1;for(let h=0;h<s.length;h++)if(!a[h]&&u===s[h]){a[h]=!0,d=!0;break}d||l.push(u)}const c=s.filter((u,d)=>!a[d]);t(i,s,l,c,r),s=[...i]},n)}function Tr(e,t,n={}){const{debounce:s=0,maxWait:i=void 0,...o}=n;return Z2(e,t,{...o,eventFilter:Q2(s,{maxWait:i})})}function ab(e,t,n){return be(e,t,{...n,immediate:!0})}function n6(e,t,n){return be(e,t,{...n,once:!0})}function s6(e,t,n){return be(e,(i,o,r)=>{i&&t(i,o,r)},{...n,once:!1})}const $n=Bo?window:void 0,lb=Bo?window.document:void 0,cb=Bo?window.navigator:void 0;function kt(e){var t;const n=ce(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Be(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},s=(a,l,c,u)=>(a.addEventListener(l,c,u),()=>a.removeEventListener(l,c,u)),i=C(()=>{const a=wi(ce(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=ab(()=>{var a,l;return[(l=(a=i.value)==null?void 0:a.map(c=>kt(c)))!=null?l:[$n].filter(c=>c!=null),wi(ce(i.value?e[1]:e[0])),wi(f(i.value?e[2]:e[1])),ce(i.value?e[3]:e[2])]},([a,l,c,u])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(c!=null&&c.length))return;const d=Y2(u)?{...u}:u;t.push(...a.flatMap(h=>l.flatMap(p=>c.map(m=>s(h,p,m,d)))))},{flush:"post"}),r=()=>{o(),n()};return gs(n),r}let u1=!1;function i6(e,t,n={}
39){const{window:s=$n,ignore:i=[],capture:o=!0,detectIframe:r=!1,controls:a=!1}=n;if(!s)return a?{stop:Xt,cancel:Xt,trigger:Xt}:Xt;if(Pf&&!u1){u1=!0;const g={passive:!0};Array.from(s.document.body.children).forEach(b=>b.addEventListener("click",Xt,g)),s.document.documentElement.addEventListener("click",Xt,g)}let l=!0;const c=g=>ce(i).some(b=>{if(typeof b=="string")return Array.from(s.document.querySelectorAll(b)).some(w=>w===g.target||g.composedPath().includes(w));{const w=kt(b);return w&&(g.target===w||g.composedPath().includes(w))}});function u(g){const b=ce(g);return b&&b.$.subTree.shapeFlag===16}function d(g,b){const w=ce(g),k=w.$.subTree&&w.$.subTree.children;return k==null||!Array.isArray(k)?!1:k.some(y=>y.el===b.target||b.composedPath().includes(y.el))}const h=g=>{const b=kt(e);if(g.target!=null&&!(!(b instanceof Element)&&u(e)&&d(e,g))&&!(!b||b===g.target||g.composedPath().includes(b))){if("detail"in g&&g.detail===0&&(l=!c(g)),!l){l=!0;return}t(g)}};let p=!1;const m=[Be(s,"click",g=>{p||(p=!0,setTimeout(()=>{p=!1},0),h(g))},{passive:!0,capture:o}),Be(s,"pointerdown",g=>{const b=kt(e);l=!c(g)&&!!(b&&!g.composedPath().includes(b))},{passive:!0}),r&&Be(s,"blur",g=>{setTimeout(()=>{var b;const w=kt(e);((b=s.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(w!=null&&w.contains(s.document.activeElement))&&t(g)},0)},{passive:!0})].filter(Boolean),v=()=>m.forEach(g=>g());return a?{stop:v,cancel:()=>{l=!1},trigger:g=>{l=!0,h(g),l=!1}}:v}function o6(){const e=De(!1),t=Mn();return t&&je(()=>{e.value=!0},t),e}function zo(e){const t=o6();return C(()=>(t.value,!!e()))}function Xh(e,t,n={}){const{window:s=$n,...i}=n;let o;const r=zo(()=>s&&"MutationObserver"in s),a=()=>{o&&(o.disconnect(),o=void 0)},l=C(()=>{const h=ce(e),p=wi(h).map(kt).filter(ob);return new Set(p)}),c=be(l,h=>{a(),r.value&&h.size&&(o=new MutationObserver(t),h.forEach(p=>o.observe(p,i)))},{immediate:!0,flush:"post"}),u=()=>o==null?void 0:o.takeRecords(),d=()=>{c(),a()};return gs(d),{isSupported:r,stop:d,takeRecords:u}}function e3(e,t={}){const{immediate:n=!0,fpsLimit:s=void 0,window:i=$n,once:o=!1}=t,r=De(!1),a=C(()=>s?1e3/ce(s):null);let l=0,c=null;function u(p){if(!r.value||!i)return;l||(l=p);const m=p-l;if(a.value&&m<a.value){c=i.requestAnimationFrame(u);return}if(l=p,e({delta:m,timestamp:p}),o){r.value=!1,c=null;return}c=i.requestAnimationFrame(u)}function d(){!r.value&&i&&(r.value=!0,l=0,c=i.requestAnimationFrame(u))}function h(){r.value=!1,c!=null&&i&&(i.cancelAnimationFrame(c),c=null)}return n&&d(),gs(h),{isActive:Ft(r),pause:h,resume:d}}function r6(e={}){const{navigator:t=cb}=e,n=["chargingchange","chargingtimechange","dischargingtimechange","levelchange"],s=zo(()=>t&&"getBattery"in t&&typeof t.getBattery=="function"),i=De(!1),o=De(0),r=De(0),a=De(1);let l;function c(){i.value=this.charging,o.value=this.chargingTime||0,r.value=this.dischargingTime||0,a.value=this.level}return s.value&&t.getBattery().then(u=>{l=u,c.call(l),Be(l,n,c,{passive:!0})}),{isSupported:s,charging:i,chargingTime:o,dischargingTime:r,level:a}}const a6=Symbol("vueuse-ssr-width");function l6(){const e=Fg()?WP(a6,null):null;return typeof e=="number"?e:void 0}function ii(e,t={}){const{window:n=$n,ssrWidth:s=l6()}=t,i=zo(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),o=De(typeof s=="number"),r=De(),a=De(!1),l=c=>{a.value=c.matches};return Gl(()=>{if(o.value){o.value=!i.value;const c=ce(e).split(",");a.value=c.some(u=>{const d=u.includes("not all"),h=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),p=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let m=!!(h||p);return h&&m&&(m=s>=l1(h[1])),p&&m&&(m=s<=l1(p[1])),d?!m:m});return}i.value&&(r.value=n.matchMedia(ce(e)),a.value=r.value.matches)}),Be(r,"change",l,{passive:!0}),C(()=>a.value)}function d1(e,t={}){const{controls:n=!1,navigator:s=cb}=t,i=zo(()=>s&&"permissions"in s),o=De(),r=typeof e=="string"?{name:e}:e,a=De(),l=()=>{var u,d;a.value=(d=(u=o.value)==null?void 0:u.state)!=null?d:"prompt"};Be(o,"change",l,{passive:!0});const c=XP(async()=>{if(i.value){if(!o.value)try{o.value=await s.permissions.query(r)}catch{o.value=void 0}finally{l()}if(n)return wt(o.value)}});return c(),n?{state:a,isSupported:i,query:c}:a}function Qh(e={}){const{navigator:t=cb,read:n=!1,source:s,copiedDuring:i=1500,legacy:o=!1}=e,r=zo(()=>t&&"clipboard"in t),a=d1("clipboard-read"),l=d1("clipboard-write"),c=C(()=>r.value||o),u=De(""),d=De(!1),h=e6(()=>d.value=!1,i,{immediate:!1});async function p(){let w=!(r.value&&b(a.value));if(!w)try{u.value=await t.clipboard.readText()}catch{w=!0}w&&(u.value=g())}c.value&&n&&Be(["copy","cut"],p,{passive:!0});async function m(w=ce(s)){if(c.value&&w!=null){let k=!(r.value&&b(l.value));if(!k)try{await t.clipboard.writeText(w)}catch{k=!0}k&&v(w),u.value=w,d.value=!0,h.start()}}function v(w){const k=document.createElement("textarea");k.value=w??"",k.style.position="absolute",k.style.opacity="0",document.body.appendChild(k),k.select(),document.execCommand("copy"),k.remove()}function g(){var w,k,y;return(y=(k=(w=document==null?void 0:document.getSelection)==null?void 0:w.call(document))==null?void 0:k.toString())!=null?y:""}function b(w){return w==="granted"||w==="prompt"}return{isSupported:c,text:u,copied:d,copy:m}}const Ad=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pd="__vueuse_ssr_handlers__",c6=u6();function u6(){return Pd in Ad||(Ad[Pd]=Ad[Pd]||{}),Ad[Pd]}function d6(e,t){return c6[e]||t}function f6(e){return ii("(prefers-color-scheme: dark)",e)}function h6(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const p6={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},f1="vueuse-storage";function t3(e,t,n,s={}){var i;const{flush:o="pre",deep:r=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:d=$n,eventFilter:h,onError:p=X=>{console.error(X)},initOnMounted:m}=s,v=(u?De:P)(typeof t=="function"?t():t),g=C(()=>ce(e));if(!n)try{n=d6("getDefaultStorage",()=>{var X;return(X=$n)==null?void 0:X.localStorage})()}catch(X){p(X)}if(!n)return v;const b=ce(t),w=h6(b),k=(i=s.serializer)!=null?i:p6[w],{pause:y,resume:S}=QP(v,X=>N(X),{flush:o,deep:r,eventFilter:h});be(g,()=>$(),{flush:o});let E=!1;const x=X=>{m&&!E||$(X)},M=X=>{m&&!E||j(X)};d&&a&&(n instanceof Storage?Be(d,"storage",x,{passive:!0}):Be(d,f1,M)),m?Oa(()=>{E=!0,$()}):$();function I(X,U){if(d){const R={key:g.value,oldValue:X,newValue:U,storageArea:n};d.dispatchEvent(n instanceof Storage?new StorageEvent("storage",R):new CustomEvent(f1,{detail:R}))}}function N(X){try{const U=n.getItem(g.value);if(X==null)I(U,null),n.removeItem(g.value);else{const R=k.write(X);U!==R&&(n.setItem(g.value,R),I(U,R))}}catch(U){p(U)}}function V(X){const U=X?X.newValue:n.getItem(g.value);if(U==null)return l&&b!=null&&n.setItem(g.value,k.write(b)),b;if(!X&&c){const R=k.read(U);return typeof c=="function"?c(R,b):w==="object"&&!Array.isArray(R)?{...b,...R}:R}
39else return typeof U!="string"?U:k.read(U)}function $(X){if(!(X&&X.storageArea!==n)){if(X&&X.key==null){v.value=b;return}if(!(X&&X.key!==g.value)){y();try{const U=k.write(v.value);(X===void 0||(X==null?void 0:X.newValue)!==U)&&(v.value=V(X))}catch(U){p(U)}finally{X?un(S):S()}}}}function j(X){$(X.detail)}return v}function Jd(e,t,n={}){const{window:s=$n,initialValue:i,observe:o=!1}=n,r=De(i),a=C(()=>{var c;return kt(t)||((c=s==null?void 0:s.document)==null?void 0:c.documentElement)});function l(){var c;const u=ce(e),d=ce(a);if(d&&s&&u){const h=(c=s.getComputedStyle(d).getPropertyValue(u))==null?void 0:c.trim();r.value=h||r.value||i}}return o&&Xh(a,l,{attributeFilter:["style","class"],window:s}),be([a,()=>ce(e)],(c,u)=>{u[0]&&u[1]&&u[0].style.removeProperty(u[1]),l()},{immediate:!0}),be([r,a],([c,u])=>{const d=ce(e);u!=null&&u.style&&d&&(c==null?u.style.removeProperty(d):u.style.setProperty(d,c))},{immediate:!0}),r}function m6(e={}){const{window:t=$n}=e,n=De(1),s=ii(()=>`(resolution: ${n.value}dppx)`,e);let i=Xt;return t&&(i=ab(s,()=>n.value=t.devicePixelRatio)),{pixelRatio:Ft(n),stop:i}}function v6(e,t={}){var n,s;const i=De(!1),o=De(null);let r=0,a=!0;if(Bo){const l=typeof t=="function"?{onDrop:t}:t,c=(n=l.multiple)!=null?n:!0,u=(s=l.preventDefaultForUnhandled)!=null?s:!1,d=g=>{var b,w;const k=Array.from((w=(b=g.dataTransfer)==null?void 0:b.files)!=null?w:[]);return k.length===0?null:c?k:[k[0]]},h=g=>{const b=f(l.dataTypes);return typeof b=="function"?b(g):b!=null&&b.length?g.length===0?!1:g.every(w=>b.some(k=>w.includes(k))):!0},p=g=>{const b=Array.from(g??[]).map(y=>y.type),w=h(b),k=c||g.length<=1;return w&&k},m=()=>/^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent)&&!("chrome"in window),v=(g,b)=>{var w,k,y,S,E,x;const M=(w=g.dataTransfer)==null?void 0:w.items;if(a=(k=M&&p(M))!=null?k:!1,u&&g.preventDefault(),!m()&&!a){g.dataTransfer&&(g.dataTransfer.dropEffect="none");return}g.preventDefault(),g.dataTransfer&&(g.dataTransfer.dropEffect="copy");const I=d(g);switch(b){case"enter":r+=1,i.value=!0,(y=l.onEnter)==null||y.call(l,null,g);break;case"over":(S=l.onOver)==null||S.call(l,null,g);break;case"leave":r-=1,r===0&&(i.value=!1),(E=l.onLeave)==null||E.call(l,null,g);break;case"drop":r=0,i.value=!1,a&&(o.value=I,(x=l.onDrop)==null||x.call(l,I,g));break}};Be(e,"dragenter",g=>v(g,"enter")),Be(e,"dragover",g=>v(g,"over")),Be(e,"dragleave",g=>v(g,"leave")),Be(e,"drop",g=>v(g,"drop"))}return{files:o,isOverDropZone:i}}function Wo(e,t,n={}){const{window:s=$n,...i}=n;let o;const r=zo(()=>s&&"ResizeObserver"in s),a=()=>{o&&(o.disconnect(),o=void 0)},l=C(()=>{const d=ce(e);return Array.isArray(d)?d.map(h=>kt(h)):[kt(d)]}),c=be(l,d=>{if(a(),r.value&&s){o=new ResizeObserver(t);for(const h of d)h&&o.observe(h,i)}},{immediate:!0,flush:"post"}),u=()=>{a(),c()};return gs(u),{isSupported:r,stop:u}}function If(e,t={}){const{reset:n=!0,windowResize:s=!0,windowScroll:i=!0,immediate:o=!0,updateTiming:r="sync"}=t,a=De(0),l=De(0),c=De(0),u=De(0),d=De(0),h=De(0),p=De(0),m=De(0);function v(){const b=kt(e);if(!b){n&&(a.value=0,l.value=0,c.value=0,u.value=0,d.value=0,h.value=0,p.value=0,m.value=0);return}const w=b.getBoundingClientRect();a.value=w.height,l.value=w.bottom,c.value=w.left,u.value=w.right,d.value=w.top,h.value=w.width,p.value=w.x,m.value=w.y}function g(){r==="sync"?v():r==="next-frame"&&requestAnimationFrame(()=>v())}return Wo(e,g),be(()=>kt(e),b=>!b&&g()),Xh(e,g,{attributeFilter:["style","class"]}),i&&Be("scroll",g,{capture:!0,passive:!0}),s&&Be("resize",g,{passive:!0}),Oa(()=>{o&&g()}),{height:a,bottom:l,left:c,right:u,top:d,width:h,x:p,y:m,update:g}}function g6(e,t={width:0,height:0},n={}){const{window:s=$n,box:i="content-box"}=n,o=C(()=>{var d,h;return(h=(d=kt(e))==null?void 0:d.namespaceURI)==null?void 0:h.includes("svg")}),r=De(t.width),a=De(t.height),{stop:l}=Wo(e,([d])=>{const h=i==="border-box"?d.borderBoxSize:i==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(s&&o.value){const p=kt(e);if(p){const m=p.getBoundingClientRect();r.value=m.width,a.value=m.height}}else if(h){const p=wi(h);r.value=p.reduce((m,{inlineSize:v})=>m+v,0),a.value=p.reduce((m,{blockSize:v})=>m+v,0)}else r.value=d.contentRect.width,a.value=d.contentRect.height},n);Oa(()=>{const d=kt(e);d&&(r.value="offsetWidth"in d?d.offsetWidth:t.width,a.value="offsetHeight"in d?d.offsetHeight:t.height)});const c=be(()=>kt(e),d=>{r.value=d?t.width:0,a.value=d?t.height:0});function u(){l(),c()}return{width:r,height:a,stop:u}}function Ba(e,t,n={}){const{root:s,rootMargin:i="0px",threshold:o=0,window:r=$n,immediate:a=!0}=n,l=zo(()=>r&&"IntersectionObserver"in r),c=C(()=>{const m=ce(e);return wi(m).map(kt).filter(ob)});let u=Xt;const d=De(a),h=l.value?be(()=>
39[c.value,kt(s),d.value],([m,v])=>{if(u(),!d.value||!m.length)return;const g=new IntersectionObserver(t,{root:kt(v),rootMargin:i,threshold:o});m.forEach(b=>b&&g.observe(b)),u=()=>{g.disconnect(),u=Xt}},{immediate:a,flush:"post"}):Xt,p=()=>{u(),h(),d.value=!1};return gs(p),{isSupported:l,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}const _c=new Map;function ub(e){const t=Ig();function n(a){var l;const c=_c.get(e)||new Set;c.add(a),_c.set(e,c);const u=()=>i(a);return(l=t==null?void 0:t.cleanups)==null||l.push(u),u}function s(a){function l(...c){i(l),a(...c)}return n(l)}function i(a){const l=_c.get(e);l&&(l.delete(a),l.size||o())}function o(){_c.delete(e)}function r(a,l){var c;(c=_c.get(e))==null||c.forEach(u=>u(a,l))}return{on:n,once:s,off:i,emit:r,reset:o}}const b6={multiple:!0,accept:"*",reset:!1,directory:!1};function y6(e){if(!e)return null;if(e instanceof FileList)return e;const t=new DataTransfer;for(const n of e)t.items.add(n);return t.files}function w6(e={}){const{document:t=lb}=e,n=P(y6(e.initialFiles)),{on:s,trigger:i}=xr(),{on:o,trigger:r}=xr(),a=C(()=>{var d;const h=(d=kt(e.input))!=null?d:t?t.createElement("input"):void 0;return h&&(h.type="file",h.onchange=p=>{const m=p.target;n.value=m.files,i(n.value)},h.oncancel=()=>{r()}),h}),l=()=>{n.value=null,a.value&&a.value.value&&(a.value.value="",i(null))},c=d=>{const h=a.value;h&&(h.multiple=ce(d.multiple),h.accept=ce(d.accept),h.webkitdirectory=ce(d.directory),GP(d,"capture")&&(h.capture=ce(d.capture)))},u=d=>{const h=a.value;if(!h)return;const p={...b6,...e,...d};c(p),ce(p.reset)&&l(),h.click()};return Gl(()=>{c(e)}),{files:Ft(n),open:u,reset:l,onCancel:o,onChange:s}}const h1=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function _6(e,t={}){const{document:n=lb,autoExit:s=!1}=t,i=C(()=>{var w;return(w=kt(e))!=null?w:n==null?void 0:n.documentElement}),o=De(!1),r=C(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(w=>n&&w in n||i.value&&w in i.value)),a=C(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(w=>n&&w in n||i.value&&w in i.value)),l=C(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(w=>n&&w in n||i.value&&w in i.value)),c=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(w=>n&&w in n),u=zo(()=>i.value&&n&&r.value!==void 0&&a.value!==void 0&&l.value!==void 0),d=()=>c?(n==null?void 0:n[c])===i.value:!1,h=()=>{if(l.value){if(n&&n[l.value]!=null)return n[l.value];{const w=i.value;if((w==null?void 0:w[l.value])!=null)return!!w[l.value]}}return!1};async function p(){if(!(!u.value||!o.value)){if(a.value)if((n==null?void 0:n[a.value])!=null)await n[a.value]();else{const w=i.value;(w==null?void 0:w[a.value])!=null&&await w[a.value]()}o.value=!1}}async function m(){if(!u.value||o.value)return;h()&&await p();const w=i.value;r.value&&(w==null?void 0:w[r.value])!=null&&(await w[r.value](),o.value=!0)}async function v(){await(o.value?p():m())}const g=()=>{const w=h();(!w||w&&d())&&(o.value=w)},b={capture:!1,passive:!0};return Be(n,h1,g,b),Be(()=>kt(i),h1,g,b),Oa(g,!1),s&&gs(p),{isSupported:u,isFullscreen:o,enter:m,exit:p,toggle:v}}function im(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}const p1=1;function k6(e,t={}){const{throttle:n=0,idle:s=200,onStop:i=Xt,onScroll:o=Xt,offset:r={left:0,right:0,top:0,bottom:0},observe:a={mutation:!1},eventListenerOptions:l={capture:!1,passive:!0},behavior:c="auto",window:u=$n,onError:d=I=>{console.error(I)}}=t,h=typeof a=="boolean"?{mutation:a}:a,p=De(0),m=De(0),v=C({get(){return p.value},set(I){b(I,void 0)}}),g=C({get(){return m.value},set(I){b(void 0,I)}});function b(I,N){var V,$,j,X;if(!u)return;const U=ce(e);if(!U)return;(j=U instanceof Document?u.document.body:U)==null||j.scrollTo({top:(V=ce(N))!=null?V:g.value,left:($=ce(I))!=null?$:v.value,behavior:ce(c)});const R=((X=U==null?void 0:U.document)==null?void 0:X.documentElement)||(U==null?void 0:U.documentElement)||U;v!=null&&(p.value=R.scrollLeft),g!=null&&(m.value=R.scrollTop)}const w=De(!1),k=bt({left:!0,right:!1,top:!0,bottom:!1}),y=bt({left:!1,right:!1,top:!1,bottom:!1}),S=I=>{w.value&&(w.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,i(I))},E=js(S,n+s),x=I=>{var N;if(!u)return;const V=((N=I==null?void 0:I.document)==null?void 0:N.documentElement)||(I==null?void 0:I.documentElement)||kt(I),{display:$,flexDirection:j,direction:X}=getComputedStyle(V),U=X==="rtl"?-1:1,R=V.scrollLeft;y.left=R<p.value,y.right=R>p.value;const G=Math.abs(R*U)<=(r.left||0),H=Math.abs(R*U)+V.clientWidth>=V.scrollWidth-(r.right||0)-p1;$==="flex"&&j==="row-reverse"?(k.left=H,k.right=G):(k.left=G,k.right=H),p.value=R;let se=V.scrollTop;I===u.document&&!se&&(se=u.document.body.scrollTop),y.top=se<m.value,y.bottom=se>m.value;const ue=Math.abs(se)<=(r.top||0),de=Math.abs(se)+V.clientHeight>=V.scrollHeight-(r.bottom||0)-p1;$==="flex"&&j==="column-reverse"?(k.top=de,k.bottom=ue):(k.top=ue,k.bottom=de),m.value=se},M=I=>{var N;if(!u)return;const V=(N=I.target.documentElement)!=null?N:I.target;x(V),w.value=!0,E(I),o(I)};return Be(e,"scroll",n?Yh(M,n,!0,!1):M,l),Oa(()=>{try{const I=ce(e);if(!I)return;x(I)}catch(I){d(I)}}),h!=null&&h.mutation&&e!=null&&e!==u&&e!==document&&Xh(e,()=>{const I=ce(e);I&&x(I)},{attributes:!0,childList:!0,subtree:!0}),Be(e,"scrollend",S,l),{x:v,y:g,isScrolling:w,arrivedState:k,directions:y,measure(){const I=ce(e);u&&I&&x(I)}}}function Xn(e,t,n={}){const{window:s=$n}=n;return t3(e,t,s==null?void 0:s.localStorage,n)}const S6={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function n3(e={}){const{reactive:t=!1,target:n=$n,aliasMap:s=S6,passive:i=!0,onEventFired:o=Xt}=e,r=bt(new Set),a={toJSON(){return{}},current:r},l=t?bt(a):a,c=new Set,u=new Set,d=new Set;function h(g,b){g in l&&(t?l[g]=b:l[g].value=b)}function p(){r.clear();for(const g of d)h(g,!1)}function m(g,b){var w,k;const y=(w=g.key)==null?void 0:w.toLowerCase(),E=[(k=g.code)==null?void 0:k.toLowerCase(),y].filter(
39Boolean);y&&(b?r.add(y):r.delete(y));for(const x of E)d.add(x),h(x,b);if(y==="shift"&&!b){const x=Array.from(u),M=x.indexOf("shift");x.forEach((I,N)=>{N>=M&&(r.delete(I),h(I,!1))}),u.clear()}else typeof g.getModifierState=="function"&&g.getModifierState("Shift")&&b&&[...r,...E].forEach(x=>u.add(x));y==="meta"&&!b?(c.forEach(x=>{r.delete(x),h(x,!1)}),c.clear()):typeof g.getModifierState=="function"&&g.getModifierState("Meta")&&b&&[...r,...E].forEach(x=>c.add(x))}Be(n,"keydown",g=>(m(g,!0),o(g)),{passive:i}),Be(n,"keyup",g=>(m(g,!1),o(g)),{passive:i}),Be("blur",p,{passive:i}),Be("focus",p,{passive:i});const v=new Proxy(l,{get(g,b,w){if(typeof b!="string")return Reflect.get(g,b,w);if(b=b.toLowerCase(),b in s&&(b=s[b]),!(b in l))if(/[+_-]/.test(b)){const y=b.split(/[+_-]/g).map(S=>S.trim());l[b]=C(()=>y.map(S=>ce(v[S])).every(Boolean))}else l[b]=De(!1);const k=Reflect.get(g,b,w);return t?ce(k):k}});return v}function C6(e={}){const{window:t=$n}=e,n=t==null?void 0:t.navigator,s=zo(()=>n&&"connection"in n),i=De(!0),o=De(!1),r=De(void 0),a=De(void 0),l=De(void 0),c=De(void 0),u=De(void 0),d=De(void 0),h=De("unknown"),p=s.value&&n.connection;function m(){n&&(i.value=n.onLine,r.value=i.value?void 0:Date.now(),a.value=i.value?Date.now():void 0,p&&(l.value=p.downlink,c.value=p.downlinkMax,d.value=p.effectiveType,u.value=p.rtt,o.value=p.saveData,h.value=p.type))}const v={passive:!0};return t&&(Be(t,"offline",()=>{i.value=!1,r.value=Date.now()},v),Be(t,"online",()=>{i.value=!0,a.value=Date.now()},v)),p&&Be(p,"change",m,v),m(),{isSupported:s,isOnline:Ft(i),saveData:Ft(o),offlineAt:Ft(r),onlineAt:Ft(a),downlink:Ft(l),downlinkMax:Ft(c),effectiveType:Ft(d),rtt:Ft(u),type:Ft(h)}}function E6(e={}){const{isOnline:t}=C6(e);return t}function x6(e){const t=ii("(prefers-reduced-motion: reduce)",e);return C(()=>t.value?"reduce":"no-preference")}function s3(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth<e.scrollWidth||t.overflowY==="auto"&&e.clientHeight<e.scrollHeight)return!0;{const n=e.parentNode;return!n||n.tagName==="BODY"?!1:s3(n)}}function T6(e){const t=e||window.event,n=t.target;return s3(n)?!1:t.touches.length>1?!0:(t.preventDefault&&t.preventDefault(),!1)}const om=new WeakMap;function A6(e,t=!1){const n=De(t);let s=null,i="";be(Rf(e),a=>{const l=im(ce(a));if(l){const c=l;if(om.get(c)||om.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(i=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const o=()=>{const a=im(ce(e));!a||n.value||(Pf&&(s=Be(a,"touchmove",l=>{T6(l)},{passive:!1})),a.style.overflow="hidden",n.value=!0)},r=()=>{const a=im(ce(e));!a||!n.value||(Pf&&(s==null||s()),a.style.overflow=i,om.delete(a),n.value=!1)};return gs(r),C({get(){return n.value},set(a){a?o():r()}})}let P6=0;function R6(e,t={}){const n=De(!1),{document:s=lb,immediate:i=!0,manual:o=!1,id:r=`vueuse_styletag_${++P6}`}=t,a=De(e);let l=()=>{};const c=()=>{if(!s)return;const d=s.getElementById(r)||s.createElement("style");d.isConnected||(d.id=r,t.nonce&&(d.nonce=t.nonce),t.media&&(d.media=t.media),s.head.appendChild(d)),!n.value&&(l=be(a,h=>{d.textContent=h},{immediate:!0}),n.value=!0)},u=()=>{!s||!n.value||(l(),s.head.removeChild(s.getElementById(r)),n.value=!1)};return i&&!o&&Oa(c),o||gs(u),{id:r,css:a,unload:u,load:c,isLoaded:Ft(n)}}function db(){const e=P([]);return e.value.set=t=>{t&&e.value.push(t)},Vg(()=>{e.value.length=0}),e}function I6(e=$n,t){e&&typeof e.requestAnimationFrame=="function"?e.requestAnimationFrame(t):t()}function M6(e={}){var t,n;const{window:s=$n}=e,i=Rf(e==null?void 0:e.element),o=Rf((t=e==null?void 0:e.input)!=null?t:""),r=(n=e==null?void 0:e.styleProp)!=null?n:"height",a=De(1),l=De(0);function c(){var u;if(!i.value)return;let d="";i.value.style[r]="1px",a.value=(u=i.value)==null?void 0:u.scrollHeight;const h=ce(e==null?void 0:e.styleTarget);h?h.style[r]=`${a.value}px`:d=`${a.value}px`,i.value.style[r]=d}return be([o,i],()=>un(c),{immediate:!0}),be(a,()=>{var u;return(u=e==null?void 0:e.onResize)==null?void 0:u.call(e)}),Wo(i,([{contentRect:u}])=>{l.value!==u.width&&I6(s,()=>{l.value=u.width,c()})}),e!=null&&e.watch&&be(e.watch,c,{immediate:!0,deep:!0}),{textarea:i,input:o,triggerResize:c}}function $6(e={}){const{window:t=$n}=e;if(!t)return De(!1);const n=De(t.document.hasFocus()),s={passive:!0};return Be(t,"blur",()=>{n.value=!1},s),Be(t,"focus",()=>{n.value=!0},s),n}function zt(e){return Pn(e)}function yt(e,t=null){return e}function Un(e){return e??(()=>({}))}function L6(){const e=P(!1),t=Ft(e);function n(a){const l=document.documentElement;a?l.setAttribute("data-effects","reduced"):l.removeAttribute("data-effects")}function s(a){e.value=a,n(a)}const{level:i,charging:o,isSupported:r}=r6();return be([i,o,r],()=>{if(!r.value||i.value===null||o.value===null)return;
39const a=i.value<=.2&&!o.value;e.value=a,n(a)},{immediate:!0}),{reducedEffectsEnabled:t,setReducedEffects:s}}const O6=Pn(L6),fb=yt(O6,()=>({reducedEffectsEnabled:Ft(P(!1)),setReducedEffects:()=>{}}));let Rd=null;const B6=yt(Pn(()=>{const{reducedEffectsEnabled:e}=fb(),t=n=>{if(e.value)return;const s=n.target;if(s===null)return;const i=s.closest("[data-ripple]");if(i===null)return;const o=i.dataset.ripple==="center";let r,a,l;if(o){const u=i.clientWidth,d=i.clientHeight;r=u/2,a=d/2,l=Math.max(u,d)}else{const u=i.getBoundingClientRect();r=n.clientX-u.left,a=n.clientY-u.top,l=Math.max(u.width,u.height)}const c=document.createElement("span");c.className="ripple-effect",c.style.left=`${r}px`,c.style.top=`${a}px`,c.style.width=`${l*2}px`,c.style.height=`${l*2}px`,c.addEventListener("animationend",()=>{c.remove()},{once:!0}),i.appendChild(c)};je(()=>{document.addEventListener("pointerdown",t,{passive:!0}),Rd=()=>{document.removeEventListener("pointerdown",t)}}),et(()=>{Rd!==null&&(Rd(),Rd=null)})}),()=>({}));let D6="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Vs=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+=D6[n[e]&63];return t};class N6{constructor(){le(this,"registry",new Map);le(this,"cache",new Map);le(this,"id",Vs(4))}register(t,n){this.registry.set(t,n)}isRegistered(t){return this.registry.has(t)}resolve(t){const n=this.registry.get(t);if(n==null)throw new Error(`Dependency ${t} not registered`);if(this.cache.has(t))return this.cache.get(t);const s=n();return this.cache.set(t,s),s}clear(){this.registry.clear(),this.cache.clear()}}let m1=new N6;function pt(){if(m1===null)throw new Error("IoC Client Context: No container available in the current context.");return m1}function Xl(){return{}}/*! 40 * shared v11.3.2 41 * (c) 2026 kazuya kawaguchi 42 * Released under the MIT License. 43 */function F6(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Mf=typeof window<"u",Ar=(e,t=!1)=>t?Symbol.for(e):Symbol(e),U6=(e,t,n)=>H6({l:e,k:t,s:n}),H6=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),En=e=>typeof e=="number"&&isFinite(e),i3=e=>pb(e)==="[object Date]",$f=e=>pb(e)==="[object RegExp]",Jh=e=>Mt(e)&&Object.keys(e).length===0,Nn=Object.assign,V6=Object.create,Vt=(e=null)=>V6(e);let v1;const hb=()=>v1||(v1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:Vt());function g1(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function b1(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function z6(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,i,o)=>`${i}="${b1(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,i,o)=>`${i}='${b1(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1on$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript:")}),e}const W6=Object.prototype.hasOwnProperty;function ri(e,t){return W6.call(e,t)}const wn=Array.isArray,mn=e=>typeof e=="function",Ue=e=>typeof e=="string",ln=e=>typeof e=="boolean",Ht=e=>e!==null&&typeof e=="object",j6=e=>Ht(e)&&mn(e.then)&&mn(e.catch),o3=Object.prototype.toString,pb=e=>o3.call(e),Mt=e=>pb(e)==="[object Object]",G6=e=>e==null?"":wn(e)||Mt(e)&&e.toString===o3?JSON.stringify(e,null,2):String(e);function mb(e,t=""){return e.reduce((n,s,i)=>i===0?n+s:n+t+s,"")}const Id=e=>!Ht(e)||wn(e);function Zd(e,t){if(Id(e)||Id(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:i}=n.pop();Object.keys(s).forEach(o=>{o!=="__proto__"&&(Ht(s[o])&&!Ht(i[o])&&(i[o]=Array.isArray(s[o])?[]:Vt()),Id(i[o])||Id(s[o])?i[o]=s[o]:n.push({src:s[o],des:i[o]}))})}}/*! 44 * message-compiler v11.3.2 45 * (c) 2026 kazuya kawaguchi 46 * Released under the MIT License. 47 */function q6(e,t,n){return{line:e,column:t,offset:n}}function hv(e,t,n){return{start:e,end:t}}const Dt={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTE
47RMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},K6=17;function Zh(e,t,n={}){const{domain:s,messages:i,args:o}=n,r=e,a=new SyntaxError(String(r));return a.code=e,t&&(a.location=t),a.domain=s,a}function Y6(e){throw e}const Pi=" ",X6="\r",es=` 48`,Q6="\u2028",J6="\u2029";function Z6(e){const t=e;let n=0,s=1,i=1,o=0;const r=x=>t[x]===X6&&t[x+1]===es,a=x=>t[x]===es,l=x=>t[x]===J6,c=x=>t[x]===Q6,u=x=>r(x)||a(x)||l(x)||c(x),d=()=>n,h=()=>s,p=()=>i,m=()=>o,v=x=>r(x)||l(x)||c(x)?es:t[x],g=()=>v(n),b=()=>v(n+o);function w(){return o=0,u(n)&&(s++,i=0),r(n)&&n++,n++,i++,t[n]}function k(){return r(n+o)&&o++,o++,t[n+o]}function y(){n=0,s=1,i=1,o=0}function S(x=0){o=x}function E(){const x=n+o;for(;x!==n;)w();o=0}return{index:d,line:h,column:p,peekOffset:m,charAt:v,currentChar:g,currentPeek:b,next:w,peek:k,reset:y,resetPeek:S,skipToPeek:E}}const ao=void 0,eR=".",y1="'",tR="tokenizer";function nR(e,t={}){const n=t.location!==!1,s=Z6(e),i=()=>s.index(),o=()=>q6(s.line(),s.column(),s.index()),r=o(),a=i(),l={currentType:13,offset:a,startLoc:r,endLoc:r,lastType:13,lastOffset:a,lastStartLoc:r,lastEndLoc:r,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(F,z,ee,...te){const we=c();if(z.column+=ee,z.offset+=ee,u){const Ee=n?hv(we.startLoc,z):null,ne=Zh(F,Ee,{domain:tR,args:te});u(ne)}}function h(F,z,ee){F.endLoc=o(),F.currentType=z;const te={type:z};return n&&(te.loc=hv(F.startLoc,F.endLoc)),ee!=null&&(te.value=ee),te}const p=F=>h(F,13);function m(F,z){return F.currentChar()===z?(F.next(),z):(d(Dt.EXPECTED_TOKEN,o(),0,z),"")}function v(F){let z="";for(;F.currentPeek()===Pi||F.currentPeek()===es;)z+=F.currentPeek(),F.peek();return z}function g(F){const z=v(F);return F.skipToPeek(),z}function b(F){if(F===ao)return!1;const z=F.charCodeAt(0);return z>=97&&z<=122||z>=65&&z<=90||z===95}function w(F){if(F===ao)return!1;const z=F.charCodeAt(0);return z>=48&&z<=57}function k(F,z){const{currentType:ee}=z;if(ee!==2)return!1;v(F);const te=b(F.currentPeek());return F.resetPeek(),te}function y(F,z){const{currentType:ee}=z;if(ee!==2)return!1;v(F);const te=F.currentPeek()==="-"?F.peek():F.currentPeek(),we=w(te);return F.resetPeek(),we}function S(F,z){const{currentType:ee}=z;if(ee!==2)return!1;v(F);const te=F.currentPeek()===y1;return F.resetPeek(),te}function E(F,z){const{currentType:ee}=z;if(ee!==7)return!1;v(F);const te=F.currentPeek()===".";return F.resetPeek(),te}function x(F,z){const{currentType:ee}=z;if(ee!==8)return!1;v(F);const te=b(F.currentPeek());return F.resetPeek(),te}function M(F,z){const{currentType:ee}=z;if(!(ee===7||ee===11))return!1;v(F);const te=F.currentPeek()===":";return F.resetPeek(),te}function I(F,z){const{currentType:ee}=z;if(ee!==9)return!1;const te=()=>{const Ee=F.currentPeek();return Ee==="{"?b(F.peek()):Ee==="@"||Ee==="|"||Ee===":"||Ee==="."||Ee===Pi||!Ee?!1:Ee===es?(F.peek(),te()):V(F,!1)},we=te();return F.resetPeek(),we}function N(F){v(F);const z=F.currentPeek()==="|";return F.resetPeek(),z}function V(F,z=!0){const ee=(we=!1,Ee="")=>{const ne=F.currentPeek();return ne==="{"||ne==="@"||!ne?we:ne==="|"?!(Ee===Pi||Ee===es):ne===Pi?(F.peek(),ee(!0,Pi)):ne===es?(F.peek(),ee(!0,es)):!0},te=ee();return z&&F.resetPeek(),te}function $(F,z){const ee=F.currentChar();return ee===ao?ao:z(ee)?(F.next(),ee):null}function j(F){const z=F.charCodeAt(0);return z>=97&&z<=122||z>=65&&z<=90||z>=48&&z<=57||z===95||z===36}function X(F){return $(F,j)}function U(F){const z=F.charCodeAt(0);return z>=97&&z<=122||z>=65&&z<=90||z>=48&&z<=57||z===95||z===36||z===45}function R(F){return $(F,U)}function G(F){const z=F.charCodeAt(0);return z>=48&&z<=57}function H(F){return $(F,G)}function se(F){const z=F.charCodeAt(0);return z>=48&&z<=57||z>=65&&z<=70||z>=97&&z<=102}function ue(F){return $(F,se)}function de(F){let z="",ee="";for(;z=H(F);)ee+=z;return ee}function ke(F){let z="";for(;;){const ee=F.currentChar();if(ee==="\\"){const te=F.peek();te==="{"||te==="}"||te==="@"||te==="|"||te==="\\"?(z+=ee+te,F.next(),F.next()):(F.resetPeek(),z+=ee,F.next())}else{if(ee==="{"||ee==="}"||ee==="@"||ee==="|"||!ee)break;
48if(ee===Pi||ee===es)if(V(F))z+=ee,F.next();else{if(N(F))break;z+=ee,F.next()}else z+=ee,F.next()}}return z}function Se(F){g(F);let z="",ee="";for(;z=R(F);)ee+=z;const te=F.currentChar();if(te&&te!=="}"&&te!==ao&&te!==Pi&&te!==es&&te!=="ã"){const we=ve(F);return d(Dt.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,ee+we),ee+we}return F.currentChar()===ao&&d(Dt.UNTERMINATED_CLOSING_BRACE,o(),0),ee}function _e(F){g(F);let z="";return F.currentChar()==="-"?(F.next(),z+=`-${de(F)}`):z+=de(F),F.currentChar()===ao&&d(Dt.UNTERMINATED_CLOSING_BRACE,o(),0),z}function Q(F){return F!==y1&&F!==es}function ge(F){g(F),m(F,"'");let z="",ee="";for(;z=$(F,Q);)z==="\\"?ee+=ie(F):ee+=z;const te=F.currentChar();return te===es||te===ao?(d(Dt.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),te===es&&(F.next(),m(F,"'")),ee):(m(F,"'"),ee)}function ie(F){const z=F.currentChar();switch(z){case"\\":case"'":return F.next(),`\\${z}`;case"u":return ae(F,z,4);case"U":return ae(F,z,6);default:return d(Dt.UNKNOWN_ESCAPE_SEQUENCE,o(),0,z),""}}function ae(F,z,ee){m(F,z);let te="";for(let we=0;we<ee;we++){const Ee=ue(F);if(!Ee){d(Dt.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${z}${te}${F.currentChar()}`);break}te+=Ee}return`\\${z}${te}`}function pe(F){return F!=="{"&&F!=="}"&&F!==Pi&&F!==es}function ve(F){g(F);let z="",ee="";for(;z=$(F,pe);)ee+=z;return ee}function Me(F){let z="",ee="";for(;z=X(F);)ee+=z;return ee}function Ke(F){const z=ee=>{const te=F.currentChar();return te==="{"||te==="@"||te==="|"||te==="("||te===")"||!te||te===Pi?ee:(ee+=te,F.next(),z(ee))};return z("")}function B(F){g(F);const z=m(F,"|");return g(F),z}function W(F,z){let ee=null;switch(F.currentChar()){case"{":return z.braceNest>=1&&d(Dt.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),F.next(),ee=h(z,2,"{"),g(F),z.braceNest++,ee;case"}":return z.braceNest>0&&z.currentType===2&&d(Dt.EMPTY_PLACEHOLDER,o(),0),F.next(),ee=h(z,3,"}"),z.braceNest--,z.braceNest>0&&g(F),z.inLinked&&z.braceNest===0&&(z.inLinked=!1),ee;case"@":return z.braceNest>0&&d(Dt.UNTERMINATED_CLOSING_BRACE,o(),0),ee=oe(F,z)||p(z),z.braceNest=0,ee;default:{let we=!0,Ee=!0,ne=!0;if(N(F))return z.braceNest>0&&d(Dt.UNTERMINATED_CLOSING_BRACE,o(),0),ee=h(z,1,B(F)),z.braceNest=0,z.inLinked=!1,ee;if(z.braceNest>0&&(z.currentType===4||z.currentType===5||z.currentType===6))return d(Dt.UNTERMINATED_CLOSING_BRACE,o(),0),z.braceNest=0,he(F,z);if(we=k(F,z))return ee=h(z,4,Se(F)),g(F),ee;if(Ee=y(F,z))return ee=h(z,5,_e(F)),g(F),ee;if(ne=S(F,z))return ee=h(z,6,ge(F)),g(F),ee;if(!we&&!Ee&&!ne)return ee=h(z,12,ve(F)),d(Dt.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,ee.value),g(F),ee;break}}return ee}function oe(F,z){const{currentType:ee}=z;let te=null;const we=F.currentChar();switch((ee===7||ee===8||ee===11||ee===9)&&(we===es||we===Pi)&&d(Dt.INVALID_LINKED_FORMAT,o(),0),we){case"@":return F.next(),te=h(z,7,"@"),z.inLinked=!0,te;case".":return g(F),F.next(),h(z,8,".");case":":return g(F),F.next(),h(z,9,":");default:return N(F)?(te=h(z,1,B(F)),z.braceNest=0,z.inLinked=!1,te):E(F,z)||M(F,z)?(g(F),oe(F,z)):x(F,z)?(g(F),h(z,11,Me(F))):I(F,z)?(g(F),we==="{"?W(F,z)||te:h(z,10,Ke(F))):(ee===7&&d(Dt.INVALID_LINKED_FORMAT,o(),0),z.braceNest=0,z.inLinked=!1,he(F,z))}}function he(F,z){let ee={type:13};if(z.braceNest>0)return W(F,z)||p(z);if(z.inLinked)return oe(F,z)||p(z);switch(F.currentChar()){case"{":return W(F,z)||p(z);case"}":return d(Dt.UNBALANCED_CLOSING_BRACE,o(),0),F.next(),h(z,3,"}");case"@":return oe(F,z)||p(z);default:{if(N(F))return ee=h(z,1,B(F)),z.braceNest=0,z.inLinked=!1,ee;if(V(F))return h(z,0,ke(F));break}}return ee}function re(){const{currentType:F,offset:z,startLoc:ee,endLoc:te}=l;return l.lastType=F,l.lastOffset=z,l.lastStartLoc=ee,l.lastEndLoc=te,l.offset=i(),l.startLoc=o(),s.currentChar()===ao?h(l,13):he(s,l)}return{nextToken:re,currentOffset:i,currentPosition:o,context:c}}const sR="parser",iR=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,oR=/\\([\\@{}|])/g;function rR(e,t){return t}function aR(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function lR(e={}){const t=e.location!==!1,{onError:n}=e;function s(b,w,k,y,...S){const E=b.currentPosition();
48if(E.offset+=y,E.column+=y,n){const x=t?hv(k,E):null,M=Zh(w,x,{domain:sR,args:S});n(M)}}function i(b,w,k){const y={type:b};return t&&(y.start=w,y.end=w,y.loc={start:k,end:k}),y}function o(b,w,k,y){t&&(b.end=w,b.loc&&(b.loc.end=k))}function r(b,w){const k=b.context(),y=i(3,k.offset,k.startLoc);return y.value=w.replace(oR,rR),o(y,b.currentOffset(),b.currentPosition()),y}function a(b,w){const k=b.context(),{lastOffset:y,lastStartLoc:S}=k,E=i(5,y,S);return E.index=parseInt(w,10),b.nextToken(),o(E,b.currentOffset(),b.currentPosition()),E}function l(b,w){const k=b.context(),{lastOffset:y,lastStartLoc:S}=k,E=i(4,y,S);return E.key=w,b.nextToken(),o(E,b.currentOffset(),b.currentPosition()),E}function c(b,w){const k=b.context(),{lastOffset:y,lastStartLoc:S}=k,E=i(9,y,S);return E.value=w.replace(iR,aR),b.nextToken(),o(E,b.currentOffset(),b.currentPosition()),E}function u(b){const w=b.nextToken(),k=b.context(),{lastOffset:y,lastStartLoc:S}=k,E=i(8,y,S);return w.type!==11?(s(b,Dt.UNEXPECTED_EMPTY_LINKED_MODIFIER,k.lastStartLoc,0),E.value="",o(E,y,S),{nextConsumeToken:w,node:E}):(w.value==null&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,Ri(w)),E.value=w.value||"",o(E,b.currentOffset(),b.currentPosition()),{node:E})}function d(b,w){const k=b.context(),y=i(7,k.offset,k.startLoc);return y.value=w,o(y,b.currentOffset(),b.currentPosition()),y}function h(b){const w=b.context(),k=i(6,w.offset,w.startLoc);let y=b.nextToken();if(y.type===8){const S=u(b);k.modifier=S.node,y=S.nextConsumeToken||b.nextToken()}switch(y.type!==9&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ri(y)),y=b.nextToken(),y.type===2&&(y=b.nextToken()),y.type){case 10:y.value==null&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ri(y)),k.key=d(b,y.value||"");break;case 4:y.value==null&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ri(y)),k.key=l(b,y.value||"");break;case 5:y.value==null&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ri(y)),k.key=a(b,y.value||"");break;case 6:y.value==null&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ri(y)),k.key=c(b,y.value||"");break;default:{s(b,Dt.UNEXPECTED_EMPTY_LINKED_KEY,w.lastStartLoc,0);const S=b.context(),E=i(7,S.offset,S.startLoc);return E.value="",o(E,S.offset,S.startLoc),k.key=E,o(k,S.offset,S.startLoc),{nextConsumeToken:y,node:k}}}return o(k,b.currentOffset(),b.currentPosition()),{node:k}}function p(b){const w=b.context(),k=w.currentType===1?b.currentOffset():w.offset,y=w.currentType===1?w.endLoc:w.startLoc,S=i(2,k,y);S.items=[];let E=null;do{const I=E||b.nextToken();switch(E=null,I.type){case 0:I.value==null&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ri(I)),S.items.push(r
48(b,I.value||""));break;case 5:I.value==null&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ri(I)),S.items.push(a(b,I.value||""));break;case 4:I.value==null&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ri(I)),S.items.push(l(b,I.value||""));break;case 6:I.value==null&&s(b,Dt.UNEXPECTED_LEXICAL_ANALYSIS,w.lastStartLoc,0,Ri(I)),S.items.push(c(b,I.value||""));break;case 7:{const N=h(b);S.items.push(N.node),E=N.nextConsumeToken||null;break}}}while(w.currentType!==13&&w.currentType!==1);const x=w.currentType===1?w.lastOffset:b.currentOffset(),M=w.currentType===1?w.lastEndLoc:b.currentPosition();return o(S,x,M),S}function m(b,w,k,y){const S=b.context();let E=y.items.length===0;const x=i(1,w,k);x.cases=[],x.cases.push(y);do{const M=p(b);E||(E=M.items.length===0),x.cases.push(M)}while(S.currentType!==13);return E&&s(b,Dt.MUST_HAVE_MESSAGES_IN_PLURAL,k,0),o(x,b.currentOffset(),b.currentPosition()),x}function v(b){const w=b.context(),{offset:k,startLoc:y}=w,S=p(b);return w.currentType===13?S:m(b,k,y,S)}function g(b){const w=nR(b,Nn({},e)),k=w.context(),y=i(0,k.offset,k.startLoc);return t&&y.loc&&(y.loc.source=b),y.body=v(w),e.onCacheKey&&(y.cacheKey=e.onCacheKey(b)),k.currentType!==13&&s(w,Dt.UNEXPECTED_LEXICAL_ANALYSIS,k.lastStartLoc,0,b[k.offset]||""),o(y,w.currentOffset(),w.currentPosition()),y}return{parse:g}}function Ri(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"â¦":t}function cR(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function w1(e,t){for(let n=0;n<e.length;n++)vb(e[n],t)}function vb(e,t){switch(e.type){case 1:w1(e.cases,t),t.helper("plural");break;case 2:w1(e.items,t);break;case 6:{vb(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function uR(e,t={}){const n=cR(e);n.helper("normalize"),e.body&&vb(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function dR(e){const t=e.body;return t.type===2?_1(t):t.cases.forEach(n=>_1(n)),e}function _1(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=mb(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function Ka(e){switch(e.t=e.type,e.type){case 0:{const t=e;Ka(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)Ka(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)Ka(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Ka(t.key),t.k=t.key,delete t.key,t.modifier&&(Ka(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function fR(e,t){const{filename:n,breakLineCode:s,needIndent:i}=t,o=t.location!==!1,r={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:i,indentLevel:0};o&&e.loc&&(r.source=e.loc.source);const a=()=>r;function l(v,g){r.code+=v}function c(v,g=!0){const b=g?s:"";l(i?b+" ".repeat(v):b)}function u(v=!0){const g=++r.indentLevel;v&&c(g)}function d(v=!0){const g=--r.indentLevel;v&&c(g)}function h(){c(r.indentLevel)}return{context:a,push:l,indent:u,deindent:d,newline:h,helper:v=>`_${v}`,needIndent:()=>r.needIndent}}function hR(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),Bl(e,t.key),t.modifier?(e.push(", "),Bl(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function pR(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const i=t.items.length;for(let o=0;o<i&&(Bl(e,t.items[o]),o!==i-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function mR(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const i=t.cases.length;for(let o=0;o<i&&(Bl(e,t.cases[o]),o!==i-1);
48o++)e.push(", ");e.deindent(s()),e.push("])")}}function vR(e,t){t.body?Bl(e,t.body):e.push("null")}function Bl(e,t){const{helper:n}=e;switch(t.type){case 0:vR(e,t);break;case 1:mR(e,t);break;case 2:pR(e,t);break;case 6:hR(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const gR=(e,t={})=>{const n=Ue(t.mode)?t.mode:"normal",s=Ue(t.filename)?t.filename:"message.intl";t.sourceMap;const i=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` 49`,o=t.needIndent?t.needIndent:n!=="arrow",r=e.helpers||[],a=fR(e,{filename:s,breakLineCode:i,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),r.length>0&&(a.push(`const { ${mb(r.map(u=>`${u}: _${u}`),", ")} } = ctx`),a.newline()),a.push("return "),Bl(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:l,map:c}=a.context();return{ast:e,code:l,map:c?c.toJSON():void 0}};function bR(e,t={}){const n=Nn({},t),s=!!n.jit,i=!!n.minify,o=n.optimize==null?!0:n.optimize,a=lR(n).parse(e);return s?(o&&dR(a),i&&Ka(a),{ast:a,code:""}):(uR(a,n),gR(a,n))}/*! 50 * core-base v11.3.2 51 * (c) 2026 kazuya kawaguchi 52 * Released under the MIT License. 53 */function yR(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hb().__INTLIFY_PROD_DEVTOOLS__=!1)}function Gi(e){return Ht(e)&&gb(e)===0&&(ri(e,"b")||ri(e,"body"))}const r3=["b","body"];function wR(e){return Pr(e,r3)}const a3=["c","cases"];function _R(e){return Pr(e,a3,[])}const l3=["s","static"];function kR(e){return Pr(e,l3)}const c3=["i","items"];function SR(e){return Pr(e,c3,[])}const u3=["t","type"];function gb(e){return Pr(e,u3)}const d3=["v","value"];function Md(e,t){const n=Pr(e,d3);if(n!=null)return n;throw Au(t)}const f3=["m","modifier"];function CR(e){return Pr(e,f3)}const h3=["k","key"];function ER(e){const t=Pr(e,h3);if(t)return t;throw Au(6)}function Pr(e,t,n){for(let s=0;s<t.length;s++){const i=t[s];if(ri(e,i)&&e[i]!=null)return e[i]}return n}const p3=[...r3,...a3,...l3,...c3,...h3,...f3,...d3,...u3];function Au(e){return new Error(`unhandled node type: ${e}`)}function rm(e){return n=>xR(n,e)}function xR(e,t){const n=wR(t);if(n==null)throw Au(0);if(gb(n)===1){const o=_R(n);return e.plural(o.reduce((r,a)=>[...r,k1(e,a)],[]))}else return k1(e,n)}function k1(e,t){const n=kR(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=SR(t).reduce((i,o)=>[...i,pv(e,o)],[]);return e.normalize(s)}}function pv(e,t){const n=gb(t);switch(n){case 3:return Md(t,n);case 9:return Md(t,n);case 4:{const s=t;if(ri(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(ri(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw Au(n)}case 5:{const s=t;if(ri(s,"i")&&En(s.i))return e.interpolate(e.list(s.i));if(ri(s,"index")&&En(s.index))return e.interpolate(e.list(s.index));throw Au(n)}case 6:{const s=t,i=CR(s),o=ER(s);return e.linked(pv(e,o),i?pv(e,i):void 0,e.type)}case 7:return Md(t,n);case 8:return Md(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const TR=e=>e;let $d=Vt();function AR(e,t={}){let n=!1;const s=t.onError||Y6;return t.onError=i=>{n=!0,s(i)},{...bR(e,t),detectError:n}}function PR(e,t){if(Ue(e)){ln(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||TR)(e),i=$d[s];if(i)return i;const{ast:o,detectError:r}=AR(e,{...t,location:!1,jit:!0}),a=rm(o);return r?a:$d[s]=a}else{const n=e.cacheKey;if(n){const s=$d[n];return s||($d[n]=rm(e))}else return rm(e)}}let Pu=null;function RR(e){Pu=e}function IR(e,t,n){Pu&&Pu.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const MR=$R("function:translate");function $R(e){return t=>Pu&&Pu.emit(e,t)}const Eo={INVALID_ARGUMENT:K6,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},LR=24;function xo(e){return Zh(e,null,void 0)}function bb(e,t){return t.locale!=null?S1(t.locale):S1(e.locale)}let am;function S1(e){if(Ue(e))return e;if(mn(e)){if(e.resolvedOnce&&am!=null)return am;if(e.constructor.name==="Function"){const t=e();if(j6(t))throw xo(Eo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return am=t}else throw xo(Eo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw xo(Eo.NOT_SUPPORT_LOCALE_TYPE)}function OR(e,t,n){return[...new Set([n,...wn(t)?t:Ht(t)?Object.keys(t):Ue(t)?[t]:[n]])]}function mv(e,t,n){const s=Ue(n)?n:Lf,i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(s);if(!o){o=[];let r=[n];for(;wn(r);)r=C1(o,r,t);const a=wn(t)||!Mt(t)?t:t.default?t.default:null;r=Ue(a)?[a]:a,wn(r)&&C1(o,r,!1),i.__localeChainCache.set(s,o)}return o}function C1(e,t,n){let s=!0;for(let i=0;i<t.length&&ln(s);i++){const o=t[i];Ue(o)&&(s=BR(e,t[i],n))}return s}
53function BR(e,t,n){let s;const i=t.split("-");do{const o=i.join("-");s=DR(e,o,n),i.splice(-1,1)}while(i.length&&s===!0);return s}function DR(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(wn(n)||Mt(n))&&n[i]&&(s=n[i])}return s}const Rr=[];Rr[0]={w:[0],i:[3,0],"[":[4],o:[7]};Rr[1]={w:[1],".":[2],"[":[4],o:[7]};Rr[2]={w:[2],i:[3,0],0:[3,0]};Rr[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Rr[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Rr[5]={"'":[4,0],o:8,l:[5,0]};Rr[6]={'"':[4,0],o:8,l:[6,0]};const NR=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function FR(e){return NR.test(e)}function UR(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function HR(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function VR(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:FR(t)?UR(t):"*"+t}function zR(e){const t=[];let n=-1,s=0,i=0,o,r,a,l,c,u,d;const h=[];h[0]=()=>{r===void 0?r=a:r+=a},h[1]=()=>{r!==void 0&&(t.push(r),r=void 0)},h[2]=()=>{h[0](),i++},h[3]=()=>{if(i>0)i--,s=4,h[0]();else{if(i=0,r===void 0||(r=VR(r),r===!1))return!1;h[1]()}};function p(){const m=e[n+1];if(s===5&&m==="'"||s===6&&m==='"')return n++,a="\\"+m,h[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(l=HR(o),d=Rr[s],c=d[l]||d.l||8,c===8||(s=c[0],c[1]!==void 0&&(u=h[c[1]],u&&(a=o,u()===!1))))return;if(s===7)return t}}const E1=new Map;function WR(e,t){return Ht(e)?e[t]:null}function jR(e,t){if(!Ht(e))return null;let n=E1.get(t);if(n||(n=zR(t),n&&E1.set(t,n)),!n)return null;const s=n.length;let i=e,o=0;for(;o<s;){const r=n[o];if(p3.includes(r)&&Gi(i)||!Ht(i)||!ri(i,r))return null;const a=i[r];if(a===void 0||mn(i))return null;i=a,o++}return i}const GR="11.3.2",ep=-1,Lf="en-US",Of="",x1=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function qR(){return{upper:(e,t)=>t==="text"&&Ue(e)?e.toUpperCase():t==="vnode"&&Ht(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ue(e)?e.toLowerCase():t==="vnode"&&Ht(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ue(e)?x1(e):t==="vnode"&&Ht(e)&&"__v_isVNode"in e?x1(e.children):e}}let m3;function KR(e){m3=e}let v3;function YR(e){v3=e}let g3;function XR(e){g3=e}let b3=null;const QR=e=>{b3=e},JR=()=>b3;let y3=null;const T1=e=>{y3=e},ZR=()=>y3;let A1=0;function e5(e={}){const t=mn(e.onWarn)?e.onWarn:F6,n=Ue(e.version)?e.version:GR,s=Ue(e.locale)||mn(e.locale)?e.locale:Lf,i=mn(s)?Lf:s,o=wn(e.fallbackLocale)||Mt(e.fallbackLocale)||Ue(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i,r=Mt(e.messages)?e.messages:lm(i),a=Mt(e.datetimeFormats)?e.datetimeFormats:lm(i),l=Mt(e.numberFormats)?e.numberFormats:lm(i),c=Nn(Vt(),e.modifiers,qR()),u=e.pluralRules||Vt(),d=mn(e.missing)?e.missing:null,h=ln(e.missingWarn)||$f(e.missingWarn)?e.missingWarn:!0,p=ln(e.fallbackWarn)||$f(e.fallbackWarn)?e.fallbackWarn:!0,m=!!e.fallbackFormat,v=!!e.unresolving,g=mn(e.postTranslation)?e.postTranslation:null,b=Mt(e.processor)?e.processor:null,w=ln(e.warnHtmlMessage)?e.warnHtmlMessage:!0,k=!!e.escapeParameter,y=mn(e.messageCompiler)?e.messageCompiler:m3,S=mn(e.messageResolver)?e.messageResolver:v3||WR,E=mn(e.localeFallbacker)?e.localeFallbacker:g3||OR,x=Ht(e.fallbackContext)?e.fallbackContext:void 0,M=e,I=Ht(M.__datetimeFormatters)?M.__datetimeFormatters:new Map,N=Ht(M.__numberFormatters)?M.__numberFormatters:new Map,V=Ht(M.__meta)?M.__meta:{};A1++;const $={version:n,cid:A1,locale:s,fallbackLocale:o,messages:r,modifiers:c,pluralRules:u,missing:d,missingWarn:h,fallbackWarn:p,fallbackFormat:m,unresolving:v,postTranslation:g,processor:b,warnHtmlMessage:w,escapeParameter:k,messageCompiler:y,messageResolver:S,localeFallbacker:E,fallbackContext:x,onWarn:t,__meta:V};return $.datetimeFormats=a,$.numberFormats=l,$.__datetimeFormatters=I,$.__numberFormatters=N,__INTLIFY_PROD_DEVTOOLS__&&IR($,n,V),$}const lm=e=>({[e]:Vt()});function yb(e,t,n,s,i){const{missing:o,onWarn:r}=e;if(o!==null){const a=o(e,n,t,i);return Ue(a)?a:t}else return t}function kc(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function t5(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function n5(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(t5(e,t[s]))return!0;return!1}function P1(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:i,onWarn:o,localeFallbacker:r}=e,{__datetimeFormatters:a}=e;if(!Ue(t[0])&&!i3(t[0])&&!En(t[0]))return Of;const[l,c,u,d]=vv(...t),h=ln(u.missingWarn)?u.missingWarn:e.missingWarn;ln(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,m=bb(e,u),v=r(e,i,m);if(!Ue(l)||l==="")return new Intl.DateTimeFormat(m.replace(/!/g,""),d).format(c);let g={},b,w=null;
53const k="datetime format";for(let E=0;E<v.length&&(b=v[E],g=n[b]||{},w=g[l],!Mt(w));E++)yb(e,l,b,h,k);if(!Mt(w)||!Ue(b))return s?ep:l;let y=`${b}__${l}`;Jh(d)||(y=`${y}__${JSON.stringify(d)}`);let S=a.get(y);return S||(S=new Intl.DateTimeFormat(b,Nn({},w,d)),a.set(y,S)),p?S.formatToParts(c):S.format(c)}const w3=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function vv(...e){const[t,n,s,i]=e,o=Vt();let r=Vt(),a;if(Ue(t)){const l=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!l)throw xo(Eo.INVALID_ISO_DATE_ARGUMENT);const c=l[3]?l[3].trim().startsWith("T")?`${l[1].trim()}${l[3].trim()}`:`${l[1].trim()}T${l[3].trim()}`:l[1].trim();a=new Date(c);try{a.toISOString()}catch{throw xo(Eo.INVALID_ISO_DATE_ARGUMENT)}}else if(i3(t)){if(isNaN(t.getTime()))throw xo(Eo.INVALID_DATE_ARGUMENT);a=t}else if(En(t))a=t;else throw xo(Eo.INVALID_ARGUMENT);return Ue(n)?o.key=n:Mt(n)&&Object.keys(n).forEach(l=>{w3.includes(l)?r[l]=n[l]:o[l]=n[l]}),Ue(s)?o.locale=s:Mt(s)&&(r=s),Mt(i)&&(r=i),[o.key||"",a,o,r]}function R1(e,t,n){const s=e;for(const i in n){const o=`${t}__${i}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function I1(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:i,onWarn:o,localeFallbacker:r}=e,{__numberFormatters:a}=e;if(!En(t[0]))return Of;const[l,c,u,d]=gv(...t),h=ln(u.missingWarn)?u.missingWarn:e.missingWarn;ln(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,m=bb(e,u),v=r(e,i,m);if(!Ue(l)||l==="")return new Intl.NumberFormat(m.replace(/!/g,""),d).format(c);let g={},b,w=null;const k="number format";for(let E=0;E<v.length&&(b=v[E],g=n[b]||{},w=g[l],!Mt(w));E++)yb(e,l,b,h,k);if(!Mt(w)||!Ue(b))return s?ep:l;let y=`${b}__${l}`;Jh(d)||(y=`${y}__${JSON.stringify(d)}`);let S=a.get(y);return S||(S=new Intl.NumberFormat(b,Nn({},w,d)),a.set(y,S)),p?S.formatToParts(c):S.format(c)}const _3=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function gv(...e){const[t,n,s,i]=e,o=Vt();let r=Vt();if(!En(t))throw xo(Eo.INVALID_ARGUMENT);const a=t;return Ue(n)?o.key=n:Mt(n)&&Object.keys(n).forEach(l=>{_3.includes(l)?r[l]=n[l]:o[l]=n[l]}),Ue(s)?o.locale=s:Mt(s)&&(r=s),Mt(i)&&(r=i),[o.key||"",a,o,r]}function M1(e,t,n){const s=e;for(const i in n){const o=`${t}__${i}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const s5=e=>e,i5=e=>"",o5="text",r5=e=>e.length===0?"":mb(e),a5=G6;function cm(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function l5(e){var n,s;const t=En(e.pluralIndex)?e.pluralIndex:-1;return En((n=e.named)==null?void 0:n.count)?e.named.count:En((s=e.named)==null?void 0:s.n)?e.named.n:t}function c5(e={}){var b,w,k,y;const t=e.locale,n=l5(e),s=Ue(t)&&mn((b=e.pluralRules)==null?void 0:b[t])?e.pluralRules[t]:cm,i=s===cm?void 0:cm,o=S=>S[s(n,S.length,i)],r=e.list||[],a=S=>r[S],l=e.named||Vt();En(e.pluralIndex)&&(l.count||(l.count=e.pluralIndex),l.n||(l.n=e.pluralIndex));const c=S=>l[S];function u(S,E){const x=mn(e.messages)?e.messages(S,!!E):Ht(e.messages)?e.messages[S]:!1;return x||(e.parent?e.parent.message(S):i5)}const d=S=>e.modifiers?e.modifiers[S]:s5,h=mn((w=e.processor)==null?void 0:w.normalize)?e.processor.normalize:r5,p=mn((k=e.processor)==null?void 0:k.interpolate)?e.processor.interpolate:a5,m=Ue((y=e.processor)==null?void 0:y.type)?e.processor.type:o5,g={list:a,named:c,plural:o,linked:(S,...E)=>{const[x,M]=E;let I="text",N="";E.length===1?Ht(x)?(N=x.modifier||N,I=x.type||I):Ue(x)&&(N=x||N):E.length===2&&(Ue(x)&&(N=x||N),Ue(M)&&(I=M||I));const V=u(S,!0)(g),$=V===""||V===void 0?S:V,j=I==="vnode"&&wn($)&&N?$[0]:$;return N?d(N)(j,I):j},message:u,type:m,interpolate:p,normalize:h,values:Nn(Vt(),r,l)};return g}const $1=()=>"",ti=e=>mn(e);function L1(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:i,messageCompiler:o,fallbackLocale:r,messages:a}=e,[l,c]=bv(...t),u=ln(c.missingWarn)?c.missingWarn:e.missingWarn,d=ln(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=ln(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,m=Ue(c.default)||ln(c.default)?ln(c.default)?o?l:()=>l:c.default:n?o?l:()=>l:null,v=n||m!=null&&(Ue(m)||mn(m)),g=bb(e,c);h&&u5(c);let[b,w,k]=p?[l,g,a[g]||Vt()]:k3(e,l,g,r,d,u),y=b,S=l;if(!p&&!(Ue(y)||Gi(y)||ti(y))&&v&&(y=m,S=y),!p&&(!(Ue(y)||Gi(y)||ti(y))||!Ue(w)))return i?ep:l;let E=!1;const x=()=>{E=!0},M=ti(y)?y:S3(e,l,w,y,S,x);if(E)return y;const I=h5(e,w,k,c),N=c5(I),V=d5(e,M,N);let $=s?s(V,l):V;if(h&&Ue($)&&($=z6($)),__INTLIFY_PROD_DEVTOOLS__){const j={timestamp:Date.now(),key:Ue(l)?l:ti(y)?y.key:"",locale:w||(ti(y)?y.locale:""),format:Ue(y)?y:ti(y)?y.source:"",message:$};j.meta=Nn({},e.__meta,JR()||{}),MR(j)}return $}function u5(e){wn(e.list)?e.list=e.list.map(t=>
vendor: 5,460 bytes, lines 53-57
53Ue(t)?g1(t):t):Ht(e.named)&&Object.keys(e.named).forEach(t=>{Ue(e.named[t])&&(e.named[t]=g1(e.named[t]))})}function k3(e,t,n,s,i,o){const{messages:r,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,s,n);let d=Vt(),h,p=null;const m="translate";for(let v=0;v<u.length&&(h=u[v],d=r[h]||Vt(),(p=l(d,t))===null&&(p=d[t]),!(Ue(p)||Gi(p)||ti(p)));v++)if(!n5(h,u)){const g=yb(e,t,h,o,m);g!==t&&(p=g)}return[p,h,d]}function S3(e,t,n,s,i,o){const{messageCompiler:r,warnHtmlMessage:a}=e;if(ti(s)){const c=s;return c.locale=c.locale||n,c.key=c.key||t,c}if(r==null){const c=(()=>s);return c.locale=n,c.key=t,c}const l=r(s,f5(e,n,i,s,a,o));return l.locale=n,l.key=t,l.source=s,l}function d5(e,t,n){return t(n)}function bv(...e){const[t,n,s]=e,i=Vt();if(!Ue(t)&&!En(t)&&!ti(t)&&!Gi(t))throw xo(Eo.INVALID_ARGUMENT);const o=En(t)?String(t):(ti(t),t);return En(n)?i.plural=n:Ue(n)?i.default=n:Mt(n)&&!Jh(n)?i.named=n:wn(n)&&(i.list=n),En(s)?i.plural=s:Ue(s)?i.default=s:Mt(s)&&Nn(i,s),[o,i]}function f5(e,t,n,s,i,o){return{locale:t,key:n,warnHtmlMessage:i,onError:r=>{throw o&&o(r),r},onCacheKey:r=>U6(t,n,r)}}function h5(e,t,n,s){const{modifiers:i,pluralRules:o,messageResolver:r,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,h={locale:t,modifiers:i,pluralRules:o,messages:(p,m)=>{let v=r(n,p);if(v==null&&(u||m)){const[g,,b]=k3(u||e,p,t,a,l,c);v=g??r(b,p)}if(Ue(v)||Gi(v)){let g=!1;const w=S3(e,p,t,v,p,()=>{g=!0});return g?$1:w}else return ti(v)?v:$1}};return e.processor&&(h.processor=e.processor),s.list&&(h.list=s.list),s.named&&(h.named=s.named),En(s.plural)&&(h.pluralIndex=s.plural),h}yR();/*! 54 * vue-i18n v11.3.2 55 * (c) 2026 kazuya kawaguchi 56 * Released under the MIT License. 57 */const p5="11.3.2";function m5(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(hb().__INTLIFY_PROD_DEVTOOLS__=!1)}const li={UNEXPECTED_RETURN_TYPE:LR,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Ci(e,...t){return Zh(e,null,void 0)}const yv=Ar("__translateVNode"),wv=Ar("__datetimeParts"),_v=Ar("__numberParts"),v5=Ar("__setPluralRules"),g5=Ar("__injectWithOption"),kv=Ar("__dispose");function Ru(e){if(!Ht(e)||Gi(e))return e;for(const t in e)if(ri(e,t))if(!t.includes("."))Ht(e[t])&&Ru(e[t]);else{const n=t.split("."),s=n.length-1;let i=e,o=!1;for(let r=0;r<s;r++){if(n[r]==="__proto__")throw new Error(`unsafe key: ${n[r]}`);if(n[r]in i||(i[n[r]]=Vt()),!Ht(i[n[r]])){o=!0;break}i=i[n[r]]}if(o||(Gi(i)?p3.includes(n[s])||delete e[t]:(i[n[s]]=e[t],delete e[t])),!Gi(i)){const r=i[n[s]];Ht(r)&&Ru(r)}}return e}function C3(e,t){const{messages:n,__i18n:s,messageResolver:i,flatJson:o}=t,r=Mt(n)?n:wn(s)?Vt():{[e]:Vt()};if(wn(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(r[l]=r[l]||Vt(),Zd(c,r[l])):Zd(c,r)}else Ue(a)&&Zd(JSON.parse(a),r)}),i==null&&o)for(const a in r)ri(r,a)&&Ru(r[a]);return r}function E3(e){return e.type}function b5(e,t,n){let s=Ht(t.messages)?t.messages:Vt();"__i18nGlobal"in n&&(s=C3(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const i=Object.keys(s);i.length&&i.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Ht(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(r=>{e.mergeDateTimeFormat(r,t.datetimeFormats[r])})}if(Ht(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(r=>{e.mergeNumberFormat(r,t.numberFormats[r])})}}}function O1(e){return A(kr,null,e,0)}function wb(){return Mn()}const B1="__INTLIFY_META__",D1=()=>[],y5=()=>!1;let N1=0;function F1(e){return((t,n,s,i)=>e(n,s,wb()||void 0,i))}const w5=()=>{const e=wb();let t=null;return e&&(t=E3(e)[B1])?{[B1]:t}:null};function x3(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,i=e.flatJson,o=Mf?P:De;let r=ln(e.inheritLocale)?e.inheritLocale:!0;const a=o(t&&r?t.locale.value:Ue(e.locale)?e.locale:Lf),l=o(t&&r?t.fallbackLocale.value:Ue(e.fallbackLocale)||wn(e.fallbackLocale)||Mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),c=o(C3(a.value,e)),u=o(Mt(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),d=o(Mt(e.numberFormats)?e.numberFormats:{[a.value]:{}});let h=t?t.missingWarn:ln(e.missingWarn)||$f(e.missingWarn)?e.missingWarn:!0,p=t?t.fallbackWarn:ln(e.fallbackWarn)||$f(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:ln(e.fallbackRoot)?e.fallbackRoot:!0,v=!!e.fallbackFormat,g=mn(e.missing)?e.missing:null,b=mn(e.missing)?F1(e.missing):null,w=mn(e.postTranslation)?e.postTranslation:null,k=t?t.warnHtmlMessage:ln(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const S=t?t.modifiers:Mt(e.modifiers)?e.modifiers:{};let E=e.pluralRules||t&&t.pluralRules,x;x=(()=>{s&&T1(null);const ne={version:p5,locale:a.value,fallbackLocale:l.value,messages:c.value,modifiers:S,pluralRules:E,missing:b===null?void 0:b,missingWarn:h,fallbackWarn:p,fallbackFormat:v,unresolving:!0,postTranslation:w===null?void 0:w,warnHtmlMessage:k,escapeParameter:y,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};ne.datetimeFormats=u.value,ne.numberFormats=d.value,ne.__datetimeFormatters=Mt(x)?x.__datetimeFormatters:void 0,ne.__numberFormatters=Mt(x)?x.__numberFormatters:void 0;const me=e5(ne);return s&&T1(me),me})(),kc(x,a.value,l.value);function I(){return[a.value,l.value,c.value,u.value,d.value]}const N=C({get:()=>a.value,set:ne=>{x.locale=ne,a.value=ne}}),V=C({get:()=>l.value,set:ne=>
57{x.fallbackLocale=ne,l.value=ne,kc(x,a.value,ne)}}),$=C(()=>c.value),j=C(()=>u.value),X=C(()=>d.value);function U(){return mn(w)?w:null}function R(ne){w=ne,x.postTranslation=ne}function G(){return g}function H(ne){ne!==null&&(b=F1(ne)),g=ne,x.missing=b}const se=(ne,me,Pe,He,Ze,nt)=>{I();let ht;try{__INTLIFY_PROD_DEVTOOLS__,s||(x.fallbackContext=t?ZR():void 0),ht=ne(x)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(x.fallbackContext=void 0)}if(Pe!=="translate exists"&&En(ht)&&ht===ep||Pe==="translate exists"&&!ht){const[jt,Hn]=me();return t&&m?He(t):Ze(jt)}else{if(nt(ht))return ht;throw Ci(li.UNEXPECTED_RETURN_TYPE)}};function ue(...ne){return se(me=>Reflect.apply(L1,null,[me,...ne]),()=>bv(...ne),"translate",me=>Reflect.apply(me.t,me,[...ne]),me=>me,me=>Ue(me))}function de(...ne){const[me,Pe,He]=ne;if(He&&!Ht(He))throw Ci(li.INVALID_ARGUMENT);return ue(me,Pe,Nn({resolvedMessage:!0},He||{}))}function ke(...ne){return se(me=>Reflect.apply(P1,null,[me,...ne]),()=>vv(...ne),"datetime format",me=>Reflect.apply(me.d,me,[...ne]),()=>Of,me=>Ue(me)||wn(me))}function Se(...ne){return se(me=>Reflect.apply(I1,null,[me,...ne]),()=>gv(...ne),"number format",me=>Reflect.apply(me.n,me,[...ne]),()=>Of,me=>Ue(me)||wn(me))}function _e(ne){return ne.map(me=>Ue(me)||En(me)||ln(me)?O1(String(me)):me)}const ge={normalize:_e,interpolate:ne=>ne,type:"vnode"};function ie(...ne){return se(me=>{let Pe;const He=me;try{He.processor=ge,Pe=Reflect.apply(L1,null,[He,...ne])}finally{He.processor=null}return Pe},()=>bv(...ne),"translate",me=>me[yv](...ne),me=>[O1(me)],me=>wn(me))}function ae(...ne){return se(me=>Reflect.apply(I1,null,[me,...ne]),()=>gv(...ne),"number format",me=>me[_v](...ne),D1,me=>Ue(me)||wn(me))}function pe(...ne){return se(me=>Reflect.apply(P1,null,[me,...ne]),()=>vv(...ne),"datetime format",me=>me[wv](...ne),D1,me=>Ue(me)||wn(me))}function ve(ne){E=ne,x.pluralRules=E}function Me(ne,me){return se(()=>{if(!ne)return!1;const Pe=Ue(me)?me:a.value,He=Ue(me)?[Pe]:mv(x,l.value,Pe);for(let Ze=0;Ze<He.length;Ze++){const nt=W(He[Ze]);let ht=x.messageResolver(nt,ne);
57if(ht===null&&(ht=nt[ne]),Gi(ht)||ti(ht)||Ue(ht))return!0}return!1},()=>[ne],"translate exists",Pe=>Reflect.apply(Pe.te,Pe,[ne,me]),y5,Pe=>ln(Pe))}function Ke(ne){let me=null;const Pe=mv(x,l.value,a.value);for(let He=0;He<Pe.length;He++){const Ze=c.value[Pe[He]]||{},nt=x.messageResolver(Ze,ne);if(nt!=null){me=nt;break}}return me}function B(ne){const me=Ke(ne);return me??(t?t.tm(ne)||{}:{})}function W(ne){return c.value[ne]||{}}function oe(ne,me){if(i){const Pe={[ne]:me};for(const He in Pe)ri(Pe,He)&&Ru(Pe[He]);me=Pe[ne]}c.value[ne]=me,x.messages=c.value}function he(ne,me){c.value[ne]=c.value[ne]||{};const Pe={[ne]:me};if(i)for(const He in Pe)ri(Pe,He)&&Ru(Pe[He]);me=Pe[ne],Zd(me,c.value[ne]),x.messages=c.value}function re(ne){return u.value[ne]||{}}function F(ne,me){u.value[ne]=me,x.datetimeFormats=u.value,R1(x,ne,me)}function z(ne,me){u.value[ne]=Nn(u.value[ne]||{},me),x.datetimeFormats=u.value,R1(x,ne,me)}function ee(ne){return d.value[ne]||{}}function te(ne,me){d.value[ne]=me,x.numberFormats=d.value,M1(x,ne,me)}function we(ne,me){d.value[ne]=Nn(d.value[ne]||{},me),x.numberFormats=d.value,M1(x,ne,me)}N1++,t&&Mf&&(be(t.locale,ne=>{r&&(a.value=ne,x.locale=ne,kc(x,a.value,l.value))}),be(t.fallbackLocale,ne=>{r&&(l.value=ne,x.fallbackLocale=ne,kc(x,a.value,l.value))}));const Ee={id:N1,locale:N,fallbackLocale:V,get inheritLocale(){return r},set inheritLocale(ne){r=ne,ne&&t&&(a.value=t.locale.value,l.value=t.fallbackLocale.value,kc(x,a.value,l.value))},get availableLocales(){return Object.keys(c.value).sort()},messages:$,get modifiers(){return S},get pluralRules(){return E||{}},get isGlobal(){return s},get missingWarn(){return h},set missingWarn(ne){h=ne,x.missingWarn=h},get fallbackWarn(){return p},set fallbackWarn(ne){p=ne,x.fallbackWarn=p},get fallbackRoot(){return m},set fallbackRoot(ne){m=ne},get fallbackFormat(){return v},set fallbackFormat(ne){v=ne,x.fallbackFormat=v},get warnHtmlMessage(){return k},set warnHtmlMessage(ne){k=ne,x.warnHtmlMessage=ne},get escapeParameter(){return y},set escapeParameter(ne){y=ne,x.escapeParameter=ne},t:ue,getLocaleMessage:W,setLocaleMessage:oe,mergeLocaleMessage:he,getPostTranslationHandler:U,setPostTranslationHandler:R,getMissingHandler:G,setMissingHandler:H,[v5]:ve};return Ee.datetimeFormats=j,Ee.numberFormats=X,Ee.rt=de,Ee.te=Me,Ee.tm=B,Ee.d=ke,Ee.n=Se,Ee.getDateTimeFormat=re,Ee.setDateTimeFormat=F,Ee.mergeDateTimeFormat=z,Ee.getNumberFormat=ee,Ee.setNumberFormat=te,Ee.mergeNumberFormat=we,Ee[g5]=n,Ee[yv]=ie,Ee[wv]=pe,Ee[_v]=ae,Ee}const _b={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function _5({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,i)=>[...s,...i.type===ye?i.children:[i]],[]):t.reduce((n,s)=>{const i=e[s];return i&&(n[s]=i()),n},Vt())}function T3(){return ye}const k5=J({name:"i18n-t",props:Nn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>En(e)||!isNaN(e)}},_b),setup(e,t){const{slots:n,attrs:s}=t,i=e.i18n||tp({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(d=>d[0]!=="_"),r=Vt();e.locale&&(r.locale=e.locale),e.plural!==void 0&&(r.plural=Ue(e.plural)?+e.plural:e.plural);const a=_5(t,o),l=i[yv](e.keypath,a,r),c=Nn(Vt(),s),u=Ue(e.tag)||Ht(e.tag)?e.tag:T3();return cn(u,c,l)}}}),U1=k5;function S5(e){return wn(e)&&!Ue(e[0])}function A3(e,t,n,s){const{slots:i,attrs:o}=t;return()=>{const r={part:!0};let a=Vt();e.locale&&(r.locale=e.locale),Ue(e.format)?r.key=e.format:Ht(e.format)&&(Ue(e.format.key)&&(r.key=e.format.key),a=Object.keys(e.format).reduce((h,p)=>n.includes(p)?Nn(Vt(),h,{[p]:e.format[p]}):h,Vt()));const l=s(e.value,r,a);let c=[r.key];wn(l)?c=l.map((h,p)=>{const m=i[h.type],v=m?m({[h.type]:h.value,index:p,parts:l}):[h.value];return S5(v)&&(v[0].key=`${h.type}-${p}`),v}):Ue(l)&&(c=[l]);const u=Nn(Vt(),o),d=Ue(e.tag)||Ht(e.tag)?e.tag:T3();return cn(d,u,c)}}const C5=J({name:"i18n-n",props:Nn({value:{type:Number,required:!0},format:{type:[String,Object]}},_b),setup(e,t){const n=e.i18n||tp({useScope:e.scope,__useComponent:!0});return A3(e,t,_3,(...s)=>n[_v](...s))}}),H1=C5;function E5(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function x5(e){const t=r=>{const{instance:a,value:l}=r;if(!a||!a.$)throw Ci(li.UNEXPECTED_ERROR);const c=E5(e,a.$),u=V1(l);return[Reflect.apply(c.t,c,[...z1(u)]),c]};return{created:(r,a)=>{const[l,c]=t(a);Mf&&(r.__i18nWatcher=be(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),r.__composer=c,r.textContent=l},unmounted:r=>{Mf&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:a})=>{if(r.__composer){const l=r.__composer,c=V1(a);r.textContent=Reflect.apply(l.t,l,[...z1(c)])}},getSSRProps:r=>{const[a]=t(r);return{textContent:a}}}}function V1(e){if(Ue(e))return{path:e};if(Mt(e)){if(!("path"in e))throw Ci(li.REQUIRED_VALUE,"path");return e}else throw Ci(li.INVALID_VALUE)}function z1(e){const{path:t,locale:n,args:s,choice:i,plural:o}=e,r={},a=s||{};return Ue(n)&&(r.locale=n),En(i)&&(r.plural=i),En(o)&&(r.plural=o),[t,a,r]}function T5(e,t,...n){const s=Mt(n[0])?n[0]:{};(ln(s.globalInstall)?s.globalInstall:!0)&&([U1.name,"I18nT"].forEach(o=>e.component(o,U1)),[H1.name,"I18nN"].forEach(o=>e.component(o,H1)),[j1.name,"I18nD"].forEach(o=>e.component(o,j1))),e.directive("t",x5(t))}const A5=Ar("global-vue-i18n");function P5(e={}){const t=ln(e.globalInjection)?e.globalInjection:!0,n=new Map,[s,i]=R5(e),o=Ar("");function r(u){return n.get(u)||null}function a(u,d){n.set(u,d)}function l(u){n.delete(u)}const c={get mode(){return"composition"}
57,async install(u,...d){if(u.__VUE_I18N_SYMBOL__=o,u.provide(u.__VUE_I18N_SYMBOL__,c),Mt(d[0])){const m=d[0];c.__composerExtend=m.__composerExtend,c.__vueI18nExtend=m.__vueI18nExtend}let h=null;t&&(h=N5(u,c.global)),T5(u,c,...d);const p=u.unmount;u.unmount=()=>{h&&h(),c.dispose(),p()}},get global(){return i},dispose(){s.stop()},__instances:n,__getInstance:r,__setInstance:a,__deleteInstance:l};return c}function tp(e={}){const t=wb();if(t==null)throw Ci(li.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Ci(li.NOT_INSTALLED);const n=I5(t),s=$5(n),i=E3(t),o=M5(e,i);if(o==="global")return b5(s,e,i),s;if(o==="parent"){let l=L5(n,t,e.__useComponent);return l==null&&(l=s),l}const r=n;let a=r.__getInstance(t);if(a==null){const l=Nn({},e);"__i18n"in i&&(l.__i18n=i.__i18n),s&&(l.__root=s),a=x3(l),r.__composerExtend&&(a[kv]=r.__composerExtend(a)),B5(r,t,a),r.__setInstance(t,a)}return a}function R5(e,t){const n=rk(),s=n.run(()=>x3(e));if(s==null)throw Ci(li.UNEXPECTED_ERROR);return[n,s]}function I5(e){const t=ut(e.isCE?A5:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Ci(e.isCE?li.NOT_INSTALLED_WITH_PROVIDE:li.UNEXPECTED_ERROR);return t}function M5(e,t){return Jh(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function $5(e){return e.mode==="composition"?e.global:e.global.__composer}function L5(e,t,n=!1){let s=null;const i=t.root;let o=O5(t,n);for(;o!=null;){const r=e;if(e.mode==="composition"&&(s=r.__getInstance(o)),s!=null||i===o)break;o=o.parent}return s}function O5(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function B5(e,t,n){je(()=>{},t),ui(()=>{const s=n;e.__deleteInstance(t);const i=s[kv];i&&(i(),delete s[kv])},t)}const D5=["locale","fallbackLocale","availableLocales"],W1=["t","rt","d","n","tm","te"];function N5(e,t){const n=Object.create(null);return D5.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o)throw Ci(li.UNEXPECTED_ERROR);const r=Ct(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,i,r)}),e.config.globalProperties.$i18n=n,W1.forEach(i=>{const o=Object.getOwnPropertyDescriptor(t,i);if(!o||!o.value)throw Ci(li.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${i}`,o)}),()=>{delete e.config.globalProperties.$i18n,W1.forEach(i=>{delete e.config.globalProperties[`$${i}`]})}}const F5=J({name:"i18n-d",props:Nn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},_b),setup(e,t){const n=e.i18n||tp({useScope:e.scope,__useComponent:!0});return A3(e,t,w3,(...s)=>n[wv](...s))}}),j1=F5;m5();KR(PR);YR(jR);XR(mv);if(__INTLIFY_PROD_DEVTOOLS__){const e=hb();e.__INTLIFY__=!0,RR(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}class Ql{constructor(t,n){le(this,"cache");this.capacity=t,this.lifetime=n,this.cache=new Map}size(){return this.cache.size}get(t){const n=this.cache.get(t);if(n!==void 0){if(this.lifetime!==void 0&&n.expiresAt!==void 0&&n.expiresAt<Date.now()){this.cache.delete(t);return}return this.cache.delete(t),this.cache.set(t,n),n.value}}getAll(){return Array.from(this.cache.entries())}has(t){return this.cache.has(t)}put(t,n){if(this.cache.has(t)&&this.cache.delete(t),this.cache.size>=this.capacity){const i=this.cache.keys().next().value;i!==void 0&&this.cache.delete(i)}const s=this.lifetime!==void 0?Date.now()+this.lifetime:void 0;this.cache.set(t,{value:n,expiresAt:s})}find(t){for(const[n,s]of this.cache.entries())if(t(s.value))return this.get(n)}clear(){this.cache.clear()}}function q(e){return e!=null&&e!==""}var os=(e=>(e.Pink="#ff1171",e.Black="#000",e.Green="#00d58f",e.White="#fff",e.Blue="#307DF0",e.LightBlue="#71ccff",e.Red="#D12727",e.Orange="#ffb30d",e.Purple="#a700ff",e.LightGreen="#00ff6b",e.LightYellow="#ffff71",e))(os||{});function oi(e,t,n,s="#000",i){var r,a;const o=` 58 display: inline-block; 59 border: 1px solid ${t}; 60 color: ${t}; 61 padding: 1px 3px; 62 border-radius: 4px; 63 margin-right: 8px 64 `;typeof window<"u"&&((a=(r=window.matchMedia)==null?void 0:r.call(window,"(prefers-color-scheme: dark)"))!=null&&a.matches)&&(s="#fff"),typeof i<"u"?console.log(`%c${e}%c${n}`,o,`color: ${s}`,i):console.log(`%c${e}%c${n}`,o,`color: ${s}`)}function U5(e,t){return t===void 0&&typeof e=="object"&&e!==null&&"kind"in e}function H5(e,t){return e}function V5(){function e(t,n,s){if(U5(n,s)){const o=n;return o.kind!=="method"?t:H5(t,String(o.name))}const i=s;return i===void 0?t:i}return e}class z5{constructor(t){le(this,"activeIntervalIds",new Set);this.interval=t}onTick(t){const n=setInterval(()=>{t(performance.now())},this.interval);return this.activeIntervalIds.add(n),()=>{clearInterval(n),this.activeIntervalIds.delete(n)}}stop(){for(const t of this.activeIntervalIds)clearInterval(t);this.activeIntervalIds.clear()}}const Sv=typeof window<"u",Iu=" ",W5="â",j5="â",um=`qwertyuiop[]asdfghjkl;'zxcvbnm,./QWERTYUIOP{}ASDFGHJKL:"ZXCVBNM<>?`,G1="йÑÑкенгÑÑÐ·Ñ ÑÑÑвапÑолджÑÑÑÑмиÑÑбÑ.ÐЦУÐÐÐÐШЩÐХЪФЫÐÐÐÐ ÐÐÐÐÐЯЧСÐÐТЬÐЮ,",P3={},R3={};for(let e=0;e<um.length;e++)P3[um[e]]=G1[e],R3[G1[e]]=um[e];function Zt(e,{separator:t=Iu,short:n}={separator:Iu}){const s=Number(e),i=Math.abs(s);if(n===!0||typeof n=="object"&&i>=Math.pow(10,n.fromDigits??0))return Intl.NumberFormat("en",{notation:"compact",maximumFractionDigits:typeof n=="object"?n.maximumFractionDigits:void 0}).format(s);if(i>=1e4){let r=new Intl.NumberFormat("en",{useGrouping:!0,roundingPriority:"morePrecision"}).format(s);const a=String(e).split(".")[1];return a!==void 0&&(r=`${r.split(".")[0]}.${a}`),r.replaceAll(",",t)}else return String(e)}function Die(e,t=0){const s=e.trim();return t===0||s.length<=t?s:s.slice(0,t-1).trim()+"â¦"}function q1(e){const{length:t}=e;let n=0;if(t>0)for(let s=0;s<t;s++){const i=e.charCodeAt(s);n=(n<<5)-n+i,n|=0}return n}function Xa(e,t){const n={dd:Math.floor(e/864e5),hh:Math.floor(e/36e5)%24,mm:Math.floor(e/6e4)%60,ss:Math.floor(e/1e3)%60,ms:Math.floor(e)%1e3};return t.split(":").map(s=>{const i=n[s];return i<10?`0${i}`:i}).join(":")}function G5(e){return e.charAt(0).toUpperCase()+e.slice(1)}function yn(e,t="â½"){return`${Zt(e)}${Iu}${t}`}function q5(e){const t=JSON.parse('{"а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","Ñ":"r","Ñ":"s","Ñ":"t","Ñ":"u","Ñ":"f","Ñ ":"h","Ñ":"c","Ñ":"ch","Ñ":"sh","Ñ":"sh","Ñ":"y","Ñ":"e","Ñ":"yu","Ñ":"ya","Ñ":"ye","Ñ":"i","Ñ":"j","Ñ":"lj","Ñ":"nj","Ò":"g","/":"-","\\\\":"-","|": "-", "_":"-","â":"-","â":"-"," ":"-"}');let n=String(e).toLowerCase().normalize("NFKD").split("").reduce((s,i)=>{let o="";
64return t[i]!==void 0?o=t[i]:i.match(/[a-z0-9-]/)!==null&&(o=i),s.charAt(s.length-1)==="-"&&o==="-"&&(o=""),s+o},"");return n.charAt(0)==="-"&&(n=n.substring(1)),n.charAt(n.length-1)==="-"&&(n=n.substring(0,n.length-1)),n}function K5(e,t){if(t<=0)return"";if(e.length<=t)return e;const n=["br","hr"],s=/<\/?[^>]+>/g;let i="",o=0,r=0;const a=[],l=[];let c;for(;(c=s.exec(e))!==null;){const d=e.slice(o,c.index);d.length>0&&l.push({text:d,isTag:!1}),l.push({text:c[0],isTag:!0}),o=c.index+c[0].length}const u=e.slice(o);u.length>0&&l.push({text:u,isTag:!1});for(const d of l)if(d.isTag){i+=d.text;const h=d.text.match(/<\/?([a-zA-Z0-9]+)/);if(h!=null){const p=h[1];d.text.startsWith("</")?a.pop():n.includes(p)||a.push(p)}}else{const h=d.text.slice(0,t-r);if(i+=h,r+=h.length,r>=t){(r>t||d.text.length>h.length)&&(i=i.trim(),i+="â¦");break}}for(;a.length>0;){const d=a.pop();d!=null&&!n.includes(d)&&(i+=`</${d}>`)}return i}function Nie(e){function t(n,s){return n.split("").map(i=>s[i]!==void 0?s[i]:i).join("")}return[t(e,R3),t(e,P3)]}function Bf(e){const t=e==null?void 0:e.trim();return q(t)?t:void 0}class kb extends CustomEvent{constructor(t,n,s=!1){super(t,{detail:n}),this.shouldBeBroadcasted=s}}var wo;class K1{constructor(){Fe(this,wo,new WeakMap)}set(t,n,s){let i=fe(this,wo).get(t);i===void 0&&(i=new Map,fe(this,wo).set(t,i)),i.set(n,s)}get(t,n){var s;return(s=fe(this,wo).get(t))==null?void 0:s.get(n)}has(t,n){var s;return((s=fe(this,wo).get(t))==null?void 0:s.has(n))??!1}delete(t,n){const s=fe(this,wo).get(t);s!==void 0&&(s.delete(n),s.size===0&&fe(this,wo).delete(t))}}wo=new WeakMap;var ua,ul;class np extends EventTarget{constructor(n){super();Fe(this,ua,new K1);Fe(this,ul,new K1);le(this,"broadcastChannel");(n==null?void 0:n.broadcast)!==void 0&&this.createBroadcastChannel(n.broadcast)}createBroadcastChannel(n){typeof window>"u"||window.BroadcastChannel!==void 0&&(this.broadcastChannel=new BroadcastChannel(n))}addEventListener(n,s,i){if(typeof s!="function"||fe(this,ua).has(s,n))return;const o=r=>{s.call(this,r)};if(fe(this,ua).set(s,n,o),super.addEventListener(n,o,i),this.broadcastChannel!==void 0){const r=a=>{n===a.data.type&&s.call(this,a.data)};fe(this,ul).set(s,n,r),this.broadcastChannel.addEventListener("message",r)}}dispatchEvent(n){const s=super.dispatchEvent(n);return n.shouldBeBroadcasted&&this.broadcastChannel!==void 0&&this.broadcastChannel.postMessage({type:n.type,detail:n.detail}),s}removeEventListener(n,s,i){if(typeof s!="function")return;const o=fe(this,ua).get(s,n);if(o!==void 0&&(super.removeEventListener(n,o,i),fe(this,ua).delete(s,n)),this.broadcastChannel!==void 0){const r=fe(this,ul).get(s,n);r!==void 0&&(this.broadcastChannel.removeEventListener("message",r),fe(this,ul).delete(s,n))}}}ua=new WeakMap,ul=new WeakMap;function Y5(e){return Object.keys(e).length===0}function as(e){return JSON.parse(JSON.stringify(e))}function I3(e,t=""){return Object.keys(e).reduce((n,s)=>{const i=t.length>0?`${t}.`:"";return typeof e[s]=="object"&&e[s]!==null&&Object.keys(e[s]).length>0?Object.assign(n,I3(e[s],i+s)):n[i+s]=e[s],n},{})}function M3(e,t){return Object.keys(t).forEach(n=>{n in e&&(e[n]=t[n])}),e}function ol(e){const t=parseInt(e,10);return Number.isNaN(t)?0:t}function X5(e,t){return Math.floor(Math.random()*(t-e+1))+e}function Q5(){return sp(Math.random(),2)}function J5(e,t,n){const s=(e-t)/Math.max(e,t)*100;return n===!0?`${Math.ceil(s)}%`.replace("-","â"):s}function sp(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}function ai(e){return e[e.length-1]}function Zc(e,t,n){const s=n.indexOf(t);return s>-1?Array.isArray(e)?n.splice(s+1,0,...e):n.splice(s+1,0,e):Array.isArray(e)?n.push(...e):n.push(e),n}function Z5(e,t,n,s){const i=n.indexOf(t);return i>-1?n.splice(i,0,e):n.push(e),n}function Y1(e,t){const n=t.indexOf(e);return n<0||t.splice(n+1),t}function To(e,t){const n=t.indexOf(e);n>-1&&t.splice(n,1)}function Jl(e){e.splice(0,e.length)}function Sb(e,t){e.splice(0,e.length,...t)}function Fie(e,t="id"){const n=new Set;return e.filter(s=>n.has(s[t])?!1:(n.add(s[t]),!0))}function eI(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}function X1(e,t){return t>=e.length?[...e].sort(()=>Math.random()-.5):eI([...e]).slice(0,t)}function No(e,t){if(e===t)return!0;
64if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(!q(e)||!q(t)||typeof e!="object"&&typeof t!="object")return e===t;if(e.prototype!==t.prototype)return!1;const n=Object.keys(e);return n.length!==Object.keys(t).length?!1:n.every(s=>No(e[s],t[s]))}var sa=(e=>(e[e.Unknown=400]="Unknown",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.ContentBlocked=451]="ContentBlocked",e))(sa||{});class Zl extends Error{constructor(){super(...arguments);le(this,"code",400);le(this,"meta",{})}}class Cb extends Zl{constructor(){super(...arguments);le(this,"code",403)}}class ec extends Zl{constructor(){super(...arguments);le(this,"code",404)}}class $3 extends Zl{constructor(){super(...arguments);le(this,"code",451)}}var Dl=(e=>(e.Subsite="subsite",e))(Dl||{}),ls=(e=>(e.USD="USD",e.EUR="EUR",e.BTC="BTC",e.RUB="RUB",e.TON="TON",e))(ls||{}),vo=(e=>(e.YaMusic="yamusic",e.Spotify="spotify",e))(vo||{}),Pt=(e=>(e.Image="image",e.Movie="movie",e.Video="video",e.Audio="audio",e.File="file",e.Link="link",e.OsnovaEmbed="osnovaEmbed",e.Embed="embed",e))(Pt||{}),_t=(e=>(e[e.Blog=1]="Blog",e[e.Community=2]="Community",e[e.Topic=2]="Topic",e))(_t||{}),en=(e=>(e.Blogs="blogs",e.Topics="topics",e.Companies="companies",e.Telegram="telegram",e))(en||{}),ef=(e=>(e.Plus="plus",e.Verified="verified",e.Pro="pro",e))(ef||{}),ni=(e=>(e.Hotness="hotness",e.Date="new",e.Seen="seen",e))(ni||{});const $e={...Te,Post:"post",Comment:"comment",Notifications:"notifications",WidgetPopularComments:"widget-popular-comments",Messenger:"messenger",Search:"search",QuickSearch:"quick-search",Blog:"blog",Theme:"theme",AdvertFeedPopular:"advert-feed-popular",AdvertFeedRecommendations:"advert-feed-recommendations",AdvertPostAfter:"advert-post-after",AdvertProMax:"advert-pro-max",QuoteUsd:"quote-usd",QuoteEur:"quote-eur",QuoteBtc:"quote-btc",QuoteTon:"quote-ton",DiscoveryBlogs:"discovery-blogs",DiscoveryCompanies:"discovery-companies",DiscoveryThemes:"discovery-themes",DiscoveryTelegram:"discovery-telegram",Settings:"settings",Plus:"plus",Pro:"pro",Courses:"courses",CoursesSchool:"courses-school",CoursesCollection:"courses-collection",Steampay:"steam",Editor:"editor",Direct:"direct",Email:"email",Push:"push",External:"external",BlogStats:"blog-stats",Auth:"auth",Apps:"apps",AccountMenu:"account-menu",Donations:"donations",DonationsRegistration:"donations-registration",Foreignpay:"foreignpay",Unknown:"unknown",Error:"error",PromotedProMaxBlogs:"promoted-pro-max-blogs",PlusGift:"plus-gift",Donate:"donate",Reactions:"reactions",Subscribers:"subscribers",Subscriptions:"subscriptions",BlogEdit:"blog-edit",SettingsNotifications:"settings-notifications",SettingsDelete:"settings-delete",SettingsNickname:"settings-nickname",SettingsBans:"settings-bans",RestrictedComments:"restricted-comments",PostSummary:"post-summary",OsnovaEmbed:"osnova-embed",Advert:"advert",Marketplace:"marketplace",SearchAiAnswer:"search-ai-answer",Quiz:"quiz",Collection:"collection",Terminal:"terminal"};var tn=(e=>(e.Feed="index_feed",e.PostBefore="post_before",e.PostPinned="post_pinned",e.PostAfter="post_after",e.Recommendations="recommendations",e.TopicFeed="topic_feed",e.Sidebar="sidebar",e))(tn||{}),cs=(e=>(e.Link="externalLink",e.Post="entry",e.LinkExtended="externalLinkExtended",e))(cs||{}),Wn=(e=>(e[e.Discover=0]="Discover",e[e.Read=1]="Read",e[e.Start=2]="Start",e[e.Order=3]="Order",e[e.Buy=4]="Buy",e[e.Get=5]="Get",e[e.Download=6]="Download",e[e.GoTo=7]="GoTo",e))(Wn||{}),Eb=(e=>(e.Ru="ru",e.En="en",e))(Eb||{}),eu=(e=>(e.Nobody="nobody",e.OnlySubscribers="only_subscribers",e.OnlyPlus="only_plus",e.OnlyDonators="only_donators",e.Everybody="everybody",e))(eu||{}),Df=(e=>(e.Date="date",e.Hotness="hotness",e.Popular="popular",e))(Df||{});const tI={great:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑлиÑно"}},share:{t:0,b:{t:2,i:[{t:3}],s:"ÐоделиÑÑÑÑ"}},on:{t:0,b:{t:2,i:[{t:3}],s:"на"}},readMore:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ"}},collapse:{t:0,b:{t:2,i:[{t:3}],s:"СвеÑнÑÑÑ"}},errorText:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоизоÑла оÑибка, попÑобÑйÑе позднее"}},connectionLost:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑеÑÑно Ñоединение Ñ Ð¸Ð½ÑеÑнеÑом"}},connectionRestored:{t:0,b:{t:2,i:[{t:3}],s:"Соединение Ñ Ð¸Ð½ÑеÑнеÑом воÑÑÑановлено"}},done:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑово"}},yes:{t:0,b:{t:2,i:[{t:3}],s:"Ðа"}},no:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑ"}},from:{t:0,b:{t:2,i:[{t:3}],s:"оÑ"}},fromAnon:{t:0,b:{t:2,i:[{t:3}],s:"анонима"}},receivedFromOnDate:{t:0,b:{t:2,i:[{t:3,v:"ÐолÑÑен Ð¾Ñ "},{t:4,k:"from"},{t:3,v:" "},{t:4,k:"date"}]}},nothingFound:{t:0,b:{t:2,i:[{t:3}],s:"ÐиÑего не найдено"}},submit:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавиÑÑ"}},good:{t:0,b:{t:2,i:[{t:3}],s:"ХоÑоÑо"}},gotIt:{t:0,b:{t:2,i:[{t:3}],s:"ÐонÑÑно"}},confirm:{t:0,b:{t:2,i:[{t:3}],s:"ÐодÑвеÑдиÑÑ"}},cancel:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑмениÑÑ"}},recover:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑановиÑÑ"}},email:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑа"}},logout:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑйÑи"}},areYouSure:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ ÑвеÑенÑ?"}},showMore:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ ÐµÑÑ"}},moreN:{t:0,b:{t:2,i:[{t:3,v:"ÐÑÑ "},{t:4,k:"n"}]}},cancellation:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑмена"}},emptyStubText:{t:0,b:{t:2,i:[{t:3}],s:"ÐдеÑÑ Ð¿Ð¾ÐºÐ° ниÑего неÑ"}},emptyStubTextWithContext:{user:{t:0,b:{t:2,i:[{t:3,v:"У полÑзоваÑÐµÐ»Ñ Ð¿Ð¾ÐºÐ° Ð½ÐµÑ "},{t:4,k:"value"}]}},my:{t:0,b:{t:2,i:[{t:3,v:"ÐдеÑÑ Ð±ÑдÑÑ Ñ
ÑаниÑÑÑÑ Ð²Ð°Ñи "},{t:4,k:"value"}]}}},achievements:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"аÑивки"},{t:2,i:[{t:3}],s:"аÑивка"},{t:2,i:[{t:3}],s:"аÑивки"},{t:2,i:[{t:3}],s:"аÑивок"}]}},gifts:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"подаÑки"},{t:2,i:[{t:3}],s:"подаÑок"},{t:2,i:[{t:3}],s:"подаÑка"},{t:2,i:[{t:3}],s:"подаÑков"}]}},achievementsAndGifts:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"аÑивки и подаÑки"},{t:2,i:[{t:3}],s:"аÑивка и подаÑок"},{t:2,i:[{t:3}],s:"аÑивки и подаÑка"},{t:2,i:[{t:3}],s:"аÑивок и подаÑков"}]}},myCollection:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¾Ñ ÐºÐ¾Ð»Ð»ÐµÐºÑиÑ"}},clearFilters:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑиÑÑиÑÑ ÑилÑÑÑÑ"}},apply:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑимениÑÑ"}},watchAgain:{t:0,b:{t:2,i:[{t:3}],s:"СмоÑÑеÑÑ Ð·Ð°Ð½Ð¾Ð²Ð¾"}},save:{t:0,b:{t:2,i:[{t:3}],s:"СоÑ
ÑаниÑÑ"}},change:{t:0,b:{t:2,i:[{t:3}],s:"ÐзмениÑÑ"}},purchase:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑÑ"}},unknownError:{t:0,b:{t:2,i:[{t:3}],s:"ÐеизвеÑÑÐ½Ð°Ñ Ð¾Ñибка"}},copied:{t:0,b:{t:2,i:[{t:3}],s:"СкопиÑовано"}},copyLink:{t:0,b:{t:2,i:[{t:3}],s:"ÐопиÑоваÑÑ ÑÑÑлкÑ"}},linkCopied:{t:0,b:{t:2,i:[{t:3}],s:"СÑÑлка ÑкопиÑована"}},countOfTotal:{t:0,b:{t:2,i:[{t:4,k:"count"},{t:3,v:" из "},{t:4,k:"total"}]}},leftPluralized:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"оÑÑалоÑÑ"},{t:2,i:[{t:3}],s:"оÑÑалаÑÑ"},{t:2,i:[{t:3}],s:"оÑÑалоÑÑ"},{t:2,i:[{t:3}],s:"оÑÑалоÑÑ"}]}},items:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑÑÑк"},{t:2,i:[{t:3}],s:"ÑÑÑка"},{t:2,i:[{t:3}],s:"ÑÑÑки"},{t:2,i:[{t:3}],s:"ÑÑÑк"}]}},soldOut:{t:0,b:{t:2,i:[{t:3}],s:"РаÑпÑодано"}},dates:{time:{t:0,b:{t:2,i:[{t:3}],s:"HH:mm"}},dayAndMonth:{t:0,b:{t:2,i:[{t:3}],s:"D MMMM"}},dayAndMonthShort:{t:0,b:{t:2,i:[{t:3}],s:"D MMM"}},dateFull:{t:0,b:{t:2,i:[{t:3}],s:"L"}},dateFullAndTime:{t:0,b:{t:2,i:[{t:3}],s:"L в H:mm"}},dayAndMonthAndTime:{t:0,b:{t:2,i:[{t:3}],s:"D MMMM в H:mm"}},dateFullAndMonthAndTime:{t:0,b:{t:2,i:[{t:3}],s:"D MMMM YYYY в H:mm"}},minutes:{t:0,b:{t:2,i:[{t:3}],s:"%dм"}},hours:{t:0,b:{t:2,i:[{t:3}],s:"%dÑ"}},yesterday:{t:0,b:{t:2,i:[{t:3}],s:"вÑеÑа"}},now:{t:0,b:{t:2,i:[{t:3}],s:"ÑейÑаÑ"}},oneWeek:{t:0,b:{t:2,i:[{t:3}],s:"1H"}},oneMonth:{t:0,b:{t:2,i:[{t:3}],s:"1Ð"}},oneYear:{t:0,b:{t:2,i:[{t:3}],s:"1Ð"}}
64,period:{month:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"меÑÑÑев"},{t:2,i:[{t:3}],s:"меÑÑÑ"},{t:2,i:[{t:3}],s:"меÑÑÑа"},{t:2,i:[{t:3}],s:"меÑÑÑев"}]}},year:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"леÑ"},{t:2,i:[{t:3}],s:"год"},{t:2,i:[{t:3}],s:"года"},{t:2,i:[{t:3}],s:"леÑ"}]}}}},attachments:{error:{sizeExceeded:{t:0,b:{t:2,i:[{t:3,v:"Ð Ð°Ð·Ð¼ÐµÑ Ñайла не должен пÑевÑÑаÑÑ "},{t:4,k:"value"},{t:3,v:"KB"}]}},wrongFormat:{t:0,b:{t:2,i:[{t:3,v:"ÐедопÑÑÑимÑй ÑоÑÐ¼Ð°Ñ "},{t:4,k:"value"}]}},upload:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑибка пÑи загÑÑзке Ñайла"}}}},subscription:{active:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка акÑивна"}},inactive:{t:0,b:{t:2,i:[{t:3}],s:"Ðе акÑивна"}},manage:{t:0,b:{t:2,i:[{t:3}],s:"УпÑавление подпиÑкой"}},purchase:{month:{t:0,b:{t:2,i:[{t:3,v:"ÐÑпиÑÑ Ð·Ð° "},{t:4,k:"price"},{t:3,v:" в меÑÑÑ"}]}},year:{t:0,b:{t:2,i:[{t:3,v:"ÐÑпиÑÑ Ð·Ð° "},{t:4,k:"price"},{t:3,v:" в год"}]}}},purchaseShort:{month:{t:0,b:{t:2,i:[{t:4,k:"price"},{t:3,v:" в меÑ"}]}},monthFull:{t:0,b:{t:2,i:[{t:4,k:"price"},{t:3,v:" в меÑÑÑ"}]}},year:{t:0,b:{t:2,i:[{t:4,k:"price"},{t:3,v:" в год"}]}}},prolong:{month:{t:0,b:{t:2,i:[{t:3,v:"ÐÑодлиÑÑ Ð·Ð° "},{t:4,k:"price"},{t:3,v:" в меÑÑÑ"}]}},year:{t:0,b:{t:2,i:[{t:3,v:"ÐÑодлиÑÑ Ð·Ð° "},{t:4,k:"price"},{t:3,v:" в год"}]}}},activeUntil:{t:0,b:{t:2,i:[{t:3,v:"ÐодпиÑка акÑивна до "},{t:4,k:"date"}]}},activeUntilShort:{t:0,b:{t:2,i:[{t:3,v:"ÐкÑивна до "},{t:4,k:"date"}]}},nextPayment:{t:0,b:{t:2,i:[{t:3,v:"СледÑÑÑее ÑпиÑание "},{t:4,k:"date"},{t:3,v:"."}]}},nextPaymentWithPrice:{t:0,b:{t:2,i:[{t:4,k:"date"},{t:3,v:" ÑпиÑем "},{t:4,k:"price"},{t:3,v:"."}]}}},giftFor:{t:0,b:{t:2,i:[{t:3,v:"ÐодаÑиÑÑ Ð·Ð° "},{t:4,k:"price"}]}},consent:{text:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ°Ð¶Ð¸Ð¼Ð°Ñ ÐºÐ½Ð¾Ð¿ÐºÑ, Ð²Ñ Ð¿ÑинимаеÑе"}},linkText:{t:0,b:{t:2,i:[{t:3}],s:"ÑÑловиÑ ÑоглаÑениÑ"}}},giftForPrice:{t:0,b:{t:2,i:[{t:3,v:"ÐодаÑиÑÑ Ð·Ð° "},{t:4,k:"price"}]}},games:{t:0,b:{t:2,i:[{t:3}],s:"ÐгÑÑ"}},play:{t:0,b:{t:2,i:[{t:3}],s:"ÐгÑаÑÑ"}},fromTo:{t:0,b:{t:2,i:[{t:3,v:"ÐÑ "},{t:4,k:"from"},{t:3,v:" до "},{t:4,k:"to"}]}},blogs:{t:0,b:{t:2,i:[{t:3}],s:"Ðлоги"}},write:{t:0,b:{t:2,i:[{t:3}],s:"ÐапиÑаÑÑ"}},about:{t:0,b:{t:2,i:[{t:3}],s:"РпÑоекÑе"}},rules:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑавила"}},ad:{t:0,b:{t:2,i:[{t:3}],s:"Реклама"}},apps:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑиложениÑ"}},topics:{t:0,b:{t:2,i:[{t:3}],s:"ТемÑ"}},showAll:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ Ð²Ñе"}},discovery:{t:0,b:{t:2,i:[{t:3}],s:"РейÑинг"}},quiz:{t:0,b:{t:2,i:[{t:3}],s:"ÐикÑоÑина"}},slovomer:{t:0,b:{t:2,i:[{t:3}],s:"СловомеÑ"}},search:{t:0,b:{t:2,i:[{t:3}],s:"ÐоиÑк"}},clear:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑиÑÑиÑÑ"}},navigation:{drafts:{t:0,b:{t:2,i:[{t:3}],s:"ЧеÑновики"}},bookmarks:{t:0,b:{t:2,i:[{t:3}],s:"Ðакладки"}},settings:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки"}},donates:{t:0,b:{t:2,i:[{t:3}],s:"ÐонаÑÑ"}},achievements:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑивки"}},plus:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка Plus"}},pro:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка Pro"}},marketplace:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑкеÑ"}},quiz:{t:0,b:{t:2,i:[{t:3}],s:"ÐикÑоÑина"}},slovomer:{t:0,b:{t:2,i:[{t:3}],s:"СловомеÑ"}},about:{t:0,b:{t:2,i:[{t:3}],s:"РпÑоекÑе"}},rules:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑавила"}},ads:{t:0,b:{t:2,i:[{t:3}],s:"Реклама"}},apps:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑиложениÑ"}},gifts:{t:0,b:{t:2,i:[{t:3}],s:"ÐодаÑки"}},collectibles:{t:0,b:{t:2,i:[{t:3}],s:"ÐоллекÑиÑ"}}},marketplaceDescriptions:{games:{t:0,b:{t:2,i:[{t:3}],s:"ÐополниÑÑ Steam%ÐополниÑÑ PlayStation%ЦиÑÑовÑе ÑоваÑÑ%ÐгÑовÑе валÑÑÑ"}},business:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑбежнÑе ÑеÑвиÑÑ%ÐодпиÑка ChatGPT%eSIM Ð´Ð»Ñ Ð¿Ð¾ÐµÐ·Ð´Ð¾Ðº%ÐплаÑа подпиÑок"}}},commentingPermissions:{blogTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑо Ð¼Ð¾Ð¶ÐµÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑиÑоваÑÑ Ð¿Ð¾ÑÑÑ"}},postTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑо Ð¼Ð¾Ð¶ÐµÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑиÑоваÑÑ Ð¿Ð¾ÑÑ"}},nobody:{t:0,b:{t:2,i:[{t:3}],s:"ÐикÑо"}},onlySubscribers:{t:0,b:{t:2,i:[{t:3}],s:"ТолÑко подпиÑÑики блога"}},onlyPlus:{t:0,b:{t:2,i:[{t:3}],s:"ТолÑко Plus-подпиÑÑики"}},onlyDonators:{t:0,b:{t:2,i:[{t:3}],s:"ТолÑко комменÑаÑии Ñ Ð´Ð¾Ð½Ð°Ñами"}},everybody:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе"}}},errors:{USER_BANNED:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°Ð±Ð°Ð½ÐµÐ½Ñ, данное дейÑÑвие невозможно"}}},cookieConsent:{message:{t:0,b:{t:2,i:[{t:3,v:'ÐÑ Ð¸ÑполÑзÑем <a href="'},{t:4,k:"privacyUrl"},{t:3,v:'" target="_blank" rel="noopener">кÑки</a>.'}]}},accept:{t:0,b:{t:2,i:[{t:3}],s:"OK"}}},next:{t:0,b:{t:2,i:[{t:3}],s:"Ðалее"}},specify:{t:0,b:{t:2,i:[{t:3}],s:"УказаÑÑ"}},all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе"}},my:{feminine:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑ"}},masculine:{t:0,b:{t:2,i:[{t:3}],s:"Ðой"}}},appDownload:{title:{t:0,b:{t:2,i:[{t:3}],s:"СкаÑайÑе наÑе пÑиложение"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Ðно бÑÑÑÑее и Ñдобнее."}},button:{t:0,b:{t:2,i:[{t:3}],s:"РпÑиложение"}}},purchaseForSelf:{t:0,b:{t:2,i:[{t:3,v:"ÐÑпиÑÑ Ñебе за "},{t:4,k:"price"}]}},upload:{t:0,b:{t:2,i:[{t:3}],s:"ÐагÑÑзиÑÑ"}},reactions:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑеакÑий"},{t:2,i:[{t:3}],s:"ÑеакÑиÑ"},{t:2,i:[{t:3}],s:"ÑеакÑии"},{t:2,i:[{t:3}],s:"ÑеакÑий"}]}}},Q1=Object.freeze(Object.defineProperty({__proto__:null,ru:tI},Symbol.toStringTag,{value:"Module"})),nI=Eb.Ru,J1="common";function ft(){const e=tp({useScope:"global"});if(!(J1 in e.messages.value[nI]))for(const n in Q1){const s=n;e.mergeLocaleMessage(s,{[J1]:Q1[s]})}return{locale:e.locale,t(n,s){return s!==void 0?e.t(n,s):e.t(n)},p(n,s,{excludeNumber:i=!1,numericSeparator:o=" ",textSeparator:r=" "}={}){const a=e.t(n,s);return i?a:`${Zt(s,{separator:o})}${r}${a}`}
64,tf(n,s){return e.te(n)?e.t(n):e.te(s)?e.t(s):""},tm(n){return e.tm(n)},rt:e.rt,getAvailableLocales:()=>e.availableLocales}}const L3=60,O3=L3*60,B3=O3*24,sI=B3*7,Nl=1e3,dm=L3*Nl,Z1=O3*Nl,iI=B3*Nl,oI=sI*Nl,xb="millisecond",ia="second",oa="minute",ra="hour",go="day",tf="week",ei="month",D3="quarter",bo="year",Qa="date",N3="YYYY-MM-DDTHH:mm:ssZ",ew="Invalid Date",rI=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,aI=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g;var lI={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")};const Cv=(e,t,n)=>{const s=String(e);return!s||s.length>=t?e:`${Array(t+1-s.length).join(n)}${e}`},cI=e=>{const t=-e.utcOffset(),n=Math.abs(t),s=Math.floor(n/60),i=n%60;return`${t<=0?"+":"-"}${Cv(s,2,"0")}:${Cv(i,2,"0")}`},F3=(e,t)=>{if(e.date()<t.date())return-F3(t,e);const n=(t.year()-e.year())*12+(t.month()-e.month()),s=e.clone().add(n,ei),i=t-s<0,o=e.clone().add(n+(i?-1:1),ei);return+(-(n+(t-s)/(i?s-o:o-s))||0)},uI=e=>e<0?Math.ceil(e)||0:Math.floor(e),dI=e=>({M:ei,y:bo,w:tf,d:go,D:Qa,h:ra,m:oa,s:ia,ms:xb,Q:D3})[e]||String(e||"").toLowerCase().replace(/s$/,""),fI=e=>e===void 0;var hI={s:Cv,z:cI,m:F3,a:uI,p:dI,u:fI};let tu="en";const Ca={};Ca[tu]=lI;const Tb=e=>e instanceof ip,Mu=(e,t,n)=>{let s;if(!e)return tu;if(typeof e=="string"){const i=e.toLowerCase();Ca[i]&&(s=i),t&&(Ca[i]=t,s=i);const o=e.split("-");if(!s&&o.length>1)return Mu(o[0])}else{const{name:i}=e;Ca[i]=e,s=i}return!n&&s&&(tu=s),s||!n&&tu},at=function(e,t){if(Tb(e))return e.clone();const n=typeof t=="object"?t:{};return n.date=e,n.args=arguments,new ip(n)},pI=(e,t)=>at(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset}),qt=hI;qt.l=Mu;qt.i=Tb;qt.w=pI;const mI=e=>{const{date:t,utc:n}=e;if(t===null)return new Date(NaN);if(qt.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t=="string"&&!/Z$/i.test(t)){const s=t.match(rI);if(s){const i=s[2]-1||0,o=(s[7]||"0").substring(0,3);return n?new Date(Date.UTC(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,o)):new Date(s[1],i,s[3]||1,s[4]||0,s[5]||0,s[6]||0,o)}}return new Date(t)};class ip{constructor(t){this.$L=Mu(t.locale,null,!0),this.parse(t)}parse(t){this.$d=mI(t),this.$x=t.x||{},this.init()}init(){const{$d:t}=this;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()}$utils(){return qt}isValid(){return this.$d.toString()!==ew}isSame(t,n){const s=at(t);return this.startOf(n)<=s&&s<=this.endOf(n)}isAfter(t,n){return at(t)<this.startOf(n)}isBefore(t,n){return this.endOf(n)<at(t)}$g(t,n,s){return qt.u(t)?this[n]:this.set(s,t)}unix(){return Math.floor(this.valueOf()/1e3)}valueOf(){return this.$d.getTime()}startOf(t,n){const s=qt.u(n)?!0:n,i=qt.p(t),o=(d,h)=>{const p=qt.w(this.$u?Date.UTC(this.$y,h,d):new Date(this.$y,h,d),this);return s?p:p.endOf(go)},r=(d,h)=>{const p=[0,0,0,0],m=[23,59,59,999];return qt.w(this.toDate()[d].apply(this.toDate("s"),(s?p:m).slice(h)),this)},{$W:a,$M:l,$D:c}=this,u=`set${this.$u?"UTC":""}`;switch(i){case bo:return s?o(1,0):o(31,11);case ei:return s?o(1,l):o(0,l+1);case tf:{const d=this.$locale().weekStart||0,h=(a<d?a+7:a)-d;
64return o(s?c-h:c+(6-h),l)}case go:case Qa:return r(`${u}Hours`,0);case ra:return r(`${u}Minutes`,1);case oa:return r(`${u}Seconds`,2);case ia:return r(`${u}Milliseconds`,3);default:return this.clone()}}endOf(t){return this.startOf(t,!1)}$set(t,n){const s=qt.p(t),i=`set${this.$u?"UTC":""}`,o={[go]:`${i}Date`,[Qa]:`${i}Date`,[ei]:`${i}Month`,[bo]:`${i}FullYear`,[ra]:`${i}Hours`,[oa]:`${i}Minutes`,[ia]:`${i}Seconds`,[xb]:`${i}Milliseconds`}[s],r=s===go?this.$D+(n-this.$W):n;if(s===ei||s===bo){const a=this.clone().set(Qa,1);a.$d[o](r),a.init(),this.$d=a.set(Qa,Math.min(this.$D,a.daysInMonth())).$d}else o&&this.$d[o](r);return this.init(),this}set(t,n){return this.clone().$set(t,n)}get(t){return this[qt.p(t)]()}add(t,n){t=Number(t);const s=qt.p(n),i=a=>{const l=at(this);return qt.w(l.date(l.date()+Math.round(a*t)),this)};if(s===ei)return this.set(ei,this.$M+t);if(s===bo)return this.set(bo,this.$y+t);if(s===go)return i(1);if(s===tf)return i(7);const o={[oa]:dm,[ra]:Z1,[ia]:Nl}[s]||1,r=this.$d.getTime()+t*o;return qt.w(r,this)}subtract(t,n){return this.add(t*-1,n)}format(t){const n=this.$locale();if(!this.isValid())return n.invalidDate||ew;const s=t||N3,i=qt.z(this),{$H:o,$m:r,$M:a}=this,{weekdays:l,months:c,meridiem:u}=n,d=(v,g,b,w)=>v&&(v[g]||v(this,s))||b[g].slice(0,w),h=v=>qt.s(o%12||12,v,"0"),p=u||((v,g,b)=>{const w=v<12?"AM":"PM";return b?w.toLowerCase():w}),m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:qt.s(a+1,2,"0"),MMM:d(n.monthsShort,a,c,3),MMMM:d(c,a),D:this.$D,DD:qt.s(this.$D,2,"0"),d:String(this.$W),dd:d(n.weekdaysMin,this.$W,l,2),ddd:d(n.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(o),HH:qt.s(o,2,"0"),h:h(1),hh:h(2),a:p(o,r,!0),A:p(o,r,!1),m:String(r),mm:qt.s(r,2,"0"),s:String(this.$s),ss:qt.s(this.$s,2,"0"),SSS:qt.s(this.$ms,3,"0"),Z:i};return s.replace(aI,(v,g)=>g||m[v]||i.replace(":",""))}utcOffset(){return-Math.round(this.$d.getTimezoneOffset()/15)*15}diff(t,n,s){const i=qt.p(n),o=at(t),r=(o.utcOffset()-this.utcOffset())*dm,a=this-o;let l=qt.m(this,o);return l={[bo]:l/12,[ei]:l,[D3]:l/3,[tf]:(a-r)/oI,[go]:(a-r)/iI,[ra]:a/Z1,[oa]:a/dm,[ia]:a/Nl}[i]||a,s?l:qt.a(l)}daysInMonth(){return this.endOf(ei).$D}$locale(){return Ca[this.$L]}locale(t,n){if(!t)return this.$L;const s=this.clone(),i=Mu(t,n,!0);return i&&(s.$L=i),s}clone(){return qt.w(this.$d,this)}toDate(){return new Date(this.valueOf())}toJSON(){return this.isValid()?this.toISOString():null}toISOString(){return this.$d.toISOString()}toString(){return this.$d.toUTCString()}}const U3=ip.prototype;at.prototype=U3;[["$ms",xb],["$s",ia],["$m",oa],["$H",ra],["$W",go],["$M",ei],["$y",bo],["$D",Qa]].forEach(e=>{U3[e[1]]=function(t){return this.$g(t,e[0],e[1])}});at.extend=(e,t)=>(e.$i||(e(t,ip,at),e.$i=!0),at);at.locale=Mu;at.isDayjs=Tb;at.unix=e=>at(e*1e3);at.en=Ca[tu];at.Ls=Ca;at.p={};const H3="ÑнваÑÑ_ÑевÑалÑ_маÑÑа_апÑелÑ_маÑ_иÑнÑ_иÑлÑ_авгÑÑÑа_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),V3="ÑнваÑÑ_ÑевÑалÑ_маÑÑ_апÑелÑ_май_иÑнÑ_иÑлÑ_авгÑÑÑ_ÑенÑÑбÑÑ_окÑÑбÑÑ_ноÑбÑÑ_декабÑÑ".split("_"),z3="Ñнв._ÑевÑ._маÑ._апÑ._маÑ_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_"),W3="Ñнв._ÑевÑ._маÑÑ_апÑ._май_иÑнÑ_иÑлÑ_авг._ÑенÑ._окÑ._ноÑб._дек.".split("_"),j3=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function vI(e,t){const n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function za(e,t,n){const s={mm:t?"минÑÑа_минÑÑÑ_минÑÑ":"минÑÑÑ_минÑÑÑ_минÑÑ",hh:"ÑаÑ_ÑаÑа_ÑаÑов",dd:"денÑ_днÑ_дней",MM:"меÑÑÑ_меÑÑÑа_меÑÑÑев",yy:"год_года_леÑ"};return n==="m"?t?"минÑÑа":"минÑÑÑ":`${e} ${vI(s[n],+e)}`}const Ab=(e,t)=>j3.test(t)?H3[e.month()]:V3[e.month()];Ab.s=V3;Ab.f=H3;const Pb=(e,t)=>j3.test(t)?z3[e.month()]:W3[e.month()];Pb.s=W3;Pb.f=z3;const gI={name:"ru",weekdays:"воÑкÑеÑенÑе_понеделÑник_вÑоÑник_ÑÑеда_ÑеÑвеÑг_пÑÑниÑа_ÑÑббоÑа".split("_"),weekdaysShort:"вÑк_пнд_вÑÑ_ÑÑд_ÑÑв_пÑн_ÑбÑ".split("_"),weekdaysMin:"вÑ_пн_вÑ_ÑÑ_ÑÑ_пÑ_Ñб".split("_"),months:Ab,monthsShort:Pb,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"ÑеÑез %s",past:"%s назад",s:"неÑколÑко ÑекÑнд",m:za,mm:za,h:"ÑаÑ",hh:za,d:"денÑ",dd:za,M:"меÑÑÑ",MM:za,y:"год",yy:za},ordinal:e=>e,meridiem:e=>e<4?"ноÑи":e<12?"ÑÑÑа":e<17?"днÑ":"веÑеÑа"};at.locale(gI,null,!0);const bI=e=>e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(t,n,s)=>n||s.slice(1)),G3={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},yI=(e,t)=>e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(n,s,i)=>{const o=i&&i.toUpperCase();return s||t[i]||G3[i]||bI(t[o])});var wI=(e,t,n)=>{const s=t.prototype,i=s.format;n.en.formats=G3,s.format=function(o=N3){const{formats:r={}}=this.$locale(),a=yI(o,r);return i.call(this,a)}},_I=(e,t,n)=>{e=e||{};const s=t.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};n.en.relativeTime=i,s.fromToBase=(a,l,c,u,d)=>{const h=c.$locale().relativeTime||i,p=e.thresholds||[{l:"s",r:44,d:ia},{l:"m",r:89},{l:"mm",r:44,d:oa},{l:"h",r:89},{l:"hh",r:21,d:ra},{l:"d",r:35},{l:"dd",r:25,d:go},{l:"M",r:45},{l:"MM",r:10,d:ei},{l:"y",r:17},{l:"yy",d:bo}],m=p.length;let v,g,b;for(let k=0;k<m;k+=1){let y=p[k];y.d&&(v=u?n(a).diff(c,y.d,!0):c.diff(a,y.d,!0));let S=(e.rounding||Math.round)(Math.abs(v));if(b=v>0,S<=y.r||!y.r){S<=1&&k>0&&(y=p[k-1]);const E=h[y.l];d&&(S=d(`${S}`)),typeof E=="string"?g=E.replace("%d",S):g=E(S,l,y.l,b);break}}if(l)return g;const w=b?h.future:h.past;return typeof w=="function"?w(g):w.replace("%s",g)};function o(a,l,c,u){return s.fromToBase(a,l,c,u)}
64s.to=function(a,l){return o(a,l,this,!0)},s.from=function(a,l){return o(a,l,this)};const r=a=>a.$u?n.utc():n();s.toNow=function(a){return this.to(r(this),a)},s.fromNow=function(a){return this.from(r(this),a)}},kI=(e,t,n)=>{const s=t.prototype;s.isYesterday=function(){const i="YYYY-MM-DD",o=n().subtract(1,"day");return this.format(i)===o.format(i)}};async function ld(e){return await new Promise(t=>setTimeout(t,e))}async function op(e,t){let n=0;const s=(t==null?void 0:t.retries)??1;for(;n<=s;)try{return await new Promise((i,o)=>{const r=document.createElement("script");r.async=!0,r.addEventListener("load",()=>{i()},{once:!0}),r.addEventListener("error",()=>{o(new Error(`Failed to load script from ${e}`)),document.head.removeChild(r)},{once:!0}),r.src=e,document.head.appendChild(r)})}catch{if(console.warn("Failed to load script from",e,"attempt",n),n++,n>s)throw new Error(`Failed to load script from ${e} after ${s} attempts.`);const r=((t==null?void 0:t.delay)??500)*Math.pow(2,n-1);await ld(r)}}const q3="https://vc.ru";function K3(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("data:")}function Ev(e){try{const{host:t}=new URL(e);return t===location.host}catch{return!1}}function SI(e){if(!K3(e))return e;try{const t=new URL(e);return`${t.pathname}${t.search}${t.hash}`}catch{return e}}function mi(e){return`${q3}${SI(e.replace(/\/$/,""))}`}const CI="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2
64ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",EI="ελ1Ï
2бг1ел3деÑи4еÑ2каÑолик6ом3мÐ
64ºÐ´2он1Ñква6онлайн5Ñг3ÑÑÑ2Ñ2ÑайÑ3Ñб3ÑкÑ3Òаз3Õ°Õ¡Õµ3×שר××5×§××3Ø§Ø¨ÙØ¸Ø¨Ù5راÙ
ÙÙ5ÙØ§Ø±Ø¯Ù4Ø¨ØØ±ÙÙ5جزائر5Ø³Ø¹ÙØ¯ÙØ©6عÙÙØ§Ù5Ù
غرب5Ù
ارات5ÛØ±Ø§Ù5بارت2زار4ÙØªÙ3ھارت5تÙÙØ³4Ø³ÙØ¯Ø§Ù3Ø±ÙØ©5Ø´Ø¨ÙØ©4عراÙ2ب2Ù
اÙ4ÙÙØ³Ø·ÙÙ6ÙØ·Ø±3ÙØ§Ø«ÙÙÙÙ6ÙÙ
3Ù
صر2ÙÙØ³Ùا5ÙØ±ÙتاÙÙØ§7ÙØ¹4ÙÙ
راÙ5پاکستاÙ7ÚØ§Ø±Øª4à¤à¥à¤®3नà¥à¤3à¤à¤¾à¤°à¤¤0मà¥3à¥à¤¤5सà¤à¤à¤ न5বাà¦à¦²à¦¾5à¦à¦¾à¦°à¦¤2ৰত4à¨à¨¾à¨°à¨¤4àªàª¾àª°àª¤4à¬à¬¾à¬°à¬¤4à®à®¨à¯à®¤à®¿à®¯à®¾6லà®à¯à®à¯6à®à®¿à®à¯à®à®ªà¯à®ªà¯à®°à¯11à°à°¾à°°à°¤à±5à²à²¾à²°à²¤4à´à´¾à´°à´¤à´5à¶½à¶à¶à·4à¸à¸à¸¡3à¹à¸à¸¢3ລາວ3áá2ã¿ããª3ã¢ãã¾ã³4ã¯ã©ã¦ã4ã°ã¼ã°ã«4ã³ã 2ã¹ãã¢3ã»ã¼ã«3ãã¡ãã·ã§ã³6ãã¤ã³ã4ä¸ç2ä¸ä¿¡1å½1å1æç½3äºé©¬é3ä¼ä¸2ä½å±±2ä¿¡æ¯2å¥åº·2å
«å¦2å
¬å¸1ç2å°æ¹¾1ç£2åå1åº1æ 2åé0大é
åº5å¨çº¿2大æ¿2天主æ3娱ä¹2å®¶é»2广ä¸2å¾®å2æ
å2æç±ä½ 3ææº2æè2æ¿å¡1åº2æ°å å¡2é»2æ¶å°2æ¸ç±2æºæ2淡马é¡3游æ2æ¾³é2ç¹ç2ç§»å¨2ç»ç»æºæ4ç½å1åº1ç«1ç»2èé2è°·æ2è´ç©2é販2éå¢2é»è¨çç§4é£å©æµ¦3é£å2é¤å
2馿 ¼éæ3港2ë·ë·1ì»´2ì¼ì±2íêµ2",xv="numeric",Tv="ascii",Av="alpha",nu="asciinumeric",Lc="alphanumeric",Pv="domain",Y3="emoji",xI="scheme",TI="slashscheme",fm="whitespace";function AI(e,t){return e in t||(t[e]=[]),t[e]}function aa(e,t,n){t[xv]&&(t[nu]=!0,t[Lc]=!0),t[Tv]&&(t[nu]=!0,t[Av]=!0),t[nu]&&(t[Lc]=!0),t[Av]&&(t[Lc]=!0),t[Lc]&&(t[Pv]=!0),t[Y3]&&(t[Pv]=!0);for(const s in t){const i=AI(s,n);i.indexOf(e)<0&&i.push(e)}}function PI(e,t){const n={};for(const s in t)t[s].indexOf(e)>=0&&(n[s]=!0);return n}function Bs(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Bs.groups={};Bs.prototype={accepts(){return!!this.t},go(e){const t=this,n=t.j[e];if(n)return n;for(let s=0;s<t.jr.length;s++){const i=t.jr[s][0],o=t.jr[s][1];if(o&&i.test(e))return o}return t.jd},has(e,t=!1){return t?e in this.j:!!this.go(e)},ta(e,t,n,s){for(let i=0;i<e.length;i++)this.tt(e[i],t,n,s)},tr(e,t,n,s){s=s||Bs.groups;let i;return t&&t.j?i=t:(i=new Bs(t),n&&s&&aa(t,n,s)),this.jr.push([e,i]),i},ts(e,t,n,s){let i=this;const o=e.length;if(!o)return i;for(let r=0;r<o-1;r++)i=i.tt(e[r]);return i.tt(e[o-1],t,n,s)},tt(e,t,n,s){s=s||Bs.groups;const i=this;if(t&&t.j)return i.j[e]=t,t;const o=t;let r,a=i.go(e);if(a?(r=new Bs,Object.assign(r.j,a.j),r.jr.push.apply(r.jr,a.jr),r.jd=a.jd,r.t=a.t):r=new Bs,o){if(s)if(r.t&&typeof r.t=="string"){const l=Object.assign(PI(r.t,s),n);aa(o,l,s)}else n&&aa(o,n,s);r.t=o}return i.j[e]=r,r}};const dt=(e,t,n,s,i)=>e.ta(t,n,s,i),hn=(e,t,n,s,i)=>e.tr(t,n,s,i),tw=(e,t,n,s,i)=>e.ts(t,n,s,i),Ae=(e,t,n,s,i)=>e.tt(t,n,s,i),fo="WORD",Rv="UWORD",X3="ASCIINUMERICAL",Q3="ALPHANUMERICAL",$u="LOCALHOST",Iv="TLD",Mv="UTLD",nf="SCHEME",Ya="SLASH_SCHEME",Rb="NUM",$v="WS",Ib="NL",su="OPENBRACE",iu="CLOSEBRACE",Nf="OPENBRACKET",Ff="CLOSEBRACKET",Uf="OPENPAREN",Hf="CLOSEPAREN",Vf="OPENANGLEBRACKET",zf="CLOSEANGLEBRACKET",Wf="FULLWIDTHLEFTPAREN",jf="FULLWIDTHRIGHTPAREN",Gf="LEFTCORNERBRACKET",qf="RIGHTCORNERBRACKET",Kf="LEFTWHITECORNERBRACKET",Yf="RIGHTWHITECORNERBRACKET",Xf="FULLWIDTHLESSTHAN",Qf="FULLWIDTHGREATERTHAN",Jf="AMPERSAND",Zf="APOSTROPHE",eh="ASTERISK",rr="AT",th="BACKSLASH",nh="BACKTICK",sh="CARET",cr="COLON",Mb="COMMA",ih="DOLLAR",$i="DOT",oh="EQUALS",$b="EXCLAMATION",Js="HYPHEN",ou="PERCENT",rh="PIPE",ah="PLUS",lh="POUND",ru="QUERY",Lb="QUOTE",J3="FULLWIDTHMIDDLEDOT",Ob="SEMI",Li="SLASH",au="TILDE",ch="UNDERSCORE",Z3="EMOJI",uh="SYM";var eS=Object.freeze({__proto__:null,ALPHANUMERICAL:Q3,AMPERSAND:Jf,APOSTROPHE:Zf,ASCIINUMERICAL:X3,ASTERISK:eh,AT:rr,BACKSLASH:th,BACKTICK:nh,CARET:sh,CLOSEANGLEBRACKET:zf,CLOSEBRACE:iu,CLOSEBRACKET:Ff,CLOSEPAREN:Hf,COLON:cr,COMMA:Mb,DOLLAR:ih,DOT:$i,EMOJI:Z3,EQUALS:oh,EXCLAMATION:$b,FULLWIDTHGREATERTHAN:Qf,FULLWIDTHLEFTPAREN:Wf,FULLWIDTHLESSTHAN:Xf,FULLWIDTHMIDDLEDOT:J3,FULLWIDTHRIGHTPAREN:jf,HYPHEN:Js,LEFTCORNERBRACKET:Gf,LEFTWHITECORNERBRACKET:Kf,LOCALHOST:$u,NL:Ib,NUM:Rb,OPENANGLEBRACKET:Vf,OPENBRACE:su,OPENBRACKET:Nf,OPENPAREN:Uf,PERCENT:ou,PIPE:rh,PLUS:ah,POUND:lh,QUERY:ru,QUOTE:Lb,RIGHTCORNERBRACKET:qf,RIGHTWHITECORNERBRACKET:Yf,SCHEME:nf,SEMI:Ob,
vendor: 4,957 bytes, lines 64-65
64SLASH:Li,SLASH_SCHEME:Ya,SYM:uh,TILDE:au,TLD:Iv,UNDERSCORE:ch,UTLD:Mv,UWORD:Rv,WORD:fo,WS:$v});const lo=/[a-z]/,Sc=new RegExp("\\p{L}","u"),hm=new RegExp("\\p{Emoji}","u"),co=/\d/,pm=/\s/,nw="\r",mm=` 65`,RI="ï¸",II="â",vm="";let Ld=null,Od=null;function MI(e=[]){const t={};Bs.groups=t;const n=new Bs;Ld==null&&(Ld=sw(CI)),Od==null&&(Od=sw(EI)),Ae(n,"'",Zf),Ae(n,"{",su),Ae(n,"}",iu),Ae(n,"[",Nf),Ae(n,"]",Ff),Ae(n,"(",Uf),Ae(n,")",Hf),Ae(n,"<",Vf),Ae(n,">",zf),Ae(n,"ï¼",Wf),Ae(n,"ï¼",jf),Ae(n,"ã",Gf),Ae(n,"ã",qf),Ae(n,"ã",Kf),Ae(n,"ã",Yf),Ae(n,"ï¼",Xf),Ae(n,"ï¼",Qf),Ae(n,"&",Jf),Ae(n,"*",eh),Ae(n,"@",rr),Ae(n,"`",nh),Ae(n,"^",sh),Ae(n,":",cr),Ae(n,",",Mb),Ae(n,"$",ih),Ae(n,".",$i),Ae(n,"=",oh),Ae(n,"!",$b),Ae(n,"-",Js),Ae(n,"%",ou),Ae(n,"|",rh),Ae(n,"+",ah),Ae(n,"#",lh),Ae(n,"?",ru),Ae(n,'"',Lb),Ae(n,"/",Li),Ae(n,";",Ob),Ae(n,"~",au),Ae(n,"_",ch),Ae(n,"\\",th),Ae(n,"ã»",J3);const s=hn(n,co,Rb,{[xv]:!0});hn(s,co,s);const i=hn(s,lo,X3,{[nu]:!0}),o=hn(s,Sc,Q3,{[Lc]:!0}),r=hn(n,lo,fo,{[Tv]:!0});hn(r,co,i),hn(r,lo,r),hn(i,co,i),hn(i,lo,i);const a=hn(n,Sc,Rv,{[Av]:!0});hn(a,lo),hn(a,co,o),hn(a,Sc,a),hn(o,co,o),hn(o,lo),hn(o,Sc,o);const l=Ae(n,mm,Ib,{[fm]:!0}),c=Ae(n,nw,$v,{[fm]:!0}),u=hn(n,pm,$v,{[fm]:!0});Ae(n,vm,u),Ae(c,mm,l),Ae(c,vm,u),hn(c,pm,u),Ae(u,nw),Ae(u,mm),hn(u,pm,u),Ae(u,vm,u);const d=hn(n,hm,Z3,{[Y3]:!0});Ae(d,"#"),hn(d,hm,d),Ae(d,RI,d);const h=Ae(d,II);Ae(h,"#"),hn(h,hm,d);const p=[[lo,r],[co,i]],m=[[lo,null],[Sc,a],[co,o]];for(let v=0;v<Ld.length;v++)Jo(n,Ld[v],Iv,fo,p);for(let v=0;v<Od.length;v++)Jo(n,Od[v],Mv,Rv,m);aa(Iv,{tld:!0,ascii:!0},t),aa(Mv,{utld:!0,alpha:!0},t),Jo(n,"file",nf,fo,p),Jo(n,"mailto",nf,fo,p),Jo(n,"http",Ya,fo,p),Jo(n,"https",Ya,fo,p),Jo(n,"ftp",Ya,fo,p),Jo(n,"ftps",Ya,fo,p),aa(nf,{scheme:!0,ascii:!0},t),aa(Ya,{slashscheme:!0,ascii:!0},t),e=e.sort((v,g)=>v[0]>g[0]?1:-1);for(let v=0;v<e.length;v++){const g=e[v][0],w=e[v][1]?{[xI]:!0}:{[TI]:!0};g.indexOf("-")>=0?w[Pv]=!0:lo.test(g)?co.test(g)?w[nu]=!0:w[Tv]=!0:w[xv]=!0,tw(n,g,g,w)}return tw(n,"localhost",$u,{ascii:!0}),n.jd=new Bs(uh),{start:n,tokens:Object.assign({groups:t},eS)}}function tS(e,t){const n=$I(t.replace(/[A-Z]/g,a=>a.toLowerCase())),s=n.length,i=[];let o=0,r=0;for(;r<s;){let a=e,l=null,c=0,u=null,d=-1,h=-1;for(;r<s&&(l=a.go(n[r]));)a=l,a.accepts()?(d=0,h=0,u=a):d>=0&&(d+=n[r].length,h++),c+=n[r].length,o+=n[r].length,r++;o-=d,r-=h,c-=d,i.push({t:u.t,v:t.slice(o-c,o),s:o-c,e:o})}return i}function $I(e){const t=[],n=e.length;let s=0;for(;s<n;){let i=e.charCodeAt(s),o,r=i<55296||i>56319||s+1===n||(o=e.charCodeAt(s+1))<56320||o>57343?e[s]:e.slice(s,s+2);t.push(r),s+=r.length}return t}function Jo(e,t,n,s,i){let o;const r=t.length;for(let a=0;a<r-1;a++){const l=t[a];e.j[l]?o=e.j[l]:(o=new Bs(s),o.jr=i.slice(),e.j[l]=o),e=o}return o=new Bs(n),o.jr=i.slice(),e.j[t[r-1]]=o,o}function sw(e){const t=[],n=[];let s=0,i="0123456789";for(;s<e.length;){let o=0;for(;i.indexOf(e[s+o])>=0;)o++;if(o>0){t.push(n.join(""));for(let r=parseInt(e.substring(s,s+o),10);r>0;r--)n.pop();s+=o}else n.push(e[s]),s++}return t}const Lu={defaultProtocol:"http",events:null,format:iw,formatHref:iw,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function rp(e,t=null){let n=Object.assign({},Lu);e&&(n=Object.assign(n,e instanceof rp?e.o:e));const s=n.ignoreTags,i=[];for(let o=0;o<s.length;o++)i.push(s[o].toUpperCase());this.o=n,t&&(this.defaultRender=t),this.ignoreTags=i}rp.prototype={o:Lu,ignoreTags:[],defaultRender(e){return e},check(e){return this.get("validate",e.toString(),e)},get(e,t,n){const s=t!=null;let i=this.o[e];return i&&(typeof i=="object"?(i=n.t in i?i[n.t]:Lu[e],typeof i=="function"&&s&&(i=i(t,n))):typeof i=="function"&&s&&(i=i(t,n.t,n)),i)},getObj(e,t,n){let s=this.o[e];return typeof s=="function"&&t!=null&&(s=s(t,n.t,n)),s},render(e){const t=e.render(this);return(this.get("render",null,e)||this.defaultRender)(t,e.t,e)}};function iw(e){return e}function nS(e,t){this.t="token",this.v=e,this.tk=t}nS.prototype={isLink:!1,toString(){return this.v},toHref(e){return this.toString()},toFormattedString(e){const t=this.toString(),n=e.get("truncate",t,this),s=e.get("format",t,this);return n&&s.length>n?s.substring(0,n)+"â¦":s},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=Lu.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const t=this,n=this.toHref(e.get("defaultProtocol")),s=e.get("formatHref",n,this),i=e.get("tagName",n,t),o=this.toFormattedString(e),r={}
65,a=e.get("className",n,t),l=e.get("target",n,t),c=e.get("rel",n,t),u=e.getObj("attributes",n,t),d=e.getObj("events",n,t);return r.href=s,a&&(r.class=a),l&&(r.target=l),c&&(r.rel=c),u&&Object.assign(r,u),{tagName:i,attributes:r,content:o,eventListeners:d}}};function ap(e,t){class n extends nS{constructor(i,o){super(i,o),this.t=e}}for(const s in t)n.prototype[s]=t[s];return n.t=e,n}const ow=ap("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),rw=ap("text"),LI=ap("nl"),Bd=ap("url",{isLink:!0,toHref(e=Lu.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==$u&&e[1].t===cr}}),Xs=e=>new Bs(e);function OI({groups:e}){const t=e.domain.concat([Jf,eh,rr,th,nh,sh,ih,oh,Js,Rb,ou,rh,ah,lh,Li,uh,au,ch]),n=[Zf,cr,Mb,$i,$b,ou,ru,Lb,Ob,Vf,zf,su,iu,Ff,Nf,Uf,Hf,Wf,jf,Gf,qf,Kf,Yf,Xf,Qf],s=[Jf,Zf,eh,th,nh,sh,ih,oh,Js,su,iu,ou,rh,ah,lh,ru,Li,uh,au,ch],i=Xs(),o=Ae(i,au);dt(o,s,o),dt(o,e.domain,o);const r=Xs(),a=Xs(),l=Xs();dt(i,e.domain,r),dt(i,e.scheme,a),dt(i,e.slashscheme,l),dt(r,s,o),dt(r,e.domain,r);const c=Ae(r,rr);Ae(o,rr,c),Ae(a,rr,c),Ae(l,rr,c);const u=Ae(o,$i);dt(u,s,o),dt(u,e.domain,o);const d=Xs();dt(c,e.domain,d),dt(d,e.domain,d);const h=Ae(d,$i);dt(h,e.domain,d);const p=Xs(ow);dt(h,e.tld,p),dt(h,e.utld,p),Ae(c,$u,p);const m=Ae(d,Js);Ae(m,Js,m),dt(m,e.domain,d),dt(p,e.domain,d),Ae(p,$i,h),Ae(p,Js,m);const v=Ae(p,cr);dt(v,e.numeric,ow);const g=Ae(r,Js),b=Ae(r,$i);Ae(g,Js,g),dt(g,e.domain,r),dt(b,s,o),dt(b,e.domain,r);const w=Xs(Bd);dt(b,e.tld,w),dt(b,e.utld,w),dt(w,e.domain,r),dt(w,s,o),Ae(w,$i,b),Ae(w,Js,g),Ae(w,rr,c);const k=Ae(w,cr),y=Xs(Bd);dt(k,e.numeric,y);const S=Xs(Bd),E=Xs();dt(S,t,S),dt(S,n,E),dt(E,t,S),dt(E,n,E),Ae(w,Li,S),Ae(y,Li,S);const x=Ae(a,cr),M=Ae(l,cr),I=Ae(M,Li),N=Ae(I,Li);dt(a,e.domain,r),Ae(a,$i,b),Ae(a,Js,g),dt(l,e.domain,r),Ae(l,$i,b),Ae(l,Js,g),dt(x,e.domain,S),Ae(x,Li,S),Ae(x,ru,S),dt(N,e.domain,S),dt(N,t,S),Ae(N,Li,S);const V=[[su,iu],[Nf,Ff],[Uf,Hf],[Vf,zf],[Wf,jf],[Gf,qf],[Kf,Yf],[Xf,Qf]];for(let $=0;$<V.length;$++){const[j,X]=V[$],U=Ae(S,j);Ae(E,j,U),Ae(U,X,S);const R=Xs(Bd);dt(U,t,R);const G=Xs();dt(U,n),dt(R,t,R),dt(R,n,G),dt(G,t,R),dt(G,n,G),Ae(R,X,S),Ae(G,X,S)}return Ae(i,$u,w),Ae(i,Ib,LI),{start:i,tokens:eS}}function BI(e,t,n){let s=n.length,i=0,o=[],r=[];for(;i<s;){let a=e,l=null,c=null,u=0,d=null,h=-1;for(;i<s&&!(l=a.go(n[i].t));)r.push(n[i++]);for(;i<s&&(c=l||a.go(n[i].t));)l=null,a=c,a.accepts()?(h=0,d=a):h>=0&&h++,i++,u++;if(h<0)i-=u,i<s&&(r.push(n[i]),i++);else{r.length>0&&(o.push(gm(rw,t,r)),r=[]),i-=h,u-=h;const p=d.t,m=n.slice(i-u,i);o.push(gm(p,t,m))}}return r.length>0&&o.push(gm(rw,t,r)),o}function gm(e,t,n){const s=n[0].s,i=n[n.length-1].e,o=t.slice(s,i);return new e(o,n)}const ts={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function DI(){ts.scanner=MI(ts.customSchemes);for(let e=0;e<ts.tokenQueue.length;e++)ts.tokenQueue[e][1]({scanner:ts.scanner});ts.parser=OI(ts.scanner.tokens);for(let e=0;e<ts.pluginQueue.length;e++)ts.pluginQueue[e][1]({scanner:ts.scanner,parser:ts.parser});return ts.initialized=!0,ts}function Bb(e){return ts.initialized||DI(),BI(ts.parser.start,e,tS(ts.scanner.start,e))}Bb.scan=tS;function NI(e,t=null,n=null){if(t&&typeof t=="object"){if(n)throw Error(`linkifyjs: Invalid link type ${t}; must be a string`);n=t,t=null}const s=new rp(n),i=Bb(e),o=[];for(let r=0;r<i.length;r++){const a=i[r];a.isLink&&(!t||a.t===t)&&s.check(a)&&o.push(a.toFormattedObject(s))}return o}var FI={amp:"&",gt:">",lt:"<",nbsp:"Â ",quot:'"'},UI=/^#[xX]([A-Fa-f0-9]+)$/,HI=/^#([0-9]+)$/,VI=/^([A-Za-z0-9]+)$/,zI=(function(){function e(t){this.named=t}return e.prototype.parse=function(t){if(t){var n=t.match(UI);if(n)return String.fromCharCode(parseInt(n[1],16));if(n=t.match(HI),n)return String.fromCharCode(parseInt(n[1],10));if(n=t.match(VI),n)return this.named[n[1]]||"&"+n[1]+";"}},e})(),WI=/[\t\n\f ]/,jI=/[A-Za-z]/,GI=/\r\n?/g;function Zn(e){return WI.test(e)}function aw(e){return jI.test(e)}function qI(e){return e.replace(GI,` 66`)}var KI=(function(){function e(t,n,s){s===void 0&&(s="precompile"),this.delegate=t,this.entityParser=n,this.mode=s,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var i=this.peek();if(i==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&i===` 67`){var o=this.tagNameBuffer.toLowerCase();(o==="pre"||o==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var i=this.peek(),o=this.tagNameBuffer;i==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):i==="&"&&o!=="script"&&o!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(i))},tagOpen:function(){var i=this.consume();i==="!"?this.transitionTo("markupDeclarationOpen"):i==="/"?this.transitionTo("endTagOpen"):(i==="@"||i===":"||aw(i))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(i))},markupDeclarationOpen:function(){var i=this.consume();if(i==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var o=i.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();o==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var i=this.consume();Zn(i)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var i=this.consume();Zn(i)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase()))},doctypeName:function(){var i=this.consume();Zn(i)?this.transitionTo("afterDoctypeName"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(i.toLowerCase())},afterDoctypeName:function(){var i=this.consume();if(!Zn(i))if(i===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var o=i.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),r=o.toUpperCase()==="PUBLIC",a=o.toUpperCase()==="SYSTEM";(r||a)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),r?this.transitionTo("afterDoctypePublicKeyword"):a&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var i=this.peek();Zn(i)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):i==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):i==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):i===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},doctypePublicIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypePublicIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(i)},afterDoctypePublicIdentifier:function(){var i=this.consume();Zn(i)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctype
67SystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var i=this.consume();Zn(i)||(i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):i==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):i==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var i=this.consume();i==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},doctypeSystemIdentifierSingleQuoted:function(){var i=this.consume();i==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):i===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(i)},afterDoctypeSystemIdentifier:function(){var i=this.consume();Zn(i)||i===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var i=this.consume();i==="-"&&this.peek()==="-"?this.transitionTo("commentStartDash"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(i),this.transitionTo("comment"))},commentStartDash:function(){var i=this.consume();i==="-"?this.transitionTo("commentEnd"):i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("-"),this.transitionTo("comment"))},comment:function(){var i=this.consume();i==="-"?this.transitionTo("commentEndDash"):this.delegate.appendToCommentData(i)},commentEndDash:function(){var i=this.consume();i==="-"&&this.peek()==="-"?this.delegate.appendToCommentData(i):i==="-"?this.transitionTo("commentEnd"):(this.delegate.appendToCommentData("-"+i),this.transitionTo("comment"))},commentEnd:function(){var i=this.consume();i===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData("--"+i),this.transitionTo("comment"))},tagName:function(){var i=this.consume();Zn(i)?this.transitionTo("beforeAttributeName"):i==="/"?this.transitionTo("selfClosingStartTag"):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData")):this.appendToTagName(i)},endTagName:function(){var i=this.consume();Zn(i)?(this.transitionTo("beforeAttributeName"),this.tagNameBuffer=""):i==="/"?(this.transitionTo("selfClosingStartTag"),this.tagNameBuffer=""):i===">"?(this.delegate.finishTag(),this.transitionTo("beforeData"),this.tagNameBuffer=""):this.appendToTagName(i)},beforeAttributeName:function(){var i=this.peek();if(Zn(i)){this.consume();return}else i==="/"?(this.transitionTo("selfClosingStartTag"),this.consume()):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==="="?(this.delegate.reportSyntaxError("attribute name cannot start with equals sign"),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i)):(this.transitionTo("attributeName"),this.delegate.beginAttribute())},attributeName:function(){var i=this.peek();Zn(i)?(this.transitionTo("afterAttributeName"),this.consume()):i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.transitionTo("beforeAttributeValue"),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):i==='"'||i==="'"||i==="<"?(this.delegate.reportSyntaxError(i+" is not a valid character within attribute names"),this.consume(),this.delegate.appendToAttributeName(i)):(this.consume(),this.delegate.appendToAttributeName(i))},afterAttributeName:function(){var i=this.peek();if(Zn(i)){this.consume();return}else i==="/"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="="?(this.consume(),this.transitionTo("beforeAttributeValue")):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.transitionTo("attributeName"),this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(i))},beforeAttributeValue:function(){var i=this.peek();Zn(i)?this.consume():i==='"'?(this.transitionTo("attributeValueDoubleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i==="'"?(this.transitionTo("attributeValueSingleQuoted"),this.delegate.beginAttributeValue(!0),this.consume()):i===">"?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.transitionTo("attributeValueUnquoted"),this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(i))},attributeValueDoubleQuoted:function(){var i=this.consume();i==='"'?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueSingleQuoted:function(){var i=this.consume();i==="'"?(this.delegate.finishAttributeValue(),this.transitionTo("afterAttributeValueQuoted")):i==="&"?this.delegate.appendToAttributeValue(this.consumeCharRef()||"&"):this.delegate.appendToAttributeValue(i)},attributeValueUnquoted:function(){var i=this.peek();Zn(i)?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.delegate.finishAttributeValue(),this.consume(),this.transitionTo("selfClosingStartTag")):i==="&"?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef()||"&")):i===">"?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):(this.consume(),this.delegate.appendToAttributeValue(i))},afterAttributeValueQuoted:function(){var i=this.peek();Zn(i)?(this.consume(),this.transitionTo("beforeAttributeName")):i==="/"?(this.consume(),this.transitionTo("selfClosingStartTag")):i===">"?(this.consume(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},selfClosingStartTag:function(){var i=this.peek();i===">"?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.transitionTo("beforeData")):this.transitionTo("beforeAttributeName")},endTagOpen:function(){var i=this.consume();(i==="@"||i===":"||aw(i))&&(this.transitionTo("endTagName"),this.tagNameBuffer="",this.delegate.beginEndTag(),this.appendToTagName(i))}},this.reset()}return e.prototype.reset=function(){this.transitionTo("beforeData"),this.input="",this.tagNameBuffer="",this.index=0,this.line=1,this.column=0,this.delegate.reset()},e.prototype.transitionTo=function(t){this.state=t},e.prototype.tokenize=function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},e.prototype.tokenizePart=function(t){for(this.input+=qI(t);this.index<this.input.length;){var n=this.states[this.state];if(n!==void 0)n.call(this);else throw new Error("unhandled state "+this.state)}},e.prototype.tokenizeEOF=function(){this.flushData()},e.prototype.flushData=function(){this.state==="data"&&(this.delegate.finishData(),this.transitionTo("beforeData"))},e.prototype.peek=function(){return this.input.charAt(this.index)},e.prototype.consume=function(){var t=this.peek();return this.index++,t===` 68`?(this.line++,this.column=0):this.column++,t},e.prototype.consumeCharRef=function(){var t=this.input.indexOf(";",this.index);if(t!==-1){var n=this.input.slice(this.index,t),s=this.entityParser.parse(n);if(s){for(var i=n.length;i;)this.consume(),i--;return this.consume(),s}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(t){this.tagNameBuffer+=t,this.delegate.appendToTagName(t)},e.prototype.isIgnoredEndTag=function(){var t=this.tagNameBuffer;return t==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||t==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e})(),YI=(function(){function e(t,n){n===void 0&&(n={}),this.options=n,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new KI(this,t,n.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var n=0;n<arguments.length;n++)if(t.type===arguments[n])return t;throw new Error("token type was unexpectedly "+t.type)},e.prototype.push=function(t){this.token=t,this.tokens.push(t)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(t){this.current("Doctype").name+=t},e.prototype.appendToDoctypePublicIdentifier=function(t){var n=this.current("Doctype");n.publicIdentifier===void 0?n.publicIdentifier=t:n.publicIdentifier+=t},e.prototype.appendToDoctypeSystemIdentifier=function(t){var n=this.current("Doctype");n.systemIdentifier===void 0?n.systemIdentifier=t:n.systemIdentifier+=t},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(t){this.current("Chars").chars+=t},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(t){this.current("Comment").chars+=t},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(t){this.current("StartTag","EndTag").tagName+=t},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(t){this.currentAttribute()[0]+=t},e.prototype.beginAttributeValue=function(t){this.currentAttribute()[2]=t},e.prototype.appendToAttributeValue=function(t){this.currentAttribute()[1]+=t},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(t){this.current().syntaxError=t},e})();function XI(e,t){var n=new YI(new zI(FI),t);return n.tokenize(e)}const sS="LinkifyResult",dh="StartTag",iS="EndTag",Lv="Chars",QI="Comment",JI="Doctype";function ZI(e,t={}){const n=XI(e),s=[],i=[],o=new rp(t,n8);for(let r=0;r<n.length;r++){const a=n[r];if(a.type===dh){s.push(a);const l=a.tagName.toUpperCase();if(!(l==="A"||o.ignoreTags.indexOf(l)>=0))continue;let u=s.length;t8(l,n,++r,s),r+=s.length-u-1}else if(a.type!==Lv)s.push(a);else{const l=e8(a.chars,o);s.push.apply(s,l)}}for(let r=0;r<s.length;r++){const a=s[r];switch(a.type){case sS:i.push(a.rendered);break;case dh:{let l="<"+a.tagName;a.attributes.length>0&&(l+=" "+i8(a.attributes).join(" ")),a.selfClosing&&(l+=" /"),l+=">",i.push(l);break}case iS:i.push(`</${a.tagName}>`);break;case Lv:i.push(Ov(a.chars));break;case QI:i.push(`<!--${Ov(a.chars)}-->`);break;case JI:{let l=`<!DOCTYPE ${a.name}`;a.publicIdentifier&&(l+=` PUBLIC "${a.publicIdentifier}"`),a.systemIdentifier&&(l+=` "${a.systemIdentifier}"`),l+=">",i.push(l);break}}}return i.join("")}function e8(e,t){const n=Bb(e),s=[];for(let i=0;i<n.length;i++){const o=n[i];o.t==="nl"&&t.get("nl2br")?s.push({type:dh,tagName:"br",attributes:[],selfClosing:!0}):!o.isLink||!t.check(o)?s.push({type:Lv,chars:o.toString()}):s.push({type:sS,rendered:t.render(o)})}return s}function t8(e,t,n,s){let i=1;for(;n<t.length&&i>0;){let o=t[n];o.type===dh&&o.tagName.toUpperCase()===e?i++:o.type===iS&&o.tagName.toUpperCase()===e&&i--,s.push(o),n++}return s}function n8({tagName:e,attributes:t,content:n}){return`<${e} ${s8(t)}>${Ov(n)}</${e}>`}function Ov(e){return e.replace(/</g,"<").replace(/>/g,">")}function oS(e){return e.replace(/"/g,""")}function s8(e){const t=[];for(const n in e){const s=e[n]+"";t.push(`${n}="${oS(s)}"`)}return t.join(" ")}function i8(e){const t=[];for(let n=0;n<e.length;n++){const s=e[n][0],i=e[n][1]+"";t.push(`${s}="${oS(i)}"`)}return t}function fh(e){return e.replace(/<\/?[^>]+>/gi,"").replace(/ /g," ").trim()}function rS(e){return e.replace(/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function o8(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")}function r8(e,t){const n=((t==null?void 0:t.allow)??[]).map(o=>o.toLowerCase()),s=new Map;let i=0;for(const o of n){const r=new RegExp(`<${o}\\b[^>]*>`,"gi"),a=new RegExp(`</${o}>`,"gi");e=e.replace(r,l=>{const c=`__PLACEHOLDER_${i++}__`;return s.set(c,l),c}),e=e.replace(a,l=>{const c=`__PLACEHOLDER_${i++}__`;return s.set(c,l),c})}e=fh(e);for(const[o,r]of s.entries())e=e.replace(new RegExp(o,"g"),r);return e}function sn(e,{forDisplay:t=!1}={}){if(!q(e))return;const n=t?"@":"";return q(e.nickname)?`${n}${e.nickname}`:`${n}id${e.id}`}function Ea(e){const t=parseInt(e);if(!Number.isNaN(t))return{id:t,value:t,uri:`id${t}`};if(e.startsWith("id")&&/^\d+$/.test(e.slice(2))){const n=parseInt(e.slice(2));
68return{id:n,value:n,uri:`id${n}`}}return{nickname:e,value:e,uri:e}}const a8=(()=>{if(!q('{"android":{"store":"https://play.google.com/store/apps/details?id=ru.artrobot.siliconrus&utm_source=pwa","place":{"appsModal":"utm_medium=qr","mobileModal":"utm_medium=5m","sidebar":"utm_medium=menu"},"apn":"ru.artrobot.siliconrus","amv":480},"ios":{"store":"https://apps.apple.com/app/apple-store/id920638420?pt=106436823&mt=8","place":{"appsModal":"ct=pwa-qr","mobileModal":"ct=pwa-5m","sidebar":"ct=pwa-menu"},"ibi":"com.siliconrus.app.Siliconrus","isi":"920638420","ius":"vcru://"},"huawei":{"store":"https://appgallery.huawei.com/app/C101538065"},"rustore":{"store":"https://www.rustore.ru/catalog/app/ru.artrobot.siliconrus"}}'))return null;try{return JSON.parse('{"android":{"store":"https://play.google.com/store/apps/details?id=ru.artrobot.siliconrus&utm_source=pwa","place":{"appsModal":"utm_medium=qr","mobileModal":"utm_medium=5m","sidebar":"utm_medium=menu"},"apn":"ru.artrobot.siliconrus","amv":480},"ios":{"store":"https://apps.apple.com/app/apple-store/id920638420?pt=106436823&mt=8","place":{"appsModal":"ct=pwa-qr","mobileModal":"ct=pwa-5m","sidebar":"ct=pwa-menu"},"ibi":"com.siliconrus.app.Siliconrus","isi":"920638420","ius":"vcru://"},"huawei":{"store":"https://appgallery.huawei.com/app/C101538065"},"rustore":{"store":"https://www.rustore.ru/catalog/app/ru.artrobot.siliconrus"}}')}catch(e){return console.log(e),null}})(),l8=(()=>{if(!q('{"quiz":"d3b5c8dc-71f8-58d4-b404-7a933196547f","slovomer":"654f51ce-0e09-59d6-8f57-673d896fc557"}'))return{};try{return JSON.parse('{"quiz":"d3b5c8dc-71f8-58d4-b404-7a933196547f","slovomer":"654f51ce-0e09-59d6-8f57-673d896fc557"}')}catch(e){return console.log(e),{}}})();let bm;function c8(){return q("chatgptbot")?"chatgptbot".split(",").map(e=>e.trim().toLowerCase()):[]}function aS(e){return bm===void 0&&(bm=c8()),bm.includes(e.toLowerCase())}const Db=(()=>{if(!q('[ {"name":"About","id":45022}, {"name":"Rules","id":87967}, {"name":"Terms","id":45283}, {"name":"Agreement","id":46691}, {"name":"Support","id":256256}
68, {"name":"Pro","id":539959}, {"name":"Ads","id":395408}, {"name":"pro-agreement","id":516790}, {"name":"booster-agreement","id":83700}, {"name":"booster-faq","id":83614}, {"name":"booster-rules","id":83699}, {"name":"Privacy","id":2755854}, {"name":"rules-recommendations","id":2805414}, {"name":"offer-chatgpt-course","id":2884452}]'))return[];try{return JSON.parse('[ {"name":"About","id":45022}, {"name":"Rules","id":87967}, {"name":"Terms","id":45283}, {"name":"Agreement","id":46691}, {"name":"Support","id":256256}, {"name":"Pro","id":539959}, {"name":"Ads","id":395408}, {"name":"pro-agreement","id":516790}, {"name":"booster-agreement","id":83700}, {"name":"booster-faq","id":83614}, {"name":"booster-rules","id":83699}, {"name":"Privacy","id":2755854}, {"name":"rules-recommendations","id":2805414}, {"name":"offer-chatgpt-course","id":2884452}]').map(t=>({...t,id:parseInt(t.id),path:`/${t.name.toLowerCase()}`}))}catch(e){return console.log(e),[]}})();function u8(e){return Db.find(t=>t.name===e)}function d8(e){return Db.find(t=>t.id===e)}const f8="assets,auth,network,account,subsite,appearance,analytics,seo,payments,achievements,plus,pro,stats,marketplace,courses,propaganda,donations,game,editor,uploader,gifs,gifts,webpush,terminal,reactions".split(",").map(e=>e.trim()).filter(Boolean)??[];function h8(e){return f8.includes(e)}const p8=!1,ym=">",m8=/(?=^|\s|\B|(<p>))(#[\wа-ÑÑ]+?)(?=$|\s|(?=<\/p>))/ig,v8=/<mention\s+id="(?<id>\d+)"(?:\s+nickname="(?<nickname>[^&]*)")?\s*>(?<name>.*?)<\/mention>/g,g8=/(^|[^\w@.])@([a-z][a-z0-9_]*)\b/gi,Oc={};function lw(e,t){Oc[e]=t}function b8(e,t,n,s){return e.substring(0,t)+s+e.substring(n,e.length)}function y8(e){return ZI(e,{target:t=>Ev(t)?"":"_blank",rel:t=>Ev(t)?"":"nofollow noopener",validate:{url:t=>t!=="localhost"}})}function lS(e,t){const n=[...e.matchAll(m8)];if(n.length===0)return e;let s=e;return n.reverse(),n.forEach(i=>{if(i.index===void 0)return;const o=i[0],r=i.index,a=i.index+o.length;s=b8(s,r,a,`<a href="${t(o.replace(/^#/,""))}">${o}</a>`)}),s}function w8(e,t,n){let s=e;s=s.replace(g8,(r,a,l)=>`${a}<a href="${t({id:0,nickname:l})}" ${xu}="${Dl.Subsite}" ${Af}="Mention">@${l}</a>`);const i=v8,o=[...e.matchAll(i)];return o.length===0||o.forEach(r=>{if(r.groups===void 0)return;const{id:a,nickname:l}=r.groups,c=q(l)&&aS(l);s=s.replace(r[0],`<a href="${t({id:parseInt(a,10),nickname:l})}" ${xu}="${Dl.Subsite}" ${Af}="Mention"${c?' class="plus-promoted-text"':""}>${sn({id:a,nickname:l},{forDisplay:!0})}</a>`)}),s}function lp(e){if(e=e.trim(),e.length===0)return e;e=rS(e);let n=e.split(/\r\r|\n\n|\r\n\r\n/).filter(s=>s.length>0).map(s=>s.replace(/\r\n|\r|\n/g,"<br>")).reduce((s,i)=>{const o=i.split("<br>");return s+="<p>",o.forEach((r,a)=>{r.startsWith(ym)&&r!==ym?s+=`<span class="quote">${r.substring(ym.length)}</span>`:(s+=r,a<o.length-1&&(s+="<br>"))}),s+="</p>",s},"");return q(Oc.hashtag)&&(n=lS(n,Oc.hashtag)),q(Oc.mention)&&(n=w8(n,Oc.mention)),y8(n)}let Bv=!1;const Dv=[];async function _8({token:e,vue:t,context:n,release:s}){Bv=!0,await(await Ce(()=>import("./hawk-cTWFX9te.js"),[])).init({token:e,vue:t,context:n,release:s}),Bv=!1,Dv.forEach(({message:o,context:r})=>{tc(o,r)}),Dv.length=0}async function tc(e,t){if(Bv){Dv.push({message:e,context:t});return}(await Ce(()=>import("./hawk-cTWFX9te.js"),[])).track(e,t)}function k8(e){if(e.message===void 0)return!1;const t=["failed to fetch dynamically imported module","error loading dynamically imported module","importing a module script failed","error resolving module specifier","failed to resolve module","unable to preload css"],n=e.message.toLowerCase();return t.some(s=>n.includes(s))}function cS(e,t){if(!k8(e))throw e;console.warn(`Module loading error. ${t!==void 0?`Hard reload to ${t}`:"Reloading page"}`),t!==void 0?window.location.href=t:window.location.reload()}function Rt(e){return async()=>{try{const t=await e();return(t==null?void 0:t.default)!==void 0?t.default:t}catch(t){cS(t)}}}function S8(e){typeof window>"u"||e.onError((t,n)=>{console.warn("Navigation to %o failed",n==null?void 0:n.fullPath,t),cS(t,n==null?void 0:n.fullPath)})}const uS="https://twitter.com";function C8(e){var s;const t=e.type==="video",n=t?(s=e.video_info.variants.find(i=>fS(i.url)))==null?void 0:s.url:e.media_url_https;return xn({uuid:n??e.media_url_https,width:e.sizes.large.w,height:e.sizes.large.h,type:t&&n!==void 0?"gif":"png"})}function cw(e){const t="src"in e;return xn({uuid:t?e.src:e.leonardo_url,width:e.width,height:e.height,type:t?"gif":"png"})}function E8(e){return{image:xn({uuid:e.profile_image_url_https}
68),name:e.screen_name,displayName:e.name,url:`${uS}/${e.screen_name}`}}function x8(e){return{image:xn({uuid:e.avatar_url}),name:"",displayName:e.name,url:e.url}}function T8(e){const t=I3(e),n=Object.keys(t).find(o=>o.includes("url")),s=n!==void 0?t[n]:void 0;if(n===void 0||typeof s!="string")return console.warn("Failed to convert data to link. Url field must be present with string value",e),null;const i=new URL(s);return{type:Pt.Link,data:{url:i.href,title:i.origin,description:i.href,image:null,hostname:i.hostname}}}function A8(e){var i,o,r,a;const t=e.tweet_data,n={url:`${uS}/${t.user.screen_name}/status/${t.id_str}`,date:at(t.created_at).unix(),text:t.processed_text??t.full_text??"",media:((o=(i=t.extended_entities)==null?void 0:i.media)==null?void 0:o.map(C8))??[],user:E8(t.user),additionalData:{}};return t.is_quote_status&&(n.additionalData.tweet={quotedTweetLink:(r=t.quoted_status_permalink)==null?void 0:r.expanded,quotedTweetUserName:(a=t.quoted_status)==null?void 0:a.user.screen_name}),n}function P8(e){const t=e.tg_data;return{url:t.url,date:t.datetime,text:t.text,media:[...t.photos.map(cw),...t.videos.map(cw)],user:x8(t.author),additionalData:{}}}const cp="https://leonardo.osnova.io",R8=`${cp}/ico`,uw=72,dw=144,fw=100,I8="scale_crop",M8=5*1024*1024;function Nb(){return I8}function wm(e){return e<=uw?uw:e<dw?dw:Math.ceil(e/fw)*fw}function $8(e,t){if(e===0&&t===0)return{width:e,height:t};if(e===0)return{width:0,height:wm(t)};if(t===0)return{width:wm(e),height:0};const n=e/t,s=wm(e);return{width:s,height:Math.ceil(s/n)}}function L8({width:e=0,height:t=0,pixelRatio:n=void 0,exactSize:s=!1}){const i=n??window.devicePixelRatio,o=e!==0?Math.round(e*i):e,r=t!==0?Math.round(t*i):t;if(o===0&&r===0)return;const a=s?{width:o,height:r}:$8(o,r);return`${a.width===0?"0":a.width}x${a.height===0?"":a.height}`}function dS(e){var s,i;const t=/(?:https:\/\/|^){1}(?<host>leonardo[a-z0-9]*\.osnova\.(?:app|io)){0,1}(?:\/|$|^){0,1}(?<uuid>[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12})*/,n=e.match(t);return{host:(s=n==null?void 0:n.groups)==null?void 0:s.host,uuid:(i=n==null?void 0:n.groups)==null?void 0:i.uuid}}function fS(e){return dS(e).host!==void 0}function hS(e){const{uuid:t}=dS(e);return t!==void 0?`${cp}/${t}`:e}function O8(e,{fit:t,format:n,width:s,height:i,pixelRatio:o,exactSize:r}){if(e.includes(R8))return e;let a=`${e}/`;t!==void 0&&(a+=`-/${t}/`);const l=L8({width:s,height:i,pixelRatio:o,exactSize:r});return l!==void 0&&(a+=`${l}/`),n!==void 0&&(a+=`-/format/${n}/`),a}function Ir({uuid:e,width:t,height:n,fit:s,format:i,pixelRatio:o,exactSize:r}){const a=hS(e);return fS(a)?O8(a,{format:i,fit:s,width:t,height:n,pixelRatio:o,exactSize:r}):a}function Vi({uuid:e,width:t,height:n,fit:s=Nb(),format:i,pixelRatio:o,exactSize:r}){return Ir({uuid:e,width:t,height:n,fit:s,format:i,pixelRatio:o,exactSize:r})}function cd({uuid:e,width:t,fit:n=Nb(),format:s,pixelRatio:i,exactSize:o}){return Ir({uuid:e,width:t,fit:n,format:s,pixelRatio:i,exactSize:o})}function pS(e){return Ir({uuid:e,format:"mp4"})}function B8(e,t){const n=`${cp}/audio/${e}/`;return t!==void 0?n+t:n}function D8(e){return`${cp}/${e}/-/gif_preview`}function N8(e,t){const n=window.location.hostname;switch(e){case"youtube":return`https://www.youtube.com/embed/${t}?autoplay=1&playsinline=1`;case"coub":return`https://coub.com/embed/${t}?autoplay=true`;case"twitch-clip":return`https://clips.twitch.tv/embed?clip=${t}&parent=${n}&autoplay=true`;case"twitch-channel":return`https://player.twitch.tv/?channel=${t}&parent=${n}&autoplay=true`;case"twitch-video":return`https://player.twitch.tv/?video=${t}&parent=${n}&autoplay=true`;case"vimeo":return`https://player.vimeo.com/video/${t}?autoplay=1&playsinline=1`;case"vk":return`https://vk.com/video_ext.php?oid=${t.split("_")[0]}&id=${t.split("_")[1]}&hd=2&autoplay=true`;default:return}}function xn(e){return{type:Pt.Image,data:{uuid:e.uuid??"",width:e.width??0,height:e.height??0,color:e.color??"dddddd",size:e.size??0,type:e.type??"png",hash:e.hash??"",external_service:e.external_service??{},base64preview:e.base64preview??""}}}function up(e){return{type:Pt.Movie,data:{uuid:e.uuid??"",width:e.width??0,height:e.height??0,color:e.color??"dddddd",size:e.size??0,type:e.type??"mp4",has_audio:e.has_audio??!1,bitrate:e.bitrate??0,duration:e.duration??0}}}function mS(){return up({uuid:"6e5dad82-f7cc-5baf-838d-8a593ac0c69a",width:100,height:100,size:16e3})}function rl({uuid:e,width:t=0,height:n=0,exactSize:s,format:i}){const o=t!==0&&n!==0?"scale_crop":Nb();return{webp:{x1:Vi({uuid:e,width:t,height:n,fit:o,format:i??"webp",pixelRatio:1,exactSize:s}),x2:Vi({uuid:e,width:t,height:n,fit:o,format:i??"webp",pixelRatio:2,exactSize:s})},common:{x1:Vi({uuid:e,width:t,height:n,format:i,fit:o,pixelRatio:1,exactSize:s}),x2:Vi({uuid:e,width:t,height:n,format:i,fit:o,pixelRatio:2,exactSize:s})}}}var _o,dl,fl,hl,pl,ml;class Tn{constructor(t,n){Fe(this,_o);Fe(this,dl);Fe(this,fl);Fe(this,hl);Fe(this,pl);Fe(this,ml);this.itemsSource=t,this.onBeforeItemInsert=n,lt(this,_o,t??[])}insert(t){this.onBeforeItemInsert!==void 0?fe(this,_o).push(...t.map(this.onBeforeItemInsert)):fe(this,_o).push(...t)}remove(t){To(t,fe(this,_o))}reset(){Jl(fe(this,_o)),lt(this,fl,void 0),lt(this,hl,void 0),lt(this,pl,void 0),lt(this,ml,void 0),lt(this,dl,void 0)}processChunk(t){this.insert(t.items),lt(this,dl,t.meta),"lastId"in t&&(this.lastId=t.lastId),"lastSortingValue"in t&&(this.lastSortingValue=t.lastSortingValue),"nextPage"in t&&(this.nextPage=t.nextPage),"cursor"in t&&(this.cursor=t.cursor)}async resolve(t,{isFromStart:n=!1}={}){if(n&&this.reset(),this.isEnded)return this.meta===void 0?this.items:{items:this.items,meta:this.meta};const s=await t(this.nextChunkOptions);return this.processChunk(s),this.meta===void 0?this.items:{items:this.items,meta:this.meta}}get nextChunkOptions(){const t={};return q(this.lastId)&&(t.lastId=this.lastId),q(this.lastSortingValue)&&(t.lastSortingValue=this.lastSortingValue),q(this.cursor)&&(t.cursor=this.cursor),t.page=this.nextPage??0,t}get isEnded(){return this.lastId===0||this.lastId===null||this.nextPage===null||this.lastSortingValue===null||this.cursor===null||this.cursor===""}get items(){return fe(this,_o)}get meta(){return fe(this,dl)}set lastId(t){lt(this,fl,t)}get lastId(){return fe(this,fl)}set lastSortingValue(t){lt(this,hl,t)}get lastSortingValue(){return fe(this,hl)}set nextPage(t){lt(this,pl,t)}get nextPage(){return fe(this,pl)}set cursor(t){lt(this,ml,t)}
68get cursor(){return fe(this,ml)}get api(){return{items:this.items,meta:this.meta,clear:()=>this.reset()}}}_o=new WeakMap,dl=new WeakMap,fl=new WeakMap,hl=new WeakMap,pl=new WeakMap,ml=new WeakMap;function F8(e,t){let n=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const[o,r]=t[s],[a,l]=t[i];r>e[1]!=l>e[1]&&e[0]<(a-o)*(e[1]-r)/(l-r)+o&&(n=!n)}return n}function Dd(e,t){var s;if(t===void 0||((s=e.place)==null?void 0:s[t])===void 0)return e.store;const n=e.store.includes("?")?"&":"?";return`${e.store}${n}${e.place[t]}`}const U8=[{l:"s",r:1},{l:"ss",r:59,d:"second"},{l:"m",r:1},{l:"mm",r:59,d:"minute"},{l:"h",r:1},{l:"hh",r:23,d:"hour"},{l:"d",r:1},{l:"dd",r:29,d:"day"},{l:"M",r:1},{l:"MM",r:11,d:"month"},{l:"y",r:1},{l:"yy",d:"year"}];at.extend(wI);at.extend(kI);at.extend(_I,{thresholds:U8,rounding:Math.floor});var us=(e=>(e[e.Relative=0]="Relative",e[e.Full=1]="Full",e[e.FullWithTime=2]="FullWithTime",e[e.FullMonthWithTime=3]="FullMonthWithTime",e[e.DayAndMonth=4]="DayAndMonth",e[e.dayAndMonthShort=5]="dayAndMonthShort",e[e.Time=6]="Time",e[e.Machine=7]="Machine",e))(us||{});const Mr=zt(()=>{const{t:e,locale:t}=ft();n(),be(t,n);function n(u=t.value){const d=s(u);at.locale(d)}function s(u){const[d]=u.toLowerCase().replace("_","-").split("-");return d}function i(u,d=0){switch(q(u)||(u=at().unix()*1e3),d){case 0:return o(u);case 7:return at(u).toISOString();case 2:return at(u).format(e("common.dates.dateFullAndTime"));case 1:return at(u).format(e("common.dates.dateFull"));case 4:return at(u).format(e("common.dates.dayAndMonth"));case 5:return at(u).format(e("common.dates.dayAndMonthShort")).replace(/\.$/,"");case 6:return at(u).format(e("common.dates.time"));case 3:return at(u).format(e("common.dates.dateFullAndMonthAndTime"))}}function o(u){const d=at(u),h=at(),p=c();if(d.isYesterday())return e("common.dates.yesterday");if(!d.isSame(h,"year"))return d.format(e("common.dates.dateFull"));const m=r(d,h);switch(m){case"hh":return d.format(e("common.dates.time"));case"d":case"dd":case"M":case"MM":return d.format(e("common.dates.dayAndMonthShort")).replace(/\.$/,"");case"y":case"yy":return d.format(e("common.dates.dateFull"));default:return a(m,d,p)}}function r(u,d){const h=d.diff(u,"second");if(h<=59)return h<=1?"s":"ss";const p=d.diff(u,"minute");if(p<=59)return p===1?"m":"mm";const m=d.diff(u,"hour");if(m<=23)return m===1?"h":"hh";const v=d.diff(u,"day");if(v<=29)return v===1?"d":"dd";const g=d.diff(u,"month");return g<=11?g===1?"M":"MM":d.diff(u,"year")===1?"y":"yy"}function a(u,d,h){const p=h[u],m=at().diff(d,l(u));return typeof p=="function"?p(m,!0,u):typeof p=="string"?p.replace("%d",m.toString()):d.fromNow(!0)}function l(u){switch(u){case"m":case"mm":return"minute";case"h":case"hh":return"hour";case"d":case"dd":return"day";case"M":case"MM":return"month";case"y":case"yy":return"year";default:return"second"}}function c(){return{s:e("common.dates.now"),ss:e("common.dates.now"),m:e("common.dates.minutes"),mm:e("common.dates.minutes"),h:e("common.dates.hours"),hh:u=>u<=4?e("common.dates.hours").replace("%d",u.toString()):"hh",d:"d",dd:"dd",M:"M",MM:"MM",y:"y",yy:"yy"}}return{formatTime:i}}),H8=yt(zt(()=>{let t;const n=new Set;function s(){t!==void 0&&i(),t=setInterval(o,6e4)}function i(){clearInterval(t),t=void 0}function o(){n.forEach(l=>l())}function r(l){n.add(l),t===void 0&&s()}function a(l){n.delete(l),n.size===0&&i()}return{onMinutePassed:r,offMinutePassed:a,triggerAll:o}}),()=>({onMinutePassed:()=>{},offMinutePassed:()=>{},triggerAll:()=>{}}));var Ou=(e=>(e[e.Success=0]="Success",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e))(Ou||{});const fn=yt(zt(()=>{const n=P([]);let s=0;const i=Yh(a=>{n.value.splice(0,0,a),a.autoHide!==!1&&setTimeout(()=>{r(a.id)},5e3)},1e3);function o(a){const l=`${s++}`;return i!==void 0&&i({...a,id:l}),l}function r(a){const l=n.value.findIndex(c=>c.id===a);l>=0&&n.value.splice(l,1)}return{alert:o,removeAlert:r,alerts:n,AlertType:Ou}}),()=>({alert:()=>"",removeAlert:()=>{},alerts:P([]),AlertType:Ou})),V8=new Set(["link","style","script","noscript"]),z8=new Set(["title","titleTemplate","script","style","noscript"]),Nv=new Set(["base","meta","link","style","script","noscript"]),W8=ne
68w Set(["title","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),j8=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),G8=new Set(["key","tagPosition","tagPriority","tagDuplicateStrategy","innerHTML","textContent","processTemplateParams"]),q8=new Set(["templateParams","htmlAttrs","bodyAttrs"]),Fb=new Set(["theme-color","google-site-verification","og","article","book","profile","twitter","author"]),Bu={META:new Set(["twitter"]),OG:new Set(["og","book","article","profile","fb"]),MEDIA:new Set(["ogImage","ogVideo","ogAudio","twitterImage"]),HTTP_EQUIV:new Set(["contentType","defaultStyle","xUaCompatible"])},K8={articleExpirationTime:"article:expiration_time",articleModifiedTime:"article:modified_time",articlePublishedTime:"article:published_time",bookReleaseDate:"book:release_date",fbAppId:"fb:app_id",ogAudioSecureUrl:"og:audio:secure_url",ogAudioUrl:"og:audio",ogImageSecureUrl:"og:image:secure_url",ogImageUrl:"og:image",ogSiteName:"og:site_name",ogVideoSecureUrl:"og:video:secure_url",ogVideoUrl:"og:video",profileFirstName:"profile:first_name",profileLastName:"profile:last_name",profileUsername:"profile:username",msapplicationConfig:"msapplication-Config",msapplicationTileColor:"msapplication-TileColor",msapplicationTileImage:"msapplication-TileImage"},vS={appleItunesApp:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>`${Ao(e)}=${t}`}},refresh:{metaKey:"http-equiv",unpack:{entrySeparator:";",resolve:({key:e,value:t})=>e==="seconds"?`${t}`:void 0}},robots:{unpack:{entrySeparator:", ",resolve:({key:e,value:t})=>typeof t=="boolean"?Ao(e):`${Ao(e)}:${t}`}},contentSecurityPolicy:{metaKey:"http-equiv",unpack:{entrySeparator:"; ",resolve:({key:e,value:t})=>`${Ao(e)} ${t}`}},charset:{}};function Ao(e){const t=e.replace(/([A-Z])/g,"-$1").toLowerCase(),n=t.indexOf("-");return n===-1?t:Bu.META.has(t.slice(0,n))||Bu.OG.has(t.slice(0,n))?e.replace(/([A-Z])/g,":$1").toLowerCase():t}function gS(e){return Object.fromEntries(Object.entries(e).filter(([t,n])=>String(n)!=="false"&&t))}function Fv(e){return Array.isArray(e)?e.map(Fv):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).map(([t,n])=>[Ao(t),Fv(n)]))}function bS(e,t={}){const{entrySeparator:n="",keyValueSeparator:s="",wrapValue:i,resolve:o}=t;return Object.entries(e).map(([r,a])=>{if(o){const c=o({key:r,value:a});if(c!==void 0)return c}const l=typeof a=="object"?bS(a,t):typeof a=="number"?a.toString():typeof a=="string"&&i?`${i}${a.replace(new RegExp(i,"g"),`\\${i}`)}${i}`:a;return`${r}${s}${l}`}).join(n)}function hw(e,t){const n=gS(t),s=Ao(e),i=yS(s);if(!Fb.has(s))return[{[i]:s,...n}];const o=Object.fromEntries(Object.entries(n).map(([r,a])=>[`${e}${r==="url"?"":`${r[0].toUpperCase()}${r.slice(1)}`}`,a]));return hh(o||{}).sort((r,a)=>{var l,c;return(((l=r[i])==null?void 0:l.length)||0)-(((c=a[i])==null?void 0:c.length)||0)})}function yS(e){var s;if(((s=vS[e])==null?void 0:s.metaKey)==="http-equiv"||Bu.HTTP_EQUIV.has(e))return"http-equiv";const t=Ao(e),n=t.indexOf(":");return n===-1?"name":Bu.OG.has(t.slice(0,n))?"property":"name"}function Y8(e){return K8[e]||Ao(e)}function X8(e,t){var n;return t==="refresh"?`${e.seconds};url=${e.url}`:bS(Fv(e),{keyValueSeparator:"=",entrySeparator:", ",resolve:({value:s,key:i})=>s===null?"":typeof s=="boolean"?i:void 0,...(n=vS[t])==null?void 0:n.unpack})}function hh(e){const t=[],n={};for(const[i,o]of Object.entries(e)){if(Array.isArray(o)){if(i==="themeColor"){o.forEach(r=>{typeof r=="object"&&r!==null&&t.push({name:"theme-color",...r})});continue}for(const r of o)if(typeof r=="object"&&r!==null){const a=[],l=[];for(const[c,u]of Object.entries(r)){const d=`${i}${c==="url"?"":`:${c}`}`,h=hh({[d]:u});(c==="url"?a:l).push(...h)}t.push(...a,...l)}else t.push(...typeof r=="string"?hh({[i]:r}):hw(i,r));continue}if(typeof o=="object"&&o)if(Bu.MEDIA.has(i)){const r=i.startsWith("twitter")?"twitter":"og",a=i.replace(/^(og|twitter)/,"").toLowerCase(),l=r==="twitter"?"name":"property";o.url&&t.push({[l]:`${r}:${a}`,content:o.url}),o.secureUrl&&t.push({[l]:`${r}:${a}:secure_url`,content:o.secureUrl});for(const[c,u]of Object.entries(o))c!=="url"&&c!=="secureUrl"&&t.push({[l]:`${r}:${a}:${c}`,content:u})}else Fb.has(Ao(i))?t.push(...hw(i,o)):n[i]=gS(o);else n[i]=o}const s=Object.entries(n).map(([i,o])=>
68{if(i==="charset")return{charset:o===null?"_null":o};const r=yS(i),a=Y8(i),l=o===null?"_null":typeof o=="object"?X8(o,i):typeof o=="number"?o.toString():o;return r==="http-equiv"?{"http-equiv":a,content:l}:{[r]:a,content:l}});return[...t,...s].map(i=>"content"in i&&i.content==="_null"?{...i,content:null}:i)}const Q8={key:"flatMeta",hooks:{"entries:normalize":e=>{const t=[];e.tags=e.tags.map(n=>n.tag!=="_flatMeta"?n:(t.push(hh(n.props).map(s=>({...n,tag:"meta",props:s}))),!1)).filter(Boolean).concat(...t)}}};function Uv(e,t={},n){for(const s in e){const i=e[s],o=n?`${n}:${s}`:s;typeof i=="object"&&i!==null?Uv(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const wS=(()=>{if(console.createTask)return console.createTask;const e={run:t=>t()};return()=>e})();function _S(e,t,n,s){for(let i=n;i<e.length;i+=1)try{const o=s?s.run(()=>e[i](...t)):e[i](...t);if(o&&typeof o.then=="function")return Promise.resolve(o).then(()=>_S(e,t,i+1,s))}catch(o){return Promise.reject(o)}}function J8(e,t,n){if(e.length>0)return _S(e,t,0,wS(n))}function Z8(e,t,n){if(e.length>0){const s=wS(n);return Promise.all(e.map(i=>s.run(()=>i(...t))))}}function _m(e,t){for(const n of[...e])n(t)}var eM=class{constructor(){le(this,"_hooks");le(this,"_before");le(this,"_after");le(this,"_deprecatedHooks");le(this,"_deprecatedMessages");this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(e,t,n={}){if(!e||typeof t!="function")return()=>{};const s=e;let i;for(;this._deprecatedHooks[e];)i=this._deprecatedHooks[e],e=i.to;if(i&&!n.allowDeprecated){let o=i.message;o||(o=`${s} hook has been deprecated`+(i.to?`, please use ${i.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(o)||(console.warn(o),this._deprecatedMessages.add(o))}if(!t.name)try{Object.defineProperty(t,"name",{get:()=>"_"+e.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[e]=this._hooks[e]||[],this._hooks[e].push(t),()=>{t&&(this.removeHook(e,t),t=void 0)}}hookOnce(e,t){let n,s=(...i)=>(typeof n=="function"&&n(),n=void 0,s=void 0,t(...i));return n=this.hook(e,s),n}removeHook(e,t){const n=this._hooks[e];if(n){const s=n.indexOf(t);s!==-1&&n.splice(s,1),n.length===0&&(this._hooks[e]=void 0)}}clearHook(e){this._hooks[e]=void 0}deprecateHook(e,t){this._deprecatedHooks[e]=typeof t=="string"?{to:t}:t;const n=this._hooks[e]||[];this._hooks[e]=void 0;for(const s of n)this.hook(e,s)}deprecateHooks(e){for(const t in e)this.deprecateHook(t,e[t])}addHooks(e){const t=Uv(e),n=Object.keys(t).map(s=>this.hook(s,t[s]));return()=>{for(const s of n)s();n.length=0}}removeHooks(e){const t=Uv(e);for(const n in t)this.removeHook(n,t[n])}removeAllHooks(){this._hooks={}}callHook(e,...t){return this.callHookWith(J8,e,t)}callHookParallel(e,...t){return this.callHookWith(Z8,e,t)}callHookWith(e,t,n){const s=this._before||this._after?{name:t,args:n,context:{}}:void 0;this._before&&_m(this._before,s);const i=e(this._hooks[t]?[...this._hooks[t]]:[],n,t);return i instanceof Promise?i.finally(()=>{this._after&&s&&_m(this._after,s)}):(this._after&&s&&_m(this._after,s),i)}beforeEach(e){return this._before=this._before||[],this._before.push(e),()=>{if(this._before!==void 0){const t=this._before.indexOf(e);t!==-1&&this._before.splice(t,1)}}}afterEach(e){return this._after=this._after||[],this._after.push(e),()=>{if(this._after!==void 0){const t=this._after.indexOf(e);t!==-1&&this._after.splice(t,1)}}}};function tM(){return new eM}const nM=["name","property","http-equiv"],sM=new Set(["viewport","description","keywords","robots"]);function kS(e){const t=e.split(":");return t.length?Fb.has(t[1]):!1}function Hv(e){const{props:t,tag:n}=e;if(j8.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(n==="link"&&t.rel==="alternate"){const s=t.hreflang||t.type;if(s)return`alternate:${s}`}if(t.charset)return"charset";if(e.tag==="meta"){for(const s of nM)if(t[s]!==void 0){const i=t[s],o=i&&typeof i=="string"&&i.includes(":"),r=i&&sM.has(i),l=!(o||r)&&e.key?`:key:${e.key}`:"";return`${n}:${i}${l}`}}if(e.key)return`${n}:key:${e.key}`;if(t.id)return`${n}:id:${t.id}`;if(n==="link"&&t.rel==="alternate")return`alternate:${t.href||""}`;if(z8.has(n)){const s=e.textContent||e.innerHTML;if(s)return`${n}:content:${s}`}}function SS(e){const t=e._h||e._d;if(t)return t;const n=e.textContent||e.innerHTML;return n||`${e.tag}:${Object.entries(e.props).map(([s,i])=>`${s}:${String(i)}`).join(",")}`}function ph(e,t,n){typeof e==="function"&&(!n||n!=="titleTemplate"&&!(n[0]==="o"&&n[1]==="n"))&&(e=e());const i=t?t(n,e):e;if(Array.isArray(i))return i.map(o=>ph(o,t));if((i==null?void 0:i.constructor)===Object){const o={};for(const r of Object.keys(i))o[r]=ph(i[r],t,r);return o}return i}function iM(e,t){const n=e==="style"?new Map:new Set;function s(i){if(i==null||i===void 0)return;const o=String(i).trim();if(o)if(e==="style"){const[r,...a]=o.split(":").map(l=>l?l.trim():"");r&&a.length&&n.set(r,a.join(":"))}
68else o.split(" ").filter(Boolean).forEach(r=>n.add(r))}return typeof t=="string"?e==="style"?t.split(";").forEach(s):s(t):Array.isArray(t)?t.forEach(i=>s(i)):t&&typeof t=="object"&&Object.entries(t).forEach(([i,o])=>{o&&o!=="false"&&(e==="style"?n.set(String(i).trim(),String(o)):s(i))}),n}function CS(e,t){if(e.props=e.props||{},!t)return e;if(e.tag==="templateParams")return e.props=t,e;const n=Nv.has(e.tag)||e.tag==="htmlAttrs"||e.tag==="bodyAttrs";return Object.entries(t).forEach(([s,i])=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;if(i===null){e.props[s]=null;return}if(s==="class"||s==="style"){e.props[s]=iM(s,i);return}if(G8.has(s)){if((s==="textContent"||s==="innerHTML")&&typeof i=="object"){let c=t.type;if(t.type||(c="application/json"),!(c!=null&&c.endsWith("json"))&&c!=="speculationrules")return;t.type=c,e.props.type=c,e[s]=JSON.stringify(i)}else e[s]=i;return}const o=s.startsWith("data-"),r=n&&!o?s.toLowerCase():s,a=String(i),l=e.tag==="meta"&&r==="content";a==="true"||a===""?e.props[r]=o||l?a:!0:!i&&o&&a==="false"?e.props[r]="false":i!==void 0&&(e.props[r]=i)}),e}function oM(e,t){const n=typeof t=="object"&&typeof t!="function"?t:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},s=CS({tag:e,props:{}},n);return s.key&&V8.has(s.tag)&&(s.props["data-hid"]=s._h=s.key),s.tag==="script"&&typeof s.innerHTML=="object"&&(s.innerHTML=JSON.stringify(s.innerHTML),s.props.type=s.props.type||"application/json"),Array.isArray(s.props.content)?s.props.content.map(i=>({...s,props:{...s.props,content:i}})):s}function rM(e,t){if(!e)return[];typeof e=="function"&&(e=e());const n=(i,o)=>{for(let r=0;r<t.length;r++)o=t[r](i,o);return o};e=n(void 0,e);const s=[];return e=ph(e,n),Object.entries(e||{}).forEach(([i,o])=>{if(o!==void 0)for(const r of Array.isArray(o)?o:[o])s.push(oM(i,r))}),s.flat()}const pw=(e,t)=>e._w===t._w?e._p-t._p:e._w-t._w,mw={base:-10,title:10},aM={critical:-8,high:-1,low:2},vw={meta:{"content-security-policy":-30,charset:-20,viewport:-15},link:{preconnect:20,stylesheet:60,preload:70,modulepreload:70,prefetch:90,"dns-prefetch":90,prerender:90},script:{async:30,defer:80,sync:50},style:{imported:40,sync:60}},lM=/@import/,Cc=e=>e===""||e===!0;function cM(e,t){if(typeof t.tagPriority=="number")return t.tagPriority;let n=100;const s=aM[t.tagPriority]||0,i=e.resolvedOptions.disableCapoSorting?{link:{},script:{},style:{}}:vw;if(t.tag in mw)n=mw[t.tag];else if(t.tag==="meta"){const o=t.props["http-equiv"]==="content-security-policy"?"content-security-policy":t.props.charset?"charset":t.props.name==="viewport"?"viewport":null;o&&(n=vw.meta[o])}else if(t.tag==="link"&&t.props.rel)n=i.link[t.props.rel];else if(t.tag==="script"){const o=String(t.props.type);Cc(t.props.async)?n=i.script.async:t.props.src&&!Cc(t.props.defer)&&!Cc(t.props.async)&&o!=="module"&&!o.endsWith("json")||t.innerHTML&&!o.endsWith("json")?n=i.script.sync:(Cc(t.props.defer)&&t.props.src&&!Cc(t.props.async)||o==="module")&&(n=i.script.defer)}else t.tag==="style"&&(n=t.innerHTML&&lM.test(t.innerHTML)?i.style.imported:i.style.sync);return(n||100)+s}function gw(e,t){const n=typeof t=="function"?t(e):t,s=n.key||String(e.plugins.size+1);e.plugins.get(s)||(e.plugins.set(s,n),e.hooks.addHooks(n.hooks||{}))}function uM(e={}){var a;const t=tM();t.addHooks(e.hooks||{});const n=!e.document,s=new Map,i=new Map,o=new Set,r={_entryCount:1,plugins:i,dirty:!1,resolvedOptions:e,hooks:t,ssr:n,entries:s,headEntries(){return[...s.values()]},use:l=>gw(r,l),push(l,c){const u={...c||{}};delete u.head;const d=u._index??r._entryCount++,h={_i:d,input:l,options:u},p={_poll(m=!1){r.dirty=!0,!m&&o.add(d),t.callHook("entries:updated",r)},dispose(){s.delete(d)&&r.invalidate()},patch(m){(!u.mode||u.mode==="server"&&n||u.mode==="client"&&!n)&&(h.input=m,s.set(d,h),p._poll())}};return p.patch(l),p},async resolveTags(){const l={tagMap:new Map,tags:[],entries:[...r.entries.values()]};for(await t.callHook("entries:resolve",l);o.size;){const p=o.values().next().value;o.delete(p);const m=s.get(p);if(m){const v={tags:rM(m.input,e.propResolvers||[]).map(g=>Object.assign(g,m.options)),entry:m};await t.callHook("entries:normalize",v),m._tags=v.tags.map((g,b)=>(g._w=cM(r,g),g._p=(m._i<<10)+b,g._d=Hv(g),g._d||(g._h=SS(g)),g))}}let c=!1;l.entries.flatMap(p=>(p._tags||[]).map(m=>({...m,props:{...m.props}}))).sort(pw).reduce((p,m)=>{const v=m._d||m._h;if(!p.has(v))return p.set(v,m);const g=p.get(v);if(((m==null?void 0:m.tagDuplicateStrategy)||(q8.has(m.tag)?"merge":null)||(m.key&&m.key===g.key?"merge":null))==="merge"){const w={...g.props};
68Object.entries(m.props).forEach(([k,y])=>w[k]=k==="style"?new Map([...g.props.style||new Map,...y]):k==="class"?new Set([...g.props.class||new Set,...y]):y),p.set(v,{...m,props:w})}else m._p>>10===g._p>>10&&m.tag==="meta"&&kS(v)?(p.set(v,Object.assign([...Array.isArray(g)?g:[g],m],m)),c=!0):(m._w===g._w?m._p>g._p:(m==null?void 0:m._w)<(g==null?void 0:g._w))&&p.set(v,m);return p},l.tagMap);const u=l.tagMap.get("title"),d=l.tagMap.get("titleTemplate");if(r._title=u==null?void 0:u.textContent,d){const p=d==null?void 0:d.textContent;if(r._titleTemplate=p,p){let m=typeof p=="function"?p(u==null?void 0:u.textContent):p;typeof m=="string"&&!r.plugins.has("template-params")&&(m=m.replace("%s",(u==null?void 0:u.textContent)||"")),u?m===null?l.tagMap.delete("title"):l.tagMap.set("title",{...u,textContent:m}):(d.tag="title",d.textContent=m)}}l.tags=Array.from(l.tagMap.values()),c&&(l.tags=l.tags.flat().sort(pw)),await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l);const h=[];for(const p of l.tags){const{innerHTML:m,tag:v,props:g}=p;if(W8.has(v)&&!(Object.keys(g).length===0&&!p.innerHTML&&!p.textContent)&&!(v==="meta"&&!g.content&&!g["http-equiv"]&&!g.charset)){if(v==="script"&&m){if(String(g.type).endsWith("json")){const b=typeof m=="string"?m:JSON.stringify(m);p.innerHTML=b.replace(/</g,"\\u003C")}else typeof m=="string"&&(p.innerHTML=m.replace(new RegExp(`</${v}`,"g"),`<\\/${v}`));p._d=Hv(p)}h.push(p)}}return h},invalidate(){for(const l of s.values())o.add(l._i);r.dirty=!0,t.callHook("entries:updated",r)}};return((e==null?void 0:e.plugins)||[]).forEach(l=>gw(r,l)),r.hooks.callHook("init",r),(a=e.init)==null||a.forEach(l=>l&&r.push(l)),r}const km="%separator";function dM(e,t,n=!1){var i;let s;if(t==="s"||t==="pageTitle")s=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");s=(i=e[t.substring(0,o)])==null?void 0:i[t.substring(o+1)]}else s=e[t];if(s!==void 0)return n?(s||"").replace(/\\/g,"\\\\").replace(/</g,"\\u003C").replace(/"/g,'\\"'):s||""}function Bc(e,t,n,s=!1){if(typeof e!="string"||!e.includes("%"))return e;let i=e;try{i=decodeURI(e)}catch{}const o=i.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const r=e.includes(km);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===km||!o.includes(a))return a;const l=dM(t,a.slice(1),s);return l!==void 0?l:a}).trim(),r&&(e=e.split(km).map(a=>a.trim()).filter(a=>a!=="").join(n?` ${n} `:" ")),e}const fM={meta:"content",link:"href",htmlAttrs:"lang"},hM=["innerHTML","textContent"],pM=e=>({key:"template-params",hooks:{"entries:normalize":t=>{var s,i,o;const n=((i=(s=t.tags.filter(r=>r.tag==="templateParams"&&r.mode==="server"))==null?void 0:s[0])==null?void 0:i.props)||{};Object.keys(n).length&&(e._ssrPayload={templateParams:{...((o=e._ssrPayload)==null?void 0:o.templateParams)||{},...n}})},"tags:resolve":({tagMap:t,tags:n})=>{var o;const s=((o=t.get("templateParams"))==null?void 0:o.props)||{},i=s.separator||"|";delete s.separator,s.pageTitle=Bc(s.pageTitle||e._title||"",s,i);for(const r of n){if(r.processTemplateParams===!1)continue;const a=fM[r.tag];if(a&&typeof r.props[a]=="string")r.props[a]=Bc(r.props[a],s,i);else if(r.processTemplateParams||r.tag==="titleTemplate"||r.tag==="title")for(const l of hM)typeof r[l]=="string"&&(r[l]=Bc(r[l],s,i,r.tag==="script"&&r.props.type.endsWith("json")))}e._templateParams=s,e._separator=i},"tags:afterResolve":({tagMap:t})=>{const n=t.get("title");n!=null&&n.textContent&&n.processTemplateParams!==!1&&(n.textContent=Bc(n.textContent,e._templateParams,e._separator))}}}),mM=(e,t)=>Ct(t)?ce(t):t,ES="usehead";function vM(e){return{install(n){n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(ES,e)}}.install}function Ub(){if(Fg()){const e=ut(ES);if(e)return e}throw new Error("useHead() was called without provide context, ensure you call it through the setup() function.")}function nc(e,t={}){const n=t.head||Ub();return n.ssr?n.push(e||{},t):gM(n,e,t)}function gM(e,t,n={}){const s=P(!1);let i;return Gl(()=>{const r=s.value?{}:ph(t,mM);i?i.patch(r):i=e.push(r,n)}),Mn()&&(et(()=>{i.dispose()}),rd(()=>{s.value=!0}),La(()=>{s.value=!1})),i}function bM(e={},t={}){(t.head||Ub()).use(Q8);const{title:s,titleTemplate:i,...o}=e;return nc({title:s,titleTemplate:i,_flatMeta:o},t)}const Ec={"custom-media":{"--media-one-column":"all and (max-width: 924px)","--media-two-columns":"all and (min-width: 925px)","--media-three-columns":"all and (min-width: 1240px)","--media-wider-than-content":"all and (min-width: 640px)","--media-one-column-wide":"all and (min-width: 840px)"}},an=zt(()=>{const e=dn(),t=ii(Ec["custom-media"]["--media-one-column"]),n=ii(Ec["custom-media"]["--media-two-columns"]),s=ii(Ec["custom-media"]["--media-three-columns"]),i=ii(Ec["custom-media"]["--media-wider-than-content"]),o=ii(Ec["custom-media"]["--media-one-column-wide"]),r=C(()=>{const p=Jd("--layout-header-height",void 0,{observe:!0}).value??"0";return ol(p)}),a=C(()=>{const p=Jd("--layout-tabbar-height").value??"0";return ol(p)}),l=C(()=>{const p=Jd("--layout-content-offset-x").value??"0";return ol(p)}),c=C(()=>592),u=C(()=>400),d=C(()=>e.meta.pageLayout==="blank"?"blank":"default");function h(){const p=document.querySelector(".bar--top");return p==null?0:p.getBoundingClientRect().top}return nc({htmlAttrs:{"data-layout":d}}),be([t,n],([p,m])=>{const v=document.documentElement;p?v.style.setProperty("--layout-tabbar-height","50px"):m&&v.style.setProperty("--layout-tabbar-height","0px")},{immediate:!0}),{isOneColumn:t,isTwoColumns:n,isThreeColumns:s,isWiderThanContent:i,isOneColumnWide:o,appHeaderHeight:r,appTabbarHeight:a,appContentOffset:l,mediaMaxWidth:c,mediaMaxHeight:u,layoutType:d,getAppHeaderOffset:h}}),po=class po{constructor(){le(this,"MAX_LOGS",30);le(this,"STORAGE_KEY","lc-logs");le(this,"tabId","unknown");le(this,"console",new Ql(30))}static getInstance(){return po.instance===void 0&&(po.instance=new po,po.instance.tabId=Math.random().toString(36).substring(2,5),typeof window<"u"&&window.addEventListener("beforeunload",()=>{po.getInstance().log("Tab closed")},{once:!0})),po.instance}get logs(){const t=localStorage.getItem(this.STORAGE_KEY);return t!==null?JSON.parse(t):[]}set logs(t){localStorage.setItem(this.STORAGE_KEY,JSON.stringify(t))}purge(){localStorage.removeItem(this.STORAGE_KEY),this.console.clear()}log(t){const n=this.logs;n.length>=this.MAX_LOGS&&n.shift(),n.push({time:new Date().toISOString(),tab:this.tabId,message:t}),this.logs=n}timeToStr(t){return t.toString().padStart(2,"0")}dateToStr(t){return`${this.timeToStr(t.getDate())}/${this.timeToStr(t.getMonth()+1)} ${this.timeToStr(t.getHours())}:${this.timeToStr(t.getMinutes())}:${this.timeToStr(t.getSeconds())}`}send(){let t="";const n=this.logs.map(s=>{const i=t!==""&&t!==s.tab?` 69`:"";return t=s.tab??"old",`${i}${this.dateToStr(new Date(s.time))} - tab ${s.tab??"old"} - ${s.message}`}).join(` 70`);this.purge(),this.sendOne(n)}sendOne(t){}sendConsole(t){const n=`Console logs from tab: ${t}: 71 72${this.console.getAll().map(([s,{value:i}])=>{i=i.replace(/%c(.*?)%c/g,"[$1] ");const o=i.indexOf(` 73`);return i=i.slice(0,o!==-1?o:i.length),i}).join(` 74`)}`;this.sendOne(n)}monkeyPatchConsole(){const t=(o,r)=>{this.console.put(Vs(10),`${this.dateToStr(new Date)} - `+(r!==void 0?`[${r}] `:"")+o.join(" "))},n=console.log;console.log=(...o)=>{n(...o),t(o)};const s=console.error;console.error=(...o)=>{s(...o),t(o,"error")};const i=console.warn;console.warn=(...o)=>{i(...o),t(o,"warn")}}};le(po,"instance");let Yt=po;function yM(){typeof window<"u"&&!window.requestIdleCallback&&(window.requestIdleCallback=function(e,t={}){const s=t.timeout||1,i=performance.now();return window.setTimeout(function(){e({get didTimeout(){return t.timeout?!1:performance.now()-i-1>s},timeRemaining:function(){return Math.max(0,1+(performance.now()-i))}})},1)}),typeof window<"u"&&!window.cancelIdleCallback&&(window.cancelIdleCallback=function(e){clearTimeout(e)})}function Sr(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function wM(){return navigator.userAgent.toLowerCase().includes("android")}function _M(){return navigator.userAgent.toLowerCase().includes("huawei")}function $r(){const e="ontouchstart"in window,t=navigator.maxTouchPoints>0||(navigator.msMaxTouchPoints??0)>0,n=window.matchMedia("(pointer: coarse)").matches;return e||t&&n}function kM(){return`${window.innerWidth}px`}function xS(e){if(!Sv||typeof document>"u"||typeof window>"u")return null;function t(){return!Sv||typeof document>"u"||document.hidden?!1:Sr()?!0:document.hasFocus()}const n=()=>{const s=t();e(s)};return document.addEventListener("visibilitychange",n),Sr()||(window.addEventListener("focus",n),window.addEventListener("blur",n)),()=>{document.removeEventListener("visibilitychange",n),Sr()||(window.removeEventListener("focus",n),window.removeEventListener("blur",n))}}function qr(e,t){return window.getComputedStyle(document.documentElement).getPropertyValue(e)}function SM(){return document}function bw(e,t){let n=e.parentElement;for(;n!==null&&t(n)!==!0;)n=n.parentElement}function CM(e,t,n={}){return{top:e.top<(n.top??0),bottom:e.bottom>
74t.height-(n.bottom??0),left:e.left<(n.left??0),right:e.right>t.width-(n.right??0)}}function TS(e){const t=document.createDocumentFragment();return e.forEach(n=>{t.appendChild(n)}),t}function ur(e){return e.textContent!==null&&e.textContent.replace(j5,"").trim().length>0}function yw(e){return document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(n){return window.getComputedStyle(n).position==="sticky"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}}).nextNode()!=null}function vi(e,t="displayWindow",n={width:720,height:440}){const s=screen.width/2-n.width/2,i=screen.height/2-n.height/2;return t==="displayWindow"?window.open(e,t,`width=${n.width},height=${n.height},left=${s},top=${i},location=no, directories=no,status=no,toolbar=no,menubar=no`):window.open(e,t)}function lu(){const e=window.getSelection();if(e===null)return null;const{focusNode:t,focusOffset:n}=e;if(t===null)return null;const s="innerText"in t?t.innerText:t.textContent??"";return{node:t,nodeText:s,nodeTextBefore:s.substring(0,n),position:n,range:e.getRangeAt(0).cloneRange()}}function al(e,t){const n=window.getSelection();if(n===null)return;const s=new Range;t!==void 0?(s.setStart(e,t),s.setEnd(e,t)):(s.selectNodeContents(e),s.collapse(!1)),n.removeAllRanges(),n.addRange(s)}function EM(e,t=lu()){if(e.parentElement===null)return;const n=new Range;n.selectNode(e.parentElement);const s=Array.from(e.parentElement.childNodes),i=TS(s);Hb(n,i),t!==null&&t.node===e&&al(e,t.position)}function Hb(e,t){e.deleteContents(),e.insertNode(t)}function xM(e,t,{isFromEnd:n=!1,limit:s}){if(e.textContent===null||e.textContent==="")return null;const i=e.textContent.slice(0,s)[n?"lastIndexOf":"indexOf"](t)??-1,o=i+t.length;if(i<0||o<0)return null;const r=new Range;return r.setStart(e,i),r.setEnd(e,o),r}function TM(e){var s;const t=(s=window.getSelection())==null?void 0:s.getRangeAt(0);if(t===void 0)return!1;if(!e.contains(t.startContainer))return console.log("isCaretAtStart: element does not contain range"),!1;if(t.endOffset!==0)return!1;const n=t.cloneRange();return n.selectNodeContents(e),n.setEnd(t.startContainer,t.startOffset),n.toString().length===0}function Uie(e,t,{skipInsertIfPresent:n=!1}={}){let s=lu();const i=document.activeElement===t,o=(s==null?void 0:s.node)!==void 0&&t.contains(s.node),a=[...t.childNodes].findLast(u=>{var d;return u.nodeType===Node.TEXT_NODE&&((d=u.textContent)==null?void 0:d.trim())!==""})??t;if((!i||!o)&&(al(a),s=lu()),s===null)return;if(s.node.nodeType!==Node.TEXT_NODE){const u=document.createTextNode("");if(Hb(s.range,u),al(u),s=lu(),s===null)return}const c=new RegExp(`(^|\\s)${e}$`).test(s.nodeTextBefore)&&n;c||(/\s$/.test(s.nodeTextBefore)||(e=" "+e),s.node.insertData(s.position,e),al(s.node,s.position+e.length)),t.dispatchEvent(new InputEvent("input",{inputType:"insertText",data:c?"":e}))}const AM=new Set(["networkerror","timeouterror"]),PM=["load failed","networkerror when attempting to fetch resource","failed to fetch","all fetch attempts failed","offline","the internet connection appears to be offline","network request failed","a network error occurred","err_connection","err_network","err_internet_disconnected","err_name_not_resolved","err_empty_response","err_timed_out","connection timed out","connection reset","connection refused","signal timed out","the operation timed out","econnrefused","econnreset","etimedout","enotfound","ehostunreach","enetunreach"];function dp(){return typeof navigator<"u"&&!navigator.onLine}function Vv(e,t=[],n=0){if(n>5)return t;if(typeof e=="string")return t.push(e),t;if(!(e instanceof Error)){if(typeof e=="object"&&e!==null&&"message"in e){const s=e.message;typeof s=="string"&&t.push(s)}return t}if(t.push(e.message,e.name),"cause"in e&&e.cause!==void 0&&Vv(e.cause,t,n+1),e instanceof AggregateError)for(const s of e.errors)Vv(s,t,n+1);return t}function AS(e){if(dp())return!0;const t=Vv(e);if(t.length===0)return!1;const n=t.map(s=>s.trim().toLowerCase()).filter(s=>s.length>0);return n.some(s=>AM.has(s))?!0:n.some(s=>PM.some(i=>s.includes(i)))}const PS=yt((e=SM(),t=!1)=>{const n=ce(e),s=P(t),i=A6(n,t);return be(s,o=>{if(n instanceof Document){const r=o?`${window.innerWidth-document.documentElement.clientWidth}px`:"";document.documentElement.style.setProperty(VP,r)}i.value=o},{immediate:!0,flush:"pre"}),et(()=>{s.value=!1}),s},()=>P(!1)),RM=zt(()=>{const e=P(null);function t(s){e.value=s}function n(){const s=e.value;return e.value=null,s}return ui(()=>{e.value=null}),{set:t,get:n}});var cu=(e=>(e.Prev="slide-right",e.Next="slide-left",e))(cu||{});const ud="redirect";function RS(e,t){return e===void 0||t===void 0?!1:e===t?!0:e.component!==t.component?!1:No(e.props,t.props)&&No(e.modal,t.modal)}function IM(e,t={}){const n=[...Object.keys(t),ud,"modal"];return Object.entries(e).reduce((s,[i,o])=>(n.includes(i)||(s[i]=o),s),{})}const MM={shake:[0,-8,8,-6,6,0].map(e=>({transform:`translateX(${e}px)`}))},Wt=zt(()=>{const e=$a([]),t=C(()=>ai(e)),n=C(()=>e[e.length-2]),s=xr(),i=xr(),o=C(()=>t.value!==void 0),r=P(),a=P(),l=De(null),c=De(null);let u;function d(y){if(y!==void 0)return e.find(S=>RS(S,y))}function h(y,S,E){var N;const x={component:y,props:S,modal:E,state:{modalWindowHeight:typeof(E==null?void 0:E.height)=="function"?E==null?void 0:E.height((N=l.value)==null?void 0:N.clientHeight):E==null?void 0:E.height}},M=d(x),I=M!==void 0;v(),q(E)&&(E.closeOnSignal===!0||q(E.onSignal))&&(u=Be(window,"message",V=>{var $,j;(($=V.data)==null?void 0:$.type)==="signalClose"&&(E.closeOnSignal===!0&&p(),(j=E.onSignal)==null||j.call(E,{...V.data.data??{}}))})),I?(r.value=cu.Prev,Y1(M,e)):(e.length!==0&&(r.value=cu.Next),e.push(x))}function p(y){var S;q(y)&&!y.isTrusted||o.value&&((S=a.value)==null?void 0:S.call(a))!==!1&&(a.value=void 0,Jl(e),s.trigger(t.value),v())}function m(y){const S=t.value;if(r.value=cu.Prev,y!==void 0){const x=d(y);x!==void 0?Y1(x,e):(Z5(y,S,e),e.pop())}else e.pop();const E=t.value;i.trigger({from:S,to:E}),e.length===0&&s.trigger(S)}function v(){q(u)&&u()}function g(y){const S=e.length-1;if(S<0)return;const E=e[S];E!==void 0&&(e[S]={...E,modal:{...E.modal,title:y}})}function b(y){l.value=y??null}function w(y){c.value=y??null}function k(y){var S;window.matchMedia("(prefers-reduced-motion: reduce)").matches||(S=l.value)==null||S.animate(MM[y],{duration:400,easing:"ease-in-out"})}return{open:h,close:p,back:m,currentModal:t,prevModal:n,isOpened:o,transitionName:r,confirmClose:a,modalHeaderRef:Ft(c),setTitle:g,setModalWindowRef:b,setModalHeaderRef:w,onModalClose:s.on,offModalClose:s.off,onModalBack:i.on,animate:k}}),fp=zt(()=>{const e=ct(),t=P(!1),n=P(!0),s=C(()=>n.value&&!0),i=C(()=>s.value&&!0);function o(){t.value||(e.beforeResolve(()=>{n.value&&(n.value=!1)}),t.value=!0)}return o(),{isDirectVisit:n,isDirectVisitWithEnabledSSR:s,isDirectClientVisitWithEnabledSSR:i}});async function eo(e){var n;const{isDirectClientVisitWithEnabledSSR:t}=fp();Wg(async()=>{var s;await((s=e.onServer)==null?void 0:s.call(e))}),je(async()=>{var s;await((s=e.onAfterClientRender)==null?void 0:s.call(e))}),t.value&&await((n=e.onHydration)==null?void 0:n.call(e))}class Vb extends ec{constructor(n){super();le(this,"code",sa.NotFound);this.meta.contentId=n}}function Lr(){const e=ct(),t=dn(),{response:n}=Xl();function s(o){let r;o instanceof Vb&&(r=o.meta.contentId),e.replace({name:"Error",params:{pathMatch:t.path.substring(1).split("/")},state:{code:o.code,recommendationsContentId:r},query:t.query,hash:t.hash})}async function i(o){try{await o()}catch(r){if(r instanceof Zl)s(r);else throw r}}return{throwError:s,catchError:i}}function dd(){const{response:e}=Xl(),t=ct();async function n(s){const i=t.currentRoute.value,o=t.resolve({path:s,query:i.query,hash:i.hash});o.path!==i.path&&await t.replace({path:o.path,query:o.query,hash:o.hash,state:{redirect:!0}})}return{redirect:n}}function Or(e,{onError:t}={}){const{alert:n,AlertType:s}=fn(),i=$a([]),o=P(!1),r=P(!1),a=C(()=>o.value||i.length>0),l=P(!1),c=P(!1),u=P(!1);let d;async function h(p=!1){if(!(!p&&o.value)&&!((r.value||c.value)&&!p))try{l.value=!1,c.value=!1,o.value=!0;const m=i.length,v=await e({isFromStart:p});if(v===void 0){o.value=!1;return}const g=Array.isArray(v)?v:v.items;d=Array.isArray(v)?void 0:v.clear,c.value=g.length===0,r.value=!p&&m===g.length,o.value=!1,r.value||Sb(i,g)}catch(m){if(m instanceof DOMException&&m.name==="AbortError")return;m instanceof Error&&(t!==void 0?t(m):n({type:s.Error,text:m.message})),l.value=!0,o.value=!1}}return Ft({items:i,isEnded:r,isLoading:o,isPresent:a,isError:l,isEmpty:c,isLoadedInitial:u,async loadInitial(p=!1){p||(u.value=!1),await h(!0),p||(u.value=!0)},async loadMore(){await h(!1)},reset(){Jl(i),u.value=!1,o.value=!1,r.value=!1,l.value=!1,c.value=!1,d==null||d()}})}function $M(e,{itemHeight:t,gap:n=0,itemsPerRow:s=1,rowsBuffer:i=5,ssrVisibleRowsCount:o=10}){const r=mt("virtualListContainer"),{width:a}=g6(r),l=P(0),c=P(0),u=P(!1),d=P(0),h=C(()=>
74{if(m.value===0)return!1;const R=ce(t);return R!==void 0&&R!==0}),p=C(()=>{var R;return((R=r.value)==null?void 0:R.closest(`[${Kl}]`))??window}),m=C(()=>ce(e).length),v=C(()=>ce(e)[0]),g=C(()=>Math.ceil(m.value/ce(s))),b=C(()=>{if(g.value===0)return;const R=ce(t),G=ce(n);return R===void 0||R===0?void 0:g.value*(R+G)-G}),w=C(()=>{const R=ce(t),G=ce(n),H=ce(i);return R===void 0||R===0?1/0:Math.ceil((l.value>0?l.value:0)/(R+G))+H*2}),k=C(()=>{const R=y.value*ce(s),G=Math.min(m.value,(y.value+w.value)*ce(s)),H=ce(e);return H.slice(R,G).map((se,ue)=>{const de=ce(t);return{data:se,key:"id"in se?se.id:H.indexOf(se),index:R+ue,rect:de!==void 0&&de!==0?{top:M(R+ue),left:I(R+ue),width:S.value,height:de}:void 0}})}),y=C(()=>{const R=ce(t),G=ce(n),H=ce(i);return R===void 0||R===0?0:Math.max(Math.floor(c.value/(R+G))-H,0)}),S=C(()=>{const R=ce(s);if(!(a.value===0||R===1))return Math.round((a.value-(R-1)*ce(n))/R)});let E=!1,x;function M(R){const G=ce(t),H=ce(n);if(G===void 0||G===0)return 0;const se=Math.floor(R/ce(s));return Math.round(se*(G+H))}function I(R){if(S.value===void 0)return 0;const G=R%ce(s);return Math.round(G*(S.value+ce(n)))}function N(){return p.value===null?new DOMRect:p.value===window?new DOMRect(0,0,window.innerWidth,window.innerHeight):p.value.getBoundingClientRect()}function V(){if(!h.value||r.value===null||p.value===null)return;const R=r.value.getBoundingClientRect(),G=N(),H=Math.abs(R.top-G.top-d.value);c.value=Math.max(H-d.value,0),l.value=Math.min(R.bottom,G.bottom)-Math.max(R.top,G.top)}function $(){if(!h.value||r.value===null||p.value===null)return;const R=r.value.getBoundingClientRect(),G=N();d.value=R.top-G.top}function j(){E||(clearTimeout(x),u.value=!0,window.requestAnimationFrame(()=>{V(),E=!1}),E=!0,x=setTimeout(()=>{u.value=!1},100))}function X(){$(),V()}function U(R){let G=0;return p.value===window?(G=p.value.scrollY,p.value.scrollTo(0,R)):(G=p.value.scrollTop,p.value.scrollTop=R),G}return Be(()=>h.value?p.value:void 0,"scroll",()=>{j()}),be(()=>h.value?a.value:void 0,()=>{X()}),be(()=>h.value?v.value:void 0,async()=>{const R=U(0);$(),await un(),U(R)}),je(async()=>{await un(),X()}),{virtualListContainer:r,totalHeight:b,visibleItems:k,itemsCount:m,scrollableParent:p,isScrolling:u,isEnabled:h,refresh:X,scrollParentTo:U}}const LM={class:"confirm"},OM={class:"confirm__actions"},IS=J({__name:"Confirm",props:{text:{},confirmHandler:{type:Function,default:()=>{}},cancelHandler:{type:Function,default:()=>{}},isDanger:{type:Boolean},isNonCancelable:{type:Boolean},confirmText:{default:void 0},cancelText:{default:void 0}},setup(e){const{t}=ft();return(n,s)=>(_(),T("div",LM,[xe(Y(e.text)+" ",1),O("div",OM,[A(f(qe),{size:"l",type:e.isDanger?"negative":"primary",onClick:e.confirmHandler},{default:K(()=>[xe(Y(e.confirmText??f(t)("common.confirm")),1)]),_:1},8,["type","onClick"]),e.isNonCancelable?D("",!0):(_(),L(f(qe),{key:0,size:"l",type:"minimal",onClick:e.cancelHandler},{default:K(()=>[xe(Y(e.cancelText??f(t)("common.cancel")),1)]),_:1},8,["onClick"]))])]))}});function zb(){const{open:e,close:t}=Wt(),{t:n}=ft();async function s(i={}){return await new Promise((o,r)=>{e(IS,{text:i.message??n("common.areYouSure"),confirmHandler:()=>{t(),o()},cancelHandler:()=>{t(),r(new Error("User canceled"))},confirmText:i.confirmText,isDanger:i.isDanger},{title:i.title})})}return{confirm:s}}const Nd=8,ys=yt(Pn(()=>{const{appTabbarHeight:e,appHeaderHeight:t,appContentOffset:n,getAppHeaderOffset:s}=an(),i=De(),o=De(null),r=De(null),a=P(null),l=P(null),c=P(),u=P(null),d=P("left"),h=P("top"),p=P("click"),m=P(),v=P(!1),g=P(!1),b=P(!1),w=P(),k=P(""),y=bt({left:0,top:0,transform:["0px","0px","0px"]}),S=C(()=>({"--popover-left":`${y.left}px`,"--popover-top":`${y.top}px`,"--popover-transform":`translate3d(${y.transform.join(",")})`})),E=C(()=>{var ge;return l.value!==null&&(l.value===r.value||l.value===((ge=r.value)==null?void 0:ge.parentElement))}),x=xr(),M=xr(),{top:I,left:N,width:V,height:$,update:j}=If(r,{windowScroll:!1}),X=C(()=>a.value!==null?{top:a.value.top,left:a.value.left,width:a.value.width,height:a.value.height}:{top:I.value,left:N.value,width:V.value,height:$.value});function U(){y.left=0,y.top=0,y.transform=["0px","0px","0px"]}function R(){return{x:E.value?0:X.value.left,y:E.value?0:X.value.top+window.scrollY}}function G(){if(o.value===null)return;const{x:ge,y:ie}=R(),ae=o.value.getBoundingClientRect(),pe=!yw(o.value);switch(d.value){case"center":y.left=X.value.width*.5+ge,y.transform[0]="-50%";break;case"right":y.left=X.value.width+ge,y.transform[0]="-100%";break;case"left":default:y.left=ge,y.transform[0]="0px"}switch(h.value){case"bottom":y.top=Nd*-1+ie-(pe?0:ae.height),y.transform[1]=pe?"-100%":"0px";break;case"top":default:y.top=X.value.height+Nd+ie,y.transform[1]="0px"}}function H(){if(o.value===null)return;const ge=o.value.getBoundingClientRect(),ie=new DOMRect(0,0,window.innerWidth,window.innerHeight),ae=!yw(o.value),pe=CM(ge,ie,{top:t.value+s(),bottom:e.value}),{y:ve}=R();pe.right&&(y.left=E.value?ie.width-n.value-N.value:ie.width-n.value,y.transform[0]="-100%"),pe.left&&(y.left=E.value?n.value-N.value:n.value,y.transform[0]="0px"),pe.bottom&&(y.top=Nd*-1+ve-(ae?0:ge.height),y.transform[1]=ae?"-100%":"0px"),pe.top&&(y.top=X.value.height+Nd+ve,y.transform[1]="0px")}function se(ge){if(ge===null)return;let ie;return bw(ge,ae=>{const{zIndex:pe}=window.getComputedStyle(ae),ve=parseInt(pe,10);if(!Number.isNaN(ve)&&!ae.hasAttribute(Kl))return ie=ve,!0}),ie}function ue(ge){if(ge===null)return!1;let ie=!1;return bw(ge,ae=>{const{position:pe}=window.getComputedStyle(ae),ve=pe==="fixed"||pe==="sticky";return ie=ve,ve}),ie}function de(ge){return ge===null||!ue(ge)?null:ge.tagName==="A"||ge.tagName==="BUTTON"||ge.tagName==="IMG"?ge.parentElement:ge}async function ke(ge,ie,ae){if(v.value){const pe=r.value,ve="parentElement"in ae.target?ae.target:null;if(pe===ve)return u.value}return(v.value||b.value)&&(Se(),_e(),await un()),await new Promise((pe,ve)=>{i.value={component:ge,props:ie,popover:ae},k.value=(ae==null?void 0:ae.id)??"",c.value=ae.width,d.value=(ae==null?void 0:ae.positionX)??"left",h.value=(ae==null?void 0:ae.positionY)??"top",p.value=(ae==null?void 0:ae.behavior)??"click",r.value="parentElement"in ae.target?ae.target:null,l.value=de(r.value),m.value=se("commonAncestorContainer"in ae.target?ae.target.commonAncestorContainer:r.value),v.value=!0,requestAnimationFrame(()=>{"parentElement"in ae.target?j():a.value=ae.target.getBoundingClientRect(),pe(u.value)}),w.value=be(X,Me=>{if(Object.values(Me).every(Ke=>Ke===0)){x.trigger(void 0);return}G(),requestAnimationFrame(()=>{H(),g.value=!0})})})}function Se(){var ge;v.value&&((ge=w.value)==null||ge.call(w),k.value="",i.value=void 0,v.value=!1,b.value=!0,M.trigger(void 0))}function _e(){var ge;(ge=w.value)==null||ge.call(w),k.value="",i.value=void 0,d.value="left",h.value="top",p.value="click",c.value=void 0,a.value=null,r.value=null,u.value=null,m.value=void 0,v.value=!1,g.value=!1,b.value=!1,U(),un(()=>{!v.value&&!b.value&&(l.value=null)})}function Q(ge){var ie;return((ie=kt(u.value))==null?void 0:ie.contains(ge))??!1}return{content:i,isOpened:v,isPositioned:g,isClosing:b,open:ke,close:Se,finalizeClose:_e,popoverWidth:c,popoverStyle:S,behavior:p,popoverTarget:r,popoverTargetRect:a,popoverRoot:l,popoverId:k,popoverComponent:u,zIndex:m,popover:o,onPopoverTargetUnmount:x.on,offPopoverTargetUnmount:x.off,onClose:M.on,offClose:M.off,isElementBelongToPopover:Q,tryKeepPop
74overInViewport:H}}),()=>({content:P(),isOpened:P(!1),isPositioned:P(!1),isClosing:P(!1),open:async()=>await Promise.resolve(null),close:()=>{},finalizeClose:()=>{},popoverStyle:C(()=>({})),behavior:P("click"),popoverWidth:P(),popoverTarget:P(null),popoverTargetRect:P(null),popoverRoot:P(null),popoverId:P(""),popoverComponent:P(null),zIndex:P(void 0),popover:P(),onPopoverTargetUnmount:()=>({off:()=>{}}),offPopoverTargetUnmount:()=>{},onClose:()=>({off:()=>{}}),offClose:()=>{},isElementBelongToPopover:()=>!1,tryKeepPopoverInViewport:()=>{}}));function BM(e,{authRoute:t,disabled:n,serverRedirect:s}){const i=e.getRoutes().find(u=>typeof t=="string"?u.path===t:"name"in t?u.name===t.name:"path"in t?u.path===t.path:!1);if(i===void 0)throw new Error(`Auth route record not found: ${JSON.stringify(t)}`);const o=u=>{var m;if(n()||!c(u))return;const h=((m=u.redirectedFrom)==null?void 0:m.fullPath)??u.fullPath;return e.resolve({...i,query:h!==void 0?{[ud]:encodeURIComponent(h)}:void 0}).href},r=u=>{if(u.name===i.name)return!0;const d=l(u);return d!==void 0&&d.name===i.name},a=u=>{var d,h;return typeof((d=u.meta)==null?void 0:d.authRequired)=="function"?u.meta.authRequired(u):((h=u.meta)==null?void 0:h.authRequired)===!0};function l(u){const d=e.getRoutes().find(h=>h.redirect!==void 0&&MS(h.redirect,u));return d!==void 0?e.resolve(d):void 0}function c(u){if(r(u))return!1;if(u.redirectedFrom!==void 0)return a(u.redirectedFrom);const d=l(u);return a(d!==void 0?d:u)}return{handleRoute:o}}function DM(e,t){const n=typeof e=="function"?e(t):e,s=typeof n=="string"?Object.fromEntries(new URLSearchParams(n).entries()):n.query??{};return{...t.query,...s}}function MS(e,t){const n=DM(e,t);return Y5(n)?!1:Object.entries(n).every(([s,i])=>t.query[s]===i)}function NM(e){return e.query[ud]!==void 0}function zv(e){return(typeof e=="string"?e:e.source).replaceAll(")","\\)")}function FM(e){return e}const Br=yt(Pn(()=>{const e=dn(),t=P(u()),n=P($e.Unknown),s=P({}),i=P(void 0),o=P({}),r=P(void 0),a=P(void 0),l=P(!0);be(()=>e.fullPath,(h,p)=>{if(history.state.redirect===!0||!l.value&&p!==void 0&&h.split("#")[0]===p.split("#")[0])return;const{referer:m,context:v}=d(e);if(l.value){n.value=m,s.value=v,i.value="route-change",l.value=!1;return}a.value=r.value,t.value=n.value,n.value=m,s.value=v,i.value="route-change",r.value=void 0,o.value={}},{immediate:!0,flush:"pre"});function c(h,p){i.value="manual",h!==void 0&&(r.value=h),p!==void 0&&(o.value=p)}function u(){const h=new URL(window.location.href),p=h.searchParams.get("source"),m=["/","/new","/my","/popular"];return p==="email"?$e.Email:p==="push"?$e.Push:p==="advert-post-after"?$e.AdvertPostAfter:p==="advert-feed-popular"?$e.AdvertFeedPopular:p==="advert-feed-recommendations"?$e.AdvertFeedRecommendations:m.includes(h.pathname)?$e.Direct:$e.External}function d(h){var k,y;const p=((k=h.redirectedFrom)==null?void 0:k.meta)??h.meta,m=(y=h.query)==null?void 0:y.modal;let v=(typeof p.refererId=="function"?p.refererId(h):p.refererId)??$e.Unknown;const g=(typeof p.refererContext=="function"?p.refererContext(h.params):p.refererContext)??{};m!==void 0&&(v=m),(typeof p.authRequired=="function"?p.authRequired(h.redirectedFrom??h):p.authRequired===!0)&&NM(h)&&(v=$e.Auth);const w=Object.assign(g,o.value);return{referer:v,context:w}}return{fromReferer:Ft(t),toReferer:Ft(n),fromFeed:Ft(a),toRefererContext:s,refererChangeReason:i,setLinkReferer:c,getRefererFromRoute:d}}),()=>({fromReferer:Ft(P($e.Unknown)),toReferer:Ft(P($e.Unknown)),fromFeed:Ft(P(void 0)),toRefererContext:P({}),refererChangeReason:P(void 0),setLinkReferer:()=>{},getRefererFromRoute:()=>({referer:$e.Unknown,context:{}})})),$S=Symbol("Injected referer"),LS=Symbol("Injected referer target"),OS=Symbol("Injected referer context");function UM(e){const t=ut($S,void 0),n=ut(LS,void 0),s=ut(OS,void 0);return n===void 0?{referer:void 0,refererContext:void 0}:e===n?{referer:t,refererContext:s}:{referer:void 0,refererContext:void 0}}function HM(e){const{referer:t,target:n,context:s}=e;gt($S,t),gt(LS,n),gt(OS,s)}class VM{constructor(t,n){this.repository=t}trackEvent(t,n){this.repository.sendEvent(t,n)}trackPageHit(t){this.repository.sendPageHit(t??{})}}let ww=!1,Sm=null;const _w=new Set;async function BS(e){var t;if(typeof window.ym!="function"){const n=function(){n.a=n.a??[],n.a.push(arguments)};n.l=Date.now(),window.ym=n}_w.has(e)||((t=window.ym)==null||t.call(window,e,"init",{clickmap:!0,trackLinks:!0,accurateTrackBounce
74:!0,trackHash:!0,ecommerce:"dataLayer",defer:!0}),_w.add(e)),!ww&&Sm===null&&(Sm=op("https://mc.yandex.ru/metrika/tag.js",{retries:6}).then(()=>{ww=!0}).catch(n=>{console.warn("Metrika: failed to load tag.js",n)}).finally(()=>{Sm=null}))}function DS(e){if(!q(e))return;const t=typeof e=="number"?e:Number(e);if(!(!Number.isFinite(t)||t<=0))return t}function zM(e){var o;const t=DS((e==null?void 0:e.metricaId)??"95984797");if(t===void 0)return;BS(t);const n=typeof(e==null?void 0:e.Path)=="string"?e.Path:window.location.pathname+window.location.search+window.location.hash,s=typeof(e==null?void 0:e.FromPath)=="string"?e.FromPath:void 0,i=typeof(e==null?void 0:e.Name)=="string"?e.Name:void 0;(o=window.ym)==null||o.call(window,t,"hit",n,{title:i,params:{FromPath:s}})}function WM(e,t){var r;const n=DS((t==null?void 0:t.metricaId)??"95984797");if(n===void 0)return;BS(n);const{metricaId:s,...i}=t??{},o={[e]:i};(r=window.ym)==null||r.call(window,n,"params",{params:o})}class jM{sendEvent(t,n){WM(t,n)}sendPageHit(t){zM(t)}}function Wv(){const e=pt();return e.isRegistered("AnalyticsService")||e.register("AnalyticsService",()=>{const{eventBus:t}=e.resolve("ModuleInitOptions"),n=new jM;return new VM(n,t)}),e.resolve("AnalyticsService")}const NS=(e,t)=>{const{trackPageHit:n}=Qn();let s=e.name;"id"in e.params&&q(e.params.id)?s=`${s} â ${e.params.id}`:"subsite"in e.params&&q(e.params.subsite)?s=`${s} â ${e.params.subsite}`:"tab"in e.params&&q(e.params.tab)&&(s=`${s} â ${e.params.tab}`),n({Name:s,Path:e.fullPath,FromName:t.name,FromPath:t.fullPath})},Qn=yt(Pn(()=>{const e=P(0);function t(i){e.value=i}function n(i,o){Wv().trackEvent(i,Object.assign({},o,{UserId:e.value}))}function s(i){Wv().trackPageHit(Object.assign({},i,{UserId:e.value}))}return{attachUser:t,trackEvent:n,trackPageHit:s}}),()=>({attachUser:()=>{},trackEvent:()=>{},trackPageHit:()=>{}})),GM=(e,t,n)=>{const s=e.target;if((s==null?void 0:s.tagName)!=="A")return;const i=s;
74if(i.target==="_blank"||i.__vnode!==void 0||i.dataset.routerLink!==void 0)return;const{host:o,pathname:r,search:a,hash:l}=new URL(i.href);if(o!==location.host||e.metaKey||e.ctrlKey)return;const c=t.resolve(r+a+l);c.name!=="Error"&&(e.preventDefault(),n==null||n(c),t.push(c))},Cm=new Map,Wb={mounted(e,t){if(t.value===!1||t.value===void 0)return;const n=s=>{if(t.value!==!1&&t.value!==void 0){const i=Array.isArray(t.value)?t.value[0]:t.value,o=Array.isArray(t.value)?t.value[1]:void 0;GM(s,i,o)}};Cm.set(e,n),e.addEventListener("click",n)},beforeUnmount(e){const t=Cm.get(e);e.removeEventListener("click",t),Cm.delete(e)}};function hp(e){let t;const n=[],s=new Map;function i(d){for(const h of d){const p=n.find(m=>m.el===h.target);p!==void 0&&(p.callback(h.isIntersecting),(e==null?void 0:e.once)===!0&&h.isIntersecting&&r(p.el))}}function o(d,h){const p=c(d),m=a(p);n.push({el:d,callback:h,root:p}),m.observe(d)}function r(d){const h=n.findIndex(p=>p.el===d);h>=0&&(a(n[h].root).unobserve(d),n.splice(h,1)),clearTimeout(t),t=setTimeout(()=>{l()},0)}function a(d){let h=s.get(d);if(h===void 0){const p=d===document.documentElement||d===document.body?null:d;h=new IntersectionObserver(i,{...e,root:p}),s.set(d,h)}return h}function l(){for(const[d,h]of s)d!==null&&!d.isConnected&&(h.disconnect(),s.delete(d))}function c(d){for(;d!=null&&!u(d);)d=d.parentNode;return d}function u(d){return"hasAttribute"in d?d.hasAttribute(Kl):!0}return{observeElement:o,unobserveElement:r}}const{observeElement:qM,unobserveElement:KM}=hp(),FS={mounted(e,t){qM(e,n=>{t.value(n)})},beforeUnmount(e,t){KM(e)}},{observeElement:YM,unobserveElement:XM}=hp({rootMargin:"200% 0px",threshold:0,once:!0}),US={mounted(e,t){YM(e,n=>{n&&t.value()})},beforeUnmount(e,t){XM(e)}},QM=".pswp__caption",jb=Symbol("zoom");var mh=(e=>(e.Open="open",e.Change="change",e.Destroy="destroy",e))(mh||{});const JM={bgOpacity:.75,padding:{top:60,bottom:60,left:0,right:0}};class ZM{constructor(t,n,s){le(this,"zoomDataByMedia",new Map);le(this,"lightbox",null);le(this,"bus",ub(jb));this.groupId=t,this.addMediaItem(n,s)}get mediaItems(){return Array.from(this.zoomDataByMedia.keys())}addMediaItem(t,n){const s=this.getMediaItemClickHandler(t);this.zoomDataByMedia.set(t,{...n,handler:s}),t.addEventListener("click",s)}removeMediaItem(t){const n=this.zoomDataByMedia.get(t);n!==void 0&&(t.removeEventListener("click",n.handler),this.zoomDataByMedia.delete(t))}isEmpty(){return this.zoomDataByMedia.size===0}getMediaItemClickHandler(t){return n=>{this.bus.emit("open",this.groupId);const s=this.getDataSource(t),i=this.getMediaItemIndex(t);this.openZoom(t,s,i)}}callMediaClickHandler(t){var n;(n=this.zoomDataByMedia.get(t))==null||n.handler()}getMediaItemIndex(t){return this.mediaItems.indexOf(t)}getMediaItemByIndex(t){return this.mediaItems[t]}getDataSource(t){const n=[];for(const[s,i]of this.zoomDataByMedia){const o=i.media.width>0?i.media.width:t.clientWidth,r=i.media.height>0?i.media.height:t.clientHeight,a={width:o,height:r,thumbCropped:i.cropped};"bitrate"in i.media?(a.msrc="poster"in s&&s.poster.length>0?s.poster:cd({uuid:i.media.uuid,width:o}),a.videoSrc=pS(i.media.uuid),a.type="video"):(a.msrc=s.currentSrc,a.src=hS(i.media.uuid),a.alt=i.caption??""),n.push(a)}return n}onUiRegister(){var n,s,i;const t=document.createElement("div");t.className="pswp__caption-text",(i=(s=(n=this.lightbox)==null?void 0:n.pswp)==null?void 0:s.ui)==null||i.registerElement({name:"caption",order:9,isButton:!1,appendTo:"root",html:"",onInit:o=>{var r,a;(a=(r=this.lightbox)==null?void 0:r.pswp)==null||a.on("change",()=>{var l,c,u;if((l=t.parentElement)==null||l.removeChild(t),((u=(c=this.lightbox)==null?void 0:c.pswp)==null?void 0:u.currIndex)!==void 0){const d=this.getMediaItemByIndex(this.lightbox.pswp.currIndex),h=this.zoomDataByMedia.get(d);h!==void 0&&this.bus.emit("change",h.media.uuid),(h==null?void 0:h.caption)!==void 0&&h.caption!==""&&(t.innerHTML=h.caption,o.appendChild(t))}})}})}async openZoom(t,n,s=0){var a;const i=(await Ce(async()=>{const{default:l}=await import("./photoswipe-BsE0HlsX.js").then(c=>c.p);return{default:l}},__vite__mapDeps([0,1]))).default,o=(await Ce(async()=>{const{default:l}=await import("./photoswipe-BsE0HlsX.js").then(c=>c.a);return{default:l}},__vite__mapDeps([0,1]))).default;await Ce(()=>import("./photoswipe-BsE0HlsX.js").then(l=>l.b),__vite__mapDeps([0,1])),await Ce(()=>import("./photoswipe-BsE0HlsX.js").then(l=>l.c),__vite__mapDeps([0,1]));const r=(a=this.zoomDataByMedia.get(t))==null?void 0:a.showHideAnimationType;this.lightbox=new i({dataSource:n,pswpModule:async()=>await Ce(()=>import("./photoswipe-BsE0HlsX.js").then(l=>l.d),__vite__mapDeps([0,1])),...JM,...r!==void 0?{showHideAnimationType:r,...r==="fade"?{showAnimationDuration:150,hideAnimationDuration:150}:{}}:{}}),o(this.lightbox,{videoAttributes:{playsinline:"true",preload:"auto",loop:"",muted:""}}),this.lightbox.on("uiRegister",()=>{this.onUiRegister()}),this.lightbox.on("destroy",()=>{this.lightbox=null,this.bus.emit("destroy")}),this.lightbox.addFilter("thumbEl",(l,c,u)=>this.getMediaItemByIndex(u)),this.lightbox.init(),this.lightbox.loadAndOpen(s,n)}destroy(){var t,n;(n=(t=this.lightbox)==null?void 0:t.pswp)==null||n.destroy();for(const[s,i]of this.zoomDataByMedia)s.removeEventListener("click",i.handler),this.zoomDataByMedia.delete(s)}}class e${constructor(){le(this,"zoomInstancesByGroupId",new Map)}attach(t,n,s){q(s)||(s=Vs());const i=this.zoomInstancesByGroupId.get(s);i===void 0?this.zoomInstancesByGroupId.set(s,new ZM(s,t,n)):i.addMediaItem(t,n),t.__mediaZoomGroupId=s}detach(t){const n=t.__mediaZoomGroupId;if(n===void 0)return;const s=this.zoomInstancesByGroupId.get(n);s!=null&&(s.removeMediaItem(t),s.isEmpty()&&(s.destroy(),this.zoomInstancesByGroupId.delete(n))),t.__mediaZoomGroupId=void 0}call(t){const n=t.__mediaZoomGroupId;if(n===void 0)return;const s=this.zoomInstancesByGroupId.get(n);s==null||s.callMediaClickHandler(t)}callChild(t){const n=(t==null?void 0:t.querySelector("img, video"))??void 0;n!==void 0&&this.call(n)}}const Du=new e$,Gb={mounted(e,t){Du.attach(e,t.value,t.arg)},beforeUnmount(e){Du.detach(e)}};function Em(e,t){const{left:n,width:s}=t.getBoundingClientRect();let i=0;e instanceof MouseEvent?i=e.clientX:e.touches.length>0?i=e.touches[0].clientX:e.changedTouches.length>0&&(i=e.changedTouches[0].clientX);const r=(i-n)/s;return Math.max(0,Math.min(1,r))}function t$(e,t){const n={el:e,isDragging:!1,isTouch:$r(),handlers:t,onPointerDown:s=>{s.preventDefault(),n.isDragging=!0,n.handlers.onDragStart(),n.handlers.onChange(Em(s,n.el)),n.startDrag()},onPointerMove:s=>{n.isDragging&&(s.preventDefault(),n.handlers.onChange(Em(s,n.el)))},onPointerUp:s=>
74{s.preventDefault(),n.isDragging=!1,n.stopDrag(),n.handlers.onDragEnd(),n.handlers.onChange(Em(s,n.el))},init(){n.isTouch?e.addEventListener("touchstart",n.onPointerDown):e.addEventListener("mousedown",n.onPointerDown)},startDrag:()=>{n.isTouch?(document.addEventListener("touchmove",n.onPointerMove),document.addEventListener("touchend",n.onPointerUp)):(document.addEventListener("mousemove",n.onPointerMove),document.addEventListener("mouseup",n.onPointerUp))},stopDrag:()=>{n.isTouch?(document.removeEventListener("touchmove",n.onPointerMove),document.removeEventListener("touchend",n.onPointerUp)):(document.removeEventListener("mousemove",n.onPointerMove),document.removeEventListener("mouseup",n.onPointerUp))},destroy:()=>{n.stopDrag(),n.isTouch?e.removeEventListener("touchstart",n.onPointerDown):e.removeEventListener("mousedown",n.onPointerDown)}};return n}const Fd=new Map,n$={mounted(e,t){const n=t$(e,t.value);Fd.set(e,n),n.init()},updated(e,t){const n=Fd.get(e);n!==void 0&&(n.handlers=t.value)},beforeUnmount(e){const t=Fd.get(e);t!==void 0&&(t.destroy(),Fd.delete(e))}},s$=250,Ud=new WeakMap,kw=e=>Array.isArray(e)?{handler:e[0],delay:e[1]}:{handler:e,delay:s$},i$={mounted(e,t){if($r())return;const{handler:n,delay:s}=kw(t.value),i={handler:n,delay:s,onMouseEnter:o=>{clearTimeout(i.timerId),i.timerId=setTimeout(()=>{var r;(r=i.handler)==null||r.call(i,o)},i.delay)},onMouseLeave:()=>{clearTimeout(i.timerId),i.timerId=void 0}};Ud.set(e,i),e.addEventListener("mouseenter",i.onMouseEnter),e.addEventListener("mouseleave",i.onMouseLeave)},updated(e,t){const n=Ud.get(e);if(n===void 0)return;const{handler:s,delay:i}=kw(t.value);n.handler=s,n.delay=i},unmounted(e){const t=Ud.get(e);t!==void 0&&(clearTimeout(t.timerId),e.removeEventListener("mouseenter",t.onMouseEnter),e.removeEventListener("mouseleave",t.onMouseLeave),Ud.delete(e))}};function Sw(e,t,n){const s=e.createShader(t);if(s==null)throw new Error("Could not create shader");if(e.shaderSource(s,n),e.compileShader(s),!q(e.getShaderParameter(s,e.COMPILE_STATUS))){const i=e.getShaderInfoLog(s);throw e.deleteShader(s),new Error(`Could not compile shader: 75`+(i??"unknown error"))}return s}function o$(e,t,n){const s=e.createProgram();if(s==null)throw new Error("Could not create program");if(e.attachShader(s,t),e.attachShader(s,n),e.linkProgram(s),!q(e.getProgramParameter(s,e.LINK_STATUS))){const i=e.getProgramInfoLog(s);throw e.deleteProgram(s),new Error(`Could not link program: 76`+(i??"unknown error"))}return s}function r$(e,t,n){const s=Sw(e,e.VERTEX_SHADER,t),i=Sw(e,e.FRAGMENT_SHADER,n),o=o$(e,s,i);return e.useProgram(o),o}const a$=`<svg width="36" height="49" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M19.72 4.123c.11-1.237-.23-2.302-.932-3.055-.695-.745-1.665-1.099-2.644-1.066C14.14.07 12.232 1.69 11.758 4.58c-.76 4.634-.581 12.421.178 20.094a10.56 10.56 0 00-2.7-1.338c-1.673-.561-3.858-.835-5.67-.489-.91.174-1.813.521-2.495 1.157C.357 24.67-.036 25.586.003 26.7c.029.844.583 1.398 1.08 1.733.501.338 1.135.588 1.732.79.384.13.81.259 1.215.381l.004.002.007.002.623.19c.603.19 1.106.368 1.48.562.618.32 1.248.931 1.912 1.8.659.862 1.287 1.888 1.94 2.965l.08.132v.001c.616 1.017 1.257 2.075 1.931 2.978.445.597.936 1.171 1.484 1.638a.996.996 0 00-.089.412v5.391c0 .95.673 1.792 1.642 1.956 4.742.805 10.791.83 14.354.029.926-.209 1.504-1.037 1.504-1.91v-5.37-.023c.288-.175.554-.389.757-.654.484-.633.99-1.746 1.455-2.991.479-1.282.957-2.818 1.36-4.38.402-1.562.734-3.169.915-4.591.176-1.383.228-2.724-.023-3.678-.18-.69-.644-1.252-1.16-1.7-.525-.455-1.186-.862-1.903-1.225-1.436-.729-3.24-1.355-5.001-1.87-2.848-.83-5.697-1.4-6.959-1.634-.342-1.792-1.195-7.144-.624-13.513zm9.182 36.988c-.18.043-.364.084-.552.122-1.405.284-3.127.441-4.87.484-1.747.043-3.548-.028-5.117-.213-1.085-.128-2.12-.316-2.96-.585v4.747c4.538.767 10.258.771 13.5.057v-4.612zM13.732 4.904c.35-2.14 1.61-2.874 2.48-2.903.457-.015.85.148 1.113.43.256.275.47.75.402 1.513-.692 7.714.622 13.981.782 14.71a1.087 1.087 0 00.879.842c.483.083 3.93.696 7.353 1.695 1.716.5 3.383 1.086 4.657 1.732.638.324 1.142.645 1.498.953.365.317.499.555.536.697.145.553.145 1.56-.027 2.917-.167 1.317-.48 2.839-.868 4.344a42.804 42.804 0 01-1.297 4.18c-.464 1.243-.884 2.103-1.17 2.476-.032.042-.183.18
76-.59.35-.384.158-.898.306-1.526.433-1.255.253-2.853.404-4.523.445-1.667.04-3.372-.028-4.834-.2-1.499-.177-2.623-.45-3.208-.752-.552-.286-1.137-.864-1.779-1.725-.614-.825-1.21-1.809-1.845-2.855l-.002-.003-.057-.095c-.643-1.061-1.326-2.181-2.06-3.142-.73-.953-1.575-1.84-2.582-2.362-.542-.28-1.19-.502-1.801-.694-.24-.075-.472-.145-.697-.213l-.006-.002a33.796 33.796 0 01-1.103-.346c-.568-.193-.988-.373-1.256-.554a.79.79 0 01-.2-.172c-.013-.543.165-.885.435-1.137.308-.287.809-.521 1.505-.654 1.4-.268 3.231-.059 4.659.42 1.55.52 2.508 1.258 3.067 1.805.28.274.468.508.59.664l.016.021c.043.056.13.17.201.241.023.023.096.097.204.164l.003.001c.05.032.485.301.994.038.482-.25.532-.73.538-.784v-.003c.014-.12.003-.22-.001-.253-.99-8.455-1.282-17.335-.48-22.222zM1.991 26.586l.004.01-.005-.01z" fill="#fff"></path></svg> 77`,l$=`<svg width="60" height="60" version="1.1" viewBox="0 0 20 20" x="0px" y="0px"><path d="M5 17.066V2.934a.5.5 0 01.777-.416L17 10 5.777 17.482A.5.5 0 015 17.066z" fill="#fff"></path></svg> 78`,c$='<svg width="64" height="40" viewBox="0 0 64 40" xmlns="http://www.w3.org/2000/svg"><rect width="64" height="40" rx="4" fill="#0EAFEB"/><path d="M25 28V12L41 20" fill="white"/></svg>',u$=`<svg xmlns="http://www.w3.org/2000/svg" width="38" height="33" viewBox="0 0 24 24"><path fill="#fff" d="M8.133 5.105 18.63 11.35a.75.75 0 0 1 0 1.289L8.135 18.894A.75.75 0 0 1 7 18.25V5.75a.75.75 0 0 1 1.133-.645z"/></svg> 79`,d$=`<svg version="1.1" viewBox="0 0 68 48" width="68" height="48"><path d="M66.52,7.74c-0.78-2.93-2.49-5.41-5.42-6.19C55.79,.13,34,0,34,0S12.21,.13,6.9,1.55 C3.97,2.33,2.27,4.81,1.48,7.74C0.06,13.05,0,24,0,24s0.06,10.95,1.48,16.26c0.78,2.93,2.49,5.41,5.42,6.19 C12.21,47.87,34,48,34,48s21.79-0.13,27.1-1.55c2.93-0.78,4.64-3.26,5.42-6.19C67.94,34.95,68,24,68,24S67.94,13.05,66.52,7.74z" fill="#f00"></path><path d="M 45,24 27,14 27,34" fill="#fff"></path></svg> 80`;function Cw(e){return Array.isArray(e)?e[0]:e}function Ew(e){return Array.isArray(e)?e[1]:e}function Hd(e,t="auto"){return e===0?t:`${e}px`}function f$(e){return"color"in e&&e.color.length>0?e.color:"thumbnail"in e&&e.thumbnail.data.color.length>0?e.thumbnail.data.color:"fff"}function h$(e){var t;return!!e.mozHasAudio||!!e.webkitAudioDecodedByteCount||!!((t=e.audioTracks)!=null&&t.length)}function p$({data:e,size:t=0,maxSize:n=0,cropped:s=!1,disablePreview:i=!1,backgroundColor:o="fff"}){const r={},a=Cw(t),l=Ew(t),c=e.width>0?e.width:a,u=e.height>0?e.height:l,d=Cw(n),h=Ew(n);let p=1;if(a>0&&l===0){const b=a/c*u;p=a/b}else l>0&&a===0?p=l/u*c/l:c===0&&u===0?p=1:p=c/u;r.aspectRatio=p,a>0&&!s&&(r.width=Hd(a)),l>0&&!s&&(r.height=Hd(l));const m=c>d?d:c,v=u>h?h:u,g=m>0?Math.floor(Math.min(m,v*p)):m;return!s&&a===0&&g>0?(r.width=Hd(g),r.maxWidth="100%"):r.maxWidth=Hd(g,"none"),i!==void 0&&o.length>0&&o!=="transparent"&&(r["--background-color"]=`#${o}`),r}function m$({data:e},t,n){if(t.src.length>0)return;t==null||t.addEventListener("loadeddata",()=>{requestAnimationFrame(()=>{var i;(i=n==null?void 0:n.onLoadedData)==null||i.call(n)})},{once:!0});const s="#t=0.1";"external_service"in e&&e.external_service.mp4_url!==void 0?t.src=e.external_service.mp4_url+s:t.src=pS(e.uuid)+s}function v$(e){const t=Object.assign({"./images/play/coub.svg":a$,"./images/play/twitch.svg":l$,"./images/play/vimeo.svg":c$,"./images/play/vk.svg":u$,"./images/play/youtube.svg":d$});for(const n in t){const s=n.match(/\/([a-z]+).svg$/);if(s!==null&&e.includes(s[1]))return t[n]}return""}function g$(e){const t=[];for(let n=0;n<e.length;n+=1)t.push([e.start(n),e.end(n)]);return t}const{observeElement:b$,unobserveElement:y$}=hp({once:!0}),{trackEvent:HS}=Qn();function VS(e){const t=e.match(/.+\sâ\s(.+)$/);if(t===null)return[];const[,n]=t;return/\[.+\]/.test(n)?n.slice(1,-1).split(", "):[n]}function w$(e){const t=e.match(/^(.+)\sâ\s.+$/);if(t===null)return"";const[,n]=t;return n}function zS(e){let t,n;return e.value===void 0?[void 0,void 0]:(Array.isArray(e.value)?[t,n]=e.value:t=e.value,[t,n])}const jv={save(e,t,n){e.dataset.gtmClick=JSON.stringify(q(n)?[t,n]:[t])},isElementContainsGtmTag(e){return"dataset"in e&&"gtmClick"in e.dataset},get(e){return JSON.parse(e.dataset.gtmClick)}};function _$(e,t){const n=`${e} â Click`;HS(n,t)}function k$(e){if(jv.isElementContainsGtmTag(e)){const[t,n]=jv.get(e);_$(t,n)}}function S$(e){const t=e.target;let n;
80for(t.nodeType!==t.ELEMENT_NODE?n=t.parentElement:n=t;n!==null;)k$(n),n=n.parentElement}document.addEventListener("click",S$,{passive:!0});function xw(e,t){const[n,s]=zS(t);if(n===void 0)return;const i=VS(n),o=w$(n);i.includes("Show")&&b$(e,r=>{r&&HS(`${o} â Show`,s)}),i.includes("Click")&&jv.save(e,o,s)}function Tw(e,t){const[n]=zS(t);if(n===void 0)return;VS(n).includes("Show")&&y$(e)}function Aw(e,t){return typeof e=="object"&&typeof t=="object"?JSON.stringify(e)===JSON.stringify(t):e===t}const vh={mounted(e,t){xw(e,t)},updated(e,t){Aw(t.value,t.oldValue)||xw(e,t)},beforeUnmount(e,t){Tw(e,t)},beforeUpdate(e,t){Aw(t.value,t.oldValue)||Tw(e,t)}},C$=Object.freeze(Object.defineProperty({__proto__:null,GtmTags:vh,resolveAnalyticsService:Wv,routerAfterEach:NS,useAnalytics:Qn},Symbol.toStringTag,{value:"Module"})),WS={};function E$(e,t){WS[e]=t}function x$(e){return WS[e]}function T$(e){return Object.values(Dl).includes(e)}const xm=yt(zt(()=>{if($r())return;const{open:e,isElementBelongToPopover:t}=ys(),n=ct(),{trackEvent:s}=Qn(),{isOpened:i}=Wt(),o=500;let r;async function a(l,{target:c,pathname:u}){const d=x$(l);if(d===void 0)return;const h=n.resolve(u);if(h.name!==d.routeName)return;const p=h.params;if(Object.entries(d.routeParamsValidation).some(([g,b])=>!b(p[g])))return;const v=await d.getComponent();await e(v,d.getComponentProps(p),{target:c,behavior:"hover",width:288}),s(`${d.routeName} Details Popup â Show`,{Source:c.getAttribute(Af)})}Be(document,"mouseover",l=>{r!==void 0&&clearTimeout(r);const c=l.target;if(c===null||c.tagName!=="A"||!c.hasAttribute(xu)||t(c)||i.value)return;const{pathname:u}=new URL(c.href),d=c.getAttribute(xu);typeof d!="string"||!T$(d)||(r=setTimeout(()=>{a(d,{target:c,pathname:u})},o))})}));function jS(){function e(t,n,s,i=!1){const o=s===void 0?"":s,r=n.replace(new RegExp(`^${o}`),""),a=[t.path,t.alias].filter(c=>c!==void 0);return i?a.some(c=>c===r):a.some(c=>["/",""].includes(c)?["/",""].includes(r):r===c||r.startsWith(`${c}/`))}return{isActive:e}}function A$(e,t,n){const{scrollToElement:s}=qb(),i=C(()=>{var u;return((u=t==null?void 0:t.hash)==null?void 0:u.slice(1))??""}),o=C(()=>{if(i.value.length!==0)return e.value.find(u=>u.anchor===i.value)});let r,a;const l=()=>{r===void 0&&(r=be(o,async()=>{const u=e.value.find(d=>d.anchor===i.value);(u==null?void 0:u.element)!==void 0&&s(u.element)},{immediate:!0,flush:"post"}))},c=()=>{r!==void 0&&(r(),r=void 0)};n===void 0?l():a=be(n,u=>{u?l():c()},{immediate:!0}),et(()=>{c(),a!==void 0&&(a(),a=void 0)})}const qb=yt(()=>{const{appHeaderHeight:e}=an();function t(n,s=!1,i=0){const o=ce(n);o==null||!("getBoundingClientRect"in o)||requestAnimationFrame(()=>{const{top:r}=o.getBoundingClientRect();window.scrollTo({top:r+window.scrollY-e.value-i,behavior:s?"smooth":"auto"})})}return{scrollToElement:t}},()=>({scrollToElement:()=>{}}));function Pw(e,t){return e<=0||t<=0?0:(1-1/(e*.48/t+1))*t}function Rw(e){return 1-(1-e)**3}const P$=yt((e,t=!0,n={})=>{const u=P(!1),d=P(!1),h=P(!1),p=P(!1),m=P(!1);let v=0,g=0,b=null,w=0,k=0,y=0,S=0,E=0,x=0;function M(_e){return Math.max(0,_e.scrollWidth-_e.clientWidth)}function I(_e){return _e.clientWidth*.045}function N(_e,Q){const ge=Math.abs(Q)<.1?0:Q;if(ge===S)return;S=ge;const ie=S===0?"":`translate3d(${S}px, 0, 0)`;for(const ae of _e.children)ae instanceof HTMLElement&&(ae.style.transform=ie)}function V(_e){if(S=0,_e!=null)for(const Q of _e.children)Q instanceof HTMLElement&&(Q.style.transform="")}function $(){E!==0&&(cancelAnimationFrame(E),E=0)}function j(_e){const Q=S;if(Math.abs(Q)<.1){V(_e),d.value=!1;return}$(),d.value=!0;const ge=performance.now(),ie=ae=>{const pe=Math.min(1,(ae-ge)/380);if(N(_e,Q*(1-Rw(pe))),pe<1){E=requestAnimationFrame(ie);return}V(_e),E=0,d.value=!1};E=requestAnimationFrame(ie)}function X(_e,Q){h.value=_e<=1,p.value=_e>=Q-1}function U(){h.value=!1,p.value=!1}function R(_e,Q){$(),d.value=!0;const ge=M(_e),ie=Math.max(0,Math.min(ge,Q)),ae=_e.scrollLeft,pe=ie-ae;if(X(ie,ge),Math.abs(pe)<.5){_e.scrollLeft=ie,d.value=!1,U();return}const ve=performance.now(),Me=Ke=>{const B=Math.min(1,(Ke-ve)/360);
80if(_e.scrollLeft=ae+pe*Rw(B),B<1){E=requestAnimationFrame(Me);return}_e.scrollLeft=ie,E=0,d.value=!1,U()};E=requestAnimationFrame(Me)}function G(_e,Q){const ge=Number.parseFloat(getComputedStyle(_e).paddingLeft)||0,ie=_e.getBoundingClientRect().left+ge,ae=Q.getBoundingClientRect().left-ie;R(_e,_e.scrollLeft+ae)}function H(_e){const Q=Array.from(_e.children);if(Q.length===0){d.value=!1;return}const ge=Number.parseFloat(getComputedStyle(_e).paddingLeft)||0,ie=_e.getBoundingClientRect().left+ge;let ae=0,pe=1/0;for(let Me=0;Me<Q.length;Me++){const Ke=Math.abs(Q[Me].getBoundingClientRect().left-ie);Ke<pe&&(pe=Ke,ae=Me)}let ve=ae;Math.abs(y)>=.45&&(y<0&&ae<Q.length-1?ve=ae+1:y>0&&ae>0&&(ve=ae-1)),G(_e,Q[ve])}function se(_e){if($(),d.value=!0,n.snap===!0){H(_e);return}if(Math.abs(y)<.04){j(_e);return}let Q=performance.now();const ge=ie=>{const ae=Math.min(32,ie-Q);Q=ie;const pe=M(_e),ve=_e.scrollLeft-y*ae;if(ve<0||ve>pe){_e.scrollLeft=Math.max(0,Math.min(pe,ve)),y=0,E=0,d.value=!1;return}if(_e.scrollLeft=ve,y*=.95,Math.abs(y)<.04){y=0,E=0,d.value=!1;return}E=requestAnimationFrame(ge)};E=requestAnimationFrame(ge)}function ue(_e){const Q=kt(e);if(b!==_e.pointerId||Q==null)return;const ge=_e.clientX-v;if(!u.value&&Math.abs(ge)>3&&(u.value=!0,m.value=!0),!u.value)return;const ie=performance.now(),ae=ie-k;if(ae>0){const Me=(_e.clientX-w)/ae;y=y*.7+Me*.3}w=_e.clientX,k=ie;const pe=x,ve=g-ge;if(ve<0){Q.scrollLeft!==0&&(Q.scrollLeft=0),N(Q,Math.min(I(Q),Pw(-ve,Q.clientWidth)));return}if(ve>pe){Q.scrollLeft!==pe&&(Q.scrollLeft=pe),N(Q,-Math.min(I(Q),Pw(ve-pe,Q.clientWidth)));return}Q.scrollLeft!==ve&&(Q.scrollLeft=ve),N(Q,0)}function de(){window.removeEventListener("pointermove",ue),window.removeEventListener("pointerup",ke),window.removeEventListener("pointercancel",ke)}function ke(_e){if(b!==_e.pointerId)return;const Q=kt(e),ge=u.value;if(performance.now()-k>64&&(y=0),b=null,u.value=!1,de(),!(!ge||Q==null)){if(S!==0){const ie=S>0&&y>0,ae=S<0&&y<0;(ie||ae)&&(y=0),j(Q);return}se(Q)}}Be(e,"pointerdown",_e=>{const Q=kt(e);!ce(t)||_e.pointerType!=="mouse"||_e.button!==0||Q==null||($(),V(Q),de(),d.value=!1,b=_e.pointerId,m.value=!1,u.value=!1,y=0,v=_e.clientX,w=_e.clientX,k=performance.now(),g=Q.scrollLeft,x=M(Q),window.addEventListener("pointermove",ue,{passive:!0}),window.addEventListener("pointerup",ke),window.addEventListener("pointercancel",ke))}),Be(e,"click",_e=>{m.value&&(_e.preventDefault(),_e.stopPropagation(),m.value=!1)},{capture:!0}),Be(e,"dragstart",_e=>{_e.preventDefault()}),be(()=>ce(t),_e=>{if(!_e){const Q=kt(e);b=null,u.value=!1,m.value=!1,$(),V(Q),de(),d.value=!1}}),et(()=>{const _e=kt(e);$(),V(_e),de(),d.value=!1});function Se(){const _e=kt(e);b=null,u.value=!1,m.value=!1,y=0,$(),V(_e),de(),d.value=!1,U()}return{isDragging:u,isAnimating:d,isTargetingStart:h,isTargetingEnd:p,stop:Se}},(e,t,n)=>
80({isDragging:P(!1),isAnimating:P(!1),isTargetingStart:P(!1),isTargetingEnd:P(!1),stop:()=>{}}));function Iw(){return{isScrollable:P(!1),isAnimating:P(!1),isPrevEnabled:C(()=>!1),isNextEnabled:C(()=>!1),prev:()=>{},next:()=>{},stop:()=>{}}}const R$=yt(e=>{if(!window.matchMedia("(hover: hover)").matches)return Iw();const t=160,n=1.5,s=P(!1),i=P(!1),o=P(!1);let r=null,a=0,l=0;const{arrivedState:c}=k6(e),u=P(!1);function d(){const x=kt(e);if(x==null){u.value=!1;return}u.value=x.scrollWidth>x.clientWidth}const h=js(d,150);Wo(e,()=>{h()});const p=C(()=>u.value&&!c.left&&!s.value),m=C(()=>u.value&&!c.right&&!i.value);function v(){g(),b()}function g(){a!==0&&(cancelAnimationFrame(a),a=0),o.value=!1}function b(){r=null,s.value=!1,i.value=!1}function w(x,M,I){const N=x.getBoundingClientRect().left+l,V=M[I].getBoundingClientRect().left-N,$=Math.max(0,x.scrollWidth-x.clientWidth);return Math.max(0,Math.min($,x.scrollLeft+V))}function k(x){if(a!==0)return;o.value=!0;let M=performance.now();const I=N=>{if(r==null){a=0,o.value=!1;return}const V=Array.from(x.children);if(V[r]==null){a=0,o.value=!1,b();return}const $=w(x,V,r),j=$-x.scrollLeft,X=Math.min(32,N-M);if(M=N,Math.abs(j)<n){x.scrollLeft=$,a=0,o.value=!1,b();return}x.scrollLeft=x.scrollLeft+j*(1-Math.exp(-X/t)),a=requestAnimationFrame(I)};a=requestAnimationFrame(I)}function y(x){const M=kt(e);if(M==null)return;const I=Array.from(M.children);if(I.length===0)return;const N=Number.parseFloat(getComputedStyle(M).paddingLeft);l=Number.isNaN(N)?0:N;const V=I.map((U,R)=>w(M,I,R)),$=Math.max(0,M.scrollWidth-M.clientWidth),j=r!=null?V[r]:M.scrollLeft;let X=-1;x===1?X=V.findIndex(U=>U>j+n):X=V.findLastIndex(U=>U<j-n),X!==-1&&(s.value=V[X]<=n,i.value=V[X]>=$-n,r=X,k(M))}function S(){y(-1)}function E(){y(1)}return Be(e,"pointerdown",v),Be(e,"wheel",v,{passive:!0}),Be(e,"touchstart",v,{passive:!0}),et(()=>{g()}),{isScrollable:u,isAnimating:o,isPrevEnabled:p,isNextEnabled:m,prev:S,next:E,stop:v}},()=>Iw()),I$={b:(e,t)=>e.top.value>t.bottom.value&&e.left.value<=t.left.value&&e.right.value>=t.right.value,t:(e,t)=>e.bottom.value<t.top.value&&e.left.value<=t.left.value&&e.right.value>=t.right.value,r:(e,t)=>e.left.value>=t.right.value&&e.top.value<=t.top.value&&e.bottom.value>=t.bottom.value,l:(e,t)=>e.right.value<t.left.value&&e.top.value<=t.top.value&&e.bottom.value>=t.bottom.value,br:(e,t)=>e.top.value>t.top.value&&e.left.value>t.right.value,tr:(e,t)=>e.bottom.value<t.bottom.value&&e.left.value>t.left.value,bl:(e,t)=>e.top.value>t.top.value&&e.right.value<t.left.value,tl:(e,t)=>e.bottom.value<t.bottom.value&&e.right.value<t.left.value},M$={b:{from:[[0,0],[0,1]],to:[[0,1],[1,1],[1,0],[0,0]]},t:{from:[[1,1],[1,0]],to:[[1,0],[0,0],[0,1],[1,1]]},r:{from:[[1,0],[0,0]],to:[[0,0],[0,1],[1,1],[1,0]]},l:{from:[[0,1],[1,1]],to:[[1,1],[1,0],[0,0],[0,1]]},br:{from:[[1,0],[0,0],[0,1]],to:[[0,1],[1,1],[1,0]]},tr:{from:[[1,1],[1,0],[0,0]],to:[[0,0],[0,1],[1,1]]},bl:{from:[[0,0],[0,1],[1,1]],to:[[1,1],[1,0],[0,0]]},tl:{from:[[0,1],[1,1],[1,0]],to:[[1,0],[0,0],[0,1]]}};function $$({to:e,from:t}){const n=C(()=>kt(e)),s=C(()=>kt(t)),i=If(e),o=If(t),r=xr(),a=P(),l=C(()=>q(n.value)&&q(s.value)?window:void 0);Be(l,"mousemove",v,{passive:!0}),Xh(e,()=>{i.update()},{attributes:!0,attributeFilter:["style"]});const c=r1(()=>[[[i.left.value,i.top.value],[i.right.value,i.top.value]],[[i.left.value,i.bottom.value],[i.right.value,i.bottom.value]]]),u=r1(()=>[[[o.left.value,o.top.value],[o.right.value,o.top.value]],[[o.left.value,o.bottom.value],[o.right.value,o.bottom.value]]]),d=C(()=>{const g=Object.entries(I$);let b=null;for(let w=0;w<g.length;w+=1){const[k,y]=g[w];if(y(i,o)){b=k;break}}return b}),h=C(()=>{if(d.value===null)return null;const g=M$[d.value];return[...g.from.reduce(p(u),[]),...g.to.reduce(p(c),[])]});function p(g){return(b,w)=>(b.push(g[w[0]][w[1]]),b)}function m(g){var k,y;const b=((k=kt(t))==null?void 0:k.contains(g))??!1,w=((y=kt(e))==null?void 0:y.contains(g))??!1;return b||w}function v(g){if(h.value===null)return;if(!F8([g.clientX,g.clientY],h.value)){r.trigger(g);return}clearTimeout(a.value),a.value=setTimeout(()=>{m(g.target)||r.trigger(g)},300)}return{onAimMiss:r.on,cancelAimCheck:()=>{clearTimeout(a.value)},polygonVertices:h}}const pp=yt(Pn(()=>{const{appHeaderHeight:e,appTabbarHeight:t}=an(),n={threshold:0,rootMargin:`${e.value*-1}px 0px ${t.value*-1}px 0px`},s=new Map,i=new Map,o=new Map,r=bt(new Set),a=p=>{p.forEach(m=>{var v;r[m.isIntersecting?"add":"delete"](m.target),(v=o.get(m.target))==null||v(m)})};function l(p){const m={...n,...p};return`treshold:${(Array.isArray(m.threshold)?m.threshold.sort((g,b)=>g-b):m.threshold).toString()}:rootMargin:${m.rootMargin}`}function c(p){const m={...n,...p};try{return new IntersectionObserver(a,m)}catch(v){throw tc("[DEBUG] Failed to construct IntersectionObserver",{defaultOptions:n,customOptions:p}),v}}function u(p){const m=l(p),v=s.get(m);
80if(v!==void 0)return v;const g=c(p);return s.set(m,g),g}function d(p,m,v){if(i.has(p))return;const g=u(m);i.set(p,g),g.observe(p),v!==void 0&&o.set(p,v)}function h(p){const m=i.get(p);m!==void 0&&(i.delete(p),m.unobserve(p),o.delete(p),r.delete(p))}return{observe:d,unobserve:h,visibleElements:r}}),()=>({observe:()=>{},unobserve:()=>{},visibleElements:bt(new Set)}));function fd(e,t){const{observe:n,unobserve:s,visibleElements:i}=pp(),o=C(()=>q(e.value)?i.has(e.value):!1);function r(){q(e.value)&&n(e.value,t)}function a(){q(e.value)&&s(e.value)}return je(r),La(r),et(a),rd(a),{isVisible:o,start:r,stop:a}}const GS=Symbol("Video player ended component"),qS=Symbol("Video autoplay enabled"),KS=Symbol("Video sound group");function L$(e){const t=mt("video"),n=mt("overlay"),s=mt("controls"),i=C(()=>{var R;return(R=t.value)==null?void 0:R.parentElement}),o=P(0),r=P(0),a=P(!1),l=P(!1),c=P(!1),u=P(),d=P(!1),h=ut(qS,P(!0)),p=P(!1),m=P([]),v=C(()=>m.value.reduce((R,[,G])=>Math.max(R,G),0)),g=C(()=>({currentTime:Xa((r.value??0)*1e3,"mm:ss"),duration:Xa((o.value??0)*1e3,"mm:ss"),bufferedSegments:m.value.map(([R,G])=>`${Xa(R*1e3,"mm:ss")}-${Xa(G*1e3,"mm:ss")}`).join("; ")})),{isFullscreen:b,toggle:w}=_6(Sr()?t:i),{isInactive:k}=D$(t,1500,{disable:()=>s.value===null||!a.value,exclude:[s]}),{volume:y,isMuted:S,toggleMuted:E}=B$(t,{isAudioPresent:u}),{isActive:x,pause:M,resume:I}=e3(()=>{t.value!==null&&!d.value&&(r.value=t.value.currentTime)});let N,V;function $(R){r.value=R,t.value!==null&&(t.value.currentTime=R)}const j=js($,100);function X(R){t.value===null||typeof t.value.play!="function"||(R===void 0&&(R=t.value.paused),R?t.value.play():t.value.pause())}function U(R){R.code==="Space"&&(R.preventDefault(),X())}return Be(t,"loadstart",()=>{l.value=!0,a.value=!1}),Be(t,"canplay",()=>{l.value=!1}),Be(t,"waiting",()=>{l.value=!0,a.value=!1}),Be(t,"loadeddata",()=>{l.value=!1,u.value=t.value!==null&&h$(t.value)}),Be(t,"playing",()=>{a.value=!0,l.value=!1}),Be(t,"play",()=>{a.value=!0,p.value=!1}),Be(t,"pause",()=>{clearTimeout(V),V=setTimeout(()=>{var R;((R=t.value)==null?void 0:R.paused)===!0&&(a.value=!1)},50)}),Be(t,"progress",()=>{t.value!==null&&(m.value=g$(t.value.buffered))}),Be(t,"seeking",()=>{c.value=!0}),Be(t,"seeked",()=>{c.value=!1}),Be(t,"ended",()=>{p.value=!0}),Be(t,"click",()=>{if(ce(e==null?void 0:e.disablePlaybackToggleOnClick)===!0)return;const R=u.value!==!0&&h.value,G=$r()&&k.value,H=Sr()&&b.value;R||G||H||X()}),Be(t,"dblclick",()=>{ce(e==null?void 0:e.disablePlaybackToggleOnClick)!==!0&&w()}),Be(t,["loadeddata","durationchange"],()=>{var R;o.value=((R=t.value)==null?void 0:R.duration)??0}),be(a,R=>{R?I():M()},{immediate:!0}),be(d,R=>{R||(M(),clearTimeout(N),N=setTimeout(()=>{I()},100))}),be(b,R=>{R?document.addEventListener("keydown",U):document.removeEventListener("keydown",U)}),be(u,(R,G)=>{R!==void 0&&G===void 0&&h.value&&requestAnimationFrame(()=>{X(!0)})}),et(()=>{clearTimeout(N),N=void 0,clearTimeout(V),V=void 0,document.removeEventListener("keydown",U)}),{video:t,overlay:n,controls:s,volume:y,info:g,duration:o,bufferedTime:v,currentTime:C({get(){return r.value},set(R){r.value=R,t.value!==null&&!d.value&&j(R)}}),isAudioPresent:u,isPlaying:a,isFullscreen:b,isWaiting:dv(l,100),isSeeking:dv(c,100),isSeekingManually:d,isProgressAnimationActive:x,isInactive:k,isMuted:S,isAutoplayBehavior:h,isEnded:p,toggleFullscreen:w,togglePlay:X,toggleMuted:E}}const O$=zt(()=>({volume:Xn("video-player-volume",1,{initOnMounted:!0})})),B$=yt((e,{isAudioPresent:t})=>{const n=C(()=>ce(e)),{volume:s}=O$(),i=P(!0),o=ut(KS,void 0),r=Symbol("Video sound group member");o!==void 0&&(be(i,d=>{d?o.value===r&&(o.value=void 0):o.value=r}),be(o,d=>{d!==void 0&&d!==r&&(i.value=!0)}));const a=C({get(){return i.value?0:s.value},set(d){s.value=d,d>0&&(i.value=!1)}}),l=C(()=>ce(t)!==!0||s.value===0||i.value);function c(){i.value=!i.value}function u(d){n.value!==null&&(n.value.volume=d,n.value.muted=l.value)}return be(a,(d,h)=>{n.value!==null&&u(d)},{immediate:!0}),be(()=>ce(t),()=>{u(a.value)},{immediate:!0}),{volume:a,isMuted:l,toggleMuted:c}},()=>({volume:C({get:()=>1,set:()=>{}}),isMuted:C(()=>!0),toggleMuted:()=>{}})),D$=yt((e,t,{exclude:n=[],disable:s=!1})=>{const i=P(!1),o=$r();let r,a;function l(){clearTimeout(r),r=setTimeout(()=>{u(!0)},t)}function c(){r!==void 0&&(clearTimeout(r),r=void 0)}function u(m){m===void 0&&(m=!i.value),i.value=m}function d(m){const v=(m==null?void 0:m.target)??(a==null?void 0:a.target),g=(m==null?void 0:m.composedPath())??(a==null?void 0:a.composedPath);if(v===void 0){u(!1),c();return}const b=v===ce(e),w=n.some(k=>{const y=ce(k);return y!==null&&(g==null?void 0:g.includes(y))});if(b){if((m==null?void 0:m.type)==="touchmove")return;u(!1),l()}else w?(u(!1),"TouchEvent"in window&&m instanceof TouchEvent?l():c()):(u(!0),c())}function h(){d(),o?(document.addEventListener("touchend",d),document.addEventListener("touchmove",d)):document.addEventListener("pointermove",d)}function p(){u(!1),c(),o?(document.removeEventListener("touchend",d),document.removeEventListener("touchmove",d)):document.removeEventListener("pointermove",d)}return Be(()=>ce(e),"pointerup",m=>{a={target:m.target,composedPath:m.composedPath()}}),be([()=>ce(e),()=>ce(s)],([m,v])=>{if(m===null){p();return}v?p():h()},{immediate:!0}),et(()=>{p()}),{isInactive:i}},()=>({isInactive:P(!1)}));function YS(){const e=De(null),t=P(!1),n=P();async function s(o,r=!1){if(t.value)return;const a=(await Ce(async()=>{const{default:l}=await import("./lottie-B3dX7yFr.js").then(c=>c.l);return{default:l}},__vite__mapDeps([2,3]))).default;t.value=!0,await un(),e.value!==null&&(typeof o=="function"&&(o=Object.assign({},await o())),n.value=a.loadAnimation({container:e.value,animationData:o,renderer:"svg",loop:r}),r||n.value.addEventListener("complete",i))}function i(){t.value=!1,n.value!==void 0&&(n.value.removeEventListener("complete",i),n.value.destroy(),n.value=void 0)}return{play:s,stop:i,animationContainerRef:e,isRunning:t}}function Gs(){return{appDisplayName:"vc.ru",getServicePageByName:u8,getServicePageById:d8,isNicknamePromoted:aS,servicePages:Db,appsConfig:a8,gamesIcons:l8,isAppModuleEnabled:h8,isCollectiblesGiftingEnabled:p8}}const Tm=yt((e,t,n=60)=>{const s=pt().resolve("CookieManager"),i="cooldown:",o=86400;function r(a,l){const c=`${i}${a}`;return s.get(c)!==void 0?!0:(s.set(c,"active",{maxAge:l??o}),!1)}r(t,n)||e()});function N$(e=[],t){const{open:n,close:s,popoverId:i,popoverTargetRect:o}=ys(),r=Vs(),a=300,l=C(()=>ce(e)??[]),c=C(()=>ce(t)),u=P(null),d=P(),h=js(N,a),p=bt({plugin:null,queryRange:null,items:[]}),m=C(()=>p.items.map(H=>({...H,action:k()}))),v=C(()=>i.value===r);let g=null,b=null;function w(H){for(let se=0,ue=l.value.length;se<ue;se+=1){const de=l.value[se];if(de.getQuery(H)!==null)return de}}function k(){const{queryRange:H,plugin:se}=p;if(!(H===null||se===null))return ue=>{const de=se.getReplacementNode(ue),ke=document.createTextNode(Iu),Se=TS([de,ke]);Hb(H,Se),al(ke),E(),$()}}async function y(){var se;if(p.plugin===null||p.queryRange===null||(p.items=await p.plugin.getSuggestions(p.queryRange.toString()),p.items.length===0))return $();const H=p.queryRange.getBoundingClientRect();(((se=o.value)==null?void 0:se.x)!==H.x||o.value.y!==H.y)&&(s(),u.value=await n(to,{data:m},{id:r,target:p.queryRange,positionY:"bottom"})),requestAnimationFrame(()=>{var ue;(ue=u.value)==null||ue.navigateToFirst()})}function S(){b=g,g=lu()}function E(){var H;(H=c.value)==null||H.dispatchEvent(new InputEvent("input"))}function x(H){return(H==null?void 0:H.dataset.suggested)==="true"}function M(){return b===null||g===null||b.node!==g.node||g.node===c.value||g.node.parentNode===c.value||g.nodeText===b.nodeText?!1:x(g.node.parentElement)}function I(){g===null||!M()||(EM(g.node,g),E())}function N(){const H=(g==null?void 0:g.nodeTextBefore)??"";if(g===null||H===""||g.node===c.value||x(g.node.parentElement)||(p.plugin=w(H)??null,p.plugin===null))return $();const se=p.plugin.getQuery(H)??"",ue=xM(g.node,se,{limit:g.position,isFromEnd:!0});if(p.queryRange=ue===null?null:Dg(ue),p.queryRange===null)return $();y()}function V(){p.plugin=null,p.queryRange=null,Jl(p.items)}function $(){s(),V()}function j(H){var se,ue,de;if(v.value&&["ArrowUp","ArrowDown","Enter","Escape"].includes(H.key))switch(H.preventDefault(),H.stopPropagation(),H.key){case"ArrowUp":(se=u.value)==null||se.navigateUp();break;case"ArrowDown":(ue=u.value)==null||ue.navigateDown();break;case"Enter":(de=u.value)==null||de.navigateSubmit(H);break;case"Escape":$();break}}function X(H){if(S(),I(),H.inputType===""){H.preventDefault();return}h()}
80function U(){d.value=document}function R(){d.value=void 0}function G(){S()}Be(d,"selectionchange",G),Be(c,"keydown",j),Be(c,"input",X),Be(c,"focus",U),Be(c,"blur",R),ZP(()=>{$(),d.value=void 0})}function F$(){const e=E6(),{alert:t,AlertType:n}=fn(),{t:s}=ft();return be(e,(i,o)=>{!i&&o&&t({type:n.Error,text:s("common.connectionLost")}),i&&o===!1&&t({type:n.Success,text:s("common.connectionRestored")})}),{isOnline:e}}const U$=Pn(F$),XS=yt(U$,()=>({isOnline:P(!0)}));class H${constructor(t,n){this.store=t,this.transport=n}startMeasurement(t,n){this.store.set(n,{id:n,type:t,active:!0,totalMs:0,lastSentMs:0})}stopMeasurement(t){const n=this.store.get(t);n!==void 0&&(n.active=!1)}incrementAccumulatedTimeForActiveMeasurements(t){for(const n of this.store.getAll())n.active&&(n.totalMs+=Math.round(t));this.sendAllMeasurements()}async sendAllMeasurements(){const t=this.getPendingMeasurements();if(t.length!==0)try{await this.transport.post("stats/timespend",t);for(const n of t)this.finalizeSentMeasurement(n.id);this.clearInactiveMeasurements()}catch(n){console.error("Failed to send timespend measurements",n)}}finalizeSentMeasurement(t){const n=this.store.get(t);n!==void 0&&(n.lastSentMs=n.totalMs)}clearInactiveMeasurements(){for(const t of this.store.getAll())t.active||this.store.delete(t.id)}getPendingMeasurements(){const t=[];for(const n of this.store.getAll())n.totalMs>n.lastSentMs&&t.push(this.prepareMeasurementToSend(n));return t}prepareMeasurementToSend(t){const{type:n,id:s,totalMs:i}=t;return{type:n,id:s,totalMs:i}}}class V${constructor(){le(this,"measurements",new Map)}get(t){return this.measurements.get(t)}set(t,n){this.measurements.set(t,n)}delete(t){this.measurements.delete(t)}getAll(){return this.measurements.values()}clear(){this.measurements.clear()}}class z${constructor(){le(this,"sessionId",null)}getSessionId(){return this.sessionId}setSessionId(t){this.sessionId=t}}class W${constructor(t){this.sessionStore=t}getSessionId(){return this.sessionStore.getSessionId()}setSessionId(t){this.sessionStore.setSessionId(t)}}var uu=(e=>(e.ViewMetric="view",e.Hit="hit",e.Session="session",e))(uu||{}),Fs=(e=>(e.Content="content",e.Comments="comments",e.AssistantAnswer="assistant-answer",e))(Fs||{}),gi=(e=>(e.Post="post",e.Advert="advert",e.AdFox="adfox",e.ProRotation="pro-rotation",e.PromoGame="promo-game",e.Steam="steam",e))(gi||{});class di extends kb{}const QS="post removed";class JS extends di{constructor(n){super(QS,{id:n});le(this,"shouldBeBroadcasted",!0)}}const ZS="notification reset unseen count";class j$ extends di{constructor(){super(ZS);le(this,"shouldBeBroadcasted",!0)}}const Gv="session started";class G$ extends di{constructor(n){super(Gv,{sessionId:n});le(this,"shouldBeBroadcasted",!0)}}const eC="cookies consent accepted";class q$ extends di{constructor(){super(eC)}}class K$ extends kb{}const Y$="before navigation";class X$ extends K${constructor(t,n,s){super(Y$,{from:t,to:n,isModal:s})}}class Q$ extends np{}class J${constructor(t,n,s){le(this,"timespendRepository");le(this,"clock");le(this,"eventBus");le(this,"lastTickTime",0);le(this,"stopTick");le(this,"currentSessionId",null);le(this,"boundSessionStartedHandler",null);le(this,"cleanupWindowActiveStateChange",null);this.timespendRepository=t,this.clock=n,this.eventBus=s,this.startTicking(),this.subscribeToSessionStarted(),this.subscribeToWindowActiveStateChange()}startTicking(){this.stopTick===void 0&&(this.lastTickTime=performance.now(),this.stopTick=this.clock.onTick(t=>{const n=t-this.lastTickTime;this.lastTickTime=t,this.timespendRepository.incrementAccumulatedTimeForActiveMeasurements(n)}))}stopTicking(){this.stopTick!==void 0&&(this.stopTick(),this.stopTick=void 0)}subscribeToSessionStarted(){this.eventBus!==null&&(this.boundSessionStartedHandler=this.onSessionStarted.bind(this),this.eventBus.addEventListener(Gv,this.boundSessionStartedHandler))}subscribeToWindowActiveStateChange(){const t=xS(n=>{n?this.startTicking():this.stopTicking()});this.cleanupWindowActiveStateChange=t??null}onSessionStarted(t){const s=t.detail.sessionId;this.handleSessionStarted(s)}handleSessionStarted(t){this.currentSessionId!==null&&this.stopSessionMeasurement(this.currentSessionId),this.startSessionMeasurement(t),this.currentSessionId=t}destroy(){this.stopTicking(),this.clock.stop(),this.eventBus!==null&&this.boundSessionStartedHandler!==null&&this.eventBus.removeEventListener(Gv,this.boundSessionStartedHandler),this.cleanupWindowActiveStateChange!==null&&this.cleanupWindowActiveStateChange()}startViewMeasurement(t){this.timespendRepository.startMeasurement(uu.ViewMetric,t)}stopViewMeasurement(t){this.timespendRepository.stopMeasurement(t)}startSessionMeasurement(t){this.timespendRepository.startMeasurement(uu.Session,t)}stopSessionMeasurement(t){this.timespendRepository.stopMeasurement(t)}startHitMeasurement(t){this.timespendRepository.startMeasurement(uu.Hit,t)}stopHitMeasurement(t){this.timespendRepository.stopMeasurement(t)}}class Z${constructor(t,n){this.transport=t,this.throttledTransport=n}async hit(t,n,s){return await this.transport.post("stats/hit",{from:t,page:n,meta:JSON.stringify(s)??"{}"},{auth:"probe"})}async view(t,n=!1){let s=this.throttledTransport,i=t;const o={"Content-Type":"application/json"};return n&&(s=this.transport,i=[t]),await s.post("stats/views",i,{auth:"probe",headers:o})}async recordCookieConsent(){await this.transport.post("stats/cookie-consent",{},{auth:"probe"})}async event(t){return await this.transport.post("stats/event",t,{auth:"probe"})}}class eL{constructor(t,n,s){this.statsRepository=t,this.sessionRepository=n,this.eventBus=s,this.subscribeToCookiesConsentAccepted()}subscribeToCookiesConsentAccepted(){this.eventBus!==null&&this.eventBus.addEventListener(eC,()=>{this.recordCookieConsentSafely()})}async recordCookieConsentSafely(){try{await this.recordCookieConsent()}catch{}}async hit(t,n,s){const{hitId:i,sessionId:o}=await this.statsRepository.hit(t,n,s);return this.handleSession(o),i}async view(t,n=!1){const{sessionId:s}=await this.statsRepository.view(t,n);this.handleSession(s)}generateViewId(){return crypto.randomUUID()}async recordCookieConsent(){await this.statsRepository.recordCookieConsent()}handleSession(t){const n=this.sessionRepository.getSessionId();this.sessionRepository.setSessionId(t),n!==t&&this.emitSessionStarted(t)}emitSessionStarted(t){this.eventBus!==null&&this.eventBus.dispatchEvent(new G$(t))}async event(t){const{sessionId:n}=await this.statsRepository.event(t);this.handleSession(n)}}class tC{constructor(t,n=5e3,s){le(this,"transport");le(this,"batchIntervalMs");le(this,"mergeStrategy");le(this,"queue",new Map);le(this,"timeoutId");le(this,"isScheduled",!1);this.transport=t,this.batchIntervalMs=n,this.mergeStrategy=s}async get(t,n){return await this.transport.get(t,n)}async post(t,n,s){if(n===void 0)throw new Error("Data is required for batching");return await new Promise((i,o)=>{this.queue.get(t)===void 0&&this.queue.set(t,[]);const a=this.queue.get(t);if(a!==void 0){const l={endpoint:t,data:n,params:s,resolve:i,reject:o};a.push(l)}this.scheduleBatch()})}abort(t){this.transport.abort(t)}scheduleBatch(){this.isScheduled||(this.isScheduled=!0,this.timeoutId=setTimeout(()=>{this.flush(),this.timeoutId=void 0,this.isScheduled=!1},this.batchIntervalMs))}async flush(){if(this.queue.size===0)return;const t=[];for(const[n,s]of this.queue.entries()){if(s.length===0)continue;const i=[...s];this.queue.set(n,[]),t.push(this.sendBatch(n,i))}await Promise.allSettled(t)}async sendBatch(t,n){if(n.length!==0)try{let s=n.map(r=>r.data).filter(r=>r!==void 0).flat();this.mergeStrategy!==void 0&&(s=this.deduplicateItems(s));const i={...n[0].params};i.headers={...i.headers,"Content-Type":"application/json"};const o=await this.transport.post(t,s,i);for(const r of n)r.resolve(o)}catch(s){for(const i of n)i.reject(s instanceof Error?s:new Error("Unknown error"))}}deduplicateItems(t){if(this.mergeStrategy===void 0)return t;const n=new Map;for(const s of t){const i=this.mergeStrategy.getKey(s),o=n.get(i);o!==void 0?n.set(i,this.mergeStrategy.merge(o,s)):n.set(i,s)}return Array.from(n.values())}destroy(){this.timeoutId!==void 0&&(clearTimeout(this.timeoutId),this.timeoutId=void 0,this.isScheduled=!1),this.flush()}}const tL={getKey:e=>`${e.type}-${e.id}`,merge:(e,t)=>
80t.totalMs>e.totalMs?t:e};function nL(){const e=pt();return e.isRegistered("SessionStore")||e.register("SessionStore",()=>new z$),e.resolve("SessionStore")}function sL(){const e=pt();return e.isRegistered("SessionRepository")||e.register("SessionRepository",()=>{const t=nL();return new W$(t)}),e.resolve("SessionRepository")}function iL(){const e=pt();return e.isRegistered("TimespendService")||e.register("TimespendService",()=>{const s=new V$,{transport:i,eventBus:o}=e.resolve("ModuleInitOptions"),r=new tC(i,1e4,tL),a=new H$(s,r),l=new z5(3e3);return new J$(a,l,o)}),e.resolve("TimespendService")}function Kb(){const e=pt();return e.isRegistered("StatsService")||e.register("StatsService",()=>{const n=sL(),{transport:s,eventBus:i}=e.resolve("ModuleInitOptions"),o=new tC(s,2e3),r=new Z$(s,o);return new eL(r,n,i)}),e.resolve("StatsService")}function mp(){const e=iL();function t(r){return e.startViewMeasurement(r),()=>{e.stopViewMeasurement(r)}}function n(r){e.startSessionMeasurement(r)}function s(r){e.stopSessionMeasurement(r)}function i(r){e.startHitMeasurement(r)}function o(r){e.stopHitMeasurement(r)}return{startViewMeasurement:t,startSessionMeasurement:n,stopSessionMeasurement:s,startHitMeasurement:i,stopHitMeasurement:o}}const hd=Pn(()=>{const e=Kb(),{fromReferer:t,toReferer:n,toRefererContext:s,refererChangeReason:i}=Br(),{startHitMeasurement:o,stopHitMeasurement:r}=mp(),a=P(void 0),l=P(!1),c=P(!1);async function u(m,v,g){return await e.hit(m,v,g)}be([n,s],(m,v)=>{if(console.log("toReferer changed from %o to %o",v==null?void 0:v[0],m[0]),i.value==="manual"){console.log("hit skipped: manual referer change");return}console.log("sending hit from %o to %o, context %o",t.value,n.value,s.value),h(t.value,n.value,s.value)},{immediate:!0});async function d(){if(c.value)return;const m=pt().resolve("CookieManager"),v=15,g=100;for(let b=0;b<v;b+=1){if(m.get("osnova-aid")!==void 0){c.value=!0;return}b<v-1&&await ld(g)}}async function h(m,v,g){l.value&&await Do(l).toBe(!1),a.value!==void 0&&r(a.value);try{l.value=!0,await d();const b=await u(m,v,g);a.value=b,o(b)}catch{}finally{l.value=!1}}async function p(){return a.value!==void 0||await Do(a).not.toBeUndefined(),a.value}return{hit:u,getCurrentHitId:p}});function Da(){const e=Kb(),{getCurrentHitId:t}=hd(),{fromReferer:n,toReferer:s,fromFeed:i}=Br();async function o(a){const l=e.generateViewId(),c=await t();return{...a,location:a.location??s.value,previousPage:n.value,fromFeed:a.fromFeed!==void 0?a.fromFeed:i.value,hitId:c,viewId:l}}async function r(a,l){const c=await o(a);
80return e.view(c,l),c.viewId}return{view:r}}async function nC(e){const{fromReferer:t,toReferer:n,fromFeed:s}=Br(),{getCurrentHitId:i}=hd(),o=await i();return{location:n.value,previousPage:t.value,fromFeed:e!==void 0?e:s.value,hitId:o}}const oL=1e3;function sC(e){const{contentRoot:t,contentId:n,isExpanded:s,isSeparatePageMode:i,location:o,index:r,meta:a,sourceContentId:l}=e,{observe:c,unobserve:u}=pp(),{view:d}=Da(),{startViewMeasurement:h}=mp(),p=P(!1),m=P(void 0),v=P(void 0),g=P(void 0),b=P(void 0);function w(){t.value===void 0||t.value===null||c(t.value,{threshold:0,rootMargin:"-50% 0px -50% 0px"},E=>{p.value=E.isIntersecting})}function k(){t.value!==void 0&&u(t.value)}async function y(E){if(o===void 0)return;const x=o!=="post"&&r!==void 0,M=E==="expanded"?"full":"short";let I;x?I={type:Fs.Content,contentId:n.value,contentDisplayType:M,index:r,fromFeed:o,slotType:a==null?void 0:a.slotType,statGroup:a==null?void 0:a.statGroup,feedSegment:a==null?void 0:a.feedSegment,sourceContentId:l}:I={type:Fs.Content,contentId:n.value,contentDisplayType:M,location:o==="advert-pro-max"?$e.AdvertPostAfter:void 0,slotType:o==="advert-pro-max"?gi.ProRotation:void 0};const N=await d(I),V=h(N);E==="short"?(m.value=N,v.value=V):(g.value=N,b.value=V)}function S(E,x){E.value!==void 0&&(E.value(),E.value=void 0,x.value=void 0)}return Tr(p,E=>{if(!E)return;const x=i.value||s.value?"expanded":"short";y(x)},{debounce:oL}),be(s,async(E,x)=>{E&&!x&&p.value&&(S(v,m),await y("expanded")),!E&&x&&S(b,g)}),be(p,E=>{E||(S(v,m),S(b,g))}),je(()=>{w()}),et(()=>{k(),S(v,m),S(b,g)}),{isContentVisible:p,shortContentViewId:m,expandedContentViewId:g}}const rL=1e3,aL=100;function lL(e){const{commentsRoot:t,entryId:n,displayType:s,sorting:i}=e,{observe:o,unobserve:r}=pp(),{view:a}=Da(),{startViewMeasurement:l}=mp(),c=P(!1),u=P(void 0),d=P(void 0);function h(){t.value!==null&&o(t.value,{threshold:0,rootMargin:"-50% 0px -50% 0px"},b=>{c.value=b.isIntersecting})}function p(){t.value!==null&&r(t.value)}async function m(){const b={type:Fs.Comments,entryId:n.value,displayType:s.value,sorting:i.value},w=await a(b),k=l(w);u.value=w,d.value=k}function v(){d.value!==void 0&&(d.value(),d.value=void 0,u.value=void 0)}Tr(c,b=>{b&&m()},{debounce:rL}),be(c,b=>{b||v()});const g=C(()=>`${s.value}:${i.value}`);return Tr(g,()=>{c.value&&(v(),m())},{debounce:aL}),je(()=>{h()}),et(()=>{p(),v()}),{areCommentsVisible:c,commentsViewId:u}}const cL=yt(()=>{const e=Kb();async function t(n){try{await e.event(n),oi("stats",os.Purple,`Event sent: ${n.event}`,os.Black,n)}catch{}}return{track:t}},()=>({track:async()=>{}})),uL=Object.freeze(Object.defineProperty({__proto__:null,StatsType:uu,ViewMetricSlotType:gi,ViewMetricType:Fs,getInteractionAnalytics:nC,useCommentsStats:lL,useContentStats:sC,useEvents:cL,useHits:hd,useTimespend:mp,useViews:Da},Symbol.toStringTag,{value:"Module"})),Ro=yt(Pn(()=>{const{fromReferer:e,toReferer:t,fromFeed:n}=Br(),{getCurrentHitId:s}=hd();async function i(o){const r=await s();return{location:t.value,previousPage:e.value,fromFeed:o!==void 0?o:n.value,hitId:r}}return{location:C(()=>t.value),previousPage:C(()=>e.value),getPayload:i}})),dL=yt((e,t,{delay:n,cooldown:s})=>{const i=`active-time-cooldown:${t}`;let o=0;try{o=Number(localStorage.getItem(i))}catch{}if(Date.now()-o<s)return;let r=n,a=0,l,c=null,u=!1;function d(){l!==void 0&&(clearTimeout(l),l=void 0,r-=Date.now()-a)}function h(){d(),c==null||c(),c=null}function p(){if(!u){u=!0,h();try{localStorage.setItem(i,String(Date.now()))}catch{}e()}}function m(){u||l!==void 0||(a=Date.now(),l=setTimeout(p,r))}c=xS(v=>{v?m():d()}),document.hidden||m(),Mg(h)},()=>{}),fL=yt(()=>{const n=ji({loader:Rt(async()=>await Ce(()=>import("./AppDownloadModal-BIK_2VeA.js"),__vite__mapDeps([4,5])))}),s=h(),i="b332da25-d123-56e3-9081-1c84a4c16349",{appsConfig:o}=Gs(),{isOpened:r,onModalClose:a,open:l}=Wt();if(s===void 0||i===void 0||o===null)return;const c={platform:s,logoUuid:i};function u(){l(n,c)}function d(){if(!r.value){u();return}const{off:p}=a(()=>{p(),setTimeout(()=>{d()},5e3)})}function h(){if(Sr())return"ios";if(wM()||_M())return"android"}dL(d,"mobile-app-download-prompt",{delay:5*6e4,cooldown:7*864e5})},()=>{}),hL=Pn(e=>{const{css:t,load:n}=R6("",{id:"hljs-theme",manual:!0});n();const s={light:"",dark:""};let i=0,o;async function r(c){return s[c]===""&&(s[c]=c==="light"?(await Ce(async()=>{const{default:u}=await import("./a11y-light-DnwU5F7G.js");return{default:u}},[])).default:(await Ce(async()=>{const{default:u}=await import("./a11y-dark-CF1Th2BS.js");return{default:u}},[])).default),s[c]}async function a(c){const u=++i,d=await r(c);u===i&&(t.value=d)}async function l(c){o===void 0&&(o=(await Ce(async()=>{const{default:u}=await import("./index-CK0aNGsS.js");return{default:u}},__vite__mapDeps([6,3]))).default),o.highlightElement(c)}return be(()=>ce(e),c=>{a(c)},{immediate:!0}),{highlightElement:l}}),pL=yt(e=>hL(e),()=>({highlightElement:async()=>{}})),mL=yt(zt(()=>{const e=Xn("viewed-posts-can-show",!0);function t(){e.value=!1}function n(){e.value=!0}return{canShow:e,close:t,reset:n}}),()=>({canShow:P(!1),close:()=>{},reset:()=>{}}));function vL(e,t,{onStart:n,onStop:s,onIntersection:i}){const{isVisible:o}=fd(t.root,{rootMargin:t.rootMargin??"100% 0px"}),r=bt(new Map),a=C(()=>{var k;return o.value&&((k=t.disabled)==null?void 0:k.value)!==!0?t.root.value:null});let l,c;function u(k,y){if(k.isIntersecting&&k.intersectionRatio>=1)return!0;const{boundingClientRect:S,intersectionRect:E}=k;if(E.width!==0||E.height!==0||S.width===0||S.height===0)return!1;const x=y.getBoundingClientRect();return S.left>=x.left&&S.right<=x.right&&S.top>=x.top&&S.bottom<=x.bottom}function d(k){requestAnimationFrame(()=>{if(l!==void 0)for(const y of k)l.unobserve(y),l.observe(y)})}function h(k){l===void 0&&(l=new IntersectionObserver(y=>{for(const S of y){if(!(S.target instanceof HTMLElement))continue;const E=u(S,k);r.set(S.target,E),i==null||i(S.target,E)}},{root:k,threshold:1}),m(e.value),d(e.value),c=t6(e,()=>{w({silent:!1})},{deep:!0}),n==null||n())}function p({silent:k=!0}={}){c==null||c(),c=void 0,v(e.value),l==null||l.disconnect(),l=void 0,k||s==null||s()}
80function m(k){k.forEach(y=>{g(y)})}function v(k){k.forEach(y=>{b(y)})}function g(k){l!==void 0&&(r.has(k)||(r.set(k,!0),l==null||l.observe(k)))}function b(k){r.delete(k),l==null||l.unobserve(k)}function w({silent:k=!0}={}){a.value!==null&&(p({silent:k}),h(a.value))}be(a,k=>{var y;k===null?p({silent:((y=t.disabled)==null?void 0:y.value)!==!0}):h(k)},{immediate:!0}),et(()=>{p()})}const zs=J({__name:"LinkButton",props:{to:{default:void 0},size:{default:"default"},disabled:{type:Boolean,default:!1},icon:{default:void 0},referer:{default:void 0},refererContext:{default:void 0},isPromotesPlus:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,s=t,i=C(()=>n.size==="tiny"?14:n.size==="small"?16:n.size==="large"?24:18);return(o,r)=>e.to==null?(_(),T("button",{key:0,class:Z(["link-button",`link-button--${e.size}`,e.disabled&&"link-button--disabled",e.isPromotesPlus&&"link-button--promotes-plus"]),onClick:r[0]||(r[0]=a=>s("click",a))},[Ve(o.$slots,"default"),e.icon?(_(),L(f(Re),{key:0,name:e.icon,width:i.value,height:i.value},null,8,["name","width","height"])):D("",!0)],2)):(_(),L(f(Qe),{key:1,to:e.to,class:Z(["link-button",`link-button--${e.size}`,e.isPromotesPlus&&"link-button--promotes-plus"]),referer:e.referer,"referer-context":e.refererContext,onClick:r[1]||(r[1]=a=>s("click",a))},{default:K(()=>[Ve(o.$slots,"default"),e.icon?(_(),L(f(Re),{key:0,name:e.icon,width:i.value,height:i.value},null,8,["name","width","height"])):D("",!0)]),_:3},8,["to","class","referer","referer-context"]))}}),gL=["title","datetime"],sc=J({__name:"RelativeDate",props:{date:{}},setup(e){const{formatTime:t}=Mr(),{onMinutePassed:n,offMinutePassed:s}=H8(),i=e,o=P(t(i.date*1e3)),r=P(t(i.date*1e3,us.FullWithTime)),a=P(t(i.date*1e3,us.Machine));function l(){requestAnimationFrame(()=>{o.value=t(i.date*1e3)})}return je(()=>{n(l)}),ui(()=>{s(l)}),(c,u)=>(_(),T("time",{title:r.value,datetime:a.value},Y(o.value),9,gL))}}),bL=J({__name:"RoundButton",props:{icon:{},size:{default:"default"},bordered:{type:Boolean,default:!1}},setup(e){const t=e,n=C(()=>t.size==="default"?22:16);return(s,i)=>(_(),T("button",{class:Z([s.$style.roundButton,e.size==="small"&&s.$style.roundButtonSmall,e.bordered&&s.$style.roundButtonBordered])},[A(f(Re),{name:e.icon,width:n.value,height:n.value},null,8,["name","width","height"])],2))}}),yL="xyOaXyd-",wL="mKGpm5HX",_L="GnWoCljS",kL={roundButton:yL,roundButtonSmall:wL,roundButtonBordered:_L,"underlay-in":"_2V5KOyCP","modal-enter":"U6APEx1v","modal-enter-slide":"sTY8J4yP"},SL={$style:kL},Xi=ot(bL,[["__cssModules",SL]]),CL={class:"alert"},EL={class:"alert__text"},xL=J({__name:"Alert",props:{id:{},type:{},text:{},autoHide:{type:Boolean},button:{}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,i=C(()=>n.type===Ou.Success?"circle_tick":n.type===Ou.Error?"circle_cross":"circle_attention");function o(){var r;(r=n.button)==null||r.action(),s("close")}return(r,a)=>(_(),T("div",CL,[A(f(Re),{class:"alert__icon",name:i.value,width:24,height:24},null,8,["name"]),O("p",EL,Y(e.text),1),e.button?(_(),L(zs,{key:0,class:"alert__button",size:"small",onClick:o},{default:K(()=>[xe(Y(e.button.text),1)]),_:1})):(_(),L(Xi,{key:1,icon:"cross",size:"small",class:"alert__close",onClick:a[0]||(a[0]=l=>s("close"))}))]))}}),TL={class:"alerts-container"},AL=J({__name:"AlertsView",setup(e){const{alerts:t,removeAlert:n}=fn();return(s,i)=>(_(),T("div",TL,[f(t)!==void 0?(_(),L(I2,{key:0,name:"list",tag:"div",class:"alerts-container__list"},{default:K(()=>[(_(!0),T(ye,null,We(f(t),o=>(_(),L(xL,St({key:o.id},{ref_for:!0},o,{onClose:r=>f(n)(o.id)}),null,16,["onClose"]))),128))]),_:1})):D("",!0)]))}}),PL={class:"remove-button"},RL=J({__name:"RemoveButton",setup(e){return(t,n)=>(_(),T("div",PL,[A(f(Re),{name:"cross",width:16,height:16})]))}}),IL=["disabled"],ic=J({__name:"IconButton",props:{icon:{},iconSize:{default:24},buttonSize:{default:void 0},isActive:{type:Boolean},disabled:{type:Boolean},isNeedAttention:{type:Boolean},filled:{type:Boolean,default:!1},isNegative:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,s=t,i=C(()=>{if(n.buttonSize!==void 0)return{width:`${n.buttonSize}px`,height:`${n.buttonSize}px`}});function o(r){s("click",r)}return(r,a)=>(_(),T("button",{class:Z(["icon-button",e.isActive&&"icon-button--active",e.isNeedAttention&&"icon-button--attention",e.filled&&"icon-button--filled",e.isNegative&&"icon-button--negative",e.buttonSize!==void 0&&"icon-button--fixed"]),style:Ot(i.value),disabled:e.disabled,type:"button",onClick:o},[A(f(Re),{name:e.icon,width:e.iconSize,height:e.iconSize},null,8,["name","width","height"])],14,IL))}});function iC(e){return e==null||e.length===0?!1:"items"in e[0]}function ML(e){return e==null||e.length===0||!iC(e)?!1:e.some(t=>t.title!==void 0&&t.title.length>0)}function oC(e){const t=P([]),n=P(!1);function s(o){t.value=o}function i(o){n.value=o}if(typeof e.value=="function"){let o;const r=e.value({setData:s,setLoadingState:i,onAfterDataSet(a){o=a}});Array.isArray(r)?s(r):r.then(s).then(un).then(()=>{o==null||o()}).catch(console.error)}else Tu(e,t);return{data:t,isLoading:n}}function $L(e,t){const n=P("");Tu(e,n);const s=C(()=>n.value.length>0&&t.value.length>0&&!ML(t.value));return{title:n,isVisible:s}}var ms=(e=>(e[e.Title=0]="Title",e[e.Option=1]="Option",e[e.Loader=2]="Loader",e))(ms||{});
80class LL extends Error{}function OL(e,t){const n=C(()=>e.value.filter(g=>g.type===ms.Option)),s=C(()=>!!((t==null?void 0:t.value)!==void 0&&n.value.length)),i=P(-1),o=C(()=>n.value.length>0?n.value[0].index:0),r=C(()=>n.value.length>0?n.value[n.value.length-1].index:0),a=P();function l(){if(!s.value)return;const g=i.value-=1;g<o.value?i.value=r.value:i.value=g}function c(){if(!s.value)return;const g=i.value+=1;g>r.value?i.value=o.value:i.value=g}function u(){s.value&&(i.value=0)}function d(){s.value&&(i.value=r.value)}function h(g){if(i.value<0)throw new LL("Failed to select option, because no option is focused");const{props:b}=n.value[i.value];a.value!==void 0&&b.value===a.value.value&&a.value.select(g)}function p(g){a.value=g}function m(g){return g===i.value}function v(){i.value=-1}return be(n,v),{reset:v,navigateUp:l,navigateDown:c,navigateToFirst:u,navigateToLast:d,navigateSubmit:h,setFocusedOptionApi:p,isMatchesCurrentIndex:m}}function Vd(e){return{type:ms.Title,props:{value:e}}}function Mw(e,t){return{type:ms.Option,props:e,index:t}}function BL(){return{type:ms.Loader}}function rC(e){return C(()=>{const n=[],s=C(()=>ce(e.data)),i=C(()=>ce(e.isDisplayLoader)===!0),o=C(()=>ce(e.emptyDataMessage)??""),r=C(()=>o.value.length>0&&!i.value);let a=!1,l=-1;return iC(s.value)?s.value.reduce((u,{title:d,items:h})=>(d!==void 0&&d.length>0&&h.length>0&&(u.push(Vd(d)),a=!0),h.length===0&&r.value&&u.push(Vd(o.value)),u.push(...h.map(p=>(l+=1,Mw(p,l)))),u),n):(s.value.length===0&&r.value&&n.push(Vd(o.value)),n.push(...s.value.map(u=>(l+=1,Mw(u,l))))),e.mainTitle!==void 0&&e.mainTitle.value.length>0&&!a&&n.length>0&&n.unshift(Vd(e.mainTitle.value)),i.value&&n.push(BL()),n})}function aC(e,t,n){const s=P(!1),i=P(void 0);e!==void 0&&Tu(e,s),t!==void 0&&Tu(t,i);const o=C(()=>s.value==="multiple");function r(l){if(s.value===!0&&typeof(n==null?void 0:n.onBeforeProcess)=="function"&&n.onBeforeProcess(l),s.value===!1||l.value===void 0||typeof(n==null?void 0:n.onAfterProcess)!="function")return;let c=i.value;if(o.value)if(Array.isArray(c)||(c!==void 0&&c!==""?c=[c]:c=[]),c.includes(l.value)){const u=c.indexOf(l.value);c.splice(u,1),c.length===0&&(c=void 0)}else c.push(l.value);else c=l.value;n.onAfterProcess(c)}function a(l){return s.value!==!1&&i.value!==void 0&&l.value!==void 0?o.value?i.value.includes(l.value):l.value===i.value:!1}return{state:s,selected:i,multiple:o,processOption:r,isOptionSelected:a}}const DL={key:1,class:"context-list-option__label"},NL=["src"],FL={key:2,class:"context-list-option__details"},$w=20,Lw=140,lC=J({inheritAttrs:!1,__name:"ListOption",props:{label:{},labelImageUuid:{},details:{},color:{},url:{},target:{},focused:{type:Boolean},allowVideoPlayback:{type:Boolean},gtm:{},promoted:{type:Boolean},referer:{},value:{},icon:{},subIcon:{},media:{},mediaRaw:{type:Boolean},action:{type:Function},selected:{type:Boolean},selectable:{type:Boolean},highlighted:{type:Boolean}},emits:["focus","select"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=C(()=>{var b;return s.target==="_blank"?"a":q((b=s.url)==null?void 0:b.length)?Qe:"div"}),r=C(()=>!!(s.icon??s.media)),a=C(()=>!!s.label),l=C(()=>!!s.details),c=C(()=>a.value?l.value?32:22:28),u=P(!1),d=De(null),h=P();function p(b){if(b===null){d.value=null;return}d.value="$el"in b?b.$el:b}function m(){u.value=!0,clearTimeout(h.value),h.value=setTimeout(()=>{u.value=!1},Lw)}function v(b){var w;b.isTrusted&&(typeof s.action=="function"&&s.action(s,b),i("select",s,b),((w=d.value)==null?void 0:w.tagName)==="A"&&"key"in b&&d.value.click())}const g=C(()=>({mousedown:m,click:v}));return be(()=>s.focused,b=>{b&&i("focus",{value:s.value,select:v,element:d.value})}),et(()=>{clearTimeout(h.value)}),t({element:d}),(b,w)=>{const k=An("gtm");return Ie((_(),L(nn(o.value),St({ref:p,class:["context-list-option",r.value&&"context-list-option--with-art",l.value&&"context-list-option--with-details",!a.value&&"context-list-option--without-label",e.selected&&"context-list-option--selected",e.focused&&"context-list-option--focused",u.value&&"context-list-option--pressed",e.promoted&&"context-list-option--promoted",e.selectable&&"context-list-option--selectable"],to:e.url,href:e.target?e.url:void 0,target:e.target,tabindex:"-1",style:{"--color":e.color?e.color:null,"--press-duration":Lw+"ms"},referer:e.referer},Kg(g.value)),{default:K(()=>[r.value?(_(),T("div",{key:0,class:Z(["context-list-option__art",e.icon&&"context-list-option__art--icon"])},[e.icon?(_(),L(f(Re),{key:0,name:e.icon,width:$w,height:$w},null,8,["name"])):e.media?(_(),T(ye,{key:1}
80,[e.media.data.color==="transparent"?(_(),L(f(jo),{key:0,type:e.media.type,data:e.media.data,raw:s.mediaRaw,maxSize:[c.value,c.value]},null,8,["type","data","raw","maxSize"])):(_(),L(f(Jn),{key:1,source:e.media,size:c.value,isAllowVideo:e.allowVideoPlayback??!1},null,8,["source","size","isAllowVideo"]))],64)):D("",!0),e.subIcon?(_(),L(f(Re),{key:2,class:"context-list-option__sub-icon",name:e.subIcon,width:12,height:12},null,8,["name"])):D("",!0)],2)):D("",!0),a.value?(_(),T("div",DL,[O("span",null,Y(e.label),1),e.labelImageUuid?(_(),T("img",{key:0,src:f(Ir)({uuid:e.labelImageUuid}),loading:"lazy",class:"context-list-option__label-image"},null,8,NL)):D("",!0)])):D("",!0),l.value?(_(),T("div",FL,Y(e.details),1)):D("",!0),e.selectable===!0&&e.selected?(_(),L(f(Re),{key:3,class:"context-list-option__tick",name:"tick",width:20,height:20})):D("",!0)]),_:1},16,["class","to","href","target","style","referer"])),[[k,e.gtm?e.gtm:void 0]])}}}),Ow=140,UL=J({inheritAttrs:!1,__name:"GridOption",props:{value:{},icon:{},subIcon:{},media:{},mediaRaw:{type:Boolean},action:{},selected:{type:Boolean},selectable:{type:Boolean},highlighted:{type:Boolean},size:{default:36}},emits:["select"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=C(()=>Math.round(s.size-s.size*.35)),r=C(()=>Math.round(s.size-s.size*.1)),a=C(()=>Math.round(s.size*.3)),l=P(!1),c=mt("element"),u=P();function d(){l.value=!0,clearTimeout(u.value),u.value=setTimeout(()=>{l.value=!1},Ow)}function h(m){var v;(v=s.action)==null||v.call(s,s,m),i("select",s,m)}const p=C(()=>({mousedown:d,click:h}));return et(()=>{clearTimeout(u.value)}),t({element:c}),(m,v)=>(_(),T("div",St({ref_key:"element",ref:c,class:["context-grid-option",e.selected&&"context-grid-option--selected",e.selectable&&"context-grid-option--selectable",l.value&&"context-grid-option--pressed",e.highlighted&&"context-grid-option--highlighted"],style:{"--press-duration":`${Ow}ms`},tabindex:"-1"},Kg(p.value,!0)),[e.icon?(_(),L(f(Re),{key:0,name:e.icon,width:o.value,height:o.value},null,8,["name","width","height"])):e.media?(_(),L(f(jo),{key:1,type:e.media.type,data:e.media.data,raw:s.mediaRaw,size:r.value,rounded:!0},null,8,["type","data","raw","size"])):D("",!0),e.subIcon?(_(),L(f(Re),{key:2,class:"context-grid-option__sub-icon",name:e.subIcon,width:a.value,height:a.value},null,8,["name","width","height"])):D("",!0)],16))}}),HL={class:"context-list-title"},VL=J({__name:"Title",props:{value:{}},setup(e){return(t,n)=>(_(),T("div",HL,Y(e.value),1))}}),to=J({__name:"ContextList",props:{visibleOptions:{default:6},title:{default:""},emptyDataMessage:{},listGtm:{},data:{},selectable:{type:[Boolean,String],default:!1},selected:{},loading:{type:Boolean}},emits:["select","leave","update:selected","endReach"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=mt("listElement"),r=mt("scrollable"),a=De(null),l=mt("bottomHorizon"),{data:c,isLoading:u}=oC(Cn(s,"data")),{title:d}=$L(Cn(s,"title"),c),h=C(()=>u.value||s.loading),p=rC({data:c,mainTitle:d,emptyDataMessage:Cn(s,"emptyDataMessage"),isDisplayLoader:h}),m=C(()=>{if(a.value===null||o.value===null||r.value===null)return"none";const{top:$}=o.value.getBoundingClientRect(),{top:j,height:X}=a.value.getBoundingClientRect();return`${j-$+r.value.scrollTop+X*.5}px`}),{processOption:v,isOptionSelected:g}=aC(Cn(s,"selectable"),Cn(s,"selected"),{onBeforeProcess:$=>{i("select",$)},onAfterProcess:$=>{i("update:selected",$)}}),{navigateUp:b,navigateDown:w,navigateToFirst:k,navigateToLast:y,navigateSubmit:S,setFocusedOptionApi:E,isMatchesCurrentIndex:x,reset:M}=OL(p,Cn(s,"selectable")),I=Ba(l,([{isIntersecting:$}])=>{!$||h.value||i("endReach")},{root:o,rootMargin:"200% 0px"});be(()=>p.value.length,($,j)=>{$!==j&&(I.pause(),I.resume())});function N($,j){s.selectable!=="multiple"&&i("leave",j),s.selectable!==void 0&&v($)}function V($){E($),o.value!==null&&r.value!==null&&r.value.el!==null&&$.element!==null&&(r.value.scrollTop=$.element.offsetTop-r.value.el.offsetTop)}return t({element:o,navigateDown:w,navigateUp:b,navigateSubmit:S,navigateToFirst:k,navigateToLast:y,resetNavigation:M}),($,j)=>{const X=An("gtm");return _(),L(f(Yl),{ref_key:"scrollable",ref:r,style:Ot({"max-height":m.value})},{default:K(()=>[Ie((_(),T("div",{ref_key:"listElement",ref:o,class:"context-list",onKeydown:[j[0]||(j[0]=vn(At((...U)=>f(b)&&f(b)(...U),["prevent"]),["up"])),j[1]||(j[1]=vn(At((...U)=>f(w)&&f(w)(...U),["prevent"]),["down"])),j[2]||(j[2]=vn(At((...U)=>f(S)&&f(S)(...U),["prevent"]),["enter"]))]},[(_(!0),T(ye,null,We(f(p),(U,R)=>(_(),T(ye,null,[U.type===f(ms).Title?(_(),L(f(VL),St({key:`${f(ms).Title}:${R}`},{ref_for:!0},U.props),null,16)):U.type===f(ms).Option?(_(),L(f(lC),St({key:`${f(ms).Option}:${U.index}`,ref_for:!0,ref:G=>{e.visibleOptions>0&&U.index===e.visibleOptions&&(a.value=(G==null?void 0:G.element)??null)}},{ref_for:!0},U.props,{selected:f(g)(U.props),selectable:e.selectable===!0||e.selectable==="multiple",focused:f(x)(U.index),onSelect:N,onFocus:V}),null,16,["selected","selectable","focused"])):U.type===f(ms).Loader?(_(),L(f(ad),{key:`${f(ms).Loader}:${R}`,size:24,width:2,type:"primary"})):D("",!0)],64))),256)),O("div",{ref_key:"bottomHorizon",ref:l,class:"context-list__bottom-horizon"},null,512)],32)),[[X,e.listGtm]])]),_:1},8,["style"])}}}),vp=J({__name:"Etc",props:{size:{default:"default"},position:{default:"left"},data:{},iconSize:{default:void 0},filled:{type:Boolean,default:!1},buttonSize:{default:void 0}},setup(e){const t=e,n=P(),s=C(()=>t.iconSize!==void 0?t.iconSize:t.size==="small"?16:24),{open:i}=ys();function o(){i(to,{data:t.data},{width:220,target:n.value,positionX:t.position})}return(r,a)=>(_(),T("div",{ref_key:"container",ref:n,class:"etc"},[A(ic,{icon:"dots","icon-size":s.value,"button-size":e.buttonSize,filled:e.filled,onClick:a[0]||(a[0]=l=>o())},null,8,["icon-size","button-size","filled"])],512))}}),zL={class:"modal-window__header"},WL={key:1,class:"modal-window__title"},jL=J({__name:"Modal",props:{title:{default:""},isBackEnabled:{type:Boolean},fit:{default:"default"},classes:{default:()=>[]},etc:{type:Function,default:void 0},height:{},noPadding:{type:Boolean},isCloseButtonVisible:{type:Boolean}},emits:["close","back"],setup(e,{expose:t,emit:n}){const s=mt("modalWindow"),i=mt("modalHeader"),o=n;return t({modalWindow:s,modalHeader:i}),(r,a)=>(_(),T("div",{class:Z(["modal-overlay","modal-overlay--fit-"+e.fit,e.noPadding&&"modal-overlay--no-padding"]),onMousedown:a[2]||(a[2]=At(l=>o("close",l),["self"]))},[O("div",{ref_key:"modalWindow",ref:s,class:Z(["modal-window",...e.classes]),style:Ot({height:e.height!==void 0&&e.height>0?`${e.height}px`:void 0})},[O("div",zL,[O("div",{ref_key:"modalHeader",ref:i,class:"modal-window__header-main"},[e.isBackEnabled?(_(),L(f(Xi),{key:0,class:"modal-window__back",icon:"back",onClick:a[0]||(a[0]=l=>o("back"))}
80)):D("",!0),e.title?(_(),T("div",WL,Y(e.title),1)):D("",!0),e.etc?(_(),L(vp,{key:2,class:"modal-window__etc",data:e.etc,position:"right"},null,8,["data"])):D("",!0)],512),e.isCloseButtonVisible?(_(),L(f(Xi),{key:0,class:"modal-window__close",icon:"cross",onClick:a[1]||(a[1]=l=>o("close",l))})):D("",!0)]),A(f(Yl),{class:"modal-window__content"},{default:K(()=>[Ve(r.$slots,"default")]),_:3})],6)],34))}}),GL={class:"modal-fullpage__inner"},qL={key:0,class:"modal-fullpage__controls"},KL=J({__name:"ModalFullpage",emits:["close","maximize"],setup(e,{expose:t,emit:n}){const{isTwoColumns:s}=an(),{escape:i}=n3(),o=n,r=t3("modal-fullpage-maximized",!1);function a(){r.value=!r.value,o("maximize")}return be(i,l=>{l&&o("close")}),t({modalWindow:null,modalHeader:null}),(l,c)=>(_(),T("div",{class:Z(["modal-fullpage",{"modal-fullpage--maximized":f(r)}]),onMousedown:c[1]||(c[1]=At(u=>o("close"),["self"]))},[O("div",GL,[f(s)?(_(),T("div",qL,[A(f(Xi),{icon:f(r)?"minimize":"maximize",onClick:a},null,8,["icon"]),A(f(Xi),{icon:"cross",onClick:c[0]||(c[0]=u=>o("close"))})])):D("",!0),Ve(l.$slots,"default")])],34))}}),YL=zt(()=>{const e=dn(),t=ct(),{open:n,close:s,back:i,onModalClose:o,onModalBack:r,currentModal:a}=Wt(),l=t.getRoutes().filter(m=>m.redirect!==void 0),c=C(()=>{const m=e.query.modal;if(typeof m!="string"||m.length===0)return;let v,g;for(const b of l)if(b.redirect!==void 0&&MS(b.redirect,e)){v=b,g=t.resolve(b).matched.at(-2);break}if(v!==void 0)return d(v,g)}),u=P(!1);function d(m,v){var y,S,E,x,M,I;if(!q(m.components))return;const g="default",b=m.components[g],w=m.props[g];if(b===void 0||w===void 0)return;let k;switch(typeof w){case"boolean":k=w?(y=e.redirectedFrom)==null?void 0:y.params:void 0;break;case"function":k=w(e);break;case"object":k=m.props}return{component:b,props:k,modal:{type:(S=m.meta)==null?void 0:S.modalType,fit:((E=m.meta)==null?void 0:E.modalFit)??((x=v==null?void 0:v.meta)==null?void 0:x.modalFit),title:(M=m.meta)==null?void 0:M.modalTitle,classes:(I=m.meta)==null?void 0:I.modalClasses,meta:m.meta,properties:{routeName:m==null?void 0:m.name,parentRouteName:v==null?void 0:v.name}}}}function h(){var m;Object.keys(e.query).length!==0&&t.push({path:e.path,query:IM(e.query,(m=c.value)==null?void 0:m.props)})}o(()=>{c.value!==void 0&&h()}),r(({to:m})=>{var v;if(u.value=m!==void 0,setTimeout(()=>{u.value=!1},0),((v=m==null?void 0:m.modal)==null?void 0:v.properties)!==void 0){t.push({name:m.modal.properties.routeName});return}h()}),be(c,async(m,v)=>{var y,S,E,x,M,I;if(u.value)return;if(c.value===void 0){s();return}if(RS(c.value,a.value))return;let{component:g,props:b,modal:w}=c.value;if(typeof g=="function")try{g=await Rt(g)()}catch(N){console.error(N)}const k=(y=w==null?void 0:w.properties)==null?void 0:y.parentRouteName;if(v===void 0&&a.value===void 0&&k!==void 0&&((S=w==null?void 0:w.meta)==null?void 0:S.modalIncludeParentInHistory)===!0){await p(k,()=>{n(g,b,w)});return}if(((x=(E=m==null?void 0:m.modal)==null?void 0:E.properties)==null?void 0:x.routeName)===((I=(M=v==null?void 0:v.modal)==null?void 0:M.properties)==null?void 0:I.parentRouteName)){i({component:g,props:b,modal:w});return}n(g,b,w)},{immediate:!0});async function p(m,v){const g=l.find(({name:w})=>w===m),b=g!==void 0?d(g):void 0;if(b!==void 0){let w=b.component;typeof w=="function"&&(w=await Rt(w)()),n(w,b.props,b.modal)}v()}}),XL=J({__name:"ModalView",setup(e){YL();const{currentModal:t,prevModal:n,close:s,back:i,isOpened:o,transitionName:r,setModalWindowRef:a,setModalHeaderRef:l}=Wt(),c=PS(),u=dn(),d=De(m());let h;const p=C(()=>{var w,k;return((k=(w=d.value)==null?void 0:w.modal)==null?void 0:k.type)==="Fullpage"?KL:jL});function m(){var w,k;if(t.value!==void 0)return{...t.value,isBackEnabled:n.value!==void 0&&((w=t.value.modal)==null?void 0:w.isBackEnabled)!==!1,isCloseButtonVisible:((k=t.value.modal)==null?void 0:k.isCloseButtonVisible)??!0}}async function v(){d.value=m(),await un()}function g(){return typeof document.startViewTransition=="function"}function b(w,k){return g()&&w!==void 0&&k!==void 0&&w.component!==k.component}return be(t,(w,k)=>{if(!b(w,k)){v();return}document.documentElement.dataset.modalTransition=r.value===cu.Prev?"back":"forward",document.startViewTransition(v)}),be(o,w=>{c.value=w,w?h=be(()=>u.path,()=>{s()}):(h==null||h(),h=void 0)}),(w,k)=>{var y,S,E,x,M,I,N;return d.value?(_(),L(nn(p.value),{key:0,ref:V=>{f(a)(V==null?void 0:V.modalWindow),f(l)(V==null?void 0:V.modalHeader)},title:(y=d.value.modal)==null?void 0:y.title,fit:(S=d.value.modal)==null?void 0:S.fit,"is-back-enabled":d.value.isBackEnabled,classes:(E=d.value.modal)==null?void 0:E.
80classes,etc:(x=d.value.modal)==null?void 0:x.etc,height:(I=(M=d.value)==null?void 0:M.state)==null?void 0:I.modalWindowHeight,"no-padding":(N=d.value.modal)==null?void 0:N.noPadding,"is-close-button-visible":d.value.isCloseButtonVisible,onBack:k[0]||(k[0]=V=>f(i)()),onClose:k[1]||(k[1]=V=>f(s)(V))},{default:K(()=>[(_(),L(nn(d.value.component),Oh(Zg(d.value.props)),null,16))]),_:1},40,["title","fit","is-back-enabled","classes","etc","height","no-padding","is-close-button-visible"])):D("",!0)}}}),QL=["disabled"],JL={key:0,class:"button__text"},qe=J({__name:"Button",props:{size:{default:"m"},type:{default:"primary"},icon:{default:null},disabled:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0},isCircle:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},isIconPinned:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=e,s=Yg(),i=C(()=>({s:16,m:20,l:24,xl:24})[n.size]),o=C(()=>{var d;const c=[];c.push("button--size-"+n.size),c.push("button--type-"+n.type);const u=((d=s.default)==null?void 0:d.call(s).some(h=>h.type!==_n))??!1;return u&&q(n.icon)&&c.push("button--with-icon"),u&&q(n.icon)&&n.isIconPinned&&c.push("button--icon-pinned"),!u&&q(n.icon)&&c.push("button--icon-only"),n.isCircle&&c.push("button--circle"),n.rounded&&c.push("button--rounded"),n.isLoading&&c.push("button--loading"),c}),r=C(()=>n.disabled||void 0),a=t;function l(c){r.value||n.isLoading||a("click",c)}return(c,u)=>(_(),T("button",{class:Z(["button",o.value]),disabled:r.value,type:"button",onClick:l},[Ve(c.$slots,"icon",{},()=>[e.icon?(_(),L(f(Re),{key:0,name:e.icon,width:i.value,height:i.value},null,8,["name","width","height"])):D("",!0)]),e.type==="fancy"?(_(),T("span",JL,[Ve(c.$slots,"default")])):Ve(c.$slots,"default",{key:1})],10,QL))}}),Na=J({__name:"InfiniteList",props:{items:{default:()=>[]},isLoading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},isEnded:{type:Boolean,default:!1},endOffset:{default:"200%"},virtualScroll:{default:void 0}},emits:["endReach"],setup(e,{expose:t,emit:n}){var b;const s=e,i=n,o=mt("scrollHorizon"),{virtualListContainer:r,totalHeight:a,visibleItems:l,itemsCount:c,scrollableParent:u,isScrolling:d,isEnabled:h,refresh:p,scrollParentTo:m}=$M(()=>s.items,{itemHeight:()=>{var w;return(w=s.virtualScroll)==null?void 0:w.itemHeight},gap:()=>{var w;return((w=s.virtualScroll)==null?void 0:w.gap)??0},rowsBuffer:()=>{var w;return((w=s.virtualScroll)==null?void 0:w.rowsBuffer)??5},itemsPerRow:()=>{var w;return((w=s.virtualScroll)==null?void 0:w.itemsPerRow)??1},ssrVisibleRowsCount:((b=s.virtualScroll)==null?void 0:b.ssrVisibleRowsCount)??10}),v=C(()=>u.value===null||u.value===window?null:u.value),g=Ba(o,([{isIntersecting:w}])=>{w&&i("endReach")},{root:v,rootMargin:`${s.endOffset} 0px`});return be(c,(w,k)=>{w!==k&&(g.pause(),g.resume())}),t({el:r,isScrolling:d,refresh:()=>{p()},scrollToTop(){m(0)}}),(w,k)=>{var y;return _(),T("div",{ref_key:"virtualListContainer",ref:r,class:Z(["infinite-list",f(d)&&"infinite-list--scrolling",f(h)&&"infinite-list--with-virtual-scroll"]),style:Ot({height:f(a)?`${f(a)+(((y=e.virtualScroll)==null?void 0:y.additionalHeight)??0)}px`:void 0})},[(_(!0),T(ye,null,We(f(l),S=>Ve(w.$slots,"item",{key:S.key,index:S.index,data:S.data,style:Ot(S.rect?{width:S.rect.width?`${S.rect.width}px`:"100%",height:`${S.rect.height}px`,transform:`translate(${S.rect.left}px, ${S.rect.top}px)`}:void 0)})),128)),e.isEnded?D("",!0):(_(),T("div",{key:0,ref_key:"scrollHorizon",ref:o,class:"infinite-list__horizon"},[e.isEmpty?Ve(w.$slots,"skeleton",{key:0}):D("",!0),Ie(A(f(Yn),{class:"infinite-list__loader"},null,512),[[As,e.isLoading]])],512))],6)}}}),Jn=({source:e,size:t,zoom:n,isAllowVideo:s=!0})=>{const o=(e.type===Pt.Movie||e.data.type==="gif")&&s,r=o?e:xn({...e.data,type:"png"}),a=(o||n===!0)&&r.data.width!==r.data.height,l=a?void 0:t;return A(jo,{key:r.data.uuid,type:r.type,data:r.data,size:l,zoom:n===!0?r:!1,cropped:a,rounded:!0,bordered:!0,isGifBehavior:!0},null)},ZL=["value","placeholder","disabled","maxlength"],eO={key:0,class:"textarea__counter"},cC=J({__name:"CustomTextarea",props:{modelValue:{},placeholder:{default:void 0},disabled:{type:Boolean,default:void 0},invalid:{type:Boolean,default:void 0},error:{default:void 0},minHeight:{default:64},isSingleLine:{type:Boolean,default:void 0},iconRight:{default:void 0},maxLength:{default:void 0},onResize:{type:Function,default:void 0}},emits:["focus","blur","update:modelValue"],setup(e,{expose:t,emit:n}){Zi(m=>({af34269e:a.value}));const s=e,i=n,{textarea:o}=M6({input:Cn(s,"modelValue"),onResize:s.onResize}),r=P(!1),a=C(()=>`${s.minHeight}px`),l=C(()=>s.maxLength===void 0?0:s.maxLength-s.modelValue.toString().length);function c(m){return s.maxLength===void 0?!1:m.length>s.maxLength}function u(){s.disabled!==!0&&(r.value=!0,i("focus"))}function d(){r.value=!1,i("blur")}function h(m){const v=m.target.value;if(c(v)){m.preventDefault();return}i("update:modelValue",v)}function p(){var m;(m=o.value)==null||m.focus()}return t({focus:p}),(m,v)=>(_(),L(f(oc),{class:"textarea",focused:r.value,error:e.error,invali
80d:e.invalid,disabled:e.disabled,"icon-right":e.iconRight,"auto-height":!0},Is({default:K(()=>[O("textarea",{ref_key:"textarea",ref:o,class:Z(["textarea__input",e.isSingleLine&&"textarea__input--single-line"]),value:e.modelValue,placeholder:e.placeholder,disabled:e.disabled,maxlength:e.maxLength,onFocus:At(u,["stop","prevent"]),onBlur:d,onInput:h},null,42,ZL),e.maxLength!==void 0?(_(),T("div",eO,Y(l.value),1)):D("",!0)]),_:2},[m.$slots.bottom?{name:"bottom",fn:K(()=>[Ve(m.$slots,"bottom")]),key:"0"}:void 0]),1032,["focused","error","invalid","disabled","icon-right"]))}}),Yb=J({__name:"NotifyDot",props:{size:{default:"default"}},setup(e){return(t,n)=>(_(),T("div",{class:Z(["dot",[`dot--size-${e.size}`]])},null,2))}}),tO={class:"select"},nO={key:0,class:"select__selected"},sO={key:1,class:"select__placeholder"},Bw=J({__name:"Select",props:{modelValue:{},options:{type:Function},placeholder:{},size:{},icon:{},disabled:{type:Boolean},loading:{type:Boolean},invalid:{type:Boolean},error:{},imageUuid:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,i=mt("field"),o=mt("popover"),r=mt("contextList"),a=P(!1),l=C(()=>({name:a.value?"chevron_up":"chevron_down"})),c=P([]),u=C(()=>{if(n.modelValue!==void 0)return c.value.find(y=>y.value===n.modelValue)});function d(y){return y.length>0&&"items"in y[0]}function h(y){return y.length===0?[]:d(y)?y.flatMap(S=>S.items):y}function p(){n.disabled||(a.value=!0)}function m(y){var E;const S=y.relatedTarget;q((E=o.value)==null?void 0:E.element)&&o.value.element.contains(S)===!0||(a.value=!1)}function v(){var y;(y=i.value)==null||y.$el.focus()}function g(){var y;(y=i.value)==null||y.$el.blur()}function b(y){var S,E,x;a.value&&(y.key==="Escape"?g():y.key==="ArrowUp"?((S=r.value)==null||S.navigateUp(),y.preventDefault()):y.key==="ArrowDown"?((E=r.value)==null||E.navigateDown(),y.preventDefault()):y.key==="Enter"&&((x=r.value)==null||x.navigateSubmit(y)))}function w(){n.disabled||(a.value?g():v())}function k(y){g(),s("update:modelValue",y)}return be(()=>n.options,async()=>{if(Array.isArray(n.options))c.value=h(n.options);else{const y=await n.options({setData:()=>{},setLoadingState:()=>{},onAfterDataSet:()=>{}});c.value=h(y)}},{immediate:!0}),(y,S)=>(_(),L(f(oc),{ref_key:"field",ref:i,class:"field--select",size:e.size,"icon-left":e.icon,"icon-right":l.value,focused:a.value,disabled:e.disabled,loading:e.loading,invalid:e.invalid,error:e.error,"image-uuid":e.imageUuid,tabindex:"0",onFocus:p,onBlur:m,onKeydown:b,onClick:At(w,["prevent","stop"]),onMousedown:S[1]||(S[1]=At(()=>{},["prevent"]))},{popover:K(()=>[A(f(n0),{ref_key:"popover",ref:o,onClick:S[0]||(S[0]=At(()=>{},["stop"]))},{default:K(()=>[A(f(to),{ref_key:"contextList",ref:r,selected:e.modelValue,selectable:!0,data:e.options,"onUpdate:selected":k},null,8,["selected","data"])]),_:1},512)]),default:K(()=>[O("div",tO,[u.value?(_(),T("div",nO,Y(u.value.label),1)):e.placeholder?(_(),T("div",sO,Y(e.placeholder),1)):D("",!0)])]),_:1},8,["size","icon-left","icon-right","focused","disabled","loading","invalid","error","image-uuid"]))}}),Qi=J({__name:"Dropdown",props:{options:{},selected:{default:void 0},icon:{default:void 0},iconSize:{default:24}},setup(e){const t=e,{isOpened:n,open:s,popoverTarget:i}=ys(),o=P(),r=C(()=>n.value&&i.value===o.value),a=C(()=>{var c;return(c=t.options.find(u=>u.value===t.selected))==null?void 0:c.label});function l(c){s(to,{data:t.options,selected:t.selected,selectable:!0},{width:"max-content",target:o.value,positionX:c})}return(c,u)=>(_(),T("div",{ref_key:"rootElement",ref:o,class:"dropdown"},[e.icon?(_(),L(f(ic),{key:0,icon:e.icon,"icon-size":e.iconSize,"data-ripple":"center",onClick:u[0]||(u[0]=d=>l("right"))},null,8,["icon","icon-size"])):(_(),T("button",{key:1,class:"dropdown__label",onClick:u[1]||(u[1]=d=>l())},[xe(Y(a.value)+" ",1),A(f(Dc),{class:"dropdown__chevron",state:r.value?"b":"a"},{a:K(()=>[A(f(Re),{name:"chevron_down",width:16,height:16})]),b:K(()=>[A(f(Re),{name:"chevron_up",width:16,height:16})]),_:1},8,["state"])]))],512))}}),iO={class:"feed"},oO={key:0,class:"feed__sorting"},rO={class:"feed__item"},aO={key:3,class:"feed__load-more"},uC=J({__name:"Feed",props:{sortingOptions:{default:void 0},activeSorting:{default:void 0},sortingGtm:{default:void 0},items:{},skeletonItemsCount:{default:0},stubText:{default:void 0},isLoading:{type:Boolean},isPresent:{type:Boolean},isEnded:{type:Boolean},isHandleUgcLinksWithRouter:{type:Boolean},behavior:{default:"auto"},loadMore:{type:Function,default:void 0}},setup(e){const t=e,n=ct(),{t:s}=ft();async function i(){var o;t.behavior==="auto"&&await((o=t.loadMore)==null?void 0:o.call(t))}return(o,r)=>{const a=An("gtm");return _(),T("div",iO,[e.sortingOptions!==void 0&&e.sortingOptions.length>0?(_(),T("div",oO,[Ie(A(f(Qi),{options:e.sortingOptions,selected:e.activeSorting},null,8,["options","selected"]),[[a,e.sortingGtm]])])):D("",!0),o.$slots.header?Ve(o.$slots,"header",{key:1}):D("",!0),e.isPresent?D("",!0):(_(),L(f(qs),{key:2,text:e.stubText},null,8,["text"])),Ie((_(),L(f(Na),{items:e.items,"is-loading":e.isLoading,"is-empty":e.isLoading&&e.items.length===0,"is-ended":e.isEnded,onEndReach:r[0]||(r[0]=l=>i())},{item:K(l=>[O("div",rO,[Ve(o.$slots,"item",{data:l})])]),skeleton:K(()=>[(_(!0),T(ye,null,We(e.skeletonItemsCount,l=>(_(),T("div",{key:l,class:"feed__item feed__item--skeleton"},[Ve(o.$slots,"item-skeleton")]))),128))]),_:3},8,["items","is-loading","is-empty","is-ended"])),[[f(Wb),e.isHandleUgcLinksWithRouter?f(n):!1]]),e.behavior==="manual"&&!e.isLoading&&!e.isEnded&&e.items.length>0?(_(),T("div",aO,[A(f(qe),{size:"xl",type:"subtle",onClick:r[1]||(r[1]=l=>{var c;return(c=e.loadMore)==null?void 0:c.call(e)})},{default:K(()=>[xe(Y(f(s)("common.showMore")),1)]),_:1})])):D("",!0)])}}}),lO=`<svg xmlns="http://www.w3.org/2000/svg" width="113" height="79" fill="none">
80<g filter="url(#a)"><rect width="58.727" height="48.682" x="6.571" y="15.421" fill="var(--theme-color-background-content)" rx="6.182" shape-rendering="crispEdges" transform="rotate(-12.995 6.571 15.42)"/><rect width="38.636" height="3.091" x="13.985" y="20.055" fill="url(#b)" fill-opacity=".24" rx="1.545" transform="rotate(-12.995 13.985 20.055)"/><rect width="30.909" height="3.091" x="15.201" y="25.325" fill="url(#c)" fill-opacity=".24" rx="1.545" transform="rotate(-12.995 15.201 25.325)"/><rect width="23.182" height="3.091" x="16.417" y="30.596" fill="url(#d)" fill-opacity=".24" rx="1.545" transform="rotate(-12.995 16.417 30.596)"/><rect width="46.364" height="18.546" x="17.981" y="37.372" fill="var(--theme-color-background-content)" rx="3.091" transform="rotate(-12.995 17.981 37.372)"/><rect width="46.364" height="18.546" x="17.981" y="37.372" fill="var(--theme-color-text-primary)" fill-opacity=".05" rx="3.091" transform="rotate(-12.995 17.981 37.372)"/><rect width="58.341" height="48.295" x="6.803" y="15.566" stroke="var(--theme-color-text-primary)" stroke-opacity=".05" stroke-width=".386" rx="5.989" shape-rendering="crispEdges" transform="rotate(-12.995 6.803 15.566)"/></g><g filter="url(#e)"><rect width="58.727" height="48.682" x="54.243" y="4.954" fill="var(--theme-color-background-content)" rx="6.182" shape-rendering="crispEdges" transform="rotate(20 54.243 4.954)"/><rect width="38.636" height="3.091" x="57.938" y="12.877" fill="url(#f)" fill-opacity=".24" rx="1.545" transform="rotate(20 57.938 12.877)"/><rect width="30.909" height="3.091" x="56.088" y="17.96" fill="url(#g)" fill-opacity=".24" rx="1.545" transform="rotate(20 56.088 17.96)"/><rect width="23.182" height="3.091" x="54.238" y="23.043" fill="url(#h)" fill-opacity=".24" rx="1.545" transform="rotate(20 54.238 23.043)"/><rect width="46.364" height="18.546" x="51.86" y="29.578" fill="var(--theme-color-background-content)" rx="3.091" transform="rotate(20 51.86 29.578)"/><rect width="46.364" height="18.546" x="51.86" y="29.578" fill="var(--theme-color-text-primary)" fill-opacity=".05" rx="3.091" transform="rotate(20 51.86 29.578)"/><rect width="58.341" height="48.295" x="54.359" y="5.202" stroke="var(--theme-color-text-primary)" stroke-opacity=".05" stroke-width=".386" rx="5.989" shape-rendering="crispEdges" transform="rotate(20 54.359 5.202)"/></g><defs><linearGradient id="b" x1="33.303" x2="33.303" y1="20.055" y2="23.146" gradientUnits="userSpaceOnUse"><stop stop-color="#E1E1E1"/><stop offset="0" stop-color="#D6D6D6"/><stop offset="1" stop-color="#393939"/></linearGradient><linearGradient id="c" x1="30.656" x2="30.656" y1="25.325" y2="28.416" gradientUnits="userSpaceOnUse"><stop stop-color="#E1E1E1"/><stop offset="0" stop-color="#D6D6D6"/><stop offset="1" stop-color="#393939"/></linearGradient><linearGradient id="d" x1="28.008" x2="28.008" y1="30.596" y2="33.687" gradientUnits="userSpaceOnUse"><stop stop-color="#E1E1E1"/><stop offset="0" stop-color="#D6D6D6"/><stop offset="1" stop-color="#393939"/></linearGradient><linearGradient id="f" x1="77.256" x2="77.256" y1="12.877" y2="15.968" gradientUnits="userSpaceOnUse"><stop stop-color="#E1E1E1"/><stop offset="0" stop-color="#D6D6D6"/><stop offset="1" stop-color="#393939"/></linearGradient><linearGradient id="g" x1="71.543" x2="71.543" y1="17.96" y2="21.051" gradientUnits="userSpaceOnUse"><stop stop-color="#E1E1E1"/><stop offset="0" stop-color="#D6D6D6"/><stop offset="1" stop-color="#393939"/></linearGradient><linearGradient id="h" x1="65.829" x2="65.829" y1="23.043" y2="26.134" gradientUnits="userSpaceOnUse"><stop stop-color="#E1E1E1"/><stop offset="0" stop-color="#D6D6D6"/><stop offset="1" stop-color="#393939"/></linearGradient><filter id="a" width="80.534" height="73.004" x="-1.156" y="-.876" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="-1.545" dy="3.091"/><feGaussianBlur stdDeviation="3.091"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.11 0"/>
80<feBlend in2="BackgroundImageFix" result="effect1_dropShadow_1661_141952"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_1661_141952" result="shape"/></filter><filter id="e" width="84.199" height="78.196" x="29.866" y="1.863" color-interpolation-filters="sRGB" filterUnits="userSpaceOnUse"><feFlood flood-opacity="0" result="BackgroundImageFix"/><feColorMatrix in="SourceAlpha" result="hardAlpha" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"/><feOffset dx="-1.545" dy="3.091"/><feGaussianBlur stdDeviation="3.091"/><feComposite in2="hardAlpha" operator="out"/><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.11 0"/><feBlend in2="BackgroundImageFix" result="effect1_dropShadow_1661_141952"/><feBlend in="SourceGraphic" in2="effect1_dropShadow_1661_141952" result="shape"/></filter></defs></svg> 81`,cO={class:"feed-stub"},uO=["innerHTML"],dO={class:"feed-stub__text"},qs=J({__name:"FeedStub",props:{text:{},iconHtml:{},disableIcon:{type:Boolean}},setup(e){const{t}=ft();return(n,s)=>(_(),T("div",cO,[e.disableIcon?D("",!0):(_(),T("div",{key:0,class:"feed-stub__icon",innerHTML:e.iconHtml??f(lO)},null,8,uO)),O("p",dO,Y(e.text??f(t)("common.emptyStubText")),1)]))}}),fO=["value","tabindex","checked","disabled"],hO={class:"checkbox__control"},pO={key:0,class:"checkbox__caption"},Am=J({__name:"Checkbox",props:{modelValue:{type:[Boolean,Array]},value:{default:void 0},tabindex:{default:0},caption:{default:void 0},invalid:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,i=C(()=>n.value!==void 0&&Array.isArray(n.modelValue)?n.modelValue.includes(n.value):n.modelValue),o=C(()=>{const a=["checkbox"];return q(i.value)&&i.value!==!1&&a.push("checkbox--checked"),n.invalid&&a.push("checkbox--invalid"),n.disabled&&a.push("checkbox--disabled"),a});function r(){let a=Array.isArray(i.value)?[]:!i.value;n.value!==void 0&&Array.isArray(n.modelValue)&&(a=[...n.modelValue],q(i.value)&&i.value!==!1?a.splice(a.indexOf(n.value),1):a.push(n.value)),s("update:modelValue",a)}return(a,l)=>(_(),T("label",{class:Z(o.value)},[O("input",{value:e.value,type:"checkbox",tabindex:e.tabindex,checked:i.value,disabled:e.disabled,class:"checkbox__input",onChange:r},null,40,fO),O("div",hO,[i.value?(_(),L(f(Re),{key:0,name:"tick",width:16,height:16,class:"checkbox__icon"})):D("",!0)]),e.caption?(_(),T("div",pO,Y(e.caption),1)):D("",!0)],2))}}),mO={class:"form-section"},vO={key:0,class:"form-section__header"},gO={class:"form-section__label"},bO={key:0,class:"form-section__right"},du=J({__name:"FormSection",props:{label:{}},setup(e){return(t,n)=>(_(),T("div",mO,[e.label?(_(),T("div",vO,[O("div",gO,Y(e.label),1),t.$slots.right?(_(),T("div",bO,[Ve(t.$slots,"right")])):D("",!0)])):D("",!0),Ve(t.$slots,"default")]))}}),yO=["value","tabindex","checked","disabled"],wO={key:0,class:"radio__caption"},dC=J({__name:"Radio",props:{modelValue:{type:[Boolean,Number,String]},value:{type:[Boolean,Number,String],default:void 0},tabindex:{default:0},caption:{default:void 0},invalid:{type:Boolean},disabled:{type:Boolean}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,i=C(()=>n.value===n.modelValue),o=C(()=>{const a=["radio"];return i.value&&a.push("radio--checked"),n.invalid&&a.push("radio--invalid"),n.disabled&&a.push("radio--disabled"),a});function r(){s("update:modelValue",n.value)}return(a,l)=>(_(),T("label",{class:Z(o.value)},[O("input",{value:e.value,type:"radio",tabindex:e.tabindex,checked:i.value,disabled:e.disabled,class:"radio__input",onChange:r},null,40,yO),l[0]||(l[0]=O("div",{class:"radio__control"},null,-1)),e.caption?(_(),T("div",wO,Y(e.caption),1)):D("",!0)],2))}}),Tt=J({__name:"ClientOnly",setup(e){const t=Yg(),n=P(!1);return je(()=>{n.value=!0}),(s,i)=>n.value&&f(t).default?Ve(s.$slots,"default",{key:0}):D("",!0)}}),_O={class:"offer"},kO={key:0,class:"offer__icon"},SO={key:1,class:"offer__title"},CO={class:"offer__text"},EO={class:"offer__buttons"},xO=J({__name:"Offer",props:{title:{},text:{},icon:{},confirmText:{},cancelText:{},copyText:{},confirmHandler:{type:Function},cancelHandler:{type:Function}},setup(e){const t=e,{copy:n}=Qh(),{alert:s,AlertType:i}=fn(),{t:o}=ft();async function r(){t.copyText!==void 0&&(await n(t.copyText),s({type:i.Success,text:o("common.copied")}))}return(a,l)=>(_(),T("div",_O,[e.icon?(_(),T("div",kO,[A(f(Re),{width:72,height:72,name:e.icon}
81,null,8,["name"])])):D("",!0),e.title?(_(),T("div",SO,Y(e.title),1)):D("",!0),O("div",CO,Y(e.text),1),e.copyText?(_(),L(f(oc),{key:2,class:"offer__copy","icon-right":{name:"copy"},onLabelClick:r},{default:K(()=>[O("span",null,Y(e.copyText),1)]),_:1})):D("",!0),O("div",EO,[e.confirmText?(_(),L(f(qe),{key:0,size:"xl",type:"primary",onClick:e.confirmHandler},{default:K(()=>[xe(Y(e.confirmText),1)]),_:1},8,["onClick"])):D("",!0),e.cancelText?(_(),L(f(qe),{key:1,size:"xl",type:"minimal",onClick:e.cancelHandler},{default:K(()=>[xe(Y(e.cancelText),1)]),_:1},8,["onClick"])):D("",!0)])]))}}),TO=J({__name:"Counter",props:{value:{},isShort:{type:Boolean}},setup(e){const t=e,n=P(Zt(t.value,{short:t.isShort}));return be(()=>t.value,s=>{n.value=Zt(s,{short:t.isShort})}),(s,i)=>(_(),T("span",{class:Z(s.$style.counter)},[(_(!0),T(ye,null,We(n.value,(o,r)=>(_(),T("span",{key:r,class:Z(s.$style.counter__char)},[O("span",{class:Z(s.$style["counter__real-char"])},Y(o),3),A(qn,{"enter-active-class":s.$style["counter__fake-char--enter-active"],"leave-active-class":s.$style["counter__fake-char--leave-active"],"enter-from-class":s.$style["counter__fake-char--enter-from"],"leave-to-class":s.$style["counter__fake-char--leave-to"],mode:"out-in"},{default:K(()=>[(_(),T("span",{key:o,class:Z(s.$style["counter__fake-char"])},Y(o),3))]),_:2},1032,["enter-active-class","leave-active-class","enter-from-class","leave-to-class"])],2))),128))],2))}}),AO="_39DJJQF2",PO="_0PZnYbgd",RO={counter:AO,counter__char:PO,"counter__real-char":"jRnorpxQ","counter__fake-char":"_1c6ot4vq","counter__fake-char--enter-active":"qVPXqM4Z","counter__fake-char--leave-active":"_3gsu7YJY","counter__fake-char--enter-from":"FslUTOwC","counter__fake-char--leave-to":"Zcyh3MIE","underlay-in":"n6Y7Soiq","modal-enter":"ZNsVcEN-","modal-enter-slide":"NvkCJkEc"},IO={$style:RO},Xb=ot(TO,[["__cssModules",IO]]),MO=["data-state"],$O=["aria-hidden"],LO=["aria-hidden"],OO=J({__name:"SwapTransition",props:{state:{}},setup(e){return(t,n)=>(_(),T("span",{class:Z(t.$style.root),"data-state":e.state},[O("span",{class:Z(t.$style.layer),"data-layer":"a","aria-hidden":e.state!=="a"},[Ve(t.$slots,"a")],10,$O),O("span",{class:Z(t.$style.layer),"data-layer":"b","aria-hidden":e.state!=="b"},[Ve(t.$slots,"b")],10,LO)],10,MO))}}),BO="h6EBfzHf",DO="sPsHQ8tA",NO={root:BO,layer:DO,"underlay-in":"IS23kk3K","modal-enter":"Sy9-HBxH","modal-enter-slide":"mMJJnmZM"},FO={$style:NO},Dc=ot(OO,[["__cssModules",FO]]),UO={title:{t:0,b:{t:2,i:[{t:3}],s:"ÐнеÑний вид"}},fontFamily:{t:0,b:{t:2,i:[{t:3}],s:"СемейÑÑво ÑÑиÑÑов"}},fontSmoothing:{t:0,b:{t:2,i:[{t:3}],s:"Сглаживание ÑÑиÑÑа"}},locale:{t:0,b:{t:2,i:[{t:3}],s:"ЯзÑк инÑеÑÑейÑа"}},themes:{auto:{t:0,b:{t:2,i:[{t:3}],s:"СиÑÑемнаÑ"}},light:{t:0,b:{t:2,i:[{t:3}],s:"СвеÑлаÑ"}},dark:{t:0,b:{t:2,i:[{t:3}],s:"ТÑмнаÑ"}},menu:{auto:{t:0,b:{t:2,i:[{t:3}],s:"СиÑÑÐµÐ¼Ð½Ð°Ñ Ñема"}},light:{t:0,b:{t:2,i:[{t:3}],s:"СвеÑÐ»Ð°Ñ Ñема"}},dark:{t:0,b:{t:2,i:[{t:3}],s:"ТÑÐ¼Ð½Ð°Ñ Ñема"}}}}},HO=Object.freeze(Object.defineProperty({__proto__:null,ru:UO},Symbol.toStringTag,{value:"Module"})),VO=[{path:"/appearance",name:"Appearance",component:Rt(async()=>await Ce(()=>import("./Appearance-Dq0pHQBI.js"),__vite__mapDeps([7,8]))),redirect:"?modal=appearance"}];class zO{constructor(t){this.repository=t}get appearance(){return this.repository.getAllAppearanceParams()}setTheme(t){return this.repository.setTheme(t)}getTheme(){return this.repository.getTheme()}switchFontFamily(t){this.repository.setFontFamily(t)}switchFontSmoothing(t){this.repository.setFontSmoothing(t)}applyLocale(t){this.repository.setCurrentLocale(t)}}class WO{constructor(t){le(this,"initialState");this.initialState=t}get(t){const n=this.initialState[t];return n!==void 0?as(n):void 0}set(t,n){this.initialState[t]=n}async hydrate(t,n){let s=this.get(t);return s===void 0&&(s=await n()),s}}var vl,q_;let Ks=(q_=class{constructor(){Fe(this,vl)}get store(){return fe(this,vl)===void 0&<(this,vl,this.createStore()),fe(this,vl)}},vl=new WeakMap,q_);class jO extends Ks{constructor(t){super(),this.createStore=t}setTheme(t){this.store.setTheme(t)}getTheme(){return this.store.getTheme()}setFontFamily(t){this.store.setFontFamily(t)}setFontSmoothing(t){this.store.setFontSmoothing(t)}getAllAppearanceParams(){return this.store.getAppearance()}setCurrentLocale(t){this.store.setLocale(t)}}var Qb=(e=>(e.Roboto="Roboto",e.SystemUi="system-ui",e))(Qb||{}),fC=(e=>(e.Default="Default",e.Antialiased="Antialiased",e))(fC||{}),Cr=(e=>(e.Auto="auto",e.Light="light",e.Dark="dark",e))(Cr||{}),vr=(e=>(e.Light="light",e.Dark="dark",e))(vr||{}),Fu,qv;class GO{constructor(){Fe(this,Fu);le(this,"themeCookieName","theme");le(this,"theme");le(this,"appearanceStored",Xn("app-appearance",{fontFamily:Qb.Roboto,fontSmoothing:fC.Antialiased,locale:Eb.Ru}));const t=fe(this,Fu,qv).get(this.themeCookieName)??Cr.Auto;this.theme=P(t)}setTheme(t){this.theme.value=t,fe(this,Fu,qv).set(this.themeCookieName,t,{maxAge:"none"})}getTheme(){return this.theme.value}setFontFamily(t){this.appearanceStored.value.fontFamily=t}setFontSmoothing(t){this.appearanceStored.value.fontSmoothing=t}setLocale(t){this.appearanceStored.value.locale=t}getAppearance(){return this.appearanceStored.value}}Fu=new WeakSet,qv=function(){return pt().resolve("CookieManager")};function qO(){const e=pt();
81return e.isRegistered("AppearanceService")||e.register("AppearanceService",()=>new zO(new jO(()=>new GO))),e.resolve("AppearanceService")}const hC=()=>ft(),Jb=zt(()=>{const e=qO(),{locale:t}=hC(),n=e.appearance;function s(a){if(a!==Qb.SystemUi)return`https://fonts.googleapis.com/css2?family=${a}:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap`}const i=C({get(){return n.locale},set(a){e.applyLocale(a),t.value=a}});function o(){return e.getTheme()}function r(a){e.setTheme(a)}return t.value=n.locale,nc({bodyAttrs:{"data-font-family":()=>n.fontFamily,"data-font-smoothing":()=>n.fontSmoothing},link:[{rel:"preconnect",href:"https://fonts.googleapis.com"},{rel:"preconnect",href:"https://fonts.gstatic.com",crossorigin:"anonymous"},{rel:"stylesheet",href:s(n.fontFamily)}]}),{fontFamily:C({get(){return n.fontFamily},set(a){e.switchFontFamily(a)}}),fontSmoothing:C({get(){return n.fontSmoothing},set(a){e.switchFontSmoothing(a)}}),preferredLocale:i,getTheme:o,setTheme:r}});function pC(e){const t=parseInt(e.slice(0,2),16),n=parseInt(e.slice(2,4),16),s=parseInt(e.slice(4,6),16),o=[t/255,n/255,s/255].map(a=>a<=.03928?a/12.92:Math.pow((a+.055)/1.055,2.4));return .2126*o[0]+.7152*o[1]+.0722*o[2]<.179}pC("#FF5577".substring(1));function KO(e){return[{value:Cr.Auto,label:e("appearance.themes.auto"),menuLabel:e("appearance.themes.menu.auto"),icon:"theme"},{value:Cr.Light,label:e("appearance.themes.light"),menuLabel:e("appearance.themes.menu.light"),icon:"sun"},{value:Cr.Dark,label:e("appearance.themes.dark"),menuLabel:e("appearance.themes.menu.dark"),icon:"moon"}]}function YO(e,t){const n=t.find(s=>s.value===e)??t[0];return{theme:e,icon:n.icon,label:n.menuLabel}}const XO=Pn(()=>{const{t:e}=hC(),{open:t}=ys(),{getTheme:n,setTheme:s}=Jb(),i=C(()=>n()),o=KO(e),r=C(()=>YO(i.value,o)),a=C(()=>o.map(w=>({...w,action:(k,y)=>{y.stopPropagation(),h(w.value)},gtm:["Theme Switcher â Click",{theme:w.value}]}))),l=P(),c=P(m()),u=C(()=>l.value??c.value),d=pC("#FF5577".substring(1));nc({htmlAttrs:{"data-theme":i},meta:[{name:"theme-color",content:u},{name:"apple-mobile-web-app-status-bar-style",content:u}]}),Tr(i,()=>{c.value=m()},{debounce:50});function h(w){s(w)}function p(w){l.value=w}function m(){return qr("--theme-color-brand-header")}function v(w){t(to,{data:a.value,selectable:!0,selected:i},{target:w})}const g=f6(),b=C(()=>i.value===Cr.Auto?g.value?vr.Dark:vr.Light:i.value===Cr.Dark?vr.Dark:vr.Light);return{currentTheme:r,colorMode:b,themesPopoverOptions:a,isHighContrastBrandColor:d,setCustomThemeColor:p,showThemeSwitcher:v}}),Ps=XO,QO=Object.freeze(Object.defineProperty({__proto__:null,ColorMode:vr,Theme:Cr,messages:HO,routes:VO,useAppearance:Jb,useThemes:Ps},Symbol.toStringTag,{value:"Module"})),JO=` 82 attribute vec2 a_position; 83 attribute float a_opacity; 84 uniform float u_pointSize; 85 varying float v_opacity; 86 87 void main() { 88 gl_Position = vec4(a_position, 0.0, 1.0); 89 gl_PointSize = u_pointSize; 90 v_opacity = a_opacity; 91 } 92`,ZO=` 93 precision mediump float; 94 varying float v_opacity; 95 uniform vec3 u_dotColor; 96 97 void main() { 98 vec2 coord = gl_PointCoord - vec2(0.5, 0.5); 99 float dist = dot(coord, coord); 100 101 if (dist > 0.25) { 102 discard; 103 } 104 105 gl_FragColor = vec4(u_dotColor, v_opacity); 106 } 107`,eB=J({__name:"SpoilerLayer",props:{overlayType:{default:"media"},enableDots:{type:Boolean,default:!0},interactive:{type:Boolean,default:!1}},emits:["click"],setup(e,{expose:t,emit:n}){const s=e,i=n;function o(S){s.interactive&&i("click",S)}const{colorMode:r}=Ps(),a=mt("rootEl"),l=mt("canvasWrapper"),c=P(!1);let u=null;const{observeElement:d,unobserveElement:h}=hp({rootMargin:"10% 0px",threshold:0,once:!1}),p=C(()=>{const S="255, 255, 255",E="0, 0, 0";return s.overlayType==="media"||r.value===vr.Dark?S:E}),m=C(()=>({baseSpeed:.5,dotRadius:1.8,opacityChangeSpeed:.05,curveFactorRange:[-.02,.05],dpr:typeof window<"u"?window.devicePixelRatio:1,dotsColorRGB:p}));function v(S,E,x,M){const I=Math.floor(E*x/60),N=new Float32Array(I*2),V=new Float32Array(I*2),$=new Float32Array(I),j=new Float32Array(I),X=new Float32Array(I),U=M.baseSpeed/E,R=M.baseSpeed/x;for(let ke=0;ke<I;ke++){N[ke*2]=Math.random()*2-1,N[ke*2+1]=Math.random()*2-1;const Se=Math.random()*2*Math.PI;V[ke*2]=Math.cos(Se)*U,V[ke*2+1]=Math.sin(Se)*R,$[ke]=Math.random(),j[ke]=Se,X[ke]=Math.random()*(M.curveFactorRange[1]-M.curveFactorRange[0])+M.curveFactorRange[0]}const G=S.createBuffer(),H=S.createBuffer(),se=S.createBuffer(),ue=S.createBuffer(),de=S.createBuffer();if(G===null||se===null||H===null||ue===null||de===null)throw new Error("Could not create buffers");return S.bindBuffer(S.ARRAY_BUFFER,G),S.bufferData(S.ARRAY_BUFFER,N,S.DYNAMIC_DRAW),S.bindBuffer(S.ARRAY_BUFFER,H),S.bufferData(S.ARRAY_BUFFER,V,S.DYNAMIC_DRAW),S.bindBuffer(S.ARRAY_BUFFER,se),S.bufferData(S.ARRAY_BUFFER,$,S.DYNAMIC_DRAW),S.bindBuffer(S.ARRAY_BUFFER,ue),S.bufferData(S.ARRAY_BUFFER,j,S.DYNAMIC_DRAW),S.bindBuffer(S.ARRAY_BUFFER,de),S.bufferData(S.ARRAY_BUFFER,X,S.DYNAMIC_DRAW),{positionBuffer:G,velocityBuffer:H,opacityBuffer:se,angleBuffer:ue,curveFactorBuffer:de,numDots:I,positions:N,velocities:V,opacities:$,angles:j,curveFactors:X,speedX:U,speedY:R}}function g(S,E,x,M,I){const N=S.getAttribLocation(E,"a_position"),V=S.getAttribLocation(E,"a_opacity"),$=S.getUniformLocation(E,"u_pointSize"),j=S.getUniformLocation(E,"u_dotColor"),X=new Float32Array(x.numDots);let U=0;const R=1e3/120;for(let G=0;G<x.numDots;G++)X[G]=Math.random()>.5?1:-1;return function G(H){if(I.animationFrameId!==void 0){if(H-U<R){I.animationFrameId=requestAnimationFrame(G);return}U=H;for(let se=0;se<x.numDots;se++)x.angles[se]+=x.curveFactors[se],x.positions[se*2]+=Math.cos(x.angles[se])*x.speedX,x.positions[se*2+1]+=Math.sin(x.angles[se])*x.speedY,(x.positions[se*2]<-1||x.positions[se*2]>1)&&(x.angles[se]=Math.PI-x.angles[se]),(x.positions[se*2+1]<-1||x.positions[se*2+1]>
1071)&&(x.angles[se]=-x.angles[se]),x.opacities[se]+=M.opacityChangeSpeed*X[se],x.opacities[se]<=0?(x.opacities[se]=0,X[se]=Math.random()<.05?0:1):x.opacities[se]>=1&&(x.opacities[se]=1,X[se]=Math.random()<.05?0:-1),X[se]===0&&Math.random()<.02&&(X[se]=Math.random()>.5?1:-1);S.bindBuffer(S.ARRAY_BUFFER,x.positionBuffer),S.bufferSubData(S.ARRAY_BUFFER,0,x.positions),S.vertexAttribPointer(N,2,S.FLOAT,!1,0,0),S.enableVertexAttribArray(N),S.bindBuffer(S.ARRAY_BUFFER,x.opacityBuffer),S.bufferSubData(S.ARRAY_BUFFER,0,x.opacities),S.vertexAttribPointer(V,1,S.FLOAT,!1,0,0),S.enableVertexAttribArray(V),S.uniform1f($,M.dotRadius*M.dpr),S.uniform3fv(j,M.dotsColorRGB.value.split(",").map(se=>parseFloat(se)/255)),S.clear(S.COLOR_BUFFER_BIT),S.drawArrays(S.POINTS,0,x.numDots),I.animationFrameId!==void 0&&(I.animationFrameId=requestAnimationFrame(G))}}}function b(S,E,x){const M=document.createElement("canvas");M.width=S*m.value.dpr,M.height=E*m.value.dpr,M.style.maxWidth=`${S}px`,M.style.maxHeight=`${E}px`,x.appendChild(M);const I=M.getContext("webgl");if(I==null)throw new Error("WebGL context is not defined");I.enable(I.BLEND),I.blendFunc(I.SRC_ALPHA,I.ONE_MINUS_SRC_ALPHA);const N=r$(I,JO,ZO);if(N==null)throw new Error("WebGL program creation failed");const V=v(I,S,E,m.value),$=I.getAttachedShaders(N);if($===null||$.length!==2)throw new Error("Failed to get shaders");const j={gl:I,buffers:[V.positionBuffer,V.velocityBuffer,V.opacityBuffer,V.angleBuffer,V.curveFactorBuffer],program:N,shaders:$,animationFrameId:void 0};return j.animationFrameId=requestAnimationFrame(g(I,N,V,m.value,j)),j}function w(){var V,$,j;if(u===null)return;const{gl:S,buffers:E,program:x,shaders:M,animationFrameId:I}=u;u.animationFrameId=void 0,I!==void 0&&cancelAnimationFrame(I),E.forEac
107h(X=>{S.deleteBuffer(X)}),M.forEach(X=>{S.deleteShader(X)}),S.deleteProgram(x),(V=S.getExtension("WEBGL_lose_context"))==null||V.loseContext();const N=($=l.value)==null?void 0:$.querySelector("canvas");(j=N==null?void 0:N.parentNode)==null||j.removeChild(N),u=null}function k(){!s.enableDots||a.value===null||d(a.value,S=>{var E,x;if(S){if(u===null&&!c.value&&l.value!==null){const M=Math.max(1,((E=a.value)==null?void 0:E.clientWidth)??1),I=Math.max(1,((x=a.value)==null?void 0:x.clientHeight)??1);u=b(M,I,l.value)}}else u!==null&&w()})}function y(){return new Promise(S=>{var x;c.value=!0;const E=(x=l.value)==null?void 0:x.querySelector("canvas");if(E==null){window.setTimeout(S,300);return}E.addEventListener("transitionend",()=>{S()},{once:!0}),E.classList.add("hidden")})}return je(()=>{k()}),et(()=>{a.value!==null&&h(a.value),w()}),t({dismiss:y}),(S,E)=>(_(),T("div",{ref_key:"rootEl",ref:a,class:Z(["spoiler-layer",{"spoiler-layer--dismissing":c.value,"spoiler-layer--interactive":e.interactive}]),onClick:o},[O("div",{ref:"overlayEl",class:Z(["spoiler-layer__overlay",`spoiler-layer__overlay--${e.overlayType}`,c.value&&"spoiler-layer__overlay--hidden"])},null,2),O("div",{ref_key:"canvasWrapper",ref:l,class:"spoiler-layer__canvas-wrapper"},null,512)],2))}}),mC=ot(eB,[["__scopeId","data-v-efb9bad6"]]),tB=J({__name:"Spoiler",props:{blockType:{},colorMode:{}},setup(e){const t=e,n=mt("spoilerEl"),s=mt("layer");let i=null;function o(h){switch(h){case"text":case"header":case"list":case"quote":case"audio":return"text";default:return"media"}}const r=C(()=>o(t.blockType));function a(h){return h==="media"||h==="video"}function l(h,p){const m=h.parentElement;if(m===null)return;const v=m.getBoundingClientRect(),g=p.getBoundingClientRect();h.classList.add("spoiler--fit-media"),h.style.left=`${g.left-v.left}px`,h.style.right="auto",h.style.top=`${g.top-v.top}px`,h.style.width=`${g.width}px`,h.style.height=`${g.height}px`}function c(h){if(!a(t.blockType))return;const p=h.parentElement,m=(p==null?void 0:p.querySelector(".andropov-media"))??null;m!==null&&(l(h,m),i=new ResizeObserver(()=>{l(h,m)}),i.observe(m))}async function u(){var h,p,m;(h=n.value)==null||h.classList.add("spoiler--hidden"),await((p=s.value)==null?void 0:p.dismiss()),d(),(m=n.value)==null||m.remove()}function d(){i!==null&&(i.disconnect(),i=null)}return je(()=>{n.value!==null&&c(n.value)}),et(()=>{d()}),(h,p)=>(_(),T("div",{ref_key:"spoilerEl",ref:n,class:Z(["spoiler",`spoiler--${t.blockType}`]),onClick:u},[A(mC,{ref_key:"layer",ref:s,"overlay-type":r.value,"enable-dots":t.blockType!=="rawhtml"},null,8,["overlay-type","enable-dots"])],2))}}),nB=ot(tB,[["__scopeId","data-v-61439df3"]]),vC=({gap:e=20},{slots:t})=>{var n;return A("div",{class:"layout-column",style:{"--gap":`${e}px`}},[(n=t.default)==null?void 0:n.call(t)])},sB=({title:e,titleTag:t="h2",withTypography:n},{slots:s})=>{var i,o;return A("div",{class:["layout-island",n&&"layout-island--with-typography"]},[(i=s.top)==null?void 0:i.call(s),A("div",{class:"layout-island__wrapper"},[e&&cn(t,{class:"layout-island__title"},e),(o=s.default)==null?void 0:o.call(s)])])},iB={class:"navbar"},oB={key:0,class:"navbar__left"},rB={key:2,class:"navbar__right"},Dr=J({__name:"Navbar",props:{title:{},isTitleH1:{type:Boolean}},setup(e){return(t,n)=>(_(),T("div",iB,[t.$slots.left?(_(),T("div",oB,[Ve(t.$slots,"left")])):D("",!0),e.title?(_(),L(nn(e.isTitleH1?"h1":"div"),{key:1,class:"navbar__title"},{default:K(()=>[xe(Y(e.title),1)]),_:1})):D("",!0),Ve(t.$slots,"default"),t.$slots.right?(_(),T("div",rB,[Ve(t.$slots,"right")])):D("",!0)]))}});var aB=Object.defineProperty,lB=(e,t,n)=>t in e?aB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fu=(e,t,n)=>lB(e,typeof t!="symbol"?t+"":t,n);const Dw={"#":{pattern:/[0-9]/},"@":{pattern:/[a-zA-Z]/},"*":{pattern:/[a-zA-Z0-9]/}},Nw=(e,t,n)=>e.replaceAll(t,"").replace(n,".").replace("..",".").replace(/[^.\d]/g,""),Fw=(e,t,n)=>{var s;return new Intl.NumberFormat(((s=n.number)==null?void 0:s.locale)??"en",{minimumFractionDigits:e,maximumFractionDigits:t,roundingMode:"trunc"})},cB=(e,t=!0,n)=>{var s,i,o,r;const a=((s=n.number)==null?void 0:s.unsigned)!==!0&&e.startsWith("-")?"-":"",l=((i=n.number)==null?void 0:i.fraction)??0;let c=Fw(0,l,n);const u=c.formatToParts(1000.12),d=((o=u.find(g=>g.type==="group"))==null?void 0:o.value)??" ",h=((r=u.find(g=>g.type==="decimal"))==null?void 0:r.value)??".",p=Nw(e,d,h);if(Number.isNaN(parseFloat(p)))return a;const m=p.split(".");if(m[1]!=null&&m[1].length>=1){const g=m[1].length<=l?m[1].length:l;c=Fw(g,l,n)}let v=c.format(parseFloat(p));return t?l>0&&p.endsWith(".")&&!p.slice(0,-1).includes(".")&&(v+=h):v=Nw(v,d,h),a+v},gC=e=>JSON.parse(e.replaceAll("'",'"')),uB=(e,t={})=>{const n={...t};e.dataset.maska!=null&&e.dataset.maska!==""&&(n.mask=dB(e.dataset.maska)),e.dataset.maskaEager!=null&&(n.eager=zd(e.dataset.maskaEager)),e.dataset.maskaReversed!=null&&(n.reversed=zd(e.dataset.maskaReversed)),e.dataset.maskaTokensReplace!=null&&(n.tokensReplace=zd(e.dataset.maskaTokensReplace)),e.dataset.maskaTokens!=null&&(n.tokens=fB(e.dataset.maskaTokens));const s={};return e.dataset.maskaNumberLocale!=null&&(s.locale=e.dataset.maskaNumberLocale),e.dataset.maskaNumberFraction!=null&&(s.fraction=parseInt(e.dataset.maskaNumberFraction)),e.dataset.maskaNumberUnsigned!=null&&(s.unsigned=zd(e.dataset.maskaNumberUnsigned)),(e.dataset.maskaNumber!=null||Object.values(s).length>0)&&(n.number=s),n},zd=e=>e!==""?!!JSON.parse(e):!0,dB=e=>e.startsWith("[")&&e.endsWith("]")?gC(e):e,fB=e=>{if(e.startsWith("{")&&e.endsWith("}"))return gC(e);const t={};return e.split("|").forEach(n=>{const s=n.split(":");t[s[0]]={pattern:bC()?new RegExp(s[1],"u"):new RegExp(s[1]),optional:s[2]==="optional",multiple:s[2]==="multiple",repeated:s[2]==="repeated"}}),t},bC=()=>{try{return new RegExp("\\p{L}","u"),!0}catch{return!1}};let hB=class{constructor(t={}){fu(this,"opts",{}
vendor: 4,298 bytes, line 107
107),fu(this,"memo",new Map);const n={...t};if(n.tokens!=null){n.tokens=n.tokensReplace?{...n.tokens}:{...Dw,...n.tokens};for(const s of Object.values(n.tokens))typeof s.pattern=="string"&&(s.pattern=bC()?new RegExp(s.pattern,"u"):new RegExp(s.pattern))}else n.tokens=Dw;Array.isArray(n.mask)&&(n.mask.length>1?n.mask=[...n.mask].sort((s,i)=>s.length-i.length):n.mask=n.mask[0]??""),n.mask===""&&(n.mask=null),this.opts=n}masked(t){return this.process(String(t),this.findMask(String(t)))}unmasked(t){return this.process(String(t),this.findMask(String(t)),!1)}isEager(){return this.opts.eager===!0}isReversed(){return this.opts.reversed===!0}completed(t){const n=this.findMask(String(t));if(this.opts.mask==null||n==null)return!1;const s=this.process(String(t),n).length;return typeof this.opts.mask=="string"?s>=this.opts.mask.length:s>=n.length}findMask(t){const n=this.opts.mask;if(n==null)return null;if(typeof n=="string")return n;if(typeof n=="function")return n(t);const s=this.process(t,n.slice(-1).pop()??"",!1);return n.find(i=>this.process(t,i,!1).length>=s.length)??""}escapeMask(t){const n=[],s=[];return t.split("").forEach((i,o)=>{i==="!"&&t[o-1]!=="!"?s.push(o-s.length):n.push(i)}),{mask:n.join(""),escaped:s}}process(t,n,s=!0){if(this.opts.number!=null)return cB(t,s,this.opts);if(n==null)return t;const i=`v=${t},mr=${n},m=${s?1:0}`;if(this.memo.has(i))return this.memo.get(i);const{mask:o,escaped:r}=this.escapeMask(n),a=[],l=this.opts.tokens!=null?this.opts.tokens:{},c=this.isReversed()?-1:1,u=this.isReversed()?"unshift":"push",d=this.isReversed()?0:o.length-1,h=this.isReversed()?()=>g>-1&&b>-1:()=>g<o.length&&b<t.length,p=k=>!this.isReversed()&&k<=d||this.isReversed()&&k>=d;let m,v=-1,g=this.isReversed()?o.length-1:0,b=this.isReversed()?t.length-1:0,w=!1;for(;h();){const k=o.charAt(g),y=l[k],S=(y==null?void 0:y.transform)!=null?y.transform(t.charAt(b)):t.charAt(b);if(!r.includes(g)&&y!=null?(S.match(y.pattern)!=null?(a[u](S),y.repeated?(v===-1?v=g:g===d&&g!==v&&(g=v-c),d===v&&(g-=c)):y.multiple&&(w=!0,g-=c),g+=c):y.multiple?w&&(g+=c,b-=c,w=!1):S===m?m=void 0:y.optional&&(g+=c,b-=c),b+=c):(s&&!this.isEager()&&a[u](k),S===k&&!this.isEager()?b+=c:m=k,this.isEager()||(g+=c)),this.isEager())for(;p(g)&&(l[o.charAt(g)]==null||r.includes(g));){if(s){if(a[u](o.charAt(g)),t.charAt(b)===o.charAt(g)){g+=c,b+=c;continue}}else o.charAt(g)===t.charAt(b)&&(b+=c);g+=c}}return this.memo.set(i,a.join("")),this.memo.get(i)}},pB=class{constructor(t,n={}){fu(this,"items",new Map),fu(this,"eventAbortController"),fu(this,"onInput",s=>{if(s instanceof CustomEvent&&s.type==="input"&&!s.isTrusted&&!s.bubbles)return;const i=s.target,o=this.items.get(i);if(o===void 0)return;const r="inputType"in s&&s.inputType.startsWith("delete"),a=o.isEager(),l=r&&a&&o.unmasked(i.value)===""?"":i.value;this.fixCursor(i,r,()=>this.setValue(i,l))}),this.options=n,this.eventAbortController=new AbortController,this.init(this.getInputs(t))}update(t={}){this.options={...t},this.init(Array.from(this.items.keys()))}updateValue(t){var n;t.value!==""&&t.value!==((n=this.processInput(t))==null?void 0:n.masked)&&this.setValue(t,t.value)}destroy(){this.eventAbortController.abort(),this.items.clear()}init(t){const n=this.getOptions(this.options);for(const s of t){if(!this.items.has(s)){const{signal:o}=this.eventAbortController;s.addEventListener("input",this.onInput,{capture:!0,signal:o})}const i=new hB(uB(s,n));this.items.set(s,i),queueMicrotask(()=>this.updateValue(s)),s.selectionStart===null&&i.isEager()&&console.warn("Maska: input of `%s` type is not supported",s.type)}}getInputs(t){return typeof t=="string"?Array.from(document.querySelectorAll(t)):"length"in t?Array.from(t):[t]}getOptions(t){const{onMaska:n,preProcess:s,postProcess:i,...o}=t;return o}fixCursor(t,n,s){var i,o;const r=t.selectionStart,a=t.value;if(s(),r===null||r===a.length&&!n)return;const l=t.value,c=a.slice(0,r),u=l.slice(0,r),d=(i=this.processInput(t,c))==null?void 0:i.unmasked,h=(o=this.processInput(t,u))==null?void 0:o.unmasked;if(d===void 0||h===void 0)return;let p=r;c!==u&&(p+=n?l.length-a.length:d.length-h.length),t.setSelectionRange(p,p)}setValue(t,n){const s=this.processInput(t,n);s!==void 0&&(t.value=s.masked,this.options.onMaska!=null&&(Array.isArray(this.options.onMaska)?this.options.onMaska.forEac
107h(i=>i(s)):this.options.onMaska(s)),t.dispatchEvent(new CustomEvent("maska",{detail:s})),t.dispatchEvent(new CustomEvent("input",{detail:s.masked})))}processInput(t,n){const s=this.items.get(t);if(s===void 0)return;let i=n??t.value;this.options.preProcess!=null&&(i=this.options.preProcess(i));let o=s.masked(i);return this.options.postProcess!=null&&(o=this.options.postProcess(o)),{masked:o,unmasked:s.unmasked(i),completed:s.completed(i)}}};const Pm=new WeakMap,mB=(e,t)=>{if(e.arg==null||e.instance==null)return;const n="setup"in e.instance.$.type;e.arg in e.instance?e.instance[e.arg]=t:n&&console.warn("Maska: please expose `%s` using defineExpose",e.arg)},vB=(e,t)=>{var n;const s=e instanceof HTMLInputElement?e:e.querySelector("input");if(s==null||(s==null?void 0:s.type)==="file")return;let i={};if(t.value!=null&&(i=typeof t.value=="string"?{mask:t.value}:{...t.value}),t.arg!=null){const o=r=>{const a=t.modifiers.unmasked?r.unmasked:t.modifiers.completed?r.completed:r.masked;mB(t,a)};i.onMaska=i.onMaska==null?o:Array.isArray(i.onMaska)?[...i.onMaska,o]:[i.onMaska,o]}Pm.has(s)?(n=Pm.get(s))==null||n.update(i):Pm.set(s,new pB(s,i))};var qi=(e=>(e.Tiny="tiny",e.Small="small",e.Default="default",e.Large="large",e))(qi||{});const gB={class:"field__wrapper-body"},bB={key:0,class:"field__caption"},oc=J({__name:"Field",props:{size:{default:qi.Default},autoHeight:{type:Boolean},iconLeft:{},iconRight:{},focused:{type:Boolean},disabled:{type:Boolean},invalid:{type:Boolean},error:{},success:{},imageUuid:{},loading:{type:Boolean},isCaptionAlwaysVisible:{type:Boolean},isMessageReserveSpace:{type:Boolean}},emits:["labelClick"],setup(e){const t=e,n=C(()=>{const o=["field",`field--${t.size}`];return t.focused&&o.push("field--focused"),t.disabled&&o.push("field--disabled"),t.invalid&&o.push("field--invalid"),t.autoHeight&&o.push("field--auto-height"),o}),s=C(()=>[qi.Tiny,qi.Small].includes(t.size)?16:22),i=C(()=>{const o=["field__message"];return t.isMessageReserveSpace&&o.push("field__message--reserve-space"),q(t.error)?o.push("field__message--error"):q(t.success)&&o.push("field__message--success"),o});return(o,r)=>{var a,l;return _(),T("div",{class:Z(n.value)},[O("label",{class:"field__wrapper",onClick:r[0]||(r[0]=At(c=>o.$emit("labelClick"),["prevent"]))},[O("div",gB,[e.imageUuid?(_(),T("div",{key:0,class:"field__image",style:Ot({backgroundImage:`url(${f(Vi)({uuid:e.imageUuid,width:24,height:24})})`})},null,4)):e.iconLeft?(_(),L(f(Re),{key:1,name:e.iconLeft,width:s.value,height:s.value,class:Z(["field__icon","field__icon--left"])},null,8,["name","width","height"])):D("",!0),Ve(o.$slots,"default"),e.loading?(_(),L(f(ad),{key:2,class:"field__loader",size:16,width:2,type:"primary"})):D("",!0),e.iconRight?(_(),L(f(Re),{key:3,name:e.iconRight.name,width:s.value,height:s.value,class:Z(["field__icon","field__icon--right",((a=e.iconRight)==null?void 0:a.action)&&"field__icon--clickable"]),onClick:(l=e.iconRight)==null?void 0:l.action},null,8,["name","width","height","class","onClick"])):D("",!0),o.$slots.right?Ve(o.$slots,"right",{key:4}):D("",!0)]),Ve(o.$slots,"bottom")]),A(qn,{"enter-from-class":"field__message--enter-from","enter-active-class":"field__message--enter-active","leave-to-class":"field__message--leave-to","leave-active-class":"field__message--leave-active",mode:"out-in"},{default:K(()=>[(_(),T("div",{key:e.error?"error":e.success?"success":"caption",class:Z(i.value)},[e.error?(_(),T(ye,{key:0},[xe(Y(e.error),1)],64)):e.success?(_(),T(ye,{key:1},[xe(Y(e.success),1)],64)):o.$slots.caption&&!e.isCaptionAlwaysVisible?Ve(o.$slots,"caption",{key:2}):D("",!0)],2))]),_:3}),o.$slots.caption&&e.isCaptionAlwaysVisible?(_(),T("div",bB,[Ve(o.$slots,"caption")])):D("",!0),o.$slots.popover&&e.focused?Ve(o.$slots,"popover",{key:1}):D("",!0)],2)}}}),yB=["value","type","placeholder","disabled","required","maxlength","name","autocomplete"],wB={key:0,class:"text-input-counter"},rc=J({__name:"TextInput",props:{type:{default:"text"},maxLength:{},mask:{},loading:{type:Boolean},modelValue:{},placeholder:{default:""},size:{default:qi.Default},icon:{},iconRight:{},disabled:{type:Boolean},invalid:{type:Boolean},error:{},success:{},imageUuid:{},required:{type:Boolean},autofocus:{type:Boolean},name:{},autocomplete:{},isCaptionAlwaysVisible:{type:Boolean},isMessageReserveSpace:{type:Boolean}},emits:["focus","blur","update:modelValue","keydown","paste","update:mask"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=C(()=>s.mask===void 0?{}:vB),r=P(!1),a=C(()=>s.maxLength===void 0?0:s.maxLength-s.modelValue.toString().length),l=p=>s.maxLength===void 0?!1:p.length>s.maxLength;function c(p){const m=p.target.value;if(l(m)){p.preventDefault();return}i("update:modelValue",m)}function u(p){s.disabled||(r.value=!0,i("focus",p))}function d(p){r.value=!1,i("blur",p)}const h=P();return t({focus(){var p;(p=h.value)==null||p.focus()},blur(){var p;(p=h.value)==null||p.blur()},nativeInput:h}),je(()=>{var p;s.autofocus&&((p=h.value)==null||p.focus())}),(p,m)=>(_(),L(oc,{size:e.size,"icon-left":e.icon,"icon-right":e.iconRight,focused:r.value,disabled:e.disabled,invalid:e.invalid,error:e.error,success:e.success,"image-uuid":e.imageUuid,loading:e.loading,"is-caption-always-visible":e.isCaptionAlwaysVisible,"is-message-reserve-space":e.isMessageReserveSpace,onLabelClick:m[4]||(m[4]=v=>{var g;return(g=h.value)==null?void 0:g.focus()})},Is({default:K(()=>{var v;return[Ie(O("input",{ref_key:"input",ref:h,value:e.modelValue,type:e.type,placeholder:e.placeholder,disabled:e.disabled,required:e.required,
107class:"text-input",maxlength:e.maxLength,name:e.name,autocomplete:e.autocomplete,onFocus:At(u,["stop","prevent"]),onBlur:d,onInput:m[0]||(m[0]=g=>c(g)),onKeydown:m[1]||(m[1]=g=>i("keydown",g)),onPaste:m[2]||(m[2]=g=>i("paste",g)),onMaska:m[3]||(m[3]=g=>{var b;return i("update:mask",{options:(b=s.mask)==null?void 0:b.options,detail:g.detail})})},null,40,yB),[[f(o),(v=e.mask)==null?void 0:v.options]]),e.maxLength!==void 0?(_(),T("div",wB,Y(a.value),1)):D("",!0)]}),_:2},[p.$slots.caption?{name:"caption",fn:K(()=>[Ve(p.$slots,"caption")]),key:"0"}:void 0]),1032,["size","icon-left","icon-right","focused","disabled","invalid","error","success","image-uuid","loading","is-caption-always-visible","is-message-reserve-space"]))}}),yC=({modelValue:e,postfix:t,onUpdate:n,filter:s})=>{const i=W5,o=P(e.value);be(()=>e.value,c=>{o.value=c},{immediate:!0});const r=C(()=>{const c=t.length>0?i+t:"";return Zt(o.value,{separator:i})+c});function a(c){const u=s(c);return u===""?"0":u}function l(c){const u=c.target,d=a(u.value),h=u.value,p=r.value,m=u.selectionStart??0,v=u.value.length-p.length;o.value=d,u.value=r.value;const g=u.value;if(g===h){n(d);return}const b=h.substring(0,m),w=h.substring(m),k=g.substring(0,m),y=g.substring(m),S=c.data==="."||c.data===",",E=p.includes("."),x=h.includes(".")||h.includes(","),M=E&&!x;let I=m+v;if(S&&!E)I=g.indexOf(".")+1;else if(b===k||w===y)I=m;else if(x){const N=g.split(".")[0],V=h.split(".")[0],$=N.length-V.length;m>h.indexOf(".")&&(I+=$)}else M&&(I=m+1);u.setSelectionRange(I,I),n(d)}return{formattedValue:r,onInput:l}},_B=["value","placeholder","disabled","required"],wC=J({__name:"NumberInput",props:{postfix:{default:""},min:{},max:{},loading:{type:Boolean},modelValue:{},placeholder:{default:""},size:{default:qi.Default},icon:{},iconRight:{},disabled:{type:Boolean},invalid:{type:Boolean},error:{},success:{},imageUuid:{},required:{type:Boolean},autofocus:{type:Boolean},name:{},autocomplete:{},isCaptionAlwaysVisible:{type:Boolean},isMessageReserveSpace:{type:Boolean}},emits:["focus","blur","update:modelValue","keydown","paste","update:mask"],setup(e,{emit:t}){const n=e,s=t,{formattedValue:i,onInput:o}=yC({modelValue:Cn(n,"modelValue"),postfix:n.postfix,filter:u=>u.trim().replaceAll(/\D+/g,""),onUpdate:u=>{s("update:modelValue",Number(u))}}),r=P(),a=P(!1);function l(u){n.disabled||(a.value=!0,s("focus",u))}function c(u){a.value=!1,s("blur",u)}return je(()=>{var u;n.autofocus&&!Sr()&&((u=r.value)==null||u.focus())}),(u,d)=>(_(),L(oc,{size:e.size,"icon-left":e.icon,"icon-right":e.iconRight,focused:a.value,disabled:e.disabled,invalid:e.invalid,error:e.error,success:e.success,"image-uuid":e.imageUuid,loading:e.loading,"is-message-reserve-space":e.isMessageReserveSpace},Is({default:K(()=>[O("input",{ref_key:"input",ref:r,value:f(i),type:"text",inputmode:"numeric",pattern:"[0-9]*",placeholder:e.placeholder,disabled:e.disabled,required:e.required,class:"number-input",onKeydown:d[0]||(d[0]=h=>s("keydown",h)),onFocus:At(l,["stop","prevent"]),onBlur:c,onInput:d[1]||(d[1]=h=>f(o)(h))},null,40,_B)]),_:2},[u.$slots.caption?{name:"caption",fn:K(()=>[Ve(u.$slots,"caption")]),key:"0"}:void 0,u.$slots.right?{name:"right",fn:K(()=>[Ve(u.$slots,"right")]),key:"1"}:void 0]),1032,["size","icon-left","icon-right","focused","disabled","invalid","error","success","image-uuid","loading","is-message-reserve-space"]))}}),kB=["value","placeholder","disabled","required"],Uw=J({__name:"FloatInput",props:{postfix:{default:""},min:{},max:{},loading:{type:Boolean},modelValue:{},placeholder:{default:""},size:{default:qi.Default},icon:{},iconRight:{},disabled:{type:Boolean},invalid:{type:Boolean},error:{},success:{},imageUuid:{},required:{type:Boolean},autofocus:{type:Boolean},name:{},autocomplete:{},isCaptionAlwaysVisible:{type:Boolean},isMessageReserveSpace:{type:Boolean}},emits:["focus","blur","update:modelValue","keydown","paste","update:mask"],setup(e,{emit:t}){const n=e,s=t,{formattedValue:i,onInput:o}=yC({modelValue:Cn(n,"modelValue"),postfix:n.postfix,filter:u=>u.trim().replaceAll(",",".").replaceAll(/[^\d.]/g,"").replace(/(\..*)\./g,"$1"),onUpdate:u=>{s("update:modelValue",u)}}),r=P(),a=P(!1);function l(u){n.disabled||(a.value=!0,s("focus",u))}function c(u){a.value=!1,s("blur",u)}return je(()=>{var u;n.autofocus&&((u=r.value)==null||u.focus())}),(u,d)=>(_(),L(oc,{size:e.size,"icon-left":e.icon,"icon-right":e.iconRight,focused:a.value,disabled:e.disabled,invalid:e.invalid,error:e.error,success:e.success,"image-uuid":e.imageUuid,loading:e.loading},{default:K(()=>[O("input",{ref_key:"input",ref:r,value:f(i),type:"text",placeholder:e.placeholder,inputmode:"numeric",pattern:"[0-9]*|[0-9]+[.,][0-9]*",disabled:e.disabled,required:e.required,
107class:"number-input",onKeydown:d[0]||(d[0]=h=>s("keydown",h)),onFocus:At(l,["stop","prevent"]),onBlur:c,onInput:d[1]||(d[1]=h=>f(o)(h))},null,40,kB),u.$slots.right?Ve(u.$slots,"right",{key:0}):D("",!0)]),_:3},8,["size","icon-left","icon-right","focused","disabled","invalid","error","success","image-uuid","loading"]))}}),Ut=({width:e,height:t,maxWidth:n})=>{const s={};return q(e)&&(s.width=e),q(n)&&(s.maxWidth=n),q(t)&&(s.height=t),A("div",{class:"skeleton-bar",style:s},null)},Hi=({size:e})=>{const t={};return q(e)&&(t.width=e,t.height=e),A("div",{class:"skeleton-circle",style:t},null)};function SB(e,t,{size:n=20,salt:s=0,max:i=100}={}){const o=(t-1)/2,r=n-s;return i-r/o*Math.abs(e-o)}const Hw={circle:e=>({type:"circle",size:e}),bar:(e,t)=>({type:"bar",width:e,height:t}),bars:(e,t=!1)=>Array.from({length:e},(n,s)=>({type:"bar",maxWidth:t?`${SB(s,e,{salt:s*-5,max:95})}%`:void 0})),gapX:e=>({type:"gap",axis:"x",size:e}),gapY:e=>({type:"gap",axis:"y",size:e}),fillX:()=>({type:"fillX"})};function CB(e){switch(e.type){case"circle":return A(Hi,{size:e.size},null);case"bar":return A(Ut,{width:e.width,height:e.height,maxWidth:e.maxWidth},null);case"gap":return A("div",{style:{width:e.axis==="x"?e.size:void 0,height:e.axis==="y"?e.size:void 0}},null);case"fillX":return""}}function EB(e){const t=e.some(n=>!Array.isArray(n)&&n.type==="fillX");return A("div",{class:"skeleton__group",style:t?{"flex-grow":"1"}:void 0},[e.map(n=>_C(n))])}function _C(e){return Array.isArray(e)?EB(e):CB(e)}const xB={comment:({circle:e,bar:t,gapX:n,gapY:s,bars:i})=>[[[e("36px")],[n("10px")],[t("100px"),t("43px")]],[s("16px")],i(5,!0)],content:({circle:e,bar:t,gapX:n,gapY:s,bars:i})=>[[[e("40px")],[n("10px")],[t("100px"),t("123px")]],[s("22px")],i(2,!0),[s("20px")],i(5,!0)]},no=({schema:e,preset:t})=>{const n=t?()=>xB[t](Hw):e;return A("div",{class:"skeleton"},[n==null?void 0:n(Hw).map(s=>_C(s))])},Zb=Symbol("Plain link"),TB=["href","target","title"],Qe=J({inheritAttrs:!1,__name:"Link",props:{referer:{},refererContext:{},preventDefault:{type:Boolean},target:{},title:{},previewType:{},previewSource:{},custom:{type:Boolean},activeClass:{},exactActiveClass:{},ariaCurrentValue:{},viewTransition:{type:Boolean},to:{},replace:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,s=t,i=oA(),{setLinkReferer:o,getRefererFromRoute:r}=Br();xm==null||xm();const a=ut(Zb,!1);let l,c,u=d=>{n.preventDefault&&d.preventDefault(),s("click",d)};if(a){if(typeof n.to=="string")l=C(()=>n.to);else{const d=ct();l=C(()=>d.resolve(n.to).href)}c=C(()=>!1)}else try{const d=cv(n),{referer:h}=r(d.route.value),{referer:p,refererContext:m}=UM(h);l=d.href,c=d.isActive,u=v=>{n.preventDefault?v.preventDefault():(o(n.referer??p,{...n.refererContext,...m}),d.navigate(v)),s("click",v)}}catch(d){console.error(d)}return(d,h)=>(_(),T("a",St(f(i),{href:f(l),class:e.activeClass&&f(c)?e.activeClass:null,target:n.target,title:n.title,"data-router-link":"",[f(xu)||""]:e.previewType,[f(Af)||""]:e.previewSource,onClick:h[0]||(h[0]=(...p)=>f(u)&&f(u)(...p))}),[Ve(d.$slots,"default")],16,TB))}}),e0=J({__name:"Tabs",props:{tabs:{},baseUrl:{}},setup(e){Zi(m=>({v1cf913cf:d.value,v70c46386:l.value,e31963f0:u.value}));const t=e,{isActive:n}=jS(),s=dn(),i=P(),o=P(),r=P(!1),a=C(()=>t.tabs.find(m=>n({path:m.to,alias:m.alias},s.path,t.baseUrl))),l=P("0"),c=P(0),u=P("0"),d=C(()=>`${c.value}px`);function h(){var v,g,b,w,k,y;if(((g=(v=o.value)==null?void 0:v.checkVisibility)==null?void 0:g.call(v))===!1)return;l.value=`${((b=o.value)==null?void 0:b.offsetLeft)??0}px`,c.value=((w=o.value)==null?void 0:w.offsetWidth)??0;const m=(k=o.value)==null?void 0:k.getBoundingClientRect();m!==void 0&&(m.right>window.innerWidth||m.left<0)&&((y=o.value)==null||y.scrollIntoView({block:"nearest"}))}const p=js(()=>{h(),q(i.value)&&(r.value=i.value.scrollWidth>i.value.clientWidth)});return Wo(i,()=>{p()}),be(a,()=>{un(h)}),(m,v)=>(_(),T("div",{ref_key:"tabsEl",ref:i,class:Z(["tabs",{"tabs--scrollable":r.value}])},[(_(!0),T(ye,null,We(e.tabs,g=>Ie((_(),L(f(Qe),{key:g.label,ref_for:!0,ref:b=>{b!==null&&"$el"in b&&a.value===g&&(o.value=b.$el)},class:Z(["tabs__tab",a.value===g&&"tabs__tab--active"]),to:`${e.baseUrl??""}${g.to}`,onClickOnce:v[0]||(v[0]=b=>u.value="150ms")},{default:K(()=>[m.$slots.tab?Ve(m.$slots,"tab",{key:0,meta:g.meta}):(_(),T(ye,{key:1},[xe(Y(g.label)+" ",1),g.hasUpdates?(_(),L(f(Yb),{key:0})):D("",!0)],64))]),_:2},1032,["class","to"])),[[As,!g.isHidden]])),128)),v[1]||(v[1]=O("div",{class:"tabs__underline"},null,-1))],2))}}),kC=J({__name:"ContextGrid",props:{itemsPerRow:{default:5},visibleRows:{default:3},cellSize:{default:40},gap:{default:10},data:{},selectable:{type:[Boolean,String],default:!1},selected:{},loading:{type:Boolean}},emits:["select","leave","update:selected","endReach"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=C(()=>Math.min(s.itemsPerRow,d.value.length)),r=mt("gridElement"),a=mt("bottomHorizon"),{data:l,isLoading:c}=oC(Cn(s,"data")),u=C(()=>c.value||s.loading),d=rC({data:l,isDisplayLoader:u}),h=C(()=>`${(s.cellSize+s.gap)*s.visibleRows+(s.cellSize/2+6)}px`),{processOption:p,isOptionSelected:m}=aC(Cn(s,"selectable"),Cn(s,"selected"),{onBeforeProcess:b=>{i("select",b)},onAfterProcess:b=>{i("update:selected",b)}}),v=Ba(a,([{isIntersecting:b}])=>{!b||u.value||i("endReach")},{root:r,rootMargin:"200% 0px"});be(()=>d.value.length,(b,w)=>{b!==w&&(v.pause(),v.resume())});function g(b,w){s.selectable!=="multiple"&&i("leave",w),s.selectable!==void 0&&p(b)}return t({element:r}),(b,w)=>(_(),L(f(Yl),{style:Ot({"max-height":h.value})},{default:K(()=>[O("div",{ref_key:"gridElement",ref:r,class:"context-grid",style:Ot({"--grid-items-per-row":o.value,"--grid-cell-size":`${s.cellSize}px`,"--grid-gap":`${s.gap}px`})},[O("div",{class:Z(["context-grid__grid",u.value&&"context-grid__grid--loading"])},[(_(!0),T(ye,null,We(f(d),(k,y)=>(_(),T(ye,null,[k.type===f(ms).Option?(_(),L(f(UL),St({key:`${f(ms).Option}:${k.index}`},{ref_for:!0},k.props,{size:s.cellSize,selected:f(m)(k.props),selectable:e.selectable===!0||e.selectable==="multiple",onSelect:g}),null,16,["size","selected","selectable"])):k.type===f(ms).Loader?(_(),L(f(ad),{key:`${f(ms).Loader}:${y}`,size:24,width:2,type:"primary"})):D("",!0)],64))),256))],2),O("div",{ref_key:"bottomHorizon",ref:a,class:"context-grid__bottom-horizon"},null,512)],4)]),_:1},8,["style"]))}}),gp=({data:e,size:t=0,maxSize:n=0,rounded:s=!1,bordered:i=!1,cropped:o=!1,disablePreview:r=!1,isLoaded:a=!1,isLazy:l=!0,isIntersectable:c=!1},{emit:u,slots:d})=>{var E;let h=null;const p=f$(e),m=p==="transparent",v=typeof s=="number"?s:void 0,g=s===!0||v!==void 0,b=i&&!m,w=p$({data:e,size:t,maxSize:n,cropped:o,disablePreview:r,backgroundColor:p});v!==void 0&&(w["--border-radius"]=`${v}px`);const k="base64preview"in e&&q(e.base64preview)?e.base64preview:void 0,y=(E=d.default)==null?void 0:E.
107call(d),S=[];return l&&S.push([US,()=>{h!==null&&u("activate",h)}]),c&&S.push([FS,x=>{u("visibilityChange",x)}]),Ie(A("div",{ref:x=>{h=x},"data-loaded":a,class:["andropov-media",g&&"andropov-media--rounded",b&&"andropov-media--bordered",o&&"andropov-media--cropped",!r&&"andropov-media--has-preview"],style:w},[!r&&k!==void 0&&A("div",{class:"andropov-media__thumbnail",style:{backgroundImage:`url(data:image/png;base64,${k})`}},null),y]),S)},Ei=(e,t)=>{let n=null;const s=!1,i=e.zoom!==void 0&&typeof e.zoom!="boolean"?e.zoom.type===Pt.Image&&e.zoom.data.type==="gif"?up({uuid:e.zoom.data.uuid,width:e.zoom.data.width,height:e.zoom.data.height}).data:e.zoom.data:e.data,o=[];e.zoom&&o.push([Gb,{media:i,caption:e.caption,cropped:e.cropped,showHideAnimationType:e.zoomFade===!0?"fade":void 0},e.zoomGroupId??""]);const r=[640,640],a=(()=>{if(e.size!==void 0){const h=Array.isArray(e.size)?e.size[0]:e.size,p=Array.isArray(e.size)?e.size[1]:e.size;return rl({uuid:e.data.uuid,width:h,height:p,exactSize:e.exactSize,format:e.raw?"raw":void 0})}const c=e.maxSize??r,[u,d]=Array.isArray(c)?c:[c,c];return e.cropped&&e.data.width>e.data.height?rl({uuid:e.data.uuid,height:d,exactSize:e.exactSize,format:e.raw?"raw":void 0}):rl({uuid:e.data.uuid,width:u,exactSize:e.exactSize,format:e.raw?"raw":void 0})})();function l(){n!==null&&(n.dataset.loaded="true",t.emit("loaded"))}return A(gp,St({ref:c=>{n=c}},e,{isLazy:!1,isLoaded:s,class:["andropov-image",e.zoom&&"andropov-image--zoom"]}),{default:()=>[A("picture",null,[A("source",{srcset:`${a.webp.x1}, ${a.webp.x2} 2x`,type:"image/webp"},null),Ie(A("img",{src:a.common.x1,srcset:`${a.common.x1}, ${a.common.x2} 2x`,alt:e.alt??"",loading:"lazy",onLoad:l},null),o)])]})},SC=({data:e})=>{const t=q(e.image)?e.image.data:xn({uuid:"ed078e47-2743-51ce-8fa5-dcdd9a5806ed"}).data,n=e.hostname||new URL(e.url).hostname;return A("a",{class:"andropov-link",href:e.url},[A("div",{class:"andropov-link__image"},[A(Ei,{class:"andropov-link__icon",data:t,size:36,bordered:!0},null)]),A("div",{class:"andropov-link__info"},[A("div",{class:"andropov-link__hostname"},[n]),A("div",{class:"andropov-link__title"},[e.title||e.url])])])},CC=e=>{const t=e.data.external_service.name,n=e.data.external_service.id;let s=null,i=null;const o=()=>{const r=N8(t,n);s===null||r===void 0||(i=document.createElement("iframe"),i.classList.add("andropov-external-video__player"),i.allow="autoplay;accelerometer;clipboard-write;encrypted-media;gyroscope;picture-in-picture",i.allowFullscreen=!0,i.src=r,s.replaceChildren(i),requestAnimationFrame(()=>{i!==null&&(i.allow=i.allow.replace("autoplay;",""))}))};return A(gp,St(e,{ref:r=>{s=r},class:["andropov-external-video","andropov-external-video--"+t]}),{default:()=>[A(Ei,{class:"andropov-external-video__cover",data:e.data.thumbnail.data,disablePreview:e.disablePreview},null),A("div",{class:"andropov-external-video__overlay",onClick:()=>o()},null),A("div",{innerHTML:v$(t),class:"andropov-external-video__play-button"},null)]})},AB=["src"],PB=5e3,bp=J({__name:"AnimatedImage",props:{staticUuid:{},animatedUuid:{default:void 0},width:{default:16},height:{default:16},loop:{type:Boolean,default:!0}},setup(e){const t=e;let n;const s=mt("imageElement"),i=$6(),{isVisible:o}=fd(s,{threshold:1,rootMargin:"100px"}),r=P(!1),a=C(()=>({width:`${t.width}px`,height:`${t.height}px`})),l=C(()=>Vi({uuid:t.staticUuid,width:t.width,height:t.height,format:"png"})),c=C(()=>q(t.animatedUuid)?Ir({uuid:t.animatedUuid,format:"raw"}):null),u=ii("(prefers-reduced-motion: reduce)"),d=ii("(prefers-reduced-data: reduce)"),h=C(()=>q(c.value)&&r.value&&i.value&&!u.value&&!d.value?c.value:l.value);function p(){q(c.value)&&o.value&&(r.value=!0,t.loop||(clearTimeout(n),n=setTimeout(()=>{r.value=!1},PB)))}function m(){r.value=!1,clearTimeout(n)}return be(o,v=>{v?p():m()}),be(c,v=>{p()}),be(i,v=>{v?o.value&&q(c.value)&&p():m()}),ui(()=>{n!==null&&clearTimeout(n)}),(v,g)=>(_(),T("img",{ref_key:"imageElement",ref:s,class:"animated-image",style:Ot(a.value),src:h.value,loading:"lazy"},null,12,AB))}}),Vw=({modelValue:e,max:t,helpers:n},{emit:s})=>{let i=null;return Ie(A("div",{ref:o=>{i=o},class:"andropov-video-player-slider",style:{"--value":`${sp(e/t*100,2)}%`}},[A("div",{class:"andropov-video-player-slider__track"},[n==null?void 0:n.map(([o,r])=>A("div",{class:"andropov-video-player-slider__bar andropov-video-player-slider__bar--helper",style:{"--start":`${o/t*100}%`,"--width":`${(r-o)/t*100}%`}},null)),A("div",{class:"andropov-video-player-slider__bar andropov-video-player-slider__bar--default"},null)]),A("div",{class:"andropov-video-player-slider__thumb"},null)]),[[n$,{onChange(o){s("update:modelValue",o*t)},onDragStart(){i==null||i.classList.add("andropov-video-player-slider--dragging"),s("drag:start")},onDragEnd(){i==null||i.classList.remove("andropov-video-player-slider--dragging"),s("drag:end")}}]])}
107,RB=["controls","autoplay","muted","loop"],IB={key:0,class:"andropov-video-player__info"},MB={class:"andropov-video-player__controls"},$B={class:"andropov-video-player__controls-item"},LB={class:"andropov-video-player__time"},OB={key:0,class:"andropov-video-player__controls-item"},BB={class:"andropov-video-player__controls-item"},DB={key:2,class:"andropov-video-player__end"},NB={class:"andropov-video-player__end-slot"},FB={class:"andropov-video-player__end-actions"},UB={class:"andropov-video-player__time"},HB=30,VB=J({__name:"VideoPlayer",props:{disablePlaybackToggleOnClick:{type:Boolean},isCompactControls:{type:Boolean}},setup(e,{expose:t}){const n=e,s=C(()=>n.isCompactControls),i=mt("root"),{video:o,overlay:r,controls:a,volume:l,info:c,currentTime:u,bufferedTime:d,duration:h,isPlaying:p,isAudioPresent:m,isWaiting:v,isSeeking:g,isFullscreen:b,isSeekingManually:w,isProgressAnimationActive:k,isInactive:y,isMuted:S,isAutoplayBehavior:E,isEnded:x,togglePlay:M,toggleMuted:I,toggleFullscreen:N}=L$({disablePlaybackToggleOnClick:()=>n.disablePlaybackToggleOnClick}),V=Xn("video-player-debug",!1),{t:$}=ft(),j=ut(GS,void 0),X=C(()=>h.value>HB&&m.value===!0),U=C(()=>s.value||m.value===!0||!E.value),R=C(()=>E.value&&!X.value);return t({video:o}),(G,H)=>(_(),T("div",{ref_key:"root",ref:i,class:Z(["andropov-video-player",{"andropov-video-player--loading":f(v)||f(g),"andropov-video-player--inactive":f(y)&&!s.value,"andropov-video-player--with-controls":U.value,"andropov-video-player--compact":s.value}])},[O("video",{ref_key:"video",ref:o,preload:"metadata",controls:f(b)&&f(Sr)(),autoplay:f(E),muted:f(S),loop:R.value,playsinline:""},null,8,RB),O("div",{ref_key:"overlay",ref:r,class:"andropov-video-player__overlay"},[f(v)||f(g)?(_(),L(f(ad),{key:0,class:"andropov-video-player__loading"})):D("",!0),A(f(Tt),null,{default:K(()=>[f(V)?(_(),T("div",IB,[O("span",null,"Buffered: "+Y(f(c).bufferedSegments),1),H[10]||(H[10]=O("br",null,null,-1)),O("span",null,"Current time: "+Y(f(u)),1),H[11]||(H[11]=O("br",null,null,-1)),O("span",null,"Duration: "+Y(f(h)),1),H[12]||(H[12]=O("br",null,null,-1)),O("span",null,"Volume: "+Y(f(l)),1),H[13]||(H[13]=O("br",null,null,-1)),O("span",null,"Seeking: "+Y(f(g)),1),H[14]||(H[14]=O("br",null,null,-1)),O("span",null,"Seeking manually: "+Y(f(w)),1),H[15]||(H[15]=O("br",null,null,-1)),O("span",null,"Waiting: "+Y(f(v)),1),H[16]||(H[16]=O("br",null,null,-1)),O("span",null,"Playing: "+Y(f(p)),1),H[17]||(H[17]=O("br",null,null,-1)),O("span",null,"Inactive: "+Y(f(y)),1),H[18]||(H[18]=O("br",null,null,-1)),O("span",null,"Progress animation: "+Y(f(k)),1),H[19]||(H[19]=O("br",null,null,-1)),O("span",null,"Audio: "+Y(f(m)),1),H[20]||(H[20]=O("br",null,null,-1)),O("span",null,"Show ads: "+Y(X.value&&f(j)!==void 0),1),H[21]||(H[21]=O("br",null,null,-1)),O("span",null,"Ended: "+Y(f(x)),1),H[22]||(H[22]=O("br",null,null,-1))])):D("",!0)]),_:1}),U.value&&!s.value?(_(),T("div",{key:1,ref_key:"controls",ref:a,class:"andropov-video-player__panel"},[A(f(Vw),{modelValue:f(u),"onUpdate:modelValue":H[0]||(H[0]=se=>Ct(u)?u.value=se:null),max:f(h),helpers:[[0,f(d)]],class:"andropov-video-player__progress-slider","onDrag:start":H[1]||(H[1]=()=>{w.value=!0}),"onDrag:end":H[2]||(H[2]=()=>{w.value=!1})},null,8,["modelValue","max","helpers"]),O("div",MB,[O("div",$B,[O("button",{class:"andropov-video-player__button",onClick:H[3]||(H[3]=se
107=>f(M)())},[A(f(Re),{name:f(p)?"pause":"play",width:20,height:20},null,8,["name"])]),O("div",LB,Y(`${f(c).currentTime} / ${f(c).duration}`),1)]),f(m)?(_(),T("div",OB,[O("button",{class:"andropov-video-player__button",onClick:H[4]||(H[4]=se=>f(I)())},[A(f(Re),{name:f(S)?"volume_min":"volume_max",width:20,height:20},null,8,["name"])]),A(f(Vw),{modelValue:f(l),"onUpdate:modelValue":H[5]||(H[5]=se=>Ct(l)?l.value=se:null),max:1,class:"andropov-video-player__volume-slider"},null,8,["modelValue"])])):D("",!0),O("div",BB,[O("button",{class:"andropov-video-player__button",onClick:H[6]||(H[6]=se=>f(N)())},[A(f(Re),{name:f(b)?"fullscreen_off":"fullscreen_on",width:20,height:20},null,8,["name"])])])])],512)):D("",!0),!s.value&&f(x)&&X.value&&f(j)!==void 0?(_(),T("div",DB,[O("div",NB,[(_(),L(nn(f(j))))]),O("div",FB,[A(f(qe),{type:"minimal",onClick:H[7]||(H[7]=se=>f(M)(!0))},{default:K(()=>[xe(Y(f($)("common.watchAgain")),1)]),_:1})])])):D("",!0)],512),s.value?(_(),T("div",{key:0,ref_key:"controls",ref:a,class:"andropov-video-player__compact"},[O("span",UB,Y(`${f(c).currentTime} / ${f(c).duration}`),1),f(m)===!0?(_(),T("button",{key:0,type:"button",class:"andropov-video-player__button",onClick:H[8]||(H[8]=At(se=>f(I)(),["stop"])),onPointerdown:H[9]||(H[9]=At(()=>{},["stop"]))},[A(f(Re),{name:f(S)?"volume_min":"volume_max",width:20,height:20},null,8,["name"])],32)):D("",!0)],512)):D("",!0)],2))}}),t0=e=>{let t=null;const n=e.zoom!==void 0&&e.zoom!==!1,s=[],i=(()=>{if(!n)return;const r=e.zoomFade===!0?"fade":void 0,a=e.zoom;return a!==void 0&&typeof a!="boolean"?a.type===Pt.Image&&a.data.type==="gif"?{media:up({uuid:a.data.uuid,width:a.data.width,height:a.data.height}).data,caption:e.caption,cropped:e.cropped,showHideAnimationType:r}:{media:a.data,caption:e.caption,cropped:e.cropped,showHideAnimationType:r}:{media:e.data,caption:e.caption,cropped:e.cropped,showHideAnimationType:r}})();n&&e.isGifBehavior===!0&&i!==void 0&&s.push([Gb,i,e.zoomGroupId??""]);function o(r){t!==r&&(t!==null&&n&&e.isGifBehavior!==!0&&Du.detach(t),t=r,t!==null&&n&&e.isGifBehavior!==!0&&i!==void 0&&Du.attach(t,i,e.zoomGroupId??""))}return A(gp,St(e,{isLazy:!0,isIntersectable:!0,class:["andropov-video",n&&"andropov-video--zoom"],onActivate:r=>{t!==null&&m$(e,t,{onLoadedData:()=>{r.dataset.loaded="true"}})},onVisibilityChange:r=>{t!==null&&(r?t.dataset.wasPlaying==="true"&&t.play().catch(()=>{}):(t.dataset.wasPlaying=String(!t.paused&&!t.ended),t.pause()))}}),{default:()=>[e.isGifBehavior?Ie(A("video",{ref:r=>{t=r},preload:"auto",autoplay:!0,playsinline:!0,muted:!0,loop:!0},null),s):A(VB,{isCompactControls:e.isCompactControls===!0,disablePlaybackToggleOnClick:n,ref:r=>{o((r==null?void 0:r.video)??null)}},null)]})},jo=e=>{if(e.type===Pt.Movie?!0:e.type===Pt.Image?e.data.type==="gif":!1)return A(t0,St(e,{data:e.data}),null);if(e.type===Pt.Image)return A(Ei,St(e,{data:e.data}),null);if(e.type===Pt.Video)return A(CC,St(e,{data:e.data}),null);if(e.type===Pt.Link)return A(SC,St(e,{data:e.data}),null)},zB=["onKeydown"],WB={class:"popover__surface modal-toggle-surface"},n0=J({__name:"Popover",props:{width:{}},emits:["leave"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=mt("element"),r=C(()=>({"--popover-width":typeof s.width=="number"?`${s.width}px`:s.width}));function a(l){i("leave",l)}return i6(o,a),t({element:o}),(l,c)=>(_(),T("div",{ref_key:"element",ref:o,class:"popover",style:Ot(r.value),onKeydown:vn(At(a,["prevent"]),["esc"])},[O("div",WB,[Ve(l.$slots,"default")])],44,zB))}}),zw=180,Ww=150,s0=J({__name:"ModalToggleTransition",props:{skipEnter:{type:Boolean,default:!1}},setup(e){Zi(s=>({b8530f9a:t,v15d2d417:n}));const t=`${zw}ms`,n=`${Ww}ms`;return(s,i)=>(_(),L(qn,{duration:{enter:e.skipEnter?0:zw,leave:Ww},"enter-from-class":e.skipEnter?"modal-toggle-enter-skip":"modal-toggle-enter-from","enter-active-class":e.skipEnter?"modal-toggle-enter-skip":"modal-toggle-enter-active","enter-to-class":e.skipEnter?"modal-toggle-enter-skip":"modal-toggle-enter-to","leave-from-class":"modal-toggle-leave-from","leave-active-class":"modal-toggle-leave-active","leave-to-class":"modal-toggle-leave-to"},{default:K(()=>[Ve(s.$slots,"default")]),_:3},8,["duration","enter-from-class","enter-active-class","enter-to-class"]))}}),jB={key:0,class:"popover-overlay__polygon",xmlns:"http://www.w3.org/2000/svg"},GB=["points"],qB=!1,KB=J({__name:"PopoverView",setup(e){const n=ct(),{content:s,behavior:i,popoverWidth:o,popoverTarget:r,popoverRoot:a,popoverComponent:l,zIndex:c,popover:u,close:d,isOpened:h,isPositioned:p,isClosing:m,finalizeClose:v,popoverStyle:g,onPopoverTargetUnmount:b,onClose:w}=ys(),k=C(()=>i.value==="hover"?r.value:null),y=C(()=>i.value==="hover"&&u.value!==null?u.value:null),{onAimMiss:S,cancelAimCheck:E,polygonVertices:x}=$$({from:k,to:y}),M=C(()=>i.value==="hover"&&!$r()),I=C(()=>({"--popover-z-index":N(c.value,"","")}));n.beforeEach(()=>{h.value&&d()});function N(j,X="auto",U="px"){return j===void 0?X:`${j}${U}`}function V(j){if(M.value)return;const X=r.value!==null&&j.composedPath().includes(r.value),U=u.value!==null&&j.composedPath().includes(u.value);X&&!U&&j.stopPropagation(),d()}S(()=>{h.value&&i.value==="hover"&&d()}),b(()=>{h.value&&d()}),w(()=>{E()});function $(){m.value&&v()}return(j,X)=>{var U;return _(),L(id,{to:f(a),disabled:f(a)===null},[f(s)!==void 0||f(m)?(_(),T("div",{key:0,class:Z(["popover-overlay",f(h)&&!f(p)&&"popover-overlay--processing"]),style:Ot(I.value)},[A(f(s0),{"skip-enter":"",onAfterLeave:$},{default:K(()=>[f(s)!==void 0?(_(),L(n0,{key:0,ref:R=>{u.value=(R==null?void 0:R.element)??null},class:Z(f(p)&&"modal-toggle-appear"),width:f(o),style:Ot(f(g)),onLeave:V},{default:K(()=>
107[(_(),L(nn(f(s).component),St({ref_key:"popoverComponent",ref:l},f(K2)(f(s).props),{onLeave:V}),null,16))]),_:1},8,["class","width","style"])):D("",!0)]),_:1}),f(!1)&&qB?(_(),T("svg",jB,[O("polygon",{points:(U=f(x))==null?void 0:U.map(R=>R.join(",")).join(" ")},null,8,GB)])):D("",!0)],6)):D("",!0)],8,["to","disabled"])}}}),EC=J({__name:"CounterLabel",props:{value:{}},setup(e){const t=e,n=C(()=>t.value===0||t.value===null||t.value===void 0?"":t.value>99?"99+":t.value.toString());return(s,i)=>(_(),L(qn,{name:"bounce"},{default:K(()=>[n.value?(_(),T("div",{key:n.value,class:"counter-label"},Y(n.value),1)):D("",!0)]),_:1}))}}),YB=J({__name:"AppSourceIcon",props:{source:{}},setup(e){const t=e,n=C(()=>{if(t.source==="ios-app")return{icon:"apple",label:"iOS"};if(t.source==="android-app")return{icon:"google_play_bw",label:"Android"}});return(s,i)=>n.value?(_(),L(Qe,{key:0,class:"app-source-icon",to:{name:"Apps"}},{default:K(()=>[A(f(Re),{name:n.value.icon,width:12,height:12},null,8,["name"])]),_:1})):D("",!0)}}),XB={subscriptions:{userBlocked:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑÐµÐ»Ñ Ð·Ð°Ð±Ð»Ð¾ÐºÐ¸Ñован"}},userUnblocked:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑÐµÐ»Ñ ÑазблокиÑован"}},topicBlocked:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑ Ð¸Ð· ÑÐµÐ¼Ñ ÑкÑÑÑÑ Ð¸Ð· ленÑ"}},topicUnblocked:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑ Ð¸Ð· ÑÐµÐ¼Ñ Ð²ÐµÑнÑÑÑÑ Ð² ленÑÑ"}},notificationsUnsubscribed:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¾ÑпиÑалиÑÑ Ð¾Ñ Ñведомлений"}}},settingsUpdated:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки обновленÑ"}},badgeUpdated:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑйдж обновлен"}},badgeNotUpdated:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð¾Ð±Ð½Ð¾Ð²Ð¸ÑÑ Ð±Ñйдж"}},login:{t:0,b:{t:2,i:[{t:3}],s:"ÐойÑи"}},userSettings:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки полÑзоваÑелÑ"}},settings:{blog:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки блога"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"Ðазвание, ÐпиÑание, Ðикнейм, ÐомменÑиÑование"}}},general:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑновнÑе"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"СпоÑÐ¾Ð±Ñ Ð²Ñ
ода, Удаление аккаÑнÑа"}}},notifications:{title:{t:0,b:{t:2,i:[{t:3}],s:"УведомлениÑ"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"УведомлениÑ, ÐиÑÑма"}}},feeds:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐенÑÑ"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки ленÑ, ФилÑÑÑаÑиÑ, ÐаблокиÑованнÑе"}}}},blogSettings:{pageTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки блога"}},name:{t:0,b:{t:2,i:[{t:3}],s:"Ðазвание"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐпиÑание"}},additional:{t:0,b:{t:2,i:[{t:3}],s:"ÐополниÑелÑно"}},showPostsToAll:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказÑваÑÑ Ð¿Ð¾ÑÑÑ Ð²Ñем"}},showWhenOnline:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказÑваÑÑ ÐºÐ¾Ð³Ð´Ð° Ñ Ð¾Ð½Ð»Ð°Ð¹Ð½"}},descriptionPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑа Ñлов о Ñебе"}},nickname:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ðикнейм"}},address:{t:0,b:{t:2,i:[{t:3}],s:"ÐдÑÐµÑ Ð²Ð°Ñего блога "}},about:{t:0,b:{t:2,i:[{t:3,v:"ÐолÑзоваÑели могÑÑ ÑпомÑнÑÑÑ Ð²Ð°Ñ в комменÑаÑиÑÑ
и поÑÑаÑ
ÑеÑез "},{t:4,k:"nickname"}]}},change:{t:0,b:{t:2,i:[{t:3}],s:"Смена никнейма"}},rules:{t:0,b:{t:2,i:[{t:3}],s:"Ðлина â Ð¾Ñ 5 до 32 Ñимволов. Ðожно иÑполÑзоваÑÑ aâz, 0â9 и _.<br>Ðикнейм можно менÑÑÑ Ñаз в меÑÑÑ."}},available:{t:0,b:{t:2,i:[{t:3}],s:"Свободен"}},unavailable:{t:0,b:{t:2,i:[{t:3}],s:"ÐанÑÑ"}},success:{t:0,b:{t:2,i:[{t:3}],s:"Ðикнейм изменен"}},errors:{TOO_MANY_CALLS:{t:0,b:{t:2,i:[{t:3}],s:"Ðикнейм можно менÑÑÑ Ñаз в меÑÑÑ"}},NO_ACCESS:{t:0,b:{t:2,i:[{t:3}],s:"Ðзменение никнейма недоÑÑÑпно"}},USER_BANNED:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°Ð±Ð°Ð½ÐµÐ½Ñ, данное дейÑÑвие невозможно"}}}},errors:{USER_BANNED:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°Ð±Ð°Ð½ÐµÐ½Ñ, данное дейÑÑвие невозможно"}},NAME_INVALID_CHARACTERS:{t:0,b:{t:2,i:[{t:3}],s:"ÐедопÑÑÑимÑе ÑÐ¸Ð¼Ð²Ð¾Ð»Ñ Ð² никнейме"}},TOO_BIG_DESCRIPTION:{t:0,b:{t:2,i:[{t:3}],s:"СлиÑком длинное опиÑание"}}
107,DESCRIPTION_INVALID:{t:0,b:{t:2,i:[{t:3}],s:"ÐекоÑÑекÑное опиÑание"}}}},generalSettings:{pageTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑновнÑе наÑÑÑойки"}},email:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑа"}},change:{t:0,b:{t:2,i:[{t:3}],s:"ÐзмениÑÑ"}},password:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑолÑ"}},linkedAccounts:{t:0,b:{t:2,i:[{t:3}],s:"СвÑзаннÑе аккаÑнÑÑ"}},dangerZone:{t:0,b:{t:2,i:[{t:3}],s:"ÐпаÑÐ½Ð°Ñ Ð·Ð¾Ð½Ð°"}},deleteAccount:{t:0,b:{t:2,i:[{t:3}],s:"УдалиÑÑ Ð°ÐºÐºÐ°ÑнÑ"}},deleteAccountConfirmationTitle:{t:0,b:{t:2,i:[{t:3}],s:"Удаление аккаÑнÑа"}},deleteAccountConfirmationText:{t:0,b:{t:2,i:[{t:3}],s:"ÐккаÑÐ½Ñ Ð±ÑÐ´ÐµÑ Ð·Ð°Ð¼Ð¾Ñожен на 30 дней, a заÑем полноÑÑÑÑ ÑдалÑн без возможноÑÑи воÑÑÑановлениÑ."}},deleteAccountSecondConfirmationText:{t:0,b:{t:2,i:[{t:3}],s:"УдалÑннÑй аккаÑÐ½Ñ Ð¸ вÑе даннÑе нелÑÐ·Ñ Ð²Ð¾ÑÑÑановиÑÑ Ð¿Ð¾Ñле полного ÑдалениÑ."}},terminateAllSessions:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑйÑи Ñо вÑеÑ
ÑÑÑÑойÑÑв"}},vk:{t:0,b:{t:2,i:[{t:3}],s:"VK"}},yandex:{t:0,b:{t:2,i:[{t:3}],s:"ЯндекÑ"}},plusSubscription:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка Plus"}},proSubscription:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка Pro"}}},feedsSettings:{pageTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки ленÑ"}},homeByDefault:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ»Ð°Ð²Ð½Ð°Ñ Ð¿Ð¾ ÑмолÑаниÑ"}},myFeedSorting:{t:0,b:{t:2,i:[{t:3}],s:"СоÑÑиÑовка «Ðоей ленÑÑ»"}},adultContent:{t:0,b:{t:2,i:[{t:3}],s:"ÐонÑÐµÐ½Ñ Ð´Ð»Ñ Ð²Ð·ÑоÑлÑÑ
"}},blockedUsers:{t:0,b:{t:2,i:[{t:3}],s:"ÐаблокиÑованнÑе полÑзоваÑели"}},popular:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑное"}},new:{t:0,b:{t:2,i:[{t:3}],s:"Свежее"}},my:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¾Ñ Ð»ÐµÐ½Ñа"}},byPopular:{t:0,b:{t:2,i:[{t:3}],s:"Ðо попÑлÑÑноÑÑи"}},byDate:{t:0,b:{t:2,i:[{t:3}],s:"Ðо даÑе"}},postDisplay:{t:0,b:{t:2,i:[{t:3}],s:"Ðоказ поÑÑов"}},blurNsfwCaption:{t:0,b:{t:2,i:[{t:3}],s:"ÐлÑÑиÑÑ 18+ в ленÑе"}},hideViewedPostsCaption:{t:0,b:{t:2,i:[{t:3}],s:"СкÑÑваÑÑ Ð¿ÑоÑмоÑÑеннÑе"}},videoAutoplayCaption:{t:0,b:{t:2,i:[{t:3}],s:"ÐвÑопÑоигÑÑвание видео"}},showAll:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ Ð²ÑеÑ
"}},emptyList:{t:0,b:{t:2,i:[{t:3}],s:"СпиÑок пÑÑÑ."}}},notificationsSettings:{pageTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки Ñведомлений"}},pushPermissionGranted:{t:0,b:{t:2,i:[{t:3}],s:"ÐклÑÑенÑ"}},pushPermissionDenied:{t:0,b:{t:2,i:[{t:3}],s:"ÐапÑеÑено в бÑаÑзеÑе"}},pushPermissionDefault:{t:0,b:{t:2,i:[{t:3}],s:"Ðе вклÑÑенÑ"}},pushPermissionUnsupported:{t:0,b:{t:2,i:[{t:3}],s:"Ðе поддеÑживаеÑÑÑ Ð² ÑÑом бÑаÑзеÑе"}},pushEnableInBrowser:{t:0,b:{t:2,i:[{t:3}],s:"ÐклÑÑиÑÑ"}},pushDisableInBrowser:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑклÑÑиÑÑ"}},pushPermissionDeniedAlert:{t:0,b:{t:2,i:[{t:3}],s:"РазÑеÑиÑе ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð² наÑÑÑойкаÑ
бÑаÑзеÑа"}},pushSubscribeFailed:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÐºÐ»ÑÑиÑÑ push-ÑведомлениÑ"}},pushUnsubscribeFailed:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð¾ÑклÑÑиÑÑ push-ÑведомлениÑ"}}}},QB=Object.freeze(Object.defineProperty({__proto__:null,ru:XB},Symbol.toStringTag,{value:"Module"}));class JB{constructor(t){this.assetsRepository=t}async getCatalog(){return await this.assetsRepository.getCatalog()}}var da;class ZB extends Ks{constructor(n,s){super();Fe(this,da);this.transport=n,this.createStore=s}async getCatalog(){if(this.store.assets!==null)return this.store.assets;fe(this,da)===void 0&<(this,da,(async()=>{const s=await this.transport.get("assets",void 0,{apiVersion:"v2.9"});return this.store.assets=s,s})());const n=await fe(this,da);return lt(this,da,void 0),n}}da=new WeakMap;function e7(){let e=null;return{get assets(){return e},set assets(t){e=t}}}function t7(){const e=pt();return e.isRegistered("AssetsService")||e.register("AssetsService",()=>{const{transport:t}=e.resolve("ModuleInitOptions"),n=new ZB(t,e7);return new JB(n)}),e.resolve("AssetsService")}const Fa=yt(zt(()=>{const e=t7(),t=De(null);function n(s){var i;return((i=t.value)==null?void 0:i[s])??[]}return je(async()=>{t.value=await e.getCatalog()}),{getAssetsByKey:n}}),()=>({getAssetsByKey:()=>[]})),n7=Object.freeze(Object.defineProperty({__proto__:null,useAssets:Fa},Symbol.toStringTag,{value:"Module"})),s7={authErrors:{101:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ¾Ñ Ð°ÐºÐºÐ°ÑÐ½Ñ Ð·Ð°Ð¼Ð¾Ñожен"}},103:{t:0,b:{t:2,i:[{t:3}],s:"ÐккаÑÐ½Ñ Ñ Ñакой поÑÑой Ñже ÑÑÑеÑÑвÑеÑ"}},104:{t:0,b:{t:2,i:[{t:3}],s:"ÐевеÑÐ½Ð°Ñ Ð¿Ð¾ÑÑа или паÑолÑ"}},108:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑевÑÑен Ð»Ð¸Ð¼Ð¸Ñ Ð¿Ð¾Ð¿ÑÑок ÑегиÑÑÑаÑии"}},109:{t:0,b:{t:2,i:[{t:3}],s:"ÐккаÑÐ½Ñ Ñ Ñакой ÑоÑ. ÑеÑÑÑ Ñже ÑÑÑеÑÑвÑеÑ"}},110:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑÐµÐ»Ñ Ð½Ðµ найден"}},111:{t:0,b:{t:2,i:[{t:3}],s:"ÐекоÑÑекÑÐ½Ð°Ñ Ð¿Ð¾ÑÑа"}},112:{t:0,b:{t:2,i:[{t:3}],s:"СÑок дейÑÑÐ²Ð¸Ñ ÑÑÑлки Ð´Ð»Ñ Ð²Ð¾ÑÑÑÐ°Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿Ð°ÑÐ¾Ð»Ñ Ð¸ÑÑÑк. ÐопÑобÑйÑе воÑÑÑановиÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð·Ð°Ð½Ð¾Ð²Ð¾"}},114:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¼Ñ Ð´Ð¾Ð»Ð¶Ð½Ð¾ вклÑÑаÑÑ Ð¾Ñ 2 до 30 Ñимволов"}},126:{t:0,b:{t:2,i:[{t:3}],s:"ÐккаÑÐ½Ñ Ð½Ðµ замоÑожен"}},127:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑевÑÑен Ð»Ð¸Ð¼Ð¸Ñ Ð·Ð°Ð¿ÑоÑов"}},passwordsDoNotMatch:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑоли не ÑовпадаÑÑ"}}},authForm:{signInFormTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ
од"}},signupFormTitle:{t:0,b:{t:2,i:[{t:3}],s:"РегиÑÑÑаÑиÑ"}},nameField:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¼Ñ Ð¸Ð»Ð¸ название"}},emailField:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑа"}},passwordField:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑолÑ"}},repeatPasswordField:{t:0,b:{t:2,i:[{t:3}],s:"ÐовÑоÑиÑе паÑолÑ"}},loginButton:{t:0,b:{t:2,i:[{t:3}],s:"ÐойÑи"}},signupButton:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑегиÑÑÑиÑоваÑÑÑÑ"}},requestPasswordRecovery:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑановиÑÑ Ð¿Ð°ÑолÑ"}},openEmailButton:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑкÑÑÑÑ Ð¿Ð¾ÑÑÑ"}},specifiedEmail:{t:0,b:{t:2,i:[{t:3}],s:"ÑказаннÑй адÑеÑ"}},emailWasSent:{t:0,b:{t:2,i:[{t:3}],s:"ÐиÑÑмо оÑпÑавлено"}},emailWasSentDetails:{t:0,b:{t:2,i:[{t:3,v:"ÐÑ Ð¾ÑпÑавили пиÑÑмо Ð´Ð»Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð¿Ð¾ÑÑового адÑеÑа на "},{t:4,k:"email"}]}},accountFreezed:{t:0,b:{t:2,i:[{t:3}],s:"ÐккаÑÐ½Ñ Ð·Ð°Ð¼Ð¾Ñожен"}}
107,accountFreezedDetails:{t:0,b:{t:2,i:[{t:3,v:"ÐоÑле "},{t:4,k:"date"},{t:3,v:" аккаÑÐ½Ñ Ð±ÑÐ´ÐµÑ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ ÑдалÑн без возможноÑÑи воÑÑÑановлениÑ"}]}},loginHint:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ
од в аккаÑнÑÑ Ñ Google и Apple ID"}},dontHaveAnAccount:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐµÑ Ð°ÐºÐºÐ°ÑнÑа?"}},changePassword:{t:0,b:{t:2,i:[{t:3}],s:"СмениÑÑ Ð¿Ð°ÑолÑ"}},passwordChanged:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÐ¾Ð»Ñ Ð¸Ð·Ð¼ÐµÐ½Ñн"}},passwordRecoveryFailed:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ°Ð½Ð½Ð°Ñ ÑÑÑлка недейÑÑвиÑелÑна. Ðозможно, ÑÑок ÐµÑ Ð´ÐµÐ¹ÑÑÐ²Ð¸Ñ Ð¸ÑÑÑк. ÐопÑобÑйÑе воÑÑÑановиÑÑ Ð¿Ð°ÑÐ¾Ð»Ñ Ð·Ð°Ð½Ð¾Ð²Ð¾"}},recoveryEmailWasSentDetails:{t:0,b:{t:2,i:[{t:3,v:"ÐÑ Ð¾ÑпÑавили пиÑÑмо Ñ Ð¸Ð½ÑÑÑÑкÑией Ð´Ð»Ñ ÑÐ¼ÐµÐ½Ñ Ð¿Ð°ÑÐ¾Ð»Ñ Ð½Ð° "},{t:4,k:"email"}]}},signupRulesDisclaimer:{t:0,b:{t:2,i:[{t:3}],s:'РегиÑÑÑиÑÑÑÑÑ, Ð²Ñ ÑоглаÑаеÑеÑÑ Ñ <a href="/terms" target="_blank">ÑÑловиÑми иÑполÑзованиÑ</a>, <a href="/privacy" target="_blank">полиÑикой конÑиденÑиалÑноÑÑи</a> и ÑбоÑом кÑки.'}}},socials:{google:{t:0,b:{t:2,i:[{t:3}],s:"Google"}},apple:{t:0,b:{t:2,i:[{t:3}],s:"Apple"}},yandex:{t:0,b:{t:2,i:[{t:3}],s:"Ð¯Ð½Ð´ÐµÐºÑ ID"}},vk:{t:0,b:{t:2,i:[{t:3}],s:"VK ID"}}},bind:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑа Ñже заÑегиÑÑÑиÑована"}},text:{t:0,b:{t:2,i:[{t:3,v:"ÐÑивÑзаÑÑ "},{t:4,k:"social"},{t:3,v:" к аккаÑнÑÑ <b>"},{t:4,k:"name"},{t:3,v:"</b>, ÑÑÐ¾Ð±Ñ Ð²Ñ Ð¼Ð¾Ð³Ð»Ð¸ вÑ
одиÑÑ Ñ помоÑÑÑ ÑоÑÑеÑи на ÑайÑ?"}]}},confirm:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑивÑзаÑÑ"}},success:{t:0,b:{t:2,i:[{t:3}],s:"СоÑÑеÑÑ ÑÑпеÑно пÑивÑзана"}}},unbind:{success:{t:0,b:{t:2,i:[{t:3}],s:"СоÑÑеÑÑ ÑÑпеÑно оÑвÑзана"}}},terminateAllSessionsSuccess:{t:0,b:{t:2,i:[{t:3}],s:"СеÑÑии ÑбÑоÑенÑ"}},terminateAllSessionsConfirmationTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑ
од Ñо вÑеÑ
ÑÑÑÑойÑÑв"}},terminateAllSessionsConfirmationText:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑйÑи из Ñвоего аккаÑнÑа во вÑеÑ
пÑиложениÑÑ
и бÑаÑзеÑаÑ
, кÑоме ÑÑого бÑаÑзеÑа?"}},emailChangeSuccessMessage:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑа подÑвеÑждена"}},emailConfirmationFailed:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÑвеÑдиÑÑ Ð¿Ð¾ÑÑÑ"}},signupSuccessMessage:{t:0,b:{t:2,i:[{t:3}],s:"РегиÑÑÑаÑÐ¸Ñ Ð·Ð°Ð²ÐµÑÑена"}},passwordChangeEmailSent:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¾ÑпÑавили пиÑÑмо Ñ Ð¸Ð½ÑÑÑÑкÑией Ð´Ð»Ñ ÑÐ¼ÐµÐ½Ñ Ð¿Ð°ÑолÑ"}},emailChangeEmailSent:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¾ÑпÑавили пиÑÑмо Ð´Ð»Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ адÑеÑа"}},getIn:{t:0,b:{t:2,i:[{t:3,v:"СкаÑаÑÑ Ð² "},{t:4,k:"name"}]}},emailCollection:{placeholder:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ»Ñ Ñведомлений"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Ðам пиÑÑмо"}},text:{t:0,b:{t:2,i:[{t:3,v:"ÐÑ Ð¾ÑпÑавили пиÑÑмо Ð´Ð»Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´ÐµÐ½Ð¸Ñ ÑегиÑÑÑаÑии на "},{t:4,k:"email"},{t:3,v:"."}]}},error:{t:0,b:{t:2,i:[{t:3}],s:"ÐекоÑÑекÑнÑй ÑоÑÐ¼Ð°Ñ Ð¿Ð¾ÑÑÑ"}},alert:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐµÑ Ð¿Ð¾ÑÑÑ"}}},oneTimeCode:{inputLabel:{t:0,b:{t:2,i:[{t:3}],s:"ÐдноÑазовÑй код"}},requestError:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ ÐºÐ¾Ð´"}},retry:{t:0,b:{t:2,i:[{t:3}],s:"ÐовÑоÑиÑÑ"}},confirmError:{t:0,b:{t:2,i:[{t:3}],s:"ÐевеÑнÑй код"}},expired:{t:0,b:{t:2,i:[{t:3}],s:"СÑок дейÑÑÐ²Ð¸Ñ ÐºÐ¾Ð´Ð° иÑÑÑк"}},resendAfter:{t:0,b:{t:2,i:[{t:3,v:"ÐÑпÑавиÑÑ ÐºÐ¾Ð´ еÑÑ Ñаз ÑеÑез "},{t:4,k:"seconds"}]}},resend:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавиÑÑ ÐµÑÑ Ñаз"}}}},i7=Object.freeze(Object.defineProperty({__proto__:null,ru:s7},Symbol.toStringTag,{value:"Module"})),o7=[{path:"/auth",name:"Auth",component:async()=>await Ce(()=>import("./Login-5JiGQEla.js"),__vite__mapDeps([9,10,11])),redirect:e=>{var n;const t=(n=e.query)==null?void 0:n.redirect;return typeof t!="string"||t===""?"?modal=auth":`?modal=auth&${ud}=${t}`},meta:{modalFit:"cover",refererId:$e.Auth},children:[{path:"login/email",name:"LoginWithEmail",component:async()=>await Ce(()=>import("./EmailLogin-BpfiV3h3.js"),__vite__mapDeps([12,13,14,15,10,11])),redirect:"?modal=auth/login/email"},{path:"signup",name:"Signup",component:async()=>await Ce(()=>import("./Signup-C-u9_N-8.js"),__vite__mapDeps([16,10,11])),redirect:"?modal=auth/signup"},{path:"signup/email",name:"EmailSignup",component:async()=>await Ce(()=>import("./EmailSignup-BH5z8fq2.js"),__vite__mapDeps([17,13,14,15,10,11])),redirect:"?modal=auth/signup/email"},{path:"email/confirm",name:"Confirm",component:async()=>await Ce(()=>import("./EmailConfirm-CYidwLsS.js"),__vite__mapDeps([18,14,19])),redirect:e=>{var n;const t=(n=e.query)==null?void 0:n.token;return typeof t!="string"||t===""?"?modal=auth/confirm":`?modal=auth/confirm&token=${t}`},props:e=>({token:typeof e.query.token=="string"?e.query.token:void 0,isSignup:!0})},{path:"password/recover",name:"PasswordRecover",component:async()=>await Ce(()=>import("./PasswordRecover-BBT3HCGN.js"),__vite__mapDeps([20,13,14,15,10,11])),redirect:"?modal=auth/password/recover"},{path:"email/password/confirm",name:"PasswordChange",component:async()=>await Ce(()=>import("./PasswordChange-D7I6DKW2.js"),__vite__mapDeps([21,13,14,15,10,11])),redirect:e=>{var t,n;return`?modal=auth/password/change&token=${(n=(t=e.query)==null?void 0:t.token)==null?void 0:n.toString()}`},props:e=>({token:typeof e.query.token=="string"?e.query.token:void 0})},{path:"frozen",name:"AccountFrozen",component:async()=>await Ce(()=>import("./Frozen-D7ip7XCq.js"),__vite__mapDeps([22,10,11,23])),redirect:"?modal=auth/frozen"}]},{path:"/user/email/confirm",name:"EmailChangeConfirm",component:async()=>await Ce(()=>import("./EmailConfirm-CYidwLsS.js"),__vite__mapDeps([18,14,19])),redirect:e=>{var n;const t=(n=e.query)==null?void 0:n.token;return typeof t!="string"||t===""?"?modal=email/change/confirm":`?modal=email/change/confirm&token=${t}`},props:e=>({token:typeof e.query.token=="string"?e.query.token:void 0,isSignup:!1})},{path:"/yandex-auth",name:"YandexToken",component:async()=>await Ce(()=>import("./YandexToken-BmeIAioR.js"),[])}];
107class Nc extends Error{}Nc.prototype.name="InvalidTokenError";function r7(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let s=n.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function a7(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return r7(t)}catch{return atob(t)}}function Kv(e,t){if(typeof e!="string")throw new Nc("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,s=e.split(".")[n];if(typeof s!="string")throw new Nc(`Invalid token specified: missing part #${n+1}`);let i;try{i=a7(s)}catch(o){throw new Nc(`Invalid token specified: invalid base64 for part #${n+1} (${o.message})`)}try{return JSON.parse(i)}catch(o){throw new Nc(`Invalid token specified: invalid json for part #${n+1} (${o.message})`)}}const ci="auth session updated";class Yv extends di{constructor(n,s=!1,i){super(ci,{session:n,isPreferUserDataUpdate:s,reason:i});le(this,"shouldBeBroadcasted",!0)}}class Fo extends Error{}class zi extends Error{constructor(t,n,s){super(t),this.code=n,this.data=s,this.name="AuthorizationFailedError"}static is(t,n){return t instanceof zi&&t.code===n}}function l7(e){const t=new FormData,n=(s,i)=>{if(i!=null){if(i instanceof Blob||i instanceof File){t.append(s,i);return}if(Array.isArray(i)){i.forEach((o,r)=>{n(`${s}[${r}]`,o)});return}if(typeof i=="object"){Object.entries(i).forEach(([o,r])=>{n(`${s}[${o}]`,r)});return}t.append(s,String(i))}};return Object.entries(e).forEach(([s,i])=>{n(s,i)}),t}var c7=Object.defineProperty,u7=Object.getOwnPropertyDescriptor,d7=(e,t,n,s)=>{for(var i=u7(t,n),o=e.length-1,r;o>=0;o--)(r=e[o])&&(i=r(t,n,i)||i);return i&&c7(t,n,i),i};class i0{constructor({hostname:t,headers:n,credentials:s}={}){le(this,"hostname","");le(this,"credentials","same-origin");le(this,"headers",new Headers);le(this,"abortControllers",new Map);t!==void 0&&(this.hostname=t),n!==void 0&&Object.entries(n).forEach(([i,o])=>{this.headers.set(i,o)}),s!==void 0&&(this.credentials=s)}async get(t,n,s={}){const i=this.createUrl(t,s==null?void 0:s.hostname),o=s==null?void 0:s.abortToken;n!==void 0&&(i.search=new URLSearchParams(n).toString());let r=!1;try{const a=await fetch(i.toString(),{method:"get",headers:{...Object.fromEntries(this.headers.entries()),...s.headers},credentials:this.credentials,signal:o!==void 0?this.getAbortSignal(o):void 0});try{const l=await this.resolveResponsePayload(a,o);return this.throwForResponseStatus(a.status,l),l instanceof ReadableStream&&(r=!0),l}catch(l){throw console.log(`â API response parse error: (requesting ${i.toString()}) 108 109`,l),console.log(`â Response status: ${a.status}`),l}}finally{o!==void 0&&!r&&this.abortControllers.delete(o)}}isBinaryContentType(t){return t.includes("application/pdf")||t.includes("application/octet-stream")||t.includes("application/zip")||t.startsWith("image/")||t.startsWith("audio/")||t.startsWith("video/")}throwForResponseStatus(t,n){switch(t){case 403:throw new Cb(this.getErrorMessage(n,"Forbidden"));case 404:throw new ec(this.getErrorMessage(n,"Not Found"));case 451:throw new $3(this.getErrorMessage(n,"Content Blocked"))}}getErrorMessage(t,n){return n}async post(t,n,s={}){const i=this.createUrl(t,s==null?void 0:s.hostname),o=s==null?void 0:s.abortToken,r={...Object.fromEntries(this.headers.entries()),...s.headers},l=(q(r["Content-Type"])?r["Content-Type"]:r["content-type"])==="application/json",c={method:"post",headers:r,credentials:this.credentials,signal:o!==void 0?this.getAbortSignal(o):void 0};n!==void 0&&(l?c.body=JSON.stringify(n):c.body=l7(n));let u=!1;try{const d=await fetch(i.toString(),c),h=await this.resolveResponsePayload(d,o);return h instanceof ReadableStream&&(u=!0),h}finally{o!==void 0&&!u&&this.abortControllers.delete(o)}}async resolveResponsePayload(t,n){const s=t.headers.get("content-type")??"";if(s.includes("text/event-stream")){if(t.body===null)throw new Error("Empty stream body");return this.wrapReadableStreamReleasingAbortToken(t.body,n)}return s!==null&&t.ok&&this.isBinaryContentType(s)?await t.blob():s.includes("text/html")?await t.text():await t.json()}wrapReadableStreamReleasingAbortToken(t,n){if(n===void 0)return t;const s=this.abortControllers.get(n),i=t.getReader();let o=!1;const r=()=>{o||(o=!0,this.abortControllers.get(n)===s&&this.abortControllers.delete(n))};return new ReadableStream({async pull(a){try{const{done:l,value:c}=await i.read();if(l){r(),a.close();return}a.enqueue(c)}catch(l){r(),a.error(l)}},cancel(a){return r(),i.cancel(a)}})}async delete(t,n,s={}){const i=this.createUrl(t,s==null?void 0:s.hostname),o=s==null?void 0:s.abortToken;n!==void 0&&(i.search=new URLSearchParams(n).toString());const r={method:"delete",headers:{...Object.fromEntries(this.headers.entries()),...s.headers},credentials:this.credentials,signal:o!==void 0?this.getAbortSignal(o):void 0};try{return await(await fetch(i.toString(),r)).json()}finally{o!==void 0&&this.abortControllers.delete(o)}}async upload(t,n,s={},i){const o=new XMLHttpRequest,r=new Promise((a,l)=>{i!==void 0&&(o.upload.onprogress=h=>{if(h.lengthComputable){const p=h.loaded/h.total*100;i(Math.round(p),h.loaded,h.total)}}),o.onload=()=>
109{if(o.status>=200&&o.status<300){a(JSON.parse(o.responseText));return}if(o.status===0){l(new DOMException("The operation was aborted.","AbortError"));return}l(new Error(`Upload failed with status ${o.status}: ${o.statusText}`))},o.onerror=l,o.onabort=()=>{l(new DOMException("The operation was aborted.","AbortError"))};const c=this.createUrl(t,s==null?void 0:s.hostname);o.open("POST",c,!0);const u={...Object.fromEntries(this.headers.entries()),...s.headers};for(const[h,p]of Object.entries(u))o.setRequestHeader(h,p);const d=new FormData;for(const h of n)d.append("files",h);o.send(d)});return{abort:()=>o.abort(),response:r}}abort(t){const n=this.abortControllers.get(t);n!==void 0&&(n.abort(),this.abortControllers.delete(t))}createUrl(t,n){let s=t;const i=typeof n=="string"?n:this.hostname;return i!==void 0&&i.length>0&&(s=i+"/"+t),new URL(s)}getAbortSignal(t){let n=this.abortControllers.get(t);return n===void 0&&(n=new AbortController,this.abortControllers.set(t,n)),n.signal}}d7([V5()],i0.prototype,"get");var fa,Fc;class xC extends i0{constructor(n,s){super(n);Fe(this,fa);this.extensions=s}async get(n,s,i){const o=await Gt(this,fa,Fc).call(this,i,n);return await super.get(n,s,o)}async post(n,s,i){const o=await Gt(this,fa,Fc).call(this,i,n);return await super.post(n,s,o)}async delete(n,s,i){const o=await Gt(this,fa,Fc).call(this,i,n);return await super.delete(n,s,o)}async upload(n,s,i,o){const r=await Gt(this,fa,Fc).call(this,i,n);return await super.upload(n,s,r,o)}}fa=new WeakSet,Fc=async function(n={},s){return this.extensions===void 0||this.extensions.length===0?n:(await Promise.all(this.extensions.map(async o=>{var r;return await((r=o.onBeforeRequest)==null?void 0:r.call(o,n,s))}))).reduce((o,r)=>({...o,...r}),{})};
109class f7 extends Error{}const h7="v2.1";class p7 extends xC{async get(t,n,s){this.disableForSSR("GET",t,s==null?void 0:s.ssrReady);const i=await super.get(this.composePath(t,s),n,s);return i instanceof Blob?i:this.processResponse(i,"Having troubles while receiving data")}async post(t,n,s){this.disableForSSR("POST",t,s==null?void 0:s.ssrReady);const i=await super.post(this.composePath(t,s),n,s);return i instanceof ReadableStream?i:this.processResponse(i,"Having troubles while sending data")}async delete(t,n,s){this.disableForSSR("DELETE",t,s==null?void 0:s.ssrReady);const i=await super.delete(this.composePath(t,s),n,s);return this.processResponse(i,"Having troubles while deleting data")}async upload(t,n,s={},i){this.disableForSSR("UPLOAD",t,s==null?void 0:s.ssrReady);const o=await super.upload(this.composePath(t,s),n,s,i);return{abort:o.abort,response:o.response.then(r=>this.processResponse(r,"Having troubles while uploading data"))}}composePath(t,n){const s=(n==null?void 0:n.apiVersion)!==void 0?n.apiVersion:h7;return t.startsWith("/")&&t.slice(1),`${s}/${t}`}disableForSSR(t,n,s){}processResponse(t,n="Having troubles while processing response"){if(!(t!=null&&typeof t=="object"&&!Array.isArray(t)&&("status"in t||"message"in t)))throw new Error(n);const o=this.normalizeResponse(t);if(o.status!==200)throw new Error(o.message??"Unknown error");return o.data}getErrorMessage(t,n){return this.normalizeResponse(t).message??n}normalizeResponse(t){if("status"in t)return t;if("message"in t)if(t.error!==void 0){const n=t.error.info;let s="";return Array.isArray(n)?s=n.join("; "):typeof n=="string"?s=n:s="errorCode"in n?n.errorCode:JSON.stringify(n),{status:t.error.code,message:q(s)?s:t.message}}else return{status:200,data:t.result};return{status:200}}}class TC extends xC{async post(t,n,s){const i=await super.post(t,n,s);if("code"in i){const o=i;throw new zi(o.message,o.code,o.data)}if(i.data===void 0)throw new Error("Looks like the request was not successful");return i.data}}var AC=(e=>(e.RefreshAuthSession="refreshAuthSession",e))(AC||{});function Wd(e){return`<code>${e!==void 0?e.substr(0,5):"undefined"}</code>`}function PC(e,t){const n=new TC({hostname:"https://api.vc.ru/v3.4/auth",credentials:"include"});let s=null,i;const o=new Set;let r;function a(S){s=S,i=!0,r===void 0&&b(s),h(!0)}function l(){s=null,i=!1,h(!1)}async function c(S,E=!1){if(dp()){const M="Skipping session refresh: offline";throw Yt.getInstance().log(M),oi("auth",os.Orange,M),new Error("Offline")}oi("transport",os.Orange,"Refreshing auth...");let x;try{Yt.getInstance().log("Service Worker Manager is "+(q(t)?"present":`absent (${JSON.stringify(t)})`)+((t==null?void 0:t.isInstalled())===!0?" and installed":" and not installed")),q(t)&&t.isInstalled()?x=await u(S):x=await d(S),a(x),w==null||w(x,E)}
109catch(M){if(AS(M)){const $="Session refresh failed: network error. Keeping stored session.",j=M instanceof Error?`${M.name}: ${M.message}`:"unknown error: "+JSON.stringify(M);throw Yt.getInstance().log(`${$} 110<b>Error</b>: ${j}`),oi("auth",os.Orange,$,os.Orange,M),M}console.error(M);const I=s===null?null:Kv(s.accessToken),N=M instanceof Error?`${M.name}: ${M.message}`:"unknown error: "+JSON.stringify(M),V=I===null?"null":I.user_id===void 0?"undefined":`<a href="https://vc.ru/u/${I.user_id.toString()}">@${I.user_id}</a>`;throw Yt.getInstance().log(`Dude logged out. Refresh request failed 111 112<b>Error</b>: ${N} 113<b>User:</b> ${V}`),Yt.getInstance().send(),tc("â ï¸ Dude logged out. Refresh request failed",{error:N,user:V}),oi("auth",os.Pink,"â Authentication failed. Code: "+(M instanceof Fo?M.message:"unknown")),w==null||w(null,E),M}}async function u(S){Yt.getInstance().log(`(ask worker) <b>Refreshing by RT â ${Wd(S)}</b>)`);const E=await t.performTask(AC.RefreshAuthSession,{refreshToken:S});return Yt.getInstance().log(`(worker answered) Session refreshed. New RT <b>${Wd(E.refreshToken)}</b>`),E}async function d(S){Yt.getInstance().log(`<b>Refreshing by RT â ${Wd(S)}</b>`);const E=await n.post("refresh",{token:S},{hostname:"https://api.vc.ru/v3.4/auth"}),x=JSON.stringify(E);return Yt.getInstance().log(`API Response: ${x}`),Yt.getInstance().log(`Session refreshed. New RT <b>${Wd(E.refreshToken)}</b>`),E}function h(S){o.forEach(E=>{E(S),o.delete(E)})}async function p(){return i!==void 0?await Promise.resolve(i):await new Promise(S=>{o.add(S)})}async function m(S){if(S===void 0||s!==null)return;const E=await p();if(!(S==="probe"||E))throw new Fo("Strict request dismissed due to authorization failure")}async function v(S){s!==null&&g(s)&&(Yt.getInstance().log(`Auth transport tries to make request (${S??"unknown"}) with expired access token: 114`+[`AT ${s.accessToken} expires ${new Date(s.accessExpTimestamp*1e3).toISOString()}`,`RT ${s.refreshToken.substring(0,6)} expires ${new Date(s.refreshExpTimestamp*1e3).toISOString()}`,`Loc date ${new Date().toISOString()}`,`Loc time ${Math.floor(new Date().getTime()/1e3)}`,`Exp time ${s.accessExpTimestamp}`].join(` 115`)+` 116 Refreshing...`),await c(s.refreshToken))}function g(S){const E=Math.floor(new Date().getTime()/1e3);return S.accessExpTimestamp+(r??0)-10<=E}function b(S){const x=Kv(S.accessToken).iat;if(x===void 0)throw new Error("Token issue time is not available");r=Math.floor(new Date().getTime()/1e3)-Math.floor(x)}function w(S,E){e==null||e.dispatchEvent(new Yv(S,E))}function k(S){const{session:E}=S.detail;E!==null?a(E):l()}e==null||e.addEventListener(ci,k);function y(){e==null||e.removeEventListener(ci,k)}return{async appendAuthorizationHeaders(S,E){return(S==null?void 0:S.auth)===void 0||(await v(E),await m(S.auth),s===null)?S:{...S,headers:{...S.headers,JWTAuthorization:`Bearer ${s.accessToken}`}}},refreshSession:c,stop:y}}function m7(e,t){const n=e==null?void 0:e.split("@").pop();return n===void 0?t??"":n.startsWith("yandex.")||n.startsWith("ya.")?"https://mail.yandex.ru":`https://${n}`}function v7(e){return/^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}$/.test(e)}function g7(e){try{return Kv(e).email.trim()}catch(t){console.error("Unable to decode access token payload",t);return}}var Uu;class o0{constructor(t,n){Fe(this,Uu);lt(this,Uu,PC(t,n))}async onBeforeRequest(t,n){return await fe(this,Uu).appendAuthorizationHeaders(t,n)}}Uu=new WeakMap;const b7="user authorized with google one tap";class y7 extends di{constructor(){super(b7)}}const w7="user authorized with yandex one tap";class _7 extends di{constructor(){super(w7)}}const ws=zt(()=>{const e=ct();let t=null,n=null,s=null,i=null;async function o(l){return await new Promise((c,u)=>{l().then(c).catch(d=>{n=d,d instanceof Fo?(s=c,i=u,t=async()=>await l(!0),e.push({name:"Auth"})):u(d)})})}async function r(){t===null||s===null||(i=null,s(await t()),t=null,s=null)}function a(){t===null||i===null||(s=null,n instanceof Fo||i(n),n=null,t=null,i=null)}return{recallAfterAuth:o,executePendingAction:r,rejectPendingAction:a}});function ac(){const e=ft();return{...e,getReadableErrorText(t){return e.tf(`auth.authErrors.${t}`,"common.errorText")}}}var r0=(e=>(e.Apple="apple",e.Google="google",e.Yandex="yandex",e.VK="vk",e.Password="password",e))(r0||{}),hu=(e=>(e[e.UnexpectedError=100]="UnexpectedError",e[e.AccountFreezed=101]="AccountFreezed",e[e.AccessTokenExpired=102]="AccessTokenExpired",e[e.EmailAlreadyExists=103]="EmailAlreadyExists",e[e.WrongLoginOrPassword=104]="WrongLoginOrPassword",e[e.RefreshTokenNotFound=105]="RefreshTokenNotFound",e[e.RefreshTokenExpired=107]="RefreshTokenExpired",e[e.SignupTriesLimitExceeded=108]="SignupTriesLimitExceeded",e[e.SocialAccountAlreadyUsed=109]="SocialAccountAlreadyUsed",e[e.UserNotFound=110]="UserNotFound",e[e.InvalidEmail=111]="InvalidEmail",e[e.AccountIsNotFrozen=126]="AccountIsNotFrozen",e))(hu||{});class k7 extends Ks{constructor(t,n,s,i,o){super(),this.transport=t,this.googleApiTransport=n,this.yandexApiTransport=s,this.authorizer=i,this.createStore=o}saveTokensData(t){this.store.saveSession(t)}async getSession(t,n){return await this.transport.post("email/login",{email:t,password:n})}async restoreSession(t){if(dp())throw new Error("Offline");await this.authorizer.refreshSession(t,!0)}get isSessionSaved(){return this.store.isSessionSaved}getRefreshToken(){return this.store.refreshTokenData.token}getRefreshTokenExpirationDate(){return this.store.refreshTokenData.expTimestamp}async createUnconfirmedCredentials(t,n,s){await this.transport.post("email/register",{name:t,email:n,password:s})}async confirmEmailByToken(t){return await this.transport.post("email/confirm",{token:t})}async requestPasswordRecovery(t){return await this.transport.post("email/password/reset",{email:t})}async changePassword(t,n){return await this.transport.post("email/password/confirm",{password:t,key:n})}async removeSession(){const t=this.getRefreshToken();await this.transport.post("logout",{token:t})}async getGoogleCredentials(t){if(this.googleApiTransport===null)throw new Error("Google API transport is not defined");await this.googleApiTransport.prompt(t)}
116async getYandexCredentials(t){if(this.yandexApiTransport===null)throw new Error("Yandex API transport is not defined");await this.yandexApiTransport.prompt(t)}closeYandexWidget(){this.yandexApiTransport!==null&&this.yandexApiTransport.closeWidget()}async oauthInUp(t,n){return await this.transport.post(`${t}/inup`,{token:n})}async disableGoogleOneTapAutoSelect(){this.googleApiTransport!==null&&await this.googleApiTransport.disableAutoSelect()}async freezeAccount(){await this.transport.post("freeze",void 0,{auth:"strict"})}async unfreezeAccountByEmailAndPassword(t,n){return await this.transport.post("email/unfreeze",{email:t,password:n})}async terminateAllSessions(){await this.transport.post("sessions/terminate",{token:this.getRefreshToken()},{auth:"strict"})}async bindSocialToAuthorized(t,n){await this.transport.post(`${t}/link`,{code:n},{auth:"strict"})}async unbindSocialFromAuthorized(t){await this.transport.post("unlink",{type:t},{auth:"strict"})}async updateEmail(t){await this.transport.post("email/change",{email:t},{auth:"strict"})}async confirmEmailChange(t){await this.transport.post("email/change/confirm",{token:t})}async requestPasswordChange(){await this.transport.post("email/password/change",void 0,{auth:"strict"})}}const a0="online status changed";class RC extends di{constructor(t){super(a0,{isOnline:t})}}class IC{constructor(t){le(this,"dispatch",t=>{var n;(n=this.eventBus)==null||n.dispatchEvent(new RC(t))});le(this,"handleOnline",()=>{this.dispatch(!0)});le(this,"handleOffline",()=>{this.dispatch(!1)});this.eventBus=t,!(typeof window>"u"||this.eventBus===null)&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}}function MC(){const e=pt();e.isRegistered("OnlineStateService")||e.register("OnlineStateService",()=>{const{eventBus:t}=e.resolve("ModuleInitOptions");return new IC(t)}),e.resolve("OnlineStateService")}const S7=Object.freeze(Object.defineProperty({__proto__:null,ONLINE_STATUS_CHANGED_EVENT_NAME:a0,OnlineStateService:IC,OnlineStatusChangedEvent:RC,resolveOnlineStateService:MC},Symbol.toStringTag,{value:"Module"}));class C7 extends np{constructor(n,s){var i,o;super();le(this,"isSessionRestoreOnOnlineScheduled",!1);this.authRepository=n,this.eventBus=s,(i=this.eventBus)==null||i.addEventListener(ci,r=>{const{session:a,isPreferUserDataUpdate:l,reason:c}=r.detail;Yt.getInstance().log(`Session updated. RT <code>${a!==null?a.refreshToken.substr(0,6):"null"}</code> AT <code>${a!==null?a.accessToken.substr(0,6):"null"}</code>`),this.saveSession(a),this.dispatchEvent(new Yv(a,l,c)),a!==null&&requestAnimationFrame(()=>{this.authRepository.closeYandexWidget()})}),MC(),(o=this.eventBus)==null||o.addEventListener(a0,r=>{!r.detail.isOnline||!this.isSessionRestoreOnOnlineScheduled||(this.isSessionRestoreOnOnlineScheduled=!1,this.authenticateIfPossible())}),this.authenticateIfPossible().catch(r=>{oi("auth",os.Pink,"Error during authorization"),console.error(r)})}async login(n,s){Yt.getInstance().log("Login...");const i=await this.authRepository.getSession(n,s);Yt.getInstance().log(`Session received. RT <code>${i.refreshToken.substr(0,10)}</code>`),this.updateSession(i)}async logout(){await this.authRepository.removeSession(),await this.authRepository.disableGoogleOneTapAutoSelect(),this.updateSession(null)}async signup(n,s,i){await this.authRepository.createUnconfirmedCredentials(n,s,i)}async confirmEmail(n){const s=await this.authRepository.confirmEmailByToken(n);this.updateSession(s)}async requestPasswordRecovery(n){return await this.authRepository.requestPasswordRecovery(n)}async changePassword(n,s){const i=await this.authRepository.changePassword(n,s);this.updateSession(i)}updateSession(n,s){var i;(i=this.eventBus)==null||i.dispatchEvent(new Yv(n,!0,s)),n!==null&&requestAnimationFrame(()=>{this.authRepository.closeYandexWidget()})}saveSession(n){this.authRepository.saveTokensData(n)}get isSessionSaved(){return this.authRepository.isSessionSaved}async authenticateIfPossible(){Yt.getInstance().log("Authenticating...");const n=this.authRepository.getRefreshToken(),s=this.authRepository.getRefreshTokenExpirationDate();if(n===null||s===null){Yt.getInstance().log("No tokens found. Logout."),this.updateSession(null);return}const i=Math.floor(new Date().getTime()/1e3),o=s-10<=i;if(Yt.getInstance().log(`RT exists <code>${n.substr(0,10)}</code>. Exp. in ${((s-i)/86400).toFixed(2)} d.`),o){oi("auth",os.Pink,"Session expired"),Yt.getInstance().log("Refresh token expired. Logout."),this.updateSession(null);return}if(dp()){const r="Offline. Skipping session restore.";Yt.getInstance().log(r),oi("auth",os.Orange,r),this.scheduleSessionRestoreOnOnline();return}Yt.getInstance().log("Restoring a session...");try{await this.authRepository.restoreSession(n)}catch(r){if(AS(r)){const a="Session restore failed: network error. Keeping stored session.",l=r instanceof Error?`${r.name}: ${r.message}`:"unknown error: "+JSON.stringify(r);Yt.getInstance().log(`${a} 117<b>Error</b>: ${l}`),oi("auth",os.Orange,a,os.Orange,r),this.scheduleSessionRestoreOnOnline();return}throw r}Yt.getInstance().log("Session restored. User authorized"),oi("auth",os.Pink,"â Session restored. User authorized")}scheduleSessionRestoreOnOnline(){this.isSessionRestoreOnOnlineSc
117heduled||(this.isSessionRestoreOnOnlineScheduled=!0)}async promptGoogleOneTapSignIn(){await this.authRepository.getGoogleCredentials(async n=>{var i;const s=await this.authRepository.oauthInUp("google",n);this.updateSession(s,"oauth"),(i=this.eventBus)==null||i.dispatchEvent(new y7)})}async promptYandexOneTapSignIn(){await this.authRepository.getYandexCredentials(async n=>{await this.finishYandexAuthWithAccessToken(n)})}closeYandexOneTapSignIn(){this.authRepository.closeYandexWidget()}async finishYandexAuthWithAccessToken(n){var i;const s=await this.authRepository.oauthInUp("yandex",n);this.updateSession(s,"oauth"),(i=this.eventBus)==null||i.dispatchEvent(new _7)}async freezeAccount(){return await this.authRepository.freezeAccount()}async unfreezeByEmailAndPassword(n,s){const i=await this.authRepository.unfreezeAccountByEmailAndPassword(n,s);this.updateSession(i)}async terminateAllSessions(){return await this.authRepository.terminateAllSessions()}async bindSocialToAuthorized(n,s){await this.authRepository.bindSocialToAuthorized(n,s)}async unbindSocialFromAuthorized(n){await this.authRepository.unbindSocialFromAuthorized(n)}async changeEmail(n){await this.authRepository.updateEmail(n)}async confirmEmailChange(n){await this.authRepository.confirmEmailChange(n)}async requestPasswordChange(){await this.authRepository.requestPasswordChange()}}function E7(){const e=pt().resolve("CookieManager"),t=P(null),n=Xn("auth-refresh-token",{token:null,expTimestamp:null}),s="auth:is-session-saved:v2",i=P(e.get(s)==="true");return{get accessTokenData(){return t.value},get refreshTokenData(){return n.value},get isSessionSaved(){return i.value},saveSession(o){if(o===null){t.value=null,n.value={token:null,expTimestamp:null},e.delete(s),i.value=!1;return}t.value={accessToken:o.accessToken,accessExpTimestamp:o.accessExpTimestamp},n.value={token:o.refreshToken,expTimestamp:o.refreshExpTimestamp},e.set(s,"true",{maxAge:"none"}),i.value=!0}}}const x7="https://yastatic.net/s3/passport-sdk/autofill/v1/sdk-suggest-with-polyfills-latest.js";class T7{constructor(t){le(this,"clientLoaded",!1);this.clientId=t}async prepare(){await op(x7),this.clientLoaded=!0}async prompt(t){if(this.clientLoaded||await this.prepare(),typeof window.YaAuthSuggest>"u")throw new Error("Yandex Auth Suggest SDK is not available");const n=window.location.origin,s=`${window.location.origin}/yandex-auth`,i=await window.YaAuthSuggest.init({client_id:this.clientId,response_type:"token",redirect_uri:s},n);if(i.status==="error")throw new Error(`Yandex Auth Suggest error: ${i.code}`);const o=await i.handler();await t(o.access_token)}closeWidget(){typeof window.YaAuthSuggest>"u"||window.YaAuthSuggest.closeWidget()}}function lc(){const e=pt();return e.isRegistered("AuthService")||e.register("AuthService",()=>{const{eventBus:t,serviceWorkerManager:n}=e.resolve("ModuleInitOptions"),s=new TC({hostname:"https://api.vc.ru/v3.4/auth",credentials:"include"},[new o0(t,n)]),i=null,o=q("f50cdfa1d9c3428289b0cc8fbc8a02fb")?new T7("f50cdfa1d9c3428289b0cc8fbc8a02fb"):null,r=new k7(s,i,o,PC(t,n),()=>E7());return new C7(r,t)}),e.resolve("AuthService")}function l0(){const e=lc(),t=ct(),{getReadableErrorText:n,t:s}=ac(),{close:i}=Wt(),{alert:o,AlertType:r}=fn(),{executePendingAction:a}=ws(),{confirm:l}=zb();function c(){var x;const E=(x=t.currentRoute.value.query)==null?void 0:x[ud];a(),typeof E=="string"&&E!==""&&ld(100).then(()=>{t.replace(E)})}async function u(E,x){await e.login(E,x),c()}async function d(E,x,M){await e.signup(E,x,M),c()}async function h(E){await e.confirmEmail(E),c()}async function p(E){await e.confirmEmailChange(E)}async function m(E){return await e.requestPasswordRecovery(E)}async function v(E,x){return await e.changePassword(E,x)}async function g(){await e.logout(),await t.push({name:"HomePage"})}async function b(){try{await e.freezeAccount(),await g()}catch(E){let x=s("common.errorText");E instanceof zi&&E.code===hu.AccountFreezed&&(x=n(E.code)),o({type:r.Error,text:x})}}async function w(E,x){try{await e.unfreezeByEmailAndPassword(E,x),c(),i(),o({type:r.Success,text:s("common.done")})}catch{o({type:r.Error,text:s("common.errorText")})}}async function k(){await l({title:s("auth.terminateAllSessionsConfirmationTitle"),message:s("auth.terminateAllSessionsConfirmationText"),confirmText:s("common.logout"),isDanger:!0});try{await e.terminateAllSessions(),o({type:r.Success,text:s("auth.terminateAllSessionsSuccess")})}catch{o({type:r.Error,text:s("common.errorText")})}}async function y(){await e.requestPasswordChange(),o({type:r.Success,text:s("auth.passwordChangeEmailSent")}
117)}async function S(E){try{await e.changeEmail(E),o({type:r.Success,text:s("auth.emailChangeEmailSent")})}catch(x){let M=s("common.errorText");x instanceof zi&&(M=n(x.code)),o({type:r.Error,text:M})}}return{login:u,signup:d,confirmEmail:h,confirmEmailChange:p,requestPasswordRecovery:m,changePassword:v,logout:g,freeze:b,unfreezeByEmailAndPassword:w,terminateAllSessions:k,requestEmailChange:S,requestPasswordChange:y,authCallback:c}}const A7={class:"auth-bind"},P7={class:"auth-bind__title"},R7=["innerHTML"],I7={class:"auth-bind__actions"},M7=J({__name:"SocialBindConfirm",props:{social:{},name:{}},emits:["confirm","cancel"],setup(e,{emit:t}){const n=t,{t:s}=ac();return(i,o)=>(_(),T("div",A7,[O("div",P7,Y(f(s)("auth.bind.title")),1),O("div",{class:"auth-bind__text",innerHTML:f(s)("auth.bind.text",{social:f(s)(`auth.socials.${e.social}`),name:e.name})},null,8,R7),O("div",I7,[A(f(qe),{type:"primary",size:"l",onClick:o[0]||(o[0]=r=>n("confirm"))},{default:K(()=>[xe(Y(f(s)("auth.bind.confirm")),1)]),_:1}),A(f(qe),{type:"secondary",size:"l",onClick:o[1]||(o[1]=r=>n("cancel"))},{default:K(()=>[xe(Y(f(s)("common.cancel")),1)]),_:1})])]))}});function $C(){const e=lc(),{open:t,close:n,back:s}=Wt(),{authCallback:i}=l0(),{alert:o,AlertType:r}=fn(),{t:a,getReadableErrorText:l}=ac(),c=ct();function u(y){e.updateSession(y,"oauth"),i(),n()}function d(y){o({type:r.Error,text:l(y)}),n()}async function h(y){return await new Promise((S,E)=>{const x=vi(y,"displayWindow",{width:640,height:680});window.addEventListener("message",M);function M(I){const N=new URL("https://api.vc.ru/v3.4/auth").origin;if(console.log("[Auth] handleAuthResponse",I,N,x),I.origin!==N||I.source!==x){if(I.origin!==N)return;I.source!==x&&o({type:r.Error,text:"Wrong source"});return}const V=I.data;if(window==null||window.removeEventListener("message",M),x==null||x.close(),"code"in V){const $=V;E(new zi($.message,$.code,$.data))}else S(V.data)}})}function p(y,S){const{set:E}=RM();E({social:y,frozenUntil:S}),c.push({name:"AccountFrozen"})}async function m(y){try{const S=await h(`https://api.vc.ru/v3.4/auth/${y}/inup?format=jsevent`);Yt.getInstance().log(`Signed in/up with ${y}. New RT <code>${S.refreshToken.slice(0,10)}</code>`),u(S)}catch(S){if(zi.is(S,hu.EmailAlreadyExists)){t(M7,{social:y,name:S.data.existsUserName,onConfirm:()=>{g(y,S.data.code).then(E=>u(E)).catch(E=>{zi.is(E,hu.AccountFreezed)&&p(y,E.data.frozenUntil)})},onCancel:()=>{s()}});return}if(zi.is(S,hu.AccountFreezed)){p(y,S.data.frozenUntil);return}d(S.code)}}async function v(y){await m(y)}async function g(y,S){return await h(`https://api.vc.ru/v3.4/auth/${y}/link?format=jsevent${S!==void 0?`&code=${S}`:""}`)}async function b(y){try{const S=await h(`https://api.vc.ru/v3.4/auth/${y}/unfreeze?format=jsevent`);o({type:r.Success,text:a("common.done")}),u(S)}catch(S){d(S.code)}}async function w(y){const{code:S}=await h(`https://api.vc.ru/v3.4/auth/${y}/oauth?format=jsevent`);try{await e.bindSocialToAuthorized(y,S),o({type:r.Success,text:a("auth.bind.success")})}catch(E){d(E.code)}}async function k(y){try{await e.unbindSocialFromAuthorized(y),o({type:r.Success,text:a("auth.unbind.success")})}catch(S){d(S.code)}}return{signUp:m,signIn:v,link:g,bindAuthorized:w,unbindAuthorized:k,unfreezeBySocial:b}}const $7=yt(()=>{const e=lc(),{t,getReadableErrorText:n}=ac(),{alert:s,AlertType:i}=fn(),o=P("input"),r=P(""),a=C(()=>r.value.trim()),l=C(()=>m7(a.value)),c=P(),u=C(()=>!q(a.value)),d=P(!1);function h(){return v7(a.value)?!0:(c.value=t("auth.emailCollection.error"),!1)}async function p(){if(h()){d.value=!0;try{await e.changeEmail(a.value),o.value="check"}catch(v){let g=t("common.errorText");v instanceof zi&&(g=n(v.code)),s({type:i.Error,text:g})}finally{d.value=!1}}}function m(){q(l.value)&&vi(l.value,"_blank")}return{step:o,email:r,emailTrimmed:a,error:c,isSubmitDisabled:u,isSubmitLoading:d,submit:p,openEmail:m}},()=>({step:P("input"),email:P(""),emailTrimmed:C(()=>""),error:P(),isSubmitDisabled:C(()=>!1),isSubmitLoading:P(!1),submit:async()=>{},openEmail:()=>{}})),L7=J({__name:"EmailCollection",setup(e){const{step:t,email:n,emailTrimmed:s,error:i,isSubmitDisabled:o,isSubmitLoading:r,submit:a,openEmail:l}=$7(),{t:c}=ac();return(u,d)=>(_(),T("div",{class:Z(u.$style.modal)}
117,[f(t)==="input"?(_(),T(ye,{key:0},[O("div",{class:Z(u.$style.modal__header)},[O("div",{class:Z(u.$style.modal__title)},Y(f(c)("common.email")),3)],2),A(f(rc),{modelValue:f(n),"onUpdate:modelValue":d[0]||(d[0]=h=>Ct(n)?n.value=h:null),placeholder:f(c)("auth.emailCollection.placeholder"),error:f(i),invalid:!!f(i),disabled:f(r),onInput:d[1]||(d[1]=h=>i.value=void 0),onKeydown:vn(f(a),["enter"])},null,8,["modelValue","placeholder","error","invalid","disabled","onKeydown"]),A(f(qe),{size:"xl",disabled:f(o),"is-loading":f(r),class:Z(u.$style.modal__button),onClick:f(a)},{default:K(()=>[xe(Y(f(c)("common.next")),1)]),_:1},8,["disabled","is-loading","class","onClick"])],64)):(_(),T(ye,{key:1},[O("div",{class:Z(u.$style.modal__header)},[O("div",{class:Z(u.$style.modal__title)},Y(f(c)("auth.emailCollection.title")),3),O("div",{class:Z(u.$style.modal__text)},Y(f(c)("auth.emailCollection.text",{email:f(s)})),3)],2),A(f(qe),{size:"xl",class:Z(u.$style.modal__button),onClick:f(l)},{default:K(()=>[xe(Y(f(c)("auth.authForm.openEmailButton")),1
117)]),_:1},8,["class","onClick"])],64))],2))}}),O7="pK5gWqbu",B7="igoRLBX-",D7="ffZSmZZ8",N7="x3GrH0rK",F7="Zoqj83cp",U7={modal:O7,modal__header:B7,modal__title:D7,modal__text:N7,modal__button:F7,"underlay-in":"jzXIbcFG","modal-enter":"NC3G0zQk","modal-enter-slide":"hdqpCIvg"},H7={$style:U7},V7=ot(L7,[["__cssModules",H7]]),LC=yt(zt(()=>{const e=lc(),{alert:t,removeAlert:n,AlertType:s}=fn(),{open:i}=Wt(),{t:o}=ac();let r;function a(){c(),i(V7,{},{fit:"cover"})}function l(d){return q(g7(d))}function c(){q(r)&&(n(r),r=void 0)}function u(d){const{session:h,reason:p}=d.detail;c(),h!==null&&(l(h.accessToken)||(p==="oauth"?ld(100).then(()=>{a()}):r=t({type:s.Warning,text:o("auth.emailCollection.alert"),autoHide:!1,button:{text:o("common.specify"),action:()=>{a()}}})))}return e.addEventListener(ci,u),{showModal:a}}),()=>({showModal:()=>{}}));function so(){return lc().isSessionSaved}function OC(){const e=lc();async function t(){if(!so())try{await e.promptYandexOneTapSignIn()}catch(i){oi("auth",os.Pink,"Yandex One Tap error"),console.error(i)}}function n(){e.closeYandexOneTapSignIn()}return{prompt:t,close:n,finishAuthWithAccessToken:async i=>{await e.finishYandexAuthWithAccessToken(i)}}}const z7=Object.freeze(Object.defineProperty({__proto__:null,AUTH_SESSION_UPDATED_EVENT_NAME:ci,AuthForbiddenError:Fo,AuthorizerTransportExtension:o0,CredentialsType:r0,isAuthorized:so,messages:i7,routes:o7,useAuth:l0,useEmailCollection:LC,useRecallActionAuthorized:ws,useSocialAuth:$C,useYandexAuth:OC},Symbol.toStringTag,{value:"Module"})),jd=Xn("user",null,{writeDefaults:!1,serializer:{read:e=>{let t;try{t=JSON.parse(e)}catch{t=!1}return t},write:e=>JSON.stringify(e)}}),jw=P(!1),zn={subsiteSubscriptions:bt(new Set),notificationSubscriptions:bt(new Map),ownedCollectibles:new Tn,getDisabledAdsState(){return jw.value},setDisabledAdsState(e){jw.value=e},getUser(){return jd.value===!1?null:jd.value},setUser(e){e===null?jd.value=!1:jd.value=e}},W7="account:is-ads-disabled:v2";var Hu,Vu,Xv;class j7{constructor(){Fe(this,Vu);le(this,"notificationsSettings",null);Fe(this,Hu,{disabledAdsState:W7});const t=fe(this,Vu,Xv).get(fe(this,Hu).disabledAdsState);zn.setDisabledAdsState(t==="true")}getUser(){return zn.getUser()}setUser(t){zn.setUser(t);const n=(t==null?void 0:t.isPlus)??!1;zn.setDisabledAdsState(n),fe(this,Vu,Xv).set(fe(this,Hu).disabledAdsState,n.toString(),{maxAge:"none"})}getDisabledAdsState(){return zn.getDisabledAdsState()}getNotificationsSettings(){return this.notificationsSettings}setNotificationsSettings(t){this.notificationsSettings=t}get subscriptions(){return[...zn.subsiteSubscriptions]}set subscriptions(t){zn.subsiteSubscriptions.clear(),t.forEach(n=>zn.subsiteSubscriptions.add(n))}setSubsiteSubscription(t,n){n?zn.subsiteSubscriptions.add(t):zn.subsiteSubscriptions.delete(t)}isSubscribedToSubsite(t){return zn.subsiteSubscriptions.has(t)}setSubsiteNotificationSubscription(t,n){n===void 0?zn.notificationSubscriptions.delete(t):zn.notificationSubscriptions.set(t,n)}setSubsiteNotificationSubscriptions(t){zn.notificationSubscriptions.clear(),t.forEach(n=>zn.notificationSubscriptions.set(n,!0))}isSubscribedToNewPosts(t){return zn.notificationSubscriptions.get(t)}get ownedCollectibles(){return zn.ownedCollectibles}}Hu=new WeakMap,Vu=new WeakSet,Xv=function(){return pt().resolve("CookieManager")};const G7={title:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка Plus"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐоддеÑжка пÑоекÑа и доÑÑÑп к дополниÑелÑнÑм ÑÑнкÑиÑм"}},giftTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐодаÑиÑÑ Plus"}},giftDescription:{t:0,b:{t:2,i:[{t:3}],s:"полÑÑÐ¸Ñ Ð´Ð¾ÑÑÑп к дополниÑелÑнÑм ÑÑнкÑиÑм"}},giftDescriptionPeriodNote:{t:0,b:{t:2,i:[{t:3,v:"на "},{t:4,k:"period"}]}},success:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка Plus акÑивиÑована"}},giftSuccess:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¿Ð¾Ð´Ð°Ñили подпиÑкÑ"}},cancel:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑмена подпиÑки Plus"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑле оÑÐ¼ÐµÐ½Ñ Ð¿Ð¾Ð´Ð¿Ð¸Ñка оÑÑанеÑÑÑ Ð°ÐºÑивной до оконÑÐ°Ð½Ð¸Ñ Ð¾Ð¿Ð»Ð°Ñенного пеÑиода"}},submit:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑмениÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ"}},successMessage:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¾Ñменили подпиÑÐºÑ Plus"}},errorMessage:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð¾ÑмениÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐºÑ Plus"}}},features:{videoAvatar:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐидеоаваÑаÑка"}}},noAds:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ðез ÑекламÑ"}}},badge:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ðейдж Ñ Ð¸Ð¼ÐµÐ½Ð¸"}}},nickname:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑаÑивÑй никнейм"}}},appIcon:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑÐ°Ð¸Ð²Ð°ÐµÐ¼Ð°Ñ Ð¸ÐºÐ¾Ð½ÐºÐ° пÑиложениÑ"}}},commentsEdit:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ð§Ð°Ñ Ð½Ð° ÑедакÑиÑование комменÑаÑиев"}}},reactionVoters:{title:{t:0,b:{t:2,i:[{t:3}],s:"СпиÑок оÑенивÑиÑ
поÑÑ Ð¸Ð»Ð¸ комменÑаÑий"}}},reactions:{title:{t:0,b:{t:2,i:[{t:3}],s:"РеакÑии Ñ Ð¿Ð¾ÑÑов и комменÑаÑиев"}}},gifs:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ðо 100 избÑаннÑÑ
GIF"}}}
117,chatgpt:{title:{t:0,b:{t:2,i:[{t:3}],s:"ChatGPT в комменÑаÑиÑÑ
"}}},messenger:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐиÑнÑе ÑообÑениÑ"}}},summary:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑаÑкое ÑодеÑжание поÑÑов"}}},listenPosts:{title:{t:0,b:{t:2,i:[{t:3}],s:"AI-озвÑÑка поÑÑов"}}}},promocode:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑомокод"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ»Ñ Ð¿Ð¾Ð´Ð¿Ð¸Ñки Plus."}},haveOne:{t:0,b:{t:2,i:[{t:3}],s:"У Ð¼ÐµÐ½Ñ ÐµÑÑÑ Ð¿Ñомокод"}},success:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑомокод акÑивиÑован"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"Ðод"}},errors:{"PLUS_SUBSCRIPTION:PROMOCODE_NOT_FOUND":{t:0,b:{t:2,i:[{t:3}],s:"ÐÑомокод не найден"}},"PLUS_SUBSCRIPTION:PROMOCODE_IS_DISABLED":{t:0,b:{t:2,i:[{t:3}],s:"ÐÑомокод болÑÑе не дейÑÑвÑеÑ"}},"PLUS_SUBSCRIPTION:PROMOCODE_ALREADY_ACTIVATED":{t:0,b:{t:2,i:[{t:3}],s:"ÐÑомокод Ñже акÑивиÑован"}},TOO_MANY_CALLS:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑобÑйÑе позже"}}}},widget:{text:{t:0,b:{t:2,i:[{t:3,v:"ÐÑклÑÑиÑе ÑÐµÐºÐ»Ð°Ð¼Ñ Ð½Ð° "},{t:4,k:"appName"},{t:3,v:" и полÑÑиÑе доÑÑÑп к дополниÑелÑнÑм пÑеимÑÑеÑÑвам."}]}},button:{t:0,b:{t:2,i:[{t:3}],s:"ÐодклÑÑиÑÑ"}}}},q7=Object.freeze(Object.defineProperty({__proto__:null,ru:G7},Symbol.toStringTag,{value:"Module"}));var Ln=(e=>(e.DirectLink="Direct Link",e.Badge="Badge",e.DisableAds="Close Ad",e.ExpandComments="Show All",e.EditComment="Comment Edit",e.Account="Account",e.AccountSettings="Settings",e.ListenPost="Listen",e.VideoAvatar="Video Avatar",e.ReactionVoters="Reaction Voters",e.Reactions="Reactions",e.GiftComment="Gift Comment",e.GiftProfile="Gift Profile",e.GiftPostEtc="Gift Post Etc",e.GiftPostFooter="Gift Post Footer",e.FavoriteGifs="Favorite Gifs",e.MobileHeader="Mobile Header",e.NicknameChange="Nickname Change",e.RestrictedComments="Restricted Comments",e.EveryNSession="Every N Session",e.ShowIgnoredComments="Show Banned Comments",e.Messenger="Messenger",e.PostSummary="Post Summary",e.AdblockBanner="Adblock Banner",e.WidgetPlus="Widget Plus",e))(Ln||{}),pn=(e=>(e[e.Month=1]="Month",e[e.ThreeMonth=3]="ThreeMonth",e[e.SixMonth=6]="SixMonth",e[e.Year=12]="Year",e))(pn||{}),gh=(e=>(e.Plus="plus",e.Gift="plus_gift",e))(gh||{});function K7(e){return q(e)&&Object.values(Ln).includes(e)}function Gw(e){return K7(e)?e:void 0}function Rm(e,t){const n=t[pn.Month]*e,s=t[e];return J5(s,n,!0)}function Y7(){const e=P(),t=P();return{get config(){return e.value},set config(n){e.value=n},get userState(){return t.value},set userState(n){t.value=n}}}const c0="plus subscription activated";class X7 extends di{constructor(){super(c0)}}class Q7{constructor(t,n){var s;this.plusRepository=t,this.eventBus=n,(s=this.eventBus)==null||s.addEventListener(ci,async({detail:i})=>{const{session:o,isPreferUserDataUpdate:r}=i;o===null&&(this.plusRepository.userState=void 0),o!==null&&r&&await this.plusRepository.refreshUserState()})}get config(){return this.plusRepository.config}get userState(){return this.plusRepository.userState}applyPeriod(t,n={}){var r,a,l;const s=n.isRecurring===!0?(r=this.userState)==null?void 0:r.dateNextTransaction:(a=this.userState)==null?void 0:a.paidUntil,i=s!==void 0&&s>0?s:at().unix(),o=at(i*1e3).add(t,"month").unix();this.plusRepository.userState={dateNextTransaction:o,isActive:!0,isRecurring:!1,paidUntil:o,source:0,...n},(l=this.eventBus)==null||l.dispatchEvent(new X7)}async getPaymentOptions(t,n,s){return await this.plusRepository.getPaymentOptions(t,n,s)}async cancelRecurrent(){return await this.plusRepository.cancelRecurrent()}async activateByPromocode(t){return await this.plusRepository.activateByPromocode(t)}}class J7 extends Ks{constructor(t,n){super(),this.transport=t,this.createStore=n}get config(){return this.store.config===void 0&&this.refreshConfig(),this.store.config}get userState(){return this.store.userState}set userState(t){this.store.userState=t}async refreshConfig(){this.store.config=await this.transport.get("subscription/payment-prices")}async refreshUserState(){this.userState=await this.transport.get("subscription/plus",void 0,{auth:"strict",apiVersion:"v2.5"})}async getPaymentOptions(t=pn.Month,n=gh.Plus,s){let i=`payments/cloudpayments/widget?period=${t}&type=${n}`;return q(s)&&(i+=`&userId=${s}`),await this.transport.get(i,void 0,{auth:"strict",apiVersion:"v2.4"})}async cancelRecurrent(){return(await this.transport.post("payments/cloudpayments/recurrent/cancel",void 0,{auth:"strict",apiVersion:"v2.4"})).result?(this.userState!==void 0&&(this.userState={...this.userState,isRecurring:!1}),!0):!1}async activateByPromocode(t){return await this.transport.post("subscription/plus/activate-by-promocode",{promocode:t},{auth:"strict"})}}function Z7(){const e=pt();return e.isRegistered("PlusService")||e.register("PlusService",()=>{const{transport:t,eventBus:n}=e.resolve("ModuleInitOptions"),s=new J7(t,()=>Y7());return new Q7(s,n)}),e.resolve("PlusService")}const yp=()=>ft(),sf=yt(Pn(()=>{const e=Z7(),{formatTime:t}=Mr(),{t:n,p:s}=yp(),i=C(()=>e.userState),o=C(()=>{var v;return(v=e.config)==null?void 0:v.prices}),r=C(()=>{var v;
117return((v=i.value)==null?void 0:v.isActive)??!1}),a=C(()=>{var v;return((v=i.value)==null?void 0:v.isRecurring)??!1}),l=C(()=>{var v;return((v=i.value)==null?void 0:v.paidUntil)!==void 0?t(i.value.paidUntil*1e3,us.Full):void 0}),c=C(()=>{var v;return((v=i.value)==null?void 0:v.dateNextTransaction)!==void 0?t(i.value.dateNextTransaction*1e3,us.Full):void 0}),u=C(()=>{if(o.value!==void 0)return{self:[{label:s("common.dates.period.year",1),value:pn.Year,monthPrice:n("common.subscription.purchaseShort.month",{price:yn(Math.round(o.value[pn.Year]/12))}),yearPrice:yn(o.value[pn.Month]*12),cheapYearPrice:yn(o.value[pn.Year]),profit:Rm(pn.Year,o.value)},{label:s("common.dates.period.month",1),value:pn.Month,monthPrice:n("common.subscription.purchaseShort.month",{price:yn(o.value[pn.Month])})}],gift:[{label:s("common.dates.period.month",3),value:pn.ThreeMonth,monthPrice:yn(o.value[pn.ThreeMonth])},{label:s("common.dates.period.month",6),value:pn.SixMonth,monthPrice:yn(o.value[pn.SixMonth]),profit:Rm(pn.SixMonth,o.value)},{label:s("common.dates.period.year",1),value:pn.Year,monthPrice:yn(o.value[pn.Year]),profit:Rm(pn.Year,o.value)}]}});async function d(){await e.cancelRecurrent()}async function h(v){return await e.activateByPromocode(v)}function p(v,g={}){e.applyPeriod(v,g)}async function m(v,g,b){return await e.getPaymentOptions(v,g,b)}return{state:i,prices:o,purchaseOptions:u,isActive:r,isRecurring:a,expirationDate:l,nextPaymentDate:c,cancelRecurrent:d,activatePromocode:h,applyPeriod:p,getPaymentOptions:m}}));class eD{constructor(t){le(this,"transport");this.transport=t}async getForm(t,n){return await this.transport.getForm(t,n)}}class u0{constructor(){le(this,"resources","https://widget.cloudpayments.ru/bundles/paymentblocks.js".split(",")??[]);le(this,"prepare")}async getForm(t,n){var i;return this.prepare===void 0&&(this.prepare=async()=>await u0.loadResources(this.resources)),await this.prepare(),((i=window.cp)==null?void 0:i.PaymentBlocks)===void 0?await Promise.reject(new Error("Resources are missing to proceed to payment")):new window.cp.PaymentBlocks({applePaySupport:!0,googlePaySupport:!0,yandexPaySupport:!0,tinkoffPaySupport:!0,sbpSupport:!0,...t},n)}static async loadResources(t){if(t.length===0)return await Promise.reject(new Error("No resources were provided for loading"));await Promise.all(t.map(async n=>await op(n)))}}class tD{constructor(t){le(this,"paymentsRepository");this.paymentsRepository=t}async getForm(t,n){return await this.paymentsRepository.getForm(t,n)}}function nD(){const e=pt();return e.isRegistered("PaymentsService")||e.register("PaymentsService",()=>{const t=new u0,n=new eD(t);return new tD(n)}),e.resolve("PaymentsService")}function BC(){const e=nD(),t=C(()=>({appearance:{colors:{primaryButtonColor:qr("--theme-color-signal-active-default"),inputColor:qr("--theme-color-text-secondary"),activeInputColor:qr("--theme-color-text-primary"),inputBackground:qr("--theme-color-field-background-default"),inputBorderColor:qr("--theme-color-field-border-default-hex"),errorColor:qr("--theme-color-signal-negative-default")},borders:{radius:"10px"}},components:{paymentButton:{text:"ÐплаÑиÑÑ",fontSize:"17px"},paymentForm:{labelFontSize:"17px",activeLabelFontSize:"13px",fontSize:"17px"}}}));async function n(s){if(e===void 0)throw new Error("Payments service is not available");return await(e==null?void 0:e.getForm(s,t.value))}return{getForm:n}}const sD={class:"payment-form"},DC=J({__name:"PaymentsForm",props:{options:{},onSuccess:{type:Function},onFail:{type:Function}},setup(e){const t=e,n=P(),s=P(0),i=P(!1);let o;const{getForm:r}=BC();return Wo(n,([{contentRect:a}])=>{const l=s.value;s.value=a.height,l>0&&(i.value=!0)}),je(async()=>{n.value!==void 0&&(o=await r(t.options),o.mount(n.value),o.on("success",()=>{var a;(a=t.onSuccess)==null||a.call(t)}),o.on("fail",()=>{var a;(a=t.onFail)==null||a.call(t)}))}),et(()=>{o==null||o.unmount()}),(a,l)=>(_(),T("div",sD,[i.value?D("",!0):(_(),L(f(Yn),{key:0})),O("div",{ref_key:"container",ref:n,class:Z(["payment-form__container",!i.value&&"payment-form__container--hidden"])},null,2)]))}}),iD=Object.freeze(Object.defineProperty({__proto__:null,PaymentsForm:DC,usePayments:BC},Symbol.toStringTag,{value:"Module"}));function NC(){const{t:e}=yp(),{open:t,close:n}=Wt();async function s(){const{default:o}=await Ce(async()=>{const{default:r}=await import("./Cancel-PAuYN_xF.js");return{default:r}},__vite__mapDeps([24,25]));t(o,{onSuccess:n},{title:e("plus.cancel.title")})}async function i(o,r={}){const{default:a}=await Ce(async()=>{const{default:l}=await import("./Landing-Br5rMCij.js");return{default:l}},__vite__mapDeps([26,27,28]));t(a,{source:r.source,giftTo:o,period:r.period},{classes:["modal-window--fancy"],referer:$e.PlusGift})}return{proceedToCancellation:s,proceedToGift:i}}function oD(e={}){const t=sf==null?void 0:sf();if(t===void 0)throw new Error("Tried to call Plus subscription landing without configuration");const n=C(()=>ce(e.source)),s=C(()=>ce(e.giftTo)),i=ct(),{recallAfterAuth:o}=ws(),{alert:r,AlertType:a}=fn(),{t:l,p:c}=yp(),{open:u,back:d,close:h}=Wt(),{isAnon:p}=Ye(),{trackEvent:m}=Qn(),{getAssetsByKey:v}=Fa(),{proceedToGift:g}=NC(),b=C(()=>v("badges")),w=C(()=>v("reactions")),k=P(!1),y=P(ce(e.period)??(q(s.value)?pn.ThreeMonth:pn.Month)),S=C(()=>q(s.value)),E=5,x=bt({badges:0,reactions:0}),M=C(()=>X1(b.value,E).map(ve=>({staticUuid:ve.staticUuid,animatedUuid:ve.animatedUuid}))),I=C(()=>X1(w.value,E).map(ve=>({staticUuid:ve.staticUuid,animatedUuid:ve.animatedUuid}))),N=C(()=>({badge:M.value[x.badges],reaction:I.value[x.reactions]}));c1(()=>{V(x.badges,ve=>{x.badges=ve},E)},2900),c1(()=>{V(x.reactions,ve=>{x.reactions=ve},E)},3100);function V(ve,Me,Ke){ve>=Ke-1?Me(0):Me(ve+1)}const $=C(()=>{var ve;return ce(e.period)!==void 0?[]:(ve=t.purchaseOptions.value)==null?void 0:ve[S.value?"gift":"self"]}),j=C(()=>[{title:l("plus.features.badge.title"),media:N.value.badge,mediaPlaceholder:N.value.badge===void 0},{title:l("plus.features.chatgpt.title"),icon:"chatgpt"},{title:l("plus.features.noAds.title"),icon:"noad"},{title:l("plus.features.reactions.title"),media:N.value.reaction,mediaPlaceholder:N.value.badge===void 0},{title:l("plus.features.summary.title"),icon:"summary"},{title:l("plus.features.nickname.title"),icon:"mention_clear"},{title:l("plus.features.videoAvatar.title"),media:mS()},{title:l("plus.features.messenger.title"),icon:"messenger"},{title:l("plus.features.gifs.title"),icon:"gif"},{title:l("plus.features.commentsEdit.title"),icon:"comment"},{title:l("plus.features.appIcon.title"),icon:"app_icon"},{title:l("plus.features.listenPosts.title"),icon:"headphones"},{title:l("plus.features.reactionVoters.title"),icon:"like"}]),X=C(()=>!p.value&&t.state.value===null),U=C(()=>t.isRecurring.value&&t.isActive.value&&!S.value),R=C(()=>(!t.isActive.value||!t.isRecurring.value||S.value)&&ce(e.period)===void 0),G=C(()=>$.value!==void 0),H=C(()=>
117{if(t.isActive.value&&!S.value)return t.isRecurring.value?`${l("common.subscription.active")}. ${l("common.subscription.nextPayment",{date:t.nextPaymentDate.value})}`:l("common.subscription.activeUntil",{date:t.expirationDate.value})}),se=C(()=>!t.isActive.value||S.value),ue=C(()=>y.value===pn.Year?"year":"month"),de=C(()=>c(`common.dates.period.${ue.value}`,y.value===pn.Year?1:y.value,{textSeparator:Iu})),ke=C(()=>{var Me,Ke,B;if(t.isActive.value&&t.isRecurring.value&&!S.value)return;const ve={label:l(`common.subscription.purchase.${ue.value}`,{price:yn(((Me=t.prices.value)==null?void 0:Me[y.value])??0)}),gtm:["Plus Popup â Buy Plus â Click",{Source:n.value}],note:"",isLoading:X.value||!G.value};return t.isActive.value&&(ve.label=l(`common.subscription.prolong.${ue.value}`,{price:yn(((Ke=t.prices.value)==null?void 0:Ke[y.value])??0)})),t.isRecurring.value||(ve.gtm=["Plus Popup â Buy Plus â Click",{Source:n.value}]),S.value&&(ve.label=l("common.giftForPrice",{price:yn(((B=t.prices.value)==null?void 0:B[y.value])??0)}),ve.note=""),ve}),Se=C(()=>S.value?gh.Gift:gh.Plus);function _e(ve){y.value=ve}function Q(){const ve=y.value;t==null||t.applyPeriod(ve,{isRecurring:!0}),d(),r({type:a.Success,text:l("plus.success")}),m("Plus Popup â Success â Show",{Source:n.value})}function ge(){h(),r({type:a.Success,text:l("plus.giftSuccess")}),m("Plus Popup â Success â Show",{Source:n.value}),i.push({path:location.pathname,force:!0,replace:!0})}async function ie(){if(t===void 0)return!1;const{isActive:ve,isRecurring:Me}=await Do(t.state).not.toBeUndefined();return S.value&&q(s.value)?(g(s.value,{source:n.value}),!1):ve&&Me?(i.push({name:"GeneralSettings"}),!1):(i.push({name:"Plus",params:{source:n.value}}),!(ve&&!Me))}async function ae(){return await o(async ve=>{var Me;if(t===void 0)throw new Error("Tried to receive payment options without configuration");if(!(ve===!0&&!await ie()))return await t.getPaymentOptions(y.value,Se.value,(Me=s.value)==null?void 0:Me.id)})}async function pe(){if(!k.value){k.value=!0;try{const ve=await ae();if(ve===void 0)return;k.value=!1,u(DC,{options:ve,onSuccess:()=>S.value?ge():Q()},{title:ve.description})}finally{k.value=!1}}}return Oa(()=>{m("Plus Popup â Show",{Source:n.value})}),{options:$,features:j,buttonProperties:ke,subscriptionInfoText:H,isLoadingSubscriptionState:X,isLoadingPaymentData:k,isSubscriptionManagementAvailable:U,isShowConsent:se,isOptionsAvailable:R,isOptionsLoaded:G,isGift:S,proceedToPayment:pe,selectPeriod:_e,selectedPeriod:Ft(y),selectedPeriodLabel:de}}const rD=[{path:"/plus/:source?",name:"Plus",component:async()=>await Ce(()=>import("./Landing-Br5rMCij.js"),__vite__mapDeps([26,27,28])),redirect:e=>`?modal=plus${q(e.params.source)?`&source=${e.params.source}`:""}`,meta:{modalClasses:["modal-window--fancy"],refererId:$e.Plus,modalFit:"cover"},props:e=>({source:Gw(e.params.source)}),children:[{path:"promocode",name:"PlusPromocode",component:async()=>await Ce(()=>import("./Promocode-BwS1f7zx.js"),__vite__mapDeps([29,14,30])),redirect:e=>`?modal=plus/promocode${q(e.params.source)?`&source=${e.params.source}`:""}`,props:e=>({source:Gw(e.params.source)}),meta:{authRequired:!0,modalFit:"default"}}]}],aD=J({__name:"PlusIcon",props:{size:{},variant:{default:"fancy"},animationDelay:{default:0}},setup(e){const t=e,n={legacy:async()=>await Ce(()=>import("./plus-icon-animation-CAL0Lsd9.js"),[]),fancy:async()=>await Ce(()=>import("./plus-icon-animation-new-CZ6E9Uu0.js"),[])};let s;const{animationContainerRef:i,isRunning:o,play:r,stop:a}=YS();return je(async()=>{s=setTimeout(()=>{r(n[t.variant],!0)},t.animationDelay)}),et(()=>{clearTimeout(s),s=void 0,a()}),(l,c)=>(_(),T("div",{ref:u=>{i.value=u},class:"plus-icon",style:Ot({"--size":`${e.size}px`})},[f(o)?D("",!0):(_(),L(f(Re),{key:0,name:"badge_plus_static",width:e.size,height:e.size},null,8,["width","height"]))],4))}}),FC=ot(aD,[["__scopeId","data-v-7a4daf20"]]),lD=J({__name:"Widget",setup(e){const{t}=yp(),n=ct(),s="vc.ru";function i(){n.push({name:"Plus",params:{source:Ln.WidgetPlus}})}return(o,r)=>(_(),T("div",{class:Z(o.$style.widget)},[O("div",{class:Z(o.$style.widget__header)},[O("div",{class:Z(o.$style.widget__title)},Y(f(t)("plus.title")),3),A(f(Xi),{icon:"cross",size:"small",onClick:i})],2),O("div",{class:Z(o.$style.widget__picture)},[A(FC,{size:80})],2),O("div",{class:Z(o.$style.widget__text)},Y(f(t)("plus.widget.text",{appName:f(s)})),3),A(f(qe),{rounded:"",onClick:i},{default:K(()=>
117[xe(Y(f(t)("plus.widget.button")),1)]),_:1})],2))}}),cD="oZtbmgrg",uD="zvOfPAq-",dD="vEZiyIOH",fD="PBaFVA37",hD="ANYj7i6q",pD={widget:cD,widget__header:uD,widget__title:dD,widget__picture:fD,widget__text:hD,"underlay-in":"-rpkE5E1","modal-enter":"SByVk4hE","modal-enter-slide":"mdNEevM8"},mD={$style:pD},vD=ot(lD,[["__cssModules",mD]]),d0=Un(sf),gD=Un(oD),bD=Un(NC),yD=Object.freeze(Object.defineProperty({__proto__:null,PLUS_SUBSCRIPTION_ACTIVATED_EVENT_NAME:c0,PlusEntryPoint:Ln,PlusIcon:FC,Widget:vD,messages:q7,routes:rD,usePlusNavigation:bD,usePlusSubscription:d0,usePlusSubscriptionLanding:gD},Symbol.toStringTag,{value:"Module"})),f0="user data updated";class qw extends di{constructor(n,s){super(f0,{id:n,updatedData:s});le(this,"shouldBeBroadcasted",!0)}}class wD{constructor(t,n){var s,i;this.accountRepository=t,this.eventBus=n,(s=this.eventBus)==null||s.addEventListener(ci,async({detail:o})=>{const{session:r,isPreferUserDataUpdate:a}=o;if(r===null){this.clearUser(),this.clearSubscriptions();return}a&&(await this.refreshUser(),await this.refreshSubscriptions())}),(i=this.eventBus)==null||i.addEventListener(c0,async()=>{this.changeIsPlus(!0),this.refreshUser()})}getUser(){return this.accountRepository.getUser()}getDisabledAdsState(){return this.accountRepository.getDisabledAdsState()}async refreshUser(){return await this.accountRepository.refreshUser()}async getUserCredentials(){return await this.accountRepository.getUserCredentials()}clearUser(){this.accountRepository.saveUser(null)}async update(t){var s;await this.accountRepository.update(t);const n=this.getUser();n!=null&&((s=this.eventBus)==null||s.dispatchEvent(new qw(n.id,as(t))))}changeIsPlus(t){this.accountRepository.updateIsPlus(t)}async getBlockedUsersList(){return await this.accountRepository.getBlockedUsersList()}async blockUser(t){await this.accountRepository.addUserToBlockedList(t)}async unblockUser(t){await this.accountRepository.removeUserFromBlockedList(t)}async getNotificationsSettings(){return await this.accountRepository.getNotificationsSettings()}async saveNotificationsSettings(t){return await this.accountRepository.saveNotificationsSettings(t)}async changeBadge(t){return await this.accountRepository.changeBadge(t)}getSubscriptions(){return this.accountRepository.getSubscriptions()}clearSubscriptions(){this.accountRepository.clearSubscriptions()}async refreshSubscriptions(){return await this.accountRepository.refreshSubscriptions()}setSubscriptionNotificationState(t,n){this.accountRepository.setSubscriptionNotificationState(t,n)}async subscribeToSubsite(t,n,s){await this.accountRepository.subscribeToSubsite(t,n,s)}async unsubscribeFromSubscriptions(t){if(await this.accountRepository.unsubscribeFromSubscriptions(t),t==="notifications"){this.accountRepository.disableAllSubscriptionsNotificationsLocally();return}await this.refreshSubscriptions()}isSubscribedToSubsite(t){return this.accountRepository.isSubscribedToSubsite(t)}async subscribeToSubsiteNotifications(t,n){await this.accountRepository.subscribeToSubsiteNotifications(t,n)}isSubscribedToSubsiteNotifications(t){return this.accountRepository.isSubscribedToSubsiteNotifications(t)}async checkNickname(t){return await this.accountRepository.checkNickname(t)}async getUserCollectibles(t){return await this.accountRepository.getUserCollectibles(t)}async setFavoriteCollectible(t){await this.accountRepository.setFavoriteCollectible(t)}async setPinnedCollectible(t,n){var i,o;await this.accountRepository.setPinnedCollectible(t,n);const s=(i=this.getUser())==null?void 0:i.id;s!==void 0&&((o=this.eventBus)==null||o.dispatchEvent(new qw(s,null)))}}function Uc(e){const t={};return e.forEach(n=>{n.items.forEach(s=>{t[s.key]=s.enabled})}),t}function Qv(e,t){const n={};return Object.keys(e).forEach(s=>{e[s]!==t[s]&&(n[s]=e[s])}),n}class _D extends Ks{constructor(t,n){super(),this.osnovaApiTransport=t,this.createStore=n}getUser(){return this.store.getUser()}async refreshUser(){const t=await this.osnovaApiTransport.get("subsite/me",void 0,{auth:"strict"});this.store.setUser(t)}saveUser(t){this.store.setUser(t)}getDisabledAdsState(){return this.store.getDisabledAdsState()}async update(t){const n=this.store.getUser(),s=Object.keys(t).reduce((i,o)=>{const r=t[o];return o==="coverY"&&(o="cover_y"),i[o]=typeof r=="object"?JSON.stringify(r):r,i},{});await this.osnovaApiTransport.post("subsite/update",{subsiteId:n==null?void 0:n.id,...s},{auth:"strict"}),this.store.setUser({...n,...t})}updateIsPlus(t){const n=this.store.getUser();n!=null&&this.store.setUser({...n,isPlus:t})}async getBlockedUsersList(){return await this.osnovaApiTransport.get("ignores/subsites",void 0,{auth:"strict"})}async addUserToBlockedList(t){await this.osnovaApiTransport.post("subsite/mute",{id:t,action:"mute"},{auth:"strict"})}async removeUserFromBlockedList(t){await this.osnovaApiTransport.post("subsite/mute",{id:t,action:"unmute"},{auth:"strict"})}async getUserCredentials(){return(await this.osnovaApiTransport.get("subsite/credentials",void 0,{auth:"strict"})).credentials}async getNotificationsSettings(){const t=this.store.getNotificationsSettings();if(t!==null)return as(t);const s={channels:(await this.osnovaApiTransport.get("user/notifications/settings",void 0,{auth:"strict"})).channels};return this.store.setNotificationsSettings(s),as(s)}async saveNotificationsSettings(t){const n=this.store.getNotificationsSettings();if(n===null)return{channels:[]};const s=Qv(t,Uc(n.channels));if(Object.keys(s).length===0)return as(n);const o={channels:(await this.osnovaApiTransport.post("user/notifications/settings",{settings:s},{auth:"strict"})).channels};return this.store.setNotificationsSettings(o),as(o)}async changeBadge(t){const n=this.store.getUser();if(!q(n))return;const s=n.badgeId;this.store.setUser({...n,badgeId:t});try{await this.osnovaApiTransport.post("subscription/changeBadge",{badgeId:t},{auth:"strict"})}catch(i){throw this.store.setUser({...n,badgeId:s}),i}}getSubscriptions(){return this.store.subscriptions}clearSubscriptions(){this.store.subscriptions=[],this.store.setSubsiteNotificationSubscriptions([])}async refreshSubscriptions(){const{ids:t}=await this.osnovaApiTransport.get("subsite/subscriptionsIds",void 0,{auth:"strict",apiVersion:"v2.4"});this.store.subscriptions=t}disableAllSubscriptionsNotificationsLocally(){this.store.subscriptions.forEach(t=>{this.store.setSubsiteNotificationSubscription(t,!1)})}setSubscriptionNotificationState(t,n){this.store.setSubsiteNotificationSubscription(t,n)}async subscribeToSubsite(t,n,s){const i=(s==null?void 0:s.isSubscribedToNotifications)??!1,o={isSubscribed:this.isSubscribedToSubsite(t),isSubscribedToNotifications:this.isSubscribedToSubsiteNotifications(t)};this.store.setSubsiteSubscription(t,n),this.store.setSubsiteNotificationSubscription(t,i);try{const r=n?"subscribe":"unsubscribe";if(!(await this.osnovaApiTransport.post("subsite/subscription",{id:t,action:r,isSubscribedToNotifications:i,location:s==null?void 0:s.location,previousPage:s==null?void 0:s.previousPage,fromFeed:s==null?void 0:s.fromFeed,hitId:s==null?void 0:s.hitId,...(s==null?void 0:s.meta)!==void 0?{meta:JSON.stringify(s.meta)}:{}},{auth:"strict"})).result)throw new Error("Unable to subscribe")}catch(r){if(this.store.setSubsiteSubscription(t,o.isSubscribed),this.store.setSubsiteNotificationSubscription(t,o.isSubscribedToNotifications),r instanceof Fo)throw r}}async unsubscribeFromSubscriptions(t){await this.osnovaApiTransport.post("subscriptions/unsubscribe",{scope:t},{auth:"strict"})}isSubscribedToSubsite(t){return this.store.isSubscribedToSubsite(t)}async subscribeToSubsiteNotifications(t,n){const s=this.isSubscribedToSubsiteNotifications(t);this.store.setSubsiteNotificationSubscription(t,n);try{const i=n?"subscribe":"unsubscribe";if(!(await this.osnovaApiTransport.post(`subsite/notifications/subsite/${i}/${t}`,void 0,{auth:"strict"})).result)throw new Error("Unable to subscribe to notifications")}catch{this.store.setSubsiteNotificationSubscription(t,s)}}isSubscribedToSubsiteNotifications(t){return this.store.isSubscribedToNewPosts(t)}async checkNickname(t){const n="nickname:check";this.osnovaApiTransport.abort(n);const{available:s}=await this.osnovaApiTransport.get(`nicknames/${t}/check`,void 0,{abortToken:n});return s}async getUserCollectibles(t){return await this.store.ownedCollectibles.resolve(async n=>await this.osnovaApiTransport.get("collectibles/me",n,{auth:"strict"}),t),this.store.ownedCollectibles.api}async setFavoriteCollectible(t){const n=this.store.getUser();if(!q(n))throw new Error("No user to update");const s=n.favoriteCollectible;this.store.setUser({...n,favoriteCollectible:t});try{await this.osnovaApiTransport.post("collectibles/favorite",t!==null?{type:t.type,id:t.data.id}:void 0,{auth:"strict"})}catch(i){throw this.store.setUser({...n,favoriteCollectible:s}),i}}
117async setPinnedCollectible(t,n){const s=n?"pin":"unpin";await this.osnovaApiTransport.post(`collectibles/${s}`,t,{auth:"strict"})}}function cc(){const e=pt();return e.isRegistered("AccountService")||e.register("AccountService",()=>{const{transport:t,eventBus:n}=e.resolve("ModuleInitOptions"),s=new _D(t,()=>new j7);return new wD(s,n)}),e.resolve("AccountService")}var UC=(e=>(e[e.AuthenticatedUser=0]="AuthenticatedUser",e))(UC||{});const Ye=zt(()=>{const e=cc(),t=C(()=>e.getUser()),n=C(()=>t.value===null),s=C(()=>{var h;return((h=t.value)==null?void 0:h.isPlus)===!0}),i=C(()=>{var h;return((h=t.value)==null?void 0:h.isPro)===!0}),o=C(()=>{var h;return((h=t.value)==null?void 0:h.isVerified)===!0}),r=C(()=>e.getDisabledAdsState()),a=C(()=>{var h;return((h=t.value)==null?void 0:h.isUnverifiedBlogForCompanyWithoutPro)??!1}),l=C(()=>q(t.value)?t.value.isUnverifiedBlogForCompanyWithoutPro||i.value:!1),c=C(()=>{var h,p;return q((h=t.value)==null?void 0:h.aclGroup)&&((p=t.value)==null?void 0:p.aclGroup)>UC.AuthenticatedUser}),u=xr();be(t,(h,p)=>{q(h)&&q(p)||u.trigger({to:h,from:p,isAnon:h===null})});function d(h){if(!q(t.value))return!1;if(typeof h=="number")return h===t.value.id;const p=parseInt(h,10);if(!Number.isNaN(p))return p===t.value.id;const{id:m,nickname:v}=Ea(h);return m===t.value.id||v===t.value.nickname}return{user:t,isAnon:n,onUserUpdate:u.on,offUserUpdate:u.off,isMe:d,isPlusSubscriber:s,isProSubscriber:i,isUserVerified:o,isUserDisabledAds:r,isPromoteProFeatures:l,isHaveProRestrictions:a,isPrivilegedUser:c}});function pd(){const e=cc(),{recallAfterAuth:t}=ws(),n=Xn("video-autoplay",!0);async function s(i){await e.update(i)}return{update:s,async setBadge(i){await e.changeBadge(i)},async setAvatar(i){await s({avatar:i})},async setCover(i,o=0){await s({cover:i,coverY:o})},async setNickname(i){await s({nickname:i})},async setBlurNsfw(i){await t(async()=>await s({isBlurNsfw:i}))},async isNicknameAvailable(i){return await e.checkNickname(i)},async setFavoriteCollectible(i){await e.setFavoriteCollectible(i)},async setPinnedCollectible(i,o){await e.setPinnedCollectible(i,o)},isAutoplayEnabled:n}}function kD(){const e=cc(),{getAssetsByKey:t}=Fa(),{open:n,tryKeepPopoverInViewport:s}=ys(),{user:i,isProSubscriber:o,isPlusSubscriber:r,isUserVerified:a}=Ye(),{setBadge:l,setFavoriteCollectible:c}=pd(),u=Or(async v=>await e.getUserCollectibles(v)),d=C(()=>t("badges")),h=C(()=>{if(a.value)return ef.Verified;if(o.value)return ef.Pro;if(r.value)return ef.Plus});function p(v,g){const b=new Map;return v.forEach(w=>{const k=`${w.type}:${w.data.previewUuid}:${w.data.title}`;(!b.has(k)||w.data.id===g)&&b.set(k,w)}),[...b.values()]}function m({target:v,selectedValue:g,dataGetter:b}){n(kC,{selectable:!0,selected:g,data:b},{target:v,width:"auto",positionX:"center"})}return{showBadgePicker(v){var g;m({target:v,selectedValue:((g=i.value)==null?void 0:g.badgeId)??void 0,dataGetter:async()=>{var w;return((w=d.value)==null?void 0:w.filter(k=>k.type===h.value)).map(k=>({value:k.id,media:xn({uuid:k.animatedUuid??k.staticUuid,color:"transparent"}),mediaRaw:!0,action:async y=>{q(y.value)&&await l(y.value)}}))}})},showCollectiblePicker(v){var w,k;const b=((k=(w=i.value)==null?void 0:w.favoriteCollectible)==null?void 0:k.data.id)??-1;m({target:v,selectedValue:b,dataGetter:async({setLoadingState:y,onAfterDataSet:S})=>{y(!0),u.isLoadedInitial||await u.loadInitial(),y(!1);const E=p(u.items,b).map(x=>({value:x.data.id,media:xn({uuid:x.data.previewUuid,color:"transparent"}),action:async M=>{q(M.value)&&await c(x)}}));return S(()=>{s()}),[{value:-1,icon:"ban",action:async()=>{await c(null)}},...E]}})}}}const SD={path:"/settings",meta:{authRequired:!0,refererId:$e.Settings},children:[{path:"",component:Rt(async()=>await Ce(()=>import("./Settings-DaXnd9VD.js"),__vite__mapDeps([31,32,33,34]))),name:"Settings"},{path:"blog",component:Rt(async()=>await Ce(()=>import("./BlogSettings-BjvBkWQd.js"),__vite__mapDeps([35,36,32,33,37]))),name:"BlogSettings"},{path:"feeds",component:Rt(async()=>await Ce(()=>import("./FeedsSettings-DvSScSeB.js"),__vite__mapDeps([38,32,33,39]))),name:"FeedsSettings"},{path:"general",component:Rt(async()=>await Ce(()=>import("./GeneralSettings-BDaIr2P3.js"),__vite__mapDeps([40,32,33,41]))),name:"GeneralSettings"},{path:"notifications",component:Rt(async()=>await Ce(()=>import("./NotificationsSettings-BwY4oi6l.js"),__vite__mapDeps([42,32,33,43]))),name:"NotificationsSettings"}]},CD=[...q(void 0)?[]:[SD]];function ED(){const e=cc(),{bindAuthorized:t,unbindAuthorized:n}=$C(),s=P([]),i=C(()=>{var l,c;return(c=(l=s.value)==null?void 0:l.find(u=>u.type===r0.Password))==null?void 0:c.login});async function o(){s.value=await e.getUserCredentials()}async function r(l){await t(l),await o()}async function a(l){await n(l),await o()}return je(async()=>{await o()}),{email:i,credentials:Ft(s),bindSocialCredentials:r,unbindSocialCredentials:a}}const HC=()=>ft();function Nr(){const e=cc(),{recallAfterAuth:t}=ws(),{alert:n,AlertType:s}=fn(),{t:i}=HC(),o=new Set,r=c=>({type:s.Success,text:c===_t.Blog?i("account.subscriptions.userBlocked"):i("account.subscriptions.topicBlocked")}),a=c=>({type:s.Success,text:c===_t.Blog?i("account.subscriptions.userUnblocked"):i("account.subscriptions.topicUnblocked")}),l=C(()=>e.getSubscriptions().length);return{async subscribeTo(c,u,d){await e.subscribeToSubsite(c,u,d)},async unsubscribeFromSubscriptions(c){await e.unsubscribeFromSubscriptions(c)},async refreshSubscriptions(){await e.refreshSubscriptions()},setSubscriptionNotificationState(c,u){e.setSubscriptionNotificationState(c,u)},isSubscribedTo(c){return e.isSubscribedToSubsite(c)},async subscribeToNotifications(c,u,{onError:d}={}){try{await e.subscribeToSubsiteNotifications(c,u),u||n({type:s.Success,text:i("account.subscriptions.notificationsUnsubscribed")})}catch{n({type:s.Error,text:i("common.errorText")}),d==null||d()}},isSubscribedToNotifications(c){return e.isSubscribedToSubsiteNotifications(c)},async block({id:c,type:u},{onCancel:d,onError:h}={}){try{await t(async()=>await e.blockUser(c)),o.add(c),n({...r(u),button:{text:i("common.cancel"),action:async()=>{await e.unblockUser(c),n(a(u)),d==null||d()}}})}catch{n({type:s.Error,text:i("common.errorText")}),h==null||h()}},async unblock({id:c,type:u},{onCancel:d,onError:h}={}){try{await t(async()=>await e.unblockUser(c)),o.delete(c),n({...a(u),button:{text:i("common.cancel"),action:async()=>{await e.blockUser(c),n(r(u)),d==null||d()}}})}catch{n({type:s.Error,text:i("common.errorText")}),h==null||h()}},isBlocked(c){return o.has(c)},async getBlockedUsers(){return await e.getBlockedUsersList()},subscriptionsCount:l}}const xD={permission:{granted:{t:0,b:{t:2,i:[{t:3}],s:"РазÑеÑено в бÑаÑзеÑе"}}
117,denied:{t:0,b:{t:2,i:[{t:3}],s:"ÐапÑеÑено в бÑаÑзеÑе"}},default:{t:0,b:{t:2,i:[{t:3}],s:"ТÑебÑеÑÑÑ ÑазÑеÑение"}},unsupported:{t:0,b:{t:2,i:[{t:3}],s:"Ðе поддеÑживаеÑÑÑ Ð² ÑÑом бÑаÑзеÑе"}}},enableInBrowser:{t:0,b:{t:2,i:[{t:3}],s:"ÐклÑÑиÑÑ Ð² бÑаÑзеÑе"}},permissionDenied:{t:0,b:{t:2,i:[{t:3}],s:"РазÑеÑиÑе ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð² наÑÑÑойкаÑ
бÑаÑзеÑа, ÑÑÐ¾Ð±Ñ Ð²ÐºÐ»ÑÑиÑÑ push"}},subscribeFailed:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð¿Ð¾Ð´ÐºÐ»ÑÑиÑÑ push-ÑведомлениÑ"}}},TD=Object.freeze(Object.defineProperty({__proto__:null,ru:xD},Symbol.toStringTag,{value:"Module"}));class AD extends Ks{constructor(t,n){super(),this.transport=t,this.createStore=n}async subscribe(t){await this.transport.post("user/notifications/push/subscribe",{subscription:t},{auth:"strict"})}async unsubscribe(t){await this.transport.post("user/notifications/push/unsubscribe",{endpoint:t},{auth:"strict"})}getIsOptedOut(){return this.store.getIsOptedOut()}setIsOptedOut(t){this.store.setIsOptedOut(t)}}class PD{constructor(){le(this,"isOptedOutStored",Xn("webpush-opted-out",!1))}getIsOptedOut(){return this.isOptedOutStored.value}setIsOptedOut(t){this.isOptedOutStored.value=t}}class Jv extends Error{constructor(t="Web Push is not supported in this browser"){super(t),this.name="WebPushUnsupportedError"}}class pu extends Error{constructor(t="Notification permission denied"){super(t),this.name="WebPushPermissionDeniedError"}}class VC extends Error{constructor(t="VITE_VAPID_PUBLIC_KEY is not configured"){super(t),this.name="WebPushConfigurationError"}}function RD(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),s=window.atob(n),i=new Uint8Array(s.length);for(let o=0;o<s.length;o++)i[o]=s.charCodeAt(o);return i}function ID(e){var n;const t=e.toJSON();if(t.endpoint===void 0||((n=t.keys)==null?void 0:n.p256dh)===void 0||t.keys.auth===void 0)throw new Error("PushSubscription is missing required fields");return{endpoint:t.endpoint,expirationTime:t.expirationTime??null,keys:{p256dh:t.keys.p256dh,auth:t.keys.auth}}}function xc(){return typeof window<"u"&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window}class MD{constructor(t,n){var s;this.webPushRepository=t,this.eventBus=n,(s=this.eventBus)==null||s.addEventListener(ci,({detail:i})=>{this.syncWithSession(i.session)}),so()||this.dropSubscription()}getPermission(){return xc()?Notification.permission:"unsupported"}async subscribe(){if(!xc())throw new Jv;const t="BJm6LA6Qd_5SMoMk_pwq_svnX8GP6DavF26q_Y1K5wLfo-EDD6M6YbgfGN8KoUzCQNeH_G2x_sOMFGWzO7NPOM8".trim();if(!q(t))throw new VC;let n=Notification.permission;if(n==="default"&&(n=await Notification.requestPermission()),n==="denied")throw new pu;if(n!=="granted")throw new pu;const s=await navigator.serviceWorker.ready,i=await s.pushManager.getSubscription();let o=i;o===null&&(o=await s.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:RD(t)}));try{await this.webPushRepository.subscribe(ID(o))}catch(r){if(i===null)try{await o.unsubscribe()}catch{}throw r}this.webPushRepository.setIsOptedOut(!1)}isOptedOut(){return this.webPushRepository.getIsOptedOut()}async unsubscribe(){this.webPushRepository.setIsOptedOut(!0),await this.dropSubscription()}async dropSubscription(){if(!xc())return;const n=await(await navigator.serviceWorker.ready).pushManager.getSubscription();if(n===null)return;const{endpoint:s}=n;try{await this.webPushRepository.unsubscribe(s)}catch{}await n.unsubscribe()}async hasSubscription(){if(!xc())return!1;const t=await navigator.serviceWorker.getRegistration();return t===void 0?!1:await t.pushManager.getSubscription()!==null}async showTestNotification(){if(!xc())throw new Jv;if(Notification.permission!=="granted")throw new pu;await(await navigator.serviceWorker.ready).showNotification("ТеÑÑ Web Push",{body:"ÐÑли ÑÑо видно â ÑиÑÑемнÑе ÑÐ²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Chrome/ÐС ÑабоÑаÑÑ",data:{url:`${window.location.origin}/settings/notifications?source=push`}})}async syncWithSession(t){if(t===null){await this.dropSubscription();return}if(this.getPermission()==="granted"&&!this.webPushRepository.getIsOptedOut())try{await this.subscribe()}catch{}}}function zC(){const e=pt();return e.isRegistered("WebPushService")||e.register("WebPushService",()=>{const{transport:t,eventBus:n}=e.resolve("ModuleInitOptions"),s=new AD(t,()=>new PD);return new MD(s,n)}),e.resolve("WebPushService")}const $D="webpush:navigate";function LD(){const e=zC(),t=P(e.getPermission()),n=P(),s=P(e.isOptedOut()),i=P(!1),o=C(()=>t.value!=="unsupported"),r=C(()=>t.value==="granted"),a=C(()=>t.value==="denied");function l(m){const v=m.data;if((v==null?void 0:v.type)!==$D)return;const g=v.url;typeof g=="string"&&g.length>0&&(window.location.href=g)}
117"serviceWorker"in navigator&&(navigator.serviceWorker.addEventListener("message",l),Mg(()=>{navigator.serviceWorker.removeEventListener("message",l)}));function c(){t.value=e.getPermission()}async function u(){c(),n.value=await e.hasSubscription(),s.value=e.isOptedOut()}async function d(){i.value=!0;try{await e.subscribe()}finally{i.value=!1,await u()}}async function h(){i.value=!0;try{await e.unsubscribe()}finally{i.value=!1,await u()}}async function p(){i.value=!0;try{await e.showTestNotification()}finally{i.value=!1}}return{permission:t,isSubscribed:n,isOptedOut:s,isBusy:i,isSupported:o,isGranted:r,isDenied:a,syncPermission:c,syncSubscription:u,subscribe:d,unsubscribe:h,showTestNotification:p}}const OD=yt(zt(LD)),BD=[],h0=Un(OD),DD=Object.freeze(Object.defineProperty({__proto__:null,WebPushConfigurationError:VC,WebPushPermissionDeniedError:pu,WebPushUnsupportedError:Jv,messages:TD,resolveWebPushService:zC,routes:BD,useWebPush:h0},Symbol.toStringTag,{value:"Module"}));function ND(e){return Object.entries(e).some(([t,n])=>t.startsWith("push_")&&n)}function FD(){const e=cc(),{t}=HC(),{alert:n,AlertType:s}=fn(),i=h0(),o=P(!1),r=P(!1),a=P({channels:[]}),l=P({channels:[]}),c=C(()=>{if(!o.value)return!1;const h=Qv(Uc(l.value.channels),Uc(a.value.channels));return Object.keys(h).length>0});function u(){const h=a.value.channels.find(m=>m.key==="push"),p=l.value.channels.find(m=>m.key==="push");h===void 0||p===void 0||(p.items=as(h.items))}async function d(h){const p=h??await e.getNotificationsSettings();a.value=as(p),l.value=as(p)}return je(async()=>{var h;i.syncSubscription!==void 0?await i.syncSubscription():(h=i.syncPermission)==null||h.call(i),await d(),o.value=!0}),{model:l,isReady:o,isSaveAvailable:c,isSaving:r,webPush:i,async disablePush(){i.unsubscribe!==void 0&&(await i.unsubscribe(),u())},async save(){var h,p;try{r.value=!0;const m=Qv(Uc(l.value.channels),Uc(a.value.channels));if(ND(m)&&i.subscribe!==void 0&&((h=i.isOptedOut)==null?void 0:h.value)!==!0)try{await i.subscribe()}catch(g){if(g instanceof pu||((p=i.isDenied)==null?void 0:p.value)===!0)n({type:s.Error,text:t("account.notificationsSettings.pushPermissionDeniedAlert")});else{const b=g.message;n({type:s.Error,text:b.length>0?b:t("account.notificationsSettings.pushSubscribeFailed")})}await d();return}const v=await e.saveNotificationsSettings(m);await d(v),n({type:s.Success,text:t("account.settingsUpdated")})}catch(m){n({type:s.Error,text:m.message})}finally{r.value=!1}}}}const WC=Un(kD),UD=Object.freeze(Object.defineProperty({__proto__:null,USER_DATA_UPDATED_EVENT_NAME:f0,messages:QB,routes:CD,useUserCredentials:ED,useUserData:Ye,useUserNotificationsSettings:FD,useUserSettings:pd,useUserShowcaseSettings:WC,useUserSubscriptions:Nr},Symbol.toStringTag,{value:"Module"})),p0=zt(()=>{const e=P(null),t=P(void 0);function n(r){e.value=r}function s(){e.value=null}function i(){return e.value}function o(r){t.value=r}return{context:e,setContext:n,clearContext:s,getContext:i,setContextIsLoading:o,isLoading:t}});class HD{constructor(t){le(this,"bannersRepository");this.bannersRepository=t}get isConfigured(){return this.bannersRepository.isTransportConfigured}get isResourcesReady(){return this.bannersRepository.isResourcesReady}async get(t,n,s,i){return await this.bannersRepository.get(t,n,s,i)}remove(t,n){return this.bannersRepository.remove(t,n)}refresh(){this.bannersRepository.refresh()}isEnabled(t){return this.bannersRepository.isEnabled(t)}}class VD{constructor(t){this.repository=t}async get(t){return await this.repository.get(t)}async hit(t,n){return await this.repository.hit(t,n)}async trackClick(t,n){return await this.repository.trackClick(t,n)}}var zu;class Zv{constructor(){le(this,"banners");Fe(this,zu,P());this.banners=new Map}get isResourcesReady(){return fe(this,zu).value}set isResourcesReady(t){fe(this,zu).value=t}static composeCacheKey(t,n){return`${t}:${n}`}add(t,n){this.banners.set(t,n)}remove(t){this.banners.delete(t)}get(t){return this.banners.get(t)}getAll(){return this.banners}}zu=new WeakMap;class zD{constructor(t,n){this.transport=t,this.store=n}get isTransportConfigured(){return this.transport.isConfigured}get isResourcesReady(){return this.store.isResourcesReady}async get(t,n,s,i){const o=Zv.composeCacheKey(t,n),r=this.store.get(o);if(r!==void 0)return r;try{const a=await this.transport.getBanner(t,n,s,i);return a!==null&&this.store.add(o,a),a}catch(a){return console.error(a),null}finally{this.store.isResourcesReady=this.transport.isResourcesReady}}remove(t,n){const s=Zv.composeCacheKey(t,n),i=this.store.get(s);i!==void 0&&(i.destroy(),this.store.remove(s))}refresh(){this.transport.refresh()}isEnabled(t){return this.transport.isBannerEnabled(t)}}class WD{constructor(t){this.transport=t}async get(t){const n=`distribution:${t}`;this.transport.abort(n);const s=await this.transport.get("distribution",{place:t},{apiVersion:"v2.5",abortToken:n});if(Array.isArray(s))throw new Error("Distribution is not available");return s}async hit(t,n){return await this.transport.post(`distribution/${t.id}/hit`,{place:n},{apiVersion:"v2.5"})}async trackClick(t,n){return await this.transport.post(`distribution/${t.id}/click`,{place:n,hash:t.hash},{apiVersion:"v2.5"})}}
117class m0{constructor(){le(this,"name");le(this,"resources");le(this,"ownerId");le(this,"configJson");le(this,"isResourcesRequested");le(this,"_isResourcesReady");this.name="Adfox",this.resources="https://yandex.ru/ads/system/context.js".split(",")??[],this.ownerId="228129",this.configJson='[ { "id":1, "label":"D - Above Header", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"ezfl" } }, { "id":2, "label":"D - Vertical", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"ezfk" } }, { "id":3, "label":"D - Microteaser Above Post", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"gtjk" } }, { "id":4, "label":"M - Microteaser Above Post", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"ihpn" } }, { "id":5, "label":"D - Microteaser Below Post", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"ffyh" } }, { "id":6, "label":"M - Microteaser Below Post", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"fjxb" } }, { "id":7, "label":"D - Video", "enabled":false, "params":{ "pp":"g", "ps":"hkcm", "p2":"fizc" } }, { "id":8, "label":"DM - 2nd Teaser In Popular", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"ftjf" } }, { "id":9, "label":"M - Post Middle", "enabled":false, "params":{ "pp":"g", "ps":"hkcm", "p2":"flvn" } }, { "id":10, "label":"DM - Feed Between Posts", "enabled":false, "params":{ "pp":"g", "ps":"hkcm", "p2":"jokg" } }, { "id":11, "label":"D â Header Button", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"jodr" } }, { "id":12, "label":"M â Header Button", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"jodv" } }, { "id":13, "label":"DM â In Comments", "enabled":false, "params":{ "pp":"g", "ps":"hkcm", "p2":"jogy" } }, { "id":14, "label":"DM - 1st Teaser In Popular", "enabled":false, "params":{ "pp":"g", "ps":"hkcm", "p2":"jokf" } }, { "id":17, "label":"D - Sidebar", "enabled":true, "blockId":"R-A-19147891-4" }, { "id":20, "label":"DM - Sidebar Teaser", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"jsds" } }, { "id":101, "label":"D - Track Above Header", "enabled":true, "params":{ "pp":"g", "ps":"hkcm", "p2":"jkbm" } }]',this.isResourcesRequested=!1,this._isResourcesReady=void 0}get isResourcesReady(){return this._isResourcesReady}get isConfigured(){return this.resources.length>0&&this.ownerId!==void 0&&this.bannersConfig.length>0}get bannersConfig(){if(this.configJson===void 0)return[];try{return JSON.parse(this.configJson)}catch(t){return console.error("Failed to parse Adfox banners config",t),[]}}async prepare(){if(this.isConfigured){window.yaContextCb=window.yaContextCb??[],this.isResourcesRequested=!0;try{await m0.loadResources(this.resources),this.refresh(),this._isResourcesReady=!0}catch{this._isResourcesReady=!1,Array.isArray(window.yaContextCb)&&(window.yaContextCb.forEach(n=>{n()}),window.yaContextCb=[])}}}refresh(){var t;typeof window<"u"&&((t=window.JVC)==null||t.processAdConfig())}async getBanner(t,n,s,i){if(!this.isConfigured)return await Promise.reject(new Error(`${this.name} is not configured to request banners`));if(this._isResourcesReady===!1)return await Promise.reject(new Error(`Tried to request banner #${t}, but resources are missing`));this.isResourcesRequested||this.prepare();const o=this.getBannerConfig(t);if(o===void 0)return await Promise.reject(new Error(`Could not find config for banner #${t}`));let r=null;return await new Promise((a,l)=>{var h;const c=o.blockId!==void 0,u=()=>{var m,v,g;if(((g=(v=(m=window.Ya)==null?void 0:m.Context)==null?void 0:v.AdvManager)==null?void 0:g.render)===void 0){l(new Error(`Tried to create RSYa banner #${o.id}, but resources are missing`));return}const p=window.Ya.Context.AdvManager.render({puid:o.label,blockId:o.blockId,renderTo:n,darkTheme:s,type:o.type,onRender:b=>{console.log("AdvManager@onRender",b),a({destroy:()=>{var w,k,y;(y=(k=(w=window.Ya)==null?void 0:w.Context)==null?void 0:k.AdvManager)==null||y.destroy({blockId:o.blockId})},reload:()=>{}})},onError:b=>{l(new Error(`Failed to render RSYa banner: ${b.text}`))},onClose:()=>{a(null)}});console.log("AdvManager@render",p)},d=()=>{var p,m;if(((m=(p=window.Ya)==null?void 0:p.adfoxCode)==null?void 0:m.create)===void 0){l(new Error(`Tried to create Adfox banner #${o.id}, but resources are missing`));return}r=window.Ya.adfoxCode.create({ownerId:"228129",containerId:n,params:this.composeParamsWithContext(o.params,i),insertionCodeParams:{darkTheme:s===!0},onLoad:()=>{a(r),r=null},onStub:()=>{a(null),r=null},onError:({type:v,message:g})=>{l(new Error(`Failed to load banner #${o.id}: ${Array.isArray(g)?g[0].status:g}`))}})};(h=window.yaContextCb)==null||h.push(c?u:d)})}getBannerConfig(t){return this.bannersConfig.find(n=>n.id===t)}composeParamsWithContext(t,n){const s={...t};
117return n!==void 0&&(n.topicNickname!==void 0&&(s.puid1=n.topicNickname??""),n.contentSize!==void 0&&(s.puid3=n.contentSize),n.isUserAuthorized!==void 0&&(s.puid4=n.isUserAuthorized.toString()),n.windowWidth!==void 0&&(s.puid5=n.windowWidth)),s}isBannerEnabled(t){var n;return((n=this.getBannerConfig(t))==null?void 0:n.enabled)===!0}static async loadResources(t){if(t.length===0)return await Promise.reject(new Error(`No ${this.name} resources were provided for loading`));await Promise.all(t.map(async n=>await op(n)))}}function jD(){const e=pt();return e.isRegistered("BannersService")||e.register("BannersService",()=>{const t=new m0,n=new Zv,s=new zD(t,n);return new HD(s)}),e.resolve("BannersService")}function GD(){const e=pt();return e.isRegistered("DistributionService")||e.register("DistributionService",()=>{const{transport:t}=e.resolve("ModuleInitOptions"),n=new WD(t);return new VD(n)}),e.resolve("DistributionService")}const Go=zt(()=>{const e=jD(),{isUserDisabledAds:t,isPlusSubscriber:n,isAnon:s}=Ye(),{colorMode:i}=Ps(),o=dn(),r=C(()=>"force-banners"in o.query),a=C(()=>r.value?!1:!e.isConfigured||t.value),l=P(!1);function c(){return{isUserAuthorized:!s.value,windowWidth:kM()}}function u(m){return{...c(),...m}}async function d(m,v){if(!r.value&&(a.value||n.value||!p(m)))return null;const{getContext:g,isLoading:b}=p0();b.value===!0&&await Do(b).toBe(!1);const w=g(),k=u(w??{});return await e.get(m,v,i.value===vr.Dark,k)}function h(m,v){return e.remove(m,v)}function p(m){return r.value?!0:e.isEnabled(m)}return Tr(()=>o.path,()=>{e.refresh()},{debounce:50}),{get:d,remove:h,isBannerEnabled:p,isDisabled:a,isHidden:l,isForced:r}});function v0(){const{isWiderThanContent:e}=an(),{isForced:t}=Go(),n=P(!1),s=C(()=>!t.value),i=C(()=>!(n.value&&e.value&&s.value));return je(()=>{n.value=!0}),{isEnabled:i,isHiddenOnWide:s}}const md=zt(()=>{const e=GD(),{isUserDisabledAds:t}=Ye(),n=C(()=>t.value),s=P(!1);async function i(a){return await e.get(a)}function o(a,l){e.hit(a,l)}function r(a,l){e.trackClick(a,l)}return{get:i,hit:o,trackClick:r,isDisabled:n,isHidden:s}});var Le=(e=>(e[e.AboveHeader=1]="AboveHeader",e[e.Vertical=2]="Vertical",e[e.AboveContentDesktop=3]="AboveContentDesktop",e[e.AboveContentMobile=4]="AboveContentMobile",e[e.BelowContentDesktop=5]="BelowContentDesktop",e[e.BelowContentMobile=6]="BelowContentMobile",e[e.Video=7]="Video",e[e.SecondInPopular=8]="SecondInPopular",e[e.Post=9]="Post",e[e.FeedBetweenPosts=10]="FeedBetweenPosts",e[e.HeaderButtonDesktop=11]="HeaderButtonDesktop",e[e.HeaderButtonMobile=12]="HeaderButtonMobile",e[e.InComments=13]="InComments",e[e.FirstInPopular=14]="FirstInPopular",e[e.VideoPlayerDesktop=15]="VideoPlayerDesktop",e[e.VideoPlayerMobile=16]="VideoPlayerMobile",e[e.Sidebar=17]="Sidebar",e[e.SidebarMediabanner=18]="SidebarMediabanner",e[e.SidebarLenta=19]="SidebarLenta",e[e.SidebarTeaser=20]="SidebarTeaser",e[e.TrackAboveHeader=101]="TrackAboveHeader",e))(Le||{}),mu=(e=>(e.Header="header",e))(mu||{});const qD=Object.freeze(Object.defineProperty({__proto__:null,BannerId:Le,DistributionPlace:mu,useBanners:Go,useBannersContext:p0,useDistribution:md,useTopRotator:v0},Symbol.toStringTag,{value:"Module"})),KD=["src"],jC=J({__name:"Audio",props:{data:{}},setup(e,{expose:t}){const n=e,s=C(()=>B8(n.data.uuid,n.data.filename)),i=P(null);return t({play(){var o;(o=i.value)==null||o.play()},pause(){var o;(o=i.value)==null||o.pause()}}),(o,r)=>(_(),T("audio",{ref_key:"audio",ref:i,class:"andropov-audio",src:s.value,preload:"metadata",controls:""},null,8,KD))}}),GC=Pn(()=>{const e=P(""),t=P("");function n(i,o){e.value=i,t.value=o}function s(){e.value=""}return{playingAudio:e,playingTitle:t,play:n,close:s}}),qC="player",YD={class:"player__header"},XD={class:"player__header-title"},QD={class:"player__header-title-inner"},JD=J({__name:"Player",setup(e){const{close:t,playingAudio:n,playingTitle:s}=GC(),i=P(null),o=P(null),r=C(()=>{if(n.value==="")return null;const d=n.value.split("/"),h=d[d.length-2],p=d[d.length-1];return{uuid:h,filename:p,size:0,audio_info:{bitrate:0,duration:0,channel:"stereo",framesCount:0,format:"mp3",listens_count:0}}});function a(){if(i.value===null||s.value==="")return;const h=s.value.length/5;i.value.style.setProperty("--animation-speed",`${h}s`)}Gl(()=>{r.value===null||o.value===null||(a(),o.value.play())});function l(){o.value!==null&&o.value.pause(),t()}const{isThreeColumns:c}=an(),u=P(c.value);return be(c,()=>{u.value=!c.value}),(d,h)=>(_(),L(id,{to:`#${f(qC)}`,disabled:u.value},[r.value?(_(),T("div",{key:0,ref_key:"player",ref:i,class:Z(["player",{"player--floating":u.value}])},[O("div",YD,[O("div",XD,[O("div",QD,Y(f(s)||"..."),1)]),A(f(ic),{class:"player__header-close",icon:"cross","icon-size":20,onClick:l})]),A(jC,{ref_key:"audio",ref:o,data:r.value},null,8,["data"])],2)):D("",!0)],8,["to","disabled"]))}}),ZD=ot(JD,[["__scopeId","data-v-585e407c"]]),wp=Bo?window:void 0;function gr(e){var t;const n=ce(e);return(t=n==null?void 0:n.$el)!=null?t:n}function Im(...e){const t=[],n=()=>{t.forEach(a=>a()),t.length=0},s=(a,l,c,u)=>(a.addEventListener(l,c,u),()=>a.removeEventListener(l,c,u)),i=C(()=>{const a=wi(ce(e[0])).filter(l=>l!=null);return a.every(l=>typeof l!="string")?a:void 0}),o=ab(()=>{var a,l;return[(l=(a=i.value)==null?void 0:a.map(c=>gr(c)))!=null?l:[wp].filter(c=>c!=null),wi(ce(i.value?e[1]:e[0])),wi(f(i.value?e[2]:e[1])),ce(i.value?e[3]:e[2])]},([a,l,c,u])=>{if(n(),!(a!=null&&a.length)||!(l!=null&&l.length)||!(c!=null&&c.length))return;const d=Y2(u)?{...u}:u;t.push(...a.flatMap(h=>l.flatMap(p=>c.map(m=>s(h,p,m,d)))))},{flush:"post"}),r=()=>{o(),n()};return gs(n),r}let Kw=!1;function Yw(e,t,n={}
117){const{window:s=wp,ignore:i=[],capture:o=!0,detectIframe:r=!1,controls:a=!1}=n;if(!s)return a?{stop:Xt,cancel:Xt,trigger:Xt}:Xt;if(Pf&&!Kw){Kw=!0;const g={passive:!0};Array.from(s.document.body.children).forEach(b=>b.addEventListener("click",Xt,g)),s.document.documentElement.addEventListener("click",Xt,g)}let l=!0;const c=g=>ce(i).some(b=>{if(typeof b=="string")return Array.from(s.document.querySelectorAll(b)).some(w=>w===g.target||g.composedPath().includes(w));{const w=gr(b);return w&&(g.target===w||g.composedPath().includes(w))}});function u(g){const b=ce(g);return b&&b.$.subTree.shapeFlag===16}function d(g,b){const w=ce(g),k=w.$.subTree&&w.$.subTree.children;return k==null||!Array.isArray(k)?!1:k.some(y=>y.el===b.target||b.composedPath().includes(y.el))}const h=g=>{const b=gr(e);if(g.target!=null&&!(!(b instanceof Element)&&u(e)&&d(e,g))&&!(!b||b===g.target||g.composedPath().includes(b))){if("detail"in g&&g.detail===0&&(l=!c(g)),!l){l=!0;return}t(g)}};let p=!1;const m=[Im(s,"click",g=>{p||(p=!0,setTimeout(()=>{p=!1},0),h(g))},{passive:!0,capture:o}),Im(s,"pointerdown",g=>{const b=gr(e);l=!c(g)&&!!(b&&!g.composedPath().includes(b))},{passive:!0}),r&&Im(s,"blur",g=>{setTimeout(()=>{var b;const w=gr(e);((b=s.document.activeElement)==null?void 0:b.tagName)==="IFRAME"&&!(w!=null&&w.contains(s.document.activeElement))&&t(g)},0)},{passive:!0})].filter(Boolean),v=()=>m.forEach(g=>g());return a?{stop:v,cancel:()=>{l=!1},trigger:g=>{l=!0,h(g),l=!1}}:v}const Mm=new WeakMap,_p={mounted(e,t){const n=!t.modifiers.bubble;let s;if(typeof t.value=="function")s=Yw(e,t.value,{capture:n});else{const[i,o]=t.value;s=Yw(e,i,Object.assign({capture:n},o))}Mm.set(e,s)},unmounted(e){const t=Mm.get(e);t&&typeof t=="function"?t():t==null||t.stop(),Mm.delete(e)}};function eN(){const e=De(!1),t=Mn();return t&&je(()=>{e.value=!0},t),e}function tN(e){const t=eN();return C(()=>(t.value,!!e()))}function eg(e,t,n={}){const{root:s,rootMargin:i="0px",threshold:o=0,window:r=wp,immediate:a=!0}=n,l=tN(()=>r&&"IntersectionObserver"in r),c=C(()=>{const m=ce(e);return wi(m).map(gr).filter(ob)});let u=Xt;const d=De(a),h=l.value?be(()=>[c.value,gr(s),d.value],([m,v])=>{if(u(),!d.value||!m.length)return;const g=new IntersectionObserver(t,{root:gr(v),rootMargin:i,threshold:o});m.forEach(b=>b&&g.observe(b)),u=()=>{g.disconnect(),u=Xt}},{immediate:a,flush:"post"}):Xt,p=()=>{u(),h(),d.value=!1};return gs(p),{isSupported:l,isActive:d,pause(){u(),d.value=!1},resume(){d.value=!0},stop:p}}function Xw(e,t={}){const{window:n=wp,scrollTarget:s,threshold:i=0,rootMargin:o,once:r=!1}=t,a=De(!1),{stop:l}=eg(e,c=>{let u=a.value,d=0;for(const h of c)h.time>=d&&(d=h.time,u=h.isIntersecting);a.value=u,r&&n6(a,()=>{l()})},{root:s,window:n,threshold:i,rootMargin:ce(o)});return a}const KC={mounted(e,t){if(typeof t.value=="function"){const n=t.value,s=Xw(e);be(s,i=>n(i),{immediate:!0})}else{const[n,s]=t.value,i=Xw(e,s);be(i,o=>n(o),{immediate:!0})}}},tg={mounted(e,t){typeof t.value=="function"?eg(e,t.value):eg(e,...t.value)}},nN={class:"content-list-debug-badge"},uo=J({__name:"DebugBadge",props:{index:{},label:{}},setup(e){return(t,n)=>(_(),T("div",nN,Y(e.index)+" · "+Y(e.label),1))}}),sN={class:"skeleton-navbar"},iN=J({__name:"NavbarSkeleton",setup(e){return(t,n)=>
117(_(),T("div",sN,[A(f(Ut),{width:"100px"})]))}}),oN={class:"skeleton-content"},rN={class:"skeleton-content__wrapper"},aN={class:"skeleton-content__header"},lN={class:"skeleton-content__author"},cN={class:"skeleton-content__body"},uN={key:0,class:"skeleton-content__footer"},dN={class:"skeleton-content__footer-left"},kp=J({__name:"ContentSkeleton",props:{isShort:{type:Boolean},withoutFooter:{type:Boolean}},setup(e){const t=e,n=C(()=>t.isShort?s:o),s=[{bars:[{width:"90%"},{width:"77%"}]},{bars:[{width:"56%"},{width:"75%"},{width:"90%"},{width:"70%"},{width:"20%"}]}],i={bars:[{width:"79%"},{width:"91%"},{width:"100%"},{width:"87%"},{width:"51%"}]},o=[{bars:[{width:"88%"},{width:"77%"}]},i,i,i,{bars:[{width:"37%"}]}];return(r,a)=>(_(),T("div",oN,[O("div",rN,[O("div",aN,[A(f(Hi),{size:"40px"}),O("div",lN,[O("div",null,[A(f(Ut),{width:"99px"}),A(f(Ut),{width:"123px"})]),A(f(Ut),{width:"27px"})])]),O("div",cN,[(_(!0),T(ye,null,We(n.value,(l,c)=>(_(),T("div",{key:c,class:"skeleton-content__block"},[(_(!0),T(ye,null,We(l.bars,(u,d)=>(_(),L(f(Ut),{key:`bar:${d}`,width:u.width},null,8,["width"]))),128))]))),128))]),e.withoutFooter!==!0?(_(),T("div",uN,[O("div",dN,[A(f(Hi)),A(f(Hi)),A(f(Hi))]),A(f(Hi))])):D("",!0)])]))}}),fN={ref:"container",class:"skeleton-content-list"},hN=J({__name:"ContentListSkeleton",props:{count:{default:5},hasHeader:{type:Boolean}},setup(e){return(t,n)=>(_(),T(ye,null,[e.hasHeader?(_(),L(iN,{key:0})):D("",!0),O("div",fN,[(_(!0),T(ye,null,We(e.count,s=>(_(),L(kp,{key:s,class:"skeleton-content-list__item","is-short":""}))),128))],512)],64))}});class Sp extends Error{}var YC=(e=>(e.Remove="remove",e.RemoveThread="remove_thread",e.Edit="edit",e.Pin="pin_comment",e.Moderate="moderate",e))(YC||{}),Qs=(e=>(e[e.Spam=1]="Spam",e[e.Abuse=2]="Abuse",e[e.LawViolation=3]="LawViolation",e[e.Porn=4]="Porn",e[e.Violence=5]="Violence",e[e.Copyright=6]="Copyright",e[e.Misleading=7]="Misleading",e[e.Other=8]="Other",e[e.Politics=9]="Politics",e[e.NeuroContent=10]="NeuroContent",e))(Qs||{}),tt=(e=>(e.AfterFirst="after-first",e.AfterSecond="after-second",e.AfterFifth="after-fifth",e.AfterSeventh="after-seventh",e.AfterTenth="after-tenth",e.AfterFifteenth="after-fifteenth",e.AfterEveryRemainingFifth="after-every-remaining-fifth",e.NewsWidget="news-widget",e))(tt||{}),nr=(e=>(e.Edit="editEntry",e.Pin="pinContent",e.Unlink="removeTopic",e.Remove="remove",e.Moderate="moderate",e.HideFromFeed="hideFromFeed",e))(nr||{}),ns=(e=>(e.Hotness="hotness",e.Day="day",e.Week="week",e.Month="month",e.Year="year",e.All="all",e))(ns||{}),Ds=(e=>(e.FromMinus10="from-10",e.From5="from5",e.From10="from10",e.All="all",e))(Ds||{}),rs=(e=>(e.Posts="posts",e.Comments="comments",e))(rs||{}),It=(e=>(e.Hotness="hotness",e.New="new",e.Month="month",e.Year="year",e.All="all",e))(It||{}),Wi=(e=>(e.Ru="ru",e.En="en",e))(Wi||{}),br=(e=>(e[e.Single=0]="Single",e[e.AllFromAuthor=1]="AllFromAuthor",e[e.AllFromSubsite=2]="AllFromSubsite",e))(br||{}),rt=(e=>(e[e.CommentLike=2]="CommentLike",e[e.CommentReply=4]="CommentReply",e[e.UserBanned=8]="UserBanned",e[e.PostUnpublished=16]="PostUnpublished",e[e.NewComment=32]="NewComment",e[e.PlusGift=64]="PlusGift",e[e.CommentMention=1024]="CommentMention",e[e.NewSubscription=4096]="NewSubscription",e[e.PostPublished=8192]="PostPublished",e[e.PostLike=65536]="PostLike",e[e.CommentDonate=16384]="CommentDonate",e[e.UserDonate=131072]="UserDonate",e[e.PostDonate=262144]="PostDonate",e[e.AchievementUnlocked=524288]="AchievementUnlocked",e[e.CommentCreatorDonate=1048576]="CommentCreatorDonate",e[e.PostOpens=2097152]="PostOpens",e[e.GiftReceived=4194304]="GiftReceived",e))(rt||{}),bh=(e=>(e[e.New=0]="New",e[e.Seen=1]="Seen",e[e.Read=2]="Read",e))(bh||{});const vs={mounted:Qw,updated:Qw,beforeUnmount(e){e.removeAttribute("data-scroll-island")}};function Qw(e,t){e.toggleAttribute("data-scroll-island",t.value!==!1)}const pN={class:"content-list"},mN={key:7},xi=J({__name:"ContentList",props:{entries:{},isLoading:{type:Boolean},name:{},title:{},isTitleH1:{type:Boolean},skeletonCount:{},actions:{},sourceContentId:{},repostedFromId:{},scrollPastPostsThreshold:{}},emits:["endReached","scrolledPastThreshold"],setup(e,{emit:t}){const n=e,s=t,i=Yg(),o=Xn("content-list-debug",!1),{t:r}=ft(),a=([{isIntersecting:g}])=>{!g||n.isLoading||s("endReached")},l=P(!1);be(()=>{var g;return(g=n.entries[0])==null?void 0:g.data.id},()=>{l.value=!1});const c=([{isIntersecting:g}])=>{!g||l.value||(l.value=!0,s("scrolledPastThreshold"))};function u(g){return i[g]!==void 0}function d(g){return g>=20&&(g-20)%5===0}const h=[{slot:tt.AfterFirst,test:g=>g===1},{slot:tt.AfterSecond,test:g=>g===2},{slot:tt.NewsWidget,test:g=>g===5},{slot:tt.AfterFifth,test:g=>g===5},{slot:tt.AfterSeventh,test:g=>g===7},{slot:tt.AfterTenth,test:g=>g===10},{slot:tt.AfterFifteenth,test:g=>g===15},{slot:tt.AfterEveryRemainingFifth,test:d}],p=C(()=>{const g=[],b=new Map;let w=0;for(let k=0;k<n.entries.length;k++){for(const{slot:y,test:S}of h)S(k)&&u(y)&&b.set(`${k}-${y}`,w++);g[k]=w++}return{postIndex:g,slotIndex:b}});function m(g){return p.value.postIndex[g]}function v(g,b){return p.value.slotIndex.get(`${g}-${b}`)}return(g,b)=>{const w=An("gtm");return _(),T(ye,null,[e.entries.length>0&&e.title?(_(),L(f(Dr),{key:0,title:e.title,"is-title-h1":e.isTitleH1},Is({_:2},[e.repostedFromId?{name:"right",fn:K(()=>[Ie((_(),L(f(zs),{to:{name:"Editor",params:{action:"repost",id:e.repostedFromId}}},{default:K(()=>[xe(Y(f(r)("common.write")),1)]),_:1},8,["to"])),[[w,"Reposts â Write â Click"]])]),key:"0"}:void 0]),1032,["title","is-title-h1"])):D("",!0),O("div",pN,[(_(!0),T(ye,null,We(e.entries,(k,y)=>(_(),T(ye,{key:"post-"+k.data.id},[y===1&&u(f(tt).AfterFirst)?(_(),T(ye,{key:0},[f(o)?(_(),L(uo,{key:0,index:v(y,f(tt).AfterFirst),label:f(tt).AfterFirst},null,8,["index","label"])):D("",!0),Ve(g.$slots,"after-first",{index:v(y,f(tt).AfterFirst),meta:k.meta,feed:e.name,sourceContentId:e.sourceContentId})],64)):D("",!0),y===2&&u(f(tt).AfterSecond)?(_(),T(ye,{key:1},[f(o)?(_(),L(uo,{key:0,index:v(y,f(tt).AfterSecond),label:f(tt).AfterSecond},null,8,["index","label"])):D("",!0),Ve(g.$slots,"after-second",{index:v(y,f(tt).AfterSecond),meta:k.meta,feed:e.name,sourceContentId:e.sourceContentId})],64)):D("",!0),y===5?(_(),T(ye,{key:2},[u(f(tt).NewsWidget)?(_(),T(ye,{key:0},[f(o)?(_(),L(uo,{key:0,index:v(y,f(tt).NewsWidget),label:f(tt).NewsWidget},null,8,["index","label"])):D("",!0),Ve(g.$slots,"news-widget",{index:v(y,f(tt).NewsWidget),meta:k.meta,feed:e.name,sourceContentId:e.sourceContentId})],64)):D("",!0),u(f(tt).AfterFifth)?(_(),T(ye,{key:1},[f(o)?(_(),L(uo,{key:0,index:v(y,f(tt).AfterFifth),label:f(tt).AfterFifth},null,8,["index","label"])):D("",!0),Ve(g.$slots,"after-fifth",{index:v(y,f(tt).AfterFifth),meta:k.meta,feed:e.name,sourceContentId:e.sourceContentId})],64)):D("",!0)],64)):D("",!0),y===7&&u(f(tt).AfterSeventh)?(_(),T(ye,{key:3},[f(o)?(_(),L(uo,{key:0,index:v(y,f(tt).AfterSeventh),label:f(tt).AfterSeventh},null,8,["index","label"])):D("",!0),Ve(g.$slots,"after-seventh",{index:v(y,f(tt).AfterSeventh),meta:k.meta,feed:e.name,sourceContentId:e.sourceContentId})],64)):D("",!0),y===10&&u(f(tt).AfterTenth)?(_(),T(ye,{key:4},[f(o)?(_(),L(uo,{key:0,index:v(y,f(tt).AfterTenth),label:f(tt).AfterTenth},null,8,["index","label"])):D("",!0),Ve(g.$slots,"after-tenth",{index:v(y,f(tt).AfterTenth),meta:k.meta,feed:e.name,sourceContentId:e.sourceContentId})],64)):D("",!0),y===15&&u(f(tt).AfterFifteenth)?(_(),T(ye,{key:5},[f(o)?(_(),L(uo,{key:0,index:v(y,f(tt).AfterFifteenth),label:f(tt).AfterFifteenth},null,8,["index","label"])):D("",!0),Ve(g.$slots,"after-fifteenth",{index:v(y,f(tt).AfterFifteenth),meta:k.meta,feed:e.name,sourceContentId:e.sourceContentId})],64)):D("",!0),d(y)&&u(f(tt).AfterEveryRemainingFifth)?(_(),T(ye,{key:6}
117,[f(o)?(_(),L(uo,{key:0,index:v(y,f(tt).AfterEveryRemainingFifth),label:f(tt).AfterEveryRemainingFifth},null,8,["index","label"])):D("",!0),Ve(g.$slots,"after-every-remaining-fifth",{index:v(y,f(tt).AfterEveryRemainingFifth),meta:k.meta,feed:e.name,sourceContentId:e.sourceContentId})],64)):D("",!0),f(q)(e.scrollPastPostsThreshold)&&y===e.scrollPastPostsThreshold?Ie((_(),T("div",mN,null,512)),[[f(tg),[c,{threshold:0}]]]):D("",!0),f(o)?(_(),L(uo,{key:8,index:m(y),label:`post #${y}`},null,8,["index","label"])):D("",!0),Ie(A(f(N0),{data:k.data,meta:k.meta,actions:e.actions,"list-name":e.name,"source-content-id":e.sourceContentId,index:m(y),location:e.name},null,8,["data","meta","actions","list-name","source-content-id","index","location"]),[[f(vs)]])],64))),128)),Ie((_(),T("div",null,[e.entries.length===0?(_(),L(hN,{key:0,count:e.skeletonCount,"has-header":f(q)(e.title)},null,8,["count","has-header"])):D("",!0),Ie(A(f(Yn),{class:"content-list__loader"},null,512),[[As,e.isLoading]])])),[[f(tg),[a,{rootMargin:"200% 0px"}]]])])],64)}}});function fi(e,t=null){return e}function vN(){return{isAdblockEnabled:P(!1),registerElement:()=>{}}}const gN=vN;var Oe=(e=>(e.Shared="shared",e.Core="core",e.Auth="auth",e.Feed="feed",e.Entry="entry",e.Comments="comments",e.Quiz="quiz",e.Advert="advert",e.Subsite="subsite",e.Editor="editor",e.Notifications="notifications",e.Discovery="discovery",e.Messenger="messenger",e.Finance="finance",e.Steampay="steampay",e.Stories="stories",e))(Oe||{});function bN(e){if(e===0)return 0;const t=e%10,n=e%100;return t===1&&n!==11?1:t>=2&&t<=4&&![12,13,14].includes(n)?2:3}const yN={settings:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки"}},save:{t:0,b:{t:2,i:[{t:3}],s:"СоÑ
ÑаниÑÑ"}},subscribeButton:{subscribe:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑаÑÑÑÑ"}},unsubscribe:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ"}}},andropov:{embed:{replyToPost:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ²ÐµÑ Ð½Ð° пÑбликаÑиÑ"}},unavailable:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ¾Ñ Ð¿Ð¾ÑÑ Ð½ÐµÐ´Ð¾ÑÑÑпен"}},previous:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑедÑдÑÑий поÑÑ"}}},universalbox:{yamusic:{t:0,b:{t:2,i:[{t:3}],s:"СлÑÑаÑÑ Ð² ЯндекÑ.ÐÑзÑке"}},spotify:{t:0,b:{t:2,i:[{t:3}],s:"СлÑÑаÑÑ Ð² Spotify"}}}},content:{notSupportedBlock:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ¾Ñ Ð±Ð»Ð¾Ðº вÑеменно не поддеÑживаеÑÑÑ"}},draft:{t:0,b:{t:2,i:[{t:3}],s:"ЧеÑновик"}},boostDisclaimer:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ°Ñ Ð¿Ð¾ÑÑ Ð¼Ð¾Ð¶ÐµÑ ÑобÑаÑÑ Ð±Ð¾Ð»ÑÑе оÑ
ваÑов"}},noIndexDisclaimer:{t:0,b:{t:2,i:[{t:3,v:"ÐоммеÑÑеÑкие аккаÑнÑÑ Ð±ÐµÐ· подпиÑки Pro не индекÑиÑÑÑÑÑÑ Ð¿Ð¾Ð¸Ñковиками и ÑкÑÑваÑÑÑÑ Ð¸Ð· диÑÑÑибÑÑии внÑÑÑи "},{t:4,k:"appName"},{t:3,v:". ÐÑоÑмиÑе подпиÑкÑ, ÑÑÐ¾Ð±Ñ ÑнÑÑÑ Ð²Ñе огÑаниÑениÑ, или кÑпиÑе Ð¿Ð¾ÐºÐ°Ð·Ñ Ð´Ð»Ñ Ð¿ÑÐ¾Ð´Ð²Ð¸Ð¶ÐµÐ½Ð¸Ñ Ð¿Ð¾ÑÑа в ленÑаÑ
."}]}},buyViews:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑÑ Ð¿Ð¾ÐºÐ°Ð·Ñ"}},fromEditors:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ ÑедакÑии"}},published:{t:0,b:{t:2,i:[{t:3}],s:"ÐпÑбликован"}},modified:{t:0,b:{t:2,i:[{t:3}],s:"ÐбновлÑн"}}},complaint:{chooseReason:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑбеÑиÑе пÑиÑинÑ"}},reasons:{spam:{t:0,b:{t:2,i:[{t:3}],s:"Спам"}},abuse:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑкоÑбление"}},lawViolation:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑение закона"}},porn:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑногÑаÑиÑеÑкий конÑенÑ"}},violence:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑилие"}},copyright:{t:0,b:{t:2,i:[{t:3}],s:"ÐвÑоÑÑкие пÑава"}},misleading:{t:0,b:{t:2,i:[{t:3}],s:"Ðведение в заблÑждение"}},politics:{t:0,b:{t:2,i:[{t:3}],s:"ÐолиÑика"}},neuroContent:{t:0,b:{t:2,i:[{t:3}],s:"ÐейÑоконÑенÑ"}},other:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑгое"}}},successMessage:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑа жалоба оÑпÑавлена модеÑаÑоÑÑ"}}},etc:{unpublish:{t:0,b:{t:2,i:[{t:3}],s:"УбÑаÑÑ ÑемÑ"}},edit:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑиÑоваÑÑ"}},editShort:{t:0,b:{t:2,i:[{t:3}],s:"Ред."}},complain:{t:0,b:{t:2,i:[{t:3}],s:"ÐожаловаÑÑÑÑ"}},hide:{t:0,b:{t:2,i:[{t:3}],s:"СкÑÑÑÑ"}},unhide:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑкÑÑваÑÑ"}},pin:{t:0,b:{t:2,i:[{t:3}],s:"ÐакÑепиÑÑ"}},unpin:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑкÑепиÑÑ"}},copyLink:{t:0,b:{t:2,i:[{t:3}],s:"ÐопиÑоваÑÑ ÑÑÑлкÑ"}},remove:{t:0,b:{t:2,i:[{t:3}],s:"УдалиÑÑ"}},hideFromFeeds:{t:0,b:{t:2,i:[{t:3}],s:"СкÑÑÑÑ Ð¸Ð· ленÑ"}},moderatePost:{t:0,b:{t:2,i:[{t:3}],s:"ÐодеÑиÑоваÑÑ Ð¿Ð¾ÑÑ"}},moderateUser:{t:0,b:{t:2,i:[{t:3}],s:"Ðод. полÑзоваÑелÑ"}},moderateTopic:{t:0,b:{t:2,i:[{t:3}],s:"Ðод. ÑемÑ"}},moderateComment:{t:0,b:{t:2,i:[{t:3}],s:"Ðод. комменÑаÑий"}},block:{t:0,b:{t:2,i:[{t:3}],s:"ÐаблокиÑоваÑÑ"}},unblock:{t:0,b:{t:2,i:[{t:3}],s:"РазблокиÑоваÑÑ"}},boost:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑодвинÑÑÑ"}},gift:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавиÑÑ Ð¿Ð¾Ð´Ð°Ñок"}},shareInTelegram:{t:0,b:{t:2,i:[{t:3}],s:"ÐоделиÑÑÑÑ Ð² Telegram"}}},userBlocked:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑÐµÐ»Ñ Ð·Ð°Ð±Ð»Ð¾ÐºÐ¸Ñован"}},userUnblocked:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑÐµÐ»Ñ ÑазблокиÑован"}},topicBlocked:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑ Ð¸Ð· ÑÐµÐ¼Ñ ÑкÑÑÑÑ Ð¸Ð· ленÑ"}},topicUnblocked:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑ Ð¸Ð· ÑÐµÐ¼Ñ Ð²ÐµÑнÑÑÑÑ Ð² ленÑÑ"}},linkCopied:{t:0,b:{t:2,i:[{t:3}],s:"СÑÑлка ÑкопиÑована"}},specifyReason:{t:0,b:{t:2,i:[{t:3}],s:"УкажиÑе пÑиÑинÑ"}},post:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ"}}
117,comment:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑий"}},comments:{counter:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"комменÑаÑиев"},{t:2,i:[{t:3}],s:"комменÑаÑий"},{t:2,i:[{t:3}],s:"комменÑаÑиÑ"},{t:2,i:[{t:3}],s:"комменÑаÑиев"}]}},repliesCounter:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÐÑвеÑÑ"},{t:2,i:[{t:3}],s:"оÑвеÑ"},{t:2,i:[{t:3}],s:"оÑвеÑа"},{t:2,i:[{t:3}],s:"оÑвеÑов"}]}},reply:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑвеÑиÑÑ"}},hidden:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°Ð±Ð»Ð¾ÐºÐ¸Ñовали полÑзоваÑелÑ"}},etc:{addToBookmarks:{t:0,b:{t:2,i:[{t:3}],s:"ÐобавиÑÑ Ð² закладки"}},removeFromBookmarks:{t:0,b:{t:2,i:[{t:3}],s:"УбÑаÑÑ Ð¸Ð· закладок"}}},alerts:{addedToBookmarks:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑий добавлен в закладки"}},removedFromBookmarks:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑий Ñдален из закладок"}}}},done:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑово"}},cancel:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑмениÑÑ"}},caption:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑÑ"}},purchase:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑÑ"}},change:{t:0,b:{t:2,i:[{t:3}],s:"ÐзмениÑÑ"}},confirmationText:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ ÑвеÑенÑ?"}},errorText:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоизоÑла оÑибка, попÑобÑйÑе позднее"}},connectionLost:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐµÑ Ð¸Ð½ÑеÑнеÑа"}},confirm:{t:0,b:{t:2,i:[{t:3}],s:"ÐодÑвеÑдиÑÑ"}},subscription:{purchase:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоÑмиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑкÑ"}}},plus:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка Plus"}}},pro:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка Pro"}}},dataLoadingError:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑибка пÑи загÑÑзке даннÑÑ
. ÐопÑобÑйÑе повÑоÑиÑÑ Ð¿Ð¾Ð·Ð¶Ðµ."}},listen:{t:0,b:{t:2,i:[{t:3}],s:"СлÑÑаÑÑ"}},recommendations:{t:0,b:{t:2,i:[{t:3}],s:"РекомендаÑии"}},notifications:{title:{t:0,b:{t:2,i:[{t:3}],s:"УведомлениÑ"}},empty:{title:{t:0,b:{t:2,i:[{t:3}],s:"Уведомлений пока неÑ"}},text:{t:0,b:{t:2,i:[{t:3}],s:"ÐиÑиÑе Ñ
оÑоÑие ÑÑаÑÑи, комменÑиÑÑйÑе, и здеÑÑ ÑÑÐ°Ð½ÐµÑ Ð½Ðµ Ñак пÑÑÑо"}}},all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе ÑведомлениÑ"}},settings:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки Ñведомлений"}},unsubscribe:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ Ð¾Ñ Ñведомлений"}},showUpdates:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ Ð½Ð¾Ð²Ñе"}},markAsRead:{t:0,b:{t:2,i:[{t:3}],s:"ÐомеÑиÑÑ Ð²Ñе как пÑоÑиÑаннÑе"}},unsubscribed:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¾ÑпиÑалиÑÑ Ð¾Ñ Ñведомлений"}}},reactions:{title:{t:0,b:{t:2,i:[{t:3}],s:"РеакÑии"}},errors:{KARMA_TOO_LOW:{t:0,b:{t:2,i:[{t:3}],s:"СлиÑком маленÑÐºÐ°Ñ ÐºÐ°Ñма"}},CANNOT_BE_LIKED_YOURSELF:{t:0,b:{t:2,i:[{t:3}],s:"ÐелÑÐ·Ñ Ð»Ð°Ð¹ÐºÐ°ÑÑ Ñамого ÑебÑ"}},SELF_VOTE_PROHIBITED:{t:0,b:{t:2,i:[{t:3}],s:"ÐелÑÐ·Ñ Ð»Ð°Ð¹ÐºÐ°ÑÑ Ñамого ÑебÑ"}},USER_BANNED:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°Ð±Ð°Ð½ÐµÐ½Ñ, данное дейÑÑвие невозможно"}},CANNOT_LIKE:{t:0,b:{t:2,i:[{t:3}],s:"Ðевозможно поÑÑавиÑÑ ÑеакÑиÑ"}},PLUS_SUBSCRIPTION_REQUIRED:{t:0,b:{t:2,i:[{t:3}],s:"ÐеобÑ
одима подпиÑка Plus"}}},restriction:{text:{t:0,b:{t:2,i:[{t:3,v:"СпиÑок пÑоголоÑовавÑиÑ
доÑÑÑпен "},{t:5,i:0}]}},subscribers:{t:0,b:{t:2,i:[{t:3}],s:"подпиÑÑикам Plus"}},buy:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑÑ Plus"}}},noReactionsYet:{t:0,b:{t:2,i:[{t:3}],s:"Ðока Ð½ÐµÑ ÑеакÑий"}},counter:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑеакÑий"},{t:2,i:[{t:3}],s:"ÑеакÑиÑ"},{t:2,i:[{t:3}],s:"ÑеакÑии"},{t:2,i:[{t:3}],s:"ÑеакÑий"}]}}},unknownError:{t:0,b:{t:2,i:[{t:3}],s:"ÐеизвеÑÑÐ½Ð°Ñ Ð¾Ñибка"}},readMore:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ Ð¿Ð¾Ð»Ð½Ð¾ÑÑÑÑ"}},login:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ
од и ÑегиÑÑÑаÑиÑ"}},drafts:{t:0,b:{t:2,i:[{t:3}],s:"ЧеÑновики"}},bookmarks:{t:0,b:{t:2,i:[{t:3}],s:"Ðакладки"}},detailed:{t:0,b:{t:2,i:[{t:3}],s:"ÐодÑобнее"}},more:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑ"}},collapse:{t:0,b:{t:2,i:[{t:3}],s:"СвеÑнÑÑÑ"}},fromTo:{t:0,b:{t:2,i:[{t:3,v:"ÐÑ "},{t:4,k:"from"},{t:3,v:" до "},{t:4,k:"to"}]}},logout:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑйÑи"}},courses:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑÑÑ"}},sendingDonation:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавка донаÑа"}},recipient:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑÑаÑелÑ"}},contact:{t:0,b:{t:2,i:[{t:3}],s:"ÐапиÑаÑÑ"}},inPost:{t:0,b:{t:2,i:[{t:3}],s:"в поÑÑе"}},top:{t:0,b:{t:2,i:[{t:3}],s:"Топ"}},telegramBot:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ Ð¸Ð· Telegram"}},text:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ°Ñ Ð±Ð¾Ñ Ð°Ð²ÑомаÑиÑеÑки импоÑÑиÑовал ÑÑоÑ поÑÑ из Telegram-канала авÑоÑа. ÐÑ можеÑе подклÑÑиÑÑ Ð±Ð¾Ñа и длÑ Ñвоего канала."}},label:{t:0,b:{t:2,i:[{t:3,v:"Ðанал "},{t:4,k:"id"}]}},about:{t:0,b:{t:2,i:[{t:3}],s:"ÐодклÑÑиÑÑ ÐºÐ°Ð½Ð°Ð»"}}},widgets:{topBlogs:{t:0,b:{t:2,i:[{t:3}],s:"Топ блогов"}},topCompanies:{t:0,b:{t:2,i:[{t:3}],s:"Топ компаний"}},topBanks:{t:0,b:{t:2,i:[{t:3}],s:"Топ банков"}},popularComments:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑнÑе комменÑаÑии"}},interestingBlogs:{t:0,b:{t:2,i:[{t:3}],s:"ÐнÑеÑеÑнÑе блоги"}},more:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑмоÑÑеÑÑ Ð²ÐµÑÑ Ñоп"}}},unblock:{t:0,b:{t:2,i:[{t:3}],s:"РазблокиÑоваÑÑ"}},gifs:{attach:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑикÑепиÑÑ GIF"}},search:{t:0,b:{t:2,i:[{t:3}],s:"ÐоиÑк GIF"}},stored:{t:0,b:{t:2,i:[{t:3,v:"Ð¥Ñаним до "},{t:4,k:"n"},{t:3,v:" ваÑиÑ
GIF."}]}},popular:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑнÑе GIF"}},notFound:{t:0,b:{t:2,i:[{t:3}],s:"ÐиÑего не наÑлоÑÑ"}}},share:{t:0,b:{t:2,i:[{t:3}],s:"ÐоделиÑÑÑÑ"}},steamPay:{t:0,b:{t:2,i:[{t:3}],s:"ÐополниÑÑ Steam"}},great:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑлиÑно"}},online:{t:0,b:{t:2,i:[{t:3}],s:"онлайн"}},all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе"}},summary:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑаÑко"}},generatedWithAi:{t:0,b:{t:2,i:[{t:3}],s:"СгенеÑиÑовано AI"}},disable:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑклÑÑиÑÑ"}},advert:{copy:{t:0,b:{t:2,i:[{t:3}],s:"СкопиÑоваÑÑ Ñокен"}},copied:{t:0,b:{t:2,i:[{t:3}],s:"ID ÑкопиÑован"}},about:{t:0,b:{t:2,i:[{t:3}],s:"Ð ÑекламодаÑеле"}}},default:{t:0,b:{t:2,i:[{t:3}],s:"Ðо ÑмолÑаниÑ"}},stats:{views:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"показов в ленÑаÑ
"},{t:2,i:[{t:3}],s:"показ в ленÑаÑ
"},{t:2,i:[{t:3}],s:"показа в ленÑаÑ
"},{t:2,i:[{t:3}],s:"показов в ленÑаÑ
"}]}},hits:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"оÑкÑÑÑий поÑÑов"},{t:2,i:[{t:3}],s:"оÑкÑÑÑие поÑÑов"},{t:2,i:[{t:3}],s:"оÑкÑÑÑÐ¸Ñ Ð¿Ð¾ÑÑов"},{t:2,i:[{t:3}],s:"оÑкÑÑÑий поÑÑов"}]}},link_clicks:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"кликов по ÑÑÑлкам"},{t:2,i:[{t:3}],s:"клик по ÑÑÑлке"},{t:2,i:[{t:3}],s:"клика по ÑÑÑлкам"},{t:2,i:[{t:3}],s:"кликов по ÑÑÑлкам"}]}},subs_post_island:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"подпиÑок на блог"},{t:2,i:[{t:3}],s:"подпиÑка на блог"},{t:2,i:[{t:3}],s:"подпиÑки на блог"},{t:2,i:[{t:3}],s:"подпиÑок на блог"}]}},reactions:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑеакÑий к поÑÑам"},{t:2,i:[{t:3}],s:"ÑеакÑÐ¸Ñ Ðº поÑÑам"},{t:2,i:[{t:3}],s:"ÑеакÑии к поÑÑам"},{t:2,i:[{t:3}],s:"ÑеакÑий к поÑÑам"}]}},readings:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"доÑиÑÑваний"},{t:2,i:[{t:3}],s:"доÑиÑÑвание"},{t:2,i:[{t:3}],s:"доÑиÑÑваниÑ"},{t:2,i:[{t:3}],s:"доÑиÑÑваний"}]}},comments:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"комменÑаÑиев"},{t:2,i:[{t:3}],s:"комменÑаÑий"},{t:2,i:[{t:3}],s:"комменÑаÑиÑ"},{t:2,i:[{t:3}],s:"комменÑаÑиев"}]}},bookmarks:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"закладок"},{t:2,i:[{t:3}],s:"закладка"},{t:2,i:[{t:3}],s:"закладки"},{t:2,i:[{t:3}],s:"закладок"}]}},reposts:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"поÑÑ-оÑвеÑов"},{t:2,i:[{t:3}],s:"поÑÑ-оÑвеÑ"},{t:2,i:[{t:3}],s:"поÑÑ-оÑвеÑа"},{t:2,i:[{t:3}],s:"поÑÑ-оÑвеÑов"}]}},actions:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"взаимодейÑÑвий"},{t:2,i:[{t:3}],s:"взаимодейÑÑвие"},{t:2,i:[{t:3}],s:"взаимодейÑÑвиÑ"},{t:2,i:[{t:3}],s:"взаимодейÑÑвий"}]}},shares:{t:0,b:{t:2,i:[{t:3}],s:"поделилиÑÑ"}},timespent:{t:0,b:{t:2,i:[{t:3}],s:"вÑÐµÐ¼Ñ Ð² поÑÑе"}},graphs:{hits:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑкÑÑÑÐ¸Ñ Ð¿Ð¾ÑÑа"}},views:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¾ÐºÐ°Ð·Ñ Ð² ленÑаÑ
"}},link_clicks:{t:0,b:{t:2,i:[{t:3}],s:"Ðлики по ÑÑÑлкам"}}},post:{hits:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"оÑкÑÑÑий поÑÑа"},{t:2,i:[{t:3}],s:"оÑкÑÑÑие поÑÑа"},{t:2,i:[{t:3}],s:"оÑкÑÑÑÐ¸Ñ Ð¿Ð¾ÑÑа"},{t:2,i:[{t:3}],s:"оÑкÑÑÑий поÑÑа"}]}},reactions:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑеакÑий к поÑÑÑ"},{t:2,i:[{t:3}],s:"ÑеакÑÐ¸Ñ Ðº поÑÑÑ"},{t:2,i:[{t:3}],s:"ÑеакÑии к поÑÑÑ"},{t:2,i:[{t:3}],s:"ÑеакÑий к поÑÑÑ"}]}}}},errors:{USER_BANNED:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°Ð±Ð°Ð½ÐµÐ½Ñ, данное дейÑÑвие невозможно"}}}},wN={account:{loginAndRegistration:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ
од и ÑегиÑÑÑаÑиÑ"}},myProfile:{t:0,b:{t:2,i:[{t:3}],s:"Ðой пÑоÑилÑ"}},logout:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑйÑи"}}},sections:{popular:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑное"}},new:{t:0,b:{t:2,i:[{t:3}],s:"Свежее"}},my:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¾Ñ Ð»ÐµÐ½Ñа"}},courses:{t:0,b:{t:2,i:[{t:3}],s:"ÐбÑÑение"}},aiCourse:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑÑ ÐÐ"}},messenger:{t:0,b:{t:2,i:[{t:3}],s:"СообÑениÑ"}},terminal:{t:0,b:{t:2,i:[{t:3}],s:"ÐейÑо"}},terminalSubtitle:{t:0,b:{t:2,i:[{t:3}],s:"ChatGPT и Claude"}}},header:{login:{t:0,b:{t:2,i:[{t:3}],s:"ÐойÑи"}}},meta:{on:{t:0,b:{t:2,i:[{t:3}],s:"на"}}},search:{goTo:{t:0,b:{t:2,i:[{t:3}
117],s:"ÐеÑейÑи ко вÑем ÑезÑлÑÑаÑам"}},recent:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑледние запÑоÑÑ"}}},pageErrors:{unknown:{t:0,b:{t:2,i:[{t:3}],s:"ÐеизвеÑÑÐ½Ð°Ñ Ð¾Ñибка"}},notFound:{t:0,b:{t:2,i:[{t:3}],s:"СÑÑаниÑа не найдена"}},accessDenied:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑп закÑÑÑ"}},contentBlocked:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑеÑиал ÑкÑÑÑ Ð¿Ð¾ ÑÑÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ñ Ð²Ð»Ð°ÑÑей РФ"}}},apps:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ¾Ñ QR-код Ð¿Ð¾Ð¼Ð¾Ð¶ÐµÑ ÑкаÑаÑÑ наÑе пÑиложение"}}},adblock:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¸ÑполÑзÑеÑе блокиÑовÑик ÑекламÑ"}},description:{t:0,b:{t:2,i:[{t:3,v:"Реклама Ð¿Ð¾Ð¼Ð¾Ð³Ð°ÐµÑ Ð½Ð°ÑÐµÐ¼Ñ Ð¿ÑоекÑÑ ÑазвиваÑÑÑÑ. ÐÑклÑÑиÑе блокиÑÐ¾Ð²ÐºÑ Ð¸Ð»Ð¸ оÑоÑмиÑе подпиÑÐºÑ Plus, ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð»ÑзоваÑÑÑÑ "},{t:4,k:"appName"},{t:3,v:" без баннеÑной ÑекламÑ."}]}},buttonDisableAdblock:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑклÑÑиÑÑ Ð±Ð»Ð¾ÐºÐ¸ÑовÑик"}},buttonSubscribePlus:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоÑмиÑÑ Plus"}}},sidebar:{services:{t:0,b:{t:2,i:[{t:3}],s:"СеÑвиÑÑ"}},appsPromo:{t:0,b:{t:2,i:[{t:3}],s:"QR-код Ð´Ð»Ñ ÑÑÑановки наÑиÑ
пÑиложений."}},recommendationsNotice:{t:0,b:{t:2,i:[{t:3,v:'ÐÑ Ð¸ÑполÑзÑем<br><a href="'},{t:4,k:"recommendationsUrl"},{t:3,v:'" target="_blank" rel="noopener">ÑекомендаÑии.</a>'}]}}}},_N={feed:{sorting:{popular:{day:{t:0,b:{t:2,i:[{t:3}],s:"24 ÑаÑа"}},week:{t:0,b:{t:2,i:[{t:3}],s:"ÐеделÑ"}}
117,month:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑÑÑ"}},year:{t:0,b:{t:2,i:[{t:3}],s:"Ðод"}},all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе вÑемÑ"}}},new:{"from -10":{t:0,b:{t:2,i:[{t:3}],s:"Ðовое"}},"from +5":{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ +5"}},"from +10":{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ +10"}},all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе"}}},my:{"by hotness":{t:0,b:{t:2,i:[{t:3}],s:"Ðо попÑлÑÑноÑÑи"}},"by date":{t:0,b:{t:2,i:[{t:3}],s:"Ðо даÑе"}},seen:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоÑмоÑÑеннÑе"}}}},empty:{my:{t:0,b:{t:2,i:[{t:3}],s:`ÐенÑа Ð´Ð»Ñ Ð¿Ð¾ÑÑов из блогов и ÑообÑеÑÑв, 118на коÑоÑÑе Ð²Ñ Ð¿Ð¾Ð´Ð¿Ð¸ÑеÑеÑÑ`}},seen:{t:0,b:{t:2,i:[{t:3}],s:"ÐенÑа Ð´Ð»Ñ Ð¿Ð¾ÑÑов, коÑоÑÑе Ð²Ñ Ñже поÑмоÑÑели"}}},mySubscriptions:{t:0,b:{t:2,i:[{t:3}],s:"Ðои подпиÑки"}},showNewPosts:{t:0,b:{t:2,i:[{t:3}],s:"ÐовÑе поÑÑÑ"}},seenPosts:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"пÑоÑмоÑÑеннÑÑ Ð¿Ð¾ÑÑов"},{t:2,i:[{t:3}],s:"пÑоÑмоÑÑеннÑй поÑÑ"},{t:2,i:[{t:3}],s:"пÑоÑмоÑÑеннÑÑ Ð¿Ð¾ÑÑа"},{t:2,i:[{t:3}],s:"пÑоÑмоÑÑеннÑÑ Ð¿Ð¾ÑÑов"}]}},hidden:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"СкÑÑÑо"},{t:2,i:[{t:3}],s:"СкÑÑÑ"},{t:2,i:[{t:3}],s:"СкÑÑÑо"},{t:2,i:[{t:3}],s:"СкÑÑÑо"}]}}},entry:{stats:{title:{t:0,b:{t:2,i:[{t:3}],s:"СÑаÑиÑÑика"}}},repostsCounter:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"оÑвеÑов на поÑÑ"},{t:2,i:[{t:3}],s:"оÑÐ²ÐµÑ Ð½Ð° поÑÑ"},{t:2,i:[{t:3}],s:"оÑвеÑа на поÑÑ"},{t:2,i:[{t:3}],s:"оÑвеÑов на поÑÑ"}]}},reposts:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑепоÑÑов"},{t:2,i:[{t:3}],s:"ÑепоÑÑ"},{t:2,i:[{t:3}],s:"ÑепоÑÑа"},{t:2,i:[{t:3}],s:"ÑепоÑÑов"}]}},repostLabel:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ²ÐµÑ Ð½Ð° поÑÑ"}},repostLabelUnavailable:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ²ÐµÑ Ð½Ð° ÑдаленнÑй поÑÑ"}},postInCommunity:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ Ð² ÑообÑеÑÑве"}},postInBlog:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ Ð² блоге"}},editorial:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑеÑиал ÑедакÑии"}},nswf:{message:{t:0,b:{t:2,i:[{t:3}],s:"ÐонÑÐµÐ½Ñ Ð´Ð»Ñ Ð²Ð·ÑоÑлÑÑ "}},show:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ"}},showAlways:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказÑваÑÑ Ð²Ñегда"}}},morePosts:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑÑе ÑÑаÑей"}},repost:{t:0,b:{t:2,i:[{t:3}],s:"ÐапиÑаÑÑ Ð¿Ð¾ÑÑ-оÑвеÑ"}},mute:{single:{description:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ Ð¸Ð· вÑÐµÑ Ð»ÐµÐ½Ñ"}},success:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ ÑкÑÑÑ Ð¸Ð· вÑÐµÑ Ð»ÐµÐ½Ñ"}}},allFromAuthor:{description:{t:0,b:{t:2,i:[{t:3}],s:"ÐаблокиÑоваÑÑ Ð°Ð²ÑоÑа"}}},allFromSubsite:{description:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе поÑÑÑ Ð¸Ð· ÑÑой ÑемÑ"}}}},remove:{specifyReason:{t:0,b:{t:2,i:[{t:3}],s:"УкажиÑе пÑиÑинÑ"}},submit:{t:0,b:{t:2,i:[{t:3}],s:"УбÑаÑÑ"}},success:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ ÑбÑан из подÑайÑа"}}},codeCopied:{t:0,b:{t:2,i:[{t:3}],s:"Ðод ÑкопиÑован"}},seoTitleFromPostTitle:{t:0,b:{t:2,i:[{t:4,k:"title"},{t:3,v:" â "},{t:4,k:"name"},{t:3,v:" на "},{t:4,k:"appName"}]}},seoTitleFromPostId:{community:{t:0,b:{t:2,i:[{t:3,v:"ÐоÑÑ "},{t:4,k:"id"},{t:3,v:" в ÑообÑеÑÑве "},{t:4,k:"name"},{t:3,v:" на "},{t:4,k:"appName"}]}},blog:{t:0,b:{t:2,i:[{t:3,v:"ÐоÑÑ "},{t:4,k:"id"},{t:3,v:" в блоге "},{t:4,k:"name"},{t:3,v:" на "},{t:4,k:"appName"}]}}}},comments:{counter:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"комменÑаÑиев"},{t:2,i:[{t:3}],s:"комменÑаÑий"},{t:2,i:[{t:3}],s:"комменÑаÑиÑ"},{t:2,i:[{t:3}],s:"комменÑаÑиев"}]}},repliesCounter:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÐÑвеÑÑ"},{t:2,i:[{t:3}],s:"оÑвеÑ"},{t:2,i:[{t:3}],s:"оÑвеÑа"},{t:2,i:[{t:3}],s:"оÑвеÑов"}]}},newUnread:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"новÑÑ "},{t:2,i:[{t:3}],s:"новÑй"},{t:2,i:[{t:3}],s:"новÑÑ "},{t:2,i:[{t:3}],s:"новÑÑ "}]}},reply:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑвеÑиÑÑ"}},author:{t:0,b:{t:2,i:[{t:3}],s:"ÐвÑоÑ"}},comment:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑиÑоваÑÑ"}},form:{placeholder:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑийâ¦"}},submit:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавиÑÑ"}},cancel:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑмена"}},plus:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоÑмиÑÑ Plus"}}},etc:{copyLink:{t:0,b:{t:2,i:[{t:3}],s:"ÐопиÑоваÑÑ ÑÑÑлкÑ"}},addToBookmarks:{t:0,b:{t:2,i:[{t:3}],s:"ÐобавиÑÑ Ð² закладки"}},removeFromBookmarks:{t:0,b:{t:2,i:[{t:3}],s:"УбÑаÑÑ Ð¸Ð· закладок"}},remove:{t:0,b:{t:2,i:[{t:3}],s:"УдалиÑÑ"}},removeThread:{t:0,b:{t:2,i:[{t:3}],s:"УдалиÑÑ Ð²ÐµÑкÑ"}},pin:{t:0,b:{t:2,i:[{t:3}],s:"ÐакÑепиÑÑ"}},unpin:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑкÑепиÑÑ"}}},alerts:{pinned:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑий закÑеплÑн"}},unpinned:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑий оÑкÑеплÑн"}},copied:{t:0,b:{t:2,i:[{t:3}],s:"СÑÑлка ÑкопиÑована"}}
118,formTextLimitExceeded:{t:0,b:{t:2,i:[{t:3,v:"ÐÑÐµÐ½Ñ Ð´Ð»Ð¸Ð½Ð½Ñй комменÑаÑий. Ðе болÑÑе "},{t:4,k:"limit"},{t:3,v:" Ñимволов, пожалÑйÑÑа"}]}},addedToBookmarks:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑий добавлен в закладки"}},removedFromBookmarks:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑий Ñдален из закладок"}}},expandAlways:{t:0,b:{t:2,i:[{t:3}],s:"РаÑкÑÑваÑÑ Ð²Ñегда"}},showAll:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ Ð²Ñе комменÑаÑии"}},commentInPost:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑий в поÑÑе"}},sorting:{best:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑÑие"}},popular:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑнÑе"}},latest:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑледние"}}},attach:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑикÑепиÑÑ"}},show:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑаÑий"}},onlyDonatorsRestrict:{t:0,b:{t:2,i:[{t:3}],s:"ÐвÑÐ¾Ñ Ð¾Ð³ÑаниÑил напиÑание комменÑаÑиев â можно оÑпÑавиÑÑ ÑолÑко комменÑаÑий Ñ пÑикÑепленнÑм донаÑом Ð´Ð»Ñ Ð°Ð²ÑоÑа."}},errors:{ONLY_AUTHOR_SUBSCRIBERS_CAN_COMMENT:{t:0,b:{t:2,i:[{t:3}],s:"ТолÑко подпиÑÑики авÑоÑа могÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑиÑоваÑÑ Ð¿Ð¾ÑÑÑ"}},ONLY_PLUS_SUBSCRIBERS_CAN_COMMENT:{t:0,b:{t:2,i:[{t:3}],s:"ТолÑко Plus-подпиÑÑики могÑÑ ÐºÐ¾Ð¼Ð¼ÐµÐ½ÑиÑоваÑÑ Ð¿Ð¾ÑÑÑ"}},ONLY_DONATORS_CAN_COMMENT:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑий должен бÑÑÑ Ñ донаÑом"}},AUTHOR_DISALLOWED_COMMENTS:{t:0,b:{t:2,i:[{t:3}],s:"ÐвÑÐ¾Ñ Ð·Ð°Ð¿ÑеÑил комменÑиÑоваÑÑ Ñвои поÑÑÑ"}}}},editor:{preview:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑедпÑоÑмоÑÑ"}},markNSFW:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑмеÑиÑÑ 18+"}},unmarkNSFW:{t:0,b:{t:2,i:[{t:3}],s:"СнÑÑÑ Ð¾ÑмеÑÐºÑ 18+"}},markEditorial:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑиÑ"}},unmarkEditorial:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑедакÑиÑ"}},publish:{t:0,b:{t:2,i:[{t:3}],s:"ÐпÑбликоваÑÑ"}},save:{t:0,b:{t:2,i:[{t:3}],s:"СоÑ
ÑаниÑÑ"}},saving:{t:0,b:{t:2,i:[{t:3}],s:"СоÑ
Ñанение"}},saved:{t:0,b:{t:2,i:[{t:3}],s:"СоÑ
Ñанено"}},saveDraft:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ ÑоÑ
Ñанен в ÑеÑновики"}},savePublication:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ ÑоÑ
Ñанен"}},confirm:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ Ð½Ðµ ÑоÑ
Ñанен. ТоÑно Ñ
оÑиÑе вÑйÑи?"}},confirmPublication:{t:0,b:{t:2,i:[{t:3}],s:"ÐпÑбликоваÑÑ Ð¿Ð¾ÑÑ?"}},withoutTopic:{t:0,b:{t:2,i:[{t:3}],s:"Ðез ÑемÑ"}},newPost:{t:0,b:{t:2,i:[{t:3}],s:"ÐовÑй поÑÑ"}},editing:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑиÑование"}},addTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐобавиÑÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²Ð¾Ðº"}},tools:{text:{title:{t:0,b:{t:2,i:[{t:3}],s:"ТекÑÑ"}},makeHeader:{t:0,b:{t:2,i:[{t:3}],s:"СделаÑÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð¼"}},makeH2:{t:0,b:{t:2,i:[{t:3}],s:"СделаÑÑ H2"}},makeH3:{t:0,b:{t:2,i:[{t:3}],s:"СделаÑÑ H3"}},defaultPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"ÐажмиÑе Tab Ð´Ð»Ñ Ð²ÑбоÑа инÑÑÑÑменÑа"}},placeholders:[{t:0,b:{t:2,i:[{t:3}],s:"ÐÑл Ñ
олоднÑй ÑÑнÑй апÑелÑÑкий..."}},{t:0,b:{t:2,i:[{t:3}],s:"ÐавнÑм-давно в далекой галакÑике..."}},{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ´Ð½Ð°Ð¶Ð´Ñ Ð²ÐµÑной, в ÑÐ°Ñ Ð½ÐµÐ±Ñвалого..."}},{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе ÑÑаÑÑливÑе ÑемÑи поÑ
ожи..."}},{t:0,b:{t:2,i:[{t:3}],s:"Ð Ñездном гоÑоде N бÑло..."}},{t:0,b:{t:2,i:[{t:3}],s:"Ðак вÑем извеÑÑно, ÑÑÑд..."}},{t:0,b:{t:2,i:[{t:3}],s:"Я комендоÑ-ÑеÑÐ¶Ð°Ð½Ñ Ð¥Ð°ÑÑман..."}},{t:0,b:{t:2,i:[{t:3}],s:"ÐдÑавÑÑвÑйÑе. ÐÐµÐ½Ñ Ð·Ð¾Ð²ÑÑ Ð¤Ð¾ÑÑеÑÑ..."}},{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð±Ñли где-Ñо около ÐаÑÑÑоÑ..."}},{t:0,b:{t:2,i:[{t:3}],s:"ÐÑди поÑÑоÑнно ÑпÑаÑиваÑÑ Ð¼ÐµÐ½Ñ..."}},{t:0,b:{t:2,i:[{t:3}],s:"Ð ÑÑом гоÑоде ÑÑÑÑÑи ÑлиÑ..."}},{t:0,b:{t:2,i:[{t:3}],s:"У Ð¼ÐµÐ½Ñ ÐµÑÑÑ Ð¼ÐµÑÑа..."}}]},header:{titlePlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Ðаголовок"}},subtitlePlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Ðодзаголовок"}},h2:{t:0,b:{t:2,i:[{t:3}],s:"Ðодзаголовок H2"}},h3:{t:0,b:{t:2,i:[{t:3}],s:"Ðодзаголовок H3"}},makeText:{t:0,b:{t:2,i:[{t:3}],s:"СделаÑÑ ÑекÑÑом"}}},media:{title:{t:0,b:{t:2,i:[{t:3}],s:"ФоÑо или видео"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐпиÑание"}}},andropov:{title:{t:0,b:{t:2,i:[{t:3}],s:"СÑÑлка"}},insert:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑавÑÑе ÑÑÑлкÑ"}},error:{t:0,b:{t:2,i:[{t:3}],s:"СÑÑлка не обÑабоÑана"}}},quote:{title:{t:0,b:{t:2,i:[{t:3}],s:"ЦиÑаÑа"}},text:{t:0,b:{t:2,i:[{t:3}],s:"ТекÑÑ ÑиÑаÑÑ"}},caption:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑÑ"}}},delimiter:{title:{t:0,b:{t:2,i:[{t:3}],s:"РазделиÑелÑ"}}},list:{title:{t:0,b:{t:2,i:[{t:3}],s:"СпиÑок"}},unordered:{t:0,b:{t:2,i:[{t:3}],s:"ÐбÑÑнÑй"}},ordered:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑмеÑованнÑй"}}},code:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ðод"}}},specialButton:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ðнопка"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"ТекÑÑ ÐºÐ½Ð¾Ð¿ÐºÐ¸"}},urlError:{t:0,b:{t:2,i:[{t:3}],s:"Ðе Ñказан URL"}}},audio:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑдио"}},add:{t:0,b:{t:2,i:[{t:3}],s:"ÐобавиÑÑ Ð°Ñдио"}},replace:{t:0,b:{t:2,i:[{t:3}],s:"ÐамениÑÑ Ñайл"}}},quiz:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐпÑоÑ"}},heading:{t:0,b:{t:2,i:[{t:3}],s:"Ðаголовок опÑоÑа"}},option:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÐ¸Ð°Ð½Ñ Ð¾ÑвеÑа"}},add:{t:0,b:{t:2,i:[{t:3}],s:"ÐобавиÑÑ Ð²Ð°ÑианÑ"}}},person:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑÑона"}},name:{t:0,b:{t:2,i:[{t:3}],s:"ÐмÑ"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐолжноÑÑÑ"}}},game:{placeholder:{t:0,b:{t:2,i:[{t:3}],s:"ÐгÑовой блок"}}}},errors:{CONTENT_IS_INVALID:{t:0,b:{t:2,i:[{t:3}],s:"СлиÑком много ÑекÑÑа в одном блоке"}},POST_CONTENT_IS_EMPTY:{t:0,b:{t:2,i:[{t:3}],s:"СодеÑжимое поÑÑа пÑÑÑо"}},POST_TITLE_TOO_LONG:{t:0,b:{t:2,i:[{t:3}],s:"СлиÑком длиннÑй заголовок поÑÑа"}},PRO_LIMIT_EXCEED:{t:0,b:{t:2,i:[{t:3}],s:"ÐимиÑÑ"}},POST_NOT_FOUND:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ Ð½Ðµ найден"}},USER_BANNED:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°Ð±Ð°Ð½ÐµÐ½Ñ, данное дейÑÑвие невозможно"}}},unknownError:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑибка пÑи ÑоÑ
Ñанении поÑÑа"}},history:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑоÑÐ¸Ñ Ð²ÐµÑÑий"}},empty:{t:0,b:{t:2,i:[{t:3}],s:"СпиÑок веÑÑий пÑÑÑ"}},applied:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑÑÐ¸Ñ Ð¿Ñименена"}}}
118,postBlocksLimitExceeded:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑевÑÑен ÑÐ°Ð·Ð¼ÐµÑ Ð¿Ð¾ÑÑа"}},proLimitExceeded:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¸ÑÑеÑпали лимиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸Ñки Pro. ÐÐ»Ñ ÑнÑÑÐ¸Ñ Ð¾Ð³ÑаниÑений обÑаÑиÑеÑÑ Ð² Telegram-боÑа."}},nonProLimitExceeded:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¸ÑÑеÑпали доÑÑÑпнÑй Ð»Ð¸Ð¼Ð¸Ñ Ð½Ð° пÑбликаÑÐ¸Ñ Ð² ÑÑом меÑÑÑе. ÐÐ»Ñ ÑнÑÑÐ¸Ñ Ð¾Ð³ÑаниÑений необÑ
одимо кÑпиÑÑ Ð¿Ð¾Ð´Ð¿Ð¸ÑÐºÑ Pro."}},remove:{confirm:{t:0,b:{t:2,i:[{t:3}],s:"УдалиÑÑ Ð¿Ð¾ÑÑ?"}},success:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑ ÑдалÑн"}}}},quiz:{anonymous:{t:0,b:{t:2,i:[{t:3}],s:"ÐнонимнÑй"}},vote:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоголоÑоваÑÑ"}},revote:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑеголоÑоваÑÑ"}},votes:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"голоÑов"},{t:2,i:[{t:3}],s:"голоÑ"},{t:2,i:[{t:3}],s:"голоÑа"},{t:2,i:[{t:3}],s:"голоÑов"}]}},noVotes:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐµÑ Ð³Ð¾Ð»Ð¾Ñов"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"ÐагÑÑзка"}}},bookmarks:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ðакладки"}},type:{posts:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑ"}},comments:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑии"}},reactions:{t:0,b:{t:2,i:[{t:3}],s:"РеакÑии"}}},button:{activeTitle:{t:0,b:{t:2,i:[{t:3}],s:"УбÑаÑÑ Ð¸Ð· закладок"}},inactiveTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐобавиÑÑ Ð² закладки"}}},empty:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð½Ð¸Ñего не добавлÑли в закладки"}},emptyReactions:{t:0,b:{t:2,i:[{t:3}],s:"ÐдеÑÑ Ð±ÑдÑÑ Ð¿Ð¾ÑÑÑ, на коÑоÑÑе Ð²Ñ Ð¾ÑÑеагиÑовали"}}},advert:{place:{t:0,b:{t:2,i:[{t:3}],s:"ÑазмеÑÑиÑÑ"}},button:{discover:{t:0,b:{t:2,i:[{t:3}],s:"УзнаÑÑ"}},read:{t:0,b:{t:2,i:[{t:3}],s:"ЧиÑаÑÑ"}},start:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑаÑÑ"}},order:{t:0,b:{t:2,i:[{t:3}],s:"ÐаказаÑÑ"}},buy:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑÑ"}},get:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑÑиÑÑ"}},download:{t:0,b:{t:2,i:[{t:3}],s:"СкаÑаÑÑ"}},goTo:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑейÑи"}}},advertiser:{t:0,b:{t:2,i:[{t:3}],s:"РекламодаÑелÑ"}},token:{t:0,b:{t:2,i:[{t:3}],s:"Токен"}},promoted:{mark:{t:0,b:{t:2,i:[{t:3}],s:"Ðлоги Pro"}},link:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоÑмиÑÑ"}}},more:{t:0,b:{t:2,i:[{t:3}],s:"ЧиÑаÑÑ Ð´Ð°Ð»ÑÑе"}}},hashtag:{meta:{title:{t:0,b:{t:2,i:[{t:4,k:"tagName"},{t:3,v:": ÑÑаÑÑи и новоÑÑи по Ñеме â "},{t:4,k:"appName"}]}},description:{t:0,b:{t:2,i:[{t:3,v:"ЧиÑайÑе пÑбликаÑии на ÑÐµÐ¼Ñ "},{t:4,k:"tagName"},{t:3,v:". ÐолезнÑе маÑеÑÐ¸Ð°Ð»Ñ Ð¸ ÑеÑÑнÑе Ð¼Ð½ÐµÐ½Ð¸Ñ Ð½Ð° "},{t:4,k:"appName"},{t:3,v:"."}]}}}},reposts:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑвеÑÑ Ð½Ð° поÑÑ"}},seoTitle:{t:0,b:{t:2,i:[{t:3,v:"ÐÑвеÑÑ Ð½Ð° поÑÑ "},{t:4,k:"title"},{t:3,v:" на "},{t:4,k:"appName"}]}},seoDescription:{t:0,b:{t:2,i:[{t:3,v:"РеакÑии, Ð¼Ð½ÐµÐ½Ð¸Ñ Ð¸ оÑвеÑÑ Ð½Ð° поÑÑ "},{t:4,k:"title"}]}}},editorial:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑеÑÐ¸Ð°Ð»Ñ ÑедакÑии"}}}},kN={header:{since:{t:0,b:{t:2,i:[{t:3}],s:"Ñ"}},tabs:{posts:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑ"}},comments:{t:0,b:{t:2,i:[{t:3}],s:"ÐомменÑаÑии"}}}},feed:{sorting:{hotness:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑное"}},new:{t:0,b:{t:2,i:[{t:3}],s:"Свежее"}}
118,month:{t:0,b:{t:2,i:[{t:3}],s:"Топ за меÑÑÑ"}},year:{t:0,b:{t:2,i:[{t:3}],s:"Топ за год"}},all:{t:0,b:{t:2,i:[{t:3}],s:"Топ за вÑÑ Ð²ÑемÑ"}}}},followers:{subscribers:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"подпиÑÑиков"},{t:2,i:[{t:3}],s:"подпиÑÑик"},{t:2,i:[{t:3}],s:"подпиÑÑика"},{t:2,i:[{t:3}],s:"подпиÑÑиков"}]}},subscriptions:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"подпиÑок"},{t:2,i:[{t:3}],s:"подпиÑка"},{t:2,i:[{t:3}],s:"подпиÑки"},{t:2,i:[{t:3}],s:"подпиÑок"}]}}},type:{blog:{t:0,b:{t:2,i:[{t:3}],s:"Ðлог"}},community:{t:0,b:{t:2,i:[{t:3}],s:"СообÑеÑÑво"}}},seo:{blog:{title:{t:0,b:{t:2,i:[{t:4,k:"name"},{t:3,v:" "},{t:9,v:"@"},{t:3,v:"id"},{t:4,k:"id"},{t:3,v:" â блог на "},{t:4,k:"appName"}]}},description:{t:0,b:{t:2,i:[{t:3,v:"ÐÑе поÑÑÑ Ð¸ комменÑаÑии "},{t:4,k:"name"},{t:3,v:" "},{t:4,k:"nickname"},{t:3,v:" на "},{t:4,k:"appName"},{t:3,v:"."}]}}}},etc:{unsubscribe:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ"}},donate:{t:0,b:{t:2,i:[{t:3}],s:"ÐадонаÑиÑÑ"}},message:{t:0,b:{t:2,i:[{t:3}],s:"ÐапиÑаÑÑ"}},gift:{t:0,b:{t:2,i:[{t:3}],s:"ÐодаÑиÑÑ"}}},errors:{403:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑÐµÐ»Ñ ÑкÑÑл Ñвой пÑоÑилÑ"}}},subscribers:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑÑики"}},coverEditor:{upload:{t:0,b:{t:2,i:[{t:3}],s:"ÐобавиÑÑ Ð¾Ð±Ð»Ð¾Ð¶ÐºÑ"}},dragLong:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑеÑаÑиÑе, ÑÑÐ¾Ð±Ñ Ð¸Ð·Ð¼ÐµÐ½Ð¸ÑÑ Ð¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ðµ"}},dragShort:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑеÑаÑиÑе"}},editLong:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑиÑоваÑÑ Ð¾Ð±Ð»Ð¾Ð¶ÐºÑ"}},editShort:{t:0,b:{t:2,i:[{t:3}],s:"РедакÑиÑоваÑÑ"}},contextMenu:{edit:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑоиÑÑ"}}}},stats:{title:{t:0,b:{t:2,i:[{t:3}],s:"СÑаÑиÑÑика блога"}},stub:{t:0,b:{t:2,i:[{t:3}],s:"ÐедоÑÑаÑоÑно даннÑÑ
Ð´Ð»Ñ Ð¾ÑобÑÐ°Ð¶ÐµÐ½Ð¸Ñ ÑÑаÑиÑÑики"}},titles:{opens:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑкÑÑÑÐ¸Ñ Ð¿Ð¾ÑÑов"}},subscribers:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑÑики"}}},topOpens:{t:0,b:{t:2,i:[{t:3}],s:"Топ поÑÑов по оÑкÑÑÑиÑм"}}}},SN={emptyHistory:{t:0,b:{t:2,i:[{t:3}],s:"РиÑÑоÑии поиÑка пока ниÑего неÑ"}},posts:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑ"}},companies:{t:0,b:{t:2,i:[{t:3}],s:"Ðомпании"}},telegram:{t:0,b:{t:2,i:[{t:3}],s:"Telegram"}},filters:{t:0,b:{t:2,i:[{t:3}],s:"ФилÑÑÑÑ"}},postFilters:{strict:{t:0,b:{t:2,i:[{t:3}],s:"ТоÑное Ñовпадение"}},title:{t:0,b:{t:2,i:[{t:3}],s:"ÐоиÑк ÑолÑко по заголовкам"}},editorial:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑÑ ÑедакÑии"}},sorting:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑÑдок"}},options:{relevance:{t:0,b:{t:2,i:[{t:3}],s:"Ðо ÑелеванÑноÑÑи"}},date:{t:0,b:{t:2,i:[{t:3}],s:"Ðо даÑе"}}}},date:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑа напиÑаниÑ"}},options:{any:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑбаÑ"}},day:{t:0,b:{t:2,i:[{t:3}],s:"Ðа ÑÑÑки"}},week:{t:0,b:{t:2,i:[{t:3}],s:"Ðа неделÑ"}},month:{t:0,b:{t:2,i:[{t:3}],s:"Ðа меÑÑÑ"}},year:{t:0,b:{t:2,i:[{t:3}],s:"Ðа год"}}}}},subscribers:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"подпиÑÑиков"},{t:2,i:[{t:3}],s:"подпиÑÑик"},{t:2,i:[{t:3}],s:"подпиÑÑика"},{t:2,i:[{t:3}],s:"подпиÑÑиков"}]}},showResults:{t:0,b:{t:2,i:[{t:3}],s:"ÐоказаÑÑ ÑезÑлÑÑаÑÑ"}},tops:{blogs:{title:{t:0,b:{t:2,i:[{t:3}],s:"Топ блогов"}},metaTitle:{t:0,b:{t:2,i:[{t:3,v:"Топ блогов на "},{t:4,k:"appName"}]}},metaDescription:{t:0,b:{t:2,i:[{t:3,v:"РейÑинг блогов пÑо "},{t:4,k:"appAbout"},{t:3,v:" на "},{t:4,k:"appName"},{t:3,v:"."}]}}},companies:{title:{t:0,b:{t:2,i:[{t:3}],s:"Топ компаний"}},metaTitle:{t:0,b:{t:2,i:[{t:3,v:"Топ компаний на "},{t:4,k:"appName"}]}},metaDescription:{t:0,b:{t:2,i:[{t:3,v:"РейÑинг блогов компаний ÑаÑÑÑиÑÑваеÑÑÑ Ð½Ð° оÑнове анализа иÑ
акÑивноÑÑи на "},{t:4,k:"appName"},{t:3,v:"."}]}}},topics:{title:{t:0,b:{t:2,i:[{t:3}],s:"ТемÑ"}},metaTitle:{t:0,b:{t:2,i:[{t:3,v:"Ð¢ÐµÐ¼Ñ Ð½Ð° "},{t:4,k:"appName"}]}},metaDescription:{t:0,b:{t:2,i:[{t:3,v:"ÐопÑлÑÑнÑе ÑемÑ, на коÑоÑÑе пиÑÑÑ Ð¿Ð¾ÑÑÑ Ð½Ð° "},{t:4,k:"appName"},{t:3,v:"."}]}}},telegram:{title:{t:0,b:{t:2,i:[{t:3}],s:"Топ Telegram-каналов"}},metaTitle:{t:0,b:{t:2,i:[{t:3,v:"РейÑинг Telegram-каналов на "},{t:4,k:"appName"}]}},metaDescription:{t:0,b:{t:2,i:[{t:3,v:"РейÑинг Telegram-каналов пÑо бизнеÑ, ÑеÑ
нологии и маÑкеÑинг на "},{t:4,k:"appName"},{t:3,v:"."}]}},add:{t:0,b:{t:2,i:[{t:3}],s:"ÐобавиÑÑ"}}}},rateAnswer:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ²ÐµÑ Ð¿Ð¾Ð»ÐµÐ·Ð½Ñй?"}},aiAnswer:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ²ÐµÑ ÑгенеÑиÑован AI"}},aiNoAnswer:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑвеÑа Ð¾Ñ AI не бÑдеÑ"}},aiAnswerGenerating:{t:0,b:{t:2,i:[{t:3}],s:"ÐенеÑиÑÑем оÑÐ²ÐµÑ Ñ Ð¿Ð¾Ð¼Ð¾ÑÑÑ AI"}}},CN={messengerTitle:{t:0,b:{t:2,i:[{t:3}],s:"СообÑениÑ"}},systemMessage:{addedMember:{t:0,b:{t:2,i:[{t:3}],s:"добавил"}},addedMembers:{t:0,b:{t:2,i:[{t:3,v:"добавил "},{t:4,k:"count"},{t:3,v:" ÑÑаÑÑников"}]}},kickedMember:{t:0,b:{t:2,i:[{t:3}],s:"Ñдалил из ÑаÑа"}},editedPicture:{t:0,b:{t:2,i:[{t:3}],s:"ÐзобÑажение изменено"}},leftChannel:{t:0,b:{t:2,i:[{t:3}
118],s:"покинÑл канал"}},createdChannel:{t:0,b:{t:2,i:[{t:3,v:'Ñоздал канал "'},{t:4,k:"title"},{t:3,v:'" Ñ '},{t:4,k:"count"},{t:3,v:" ÑÑаÑÑниками"}]}},editedChannel:{t:0,b:{t:2,i:[{t:3}],s:"изменил аваÑаÑÐºÑ ÐºÐ°Ð½Ð°Ð»Ð°"}},joinedChannel:{t:0,b:{t:2,i:[{t:3}],s:"пÑиÑоединилÑÑ Ðº каналÑ"}}},noMessages:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐµÑ ÑообÑений"}},bottom:{formDisabledBecauseOfPlus:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ»Ñ Ð¾ÑпÑавки ÑообÑений нÑжна подпиÑка Plus."}},formDisabledBecauseOfPlusLink:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоÑмиÑÑ Plus"}}},errors:{USER_BANNED:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°Ð±Ð°Ð½ÐµÐ½Ñ, данное дейÑÑвие невозможно"}},USER_BANNED_IN_MESSENGER:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑÐµÐ»Ñ Ð·Ð°Ð±Ð»Ð¾ÐºÐ¸Ñован в меÑÑенджеÑе"}},MESSENGER_DISABLED:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑÐµÐ»Ñ Ð·Ð°Ð±Ð»Ð¾ÐºÐ¸Ñован в меÑÑенджеÑе"}},USER_IN_BLOCKLIST:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð´Ð¾Ð±Ð°Ð²Ð¸Ð»Ð¸ полÑзоваÑÐµÐ»Ñ Ð² ÑеÑнÑй ÑпиÑок"}},BLOCKED_BY_USER:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑÐµÐ»Ñ Ð·Ð°Ð±Ð»Ð¾ÐºÐ¸Ñовал полÑÑение ÑообÑений"}},PLUS_SUBSCRIPTION_REQUIRED:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑÑÐµÐ½Ð´Ð¶ÐµÑ Ð´Ð¾ÑÑÑпен ÑолÑко подпиÑÑикам Plus"}},RATE_LIMIT_EXCEEDED:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð½Ðµ можеÑе ÑоздаваÑÑ Ð±Ð¾Ð»ÐµÐµ 10 диалогов в денÑ"}},MESSAGE_TOO_LONG:{t:0,b:{t:2,i:[{t:3}],s:"СлиÑком длиннÑй ÑекÑÑ ÑообÑениÑ"}}}},EN={rateTitle:{t:0,b:{t:2,i:[{t:3,v:"ÐÑÑÑ "},{t:4,k:"from"},{t:3,v:" к "},{t:4,k:"to"}]}},currency:{usd:{nominative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"доллаÑ"},{t:2,i:[{t:3}],s:"доллаÑа"},{t:2,i:[{t:3}],s:"доллаÑов"}]}},dative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"доллаÑÑ"},{t:2,i:[{t:3}],s:"доллаÑÑ"},{t:2,i:[{t:3}],s:"доллаÑам"}]}}},eur:{nominative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"евÑо"},{t:2,i:[{t:3}],s:"евÑо"},{t:2,i:[{t:3}],s:"евÑо"}]}},dative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"евÑо"},{t:2,i:[{t:3}],s:"евÑо"},{t:2,i:[{t:3}],s:"евÑо"}]}}},rub:{nominative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑÑблÑ"},{t:2,i:[{t:3}],s:"ÑÑблÑ"},{t:2,i:[{t:3}],s:"ÑÑблей"}]}},dative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑÑблÑ"},{t:2,i:[{t:3}],s:"ÑÑблÑ"},{t:2,i:[{t:3}],s:"ÑÑблÑм"}]}}},ton:{nominative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"TON"},{t:2,i:[{t:3}],s:"TON"},{t:2,i:[{t:3}],s:"TON"}]}},dative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"TON"},{t:2,i:[{t:3}],s:"TON"},{t:2,i:[{t:3}],s:"TON"}]}},nominativeFull:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"Toncoin"},{t:2,i:[{t:3}],s:"Toncoin"},{t:2,i:[{t:3}],s:"Toncoins"}]}}},btc:{nominative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"биÑкоин"},{t:2,i:[{t:3}],s:"биÑкоина"},{t:2,i:[{t:3}],s:"биÑкоинов"}]}},dative:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"биÑкоинÑ"},{t:2,i:[{t:3}],s:"биÑкоинÑ"},{t:2,i:[{t:3}],s:"биÑкоинам"}]}},nominativeFull:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"биÑкоин"},{t:2,i:[{t:3}],s:"биÑкоина"},{t:2,i:[{t:3}],s:"биÑкоинов"}]}}}},converter:{t:0,b:{t:2,i:[{t:3}],s:"ÐонвеÑÑÐµÑ Ð²Ð°Ð»ÑÑ"}},feedTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐовоÑÑи ÑÑнка"}},seo:{title:{t:0,b:{t:2,i:[{t:4,k:"currency"},{t:3,v:"/"},{t:4,k:"target"},{t:3,v:" â кÑÑÑ "},{t:4,k:"currencyNominative"},{t:3,v:" на ÑегоднÑ, гÑаÑик динамики Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ ÐºÑÑÑа, конвеÑÑÐµÑ Ð²Ð°Ð»ÑÑÑ"}]}},description:{t:0,b:{t:2,i:[{t:3,v:"ÐÑÑÑ "},{t:4,k:"currencyNominative"},{t:3,v:" ÑÐµÐ³Ð¾Ð´Ð½Ñ "},{t:4,k:"rateInRub"},{t:3,v:" ÑоглаÑно даннÑм ЦРРФ. ÐÑаÑик Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ ÐºÑÑÑа "},{t:4,k:"currencyNominative"},{t:3,v:" и онлайн конвеÑÑÐµÑ Ð²Ð°Ð»ÑÑÑ."}]}},cryptoDescription:{t:0,b:{t:2,i:[{t:3,v:"ÐÑÑÑ "},{t:4,k:"currencyNominativeFull"},{t:3,v:" ÑÐµÐ³Ð¾Ð´Ð½Ñ "},{t:4,k:"rate"},{t:3,v:". ÐÑаÑик Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ ÐºÑÑÑа "},{t:4,k:"currencyNominativeFull"},{t:3,v:" и онлайн конвеÑÑÐµÑ ÐºÑипÑовалÑÑÑ."}]}}}},xN={},TN={[Wi.En]:{},[Wi.Ru]:{[Oe.Shared]:yN,[Oe.Core]:wN,[Oe.Entry]:_N,[Oe.Subsite]:kN,[Oe.Discovery]:SN,[Oe.Messenger]:CN,[Oe.Finance]:EN,[Oe.Stories]:xN}},AN=TN,PN=Wi.Ru,RN=Wi.Ru,Zs=P5({locale:PN,fallbackLocale:RN,messages:AN,pluralRules:{[Wi.Ru]:bN}});
118function IN(e){Zs.global.mergeLocaleMessage(Wi.Ru,e[Wi.Ru]),Zs.global.mergeLocaleMessage(Wi.En,e[Wi.En])}function Ne(e){function t(c){return e===void 0?c:`${e}.${c}`}function n(c,u){return u!==void 0?Zs.global.t(t(c),u):Zs.global.t(t(c))}function s(c,u,d=!0){const h=Zs.global.t(t(c),u);return d?`${Zt(u,{separator:" "})} ${h}`:h}function i(c){return Zs.global.te(t(c))}function o(c,u){return i(c)?n(c):i(u)?n(u):""}function r(c){Zs.global.locale.value=c}function a(){return Zs.global.locale.value}function l(){return Zs.global.availableLocales}return{t:n,p:s,te:i,tf:o,tm:Zs.global.tm,rt:Zs.global.rt,setCurrentLocale:r,getCurrentLocale:a,getAvailableLocales:l}}const MN={class:"complaint"},$N={class:"complaint__list"},g0=J({__name:"Complaint",props:{isShowSuccessAlert:{type:Boolean},submitHandler:{type:Function}},setup(e){const t=e,{t:n}=Ne(),{alert:s,AlertType:i}=fn(),o=P(Qs.Spam),r=P(!1),a=[{label:n("shared.complaint.reasons.spam"),value:Qs.Spam},{label:n("shared.complaint.reasons.abuse"),value:Qs.Abuse},{label:n("shared.complaint.reasons.lawViolation"),value:Qs.LawViolation},{label:n("shared.complaint.reasons.porn"),value:Qs.Porn},{label:n("shared.complaint.reasons.violence"),value:Qs.Violence},{label:n("shared.complaint.reasons.copyright"),value:Qs.Copyright},{label:n("shared.complaint.reasons.misleading"),value:Qs.Misleading},{label:n("shared.complaint.reasons.politics"),value:Qs.Politics},{label:n("shared.complaint.reasons.neuroContent"),value:Qs.NeuroContent},{label:n("shared.complaint.reasons.other"),value:Qs.Other}];async function l(){var c;if(o.value!==void 0)try{r.value=!0,await((c=t.submitHandler)==null?void 0:c.call(t,o.value)),t.isShowSuccessAlert&&s({type:i.Success,text:n("shared.complaint.successMessage")})}finally{r.value=!1}}return(c,u)=>(_(),T("div",MN,[xe(Y(f(n)("shared.complaint.chooseReason"))+" ",1),O("div",$N,[(_(),T(ye,null,We(a,d=>A(f(dC),{key:d.value,modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=h=>o.value=h),value:d.value,caption:d.label,disabled:r.value},null,8,["modelValue","value","caption","disabled"])),64))]),A(f(qe),{size:"l",disabled:o.value===void 0||r.value,onClick:l},{default:K(()=>[xe(Y(f(n)("common.submit")),1)]),_:1},8,["disabled"])]))}});function Cp(e,t){const{isAnon:n}=Ye(),s=P(),i=P(),o=C(()=>e.filter(c).map(r));function r(d){return{...d,label:d.labelFactory!==void 0&&s.value!==void 0?d.labelFactory(s.value):d.label,action:async()=>{if(s.value!==void 0)return await d.handler(s.value)}}}function a(d){s.value=d}function l(d){i.value=d}function c(d){var m;const h=d.permission===void 0||i.value!==void 0&&d.permission in i.value&&i.value[d.permission],p=((m=d.filter)==null?void 0:m.call(d,s.value))??!0;return h&&p}async function u(d,h){return l(void 0),a(d),o.value.length>0?h.setData(o.value):h.setLoadingState(!0),!n.value&&(t==null?void 0:t.requestPermissions)!==void 0&&l(await t.requestPermissions(d)),h.setLoadingState(!1),o.value}return{getContextActions:u}}const LN={restriction:{text:{t:0,b:{t:2,i:[{t:3,v:"СпиÑок пÑоголоÑовавÑиÑ
доÑÑÑпен "},{t:5,i:0}]}},subscribers:{t:0,b:{t:2,i:[{t:3}],s:"подпиÑÑикам Plus"}},buy:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑÑ Plus"}}},noReactionsYet:{t:0,b:{t:2,i:[{t:3}],s:"Ðока Ð½ÐµÑ ÑеакÑий"}}},ON=Object.freeze(Object.defineProperty({__proto__:null,ru:LN},Symbol.toStringTag,{value:"Module"}));function BN(e){const{open:t}=ys(),n=C(()=>e===void 0?[]:Object.values(e).reduce((o,r)=>{var l;if(r===void 0)return o;const a=(l=ce(r.assets))==null?void 0:l.reduce((c,u)=>{const d=s(u,r);return u.isExcludedFromPicker!==!0&&c.push(d),c},[]);return a!==void 0&&o.push(...a),o},[]));function s(o,r){const a=ce(r==null?void 0:r.active),l=a===o.id||Array.isArray(a)&&a.includes(o.id);return{value:o.id,media:xn({uuid:o.animatedUuid??o.staticUuid,color:"transparent"}),highlighted:l,mediaRaw:!0,subIcon:o.isPlusSubscriptionRequired===!0?"diamond":void 0,action:()=>{var c,u;ce(r.disabled)!==!0&&((u=(c=r.handlers)==null?void 0:c.onSelect)==null||u.call(c,o.id,{isActive:l,isPlusSubscriptionRequired:o.isPlusSubscriptionRequired??!1}))}}}function i(o){t(kC,{data:n},{target:o,width:"auto",positionX:"center",positionY:"bottom"})}return{open:i}}function DN(){let e;const t=Or(async a=>{if(e===void 0)throw new Error("Attempt to load reactors with no getter function specified");const l=await e(a);if(l===void 0)throw new Error("Attempt to load reactors with no result");return l}),{open:n,isOpened:s,popoverId:i}=ys(),o=C(()=>t.isLoading);function r(a,l){s.value&&i.value===l.key||(t.reset(),e=a,t.loadInitial(),n(to,{data:t.items,loading:o,onEndReach:async()=>{await t.loadMore()}},{id:l.key,target:l.target,behavior:"hover"}))}return{show:r}}function XC(e,t){const{open:n}=BN(t),{show:s}=DN(),i={key:"picker",icon:"plus",actions:{onClick:l=>{l.currentTarget instanceof HTMLElement&&n(l.currentTarget)}}},o=C(()=>ce(e).reduce((l,c)=>{const u=t==null?void 0:t[c.type],d=a(c,u);if(c.count===0&&d.pinned!==!0)return l;const h=l.stateByType[c.type]??{nodes:[],activeNodes:[],count:0};return h.nodes.push(d),h.count+=d.count??0,d.active===!0&&h.activeNodes.push(d),l.stateByType[c.type]=h,l.nodes.push(d),l},{nodes:[],stateByType:{}}));function r(l,c){var d;const u=ce((d=t==null?void 0:t[l])==null?void 0:d.assets);if(u!==void 0)return u.find(h=>h.id===c)??null}function a(l,c){const u=`${l.type}:${l.id}`,d=r(l.type,l.id),h=()=>{const m=ce(c==null?void 0:c.defaults);return m===l.id||Array.isArray(m)&&m.includes(l.id)},p=()=>{const m=ce(c==null?void 0:c.active);return m===l.id||Array.isArray(m)&&m.includes(l.id)};return{type:l.type,key:u,image:d,enlarged:(d==null?void 0:d.size)==="large",count:l.count>0?l.count:void 0,text:l.text,icon:l.count===0?d==null?void 0:d.svgIconName:void 0,active:p(),disabled:ce(c==null?void 0:c.disabled)===!0,pinned:h(),actions:{onClick:()=>{var m,v;return(v=(m=c==null?void 0:c.handlers)==null?void 0:m.onSelect)==null?void 0:v.call(m,l.id,{isActive:p(),isPlusSub
118scriptionRequired:(d==null?void 0:d.isPlusSubscriptionRequired)??!1})},onMouseEnter:m=>{var b,w,k;const v=((w=(b=c==null?void 0:c.handlers)==null?void 0:b.onBeforeReactorsRequest)==null?void 0:w.call(b,m))===!1,g=(k=c==null?void 0:c.handlers)==null?void 0:k.onReactorsRequest;!(m.target instanceof HTMLElement)||g===void 0||l.count===0||v||s(async y=>await g(l.id,y),{key:u,target:m.target})}}}}return{state:o,picker:i,openReactionsPicker:n}}const NN=250,Gd=({text:e,icon:t,image:n,count:s,actions:i,active:o,pinned:r,enlarged:a,disabled:l},{slots:c,attrs:u,emit:d})=>{var m;const h=Object.fromEntries(Object.entries(u).filter(([v])=>v.startsWith("data-")));return Ie(A("div",St({class:["reaction-item",a&&n!==void 0&&"reaction-item--enlarged",o&&"reaction-item--active",l&&"reaction-item--disabled"]},h,{onClick:async v=>{var y;const g=(y=i==null?void 0:i.onClick)==null?void 0:y.call(i,v),b=(g==null?void 0:g.animate)??!1,w=v.currentTarget;if(w instanceof HTMLElement&&d("click",{target:w}),b!==!0||!q(n)||!(w instanceof HTMLElement))return;const{playReactionBurst:k}=await Ce(async()=>{const{playReactionBurst:S}=await import("./index-Fx8ljwUJ.js");return{playReactionBurst:S}},[]);k({anchor:w,imageSrc:Ir({uuid:n.staticUuid}),count:s??1,size:20,zIndex:2})},style:{"--custom-color":n==null?void 0:n.color,"--custom-order":typeof r=="number"?r:void 0},"data-ripple":!0}),[n!==void 0&&t===void 0&&A("div",{class:"reaction-item__image"},[n!==null&&A(bp,{width:a?36:20,height:a?36:20,staticUuid:n.staticUuid,animatedUuid:n.animatedUuid},null)]),t!==void 0&&A("div",{class:"reaction-item__icon"},[A(Re,{name:t,width:20,height:20},null)]),e,((m=c.default)==null?void 0:m.call(c))??(s&&A(Xb,{value:s,isShort:!0},null))]),[[i$,[i==null?void 0:i.onMouseEnter,NN]]])},FN={ref:"itemsContainer",class:"reactions-row__variable"},UN={class:"reactions-row__constant"},HN=J({__name:"ReactionsRow",props:{items:{},picker:{},isAlwaysExpanded:{type:Boolean}},setup(e){const t=e,{t:n}=ft(),s=P([]),i=mt("itemsContainer"),o=C(()=>r.value?[]:t.items.filter(p=>d(p)&&l.get(p.key)===!1)),r=P(t.isAlwaysExpanded??!1),a=C(()=>r.value?n("common.collapse"):n("common.moreN",{n:c.value})),l=bt(new Map),c=C(()=>[...l.values()].filter(p=>!p).length-o.value.length),u=C(()=>!r.value&&t.items.some(p=>!d(p)&&p.active===!0&&l.get(p.key)===!1));function d(p){return p.pinned===!0||typeof p.pinned=="number"}function h(){r.value=!r.value}return vL(s,{root:i,disabled:r},{onIntersection:(p,m)=>{q(p.dataset.reactionKey)&&l.set(p.dataset.reactionKey,m)},onStop:()=>{l.clear()}}),(p,m)=>(_(),T("div",{class:Z(["reactions-row",r.value&&"reactions-row--expanded",!r.value&&c.value===e.items.length-o.value.length&&"reactions-row--empty"])},[O("div",FN,[(_(!0),T(ye,null,We(e.items,v=>(_(),L(f(Gd),St({ref_for:!0,ref_key:"itemsElements",ref:s,"data-reaction-key":v.key,"data-hidden":l.get(v.key)===!1},{ref_for:!0},v),null,16,["data-reaction-key","data-hidden"]))),256))],512),O("div",UN,[(_(!0),T(ye,null,We(o.value,v=>(_(),L(f(Gd),St({ref_for:!0},v),null,16))),256)),e.isAlwaysExpanded?D("",!0):Ie((_(),L(f(Gd),{key:0,active:u.value,actions:{onClick:()=>{h()}}},{default:K(()=>[xe(Y(a.value),1)]),_:1},8,["active","actions"])),[[As,r.value||c.value>0]]),e.picker?(_(),L(f(Gd),Oh(St({key:1},e.picker)),null,16)):D("",!0)])],2))}}),Ep=ot(HN,[["__scopeId","data-v-34d0fa10"]]),VN={title:{t:0,b:{t:2,i:[{t:3}],s:"ÐонаÑÑ"}},withdraw:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑвеÑÑи"}},registration:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐодклÑÑение донаÑов"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"ТелеÑон нÑжен Ð´Ð»Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ ÐºÐ°Ð±Ð¸Ð½ÐµÑа в CloudTips."}},caption:{t:0,b:{t:2,i:[{t:3,v:"ÐапиÑиÑе на "},{t:4,k:"email"},{t:3,v:", ÑÑÐ¾Ð±Ñ ÑбÑоÑиÑÑ Ð½Ð¾Ð¼ÐµÑ ÑелеÑона"}]}}},confirmation:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ðод подÑвеÑждениÑ"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавили на номеÑ"}},success:{t:0,b:{t:2,i:[{t:3}],s:"ÐонаÑÑ Ð¿Ð¾Ð´ÐºÐ»ÑÑенÑ"}}},notice:{title:{t:0,b:{t:2,i:[{t:3}],s:"УвÑ, Ð²Ñ Ð¿Ð¾ÐºÐ° не можеÑе подклÑÑиÑÑ Ð´Ð¾Ð½Ð°ÑÑ"}},subtitle:{t:0,b:{t:2,i:[{t:3}
118],s:"ÐÐ»Ñ Ð¿ÑиÑма донаÑов аккаÑÐ½Ñ Ð´Ð¾Ð»Ð¶ÐµÐ½ бÑÑÑ ÑÑаÑÑе одной недели, имеÑÑ Ð±Ð¾Ð»ÐµÐµ 100 баллов ÑейÑинга и Ñ Ð¾ÑÑ Ð±Ñ Ð¾Ð´Ð¸Ð½ опÑбликованнÑй поÑÑ."}}},promotion:{post:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐодклÑÑиÑе донаÑÑ"}},text:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑели ÑмогÑÑ Ð¾ÑпÑавлÑÑÑ Ð´Ð¾Ð½Ð°ÑÑ Ð·Ð°Â Ð²Ð°Ñи поÑÑÑ."}},confirmText:{t:0,b:{t:2,i:[{t:3}],s:"ÐодклÑÑиÑÑ"}},cancelText:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑом"}}},comment:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐодклÑÑиÑе донаÑÑ"}},text:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑзоваÑели ÑмогÑÑ Ð¾ÑпÑавлÑÑÑ Ð´Ð¾Ð½Ð°ÑÑ Ð·Ð°Â Ð²Ð°Ñи комменÑаÑии."}},confirmText:{t:0,b:{t:2,i:[{t:3}],s:"ÐодклÑÑиÑÑ"}},cancelText:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑом"}}}},sendingDonation:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавка донаÑа"}},recipient:{t:0,b:{t:2,i:[{t:3}],s:"ÐолÑÑаÑелÑ"}},noDonationsYet:{t:0,b:{t:2,i:[{t:3}],s:"Ðока Ð½ÐµÑ Ð´Ð¾Ð½Ð°Ñов"}},errors:{USER_KARMA_IS_TOO_LOW:{t:0,b:{t:2,i:[{t:3}],s:"СлиÑком низкий ÑейÑинг"}},PHONE_NUMBER_IS_INVALID:{t:0,b:{t:2,i:[{t:3}],s:"ÐепÑавилÑнÑй Ð½Ð¾Ð¼ÐµÑ ÑелеÑона"}},PHONE_NUMBER_ALREADY_EXISTS:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¾Ð¼ÐµÑ ÑелеÑона Ñже заÑегиÑÑÑиÑован"}},USER_HAS_ENABLED_DONATES:{t:0,b:{t:2,i:[{t:3}],s:"ÐонаÑÑ Ñже подклÑÑенÑ"}},PUBLISHED_POSTS_NOT_FOUND:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐµÑ Ð¾Ð¿ÑбликованнÑÑ Ð¿Ð¾ÑÑов"}},RECEIVER_NOT_FOUND:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ°Ð±Ð¸Ð½ÐµÑ Ð² CloudTips не найден"}},COULD_NOT_CONFIRM_RECEIVER:{t:0,b:{t:2,i:[{t:3}],s:"ÐепÑавилÑнÑй код"}}}},zN=Object.freeze(Object.defineProperty({__proto__:null,ru:VN},Symbol.toStringTag,{value:"Module"}));function WN(){return q('{"withdrawalLink":"https://lk.cloudtips.ru"}')?[{path:"/donations",name:"Donations",component:Rt(async()=>await Ce(()=>import("./Donations-CK6zG2FU.js"),__vite__mapDeps([44,45,46,47]))),redirect:"?modal=donations",meta:{modalTitle:"ÐонаÑÑ",authRequired:!0,refererId:$e.Donations}},{path:"/donations/registration",name:"DonationsRegistration",component:Rt(async()=>await Ce(()=>import("./Registration-DdjM8Kfo.js"),__vite__mapDeps([48,45,46,49]))),redirect:"?modal=donations/registration",meta:{authRequired:!0,refererId:$e.DonationsRegistration}}]:[]}const jN=WN();var Rs=(e=>(e.Comment="comment",e.User="user",e.Post="post",e.CommentCreator="comment_creator",e))(Rs||{});function GN(){const e=P(null);return{get account(){return e.value},set account(t){e.value=t}}}var Wu;class qN{constructor(){Fe(this,Wu,GN())}getAccount(){return fe(this,Wu).account}setAccount(t){fe(this,Wu).account=t}}Wu=new WeakMap;const xp="donation initiated";class KN extends di{constructor({type:n,entityId:s,amount:i}){super(xp,{entityId:s,type:n,amount:i});le(this,"shouldBeBroadcasted",!0)}}class YN{constructor(t,n){var s;this.repository=t,this.eventBus=n,(s=this.eventBus)==null||s.addEventListener(ci,async i=>{const o=i.detail.session===null?"null":[`AT ${i.detail.session.accessToken.substring(0,6)} expires ${new Date(i.detail.session.accessExpTimestamp*1e3).toISOString()}`,`RT ${i.detail.session.refreshToken.substring(0,6)} expires ${new Date(i.detail.session.refreshExpTimestamp*1e3).toISOString()}`].join(` 119`);Yt.getInstance().log(`DonationsService / AUTH_SESSION_UPDATED_EVENT . Session: ${o}`),i.detail.session===null?this.repository.setAccount(null):await this.refreshAccount()})}getAccount(){return this.repository.getAccount()}async register(t){return await this.repository.register(t)}async resendCode(){return await this.repository.resendCode()}async confirm(t){return await this.repository.confirm(t)}async removeAccount(){return await this.repository.removeAccount()}async donate(t){var s;let n;if("id"in t.data)n=t.data.id;else if("post_id"in t.data)n=t.data.post_id;else if("comment_id"in t.data)n=t.data.comment_id;else if("user_id"in t.data)n=t.data.user_id;else throw new Error(`Unsupported donation type: ${t.type}`);return(s=this.eventBus)==null||s.dispatchEvent(new KN({type:t.type,entityId:n,amount:t.donation})),await this.repository.donate(t)}async refreshAccount(){await this.repository.refreshAccount()}}class XN extends Ks{constructor(t,n){super(),this.transport=t,this.createStore=n}async refreshAccount(){let t=null;try{const n=await this.transport.get("donations/account",void 0,{apiVersion:"v2.5",auth:"strict"});t=Array.isArray(n)?null:n}catch(n){console.error("Refresh donation account error:",n)}this.store.setAccount(t)}getAccount(){return this.store.getAccount()}setAccount(t){this.store.setAccount(t)}async register(t){await this.transport.post("donations/registration",{phoneNumber:t,isKarmaDisabled:!1},{apiVersion:"v2.5",auth:"strict"}),this.store.setAccount({phoneNumber:t,isConfirmed:!1,balance:0})}async resendCode(){await this.transport.post("donations/registration/sendCode",void 0,{apiVersion:"v2.5",auth:"strict"})}async confirm(t){await this.transport.post("donations/registration/confirm",{code:t},{apiVersion:"v2.5",auth:"strict"});const n=this.store.getAccount();q(n)&&this.store.setAccount({...n,isConfirmed:!0})}async removeAccount(){await this.transport.post("donate/receiver/remove",void 0,{apiVersion:"v2.5",auth:"strict"}),this.store.setAccount(null)}async donate(t){return{link:(await this.transport.post("donations/donate",t,{apiVersion:"v2.6",auth:"strict"})).payment_link}}}function QN(){const e=pt();return e.isRegistered("DonationsService")||e.register("DonationsService",()=>{const{transport:t,eventBus:n}=e.resolve("ModuleInitOptions"),s=new XN(t,()=>new qN);return new YN(s,n)}),e.resolve("DonationsService")}const Tp=()=>ft(),b0="760067e9-cccd-51f4-bd05-661c6a3dcfc0",JN={key:0,class:"donation-form__suggestions"},ZN={class:"donation-form__button"},QC=J({__name:"DonationForm",props:{min:{},max:{},suggestions:{},buttonLabel:{},isLoading:{type:Boolean},isLarge:{type:Boolean},location:{}},emits:["submit"],setup(e,{emit:t}){const n=e,s=t,{t:i}=Tp(),{trackEvent:o}=Qn(),r="â½",a=P(0),l=C(()=>`${i("common.fromTo",{from:Zt(n.min),to:Zt(n.max)})} ${r}`),c=C(()=>a.value<n.min||a.value>n.max);function u(){c.value||(o("Donation â Submit â Click",{Location:n.location}),s("submit",a.value))}return je(()=>{o("Donation â Form â Show",{Location:n.location})}),(d,h)=>(_(),T("div",{class:Z(["donation-form",e.isLarge&&"donation-form--lg"])},[A(f(wC),{modelValue:a.value,"onUpdate:modelValue":h[0]||(h[0]=p=>a.value=p),autofocus:"",postfix:f(r),onKeydown:vn(u,["enter"])},{caption:K(()=>[xe(Y(l.value),1)]),_:1},8,["modelValue","postfix"]),e.suggestions?(_(),T("div",JN,[(_(!0),T(ye,null,We(e.suggestions,p=>(_(),L(f(qe),{key:p,type:"minimal",size:e.isLarge?"l":"s",onClick:m=>a.value=p},{default:K(()=>[xe(Y(`${p} ${f(r)}`),1)]),_:2}
119,1032,["size","onClick"]))),128))])):D("",!0),O("div",ZN,[A(f(qe),{size:"l",disabled:c.value,"is-loading":e.isLoading,onClick:u},{default:K(()=>[xe(Y(e.buttonLabel??f(i)("common.submit")),1)]),_:1},8,["disabled","is-loading"])])],2))}}),eF={class:"donation-modal"},tF={class:"donation-modal__title"},nF={class:"donation-modal__subtitle"},sF=J({__name:"DonationModal",props:{id:{},name:{},type:{}},setup(e){const t=e,n=Us==null?void 0:Us(),{t:s}=Tp(),{recallAfterAuth:i}=ws(),o=P(!1);async function r(l){if(n===void 0)return;let c;switch(t.type){case Rs.CommentCreator:c={comment_id:t.id};break;case Rs.Post:c={post_id:t.id};break;default:c={user_id:t.id};break}o.value=!0,await n.donate({type:t.type,donation:l,data:c}),o.value=!1}async function a(l){await i(async()=>{await r(l)})}return(l,c)=>(_(),T("div",eF,[O("div",tF,Y(f(s)("donations.sendingDonation")),1),O("div",nF,[xe(Y(f(s)("donations.recipient"))+" ",1),c[0]||(c[0]=O("br",null,null,-1)),O("b",null,Y(e.name),1)]),A(QC,{min:100,max:1e4,suggestions:[250,500,1e3],"is-loading":o.value,"is-large":!0,location:"Subsite",onSubmit:a},null,8,["is-loading"])]))}}),Jw=q('{"withdrawalLink":"https://lk.cloudtips.ru"}')?JSON.parse('{"withdrawalLink":"https://lk.cloudtips.ru"}'):null,Us=Jw===null?null:yt(()=>{const e=QN(),{open:t,close:n}=Wt(),{user:s}=Ye(),{t:i}=Tp(),o=ct(),r=C(()=>e.getAccount()),a=C(()=>{var y;return((y=r.value)==null?void 0:y.phoneNumber)??""}),l=C(()=>{var y;return yn(((y=r.value)==null?void 0:y.balance)??0)}),c=C(()=>q(r.value)),u=C(()=>{var y;return((y=r.value)==null?void 0:y.isConfirmed)===!0}),d=C(()=>{if(!q(s.value))return!1;const y=(Date.now()-1e3*60*60*24*7)/1e3;return s.value.created<y&&s.value.rating>100&&s.value.counters.entries>0});async function h(y){if(!c.value)return await e.register(y);if(!u.value)return await e.resendCode();throw new Error("User already registered")}async function p(y){await e.confirm(y)}async function m(){await e.removeAccount()}async function v(y){const S=await nC(y.fromFeed),{link:E}=await e.donate({...y,...S});t(cn("iframe"),{src:E},{fit:"iframe"})}function g(y,S){return{media:xn({uuid:b0,color:"transparent"}),mediaRaw:!0,action:async()=>{const E=y==="post"?Rs.Post:Rs.CommentCreator;await b(E,S)}}}async function b(y,S){t(sF,{id:S.entityId,name:S.entityRelatedUser.name,type:y},{referer:$e.Donate})}async function w(){if(!d.value||c.value)return;const y=3600*24*30;Tm==null||Tm(()=>{t(IS,{text:i("donations.promotion.post.text"),confirmHandler:()=>{o.push({name:"DonationsRegistration"})},cancelHandler:()=>{n()},confirmText:i("donations.promotion.post.confirmText"),cancelText:i("donations.promotion.post.cancelText")},{title:i("donations.promotion.post.title")})},"donations-promotion",y)}async function k(){c.value||t(xO,{title:i("donations.promotion.comment.title"),text:i("donations.promotion.comment.text"),confirmText:i("donations.promotion.comment.confirmText"),cancelText:i("donations.promotion.comment.cancelText"),confirmHandler:()=>{o.push({name:"DonationsRegistration"})},cancelHandler:()=>{n()}})}return{phoneNumber:a,balanceFormatted:l,withdrawalLink:Jw.withdrawalLink,isConfirmed:u,isAvailable:d,register:h,confirm:p,removeAccount:m,donate:v,getContextListOption:g,openDonationModal:b,promoteRegistrationForPosts:w,promoteRegistrationForComments:k}}),iF={class:"donators-list__name"},oF={class:"donators-list__amount"},rF={key:0,class:"donators-list__stub"},JC=J({__name:"Donators",props:{getter:{type:Function},cleaner:{type:Function},onItemSelect:{type:Function}},setup(e){const t=e,{t:n}=Tp(),s=P(),i=$a([]),o=P(!1);async function r(a){o.value||(o.value=!0,Sb(i,await t.getter(a)),o.value=!1)}return Be(s,"click",a=>{var c;a.composedPath().some(u=>"tagName"in u&&u.tagName==="A")&&((c=t.onItemSelect)==null||c.call(t))}),je(async()=>{await r(!0)}),et(()=>{var a;(a=t.cleaner)==null||a.call(t)}),(a,l)=>(_(),T("div",{ref_key:"list",ref:s,class:"donators-list"},[A(f(Na),{items:f(i),"is-loading":o.value,onEndReach:l[0]||(l[0]=c=>r(!1))},{item:K(({data:c})=>[A(f(Qe),{class:"donators-list__item",to:{name:"Subsite",params:{subsite:f(sn)(c.user)}}},{default:K(()=>[A(f(Jn),{source:c.user.avatar,size:36,isAllowVideo:!1}
119,null,8,["source"]),O("div",iF,Y(c.user.name),1),O("div",oF,Y(f(yn)(c.amount)),1)]),_:2},1032,["to"])]),_:1},8,["items","is-loading"]),f(i).length===0&&!o.value?(_(),T("div",rF,Y(f(n)("donations.noDonationsYet")),1)):D("",!0)],512))}}),aF=Object.freeze(Object.defineProperty({__proto__:null,DONATION_COIN_UUID:b0,DONATION_INITIATED_EVENT_NAME:xp,DonationForm:QC,DonationType:Rs,Donators:JC,messages:zN,routes:jN,useDonations:Us},Symbol.toStringTag,{value:"Module"}));function Aa(e){const t=`/${sn({id:e.id,nickname:e.nickname})}`,n=void 0;return q(n)?`${n.replace(/\/$/,"")}${t}`:t}function y0(e){const t=Nr();async function n(r,a){if(e.value===void 0)return;const l=await Ro().getPayload(a==null?void 0:a.fromFeed);await t.subscribeTo(e.value.id,r,{...l,isSubscribedToNotifications:(a==null?void 0:a.isSubscribedToNotifications)??!1,meta:a==null?void 0:a.meta})}async function s(r){e.value!==void 0&&await t.subscribeToNotifications(e.value.id,r)}const i=C(()=>e.value===void 0?!1:t.isSubscribedTo(e.value.id)),o=C(()=>e.value===void 0?!1:t.isSubscribedToNotifications(e.value.id)??e.value.isSubscribedToNewPosts);return{subscribeTo:n,subscribeToNotifications:s,isSubscribed:i,isSubscribedForNotifications:o}}const ZC=()=>ft(),uc=J({__name:"SubscribeButton",props:{subsite:{},compact:{type:Boolean,default:!1},hiddenIfSubscribed:{type:Boolean,default:!1},gtmPrefix:{},fromFeed:{default:void 0},postId:{default:void 0},type:{default:void 0},hasUnsubscribe:{type:Boolean,default:!1},iconOnly:{type:Boolean,default:!1}},setup(e){const{recallAfterAuth:t}=ws(),{trackEvent:n}=Qn(),s=e,{t:i}=ZC(),{subscribeTo:o,isSubscribed:r,subscribeToNotifications:a,isSubscribedForNotifications:l}=y0(Cn(s,"subsite")),c=C(()=>r.value),u=C(()=>l.value),d=C(()=>u.value?"bell":"bell_strike"),h=C(()=>{if(s.iconOnly)return c.value?"minus":"plus"}),p=C(()=>{if(s.iconOnly)return c.value?i("subsite.subscribeButton.unsubscribe"):i("subsite.subscribeButton.subscribe")}),m=C(()=>s.compact?"s":"m"),v=C(()=>s.type??(s.compact?"minimal":"primary")),g=P(!1),b=C(()=>s.hiddenIfSubscribed?!r.value||g.value:!0),w=C(()=>`${s.gtmPrefix} â ${r.value?"Subscribe":"Unsubscribe"} Button â Click`),k=C(()=>`${s.gtmPrefix} â Bell ${u.value?"On":"Off"} â Click`);async function y(E){g.value=!0,await t(async()=>await o(E,{fromFeed:s.fromFeed,meta:s.postId!==void 0?{postId:s.postId}:void 0})),n(w.value)}function S(){g.value=!0,a(!u.value),n(k.value)}return(E,x)=>b.value?(_(),T(ye,{key:0},[c.value?(_(),T(ye,{key:1},[A(f(qe),{class:Z(["subscribe-bell",g.value&&"subscribe-bell--animated"]),size:m.value,type:"minimal",icon:d.value,onClick:S},null,8,["class","size","icon"]),e.hasUnsubscribe?(_(),L(f(qe),{key:0,size:m.value,type:"minimal",icon:h.value,title:p.value,onClick:x[1]||(x[1]=M=>y(!1))},{default:K(()=>[e.iconOnly?D("",!0):(_(),T(ye,{key:0},[xe(Y(f(i)("subsite.subscribeButton.unsubscribe")),1)],64))]),_:1},8,["size","icon","title"])):D("",!0)],64)):(_(),L(f(qe),{key:0,size:m.value,type:v.value,icon:h.value,title:p.value,onClick:x[0]||(x[0]=M=>y(!0))},{default:K(()=>[e.iconOnly?D("",!0):(_(),T(ye,{key:0},[xe(Y(f(i)("subsite.subscribeButton.subscribe")),1)],64))]),_:1},8,["size","type","icon","title"]))],64)):D("",!0)}}),lF={class:"subsite-list__item"},cF={class:"subsite-list__name"},w0=J({__name:"SubsiteList",props:{getter:{type:Function},cleaner:{type:Function},onItemSelect:{type:Function},hasSubscription:{type:Boolean},emptyText:{}},setup(e){const t=e,n=P(),s=Or(async({isFromStart:i})=>await t.getter(i));return Be(n,"click",i=>{var r;i.composedPath().some(a=>a instanceof HTMLAnchorElement)&&((r=t.onItemSelect)==null||r.call(t))}),je(async()=>{await s.loadInitial()}),et(()=>{var i;(i=t.cleaner)==null||i.call(t)}),(i,o)=>(_(),T("div",{ref_key:"list",ref:n,class:"subsite-list"},[f(s).isLoadedInitial&&f(s).isEmpty&&e.emptyText!==void 0?(_(),L(f(qs),{key:0,text:e.emptyText},null,8,["text"])):(_(),L(f(Na),{key:1,items:f(s).items,"is-loading":f(s).isLoading,onEndReach:o[0]||(o[0]=r=>f(s).loadMore())},{item:K(({data:r})=>[O("div",lF,[A(f(Qe),{class:"subsite-list__link",to:f(Aa)(r)},{default:K(()=>[A(f(Jn),{source:r.avatar,size:36,isAllowVideo:!1},null,8,["source"]),O("div",cF,Y(r.name),1)]),_:2},1032,["to"]),e.hasSubscription&&"isSubscribedToNewPosts"in r?(_(),L(uc,{key:0,subsite:r,"from-feed":f($e).Subscriptions,"gtm-prefix":"Subsite Subscriptions Modal","has-unsubscribe":"",compact:"",type:"primary"},null,8,["subsite","from-feed"])):D("",!0)])]),_:1},8,["items","is-loading"]))],512))}});var ju,K_;let uF=(K_=class{constructor(t){Fe(this,ju,new Tn);this.transport=t}async getSubscriptions(t,n){return await fe(this,ju).resolve(async s=>await this.transport.get("subsite/subscriptions",{...s,subsiteId:t},{auth:"probe",apiVersion:"v2.5"}),n)}clearSubscriptions(){fe(this,ju).reset()}},ju=new WeakMap,K_),dF=class{constructor(t){this.repository=t}async getSubscriptions(t,n){return await this.repository.getSubscriptions(t,n)}clearSubscriptions(){this.repository.clearSubscriptions()}};function fF(){const e=pt();return e.isRegistered("SubsiteService")||e.register("SubsiteService",()=>{const{transport:t}=e.resolve("ModuleInitOptions"),n=new uF(t);return new dF(n)}),e.resolve("SubsiteService")}function hF(){const{t:e}=ZC(),{open:t,close:n}=Wt(),{isMe:s}=Ye(),{setSubscriptionNotificationState:i,unsubscribeFromSubscriptions:o}=Nr(),r=fF(),a=[{label:e("subsite.subscriptionsEtc.unsubscribeTopics"),action:async()=>await d("topics",e("subsite.subscriptionsEtc.confirm.topicsTitle"))},{label:e("subsite.subscriptionsEtc.unsubscribeNotifications"),action:async()=>await d("notifications",e("subsite.subscriptionsEtc.confirm.notificationsTitle"))},{label:e("subsite.subscriptionsEtc.unsubscribeUsers"),action:async()=>await d("users",e("subsite.subscriptionsEtc.confirm.usersTitle"))},{label:e("subsite.subscriptionsEtc.unsubscribeAll"),action:async()=>await d("all",e("subsite.subscriptionsEtc.confirm.allTitle"))}];function l(h){const p=s(h);t(w0,{getter:async m=>await c(h,m),cleaner:u,onItemSelect:n,hasSubscription:p,emptyText:e("subsite.subscriptionsEmpty")},{title:e("subsite.subscriptions"),etc:p?a:void 0})}async function c(h,p=!1){return await r.getSubscriptions(h,{isFromStart:p})}function u(){r.clearSubscriptions()}async function d(h,p){await ld(50),window.confirm(`${p} 120${e("subsite.subscriptionsEtc.confirm.message")}`)&&await o(h)}return{showSubscriptions:l}}const pF={subscribeButton:{subscribe:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑаÑÑÑÑ"}},unsubscribe:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ"}}},subscriptions:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑки"}},subscriptionsEmpty:{t:0,b:{t:2,i:[{t:3}],s:"У Ð²Ð°Ñ Ð¿Ð¾ÐºÐ° Ð½ÐµÑ Ð¿Ð¾Ð´Ð¿Ð¸Ñок"}},subscriptionsEtc:{unsubscribeAll:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ Ð¾Ñ Ð²Ñего"}},unsubscribeTopics:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ Ð¾Ñ Ñем"}},unsubscribeNotifications:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑклÑÑиÑÑ ÑведомлениÑ"}},unsubscribeUsers:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ Ð¾Ñ Ð±Ð»Ð¾Ð³Ð¾Ð²"}},confirm:{allTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ Ð¾Ñ Ð²ÑÐµÑ Ð±Ð»Ð¾Ð³Ð¾Ð² и Ñем?"}},topicsTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ Ð¾Ñ Ð²ÑÐµÑ Ñем?"}},notificationsTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑклÑÑиÑÑ ÑведомлениÑ?"}},usersTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпиÑаÑÑÑÑ Ð¾Ñ Ð²ÑÐµÑ Ð±Ð»Ð¾Ð³Ð¾Ð²?"}},message:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑо дейÑÑвие нелÑÐ·Ñ Ð¾ÑмениÑÑ."}}}}},mF=Object.freeze(Object.defineProperty({__proto__:null,ru:pF},Symbol.toStringTag,{value:"Module"})),vF=[{path:`/:nickname((?!${zP.source}\\)${zv(uv)}
120)?/collectibles`,name:"Collectibles",component:async()=>await Ce(()=>import("./Collectibles-uye5rAz6.js"),__vite__mapDeps([50,51])),props:e=>({nickname:e.params.nickname}),meta:{refererId:$e.Collection}}],ng="data-user-showcase-item-key",sg="data-user-showcase-item-context",ll="pick",gF={title:{t:0,b:{t:2,i:[{t:3}],s:"ÐодпиÑка Pro"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐополниÑелÑнÑе пÑеимÑÑеÑÑва Ð´Ð»Ñ Ð²Ð°Ñего бизнеÑа"}},levels:{default:{t:0,b:{t:2,i:[{t:3}],s:"Pro"}},max:{t:0,b:{t:2,i:[{t:3}],s:"Pro Max"}}},features:{feeds:{title:{t:0,b:{t:2,i:[{t:3,v:"ÐиÑÑÑибÑÑÐ¸Ñ Ð½Ð° "},{t:4,k:"appName"}]}}},seo:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐндекÑаÑÐ¸Ñ Ð¿Ð¾Ð¸ÑковÑми ÑиÑÑемами"}}},badge:{title:{t:0,b:{t:2,i:[{t:3}],s:"ЧÑÑÐ½Ð°Ñ Ð³Ð°Ð»Ð¾Ñка Ñ Ð±Ð»Ð¾Ð³Ð°"}}},shortUrl:{title:{t:0,b:{t:2,i:[{t:3,v:"ÐоÑоÑкий адÑÐµÑ ("},{t:4,k:"domain"},{t:3,v:"/krasivo)"}]}}},boost:{title:{t:0,b:{t:2,i:[{t:3}],s:"10 000+ дополниÑелÑнÑÑ
показов"}}},metrika:{title:{t:0,b:{t:2,i:[{t:3}],s:"«ЯндекÑ.ÐеÑÑика»"}}},buttonTool:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐликабелÑнÑе кнопки в поÑÑаÑ
"}}}},telegramBot:{t:0,b:{t:2,i:[{t:3}],s:"Telegram-Ð±Ð¾Ñ Ð´Ð»Ñ Ð¿Ð¾ÐºÑпки"}}},bF=Object.freeze(Object.defineProperty({__proto__:null,ru:gF},Symbol.toStringTag,{value:"Module"})),yF=yt(zt(()=>{const e=q('{ "tgBotName":"vcruPro_bot", "levels":{ "default":{ "pricesPerMonth":{ "1":39900, "3":110700, "6":209400, "12":394800 }, "defaultPeriod":12, "entryPoints":{ "Direct Link":{ "start":"link_4slqKpTAyw" }, "Badge":{ "start":"link_bjHA4j1Jvu" }, "Pro Limits":{ "start":"link_18EUEbha4S" }, "Account":{ "start":"link_Cu8HPVAleN" }, "Settings":{ "start":"link_yvmDvQ5Cqu" }, "Every N Session":{ "start":"link_roNKZtkQha" }, "Editor Limit":{ "start":"link_vGWkmRt50A" }, "Pro Rotation":{ "start":"link_R7RU4LCKjb" } } }, "max":{ "pricesPerMonth":{ "1":69900, "3":194700, "6":365400, "12":682800 }, "defaultPeriod":12, "entryPoints":{ "Direct Link":{ "start":"link_2az273NRd1" }, "Badge":{ "start":"link_PpTQTuL5cF" }, "Pro Limits":{ "start":"link_nbvRtVjjjS" }, "Account":{ "start":"link_bAA5kMWyZ8" }, "Settings":{ "start":"link_qno5vzLAd8" }, "Every N Session":{ "start":"link_kmzuJ9JDeY" }, "Editor Limit":{ "start":"link_cKwbWaKKMc" }, "Pro Rotation":{ "start":"link_vHz1EcWlsK" } } } }, "isCustomMetrikaEnabled":true, "isButtonToolEnabled":true, "isPostBoostEnabledForAll":true, "isBoostFeaturePromoted":true}')?JSON.parse('{ "tgBotName":"vcruPro_bot", "levels":{ "default":{ "pricesPerMonth":{ "1":39900, "3":110700, "6":209400, "12":394800 }, "defaultPeriod":12, "entryPoints":{ "Direct Link":{ "start":"link_4slqKpTAyw" }, "Badge":{ "start":"link_bjHA4j1Jvu" }, "Pro Limits":{ "start":"link_18EUEbha4S" }, "Account":{ "start":"link_Cu8HPVAleN" }, "Settings":{ "start":"link_yvmDvQ5Cqu" }, "Every N Session":{ "start":"link_roNKZtkQha" }, "Editor Limit":{ "start":"link_vGWkmRt50A" }, "Pro Rotation":{ "start":"link_R7RU4LCKjb" } } }, "max":{ "pricesPerMonth":{ "1":69900, "3":194700, "6":365400, "12":682800 }, "defaultPeriod":12, "entryPoints":{ "Direct Link":{ "start":"link_2az273NRd1" }, "Badge":{ "start":"link_PpTQTuL5cF" }, "Pro Limits":{ "start":"link_nbvRtVjjjS" }, "Account":{ "start":"link_bAA5kMWyZ8" }, "Settings":{ "start":"link_qno5vzLAd8" }, "Every N Session":{ "start":"link_kmzuJ9JDeY" }, "Editor Limit":{ "start":"link_cKwbWaKKMc" }, "Pro Rotation":{ "start":"link_vHz1EcWlsK" } } } }, "isCustomMetrikaEnabled":true, "isButtonToolEnabled":true, "isPostBoostEnabledForAll":true, "isBoostFeaturePromoted":true}'):null;if(e===null)return;const t=`tg://resolve?domain=${e.tgBotName}`;return{levels:e.levels,tgBotName:e.tgBotName,managementUrl:t,isCustomMetrikaEnabled:e.isCustomMetrikaEnabled??!1,isButtonToolEnabled:e.isButtonToolEnabled??!1,isPostBoostEnabledForAll:e.isPostBoostEnabledForAll??!1,isBoostFeaturePromoted:e.isBoostFeaturePromoted??!1}}));var Fr=(e=>(e.DirectLink="Direct Link",e.Badge="Badge",e.Limits="Pro Limits",e.Account="Account",e.AccountSettings="Settings",e.EveryNSession="Every N Session",e.NicknameChange="Nickname Change",e.EditorLimit="Editor Limit",e.ProRotation="Pro Rotation",e))(Fr||{}),wF=(e=>(e.Default="default",e.Max="max",e))(wF||{});function _F(e){return q(e)&&Object.values(Fr).includes(e)}function kF(e){return _F(e)?e:void 0}const SF=[{path:"/pro/buy/:source?",name:"BuyPro",component:async()=>await Ce(()=>import("./Landing-DezMa25t.js"),__vite__mapDeps([52,27,53])),redirect:e=>`?modal=pro${q(e.params.source)?`&source=${e.params.source}`:""}`,meta:{modalClasses:["modal-window--pro"],refererId:$e.Pro,modalFit:"cover"},props:e=>({source:kF(e.query.source)})}],of=Un(yF),CF=Object.freeze(Object.defineProperty({__proto__:null,ProEntryPoint:Fr,messages:bF,routes:SF,useProSubscription:of},Symbol.toStringTag,{value:"Module"})),EF={giftPlus:{t:0,b:{t:2,i:[{t:3}],s:"ÐодаÑиÑÑ Plus"}},sendGift:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавиÑÑ Ð¿Ð¾Ð´Ð°Ñок"}},forName:{t:0,b:{t:2,i:[{t:3,v:"Ð´Ð»Ñ "},{t:4,k:"name"}]}},sendAnonymously:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавиÑÑ Ð°Ð½Ð¾Ð½Ð¸Ð¼Ð½Ð¾"}}
120,giftDescription:{t:0,b:{t:2,i:[{t:3,v:"Ðа "},{t:4,k:"appName"},{t:3,v:" вÑпÑÑено "},{t:4,k:"value"},{t:3,v:". "},{t:4,k:"name"},{t:3,v:" ÑÑÐ°Ð½ÐµÑ Ð¾Ð±Ð»Ð°Ð´Ð°Ñелем одной из ниÑ
."}]}},suchGifts:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑакиÑ
нагÑад"},{t:2,i:[{t:3}],s:"ÑÐ°ÐºÐ°Ñ Ð½Ð°Ð³Ñада"},{t:2,i:[{t:3}],s:"ÑакиÑ
нагÑадÑ"},{t:2,i:[{t:3}],s:"ÑакиÑ
нагÑад"}]}},purchaseSuccess:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¿Ð¾Ð´Ð°Ñили нагÑадÑ"}},owners:{t:0,b:{t:2,i:[{t:3}],s:"ÐладелÑÑÑ"}},ownersPlural:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"владелÑÑев"},{t:2,i:[{t:3}],s:"владелеÑ"},{t:2,i:[{t:3}],s:"владелÑÑа"},{t:2,i:[{t:3}],s:"владелÑÑев"}]}},toMyCollection:{t:0,b:{t:2,i:[{t:3}],s:"Рмоей коллекÑии"}},errors:{GIFT_TYPE_SOLD_OUT:{t:0,b:{t:2,i:[{t:3}],s:"ÐагÑада ÑаÑпÑодана"}},TOO_MANY_CALLS:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑобÑйÑе ÑеÑез паÑÑ Ð¼Ð¸Ð½ÑÑ"}}},pinned:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°ÐºÑепили подаÑок"}},unpinned:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¾ÑкÑепили подаÑок"}}},xF=Object.freeze(Object.defineProperty({__proto__:null,ru:EF},Symbol.toStringTag,{value:"Module"}));function TF(){const{open:e}=Wt(),{isMe:t}=Ye();function n(s){return s.type!==_t.Blog?!1:!t(s.id)&&s.isPlusGiftEnabled!==!1}return{isCanProceedToGifting:n,proceedToGiftsList:async(s,i={})=>{const{default:o}=await Ce(async()=>{const{default:r}=await import("./GiftsLanding-7E-pYpgR.js");return{default:r}},__vite__mapDeps([54,55]));e(o,{user:s,source:i.source,context:i.context},{classes:["modal-window--fancy"],fit:"stretch"})},proceedToGiftPurchase:async(s,i)=>{const{default:o}=await Ce(async()=>{const{default:r}=await import("./GiftPurchase-DTle5D0I.js");return{default:r}},__vite__mapDeps([56,57,58,59,60]));e(o,{data:s,user:i.user,context:i.context},{classes:["modal-window--fancy"],fit:"stretch"})}}}const _0="gift purchased";class AF extends di{constructor(t){super(_0,{recipientUserId:t})}}class PF{constructor(t,n){this.repository=t,this.eventBus=n}async getItems(t){return await this.repository.getItems(t)}async getItemsOwnedByUser(t,n){return await this.repository.getItemsOwnedByUser(t,n)}async getOwnersByGiftCode(t,n){return await this.repository.getOwnersByGiftCode(t,n)}async getPaymentOptions(t,n){return await this.repository.getPaymentOptions(t,n)}finishPurchase(t){var n;(n=this.eventBus)==null||n.dispatchEvent(new AF(t))}async getOwnedGiftById(t){return await this.repository.getOwnedGiftById(t)}}class RF extends Ks{constructor(t,n){super(),this.transport=t,this.createStore=n}async getItems(t){return await this.store.globalGifts.resolve(async n=>await this.transport.get("gifts",n,{apiVersion:"v2.10"}),t),this.store.globalGifts.api}async getItemsOwnedByUser(t,n){const{value:s}=Ea(t.toString());return await this.store.ownedGifts.resolve(async i=>await this.transport.get(`gifts/user/${s}`,i,{apiVersion:"v2.10"}),n),this.store.ownedGifts.api}async getOwnersByGiftCode(t,n){return await this.store.owners.resolve(async s=>await this.transport.get(`gifts/owners/${t}`,s,{apiVersion:"v2.10"}),n),this.store.owners.api}async getPaymentOptions(t,n){return await this.transport.get("gifts/payment-widget",{...n.context,...n.analytics,giftTypeId:t,recipientUserId:n.recipientUserId,isAnonymous:n.isAnonymous??!1},{auth:"strict",apiVersion:"v2.10"})}async getOwnedGiftById(t){const n=this.store.ownedGiftsById.get(t);if(n)return n;const{data:s}=await this.transport.get(`collectibles/gift/${t}`,void 0,{apiVersion:"v2.10"});return this.store.ownedGiftsById.put(t,s),s}}function IF(){return{globalGifts:new Tn,ownedGifts:new Tn,owners:new Tn,ownedGiftsById:new Ql(10)}}function eE(){const e=pt();return e.isRegistered("GiftsService")||e.register("GiftsService",()=>{const{transport:t,eventBus:n}=e.resolve("ModuleInitOptions"),s=new RF(t,IF);return new PF(s,n)}),e.resolve("GiftsService")}const MF=()=>ft();function $F(e){const t=eE(),n=P(),s=C(()=>ce(e)),{t:i}=MF(),{throwError:o}=Lr(),r=Or(async c=>{var u;if(q(s.value)){const d=await t.getItemsOwnedByUser(s.value,c);return n.value=(u=d.meta)==null?void 0:u.userName,{items:d.items.map(a),clear:d.clear}}else{const d=await t.getItems(c);return{items:d.items.map(l),clear:d.clear}}},{onError:c=>{c instanceof Zl&&o(c)}});function a(c){return{...c.giftType,descriptionShort:q(c.fromUser.id)?`${i("common.from")} @${sn({id:c.fromUser.id,nickname:c.fromUser.nickname})}`:`${i("common.from")} ${i("common.fromAnon")}`,ownershipData:{id:c.id,fromUser:c.fromUser,dateGifted:c.dateGifted,shareImage:c.shareImage,userId:c.userId,isPinned:c.isPinned}}}function l(c){return{...c,descriptionShort:c.counters.current===0?i("common.soldOut"):i("common.countOfTotal",{count:Zt(c.counters.current),total:Zt(c.counters.total)}),descriptionColor:c.counters.current===0?"var(--theme-color-signal-negative-default)":void 0}}return be(s,async()=>{r.reset(),await r.loadInitial()}),je(async()=>{await r.loadInitial()}),et(()=>{r.reset()}),{gifts:r,ownerName:n}}const LF=yt(e=>{const t=eE(),{open:n,close:s}=Wt();async function i(o,r,a){const{default:l}=await Ce(async()=>{const{default:u}=await import("./Gift-CocUeEmf.js");return{default:u}},__vite__mapDeps([61,57,58,62,59,63])),c={...e,...a};n(l,{data:o,ownershipData:r,isAllowShare:ce(c==null?void 0:c.share)===!0,isAllowCollectionNavigation:ce(c==null?void 0:c.fromNotification)===!0,caption:ce(c==null?void 0:c.caption),onClose:()=>{s()},onPin:u=>{var d;r!==void 0&&((d=c.onPin)==null||d.call(c,r.id,u))}})}return{show:i,async showById(o,r){const a=await t.getOwnedGiftById(o),l=a.userId!==void 0?sn({id:a.userId,nickname:a.userNickname}):void 0;await i(a.giftType,a,{caption:l,...r})}}}),OF={class:"gift-icon-animated"},BF=J({__name:"GiftIconAnimated",setup(e){const{animationContainerRef:t,isRunning:n,stop:s}
120=YS();function i(o){}return et(()=>{s()}),(o,r)=>Ie((_(),T("div",OF,[f(n)?D("",!0):(_(),L(f(Re),{key:0,name:"gift",width:20,height:20})),O("div",{ref_key:"animationContainerRef",ref:t,class:"gift-icon-animated__animation"},null,512)])),[[f(FS),i]])}}),yh=ot(BF,[["__scopeId","data-v-83f691ec"]]),vd=Un(TF),DF=Un($F),Ap=Un(LF),NF=Object.freeze(Object.defineProperty({__proto__:null,GIFT_PURCHASED_EVENT_NAME:_0,GiftIconAnimated:yh,messages:xF,useGiftView:Ap,useGiftsList:DF,useGiftsNavigation:vd},Symbol.toStringTag,{value:"Module"})),FF={title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑивки"}},my:{t:0,b:{t:2,i:[{t:3}],s:"Ðои аÑивки"}},all:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑе аÑивки"}},single:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑивка"}},toMy:{t:0,b:{t:2,i:[{t:3}],s:"Рмоим аÑивкам"}},pinned:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð·Ð°ÐºÑепили аÑивкÑ"}},unpinned:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð¾ÑкÑепили аÑивкÑ"}}},UF=Object.freeze(Object.defineProperty({__proto__:null,ru:FF},Symbol.toStringTag,{value:"Module"}));class HF extends Ks{constructor(t,n){super(),this.transport=t,this.createStore=n}async getAchievements(t){return await this.store.achievements.resolve(async n=>await this.transport.get("achievements",n),t)}async getAchievementsByUser(t,n){const{value:s}=Ea(t.toString());return await this.store.achievements.resolve(async i=>await this.transport.get(`achievements/user/${s}`,i,{auth:"probe"}),n)}getShareImageUrlByAchievementId(t){return`https://api.vc.ru/v2.9/achievements/share/${t}`}async getAchievementById(t){const n=this.store.ownedAchievementsById.get(t);if(n)return n;const{data:s}=await this.transport.get(`collectibles/achievement/${t}`);return this.store.ownedAchievementsById.put(t,s),s}}class VF{constructor(t){this.repository=t}async getAchievements(t){return await this.repository.getAchievements(t)}async getAchievementsByUser(t,n){return await this.repository.getAchievementsByUser(t,n)}getShareImageUrlByAchievementId(t){return this.repository.getShareImageUrlByAchievementId(t)}async getAchievementById(t){return await this.repository.getAchievementById(t)}}function zF(){return{achievements:new Tn,ownedAchievementsById:new Ql(10)}}function tE(){const e=pt();return e.isRegistered("AchievementsService")||e.register("AchievementsService",()=>{const{transport:t}=e.resolve("ModuleInitOptions"),n=new HF(t,zF);return new VF(n)}),e.resolve("AchievementsService")}function WF(e){const t=tE(),{open:n,close:s}=Wt();async function i(o,r){const{default:a}=await Ce(async()=>{const{default:u}=await import("./Achievement-CkFUj4WS.js");return{default:u}},__vite__mapDeps([64,57,58,62,65])),l={...e,...r},c=ce(l==null?void 0:l.share)===!0?()=>{if(o.id===void 0)return;const u=t.getShareImageUrlByAchievementId(o.id);vi(u,"_blank")}:void 0;n(a,{modelUrl:o.formats.glb,modelViewData:o.viewData,previewImage:xn({uuid:o.previewUuid,color:"transparent",width:256,height:256}),title:o.title,description:o.description,share:c,external:ce(l==null?void 0:l.fromNotification)===!0,caption:ce(l==null?void 0:l.caption),ownershipData:{id:o.id,userId:o.userId,isPinned:o.isPinned},onClose:()=>{s()},onPin:u=>{var d;o.id!==void 0&&((d=l.onPin)==null||d.call(l,o.id,u))}})}return{show:i,async showById(o,r){const a=await t.getAchievementById(o),l=a.userId!==void 0?sn({id:a.userId,nickname:a.userNickname}):void 0;await i(a,{caption:l,...r})}}}function jF(e){const t=tE(),n=P(),s=C(()=>ce(e)),{throwError:i}=Lr(),o=Or(async r=>{var l;const a=q(s.value)?await t.getAchievementsByUser(s.value,r):await t.getAchievements(r);return n.value=Array.isArray(a)||(l=a.meta)==null?void 0:l.userName,Array.isArray(a)?a:a.items},{onError:r=>{r instanceof Zl&&i(r)}});return be(s,async()=>{n.value=void 0,o.reset(),await o.loadInitial()}),je(async()=>{await o.loadInitial()}),{achievements:o,ownerName:n}}const GF=[{path:"/achievement",name:"Achievement",component:async()=>await Ce(()=>import("./Achievement-CXHhd8iY.js"),__vite__mapDeps([66,57,58,67])),props:e=>{const{modelUrl:t,modelCaption:n,modelSize:s,modelViewData:i,canvasSize:o,previewUuid:r}=e.query;return{modelUrl:typeof t=="string"?t:void 0,modelCaption:typeof n=="string"?n:void 0,previewUuid:typeof r=="string"?r:void 0,modelViewData:typeof i=="string"?JSON.parse(i):void 0,modelSize:typeof s=="string"?ol(s):void 0,canvasSize:typeof o=="str
120ing"?ol(o):void 0}},meta:{pageLayout:"blank"}}],Pp=Un(WF),qF=Un(jF),KF=Object.freeze(Object.defineProperty({__proto__:null,messages:UF,routes:GF,useAchievement:Pp,useAchievementsList:qF},Symbol.toStringTag,{value:"Module"}));var xs=(e=>(e.BadgePlus="badge:plus",e.BadgePro="badge:pro",e.BadgeVerified="badge:verified",e.Achievement="collectible:achievement",e.Gift="collectible:gift",e))(xs||{});function YF(e){return e===xs.BadgePlus||e===xs.BadgePro||e===xs.Achievement||e===xs.Gift}function Zw(e=""){const t=ol(e);if(t===0)throw new Error("Invalid collectible id");return t}const XF=yt(zt(()=>{const e=ct(),{showById:t}=Ap(),{showById:n}=Pp(),{showBadgePicker:s,showCollectiblePicker:i}=WC();function o(u,d){if(d){s==null||s(u);return}e.push({name:"Plus",params:{source:Ln.Badge}})}function r(){e.push({name:"BuyPro",params:{source:Fr.Badge}})}function a(u,d){if(d===ll){i==null||i(u);return}n==null||n(Zw(d))}function l(u,d){if(d===ll){i==null||i(u);return}t==null||t(Zw(d))}function c(u,d,h=""){switch(d){case xs.BadgePlus:o(u,h===ll);break;case xs.BadgePro:r();break;case xs.Achievement:a(u,h);break;case xs.Gift:l(u,h);break}}Be(document,"click",u=>{const d=u.target,h=d==null?void 0:d.getAttribute(ng),p=(d==null?void 0:d.getAttribute(sg))??void 0;d===null||!YF(h)||(u.stopPropagation(),u.preventDefault(),c(d,h,p))})}),()=>({})),QF={class:"user-showcase"},JF=["width","height","src","srcset","title"],ZF=18,Ua=J({__name:"UserShowcase",props:{ownerId:{},badgeId:{},collectible:{},badgeGtm:{},size:{}},setup(e){const t=e,n=C(()=>t.size??ZF),s=C(()=>({width:n.value,height:n.value,format:"png"})),{getAssetsByKey:i}=Fa(),{user:o,isMe:r}=Ye();XF();const a=C(()=>{var h;return r(t.ownerId)?(h=o.value)==null?void 0:h.badgeId:t.badgeId}),l=C(()=>{var h;return r(t.ownerId)?(h=o.value)==null?void 0:h.favoriteCollectible:t.collectible}),c=C(()=>{const h=i("badges").find(p=>p.id===a.value)??void 0;if(h!==void 0)return h.type==="verified"?{srcset:rl({...s.value,uuid:h.staticUuid})}:{type:h.type==="pro"?xs.BadgePro:xs.BadgePlus,srcset:rl({...s.value,uuid:h.staticUuid}),typeContext:r(t.ownerId)?ll:void 0,gtm:t.badgeGtm}}),u=C(()=>{if(l.value!==void 0)return l.value===null?r(t.ownerId)?{type:xs.Achievement,typeContext:ll}:void 0:{type:l.value.type==="achievement"?xs.Achievement:xs.Gift,srcset:rl({...s.value,uuid:l.value.data.previewUuid}),typeContext:r(t.ownerId)?ll:l.value.data.id,title:l.value.data.title}}),d=C(()=>[c.value,u.value].filter(h=>h!==void 0));return(h,p)=>{const m=An("gtm");return _(),T("div",QF,[(_(!0),T(ye,null,We(d.value,v=>(_(),T("div",{key:v.type,class:Z(["user-showcase__item",v.type===void 0?"user-showcase__item--disabled":void 0])},[A(f(Tt),null,{default:K(()=>[Ve(h.$slots,"item",{item:v,attrs:{[f(ng)]:v.type,[f(sg)]:v.typeContext}},()=>[v.srcset?Ie((_(),T("img",Oh({key:0,loading:"lazy",width:n.value,height:n.value,src:v.srcset.common.x1,srcset:`${v.srcset.common.x1}, ${v.srcset.common.x2} 2x`,title:v.title,[f(ng)||""]:v.type,[f(sg)||""]:v.typeContext}),null,16,JF)),[[m,v.gtm]]):D("",!0)])]),_:2},1024)],2))),128))])}}}),e9={class:"author__main"},t9={class:"author__details"},Ha=J({__name:"Author",props:{name:{},avatar:{},id:{default:void 0},url:{default:void 0},badgeId:{default:null},favoriteCollectible:{},isAllowVideoAvatar:{type:Boolean,default:!1},avatarSticker:{default:void 0},avatarSize:{default:40},location:{default:void 0},subLocation:{default:void 0},isOnline:{type:Boolean,default:!1},linkReferer:{default:void 0}},setup(e){Zi(a=>({v41cb4c68:`${a.avatarSize}px`}));const t=e,n=C(()=>t.url===void 0?void 0:typeof t.url=="string"&&t.url.startsWith("/")||typeof t.url=="object"?{component:Qe,componentProps:{to:t.url,referer:t.linkReferer}}:{component:"a",componentProps:{href:t.url,target:"_blank"}}),s=C(()=>{if(t.location===void 0)return;const a=[`${t.location} â Avatar â Click`,{}];return t.subLocation!==void 0&&(a[1].Location=t.subLocation),a}),i=C(()=>{if(t.location===void 0)return;const a=[`${t.location} â Author â Click`,{}];return t.subLocation!==void 0&&(a[1].Location=t.subLocation),a}),o=C(()=>{if(t.location===void 0)return;const a=[`${t.location} â Badge â Click`,{}];return t.subLocation!==void 0&&(a[1].Location=t.subLocation),t.badgeId!==void 0&&(a[1].Badge=t.badgeId),a}),r=C(()=>
120{if(t.location===void 0)return;const a=[`${t.location} â Topic â Click`,{FromSticker:!0}];return t.subLocation!==void 0&&(a[1].Location=t.subLocation),a});return(a,l)=>{var u,d;const c=An("gtm");return _(),T("div",{class:Z(["author",{"author--with-sticker":e.avatarSticker!==void 0}])},[Ie((_(),L(nn(n.value?n.value.component:"div"),St((u=n.value)==null?void 0:u.componentProps,{class:["author__avatar",e.isOnline&&"author__avatar--online"]}),{default:K(()=>[A(f(Jn),{source:e.avatar,size:e.avatarSize,isAllowVideo:e.isAllowVideoAvatar},null,8,["source","size","isAllowVideo"])]),_:1},16,["class"])),[[c,s.value]]),e.avatarSticker?Ie((_(),L(nn(e.avatarSticker.link?f(Qe):"div"),{key:0,class:"author__avatar-sticker",to:e.avatarSticker.link},{default:K(()=>[A(f(Jn),{source:e.avatarSticker.image,size:20,isAllowVideo:e.isAllowVideoAvatar},null,8,["source","isAllowVideo"])]),_:1},8,["to"])),[[c,r.value]]):D("",!0),O("div",e9,[Ie((_(),L(nn(n.value?n.value.component:"div"),St((d=n.value)==null?void 0:d.componentProps,{class:"author__name","preview-type":"subsite","preview-source":e.location}),{default:K(()=>[xe(Y(e.name),1)]),_:1},16,["preview-source"])),[[c,i.value]]),e.id!==void 0?(_(),L(Ua,{key:0,"owner-id":e.id,"badge-id":e.badgeId,collectible:e.favoriteCollectible,"badge-gtm":o.value},null,8,["owner-id","badge-id","collectible","badge-gtm"])):D("",!0),Ve(a.$slots,"main")]),O("div",t9,[Ve(a.$slots,"secondary")])],2)}}}),k0=yt(zt(()=>{const{getAssetsByKey:e}=Fa(),t=C(()=>e("badges"));return{badges:t,getBadgeById:n=>q(n)?t.value.find(s=>s.id===n):void 0}}),()=>({badges:C(()=>[]),getBadgeById:()=>{}})),n9={class:"user-list"},s9={key:0,class:"user-list__title"},i9={class:"user-list__list"},o9={key:0,class:"user-list__stub"},r9={class:"user-list-item__user"},a9={class:"user-list-item__name"},l9={class:"user-list-item__detail"},c9={class:"user-list-skeleton"},u9=J({__name:"UserList",props:{items:{},title:{},isLoading:{type:Boolean},isPresent:{type:Boolean},isEnded:{type:Boolean},stubText:{},loadMore:{type:Function}},setup(e){return(t,n)=>(_(),T("div",n9,[e.title?(_(),T("div",s9,Y(e.title),1)):D("",!0),O("div",i9,[e.isPresent?D("",!0):(_(),T("div",o9,Y(e.stubText),1)),A(f(Na),{items:e.items,"is-loading":e.isLoading&&e.items.length>0,"is-empty":e.isLoading&&e.items.length===0,"is-ended":e.isEnded,"virtual-scroll":{itemHeight:54},onEndReach:n[0]||(n[0]=s=>{var i;return(i=e.loadMore)==null?void 0:i.call(e)})},{item:K(({index:s,data:i,style:o})=>[(_(),L(nn(i.id===0?"div":f(Qe)),{class:"user-list-item",style:Ot(o),to:i.id===0?void 0:f(Aa)(i)},{default:K(()=>[A(f(Jn),{class:"user-list-item__avatar",size:40,source:i.avatar},null,8,["source"]),O("div",r9,[O("div",a9,Y(i.name),1),A(Ua,{size:22,"owner-id":i.id,"badge-id":i.badgeId,collectible:i.favoriteCollectible},null,8,["owner-id","badge-id","collectible"])]),O("div",l9,[Ve(t.$slots,"detail",{index:s,data:i})])]),_:2},1032,["style","to"]))]),skeleton:K(()=>[O("div",c9,[Ve(t.$slots,"skeleton",{},()=>[(_(),T(ye,null,We(3,s=>A(f(no),{key:s,schema:({circle:i,gapX:o,bar:r})=>[[[i("40px")],[o("10px")],[r("100px")]]]},null,8,["schema"])),64))])])]),_:3},8,["items","is-loading","is-empty","is-ended"])])]))}}),S0=Un(hF),d9=Object.freeze(Object.defineProperty({__proto__:null,Author:Ha,SubscribeButton:uc,SubsiteList:w0,UserList:u9,UserShowcase:Ua,composeSubsiteUrl:Aa,messages:mF,routes:vF,useBadges:k0,useSubsiteSubscribe:y0,useSubsiteSubscriptionsModal:S0},Symbol.toStringTag,{value:"Module"})),nE=()=>ft(),f9={class:"reaction-plus-restriction"},h9=J({__name:"Restriction",setup(e){const{t}=nE(),n=ct(),s={name:"Plus",params:{source:Ln.ReactionVoters}};return(i,o)=>(_(),T("div",f9,[O("p",null,[xe(Y(f(t)("reactions.restriction.text"))+" ",1),A(f(Qe),{to:f(s)},{default:K(()=>[xe(Y(f(t)("reactions.restriction.subscribers")),1)]),_:1},8,["to"])]),A(f(qe),{size:"s",rounded:"",onClick:o[0]||(o[0]=()=>void f(n).push(f(s)))},{default:K(()=>[xe(Y(f(t)("reactions.restriction.buy")),1)]),_:1})]))}}),p9=ot(h9,[["__scopeId","data-v-57e4dd5d"]]),e_=1;var In=(e=>(e.Emote="emote",e.Donation="donation",e))(In||{});function m9(e,t){const{getAssetsByKey:n}
120=Fa(),s=Us==null?void 0:Us(),{isPlusSubscriber:i}=Ye(),{open:o}=ys(),{isAppModuleEnabled:r}=Gs(),a=ct(),{reducedEffectsEnabled:l}=fb(),c=ii("(prefers-reduced-motion: reduce)"),u=bt(new Set),d=C(()=>ce(e)),h={[In.Emote]:{type:In.Emote,id:e_,count:0}},p=C(()=>{let k=[];return q(d.value.reactions)&&(k=d.value.reactions.counters.length>0?d.value.reactions.counters.map(y=>({...y,type:In.Emote})):[h[In.Emote]]),q(d.value.donations)&&k.unshift({type:In.Donation,id:"donate",count:d.value.donations.amount}),k}),m={[In.Donation]:{assets:()=>[{id:"donate",staticUuid:b0,animatedUuid:null,type:"",color:"#FAE04B",isExcludedFromPicker:d.value.author.isDonationsEnabled===!1}],active:()=>{var k;return((k=d.value.donations)==null?void 0:k.isDonated)===!0?"donate":void 0},handlers:{onSelect:()=>{var y,S,E;if(d.value.author.isDonationsEnabled===!1)return;const k=(E=(S=(y=ce(t))==null?void 0:y[In.Donation])==null?void 0:S.onSelect)==null?void 0:E.call(S);k!==void 0&&(s==null||s.openDonationModal(k.type,k.entryPoint))},onReactorsRequest:async(k,y)=>{var E,x,M;const S=await((M=(x=(E=ce(t))==null?void 0:E[In.Donation])==null?void 0:x.reactorsGetter)==null?void 0:M.call(x,y));if(S!==void 0)return{items:S.items.map(I=>({value:I.user.id,media:I.user.avatar,label:I.user.name,details:yn(I.amount),url:Aa(I.user)})),clear:S==null?void 0:S.clear}}}},[In.Emote]:{disabled:()=>u.has(In.Emote),assets:()=>n("reactions").map(k=>({...k,svgIconName:k.id===1?"reaction_like":void 0,isPlusSubscriptionRequired:k.type==="plus"&&!i.value&&r("plus")})),defaults:e_,active:()=>q(d.value.reactions)?d.value.reactions.reactionId:void 0,handlers:{onSelect:(k,y)=>{var E,x;if(y.isPlusSubscriptionRequired){a.push({name:"Plus",params:{source:Ln.Reactions}});return}const S=(x=(E=ce(t))==null?void 0:E[In.Emote])==null?void 0:x.onSelect;return S!==void 0&&w(In.Emote,()=>S(k)).catch(console.error),{animate:!y.isActive&&!l.value&&!c.value}},onBeforeReactorsRequest:k=>{if(!i.value&&r("plus")&&k.target instanceof HTMLElement)return o(p9,{},{target:k.target,behavior:"hover",width:240}),!1},onReactorsRequest:async(k,y)=>{var E,x,M;const S=await((M=(x=(E=ce(t))==null?void 0:E[In.Emote])==null?void 0:x.reactorsGetter)==null?void 0:M.call(x,k,y));if(S!==void 0)return{items:S.items.map(I=>({value:I.user.id,media:I.user.avatar,label:I.user.name,url:Aa(I.user)})),clear:S==null?void 0:S.clear}}}}},{state:v,picker:g,openReactionsPicker:b}=XC(p,m);async function w(k,y){if(!u.has(k)){u.add(k);try{await y()}finally{u.delete(k)}}}return{state:v,picker:g,openReactionsPicker:b}}const Fl=J({__name:"ReactionContext",props:{entity:{},donationType:{},handlers:{}},emits:["select"],setup(e,{emit:t}){const n=e,s=t,i=C(()=>{const l={[In.Emote]:{onSelect:async c=>{var u,d;s("select",In.Emote,c),await((d=(u=n.handlers)==null?void 0:u.toggleReaction)==null?void 0:d.call(u,n.entity.id,Number(c)))},reactorsGetter:async(c,u)=>{var d,h;return await((h=(d=n.handlers)==null?void 0:d.getReactors)==null?void 0:h.call(d,n.entity.id,Number(c),u))}}};return n.donationType!==void 0&&(l[In.Donation]={onSelect:()=>{if(n.donationType===void 0)throw new Error("Donation type is required");return s("select",In.Donation),{type:n.donationType,entryPoint:{entityId:Number(n.entity.id),entityRelatedUser:{id:n.entity.author.id,name:n.entity.author.name}}}},reactorsGetter:async c=>{var u,d;return await((d=(u=n.handlers)==null?void 0:u.getDonators)==null?void 0:d.call(u,n.entity.id,c))}}),l}),{state:o,picker:r,openReactionsPicker:a}=m9(()=>n.entity,i);return(l,c)=>Ve(l.$slots,"default",{state:f(o),picker:f(r),openPicker:f(a),reactionType:f(In)})}}),v9={class:"reactors-list__name"},C0=J({__name:"ReactorsList",props:{getter:{type:Function},onItemSelect:{type:Function}},setup(e){const t=e,{getAssetsByKey:n}=Fa(),s=C(()=>n("reactions")),{t:i}=nE(),o=Or(async({isFromStart:a})=>await t.getter(a)),r=mt("listContainer");return Be(r,"click",a=>{var c;a.composedPath().some(u=>"tagName"in u&&u.tagName==="A")&&((c=t.onItemSelect)==null||c.call(t))}),je(async()=>{await o.loadInitial()}),et(()=>{o.reset()}),(a,l)=>(_(),T("div",{ref_key:"listContainer",ref:r,class:"reactors-list"},[!f(o).isLoading&&f(o).items.length===0?(_(),L(f(qs),{key:0,text:f(i)("reactions.noReactionsYet"),"disable-icon":!0},null,8,["text"])):(_(),L(f(Na),{key:1,items:f(o).items,"is-loading":f(o).isLoading,"is-empty":f(o).isLoading&&f(o).items.length===0,"is-ended":f(o).isEnded,onEndReach:l[0]||(l[0]=c=>
120f(o).loadMore())},{item:K(({data:c})=>[A(f(Qe),{class:"reactors-list__item",to:f(Aa)(c.user)},{default:K(()=>{var u,d,h,p;return[A(f(Jn),{source:c.user.avatar,size:36,isAllowVideo:!1},null,8,["source"]),O("div",v9,Y(c.user.name),1),A(f(bp),{class:"reactors-list__icon",width:24,height:24,"static-uuid":((d=(u=s.value)==null?void 0:u.find(m=>m.id===c.reactionId))==null?void 0:d.staticUuid)??"","animated-uuid":(p=(h=s.value)==null?void 0:h.find(m=>m.id===c.reactionId))==null?void 0:p.animatedUuid},null,8,["static-uuid","animated-uuid"])]}),_:2},1032,["to"])]),_:1},8,["items","is-loading","is-empty","is-ended"]))],512))}}),g9=Un(XC),b9=Object.freeze(Object.defineProperty({__proto__:null,ReactionContext:Fl,ReactionsRow:Ep,ReactorsList:C0,messages:ON,useReactions:g9},Symbol.toStringTag,{value:"Module"}));function sE(){const{[Oe.Comments]:e}=vt(),{alert:t,AlertType:n}=fn(),{t:s,tf:i}=Ne(),{open:o,close:r}=Wt(),{recallAfterAuth:a}=ws(),{user:l,isPlusSubscriber:c}=Ye(),u=ct(),{confirm:d}=zb(),{isAppModuleEnabled:h}=Gs(),p=[{icon:"bookmark",label:s("entry.comments.etc.addToBookmarks"),handler:async({comment:E})=>{await v(E)},filter:E=>{var x;return((x=E==null?void 0:E.comment)==null?void 0:x.isFavorited)===!1}},{icon:"bookmark_active",label:s("entry.comments.etc.removeFromBookmarks"),handler:async({comment:E})=>{await g(E)},filter:E=>{var x;return((x=E==null?void 0:E.comment)==null?void 0:x.isFavorited)===!0}}
120,{icon:"flag",label:s("shared.etc.complain"),handler:async({comment:E})=>{await b(E.id)},filter:E=>{var x;return(E==null?void 0:E.comment.author.id)!==((x=l.value)==null?void 0:x.id)}},{icon:"like",label:s("shared.reactions.title"),handler:async E=>{if(h("plus")&&!c.value){await u.push({name:"Plus",params:{source:Ln.ReactionVoters}});return}o(C0,{getter:async x=>(await k(E.comment.id,void 0,{isFromStart:x})).items,onItemSelect:r},{title:s("shared.reactions.title")})}},{permission:YC.Remove,icon:"delete",label:s("entry.comments.etc.remove"),handler:async E=>{var x;try{await d({title:s("shared.etc.remove")}),await S(E.comment,{entryId:E.entryId,feedKey:E.feedKey,isRemovedByModerator:E.entryAuthorId!==((x=l.value)==null?void 0:x.id)}),t({type:n.Success,text:s("shared.done")})}catch{}}}],{getContextActions:m}=Cp(p,{requestPermissions:async({comment:E})=>await e.getPermissionsForCommentId(E.id)});async function v(E){await a(async()=>{const x=await Ro().getPayload();await e.toggleBookmark(E.id,!0,x),t({type:n.Success,text:s("entry.comments.alerts.addedToBookmarks")})})}async function g(E){await a(async()=>{const x=await Ro().getPayload();await e.toggleBookmark(E.id,!1,x),t({type:n.Success,text:s("entry.comments.alerts.removedFromBookmarks")})})}async function b(E,x=!0){return await new Promise(M=>{o(g0,{isShowSuccessAlert:x,submitHandler:async I=>{await a(async()=>await e.complain(E,I)),M(),r()}}
120,{title:s("shared.etc.complain")})})}async function w(E,x){try{const M=await Ro().getPayload();await a(async()=>await e.toggleReaction(E,x,M))}catch(M){if(M instanceof DOMException&&M.name==="AbortError")return;M instanceof Error&&t({type:n.Error,text:i(`shared.reactions.errors.${M.message}`,"shared.unknownError")})}}async function k(E,x,M){return await e.getReactorsList(E,x,M)}async function y(E,x){return await e.getDonatorsList(E,x)}async function S(E,x){await e.removeComment({id:E.id,isRemoveReplies:!1,...x})}return{getContextActions:m,toggleReaction:w,getReactors:k,getDonators:y}}class y9{constructor(t,n,s){this.coreRepository=t,this.fingerprintRepository=n,this.eventBus=s}get getFingerprint(){return this.fingerprintRepository.getFingerprint()}setFingerprint(t){return this.fingerprintRepository.setFingerprint(t)}getVisitsCountByKey(t){return this.coreRepository.getVisitsCountByKey(t)}clearVisitsCountByKey(t){this.coreRepository.clearVisitsCountByKey(t)}initSession(t){this.coreRepository.initSession(t)}getProbability(t){return this.coreRepository.getProbability(t)}getSidebarSectionsState(){return this.coreRepository.getSidebarSectionsState()}setSidebarSectionsState(t){this.coreRepository.setSidebarSectionsState(t)}acceptCookieConsent(){this.eventBus!==null&&this.eventBus.dispatchEvent(new q$)}}var gl,xh,bl,rf;class w9{constructor(){Fe(this,bl);Fe(this,gl,"fingerprint");Fe(this,xh,3600*24*30)}get(){return fe(this,bl,rf).get(fe(this,gl))}set(t){fe(this,bl,rf).set(fe(this,gl),t,{maxAge:fe(this,xh)})}remove(){fe(this,bl,rf).delete(fe(this,gl))}}gl=new WeakMap,xh=new WeakMap,bl=new WeakSet,rf=function(){return pt().resolve("CookieManager")};class _9{constructor(){le(this,"store");this.store=new w9}getFingerprint(){return this.store.get()}setFingerprint(t){this.store.set(t)}}var yl;class t_{constructor(){Fe(this,yl,"visits-count:")}getCountByKey(t){const n=localStorage.getItem(`${fe(this,yl)}${t}`)??"0";return parseInt(n,10)}clearCountByKey(t){localStorage.removeItem(`${fe(this,yl)}${t}`)}incrementCountByKey(t){const s=this.getCountByKey(t)+1;localStorage.setItem(`${fe(this,yl)}${t}`,s.toString())}}yl=new WeakMap;const n_="sidebar-desktop-sections-state";var Ia,ig,iE;class k9{constructor(){Fe(this,Ia)}get(){return Gt(this,Ia,iE).call(this,fe(this,Ia,ig).get(n_))}set(t){fe(this,Ia,ig).set(n_,JSON.stringify(t),{maxAge:"none"})}}Ia=new WeakSet,ig=function(){return pt().resolve("CookieManager")},iE=function(t){if(!t)return{};try{const n=JSON.parse(t);if(n&&typeof n=="object"&&!Array.isArray(n)){const s={};for(const[i,o]of Object.entries(n))typeof o=="boolean"&&(s[i]=o);return s}}catch{return{}}return{}};var Di,wl,Gu,og;class S9{constructor(t,n){Fe(this,Gu);Fe(this,Di);Fe(this,wl);this.transport=t,this.hydrationStore=n}getVisitsCountByKey(t){return fe(this,Di)===void 0&<(this,Di,new t_),fe(this,Di).incrementCountByKey(t),fe(this,Di).getCountByKey(t)}clearVisitsCountByKey(t){fe(this,Di)===void 0&<(this,Di,new t_),fe(this,Di).clearCountByKey(t)}initSession(t){this.transport.post("sessions",{referer:t},{apiVersion:"v2.6"})}getProbability(t){const n=this.hydrationStore.get("probabilites")??{};let s=n[t];return s===void 0&&(s=Q5(),n[t]=s,this.hydrationStore.set("probabilites",n)),s}getSidebarSectionsState(){return Gt(this,Gu,og).call(this).get()}setSidebarSectionsState(t){Gt(this,Gu,og).call(this).set(t)}}Di=new WeakMap,wl=new WeakMap,Gu=new WeakSet,og=function(){return fe(this,wl)===void 0&<(this,wl,new k9),fe(this,wl)};function C9({transport:e,hydrationStore:t,eventBus:n}){const s=new S9(e,t),i=new _9;return{core:new y9(s,i,n)}}class E9 extends kb{}class x9 extends np{constructor(t,n){var s;super(),this.feedRepository=t,this.eventBus=n,this.feedRepository.enableRealtimeUpdates(),(s=this.eventBus)==null||s.addEventListener(QS,i=>{this.onPostRemoved(i)})}async loadEntries(t,n,s){return await this.feedRepository.getEntries(t,n,s)}getTotal(t){return this.feedRepository.getTotal(t)}getIndexFeedSorting(t){return this.feedRepository.getIndexFeedSorting(t)}setIndexFeedSorting(t,n){this.feedRepository.setIndexFeedSorting(t,n)}anonymizeEntries(t,n){return this.feedRepository.anonymizeEntries(t,n)}onNewFeedEntry(t){this.feedRepository.onNewFeedEntry(t)}offNewFeedEntry(t){this.feedRepository.offNewFeedEntry(t)}onPostRemoved(t){this.feedRepository.removeEntry(t.detail.id),this.dispatchEvent(new E9("feed-post-removed",{id:t.detail.id},!0))}getFeedSeo(t){return this.feedRepository.getFeedSeo(t)}getFeedMeta(t){return this.feedRepository.getFeedMeta(t)}}var qu,ko,ha,_l,Ku,pa,kl;class Ms extends Tn{constructor(n,s){super();Fe(this,qu);Fe(this,ko);Fe(this,ha,[]);Fe(this,_l);le(this,"key","feed");Fe(this,Ku,{});Fe(this,pa,new Map);le(this,"apiVersion","v2.10");Fe(this,kl);lt(this,qu,n),lt(this,ko,s)}get type(){return fe(this,qu)}get options(){return fe(this,ko)}get total(){return fe(this,_l)}
120get urlParams(){const n={markdown:!1};return"sorting"in fe(this,ko)&&(n.sorting=fe(this,ko).sorting),this.cursor!==void 0&&(n.cursor=this.cursor),this.lastId!==void 0&&(n.lastId=this.lastId),this.lastSortingValue!==void 0&&(n.lastSortingValue=this.lastSortingValue),fe(this,ha).length>0&&(n.excludeIds=`[${fe(this,ha).toString()}]`),n}isShouldReset(n){return!No(fe(this,ko),n)}resetWithOptions(n){super.reset(),Jl(fe(this,ha)),fe(this,pa).clear(),lt(this,ko,n),lt(this,_l,void 0),lt(this,kl,void 0)}getUrl(){return`${this.urlPath}?${new URLSearchParams(this.urlParams).toString()}`}updatePaginationOptions({cursor:n,lastId:s,lastSortingValue:i,excludeIds:o=[],ids:r,total:a}){super.processChunk({items:r,cursor:n,lastId:s,lastSortingValue:i}),Sb(fe(this,ha),o),lt(this,_l,a)}removeEntryId(n){To(n,this.items),fe(this,pa).delete(n)}handleChunk(n){var i,o;const s=n.items.reduce((r,a)=>(a.meta!==void 0&&fe(this,pa).set(a.data.id,a.meta),r.push(a.data),r),[]);return this.updatePaginationOptions({cursor:n.cursor,lastId:n.lastId===void 0?(i=ai(s))==null?void 0:i.id:n.lastId,lastSortingValue:n.lastSortingValue===void 0?(o=ai(s))==null?void 0:o.date:n.lastSortingValue,excludeIds:n.excludeIds,total:n.total,ids:s.map(r=>r.id)}),lt(this,Ku,{title:n.ogTitle??void 0,description:n.ogDescription??void 0}),lt(this,kl,n.meta),s}get seo(){return fe(this,Ku)}getMetaById(n){return fe(this,pa).get(n)}get feedMeta(){return fe(this,kl)}}qu=new WeakMap,ko=new WeakMap,ha=new WeakMap,_l=new WeakMap,Ku=new WeakMap,pa=new WeakMap,kl=new WeakMap;class T9 extends Ms{constructor(){super(...arguments);le(this,"urlPath","timeline");le(this,"isCanBeAnonymized",!0)}get urlParams(){const n=super.urlParams;return n.subsitesIds=this.options.subsiteId,n}}var Th;class A9 extends Ms{constructor(){super(...arguments);Fe(this,Th,20);le(this,"urlPath","bookmarks");le(this,"isCanBeAnonymized",!1)}get urlParams(){return{markdown:!1,type:"posts",count:fe(this,Th),offset:this.items.length}}get isEnded(){return this.lastSortingValue===0}}Th=new WeakMap;class P9 extends Ms{constructor(){super(...arguments);le(this,"isCanBeAnonymized",!0)}get urlPath(){return this.options.contentId===void 0?"recommendations/interesting":"recommendations"}get urlParams(){const n=super.urlParams;return this.options.contentId!==void 0&&(n.contentId=this.options.contentId),this.options.previousPage!==void 0&&(n.previousPage=this.options.previousPage),n}}var Ah;class R9 extends Ms{constructor(){super(...arguments);Fe(this,Ah,20);le(this,"urlPath","new/posts/drafts");le(this,"isCanBeAnonymized",!1)}get urlParams(){return{markdown:!1,offset:this.items.length,limit:fe(this,Ah)}}}Ah=new WeakMap;class I9 extends Ms{constructor(){super(...arguments);le(this,"isCanBeAnonymized",!0)}get urlPath(){let n=`tag/${this.options.name}`;return this.lastId!==void 0&&this.lastId!==null&&this.lastId>0&&(n=`${n}/${this.lastId}`),n}get urlParams(){return{markdown:!1}}}class M9 extends Ms{constructor(){super(...arguments);le(this,"isCanBeAnonymized",!0);le(this,"urlPath","news");le(this,"key","news")}}class $9 extends Ms{constructor(){super(...arguments);le(this,"isCanBeAnonymized",!0)}get urlPath(){return`content/${this.options.contentId}/reposts`}}class L9 extends Ms{constructor(){super(...arguments);le(this,"urlPath","feed");le(this,"apiVersion","v2.10")}get isCanBeAnonymized(){return this.type!==Te.My}get urlParams(){const n=super.urlParams;return n.pageName=this.type,n.isWithoutNews=!0,n}}class O9 extends Ms{constructor(){super(...arguments);le(this,"isCanBeAnonymized",!0);le(this,"urlPath","search/posts")}get urlParams(){const n=super.urlParams;return n.q=this.options.q,this.options.title!==void 0&&(n.title=this.options.title),this.options.editorial!==void 0&&(n.editorial=this.options.editorial),this.options.strict!==void 0&&(n.strict=this.options.strict),this.options.sorting!==void 0&&(n.sorting=this.options.sorting),this.options.dateFrom!==void 0&&this.options.dateFrom!=="any"&&(n.dateFrom=at().subtract(1,this.options.dateFrom).unix()),n}}class B9 extends Ms{constructor(){super(...arguments);le(this,"isCanBeAnonymized",!0);le(this,"urlPath","search/posts")}
120get urlParams(){return{...super.urlParams,editorial:!0,sorting:"date"}}}class D9 extends Ms{constructor(){super(...arguments);le(this,"isCanBeAnonymized",!0);le(this,"urlPath","feed/games")}get urlParams(){return{...super.urlParams,games:!0,sorting:"date"}}}class N9 extends Ms{constructor(){super(...arguments);le(this,"isCanBeAnonymized",!0)}get urlPath(){return`finance/feed/${this.options.currency.toLowerCase()}`}}class F9 extends Ms{constructor(){super(...arguments);le(this,"urlPath","content/reacted");le(this,"isCanBeAnonymized",!1)}get urlParams(){return super.urlParams}get isEnded(){return this.lastSortingValue===0}}class U9 extends Ms{constructor(){super(...arguments);le(this,"isCanBeAnonymized",!0);le(this,"urlPath","feed/pro-max-blogs");le(this,"key","pro-max-blogs")}}var Ni,Yu,Sl;class H9{constructor(){Fe(this,Ni,new Map);Fe(this,Yu,Xn("index-feed-default-sortings:v2",{[Te.Popular]:void 0,[Te.New]:void 0,[Te.My]:void 0}));Fe(this,Sl,[])}getFeed(t,n){let s=fe(this,Ni).get(t);if(s===void 0){switch(t){case Te.Subsite:s=new T9(t,n);break;case Te.Bookmarks:s=new A9(t,{});break;case Te.Recommendations:s=new P9(t,n);break;case Te.Drafts:s=new R9(t,n);break;case Te.Hashtag:s=new I9(t,n);break;case Te.News:s=new M9(t,n);break;case Te.Reposts:s=new $9(t,n);break;case Te.Discovery:s=new O9(t,n);break;case Te.Editorial:s=new B9(t,n);break;case Te.Reacted:s=new F9(t,{});break;case Te.Finance:s=new N9(t,n);break;case Te.ProMaxBlogs:s=new U9(t,n);break;case Te.Games:s=new D9(t,n);break;default:s=new L9(t,n)}fe(this,Ni).set(t,s)}return s}getFeedTotal(t){var n;return(n=fe(this,Ni).get(t))==null?void 0:n.total}getFeedMeta(t){var n;return(n=fe(this,Ni).get(t))==null?void 0:n.feedMeta}getIndexFeedSorting(t){return fe(this,Yu).value[t]}setIndexFeedSorting(t,n){fe(this,Yu).value[t]=n}getAllPostIds(){const t=[];return fe(this,Ni).forEach(n=>{t.push(...n.items)}),t}addNewFeedEntry(t){fe(this,Sl).forEach(n=>{n(t)})}onNewFeedEntry(t){fe(this,Sl).push(t)}offNewFeedEntry(t){To(t,fe(this,Sl))}removeEntry(t){fe(this,Ni).forEach(n=>{n.removeEntryId(t)})}getFeedSeo(t){var n;return((n=fe(this,Ni).get(t))==null?void 0:n.seo)??{}}}Ni=new WeakMap,Yu=new WeakMap,Sl=new WeakMap;function yr(e,t,n,s=!0){const i=e.counters.find(o=>o.id===t);q(i)?(i.count=s?i.count+n:n,i.count===0&&To(i,e.counters)):n>0&&e.counters.push({id:t,count:n})}function oE(e,t){var o;const n=e.reactionId,s=as(e);n===0?(yr(s,t,1),s.reactionId=t):n===t?(yr(s,t,-1),s.reactionId=0):(yr(s,n,-1),yr(s,t,1),s.reactionId=t);const i=((o=s.counters.find(r=>r.id===t))==null?void 0:o.count)??0;return s.lastUserInteraction={from:{reactionId:n},to:{reactionId:t,count:i}},s}function rE(e,t,n,s){var r,a,l;if(((r=e.lastUserInteraction)==null?void 0:r.from.reactionId)===t&&((a=e.lastUserInteraction)==null?void 0:a.to.reactionId)===n&&((l=e.lastUserInteraction)==null?void 0:l.to.count)===s)return e;const o=as(e);return t===0?yr(o,n,s,!1):n===0?yr(o,t,s,!1):(yr(o,t,-1),yr(o,n,s,!1)),o}function V9(e,t){return Array.isArray(e)?{items:e.map(n=>"type"in n&&"data"in n?{type:n.type,data:n.data}:{type:"entry",data:n}),isAnonymized:t}:"news"in e?{items:e.news.map(n=>({type:"entry",data:n})),lastId:e.lastId,isAnonymized:t}:e.items.length>0&&!("data"in e.items[0])?{...e,items:e.items.map(n=>({type:"entry",data:n})),isAnonymized:t}:{...e,items:e.items.filter(n=>n.type==="entry"),isAnonymized:t}}function z9(e){return e<=5?"extrasmall":e<=10?"small":e<=15?"medium":"big"}var Cl;class W9{constructor(t,n,s,i){Fe(this,Cl);
120this.transport=t,this.realtimeTransport=n,this.hydrationStore=s,this.entriesStore=i}get store(){return fe(this,Cl)===void 0&<(this,Cl,new H9),fe(this,Cl)}async getEntries(t,n,{reset:s=!1,includeUserData:i=!1}={}){const o=this.store.getFeed(t,n);if((s||o.isShouldReset(n))&&o.resetWithOptions(n),o.isEnded)return this.entriesStore.getItemsByIds(o.items).map(c=>({data:c,meta:o.getMetaById(c.id)}));if(!i&&!o.isCanBeAnonymized)throw new Sp;const r=async()=>{this.transport.abort(o.key),pt().resolve("CookieManager").get("osnova-aid");const d=await this.transport.get(o.getUrl(),void 0,{apiVersion:o.apiVersion,auth:i?"probe":void 0,ssrReady:!i&&o.isCanBeAnonymized,abortToken:o.key,headers:void 0});return V9(d,!i)},a=i?await r():await this.hydrationStore.hydrate(`feed@${t}`,r),l=o.handleChunk(a);return this.entriesStore.addItems(l),"contentId"in n&&n.contentId!==void 0?this.entriesStore.clearExcept([n.contentId,...this.store.getAllPostIds()]):this.entriesStore.clearExcept(this.store.getAllPostIds()),this.entriesStore.getItemsByIds(o.items).map(c=>({data:c,meta:o.getMetaById(c.id)}))}getTotal(t){return this.store.getFeedTotal(t)}getIndexFeedSorting(t){return this.store.getIndexFeedSorting(t)}setIndexFeedSorting(t,n){this.store.setIndexFeedSorting(t,n)}anonymizeEntries(t,n){this.store.getFeed(t,n).items.forEach(i=>{this.entriesStore.anonymizeItemById(i)})}onNewFeedEntry(t){this.store.onNewFeedEntry(t)}offNewFeedEntry(t){this.store.offNewFeedEntry(t)}
120enableRealtimeUpdates(){if(this.realtimeTransport===null)return;const t=this.realtimeTransport.subscribe("api");t("new_entry_published",n=>{this.store.addNewFeedEntry({id:n.content_id,subsiteId:n.subsite_id})}),t("content voted",n=>{const s=this.entriesStore.getItemById(n.content_id);if(!q(s==null?void 0:s.reactions))return;const i=as(s.reactions),o=rE(i,n.fromReactionId,n.reactionId,n.reactionCount);this.entriesStore.updateEntryProperty(n.content_id,"reactions",{...i,...o})}),t("change_comment_count_for_content",({data:n})=>{const s=this.entriesStore.getItemById(n.content_id);s!==void 0&&this.entriesStore.updateEntryProperty(n.content_id,"counters",{...s.counters,comments:n.count})}),t("change_donation_amount_for_content",({data:n})=>{var i;const s=this.entriesStore.getItemById(n.post_id);s!==void 0&&this.entriesStore.updateEntryProperty(n.post_id,"donations",{amount:n.amount,isDonated:((i=s.donations)==null?void 0:i.isDonatedLocally)===!0})})}disableRealtimeUpdates(){var t;(t=this.realtimeTransport)==null||t.unsubscribe("api")}removeEntry(t){this.store.removeEntry(t)}getFeedSeo(t){return this.store.getFeedSeo(t)}getFeedMeta(t){return this.store.getFeedMeta(t)}}Cl=new WeakMap;class j9{constructor(t,n){var s;this.entryRepository=t,this.eventBus=n,(s=this.eventBus)==null||s.addEventListener(xp,({detail:i})=>{i.type===Rs.Post&&this.markEntryAsDonatedLocally(i.entityId)})}async getEntryWith(t,n=!1,s){try{return await this.entryRepository.getEntryById(t,n,s)}catch(i){throw i instanceof ec?new Vb(t):i}}async getPermissionsForEntryId(t){return await this.entryRepository.getPermissionsForEntryId(t)}async unpublishEntryById(t,n){return await this.entryRepository.unpublishEntryById(t,n)}async pin(t,n,s=!0){return await this.entryRepository.pin(t,n,s)}async removeEntryById(t){var s;const n=await this.entryRepository.removeEntryById(t);return n&&((s=this.eventBus)==null||s.dispatchEvent(new JS(t))),n}async toggleReaction(t,n,s){return await this.entryRepository.toggleReaction(t,n,s)}async toggleBoookmark(t,n,s){return await this.entryRepository.toggleBoookmark(t,n,s)}async getReactorsList(t,n,s){return await this.entryRepository.getReactorsList(t,n,s)}async getDonatorsList(t,n){return await this.entryRepository.getDonatorsList(t,n)}markEntryAsDonatedLocally(t){this.entryRepository.markEntryAsDonatedLocally(t)}async read(t){await this.entryRepository.read(t)}async complain(t,n,s){return await this.entryRepository.complain(t,n,s)}async toggleMute(t,n,s){return await this.entryRepository.toggleMute(t,n,s)}startWatchingViewsCounter(t){this.entryRepository.watchViewsCounterChange(t)}stopWatchingViewsCounter(t){this.entryRepository.unwatchViewsCounterChange(t)}getRandomEnryId(){return this.entryRepository.getRandomEntryId()}async searchHashtag(t){return await this.entryRepository.searchHashtag(t)}async hideFromFeeds(t,n){await this.entryRepository.hideFromFeeds(t,n),this.entryRepository.resetPermissionsForEntryId(t)}async saveShareForPostId(t,n){await this.entryRepository.saveShareForPostId(t,n)}holdPost(t){this.entryRepository.holdPost(t)}unholdPost(t){this.entryRepository.unholdPost(t)}async refreshPostSummaryById(t){return await this.entryRepository.refreshPostSummaryById(t)}async getBannedPostById(t){return await this.entryRepository.getBannedPostById(t)}async getCommentingPermissionForPostId(t){return await this.entryRepository.getCommentingPermissionForPostId(t)}async setCommentingPermissionForPostId(t,n){await this.entryRepository.setCommentingPermissionForPostId(t,n)}async resetCommentingPermissionForPostId(t){await this.entryRepository.resetCommentingPermissionForPostId(t)}async getStats(t){return await this.entryRepository.getStats(t)}}class G9{constructor(){le(this,"permissions",new Map)}set(t,n){return this.permissions.set(t,n),n}get(t){return this.permissions.get(t)}remove(t){this.permissions.delete(t)}}const $m=new G9;class q9{constructor(t,n,s,i){le(this,"reactorsStore");le(this,"donatorsStore");
120this.transport=t,this.realtimeTransport=n,this.hydrationStore=s,this.entriesStore=i}async getEntryById(t,n=!1,s){const i={id:t,markdown:!1};s!==void 0&&(i.draftAccessHash=s);const o=async()=>{const r=performance.now(),a=await this.transport.get("content",i,{apiVersion:"v2.10",auth:n?"probe":void 0,ssrReady:!n});if(performance.now()-r,a.withheld.includes("ru"))throw new $3;return a.isAnonymized=!n,a};return await this.entriesStore.resolveEntry(t,async()=>n?await o():await this.hydrationStore.hydrate(`entry@${t}`,o),n)}async getPermissionsForEntryId(t){const n=$m.get(t);if(n!==void 0)return n;const i=(await this.transport.get("content/etcControls",{id:t},{apiVersion:"v2.4",auth:"probe"})).etcControls;return $m.set(t,i),i}resetPermissionsForEntryId(t){$m.remove(t)}async unpublishEntryById(t,n){return(await this.transport.post(`content/unpublish/${t}`,{reason_text:n},{auth:"strict"})).result}async pin(t,n,s=!0){const i=await this.transport.post("content/pin",{content_id:s?t:0,subsite_id:n},{auth:"strict",apiVersion:"v2.4"});return this.entriesStore.updateEntryProperty(t,"isPinned",s),i.result}async removeEntryById(t){const n=await this.transport.delete(`content/${t}`,void 0,{auth:"strict",apiVersion:"v2.4"});return n.success&&this.entriesStore.remove(t),n.success}async toggleReaction(t,n,s){const i=this.entriesStore.getItemById(t);if(i===void 0)throw console.error(`Reaction: entry with id ${t} not found`),new Error("Entry not found");if(i.reactions===null)throw new Error(`Reactions are disabled for post with id ${t}`);const o=as(i.reactions),r=oE(o,n);try{const a=`reaction:${t}`;this.entriesStore.updateEntryProperty(t,"reactions",r),this.transport.abort(a);const l=await this.transport.post(`content/${t}/react`,{type:r.reactionId,...s},{auth:"strict",apiVersion:"v2.10",abortToken:a});this.entriesStore.updateEntryProperty(t,"reactions",l)}catch(a){if(a instanceof DOMException&&a.name==="AbortError")return;throw this.entriesStore.updateEntryProperty(t,"reactions",o),a}}async toggleBoookmark(t,n,s){const i=this.entriesStore.getItemById(t);if(i===void 0)throw console.error(`Bookmark: entry with id ${t} not found`),new Error("Entry not found");const o=i.isFavorited,r=i.counters.favorites,a=n?1:-1;try{i.isFavorited=n,i.counters.favorites=r+a;const l=n?"favorite":"unfavorite";await this.transport.post(l,{id:t,type:1,...s},{auth:"strict"})}catch(l){throw i.isFavorited=o,i.counters.favorites=r,l}}async getReactorsList(t,n,s){this.reactorsStore===void 0&&(this.reactorsStore=new Tn);const i=`reactions:${t}}`,o=100;return await this.reactorsStore.resolve(async r=>{this.transport.abort(i);const{reactions:a,lastSortingValue:l}=await this.transport.get(`content/${t}/reactions`,{...r,type:n,limit:o},{apiVersion:"v2.5",auth:"strict",abortToken:i});return{items:a,lastSortingValue:a.length<o?null:l}},s),this.reactorsStore.api}async getDonatorsList(t,n){this.donatorsStore===void 0&&(this.donatorsStore=new Tn);const s=`donations:${t}`,i=100;return await this.donatorsStore.resolve(async o=>{const{donations:r,cursor:a}=await this.transport.get(`content/${t}/donations`,{...o,limit:i},{apiVersion:"v2.5",abortToken:s});return{items:r,cursor:r.length<i?null:a}},n),this.donatorsStore.api}async read(t){await this.transport.post("content/read",{contentId:t},{apiVersion:"v2.4",auth:"probe"})}async complain(t,n,s){return(await this.transport.post("content/complaint",{content_id:t,reason_id:n,...s},{auth:"strict",apiVersion:"v2.4"})).result}async toggleMute(t,n,s){return(await this.transport.post("content/mute",{id:t,action:n?"mute":"unmute",...s},{auth:"strict",apiVersion:"v2.4"})).result}
120watchViewsCounterChange(t){if(this.realtimeTransport===null)return;this.realtimeTransport.subscribe(`content-hits-mobile-${t}`)("content viewed",s=>{this.entriesStore.updateEntryProperty(s.content_id,"hitsCount",s.value)})}unwatchViewsCounterChange(t){var n;(n=this.realtimeTransport)==null||n.unsubscribe(`content-hits-mobile-${t}`)}getRandomEntryId(){return this.entriesStore.getRandomId()}async searchHashtag(t){const n="entry:search:hashtag";return this.transport.abort(n),(await this.transport.get("search-hashtag",{q:t},{abortToken:n})).items}async hideFromFeeds(t,n){await this.transport.post(`content/hideFromFeed/${t}`,n,{apiVersion:"v2.6",auth:"strict"})}async saveShareForPostId(t,n){await this.transport.post(`content/${t}/shared`,n,{apiVersion:"v2.6",auth:"probe"})}markEntryAsDonatedLocally(t){const n=this.entriesStore.getItemById(t);!q(n)||!q(n.donations)||this.entriesStore.updateEntryProperty(t,"donations",{...n.donations,isDonatedLocally:!0})}holdPost(t){this.entriesStore.hold(t)}unholdPost(t){this.entriesStore.unhold(t)}async refreshPostSummaryById(t){const n=await this.transport.get(`summary-post/${t}`,void 0,{auth:"strict"});this.entriesStore.updateEntryProperty(t,"summaryContent",n.summaryContent.blocks)}async getBannedPostById(t){return await this.transport.get(`content/banned/${t}`,void 0,{auth:"strict"})}async getCommentingPermissionForPostId(t){const{permission:n}=await this.transport.get(`posts/${t}/comment-permission`,void 0,{auth:"strict"});return n}async setCommentingPermissionForPostId(t,n){await this.transport.post(`posts/${t}/comment-permission`,{commentingPermissions:n},{auth:"strict"})}async resetCommentingPermissionForPostId(t){await this.transport.delete(`posts/${t}/comment-permission`,void 0,{auth:"strict"})}async getStats(t){return await this.transport.get(`posts/${t}/stats`,void 0,{auth:"probe",apiVersion:"v2.12"})}}class K9{constructor(t,n){this.repository=t,this.eventBus=n}getBaseEntryData(){return this.repository.getBaseEntryData()}async getEditorData(t){return await this.repository.getEditorData(t)}async getSubsitesToWriteIn(t){return await this.repository.getSubsitesToWriteIn(t)}getSubsiteById(t){return this.repository.getSubsiteById(t)}async saveEntry(t,n){return await this.repository.saveEntry(t,n)}async publish(t,n){var s;await this.repository.publish(t,n),(s=this.eventBus)==null||s.dispatchEvent(new JS(t))}async getPostHistory(t){return await this.repository.getPostHistory(t)}async getPostVersion(t,n){return await this.repository.getPostVersion(t,n)}}function rg(e,t){return t.find(n=>n.value===e)}class Y9{constructor(){le(this,"foundSubsites",new Map);le(this,"foundSubsitesMaxSize",5)}storeSubsites(t,n){if(this.foundSubsites.set(this.getKey(n),t),this.foundSubsites.size>this.foundSubsitesMaxSize){const s=this.foundSubsites.keys().next().value;s!==void 0&&this.foundSubsites.delete(s)}}getSubsites(t){return this.foundSubsites.get(this.getKey(t))??[]}getSubsite(t){const n=[];return[...this.foundSubsites.values()].forEach(s=>{s.forEach(i=>{n.push(...i.items)})}),rg(t,n)}getKey(t){return t??""}}const Lm=new Y9;function Pa(e){return e!=null&&e!==""}const qd={id:0,user_id:0,type:1,subsite_id:0,title:"",entry:{blocks:[]},external_access_link:"",path:"",is_editorial:!1,is_advertisement:!1,is_enabled_comments:!0,is_enabled_likes:!0,withheld:!1,is_enabled_ad:!0,is_holdonflash:!1,forced_to_mainpage:0,is_holdonmain:!1,is_published:!1,is_adult:!1,repostId:null,repostData:null};class X9{constructor(t,n){this.transport=t,this.entriesStore=n}getBaseEntryData(){return this.convertApiFormatToEntryData(qd)}async getEditorData(t){const n=await this.transport.get(`editor/${t}`,void 0,{auth:"strict"}),{yellow_features:s,isPro:i,isAdult:o,isTelegram:r}=n.editor.accessLevels;return{editorSettings:{isAdminFeaturesAvailable:s,isProFeaturesAvailable:i,isAdultFeatureAvailable:o,isTelegramFeaturesAvailable:r},entryData:this.convertApiFormatToEntryData({...qd,...n.entry},n.editor.owners,n.editor.authors)}}async saveEntry(t,n){const s=this.convertEntryDataToApiFormat(t,n),{entry:i}=await this.transport.post("editor",{entry:JSON.stringify(s)},{auth:"strict"});return t!==0&&(this.entriesStore.updateEntryProperty(t,"title",i.title),this.entriesStore.updateEntryProperty(t,"blocks",i.entry.blocks)),i.id}async publish(t,n){await this.transport.post(`editor/${t}/publish`,n,{auth:"strict"}),this.entriesStore.updateEntryProperty(t,"isPublished",!0)}async getSubsitesToWriteIn(t){let n=Lm.getSubsites(t);if(n.length>0)return n;let s="editor/subsites";Pa(t)&&(s=`${s}?query=${t}`);const i="editor:search:subsite";return this.transport.abort(i),n=(await this.transport.get(s,void 0,{abortToken:i,auth:"strict"})).map(r=>({title:r.title,items:r.items.filter(a=>{var l;return((l=a.additionalData)==null?void 0:l.isBlog)===!1||a.isNoTheme===!0})})),Lm.storeSubsites(n,t),n}getSubsiteById(t){return Lm.getSubsite(t)}
120getBlocksWithTitle(t,n){return n!==""&&t.unshift({type:"header",cover:!1,hidden:!1,anchor:"",data:{style:"h2",text:n}}),t}convertSpecificBlocksIntoQuote(t){return t.map(n=>n.type==="number"?{type:"quote",cover:n.cover,hidden:n.hidden,anchor:n.anchor,data:{text:n.data.number,subline1:n.data.title}}:n.type==="incut"?{type:"quote",cover:n.cover,hidden:n.hidden,anchor:n.anchor,data:{text:n.data.text,subline1:""}}:n)}convertApiFormatToEntryData(t,n=[],s=[]){return{blocks:this.getBlocksWithTitle(this.convertSpecificBlocksIntoQuote([...t.entry.blocks]),t.title),subsite:rg(t.subsite_id,n),author:rg(t.user_id,s),externalAccessLink:t.external_access_link,settings:{path:t.path,isEditorial:t.is_editorial,isAd:t.is_advertisement,isCommentsDisabled:!t.is_enabled_comments,isLikesDisabled:!t.is_enabled_likes,isRFDisabled:t.withheld==="ru",isAdDisabled:!t.is_enabled_ad,isFlash:t.is_holdonflash,isHideInFeeds:t.forced_to_mainpage===-1,isHoldOnMain:t.is_holdonmain,isAdult:t.is_adult},isPublished:t.is_published,repost:t.repostData??void 0}}convertEntryDataToApiFormat(t,n){var o;const{blocks:s}=n;let i="";return s[0]!==void 0&&s[0].type==="header"&&(i=s.shift().data.text),{...qd,id:t,user_id:n.author===void 0?0:n.author.value,title:i,entry:{blocks:s},subsite_id:n.subsite===void 0?0:n.subsite.value,external_access_link:n.externalAccessLink,path:n.settings.path,is_editorial:n.settings.isEditorial,is_advertisement:n.settings.isAd,is_enabled_comments:!n.settings.isCommentsDisabled,is_enabled_likes:!n.settings.isLikesDisabled,withheld:n.settings.isRFDisabled?"ru":!1,is_enabled_ad:!n.settings.isAdDisabled,is_holdonflash:n.settings.isFlash,forced_to_mainpage:n.settings.isHideInFeeds?-1:0,is_holdonmain:n.settings.isHoldOnMain,is_adult:n.settings.isAdult,is_published:n.isPublished,repostId:((o=n.repost)==null?void 0:o.data.original_id)??null,repostData:null}}async getPostHistory(t){const{versions:n}=await this.transport.get(`content/${t}/history`,void 0,{auth:"strict"});return n.map(s=>({...s,dateCreated:s.dateCreated*1e3}))}async getPostVersion(t,n){const{entry:s,editor:i}=await this.transport.get(`content/${t}/history/${n}`,void 0,{auth:"strict"});return this.convertApiFormatToEntryData({...qd,...s},i.owners,i.authors)}}class Q9{constructor(t,n){var s;this.commentsRepository=t,this.eventBus=n,(s=this.eventBus)==null||s.addEventListener(xp,({detail:i})=>{i.type===Rs.CommentCreator&&this.markCommentAsDonatedLocally(i.entityId)})}async getCommentsByEntryId(t,n,s){try{return await this.commentsRepository.getCommentsByEntryId(t,n,s)}catch(i){throw i instanceof ec?new Vb(t):i}}async fillCommentRepliesById(t,n){return await this.commentsRepository.fillCommentRepliesById(t,n)}async getCommentsBySubsiteId(t,n,s){return await this.commentsRepository.getCommentsBySubsiteId(t,n,s)}async getBookmarkedComments(t){return await this.commentsRepository.getBookmarkedComments(t)}async getPermissionsForCommentId(t){return await this.commentsRepository.getPermissionsForCommentId(t)}async addComment(t,n){return await this.commentsRepository.addComment(t,n)}async removeComment(t){return await this.commentsRepository.removeComment(t)}async editComment(t){return await this.commentsRepository.editComment(t)}async pinComment(t,n){return await this.commentsRepository.pinComment(t,n)}async complain(t,n){return await this.commentsRepository.complain(t,n)}async toggleReaction(t,n,s){return await this.commentsRepository.toggleReaction(t,n,s)}async toggleBookmark(t,n,s){return await this.commentsRepository.toggleBookmark(t,n,s)}async saveCommentsVisitForEntryId(t,n){return await this.commentsRepository.saveCommentsVisitForEntryId(t,n)}async getReactorsList(t,n,s){return await this.commentsRepository.getReactorsList(t,n,s)}enableRealtimeUpdates(t){return this.commentsRepository.enableRealtimeUpdates(t)}disableRealtimeUpdates(t){return this.commentsRepository.disableRealtimeUpdates(t)}getPreferredSorting(){return this.commentsRepository.getPreferredSorting()}setPreferredSorting(t){this.commentsRepository.setPreferredSorting(t)}async toggleNotificationsSubscription(t,n){await this.commentsRepository.toggleNotificationsSubscription(t,n)}async getPopularComments(){return await this.commentsRepository.getPopularComments()}getCommentById(t){return this.commentsRepository.getCommentById(t)}markCommentAsDonatedLocally(t){return this.commentsRepository.markCommentAsDonatedLocally(t)}async getDonatorsList(t,n){return await this.commentsRepository.getDonatorsList(t,n)}async getBannedCommentById(t){return await this.commentsRepository.getBannedCommentById(t)}async getHiddenCommentById(t){return await this.commentsRepository.getHiddenCommentById(t)}}var El;class dc{constructor(){Fe(this,El)}
120get store(){return fe(this,El)===void 0&<(this,El,this.createStore()),fe(this,El)}}El=new WeakMap;class J9 extends dc{constructor(t,n,s,i,o){super(),this.transport=t,this.realtimeTransport=n,this.hydrationStore=s,this.entriesStore=i,this.createStore=o}async getCommentsByEntryId(t,n=0,{limit:s=0,includeUserData:i=!1,sorting:o=Df.Hotness,isPagination:r=!1}={}){if(r){const d=this.store.trees.get(t);if(d===void 0)throw new Error("Tree is not present for pagination");d.build({limit:s});return}const a=async()=>{const d=n===0?{sorting:o,contentId:t,firstLoad:!0}:{commentId:n},h=await this.transport.get("comments",d,{apiVersion:"v2.10",auth:i?"probe":void 0,ssrReady:!i});return h.isAnonymized=!i,h},l=i?await a():await this.hydrationStore.hydrate(`comments@post@${t}@${n}@${o}`,a),c=this.store.save(l.items),u=this.store.trees.create(t,c);return s=n===0?s:0,u.build({limit:s,preserveIds:[n],collapserRule:s>0?({level:d})=>d===0?"complete":!1:void 0}),u}async fillCommentRepliesById(t,n){const s=this.store.trees.get(t);if(s===void 0)throw new Error("Tree is not present for replies insertion");const i=s.getNodeById(n);if(i===void 0)throw new Error("Root node is not present");if(i.state.isRepliesLoaded)throw new Error("Replies have already been loaded");s.toggleCollapse(n,!1),i.state.isLoadingReplies=!0;const o=await this.transport.get("comments",{commentId:n,onlyReplies:!0},{apiVersion:"v2.5",auth:"probe"});i.state.isLoadingReplies=!1;const r=this.store.save(o.items);s.addBranch(n,r)}async getCommentsBySubsiteId(t,n=It.New,{reset:s=!1,includeUserData:i=!1}={}){var l,c;s&&this.store.feeds.remove(t);const o=this.store.feeds.get(t)??this.store.feeds.create(t);if(o.isEnded)return o;const r=async()=>{const u=await this.transport.get("comments",{...o.nextChunkOptions,sorting:n,subsiteId:t},{auth:i?"probe":void 0,apiVersion:"v2.5",ssrReady:!0});return u.isAnonymized=!i,u},a=i?await r():await this.hydrationStore.hydrate(`comments@subsite@${t}@${n}`,r);return o.processChunk({items:this.store.save(a.items),lastSortingValue:a.lastSortingValue!==void 0?a.lastSortingValue:(l=ai(a.items))==null?void 0:l.date,lastId:a.lastId!==void 0?a.lastId:((c=ai(a.items))==null?void 0:c.id)??0}),o}async getBookmarkedComments({reset:t=!0,includeUserData:n=!1}={}){var r;if(!n)throw new Sp;t&&this.store.feeds.remove("bookmarks");const s=this.store.feeds.get("bookmarks")??this.store.feeds.create("bookmarks");if(s.isEnded)return s;const i=10,o=await this.transport.get("bookmarks",{last_sorting_value:s.nextChunkOptions.lastSortingValue,type:"comments",count:i},{auth:"strict",apiVersion:"v2.8"});return s.processChunk({items:this.store.save(o.map(a=>a.data)),lastSortingValue:(r=ai(o))==null?void 0:r.date,lastId:o.length===0||o.length<i?0:void 0}),s}async getPermissionsForCommentId(t){const n=this.store.permissions.get(t);if(n!==void 0)return n;const{etcControls:s}=await this.transport.get(`comment/etcControls?commentId=${t}`,void 0,{auth:"probe"});return this.store.permissions.set(t,s),s}async addComment(t,n={}){const s=this.store.trees.get(t.id);s==null||s.addPendingId(t.nonce);const i=await this.transport.post("comment/add",t,{auth:"strict",apiVersion:"v2.4"});s==null||s.removePendingId(t.nonce);const o=this.store.saveOne(i);return s==null||s.add(o,n),i.id}async removeComment(t){await this.transport.delete(`comments/${t.id}`,{withThread:t.isRemoveReplies??!1},{auth:"strict",apiVersion:"v3.0"}),this.store.update(t.id,{isRemovedByModerator:t.isRemovedByModerator===!0});const n=t.entryId!==void 0?this.store.trees.get(t.entryId):void 0;if(t.entryId!==void 0&&n!==void 0){const i=n.remove(t.id,t.isRemoveReplies),o=this.entriesStore.getItemById(t.entryId);if(o===void 0)return;this.entriesStore.updateEntryProperty(t.entryId,"counters",{...o.counters,comments:o.counters.comments-i.length})}const s=t.feedKey!==void 0?this.store.feeds.get(t.feedKey):void 0;if(t.feedKey!==void 0&&s!==void 0){const i=s.items.find(o=>o.id===t.id);i!==void 0&&s.remove(i)}}async editComment(t){const n=await this.transport.post("comment/edit",t,{auth:"strict",apiVersion:"v2.4"});this.store.update(n.id,n)}async pinComment(t,n){this.store.update(t,{isPinned:n}),await this.transport.post("comment/pin",{id:t,state:n},{auth:"strict",apiVersion:"v2.4"})}async complain(t,n){return(await this.transport.post("comment/complaint",{comment_id:t,reason_
120id:n},{auth:"strict",apiVersion:"v2.4"})).result}async toggleReaction(t,n,s){const i=this.store.get(t);if(i===void 0)throw console.error(`Reaction: comment with id ${t} not found`),new Error("Comment not found");if(i.reactions===null)return;const o=as(i.reactions),r=oE(o,n);try{const a=`reaction:${t}`;this.store.update(t,{reactions:r}),this.transport.abort(a);const l=await this.transport.post(`comment/${t}/react`,{type:r.reactionId,...s},{auth:"strict",apiVersion:"v2.10",abortToken:a});this.store.update(t,{reactions:l})}catch(a){if(a instanceof DOMException&&a.name==="AbortError")return;throw this.store.update(t,{reactions:o}),a}}async toggleBookmark(t,n,s){const i=n?"favorite":"unfavorite";await this.transport.post(i,{id:t,type:2,...s},{auth:"strict"}),this.store.update(t,{isFavorited:n})}async saveCommentsVisitForEntryId(t,n){await this.transport.post("comment/saveCommentsSeenCount",{content_id:t,count:n},{auth:"strict"})}async getReactorsList(t,n,s){const i=`reactions:${t}`,o=100;return await this.store.reactors.resolve(async r=>{this.transport.abort(i);const{reactions:a,lastSortingValue:l}=await this.transport.get(`comment/${t}/reactions`,{...r,type:n,limit:o},{apiVersion:"v2.5",auth:"strict",abortToken:i});return{items:a,lastSortingValue:a.length<o?null:l}},s),this.store.reactors.api}
120enableRealtimeUpdates(t){if(this.realtimeTransport===null)return;const n={on:this.realtimeTransport.subscribe(`api:v2:comments-${t}`)},s={on:this.realtimeTransport.subscribe(`api:comments-${t}`)};n.on("comment_created",i=>{var a;if(this.store.get(i.comment.id)!==void 0)return;const o=this.store.saveOne(i.comment),r=o.level===0&&this.store.trees.preferredSorting===Df.Date?"top":"bottom";(a=this.store.trees.get(i.comment.entry.id))==null||a.add(o,{position:r})}),n.on("comment_edited",i=>{this.store.update(i.comment.id,i.comment)}),n.on("change_reply_count_for_second_level_comment",({data:i})=>{const o=this.store.trees.get(t);if(o===void 0)return;const r=i.comment_id;!o.hasNode(r)||o.getNodeById(r).state.isRepliesLoaded||(this.store.update(r,{replyCount:i.reply_count}),o.refreshNodeRepliesCount(r))}),s.on("comment voted",i=>{const o=this.store.get(i.id);if(o===void 0||o.reactions===null)return;const r=as(o.reactions),a=rE(r,i.fromReactionId,i.reactionId,i.reactionCount);this.store.update(i.id,{reactions:{...r,...a}})}),n.on("change_donation_amount_for_comment",({data:i})=>{var r;const o=this.store.get(i.commentId);q(o)&&(q(o.donations)||(o.donations={amount:0,isDonated:!1}),this.store.update(i.commentId,{donations:{...o.donations,amount:i.amount,isDonated:((r=o.donations)==null?void 0:r.isDonatedLocally)===!0}}))})}disableRealtimeUpdates(t){var n,s;
120(n=this.realtimeTransport)==null||n.unsubscribe(`api:v2:comments-${t}`),(s=this.realtimeTransport)==null||s.unsubscribe(`api:comments-${t}`)}getPreferredSorting(){return this.store.trees.preferredSorting}setPreferredSorting(t){this.store.trees.preferredSorting=t}async toggleNotificationsSubscription(t,n){const s=n?"subscribe":"unsubscribe";this.entriesStore.updateEntryProperty(t,"subscribedToTreads",n);try{if(!(await this.transport.get(`content/${t}/thread/${s}`,void 0,{auth:"strict",apiVersion:"v2.4"})).result)throw new Error(`Failed to ${s}`)}catch(i){throw this.entriesStore.updateEntryProperty(t,"subscribedToTreads",!n),i}}async getPopularComments(){return await this.transport.get("comments/popular",void 0,{apiVersion:"v2.10"})}getCommentById(t){return this.store.get(t)}markCommentAsDonatedLocally(t){const n=this.store.get(t);q(n)&&(q(n.donations)||(n.donations={amount:0,isDonated:!1}),this.store.update(t,{donations:{...n.donations,isDonatedLocally:!0}}))}async getDonatorsList(t,n){const s=`donations:${t}`,i=100;return await this.store.donators.resolve(async o=>{const{donations:r,cursor:a}=await this.transport.get(`comment/${t}/donations`,{...o,limit:i},{apiVersion:"v2.5",abortToken:s});return{items:r,cursor:r.length<i?null:a}},n),this.store.donators.api}async getBannedCommentById(t){return await this.transport.get(`comment/banned/${t}`,void 0,{auth:"strict"})}async getHiddenCommentById(t){const n=await this.transport.get(`comment/hidden/${t}`,void 0,{auth:"strict"});return this.store.update(t,{hiddenContent:n.hiddenContent}),n}}class Z9{constructor(t){le(this,"quizRepository");this.quizRepository=t}async getResults(t){return await this.quizRepository.getResults(t)}async vote(t){return await this.quizRepository.vote(t)}}class eU{constructor(t){this.transport=t}async getResults(t){return await this.transport.get(`quiz/${t}/results`,void 0,{auth:"probe"})}async vote({hash:t,contentId:n,itemId:s}){const i=s.length>0?`/${s}`:"";return await this.transport.post(`quiz/${t}/contentId/${n}/vote${i}`,{},{auth:"strict"})}}function tU(){const e=new Map,t=new Map;return{addItems(n){n.forEach(s=>{const i=e.get(s.id);i===void 0?e.set(s.id,bt(s)):Object.assign(i,s)})},upsert(n){this.addItems([n])},clearExcept(n){for(const[s]of e)!n.includes(s)&&!t.has(s)&&e.delete(s)},getItemsByIds(n){const s=[];return n.forEach(i=>{const o=this.getItemById(i);o!==void 0&&s.push(o)}),s},getItemById(n){return e.get(n)},updateEntryProperty(n,s,i){const o=this.getItemById(n);o!==void 0&&(o[s]=i)},getRandomId(){const n=Array.from(e.values()),s=n[Math.floor(Math.random()*n.length)];return s==null?void 0:s.id},anonymizeItemById(n){const s=this.getItemById(n);s!==void 0&&(s.isFavorited=!1,s.canEdit=!1,s.commentsSeenCount=null,s.author.isMuted=!1,s.author.isSubscribed=!1,s.subsite.isMuted=!1,s.subsite.isSubscribed=!1,s.reactions!==null&&(s.reactions.reactionId=0),s.isAnonymized=!0)},anonymize(){Array.from(e.keys()).forEach(n=>this.anonymizeItemById(n))},remove(n){t.delete(n),e.delete(n)},async resolveEntry(n,s,i=!1){const o=this.getItemById(n);return o!==void 0&&(!i||o.isAnonymized!==!0)?o:(this.upsert(await s()),this.getItemById(n))},hold(n){t.set(n,(t.get(n)??0)+1)},unhold(n){const s=t.get(n)??0;s<=1?t.delete(n):t.set(n,s-1)}}}const nU=tU;function sU(){const e=new Map,t=new Map,n=new Map,s=new Map;return{saveNode(i){e.set(i.comment.id,i)},hasNode(i){return e.has(i)},getNodeByCommentId(i){const o=e.get(i);if(o===void 0)throw new Error(`Node for comment ${i} not found`);return o},getRepliesByCommentId(i){const o=t.get(i);if(o===void 0)throw new Error(`Replies for comment ${i} not found`);return o},setRepliesByCommentId(i,o){if(t.has(i))throw new Error(`Replies for comment ${i} already exists`);t.set(i,o)},getParentsByCommentId(i){const o=n.get(i);if(o===void 0)throw new Error(`Parents for comment ${i} not found`);return o},setParentsByCommentId(i,o){if(n.has(i))throw new Error(`Parents for comment ${i} already exists`);n.set(i,o)},getBranchesRelationsByCommentId(i){const o=s.get(i);if(o===void 0)throw new Error(`Branches relations for comment ${i} not found`);return o},setBranchesRelationsByCommentId(i,o){if(s.has(i))throw new Error(`Branches relations for c
120omment ${i} already exists`);s.set(i,o)},deleteRelations(i){i!==void 0?(t.delete(i),n.delete(i),s.delete(i),e.delete(i)):(t.clear(),n.clear(),s.clear(),e.clear())}}}function Om(e){return e.replyCount===void 0?1:e.replyCount+1}function s_(e){return e.comment.isRemoved&&e.state.isRepliesLoaded&&e.replies.total.length===0}function iU(e,t,n){n.isAtStart?t.total.unshift(e):Zc(e,n.insertAfterId,t.total),n.isDirect&&(n.isAtStart?t.direct.unshift(e):Zc(e,n.insertAfterId,t.direct))}function oU(e,t){const n=t.find(s=>s.branchId===e);if(n===void 0)throw new Error(`Relation data is not present for ${e}`);return n}function rU(e){const t=ai(e);if(t===void 0)throw new Error("Direct replies array is empty");return t}function aE(e,t=!1){const n=rU(e.direct),s=e.total.indexOf(n)+(t?1:0);return e.total.slice(0,s)}function aU(e,t){return t.direct.length<2?!0:!aE(t).includes(e)}function lU(e){const t=new Set,n=new Set;function s(d){return typeof d=="number"?d:d.comment.id}function i(d){return typeof d=="number"?e.nodeGetter(d):d}function o(d,h){(h==null?void 0:h.complete)===!0?(n.add(d),t.add(d)):((h==null?void 0:h.semi)===!0?n:t).add(d),c(d,!0,h)}function r(d,h){(h==null?void 0:h.complete)===!0?(n.delete(d),t.delete(d)):((h==null?void 0:h.semi)===!0?n:t).delete(d),c(d,!1,h)}function a(d){if(d.parents.length===0)return!0;if(d.parents.some(b=>t.has(b)))return!1;const p=d.parents.findLast(b=>n.has(b));if(e.semiLimit===void 0||p===void 0)return!0;const m=e.nodeGetter(p),v=m.replies.direct.slice(0,e.semiLimit+1);return v.length<=e.semiLimit?!0:!!aE({direct:v,total:m.replies.total},!0).includes(d.comment.id)}function l(d){if(e.semiLimit===void 0||d.comment.replyTo===0)return!1;const h=i(d.comment.replyTo),p=h.replies.direct;return!h.state.isRepliesSemiCollapsed||p.length<=e.semiLimit?!1:ai(p.slice(0,e.semiLimit+1))===d.comment.id}function c(d,h,p){const m=i(d);(p==null?void 0:p.complete)===!0?(m.state.isRepliesSemiCollapsed=h,m.state.isRepliesCollapsed=h):m.state[(p==null?void 0:p.semi)===!0?"isRepliesSemiCollapsed":"isRepliesCollapsed"]=h,m.replies.total.forEach(v=>{const g=i(v);g.state.isRendered=!h&&a(g),((p==null?void 0:p.semi)===!0||(p==null?void 0:p.complete)===!0)&&(g.state.isRenderedAsParentBranchExpander=l(g))})}function u(d,h){return(h==null?void 0:h.semi)===!0?n.has(s(d)):t.has(s(d))}return{isNodeRendered:a,isNodeRenderedAsExpander:l,toggle(d,h,p){const m=s(d),v=u(m,p);return h===void 0&&(h=!v),(h?o:r)(m,p),h},purge(d){(Array.isArray(d)?d:[d]).forEach(p=>{t.delete(p),n.delete(p)})},refresh(d){const h=i(d),{isRepliesCollapsed:p,isRepliesSemiCollapsed:m}=h.state;h.replies.total.forEach(v=>{const g=i(v);g.state.isRendered=!p&&a(g),m&&(g.state.isRenderedAsParentBranchExpander=l(g))})}}}function cU(e){const t=[...e.data],n=e.relationsComposer([]),{saveNode:s,hasNode:i,getNodeByCommentId:o,getParentsByCommentId:r,setParentsByCommentId:a,getRepliesByCommentId:l,setRepliesByCommentId:c,getBranchesRelationsByCommentId:u,setBranchesRelationsByCommentId:d,deleteRelations:h}=sU(),p=lU({semiLimit:2,nodeGetter:o}),m=new Set;function v(R,G){let H=[],se;for(let ue=0;ue<R.length;ue+=1){const de=R[ue];de.level===0&&se!==void 0&&V($(se.comment.id),{preserveIds:G==null?void 0:G.preserveIds});const ke=b(de,{prevProcessedNode:se,collapserRule:G==null?void 0:G.collapserRule});H.push(ke),se=ke}return se!==void 0&&V($(se.comment.id),{preserveIds:G==null?void 0:G.preserveIds}),H=H.filter(ue=>!ue.state.isPurged),H}const g=[];function b(R,G={}){var ke,Se;w(R,G);const H=e.nodeComposer(R,{parents:r(R.id),replies:l(R.id),branchesRelations:u(R.id)});H.state.isRepliesLoaded=R.replyCount===0||R.replyCount===void 0,R.level===0&&(G.asFirst===!0?g.unshift(R.id):g.push(R.id)),s(H),H.repliesCount=x(H),H.state.isRendered=p.isNodeRendered(H),H.state.isRenderedAsParentBranchExpander=p.isNodeRenderedAsExpander(H);const se=((ke=G.collapserRule)==null?void 0:ke.call(G,R))??((Se=e.isCollapseRepliesOnProcess)==null?void 0:Se.call(e,R))??!1,ue=se==="semi",de=se==="complete";return(se===!0||ue||de)&&p.toggle(H,!0,{semi:ue,complete:de}),H}function w(R,G={}){var ue;const H=R.id,se=R.replyTo;a(H,k(se)),c(H,{total:e.relationsComposer([]),direct:e.relationsComposer([])}),d(H,[]),y(R,((ue=G.prevProcessedNode)==null?void 0:ue.comment.id)??se,G.asFirst)}function k(R){if(R===0)return[];const G=r(R);return[R,...G]}function y(R,G,H=!1){if(G===0)return;
120r(R.id).forEach((ue,de)=>{const ke=de===0;S({branchId:ue,replyId:R.id,insertAfterId:G,isDirectReply:ke,isFirst:H&&ke}),E(ue),o(ue).repliesCount+=Om(R)})}function S({branchId:R,replyId:G,insertAfterId:H,isDirectReply:se,isFirst:ue}){const de=l(R),ke=u(G);iU(G,de,{isDirect:se,isAtStart:ue,insertAfterId:H}),ke.unshift(e.relationsComposer({branchId:R,isDirectReplyInBranch:se,isParentOrSelfLastInBranch:!0}))}function E(R){const G=l(R);G.total.forEach(H=>{const se=u(H),ue=oU(R,se);ue.isParentOrSelfLastInBranch=aU(H,G)})}function x(R,G){if(!R.state.isRepliesLoaded)return R.comment.replyCount??0;let se=l(R.comment.id).total;const ue=G!==void 0?se.indexOf(G):-1;return ue>-1&&(se=se.slice(ue)),se.reduce((de,ke)=>{const Se=o(ke);return Se.state.isRepliesLoaded?de+1:de+Om(Se.comment)},0)}function M(R,G={}){const H=o(R),se=H.comment.isRemoved,ue=H.state.isRepliesLoaded?l(R).total.every(de=>{var Se;const ke=o(de);return s_(ke)&&((Se=G.preserveIds)==null?void 0:Se.includes(de))===!1}):Om(H.comment)===1;return se&&ue}function I(R){const G=[R,...l(R).total];return G.reverse().forEach(H=>N(H)),G}function N(R){r(R).forEach(se=>{const ue=l(se);To(R,ue.direct),To(R,ue.total)}),X(R);const H=o(R);H.comment.level===0&&To(R,g),H.state.isPurged=!0,h(R),p.purge(R),n.length>0&&To(H,n)}function V(R,G={}){const H=l(R);[R,...H.total].filter(ue=>{var de;return((de=G.preserveIds)==null?void 0:de.includes(ue))!==!0}).reverse().forEach(ue=>{M(ue,{preserveIds:G.preserveIds})?I(ue):E(ue)}),i(R)&&p.refresh(R)}function $(R){const G=r(R);return ai(G)??R}function j(R,G){const H=R.comment.replyTo;if(H===0){G==="top"?n.unshift(R):n.push(R);return}if(G==="top"){const ke=o(H);Zc(R,ke,n);return}const se=l(R.comment.replyTo).total.filter(ke=>ke!==R.comment.id),ue=ai(se)??H,de=o(ue);Zc(R,de,n)}function X(R){k(R).forEach(G=>{const H=o(G);H.repliesCount=x(H)})}function U(R,G,{chunkSize:H=0}={}){if(H===0){for(const ue of n)R(ue)&&G(ue);return}const se=ue=>{const de=Math.min(ue+H,n.length);for(let ke=ue;ke<de;ke++){const Se=n[ke];R(Se)&&G(Se)}de<n.length&&requestAnimationFrame(()=>se(de))};se(0)}return{nodes:n,build({limit:R=1/0,collapserRule:G,preserveIds:H}={}){R===0&&(R=1/0);const se=[];let ue=0,de=0,ke=!1;for(const _e of t){if(_e.level===0&&ue>=R&&ke)break;se.push(_e),de+=1,_e.isRemoved||(ke=!0),_e.level===0&&(ue+=1)}t.splice(0,de);const Se=v(se,{collapserRule:G,preserveIds:H});this.nodes.push(...Se)},add(R,{position:G="bottom",collapserRule:H}={}){if(R.nonce!==void 0&&m.has(R.nonce))return;if(i(R.id)){this.update(R.id,R);return}if(R.replyTo>0&&!i(R.replyTo))return;const se=R.replyTo>0?o(R.replyTo):void 0;if((se==null?void 0:se.state.isRepliesLoaded)===!1)return;const ue=b(R,{asFirst:G==="top",collapserRule:H});j(ue,G)},update(R,G){const H=o(R);M3(H.comment,G)},addBranch(R,G){const H=o(R),se=v(G);H.state.isRepliesLoaded=!0,H.comment.replyCount=0,X(H.comment.id),Zc(se,H,this.nodes)},remove(R,G=!1){const H=o(R);if(H.comment.isRemoved=!0,!s_(H)&&!G)return[R];const se=I(R);return H.comment.replyTo>0&&V($(H.comment.replyTo)),se},getNonProcessedCount(){return(t==null?void 0:t.length)??0},toggleCollapse(R,G,H){return p.toggle(R,G,H)},hasNode(R){return i(R)},getNodeById(R){return o(R)},addPendingId(R){m.add(R)},removePendingId(R){m.delete(R)},clear(){Jl(n),h()},getRepliesCount(R,G){const H=o(R);return x(H,G)},refreshNodeRepliesCount(R){const G=o(R);G.repliesCount=x(G),X(R)},processComments:U,getRootIndex(R){return g.indexOf(R)}}}function uU(e,t){return Object.assign({comment:e,replies:{total:[],direct:[]},parents:[],branchesRelations:[],state:{isRendered:!0,isRepliesCollapsed:!1,isRepliesSemiCollapsed:!1,isAttention:!1,isHighlighted:!1,isLoadingReplies:!1,isRepliesLoaded:!0,isOnScreen:!1,isPurged:!1,isRevealedHidden:!1},rootElement:null,contentElement:null,repliesCount:0},t)}var Ls,Xu,xl,af;class E0{constructor(t){Fe(this,xl);Fe(this,Ls,new Map);Fe(this,Xu,new FinalizationRegistry(t=>{var s;const n=fe(this,Ls).get(t);(n==null?void 0:n.deref())===void 0&&(fe(this,Ls).delete(t),(s=this.onEntryRemoved)==null||s.call(this,t))}));this.onEntryRemoved=t}set(t,n){Gt(this,xl,af).call(this,fe(this,Ls).get(t)),fe(this,Xu).register(n,t,n),fe(this,Ls).set(t,new WeakRef(n))}get(t){var n;return(n=fe(this,Ls).get(t))==null?void 0:n.deref()}delete(t){Gt(this,xl,af).call(this,fe(this,Ls).get(t)),fe(this,Ls).delete(t)}clear(){for(const t of fe(this,Ls).values())Gt(this,xl,af).call(this,t);return fe(this,Ls).clear()}get size(){return fe(this,Ls).size}}Ls=new WeakMap,Xu=new WeakMap,xl=new WeakSet,af=function(t){const n=t==null?void 0:t.deref();n!==void 0&&fe(this,Xu).unregister(n)};function dU(){const e=[1,3,5,7],t=Xn("comments-preferred-sorting",Df.Popular),n=new E0;return{create(s,i){this.remove(s);const o=cU({data:i,nodeComposer:(r,a)=>bt(uU(r,a)),relationsComposer:r=>$a(r),isCollapseRepliesOnProcess:({isPinned:r,donation:a,level:l})=>l===0?"semi":r||a!==null||e.includes(l)});return n.set(s,o),o},get(s){return n.get(s)},remove(s){n.delete(s)},get preferredSorting(){return t.value},set preferredSorting(s){t.value=s}}}function fU(){const e=new E0;return{create(t){const n=new Tn($a([]));return e.set(t,n),n},get(t){return e.get(t)},remove(t){e.delete(t)}}}function hU(){const n=new Ql(100,12e4);return{set(s,i){return n.put(s,i),i},get(s){return n.get(s)}}}function pU(){const e=new E0;let t,n,s,i,o;function r(a){const l=a.id,c=bt(a);return e.set(l,c),c}return{get trees(){return t===void 0&&(t=dU()),t},get feeds(){return n===void 0&&(n=fU()),n},get permissions(){return s===void 0&&(s=hU()),s},get reactors(){return i===void 0&&(i=new Tn),i},get donators(){return o===void 0&&(o=new Tn),o}
120,saveOne:r,save(a){const l=[];return a.forEach(c=>{const u=r(c);l.push(u)}),l},get(a){return e.get(a)},update(a,l){const c=this.get(a);c!==void 0&&M3(c,l)},map(a){return a.map(l=>this.get(l)).filter(l=>l!==void 0)}}}function mU({transport:e,realtimeTransport:t,hydrationStore:n,eventBus:s}){const i=nU();s==null||s.addEventListener(ci,u=>{const{session:d}=u.detail;d===null&&i.anonymize()});const o=new W9(e,t,n,i),r=new q9(e,t,n,i),a=new J9(e,t,n,i,()=>pU()),l=new X9(e,i),c=new eU(e);return{entry:new j9(r,s),feed:new x9(o,s),comments:new Q9(a,s),editor:new K9(l,s),quiz:new Z9(c)}}class vU{constructor(t){this.repository=t}async getRelevantAdvert(t,n){return await this.repository.getRelevantAdvert(t,n)}hit(t,n){this.repository.hit(t,n)}click(t,n,s){this.repository.click(t,n,s)}}function Hc(e,t,n){const s=new URL("https://booster.osnova.io/a/redirect");return s.searchParams.set("id",t.id.toString()),s.searchParams.set("hash",t.hash),s.searchParams.set("url",gU(e,t.place)),s.searchParams.set("site","vc"),s.searchParams.set("place",t.place),s.searchParams.set("boosterUid",n),s.href}function gU(e,t){let n=null;const s=new URL(e);switch(t){case tn.PostAfter:n=$e.AdvertPostAfter;break;case tn.Feed:n=$e.AdvertFeedPopular;break;case tn.Recommendations:n=$e.AdvertFeedRecommendations;break}return n!==null&&s.searchParams.set("source",n),s.href}function bU(e,t,n){return{id:e.id,link:Hc(e.contents.data.link,{id:e.id,hash:e.hash,place:t},n),content:yU(e.contents,{id:e.id,hash:e.hash,place:t},n),legalText:e.legalText,ord:e.ord,isStub:e.isStub===!0}}function yU(e,t,n){var r,a;if(e.mode===cs.Link){let l=e.data.title;return/[^.!?]$/.test(l)&&(l=`${l}.`),l=`${l} ${e.data.description}`,{mode:e.mode,text:l,media:e.data.image,button:e.data.button}}if(e.mode===cs.LinkExtended){const l=[];return q(e.data.text)&&l.push({type:"text",cover:!1,hidden:!1,anchor:"",data:{text:e.data.text}}),l.push({type:"media",cover:!1,hidden:!1,anchor:"",data:{items:[{title:"",image:e.data.media}]}}),q(e.data.button)&&l.push({type:"special_button",cover:!1,hidden:!1,anchor:"",data:{text:e.data.button,url:Hc(e.data.link,t,n),textColor:"",backgroundColor:""}}),{mode:e.mode,title:e.data.title,blocks:l}}const s=[];if(q(e.data.description)){const l={type:"text",cover:!1,hidden:!1,anchor:"",data:{text:e.data.description}};s.push(l)}if(e.data.media!==void 0){const l={type:"media",cover:!1,hidden:!1,anchor:"",data:{items:[{title:"",image:e.data.media.type===Pt.Video?e.data.media.data.thumbnail:e.data.media}]}};s.push(l)}if(e.data.game!==void 0){const l={type:"game",cover:!1,hidden:!1,anchor:"",data:e.data.game};s.push(l)}if(e.data.button!==void 0){const l={type:"special_button",cover:!1,hidden:!1,anchor:"",data:{text:e.data.button.text,url:Hc(e.data.button.url,t,n),textColor:"",backgroundColor:""}};s.push(l)}let i,o;return((r=e.data.creator)==null?void 0:r.id)!==void 0&&(i={avatar:e.data.creator.avatar,name:e.data.creator.name,badgeId:e.data.creator.badgeId,url:Hc(e.data.creator.url,t,n)},((a=e.data.subsite)==null?void 0:a.id)!==void 0&&e.data.subsite.id!==e.data.creator.id&&(o={avatar:e.data.subsite.avatar,name:e.data.subsite.name,url:Hc(e.data.subsite.url,t,n)})),{id:e.data.id,mode:e.mode,title:e.data.title,blocks:s,date:e.data.date,author:i,topic:o}}const i_="boosterUid";var ma,va,Qu;class wU{constructor(){Fe(this,ma);Fe(this,va);Fe(this,Qu,[])}getAdvert(t){if(fe(this,va)===void 0||fe(this,ma)===void 0||fe(this,va)<Date.now()){lt(this,va,void 0),lt(this,ma,void 0);return}const n=fe(this,ma)[this.getModeByAdvertPlace(t)].shift();if(n!==void 0)return bU(n,t,this.getBoosterUid())}updateAdverts(t){lt(this,ma,t),lt(this,va,Date.now()+6e4)}getBoosterUid(){return Xn(i_,"").value}updateBoosterUid(t){const n=Xn(i_,"");n.value=t}getCategories(){return fe(this,Qu)}updateCategories(t){lt(this,Qu,t)}getModeByAdvertPlace(t){return[tn.Feed,tn.Recommendations,tn.PostAfter,tn.TopicFeed].includes(t)?cs.Post:cs.Link}}ma=new WeakMap,va=new WeakMap,Qu=new WeakMap;const jr=new wU,Bm="vc";var fr;class _U{constructor(t){Fe(this,fr);this.transport=t}get boosterUid(){return jr.getBoosterUid()}set boosterUid(t){jr.updateBoosterUid(t)}get categories(){return jr.getCategories()}set categories(t){jr.updateCategories(t)}async getRelevantAdvert(t,n){if(fe(this,fr)!==void 0)return await fe(this,fr),await this.getRelevantAdvert(t,n);n.length>0&&(this.categories=n),lt(this,fr,this.getAdvert(t,this.categories));const s=await fe(this,fr);return lt(this,fr,void 0),s}hit(t,n){const s=this.categories[0];this.transport.post(`a/${t}/hits`,{boosterUid:this.boosterUid,site:Bm,place:n,category:s})}click(t,n,s){const i=this.categories[0];this.transport.post(`a/${t}/click`,{boosterUid:this.boosterUid,site:Bm,place:n,target:s,category:i})}async getAdvert(t,n){const s=jr.getAdvert(t);if(s!==void 0)return s;const i=await this.transport.get("a/relevant/many",{boosterUid:this.boosterUid,site:Bm,category:n[0],v:2});this.boosterUid=i.boosterUid,jr.updateAdverts(i.adverts);const o=jr.getAdvert(t);if(o===void 0)throw new Error("Advert not found");return o}}fr=new WeakMap;class kU extends i0{async get(t,n){const s=await super.get(t,n);if(!s.success)throw new Error(s.message);return s.data}}function SU(e){return new vU(new _U(new kU({hostname:"https://booster.osnova.io"})))}class CU{constructor(t,n){var s,i,o;this.subsiteRepository=t,this.eventBus=n,(s=this.eventBus)==null||s.addEventListener(ci,({detail
120:r})=>{r.session===null?this.anonymizeSubsites():this.clearSubsites()}),(i=this.eventBus)==null||i.addEventListener(f0,({detail:r})=>{if(r.updatedData===null){this.subsiteRepository.refreshSubsiteById(r.id);return}const a=["name","description","nickname","avatar","cover","coverY"],l={};a.forEach(c=>{var d;const u=(d=r.updatedData)==null?void 0:d[c];u!==void 0&&(l[c]=u)}),this.updateSubsite(r.id,l)}),(o=this.eventBus)==null||o.addEventListener(_0,({detail:r})=>{this.subsiteRepository.refreshSubsiteById(r.recipientUserId)})}async loadSubsiteWith(t,n){return await this.subsiteRepository.getSubsite(t,n)}updateSubsite(t,n){this.subsiteRepository.updateSubsite(t,n)}async complain(t,n){return await this.subsiteRepository.complain(t,n)}async searchMentions(t){return await this.subsiteRepository.searchMentions(t)}clearMentionsCache(t){this.subsiteRepository.clearMentionsCache(t)}async search(t,n,s){return await this.subsiteRepository.search(t,n,s)}clearFoundSubsites(){this.subsiteRepository.clearFoundSubsites()}async getSubscribers(t,n=!1){return await this.subsiteRepository.getSubscribers(t,n)}clearSubscribers(){this.subsiteRepository.clearSubscribers()}async getPermissionsForSubsiteId(t){return await this.subsiteRepository.getPermissionsForSubsiteId(t)}async getTopByType(t,n,s){return await this.subsiteRepository.getTopByType(t,n,s)}async getStats(t){return await this.subsiteRepository.getStats(t)}anonymizeSubsites(){this.subsiteRepository.anonymizeSubsites()}clearSubsites(){this.subsiteRepository.clearSubsites()}}class EU{constructor(){le(this,"itemsByQuery",new Map)}set(t,n){this.itemsByQuery.set(t,n)}get(t){return this.itemsByQuery.get(t)}clear(t){t!==void 0?this.itemsByQuery.delete(t):this.itemsByQuery.clear()}}class lE{constructor(){le(this,"promise",null)}async handle(t){if(this.promise!==null)return await this.promise;try{return this.promise=t(),await this.promise}finally{this.promise=null}}isOngoing(){return this.promise!==null}}var hr;class xU{constructor(){Fe(this,hr,new Map)}get(t){let n=fe(this,hr).get(t);if(n===void 0&&(n=new Tn,fe(this,hr).set(t,n),fe(this,hr).size>10)){const s=fe(this,hr).keys().next().value;s!==void 0&&fe(this,hr).delete(s)}return n}}hr=new WeakMap;var pr,Ma,ag,cE;class TU{constructor(){Fe(this,Ma);Fe(this,pr,new Ql(20,18e4))}async resolveSubsite(t,n){const s=Gt(this,Ma,ag).call(this,t);return s!==void 0?s:Gt(this,Ma,cE).call(this,await n())}updateSubsite(t,n){const s=Gt(this,Ma,ag).call(this,t);s!==void 0&&Object.assign(s,n)}anonymize(){fe(this,pr).getAll().forEach(([,t])=>{t.value.isSubscribed=!1,t.value.isSubscribedToNewPosts=!1,t.value.isMuted=!1})}clear(){fe(this,pr).clear()}}pr=new WeakMap,Ma=new WeakSet,ag=function(t){return typeof t=="number"?fe(this,pr).get(t):fe(this,pr).find(n=>n.uri===`/${t}`)},cE=function(t){const n=bt(t);return fe(this,pr).put(t.id,n),n};var ga,Tl,Al,lf;class AU extends dc{constructor(n,s,i=()=>new TU){super();Fe(this,Al);le(this,"mentionsStore");Fe(this,ga);Fe(this,Tl,new Map);le(this,"subscribersStore");this.transport=n,this.hydrationStore=s,this.createStore=i}get subsiteSearchStore(){return fe(this,ga)===void 0&<(this,ga,new xU),fe(this,ga)}async getSubsite(n,s=!0){return n=Ea(n.toString()).value,await this.store.resolveSubsite(n,async()=>s?await Gt(this,Al,lf).call(this,n,s):await this.hydrationStore.hydrate(`subsite@${n}`,async()=>await Gt(this,Al,lf).call(this,n,s)))}async refreshSubsiteById(n){const s=await Gt(this,Al,lf).call(this,n);this.store.updateSubsite(n,s)}updateSubsite(n,s){this.store.updateSubsite(n,s)}anonymizeSubsites(){this.store.anonymize()}clearSubsites(){this.store.clear()}async complain(n,s){return await this.transport.post("subsite/complaint",{subsite_id:n,reason_id:s},{auth:"strict",apiVersion:"v2.4"})}async searchMentions(n=""){this.mentionsStore===void 0&&(this.mentionsStore=new EU);const s=this.mentionsStore.get(n);if(s!==void 0)return s;const i="subsite:search";this.transport.abort(i);const o=n.length>0?{q:n}:void 0,r=await this.transport.get("users/mentions",o,{apiVersion:"v2.9",abortToken:i,auth:"probe"});return this.mentionsStore.set(n,r),r}clearMentionsCache(n){var s;(s=this.mentionsStore)==null||s.clear(n)}async search(n,s,i){const o=this.subsiteSearchStore.get(`${n}:${s}`);i&&o.reset();const r=`subsite:search:${s}`;this.transport.abort(r);const a=await this.transport.get("search/subsites",{q:n,type:s,...o.nextChunkOptions},{abortToken:r,apiVersion:"v2.51",auth:"probe"});
120return o.processChunk({items:a.items.map(l=>l.data),lastId:a.lastId,lastSortingValue:a.lastSortingValue.toString()}),o.items}clearFoundSubsites(){lt(this,ga,void 0)}async getTopByType(n,s=!1,i){const o=(i==null?void 0:i.widget)!==void 0?`top@${n}@widget@${i.widget}`:`top@${n}`,r=async()=>{try{const a=await this.transport.get(`discovery/${n}`,i,{apiVersion:"v2.7",auth:s?"probe":void 0,ssrReady:!s});return s||a.forEach(({data:l})=>{l.isAnonymized=!0}),a}catch(a){return console.error(a),[]}};return s?await r():await this.hydrationStore.hydrate(o,r)}async getSubsiteList(n){return await n.store.resolve(async s=>await this.transport.get(n.endpoint,{...s,subsiteId:n.id},{auth:"probe",apiVersion:"v2.5"}),{isFromStart:n.isResetPagination})}async getSubscribers(n,s=!1){return this.subscribersStore===void 0&&(this.subscribersStore=new Tn),await this.getSubsiteList({id:n,isResetPagination:s,endpoint:"subsite/subscribers",store:this.subscribersStore})}clearSubscribers(){var n;(n=this.subscribersStore)==null||n.reset(),this.subscribersStore=void 0}async getPermissionsForSubsiteId(n){return(await this.transport.get("subsite/etcControls",{id:n},{apiVersion:"v2.4",auth:"probe"})).etcControls}async getStats(n){return await this.transport.get("subsite/stats",{key:n},{auth:"strict",apiVersion:"v2.5"})}}ga=new WeakMap,Tl=new WeakMap,Al=new WeakSet,lf=async function(n,s=!0){fe(this,Tl).has(n)||fe(this,Tl).set(n,new lE);const i=fe(this,Tl).get(n);if(i===void 0)throw new Error("Unable to initialize subsite request handler");return await i.handle(async()=>{const o="subsite",r=`${typeof n=="number"?`subsite?id=${n}`:`subsite?uri=${n}`}&markdown=false`;return this.transport.abort(o),await this.transport.get(r,void 0,{apiVersion:"v2.7",auth:s?"probe":void 0,ssrReady:!s,abortToken:o})})};function PU({transport:e,hydrationStore:t,eventBus:n}){return new CU(new AU(e,t),n)}function RU(){const e=P([]),t=P([]),n=P(0);return{get items(){return e.value},get importantItems(){return t.value},get lastId(){var s;return(s=ai(e.value))==null?void 0:s.group_id},get unseenCount(){return n.value},set unseenCount(s){n.value=s},add(s){e.value.push(...s)},addImportant(s){t.value.push(...s)},reset(){e.value=[],t.value=[]},read(s){if(s===void 0){e.value.forEach(o=>o.status=bh.Read);return}const i=e.value.find(o=>o.id===s);i!==void 0&&(i.status=bh.Read)}}}var hs=(e=>(e[e.PostLiked=2]="PostLiked",e[e.CommentLiked=4]="CommentLiked",e[e.CommentAdded=8]="CommentAdded",e[e.CommentReplied=16]="CommentReplied",e[e.CommentMention=32]="CommentMention",e[e.PostPublished=64]="PostPublished",e[e.PlusGifted=256]="PlusGifted",e[e.CommentDonated=512]="CommentDonated",e[e.UserDonated=1024]="UserDonated",e[e.PostDonated=2048]="PostDonated",e[e.AchievementUnlocked=4096]="AchievementUnlocked",e[e.CommentCreatorDonated=8192]="CommentCreatorDonated",e[e.PostOpens=16384]="PostOpens",e[e.GiftReceived=32768]="GiftReceived",e))(hs||{});class IU extends dc{constructor(n,s,i){super();le(this,"onNewNotificationEvent",n=>{this.store.unseenCount=n.counter});
120this.transport=n,this.realtimeTransport=s,this.createStore=i}get unseenCount(){return this.store.unseenCount}get importantItems(){return this.store.importantItems}async getItems(n=!1){n&&this.store.reset();const s={html:!0,is_read:1};this.store.lastId!==void 0&&(s.last_id=this.store.lastId);const i=await this.transport.get("subsite/me/updates",s,{auth:"strict"});return this.store.unseenCount=0,this.store.add(i),this.store.items}markItemAsRead(n){this.markAsRead([n]),this.store.read(n)}markAllAsRead(){this.markAsRead(),this.store.read()}async loadUnseenState(){const n=await this.transport.get("subsite/me/updates/count",void 0,{auth:"strict"});this.store.unseenCount=n.count,n.importantNotifications!==void 0&&n.importantNotifications.length>0&&this.store.addImportant(n.importantNotifications)}markAsRead(n){const s=n!==void 0?{notificationIds:JSON.stringify(n)}:{all:!0};this.transport.post("subsite/notifications/markAsRead",s,{auth:"strict"})}enableRealtimeUpdates(n){if(this.realtimeTransport===null)return;const s=this.realtimeTrans
120port.subscribe(`mobile:${n}`);[hs.PostLiked,hs.CommentLiked,hs.CommentAdded,hs.CommentReplied,hs.CommentMention,hs.PostPublished,hs.PlusGifted,hs.CommentDonated,hs.UserDonated,hs.PostDonated,hs.CommentCreatorDonated,hs.AchievementUnlocked,hs.PostOpens,hs.GiftReceived].forEach(o=>{s(o,this.onNewNotificationEvent)})}disableRealtimeUpdates(n){var s;(s=this.realtimeTransport)==null||s.unsubscribe(`mobile:${n}`),this.store.unseenCount=0}resetUnseenCount(){this.store.unseenCount=0}decrementUnseenCount(){this.store.unseenCount<1||(this.store.unseenCount-=1)}}class MU{constructor(t,n){var s;this.notificationsRepository=t,this.eventBus=n,(s=this.eventBus)==null||s.addEventListener(ZS,i=>{this.notificationsRepository.resetUnseenCount()})}get unseenCount(){return this.notificationsRepository.unseenCount}get importantItems(){return this.notificationsRepository.importantItems}async load(t=!1){var s;const n=await this.notificationsRepository.getItems(t);return t&&((s=this.eventBus)==null||s.dispatchEvent(new j$)),n}markItemAsRead(t){this.notificationsRepository.markItemAsRead(t)}markAllAsRead(){this.notificationsRepository.markAllAsRead()}async loadUnseenState(){return await this.notificationsRepository.loadUnseenState()}enableNotificationsUpdates(t){this.notificationsRepository.enableRealtimeUpdates(t)}disableNotificationsUpdates(t){this.notificationsRepository.disableRealtimeUpdates(t)}decrementUnseenCount(){this.notificationsRepository.decrementUnseenCount()}}
120function $U({transport:e,realtimeTransport:t,eventBus:n}){const s=new IU(e,t,()=>RU());return new MU(s,n)}var Fi,Ju;class LU{constructor(){Fe(this,Fi,Xn("discovery-recent",[]));Fe(this,Ju)}getRecent(){return fe(this,Fi).value}addToRecent(t){this.removeFromRecent(t),fe(this,Fi).value.unshift(t),fe(this,Fi).value=fe(this,Fi).value.slice(0,10)}removeFromRecent(t){fe(this,Fi).value=fe(this,Fi).value.filter(n=>typeof t=="string"?n!==t:!No(n,t))}get categories(){return fe(this,Ju)}set categories(t){lt(this,Ju,t)}clearRecent(){fe(this,Fi).value=[]}}Fi=new WeakMap,Ju=new WeakMap;const o_="discovery:assistant:ask";class OU extends dc{constructor(t,n,s=()=>new LU){super(),this.transport=t,this.hydrationStore=n,this.createStore=s}getRecent(){return this.store.getRecent()}addToRecent(t){this.store.addToRecent(t)}removeFromRecent(t){this.store.removeFromRecent(t)}async getCategories(){const t=async()=>await this.transport.get("discovery/categories",void 0,{ssrReady:!0});return this.store.categories===void 0&&(this.store.categories=await this.hydrationStore.hydrate("discovery/categories",t)),this.store.categories}clearRecent(){this.store.clearRecent()}async getAnswer(t){return this.transport.abort(o_),await this.transport.get("assistant/ask",t,{abortToken:o_,auth:"probe"})}async sendAssistantFeedback(t){await this.transport.post("assistant/feedback",t,{auth:"strict"})}}class BU{constructor(t){this.repository=t}getRecent(){return this.repository.getRecent()}addToRecent(t){this.repository.addToRecent(t)}removeFromRecent(t){this.repository.removeFromRecent(t)}async getCategories(){return await this.repository.getCategories()}async getAnswer(t){return await this.repository.getAnswer(t)}async sendAssistantFeedback(t){return await this.repository.sendAssistantFeedback(t)}clearRecent(){this.repository.clearRecent()}}function DU({transport:e,hydrationStore:t}){const n=new OU(e,t);return new BU(n)}class NU{constructor(t){this.repository=t}async getChannels(t){return await this.repository.getChannels(t)}async getChannel(t){return await this.repository.getChannel(t)}async getMessages(t,n=0,s=30){return await this.repository.getMessages(t,n,s)}async send(t,n){await this.repository.addMessage(t,n)}enableRealtimeUpdates(t){this.repository.enableRealtimeUpdates(t)}disableRealtimeUpdates(){this.repository.disableRealtimeUpdates()}async resetUnreadMessagesCountForChannel(t){await this.repository.resetUnreadMessagesCountForChannel(t)}getState(){return this.repository.getState()}}class FU{constructor(){le(this,"channels",bt(new Map));le(this,"messages",bt(new Map));le(this,"state",bt({unreadCounter:void 0}));le(this,"channelsPaginationPageLoaded",0)}addChannel(t){this.channels.set(t.id,t)}updateChannel(t){this.channels.set(t.id,t)}addMessages(t,n,s=0){const i=this.messages.get(t)??[],o=i.findIndex(r=>r.dtCreated===s);o!==-1?i.splice(o,0,...n):i.push(...n),this.messages.set(t,i)}updateMessageById(t,n,s){const i=this.messages.get(t)??[],o=i.findIndex(r=>
120r.id===n);o!==-1&&(i[o]=s,this.messages.set(t,i))}removeMessage(t,n){const s=this.messages.get(t)??[],i=s.findIndex(o=>o.id===n);i!==-1&&(s.splice(i,1),this.messages.set(t,s))}getMessages(t,n=0){const s=this.messages.get(t)??[];return n===0?s:s.filter(i=>i.dtCreated<n)}isNonceUsed(t,n){return(this.messages.get(t)??[]).some(i=>"idTmp"in i&&i.idTmp===n)}getChannelsPageNumber(){return this.channelsPaginationPageLoaded}setChannelsPageNumber(t){this.channelsPaginationPageLoaded=t}setUnreadCounter(t){this.state.unreadCounter=t}}var x0=(e=>(e[e.Sent=0]="Sent",e[e.Delivered=1]="Delivered",e[e.Read=2]="Read",e[e.Error=-1]="Error",e))(x0||{}),Rn=(e=>(e[e.Default=0]="Default",e[e.AddMembers=1]="AddMembers",e[e.KickMember=2]="KickMember",e[e.EditPicture=3]="EditPicture",e[e.LeaveChannel=4]="LeaveChannel",e[e.CreateChannel=5]="CreateChannel",e[e.EditChannel=6]="EditChannel",e[e.JoinChannel=7]="JoinChannel",e))(Rn||{});function UU(){return Math.floor(Math.random()*1e6)}class HU extends dc{constructor(t,n,s){super(),this.transport=t,this.realtimeTrans
120port=n,this.createStore=s}async getChannels(t){if(!t&&this.store.channels.size!==0)return this.store.channels;let n=1;t&&(n=this.store.getChannelsPageNumber());const s=await this.transport.get("m/channels",{page:n},{auth:"strict"});this.store.setChannelsPageNumber(n+1);for(const i of s.channels)this.store.addChannel(i);return this.store.channels}async getChannel(t){const n=this.store.channels.get(t);if(n!==void 0)return n;const s=await this.transport.get("m/channel",{id:t},{auth:"strict"});return this.store.addChannel(s.channel),s.channel}async getMessages(t,n=0,s){const i=this.store.getMessages(t,n);if(i.length>=s)return{messages:i,loadedCount:i.length};n===0&&(n=i.length>0?i[0].dtCreated:0);const o=await this.transport.get("m/messages",{channelId:t,beforeTime:n},{auth:"strict"});return this.store.addMessages(t,o.messages,n),{messages:this.store.getMessages(t),loadedCount:o.messages.length}}async addMessage(t,n){const s=UU(),i=this.store.channels.get(t);if(i===void 0)throw new Error("Channel is not loaded");const o={...n,id:s.toString(),type:Rn.Default,idTmp:s,removed:!1,status:x0.Sent,channel:i};this.saveMessageWithNonce(t,o,s,i);try{const r=await this.transport.post("m/send",{channelId:t,text:o.text,media:JSON.stringify(o.media),idTmp:o.idTmp,ts:o.dtCreated},{auth:"strict"});this.saveMessageWithNonce(t,r.message,s,r.channel,o.id)}catch(r){throw this.store.removeMessage(t,o.id),r}}
120enableRealtimeUpdates(t){if(this.realtimeTransport===null)return;this.realtimeTransport.subscribe(`m:${t}`)("messenger_event",i=>{switch(i.action){case"addMessage":{this.saveMessageWithNonce(i.channelId,i.message,i.idTmp,i.channel);break}}"counter"in i&&this.store.setUnreadCounter(i.counter)})}disableRealtimeUpdates(){var t;(t=this.realtimeTransport)==null||t.unsubscribe("live")}saveMessageWithNonce(t,n,s,i,o){const r=Object.assign(n,{idTmp:s});Pa(o)?this.store.updateMessageById(t,o,r):Pa(s)&&!this.store.isNonceUsed(t,s)&&this.store.addMessages(t,[r]);const a={...i,lastMessage:r};this.store.channels.has(t)===void 0?this.store.addChannel(a):this.store.updateChannel(a)}async resetUnreadMessagesCountForChannel(t){await this.transport.post("m/markAsRead",{channelId:t},{auth:"strict"});const n=this.store.channels.get(t);n!==void 0&&this.store.updateChannel({...n,unreadCount:0})}async loadUnreadCounter(){const t=await this.transport.get("m/counter",void 0,{auth:"strict"});this.store.setUnreadCounter(t.counter)}getState(){return this.store.state.unreadCounter===void 0&&this.loadUnreadCounter(),this.store.state}}
120function VU({transport:e,realtimeTransport:t}){const n=new HU(e,t,()=>new FU);return new NU(n)}class zU{constructor(t){this.repository=t}async getRates(){return await this.repository.getRates()}async loadCurrencyGraph(t,n){return await this.repository.loadCurrencyGraph(t,n)}}class WU{constructor(){le(this,"currencies",null)}setCurrencies(t){this.currencies=t}getCurrencies(){return this.currencies}}class jU{constructor(t,n){le(this,"store",new WU);le(this,"ratesLoadingHandler",new lE);this.transport=t,this.hydrationStore=n}async getRates(){const t=this.store.getCurrencies();return t!==null?t:await this.ratesLoadingHandler.handle(async()=>{const n=await this.hydrationStore.hydrate("finance/currencies",async()=>await this.transport.get("finance/currencies",void 0,{ssrReady:!0}));return this.store.setCurrencies(n),n})}async loadCurrencyGraph(t,n){return await this.transport.get(`finance/rates/${t.toLowerCase()}/${n}`)}}function GU(e){const t=new jU(e.transport,e.hydrationStore);return new zU(t)}class qU{constructor(t){this.repository=t}get isEnabled(){return this.repository.isEnabled}getAll(){return this.repository.getAll()}async load(t){await this.repository.load(t)}hit(t,n){this.repository.hit(t,n)}sort(){this.repository.sort()}}var mr,ba,Ph,Zu,Hl,dE,fE;class uE{constructor(){Fe(this,Hl);Fe(this,mr,P([]));Fe(this,ba,Xn("viewed-story-sets",[]));Fe(this,Ph,30);Fe(this,Zu,!1);Gt(this,Hl,fE).call(this)}get isEnabled(){return fe(this,Zu)}get items(){return fe(this,mr).value}setItems(t,n){n?(fe(this,mr).value=Gt(this,Hl,dE).call(this,t),this.sort()):fe(this,mr).value=t}markSetAsViewed(t,n){const s=fe(this,mr).value.find(i=>i.id===t);s===void 0||s.isViewed||(s.isViewed=!0,n&&(fe(this,ba).value.unshift(t),fe(this,ba).value.length=Math.min(fe(this,ba).value.length,fe(this,Ph))))}sort(){fe(this,mr).value.sort((t,n)=>t.isViewed!==n.isViewed?t.isViewed?1:-1:n.datePublished-t.datePublished)}}mr=new WeakMap,ba=new WeakMap,Ph=new WeakMap,Zu=new WeakMap,Hl=new WeakSet,dE=function(t){return t.map(n=>({...n,isViewed:fe(this,ba).value.includes(n.id)}))},fE=function(){const t=pt().resolve("CookieManager"),n="is-stories-enabled-v3",s="is-stories-enabled-v4",i=t.get(s),o=i!==void 0?i==="true":Math.random()<.3;i===void 0&&t.set(s,o.toString()),t.delete(n),lt(this,Zu,o)};class KU extends dc{constructor(t,n=()=>new uE){super(),this.transport=t,this.createStore=n}get isEnabled(){return this.store.isEnabled}getAll(){return this.store.items}async load(t){this.store.setItems([],!1);const n=await this.transport.get("stories",void 0,{auth:t?void 0:"strict"});this.store.setItems(n,t)}hit(t,n){const s=Object.fromEntries(Object.entries(t).filter(([,i])=>i!==void 0));"ids"in s&&Array.isArray(s.ids)&&(s.ids=`[${s.ids.toString()}]`),this.transport.post("stories/hit",s,{auth:"probe"}),t.type==="Story"&&this.store.markSetAsViewed(t.storySetId,n)}sort(){this.store.sort()}}function YU(e){return new qU(new KU(e.transport,()=>new uE))}class XU{constructor({hostname:t}){le(this,"socket");le(this,"isInitializing",!1);le(this,"subscriptions",[]);le(this,"logsEnabled",!1);le(this,"hostname");this.hostname=t,this.logsEnabled=!1}
120async init(){if(this.isInitializing)return;this.isInitializing=!0;const t=(await Ce(async()=>{const{default:n}=await import("./index-XXxJKW7u.js").then(s=>s.i);return{default:n}},__vite__mapDeps([68,3]))).default;this.socket=t(this.hostname,{transports:["websocket"],reconnectionDelay:1e4,randomizationFactor:.618,reconnectionDelayMax:6e4}),this.socket.connect(),this.socket.on("connect",()=>{this.log("connected"),this.listenChannelsSubscribed()}),this.socket.on("error",n=>{this.log("error",!0),console.error(n)}),this.socket.on("disconnect",()=>{this.log("disconnected")}),this.socket.on("reconnect",()=>{this.log("reconnected"),this.listenChannelsSubscribed()}),this.socket.on("event",n=>{const{channel:s}=n;this.subscriptions.filter(i=>i.channel===s&&i.event===n.data.type).forEach(i=>{this.log(`${i.channel} ð ${JSON.stringify(n.data)}`),i.callback(n.data)})}),this.isInitializing=!1,this.log("initialized")}subscribe(t){return this.log(`subscribing to ${t.toString()}`),this.socket===void 0&&!this.isInitializing?this.init():this.subscriptions.find(s=>s.channel===t)===void 0&&this.listenChannel(t),(n,s)=>{this.log(`subscribed to "${n}" event`);const i=s;this.subscriptions.push({channel:t,event:n,callback:i})}}unsubscribe(t){if(this.log(`unsubscribing from ${t.toString()}`),this.socket!==void 0){if(this.subscriptions.find(s=>s.channel===t)===void 0)return;this.socket.emit("unsubscribe",{channel:t})}this.subscriptions=this.subscriptions.filter(n=>n.channel!==t),this.log(`unsubscribed from ${t.toString()}`)}listenChannelsSubscribed(){const t=this.subscriptions.map(s=>s.channel);[...new Set(t)].forEach(s=>{this.listenChannel(s)})}listenChannel(t){if(this.socket===void 0){this.log(`listening to ${t.toString()}: socket is not initialized`);return}this.socket.emit("subscribe",{channel:t}),this.log(`subscribed to "${t.toString()}" channel`)}log(t,n=!1){!this.logsEnabled&&!n||oi("Socket",os.LightBlue,t)}}var Pl;class QU{constructor(){Fe(this,Pl,new Map);if(!this.isInstalled()){Yt.getInstance().log("SW Manager failed to initialize: service worker is not installed. "+("serviceWorker"in navigator?" Controller is null":" Service worker is not supported"));return}navigator.serviceWorker.addEventListener("message",this.onMessage.bind(this))}isInstalled(){return"serviceWorker"in navigator&&navigator.serviceWorker.controller!==null}async performTask(t,n){return await new Promise((s,i)=>{var r;const o=Vs(6);(r=navigator.serviceWorker.controller)==null||r.postMessage({task:t,payload:n,nonce:o}),fe(this,Pl).set(o,{resolve:s,reject:i})})}onMessage(t){const n=t.data,{result:s,nonce:i}=n,o=fe(this,Pl).get(i);if(o!==void 0){switch(s){case"success":o.resolve(n.payload);break;case"error":o.reject(new Error(n.error.message??"Unknown error"));break}fe(this,Pl).delete(i)}}}Pl=new WeakMap;class JU{constructor(t){le(this,"transport");
120le(this,"realtimeTransport");le(this,"eventBus");le(this,"hydrationStore");le(this,"serviceWorkerManager");le(this,"modules",{});this.eventBus=this.createEventBus(),this.serviceWorkerManager=this.createServiceWorkerManager(),this.hydrationStore=this.createHydrationStore(t),this.transport=this.createCommonTransport(),this.realtimeTransport=this.createCommonRealtimeTransport(),this.registerModuleInitOptions(),this.initModules()}initModules(){const n=pt().resolve("ModuleInitOptions"),s=C9(n),i=mU(n),o=PU(n),r=SU(),a=$U(n),l=DU(n),c=VU(n),u=GU(n),d=YU(n);this.modules={[Oe.Core]:s.core,[Oe.Entry]:i.entry,[Oe.Feed]:i.feed,[Oe.Comments]:i.comments,[Oe.Editor]:i.editor,[Oe.Quiz]:i.quiz,[Oe.Subsite]:o,[Oe.Advert]:r,[Oe.Notifications]:a,[Oe.Discovery]:l,[Oe.Messenger]:c,[Oe.Finance]:u,[Oe.Stories]:d}}registerModuleInitOptions(){pt().register("ModuleInitOptions",()=>({transport:this.transport,eventBus:this.eventBus,realtimeTransport:this.realtimeTransport,hydrationStore:this.hydrationStore,serviceWorkerManager:this.serviceWorkerManager}))}createCommonTransport(){const t={hostname:"https://api.vc.ru",credentials:"include"},n="".trim(),s="".trim();if(q(n)&&q(s)){const i="Basic "+btoa(`${n}:${s}`);t.headers===void 0?t.headers={Authorization:i}:t.headers.Authorization=i}return t.headers===void 0?t.headers={Pwa:"1"}:t.headers.Pwa="1",new p7(t,[new o0(this.eventBus,this.serviceWorkerManager)])}createCommonRealtimeTransport(){return new XU({hostname:"https://ws-sio.vc.ru"})}createEventBus(){return new Q$({broadcast:"osnova-events"})}createHydrationStore(t){return new WO(t)}createServiceWorkerManager(){return new QU}}function ZU(e){const t=pt();return t.register("ModuleInitializer",()=>new JU(e)),t.resolve("ModuleInitializer")}function eH(){const t=pt().resolve("ModuleInitializer");return t===void 0&&console.error("Attempt to access app modules before initializing"),t.modules}function vt(){return eH()}const tH={class:"mute"},nH={class:"mute__options"},sH=J({__name:"Mute",props:{content:{},submitHandler:{type:Function}},setup(e){const t=e,{t:n}=Ne(),s=P(br.Single),i=P(!1),o=C(()=>t.content.author.id===t.content.subsite.id&&t.content.subsite.type===_t.Blog),r=C(()=>{const l=[{label:n("entry.entry.mute.single.description"),value:br.Single},{label:n("entry.entry.mute.allFromAuthor.description"),value:br.AllFromAuthor}];return o.value||l.push({label:n("entry.entry.mute.allFromSubsite.description"),value:br.AllFromSubsite}),l});async function a(){var l;await((l=t.submitHandler)==null?void 0:l.call(t,s.value))}return(l,c)=>(_(),T("div",tH,[O("div",nH,[(_(!0),T(ye,null,We(r.value,u=>(_(),L(f(dC),{key:u.value,modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=d=>s.value=d),value:u.value,caption:u.label,disabled:i.value},null,8,["modelValue","value","caption","disabled"]))),128))]),A(f(qe),{size:"l",disabled:i.value,onClick:a},{default:K(()=>[xe(Y(f(n)("shared.done")),1)]),_:1},8,["disabled"])]))}}),iH={class:"unpublish"},oH={class:"unpublish__actions"},rH=J({__name:"Unpublish",props:{content:{},submitHandler:{type:Function},cancelHandler:{type:Function}},setup(e){const t=e,{t:n}=Ne(),s=P(),i=P(""),o=P(!1),r=P(),a=C(()=>i.value.trim().length===0);async function l(){var c;if(!a.value){r.value=void 0;try{o.value=!0,await((c=t.submitHandler)==null?void 0:c.call(t,i.value))}catch(u){r.value=u.message}finally{o.value=!1}}}return je(()=>{var c;(c=s.value)==null||c.focus()}),(c,u)=>(_(),T("div",iH,[A(f(cC),{ref_key:"textarea",ref:s,modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=d=>i.value=d),placeholder:f(n)("entry.entry.remove.specifyReason"),disabled:o.value,error:r.value},null,8,["modelValue","placeholder","disabled","error"]),O("div",oH,[A(f(qe),{size:"l",disabled:o.value||a.value,onClick:l},{default:K(()=>[xe(Y(f(n)("entry.entry.remove.submit")),1)]),_:1},8,["disabled"]),A(f(qe),{size:"l",type:"secondary",onClick:e.cancelHandler},{default:K(()=>[xe(Y(f(n)("shared.cancel")),1)]),_:1},8,["onClick"])])]))}});var sr=(e=>(e.All="comments",e.Single="comment",e.Reply="reply",e))(sr||{});const aH=/-[a-z0-9._-]*/,lg=new RegExp([Te.Popular+"\\b",Te.My+"\\b",Te.New+"\\b"].join("|")),lH=new RegExp(Object.values(rs).join("|")),cH=new RegExp([It.New,It.Hotness,It.Month,It.Year,It.All].join("|")),r_="me",{servicePages:uH}=Gs();function dH(e){if(!q(e))return"";const t=q5(e);return t.length>0?`-${t}`:""}function gn(e,t,n){const{uri:s}=e;let i=`/${sn(e)}`;return q(s)&&(i=s.startsWith("/")?s:`/${s}`),t!==void 0&&(i+=`/${t}`),n!==void 0&&(i+=`/${n}`),i}function Fn(e){const t=e.id,n=uH.find(o=>o.id===t);if(n!==void 0)return`/${n.name.toLowerCase()}`;const s=q(e.customUri)&&/^[a-z0-9_-]+$/i.test(e.customUri)?`-${e.customUri}`:dH(e.title);return e.subsite===void 0?`/${t}${s}`:`${gn(e.subsite)}/${t}${s}`}
120function fc(e,t,n){let i=typeof e=="string"?e:Fn(e);return t===void 0||t===0?i+="#comments":(i+=`?comment=${t}`,n===!0&&(i+="#reply")),i}function hE(e,t,n,s){const o={path:typeof e=="string"?e:Fn(e),force:s,replace:s,query:{},hash:""};return o.hash="#comments",o}function pE(e){return`/tag/${e.replace(/^#/,"").toLowerCase()}`}function fH(e,t){const n=encodeURIComponent(e),s=encodeURIComponent("");return`tg://msg_url?url=${n}&text=${s}`}const $s=yt(e=>{const{[Oe.Entry]:t}=vt(),n=ct(),{t:s,tf:i}=Ne(),{open:o,close:r}=Wt(),{recallAfterAuth:a}=ws(),{alert:l,AlertType:c}=fn(),{copy:u}=Qh(),{user:d,isPlusSubscriber:h,isMe:p}=Ye(),{confirm:m}=zb(),v=d0(),{proceedToGiftsList:g}=vd(),{block:b,unblock:w,subscribeTo:k,isSubscribedTo:y}=Nr(),{isAppModuleEnabled:S}=Gs(),E=[{icon:"unsubscribe",label:s("subsite.etc.unsubscribe"),handler:async Q=>{await k(Q.data.author.id,!1)},filter:Q=>(Q==null?void 0:Q.data.isPublished)===!0&&Q.data.author.type===_t.Blog&&y(Q.data.author.id)},{icon:"like",label:s("shared.reactions.title"),handler:async Q=>{if(v!==void 0&&!h.value){await n.push({name:"Plus",params:{source:Ln.ReactionVoters}});return}o(C0,{getter:async ge=>(await ke(Q.data.id,void 0,{isFromStart:ge})).items,onItemSelect:r},{title:s("shared.reactions.title")})},filter:Q=>(Q==null?void 0:Q.data.isPublished)===!0&&(Q==null?void 0:Q.data.isLikesEnabled)},{icon:"rouble",label:s("donations.title"),handler:async Q=>{o(JC,{getter:async ge=>(await Se(Q.data.id,{isFromStart:ge})).items,onItemSelect:r},{title:s("donations.title")})},filter:Q=>S("donations")&&(Q==null?void 0:Q.data.isPublished)===!0&&(Q==null?void 0:Q.data.author.isDonationsEnabled)},{value:"gift",icon:"gift",label:s("shared.etc.gift"),handler:async Q=>{await(g==null?void 0:g(Q.data.author,{source:Ln.GiftPostEtc,context:{postId:Q.data.id}}))},filter:Q=>q(g)&&q(Q)&&!p(Q.data.author.id)&&Q.data.author.type===_t.Blog&&Q.data.author.isPlusGiftEnabled}
120,{icon:"flag",label:s("shared.etc.complain"),handler:async Q=>{await N(Q.data.id)},filter:Q=>{var ge;return(Q==null?void 0:Q.data.isPublished)===!0&&Q.data.author.id!==((ge=d.value)==null?void 0:ge.id)}},{icon:"spoiler",label:s("shared.etc.hide"),handler:V,filter:Q=>{var ge;return(Q==null?void 0:Q.isShort)===!0&&(Q==null?void 0:Q.data.isPublished)&&Q.data.author.id!==((ge=d.value)==null?void 0:ge.id)}},{icon:"spoiler",labelFactory:Q=>Q.data.author.isMuted?s("shared.etc.unblock"):s("shared.etc.block"),handler:async Q=>{Q.data.author.isMuted?await j(Q.data.author,!1,!1):await j(Q.data.author)},filter:Q=>{var ge;return(Q==null?void 0:Q.isShort)===!1&&(Q==null?void 0:Q.data.isPublished)&&Q.data.author.id!==((ge=d.value)==null?void 0:ge.id)}},{permission:nr.Edit,icon:"pen",label:s("shared.etc.edit"),handler:async Q=>{await X(Q.data.id)}},{icon:"rocket",label:s("shared.etc.boost"),handler:async Q=>{const ae=`https://ads.vc.ru/cabinet/constructor?contentUrl=${mi(encodeURIComponent(Fn(Q.data)))}&sites=vc`;vi(ae,"_blank")},filter:Q=>q("https://ads.vc.ru/cabinet/constructor")&&(Q==null?void 0:Q.data.isPublished)===!0&&!Q.data.isGame},{permission:nr.Pin,icon:"pin",labelFactory:Q=>Q.data.isPinned?s("shared.etc.unpin"):s("shared.etc.pin"),handler:async Q=>{const ge=!Q.data.isPinned;await U(Q.data.id,Q.data.author.id,ge)},filter:Q=>(Q==null?void 0:Q.data.isPublished)===!0},{permission:nr.Unlink,icon:"ban",label:s("shared.etc.unpublish"),handler:async Q=>{await R(Q)},filter:Q=>(Q==null?void 0:Q.data.isPublished)===!0&&Q.data.author.id!==Q.data.subsite.id},{permission:nr.HideFromFeed,icon:"discovery",label:s("shared.etc.hideFromFeeds"),handler:async Q=>{await H(Q)}},{permission:nr.Moderate,icon:"my_feed",label:s("shared.etc.moderatePost"),handler:async Q=>{vi(mi(`/admin/posts/${Q.data.id}`),"_blank")}},{permission:nr.Moderate,icon:"subs",label:s("shared.etc.moderateUser"),handler:async Q=>{vi(mi(`/admin/users/${Q.data.author.id}`),"_blank")}},{permission:nr.Remove,icon:"delete",label:s("shared.etc.remove"),handler:async Q=>{await G(Q)}}],{getContextActions:x}=Cp(E,{requestPermissions:async Q=>await t.getPermissionsForEntryId(Q.data.id)});function M(Q){const ge=`Post â Share${Q.isFloating===!0?" Floating":""}
120`,ie=[{icon:"link",label:s("shared.etc.copyLink"),gtm:[`${ge} â Copy Link â Click`,{Location:Q.location}],action:async()=>{await I(Q),await t.saveShareForPostId(Q.data.id,await de())}},{icon:"plane",label:s("shared.etc.shareInTelegram"),gtm:[`${ge} â Telegram â Click`,{Location:Q.location}],action:async()=>{const ae=mi(Fn(Q.data));vi(fH(ae),"_blank"),await t.saveShareForPostId(Q.data.id,await de())}}];return Q.isFloating===!0&&ie.push({icon:Q.data.isFavorited?"bookmark_active":"bookmark",label:Q.data.isFavorited?s("entry.bookmarks.button.activeTitle"):s("entry.bookmarks.button.inactiveTitle"),gtm:[`${ge} â Bookmark â Click`,{Location:Q.location}],action:async()=>{await ue(Q.data.id,!Q.data.isFavorited)}}),ie.push({icon:"repost",label:s("entry.entry.repost"),url:`/editor/repost/${Q.data.id}`,gtm:[`${ge} â Repost â Click`,{Location:Q.location}]}),ie}async function I(Q){const ge=window.location.origin+Fn(Q.data);await u(ge),l({type:c.Success,text:s("shared.linkCopied")})}async function N(Q,ge=!0){return await new Promise(ie=>{o(g0,{isShowSuccessAlert:ge,submitHandler:async ae=>{const pe=await de();await a(async()=>await t.complain(Q,ae,pe)),ie(),r()}}
120,{title:s("shared.etc.complain")})})}async function V(Q){return await new Promise(ge=>{o(sH,{content:Q.data,submitHandler:async ie=>{switch(ie){case br.Single:await $(Q.data.id);break;case br.AllFromAuthor:await j(Q.data.author);break;case br.AllFromSubsite:await j(Q.data.subsite)}ge(),r()}},{title:s("shared.etc.hide")})})}async function $(Q){const ge=await de();await a(async()=>await t.toggleMute(Q,!0,ge)),l({text:s("entry.entry.mute.single.success"),type:c.Success,button:{text:s("shared.cancel"),action:async()=>await t.toggleMute(Q,!1,ge)}})}async function j(Q,ge,ie=!0){ie?(await b(Q,{onCancel:()=>{Q.isMuted=!1}}),Q.isMuted=!0):(await w(Q,{onCancel:()=>{Q.isMuted=!0}}),Q.isMuted=!1)}async function X(Q){await n.push({name:"Editor",params:{action:"edit",id:Q}})}async function U(Q,ge,ie){await a(async()=>await t.pin(Q,ge,ie)),l({text:s("shared.done"),type:c.Success})}async function R(Q){return await new Promise(ge=>{o(rH,{content:Q.data,submitHandler:async ie=>{await t.unpublishEntryById(Q.data.id,ie),r(),l({type:c.Success,text:s("entry.entry.remove.success")}),Q.data.subsite=Q.data.author,ge()},cancelHandler:()=>{r()}},{title:s("shared.etc.unpublish")})})}async function G(Q){try{await m({title:s("shared.etc.remove")});try{await t.removeEntryById(Q.data.id),l({type:c.Success,text:s("shared.done")}),typeof(e==null?void 0:e.onRemove)=="function"&&(e==null||e.onRemove(Q.data.id))}catch{l({type:c.Error,text:s("shared.errorText")})}}catch{}}async function H(Q){const ge=await de();await t.hideFromFeeds(Q.data.id,ge),l({type:c.Success,text:s("shared.done")})}async function se(Q,ge){const ie=await de();try{await a(async()=>await t.toggleReaction(Q,ge,ie))}catch(ae){if(ae instanceof DOMException&&ae.name==="AbortError")return;ae instanceof Error&&l({type:c.Error,text:i(`shared.reactions.errors.${ae.message}`,"shared.unknownError")})}}async function ue(Q,ge){const ie=await de();await a(async()=>await t.toggleBoookmark(Q,ge,ie))}async function de(){const Q=(e==null?void 0:e.fromFeed)!==void 0?JP(e.fromFeed):void 0;return await Ro().getPayload(Q)}async function ke(Q,ge,ie){return await t.getReactorsList(Q,ge,ie)}async function Se(Q,ge){return await t.getDonatorsList(Q,ge)}async function _e(Q){await t.refreshPostSummaryById(Q)}return{getContextActions:x,getShareActions:M,toggleReaction:se,toggleBookmark:ue,getReactors:ke,getDonators:Se,refreshSummary:_e}},()=>({getContextActions:async()=>await Promise.resolve([]),getShareActions:()=>[],toggleReaction:async()=>await Promise.resolve(),toggleBookmark:async()=>await Promise.resolve(),getReactors:async()=>await Promise.resolve({items:[],clear:()=>{}}),getDonators:async()=>await Promise.resolve({items:[],clear:()=>{}}),refreshSummary:async()=>await Promise.resolve()})),mE=Symbol("Content id"),T0=Symbol("Entry counters"),hc=Symbol("Entry is short"),vE=Symbol("Entry is embed"),A0=Symbol("Content comments visit"),Rp=Symbol("Should show subscribe button"),Ip=Symbol("Content location"),hH=Symbol("Content author id"),gd=Symbol("Content title"),pH=Symbol("Content url"),gE=Symbol("Content title tag name"),bE=Symbol("Content categories"),yE=Symbol("Block is hidden"),mH=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,vH=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,gH=/^([/\\]\s*){2,}[^/\\]/,bH=/^\.?\//;function P0(e,t={}){return typeof t=="boolean"&&(t={acceptRelative:t}),t.strict?mH.test(e):vH.test(e)||(t.acceptRelative?gH.test(e):!1)}function cg(e="",t){return e.endsWith("/")}function wE(e="",t){return(cg(e)?e.slice(0,-1):e)||"/"}function _E(e="",t){return e.endsWith("/")?e:e+"/"}function yH(e,t){if(wH(t)||P0(e))return e;const n=wE(t);if(e.startsWith(n)){const s=e[n.length];if(!s||s==="/"||s==="?")return e}return kE(n,e)}function wH(e){return!e||e==="/"}function _H(e){return e&&e!=="/"}function kE(e,...t){let n=e||"";for(const s of t.filter(i=>_H(i)))if(n){const i=s.replace(bH,"");n=_E(n)+i}else n=s;return n}function Gie(e){return e}function kH(e){return{"@id":typeof e!="string"?e["@id"]:e}}function qie(e){try{const t=e instanceof Date?e:new Date(Date.parse(e)),n=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0");return`${t.getFullYear()}-${n}-${s}`}catch{}return typeof e=="string"?e:e.toString()}const SH=[/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,/^\d{4}-[01]\d-[0-3]\d$/,/^\d{4}-[01]\d$/,/^\d{4}$/];function CH(e){return SH.some(t=>t.test(e))}function Kie(e){if(!e)return e;try{return e instanceof Date?e.toISOString():CH(e)?e:new Date(Date.parse(e)).toISOString()}catch{}return typeof e=="string"?e:e.toString()}const Yie="#identity";function ug(e,t,n){!(e!=null&&e[t])&&n&&(e[t]=n)}function Ul(e){return Array.isArray(e)?e:[e]}function Xie(e,t,n){const s=new Set(Ul(e[t]));
120s.add(n),e[t]=[...s].filter(Boolean)}function Dm(e,t){return P0(t)?t:(t.includes("#")||(t=`#${t}`),`${e||""}${t}`)}function Qie(e,t){if(!e)return e;if(e.length>t){const n=e.substring(0,t);return n.substring(0,Math.min(n.length,n.lastIndexOf(" ")))}return e}function Jie(e,t){const n=e["@type"];if(n===t)return;if(typeof n=="string"&&typeof t=="string"){n!==t&&(e["@type"]=[t,n]);return}const s=new Set(Ul(t));for(const i of Ul(n))s.add(i);e["@type"]=s.size===1?n:[...s]}function EH(e,t){return!t||P0(t)||t[0]!=="/"&&t[0]!=="#"?t:yH(t,e)}function cf(e){return e&&e.substring(e.lastIndexOf("#"))}function SE(e){for(const t in e){if(!Object.hasOwn(e,t))continue;const n=e[t];if(n===""||n===null||n===void 0)delete e[t];else if(typeof n=="object"&&n!==null){if(n.__v_isReadonly||n.__v_isRef)continue;SE(n)}}return e}const CE={alias:"image",cast(e){return typeof e=="string"&&(e={url:e}),e},defaults:{"@type":"ImageObject"},inheritMeta:["inLanguage"],idPrefix:"host",resolve(e,{meta:t}){return e.url=EH(t.host,e.url),ug(e,"contentUrl",e.url),e.height&&!e.width&&delete e.height,e.width&&!e.height&&delete e.width,e}},xH={__proto__:null,imageResolver:CE};function TH(e,t){return e.nodeIdCounters[t]=(e.nodeIdCounters[t]||0)+1,e.nodeIdCounters[t].toString()}function EE(e){return!e.host&&e.canonicalHost&&(e.host=e.canonicalHost),!e.tagPosition&&e.position&&(e.tagPosition=e.position),!e.currency&&e.defaultCurrency&&(e.currency=e.defaultCurrency),!e.inLanguage&&e.defaultLanguage&&(e.inLanguage=e.defaultLanguage),e.path||(e.path="/"),!e.host&&typeof document<"u"&&(e.host=document.location.host),!e.url&&e.canonicalUrl&&(e.url=e.canonicalUrl),e.path!=="/"&&(e.trailingSlash&&!cg(e.path)?e.path=_E(e.path):!e.trailingSlash&&cg(e.path)&&(e.path=wE(e.path))),e.url=kE(e.host||"",e.path),{...e,host:e.host,url:e.url,currency:e.currency,image:e.image,inLanguage:e.inLanguage,title:e.title,description:e.description,datePublished:e.datePublished,dateModified:e.dateModified}}function xE(e,t,n){if(n!=null&&n.cast&&(e=n.cast(e,t)),n!=null&&n.defaults){let i=n.defaults;typeof i=="function"&&(i=i(t)),e={...i,...e}}const s=n==null?void 0:n.inheritMeta;if(s)for(let i=0;i<s.length;i++){const o=s[i];typeof o=="string"?ug(e,o,t.meta[o]):ug(e,o.key,t.meta[o.meta])}n!=null&&n.resolve&&(e=n.resolve(e,t));for(const i in e){const o=e[i];if(Array.isArray(o))for(let r=0;r<o.length;r++){const a=o[r];typeof a=="object"&&(a!=null&&a._resolver)&&(e[i][r]=vu(a,t,a._resolver))}else typeof o=="object"&&(o!=null&&o._resolver)&&(e[i]=vu(o,t,o._resolver))}return SE(e),e}function dg(e,t,n,s=!1){var a,l,c,u;if(e["@id"]&&e["@id"].startsWith("http"))return e;const i=n&&(Array.isArray(n.idPrefix)?n.idPrefix[0]:n.idPrefix)||"url",o=e["@id"]||(n?Array.isArray(n.idPrefix)?(a=n.idPrefix)==null?void 0:a[1]:void 0:"");if(!e["@id"]&&s&&o)return e["@id"]=Dm(t.meta[i],o),e;if((l=e["@id"])!=null&&l.startsWith("#/schema/")||(c=e["@id"])!=null&&c.startsWith("/"))return e["@id"]=Dm(t.meta[i],e["@id"]),e;let r=n==null?void 0:n.alias;return r||(r=(((u=Ul(e["@type"]))==null?void 0:u[0])||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()),e["@id"]=Dm(t.meta[i],`#/schema/${r}/${e["@id"]||TH(t,r)}`),e}function vu(e,t,n,s={}){var r;if(!e)return e;const i=Ul(e),o=[];for(let a=0;a<i.length;a++){const l=i[a];let c=0;for(const h in l)c++;if(c===1&&l["@id"]||c===2&&l["@id"]&&l["@type"]){o.push(dg({"@id":((r=t.find(l["@id"]))==null?void 0:r["@id"])||l["@id"]},t));continue}let u=n;if(l._resolver&&typeof l._resolver!="string"&&(u=l._resolver,delete l._resolver),!u){o.push(l);continue}let d=xE(l,t,u);if(s.afterResolve&&s.afterResolve(d),(s.generateId||s.root)&&(d=dg(d,t,u,!1)),s.root){u.resolveRootNode&&u.resolveRootNode(d,t),t.push(d),o.push(kH(d["@id"]));continue}o.push(d)}return!s.array&&o.length===1?o[0]:o}const AH=new Set(["__proto__","constructor","prototype"]);function wh(e,t){if(!t)return e;for(const n in t){if(!Object.hasOwn(t,n)||AH.has(n))continue;const s=t[n];if(s!==void 0)if(Array.isArray(e[n]))if(Array.isArray(s)){const i=[...e[n],...s];if(n==="@type")e[n]=[...new Set(i)];else if(n==="itemListElement"){i.sort((o,r)=>(o.position||0)-(r.position||0));for(let o=0;o<i.length;o++)i[o].position=o+1;e[n]=i}else if(n==="potentialAction"){const o=Object.create(null);for(const r of i){const a=r["@type"];if(o[a]){if(r.target&&o[a].target){const l=Array.isArray(o[a].target)?o[a].target:[o[a].target],c=Array.isArray(r.target)?r.target:[r.target];o[a].target=[...new Set([...l,...c])]}}else o[a]={...r}}e[n]=Object.values(o)}else e[n]=i}else e[n]=wh(e[n],[s]);else e[n]&&typeof e[n]=="object"&&typeof s=="object"&&!Array.isArray(s)?e[n]=wh({...e[n]},s):e[n]=s}return e}function a_(e,t){if(!t["@id"])return;const n=t["@id"],s=cf(n);e.set(s,t),e.set(n,t);const i=n.replace(/(https?:)?\/\//,"").split("/")[0];e.set(i,t)}function PH(){const e={find(t){let n=i=>i;t[0]==="#"?n=cf:t[0]==="/"&&(n=i=>i.replace(/(https?:)?\/\//,"").split("/")[0]);const s=n(t);
120return e.nodeIndex.size>0?e.nodeIndex.get(s)||null:e.nodes.filter(i=>!!i["@id"]).find(i=>n(i["@id"])===s)},push(t){Ul(t).forEach(n=>{const s=n;e.nodes.push(s),e.nodeIndex.size>0&&a_(e.nodeIndex,s)})},resolveGraph(t){var l;for(const c in e.nodeIdCounters)delete e.nodeIdCounters[c];e.meta=EE({...t});const n=e.nodes.length;for(let c=0;c<n;c++){let u=e.nodes[c];const d=u._resolver;u=xE(u,e,d),u=dg(u,e,d,!0),e.nodes[c]=u}const s=Object.create(null);e.nodeIndex=new Map;for(let c=0;c<e.nodes.length;c++){const u=e.nodes[c],d=cf(u["@id"]);s[d]&&u._dedupeStrategy!=="replace"?s[d]=wh(s[d],u):s[d]=u}e.nodes=Object.values(s);for(let c=0;c<e.nodes.length;c++)a_(e.nodeIndex,e.nodes[c]);const i=e.nodes.length;for(let c=0;c<e.nodes.length;c++){const u=e.nodes[c];u.image&&typeof u.image=="string"&&(u.image=vu(u.image,e,CE,{root:!0})),u.translationOfWork=vu(u.translationOfWork,e),u.workTranslation=vu(u.workTranslation,e),(l=u._resolver)!=null&&l.resolveRootNode&&u._resolver.resolveRootNode(u,e),delete u._resolver}const o=e.nodes.length>i,r=o?Object.create(null):null,a=o?null:[];for(let c=0;c<e.nodes.length;c++){const u=e.nodes[c],d=cf(u["@id"]),h=Object.keys(u),p=[],m=[];for(let g=0;g<h.length;g++){const b=h[g];if(b[0]==="_")continue;const w=u[b];w!==null&&(Array.isArray(w)||typeof w=="object")?m.push(b):p.push(b)}p.sort(),m.sort();const v={};for(let g=0;g<p.length;g++)v[p[g]]=u[p[g]];for(let g=0;g<m.length;g++)v[m[g]]=u[m[g]];
120o?r[d]=r[d]?wh(r[d],v):v:a.push(v)}return o?Object.values(r):a},nodes:[],nodeIndex:new Map,nodeIdCounters:Object.create(null),meta:{}};return e}const Nm={},RH={address:()=>Ce(()=>import("./index28-D2B98dBU.js"),[]),aggregateOffer:()=>Ce(()=>import("./index-Bdsenh-A.js"),__vite__mapDeps([69,70,71])),aggregateRating:()=>Ce(()=>import("./index2-B8m2GAo1.js"),[]),article:()=>Ce(()=>import("./index3-DMVoTICJ.js"),__vite__mapDeps([72,73,74,75,76])).then(function(e){return e.l}),breadcrumb:()=>Ce(()=>import("./index3-DMVoTICJ.js"),__vite__mapDeps([72,73,74,75,76])).then(function(e){return e.i}),comment:()=>Ce(()=>import("./index5-ClhSFosZ.js"),__vite__mapDeps([77,72,73,74,75,76])),course:()=>Ce(()=>import("./index6-BRgIZ37N.js"),__vite__mapDeps([78,72,73,74,75,76])),dataset:()=>Ce(()=>import("./index7-B0L0q73x.js"),__vite__mapDeps([79,72,73,74,75,76])),event:()=>Ce(()=>import("./index10-CSJ0vmnw.js"),__vite__mapDeps([80,70,71,72,73,74,75,76,81,82])),foodEstablishment:()=>Ce(()=>import("./index11-OhI6njjr.js"),__vite__mapDeps([83,84,85,72,73,74,75,76,86])),virtualLocation:()=>Ce(()=>import("./index9-DhfZlXFu.js"),[]),place:()=>Ce(()=>import("./index8-3sSyKaGq.js"),__vite__mapDeps([81,74])),howTo:()=>Ce(()=>import("./index13-DHCL1uQm.js"),__vite__mapDeps([87,72,73,74,75,76,88])),howToStep:()=>Ce(()=>import("./index12-C0__GUgG.js"),[]).then(function(e){return e.i}),image:()=>Promise.resolve().then(function(){return xH}),localBusiness:()=>Ce(()=>import("./index17-A5il1dRe.js"),__vite__mapDeps([84,85,72,73,74,75,76])),offer:()=>Ce(()=>import("./index23-BuXygzda.js"),__vite__mapDeps([70,71])),openingHours:()=>Ce(()=>import("./index24-BRbdM7Ip.js"),[]),organization:()=>Ce(()=>import("./index3-DMVoTICJ.js"),__vite__mapDeps([72,73,74,75,76])).then(function(e){return e.h}),person:()=>Ce(()=>import("./index3-DMVoTICJ.js"),__vite__mapDeps([72,73,74,75,76])).then(function(e){return e.k}),product:()=>Ce(()=>import("./index29-CiAbnHp7.js"),__vite__mapDeps([89,69,70,71,90,91,72,73,74,75,76,86])),question:()=>Ce(()=>import("./index30-nmmgaLEa.js"),__vite__mapDeps([92,72,73,74,75,76])),recipe:()=>Ce(()=>import("./index31-DLcLRY3W.js"),__vite__mapDeps([93,72,73,74,75,76,88])),review:()=>Ce(()=>import("./index32-HAPD0ky5.js"),__vite__mapDeps([91,72,73,74,75,76,86])),video:()=>Ce(()=>import("./index38-B_6QAkWd.js"),[]),webPage:()=>Ce(()=>import("./index3-DMVoTICJ.js"),__vite__mapDeps([72,73,74,75,76])).then(function(e){return e.j}),webSite:()=>Ce(()=>import("./index3-DMVoTICJ.js"),__vite__mapDeps([72,73,74,75,76])).then(function(e){return e.g}),book:()=>Ce(()=>import("./index4-Bn20rCeZ.js"),[]),itemList:()=>Ce(()=>import("./index14-tIlHKUa7.js"),__vite__mapDeps([94,73])),jobPosting:()=>Ce(()=>import("./index15-CgxWl9S1.js"),__vite__mapDeps([95,71,72,73,74,75,76,81])),listItem:()=>Ce(()=>import("./index16-CPkCaJSg.js"),[]),movie:()=>Ce(()=>import("./index18-Dkew9UcX.js"),__vite__mapDeps([96,90,72,73,74,75,76,91,86,97])),musicAlbum:()=>Ce(()=>import("./index19-Ddf2o8Xe.js"),__vite__mapDeps([98,90,72,73,74,75,76,91,86])),musicGroup:()=>Ce(()=>import("./index20-C2vRf4_4.js"),__vite__mapDeps([99,72,73,74,75,76])),musicPlaylist:()=>Ce(()=>import("./index21-BPiVN2Sd.js"),__vite__mapDeps([100,90,72,73,74,75,76])),musicRecording:()=>Ce(()=>import("./index22-DqCY78IQ.js"),__vite__mapDeps([101,90,72,73,74,75,76])),podcastEpisode:()=>Ce(()=>import("./index25-BzpmcQet.js"),__vite__mapDeps([102,90,72,73,74,75,76,91,86])),podcastSeason:()=>Ce(()=>import("./index26-Dc8ciUBQ.js"),__vite__mapDeps([103,90,72,73,74,75,76])),podcastSeries:()=>Ce(()=>import("./index27-B_EZBSEG.js"),__vite__mapDeps([104,90,72,73,74,75,76])),searchAction:()=>Ce(()=>import("./index40-DLQkwbBi.js"),[]),readAction:()=>Ce(()=>import("./index39-DX2aW2hZ.js"),[]),service:()=>Ce(()=>import("./index33-B998HOhV.js"),__vite__mapDeps([105,90,70,71,91,72,73,74,75,76,86])),softwareApp:()=>Ce(()=>import("./index34-BIvXFXt_.js"),__vite__mapDeps([106,90,70,71,91,72,73,74,75,76,86])),tvEpisode:()=>Ce(()=>import("./index35-D_ogFho5.js"),__vite__mapDeps([107,90,72,73,74,75,76,91,86,97])),tvSeason:()=>Ce(()=>import("./index36-CTTB4tiA.js"),__vite__mapDeps([108,90,72,73,74,75,76,97])),tvSeries:()=>Ce(()=>import("./index37-6sX8s_UU.js"),__vite__mapDeps([109,90,72,73,74,75,76,97])),bookEdition:()=>Ce(()=>import("./index4-Bn20rCeZ.js"),[])},IH={address:"addressResolver",aggregateOffer:"aggregateOfferResolver",aggregateRating:"aggregateRatingResolver",article:"articleResolver",breadcrumb:"breadcrumbResolver",comment:"commentResolver",course:"courseResolver",dataset:"datasetResolver",event:"eventResolver",foodEstablishment:"foodEstablishmentResolver",virtualLocation:"virtualLocationResolver",place:"placeResolver",howTo:"howToResolver",howToStep:"howToStepResolver",image:"imageResolver",localBusiness:"localBusinessResolver",offer:"offerResolver",openingHours:"openingHoursResolver",organization:"organizationResolver",person:"personResolver",product:"productResolver",question:"questionResolver",recipe:"recipeResolver",review:"reviewResolver",video:"videoRes
120olver",webPage:"webPageResolver",webSite:"webSiteResolver",book:"bookResolver",itemList:"itemListResolver",jobPosting:"jobPostingResolver",listItem:"listItemResolver",movie:"movieResolver",musicAlbum:"musicAlbumResolver",musicGroup:"musicGroupResolver",musicPlaylist:"musicPlaylistResolver",musicRecording:"musicRecordingResolver",podcastEpisode:"podcastEpisodeResolver",podcastSeason:"podcastSeasonResolver",podcastSeries:"podcastSeriesResolver",searchAction:"searchActionResolver",readAction:"readActionResolver",service:"serviceResolver",softwareApp:"softwareAppResolver",tvEpisode:"tvEpisodeResolver",tvSeason:"tvSeasonResolver",tvSeries:"tvSeriesResolver",bookEdition:"bookEditionResolver"};async function MH(e){if(Nm[e])return Nm[e];const t=RH[e];if(!t)return null;const n=await t(),s=IH[e],i=n[s]||n.default;return i&&(Nm[e]=i),i||null}const TE=new Set(["__proto__","constructor","prototype"]);async function fg(e){if(!e||typeof e!="object")return;const t=[];if(typeof e._resolver=="string"){const n=e._resolver;t.push(MH(n).then(s=>{s&&(e._resolver=s)}))}for(const n in e){if(!Object.hasOwn(e,n)||TE.has(n))continue;const s=e[n];if(s&&typeof s=="object")if(Array.isArray(s))for(const i of s)t.push(fg(i));else t.push(fg(s))}await Promise.all(t)}function AE(e,t){const n={...e};for(const s in t){if(!Object.hasOwn(t,s)||t[s]===void 0||TE.has(s))continue;n[s]&&typeof n[s]=="object"&&typeof t[s]=="object"&&!Array.isArray(n[s])&&!Array.isArray(t[s])?n[s]=AE(n[s],t[s]):n[s]||(n[s]=t[s])}return n}function $H(e){return LH({},()=>({}))}function LH(e,t,n){e=EE({...e});let s,i={};return o=>(o.use(pM),{key:"schema-org",hooks:{"entries:normalize":async({tags:r})=>{s=s||PH();for(const a of r){if(a.tag==="script"&&a.props.type==="application/ld+json"&&a.props.nodes){const l=await a.props.nodes;for(const c of Array.isArray(l)?l:[l]){if(typeof c!="object"||Object.keys(c).length===0)continue;await fg(c);const u={...c,_dedupeStrategy:a.tagDuplicateStrategy};s.push(u)}a.tagPosition=a.tagPosition||e.tagPosition==="head"?"head":"bodyClose"}if(a.tag==="htmlAttrs"&&a.props.lang)i.inLanguage=a.props.lang;else if(a.tag==="title")i.title=a.textContent;else if(a.tag==="meta"&&a.props.name==="description")i.description=a.props.content;else if(a.tag==="link"&&a.props.rel==="canonical"){if(i.url=a.props.href,i.url&&!i.host)try{i.host=new URL(i.url).origin}catch{}}else a.tag==="meta"&&a.props.property==="og:image"?i.image=a.props.content:a.tag==="templateParams"&&a.props.schemaOrg&&(i={...i,...a.props.schemaOrg},delete a.props.schemaOrg)}},"tags:resolve":async r=>{for(const a in r.tags){const l=r.tags[a];if(l.tag==="script"&&l.props.type==="application/ld+json"&&l.props.nodes){delete l.props.nodes;const c=s.resolveGraph({...await(t==null?void 0:t())||{},...e,...i});if(!c.length){l.props={};return}l.innerHTML=JSON.stringify({"@context":"https://schema.org","@graph":c},(u,d)=>typeof d!="object"?Bc(d,o._templateParams,o._separator):d,0);return}}},"tags:afterResolve":r=>{let a;for(const l in r.tags){const c=r.tags[l];if(c!=null&&c.props&&(c.props.type==="application/ld+json"&&c.props.nodes||c.key==="schema-org-graph")){if(delete c.props.nodes,typeof a>"u"){a=l;continue}r.tags[a].props=AE(r.tags[a].props,c.props),delete r.tags[a].props.nodes,r.tags[l]=!1}}r.tags=r.tags.filter(Boolean)}}})}function qo(e,t){return e||(e={}),e._resolver=t,e}function OH(e){return qo(e,"breadcrumb")}function Zie(e){return qo(e,"comment")}function BH(e){return qo(e,"image")}function eoe(e){return qo(e,"offer")}function DH(e){return qo(e,"organization")}function NH(e){return qo(e,"webSite")}function toe(e){return qo(e,"course")}function noe(e){return qo(e,"itemList")}function soe(e){return qo(e,"listItem")}function l_(e){return e.script?e:{script:[{type:"application/ld+json",key:"schema-org-graph",nodes:e}]}}function FH(e=[],t={}){(t.head||Ub()).use($H());const s=nc(l_(e),t),i=s.patch;return s.patch=o=>i(l_(o)),s}const PE="{type}";function UH(e){return["fb","vk","tw"].reduce((n,s)=>(n[s]=e.replace(PE,s),n),{fb:"",vk:"",tw:""})}function R0(e){return`${q3}/#/${e}`}class HH{getImages(t){const n="v2.9";let s="general";switch(t==null?void 0:t.entityType){case"post":s=`c/${t.entityId}/${t.version}`;break;case"subsite":s=`s/${t.entityId}/${t.version}`;break;default:s="general"}return UH(`https://api.vc.ru/${n}/cover/${PE}/${s}/cover.jpg`)}}class VH{constructor(t){this.repository=t}getImages(t){return this.repository.getImages(t)}}function zH(){const e=pt();return e.isRegistered("SeoService")||e.register("SeoService",()=>{const t=new HH;return new VH(t)}),e.resolve("SeoService")}function Mp(e){return zH().getImages(e)}const hi=zt(()=>{const e=Mn(),t=(()=>
120{if(q('{"vk":"https://vk.com/vcru","fb":"https://www.facebook.com/vcrumedia","twitter":"https://twitter.com/vcru","telegram":"https://t.me/vcnews"}'))try{return Object.values(JSON.parse('{"vk":"https://vk.com/vcru","fb":"https://www.facebook.com/vcrumedia","twitter":"https://twitter.com/vcru","telegram":"https://t.me/vcnews"}'))}catch{return}})(),n=Mp(),s=dn(),i={title:"vc.ru â бизнеÑ, ÑеÑ
нологии, идеи, модели ÑоÑÑа, ÑÑаÑÑапÑ",meta:{description:"ÐÑÑпнейÑÐ°Ñ Ð² ÑÑнеÑе плоÑадка Ð´Ð»Ñ Ð¿ÑедпÑинимаÑелей нового поколениÑ. ÐовоÑÑи ÐТ-ÑÑнка, ваканÑии ÑÑнеÑа, Ñеклама, PR, инÑеÑÑейÑÑ, мобилÑнÑе пÑиложениÑ.",ogType:"website",ogLocale:"ru_RU",ogDescription:"ÐÑÑпнейÑÐ°Ñ Ð² ÑÑнеÑе плоÑадка Ð´Ð»Ñ Ð¿ÑедпÑинимаÑелей нового поколениÑ. ÐовоÑÑи ÐТ-ÑÑнка, ваканÑии ÑÑнеÑа, Ñеклама, PR, инÑеÑÑейÑÑ, мобилÑнÑе пÑиложениÑ.",ogImage:n.fb,ogImageType:"image/jpeg",twitterImage:n.tw,author:void 0},schema:[DH({"@id":"#organization",name:"vc.ru",description:"ÐÑÑпнейÑÐ°Ñ Ð² ÑÑнеÑе плоÑадка Ð´Ð»Ñ Ð¿ÑедпÑинимаÑелей нового поколениÑ. ÐовоÑÑи ÐТ-ÑÑнка, ваканÑии ÑÑнеÑа, Ñеклама, PR, инÑеÑÑейÑÑ, мобилÑнÑе пÑиложениÑ.",logo:BH({url:"/assets/logo.png"}),sameAs:t}),NH()],get canonicalUrl(){return s.path},vkImage:n.vk},o=P(i.title),r=P(i.vkImage),a=P("ru_RU"),l=P("ÐÑÑпнейÑÐ°Ñ Ð² ÑÑнеÑе плоÑадка Ð´Ð»Ñ Ð¿ÑедпÑинимаÑелей нового поколениÑ. ÐовоÑÑи ÐТ-ÑÑнка, ваканÑии ÑÑнеÑа, Ñеклама, PR, инÑеÑÑейÑÑ, мобилÑнÑе пÑиложениÑ."),c=P(i.canonicalUrl),u=P([]);d();function d(){nc({title:o,link:[{rel:"canonical",href:c}],meta:[{property:"vk:image",content:r,key:"vk:image"},{property:"og:locale",content:a,key:"og:locale"},{property:"og:description",content:l,key:"og:description"},{property:"og:image:type",content:"image/jpeg",key:"og:image:type"}]}),FH(u)}function h(k=i.title){o.value=k}function p(k=i.meta){a.value=m(k.ogLocale)??"ru_RU",l.value=m(k.ogDescription)??m(k.description)??"ÐÑÑпнейÑÐ°Ñ Ð² ÑÑнеÑе плоÑадка Ð´Ð»Ñ Ð¿ÑедпÑинимаÑелей нового поколениÑ. ÐовоÑÑи ÐТ-ÑÑнка, ваканÑии ÑÑнеÑа, Ñеклама, PR, инÑеÑÑейÑÑ, мобилÑнÑе пÑиложениÑ.";const y={ogSiteName:"vc.ru",ogImageWidth:600,ogImageHeight:315,twitterCard:"summary_large_image",ogUrl:c.value,ogTitle:o.value,...i.meta,...k,ogLocale:a.value,ogDescription:l.value,ogImageType:"image/jpeg"};bM(y)}function m(k){if(typeof k=="string"&&k!=="")return k}function v(k=i.schema){u.value=k}function g(k=i.canonicalUrl){c.value=(K3(k)?k:mi(k)).toLowerCase()}function b(k=i.vkImage){r.value=k}function w(k){e==null||e.appContext.app.runWithContext(()=>{h(k.title),g(k.canonicalUrl),b(k.vkImage),p(k.meta),v(k.schema)})}return{setPageProperties:w}}),WH=Object.freeze(Object.defineProperty({__proto__:null,composeSchemaNodeId:R0,useSeo:hi,useSeoImages:Mp},Symbol.toStringTag,{value:"Module"}));async function Ti(e){const{[Oe.Feed]:t}=vt(),{onUserUpdate:n,offUserUpdate:s,isAnon:i}=Ye(),{setPageProperties:o}=hi(),{catchError:r}=Lr(),a=C(()=>ce(e.type)),l=C(()=>ce(e.options)),c=C(()=>{if("referer"in l.value){const{referer:X,...U}=l.value;return U}return l.value}),u=P(),d=De([]),h=P(),p=P(),{canShow:m,close:v}=mL(),g=P(!1),b=P(!1),w=P(!1),k=P(!1),y=C(()=>d.value.length===0&&k.value),S=C(()=>!g.value&&!y.value);async function E(X){var U,R;try{const G=X.reset||a.value!==u.value;if(w.value&&!G)return;X.clear&&I(),b.value=!0,k.value=!1;const H=d.value.length;u.value=a.value,await r(async()=>{d.value=await t.loadEntries(a.value,l.value,X),b.value=!1}),h.value=t.getTotal(a.value),p.value=(U=t.getFeedMeta(a.value))==null?void 0:U.seenPostsCount,g.value=d.value.length===0,w.value=!G&&d.value.length===H,await((R=e.onAfterLoad)==null?void 0:R.call(e)),N()}catch(G){const H=G instanceof DOMException&&G.name==="AbortError",se=G instanceof Sp;if(H||se)return;k.value=!0,b.value=!1,tc("Feed loading error: "+G.message)}}async function x(){d.value.length!==0&&await E({reset:!1,clear:!1,includeUserData:!0}
120)}async function M(){await E({reset:!0,clear:!0,includeUserData:!0})}function I(){d.value=[],h.value=void 0,p.value=void 0,b.value=!1,g.value=!1,k.value=!1,w.value=!1}function N(){e.seo!==void 0&&o(e.seo({type:a.value,options:l.value,data:t.getFeedSeo(a.value),firstItem:d.value[0]}))}const V=({isAnon:X})=>{E({reset:!0,clear:!1,includeUserData:!0})},$=X=>{d.value=d.value.filter(U=>U.data.id!==X.detail.id)};bs(()=>{n(V),t.addEventListener("feed-post-removed",$)}),et(()=>{s(V),t.removeEventListener("feed-post-removed",$)}),La(()=>{N()}),be([a,c],([X,U],[R,G])=>{var H;X===R&&No(U,G)||(E({reset:!0,clear:!0,includeUserData:!0}),N(),(H=e.onOptionsChange)==null||H.call(e,a.value,l.value))}),N(),gt(Rp,e.isShowSubscribeButton??!0);async function j(){so()||await E({reset:!0,clear:!0,includeUserData:!1})}return await eo({onServer:j,onHydration:j,onAfterClientRender:async()=>{(d.value.length===0||!i.value)&&await E({reset:!0,clear:!1,includeUserData:!0})}}),{items:d,total:h,seenPostsCount:p,refresh:M,loadMore:x,isEmpty:g,isError:k,isLoading:b,isEnd:w,isFeedPresent:S,canShowViewedPosts:m,closeViewedPosts:v}}function jH(){const{[Oe.Feed]:e}=vt(),{isSubscribedTo:t}=Nr(),n=P(!1),s=P(!1),{onUserUpdate:i,offUserUpdate:o}=Ye(),r=({isAnon:c})=>{c&&(s.value=!1)};bs(()=>{i(r),e.onNewFeedEntry(a)}),et(()=>{o(r),e.offNewFeedEntry(a)});function a(c){n.value=!0,t(c.subsiteId)&&(s.value=!0)}function l(){n.value=!1,s.value=!1}return{hasNewPosts:n,hasMyNewPosts:s,reset:l}}const I0=Pn(jH),c_='link[rel="shortcut icon"], link[rel="icon"]',Wa=32,Tc=5,GH=8,qH=fi(()=>{let e=null,t=null;function n(){const a=document.querySelector(c_);return a instanceof HTMLLinkElement?a.href:null}function s(a){document.querySelectorAll(c_).forEach(l=>{l instanceof HTMLLinkElement&&(l.href=a)})}async function i(a){return await new Promise(l=>{const c=document.createElement("img");c.crossOrigin="anonymous",c.onload=()=>l(c),c.src=a,c.complete&&l(c)})}function o(a){const l=document.createElement("canvas"),c=l.getContext("2d");return l.width=Wa,l.height=Wa,c.drawImage(a,0,0,Wa,Wa),c.globalCompositeOperation="destination-out",c.beginPath(),c.arc(Wa-Tc,Tc,GH,0,2*Math.PI),c.fill(),c.globalCompositeOperation="source-over",c.beginPath(),c.arc(Wa-Tc,Tc,Tc,0,2*Math.PI),c.fillStyle="#f00",c.fill(),l.toDataURL("image/png")}async function r(a){if(e===null&&(e=n(),e===null))throw new Error("Favicon is not set");if(t===null){const l=await i(e);if(t=o(l),t===null)throw new Error("Cannot render dot over favicon")}s(a?t:e)}return{toggleAttention:r}},()=>({toggleAttention:async()=>{}}));function u_(e){return e!=null}function RE(e){const{user:t}=Ye(),{open:n,isOpened:s}=Wt(),{show:i}=Pp({caption:()=>sn(t.value),fromNotification:!0}),{show:o}=Ap({caption:()=>sn(t.value),fromNotification:!0,share:!0}),r=(()=>{if(q(e.achievement))return xn({uuid:e.achievement.previewUuid,size:36,color:"transparent"});if(e.type===rt.GiftReceived&&e.meta!==null&&e.meta!==void 0&&"giftType"in e.meta)return xn({uuid:e.meta.giftType.previewUuid,size:36,color:"transparent"});const p="users"in e?e.users[0]:void 0;return p!==void 0?xn({size:36,uuid:p.avatar_url}):void 0})(),a=(()=>{switch(e.type){case rt.CommentLike:case rt.PostLike:return"like_filled";case rt.CommentReply:return"reply_filled";case rt.NewComment:return"comment_filled";case rt.CommentMention:return"mention";case rt.NewSubscription:return"tick_filled";case rt.CommentDonate:case rt.UserDonate:case rt.PostDonate:case rt.CommentCreatorDonate:return"donate";case rt.PlusGift:return"gift_filled";default:return}})(),l=(()=>{switch(e.type){case rt.UserBanned:return"lock_full";case rt.PostUnpublished:return"sad";case rt.PostOpens:return"chart";default:return}})(),c=(()=>{switch(e.type){case rt.UserBanned:case rt.PostUnpublished:return"red";case rt.AchievementUnlocked:case rt.GiftReceived:case rt.PostOpens:return"brand";default:return}})(),u=(()=>{if(e.type===rt.PostLike||e.type===rt.CommentLike)return"red";if(e.type===rt.NewComment||e.type===rt.CommentReply)return"green";if(["blue","green","red"].includes(e.color))return e.color})(),d=(()=>{switch(e.type){case rt.PostOpens:return q(t.value)?gn({id:t.value.id},"stats"):void 0;case rt.PlusGift:return"?modal=plus";case rt.CommentLike:case rt.CommentReply:case rt.CommentMention:case rt.NewComment:case rt.CommentCreatorDonate:case rt.CommentDonate:return KH(e.url);case rt.UserDonate:return"?modal=donations";
120case rt.NewSubscription:return YH(e.url);case rt.PostPublished:case rt.PostDonate:case rt.PostLike:return hg(e.url);case rt.AchievementUnlocked:return;case rt.GiftReceived:return;case rt.UserBanned:return!("meta"in e)||e.meta===null||e.meta===void 0?XH(e.url):void 0;case rt.PostUnpublished:default:return"/"}})(),h=(()=>{switch(e.type){case rt.AchievementUnlocked:return async()=>{if(!q(e.achievement)||s.value)return!1;await(i==null?void 0:i(e.achievement))};case rt.GiftReceived:return async()=>{const p=e.meta;if(!u_(p))return!1;await(o==null?void 0:o(p.giftType,p))};case rt.UserBanned:return async()=>{const p=e.meta;if(!u_(p))return!1;const{default:m}=await Ce(async()=>{const{default:v}=await import("./Banned-DOttuKq4.js");return{default:v}},__vite__mapDeps([110,111]));n(m,{message:p.message,entity:{type:p.entityType,id:p.entityId}},{title:p.title})};default:return}})();return{image:r,icon:a,placeholderIcon:l,color:c,url:d,badgeBackgroundColor:u,action:h}}function KH(e){const t=hg(e),{searchParams:n}=new URL(e),s=n.get("comment");return s===null?t:fc(hg(e),parseInt(s,10))}function hg(e){const{pathname:t}=new URL(e),n=t.match(/^\/(([su]\/)?((\d+)-(.+))?|(.+)?)?\/(?<id>\d+)(-(?<title>.+))?$/);if((n==null?void 0:n.groups)===void 0)return t;const{id:s,title:i}=n.groups;return Fn({id:parseInt(s,10),title:i})}function YH(e){const{pathname:t}=new URL(e),n=t.match(/^\/(?:(?<type>[su])\/)?(?:(?<id>\d+)(?:-(?<name>[^/]+))|(?<uri>[a-z0-9_\-.]+)(?:\/\w+)*)$/);if((n==null?void 0:n.groups)===void 0)return e;const{id:s,uri:i}=n.groups;return gn({id:parseInt(s,10),uri:i})}function XH(e){const{pathname:t,searchParams:n,hash:s}=new URL(e);return`${t}${n.toString()}${s}`}function QH(){const{[Oe.Notifications]:e}=vt(),{user:t,onUserUpdate:n}=Ye(),{subscribeToNotifications:s}=Nr(),i=C(()=>e.unseenCount),o=De(),r=P(!1),a=P(!1);async function l(w=!1){var k;try{if(a.value&&!w)return;r.value=!0;const y=((k=o.value)==null?void 0:k.length)??0;o.value=await e.load(w),a.value=o.value.length===y}finally{r.value=!1}}async function c(){await l()}async function u(){await l(!0)}function d(w){e.markItemAsRead(w)}function h(){e.markAllAsRead()}async function p(w){var k;(k=o.value)==null||k.forEach(y=>{var S;((S=y.users[0])==null?void 0:S.id)===w&&(y.users[0].isSubscribedToNewPosts=!1)}),await s(w,!1,{onError:()=>{var y;(y=o.value)==null||y.forEach(S=>{var E;((E=S.users[0])==null?void 0:E.id)===w&&(S.users[0].isSubscribedToNewPosts=!0)})}})}function m(w){q(w)&&(e.enableNotificationsUpdates(w.userHash),e.loadUnseenState())}function v(w){q(w)&&(e.disableNotificationsUpdates(w.userHash),o.value=void 0)}const g=({to:w,from:k,isAnon:y})=>{y?v(k):m(w)},{toggleAttention:b}=qH();return be(i,()=>{b(i.value>0)}),Tr(e.importantItems,async w=>{if(w.length===0)return;const k=w[0],{action:y}=RE(k);(y===void 0?!1:await(y==null?void 0:y()))!==!1&&(d(k.id),e.decrementUnseenCount())},{debounce:100}),bs(()=>{m(t.value),n(g)}),{unseenCounter:i,items:o,isLoading:r,isEnd:a,loadMore:c,reload:u,markItemAsRead:d,markAllAsRead:h,unsubscribeFromSubsiteNotifications:p}}const $p=Pn(QH);function JH(e){const{[Oe.Quiz]:t}=vt(),{recallAfterAuth:n}=ws(),s=P(),i=P(),o=C(()=>typeof i.value=="string"),r=P(!1),a=ut(mE,0);async function l(){r.value=!0;try{const d=await t.getResults(e);s.value=d.items,i.value=d.userVoted,r.value=!1}finally{r.value=!1}}async function c(d){if(a===0){console.error("Missing content id");return}r.value=!0;try{const h=await n(async()=>await t.vote({hash:e,contentId:a,itemId:d}));s.value=h.items,i.value=h.userVoted}finally{r.value=!1}}async function u(){await c("")}return{results:s,userVotedKey:i,getResults:l,vote:c,revote:u,isVoted:o,isLoading:r}}const d_=2,ZH=30,eV=["text","audio"],tV=["media","video","audio"];function f_(e){return e===void 0?!1:eV.includes(e.type)}function pg(e){return e===void 0?!1:tV.includes(e.type)}function nV(e,t){return e===void 0||t===void 0?!1:f_(e)&&pg(t)||pg(e)&&f_(t)}function h_(e){return e===void 0?!1:e.type==="quiz"}function IE(e){return e===void 0||e.type!=="text"?!1:fh(e.data.text).length<ZH}function sV(e){return e.length<d_?e.length:h_(e[0])&&h_(e[1])||pg(e[0])&&!nV(e[0],e[1])?1:IE(e[2])?Math.min(3,e.length):Math.min(d_,e.length)}function iV(e){return e.slice(0,sV(e))}function ME(){const t=["text","list","header","quote","person","quiz"];function n(d,h){return K5(d,h)}function s(d,h={trim:350,hashtagify:!1}){let p=d;h.hashtagify&&(p=lS(p,pE));const m=h.trim!==!1&&p.length>h.trim;let v=null;return m&&(p=n(p,h.trim),v=d.length-p.length),{text:p,trimResult:{usedLe
120ngth:d.length-(v??0),isTrimmed:v!==null}}}function i(d,h,p="text"){const m=d.data[p],v=s(m,h);return{data:{...d.data,[p]:v.text},trimResult:v.trimResult}}function o(d,h){const p=[];let m=h.trim!==!1?h.trim:1/0,v=0,g=!1;for(const b of d.data.items){let w=b;if(m>0){const k=s(w,{hashtagify:h.hashtagify,trim:h.trim!==!1?m:!1});w=k.text,v+=k.trimResult.usedLength,k.trimResult.isTrimmed&&(g=!0),h.trim!==!1&&(m=Math.max(0,m-k.trimResult.usedLength)),p.push(w)}}return{data:{...d.data,items:p},trimResult:{usedLength:v,isTrimmed:g}}}function r(d,h){let p=h.trim!==!1?h.trim:1/0,m=0,v=!1;const g=s(d.data.title,{hashtagify:h.hashtagify,trim:h.trim!==!1?p:!1});m+=g.trimResult.usedLength,g.trimResult.isTrimmed&&(v=!0),h.trim!==!1&&(p=Math.max(0,p-g.trimResult.usedLength));const b={};for(const[w,k]of Object.entries(d.data.items)){if(p<=0&&h.trim!==!1){v=!0;break}const y=s(k,{hashtagify:h.hashtagify,trim:h.trim!==!1?p:!1});b[w]=y.text,m+=y.trimResult.usedLength,y.trimResult.isTrimmed&&(v=!0),h.trim!==!1&&(p=Math.max(0,p-y.trimResult.usedLength))}return{data:{...d.data,title:g.text,items:b,isTrimmed:v}
120,trimResult:{usedLength:m,isTrimmed:v}}}function a(d,h){const p={...d.data};let m=0,v=!1;const g=s(p.title,h);p.title=g.text,m+=g.trimResult.usedLength,g.trimResult.isTrimmed&&(v=!0);const b=s(p.description,{hashtagify:h.hashtagify,trim:h.trim!==!1?h.trim-m:!1});return p.description=b.text,m+=b.trimResult.usedLength,b.trimResult.isTrimmed&&(v=!0),{data:p,trimResult:{usedLength:m,isTrimmed:v}}}function l(d,h){const p=d.data.items.map(b=>({...b}));let m=0,v=!1,g=d.data.title;if(q(g)){const b=s(g,h);g=b.text,m+=b.trimResult.usedLength,b.trimResult.isTrimmed&&(v=!0)}for(const b of p)if(q(b.title)){const w=s(b.title,h);b.title=w.text,m+=w.trimResult.usedLength,w.trimResult.isTrimmed&&(v=!0)}return{data:{...d.data,title:g,items:p},trimResult:{usedLength:m,isTrimmed:v}}}function c(d,h){let p=null;switch(d.type){case"text":case"header":case"quote":p=i(d,h);break;case"list":{p=o(d,h);break}case"quiz":{p=r(d,h);break}case"person":{p=a(d,h);break}case"media":{p=l(d,h);break}case"video":p=i(d,h,"title");break}return p===null?{block:d,trimResult:null}:{block:{...d,data:p.data},trimResult:p.trimResult}}function u(d,h){const p=[];let m=350,v=!1;for(let g=0;g<d.length;g++){const b=d[g],w=h,k=d[g+1],y=t.includes((k==null?void 0:k.type)??""),S=g===1&&IE(k);if(w&&m<=0&&y&&!S)break;const{block:E,trimResult:x}=c(b,{trim:w?m:!1,hashtagify:!0});if(p.push(E),x!==null&&(m=Math.max(0,m-x.usedLength),x.isTrimmed)){v=!0;break}}return{blocks:p,isTrimmed:v}}return{prepareBlocksForDisplay:u,getBlocksForShortDisplay:iV,processText:s}}class $E extends Error{}function LE({isCancelPrevious:e=!0,isCancelOnUnmount:t=!0}={}){let n;async function s(i){return await new Promise((o,r)=>{e&&(n==null||n()),n=()=>{r(new $E("User canceled promise")),n=void 0},i.then(o).catch(r)})}return t&&et(()=>{n==null||n()}),{execute:s,cancel:()=>{n==null||n()}}}function oV(e,t,n=1){const{[Oe.Core]:s}=vt();s.getVisitsCountByKey(t)<n||(e(),s.clearVisitsCountByKey(t))}const M0=Pn(()=>{const{onUserUpdate:e,offUserUpdate:t,user:n}=Ye(),{[Oe.Messenger]:s}=vt(),i=P(void 0),o=C(()=>{var a;return(a=i.value)==null?void 0:a.unreadCounter}),r=a=>{q(a.to)&&(s.enableRealtimeUpdates(a.to.mHash),i.value=s.getState())};return je(()=>{q(n.value)?r({to:n.value}):e(r)}),et(()=>{t(r),s.disableRealtimeUpdates()}),{counter:o}});async function OE(e){const{[Oe.Comments]:t}=vt(),{isAnon:n}=Ye(),{catchError:s}=Lr(),i=C(()=>ce(e.key)),o=C(()=>ce(e.options)),r=P(),a=De(),l=C(()=>{var y;return((y=a.value)==null?void 0:y.items)??[]}),c=P(!1),u=P(!1),d=P(!1),h=P(!1),p=C(()=>l.value.length===0&&u.value),m=C(()=>!h.value&&!p.value);async function v(y){try{const S=y.reset||i.value!==r.value;if(d.value&&!S)return;y.clear&&k(),c.value=!0,u.value=!1;const E=l.value.length;r.value=i.value,await s(async()=>{typeof i.value=="number"?a.value=await t.getCommentsBySubsiteId(i.value,o.value.sorting,y):a.value=await t.getBookmarkedComments(y),c.value=!1}),h.value=l.value.length===0,d.value=!S&&l.value.length===E}catch(S){const E=S instanceof DOMException&&S.name==="AbortError",x=S instanceof Sp;if(E||x)return;u.value=!0,c.value=!1}}async function g(){l.value.length!==0&&await v({reset:!1,clear:!1,includeUserData:!0}
120)}async function b(){so()||await v({reset:!0,clear:!0,includeUserData:!1})}async function w(){await v({reset:!0,clear:!0,includeUserData:!0})}function k(){var y;(y=a.value)==null||y.reset(),a.value=void 0,c.value=!1,h.value=!1,u.value=!1,d.value=!1}return be([i,o],([y,S],[E,x])=>{y===E&&No(S,x)||(k(),v({reset:!0,clear:!0,includeUserData:!0}))}),et(()=>{k()}),await eo({onServer:b,onHydration:b,onAfterClientRender:async()=>{(l.value.length===0||!n.value)&&await v({reset:!0,clear:!1,includeUserData:!0})}}),{items:l,isError:u,isLoading:c,isEnd:d,isEmpty:h,isFeedPresent:m,refresh:w,loadMore:g}}const cl=void 0,Fm=fi(e=>{const t=C(()=>ce(e)),n=P(0);function s(){return n.value<t.value.length}function i(){return t.value[n.value++]}function o(){n.value=0}return{next:i,reset:o,hasNext:s}}),rV=J({__name:"Advertiser",props:{advertiser:{},token:{},text:{}},setup(e){const{t}=Ne(Oe.Entry);return(n,s)=>(_(),T("div",null,[e.token.length?(_(),T(ye,{key:0},[O("div",{class:Z(n.$style.advertiser__label)},Y(f(t)("advert.advertiser")),3),O("div",{class:Z(n.$style.advertiser__value)},Y(e.advertiser),3),O("div",{class:Z(n.$style.advertiser__label)},Y(f(t)("advert.token")),3),O("div",{class:Z(n.$style.advertiser__value)},Y(e.token),3)],64)):D("",!0),e.text.length?(_(),T("div",{key:1,class:Z(n.$style.advertiser__text)},Y(e.text),3)):D("",!0)]))}}),aV="hUemC068",lV="wHQi7kT1",cV={advertiser__label:aV,advertiser__text:lV,"underlay-in":"aEUHJR-V","modal-enter":"_-9eD6-qU","modal-enter-slide":"UWAWtnXg"},uV={$style:cV},dV=ot(rV,[["__cssModules",uV]]),$0=yt(e=>{const{t}=Ne(),n=ct(),{copy:s}=Qh(),{alert:i,AlertType:o}=fn(),{open:r}=Wt(),{open:a}=ys(),l=[{label:t("shared.disable"),handler:u},{label:t("shared.advert.copy"),handler:async({token:m})=>{m!==void 0&&await d(m)},filter:m=>q(m==null?void 0:m.token)},{label:t("shared.advert.about"),handler:async m=>{h(m)},filter:m=>(m==null?void 0:m.text)!==void 0&&(m==null?void 0:m.token)!==void 0&&(m==null?void 0:m.advertiser)!==void 0}],{getContextActions:c}=Cp(l);async function u(){await n.push({name:"Plus",params:{source:Ln.DisableAds}})}async function d(m){await s(m),i({type:o.Success,text:t("shared.advert.copied")})}function h(m){const{text:v,token:g,advertiser:b}=m;v===void 0||g===void 0||b===void 0||r(dV,{advertiser:b,token:g,text:v},{title:t("shared.advert.about")})}function p(m){const v=ce(e);m===null||v===void 0||a(to,{data:async g=>await c(v,g)},{width:177,target:m})}return{getContextActions:c,showActionsPopover:p,disableAds:u}},()=>({getContextActions:async()=>[],showActionsPopover:()=>{},disableAds:async()=>{}})),fV=fi((e,{onMove:t,onLeave:n,isBlockHorizontalSwipe:s=!1})=>{let i=0,o=0,r=!1,a=!1;Be(e,"mousemove",l=>t(l),{passive:!0}),Be(e,"mouseleave",()=>n(),{passive:!0}),Be(e,"touchstart",l=>{if(l.touches.length!==1)return;const c=l.touches[0];i=c.clientX,o=c.clientY,r=!1,a=!1},{passive:!0}),Be(e,"touchmove",l=>{if(l.touches.length!==1)return;const c=l.touches[0],u=c.clientX-i,d=c.clientY-o;!r&&!a&&(Math.abs(u)>Math.abs(d)?r=!0:a=!0),s&&r&&l.preventDefault(),t(l)},{passive:!1})},()=>null);var mg=(e=>(e.Comments="comments",e[e.Blogs=en.Blogs]="Blogs",e[e.Companies=en.Companies]="Companies",e.Banks="banks",e))(mg||{});function Kd(e){const t=De([]),n=P(!1),s=P(!1);async function i(){s.value||n.value||(n.value=!0,t.value=await e(),s.value=!0,n.value=!1)}return{items:t,isLoading:n,load:i}}const ioe=zt(()=>{const{[Oe.Subsite]:e,[Oe.Comments]:t}=vt(),{t:n}=Ne(),s={};function i(a,l){return a===l}function o(a){return a.forEach(l=>{const{title:c,subsiteName:u}=l.entry;!q(c)&&q(u)&&(l.entry.title=`${n("entry.entry.postInBlog")} «${u}»`)}),a}function r(a){if(s[a]===void 0&&(i(a,"comments")?s[a]=Kd(async()=>o(await t.getPopularComments())):i(a,mg.Blogs)?s[a]=Kd(async()=>(await e.getTopByType(en.Blogs)).slice(0,3)):i(a,mg.Companies)?s[a]=Kd(async()=>(await e.getTopByType(en.Companies)).slice(0,3)):i(a,"banks")&&(s[a]=Kd(async()=>{var u,d;const l=await e.getTopByType(en.Companies),c=[];for(const h of l)if(((u=h.data.category)==null?void 0:u.id)==="banks"&&(h.data.rank=((d=h.data.category)==null?void 0:d.rank)??h.data.rank,h.meta=void 0,c.push(h),c.length>=3))break;return c}))),s[a]===void 0)throw new Error(`Widget ${a} not found`);return s[a]}return{getWidget:r}});class hV extends np{constructor(){super(),ct().beforeEach((n,s,i)=>{const o=n.query.modal!==void 0;this.dispatchEvent(new X$(s.path,n.path,o)),i()})}async getUser(){const{onUserUpdate:t,offUserUpdate:n,user:s}=Ye();return s.value!==void 0?s.value:await new Promise(i=>{function o({to:r}){n(o),i(s.value)}t(o)})}trackMetrikaEvent(t,n){const{trackEvent:s}=Qn();s(t,n)}trackPageHit(t){const{trackPageHit:n}=Qn();n(t)}}function pV(){if(window.osnova!==void 0)return;const e=new hV;window.osnova=e}const mV=["innerHTML"],vV=["id","hidden"],gV=J({__name:"Banner",props:{id:{},reserveSpace:{type:Boolean,default:!0},isDynamicHeight:{type:Boolean},isWithCloseButton:{type:Boolean,default:!0},isFullViewportWidth:{type:Boolean},isProportionalOnMobile:{type:Boolean}},emits:["update","view"],setup(e,{emit:t}){const n=e,s=t,i=dn(),o=ct(),{get:r,remove:a,isBannerEnabled:l,isDisabled:c,isHidden:u}=Go(),d=mt("root");n.id===Le.AboveHeader||n.id===Le.Video||(n.id,Le.Vertical);const h='<svg viewBox="0 404.142 36 33.608" width="30" height="32" xmlns="http://www.w3.org/2000/svg"><path d="M28.813 419.643c2.65 0 4.645-1.104 6.116-3.026l-1.966-1.5a5.188 5.188 0 0 1-4.15 2.052c-2.876 0-4.96-2.343-4.96-5.218s2.05-5.35 5.042-5.35c1.33 0 2.27.314 3.09.822v2.528h2.474v-3.686l-.474-.373c-1.36-1.07-3.437-1.638-5.173-1.638-4.244 0-7.696 3.452-7.696 7.696 0 4.24 3.45 7.693 7.696 7.693zm5.133 15.18-.088-3.543v-8.646h-5.16v2.475h2.554v5.866c0 2.527-1.93 4.316-3.877 4.3
12016s-2.963-1.35-2.963-3.876v-8.782h-4.82v2.475h2.214v6.736c0 3.428 1.922 5.79 5.35 5.79 1.97 0 3.47-1.093 4.365-2.778h.04l.353 2.356h3.965v-2.386h-1.93v-.005zm-13.4-30.206h-4.3l-3.74 10.86h-.058l-3.72-10.86H4.146v2.476h2.577l4.435 12.378h2.356v-.003l4.625-12.374h2.405v-2.476zM.122 437.244H2.67v-2.547H.123v2.547zm9.84-11.74h-.028l-.16-2.87H5.226v2.256h2.42v9.934h-2.42v2.387h11.24v-2.34h-6.258v-5.995c.283-2.17 1.91-4.023 4.13-4.023h.04l-.045 2.218h2.474v-4.478h-1.956c-2.24-.006-3.902 1.206-4.89 2.912z"/></svg>',p=P(Vs(16)),m=P(!1),v=P(!1),g=C(()=>n.reserveSpace&&(b.value===null||b.value===void 0)&&!u.value),b=P(),w=C(()=>{switch(n.id){case Le.Vertical:case Le.Video:case Le.Sidebar:case Le.SidebarMediabanner:case Le.SidebarLenta:case Le.SidebarTeaser:return"var(--layout-sidebar-banner-width)";case Le.Post:return"var(--layout-post-banner-size)";default:return"100%"}}),k=C(()=>{if(!n.reserveSpace)return"auto";switch(n.id){case Le.AboveHeader:return"var(--layout-header-banner-height)";case Le.Vertical:case Le.SidebarMediabanner:return"var(--layout-vertical-banner-height)";case Le.Video:return"var(--layout-video-banner-height)";case Le.Post:return"var(--layout-post-banner-size)";default:return"var(--layout-content-banner-height)"}}),y=C(()=>{switch(n.id){case Le.Post:return"10px";case Le.AboveHeader:return"0";default:return"var(--layout-island-border-radius)"}}),S=C(()=>{switch(n.id){case Le.InComments:return"var(--banner-close-13-top)";case Le.Vertical:case Le.Sidebar:case Le.SidebarTeaser:return"8px";case Le.FirstInPopular:case Le.SecondInPopular:case Le.FeedBetweenPosts:case Le.AboveContentDesktop:return"12px";default:return"9px"}}),E=C(()=>{switch(n.id){case Le.Vertical:case Le.Video:case Le.VideoPlayerDesktop:case Le.VideoPlayerMobile:case Le.Sidebar:case Le.SidebarTeaser:return"16px";case Le.AboveContentDesktop:case Le.BelowContentDesktop:case Le.AboveContentMobile:case Le.BelowContentMobile:case Le.FirstInPopular:case Le.SecondInPopular:case Le.FeedBetweenPosts:return"var(--layout-content-offset-x)";case Le.Post:return"9px";case Le.InComments:return"var(--banner-close-13-right)";default:return"0px"}}),x=C(()=>{const j={width:w.value,borderRadius:y.value};return n.isDynamicHeight?j.minHeight=k.value:j.height=k.value,n.id===Le.SidebarLenta&&(j.maxHeight="var(--sidebar-section-height)",j.overflow="hidden"),j}),{pause:M,resume:I}=Ba(d,([{isIntersecting:j}])=>{j&&s("view")},{threshold:.5,immediate:!1});async function N(){try{b.value=await r(n.id,p.value),b.value===null?s("update",{isEmpty:!0}):I()}catch(j){s("update",{isError:!0}),m.value=!0,console.warn(j)}}function V(j,X){M(),a(j,p.value),b.value=void 0,m.value=!1,p.value=Vs(16),X===!0&&s("update")}function $(){o.push({name:"Plus",params:{source:Ln.DisableAds}})}return be(()=>n.id,async(j,X)=>{V(X,!0),await N()}),be(()=>i.path,async()=>{v.value&&(V(n.id,!0),setTimeout(()=>{u.value||N()},0))}),be(u,async j=>{j&&V(n.id)}),je(()=>{N(),setTimeout(()=>{v.value=!0},0)}),et(()=>{v.value=!1,V(n.id)}),(j,X)=>!f(c)&&f(l)(e.id)?(_(),T("div",{key:0,ref_key:"root",ref:d,class:Z([j.$style.banner,e.reserveSpace&&j.$style["banner--reserved"],e.isFullViewportWidth&&j.$style["banner--full-viewport-width"],e.isProportionalOnMobile&&j.$style["banner--mobile-proportional"]]),style:Ot(x.value)},[A(f(Tt),null,{default:K(()=>[f(u)&&e.reserveSpace?(_(),T("div",{key:0,class:Z(j.$style.banner__placeholder),innerHTML:f(h)},null,10,mV)):D("",!0),g.value?(_(),L(f(Yn),{key:1})):D("",!0),(_(),T("div",{id:p.value,key:p.value,class:Z(j.$style.banner__content),hidden:f(u)?"":void 0},null,10,vV)),O("div",{class:Z(j.$style["banner__internals-container"])},[e.isWithCloseButton?(_(),L(f(Xi),{key:0,bordered:"",icon:"cross",size:"small",class:Z([j.$style.banner__close,"banner-close",`banner-close--${e.id}`]),style:Ot({top:S.value,right:E.value}),onClick:$},null,8,["class","style"])):D("",!0)],2)]),_:1})],6)):D("",!0)}}),bV="lZiytKLX",yV="V-MDxqWc",wV="ZVB9w3pL",_V="tDX0IvxT",kV={banner:bV,"banner--reserved":"LB75O7ko","banner--full-viewport-width":"WEh3N2fJ","banner__internals-container":"_1wLUQ2Hw",banner__close:yV,"banner--mobile-proportional":"p9G2gqcE",banner__content:wV,banner__placeholder:_V,"underlay-in":"koR01v2Y","modal
120-enter":"KZ-m6fPI","modal-enter-slide":"b7YR4OM9"},SV={$style:kV},Ra=ot(gV,[["__cssModules",SV]]),CV={class:"floating-updates-notify"},EV={class:"floating-updates-notify__label"},BE=J({__name:"FloatingUpdatesNotification",props:{isDisplayed:{type:Boolean}},setup(e){return(t,n)=>(_(),T("div",CV,[A(qn,{name:"slide-down"},{default:K(()=>[e.isDisplayed?(_(),L(f(qe),{key:0,type:"secondary",class:"floating-updates-notify__button"},{default:K(()=>[O("span",EV,[Ve(t.$slots,"default")])]),_:3})):D("",!0)]),_:3})]))}}),xV=["innerHTML"],TV={class:"notification-item__date"},AV=J({__name:"NotificationItem",props:{data:{},view:{}},emits:["read","unsubscribe","close"],setup(e,{emit:t}){const n=e,s=t,{formatTime:i}=Mr(),{image:o,icon:r,placeholderIcon:a,color:l,url:c,badgeBackgroundColor:u,action:d}=RE(n.data),{t:h}=Ne(),p=C(()=>l==="brand"?24:36),m=C(()=>i(n.data.date*1e3)),v=C(()=>{var b;return((b=n.data.users[0])==null?void 0:b.isSubscribedToNewPosts)===!0}),g=[{icon:"bell_strike",label:h("shared.notifications.unsubscribe"),action:(b,w)=>{var k;w.preventDefault(),q((k=n.data.users[0])==null?void 0:k.id)&&s("unsubscribe",n.data.users[0].id)}}];return(b,w)=>(_(),L(nn(f(c)!==void 0?f(Qe):"div"),{to:f(c),class:Z(["notification-item",`notification-item--${e.view}`,v.value&&"notification-item--with-actions"]),referer:f($e).Notifications,onClick:w[1]||(w[1]=()=>{f(d)!==void 0&&(f(d)(),s("close")),s("read",e.data.id)})},{default:K(()=>[e.data.status!==f(bh).Read?(_(),L(f(Yb),{key:0,size:"large",class:"notification-item__dot"})):D("",!0),O("div",{class:Z(["notification-item__image",f(l)&&`notification-item__image--${f(l)}`])},[f(a)?(_(),L(f(Re),{key:0,name:f(a),width:20,height:20,class:"notification-item__placeholder-icon"},null,8,["name"])):f(o)?(_(),L(f(Jn),{key:1,source:f(o),size:p.value,isAllowVideo:!1},null,8,["source","size"])):D("",!0),f(r)?(_(),L(f(Re),{key:2,name:f(r),width:16,height:16,class:Z(["notification-item__icon",f(u)&&`notification-item__icon--${f(u)}`])},null,8,["name","class"])):D("",!0)],2),O("div",null,[O("div",{class:"notification-item__text",innerHTML:e.data.html},null,8,xV),O("div",TV,Y(m.value),1)]),v.value?(_(),L(f(Qi),{key:1,icon:"dots",options:g,onClick:w[0]||(w[0]=At(()=>{},["prevent"]))})):D("",!0)]),_:1},8,["to","class","referer"]))}}),PV={class:"notifications__body"},RV={key:2,class:"notifications__placeholder"},IV={key:3,class:"notifications__loader"},MV={key:4,class:"notifications__horizon"},$V={key:5,class:"notifications__more"},DE=J({__name:"NotificationsList",props:{limit:{default:void 0},view:{default:"default"}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,i=ct(),{t:o}=Ne(Oe.Shared),{unseenCounter:r,items:a,isLoading:l,isEnd:c,loadMore:u,reload:d,markItemAsRead:h,markAllAsRead:p,unsubscribeFromSubsiteNotifications:m}=$p(),v=C(()=>{var S;return(S=a.value)==null?void 0:S.slice(0,n.limit)}),g=C(()=>n.limit===void 0&&!c.value&&!l.value),b=C(()=>r.value>0),w=C(()=>n.limit!==void 0&&a.value!==void 0&&a.value.length>n.limit),k=C(()=>{const S=[{icon:"settings",label:o("notifications.settings"),action:()=>{i.push("/settings/notifications")}}];return a.value!==void 0&&a.value.length>0&&S.unshift({icon:"mail",label:o("notifications.markAsRead"),action:()=>{p()}}),S});function y(S){S&&u()}return bs(()=>{(a.value===void 0||r.value>0)&&d()}),(S,E)=>{var x;return _(),T("div",{class:Z(["notifications",`notifications--${e.view}`])},[A(f(Dr),{title:f(o)("notifications.title")},{right:K(()=>[A(f(Qi),{icon:"dots",options:k.value},null,8,["options"])]),_:1},8,["title"]),O("div",PV,[e.limit===void 0?(_(),L(f(BE),{key:0,"is-displayed":b.value,onClick:f(d)},{default:K(()=>[xe(Y(f(o)("notifications.showUpdates")),1)]),_:1},8,["is-displayed","onClick"])):D("",!0),v.value&&v.value.length>0?(_(),L(f(Yl),{key:1,disabled:e.view==="default",class:"notifications__list"},{default:K(()=>[(_(!0),T(ye,null,We(v.value,M=>(_(),L(AV,{key:M.id,view:e.view,data:M,onRead:f(h),onUnsubscribe:f(m),onClose:E[0]||(E[0]=I=>s("close"))},null,8,["view","data","onRead","onUnsubscribe"]))),128))]),_:1},8,["disabled"])):!f(l)&&((x=f(a))==null?void 0:x.length)===0?(_(),T("div",RV,[O("div",null,Y(f(o)("notifications.empty.title")),1),O("div",null,Y(f(o)("notifications.empty.text")),1)])):D("",!0),f(l)?(_(),T("div",IV,[A(f(Yn))])):D("",!0),g.value?Ie((_(),T("div",MV,null,512)),[[f(KC),y]]):D("",!0),w.value?(_(),T("div",$V,[A(f(zs),{to:"/notifications",size:"small"},{default:K(()=>[xe(Y(f(o)("notifications.all")),1)]),_:1})])):D("",!0)])],2)}}}),LV=J({__name:"PromotedPost",props:{data:{},meta:{},reload:{type:Function},index:{},feed:{},slotType:{}},setup(e){const t=e,n=$s({fromFeed:$e.PromotedProMaxBlogs}),{onUserUpdate:s,offUserUpdate:i}=Ye(),{disableAds:o}=$0(),{t:r}=Ne(Oe.Entry);function a({isAnon:l}){var c;l||(c=t.reload)==null||c.call(t)}return bs(()=>{s(a)}),et(()=>{i(a)}),(l,c)=>(_(),T("div",{class:Z(l.$style.promoted)},[A(f(N0),{data:e.data,meta:e.meta,location:e.feed??"advert-pro-max",actions:f(n),index:e.index,"slot-type":e.slotType},Is({_:2},[e.slotType!==f(gi).PromoGame?{name:"header-meta",fn:K(()=>[A(f(Qe),{class:"noshrink",to:{name:"BuyPro",params:{source:f(Fr).ProRotation}}},{default:K(()=>[xe(Y(f(r)("advert.promoted.mark")),1)]),_:1},8,["to"])]),key:"0"}:void 0,e.slotType!==f(gi).PromoGame?{name:"header-extra-actions",fn:K(()=>[A(f(ic),{icon:"cross","icon-size":21,"button-size":28,filled:"",onClick:f(o)},null,8,["onClick"])]),key:"1"}:void 0]),1032,["data","meta","location","actions","index","slot-type"])],2))}}),OV="_0QKZVESf",BV={promoted:OV,"underlay-in":"_9KmndlAT","modal
120-enter":"rDxJUfEu","modal-enter-slide":"POEtc7f6"},DV={$style:BV},NE=ot(LV,[["__cssModules",DV]]),NV=J({__name:"AdvertHeader",props:{ord:{},legalText:{}},setup(e){const t=e,{t:n}=ft(),{getContextActions:s,disableAds:i}=$0(),o="https://ads.vc.ru/cabinet/constructor?sites=vc";async function r(a){var l,c;return await s({text:t.legalText,token:(l=t.ord)==null?void 0:l.token,advertiser:(c=t.ord)==null?void 0:c.advertiser},a)}return(a,l)=>(_(),T("div",{class:Z(a.$style.header)},[O("div",{class:Z(a.$style.header__mark)},Y(f(n)("common.ad")),3),O("a",{href:o,target:"_blank",class:Z(a.$style.header__link)},Y(f(n)("entry.advert.place")),3),A(f(vp),{size:"small",data:r,position:"right",class:Z(a.$style.header__etc)},null,8,["class"]),A(f(Xi),{icon:"cross",size:"small",class:Z(a.$style.header__hide),onClick:f(i)},null,8,["class","onClick"])],2))}}),FV="K5r6zEF0",UV="N86XI7E5",HV="T7JQ3X1b",VV="Pebaw-da",zV="MwlRkWiD",WV={header:FV,header__mark:UV,header__link:HV,header__etc:VV,header__hide:zV,"underlay-in":"BzxX-XWJ","modal-enter":"BlSX6r-8","modal-enter-slide":"Zi1ulVuY"},jV={$style:WV},GV=ot(NV,[["__cssModules",jV]]),qV=J({__name:"AdvertSkeleton",props:{isPinned:{type:Boolean},isSmall:{type:Boolean}},setup(e){return(t,n)=>(_(),T("div",{class:Z([t.$style.skeleton,e.isSmall&&t.$style["skeleton--small"]])},[A(f(Ut),{class:Z(t.$style.skeleton__image)},null,8,["class"]),O("div",{class:Z(t.$style.skeleton__text)},[A(f(Ut),{width:"350px"}),e.isPinned?D("",!0):(_(),L(f(Ut),{key:0,width:"200px"}))],2),e.isPinned?D("",!0):(_(),L(f(Ut),{key:0,class:Z(t.$style.skeleton__button)},null,8,["class"]))],2))}}),KV="P342uUl5",YV="mxtJC3N8",XV="JniOJG1z",QV="oe7278T4",JV={skeleton:KV,"app-loaded":"SpcJD8oR","skeleton-loading":"zj5jdE6a","skeleton--small":"rA1r7vpW",skeleton__image:YV,skeleton__text:XV,skeleton__button:QV,"underlay-in":"VpOGxFhL","modal-enter":"URMODrQJ","modal-enter-slide":"MR2v8CPG"},ZV={$style:JV},ez=ot(qV,[["__cssModules",ZV],["__scopeId","data-v-7ff33dac"]]),tz=J({__name:"PinnedAdvertContent",props:{content:{},imageSize:{}},setup(e){const t=e,n=C(()=>{var o;if(t.content.mode===cs.Link)return t.content.media;if(t.content.mode===cs.LinkExtended)return(o=t.content.blocks.find(r=>r.type==="media"))==null?void 0:o.data.items[0].image;const i=t.content.blocks.find(r=>r.type==="media");if(i!==void 0)return i.data.items[0].image;if(t.content.author!==void 0)return t.content.author.avatar}),s=C(()=>t.content.mode===cs.Link?t.content.text:t.content.title);return(i,o)=>(_(),T("div",{class:Z(i.$style.content)},[n.value?(_(),L(f(Ei),{key:0,data:n.value.data,size:e.imageSize,rounded:!0,class:Z(i.$style.content__image)},null,8,["data","size","class"])):D("",!0),O("div",{class:Z(i.$style.content__text)},Y(s.value),3)],2))}}),nz="SBGBb1F9",sz="xLsWTMAx",iz="_8SCmxphC",oz={content:nz,content__image:sz,content__text:iz,"underlay-in":"A6-4OnLd","modal-enter":"GdU6J6LR","modal-enter-slide":"TqThHCvo"},rz={$style:oz},az=ot(tz,[["__cssModules",rz]]),lz=["href"],cz=J({__name:"SmallAdvertContent",props:{link:{},content:{},imageSize:{}},setup(e){const t=e,{t:n}=Ne(Oe.Entry),s=C(()=>{switch(t.content.button){case Wn.Discover:return n("advert.button.discover");case Wn.Read:return n("advert.button.read");case Wn.Start:return n("advert.button.start");case Wn.Order:return n("advert.button.order");case Wn.Buy:return n("advert.button.buy");case Wn.Get:return n("advert.button.get");case Wn.Download:return n("advert.button.download");case Wn.GoTo:return n("advert.button.goTo");default:return}});return(i,o)=>(_(),T("div",{class:Z(i.$style.content)},[A(f(Ei),{data:e.content.media.data,size:e.imageSize,rounded:!0,class:Z(i.$style.content__image)},null,8,["data","size","class"]),O("div",{class:Z(i.$style.content__text)},Y(e.content.text),3),O("a",{href:e.link,target:"_blank",class:Z(i.$style.content__button)},[A(f(qe),null,{default:K(()=>[xe(Y(s.value),1)]),_:1})],10,lz)],2))}}),uz="_6Zv8HkwW",dz="u-G7c815",fz="c0neUE9l",hz="_1JEs3SAK",pz={content:uz,content__image:dz,content__text:fz,content__button:hz,"underlay-in":"Xi5HzaGY","modal-enter":"_7T95HjTW","modal-enter-slide":"_0z07ZeZs"},mz={$style:pz},vz=ot(cz,[["__cssModules",mz]]),gz=["href"],bz=J({__name:"LinkAdvertContent",props:{link:{},content:{},imageSize:{}},setup(e){const t=e,{t:n}=Ne(Oe.Entry),s=C(()=>{switch(t.content.button){case Wn.Discover:return n("advert.button.discover");case Wn.Read:return n("advert.button.read");case Wn.Start:return n("advert.button.start");case Wn.Order:return n("advert.button.order");case Wn.Buy:return n("advert.button.buy");case Wn.Get:return n("advert.button.get");case Wn.Download:return n("advert.button.download");case Wn.GoTo:return n("advert.button.goTo");default:return}});return(i,o)=>(_(),T("div",{class:Z(i.$style.content)},[A(f(Ei),{data:e.content.media.data,size:e.imageSize,rounded:!0,class:Z(i.$style.content__image)},null,8,["data","size","class"]),O("div",{class:Z(i.$style.content__text)},[O("div",null,Y(e.content.text),1)],2),O("a",{href:e.link,target:"_blank",class:Z(i.$style.content__button)},[A(f(qe),null,{default:K(()=>[xe(Y(s.value),1)]),_:1})],10,gz)],2))}}),yz="BZubRwp1",wz="EmBNsJW9",_z="_03GWKgdr",kz="hi6q2mJO",Sz={content:yz,content__image:wz,content__text:_z,content__button:kz,"underlay-in":"HMag9LZu","modal
120-enter":"T4VzXErn","modal-enter-slide":"-cYu7W8h"},Cz={$style:Sz},Ez=ot(bz,[["__cssModules",Cz]]),xz={key:0,class:"content-header"},Tz=["href"],Az=["href"],Pz=J({__name:"PostAdvertContent",props:{link:{},content:{}},emits:["action"],setup(e,{emit:t}){const n=e,s=t,{[Oe.Entry]:i}=vt(),o=$s(),{isAnon:r,onUserUpdate:a,offUserUpdate:l}=Ye(),{t:c}=Ne(Oe.Entry),u=C(()=>n.content.blocks.some(b=>b.type==="game")),d=C(()=>u.value?"game":void 0);gt(Zb,!0);const h=P();gt(hc,C(()=>!0)),gt(gd,C(()=>n.content.title)),gt(A0,C(()=>null)),gt(Ip,"advert"),gt(T0,C(()=>{var b;return(b=h.value)==null?void 0:b.counters}));function p(){h.value!==void 0&&i.holdPost(h.value.id)}function m(){h.value!==void 0&&i.unholdPost(h.value.id)}async function v(b=!1){try{m(),h.value=await i.getEntryWith(n.content.id,b),p()}catch{}}function g({isAnon:b}){b||v(!b)}return je(async()=>{v(!r.value),a(g)}),ui(()=>{m(),l(g)}),(b,w)=>(_(),T("div",{class:Z(b.$style.content)},[O("div",{class:Z(b.$style.content__body)},[e.content.author?(_(),T("div",xz,[A(f(Ha),{avatar:e.content.author.avatar,"avatar-sticker":e.content.topic?{image:e.content.topic.avatar,link:e.content.topic.url}:void 0,name:e.content.author.name,url:e.content.author.url,"badge-id":e.content.author.badgeId,"favorite-collectible":e.content.author.favoriteCollectible},{secondary:K(()=>[e.content.topic?(_(),T("a",{key:0,href:e.content.topic.url,target:"_blank",class:"content-header__topic"},Y(e.content.topic.name),9,Tz)):D("",!0),O("a",{href:e.link,target:"_blank"},[A(f(sc),{date:e.content.date},null,8,["date"])],8,Az)]),_:1},8,["avatar","avatar-sticker","name","url","badge-id","favorite-collectible"])])):D("",!0),A(f(D0),{title:e.content.title,type:d.value},null,8,["title","type"]),A(f(_h),{blocks:e.content.blocks},null,8,["blocks"]),u.value?D("",!0):(_(),T("div",{key:1,class:Z(b.$style.content__more)},[A(f(zs),{to:e.link,target:"_blank"},{default:K(()=>[xe(Y(f(c)("advert.more")),1)]),_:1},8,["to"])],2))],2),h.value?(_(),T("div",{key:0,class:Z(b.$style.content__reactions)},[h.value.reactions&&h.value.isLikesEnabled?(_(),L(f(Fl),{key:0,entity:h.value,"donation-type":f(Rs).Post,handlers:f(o),onSelect:w[0]||(w[0]=k=>s("action","reaction"))},{default:K(({state:k,picker:y})=>[A(f(Ep),{items:k.nodes,picker:y},null,8,["items","picker"])]),_:1},8,["entity","donation-type","handlers"])):D("",!0)],2)):D("",!0),h.value&&h.value.isCommentsEnabled?(_(),L(f(vg),{key:1,content:h.value,actions:f(o),"is-show-views":!0,onAction:w[1]||(w[1]=k=>s("action",k))},null,8,["content","actions"])):D("",!0)],2))}}),Rz="olS48SkV",Iz="BN7HBFLS",Mz="-vrVAZ4l",$z="e5eeaZb1",Lz={content:Rz,content__body:Iz,content__more:Mz,content__reactions:$z,"underlay-in":"_5d5mEqTV","modal-enter":"YCVnA3-3","modal-enter-slide":"H2cYyflg"},Oz={$style:Lz},Bz=ot(Pz,[["__cssModules",Oz]]),Dz=J({__name:"LinkExtendedAdvertContent",props:{link:{},content:{}},setup(e){const t=e;return gt(hc,C(()=>!0)),gt(gd,C(()=>t.content.title)),(n,s)=>(_(),T("div",{class:Z(n.$style.content)},[A(f(D0),{title:e.content.title,type:"external"},null,8,["title"]),A(f(_h),{blocks:e.content.blocks},null,8,["blocks"])],2))}}),Nz="SqrG7AXs",Fz={content:Nz,"underlay-in":"f7ankHAM","modal-enter":"nfCOlkrx","modal-enter-slide":"hQEQ07-f"},Uz={$style:Fz},Hz=ot(Dz,[["__cssModules",Uz]]),Vz=J({__name:"AdvertContent",props:{link:{},content:{},imageSize:{},isPinned:{type:Boolean,default:!1},isSmall:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:t}){const n=t;return(s,i)=>e.isPinned?(_(),L(az,{key:0,content:e.content,"image-size":e.imageSize},null,8,["content","image-size"])):e.isSmall&&e.content.mode===f(cs).Link?(_(),L(vz,{key:1,link:e.link,content:e.content,"image-size":e.imageSize},null,8,["link","content","image-size"])):e.content.mode===f(cs).Link?(_(),L(Ez,{key:2,link:e.link,content:e.content,"image-size":e.imageSize},null,8,["link","content","image-size"])):e.content.mode===f(cs).Post?(_(),L(Bz,{key:3,link:e.link,content:e.content,onAction:i[0]||(i[0]=o=>n("action",o))},null,8,["link","content"])):e.content.mode===f(cs).LinkExtended?(_(),L(Hz,{key:4,link:e.link,content:e.content},null,8,["link","content"])):D("",!0)}});function zz(){const e='{ "popular":["after-first","after-tenth"], "recommendations":["after-first","after-fifth","after-tenth"] }';if(!q(e))return{};try{return JSON.parse(e)}catch{return{}}}const FE=zz(),Wz=Object.keys(FE).length!==0,Um=Wz?fi(()=>{const{[Oe.Feed]:e}=vt(),{isAnon:t,onUserUpdate:n,offUserUpdate:s}=Ye(),i=De([]),o=Fm==null?void 0:Fm(i),r=P(!1);let a;async function l(d=!1){if(!r.value){if(a!==void 0){await a;return}try{a=e.loadEntries(Te.ProMaxBlogs,{},{reset:d,clear:!1,includeUserData:!t.value});const h=i.value.length;
120i.value=await a,r.value=i.value.length===h}finally{a=void 0}}}async function c(){if(o!==void 0&&(o.hasNext()||await l(),!!o.hasNext()))return o.next()}function u({isAnon:d}){!d&&i.value.length>0&&(a=void 0,i.value=[],r.value=!1,o==null||o.reset(),l(!0))}return bs(()=>{n(u)}),et(()=>{s(u)}),{getPromotedPost:c}}):null;function jz(){const{[Oe.Advert]:e}=vt(),{isUserDisabledAds:t,isPlusSubscriber:n}=Ye(),s=Um==null?void 0:Um(),i=C(()=>!q("https://booster.osnova.io")||!q("https://ads.vc.ru/cabinet/constructor")||t.value||o.value),o=P(!1);async function r(u){if(!n.value){if(i.value)throw new Error("Advert is not configured");return await e.getRelevantAdvert(u,ut(bE,[]))}}const a=(u,d)=>{if(i.value)throw new Error("Advert is not configured");e.hit(u,d)},l=(u,d,h)=>{if(i.value)throw new Error("Advert is not configured");e.click(u,d,h)};function c(u,d){var h;return((h=FE[d])==null?void 0:h.includes(u))??!1}return{load:r,hit:a,click:l,getPromotedPost:s==null?void 0:s.getPromotedPost,isPromotedPostSlot:c,isDisabled:i,isHidden:o}}const pc=Pn(jz),Gz=["href"],qz=J({__name:"Advert",props:{place:{},sourceContentId:{},once:{type:Boolean},index:{},feed:{}},emits:["load","view"],setup(e,{expose:t,emit:n}){Zi(V=>({fd1acbc8:d}));const s=e,i=n,o=A2(),r=C(()=>s.place===tn.PostPinned),a=C(()=>s.place===tn.Sidebar),l=C(()=>[tn.Feed,tn.PostAfter,tn.Recommendations,tn.TopicFeed].includes(s.place)),c=C(()=>{var $,j;const V=[o.advert];return(l.value&&h.value===void 0||(($=h.value)==null?void 0:$.content.mode)===cs.Post||((j=h.value)==null?void 0:j.content.mode)===cs.LinkExtended)&&V.push(o["advert--post-island"]),r.value?V.push(o["advert--pinned"]):a.value&&V.push(o["advert--small"]),V}),u=r.value?32:a.value?56:64,d=`${u}px`,h=P(),p=P(),m=C(()=>{var V;return(V=h.value)==null?void 0:V.content.mode}),{load:v,hit:g,click:b,getPromotedPost:w}=pc(),k=dn(),y=P();async function S(V=!0){try{y.value=void 0,V&&(h.value=void 0);const $=await v(s.place);$!==void 0&&$.content.mode===cs.Post&&$.isStub&&(y.value=await(w==null?void 0:w())),y.value===void 0&&(h.value=$,E()),i("load")}catch($){console.warn($)}}const{resume:E}=Ba(p,([{isIntersecting:V}])=>{var $;if(V&&h.value!==void 0){g(h.value.id,s.place);let j;switch(($=h.value)==null?void 0:$.content.mode){case cs.Post:j=h.value.content.id;break}i("view",{contentId:j,sourceContentId:s.sourceContentId})}},{threshold:.5,immediate:!1});let x=null,M=!1;function I(){x===null&&(s.once===!0&&M||(x=be(()=>k.path,()=>{S(),M=!0},{immediate:!0,flush:"post",once:s.once})))}function N(){x!==null&&(x(),x=null)}return t({reload:S,mode:m}),bs(I),et(N),La(I),rd(N),ib(N),(V,$)=>{var j,X;return y.value?(_(),L(NE,{key:0,data:y.value.data,meta:y.value.meta,reload:S,index:e.index,feed:e.feed},null,8,["data","meta","index","feed"])):(_(),T("div",{key:1,class:Z(c.value)},[h.value?(_(),T("a",{key:0,href:h.value.link,target:"_blank",class:Z(V.$style.advert__link)},null,10,Gz)):D("",!0),h.value?(_(),L(GV,{key:1,ord:(j=h.value)==null?void 0:j.ord,"legal-text":(X=h.value)==null?void 0:X.legalText},null,8,["ord","legal-text"])):D("",!0),h.value===void 0?(_(),T(ye,{key:2},[l.value?(_(),L(f(kp),{key:0,"is-short":!0,"without-footer":!0})):(_(),L(ez,{key:1,"is-pinned":r.value,"is-small":a.value},null,8,["is-pinned","is-small"]))],64)):(_(),T("div",{key:3,ref_key:"advertContentElement",ref:p},[A(Vz,{link:h.value.link,content:h.value.content,"image-size":f(u),"is-pinned":r.value,"is-small":a.value,onAction:$[0]||($[0]=U=>f(b)(h.value.id,s.place,U))},null,8,["link","content","image-size","is-pinned","is-small"])],512))],2))}}}),Kz="syV7-RMm",Yz="gAgALGr2",Xz={advert:Kz,"advert--small":"l8kBkj4S","advert--post-island":"gBXJEmyp","advert--pinned":"gf4jOmeM",advert__link:Yz,"underlay-in":"m-MB9bNo","modal-enter":"_1LGSi3Fk","modal-enter-slide":"Ssli8unU"},Qz={$style:Xz},L0=ot(qz,[["__cssModules",Qz]]);function Jz(e){const{[Oe.Feed]:t}=vt(),{isAnon:n,onUserUpdate:s,offUserUpdate:i}=Ye(),o=C(()=>ce(e));async function r(){if(o.value!==void 0)try{return(await t.loadEntries(Te.Subsite,{subsiteId:o.value,sorting:It.New},{reset:!0,clear:!0,includeUserData:!n.value})).find(c=>!c.data.isPinned)}catch{return}}function a({isAnon:l}){l||r()}return bs(()=>{s(a)}),et(()=>{i(a)}),{load:r}}const Zz=["innerHTML"],Io=J({__name:"Rotator",props:{bannerId:{},advertPlace:{},advertLoadOnce:{type:Boolean},brandingHtml:{},isDynamicHeight:{type:Boolean},isProportionalMobileBanner:{type:Boolean},isHiddenOnWide:{type:Boolean},sourceContentId:{},isEnabledPromotedPost:{type:Boolean},promotedSubsiteId:{},index:{},feed:{}},emits:["view"],setup(e,{emit:t}){const n=e,s=t,{isDisabled:i}=Go(),{isDisabled:o,getPromotedPost:r}=pc(),{load:a}=Jz(()=>n.promotedSubsiteId),l=mt("root");n.bannerId===Le.AboveContentDesktop||(n.bannerId,Le.AboveContentMobile);const c=P(),u=C(()=>n.brandingHtml!==void 0&&n.brandingHtml.length>0),d=C(()=>n.advertPlace!==void 0),h=P(!1),p=P(!1),m=P(!1),v=C(()=>!i.value),g=C(()=>v.value?(o.value||!w.value)&&!p.value:!1),b=C(()=>o.value||!d.value?!1:i.value||h.value),w=C(()=>o.value||!d.value?!1:i.value||p.value||h.value),k=C(()=>N.value===void 0&&!u.value&&!g.value&&!w.value);function y($){h.value=($==null?void 0:$.isEmpty)??($==null?void 0:$.isError)??!1,p.value=($==null?void 0:$.isError)??!1}function S(){m.value=!0}function E(){m.value=!1}function x(){s("view",{slotType:gi.AdFox})}function M($){s("view",{slotType:gi.Advert,...$})}const I=P(!1),N=P();async function V(){if(n.isEnabledPromotedPost){const $=n.promotedSubsiteId!==void 0?await a():await(r==null?void 0:r());($==null?void 0:$.data.id)!==n.sourceContentId&&(N.value=$)}I.value=!0}return bs(async()=>{await V()}),($,j)=>k.value?D("",!0):(_(),T("div",{key:0,ref_key:"root",ref:l,class:Z(["rotator",e.isDynamicHeight&&"rotator--limitless",e.isHiddenOnWide&&"rotator--hidden-on-wide"])},[e.isEnabledPromotedPost&&!I.value&&N.value===void 0?(_(),L(f(kp),{key:0,"is-short":!0,"without-footer":!0})):N.value?(_(),L(NE,{key:1,data:N.value.data,meta:N.value.meta,reload:e.promotedSubsiteId!==void 0?void 0:V,index:e.index,feed:e.feed,"slot-type":e.promotedSubsiteId!==void 0?f(gi).PromoGame:f(gi).ProRotation},null,8,["data","meta","reload","index","feed","slot-type"])):u.value?(_(),T("div",{key:2,innerHTML:e.brandingHtml},null,8,Zz)):(_(),T(ye,{key:3},[v.value?Ie((_(),L(f(Ra),{key:0,id:e.bannerId,"is-dynamic-height":e.isDynamicHeight,"is-proportional-on-mobile":e.isProportionalMobileBanner,onUpdate:y,onView:x},null,8,["id","is-dynamic-height","is-proportional-on-mobile"])),[[As,g.value]]):D("",!0),b.value?Ie((_(),L(L0,{key:1,ref_key:"advert",ref:c,index:e.index,place:e.advertPlace,once:e.advertLoadOnce,feed:e.feed,onLoad:S,onView:M,onVnodeBeforeUnmount:E},null,8,["index","place","once","feed"])),[[As,w.value]]):D("",!0)],64))],2))}}),bd=async()=>{const{[Oe.Finance]:e}=vt(),{setPageProperties:t}=hi(),{t:n,p:s}=Ne(Oe.Finance),i=P(null),o=dn(),r=C(()=>!("currency"in o.params)||o.params.currency===void 0?ls.USD:o.params.currency.toUpperCase()),a=C(()=>q(i.value)?i.value[r.value]:void 0),l=C(()=>q(a.value)?Zt(a.value.rate,{separator:" ",short:{maximumFractionDigits:2}}
120):void 0),c=C(()=>a.value===void 0?0:a.value.dynamic);async function u(){try{const h=await e.getRates();i.value=h,d()}catch(h){console.error("Error fetching rates",h),tc("Finance / Failed to load currency rates: "+h.message)}}function d(){var g;if(o.name!=="Finance")return;const h=o.params.currency,p=r.value===ls.BTC||r.value===ls.TON,m=n("seo.title",{currency:r.value??"",target:((g=a.value)==null?void 0:g.target)??"",currencyNominative:s(p?`currency.${h}.nominativeFull`:`currency.${h}.nominative`,1,!1)});let v;p?v=n("seo.cryptoDescription",{currencyNominativeFull:s(`currency.${h}.nominativeFull`,1,!1),rate:s("currency.usd.nominative",parseFloat(l.value??"0"))}):v=n("seo.description",{currencyNominative:s(`currency.${h}.nominative`,1,!1),rateInRub:s("currency.rub.nominative",parseFloat(l.value??"0"))}),t({title:m,meta:{description:v}})}return await eo({onServer:u,onHydration:u,onAfterClientRender:async()=>{i.value===null&&await u()}}),{rates:i,currency:r,rate:a,rateValue:l,dynamic:c}},eW={class:"news-rates"},tW={class:"news-rates__item-title"},nW={class:"news-rates__item-rate"},sW={key:1,class:"news-rates-skeleton"},iW=J({__name:"CurrencyRates",async setup(e){let t,n;const{rates:s}=([t,n]=on(()=>bd()),t=await t,n(),t),i=C(()=>s.value===null?[]:Object.entries(s.value).filter(([r])=>r!==ls.RUB));function o(r){return Zt(r,{separator:" ",short:{maximumFractionDigits:2}})}return(r,a)=>(_(),T("div",eW,[f(s)?(_(!0),T(ye,{key:0},We(i.value,([l,c])=>(_(),L(f(Qe),{key:l,class:"news-rates__item",to:`/quote/${l.toLowerCase()}`},{default:K(()=>[O("span",tW,[xe(Y(l),1),c.target!==f(ls).RUB?(_(),T(ye,{key:0},[xe("/"+Y(c.target),1)],64)):D("",!0)]),O("span",nW,Y(o(c.rate)),1),c.dynamic?(_(),L(f(Re),{key:0,class:Z(["news-rates__item-icon",`news-rates__item-icon--${c.dynamic>0?"positive":"negative"}`]),name:c.dynamic>0?"triangle_up":"triangle_down",width:16,height:16},null,8,["class","name"])):D("",!0)]),_:2},1032,["to"]))),128)):(_(),T("div",sW,[A(f(Ut),{width:"80px"}),A(f(Ut),{width:"80px"}),A(f(Ut),{width:"80px"}),A(f(Ut),{width:"80px"})]))]))}}),oW={key:0,class:"news-widget"},UE=J({__name:"NewsWidget",props:{withCurrencyRates:{type:Boolean,default:!0}},async setup(e){let t,n;const{t:s}=Ne(),{items:i,isLoading:o,isFeedPresent:r,loadMore:a}=([t,n]=on(()=>Ti({type:Te.News,options:{}})),t=await t,n(),t);return(l,c)=>{const u=An("gtm");return f(r)?Ie((_(),T("div",oW,[e.withCurrencyRates?(_(),L(iW,{key:0})):D("",!0),f(i).length===0?(_(),L(f(no),{key:1,schema:({bar:d,bars:h,gapY:p})=>[[p("10px"),...h(2,!0)],...Array(3).fill([p("26px"),...h(2,!0)]),[p("30px"),d("20%")]]},null,8,["schema"])):(_(),T(ye,{key:2},[(_(!0),T(ye,null,We(f(i),d=>{var h;return _(),T("div",{key:d.data.id,class:"news-widget__item"},[Ie((_(),L(f(Qe),{to:f(Fn)(d.data),class:"news-widget__title",referer:f($e).News},{default:K(()=>[xe(Y(d.data.title),1)]),_:2},1032,["to","referer"])),[[u,"News Widget â Item â Click"]]),d.data.counters.comments>0?Ie((_(),L(f(ZE),{key:0,class:"news-widget__comments-counter",to:f(fc)(d.data),count:d.data.counters.comments,"prev-count":(h=d.data.commentsSeenCount)==null?void 0:h.count,size:"small",referer:f($e).News},null,8,["to","count","prev-count","referer"])),[[u,"News Widget â Item â Comments â Click"]]):D("",!0)])}),128)),f(o)?(_(),L(f(Yn),{key:0,class:"news-widget__loader"})):Ie((_(),T("button",{key:1,class:"news-widget__show-more",onClick:c[0]||(c[0]=(...d)=>f(a)&&f(a)(...d))},[O("span",null,Y(f(s)("common.showMore")),1),A(f(Re),{name:"chevron_down",width:20,height:20})])),[[u,"News Widget â Show More â Click"]])],64))])),[[u,"News Widget â Show"]]):D("",!0)}}}),rW={key:0,class:"recommendations"},aW={key:0,class:"recommendations__button"},O0=J({__name:"Recommendations",props:{contentId:{},skeletonCount:{}},async setup(e){let t,n;const s=e,{t:i}=Ne(),{fromReferer:o}=Br(),{items:r,loadMore:a,isLoading:l,isFeedPresent:c,isEnd:u}=([t,n]=on(()=>Ti({type:Te.Recommendations,options:()=>({contentId:Cn(s,"contentId").value,previousPage:o.value})})),t=await t,n(),t),d=$s({fromFeed:$e.Recommendations}),{view:h}=Da(),{isUserDisabledAds:p}=Ye(),{isPromotedPostSlot:m}=pc(),v=void 0,g=C(()=>!0);function b(w){h(w,!0)}return(w,k)=>f(c)?(_(),T("div",rW,[A(f(xi),{title:f(i)("shared.recommendations"),entries:f(r),"skeleton-count":e.skeletonCount,actions:f(d),"is-loading":f(l),name:f(Te).Recommendations,"source-content-id":e.contentId,onEndReached:f(a)},Is({_:2},[f(v)?{name:"after-second",fn:K(({index:y,meta:S,feed:E,sourceContentId:x})=>[Ie(A(Io,{"banner-id":f(Le).FeedBetweenPosts,"advert-place":f(tn).Feed,"source-content-id":e.contentId,"is-dynamic-height":!0,"is-enabled-promoted-post":!0,"promoted-subsite-id":f(v),index:y,feed:f(Te).Recommendations,onView:M=>b({type:f(Fs).Content,slotType:M.slotType,contentId:M.contentId,index:y,fromFeed:E,sourceContentId:x,statGroup:S==null?void 0:S.statGroup,feedSegment:S==null?void 0:S.feedSegment,contentDisplayType:"short"})},null,8,["banner-id","advert-place","source-content-id","promoted-subsite-id","index","feed","onView"]),[[f(vs)]])]),key:"0"}:void 0,g.value?{name:"news-widget",fn:K(()=>[Ie(A(UE,{"with-currency-rates":!1},null,512),[[f(vs)]])]),key:"1"}:void 0,f(p)?void 0:{name:"after-fifth",fn:K(({index:y,meta:S,feed:E,sourceContentId:x})=>[Ie(A(Io,{"banner-id":f(Le).FeedBetweenPosts,"advert-place":f(tn).Recommendations,"source-content-id":e.contentId,"is-dynamic-height":!0,"is-enabled-promoted-post":f(m)(f(tt).AfterFifth,f(Te).Recommendations),index:y,feed:f(Te).Recommendations,onView:M=>b({type:f(Fs).Content,slotType:M.slotType,contentId:M.contentId,index:y,fromFeed:E,sourceContentId:x,statGroup:S==null?void 0:S.statGroup,feedSegment:S==null?void 0:S.feedSegment,contentDisplayType:"short"})},null,8,["banner-id","advert-place","source-content-id","is-enabled-promoted-post","index","feed","onView"]),[[f(vs)]])]),key:"2"},We(f(p)?[]:[f(tt).AfterFirst,f(tt).AfterTenth,f(tt).AfterFifteenth,f(tt).AfterEveryRemainingFifth],y=>({name:y,fn:K(({index:S,meta:E,feed:x,sourceContentId:M})=>[Ie(A(Io,{"banner-id":f(Le).FeedBetweenPosts,"advert-place":f(tn).Recommendations,"source-content-id":e.contentId,"is-dynamic-height":!0,"is-enabled-promoted-post":f(m)(y,f(Te).Recommendations),index:S,feed:f(Te).Recommendations,onView:I=>b({type:f(Fs).Content,slotType:I.slotType,contentId:I.contentId,index:S,fromFeed:x,sourceContentId:M,statGroup:E==null?void 0:E.statGroup,feedSegment:E==null?void 0:E.feedSegment,contentDisplayType:"short"})},null,8,["banner-id","advert-place","source-content-id","is-enabled-promoted-post","index","feed","onView"]),[[f(vs)]])])}))]),1032,["title","entries","skeleton-count","actions","is-loading","name","source-content-id","onEndReached"]),f(u)?(_(),T("div",aW,[A(f(Qe),{to:"/"},{default:K(()=>[A(f(qe),null,{default:K(()=>[xe(Y(f(i)("entry.entry.morePosts")),1)]),_:1})]),_:1})])):D("",!0)])):D("",!0)}}),HE=J({__name:"WriteButton",props:{topicId:{}},setup(e){const t=e,n=C(()=>t.topicId!==void 0?{name:"Editor",params:{action:"topic",id:t.topicId}}:{name:"Editor"}),{isOneColumn:s}=an();return(i,o)=>f(s)?(_(),L(f(Qe),{key:0,to:n.value,class:"write-button"},{default:K(()=>[A(f(qe),{type:"secondary",size:"xl",icon:"pen","is-circle":!0})]),_:1},8,["to"])):D("",!0)}}),lW=120,cW=J({__name:"ScrollToTop",setup(e){const t=P(!1),n=P(null),s=C(()=>n.value!==null),i=dn(),{trackEvent:o}=Qn(),r=Yh(a,100,!0);Be(window,"scroll",()=>{r()},{passive:!0});function a(){const c=window.scrollY>lW;t.value=c||s.value,c&&s.value&&(n.value=null)}function l(){let c=0,u="up";s.value?(c=n.value??0,u="down"):n.value=window.scrollY,window.scrollTo({top:c,behavior:"instant"}),o("Scroll To Top â Click",{direction:u})}return je(()=>{a()}),be(()=>i.path,()=>{n.value=null,a()}),(c,u)=>(_(),L(qn,{name:"fade",appear:""},{default:K(()=>[Ie(O("div",{class:"scroll-to-top",onClick:l},[A(f(Re),{class:Z(["scroll-to-top__icon",{"scroll-to-top__icon--rotated":s.value}]),name:"chevron_up_big",width:20,height:20},null,8,["class"])],512),[[As,t.value]])]),_:1}))}});var Es=(e=>(e.Green="green",e.Cyan="cyan",e.Grey="grey",e.Pink="pink",e.Red="red",e.Yellow="yellow",e.Blue="blue",e))(Es||{});const uW={class:"canvas-wrapper"},p_=3,dW=86400,fW=J({__name:"Graph",props:{data:{},baseColor:{default:Es.Green},smoothness:{default:1}},setup(e){const t=e,n=mt("canvas"),{pixelRatio:s}=m6(),{colorMode:i}=Ps(),{formatTime:o}=Mr(),r=P(0),a=P(0),l=P(0),c=P(0),u=Math.max(s.value,2),d=30*u,h=20*u,p=P(0),m=P(0),v=P(0),g=P(0),b=P(0),w=P(0),k=`${11*u}px Roboto, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif`,y=P(0),S=C(()=>i.value==="dark"?[255,255,255]:[0,0,0]),E={[Es.Green]:[43,218,107],[Es.Cyan]:[96,223,255],[Es.Grey]:[122,122,122],[Es.Pink]:[253,93,186],[Es.Red]:[255,105,105],[Es.Yellow]:[255,192,65],[Es.Blue]:[61,139,25
1205]},x=Object.values(E),M=Object.keys(E),I=C(()=>M.indexOf(t.baseColor)??0),N=B=>(B-p.value)*l.value/(m.value-p.value),V=B=>{const W=(B-b.value)/(w.value-b.value);return c.value-W*c.value};function $(B,W,oe){const he=B.length,re=[],F=[];for(let te=0;te<he;te++)re.push(N(B[te].x)),F.push(V(B[te].y));const z=[];for(let te=0;te<he-1;te++){const we=re[te+1]-re[te];we===0?z.push(0):z.push((F[te+1]-F[te])/we)}const ee=new Array(he);ee[0]=z[0],ee[he-1]=z[he-2];for(let te=1;te<he-1;te++)z[te-1]*z[te]<=0?ee[te]=0:ee[te]=(z[te-1]+z[te])/2;for(let te=0;te<he-1;te++){if(Math.abs(z[te])<1e-14){ee[te]=0,ee[te+1]=0;continue}const we=ee[te]/z[te],Ee=ee[te+1]/z[te],ne=we*we+Ee*Ee;if(ne>9){const me=3/Math.sqrt(ne);ee[te]=me*we*z[te],ee[te+1]=me*Ee*z[te]}}for(let te=0;te<he-1;te++){const Ee=(re[te+1]-re[te])/3*W,ne=re[te],me=F[te],Pe=re[te+1],He=F[te+1],Ze=ne+Ee,nt=me+ee[te]*Ee,ht=Pe-Ee,jt=He-ee[te+1]*Ee;oe(ne,me,Ze,nt,ht,jt,Pe,He)}}function j(B,W,oe){const he=B.getContext("2d");if(he==null)return;const re=W.values;if(re.length===0)return;const F=Math.min(Math.max(t.smoothness,0),1);if(he.beginPath(),he.lineWidth=1*u,he.strokeStyle=`rgba(${oe[0]}, ${oe[1]}, ${oe[2]}, 1)`,re.length===1){const ee=N(re[0].x),te=V(re[0].y);he.moveTo(ee,te),he.lineTo(ee,te)}else if(re.length<2||F===0){const ee=re[0];he.moveTo(N(ee.x),V(ee.y));for(let te=1;te<re.length;te++){const we=re[te];he.lineTo(N(we.x),V(we.y))}}else{let ee=!0;$(re,F,(te,we,Ee,ne,me,Pe,He,Ze)=>{ee&&(he.moveTo(te,we),ee=!1),he.bezierCurveTo(Ee,ne,me,Pe,He,Ze)})}he.stroke();const z=he.createLinearGradient(0,d,0,c.value);z.addColorStop(0,`rgba(${oe[0]}, ${oe[1]}, ${oe[2]}, 0.1)`),z.addColorStop(1,`rgba(${oe[0]}, ${oe[1]}, ${oe[2]}, 0)`),he.lineTo(N(re[re.length-1].x),c.value),he.lineTo(N(re[0].x),c.value),he.closePath(),he.fillStyle=z,he.fill()}const X=(B,W,oe)=>{const he=W-B;if(he<=0)return 1;let re=he/oe;if(re<.001)re=Math.ceil(re*1e3)/1e3;else if(re<.01)re=Math.ceil(re*100)/100;else if(re<.1)re=Math.ceil(re*10)/10;else{const F=Math.pow(10,Math.floor(Math.log10(re))),z=re/F;z<1.5?re=1*F:z<3?re=2*F:z<7?re=5*F:re=10*F}return re};function U(B){const W=X(b.value,w.value,p_);B.beginPath(),B.lineWidth=.4*u,B.strokeStyle=`rgba(${S.value[0]}, ${S.value[1]}, ${S.value[2]}, 0.2)`,B.fillStyle=`rgba(${S.value[0]}, ${S.value[1]}, ${S.value[2]}, 0.5)`,B.font=k,B.textAlign="right";for(let oe=1;oe<=p_;oe++){const he=b.value+W*oe,re=V(he);if(re<0)continue;B.moveTo(0,re),B.lineTo(r.value,re);const F=he,z=4*u,ee=18*u;B.fillText(Zt(F,{separator:" ",short:!0}),r.value-z,re+ee)}B.stroke()}function R(B){return B>1e9}const G=C(()=>{var W;const B=((W=t.data.datasets[0])==null?void 0:W.values)??[];return B.length<2||!R(B[0].x)?!1:B[1].x-B[0].x<dW});function H(B){const W=6*u,oe=16*u,he=t.data.datasets[0].values.map(te=>te.x),re=he.length;let F=re;for(;F>1&&F*(y.value+oe)*u>r.value;)F=F-1;const z=re<=F?[...Array(re).keys()]:Array.from({length:F},(te,we)=>Math.round(we*(re-1)/(F-1)));B.beginPath(),B.lineWidth=.5*u,B.strokeStyle=`rgba(${S.value[0]}, ${S.value[1]}, ${S.value[2]}, 0.3)`;const ee=0;B.moveTo(0,ee),B.lineTo(r.value,ee),B.stroke(),B.beginPath(),B.strokeStyle=`rgba(${S.value[0]}, ${S.value[1]}, ${S.value[2]}, 0.3)`,B.fillStyle=`rgba(${S.value[0]}, ${S.value[1]}, ${S.value[2]}, 0.5)`,B.font=k,z.forEach((te,we)=>{const Ee=he[te],ne=N(Ee);B.moveTo(ne,ee+W),B.lineTo(ne,ee);const me=11*u;we===0?B.textAlign="left":we===z.length-1?B.textAlign="right":B.textAlign="center";const Pe=_e(Ee);B.fillText(`${Pe}`,ne,ee+W+me)}),B.stroke()}const se=P(null),ue=P(null),de=P(null);function ke(){se.value=new OffscreenCanvas(r.value,h),ue.value=new OffscreenCanvas(r.value,c.value),de.value=new OffscreenCanvas(r.value,c.value);const B=se.value.getContext("2d"),W=ue.value.getContext("2d");if(B===null||W===null)throw new Error("Cannot get 2d context for scale canvas");for(const[oe,he]of t.data.datasets.entries()){const re=x[(I.value+oe)%x.length];j(de.value,he,re)}H(B),U(W)}function Se(){if(n.value==null)return;const B=n.value.getContext("2d");B!=null&&(B.clearRect(0,0,r.value,a.value),se.value!==null&&B.drawImage(se.value,0,c.value+d,r.value,h),ue.value!==null&&B.drawImage(ue.value,0,d,r.value,c.value),de.value!==null&&B.drawImage(de.value,0,d,r.value,c.value))}function _e(B){return R(B)?o(B*1e3,G.value?us.Time:us.dayAndMonthShort):Zt(B,{separator:" ",short:{maximumFractionDigits:2}}
120)}function Q(B){return!R(B)||!G.value?_e(B):`${o(B*1e3,us.dayAndMonthShort)} ${o(B*1e3,us.Time)}`}function ge(B){var Bn;const W=(Bn=n.value)==null?void 0:Bn.getContext("2d");if(W==null||n.value==null)return;W.clearRect(0,0,r.value,a.value),Se();const oe=n.value.getBoundingClientRect(),he=1.5*u,z=(("touches"in B?B.touches[0].clientX:B.clientX)-oe.left)*u,ee=t.data.datasets[0].values.map(bn=>bn.x),te=ee.length,we=l.value/(te-1),ne=Math.round(z/we),me=Math.max(0,Math.min(ne,te-1)),Pe=ee[me],He=io(Pe);let Ze=N(Pe);W.beginPath(),W.lineWidth=he,Ze<he?Ze=he:Ze>r.value-he&&(Ze=r.value-he);const nt=t.data.datasets.length===1?x[I.value]:S.value;W.strokeStyle=`rgba(${nt[0]}, ${nt[1]}, ${nt[2]}, 0.7)`,W.moveTo(Ze,d),W.lineTo(Ze,c.value+d),W.stroke();const ht=20*u,jt=6*u,Hn=Q(Pe);W.font=k;const On=W.measureText(Hn).width/2;He.forEach((bn,Ai)=>{const st=V(bn)+d;W.beginPath(),W.arc(Ze,st,4*u,0,2*Math.PI),W.fillStyle=`rgba(${nt[0]}, ${nt[1]}, ${nt[2]}, 1)`,W.fill();const rn=Ur(Pe,t.data.datasets[Ai]);W.font=k,W.fillStyle=`rgba(${nt[0]}, ${nt[1]}, ${nt[2]}, 1)`,W.textAlign="center",Ze<On?W.textAlign="left":Ze>r.value-On&&(W.textAlign="right"),W.fillStyle=`rgba(${S.value[0]}, ${S.value[1]}, ${S.value[2]}, 0.5)`,W.fillText(Hn,Ze,d-ht),W.font=`bold ${12*u}px Roboto`,W.fillStyle=`rgba(${nt[0]}, ${nt[1]}, ${nt[2]}, 1)`,W.fillText(Zt(rn,{separator:" ",short:{maximumFractionDigits:2}}),Ze,d-jt)});function io(bn){return t.data.datasets.map(Ai=>Ur(bn,Ai))}function Ur(bn,Ai){const st=Ai.values,rn=st.findIndex(Np=>Np.x>=bn);if(rn===-1)return st[st.length-1].y;if(rn===0)return st[0].y;const Vn=st[rn-1].x,Ko=st[rn].x,Yo=st[rn-1].y,Hr=st[rn].y;return Yo+(Hr-Yo)*(bn-Vn)/(Ko-Vn)}}function ie(){ae(),Se()}function ae(){if(n.value==null)return;const B=n.value.getContext("2d");B!=null&&B.clearRect(0,0,r.value,a.value)}function pe(){se.value=null,ue.value=null,de.value=null}function ve(B,W){if(n.value==null)return;const oe=n.value.getContext("2d");if(oe==null)return;if(ae(),B===void 0||W===void 0){const re=n.value.parentElement.getBoundingClientRect();B=re.width,W=re.height}p.value=Math.min(...t.data.datasets.map(re=>Math.min(...re.values.map(F=>F.x)))),m.value=Math.max(...t.data.datasets.map(re=>Math.max(...re.values.map(F=>F.x)))),v.value=Math.min(...t.data.datasets.map(re=>Math.min(...re.values.map(F=>F.y))))*.97,g.value=Math.max(...t.data.datasets.map(re=>Math.max(...re.values.map(F=>F.y)))),b.value=Math.floor(Math.floor(v.value*10)/10),w.value=Math.ceil(g.value*10)/10;const he=t.data.datasets[0].values[t.data.datasets[0].values.length-1].x;y.value=oe.measureText(_e(he)).width*1.2,r.value=B*u,a.value=W*u,l.value=r.value,c.value=a.value-d-h,n.value.width=r.value,n.value.height=a.value,ke(),Se()}je(()=>{n.value!==null&&(ve(),fV(n,{onMove:ge,onLeave:ie,isBlockHorizontalSwipe:!0}))}),et(()=>{pe()}),be(i,()=>{ve()});const Me=js(ve,200);let Ke=!0;return Wo(n,([{contentRect:B}])=>{if(Ke){Ke=!1;return}Me(B.width,B.height)}),(B,W)=>(_(),T("div",uW,[O("canvas",{ref_key:"canvas",ref:n},null,512)]))}}),B0=ot(fW,[["__scopeId","data-v-bc49bc90"]]),VE=Symbol("Blocks uid"),hW=J({__name:"Item",props:{item:{},maxWidth:{},maxHeight:{}},setup(e){const{mediaMaxWidth:t,mediaMaxHeight:n}=an(),s=ut(VE),i=ut(gd),o=e,r=C(()=>o.maxWidth??t.value),a=C(()=>o.maxHeight??n.value),l=C(()=>o.item.image.type===Pt.Movie||o.item.image.data.type==="gif"),c=C(()=>o.item.image.data),u=C(()=>q(o.item.title)?o.item.title:i==null?void 0:i.value);return(d,h)=>l.value?(_(),L(f(t0),{key:0,data:c.value,maxSize:[r.value,a.value],bordered:!0,rounded:10},null,8,["data","maxSize"])):(_(),L(f(Ei),{key:1,data:c.value,alt:u.value,zoom:!0,zoomGroupId:f(s),maxSize:[r.value,a.value],exactSize:!0,bordered:!0,rounded:10},null,8,["data","alt","zoomGroupId","maxSize"]))}}),m_=280,pW=J({__name:"GalleryStrip",props:{items:{}},setup(e){const t=Vs(),n=P();gt(KS,n),ub(jb).on((U,R)=>{U===mh.Open&&R===t&&(n.value=Symbol("Gallery zoom"))});const s=ut(gd),i=ut(yE,P(!1)),o=mt("strip"),r=db(),a=P(!1),{isScrollable:l,isAnimating:c,isPrevEnabled:u,isNextEnabled:d,prev:h,next:p}=R$(o),m=C(()=>!i.value&&l.value),{isDragging:v,isAnimating:g,isTargetingStart:b,isTargetingEnd:w,stop:k}=P$(o,m,{snap:!0}),y=C(()=>v.value||g.value||c.value),S=C(()=>y.value),E=P(!1),x=P(!1);be(S,U=>{U&&(E.value=u.value,x.value=d.value)}),be([u,d],([U,R])=>{c.value&&(E.value=U,x.value=R)}),be([b,w],([U,R])=>{S.value&&(U&&(E.value=!1),R&&(x.value=!1))});const M=C(()=>S.value?E.value:u.value),I=C(()=>S.value?x.value:d.value);function N(){k(),h()}function V(){k(),p()}function $(U){return U.image.type===Pt.Movie||U.image.data.type==="gif"}async function j(){if(a.value||!i.value)return;const U=[...r.value];a.value=!0,i.value=!1;try{await Promise.all(U.map(async R=>
120R.dismiss()))}finally{a.value=!1}}function X(U){const R=U.image.data.width>0?U.image.data.width:1,G=U.image.data.height>0?U.image.data.height:1;return[Math.max(1,Math.ceil(m_*(R/G))),m_]}return(U,R)=>(_(),T("div",{class:Z(U.$style.gallery)},[O("div",{ref_key:"strip",ref:o,class:Z([U.$style.gallery__strip,m.value&&U.$style["gallery__strip--draggable"],y.value&&U.$style["gallery__strip--no-snap"],f(v)&&U.$style["gallery__strip--dragging"]])},[(_(!0),T(ye,null,We(e.items,(G,H)=>(_(),T("div",{key:`galleryStripItem:${H}`,class:Z(U.$style.gallery__item)},[$(G)?(_(),L(f(t0),{key:0,data:G.image.data,caption:f(q)(G.title)?G.title:void 0,isCompactControls:!0,bordered:!0,rounded:10,zoom:G.image,zoomGroupId:f(t),zoomFade:!0,size:X(G)},null,8,["data","caption","zoom","zoomGroupId","size"])):(_(),L(f(Ei),{key:1,data:f(xn)(G.image.data).data,caption:G.title,alt:f(q)(G.title)?G.title:f(s),bordered:!0,rounded:10,zoom:G.image,zoomGroupId:f(t),zoomFade:!0,size:X(G),exactSize:!0},null,8,["data","caption","alt","zoom","zoomGroupId","size"])),f(i)||a.value?(_(),L(f(mC),{key:2,ref_for:!0,ref:f(r).set,"overlay-type":"media",interactive:!0,onClick:At(j,["stop"])},null,512)):D("",!0)],2))),128))],2),f(i)?D("",!0):(_(),T(ye,{key:0},[M.value?(_(),T("div",{key:0,class:Z([U.$style.gallery__nav,U.$style["gallery__nav--prev"]]),onClick:At(N,["stop","prevent"])},[A(f(Re),{name:"arrow_left",width:20,height:20})],2)):D("",!0),I.value?(_(),T("div",{key:1,class:Z([U.$style.gallery__nav,U.$style["gallery__nav--next"]]),onClick:At(V,["stop","prevent"])},[A(f(Re),{name:"arrow_left",width:20,height:20})],2)):D("",!0)],64))],2))}}),mW="bQZT8p4I",vW="dQySk398",gW="mvqlyolt",bW="fgbWKMIL",yW={gallery:mW,gallery__nav:vW,gallery__strip:gW,"gallery__strip--draggable":"EvqC8g-s","gallery__strip--no-snap":"aXeplVII","gallery__strip--dragging":"ZGS7VH52",gallery__item:bW,"gallery__nav--prev":"j5CfYUP-","gallery__nav--next":"KI7026k8","underlay-in":"DqsGtp-F","modal-enter":"EDEuK270","modal-enter-slide":"newZTmOo"},wW={$style:yW},_W=ot(pW,[["__cssModules",wW]]),kW={class:"block-media"},SW=["innerHTML"],zE=J({__name:"Media",props:{data:{},maxWidth:{},maxHeight:{}},setup(e){const t=e,n=ut(hc),s=C(()=>t.data.items),i=C(()=>s.value.length>1),o=C(()=>{var r;return i.value?t.data.title:(r=s.value[0])==null?void 0:r.title});return(r,a)=>(_(),T("div",kW,[i.value?D("",!0):(_(),L(hW,{key:0,item:s.value[0]},null,8,["item"])),i.value?(_(),L(_W,{key:1,items:s.value},null,8,["items"])):D("",!0),f(q)(o.value)&&!f(n)?(_(),T("div",{key:2,class:"block-media__title",innerHTML:o.value},null,8,SW)):D("",!0)]))}}),CW='<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19.953 7.983c.012.174.012.347.012.523C19.965 13.844 15.837 20 8.29 20v-.003A11.75 11.75 0 0 1 2 18.186a8.322 8.322 0 0 0 6.073-1.674c-1.756-.033-3.296-1.16-3.834-2.806a4.152 4.152 0 0 0 1.853-.07C4.178 13.256 2.8 11.6 2.8 9.676v-.05c.57.312 1.21.486 1.863.505a4.007 4.007 0 0 1-1.27-5.394 11.708 11.708 0 0 0 8.456 4.22 4.002 4.002 0 0 1 1.187-3.86 4.153 4.153 0 0 1 5.806.176c.919-.178 1.8-.51 2.606-.98a4.067 4.067 0 0 1-1.804 2.233A8.26 8.26 0 0 0 22 5.89a8.267 8.267 0 0 1-2.047 2.093Z" fill="#1D9BF0"/></svg>',EW=`<svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Zm-9.642-2.618a475.11 475.11 0 0 0-5.832 2.513c-.474.188-.721.372-.744.552-.038.304.343.424.862.587l.219.07c.51.166 1.197.36 1.554.368.324.007.685-.127 1.084-.4 2.724-1.84 4.13-2.769 4.219-2.789.062-.014.148-.032.207.02.058.052.052.15.046.177-.038.161-1.534 1.552-2.308 2.271-.241.225-.412.384-.447.42a8.802 8.802 0 0 1-.235.233c-.475.457-.83.8.02 1.36.408.27.734.492 1.06.714.356.242.711.484 1.171.785.117.077.229.156.338.234.414.296.786.56 1.246.518.267-.024.543-.275.684-1.025.33-1.77.982-5.608 1.132-7.19a1.757 1.757 0 0 0-.016-.393.421.421 0 0 0-.143-.27c-.12-.098-.304-.118-.387-.117-.376.007-.953.207-3.73 1.362Z" fill="url(#a)"/><defs><linearGradient id="a" x1="12" y1="2" x2="12" y2="21.852" gradientUnits="userSpaceOnUse"><stop stop-color="#2AABEE"/><stop offset="1" stop-color="#229ED9"/></linearGradient></defs></svg> 121`,xW={class:"andropov-embed"},TW={class:"andropov-embed__header"},AW={class:"andropov-embed__nickname"},PW=["href"],RW=["href"],IW=["href","innerHTML"],MW={key:0,class:"andropov-embed__text andropov-embed__details"},$W=["href"],LW=["innerHTML"],OW={key:2,class:"andropov-embed__media"},WE=J({__name:"Embed",props:{data:{},provider:{}},setup(e){const t=e,{t:n}=Ne(Oe.Shared),{processText:s}=ME(),i=P(!1),o=C(()=>t.data.media.length>0),r=C(()=>({items:t.data.media.map(d=>({title:"",image:d}))})),a=C(()=>{switch(t.provider){case"telegram":return EW;case"twitter":return CW;default:return null}}),l=C(()=>s(t.data.text)),c=C(()=>i.value?t.data.text:l.value.text);return(u,d)=>{var h;return _(),T("div",xW,[O("div",TW,[A(f(Ha),{url:e.data.user.url,avatar:e.data.user.image,name:e.data.user.displayName},Is({secondary:K(()=>[O("a",{href:e.data.url,target:"_blank"},[A(f(sc),{date:e.data.date},null,8,["date"])],8,RW)]),_:2}
121,[e.data.user.name.length>0?{name:"main",fn:K(()=>[O("div",AW,[O("a",{href:e.data.user.url,target:"_blank"}," @"+Y(e.data.user.name),9,PW)])]),key:"0"}:void 0]),1032,["url","avatar","name"]),a.value?(_(),T("a",{key:0,class:"andropov-embed__provider",href:e.data.url,target:"_blank",innerHTML:a.value},null,8,IW)):D("",!0)]),(h=e.data.additionalData)!=null&&h.tweet?(_(),T("div",MW,[xe(Y(f(n)("andropov.embed.replyToPost"))+" ",1),O("a",{href:e.data.additionalData.tweet.quotedTweetLink}," @"+Y(e.data.additionalData.tweet.quotedTweetUserName),9,$W)])):D("",!0),O("div",{class:"andropov-embed__text",innerHTML:c.value},null,8,LW),l.value.trimResult.isTrimmed&&!i.value?(_(),L(f(zs),{key:1,class:"andropov-embed__read-more",onClick:d[0]||(d[0]=p=>i.value=!0)},{default:K(()=>[xe(Y(f(n)("readMore"))+" ",1),A(f(Re),{name:"chevron_down",width:20,height:20})]),_:1})):D("",!0),o.value?(_(),T("div",OW,[A(zE,{data:r.value,"max-width":600,"max-height":400},null,8,["data"])])):D("",!0)])}}}),v_=Symbol("Nested osnova embed"),BW={key:4,class:"content-footer__space"},vg=J({__name:"ContentFooter",props:{content:{},isFloating:{type:Boolean,default:!1},actions:{default:void 0},isShowViews:{type:Boolean}},emits:["action"],setup(e,{emit:t}){const n=e,s=t,{t:i}=Ne(),{isCanProceedToGifting:o,proceedToGiftsList:r}=vd(),a=ut(hc,P(!0)),l=ut(T0,C(()=>({comments:0,favorites:0,reposts:0,views:0,hits:0,link_clicks:0,subs_post_island:0,reads:0,online:0,reactions:0,timespent:0,shares:0,total:0}))),c=ut(A0),u=C(()=>(o==null?void 0:o(n.content.author))&&!n.isFloating),d=C(()=>{var y;return n.content.isCommentsEnabled&&((y=n.content.commentEditor)==null?void 0:y.type)!==eu.Nobody}),h=C(()=>l.value.reposts>0&&!n.content.isRemovedByUserRequest);function p(){s("action","gift"),r==null||r(n.content.author,{source:Ln.GiftPostFooter,context:{postId:n.content.id}})}async function m(y){var S;s("action","bookmark",y),await((S=n.actions)==null?void 0:S.toggleBookmark(n.content.id,y))}const v=C(()=>Fn({...n.content,id:n.content.id})),g=C(()=>{const y=!a.value;return hE(v.value,void 0,void 0,y)}),b=ut(Ip),w=C(()=>["Post â Comments â Click",{Location:b,isFloating:n.isFloating}]),k=C(()=>["Post â Favourites â Click",{Location:b,isFloating:n.isFloating}]);return(y,S)=>{var x,M,I;const E=An("gtm");return _(),T("div",{class:Z(["content-footer",e.isFloating&&"content-footer--floating"])},[e.isFloating&&e.content.reactions!==null?(_(),L(f(Fl),{key:0,entity:e.content,"donation-type":f(Rs).Post,handlers:n.actions},{default:K(({state:N,reactionType:V,openPicker:$})=>{var j,X,U,R;return[A(f(Mo),{icon:"reaction_like",image:(X=(j=N.stateByType[V.Emote])==null?void 0:j.activeNodes[0])==null?void 0:X.image,label:(U=N.stateByType[V.Emote])==null?void 0:U.count,"is-label-active":!!((R=N.stateByType[V.Emote])!=null&&R.activeNodes.length),onClick:({currentTarget:G})=>$(G)},null,8,["image","label","is-label-active","onClick"])]}),_:1},8,["entity","donation-type","handlers"])):D("",!0),d.value?Ie((_(),L(f(ZE),{key:1,class:"content-footer__item",to:g.value,count:f(l).comments,"prev-count":(x=f(c))==null?void 0:x.count,onClick:S[0]||(S[0]=N=>s("action","comments"))},null,8,["to","count","prev-count"])),[[E,w.value]]):D("",!0),e.isFloating?D("",!0):Ie((_(),L(f(Mo),{key:2,class:"content-footer__item","is-label-active":e.content.isFavorited,label:f(l).favorites,tooltip:e.content.isFavorited?f(i)("entry.bookmarks.button.activeTitle"):f(i)("entry.bookmarks.button.inactiveTitle"),icon:"bookmark","icon-active":"bookmark_active",onClick:S[1]||(S[1]=N=>m(!e.content.isFavorited))},null,8,["is-label-active","label","tooltip"])),[[E,k.value]]),(M=e.actions)!=null&&M.getShareActions?(_(),L(f(gj),{key:3,class:"content-footer__item content-footer__share",options:((I=e.actions)==null?void 0:I.getShareActions({data:e.content,location:f(b),isShort:f(a),isFloating:e.isFloating}))??[],label:f(l).shares,onClick:S[2]||(S[2]=N=>s("action","share"))},null,8,["options","label"])):D("",!0),A(f(Tt),null,{default:K(()=>[u.value?(_(),L(f(Mo),{key:0,class:"content-footer__item",icon:"gift",onClick:p},{icon:K(()=>[A(f(yh))]),_:1})):D("",!0)]),_:1}),e.isFloating?D("",!0):(_(),T("div",BW)),e.isShowViews&&!e.isFloating?(_(),L(f(vj
121),{key:5,"post-id":e.content.id,counters:f(l),"is-show-reposts":h.value,onClick:S[3]||(S[3]=N=>s("action","views"))},null,8,["post-id","counters","is-show-reposts"])):D("",!0)],2)}}}),DW=["title"],NW={class:"content-footer-button__icon"},FW={key:0,class:"content-footer-button__label"},Mo=J({__name:"ContentFooterButton",props:{size:{default:"default"},image:{},icon:{},iconActive:{},label:{},tooltip:{},isActive:{type:Boolean},isLabelActive:{type:Boolean}},emits:["click"],setup(e,{emit:t}){const n=e,s=t,i=C(()=>n.size==="small"?16:20),o=C(()=>{if((n.isActive||n.isLabelActive)&&n.iconActive!==void 0)return n.iconActive});return(r,a)=>(_(),T("button",{class:Z(["content-footer-button","content-footer-button--"+e.size,e.isActive&&"content-footer-button--active",e.isLabelActive&&"content-footer-button--label-active"]),title:e.tooltip,onClick:a[0]||(a[0]=l=>s("click",l))},[O("div",NW,[e.image?(_(),L(f(bp),{key:0,width:20,height:20,"static-uuid":e.image.staticUuid,"animated-uuid":e.image.animatedUuid},null,8,["static-uuid","animated-uuid"])):Ve(r.$slots,"icon",{key:1},()=>[e.icon?(_(),L(f(Re),{key:0,name:o.value||e.icon,width:i.value,height:i.value},null,8,["name","width","height"])):D("",!0),o.value?(_(),L(f(Re),{key:1,name:o.value,width:i.value,height:i.value},null,8,["name","width","height"])):D("",!0)])]),e.label?(_(),T("div",FW,[xe(Y(e.label),1),r.$slots["label-right"]?Ve(r.$slots,"label-right",{key:0}):D("",!0)])):D("",!0)],10,DW))}}),UW=J({__name:"ContentModified",props:{date:{},dateModified:{}},setup(e){const t=e,{open:n}=ys(),{formatTime:s}=Mr(),{isWiderThanContent:i}=an(),{t:o}=Ne(Oe.Shared),r=C(()=>$r()?{click:l}:{mouseenter:c}),a=({items:u})=>cn("div",{class:"content-modified-details"},u.map(({title:d,date:h})=>[cn("div",{class:"content-modified-details__title"},d),cn("div",{class:"content-modified-details__value"},s(h*1e3,us.FullMonthWithTime))]));function l(u){n(a,{items:[{title:o("content.modified"),date:t.dateModified},{title:o("content.published"),date:t.date}]},{target:u.target,behavior:"hover",positionX:i.value?"left":"center",width:"auto"})}const c=js(l,250);return(u,d)=>(_(),T("div",St({class:"content-modified"},Kg(r.value,!0)),[A(f(Re),{name:"pen_solid",width:12,height:12})],16))}}),HW={key:0,class:"content-header__icon"},VW={class:"content-header__actions"},zW=J({__name:"ContentHeader",props:{id:{},contentUrl:{},author:{},subsite:{},date:{},dateModified:{},isPinned:{type:Boolean},isPublished:{type:Boolean},source:{}},emits:["visibility-changed"],setup(e,{emit:t}){const n=ji({loader:async()=>await Ce(()=>import("./AboutTelegramBot-CjM5f4Vl.js"),__vite__mapDeps([112,113]))}),s=t,i=e,{open:o,close:r}=Wt(),a=P(),{isVisible:l}=fd(a);be(l,()=>{s("visibility-changed",l.value)});const c=ut(Ip),u=C(()=>i.author.id!==i.subsite.id),d=C(()=>{if(u.value)return{image:i.subsite.avatar,link:gn(i.subsite)}}),h=C(()=>["Post â Topic â Click",{Location:c}]),p=C(()=>["Post â Date â Click",{Location:c}]),m=C(()=>i.source==="telegram-bot"),v=C(()=>i.isPublished&&i.dateModified!==void 0&&i.dateModified-i.date>60);return(g,b)=>{const w=An("gtm");return _(),T("div",{ref_key:"contentHeaderElement",ref:a,class:"content-header"},[A(f(Ha),{id:e.author.id,avatar:e.author.avatar,"avatar-sticker":d.value,url:f(gn)(e.author),name:e.author.name,location:"Post","sub-location":f(c),"badge-id":e.author.badgeId,"favorite-collectible":e.author.favoriteCollectible,"is-allow-video-avatar":e.author.isPlus},{main:K(()=>[e.isPinned?(_(),T("div",HW,[A(f(Re),{name:"pin",width:14,height:14})])):D("",!0)]),secondary:K(()=>[u.value?Ie((_(),L(f(Qe),{key:0,to:f(gn)(e.subsite),class:"content-header__topic","preview-type":f(Dl).Subsite,"preview-source":"Post"},{default:K(()=>[xe(Y(e.subsite.name),1)]),_:1},8,["to","preview-type"])),[[w,h.value]]):D("",!0),Ve(g.$slots,"meta",{},()=>[Ie((_(),L(f(Qe),{to:e.contentUrl,class:"noshrink"},{default:K(()=>[A(f(sc),{date:e.date},null,8,["date"])]),_:1},8,["to"])),[[w,p.value]]),v.value?(_(),L(UW,{key:0,date:e.date,"date-modified":e.dateModified},null,8,["date","date-modified"])):D("",!0)]),m.value?(_(),L(f(Re),{key:1,name:"telegram",width:16,height:16,class:"content-header__telegram",onClick:b[0]||(b[0]=k=>{f(o)(f(n),{tgChannelShortname:e.author.tgChannelShortname,onClose:()=>{f(r)()}})})})):D("",!0),A(f(YB),{source:e.source},null,8,["source"])]),_:3},8,["id","avatar","avatar-sticker","url","name","sub-location","badge-id","favorite-collectible","is-allow-video-avatar"]),O("div",VW,[A(f(Tt),null,{default:K(()=>[Ve(g.$slots,"actions")]),_:3})])],512)}}}),WW={class:"content-nsfw"},jW={class:"content-nsfw__message"},GW={class:"content-nsfw__actions"},qW=J({__name:"ContentNsfw",emits:["show"],setup(e,{emit:t}){const n=t,{t:s}=Ne(Oe.Entry);return(i,o)=>(_(),T("div",WW,[O("div",jW,Y(f(s)("entry.nswf.message")),1),O("div",GW,[A(f(qe),{type:"secondary",size:"l",onClick:o[0]||(o[0]=r=>n("show"))},{default:K(()=>[xe(Y(f(s)("entry.nswf.show")),1)]),_:1}),A(f(qe),{type:"secondary",size:"l",onClick:o[1]||(o[1]=r=>n("show",!0))},{default:K(()=>[xe(Y(f(s)("entry.nswf.showAlways")),1)]),_:1})])]))}}),KW=["title"],D0=J({__name:"ContentTitle",props:{title:{},isMain:{type:Boolean,default:!1},isLowIndent:{type:Boolean,default:!1},type:{default:void 0},contentUrl:{default:void 0}},setup(e){const t=e,{t:n}=Ne(),{isHighContrastBrandColor:s}=Ps(),i=ct(),o=C(()=>
121{if(t.type==="editorial")return n("entry.entry.editorial");if(t.type==="game")return n("common.games")}),r=C(()=>{const u={main:t.title,hanging:""};if(t.type===void 0)return u;const d=t.title.split(" ");return u.hanging=d.pop()??"",u.main=d.join(" "),u}),a=C(()=>ut(gE,t.isMain?"h1":"div"));function l(u){u.preventDefault(),i.push({name:"Editorial"})}function c(u){u.preventDefault(),i.push({name:"Games"})}return(u,d)=>(_(),L(nn(a.value),{class:Z(["content-title",f(s)&&"content-title--contrast",e.isLowIndent&&"content-title--low-indent"])},{default:K(()=>[(_(),L(nn(e.contentUrl?f(Qe):"span"),Oh(Zg(e.contentUrl?{to:e.contentUrl}:{})),{default:K(()=>[xe(Y(r.value.main)+" ",1),e.type?(_(),T("span",{key:0,class:Z(`content-title__${e.type}`),title:o.value},[xe(Y(r.value.hanging)+" ",1),e.type==="editorial"?(_(),T("span",{key:0,class:"content-title__editorial-icon",onClick:l},[A(f(Re),{name:"tick_redaction",width:22,height:22})])):e.type==="game"?(_(),T("span",{key:1,class:"content-title__game-icon",onClick:c},[A(f(Re),{name:"game",width:24,height:24})])):(_(),L(f(Re),{key:2,name:"arrow_up_right",width:20,height:20}))],10,KW)):D("",!0)]),_:1},16))]),_:1},8,["class"]))}}),YW={class:"content-banner"},XW=J({__name:"ContentBanner",setup(e){return(t,n)=>(_(),T("div",YW,[A(Ra,{id:f(Le).Post,"is-with-close-button":!0},null,8,["id"])]))}}),QW={class:"content-boost__text"},JW=J({__name:"ContentBoost",props:{url:{}},setup(e){const t=e,n="vc.ru",s=C(()=>`https://ads.vc.ru/cabinet/constructor?contentUrl=${mi(encodeURIComponent(t.url))}&sites=vc`),{t:i}=Ne(),o=ct(),{isHaveProRestrictions:r}=Ye(),{getServicePageByName:a}=Gs(),l=a("Support"),c=C(()=>r.value?i("shared.content.noIndexDisclaimer",{appName:n}):i("shared.content.boostDisclaimer"));return(u,d)=>(_(),T("div",{class:Z(["content-boost",f(r)&&"content-boost--multiline"])},[O("div",QW,[xe(Y(c.value)+" ",1),f(r)&&f(l)?(_(),L(f(Qe),{key:0,to:f(FM)({name:f(l).name,hash:"#corporate-blog"})},{default:K(()=>[xe(Y(f(i)("shared.detailed")),1)]),_:1},8,["to"])):D("",!0)]),f(r)?(_(),L(f(qe),{key:0,class:"content-boost__pro-button",size:"s",type:"minimal",rounded:"",onClick:d[0]||(d[0]=()=>f(o).push({name:"BuyPro",params:{source:f(Fr).Limits}}))},{default:K(()=>[xe(Y(f(i)("shared.subscription.purchase")),1)]),_:1})):D("",!0),A(f(qe),{size:"s",rounded:"",onClick:d[1]||(d[1]=()=>s.value&&f(vi)(s.value,"_blank"))},{default:K(()=>[xe(Y(f(i)("shared.content.buyViews")),1)]),_:1})],2))}}),ZW=({data:e,contentUrl:t,location:n})=>{const s=["Post â Popular Comment â Click",{Location:n}];return Ie(A(Qe,{class:"content-comment",to:hE(t)},{default:()=>[A("div",{class:"content-comment__avatar"},[A(Jn,{source:e.author.avatar,size:28,isAllowVideo:e.author.isPlus},null)]),A("div",{class:"content-comment__text"},[e.text.replace(/\r\n?/g,` 122`)])]}),[[An("gtm"),s]])},ej={key:0,class:"post-stats"},tj={class:"post-stats__counters"},nj={class:"post-stats__value"},sj={class:"post-stats__label"},ij={key:0,class:"post-stats__graphs"},oj={class:"post-stats__title"},rj=J({__name:"Stats",props:{postId:{}},setup(e){const t=e,{entry:n}=vt(),{t:s,p:i}=Ne(),{setTitle:o}=Wt(),r=P(),a=({bar:u})=>Array.from({length:11},()=>[u("48px","20px"),u("96px","10px")]),l=C(()=>{if(r.value===void 0)return[];const u=r.value.counters;return[[u.views,"shared.stats.views","number"],[u.hits,"shared.stats.post.hits","number"],[u.link_clicks,"shared.stats.link_clicks","number"],[u.reactions,"shared.stats.post.reactions","number"],[u.comments,"shared.stats.comments","number"],[u.favorites,"shared.stats.bookmarks","number"],[u.reposts,"shared.stats.reposts","number"],[u.shares,"shared.stats.shares","number"],[u.reads,"shared.stats.readings","number"],[u.timespent,"shared.stats.timespent","duration"],[u.subs_post_island,"shared.stats.subs_post_island","number"]].flatMap(([p,m,v])=>q(p)&&p>0?[{value:v==="duration"?Xa(p*1e3,"mm:ss"):Zt(p),label:i(m,p,!1)}]:[])}),c=C(()=>{var p;const u=[];if(!q((p=r.value)==null?void 0:p.metrics))return u;const{hits:d,views:h}=r.value.metrics;return q(h)&&h.length>0&&u.push({data:{datasets:[{values:h}]},title:s("shared.stats.graphs.views"),graphColor:Es.Red}),q(d)&&d.length>0&&u.push({data:{datasets:[{values:d}]},title:s("shared.stats.graphs.hits"),graphColor:Es.Green}),u});return je(async()=>
122{if(r.value=await n.getStats(t.postId),r.value!==void 0){const u=r.value.counters.total??0,d=Zt(u,{short:!0}),h=u<1e3?i("shared.stats.actions",u):`${d} ${i("shared.stats.actions",10,!1)}`;o(h)}}),(u,d)=>r.value?(_(),T("div",ej,[O("div",tj,[(_(!0),T(ye,null,We(l.value,(h,p)=>(_(),T("div",{key:p,class:"post-stats__item"},[O("div",nj,Y(h.value),1),O("div",sj,Y(h.label),1)]))),128))]),c.value.length>0?(_(),T("div",ij,[(_(!0),T(ye,null,We(c.value,(h,p)=>(_(),T("div",{key:p,class:"post-stats__graph-block"},[O("div",oj,Y(h.title),1),A(f(B0),{data:h.data,"base-color":h.graphColor},null,8,["data","base-color"])]))),128))])):D("",!0)])):(_(),L(f(no),{key:1,class:"post-stats__skeleton-counters",schema:a}))}}),aj=({title:e,text:t})=>A("div",{class:"content-warning"},[A("div",{class:"content-warning__title",innerHTML:e},null),A("div",{class:"content-warning__text",innerHTML:t},null)]),jE=fi(e=>{const{[Oe.Entry]:t}=vt();async function n(){const s=ce(e);s.isPublished&&await t.read(s.id)}return{read:n}},()=>({read:async()=>{}})),N0=J({__name:"ExpandableContent",props:{data:{},meta:{},location:{},actions:{},index:{},listName:{},sourceContentId:{},slotType:{}},setup(e){var c,u;const t=e,{scrollToElement:n}=qb(),s=P(),i=P(!1);HM({referer:t.listName,target:$e.Post,context:{postId:t.data.id,index:t.index,statGroup:(c=t.meta)==null?void 0:c.statGroup,feedSegment:(u=t.meta)==null?void 0:u.feedSegment,sourceContentId:t.sourceContentId,...t.slotType!==void 0?{slotType:t.slotType}:{}}});function o(){i.value=!0}function r(){i.value=!1,un(()=>{a()})}function a(){var p,m;const d=(p=s.value)==null?void 0:p.contentBottomHorizon,h=(m=s.value)==null?void 0:m.contentTopHorizon;q(d)&&q(h)&&d.getBoundingClientRect().top<0&&n(h,!1,40)}function l(){const{read:d}=jE(t.data);d()}return(d,h)=>(_(),L(F0,{ref_key:"contentRef",ref:s,data:e.data,meta:e.meta,"is-short":!0,"is-overlay-link":!1,"is-expanded":i.value,actions:e.actions,"list-name":e.listName,index:e.index,location:e.location,"source-content-id":e.sourceContentId,onExpand:o,onCollapse:r,onReadFull:l},Is({_:2},[d.$slots["header-meta"]?{name:"header-meta",fn:K(()=>[Ve(d.$slots,"header-meta")]),key:"0"}:void 0,d.$slots["header-extra-actions"]?{name:"header-extra-actions",fn:K(()=>[Ve(d.$slots,"header-extra-actions")]),key:"1"}:void 0]),1032,["data","meta","is-expanded","actions","list-name","index","location","source-content-id"]))}}),lj={class:"content-repost-replies__word"},cj=J({__name:"ContentRepostReplies",props:{count:{},postId:{},size:{default:"default"}},setup(e){const t=e,{p:n}=Ne(),s=C(()=>Zt(t.count,{short:!0})),i=C(()=>`/${t.postId}/reposts`);return(o,r)=>(_(),L(f(Qe),{class:"content-repost-replies",to:i.value,onClick:r[0]||(r[0]=At(()=>{},["stop"]))},{default:K(()=>[A(Mo,{icon:"repost",label:s.value,size:e.size},{"label-right":K(()=>[O("span",lj,Y(f(n)("entry.entry.reposts",e.count,!1)),1)]),_:1},8,["label","size"])]),_:1},8,["to"]))}}),uj={class:"online-counter"},dj={class:"online-counter__text"},fj=J({__name:"OnlineCounter",props:{counter:{}},setup(e){const{t}=Ne();return(n,s)=>(_(),T("span",uj,[s[0]||(s[0]=O("span",{class:"online-counter__indicator"},null,-1)),A(f(Xb),{value:e.counter},null,8,["value"]),O("span",dj,Y(f(t)("shared.online")),1)]))}}),hj=ot(fj,[["__scopeId","data-v-81da0911"]]),pj=4e3,mj=J({__name:"ContentStats",props:{postId:{},counters:{},size:{default:"default"},onlineDisabled:{type:Boolean,default:!1},isShowReposts:{type:Boolean,default:!1}},setup(e){const t=e,{open:n}=Wt(),s=P(!1);let i=null;je(()=>{i=window.setInterval(()=>{s.value=!s.value},pj)}),et(()=>{i!==null&&clearInterval(i)});const o=C(()=>Zt(t.counters.total??0,{short:!0})),r=C(()=>t.counters.online),a=C(()=>!t.onlineDisabled&&!t.isShowReposts&&q(r.value)&&r.value>0),l=()=>{n(rj,{postId:t.postId})};return(c,u)=>(_(),T("div",{class:Z(["content-stats-wrapper",{"content-stats-wrapper--with-online":a.value}]),style:Ot({"--height":e.size==="small"?"22px":"28px"})},[e.isShowReposts?(_(),L(cj,{key:0,count:e.counters.reposts,"post-id":e.postId,size:e.size,onClick:u[0]||(u[0]=At(()=>{},["stop"]))},null,8,["count","post-id","size"])):D("",!0),a.value?(_(),L(qn,{key:1,name:"online-reel"},{default:K(()=>[s.value?(_(),L(hj,{key:"online",counter:r.value,class:"content-stats-item",onClick:l},null,8,["counter"])):(_(),L(Mo,{key:"views",class:"content-stats-item",icon:"eye",label:o.value,size:e.size,onClick:l},null,8,["label","size"]))]),_:1})):(_(),L(Mo,{key:2,class:"content-stats-item",icon:"eye",label:o.value,size:e.size,onClick:l},null,8,["label","size"]))],6))}}),vj=ot(mj,[["__scopeId","data-v-ca27e205"]]),gj=J({__name:"ContentShare",props:{options:{},label:{default:void 0}},setup(e){const t=e,{isOpened:n,open:s,popoverTarget:i}=ys(),o=P(),r=C(()=>n.value&&i.value===o.value);function a(){s(to,{data:t.options,selectable:!0},{width:"max-content",target:o.value,positionX:"center"})}return(l,c)=>(_(),T("div",{ref_key:"rootElement",ref:o,class:"content-share"},[A(Mo,{class:"bookmark-button",icon:"reply",label:e.label,"is-active":r.value,onClick:c[0]||(c[0]=u=>a())},null,8,["label","is-active"])],512))}}),bj={class:"block-audio"},yj=J({__name:"Audio",props:{data:{}},setup(e){const{close:t}=GC();function n(){t()}return(s,i)=>(_(),T("div",bj,[A(jC,{data:e.data.audio.data,onPlay:n},null,8,["data"])]))}}),wj={class:"block-code"},_j={class:"block-code__wrapper"},kj=J({__name:"Code",props:{data:{}},setup(e){const t=e,{colorMode:n}=Ps(),{highlightElement:s}=pL(n),{copy:i}=Qh(),{alert:o,AlertType:r}=fn(),{t:a}=Ne(),l=P();async function c(){await i(t.data.text),o({type:r.Success,text:a("entry.entry.codeCopied")})}return je(()=>{l.value!==void 0&&s(l.value)}),(u,d)=>(_(),T("div",wj,[O("div",_j,[A(f(qe),{icon:"copy",size:"s",type:"minimal",class:"block-code__copy",onClick:c}),O("div",{ref_key:"code",ref:l,class:"block-code__inner"},Y(e.data.text),513)])]))}}),Sj={},Cj={class:"block-delimiter"};function Ej(e,t){return _(),T("div",Cj)}const xj=ot(Sj,[["render",Ej]]),Tj=["innerHTML"],Aj=J({__name:"Header",props:{data:{}},setup(e){const t=e,n=C(()=>{switch(t.data.style){case"h2":return"h2";case"h3":return"h3";default:return"h2"}});return(s,i)=>(_(),L(nn(n.value),{class:"block-header"},{default:K(()=>[O("span",{innerHTML:t.data.text},null,8,Tj)]),_:1}))}}),Pj={class:"block-link"},g_=J({__name:"Link",props:{data:{}},setup(e){return(t,n)=>(_(),T("div",Pj,[A(f(SC),{data:e.data.link.data},null,8,["data"])]))}}),Rj=["innerHTML"],Ij=J({__name:"List",props:{data:{}},setup(e){const t=e,n=C(()=>t.data.type);return(s,i)=>(_(),L(nn(n.value),{class:"block-list"},{default:K(()=>[(_(!0),T(ye,null,We(t.data.items,(o,r)=>(_(),T("li",{key:r,innerHTML:o},null,8,Rj))),128))]),_:1}))}}),Mj={class:"block-osnova-embed"},$j=J({__name:"OsnovaEmbed",props:{data:{}},setup(e){return(t,n)=>(_(),T("div",Mj,[A(lq,{data:e.data.osnovaEmbed.data},null,8,["data"])]))}}),Lj={class:"block-quiz"},Oj=["innerHTML"],Bj=["onClick"],Dj={class:"block-quiz-option__side"},Nj={class:"block-quiz-option__value"},Fj={class:"block-quiz-option__body"},Uj=["innerHTML"],Hj={class:"block-quiz-option__bar"},Vj={key:1,class:"block-quiz__footer"},zj={key:1},Wj=J({__name:"Quiz",props:{data:{}},setup(e){const t=e,{isAnon:n}=Ye(),{results:s,getResults:i,vote:o,revote:r,isLoading:a,userVotedKey:l}=JH(t.data.hash),{t:c,p:u}=Ne(Oe.Entry),d=P(!1),h=C(()=>a.value||q(l.value)),p=P(),m=C(()=>{var w;return s.value===void 0?0:((w=Object.values(s.value)[0])==null?void 0:w.total)??0});Do(l).not.toBe(void 0).then(()=>{n.value||(d.value=l.value!==null)});const v=C(()=>{const w={Results:{label:u("quiz.votes",m.value),action:async()=>{await i(),d.value=!0}},Vote:{label:c("quiz.vote"),action:()=>{d.value=!1}},Revote:{label:c("quiz.revote"),action:()=>{p.value=void 0,d.value=!1,r()}}};return d.value?q(l.value)?w.Revote:w.Vote:w.Results});async function g(w){h.value||(p.value=w,await o(w),d.value=!0)}function b(){i()}return(w,k)=>{const y=An("lazy");return Ie((_(),T("div",Lj,[e.data.title?(_(),T("div",{key:0,class:"block-quiz__title",innerHTML:e.data.title},null,8,Oj)):D("",!0),O("div",{class:Z(["block-quiz__options",h.value&&"block-quiz__options--disabled"])},[(_(!0),T(ye,null,We(e.data.items,(S,E)=>{var x,M;return _(),T("div",{key:E,class:"block-quiz-option",onClick:I=>g(E)},[O("div",Dj,[d.value?(_(),T(ye,{key:0},[O("div",Nj,Y(((x=f(s))==null?void 0:x[E].percentage)??0)+"% ",1),E===f(l)?(_(),L(f(Re),{key:0,name:"tick_redaction",width:12,height:12,class:"block-quiz-option__mark"})):D("",!0)],64)):(_(),T("div",{key:1,class:Z(["block-quiz-option__control",f(a)&&p.value===E&&"block-quiz-option__control--loading"])},null,2))]),O("div",Fj,[O("div",{class:"block-quiz-option__text",innerHTML:S},null,8,Uj),O("div",Hj,[O("div",{class:Z(["block-quiz-option__progress",d.value&&"block-quiz-option__progress--minimal"]),style:Ot({"--percentage":d.value?`${((M=f(s))==null?void 0:M[E].percentage)??0}%`:0})},null,6)])])],8,Bj)}),128))],2),e.data.isTrimmed?D("",!0):(_(),T("div",Vj,[f(a)?(_(),L(f(BP),{key:0,text:f(c)("quiz.loading")},null,8,["text"])):m.value===0?(_(),T("span",zj,Y(f(c)("quiz.noVotes")),1)):(_(),L(f(zs),{key:2,size:"small",onClick:v.value.action},{default:K(()=>[xe(Y(v.value.label),1)]),_:1},8,["onClick"])),O("span",null,Y(f(c)("quiz.anonymous")),1)]))])),[[y,b]])}}}),jj=["innerHTML"],Gj=["innerHTML"],b_=J({__name:"Quote",props:{data:{}},setup(e){const t=e,n=C(()=>{const i=t.data.text.length,o=200,r=100,a=20;return i>o?"small":i>r?"medium":i>a?"big":"huge"}),s=C(()=>t.data.subline1.trim().length>0);return(i,o)=>(_(),T("blockquote",{class:Z(["block-quote",["block-quote--text-"+n.value,s.value&&"block-quote--has-author"]])},[o[0]||(o[0]=O("div",{class:"block-quote__line"},null,-1)),O("div",{class:"block-quote__text",innerHTML:e.data.text},null,8,jj),s.value?(_(),T("div",{key:0,class:"block-quote__author",innerHTML:e.data.subline1},null,8,Gj)):D("",!0)],2))}}),qj=["innerHTML"],Kj=J({__name:"RawHtml",props:{data:{}},setup(e){const t=e,n=/(?:<air script>|<script>)(?<content>[^]*?)(?:<\/air>|<\/script>)/gm,s=C(()=>t.data.raw.replaceAll(n,"")),i=C(()=>[...t.data.raw.matchAll(n)].map(([,r])=>r));return(o,r)=>(_(),T(ye,null,[O("div",{class:"block-rawhtml",innerHTML:s.value},null,8,qj),A(f(Tt),null,{default:K(()=>[(_(!0),T(ye,null,We(i.value,(a,l)=>(_(),L(nn("script"),{key:`script:${l}`},{default:K(()=>[xe(Y(a),1)]),_:2},1024))),128))]),_:1})],64))}}),Yj={class:"block-special-button"},Xj=["href"],Qj=J({__name:"SpecialButton",props:{data:{}},setup(e){return(t,n)=>(_(),T("div",Yj,[O("a",{href:e.data.url,target:"_blank"}
122,Y(e.data.text),9,Xj)]))}}),Jj={class:"block-telegram-button"},Zj=["href"],eG=J({__name:"TelegramButton",props:{data:{}},setup(e){return(t,n)=>(_(),T("div",Jj,[O("a",{href:e.data.url,target:"_blank",rel:"nofollow noreferrer noopener",class:"block-telegram-button__link"},[A(f(Re),{name:"telegram",width:20,height:20}),O("span",null,Y(e.data.text),1)],8,Zj)]))}}),tG={class:"block-embed"},nG=["innerHTML"],sG=J({__name:"Telegram",props:{data:{}},setup(e){const t=e,n=P8(t.data.telegram.data);return(s,i)=>(_(),T("div",tG,[A(WE,{data:f(n),provider:"telegram"},null,8,["data"]),t.data.title?(_(),T("div",{key:0,class:"block-embed__title",innerHTML:t.data.title},null,8,nG)):D("",!0)]))}}),iG=["innerHTML"],oG=J({__name:"Text",props:{data:{}},setup(e){return(t,n)=>(_(),T("div",{class:"block-text",innerHTML:e.data.text},null,8,iG))}}),rG={class:"block-embed"},aG=["innerHTML"],lG=J({__name:"Tweet",props:{data:{}},setup(e){const n=A8(e.data.tweet.data);return(s,i)=>(_(),T("div",rG,[A(WE,{data:f(n),provider:"twitter"},null,8,["data"]),e.data.title?(_(),T("div",{key:0,class:"block-embed__title",innerHTML:e.data.title},null,8,aG)):D("",!0)]))}}),cG={class:"block-video"},uG=["innerHTML"],dG=J({__name:"Video",props:{data:{},maxWidth:{},maxHeight:{}},setup(e){const{mediaMaxWidth:t,mediaMaxHeight:n}=an(),s=ut(hc);return(i,o)=>(_(),T("div",cG,[A(f(CC),{data:e.data.video.data,maxSize:[f(t),f(n)],bordered:!0,rounded:10},null,8,["data","maxSize"]),e.data.title&&!f(s)?(_(),T("div",{key:0,class:"block-video__title",innerHTML:e.data.title},null,8,uG)):D("",!0)]))}}),fG=["data-type"],hG=J({__name:"BlockError",props:{type:{}},setup(e){const{t}=Ne(Oe.Shared);return(n,s)=>(_(),T("div",{class:"block-error","data-type":e.type},Y(f(t)("content.notSupportedBlock")),9,fG))}}),pG={class:"block-wrapper__content"},mG=J({__name:"BlockWrapper",props:{block:{},onSeen:{type:Function}},setup(e,{expose:t}){const n=e,s=P(),{colorMode:i}=Ps(),{isVisible:o,stop:r}=fd(s);function a(){if(typeof n.onSeen=="function")return Tr(o,d=>{var h;d&&(r(),l==null||l(),(h=n.onSeen)==null||h.call(n,n.block))},{debounce:100})}const l=a(),c=C(()=>{switch(n.block.type){case"text":case"list":case"special_button":return"default";case"header":return"header";case"telegram_button":return"telegram-button";case"media":{const d=n.block.data.items;return Array.isArray(d)&&d.length>1?"gallery":"media"}default:return"media"}}),u=P(n.block.hidden);return gt(yE,u),t({element:s,anchor:n.block.anchor}),(d,h)=>(_(),T("figure",{ref_key:"container",ref:s,class:Z(["block-wrapper","block-wrapper--"+c.value,u.value&&"block-wrapper--hidden"])},[O("div",pG,[Ve(d.$slots,"default")]),u.value&&c.value!=="gallery"?(_(),L(f(nB),{key:0,"block-type":e.block.type,"color-mode":f(i)},null,8,["block-type","color-mode"])):D("",!0)],2))}}),vG={class:"block-person"},gG={class:"block-person__image"},bG=["innerHTML"],yG=["innerHTML"],wG=J({__name:"Person",props:{data:{}},setup(e){return(t,n)=>(_(),T("div",vG,[O("div",gG,[e.data.image!==null?(_(),L(f(Ei),{key:0,data:e.data.image.data,cropped:!0,rounded:!0,size:150,bordered:!0,zoom:!1},null,8,["data"])):D("",!0)]),O("div",{class:"block-person__title",innerHTML:e.data.title},null,8,bG),O("div",{class:"block-person__description",innerHTML:e.data.description},null,8,yG)]))}}),_G=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"> 123 <path fill="#FED42B" d="m22.7531 9.57748-.0597-.44351-3.6092-.84826 1.8644-2.78523-.2203-.30195-2.9072 1.43209.321-3.89533-.321-.16037-1.8046 3.12729L13.892 1h-.4007l.5202 4.60197L8.69867 1.3433l-.46047.12153 4.0895 5.16579-8.1193-2.72385-.38083.42349 7.25683 4.13713-9.98359.84821L1 9.92078l10.3856 1.13012-8.68059 7.1454.40073.545 10.28476-5.6519L11.3657 23h.621l3.9701-9.3242 2.4056 7.2857.4207-.3233-.9023-7.3057 3.6689 4.1772.2215-.4235-2.7268-5.167 3.8693 1.3732.0398-.4248-3.2271-2.6035 3.0267-.68662Z"/> 124</svg>`,kG=`<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"> 125 <circle cx="12" cy="12" r="12" fill="#fff"/> 126 <path fill="#1DB954" d="M17.4556 16.8197c-.205.3253-.6424.4164-.9841.2212-2.6925-1.5614-6.0685-1.9128-10.05945-1.054-.3827.0781-.7654-.1431-.8474-.5074-.08201-.3644.15034-.7287.53304-.8068 4.36001-.9499 8.10501-.5465 11.11191 1.2101.3416.1952.451.6116.246.9369Zm1.3941-2.9668c-.2597.4034-.8064.5205-1.2301.2863-3.0753-1.8087-7.76329-2.3292-11.3989-1.2752-.47837.1301-.97041-.1171-1.10709-.5595-.13667-.4554.12301-.9239.60138-1.054 4.15499-1.1971 9.32141-.6246 12.86131 1.4444.3964.2342.5331.7547.2734 1.158Zm.123-3.0969C15.2824 8.6741 9.20026 8.47892 5.67399 9.49387c-.56038.16916-1.16176-.13012-1.33944-.67663-.17768-.5335.15035-1.10604.71072-1.27519 4.04565-1.1711 10.77013-.93688 15.00713 1.45736.5057.28627.6698.91085.3691 1.39229-.2871.4945-.9431.6636-1.4488.3643Z"/> 127</svg>`,SG={class:"andropov-universalbox"},CG=["href"],EG=["innerHTML"],GE=J({__name:"UniversalBox",props:{data:{},service:{}},setup(e){const t=e,{t:n}=Ne(Oe.Shared),s=C(()=>{switch(t.service){case vo.YaMusic:return _G;case vo.Spotify:return kG;default:return""}}),i=C(()=>{switch(t.service){case vo.YaMusic:return"#303030";case vo.Spotify:return"#1DB954";default:return""}}),o=C(()=>{switch(t.service){case vo.YaMusic:return n("andropov.universalbox.yamusic");case vo.Spotify:return n("andropov.universalbox.spotify");default:return""}});return(r,a)=>(_(),T("div",SG,[O("a",{href:e.data.data.box_data.url,target:"_blank",rel:"nofollow noopener noreferrer",style:Ot(`background-color: ${i.value}`)},[O("div",{innerHTML:s.value},null,8,EG),O("span",null,Y(o.value),1)],12,CG)]))}}),xG={class:"block-ya-music"},TG=J({__name:"YaMusic",props:{data:{}},setup(e){return(t,n)=>(_(),T("div",xG,[A(GE,{data:e.data.yamusic,service:f(vo).YaMusic},null,8,["data","service"])]))}}),AG={class:"block-spotify"},PG=J({__name:"Spotify",props:{data:{}},setup(e){return(t,n)=>(_(),T("div",AG,[A(GE,{data:e.data.spotify,service:f(vo).Spotify},null,8,["data","service"])]))}}),RG={class:"game-dummy"},IG={class:"game-dummy__inner"},MG=["src"],$G={class:"game-dummy__overlay"},qE=J({__name:"GameDummy",props:{gameManifest:{}},setup(e){const{t}=ft(),n=e,s=C(()=>Vi({uuid:n.gameManifest.leonardoUuid,width:680}));return(i,o)=>(_(),T("div",RG,[O("div",IG,[O("img",{class:"game-dummy__cover",src:s.value,alt:"",loading:"lazy"},null,8,MG),O("div",$G,[A(f(qe),{class:"game-dummy__button",size:"l","aria-hidden":"true"},{default:K(()=>[xe(Y(f(t)("common.play")),1)]),_:1})])])]))}});
127var Jr=(e=>(e.Init="sdk.init",e.GetUser="sdk.getUser",e.RequestAuth="sdk.requestAuth",e.ApiRequest="sdk.apiRequest",e.SendEvent="sdk.sendEvent",e))(Jr||{}),KE=(e=>(e.Inited="game.inited",e))(KE||{}),Zr=(e=>(e.Pause="host.pause",e.Resume="host.resume",e.Auth="host.auth",e.Theme="host.theme",e.Location="host.location",e))(Zr||{});const y_="host.response";Jr.RequestAuth;new Set(Object.values(Zr));class LG{constructor(t){this.gameRepository=t}async requestApi(t){return await this.gameRepository.requestApi(t)}}const OG=/^[a-z0-9_-]+$/;function BG(e){if(e===null||typeof e!="object"||Array.isArray(e))throw new Error("Invalid api request payload");const t=e,n=t.method,s=t.path,i=t.auth,o=t.payload;if(n!=="GET"&&n!=="POST")throw new Error("Unsupported api request method");if(i!=="probe"&&i!=="strict")throw new Error("Unsupported api request auth mode");if(typeof s!="string"||s.length===0)throw new Error("Invalid api request path");return{method:n,path:s,payload:o,auth:i}}function DG(e,t,n){if(n.startsWith("/"))throw new Error('Api request path must omit the leading "/"');if(n.includes("://")||n.includes("\\")||n.includes("#")||n.includes("%"))throw new Error("Api request path contains forbidden characters");const s=n.indexOf("?"),i=s===-1?n:n.slice(0,s),o=s===-1?"":n.slice(s+1);if(i.length===0)throw new Error("Api request path must not be empty");if(t==="POST"&&o.length>0)throw new Error("POST api request path must not contain query string");if(i.split("/").some(a=>a.length===0||a==="."||a===".."||!OG.test(a)))throw new Error("Api request path is invalid");return o.length>0?`${e}/${i}?${o}`:`${e}/${i}`}const NG="games";class FG{constructor(t){this.transport=t}async requestApi(t){const n=BG(t),s=DG(NG,n.method,n.path),i={auth:n.auth};return n.method==="GET"?await this.transport.get(s,void 0,i):await this.transport.post(s,n.payload??{},i)}}function UG(){const e=pt();return e.isRegistered("GameService")||e.register("GameService",()=>{const{transport:t}=e.resolve("ModuleInitOptions"),n=new FG(t);return new LG(n)}),e.resolve("GameService")}const YE=yt(zt(()=>{const{user:e,onUserUpdate:t}=Ye(),{getBadgeById:n}=k0(),{recallAfterAuth:s}=ws(),{toReferer:i,toRefererContext:o}=Br(),{colorMode:r}=Ps(),a=UG(),l="Unexpected host bridge error",c=new Map;let u=null;function d($){if(!q($))return null;const j=n($);return q(j)?Ir({uuid:j.staticUuid}):null}function h(){var X,U;const $=e.value;if(!q($))return null;const j=(U=(X=$.avatar)==null?void 0:X.data)==null?void 0:U.uuid;return{id:$.id,name:$.name??"",avatarUrl:q(j)?cd({uuid:j,width:128}):null,isPlus:$.isPlus,badgeUrl:d($.badgeId),nickname:$.nickname}}function p(){const $=o.value,j=$.postId??$.sourceContentId??$.user;return q(j)?{type:i.value,id:j}:{type:i.value}}function m(){return{user:h(),colorMode:r.value,location:p()}}function v($,j){var X;(X=$.iframe.contentWindow)==null||X.postMessage(j,$.targetOrigin)}function g($){v($,{type:Zr.Location,payload:p()})}function b($){v($,{type:Zr.Theme,payload:{colorMode:r.value}})}async function w($,j,X){try{const U=await X();v($,{type:y_,requestId:j,payload:{ok:!0,data:U}})}catch(U){const R=U instanceof Error?U.message:l;v($,{type:y_,requestId:j,payload:{ok:!1,error:R}})}}async function k(){const $=h();if($!==null)return $;u=s(async()=>{const j=h();if(j===null)throw new Fo;return j});try{return await u}finally{u=null}}async function y($){return await a.requestApi($)}function S($){for(const j of c.values())if(j.iframe.contentWindow===$)return j}function E($,j){return $.targetOrigin==="*"||j===$.targetOrigin}function x($){const j=$.data;if(!q(j))return;const X=S($.source);if(!q(X)||!q(j.requestId)||!E(X,$.origin))return;const U=j.requestId;switch(j.type){case Jr.Init:w(X,U,()=>m());break;case Jr.GetUser:w(X,U,()=>h());break;case Jr.RequestAuth:w(X,U,async()=>await k());break;case Jr.ApiRequest:w(X,U,async()=>await y(j.payload));break;case Jr.SendEvent:{w(X,U,()=>{var G,H;const R=j.payload;q(R==null?void 0:R.name)&&((G=X.onEvent)==null||G.call(X,R.name,R.payload),R.name===KE.Inited&&(X.isInited=!0,(H=X.onInited)==null||H.call(X)))});break}}}function M(){const $=h();for(const j of c.values())v(j,{type:Zr.Auth,payload:$})}function I($){const j={...$,targetOrigin:$.targetOrigin??"*",isPaused:!1,isInited:!1};return c.set(j.iframe,j),()=>{c.delete(j.iframe)}}function N($){const j=c.get($);!q(j)||j.isPaused||(j.isPaused=!0,v(j,{type:Zr.Pause}))}function V($){const j=c.get($);!q(j)||!j.isPaused||(j.isPaused=!1,v(j,{type:Zr.Resume}))}return t(()=>{M()}),be(r,()=>{for(const $ of c.values())$.isInited&&b($)}),be([i,o],()=>{for(const $ of c.values())$.isInited&&g($)}),Be(window,"message",x),{registerInstance:I,pause:N,resume:V}}),()=>{const e=()=>{};return{registerInstance:()=>e,pause:e,resume:e}}
127),HG="100% 0px";function XE({manifest:e,iframe:t,root:n}){const{isVisible:s}=fd(n,{rootMargin:HG}),{registerInstance:i,pause:o,resume:r}=YE(),a=P(!0),l=P(!1),c=P(!1),u=C(()=>e.value.entryUrl),d=C(()=>u.value.length>0&&!l.value);let h=()=>{};async function p(){if(!c.value){if(g(),h(),!q(u.value)){v();return}if(await un(),t.value===null){v();return}h=i({iframe:t.value,targetOrigin:e.value.targetOrigin,onInited:()=>{m()}}),c.value=!0,t.value.src=u.value}}function m(){a.value=!1,l.value=!1}function v(){a.value=!1,l.value=!0}function g(){a.value=!0,l.value=!1}function b(){v()}return be(s,w=>{if(!c.value){w&&p();return}if(t.value!==null){if(w){r(t.value);return}o(t.value)}},{immediate:!0}),et(()=>{h()}),{shouldRenderIframe:d,isLoading:a,hasError:l,onIframeError:b}}const VG={class:"game-preloader"},zG={class:"game-preloader__content"},WG={class:"game-preloader__icon-circle"},jG=J({__name:"GamePreloader",setup(e){return(t,n)=>(_(),T("div",VG,[O("div",zG,[O("div",WG,[A(f(Re),{name:"game",width:60,height:60})]),n[0]||(n[0]=O("div",{class:"game-preloader__progress"},[O("div",{class:"game-preloader__progress-fill"})],-1))])]))}}),GG={class:"game-player__inner"},qG={key:1,class:"game-player__error"},QE=J({__name:"GamePlayer",props:{gameManifest:{}},setup(e){const t=e,n=P(null),s=P(null),{shouldRenderIframe:i,isLoading:o,hasError:r,onIframeError:a}=XE({manifest:Cn(t,"gameManifest"),iframe:s,root:n});return(l,c)=>(_(),T("div",{ref_key:"root",ref:n,class:"game-player"},[O("div",GG,[f(o)&&e.gameManifest.isPreloader?(_(),L(jG,{key:0})):D("",!0),f(r)?(_(),T("div",qG,[A(f(Re),{name:"circle_cross",width:60,height:60})])):D("",!0),f(i)?(_(),T("iframe",{key:2,ref_key:"iframe",ref:s,class:Z(["game-player__iframe",f(o)&&"game-player__iframe--hidden"]),onError:c[0]||(c[0]=(...u)=>f(a)&&f(a)(...u))},null,34)):D("",!0)])],512))}}),KG=Object.freeze(Object.defineProperty({__proto__:null,GameDummy:qE,GamePlayer:QE,useGameHostBridge:YE,useGamePlayer:XE},Symbol.toStringTag,{value:"Module"})),YG=J({__name:"Game",props:{data:{}},setup(e){const t=ut(vE,C(()=>!1));return(n,s)=>f(t)?(_(),L(f(qE),{key:0,"game-manifest":e.data},null,8,["game-manifest"])):(_(),L(f(QE),{key:1,"game-manifest":e.data},null,8,["game-manifest"]))}});function XG(e){const t={text:"",subline1:""};return"number"in e&&(t.text=e.number),"text"in e&&(t.text=e.text),"title"in e&&(t.subline1=e.title),!Pa(t.text)&&!Pa(t.subline1)?null:t}const w_=5,_h=J({__name:"Blocks",props:{blocks:{},totalBlocksNumber:{},isEnableAnchorNavigation:{type:Boolean},onReadProgress:{type:Function}},setup(e){const t=ct(),n=dn(),s=e,i=Vs(),o=db(),r=bt(new Set);A$(o,n,C(()=>s.isEnableAnchorNavigation)),gt(VE,i);const a={text:oG,header:Aj,list:Ij,delimiter:xj,quote:b_,media:zE,link:g_,video:dG,tweet:lG,telegram:sG,osnovaEmbed:$j,audio:yj,rawhtml:Kj,special_button:Qj,telegram_button:eG,quiz:Wj,code:kj,person:wG,yamusic:TG,spotify:PG,game:YG},l=["tiktok","instagram"],c=["incut","number"],u=C(()=>{const p=[];return s.blocks.forEach(m=>{const v={block:m};if(m.type in a)v.component=a[m.type],v.props={data:m.data};else if(l.includes(m.type)){const g=T8(m.data);g!==null&&(v.component=g_,v.props={data:{link:g}})}else if(c.includes(m.type)){const g=XG(m.data);g!==null&&(v.component=b_,v.props={data:g})}else v.component=hG,v.props={type:m.type};p.push(v)}),p});function d(p){var g;r.add(p);const m=s.totalBlocksNumber??s.blocks.length,v=parseFloat((r.size/m).toFixed(2));(g=s.onReadProgress)==null||g.call(s,v)}function h(p){let m=p.target;m.nodeType!==Node.ELEMENT_NODE&&(m=m.parentElement);const v=m==null?void 0:m.closest("a");if(q(v)){const{trackEvent:g}=Qn();g("Post â Link â Click",{url:v.getAttribute("href")})}}return(p,m)=>Ie((_(),T("article",{onClickPassive:h},[(_(!0),T(ye,null,We(u.value,(v,g)=>(_(),L(mG,{ref_for:!0,ref:b=>{v.block.anchor&&v.block.anchor.length>0&&f(o).set(b)},key:v.block.type+g,block:v.block,"on-seen":e.onReadProgress!==void 0?d:void 0},{default:K(()=>[g===w_&&u.value.length>w_?Ve(p.$slots,"banner",{key:0}):D("",!0),(_(),L(nn(v.component),St({ref_for:!0},v.props),null,16))]),_:2},1032,["block","on-seen"]))),128))],32)),[[f(Wb),f(t)]])}}),QG={class:"content-repost-label"},JG=J({__name:"ContentRepostLabel",props:{data:{},openInNewTab:{type:Boolean}},setup(e){const t=e,{t:n}=Ne(),s=C(()=>"isNotAvailable"in t.data.data&&!t.data.data.isNotAvailable?{title:q(t.data.data.title)?t.data.data.title:t.data.data.author.name,url:Fn({id:t.data.data.original_id,title:t.data.data.title,subsite:t.data.data.author})}:!1);return(i,o)=>
127(_(),T("div",QG,[O("span",null,[A(f(Re),{name:"repost",width:16,height:16}),xe(" "+Y(s.value?f(n)("entry.entry.repostLabel"):f(n)("entry.entry.repostLabelUnavailable")),1)]),s.value?(_(),L(f(Qe),{key:0,to:s.value.url,target:e.openInNewTab?"_blank":void 0},{default:K(()=>[xe(Y(s.value.title),1)]),_:1},8,["to","target"])):D("",!0)]))}}),ZG={key:0,class:"content__draft-badge"},eq={class:"content__body"},tq={key:3,class:"content__read-more"},nq={key:2,class:"content__reactions"},sq={key:0,class:"content__floating"},iq={key:0,class:"content__floating-collapse-wrapper"},oq=.75,F0=J({__name:"Content",props:{data:{},meta:{},location:{},isOverlayLink:{type:Boolean},isShort:{type:Boolean},isExpanded:{type:Boolean},isEmbed:{type:Boolean},actions:{},index:{},listName:{},sourceContentId:{}},emits:["readFull","header-visibility-changed","expand","collapse"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=C(()=>"original_id"in s.data?s.data.original_id:s.data.id),r=C(()=>Fn({...s.data,id:o.value})),{t:a,tf:l}=Ne(),{user:c,isAnon:u,isUserDisabledAds:d,isHaveProRestrictions:h,isMe:p}=Ye(),{setBlurNsfw:m}=pd(),{isWiderThanContent:v,appTabbarHeight:g}=an(),b=of==null?void 0:of(),{isBannerEnabled:w,isDisabled:k}=Go(),{open:y}=Wt(),{alert:S,AlertType:E}=fn(),x=P(),M=P(s.data.isBlur),I=P(!1),N=C(()=>!V.value&&!s.isEmbed&&!s.isExpanded),V=C(()=>s.isExpanded?!1:s.isShort),$=C(()=>!(I.value||s.isEmbed)),j=C(()=>s.data.title.length>0),X=C(()=>{if(s.data.isEditorial)return"editorial";if(R.value)return"game"}),U=C(()=>Me.value.length>0),R=C(()=>"isGame"in s.data?s.data.isGame:!1),G=P(!1),H=mt("contentTopHorizon"),se=mt("contentBottomHorizon"),{observe:ue,unobserve:de}=pp();sC({contentRoot:x,contentId:o,isExpanded:C(()=>s.isExpanded??!1),isSeparatePageMode:N,location:s.location,index:s.index,meta:s.meta,sourceContentId:s.sourceContentId});const ke=js(st=>{G.value=st},100);function Se(){const st=g.value,rn=40;if(!q(H.value)||!q(se.value)||!q(x.value))throw new Error("Content horizons are not initialized");ue(H.value,{threshold:0,rootMargin:"-50% 0px 0px"},Vn=>{const Ko=Vn.isIntersecting,Yo=Vn.boundingClientRect,Hr=Vn.rootBounds,Np=Yo.top>((Hr==null?void 0:Hr.top)??0);ke(!Ko&&!Np)}),ue(se.value,{threshold:0,rootMargin:`0px 0px ${st+rn}px`},Vn=>{requestAnimationFrame(()=>{const Ko=Vn.isIntersecting;ke(!Ko)})})}function _e(){q(H.value)&&de(H.value),q(se.value)&&de(se.value)}be(()=>s.isExpanded,st=>{st?Se():_e()});const Q=C(()=>{var st;return((st=Me.value.find(Boolean))==null?void 0:st.type)==="text"&&"warningFromEditor"in s.data&&s.data.warningFromEditor===null}),ge=C(()=>{let st=[...s.data.blocks];return V.value&&!R.value&&(st=ae(s.data.blocks)),st}),{prepareBlocksForDisplay:ie,getBlocksForShortDisplay:ae}=ME(),pe=C(()=>ie(ge.value,V.value)),ve=C(()=>pe.value.isTrimmed),Me=C(()=>pe.value.blocks),Ke=C(()=>R.value||s.isExpanded||s.isEmbed?!1:s.data.blocks.length>Me.value.length?!0:ve.value),B=C(()=>{if(Me.value.length===0)return!1;const st=ai(Me.value);return st===void 0?!1:["quiz","rawhtml","warning"].includes(st.type)}),W=P(!1),oe=C(()=>{var Vn;const st=j.value||U.value;if(M.value&&st&&!W.value)return!0;const rn=u.value||((Vn=c.value)==null?void 0:Vn.isBlurNsfw)===!0;return st&&M.value&&rn}),he=C(()=>"isLikesEnabled"in s.data&&s.data.isLikesEnabled&&!s.isEmbed),re=C(()=>"isRemovedByUserRequest"in s.data&&s.data.isRemovedByUserRequest),F=C(()=>"isCommentsEnabled"in s.data&&s.data.isCommentsEnabled),z=C(()=>!s.isEmbed&&(he.value||F.value)&&Ee.value),ee=ut(Rp,!1),te=C(()=>!p(s.data.author.id)&&ee&&!s.isEmbed&&Ee.value),we=C(()=>s.isShort&&!v.value),Ee=C(()=>"isPublished"in s.data&&s.data.isPublished),ne=C(()=>!u.value&&!s.isEmbed&&s.actions!==void 0),me=C(()=>{const st=(b==null?void 0:b.isPostBoostEnabledForAll)??!1?!0:h.value;return q('{ "tgBotName":"vcruPro_bot", "levels":{ "default":{ "pricesPerMonth":{ "1":39900, "3":110700, "6":209400, "12":394800 }, "defaultPeriod":12, "entryPoints":{ "Direct Link":{ "start":"link_4slqKpTAyw" }, "Badge":{ "start":"link_bjHA4j1Jvu" }, "Pro Limits":{ "start":"link_18EUEbha4S" }, "Account":{ "start":"link_Cu8HPVAleN" }, "Settings":{ "start":"link_yvmDvQ5Cqu" }, "Every N Session":{ "start":"link_roNKZtkQha" }, "Editor Limit":{ "start":"link_vGWkmRt50A" }, "Pro Rotation":{ "start":"link_R7RU4LCKjb" } } }, "max":{ "pricesPerMonth":{ "1":69900, "3":194700, "6":365400, "12":682800 }, "defaultPeriod":12, "entryPoints":{ "Direct Link":{ "start":"link_2az273NRd1" }, "Badge":{ "start":"link_PpTQTuL5cF" }, "Pro Limits":{ "start":"link_nbvRtVjjjS" }, "Account":{ "start":"link_bAA5kMWyZ8" }, "Settings":{ "start":"link_qno5vzLAd8" }, "Every N Session":{ "start":"link_kmzuJ9JDeY" }, "Editor Limit":{ "start":"link_cKwbWaKKMc" }, "Pro Rotation":{ "start":"link_vHz1EcWlsK" } } } }, "isCustomMetrikaEnabled":true, "isButtonToolEnabled":true, "isPostBoostEnabledForAll":true, "isBoostFeaturePromoted":true}')&&Ee.value&&p(s.data.author.id)&&st&&!s.isEmbed}),Pe=C(()=>"reactions"in s.data&&he.value&&!re.value&&Ee.value),He=C(()=>!v.value&&!d.value&&w(Le.Post));gt(T0,C(()=>"counters"in s.data?s.data.counters:void 0)),gt(hc,C(()=>V.value)),gt(vE,C(()=>s.isEmbed)),gt(mE,o.value),gt(A0,C(()=>"commentsSeenCount"in s.data?s.data.commentsSeenCount??null:null)),gt(Ip,s.location),gt(gd,C(()=>s.data.title));const Ze=C(()=>{const st=v.value&&w(Le.VideoPlayerDesktop),rn=!v.value&&w(Le.VideoPlayerMobile);if(!k.value&&(st||rn))return cn(Ra,{id:v.value?Le.VideoPlayerDesktop:Le.VideoPlayerMobile,reserveSpace:!1})});gt(GS,Ze);async function nt(st){return s.actions===void 0||"original_id"in s.data?[]:await s.actions.getContextActions({data:s.data,isShort:V.value},st)}async function ht(st){if(st===!0)try{await m(!1)}catch(rn){S({type:E.Error,text:l(`shared.errors.${rn.message}`,"shared.unknownError")})}M.value=!1}function jt(st){st>=oq&&(I.value=!0,i("readFull"))}function Hn(st){!V.value&&!s.isEmbed&&i("header-visibility-changed",st)}
127const On=ct(),io=C(()=>s.index!==void 0&&s.listName!==void 0?["Feed Item â [Show, Click]",{Feed:s.listName,Item:s.index}]:void 0),Ur=C(()=>s.index!==void 0&&s.listName!==void 0?["Feed Item â Read More â Click",{Feed:s.listName,Item:s.index}]:void 0),Bn=C(()=>["Post â More â Click",{Location:s.location}]);async function bn(){var st,rn;if("summaryContent"in s.data){if(((st=c.value)==null?void 0:st.isPlus)!==!0){await On.push({name:"Plus",params:{source:Ln.PostSummary}});return}s.data.summaryContent===null&&await((rn=s.actions)==null?void 0:rn.refreshSummary(s.data.id)),y(cn("div",{class:"content-summary"},[cn(_h,{blocks:s.data.summaryContent??[]}),cn("div",{class:"content-summary__note"},a("shared.generatedWithAi"))]),{},{title:a("shared.summary"),referer:$e.PostSummary})}}function Ai(){i("expand")}return je(()=>{W.value=!0,V.value||Se()}),et(()=>{_e()}),t({contentTopHorizon:H,contentBottomHorizon:se,contentRoot:x}),(st,rn)=>{var Ko;const Vn=An("gtm");return _(),T("div",{ref_key:"contentRoot",ref:x,class:Z(["content",V.value&&"content--short",!z.value&&"content--without-footer",e.isEmbed&&"content--embed",e.isEmbed&&B.value&&"content--without-bottom",oe.value&&"content--nsfw"])},[A(f(Tt),null,{default:K(()=>[me.value?(_(),L(f(JW),{key:0,url:r.value},null,8,["url"])):D("",!0)]),_:1}),D("",!0),O("div",{ref_key:"contentTopHorizon",ref:H},null,512),A(f(zW),{id:o.value,"content-url":r.value,author:e.data.author,subsite:e.data.subsite,date:e.data.date,"date-modified":"dateModified"in e.data?e.data.dateModified:void 0,"is-pinned":"isPinned"in e.data?e.data.isPinned:!1,"is-published":Ee.value,source:"source"in e.data?e.data.source:void 0,onVisibilityChanged:Hn},Is({actions:K(()=>[!e.isEmbed&&!Ee.value&&!re.value?(_(),T("span",ZG,Y(f(a)("shared.content.draft")),1)):D("",!0),"isExistSummaryContent"in e.data&&e.data.isExistSummaryContent?Ie((_(),L(f(qe),{key:1,icon:"summary",type:"minimal",size:"s",class:"content__summary-button",onClick:rn[0]||(rn[0]=Yo=>bn())},{default:K(()=>[f(v)?(_(),T(ye,{key:0},[xe(Y(f(a)("shared.summary")),1)],64)):D("",!0)]),_:1})),[[Vn,"Post â Summary Button â [Show, Click]"]]):D("",!0),te.value?(_(),L(f(uc),{key:2,subsite:e.data.author,compact:!0,"hidden-if-subscribed":!0,"icon-only":we.value,"gtm-prefix":"Feed","from-feed":e.listName,"post-id":o.value,"has-unsubscribe":""},null,8,["subsite","icon-only","from-feed","post-id"])):D("",!0),ne.value?Ie((_(),L(f(vp),{key:3,class:"content__etc",position:"right","icon-size":16,"button-size":28,filled:"",data:nt},null,512)),[[Vn,Bn.value]]):D("",!0),Ve(st.$slots,"header-extra-actions")]),_:2},[st.$slots["header-meta"]?{name:"meta",fn:K(()=>[Ve(st.$slots,"header-meta")]),key:"0"}:void 0]),1032,["id","content-url","author","subsite","date","date-modified","is-pinned","is-published","source"]),"repostData"in e.data&&e.data.repostData?(_(),L(JG,{key:1,data:e.data.repostData},null,8,["data"])):D("",!0),O("div",eq,[j.value?(_(),L(f(D0),{key:0,title:e.data.title,"is-main":N.value,type:X.value,"is-low-indent":Q.value,"content-url":!N.value&&!s.isEmbed?r.value:void 0},null,8,["title","is-main","type","is-low-indent","content-url"])):D("",!0),"warningFromEditor"in e.data&&e.data.warningFromEditor?(_(),L(f(aj),{key:1,title:e.data.warningFromEditorTitle??f(a)("shared.content.fromEditors"),text:e.data.warningFromEditor},null,8,["title","text"])):D("",!0),U.value?(_(),L(f(_h),{key:2,class:"content__blocks",blocks:Me.value,"total-blocks-number":e.data.blocks.length,"is-enable-anchor-navigation":N.value||s.isExpanded,"on-read-progress":$.value?jt:void 0},{banner:K(()=>[He.value?(_(),L(f(Tt),{key:0},{default:K(()=>[A(f(XW))]),_:1})):D("",!0)]),_:1},8,["blocks","total-blocks-number","is-enable-anchor-navigation","on-read-progress"])):D("",!0),Ke.value?(_(),T("div",tq,[Ie((_(),L(f(zs),{onClick:Ai},{default:K(()=>[xe(Y(f(a)("shared.readMore"))+" ",1),A(f(Re),{name:"chevron_down",width:20,height:20})]),_:1})),[[Vn,Ur.value]])])):D("",!0),e.isOverlayLink?Ie((_(),L(f(Qe),{key:4,to:r.value,class:"content__link"},null,8,["to"])),[[Vn,io.value]]):D("",!0),oe.value?(_(),L(f(qW),{key:5,onShow:ht})):D("",!0)]),"reactions"in e.data&&e.data.reactions!==null&&Pe.value?(_(),T("div",nq,[A(f(Fl),{entity:e.data,"donation-type":f(Rs).Post,handlers:s.actions},{default:K(({state:Yo,picker:Hr})=>[A(f(Ep),{items:Yo.nodes,picker:Hr,"is-always-expanded":N.value},null,8,["items","picker","is-always-expanded"])]),_:1},8,["entity","donation-type","handlers"])])):D("",!0),!V.value||s.isExpanded?(_(),L(f(Tt),{key:3},{default:K(()=>[A(qn,{name:"reveal"},{default:K(()=>[G.value?(_(),T("div",sq,[s.isExpanded?(_(),T("div",iq,[A(f(Mo),{icon:"cross",onClick:rn[1]||(rn[1]=Yo=>
127i("collapse"))})])):D("",!0),z.value?(_(),L(f(vg),{key:1,content:e.data,"is-floating":!0,actions:e.actions},null,8,["content","actions"])):D("",!0)])):D("",!0)]),_:1})]),_:1})):D("",!0),O("div",{ref_key:"contentBottomHorizon",ref:se},null,512),z.value?(_(),L(f(vg),{key:4,content:e.data,actions:e.actions,"is-show-views":!e.isEmbed},null,8,["content","actions","is-show-views"])):D("",!0),(Ko=e.meta)!=null&&Ko.popularComment?(_(),L(f(ZW),{key:5,data:e.meta.popularComment,contentUrl:r.value,location:s.location},null,8,["data","contentUrl","location"])):D("",!0)],2)}}}),rq={class:"andropov-osnova-embed"},aq={key:1,class:"content content--embed andropov-osnova-embed__unavailable"},lq=J({__name:"OsnovaEmbed",props:{data:{},isPlainLink:{type:Boolean}},setup(e){const t=e,{t:n}=Ne(Oe.Shared),s=C(()=>t.data.blocks===void 0),i=ut(v_,!1);return i||gt(v_,!0),t.isPlainLink&>(Zb,t.isPlainLink),(o,r)=>(_(),T("div",rq,[f(i)?(_(),L(f(Qe),{key:0,to:`/${e.data.original_id}`,class:"andropov-osnova-embed__nested"},{default:K(()=>[xe(Y(f(n)("andropov.embed.previous")),1)]),_:1},8,["to"])):s.value?(_(),T("div",aq,Y(f(n)("andropov.embed.unavailable")),1)):(_(),L(F0,{key:2,data:e.data,"is-short":!0,"is-embed":!0,"is-overlay-link":!0,location:"osnova-embed"},null,8,["data"]))]))}}),JE=({i18n:e,actions:t,feedKey:n,isCompact:s,isWrapInLink:i,linkReferer:o,isDisableReplies:r,isWithoutContext:a,...l})=>A("div",{class:["comment-item",s&&"comment-item--compact"],"data-id":l.id},[[A(bq,St(l,{i18n:e,isShowDate:!s,isAuthorPreview:!s,linkReferer:o,isWithoutContext:a}),null),A(mq,St(l,{i18n:e,actions:t,isWrapInLink:i,mediaSize:s?[42,42]:[400,300],mediaZoom:!s,linkReferer:o}),null),!s&&!r&&A(gq,St(l,{i18n:e,actions:t,context:{feedKey:n}}),null)]]),cq=({items:e,zoom:t,size:n,maxSize:s})=>A("div",{class:"comment-media"},[e.map((i,o)=>{const r=t&&i.type===Pt.Image&&i.data.type!=="gif";return A(jo,{key:`media:${o}`,type:i.type,data:i.data,size:n,maxSize:s,zoom:r,rounded:!0,bordered:!0},null)})]),uq=J({__name:"CommentsSkeleton",props:{size:{default:5},withBackground:{type:Boolean,default:!0}},setup(e){return(t,n)=>(_(),T("div",{class:Z(["skeleton-comments",e.withBackground&&"skeleton-comments--with-background"])},[(_(!0),T(ye,null,We(e.size,s=>(_(),L(f(no),{key:s,preset:"comment"}))),128))],2))}}),dq={class:"comments-counter__unread"},ZE=J({__name:"Counter",props:{to:{default:"#"},count:{},prevCount:{default:void 0},size:{default:"default"},referer:{default:void 0}},setup(e){const t=e,n=C(()=>t.prevCount===void 0?0:t.count-t.prevCount);return(s,i)=>(_(),L(f(Qe),{class:"comments-counter",to:e.to,referer:e.referer},{default:K(()=>[A(Mo,{size:e.size,icon:"comment",label:e.count},Is({_:2},[n.value>0?{name:"label-right",fn:K(()=>[A(f(Tt),null,{default:K(()=>[O("span",dq," +"+Y(n.value),1)]),_:1})]),key:"0"}:void 0]),1032,["size","label"])]),_:1},8,["to","referer"]))}}),fq=({value:e})=>A("div",{class:"donation"},[yn(e)]);function hq(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Lo(e)}const pq=({isWrap:e=!1,to:t,referer:n},{slots:s})=>{var o;const i=(o=s.default)==null?void 0:o.call(s);return e?A(Qe,{to:t,referer:n},hq(i)?i:{default:()=>[i]}):i},mq=({i18n:e,actions:t,...n})=>[A(pq,{isWrap:n.isWrapInLink,to:fc(n.entry,n.id),referer:n.linkReferer},{default:()=>[q(n.donation)&&A("div",{class:"comment-donation"},[A(fq,{value:n.donation},null)]),A("div",{class:"comment-text",innerHTML:lp(n.text)},null),n.media.length>0&&A(cq,{items:n.media,maxSize:n.mediaSize,zoom:n.mediaZoom},null),!n.isWrapInLink&&t&&A(Fl,{entity:n,donationType:Rs.CommentCreator,handlers:t},{default:({state:s,picker:i})=>A(Ep,{class:"comment-reactions",items:s.nodes,picker:i},null)}),n.isWrapInLink&&n.reactions!==null&&A(Fl,{entity:n,donationType:Rs.Comment,handlers:t},{default:({state:s,reactionType:i})=>{var o,r;return A("div",{class:"comment-reactions-preview"},[(o=s.stateByType[i.Emote])==null?void 0:o.nodes.slice(0,3).reduce((a,l)=>{var c,u;return((c=l.image)==null?void 0:c.staticUuid)===void 0||!q(l.count)||a.push(A(bp,{staticUuid:l.image.staticUuid,animatedUuid:(u=l.image)==null?void 0:u.animatedUuid,width:18,height:18},null)),a},[]),A("span",{class:"comment-reactions-preview__count"},[e.p("shared.reactions.counter",((r=s.stateByType[i.Emote])==null?void 0:r.count)??0)])])}})]})];function vq(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Lo(e)}const gq=({i18n:e,actions:t,context:n,isReplyDisabled:s,isEtcDisabled:i,onReplyClick:o,...r},{slots:a})=>{var u;let l;const c=t!==void 0?async d=>await t.getContextActions({...n,comment:r},d):void 0;return A("div",{class:"comment-footer"},[[(u=a.default)==null?void 0:u.call(a),!s&&Ie(A(Qe,{class:"comment-action",to:fc(r.entry,r.id,!0),preventDefault:o!==void 0,onClick:()=>o==null?void 0:o()},vq(l=e.t("shared.comments.reply"))?l:{default:()=>[l]}),[[vh,"Comment â Reply â Click"]]),!i&&c!==void 0&&Ie(A(vp,{size:"small",data:c},null),[[vh,"Comment â More â Click"]])]])},bq=({i18n:e,isShowDate:t,isAuthorPreview:n,linkReferer:s,isWithoutContext:i,...o})=>A(Ha,{class:"comment-header",id:n?o.author.id:void 0,url:gn(o.author),name:o.author.name,avatar:o.author.avatar,badgeId:o.author.badgeId,isAllowVideoAvatar:o.author.isPlus,location:"Comment",avatarSize:36,isOnline:o.author.isOnline,linkReferer:s},{main:()=>[!i&&A("span",{class:"comment-header__in-post"},[e.t("shared.inPost")])],secondary:()=>[o.entry.title.length>0&&!i&&A(Qe,{class:"comment-header__post-title",to:Fn(o.entry),referer:s,title:o.entry.title},{default:()=>[o.entry.title]}),t&&A(Qe,{to:fc(o.entry,o.id),class:"comment-header__date",referer:s},{default:()=>[A(sc,{date:o.date},null)]})]}),yq={class:"interesting-blogs"},wq={class:"interesting-blogs__title"},_q={class:"interesting-blogs__list"},kq={class:"interesting-blogs__subscribe"},Sq=["innerHTML"],Cq=J({__name:"InterestingBlogs",props:{items:{}},emits:["view"],setup(e,{emit:t}){const n=t,{t:s,p:i}=Ne();function o(r){r&&n("view")}return(r,a)=>{const l=An("gtm");return Ie((_(),T("div",yq,[O("div",wq,Y(f(s)("shared.widgets.interestingBlogs")),1),e.items.length===0?(_(),L(f(no),{key:0,schema:({bar:c,bars:u,gapY:d})=>[[d("16px"),...u(2,!0)],[d("16px"),...u(2,!0)],[d("16px"),...u(2,!0)],[d("16px"),c("30%")]]},null,8,["schema"])):(_(),T(ye,{key:1},[O("div",_q,[(_(!0),T(ye,null,We(e.items,c=>(_(),T("div",{key:c.data.id,class:"interesting-blogs__item"},[A(f(Ha),{id:c.data.id,avatar:c.data.avatar,"is-allow-video-avatar":c.data.isPlus,"avatar-size":40,name:c.data.name,"badge-id":c.data.badgeId,url:f(gn)(c.data),class:"widget-top-subsites__author"},{secondary:K(()=>{var u;return[xe(Y(f(i)("discovery.subscribers",((u=c.data.counters)==null?void 0:u.subscribers)??0)),1)]}),_:2},1032,["id","avatar","is-allow-video-avatar","name","badge-id","url"]),O("div",kq,[A(f(uc),{subsite:c.data,compact:"",type:"primary","has-unsubscribe":"","gtm-prefix":"Interesting Blogs","from-feed":f($e).Discovery},null,8,["subsite","from-feed"])]),f(q)(c.data.description)?(_(),T("div",{key:0,class:"interesting-blogs__description",innerHTML:f(lp)(c.data.description)},null,8,Sq)):D("",!0)]))),128))]),A(f(zs),{to:{name:"Discovery"},class:"interesting-blogs__more"},{default:K(()=>[xe(Y(f(s)("common.showMore")),1)]),_:1})],64))])),[[f(KC),[o,{once:!0}
127]],[l,"Interesting Blogs â [Show, Click]"]])}}}),Eq={class:"feed-sorting"},xq={class:"feed-sorting__desktop"},Tq=J({__name:"FeedSorting",props:{activeSorting:{},activeTab:{}},setup(e){const{isTwoColumns:t}=an(),{t:n}=Ne(),{formatTime:s}=Mr(),{isAnon:i,user:o}=Ye(),r=S0(),a=e,{hasNewPosts:l,hasMyNewPosts:c}=I0(),u=C(()=>a.activeTab===Te.My),d=C(()=>[{label:n("core.sections.popular"),to:`/${Te.Popular}`,alias:"/"},{label:n("core.sections.new"),to:`/${Te.New}`,hasUpdates:l.value},{label:n("core.sections.my"),to:`/${Te.My}`,isHidden:i.value,hasUpdates:c.value}]),h=C(()=>({[Te.Popular]:[{label:s(void 0,us.DayAndMonth),value:ns.Hotness,path:"",gtm:"Popular Feed â Sort â Now â Click"},{label:n("entry.feed.sorting.popular.day"),value:ns.Day,path:`/${ns.Day}`,gtm:"Popular Feed â Sort â Day â Click"},{label:n("entry.feed.sorting.popular.week"),value:ns.Week,path:`/${ns.Week}`,gtm:"Popular Feed â Sort â Week â Click"},{label:n("entry.feed.sorting.popular.month"),value:ns.Month,path:`/${ns.Month}`,gtm:"Popular Feed â Sort â Month â Click"},{label:n("entry.feed.sorting.popular.year"),value:ns.Year,path:`/${ns.Year}`,gtm:"Popular Feed â Sort â Year â Click"},{label:n("entry.feed.sorting.popular.all"),value:ns.All,path:`/${ns.All}`,gtm:"Popular Feed â Sort â All Time â Click"}],[Te.New]:[{label:n("entry.feed.sorting.new.from -10"),value:Ds.FromMinus10,path:`/${Ds.FromMinus10}`,gtm:"New Feed â Sort â FromMinus10 â Click"},{label:n("entry.feed.sorting.new.all"),value:Ds.All,path:`/${Ds.All}`,gtm:"New Feed â Sort â All â Click"}],[Te.My]:[{label:n("entry.feed.sorting.my.by date"),value:ni.Date,path:`/${ni.Date}`,gtm:"My Feed â Sort â By Date â Click"},{label:n("entry.feed.sorting.my.by hotness"),value:ni.Hotness,path:`/${ni.Hotness}`,gtm:"My Feed â Sort â By Popularity â Click"},{label:n("entry.feed.sorting.my.seen"),value:ni.Seen,path:`/${ni.Seen}`,gtm:"My Feed â Sort â Seen â Click"}]})),p=C(()=>{switch(a.activeTab){case Te.Popular:return"Popular Feed â Sort â Click";case Te.New:return"New Feed â Sort â Click";case Te.My:return"My Feed â Sort â Click";default:return}}),m=C(()=>h.value[a.activeTab].map(g=>({label:g.label,value:g.value,url:`/${a.activeTab}${g.path}`,gtm:g.gtm})));function v(){var g,b;((g=o.value)==null?void 0:g.id)!==void 0&&((b=r.showSubscriptions)==null||b.call(r,o.value.id))}return(g,b)=>{const w=An("gtm");return _(),T("div",Eq,[f(t)?(_(),L(f(Tt),{key:0},{default:K(()=>[O("div",xq,[Ie(A(f(Qi),{options:m.value,selected:e.activeSorting},null,8,["options","selected"]),[[w,p.value]]),u.value?(_(),L(f(zs),{key:0,size:"small",onClick:v},{default:K(()=>[xe(Y(f(n)("entry.feed.mySubscriptions")),1)]),_:1})):D("",!0)])]),_:1})):D("",!0),A(f(Dr),null,{right:K(()=>[u.value?(_(),L(f(ic),{key:0,class:"feed-sorting__subscriptions-icon",icon:"subs","icon-size":24,"is-active":"","aria-label":f(n)("entry.feed.mySubscriptions"),title:f(n)("entry.feed.mySubscriptions"),onClick:v},null,8,["aria-label","title"])):D("",!0),Ie(A(f(Qi),{options:m.value,selected:e.activeSorting,icon:"sort"},null,8,["options","selected"]),[[w,p.value]])]),default:K(()=>[A(f(e0),{tabs:d.value},null,8,["tabs"])]),_:1})])}}});async function U0(e,t,n={}){const{[Oe.Subsite]:s}=vt(),{isAnon:i,onUserUpdate:o,offUserUpdate:r}=Ye(),a=P([]),l=C(()=>ce(t)),c=C(()=>ce(n.widget)),u=C(()=>q(l.value)?a.value.filter(v=>{var g;return((g=v.data.category)==null?void 0:g.id)===l.value}).map(v=>{var g,b;return{...v,meta:{rank:((g=v.data.category)==null?void 0:g.rank)??0,prevRank:((b=v.data.category)==null?void 0:b.rank)??0}}}):a.value),d=P(!1);async function h(v){d.value=!0,a.value=await s.getTopByType(ce(e),v,q(c.value)?{widget:c.value}:void 0),d.value=!1}async function p(){so()||await h()}function m({isAnon:v}){h(!v)}return bs(()=>{o(m)}),et(()=>{r(m)}),await eo({onServer:p,onHydration:p,onAfterClientRender:async()=>{(a.value.length===0||!i.value)&&await h(!i.value)}}),{type:e,items:u,isLoading:d,load:h}}const __=3,Aq=1440*60*1e3,Pq="interesting-blogs-last-shown-at",Hm=async e=>{const{isAnon:t}=Ye(),n=await U0(en.Blogs,void 0,{widget:"interesting"}),s=Xn(Pq,null),i=C(()=>n.items.value.slice(0,__)),o=C(()=>n.isLoading.value?!0:i.value.some(({data:u})=>u.isAnonymized)?i.value.length>0:i.value.length>=__),r=P(l());be(()=>ce(e.canShow),(u,d)=>{u&&d===!1&&(r.value=l())});const a=C(()=>t.value||r.value||!ce(e.canShow)?!1:o.value);function l(){return s.value===null?!1:Date.now()-s.value<Aq}function c(){s.value=Date.now()}return{items:i,isAvailable:a,markAsShown:c}};function Rq(e,t){const{[Oe.Feed]:n}=vt(),{user:s}=Ye(),i=l=>l===Ds.From5||l===Ds.From10?Ds.FromMinus10:l,o=C(()=>ce(e)),r=C(()=>ce(t)),a=C(()=>{var c;const l=q(s.value)?n.getIndexFeedSorting(Te.New)??Ds.FromMinus10:Ds.From5;return{[Te.Popular]:ns.Hotness,[Te.New]:i(l),[Te.My]:((c=s.value)==null?void 0:c.myFeedSorting)??ni.Date}});return be([o,r],([l,c],[u,d])=>{l===Te.New&&l===u&&c!==void 0&&n.setIndexFeedSorting(l,i(c))}),C(()=>o.value===Te.New&&r.value!==void 0?i(r.value):r.value??a.value[o.value])}function Iq(e){const{t}=Ne();return{title:(()=>
127{if(!(e.type===void 0||e.sorting===void 0))return e.type===Te.Popular&&typeof e.sorting=="string"?e.sorting!==ns.Hotness?`${t(`entry.feed.sorting.popular.${e.sorting}`)} â бизнеÑ, ÑеÑ
нологии, идеи, модели ÑоÑÑа, ÑÑаÑÑапÑ`:void 0:`${t(`core.sections.${e.type}`)} â бизнеÑ, ÑеÑ
нологии, идеи, модели ÑоÑÑа, ÑÑаÑÑапÑ`})()}}function ex(e,t){if(e.path==="/"&&t!==void 0&&t!==null&&t.defaultFeed!==Te.Popular){const n=new URLSearchParams(e.query).toString();return`/${t.defaultFeed}${n.length>0?`?${n}`:""}`}}const Mq={class:"feed-page"},$q={class:"feed-page__content-list"},Lq={key:0,class:"feed-page__news"},Oq={key:0,class:"feed-page__seen-posts-count"},Bq=J({name:"FeedPage",__name:"Home",props:{tab:{default:Te.Popular},sorting:{default:void 0}},async setup(e){let t,n;const s=e,i=ji({loader:Rt(async()=>await Ce(()=>import("./Stories-D4nnySUB.js"),__vite__mapDeps([114,115])))}),o=cl==null?void 0:cl(),r=Rq(()=>s.tab,()=>s.sorting),{items:a,refresh:l,loadMore:c,isLoading:u,isFeedPresent:d,isError:h,seenPostsCount:p,canShowViewedPosts:m,closeViewedPosts:v}=([t,n]=on(()=>Ti({type:()=>s.tab,options:()=>({sorting:r.value}),seo:({type:ae,options:pe})=>Iq({type:ae,sorting:pe==null?void 0:pe.sorting}),onOptionsChange:ae=>{(ae===Te.New||ae===Te.My)&&(Se(),ue())}})),t=await t,n(),t),g=([t,n]=on(()=>Hm==null?void 0:Hm({canShow:()=>s.tab===Te.Popular})),t=await t,n(),t),{onUserUpdate:b,offUserUpdate:w,isUserDisabledAds:k}=Ye(),{isPromotedPostSlot:y}=pc(),{t:S,p:E}=Ne(),{view:x}=Da(),M=$s({fromFeed:()=>s.tab}),I=ct(),{redirect:N}=dd(),{isWiderThanContent:V}=an(),{isEnabled:$,isHiddenOnWide:j}=v0(),X=C(()=>{if(k.value||s.tab!==Te.Popular)return[];const ae=[[tt.AfterFirst,Le.FirstInPopular],[tt.AfterFifth,Le.SecondInPopular],[tt.AfterTenth,Le.FeedBetweenPosts],[tt.AfterFifteenth,Le.FeedBetweenPosts],[tt.AfterEveryRemainingFifth,Le.FeedBetweenPosts]];return g!=null&&g.isAvailable.value?ae.filter(([pe])=>pe!==tt.AfterFifth):ae}),U=void 0,R=C(()=>s.tab===Te.Popular&&r.value===ns.Hotness),G=C(()=>h.value?S("shared.dataLoadingError"):s.tab===Te.My?r.value===ni.Seen?S("entry.feed.empty.seen"):S("entry.feed.empty.my"):S("common.emptyStubText")),H=({to:ae})=>{const pe=ex(I.currentRoute.value,ae);pe!==void 0&&N(pe)};bs(()=>{b(H)}),et(()=>{w(H)}),_P((ae,pe)=>{ae.hash!==pe.hash&&ae.fullPath.split("#")[0]===pe.fullPath.split("#")[0]||"tab"in ae.params&&"tab"in pe.params&&ae.params.tab===pe.params.tab&&pe.query.modal===void 0&&ae.query.modal===void 0&&((ae.params.tab===Te.New||ae.params.tab===Te.My)&&(Se(),ue()),l())});const{hasNewPosts:se,reset:ue,hasMyNewPosts:de}=I0(),ke=P(!1);be(()=>s.tab,()=>{Se()});function Se(){ke.value=!1}function _e(){ke.value=!0}const Q=C(()=>s.tab===Te.New?[Ds.FromMinus10,Ds.All].includes(r.value)&&se.value&&ke.value:s.tab===Te.My?r.value===ni.Date&&de.value&&ke.value:!1);function ge(){window.scrollTo({top:0}),window.requestAnimationFrame(()=>{Se(),ue(),l()})}function ie(ae){x(ae,!0)}return(ae,pe)=>{var Me;const ve=An("gtm");return _(),T(ye,null,[O("div",Mq,[f(o)?(_(),L(f(i),{key:0,source:`Feed ${e.tab}`},null,8,["source"])):f($)?(_(),L(Io,{key:1,"banner-id":f(V)?f(Le).AboveContentDesktop:f(Le).AboveContentMobile,"advert-place":f(tn).PostBefore,"is-hidden-on-wide":f(j),class:"feed-page__banner"},null,8,["banner-id","advert-place","is-hidden-on-wide"])):D("",!0),A(Tq,{"active-sorting":f(r),"active-tab":e.tab},null,8,["active-sorting","active-tab"]),O("div",$q,[A(f(Tt),null,{default:K(()=>[Ie((_(),L(f(BE),{"is-displayed":Q.value,onClick:ge},{default:K(()=>[xe(Y(f(S)("entry.feed.showNewPosts")),1)]),_:1},8,["is-displayed"])),[[ve,Q.value?["New Posts â [Click, Show]",{Feed:e.tab}]:void 0]])]),_:1}),R.value?(_(),T("div",Lq,[A(UE)])):D("",!0),f(d)?D("",!0):(_(),L(f(qs),{key:1,text:G.value},null,8,["text"])),A(f(Tt),null,{default:K(()=>[f(p)&&f(m)?(_(),T("div",Oq,[O("span",null,[xe(Y(f(E)("entry.feed.hidden",f(p),!1))+" ",1),A(f(Qe),{to:{name:"HomePage",params:{tab:f(Te).My,sorting:f(ni).Seen}}},{default:K(()=>[xe(Y(f(E)("entry.feed.seenPosts",f(p))),1)]),_:1},8,["to"])]),A(f(Xi),{icon:"cross",size:"small",onClick:f(v)},null,8,["onClick"])])):D("",!0)]),_:1}),f(d)?(_(),L(f(xi),{key:e.tab,entries:f(a),"is-loading":f(u),actions:f(M),name:e.tab,"scroll-past-posts-threshold":e.tab===f(Te).New||e.tab===f(Te).My?10:void 0,onEndReached:f(c),onScrolledPastThreshold:_e},Is({_:2},[e.tab===f(Te).Popular&&f(U)?{name:"after-second",fn:K(({index:Ke,meta:B,feed:W,sourceContentId:oe})=>[Ie(A(Io,{"banner-id":f(Le).FeedBetweenPosts,"advert-place":f(tn).Feed,"is-dynamic-height":!0,"is-enabled-promoted-post":!0,"promoted-subsite-id":f(U),index:Ke,feed:e.tab,onView:he=>ie({type:f(Fs).Content,slotType:he.slotType,contentId:he.contentId,index:Ke,fromFeed:W,sourceContentId:oe,statGroup:B==null?void 0:B.statGroup,feedSegment:B==null?void 0:B.feedSegment,contentDisplayType:"short"})},null,8,["banner-id","advert-place","promoted-subsite-id","index","feed","onView"]),[[f(vs)]])]),key:"0"}:void 0,(Me=f(g))!=null&&Me.isAvailable.value?{name:"after-fifth",fn:K(()=>[Ie(A(Cq,{items:f(g).items.value,onView:pe[0]||(pe[0]=Ke=>f(g).markAsShown())},null,8,["items"]),[[f(vs)]])]),key:"1"}:void 0,We(X.value,([Ke,B])=>({name:Ke,fn:K(({index:W,meta:oe,feed:he,sourceContentId:re})=>[Ie(A(Io,{"banner-id":B,"advert-place":f(tn).Feed,"advert-load-once":!0,"is-dynamic-height":!0,"is-enabled-promoted-post":f(y)(Ke,f(Te).Popular),index:W,feed:e.tab,onView:F=>ie({type:f(Fs).Content,slotType:F.slotType,contentId:F.contentId,index:W,fromFeed:he,sourceContentId:re,statGroup:oe==null?void 0:oe.statGroup,feedSegment:oe==null?void 0:oe.feedSegment,contentDisplayType:"short"})},null,8,["banner-id","advert-place","is-enabled-promoted-post","index","feed","onView"]),[[f(vs)]])])}))]),1032,["entries","is-loading","actions","name","scroll-past-posts-threshold","onEndReached"])):D("",!0)])]),A(f(Tt),null,{default:K(()=>[A(f(HE))]),_:1})],64)}}});function k_(e){const{t,getCurrentLocale:n}=Ne(),{response:s}=Xl(),i=q(e.ogTitle)?e.ogTitle:e.title!==""?`${t("entry.entry.seoT
127itleFromPostTitle",{title:e.title,name:e.subsite.name,appName:"vc.ru"})}`:`${t(`entry.entry.seoTitleFromPostId.${e.subsite.type===_t.Blog?"blog":"community"}`,{id:e.id,name:e.subsite.name,appName:"vc.ru"})}`,o=(()=>{if(q(e.ogDescription))return e.ogDescription;const h=e.blocks.find(p=>p.type==="text");return h!==void 0?fh(h.data.text):i})(),r=e.blocks.reduce((h,p)=>(p.type==="text"&&(h+=fh(p.data.text)+" "),h),""),a=Mp({entityType:"post",entityId:e.id,version:at().unix()}),l=e.author.name,c={description:o,ogType:"article",ogImage:a.fb,twitterImage:a.tw,author:l},u=[OH({itemListElement:[{name:e.subsite.name,item:gn(e.subsite)}]}),{"@id":R0("post"),"@type":e.isNews?"NewsArticle":"Article",headline:i,description:o,datePublished:at(e.date*1e3).toISOString(),dateModified:at(e.dateModified*1e3).toISOString(),author:{"@type":"Person",name:e.author.name,image:cd({uuid:e.author.avatar.data.uuid,width:128}),url:mi(gn(e.author))},image:{"@type":"ImageObject",url:a.fb},about:{name:e.isEditorial?"ArticleEditorial":"ArticleUGC"},url:mi(Fn(e)),text:r,keywords:e.keywords,inLanguage:n()}];e.isEditorial&&u.push({"@type":"CreativeWorkSeries",name:i,aggregateRating:d()}),e.robotsTag;function d(){var m;const h=(((m=e.reactions)==null?void 0:m.counters.reduce((v,g)=>v+g.count,0))??0)+e.counters.comments;let p=4.6;return h>40?p=5:h>30?p=4.9:h>20?p=4.8:h>10&&(p=4.7),{ratingCount:h,ratingValue:p}}return{title:i,meta:c,schema:u,vkImage:a.vk}}async function Dq(e,t){const{[Oe.Entry]:n}=vt(),{isAnon:s}=Ye(),{catchError:i}=Lr(),{setPageProperties:o}=hi(),{redirect:r}=dd(),{isHidden:a}=Go(),{isHidden:l}=pc(),{isHidden:c}=md(),{trackPageHit:u}=Qn(),{response:d}=Xl(),h=dn(),p=C(()=>ce(e.id)),m=C(()=>ce(e.isHandleSeo)??!1),v=P(),g=q('{ "664187":"/courses/ai", "1202428":"/courses/ai/kids", "1160699":"/courses/ai/free", "1199128":"/courses/ai/python", "739450":"/courses/ai/neuralnetworks", "1282767":"/courses/ai/neuralnetworks/free", "815325":"/courses/ai/gpt", "1187134":"/courses/ai/ml", "1165543":"/courses/ai/ml/free", "476644":"/edu/2237265-kursy-dizayna-interera-obuchenie-s-nulya", "643607":"/edu/2237265-kursy-dizayna-interera-obuchenie-s-nulya", "573789":"/design/2247018-kursy-graficheskogo-dizajna-v-moskve-i-onlajn-top-15-luchshikh-programm", "798141":"/design/2247018-kursy-graficheskogo-dizajna-v-moskve-i-onlajn-top-15-luchshikh-programm", "546965":"/dev/2252121-luchshie-kursy-frontend-razrabotki", "521626":"/design/2251640-luchshie-kursy-po-figma-obuchenie-veb-dizainu", "478525":"/design/2251352-luchshie-kursy-po-dizainu-odezhdy", "773184":"/education/2272994-kursy-i-treningi-dlya-direktorov-i-rukovoditeley-otdela-prodazh", "734647":"/education/2275002-luchshie-kursy-po-programmirovaniyu-na-kotlin", "603821":"/education/2275260-kursy-videomontazha-luchshie-programmy-obucheniya", "633683":"/design/2275089-kursy-ui-ux-dizajna-obuchenie-interfeysami-s-nulya-v-moskve", "843412":"/education/2274917-kursy-po-programmirovaniyu-na-swift-top-10-luchshikh-programm", "842668":"/education/2274917-kursy-po-programmirovaniyu-na-swift-top-10-luchshikh-programm", "907433":"/courses/school/netology/reviews", "899517":"/courses/school/skillbox/reviews", "907826":"/courses/school/edusonacademy/reviews", "1018669":"/courses/school/productstar/reviews", "1031497":"/courses/school/skypro/reviews", "1080470":"/courses/school/maed/reviews", "910638":"/courses/school/practicum/reviews", "1030580":"/courses/school/skyeng/reviews", "331013":"/team/1148953-kak-sozdat-blog-sverstat-material-i-vypustit-ego", "122350":"/team/1148953-kak-sozdat-blog-sverstat-material-i-vypustit-ego", "327065":"/team/1148953-kak-sozdat-blog-sverstat-material-i-vypustit-ego", "960902":"/courses/school/skillfactory/reviews", "1015851":"/courses/school/geekbrains/reviews", "1018195":"/courses/school/otus/reviews", "1057524":"/courses/school/99ballov/reviews", "966557":"/courses/school/logomachine/reviews", "1029125":"/courses/school/sfeducation/reviews", "1077016":"/courses/school/coddyschool/reviews", "998411":"/courses/school/bangbangeducation/reviews", "1015863":"/courses/school/contented/reviews", "1073599":"/courses/school/brunoyam/reviews", "1078726":"/courses/school/emba/reviews", "1015822":"/courses/school/hexlet/reviews", "1083045":"/courses/school/ippss/reviews", "1082330":"/courses/school/psychodemia/reviews", "1027948":"/courses/school/schoolxyz/reviews", "1051197":"/courses/school/slurm/reviews", "67261":"/team/1148953-kak-sozdat-blog-sverstat-material-i-vypustit-ego"}')&&JSON.parse('{ "664187":"/courses/ai", "1202428":"/courses/ai/kids", "1160699":"/courses/ai/free", "1199128":"/courses/ai/python", "739450":"/courses/ai/neuralnetworks", "1282767":"/courses/ai/neuralnetworks/free", "815325":"/courses/ai/gpt", "1187134":"/courses/ai/ml", "1165543":"/courses/ai/ml/free", "476644":"/edu/2237265-kursy-dizayna-interera-obuchenie-s-nulya", "64360
1277":"/edu/2237265-kursy-dizayna-interera-obuchenie-s-nulya", "573789":"/design/2247018-kursy-graficheskogo-dizajna-v-moskve-i-onlajn-top-15-luchshikh-programm", "798141":"/design/2247018-kursy-graficheskogo-dizajna-v-moskve-i-onlajn-top-15-luchshikh-programm", "546965":"/dev/2252121-luchshie-kursy-frontend-razrabotki", "521626":"/design/2251640-luchshie-kursy-po-figma-obuchenie-veb-dizainu", "478525":"/design/2251352-luchshie-kursy-po-dizainu-odezhdy", "773184":"/education/2272994-kursy-i-treningi-dlya-direktorov-i-rukovoditeley-otdela-prodazh", "734647":"/education/2275002-luchshie-kursy-po-programmirovaniyu-na-kotlin", "603821":"/education/2275260-kursy-videomontazha-luchshie-programmy-obucheniya", "633683":"/design/2275089-kursy-ui-ux-dizajna-obuchenie-interfeysami-s-nulya-v-moskve", "843412":"/education/2274917-kursy-po-programmirovaniyu-na-swift-top-10-luchshikh-programm", "842668":"/education/2274917-kursy-po-programmirovaniyu-na-swift-top-10-luchshikh-programm", "907433":"/courses/school/netology/reviews", "899517":"/courses/school/skillbox/reviews", "907826":"/courses/school/edusonacademy/reviews", "1018669":"/courses/school/productstar/reviews", "1031497":"/courses/school/skypro/reviews", "1080470":"/courses/school/maed/reviews", "910638":"/courses/school/practicum/reviews", "1030580":"/courses/school/skyeng/reviews", "331013":"/team/1148953-kak-sozdat-blog-sverstat-material-i-vypustit-ego", "122350":"/team/1148953-kak-sozdat-blog-sverstat-material-i-vypustit-ego", "327065":"/team/1148953-kak-sozdat-blog-sverstat-material-i-vypustit-ego", "960902":"/courses/school/skillfactory/reviews", "1015851":"/courses/school/geekbrains/reviews", "1018195":"/courses/school/otus/reviews", "1057524":"/courses/school/99ballov/reviews", "966557":"/courses/school/logomachine/reviews", "1029125":"/courses/school/sfeducation/reviews", "1077016":"/courses/school/coddyschool/reviews", "998411":"/courses/school/bangbangeducation/reviews", "1015863":"/courses/school/contented/reviews", "1073599":"/courses/school/brunoyam/reviews", "1078726":"/courses/school/emba/reviews", "1015822":"/courses/school/hexlet/reviews", "1083045":"/courses/school/ippss/reviews", "1082330":"/courses/school/psychodemia/reviews", "1027948":"/courses/school/schoolxyz/reviews", "1051197":"/courses/school/slurm/reviews", "67261":"/team/1148953-kak-sozdat-blog-sverstat-material-i-vypustit-ego"}');async function b(x=!0){const M=typeof h.query.ea=="string"?h.query.ea:void 0;if(q(g)&&q(g[p.value])){await r(g[p.value]);return}await i(async()=>{try{v.value!==void 0&&n.unholdPost(p.value),v.value=await n.getEntryWith(p.value,x,M??void 0),n.holdPost(p.value),await w()}catch(I){if(I instanceof Cb&&!x&&!s.value)return;throw I}})}async function w(){v.value!==void 0&&(await r(Fn(v.value)),m.value&&o(k_(v.value)),a.value=v.value.isDisabledAd||v.value.author.isDisabledAd||v.value.subsite.isDisabledAd,l.value=a.value,c.value=a.value)}function k(){var x;n.startWatchingViewsCounter(p.value),(x=t==null?void 0:t.onAfterClientLoad)==null||x.call(t)}function y(x){v.value=void 0,n.stopWatchingViewsCounter(x??p.value),n.unholdPost(x??p.value)}be(p,async(x,M)=>{y(M),await b(!0),k()}),be(m,x=>{x&&v.value!==void 0&&o(k_(v.value))}),ib(()=>{a.value=!1,l.value=a.value,c.value=a.value}),et(()=>{y()}),await eo({onServer:async()=>await b(!1),onHydration:async()=>await b(!1),onAfterClientRender:async()=>{(v.value===void 0||!s.value)&&await b(!0),k()}});const S=C(()=>q(v.value)&&v.value.author.id!==v.value.subsite.id&&v.value.subsite.type===_t.Topic?sn(v.value.subsite):null),E=C(()=>{var x;return(x=v.value)==null?void 0:x.blocks.length});return{entry:v,trackProAnalytics:()=>{var x,M,I;((x=v.value)==null?void 0:x.author.type)===_t.Blog&&((M=v.value)!=null&&M.author.isPro)&&q((I=v.value)==null?void 0:I.author.yandexMetricaId)&&u({metricaId:v.value.author.yandexMetricaId,subsiteId:v.value.author.id,postId:v.value.id,location:"Post",Name:v.value.title,Path:Fn(v.value)})},topicNickname:S,entryBlocksLength:E}}const Nq=3e4,Fq=J({__name:"AdvertPinned",props:{isHidden:{type:Boolean,default:!1}},setup(e){const t=e,n=P(),s=P(!1),i=C(()=>!t.isHidden&&s.value);let o=0,r=0,a=0;const{pause:l,resume:c}=e3(({timestamp:p})=>{a=p,r===0&&(r=a),a-r+o>=Nq&&d()},{immediate:!1});function u(){o+=a-r,r=0,l()}function d(){var p;l(),o=0,r=0,a=0,(p=n.value)==null||p.reload(!1).then(()=>{i.value&&c()})}be(i,p=>{p?c():u()});function h(){s.value=!0}return(p,m)=>(_(),T("div",{class:Z(p.$style["advert-pinned"])},[A(qn,{"enter-from-class":p.$style["advert--enter-from"],"enter-to-class":p.$style["advert--enter-to"],"leave-active-class":p.$style["advert--leave-active"],"leave-to-class":p.$style["advert--leave-to"]},{default:K(()=>
127[Ie(A(L0,{ref_key:"advertElement",ref:n,place:f(tn).PostPinned,class:Z(p.$style.advert),onLoad:h},null,8,["place","class"]),[[As,i.value]])]),_:1},8,["enter-from-class","enter-to-class","leave-active-class","leave-to-class"])],2))}}),Uq="pOyqp8LV",Hq={"advert-pinned":"PzVWqj0c",advert:Uq,"advert--enter-from":"_9veUCEHa","advert--enter-to":"HbDE6jXe","advert--leave-active":"U1rfdlTR","underlay-in":"gAtkRGVm","modal-enter":"VBRYpBKF","modal-enter-slide":"KUui3N2y"},Vq={$style:Hq},zq=ot(Fq,[["__cssModules",Vq]]),Wq={class:"entry"},tx=J({__name:"Entry",props:{id:{},commentId:{},commentsNavigationState:{}},async setup(e){var ae;let t,n;const s=e,i=ji({loader:Rt(async()=>await Ce(()=>import("./Stories-D4nnySUB.js"),__vite__mapDeps([114,115])))}),o=cl==null?void 0:cl(),r=ji({loader:Rt(async()=>await Ce(()=>import("./Comments-Ddqk90PY.js"),__vite__mapDeps([116,117]))),loadingComponent:uq,delay:0}),a=ji({loader:Rt(async()=>await Ce(()=>Promise.resolve().then(()=>px),void 0).then(pe=>pe.SteamPay))}),{view:l}=Da(),{entry:c,trackProAnalytics:u,topicNickname:d,entryBlocksLength:h}=([t,n]=on(()=>Dq({id:Cn(s,"id"),isHandleSeo:()=>s.commentId===void 0},{onAfterClientLoad:()=>{u()}})),t=await t,n(),t),{isWiderThanContent:p}=an(),{isUserDisabledAds:m,isAnon:v,isPlusSubscriber:g,isMe:b}=Ye(),{isDisabled:w}=pc(),{redirect:k}=dd(),y=$s({onRemove:()=>{k("/")}}),{recallAfterAuth:S}=ws(),{isDirectVisit:E}=fp(),{getServicePageById:x}=Gs(),{isEnabled:M,isHiddenOnWide:I}=v0(),N=C(()=>!1);E.value&&q((ae=c.value)==null?void 0:ae.categories)&>(bE,c.value.categories);const V=C(()=>{var pe;return((pe=c.value)==null?void 0:pe.author)??void 0}),{subscribeTo:$,isSubscribed:j}=y0(V),X=C(()=>!1),U=C(()=>!1),R=P(!0),G=C(()=>x(s.id)!==void 0?!1:c.value===void 0||c.value.isCommentsEnabled&&c.value.isPublished),H=C(()=>{var pe,ve,Me,Ke,B,W,oe,he,re,F;return v.value&&((ve=(pe=c.value)==null?void 0:pe.commentEditor)==null?void 0:ve.type)===eu.Everybody?!0:((Me=c.value)==null?void 0:Me.isAnonymized)===!0?!1:((B=(Ke=c.value)==null?void 0:Ke.commentEditor)==null?void 0:B.type)===eu.OnlySubscribers&&!b((W=c.value)==null?void 0:W.author.id)?j.value:((he=(oe=c.value)==null?void 0:oe.commentEditor)==null?void 0:he.type)===eu.OnlyPlus&&g.value?!0:((F=(re=c.value)==null?void 0:re.commentEditor)==null?void 0:F.enabled)!==!1}),se=async()=>{await S(async()=>await $(!0,{fromFeed:$e.RestrictedComments,meta:{postId:s.id}}))},ue=C(()=>{var pe,ve;return((pe=c.value)==null?void 0:pe.isPublished)===!0||((ve=c.value)==null?void 0:ve.isRemovedByUserRequest)===!0});function de(){const{read:pe}=jE(c);pe()}function ke(pe){R.value=pe}gt(hH,C(()=>{var pe;return((pe=c.value)==null?void 0:pe.author.id)??0})),gt(pH,C(()=>c.value!==void 0?Fn(c.value):`/${s.id}`)),gt(Rp,!0);const{setContext:Se,clearContext:_e,setContextIsLoading:Q}=p0();function ge(pe,ve){const Me={type:Fs.Content,slotType:pe,contentId:ve,location:$e.AdvertPostAfter,contentDisplayType:"short"};l(Me,!0)}function ie(){const pe={type:Fs.Content,slotType:gi.Steam,contentId:s.id,contentDisplayType:"short"};l(pe,!0)}return be([d,h],([pe,ve])=>{pe===void 0||ve===void 0?Q(!0):(Q(!1),Se({topicNickname:pe,contentSize:ve!==void 0?z9(ve):void 0}))},{immediate:!0}),et(()=>{_e()}),(pe,ve)=>{var Me,Ke,B,W,oe,he,re,F;return _(),T(ye,null,[X.value?(_(),L(f(Tt),{key:0},{default:K(()=>[f(w)?D("",!0):(_(),L(zq,{key:0,"is-hidden":R.value},null,8,["is-hidden"]))]),_:1})):D("",!0),f(o)?(_(),L(f(i),{key:1,source:"Post"})):f(M)?(_(),L(Io,{key:2,"banner-id":f(p)?f(Le).AboveContentDesktop:f(Le).AboveContentMobile,"advert-place":f(tn).PostBefore,"is-hidden-on-wide":f(I),class:"entry-rotator"},null,8,["banner-id","advert-place","is-hidden-on-wide"])):D("",!0),O("div",Wq,[f(c)&&e.commentId===void 0?Ie((_(),L(f(F0),{key:0,data:f(c),"is-short":e.commentId!==void 0,actions:f(y),location:"post",onReadFull:de,onHeaderVisibilityChanged:ke},null,8,["data","is-short","actions"])),[[f(vs)]]):f(c)&&e.commentId!==void 0?Ie((_(),L(f(N0),{key:1,data:f(c),actions:f(y),location:"post"},null,8,["data","actions"])),[[f(vs)]]):(_(),L(f(kp),{key:2})),N.value?Ie((_(),L(f(a),{key:3,"gtm-prefix":"Post â Steam Widget","agreement-link":"https://pay4game.ru/offer_merchant.pdf",class:"entry-steam-pay-widget",onView:ie},null,512)),[[f(vs)]]):f(m)?D("",!0):(_(),T(ye,{key:5},[Ie(A(Io,{class:"entry-rotator","banner-id":f(p)?f(Le).BelowContentDesktop:f(Le).BelowContentMobile,"advert-place":f(tn).PostAfter,"is-dynamic-height":!0,"source-content-id":e.id,onView:ve[0]||(ve[0]=z=>
127ge(z.slotType,z.contentId))},null,8,["banner-id","advert-place","source-content-id"]),[[f(vs)]]),U.value?Ie((_(),L(L0,{key:0,place:f(tn).PostAfter,class:"another-place-after-post",onView:ve[1]||(ve[1]=z=>ge(f(gi).Advert,z.contentId))},null,8,["place"])),[[f(vs)]]):D("",!0)],64)),G.value?Ie((_(),L(f(r),{key:6,"entry-id":e.id,"comment-id":e.commentId,count:(Me=f(c))==null?void 0:Me.counters.comments,"is-form-enabled":H.value,"is-donations-enabled":(Ke=f(c))==null?void 0:Ke.author.isDonationsEnabled,"form-stub-text":(W=(B=f(c))==null?void 0:B.commentEditor)==null?void 0:W.text,"form-stub-type":(he=(oe=f(c))==null?void 0:oe.commentEditor)==null?void 0:he.type,"last-visit":(re=f(c))==null?void 0:re.commentsSeenCount,"navigation-state":e.commentsNavigationState,"is-subscribed-to-notifications":(F=f(c))==null?void 0:F.subscribedToTreads,onSubscribeToAuthor:se},null,8,["entry-id","comment-id","count","is-form-enabled","is-donations-enabled","form-stub-text","form-stub-type","last-visit","navigation-state","is-subscribed-to-notifications"])),[[f(vs)]]):D("",!0),A(f(Tt),null,{default:K(()=>[ue.value?(_(),L(f(O0),{key:0,"content-id":e.id,"skeleton-count":1},null,8,["content-id"])):D("",!0)]),_:1})])],64)}}}),jq={class:"error-page"},Gq={class:"error-page__dummy"},qq=J({__name:"Error",props:{code:{default:sa.Unknown},recommendationsContentId:{default:void 0}},setup(e){const t=e,{t:n}=Ne(),s=C(()=>{switch(t.code){case sa.Forbidden:return n("core.pageErrors.accessDenied");case sa.NotFound:return n("core.pageErrors.notFound");case sa.ContentBlocked:return n("core.pageErrors.contentBlocked");default:return n("core.pageErrors.unknown")}});return(i,o)=>(_(),T("div",jq,[O("div",Gq,Y(s.value),1),A(O0,{"content-id":e.recommendationsContentId},null,8,["content-id"])]))}}),nx=[{path:"/menu",name:"Menu",component:Rt(async()=>await Ce(()=>import("./Menu-BbSucRZf.js"),__vite__mapDeps([118,119]))),meta:{refererId:$e.AccountMenu}},{path:"/:pathMatch(.*)*",name:"Error",component:qq,props:()=>{var t;return typeof window<"u"&&typeof((t=window.history.state)==null?void 0:t.code)=="number"?window.history.state:{code:sa.NotFound}},meta:{refererId:$e.Error}}],{appsConfig:Kq}=Gs();Kq!==null&&nx.push({path:"/apps",name:"Apps",component:async()=>(await Ce(async()=>{const{default:e}=await import("./Apps-C5QjNzo1.js");return{default:e}},__vite__mapDeps([120,121]))).default,redirect:"?modal=apps",meta:{refererId:$e.Apps}});const ar=P(null),Yq=(e,t)=>{var n,s;if(typeof window<"u"&&(((n=t.meta)==null?void 0:n.scrollPosition)!=null?t.meta.scrollPosition.top=window.scrollY:t.meta.scrollPosition={top:window.scrollY}),t.name==="HomePage"&&(ar.value=t),e.query.modal!==void 0){const i={...t.query,...(s=e.redirectedFrom)==null?void 0:s.query};if(Object.keys(i).filter(o=>e.query[o]===void 0).length>0)return{path:e.path,query:{...i,...e.query}}}};var Cs=(e=>(e.Posts="posts",e.Comments="comments",e.Reactions="reactions",e))(Cs||{});const Xq=J({__name:"BookmarkedComments",async setup(e){let t,n;const{t:s,p:i}=Ne(),o=sE(),{items:r,isLoading:a,isFeedPresent:l,isError:c,isEnd:u,loadMore:d}=([t,n]=on(()=>OE({key:"bookmarks",options:{sorting:It.New}})),t=await t,n(),t);return(h,p)=>(_(),L(f(uC),{items:f(r),"is-present":f(l),"is-loading":f(a),"is-ended":f(u),"is-handle-ugc-links-with-router":!0,"stub-text":f(c)?f(s)("shared.dataLoadingError"):f(s)("entry.bookmarks.empty"),"skeleton-items-count":5,"load-more":f(d)},{item:K(({data:m})=>[A(f(JE),St(m.data,{class:"bookmarked-comments__item",actions:f(o),i18n:{t:f(s),p:f(i)},feedKey:"bookmarks"}),null,16,["actions","i18n"])]),"item-skeleton":K(()=>[A(f(no),{preset:"comment"})]),_:1},8,["items","is-present","is-loading","is-ended","stub-text","load-more"]))}}),S_=J({__name:"BookmarkedPosts",props:{feedType:{},emptyText:{}},async setup(e){let t,n;const{t:s}=Ne(),i=$s({fromFeed:Te.Bookmarks}),o=e,{items:r,loadMore:a,isLoading:l,isFeedPresent:c,isError:u}=([t,n]=on(()=>Ti({type:o.feedType,options:{}})),t=await t,n(),t);return(d,h)=>f(c)?(_(),L(f(xi),{key:1,entries:f(r),actions:f(i),"is-loading":f(l),name:e.feedType,onEndReached:f(a)},null,8,["entries","actions","is-loading","name","onEndReached"])):(_(),L(f(qs),{key:0,text:f(u)?f(s)("shared.dataLoadingError"):e.emptyText},null,8,["text"]))}}),Qq={class:"bookmarks"},Jq={key:0,class:"bookmarks__filter"},Zq=J({name:"BookmarksPage",__name:"Bookmarks",props:{type:{default:Cs.Posts}},setup(e){const t=e,{isWiderThanContent:n}=an(),{t:s}=Ne(Oe.Entry),{setPageProperties:i}=hi(),o=C(()=>`${{[Cs.Posts]:s("bookmarks.type.posts"),[Cs.Comments]:s("bookmarks.type.comments"),[Cs.Reactions]:s("bookmarks.type.reactions")}[t.type]} â ${s("bookmarks.title")}`),r=C(()=>[{label:s("bookmarks.type.posts"),value:Cs.Posts,url:"/bookmarks/posts"},{label:s("bookmarks.type.comments"),value:Cs.Comments,url:"/bookmarks/comments"},{label:s("bookmarks.type.reactions"),value:Cs.Reactions,url:"/bookmarks/reactions"}]);return be(()=>t.type,()=>{i({title:o.value})},{immediate:!0}),(a,l)=>(_(),T("div",Qq,[A(f(Tt),null,{default:K(()=>[f(n)?(_(),T("div",Jq,[A(f(Qi),{options:r.value,selected:e.type},null,8,["options","selected"])])):(_(),L(f(Dr),{key:1,title:f(s)("bookmarks.title")},{right:K(()=>[A(f(Qi),{options:r.value,selected:e.type,icon:"sort"},null,8,["options","selected"])]),_:1},8,["title"]))]),_:1}),e.type===f(Cs).Posts?(_(),L(S_,{key:0,"feed-type":f(Te).Bookmarks,"empty-text":f(s)("bookmarks.empty")},null,8,["feed-type","empty-text"])):D("",!0),e.type===f(Cs).Comments?(_(),L(Xq,{key:1})):D("",!0),e.type===f(Cs).Reactions?(_(),L(S_,{key:2,"feed-type":f(Te).Reacted,"empty-text":f(s)("bookmarks.emptyReactions")},null,8,["feed-type","empty-text"])):D("",!0)]))}}),eK=J({name:"DraftsPage",__name:"Drafts",async setup(e){let t,n;const s=$s({fromFeed:Te.Drafts}),{t:i}
127=Ne(),{items:o,loadMore:r,isLoading:a,isFeedPresent:l,isError:c}=([t,n]=on(()=>Ti({type:Te.Drafts,options:{},seo:()=>({title:i("shared.drafts")})})),t=await t,n(),t);return(u,d)=>f(l)?(_(),L(f(xi),{key:1,title:f(i)("shared.drafts"),entries:f(o),"is-loading":f(a),actions:f(s),name:f(Te).Drafts,onEndReached:f(r)},null,8,["title","entries","is-loading","actions","name","onEndReached"])):(_(),L(f(qs),{key:0,text:f(c)?f(i)("shared.dataLoadingError"):f(i)("common.emptyStubText")},null,8,["text"]))}}),tK={class:"hashtag"},nK=J({name:"HashtagPage",__name:"Hashtag",props:{name:{}},async setup(e){let t,n;const s=e,{redirect:i}=dd(),o=C(()=>G5(s.name)),r=$s({fromFeed:Te.Hashtag}),{t:a}=Ne(),{items:l,loadMore:c,isLoading:u,isFeedPresent:d,isError:h}=([t,n]=on(async()=>Ti({type:Te.Hashtag,options:()=>({name:Cn(s,"name").value}),seo:({data:p})=>({title:(p==null?void 0:p.title)??a("entry.hashtag.meta.title",{tagName:o.value,appName:"vc.ru"}),meta:{description:(p==null?void 0:p.description)??a("entry.hashtag.meta.description",{tagName:o.value,appName:"vc.ru"})}}),onAfterLoad:async()=>{await i(pE(s.name))}})),t=await t,n(),t);return gt(gE,"h2"),(p,m)=>(_(),T("div",tK,[f(d)?(_(),L(f(xi),{key:1,title:o.value,"is-title-h1":"",entries:f(l),"is-loading":f(u),actions:f(r),name:f(Te).Hashtag,onEndReached:f(c)},null,8,["title","entries","is-loading","actions","name","onEndReached"])):(_(),L(f(qs),{key:0,text:f(h)?f(a)("shared.dataLoadingError"):f(a)("common.emptyStubText")},null,8,["text"]))]))}}),sK=J({__name:"Reposts",props:{id:{}},async setup(e){let t,n;const s=e,i=$s({fromFeed:Te.Reposts}),{t:o,p:r}=Ne(),{items:a,total:l,loadMore:c,isLoading:u,isEmpty:d}=([t,n]=on(()=>Ti({type:Te.Reposts,options:()=>({contentId:s.id}),seo:({firstItem:p})=>{var g;const m=(g=p==null?void 0:p.data.repostData)==null?void 0:g.data.title,v=q(m)?m:s.id;return{title:o("entry.reposts.seoTitle",{title:v,appName:"vc.ru"}),meta:{description:o("entry.reposts.seoDescription",{title:v})}}}})),t=await t,n(),t),h=C(()=>`${r("entry.entry.repostsCounter",l.value??0,!0)}`);return(p,m)=>(_(),T("div",null,[f(d)?(_(),L(f(qs),{key:0,text:f(o)("common.emptyStubText")},null,8,["text"])):(_(),L(f(xi),{key:1,title:h.value,actions:f(i),entries:f(a),"is-loading":f(u),name:f(Te).Reposts,"reposted-from-id":e.id,onEndReached:f(c)},null,8,["title","actions","entries","is-loading","name","reposted-from-id","onEndReached"]))]))}}),iK=J({name:"EditorialPage",__name:"Editorial",async setup(e){let t,n;const s=$s({fromFeed:Te.Editorial}),{t:i}=Ne(),{items:o,loadMore:r,isLoading:a,isFeedPresent:l,isError:c}=([t,n]=on(()=>Ti({type:Te.Editorial,options:{},seo:()=>({title:i("entry.editorial.title")})})),t=await t,n(),t);return(u,d)=>(_(),T("div",null,[f(l)?(_(),L(f(xi),{key:1,entries:f(o),"is-loading":f(a),actions:f(s),name:f(Te).Editorial,onEndReached:f(r)},null,8,["entries","is-loading","actions","name","onEndReached"])):(_(),L(f(qs),{key:0,text:f(c)?f(i)("shared.dataLoadingError"):f(i)("common.emptyStubText")},null,8,["text"]))]))}}),oK=J({name:"GamesPage",__name:"Games",async setup(e){let t,n;const s=$s({fromFeed:Te.Games}),{t:i}=Ne(),{items:o,loadMore:r,isLoading:a,isFeedPresent:l,isError:c}=([t,n]=on(()=>Ti({type:Te.Games,options:{},seo:()=>({title:i("common.games")})})),t=await t,n(),t);return(u,d)=>(_(),T("div",null,[f(l)?(_(),L(f(xi),{key:1,entries:f(o),"is-loading":f(a),actions:f(s),name:f(Te).Games,onEndReached:f(r)},null,8,["entries","is-loading","actions","name","onEndReached"])):(_(),L(f(qs),{key:0,text:f(c)?f(i)("shared.dataLoadingError"):f(i)("common.emptyStubText")},null,8,["text"]))]))}}),rK=new RegExp([...Object.values(ns),...Object.values(ni),...Object.values(Ds)].join("|")),aK=new RegExp([Cs.Posts,Cs.Comments,Cs.Reactions].join("|")),lK=e=>{const{user:t}=Ye();return ex(e,t.value)};function cK(...[e,t]){return!!(t.name==="Post"||typeof t.name=="string"&&t.name.startsWith("Subsite"))}const Ac={cache:!0,shouldRestoreScroll:cK,smoothScroll:(e,t)=>t.name===e.name,scrollPosition:{top:0}},sx=[{path:`/:tab(${lg.source})?/:sorting(${rK.source})?`,name:"HomePage",component:Bq,props:e=>({tab:e.params.tab!==""?e.params.tab:void 0,sorting:e.params.sorting!==""?e.params.sorting:void 0}),meta:{refererId:e=>q(e.params.tab)?e.params.tab:$e.Popular,scrollPosition:{top:0},cache:!0,smoothScroll:(e,t)=>
127"tab"in t.params&&"tab"in e.params&&"sorting"in t.params&&"sorting"in e.params&&t.params.tab===e.params.tab&&t.params.sorting===e.params.sorting,authRequired:e=>e.params.tab===Te.My,shouldRestoreScroll:(e,t)=>t.meta.cache===!0||t.name==="HomePage"||ar.value===null||ar.value===null?!1:"tab"in ar.value.params&&"tab"in e.params&&ar.value.params.tab===e.params.tab&&"sorting"in ar.value.params&&"sorting"in e.params&&ar.value.params.sorting===e.params.sorting}},{path:`/:subsite(.*)?/:id(\\d+):postfix(${aH.source})?`,name:"Post",component:tx,meta:{refererId:e=>sr.Single in e.query?$e.Comment:$e.Post,refererContext:({id:e})=>({postId:parseInt(e)}),shouldRestoreScroll:(e,t)=>"id"in e.params&&"id"in t.params&&e.params.id===t.params.id&&Object.keys(e.query).length>0?null:!1},props:e=>{const t=sr.Single in e.query&&typeof e.query[sr.Single]=="string"?parseInt(e.query[sr.Single]):void 0,s=t!==void 0||e.hash.slice(1)===sr.All?{date:new Date().getTime(),isRequestReplyForm:e.hash.slice(1)===sr.Reply}:void 0;return{id:parseInt(e.params.id),commentId:t,commentsNavigationState:s}},beforeEnter:e=>{if(sr.All in e.query){const{response:t}=Xl();t==null||t.redirect.fire(fc(e.path.replace(/\/$/,"")),301)}}},{path:"/:id/reposts",name:"Reposts",component:sK,meta:{refererId:$e.Reposts},props:e=>({id:parseInt(e.params.id)})},{path:"/editor/:action(edit|repost|topic)?/:id?",name:"Editor",component:async()=>(await Ce(async()=>{const{default:e}=await import("./Editor-GdE44ty2.js");return{default:e}},__vite__mapDeps([122,36,123]))).default,redirect:e=>{const{id:t,action:n}=e.params;return!q(t)||typeof t!="string"||typeof n!="string"?"?modal=editor":`?modal=editor&action=${n}&id=${t}`},props:e=>{const t=typeof e.query.id=="string"?parseInt(e.query.id):void 0,n=typeof e.query.action=="string"?e.query.action:void 0;return{id:t,action:n}},meta:{modalType:"Fullpage",authRequired:!0,refererId:$e.Editor}},{path:`/bookmarks/:type(${aK.source})?`,name:"Bookmarks",props:e=>({type:Bf(e.params.type)}),component:Zq,meta:{...Ac,authRequired:!0,refererId:$e.Bookmarks}},{path:"/drafts",name:"Drafts",component:eK,meta:{...Ac,authRequired:!0,refererId:$e.Drafts}},{path:"/tag/:name",name:"Hashtag",component:nK,meta:{...Ac,refererId:$e.Hashtag},props:e=>({name:e.params.name})},{path:"/editorial",name:"Editorial",component:iK,meta:{...Ac,refererId:$e.Editorial}},{path:"/play",name:"Games",component:oK,meta:{...Ac,refererId:$e.Games}}],{servicePages:C_}=Gs();C_!==void 0&&C_.forEach(({id:e,name:t,path:n})=>{sx.push({path:n,name:t,component:tx,meta:{refererId:$e.Post,refererContext:()=>({postId:e})},props:()=>({id:e})})});const uK=["innerHTML"],dK=J({__name:"SubsiteRating",props:{rating:{}},setup(e){const t=e,n=C(()=>({"subsite-rating--positive":t.rating>0,"subsite-rating--negative":t.rating<0})),s=C(()=>{let i="";return t.rating>0&&(i="+"),t.rating<0&&(i="â"),`${i}${Zt(Math.abs(t.rating))}`});return(i,o)=>(_(),T("div",{class:Z(["subsite-rating",n.value]),innerHTML:s.value},null,10,uK))}});var ix=(e=>(e.Moderate="moderate",e))(ix||{});function H0(){const{t:e}=Ne(),{[Oe.Subsite]:t}=vt(),{open:n,close:s}=Wt(),{recallAfterAuth:i}=ws(),{isMe:o,user:r,isPrivilegedUser:a}=Ye(),{setAvatar:l,setCover:c}=pd(),u=ct(),d=d0(),{isCanProceedToGifting:h,proceedToGiftsList:p}=vd(),{subscribeTo:m,isSubscribedTo:v,block:g,unblock:b}=Nr(),w=Us==null?void 0:Us(),k=[{value:"gift",icon:"gift",label:e("shared.etc.gift"),handler:async({subsite:U})=>{X(U)},filter:U=>(U==null?void 0:U.subsite)===void 0||!(h!=null&&h(U==null?void 0:U.subsite))?!1:(U==null?void 0:U.hiddenActionsIds)===void 0||!U.hiddenActionsIds.includes("gift")},{value:"donation",icon:"rouble",label:e("subsite.etc.donate"),handler:async({subsite:U})=>{w==null||w.openDonationModal(Rs.User,{entityId:U.id,entityRelatedUser:{id:U.id,name:U.name}})},filter:U=>(U==null?void 0:U.subsite.isDonationsEnabled)!==!0?!1:(U==null?void 0:U.hiddenActionsIds)===void 0||!U.hiddenActionsIds.includes("donation")},{value:"messenger",icon:"messenger",label:e("subsite.etc.message"),handler:async({subsite:U})=>{var R,G,H;if(q(d)){const se=((R=r.value)==null?void 0:R.isPlus)===!0||((G=r.value)==null?void 0:G.isPro)===!0||((H=r.value)==null?void 0:H.isVerified)===!0,ue=U.isPro||U.isVerified;
127if(!se&&!ue){u.push({name:"Plus",params:{source:Ln.Messenger}});return}}u.push({name:"MessengerChat",params:{chatId:U.id}})},filter:U=>(U==null?void 0:U.subsite.type)!==_t.Blog?!1:(U==null?void 0:U.hiddenActionsIds)===void 0||!U.hiddenActionsIds.includes("messenger")},{value:"stats",icon:"chart",label:"СÑаÑиÑÑика",handler:async({subsite:U})=>{u.push({name:"SubsiteStats",params:{subsite:sn(U)}})},filter:U=>(U==null?void 0:U.subsite.type)!==_t.Blog||!a.value?!1:(U==null?void 0:U.hiddenActionsIds)===void 0||!U.hiddenActionsIds.includes("stats")}],y=[...k,{icon:"unsubscribe",label:e("subsite.etc.unsubscribe"),handler:async({subsite:U})=>{const R=await Ro().getPayload(null);await m(U.id,!1,{...R,isSubscribedToNotifications:!1})},filter:U=>U===void 0||v(U.subsite.id)},{icon:"flag",label:e("shared.etc.complain"),handler:async({subsite:U})=>{await E(U.id)},filter:U=>(U==null?void 0:U.subsite.type)!==_t.Topic},{icon:"spoiler",labelFactory:U=>U.subsite.type===_t.Blog?e("shared.etc.block"):e("shared.etc.hide"),handler:async({subsite:U})=>{await x(U)},filter:U=>(U==null?void 0:U.subsite.isMuted)===!1},{icon:"eye",labelFactory:U=>U.subsite.type===_t.Blog?e("shared.etc.unblock"):e("shared.etc.unhide"),handler:async({subsite:U})=>{await M(U)},filter:U=>(U==null?void 0:U.subsite.isMuted)===!0},{permission:ix.Moderate,icon:"subs",labelFactory:({subsite:U})=>U.type===_t.Topic?e("shared.etc.moderateTopic"):e("shared.etc.moderateUser"),handler:async({subsite:U})=>{if(U.type===_t.Topic){const R=q(U.uri)?U.uri.replace(/\//g,""):U.id;vi(mi(`/admin/topics/${R}`),"_blank")}else vi(mi(`/admin/users/${U.id}`),"_blank")}}],{getContextActions:S}=Cp(y,{requestPermissions:async U=>await t.getPermissionsForSubsiteId(U.subsite.id)});async function E(U,R=!0){return await new Promise(G=>{n(g0,{isShowSuccessAlert:R,submitHandler:async H=>{await i(async()=>await t.complain(U,H)),G(),s()}}
127,{title:e("shared.etc.complain")})})}async function x(U){await g(U,{onCancel:()=>{U.isMuted=!1}}),U.isMuted=!0}async function M(U){await b(U,{onCancel:()=>{U.isMuted=!0}}),U.isMuted=!1}async function I(U,R){o(U)&&await l(R)}async function N(U,R,G){o(U)&&await c(R,G)}async function V(U){o(U)&&await c(null)}async function $(U,R=!1){return await t.getSubscribers(U,R)}function j(){t.clearSubscribers()}function X(U){p==null||p(U,{source:Ln.GiftProfile,context:{userId:U.id}})}return{extraActions:k,getContextActions:S,changeAvatar:I,changeCover:N,removeCover:V,getSubscribers:$,clearSubscribers:j,proceedToGift:X}}const fK={class:"subsite-followers"},hK=["innerHTML"],pK=["innerHTML"],mK=J({__name:"SubsiteFollowers",props:{subsiteId:{},subscribersCount:{},subscriptionsCount:{}},setup(e){const t=e,{t:n,p:s}=Ne(Oe.Subsite),{open:i,close:o}=Wt(),{isMe:r}=Ye(),{getSubscribers:a,clearSubscribers:l}=H0(),c=S0(),u=C(()=>t.subscriptionsCount!==void 0&&(t.subscriptionsCount>0||r(t.subsiteId)));function d(){i(w0,{getter:async p=>await a(t.subsiteId,p),cleaner:l,onItemSelect:o},{title:n("subscribers")})}function h(){var p;(p=c.showSubscriptions)==null||p.call(c,t.subsiteId)}return(p,m)=>(_(),T("div",fK,[e.subscribersCount!==void 0?(_(),T("div",{key:0,class:Z(["subsite-followers__item",e.subscribersCount===0&&"subsite-followers__item--disabled"]),onClick:m[0]||(m[0]=v=>e.subscribersCount>0?d():void 0)},[O("span",{innerHTML:f(Zt)(e.subscribersCount)},null,8,hK),xe(" "+Y(f(s)("followers.subscribers",e.subscribersCount,!1)),1)],2)):D("",!0),e.subscriptionsCount!==void 0?(_(),T("div",{key:1,class:Z(["subsite-followers__item",!u.value&&"subsite-followers__item--disabled"]),onClick:m[1]||(m[1]=v=>u.value?h():void 0)},[O("span",{innerHTML:f(Zt)(e.subscriptionsCount)},null,8,pK),xe(" "+Y(f(s)("followers.subscriptions",e.subscriptionsCount,!1)),1)],2)):D("",!0)]))}}),vK={error:{sizeExceeded:{t:0,b:{t:2,i:[{t:3,v:"Ð Ð°Ð·Ð¼ÐµÑ Ñайла не должен пÑевÑÑаÑÑ "},{t:4,k:"value"},{t:3,v:"KB"}]}},wrongFormat:{t:0,b:{t:2,i:[{t:3,v:"ÐедопÑÑÑимÑй ÑоÑÐ¼Ð°Ñ "},{t:4,k:"value"}]}},upload:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑибка пÑи загÑÑзке Ñайла"}}}},gK=Object.freeze(Object.defineProperty({__proto__:null,ru:vK},Symbol.toStringTag,{value:"Module"}));var ed;class bK{constructor(){Fe(this,ed,new Ql(10))}get(t){return fe(this,ed).get(t)}set(t,n){fe(this,ed).put(t,n)}}ed=new WeakMap;class yK{constructor(t){le(this,"uploaderRepository");this.uploaderRepository=t}async upload(t,n){return await this.uploaderRepository.upload(t,n)}async uploadUrl(t){return await this.uploaderRepository.uploadUrl(t)}async extract(t){return await this.uploaderRepository.extract(t)}}class wK extends Ks{constructor(t,n){super(),this.transport=t,this.createStore=n}async upload(t,n){return await this.transport.upload("uploader/upload",[t],{hostname:"https://upload.vc.ru",apiVersion:"v2.8",auth:"strict"},n)}async uploadUrl(t){const[n]=await this.transport.post("uploader/upload",{url:t},{hostname:"https://upload.vc.ru",apiVersion:"v2.8",auth:"strict"});return n}async extract(t){const n=this.store.get(t);if(n!==void 0)return n;const[s]=await this.transport.post("uploader/extract",{url:t},{apiVersion:"v2.8"});if(s.type==="error")throw new Error(s.data.error_text);return this.store.set(t,s),s}}function _K(){const e=pt();return e.isRegistered("UploaderService")||e.register("UploaderService",()=>{const{transport:t}=e.resolve("ModuleInitOptions"),n=new wK(t,()=>new bK);return new yK(n)}),e.resolve("UploaderService")}function V0(){const e=_K();async function t(i,o){return await e.upload(i,o)}async function n(i){return await e.uploadUrl(i)}async function s(i){return await e.extract(i)}return{upload:t,uploadUrl:n,extract:s}}async function kK(e){return await new Promise(t=>{const n=new FileReader,s=()=>{n.removeEventListener("load",s),typeof n.result=="string"?t(n.result):(t(""),console.error("Failed to read file",e.name))};n.addEventListener("load",s),n.readAsDataURL(e)})}function gg(e){var t;return((t=e.match(/\.\w+$/))==null?void 0:t[0].toLowerCase())??""}function SK(e){const t=e.startsWith(".")?e.slice(1):e;switch(t){case"png":case"jpg":case"jpeg":case"gif":case"webp":return`image/${t}`;case"mp4":case"mov":case"webm":return`video/${t}`;case"ogg":case"mp3":return`audio/${t}`;case"pdf":return"application/pdf";default:return""}}const CK=()=>ft(),EK=100*1024*1024,xK=2*1024*1024*1024,TK=0;function AK(e){const{alert:t,AlertType:n}=fn(),{t:s}=CK(),{upload:i,uploadUrl:o}=V0(),{user:r,isPrivilegedUser:a}=Ye(),{recallAfterAuth:l}=ws(),{isOverDropZone:c}=v6(e==null?void 0:e.container,R=>{R!==null&&E(R)}),{files:u,open:d,reset:h}=w6({accept:e==null?void 0:e.accept,multiple:e==null?void 0:e.multiple}),p=(e==null?void 0:e.model)!==void 0?e.model:P([]),m=P(p.value);Tu(p,m);const v=bt(new Map),g=bt(new Map),b=new Map,w=C(()=>[...Array.from(v.values()),...Array.from(g.values())]),k=C(()=>[...m.value.map(S),...w.value.map(S)]);be(u,R=>{R!==null&&E([...R])}),Be(e==null?void 0:e.container,"paste",R=>{const{clipboardData:G}=R;if(G===null)return;const H=Array.from(G.items).reduce((se,ue)=>{const de=ue.getAsFile();return de!==null&&se.push(de),se},[]);E(H)});function y(R){switch(R.type){case Pt.Link:return R.data.url;case Pt.OsnovaEmbed:return R.data.original_id.toString();case Pt.Embed:return R.data.url;case Pt.Video:return R.data.external_service.id}return R.data.uuid}function S(R){if("data"in R){const G=y(R),H=b.get(G);return{key:H!==void 0?H:G,item:R}}return{key:R.key,item:R}}function E(R){R.forEach(G=>{typeof G=="string"?V(G):G instanceof File?N(G):$(G)})}function x(R={}){var H,se,ue;if(!q(r.value))throw new Fo;if(R.extension!==void 0&&((H=e==null?void 0:e.accept)==null?void 0:H.toLowerCase().includes(R.extension))===!1)throw new Error(s("uploader.error.wrongFormat",{value:R.extension}));if(R.size!==void 0){const de=(e==null?void 0:e.sizeLimit)??(a.value?xK:EK);if(de>0&&R.size>de)throw new Error(s("uploader.error.sizeExceeded",{value:de/1024}))}const G=(e==null?void 0:e.limit)??TK;if(G>0&&m.value.length>=G){const[de]=m.value.splice(0,1);(se=e==null?void 0:e.onRemove)==null||se.call(e,de)}(ue=e==null?void 0:e.onValidated)==null||ue.call(e)}function M(R){var H;const G=y(R);m.value=m.value.filter(se=>
127y(se)!==G),m.value.push(R),(H=e==null?void 0:e.onChange)==null||H.call(e,m.value)}async function I(R,G,H={}){await l(async se=>{try{se&&await Do(r).toBeTruthy(),x(H)}catch(ue){if(ue instanceof Fo)throw ue;ue instanceof Error&&t({type:n.Error,text:ue.message});return}try{await R()}catch(ue){if(j(ue))return;console.error("Error occured while uploading",ue),t({type:n.Error,text:s("uploader.error.upload")})}finally{G()}})}async function N(R){const G=gg(R.name);h(),await I(async()=>{const H=await kK(R);let se=()=>{};const ue=bt({key:Vs(),url:H,type:R.type,extension:G,uploadProgress:{percents:0,loaded:0,total:0},cancelUpload:()=>{se(),v.delete(R)}});v.set(R,ue);const{response:de,abort:ke}=await i(R,(Q,ge,ie)=>{ue.uploadProgress={percents:Q,loaded:ge,total:ie}});if(se=ke,!v.has(R)){ke();try{await de}catch{}return}let Se;try{[Se]=await de}catch(Q){if(j(Q)||!v.has(R))return;throw Q}if(!v.has(R))return;const _e=y(Se);b.set(_e,ue.key),M(Se),v.delete(R)},()=>{v.delete(R)},{extension:G,size:R.size})}async function V(R){const G=gg(R);await I(async()=>{g.set(R,{key:Vs(),url:R,type:SK(G),extension:G});try{const H=await o(R);if(!g.has(R))return;M(H)}catch(H){if(!g.has(R))return;throw H}},()=>{g.delete(R)},{extension:G})}async function $(R){await I(()=>{M(R)},()=>{},{extension:"type"in R.data?`.${R.data.type}`:void 0,size:"size"in R.data?R.data.size:void 0})}function j(R){return R instanceof Error&&R.name==="AbortError"}function X(R){var se;const G=Array.from(v.values()).find(ue=>ue.key===R);if(G!==void 0)return(se=G.cancelUpload)==null||se.call(G),!0;const H=Array.from(g.entries()).find(([,ue])=>ue.key===R);return H!==void 0?(g.delete(H[0]),!0):!1}function U(R){var ue,de;if(X(R))return;let G=R;b.forEach((ke,Se)=>{ke===R&&(G=Se)});const H=m.value.find(ke=>y(ke)===G);if(H===void 0)return;To(H,m.value);const se=y(H);b.delete(se),(ue=e==null?void 0:e.onRemove)==null||ue.call(e,H),(de=e==null?void 0:e.onChange)==null||de.call(e,m.value)}return{nodes:k,attach:E,remove:U,uploaded:m,openFileDialog:d,isFileOverDropZone:c}}typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const E_=()=>{};function PK(e,t){function n(...s){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(i).catch(o)})}return n}const RK=e=>e();function IK(e,t={}){let n,s,i=E_;const o=l=>{clearTimeout(l),i(),i=E_};let r;return l=>{const c=ce(e),u=ce(t.maxWait);return n&&o(n),c<=0||u!==void 0&&u<=0?(s&&(o(s),s=null),Promise.resolve(l())):new Promise((d,h)=>{i=t.rejectOnCancel?h:d,r=l,u&&!s&&(s=setTimeout(()=>{n&&o(n),s=null,d(r())},u)),n=setTimeout(()=>{s&&o(s),s=null,d(l())},c)})}}function MK(e,t,n={}){const{eventFilter:s=RK,...i}=n;return be(e,PK(s,t),i)}function $K(e,t,n={}){const{debounce:s=0,maxWait:i=void 0,...o}=n;return MK(e,t,{...o,eventFilter:IK(s,{maxWait:i})})}function LK(e,t){const{extract:n}=V0(),s=P(),i=P(!1);return $K(()=>ce(e),async o=>{if(ce(t==null?void 0:t.disabled)===!0)return;if(o.trim()===""){s.value=void 0;return}const a=NI(o,{validate:{url:l=>/^https?:\/\//.test(l),email:!1}}).slice(0,ce(t==null?void 0:t.limit)).map(l=>l.value).filter(l=>{var c;return((c=ce(t==null?void 0:t.exclude))==null?void 0:c.has(l))===!1});if(a.length===0){s.value=void 0;return}try{const l=a.map(async d=>[await n(d),d]);i.value=!0;const u=(await Promise.all(l)).filter(([d])=>d.type===Pt.Image||d.type===Pt.Movie||d.type===Pt.Video||d.type===Pt.Link);s.value=u.length===0?void 0:new Map(u)}catch{s.value=void 0}finally{i.value=!1}},{debounce:300}),{extracted:s,isExtracting:i}}const OK={class:"attachment__content"},BK={key:1,class:"attachment__extension"},DK={key:3,class:"attachment__duration"},NK=["src"],FK=["src"],UK={key:2,class:"attachment__extension"},z0=J({__name:"Attachment",props:{item:{},galleryId:{},caption:{}},emits:["remove"],setup(e,{emit:t}){const n=e,s=t,i=C(()=>{if("data"in n.item&&"duration"in n.item.data&&typeof n.item.data.duration=="number"&&n.item.data.duration>=1)return Xa(n.item.data.duration*1e3,"mm:ss")}),o=C(()=>{if(!("data"in n.item)||n.item.type!==Pt.File)return"";const r=gg(n.item.data.filename).replace(".","");return r.length>0?r:n.item.data.type});return(r,a)=>{var l;return _(),T("div",{class:Z(["attachment",e.item.type===f(Pt).Link&&"attachment--wide"])},[O("div",OK,["data"in e.item?(_(),T(ye,{key:0},[e.item.type===f(Pt).Image||e.item.type===f(Pt).Movie?(_(),L(f(Ei),{key:0,data:f(xn)(e.item.data).data,zoom:e.item,zoomGroupId:e.galleryId,caption:e.caption,cropped:!0},null,8,["data","zoom","zoomGroupId","caption"])):e.item.type===f(Pt).File?(_(),T("div",BK,Y(o.value),1)):(_(),L(f(jo),{key:2,type:e.item.type,data:e.item.data},null,8,["type","data"])),i.value!==void 0?(_(),T("div",DK,Y(i.value),1)):D("",!0)],64)):(_(),T(ye,{key:1},[e.item.type.indexOf("image")===0&&e.item.url.length>0?(_(),T("img",{key:0,class:"attachment__preview",src:e.item.url},null,8,NK)):e.item.type.indexOf("video")===0&&e.item.url.length>0?(_(),T("video",{key:1,class:"attachment__preview",src:e.item.url},null,8,FK)):(_(),T("div",UK,Y(e.item.extension),1)),(l=e.item.uploadProgress)!=null&&l.percents&&e.item.uploadProgress.percents<100?(_(),L(f(q2),{key:3,size:42,percents:e.item.uploadProgress.percents,cancelable:"",onAbort:a[0]||(a[0]=c=>{var u,d;return(d=(u=e.item).cancelUpload)==null?void 0:d.call(u)})},null,8,["percents"])):(_(),L(f(Yn),{key:4}))],64))]),A(f(RL),{onClick:a[1]||(a[1]=c=>s("remove"))})],2)}}}),HK=Un(V0),Lp=Un(AK),VK=Un(LK),zK=Object.freeze(Object.defineProperty({__proto__:null,Attachment:z0,messages:gK,useAttachments:Lp,useLinksExtractor:VK,useUploader:HK},Symbol.toStringTag,{value:"Module"})),WK=["src"],jK=["src"],GK=J({__name:"SubsiteAvatar",props:{source:{},subsiteId:{},size:{default:"default"},isCanChange:{type:Boolean,default:!1},isAllowVideo:{type:Boolean,default:!1},isZoom:{type:Boolean,default:!0}},setup(e){Zi(b=>({fce68c0e:`${a.value}px`,v62dc2170:`${l.value}px`}));const t=e,{open:n}=ys(),{changeAvatar:s}=H0(),{alert:i,AlertType:o}=fn(),{tf:r}=Ne(),a=C(()=>t.size==="small"?60:90),l=C(()=>t.size==="small"?2:3),c=P(!1),{nodes:u,openFileDialog:d}=Lp({limit:1,sizeLimit:M8,accept:".png,.jpg,.jpeg,.heic,.webp,.gif,.mp4,.mov,.webm",onValidated:()=>{c.value=!0},onChange:b=>{const w=b[0];w.type!==Pt.Image&&w.type!==Pt.Movie||s(t.subsiteId,w).catch(k=>{i({type:o.Error,text:r(`shared.errors.${k.message}`,"shared.unknownError")})}).finally(()=>{c.value=!1})}}),h=b=>b!==void 0&&(!("data"in b.item)||b.item.type===Pt.Image||b.item.type===Pt.Movie),p=C(()=>{const b=u==null?void 0:u.value[0];return h(b)?b.item:t.source}),m=P(),v=C(()=>{const b=[{label:"ÐоÑмоÑÑеÑÑ",icon:"image",action:()=>{Du.callChild(m.value)}},{label:"ÐзмениÑÑ",icon:"pen",action:()=>{d==null||d()}}];return t.isAllowVideo||b.push({label:"ÐидеоаваÑаÑка",url:`/plus/${Ln.VideoAvatar}`,media:mS(),allowVideoPlayback:!0}),b});function g(){n(to,{data:v.value},{target:m.value})}return(b,w)=>(_(),T("div",{ref_key:"container",ref:m,class:Z(["subsite-avatar",c.value&&"subsite-avatar--loading"])},["data"in p.value?(_(),L(f(Jn),{key:0,class:"subsite-avatar__image",source:p.value,size:a.value,zoom:e.isZoom,isAllowVideo:e.isAllowVideo},null,8,["source","size","zoom","isAllowVideo"])):(_(),T(ye,{key:1},[p.value.type.indexOf("image")===0&&p.value.url.length>0?(_(),T("img",{key:0,class:"subsite-avatar__preview",src:p.value.url},null,8,WK)):p.value.type.indexOf("video")===0&&p.value.url.length>0?(_(),T("video",{key:1,class:"subsite-avatar__preview",src:p.value.url},null,8,jK)):D("",!0)],64)),c.value?(_(),L(f(Yn),{key:2})):D("",!0),A(f(Tt),null,{default:K(()=>[e.isCanChange&&!c.value?(_(),T("div",{key:0,class:"subsite-avatar__overlay",onClick:g},[A(f(Re),{name:"image",width:40,height:40})])):D("",!0)]),_:1})],2))}}),qK=J({__name:"SubsiteCover",props:{subsiteId:{},cover:{},coverY:{},isCanChange:{type:Boolean}},setup(e){const t=e,n=ji({loader:Rt(async()=>await Ce(()=>import("./SubsiteCoverEditor-JybUNwvq.js"),__vite__mapDeps([124,125])))}),s=P({cover:t.cover,coverY:t.coverY});return(i,o)=>(_(),T("div",{class:"subsite-cover",style:Ot({"--coverY":`${s.value.coverY}%`})},[s.value.cover?(_(),L(f(jo),{key:s.value.cover.data.uuid,type:s.value.cover.type,data:s.value.cover.data,cropped:!0,size:[640,0],isGifBehavior:!0},null,8,["type","data"])):D("",!0),e.isCanChange?(_(),L(f(Tt),{key:1},{default:K(()=>[A(f(n),{modelValue:s.value,"onUpdate:modelValue":o[0]||(o[0]=r=>s.value=r),"subsite-id":e.subsiteId},null,8,["modelValue","subsite-id"])]),_:1})):D("",!0)],4))}}),x_=J({__name:"SubsiteHeaderControls",props:{subsite:{},isMatchLoginedUser:{type:Boolean},size:{default:"m"},isHiddenEtc:{type:Boolean,default:!1}},setup(e){Zi(I=>
127({v50617a6a:`${h.value}px`}));const t=e,n=ct(),{t:s}=Ne(),{open:i}=ys(),{extraActions:o,getContextActions:r,proceedToGift:a}=H0(),{isWiderThanContent:l}=an(),{isCanProceedToGifting:c}=vd(),u=ii("(max-width: 410px)"),d=C(()=>u.value?s("shared.etc.editShort"):s("shared.etc.edit")),h=C(()=>t.size==="s"?4:8),p=P(),m=P(),v=db(),g=P([]),b=C(()=>o.reduce((I,N)=>(typeof N.value=="string"&&I.push(N.value),I),[]).filter(I=>!g.value.includes(I)));function w(){n.push({name:"BlogSettings"})}function k(){n.push({name:"SubsiteStats",params:{subsite:sn(t.subsite)}})}function y(){n.push({name:"Settings"})}function S(){vi(`tg://resolve?domain=${t.subsite.tgChannelShortname}`,"_blank")}function E(I){i(to,{data:async N=>await r({subsite:t.subsite,hiddenActionsIds:b.value},N)},{width:180,target:I.currentTarget,positionX:"right"})}async function x(){var V,$;if(g.value=[],!q(p.value)||!q(m.value)||((V=v.value)==null?void 0:V.length)===0)return;await un();const I=p.value.offsetWidth;let N=m.value.offsetWidth;if(!(I>=N))for(let j=v.value.length-1;j>=0;j--){const{el:X,id:U}=v.value[j],R=(($=kt(X))==null?void 0:$.getBoundingClientRect().width)??0;if(N=N-R-h.value,g.value.push(U),N<=I)break}}const M=js(()=>{x()},100);return je(async()=>{await Do(l).toBe(!1),Wo([p,m],()=>{M()})}),(I,N)=>{var V;return _(),T("div",{ref_key:"rootEl",ref:p,class:"subsite-header-controls"},[O("div",{ref_key:"innerEl",ref:m,class:"subsite-header-controls__inner"},[e.isMatchLoginedUser?(_(),T(ye,{key:0},[A(f(qe),{type:"minimal",size:e.size,onClick:w},{default:K(()=>[e.size==="m"?(_(),T(ye,{key:0},[xe(Y(d.value),1)],64)):D("",!0)]),_:1},8,["size"]),(V=f(c))!=null&&V(e.subsite)?(_(),L(f(qe),{key:0,type:"minimal",size:"m",icon:"gift",onClick:N[0]||(N[0]=$=>f(a)(e.subsite))},{icon:K(()=>[A(f(yh))]),_:1})):D("",!0),A(f(qe),{type:"minimal",icon:"chart",size:e.size,onClick:k},null,8,["size"]),A(f(qe),{type:"minimal",icon:"settings",size:e.size,onClick:y},null,8,["size"])],64)):(_(),T(ye,{key:1},[A(f(uc),{subsite:e.subsite,"gtm-prefix":"Profile","from-feed":null,compact:e.size==="s",type:e.size==="s"?"primary":void 0},null,8,["subsite","compact","type"]),e.subsite.tgChannelShortname?(_(),L(f(qe),{key:0,"aria-label":"Telegram",type:"minimal",icon:"category_telegram",size:e.size,onClick:S},null,8,["size"])):D("",!0),(_(!0),T(ye,null,We(f(o),$=>{var j;return _(),T(ye,{key:$.value},[(j=$.filter)!=null&&j.call($,{subsite:e.subsite})?Ie((_(),L(f(qe),{key:0,ref_for:!0,ref:X=>{typeof $.value=="string"&&f(v).set({el:X,id:$.value})},type:"minimal",icon:$.icon,size:e.size,onClick:X=>$.handler({subsite:e.subsite})},{icon:K(()=>[$.value==="gift"&&e.size==="m"?(_(),L(f(yh),{key:0})):D("",!0)]),_:2},1032,["icon","size","onClick"])),[[As,typeof $.value=="string"&&!g.value.includes($.value)]]):D("",!0)],64)}),128)),e.isHiddenEtc?D("",!0):(_(),L(f(qe),{key:1,type:"minimal",icon:"dots",size:e.size,onClick:E},null,8,["size"]))],64))],512)],512)}}}),KK={class:"subsite-achievements"},YK=["title","onClick"],XK=3,QK=J({__name:"SubsiteAchievements",props:{subsite:{},isAllowShare:{type:Boolean},isCompact:{type:Boolean}},setup(e){const t=e,n=ct(),{t:s}=Ne(),{show:i}=Pp({caption:()=>sn(t.subsite),share:t.isAllowShare}),{show:o}=Ap({caption:()=>sn(t.subsite),share:t.isAllowShare}),r=C(()=>t.subsite.collectibles.slice(0,XK).reduce((a,l)=>{const c=l.type==="achievement"?l.data:l.data.giftType;return a.push({...c,view:()=>{l.type==="achievement"?i==null||i(l.data):o==null||o(l.data.giftType,l.data)}}),a},[]));return(a,l)=>(_(),T("div",KK,[(_(!0),T(ye,null,We(r.value,c=>(_(),T("div",{key:c.code,title:c.title,class:"subsite-achievements__preview",onClick:u=>c.view()},[A(f(Ei),{data:f(xn)({uuid:c.previewUuid,color:"transparent"}).data,size:e.isCompact?32:42},null,8,["data","size"])],8,YK))),128)),e.subsite.counters.collectibles-r.value.length>0?(_(),L(f(qe),{key:0,rounded:!0,type:"minimal",size:"s",onClick:l[0]||(l[0]=()=>{f(n).push({name:"Collectibles",params:{nickname:f(sn)(e.subsite)}})})},{default:K(()=>[xe(Y(f(s)("shared.more"))+" "+Y(e.subsite.counters.collectibles-r.value.length),1)]),_:1})):D("",!0)]))}}),JK=J({__name:"SubsiteRankBadge",props:{subsite:{}},setup(e){const t=e,{t:n}=Ne(),s=[{label:1,min:1,max:1},{label:2,min:2,max:2},{label:3,min:3,max:3},{label:4,min:4,max:4},{label:5,min:5,max:5},{label:6,min:6,max:6},{label:7,min:7,max:7},{label:8,min:8,max:8},{label:9,min:9,max:9},{label:10,min:10,max:10}],i=C(()=>{var d;return q((d=t.subsite.category)==null?void 0:d.discoveryType)?t.subsite.category.discoveryType:t.subsite.isCompany?en.Companies:t.subsite.type===_t.Topic?en.Topics:en.Blogs}),o=C(()=>{var d;return Math.min(t.subsite.rank??1/0,((d=t.subsite.category)==null?void 0:d.rank)??1/0)}
127),r=C(()=>{var d;return!q((d=t.subsite.category)==null?void 0:d.rank)||t.subsite.rank!==null&&t.subsite.rank<t.subsite.category.rank}),a=C(()=>{var d;return(d=s.find(h=>o.value>=h.min&&o.value<=h.max))==null?void 0:d.label}),l=C(()=>{var d;return r.value||(d=t.subsite.category)==null?void 0:d.label}),c=C(()=>{var d;return r.value||((d=t.subsite.category)==null?void 0:d.id)===void 0?"flash":`category_${t.subsite.category.id}`}),u=C(()=>{var d;return{name:"Top",params:{type:i.value,category:r.value||!t.subsite.isCompany||(d=t.subsite.category)==null?void 0:d.id}}});return(d,h)=>a.value?(_(),L(f(Qe),{key:0,to:u.value,class:"subsite-rank-badge"},{default:K(()=>[A(f(Re),{name:c.value,width:16,height:16},null,8,["name"]),O("span",null,Y(f(n)("shared.top"))+"-"+Y(a.value)+" "+Y(l.value),1)]),_:1},8,["to"])):D("",!0)}}),ZK={class:"subsite-card__body"},eY={class:"subsite-card__header"},tY={class:"subsite-card__name"},nY={key:0,class:"subsite-card__nickname"},sY={class:"subsite-card__info"},iY=["title"],oY=["innerHTML"],rY={key:0,class:"subsite-card__controls"},aY={class:"subsite-card__footer"},lY=J({__name:"SubsiteCard",props:{subsite:{},isPreview:{type:Boolean}},setup(e){const t=e,{t:n}=Ne(),{isMe:s}=Ye(),{subscriptionsCount:i}=Nr(),{formatTime:o}=Mr(),r=C(()=>s(t.subsite.id)),a=C(()=>!t.isPreview&&r.value),l=C(()=>t.subsite.type===_t.Blog),c=C(()=>r.value?i.value:t.subsite.counters.subscriptions),u=C(()=>{if(!l.value)return;const p=t.subsite.created*1e3,m=new Date().getFullYear(),v=new Date(p).getFullYear();return m>v?v.toString():o(p,us.Full)}),d=C(()=>o(t.subsite.created*1e3,us.FullWithTime)),h=C(()=>t.subsite.description.length>0?lp(t.subsite.description):"");return(p,m)=>{var v;return _(),T("div",{class:Z(["subsite-card",e.isPreview&&"subsite-card--preview"])},[(_(),L(qK,{key:(v=e.subsite.cover)==null?void 0:v.data.uuid,cover:e.subsite.cover,"cover-y":e.subsite.coverY,"subsite-id":e.subsite.id,"is-can-change":a.value},null,8,["cover","cover-y","subsite-id","is-can-change"])),O("div",ZK,[O("div",eY,[(_(),L(GK,{key:e.subsite.avatar.data.uuid,class:"subsite-card__avatar",source:e.subsite.avatar,"subsite-id":e.subsite.id,size:e.isPreview?"small":void 0,"is-can-change":a.value,"is-allow-video":e.subsite.isPlus,"is-zoom":!e.isPreview},null,8,["source","subsite-id","size","is-can-change","is-allow-video","is-zoom"])),A(f(Tt),null,{default:K(()=>[!e.isPreview&&!e.subsite.isFrozen&&!e.subsite.isRemovedByUserRequest?(_(),L(x_,{key:0,subsite:e.subsite,"is-match-logined-user":r.value},null,8,["subsite","is-match-logined-user"])):D("",!0)]),_:1})]),O("div",tY,[O("h1",null,Y(e.subsite.name),1),A(f(Ua),{"owner-id":e.subsite.id,"badge-id":e.subsite.badgeId,collectible:e.subsite.favoriteCollectible,size:e.isPreview?void 0:24},{item:K(({item:g,attrs:b})=>[r.value&&g.srcset===void 0&&e.subsite.collectibles.length>0?(_(),L(f(qe),St({key:0},b,{type:"minimal",icon:"plus",size:"s",rounded:""}),null,16)):D("",!0)]),_:1},8,["owner-id","badge-id","collectible","size"])]),e.subsite.nickname?(_(),T("div",nY," @"+Y(e.subsite.nickname),1)):D("",!0),O("div",sY,[A(JK,{class:"subsite-card__rank",subsite:e.subsite},null,8,["subsite"]),l.value&&e.subsite.rating>0?(_(),L(dK,{key:0,rating:e.subsite.rating},null,8,["rating"])):D("",!0),u.value?(_(),T("div",{key:1,class:"subsite-card__date",title:d.value},Y(f(n)("subsite.header.since"))+" "+Y(u.value),9,iY)):D("",!0)]),h.value?(_(),T("div",{key:1,class:"subsite-card__description",innerHTML:h.value},null,8,oY)):D("",!0),A(mK,{"subsite-id":e.subsite.id,"subscribers-count":e.subsite.counters.subscribers,"subscriptions-count":e.subsite.type===f(_t).Blog?c.value:void 0},null,8,["subsite-id","subscribers-count","subscriptions-count"]),e.subsite.collectibles.length>0?(_(),L(QK,{key:2,class:"subsite-card__achievements",subsite:e.subsite,"is-allow-share":r.value,"is-compact":e.isPreview},null,8,["subsite","is-allow-share","is-compact"])):D("",!0),A(f(Tt),null,{default:K(()=>[e.isPreview&&!e.subsite.isFrozen&&!e.subsite.isRemovedByUserRequest?(_(),T("div",rY,[A(x_,{subsite:e.subsite,"is-match-logined-user":r.value,"is-hidden-etc":!0,size:"s"},null,8,["subsite","is-match-logined-user"])])):D("",!0)]),_:1}),O("div",aY,[Ve(p.$slots,"default")])])],2)}}}),cY={class:"subsite-feed"},uY={class:"subsite-feed__sorting"},dY={class:"subsite-feed__content"},fY=J({__name:"SubsiteFeed",props:{subsite:{},sorting:{}},async setup(e){let t,n;const{t:s}=Ne(),i=e,o=C(()=>{switch(i.subsite.type){case _t.Topic:return It.Hotness;default:return It.New}}),{view:r}=Da(),a=$s({fromFeed:Te.Subsite}),{items:l,loadMore:c,isLoading:u,isFeedPresent:d,isError:h}=([t,n]=on(()=>Ti({type:Te.Subsite,isShowSubscribeButton:!1,options:()=>({subsiteId:i.subsite.id,sorting:ce(i.sorting)??ce(o)})})),t=await t,n(),t),{isMe:p,isUserDisabledAds:m}=Ye(),v=gn(i.subsite),g=C(()=>
127[{label:s("subsite.feed.sorting.new"),value:It.New,url:i.subsite.type===_t.Topic?`${v}/${rs.Posts}/${It.New}`:v},{label:s("subsite.feed.sorting.hotness"),value:It.Hotness,url:i.subsite.type===_t.Topic?v:`${v}/${rs.Posts}/${It.Hotness}`},{label:s("subsite.feed.sorting.month"),value:It.Month,url:`${v}/${rs.Posts}/${It.Month}`},{label:s("subsite.feed.sorting.year"),value:It.Year,url:`${v}/${rs.Posts}/${It.Year}`},{label:s("subsite.feed.sorting.all"),value:It.All,url:`${v}/${rs.Posts}/${It.All}`}]),b=C(()=>m.value||i.subsite.type===_t.Blog||i.sorting!==void 0&&i.sorting!==It.Hotness?[]:[["after-first",Le.FirstInPopular],["after-fifth",Le.SecondInPopular],["after-tenth",Le.FeedBetweenPosts],["after-fifteenth",Le.FeedBetweenPosts],["after-every-remaining-fifth",Le.FeedBetweenPosts]]),w=C(()=>!!(p(i.subsite.id)||i.subsite.type===_t.Topic)),k=C(()=>{if(i.subsite.type===_t.Topic)return i.subsite.id});function y(S){r(S,!0)}return(S,E)=>(_(),T(ye,null,[O("div",cY,[O("div",uY,[A(f(Qi),{options:g.value,selected:e.sorting??o.value},null,8,["options","selected"])]),O("div",dY,[f(d)?(_(),L(f(xi),{key:1,entries:f(l),"is-loading":f(u),actions:f(a),name:f(Te).Subsite,onEndReached:f(c)},Is({_:2},[We(b.value,([x,M])=>({name:x,fn:K(({index:I,meta:N,feed:V,sourceContentId:$})=>[Ie(A(Io,{"banner-id":M,"advert-place":f(tn).TopicFeed,"is-dynamic-height":!0,onView:j=>y({type:f(Fs).Content,slotType:j.slotType,contentId:j.contentId,index:I,fromFeed:V,sourceContentId:$,statGroup:N==null?void 0:N.statGroup,feedSegment:N==null?void 0:N.feedSegment,contentDisplayType:"short"})},null,8,["banner-id","advert-place","onView"]),[[f(vs)]])])}))]),1032,["entries","is-loading","actions","name","onEndReached"])):(_(),L(f(qs),{key:0,title:f(h)?f(s)("shared.dataLoadingError"):f(s)("common.emptyStubText")},null,8,["title"]))])]),A(f(Tt),null,{default:K(()=>[w.value?(_(),L(f(HE),{key:0,"topic-id":k.value},null,8,["topic-id"])):D("",!0)]),_:1})],64))}}),hY={class:"skeleton-subsite"},pY={class:"skeleton-subsite__wrapper"},mY={class:"skeleton-subsite__padding"},vY={class:"skeleton-subsite__header"},gY={class:"skeleton-subsite__tabs"},bY=J({__name:"SkeletonSubsite",setup(e){return(t,n)=>(_(),T("div",hY,[O("div",pY,[n[0]||(n[0]=O("div",{class:"skeleton-subsite__cover"},null,-1)),O("div",mY,[O("div",vY,[A(f(Hi),{class:"skeleton-subsite__avatar",size:"90px"}),A(f(Ut),{width:"120px",height:"34px"})]),A(f(Ut),{width:"210px",class:"skeleton-subsite__bar"}),A(f(Ut),{width:"87px",class:"skeleton-subsite__bar skeleton-subsite__bar--last"}),A(f(Ut),{width:"100%",class:"skeleton-subsite__bar"}),A(f(Ut),{width:"85%",class:"skeleton-subsite__bar skeleton-subsite__bar--last"}),A(f(Ut),{width:"220px",class:"skeleton-subsite__bar skeleton-subsite__bar--last"}),A(f(Ut),{width:"87px",class:"skeleton-subsite__bar skeleton-subsite__bar--last"}),O("div",gY,[A(f(Ut),{width:"58px"}),A(f(Ut),{width:"111px"})])])])]))}}),yY=J({__name:"SubsiteCommentsFeed",props:{subsite:{},sorting:{default:It.New}},async setup(e){let t,n;const s=e,{t:i,p:o}=Ne(),r=sE(),{items:a,isLoading:l,isFeedPresent:c,isError:u,isEnd:d,loadMore:h}=([t,n]=on(()=>OE({key:()=>s.subsite.id,options:()=>({sorting:s.sorting})})),t=await t,n(),t),p=gn(s.subsite),m=C(()=>[{label:i("subsite.feed.sorting.new"),value:It.New,url:`${p}/${rs.Comments}`},{label:i("subsite.feed.sorting.hotness"),value:It.Hotness,url:`${p}/${rs.Comments}/${It.Hotness}`},{label:i("subsite.feed.sorting.month"),value:It.Month,url:`${p}/${rs.Comments}/${It.Month}`},{label:i("subsite.feed.sorting.year"),value:It.Year,url:`${p}/${rs.Comments}/${It.Year}`},{label:i("subsite.feed.sorting.all"),value:It.All,url:`${p}/${rs.Comments}/${It.All}`}]);return(v,g)=>(_(),L(f(uC),{items:f(a),"is-present":f(c),"is-loading":f(l),"is-ended":f(d),"is-handle-ugc-links-with-router":!0,"stub-text":f(u)?f(i)("shared.dataLoadingError"):f(i)("common.emptyStubText"),"skeleton-items-count":5,"sorting-options":m.value,"active-sorting":e.sorting,"load-more":f(h)},{item:K(({data:b})=>[A(f(JE),St(b.data,{class:"subsite-comments-feed__item",actions:f(r),i18n:{t:f(i),p:f(o)},feedKey:e.subsite.id}),null,16,["actions","i18n","feedKey"])]),"item-skeleton":K(()=>
127[A(f(no),{preset:"comment"})]),_:1},8,["items","is-present","is-loading","is-ended","stub-text","sorting-options","active-sorting","load-more"]))}});function wY(e,t,n){const{t:s}=Ne(),{response:i}=Xl();function o(h){let p=h;return q(t)&&(p=`${s(`subsite.header.tabs.${t}`)} â ${p}`),q(n)&&(p=`${s(`subsite.feed.sorting.${n}`)} â ${p}`),p}const r=q(e.ogTitle)?o(e.ogTitle):e.type===_t.Blog?o(s("subsite.seo.blog.title",{name:e.name,id:e.id,appName:"vc.ru"})):o(`${e.name} (${sn(e,{forDisplay:!0})}) â ${s("subsite.type.community")} ${s("core.meta.on")} vc.ru`),a=q(e.ogDescription)?e.ogDescription:e.type===_t.Blog?s("subsite.seo.blog.description",{name:e.name,nickname:sn(e,{forDisplay:!0}),appName:"vc.ru"}):e.description,l=Mp({entityType:"subsite",entityId:e.id,version:at().unix()}),c=e==null?void 0:e.name,u={description:a,ogType:"profile",ogImage:l.fb,twitterImage:l.tw,author:c},d=[{"@id":R0(e.id.toString()),"@type":"ProfilePage",dateCreated:at(e.created*1e3).toISOString(),dateModified:at(e.lastModificationDate*1e3).toISOString(),mainEntity:{"@type":"Person",name:e.name,alternateName:sn(e),identifier:e.id,description:e.description,image:cd({uuid:e.avatar.data.uuid,width:128}),url:mi(gn(e)),interactionStatistic:[{"@type":"InteractionCounter",interactionType:"https://schema.org/FollowAction",userInteractionCount:e.counters.subscribers},{"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:e.rating}]}}];return e.robotsTag!==null&&(i==null||i.setHeader("X-Robots-Tag",e.robotsTag)),{title:r,meta:u,schema:d,vkImage:l.vk}}async function _Y(e){const{[Oe.Subsite]:t}=vt(),{catchError:n}=Lr(),{isAnon:s,user:i,onUserUpdate:o,offUserUpdate:r}=Ye(),{redirect:a}=dd(),{setPageProperties:l}=hi(),{isHidden:c}=Go(),{isHidden:u}=md(),{trackPageHit:d}=Qn(),h=C(()=>ce(e.source)),p=P(),m=C(()=>ce(e.tab)),v=C(()=>ce(e.sorting));async function g(E){var M;const x=E&&h.value===r_&&((M=i.value)==null?void 0:M.id)!==void 0?i.value.id:h.value;await n(async()=>{u.value=!0,p.value=await t.loadSubsiteWith(x,E),await b()})}async function b(){p.value!==void 0&&(await a(gn(p.value,m.value,v.value)),y(),c.value=p.value.isDisabledAd,u.value=c.value,p.value.type===_t.Blog&&p.value.isPro&&q(p.value.yandexMetricaId)&&d({metricaId:p.value.yandexMetricaId,Name:p.value.name,Path:gn(p.value,m.value,v.value),location:"Blog"}))}async function w(){so()||await g(!1)}function k(){p.value=void 0}function y(){p.value!==void 0&&l(wY(p.value,m.value,v.value))}const S=({isAnon:E})=>{E||g(!0)};return be(h,async(E,x)=>{x!==r_&&(k(),await g(!0))}),be([m,v],()=>{y()}),ib(()=>{c.value=!1,u.value=c.value}),bs(()=>{o(S)}),et(()=>{k(),r(S)}),await eo({onServer:w,onHydration:w,onAfterClientRender:async()=>{(p.value===void 0||!s.value)&&await g(!0)}}),{subsite:p}}const kY={class:"subsite-tabs"},SY=J({__name:"Subsite",props:{id:{default:void 0},uri:{default:"me"},sorting:{default:void 0},tab:{default:void 0}},async setup(e){let t,n;const s=e,i=ct(),{t:o}=Ne(Oe.Subsite),r=C(()=>s.id??s.uri),{subsite:a}=([t,n]=on(()=>_Y({source:r,tab:Cn(s,"tab"),sorting:Cn(s,"sorting")})),t=await t,n(),t),l=C(()=>{var u;return[{label:o("header.tabs.posts"),to:"",alias:`/${rs.Posts}`},{label:o("header.tabs.comments"),to:`/${rs.Comments}`,isHidden:((u=a.value)==null?void 0:u.type)!==_t.Blog}]}),c=C(()=>a.value!==void 0?gn(a.value):void 0);return(u,d)=>f(a)?(_(),L(f(vC),{key:0,gap:12},{default:K(()=>[f(a)?Ie((_(),L(lY,{key:0,subsite:f(a)},{default:K(()=>[O("div",kY,[A(f(e0),{tabs:l.value,"base-url":c.value},null,8,["tabs","base-url"])])]),_:1},8,["subsite"])),[[f(Wb),f(i)]]):D("",!0),e.tab===void 0||e.tab===f(rs).Posts?(_(),L(fY,{key:1,subsite:f(a),sorting:s.sorting},null,8,["subsite","sorting"])):e.tab===f(rs).Comments?(_(),L(yY,{key:2,subsite:f(a),sorting:s.sorting},null,8,["subsite","sorting"])):D("",!0)]),_:1})):(_(),L(bY,{key:1}))}});var _s=(e=>(e.Subscribers="subscribers",e.FeedHits="feed_hits",e.PostOpens="post_opens",e.PostReactions="post_reactions",e.LinkClicks="link_clicks",e))(_s||{});const CY={class:"subsite-stats"},EY={key:0,class:"subsite-stats__range"},xY={key:0,class:"subsite-stats__loader"},TY={key:2,class:"subsite-stats__body"},AY={class:"subsite-stats__metrics"},PY={class:"subsite-metric__head"},RY={class:"subsite-metric__total"},IY={class:"subsite-metric__caption"},MY={class:"subsite-stats__title"},$Y={key:1,class:"subsite-stats__top"},LY=J({__name:"Stats",props:{id:{default:0},uri:{default:void 0}},setup(e){const t=e,{subsite:n}=vt(),{t:s,p:i}=Ne(),{catchError:o,throwError:r}=Lr(),{formatTime:a}=Mr(),l=P(),c=P(),u={[_s.Subscribers]:"subsite.followers.subscribers",[_s.FeedHits]:"shared.stats.views",[_s.PostOpens]:"shared.stats.hits",[_s.PostReactions]:"shared.stats.reactions",[_s.LinkClicks]:"shared.stats.link_clicks"},d=C(()=>{var w,k,y,S;const p=[],m=(w=c.value)==null?void 0:w.find(E=>E.type===_s.FeedHits);q(m==null?void 0:m.detailed)&&p.push({type:_s.FeedHits,data:{datasets:[{values:m.detailed}]},title:s("shared.stats.graphs.views"),graphColor:Es.Pink});const v=(k=c.value)==null?void 0:k.find(E=>E.type===_s.PostOpens);q(v==null?void 0:v.detailed)&&p.push({type:_s.PostOpens,data:{datasets:[{values:v.detailed}]},title:s("subsite.stats.titles.opens")}),v!=null&&v.topOpens&&v.topOpens.length>0&&p.push({type:"topOpens",title:s("subsite.stats.topOpens"),topOpens:v.topOpens});const g=(y=c.value)==null?void 0:y.find(E=>E.type===_s.Subscribers);q(g==null?void 0:g.detailed)&&p.push({type:_s.Subscribers,data:{datasets:[{values:g.detailed}]},title:s("subsite.stats.titles.subscribers"),graphColor:Es.Blue});const b=(S=c.value)==null?void 0:S.find(E=>E.type===_s.LinkClicks);return q(b==null?void 0:b.detailed)&&p.push({type:_s.LinkClicks,data:{datasets:[{values:b.detailed}]},title:s("shared.stats.graphs.link_clicks"),graphColor:Es.Cyan}),p}),h=C(()=>c.value!==void 0&&c.value.some(p=>p.total>0));return Wg(()=>{so()||r(new Cb)}),je(async()=>{await o(async()=>{const p=await n.getStats(t.uri??t.id);c.value=p.items,l.value=`${a(p.startDate*1e3,us.Full)} â ${a(p.endDate*1e3,us.Full)}`})}),(p,m)=>(_(),T("div",CY,[A(f(Dr),{title:f(s)("subsite.stats.title")},{right:K(()=>[l.value?(_(),T("div",EY,Y(l.value),1)):D("",!0)]),_:1},8,["title"]),c.value===void 0?(_(),T("div",xY,[A(f(Yn))])):h.value?(_(),T("div",TY,[O("div",AY,[(_(!0),T(ye,null,We(c.value,v=>(_(),T("div",{key:v.type,class:"subsite-metric"},[O("div",PY,[O("div",RY,Y(f(Zt)(v.total,{short:{fromDigits:6}})),1),v.delta!==0?(_(),T("div",{key:0,class:Z(["subsite-metric__delta",v.delta>0&&"subsite-metric__delta--positive",v.delta<0&&"subsite-metric__delta--negative"])},Y(f(Zt)(v.delta,{short:{fromDigits:6}})),3)):D("",!0)]),O("div",IY,Y(f(i)(u[v.type],v.total,!1)),1)]))),128))]),(_(!0),T(ye,null,We(d.value,v=>(_(),T("div",{key:v.type,class:"subsite-stats__detailed"}
127,[O("div",MY,Y(v.title),1),v.data?(_(),L(f(B0),{key:0,data:v.data,"base-color":v.graphColor},null,8,["data","base-color"])):v.topOpens&&v.topOpens.length>0?(_(),T("div",$Y,[(_(!0),T(ye,null,We(v.topOpens,g=>(_(),T("div",{key:g.id},[A(f(Qe),{to:f(Fn)({id:g.id})},{default:K(()=>[xe(Y(g.title||`${f(s)("shared.post")} ${f(a)(g.date*1e3,f(us).FullWithTime)}`),1)]),_:2},1032,["to"]),O("div",null,Y(f(Zt)(g.opens,{short:!0})),1)]))),128))])):D("",!0)]))),128))])):(_(),L(f(qs),{key:1,"disable-icon":!0,text:f(s)("subsite.stats.stub")},null,8,["text"]))]))}}),OY=[{path:"/cloud.ru",redirect:"/cloudru"},{path:"/:type(u|s)/:segments*",redirect:e=>{const t="segments"in e.params&&Array.isArray(e.params.segments)?[...e.params.segments]:[],{uri:n}=Ea(t.shift()??"");return`/${n}${t.length>0?`/${t.join("/")}`:""}`}},{path:`/:subsite((?!${lg.source}|collectibles\\)${zv(uv)})/:tab(${lH.source})?/:sorting(${cH.source})?`,name:"Subsite",component:SY,props:e=>{const{id:t,nickname:n}=Ea(e.params.subsite);return{id:t,uri:n,tab:Bf(e.params.tab),sorting:Bf(e.params.sorting)}},meta:{refererId:$e.Subsite,refererContext:({subsite:e})=>({user:e}),shouldSaveCurrentScroll:(e,t)=>"subsite"in e.params&&"subsite"in t.params&&e.params.subsite===t.params.subsite}},{path:`/:subsite((?!${lg.source}|collectibles\\)${zv(uv)})/stats`,name:"SubsiteStats",component:LY,props:e=>{const{id:t,nickname:n}=Ea(e.params.subsite);return{id:t,uri:n}},meta:{refererId:$e.BlogStats,authRequired:!0}}],BY=J({__name:"Notifications",setup(e){const{t}=Ne(Oe.Shared),{setPageProperties:n}=hi();return n({title:t("notifications.title")}),(s,i)=>(_(),L(f(Tt),null,{default:K(()=>[A(f(DE))]),_:1}))}}),DY=[{path:"/notifications",name:"Notifications",meta:{authRequired:!0,refererId:$e.Notifications},component:BY}],ox={title:!1,editorial:!1,strict:!1,sorting:"relevance",dateFrom:"any"},bg=[en.Blogs,en.Telegram,en.Companies,en.Topics];var rx=(e=>(e.Processing="processing",e))(rx||{});function NY(e){const t={};return e.title===!0&&(t.title="1"),e.editorial===!0&&(t.editorial="1"),e.strict===!0&&(t.strict="1"),e.sorting!==void 0&&e.sorting!=="relevance"&&(t.sorting=e.sorting),e.dateFrom!==void 0&&e.dateFrom!=="any"&&(t.dateFrom=e.dateFrom),t}function FY(e){return typeof e=="string"&&["day","week","month","year"].includes(e)}function UY(e){const t={...ox};return e.title==="1"&&(t.title=!0),e.editorial==="1"&&(t.editorial=!0),e.strict==="1"&&(t.strict=!0),e.sorting==="date"&&(t.sorting=e.sorting),FY(e.dateFrom)&&(t.dateFrom=e.dateFrom),t}const HY=e=>{const t=["subsite-rank",e.rank>99?"subsite-rank--three-digits":""],n=e.prevRank>0?e.prevRank-e.rank:0,s=Math.sign(n)>0?["subsite-rank__change--positive"]:["subsite-rank__change--negative"],i=Math.sign(n)>0?"triangle_up":"triangle_down";return A("div",{class:t},[A("span",{class:"subsite-rank__num"},[e.rank,n!==0&&A("span",{class:["subsite-rank__change",...s]},[A(Re,{name:i,width:6,height:8},null),Math.abs(n)])])])},VY={class:"discovery-categories"},zY=J({__name:"SubsiteCategories",props:{type:{},activeCategoryId:{},categories:{},isLoading:{type:Boolean},onSelect:{type:Function}},setup(e){return(t,n)=>(_(),T("div",VY,[e.isLoading?(_(),L(f(no),{key:0,class:"discovery-categories__skeleton",schema:({bar:s,gapX:i})=>[Array.from({length:2},(o,r)=>[[s(`${(r+20)*3}px`,"32px")],[i("10px")]]).flat()]},null,8,["schema"])):(_(!0),T(ye,{key:1},We(e.categories,s=>(_(),L(f(Qe),{key:s.id,class:Z(["discovery-categories__item",{"discovery-categories__item--active":e.activeCategoryId===s.id}]),to:{name:"Top",params:{type:e.type,category:s.id}},"prevent-default":e.onSelect!==void 0,onClick:i=>{var o;return(o=e.onSelect)==null?void 0:o.call(e,s.id)}},{default:K(()=>[s.id?(_(),L(f(Re),{key:0,name:`category_${s.id}`,width:16,height:16},null,8,["name"])):D("",!0),xe(" "+Y(s.title),1)]),_:2},1032,["class","to","prevent-default","onClick"]))),128))]))}}),WY={class:"discovery-list"},jY={key:0,class:"discovery-list__title"},GY={class:"discovery-list__subscribe"},qY={key:2,class:"discovery-list__link"},KY={key:3,class:"discovery-list__link"},kh=J({__name:"SubsiteList",props:{type:{},title:{},items:{},isLoading:{type:Boolean},isEnded:{type:Boolean},firstCount:{},loadMore:{type:Function},showAll:{},withRank:{type:Boolean},categories:{}},emits:["categorySelect"],setup(e,{emit:t}){const n=e,s=t,{t:i}=ft(),o=P(!1),r=C(()=>o.value?n.items:n.items.slice(0,n.firstCount)),a=C(()=>n.isEnded||n.isLoading?!1:n.firstCount!==void 0?n.items.length>n.firstCount:!1);function l(){o.value?n.loadMore!==void 0&&n.loadMore():o.value=!0}function c(u){s("categorySelect",n.type,u)}return(u,d)=>
127(_(),T("div",WY,[e.title?(_(),T("div",jY,Y(e.title),1)):D("",!0),e.categories?(_(),L(zY,{key:1,class:"discovery-list__categories",type:e.type,categories:e.categories.items,"is-loading":e.categories.isLoading,"active-category-id":e.categories.active,"on-select":e.categories.preventNavigation?c:void 0},null,8,["type","categories","is-loading","active-category-id","on-select"])):D("",!0),A(f(Na),{items:r.value,"is-loading":e.isLoading,"virtual-scroll":{itemHeight:40,gap:24}},{item:K(h=>{var p,m;return[O("div",{class:"discovery-list__item",style:Ot(h.style)},[e.withRank&&((p=h.data.meta)!=null&&p.rank)?(_(),L(f(HY),{key:0,rank:h.data.meta.rank,prevRank:((m=h.data.meta)==null?void 0:m.prevRank)??0},null,8,["rank","prevRank"])):D("",!0),A(f(Ha),{id:h.data.data.id,avatar:h.data.data.avatar,"avatar-size":40,name:h.data.data.name,"badge-id":h.data.data.badgeId,"favorite-collectible":h.data.data.favoriteCollectible,url:f(gn)(h.data.data),class:"discovery-list__author"},{secondary:K(()=>[xe(Y(f(sn)(h.data.data,{forDisplay:!0})),1)]),_:2},1032,["id","avatar","name","badge-id","favorite-collectible","url"]),O("div",GY,[A(f(uc),{subsite:h.data.data,compact:!0,"gtm-prefix":"Topics","from-feed":f($e).Discovery,"has-unsubscribe":"",type:"primary"},null,8,["subsite","from-feed"])])],4)]}),_:1},8,["items","is-loading"]),a.value?(_(),T("div",qY,[A(f(zs),{icon:"chevron_down",onClick:l},{default:K(()=>[xe(Y(f(i)("common.showMore")),1)]),_:1})])):e.showAll?(_(),T("div",KY,[A(f(zs),{to:e.showAll},{default:K(()=>[xe(Y(f(i)("common.showAll")),1)]),_:1},8,["to"])])):D("",!0)]))}});async function ax(e){const{[Oe.Discovery]:t}=vt(),{t:n}=Ne(),{catchError:s}=Lr(),i="all",o=P(),r=P(!1),a=C(()=>{var c;return(c=o.value)==null?void 0:c.find(u=>u.id===ce(e))});async function l(){await s(async()=>{r.value=!0;const c=await t.getCategories();if(o.value=c.reduce((u,d)=>(d.id===i?u.push({...d,id:void 0,title:n("shared.all")}):u.push(d),u),[]),a.value===void 0&&o.value.length>0)throw new ec;r.value=!1})}return await eo({onServer:l,onHydration:l,onAfterClientRender:async()=>{o.value===void 0&&await l()}}),{categories:o,activeCategory:a,isLoading:r,load:l}}const YY={class:"discovery__subsites"},T_=5,XY=J({__name:"Initial",async setup(e){let t,n;const{isAnon:s}=Ye(),{t:i}=ft(),o={[en.Blogs]:i("common.blogs"),[en.Topics]:i("common.topics"),[en.Companies]:i("discovery.companies"),[en.Telegram]:i("discovery.telegram")},r=bt(Object.fromEntries(bg.map(h=>[h,void 0]))),[{categories:a,isLoading:l},...c]=([t,n]=on(async()=>Promise.all([ax(),...bg.map(async h=>await U0(h,()=>r[h]))])),t=await t,n(),t);function u(h){return h===en.Companies}function d(h,p){r[h]=p}return La(()=>{s.value||c.forEach(h=>{h.load(!0)})}),(h,p)=>(_(),T("div",YY,[(_(),T(ye,null,We(c,(m,v)=>(_(),T(ye,{key:v},[m.isLoading.value?(_(),L(f(no),{key:0,schema:({circle:g,bar:b,gapX:w,gapY:k,fillX:y})=>[[[b("60px")],[k("20px")]],u(m.type)?[[Array.from({length:2},(S,E)=>[[b(`${(E+20)*3}px`,"32px")],[w("10px")]]).flat()],[[k("20px")]]]:[],Array.from({length:T_},()=>[[[g("40px")],[w("8px")],[b("99px"),b("123px")],[y()],Math.random()>.5?[b("80px","20px")]:[]],[k("24px")]]).flat(),[[b("120px")],[k("13px")]]].flat()},null,8,["schema"])):(_(),L(kh,{key:1,type:m.type,title:o[m.type],items:m.items.value.slice(0,T_),"is-loading":m.isLoading.value,"is-ended":!0,"show-all":{name:"Top",params:{type:m.type,category:r[m.type]}},"with-rank":m.type!==f(en).Topics,categories:u(m.type)?{items:f(a),isLoading:f(l),active:r[m.type],preventNavigation:!0}:void 0,onCategorySelect:d},null,8,["type","title","items","is-loading","show-all","with-rank","categories"]))],64))),64))]))}}),QY={class:"discovery-recent-item"},JY=J({__name:"RecentItem",props:{item:{}},emits:["select","remove"],setup(e){return(t,n)=>(_(),T("div",QY,[typeof e.item=="string"?(_(),T("div",{key:0,class:"discovery-recent-item__body",onClick:n[0]||(n[0]=s=>{t.$emit("select",e.item)})},[A(f(Re),{name:"search",width:24,height:24,class:"discovery-recent-item__icon"}),O("div",null,Y(e.item),1)])):"avatar"in e.item?(_(),L(f(Qe),{key:1,class:"discovery-recent-item__body",to:f(gn)(e.item)},{default:K(()=>[A(f(Jn),{source:e.item.avatar,size:24,isAllowVideo:!1},null,8,["source"]),O("div",null,Y(e.item.name),1)]),_:1},8,["to"])):(_(),L(f(Qe),{key:2,class:"discovery-recent-item__body",to:f(Fn)(e.item)},{default:K(()=>[A(f(Re),{name:"pen",width:24,height:24,class:"discovery-recent-item__icon"}
127),O("div",null,Y(e.item.title),1)]),_:1},8,["to"])),A(f(Re),{name:"cross",width:24,height:24,class:"discovery-recent-item__remove",onClick:n[1]||(n[1]=s=>t.$emit("remove",e.item))})]))}}),ZY={class:"discovery-filters"},eX=J({__name:"PostFilters",props:{filters:{}},emits:["apply"],setup(e,{emit:t}){const n=e,s=t,{t:i}=Ne(Oe.Discovery),o=bt({sorting:{value:n.filters.sorting??"relevance",label:i("postFilters.sorting.title")},dateFrom:{value:n.filters.dateFrom??"any",label:i("postFilters.date.title")},strict:{value:n.filters.strict??!1,label:i("postFilters.strict")},title:{value:n.filters.title??!1,label:i("postFilters.title")},editorial:{value:n.filters.editorial??!1,label:i("postFilters.editorial")}}),r=[{value:"relevance",label:i("postFilters.sorting.options.relevance")},{value:"date",label:i("postFilters.sorting.options.date")}],a=[{value:"any",label:i("postFilters.date.options.any")},{value:"day",label:i("postFilters.date.options.day")},{value:"week",label:i("postFilters.date.options.week")},{value:"month",label:i("postFilters.date.options.month")},{value:"year",label:i("postFilters.date.options.year")}];function l(){s("apply",{sorting:o.sorting.value,dateFrom:o.dateFrom.value,strict:o.strict.value,title:o.title.value,editorial:o.editorial.value})}return(c,u)=>(_(),T("div",ZY,[A(f(du),{label:o.sorting.label},{default:K(()=>[A(f(Bw),{modelValue:o.sorting.value,"onUpdate:modelValue":u[0]||(u[0]=d=>o.sorting.value=d),options:r},null,8,["modelValue"])]),_:1},8,["label"]),A(f(du),{label:o.dateFrom.label},{default:K(()=>[A(f(Bw),{modelValue:o.dateFrom.value,"onUpdate:modelValue":u[1]||(u[1]=d=>o.dateFrom.value=d),options:a},null,8,["modelValue"])]),_:1},8,["label"]),A(f(du),{class:"discovery-filters__options"},{default:K(()=>[A(f(Am),{modelValue:o.strict.value,"onUpdate:modelValue":u[2]||(u[2]=d=>o.strict.value=d),caption:o.strict.label},null,8,["modelValue","caption"]),A(f(Am),{modelValue:o.title.value,"onUpdate:modelValue":u[3]||(u[3]=d=>o.title.value=d),caption:o.title.label},null,8,["modelValue","caption"]),A(f(Am),{modelValue:o.editorial.value,"onUpdate:modelValue":u[4]||(u[4]=d=>o.editorial.value=d),caption:o.editorial.label},null,8,["modelValue","caption"])]),_:1}),A(f(qe),{size:"xl",onClick:l},{default:K(()=>[xe(Y(f(i)("showResults")),1)]),_:1})]))}});function Vm(e){const t=P([]),n=P(!1),s=C(()=>t.value.length===0),i=P(!1),o=P(0);async function r(){if(i.value)return;o.value++;const l=o.value;n.value=!0;const c=t.value.length;try{t.value=await e(!1)}catch(u){console.log("Discovery section search error",u)}c===t.value.length&&(i.value=!0),l===o.value&&(n.value=!1)}function a(l=[]){t.value=l,n.value=!1,i.value=!1}return{items:t,isLoading:n,isEmpty:s,isEnded:i,search:e,searchMore:r,reset:a}}const tX=fi((e,t)=>{const{discovery:n,subsite:s,feed:i}=vt(),o=ct(),{execute:r}=LE();let a=!1;const l=C(()=>ce(e).trim()),c=C(()=>l.value.length===0),u=P(!1),d=C(()=>n.getRecent()),h=Vm(async y=>await s.search(l.value,_t.Blog,y)),p=Vm(async y=>await s.search(l.value,_t.Topic,y)),m=Vm(async y=>await i.loadEntries(Te.Discovery,{q:l.value,...ce(t)},{reset:y,clear:!1,includeUserData:!0}
127));function v(y){n.addToRecent(y)}function g(y){n.removeFromRecent(y)}function b(y=!1){const S=y?{}:{q:l.value,...NY(ce(t))};o.push({query:S})}function w(){if(a)return;const y=l.value;r(Promise.all([h.search(!0),p.search(!0),m.search(!0)])).then(([S,E,x])=>{h.reset(S),p.reset(E),m.reset(x),c.value||(v(l.value),b())}).catch(S=>{console.log("Full search error",S)}).finally(()=>{y===l.value&&(u.value=!1)})}const k=js(w,1e3);return be(l,()=>{if(h.reset(),p.reset(),m.reset(),c.value){b(!0);return}u.value=!0,un(()=>{k()})},{immediate:!0}),be(()=>ce(t),async()=>{m.reset([]),r(m.searchMore()).then(()=>{b()}).catch(()=>{})}),et(()=>{a=!0}),{recent:d,blogsSection:h,topicsSection:p,postsSection:m,isEmptyQuery:c,isLoading:u,removeFromRecent:g}},()=>({recent:C(()=>[]),blogsSection:{items:P([]),isLoading:C(()=>!1),isEmpty:C(()=>!1),isEnded:P(!1),search:async()=>[],searchMore:async()=>{},reset:()=>{}},topicsSection:{items:P([]),isLoading:C(()=>!1),isEmpty:C(()=>!1),isEnded:P(!1),search:async()=>[],searchMore:async()=>{},reset:()=>{}},postsSection:{items:P([]),isLoading:C(()=>!1),isEmpty:C(()=>!1),isEnded:P(!1),search:async()=>[],searchMore:async()=>{},reset:()=>{}},isEmptyQuery:C(()=>!1),isLoading:C(()=>!0),removeFromRecent:()=>{}})),nX=1e3;function uf(e){return(e==null?void 0:e.noAnswer)===!0&&e.status===rx.Processing}function sX(e){return(e==null?void 0:e.noAnswer)===!0&&!uf(e)}const iX=fi((e,t={})=>{const{discovery:n}=vt(),{execute:s,cancel:i}=LE(),o=C(()=>ce(e).trim()),r=P(),a=P(!1),l=P(!1);let c;const u=C(()=>{const x=r.value;return x===void 0?[]:uf(x)?x.stream??[]:x.answer.blocks}),d=C(()=>u.value.length>0),h=C(()=>l.value&&sX(r.value)),p=C(()=>uf(r.value)),m=C(()=>a.value||p.value),v=C(()=>{var x;return((x=r.value)==null?void 0:x.ratingKey)??null}),g=C(()=>{var x;return((x=r.value)==null?void 0:x.userVote)??null}),b=C(()=>{var x;return((x=r.value)==null?void 0:x.qaId)??null});function w(){clearTimeout(c),c=void 0}function k(x,M){w();const I=Math.max(nX-M,0);c=setTimeout(()=>{y(x)},I)}async function y(x){if(x!==o.value)return;w(),a.value=!0;const M=Date.now();try{const I=await s(n.getAnswer({question:x,...ce(t)}));if(x!==o.value)return;r.value=I,uf(I)&&(l.value=!0,k(x,Date.now()-M))}catch(I){if(x!==o.value||I instanceof $E)return;r.value=void 0,console.log("Assistant search error",I)}finally{x===o.value&&(a.value=!1)}}const S=js(x=>{y(x)},1e3);function E(){w(),i(),r.value=void 0,l.value=!1,a.value=!1}return be(o,x=>{E(),x.length!==0&&(a.value=!0,S(x))},{immediate:!0}),{blocks:u,hasAnswer:d,isAnswerUnavailable:h,isPending:m,isLoading:a,ratingKey:v,userVote:g,qaId:b}},()=>({blocks:C(()=>[]),hasAnswer:C(()=>!1),isAnswerUnavailable:C(()=>!1),isPending:C(()=>!1),isLoading:C(()=>!1),ratingKey:C(()=>null),userVote:C(()=>null),qaId:C(()=>null)})),oX={class:"discovery-search"},rX={key:0,class:"discovery-search__recent"},aX={key:1,class:"discovery-search__empty"},lX={key:1,class:"discovery-search__loading"},cX={key:2,class:"discovery-search__result"},uX={key:1,class:"discovery-search__empty"},dX={key:0,class:"discovery__subsites"},fX={key:1,class:"discovery-search__posts"},hX={key:0,class:"discovery-search__empty"},pX=J({__name:"Search",props:{query:{required:!0},queryModifiers:{},postFilters:{required:!0},postFiltersModifiers:{}},emits:rA(["update:query","update:postFilters"],["update:query","update:postFilters"]),setup(e,{expose:t,emit:n}){const s=ji({loader:Rt(async()=>await Ce(()=>import("./AssistantAnswer-B2oosqRw.js"),__vite__mapDeps([126,127,128])))}),i=by(e,"query"),o=by(e,"postFilters"),r=n;gt(Rp,!0);const{t:a}=ft(),l=$s({fromFeed:$e.Discovery}),{open:c,close:u}=Wt(),{recent:d,blogsSection:h,topicsSection:p,postsSection:m,isEmptyQuery:v,isLoading:g,removeFromRecent:b}=tX(()=>i.value,()=>o.value),{blocks:w,hasAnswer:k,isAnswerUnavailable:y,isPending:S,ratingKey:E,userVote:x}=iX(()=>i.value),M=C(()=>k.value||y.value||S.value),I=C(()=>!No(o.value,ox)),N=C(()=>!h.isEmpty.value||!p.isEmpty.value),V=C(()=>h.items.value.map(G=>({data:G}))),$=C(()=>p.items.value.map(G=>({data:G}))),j=C(()=>!m.isEmpty.value||m.isLoading.value||I.value),X=C(()=>!N.value&&!j.value&&!M.value);function U(){c(eX,{filters:o.value,onApply:G=>{u(),r("update:postFilters",G)}},{title:a("discovery.filters")})}const R=C(()=>!v.value&&!g.value&&!M.value&&!N.value&&j.value);return t({isShownOnlyPostsSection:R}),(G,H)=>(_(),T("div",oX,[f(v)?(_(),T(ye,{key:0},[f(d).length>0?(_(),T("div",rX,[(_(!0),T(ye,null,We(f(d),(se,ue)=>(_(),L(JY,{key:ue,item:se,onSelect:H[0]||(H[0]=de=>r("update:query",de)),onRemove:H[1]||(H[1]=de=>f(b)(de))},null,8,["item"]))),128))])):(_(),T("div",aX,Y(f(a)("discovery.emptyHistory")),1))],64)):f(g)?(_(),T("div",lX,[A(f(Yn))])):(_(),T("div",cX,[M.value?(_(),L(f(s),{key:0,class:"discovery-search__assistant-answer",blocks:f(w),"is-answer-unavailable":f(y),"is-loading":f(S),"rating-key":f(E),"user-vote":f(x)},null,8,["blocks","is-answer-unavailable","is-loading","rating-key","user-vote"])):D("",!0),X.value?(_(),T("div",uX,Y(f(a)("common.nothingFound")),1)):(_(),T(ye,{key:2},[N.value?(_(),T("div",dX,[f(h).isEmpty.value?D("",!0):(_(),L(kh,{key:0,t
127ype:f(en).Blogs,title:f(a)("common.blogs"),items:V.value,"first-count":2,"is-loading":f(h).isLoading.value,"is-ended":f(h).isEnded.value,"load-more":f(h).searchMore},null,8,["type","title","items","is-loading","is-ended","load-more"])),f(p).isEmpty.value?D("",!0):(_(),L(kh,{key:1,type:f(en).Topics,title:f(a)("common.topics"),"first-count":2,items:$.value,"is-loading":f(p).isLoading.value,"is-ended":f(p).isEnded.value,"load-more":f(p).searchMore},null,8,["type","title","items","is-loading","is-ended","load-more"]))])):D("",!0),j.value?(_(),T("div",fX,[A(f(Dr),{title:f(a)("discovery.posts")},{right:K(()=>[A(f(ic),{icon:"filter","is-active":I.value,onClick:U},null,8,["is-active"])]),_:1},8,["title"]),f(m).isEmpty.value&&!f(m).isLoading.value?(_(),T("div",hX,Y(f(a)("common.nothingFound")),1)):(_(),L(f(xi),{key:1,entries:f(m).items.value,"is-loading":f(m).isLoading.value,name:f(Te).Discovery,actions:f(l),onEndReached:f(m).searchMore},null,8,["entries","is-loading","name","actions","onEndReached"]))])):D("",!0)],64))]))]))}}),mX=J({__name:"Discovery",props:{initialQuery:{},initialPostFilters:{}},setup(e){const t=e,{setPageProperties:n}=hi(),{t:s}=ft(),i=ct(),o=P(),r=P(),a=P(t.initialQuery),l=P(t.initialPostFilters),c=C(()=>a.value.trim().length===0),u=P(!1),d=C(()=>u.value||!c.value),h=C(()=>{if(!c.value)return{name:"cross",action:()=>a.value=""}});function p(){u.value=!1,a.value="",i.push({query:{}})}function m(v){o.value!==void 0&&v.composedPath().includes(o.value)||(u.value=!1)}return be([()=>t.initialQuery,()=>t.initialPostFilters],([v,g])=>{a.value!==v?(l.value=g,a.value=v):No(l.value,g)||(l.value=g)}),n({title:s("common.discovery")}),(v,g)=>{var b;return _(),T(ye,null,[O("div",{ref_key:"root",ref:o,class:"discovery"},[O("div",{class:Z(["discovery__header",((b=r.value)==null?void 0:b.isShownOnlyPostsSection)&&"discovery__header--with-footer"])},[Ie(A(f(rc),{modelValue:a.value,"onUpdate:modelValue":g[0]||(g[0]=w=>a.value=w),icon:"search","icon-right":h.value,placeholder:f(s)("common.search"),onFocus:g[1]||(g[1]=w=>u.value=!0)},null,8,["modelValue","icon-right","placeholder"]),[[f(_p),m]]),d.value?(_(),L(f(zs),{key:0,onClick:p},{default:K(()=>[xe(Y(f(s)("common.cancellation")),1)]),_:1})):D("",!0)],2),d.value?(_(),L(pX,{key:0,ref_key:"searchSection",ref:r,query:a.value,"onUpdate:query":g[2]||(g[2]=w=>a.value=w),"post-filters":l.value,"onUpdate:postFilters":g[3]||(g[3]=w=>l.value=w)},null,8,["query","post-filters"])):D("",!0),(_(),L(Hk,null,[d.value?D("",!0):(_(),L(XY,{key:0}))],1024))],512),Ie(A(f(O0),null,null,512),[[As,c.value]])],64)}}});async function vX(e,t,{isWithCategories:n=!1}={}){const{t:s}=ft(),i="vc.ru",[{items:o,isLoading:r},{categories:a,activeCategory:l,isLoading:c}]=await Promise.all([U0(e,t),n?ax(t):{categories:[],activeCategory:C(()=>{}),isLoading:P(!1)}]),{setPageProperties:u}=hi(),d=C(()=>s(`discovery.tops.${e}.title`)),h=C(()=>s(`discovery.tops.${e}.metaTitle`,{appName:i})),p=C(()=>s(`discovery.tops.${e}.metaDescription`,{appName:i,appAbout:"бизнеÑ, ÑеÑ
нологии и маÑкеÑинг"}));return be([l,p],()=>{var m,v;u({title:((m=l.value)==null?void 0:m.ogTitle)??h.value,meta:{description:((v=l.value)==null?void 0:v.ogDescription)??p.value}})},{immediate:!0}),{title:d,categories:a,activeCategory:l,items:o,isLoadingTop:r,isLoadingCategories:c}}const gX={class:"discovery-top"},bX=["href"],yX={class:"discovery-top__content"},wX=["innerHTML"],_X=J({__name:"Top",props:{type:{},category:{}},async setup(e){let t,n;const s=e,{t:i}=ft(),o=s.type===en.Companies,r=s.type===en.Telegram?"https://t.me/vcrepost_bot":void 0,{items:a,isLoadingTop:l,isLoadingCategories:c,title:u,categories:d,activeCategory:h}=([t,n]=on(()=>vX(s.type,()=>s.category,{isWithCategories:o})),t=await t,n(),t);return(p,m)=>(_(),L(f(vC),null,{default:K(()=>[O("div",gX,[A(f(Dr),{title:f(u)},Is({_:2},[f(r)?{name:"right",fn:K(()=>[O("a",{class:"link-button link-button--default",href:f(r),target:"_blank",rel:"noopener noreferrer"},Y(f(i)("discovery.tops.telegram.add")),9,bX)]),key:"0"}:void 0]),1032,["title"]),O("div",yX,[f(l)?(_(),L(f(no),{key:0,schema:({circle:v,bar:g,gapX:b,gapY:w,fillX:k})=>[o?[[Array.from({length:2},(y,S)=>[[g(`${(S+20)*3}px`,"32px")],[b("10px")]]).flat()],[[w("20px")]]]:[],Array.from({length:10},()=>
127[[[v("40px")],[b("8px")],[g("99px"),g("123px")],[k()],Math.random()>.5?[g("80px","20px")]:[]],[w("18px")]]).flat()].flat()},null,8,["schema"])):(_(),L(kh,{key:1,type:e.type,items:f(a),"is-loading":!1,"is-ended":!0,categories:o?{items:f(d),active:e.category,isLoading:f(c)}:void 0,"with-rank":""},null,8,["type","items","categories"]))])]),f(h)&&f(h).promotionalInfo?(_(),L(f(sB),{key:0,withTypography:!0},{default:K(()=>[O("article",{innerHTML:f(h).promotionalInfo},null,8,wX)]),_:1})):D("",!0)]),_:1}))}}),kX=[{path:"/discovery",children:[{path:"",name:"Discovery",component:mX,props:e=>({initialQuery:typeof e.query.q=="string"?e.query.q:"",initialPostFilters:UY(e.query)}),meta:{shouldRestoreScroll:()=>!0,scrollPosition:{top:0},refererId:$e.Discovery}},{path:`:type(${bg.join("|")})/:category?`,name:"Top",component:_X,props:e=>({type:e.params.type,category:Bf(e.params.category)}),meta:{refererId:e=>{switch(e.params.type){case"blogs":return $e.DiscoveryBlogs;case"companies":return $e.DiscoveryCompanies;case"topics":return $e.DiscoveryThemes;case"telegram":return $e.DiscoveryTelegram;default:return $e.Unknown}}}}]}];function SX(...[e,t]){var l,c;if(t.name===void 0)return;const n=e.path===t.path&&e.hash===t.hash&&JSON.stringify(e.query)===JSON.stringify(t.query);if(n&&e.path==="/"&&!q(e.hash)&&Object.keys(e.query).length===0)return{top:0,behavior:A_(e,t)?"smooth":"auto"};if(n)return;const i=typeof e.meta.shouldRestoreScroll=="function"&&e.meta.shouldRestoreScroll(e,t);if(i===null)return;const o=(c=(l=e.meta)==null?void 0:l.scrollPosition)==null?void 0:c.top;if(i&&o!==void 0)return{top:o};const r="modal"in e.query||"modal"in t.query,a=typeof e.meta.shouldSaveCurrentScroll=="function"&&e.meta.shouldSaveCurrentScroll(e,t);return r||a?{top:window.scrollY}:{top:0,behavior:A_(e,t)?"smooth":"auto"}}function A_(e,t){return typeof e.meta.smoothScroll=="function"?e.meta.smoothScroll(e,t):e.meta.smoothScroll===!0}const W0=Pn(()=>{const e=P(""),t=P(""),n=P(),s=P(""),i=P(null),o=P(null),r=P(null);function a(){e.value="",t.value="",n.value=void 0,i.value=null,o.value=null,r.value=null}return{title:e,subline:t,picture:n,reset:a,centerLink:s,badgeId:i,subsiteId:o,favoriteCollectible:r}}),CX=J({__name:"AvatarPlaceholder",props:{id:{},title:{},size:{}},setup(e){Zi(o=>({v87e09868:`${t.size}px`,v602a3f20:i.value}));const t=e,n=C(()=>t.title.split(" ").slice(0,2).map(o=>o[0]).join("")),s=[["#ff885e","#ff516a"],["#ffcd6a","#ffa85c"],["#82b1ff","#665fff"],["#a0de7e","#54cb68"],["#53edd6","#28c9b7"],["#72d5fd","#2a9ef1"],["#e0a2f3","#d669ed"]],i=C(()=>{let[o,r]=s[Math.floor(Math.random()*s.length)];if(t.id!==void 0){const l=t.id.split("").reduce((c,u)=>c+u.charCodeAt(0),0)%s.length;[o,r]=s[l]}return`linear-gradient(180deg, ${o} 0%, ${r} 100%)`});return(o,r)=>(_(),T("div",{class:Z(o.$style.avatar)},Y(n.value),3))}}),EX="_1ZjsIKRC",xX={avatar:EX,"underlay-in":"yzy-k42M","modal-enter":"yS7p9iEO","modal-enter-slide":"G-schhhN"},TX={$style:xX},AX=ot(CX,[["__cssModules",TX]]),yd=J({__name:"AvatarOrPlaceholder",props:{picture:{},id:{},title:{},size:{}},setup(e){return(t,n)=>e.picture?(_(),L(f(Jn),{key:0,source:e.picture,size:e.size,isAllowVideo:!1},null,8,["source","size"])):(_(),L(AX,{key:1,id:e.id,title:e.title,size:e.size},null,8,["id","title","size"]))}}),PX=J({__name:"Header",setup(e){const{title:t,subline:n,picture:s,centerLink:i,badgeId:o,subsiteId:r,favoriteCollectible:a}=W0();return(l,c)=>(_(),T("div",{class:Z([l.$style.header])},[(_(),L(nn(f(i)?f(Qe):"div"),{to:f(i),target:f(i)?"_blank":void 0,class:Z(l.$style.center)},{default:K(()=>[f(s)!==void 0?(_(),T("div",{key:0,class:Z(l.$style.center__picture)},[A(yd,{id:f(s).id,picture:f(s).data,title:f(s).title,size:36},null,8,["id","picture","title"])],2)):D("",!0),O("div",{class:Z(l.$style.center__body)},[O("div",{class:Z(l.$style.title)},[xe(Y(f(t))+" ",1),f(r)?(_(),L(f(Ua),{key:0,"owner-id":f(r),"badge-id":f(o),collectible:f(a)},null,8,["owner-id","badge-id","collectible"])):D("",!0)],2),O("div",{class:Z(l.$style.subline)},Y(f(n)),3)],2)]),_:1},8,["to","target","class"])),O("div",{class:Z(l.$style.right)},null,2)],2))}}),RX="_0X7BKABE",IX="O9-VuYU-",MX="_5p0ckzL1",$X="D0L7dHDm",LX="EUPap4bX",OX="Ur6q2GD9",BX="JSKtmVOg",DX={header:RX,center:IX,center__body:MX,center__picture:$X,"header--with-back":"NceTK8-5",title:LX,badge:OX,subline:BX,"underlay-in":"pqUFQiM-","modal-enter"
127:"uQL7Yjfx","modal-enter-slide":"NWjyXf9e"},NX={$style:DX},FX=ot(PX,[["__cssModules",NX]]),UX=J({__name:"Messenger",setup(e){return(t,n)=>{const s=Gg("router-view");return _(),L(f(Tt),null,{default:K(()=>[O("div",St({class:t.$style.messenger},{[f(Kl)]:""}),[A(FX),A(s)],16)]),_:1})}}}),HX="JQdW8Auc",VX={messenger:HX,"underlay-in":"_0VnHbHpS","modal-enter":"_1iI4MitY","modal-enter-slide":"gliv-jm4"},zX={$style:VX},WX=ot(UX,[["__cssModules",zX]]);var yg=(e=>(e[e.Personal=1]="Personal",e[e.Group=2]="Group",e))(yg||{});function lx(){const{[Oe.Messenger]:e}=vt(),{alert:t,AlertType:n}=fn(),{tf:s}=Ne(),i=P(!1),o=P(!1),r=P(new Map),a=P(!0);async function l(){await c(!0)}async function c(d=!1){o.value=!0;const h=r.value.size;try{r.value=await e.getChannels(d),i.value=!0}catch(p){t({type:n.Error,text:s(`shared.errors.${p.message}`,"shared.unknownError")})}finally{o.value=!1,a.value=r.value.size>h}}async function u(d){const h=await e.getChannel(d);h!==void 0&&r.value.set(d,h)}return{channels:r,isLoaded:i,isLoading:o,loadMore:l,hasMore:a,loadChannel:u,loadChannelList:c}}function jX(e){const{[Oe.Messenger]:t}=vt(),{alert:n,AlertType:s}=fn(),{tf:i}=Ne(),{channels:o,loadChannel:r}=lx(),{user:a}=Ye(),l=C(()=>ce(e)),c=P(!1),u=P(!1),d=P(!0),h=P([]),p=C(()=>o.value.get(l.value)??null),m=C(()=>h.value[0]);async function v(){var y;await b((y=m.value)==null?void 0:y.dtCreated)}const g=30;async function b(y=0){u.value=!0;try{const{messages:S,loadedCount:E}=await t.getMessages(l.value,y);return E===0&&(d.value=!1),S}catch(S){n({type:s.Error,text:i(`messenger.errors.${S.message}`,"shared.unknownError")})}finally{u.value=!1}return[]}async function w(){await t.resetUnreadMessagesCountForChannel(l.value)}const k=C(()=>{var y,S;if(((y=p.value)==null?void 0:y.type)===yg.Personal){const E=p.value.members.find(x=>x.id!==a.value.id.toString());return E==null?void 0:E.lastSeen}return((S=p.value)==null?void 0:S.type)===yg.Group?`${p.value.membersCount} members`:""});return je(async()=>{h.value=await b(),r(l.value),h.value.length<g&&(d.value=!1),c.value=!0}),{messages:h,channel:p,loadNext:v,isLoaded:c,isLoading:u,firstMessage:m,hasMore:d,description:k,resetUnreadCount:w}}const GX=J({__name:"Reply",props:{reply:{}},setup(e){return(t,n)=>(_(),T("div",{class:Z(t.$style.reply)},[O("div",{class:Z(t.$style.author)},[A(yd,{id:e.reply.author.id,picture:e.reply.author.pictureData,title:e.reply.author.title,size:18},null,8,["id","picture","title"]),O("div",{class:Z(t.$style.author__name)},Y(e.reply.author.title),3)],2),O("div",{class:Z(t.$style.text)},Y(e.reply.text),3)],2))}}),qX="xpjBhY4d",KX="iHJjww-t",YX="ywDtqnSZ",XX="rHt56cFH",QX={reply:qX,text:KX,author:YX,author__name:XX,"underlay-in":"GRko-jIU","modal-enter":"n0HvoqMv","modal-enter-slide":"K2ZZ3ADq"},JX={$style:QX},ZX=ot(GX,[["__cssModules",JX]]),eQ={class:"left"},tQ=["innerHTML"],nQ=J({__name:"Message",props:{message:{},isGrouped:{type:Boolean}},setup(e){const t=e,n=C(()=>q(t.message.text)?lp(t.message.text):"");return(s,i)=>(_(),T("div",{class:Z([s.$style.message,{[s.$style["message--grouped"]]:e.isGrouped},{[s.$style["message--sending"]]:e.message.status===f(x0).Sent}])},[O("div",eQ,[e.isGrouped?D("",!0):(_(),L(f(Qe),{key:0,to:{name:"Subsite",params:{subsite:f(sn)(e.message.author)}},target:"_blank"},{default:K(()=>[A(yd,{id:e.message.author.id,picture:e.message.author.pictureData,title:e.message.author.title,size:36},null,8,["id","picture","title"])]),_:1},8,["to"]))]),O("div",{class:Z(s.$style.body)},[e.message.author&&!e.isGrouped?(_(),L(f(Qe),{key:0,class:Z(s.$style.author),to:{name:"Subsite",params:{subsite:f(sn)(e.message.author)}},target:"_blank"},{default:K(()=>[xe(Y(e.message.author.title),1)]),_:1},8,["class","to"])):D("",!0),e.message.replyTo?(_(),L(ZX,{key:1,reply:e.message.replyTo},null,8,["reply"])):D("",!0),O("div",{innerHTML:n.value},null,8,tQ),e.message.media?(_(!0),T(ye,{key:2},We(e.message.media,(o,r)=>(_(),L(f(jo),{key:`media-${r}`,type:o.type,data:o.data,bordered:"",maxSize:[400,300],zoom:!0},null,8,["type","data"]))),128)):D("",!0)],2),O("div",{class:Z(s.$style.right)},[A(f(sc),{class:Z(s.$style.date),date:e.message.dtCreated},null,8,["class","date"])],2)],2))}}),sQ="wwY5FBjG",iQ="afsGJ9Ya",oQ="MUU5FVSr",rQ={message:sQ,"message--grouped":"_5i1G4TF8","message--sending":"z7J1j71D",author:iQ,date:oQ,"underlay-in":"z4oGNEl3","modal
127-enter":"i8a2ST-D","modal-enter-slide":"fa1FVMTW"},aQ={$style:rQ},lQ=ot(nQ,[["__cssModules",aQ]]),cQ=3,uQ=J({__name:"MessageListSkeleton",setup(e){return(t,n)=>(_(),T(ye,null,We(cQ,s=>O("div",{key:s,class:Z(t.$style.skeleton)},[A(f(Hi),{size:"36px",class:Z(t.$style.avatar)},null,8,["class"]),A(f(Ut),{width:"20%",class:Z(t.$style.name)},null,8,["class"]),A(f(Ut),{width:"30px",class:Z(t.$style.time)},null,8,["class"]),A(f(Ut),{width:"50%",class:Z(t.$style.message)},null,8,["class"])],2)),64))}}),dQ="ZNrgT1VL",fQ="j8yqNuv4",hQ="QTdhZIS1",pQ="BnLxWlZO",mQ="_54PwK3f-",vQ={skeleton:dQ,"app-loaded":"_7Q-tOfLE","skeleton-loading":"-ByFj-Eq",avatar:fQ,name:hQ,message:pQ,time:mQ,"underlay-in":"-bjhuNGX","modal-enter":"CbI-vn7T","modal-enter-slide":"PoHNa7VA"},gQ={$style:vQ},bQ=ot(uQ,[["__cssModules",gQ]]),yQ=J({__name:"UserCompact",props:{user:{}},setup(e){return(t,n)=>(_(),T("div",{class:Z(t.$style.user)},[A(yd,{id:e.user.id,picture:e.user.pictureData,title:e.user.title,size:18},null,8,["id","picture","title"]),xe(" "+Y(e.user.title),1)],2))}}),wQ="ArEaYRqt",_Q={user:wQ,"underlay-in":"SpWc2yEb","modal-enter":"xndB6tbh","modal-enter-slide":"mmpYBvDo"},kQ={$style:_Q},P_=ot(yQ,[["__cssModules",kQ]]),SQ=J({__name:"SystemMessage",props:{message:{}},setup(e){const t=e,{t:n}=Ne(),s=C(()=>{switch(t.message.type){case Rn.JoinChannel:case Rn.LeaveChannel:case Rn.KickMember:case Rn.CreateChannel:case Rn.AddMembers:case Rn.EditChannel:return t.message.params.user}return null}),i=C(()=>{var r;switch(t.message.type){case Rn.KickMember:return t.message.params.member;case Rn.AddMembers:return((r=t.message.params.members)==null?void 0:r.length)===1?t.message.params.members[0]:null}return null}),o=C(()=>{switch(t.message.type){case Rn.AddMembers:{const r=t.message.params.members;return(r==null?void 0:r.length)===1?n("messenger.systemMessage.addedMember"):n("messenger.systemMessage.addedMembers",{count:(r==null?void 0:r.length)??0})}case Rn.KickMember:return n("messenger.systemMessage.kickedMember");case Rn.EditPicture:return n("messenger.systemMessage.editedPicture");case Rn.LeaveChannel:return n("messenger.systemMessage.leftChannel");case Rn.CreateChannel:return n("messenger.systemMessage.createdChannel",{title:t.message.params.channel.title,count:t.message.params.members.length});case Rn.EditChannel:return n("messenger.systemMessage.editedChannel");case Rn.JoinChannel:return n("messenger.systemMessage.joinedChannel");default:return""}});return(r,a)=>(_(),T("div",{class:Z(r.$style["system-message"])},[s.value!==null?(_(),L(P_,{key:0,user:s.value},null,8,["user"])):D("",!0),xe(" "+Y(o.value)+" ",1),i.value!==null?(_(),L(P_,{key:1,user:i.value},null,8,["user"])):D("",!0)],2))}}),CQ={"system-message":"APtfEemW","underlay-in":"PmyAVEFE","modal-enter":"_2LJvZ4du","modal-enter-slide":"-ZnFfH-0"},EQ={$style:CQ},cx=ot(SQ,[["__cssModules",EQ]]),ux=Symbol("Chat Id"),xQ=e=>{const{[Oe.Messenger]:t}=vt(),n=ce(e),{user:s}=Ye();function i(r){return r.getTime()/1e3}async function o(r,a){var d,h,p,m;const{alert:l,AlertType:c}=fn(),{tf:u}=Ne();try{const v={text:r,media:a,replyTo:null,replyToId:null,author:{id:((d=s.value)==null?void 0:d.id.toString())??"",title:((h=s.value)==null?void 0:h.name)??"",pictureData:((p=s.value)==null?void 0:p.avatar)??null,lastSeen:i(new Date).toString(),isVerified:((m=s.value)==null?void 0:m.isVerified)??!1,isBanned:!1},dtCreated:i(new Date)};await t.send(n,v)}catch(v){l({type:c.Error,text:u(`messenger.errors.${v.message}`,"shared.unknownError")})}}return{send:o}},TQ=J({__name:"ChatBottom",props:{isDisabled:{type:Boolean},channel:{}},emits:["formResized"],setup(e,{emit:t}){const{user:n}=Ye(),{t:s}=Ne(),i=ut(ux,C(()=>"")),o=e,{send:r}=xQ(i),a=P(""),l=P(),c=C(()=>a.value.trim()===""&&(m==null?void 0:m.value.length)===0),u=P(),d=P(!1),h=C(()=>{var V,$,j,X,U,R,G,H;const y=((V=o.channel)==null?void 0:V.isInexistent)===!0,S=(($=n.value)==null?void 0:$.isPlus)===!0||((j=n.value)==null?void 0:j.isPro)===!0||((X=n.value)==null?void 0:X.isVerified)===!0,E=((U=o.channel)==null?void 0:U.isPro)===!0||((R=o.channel)==null?void 0:R.isVerified)===!0,x=((G=n.value)==null?void 0:G.isPlus)===!0,M=(H=o.channel)==null?void 0:H.isPlus;return(S||E||(y?x:x||M))===!1}),{nodes:p,uploaded:m,openFileDialog:v,remove:g}=Lp({container:l,accept:".png,.jpg,.jpeg,.heic,.webp,.gif,.mp4,.mov,.webm",limit:1,onValidated(){var y;(y=u.value)==null||y.focus()}});
127function b(y){y.shiftKey||(y.preventDefault(),w())}async function w(){if(c.value||d.value)return;d.value=!0;const y=a.value.trim(),S=m==null?void 0:m.value;(m==null?void 0:m.value)!==void 0&&(m.value=[]),a.value="",await r(y,S),d.value=!1}be(i,()=>{requestAnimationFrame(()=>{var y;(y=u.value)==null||y.focus()})},{immediate:!0});const k=t;return(y,S)=>{var E;return _(),T("div",{ref_key:"chatBottom",ref:l,class:Z(y.$style.bottom)},[e.channel===null?(_(),T("div",{key:0,class:Z(y.$style.loading)},[A(f(Yn))],2)):h.value?(_(),T("div",{key:1,class:Z(y.$style.disabledForm)},[O("p",null,Y(f(s)("messenger.bottom.formDisabledBecauseOfPlus")),1),A(f(Qe),{to:"/plus",class:Z(y.$style.link)},{default:K(()=>[xe(Y(f(s)("messenger.bottom.formDisabledBecauseOfPlusLink")),1)]),_:1},8,["class"])],2)):(_(),T("div",{key:2,class:Z(y.$style.form)},[A(f(cC),{ref_key:"textarea",ref:u,modelValue:a.value,"onUpdate:modelValue":S[0]||(S[0]=x=>a.value=x),"icon-right":{name:"image",action:f(v)},"is-single-line":"",disabled:e.isDisabled,onKeydown:vn(b,["enter"]),onResize:S[1]||(S[1]=x=>{k("formResized")})},Is({_:2},[(E=f(p))!=null&&E.length?{name:"bottom",fn:K(()=>[O("div",{class:Z(y.$style.attaches)},[(_(!0),T(ye,null,We(f(p),x=>(_(),L(f(z0),St({ref_for:!0},x,{key:`attachment:${x.key}`,onRemove:M=>{var I;return(I=f(g))==null?void 0:I(x.key)}}),null,16,["onRemove"]))),128))],2)]),key:"0"}:void 0]),1032,["modelValue","icon-right","disabled"]),A(f(qe),{icon:"arrow_up","is-circle":"",disabled:e.isDisabled||c.value||d.value,class:Z(y.$style.submitButton),onClick:w},null,8,["disabled","class"])],2))],2)}}}),AQ="SyqmRS7F",PQ="_8Kay5xnb",RQ="WlD-Yob9",IQ="M98orLxw",MQ="E-7cV--P",$Q="CciYJPtz",LQ={bottom:AQ,form:PQ,attaches:RQ,submitButton:IQ,disabledForm:MQ,link:$Q,"underlay-in":"_32VQL8-8","modal-enter":"XFuRePE7","modal-enter-slide":"_4DZ6v-aX"},OQ={$style:LQ},BQ=ot(TQ,[["__cssModules",OQ]]);function zm(e){return e.type!==Rn.Default}const DQ=J({__name:"Chat",props:{chatId:{}},setup(e){const t=W0(),{t:n}=Ne(),{setPageProperties:s}=hi(),i=e,o=C(()=>i.chatId);gt(ux,o);const{channel:r,messages:a,loadNext:l,isLoaded:c,isLoading:u,firstMessage:d,hasMore:h,description:p,resetUnreadCount:m}=jX(o),v=P(null),g=P(),b=C(()=>{var E;return(E=v.value)==null?void 0:E.closest(`[${Kl}]`)});async function w(){var M;const E=(M=d.value)==null?void 0:M.id;if(E===void 0)return;const x=document.querySelector(`[data-id="message-${E}"]`);await l(),x!=null&&x.scrollIntoView()}function k(){Ba(g,([{isIntersecting:E}])=>{E&&w()},{rootMargin:"0px 0px 0px 0px"})}function y(E){if(E===0)return!1;const x=a.value[E],M=a.value[E-1];return!q(x)||!q(M)||zm(x)||zm(M)?!1:x.author.id===M.author.id}function S(){var E;(E=b.value)==null||E.scrollTo({top:b.value.scrollHeight})}return be(()=>a.value.length,E=>{u.value||(requestAnimationFrame(()=>{S()}),E!==0&&m())},{immediate:!0}),be(r,(E,x)=>{q(x)&&q(E)&&x.id===E.id||(q(r.value)&&(t.title.value=r.value.title,t.picture.value={id:r.value.id,title:r.value.title,data:r.value.pictureData},t.centerLink.value=gn({id:Number(r.value.id)}),t.badgeId.value=r.value.badgeId,t.subsiteId.value=r.value.id!==""?Number(r.value.id):null,s({title:`${r.value.title} â ${n("messenger.messengerTitle")}`})),q(p.value)&&(t.subline.value=p.value))}),je(()=>{k()}),(E,x)=>(_(),T("div",{class:Z(E.$style.chat)},[O("div",{ref_key:"chatBody",ref:v,class:Z(E.$style.body)},[Ie(O("div",{ref_key:"scrollHorizon",ref:g},[Ie(A(f(Yn),{class:Z(E.$style.loader)},null,8,["class"]),[[As,f(u)]])],512),[[As,f(c)&&f(h)]]),f(u)&&f(a).length===0?(_(),L(bQ,{key:0})):(_(!0),T(ye,{key:1},We(f(a),(M,I)=>(_(),T(ye,{key:M.id},[f(zm)(M)?(_(),L(cx,{key:1,message:M,"data-id":`message-${M.id}`,class:Z(E.$style["system-message"])},null,8,["message","data-id","class"])):(_(),L(lQ,{key:0,message:M,"is-grouped":y(I),"data-id":`message-${M.id}`},null,8,["message","is-grouped","data-id"]))],64))),128))],2),A(BQ,{"is-disabled":!f(q)(f(r)),channel:f(r),onFormResized:S},null,8,["is-disabled","channel"])],2))}}),NQ="_9WyM6Edk",FQ="ZpJXSokP",UQ="aYeVQv38",HQ={chat:NQ,body:FQ,loader:UQ,"system-message":"GST9Jly3","underlay-in":"PDJu
127XZ88","modal-enter":"lc1-PEev","modal-enter-slide":"vxsmWhJI"},VQ={$style:HQ},zQ=ot(DQ,[["__cssModules",VQ]]),WQ={key:0},jQ=J({__name:"ChannelListItem",props:{channel:{}},setup(e){const{t}=Ne(),n=e,s=C(()=>`/m/${n.channel.id}`);return(i,o)=>(_(),L(f(Qe),{class:Z(i.$style.item),to:s.value},{default:K(()=>[O("div",{class:Z(i.$style.photo)},[A(yd,{id:e.channel.id,picture:e.channel.pictureData,title:e.channel.title,size:46},null,8,["id","picture","title"])],2),O("div",{class:Z(i.$style.body)},[O("div",{class:Z(i.$style.title)},[xe(Y(e.channel.title)+" ",1),e.channel.id?(_(),L(f(Ua),{key:0,"owner-id":parseInt(e.channel.id),"badge-id":e.channel.badgeId,collectible:e.channel.favoriteCollectible},null,8,["owner-id","badge-id","collectible"])):D("",!0),e.channel.lastMessage?(_(),L(f(sc),{key:1,class:Z(i.$style.date),date:e.channel.lastMessage.dtCreated},null,8,["class","date"])):D("",!0)],2),O("div",{class:Z(i.$style.text)},[O("div",{class:Z(i.$style.text__left)},[f(q)(e.channel.lastMessage)?e.channel.lastMessage.type!==f(Rn).Default?(_(),L(cx,{key:1,message:e.channel.lastMessage},null,8,["message"])):e.channel.lastMessage.text?(_(),T(ye,{key:2},[xe(Y(e.channel.lastMessage.text),1)],64)):e.channel.lastMessage.media?(_(!0),T(ye,{key:3},We(e.channel.lastMessage.media,r=>(_(),L(f(jo),{key:r.data.uuid,type:r.type,data:r.data,size:26,bordered:""},null,8,["type","data"]))),128)):D("",!0):(_(),T("span",WQ,Y(f(t)("messenger.noMessages")),1))],2),Ie(O("span",{class:Z(i.$style.notify)},Y(e.channel.unreadCount),3),[[As,e.channel.unreadCount>
1270]])],2)],2)]),_:1},8,["class","to"]))}}),GQ="Y34HLSgK",qQ="RdD-n8oQ",KQ="fsm4jQQ7",YQ="CLoLBBPN",XQ="YPoAuj94",QQ="gBg7y0MB",JQ="_6e76rjhz",ZQ="jQu1YNMy",eJ="xGFvaP7d",tJ={item:GQ,body:qQ,photo:KQ,date:YQ,title:XQ,badge:QQ,text:JQ,text__left:ZQ,notify:eJ,"notify-in":"HXvrQopU","underlay-in":"imW668oQ","modal-enter":"K-dMxK0L","modal-enter-slide":"-kJyddpK"},nJ={$style:tJ},sJ=ot(jQ,[["__cssModules",nJ]]),iJ=5,oJ=J({__name:"ChannelListSkeleton",setup(e){return(t,n)=>(_(),T(ye,null,We(iJ,s=>O("div",{key:s,class:"skeleton"},[A(f(Hi),{size:"46px",class:"avatar"}),A(f(Ut),{width:"20%",class:"name"}),A(f(Ut),{width:"30px",class:"time"}),A(f(Ut),{width:"50%",class:"message"})])),64))}}),rJ=ot(oJ,[["__scopeId","data-v-3657650a"]]),aJ={class:"channels"},lJ=J({__name:"ChannelList",setup(e){const{title:t,reset:n}=W0(),{channels:s,isLoaded:i,loadMore:o,hasMore:r,loadChannelList:a}=lx(),{t:l}=Ne(),{setPageProperties:c}=hi(),u=C(()=>Array.from(s.value.values()).sort((p,m)=>Pa(p.lastMessage)&&Pa(m.lastMessage)?m.lastMessage.dtCreated-p.lastMessage.dtCreated:0));n(),t.value=l("messenger.messengerTitle"),c({title:l("messenger.messengerTitle")});const d=P();function h(){Ba(d,([{isIntersecting:p}])=>{p&&o()},{rootMargin:"0px 0px 0px 0px"})}return je(async()=>{await a(),h()}),(p,m)=>(_(),T("div",aJ,[f(s).size!==0?(_(),T(ye,{key:0},[(_(!0),T(ye,null,We(u.value,v=>(_(),L(sJ,{key:v.id,channel:v},null,8,["channel"]))),128)),Ie(O("div",{ref_key:"scrollHorizon",ref:d,class:"scroll-horizon"},[A(f(Yn),{class:Z(p.$style.loader)},null,8,["class"])],512),[[As,f(i)&&f(r)]])],64)):f(i)?(_(),T("div",{key:1,class:Z(p.$style.emptyStub)},Y(f(l)("common.emptyStubText")),3)):(_(),L(rJ,{key:2}))]))}}),cJ="tXfUe-R7",uJ="DhIhSeng",dJ={emptyStub:cJ,loader:uJ,"underlay-in":"_0SSAIj4v","modal-enter":"NIorWPRG","modal-enter-slide":"zXEJoSRm"},fJ={$style:dJ},hJ=ot(lJ,[["__cssModules",fJ]]),pJ=[{path:"/m",name:"Messenger",component:WX,meta:{authRequired:!0,refererId:$e.Messenger},children:[{path:"",name:"MessengerHome",component:hJ},{path:":chatId",name:"MessengerChat",component:zQ,props:e=>({chatId:e.params.chatId})}]}];function mJ(e){const t=P(null),{[Oe.Finance]:n}=vt();function s(){t.value=null}async function i(){s();const o=await n.loadCurrencyGraph(ce(e.currency),ce(e.period));t.value=o}return be([e.period,e.currency],()=>{i()}),je(()=>{i()}),{graphData:t}}const vJ={class:"finance-header"},gJ={class:"finance-header__title"},bJ={class:"finance-header__rate"},yJ={key:1,class:"finance-header__rate-loader"},wJ={class:"finance-header__controls"},_J={key:1,class:"finance-header__graph-placeholder"},kJ=J({__name:"CurrencyHeader",async setup(e){let t,n;const s=dn(),{t:i,p:o}=Ne(),{t:r}=ft(),{rates:a,currency:l,dynamic:c,rateValue:u}=([t,n]=on(()=>bd()),t=await t,n(),t),d=C(()=>{const m="currency"in s.params?s.params.currency:void 0;if(m===void 0)return;const v=o(`finance.currency.${m}.nominative`,1,!1);if(a.value===null)return;
127const g=a.value[m.toUpperCase()],b=o(`finance.currency.${g.target.toLowerCase()}.dative`,1,!1);return i("finance.rateTitle",{from:v,to:b})}),h=P("week"),{graphData:p}=mJ({currency:l,period:h});return(m,v)=>(_(),T("div",vJ,[O("h1",gJ,Y(d.value),1),O("div",bJ,[f(u)?(_(),T(ye,{key:0},[xe(Y(f(u)),1)],64)):(_(),T("div",yJ,[A(f(Yn))])),f(c)!==0?(_(),T("span",{key:2,class:Z({"finance-header__rate-change":!0,"finance-header__rate-change--positive":f(c)>0,"finance-header__rate-change--negative":f(c)<0})},Y(f(c)>0?"+":"")+Y(f(sp)(f(c),2))+"% ",3)):D("",!0)]),O("div",wJ,[A(f(qe),{type:"minimal",size:"s",class:Z(h.value==="week"?"finance-header__control-current":""),onClick:v[0]||(v[0]=g=>h.value="week")},{default:K(()=>[xe(Y(f(r)("common.dates.oneWeek")),1)]),_:1},8,["class"]),A(f(qe),{type:"minimal",size:"s",class:Z(h.value==="month"?"finance-header__control-current":""),onClick:v[1]||(v[1]=g=>h.value="month")},{default:K(()=>[xe(Y(f(r)("common.dates.oneMonth")),1)]),_:1},8,["class"]),A(f(qe),{type:"minimal",size:"s",class:Z(h.value==="year"?"finance-header__control-current":""),onClick:v[2]||(v[2]=g=>h.value="year")},{default:K(()=>[xe(Y(f(r)("common.dates.oneYear")),1)]),_:1},8,["class"])]),f(p)?(_(),L(B0,{key:0,data:f(p)},null,8,["data"])):(_(),T("div",_J,[A(f(Yn))]))]))}}),SJ=fi(async()=>{const{rates:e}=await bd();async function t(n,s,i){return await Do(e).not.toBeNull(),await new Promise(o=>{const r={...e.value,[ls.RUB]:{rate:1,target:ls.RUB,conversionRate:1}},a=r[s].conversionRate,l=r[i].conversionRate;
127let c=0;s===ls.RUB?c=n/l:i===ls.RUB?c=n*a:c=n*a/l,c=sp(c,3),o(c)})}return{convert:t}},async()=>({convert:async()=>0})),CJ={class:"finance-converter"},EJ={class:"finance-converter__title"},xJ={class:"finance-converter__inputs"},TJ=J({__name:"Converter",props:{initialCurrency:{}},async setup(e){let t,n;const{t:s}=Ne(),i=e,o=P("100"),r=P("0"),a=P(i.initialCurrency),l=P(ls.RUB),c=P(void 0),{rates:u}=([t,n]=on(()=>bd()),t=await t,n(),t);Gl(()=>{let g=ls.RUB;if(u.value!==null){const b=u.value[i.initialCurrency];b!==void 0&&(g=b.target)}l.value=g,a.value=i.initialCurrency});async function d(){const g=a.value;a.value=l.value,l.value=g,await v()}const h=C(()=>Object.values(ls).filter(b=>b!==l.value).map(b=>({value:b,label:b,selected:b===a.value,action:()=>{a.value=b}}))),p=C(()=>Object.values(ls).filter(b=>b!==a.value).map(b=>({value:b,label:b,selected:b===l.value,action:()=>{l.value=b}}))),{convert:m}=([t,n]=on(()=>SJ()),t=await t,n(),t);be(o,async()=>{c.value==="from"&&await v()}),be(r,async()=>{if(c.value!=="to")return;const g=await m(Number(r.value),l.value,a.value);o.value=g.toString()}),be([a,l],async()=>{await v()});async function v(){const g=await m(Number(o.value),a.value,l.value);r.value=g.toString()}return je(async()=>{await v()}),(g,b)=>(_(),T("div",CJ,[O("h2",EJ,Y(f(s)("finance.converter")),1),O("div",xJ,[A(f(Uw),{modelValue:o.value,"onUpdate:modelValue":b[0]||(b[0]=w=>o.value=w),size:f(qi).Small,onFocus:b[1]||(b[1]=w=>c.value="from"),onBlur:b[2]||(b[2]=w=>c.value=void 0)},{right:K(()=>[A(f(Qi),{options:h.value,selected:a.value},null,8,["options","selected"])]),_:1},8,["modelValue","size"]),O("div",{onClick:d,class:"finance-converter__flip-button",type:"secondary"},[A(f(Re),{name:"rating_outline"})]),A(f(Uw),{modelValue:r.value,"onUpdate:modelValue":b[3]||(b[3]=w=>r.value=w),size:f(qi).Small,onFocus:b[4]||(b[4]=w=>c.value="to"),onBlur:b[5]||(b[5]=w=>c.value=void 0)},{right:K(()=>[A(f(Qi),{options:p.value,selected:l.value},null,8,["options","selected"])]),_:1},8,["modelValue","size"])])]))}}),AJ={class:"finance-feed"},PJ=J({__name:"FinanceFeed",async setup(e){let t,n;const{t:s}=Ne(),i=dn(),o=$s({fromFeed:Te.Finance}),{items:r,loadMore:a,isLoading:l}=([t,n]=on(()=>Ti({type:Te.Finance,isShowSubscribeButton:!0,options:()=>({currency:"currency"in i.params?i.params.currency.toUpperCase():ls.USD})})),t=await t,n(),t);return(c,u)=>(_(),T("div",AJ,[A(f(xi),{ref:"contentList",title:f(s)("finance.feedTitle"),entries:f(r),"is-loading":f(l),actions:f(o),name:f(Te).Finance,onEndReached:f(a)},null,8,["title","entries","is-loading","actions","name","onEndReached"])]))}}),RJ={class:"finance-page"},IJ={class:"finance-page__header"},MJ={key:0,class:"currency-tab"},$J={class:"currency-tab__title"},LJ={class:"currency-tab__rate"},OJ=J({__name:"Finance",async setup(e){let t,n;const{rates:s,currency:i}=([t,n]=on(()=>bd()),t=await t,n(),t),o=C(()=>["USD","EUR","BTC","TON"].map(a=>{const l=`/${a.toLowerCase()}`;if(s.value===null)return{label:"",to:l};const c=s.value[a];return{meta:{name:a,rate:c},to:l}}));return(r,a)=>(_(),T("div",RJ,[O("div",IJ,[A(f(Dr),null,{default:K(()=>[A(f(e0),{ref:"tabsRef",tabs:o.value,"base-url":"/quote"},{tab:K(({meta:l})=>[l?(_(),T("div",MJ,[O("span",$J,[xe(Y(l.name),1),l.rate.target!==f(ls).RUB?(_(),T(ye,{key:0},[xe("/"+Y(l.rate.target),1)],64)):D("",!0)]),O("span",LJ,Y(f(Zt)(l.rate.rate,{separator:" ",short:{maximumFractionDigits:2}})),1),l.rate.dynamic?(_(),L(f(Re),{key:0,class:Z(["currency-tab__icon",`currency-tab__icon--${l.rate.dynamic>0?"positive":"negative"}`]),name:l.rate.dynamic>0?"triangle_up":"triangle_down",width:16,height:16},null,8,["class","name"])):D("",!0)])):D("",!0)]),_:1},8,["tabs"])]),_:1}),A(kJ)]),A(f(Tt),null,{default:K(()=>[A(TJ,{"initial-currency":f(i)},null,8,["initial-currency"])]),_:1}),A(PJ)]))}}),dx=[];dx.push({path:"/quote/:currency(usd|eur|btc|ton)",component:OJ,name:"Finance",meta:{refererId:e=>{switch(e.params.currency){case"usd":return $e.QuoteUsd;case"eur":return $e.QuoteEur;case"btc":return $e.QuoteBtc;case"ton":return $e.QuoteTon;default:return $e.Unknown}}}});const BJ=[...DY,...sx,...OY,...nx,...kX,...pJ,...dx],DJ={scrollBehavior:SX},NJ=[["beforeEach",Yq],["beforeResolve",lK],["afterEach",NS]];function FJ(e,t=[]){const n=s=>{const[i,o]=s;e[i](o)};[...NJ,...t].forEach(n)}const UJ={home:{title:{t:0,b:{t:2,i:[{t:3}
127],s:"Ðагазин ÑиÑÑовÑÑ
ÑоваÑов"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐополнÑйÑе Steam, Playstation, аккаÑнÑÑ Ð² игÑаÑ
и покÑпайÑе подпиÑки бÑÑÑÑо и безопаÑно на DTF."}},breadcrumbTitle:{t:0,b:{t:2,i:[{t:3}],s:"ЦиÑÑовÑе ÑоваÑÑ"}},searchPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"ТоваÑ"}}},fields:{errors:{email:{t:0,b:{t:2,i:[{t:3}],s:"ÐекоÑÑекÑнÑй email"}},default:{t:0,b:{t:2,i:[{t:3}],s:"ÐекоÑÑекÑнÑй ÑоÑÐ¼Ð°Ñ Ð¿Ð¾Ð»Ñ"}},required:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑо поле обÑзаÑелÑно Ð´Ð»Ñ Ð·Ð°Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ"}}}},payment:{submit:{t:0,b:{t:2,i:[{t:3,v:"ÐплаÑиÑÑ "},{t:4,k:"amount"}]}},agreement:{t:0,b:{t:2,i:[{t:3,v:'ÐÐ°Ð¶Ð¸Ð¼Ð°Ñ Â«ÐплаÑиÑÑ», Ð²Ñ ÑоглаÑаеÑеÑÑ Ñ ÑÑловиÑми <a href="'},{t:4,k:"url"},{t:3,v:'" target="_blank">оÑеÑÑÑ</a>.'}]}},success:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐокÑпка завеÑÑена"}},text:{t:0,b:{t:2,i:[{t:3}],s:"ÐплаÑа пÑоÑла ÑÑпеÑно. Ðожно веÑнÑÑÑÑÑ Ð² магазин и вÑбÑаÑÑ Ð´ÑÑгие ÑоваÑÑ."}}},error:{title:{t:0,b:{t:2,i:[{t:3}],s:"Ðозникла оÑибка"}},text:{t:0,b:{t:2,i:[{t:3}],s:"Ðе полÑÑилоÑÑ Ð·Ð°Ð²ÐµÑÑиÑÑ Ð¾Ð¿Ð»Ð°ÑÑ. ÐÑовеÑÑÑе даннÑе каÑÑÑ Ð¸ попÑобÑйÑе еÑе Ñаз."}}},continue:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑодолжиÑÑ"}}},steam:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐополниÑÑ Steam"}},name:{t:0,b:{t:2,i:[{t:3}],s:"Ðогин"}},amount:{t:0,b:{t:2,i:[{t:3}],s:"СÑмма"}},count:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"ÑÑпеÑнÑÑ
 пополнений"},{t:2,i:[{t:3}],s:"ÑÑпеÑное пополнение"},{t:2,i:[{t:3}],s:"ÑÑпеÑнÑÑ
 пополнениÑ"},{t:2,i:[{t:3}],s:"ÑÑпеÑнÑÑ
 пополнений"}]}},errors:{name:{t:0,b:{t:2,i:[{t:3}],s:"ÐккаÑÐ½Ñ Ð½Ðµ найден"}},amount:{t:0,b:{t:2,i:[{t:3,v:"Ðе менее "},{t:4,k:"min"},{t:3,v:" и не более "},{t:4,k:"max"}]}}},successes:{amount:{t:0,b:{t:2,i:[{t:3,v:"ÐаÑиÑлиÑÑÑ "},{t:4,k:"amount"}]}}},help:{caption:{t:0,b:{t:2,i:[{t:3}],s:"Ðде иÑкаÑÑ?"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Ðак ÑзнаÑÑ Ñвой логин Steam?"}},text:{t:0,b:{t:2,i:[{t:3}],s:'<p>Ðогин иÑполÑзÑеÑÑÑ Ð´Ð»Ñ Ð²Ñ
ода в Ñвой аккаÑÐ½Ñ Steam. Ðго можно поÑмоÑÑеÑÑ Ð² <a href="https://store.steampowered.com/account/" target="_blank">наÑÑÑойкаÑ
</a> ÑÑеÑной запиÑи или пÑи нажаÑии на аваÑаÑÐºÑ Ð² пÑнкÑе «Ðб аккаÑнÑе».</p><p>ÐÑли ÑказаÑÑ Ð»Ð¾Ð³Ð¸Ð½ Ñ Ð¾Ñибкой, ÑÑедÑÑва бÑдÑÑ Ð·Ð°ÑиÑÐ»ÐµÐ½Ñ Ð´ÑÑÐ³Ð¾Ð¼Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ.</p>'}}},payment:{success:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ°Ð»Ð°Ð½Ñ Ð¿Ð¾Ð¿Ð¾Ð»Ð½ÐµÐ½!"}},text:{t:0,b:{t:2,i:[{t:3}],s:"ÐплаÑа пÑоÑла ÑÑпеÑно. ÐенÑги поÑÑÑпÑÑ Ð½Ð° аккаÑÐ½Ñ Steam."}},promocodeText:{t:0,b:{t:2,i:[{t:3}],s:"Ðам доÑÑÑпен пÑомокод на ÑледÑÑÑее пополнение Steam без комиÑÑии."}}}}},esim:{searchPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Ðазвание ÑÑÑанÑ"}},showMore:{t:0,b:{t:1,c:[{t:2,i:[{t:3,v:"ÐоказаÑÑ ÐµÑе "},{t:4,k:"count"},{t:3,v:" ÑÑÑан"}]},{t:2,i:[{t:3,v:"ÐоказаÑÑ ÐµÑе "},{t:4,k:"count"},{t:3,v:" ÑÑÑанÑ"}]},{t:2,i:[{t:3,v:"ÐоказаÑÑ ÐµÑе "},{t:4,k:"count"},{t:3,v:" ÑÑÑанÑ"}]},{t:2,i:[{t:3,v:"ÐоказаÑÑ ÐµÑе "},{t:4,k:"count"},{t:3,v:" ÑÑÑан"}]}]}},breadcrumbTitle:{t:0,b:{t:2,i:[{t:3}],s:"eSIM"}},balance:{details:{t:0,b:{t:2,i:[{t:3,v:"ÐоÑÑÑпно "},{t:4,k:"balance"},{t:3,v:" из "},{t:4,k:"total"},{t:3,v:" Ðб до "},{t:4,k:"date"},{t:3,v:"."}]}},check:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑовеÑка баланÑа eSIM"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¾Ð¼ÐµÑ eSIM можно найÑи в пиÑÑме Ñ инÑÑÑÑкÑией."}},hint:{t:0,b:{t:2,i:[{t:3}],s:"СоÑÑÐ¾Ð¸Ñ Ð¸Ð· 19â20 ÑиÑÑ."}},error:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¾Ð¼ÐµÑ Ð½Ðµ найден."}}},ready:{title:{t:0,b:{t:2,i:[{t:3}],s:"eSIM не акÑивиÑована"}},hint:{t:0,b:{t:2,i:[{t:3}],s:"eSIM заÑабоÑÐ°ÐµÑ Ð°Ð²ÑомаÑиÑеÑки поÑле пÑибÑÑÐ¸Ñ Ð² меÑÑо наÐ
127·Ð½Ð°ÑÐµÐ½Ð¸Ñ Ð¸ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð½Ð°Â ÑÑÑÑойÑÑво."}}},using:{title:{t:0,b:{t:2,i:[{t:3}],s:"eSIM акÑивиÑована"}}},finished:{title:{t:0,b:{t:2,i:[{t:3}],s:"ТÑаÑик eSIM законÑилÑÑ"}},hint:{t:0,b:{t:2,i:[{t:3}],s:"Ðо пÑибÑÑÐ¸Ñ Ð² меÑÑо назнаÑÐµÐ½Ð¸Ñ Ð±Ð°Ð»Ð°Ð½Ñ Ð¸Â ÑÑаÑÑÑ Ð¼Ð¾Ð³ÑÑ Ð¾ÑобÑажаÑÑÑÑ Ð½ÐµÑоÑно."}}},expired:{title:{t:0,b:{t:2,i:[{t:3}],s:"СÑок дейÑÑÐ²Ð¸Ñ eSIM иÑÑек"}}},buttons:{check:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑовеÑиÑÑ"}},again:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑовеÑиÑÑ Ð´ÑÑгÑÑ"}},checkBalance:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑовеÑиÑÑ Ð±Ð°Ð»Ð°Ð½Ñ"}}}}},button:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑкеÑ"}},descriptions:{games:{t:0,b:{t:2,i:[{t:3}],s:"ÐополниÑÑ Steam%ÐополниÑÑ PlayStation%ЦиÑÑовÑе ÑоваÑÑ%ÐгÑовÑе валÑÑÑ"}},business:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑбежнÑе ÑеÑвиÑÑ%ÐодпиÑка ChatGPT%eSIM Ð´Ð»Ñ Ð¿Ð¾ÐµÐ·Ð´Ð¾Ðº%ÐплаÑа подпиÑок"}}}},popular:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑнÑе ÑоваÑÑ"}},showAll:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑмоÑÑеÑÑ Ð²Ñе"}}},badges:{profit:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑгодно"}},hit:{t:0,b:{t:2,i:[{t:3}],s:"Ð¥Ð¸Ñ Ð¿Ñодаж"}},low:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¸Ð·ÐºÐ°Ñ Ñена"}}},replenish:{t:0,b:{t:2,i:[{t:3,v:"ÐополниÑÑ "},{t:4,k:"service"}]}},promocode:{action:{t:0,b:{t:2,i:[{t:3}],s:"У Ð¼ÐµÐ½Ñ ÐµÑÑÑ Ð¿Ñомокод"}},title:{t:0,b:{t:2,i:[{t:3}],s:"ÐкÑиваÑÐ¸Ñ Ð¿Ñомокода"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"Ðод"}},errors:{INVALID_PROMOCODE:{t:0,b:{t:2,i:[{t:3}],s:"ÐевеÑнÑй пÑомокод"}},PROMOCODE_NOT_FOUND:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑомокод не найден"}},PROMOCODE_REQUIRES_STEAM_LOGIN:{t:0,b:{t:2,i:[{t:3}],s:"Ðе Ñказан логин Steam"}},PROMOCODE_REQUIRES_USER_ID:{t:0,b:{t:2,i:[{t:3}],s:"ÐеобÑ
одима авÑоÑизаÑиÑ"}}},success:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑомокод акÑивиÑован"}}}}},HJ=Object.freeze(Object.defineProperty({__proto__:null,ru:UJ},Symbol.toStringTag,{value:"Module"})),VJ=[{path:"/market",redirect:"/store"},{path:"/store",component:Rt(async()=>await Ce(()=>import("./Marketplace-DhFFcPeE.js"),__vite__mapDeps([129,130,131,132,133,134,135,136]))),name:"Marketplace",meta:{refererId:$e.Marketplace}},{path:"/store/:category?/:productId",name:"MarketplaceProduct",component:Rt(async()=>await Ce(()=>import("./Product-CJAyLBYw.js"),__vite__mapDeps([137,138,130,133,134,135,139,140,141]))),props:e=>({productId:e.params.productId}),meta:{refererId:$e.Marketplace}},{path:"/store/esim",component:Rt(async()=>await Ce(()=>import("./Esim-B3p8CxNK.js"),__vite__mapDeps([142,138,130,131,132,139,140,143]))),name:"MarketplaceEsim",meta:{refererId:$e.Marketplace}}],zJ=["src"],WJ=J({__name:"Counter",props:{count:{},label:{}},setup(e){const t=["7975121b-0bee-5fbf-ac74-53501de1a6cf","fff19f4f-ffda-529a-8eda-ee7877dba87b","bea06d5b-e957-505f-bfa6-ba7733ff78dd","71502990-e843-5346-81a3-a91bc126afbc","ab3551ad-08cf-52b7-9459-2b105f7a036c","4fc0b19d-bc83-5c25-b6ca-bb0295739dc3","2dc6e60f-1085-541b-8ce1-53313e0a9ff5","f4731fec-b587-58ee-96b3-2845f72ba447"],n=cd({uuid:t[Math.floor(Math.random()*t.length)],width:18});return(s,i)=>(_(),L(qn,{"enter-active-class":s.$style["counter__enter-active"],"leave-active-class":s.$style["counter__leave-active"],"enter-from-class":s.$style["counter__enter-from"],"leave-to-class":s.$style["counter__leave-to"],appear:""},{default:K(()=>[e.count>0?(_(),T("div",{key:0,class:Z(s.$style.counter)},[O("img",{src:f(n),class:Z(s.$style.counter__icon)},null,10,zJ),A(f(Xb),{value:e.count},null,8,["value"]),O("span",null,Y(e.label),1)],2)):D("",!0)]),_:1},8,["enter-active-class","leave-active-class","enter-from-class","leave-to-class"]))}}),jJ="fNHkK5W-",GJ="ymFDTbHY",qJ={counter:jJ,counter__icon:GJ,"counter__enter-active":"_9NEqifdS","counter__leave-active":"V-14EdRG","counter__enter-from":"_1D9KS1J7","counter__leave-to":"k-abHWJ5","underlay-in":"GD0MLqwt","modal
127-enter":"zMXcGZZk","modal-enter-slide":"O07bhmsA"},KJ={$style:qJ},YJ=ot(WJ,[["__cssModules",KJ]]),Op=()=>ft();async function XJ(){switch("business"){case"games":return(await Ce(async()=>{const{default:t}=await import("./games-sf9KKmDL.js");return{default:t}},[])).default;case"business":return(await Ce(async()=>{const{default:t}=await import("./business-CAt9Kl3f.js");return{default:t}},[])).default;default:return(await Ce(async()=>{const{default:t}=await import("./business-CAt9Kl3f.js");return{default:t}},[])).default}}var ks,ya,Vc;class QJ extends Ks{constructor(n,s,i,o){super();Fe(this,ya);Fe(this,ks,"marketplace");this.transport=n,this.realtimeTransport=s,this.hydrationStore=i,this.createStore=o}async getProducts(n){if(n.length===0)return[];const s=async()=>{const{categories:o}=await this.transport.get(`${fe(this,ks)}/products`,{categories:n.join(",")},{ssrReady:!0,auth:"probe"}),r=await this.getCategories(),a=new Map(r.map(l=>[l.id,l]));return n.filter(l=>o[l]).map(l=>{const c=a.get(l);return{id:l,title:(c==null?void 0:c.title)??l,products:o[l].products}})},i=`marketplace-products@${n.join(",")}`;return await this.hydrationStore.hydrate(i,s)}async getProduct(n){const s=async()=>await this.transport.get(`${fe(this,ks)}/products/${n}`,void 0,{ssrReady:!0,apiVersion:"v2.2",auth:"probe"});return await this.hydrationStore.hydrate(`marketplace-product@${n}`,s)}async calculatePrice(n,s){const{price:i}=await this.transport.post(`${fe(this,ks)}/products/${n}/calculate`,{fields:JSON.stringify(s)},{auth:"probe"});return i}async checkout(n,s){return await this.transport.post(`${fe(this,ks)}/products/${n}/checkout`,{fields:JSON.stringify(s)},{auth:"probe"})}async verifyAccount(n,s){return await this.transport.post(`${fe(this,ks)}/topup/${n}/verify`,{account:s},{auth:"probe"})}async calculateTopUp(n,s,i,o){return await this.transport.post(`${fe(this,ks)}/topup/${n}/calculate`,{amount:s,currency:i,...q(o)?{promocode:o}:{}},{auth:"probe"})}async checkoutTopUp(n,s,i,o,r,a,l){return await this.transport.post(`${fe(this,ks)}/topup/${n}/checkout`,{account:s,amount:i,netAmount:o,currency:r,email:a,...q(l)?{promocode:l}:{}},{auth:"probe"})}getPaymentCounter(n,s){return this.store.getCounter(n,s)}async updatePaymentCounter(n,s){const{count:i}=await this.transport.get(`${fe(this,ks)}/counters`,{type:n,id:s},{auth:"probe"});this.store.setCounter(n,s,i)}
127enableRealtimeCounterUpdates(){if(this.realtimeTransport===null)return;this.realtimeTransport.subscribe("marketplace")("payment_confirmed",s=>{this.store.incrementCounter(s.counterType,s.id)})}disableRealtimeCounterUpdates(){var n;(n=this.realtimeTransport)==null||n.unsubscribe("marketplace")}async getCategories(){return(await Gt(this,ya,Vc).call(this)).categories}async getHomeConfig(){return(await Gt(this,ya,Vc).call(this)).home}async getEsimConfig(){const n=await Gt(this,ya,Vc).call(this);if(!q(n.esim))throw new Error("Esim page config not found");return n.esim}async getSteamConfig(){return(await Gt(this,ya,Vc).call(this)).steam}async getEsimBalance(n){return await this.transport.get(`${fe(this,ks)}/esim/balance`,{iccid:n},{auth:"probe"})}async checkSteamPromocode(n,s){return await this.transport.post(`${fe(this,ks)}/topup/steam/promocode/check`,{promocode:n,steamLogin:s},{auth:"probe"})}async getTopUpOrder(n){return await this.transport.get(`${fe(this,ks)}/topup/orders/${n}`,void 0,{auth:"probe"})}}ks=new WeakMap,ya=new WeakSet,Vc=async function(){return await XJ()};class JJ{constructor(t){this.repository=t}async getProducts(t){return await this.repository.getProducts(t)}async getProduct(t){return await this.repository.getProduct(t)}async calculatePrice(t,n){return await this.repository.calculatePrice(t,n)}async checkout(t,n){return await this.repository.checkout(t,n)}async verifyAccount(t,n){return await this.repository.verifyAccount(t,n)}async calculateTopUp(t,n,s,i){return await this.repository.calculateTopUp(t,n,s,i)}async checkoutTopUp(t,n,s,i,o,r,a){return await this.repository.checkoutTopUp(t,n,s,i,o,r,a)}getPaymentCounter(t,n){return this.repository.getPaymentCounter(t,n)}async updatePaymentCounter(t,n){return await this.repository.updatePaymentCounter(t,n)}enableRealtimeCounterUpdates(){this.repository.enableRealtimeCounterUpdates()}disableRealtimeCounterUpdates(){this.repository.disableRealtimeCounterUpdates()}async getCategories(){return await this.repository.getCategories()}async getHomeConfig(){return await this.repository.getHomeConfig()}async getEsimConfig(){try{return await this.repository.getEsimConfig()}catch{throw new ec}}async getSteamConfig(){return await this.repository.getSteamConfig()}async getEsimBalance(t){return await this.repository.getEsimBalance(t)}async checkSteamPromocode(t,n){return await this.repository.checkSteamPromocode(t,n)}async getTopUpOrder(t){return await this.repository.getTopUpOrder(t)}}function Wm(e,t){return`${e}:${t}`}function ZJ(){const e=bt({});return{getCounter(t,n){const s=Wm(t,n);return e[s]??0},setCounter(t,n,s){const i=Wm(t,n);e[i]=s},incrementCounter(t,n){const s=Wm(t,n);e[s]=(e[s]??0)+1}}}function fx(){const e=pt();return e.isRegistered("MarketplaceService")||e.register("MarketplaceService",()=>
127{const{transport:t,realtimeTransport:n,hydrationStore:s}=e.resolve("ModuleInitOptions"),i=new QJ(t,n,s,ZJ);return new JJ(i)}),e.resolve("MarketplaceService")}function eZ(){const e=fx(),t=P(null),n=P(null),s=C(()=>t.value!==null&&n.value!==null);async function i(r,a){try{const l=await e.checkSteamPromocode(r,a);return t.value=r,n.value=l.commission,null}catch(l){return tc(l instanceof Error?l:String(l)),t.value=null,n.value=null,l instanceof Error&&l.message.length>0?l.message:"UNKNOWN"}}function o(){t.value=null,n.value=null}return{appliedPromocode:t,commission:n,isApplied:s,check:i,reset:o}}var hx=(e=>(e.RUB="RUB",e.KZT="KZT",e.USD="USD",e.EUR="EUR",e))(hx||{});async function tZ(){const e=fx(),t=P(),{t:n}=Op(),s=eZ(),i=50,o=15e3,r={RUB:"RU, â½",KZT:"KZ, â¸",USD:"US, $",EUR:"EU, â¬"},a={RUB:"â½",KZT:"â¸",USD:"$",EUR:"â¬"},l=P(""),c=P(1e3),u=C(()=>{var V,$,j,X;return s.commission.value??((X=(j=($=(V=t.value)==null?void 0:V.commissionRules)==null?void 0:$.sort((U,R)=>R.step-U.step))==null?void 0:j.find(U=>c.value>=U.step))==null?void 0:X.percent)??0}),d=C(()=>Math.floor(c.value*(1+u.value/100))),h=P("RUB"),p=C(()=>a[h.value]),m=C(()=>Object.values(hx).map(V=>({label:r[V],value:V,selected:V===h.value,action:()=>{h.value=V}}))),v=C(()=>c.value<=o&&c.value>=i),g=P("idle"),b=P(!1),w=[{value:500,label:yn(500,a[h.value])},{value:1e3,label:yn(1e3,a[h.value])},{value:2e3,label:yn(2e3,a[h.value])},{value:5e3,label:yn(5e3,a[h.value])}];async function k(){if(!q(l.value))return g.value="required",!1;b.value=!0,g.value="idle";try{const{valid:V}=await e.verifyAccount("steam",l.value);return g.value=V?"valid":"invalid",V}catch{return g.value="invalid",!1}finally{b.value=!1}}function y(){g.value="idle"}const S=P(!1),E=C(()=>e.getPaymentCounter("topup","steam")),x=C(()=>({name:g.value==="required"?n("marketplace.fields.errors.required"):g.value==="invalid"?n("marketplace.steam.errors.name"):void 0,amount:v.value?void 0:n("marketplace.steam.errors.amount",{min:yn(i),max:yn(o)})})),M=C(()=>n("marketplace.payment.submit",{amount:v.value?yn(d.value,a[h.value]):void 0}));async function I(){if(v.value){S.value=!0;try{if(!await k())return;const{paymentUrl:$}=await e.checkoutTopUp("steam",l.value,d.value,c.value,h.value,"",s.appliedPromocode.value??void 0);window.open($,"_self")}catch{}finally{S.value=!1}}}async function N(){t.value=await e.getSteamConfig()}return be(l,()=>{y()}),je(()=>{e.updatePaymentCounter("topup","steam"),e.enableRealtimeCounterUpdates()}),ui(()=>{e.disableRealtimeCounterUpdates()}),await eo({onServer:N,onHydration:N,onAfterClientRender:async()=>{q(t.value)||await N()}}),{name:l,netAmount:c,amountPostfix:p,currency:h,currencies:m,paymentCount:E,amountSuggestions:w,errors:x,submitLabel:M,nameValidationStatus:g,isNameChecking:b,isFormSubmitting:S,submit:I,promocode:s}}const nZ=J({__name:"PromocodeModal",props:{check:{type:Function},onSuccess:{type:Function}},setup(e){const t=e,{t:n,tf:s}=Op(),i=P(""),o=P(null),r=P(!1),a=P(!1),l=C(()=>i.value.trim().length===0||r.value),c=C(()=>{if(o.value!==null)return s(`marketplace.promocode.errors.${o.value}`,"marketplace.promocode.errors.INVALID_PROMOCODE")});async function u(){l.value||(r.value=!0,o.value=null,o.value=await t.check(i.value.trim().toUpperCase()),r.value=!1,o.value===null&&(a.value=!0))}function d(){i.value="",o.value=null}return(h,p)=>(_(),T("div",{class:Z(h.$style.promocode)},[a.value?(_(),T("div",{key:0,class:Z([h.$style.promocode__screen,h.$style.promocode__screenSuccess])},[A(f(Re),{name:"success",width:72,height:72}),O("div",{class:Z(h.$style.promocode__successTitle)},Y(f(n)("marketplace.promocode.success.title")),3),A(f(qe),{size:"l",onClick:p[
1270]||(p[0]=m=>t.onSuccess())},{default:K(()=>[xe(Y(f(n)("common.great")),1)]),_:1})],2)):(_(),T("div",{key:1,class:Z(h.$style.promocode__screen)},[O("div",{class:Z(h.$style.promocode__title)},Y(f(n)("marketplace.promocode.title")),3),A(f(rc),{modelValue:i.value,"onUpdate:modelValue":[p[1]||(p[1]=m=>i.value=m),p[2]||(p[2]=m=>o.value=null)],placeholder:f(n)("marketplace.promocode.placeholder"),autofocus:!0,error:c.value,invalid:c.value!==void 0,disabled:r.value,"icon-right":i.value.trim().length>0?{name:"cross",action:d}:void 0,"is-message-reserve-space":"",onKeydown:vn(u,["enter"])},null,8,["modelValue","placeholder","error","invalid","disabled","icon-right"]),A(f(qe),{class:Z(h.$style.promocode__button),size:"l",disabled:l.value,"is-loading":r.value,onClick:u},{default:K(()=>[xe(Y(f(n)("common.apply")),1)]),_:1},8,["class","disabled","is-loading"])],2))],2))}}),sZ="IIvTDGPZ",iZ="m-jsQxZH",oZ="E80-Y0xD",rZ="WenmPH-N",aZ="z6JHqWrK",lZ="LpeaKpk5",cZ={promocode:sZ,promocode__screen:iZ,promocode__screenSuccess:oZ,promocode__title:rZ,promocode__successTitle:aZ,promocode__button:lZ,"underlay-in":"pR-m1ja7","modal-enter":"loPnHk2C","modal-enter-slide":"JrTnUIos"},uZ={$style:cZ},dZ=ot(nZ,[["__cssModules",uZ]]),fZ=J({__name:"Form",async setup(e){let t,n;const{t:s,p:i}=Op(),{open:o,close:r}=Wt(),a=A2(),{name:l,netAmount:c,amountPostfix:u,paymentCount:d,amountSuggestions:h,errors:p,submitLabel:m,nameValidationStatus:v,isNameChecking:g,isFormSubmitting:b,submit:w,promocode:k}=([t,n]=on(()=>tZ()),t=await t,n(),t);function y(){o(cn("div",{class:a.form__help},[cn("div",{innerHTML:s("marketplace.steam.help.text")}),cn(qe,{size:"l",textContent:s("common.gotIt"),onClick:r})]),{},{title:s("marketplace.steam.help.title")})}function S(){o(dZ,{check:E=>k.check(E,l.value),onSuccess:r},{title:""})}return(E,x)=>(_(),T("div",{class:Z(E.$style.form)},[O("div",{class:Z(E.$style.form__promocode)},[f(k).isApplied.value?(_(),T(ye,{key:0},[O("span",{class:Z(E.$style.form__promocodeValue)},Y(f(k).appliedPromocode.value),3),A(f(Xi),{icon:"cross",size:"small",onClick:f(k).reset},null,8,["onClick"])],64)):(_(),T("span",{key:1,class:Z(E.$style.form__promocodeLink),onClick:S},Y(f(s)("marketplace.promocode.action")),3))],2),O("div",{class:Z(E.$style.form__fields)},[A(f(du),null,{default:K(()=>[A(f(rc),{modelValue:f(l),"onUpdate:modelValue":x[0]||(x[0]=M=>Ct(l)?l.value=M:null),placeholder:f(s)("marketplace.steam.name"),loading:f(g),error:f(p).name,invalid:f(p).name!==void 0,"icon-right":f(v)==="valid"?{name:"tick"}:void 0,disabled:f(b),"is-message-reserve-space":""},{caption:K(()=>[O("span",{class:Z(E.$style.form__caption),onClick:y},Y(f(s)("marketplace.steam.help.caption")),3)]),_:1},8,["modelValue","placeholder","loading","error","invalid","icon-right","disabled"])]),_:1}),A(f(du),null,{default:K(()=>[A(f(wC),{modelValue:f(c),"onUpdate:modelValue":x[1]||(x[1]=M=>
127Ct(c)?c.value=M:null),postfix:f(u),error:f(p).amount,invalid:f(p).amount!==void 0,disabled:f(b)},null,8,["modelValue","postfix","error","invalid","disabled"]),O("div",{class:Z(E.$style.form__suggestions)},[(_(!0),T(ye,null,We(f(h),M=>(_(),L(f(qe),{key:M.value,type:"minimal",size:"s",onClick:I=>c.value=M.value},{default:K(()=>[xe(Y(`${M.label}`),1)]),_:2},1032,["onClick"]))),128))],2)]),_:1})],2),O("div",{class:Z(E.$style.form__bottom)},[A(f(qe),{size:"l","is-loading":f(b),onClick:f(w)},{default:K(()=>[xe(Y(f(m)),1)]),_:1},8,["is-loading","onClick"]),A(f(Tt),null,{default:K(()=>[A(YJ,{count:f(d),label:f(i)("marketplace.steam.count",f(d),{excludeNumber:!0})},null,8,["count","label"])]),_:1})],2)],2))}}),hZ="dqbdpE3d",pZ="XOlxLs5F",mZ="yXQvIB1Z",vZ="_9vtwmli2",gZ="nPLTGCMU",bZ="TaWDWQlh",yZ="_9Hqjxg-L",wZ="L5ghuG-i",_Z="U20YOY12",kZ={form:hZ,form__fields:pZ,form__bottom:mZ,form__caption:vZ,form__promocode:gZ,form__promocodeLink:bZ,form__promocodeValue:yZ,form__suggestions:wZ,form__help:_Z,"underlay-in":"F0EW6agk","modal-enter":"mYDf7eNm","modal-enter-slide":"nvRBNrvP"},SZ={$style:kZ},CZ=ot(fZ,[["__cssModules",SZ]]),EZ=["innerHTML"],xZ=J({__name:"SteamPay",props:{agreementLink:{}},emits:["view"],setup(e,{emit:t}){const n=t,{t:s}=Op();function i([o]){o.isIntersecting&&n("view")}return(o,r)=>Ie((_(),T("div",{class:Z(o.$style.steam)},[O("div",{class:Z(o.$style.steam__header)},[O("div",{class:Z(o.$style.steam__title)},Y(f(s)("marketplace.steam.title")),3)],2),A(CZ,{class:Z(o.$style.steam__form)},null,8,["class"]),e.agreementLink?(_(),T("div",{key:0,class:Z(o.$style.steam__agreement),innerHTML:f(s)("marketplace.payment.agreement",{url:e.agreementLink})},null,10,EZ)):D("",!0)],2)),[[f(tg),i]])}}),TZ="uezODXSd",AZ="_2Ihm2HEX",PZ="_0U9bhRna",RZ="eTH37pro",IZ="fe74sw-6",MZ={steam:TZ,steam__header:AZ,steam__title:PZ,steam__form:RZ,steam__agreement:IZ,"underlay-in":"JXP2kqb-","modal-enter":"uKSSu0y0","modal-enter-slide":"wFieq6pu"},$Z={$style:MZ},LZ=ot(xZ,[["__cssModules",$Z]]),px=Object.freeze(Object.defineProperty({__proto__:null,SteamPay:LZ,messages:HJ,routes:VJ},Symbol.toStringTag,{value:"Module"})),OZ={title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑÑÑ"}},metaTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐгÑегаÑÐ¾Ñ Ð¾Ð½Ð»Ð°Ð¹Ð½-кÑÑÑов на vc.ru"}},course:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑÑ"}},description:{t:0,b:{t:2,i:[{t:3}],s:"ÐоиÑк онлайн-кÑÑÑов Ð¾Ñ Ð²ÐµÐ´ÑÑиÑ
Ñкол."}},metaDescription:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑалог лÑÑÑиÑ
онлайн-кÑÑÑов. ÐÑовеÑеннÑе ÑколÑ, ÑейÑинги и ÑеалÑнÑе оÑзÑÐ²Ñ ÑÑÑденÑов. ÐбÑÑение новой пÑоÑеÑÑии, пеÑеподгоÑовка и повÑÑение квалиÑикаÑии"}},courseCounter:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"кÑÑÑов"},{t:2,i:[{t:3}],s:"кÑÑÑ"},{t:2,i:[{t:3}],s:"кÑÑÑа"},{t:2,i:[{t:3}],s:"кÑÑÑов"}]}},reviewCounter:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"оÑзÑвов"},{t:2,i:[{t:3}],s:"оÑзÑв"},{t:2,i:[{t:3}],s:"оÑзÑва"},{t:2,i:[{t:3}],s:"оÑзÑвов"}]}},scoreCounter:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"оÑенок"},{t:2,i:[{t:3}],s:"оÑенка"},{t:2,i:[{t:3}],s:"оÑенки"},{t:2,i:[{t:3}],s:"оÑенок"}]}},atAnyTime:{t:0,b:{t:2,i:[{t:3}],s:"РлÑбой моменÑ"}},rate:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑениÑе и оÑÑавÑÑе оÑзÑв"}},topSchoolsTitle:{t:0,b:{t:2,i:[{t:3,v:"Топ-10 лÑÑÑиÑ
Ñкол "},{t:4,k:"title"},{t:3,v:" "},{t:4,k:"year"}]}},topPaidCoursesTitle:{t:0,b:{t:2,i:[{t:3,v:"Топ-10 кÑÑÑов "},{t:4,k:"title"},{t:3,v:" "},{t:4,k:"year"}]}},topFreeCoursesTitle:{t:0,b:{t:2,i:[{t:3,v:"Топ-10 беÑплаÑнÑÑ
кÑÑÑов "},{t:4,k:"title"},{t:3,v:" "},{t:4,k:"year"}]}},topCoursesReviewsTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑнÑе оÑзÑÐ²Ñ Ð½Ð° кÑÑÑÑ"}},topCollectionReviewsTitle:{t:0,b:{t:2,i:[{t:3,v:"ÐÑзÑÐ²Ñ Ð½Ð° кÑÑÑÑ "},{t:4,k:"title"},{t:3,v:" "},{t:4,k:"year"}]}},comparisonCoursesTitle:{t:0,b:{t:2,i:[{t:3,v:"СÑавнение лÑÑÑиÑ
онлайн-кÑÑÑов "},{t:4,k:"title"},{t:3,v:" в "},{t:4,k:"year"}]}},longevity:{t:0,b:{t:2,i:[{t:3}],s:"ÐлиÑелÑноÑÑÑ"}},price:{t:0,b:{t:2,i:[{t:3}],s:"СÑоимоÑÑÑ ÐºÑÑÑа"}},priceShort:{t:0,b:{t:2,i:[{t:3}],s:"Цена"}},pricePerMonth:{t:0,b:{t:2,i:[{t:3}],s:"Цена в ÑаÑÑÑоÑкÑ"}},startingDate:{t:0,b:{t:2,i:[{t:3}],s:"СÑаÑÑ ÐºÑÑÑа"}},employment:{t:0,b:{t:2,i:[{t:3}],s:"ТÑÑдоÑÑÑÑойÑÑво"}},promocodeTitle:{t:0,b:{t:2,i:[{t:3}],s:"Скидка по пÑомокодÑ"}},searchPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Ð§ÐµÐ¼Ñ Ñ
оÑиÑе наÑÑиÑÑÑÑ?"}},creditPrice:{t:0,b:{t:2,i:[{t:3,v:"Ð¾Ñ "},{t:4,k:"price"},{t:3,v:" в меÑÑÑ"}]}},free:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑплаÑно"}},promocodeText:{t:0,b:{t:2,i:[{t:3,v:"ÐÑÑ â"},{t:4,k:"amount"},{t:3,v:" "},{t:4,k:"unit"},{t:3,v:" по пÑомокодÑ"}]}},goTo:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑейÑи"}},start:{t:0,b:{t:2,i:[{t:3}],s:"СÑаÑÑ"}},feedSorting:{recommended:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑнÑе"}},rating:{t:0,b:{t:2,i:[{t:3}],s:"Ðо ÑейÑингÑ"}},priceAsc:{t:0,b:{t:2,i:[{t:3}],s:"Ðо возÑаÑÑÐ°Ð½Ð¸Ñ ÑенÑ"}}
127,priceDesc:{t:0,b:{t:2,i:[{t:3}],s:"Ðо ÑбÑÐ²Ð°Ð½Ð¸Ñ ÑенÑ"}}},promocode:{title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑомокод"}},discount:{t:0,b:{t:2,i:[{t:3,v:"на ÑÐºÐ¸Ð´ÐºÑ "},{t:4,k:"amount"},{t:4,k:"unit"}]}},copy:{t:0,b:{t:2,i:[{t:3}],s:"СкопиÑоваÑÑ Ð¿Ñомокод"}},coursePrice:{t:0,b:{t:2,i:[{t:3}],s:"Цена кÑÑÑа"}},discountedPrice:{t:0,b:{t:2,i:[{t:3}],s:"Цена Ñо Ñкидкой"}},label:{t:0,b:{t:2,i:[{t:3,v:"ÐÑомокод Ð¾Ñ "},{t:4,k:"site"}]}},total:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑого"}},copied:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑомокод ÑкопиÑован"}}},filters:{schools:{t:0,b:{t:2,i:[{t:3}],s:"Школа"}},periods:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑиод обÑÑениÑ"}},periodOptions:{lessThan1Month:{t:0,b:{t:2,i:[{t:3}],s:"Ðо 1 меÑÑÑа"}},from1To3Months:{t:0,b:{t:2,i:[{t:3}],s:"1â3 меÑÑÑа"}},from3To6Months:{t:0,b:{t:2,i:[{t:3}],s:"3â6 меÑÑÑев"}},from6To12Months:{t:0,b:{t:2,i:[{t:3}],s:"6â12 меÑÑÑев"}},moreThan12Months:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ 12 меÑÑÑев"}}}},feed:{coursesStub:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑÑов Ñ Ñакими кÑиÑеÑиÑми не найдено"}},reviewsStub:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑзÑвов неÑ"}}},schoolTitle:{t:0,b:{t:2,i:[{t:3,v:"ÐÑÑÑÑ "},{t:4,k:"school"},{t:3,v:" â ÑÐµÐ½Ñ Ð½Ð° обÑÑение в онлайн-Ñколе на "},{t:4,k:"site"}]}},schoolDescription:{t:0,b:{t:2,i:[{t:3,v:"ÐеÑплаÑнÑе и плаÑнÑе онлайн-кÑÑÑÑ Ð¾Ñ "},{t:4,k:"school"},{t:3,v:". СколÑко ÑÑÐ¾Ð¸Ñ Ð¾Ð±ÑÑение, когда ÑÑаÑÑÑÑÑ Ð±Ð»Ð¸Ð¶Ð°Ð¹Ñие кÑÑÑÑ, Ð¿Ð¾Ð¼Ð¾Ð³Ð°ÐµÑ Ð»Ð¸ Ñкола Ñ ÑÑÑдоÑÑÑÑойÑÑвом â акÑÑалÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¾ кÑÑÑаÑ
на "},{t:4,k:"site"}]}},popularCoursesTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑнÑе кÑÑÑÑ"}},school:{label:{t:0,b:{t:2,i:[{t:3}],s:"Школа"}},tabs:{courses:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑÑÑ"}},reviews:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑзÑвÑ"}}},sorting:{popular:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑнÑе"}},date:{t:0,b:{t:2,i:[{t:3}],s:"ÐовÑе"}},date_asc:{t:0,b:{t:2,i:[{t:3}],s:"СÑаÑÑе"}},positive:{t:0,b:{t:2,i:[{t:3}],s:"ÐоложиÑелÑнÑе"}},negative:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑиÑаÑелÑнÑе"}}},seo:{courses:{title:{t:0,b:{t:2,i:[{t:3,v:"ÐÑÑÑÑ "},{t:4,k:"school"},{t:3,v:" â ÑÐµÐ½Ñ Ð½Ð° обÑÑение в онлайн-Ñколе на "},{t:4,k:"site"}]}},description:{t:0,b:{t:2,i:[{t:3,v:"ÐеÑплаÑнÑе и плаÑнÑе онлайн-кÑÑÑÑ Ð¾Ñ "},{t:4,k:"school"},{t:3,v:". СколÑко ÑÑÐ¾Ð¸Ñ Ð¾Ð±ÑÑение, когда ÑÑаÑÑÑÑÑ Ð±Ð»Ð¸Ð¶Ð°Ð¹Ñие кÑÑÑÑ, Ð¿Ð¾Ð¼Ð¾Ð³Ð°ÐµÑ Ð»Ð¸ Ñкола Ñ ÑÑÑдоÑÑÑÑойÑÑвом â акÑÑалÑÐ½Ð°Ñ Ð¸Ð½ÑоÑмаÑÐ¸Ñ Ð¾ кÑÑÑаÑ
на "},{t:4,k:"site"}]}}},reviews:{title:{t:0,b:{t:2,i:[{t:4,k:"school"},{t:3,v:" â "},{t:4,k:"count"},{t:3,v:" об обÑÑении на кÑÑÑаÑ
Ð¾Ñ ÑеалÑнÑÑ
ÑÑеников ÑколÑ"}]}},description:{t:0,b:{t:2,i:[{t:3,v:"РеалÑнÑе оÑзÑÐ²Ñ Ð¾ кÑÑÑаÑ
онлайн-ÑÐºÐ¾Ð»Ñ "},{t:4,k:"school"},{t:3,v:" в "},{t:4,k:"year"},{t:3,v:" Ð³Ð¾Ð´Ñ â "},{t:4,k:"count"},{t:3,v:" об обÑÑении на "},{t:4,k:"site"}]}}}},leaveReview:{button:{t:0,b:{t:2,i:[{t:3}],s:"ÐапиÑаÑÑ Ð¾ÑзÑв"}},title:{t:0,b:{t:2,i:[{t:3,v:"ÐÑÑавиÑÑ Ð¾ÑзÑв о "},{t:4,k:"school"}]}},course:{placeholder:{t:0,b:{t:2,i:[{t:3}],s:"Ðа ÑÑо Ñ
оÑиÑе оÑÑавиÑÑ Ð¾ÑзÑв?"}},defaultOptionLabel:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑзÑв о Ñколе"}}},textPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"ЧÑо понÑавилоÑÑ, а ÑÑо не оÑенÑ?"}},dropzone:{t:0,b:{t:2,i:[{t:3}],s:"<span>ÐобавÑÑе Ñек или диплом</span>,<br>ÑÑÐ¾Ð±Ñ Ð¿Ð¾Ð´ÑвеÑдиÑÑ, ÑÑо Ð²Ñ Ð¿ÑоÑли кÑÑÑ"}},notice:{t:0,b:{t:2,i:[{t:3}],s:'ÐÐ°Ð¶Ð¸Ð¼Ð°Ñ Â«ÐÑпÑавиÑÑ», Ñ Ð¿Ð¾Ð´ÑвеÑÐ¶Ð´Ð°Ñ ÑоглаÑие Ñ ÑÑловиÑми <a href="/terms" target="_blank">полÑзоваÑелÑÑкого ÑоглаÑениÑ</a>.'}},success:{title:{t:0,b:{t:2,i:[{t:3}],s:"СпаÑибо за оÑзÑв!"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑзÑв оÑпÑавлен на модеÑаÑÐ¸Ñ Ð¸ бÑÐ´ÐµÑ Ð¾Ð¿Ñбликован поÑле пÑовеÑки."}}},errors:{textLength:{t:0,b:{t:2,i:[{t:3,v:"Ðе менее "},{t:4,k:"min"}
127,{t:3,v:" и не более "},{t:4,k:"max"},{t:3,v:" Ñимволов"}]}},hasSchoolReview:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ñже оÑÑавлÑли оÑзÑв на ÑÑÑ ÑколÑ, вÑбеÑиÑе кÑÑÑ"}},hasCourseReview:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ñже оÑÑавлÑли оÑзÑв на ÑÑÐ¾Ñ ÐºÑÑÑ"}}}}},aiLabel:{t:0,b:{t:2,i:[{t:3}],s:"AI-вÑжимка"}},aiLabelTitle:{t:0,b:{t:2,i:[{t:3}],s:"СгенеÑиÑовано AI на оÑнове ÑеалÑного оÑзÑва"}},verified:{label:{t:0,b:{t:2,i:[{t:3}],s:"ÐодÑвеÑждÑн"}},title:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑзÑв подÑвеÑждÑн"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐвÑÐ¾Ñ Ð¾ÑзÑва пÑикÑепил докÑменÑÑ, подÑвеÑждаÑÑие пÑоÑ
ождение кÑÑÑа."}}}},BZ=Object.freeze(Object.defineProperty({__proto__:null,ru:OZ},Symbol.toStringTag,{value:"Module"}));function DZ(e){const t=C(()=>ce(e)),n=5,s=P(n),i=C(()=>{var a;return((a=t.value)==null?void 0:a.items.slice(0,s.value))??[]}),o=C(()=>{var a;return s.value>=(((a=t.value)==null?void 0:a.items.length)??0)});async function r(){var a;s.value=((a=t.value)==null?void 0:a.items.length)??0}return be(t,()=>{s.value=n}),{title:C(()=>{var a;return(a=t.value)==null?void 0:a.title}),items:i,isEnded:o,loadMore:r}}class NZ extends Ks{constructor(n,s,i){super();le(this,"feedStore");le(this,"schoolFeedStore");le(this,"reviewFeedStore");this.transport=n,this.createStore=s,this.hydrationStore=i}async getAggregatedDataForMainPage(){const n=async()=>await this.transport.get("cpa",void 0,{ssrReady:!0,apiVersion:"v2.5"});return await this.hydrationStore.hydrate("courses-main",n)}async getCollections(){const n=async()=>await this.transport.get("cpa/collections",void 0,{ssrReady:!0,apiVersion:"v2.5"});let s=this.store.getCollections();return s.length===0&&(s=await this.hydrationStore.hydrate("courses-collections",n),this.store.setCollections(s)),s}async getCourses({parentCollectionCode:n,childCollectionCode:s,tagCodes:i,limit:o,isResetPagination:r=!1,filters:a}){if(this.feedStore===void 0&&(this.feedStore=new Tn),r&&this.feedStore.reset(),this.feedStore.isEnded)return{courses:this.feedStore.items,lastSortingValue:this.feedStore.lastSortingValue,top10:[],top10Free:[],topSchools:[],reviews:{items:[]},comparisonCourses:[]};const l=async()=>{const p="courses:feed";return this.transport.abort(p),await this.transport.get("cpa/courses",{...this.removeEmptyValues({parentCollection:n,childCollection:s,tags:JSON.stringify(i)}),...this.removeEmptyValues(a??{}),lastSortingValue:c,limit:o},{ssrReady:!0,apiVersion:"v2.5",abortToken:p})},c=this.feedStore.lastSortingValue??0,u=q1(JSON.stringify(a??{})),d=q(i)&&i.length>0?i.join(","):"",h=c===0?await this.hydrationStore.hydrate(`courses-collection@${n}/${s??""}@${d??""}@${u}`,l):await l();return this.feedStore.processChunk({items:h.courses,lastSortingValue:h.lastSortingValue}),{...h,courses:this.feedStore.items}}async getSchool(n){const s=async()=>(await this.transport.get(`cpa/schools/${n.slug}`,void 0,{ssrReady:!0,apiVersion:"v2.6"})).school;return await this.hydrationStore.hydrate(`courses-school-data@${n.slug}`,s)}async getSchoolReviews(n){this.reviewFeedStore===void 0&&(this.reviewFeedStore=new Tn),n.isFromStart===!0&&this.reviewFeedStore.reset();const s=async()=>{var l;const a={limit:n.limit,lastSortingValue:((l=this.reviewFeedStore)==null?void 0:l.lastSortingValue)??0,sorting:n.sorting};return await this.transport.get(`cpa/schools/${n.slug}/reviews`,a,{ssrReady:!0,apiVersion:"v2.5"})};if(this.reviewFeedStore.isEnded)return{reviews:this.reviewFeedStore.items};const i=this.reviewFeedStore.lastSortingValue??0,o=`courses-school-review@${n.slug}@${n.sorting}`,r=i===0?await this.hydrationStore.hydrate(o,s):await s();return this.reviewFeedStore.processChunk({items:r.reviews,lastSortingValue:r.lastSortingValue}),{reviews:this.reviewFeedStore.items}}async getSchoolCourses(n){this.schoolFeedStore===void 0&&(this.schoolFeedStore=new Tn),n.isResetPagination===!0&&this.schoolFeedStore.reset();const s=async()=>{var c;const l={limit:n.limit,lastSortingValue:((c=this.schoolFeedStore)==null?void 0:c.lastSortingValue)??0,...this.removeEmptyValues(n.filters??{})};return await this.transport.get(`cpa/schools/${n.slug}/courses`,l,{ssrReady:!0})};if(this.schoolFeedStore.isEnded)return{courses:this.schoolFeedStore.items};const i=this.schoolFeedStore.lastSortingValue??0,o=q1(JSON.stringify(n.filters??{})),r=`courses-school-feed@${n.slug}@${o}`,a=i===0?await this.hydrationStore.hydrate(r,s):await s();return this.schoolFeedStore.processChunk({items:a.courses,lastSortingValue:a.lastSortingValue}),{courses:this.schoolFeedStore.items}}async getSchoolList(){const{items:n}=await this.transport.get("cpa/school-list",void 0,{ssrReady:!0,apiVersion:"v2.5"});return n}async leaveReview(n){await this.transport.post(`cpa/schools/${n.schoolId}/review`,{rating:n.score,text:n.text,courseId:n.courseId,fileKey:n.fileKey},{auth:"strict"})}async uploadReviewAttachment(n){return(await this.transport.post("cpa/reviews/upload",{file:n},{auth:"strict"})).fileKey}async hasReviewedSchoolOrCourse(n,s){try{return await this.transport.post(`cpa/reviews/${n}/validate`,{courseId:s},{auth:"strict"}),!1}catch{return!0}}removeEmptyValues(n){return Object.fromEntries(Object.entries(as(n)).filter(([i,o])=>Array.isArray(o)?o.length>0:o))}}class FZ{constructor(t){this.repository=t}async getAggregatedDataForMainPage(){return await this.repository.getAggregatedDataForMainPage()}async getCollections(){return await this.repository.getCollections()}async getCourses(t){return await this.repository.getCourses(t)}async getSchool(t){return await this.repository.getSchool(t)}async getSchoolCourses(t){return await this.repository.getSchoolCourses(t)}async getSchoolReviews(t){return await this.repository.getSchoolReviews(t)}async getSchoolList(){return await this.repository.getSchoolList()}async leaveReview(t){return await this.repository.leaveReview(t)}async uploadReviewAttachment(t){return await this.repository.uploadReviewAttachment(t)}async hasReviewedSchoolOrCourse(t,n){return await this.repository.hasReviewedSchoolOrCourse(t,n)}}function UZ(){const e=P([]);function t(){return e.value}function n(s){e.value=s}return{getCollections:t,setCollections:n}}var Rl;class HZ{constructor(){Fe(this,Rl);lt(this,Rl,UZ())}getCollections(){return fe(this,Rl).getCollections()}setCollections(t){fe(this,Rl).setCollections(t)}}Rl=new WeakMap;function VZ(){const e=pt();return e.isRegistered("CoursesService")||e.register("CoursesService",()=>{const{transport:t,hydrationStore:n}=e.resolve("ModuleInitOptions"),s=new NZ(t,()=>new HZ,n);return new FZ(s)}),e.resolve("CoursesService")}function zZ(e){return e.filter(t=>t.isPubliclyShown===!0&&t.isDisabled!==!0&&!t.isTag)}function WZ(){const e=VZ(),t=P([]),n=P([]),s=P(""),i=P([]),o=P(),r=P(!1),a=C(()=>zZ(t.value));async function l(){if(r.value)return;const[h,p]=await Promise.all([e.getCollections(),e.getAggregatedDataForMainPage()]);t.value=h,n.value=p.topSchools,s.value=p.info,i.value=p.popularCourses,o.value=p.reviews,r.value=!0}let c;async function u(){r.value||(c===void 0&&(c=l()),await c)}const d=(async()=>{await eo({onServer:u,onHydration:u,onAfterClientRender:async()=>{r.value||await u()}})})();return{collections:t,regularCollections:a,topSchools:n,infoBlockHtml:s,popularCourses:i,reviews:o,isReady:r,readyPromise:d}}const jZ=zt(WZ);async function GZ(){const{readyPromise:e,...t}=jZ();return await e,t}function qZ(e){return(e.replace(/\/$/,"")||"/")==="/courses"?"/":e}function KZ(e,t){const n=t.replace(/\/$/,""),s=qZ(e.path),i=new URL(s,`${n}/`);for(const[o,r]of Object.entries(e.query))if(Array.isArray(r))for(const a of r)q(a)&&i.searchParams.append(o,a);else q(r)&&i.searchParams.set(o,r);return q(e.hash)&&(i.hash=e.hash),i.href}function ooe(e){}function YZ(e){return t=>{const n=KZ(t,e);return window.location.replace(n),!1}}const XZ=Rt(async()=>await Ce(()=>import("./Courses-BmVc1PY3.js"),__vite__mapDeps([144,145,146,147,148,149,150,151,152,153,154,155,156,134,157]))),QZ=Rt(async()=>await Ce(()=>import("./Collection-1CBzt6jg.js"),__vite__mapDeps([158,159,134,148,147,149,160,138,145,146,150,151,152,153,154,155,156,161]))),JZ=Rt(async()=>await Ce(()=>import("./School-BCB-xXOF.js"),__vite__mapDeps([162,151,152,138,154,148,155,163,164]))),ZZ=Rt(async()=>await Ce(()=>import("./SchoolCourses-D2pR3j-x.js"),__vite__mapDeps([165,159,134,148,147,149,160,145,163,166]))),eee=Rt(async()=>await Ce(()=>import("./SchoolReviews-B76Fbyr2.js"),__vite__mapDeps([167,163,145,148,153,154,155,156])));function R_(...[e,t]){return e.path===t.path&&e.hash===t.hash&&e.query!==t.query?null:!1}const mx="https://edu.vc.ru",tee=q(mx),nee=tee?YZ(mx):void 0,see=[{path:"/courses",beforeEnter:nee,children:[{path:"",name:"CoursesMain",component:XZ,redirect:void 0,meta:{refererId:$e.Courses}},{path:"school/:slug",name:"CoursesSchool",component:JZ,props:e=>({slug:e.params.slug,sorting:e.query.sorting??"recommended"}),meta:{shouldRestoreScroll:R_,refererId:$e.CoursesSchool,refererContext:({slug:e})=>({school:e})},children:[{path:"",name:"CoursesSchoolFeed",component:ZZ,props:e=>({slug:e.params.slug,sorting:e.query.sorting??"recommended"})},{path:"reviews",name:"CoursesSchoolReviews",component:eee,props:e=>({slug:e.params.slug,sorting:e.query.sorting??"popular"})}]},{path:":segments+",name:"CoursesCollection",component:QZ,props:e=>({segments:e.params.segments,sorting:e.query.sorting??"recommended"}),meta:{shouldRestoreScroll:R_,refererId:$e.CoursesCollection,refererContext:({segments:e})=>({segments:e})}}]}];function roe({parentCollectionCode:e,childCollectionCode:t,tagCodes:n,sorting:s,includeQuery:i=!1}={}){const o=[e,t,...n??[]].filter(a=>
127q(a)),r=dn();return{name:"CoursesCollection",params:{segments:o},query:{...i&&q(r)?r.query:{},sorting:s}}}function aoe(e,t){if(t.length===0)throw new Error("No segments provided");const n=t[0],s=e.find(a=>a.code===n&&!a.isTag);if(s==null)throw new Error(`Parent collection not found: ${n}`);let i,o=1;if(t.length>1){const a=t[1],l=e.find(c=>c.code===a&&!c.isTag&&c.parentId===s.id);l!=null&&(i=l,o=2)}const r=[];for(let a=o;a<t.length;a++){const l=t[a],c=e.find(u=>u.code===l&&u.isTag&&u.parentId===((i==null?void 0:i.id)??s.id));if(c==null)throw new Error(`Tag collection not found: ${l}`);r.push(c)}return{parent:s,child:i,tags:r}}function loe(e){return{name:"CoursesSchoolFeed",params:{slug:e}}}function coe(e,t){if(e.isTag){const n=t.find(s=>s.id===e.parentId);if(q(n)){if(q(n.parentId)){const s=t.find(i=>i.id===n.parentId);if(q(s))return[s.code,n.code,e.code]}return[n.code,e.code]}return[e.code]}if(q(e.parentId)){const n=t.find(s=>s.id===e.parentId);if(q(n))return[n.code,e.code]}return[e.code]}function uoe(e,t){const n=e.find(o=>q(o.redirectTo));if(n===void 0)return;const s=n.redirectTo,i=t.find(o=>o.id===s);if(i!==void 0)return i}function iee(e,t){return{name:"CoursesSchoolReviews",params:{slug:e},query:{sorting:t}}}const oee={class:"school-rating__value"},ree=J({__name:"SchoolRating",props:{value:{},precision:{default:1},school:{default:void 0}},setup(e){const t=e,n=C(()=>{var o,r;if(!(!q((o=t.school)==null?void 0:o.slug)||(((r=t.school)==null?void 0:r.reviewCount)??0)<=0))return iee(t.school.slug)}),s=C(()=>n.value!==void 0),i=C(()=>{var o;return((o=t.value)==null?void 0:o.toFixed(t.precision))??"0"});return(o,r)=>e.value!==null?(_(),L(nn(s.value?f(Qe):"div"),{key:0,to:n.value,class:"school-rating"},{default:K(()=>[A(f(Re),{name:"star_filled",class:"school-rating__icon"}),O("span",oee,Y(i.value),1)]),_:1},8,["to"])):D("",!0)}}),aee=Un(DZ),lee=Un(GZ),cee=Object.freeze(Object.defineProperty({__proto__:null,SchoolRating:ree,messages:BZ,routes:see,useCoursesInitialData:lee,useTopReviews:aee},Symbol.toStringTag,{value:"Module"}));var wr=(e=>(e.Small="sm",e.Intermediate="in",e.Medium="md",e.Large="lg",e.ExtraLarge="xl",e))(wr||{});const uee=["data-placeholder","data-chars-left"],Nu=J({__name:"Input",props:{modelValue:{},placeholder:{},limit:{},autofocus:{type:Boolean},textSize:{},isMultiline:{type:Boolean}},emits:["update:modelValue","enter","backspaceAtStart"],setup(e,{emit:t}){const n=e,s=t,i={mounted:(b,w)=>{w.value===!0&&b.focus()}},o=P(),r=P(0),a=C(()=>n.limit===void 0?null:n.limit-r.value),l=C(()=>a.value===null?!1:a.value<10),c=C(()=>a.value===null?!1:a.value<20);function u(){requestAnimationFrame(()=>{if(o.value!==void 0&&!ur(o.value)){const b=document.activeElement;o.value.innerHTML=n.isMultiline?`<p data-placeholder="${n.placeholder}"></p>`:"";const w=document.activeElement;b===w&&w!==null&&w===o.value&&w.firstElementChild!==null&&al(w.firstElementChild)}})}function d(b){var w,k;if(b.inputType.startsWith("insert")&&q(n.limit)&&q(a.value)&&a.value<=0){const y=((k=(w=window.getSelection())==null?void 0:w.getRangeAt(0))==null?void 0:k.toString())??"";q(y)||b.preventDefault()}}function h(){u();const b=q(o.value)&&q(o.value.textContent)?o.value.innerHTML:"";s("update:modelValue",b)}function p(b){var k,y;if(o.value===void 0||b.clipboardData===null)return;b.preventDefault(),b.stopPropagation();let w=b.clipboardData.getData("text/plain");if(q(n.limit)&&o.value.textContent!==null){const S=((y=(k=window.getSelection())==null?void 0:k.getRangeAt(0))==null?void 0:y.toString())??"",E=o.value.textContent.length-S.length+w.length;if(E>n.limit&&(w=w.slice(0,-(E-n.limit)),!q(w)))return}w=rS(w),document.execCommand("insertHTML",!1,w)}function m(b){n.isMultiline||(b.preventDefault(),b.stopPropagation()),s("enter",b)}function v(b){TM(b.target)&&(b.preventDefault(),b.stopPropagation(),s("backspaceAtStart",!ur(b.target)))}function g(b){var w,k;o.value!==void 0&&o.value.innerHTML!==b&&(o.value.innerHTML=b),r.value=((k=(w=o.value)==null?void 0:w.textContent)==null?void 0:k.length)??0}return be(()=>n.modelValue,b=>{g(b)}),be([()=>n.isMultiline,()=>n.placeholder],()=>{u()}),je(()=>{g(n.modelValue)}),(b,w)=>Ie((_(),T("div",{ref_key:"input",ref:o,contenteditable:"true","data-gramm":"false","data-placeholder":e.placeholder,"data-chars-left":c.value?a.value:void 0,class:Z(["editor-tool-input",e.isMultiline&&"editor-tool-input--multiline",e.textSize&&`editor-tool-input--text-${e.textSize}`,e.limit!==void 0&&"editor-tool-input--with-limit",l.value&&"editor-tool-input--warn"]),onFocus:u,onBlur:u,onInput:h,onPaste:p,onKeydown:[w[0]||(w[0]=vn(At(()=>{},["stop"]),["left"])),w[1]||(w[1]=vn(At(()=>{},["stop"]),["right"])),vn(m,["enter"]),vn(v,["backspace"])],onPointermove:w[2]||(w[2]=At(()=>{}
127,["stop"])),onBeforeinput:w[3]||(w[3]=k=>d(k))},null,42,uee)),[[i,e.autofocus]])}});var td;class mc{constructor({api:t,block:n,config:s}){le(this,"editorApi");le(this,"blockApi");le(this,"config");le(this,"isInvisible",!1);Fe(this,td,-1);le(this,"messages");this.editorApi=t,this.blockApi=n,this.config=s,this.messages={...this.getDefaultMessages(),...s==null?void 0:s.messages}}set index(t){lt(this,td,t)}get index(){return fe(this,td)}destroy(){this.wrapper=void 0,this.data=void 0}getDefaultMessages(){return{}}isRenderable(t){return t!=null&&!Object.values(t).every(n=>n===void 0)}sanitize(t,n){return n===void 0&&(n={tags:{a:s=>ur(s)&&{href:!0,target:"_blank",rel:"nofollow noreferrer noopener"},b:ur,i:ur,p:ur,mark:ur,br:{}}}),this.editorApi.sanitize(t,n,!0).trim()}}td=new WeakMap;class zc extends mc{constructor(){super(...arguments);le(this,"wrapper");le(this,"data");le(this,"settingWrapper",null)}get index(){return super.index}set index(n){var s;if(super.index=n,n===0||n===1){const i=this.messages.placeholders;i.length>0&&((s=this.wrapper)==null||s.setAttribute("data-placeholder",i[X5(0,i.length-1)]))}}static get markdown(){return{parseTo(n){const s=document.createElement("div");s.innerHTML=n.text;let i="";return s.children.length===1&&s.children[0].tagName.toLowerCase()==="p"?i=s.children[0].innerHTML:i=s.innerHTML,i}}}makeSettings(){this.settingWrapper=document.createElement("div"),this.settingWrapper.classList.add("block-settings-wrapper");const n=[];return this.index===0?n.push({icon:'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.75 4C7.16421 4 7.5 4.33578 7.5 4.75V9.25H13.5V4.75C13.5 4.33578 13.8358 4 14.25 4C14.6642 4 15 4.33578 15 4.75V15.25C15 15.6642 14.6642 16 14.25 16C13.8358 16 13.5 15.6642 13.5 15.25V10.75H7.5V15.25C7.5 15.6642 7.16417 16 6.75 16C6.33583 16 6 15.6642 6 15.25V4.75C6 4.33578 6.33578 4 6.75 4Z"/></svg>',title:this.messages.makeHeader,data:{style:"h2"}}):n.push({icon:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.33333 3.33331C3.79357 3.33331 4.16667 3.70641 4.16667 4.16665V9.16665H10.8333V4.16665C10.8333 3.70641 11.2064 3.33331 11.6667 3.33331C12.1269 3.33331 12.5 3.70641 12.5 4.16665V15.8333C12.5 16.2936 12.1269 16.6666 11.6667 16.6666C11.2064 16.6666 10.8333 16.2936 10.8333 15.8333V10.8333H4.16667V15.8333C4.16667 16.2936 3.79357 16.6666 3.33333 16.6666C2.8731 16.6666 2.5 16.2936 2.5 15.8333V4.16665C2.5 3.70641 2.8731 3.33331 3.33333 3.33331Z"/><path d="M14.1667 11.6813V11.7008C14.1667 11.7008 14.1472 12.054 14.7478 12.054C15.3484 12.054 15.3484 11.7008 15.3484 11.7008V11.6813C15.3484 10.9635 15.8464 10.4801 16.5837 10.4801C17.2771 10.4801 17.7849 10.9293 17.7849 11.5495C17.7849 12.0475 17.5456 12.4137 16.5837 13.3903L14.412 15.6116C14.2986 15.7277 14.2351 15.8835 14.2351 16.0457C14.2351 16.3886 14.5131 16.6666 14.856 16.6666H18.8203C18.8203 16.6666 19.3051 16.5795 19.3051 16.132C19.3051 15.6844 18.8203 15.5973 18.8203 15.5973H15.9636V15.5143L17.4382 14.0348C18.6345 12.8532 19.0203 12.2282 19.0203 11.4713C19.0203 10.2946 18.0144 9.44497 16.6228 9.44497C15.1775 9.44497 14.1667 10.3629 14.1667 11.6813Z"/></svg>',title:this.messages.makeH2,data:{style:"h2"}},{icon:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.1585 12.4356H16.4054C16.6819 12.4356 16.9106 12.3878 17.0916 12.2924C17.276 12.1969 17.4125 12.0653 17.5014 11.8974C17.5903 11.7296 17.6347 11.537 17.6347 11.3198C17.6347 11.0927 17.5936 10.8985 17.5113 10.7372C17.4323 10.5726 17.3105 10.4459 17.1459 10.3571C16.9847 10.2682 16.779 10.2238 16.5288 10.2238C16.3182 10.2238 16.1273 10.2665 15.9561 10.3521C15.7882 10.4344 15.6549 10.5529 15.5562 10.7076C15.3839 10.9717 15.1524 11.2507 14.8371 11.2507H14.8107C14.4808 11.2507 14.2006 10.9762 14.3034 10.6626C14.3532 10.5109 14.4235 10.3679 14.5145 10.2336C14.7153 9.93741 14.9884 9.70537 15.334 9.53751C15.6829 9.36636 16.0746 9.28078 16.5091 9.28078C16.9731 9.28078 17.378 9.35813 17.7236 9.51282C18.0725 9.66423 18.344 9.89133 18.5382 10.1941C18.7324 10.4969 18.8295 10.8722 18.8295 11.3198C18.8295 11.5239 18.7818 11.7312 18.6863 11.9419C18.5909 12.1525 18.4493 12.3451 18.2617 12.5195C18.1087 12.6591 17.925 12.7779 17.7107 12.8759C17.9891 12.9732 18.2172 13.1046 18.395 13.2699C18.5826 13.4411 18.7192 13.6369 18.8048 13.8574C18.8937 14.078
12718.9381 14.3117 18.9381 14.5585C18.9381 14.8942 18.8772 15.1937 18.7554 15.4571C18.6369 15.7171 18.4674 15.9376 18.2469 16.1186C18.0264 16.2996 17.768 16.4362 17.4718 16.5284C17.1789 16.6206 16.8596 16.6666 16.514 16.6666C16.2046 16.6666 15.9084 16.6238 15.6253 16.5383C15.3423 16.4527 15.0888 16.326 14.865 16.1581C14.6412 15.987 14.4635 15.7747 14.3318 15.5212C14.2844 15.4264 14.2458 15.3262 14.2159 15.2206C14.1263 14.9045 14.406 14.6326 14.7346 14.6326C15.0627 14.6326 15.3084 14.9189 15.4772 15.2003C15.5792 15.3616 15.7208 15.4883 15.9018 15.5805C16.0861 15.6726 16.2968 15.7187 16.5337 15.7187C16.7839 15.7187 16.9995 15.6743 17.1805 15.5854C17.3615 15.4965 17.4998 15.3649 17.5952 15.1905C17.694 15.016 17.7433 14.8054 17.7433 14.5585C17.7433 14.2787 17.689 14.0516 17.5804 13.8772C17.4718 13.7027 17.3171 13.5744 17.1163 13.4921C16.9155 13.4065 16.6786 13.3637 16.4054 13.3637H16.1585C15.9022 13.3637 15.6944 13.156 15.6944 12.8997C15.6944 12.6433 15.9022 12.4356 16.1585 12.4356Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3.33333 3.33331C3.79357 3.33331 4.16667 3.70641 4.16667 4.16665V9.16665H10.8333V4.16665C10.8333 3.70641 11.2064 3.33331 11.6667 3.33331C12.1269 3.33331 12.5 3.70641 12.5 4.16665V15.8333C12.5 16.2936 12.1269 16.6666 11.6667 16.6666C11.2064 16.6666 10.8333 16.2936 10.8333 15.8333V10.8333H4.16667V15.8333C4.16667 16.2936 3.79357 16.6666 3.33333 16.6666C2.8731 16.6666 2.5 16.2936 2.5 15.8333V4.16665C2.5 3.70641 2.8731 3.33331 3.33333 3.33331Z"/></svg>',title:this.messages.makeH3,data:{style:"h3"}}),n.forEach(s=>{var o;const i=document.createElement("button");i.classList.add("ce-block-settings__item"),i.innerHTML=`${s.icon} ${s.title}`,i.addEventListener("click",()=>{this.replaceWithHeader(s.data.style)}),(o=this.settingWrapper)==null||o.appendChild(i)}),this.settingWrapper}render(n){var i,o,r,a,l;this.data=this.isRenderable(n)?n:{text:""},this.wrapper=document.createElement("div"),this.wrapper.classList.add("editor-text-tool");let s=this.data.text;return s!==""&&((o=(i=this.config)==null?void 0:i.suggestPlugins)==null||o.forEach(c=>{s=c.textToHtml(s)})),this.wrapper.innerHTML=s,this.wrapper.contentEditable="true",this.wrapper.setAttribute("data-placeholder",this.messages.defaultPlaceholder),this.wrapper.setAttribute("data-gramm","false"),((r=this.config)==null?void 0:r.suggestPlugins)!==void 0&&((a=this.config)==null?void 0:a.suggestPlugins.length)>0&&N$((l=this.config)==null?void 0:l.suggestPlugins,this.wrapper),this.wrapper}validate(n){return q(n.text)}save(n){var i,o,r;let s=this.editorApi.wrapWithParagraphs(((i=n.textContent)==null?void 0:i.trim())===""?"":n.innerHTML);return(r=(o=this.config)==null?void 0:o.suggestPlugins)==null||r.forEach(a=>{s=a.htmlToText(s)}),{text:this.sanitize(s)}}destroy(){this.settingWrapper!==null&&this.settingWrapper.remove(),super.destroy()}getDefaultMessages(){return{defaultPlaceholder:"ÐажмиÑе Tab Ð´Ð»Ñ Ð²ÑбоÑа инÑÑÑÑменÑа",placeholders:[],makeHeader:"СделаÑÑ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ¾Ð¼",makeH2:"СделаÑÑ H2",makeH3:"СделаÑÑ H3"}}replaceWithHeader(n){var i;const s=this.editorApi.getCurrentBlockId();s!==void 0&&(this.editorApi.oustBlock(s,{type:"header",cover:!1,hidden:!1,anchor:"",data:{text:this.sanitize(((i=this.wrapper)==null?void 0:i.innerHTML)??"",{tags:{}}),style:n}}),this.editorApi.closeEveryBlockSettings(),this.editorApi.toolbar.close())}}le(zc,"title","ТекÑÑ"),le(zc,"inlineToolbar",!0),le(zc,"iconClassname","editor-text-tool-icon"),le(zc,"allowRenderOnPaste",!0);const dee=J({__name:"ListTool",props:{data:{},editorApi:{}},emits:["changeType"],setup(e,{expose:t,emit:n}){const s=e,i=n;t({changeType:u=>{o.value=u}});const o=P(s.data.type),r=P();be(o,u=>{i("changeType",u)});function a(u){var m;const h=((m=u.target.textContent)==null?void 0:m.trim().length)===0,p=s.editorApi.getCurrentBlockId();h&&p!==void 0&&(u.preventDefault(),u.stopPropagation(),u.stopImmediatePropagation(),s.editorApi.navigatePrevious(),s.editorApi.removeBlock(p))}function l(u){var m,v;const d=window.getSelection(),h=d==null?void 0:d.anchorNode,p=h==null?void 0:h.parentElement;(p==null?void 0:p.lastElementChild)===h&&((m=h==null?void 0:h.textContent)==null?void 0:m.trim())===""&&(u.preventDefault(),u.stopPropagation(),(v=h.parentElement)==null||v.removeChild(h),s.editorApi.navigateNext())}function c(u){if(u.clipboardData===null)return;u.preventDefault(),u.stopPropagation();const d=u.clipboardData.getData("text/plain"),h=r8(u.clipboardData.getData("text/html"),{allow:[]}),p=d!==""?d:h;document.execCommand("insertText",!1,p)}return je(()=>{r.value!==void 0&&(r.value.innerHTML=s.data.items.length>0?s.data.items.map(u=>`<li>${u}</li>`).join(""):"<li></li>")}),(u,d)=>(_(),T("ul",{ref_key:"listEl",ref:r,class:Z(["editor-list-tool",{"editor-list-tool--ordered":o.value==="OL"}]),contenteditable:"true","data-gramm":"false",onPaste:c,onKeydown:[vn(a,["backspace"]),vn(a,["delete"]),vn(l,["enter"])]},null,34))}});var vx=(e=>(e.UL="UL",e.OL="OL",e))(vx||{});
127class Kr extends mc{constructor(){super(...arguments);le(this,"wrapper");le(this,"data");le(this,"listSettings",[{type:"UL",title:this.messages.unordered,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 10"><path d="M1.234 3.793c.67 0 1.235.535 1.235 1.207s-.547 1.207-1.235 1.207C.547 6.207 0 5.672 0 5s.547-1.207 1.234-1.207ZM4.48 5.69V4.31H14v1.38H4.479ZM1.234 0c.67 0 1.235.534 1.235 1.207 0 .672-.547 1.207-1.235 1.207C.547 2.414 0 1.879 0 1.207 0 .534.547 0 1.234 0ZM4.48 1.897V.517H14v1.38H4.479Zm-3.245 5.69c.67 0 1.235.534 1.235 1.206 0 .673-.547 1.207-1.235 1.207C.547 10 0 9.466 0 8.793c0-.672.547-1.207 1.234-1.207ZM4.48 9.482v-1.38H14v1.38H4.479Z"/></svg>'},{type:"OL",title:this.messages.ordered,icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 297 206"><path d="M40.736 76.714H23.053V20.422L5.684 25.497V12.104L39.114.542h1.622zm52.234 36.207V83.365H297v29.556zm0-81.28V2.083H297V31.64zm0 162.561v-29.557H297v29.557zM1.656 205.286v-11.51l24.484-25.739c6.034-6.871 9.05-12.329 9.05-16.375 0-3.279-.714-5.772-2.144-7.481-1.43-1.709-3.506-2.564-6.226-2.564-2.686 0-4.865 1.143-6.54 3.427-1.674 2.284-2.51 5.136-2.51 8.554H.086c0-4.674 1.168-8.99 3.505-12.949 2.337-3.958 5.58-7.053 9.73-9.286 4.151-2.232 8.79-3.348 13.917-3.348 8.23 0 14.57 1.901 19.016 5.703 4.447 3.801 6.67 9.26 6.67 16.374 0 3-.557 5.921-1.674 8.763-1.116 2.843-2.85 5.825-5.205 8.946-2.354 3.122-6.147 7.298-11.379 12.53l-9.835 11.353h29.977v13.602z"/></svg>'}]);le(this,"block")}makeSettings(){const n=document.createElement("div");return this.listSettings.forEach(s=>{var i;s.el=document.createElement("div"),s.el.classList.add("ce-block-settings__item"),s.el.classList.toggle("ce-block-settings__item--active",((i=this.data)==null?void 0:i.type)===s.type),s.el.innerHTML=`${s.icon}${s.title}`,s.handler=this.changeType.bind(this,s.type),s.el.addEventListener("click",s.handler),n.appendChild(s.el)}),n}render(n){return this.data={type:(n==null?void 0:n.type)??"UL",items:(n==null?void 0:n.items)??[]},this.wrapper=document.createElement("div"),this.block=cn(dee,{data:this.data,editorApi:this.editorApi,onChangeType:s=>{this.data!==void 0&&(this.data.type=s),this.blockApi.dispatchModifiedEvent()}}),Ta(this.block,this.wrapper),this.wrapper}validate(n){return!(n.items.every(i=>i.trim()==="")||!(n.type in vx))}save(n){return this.extractData(n)}destroy(){this.wrapper!==void 0&&Ta(null,this.wrapper),this.listSettings.forEach(n=>{var s;q(n.handler)&&((s=n.el)==null||s.removeEventListener("click",n.handler)),n.el=void 0}),super.destroy()}getDefaultMessages(){return{unordered:"ÐбÑÑнÑй",ordered:"ÐÑмеÑованнÑй"}}changeType(n){var s,i,o;this.listSettings.forEach(r=>{var a;(a=r.el)==null||a.classList.toggle("ce-block-settings__item--active",r.type===n)}),(o=(i=(s=this.block)==null?void 0:s.component)==null?void 0:i.exposed)==null||o.changeType(n)}extractData(n){var o;const s=n.querySelectorAll("li"),i=[];for(let r=0;r<s.length;r++)if(ur(s[r])){const a=this.sanitize(s[r].innerHTML).trim();q(a)&&i.push(a)}return{items:i,type:((o=this.data)==null?void 0:o.type)??"UL"}}}le(Kr,"title","СпиÑок"),le(Kr,"iconClassname","editor-list-tool-icon"),le(Kr,"enableLineBreaks",!0),le(Kr,"inlineToolbar",!0),le(Kr,"contentless",!0),le(Kr,"handleTags",{tags:["UL","OL","LI"],pasteParser:n=>{const s=[],i=function(o){const r=o.innerHTML.trim();r.length!==0&&s.push(r)};switch(n.tagName){case"UL":case"OL":Array.from(n.children).forEach(o=>{i(o)});break;case"LI":default:i(n);break}return{items:s,type:n.tagName==="UL"?"UL":"OL"}}});const fee=J({__name:"HeaderTool",props:{data:{},editorApi:{},getIndex:{type:Function},placeholders:{}},emits:["update"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=P(s.data.text??""),r=P(!1),a=C(()=>r.value?255:void 0),l=C(()=>{if(r.value)return wr.Large;switch(s.data.style){case"h2":return wr.Medium;case"h3":return wr.Intermediate;default:return wr.Medium}});be(o,d=>{i("update",{text:d,style:s.data.style})});function c(d){if(r.value)return;const h=s.editorApi.getCurrentBlockId();d&&h!==void 0?(s.editorApi.navigatePrevious(),s.editorApi.removeBlock(h)):s.editorApi.navigatePrevious()}function u(d){r.value=d}return t({setMainState:u}),(d,h)=>(_(),T("div",{class:Z(["editor-header-tool",e.data.style==="h2"&&"editor-header-tool--h2",e.data.style==="h3"&&"editor-header-tool--h3"])},[A(Nu,{modelValue:o.value,"onUpdate:modelValue":h[0]||(h[0]=p=>o.value=p),placeholder:e.getIndex()===0?e.placeholders.title:e.placeholders.subtitle,"is-multiline":"","text-size":l.value,limit:a.value,onBackspaceAtStart:c},null,8,["modelValue","placeholder","text-size","limit"])],2))}});
127class wg extends mc{constructor(){super(...arguments);le(this,"wrapper");le(this,"vnode");le(this,"data");le(this,"settingWrapper",null);le(this,"defaultStyle","h2");le(this,"hideCustomBlockSettingsIfFirst",!0)}static get markdown(){return{pattern:/^#+\s+\S/,parseFrom(n){for(;n.charAt(0)==="#";)n=n.substring(1);return{text:n,style:"h2"}},parseTo(n){const s=parseInt(n.style.substring(1),10);return"#".repeat(s)+" "+n.text}}}makeSettings(){return this.settingWrapper=document.createElement("div"),this.settingWrapper.classList.add("block-settings-wrapper"),[{icon:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.667 4.167a.833.833 0 1 0-1.667 0v5.417a2.5 2.5 0 0 0 2.5 2.5h1.6l-.584.73a.833.833 0 0 0 1.302 1.04l1.666-2.083a.834.834 0 0 0 0-1.042L4.818 8.646a.834.834 0 0 0-1.302 1.042l.583.728H2.5a.834.834 0 0 1-.833-.832V4.167Zm6.666 1.667a.833.833 0 1 0 0 1.667h6.666a.833.833 0 1 0 0-1.668H8.333Zm0 4.165a.834.834 0 0 0 0 1.667h10.833a.833.833 0 1 0 0-1.667H8.333Zm0 4.167a.834.834 0 0 0 0 1.668h6.666a.833.833 0 1 0 0-1.668H8.333Z"/></svg>',title:this.messages.makeText},{icon:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.33333 3.33331C3.79357 3.33331 4.16667 3.70641 4.16667 4.16665V9.16665H10.8333V4.16665C10.8333 3.70641 11.2064 3.33331 11.6667 3.33331C12.1269 3.33331 12.5 3.70641 12.5 4.16665V15.8333C12.5 16.2936 12.1269 16.6666 11.6667 16.6666C11.2064 16.6666 10.8333 16.2936 10.8333 15.8333V10.8333H4.16667V15.8333C4.16667 16.2936 3.79357 16.6666 3.33333 16.6666C2.8731 16.6666 2.5 16.2936 2.5 15.8333V4.16665C2.5 3.70641 2.8731 3.33331 3.33333 3.33331Z" /><path d="M14.1667 11.6813V11.7008C14.1667 11.7008 14.1472 12.054 14.7478 12.054C15.3484 12.054 15.3484 11.7008 15.3484 11.7008V11.6813C15.3484 10.9635 15.8464 10.4801 16.5837 10.4801C17.2771 10.4801 17.7849 10.9293 17.7849 11.5495C17.7849 12.0475 17.5456 12.4137 16.5837 13.3903L14.412 15.6116C14.2986 15.7277 14.2351 15.8835 14.2351 16.0457C14.2351 16.3886 14.5131 16.6666 14.856 16.6666H18.8203C18.8203 16.6666 19.3051 16.5795 19.3051 16.132C19.3051 15.6844 18.8203 15.5973 18.8203 15.5973H15.9636V15.5143L17.4382 14.0348C18.6345 12.8532 19.0203 12.2282 19.0203 11.4713C19.0203 10.2946 18.0144 9.44497 16.6228 9.44497C15.1775 9.44497 14.1667 10.3629 14.1667 11.6813Z"/></svg>',title:this.messages.makeH2,data:{style:"h2"}},{icon:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.1585 12.4356H16.4054C16.6819 12.4356 16.9106 12.3878 17.0916 12.2924C17.276 12.1969 17.4125 12.0653 17.5014 11.8974C17.5903 11.7296 17.6347 11.537 17.6347 11.3198C17.6347 11.0927 17.5936 10.8985 17.5113 10.7372C17.4323 10.5726 17.3105 10.4459 17.1459 10.3571C16.9847 10.2682 16.779 10.2238 16.5288 10.2238C16.3182 10.2238 16.1273 10.2665 15.9561 10.3521C15.7882 10.4344 15.6549 10.5529 15.5562 10.7076C15.3839 10.9717 15.1524 11.2507 14.8371 11.2507H14.8107C14.4808 11.2507 14.2006 10.9762 14.3034 10.6626C14.3532 10.5109 14.4235 10.3679 14.5145 10.2336C14.7153 9.93741 14.9884 9.70537 15.334 9.53751C15.6829 9.36636 16.0746 9.28078 16.5091 9.28078C16.9731 9.28078 17.378 9.35813 17.7236 9.51282C18.0725 9.66423 18.344 9.89133 18.5382 10.1941C18.7324 10.4969 18.8295 10.8722 18.8295 11.3198C18.8295 11.5239 18.7818 11.7312 18.6863 11.9419C18.5909 12.1525 18.4493 12.3451 18.2617 12.5195C18.1087 12.6591 17.925 12.7779 17.7107 12.8759C17.9891 12.9732 18.2172 13.1046 18.395 13.2699C18.5826 13.4411 18.7192 13.6369 18.8048 13.8574C18.8937 14.078 18.9381 14.3117 18.9381 14.5585C18.9381 14.8942 18.8772 15.1937 18.7554 15.4571C18.6369 15.7171 18.4674 15.9376 18.2469 16.1186C18.0264 16.2996 17.768 16.4362 17.4718 16.5284C17.1789 16.6206 16.8596 16.6666 16.514 16.6666C16.2046 16.6666 15.9084 16.6238 15.6253 16.5383C15.3423 16.4527 15.0888 16.326 14.865 16.1581C14.6412 15.987 14.4635 15.7747 14.3318 15.5212C14.2844 15.4264 14.2458 15.3262 14.2159 15.2206C14.1263 14.9045 14.406 14.6326 14.7346 14.6326C15.0627 14.6326 15.3084 14.9189 15.4772 15.2003C15.5792 15.3616 15.7208 15.4883 15.9018 15.5805C16.0861 15.6726 16.2968 15.7187 16.5337 15.7187C16.7839 15.7187 16.9995 15.6743 17.1805 15.5854C17.3615 15.4965 17.4998 15.3649 17.5952 15.1905C17.694 15.016 17.7433 14.8054 17.7433 14.5585C17.7433 14.2787 17.689 14.0516 17.5804 13.8772C17.4718 13.7027 17.3171 13.5744 17.1163 13.4921C16.9155 13.4065 16.6786 13.3637 16.4054 13.3637H16.1585C15.9022 13.3637 15.6944 13.156 15.6944 12.8997C15.6944 12.6433 15.9022 12.4356 16.1585 12.4356Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3.33333 3.33331C3.79357 3.33331 4.16667 3.70641 4.16667 4.16665V9.16665H10.8333V4.16665C10.8333 3.70641 11.2064 3.33331 11.6667 3.33331C12.1269 3.33331 12.5 3.70641 12.5 4.16665V15.8333C12.5 16.2936 12.1269 16.6666 11.6667 16.6666C11.2064 16.6666 10.8333 16.2936 10.8333 15.8333V10.8333H4.16667V15.8333C4.16667 16.2936 3.79357 16.6666 3.33333 16.6666C2.8731 16.6666 2.5 16.2936 2.5 15.8333V4.16665C2.5 3.70641 2.8731 3.33331 3.33333 3.33331Z"/></svg>',title:this.messages.makeH3,data:{style:"h3"}}
127].forEach(s=>{var o,r,a,l,c;if(q((o=s.data)==null?void 0:o.style)&&((r=s.data)==null?void 0:r.style)===((a=this.data)==null?void 0:a.style)||q((l=s.data)==null?void 0:l.style)&&this.index===0)return;const i=document.createElement("button");i.classList.add("ce-block-settings__item"),i.innerHTML=`${s.icon} ${s.title}`,i.addEventListener("click",()=>{this.replaceWith(s.data)}),(c=this.settingWrapper)==null||c.appendChild(i)}),this.settingWrapper}render(n){return this.data=this.isRenderable(n)?n:{text:"",style:this.defaultStyle},this.wrapper=document.createElement("div"),this.vnode=cn(fee,{data:this.data,editorApi:this.editorApi,placeholders:{title:this.messages.placeholders.title,subtitle:this.messages.placeholders.subtitle},getIndex:()=>this.index,onUpdate:s=>{this.data=s,this.blockApi.dispatchModifiedEvent()}}),Ta(this.vnode,this.wrapper),this.wrapper}set index(n){var i,o;super.index=n;const s=(o=(i=this.vnode)==null?void 0:i.component)==null?void 0:o.exposed;q(s)&&s.setMainState(n===0)}get index(){return super.index}validate(n){return q(n.text)}save(n){var s;return{style:((s=this.data)==null?void 0:s.style)??this.defaultStyle,text:o8(this.sanitize(n.innerText,{tags:{}}))}}destroy(){this.settingWrapper!==null&&this.settingWrapper.remove(),super.destroy()}getDefaultMessages(){return{makeText:"СделаÑÑ ÑекÑÑом",makeH2:"СделаÑÑ H2",makeH3:"СделаÑÑ H3",placeholders:{title:"Ðаголовок",subtitle:"Ðодзаголовок"}}}replaceWith(n){var o;const s=this.editorApi.getCurrentBlockId();if(s===void 0)return;const i=n===void 0?"text":"header";this.editorApi.oustBlock(s,{type:i,cover:!1,hidden:!1,anchor:"",data:Object.assign({text:this.sanitize(((o=this.wrapper)==null?void 0:o.innerHTML)??"")},n)}),this.editorApi.closeEveryBlockSettings(),this.editorApi.toolbar.close()}}le(wg,"toolbox",[{icon:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.33333 3.33331C3.79357 3.33331 4.16667 3.70641 4.16667 4.16665V9.16665H10.8333V4.16665C10.8333 3.70641 11.2064 3.33331 11.6667 3.33331C12.1269 3.33331 12.5 3.70641 12.5 4.16665V15.8333C12.5 16.2936 12.1269 16.6666 11.6667 16.6666C11.2064 16.6666 10.8333 16.2936 10.8333 15.8333V10.8333H4.16667V15.8333C4.16667 16.2936 3.79357 16.6666 3.33333 16.6666C2.8731 16.6666 2.5 16.2936 2.5 15.8333V4.16665C2.5 3.70641 2.8731 3.33331 3.33333 3.33331Z"/><path d="M14.1667 11.6813V11.7008C14.1667 11.7008 14.1472 12.054 14.7478 12.054C15.3484 12.054 15.3484 11.7008 15.3484 11.7008V11.6813C15.3484 10.9635 15.8464 10.4801 16.5837 10.4801C17.2771 10.4801 17.7849 10.9293 17.7849 11.5495C17.7849 12.0475 17.5456 12.4137 16.5837 13.3903L14.412 15.6116C14.2986 15.7277 14.2351 15.8835 14.2351 16.0457C14.2351 16.3886 14.5131 16.6666 14.856 16.6666H18.8203C18.8203 16.6666 19.3051 16.5795 19.3051 16.132C19.3051 15.6844 18.8203 15.5973 18.8203 15.5973H15.9636V15.5143L17.4382 14.0348C18.6345 12.8532 19.0203 12.2282 19.0203 11.4713C19.0203 10.2946 18.0144 9.44497 16.6228 9.44497C15.1775 9.44497 14.1667 10.3629 14.1667 11.6813Z" /></svg>',title:"Ðодзаголовок H2",data:{style:"h2"}},{icon:'<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M16.1585 12.4356H16.4054C16.6819 12.4356 16.9106 12.3878 17.0916 12.2924C17.276 12.1969 17.4125 12.0653 17.5014 11.8974C17.5903 11.7296 17.6347 11.537 17.6347 11.3198C17.6347 11.0927 17.5936 10.8985 17.5113 10.7372C17.4323 10.5726 17.3105 10.4459 17.1459 10.3571C16.9847 10.2682 16.779 10.2238 16.5288 10.2238C16.3182 10.2238 16.1273 10.2665 15.9561 10.3521C15.7882 10.4344 15.6549 10.5529 15.5562 10.7076C15.3839 10.9717 15.1524 11.2507 14.8371 11.2507H14.8107C14.4808 11.2507 14.2006 10.9762 14.3034 10.6626C14.3532 10.5109 14.4235 10.3679 14.5145 10.2336C14.7153 9.93741 14.9884 9.70537 15.334 9.53751C15.6829 9.36636 16.0746 9.28078 16.5091 9.28078C16.9731 9.28078 17.378 9.35813 17.7236 9.51282C18.0725 9.66423 18.344 9.89133 18.5382 10.1941C18.7324 10.4969 18.8295 10.8722 18.8295 11.3198C18.8295 11.5239 18.7818 11.7312 18.6863 11.9419C18.5909 12.1525 18.4493 12.3451 18.2617 12.5195C18.1087 12.6591 17.925 12.7779 17.7107 12.8759C17.9891 12.9732 18.2172 13.1046 18.395 13.2699C18.5826 13.4411 18.7192 13.6369 18.8048 13.8574C18.8937 14.078
12718.9381 14.3117 18.9381 14.5585C18.9381 14.8942 18.8772 15.1937 18.7554 15.4571C18.6369 15.7171 18.4674 15.9376 18.2469 16.1186C18.0264 16.2996 17.768 16.4362 17.4718 16.5284C17.1789 16.6206 16.8596 16.6666 16.514 16.6666C16.2046 16.6666 15.9084 16.6238 15.6253 16.5383C15.3423 16.4527 15.0888 16.326 14.865 16.1581C14.6412 15.987 14.4635 15.7747 14.3318 15.5212C14.2844 15.4264 14.2458 15.3262 14.2159 15.2206C14.1263 14.9045 14.406 14.6326 14.7346 14.6326C15.0627 14.6326 15.3084 14.9189 15.4772 15.2003C15.5792 15.3616 15.7208 15.4883 15.9018 15.5805C16.0861 15.6726 16.2968 15.7187 16.5337 15.7187C16.7839 15.7187 16.9995 15.6743 17.1805 15.5854C17.3615 15.4965 17.4998 15.3649 17.5952 15.1905C17.694 15.016 17.7433 14.8054 17.7433 14.5585C17.7433 14.2787 17.689 14.0516 17.5804 13.8772C17.4718 13.7027 17.3171 13.5744 17.1163 13.4921C16.9155 13.4065 16.6786 13.3637 16.4054 13.3637H16.1585C15.9022 13.3637 15.6944 13.156 15.6944 12.8997C15.6944 12.6433 15.9022 12.4356 16.1585 12.4356Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M3.33333 3.33331C3.79357 3.33331 4.16667 3.70641 4.16667 4.16665V9.16665H10.8333V4.16665C10.8333 3.70641 11.2064 3.33331 11.6667 3.33331C12.1269 3.33331 12.5 3.70641 12.5 4.16665V15.8333C12.5 16.2936 12.1269 16.6666 11.6667 16.6666C11.2064 16.6666 10.8333 16.2936 10.8333 15.8333V10.8333H4.16667V15.8333C4.16667 16.2936 3.79357 16.6666 3.33333 16.6666C2.8731 16.6666 2.5 16.2936 2.5 15.8333V4.16665C2.5 3.70641 2.8731 3.33331 3.33333 3.33331Z"/></svg>',title:"Ðодзаголовок H3",data:{style:"h3"}}]),le(wg,"handleTags",{tags:["H1","H2","H3","H4","H5","H6"],pasteParser:n=>{const s=n.tagName.toLowerCase();return{text:n.innerHTML,style:s}}});const hee={class:"editor-media-tool-button"},I_=J({__name:"Button",setup(e){return(t,n)=>(_(),T("div",hee,[A(f(Re),{name:"image",width:40,height:40})]))}}),pee=["src"],mee=["src"],vee={class:"editor-media-tool-loader"},gee=J({__name:"Preview",props:{url:{},type:{},maxSize:{},uploadingProgressPercents:{},uploadingAbort:{type:Function}},setup(e){const t=e,n=P(0),s=P(0),i=C(()=>t.type.startsWith("video")),o=C(()=>{const l={type:t.type,width:n.value,height:s.value};return i.value?up(l):xn(l)});function r(l){const c=l.target;n.value="naturalWidth"in c?c.naturalWidth:c.videoWidth,s.value="naturalHeight"in c?c.naturalHeight:c.videoHeight}function a(){t.uploadingAbort!==void 0&&t.uploadingAbort()}return(l,c)=>(_(),T(ye,null,[A(f(gp),{class:"editor-media-tool-preview",data:o.value.data,maxSize:e.maxSize,disablePreview:!0,bordered:!0,rounded:10},{default:K(()=>[i.value?(_(),T("video",{key:0,onLoadedmetadata:r},[O("source",{src:e.url,type:"video/mp4",autoplay:"",playsinline:"",muted:"",loop:""},null,8,pee)],32)):(_(),T("img",{key:1,src:e.url,alt:"",onLoad:r},null,40,mee))]),_:1},8,["data","maxSize"]),O("div",vee,[e.uploadingProgressPercents&&e.uploadingProgressPercents<100?(_(),L(f(q2),{key:0,size:42,percents:e.uploadingProgressPercents,cancelable:"",onAbort:a},null,8,["percents"])):(_(),L(f(Yn),{key:1}))])],64))}}),bee=J({__name:"Item",props:{item:{},maxSize:{}},emits:["add"],setup(e,{emit:t}){const n=t;return(s,i)=>(_(),T(ye,null,[A(f(jo),{type:e.item.type,data:e.item.data,maxSize:e.maxSize,exactSize:!0,bordered:!0,rounded:10},null,8,["type","data","maxSize"]),A(f(qe),{class:"editor-media-tool-add-button",icon:"plus",size:"s",onClick:i[0]||(i[0]=o=>n("add"))})],64))}}),yee={class:"editor-media-tool-single"},wee=J({__name:"Single",props:{item:{},caption:{},uploadingProgressPercents:{},messages:{},uploadingAbort:{type:Function}},emits:["update-caption","add","enter"],setup(e,{emit:t}){const{mediaMaxWidth:n,mediaMaxHeight:s}=an(),i=e,o=t,r=P(i.caption??"");return(a,l)=>(_(),T(ye,null,[O("div",yee,["url"in e.item?(_(),L(gee,{key:0,url:e.item.url,type:e.item.type,"max-size":[f(n),f(s)],"uploading-progress-percents":e.uploadingProgressPercents,"uploading-abort":e.uploadingAbort},null,8,["url","type","max-size","uploading-progress-percents","uploading-abort"])):(_(),L(bee,{key:1,item:e.item,"max-size":[f(n),f(s)],onAdd:l[0]||(l[0]=c=>o("add"))},null,8,["item","max-size"]))]),"data"in e.item?(_(),L(Nu,{key:0,modelValue:r.value,"onUpdate:modelValue":[l[1]||(l[1]=c=>r.value=c),l[2]||(l[2]=c=>o("update-caption",{uuid:e.item.data.uuid,caption:c}))],placeholder:e.messages.description,limit:256,"text-size":f(wr).Small,onEnter:l[3]||(l[3]=c=>o("enter"))},null,8,["modelValue","placeholder","text-size"])):D("",!0)],64))}}),_ee={class:"editor-media-tool"},kee=["draggable","onDragstart","onDragover","onDrop"],See=J({__name:"MediaTool",props:{items:{},title:{},editorApi:{},messages:{}},emits:["update"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=ub(jb),r=Vs(),a=P(),l=C(()=>a.value===void 0?"":d.get(a.value)??""),c=P(!1),u=P(s.items.map(de=>de.image)),d=bt(new Map),h=P(s.title??"");function p(de){const ke=de.filter(Se=>Se!=null&&"data"in Se).map(Se=>{const _e=d.get(Se.data.uuid)??"";return d.set(Se.data.uuid,_e),{title:_e,image:Se}});i("update",{items:ke,title:h.value.length>0?h.value:null})}function m(de){h.value=de,p((g==null?void 0:g.value)??[])}const{nodes:v,uploaded:g,attach:b,openFileDialog:w,remove:k}=Lp({model:u,accept:".png,.jpg,.jpeg,.heic,.webp,.gif,.mp4,.mov,.webm",multiple:!0,onChange:p}),y=C(()=>
127{if((v==null?void 0:v.value.length)===1)return v.value[0]});function S({uuid:de,caption:ke}){d.set(de,ke),p((g==null?void 0:g.value)??[])}function E(de){a.value!==void 0&&S({uuid:a.value,caption:de})}function x(de){c.value=!1,a.value=de,un(()=>{c.value=!0})}function M(){c.value=!1,o.off(I)}function I(de,ke){switch(de){case mh.Change:x(ke);break;case mh.Destroy:M();break}}function N(){o.on(I)}const V=P(null),$=P(null);function j(de){const ke=de==null?void 0:de.item;return ke!=null&&"data"in ke}function X(de){const ke=v==null?void 0:v.value,Se=ke==null?void 0:ke[de];return Se!==void 0&&j(Se)}function U(de){return v===void 0?0:v.value.slice(0,de).filter(ke=>j(ke)).length}function R(de,ke){if(de===ke)return;const Se=(v==null?void 0:v.value.filter(ie=>j(ie)))??[];if(de>=Se.length||ke>=Se.length)return;const _e=[...Se],[Q]=_e.splice(de,1);_e.splice(ke,0,Q);const ge=_e.map(ie=>ie.item);u.value=ge,p(ge)}function G(de,ke){if(!X(ke))return;const Se=de.dataTransfer;if(Se!==null){Se.effectAllowed="move",Se.setData("text/plain",String(ke));const _e=de.target;if(_e instanceof HTMLElement){const Q=_e.getBoundingClientRect();Se.setDragImage(_e,Math.floor(Q.width/2),Math.floor(Q.height/2))}}V.value=ke}function H(){V.value=null,$.value=null}function se(de,ke){if(V.value===null||!X(ke))return;de.preventDefault();const Se=de.dataTransfer;Se!==null&&(Se.dropEffect="move"),$.value=ke}function ue(de,ke){var ae;if(de.preventDefault(),$.value=null,V.value===null||!X(ke))return;const Se=V.value;V.value=null;const _e=(ae=de.dataTransfer)==null?void 0:ae.getData("text/plain"),Q=_e!==""?Number(_e):NaN;if(Number.isNaN(Q)||Q!==Se)return;const ge=U(Se),ie=U(ke);R(ge,ie)}return t({handleFiles:b,openFileDialog:w}),bs(()=>{s.items.forEach(de=>d.set(de.image.data.uuid,de.title))}),(de,ke)=>{var Se,_e,Q;return _(),T("div",_ee,[((Se=f(v))==null?void 0:Se.length)===0?(_(),L(I_,{key:0,class:"editor-media-tool__button",onClick:ke[0]||(ke[0]=ge=>{var ie;return(ie=f(w))==null?void 0:ie()})})):y.value!==void 0?(_(),L(wee,{key:1,item:y.value.item,caption:d.get(y.value.key),messages:e.messages,"uploading-progress-percents":"uploadProgress"in y.value.item?(_e=y.value.item.uploadProgress)==null?void 0:_e.percents:void 0,"uploading-abort":"cancelUpload"in y.value.item?y.value.item.cancelUpload:void 0,onUpdateCaption:S,onAdd:ke[1]||(ke[1]=ge=>{var ie;return(ie=f(w))==null?void 0:ie()}),onEnter:ke[2]||(ke[2]=ge=>e.editorApi.insertBlockAfter(void 0,!0))},null,8,["item","caption","messages","uploading-progress-percents","uploading-abort"])):(_(),L(I2,{key:2,name:"media-gallery",tag:"div",class:"editor-media-tool__gallery"},{default:K(()=>[(_(!0),T(ye,null,We(f(v),(ge,ie)=>(_(),T("div",{key:`item:${ge.key}`,class:Z(["editor-media-tool__gallery-item",{"editor-media-tool__gallery-item--dragging":V.value===ie,"editor-media-tool__gallery-item--drag-over":$.value===ie}]),draggable:j(ge),onDragstart:ae=>G(ae,ie),onDragend:H,onDragover:ae=>se(ae,ie),onDrop:ae=>ue(ae,ie)},[A(f(z0),St({ref_for:!0},ge,{"gallery-id":f(r),caption:d.get(ge.key),onRemove:ae=>{var pe;return(pe=f(k))==null?void 0:pe(ge.key)},onClick:N}),null,16,["gallery-id","caption","onRemove"])],42,kee))),128)),A(I_,{key:"add-button",onClick:ke[3]||(ke[3]=ge=>{var ie;return(ie=f(w))==null?void 0:ie()})}),c.value?(_(),L(id,{key:0,to:f(QM)},[A(Nu,{"model-value":l.value,placeholder:e.messages.description,limit:256,class:"editor-media-tool__gallery-input","onUpdate:modelValue":E},null,8,["model-value","placeholder"])],8,["to"])):D("",!0)]),_:1})),y.value===void 0&&(((Q=f(v))==null?void 0:Q.length)??0)>0?(_(),L(Nu,{key:3,modelValue:h.value,"onUpdate:modelValue":[ke[4]||(ke[4]=ge=>h.value=ge),m],placeholder:e.messages.description,limit:256,"text-size":f(wr).Small,onEnter:ke[5]||(ke[5]=ge=>e.editorApi.insertBlockAfter(void 0,!0))},null,8,["modelValue","placeholder","text-size"])):D("",!0)])}}});class Yr extends mc{constructor(){super(...arguments);le(this,"wrapper");le(this,"data");le(this,"block")}onPaste({file:n}){var s,i,o;(o=(i=(s=this.block)==null?void 0:s.component)==null?void 0:i.exposed)==null||o.handleFiles([n])}appendCallback(){var n,s,i;(i=(s=(n=this.block)==null?void 0:n.component)==null?void 0:s.exposed)==null||i.openFileDialog()}render(n){var o;this.data=this.isRenderable(n)?n:{items:[]},this.wrapper=document.createElement("div");const{editorApi:s,blockApi:i}=this;return this.block=cn(See,{items:this.data.items,title:this.data.title,editorApi:s,messages:this.messages,onUpdate:r=>{this.data={items:r.items,title:r.title},i.dispatchModifiedEvent()}}),((o=this.config)==null?void 0:o.appContext)!==void 0&&(this.block.appContext=this.config.appContext),Ta(this.block,this.wrapper),this.wrapper}validate({items:n}){return!(!Array.isArray(n)||n.length===0)}save(){return this.data??{items:[]}}destroy(){this.wrapper!==void 0&&Ta(null,this.wrapper),super.destroy()}getDefaultMessages(){return{description:"ÐпиÑание"}}}le(Yr,"title","ФоÑо или видео"),le(Yr,"iconClassname","editor-media-tool-icon"),le(Yr,"inlineToolbar",["link"]),le(Yr,"enableLineBreaks",!0),le(Yr,"contentless",!0),le(Yr,"handleFiles",{mime:["image/png","image/jpeg","image/heic","image/webp","image/gif","video/mp4","video/quicktime"]});const Cee=["data-value"],M_="t.me",Eee=J({__name:"TelegramButtonTool",props:{data:{},editorApi:{},messages:{}},emits:["update"],setup(e,{emit:t}){const n=/^(https?:\/\/)?(www\.)?t\.me\//i,s=/^[a-zA-Z0-9_+][a-zA-Z0-9_+./-]*$/,i=e,o=t,{alert:r,AlertType:a}=fn(),l=P(i.data.text),c=P(g(i.data.url)),u=C(()=>l.value.trim()),d=C(()=>c.value.trim()),h=P(!1),p=C(()=>d.value.length>0&&!s.test(d.value)),m=C(()=>d.value.length===0||p.value?"":b(d.value));function v(){p.value&&r({type:a.Error,text:i.messages.urlError})}function g(k){return k.trim().replace(n,"")}function b(k){return`https://${M_}/${k}`}function w(){h.value=!1}return be(c,k=>{const y=g(k);y!==k&&(c.value=y)}),be([u,m],([k,y])=>{o("update",{text:k,url:y})}),(k,y)=>Ie((_(),T("div",{"data-value":l.value,class:Z(k.$style.tool)},[h.value?(_(),T("div",{key:0,class:Z(k.$style.link)},[A(f(Re),{name:"link",width:20,height:20}),O("div",{class:Z(k.$style.link__prefix)},Y(M_)+"/ ",2),O("div",{class:Z([k.$style.link__input,p.value&&k.$style["link__input--invalid"]])},[c.value.length===0?(_(),T("div",{key:0,class:Z(k.$style.link__placeholder)}
127,Y(e.messages.usernamePlaceholder),3)):(_(),T("div",{key:1,class:Z(k.$style.link__sizer)},Y(c.value),3)),Ie(O("input",{"onUpdate:modelValue":y[0]||(y[0]=S=>c.value=S),type:"text",size:"1",maxlength:"32",onBlur:v,onKeydown:y[1]||(y[1]=vn(At((...S)=>e.editorApi.navigateNext&&e.editorApi.navigateNext(...S),["prevent","stop"]),["enter"]))},null,544),[[Hy,c.value]])],2)],2)):D("",!0),O("div",{class:Z(k.$style.button)},[A(f(Re),{name:"telegram",width:20,height:20}),O("div",{class:Z(k.$style.button__input)},[l.value.length===0?(_(),T("div",{key:0,class:Z(k.$style.button__placeholder)},Y(e.messages.buttonPlaceholder),3)):(_(),T("div",{key:1,class:Z(k.$style.button__sizer)},Y(l.value),3)),Ie(O("input",{"onUpdate:modelValue":y[2]||(y[2]=S=>l.value=S),type:"text",size:"1",maxlength:"30",onFocus:y[3]||(y[3]=S=>h.value=!0),onKeydown:y[4]||(y[4]=vn(At((...S)=>e.editorApi.navigateNext&&e.editorApi.navigateNext(...S),["prevent","stop"]),["enter"]))},null,544),[[Hy,l.value]])],2)],2)],10,Cee)),[[f(_p),w]])}}),xee="_9pybzs5x",Tee="_9100MJqw",Aee="zhAulsCH",Pee="EU9C12x-",Ree="_9CwsHZi3",Iee="_4gGGnXuZ",Mee="L7GqSHnP",$ee="IvLdRAsC",Lee="Tfd6yi-Y",Oee="IrDzClmd",Bee={tool:xee,button:Tee,button__input:Aee,button__placeholder:Pee,button__sizer:Ree,link:Iee,link__prefix:Mee,link__input:$ee,"link__input--invalid":"nOOYktxF",link__placeholder:Lee,link__sizer:Oee,"underlay-in":"hBhj6Bzr","modal-enter":"mv31UQMU","modal-enter-slide":"rM3UEgmq"},Dee={$style:Bee},Nee=ot(Eee,[["__cssModules",Dee]]);class _g extends mc{constructor(){super(...arguments);le(this,"wrapper");le(this,"data",{text:"",url:""});le(this,"block")}render(n){var o;this.isRenderable(n)&&(this.data=n),this.wrapper=document.createElement("div");const{editorApi:s,blockApi:i}=this;return this.block=cn(Nee,{data:this.data,editorApi:s,messages:this.messages,onUpdate:r=>{this.data=r,i.dispatchModifiedEvent()}}),((o=this.config)==null?void 0:o.appContext)!==void 0&&(this.block.appContext=this.config.appContext),Ta(this.block,this.wrapper),this.wrapper}validate(n){return q(n.text)&&q(n.url)}save(){return this.data}destroy(){this.wrapper!==void 0&&Ta(null,this.wrapper),super.destroy()}getDefaultMessages(){return{buttonPlaceholder:"ТекÑÑ ÐºÐ½Ð¾Ð¿ÐºÐ¸",usernamePlaceholder:"username",urlError:"УкажиÑе коÑÑекÑнÑй адÑÐµÑ Telegram"}}}le(_g,"enableLineBreaks",!0),le(_g,"toolbox",[{icon:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M16.971 3.766a1.63 1.63 0 0 0-1.624-.35L3.623 7.311c-.65.216-1.09.805-1.121 1.484a1.64 1.64 0 0 0 .967 1.579l4.04 1.895v2.927a.833.833 0 0 0 1.285.7l1.817-1.17 1.863 1.56.005.004a1.63 1.63 0 0 0 1.568.286c.54-.184.938-.63 1.067-1.182l2.343-10.043a1.65 1.65 0 0 0-.486-1.586m-1.146 1.247L4.2 8.877l3.996 1.874 2.913-2.622a.833.833 0 1 1 1.115 1.24l-2.61 2.349 3.887 3.255z"/></svg>',title:"Telegram"}]);/*! Paragraph â fork of Editor.js from CodeX (past CodeX Editor) 128 129@see https://editorjs.io 130@see https://codex.so 131 132@author CodeX <[email protected]> 133@author KMTT (vc.ru, dtf.ru, tjournal.ru) 134@author Peter Savchenko <[email protected]> 135 136@version 3.25.1 137 138@uses html-janitor 139@licence Apache-2.0 (https://github.com/guardian/html-janitor/blob/master/LICENSE) */(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`:root{--content-width: 680px;--color-active: #4684D9;--color-icon-hover: #000;--color-bg-input: #F5F5F5;--color-text-second: rgba(0,0,0,.65);--color-line-gray: rgba(0, 0, 0, .1);--color-bg-hover: rgba(0,0,0, .05);--color-bg-active: #E3EEFD;--popover-padding: 6px;--popover-padding-mobile: 8px;--toolbar-iconic-buttons-size: 32px }@-webkit-keyframes popover-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px);opacity:0}70%{-webkit-transform:translateY(-3px);transform:translateY(-3px);opacity:1}to{-webkit-transform:none;transform:none}}@keyframes popover-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px);opacity:0}70%{-webkit-transform:translateY(-3px);transform:translateY(-3px);opacity:1}to{-webkit-transform:none;transform:none}}.cdx-icon{display:inline-block;background-repeat:no-repeat;background-position:center center;width:16px;height:16px;vertical-align:text-bottom}.cdx-icon--plus{background-image:url("data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10%203.333c.46%200%20.833.373.833.833v5h5a.833.833%200%201%201%200%201.667h-5v5a.833.833%200%200%201-1.666%200v-5h-5a.833.833%200%201%201%200-1.
139667h5v-5c0-.46.373-.833.833-.833z'/%3e%3c/svg%3e");width:20px;height:20px}.cdx-icon--remove-block{background-image:url("data:image/svg+xml,%3csvg%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M8.002%205.5A2.498%202.498%200%200110.5%203.002h3A2.498%202.498%200%200115.998%205.5v1.003H20a.998.998%200%20010%201.995h-.526l-1.15%209.008a3.998%203.998%200%2001-3.965%203.491H9.64a3.997%203.997%200%2001-3.965-3.491l-1.15-9.008H4a.997.997%200%20110-1.995h4.002V5.5zm1.995%201.003h4.005V5.5a.503.503%200%2000-.502-.503h-3a.503.503%200%2000-.502.503v1.003zm-3.46%201.995l1.118%208.755c.128%201%20.978%201.75%201.986%201.75h4.718c1.008%200%201.858-.75%201.986-1.75l1.118-8.755H6.537zM10%2010.253c.55%200%20.998.446.998.997v4.5a.998.998%200%2001-1.995%200v-4.5c0-.55.446-.998.997-.998zm4%200c.55%200%20.998.446.998.997v4.5a.998.998%200%2001-1.995%200v-4.5c0-.55.446-.998.997-.998z'/%3e%3c/svg%3e")}.cdx-icon--block-drag{background-image:url("data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.44%201.44a1.5%201.5%200%201%201%202.12%202.12%201.5%201.5%200%200%201-2.12-2.12ZM4.44%206.94a1.5%201.5%200%201%201%202.12%202.12%201.5%201.5%200%200%201-2.12-2.12ZM4.44%2012.44a1.5%201.5%200%201%201%202.12%202.12%201.5%201.5%200%200%201-2.12-2.12ZM9.44%201.44a1.5%201.5%200%201%201%202.12%202.12%201.5%201.5%200%200%201-2.12-2.12ZM9.44%206.94a1.5%201.5%200%201%201%202.12%202.12%201.5%201.5%200%200%201-2.12-2.12ZM9.44%2012.44a1.5%201.5%200%201%201%202.12%202.12%201.5%201.5%200%200%201-2.12-2.12Z'/%3e%3c/svg%3e")}.cdx-icon--anchor{background-image:url("data:image/svg+xml,%3csvg%20viewBox='0%200%2020%2020'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill-rule='evenodd'%20d='M10.831%208.227A3.333%203.333%200%200%200%2010%201.669a3.331%203.331%200%200%200-.831%206.558v.942H6.875a.831.831%200%201%200%200%201.662h2.294v5.797c-1.726-.175-2.68-.89-3.218-1.535a3.837%203.837%200%200%201-.626-1.058%203.1%203.1%200%200%201-.129-.415l-.002-.013a.831.831%200%200%200-1.64.28l.016.076a4.758%204.758%200%200%200%20.206.673%205.5%205.5%200%200%200%20.898%201.521C5.617%2017.29%207.26%2018.331%2010%2018.331c2.74%200%204.382-1.042%205.326-2.174a5.5%205.5%200%200%200%20.898-1.52%204.747%204.747%200%200%200%20.206-.673v-.001l.015-.076a.831.831%200%200%200-1.64-.28l-.002.013-.019.08a3.04%203.04%200%200%201-.11.335%203.836%203.836%200%200%201-.625%201.058c-.538.646-1.493%201.36-3.218%201.535v-5.797h2.294a.831.831%200%200%200%200-1.662H10.83v-.942zM10%203.33a1.669%201.669%200%201%200%200%203.338%201.669%201.669%200%200%200%200-3.338z'/%3e%3c/svg%3e")}.cdx-icon--toolbar-show-more{background-image:url("data:image/svg+xml,%3csvg%20width='14'%20height='8'%20viewBox='0%200%2014%208'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='m7.29%207.73%206.02-6.019a.734.734%200%200%200%20.216-.523.734.734%200%200%200-.216-.523l-.443-.443a.74.74%200%200%200-1.047%200L6.766%205.276%201.706.216A.735.735%200%200%200%201.183%200a.736.736%200%200%200-.524.216L.216.66A.735.735%200%200%200%200%201.183c0%20.198.077.384.216.523L6.241%207.73a.73.73%200%200%200%20.524.215.74.74%200%200%200%20.526-.215z'/%3e%3c/svg%3e");background-position:54% 55%}.ce-toolbar__tools li:hover .cdx-icon--toolbar-show-more,.ce-toolbar__tools .selected .cdx-icon--toolbar-show-more{background-image:url("data:image/svg+xml,%3csvg%20width='14'%20height='8'%20viewBox='0%200%2014%208'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='%23fff'%20d='m7.29%207.73%206.02-6.019a.734.734%200%200%200%20.216-.523.734.734%200%200%200-.216-.523l-.443-.443a.74.74%200%200%200-1.047%200L6.766%205.276%201.706.216A.735.735%200%200%200%201.183%200a.736.736%200%200%200-.524.216L.216.66A.735.735%200%200%200%200%201.183c0%20.198.077.384.216.523L6.241%207.73a.73.73%200%200%200%20.524.215.74.74%200%200%200%20.526-.215z'/%3e%3c/svg%3e")}.codex-editor{position:relative}.codex-editor__bottom{height:120px}.inline-editor .codex-editor__bottom{height:0}.ce-redactor{position:relative}.ce-block__content a{color:#0969c5;border-bottom:1px solid #6c93da;-webkit-text-decoration:none;text-decoration:none;padding-bottom:1px}.ce-block__content mark{background:#ffd60073;padding:0 .1em;border-radius:.2em}.ce-redactor [contenteditable]{outline:none!important}.ce-redactor p{margin:0}.ce-redactor__loader{background-image:repeating-linear-gradient(-45deg,transparent,transparent 4px,#f5f9ff 4px,#eaedef 8px)!important}.ce-redactor__loader{background-size:56px 56px;-webkit-animation:loading-bar .6s infinite linear;animation:loading-bar .6s infinite linear}@-webkit-keyframes loading-bar{to{background-position:-56% 0}}@keyframes loading-bar{to{background-position:-56% 0}}.ce-block{margin:4px 0;border-radius:4px}.ce-block--dragover .ce-block__content{-webkit-box-shadow:0 -2px 0 0 rgba(114,186,242,.9);box-shadow:0 -2px #72baf2e6}.ce-block--dragged{opacity:.5}.ce-block--selected .ce-block__content{background:#62bbff66}.ce-block--selected .cdx-tool,.ce-block--selected .embed-block,.ce-block--selected .gallery,.ce-block--selected .quiz-tool{opacity:.6}.ce-block__content{max-width:680px;margin:0 auto;padding:1px;position:relative;z-index:0}.ce-block--settings-opened .ce-block__content{z-index:1}.ce-block--stretched{max-width:none;padding:0}.cdx-unavailable-block{display:block;margin:10px 0;padding:80px;background-color:#fff7f7;text-align:center;border-radius:3px;color:#ce5f5f}.cdx-input{position:relative;background:#fff;border:1px solid rgba(0,0,0,.13);border-top-color:#0000004a;font-size:15px;padding:7px 30px 7px 12px;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;width:100%;resize:vertical;line-height:1.2em}.cdx-input--multiline{line-height:1.4em}.cdx-input::-webkit-input-placeholder{color:#818181}.cdx-input::-moz-placeholder{color:#818181}.cdx-input:-ms-input-placeholder{color:#818181}.cdx-input::-ms-input-placeholder{color:#818181}.cdx-input::placeholder{color:#818181}@media all and (max-width: 1024px){.ce-block{margin:0}.ce-block__content{padding:0 25px}.ce-block--anchor:after{display:none}}.ce-toolbar{position:absolute;z-index:4;width:100%;top:0;display:none}@media all and (max-width: 1024px){.ce-toolbar{margin:15px 16px 0;width:auto}}.ce-toolbar.opened{display:block}@media all and (max-width: 1024px){.ce-toolbar.opened{display:-webkit-box;display:-ms-flexbox;display:flex}}.ce-toolbar__content{position:relative;max-width:680px;margin:0 auto;display:-webkit-box;display:-ms-flexbox;display:flex}@media all and (max-width: 1024px){.ce-toolbar__content{background:#fff;-webkit-box-shadow:0px 4px 10px rgba(0,0,0,.15),0px 0px 1px rgba(0,0,0,.25);box-shadow:0 4px 10px #00000026,0 0 1px #00000040;border-radius:8px;-webkit-animation:popover-in .25s ease-in;animation:popover-in .25s ease-in;position:static;margin:0;max-width:none;overflow:visible;display:-webkit-box;display:-ms-flexbox;display:flex;width:auto}}.ce-toolbar__mobile-block-actions{display:none}@media all and (max-width: 1024px){.ce-toolbar__mobile-block-actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:2;-ms-flex-positive:2;flex-grow:2;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.ce-toolbar__mobile-block-actions:after{content:"";background:#0000001a;width:1px;height:calc(100% - 16px)}.ce-toolbar__mobile-block-actions:empty:after{display:none}}.ce-toolbar__mobile-block-actions .ce-block-settings{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}.ce-toolbar__mobile-block-actions .ce-block-settings .cdx-icon,.ce-toolbar__mobile-block-actions .ce-block-settings svg{margin-right:0}
139.ce-toolbar__mobile-block-actions .ce-block-settings__common{display:-webkit-box;display:-ms-flexbox;display:flex;font-size:0}.ce-toolbar__mobile-block-actions .ce-block-settings__item,.ce-toolbar__mobile-block-actions .ce-block-settings .cdx-plugin-settings__item,.ce-toolbar__mobile-block-actions .ce-block-settings .cdx-plugin-external-settings__item,.ce-toolbar__mobile-block-actions .ce-block-settings-block-settings-button{padding:0;height:32px;width:32px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;background:none;border:0;border-radius:7px;outline:none;margin:4px;color:inherit}.ce-toolbar__mobile-block-actions .ce-block-settings__item:hover,.ce-toolbar__mobile-block-actions .ce-block-settings .cdx-plugin-settings__item:hover,.ce-toolbar__mobile-block-actions .ce-block-settings .cdx-plugin-external-settings__item:hover,.ce-toolbar__mobile-block-actions .ce-block-settings-block-settings-button:hover{background:#0000000d}.ce-toolbar__mobile-block-actions .ce-block-settings__item svg,.ce-toolbar__mobile-block-actions .ce-block-settings .cdx-plugin-settings__item svg,.ce-toolbar__mobile-block-actions .ce-block-settings .cdx-plugin-external-settings__item svg,.ce-toolbar__mobile-block-actions .ce-block-settings-block-settings-button svg{width:20px;height:20px;fill:currentColor}.ce-toolbar__mobile-block-actions-block-settings-button{padding:0;height:32px;width:32px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;background:none;border:0;border-radius:7px;outline:none;margin:4px;color:inherit}.ce-toolbar__mobile-block-actions-block-settings-button:hover{background:#0000000d}.ce-toolbar__mobile-block-actions-block-settings-button svg{width:20px;height:20px;fill:currentColor}@supports (-ms-ime-align: auto){.ce-toolbar{margin-top:.5em}}.ce-toolbar__plus{position:absolute;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin-left:-43px;width:32px;height:32px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-size:14px;opacity:.65;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.ce-toolbar__plus:hover{opacity:1}@media all and (max-width: 1024px){.ce-toolbar__plus{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}.ce-toolbar__plus{padding:0;height:32px;width:32px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;background:none;border:0;border-radius:7px;outline:none;margin:4px;color:inherit;position:relative;overflow:hidden;opacity:1}.ce-toolbar__plus:hover{background:#0000000d}.ce-toolbar__plus svg{width:20px;height:20px;fill:currentColor}}.ce-toolbar__plus i{will-change:transform;-webkit-transition:-webkit-transform .1s ease-in;transition:-webkit-transform .1s ease-in;transition:transform .1s ease-in;transition:transform .1s ease-in,-webkit-transform .1s ease-in}@media all and (min-width: 1025px){.ce-toolbar__plus.clicked i{-webkit-transform:rotate(45deg);transform:rotate(45deg)}}.ce-toolbar__plus--hidden{display:none!important}.ce-toolbar__tools--expanded .ce-toolbar__toolbox-button--hidden{display:inline-block}.ce-toolbar__tools--expanded .ce-toolbar__toolbox-button[data-type=__show-more]{-webkit-transition:none!important;transition:none!important;-webkit-transform:rotate(180deg)!important;transform:rotate(180deg)!important}.cdx-icon--toolbar{width:32px;height:32px;line-height:32px}@media all and (max-width: 1024px){.cdx-icon--toolbar{width:40px;height:40px;line-height:40px}}@media all and (min-width: 1025px){.ce-toolbar__toolbox-button{-webkit-transform:scale(.7) translateX(-3px);transform:scale(.7) translate(-3px);will-change:transform}}@media all and (min-width: 1025px){.ce-toolbar__tools.opened .ce-toolbar__toolbox-button{-webkit-transform:none;transform:none;margin-right:17px}}.ce-toolbox{padding:6px;overflow-y:auto;overflow-x:hidden}@media all and (max-width: 1024px){.ce-toolbox{padding:8px}}.ce-toolbox__item,.ce-toolbox__not-found{padding:6px 6px 6px 10px;font-size:16px;line-height:1.5em;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:6px;list-style:none;white-space:nowrap}@media all and (max-width: 1024px){.ce-toolbox__item,.ce-toolbox__not-found{padding:10px 8px}}.ce-toolbox__item{cursor:pointer}.ce-toolbox__item:not(:last-of-type){margin-bottom:4px}@media all and (min-width: 1025px){.ce-toolbox__item:not(.no-hover):hover,.ce-toolbox__item--selected{background:#0000000d}}.ce-toolbox__item--active{background:#e3eefd;font-weight:500}.ce-toolbox__item--hidden{display:none}.ce-toolbox__item-icon,.ce-toolbox__item .cdx-icon,.ce-toolbox__item svg{-ms-flex-negative:0;flex-shrink:0;width:22px;height:22px;margin-right:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media all and (max-width: 1024px){.ce-toolbox__item-icon,.ce-toolbox__item .cdx-icon,.ce-toolbox__item svg{width:24px;height:24px;margin-right:12px}.ce-toolbox__item-icon i,.ce-toolbox__item .cdx-icon i,.ce-toolbox__item svg i{margin:0!important}.ce-toolbox__item-icon i,.ce-toolbox__item .cdx-icon i,.ce-toolbox__item svg i{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}}.ce-toolbox{display:none;-webkit-animation:popover-in .25s ease-in;animation:popover-in .25s ease-in;
139width:200px;z-index:2}@media all and (min-width: 1025px){.ce-toolbox{max-height:295px}}@media all and (max-width: 1024px){.ce-toolbox{position:fixed;top:auto;bottom:0;left:0;right:0;border:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 -4px 40px rgba(0,0,0,.22);box-shadow:0 -4px 40px #00000038;border-radius:12px 12px 0 0;margin:0;will-change:transform,opacity;padding:0}}@media all and (max-width: 1024px){.ce-toolbox__content{padding:0 8px 8px}}.ce-toolbox__item-icon,.ce-toolbox__item svg{display:inline-block;background-repeat:no-repeat;background-position:center center;margin:0}.ce-toolbox--above{top:auto!important}.ce-toolbox--above{bottom:-32px}.ce-toolbox.opened{display:block}.ce-toolbox__not-found{color:#000000a6;font-size:13px;display:none}.ce-toolbox__not-found--showed{display:block}.ce-toolbox-search{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f5f5f5;border:1px solid rgba(0,0,0,.03);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color .1s linear,border-color .1s linear,-webkit-box-shadow .1s linear;transition:background-color .1s linear,border-color .1s linear,-webkit-box-shadow .1s linear;transition:background-color .1s linear,border-color .1s linear,box-shadow .1s linear;transition:background-color .1s linear,border-color .1s linear,box-shadow .1s linear,-webkit-box-shadow .1s linear;font-size:16px;line-height:20px;padding:8px 11px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:36px;outline:none}.ce-toolbox-search-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:11px;color:#000000a6}.ce-toolbox-search-icon svg{width:20px;height:20px;fill:currentColor}.ce-toolbox-search input{background:transparent;font-size:inherit;color:inherit;border:0;padding:0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-appearance:none;min-width:0}.ce-toolbox-search input::-webkit-input-placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.ce-toolbox-search input::-moz-placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.ce-toolbox-search input:-ms-input-placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.ce-toolbox-search input::-ms-input-placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.ce-toolbox-search input::placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.ce-toolbox-search{margin-bottom:6px}@media all and (max-width: 1024px){.ce-toolbox-search{display:none}}.ce-toolbox .new{display:inline-block;background:#4da0da;border-radius:4px;color:#fff;font-size:10px;margin-left:3px;line-height:.9em;padding:3px 4px;vertical-align:middle}@media all and (max-width: 1024px){.codex-editor--toolbox-opened .ce-toolbar{-webkit-transform:none!important;transform:none!important}.codex-editor--toolbox-opened .ce-toolbar__plus,.codex-editor--toolbox-opened .ce-toolbar__mobile-block-actions{display:none!important}}.ce-block__actions{max-width:680px;margin:0 auto;position:relative;z-index:2;visibility:hidden;opacity:0;will-change:opacity;-webkit-transition:opacity .15s ease;transition:opacity .15s ease}.ce-block:not(.ce-block--empty):hover .ce-block__actions,.ce-block--settings-opened .ce-block__actions{opacity:1;visibility:visible}.ce-block--settings-opened{position:relative;z-index:4}.ce-block-action{position:absolute;right:100%;top:9px;margin-right:16px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.ce-block-action__settings-toggler{height:24px;width:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:4px}.ce-block-action__settings-toggler:hover{background:#0000000d}@media all and (max-width: 1024px){.ce-block-action__settings-toggler{display:none}}.ce-block--settings-opened .ce-block-action__settings-toggler{background:#0000000d}.ce-toolbar__settings-btn{display:inline-block;padding:6px;cursor:pointer}@media all and (max-width: 1024px){.ce-toolbar__settings-btn{height:40px;width:40px;padding:0;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}}@media all and (max-width: 1024px){.ce-toolbar__settings-btn i{line-height:40px}}.ce-toolbar__settings-btn:hover i{opacity:.8}.cdx-plugin-settings{padding:5px 0}.cdx-plugin-settings{padding:6px;overflow-y:auto;overflow-x:hidden}@media all and (max-width: 1024px){.cdx-plugin-settings{padding:8px}}.cdx-plugin-settings__item,.cdx-plugin-settings__not-found{padding:6px 6px 6px 10px;font-size:16px;line-height:1.5em;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:6px;list-style:none;white-space:nowrap}@media all and (max-width: 1024px){.cdx-plugin-settings__item,.cdx-plugin-settings__not-found{padding:10px 8px}}.cdx-plugin-settings__item{cursor:pointer}.cdx-plugin-settings__item:not(:last-of-type){margin-bottom:4px}@media all and (min-width: 1025px){.cdx-plugin-settings__item:not(.no-hover):hover,.cdx-plugin-settings__item--selected{background:#0000000d}}.cdx-plugin-settings__item--active{background:#e3eefd;font-weight:500}.cdx-plugin-settings__item--hidden{display:none}.cdx-plugin-settings__item-icon,.cdx-plugin-settings__item .cdx-icon,.cdx-plugin-settings__item svg{-ms-flex-negative:0;flex-shrink:0;width:22px;height:22px;margin-right:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media all and (max-width: 1024px){.cdx-plugin-settings__item-icon,.cdx-plugin-settings__item .cdx-icon,.cdx-plugin-settings__item svg{width:24px;height:24px;margin-right:12px}.cdx-plugin-settings__item-icon i,.cdx-plugin-settings__item .cdx-icon i,.cdx-plugin-settings__item svg i{margin:0!important}.cdx-plugin-settings__item-icon i,.cdx-plugin-settings__item .cdx-icon i,.cdx-plugin-settings__item svg i{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}}.cdx-plugin-settings{padding:0!important}.cdx-plugin-settings--horisontal{display:-webkit-box;display:-ms-flexbox;display:flex}@media all and (max-width: 1024px){.cdx-plugin-settings--horisontal{padding:7px 0}}.cdx-plugin-settings--horisontal .cdx-plugin-settings__item{-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:6px;margin:0 2px}.cdx-plugin-external-settings{display:-webkit-box;display:-ms-flexbox;display:flex}.cdx-plugin-external-settings__item{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;padding:0 9px;min-height:24px;line-height:24px;background:#0000000d;font-size:10px;font-weight:500;margin-left:1px;cursor:pointer}.cdx-plugin-external-settings__item:first-of-type{border-radius:4px 0 0 4px}.cdx-plugin-external-settings__item:last-of-type{border-radius:0 4px 4px 0}.cdx-plugin-external-settings__item:hover{background:#0001}.cdx-plugin-external-settings__item--active{color:#4086e0}.ce-block-settings{padding:6px;overflow-y:auto;overflow-x:hidden}@media all and (max-width: 1024px){.ce-block-settings{padding:8px}}.ce-block-settings__item,.ce-block-settings__not-found{padding:6px 6px 6px 10px;font-size:16px;line-height:1.5em;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:6px;list-style:none;white-space:nowrap}@media all and (max-width: 1024px){.ce-block-settings__item,.ce-block-settings__not-found{padding:10px 8px}}.ce-block-settings__item{cursor:pointer}.ce-block-settings__item:not(:last-of-type){margin-bottom:4px}@media all and (min-width: 1025px){.ce-block-settings__item:not(.no-hover):hover,.ce-block-settings__item--selected{background:#0000000d}}.ce-block-settings__item--active{background:#e3eefd;font-weight:500}.ce-block-settings__item--hidden{display:none}.ce-block-settings__item-icon,.ce-block-settings__item .cdx-icon,.ce-block-settings__item svg{-ms-flex-negative:0;flex-shrink:0;width:22px;height:22px;margin-right:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}@media all and (max-width: 1024px){.ce-block-settings__item-icon,.ce-block-settings__item .cdx-icon,.ce-block-settings__item svg{width:24px;height:24px;margin-right:12px}.ce-block-settings__item-icon i,.ce-block-settings__item .cdx-icon i,.ce-block-settings__item svg i{margin:0!important}.ce-block-settings__item-icon i,.ce-block-settings__item .cdx-icon i,.ce-block-settings__item svg i{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}}.ce-block-settings{padding:0!important}.ce-block-settings{z-index:4}.ce-block-settings__plugin,.ce-block-settings__common{padding:6px}@media all and (max-width: 1024px){.ce-block-settings__plugin,.ce-block-settings__common{padding:0 8px 8px}}.ce-block-settings__plugin{border-bottom:1px solid rgba(0,0,0,.1)}@media all and (max-width: 1024px){.ce-block-settings__plugin{padding-top:0;margin-bottom:8px}}.ce-block-settings__plugin:empty{display:none}@media all and (max-width: 1024px){.ce-block-settings__common{padding-bottom:10px}}.remove-tool .cdx-icon--remove-block{-webkit-transition:-webkit-transform .15s ease;transition:-webkit-transform .15s ease;transition:transform .15s ease;
139transition:transform .15s ease,-webkit-transform .15s ease;will-change:transform}.remove-tool--confirm{background:#fff2f2;color:#fe4d4a}.remove-tool--confirm .cdx-icon--remove-block{background-image:url("data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20fill='%23F01'%20fill-rule='evenodd'%20d='M7.614%2018.797c.304.38.736.637%201.216.722h.001l4.646.82a2.004%202.004%200%200%200%202.26-1.378l2.733-8.789a.998.998%200%200%201%201.905.592l-2.733%208.79a3.996%203.996%200%200%201-4.512%202.75l-4.645-.82a3.997%203.997%200%200%201-3.299-4.127L5.6%208.67l-1%20.176a.997.997%200%201%201-.348-1.964l3.942-.695L8.02%205.2a2.497%202.497%200%200%201%202.026-2.895L13%201.784a2.497%202.497%200%200%201%202.893%202.026l.174.987%203.942-.695a.998.998%200%201%201%20.346%201.965L7.613%208.314l-.435%209.138c-.023.487.132.965.436%201.345Zm6.489-13.653-3.944.695-.175-.987a.503.503%200%200%201%20.408-.583l2.955-.52a.502.502%200%200%201%20.582.407l.174.988Zm-3.037%205.961a.997.997%200%200%200-1.519.668l-.78%204.432a.997.997%200%201%200%201.963.347l.782-4.432a.996.996%200%200%200-.446-1.015Zm3.94.695a.997.997%200%200%200-.364-.141v-.001a1%201%200%200%200-1.156.81l-.78%204.432a.998.998%200%200%200%201.964.346l.782-4.432a.997.997%200%200%200-.447-1.014Z'/%3e%3c/svg%3e");-webkit-transform:rotate(-10deg) scale(1.1);transform:rotate(-10deg) scale(1.1)}.remove-tool--confirm:hover{background:#fff0f0!important}@media all and (max-width: 1024px){.anchor-tool{display:none}}.anchor-tool__input{max-width:100%;border:0;outline:none;padding:12px 0;margin:-12px 0;font-size:inherit;color:#000;height:1em}.ce-block__indicators{max-width:680px;margin:0 auto;position:relative}@media all and (max-width: 1024px){.ce-block__indicators{display:none}}.ce-block__indicators-container{position:absolute;left:100%;top:10px;display:-webkit-box;display:-ms-flexbox;display:flex}.ce-block--empty .ce-block__indicators{display:none}.ce-block-indicator{cursor:pointer;display:none;margin-left:14px}.ce-block-indicator--cover,.ce-block-indicator--hidden{right:0}.ce-block-indicator--active{display:block;color:#4684d9}.ce-block-indicator__icon{opacity:.2;color:inherit}.ce-block-indicator__icon svg{width:20px;height:20px;fill:currentColor}.ce-block-indicator--active .ce-block-indicator__icon,.ce-block-indicator:hover .ce-block-indicator__icon{opacity:1}.ce-block:hover .ce-block-indicator{opacity:1;visibility:visible}.codex-editor--covers-limit-exceeded .ce-block-indicator--cover:not(.ce-block-indicator--active){opacity:.4}.codex-editor--covers-limit-exceeded .ce-block-indicator--cover:not(.ce-block-indicator--active):hover .ce-block-indicator__icon{opacity:.2!important}.cdx-notifications-block{position:fixed;bottom:0;left:0;padding:15px}.cdx-notification__notification-appending div{-webkit-animation:notification .1s infinite ease-in;animation:notification .1s infinite ease-in}@-webkit-keyframes notification{0%{-webkit-transform:translateY(20px);transform:translateY(20px)}to{-webkit-transform:translateY(0px);transform:translateY(0)}}@keyframes notification{0%{-webkit-transform:translateY(20px);transform:translateY(20px)}to{-webkit-transform:translateY(0px);transform:translateY(0)}}.cdx-notification{position:relative;z-index:999;width:250px;margin-top:15px;padding:15px;background:#fff;border:1px solid #e7e9f1;-webkit-box-shadow:0px 2px 5px 0px rgba(16,23,49,.05);box-shadow:0 2px 5px #1017310d;border-radius:3px;font-size:14px}.cdx-notification__message{margin-bottom:15px}.cdx-notification__ok-btn,.cdx-notification__cancel-btn{padding:4px 7px;cursor:pointer;background:#4584d8;color:#fff;min-width:50px;display:inline-block;text-align:center;border-radius:2px}.cdx-notification__cancel-btn{margin-left:10px;background:#dae0e8;color:inherit}.cdx-notification__cancel-btn{background:#cad5e2}.cdx-notification__ok-btn:hover{background:#3d77c3}.cdx-notification__input{display:block;width:100%;margin-bottom:15px;border:none;outline:none;padding:2px 0;font-size:inherit;border-bottom:2px solid #d1d3da}.cdx-notification-error{border-left:4px solid rgb(255,112,112)}.cdx-notification-warn{border-left:4px solid rgb(79,146,247)}.cdx-helper{position:absolute;z-index:4;max-width:280px;top:0;left:0;background:#242533;padding:10px 14px;border-radius:4px;cursor:default;word-wrap:break-word;line-height:1.5em;font-size:11px;color:#cfd2e0;opacity:0;visibility:hidden;will-change:opacity;-webkit-transition:opacity .15s ease;transition:opacity .15s ease;-webkit-box-shadow:0 18px 33px rgba(20,29,45,.38);box-shadow:0 18px 33px #141d2d61;text-align:center}@media all and (max-width: 1024px){.cdx-helper{display:none}}.cdx-helper.opened{opacity:1;visibility:visible}.cdx-helper a{color:inherit;-webkit-text-decoration:none;text-decoration:none;display:block;word-break:break-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cdx-helper a:hover{color:#fff}.cdx-helper:before{content:"";position:absolute;top:0;left:50%;margin-left:-7px;margin-top:-12px;border-style:solid;border-width:7px;border-color:transparent transparent #242533 transparent}.cdx-inline-toolbar{background:#fff;-webkit-box-shadow:0px 4px 10px rgba(0,0,0,.15),0px 0px 1px rgba(0,0,0,.25);box-shadow:0 4px 10px #00000026,0 0 1px #00000040;border-radius:8px;-webkit-animation:popover-in .25s ease-in;animation:popover-in .25s ease-in;position:absolute;
139left:0;top:0;z-index:999;color:#000;-webkit-transition:opacity .15s ease,-webkit-transform .1s ease;transition:opacity .15s ease,-webkit-transform .1s ease;transition:opacity .15s ease,transform .1s ease;transition:opacity .15s ease,transform .1s ease,-webkit-transform .1s ease;overflow:hidden;will-change:left,top,opacity,transform;-webkit-transform:scale(1.05);transform:scale(1.05);visibility:hidden;opacity:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;padding:4px}.cdx-inline-toolbar--opened{visibility:visible;opacity:1;-webkit-transform:none;transform:none}@media all and (max-width: 1024px){.cdx-inline-toolbar--opened{-webkit-transform:translateY(200%);transform:translateY(200%)}}.cdx-inline-toolbar__button-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.cdx-inline-toolbar__button-wrapper--hided{display:none}.cdx-inline-toolbar__button,.cdx-inline-toolbar__link-remover{padding:0;height:32px;width:32px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;background:none;border:0;border-radius:7px;outline:none;margin:4px;color:inherit}.cdx-inline-toolbar__button:hover,.cdx-inline-toolbar__link-remover:hover{background:#0000000d}.cdx-inline-toolbar__button svg,.cdx-inline-toolbar__link-remover svg{width:20px;height:20px;fill:currentColor}.cdx-inline-toolbar__button,.cdx-inline-toolbar__link-remover{margin:0}.cdx-inline-toolbar__input{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;background-color:#f5f5f5;border:1px solid rgba(0,0,0,.03);border-radius:8px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color .1s linear,border-color .1s linear,-webkit-box-shadow .1s linear;transition:background-color .1s linear,border-color .1s linear,-webkit-box-shadow .1s linear;transition:background-color .1s linear,border-color .1s linear,box-shadow .1s linear;transition:background-color .1s linear,border-color .1s linear,box-shadow .1s linear,-webkit-box-shadow .1s linear;font-size:16px;line-height:20px;padding:8px 11px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:36px;outline:none}.cdx-inline-toolbar__input-icon{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:11px;color:#000000a6}.cdx-inline-toolbar__input-icon svg{width:20px;height:20px;fill:currentColor}.cdx-inline-toolbar__input input{background:transparent;font-size:inherit;color:inherit;border:0;padding:0;margin:0;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;-webkit-appearance:none;min-width:0}.cdx-inline-toolbar__input input::-webkit-input-placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.cdx-inline-toolbar__input input::-moz-placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.cdx-inline-toolbar__input input:-ms-input-placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.cdx-inline-toolbar__input input::-ms-input-placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.cdx-inline-toolbar__input input::placeholder{color:#000000a6;font-size:inherit;line-height:inherit}.cdx-inline-toolbar__input{width:185px;height:32px;display:none}.cdx-inline-toolbar--link-input-opened .cdx-inline-toolbar__button[data-type=link]:hover{background:none}.cdx-inline-toolbar--link-input-opened .cdx-inline-toolbar__input{display:block}.cdx-inline-toolbar--link-input-opened .cdx-inline-toolbar__button-wrapper:not([data-type=link]){display:none}.cdx-inline-toolbar__link-remover{display:none}.cdx-inline-toolbar__link-remover:before{display:inline-block;content:"";width:12px;height:12px;background:url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.36804 11.7677L5.86998 7.2628l-4.52056 4.5049c-.30924.30973-.80965.30973-1.1189 0C.07873 11.6213 0 11.4242 0 11.21024c0-.20835.
13907872-.40544.23053-.55748L4.7567 6.14782.2474 1.63162c-.30925-.3097-.30925-.8165 0-1.12622.298-.29845.8209-.29845 1.1189 0L5.8812 5.02722 10.35118.57297c.30924-.30408.80965-.30408 1.1189 0 .1518.15204.23052.34913.23052.5575 0 .21397-.07872.41106-.23053.55747L7.00012 6.14782l4.48682 4.49366c.30924.30972.30924.81652 0 1.12623-.1462.14642-.3486.2309-.56226.2309-.20803 0-.41045-.07884-.55664-.2309' fill='%23000' fill-rule='evenodd'/%3E%3C/svg%3E") no-repeat;opacity:.5}.cdx-inline-toolbar--link-input-opened .cdx-inline-toolbar__button-wrapper--active .cdx-inline-toolbar__link-remover{display:inline-block}.cdx-inline-toolbar__button-wrapper--active{color:#4684d9}.cdx-inline-toolbar__link-back{width:7px;padding:12px 0 12px 14px;background:url("data:image/svg+xml,%3Csvg width='7' height='12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M.237 5.406L5.173.246a.78.78 0 0 1 1.137 0 .868.868 0 0 1 0 1.189L1.943 6l4.367 4.565a.868.868 0 0 1 0 1.189.78.78 0 0 1-1.137 0L.237 6.594a.859.859 0 0 1 0-1.187v-.001z' fill='%23000'/%3E%3C/svg%3E") center center no-repeat;cursor:pointer;display:none}.cdx-inline-toolbar__link-back:hover{background-color:#f3f5f7}.cdx-inline-toolbar--link-input-opened .cdx-inline-toolbar__link-back{display:inline-block}.ce-popover{background:#fff;-webkit-box-shadow:0px 4px 10px rgba(0,0,0,.15),0px 0px 1px rgba(0,0,0,.25);box-shadow:0 4px 10px #00000026,0 0 1px #00000040;border-radius:8px;-webkit-animation:popover-in .25s ease-in;animation:popover-in .25s ease-in;position:absolute;top:100%;margin-top:5px;left:0;z-index:2;-ms-scroll-chaining:none;overscroll-behavior:contain}@media all and (max-width: 1024px){.ce-popover{position:fixed;top:auto;bottom:0;left:0;right:0;border:0;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-box-shadow:0 -4px 40px rgba(0,0,0,.22);box-shadow:0 -4px 40px #00000038;border-radius:12px 12px 0 0;margin:0;will-change:transform,opacity;padding:0}}.ce-popover--above{top:auto;bottom:100%;margin-bottom:5px}@media all and (min-width: 1025px){.ce-popover__title,.ce-popover__close{display:none!important}}.ce-popover__title{font-size:20px;font-weight:500;line-height:28px;padding:16px 16px 12px}.ce-popover__close{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;width:30px;height:30px;right:15px;top:15px;opacity:.5}.ce-popover__close:hover{opacity:1}.ce-popover__close svg{width:14px;height:14px}@media all and (max-width: 1024px){.ce-popover__content{max-height:360px;overflow-y:auto;scroll-behavior:smooth}}.ce-stub{padding:6px 0}.ce-stub:after{content:attr(data-text);display:block;padding:10px 20px;background-color:#fffbe7}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var gx=e=>{throw TypeError(e)},bx=(e,t,n)=>t.has(e)||gx("Cannot "+n),Ge=(e,t,n)=>(bx(e,t,"read from private field"),n?n.call(e):t.get(e)),Fee=(e,t,n)=>t.has(e)?gx("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Uee=(e,t,n,s)=>(bx(e,t,"write to private field"),t.set(e,n),n);function Kn(e,t="log",n=void 0,s=""){switch(s){case"blue":s="background: #d7edff";break;case"red":s="background: #ffd9e6";break;case"green":s="background: #15ae45; color: #fff; padding: 3px; border-radius: 3px; display: inline-block";break;case"yellow":s="background: #fff08e";break}n?e=`[CodeX Editor]: ${s?"%c":""}`+e:(n=e||"undefined",e=`[CodeX Editor]: ${s?"%c ":""}%o`);try{"console"in window&&window.console[t]&&(s?window.console[t](e,s,n):window.console[t](e,n))}catch{}}function Je(e,t=void 0,n={}){const s=document.createElement(e);if(Array.isArray(t)&&t.length?s.classList.add(...t):t&&(s.className=t),n&&Object.keys(n).length)for(const i in n)Object.prototype.hasOwnProperty.call(n,i)&&(s[i]=n[i]);return s}function yx(e){return Je("span",["cdx-icon",`cdx-icon--${e}`])}function Sh(e){return document.createTextNode(e)}function wx(e,t){e.parentNode.insertBefore(t,e.nextSibling)}function ea(e,t){e.parentNode.insertBefore(t,e)}function Hee(e,t){e.parentNode.replaceChild(t,e)}function $_(e){return e.tagName&&["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"].includes(e.tagName)}function kg(e,t=!1){if(Uo(e))return e;const n=document.createTreeWalker(e,NodeFilter.SHOW_ALL,{acceptNode:a=>NodeFilter.FILTER_ACCEPT},!1);let s,i;
139const o=t?"lastChild":"firstChild",r=t?"previousSibling":"nextSibling";for(;i=n[o]();){if($_(i)&&i[r]&&(i=i[r]),s=i,s&&s.nodeType===Node.TEXT_NODE){s.textContent.trim()===""&&$_(s.parentNode)&&(s=s.parentNode);break}n.currentNode=i}return s}function Vee(e){const t=["IMG","IFRAME","VIDEO","AUDIO","SOURCE","INPUT","TEXTAREA","twitterwidget"],n=e.querySelectorAll(t.join());return t.includes(e.tagName.toUpperCase())||n.length!==0}function lr(e){return!e||e.textContent.replace("â","").trim().length===0}function L_(e){return e&&e.tagName&&["BR","WBR"].includes(e.tagName)}function Uo(e){return e&&["INPUT","TEXTAREA"].includes(e.tagName)}function _x(e,t=!1){const n=document.createElement("DIV"),s=document.createElement("DIV");let i;const o=["DIV","P","H1","H2","H3","H4","H5","H6","CODE","PRE","BLOCKQUOTE","UL","OL","LI"];let r;n.innerHTML=e,i=document.createElement("P");let a;for(let l=0;l<n.childNodes.length;l++)if(a=n.childNodes[l],r=o.indexOf(a.tagName)!==-1,r)if(i.childNodes.length&&(s.appendChild(i.cloneNode(!0)),i=null,i=document.createElement("P")),a.tagName==="DIV"){const c=document.createElement("P");c.innerHTML=a.innerHTML,s.appendChild(c)}else s.appendChild(a.cloneNode(!0));else i.appendChild(a.cloneNode(!0)),l===n.childNodes.length-1&&s.appendChild(i.cloneNode(!0));return t?s.children:s.innerHTML}function si(e){return e&&typeof e=="object"&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE}function O_(e,t){let n=e;const s=[];for(;n&&n.contentEditable!=="true";){const i=t==="left"?"previousSibling":"nextSibling";for(;n[i];)n=n[i],s.push(n);n=n.parentNode}return s.every(i=>lr(i))}function Bp(e){let t=e.parentElement;for(;t;){const{overflow:n}=window.getComputedStyle(t);if(n.split(" ").some(s=>s==="auto"||s==="scroll"))return t;t=t.parentElement}return document.documentElement}function zee(e){return e===document.documentElement?window.scrollY:e.scrollTop}function Ws(e,t={}){const n=new CustomEvent(e,{detail:t});document.dispatchEvent(n)}const la='[contenteditable="true"], textarea, input:not([type]), input[type="text"]';class ta{constructor(t){this.block=t}get id(){return this.block.id}get type(){return this.block.type}get wrapper(){return this.block.wrapper}dispatchModifiedEvent(){this.block.dispatchModifiedEvent()}set highlighted(t){this.block.highlighted=t}get highlighted(){return this.block.highlighted}set selected(t){this.block.selected=t}get selected(){return this.block.selected}set dragged(t){this.block.dragged=t}get dragged(){return this.block.dragged}set dragOver(t){this.block.dragOver=t}get dragOver(){return this.block.dragOver}get cover(){return this.block.cover}set cover(t){this.block.cover=t}get hidden(){return this.block.hidden}set hidden(t){this.block.hidden=t}get anchor(){return this.block.anchor}set anchor(t){this.block.anchor=t}get pluginInstance(){return this.block.pluginInstance}}function Wee(e){const t={};return Object.values(e).forEach(n=>{t[n.id]=new ta(n)}),t}var ze;class jee{constructor(t){Fee(this,ze),Uee(this,ze,t)}get state(){return Ge(this,ze).state}save(){return Ge(this,ze).saver.save()}wrapWithParagraphs(t){return _x(t)}sanitize(t,n,s=!1){return Ge(this,ze).sanitizer.clean(t,n,s)}insertBlockBefore(t=void 0,n=!1){const s=Ge(this,ze).blocks.append({},t-1,!0);n&&(Ge(this,ze).caret.setToBlock(s),Ge(this,ze).toolbar.move(),s.isEmpty&&(Ge(this,ze).toolbar.open(),Ge(this,ze).toolbar.showPlusButton()))}insertBlockAfter(t=void 0,n=!1){const s=Ge(this,ze).blocks.append({},t,!1);n&&(Ge(this,ze).caret.setToBlock(s),Ge(this,ze).toolbar.move(),s.isEmpty&&(Ge(this,ze).toolbar.open(),Ge(this,ze).toolbar.showPlusButton()))}insertBlock(t,n,s,i=!1){const o=Ge(this,ze).blocks.append({type:t,data:n},s,!0);return i&&window.requestAnimationFrame(()=>{Ge(this,ze).caret.setToBlock(o)}),new ta(o)}getCurrentBlockId(){return Ge(this,ze).blocks.currentBlockId?Ge(this,ze).blocks.currentBlockId:void 0}setCurrentBlockById(t){const n=Ge(this,ze).blocks.getBlockById(t);if(!n)throw new Error("[CodeX Editor] setCurrentBlock: Incorrect BlockDTO was passed");Ge(this,ze).blocks.currentBlock=n}oustBlock(t,n,s){const i=Ge(this,ze).blocks.getBlockById(t);if(!i)throw new Error("[CodeX Editor] oustBlock: Incorrect Block's ID was passed");
139if(!n.type||!Object.keys(Ge(this,ze).toolsManager.available).includes(n.type))throw new Error("[CodeX Editor] oustBlock: Incorrect new Block type:"+n.type);const o=Ge(this,ze).blocks.switch({blockToReplace:i,newBlockType:n.type,newBlockData:n.data});Ws("cdxBlockReplaced",{from:i.type,to:n.type}),typeof s=="function"&&s(o)}removeBlock(t){const n=Ge(this,ze).blocks.getBlockById(t);if(!n)throw new Error("[CodeX Editor] removeBlock: Incorrect Block's ID was passed");Ge(this,ze).blocks.remove(n),Ge(this,ze).blocks.count===0&&(Ge(this,ze).blocks.workingBlockChanged(),Ge(this,ze).renderer.addInitialBlock())}fill(t){Ge(this,ze).renderer.clear(),t&&(Ge(this,ze).config.data=t,Ge(this,ze).renderer.makeBlocksFromData()),Ge(this,ze).toolbar.close(),window.setTimeout(()=>{Ge(this,ze).toolbar.close()},1e3)}focus(t=!1){if(!t){Ge(this,ze).ui.nodes.redactor.click();return}Ge(this,ze).caret.setToBlock(Ge(this,ze).blocks.firstBlock)}focusContenteditable(t){Ge(this,ze).caret.set(t)}navigateNext(){Ge(this,ze).caret.goNext()}navigatePrevious(){Ge(this,ze).caret.goPrevious()}hideBlockActions(){console.warn("Paragraph API: hideBlockActions() method is deprecated. Use closeEveryBlockSettings() instead "),this.closeEveryBlockSettings()}notify(t){Ge(this,ze).notifications.show(t)}destroy(t){Ge(this,ze).destroyer.destroy(t)}checkIndicatorsByBlockId(t){Ge(this,ze).blockIndicatorsManager.checkIndicatorsByBlockId(t)}closeEveryBlockSettings(){Ge(this,ze).blockActionsManager.closeEveryBlockSettings()}get toolbar(){return{close:()=>{Ge(this,ze).toolbar.close()},open:()=>{Ge(this,ze).toolbar.open()}}}get listeners(){return{add:Ge(this,ze).listeners.add,remove:Ge(this,ze).listeners.remove}}getSelectedBlocks(){return Ge(this,ze).blocks.selected.map(t=>new ta(t))}getBlocks(){return Wee(Ge(this,ze).blocks.blocks)}getBlocksOrdered(){return Ge(this,ze).blocks.getBlocksOrdered().map(t=>new ta(t))}getBlockById(t){const n=Ge(this,ze).blocks.getBlockById(t);return n?new ta(n):null}getBlockPositionById(t){const n=Ge(this,ze).blocks.getBlockById(t);return n?Ge(this,ze).blocks.getBlockPosition(n):null}getBlockByChildren(t){const n=Ge(this,ze).blocks.getBlockByChildren(t);return n?new ta(n):null}get dragScroller(){return{disable:()=>Ge(this,ze).dragScroller.disable(),enable:()=>Ge(this,ze).dragScroller.enable()}}checkElementFit(t){return Ge(this,ze).fitManager.check(t)}getUiNodes(){return Ge(this,ze).ui.nodes}get config(){return Ge(this,ze).config}openBlockSettings(){Ge(this,ze).blocks.currentBlock.actions.open("settings")}updateCurrentInputIndex(){Ge(this,ze).blocks.currentBlock.updateCurrentInputIndex()}}ze=new WeakMap;class kx{constructor({api:t,block:n,handle:s}){this.api=t,this.block=n,this.handle=s,this.selectedBlocksWrapper=null,this.addEvents()}static prepare(t){const n=t.getUiNodes();t.listeners.add(n.redactor,"drop",function(){const s=Object.values(t.getBlocks()),i=s.find(a=>a.dragged),o=s.find(a=>a.dragOver),r=n.redactor.querySelector('[name="cdx-group-wrapper"]');if(!(!i&&!r))if(!r)ea(o.wrapper,i.wrapper);else{const a=Array.from(r.childNodes).map(l=>t.getBlockByChildren(l));a.find(l=>l.id===o.id)?a.forEach(l=>{l.dragged=!1,ea(r,l.wrapper)}):a.forEach(l=>{l.dragged=!1,ea(o.wrapper,l.wrapper)}),t.listeners.remove(r),r.remove(),Object.entries(t.getBlocks()).forEach(([l,c])=>{c.dragOver=!1})}},!1)}get groupedBlocks(){return this.selectedBlocksWrapper?Array.from(this.selectedBlocksWrapper.childNodes).map(t=>this.api.getBlockByChildren(t)):[]}get isSomeBlockDragged(){return Object.values(this.api.getBlocks()).find(t=>t.dragged)||this.selectedBlocksWrapper}addEvents(){this.api.listeners.add(this.handle,"mousedown",()=>{this.dragPointerPressed()},!1),this.api.listeners.add(this.handle,"mouseup",()=>{this.dragEnd()},!1),this.api.listeners.add(this.block.wrapper,"dragstart",t=>{this.dragStart(t)},!1),this.api.listeners.add(this.block.wrapper,"dragenter",()=>{this.dragEnter()},!1),this.api.listeners.add(this.block.wrapper,"dragover",t=>{this.dragOver(t)},!1),this.api.listeners.add(this.block.wrapper,"dragend",()=>{this.dragEnd()},!1)}destroy(){this.api.listeners.remove(this.block.wrapper,"dragstart"),this.api.listeners.remove(this.block.wrapper,"dragenter"),this.api.listeners.remove(this.block.wrapper,"dragover"),this.api.listeners.remove(this.block.wrapper,"dragend"),this.selectedBlocksWrapper&&this.api.listeners.remove(this.selectedBlocksWrapper),this.selectedBlocksWrapper=null,this.api=null,this.handle=null,this.block=null}dragPointerPressed(){if(this.api.getSelectedBlocks().length<2){this.block.wrapper.draggable=!0;return}this.wrapSelectedBlocks()}wrapSelectedBlocks(){const t=this.api.getSelectedBlocks();this.selectedBlocksWrapper=Je("div"),ea(t[0].wrapper,this.selectedBlocksWrapper),t.forEach(n=>{this.selectedBlocksWrapper.appendChild(n.wrapper)}),this.selectedBlocksWrapper.draggable=!0,this.selectedBlocksWrapper.setAttribute("name","cdx-group-wrapper"),this.api.listeners.add(this.selectedBlocksWrapper,"dragstart",n=>{this.dragStartSeveralBlocks(n)},!1),this.api.listeners.add(this.selectedBlocksWrapper,"dragend",n=>{this.dragEnd(n)},!1)}unwrapSelectedBlocks(){Array.from(this.selectedBlocksWrapper.childNodes).forEac
139h(t=>{ea(this.selectedBlocksWrapper,t)}),this.api.listeners.remove(this.selectedBlocksWrapper),this.selectedBlocksWrapper.remove(),this.selectedBlocksWrapper=null}clearDragOver(){Object.entries(this.api.getBlocks()).forEach(([t,n])=>{n.dragOver=!1})}dragStart(t){Ws("cdxDragClick",{}),this.block.wrapper.draggable&&(this.api.toolbar.close(),t.dataTransfer.setData("text/plain",""),t.dataTransfer.dropEffect="copy",this.block.dragged=!0,this.api.dragScroller.enable())}dragStartSeveralBlocks(t){this.selectedBlocksWrapper&&(this.api.toolbar.close(),t.dataTransfer.setData("text/plain",""),t.dataTransfer.dropEffect="copy",this.groupedBlocks.forEach(n=>{n.dragged=!0}))}dragOver(t){this.isSomeBlockDragged&&t.preventDefault()}dragEnter(){this.isSomeBlockDragged&&(this.clearDragOver(),this.block.dragOver=!0)}dragEnd(){if(this.selectedBlocksWrapper)this.groupedBlocks.forEach(t=>{t.dragged=!1,t.dispatchModifiedEvent(),this.api.checkIndicatorsByBlockId(t.id)}),this.unwrapSelectedBlocks();else{if(this.block.wrapper.draggable=!1,!this.isSomeBlockDragged)return;this.block.dragged=!1,this.block.dispatchModifiedEvent(),this.api.checkIndicatorsByBlockId(this.block.id)}this.clearDragOver(),this.api.dragScroller.disable()}}class Gee{constructor(t,n){this.editor=t,this.api=n}prepareActions(){this.editor.config.hideToolbar||kx.prepare(this.api)}closeEveryBlockSettings(){this.editor.config.hideToolbar||Object.values(this.editor.blocks.blocks).forEac
139h(t=>{t.actions.settings.close()})}}const B_="prepare",qee="contentless",Ch="inlineToolbar",Sx="makeSettings",Kee="makeExternalSettings",Cx="makeMobileToolbarSettings",Ex="pastePatternParsed",Sg="appendCallback",j0="markdown",Yee="renderOnPastePatterns",Xee="handleTags",Qee="handleFiles",xx="onPaste",Cg="config",Tx="keydownCallback",Jee="fixed",Ax="pasteCallback",Px="isNew",D_="inlineToolbar",xt={BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,DOWN:40,RIGHT:39,DELETE:46,Z:90,Y:89,A:65,B:66,K:75,I:73,C:67,X:88,V:86};class _r{constructor(){this.savedRange=null}save(){const t=window.getSelection(),n=t&&t.rangeCount?t.getRangeAt(0):null;this.savedRange=n}restore(){const t=window.getSelection();t.empty(),t.addRange(this.savedRange)}static get isEmpty(){const t=window.getSelection(),n=t.toString();return t.isCollapsed||n.trim().length===0}static get text(){return window.getSelection().toString().trim()}static get atStart(){const t=window.getSelection();let n=t.anchorOffset,s=t.anchorNode;if(!s)return!1;let i=(si(s)?s:s.parentNode).closest(la);i||(i=s.querySelector(la));const o=kg(i);if(si(s)&&lr(s)&&!o)return n===0;if(Uo(o))return o.selectionEnd===0;si(s)&&(n===0?(s=s.childNodes[n],n=0):(s=s.childNodes[0],n=s.textContent.length));const r=lr(s)?s.textContent.length:s.textContent.search(/\S/),a=n<=r;return s!==o&&(lr(o)||L_(s))&&O_(s,"left")&&a?!0:o===s&&a}static get atEnd(){const t=window.getSelection();let n=t.anchorOffset,s=t.anchorNode;if(!t.anchorNode)return!1;let i=(si(s)?s:s.parentNode).closest(la);i||(i=s.querySelector(la));const o=kg(i,!0);if(si(s)&&lr(s)&&!o)return n===0;if(Uo(o))return o.selectionEnd===o.value.length;si(s)&&(n===0?(s=s.childNodes[n],n=s.textContent.length):(s=s.childNodes[0],n=s.textContent.length));const r=lr(s)?s.textContent.length:s.textContent.replace(/\s+$/,"").length,a=n>=r;return s!==o&&(lr(o)||L_(s))&&O_(s,"right")&&a?!0:o===s&&a}static get rect(){let t=document.selection,n,s={x:0,y:0,width:0,height:0};if(t&&t.type!=="Control")return n=t.createRange(),s.x=n.boundingLeft,s.y=n.boundingTop,s.width=n.boundingWidth,s.height=n.boundingHeight,s;if(!window.getSelection)return console.warn("Method window.getSelection is not supported"),s;if(t=window.getSelection(),t.rangeCount===null||isNaN(t.rangeCount))return console.warn("Method selection.rangeCount is not supported"),s;if(n=t.getRangeAt(0).cloneRange(),n.getBoundingClientRect&&(s=n.getBoundingClientRect()),s.x===0&&s.y===0){const i=document.createElement("span");if(i.getBoundingClientRect){i.appendChild(document.createTextNode("â")),n.insertNode(i),s=i.getBoundingClientRect();const o=i.parentNode;o.removeChild(i),o.normalize()}}return s}}function Zee(){return"_"+Math.random().toString(36).substr(2,9)}class ete{constructor(t,n){this.api=t,this.actions={settings:dr},this.actionsInstances={settings:null},!this.api.config.hideToolbar&&this.addActionsToBlock(n)}addActionsToBlock(t){Object.entries(this.actions).forEach(([n,s])=>{const i=new s(this.api,t),o=i.render();this[n]=i,t.addAction(o),this.actionsInstances[n]=i})}renderMobileBlockSettings(){return this.settings.renderBlockSettingsPanel(!0)}open(t){this.actionsInstances[t].open()}destroy(){Object.values(this.actionsInstances).forEach(t=>t.destroy()),this.actionsInstances={settings:null},this.api=null}}class Kt{constructor({type:t,toolClass:n,data:s,api:i}){this.type=t,this.id=Zee(),this.data=s,this.pluginConfig=n,this.pluginClass=n.class,this.api=i,typeof this.pluginClass=="function"?this.pluginInstance=new this.pluginClass({api:i,config:this.pluginConfig[Cg],block:new ta(this)}):(this.pluginInstance=this.pluginClass,typeof this.pluginClass.setApi=="function"&&this.pluginClass.setApi(i)),this.wrapper=this.compose(),this.mutationObserver=new MutationObserver(()=>{this.contentChanged()}),this.blockModifiedEvent=new CustomEvent("blockModified",{detail:{block:this.wrapper}}),this.inputs=[],this.currentInputIndex=null,this.updateInputs(),this.empty=this.isEmpty,this.indicatorsState={anchor:"",cover:!1,hidden:!1},this.actions=new ete(i,this),this.dispatchModifiedEvent()}static get CSS(){return{wrapper:"ce-block",wrapperEmpty:"ce-block--empty",wrapperDragOver:"ce-block--dragover",wrapperDragged:"ce-block--dragged",content:"ce-block__content",blockHighlighted:"ce-block--focused",blockSelected:"ce
139-block--selected",blockInFeed:"ce-block--feed-mode",blockWithAnchor:"ce-block--anchor",indicators:"ce-block__indicators",indicatorsContainer:"ce-block__indicators-container",actions:"ce-block__actions"}}get content(){return this.wrapper.querySelector("."+Kt.CSS.content).children[0]}compose(){const t=Je("div",Kt.CSS.wrapper),n=Je("div",Kt.CSS.content),s=Je("div",Kt.CSS.indicators),i=Je("div",Kt.CSS.indicatorsContainer),o=Je("div",Kt.CSS.actions);return n.appendChild(this.render(this.data)),s.appendChild(i),t.appendChild(s),t.appendChild(o),t.appendChild(n),t.dataset.id=this.id,t}render(t){if(typeof this.pluginInstance.render!="function")throw Error(`Plugin «${this.type}» must have «render» method`);return this.pluginInstance.render(t)}addIndicator(t){this.wrapper.querySelector("."+Kt.CSS.indicatorsContainer).appendChild(t)}addAction(t){this.wrapper.querySelector("."+Kt.CSS.actions).appendChild(t)}renderMobileActions(){return this.actions.renderMobileBlockSettings()}get providedApiMethods(){const t=this.pluginConfig[D_];return{[Sx]:this.pluginInstance.makeSettings,[Kee]:this.pluginInstance.makeExternalSettings,[Cx]:this.pluginInstance.makeMobileToolbarSettings,[Ex]:this.pluginInstance.pastePatternParsed,[Sg]:this.pluginInstance.appendCallback,[xx]:this.pluginInstance.onPaste,[Ch]:t!==void 0?t:this.pluginClass.inlineToolbar,[j0]:this.pluginClass.markdown}}get externalConfig(){return{[Tx]:this.pluginConfig.keydownCallback,[Cg]:this.pluginConfig.config,[Jee]:this.pluginConfig.fixed,[Ax]:this.pluginConfig.pasteCallback,[Px]:this.pluginConfig.isNew,[D_]:this.pluginConfig.inlineToolbar}}callApiMethod(t,n=void 0){const s=this.providedApiMethods[t];if(typeof s!="function"){Kn(`Tool ${this.type} does not implement ${t}`,"warn",this.pluginInstance);return}return Array.isArray(n)?s.call(this.pluginInstance,...n):s.call(this.pluginInstance,n)}get isEmpty(){const t=this.pluginClass?this.pluginClass[qee]:!1,n=this.content;if(t)return!1;const s=Vee(n),i=!lr(n),o=!s&&!i;return this.wrapper.classList.toggle(Kt.CSS.wrapperEmpty,o),o}set highlighted(t){this.wrapper.classList.toggle(Kt.CSS.blockHighlighted,t)}get highlighted(){return this.wrapper.classList.contains(Kt.CSS.blockHighlighted)}set selected(t){this.wrapper.classList.toggle(Kt.CSS.blockSelected,t)}get selected(){return this.wrapper.classList.contains(Kt.CSS.blockSelected)}set dragged(t){this.wrapper.classList.toggle(Kt.CSS.wrapperDragged,t)}get dragged(){return this.wrapper.classList.contains(Kt.CSS.wrapperDragged)}set dragOver(t){this.wrapper.classList.toggle(Kt.CSS.wrapperDragOver,t)}get dragOver(){return this.wrapper.classList.contains(Kt.CSS.wrapperDragOver)}get cover(){return this.indicatorsState.cover}set cover(t){this.indicatorsState.cover=t,this.dispatchModifiedEvent()}get hidden(){return this.indicatorsState.hidden}set hidden(t){this.indicatorsState.hidden=t,this.dispatchModifiedEvent()}get anchor(){return this.indicatorsState.anchor}set anchor(t){this.indicatorsState.anchor=t,this.wrapper.dataset.anchor=t,this.wrapper.classList.toggle(Kt.CSS.blockWithAnchor,t?t.trim()!=="":!1),this.dispatchModifiedEvent()}updateInputs(t=!1){this.inputs=Array.from(this.wrapper.querySelectorAll(la)).filter(n=>!t||n.offsetParent!==null)}updateCurrentInputIndex(){const t=window.getSelection();if(t.anchorNode===null)return;const n=(si(t.anchorNode)?t.anchorNode:t.anchorNode.parentNode).closest(la);this.currentInput=n}dispatchModifiedEvent(){this.api.getUiNodes().redactor.dispatchEvent(this.blockModifiedEvent)}contentChanged(){this.updateInputs(),this.empty=this.isEmpty,this.dispatchModifiedEvent()}willHighlight(){this.mutationObserver.observe(this.content,{childList:!0,subtree:!0}),this.api.listeners.add(this.wrapper,"input",()=>{this.contentChanged()})}willUnhighlight(){this.mutationObserver.disconnect(),this.api.listeners.remove(this.wrapper,"input")}get currentInput(){return this.inputs[this.currentInputIndex]}set currentInput(t){const n=this.inputs.findIndex(s=>s===t||s.contains(t));n!==-1&&(this.currentInputIndex=n)}get nextInput(){return this.inputs[this.currentInputIndex+1]}get previousInput(){return this.inputs[this.currentInputIndex-1]}get firstInput(){return this.inputs[0]}get lastInput(){return this.inputs[this.inputs.length-1]}destroy(){typeof this.pluginInstance.destroy=="function"&&this.pluginInstance.destroy(),this.pluginClass=null,this.wrapper.remove(),this.actions&&this.actions.destroy(),this.dispatchModifiedEvent()}get textContent(){if(this.content)return this.content.textContent}}const tte=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> 140 <path d="M11.293 3.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1-1.414 1.414L13 6.414V20a1 1 0 1 1-2 0V6.414l-5.293 5.293a1 1 0 0 1-1.414-1.414l7-7z"/> 141</svg> 142`;class nte{static get displayInMobileToolbar(){return!0}constructor(t,n){this.api=t,this.block=n,this.clickHandler=s=>
142{s.stopPropagation(),this.performAction()},this.button=void 0}render(){return this.button=Je("div"),this.button.insertAdjacentHTML("afterbegin",tte),this.button.appendChild(Sh("ÐеÑемеÑÑиÑÑ Ð²Ð²ÐµÑÑ ")),this.api.listeners.add(this.button,"click",this.clickHandler),this.button}performAction(){Ws("cdxBlockSettingsClick",{detail:{type:"Move Up"}});const t=this.block,n=t.wrapper.previousSibling;let s;if(!n)return!1;const i=t.wrapper.getBoundingClientRect(),o=n.getBoundingClientRect();o.top>0?s=Math.abs(i.top)-Math.abs(o.top):s=window.innerHeight-Math.abs(i.top)+Math.abs(o.top),ea(n,t.wrapper),window.scrollBy(0,-1*s);const r=new CustomEvent("cdxBlockMoved",{detail:{direction:"up",type:t.type}});this.block.dispatchModifiedEvent(),this.api.checkIndicatorsByBlockId(this.block.id),document.dispatchEvent(r),this.api.closeEveryBlockSettings(),this.api.openBlockSettings()}destroy(){this.api.listeners.remove(this.button),this.button=null,this.block=null}}const ste=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> 143 <path d="M12.707 20.707a1 1 0 0 1-1.414 0l-7-7a1 1 0 1 1 1.414-1.414L11 17.586V4a1 1 0 1 1 2 0v13.586l5.293-5.293a1 1 0 0 1 1.414 1.414l-7 7z"/> 144</svg> 145`;class ite{static get displayInMobileToolbar(){return!0}constructor(t,n){this.api=t,this.block=n,this.clickHandler=s=>{s.stopPropagation(),this.performAction()},this.button=void 0}render(){return this.button=Je("div"),this.button.insertAdjacentHTML("afterbegin",ste),this.button.appendChild(Sh("ÐеÑемеÑÑиÑÑ Ð²Ð½Ð¸Ð·")),this.api.listeners.add(this.button,"click",this.clickHandler),this.button}performAction(){Ws("cdxBlockSettingsClick",{detail:{type:"Move Down"}});const t=this.block,n=t.wrapper.nextSibling;let s;if(!n)return!1;n.getBoundingClientRect().top<window.innerHeight?s=window.scrollY+n.offsetHeight:s=Math.abs(window.innerHeight-n.offsetHeight),wx(n,t.wrapper),window.scrollTo(0,s);const i=new CustomEvent("cdxBlockMoved",{detail:{direction:"down",type:t.type}});this.block.dispatchModifiedEvent(),this.api.checkIndicatorsByBlockId(this.block.id),document.dispatchEvent(i),this.api.closeEveryBlockSettings(),this.api.openBlockSettings()}destroy(){this.api.listeners.remove(this.button),this.button.removeEventListener("click",this.clickHandler),this.button=null,this.editor=null,this.block=null}}const ote=`<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> 146 <path fill-rule="evenodd" d="M5.53 4.47a.75.75 0 0 0-1.06 1.06l1.438 1.438-.12.096c-1.51 1.225-2.602 2.856-3.62 4.38a1 1 0 0 0 0 1.111c1.018 1.524 2.11 3.156 3.62 4.38C7.343 18.198 9.3 19 12 19c1.948 0 3.51-.418 4.814-1.125l1.656 1.655a.75.75 0 1 0 1.06-1.06l-14-14Zm9.79 11.91-1.614-1.614a3.252 3.252 0 0 1-4.775-1.7 3.25 3.25 0 0 1 .303-2.772l-1.9-1.9a6.945 6.945 0 0 0-.287.224C5.959 9.5 5.106 10.665 4.204 12c.902 1.334 1.756 2.5 2.843 3.382C8.24 16.349 9.75 17 12 17c1.339 0 2.415-.23 3.32-.62Zm-4.557-4.556a1.252 1.252 0 0 0 1.414 1.414l-1.414-1.414ZM8.67 5.49l1.649 1.648A9.682 9.682 0 0 1 12 7c2.251 0 3.762.65 4.952 1.618 1.088.882 1.942 2.047 2.843 3.382-.657.974-1.29 1.858-2.007 2.608l1.414 1.414c1.024-1.
146064 1.847-2.296 2.63-3.466v-.001a1 1 0 0 0 0-1.111c-1.018-1.524-2.11-3.155-3.62-4.38C16.657 5.803 14.7 5 12 5c-1.26 0-2.36.175-3.33.49Zm3.26 3.26 3.319 3.318A3.25 3.25 0 0 0 12 8.749l-.07.001Z"/> 147</svg> 148`;class rte{constructor(t,n,s){this.api=t,this.block=n,this.blockSettingsInstance=s,this.clickHandler=i=>{this.performAction(i)},this.button=void 0}render(){return this.button=Je("div"),this.button.insertAdjacentHTML("afterbegin",ote),this.isActivated?(this.button.classList.add(ca.itemActive),this.button.appendChild(Sh("ÐоказаÑÑ ÑодеÑжание"))):this.button.appendChild(Sh("СкÑÑÑÑ ÑодеÑжание")),this.block.pluginInstance.hideCustomBlockSettingsIfFirst&&this.api.getBlockPositionById(this.block.id)===0&&this.button.classList.add(ca.itemHidden),this.api.listeners.add(this.button,"click",this.clickHandler),this.button}get isActivated(){return this.block.hidden}performAction(t){Ws("cdxBlockSettingsClick",{detail:{type:"Hide"}}),t.stopPropagation();const n=this.block,s=this.isActivated;if(n.hidden=!s,n.hidden){const i=new CustomEvent("cdxBlockMarkedAsHidden",{detail:{type:n.type}});document.dispatchEvent(i)}this.api.checkIndicatorsByBlockId(n.id),this.blockSettingsInstance.close()}destroy(){this.api.listeners.remove(this.button),this.button=null,this.api=null,this.block=null,this.blockSettingsInstance=null}}const ate=`<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> 149 <path d="M8.002 5.5A2.498 2.498 0 0110.5 3.002h3A2.498 2.498 0 0115.998 5.5v1.003H20a.998.998 0 010 1.995h-.526l-1.15 9.008a3.998 3.998 0 01-3.965 3.491H9.64a3.997 3.997 0 01-3.965-3.491l-1.15-9.008H4a.997.997 0 110-1.995h4.002V5.5zm1.995 1.003h4.005V5.5a.503.503 0 00-.502-.503h-3a.503.503 0 00-.502.503v1.003zm-3.46 1.995l1.118 8.755c.128 1 .978 1.75 1.986 1.75h4.718c1.008 0 1.858-.75 1.986-1.75l1.118-8.755H6.537zM10 10.253c.55 0 .998.446.998.997v4.5a.998.998 0 01-1.995 0v-4.5c0-.55.446-.998.997-.998zm4 0c.55 0 .998.446.998.997v4.5a.998.998 0 01-1.995 0v-4.5c0-.55.446-.998.997-.998z"/> 150</svg> 151`;class na{static get displayInMobileToolbar(){return!0}constructor(t,n){this.api=t,this.block=n,this.clickHandler=()=>{this.performAction()},this.button=void 0}static get CSS(){return{button:"remove-tool",confirmationMode:"remove-tool--confirm",text:"remove-tool__text"}}render(){return this.button=Je("div",na.CSS.button),this.button.insertAdjacentHTML("afterbegin",ate),this.button.appendChild(Je("span",na.CSS.text,{textContent:"УдалиÑÑ Ð±Ð»Ð¾Ðº"})),this.api.listeners.add(this.button,"click",this.clickHandler),this.button}performAction(){this.button.classList.contains(na.CSS.confirmationMode)?(Ws("cdxBlockSettingsClick",{detail:{type:"Delete Confirm"}}),this.confirmRemovingRequest()):(Ws("cdxBlockSettingsClick",{detail:{type:"Delete"}}),this.button.querySelector(`.${na.CSS.text}`).textContent="ТоÑно ÑдалиÑÑ?",this.button.classList.add(na.CSS.confirmationMode))}confirmRemovingRequest(){const t=this.block,n=new CustomEvent("cdxBlockRemoved",{detail:{type:t.type}});document.dispatchEvent(n),this.api.removeBlock(t.id),this.api.toolbar.close()}destroy(){this.api.listeners.remove(this.button),this.button=null,this.api=null,this.block=null}}const lte=`<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> 152 <path fill-rule="evenodd" d="M10.831 8.227A3.333 3.333 0 0 0 10 1.669a3.331 3.331 0 0 0-.831 6.558v.942H6.875a.831.831 0 1 0 0 1.662h2.294v5.797c-1.726-.175-2.68-.89-3.218-1.535a3.837 3.837 0 0 1-.626-1.058 3.1 3.1 0 0 1-.129-.415l-.002-.013a.831.831 0 0 0-1.64.28l.016.076a4.758 4.758 0 0 0 .206.673 5.5 5.5 0 0 0 .898 1.521C5.617 17.29 7.26 18.331 10 18.331c2.74 0 4.382-1.042 5.326-2.174a5.5 5.5 0 0 0 .898-1.52 4.747 4.747 0 0 0 .206-.673v-.001l.015-.076a.831.831 0 0 0-1.64-.28l-.002.013-.019.08a3.04 3.04 0 0 1-.11.335 3.836 3.836 0 0 1-.625 1.058c-.538.646-1.493 1.36-3.218 1.535v-5.797h2.294a.831.831 0 0 0 0-1.662H10.83v-.942zM10 3.33a1.669 1.669 0 1 0 0 3.338 1.669 1.669 0 0 0 0-3.338z"/> 153</svg> 154`;class gu{constructor(t,n){this.api=t,this.block=n,this.clickHandler=()=>{this.performAction()},this.wrapper=void 0,this.input=void 0}
154static get CSS(){return{noHover:"no-hover",wrapper:"anchor-tool",input:"anchor-tool__input"}}render(){this.wrapper=Je("div",[gu.CSS.wrapper,gu.CSS.noHover]);const t=Je("input",gu.CSS.input,{placeholder:"ЯкоÑÑ"});return this.wrapper.insertAdjacentHTML("afterbegin",lte),this.wrapper.appendChild(t),this.input=t,this.input.value=this.block.anchor||"",this.api.listeners.add(this.input,"keydown",n=>{this.keyDownOnAnchorInput(n)}),this.api.listeners.add(this.input,"keyup",n=>{this.keyUpOnAnchorInput(n)}),this.api.listeners.add(this.input,"input",n=>{this.anchorChanged(n)}),this.api.listeners.add(this.input,"blur",n=>{this.anchorChanged(n)}),this.api.listeners.add(this.input,"click",n=>{this.clickHandler(n)}),this.block.pluginInstance.hideCustomBlockSettingsIfFirst&&this.api.getBlockPositionById(this.block.id)===0&&this.wrapper.classList.add(ca.itemHidden),this.wrapper}anchorChanged(t){const n=t.target.value=this.rusToTranslit(t.target.value);this.block.anchor=n,this.api.checkIndicatorsByBlockId(this.block.id)}keyDownOnAnchorInput(t){t.keyCode===xt.ENTER&&(t.preventDefault(),t.stopPropagation(),t.target.blur(),this.block.actions.settings.close())}keyUpOnAnchorInput(t){t.keyCode>=xt.LEFT&&t.keyCode<=xt.DOWN&&t.stopPropagation()}performAction(){Ws("cdxBlockSettingsClick",{detail:{type:"Add Anchor Field"}})}rusToTranslit(t){const n=["Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð","Ð ","С","Т","У","Ф","Ð¥","Ц","Ч","Ш","Щ","Ь","Ы","Ь","Ð","Ю","Я"],s=["A","B","V","G","D","E","E","Zh","Z","I","Y","K","L","M","N","O","P","R","S","T","U","F","H","C","Ch","Sh","Sch","","Y","","E","Yu","Ya"];for(let i=0;i<n.length;i++)t=t.split(n[i]).join(s[i]),t=t.split(n[i].toLowerCase()).join(s[i].toLowerCase());return t=t.replace(/[^0-9a-zA-Z_]+/g,"-"),t}destroy(){this.wrapper=null,this.input&&this.api.listeners.remove(this.input),this.input=null,this.block=null,this.api=null}}const ca={wrapper:"ce-block-settings",commonSettingsWrapper:"ce-block-settings__common",pluginSettingsWrapper:"ce-block-settings__plugin",item:"ce-block-settings__item",itemActive:"ce-block-settings__item--active",itemHidden:"ce-block-settings__item--hidden"};class cte{constructor({api:t,block:n,close:s}){this.api=t,this.block=n,this.close=s,this.nodes={wrapper:void 0,commonSettingsWrapper:void 0,pluginSettingsWrapper:void 0},this.commonTools=[gu,rte,nte,ite,na],this.commonToolsInstances=[]}render(t=!1){return this.nodes.wrapper=Je("div",ca.wrapper),this.nodes.commonSettingsWrapper=Je("div",ca.commonSettingsWrapper),this.nodes.pluginSettingsWrapper=Je("div",ca.pluginSettingsWrapper),this.appendPluginSettings(t),this.appendCommonTools(t),this.nodes.wrapper.appendChild(this.nodes.pluginSettingsWrapper),this.nodes.wrapper.appendChild(this.nodes.commonSettingsWrapper),this.nodes.wrapper}appendCommonTools(t){this.commonTools.forEach(n=>{const s=new n(this.api,this.block,this),i=n.displayInMobileToolbar;if(t&&!i)return;const o=s.render();o.classList.add(ca.item),this.nodes.commonSettingsWrapper.appendChild(o),this.commonToolsInstances.push(s)})}appendPluginSettings(t=!1){const n=t===!1?Sx:Cx;if(this.block.providedApiMethods[n]){const s=this.block.callApiMethod(n,this.block.content);s&&this.nodes.pluginSettingsWrapper.appendChild(s)}}destroy(){this.commonToolsInstances.forEach(t=>t.destroy()),this.commonToolsInstances=[],this.nodes.commonSettingsWrapper.remove(),this.nodes.pluginSettingsWrapper.remove(),this.nodes.wrapper.remove(),this.nodes={wrapper:void 0,commonSettingsWrapper:void 0,pluginSettingsWrapper:void 0}}}const ute=`<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"> 155 <path d="M10.368 11.768 5.87 7.263l-4.52 4.505a.79.79 0 0 1-1.12 0A.761.761 0 0 1 0 11.21a.78.78 0 0 1 .23-.557l4.527-4.505-4.51-4.516a.8.8 0 0 1 0-1.127.811.811 0 0 1 1.12 0L5.88 5.027l4.47-4.454a.8.8 0 0 1 1.12 0 .78.78 0 0 1 .23.557.761.761 0 0 1-.23.558L7 6.148l4.486 4.493a.8.8 0 0 1 0 1.127.795.795 0 0 1-1.119 0"/> 156</svg> 157`;class yo{constructor({title:t,api:n,onClose:s,classes:i}){this.title=t,this.api=n,this.onClose=s,this.classes=i,this.nodes={wrapper:null,title:null,close:null,content:null},this.render()}static get CSS(){return{wrapper:"ce-popover",wrapperAbove:"ce-popover--above",title:"ce-popover__title",close:"ce-popover__close",content:"ce-popover__content"}}
157get element(){return this.nodes.wrapper}render(){this.nodes.wrapper=Je("div",[yo.CSS.wrapper,...this.classes?this.classes:[]]),this.nodes.title=Je("div",[yo.CSS.title],{textContent:this.title}),this.nodes.close=Je("div",[yo.CSS.close],{innerHTML:ute}),this.nodes.content=Je("div",yo.CSS.content),this.nodes.close.addEventListener("click",()=>{this.closeClicked()}),this.nodes.wrapper.appendChild(this.nodes.title),this.nodes.wrapper.appendChild(this.nodes.close),this.nodes.wrapper.appendChild(this.nodes.content),this.checkScrollableParentFitness()}checkScrollableParentFitness(){const{wrapper:t}=this.nodes,{bottom:n}=this.api.checkElementFit(t);if(!n){t.classList.add(yo.CSS.wrapperAbove);const{top:s}=this.api.checkElementFit(t);s||t.classList.remove(yo.CSS.wrapperAbove)}}appendContent(t){this.nodes.content.appendChild(t)}closeClicked(){typeof this.onClose=="function"&&this.onClose()}}class dr{constructor(t,n){this.api=t,this.block=n,this.togglerClickHandler=()=>{this.togglerClicked()},this.nodes={wrapper:null,toggler:null,popover:null},this.opened=!1,this.blockSettingsPanel=null}static get CSS(){return{actionBaseClass:"ce-block-action",actionUnitClass:"ce-block-action--settings",toggler:"ce-block-action__settings-toggler",blockWithOpenedSettings:"ce-block--settings-opened"}}render(){return this.nodes.wrapper=Je("div",[dr.CSS.actionBaseClass,dr.CSS.actionUnitClass]),this.nodes.toggler=this.makeToggler(),this.nodes.wrapper.appendChild(this.nodes.toggler),this.nodes.wrapper}makeToggler(){const t=Je("div",[dr.CSS.toggler]),n=yx("block-drag");return t.appendChild(n),this.api.listeners.add(t,"click",this.togglerClickHandler,{passive:!0}),this.blockDragndrop=new kx({api:this.api,block:this.block,handle:t}),t}togglerClicked(){Ws("cdxBlockSettingsClick",{}),this.opened?this.close():this.open()}renderBlockSettingsPanel(t=!1){return this.blockSettingsPanel=new cte({api:this.api,block:this.block,close:()=>{this.close()}}),this.blockSettingsPanel.render(t)}open(){this.api.closeEveryBlockSettings(),this.api.toolbar.close(),this.popover=new yo({title:"ÐаÑÑÑойки",api:this.api,onClose:()=>{this.close()}}),this.nodes.popover=this.popover.element;const t=this.renderBlockSettingsPanel();this.popover.appendContent(t),this.nodes.wrapper.appendChild(this.nodes.popover),this.opened=!0,this.block.wrapper.classList.add(dr.CSS.blockWithOpenedSettings);const n=new CustomEvent("cdxBlockSettingsOpening",{detail:{type:this.block.type}});document.dispatchEvent(n)}close(){this.popover&&this.nodes.popover&&(this.popover=null,this.nodes.popover.remove()),this.block.wrapper.classList.remove(dr.CSS.blockWithOpenedSettings),this.opened=!1,this.blockSettingsPanel&&this.blockSettingsPanel.destroy(),this.blockSettingsPanel=null}destroy(){this.api.listeners.remove(this.nodes.toggler),this.blockDragndrop.destroy(),this.api=null,this.block=null,Object.entries(this.nodes).forEach(([t,n])=>{n&&n.remove(),this.nodes[t]=null}),this.opened=!1,this.blockSettingsPanel=null}}class dte{constructor(t){this.editor=t,this.mouseDownedBlock=null}add(t){this.editor.listeners.add(t.wrapper,"keydown",n=>{this.blockKeydown(n,t)},!1),this.editor.listeners.add(t.wrapper,"paste",n=>{this.editor.paste.blockPasteCallback(n)},!1),this.editor.listeners.add(t.wrapper,"mouseup",n=>{this.mouseUp(n)},!1),this.editor.listeners.add(t.wrapper,"mousedown",n=>{this.mouseDown(t,n)},!1),this.editor.listeners.add(t.wrapper,"keyup",()=>{this.blockKeyup()},!1),this.editor.listeners.add(t.wrapper,"mouseover",n=>{this.blockMouseover(n,t)},!1)}mouseDown(t,n){n.button!==0||(this.editor.blocks.clearSelection(),n.target.closest(`.${dr.CSS.toggler}`))||(this.mouseDownedBlock=t)}mouseUp(t){!this.editor.blocks.selected.length>0&&this.editor.toolbarInline.handle(t),this.mouseDownedBlock=null}blockKeydown(t,n){const s=n.externalConfig[Tx];if(!(typeof s=="function"&&s(n.wrapper,t)===!1)){switch(t.keyCode){case xt.DOWN:case xt.RIGHT:this.rightOrDownArrowPressed(t),this.editor.blocks.clearSelection();break;case xt.BACKSPACE:this.backspacePressed(t);break;case xt.UP:case xt.LEFT:this.leftOrUpArrowPressed(t),this.editor.blocks.clearSelection();break}this.editor.shortcuts.acceptKeydown(t)}}rightOrDownArrowPressed(t){_r.atEnd&&(this.editor.caret.goNext(),t.preventDefault())}leftOrUpArrowPressed(t){_r.atStart&&(this.editor.caret.goPrevious(),t.preventDefault())}backspacePressed(t){const n=t.target;if(!document.body.contains(n))return;this.editor.blocks.workingBlockChanged(n);const s=this.editor.blocks.currentBlock;if(Uo(n))return;const i=this.editor.blocks.previousBlock;if(s.isEmpty)this.editor.caret.goPrevious(),this.editor.blocks.remove(s);else{const l=_r.isEmpty,c=_r.atStart,u=s.type===this.editor.config.initialBlockPlugin,d=i!==void 0&&i.type===this.editor.config.initialBlockPlugin;if(!(u&&d))return;if(c&&l&&i)this.editor.caret.goPrevious(),this.editor.blocks.merge
157(s,i),this.editor.blocks.remove(s);else return}if(this.editor.blocks.count===0){const l=this.editor.renderer.addInitialBlock();this.editor.blocks.currentBlock=l,window.setTimeout(()=>{this.editor.caret.setToBlock(l)},10)}this.editor.toolbar.move();const o=this.editor.blocks.currentBlock,r=o.isEmpty,a=o.type===this.editor.config.initialBlockPlugin;r&&a&&window.setTimeout(()=>{this.editor.toolbar.open(),this.editor.toolbar.showPlusButton()},10),t.preventDefault()}blockMouseover(t,n){const s=t.target,i=this.mouseDownedBlock;n!==i&&(n.providedApiMethods[Ch]&&(s.tagName==="A"?this.editor.helperTooltip.showLinkTooltip(s):this.editor.helperTooltip.hide()),this.mouseDownedBlock&&(this.editor.blocks.workingBlockChanged(),i.selected=!0,n.selected=!0,this.editor.toolbar.close(),this.editor.toolbarInline.close(),window.getSelection().empty()))}blockKeyup(){window.setTimeout(this.editor.toolbarInline.handle,50),this.matchMarkdown()}matchMarkdown(){const t=this.editor.blocks.currentBlock,n=t.content.textContent,s=this.editor.toolsManager.available[this.editor.blocks.currentBlock.type].class.allowRenderOnPaste;if(n&&s){const i=this.editor.toolsManager.matchMarkdown(n);if(i&&i.parseFrom&&t.type!==i.tool){const o=i.parseFrom(n),r=i.tool,a=this.editor.blocks.switch({blockToReplace:t,newBlockType:r,newBlockData:o});this.editor.caret.setToBlock(a,this.editor.caret.positions.END)}}}}class fte{constructor(t,n){this.api=t,this.block=n,this.nodes={wrapper:void 0}}get CSS(){return{indicator:"ce-block-indicator",indicatorType:"ce-block-indicator--hidden",indicatorActivated:"ce-block-indicator--active",icon:"ce-block-indicator__icon"}}get icon(){return`
158 <svg width="14" height="11" viewBox="0 0 14 11" xmlns="http://www.w3.org/2000/svg"> 159 <path d="M7.8 3.4l1.3 1.3a2.7 2.7 0 00-1.3-1.3z"/> 160 <path d="M13.8 5.1a14.2 14.2 0 00-2.5-3A6.3 6.3 0 007 .7a4.7 4.7 0 00-1.7.2l1.2 1.2H7a5 5 0 013.4 1.1 11.4 11.4 0 012 2.3 17.1 17.1 0 01-1.1 1.4l1 1 1.5-2a1.1 1.1 0 000-.8zM2.7.2a.7.7 0 00-1 0 .7.7 0 000 1l1 1A13.7 13.7 0 00.2 5.1a1.1 1.1 0 000 .8 14.2 14.2 0 002.5 3A6.3 6.3 0 007 10.3a6.8 6.8 0 003.1-.7l1.2 1.2.5.2.5-.2a.7.7 0 000-1zm4.2 6.1a.7.7 0 01-.7-.7zM7 8.9a5 5 0 01-3.4-1.1 11.4 11.4 0 01-2-2.3 11.4 11.4 0 012-2.3.1.1 0 01.1-.1L5 4.5a3 3 0 00-.2 1A2.2 2.2 0 007 7.7l1-.2 1.1 1.1a6.6 6.6 0 01-2.1.3z"/> 161 </svg> 162 `}render(){const t=Je("div",[this.CSS.indicator,this.CSS.indicatorType]),n=Je("span",this.CSS.icon);return n.innerHTML=this.icon,t.appendChild(n),this.nodes.wrapper=t,this.api.listeners.add(this.nodes.wrapper,"click",s=>{this.click(s),s.stopPropagation()},!1),this.checkState(),t}checkState(){this.api.getBlockPositionById(this.block.id)===0&&this.block.pluginInstance.hideCustomBlockSettingsIfFirst&&(this.block.hidden=!1),this.nodes.wrapper.classList.toggle(this.CSS.indicatorActivated,this.block.hidden)}click(){this.api.setCurrentBlockById(this.block.id),this.block.hidden=!this.block.hidden,this.checkState()}destroy(){this.api.listeners.remove(this.nodes.wrapper),this.block=null,this.nodes={wrapper:null},this.api=null}}class hte{constructor(t,n){this.api=t,this.block=n,this.nodes={wrapper:void 0}}get CSS(){return{indicator:"ce-block-indicator",indicatorType:"ce-block-indicator--anchor",indicatorActivated:"ce-block-indicator--active",icon:"ce-block-indicator__icon"}}get icon(){return` 163 <svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg"> 164 <path fill-rule="evenodd" clip-rule="evenodd" d="M10.83 8.227A3.333 3.333 0 0010 1.669a3.331 3.331 0 00-.832 6.558v.942H6.874a.831.831 0 100 1.662h2.294v5.797c-1.725-.175-2.68-.89-3.218-1.535a3.838 3.838 0 01-.625-1.058 3.102 3.102 0 01-.13-.415l-.002-.013a.831.831 0 00-1.639.28l.015.076c.009.04.02.094.038.159.034.13.087.306.168.515a5.5 5.5 0 00.898 1.52C5.617 17.29 7.26 18.331 10 18.331c2.74 0 4.383-1.042 5.326-2.174a5.5 5.5 0 00.898-1.52 4.773 4.773 0 00.206-.673v-.001l.015-.076a.831.831 0 00-1.639-.28l-.002.013-.02.08c-.02.076-.054.192-.11.335a3.836 3.836 0 01-.625 1.058c-.538.646-1.492 1.36-3.217 1.535v-5.797h2.293a.831.831 0 000-1.662h-2.293v-.942zM10 3.33a1.669 1.669 0 100 3.338 1.669 1.669 0 000-3.338z"/> 165 </svg> 166 `}render(){const t=Je("div",[this.CSS.indicator,this.CSS.indicatorType]),n=Je("span",this.CSS.icon);return n.innerHTML=this.icon,t.appendChild(n),this.nodes.wrapper=t,this.api.listeners.add(this.nodes.wrapper,"click",s=>{this.click(s),s.stopPropagation()},!1),this.checkState(),t}checkState(){this.api.getBlockPositionById(this.block.id)===0&&this.block.pluginInstance.hideCustomBlockSettingsIfFirst&&(this.block.anchor=""),this.nodes.wrapper.classList.toggle(this.CSS.indicatorActivated,this.block.anchor),this.nodes.wrapper.setAttribute("title",this.block.anchor||"")}click(){this.block.actions.settings.open(),this.block.wrapper.querySelector(".anchor-tool__input").focus()}destroy(){this.api.listeners.remove(this.nodes.wrapper),this.block=null,this.nodes={wrapper:null},this.api=null}}class pte{constructor(t,n){this.editor=t,this.api=n,this.indicators=[],this.availableIndicators=[fte,hte]}add(t){this.editor.config.hideToolbar||this.availableIndicators.forEach(n=>{const s=new n(this.api,t),i=s.render();t.addIndicator(i),this.indicators.push(s)})}checkIndicatorsByBlockId(t){this.indicators.filter(n=>n.block.id===t).forEach(n=>{n.checkState&&n.checkState()})}destroy(t){this.indicators.filter(n=>n.block.id===t.id).forEach(n=>{n.destroy(t);const s=this.indicators.indexOf(n);this.indicators.splice(s,1)})}}function mte(e){const t=document.createElement("textarea");t.contentEditable="true",t.style.position="absolute",t.style.left="-99999px",t.style.opacity="0.01",document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),t.remove()}class vte{constructor(t,n){this.editor=t,this.api=n,this.blocks={},this.currentBlockId=void 0}getBlocksOrdered(){const t=this.editor.ui.nodes.redactor.querySelectorAll(`.${Kt.CSS.wrapper}`),n=[];for(let s=0;s<t.length;s++)this.isFirstLevelBlock(t[s])&&n.push(this.getBlockByChildren(t[s]));return n}workingBlockChanged(t=void 0){if(this.currentBlock&&(this.currentBlock.willUnhighlight(),this.clearHightlight(),this.currentBlockId=void 0),!t)return;const n=t instanceof Kt?t:this.getBlockByChildren(t);n&&n.willHighlight(),this.currentBlockId=n?n.id:void 0}get count(){return Object.keys(this.blocks).length}get currentBlock(){if(this.currentBlockId)return this.blocks[this.currentBlockId]}set currentBlock(t){this.currentBlockId=t.id}get previousBlock(){const t=this.getBlocksOrdered(),n=t.findIndex(s=>s.id===this.currentBlockId);return n!==0?t[n-1]:void 0}get nextBlock(){const t=this.getBlocksOrdered(),n=t.indexOf(this.currentBlock);return n!==t.length-1?t[n+1]:void 0}get previousEditableBlock(){const t=this.getBlocksOrdered(),n=t.indexOf(this.currentBlock);return t.slice(0,n).reverse().find(s=>s.inputs.length!==0)}get nextEditableBlock(){const t=this.getBlocksOrdered(),n=t.indexOf(this.currentBlock);return t.slice(n+1).find(s=>s.inputs.length!==0)}createBlock(t,n,s="",i=!1,o=!1){const r=new Kt({type:t,data:n,toolClass:this.editor.toolsManager.getToolByType(t),api:this.api});return r.anchor=s,r.cover=i,r.hidden=o,this.editor.blockEvents.add(r),this.editor.blockIndicatorsManager.add(r),r}append({type:t=this.editor.config.initialBlockPlugin,data:n={},anchor:s="",cover:i=!1,hidden:o=!1}={},r=void 0,a=!1){const l=this.createBlock(t,n,s,i,o);let c;if(r===void 0)c=this.currentBlock;else{const u=this.getBlocksOrdered();c=r<u.length-1?u[r]:u[u.length-1]}return c&&c.wrapper?a?ea(c.wrapper,l.wrapper):wx(c.wrapper,l.wrapper):this.editor.ui.nodes.redactor.appendChild(l.wrapper),l.updateInputs(),setTimeout(()=>{l.updateInputs(!0),l.empty=l.isEmpty},250),this.blocks[l.id]=l,this.workingBlockChanged(l.wrapper),l}get lastBlock(){const t=this.getBlocksOrdered();return t[t.length-1]}get firstBlock(){return this.blocks[Object.keys(this.blocks)[0]]}getBlockById(t){return this.blocks[t]}getBlockByChildren(t){if(si(t)||(t=t.parentNode),t===this.editor.ui.nodes.redactor||t===document.body)return null;let n;if(t.classList.contains(Kt.CSS.wrapper)?n=t:n=t.closest(`.${Kt.CSS.wrapper}`),!n)return null;const s=n.dataset.id;return this.blocks[s]}extractBlockContentsFromCaret(){const t=window.getSelection();if(!t.rangeCount)return null;const n=t.getRangeAt(0),s=this.getBlockByChildren(n.endContainer);if(!s||!s.wrapper)return null;const i=n.cloneRange();i.selectNodeContents(s.wrapper),i.setStart(n.endContainer,n.endOffset);const o=i.extractContents();return o?o.querySelector("[contenteditable]").innerHTML:void 0}splitBlock(){const t=this.extractBlockContentsFromCaret(),n=document.createElement("div");n.innerHTML=t?t.trim():"",this.editor.sanitizer.removeEmptyTags(n);const s=this.editor.config.initialBlockPlugin;return this.append({type:s,data:{text:n.innerHTML}})}merge(t,n){n&&(n.content.innerHTML+=t.content.innerHTML)}switch({blockToReplace:t,newBlockType:n,newBlockData:s}){const i=this.createBlock(n,s);return Hee(t.wrapper,i.wrapper),delete this.blocks[t.id],this.blocks[i.id]=i,i}remove(t){delete this.blocks[t.id],this.editor.listeners.remove(t.wrapper),this.editor.blockIndicatorsManager.destroy(t),t.destroy()}isFirstLevelBlock(t){return t.nodeType===Node.ELEMENT_NODE&&t.classList.contains(Kt.CSS.wrapper)}highlightBlock(t){t.highlighted=!0}
166clearHightlight(){Object.entries(this.blocks).forEach(([t,n])=>{n.highlighted=!1})}clearDragOver(){Object.entries(this.blocks).forEach(([t,n])=>{n.dragOver=!1})}selectBlock(t){t.selected=!0}selectAll(){Object.entries(this.blocks).forEach(([t,n])=>{n.selected=!0})}clearSelection(){Object.entries(this.blocks).forEach(([t,n])=>{n.selected=!1}),this.editor.shortcuts.nativeItemSelected=!1}get selected(){return this.getBlocksOrdered().filter(t=>t.selected===!0)}getBlockPosition(t){return Array.from(this.editor.ui.nodes.redactor.querySelectorAll(`.${Kt.CSS.wrapper}`)).indexOf(t.wrapper)}copyToClipBoard(t){const n=t.map(s=>this.editor.saver.saveBlock(s).then(i=>{const o=s.providedApiMethods[j0];return o&&o.parseTo(i.data)||`[${s.type}:${JSON.stringify(i.data)}]`}).catch(i=>{console.log("err",i)}));Promise.all(n).then(s=>{s=s.filter(o=>o!==void 0);const i=s.join(` 167 168`);mte(i)})}}class gte{constructor(t){this.editor=t}set(t,n=!1,s=0){if(Uo(t)){!s&&n&&(s=t.value.length),t.focus(),setTimeout(()=>{t.setSelectionRange(s,s)},10);return}let i=t;si(i)&&(i=kg(t,n),i||(t.appendChild(document.createTextNode("â")),i=t.firstChild),Uo(i)&&this.set(i,n),n===!0&&(s=i.textContent.length));const o=document.createRange(),r=window.getSelection();o.setStart(i,s),o.setEnd(i,s),r.removeAllRanges(),r.addRange(o);let a=i;a.nodeType!==Node.ELEMENT_NODE&&(a=a.parentNode),typeof a.scrollIntoViewIfNeeded=="function"&&a.scrollIntoViewIfNeeded()}get positions(){return{START:0,END:1}}setToBlock(t,n=this.positions.START){const s=n===this.positions.END;let i;switch(n){case this.positions.START:i=t.firstInput;break;case this.positions.END:i=t.lastInput}this.set(i,s),this.editor.blocks.workingBlockChanged(t),this.editor.blocks.currentBlock.updateCurrentInputIndex(),this.editor.toolbar.move()}setToInput(t,n=this.positions.START){const s=n===this.positions.END,{currentBlock:i}=this.editor.blocks;this.set(t,s),i.currentInput=t,setTimeout(()=>{i.updateCurrentInputIndex()},30)}goNext(){const{currentBlock:t,nextEditableBlock:n}=this.editor.blocks,{nextInput:s}=t;if(s)this.setToInput(s,this.positions.START);else if(n)this.setToBlock(n,this.positions.START);else{const i=this.editor.blocks.append();setTimeout(()=>{this.setToBlock(i,this.positions.START)},60)}}goPrevious(){const{currentBlock:t,previousEditableBlock:n}=this.editor.blocks,{previousInput:s}=t;s?this.setToInput(s,this.positions.END):n&&this.setToBlock(n,this.positions.END)}}class bte{constructor(t){this.locked=!1,this.editor=t,this.isActive=!1,this.mutationDebounceTimer=null}lock(){this.locked=!0}unlock(){this.locked=!1}observe(){this.isActive||(this.isActive=!0,this.editor.listeners.add(this.editor.ui.nodes.redactor,"blockModified",t=>{this.contentModified(t)}))}contentModified(t){this.locked||(this.mutationDebounceTimer&&window.clearTimeout(this.mutationDebounceTimer),this.mutationDebounceTimer=setTimeout(()=>{this.contentModifiedCallback(t)},350))}contentModifiedCallback(t){typeof this.editor.config.modifyCallback=="function"&&this.editor.config.modifyCallback.call(t.target,t)}}class yte{constructor(t,n,s={}){this.holder=s.holder,this.tools=s.tools,this.data=s.data,this.initialBlockPlugin=s.initialBlockPlugin||"paragraph",this.customNotifiers=s.notifications,this.placeholder=s.placeholder||"ТекÑÑ Ð¸Ð»Ð¸ ÑÑÑлка на YouTube, ÑвиÑ, ÑоÑогÑаÑиÑ, Ñнимок из Instagram...",this.modifyCallback=s.modifyCallback,this.hideToolbar=s.hideToolbar,this.visibleToolsLimit=s.visibleToolsLimit||7,this.coverBlocksLimit=s.coverBlocksLimit||2,this.offset={top:0,bottom:0,...s.offset}}prepare(){if(!this.holder)throw Error("Holder is missed");if(!si(this.holder))throw Error("Passed holder must be an Element");this.data&&this.data.items.length&&this.checkTools(this.data.items)}checkTools(t){const n=t.filter(({type:s})=>!(s in this.tools)).map(({type:s})=>s);n.length&&Kn("Some tools is not supported: "+n.join(", "))}clear(){this.holder=void 0,this.tools=void 0,this.data=void 0,this.initialBlockPlugin=void 0,this.customNotifiers=void 0,this.placeholder=void 0,this.modifyCallback=void 0,this.hideToolbar=void 0,this.visibleToolsLimit=void 0,this.coverBlocksLimit=void 0}}function wte(e){return this.editor=e,this.removeNodes=()=>{this.editor.ui.nodes.wrapper&&this.editor.ui.nodes.wrapper.remove(),this.editor.notifications.nodes.holder&&this.editor.notifications.nodes.holder.remove()},this.destroyPlugins=()=>{const t=[];for(const n in this.editor.toolsManager.available){const s=this.editor.toolsManager.available[n];if(typeof s=="function"){t.push(n);continue}typeof s.class.destroy=="function"&&s.class.destroy()}for(const n in this.editor.toolsManager.available){const s=this.editor.toolsManager.available[n].class;for(let i=t.length-1;i>=0;i--)s instanceof this.editor.toolsManager.available[t[i]].class&&typeof s.destroy=="function"&&s.destroy()}},this.destroy=t=>{!t||typeof t!="object"||(this.editor.config.clear(),this.editor.blocks.currentBlockId=void 0,t.ui&&(this.removeNodes(),this.editor.listeners.removeAll()),t.plugins&&this.destroyPlugins(),this.editor.redoManager.destroy(),t.ui&&t.scripts&&t.core&&delete codex.editor)},this}class G0{constructor(t){this.editor=t,this.scrollableParent=null,this.isScrollableParentWindow=!0,this.listenedEvent="dragover",this.offset=200,this.maxScrollStep=40,this.animation=null,this.prevCursorPosition=0}static get documentHeight(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.body.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight,document.documentElement.clientHeight)}
168get scrollableContainerViewportHeight(){return this.scrollableParent.clientHeight}get scrollableContainerContentHeight(){return this.isScrollableParentWindow?G0.documentHeight:this.scrollableParent.scrollHeight}enable(){this.scrollableParent||(this.scrollableParent=Bp(this.editor.ui.nodes.redactor),this.isScrollableParentWindow=this.scrollableParent===document.documentElement),this.editor.listeners.add(document,this.listenedEvent,this.onListenedEvent.bind(this))}disable(){this.editor.listeners.remove(document,this.listenedEvent),this.stopAnimation()}startAnimation(t){this.stopAnimation(),this.animation=window.requestAnimationFrame(t)}stopAnimation(){this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null)}onListenedEvent(t){let{clientY:n}=t;if(!this.isScrollableParentWindow){const{top:r}=this.scrollableParent.getBoundingClientRect();n=n-r}n>0&&n!==this.prevCursorPosition&&(this.prevCursorPosition=n);const s=this.prevCursorPosition,i={top:this.offset,bottom:this.scrollableContainerViewportHeight-this.offset},o={top:s<i.top,bottom:s>i.bottom};if(!o.top&&!o.bottom){this.stopAnimation();return}this.startAnimation(()=>{this.scroll({offset:i,direction:o,cursorPosition:s})})}scroll({offset:t,direction:n,cursorPosition:s}){const i=this.isScrollableParentWindow?window:this.scrollableParent,o=this.isScrollableParentWindow?window.pageYOffset:this.scrollableParent.scrollTop,r=this.scrollableContainerContentHeight-this.scrollableContainerViewportHeight;let a=1,l=o;n.top?(a=(t.top-s)/this.offset,l=l-this.maxScrollStep*a):(a=(s-t.bottom)/this.offset,l=l+this.maxScrollStep*a),l=Math.max(0,Math.min(r,l)),l!==o&&(i.scrollTo(0,l),this.startAnimation(()=>{this.scroll(...arguments)}))}}class q0{constructor(t){this.editor=t,this.scrollableParent=null,this.offset=this.editor.config.offset}static get viewportHeight(){return document.documentElement.clientHeight}check(t){this.scrollableParent||(this.scrollableParent=Bp(this.editor.ui.nodes.redactor));const n=t.getBoundingClientRect(),s=this.scrollableParent.getBoundingClientRect(),i=this.scrollableParent===document.documentElement?0:s.top,o=this.scrollableParent===document.documentElement?q0.viewportHeight:s.bottom;return{top:n.top>=i+this.offset.top,bottom:n.bottom<=o-this.offset.bottom}}}function _te(){let e=!1;return(function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)})(navigator.userAgent||navigator.vendor||window.opera),e}const K0="isEditorFocused",kte="isCoverBlocksLimitExceeded",Dp="IS_MOBILE",Ste=1024;class Cte{constructor(t){this.editor=t,this[K0]=!1,this[kte]=!1,this[Dp]=window.matchMedia(`(max-width: ${Ste}px)`).matches}mutate(t,n){if(this[t]===void 0){Kn(`Can not mutate state property ${t}: this property does not exist`,"warn");return}this[t]=n}get(t){if(this[t]===void 0){Kn(`Can not get state property ${t}: this property does not exist`,"warn");return}return this[t]}}class Ete{constructor(t){this.editor=t,this.isMobile=_te()}bindDocumentEvents(){this.editor.listeners.add(document,"keydown",t=>{this.keydown(t)},!1),this.editor.listeners.add(document,"keyup",t=>{this.keyup(t)},!1),this.editor.listeners.add(document,"click",t=>{this.click(t)},!1),this.isMobile&&this.editor.listeners.add(document,"selectionchange",t=>{this.selectionChanged(t)},!1)}click(t){const n=this.editor.ui.nodes.wrapper.contains(t.target);this.editor.state.mutate(K0,n),n||this.editor.blocks.clearSelection()}selectionChanged(t){let n=window.getSelection().anchorNode;n&&(si(n)||(n=n.parentNode),n&&n.closest(`.${Kt.CSS.content}`)&&this.editor.toolbarInline.handle(t))}keydown(t){switch(t.keyCode){case xt.ENTER:this.enterKeyPressed(t);break}this.editor.shortcuts.acceptKeydown(t,!0)}keyup(t){switch(t.keyCode){case xt.UP:case xt.LEFT:case xt.RIGHT:case xt.DOWN:this.arrowKeyUp(t);break}}redoKeyPressed(t){!t.metaKey&&!t.ctrlKey||(t.keyCode===xt.Z?this.editor.redoManager.back():t.keyCode===xt.Y&&this.editor.redoManager.forward(),t.preventDefault())}enterKeyPressed(t){const n=this.editor.blocks.currentBlock;n&&n.highlighted&&(t.preventDefault(),this.editor.ui.enterPressedOnBlock())}arrowKeyUp(){this.editor.toolbarToolbox.opened||(this.editor.toolbar.close(),this.editor.toolbar.move())}}class Y0{constructor(t){this.editor=t,this.hidingTimeout=null,this.nodes={wrapper:void 0}}static get CSS(){return{wrapper:"cdx-helper"}}make(){return this.nodes.wrapper=Je("div",Y0.CSS.wrapper),this.editor.listeners.add(this.nodes.wrapper,"mouseover",()=>{this.hovered()},!1),this.editor.listeners.add(this.nodes.wrapper,"mouseleave",()=>{this.blurred()},!1),this.nodes.wrapper}moveTo(t,n){const s=this.editor.toolbarInline;this.hidingTimeout&&window.clearTimeout(this.hidingTimeout),s.wrappersOffset=this.editor.ui.getWrappersOffset(),this.nodes.wrapper.innerHTML=n,window.setTimeout(()=>{const i=this.getElementRect(t),o=i.left-s.wrappersOffset.left+i.width/2-this.nodes.wrapper.clientWidth/2,r=i.top-s.wrappersOffset.top+i.height+10;this.nodes.wrapper.style.transform=`translate3D(${Math.floor(o)}px, ${Math.floor(r)}
168px, 0)`,this.nodes.wrapper.classList.add("opened")},50)}getElementRect(t){const n=t.getClientRects();return n?n[0]:{}}showLinkTooltip(t){const n=document.createElement("a");n.href=t.getAttribute("href"),n.textContent=t.getAttribute("href"),n.setAttribute("target","_blank"),this.moveTo(t,n.outerHTML)}hide(){this.hidingTimeout&&window.clearTimeout(this.hidingTimeout),this.hidingTimeout=window.setTimeout(()=>{this.nodes.wrapper.classList.remove("opened"),this.nodes.wrapper.innerHTML=""},300)}hovered(){this.hidingTimeout&&window.clearTimeout(this.hidingTimeout)}blurred(){this.hide()}}const xte=`<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> 169 <path d="M5.833 4.166c0-.46.373-.833.834-.833h3.75a3.75 3.75 0 0 1 2.954 6.06 3.751 3.751 0 0 1-1.288 7.273H6.667a.833.833 0 0 1-.834-.833V4.166zM7.5 10.833V15h4.583a2.083 2.083 0 0 0 0-4.167H7.5zm0-1.667h2.917a2.083 2.083 0 1 0 0-4.166H7.5v4.166z"/> 170</svg> 171`,Tte=`<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> 172 <path d="M11.647 3.333h-2.48a.833.833 0 0 0 0 1.667h1.395L7.705 15H5.833a.833.833 0 0 0 0 1.667h5a.833.833 0 1 0 0-1.667H9.438l2.857-10h1.872a.833.833 0 0 0 0-1.667h-2.52z"/> 173</svg> 174`,Ate=`<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" > 175 <path d="M10.286 3.705A4.243 4.243 0 0 1 13.283 2.5a4.244 4.244 0 0 1 2.976 1.257 4.298 4.298 0 0 1 1.244 2.99 4.298 4.298 0 0 1-1.192 3.011l-.01.01-2.055 2.071a4.233 4.233 0 0 1-5.057.732 4.266 4.266 0 0 1-1.367-1.195.833.833 0 0 1 1.338-.993 2.572 2.572 0 0 0 3.903.283l2.05-2.066c.469-.493.73-1.152.724-1.839a2.63 2.63 0 0 0-.761-1.83 2.578 2.578 0 0 0-1.807-.764 2.577 2.577 0 0 0-1.816.728L10.28 6.071A.833.833 0 0 1 9.1 4.894l1.178-1.18.008-.01zM7.277 7.17a4.233 4.233 0 0 1 3.534.255 4.266 4.266 0 0 1 1.367 1.195.833.833 0 0 1-1.338.993 2.571 2.571 0 0 0-3.903-.283l-2.049 2.066a2.632 2.632 0 0 0-.724 1.838c.005.689.28 1.346.76 1.83.481.485 1.13.759 1.808.765a2.577 2.577 0 0 0 1.815-.728l1.165-1.175a.833.833 0 0 1 1.184 1.174l-1.172 1.18-.01.01a4.243 4.243 0 0 1-2.997 1.206 4.244 4.244 0 0 1-2.976-1.257 4.298 4.298 0 0 1-1.244-2.99 4.299 4.299 0 0 1 1.193-3.011l.01-.01 2.054-2.071c.431-.435.95-.772 1.523-.987z"/> 176</svg> 177`,Pte=`<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> 178 <path d="M12.953 3.85a1.667 1.667 0 0 1 2.277-.61l1.438.83c.797.46 1.07 1.48.61 2.277l-1.04 1.799-4.247 7.37c-.164.286-.41.516-.705.662l-2.462 1.218a.833.833 0 0 1-1.2-.694l-.177-2.741a1.667 1.667 0 0 1 .22-.94l5.286-9.17zm2.259 2.742.622-1.079-1.437-.83-.623 1.079 1.438.83zm-2.27.613L9.11 13.854l.096 1.494 1.341-.664 3.832-6.649-1.437-.83zM2.5 16.667c0-.46.373-.834.833-.834h2.5a.833.833 0 1 1 0 1.667h-2.5a.833.833 0 0 1-.833-.833z"/> 179</svg> 180`;class Rte{constructor({container:t,toolbar:n,editor:s}){this._opened=!1,this.toolbar=n,this.editor=s,this.CSS={input:"cdx-inline-toolbar__input",toolbarWithOpenedInput:"cdx-inline-toolbar--link-input-opened"},this.input=Je("input",this.CSS.input,{placeholder:"ÐÑÑавÑÑе ÑÑÑÐ»ÐºÑ ..."}),t.appendChild(this.input),this.editor.listeners.add(this.input,"keydown",i=>{this.keydown(i)},!1)}set value(t){this.input.value=t||""}get opened(){return this._opened}open(t=!0){this.toolbar.classList.add(this.CSS.toolbarWithOpenedInput),t&&this.input.focus(),this._opened=!0}close(){this.toolbar.classList.remove(this.CSS.toolbarWithOpenedInput),this.input.value="",this._opened=!1}toggle(){this._opened?this.close():this.open()}keydown(t){if(t.keyCode!==xt.ENTER)return;const n=this.editor.blocks.currentBlock.wrapper,s=this.editor.toolbarInline.storedSelection;let i=t.target.value?t.target.value.trim():"";if(!i){this.editor.toolbarInline.restoreSelection(n,s),this.editor.toolbarInline.unlink(),t.preventDefault();return}if(!this.isURL(i)){this.editor.notifications.show({status:"error",message:"ÐекоÑÑекÑÐ½Ð°Ñ ÑÑÑлка"});return}i=this.unwrapRedirection(i),i=this.addProtocol(i),this.editor.toolbarInline.restoreSelection(n,s),this.editor.toolbarInline.setAnchor(i),t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()}isURL(t){return!/\s/.test(t)}addProtocol(t){if(/^(https?|mailto|ftp):/.test(t))return t;const n=/^\/[^/\s]/.test(t),s=t.substring(0,1)==="#",i=/^\/\/[^/\s]/.test(t);return!n&&!s&&!i&&(t="http://"+t),t}unwrapRedirection(t){const n=/https:\/\/api\.[a-z]+\.osnova\.(?:app|io)\/v\d\.\d\/redirect\?to=(\S+)&/,s=t.match(n);return s&&s[1]?decodeURIComponent(s[1]):t}}const N_="cdxInlineToolClick";function Ite(e){this.editor=e,this.selection=new _r;const t=this,n={toolbar:"cdx-inline-toolbar",toolbarOpened:"cdx-inline-toolbar--opened",buttonWrapper:"cdx-inline-toolbar__button-wrapper",buttonHided:"cdx-inline-toolbar__button-wrapper--hided",button:"cdx-inline-toolbar__button",buttonActive:"cdx-inline-toolbar__button-wrapper--active",linkRemover:"cdx-inline-toolbar__link-remover",closeLinkButton:"cdx-inline-toolbar__link-back"};let s=null,i=null;const o={bold:{icon:xte,command:"bold"},italic:{icon:Tte,command:"italic"},marker:{icon:Pte,wrapperTag:"MARK",optional:!0},link:{icon:Ate,command:"createLink"}};this.link=null,this.storedSelection=null,this.scrollableParent=null;function r(S,E){const x=Je("button",n.button);return x.innerHTML=E,x.dataset.type=S,x}function a(S){t.editor.listeners.add(S,"click",function(E){h(E,this)},!1)}this.unlink=function(){t.createLinkAction(),y(),setTimeout(()=>{t.close()},150)},this.onRemoveLinkButtonClick=function(S){S.preventDefault(),Ws(N_,{type:"remove-link"}),t.unlink(S)};const l=function(){let S,E;for(const x in o){E=o[x];const M=Je("span",n.buttonWrapper);if(S=r(x,E.icon),M.appendChild(S),i.appendChild(M),M.setAttribute("data-type",x),x==="link"){t.link=new Rte({container:M,toolbar:i,editor:t.editor});const I=Je("span",n.closeLinkButton);M.insertBefore(I,M.firstChild);const N=Je("button",n.linkRemover);M.appendChild(N),t.editor.listeners.add(N,"click",t.onRemoveLinkButtonClick,!1),t.editor.listeners.add(I,"click",()=>{t.link.toggle()},!1)}a(S)}};
180this.make=function(){i=Je("div",n.toolbar),t.editor.ui.nodes.wrapper.appendChild(i),l()},this.handle=function(S){u(S)?(c(),t.show(),t.editor.toolbar.close(),m(),y(),S&&S.target!==document&&this.editor.blocks.workingBlockChanged(S.target)):t.close()},this.show=function(){i.classList.add(n.toolbarOpened)},this.close=function(){i.classList.remove(n.toolbarOpened)};let c=function(S){s=t.editor.ui.getWrappersOffset(),t.scrollableParent||(t.scrollableParent=Bp(t.editor.ui.nodes.redactor));const E=_r.rect;let x=0,M,I;if(!E)return;i.offsetHeight===0&&(x=40),M=E.x-s.left,I=E.y-s.top-x-i.offsetHeight-10;const N=t.scrollableParent.clientWidth-i.offsetWidth-60;M>N?(i.style.left="auto",i.style.right="0"):(i.style.left=Math.floor(M)+"px",i.style.right="auto"),i.style.top=Math.floor(I)+"px",t.link.close()},u=function(S){const E=window.getSelection();let x,M,I,N;if(S&&["IMG","INPUT"].includes(S.target.tagName)||!E)return!1;if(E.anchorNode){if(x=_r.text,M=t.editor.blocks.getBlockByChildren(E.anchorNode),!M)return!1;I=M.type}return E.isCollapsed||x.length<1?!1:(N=t.editor.toolsManager.available,N[I]&&M.providedApiMethods[Ch])};function d(S,E){document.execCommand(S,!1,E||null)}function h(S,E){const x=E.dataset.type,M=o[x];switch(console.assert(M,"Unknown inline toolbar tool: "+x),x){case"link":t.createLinkAction();break;case"marker":v();break;default:d(M.command,M.argument);break}Ws(N_,{type:x}),y(),S.preventDefault()}function p(){const S=i.querySelectorAll(`.${n.buttonWrapper}`);for(let E=S.length-1;E>=0;E--){const x=S[E];if(x.dataset.type==="link"&&x.classList.contains(n.buttonActive))return!0}return!1}this.createLinkAction=function(){const S=p();if(t.selection.save(),S){const E=k("A");E&&w(E),d("unlink"),t.selection.save()}else t.link.toggle()},this.setAnchor=function(S){const E=k("A");E&&w(E),document.execCommand("createLink",!1,S),setTimeout(()=>{t.close()},50)},this.restoreSelection=(S,E)=>{this.selection.restore()};let m=function(){const S=window.getSelection().anchorNode,E=t.editor.blocks.getBlockByChildren(S),x=i.querySelectorAll(`.${n.buttonWrapper}`);for(let N=x.length-1;N>=0;N--)x[N].classList.remove(n.buttonHided);const M=E.providedApiMethods[Ch],I=M instanceof Array?M:Object.keys(o).filter(N=>!o[N].optional);if(M instanceof Array){const N=Array.from(x),V=N.reduce((j,X)=>(j[X.dataset.type]=X,j),{}),$=document.createDocumentFragment();I.forEach(j=>{V[j]&&$.appendChild(V[j])}),N.forEach(j=>{I.includes(j.dataset.type)||$.appendChild(j)}),i.appendChild($)}for(let N=x.length-1;N>=0;N--){const V=x[N];I.includes(V.dataset.type)||V.classList.add(n.buttonHided)}};function v(){const S=k("MARK");if(S){g(S);return}const E=window.getSelection();if(!E||E.rangeCount===0)return;const x=E.getRangeAt(0);if(x.collapsed)return;const M=document.createElement("mark"),I=x.extractContents();M.appendChild(I),x.insertNode(M),E.removeAllRanges();const N=document.createRange();N.selectNodeContents(M),E.addRange(N),b(M)}function g(S){const E=S.parentNode;if(E){for(;S.firstChild;)E.insertBefore(S.firstChild,S);E.removeChild(S),b(E)}}function b(S){const E=S.nodeType===Node.ELEMENT_NODE?S:S.parentElement,x=E&&E.closest('[contenteditable="true"]');x&&x.dispatchEvent(new Event("input",{bubbles:!0}))}function w(S){const E=window.getSelection();E.removeAllRanges();const x=document.createRange();x.selectNodeContents(S),E.addRange(x)}function k(S,E){const x=window.getSelection();if(!x.anchorNode)return null;let M=x.anchorNode.parentNode,I=10;for(;I>0&&M!==t.editor.ui.nodes.redactor&&M.parentNode;){if(M.tagName===S)return M;M=M.parentNode,I--}return null}function y(){const S=i.querySelectorAll(`.${n.buttonWrapper}`);t.link.value="";for(let E=S.length-1;E>=0;E--){const x=S[E],M=x.dataset.type,I=o[M];let N=!1;if(I.command?N=document.queryCommandState(I.command):I.wrapperTag&&(N=k(I.wrapperTag)!==null),x.classList.toggle(n.buttonActive,N),M==="link"){const V=k("A");if(V){x.classList.add(n.buttonActive),t.link.open(!1);const $=V.getAttribute("href");t.link.value=$!=="null"?$:"",t.selection.save()}}}}return this}function Mte(){const e=this;return this.allListeners=[],this.search=(function(){const t=function(i,o){const r=[];o=o||e.allListeners;for(let a=0;a<o.length;a++){const l=o[a];l.element===i&&r.push(l)}return r},n=function(i,o){const r=[];o=o||e.allListeners;for(let a=0;a<o.length;a++){const l=o[a];l.type===i&&r.push(l)}return r},s=function(i,o){const r=[];o=o||e.allListeners;for(let a=0;a<o.length;a++){const l=o[a];l.handler===i&&r.push(l)}return r};return{byElement:t,byType:n,byHandler:s,one:function(i,o,r){let a=e.allListeners;return i&&(a=t(i,a)),o&&(a=n(o,a)),r&&(a=s(r,a)),a[0]},all:function(i,o,r){let a=e.allListeners;return i&&(a=t(i,a)),o&&(a=n(o,a)),r&&(a=s(r,a)),a}}})(),this.add=function(t,n,s,i){t.addEventListener(n,s,i);const o={element:t,type:n,handler:s}
180;e.search.one(t,n,s)||e.allListeners.push(o)},this.remove=function(t,n,s){const i=e.search.all(t,n,s);for(let o=0;o<i.length;o++){const r=e.allListeners.indexOf(i[o]);t.removeEventListener(i[o].type,i[o].handler),r>0&&e.allListeners.splice(r,1)}},this.removeAll=function(){e.allListeners.forEach(function(t){e.remove(t.element,t.type,t.handler)})},this.get=function(t,n,s){return e.search.all(t,n,s)},this}class X0{constructor(t){this.editor=t,this.queue=[],this.nodes={holder:void 0},this.customNotifiers=null}static get CSS(){return{holder:"cdx-notifications-block"}}make(){return this.nodes.holder=Je("div",X0.CSS.holder),this.nodes.holder}addToQueue(t){this.queue.push(t);let n=0;for(;n<this.queue.length&&this.queue.length>5;){if(this.queue[n].type==="confirm"||this.queue[n].type==="prompt"){n++;continue}this.queue[n].close(),this.queue.splice(n,1)}}errorThrown(t,n){this.show({message:"This action is not available currently",type:n.type})}show(t){if(this.editor.config.customNotifiers&&typeof this.editor.config.customNotifiers.alert=="function"){this.editor.config.customNotifiers.alert({type:t.status,message:t.message,button_text:t.button_text,onButtonClick:t.onButtonClick});return}let n=null,s=null,i=null,o=null,r=null;const a=function(){if(d(),typeof o=="function"){if(i==="prompt"){o(r.value);return}o()}},l=function(){d(),typeof s=="function"&&s()},c=h=>{if(!(h&&h.message)){Kn("Can't create notification. Message is missed");return}h.type=h.type||"alert",h.time=h.time*1e3||1e4;const p=Je("div","cdx-notification"),m=Je("div","cdx-notification__message"),v=Je("input","cdx-notification__input"),g=Je("span","cdx-notification__ok-btn"),b=Je("span","cdx-notification__cancel-btn");m.textContent=h.message,g.textContent=h.okMsg||"ÐÐ",b.textContent=h.cancelMsg||"ÐÑмена",this.editor.listeners.add(g,"click",a),this.editor.listeners.add(b,"click",l),p.appendChild(m),h.type==="prompt"&&p.appendChild(v),p.appendChild(g),(h.type==="prompt"||h.type==="confirm")&&p.appendChild(b),p.classList.add("cdx-notification-"+h.type),p.dataset.type=h.type,n=p,i=h.type,o=h.confirm,s=h.cancel,r=v,h.type!=="prompt"&&h.type!=="confirm"&&window.setTimeout(d,h.time)},u=()=>{this.nodes.holder.appendChild(n),r.focus(),this.nodes.holder.classList.add("cdx-notification__notification-appending"),window.setTimeout(()=>{this.nodes.holder.classList.remove("cdx-notification__notification-appending")},100),this.addToQueue({type:i,close:d})},d=()=>{n.remove()};return t&&(c(t),u()),{create:c,send:u,close:d}}clear(){this.nodes.holder.innerHTML="",this.queue=[]}}function $te(e){e=e.toLowerCase();const t={q:"й",w:"Ñ",e:"Ñ",r:"к",t:"е",y:"н",u:"г",i:"Ñ",o:"Ñ",p:"з",a:"Ñ",s:"Ñ",d:"в",f:"а",g:"п",h:"Ñ",j:"о",k:"л",l:"д",z:"Ñ",x:"Ñ",c:"Ñ",v:"м",b:"и",n:"Ñ",m:"Ñ"};let n="";for(let s=0,i=e.length;s<i;s++)n+=t[e[s]];return n}function Lte(e,t){const n=new RegExp("^["+t+"]+|["+t+"]+$","g");return e.replace(n,"")}function Ote(e){const t={"&":"&","<":"<",">":">",""":'"',"'":"'"};for(const n in t)e=e.replace(new RegExp(n,"g"),t[n]);return e}function Bte(e){return/\s/.test(e)}class Dte{constructor(t){this.editor=t,this.patterns=[],this.handledTags=[],this.handledFiles=[],this.MAX_LENGTH_TO_PARSE=350}prepareSettings(){const t=this.editor.toolsManager.available;Object.entries(t).forEach(([n,s])=>{const i=s.class,o=i[Xee],r=i[Yee],a=i[Qee];
180o&&Array.isArray(o.tags)&&o.tags.forEach(l=>{this.handledTags.push({tool:n,tag:l,fill:o.fill,pasteParser:o.pasteParser||null})}),Array.isArray(r)&&r.forEach(l=>{this.patterns.push(Object.assign(l,{tool:n}))}),a&&Array.isArray(a.mime)&&a.mime.forEach(l=>{this.handledFiles.push({tool:n,mime:l})})})}blockPasteCallback(t){const n=this.editor.blocks.currentBlock,s=n.type,i=t.clipboardData||t.dataTransfer,o=i.types;if(Uo(t.target)||!n)return;if(t.preventDefault(),o.includes?o.includes("Files"):o.contains("Files")){this.processFiles(i.files);return}const r=n.externalConfig[Ax],a=i.getData("text/html"),l=i.getData("text/plain");let c=!1;if(typeof r=="function"){if(r.call(n.wrapper,t,a,l)===!1)return}else r&&Kn(`${s} tool: pasteCallback is not a function`,"warn");if(!(Uo(t.target)||!t.target.closest('[contenteditable="true"]'))){if(!a&&!l){Kn("There is no data to paste","log",i);return}n.type===this.editor.config.initialBlockPlugin?(c=this.splitAndPaste(a,l),c!==!0&&c.then(()=>{n.isEmpty&&this.editor.blocks.remove(n)})):c=this.defaultPasteBehaviour(a,l),c&&(t.preventDefault(),t.stopImmediatePropagation())}}processFiles(t){const n=Array.from(t).map(a=>this.processFile(a)).filter(a=>a!==void 0);if(!n.length){Kn("No tools found to process files with mime types: ","log",Array.from(t).map(a=>a.type));return}const s=this.editor.blocks.currentBlock,i=s.id;if(!s)return;const o=this.editor.blocks.getBlockPosition(s);n.forEach(({tool:a,file:l})=>{this.editor.blocks.append({type:a,data:{}},o).callApiMethod(xx,{file:l})});const r=this.editor.blocks.getBlockById(i);r.isEmpty&&this.editor.blocks.remove(r)}processFile(t){const n=t.type,s=this.handledFiles.find(({mime:i})=>n===i);if(s)return{tool:s.tool,file:t}}splitAndPaste(t,n){return n.trim()&&this.editor.toolsManager.available[this.editor.blocks.currentBlock.type].class.allowRenderOnPaste&&this.renderOnPaste(n)?!0:t?this.appendHTMLParts(this.prepareHTML(t)):this.appendPlainParts(this.preparePlain(n))}prepareHTML(t){const n=this.editor.sanitizer.getConfig();for(let i=this.handledTags.length-1;i>=0;i--)n.tags[this.handledTags[i].tag.toLowerCase()]=this.checkSanitizerForBlockTags;const s=this.editor.sanitizer.clean(t,n,!0);return _x(s,!0)}checkSanitizerForBlockTags(t){return["CODE","IMG"].includes(t.tagName)&&t.style.display!=="block"?!1:{}}preparePlain(t){return t.split(` 181 182`).filter(n=>n.trim().length>0).map(n=>Lte(n,` 183`))}appendPlainParts(t){return t.length===1?(this.defaultPasteBehaviour("",t[0]),Promise.resolve()):t.reduce((n,s,i)=>n.then(()=>{const o=i===t.length-1,r=this.appendPlainPart(s);o&&this.editor.caret.setToBlock(r,this.editor.caret.positions.END)}),Promise.resolve())}appendPlainPart(t){let n=this.editor.config.initialBlockPlugin;const s="text",i=t;let o={};if(!t.trim())return;const r=this.editor.toolsManager.matchMarkdown(i),a=i.match(/\[([a-zA-Z]+):(.+)\]/);if(r)n=r.tool,o=r.parseFrom(i);else if(a){n=a[1];try{o=JSON.parse(a[2])}catch(c){console.warn("Can not parse paragraph clipboard data: ",a[2],c),o=null}}else o={},o[s]=i;const l=this.editor.toolsManager.available[n].class;return console.assert(l,"[CodeX Editor] Paste module can not find tool "+n),this.editor.blocks.append({type:n,data:o})}appendHTMLParts(t){return t.length===1&&t[0].tagName==="P"?(this.defaultPasteBehaviour(t[0].innerHTML,t[0].textContent),Promise.resolve()):Array.from(t).reduce((n,s,i)=>n.then(()=>{const o=i===t.length-1;let r=this.editor.config.initialBlockPlugin,a=this.editor.toolsManager.available[r].class,l="text",c=s.outerHTML,u={};if(s.textContent.trim()){if(s.tagName.toLowerCase()==="p"&&s.childNodes.length===1){this.appendPlainPart(Ote(s.innerHTML));return}for(let d=this.handledTags.length-1;d>=0;d--)this.handledTags[d].tag===s.tagName&&(r=this.handledTags[d].tool,a=this.editor.toolsManager.available[r].class,l=this.handledTags[d].fill,console.assert(a,"[CodeX Editor] Paste module can not find tool "+r),this.handledTags[d].pasteParser?(console.assert(typeof this.handledTags[d].pasteParser=="function","[CodeX Editor] Unexpected pasteParser method type"),c=this.handledTags[d].pasteParser(s)):c=s.textContent);if(typeof c=="object"){for(const d in c)c[d]=Array.isArray(c[d])?c[d].map(h=>this.editor.sanitizer.clean(h)):this.editor.sanitizer.clean(c[d]);u=c}else c=this.editor.sanitizer.clean(c),u[l]=c;this.editor.blocks.append({type:r,data:u}),o&&this.editor.caret.setToBlock(this.editor.blocks.lastBlock)}}),Promise.resolve())}defaultPasteBehaviour(t,n){const s=Je("div"),i=document.createDocumentFragment();let o,r;for(t.trim()?s.innerHTML=this.editor.sanitizer.clean(t,null,!0):s.innerText=n.toString();o=s.firstChild;)r=i.appendChild(o);if(this.editor.toolsManager.available[this.editor.blocks.currentBlock.type].class.allowRenderOnPaste&&this.renderOnPaste(n))return!0;let a,l;a=window.getSelection(),l=a.getRangeAt(0),l.deleteContents(),l.insertN
183ode(i),r&&(l=l.cloneRange(),l.setStartAfter(r),l.collapse(!0),a.removeAllRanges(),a.addRange(l))}renderOnPaste(t){return this.analyze(t)}analyze(t){let n=!1;const s=this.editor.blocks.currentBlock;return t.length>this.MAX_LENGTH_TO_PARSE||Bte(t)?!1:(this.patterns.forEach(i=>{const o=i.regex.exec(t);o&&(o[0]||o[1])&&!n&&(this.editor.blocks.append({type:i.tool}).callApiMethod(Ex,[t,i]),s.isEmpty&&this.editor.blocks.remove(s),n=!0)}),n)}}class Nte{constructor(t){this.editor=t,this.history=[],this.currentVersion=-1,this.deep=15}back(){--this.currentVersion,this.currentVersion<0&&(this.currentVersion=0),this.acceptVersion()}forward(){++this.currentVersion,this.currentVersion>this.history.length&&(this.currentVersion=this.history.length),this.acceptVersion()}acceptVersion(){const t=this.history[this.currentVersion];if(!t)return;this.editor.changesObserver.lock(),this.editor.ui.nodes.redactor.innerHTML=t;const n=this.editor.ui.nodes.redactor.querySelectorAll(".ce-block");for(let s=n.length-1;s>=0;s--)this.editor.blockEvents.add(n[s]);setTimeout(()=>{this.editor.changesObserver.unlock()},500)}save(){const t=this.editor.ui.nodes.redactor.innerHTML;console.assert(t,"RedoManager: Unable to write empty state to the history"),t&&(this.history[++this.currentVersion]=t,this.history.length>this.deep&&this.history.shift())}destroy(){this.history=[],this.currentVersion=-1}}class Fte{constructor(t){this.editor=t}clear(){this.editor.blocks.getBlocksOrdered().forEach(t=>{this.editor.blocks.remove(t)}),this.editor.blocks.workingBlockChanged()}addBlock({type:t,data:n,anchor:s,cover:i,hidden:o}){this.editor.blocks.append({type:t,data:n,anchor:s,cover:i,hidden:o})}getNodeAsync(t,n){return Promise.resolve(t[n])}appendNodeAtIndex(t,n,s){t.then(()=>this.getNodeAsync(n,s)).then(i=>{this.addBlock(i)}).catch(i=>{Kn("Node skipped while parsing because %o","error",i)})}appendBlocks(t){const n=t.items,s=Promise.resolve();for(let i=0;i<n.length;i++)this.appendNodeAtIndex(s,n,i)}finished(){setTimeout(()=>{this.editor.changesObserver.observe()},1e3)}makeBlocksFromData(){if(!this.editor.config.data||!this.editor.config.data.items.length){this.addInitialBlock(),this.finished();return}Promise.resolve().then(()=>this.editor.config.data).then(t=>this.appendBlocks(t)).then(()=>this.finished()).catch(t=>{Kn("Error while parsing JSON: %o","error",t)})}addInitialBlock(){const t=this.editor.blocks.append();return t.wrapper.setAttribute("data-placeholder",this.editor.config.placeholder),t}}var Ute=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Hte(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rx={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(Ute,function(){function n(d){var h=d.tags,p=Object.keys(h),m=p.map(function(v){return typeof h[v]}).every(function(v){return v==="object"||v==="boolean"||v==="function"});if(!m)throw new Error("The configuration was invalid");this.config=d}var s=["P","LI","TD","TH","DIV","H1","H2","H3","H4","H5","H6","PRE"];function i(d){return s.indexOf(d.nodeName)!==-1}var o=["A","B","STRONG","I","EM","SUB","SUP","U","STRIKE"];function r(d){return o.indexOf(d.nodeName)!==-1}n.prototype.clean=function(d){const h=document.implementation.createHTMLDocument(),p=h.createElement("div");return p.innerHTML=d,this._sanitize(h,p),p.innerHTML},n.prototype._sanitize=function(d,h){var p=a(d,h),m=p.firstChild();if(m)do{if(m.nodeType===Node.TEXT_NODE)if(m.data.trim()===""&&(m.previousElementSibling&&i(m.previousElementSibling)||m.nextElementSibling&&i(m.nextElementSibling))){h.removeChild(m),this._sanitize(d,h);break}else continue;if(m.nodeType===Node.COMMENT_NODE){h.removeChild(m),this._sanitize(d,h);break}var v=r(m),g;v&&(g=Array.prototype.some.call(m.childNodes,i));var b=!!h.parentNode,w=i(h)&&i(m)&&b,k=m.nodeName.toLowerCase(),y=l(this.config,k,m),S=v&&g;
183if(S||c(m,y)||!this.config.keepNestedBlockElements&&w){if(!(m.nodeName==="SCRIPT"||m.nodeName==="STYLE"))for(;m.childNodes.length>0;)h.insertBefore(m.childNodes[0],m);h.removeChild(m),this._sanitize(d,h);break}for(var E=0;E<m.attributes.length;E+=1){var x=m.attributes[E];u(x,y,m)&&(m.removeAttribute(x.name),E=E-1)}this._sanitize(d,m)}while(m=p.nextSibling())};function a(d,h){return d.createTreeWalker(h,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_COMMENT,null,!1)}function l(d,h,p){return typeof d.tags[h]=="function"?d.tags[h](p):d.tags[h]}function c(d,h){return typeof h>"u"?!0:typeof h=="boolean"?!h:!1}function u(d,h,p){var m=d.name.toLowerCase();return h===!0?!1:typeof h[m]=="function"?!h[m](d.value,p):typeof h[m]>"u"||h[m]===!1?!0:typeof h[m]=="string"?h[m]!==d.value:!1}return n})})(Rx);var Vte=Rx.exports;const zte=Hte(Vte),Wte=(function(e){const t={DEFAULT:{tags:{p:{},a:{href:!0,target:"_blank",rel:"nofollow"}}}},n=function(i){const o=i||t.DEFAULT;return new zte(o)},s=function(i){return i.replace(/ /gi," ").replace(/\u200B/g,"").replace(/\s+/g," ").trim()};return e.getConfig=function(){const i=t.DEFAULT;return JSON.parse(JSON.stringify(i))},e.clean=function(i,o,r){const a=n(o);let l;return l=a.clean(i),r&&(l=s(l)),l},e.removeEmptyTags=function(i){function o(r){return r.textContent.trim().length>0}i.innerHTML=e.clean(i.innerHTML,{tags:{a:o,b:o,div:o,p:o,i:o,u:o,span:o,em:o,mark:o}})},e})({});class jte{constructor(t){this.editor=t,this.savingGroupLabel="[CodeX Editor] Saving"}save(){console.groupCollapsed(this.savingGroupLabel);const t=this.editor.blocks.getBlocksOrdered().map(n=>this.blockSavingProcess(n));return Promise.all(t).then(this.filterEmptyBlocks).catch(this.savingFailed).finally(()=>{console.groupEnd()})}savingFailed(t){Kn("Saving process failed because of %o","warn",t);const n=new CustomEvent("cdxSavingError",{detail:{error:t}});document.dispatchEvent(n)}filterEmptyBlocks(t){const n=new CustomEvent("cdxSavingSuccess");document.dispatchEvent(n);const s=t.filter(i=>i!==void 0);return s.forEach(i=>{console.groupCollapsed(`${i.type} ${i.anchor?" #"+i.anchor:""} ${i.cover?"â":""} ${i.hidden?"ð¹":""} `),console.log(i.data),console.groupEnd()}),s}blockSavingProcess(t){return new Promise(n=>{this.checkBlockTool(t).then(s=>this.saveBlock(s)).then(s=>{n(s)}).catch(s=>{Kn(`Tool «${t.type}» skipped while saving because of %o`,"warn",s);const i=new CustomEvent("cdxToolSkippedWhileSaving",{detail:{type:t.type}});document.dispatchEvent(i),n()})})}checkBlockTool(t){const n=t.type,s=t.pluginInstance;if(!s)throw new Error(`Plugin «${n}» not found`);return typeof s.save!="function"?Promise.reject(new Error(`Plugin «${n}» must have save method`)):Promise.resolve(t)}callSaveMethod(t){return Promise.resolve().then(()=>{const n=t.pluginInstance,s=t.content;return n.save(s)})}saveBlock(t){return new Promise((n,s)=>{this.callSaveMethod(t).then(i=>{this.validateBlock(t,i)||s(Error("saved data is invalid")),n(this.formatData(i,t))}).catch(i=>{s(Error(`Plugin «${t.type}» throws exception while saving: `+i))})})}validateBlock(t,n){const s=t.type,i=t.pluginInstance;if(typeof i.validate!="function")return!0;const o=i.validate(n);return console.assert(typeof o=="boolean",`Unexpected «${s}» 'validate' response. Boolean expected, ${typeof o} given`),!!o}formatData(t,n){const s={};return s.type=n.type,s.cover=n.cover,s.hidden=n.hidden,s.anchor=n.anchor||"",s.data=t,s}}const Ix=(e,t)=>{Ws("cdxShortcutUsed",{type:e,description:t})};class Gte{constructor(t){this.editor=t,this.preDefined=[],this.addPredefined(),this.nativeItemSelected=!1}acceptKeydown(t,n=!1){const s=t.keyCode,i=t.ctrlKey||t.metaKey;for(let o=this.preDefined.length-1;o>=0;o--)if(this.preDefined[o].keyCode===s&&(!this.preDefined[o].cmdKey||this.preDefined[o].cmdKey===i)){const r=!!this.preDefined[o].global;if(n&&!r||!n&&r)return;const{name:a,description:l,handler:c}=this.preDefined[o],u=typeof c=="function"?c.call(this,t):!0;return Ix(a,l),u}}add(t){this.preDefined.push(t)}addPredefined(){this.add({name:"CMD+K",keyCode:xt.K,cmdKey:!0,handler:function(t){t.preventDefault(),this.editor.toolbarInline.handle(t),this.editor.toolbarInline.createLinkAction(t),this.editor.toolbarInline.link.open()}}),this.add({name:"CMD+B",keyCode:xt.B,cmdKey:!0,handler:function(t){t.preventDefault(),document.execCommand("bold")}}),this.add({name:"CMD+I",keyCode:xt.I,cmdKey:!0,handler:function(t){t.preventDefault(),document.execCommand("italic")}}),this.add({name:"CMD+A",keyCode:xt.A,cmdKey:!0,global:!0,handler:function(t){const{currentBlock:n}=this.editor.blocks;let s=window.getSelection().anchorNode;if(!this.editor.state.get(K0))return!0;s&&!si(s)&&(s=s.parentNode);const i=s?Uo(t.target)||s.closest(la):!1;if(n){if(!this.nativeItemSelected&&i){this.nativeItemSelected=!0;return}return n.selected?this.editor.blocks.selectAll():this.nativeItemSelected?this.editor.blocks.selectAll():this.editor.blocks.selectBlock(n),t.preventDefault(),window.getSelection().removeAllRanges(),!1}}}),this.add({name:"CMD+С",keyCode:xt.C,global:!0,cmdKey:!0,handler:function(t){const n=this.editor.blocks.selected;if(n.length)return t.preventDefault(),this.editor.blocks.copyToClipBoard(n),!1}}),this.add({name:"CMD+X",keyCode:xt.X,global:!0,cmdKey:!0,handler(t){const n=this.editor.blocks.selected;if(n.length)return t.preventDefault(),this.editor.blocks.copyToClipBoard(n),setTimeout(()=>{const s=this.editor.blocks.getBlockPosition(n[0]),i=this.editor.blocks.append(void 0,s);
183n.forEach(o=>{this.editor.blocks.remove(o)}),setTimeout(()=>{this.editor.caret.setToBlock(i)},50)},50),!1}}),this.add({name:"CMD+V",description:"Paste",keyCode:xt.V,cmdKey:!0})}}function qte(e){this.editor=e;const t=this,n={wrapper:"ce-toolbar",content:"ce-toolbar__content",plusButton:"ce-toolbar__plus",plusButtonHidden:"ce-toolbar__plus--hidden",mobileBlockActions:"ce-toolbar__mobile-block-actions",mobileBlockActionsBlockSettingsButton:"ce-toolbar__mobile-block-actions-block-settings-button"};this.nodes={wrapper:void 0,content:void 0,plusButton:void 0,mobileBlockActions:void 0},this.make=()=>(this.nodes.wrapper=Je("div",n.wrapper),s(),this.nodes.wrapper);const s=()=>{this.nodes.content=Je("div",n.content);const a=this.editor.toolbarToolbox.make();this.nodes.plusButton=Je("span",n.plusButton,{innerHTML:'<i class="cdx-icon cdx-icon--plus"></i>'}),this.nodes.mobileBlockActions=i(),this.editor.listeners.add(this.nodes.plusButton,"click",()=>{r()},!1),this.nodes.content.appendChild(this.nodes.plusButton),this.nodes.content.appendChild(this.nodes.mobileBlockActions),this.nodes.content.appendChild(a),this.nodes.wrapper.appendChild(this.nodes.content)},i=()=>Je("div",n.mobileBlockActions),o=()=>{const{currentBlock:a}=this.editor.blocks;if(Array.from(this.nodes.mobileBlockActions.children).forEach(u=>{this.editor.listeners.remove(u)}),this.nodes.mobileBlockActions.innerHTML="",!a||a.isEmpty)return;const l=Je("div",n.mobileBlockActionsBlockSettingsButton),c=yx("block-drag");l.appendChild(c),this.editor.listeners.add(l,"click",u=>{const d=this.editor.blocks.currentBlock;d&&d.actions.settings.togglerClicked()}),this.nodes.mobileBlockActions.appendChild(l)},r=()=>{this.editor.toolbarToolbox.toggle(),this.editor.toolbarToolbox.opened&&Ws("cdxAddNewBlockClick")};return this.defaultToolbarHeight=52,this.defaultOffset=32,this.opened=!1,this.open=function(){t.editor.config.hideToolbar||(o(),t.editor.toolbar.nodes.wrapper.classList.add("opened"),this.opened=!0)},this.close=function(){t.editor.toolbar.nodes.wrapper.classList.remove("opened"),t.opened=!1;for(const a in t.nodes.buttons)t.nodes.buttons[a].classList.remove("selected");t.editor.toolbarToolbox.close()},this.toggle=()=>{this.opened?this.close():this.open()},this.hidePlusButton=function(){t.editor.toolbar.nodes.plusButton.classList.add(n.plusButtonHidden)},this.showPlusButton=function(){t.editor.toolbar.nodes.plusButton.classList.remove(n.plusButtonHidden)},this.move=function(){this.close(),t.editor.toolbarToolbox.close();const{currentBlock:a}=this.editor.blocks;if(!a)return;let l=a.wrapper.offsetTop-t.editor.toolbar.defaultToolbarHeight/2+t.editor.toolbar.defaultOffset-4;if(this.editor.state.get(Dp)){const c=zee(this.editor.ui.nodes.scrollableWrapper),u=c+window.innerHeight;if(l+=a.wrapper.offsetHeight-10,l>u){const d=this.editor.ui.getWrappersOffset().top;l=u-this.nodes.wrapper.offsetHeight-parseInt(window.getComputedStyle(this.nodes.wrapper).marginTop)-d-10-c}}t.editor.toolbar.nodes.wrapper.style.transform=`translate3D(0, ${Math.floor(l)}px, 0)`},this}const Kte=`<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"> 184 <path d="M9.167 4.167a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm-6.667 5a6.667 6.667 0 1 1 11.933 4.088l2.823 2.822a.833.833 0 1 1-1.178 1.179l-2.823-2.823A6.667 6.667 0 0 1 2.5 9.167z"/> 185</svg> 186`;class Qt{constructor(t,n){this.editor=t,this.api=n,this.opened=!1,this.current=null,this.nodes={wrapper:void 0,searchWrapper:void 0,search:void 0,buttons:[],notFoundMessage:void 0}}static get CSS(){return{wrapper:"ce-toolbox",content:"ce-toolbox__content",wrapperAbove:"ce-toolbox--above",item:"ce-toolbox__item",itemSelected:"ce-toolbox__item--selected",itemHidden:"ce-toolbox__item--hidden",notFound:"ce-toolbox__not-found",notFoundShowed:"ce-toolbox__not-found--showed",itemIcon:"ce-toolbox__item-icon",itemTitle:"ce-toolbox__item-title",editorModeToolboxOpened:"codex-editor--toolbox-opened",toolBoxOpened:"opened",plusButtonClicked:"clicked",searchWrapper:"ce-toolbox-search",searchInput:"ce-toolbox-search-input",searchIcon:"ce-toolbox-search-icon"}}make(){const t=new yo({title:"ÐÑÐ±Ð¾Ñ Ð±Ð»Ð¾ÐºÐ°",api:this.api,classes:[Qt.CSS.wrapper],onClose:()=>{this.close()}}),n=Je("div",Qt.CSS.content),s=this.createSearch(),i=this.createToolButtons();
186return this.nodes.wrapper=t.element,n.appendChild(s),i.forEach(o=>n.appendChild(o)),n.appendChild(this.createNotFoundItem()),t.appendContent(n),this.nodes.wrapper}createSearch(){return this.nodes.searchWrapper=Je("div",Qt.CSS.searchWrapper,{innerHTML:`<span class="${Qt.CSS.searchIcon}">${Kte}</span>`}),this.nodes.search=Je("input",Qt.CSS.searchInput),this.nodes.search.placeholder="ÐоиÑк",this.editor.listeners.add(this.nodes.search,"keydown",t=>{switch(t.keyCode){case xt.DOWN:case xt.UP:case xt.TAB:t.preventDefault(),this.leaf(t.keyCode===xt.UP);break;case xt.ESC:this.close(),this.editor.caret.setToBlock(this.editor.blocks.currentBlock);break;case xt.ENTER:this.selectToolByEnter(t);break;default:setTimeout(()=>{this.search(t.target.value)},120)}}),this.nodes.searchWrapper.appendChild(this.nodes.search),this.nodes.searchWrapper}search(t){const n=t.toLowerCase(),s=$te(n);let i,o=0;this.nodes.buttons.forEach(r=>{const a=r.type,l=r.button,c=l.textContent.trim().toLowerCase(),u=c.includes(n)||c.includes(s);!i&&u&&(i=a),l.classList.toggle(Qt.CSS.itemHidden,!u),u&&o++}),i?this.selectTool(i):this.current=null,this.nodes.notFoundMessage.classList.toggle(Qt.CSS.notFoundShowed,o===0)}createToolButtons(){const t=[];return Object.entries(this.editor.toolsManager.available).filter(([n,s])=>{const i=s.class;return i.iconClassname!==void 0||Array.isArray(i.toolbox)?(typeof i!="function"&&typeof i.render!="function"&&Kn("render method missed. Tool %o skipped","warn",n),!0):!1}).forEach(([n,s])=>{const i=s[Px],o=this.createToolButton(n,s,i);t.push(...o)}),t}toggle(){this.opened?this.close():this.open()}open(){if(this.editor.blockActionsManager.closeEveryBlockSettings(),this.nodes.wrapper.classList.add(Qt.CSS.toolBoxOpened),this.editor.toolbar.nodes.plusButton.classList.add(Qt.CSS.plusButtonClicked),this.opened=!0,this.editor.ui.nodes.wrapper.classList.add(Qt.CSS.editorModeToolboxOpened),this.nodes.wrapper.classList.remove(Qt.CSS.wrapperAbove),!this.editor.state.get(Dp)){const{bottom:t}=this.api.checkElementFit(this.nodes.wrapper);if(!t){this.nodes.wrapper.classList.add(Qt.CSS.wrapperAbove);const{top:n}=this.api.checkElementFit(this.nodes.wrapper);n||this.nodes.wrapper.classList.remove(Qt.CSS.wrapperAbove)}}setTimeout(()=>{this.nodes.search.focus()},100)}close(){this.nodes.wrapper.classList.remove(Qt.CSS.toolBoxOpened),this.editor.toolbar.nodes.plusButton.classList.remove(Qt.CSS.plusButtonClicked),this.opened=!1,this.current=null,this.nodes.search.value="",this.nodes.buttons.forEach(t=>{t.button.classList.remove(Qt.CSS.itemSelected),t.button.classList.remove(Qt.CSS.itemHidden)}),this.editor.ui.nodes.wrapper.classList.remove(Qt.CSS.editorModeToolboxOpened)}leaf(t=!1){const n=this.current;let s=0;const i=this.nodes.buttons;if(n){let r=0;for(let a=0;a<i.length;a++)if(i[a].type===n.name&&i[a].data===n.data){r=a;break}s=t?r-1:r+1}s===i.length&&(s=0),s===-1&&(s=i.length-1);const o=i[s];this.selectTool(o.type,o.data)}selectTool(t,n){this.nodes.buttons.forEach(({type:s,button:i,data:o})=>{if(s===t&&o===n){i.classList.add(Qt.CSS.itemSelected),typeof i.scrollIntoViewIfNeeded=="function"&&i.scrollIntoViewIfNeeded(),this.current={name:t,data:n};return}i.classList.remove(Qt.CSS.itemSelected)})}createToolButton(t,n,s){const i=n.class,o=[];return Array.isArray(i.toolbox)?o.push(...i.toolbox):i.iconClassname&&i.title&&o.push({icon:`<span class="${Qt.CSS.itemIcon} ${i.iconClassname}"></span>`,title:i.title}),o.map(r=>{const a=this.makeButton(t,r.icon,r.title,s);return this.editor.listeners.add(a,"click",l=>{this.buttonClicked(l,a,r.data)}),this.nodes.buttons.push({type:t,button:a,data:r.data}),a})}createNotFoundItem(){const t=Je("div",[Qt.CSS.notFound],{innerHTML:"ÐÐµÑ Ð¸Ð½ÑÑÑÑменÑов"});return this.nodes.notFoundMessage=t,t}makeButton(t,n,s="",i=!1){const o=i?'<span class="new">NEW</span>':"",r=Je("li",Qt.CSS.item,{innerHTML:`<span class="cdx-icon">${n}</span> 187 <span class="${Qt.CSS.itemTitle}"> 188 ${s} ${o} 189 </span> 190 `});return r.dataset.type=t,r}buttonClicked(t,n,s=void 0){const i=n.dataset.type;this.current={name:i,data:s},i==="__show-more"?this.showMoreClicked():(this.selectToolByEnter(t),this.editor.toolbar.close())}selectToolByEnter(t){if(this.current===null)return;const n=this.current.name,s=this.editor.blocks.currentBlock,i=this.current.data;let o;this.editor.toolbar.close(),s&&s.type===this.editor.config.initialBlockPlugin&&s.isEmpty?o=this.editor.blocks.switch({blockToReplace:s,newBlockType:n,newBlockData:i}):o=this.editor.blocks.append({type:n,data:i}),typeof o.providedApiMethods[Sg]=="function"&&o.callApiMethod(Sg,t),window.setTimeout(()=>{o.inputs.length&&this.editor.caret.setToBlock(o)},10),window.setTimeout(()=>{this.editor.blocks.workingBlockChanged(o),this.editor.blocks.currentBlock.updateCurrentInputIndex(),o.updateInputs()},250),this.editor.toolbar.move(),this.current=null;const r=new CustomEvent("cdxToolClick",{detail:{type:n}});document.dispatchEvent(r)}appendDelimiter(){this.nodes.wrapper.appendChild(document.createElement("div"))}showMoreClicked(){this.nodes.wrapper.classList.toggle("ce-toolbar__tools--expanded")}}class Eh{static get contentless(){return!0}static set name(t){this._name=t}static get name(){return this._name}constructor(){this.data=void 0}render(t){return this.data=t,this.wrapper=document.createElement("div"),this.wrapper.classList.add("ce-stub"),this.wrapper.dataset.text=`Ðлок '${Eh.name}' не поддеÑживаеÑÑÑ`,this.wrapper}save(){return this.data}destroy(){this.wrapper=null}}class Yte{constructor(t){this.editor=t,this.plugins={},this.toolsAvailable=[],this.toolsUnavailable={},this.markdownConfigs=[]}get available(){const t={};
190return Object.entries(this.plugins).forEach(([n,s])=>{this.toolsAvailable.includes(n)&&(t[n]=s)}),t}prepare(){return new Promise((t,n)=>{const s=this.editor.config.tools;Object.entries(s).forEach(([i,o])=>{typeof o=="object"&&typeof o.class=="function"?this.plugins[i]=o:this.plugins[i]={class:o}}),Promise.resolve().then(()=>this.toolsToPrepare).then(i=>{const o=this.prepareTools(i);return this.preparePatternsAndMarkdown(),o}).then(t).catch(n)})}get toolsToPrepare(){const t=[];for(const n in this.plugins)if(Object.prototype.hasOwnProperty.call(this.plugins,n)){if(typeof this.plugins[n].class[B_]!="function"){this.toolsAvailable.push(n);continue}t.push(n)}return t}prepareTools(t){return t.length?new Promise(n=>{t.reduce((s,i,o)=>s.then(()=>new Promise(r=>{this.callPluginsPrepare(i).then(r).catch(a=>{Kn(`Plugin «${i}» was not loaded. Preparation failed because %o`,"warn",a),this.toolsUnavailable[i]=a,r()}).then(()=>{this.toolsAvailable.push(i),o===t.length-1&&n()})})),Promise.resolve())}):Promise.resolve()}callPluginsPrepare(t){const n=this.plugins[t].class;return n[B_](n[Cg]||{})}preparePatternsAndMarkdown(){const t=this.available;Object.entries(t).forEach(([n,s])=>{const i=s.class[j0];i&&i.pattern&&this.markdownConfigs.push({tool:n,pattern:i.pattern,parseFrom:i.parseFrom,parseTo:i.parseTo})})}matchMarkdown(t){return this.markdownConfigs.find(n=>n.pattern.test(t.replace(/\u200B/g,"")))}getToolByType(t){const n=this.editor.toolsManager.available[t];return n!==void 0?n:(Eh.name=t,{class:Eh})}}function Xte(e,t){this.editor=e,this.api=t;const n=this;this.CSS={wrapper:"codex-editor",redactor:"ce-redactor",bottomZone:"codex-editor__bottom"},this.nodes={wrapper:void 0,redactor:void 0,bottomZone:void 0,scrollableWrapper:void 0},this.make=()=>new Promise(v=>{this.nodes.wrapper=Je("div",this.CSS.wrapper),this.nodes.redactor=Je("div",this.CSS.redactor),this.nodes.bottomZone=Je("div",this.CSS.bottomZone);const g=this.editor.toolbar.make(),b=this.editor.notifications.make(),w=this.editor.helperTooltip.make();this.nodes.wrapper.appendChild(this.nodes.redactor),this.nodes.wrapper.appendChild(this.nodes.bottomZone),this.nodes.wrapper.appendChild(g),this.nodes.wrapper.appendChild(b),this.nodes.wrapper.appendChild(w),this.editor.config.holder.appendChild(this.nodes.wrapper),this.nodes.scrollableWrapper=Bp(this.nodes.redactor),v()}).then(n.editor.toolbarInline.make).then(s).catch(v=>{Kn("Can't draw CodeX Editor interface because %o","warn",v)});function s(){n.editor.listeners.add(n.nodes.redactor,"keydown",i,!1),n.editor.listeners.add(n.nodes.redactor,"click",u,!1),n.editor.listeners.add(n.nodes.bottomZone,"click",d,!1),n.api.listeners.add(n.nodes.wrapper,"dragover",m,!1),n.api.listeners.add(n.nodes.wrapper,"drop",p,!1)}function i(v){switch(v.keyCode){case xt.TAB:r(v);break;case xt.ENTER:a(v);break;case xt.ESC:l(v);break;case xt.BACKSPACE:case xt.DELETE:o(v);break;default:c();break}}function o(v){const{selected:g}=n.editor.blocks;if(g.length>0){v.preventDefault();const b=n.editor.blocks.getBlockPosition(g[0]),w=n.editor.blocks.append(void 0,b);n.editor.caret.setToBlock(w),g.forEach(k=>{n.editor.blocks.remove(k)})}}function r(v){if(n.editor.config.hideToolbar)return;const g=n.editor.blocks.currentBlock.isEmpty;if(v.preventDefault(),!g){n.editor.caret.goNext();return}n.editor.toolbar.opened||n.editor.toolbar.open(),n.editor.toolbar.opened&&!n.editor.toolbarToolbox.opened?(n.editor.toolbarToolbox.open(),Ix("TAB","Add New Block")):n.editor.toolbarToolbox.leaf()}function a(v){if(v.target.contentEditable==="true"&&n.editor.blocks.currentBlock.updateCurrentInputIndex(),n.editor.toolbar.opened&&n.editor.toolbarToolbox.current&&v.target===n.editor.blocks.currentBlock.currentInput){v.preventDefault(),n.editor.toolbarToolbox.selectToolByEnter(v),v.stopPropagation(),v.stopImmediatePropagation();return}const{currentBlock:g}=n.editor.blocks,b=g&&n.editor.toolsManager.available[g.type].class.enableLineBreaks;if(v.shiftKey||b){v.stopPropagation(),v.stopImmediatePropagation();return}v.shiftKey&&!b&&(n.enterPressedOnBlock(),v.preventDefault(),v.stopPropagation(),v.stopImmediatePropagation()),v.preventDefault();const w=n.editor.blocks.splitBlock();n.editor.caret.setToBlock(n.editor.blocks.currentBlock),n.editor.toolbar.move(),w.isEmpty&&(n.editor.toolbar.open(),n.editor.toolbar.showPlusButton())}function l(v){n.editor.toolbar.close(),n.editor.toolbarToolbox.close(),v.preventDefault()}const c=function(){n.editor.toolbar.close(),n.editor.toolbarInline.link.opened||(n.editor.toolbarInline.close(),n.editor.blocks.clearHightlight())};this.enterPressedOnBlock=function(){const v=n.editor.blocks.append();n.editor.toolbar.move(),n.editor.toolbar.open(),n.editor.blockActionsManager.closeEveryBlockSettings(),n.editor.caret.setToBlock(v)},this.getWrappersOffset=function(){const v=n.nodes.wrapper,{top:g,left:b}=v.getBoundingClientRect();return{top:g,left:b}};function u(v){if(n.editor.blocks.selected.length>1||!_r.isEmpty)return;n.editor.blocks.clearSelection();const g=v.target;if(n.editor.toolbarInline.close(),h(g),n.editor.blocks.workingBlockChanged(g),g.contentEditable==="true"&&n.editor.blocks.currentBlock.updateCurrentInputIndex(),n.editor.toolbarToolbox.close(),!g.closest(".ce-block-action"))n.editor.blockActionsManager.closeEveryBlockSettings();else return;const b=n.editor.blocks.currentBlock;if(!b)return;const w=b.isEmpty,k=b.type===n.editor.config.initialBlockPlugin;n.editor.toolbar.move(),n.editor.toolbar.open(),n.editor.state.get(Dp)||(n.editor.toolbar.hidePlusButton(),w||n.editor.blocks.highlightBlock(b),k&&w&&n.editor.toolbar.showPlusButton())}function d(){const v=n.editor.blocks.lastBlock;let g=n.editor.blocks.getBlockPosition(v);if(v.isEmpty&&v.type===n.editor.config.initialBlockPlugin)n.editor.caret.setToBlock(v);else{const b=n.editor.blocks.append(void 0,g++);n.editor.caret.setToBlock(b)}}function h(v){v&&v.target&&v.target.tagName==="A"&&v.preventDefault()}function p(v){if(v.dataTransfer.types.includes("Files")){const g=n.api,b=Object.values(g.getBlocks()).find(w=>w.dragOver);if(b){b.dragOver=!1,g.setCurrentBlockById(b.id);const w=n.editor.blocks.previousBlock;w&&g.setCurrentBlockById(w.id),n.editor.paste.blockPasteCallback(v)}v.preventDefault()}}function m(v){if(v.dataTransfer.types.includes("Files")){const g=n.api.getBlockByChildren(v.target);g&&(n.editor.blocks.clearDragOver(),g.dragOver=!0)}v.preventDefault()}return this}class Qte{constructor(t){this.modules={BlockActionsManager:Gee,BlockEvents:dte,BlockIndicatorsManager:pte,Blocks:vte,Caret:gte,ChangesObserver:bte,Config:yte,Destroyer:wte,DragScroller:G0,FitManager:q0,GlobalEvents:Ete,HelperTooltip:Y0,ToolbarInline:Ite,Listeners:Mte,Notifications:X0,Paste:Dte,Redo
190Manager:Nte,Renderer:Fte,Sanitizer:Wte,Saver:jte,Shortcuts:Gte,State:Cte,Toolbar:qte,ToolbarToolbox:Qt,ToolsManager:Yte,Ui:Xte},this.version="3.25.1";function n(r){return r.charAt(0).toLowerCase()+r.slice(1)}const s=new jee(this);Object.entries(this.modules).forEach(([r,a])=>{r=n(r),typeof a=="object"?this[r]=a:this[r]=new a(this,s,t)});const i=Object.keys(this.modules).filter(r=>(r=n(r),typeof this[r].prepare=="function")).map(r=>(r=n(r),this[r].prepare(this,t))),o=Promise.all(i).then(()=>this.ui.make()).then(()=>this.renderer.makeBlocksFromData()).then(()=>this.globalEvents.bindDocumentEvents()).then(()=>this.blockActionsManager.prepareActions()).then(()=>this.paste.prepareSettings()).then(()=>(Kn("Paragraph initialized","log",this.version,"blue"),this)).catch(r=>{Kn("Initialization failed with error: %o","warn",r)});return Object.assign(s,{isReady:o,version:this.version})}}const Jte=J({__name:"Paragraph",props:{tools:{},blocks:{},initialEmptyBlocks:{default:()=>[]},initialBlockPlugin:{default:"text"},limit:{default:void 0},isInvisibleBlock:{type:Function,default:void 0}},emits:["update:blocks","ready","limitExceededChanged","firstBlockChanged"],setup(e,{expose:t,emit:n}){const s=e,{isOnline:i}=XS(),o=n,r=P();let a,l;function c(b){const w=[...b.children],k=a==null?void 0:a.getBlocks();k!==void 0&&Object.values(k).forEach(y=>{var E;const S=((E=s.isInvisibleBlock)==null?void 0:E.call(s,y))??!1;y.wrapper.toggleAttribute("hidden",S),y.pluginInstance.index=w.indexOf(y.wrapper)})}function u(b){var y;const w=(y=b.querySelector(".ce-block:not([hidden])"))==null?void 0:y.dataset.id;if(w===void 0)return;const k=a==null?void 0:a.getBlockById(w);q(k)&&o("firstBlockChanged",{type:k.type})}let d=!1;function h(b){if(s.limit===void 0)return;const w=b.length>s.limit;w!==d&&(d=w,o("limitExceededChanged",w))}function p(b){b.length!==0&&(a==null||a.fill({items:b}),h(b))}function m(b){const w=a==null?void 0:a.getUiNodes().redactor;w!==void 0&&w.querySelectorAll("[contenteditable]").forEach(k=>{k.contentEditable=b?"true":"false"})}function v(){a==null||a.toolbar.close(),a==null||a.closeEveryBlockSettings(),m(!1)}function g(){m(!0)}return je(async()=>{if(r.value===void 0)throw new Error("Paragraph: holder element is missing");const b=s.blocks.length>0?s.blocks:s.initialEmptyBlocks;a=new Qte({holder:r.value,tools:s.tools,data:{items:b,count:0},initialBlockPlugin:s.initialBlockPlugin,modifyCallback:()=>{a==null||a.save().then(k=>{o("update:blocks",k),h(k)}).catch(console.error)}}),await a.isReady;const w=a.getUiNodes().redactor;l=new MutationObserver(()=>{c(w),u(w),i.value||m(!1)}),l.observe(w,{childList:!0,attributes:!1,characterData:!1}),c(w),u(w),h(b),i.value||v(),o("ready")}),be(i,b=>{a!==void 0&&(b?g():v())}),ui(()=>{l==null||l.disconnect(),l=void 0,a==null||a.destroy()}),t({fill:p,focus:()=>a==null?void 0:a.focus(!0),insertBlock:(b,w,k,y)=>
190a==null?void 0:a.insertBlock(b,w,k,y)}),(b,w)=>(_(),T("div",{class:Z(["paragraph-wrapper",{"paragraph-wrapper--offline":!f(i)}])},[Ve(b.$slots,"prepend"),O("div",{ref_key:"holder",ref:r},null,512)],2))}}),Zte=Object.freeze(Object.defineProperty({__proto__:null,BlockTool:mc,HeaderTool:wg,InputTextSize:wr,ListTool:Kr,MediaTool:Yr,Paragraph:Jte,TelegramButtonTool:_g,TextTool:zc,ToolInput:Nu},Symbol.toStringTag,{value:"Module"})),ene={attach:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑикÑепиÑÑ GIF"}},search:{t:0,b:{t:2,i:[{t:3}],s:"ÐоиÑк GIF"}},stored:{t:0,b:{t:2,i:[{t:3,v:"Ð¥Ñаним до "},{t:4,k:"n"},{t:3,v:" ваÑиÑ
GIF."}]}},popular:{t:0,b:{t:2,i:[{t:3}],s:"ÐопÑлÑÑнÑе GIF"}},notFound:{t:0,b:{t:2,i:[{t:3}],s:"ÐиÑего не наÑлоÑÑ"}},unblock:{t:0,b:{t:2,i:[{t:3}],s:"РазблокиÑоваÑÑ"}}},tne=Object.freeze(Object.defineProperty({__proto__:null,ru:ene},Symbol.toStringTag,{value:"Module"}));class nne{constructor(t){this.repository=t}async getFavoriteGifs(t){return await this.repository.getFavoriteGifs(t)}async getSearchableGifs(t,n){return t.trim()!==""?await this.repository.getGifsBySearchQuery(t,n):await this.repository.getSuggestedGifs(n)}resetFavoriteGifs(){this.repository.resetFavoriteGifs()}resetSearchableGifs(){this.repository.resetSuggestedGifs(),this.repository.resetSearchResults()}}var nd,Ho,Mx,$x,Eg;class sne extends Ks{constructor(n,s){super();Fe(this,Ho);Fe(this,nd,{mediaFilter:"gif,tinygif,nanogif",limit:18});this.transport=n,this.createStore=s}async getFavoriteGifs(n){return await this.store.favorite.resolve(async s=>{const i=await this.transport.get("favorite-gifs",{...s,limit:6},{auth:"strict",apiVersion:"v2.9"});return{...i,items:i.items.map(o=>({id:o.leonardoUuid,adapter:o.andropov}))}},n)}async getSuggestedGifs(n){return(n==null?void 0:n.isFromStart)===!0&&this.store.suggested.items.length>0?this.store.suggested.items:await this.store.suggested.resolve(async s=>await Gt(this,Ho,Mx).call(this,s),n)}async getGifsBySearchQuery(n,s){const i="gifs:search";return await this.store.searchResults.resolve(async o=>(this.transport.abort(i),await Gt(this,Ho,$x).call(this,n,o,{abortToken:i})),s)}resetFavoriteGifs(){this.store.favorite.reset()}resetSuggestedGifs(){this.store.suggested.reset()}resetSearchResults(){this.store.searchResults.reset()}}nd=new WeakMap,Ho=new WeakSet,Mx=async function({cursor:n}={}){const s={...fe(this,nd),cursor:n??"",q:"cat meme"},i=await this.transport.get("gifs/search",s);return Gt(this,Ho,Eg).call(this,i)},$x=async function(n,{cursor:s}={},i){const o={...fe(this,nd),q:n,cursor:s??""},r=await this.transport.get("gifs/search",o,i);return Gt(this,Ho,Eg).call(this,r)},Eg=function(n){return{items:n.items.map(s=>{var i,o;return{id:s.id,uploadableUrl:s.media_formats.gif.url,previewUrl:{gif:((i=s.media_formats.tinygif)==null?void 0:i.url)??s.media_formats.gif.url,smallGif:((o=s.media_formats.nanogif)==null?void 0:o.url)??s.media_formats.gif.url}}}),cursor:"cursor"in n?n.cursor:null}};function ine(){const e=new Tn,t=new Tn,n=new Tn;return{favorite:e,suggested:t,searchResults:n}}function Lx(){const e=pt();return e.isRegistered("GifsService")||e.register("GifsService",()=>{const{transport:t}=e.resolve("ModuleInitOptions"),n=new sne(t,ine);return new nne(n)}),e.resolve("GifsService")}function one(){const e=Lx(),{isAnon:t}=Ye(),n=Or(async s=>t.value?[]:await e.getFavoriteGifs(s));return je(async()=>{await n.loadInitial()}),et(()=>{e.resetFavoriteGifs()}),{list:bt(n)}}function rne(){const e=Lx(),t=Or(async o=>await e.getSearchableGifs(i.value,o)),n=P(""),s=C(()=>n.value.trim()===""?0:600),i=dv(n,s);return be(i,async()=>{await t.loadInitial()}),et(()=>{e.resetSearchableGifs()}),{searchQuery:i,searchQueryModel:n,list:bt(t)}}const ane=()=>ft(),lne=["onClick"],F_=J({__name:"GifsList",props:{items:{},isLoading:{type:Boolean},isFadedOut:{type:Boolean}},emits:["select","endReach","scrollingStateChange"],setup(e,{expose:t,emit:n}){const s=e,i=n,o=C(()=>a.value?150:100),r=C(()=>s.isFadedOut?(o.value-36)*-1:void 0),{isWiderThanContent:a}=an(),l=P(null),c=C(()=>s.items[0]);return be(()=>{var u;return(u=l.value)==null?void 0:u.isScrolling},u=>{i("scrollingStateChange",u===!0)}),Tr(()=>c.value,()=>{var u;(u=l.value)==null||u.scrollToTop()},{flush:"post",debounce:50}),t({refresh:()=>{var u;(u=l.value)==null||u.refresh()},scrollToTop:()=>{var u;(u=l.value)==null||u.scrollToTop()}}),(u,d)=>(_(),T(ye,null,[e.items.length>0?(_(),L(f(Na),{key:0,ref_key:"gridInstance",ref:l,class:Z(["gifs-list",e.isFadedOut&&"gifs-list--faded-out"]),items:e.items,"virtual-scroll":{gap:3,itemsPerRow:3,itemHeight:o.value},"end-offset":f(a)?"300px":"450px","additional-height":r.value,onEndReach:d[0]||(d[0]=h=>i("endReach"))},{item:K(({data:h,style:p})=>[O("div",{class:"gifs-list__item",style:Ot(p),onClick:m=>i("select",h)},[Ve(u.$slots,"item",{data:h})],12,lne)]),_:3},8,["class","items","virtual-scroll","end-offset","additional-height"])):D("",!0),e.isLoading?(_(),L(f(Yn),{key:1,class:Z({"gifs-list__loader":!0,"gifs-list__loader--placeholder":e.items.length===0})},null,8,["class"])):D("",!0)],64))}}),cne={class:"gifs-manager__header"},une={key:0,class:"gifs-manager__plus"},dne=["src"],fne={key:2,class:"gifs-manager__title"},hne=["src"],pne=["src"],mne=J({__name:"GifsManager",emits:["select"],setup(e,{emit:t}){const n=t,s=ct(),{isWiderThanContent:i}
190=an(),{isPlusSubscriber:o}=Ye(),{list:r}=one(),{searchQuery:a,searchQueryModel:l,list:c}=rne(),{t:u}=ane(),{trackEvent:d}=Qn(),h=C(()=>a.value.trim().length>0),p=C(()=>!h.value&&!o.value),m=P(null),v=P(null),g=P();async function b(){d("Gifs Attaching â Plus Purchase â Click"),await s.push({name:"Plus",params:{source:Ln.FavoriteGifs}})}function w(x){const M=x.getBoundingClientRect(),I=M.left+M.width/2,N=M.top+M.height/2;g.value={url:x.src,x:I,y:N,aspectRatio:x.naturalWidth/x.naturalHeight}}function k(x){n("select",x),d("Gifs Attaching â History Item â Click")}function y(x){n("select",x),d(`Gifs Attaching â ${h.value?"Search":"Popular"} Item â Click`)}function S(){clearTimeout(E),g.value=void 0}let E;return $r()||(Be(v,"mouseover",x=>{x.target instanceof HTMLImageElement&&(clearTimeout(E),E=setTimeout(()=>{x.target instanceof HTMLImageElement&&w(x.target)},100))}),Be(v,"mouseout",x=>{x.target instanceof HTMLImageElement&&S()})),be(h,async()=>{var x;await un(),(x=m.value)==null||x.refresh()}),be([()=>r.isEnded,()=>r.isEmpty],async()=>{await un(),await c.loadInitial()},{once:!0}),je(()=>{d("Gifs Attaching â Show")}),et(()=>{d("Gifs Attaching â Done")}),(x,M)=>(_(),T("div",{ref_key:"rootContainer",ref:v,class:"gifs-manager"},[O("div",cne,[A(f(rc),{modelValue:f(l),"onUpdate:modelValue":M[0]||(M[0]=I=>Ct(l)?l.value=I:null),class:"gifs-manager__search",placeholder:f(u)("gifs.search"),icon:"search",loading:h.value&&f(c).isLoading,"icon-right":f(l).trim().length>0?{name:"cross",action:()=>l.value=""}:void 0},null,8,["modelValue","placeholder","loading","icon-right"])]),p.value?(_(),T("div",une,[xe(Y(f(u)("gifs.stored",{n:100}))+" ",1),A(f(qe),{rounded:!0,onClick:M[1]||(M[1]=I=>b())},{default:K(()=>[xe(Y(f(u)("gifs.unblock")),1)]),_:1})])):D("",!0),h.value?D("",!0):(_(),L(F_,{key:1,items:f(r).items,"is-loading":f(r).isLoading,"is-faded-out":f(r).items.length>3&&p.value,onSelect:M[2]||(M[2]=I=>k(I.adapter)),onEndReach:M[3]||(M[3]=I=>f(r).loadMore()),onScrollingStateChange:M[4]||(M[4]=I=>I&&S())},{item:K(({data:I})=>[O("img",{src:f(D8)(I.adapter.data.uuid),loading:"lazy"},null,8,dne)]),_:1},8,["items","is-loading","is-faded-out"])),f(c).isPresent&&!h.value?(_(),T("div",fne,Y(f(u)("gifs.popular")),1)):D("",!0),f(c).isPresent?(_(),L(F_,{key:3,ref_key:"searchListInstance",ref:m,items:f(c).items,"is-loading":f(c).isLoading,onEndReach:M[5]||(M[5]=I=>f(c).loadMore()),onSelect:M[6]||(M[6]=I=>y(I.uploadableUrl)),onScrollingStateChange:M[7]||(M[7]=I=>I&&S())},{item:K(({data:I})=>[O("img",{src:f(i)?I.previewUrl.gif:I.previewUrl.smallGif,loading:"lazy"},null,8,hne)]),_:1},8,["items","is-loading"])):D("",!0),h.value&&!f(c).isPresent?(_(),L(f(qs),{key:4,"disable-icon":!0,text:f(u)("gifs.notFound")},null,8,["text"])):D("",!0),(_(),L(id,{to:"body"},[A(qn,{name:"gif-pop"},{default:K(()=>[g.value?(_(),T("div",{key:0,class:"gifs-manager-preview",style:Ot({top:`${g.value.y}px`,left:`${g.value.x}px`})},[O("img",{src:g.value.url,style:Ot({width:g.value.aspectRatio>1?"auto":"170px",height:g.value.aspectRatio>1?"170px":"auto"})},null,12,pne)],4)):D("",!0)]),_:1})]))],512))}}),vne=Object.freeze(Object.defineProperty({__proto__:null,GifsManager:mne,messages:tne},Symbol.toStringTag,{value:"Module"})),gne={title:{t:0,b:{t:2,i:[{t:3}],s:"Neuro"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"ChatGPT and Claude"}},seoTitle:{t:0,b:{t:2,i:[{t:3}],s:"Neuro â access to ChatGPT and Claude without VPN or foreign cards"}},newChat:{t:0,b:{t:2,i:[{t:3}],s:"New chat"}},emptyTitle:{t:0,b:{t:2,i:[{t:3}],s:"Latest models"}},emptyFrom:{t:0,b:{t:2,i:[{t:3}],s:"from"}},emptyAnd:{t:0,b:{t:2,i:[{t:3}],s:"and"}},emptyOpenAI:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI"}},emptyAnthropic:{t:0,b:{t:2,i:[{t:3}],s:"Anthropic"}},emptyFooter:{t:0,b:{t:2,i:[{t:3}],s:"without VPN or foreign cards."}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"Write a messageâ¦"}},placeholders:[{t:0,b:{t:2,i:[{t:3}],s:"Who is json?"}},{t:0,b:{t:2,i:[{t:3}],s:"Do some vibe coding for me"}},{t:0,b:{t:2,i:[{t:3}],s:"Ask anything"}},{t:0,b:{t:2,i:[{t:3}],s:"How are you?"}},{t:0,b:{t:2,i:[{t:3}],s:"Help me sort the data"}},{t:0,b:{t:2,i:[{t:3}],s:"I need a plan"}},{t:0,b:{t:2,i:[{t:3}],s:"Why"}},{t:0,b:{t:2,i:[{t:3}],s:"Make it pretty"}}],disclaimer:{t:0,b:{t:2,i:[{t:3}],s:"AI can make mistakes."}},disclaimerStrike:{t:0,b:{t:2,i:[{t:3}],s:"You donât"}},attach:{t:0,b:{t:2,i:[{t:3}],s:"Attach file"}},attachFile:{t:0,b:{t:2,i:[{t:3}],s:"File"}},attachImage:{t:0,b:{t:2,i:[{t:3}],s:"Image"}},modelLabel:{t:0,b:{t:2,i:[{t:3}],s:"Claude Haiku 4.5"}},modelSelect:{t:0,b:{t:2,i:[{t:3}],s:"Select model"}}
190,modelDetails:{gpt55:{t:0,b:{t:2,i:[{t:3}],s:"Latest from OpenAI"}},gpt54:{t:0,b:{t:2,i:[{t:3}],s:"Smart and efficient"}},gpt54Mini:{t:0,b:{t:2,i:[{t:3}],s:"Fast and affordable"}},gpt54Nano:{t:0,b:{t:2,i:[{t:3}],s:"Fastest"}},claudeOpus:{t:0,b:{t:2,i:[{t:3}],s:"Most powerful from Anthropic"}},claudeSonnet:{t:0,b:{t:2,i:[{t:3}],s:"Balanced"}},claudeHaiku:{t:0,b:{t:2,i:[{t:3}],s:"Fast and affordable"}},gptOss:{t:0,b:{t:2,i:[{t:3}],s:"Open model from OpenAI"}}},send:{t:0,b:{t:2,i:[{t:3}],s:"Send"}},stop:{t:0,b:{t:2,i:[{t:3}],s:"Stop"}},untitledChat:{t:0,b:{t:2,i:[{t:3}],s:"New chat"}},energy:{t:0,b:{t:2,i:[{t:4,k:"left"},{t:3,v:" / "},{t:4,k:"limit"}]}},energySpent:{t:0,b:{t:2,i:[{t:3,v:"Spent "},{t:4,k:"spent"},{t:3,v:" of "},{t:4,k:"limit"},{t:3,v:" energy"}]}},energyAvailable:{t:0,b:{t:2,i:[{t:3,v:"You have "},{t:4,k:"limit"},{t:3,v:" energy available until "},{t:4,k:"date"}]}},energyHowItWorks:{t:0,b:{t:2,i:[{t:3}],s:"How does it work?"}},tokensExhaustedTitle:{t:0,b:{t:2,i:[{t:3}],s:"Youâve reached the free version limit."}},tokensExhaustedDescription:{t:0,b:{t:2,i:[{t:3}],s:"Subscribe to continue."}},tokensExhaustedCta:{t:0,b:{t:2,i:[{t:3}],s:"Subscribe"}},memoryTitle:{t:0,b:{t:2,i:[{t:3}],s:"Memory"}},memoryDescription:{t:0,b:{t:2,i:[{t:3}],s:"Information from conversations that helps models answer in a way that is relevant to you"}},memoryCleared:{t:0,b:{t:2,i:[{t:3}],s:"Memory cleared"}},memoryEmpty:{t:0,b:{t:2,i:[{t:3}],s:"Memory is empty"}},memoryReset:{t:0,b:{t:2,i:[{t:3}],s:"Reset"}},history:{t:0,b:{t:2,i:[{t:3}],s:"History"}},emptyChats:{t:0,b:{t:2,i:[{t:3}],s:"You donât have any chats yet"}},settings:{t:0,b:{t:2,i:[{t:3}],s:"Settings"}},settingsTitle:{t:0,b:{t:2,i:[{t:3}],s:"Plus AI Settings"}},feedback:{t:0,b:{t:2,i:[{t:3}],s:"Feedback"}},defaultModel:{t:0,b:{t:2,i:[{t:3}],s:"Default model"}},instruction:{t:0,b:{t:2,i:[{t:3}],s:"Instruction"}},instructionPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Answer briefly, in list format"}},save:{t:0,b:{t:2,i:[{t:3}],s:"Save"}},toggleSidebar:{t:0,b:{t:2,i:[{t:3}],s:"Open chat list"}},closeSidebar:{t:0,b:{t:2,i:[{t:3}],s:"Close chat list"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Loadingâ¦"}},sending:{t:0,b:{t:2,i:[{t:3}],s:"Generating responseâ¦"}},errorLoadChats:{t:0,b:{t:2,i:[{t:3}],s:"Failed to load chats"}},errorLoadMessages:{t:0,b:{t:2,i:[{t:3}],s:"Failed to load messages"}},errorSend:{t:0,b:{t:2,i:[{t:3}],s:"Failed to send message"}},sendFailed:{t:0,b:{t:2,i:[{t:3}],s:"Not sent"}}
190,resend:{t:0,b:{t:2,i:[{t:3}],s:"Resend"}},errorCreateChat:{t:0,b:{t:2,i:[{t:3}],s:"Failed to create chat"}},errorClearMemory:{t:0,b:{t:2,i:[{t:3}],s:"Failed to clear memory"}},errorSaveSettings:{t:0,b:{t:2,i:[{t:3}],s:"Failed to save settings"}},backToList:{t:0,b:{t:2,i:[{t:3}],s:"Back to chats"}},scrollToBottom:{t:0,b:{t:2,i:[{t:3}],s:"Scroll to latest messages"}},copyMessage:{t:0,b:{t:2,i:[{t:3}],s:"Copy"}},deleteMessage:{t:0,b:{t:2,i:[{t:3}],s:"Delete"}},messageCopied:{t:0,b:{t:2,i:[{t:3}],s:"Message copied"}},errorCopy:{t:0,b:{t:2,i:[{t:3}],s:"Failed to copy"}}},bne={title:{t:0,b:{t:2,i:[{t:3}],s:"ÐейÑо"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"ChatGPT и Claude"}},seoTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐейÑо â доÑÑÑп к ChatGPT и Claude без VPN и иноÑÑÑаннÑÑ
каÑÑ"}},newChat:{t:0,b:{t:2,i:[{t:3}],s:"ÐовÑй ÑаÑ"}},emptyTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐоÑледние модели"}},emptyFrom:{t:0,b:{t:2,i:[{t:3}],s:"оÑ"}},emptyAnd:{t:0,b:{t:2,i:[{t:3}],s:"и"}},emptyOpenAI:{t:0,b:{t:2,i:[{t:3}],s:"OpenAI"}},emptyAnthropic:{t:0,b:{t:2,i:[{t:3}],s:"Anthropic"}},emptyFooter:{t:0,b:{t:2,i:[{t:3}],s:"без VPN и иноÑÑÑаннÑÑ
каÑÑ."}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑо Ñакой json?"}},placeholders:[{t:0,b:{t:2,i:[{t:3}],s:"ÐÑо Ñакой json?"}},{t:0,b:{t:2,i:[{t:3}],s:"Сделай мне вайбкодинг"}},{t:0,b:{t:2,i:[{t:3}],s:"СпÑоÑиÑе ÑÑо Ñгодно"}},{t:0,b:{t:2,i:[{t:3}],s:"Ðак дела?"}},{t:0,b:{t:2,i:[{t:3}],s:"Ðомоги оÑÑоÑÑиÑоваÑÑ Ð´Ð°Ð½Ð½Ñе"}},{t:0,b:{t:2,i:[{t:3}],s:"Ðне нÑжен план"}},{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑем"}},{t:0,b:{t:2,i:[{t:3}],s:"Сделай кÑаÑиво"}}],disclaimer:{t:0,b:{t:2,i:[{t:3}],s:"AI Ð¼Ð¾Ð¶ÐµÑ Ð¾ÑибаÑÑÑÑ."}},disclaimerStrike:{t:0,b:{t:2,i:[{t:3}],s:"Ð Ð²Ñ Ð½ÐµÑ"}},attach:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑикÑепиÑÑ Ñайл"}},attachFile:{t:0,b:{t:2,i:[{t:3}],s:"Файл"}},attachImage:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑинка"}},modelLabel:{t:0,b:{t:2,i:[{t:3}],s:"Claude Haiku 4.5"}},modelSelect:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÐ±Ð¾Ñ Ð¼Ð¾Ð´ÐµÐ»Ð¸"}},modelDetails:{gpt55:{t:0,b:{t:2,i:[{t:3}],s:"Ð¡Ð°Ð¼Ð°Ñ Ð¿Ð¾ÑледнÑÑ Ð¾Ñ OpenAI"}},gpt54:{t:0,b:{t:2,i:[{t:3}],s:"Ð£Ð¼Ð½Ð°Ñ Ð¸ ÑÑÑекÑивнаÑ"}},gpt54Mini:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑÑÑÐ°Ñ Ð¸ недоÑогаÑ"}},gpt54Nano:{t:0,b:{t:2,i:[{t:3}],s:"Ð¡Ð°Ð¼Ð°Ñ Ð±ÑÑÑÑаÑ"}},claudeOpus:{t:0,b:{t:2,i:[{t:3}],s:"Ð¡Ð°Ð¼Ð°Ñ Ð¼Ð¾ÑÐ½Ð°Ñ Ð¾Ñ Anthropic"}},claudeSonnet:{t:0,b:{t:2,i:[{t:3}],s:"ÐпÑималÑнаÑ"}},claudeHaiku:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑÑÑÐ°Ñ Ð¸ недоÑогаÑ"}},gptOss:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑкÑÑÑÐ°Ñ Ð¼Ð¾Ð´ÐµÐ»Ñ Ð¾Ñ OpenAI"}}},send:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑпÑавиÑÑ"}},stop:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑановиÑÑ"}},untitledChat:{t:0,b:{t:2,i:[{t:3}],s:"ÐовÑй ÑаÑ"}},energy:{t:0,b:{t:2,i:[{t:4,k:"left"},{t:3,v:" / "},{t:4,k:"limit"}]}},energySpent:{t:0,b:{t:2,i:[{t:3,v:"ÐоÑÑаÑили "},{t:4,k:"spent"},{t:3,v:" из "},{t:4,k:"limit"},{t:3,v:" ÑнеÑгии"}]}},energyAvailable:{t:0,b:{t:2,i:[{t:3,v:"Ðам доÑÑÑпно "},{t:4,k:"limit"},{t:3,v:" ÑнеÑгии до "},{t:4,k:"date"}]}},energyHowItWorks:{t:0,b:{t:2,i:[{t:3}],s:"Ðак ÑÑо ÑабоÑаеÑ?"}},tokensExhaustedTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑ Ð´Ð¾ÑÑигли лимиÑа беÑплаÑной веÑÑии."}},tokensExhaustedDescription:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоÑмиÑе подпиÑкÑ, ÑÑÐ¾Ð±Ñ Ð¿ÑодолжиÑÑ."}},tokensExhaustedCta:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑоÑмиÑÑ"}},memoryTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐамÑÑÑ"}},memoryDescription:{t:0,b:{t:2,i:[{t:3}],s:"ÐнÑоÑмаÑÐ¸Ñ Ð¸Ð· ÑазговоÑов, коÑоÑÐ°Ñ Ð¿Ð¾Ð¼Ð¾Ð³Ð°ÐµÑ Ð¼Ð¾Ð´ÐµÐ»Ñм оÑвеÑаÑÑ ÑелеванÑно именно вам"}},memoryCleared:{t:0,b:{t:2,i:[{t:3}],s:"ÐамÑÑÑ Ð¾ÑиÑена"}},memoryEmpty:{t:0,b:{t:2,i:[{t:3}],s:"ÐамÑÑÑ Ð¿ÑÑÑа"}},memoryReset:{t:0,b:{t:2,i:[{t:3}],s:"СбÑоÑиÑÑ"}},history:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑÑоÑиÑ"}},emptyChats:{t:0,b:{t:2,i:[{t:3}],s:"У Ð²Ð°Ñ Ð¿Ð¾ÐºÐ° Ð½ÐµÑ ÑаÑов"}},settings:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки"}},settingsTitle:{t:0,b:{t:2,i:[{t:3}],s:"ÐаÑÑÑойки Plus AI"}},feedback:{t:0,b:{t:2,i:[{t:3}],s:"ÐбÑаÑÐ½Ð°Ñ ÑвÑзÑ"}},defaultModel:{t:0,b:{t:2,i:[{t:3}],s:"ÐÐ¾Ð´ÐµÐ»Ñ Ð¿Ð¾ ÑмолÑаниÑ"}},instruction:{t:0,b:{t:2,i:[{t:3}],s:"ÐнÑÑÑÑкÑиÑ"}},instructionPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑвеÑай коÑоÑко, в ÑоÑмаÑе ÑпиÑков"}},save:{t:0,b:{t:2,i:[{t:3}],s:"СоÑ
ÑаниÑÑ"}},toggleSidebar:{t:0,b:{t:2,i:[{t:3}],s:"ÐÑкÑÑÑÑ ÑпиÑок ÑаÑов"}},closeSidebar:{t:0,b:{t:2,i:[{t:3}],s:"ÐакÑÑÑÑ ÑпиÑок ÑаÑов"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"ÐагÑÑзкаâ¦"}},sending:{t:0,b:{t:2,i:[{t:3}],s:"ÐенеÑиÑÑем оÑвеÑâ¦"}},errorLoadChats:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ ÑаÑÑ"}},errorLoadMessages:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð·Ð°Ð³ÑÑзиÑÑ ÑообÑениÑ"}},errorSend:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð¾ÑпÑавиÑÑ ÑообÑение"}},sendFailed:{t:0,b:{t:2,i:[{t:3}],s:"Ðе оÑпÑавлено"}},resend:{t:0,b:{t:2,i:[{t:3}],s:"ÐеÑеоÑпÑавиÑÑ"}},errorCreateChat:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ ÑоздаÑÑ ÑаÑ"}},errorClearMemory:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ Ð¾ÑиÑÑиÑÑ Ð¿Ð°Ð¼ÑÑÑ"}},errorSaveSettings:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ ÑоÑ
ÑаниÑÑ Ð½Ð°ÑÑÑойки"}},backToList:{t:0,b:{t:2,i:[{t:3}],s:"Ð ÑпиÑÐºÑ ÑаÑов"}},scrollToBottom:{t:0,b:{t:2,i:[{t:3}],s:"РпоÑледним ÑообÑениÑм"}},copyMessage:{t:0,b:{t:2,i:[{t:3}],s:"ÐопиÑоваÑÑ"}},deleteMessage:{t:0,b:{t:2,i:[{t:3}],s:"УдалиÑÑ"}},messageCopied:{t:0,b:{t:2,i:[{t:3}],s:"СообÑение ÑкопиÑовано"}},errorCopy:{t:0,b:{t:2,i:[{t:3}],s:"Ðе ÑдалоÑÑ ÑкопиÑоваÑÑ"}}},yne=Object.freeze(Object.defineProperty({__proto__:null,en:gne,ru:bne},Symbol.toStringTag,{value:"Module"})),jm=[{id:"gpt-5.4-mini",label:"ChatGPT 5.5 mini",icon:"chatgpt"},{id:"claude-haiku-4-5",label:"Claude Haiku 4.5",icon:"claude"},{id:"gpt-5.5",label:"ChatGPT 5.5",icon:"chatgpt"},{id:"gpt-5.4",label:"ChatGPT 5.4",icon:"chatgpt"},{id:"gpt-5.4-nano",label:"ChatGPT 5.4 nano",icon:"chatgpt"},{id:"claude-opus-4-7",label:"Claude Opus 4.8",icon:"claude"},{id:"claude-sonnet-4-6",label:"Claude Sonnet 4.6",icon:"claude"},{id:"gpt-oss",label:"GPT-OSS",icon:"chatgpt"}],doe={"gpt-5.5":"terminal.modelDetails.gpt55","gpt-5.4":"terminal.modelDetails.gpt54","gpt-5.4-mini":"terminal.modelDetails.gpt54Mini","gpt-5.4-nano":"terminal.modelDetails.gpt54Nano","claude-opus-4-7":"terminal.modelDetails.claudeOpus","claude-sonnet-4-6":"terminal.modelDetails.claudeSonnet","claude-haiku-4-5":"terminal.modelDetails.claudeHaiku","gpt-oss":"terminal.modelDetails.gptOss"},wne="claude-haiku-4-5",_ne="terminal:stream",kne="terminal:chats",Sne="terminal:chat-refresh",Cne="terminal:messages",Ene="terminal:energy",xne="terminal:sett
190ings",Tne="terminal:chats-memory",Ane="terminal:llm-usage",foe=[_ne,kne,Sne,Cne,Ene,xne,Tne,Ane],Pne="terminal/settings",Rne=60;function hoe(e){const t=jm.find(n=>n.id===e);return t!==void 0?t:jm.find(n=>n.id===wne)??jm[0]}function wd(e){return q(e)&&e>0&&e!==Rne}async function Ine(){var t;const{user:e}=Ye();return so()&&!q(e.value)&&await Do(e).toBeTruthy({timeout:5e3,throwOnTimeout:!1}),wd((t=e.value)==null?void 0:t.aclGroup)?!0:{path:"/",replace:!0}}const Mne=[{path:"/terminal",redirect:"/neuro"},{path:"/gpt",redirect:"/neuro"},{path:"/llm",redirect:"/neuro"},{path:"/neuro",name:"Terminal",component:Rt(async()=>await Ce(()=>import("./Terminal-C6GHgk9n.js"),__vite__mapDeps([168,169,170,171,172,173]))),beforeEnter:Ine,meta:{refererId:$e.Terminal,authRequired:!0},children:[{path:"",name:"TerminalHome",component:Rt(async()=>await Ce(()=>import("./TerminalEmpty-2Fb_wlgv.js"),__vite__mapDeps([174,169,170,175,176,177])))},{path:"settings",name:"TerminalSettings",component:Rt(async()=>await Ce(()=>import("./TerminalSettings-CWUEZXuI.js"),__vite__mapDeps([178,169,171,179]))),redirect:`?modal=${Pne}`},{path:":chatUuid",name:"TerminalChat",component:Rt(async()=>await Ce(()=>import("./TerminalChat-RcHWOY_F.js"),__vite__mapDeps([180,169,171,172,170,175,176,181]))),props:e=>({chatUuid:e.params.chatUuid})}]}],$ne=Object.freeze(Object.defineProperty({__proto__:null,canAccessTerminal:wd,messages:yne,routes:Mne},Symbol.toStringTag,{value:"Module"})),U_={assets:n7,auth:z7,network:S7,account:UD,subsite:d9,appearance:QO,analytics:C$,seo:WH,payments:iD,achievements:KF,plus:yD,pro:CF,stats:uL,marketplace:px,courses:cee,propaganda:qD,donations:aF,game:KG,editor:Zte,uploader:zK,gifs:vne,gifts:NF,webpush:DD,terminal:$ne,reactions:b9},Lne={};function One(e,t){const n=Gg("RouterView");return _(),L(n)}const Bne=ot(Lne,[["render",One]]),Dne={class:"account-menu"},Nne=["src"],Fne={class:"account-menu__label"},Une={class:"account-menu__label-text"},Hne={key:0,class:"account-menu__success-label"},Vne={key:1,class:"account-menu__sublabel"},zne={key:2,class:"account-menu__right"},Wne=["onClick"],jne=J({__name:"AccountMenu",props:{menuOptions:{}},setup(e){const{t}=ft(),n=e,{isAnon:s,isPromoteProFeatures:i,isPlusSubscriber:o,user:r}=Ye(),{showThemeSwitcher:a,currentTheme:l}=Ps(),c=Us==null?void 0:Us(),{isOneColumn:u}=an(),{logout:d}=l0(),{getServicePageByName:h,appsConfig:p,gamesIcons:m,isAppModuleEnabled:v}=Gs();function g(k){return k===!0}function b(k){if(k===void 0)return;const y=k;return y.type==="link"?{icon:"settings",label:y.label??t("common.navigation.settings"),to:y.href,target:y.target}:{icon:"settings",label:t("common.navigation.settings"),to:{name:"Settings"}}}const w=C(()=>{var j;const k=[],y=n.menuOptions??{},S=[];if(s.value||(g(y.drafts)&&S.push({icon:"pen",label:t("common.navigation.drafts"),to:{name:"Drafts"}}),g(y.bookmarks)&&S.push({icon:"bookmark",label:t("common.navigation.bookmarks"),to:{name:"Bookmarks"}})),g(y.collectibles)&&(v("achievements")||v("gifts"))&&S.push({icon:"achievement",label:t("common.myCollection"),to:{name:"Collectibles",params:{nickname:sn(r.value)}}}),!s.value&&g(y.donations)&&q(c)){const X={icon:"rouble",label:t("common.navigation.donates"),to:{name:"DonationsRegistration"},right:cn(qe,{size:"s",type:"minimal"},()=>"ÐодклÑÑиÑÑ")};c.isConfirmed.value&&(X.to={name:"Donations"},X.right=cn("span",c.balanceFormatted.value)),S.push(X)}if(S.push({icon:l.value.icon,label:l.value.label,action:X=>{X.target instanceof HTMLElement&&a(X.target)}}),!s.value){const X=b(y.settings);X!==void 0&&S.push(X)}y.extraItems!==void 0&&y.extraItems.length>0&&S.push(...y.extraItems),S.length>0&&k.push(S);const E=[];g(y.plus)&&v("plus")&&!i.value&&E.push({icon:"badge_plus_static",label:t("common.navigation.plus"),to:{name:"Plus",params:{source:Ln.Account}}}),g(y.pro)&&v("pro")&&i.value&&E.push({icon:"badge_pro_static",label:t("common.navigation.pro"),to:{name:"BuyPro",params:{source:Fr.Account}}});const x="https://edu.vc.ru";if(g(y.terminal)&&v("terminal")&&u.value&&wd((j=r.value)==null?void 0:j.aclGroup)&&E.push({icon:"neuro",label:t("core.sections.terminal"),to:{name:"TerminalHome"},sublabel:t("core.sections.terminalSubtitle"),gtm:"Account â Terminal â Click"}),g(y.courses)&&v("courses")&&u.value&&q(x)&&E.push({icon:"courses",label:t("core.sections.courses"),to:x,target:"_blank",trailingIcon:"arrow_up_right",gtm:"Account â Courses â Click"}
190),!o.value&&u.value&&["dtf","vc"].includes("vc")&&E.push({label:t("core.sections.aiCourse"),to:"https://edu.vc.ru/chatgpt",image:"https://leonardo.osnova.io/5e19c0e3-69b1-5399-9ad7-13cced8d69fc/-/scale_crop/72x72/",target:"_blank",trailingIcon:"arrow_up_right",gtm:"Account â Edu ChatGPT course â Click"}),g(y.marketplace)&&v("marketplace")&&u.value){const X="business",U=q(X)?t(`common.marketplaceDescriptions.${X}`).split("%"):[],R=U[Math.floor(Math.random()*U.length)],G={icon:"marketplace",label:t("common.navigation.marketplace"),to:"/store",gtm:"Account â Store â Click"};!o.value&&R!==""&&(G.successLabel=R),E.push(G)}const M=m.quiz,I=m.slovomer;g(y.games)&&v("game")&&u.value&&q(M)&&q(I)&&E.push({image:Vi({uuid:M,width:48,height:48}),label:t("common.navigation.quiz"),to:"/quiz",gtm:"Account â Quiz â Click"},{image:Vi({uuid:I,width:48,height:48}),label:t("common.navigation.slovomer"),to:"/slovomer",gtm:"Account â Slovomer â Click"}),E.length>0&&k.push(E);const V=[];g(y.about)&&q(h("About"))&&V.push({icon:"info",label:t("common.navigation.about"),to:{name:"About"},gtm:"Account â About â Click"}),g(y.rules)&&q(h("Rules"))&&V.push({icon:"rules",label:t("common.navigation.rules"),to:{name:"Rules"},gtm:"Account â Rules â Click"}),g(y.ads)&&q(h("Ads"))&&V.push({icon:"star",label:t("common.navigation.ads"),to:{name:"Ads"},gtm:"Account â Ad â Click"}),g(y.apps)&&q(p)&&V.push({icon:"barcode",label:t("common.navigation.apps"),to:{name:"Apps"},gtm:"Account â Apps â Click"}),V.length>0&&k.push(V);const $=[];return s.value||$.push({icon:"logout",label:t("core.account.logout"),action:async()=>{await d()}}),$.length>0&&k.push($),k});return(k,y)=>{const S=An("gtm");return _(),T("div",Dne,[(_(!0),T(ye,null,We(w.value,(E,x)=>(_(),T("div",{key:x,class:"account-menu__group"},[(_(!0),T(ye,null,We(E,(M,I)=>(_(),T("div",{key:I,class:"account-menu__item"},[Ie((_(),L(nn(f(q)(M.to)?typeof M.to=="string"?"a":f(Qe):"div"),{to:M.to,href:M.to,target:M.target,class:"account-menu__link",onClick:M.action},{default:K(()=>[M.icon?(_(),L(f(Re),{key:0,class:"account-menu__icon account-menu__icon--left",name:M.icon,width:24,height:24},null,8,["name"])):M.image?(_(),T("img",{key:1,src:M.image,class:"account-menu__image"},null,8,Nne)):D("",!0),O("div",Fne,[O("span",Une,[xe(Y(M.label)+" ",1),M.trailingIcon?(_(),L(f(Re),{key:0,class:"account-menu__trailing-icon",name:M.trailingIcon,width:16,height:16},null,8,["name"])):D("",!0)]),M.successLabel?(_(),T("div",Hne,Y(M.successLabel),1)):D("",!0),M.sublabel?(_(),T("div",Vne,Y(M.sublabel),1)):D("",!0)]),M.right?(_(),T("div",zne,[(_(),L(nn(M.right)))])):D("",!0)]),_:2},1032,["to","href","target","onClick"])),[[S,M.gtm]]),M.iconRight?(_(),T("div",{key:0,class:"account-menu__icon account-menu__icon--right",onClick:At(M.iconRight.action,["stop","prevent"])},[A(f(Re),{name:M.iconRight.name,width:24,height:24},null,8,["name"])],8,Wne)):D("",!0)]))),128))]))),128))])}}}),Gne={key:0,class:"user-card"},qne={class:"user-card__title"},Kne={class:"user-card__name"},Yne={class:"user-card__subtitle"},Xne={class:"user-card__avatar-less"},Qne={class:"user-card__name"},H_=48,Jne=J({__name:"UserCard",props:{userData:{}},setup(e){Zi(s=>({v3d5af43e:n}));const{t}=ft(),n=`${H_}px`;return(s,i)=>e.userData?(_(),T("div",Gne,[A(f(Qe),{class:"user-card__link",to:{name:"Subsite",params:{subsite:f(sn)(e.userData)}}},null,8,["to"]),A(f(Jn),{class:"user-card__avatar",source:e.userData.avatar,size:H_,isAllowVideo:!1},null,8,["source"]),O("div",null,[O("div",qne,[O("div",Kne,Y(e.userData.name),1),A(f(Ua),{class:"user-card__showcase","owner-id":e.userData.id,"badge-id":e.userData.badgeId,collectible:e.userData.favoriteCollectible},{item:K(({item:o,attrs:r})=>[o.srcset===void 0&&e.userData.collectibles.length>0?(_(),L(f(qe),St({key:0},r,{type:"minimal",icon:"plus",size:"s",rounded:""}),null,16)):D("",!0)]),_:1},8,["owner-id","badge-id","collectible"])]),O("div",Yne,Y(f(sn)(e.userData,{forDisplay:!0})),1)])])):(_(),L(f(Qe),{key:1,class:"user-card",to:{name:"Auth"}},{default:K(()=>[O("div",Xne,[A(f(Re),{name:"login",width:24,height:24})]),O("div",Qne,Y(f(t)("core.account.loginAndRegistration")),1)]),_:1}))}}),Zne={class:"account-button"},ese={key:0,class:"account-button__menu modal-toggle-surface"},tse={class:"account-button__menu-title"},nse=J({__name:"AccountButton",props:{userData:{},menuOptions:{}},setup(e){const{t}=ft(),n=dn(),s=P(),i=P(!1);function o(){i.value=!i.value}function r(){i.value=!1}return be(()=>n.path,r),(a,l)=>(_(),T("div",Zne,[O("div",{ref_key:"toggler",ref:s,class:"account-button__inner",onClick:o},[A(f(Jn),{source:e.userData.avatar,size:40,isAllowVideo:!1},null,8,["source"]),A(f(Re),{name:"chevron_down",width:20,height:20})],512),A(f(s0),null,{default:K(()=>[i.value?Ie((_(),T("div",ese,[O("div",tse,Y(f(t)("core.account.myProfile")),1),A(Jne,{"user-data":e.userData},null,8,["user-data"]),A(jne,{"menu-options":e.menuOptions},null,8,["menu-options"])])),[[f(_p),[r,{ignore:[s.value]}]]]):D("",!0)]),_:1})]))}}),sse=["href"],ise=["src"],ose={class:"distribution__text"},V_=J({__name:"HeaderDistribution",setup(e){const{get:t,hit:n,trackClick:s,isHidden:i}=md(),o=ct(),r=dn(),{t:a}
190=ft(),{showActionsPopover:l}=$0(()=>{var p;return{text:(p=u.value)==null?void 0:p.legalText,token:"",advertiser:""}}),c=mt("markRef"),u=P();async function d(){t(mu.Header).then(p=>{u.value=p,n(p,mu.Header)}).catch(()=>{u.value=void 0})}function h(p,m){if(s(m,mu.Header),Ev(m.url)){const{pathname:v,search:g,hash:b}=new URL(m.url),w=o.resolve(v+g+b);if(w.name==="Error")return;p.preventDefault(),o.push(w)}}return be(()=>r.path,()=>{d()},{immediate:!0}),(p,m)=>(_(),L(qn,{mode:"out-in","enter-from-class":"distribution--enter-from","enter-active-class":"distribution--enter-active","leave-to-class":"distribution--leave-to","leave-active-class":"distribution--leave-active"},{default:K(()=>[!f(i)&&u.value?(_(),T("div",{key:u.value.id,class:"distribution"},[O("a",{href:u.value.url,target:"_blank",class:"distribution__link",onClick:m[0]||(m[0]=v=>h(v,u.value))},[f(q)(u.value.imageUuid)?(_(),T("img",{key:0,src:f(Vi)({uuid:u.value.imageUuid,width:24,height:24}),alt:"",class:"distribution__image"},null,8,ise)):D("",!0),O("div",ose,Y(u.value.title),1)],8,sse),f(q)(u.value.legalText)?(_(),T("div",{key:0,ref_key:"markRef",ref:c,class:"distribution__mark"},[O("span",{onClick:m[1]||(m[1]=v=>f(l)(c.value))},Y(f(a)("common.ad")),1)],512)):D("",!0)])):D("",!0)]),_:1}))}}),rse={class:"notifications-popover"},ase=J({__name:"NotificationsPopover",emits:["close"],setup(e,{emit:t}){const n=t,{beforeResolve:s}=ct(),i=s(()=>{n("close")});return et(()=>{i()}),(o,r)=>(_(),T("div",rse,[A(f(DE),{limit:10,view:"compact",onClose:r[0]||(r[0]=a=>n("close"))})]))}}),lse={class:"bell"},cse=J({__name:"Bell",setup(e){const{isAnon:t}=Ye(),n=ct(),{unseenCounter:s}=$p(),i=P(!1),o=P();function r(){if(i.value){i.value=!1;return}t.value?n.push("/auth"):i.value=!0}const a=[()=>{r()},{ignore:[o]}];return(l,c)=>(_(),T("div",lse,[O("button",{ref_key:"bellButton",ref:o,class:Z(["bell__button",i.value&&"bell__button--active"]),onClick:r},[A(f(Re),{class:"bell__button-icon",name:"bell"}),A(f(EC),{class:"bell__unread-count",value:f(s)},null,8,["value"])],2),A(f(s0),null,{default:K(()=>[i.value?Ie((_(),L(ase,{key:0,class:"bell__popover modal-toggle-surface",onClose:r},null,512)),[[f(_p),a]]):D("",!0)]),_:1})]))}}),Q0=fi(Pn(()=>{const{discovery:e,subsite:t}=vt(),n=P(null),s=PS(),i=P(!1),o=P(""),r=P([]),a=C(()=>o.value.trim()),l=C(()=>a.value.length===0),c=P(!1),u=P([]);async function d(w){var k;n.value=w,s.value=!0,i.value=!0,(k=n.value)==null||k.classList.add("quick-search-wrapper")}function h(){var w;s.value=!1,i.value=!1,(w=n.value)==null||w.classList.remove("quick-search-wrapper")}function p(w){e.addToRecent(w)}function m(w){e.removeFromRecent(w)}function v(){e.clearRecent()}function g(){const w=a.value;Promise.all([t.search(a.value,_t.Topic,!0),t.search(a.value,_t.Blog,!0)]).then(([k,y])=>{const x=5-y.length>2?5-y.length:2;r.value=[...k.slice(0,x),...y].slice(0,5)}).catch(k=>{console.log("Search error",k)}).finally(()=>{w===a.value&&(c.value=!1)})}const b=js(g,1e3);return be(a,async()=>{if(r.value=[],l.value){c.value=!1;return}c.value=!0,await un(),b()}),Gl(()=>{u.value=e.getRecent()}),{query:o,prettyQuery:a,isDisplay:i,isLoading:c,isEmptyQuery:l,searchResult:r,recent:u,addToRecent:p,removeFromRecent:m,clearRecent:v,open:d,close:h}}),()=>({query:P(""),prettyQuery:C(()=>""),isDisplay:P(!1),isLoading:P(!1),isEmptyQuery:C(()=>!0),searchResult:P([]),recent:C(()=>[]),addToRecent:()=>{},removeFromRecent:()=>{},clearRecent:()=>{},open:async()=>{},close:()=>{}}));function use(e,t){const n=P(),s=C(()=>{if(n.value!==void 0)return i[n.value]});let i=[];function o(h){if(n.value===void 0)return!1;const p=i[n.value];return p===void 0?!1:p.sectionIndex===h.sectionIndex&&p.itemIndex===h.itemIndex}function r(){if(i.length===0)return;let h=n.value===void 0?0:n.value+1;h>=i.length&&(h=0),c(h)}function a(){if(i.length===0)return;let h=n.value===void 0?i.length-1:n.value-1;h<0&&(h=i.length-1),c(h)}function l(){if(s.value!==void 0)return ce(e)[s.value.sectionIndex].items[s.value.itemIndex]}function c(h){n.value=h>=0&&h<i.length?h:void 0,d()}function u(){n.value=void 0,i=ce(e).flatMap((h,p)=>h.items.map((m,v)=>({sectionIndex:p,itemIndex:v})))}function d(){var p;if(s.value===void 0)return;const h=(p=ce(t)[s.value.sectionIndex])==null?void 0:p[s.value.itemIndex];q(h)&&h.scrollIntoView({block:"nearest"})}return be(()=>ce(e),()=>{u()},{immediate:!0}),{isFocused:o,down:r,up:a,getFocused:l}}const dse=fi(()=>{const{query:e,searchResult:t,recent:n,isLoading:s,isEmptyQuery:i,addToRecent:o,clearRecent:r,close:a}=Q0(),{setLinkReferer:l}=Br(),{getBadgeById:c}=k0(),u=ct(),{t:d}=ft(),h=C(()=>m.value.length>0||s.value),p=P([]),m=C(()=>
190{if(i.value){const I=[];return n.value.length>0&&I.push({items:n.value.map(y),title:d("core.search.recent"),action:{label:d("common.clear"),handler:()=>{r()}}}),I}if(!s.value){const I=[{items:[{label:d("core.search.goTo"),icon:"enter",action:()=>{E(e.value)}}]}],N=t.value.filter($=>"type"in $&&$.type===_t.Blog).slice(0,3),V=t.value.filter($=>"type"in $&&$.type===_t.Topic).slice(0,3);return N.length>0&&I.push({title:d("common.blogs"),items:N.map($=>S($,!0,!0))}),V.length>0&&I.push({title:d("common.topics"),items:V.map($=>S($,!0,!0))}),I}return[]}),{isFocused:v,down:g,up:b,getFocused:w}=use(m,p);function k(I){const N=w();if(N===void 0){E(e.value),a();return}q(N)&&("url"in N&&q(N.url)?(l($e.QuickSearch),u.push(N.url)):"action"in N&&q(N.action)&&N.action(N,I),M(N))}function y(I){return typeof I=="string"?{label:I,icon:"search",action:()=>{E(I)}}:"author"in I?{value:`post:${I.id}`,label:I.title,icon:"pen",url:Fn(I)}:S(I,!1,!0)}function S(I,N=!1,V=!1){var $;return{value:`subsite:${I.id}`,label:I.name,media:I.avatar,url:gn(I),details:N?sn(I):void 0,labelImageUuid:V?($=c(I.badgeId))==null?void 0:$.staticUuid:void 0}}function E(I){l($e.QuickSearch),u.push({name:"Discovery",query:{q:I}}),e.value=""}function x(I){if("value"in I&&typeof I.value=="string"){const[N,V]=I.value.split(":");return[...t.value,...n.value].find($=>N==="post"?typeof $=="object"&&"author"in $&&$.id.toString()===V:N==="subsite"?typeof $=="object"&&"type"in $&&$.id.toString()===V:!1)}}function M(I){const N=x(I);q(N)&&o(N),a()}return be(m,()=>{h.value&&!i.value&&g()}),{optionRefs:p,sections:m,isLoading:s,isDisplay:h,isFocused:v,select:M,down:g,up:b,submit:k}},()=>({optionRefs:P([]),sections:C(()=>[]),isLoading:P(!1),isDisplay:C(()=>!1),isFocused:()=>!1,select:()=>{},down:()=>{},up:()=>{},submit:()=>{}})),fse={class:"quick-search-dropdown"},hse={key:0,class:"quick-search-dropdown__heading"},pse={key:0,class:"quick-search-dropdown__title"},mse={class:"quick-search-dropdown__list"},vse=J({__name:"Dropdown",props:{maxHeight:{}},setup(e,{expose:t}){const n=e,{optionRefs:s,sections:i,isLoading:o,isDisplay:r,isFocused:a,select:l,down:c,up:u,submit:d}=dse();function h(m,v,g){m!==null&&(m instanceof HTMLElement&&p(m,v,g),"element"in m&&m.element instanceof HTMLElement&&p(m.element,v,g))}function p(m,v,g){s.value[v]===void 0&&(s.value[v]=[]),s.value[v][g]=Dg(m)}return t({down:c,up:u,submit:d}),(m,v)=>f(r)?(_(),L(f(n0),{key:0},{default:K(()=>[A(f(Yl),{style:Ot({maxHeight:`${n.maxHeight}px`})},{default:K(()=>[O("div",fse,[f(o)?(_(),L(f(ad),{key:0,size:24,width:2,type:"primary"})):(_(!0),T(ye,{key:1},We(f(i),(g,b)=>(_(),T("div",{key:`section-${b}`,class:"quick-search-dropdown__section"},[g.title||g.action?(_(),T("div",hse,[g.title?(_(),T("div",pse,Y(g.title),1)):D("",!0),g.action?(_(),L(f(zs),{key:1,onClick:g.action.handler},{default:K(()=>[xe(Y(g.action.label),1)]),_:2},1032,["onClick"])):D("",!0)])):D("",!0),O("div",mse,[(_(!0),T(ye,null,We(g.items,(w,k)=>(_(),L(f(lC),St({key:`section-${b}-item-${k}`,ref_for:!0,ref:y=>h(y,b,k)},{ref_for:!0},w,{focused:f(a)({sectionIndex:b,itemIndex:k}),referer:f($e).QuickSearch,onSelect:y=>f(l)(w)}),null,16,["focused","referer","onSelect"]))),128))])]))),128))])]),_:1},8,["style"])]),_:1})):D("",!0)}}),gse={class:"quick-search__container"},z_=10,bse=24,yse=J({__name:"Search",setup(e){Zi(m=>({v0d4a202e:l}));const{query:t,isEmptyQuery:n,close:s}=Q0(),{t:i}=ft(),o=mt("dropdown"),r=mt("root"),a=If(r),l=`${z_}px`,c=C(()=>{const m=window.innerHeight-a.bottom.value-z_-bse;return m>100?m:void 0}),u=C(()=>{if(!n.value)return{name:"cross",action:()=>t.value=""}});function d(){var m;(m=o.value)==null||m.down()}function h(){var m;(m=o.value)==null||m.up()}function p(m){var v;(v=o.value)==null||v.submit(m)}return(m,v)=>(_(),T("div",{ref_key:"root",ref:r,class:"quick-search"},[O("div",{class:"quick-search__underlay",onClick:v[0]||(v[0]=(...g)=>f(s)&&f(s)(...g))}),O("div",gse,[A(f(rc),{modelValue:f(t),"onUpdate:modelValue":v[1]||(v[1]=g=>Ct(t)?t.value=g:null),size:f(qi).Large,icon:"search_enhanced","icon-right":u.value,placeholder:f(i)("common.search"),autofocus:"",onKeydown:[vn(At(d,["prevent"]),["down"]),vn(At(h,["prevent"]),["up"]),vn(At(p,["prevent"]),["enter"]),vn(At(f(s),["prevent"]),["esc"]),vn(At(d,["prevent"]),["tab"])]},null,8,["modelValue","size","icon-right","placeholder","onKeydown"]),A(vse,{ref_key:"dropdown",ref:o,"max-height":c.value,class:"quick-search__dropdown"},null,8,["max-height"])])],512))}}),wse=J({__name:"Button",props:{target:{}},setup(e){const t=e,{isDisplay:n,open:s}=Q0(),{Cmd_K:i,Ctrl_K:o}=n3({passive:!1,onEventFired:r=>
190{r.ctrlKey&&r.key==="k"&&r.type==="keydown"&&r.preventDefault()}});return s6(C(()=>i.value||o.value),()=>{s(t.target)}),(r,a)=>(_(),T(ye,null,[O("button",{class:"quick-search-button",onClick:a[0]||(a[0]=l=>f(s)(e.target))},[A(f(Re),{name:"search_enhanced"})]),f(n)?(_(),L(id,{key:0,to:e.target},[A(yse)],8,["to"])):D("",!0)],64))}}),_se=fi(()=>{const e=ct(),{isDirectVisit:t}=fp(),n=C(()=>e.currentRoute.value.name),s=C(()=>n.value!=="HomePage"),i=P([]),o=P(!1),r=dn();be(()=>r.fullPath,async(l,c)=>{if(!(c.includes("modal")||l.includes("modal"))&&!o.value&&c!==void 0){if(history.state.redirect===!0)return;i.value=[...i.value,c].slice(-20)}});async function a(){if(o.value=!0,t.value)await e.push({name:"HomePage"});else{const l=i.value.pop();l!==void 0?await e.push(l):await e.push({name:"HomePage"})}o.value=!1}return{goBack:a,isBackButtonAvailable:s}},()=>({goBack:async()=>await Promise.resolve(),isBackButtonAvailable:C(()=>!1)})),kse={key:0,class:"header__distribution"},Sse={class:"header__layout"},Cse={class:"header__left"},Ese=["innerHTML"],xse={class:"header__right"},Tse=J({__name:"Header",setup(e){const t={drafts:!0,bookmarks:!0,settings:{type:"route"},donations:!0,collectibles:!0,plus:!0,pro:!0},{t:n}=ft(),{trackEvent:s}=Qn(),{isOneColumn:i,isThreeColumns:o,isTwoColumns:r}=an(),{isHighContrastBrandColor:a}=Ps(),{user:l,isAnon:c}=Ye(),{isDisabled:u}=md(),{isBackButtonAvailable:d,goBack:h}=_se(),{isDisabled:p}=Go();{const b=Jd("--layout-header-height");be([r,u],()=>{b.value=!u.value&&!r.value?"var(--layout-header-height-large)":"var(--layout-header-height-default)"},{immediate:!0})}const m=q("")?"":'<svg viewBox="0 404.142 36 33.608" width="30" height="32" xmlns="http://www.w3.org/2000/svg"><path d="M28.813 419.643c2.65 0 4.645-1.104 6.116-3.026l-1.966-1.5a5.188 5.188 0 0 1-4.15 2.052c-2.876 0-4.96-2.343-4.96-5.218s2.05-5.35 5.042-5.35c1.33 0 2.27.314 3.09.822v2.528h2.474v-3.686l-.474-.373c-1.36-1.07-3.437-1.638-5.173-1.638-4.244 0-7.696 3.452-7.696 7.696 0 4.24 3.45 7.693 7.696 7.693zm5.133 15.18-.088-3.543v-8.646h-5.16v2.475h2.554v5.866c0 2.527-1.93 4.316-3.877 4.316s-2.963-1.35-2.963-3.876v-8.782h-4.82v2.475h2.214v6.736c0 3.428 1.922 5.79 5.35 5.79 1.97 0 3.47-1.093 4.365-2.778h.04l.353 2.356h3.965v-2.386h-1.93v-.005zm-13.4-30.206h-4.3l-3.74 10.86h-.058l-3.72-10.86H4.146v2.476h2.577l4.435 12.378h2.356v-.003l4.625-12.374h2.405v-2.476zM.122 437.244H2.67v-2.547H.123v2.547zm9.84-11.74h-.028l-.16-2.87H5.226v2.256h2.42v9.934h-2.42v2.387h11.24v-2.34h-6.258v-5.995c.283-2.17 1.91-4.023 4.13-4.023h.04l-.045 2.218h2.474v-4.478h-1.956c-2.24-.006-3.902 1.206-4.89 2.912z"/></svg>',v=mt("main");function g(){s("Header â Back â Click"),h()}return(b,w)=>{const k=An("gtm");return _(),T("div",{class:Z(["header",{"header--contrast":f(a)}])},[f(u)?D("",!0):(_(),T("div",kse,[(_(),L(nn("style"),null,{default:K(()=>[...w[0]||(w[0]=[xe(" :root { --layout-header-height-large: 102px; } ",-1)])]),_:1})),A(f(Tt),null,{default:K(()=>[f(r)?D("",!0):(_(),L(V_,{key:0}))]),_:1})])),O("div",Sse,[O("div",Cse,[A(f(Qe),{to:"/",class:"header__logo"},{default:K(()=>[O("span",{innerHTML:f(m)},null,8,Ese)]),_:1}),f(i)?D("",!0):(_(),L(f(Tt),{key:0},{default:K(()=>[f(p)?D("",!0):(_(),L(f(Ra),{key:0,id:f(Le).HeaderButtonDesktop,"is-with-close-button":!1,"reserve-space":!1},null,8,["id"]))]),_:1}))]),O("div",{ref_key:"main",ref:v,class:"header__main"},[A(f(Tt),null,{default:K(()=>[f(d)?(_(),L(f(qe),{key:0,class:"header__back-button",icon:"chevron_left_big",type:"transparent",size:"l",isCircle:"","data-ripple":"center",onClick:g})):D("",!0)]),_:1}
190),f(r)&&!f(u)?(_(),L(f(Tt),{key:0},{default:K(()=>[A(V_,{class:"header__main-distribution"})]),_:1})):D("",!0)],512),A(f(Tt),null,{default:K(()=>[O("div",xse,[f(i)?(_(),T(ye,{key:0},[f(p)?D("",!0):(_(),L(f(Ra),{key:0,id:f(Le).HeaderButtonMobile,"is-with-close-button":!1,"reserve-space":!1},null,8,["id"]))],64)):(_(),T(ye,{key:1},[A(wse,{target:v.value},null,8,["target"]),f(c)?D("",!0):(_(),L(cse,{key:0})),Ie((_(),L(f(Qe),{to:{name:"Editor"}},{default:K(()=>[A(f(qe),{type:"secondary",size:"l",icon:"pen",rounded:"",isCircle:f(r)&&!f(o)},{default:K(()=>[f(o)?(_(),T(ye,{key:0},[xe(Y(f(n)("common.write")),1)],64)):D("",!0)]),_:1},8,["isCircle"])]),_:1})),[[k,"Header â Write â Click"]]),f(c)?(_(),T(ye,{key:1},[A(f(Qe),{to:{name:"Auth"}},{default:K(()=>[A(f(qe),{size:"l",rounded:""},{default:K(()=>[xe(Y(f(n)("core.header.login")),1)]),_:1})]),_:1}),w[1]||(w[1]=O("div",{id:"google-one-tap-container",class:"header__google-one-tap-container"},null,-1))],64)):f(l)?(_(),L(nse,{key:2,"user-data":f(l),"menu-options":t},null,8,["user-data"])):D("",!0)],64))])]),_:1})])],2)}}}),Ase=["src","onAnimationend"],Pse=J({__name:"Tabbar",setup(e){const t=Ir({uuid:"ddb96b41-59f7-5ce5-a838-6e912addd526",format:"raw"}),n=dn(),{user:s}=Ye(),{unseenCounter:i}=$p(),{isHighContrastBrandColor:o}=Ps(),{counter:r}=M0(),{isAppModuleEnabled:a}=Gs(),l=P(!1),c=P(null);function u(p,m){c.value=p}function d(p,m){m.animationName==="tabbar-icon-bounce"&&c.value===p&&(c.value=null)}const h=C(()=>{var g,b;const p=n.name==="HomePage",m=p?n:ar.value,v=[{icon:"home_thin",to:q(m)?m:{name:"HomePage"},isActive:p,gtm:"Tabbar â Home â Click"},{icon:"search_thin",to:{name:"Discovery"},isActive:["Discovery","Top"].includes(n.name)}];return l.value&&a("terminal")&&wd((g=s.value)==null?void 0:g.aclGroup)&&v.push({icon:"neuro",to:"/neuro",isActive:n.name.startsWith("Terminal"),image:t,gtm:"Tabbar â Terminal â Click"}),v.push({icon:"bell_thin",to:{name:"Notifications"},count:i.value,isActive:n.name==="Notifications",gtm:"Tabbar â Notifications â Click"},{to:{path:"/m"},icon:"messenger_thin",gtm:"Tabbar â Messenger â Click",isActive:n.name.startsWith("Messenger"),count:r.value},{icon:"login_thin",to:{name:"Menu"},isActive:n.name==="Menu",picture:(b=s.value)==null?void 0:b.avatar,gtm:"Tabbar â Account â Click"}),v});return je(()=>{l.value=!0}),(p,m)=>{const v=An("gtm");return _(),T("div",{class:Z(["tabbar",f(o)&&"tabbar--contrast",c.value!==null&&"tabbar--animating"])},[(_(!0),T(ye,null,We(h.value,(g,b)=>Ie((_(),L(nn(g.target===void 0?f(Qe):"a"),{key:b,to:g.to,href:g.to,target:g.target,class:Z(["tabbar__item",g.isActive&&"tabbar__item--active",c.value===b&&"tabbar__item--animating"]),"data-ripple":"center",onPointerdown:w=>u(b)},{default:K(()=>[l.value&&g.picture?(_(),L(f(Jn),{key:0,source:g.picture,size:28,isAllowVideo:!1,class:"tabbar__icon tabbar__avatar",onAnimationend:w=>d(b,w)},null,8,["source","onAnimationend"])):g.image?(_(),T("img",{key:1,src:g.image,width:"28",height:"28",alt:"",class:"tabbar__icon tabbar__image",onAnimationend:w=>d(b,w)},null,40,Ase)):(_(),L(f(Re),{key:l.value.toString(),name:g.icon,width:28,height:28,class:"tabbar__icon",onAnimationend:w=>d(b,w)},null,8,["name","onAnimationend"])),g.badgeIcon?(_(),L(f(Re),{key:3,name:g.badgeIcon,width:16,height:16,class:"tabbar__badge-icon"},null,8,["name"])):D("",!0),g.count?(_(),L(f(EC),{key:4,value:g.count,class:"tabbar__count"},null,8,["value"])):D("",!0)]),_:2},1064,["to","href","target","class","onPointerdown"])),[[v,g.gtm]])),128))],2)}}});async function Rse(){const{[Oe.Subsite]:e}=vt(),t=P([]);async function n(){t.value=(await e.getTopByType(en.Topics,!1)).map(s=>s.data)}return await eo({onServer:n,onHydration:n,onAfterClientRender:async()=>{t.value.length===0&&await n()}}),t}function Ise(){const{[Oe.Core]:e}=vt(),t=P(e.getSidebarSectionsState());function n(i){return t.value[i]??!0}function s(i){if(!(i.currentTarget instanceof HTMLElement))return;const o=i.currentTarget.dataset.section;o&&(t.value={...t.value,[o]:!n(o)},e.setSidebarSectionsState(t.value))}return{isSectionExpanded:n,toggleSection:s}}const Mse={class:"sidebar-apps-promo"},$se={class:"sidebar-apps-promo__text"},Lse={class:"sidebar-apps-promo__stores"},Ose=["href"],Yd="sidebar",Bse=J({__name:"SidebarAppsPromo",props:{config:{}},setup(e){const t=e,{t:n}=ft(),s=C(()=>[{icon:"apple",label:"App Store",link:Dd(t.config.ios,Yd)},{icon:"google_play",label:"Google Play",link:Dd(t.config.android,Yd)},{icon:"app_gallery",label:"AppGallery",link:Dd(t.config.huawei,Yd)},{icon:"ru_store",label:"RuStore",link:Dd(t.config.rustore,Yd)}]);return(i,o)=>(_(),T("div",Mse,[A(f(Qe),{class:"sidebar-apps-promo__qr-link",to:{name:"Apps"}},{default:K(()=>[...o[0]||(o[0]=[O("span",{class:"sidebar-apps-promo__qr","aria-hidden":"true"},null,-1)])]),_:1}
190),O("p",$se,Y(f(n)("core.sidebar.appsPromo")),1),O("div",Lse,[(_(!0),T(ye,null,We(s.value,r=>(_(),T("a",{key:r.icon,class:"sidebar-apps-promo__store",href:r.link,target:"_blank",rel:"noopener noreferrer"},[A(f(Re),{name:r.icon,width:24,height:24},null,8,["name"])],8,Ose))),128))])]))}}),Dse={class:"sidebar"},Nse=["data-section"],Fse={key:0,class:"sidebar__section-content"},Use=["src"],Hse={class:"sidebar-item__text"},Vse={class:"sidebar-item__label"},zse={key:0,class:"sidebar-item__success-text"},Wse={key:1,class:"sidebar-item__sublabel"},jse={key:0,class:"sidebar__section"},Gse={key:0,class:"sidebar__section-content"},qse={class:"sidebar-item__text"},Kse={class:"sidebar__section"},Yse={key:0,class:"sidebar__section-content"},Xse={class:"sidebar-item__text"},Qse={class:"sidebar-item__text"},Jse={class:"sidebar__section"},Zse={key:0,class:"sidebar__section-content"},eie=["src"],tie={class:"sidebar-item__text"},nie={key:0,class:"sidebar-item__sublabel"},sie={class:"sidebar-item__text"},iie=["innerHTML"],oie=J({__name:"Sidebar",async setup(e){let t,n;const{isActive:s}=jS(),{t:i}=ft(),{showThemeSwitcher:o,currentTheme:r}=Ps(),a=dn(),{counter:l}=M0(),{isUserDisabledAds:c,user:u}=Ye(),{[Oe.Core]:d}=vt(),{getServicePageByName:h,appsConfig:p,gamesIcons:m,isAppModuleEnabled:v}=Gs(),{isSectionExpanded:g,toggleSection:b}=Ise(),w=([t,n]=on(()=>Rse()),t=await t,n(),t),k=P(!1),y=v("marketplace"),S="business",E=C(()=>{if(!y||c.value)return"";const ue={games:i("common.marketplaceDescriptions.games"),business:i("common.marketplaceDescriptions.business")},de=(ue[S]??ue.games).split("%"),ke=d.getProbability("sidebar-marketplace-description"),Se=Math.min(Math.floor(ke*de.length),de.length-1);return de[Se]}),x=P(!1),M=C(()=>k.value?w.value:w.value.slice(0,10)),I=C(()=>{const ue=[{label:i("core.sections.popular"),to:R("/popular"),alias:"/",icon:"feed",gtm:"Sidebar â Popular â Click"},{label:i("core.sections.new"),to:R("/new"),icon:"clock",hasUpdates:G.value,gtm:"Sidebar â New â Click"},{label:i("core.sections.my"),to:R("/my"),icon:"my_feed",hasUpdates:H.value,gtm:"Sidebar â My â Click"},{label:i("core.sections.messenger"),to:{path:"/m"},icon:"messenger",gtm:"Sidebar â Messenger â Click",hasUpdates:l.value!==void 0&&l.value>0},{label:i("common.discovery"),to:{path:"/discovery"},icon:"discovery",gtm:"Sidebar â Discovery â Click"}];return!c.value&&["dtf","vc"].includes("vc")&&ue.push({label:i("core.sections.aiCourse"),to:"https://edu.vc.ru/chatgpt",image:"https://leonardo.osnova.io/5e19c0e3-69b1-5399-9ad7-13cced8d69fc/-/scale_crop/72x72/",target:"_blank",trailingIcon:"arrow_up_right",gtm:"Sidebar â Edu ChatGPT course â Click"}),ue}),N=C(()=>{var ke;const ue=[];x.value&&v("terminal")&&wd((ke=u.value)==null?void 0:ke.aclGroup)&&ue.push({label:i("core.sections.terminal"),to:"/neuro",icon:"neuro",sublabel:i("core.sections.terminalSubtitle"),gtm:"Sidebar â Terminal â Click"});const de="https://edu.vc.ru";return v("courses")&&q(de)&&ue.push({label:i("core.sections.courses"),to:de,icon:"courses",target:"_blank",trailingIcon:"arrow_up_right",gtm:"Sidebar â Courses â Click"}),y&&ue.push({label:i("common.navigation.marketplace"),to:"/store",icon:"marketplace",gtm:"Sidebar â Store â Click",successLabel:E.value}),ue}),V=C(()=>{const ue=[{id:"main",items:I.value}];return N.value.length>0&&ue.push({id:"services",title:i("core.sidebar.services"),items:N.value}),ue}),$=C(()=>[{label:i("common.quiz"),to:"/quiz",avatar:xn({uuid:m.quiz}),gtm:"Sidebar â Quiz â Click"},{label:i("common.slovomer"),to:"/slovomer",avatar:xn({uuid:m.slovomer}),gtm:"Sidebar â Slovomer â Click"}]),j="vc.ru",X=C(()=>{const ue=[];return q(h("About"))&&ue.push({icon:"info",label:i("common.about"),to:"/about",gtm:"Sidebar â About â Click"}),q(h("Rules"))&&ue.push({icon:"rules",label:i("common.rules"),to:"/rules",gtm:"Sidebar â Rules â Click"}),q(h("Ads"))&&ue.push({icon:"star",label:i("common.ad"),to:"/ads",gtm:"Sidebar â Ad â Click"}),ue}),U=C(()=>{var de;const ue=((de=h("rules-recommendations"))==null?void 0:de.path)??"";return ue?i("core.sidebar.recommendationsNotice",{recommendationsUrl:ue}):""});function R(ue){return{path:ue,force:!0,replace:a.fullPath===ue}}const{hasNewPosts:G,hasMyNewPosts:H}=I0();function se(ue){ue.currentTarget instanceof HTMLElement&&o(ue.currentTarget)}return je(()=>{x.value=!0}),(ue,de)=>{const ke=An("gtm");return _(),L(f(Yl),null,{default:K(()=>[O("div",Dse,[(_(!0),T(ye,null,We(V.value,Se=>(_(),T("div",{key:Se.id,class:"sidebar__section"},[Se.title!==void 0?(_(),T("button",{key:0,class:Z(["sidebar__title sidebar__title--collapsible",{"sidebar__title--collapsed":!f(g)(Se.id)}]),type:"button","data-section":Se.id,onClick:de[0]||(de[0]=(..._e)=>f(b)&&f(b)(..._e))}
190,[O("span",null,Y(Se.title),1),A(f(Dc),{class:"sidebar__title-chevron",state:f(g)(Se.id)?"b":"a"},{a:K(()=>[A(f(Re),{name:"chevron_right",width:16,height:16})]),b:K(()=>[A(f(Re),{name:"chevron_down",width:16,height:16})]),_:1},8,["state"])],10,Nse)):D("",!0),A(qn,{name:"sidebar-section"},{default:K(()=>[Se.title===void 0||f(g)(Se.id)?(_(),T("div",Fse,[(_(!0),T(ye,null,We(Se.items,_e=>Ie((_(),L(nn(_e.target===void 0?f(Qe):"a"),{key:_e.label,to:_e.to,href:_e.to,target:_e.target,class:Z(["sidebar-item",x.value&&f(s)({path:typeof _e.to=="string"?_e.to:_e.to.path,alias:_e.alias},f(a).path,void 0,_e.isExactActive)?"sidebar-item--active":""]),"data-ripple":""},{default:K(()=>[_e.icon?(_(),L(f(Re),{key:x.value.toString(),name:_e.icon},null,8,["name"])):_e.image?(_(),T("img",{key:1,src:_e.image,class:Z(["sidebar-item__image",_e.imageGrayscale?"sidebar-item__image--grayscale":""])},null,10,Use)):D("",!0),O("div",Hse,[O("span",Vse,[xe(Y(_e.label)+" ",1),_e.trailingIcon?(_(),L(f(Re),{key:0,class:"sidebar-item__trailing-icon",name:_e.trailingIcon,width:16,height:16},null,8,["name"])):D("",!0)]),_e.successLabel?(_(),T("div",zse,Y(_e.successLabel),1)):D("",!0),_e.sublabel?(_(),T("div",Wse,Y(_e.sublabel),1)):D("",!0)]),_e.hasUpdates?(_(),L(f(Yb),{key:2,class:"sidebar-item__has-updates",size:"large"})):D("",!0)]),_:2},1032,["to","href","target","class"])),[[ke,_e.gtm]])),128))])):D("",!0)]),_:2},1024)]))),128)),f(v)("game")?(_(),T("div",jse,[O("button",{class:Z(["sidebar__title sidebar__title--collapsible",{"sidebar__title--collapsed":!f(g)("games")}]),type:"button","data-section":"games",onClick:de[1]||(de[1]=(...Se)=>f(b)&&f(b)(...Se))},[O("span",null,Y(f(i)("common.games")),1),A(f(Dc),{class:"sidebar__title-chevron",state:f(g)("games")?"b":"a"},{a:K(()=>[A(f(Re),{name:"chevron_right",width:16,height:16})]),b:K(()=>[A(f(Re),{name:"chevron_down",width:16,height:16})]),_:1},8,["state"])],2),A(qn,{name:"sidebar-section"},{default:K(()=>[f(g)("games")?(_(),T("div",Gse,[(_(!0),T(ye,null,We($.value,Se=>Ie((_(),L(f(Qe),{key:Se.label,to:Se.to,href:Se.to,class:Z(["sidebar-item",x.value&&f(s)({path:typeof Se.to=="string"?Se.to:Se.to.path},f(a).path)?"sidebar-item--active":""])},{default:K(()=>[Se.avatar?(_(),L(f(Jn),{key:0,source:Se.avatar,size:28},null,8,["source"])):D("",!0),O("div",qse,Y(Se.label),1)]),_:2},1032,["to","href","class"])),[[ke,Se.gtm]])),128))])):D("",!0)]),_:1})])):D("",!0),O("div",Kse,[O("button",{class:Z(["sidebar__title sidebar__title--collapsible",{"sidebar__title--collapsed":!f(g)("topics")}]),type:"button","data-section":"topics",onClick:de[2]||(de[2]=(...Se)=>f(b)&&f(b)(...Se))},[O("span",null,Y(f(i)("common.topics")),1),A(f(Dc),{class:"sidebar__title-chevron",state:f(g)("topics")?"b":"a"},{a:K(()=>[A(f(Re),{name:"chevron_right",width:16,height:16})]),b:K(()=>[A(f(Re),{name:"chevron_down",width:16,height:16})]),_:1},8,["state"])],2),A(qn,{name:"sidebar-section"},{default:K(()=>[f(g)("topics")?(_(),T("div",Yse,[M.value.length===0?(_(),T(ye,{key:0},We(3,Se=>O("div",{key:Se,class:"sidebar-skeleton-item"},[A(f(Hi),{size:"28px"}),A(f(Ut),{width:"100px"})])),64)):(_(),T(ye,{key:1},[(_(!0),T(ye,null,We(M.value,Se=>(_(),L(f(Qe),{key:Se.id,to:f(gn)(Se),class:Z(["sidebar-item",x.value&&f(s)({path:f(gn)(Se)},f(a).path)?"sidebar-item--active":""])},{default:K(()=>[A(f(Jn),{source:Se.avatar,size:28},null,8,["source"]),O("div",Xse,Y(Se.name),1)]),_:2},1032,["to","class"]))),128)),k.value?D("",!0):(_(),T("div",{key:0,class:"sidebar-item",onClick:de[3]||(de[3]=Se=>k.value=!0)},[A(f(Re),{name:"chevron_down"}),O("div",Qse,Y(f(i)("common.showAll")),1)]))],64))])):D("",!0)]),_:1})]),O("div",Jse,[O("button",{class:Z(["sidebar__title sidebar__title--collapsible",{"sidebar__title--collapsed":!f(g)("footer")}]),type:"button","data-section":"footer",onClick:de[4]||(de[4]=(...Se)=>f(b)&&f(b)(...Se))},[O("span",null,Y(f(j)),1),A(f(Dc),{class:"sidebar__title-chevron",state:f(g)("footer")?"b":"a"},{a:K(()=>[A(f(Re),{name:"chevron_right",width:16,height:16})]),b:K(()=>[A(f(Re),{name:"chevron_down",width:16,height:16})]),_:1},8,["state"])],2),A(qn,{name:"sidebar-section"},{default:K(()=>[f(g)("footer")?(_(),T("div",Zse,[(_(!0),T(ye,null,We(X.value,Se=>Ie((_(),L(f(Qe),{key:Se.to,to:Se.to,href:Se.to,class:Z(["sidebar-item",x.value&&f(s)({path:Se.to},f(a).path)?"sidebar-item--active":""])},{default:K(()=>[Se.icon?(_(),L(f(Re),{key:x.value.toString(),name:Se.icon},null,8,["name"])):Se.image?(_(),T("img",{key:1,src:Se.image,class:Z(["sidebar-item__image",Se.imageGrayscale?"sidebar-item__image--grayscale":""])},null,10,eie)):D("",!0),O("div",tie,[xe(Y(Se.label)+" ",1),Se.sublabel?(_(),T("div",nie,Y(Se.sublabel),1)):D("",!0)])]),_:2},1032,["to","href","class"])),[[ke,Se.gtm]])),128)),O("div",{class:"sidebar-item sidebar-item--relative",onClick:se},[A(f(Re),{name:f(r).icon},null,8,["name"]),O("div",sie,Y(f(r).label),1)]),f(q)(f(p))?(_(),L(Bse,{key:0,config:f(p)},null,8,["config"])):D("",!0),U.value?(_(),T("p",{key:1,class:"sidebar__recommendations-notice",innerHTML:U.value},null,8,iie)):D("",!0)])):D("",!0)]),_:1})])])]),_:1})}}}),Ox=yt(zt(()=>{const{[Oe.Core]:e}=vt(),n=Xn("cookie-consent-accepted",!1),s=C(()=>!n.value);function i(){n.value=!0,e.acceptCookieConsent()}return{isAccepted:n,isVisible:s,accept:i}}),()=>({isAccepted:C(()=>!1),isVisible:C(()=>!1),accept:()=>{}})),rie={key:0,class:"cookie-consent-banner"},aie=["innerHTML"],lie=J({__name:"CookieConsentBanner",setup(e){const{t}=ft(),{getServicePageByName:n}=Gs(),{isVisible:s,accept:i}=Ox(),o=C(()=>{var r;return t("common.cookieConsent.message",{privacyUrl:((r=n("Privacy"))==null?void 0:r.path)??""})});return(r,a)=>f(s)?(_(),T("div",rie,[O("p",{class:"cookie-consent-banner__text",innerHTML:o.value},null,8,aie),A(f(qe),{class:"cookie-consent-banner__button",type:"minimal",size:"m",rounded:"",onClick:f(i)},{default:K(()=>[xe(Y(f(t)("common.cookieConsent.accept")),1)]),_:1},8,["onClick"])])):D("",!0)}}),cie=J({__name:"CacheableRouterView",setup(e){const t=ct(),n=C(()=>t.options.routes.filter(s=>{var i;return(i=s.meta)==null?void 0:i.cache}).map(s=>{var i;return(i=s.component)==null?void 0:i.name}).filter(s=>s!==void 0));return(s,i)=>{const o=Gg("router-view");return _(),L(o,null,{default:K(({Component:r})=>[(_(),L(Hk,{include:n.value,max:1},[(_(),L(d2,null,{default:K(()=>[(_(),L(nn(r)))]),_:2},1024))],1032,["include"]))]),_:1})}}}),W_=8,j_=2,uie=J({__name:"ScrollNextButton",props:{container:{}},setup(e){const t=e,{appHeaderHeight:n,isTwoColumns:s}=an(),{scrollToElement:i}=qb(),o=x6(),r=De(),a=Yh(l,300,!0);Be("scroll",a,{passive:!0}),Be("resize",a),Wo(()=>[document.documentElement,t.container],()=>{a()});function l(){if(r.value=void 0,t.container===null||!s.value||window.scrollY>=document.documentElement.scrollHeight-window.innerHeight-j_)return;const u=Number.parseFloat(getComputedStyle(t.container).paddingTop),d=n.value+Math.max(W_,Number.isNaN(u)?0:u)+j_;for(const h of t.container.querySelectorAll("[data-scroll-island]")){const p=h.getBoundingClientRect();if(p.width>0&&p.height>0&&p.top>d&&getComputedStyle(h).visibility!=="hidden"){r.value=h;break}}}function c(){l(),r.value!==void 0&&i(r.value,o.value!=="reduce",W_)}return(u,d)=>{const h=An("gtm");
190return f(s)&&r.value!==void 0?Ie((_(),T("button",{key:0,type:"button",class:"scroll-next-button",onClick:c},[A(f(Re),{class:"scroll-next-button__icon",name:"chevron_down",width:20,height:20})])),[[h,"Scroll To Next Island â Click"]]):D("",!0)}}}),die={key:0,class:"supbar supbar--top"},fie={class:"bar bar--top"},hie={class:"layout-wrapper"},pie={key:"layout",class:"layout"},mie={class:"aside aside--left"},vie={class:"aside aside--right"},gie=["id"],bie={class:"bar bar--bottom"},yie=6e4,wie=J({__name:"LayoutDefault",setup(e){var M;const t=ji({loader:Rt(async()=>await Ce(()=>import("./StickyStackSidebar-D_-g1X3c.js"),__vite__mapDeps([182,127,183])))}),n=ji({loader:Rt(async()=>await Ce(()=>import("./Blocker-BiWOnU0O.js"),__vite__mapDeps([184,185])))}),s=ct(),i=dn(),{isWiderThanContent:o,isThreeColumns:r,isOneColumn:a}=an(),{user:l,isPlusSubscriber:c}=Ye(),{isDisabled:u}=Go(),{open:d,close:h,onModalClose:p}=Wt(),{isAdblockEnabled:m}=gN(),{isVisible:v}=Ox();ws(),fL();const{prompt:g}=OC(),b=mt("view");let w=null;const k=P(!1),y=C(()=>!k.value||o.value);q('{ "tgBotName":"vcruPro_bot", "levels":{ "default":{ "pricesPerMonth":{ "1":39900, "3":110700, "6":209400, "12":394800 }, "defaultPeriod":12, "entryPoints":{ "Direct Link":{ "start":"link_4slqKpTAyw" }, "Badge":{ "start":"link_bjHA4j1Jvu" }, "Pro Limits":{ "start":"link_18EUEbha4S" }, "Account":{ "start":"link_Cu8HPVAleN" }, "Settings":{ "start":"link_yvmDvQ5Cqu" }, "Every N Session":{ "start":"link_roNKZtkQha" }, "Editor Limit":{ "start":"link_vGWkmRt50A" }, "Pro Rotation":{ "start":"link_R7RU4LCKjb" } } }, "max":{ "pricesPerMonth":{ "1":69900, "3":194700, "6":365400, "12":682800 }, "defaultPeriod":12, "entryPoints":{ "Direct Link":{ "start":"link_2az273NRd1" }, "Badge":{ "start":"link_PpTQTuL5cF" }, "Pro Limits":{ "start":"link_nbvRtVjjjS" }, "Account":{ "start":"link_bAA5kMWyZ8" }, "Settings":{ "start":"link_qno5vzLAd8" }, "Every N Session":{ "start":"link_kmzuJ9JDeY" }, "Editor Limit":{ "start":"link_cKwbWaKKMc" }, "Pro Rotation":{ "start":"link_vHz1EcWlsK" } } } }, "isCustomMetrikaEnabled":true, "isButtonToolEnabled":true, "isPostBoostEnabledForAll":true, "isBoostFeaturePromoted":true}')&&((M=l.value)==null?void 0:M.isUnverifiedBlogForCompanyWithoutPro)===!0&&oV(async()=>{await s.replace({name:"BuyPro",params:{source:Fr.EveryNSession}})},"pro-promotion",5);const E=C(()=>!m.value||c.value),x=C(()=>{const I=i.query.modal;return typeof I=="string"&&I.startsWith("auth")});return be(E,I=>{if(I)h();else{d(n);const{off:N}=p(()=>{m.value=!1,N()})}}),je(()=>{k.value=!0,w=setTimeout(()=>{(!a.value||!v.value)&&!x.value&&(w=null,g())},yie)}),et(()=>{k.value=!1,w!==null&&(clearTimeout(w),w=null)}),(I,N)=>(_(),T(ye,null,[y.value?(_(),T("div",die,[f(u)?D("",!0):(_(),L(f(Ra),{key:0,id:f(Le).AboveHeader,"is-full-viewport-width":!0},null,8,["id"])),f(u)?D("",!0):(_(),L(f(Ra),{key:1,id:f(Le).TrackAboveHeader,"reserve-space":!1,"is-with-close-button":!1},null,8,["id"]))])):D("",!0),O("div",fie,[A(Tse)]),O("div",hie,[A(qn,{name:"blocker-in",mode:"out-in"},{default:K(()=>[E.value?(_(),T("div",pie,[O("div",mie,[(_(),L(d2,null,{default:K(()=>[A(oie)]),_:1}))]),O("div",{ref_key:"view",ref:b,class:"view"},[A(f(Tt),null,{default:K(()=>[f(a)?D("",!0):(_(),L(uie,{key:0,container:b.value},null,8,["container"]))]),_:1}),A(cie)],512),O("div",vie,[O("div",{id:f(qC)},null,8,gie),f(r)?(_(),L(f(Tt),{key:0},{default:K(()=>[A(f(t),{view:b.value},null,8,["view"])]),_:1})):D("",!0)])])):D("",!0)]),_:1})]),O("div",bie,[A(Pse)]),A(f(Tt),null,{default:K(()=>[A(lie),A(f(XL)),A(f(KB)),A(f(AL)),A(f(ZD)),A(f(cW))]),_:1})],64))}});function _ie(){const{[Oe.Core]:e}=vt();function t(){let s=new URL(window.location.href).searchParams.get("source")??"direct";["email","push","direct"].includes(s)||(s="direct"),e.initSession(s)}return{init:t}}const kie=fi(()=>{const{[Oe.Core]:e}=vt(),t=P(e.getFingerprint);e.getFingerprint===void 0&&n();function n(){const s=Vs(40);e.setFingerprint(s),t.value=s}return{fingerprint:t}},()=>({fingerprint:P(void 0)})),Sie=J({__name:"App",setup(e){const{layoutType:t}=an(),{onUserUpdate:n,user:s,offUserUpdate:i}=Ye(),{init:o}=_ie(),{colorMode:r}=Ps(),{trackEvent:a}=Qn(),{[Oe.Subsite]:l}=vt();fp(),Ps(),hd(),LC(),h0(),B6(),fb(),hi(),Ro==null||Ro(),M0(),XS(),Jb();const{isAutoplayEnabled:c}=pd();
190gt(qS,c),pV(),E$(Dl.Subsite,{routeName:"Subsite",routeParamsValidation:{subsite:p=>typeof p=="string"&&p.trim().length>0},getComponent:Rt(async()=>await Ce(()=>import("./SubsitePreview-ukDn4ksg.js"),__vite__mapDeps([186,187]))),getComponentProps:p=>({subsiteGetter:async()=>await l.loadSubsiteWith(p.subsite)})});const u=({to:p})=>{h(p)};let d=null;function h(p){const{attachUser:m}=Qn(),v=q(p)?p.id:0;m(v)}return bs(()=>{n(u),$p()}),je(()=>{o(),kie(),h(s.value),a("Theme â Show",{theme:r.value}),d=setTimeout(()=>{window.requestIdleCallback(()=>{window.performance.mark("ð«¡ app-loaded"),document.body.classList.add("app-loaded")},{timeout:1e3})},1e3)}),et(()=>{i(u),d!==null&&(clearTimeout(d),d=null)}),zk(p=>{if(p instanceof f7)return console.log("App.vue: Error Captured.",p.message),!1}),(p,m)=>f(t)==="blank"?(_(),L(Bne,{key:0})):(_(),L(wie,{key:1}))}});function Cie(e){return`/tag/${e.replace(/^#/,"").toLowerCase()}`}function Eie(e){q("")&&_8({token:"",vue:e,context:{"App Name":"vc.ru"},release:window.HAWK_RELEASE})}function xie({ssr:e,spa:t,serverRouterOptions:n}){const s=E4(Sie);Eie(s);const i=iP(),o=PP({history:i,routes:[...BJ,...Object.values(U_).flatMap(({routes:l})=>l??[])],...DJ}),r=Object.entries(U_).reduce((l,[c,{messages:u}])=>(q(u)&&(u.ru!==void 0&&(l.ru[c]=u.ru),u.en!==void 0&&(l.en[c]=u.en)),l),{ru:{},en:{}});IN(r),s.use(o),s.use(Zs),s.directive("lazy",US),s.directive("zoom",Gb),s.directive("gtm",vh),lw("hashtag",Cie),lw("mention",Aa);const{handleRoute:a}=BM(o,{authRoute:{name:"Auth"},disabled:so,serverRedirect:n==null?void 0:n.redirect});return FJ(o,[["beforeEach",a]]),S8(o),{app:s,async setupRouter(){return q(n==null?void 0:n.initialRoute)&&await o.push(n.initialRoute),await o.isReady(),o}}}async function Bx(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const s={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",s),!!s.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{var p;const o=new Map,r=new Promise(m=>{e.resolveTags().then(v=>{m(v.map(g=>{const b=o.get(g._d)||0,w={tag:g,id:(b?`${g._d}:${b}`:g._d)||g._h,shouldRender:!0};return g._d&&kS(g._d)&&o.set(g._d,b+1),w}))})});let a=e._dom;if(!a){a={title:n.title,elMap:new Map().set("htmlAttrs",n.documentElement).set("bodyAttrs",n.body)};for(const m of["body","head"]){const v=(p=n[m])==null?void 0:p.children;for(const g of v){const b=g.tagName.toLowerCase();if(!Nv.has(b))continue;const w=CS({tag:b,props:{}},{innerHTML:g.innerHTML,...g.getAttributeNames().reduce((k,y)=>(k[y]=g.getAttribute(y),k),{})||{}});if(w.key=g.getAttribute("data-hid")||void 0,w._d=Hv(w)||SS(w),a.elMap.has(w._d)){let k=1,y=w._d;for(;a.elMap.has(y);)y=`${w._d}:${k++}`;a.elMap.set(y,g)}else a.elMap.set(w._d,g)}}}a.pendingSideEffects={...a.sideEffects},a.sideEffects={};function l(m,v,g){const b=`${m}:${v}`;a.sideEffects[b]=g,delete a.pendingSideEffects[b]}function c({id:m,$el:v,tag:g}){const b=g.tag.endsWith("Attrs");a.elMap.set(m,v),b||(g.textContent&&g.textContent!==v.textContent&&(v.textContent=g.textContent),g.innerHTML&&g.innerHTML!==v.innerHTML&&(v.innerHTML=g.innerHTML),l(m,"el",()=>{v==null||v.remove(),a.elMap.delete(m)}));for(const w in g.props){if(!Object.prototype.hasOwnProperty.call(g.props,w))continue;const k=g.props[w];if(w.startsWith("on")&&typeof k=="function"){const S=v==null?void 0:v.dataset;if(S&&S[`${w}fired`]){const E=w.slice(0,-5);k.call(v,new Event(E.substring(2)))}v.getAttribute(`data-${w}`)!==""&&((g.tag==="bodyAttrs"?n.defaultView:v).addEventListener(w.substring(2),k.bind(v)),v.setAttribute(`data-${w}`,""));continue}const y=`attr:${w}`;if(w==="class"){if(!k)continue;for(const S of k)b&&l(m,`${y}:${S}`,()=>v.classList.remove(S)),!v.classList.contains(S)&&v.classList.add(S)}else if(w==="style"){if(!k)continue;for(const[S,E]of k)l(m,`${y}:${S}`,()=>{v.style.removeProperty(S)}),v.style.setProperty(S,E)}else k!==!1&&k!==null&&(v.getAttribute(w)!==k&&v.setAttribute(w,k===!0?"":String(k)),b&&l(m,y,()=>v.removeAttribute(w)))}}const u=[],d={bodyClose:void 0,bodyOpen:void 0,head:void 0},h=await r;for(const m of h){const{tag:v,shouldRender:g,id:b}=m;if(g){if(v.tag==="title"){n.title=v.textContent,l("title","",()=>n.title=a.title);continue}m.$el=m.$el||a.elMap.get(b),m.$el?c(m):Nv.has(v.tag)&&u.push(m)}}for(const m of u){const v=m.tag.tagPosition||"head";m.$el=n.createElement(m.tag.tag),c(m),d[v]=d[v]||n.createDocumentFragment(),d[v].appendChild(m.$el)}for(const m of h)await e.hooks.callHook("dom:renderTag",m,n,l);d.head&&n.head.appendChild(d.head),d.bodyOpen&&n.body.insertBefore(d.bodyOpen,n.body.firstChild),d.bodyClose&&n.body.appendChild(d.bodyClose);for(const m in a.pendingSideEffects)a.pendingSideEffects[m]();e._dom=a,await e.hooks.callHook("dom:rendered",{renders:h}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function Tie(e={}){var s,i,o;const t=((s=e.domOptions)==null?void 0:s.render)||Bx;e.document=e.document||(typeof window<"u"?document:void 0);const n=((o=(i=e.document)==null?void 0:i.head.querySelector('script[id="unhead:payload"]'))==null?void 0:o.innerHTML)||!1;return uM({...e,plugins:[...e.plugins||[],{key:"client",hooks:{"entries:updated":t}}],init:[n?JSON.parse(n):!1,...e.init||[]]})}function Aie(e,t){let n=0;return()=>{const s=++n;t(()=>{n===s&&e()})}}function Pie(e={}){const t=Tie({domOptions:{render:Aie(()=>Bx(t),n=>setTimeout(n,0))},...e});return t.install=vM(t),t}function Rie(e){if(e==="none")return 3600*24*365;if(typeof e=="number")return e;switch(e[1]){case"days":return e[0]*60*60*24;case"hours":return e[0]*60*60;case"minutes":return e[0]*60;case"seconds":default:return e[0]}}function Iie(e){return{maxAge:(e==null?void 0:e.maxAge)!==void 0?Rie(e.maxAge):void 0}}function G_(e,t,n){const{maxAge:s}=Iie(n);let i=`${e}=${encodeURIComponent(t)}; path=/`;return s!==void 0&&(i+=`; max-age=${s}`),i}function Mie(){if(!Sv)throw new Error("Attempted to create client cookie manager on server");return{get:e=>{const t=`${e}=`,n=document.cookie.split(";");for(let s=0;s<n.length;s+=1){let i=n[s];for(;i.charAt(0)===" ";)i=i.substring(1);if(i.indexOf(t)===0)return decodeURIComponent(i.substring(t.length))}},set:(e,t,n)=>{document.cookie=G_(e,t,n)},delete:e=>{document.cookie=G_(e,"",{maxAge:0}
190)}}}async function $ie(){pt().register("CookieManager",()=>Mie()),yM(),ZU("__INITIAL_STATE__"in window?window.__INITIAL_STATE__:{});const{app:t,setupRouter:n}=xie({ssr:!1,spa:!1}),s=Pie();t.use(s),await n(),t.mount("#app")}$ie();export{Ve as $,zi as A,oA as B,r0 as C,Yn as D,rc as E,ye as F,St as G,dn as H,hu as I,RM as J,$a as K,We as L,nn as M,vn as N,qi as O,At as P,db as Q,Mr as R,Z as S,us as T,ot as U,Vi as V,ws as W,Wt as X,OC as Y,et as Z,lY as _,_ as a,Qn as a$,wM as a0,Sr as a1,Gs as a2,op as a3,Ln as a4,yp as a5,oD as a6,An as a7,Jn as a8,FC as a9,ni as aA,Am as aB,ic as aC,No as aD,d0 as aE,bD as aF,zb as aG,of as aH,ED as aI,LC as aJ,FD as aK,pu as aL,Dr as aM,Zi as aN,an as aO,Na as aP,Ot as aQ,Ei as aR,xn as aS,ft as aT,qF as aU,Pp as aV,DF as aW,Ap as aX,Tt as aY,qs as aZ,yF as a_,no as aa,Qe as ab,Ie as ac,Cn as ad,sf as ae,Re as af,HC as ag,hi as ah,FM as ai,Ye as aj,pd as ak,Tr as al,Fr as am,uv as an,Us as ao,eu as ap,be as aq,du as ar,cC as as,Bw as at,zs as au,un as av,sn as aw,Nr as ax,mL as ay,Te as az,T as b,Yr as b$,wF as b0,Oa as b1,vi as b2,J5 as b3,yn as b4,Qh as b5,Ct as b6,I2 as b7,bp as b8,jo as b9,Pa as bA,Lp as bB,jC as bC,bt as bD,bs as bE,Vs as bF,Y5 as bG,ce as bH,P8 as bI,WE as bJ,vo as bK,GE as bL,XS as bM,as as bN,IS as bO,Ro as bP,js as bQ,Ir as bR,q1 as bS,n3 as bT,Mn as bU,s6 as bV,ui as bW,As as bX,JG as bY,Jte as bZ,Kr as b_,Ne as ba,Oe as bb,Ha as bc,n0 as bd,to as be,vt as bf,t3 as bg,vp as bh,BP as bi,Yl as bj,Ut as bk,mc as bl,cn as bm,SC as bn,Ta as bo,CC as bp,Nu as bq,wr as br,Pt as bs,HK as bt,oi as bu,os as bv,ur as bw,lq as bx,_p as by,Hy as bz,L as c,mq as c$,wg as c0,zc as c1,SM as c2,_g as c3,Fn as c4,Jne as c5,jne as c6,Dd as c7,_M as c8,fi as c9,Xn as cA,Be as cB,pS as cC,h$ as cD,PS as cE,qn as cF,id as cG,qb as cH,R6 as cI,lp as cJ,Lo as cK,fh as cL,N$ as cM,Bie as cN,fq as cO,RL as cP,z0 as cQ,al as cR,mne as cS,Uie as cT,QC as cU,Df as cV,Qi as cW,fc as cX,Dl as cY,sc as cZ,YB as c_,Pn as ca,Go as cb,Wo as cc,Ba as cd,Xi as ce,KC as cf,zt as cg,ioe as ch,mg as ci,sE as cj,JE as ck,$e as cl,en as cm,gn as cn,HY as co,Le as cp,Dg as cq,Ra as cr,vD as cs,tn as ct,Io as cu,gs as cv,Tp as cw,fd as cx,k6 as cy,_P as cz,J as d,R0 as d$,gq as d0,vh as d1,vd as d2,YC as d3,C0 as d4,JC as d5,mi as d6,Cp as d7,g0 as d8,at as d9,UU as dA,Sb as dB,on as dC,lL as dD,Wb as dE,uq as dF,xO as dG,Rs as dH,_N as dI,hE as dJ,hC as dK,Jb as dL,H8 as dM,fC as dN,Qb as dO,dC as dP,ol as dQ,Ft as dR,Wg as dS,nc as dT,fx as dU,Op as dV,tc as dW,g6 as dX,CZ as dY,md as dZ,sB as d_,xr as da,Do as db,ut as dc,hH as dd,pH as de,mt as df,pp as dg,Mp as dh,Die as di,OH as dj,Zie as dk,cd as dl,Lr as dm,eo as dn,De as dp,Vb as dq,k0 as dr,o8 as ds,v8 as dt,Fie as du,rS as dv,yt as dw,Oie as dx,VK as dy,r8 as dz,A as e,hoe as e$,ec as e0,Gl as e1,GZ as e2,DZ as e3,roe as e4,vC as e5,Yg as e6,loe as e7,Aa as e8,ree as e9,MF as eA,TF as eB,Zt as eC,eE as eD,nC as eE,DC as eF,Ce as eG,G5 as eH,Kl as eI,wne as eJ,Dc as eK,jm as eL,q2 as eM,gg as eN,Ks as eO,_ne as eP,xne as eQ,foe as eR,Ene as eS,kne as eT,Sne as eU,Cne as eV,Tne as eW,Ane as eX,ci as eY,pt as eZ,doe as e_,uC as ea,ooe as eb,VZ as ec,v6 as ed,w6 as ee,so as ef,Fo as eg,ld as eh,dd as ei,aoe as ej,uoe as ek,coe as el,soe as em,toe as en,eoe as eo,DH as ep,noe as eq,zZ as er,Iu as es,Nie as et,A$ as eu,e0 as ev,gt as ew,BH as ex,Or as ey,iee as ez,f,Ps as f0,pL as f1,Gie as f2,vu as f3,ug as f4,Ul as f5,EH as f6,yH as f7,Kie as f8,kH as f9,cf as fa,Yie as fb,Dm as fc,CE as fd,Jie as fe,wE as ff,Qie as fg,qie as fh,xE as fi,Xie as fj,F0 as fk,_h as fl,g9 as fm,Ep as fn,YS as fo,H0 as fp,M8 as fq,ad as g,ac as h,$C as i,ct as j,Gg as k,qe as l,xe as m,l0 as n,je as o,O as p,Is as q,P as r,D as s,Y as t,ys as u,C as v,K as w,m7 as x,fn as y,q as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.