HomeGet-To-KnowCaptainsparklez’s Girlfriend (GF): Is He Dating Kara Corvus? Reddit Update!
Get-To-Know
ByAftab Alam AnsariAugust 20, 20233 Mins read314 Views

According to Reddit users, CaptainSparklez’s girlfriend (GF) is Kara Corvus, a Cosplayer, Scientist, YouTuber, actress & Twitch streamer. However, none of them have confirmed the rumor yet.
Jordan Maron, better known online as CaptainSparklez, is an American Twitch streamer and YouTuber whowas only eighteen years old when he started his first YouTube account in 2010 to publish Call of Duty gaming footage.
Later, he joined Justin.tv in 2011, where he live-streamed a number of games; once the two platforms merged, he continued to broadcast on Twitch. His Minecraft-themed music videos and then-daily playtime on YouTube helped him build a fanbase.
With all that gain in popularity, CaptainSparklez’s personal life, especially his love life, has been the subject of interest throughout the year. As a result, many Reddit users have recently been curious to know about his relationship status and wonder if he currently has a girlfriend. Well, here is what we’ve discovered.
Previously, we discussed therelationship status of Stunna Girland Chloe Kelly.
Kara Corvus Is Rumoured to Be Captainsparklez’s Girlfriend (GF)!
Online rumors and speculation are commonplace, as a result, CaptainSparklez‘s (@jordanmaron) relationship with Kara Corvus has not been an exception. However, it’s vital to note that these rumors are unsubstantiated and should be treated with caution, because, there is no definite confirmation that Kare is his real girlfriend (GF) or that they have been romantically linked.
KaraCorvus (@karacorvus) is also a diverse personality with interests in cosplay, science, YouTube, acting, & Twitch streaming. She met Captain Sparklez through mutual interests and joint endeavors. Their first meetings took place in the gaming world, where they played Apex Legends and then cooperated on projects such as SMP Live and SMP Earth.
CaptainSparklez is reportedly dating his girlfriend, Kara Corvus.
Image Source: Celebs-In-Depth
Their friendship was evident in their entertaining voice chats and playful pranks, which contributed to a deep bond that stretched into their Minecraft adventures, which frequently included fellow player X33N. However, despite their obvious bond and similar online activities, speculations of a love relationship between CaptainSparklez and his rumored girlfriend remain speculative.
Talking about CaptainSparklez’s past affairs, he has a fascinating love history that frequently blurs the limits between virtual and real-life relationships. The well-known YouTube personality previously teased his fans with a tweet about getting a girlfriend and going on an intense date, only to reveal that it was a simulated experience in The Sims game.
This smart movement provided his followers with a fun reality check, demonstrating his ability to engage his audience. Some female admirers even responded enthusiastically to his article, offering themselves humorously as potential real-life spouses. However, Captain Sparklez did not reply to these proposals, preferring to keep his personal life secret.
Despite having a sizable social media fan base on Instagram, Captain Sparklez appears to still be unmarried today. Surprisingly, there have been no rumors or stories about his romantic relationships. The YouTube sensation has kept his real-life connections private, never openly addressing his love life or significant partner.
However, CaptainSparklez piqued interest in February 2021 with a YouTube video titled Girlfriend Reveal on his second channel, Captain Sparklez 2. Nonetheless, this announcement, like his earlier humorous teases, introduced a fictional figure named Abigal as his girlfriend.
As fans continue to interact with his content and speculate about his personal life, one thing is certain: Captain Sparklez’s actual relationship status is still unknown. While his virtual adventures and wit have delighted millions, his true romantic journey has mostly remained hidden. As time passes, fans can only hope that he finds genuine love outside of games and fiction and shares that aspect of his life with them.
The Internet Career of Captainsparklez!
CaptainSparklez asked his mother for a PC capture card for his 18th birthday after watching gaming YouTubers. That month, in February 2010, he launched his first YouTube channel, ProsDONTtalkSHIT, to post Call of Duty videos and show off his scores. The channel was small, with only a few thousand views per video, so decided to choose a less vulgar username in case it grew larger, although he still thought this was unlikely.
CaptainSparklez started his YouTube channel by publishing Call of Duty gaming footage in 2010.
Image Source: Instagram
On July 20, 2010, CaptainSparklez started a new channel, CaptainSparklez on a dare. Before Minecraft became popular on the Internet the next year, he was exposed to it by another YouTuber named SeaNanners. Despite his reservations, he decided to start filming Minecraft videos, and in August he produced his first gameplay video (Let’s Play) of the game.
Despite CaptainSparklez’s parents’ warnings, he became increasingly active in making YouTube videos after starting university. In 2011, he began live-streaming his gameplay on Justin.tv. The game material on the platform was then relocated to Twitch, where he continued to stream. Later, he began working full-time on YouTube in December, when it became possible to monetize his videos.
Moreover, CaptainSparklez developed a fanbase partly from his then-daily Let’s Plays. He then signed with the talent agency William Morris Endeavor (WME) in 2015. Later, he and four other YouTubers voiced their Minecraft avatars in the sixth episode of the spin-off game Minecraft: Story Mode in 2016.
`},scaleInfoHtml:`
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cumque deleniti dolor impedit nobis quo ratione temporibus. Accusantium adipisci animi cupiditate eligendi hic modi officiis perspiciatis provident tenetur, vero voluptate voluptatem.
{if $price}
{/if}
{/if}
{/foreach}
',isLoggerEnabled:!1,titleBreak:0,titleLimit:75,informerTitleDotsFlag:1,disableCaps:0,descBreak:0,descLimit:75,hasVideoPart:!1,noFollow:!0,useDefaultJs:!1,blocksDomainAddressJs:"mgid.com",sourceName:"",disableResizeImageAfterLoad:!1,adTypes:"pg,r",enabledCooperationTypes:'["wages"]',createIntExchange:!1,sspSanctionsEnabled:!1,cooperationTypes:'["wages"]',newsPartPagesCount:0,goodsPartPagesCount:20,codePaginatorEnabled:!0,adblockTemplate:"",activeChilds:"[]",imageSizeAttributes:'width="492" height="277"',servicerDomain:"servicer.mgid.com",debugInfoOn:!1,crossId:1286707,useLazyLoad:!1,onTranzPage:!1,widgetEnabled:!0,branchName:"main",autoPlacementStatus:"off",staticRootDomain:"",sendScaleInfo:!0,libraryVersion:"1.11.246",adblockEmulation:!1,autoplacementSelector:"",widgetPerformanceMetric:!1,shadowDomClosed:!1,widgetPathES5:"https://jsc.mgid.com/c/e/celebsindepth.com.1286707.es5.js",widgetPathES6:"https://jsc.mgid.com/c/e/celebsindepth.com.1286707.es6.js",refreshAdsTime:45,refreshAdsBy:0,additionalWidgets:"[]",useApiRefresh:!1,videoCfg:"{}",customWidgetLib:"",spaEnabled:!1,passageFrequency:60,cookieStoragePrefix:"Mgid",useHoneypot:!1,disableCwvOptimization:!1,disableBannerSafeframe:!1,gptEnabled:!1,gptOptions:"{}",gptUnitId:{low:0,high:0,unsigned:!1},retentionToolEnabled:!1,collectWidgetReports:!1,ampSpaSupport:!0,backButtonOptions:"null",retentionToolScriptLink:"",retentionToolLoadFromWidgets:!1,immediateRollout:!1,requestsLimitOptions:"{}",id5Enabled:!0,externalAnalytics:"[]",bannersEnabled:!0,originTrialTokens:'[{"name":"X-Requested-With Trial. servicer.mgid.com","token":"A00OovyFoivp5xgE074+G3hiIk00oBqovMlZYlJd\\/gVpyF7t0vfq+2flpGTOUtezADAnKew0nlBFSAmijsLtlA0AAAB\\/eyJvcmlnaW4iOiJodHRwczovL3NlcnZpY2VyLm1naWQuY29tOjQ0MyIsImZlYXR1cmUiOiJXZWJWaWV3WFJlcXVlc3RlZFdpdGhEZXByZWNhdGlvbiIsImV4cGlyeSI6MTcxOTUzMjc5OSwiaXNUaGlyZFBhcnR5Ijp0cnVlfQ==","conditions":["webview"]},{"name":"X-Requested-With Trial. c.mgid.com","token":"A\\/TuIKGyAWlQptIROuEuX1RnZ8F17uxV+uDuQibYYFbe\\/jXBHbZzB7O0PR8NqtkSskdPP45qEu6GRs9oAMQXUgsAAAB4eyJvcmlnaW4iOiJodHRwczovL2MubWdpZC5jb206NDQzIiwiZmVhdHVyZSI6IldlYlZpZXdYUmVxdWVzdGVkV2l0aERlcHJlY2F0aW9uIiwiZXhwaXJ5IjoxNzE5NTMyNzk5LCJpc1RoaXJkUGFydHkiOnRydWV9","conditions":["webview"]}]',useTimePerformance:!0,waitConsentEnabled:!0,usePixelate:!0,clientId:478679,publisherId:57619262,readMoreButtonOptions:"{}",backfillData:"{}",useScrollClick:!1,iframeDomain:"mg.mgid.com",crossDomainStorageEnabled:!1,customStylesEnabled:!1,loggingConsentEnabled:!1,flippEnabled:!1,blurEnabled:!1,gradientEnabled:!1,refreshTeaserAfterClick:!0,loadVisibleWidgetDisabled:!1,supportDarkTheme:!1,darkThemeSelector:"",bidmaticEnabled:!1,bidmaticOptions:"{}",ampLimitAdsEnabled:!1,clicktrackingEnabled:!1,clicktrackingMacros:"",collectTopicsDisabled:!1,autocreativeCampaignId:0,omidEnabled:!1,newTabEnabled:!1,newTabOptions:"{}",swipeUpEnabled:!1,swipeUpOptions:"{}",lazyCustomMargin:0,nextUpCustomFuncEnabled:!1,pixelateImpressions:0,nextUpEnabled:!1,nextUpOptions:"{}",isNextUpAddWidget:!1,assertiveEnabled:!1,defractalEnabled:!1,BLOCKS:{ConstructorBlock:!1,SendDimensionsBlock:!0,VersionControlBlock:!1,InternalExchangeBlock:!0,RetentionToolBlock:!1,BlurBlock:!1,GradientBlock:!1,ColorBlock:!1,PaginatorBlock:!1,AutoRefreshInformerBlock:0,RefreshTeaserAfterClickBlock:!0,IframeSizeChangerBlock:"0",RejectBlock:!0,ViewabilityRefreshBlock:!1,OriginTrialsBlock:!0,RenderClassicBlock:!0,RenderSchematicBlock:!1,ResponsiveBlock:!0,ElasticBlock:!1,ScaleInfoBlock:!0,AntifraudBlock:!0,HoneypotBlock:!1,LazyLoadBlock:!1,FillCardLikesBlock:!1,ExternalApiBlock:!1,ImpactBlock:!1,InArticleAutoplacement:!1,AccidentalClicksBlock:!0,ActivateDelayBlock:2e3,OnTransitPageBlock:!1,GoogleGptBlock:!1,ImpactBlocks:!1,MobileExitBlock:!1,PassageBlock:!1,InterstitialBlock:!1,PopupBlock:!1,CollectWidgetReportsBlock:!1,ExternalAnalyticsBlock:!1,RtbBlock:!0,FlippBlock:!1,ID5Block:!0,widgetUseConstructor:!1,CarouselWidgetSuperBlock:!1,CarouselWidgetBlock:!1,InSiteNotificationBlock:!1,BackfillBlock:!1,MobileWidgetBlock:!1,VideoLibrary:!1,DarkThemeBlock:!1,BidmaticBlock:!1,BrowserTopicsBlock:!0,OmidBlock:!1,NewTabBlock:!1,SwipeUpBlock:!1,NextUpBlock:!1,BrowsiBlock:!1,AssertiveBlock:!1,DefractalBlock:!1}},SITE:{id:542105,cdnDomain:"cdn.mgid.com",crossDomainStorageEnabled:!1},BLOCKS:{ConstructorBlock:!1,SendDimensionsBlock:!0,VersionControlBlock:!1,InternalExchangeBlock:!0,RetentionToolBlock:!1,BlurBlock:!1,GradientBlock:!1,ColorBlock:!1,PaginatorBlock:!1,AutoRefreshInformerBlock:0,RefreshTeaserAfterClickBlock:!0,IframeSizeChangerBlock:"0",RejectBlock:!0,ViewabilityRefreshBlock:!1,OriginTrialsBlock:!0,RenderClassicBlock:!0,RenderSchematicBlock:!1,ResponsiveBlock:!0,ElasticBlock:!1,ScaleInfoBlock:!0,AntifraudBlock:!0,HoneypotBlock:!1,LazyLoadBlock:!1,FillCardLikesBlock:!1,ExternalApiBlock:!1,ImpactBlock:!1,InArticleAutoplacement:!1,AccidentalClicksBlock:!0,ActivateDelayBlock:2e3,OnTransitPageBlock:!1,GoogleGptBlock:!1,ImpactBlocks:!1,MobileExitBlock:!1,PassageBlock:!1,InterstitialBlock:!1,PopupBlock:!1,CollectWidgetReportsBlock:!1,ExternalAnalyticsBlock:!1,RtbBlock:!0,FlippBlock:!1,ID5Block:!0,widgetUseConstructor:!1,CarouselWidgetSuperBlock:!1,CarouselWidgetBlock:!1,InSiteNotificationBlock:!1,BackfillBlock:!1,MobileWidgetBlock:!1,VideoLibrary:!1,DarkThemeBlock:!1,BidmaticBlock:!1,BrowserTopicsBlock:!0,OmidBlock:!1,NewTabBlock:!1,SwipeUpBlock:!1,NextUpBlock:!1,BrowsiBlock:!1,AssertiveBlock:!1,DefractalBlock:!1}},"1286707":{}}});var R,J=q(()=>{C();B();R=class{constructor(t){this.app=t}addHook(t,e,i=0,s=!1){if(this.app.widgetParams.WIDGET.useConstructor)this.app[t].push(a=>{try{a=a||[],e.apply(this,a)}catch{}});else{let a=i!==0;this.app[t].push(p=>{let d=this.name||this.constructor.name,f=[];return f.push(this.app.lifeCycleBlock.execute(`${t} hook ${d}`,m=>{try{a?(p=p||[],p.push(m),e.apply(this,p)):(e.apply(this,p),m())}catch(b){this.app.log(`${t} hook ${d}:`,"error",b),this.app.debugBlock.sendData(b.message),m()}},0,!1,!0)),a&&i!==999999&&f.push(this.app.lifeCycleBlock.execute("",m=>{m()},i,s,!0)),Promise.race(f)})}}}});var H,z,Ft,gt,Kt,xt=q(()=>{C();B();(function(x){x.Teaser="teaser",x.Banner="banner",x.Gpt="gpt"})(H||(H={}));(function(x){x.Wages="w",x.Exchange="e",x.InternalExchange="i",x.Video="v",x.DirectPublisherDemand="dpd",x.Azerion="azerion"})(z||(z={}));(function(x){x.Desktop="desktop",x.Mobile="mobile",x.Tablet="tablet",x.SmartTV="smarttv"})(Ft||(Ft={}));(function(x){x[x.MG=0]="MG",x[x.L=1]="L",x[x.AK=2]="AK",x[x.IM=3]="IM"})(gt||(gt={}));(function(x){x.Storage="storage",x.Cmp="cmp"})(Kt||(Kt={}))});function Lt(x,t){async function e(...i){await zt.acquireStorage(()=>{x.call(this,...i)}),typeof i[i.length-1]=="function"&&i[i.length-1]()}return e}var Gt,lt,Te,zt,bt,zr,kt,ae=q(()=>{C();B();(function(x){x.ping="ping",x.get="get",x.set="set",x.lock="lock",x.unlock="unlock"})(Gt||(Gt={}));(function(x){x.local="local",x.session="session",x.page="page"})(lt||(lt={}));Te=class{constructor(){if(this.callbacks={},this.pingIntervalId=null,this.internalStore={},this.isCrossDomainStorageEnabled()){let t=document.createElement("iframe");t.src="https://cdn.mgid.com/widgets/storage.html",t.style.display="none",document.body.appendChild(t),this.frame=t.contentWindow,this.internalStore[lt.local]={},this.internalStore[lt.session]={},this.internalStore[lt.page]={},window.addEventListener("message",e=>{if(typeof e.data._mgstorage<"u"){let i=e.data._mgstorage;i.error&&console.error(i.error),this.callbacks[i.eventId](i)}})}else this.internalStore[lt.local]=localStorage,this.internalStore[lt.session]=sessionStorage,this.internalStore[lt.page]=window}async waitForFrame(){return new Promise(t=>{this.pingIntervalId=setInterval(()=>{let e=this.getEventId();this.callbacks[e]=()=>{clearInterval(this.pingIntervalId),t()},this.request({eventId:e,srcId:"widget",action:Gt.ping})},100)})}async get(t,e,i){return new Promise(s=>{let a=this.getEventId();this.callbacks[a]=p=>{s(p.data)},this.request({eventId:a,engine:e,srcId:"widget",action:Gt.get,lockId:t,key:i})})}async set(t,e,i,s){return new Promise(a=>{let p=this.getEventId();this.callbacks[p]=()=>{a()},this.request({eventId:p,engine:e,srcId:"widget",action:Gt.set,lockId:t,key:i,val:s})})}async lock(){return new Promise(t=>{let e=this.getEventId();this.callbacks[e]=i=>{t(i.data)},this.request({eventId:e,srcId:"widget",action:Gt.lock})})}async unlock(t){return new Promise(e=>{let i=this.getEventId();this.callbacks[i]=s=>{e(s)},this.request({eventId:i,srcId:"widget",action:Gt.unlock,lockId:t})})}async fetch(t){this.internalStore[lt.local]=JSON.parse(await this.get(t,lt.local,this.getStorageKey()))??{},this.internalStore[lt.session]=JSON.parse(await this.get(t,lt.session,this.getStorageKey()))??{},this.internalStore[lt.page]=JSON.parse(await this.get(t,lt.page,this.getStorageKey()))??{}}async flush(t){await this.set(t,lt.local,this.getStorageKey(),JSON.stringify(this.internalStore[lt.local])),await this.set(t,lt.session,this.getStorageKey(),JSON.stringify(this.internalStore[lt.session])),await this.set(t,lt.page,this.getStorageKey(),JSON.stringify(this.internalStore[lt.page])),this.internalStore[lt.local]={},this.internalStore[lt.session]={},this.internalStore[lt.page]={},await this.unlock(t)}getStorageKey(){return"storage542105"}isCrossDomainStorageEnabled(){return!1}engine(t){return{getItem:e=>{let i=this.internalStore[t][e]??null;return i==="undefined"&&(i=null),i},setItem:(e,i)=>{this.internalStore[t][e]=i},removeItem:e=>{delete this.internalStore[t][e]}}}async acquireStorage(t){try{if(this.isCrossDomainStorageEnabled()){let e=await this.lock();await this.fetch(e),t(),await this.flush(e)}else t()}catch(e){console.error(e)}}getEventId(){return("0000000000"+Math.round(Math.random()*1e10).toString(16)).slice(-10)}request(t){this.frame.postMessage({_mgstorage:t},"*")}},zt=new Te,bt=zt.engine(lt.local),zr=zt.engine(lt.session),kt=zt.engine(lt.page)});var Fi={};Z(Fi,{VideoMetricsBlock:()=>Se});var Se,Ui=q(()=>{C();B();J();xt();Se=class extends R{constructor(t){super(t),this.name="VideoMetricsBlock",this.userAgent=this.app.context.navigator?.userAgent||"",this.exceptionAgentList=["Zalo iOS"],this.videoType="video/mp4",this.isMetricsCollected=!1,this.collectMetrics()}waitForCollectMetrics(){let t,i=new Date().getTime();return new Promise(s=>{t=setInterval(()=>{if(new Date().getTime()-i>=1e3){this.app.videoMetricsParams={mp4:0,ap:0},clearInterval(t),this.app.log(`${this.name}: too long Video Promise resolving process.`),s();return}this.isMetricsCollected&&(clearInterval(t),s())},10)})}collectMetrics(){let t={mp4:0,ap:0},e=()=>{this.isMetricsCollected=!0,this.app.videoMetricsParams={...t};try{this.app.context.sessionStorage&&this.app.context.sessionStorage.setItem("_mgVideoMetricsParams",JSON.stringify(t))}catch{}};if(this.isIosWebview()&&(this.isExceptionAgent()||this.app.widgetParams.WIDGET.currentSubnet===gt.IM)){e();return}try{let i=new Blob([new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49])],{type:this.videoType}),s=this.app.context.document.createElement("video");if(s.muted=!0,s.autoplay=!0,s.loop=!0,s.setAttribute("playsinline",""),s.setAttribute("webkit-playsinline",""),s.src=URL.createObjectURL(i),typeof s.canPlayType<"u"){let p=s.canPlayType(this.videoType);(p=="maybe"||p=="probably")&&(t.mp4=1)}let a=s.play();typeof a<"u"?a.then(()=>{t.ap=1,s.src="",typeof s.remove<"u"&&s.remove(),e()}).catch(p=>{t.ap=0,s.src="",typeof s.remove<"u"&&s.remove(),e()}):(t.ap=0,s.src="",typeof s.remove<"u"&&s.remove(),e())}catch{t.mp4=0,t.ap=0,e()}}isIosWebview(){return/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(this.userAgent)}isExceptionAgent(){return this.exceptionAgentList.some(t=>this.userAgent.indexOf(t)!==-1)}}});var zi={};Z(zi,{NavigatorAgentDataBlock:()=>Pe});var $t,Pe,$i=q(()=>{C();B();J();(function(x){x.architecture="scua",x.bitness="scub",x.brands="scu",x.fullVersionList="scufvl",x.mobile="scum",x.model="scumd",x.platform="scup",x.platformVersion="scupv",x.uaFullVersion="scufv",x.wow64="scuw"})($t||($t={}));Pe=class extends R{constructor(t){super(t),this.name="NavigatorAgentDataBlock",this.isDataCollected=!1,this.collectUserAgentData()}waitForUserAgentData(){let t,i=new Date().getTime();return new Promise(s=>{t=setInterval(()=>{if(new Date().getTime()-i>=1e3){this.app.userAgentDataParams=null,clearInterval(t),this.app.log(`${this.name}: too long collecting data process.`),s();return}this.isDataCollected&&(clearInterval(t),s())},10)})}collectUserAgentData(){this.app.context.navigator.userAgentData.getHighEntropyValues(Object.keys($t)).then(t=>{let e={};Object.keys(t).forEach(i=>{let s=t[i];if(typeof s=="boolean"&&(e[$t[i]]=`${encodeURIComponent(s?"?1":"?0")}`),typeof s=="string"&&s.length&&(e[$t[i]]=`${encodeURIComponent('"'+s+'"')}`),Array.isArray(s)&&s.length){let a=s.reduce((p,d,f,m)=>p+`"${d.brand}";v="${d.version}"${f!==m.length-1?", ":""}`,"");e[$t[i]]=`${encodeURIComponent(a)}`}}),this.isDataCollected=!0,this.app.userAgentDataParams={...e};try{this.app.context.sessionStorage&&this.app.context.sessionStorage.setItem("_mgAgentDataParams",JSON.stringify(e))}catch{}}).catch(t=>{this.isDataCollected=!0,this.app.userAgentDataParams=null})}}});var ji={};Z(ji,{AmpRenderBlock:()=>De});var De,qi=q(()=>{C();B();J();De=class extends R{constructor(t){super(t),this.name="AmpRenderBlock",this.addHook("afterPreRenderNewsHooks",this.ampRenderStart),this.addHook("afterLoadNewsHooks",this.ampResizeHook),this.app.widgetParams.WIDGET.ampSpaSupport&&(this.ampPageView(),this.addHook("beforePrepareCappingDataHooks",this.ampPageImp,1e4))}ampRenderStart(){this.ampResizedHeight=this.app.precalcRect.height,this.app.context.context.renderStart({width:this.app.precalcRect.width,height:this.app.precalcRect.height})}ampPageView(){typeof this.app.context.context.computeInMasterFrame<"u"&&this.app.context.context.computeInMasterFrame(this.app.context,"_mgPageViewAmp"+this.app.widgetParams.WIDGET.siteId,t=>{let e=this.app.context.context.pageViewId,i=localStorage.getItem("_mgPageViewAmpId"+this.app.widgetParams.WIDGET.siteId)?localStorage.getItem("_mgPageViewAmpId"+this.app.widgetParams.WIDGET.siteId):"";if(e===i){let s=this.app.getMostTopWindow();s["_mgPageView"+this.app.widgetParams.WIDGET.siteId]=s["_mgPageView"+this.app.widgetParams.WIDGET.siteId]||[],s["_mgPageView"+this.app.widgetParams.WIDGET.siteId].push(s.location.pathname),s["_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId]=s["_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId]||[],s["_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId].push(s.location.pathname),this.app.initServicerRequest=!1}localStorage.setItem("_mgPageViewAmpId"+this.app.widgetParams.WIDGET.siteId,e),t()},()=>{})}ampPageImp(t){typeof this.app.context.context.computeInMasterFrame<"u"?this.app.context.context.computeInMasterFrame(this.app.context,"_mgPageImpAmp"+this.app.widgetParams.WIDGET.siteId,e=>{let i=this.app.context.context.pageViewId,s=localStorage.getItem("_mgPageImpAmpId"+this.app.widgetParams.WIDGET.siteId)?localStorage.getItem("_mgPageImpAmpId"+this.app.widgetParams.WIDGET.siteId):"";if(i===s){let a=this.app.getMostTopWindow();a["_mgPageImp"+this.app.widgetParams.WIDGET.siteId]=a["_mgPageImp"+this.app.widgetParams.WIDGET.siteId]||[],a["_mgPageImp"+this.app.widgetParams.WIDGET.siteId].push(a.location.pathname)}localStorage.setItem("_mgPageImpAmpId"+this.app.widgetParams.WIDGET.siteId,i),e()},()=>{}):t()}askAmpForResize(){let t=Math.ceil(this.app.root.getBoundingClientRect().height),e=this.app.precalcRect.width;this.app.context.context.requestResize(e,t).then(()=>{this.app.ampResizeDenied=!1,this.ampResizedHeight=t},()=>{this.app.ampResizeDenied=!0})}ampResizeHook(){typeof this.ampResizeInterval>"u"&&(this.ampResizeInterval=setInterval(()=>{let t=Math.ceil(this.app.root.getBoundingClientRect().height);typeof this.app.ampResizeDenied<"u"&&this.app.ampResizeDenied?this.askAmpForResize():t!==this.ampResizedHeight&&this.askAmpForResize()},100))}}});var Hi={};Z(Hi,{MgqBlock:()=>Jt});var Jt,Ee=q(()=>{C();B();J();Jt=class extends R{constructor(t){super(t),this.isLongCheck=!1,this.name="MgqBlock",this.worker=this.createWorker(),this.init()}init(){this.app.context._mgq=this.app.context._mgq||[],typeof this.app.context._mgqp>"u"&&(this.app.context._mgqp=this.worker,this.app.context._mgqt=new Date().getTime(),this.worker())}createWorker(){return()=>{let t=this.app.context._mgq.length,e=this.app.context._mgq.slice(0),i=0;for(let s=0;s
0&&(p=p[a[0].split(".")[0]],d=a[0].split(".")[1]),typeof p[d]=="function"&&d!=="MgSensorInvoke"){try{p[d].apply(p,a.slice(1))}catch(f){this.app.log("mgq error:","error",f),this.app.debugBlock.sendData(`mgq error: ${f.message}`)}this.app.context._mgq.splice(s-i,1),i++}}this.app.context._mgqi||(this.app.context._mgqi=this.app.context.setInterval(()=>{this.worker()},5)),this.isLongCheck||new Date().getTime()-this.app.context._mgqt>1e4&&(this.isLongCheck=!0,this.app.context.clearInterval(this.app.context._mgqi),this.app.context._mgqi=this.app.context.setInterval(()=>{this.worker()},100))}}}});var Ki={};Z(Ki,{UtilsBlock:()=>Ce});var Ce,Ji=q(()=>{C();B();J();Ce=class extends R{constructor(t){super(t),this.name="UtilsBlock"}getScroll(){let t=this.app.getMostTopWindow();return{top:t.document.body.scrollTop||t.document.documentElement.scrollTop||0,left:t.document.body.scrollLeft||t.document.documentElement.scrollLeft||0}}getViewportSize(){let t=this.app.getMostTopWindow();return{width:t.innerWidth||t.document.documentElement.clientWidth,height:t.innerHeight||t.document.documentElement.clientHeight}}getRect(t,e){let i=t.getBoundingClientRect(),s={top:i.top,bottom:i.bottom,left:i.left,right:i.right,height:i.height?i.height:i.bottom-i.top,width:i.width?i.width:i.right-i.left};if(this.app.context.self!==this.app.context.top){let a=this.getFrame();if(a){let p=a.getBoundingClientRect();s.top+=p.top,s.bottom+=p.top,s.left+=p.left,s.right+=p.left}}if(e){let a=this.getScroll();s.top+=a.top,s.bottom+=a.top,s.left+=a.left,s.right+=a.left}return s}getFrame(){let t;try{let e;for(let i=this.app.context;i.frameElement;i=i.parent)e=i.frameElement;t=e}catch{t=null}return t}elementViewportIntersection(t){let e=this.getRect(t,!0),i=this.getViewportSize(),s=this.getScroll();for(let m in e)e.hasOwnProperty(m)&&(e[m]=Math.floor(e[m]));i.top=s.top,i.bottom=s.top+i.height,i.left=s.left,i.right=s.left+i.width;let a=e.width*e.height;if(!a)return 0;if(this.app.omidBlock&&this.app.omidBlock.getLastOmidData()){let m=this.app.omidBlock.getLastOmidData(),b={left:0,right:m.viewport.width,top:0,bottom:m.viewport.height},k={left:m.adView.geometry.x,right:m.adView.geometry.x+m.adView.geometry.width,top:m.adView.geometry.y,bottom:m.adView.geometry.y+m.adView.geometry.height},D=this.rectangleIntersection(b,k),w={left:m.adView.onScreenGeometry.x,right:m.adView.onScreenGeometry.x+m.adView.onScreenGeometry.width,top:m.adView.onScreenGeometry.y,bottom:m.adView.onScreenGeometry.y+m.adView.onScreenGeometry.height},P=this.rectangleIntersection(D,w),v={left:e.left-s.left+m.adView.geometry.x,right:e.right-s.left+m.adView.geometry.x,top:e.top-s.top+m.adView.geometry.y,bottom:e.bottom-s.top+m.adView.geometry.y},T=this.rectangleIntersection(P,v),L=(v.bottom-v.top)*(v.right-v.left),O=T.width*T.height;return m.adView.onScreenGeometry.obstructions.forEach(X=>{let et={left:X.x,top:X.y,right:X.x+X.width,bottom:X.y+X.height},dt=this.rectangleIntersection(et,T),ht=dt.width*dt.height;O-=ht}),O/L}let p=Math.max(0,Math.min(e.right,i.right)-Math.max(e.left,i.left)),d=Math.max(0,Math.min(e.bottom,i.bottom)-Math.max(e.top,i.top));return p*d/a}rectangleIntersection(t,e){let i={};return i.top=Math.max(t.top,e.top),i.left=Math.max(t.left,e.left),i.bottom=Math.min(t.bottom,e.bottom),i.right=Math.min(t.right,e.right),i.width=i.right-i.left,i.height=i.bottom-i.top,i.toptypeof this.app.context.document[s]<"u")[0],i=e==="hidden"?"visibilitychange":e.replace("Hidden","")+"visibilitychange";return{hidden:e,visibilityChange:i}}}});var Zi=te(re=>{"use strict";C();B();Object.defineProperty(re,"__esModule",{value:!0});re.ConsentsBlock=void 0;var fr=function(){function x(t,e,i){e===void 0&&(e=30),i===void 0&&(i=!1);var s;this.hasStorageConsentTCFv2=!1,this.app=t,this.consentTimeout=e,this.isWaitConsent=i,this.app.requestParams=this.app.requestParams||{},this.topWindow=this.app.getMostTopWindow(),this.actualizeStorageConsentTCFv2(),this.isWaitConsent&&!this.hasStorageConsentTCFv2&&(this.consentTimeout=Number((s=this.app.globalSettings)===null||s===void 0?void 0:s.widget_consent_wait_time_ms)||300,this.app.requestParams.nocmp=1)}return x.prototype.actualizeStorageConsentTCFv2=function(){var t,e=Number((t=this.app.globalSettings)===null||t===void 0?void 0:t.widget_consent_outdated_time)||168;try{if(this.app.context.localStorage&&!this.app.isOurIframe){var i=JSON.parse(this.app.context.localStorage.getItem("MG_tcfv2Data")||"{}");i?.timestamp&&new Date().getTime()-i.timestamp=e.consentTimeout*1e3){clearInterval(s),e.app.log("Consents. TCFv2 API not found. Limit time end."),t&&setTimeout(function(){t()},0),a();return}e.isSearchingLocator||e.initTCFv2Proxy(),typeof e.app.context.__tcfapi=="function"&&(clearInterval(s),d())},500)})},x.prototype.gdprApi=function(t){var e=this;return new Promise(function(i,s){if(typeof e.topWindow.__cmp=="function"){e.app.cmpEnabled=!0,e.app.requestParams.tcfV1=1;try{e.topWindow.__cmp("getConsentData",null,function(a){e.app.consentData=a,e.app.context.localStorage&&(e.app.isOurIframe?e.app.context.localStorage.removeItem("MG_ConsentData"):e.app.context.localStorage.setItem("MG_ConsentData",JSON.stringify(a))),e.app.log("Consents. TCFv1 API done."),t&&setTimeout(function(){t()},0),i()})}catch(a){t&&setTimeout(function(){t()},0),s(a)}}else t&&setTimeout(function(){t()},0),i()})},x.prototype.ccpaApi=function(t){var e=this;return new Promise(function(i,s){if(typeof e.topWindow.__uspapi=="function"){e.app.uspEnabled=!0;try{e.topWindow.__uspapi("getUSPData",1,function(a,p){p?(e.app.uspString=a.uspString||"",e.app.context.localStorage&&e.app.uspString!==""&&(e.app.isOurIframe?e.app.context.localStorage.removeItem("MG_uspString"):e.app.context.localStorage.setItem("MG_uspString",e.app.uspString)),e.app.log("Consents. CCPA API done.")):e.app.log("Consents. CCPA API fail."),t&&setTimeout(function(){t()},0),i()})}catch(a){t&&setTimeout(function(){t()},0),s(a)}}else t&&setTimeout(function(){t()},0),i()})},x.prototype.getGdprData=function(){var t,e,i,s,a=null;if((this.app.cmpEnabled||this.app.tcfv2Enabled||this.app.isAmp())&&(this.app.isAmp()&&this.app.context.context.initialConsentValue?a={gdpr_consent:this.app.context.context.initialConsentValue,gdpr:1}:!((t=this.app)===null||t===void 0)&&t.tcfv2Data&&typeof((e=this.app.tcfv2Data)===null||e===void 0?void 0:e.tcString)<"u"?(a={gdpr_consent:this.app.tcfv2Data.tcString,gdpr:typeof this.app.tcfv2Data.gdprApplies<"u"?+this.app.tcfv2Data.gdprApplies:""},this.app.consentOrigin="cmp"):!((i=this.app)===null||i===void 0)&&i.consentData&&typeof((s=this.app.consentData)===null||s===void 0?void 0:s.consentData)<"u"&&(a={gdpr_consent:this.app.consentData.consentData,gdpr:typeof this.app.consentData.gdprApplies<"u"?+this.app.consentData.gdprApplies:""})),a===null)try{if(this.app.context.localStorage&&!this.app.isOurIframe){var p=null;p=JSON.parse(this.app.context.localStorage.getItem("MG_ConsentData")||"null"),p!==null&&typeof p.consentData<"u"&&(a={gdpr_consent:p.consentData,gdpr:typeof p.gdprApplies<"u"?+p.gdprApplies:""}),p=JSON.parse(this.app.context.localStorage.getItem("MG_tcfv2Data")||"null"),p!==null&&typeof p.tcString<"u"&&(a={gdpr_consent:p.tcString,gdpr:typeof p.gdprApplies<"u"?+p.gdprApplies:""},this.app.consentOrigin="storage")}}catch(d){this.app.log("getGdprData -> "+d.message)}return a},x.prototype.getUspData=function(){var t=null;if(this.app.uspEnabled&&this.app.uspString!=""&&typeof this.app.uspString<"u")t={us_privacy:this.app.uspString};else try{if(this.app.context.localStorage&&!this.app.isOurIframe){var e=this.app.context.localStorage.getItem("MG_uspString");e!=null&&e!=""&&typeof e<"u"&&(t={us_privacy:e})}}catch(i){this.app.log("getUspData -> "+i.message)}return t},x.prototype.getConsentData=function(){var t={},e=this.getGdprData(),i=this.getUspData();return e!=null&&Object.keys(e).forEach(function(s){return t[s]=e[s]}),i!=null&&Object.keys(i).forEach(function(s){return t[s]=i[s]}),Object.keys(t).length>0?t:null},x.prototype.fetchConsents=function(){var t=this;return Promise.allSettled([this.tcfv2Api(),this.gdprApi(),this.ccpaApi()]).then(function(){return t.getConsentData()})},x}();re.ConsentsBlock=fr});var Xi={};Z(Xi,{ConsentsBlock:()=>Be});var Yi,Be,Qi=q(()=>{C();B();J();Yi=ee(Zi()),Be=class extends R{constructor(t){super(t),this.consentTimeout=30,this.isWidgetLoaded=!1,this.name="ConsentsBlock",this.isWidgetObservable=!this.app.widgetParams.WIDGET.loadVisibleWidgetDisabled&&this.app.iframePlacementType<2,this.isWaitConsent=this.getWaitConsent(),this.consentsAdapter=new Yi.ConsentsBlock(t,this.consentTimeout,this.isWaitConsent),this.addHook("beforeInitHooks",this.consentsAdapter.tcfv2Api.bind(this.consentsAdapter),50),this.addHook("beforeInitHooks",this.consentsAdapter.gdprApi.bind(this.consentsAdapter),50),this.addHook("beforeInitHooks",this.consentsAdapter.ccpaApi.bind(this.consentsAdapter),50)}getWaitConsent(){return this.app.isAmp()?!1:this.app.isShowedUpFormat||this.app.widgetParams.WIDGET.newTabEnabled||this.app.widgetParams.WIDGET.swipeUpEnabled||this.app.widgetParams.WIDGET.nextUpCustomFuncEnabled||this.app.widgetParams.WIDGET.nextUpEnabled?(this.app.requestParams.cmpreason="wp",!1):this.app.widgetParams.WIDGET.waitConsentEnabled?this.isWidgetObservable&&this.app.root?(this.app.root.style.minHeight="1px",this.app.root.style.width="100%",this.app.utils.elementViewportIntersection(this.app.root)>0?(this.app.requestParams.cmpreason="wvz",!1):!0):!0:!1}observeWidget(){this.viewInterval=setInterval(()=>{this.app.utils.elementViewportIntersection(this.app.root)>0&&(clearInterval(this.viewInterval),this.loadWidget(!0))},150)}loadWidget(t=!1){this.isWidgetLoaded||(this.isWidgetLoaded=!0,this.viewInterval&&clearInterval(this.viewInterval),typeof this.app.requestParams.nocmp<"u"&&delete this.app.requestParams.nocmp,t&&(this.app.log(`${this.name}: waiting for consents is complete, widget in viewable zone.`),this.app.requestParams.cmpreason="wvzs"),this.app.injectScript(!1))}getConsentData(){let t=this.consentsAdapter.getConsentData();return(!t||!t.gdpr)&&typeof this.app.context._mgGdprApplies<"u"&&(t=t||{},t.gdpr=this.app.context._mgGdprApplies),(!t||!t.gdpr_consent)&&typeof this.app.context._mgConsentData<"u"&&(t=t||{},t.gdpr_consent=this.app.context._mgConsentData),t}waitConsent(t){this.waitConsentResolve().then(()=>{this.app.log(`${this.name}: waiting for consents is complete, consents received.`),this.loadWidget()}),this.isWidgetObservable&&this.observeWidget(),setTimeout(()=>{this.app.log(`${this.name}: waiting for consents is complete, limit time end.`),this.loadWidget()},t*1e3)}async waitConsentResolve(){return new Promise(t=>{this.app.waitConsentResolver=t})}}});var ts={};Z(ts,{RequestBlock:()=>We});var We,es=q(()=>{C();B();J();We=class extends R{pixel(t,e,i,s){this._send(t,e,i,s,(a,p)=>{this._imgRequest(a,p)})}beacon(t,e,i,s){this._send(t,e,i,s,(a,p,d)=>{if(typeof navigator.sendBeacon=="function")try{navigator.sendBeacon(p),this.app.log(`Request beacon ${a} started`)}catch(f){this.app.log(`Request beacon ${a} error: `,"error",f),this._imgRequest(a,p)}else this._imgRequest(a,p)})}beaconBlob(t,e,i,s){this._send(t,e,{},s,(a,p,d)=>{if(typeof navigator.sendBeacon=="function")try{navigator.sendBeacon(p,i),this.app.log(`Request beaconBlob ${a} started`)}catch(f){this.app.log(`Request beaconBlob ${a} error: `,"error",f),this._xhrRequest(a,p,"POST",i)}else this._xhrRequest(a,p,"POST",i)})}script(t,e,i,s){this._send(t,e,i,s,(a,p)=>{let d=this.app.context.document.createElement("SCRIPT");d.src=p,d.type="text/javascript",d.charset="utf-8",d.async=!0,s.onerror&&(d.onerror=s.onerror),s.dest?(s.dest.appendChild(d),this.app.log(`Request script ${a} started`)):this.app.log(`Request script ${a} failed - options.dest is undefined!`,"warn")})}_prepareUrl(t,e){this.app.consentDataParams=this.app.consentsBlock.getConsentData(),this.app.consentDataParams&&t.indexOf("/vz")==-1&&Object.keys(this.app.consentDataParams).forEach(s=>{let a=this.app.consentDataParams[s];t.indexOf(s)===-1&&(e[s]=`${s}=${a}`)});let i=[];for(let s of Object.keys(e))(e[s][0]==="?"||e[s][0]==="&")&&(e[s]=e[s].substring(1)),i.push(e[s]);return i.length&&(t.slice(-1)!=="?"&&t.slice(-1)!=="&"&&(t+=t.indexOf("?")===-1?"?":"&"),t+=i.join("&")),t}_send(t,e,i,s,a){if(s.unique){if(this.app.context._mgRequests=this.app.context._mgRequests||{},this.app.context._mgRequests[t]){this.app.log(`Request ${t} stopped - already defined on page`,"warn");return}this.app.context._mgRequests[t]=!0}e=this._prepareUrl(e,i),a(t,e,s)}_imgRequest(t,e){let i=this.app.context.document.createElement("IMG");i.referrerPolicy="strict-origin-when-cross-origin",i.src=e,i.onerror=()=>this.app.log(`Request image ${t} load error`,"error"),this.app.log(`Request image ${t} started`)}_xhrRequest(t,e,i,s){let a=new XMLHttpRequest;a.open(i,e,!0),a.onerror=()=>this.app.log(`Request XHR ${t} load error`),a.send(s),this.app.log(`Request image ${t} started`)}}});var is={};Z(is,{ContextBlock:()=>Le});var Le,ss=q(()=>{C();B();J();Le=class extends R{constructor(t){super(t),this.topmostWindowAccessible=null,this.name="ContextBlock"}getTopmostWindowAccessible(){if(!this.topmostWindowAccessible)try{for(let t=this.app.context;t.document&&(this.topmostWindowAccessible=t,t!=t.top);t=t.parent);}catch{}return this.topmostWindowAccessible}parseUrl(t){let e=document.createElement("A");e.href=t;let i=e.search.replace(/^\?/,"").split("&"),s=[];for(let p of i)if(p!==""){let d=p.split("=");s.push({key:d[0],value:typeof d[1]<"u"?d[1]:""})}let a=e.pathname;return a===""&&(a="/"),a.charAt(0)!=="/"&&(a="/"+e.pathname),{protocol:e.protocol,host:e.host,pathname:a,search:e.search,hash:e.hash,parsedParams:s}}composeUrl(t){return t.protocol+"//"+t.host+t.pathname+t.search+t.hash}stripAmpParts(t){let e=t,i=this.parseUrl(t),s="cdn.ampproject.org";if(i.host.indexOf(s)>0&&i.host.indexOf(s)===i.host.length-s.length){let a=i.pathname.split("/");if(typeof a[1]<"u"&&(a[1]==="c"||a[1]==="v"||a[1]==="wp")){let p=!1;typeof a[2]<"u"&&a[2]==="s"&&(p=!0),e=(p?"https":"http")+"://";let d=0;for(let f of a)f!==""&&f!=="c"&&f!=="v"&&f!=="wp"&&f!=="s"&&(e+=(d++!==0?"/":"")+f);e+=i.search+i.hash}else if(typeof a[1]>"u"||a[1]===""){let p=new RegExp(`.${s}/?$`);e=e.replace(p,"").replace(/^0-/,"").replace(/-0$/,"").replace(/-+/g,d=>d.length===2?"-":d.length===1?".":d)}}return e}contextUriSanitize(t){if(t){t=this.stripAmpParts(t);let e=this.parseUrl(t);this.app.context._mgCanonicalUri=this.composeUrl(e)}return this.app.context._mgCanonicalUri}contextUriParse(){if(!this.app.context._mgCanonicalUri){this.app.context._mgCanonicalUri="";try{let t=this.getTopmostWindowAccessible(),e="",i=t.document.querySelector('meta[property="og:url"]');if(i&&i.getAttribute("content")&&i.getAttribute("content").indexOf("http")!==-1)e=i.getAttribute("content");else{let s=t.document.querySelector("link[rel='canonical']");s&&s.getAttribute("href")&&s.getAttribute("href").indexOf("http")!==-1&&(e=s.getAttribute("href"))}if(e===""){switch(this.app.iframePlacementType){case 0:e=this.app.pageUrl;break;case 1:e=this.app.pageUrl;break;case 2:e=this.app.refererUrl;break;case 3:try{e=this.app.context.context.canonicalUrl}catch{}e||(e=this.app.pageUrl!==""?this.app.pageUrl:this.app.refererUrl);break}this.contextUriSanitize(e)}else this.app.context._mgCanonicalUri=e}catch{}}return this.app.context._mgBackfillCxurl||this.app.context._mgCanonicalUri}}});var as={};Z(as,{PageViewPixelBlock:()=>Ae});var Ae,rs=q(()=>{C();B();J();Ae=class extends R{constructor(t){super(t),this.name="PageViewPixelBlock",this.sendPageViewPixel()}sendPageViewPixel(){this.w=this.app.getMostTopWindow();let t=this.w.location.pathname;this.w["_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId]=this.w["_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId]||[];let e=this.w["_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId],i=Number(this.app.globalSettings?.ia_page_view_timeout)||180,s=0,a=0;try{this.app.context.localStorage&&(s=Number(this.app.context.localStorage.getItem("_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId)),a=Number(this.app.context.localStorage.getItem("_mgPvidTime")),new Date().getTime()-a>i*1e3&&this.app.context.localStorage.setItem("_mgPvid",this.app.generatePvid()))}catch{}if(new Date().getTime()-s>i*1e3&&Array.isArray(e)&&e.indexOf(t)===-1){e.push(t);let p=this.getPageViewPixelParams(),d={};for(let f in p)p[f]&&(d[f]=`${f}=${p[f]}`);this.app.initServicerRequest&&this.app.request.pixel("pageView",this.app.webProtocol+"//"+this.app.widgetParams.WIDGET.countersDomain+"/pv/",d,{})}this.app.initServicerRequest=!1}getPageDataParams(){let t={};this.setPageData();try{if(!sessionStorage.MG_Session_lastUpdate||Number(sessionStorage.MG_Session_lastUpdate)+30*60*1e3i*1e3)&&!this.app.initServicerRequest&&(this.app.context.localStorage.setItem("_mgPageView"+this.app.widgetParams.WIDGET.siteId,new Date().getTime().toString()),this.app.pageView=1),this.app.initServicerRequest&&(this.app.context.localStorage.setItem("_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId,new Date().getTime().toString()),this.app.context.localStorage.setItem("_mgPvidTime",new Date().getTime().toString()),this.app.pageView=1);let s=this.app.context.localStorage.getItem("_mgPvid");s&&(this.app.pvid=s)}else{let e=this.w.location.pathname;this.w["_mgPageView"+this.app.widgetParams.WIDGET.siteId]=this.w["_mgPageView"+this.app.widgetParams.WIDGET.siteId]||[];let i=this.w["_mgPageView"+this.app.widgetParams.WIDGET.siteId];this.w["_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId]=this.w["_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId]||[];let s=this.w["_mgPageViewEndPoint"+this.app.widgetParams.WIDGET.siteId];this.w._mgPvidList=this.w._mgPvidList||[];let a=this.w._mgPvidList;Array.isArray(i)&&i.indexOf(e)===-1&&!this.app.initServicerRequest&&(i.push(e),this.app.pageView=1),Array.isArray(s)&&s.indexOf(e)===-1&&this.app.initServicerRequest&&(s.push(e),this.app.pageView=1),typeof this.w._mgPvid<"u"&&(this.app.pvid=this.w._mgPvid),Array.isArray(a)&&a.indexOf(e)===-1&&(a.push(e),this.app.pvid=this.app.generatePvid(),this.w._mgPvid=this.app.pvid)}}getPageViewPixelParams(){let t={...this.getPageDataParams(),site:this.app.widgetParams.WIDGET.widgetClientSiteId,cid:this.app.id,i:1},e=this.app.getUserAgentDataParams();return e&&(t={...t,...e}),t}}});var ns={};Z(ns,{MainBlock:()=>_e});var _e,os=q(()=>{C();B();J();xt();_e=class extends R{constructor(t){super(t),this.cappingRealShowTime=0,this.widgetRealShowTime=0,this.name="MainBlock",this.addHook("beforeInitHooks",()=>{this.app.addEvent(this.app.root,"mousemove",e=>{this.app.root.mouseX=e.pageX-this.app.root.offsetLeft,this.app.root.mouseY=e.pageY-this.app.root.offsetTop})}),this.setAppFunctions(),this.addHook("afterPrepareCappingDataHooks",()=>{this.cappingRealShowTime=this.app.getCurrentTimestamp()}),this.addHook("observerWidgetHooks",(e,i)=>{e&&i>=.01&&(this.widgetRealShowTime=this.app.getCurrentTimestamp())}),this.addHook("afterLoadNewsHooks",()=>{this.fixWrongExternalImages(),this.app.widgetParams.WIDGET.type==="header-widget"&&this.fixHeaderWidgetHeight()}),this.addHook("afterInitHooks",this.sendBannerInfoListener),this.addHook("afterPrepareCappingDataHooks",this.renderLazyBanners),this.addHook("afterLoadNewsHooks",this.setAltToImages),this.addHook("afterLoadNewsHooks",this.fixBackfillDomainPlacement)}setAppFunctions(){this.app.extractClass=t=>{if(t&&typeof t.className<"u"){let e=t.className.replace(/\s/g,".").split(".")[0];if(e)return e.replace(`${this.app.widgetParams.WIDGET.id}`,"")}return""},this.app.getCurrentTimestamp=()=>Math.floor(Date.now()/1e3),this.app.prepareNiceHref=(t,e,i)=>{let s="",a=this.app.clickTracking,p=this.app.teaserData[t];if(!(!p||p?.type!==H.Teaser)){if(this.app.isAzerionTeaser(null,t)&&(a=""),p.coopType!==z.InternalExchange&&p.sdl==1){if(s=a,p.dl!=="")s+=p.dl;else{let d=decodeURIComponent(p.source.replace(/[`|',:\/?;$%&\(\)^*!@\s]/g,"")).toLowerCase(),f=decodeURIComponent(p.title.replace(/[`|',:\/?;$%&\(\)^*!@]/g,"")).replace(/\s/g,"_");s+=this.app.webProtocol+"//"+(d?d+"/":"")+f}a.length&&s.indexOf(a)!==-1&&(s=a+encodeURIComponent(s.replace(a,"")))}else s=this.app.prepareHref(t,e,i);return s}},this.app.prepareHref=(t,e,i)=>{let s="",a="",p=this.app.clickTracking,d=this.app.teaserData[t],f=this.app.getQueryParameterByName("dc"),m=this.getClickZone();if(this.app.isAzerionTeaser(null,t)&&(p=""),i&&this.app.context._mgExternalLinkChanger===1){let b=i.search;if(s=i.protocol+"//"+i.hostname+i.pathname,b.length){b=b.replace("?","");let k=b.split("&");for(let D=0;D=0?"&":"?")+a),this.app.transitParamsInit){let b=this.app.getQueryParameterByName("extclckid");b&&/[\&\?]extclckid\=/.test(s)===!1&&(s+=(s.indexOf("?")>=0?"&":"?")+"extclckid="+b)}if(d&&d.coopType!==z.InternalExchange&&d.coopType!==z.Azerion&&(this.app.antifraudBlock?.getAntifraudParams&&(s+=this.app.getAntifraudQueryParameter(s,e,i)),this.cappingRealShowTime&&/[\&\?]crst\=/.test(s)===!1&&(s+=(s.indexOf("?")>=0?"&":"?")+"crst="+this.cappingRealShowTime),this.widgetRealShowTime&&/[\&\?]wrst\=/.test(s)===!1&&(s+=(s.indexOf("?")>=0?"&":"?")+"wrst="+this.widgetRealShowTime)),this.app.context.transitType&&/[\&\?]trt\=/.test(s)===!1&&(s+=(s.indexOf("?")>=0?"&":"?")+"trt="+this.app.context.transitType),p.length&&s.indexOf(p)!==-1&&(s=p+encodeURIComponent(s.replace(p,""))),i&&/[\&\?]wct\=/.test(s)===!1&&this.getParameterFromLink(i,"wct")&&(s+=(s.indexOf("?")===-1?"?":"&")+this.getParameterFromLink(i,"wct")),d&&d.coopType!==z.InternalExchange&&d.coopType!==z.DirectPublisherDemand&&d.coopType!==z.Azerion){if(e?.type==="click"){let k=e.target,D="."+this.app.extractClass(k),w=k.tagName;if(w==="A"){let P=k.parentNode;w=P.tagName,D="."+this.app.extractClass(P)}s+=(s.indexOf("?")>=0?"&":"?")+"ce="+w+D}let b=this.app.getMuid();b.length&&s.indexOf("muid")<0&&(s+=(s.indexOf("?")>=0?"&":"?")+"muid="+b)}return this.app.context.transitThrownParams&&this.app.context.transitThrownParams.forEach(b=>{let k=this.app.getQueryParameterByName(b);k&&k.length>0&&(s=this.replaceUrlParam(s,b,k))}),s},this.app.getAntifraudQueryParameter=(t,e,i)=>{let s=this.app.antifraudBlock.getAntifraudParams(e,i);if(s){let a=this.app.id;return(t.indexOf("?")>=0?"&":"?")+"k="+a+"f"+s}return""},this.app.getTranslation=t=>{let e=this.app.widgetParams.GENERAL.translations;return t.search(/^\[\S*\]$/g)===0?e[t]?e[t]:"":t},this.app.getParentLink=t=>{for(;t&&t.tagName!=="BODY";){if(t.tagName==="A")return t;t=t.parentElement}return null},this.app.getParentElWithClass=(t,e)=>{try{for(;t&&t.tagName!=="BODY";){if(t.classList.contains(e))return t;t=t.parentElement}}catch{return null}return null},this.app.findClosest=(t,e)=>{let i;for(;t.parentNode;){i=t.parentNode.querySelectorAll(e);for(let s=0;s{let e=document.createElement("div");return e.innerHTML=t,e.firstChild},this.app.concatUniqueArray=(t,e)=>t.concat(e.filter(i=>t.indexOf(i)<0)),this.app.getExceptTeasersIds=t=>{let e=Number(this.app.globalSettings?.except_ads_limit)||150,i=this.app.context.document?.mgExceptIds?.[t]||[],s=[],a=[];switch(t){case z.Wages:s=this.app.context._mgExceptAds||[],a=this.app.exceptAdsList;break;case z.InternalExchange:s=this.app.context._mgIntExchangeNews||[];break;case z.Exchange:s=this.app.context._mgExchangeNews||[],a=this.app.exceptExchangeList;break}return s.length&&(a=this.app.concatUniqueArray(a,s)),i.length&&(a=this.app.concatUniqueArray(a,i)),a.length>e&&(a=a.slice(a.length-e)),a},this.app.tox64String=(t,e)=>{e=e||!1;let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s="",a,p,d,f,m,b,k,D=0;for(;D>2,m=(a&3)<<4|p>>4,b=isNaN(p)?64:(p&15)<<2|d>>6,k=isNaN(d)?64:d&63,s+=i.charAt(f)+i.charAt(m)+i.charAt(b)+i.charAt(k);return e===!0&&(s=s.replace("+","-").replace("/","_").replace("=","*")),s},this.app.hangNiceLinkListener=(t,e)=>{if(this.app.loadedDefault)return;let i=t.getAttribute("data-hash");return this.app.teaserData[i]&&this.app.teaserData[i].type===H.Teaser&&this.app.teaserData[i].sdl&&(this.app.teaserData[i].sdl=0),t[this.app.hrefAttr]=this.app.prepareHref(i,e,t),!0},this.app.eventsHangNiceLinkListener=t=>{t||(t=this.app.context.event);let e=t.target||t.srcElement;e.tagName!="A"&&(e=this.app.getParentLink(e),e===null)||e.hasAttribute("data-hash")&&this.app.hangNiceLinkListener(e,t)},this.app.isHiddenElement=t=>{for(;t.tagName!=="BODY";){if(t.style.position!=="fixed"&&t.offsetParent||t.style.visibility==="hidden"||t.style.display==="none")return!0;t=t.parentNode}return!1},this.app.random=(t,e)=>Math.floor(t+Math.random()*(e-t+1)),this.app.isTouchDevice=()=>"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.maxTouchPoints>0,this.app.getExpectedCountNews=()=>{let t=this.app.widgetParams.WIDGET.countNews,e=JSON.parse(this.app.widgetParams.WIDGET.mobileCountNews);if(this.app.isMobile()&&typeof e.mobile<"u"&&(t=e.mobile),this.app.widgetParams.WIDGET.adblockIntegration&&this.app.adBlockDetect()){for(let i in this.app.childWidgetsData)if(this.app.childWidgetsData.hasOwnProperty(i)&&this.app.childWidgetsData[i].isAdblockChild){t=this.app.childWidgetsData[i].childCountNews;break}}return t},this.app.isPassiveSupported=()=>{if(typeof this.app.passiveIsSupported<"u")return this.app.passiveIsSupported;this.app.passiveIsSupported=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){this.app.passiveIsSupported=!0}}))}catch{}return this.app.passiveIsSupported},this.app.getWidgetValue=(t,e)=>{let i=JSON.parse(this.app.widgetParams.WIDGET.childProperties);return this.app.originalId!==this.app.id&&typeof i[this.app.id]?.[t]<"u"?i[this.app.id][t]:e},this.app.isEnabledDoubleClick=()=>typeof this.app.servicerData.dcb<"u"}fixWrongExternalImages(){let t=this.app.root.getElementsByClassName("mg-wrong-image");if(t.length>0&&this.app.debugBlock.sendData("Wrong external images count: "+t.length),t.length)for(let e=0;e{let a=i.getBoundingClientRect();i.classList.add("mg-wrongImage"+e),i.src=s,this.app.stylesheetsBlock.add("wrongImage"+e,".mg-wrongImage"+e+" { width: "+a.width+`px !important;height: `+a.height+`px !important;object-fit: cover;-o-object-fit: cover;object-position: top;-o-object-position: top; }`),this.app.debugBlock.sendData("fixWrongExternalImages. "+JSON.stringify(a))},50)}}fixHeaderWidgetHeight(){let t="M"+this.app.widgetParams.WIDGET.siteId+"ScriptRootC"+this.app.widgetParams.WIDGET.id,e=this.app.context.document.getElementById(t);e||(e=this.app.getRoot()),e&&e.setAttribute("style","min-height:auto !important;")}getClickZone(){let t=JSON.parse(this.app.widgetParams.WIDGET.widgetClickZones);if(t.length===0||!t.top||!t.left||!t.right||!t.bottom)return"";let e=this.app.root.offsetHeight,i=this.app.root.offsetWidth,s=this.app.root.mouseX,a=this.app.root.mouseY,p={top:e/100*t.top,left:i/100*t.left,right:i-i/100*t.right,bottom:e/100*t.bottom},d=a<=p.top?0:a>=p.bottom?2:1,f=s<=p.left?0:s>=p.right?2:1;return[[2,3,4],[5,"",6],[7,8,9]][d][f]}getParameterFromLink(t,e){let i=t?.search;if(i==="")return null;let s=i.replace("?","").split("&");for(let a=0;a=0?t.replace(s,"$1"+i+"$2"):(t=t.replace(/[?#]$/,""),t+(t.indexOf("?")>0?"&":"?")+e+"="+i)}renderLazyBanners(t){this.app.root&&this.app.teaserData[t].type==="banner"&&this.app.renderBanners(!1,this.app.teaserData[t].iteration)}fixBackfillDomainPlacement(){if(typeof this.app.context._mgIsBackfillBanner<"u"){let t=this.app.root.querySelector(".mcdomain");if(!t)return;typeof this.app.context._mgBackfillStyles<"u"&&!this.app.widgetParams.WIDGET.customStylesEnabled?this.app.context._mgBackfillStyles.indexOf(".mcdomain-top")===-1&&this.app.root.querySelector(".mctitle")?.insertAdjacentElement("afterend",t):t.style.display="block"}}setAltToImages(){if(this.app.root){let t=this.app.root.getElementsByTagName("img");for(let e=0;e{if(t&&t.type==="_mgBannerInfo"){let e=this.app.root.querySelector(`#${t.id}`);if(!e)return;let i=this.app.teaserData[e.dataset.hash],s=Math.round(e.parentElement.getBoundingClientRect().width),a=Math.round(this.app.root.querySelector(".mgbox").getBoundingClientRect().width);if(t.isEmpty&&(e.style.display="none",e.parentElement.style.display="none"),t.height&&(e.style.height=t.height+"px",i.type===H.Banner)){let p=s>=.95*a&&s<=a?650:this.app.preRenderTeaserSizes[i.iteration-1].height+50;e.style.maxHeight=p+"px"}t.width&&i.type===H.Banner&&(e.style.width=t.width+"px",e.style.maxWidth=s+"px")}},!1)}catch{}}}});var ps={};Z(ps,{ResponseParserBlock:()=>Re});var Re,cs=q(()=>{C();B();J();xt();Re=class extends R{getParsedTeaserData(t,e){let i=this.getServicerTeaser(t),s=(1-parseFloat(i.price)/parseFloat(i.priceold))*100;return s<=1||s>100?(i.priceold="",i.discount=""):i.discount=s?`${Math.floor(s)}%`:"",e===1&&i.other?.type===z.Azerion&&(this.app.widgetCappingEnabled=!0),{type:H.Teaser,hash:i.hash,id:i.id,source:i.source,title:i.title,desc:i.desc,price:i.price,priceold:i.priceold,discount:i.discount,category:i.other.category,catId:i.other?.catId||null,icat:i.other?.icat||null,cta:i.other.cta??"",cdt:i.other.cdt??"",img:i.other.i?this.app.htmlEntities(i.other.i):this.app.blankImage,link:i.other.l??"",mirror:i.mirror,extd:i.other.extd,coopType:i.other.type??null,mediaType:i.other["media-type"],sdl:this.app.deviceType!==Ft.Desktop?0:i.other.sdl,dl:i.other.dl,clicktrackers:i.other.clicktrackers??[],imp:i.other.imp??[],impt:i.other.impt??[],jst:i.other.jst??[],iteration:e,page:this.app.pagesServicerData.length,cdomain:i.other.cdomain||null,ccid:i.other.ccid||null,ch:i.other.ch||null,isViewed:!1,dsa_link:i.other.dsa_link||null,bidPrice:i.other.b?parseFloat(i.other.b):0,requestId:i.other?.tri||null,nextUpIteration:i.other?.nextUpIteration||null}}getServicerTeaser(t){return{source:this.app.htmlEntities(t[0]),id:this.app.htmlEntities(t[1]),title:t[3]?this.app.prepareTitle(t[3]):"",desc:t[4]?this.app.prepareDesc(t[4]):"",mirror:this.app.widgetParams.WIDGET.widgetMirror,key:t[6],price:t[7]?this.app.htmlEntities(t[7]).replace(",00","").replace(new RegExp("[^0-9,]"),""):"",priceold:t[8]?this.app.htmlEntities(t[8]).replace(",00","").replace(new RegExp("[^0-9,]"),""):"",discount:"",other:t[10]?t[10]:{},hash:t[9]}}getParsedBannerData(t,e){(this.app.widgetParams.WIDGET.type==="in-article"&&this.app.widgetParams.WIDGET.autoPlacementStatus!=="off"||this.app.widgetParams.WIDGET.type==="in-article"&&this.app.widgetParams.WIDGET.autoPlacementStatus==="off"&&this.app.widgetParams.WIDGET.subType!=="in-article-carousel-super")&&(t.rs=!0);let s="mgBanner_"+this.app.widgetParams.WIDGET.id+"_"+this.app.pagesServicerData.length+"_"+e;return{type:H.Banner,id:s,hash:t.h,coopType:z.Wages,imp:t.imp??[],page:this.app.pagesServicerData.length,iteration:e,impt:t.impt??[],jst:t.jst??[],html:t.html,width:t.width??0,height:t.height??0,rs:t.rs??!1,useSecureIframe:!1,clickUrl:t.clickUrl,isViewed:!1}}getCustomBannerData(t,e){e===1&&(this.app.widgetCappingEnabled=!0),this.app.consentDataParams&&(typeof this.app.consentDataParams.gdpr<"u"&&typeof this.app.consentDataParams.gdpr_consent<"u"&&(t=t.replace(/\${GDPR}/g,String(this.app.consentDataParams.gdpr)).replace(/\${GDPR_CONSENT}/g,this.app.consentDataParams.gdpr_consent)),typeof this.app.consentDataParams.us_privacy<"u"&&(t=t.replace(/\${CCPA}/g,this.app.consentDataParams.us_privacy)));let i="mgBanner_"+this.app.widgetParams.WIDGET.id+"_"+this.app.pagesServicerData.length+"_"+e;return{type:H.Banner,hash:"",coopType:z.Wages,imp:[],page:this.app.pagesServicerData.length,iteration:e,impt:[],jst:[],html:t,id:i,width:0,height:0,rs:!1,useSecureIframe:!this.app.widgetParams.WIDGET.disableBannerSafeframe,clickUrl:"",isViewed:!1,isCustomBanner:!0}}getParsedGptData(t,e){let i=this.app.getWidgetValue("gptOptions",null);i&&(this.app.gptOptions=i);let s="mgGpt_"+this.app.widgetParams.WIDGET.id+"_"+this.app.pagesServicerData.length+"_"+e,a=Object.keys(this.app.preRenderTeaserSizes).filter(f=>this.app.preRenderTeaserSizes[f].position===e).map(f=>this.app.preRenderTeaserSizes[f])[0],p=t?.price?this.formatPrice(t.price):null,d=this.app.gptOptions?.price?"d"+this.formatPrice(this.app.gptOptions.price):null;return e===1&&(this.app.widgetCappingEnabled=!0),{id:s,type:H.Gpt,hash:"",coopType:z.Wages,page:this.app.pagesServicerData.length,iteration:e,imp:[],impt:[],jst:[],width:a?.width||0,height:a?.height||0,afrd:this.app.servicerData.afrd||0,divId:this.app.gptOptions.divId,slot:this.app.gptOptions.slot,lazy:this.app.gptOptions?.lazy||null,backfill:this.app.gptOptions?.backfill||null,lineItemFlow:this.app.gptOptions?.lineItemFlow||!1,isRendered:!1,isViewed:!1,slotPrice:p||d,loadAfterActivity:this.app.gptOptions?.loadAfterActivity||!1,loggingEnabled:this.app.gptOptions?.loggingEnabled||!1,refreshTime:this.app.gptOptions?.refreshTime||null,loadBackfillImmediately:this.app.gptOptions?.loadBackfillImmediately||!1,googleLazyEnabled:this.app.gptOptions?.googleLazyEnabled||!1,googleLazyOptions:this.app.gptOptions?.googleLazyOptions||null}}getAdUnitsFromJson(t){let e=[];return Array.isArray(t)&&t.forEach((i,s)=>{let a=s+1;if("gpt"in i){let p=this.getParsedGptData(i,a);e.push(p)}else if("html"in i){let p=this.getParsedBannerData(i,a);e.push(p)}else if(this.app.customBanners[this.app.id]?.[a]?.length>0){let p=this.getCustomBannerData(this.app.customBanners[this.app.id][a],a);e.push(p)}else{let p=this.getParsedTeaserData(i,a);e.push(p)}}),e}fillAdUnitsData(t){t.forEach(e=>{switch(e.type){case H.Teaser:this.fillTeaserData(e);break;case H.Banner:this.fillBannerData(e);break;case H.Gpt:this.fillGptData(e);break}})}fillTeaserData(t){this.app.teaserData[t.hash]=t,t.coopType===z.InternalExchange&&this.app.context._mgIntExchangeNews.indexOf(t.id)===-1&&this.app.context._mgIntExchangeNews.push(t.id),t.coopType===z.Wages&&t.extd!==1&&(this.app.exceptAdsList.indexOf(t.id)===-1&&this.app.exceptAdsList.push(t.id),(this.app.widgetParams.WIDGET.isNextUpAddWidget||this.app.widgetParams.WIDGET.nextUpEnabled)&&this.app.context._mgExceptAds.indexOf(t.id)===-1&&this.app.context._mgExceptAds.push(t.id)),t.coopType===z.Exchange&&this.app.exceptExchangeList.indexOf(t.id)===-1&&this.app.exceptExchangeList.push(t.id)}fillBannerData(t){this.app.teaserData[t.hash||t.id]=t,this.app.banners[t.id]=t}fillGptData(t){this.app.teaserData[t.id]=t}formatPrice(t){return parseFloat(String(t)).toFixed(2)}}});var ls={};Z(ls,{CookieBlock:()=>Ge});var Ge,hs=q(()=>{C();B();J();Ge=class extends R{constructor(t){super(t),this.name="CookieBlock",this.cookieStorage={},this.storageName=this.app.widgetParams.WIDGET.cookieStoragePrefix+"Storage"+(this.app.context[this.app.widgetParams.WIDGET.informerPrefix+"PageOffset"]?this.app.context[this.app.widgetParams.WIDGET.informerPrefix+"PageOffset"]:"")}getCookieValue(){if(this.app.widgetParams.WIDGET.disableCookies)return{};try{let t=this.app.context.document.cookie?.match(new RegExp("(?:^|; )"+this.storageName+"=([^;]*)")),e={};return t&&(e=JSON.parse(decodeURIComponent(t[1]))),e}catch{}}getCookie(){let t=this.getCookieValue();typeof t["C"+this.app.widgetParams.WIDGET.id]<"u"?this.cookieStorage=t["C"+this.app.widgetParams.WIDGET.id]:this.cookieStorage={}}setCookie(t){if(!this.app.widgetParams.WIDGET.disableCookies){let e=t||new Date(new Date().setFullYear(new Date().getFullYear()+1)).toUTCString(),i=this.app.isAmp()?";domain=.ampproject.net;expires="+e+";SameSite=None;Secure":";path=/",s=this.getCookieValue();Object.keys(this.cookieStorage).length&&(s["C"+this.app.widgetParams.WIDGET.id]=this.cookieStorage);try{if(Object.keys(s).length){let a=encodeURIComponent(JSON.stringify(s));this.app.context.document.cookie=this.storageName+"="+a+i}}catch{}}}}});var ds={};Z(ds,{StylesheetsBlock:()=>Oe});var Oe,ms=q(()=>{C();B();J();Oe=class extends R{constructor(t){super(t),this.name="StylesheetsBlock",this.isIE=typeof Proxy>"u",this.stylesDom={},this.isIE||(this.stylesDom=new Proxy(this.stylesDom,{set:(e,i,s)=>{let a=s.container,p=s.style;return e[i]&&delete this.stylesDom[i],this.inject(p,i,a),e[i]=s,!0},has:(e,i)=>this.app.root.querySelector("style#"+i)===null&&typeof e[i]<"u"?!1:typeof e[i]<"u",deleteProperty:(e,i)=>(this.removeFromDom(i),delete e[i],!0)}))}add(t,e,i=null){t+="_"+this.app.uniqId,!(!this.isIE&&typeof i>"u"&&t in this.stylesDom)&&(e=e.replace(/((@media|@supports not) \([^(]*\) {)/g,"$1}"),e=e.replace(/((?:^|}|,|;)\s*)((?:\w+)?\.(?:mc|mg|row)[\-\w]+)/g,"$1"+this.app.getMainCssSelector()+" $2"),e=e.replace(/(((@media|@supports not) \([^(]*\) \{)\})/g,"$2"),e=e.replace(/video-cdn\.(.+)\/mgPlayer/g,this.app.currentSubnetDomain),e.length&&(this.isIE?(this.removeFromDom(t),this.inject(e,t,i)):this.stylesDom[t]={style:e,container:i}))}remove(t){t+="_"+this.app.uniqId,!this.isIE&&t in this.stylesDom?delete this.stylesDom[t]:this.removeFromDom(t)}removeFromDom(t){let e=this.app.root.querySelector("#"+t);e&&e.parentNode.removeChild(e)}inject(t,e,i){if(i){let s=i;if(s.className=this.app.widgetParams.WIDGET.modulePrefix+this.app.widgetParams.WIDGET.id,s.styleSheet)s.styleSheet.cssText=t;else{for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(this.app.context.document.createTextNode(t))}}else{let s=this.app.context.document.createElement("style");s.setAttribute("id",e),s.className=this.app.widgetParams.WIDGET.modulePrefix+this.app.widgetParams.WIDGET.id,s.type="text/css",(typeof this.app.realRoot<"u"?this.app.realRoot:this.app.root).appendChild(s),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(this.app.context.document.createTextNode(t))}}}});var fs={};Z(fs,{AdvertLinkBlock:()=>Ne,AdvertLinkSettings:()=>jt});var jt,Ne,us=q(()=>{C();B();J();(function(x){x[x.Off=0]="Off",x[x.LogoAndTitle=1]="LogoAndTitle",x[x.OnlyTitle=2]="OnlyTitle",x[x.OnlyLogo=3]="OnlyLogo"})(jt||(jt={}));Ne=class extends R{constructor(t){super(t),this.name="AdvertLinkBlock",this.addHook("beforeLoadNewsHooks",this.refreshAdvertLink)}parseAdvertLink(t){let e="",i=t.indexOf(e)>t.length/2;return i&&this.removeElements(this.app.root.getElementsByClassName("mg_addad"+this.app.id)),(i||this.app.countLoadBlocks===0)&&(t.indexOf(e)>=0?t=t.replace(e,this.app.tickerPrefix):t=this.app.tickerPrefix+t),t}refreshAdvertLink(){let t=this.getAdvertLinkValue(),e=!1,i=this.app.widgetParams.WIDGET.adBlockChangeStyles;if(this.app.widgetParams.WIDGET.adblockIntegration&&(e=this.app.adBlockDetect()),t||e&&i)try{let s=this.getAdLinkBlock()?.replace(/%id/g,String(this.app.id)),a="";e?a=this.app.getTranslation("[WIDGET_TITLE_PROMOTED_CONTENT]"):a=this.app.getTranslation(this.app.widgetParams.WIDGET.widgetTitle);let p=navigator.language.substr(0,2),d=this.app.widgetParams.WIDGET.availableLangs.indexOf(p)!==-1?p:"";this.app.widgetParams.WIDGET.useConstructor&&(a=this.app.context.widgetConstructor.getWidgetTitle()),s=s.replace("%WIDGET_TITLE%",a),s=s.replace("%lang/",d.length?d+"/":""),s=s.replace(/\((\'|\")?\/\//g,"($1"+this.app.webProtocol+"//"),s=s.replace('src="//','src="'+this.app.webProtocol+"//"),s=s.replace('href="//','href="'+this.app.webProtocol+"//");let f=this.app.widgetParams.WIDGET.adLinkHref;if(!f.length){f=this.app.subnetMirrorsUtm;let b=this.app.context.document.location?.hostname;if(this.app.context!==this.app.context.top){let k=this.app.context.document.referrer?.match(/:\/\/(.[^/]+)/);k!==null&&(b=k[1])}f=f.replace("{domain}",b)}this.app.tickerPrefix=s.replace(/%utm/,f);let m=document.createElement("div");if(e&&i)m.innerHTML=this.app.tickerPrefix;else{if(t===jt.LogoAndTitle)return;m.innerHTML=this.app.tickerPrefix,t===jt.OnlyTitle&&this.removeElements(m.getElementsByClassName("mg_addad"+this.app.id)),t===jt.OnlyLogo&&(this.removeElements(m.getElementsByClassName("mghead")),this.removeElements(m.getElementsByClassName("mghead"+this.app.id)))}this.app.tickerPrefix=m.innerHTML}catch{}else this.app.tickerPrefix=""}getAdvertLinkValue(){return Number(this.app.widgetParams.WIDGET.adLink)}removeElements(t){for(let e=0;e"u"&&(i=this.app.widgetParams.WIDGET.widgetMirror),a[i]}}});var gs={};Z(gs,{SendDimensionsBlock:()=>Ve});var Me,Ve,xs=q(()=>{C();B();J();xt();Me={title:"Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum",domain:"Lorem ipsum dolor",description:"Lorem ipsum dolor sit amet Lorem ipsum"},Ve=class extends R{constructor(t){super(t),this.childMarginFixPixels=1,this.adblockMinWidgetWidth=500,this.adblockMaxPercentage=0,this.bannerWidth=300,this.bannerHeight=250,this.bannerMinHeight=220,this.name="SendDimensionsBlock",this.isAdblock=this.app.widgetParams.WIDGET.adblockIntegration&&this.app.adBlockDetect(),this.isBannerMacros=this.app.templateText.indexOf("$banner")!==-1||this.app.templateText.indexOf('data-template-schema="banner"')!==-1,this.isBannerAllowed=this.app.widgetParams.WIDGET.bannersEnabled&&this.isBannerMacros&&!this.isAdblock,this.bannerStretchHeight=this.app.isMobile()?280:this.bannerHeight,this.storageKey=`${(this.isAdblock?"_mgAdbDimsData":"_mgDimsData")+this.app.widgetParams.WIDGET.id}`,this.isPlaceReservation=this.app.widgetParams.WIDGET.usePlaceReservation&&!this.app.isShowedUpFormat,this.styleAppliedPromise=new Promise(e=>{this.styleAppliedResolver=e}),this.checkStorageDimsData()}waitForStyleApplied(){return this.styleAppliedPromise}checkStylesApplied(){let t,e=null,i=()=>{if(e=this.app.root?.getElementsByClassName("mgbox")[0],e&&this.app.context.getComputedStyle(e).textAlign==="center"){clearInterval(t),this.styleAppliedResolver();return}};i(),t=setInterval(()=>{i()},50)}calcPreRenderingBlock(){this.app.precalcRect={},this.app.preRenderTeaserSizes={},this.app.preRenderImageSizes={},this.teasers=[].slice.call(this.app.root.getElementsByClassName("mgline")),this.isAdblock&&this.reformatForAdblock(),typeof this.app.iframeSizeChangerBlock?.initIframeSizeChange=="function"&&this.app.iframeSizeChangerBlock.initIframeSizeChange();let t=this.app.root.getBoundingClientRect();this.app.precalcRect.width=Math.ceil(t.width?t.width:t.right-t.left),this.app.precalcRect.height=Math.ceil(t.height?t.height:t.bottom-t.top)-this.childMarginFixPixels,this.app.requestParams.w=this.app.precalcRect.width,this.app.requestParams.h=this.app.precalcRect.height;for(let e=0;ethis.app.preRenderTeaserSizes[p]);e.every(p=>p.height>=this.bannerHeight&&p.width>=this.bannerWidth)&&(this.app.requestParams.ident_p=!0);let i=e.reduce((p,d)=>{let f=`${d.width}x${d.height}`,m=p[f]||[];return{...p,[f]:[...m,d.position]}},{});this.app.requestParams.sz=Object.keys(i).join(";"),this.app.requestParams.szp=Object.keys(i).map(p=>i[p]).join(";");let s=e[0].top,a=e.reduce((p,d)=>{let f=d.top+(s<0?-s:0),m=p[f]||[];return{...p,[f]:[...m,d.position]}},{});this.app.requestParams.szl=Object.keys(a).map(p=>a[p]).join(";")}this.updateStorageDimsData(),this.cleanAfterPrerender(),this.performAfterPrerender()}cleanAfterPrerender(){this.app.root=this.app.realRoot;let t="preRenderingBlock"+this.app.widgetParams.WIDGET.id+"_"+this.app.uniqId,e=this.app.root;this.app.root.parentNode.id===t&&this.app.root.parentNode.parentNode!=null&&(e=this.app.root.parentNode.parentNode),e.querySelector("#"+t)!==null&&e.removeChild(e.querySelector("#"+t)),this.app.loadedType="",this.app.countLoadBlocks=this.app.countLoadBlocksContainer,this.app.template="",delete this.app.teaserData[""]}performAfterPrerender(){this.app.root.style.overflow="visible",this.app.root.style.visibility="visible",this.isPlaceReservation&&(this.app.root.style.width=this.app.precalcRect.width+"px",this.app.root.style.height=this.app.precalcRect.height+"px"),this.addHook("afterLoadNewsHooks",()=>{this.app.widgetParams.WIDGET.type==="banner"&&Math.ceil(this.app.root.querySelector(".mgbox")?.getBoundingClientRect().width)>this.app.precalcRect.width&&(this.app.root.style.overflow="hidden"),this.isPlaceReservation&&(this.app.root.style.width="auto",this.app.root.style.height="auto"),this.adblockMaxPercentage>0&&this.changeWidgetWidth()})}checkStorageDimsData(){try{if(this.app.context.localStorage){let t=null,e=this.app.getLct(1736337161),i=F.widgetBuilder,s=Math.ceil(this.app.getRoot().getBoundingClientRect().width),a=JSON.parse(this.app.context.localStorage.getItem(this.storageKey)||"[]").filter(p=>p.rootWidth===s?p.lct===e&&p.hashCommit===i?(t=p,!0):!1:!0);t&&(this.app.precalcRect=t.precalcRect,this.app.preRenderTeaserSizes=t.preRenderTeaserSizes,this.app.preRenderImageSizes=t.preRenderImageSizes,t.adblockMaxPercentage&&(this.adblockMaxPercentage=t.adblockMaxPercentage),Object.keys(t.requestParams).forEach(p=>{this.app.requestParams[p]=t.requestParams[p]}),this.addHook("beforeInitHooks",this.performAfterPrerender)),this.app.context.localStorage.setItem(this.storageKey,JSON.stringify(a))}}catch{}}updateStorageDimsData(){let t=["w","h","ident_p","sz","szp","szl","limitads"],e={};e.requestParams={},e.precalcRect=this.app.precalcRect,e.preRenderTeaserSizes=this.app.preRenderTeaserSizes,e.preRenderImageSizes=this.app.preRenderImageSizes,e.lct=this.app.getLct(1736337161),e.hashCommit=F.widgetBuilder,e.rootWidth=Math.ceil(this.app.getRoot().getBoundingClientRect().width),this.adblockMaxPercentage>0&&(e.adblockMaxPercentage=this.adblockMaxPercentage),Object.keys(this.app.requestParams).forEach(i=>{t.indexOf(i)!==-1&&(e.requestParams[i]=this.app.requestParams[i])});try{if(this.app.context.localStorage){let i=JSON.parse(this.app.context.localStorage.getItem(this.storageKey)||"[]");i.push(e),this.app.context.localStorage.setItem(this.storageKey,JSON.stringify(i))}}catch{}}preparePrerenderData(t){let e=this.app.context.document.createElement("div"),i=this.app.context.document.createElement("div"),s=t||this.app.getExpectedCountNews(),a=[],p="preRenderingBlock"+this.app.widgetParams.WIDGET.id+"_"+this.app.uniqId;if(e.id=p,e.style.visibility="hidden",i.id=this.app.root.id,i.style.padding=`${this.childMarginFixPixels}px 0 0 0`,i.style.margin=`-${this.childMarginFixPixels}px auto 0 auto`,e.appendChild(i),this.app.loadedType="goods",this.app.realRoot=this.app.root,this.app.countLoadBlocksContainer=this.app.countLoadBlocks,this.app.root.appendChild(e),this.app.root=i,this.app.isShowedUpFormat&&this.app.widgetParams.WIDGET.type!=="mobile-widget"){let d=`#${p} {position: fixed;bottom: -150%;left: -150%;width: 100%; opacity: 0;}#${p} div.mgbox {position: relative !important;}`;this.app.stylesheetsBlock.add("preRender",d),this.app.widgetParams.WIDGET.popup&&(this.app.widgetParams.WIDGET.type==="mobile-exit"?this.app.mobileExitBlock.updateWrapperWidth(e):this.app.popupBlock.updateWrapperStyles(e))}for(let d=1;d<=s;d++)a.push({type:H.Teaser,coopType:z.Wages,hash:"",id:d.toString(),source:Me.domain,title:Me.title,desc:Me.description,img:this.app.blankImage,price:"",priceold:"",discount:"",iteration:d,imp:[],impt:[],clicktrackers:[],jst:[],category:"",catId:null,icat:null,cdt:"",cta:"",dl:"",extd:0,link:"",mediaType:"",mirror:"",page:1,sdl:0,dsa_link:null,bidPrice:0,requestId:null,nextUpIteration:null});return this.app.teaserData[""]=a[0],a}prerenderNews(t){if(this.app.root&&t){this.app.fallbackMode&&this.app.countLoadBlocks===0&&(this.app.root.innerHTML=""),this.app.advertLinkBlock.refreshAdvertLink(),t=this.app.advertLinkBlock.parseAdvertLink(t),this.addPreRenderTemplate(t);let e=this.app.root.getElementsByTagName("a");for(let i=0;i`;let f=this.teasers[e-1].getBoundingClientRect(),m=this.app.root.getBoundingClientRect();if(f.width>=this.bannerWidth&&f.height>=this.bannerStretchHeight){d=!0;let b=this.app.root.parentNode;for(;b&&typeof b.tagName<"u"&&b.tagName!=="BODY";){let k=b.getBoundingClientRect();if(k.width