Home Trending Iron Chef’s Michael D Symon Before and After Weight Loss: How Did He Lose Weight?
Trending
ByDerick ScholzUpdated December 14, 20233 Mins read737
houseandwhips.com – Michael D. Symon from Iron Chef has stunned many with his recent weight loss as he looks completely different in his before and after pictures. He lost weight following a nutritious diet and tight fitness regimen.
Michael D. Symon is an American chef, restaurateur, television personality, and author who can be seen on Food Network shows such as Iron Chef America, and The Best Thing I Ever Ate, as well as Cook Like an Iron Chef on the Cooking Channel and The Chew on ABC. He has also contributed to magazines such as Bon Appétit, Esquire, Food Arts, Gourmet, Saveur, and O, The Oprah Magazine.
However, Michael Symon has recently gained more popularity due to his weight loss journey. The 54-year-old chef appears completely different than he used to be. So, if you’re curious to know the actual secret behind his transformation, we’re here to help.
There are moreweight loss stories of David Tennantand Robert Jenrickthat you might like.
Details on Michael D. Symon’s Weight Loss Journey: Before and After Pictures Compared!
As we know, Michael D. Symon (@chefsymon) is a well-known chef who has built out a name for himself in the food industry. However, he has recently been a hot topic in the fitness community for his inspirational weight loss journey. His adoption of a regular workout regimen and nutritious diet, which have helped him lose weight and enhance his general well-being, have been crucial to his transformation.
Michael Symon before and after weight loss.
Image Source: Venture jolt
But if you’re not aware, the American chef,’s weight loss procedures and motivations were not initially made public. He made an effort to hide the reasons behind his diet, exercise, and weight loss regimen, but after making multiple TV appearances and subsequent interviews, he came to realize that he couldn’t hide it forever.
According to Michael Symon, his diagnosis of rheumatoid arthritis at the age of 20 seems to go against the grain of the career he had chosen, as chefs must stand for long periods and use a broad array of instruments that require regular grasping.
It was a very uncomfortable experience for him because the condition is an autoimmune disease that leads the immune system to assault body cells. To manage this uncommon illness, Michael had to restrict his food.
As a result, he mainly relied on food, his expertise, to solve his health difficulties. It was a very uncomfortable experience for him because the condition is an autoimmune disease that leads the immune system to assault body cells. To manage this uncommon illness, he had to restrict his food. As a result, he mainly relied on food, his expertise, to solve his health difficulties.
Likely, Michael Symon was also said to have discus lupus, an illness caused by severe rashes that worsened when exposed to sunlight. These two medical issues pushed him to embrace a healthy diet and exercise regimen, which has helped him maintain his health and appearance.
His weight loss plan was simple. Instead of complicated training programs, he focuses on his diet and walks more than 20,000 steps every day. He meditates frequently to maintain a healthy weight.
Comparing, his before and after images, his diet appears to be very effective. According to him, hisweight-loss strategy includes an anti-inflammatory diet low in processed carbs and sugar. Red meat and processed bread were also excluded from his diet. Furthermore, these foods cause inflammation. After discovering that these foods were his triggers, he decided to eliminate them from his diet.
Furthermore, Michael Symon opened Lolita, a restaurant in Cleveland, along with his wife, Liz Symon,in 2005. Lolita, his restaurant, was a huge success. In the first season of the television show Best Thing I’ve Ever Eaten, he advertised the restaurant but did not reveal his weight loss regimen. However, following multiple appearances on TV shows, he was anticipated to share his diet and fitness routine.
Take aGlimpse Into Michael Symon’s Culinary Journey!
Michael Symon‘s culinary adventure began at a young age, influenced by his Greek and Sicilian ancestors, who developed his unique style, which is defined by robust flavors and a keen awareness of the intricacies of Mediterranean cuisine. After formal study at the Culinary Institute of America, he embarked on a culinary voyage, working in renowned kitchens across the United States.
Michael Symon is a chef, restaurateur, television personality, and author from the USA.
Image Source: The SUN US
However, his career was transformed when he won the renowned title of Iron Chef on the Food Network‘s Iron Chef America. This propelled him to culinary glory, and he became a household name as a result. He expanded his culinary empire by opening critically renowned restaurants such as Lola and Mabel’s BBQ in Cleveland.
Currently, Michael Symon’s influence extends beyond the kitchen; he’s a compelling television personality, frequently appearing on series like The Chew and Symon’s Dinners Cooking Out. His cookbooks, such as Live to Cook and Carnivore, have received global praise and continue to inspire both budding chefs and amateur cooks.
To summarise, he is a culinary luminary whose passion for food, dedication to quality, and approachable demeanor have left an everlasting effect on the culinary world.
`},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}
',adTypes:"pg,r",crossId:1297315,widgetPathES5:"https://jsc.mgid.com/h/o/houseandwhips.com.1297315.es5.js",widgetPathES6:"https://jsc.mgid.com/h/o/houseandwhips.com.1297315.es6.js",useTimePerformance:!0,publisherId:57629905,loggingConsentEnabled:!1,blurEnabled:!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,AssertiveBlock:!1,DefractalBlock:!1}},BLOCKS:{BlurBlock:!1,ColorBlock:!1,ResponsiveBlock:!0}},"1729454":{WIDGET:{id:1729454,_constructor:'{"type":"smart","subType":"smart-blur","font":"arial","textPosition":"bottom","rows":15,"cols":1,"width":0,"kind":"wages","formatChanged":true,"imageScaleOnHover":"","imageShadow":"","frequencyCappingShow":3,"frequencyCappingTime":2,"interstitialAfter":3,"popupFrequency":15,"passageFrequency":60,"toasterInactivityTime":8,"button":1,"widgetTypeDescription":1,"autoplacement":"off","is_show_ad_marker":0,"widgetFormatId":7,"mctable":{"styles":{"borderWidth":0,"borderColor":"","backgroundColor":""}},"mctitle":{"styles":{"fontSize":"17","fontWeight":"bold","fontStyle":"normal","textDecoration":"none","textAlign":"center","color":"#515150","text-transform":"uppercase"}},"mcprice":{"show":"false","styles":{"fontSize":14,"fontWeight":"bold","color":"#2a3a7b","textAlign":"left","fontStyle":"normal","textDecoration":"none","font":"verdana"}},"widgetTitleSettings":{"styles":{"fontSize":14,"font":"arial","color":"#2b397b","text-transform":"uppercase"}},"mcimage":{"size":200,"size-width":492,"size-height":277,"styles":{"borderWidth":0,"borderColor":"#ffffff","borderStyle":"solid","padding":0}},"mcdesc":{"styles":{"display":"none","fontSize":11,"fontWeight":"normal","color":"#666666","textAlign":"center","fontStyle":"normal","textDecoration":"none","font":"verdana"}},"mcdomain":{"styles":{"display":"block","fontSize":10,"fontWeight":"normal","color":"#bbbbbb","textAlign":"center","fontStyle":"normal","textDecoration":"none","font":"arial"}},"mgline":{"styles":{"borderStyle":"solid","borderWidth":0,"borderColor":"#ffffff","height":"120","width":"150","borderRadius":"0","margin":"2"}},"mgbox":{"styles":{"maxWidth":1220}},"media":{"position":"bottom","minWidth":250,"minHeight":150,"opacity":80,"duration":1,"videoOverlay":1},"theme":"#2b397b","colsMobile":2,"is_int_exchange":"0","previewImg":"https:\\/\\/cdn.mgid.com\\/images\\/draw-widget-preview.jpg","mobileWidgetImg":"https:\\/\\/cdn.mgid.com\\/images\\/mobile-widget-preview.png","price":false,"imageFormat":46,"imgType":"super","scrollEffect":"0","showWidgetButton":"true","showEffectButton":"false","colorButton":"","blur":"auto","customGradient":"","frequencyOfDisplay":"30","activateAdsAfterScroll":"0.00","notificationPosition":"top","isToaster":"","isDragDown":"","isInterstitial":"","teaserCardShadow":"0","teaserFixedWidth":"0"}',subType:"smart-blur",goodsPartUid:58059962,type:"smart",I:"MarketGidInfC1729454",doubleclickParameters:'{"1":{"borderTop":{"max":1,"min":0,"percent":100}},"2":{"borderLeft":{"max":1,"min":0,"percent":100}},"3":{"borderRight":{"max":1,"min":0,"percent":100}},"4":{"borderBottom":{"max":1,"min":0,"percent":100}}}',countNews:15,isResponsive:!1,customBanners:'{"1729454":[]}',templateStyles:".mgbox * {-webkit-transition:all .25s;-moz-transition:all .25s;-ms-transition:all .25s;-o-transition:all .25s;transition:all .25s;}.mgbox {padding:0 !important;position:relative !important;text-align:center;vertical-align:top !important;margin:0 auto;border-style:none;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:100% !important;transition:none !important;box-sizing:border-box;width:100%;max-width:680px;font-family:Arial, sans-serif;font-weight:500;}.mgheader {border-bottom:1px solid #ccc !important;padding-bottom:3px;margin-bottom:10px;display:flex;align-items:center;justify-content:space-between;}.mgheader div a {position:relative;top:0px;}.mgheader div img {position:relative;height:22px;}.mghead {color:#48484f;font-size:14px;line-height:1.3;text-transform:uppercase;margin:5px 0 0 0;font-family:inherit;font-weight:inherit;}.mgline {background:#081010;cursor:pointer;display:inline-block;_overflow:hidden;*zoom:1;*display:inline;border:none;box-sizing:border-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;word-wrap:break-word;vertical-align:top;position:relative;}.mgline .allink {height:100%;width:100%;display:block;position:absolute;cursor:pointer;z-index:999;}.mgline .image-with-text {width:100%;height:auto;max-width:100%;margin:0 auto;position:relative;}.mgline .image-container {position:relative;}div.mcimg {padding:0;text-align:center;display:block;position:relative;background:#081010;}.mgline:hover:not(.vrline) div.mcimg {opacity:0.5 !important;}img.mcimg {border-style:none;width:100%;height:auto !important;max-width:680px;max-height:453px;box-sizing:border-box;display:block;margin:0;}.text-elements a {text-decoration:none;}.mgline .text_on_hover a {top:0;left:0;}.mctitle {text-align:left;}.mctitle a {font-weight:bold;font-size:23px;line-height:1.1;font-style:normal;text-decoration:none;color:#fff;font-family:Arial, sans-serif;}.mgline:hover .mctitle a {color:#fff;text-decoration:none;}.mcdesc {display:block;text-align:left;}.mcdesc a {font-weight:normal;font-size:14px;line-height:20px;font-style:normal;text-decoration:none;color:#a9a9a9;font-family:Arial, sans-serif;}.mcdomain {display:block;text-align:left;}.mcdomain a {font-weight:bold;font-size:15px;line-height:16px;letter-spacing:1px;font-style:normal;text-decoration:none;color:#a9a9a9;font-family:Verdana, sans-serif;display:block;overflow:hidden;text-transform:uppercase;opacity:0.6;}@supports not (flex-wrap:wrap) {.mgbox {display:block !important;}.mgline {display:inline-block !important;}}img.mcimgad {position:absolute;bottom:0;right:0;z-index:10;opacity:0.7;width:auto;max-width:70px;height:20px;}.mgline .text-elements {padding-top:20px;box-sizing:border-box;}.mgline {overflow:hidden;}.mgline .image-with-text {height:100%;}.mctitle a {line-height:1.1 !important;}img.mcimgad {z-index:15;}/* rows */ .row1, .row2, .row3, .row4 {display:flex;flex-direction:row;flex-wrap:wrap;width:100%;max-width:100%;position:relative;margin:0 0 5px;}.row1 div.mcimg, .row2 div.mcimg, .row3 div.mcimg, .row4 div.mcimg {height:100% !important;}.row1 .image-container, .row2 .image-container, .row3 .image-container, .row4 .image-container, .row1 .image-gradient, .row2 .image-gradient, .row3 .image-gradient, .row4 .image-gradient {height:100%;}/* row1 */ .row1 .mgline {width:100%;max-width:100%;}.row1 .mgline img.mcimgad {left:0;}.row1 .mgline .text-elements {position:absolute;right:0;width:62%;background:linear-gradient(to left, #081010 70%, rgba(8, 16, 16, 0.85) 77%, rgba(8, 16, 16, 0.6) 85%, rgba(8, 16, 16, 0) 98%, rgba(8, 16, 16, 0) 100%);height:100%;}.row1 .mgline .text_on_hover {position:absolute;right:0;padding:25px 25px 25px 10px;z-index:10;box-sizing:border-box;height:100%;width:calc(100% - 35px);}.row1 .mgline .mctitle {text-align:right;}.row1 .mgline .mcdesc {margin-top:5px;text-align:right;}.row1 .mgline .mcdomain {position:absolute;bottom:15px;right:25px;text-align:right;}.row1 .mgline .image-container:before {content:\\'\\';display:inline-block;position:absolute;left:0;width:100%;height:100%;z-index:10;}.row1 .mgline:not(.vrline) div.mcimg {float:left;width:65%;}/* row2 */ .row2 .mgline {width:49.5%;max-width:49.5%;}.row2 .mgline .text-elements {height:calc(100% - 166px);}.row2 .mgline .text_on_hover {position:absolute;left:0;bottom:0;padding:10px 25px 35px;z-index:10;}.row2 .mgline .mcdesc {margin-top:5px;max-height:32px;overflow:hidden;}.row2 .mgline .mcdesc a {font-size:12px;line-height:1.1;}.row2 .mgline .mcdomain {position:absolute;bottom:15px;}.row2 .mgline .image-container:before {content:\\'\\';display:inline-block;position:absolute;left:0;width:100%;height:100%;z-index:10;}.row2 .mgline img.mcimgad {bottom:90px;}.row2 .mgline:first-child {margin-right:1%;}/* row3 */ .row3 .mgline {width:100%;max-width:100%;}.row3 .mgline:not(.vrline) div.mcimg {float:right;width:65%;}.row3 .mgline .image-container:before {content:\\'\\';display:inline-block;position:absolute;left:0;width:100%;height:100%;z-index:10;}.row3 .mgline .text-elements {position:absolute;left:0;width:62%;background:linear-gradient(to right, #081010 70%, rgba(8, 16, 16, 0.85) 77%, rgba(8, 16, 16, 0.6) 85%, rgba(8, 16, 16, 0) 100%, rgba(8, 16, 16, 0) 100%);height:100%;}.row3 .mgline .text_on_hover {position:absolute;left:0;padding:25px 10px 25px 25px;z-index:10;height:100%;box-sizing:border-box;width:calc(100% - 35px);}.row3 .mgline .mcdesc {display:block;text-align:left;margin-top:5px;}.row3 .mgline .mcdomain {position:absolute;bottom:15px;}/* row4 */ .row4:first-child .mctitle a {font-size:12px;}.row4 .mgline {width:49.5%;}.row4 .mgline:first-child {margin-right:1%;width:300px;height:250px;align-self:center;}.row4 .mgline:first-child .image-with-text {position:initial;}.row4 .mgline:first-child .mctitle a {font-size:16px;}.row4 .mgline:first-child .mcdomain a {font-size:12px;}.row4 .mgline:last-child {width:calc(99% - 300px);}.row4 .mgline .image-container:before {content:\\'\\';display:inline-block;position:absolute;left:0;width:100%;height:100%;z-index:10;}.row4 .mgline .text_on_hover {position:absolute;left:0;bottom:0;padding:10px 25px 35px;z-index:10;}.row4 .mgline .mctitle a {font-size:23px;}.row4 .mgline .mcdesc {margin-top:5px;max-height:32px;overflow:hidden;}.row4 .mgline .mcdesc a {font-size:12px;line-height:1.1;}.row4 .mgline .mcdomain {position:absolute;bottom:15px;}.row4 .mgline .text-elements {height:calc(100% - 140px);}.row4 .mgline div.mcimg, .row4 .mgline .image-container, .row4 .mgline .image-gradient {height:100%;}.row4 .mgline img.mcimgad {bottom:65px;}.row2 .text-elements, .row4 .text-elements {position:absolute;width:100%;z-index:10;bottom:0;}.row1 .mgline .mcdomain a, .row3 .mgline .mcdomain a {font-size:14px;}.row2 .mgline .mctitle a, .row4 .mgline .mctitle a {font-size:19px;}.row2 .mgline .mctitle, .row4 .mgline .mctitle {margin-bottom:5px;}.row2 .mgline .mcdesc, .row4 .mgline .mcdesc {display:none;}.row2 .mgline .mcdomain a, .row4 .mcdomain a {font-size:13px;}.row2 .mgline, .row2 .image-with-text, .row2 div.mcimg, .row2 image-container, .row2 image-gradient {height:280px;}.row1 .mgline .image-with-text, .row3 .mgline .image-with-text, .row4 .mgline .image-with-text {max-height:250px;overflow:hidden;}.row1 .mgline .text-elements, .row3 .mgline .text-elements {width:40%;height:100%;padding:0;}.row2 .mgline img.mcimg, .row4 .mgline img.mcimg {min-height:200px;object-fit:cover;}.row2 .mgline .text-elements, .row4 .mgline .text-elements {padding:0;height:calc(100% - 180px);}.row2 .mgline .text_on_hover, .row4 .mgline .text_on_hover {max-width:100%;padding:26px 25px 6px;height:100%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;}.row2 .mgline .mcdomain, .row4 .mgline .mcdomain {position:relative;bottom:0;float:left;margin:0;}.row1 .mgline .mctitle a, .row3 .mgline .mctitle a {font-size:19px;width:40%;}.row2 .mgline .mctitle a, .row4 .mgline .mctitle a {font-size:16px;}.row4 .mgline:first-child .mctitle a {font-size:12px;}.row4 .mgline:first-child .mcdomain a {font-size:10px;}.row4 .mgline .text_on_hover {padding-top:14px;}.row4 .mgline .image-with-text {height:280px;}.row4 .mgline img.mcimg {height:200px;}.row4 .mgline .mctitle a {font-size:12px;}.row4 .mgline .mcdomain a {font-size:10px;}@media (max-width:680px) {.mgbox {max-width:356px;}.row1 .mgline .text-elements, .row2 .mgline .text-elements, .row3 .mgline .text-elements, .row4 .mgline .text-elements {width:100%;bottom:0;background:linear-gradient(transparent, #081010 0%, rgba(8, 16, 16, 0.85) 10%, rgba(8, 16, 16, 0.6) 25%, rgba(8, 16, 16, 0) 70%);}.row2 .mgline, .row2 .image-with-text, .row2 div.mcimg, .row2 .image-container, .row2 .image-gradient, .row1 .mgline, .row1 .image-with-text, .row1 div.mcimg, .row1 .image-container, .row1 .image-gradient, .row3 .mgline, .row3 .image-with-text, .row3 div.mcimg, .row3 .image-container, .row3 .image-gradient {height:280px;}.row1 .mgline:not(.vrline) div.mcimg, .row3 .mgline:not(.vrline) div.mcimg {float:none;width:100%;}.row1 .mgline div.mcimg, .row3 .mgline div.mcimg {float:none;width:100%;}.row1 .mgline img.mcimg, .row3 .mgline img.mcimg {min-height:200px;object-fit:cover;}.row1 .mgline img.mcimgad {left:inherit;}.row1 .mgline .text-elements {width:100%;bottom:0;background:linear-gradient(to top, #081010 0%, rgba(8, 16, 16, 0.85) 10%, rgba(8, 16, 16, 0.6) 25%, rgba(8, 16, 16, 0) 70%);}.row1 .mgline .text_on_hover, .row3 .mgline .text_on_hover {position:absolute;right:0;bottom:0;padding:26px 25px 6px;width:100%;height:100%;box-sizing:border-box;}.row1 .mgline .mctitle {text-align:left;}.row1 .mgline .mcdesc, .row3 .mgline .mcdesc {margin-top:5px;max-height:32px;overflow:hidden;}.row1 .mgline .mcdesc a, .row3 .mgline .mcdesc a {line-height:16px;}.row1 .mgline .mcdomain {left:25px;right:inherit;}.row2 .mgline {width:100%;max-width:100%;}.row2 .mgline:first-child, .row4 .mgline:first-child {margin:0 auto 5px;}.row3 .mgline .text-elements {width:100%;bottom:0;background:linear-gradient(to top, #081010 0%, rgba(8, 16, 16, 0.85) 10%, rgba(8, 16, 16, 0.6) 25%, rgba(8, 16, 16, 0) 70%);}.row4 .mgline:last-child {width:100%;height:280px;}.row4 .mgline .image-with-text {max-height:none;}.mctitle, .mcdesc {width:100%;}.mctitle a {font-size:21px;}.mctitle, .mcdesc {float:left;text-align:left;}.mgline .text-elements {height:calc(100% - 120px);}.mgline {overflow:hidden;}.row1 .mgline .text-elements, .row2 .mgline .text-elements, .row3 .mgline .text-elements, .row4 .mgline .text-elements {height:100px;}.row1 .mgline .text_on_hover, .row2 .mgline .text_on_hover, .row3 .mgline .text_on_hover, .row4 .mgline .text_on_hover {padding:18px 25px 6px;width:100%;}.row1 .mgline .image-with-text, .row2 .mgline .image-with-text, .row3 .mgline .image-with-text, .row4 .mgline .image-with-text {max-height:280px;}.row1 .mgline .mctitle a, .row2 .mgline .mctitle a, .row3 .mgline .mctitle a, .row4 .mgline .mctitle a {font-size:14px;}.row1 .mgline .mcdomain a, .row2 .mgline .mcdomain a, .row3 .mgline .mcdomain a, .row4 .mgline .mcdomain a {font-size:12px;}.row1 .mgline img.mcimgad, .row2 .mgline img.mcimgad, .row3 .mgline img.mcimgad, .row4 .mgline img.mcimgad {bottom:90px;}.row1 .mgline .text_on_hover {left:0;right:initial;}.row1 .mgline .mcdomain {right:initial;}.row4 .mgline:first-child {width:100%;height:280px;}.row4 .mgline:first-child .mctitle a {font-size:14px;}.row4 .mgline:first-child .mcdomain a {font-size:12px;}.row4 .mgline .mcdomain a {font-size:12px;}.row1 .mgline .mcdomain, .row3 .mgline .mcdomain {bottom:5px;}.row1 .mgline .mctitle, .row3 .mgline .mctitle, .row1 .mgline .mcdesc, .row3 .mgline .mcdesc {float:none;text-align:left;}}@media screen and (-ms-high-contrast:active), (-ms-high-contrast:none) {img.mcimg {height:100% !important;}.row1 .mgline .image-with-text {height:249px !important;}.row3 .mgline .image-with-text {height:249px !important;}.row4 .mgline .image-with-text {height:250px !important;}.row2 .mcimg a, .row2 .mcimg div, .row2 img.mcimg, .row4 .mcimg a, .row4 .mcimg div, .row4 img.mcimg {height:100% !important;width:auto;}.row4 .mgline {max-height:250px;}.row1 .mgline, .row1 .mgline .text-elements, .row3 .mgline, .row3 .mgline .text-elements {max-height:250px;}.row1 .mgline:not(.vrline) div.mcimg, .row3 .mgline:not(.vrline) div.mcimg {width:100%;}.row1 .mgline .mctitle, .row3 .mgline .mctitle {max-width:50%;}}",widgetTemplate:'
{foreach}{if this.iteration == 1}
{/if}{if this.iteration == 2}
{/if}{if this.iteration == 4}
{/if}{if this.iteration == 5}
{/if}{if this.iteration == 6}
{/if}{if this.iteration == 8}
{/if}{if this.iteration == 9}
{/if}{if this.iteration == 10}
{/if}{if this.iteration == 12}
{/if}{if this.iteration == 13}
{/if}{if this.iteration == 14}
{/if}{if this.iteration == 16}
{/if}
{if $banner}{$banner}{/if}{if $teaser}
{/if}
{/foreach}
',adTypes:"",crossId:1729454,widgetPathES5:"https://jsc.mgid.com/h/o/houseandwhips.com.1729454.es5.js",widgetPathES6:"https://jsc.mgid.com/h/o/houseandwhips.com.1729454.es6.js",useTimePerformance:!1,publisherId:58059962,loggingConsentEnabled:!0,blurEnabled:!0,BLOCKS:{ConstructorBlock:!1,SendDimensionsBlock:!0,VersionControlBlock:!1,InternalExchangeBlock:!0,RetentionToolBlock:!1,BlurBlock:!0,GradientBlock:!1,ColorBlock:!0,PaginatorBlock:!1,AutoRefreshInformerBlock:0,RefreshTeaserAfterClickBlock:!0,IframeSizeChangerBlock:"0",RejectBlock:!0,ViewabilityRefreshBlock:!1,OriginTrialsBlock:!0,RenderClassicBlock:!0,RenderSchematicBlock:!1,ResponsiveBlock:!1,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,AssertiveBlock:!1,DefractalBlock:!1}},BLOCKS:{BlurBlock:!0,ColorBlock:!0,ResponsiveBlock:!1}}}});var _,K=q(()=>{C();B();_=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 h=this.name||this.constructor.name,g=[];return g.push(this.app.lifeCycleBlock.execute(`${t} hook ${h}`,m=>{try{a?(p=p||[],p.push(m),e.apply(this,p)):(e.apply(this,p),m())}catch(y){this.app.log(`${t} hook ${h}:`,"error",y),this.app.debugBlock.sendData(y.message),m()}},0,!1,!0)),a&&i!==999999&&g.push(this.app.lifeCycleBlock.execute("",m=>{m()},i,s,!0)),Promise.race(g)})}}}});var H,z,Ut,ft,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"})(Ut||(Ut={}));(function(x){x[x.MG=0]="MG",x[x.L=1]="L",x[x.AK=2]="AK",x[x.IM=3]="IM"})(ft||(ft={}));(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 Ot,lt,Te,zt,yt,Jr,kt,ae=q(()=>{C();B();(function(x){x.ping="ping",x.get="get",x.set="set",x.lock="lock",x.unlock="unlock"})(Ot||(Ot={}));(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:Ot.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:Ot.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:Ot.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:Ot.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:Ot.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"storage798483"}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,yt=zt.engine(lt.local),Jr=zt.engine(lt.session),kt=zt.engine(lt.page)});var zi={};Z(zi,{VideoMetricsBlock:()=>Se});var Se,$i=q(()=>{C();B();K();xt();Se=class extends _{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===ft.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 qi={};Z(qi,{NavigatorAgentDataBlock:()=>Pe});var $t,Pe,ji=q(()=>{C();B();K();(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 _{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,h,g,m)=>p+`"${h.brand}";v="${h.version}"${g!==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 Hi={};Z(Hi,{AmpRenderBlock:()=>De});var De,Ki=q(()=>{C();B();K();De=class extends _{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 Ji={};Z(Ji,{MgqBlock:()=>Jt});var Jt,Ee=q(()=>{C();B();K();Jt=class extends _{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]],h=a[0].split(".")[1]),typeof p[h]=="function"&&h!=="MgSensorInvoke"){try{p[h].apply(p,a.slice(1))}catch(g){this.app.log("mgq error:","error",g),this.app.debugBlock.sendData(`mgq error: ${g.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 Zi={};Z(Zi,{UtilsBlock:()=>Ce});var Ce,Yi=q(()=>{C();B();K();Ce=class extends _{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(),y={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},S=this.rectangleIntersection(y,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},D=this.rectangleIntersection(S,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(D,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)),h=Math.max(0,Math.min(e.bottom,i.bottom)-Math.max(e.top,i.top));return p*h/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 Xi=te(re=>{"use strict";C();B();Object.defineProperty(re,"__esModule",{value:!0});re.ConsentsBlock=void 0;var yr=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),h())},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(h){this.app.log("getGdprData -> "+h.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=yr});var ts={};Z(ts,{ConsentsBlock:()=>Be});var Qi,Be,es=q(()=>{C();B();K();Qi=ee(Xi()),Be=class extends _{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 Qi.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 is={};Z(is,{RequestBlock:()=>We});var We,ss=q(()=>{C();B();K();We=class extends _{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,h)=>{if(typeof navigator.sendBeacon=="function")try{navigator.sendBeacon(p),this.app.log(`Request beacon ${a} started`)}catch(g){this.app.log(`Request beacon ${a} error: `,"error",g),this._imgRequest(a,p)}else this._imgRequest(a,p)})}beaconBlob(t,e,i,s){this._send(t,e,{},s,(a,p,h)=>{if(typeof navigator.sendBeacon=="function")try{navigator.sendBeacon(p,i),this.app.log(`Request beaconBlob ${a} started`)}catch(g){this.app.log(`Request beaconBlob ${a} error: `,"error",g),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 h=this.app.context.document.createElement("SCRIPT");h.src=p,h.type="text/javascript",h.charset="utf-8",h.async=!0,s.onerror&&(h.onerror=s.onerror),s.dest?(s.dest.appendChild(h),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 as={};Z(as,{ContextBlock:()=>Le});var Le,rs=q(()=>{C();B();K();Le=class extends _{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 h=p.split("=");s.push({key:h[0],value:typeof h[1]<"u"?h[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 h=0;for(let g of a)g!==""&&g!=="c"&&g!=="v"&&g!=="wp"&&g!=="s"&&(e+=(h++!==0?"/":"")+g);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,h=>h.length===2?"-":h.length===1?".":h)}}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 ns={};Z(ns,{PageViewPixelBlock:()=>Ae});var Ae,os=q(()=>{C();B();K();Ae=class extends _{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(),h={};for(let g in p)p[g]&&(h[g]=`${g}=${p[g]}`);this.app.initServicerRequest&&this.app.request.pixel("pageView",this.app.webProtocol+"//"+this.app.widgetParams.WIDGET.countersDomain+"/pv/",h,{})}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 ps={};Z(ps,{MainBlock:()=>_e});var _e,cs=q(()=>{C();B();K();xt();_e=class extends _{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 h=decodeURIComponent(p.source.replace(/[`|',:\/?;$%&\(\)^*!@\s]/g,"")).toLowerCase(),g=decodeURIComponent(p.title.replace(/[`|',:\/?;$%&\(\)^*!@]/g,"")).replace(/\s/g,"_");s+=this.app.webProtocol+"//"+(h?h+"/":"")+g}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,h=this.app.teaserData[t],g=this.app.getQueryParameterByName("dc"),m=this.getClickZone();if(this.app.isAzerionTeaser(null,t)&&(p=""),i&&this.app.context._mgExternalLinkChanger===1){let y=i.search;if(s=i.protocol+"//"+i.hostname+i.pathname,y.length){y=y.replace("?","");let k=y.split("&");for(let S=0;S=0?"&":"?")+a),this.app.transitParamsInit){let y=this.app.getQueryParameterByName("extclckid");y&&/[\&\?]extclckid\=/.test(s)===!1&&(s+=(s.indexOf("?")>=0?"&":"?")+"extclckid="+y)}if(h&&h.coopType!==z.InternalExchange&&h.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")),h&&h.coopType!==z.InternalExchange&&h.coopType!==z.DirectPublisherDemand&&h.coopType!==z.Azerion){if(e?.type==="click"){let k=e.target,S="."+this.app.extractClass(k),w=k.tagName;if(w==="A"){let D=k.parentNode;w=D.tagName,S="."+this.app.extractClass(D)}s+=(s.indexOf("?")>=0?"&":"?")+"ce="+w+S}let y=this.app.getMuid();y.length&&s.indexOf("muid")<0&&(s+=(s.indexOf("?")>=0?"&":"?")+"muid="+y)}return this.app.context.transitThrownParams&&this.app.context.transitThrownParams.forEach(y=>{let k=this.app.getQueryParameterByName(y);k&&k.length>0&&(s=this.replaceUrlParam(s,y,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,h,g,m,y,k,S=0;for(;S>2,m=(a&3)<<4|p>>4,y=isNaN(p)?64:(p&15)<<2|h>>6,k=isNaN(h)?64:h&63,s+=i.charAt(g)+i.charAt(m)+i.charAt(y)+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},h=a<=p.top?0:a>=p.bottom?2:1,g=s<=p.left?0:s>=p.right?2:1;return[[2,3,4],[5,"",6],[7,8,9]][h][g]}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 ls={};Z(ls,{ResponseParserBlock:()=>Re});var Re,hs=q(()=>{C();B();K();xt();Re=class extends _{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!==Ut.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(g=>this.app.preRenderTeaserSizes[g].position===e).map(g=>this.app.preRenderTeaserSizes[g])[0],p=t?.price?this.formatPrice(t.price):null,h=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||h,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 ds={};Z(ds,{CookieBlock:()=>Ge});var Ge,ms=q(()=>{C();B();K();Ge=class extends _{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 gs={};Z(gs,{StylesheetsBlock:()=>Oe});var Oe,us=q(()=>{C();B();K();Oe=class extends _{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:()=>qt});var qt,Ne,xs=q(()=>{C();B();K();(function(x){x[x.Off=0]="Off",x[x.LogoAndTitle=1]="LogoAndTitle",x[x.OnlyTitle=2]="OnlyTitle",x[x.OnlyLogo=3]="OnlyLogo"})(qt||(qt={}));Ne=class extends _{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),h=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/",h.length?h+"/":""),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 g=this.app.widgetParams.WIDGET.adLinkHref;if(!g.length){g=this.app.subnetMirrorsUtm;let y=this.app.context.document.location?.hostname;if(this.app.context!==this.app.context.top){let k=this.app.context.document.referrer?.match(/:\/\/(.[^/]+)/);k!==null&&(y=k[1])}g=g.replace("{domain}",y)}this.app.tickerPrefix=s.replace(/%utm/,g);let m=document.createElement("div");if(e&&i)m.innerHTML=this.app.tickerPrefix;else{if(t===qt.LogoAndTitle)return;m.innerHTML=this.app.tickerPrefix,t===qt.OnlyTitle&&this.removeElements(m.getElementsByClassName("mg_addad"+this.app.id)),t===qt.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 ws={};Z(ws,{SendDimensionsBlock:()=>Ve});var Me,Ve,bs=q(()=>{C();B();K();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 _{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,h)=>{let g=`${h.width}x${h.height}`,m=p[g]||[];return{...p,[g]:[...m,h.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,h)=>{let g=h.top+(s<0?-s:0),m=p[g]||[];return{...p,[g]:[...m,h.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(1737733887),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(1737733887),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 h=`#${p} {position: fixed;bottom: -150%;left: -150%;width: 100%; opacity: 0;}#${p} div.mgbox {position: relative !important;}`;this.app.stylesheetsBlock.add("preRender",h),this.app.widgetParams.WIDGET.popup&&(this.app.widgetParams.WIDGET.type==="mobile-exit"?this.app.mobileExitBlock.updateWrapperWidth(e):this.app.popupBlock.updateWrapperStyles(e))}for(let h=1;h<=s;h++)a.push({type:H.Teaser,coopType:z.Wages,hash:"",id:h.toString(),source:Me.domain,title:Me.title,desc:Me.description,img:this.app.blankImage,price:"",priceold:"",discount:"",iteration:h,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 g=this.teasers[e-1].getBoundingClientRect(),m=this.app.root.getBoundingClientRect();if(g.width>=this.bannerWidth&&g.height>=this.bannerStretchHeight){h=!0;let y=this.app.root.parentNode;for(;y&&typeof y.tagName<"u"&&y.tagName!=="BODY";){let k=y.getBoundingClientRect();if(k.width