PageSourceSearch

https://iv.kommersant.ru/_nuxt/C1-WyH6U.js

js kommersant.ru collected 2026-10-09 21:45:57 UTC 22,241 bytes, 1 lines download raw bytes

1import{bz as be,r as z,am as K,L as Y,bA as fe,bB as me,S as ye,d as L,q as v,t as R,b as f,aU as ve,v as he,w as T,a as S,e as O,an as G,G as X,j as I,c as p,n as pe,o as Q,M as oe,s as we,ah as ke,F as E,D as U,a3 as Ce,f as x,g as J,B as W,z as F,u as j,A as ge,y as _e,bh as $e,ag as Se,R as Oe}from"./fsxPX0i-.js";import{N as q,K as xe}from"./D1deWf5d.js";import{A as Ae,e as Re,af as Te,B as Ie}from"./D0vYnmJG.js";function re(e){return typeof e=="string"?`'${e}'`:new Ee().serialize(e)}const Ee=(function(){class e{#e=new Map;compare(t,n){const a=typeof t,o=typeof n;return a==="string"&&o==="string"?t.localeCompare(n):a==="number"&&o==="number"?t-n:String.prototype.localeCompare.call(this.serialize(t,!0),this.serialize(n,!0))}serialize(t,n){if(t===null)return"null";switch(typeof t){case"string":return n?t:`'${t}'`;case"bigint":return`${t}n`;case"object":return this.$object(t);case"function":return this.$function(t)}return String(t)}serializeObject(t){const n=Object.prototype.toString.call(t);if(n!=="[object Object]")return this.serializeBuiltInType(n.length<10?`unknown:${n}`:n.slice(8,-1),t);const a=t.constructor,o=a===Object||a===void 0?"":a.name;if(o!==""&&globalThis[o]===a)return this.serializeBuiltInType(o,t);if(typeof t.toJSON=="function"){const r=t.toJSON();return o+(r!==null&&typeof r=="object"?this.$object(r):`(${this.serialize(r)})`)}return this.serializeObjectEntries(o,Object.entries(t))}serializeBuiltInType(t,n){const a=this["$"+t];if(a)return a.call(this,n);if(typeof n?.entries=="function")return this.serializeObjectEntries(t,n.entries());throw new Error(`Cannot serialize ${t}`)}serializeObjectEntries(t,n){const a=Array.from(n).sort((r,c)=>this.compare(r[0],c[0]));let o=`${t}{`;for(let r=0;r<a.length;r++){const[c,d]=a[r];o+=`${this.serialize(c,!0)}:${this.serialize(d)}`,r<a.length-1&&(o+=",")}return o+"}"}$object(t){let n=this.#e.get(t);return n===void 0&&(this.#e.set(t,`#${this.#e.size}`),n=this.serializeObject(t),this.#e.set(t,n)),n}$function(t){const n=Function.prototype.toString.call(t);return n.slice(-15)==="[native code] }"?`${t.name||""}()[native]`:`${t.name}(${t.length})${n.replace(/\s*\n\s*/g,"")}`}$Array(t){let n="[";for(let a=0;a<t.length;a++)n+=this.serialize(t[a]),a<t.length-1&&(n+=",");return n+"]"}$Date(t){try{return`Date(${t.toISOString()})`}catch{return"Date(null)"}}$ArrayBuffer(t){return`ArrayBuffer[${new Uint8Array(t).join(",")}]`}$Set(t){return`Set${this.$Array(Array.from(t).sort((n,a)=>this.compare(n,a)))}`}$Map(t){return this.serializeObjectEntries("Map",t.entries())}}for(const i of["Error","RegExp","URL"])e.prototype["$"+i]=function(t){return`${i}(${t})`};for(const i of["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array"])e.prototype["$"+i]=function(t){return`${i}[${t.join(",")}]`};for(const i of["BigInt64Array","BigUint64Array"])e.prototype["$"+i]=function(t){return`${i}[${t.join("n,")}${t.length>0?"n":""}]`};return e})();function ze(e,i){return e===i||re(e)===re(i)}function Le(e,i){if(typeof e!="string")throw new TypeError("argument str must be a string");const t={},n=i||{},a=n.decode||Be;let o=0;for(;o<e.length;){const r=e.indexOf("=",o);if(r===-1)break;let c=e.indexOf(";",o);if(c===-1)c=e.length;else if(c<r){o=e.lastIndexOf(";",r-1)+1;continue}const d=e.slice(o,r).trim();if(n?.filter&&!n?.filter(d)){o=c+1;continue}if(t[d]===void 0){let h=e.slice(r+1,c).trim();h.codePointAt(0)===34&&(h=h.slice(1,-1)),t[d]=Ne(h,a)}o=c+1}return t}function Be(e){return e.includes("%")?decodeURIComponent(e):e}function Ne(e,i){try{return i(e)}catch{return e}}const M=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function se(e,i,t){const n=t||{},a=n.encode||encodeURIComponent;if(typeof a!="function")throw new TypeError("option encode is invalid");if(!M.test(e))throw new TypeError("argument name is invalid");const o=a(i);if(o&&!M.test(o))throw new TypeError("argument val is invalid");let r=e+"="+o;if(n.maxAge!==void 0&&n.maxAge!==null){const c=n.maxAge-0;if(Number.isNaN(c)||!Number.isFinite(c))throw new TypeError("option maxAge is invali
1d");r+="; Max-Age="+Math.floor(c)}if(n.domain){if(!M.test(n.domain))throw new TypeError("option domain is invalid");r+="; Domain="+n.domain}if(n.path){if(!M.test(n.path))throw new TypeError("option path is invalid");r+="; Path="+n.path}if(n.expires){if(!He(n.expires)||Number.isNaN(n.expires.valueOf()))throw new TypeError("option expires is invalid");r+="; Expires="+n.expires.toUTCString()}if(n.httpOnly&&(r+="; HttpOnly"),n.secure&&(r+="; Secure"),n.priority)switch(typeof n.priority=="string"?n.priority.toLowerCase():n.priority){case"low":{r+="; Priority=Low";break}case"medium":{r+="; Priority=Medium";break}case"high":{r+="; Priority=High";break}default:throw new TypeError("option priority is invalid")}if(n.sameSite)switch(typeof n.sameSite=="string"?n.sameSite.toLowerCase():n.sameSite){case!0:{r+="; SameSite=Strict";break}case"lax":{r+="; SameSite=Lax";break}case"strict":{r+="; SameSite=Strict";break}case"none":{r+="; SameSite=None";break}default:throw new TypeError("option sameSite is invalid")}return n.partitioned&&(r+="; Partitioned"),r}function He(e){return Object.prototype.toString.call(e)==="[object Date]"||e instanceof Date}function $(e){if(typeof e!="object")return e;var i,t,n=Object.prototype.toString.call(e);if(n==="[object Object]"){if(e.constructor!==Object&&typeof e.constructor=="function"){t=new e.constructor;for(i in e)e.hasOwnProperty(i)&&t[i]!==e[i]&&(t[i]=$(e[i]))}else{t={};for(i in e)i==="__proto__"?Object.defineProperty(t,i,{value:$(e[i]),configurable:!0,enumerable:!0,writable:!0}):t[i]=$(e[i])}return t}if(n==="[object Array]"){for(i=e.length,t=Array(i);i--;)t[i]=$(e[i]);return t}return n==="[object Set]"?(t=new Set,e.forEach(function(a){t.add($(a))}),t):n==="[object Map]"?(t=new Map,e.forEach(function(a,o){t.set($(o),$(a))}),t):n==="[object Date]"?new Date(+e):n==="[object RegExp]"?(t=new RegExp(e.source,e.flags),t.lastIndex=e.lastIndex,t):n==="[object DataView]"?new e.constructor($(e.buffer)):n==="[object ArrayBuffer]"?e.slice(0):n.slice(-6)==="Array]"?new e.constructor(e):e}const je={path:"/",watch:!0,decode:e=>be(decodeURIComponent(e)),encode:e=>encodeURIComponent(typeof e=="string"?e:JSON.stringify(e))},D=globalThis.cookieStore;function Pe(e,i){const t={...je,...i};t.filter??=h=>h===e;const n=le(t)||{};let a;t.maxAge!==void 0?a=t.maxAge*1e3:t.expires&&(a=t.expires.getTime()-Date.now());const o=a!==void 0&&a<=0,r=o||n[e]===void 0||n[e]===null,c=$(o?void 0:n[e]??t.default?.()),d=a&&!o?Fe(c,a,t.watch&&t.watch!=="shallow"):z(c);{let h=null;try{!D&&typeof BroadcastChannel<"u"&&(h=new BroadcastChannel(`nuxt:cookies:${e}`))}catch{}const w=(u=!1)=>{!u&&(t.readonly||ze(d.value,n[e]))||(De(e,d.value,t),n[e]=$(d.value),h?.postMessage({value:t.encode(d.value)}))},g=u=>{const y=u.refresh?le(t)?.[e]:t.decode(u.value);l=!0,d.value=y,n[e]=$(y),ye(()=>{l=!1})};let l=!1;const s=!!fe();if(s&&K(()=>{l=!0,w(),h?.close()}),D){const u=y=>{const b=y.changed.find(C=>C.name===e),k=y.deleted.find(C=>C.name===e);b&&g({value:b.value}),k&&g({value:null})};D.addEventListener("change",u),s&&K(()=>D.removeEventListener("change",u))}else h&&(h.onmessage=({data:u})=>g(u));t.watch&&Y(d,()=>{l||w()},{deep:t.watch!=="shallow"}),r&&w(r)}return d}function le(e={}){return Le(document.cookie,e)}function Me(e,i,t={}){return i==null?se(e,i,{...t,maxAge:-1}):se(e,i,t)}function De(e,i,t={}){document.cookie=Me(e,i,t)}const ce=2147483647;function Fe(e,i,t){let n,a,o=0;const r=t?z(e):{value:e};return fe()&&K(()=>{a?.(),clearTimeout(n)}),me((c,d)=>{t&&(a=Y(r,d));function h(){o=0,clearTimeout(n);const w=i-o,g=w<ce?w:ce;n=setTimeout(()=>{if(o+=g,o<i)return h();r.value=void 0,d()},g)}return{get(){return c(),r.value},set(w){h(),r.value=w,d()}}})}const Ue={class:"link-btn__label"},qe=L({__name:"LinkButton",props:{type:{default:"secondary"},icon:{},iconLeft:{type:Boolean},iconRight:{type:Boolean},disabled:{type:Boolean},as:{},to:{},external:{type:Boolean},target:{}},setup(e){const i=e,t=v(()=>i.as==="link"?q:"button"),n=v(()=>t.value!==q?{}:{to:i.to,external:!0,target:i.target}),a=v(()=>!!i.icon&&(i.iconLeft||i.iconRight));return(o,r)=>(f(),R(ve(t.value),he({class:["link-btn",[`--${e.type}`,{"--has-icon":a.value,"--icon-left":e.iconLeft,"--icon-right":e.iconRight}]],tabindex:"0",disabled:e.disabled||void 0,"aria-disabled":e.disabled,type:e.as!=="link"?"button":void 0},n.value),{default:T(()=>[e.icon&&e.iconLeft?(f(),R(G,{key:0,class:"link-btn__icon",name:e.icon,"aria-hidden":"true"},null,8,["name"])):S("",!0),O("span",Ue,[X(o.$slots,"default",{},void 0,!0)]),e.icon&&e.iconRight?(f(),R(G,{key:1,class:"link-btn__icon",name:e.icon,"aria-hidden":"true"},null,8,["name"])):S("",!0)]),_:3},16,["class","disabled","aria-disabled","type"]))}}),Ct=I(qe,[["__scopeId","data-v-8f15036c"]]),ue="[data-interscroller-active]",de
1="kommersant:interscroller-layout",Ve={key:1,class:"k-tag__label"},Ze=L({__name:"KTag",props:{color:{default:"gray"},size:{default:"s"},icon:{default:void 0},caption:{type:Boolean},noFill:{type:Boolean},active:{type:Boolean}},setup(e){const i=e;return(t,n)=>(f(),p("span",{class:pe(["k-tag",[`--${i.color}`,`--${i.size}`,{"--caption":i.caption,"--has-icon":!!i.icon,"--icon-only":!!i.icon&&!t.$slots.default,"--no-fill":i.noFill,"--active":i.active}]])},[i.icon?(f(),R(G,{key:0,name:i.icon,class:"k-tag__icon"},null,8,["name"])):S("",!0),t.$slots.default?(f(),p("span",Ve,[X(t.$slots,"default",{},void 0,!0)])):S("",!0)],2))}}),Ke=I(Ze,[["__scopeId","data-v-e30f374c"]]);function Ge(e,i){const t=Pe(e),n=z(0);return Q(()=>{const a=t.value,o=typeof a=="number"&&Number.isInteger(a)&&a>=0?a:0;n.value=o;const r=oe(i);r?.length&&(t.value=(o+1)%r.length)}),v(()=>{const a=oe(i);return a?.length?a[n.value%a.length]:void 0})}const Je={ref:"host",class:"sticky-sidebar-obstructions","aria-hidden":"true"},H=30,Ye=L({__name:"StickySidebarObstructions",setup(e){const i=we("host"),t=z([]);let n=null;function a(l){return l.classList.contains("page-sidebar")?[...l.querySelectorAll(":scope > .sidebar-zone")].map(s=>({zone:s,minHeight:Number.parseFloat(s.dataset.sidebarZoneMinHeight??"")||0,content:s.querySelector(":scope > .sidebar-zone__content")})).filter(s=>s.content!==null):l.classList.contains("managed-aside")?[...l.querySelectorAll(":scope > .managed-aside__zone")].map(s=>({zone:s,minHeight:Number.parseFloat(s.dataset.sidebarZoneMinHeight??"")||0,content:s.querySelector(":scope > .managed-aside__zone-content")})).filter(s=>s.content!==null):[]}function o(l){for(const s of l.querySelectorAll("[data-interscroller-cut]")){const u=s.dataset.interscrollerOriginalHeight??"";u?s.style.height=u:s.style.removeProperty("height");const y=s.dataset.interscrollerOriginalOverflow??"";y?s.style.overflow=y:s.style.removeProperty("overflow");const b=s.dataset.interscrollerOriginalClipPath??"";b?s.style.clipPath=b:s.style.removeProperty("clip-path"),delete s.dataset.interscrollerCut,delete s.dataset.interscrollerOriginalHeight,delete s.dataset.interscrollerOriginalOverflow,delete s.dataset.interscrollerOriginalClipPath}for(const s of l.querySelectorAll("[data-interscroller-cut-zone]")){const u=s.dataset.interscrollerOriginalHeight??"",y=s.dataset.interscrollerAppliedHeight,b=y!==void 0&&s.style.height!==y?s.style.height:u;b?s.style.height=b:s.style.removeProperty("height");const k=s.dataset.interscrollerOriginalDisplay??"";k?s.style.display=k:s.style.removeProperty("display");const C=s.dataset.interscrollerOriginalMarginTop??"";C?s.style.marginTop=C:s.style.removeProperty("margin-top"),delete s.dataset.interscrollerCutZone,delete s.dataset.interscrollerOriginalHeight,delete s.dataset.interscrollerAppliedHeight,delete s.dataset.interscrollerOriginalDisplay,delete s.dataset.interscrollerOriginalMarginTop}}function r(l){"interscrollerCutZone"in l.dataset||(l.dataset.interscrollerOriginalHeight=l.style.height,l.dataset.interscrollerOriginalDisplay=l.style.display,l.dataset.interscrollerOriginalMarginTop=l.style.marginTop,l.dataset.interscrollerCutZone="")}function c(l){"interscrollerCut"in l.dataset||(l.dataset.interscrollerOriginalHeight=l.style.height,l.dataset.interscrollerOriginalOverflow=l.style.overflow,l.dataset.interscrollerOriginalClipPath=l.style.clipPath,l.dataset.interscrollerCut="")}function d(l,s){o(l);const u=a(l),y=l.getBoundingClientRect(),b=s.map(m=>({element:m,rect:m.getBoundingClientRect()})).find(({rect:m})=>m.top<y.bottom&&m.bottom>y.top);if(!u.length||!b)return;const k=b.rect,C={top:k.top-H,bottom:k.bottom+H},B=u.map(m=>({...m,zoneRect:m.zone.getBoundingClientRect(),contentRect:m.content.getBoundingClientRect()}));let V=-1;for(const[m,P]of B.entries())C.top-P.zoneRect.top>=P.minHeight&&(V=m);const _=B[V];let ee=0;if(_){r(_.zone),c(_.content);const m=Math.max(0,Math.floor(C.top-_.zoneRect.top));ee=m-_.zoneRect.height,_.zone.style.height=`${m}px`,_.zone.dataset.interscrollerAppliedHeight=_.zone.style.height,_.content.style.height=`${Math.max(0,Math.floor(C.top-_.contentRect.top))}px`,_.content.style.overflow="clip",_.content.style.clipPath="inset(0)"}const N=B[V+1];if(N){r(N.zone);const m=Number.parseFloat(getComputedStyle(N.zone).marginTop)||0,P=Number.parseFloat(getComputedStyle(N.zone).paddingTop)||0,te=Math.min(H,P),ne=C.bottom-C.top-te;N.zone.style.marginTop=`${m+ne}px`;const ie=Math.max(0,Math.ceil(ee+ne)),A=B[B.length-1];if(ie>0&&A){r(A.zone);const ae=Math.max(0,Math.floor(A.zoneRect.height-ie));A.zone.style.height=`${ae}px`,A.zone.dataset.interscrollerAppliedHeight=A.zone.style.height,ae<A.minHeight&&(A.zone.style.display="none")}}}function h(){const l=i.value,s=l?.parentElement;if(!l||!s){t.value=[];return}const u=s.getBoundingClientRect(),y=[...document.querySelectorAll(ue)];d(s,y),t.value=y.map(b=>{const k=b.getBoundingClientRect();return{top:Math.floor(k.top-u.top-H)-1,height:Math.ceil(k.height)+H*2+2}}).filter(({top:b,height:k})=>k>0&&b<u.height&&b+k>0)}function w(){const l=i.value?.parentElement;if(n?.disconnect(),!(!l||typeof ResizeObserver>"u")){n??=new ResizeObserver(h),n.observe(l);for(const{zone:s}of a(l))n.observe(s);for(const s of document.querySelectorAll(ue))n.observe(s)}}function g(){ye(()=>requestAnimationFrame(()=>{w(),h()}))}return Q(()=>{window.addEventListener(de,g),window.addEventListener("resize",g),g()}),ke(()=>{const l=i.value?.parentElement;l&&o(l),n?.disconnect(),window.removeEventListener(de,g),window.removeEventListener("resize",g)}),(l,s)=>(f(),p("div",Je,[(f(!0),p(E,null,U(t.value,({top:u,height:y},b)=>(f(),p("div",{key:`${u}-${y}-${b}`,class:"sticky-sidebar-obstructions__item",style:Ce({top:`${u}px`,height:`${y}px`})},null,4))),128))],512))}}),_t=I(Ye,[["__scopeId","data-v-443db318"]]),Xe={class:"tag-group"},Qe={key:0,class:"tag-group__dot","aria-hidden":"true"},We=L({__name:"TagGroup",props:{items:{},noFill:{type:Boolean}},setup(e){return(i,t)=>(f(),p("div",Xe,[(f(!0),p(E,null,U(e.items,(n,a)=>(f(),p(E,{key:n},[a>0?(f(),p("span",Qe)):S("",!0),x(Ke,{"no-fill":e.noFill,class:"tag-group__tag",color:"gray",size:"s"},{default:T(()=>[J(W(n),1)]),_:2},1032,["no-fill"])],64))),128))]))}}),et=I(We,[["__scopeId","data-v-20c36c3d"]]),tt={class:"recent-news-item"},nt={class:"title"},it=L({__name:"RecentNewsItem",props:{publishedAt:{},category:{},title:{},link:{},analyticsLabel:{},analyticsHubId:{},analyticsCardType:{}},setup(e){const i=e,t=v(()=>{const a=[];if(i.category&&a.push(i.category),i.publishedAt){const o=Ae(i.publishedAt);o&&a.push(o)}return a}),n=v(()=>{const a={target_url:i.link.url};if(!i.analyticsCardType&&i.analyticsHubId===void 0)return a;const o=Re(i.link.url);return{...a,...o===void 0?{}:{target_doc_id:o},...i.analyticsHubId===void 0?{}:{hub_id:i.analyticsHubId},...i.analyticsCardType?{card_type:i.analyticsCardType}:{}}});return(a,o)=>{const r=ge("analytics");return F((f(),p("article",tt,[O("h3",nt,[x(j(q),he({class:"k-link-stretched"},j(Te)(e.link),{tabindex:"0",external:""}),{default:T(()=>
1[O("span",null,W(e.title),1)]),_:1},16)]),x(et,{"no-fill":"",items:t.value},null,8,["items"])])),[[r,{show:e.analyticsLabel?{name:"recent_news_item",action:"show",label:e.analyticsLabel,payload:n.value}:void 0,click:e.analyticsLabel?{name:"recent_news_item",action:"click",label:e.analyticsLabel,payload:n.value}:void 0}]])}}}),Z=I(it,[["__scopeId","data-v-50b24bc9"]]),at={class:"list"},ot={key:0},rt={key:1,class:"divider",role:"separator","aria-hidden":"true"},st={key:2,class:"divider",role:"separator","aria-hidden":"true"},lt={key:0,class:"divider",role:"separator","aria-hidden":"true"},ct=L({__name:"RecentNewsList",props:{news:{},promo:{},bannerCode:{},analyticsContext:{},analyticsHubId:{}},setup(e){const i=e,t=v(()=>i.news.slice(0,6)),n=v(()=>i.news.slice(6)),a=Ge("km-recent-news-promo-index",()=>i.promo),o=v(()=>a.value??null),r=z(!1),c=z(!1);Y(()=>i.bannerCode,()=>{r.value=!1,c.value=!1});const d=v(()=>!!(i.bannerCode&&r.value&&!c.value)),h=v(()=>n.value.length>0&&!!(o.value||d.value));function w(l){if(i.analyticsContext)return i.analyticsContext==="docpage"?`docpage:${l}`:i.analyticsContext==="hub"?`hub:${l}`:String(l)}const g=v(()=>o.value&&i.analyticsContext==="hub"?8:7);return(l,s)=>(f(),p("ul",at,[(f(!0),p(E,null,U(t.value,(u,y)=>(f(),p(E,{key:u.link?.url||y},[O("li",null,[x(Z,{"published-at":u.publishedAt,category:u.category??void 0,title:u.title,link:u.link,"analytics-label":w(y+1),"analytics-hub-id":e.analyticsHubId,"analytics-card-type":e.analyticsContext==="hub"?"editorial":void 0},null,8,["published-at","category","title","link","analytics-label","analytics-hub-id","analytics-card-type"])]),s[2]||(s[2]=O("li",{class:"divider",role:"separator","aria-hidden":"true"},null,-1))],64))),128)),o.value?(f(),p("li",ot,[x(Z,{title:o.value.title,link:o.value.link,category:o.value.category??void 0,"analytics-label":e.analyticsContext==="hub"?w(7):void 0,"analytics-hub-id":e.analyticsHubId,"analytics-card-type":e.analyticsContext==="hub"?"commercial":void 0},null,8,["title","link","category","analytics-label","analytics-hub-id","analytics-card-type"])])):S("",!0),d.value&&o.value?(f(),p("li",rt)):S("",!0),O("li",{class:pe(["recent-news-slot",{"recent-news-slot--loaded":d.value}])},[x(j(_e),null,{default:T(()=>[e.bannerCode&&!c.value?(f(),R(Ie,{key:0,immediate:"",code:e.bannerCode,width:"300px",height:"600px","disable-creative-scaling":"",onLoaded:s[0]||(s[0]=u=>r.value=!0),onEmpty:s[1]||(s[1]=u=>c.value=!0)},null,8,["code"])):S("",!0)]),_:1})],2),h.value?(f(),p("li",st)):S("",!0),(f(!0),p(E,null,U(n.value,(u,y)=>(f(),p(E,{key:`rest-${u.link?.url||y}`},[O("li",null,[x(Z,{"published-at":u.publishedAt,category:u.category??void 0,title:u.title,link:u.link,"analytics-label":w(y+g.value),"analytics-hub-id":e.analyticsHubId,"analytics-card-type":e.analyticsContext==="hub"?"editorial":void 0},null,8,["published-at","category","title","link","analytics-label","analytics-hub-id","analytics-card-type"])]),y<n.value.length-1?(f(),p("li",lt)):S("",!0)],64))),128))]))}}),ut=I(ct,[["__scopeId","data-v-128cb687"]]),dt={};function ft(e,i){return f(),R($e,{name:"fade-scale"},{default:T(()=>[X(e.$slots,"default",{},void 0,!0)]),_:3})}const yt=I(dt,[["render",ft],["__scopeId","data-v-6549f6ca"]]);function ht(e){const i=new Intl.PluralRules("ru-RU"),t=Object.fromEntries(Object.entries(e).map(([n,a])=>[n,(o=>r=>{const c=i.select(r);return(o[c]??o.many).replaceAll("{count}",r.toString())})(a)]));return()=>({t})}const pt=ht({searchDocuments:{one:"Найден {count} документ",few:"Найдено {count} документа",many:"Найдено {count} документов"},plusNewItem:{one:"+{count} Новая",few:"+{count} Новых",many:"+{count} Новых"}}),gt={class:"recent-news"},bt=L({__name:"RecentNews",props:{pendingNewsCount:{},isLoading:{type:Boolean},bannerCode:{},analyticsContext:{},analyticsHubId:{},news:{},promo:{}},emits:["refresh"],setup(e,{emit:i}){const t=e,n=i,{t:a}=pt(),o=v(()=>t.pendingNewsCount>0),r=v(()=>{if(t.analyticsContext)return{name:"recent_news",action:"show",...t.analyticsContext==="docpage"?{label:"docpage"}:{},...t.analyticsContext==="hub"?{label:"hub",payload:{hub_id:t.analyticsHubId}}:{}}
1}),c=v(()=>{if(t.analyticsContext)return{name:"recent_news",action:"click",label:t.analyticsContext==="hub"?"hub:all":"all",...t.analyticsContext==="hub"?{payload:{hub_id:t.analyticsHubId}}:{}}}),d=v(()=>t.analyticsContext&&t.analyticsContext!=="hub"?{name:"recent_news",action:"click",label:"refresh_new_items"}:void 0);function h(){n("refresh")}return(w,g)=>{const l=ge("analytics");return F((f(),p("section",gt,[g[1]||(g[1]=O("div",{class:"recent-news__heading"},[O("h2",{class:"recent-news__title"},"Лента")],-1)),x(yt,null,{default:T(()=>[o.value?F((f(),R(xe,{key:0,class:"recent-news__refresh-btn",variant:"primary",size:"s",disabled:e.isLoading,onClick:h},{default:T(()=>[J(W(j(a).plusNewItem(e.pendingNewsCount)),1)]),_:1},8,["disabled"])),[[l,{click:d.value}]]):S("",!0)]),_:1}),x(ut,{news:e.news,promo:e.promo,"banner-code":e.bannerCode,"analytics-context":e.analyticsContext,"analytics-hub-id":e.analyticsHubId},null,8,["news","promo","banner-code","analytics-context","analytics-hub-id"]),F((f(),R(j(q),{class:"recent-news__all-btn",to:"/lenta",external:"",tabindex:"0"},{default:T(()=>[...g[0]||(g[0]=[J(" Вся лента ",-1)])]),_:1})),[[l,{click:c.value}]])])),[[l,{show:r.value}]])}}}),$t=I(bt,[["__scopeId","data-v-9c67da80"]]);function St(e){const i=z(e.value.map(()=>0)),t=[];function n(){for(const a of t)a.disconnect();t.splice(0)}return Q(()=>{Se(()=>{n();const a=[];for(const[o,r]of e.value.entries()){if(a[o]=r?r.getBoundingClientRect().height:0,!r||typeof ResizeObserver>"u")continue;const c=new ResizeObserver(([d])=>{i.value[o]=d.contentRect.height});c.observe(r),t.push(c)}i.value=a})}),Oe(n),i}function Ot(e,i){if(e)return i.flatMap(({id:t,height:n="600px",isStickyEligible:a})=>{const o=e[t];return o?[{code:o,height:n,isStickyEligible:a??mt(n)===300}]:[]})}function xt(e,i,t=26,n=0){const a=[];let o=i;for(const r of e){const c=a.length===0?n:t,d=r.heightPx+c;d<=o&&(a.push(r),o-=d)}return a}function mt(e,i=600){const t=Number.parseInt(e,10);return Number.isFinite(t)?t:i}export{de as I,Ke as K,Ct as L,$t as R,_t as S,et as T,St as a,Ot as b,Pe as c,pt as d,xt as g,mt as p,re as s,Ge as u};

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.