1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,301787,e=>{"use strict";let t=(0,e.i(697580).default)("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);e.s(["Bookmark",0,t],301787)},478946,837572,e=>{"use strict";var t=e.i(697580);let a=(0,t.default)("forward",[["path",{d:"m15 17 5-5-5-5",key:"nf172w"}],["path",{d:"M4 18v-2a4 4 0 0 1 4-4h12",key:"jmiej9"}]]);e.s(["Forward",0,a],478946);var r=e.i(843476),i=e.i(160444);let l=(0,t.default)("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);var s=e.i(948148),n=e.i(271645),o=e.i(320341),c=e.i(278147);let d=[{key:"max",dataRef:"article-share-menu-max",build:c.buildMaxShareUrl,Icon:function(){return(0,r.jsxs)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:[(0,r.jsx)("defs",{children:(0,r.jsxs)("linearGradient",{id:"obrazon-max-icon",x1:"4",y1:"20",x2:"20",y2:"4",gradientUnits:"userSpaceOnUse",children:[(0,r.jsx)("stop",{offset:"0%",stopColor:"#0B7BFF"}),(0,r.jsx)("stop",{offset:"55%",stopColor:"#7C3AED"}),(0,r.jsx)("stop",{offset:"100%",stopColor:"#C026D3"})]})}),(0,r.jsx)("path",{fill:"url(#obrazon-max-icon)",fillRule:"evenodd",clipRule:"evenodd",d:"M12 1.5a10.5 10.5 0 1 0 4.9 19.79c.62-.33.63-1.2.05-1.6l-.3-.2c-.4-.28-.9-.28-1.33-.06A7.5 7.5 0 1 1 19.5 12v1.13a1.6 1.6 0 0 1-3.2 0V12a4.3 4.3 0 1 0-1.3 3.07 4.6 4.6 0 0 0 8.1-1.94c.06-.37.09-.75.09-1.13A10.5 10.5 0 0 0 12 1.5Zm0 7.2a3.3 3.3 0 1 1 0 6.6 3.3 3.3 0 0 1 0-6.6Z"})]})}},{key:"vk",dataRef:"article-share-menu-vk",build:c.buildVkShareUrl,Icon:function(){return(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M5 2h14a3 3 0 0 1 3 3v14a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V5a3 3 0 0 1 3-3Zm7.36 14.13c-4.11 0-6.63-2.86-6.73-7.6h2.07c.07 3.48 1.65 4.96 2.87 5.26V8.53h1.97v2.98c1.18-.13 2.41-1.51 2.83-2.98h1.94c-.32 1.8-1.67 3.18-2.63 3.75 0.96 0.46 2.5 1.67 3.09 3.85h-2.14c-.46-1.46-1.58-2.59-3.09-2.75v2.75h-.18Z"})})}},{key:"telegram",dataRef:"article-share-menu-telegram",build:c.buildTelegramShareUrl,Icon:function(){return(0,r.jsx)("svg",{viewBox:"0 0 24 24","aria-hidden":"true",children:(0,r.jsx)("path",{fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24Zm5.56 8.16-1.86 8.78c-.14.62-.51.77-1.03.48l-2.85-2.1-1.37 1.32c-.15.15-.28.28-.58.28l.21-2.94 5.35-4.83c.23-.2-.05-.32-.36-.12l-6.61 4.16-2.85-.89c-.62-.2-.63-.62.13-.92l11.14-4.3c.52-.18.97.12.8.91Z"})})}}];e.s(["ShareMenuItems",0,function(e){let t=(0,s.useTranslations)("article.card.share"),a=void 0===e.path?(0,c.buildPublicationUrl)(window.location.origin,e.publication):`${window.location.origin}${e.path}`,u=(0,n.useCallback)(()=>{navigator.clipboard?.writeText(a)},[a]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.DropdownMenuItem,{"data-ref":"article-share-menu-copy-link",className:o.MENU_ITEM_CLASS,onSelect:u,children:[(0,r.jsx)(l,{}),t("copyLink")]}),d.map(({key:e,dataRef:l,build:s,Icon:n})=>(0,r.jsx)(i.DropdownMenuItem,{asChild:!0,"data-ref":l,className:o.MENU_ITEM_CLASS,children:(0,r.jsxs)("a",{href:s(a),target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(n,{}),t(e)]})},e))]})}],837572)},626089,e=>{"use strict";var t=e.i(843476),a=e.i(271645);e.i(467626);var r=e.i(870538),i=e.i(854869),l=e.i(677178),s=e.i(506724),n=e.i(165038),o=e.i(377723),c=e.i(278147),d=e.i(169431);e.i(465176);var u=e.i(312768),m=e.i(266027),h=e.i(215554),p=e.i(361935),x=e.i(83469);e.s(["FeedArticleCard",0,function({article:e,onArticleClick:f,publisherHref:g,onPublisherClick:b,onCommentsClick:v,optionsMenu:j,imagePriority:k,hideSubscribeButton:N,hideFollowToggle:y,forceExpanded:C=!1,hidePublisherAvatar:S=!1,headerVariant:w="full",hideActions:I=!1,hideOptionsMenu:M=!1,isDraft:E=!1}){var A;let{publisher:_,metrics:T,pubTime:D,sourceUrl:L,generatedBy:R}=e,P=e.myReactionId??null,F=e.isBookmarked??!1,U=e.preview??{title:"",snippet:""},[$,B]=(0,a.useState)(!1),z=C||$,H=(0,d.useTopicById)(e.topicId),G=(0,d.useSubtopicById)(e.topicId,e.subtopicId),V=(0,a.useMemo)(()=>!E&&e.content?{...e,content:{...e.content,preview:U}}:void 0,[e,U,E]),{data:W,isError:O,refetch:q}=(0,u.useArticleContent)(!E&&z?e.id:null,V?{initialData:V}:void 0),{data:Z,isError:K,refetch:X}=(A=E&&z?e.id:null,(0,m.useQuery)({queryKey:["draft-body",A??""],queryFn:async()=>{let e=await fetch(`/api/drafts/body?id=${encodeURIComponent(A)}`);
1if(!e.ok)throw Object.assign(Error(`Draft body request failed: ${e.status}`),{status:e.status});return e.json()},enabled:!!A})),Y=W?.content??null,Q=E?Z?.contentHtml??null:Y?.contentHtml??null,J=E?void 0!==Z:null!==Y,ee=E?K:O,et=E?X:q,{handleImageClick:ea}=(0,h.useArticleImageViewer)({content:z?Y:null,entityId:e.id,fallbackAlt:U.title,dataAttribute:"data-post-id"}),{handlePreviewImageClick:er}=function({blocks:e,fallbackAlt:t,entityId:r,enabled:i=!0,dataAttribute:l="data-post-id"}){let s=(0,p.usePhotoSwipeController)(),n=(0,a.useMemo)(()=>{if(!i)return[];let a=(e??[]).flatMap(e=>{if("image"===e.type&&e.imageData?.url)return[{src:e.imageData.url,width:e.imageData.width,height:e.imageData.height,alt:e.imageData.alt||t}];if("gallery"===e.type){let a=(e.galleryImages??(e.imageData?[e.imageData]:[])).filter(e=>e?.url),r=a.length>1||void 0;return a.map(e=>({src:e.url,width:e.width,height:e.height,alt:e.alt||t,galleryItem:r}))}return[]});return(0,x.stampMsrc)(a,x.PREVIEW_IMAGE_PRESET)},[e,t,i]),o=(0,a.useCallback)(e=>{if(!s.current||0===n.length)return;let t=(0,x.findImageIndex)(n,e);if(-1===t)return;let a=(0,x.prepareImagesForViewer)(n,r,l);s.current.openViewer(a,t)},[s,n,r,l]);return{previewImages:n,handlePreviewImageClick:o}}({blocks:U.blocks,fallbackAlt:U.title,entityId:e.id,enabled:!z}),ei=z?ea:er,el=U.game&&{preview:U.game,href:e.shortId>0?(0,c.publicationHref)({type:e.type,id:e.id,shortId:e.shortId,title:U.title,publisherSlug:_.slug,topicSlug:e.topicSlug}):void 0},es=(0,a.useMemo)(()=>({likesCount:T.likesCount,dislikesCount:T.dislikesCount,commentsCount:T.commentsCount}),[T.likesCount,T.dislikesCount,T.commentsCount]),en=(0,a.useMemo)(()=>z?J?Q?(0,t.jsx)(i.ArticleContent,{content:Q,onImageClick:ei}):null:ee?(0,t.jsx)(i.ArticleBodyError,{onRetry:()=>void et()}):(0,t.jsx)(i.ArticleBodySkeleton,{}):null,[z,Q,J,ee,et,ei]);return(0,t.jsx)(l.ArticleCard,{id:e.id,publisher:{name:_.name,logo:_.logo,isVerified:_.isVerified},title:U.title,snippet:U.snippet,blocks:U.blocks,collapsed:U.collapsed,timestamp:(0,t.jsx)(n.PubTime,{pubTime:D}),sourceLine:(0,t.jsx)(o.SourceLine,{variant:"card",sourceUrl:L,generatedBy:R}),viewsCount:T.viewsCount,headerVariant:w,hidePublisherAvatar:S,topic:H?{name:H.label,slug:e.topicSlug??H.value,subtopic:G?{name:G.label,value:G.value}:null}:null,isExpanded:z,expandedContent:en,imagePriority:k,game:el,actions:I?void 0:(0,t.jsx)(r.ArticleActions,{articleId:e.id,publicationType:e.type,shortId:e.shortId,title:U.title,publisherSlug:_.slug,topicSlug:e.topicSlug,metrics:es,myReactionId:P,isBookmarked:F,onCommentsClick:v}),optionsMenu:M?void 0:j??(0,t.jsx)(s.ArticleReaderMenu,{publicationId:e.id,publicationType:e.type,shortId:e.shortId,title:U.title,publisherSlug:_.slug,topicSlug:e.topicSlug,publisherId:_.id,isBookmarked:F,hideSubscribeButton:N,hideFollowToggle:y,quizGameId:U.game?.kind==="quiz"?U.game.gameId:void 0}),onExpand:()=>{z||B(!0)},onTitleClick:f,publisherHref:g,onPublisherClick:b,onImageClick:e=>{e&&ei(e)}})}],626089)},870538,e=>{"use strict";var t=e.i(843476);e.i(465176);var a=e.i(312768),r=e.i(153142),i=e.i(235893),l=e.i(864618),s=e.i(301787),n=e.i(123280),o=e.i(138157),c=e.i(935533);function d({direction:e,filled:a}){let r="up"===e?["M26 12h-6V6a3.003 3.003 0 0 0-3-3h-2.133a2.01 2.01 0 0 0-1.98 1.717l-.845 5.917L8.465 16H2v14h21a7.008 7.008 0 0 0 7-7v-7a4.005 4.005 0 0 0-4-4ZM8 28H4V18h4Zm20-5a5.006 5.006 0 0 1-5 5H10V17.303l3.958-5.937l.91-6.366H17a1 1 0 0 1 1 1v8h8a2.002 2.002 0 0 1 2 2Z","M2 16h5v14H2zm21 14H9V15.197l3.042-4.563l.845-5.917A2.01 2.01 0 0 1 14.867 3H15a3.003 3.003 0 0 1 3 3v6h8a4.005 4.005 0 0 1 4 4v7a7.008 7.008 0 0 1-7 7z"]:["M30 16V9a7.008 7.008 0 0 0-7-7H2v14h6.465l3.577 5.366l.846 5.917A2.01 2.01 0 0 0 14.868 29H17a3.003 3.003 0 0 0 3-3v-6h6a4.005 4.005 0 0 0 4-4ZM8 14H4V4h4Zm20 2a2.002 2.002 0 0 1-2 2h-8v8a1 1 0 0 1-1 1h-2.133l-.91-6.366L10 14.697V4h13a5.006 5.006 0 0 1 5 5Z","M2 2h5v14H2zm21 0H9v14.803l3.042 4.563l.845 5.917A2.01 2.01 0 0 0 14.867 29H15a3.003 3.003 0 0 0 3-3v-6h8a4.005 4.005 0 0 0 4-4V9a7.008 7.008 0 0 0-7-7z"];
1return(0,t.jsx)("svg",{viewBox:"0 0 32 32",fill:"currentColor",stroke:a?"none":"currentColor",strokeWidth:.67,strokeLinejoin:"round","aria-hidden":"true",className:(0,l.cn)("size-5.5!","down"===e&&"-scale-x-100"),children:(0,t.jsx)("path",{d:a?r[1]:r[0]})})}e.s(["ArticleActions",0,function({articleId:e,publicationType:u,shortId:m,title:h,publisherSlug:p,topicSlug:x,metrics:f,myReactionId:g,isBookmarked:b=!1,onCommentsClick:v}){let j=(0,r.useAuthGate)(),k=(0,a.useLikeArticle)(),N=(0,a.useDislikeArticle)(),y=(0,a.useBookmarkArticle)(),C="w-9 px-0";return(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(i.Button,{"data-ref":"article-action-like",variant:"ghost",size:"sm",className:(0,l.cn)(C,"hover:text-orange-500","like"===g?"text-orange-500":"text-muted-foreground"),onClick:()=>{j({kind:"article-reaction",articleId:e,reaction:"like"})&&k.mutate(e)},children:(0,t.jsx)(d,{direction:"up",filled:"like"===g})}),(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:(0,c.formatCompactCount)(f.likesCount)})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1",children:[(0,t.jsx)(i.Button,{"data-ref":"article-action-comments",variant:"ghost",size:"sm",className:(0,l.cn)(C,"text-muted-foreground hover:text-orange-500"),onClick:v,children:(0,t.jsx)(n.MessageCircle,{className:"size-5.5!"})}),(0,t.jsx)("span",{className:"text-muted-foreground text-sm",children:(0,c.formatCompactCount)(f.commentsCount)})]}),(0,t.jsx)(o.ArticleShareMenu,{publicationId:e,publicationType:u,shortId:m,title:h,publisherSlug:p,topicSlug:x,className:(0,l.cn)(C,"text-muted-foreground hover:text-orange-500")}),(0,t.jsx)(i.Button,{"data-ref":"article-action-bookmark",variant:"ghost",size:"sm",className:(0,l.cn)(C,"hover:text-orange-500",b?"text-orange-500":"text-muted-foreground"),onClick:()=>{j({kind:"article-bookmark",articleId:e})&&y.mutate(e)},children:(0,t.jsx)(s.Bookmark,{className:(0,l.cn)("size-5.5!",b&&"fill-current text-orange-500")})})]}),(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(i.Button,{"data-ref":"article-action-dislike",variant:"ghost",size:"sm",className:(0,l.cn)(C,"text-muted-foreground hover:text-muted-foreground/80"),onClick:()=>{j({kind:"article-reaction",articleId:e,reaction:"dislike"})&&N.mutate(e)},children:(0,t.jsx)(d,{direction:"down",filled:"dislike"===g})})})]})}])},677178,876085,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(235893),i=e.i(864618),l=e.i(713079),s=e.i(719024),n=e.i(522016),o=e.i(948148),c=e.i(367602),d=e.i(611808),u=e.i(71031),m=e.i(605713);function h({preview:e}){let{season:a}=e,r=(0,m.lookupGame)(e.kind)?.label??"ÐгÑа";return(0,t.jsxs)("span",{"data-ref":"publication-game-badge",role:"img","aria-label":a?`${r}, Ð´ÐµÐ½Ñ ${a.dayIndex} из ${a.totalDays}`:r,className:"ml-2 inline-flex items-center gap-1 align-middle",children:[a&&(0,t.jsx)("span",{"aria-hidden":"true",children:`${a.dayIndex}/${a.totalDays}`}),(0,t.jsx)(u.Gamepad2,{"aria-hidden":"true",className:"size-5 shrink-0 text-blue-600"})]})}var p=e.i(662537),x=e.i(630881);function f({sponsor:e,children:a}){let r=function(e){let t=e?.tint;if(!t||!x.GAME_TINT_PATTERN.test(t.from)||!x.GAME_TINT_PATTERN.test(t.to)||void 0!==t.accent&&!x.GAME_TINT_PATTERN.test(t.accent))return null;var a=`${t.from}|${t.to}|${t.accent??""}`;let r=0x811c9dc5;for(let e=0;e<a.length;e++)r^=a.charCodeAt(e),r=Math.imul(r,0x1000193);return(r>>>0).toString(36)}(e),i=e?.tint;return(0,t.jsxs)("div",{className:"game-slot","data-skin":r??void 0,children:[r&&i&&(0,t.jsx)("style",{href:`game-skin-${r}`,precedence:"game",children:`.game-slot[data-skin="${r}"]{--game-tint-from:${i.from};--game-tint-to:${i.to}${i.accent?`;--game-accent:${i.accent}`:""}}`}),a]})}function g({preview:e,href:a}){let r=(0,m.lookupGame)(e.kind);if(!r)return p.captureMessage(`GameFace: no registered game kind \xab${e.kind}\xbb`,{level:"warning"}),null;let{Face:i}=r;return(0,t.jsx)(f,{sponsor:e.sponsor,children:(0,t.jsx)(i,{preview:e,href:a})})}let b="game";function v({preview:e,href:a,id:r=b}){let i=(0,m.lookupGame)(e.kind);if(!i)return p.captureMessage(`GameIsland: no registered game kind \xab${e.kind}\xbb`,{level:"warning"}),null;let{Island:l}=i;return(0,t.jsx)("section",{id:r,className:"mt-8",children:(0,t.jsx)(f,{sponsor:e.sponsor,children:(0,t.jsx)(l,{preview:e,href:a})})})}function j(e,t){return t?`/${e}?sub=${encodeURIComponent(t)}`:`/${e}`}
1e.s(["resolveSubtopic",0,function(e,t){return e&&t?e.subtopics?.find(e=>e.value===t)??null:null},"subtopicHref",0,j,"visibleSubtopics",0,function(e,t){return(e?.subtopics??[]).filter(e=>(e.count??0)>=3||e.value===t)}],876085);var k=e.i(935533),N=e.i(305635),y=e.i(868371),C=e.i(363215),S=e.i(990731);function w(e,t){var a,r;if(!t.text)return;let i=e.at(-1);if(i&&(a=i.marks,r=t.marks,!a&&!r||a&&r&&a.length===r.length&&a.every((e,t)=>e===r[t]))&&i.href===t.href){i.text+=t.text;return}e.push(t)}e.i(825239);var I=e.i(910995),M=e.i(170445),E=e.i(83469),A=e.i(308961),_=e.i(502352);function T({src:e,provider:r,poster:i}){let[l,s]=(0,a.useState)(!1),[n,o]=(0,a.useState)(!1),c=(0,_.videoEmbedUrl)(e,r);return c?(0,t.jsxs)("div",{"data-ref":"preview-block-video",className:"group relative w-full overflow-hidden rounded-lg",children:[i?(0,t.jsx)(M.BlurImage,{src:(0,I.resolveImageUrl)(i,E.PREVIEW_IMAGE_PRESET,A.FILES_URL),alt:"",className:"w-full"}):(0,t.jsx)("span",{className:"bg-muted block w-full",style:{aspectRatio:"16/9"}}),l&&(0,t.jsx)("iframe",{"data-ref":"preview-block-video-iframe",src:`${c}?autoplay=1`,title:"",onLoad:()=>o(!0),className:`absolute inset-0 h-full w-full transition-opacity duration-500 ${n?"opacity-100":"opacity-0"}`,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0}),!l&&(0,t.jsx)("button",{type:"button","data-ref":"preview-block-video-play","aria-label":"СмоÑÑеÑÑ Ð²Ð¸Ð´ÐµÐ¾",onClick:e=>{e.preventDefault(),e.stopPropagation(),s(!0)},className:"absolute inset-0 flex w-full cursor-pointer items-center justify-center",children:(0,t.jsxs)("svg",{viewBox:"0 0 68 48",className:"h-12 w-17 drop-shadow-lg",role:"presentation",children:[(0,t.jsx)("path",{className:"fill-[#212121]/80 transition-colors duration-150 group-hover:fill-[#f00]",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"}),(0,t.jsx)("path",{className:"fill-white",d:"M 45,24 27,14 27,34"})]})})]}):null}function D({source:e}){let a=[e.subsiteName,e.date].filter(Boolean).join(" ");return(0,t.jsxs)("span",{className:"mb-3 flex items-center gap-2",children:[e.authorAvatar&&(0,t.jsxs)("span",{className:"relative inline-block shrink-0",style:{width:40,height:40},children:[(0,t.jsx)("img",{src:e.authorAvatar,alt:"",style:{width:40,height:40,borderRadius:"50%",objectFit:"cover",display:"block"}}),e.subsiteAvatar&&(0,t.jsx)("img",{src:e.subsiteAvatar,alt:"",style:{width:18,height:18,borderRadius:"50%",objectFit:"cover",position:"absolute",right:-2,bottom:-2,boxShadow:"0 0 0 2px var(--color-card, #fff)"}})]}),(0,t.jsxs)("span",{className:"min-w-0 flex-1 leading-tight",children:[(0,t.jsx)("span",{className:"text-foreground block truncate text-sm font-semibold",children:e.authorName}),a&&(0,t.jsx)("span",{className:"text-muted-foreground block truncate text-sm",children:a})]})]})}let L=new Set(["image","gallery","video"]);function R({blocks:e,collapsed:r,truncate:i,imagePriority:l,onImageClick:s,between:n}){var o;let c,d=i?(o=r?.render??[],c=[],e.forEach((e,t)=>{let a=o[t]??"full";if("hidden"!==a){var r,i,l,s;if("full"===a)return void c.push(e);if("trimChars"in a){let t;return void c.push((r=e,i=a.trimChars,t={...r},r.formattedContent&&(t.formattedContent=function(e,t){if(e.reduce((e,t)=>e+t.text.length,0)<=t)return e;let a=Math.max(0,t-1),r=[],i=0;for(let t of e){if(i>=a)break;let e=a-i;if(t.text.length<=e){w(r,{text:t.text,marks:t.marks,...t.href?{href:t.href}:{}}),i+=t.text.length;continue}w(r,{text:t.text.slice(0,e),marks:t.marks,...t.href?{href:t.href}:{}}),i=a;break}let l=r.at(-1);return l&&l.marks?.includes("code")?r.push({text:"â¦"}):l&&(l.text+="â¦"),r}(r.formattedContent,i)),r.content&&(t.content=function(e,t=350){return e.length<=t?e:`${e.slice(0,Math.max(0,t-1))}â¦`}(r.content,i)),t.content!==r.content&&delete t.codeHtml,t))}if("trimItems"in a){let t;return void c.push((l=e,s=a.trimItems,t={...l},l.formattedItems&&(t.formattedItems=l.formattedItems.slice(0,s)),l.
1items&&(t.items=l.items.slice(0,s)),t))}if("clampLines"in a)return void c.push({...e,clampLines:a.clampLines});c.push(e)}}),c):e,u=d.map((e,a)=>(0,t.jsx)(U,{block:e,imagePriority:l,onImageClick:s},a));if(n){let e=0;for(let t of d){if(!L.has(t.type))break;e++}u.splice(e,0,(0,t.jsx)(a.Fragment,{children:n},"between"))}return(0,t.jsx)("div",{className:"tiptap ProseMirror [&>p]:text-foreground! px-0! py-0! [&>*]:mt-0! [&>*]:mb-3! [&>p:empty]:mb-0!",children:u})}function P(e){return e.map((e,r)=>{let i=e.text;return e.marks?.includes("code")&&(i=(0,t.jsx)("code",{children:i})),e.marks?.includes("underline")&&(i=(0,t.jsx)("u",{children:i})),e.marks?.includes("strike")&&(i=(0,t.jsx)("s",{children:i})),e.marks?.includes("bold")&&(i=(0,t.jsx)("strong",{children:i})),e.marks?.includes("italic")&&(i=(0,t.jsx)("em",{children:i})),e.marks?.includes("link")&&e.href&&(i=(0,t.jsx)("a",{className:"link cursor-pointer transition-colors hover:underline",href:e.href,target:"_blank",rel:"noopener noreferrer",onClick:e=>e.stopPropagation(),children:i})),(0,t.jsx)(a.Fragment,{children:i},r)})}function F(e){if(!e)return[];let a=[],r=0,i=0;for(let l of e.matchAll(/(\*\*[^*]+\*\*|_[^_]+_|~~[^~]+~~|`[^`]+`|<u>.*?<\/u>)/g)){let s=l.index??0,n=l[0];s>r&&a.push(e.slice(r,s)),n.startsWith("**")&&n.endsWith("**")?a.push((0,t.jsx)("strong",{children:n.slice(2,-2)},`md-${i++}`)):n.startsWith("_")&&n.endsWith("_")?a.push((0,t.jsx)("em",{children:n.slice(1,-1)},`md-${i++}`)):n.startsWith("~~")&&n.endsWith("~~")?a.push((0,t.jsx)("s",{children:n.slice(2,-2)},`md-${i++}`)):n.startsWith("`")&&n.endsWith("`")?a.push((0,t.jsx)("code",{children:n.slice(1,-1)},`md-${i++}`)):n.startsWith("<u>")&&n.endsWith("</u>")?a.push((0,t.jsx)("u",{children:n.slice(3,-4)},`md-${i++}`)):a.push(n),r=s+n.length}return r<e.length&&a.push(e.slice(r)),a}function U({block:e,imagePriority:a,onImageClick:r}){let l=e.formattedContent;switch(e.type){case"paragraph":return(0,t.jsx)("p",{className:"text-foreground whitespace-pre-line",children:l?P(l):F(e.content)});case"heading":{let a=`h${e.headingLevel??2}`;return(0,t.jsx)(a,{className:(0,i.cn)("text-foreground text-xl leading-[28px] font-medium whitespace-pre-line"),children:l?P(l):F(e.content)})}case"list":{let a="ordered"===e.listType?"ol":"ul",r=(0,i.cn)("ordered"===e.listType?"list-decimal":"list-disc","text-foreground list-inside space-y-1 leading-relaxed");return(0,t.jsx)(a,{className:r,children:e.formattedItems?e.formattedItems.map((e,a)=>(0,t.jsx)("li",{className:"whitespace-pre-line",children:P(e)},a)):e.items?.map((e,a)=>(0,t.jsx)("li",{className:"whitespace-pre-line",children:F(e)},a))})}case"blockquote":return(0,t.jsxs)("figure",{"data-type":"blockquoteFigure",className:(0,i.cn)("border-primary/60 border-l-4 pl-4"),children:[(0,t.jsx)("blockquote",{className:"text-foreground leading-relaxed whitespace-pre-line [&>div]:my-3 [&>div]:leading-relaxed [&>div:first-child]:mt-0",children:l?P(l):F(e.content)}),e.caption&&(0,t.jsxs)("figcaption",{className:"text-muted-foreground mt-2 text-sm not-italic",children:["â ",e.formattedCaption?P(e.formattedCaption):F(e.caption)]})]});case"code":{let a=(0,i.cn)(e.language&&`language-${e.language}`,e.codeHtml&&"hljs");return(0,t.jsxs)("div",{className:(0,i.cn)("code-block code-block--bare",e.wrap&&"code-block--wrap",e.clampLines&&"code-block--clamped"),"data-language":e.language||void 0,style:e.clampLines?{"--code-clamp-lines":String(e.clampLines)}:void 0,children:[(0,t.jsx)(y.CodeBlockCopyButton,{code:e.content??""}),(0,t.jsx)("pre",{children:e.codeHtml?(0,t.jsx)("code",{className:a||void 0,dangerouslySetInnerHTML:{__html:e.codeHtml}}):(0,t.jsx)("code",{className:a||void 0,children:e.content})})]})}case"image":{if(!e.imageData)return null;let{width:l,height:s}=e.imageData,n=l&&s?{width:l,height:s}:void 0,o=(0,I.resolveImageUrl)(e.imageData.url,E.PREVIEW_IMAGE_PRESET,A.FILES_URL);return(0,t.jsx)(M.BlurImage,{"data-ref":"preview-block-img",src:o,srcSet:(0,S.resolveEditorImageSrcSet)(e.imageData.url,E.PREVIEW_IMAGE_PRESET,A.FILES_URL),alt:e.imageData.alt||"",mainColor:e.imageData.mainColor,width:n?.width??16,height:n?.height??9,contain:!n,imgStyle:n?void 0:{objectPosition:"left"},style:n?{maxWidth:(0,N.articleImageBoxWidth)(n.width,n.height)}:void 0,hugWidth:n?void 0:N.articleImageBoxWidth,loading:!1===a?"lazy":"eager",fetchPriority:!0===a?"high":void 0,className:(0,i.cn)("bg-muted w-full",N.MEDIA_BOX_CHROME_CLASS,N.SINGLE_IMAGE_CAP_CLASS),imgClassName:"cursor-zoom-in",onClick:e=>{e.stopPropagation(),r?.(o)}})}case"gallery":{let a=(e.galleryImages??(e.imageData?[e.imageData]:[])).filter(e=>e?.url);if(0===a.length)return null;let i=(0,S.articlePhotoPreset)(a.length),l=a.map(e=>({id:e.id,src:(0,I.resolveImageUrl)(e.url,i,A.FILES_URL),srcSet:(0,S.resolveEditorImageSrcSet)(e.url,i,A.FILES_URL),caption:e.alt??"",isLoading:!1,naturalWi
1dth:e.width??void 0,naturalHeight:e.height??void 0,align:0===e.positionY?"top":100===e.positionY?"bottom":void 0}));return(0,t.jsx)("div",{"data-ref":"preview-block-gallery",children:(0,t.jsx)(C.GridGallery,{images:l,onImageClick:(e,t)=>{t?.stopPropagation();let l=a[e];l&&r?.((0,I.resolveImageUrl)(l.url,i,A.FILES_URL))}})})}case"video":{let a=e.video;if(!a?.src)return null;return(0,t.jsx)(T,{src:a.src,provider:a.provider,poster:a.poster})}case"embed":{let a=e.embed;if(!a||!a.title&&!a.description)return null;let r=function(e){if(!e)return"";try{return new URL(e).hostname.replace(/^www\./,"")}catch{return""}}(a.url),l=a.source?.authorName?(0,t.jsxs)("span",{className:(0,i.cn)("article-embed block rounded-lg border border-border bg-card px-4 py-3"),children:[(0,t.jsx)(D,{source:a.source}),a.title&&(0,t.jsx)("span",{className:"text-foreground block text-base font-semibold leading-snug",children:a.title}),a.description&&(0,t.jsx)("span",{className:"text-foreground/70 mt-1.5 block text-sm leading-relaxed whitespace-pre-line",children:a.description}),a.imageSrc&&(0,t.jsx)("img",{src:a.imageSrc,alt:"",className:"border-border mt-3 rounded-lg border",style:{display:"block",width:"100%",height:"auto"}})]}):(0,t.jsxs)("span",{className:(0,i.cn)("article-embed flex items-center gap-3 rounded-lg border border-border bg-muted/40 px-4 py-3"),children:[a.imageSrc&&(0,t.jsx)("img",{src:a.imageSrc,alt:"",style:{width:48,height:48,flexShrink:0,borderRadius:6,objectFit:"cover",display:"block"}}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[r&&(0,t.jsx)("span",{className:"text-muted-foreground block text-sm leading-snug",children:r}),a.title&&(0,t.jsx)("span",{className:"text-foreground line-clamp-2 block text-base font-medium leading-snug",children:a.title}),!r&&a.description&&(0,t.jsx)("span",{className:"text-muted-foreground line-clamp-3 mt-1 block text-sm leading-snug",children:a.description})]})]});return a.url?(0,t.jsx)("a",{href:a.url,className:"block no-underline transition-opacity hover:opacity-90",children:l}):l}case"persona":{let a=e.persona;if(!a?.name)return null;return(0,t.jsxs)("span",{className:"persona block",children:[a.avatar&&(0,t.jsx)("img",{src:(0,I.resolveImageUrl)(a.avatar,S.ARTICLE_IMAGE_PRESETS.personaAvatar,A.FILES_URL),srcSet:(0,S.resolveEditorImageSrcSet)(a.avatar,S.ARTICLE_IMAGE_PRESETS.personaAvatar,A.FILES_URL),alt:"",style:{width:150,height:150,borderRadius:"50%",objectFit:"cover",display:"block"}}),(0,t.jsx)("span",{className:"text-foreground mt-3 block text-lg font-bold leading-snug",children:a.name}),a.role&&(0,t.jsx)("span",{className:"text-muted-foreground mt-1 block text-sm leading-snug",children:a.role})]})}case"divider":return(0,t.jsx)("div",{className:"block-horizontalRule","aria-hidden":"true",children:(0,t.jsx)("hr",{})});default:return null}}function $({dataRef:e,href:a,onClick:r,className:i,label:l,children:s}){return a?(0,t.jsx)(n.default,{"data-ref":e,href:a,className:i,"aria-label":l,onClick:e=>e.stopPropagation(),children:s}):(0,t.jsx)("button",{type:"button","data-ref":e,className:i,"aria-label":l,onClick:r,children:s})}let B=(0,a.memo)(function({id:e,publisher:a,title:u,snippet:m,blocks:p,collapsed:x,timestamp:f,sourceLine:N,topic:y,isExpanded:C=!1,isLoading:S,expandedContent:w,actions:I,optionsMenu:M,headerVariant:E="full",hidePublisherAvatar:A=!1,viewsCount:_,game:T,imagePriority:D,onExpand:L,onTitleClick:P,publisherHref:F,onPublisherClick:U,onImageClick:B}){let z=(0,o.useTranslations)("article.card"),H=!x||!!x.clamp||x.render.some(e=>"full"!==e),G=void 0!==p&&p.length>0,V=void 0!==T&&!G&&!m,W=`game-${e}`,O=T?.href&&!V?(0,t.jsx)(g,{preview:T.preview,href:C?`#${W}`:`${T.href}#${b}`}):null,q=e=>(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(r.Button,{"data-ref":"article-card-expand",variant:"link",className:"text-blue-600 hover:text-blue-500 h-auto gap-1 p-0 text-16 font-normal [&_svg]:size-4.5",onClick:L,disabled:e,children:e?z("loading"):(0,t.jsxs)(t.Fragment,{children:[z("readMore"),(0,t.jsx)(l.ChevronDown,{"aria-hidden":"true",className:"translate-y-0.5"})]})})}),Z=y?(0,t.jsx)(n.default,{"data-ref":"article-card-topic",href:j(y.slug,y.subtopic?.value),className:"hover:text-foreground truncate transition-colors",onClick:e=>
1e.stopPropagation(),children:y.subtopic?`${y.name} \xb7 ${y.subtopic.name}`:y.name}):null;return(0,t.jsxs)("div",{"data-ref":`article-card-${e}`,className:(0,i.cn)(d.FEED_MAIN_MAX_W,"pb-6"),"data-post-id":e,children:["compact"===E&&(0,t.jsxs)("div",{"data-ref":"article-card-header",className:"article-card-header flex items-center justify-between",children:[(0,t.jsxs)("div",{"data-ref":"article-card-meta",className:"text-muted-foreground flex min-w-0 items-center gap-1.5 text-sm",children:[(0,t.jsx)(s.Eye,{className:"size-4"}),(0,t.jsx)("span",{"data-ref":"article-card-views",children:(0,k.formatCompactCount)(_)}),(0,t.jsx)("span",{"aria-hidden":"true",children:"·"}),Z&&(0,t.jsxs)(t.Fragment,{children:[Z,(0,t.jsx)("span",{"aria-hidden":"true",children:"·"})]}),(0,t.jsx)("span",{"data-ref":"article-card-timestamp",children:f}),N]}),M]}),"full"===E&&a&&(0,t.jsx)("div",{"data-ref":"article-card-header",className:"article-card-header pb-3",children:(0,t.jsxs)("div",{className:"flex items-center space-x-3",children:[!A&&(0,t.jsx)($,{dataRef:"article-card-publisher-avatar",href:F,onClick:U,className:"shrink-0 cursor-pointer",label:a.name,children:(0,t.jsx)(c.ChannelAvatar,{name:a.name,image:a.logo})}),(0,t.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,t.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,t.jsx)($,{dataRef:"article-card-publisher",href:F,onClick:U,className:"text-foreground cursor-pointer text-sm font-semibold transition-colors hover:text-orange-600",children:a.name}),a.isVerified&&(0,t.jsx)("span",{"data-ref":"article-card-publisher-verified",className:"text-blue-500",children:"â"})]}),(0,t.jsxs)("p",{className:"text-muted-foreground flex min-w-0 items-center gap-1.5 text-sm",children:[Z,(0,t.jsx)("span",{"data-ref":"article-card-timestamp",className:"shrink-0",children:f}),N]})]}),M]})}),(0,t.jsxs)("div",{"data-ref":"article-card-body",children:[u&&(0,t.jsxs)("h2",{"data-ref":"article-card-title",className:(0,i.cn)("text-foreground text-xl font-bold mb-3",P&&"cursor-pointer"),onClick:e=>{P&&(e.stopPropagation(),P())},children:[u,T&&(0,t.jsx)(h,{preview:T.preview})]}),(0,t.jsxs)("div",{className:"text-foreground mb-6 text-18 leading-relaxed",children:[G?(0,t.jsx)(R,{blocks:p,collapsed:x,truncate:!C,imagePriority:D,onImageClick:B,between:O}):(0,t.jsxs)(t.Fragment,{children:[O,C&&w||V?null:(0,t.jsx)("p",{"data-ref":"article-card-snippet",children:m})]}),C?w??(S?q(!0):null):null,T?.href&&(V||C)&&(0,t.jsx)(v,{preview:T.preview,href:T.href,id:W}),!C&&L&&H?q(!1):null]})]}),I&&(0,t.jsx)("div",{"data-ref":"article-card-actions",children:I})]})});e.s(["ArticleCard",0,B],677178)},506724,119651,492754,932290,e=>{"use strict";var t=e.i(843476),a=e.i(960038),r=e.i(31544);e.i(465176);var i=e.i(312768),l=e.i(424604),s=e.i(942379),n=e.i(153142),o=e.i(21345),c=e.i(235893),d=e.i(160444),u=e.i(864618),m=e.i(301787),h=e.i(924173),p=e.i(697580);let x=(0,p.default)("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);e.s(["CircleAlert",0,x],119651);var f=e.i(478946),g=e.i(180956);e.s(["PencilIcon",()=>g.default],492754);var g=g,b=e.i(7559);let v=(0,p.default)("user-minus",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);e.s(["UserMinus",0,v],932290);var j=e.i(522016),k=e.i(948148),N=e.i(271645),y=e.i(375723),C=e.i(320341),S=e.i(278147),w=e.i(837572);let I=new Set,M=new Set;e.s(["ArticleReaderMenu",0,function({publicationId:e,publicationType:p="article",isBookmarked:E=!1,publisherId:A,align:_="end",hideSubscribeButton:T=!1,hideFollowToggle:D=!1,redirectAfterDeleteUrl:L,shortId:R,title:P,publisherSlug:F,topicSlug:U,quizGameId:$}){var B;let z=(0,k.useTranslations)("article.card.menu"),H=(0,k.useTranslations)("article.card.share"),G=(0,k.useTranslations)(),V=(0,i.useBookmarkArticle)(),{user:W}=(0,o.useSession)(),O=(0,n.useAuthGate)(),{openReport:q}=(0,r.useReportDialog)(),[Z,K]=(0,N.useState)("root"),X=(0,N.useCallback)(()=>K("root"),[]),Y=(0,S.isShareablePublication)(p),Q=(0,a.usePublicationAuthorActions)({publicationId:e,publicationType:p,publisherId:A,redirectAfterDeleteUrl:L,quizGameId:$}),J=!!A,ee=J&&Q.canEdit,et=J&&Q.canDelete,ea=!(J&&Q.isOwnChannel)&&!Q.isPlatformAdmin,er=ea&&J&&!D,{data:ei,isLoading:el}=(0,s.useFollowingStatus)({publisherId:A??"",enabled:!!W&&er}),es=ei?.isFollowing??!1,en=(0,l.useChannelSubscription)(),eo=(B=A??"",(0,N.useSyncExternalStore)((0,N.useCallback)(e=>(M.add(e),()=>{M.delete(e)}),[]),()=>I.has(B),()=>!1)),ec=er&&!T&&!el&&(!es||eo),ed=(0,N.useCallback)(e=>{e.preventDefault(),K("share")},[]),eu=(0,N.useCallback)(e=>{e.preventDefault(),X()},[X]),em=(0,N.useCallback)(t=>{O({kind:"article-bookmark",articleId:e})&&(t.preventDefault(),V.mutate(e))},[O,V,e]),eh=(0,N.useCallback)(()=>{!A||O({kind:"channel-subscribe",publisherId:A})&&(es||function(e){if(!I.has(e))for(let t of(I.add(e),M))t()}(A),en.mutate({publisherId:A,action:es?"unsubscribe":"subscribe"}))},[O,A,en,es]),ep=(0,N.useCallback)(e=>{e.stopPropagation(),eh()},[eh]),ex=(0,N.useCallback)(()=>{O(null)&&q({targetType:"publication",targetId:e})},[O,q,e]),ef=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.DropdownMenuGroup,{className:"relative flex items-center justify-center px-10 pt-1 pb-2",children:[(0,t.jsx)(d.DropdownMenuItem,{"data-ref":"article-reader-menu-share-back","aria-label":H("back"),
1className:(0,u.cn)(C.MENU_ITEM_CLASS,"absolute left-0 p-1.5"),onSelect:eu,children:(0,t.jsx)(h.ChevronLeft,{})}),(0,t.jsx)(d.DropdownMenuLabel,{className:"p-0 text-lg font-semibold",children:H("trigger")})]}),(0,t.jsx)(w.ShareMenuItems,{publication:{type:p,id:e,shortId:R,title:P,publisherSlug:F,topicSlug:U}})]}),eg=(0,t.jsxs)(t.Fragment,{children:[er&&es&&!eo&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(d.DropdownMenuItem,{"data-ref":"article-reader-menu-unsubscribe",className:C.MENU_ITEM_CLASS,onSelect:eh,children:[(0,t.jsx)(v,{className:"text-muted-foreground"}),G("publisher.actions.unsubscribe")]}),(0,t.jsx)(d.DropdownMenuSeparator,{className:C.MENU_SEPARATOR_CLASS})]}),Y&&(0,t.jsxs)(d.DropdownMenuItem,{"data-ref":"article-reader-menu-share",className:C.MENU_ITEM_CLASS,onSelect:ed,children:[(0,t.jsx)(f.Forward,{className:"text-muted-foreground"}),z("share")]}),(0,t.jsxs)(d.DropdownMenuItem,{"data-ref":"article-reader-menu-save",className:C.MENU_ITEM_CLASS,onSelect:em,children:[(0,t.jsx)(m.Bookmark,{className:E?"fill-current text-orange-500":"text-muted-foreground"}),z(E?"saved":"save")]}),ea&&(0,t.jsxs)(d.DropdownMenuItem,{"data-ref":"article-reader-menu-report",className:C.MENU_ITEM_CLASS,onSelect:ex,children:[(0,t.jsx)(x,{className:"text-muted-foreground"}),z("report")]}),(ee||et)&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.DropdownMenuSeparator,{className:C.MENU_SEPARATOR_CLASS}),ee&&(0,t.jsx)(d.DropdownMenuItem,{asChild:!0,"data-ref":"article-reader-menu-edit",className:C.MENU_ITEM_CLASS,children:(0,t.jsxs)(j.default,{href:Q.editUrl,children:[(0,t.jsx)(g.default,{className:"text-muted-foreground"}),G("common.actions.edit")]})}),et&&(0,t.jsxs)(d.DropdownMenuItem,{"data-ref":"article-reader-menu-delete",className:(0,u.cn)(C.MENU_ITEM_CLASS,"text-destructive focus:text-destructive"),onSelect:()=>Q.setDeleteDialogOpen(!0),children:[(0,t.jsx)(b.Trash2Icon,{}),G("publication.delete.menuItem")]})]})]});return(0,t.jsxs)("div",{"data-ref":"article-reader-actions",className:"flex shrink-0 items-center gap-1",children:[ec&&(0,t.jsx)(c.Button,{"data-ref":"article-reader-menu-unsubscribe",size:"sm",variant:"secondary",className:"hover:bg-zinc-200 dark:hover:bg-zinc-700",onClick:ep,children:G(es?"publisher.actions.unsubscribe":"publisher.actions.subscribe")}),(0,t.jsxs)(d.DropdownMenu,{modal:!1,onOpenChange:e=>{e||X()},children:[(0,t.jsx)(d.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(y.MenuDotTrigger,{"data-ref":"article-reader-menu-trigger","aria-label":z("trigger"),onClick:e=>e.stopPropagation()})}),(0,t.jsx)(d.DropdownMenuContent,{"data-ref":"article-reader-menu-content",align:_,sideOffset:C.MENU_SIDE_OFFSET,className:C.MENU_PANEL_CLASS,onClick:e=>e.stopPropagation(),onEscapeKeyDown:e=>{"share"===Z&&(e.preventDefault(),X())},children:"share"===Z?ef:eg})]}),et&&(0,t.jsx)(a.PublicationDeleteDialog,{actions:Q})]})}],506724)},138157,e=>{"use strict";var t=e.i(843476),a=e.i(235893),r=e.i(160444),i=e.i(478946),l=e.i(948148),s=e.i(320341),n=e.i(278147),o=e.i(837572);e.s(["ArticleShareMenu",0,function({publicationId:e,publicationType:c="article",shortId:d,title:u,publisherSlug:m,topicSlug:h,className:p}){let x=(0,l.useTranslations)("article.card.share");return(0,n.isShareablePublication)(c)?(0,t.jsxs)(r.DropdownMenu,{modal:!1,children:[(0,t.jsx)(r.DropdownMenuTrigger,{asChild:!0,children:(0,t.jsx)(a.Button,{"data-ref":"article-action-share",variant:"ghost",size:"sm","aria-label":x("trigger"),className:p,onClick:e=>e.stopPropagation(),children:(0,t.jsx)(i.Forward,{className:"size-5.5!"})})}),(0,t.jsx)(r.DropdownMenuContent,{"data-ref":"article-share-menu-content",align:"start",sideOffset:s.MENU_SIDE_OFFSET,className:s.MENU_PANEL_CLASS,onClick:e=>e.stopPropagation(),children:(0,t.jsx)(o.ShareMenuItems,{publication:{type:c,id:e,shortId:d,title:u,publisherSlug:m,topicSlug:h}})})]}):null}])},935533,e=>{"use strict";e.s(["formatCompactCount",0,function(e){return e?e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:String(e):"0"}])},467626,e=>{"use strict";
1e.i(870538),e.i(677178),e.i(854869),e.i(506724),e.i(138157),e.i(165038),e.i(377723),e.s([])},165038,e=>{"use strict";var t=e.i(843476),a=e.i(369108),r=e.i(271645);e.s(["PubTime",0,function({pubTime:e}){let[i,l]=(0,r.useState)(()=>(0,a.formatPubTimeAbsolute)(e));return(0,r.useEffect)(()=>{l((0,a.formatPubTimeRelative)(e))},[e]),(0,t.jsx)("time",{dateTime:(0,a.pubTimeIso)(e),children:i})}])},377723,e=>{"use strict";var t=e.i(843476),a=e.i(235893),r=e.i(948148);let i=new Set(["t.me","telegram.me"]);e.s(["SourceLine",0,function({sourceUrl:e,generatedBy:l,variant:s}){let n=(0,r.useTranslations)(),o=function(e){if(!e)return null;try{let t=new URL(e);return"https:"===t.protocol||"http:"===t.protocol?t:null}catch{return null}}(e),c=null!==o&&i.has(o.hostname),d=c&&o?function(e){let[t,a]=e.pathname.split("/").filter(Boolean);return t&&"c"!==t?"s"===t?a??null:t:null}(o):null,u="agent"===l;if(!o&&!u)return null;let m=o&&(0,t.jsx)("a",{"data-ref":"source-line-link",href:o.href,target:"_blank",rel:"noopener noreferrer nofollow",className:"source-line-link underline-offset-4 hover:underline",children:c?n("article.source.originalTelegram"):n("article.source.basedOn",{host:o.hostname})});return"card"===s?(0,t.jsxs)(t.Fragment,{children:[m&&(0,t.jsx)("span",{"aria-hidden":"true",children:"·"}),m,u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":"true",children:"·"}),(0,t.jsx)("span",{"data-ref":"source-line-ai",children:n("article.source.aiPrepared")})]})]}):(0,t.jsxs)("div",{"data-ref":"source-line",className:"source-line text-muted-foreground flex flex-wrap items-center gap-x-3 gap-y-1 text-sm",children:[m,u&&(0,t.jsx)("span",{"data-ref":"source-line-ai",children:n("article.source.aiPrepared")}),d&&(0,t.jsx)(a.Button,{asChild:!0,variant:"outline",size:"sm",children:(0,t.jsx)("a",{"data-ref":"source-line-subscribe",href:`https://t.me/${d}`,target:"_blank",rel:"noopener noreferrer nofollow",children:n("article.source.subscribeTelegram")})})]})}])}]);
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.