"use strict";(function(){var I=function(r,e){return function(){return r&&(e=r(r=0)),e}};var O=function(r,e){return function(){return e||r((e={exports:{}}).exports,e),e.exports}};var m=I(function(){});var y=I(function(){});var w=I(function(){});var _=I(function(){});var b=I(function(){});var k=I(function(){});var S=I(function(){});var E=I(function(){});var X=O(function(M){"use strict";m();y();w();_();b();k();S();E();Object.defineProperty(M,"__esModule",{value:!0});M.AdditionalWidget=M.ScriptUrlType=void 0;var K;(function(r){r.es5="es5",r.es6="es6"})(K||(M.ScriptUrlType=K={}));var ot=(function(){function r(e,t){var i=this;if(this.additionalWidgets=e,this.urlType=t,this.additionalWidgets.length)for(var n=function(s){setTimeout(function(){i.init(i.additionalWidgets[s])},0)},o=0;o<this.additionalWidgets.length;o++)n(o)}return r.prototype.init=function(e){var t=this,i=e.widgetDivId?this.createWidgetDiv(e):null,n=this.createWidgetScript(e.urls[this.urlType]),o=e.insertTo||"before";this.waitForElement(e.searchSelector).then(function(s){var a;e.widgetDivId&&t.insertWidgetBlock(s,i,o),(a=window.performance)===null||a===void 0||a.mark("main_script_start_load",{detail:{_mgwidget:e.id}}),t.insertWidgetScript(n)})},r.prototype.createWidgetDiv=function(e){var t=document.createElement("div"),i=document.createElement("div"),n=e.widgetDivId;return t.classList.add("".concat(n,"-additional")),i.id=n,e.dataAttributes&&e.dataAttributes.forEach(function(o){i.dataset[o.name]=o.value}),t.appendChild(i),t},r.prototype.createWidgetScript=function(e){var t=document.createElement("script");return t.src=e,t.async=!0,t.crossOrigin="anonymous",t},r.prototype.insertWidgetBlock=function(e,t,i){switch(i){case"into":e.appendChild(t);break;case"before":var n=e.parentElement;n.insertBefore(t,e);break;case"after":e.insertAdjacentElement("afterend",t);break}},r.prototype.insertWidgetScript=function(e){document.head?document.head.appendChild(e):document.body.appendChild(e)},r.prototype.waitForElement=function(e){return new Promise(function(t){if(document.querySelector(e))return t(document.querySelector(e));var i=new MutationObserver(function(){document.querySelector(e)&&(t(document.querySelector(e)),i.disconnect())});i.observe(document,{childList:!0,subtree:!0})})},r})();M.AdditionalWidget=ot});var V=O(function(z){"use strict";m();y();w();_();b();k();S();E();Object.defineProperty(z,"__esModule",{value:!0});z.AppUtilsBlock=void 0;var at=(function(){function r(e){this.isMobileResult=null,this.agent=navigator.userAgent||navigator.vendor||window.opera||"",this.controller=e||null,this.isStorageAvailable=this.checkStorageAvailable()}return r.prototype.isMobile=function(){if(this.isMobileResult===null){var e=!1;(function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)})(this.agent),this.isMobileResult=e}return this.isMobileResult},r.prototype.isTablet=function(){return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(this.agent.toLowerCase())},r.prototype.isIosFBWebview=function(){var e=this.agent.toLowerCase();return e.indexOf("apple")>-1&&e.indexOf("iphone")>-1&&e.indexOf("webkit")>-1&&(e.indexOf("fban")>-1||e.indexOf("fbav")>-1)&&e.indexOf("safari")===-1&&e.indexOf("firefox")===-1&&e.indexOf("chrome")===-1},r.prototype.isIosWebview=function(){var e=this.agent||"",t=/iPad|iPhone|iPod/.test(e),i=/Safari/.test(e);return t&&!i},r.prototype.isFBAndroid=function(){return(this.agent.indexOf("FBAN")>-1||this.agent.indexOf("FBAV")>-1)&&this.agent.indexOf("Android")>-1},r.prototype.isChromeWebView=function(){var e=["WebView","Android.*(;\\s+wv|Version/\\d.\\d\\s+Chrome/\\d+(\\.0){3})","Linux; U; Android"],t=new RegExp("("+e.join("|")+")","ig");return!!this.agent.match(t)},r.prototype.isObject=function(e){return e!==null&&e.constructor===Object},r.prototype.isSupportES6=function(){try{return new Function("async (x=0)=> x; try {const x=window?.x;} catch {};"),!0}catch(e){return!1}},r.prototype.generateHash=function(){return Date.now().toString(36)+Math.random().toString(36).substring(2)},r.prototype.getSingleJsController=function(e){var t,i,n;return this.controller||((n=(i=((t=window._mgc)===null||t===void 0?void 0:t.controllers)||[])===null||i===void 0?void 0:i.filter(function(o){return o.siteId===e})[0])===null||n===void 0?void 0:n.controller)},r.prototype.isLoadWithAbTest=function(e){var t=Number(e),i=Math.random(),n=(100-t)/2/100;return i>n&&i<1-n},r.prototype.isAdblockDetectedByDOM=function(){if(!window._mgAdbDetected){var e=["banner_ad","sponsored_ad"],t=document.body||document.documentElement,i=function(s){var a=document.createElement("div");return a.className=s,a.style.setProperty("display","block","important"),a.style.setProperty("padding","1px","important"),a.style.visibility="hidden",a.style.position="absolute",a.innerHTML=".",t.appendChild(a),a},n=function(s){return!s.offsetHeight},o=function(s){for(var a=null,l=0;l<s.length;l++){a=i(s[l]);var d=n(a);if(t.removeChild(a),d)return!0}return!1};window._mgAdbDetected=o(e)}return window._mgAdbDetected},r.prototype.getQueryParameterByName=function(e){e=e.replace(/[\[\]]/g,"\\$&");var t=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)"),i=t.exec(location.href);return i?i[2]?decodeURIComponent(i[2].replace(/\+/g," ")):"":null},r.prototype.getSiteElement=function(e){return e.document.head||e.document.body||e.document.documentElement},r.prototype.checkStorageAvailable=function(){try{var e=window.localStorage,t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(i){return!1}},r})();z.AppUtilsBlock=at});var $=O(function(N){"use strict";m();y();w();_();b();k();S();E();var rt=N&&N.__extends||(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}})();Object.defineProperty(N,"__esModule",{value:!0});N.ReadMoreButton=void 0;var st=V(),H;(function(r){r.load="load",r.impression="impression",r.click="click"})(H||(H={}));var lt=(function(r){rt(e,r);function e(t){var i=r.call(this)||this;return i.name="ReadMoreButton",i.options=t,i.button=null,i.widgetData=null,Array.isArray(i.options.excludeCountries)&&i.options.excludeCountries.length?i.checkFilters():i.init(),i}return e.prototype.checkFilters=function(){var t=this;typeof fetch=="function"&&typeof this.options.singleJsUrl!="undefined"&&fetch(this.options.singleJsUrl,{method:"HEAD",cache:"force-cache"}).then(function(i){var n,o,s=(o=(n=i.headers)===null||n===void 0?void 0:n.get("X-Cntry"))===null||o===void 0?void 0:o.toLowerCase();s?t.options.excludeCountries.some(function(a){return a.toLowerCase()===s})?console.log("".concat(t.name,": the block didn't pass the filtering conditions.")):t.init():console.log("".concat(t.name,": X-Cntry didn't found."))}).catch(function(i){console.error("".concat(t.name,": fetch error "),i)})},e.prototype.init=function(){var t;!((t=this.options)===null||t===void 0)&&t.abTest?this.isLoadWithAbTest(this.options.abTest)&&(window["_mgRMB"+this.options.siteId]=!0,this.load()):this.load()},e.prototype.load=function(){typeof window.rmbOpts=="undefined"&&(window.rmbOpts=this.options,this.addReadMoreButton(),this.detectReadMoreButton())},e.prototype.addReadMoreButton=function(){var t=this.getSiteElement(window),i=document.createElement("script"),n="//".concat(this.options.cdnDomain,"/js/read-more/btn.js");i.async=!0,i.src=n,i.setAttribute("fetchpriority","high"),t.insertAdjacentElement("afterbegin",i),this.sendEvent(H.load)},e.prototype.detectReadMoreButton=function(){var t=this,i=void 0;i=setInterval(function(){t.button=document.querySelector("button.widget-btn"),t.button&&(clearInterval(i),t.startEvents())},100)},e.prototype.startEvents=function(){var t=this;if(this.button.addEventListener("click",function(){t.sendEvent(H.click),typeof t.options.widgetId!="undefined"&&t.insertWidget()}),IntersectionObserver){var i=new IntersectionObserver(function(n){n.forEach(function(o){o.intersectionRatio>=.9&&(i.unobserve(o.target),t.sendEvent(H.impression))})},{threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});i.observe(this.button)}},e.prototype.sendEvent=function(t){var i=encodeURIComponent(document.location.href),n="\n      https://".concat(this.options.countersDomain,"/rmb?site_id=").concat(this.options.siteId,"&page_url=").concat(i,"&event=").concat(t);this.widgetData=this.widgetData||this.getWidgetData(),this.widgetData&&(n+="&widget_id=".concat(this.widgetData.id,"&distance=").concat(this.widgetData.distance));var o=document.createElement("IMG");o.referrerPolicy="strict-origin-when-cross-origin",o.src=n},e.prototype.getWidgetData=function(){var t=this;if(!this.button)return null;var i=[].slice.call(document.querySelectorAll('[data-type="_mgwidget"], [id^="M'.concat(this.options.siteId,'ScriptRootC"]'))).filter(function(n){return!!(t.button.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}).map(function(n){return{id:n.dataset.widgetId||n.id.match(/C(\d+)/)[1],distance:n.getBoundingClientRect().top-t.button.getBoundingClientRect().bottom}});return i.length?i.reduce(function(n,o){return o.distance<n.distance?o:n},i[0]):null},e.prototype.insertWidget=function(){var t=this.getSingleJsController(this.options.siteId),i=document.createElement("div");i.dataset.type="_mgwidget",i.dataset.widgetId=String(this.options.widgetId),i.dataset.rmb="true",t&&(document.body.appendChild(i),t.load())},e})(st.AppUtilsBlock);N.ReadMoreButton=lt});var Q=O(function(F){"use strict";m();y();w();_();b();k();S();E();var ct=F&&F.__extends||(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}})();Object.defineProperty(F,"__esModule",{value:!0});F.LogBlock=void 0;var dt=V(),pt=(function(r){ct(e,r);function e(){var t=r.call(this,null)||this;return t.isLogEnabled=t.getQueryParameterByName("mgwdebug")==="1",t}return e.prototype.log=function(t,i,n,o){if(n===void 0&&(n="log"),o===void 0&&(o=null),this.isLogEnabled){var s=["log","info","warn","error"],a=s.indexOf(n)!==-1?n:"log";typeof console[a]!="function"&&(a="log"),o&&o.stack&&o.message?console[a](t?"WIDGET_".concat(t):"",i,o.stack):console[a](t?"WIDGET_".concat(t):"",i)}},e})(dt.AppUtilsBlock);F.LogBlock=pt});var Z=O(function(J){"use strict";m();y();w();_();b();k();S();E();Object.defineProperty(J,"__esModule",{value:!0});J.WebSocketService=void 0;var ut=Q(),ht=1e4,ft=1e3,gt=6e4,vt=(function(){function r(e){this.ws=null,this.connected=!1,this.queue=[],this.pingTimer=null,this.reconnectTimer=null,this.retries=0,this.pingContext={pvid:""},this.logBlock=new ut.LogBlock,this.url=e,this.connect()}return r.prototype.connect=function(){var e=this;this.logBlock.log(null,"[WS] connecting to ".concat(this.url).concat(this.retries>0?" (retry ".concat(this.retries,")"):""),"info");try{this.ws=new WebSocket(this.url),this.ws.onopen=function(){e.logBlock.log(null,"[WS] connected, flushing queue: ".concat(e.queue.length," items"),"info"),e.retries=0,e.connected=!0,e.flush(),e.startPing()},this.ws.onerror=function(t){e.logBlock.log(null,"[WS] error ".concat(String(t)),"error")},this.ws.onclose=function(t){e.logBlock.log(null,"[WS] closed, code: ".concat(t.code," reason: ").concat(t.reason),"info"),e.connected=!1,e.stopPing();var i=Math.min(ft*Math.pow(2,e.retries),gt);e.logBlock.log(null,"[WS] reconnecting in ".concat(i," ms"),"info"),e.retries++,e.reconnectTimer=setTimeout(function(){return e.connect()},i)}}catch(t){this.logBlock.log(null,"[WS] failed to create WebSocket","error",t instanceof Error?t:null),this.ws=null}},r.prototype.setPingContext=function(e){this.pingContext={pvid:e}},r.prototype.send=function(e){var t;this.connected&&((t=this.ws)===null||t===void 0?void 0:t.readyState)===WebSocket.OPEN?(this.logBlock.log(null,"[WS] send ".concat(JSON.stringify(e)),"info"),this.ws.send(JSON.stringify(e))):this.ws!==null?(this.logBlock.log(null,"[WS] queue (not connected yet) ".concat(JSON.stringify(e)),"info"),this.queue.push(e)):this.logBlock.log(null,"[WS] drop (ws is null or closed) ".concat(JSON.stringify(e)),"info")},r.prototype.flush=function(){var e=this.queue.splice(0);this.logBlock.log(null,"[WS] flush ".concat(e.length," items"),"info");for(var t=0,i=e;t<i.length;t++){var n=i[t];this.ws.send(JSON.stringify(n))}},r.prototype.startPing=function(){var e=this;this.pingTimer=setInterval(function(){var t;e.connected&&((t=e.ws)===null||t===void 0?void 0:t.readyState)===WebSocket.OPEN&&e.ws.send(JSON.stringify({metric:"ping",pvid:e.pingContext.pvid}))},ht)},r.prototype.stopPing=function(){this.pingTimer!==null&&(clearInterval(this.pingTimer),this.pingTimer=null)},r})();J.WebSocketService=vt});var et=O(function(U){"use strict";m();y();w();_();b();k();S();E();var q=U&&U.__assign||function(){return q=Object.assign||function(r){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},q.apply(this,arguments)};Object.defineProperty(U,"__esModule",{value:!0});U.TelemetryTracker=void 0;var mt=Z(),tt={main_script_start_load:{flow:"widget_lifecycle",step:10},main_script_start_work:{flow:"widget_lifecycle",step:20},ssp_request_start:{flow:"widget_lifecycle",step:30},ssp_response:{flow:"widget_lifecycle",step:40},render_finish:{flow:"widget_lifecycle",step:50},teaser_impression:{flow:"widget_lifecycle",step:100},teaser_click_started:{flow:"teaser_click",step:10},teaser_click_finished:{flow:"teaser_click",step:20},widget_error:{flow:"widget_error",step:10},alive_0:{flow:"bounce_rate",step:10},alive_1000:{flow:"bounce_rate",step:20},alive_2000:{flow:"bounce_rate",step:30},alive_5000:{flow:"bounce_rate",step:40},alive_10000:{flow:"bounce_rate",step:50},alive_30000:{flow:"bounce_rate",step:60},alive_60000:{flow:"bounce_rate",step:70},render_banner_widget:{flow:"render_banner_widget",step:10},not_visible_before_render:{flow:"container_visibility",step:10},not_visible_after_render:{flow:"container_visibility",step:20},not_visible_after_render_5000:{flow:"container_visibility",step:30},tab_deactivated:{flow:"tab_visibility",step:10},tab_closed:{flow:"tab_visibility",step:20},page_view:{flow:"widget_lifecycle_alt",step:10},widget_load:{flow:"widget_lifecycle_alt",step:20},widget_ad_request:{flow:"widget_lifecycle_alt",step:25},widget_render:{flow:"widget_lifecycle_alt",step:30},widget_view:{flow:"widget_lifecycle_alt",step:40},widget_click:{flow:"widget_lifecycle_alt",step:50}},yt=new Set(["_mgwidget","flow","step","metric"]),wt=(function(){function r(e,t){var i=this,n,o,s;if(this.containerWidgetId=null,this.widgetContexts=new Map,this.wsService=null,this.deactivateTimeout=null,!!window.PerformanceObserver){if(this.enabledFlows=new Set,this.flowConfigs={},t.flows)for(var a=0,l=Object.entries(t.flows);a<l.length;a++){var d=l[a],p=d[0],f=d[1];this.flowConfigs[p]=f,Math.random()*100<=f.sampling&&this.enabledFlows.add(p)}if(this.enabledFlows.size!==0){this.trackerDomain=e,this.defaultClientId=(n=t.clientId)!==null&&n!==void 0?n:0,this.defaultSiteId=(o=t.siteId)!==null&&o!==void 0?o:0,this.containerWidgetId=(s=t.containerWidgetId)!==null&&s!==void 0?s:null;var h=Array.from(this.enabledFlows).some(function(u){var v;return((v=i.flowConfigs[u])===null||v===void 0?void 0:v.transport)==="websocket"});h&&(this.wsService=new mt.WebSocketService("wss://"+e+"/ws_widget_debug"));var g=new PerformanceObserver(function(u,v){u.getEntries().forEach(function(j){var T=i.preparePayload(j);T&&i.sendMetric(T.clientId,T.siteId,T.widgetId,T.flow,T.step,T.metric,T.time,T.pvid,T.rid,T.details)})});g.observe({entryTypes:["mark"]}),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&(i.deactivateTimeout=setTimeout(function(){i.deactivateTimeout=null,i.fireTabMetric("tab_deactivated")},0))}),window.addEventListener("pagehide",function(u){i.deactivateTimeout!==null&&(clearTimeout(i.deactivateTimeout),i.deactivateTimeout=null),u.persisted||i.fireTabMetric("tab_closed")})}}}return r.prototype.setWidgetContext=function(e,t){var i,n=this.widgetContexts.get(e)||{},o=q(q({},n),t);this.widgetContexts.set(e,o),this.wsService&&t.pvid!==void 0&&this.wsService.setPingContext((i=o.pvid)!==null&&i!==void 0?i:"")},r.prototype.sendMetric=function(e,t,i,n,o,s,a,l,d,p){var f;if(this.enabledFlows.has(n)){var h=this.flowConfigs[n],g=(f=h==null?void 0:h.sampling)!==null&&f!==void 0?f:100;if((h==null?void 0:h.transport)==="websocket"&&this.wsService){this.wsService.send({client:e,site:t,widget:i,flow:n,step:o,metric:s,tte:a,sampling_rate:g,pvid:l,rid:d,details:p});return}var u="https://"+this.trackerDomain+"/wt?",v=[];v.push(this.encodeParam("client",e)),v.push(this.encodeParam("site",t)),v.push(this.encodeParam("widget",i)),v.push(this.encodeParam("flow",n)),v.push(this.encodeParam("step",o)),v.push(this.encodeParam("metric",s)),v.push(this.encodeParam("time",a)),v.push(this.encodeParam("pvid",l)),v.push(this.encodeParam("rid",d)),v.push(this.encodeParam("sampling_rate",g)),v.push(this.encodeParam("details",p));try{var j=navigator.connection||navigator.mozConnection||navigator.webkitConnection;typeof j.effectiveType!="undefined"&&v.push(this.encodeParam("contype",j.effectiveType))}catch(T){}u+=v.join("&"),this.sendBeacon(u)}},r.prototype.fireTabMetric=function(e){var t=this,i=tt[e];if(!(!i||!this.enabledFlows.has(i.flow))){var n=performance.now();this.widgetContexts.forEach(function(o,s){var a,l,d,p;t.sendMetric((a=o.clientId)!==null&&a!==void 0?a:t.defaultClientId,(l=o.siteId)!==null&&l!==void 0?l:t.defaultSiteId,s,i.flow,i.step,e,n,(d=o.pvid)!==null&&d!==void 0?d:"",(p=o.rid)!==null&&p!==void 0?p:"","{}")})}},r.prototype.sendBeacon=function(e){if(typeof navigator.sendBeacon=="function")try{navigator.sendBeacon(e)}catch(t){this.pixelFallback(e)}else this.pixelFallback(e)},r.prototype.pixelFallback=function(e){var t=document.createElement("IMG");t.src=e},r.prototype.preparePayload=function(e){var t,i,n,o,s=this.getDetail(e);if(!("_mgwidget"in s))return null;var a=parseInt(String(s._mgwidget||""),10)||0,l=tt[e.name],d=this.getStringValue(s.flow)||(l==null?void 0:l.flow)||"",p=this.getNumberValue(s.step)||(l==null?void 0:l.step)||0,f=this.getStringValue(s.metric)||e.name;if(!this.enabledFlows.has(d))return null;var h=this.widgetContexts.get(a)||{},g={};this.containerWidgetId!=null&&(g.containerWidgetId=this.containerWidgetId);var u=this.collectDetails(s,g);return{clientId:(t=h.clientId)!==null&&t!==void 0?t:this.defaultClientId,siteId:(i=h.siteId)!==null&&i!==void 0?i:this.defaultSiteId,widgetId:a,flow:d,step:p,metric:f,time:e.startTime,pvid:(n=h.pvid)!==null&&n!==void 0?n:"",rid:(o=h.rid)!==null&&o!==void 0?o:"",details:u}},r.prototype.collectDetails=function(e,t){t===void 0&&(t={});for(var i=q({},t),n=0,o=Object.keys(e);n<o.length;n++){var s=o[n];yt.has(s)||(i[s]=e[s])}return Object.keys(i).length>0?JSON.stringify(i):"{}"},r.prototype.getDetail=function(e){return e.detail&&typeof e.detail=="object"?e.detail:{}},r.prototype.getStringValue=function(e){return typeof e=="string"?e:typeof e=="number"?String(e):""},r.prototype.getNumberValue=function(e){var t=Number(e);return Number.isFinite(t)?t:0},r.prototype.encodeParam=function(e,t){return encodeURIComponent(e)+"="+encodeURIComponent(String(t))},r})();U.TelemetryTracker=wt});var it=O(function(B){"use strict";m();y();w();_();b();k();S();E();var _t=B&&B.__extends||(function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function i(){this.constructor=e}e.prototype=t===null?Object.create(t):(i.prototype=t.prototype,new i)}})(),G=B&&B.__assign||function(){return G=Object.assign||function(r){for(var e,t=1,i=arguments.length;t<i;t++){e=arguments[t];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])}return r},G.apply(this,arguments)};Object.defineProperty(B,"__esModule",{value:!0});B.BackButtonBlock=B.ClassName=void 0;var Y=X(),bt=V(),c;(function(r){r.startedPage="mg-started-page",r.additionalPage="mg-additional-page",r.container="mg-additional-container",r.header="mg-additional-header",r.headerAdded="mg-header-added",r.popup="mg-additional-popup",r.popupInner="mg-additional-popup-inner",r.popupText="mg-additional-popup-text",r.popupTriangle="mg-additional-popup-triangle",r.popupCloseBtn="mg-additional-popup-close-btn",r.popupAdded="mg-popup-added",r.popupShowed="mg-popup-showed",r.popupClosed="mg-popup-closed",r.crossButtonContainer="mg-additional-cross-button",r.crossButton="mg-cross-button"})(c||(B.ClassName=c={}));var kt=(function(r){_t(e,r);function e(t,i){var n,o,s,a=r.call(this,i)||this;if(a.startedPage="_mgStartedPage",a.additionalPage="_mgAdditionalPage",a.storageStartUrl="_mgStartUrl",a.storagePopupCloseTime="_mgPopupCloseTime",a.storagePagesList="_mgStartPagesList",a.servicerFiltersData="_mgServicerFiltersData",a.name="BackButtonBlock",a.options=t,a.lastUrl="",a.hashOverlayChainActive=!1,typeof window[a.servicerFiltersData]=="undefined"){window[a.servicerFiltersData]={},a.widgetId=Number(a.options.widget_id),a.widgetContainerSelector="M".concat(a.options.siteId,"ScriptRootC").concat(a.widgetId,"-additional"),a.hasFilters=!!(!((o=(n=a.options)===null||n===void 0?void 0:n.filters)===null||o===void 0)&&o.length),a.isAggressiveMode=(s=a.options)===null||s===void 0?void 0:s.aggressive_mode,a.initialEvent=typeof onpointerdown=="undefined"?"click":"pointerdown",a.pointerHandler=a.pointerHandler.bind(a),a.hashChangeHandler=a.hashChangeHandler.bind(a);try{typeof sessionStorage!="undefined"&&(a.hasFilters?a.checkFilters():a.start())}catch(l){console.log("".concat(a.name,": sessionStorage not available."),l)}}return a}return e.prototype.checkGeoFilters=function(){var t=this,i,n,o,s=(o=(n=(i=this.options)===null||i===void 0?void 0:i.filters)===null||n===void 0?void 0:n.filter(function(l){return l.type==="exclude_countries"})[0])===null||o===void 0?void 0:o.value,a=this.options.singleJsUrl||(this.isSupportES6()?this.options.widgetPathES6:this.options.widgetPathES5);return new Promise(function(l){s&&s.length?typeof fetch=="function"&&typeof a=="string"&&fetch(a,{method:"HEAD",cache:"force-cache"}).then(function(d){var p,f,h=(f=(p=d.headers)===null||p===void 0?void 0:p.get("X-Cntry"))===null||f===void 0?void 0:f.toLowerCase();h?s.some(function(g){return g.toLowerCase()===h})?console.log("".concat(t.name,": the block didn't pass GEO filtering conditions.")):l():console.log("".concat(t.name,": header X-Cntry didn't found."))}).catch(function(d){console.log("".concat(t.name,": fetch error."),d)}):l()})},e.prototype.checkDeviceFilters=function(){var t=this,i,n,o,s,a=(o=(n=(i=this.options)===null||i===void 0?void 0:i.filters)===null||n===void 0?void 0:n.filter(function(l){return l.type==="device"})[0])===null||o===void 0?void 0:o.value;return new Promise(function(l){a&&a.length?s=setInterval(function(){if(typeof window[t.servicerFiltersData].device!="undefined"){clearInterval(s);var d=window[t.servicerFiltersData].device.toLowerCase();a.some(function(p){return p.toLowerCase()===d})?l():console.log("".concat(t.name,": the block didn't pass Device filtering conditions."))}},250):l()})},e.prototype.checkTrafficSourceFilters=function(){var t=this,i,n,o,s,a=(o=(n=(i=this.options)===null||i===void 0?void 0:i.filters)===null||n===void 0?void 0:n.filter(function(l){return l.type==="traffic_source"})[0])===null||o===void 0?void 0:o.value;return new Promise(function(l){a&&a.length?s=setInterval(function(){if(typeof window[t.servicerFiltersData].trafficSource!="undefined"){clearInterval(s);var d=window[t.servicerFiltersData].trafficSource.toLowerCase();a.some(function(p){return p.toLowerCase().indexOf(d)!==-1})?l():console.log("".concat(t.name,": the block didn't pass Traffic Source filtering conditions."))}},250):l()})},e.prototype.checkTrafficTypeFilters=function(){var t=this,i,n,o,s,a=(o=(n=(i=this.options)===null||i===void 0?void 0:i.filters)===null||n===void 0?void 0:n.filter(function(l){return l.type==="traffic_type"})[0])===null||o===void 0?void 0:o.value;return new Promise(function(l){a&&a.length?s=setInterval(function(){if(typeof window[t.servicerFiltersData].trafficType!="undefined"){clearInterval(s);var d=window[t.servicerFiltersData].trafficType.toLowerCase();a.some(function(p){return p.toLowerCase()===d})?l():console.log("".concat(t.name,": the block didn't pass Traffic Type filtering conditions."))}},250):l()})},e.prototype.checkFilters=function(){var t=this;Promise.all([this.checkGeoFilters(),this.checkDeviceFilters(),this.checkTrafficSourceFilters(),this.checkTrafficTypeFilters()]).then(function(){t.start()})},e.prototype.start=function(){var t=this,i,n,o,s=void 0,a=420*1e3,l=new Date().getTime(),d=null;if(!((n=(i=window==null?void 0:window.performance)===null||i===void 0?void 0:i.getEntriesByType("navigation"))===null||n===void 0)&&n.length?d=window.performance.getEntriesByType("navigation")[0]:!((o=window==null?void 0:window.performance)===null||o===void 0)&&o.timing&&(d=window.performance.timing),d!=null&&d.loadEventEnd&&d.loadEventEnd>0){this.startEvents();return}s=setInterval(function(){if(new Date().getTime()-l>=a){clearInterval(s),console.log("".concat(t.name,": didn't load, too long site page loading process."));return}d!=null&&d.loadEventEnd&&d.loadEventEnd>0&&(clearInterval(s),t.startEvents())},150)},e.prototype.patchHistoryAPI=function(){if(typeof history!="undefined"){var t=history.pushState;t&&!t.isPatched&&(history.pushState=function(n,o,s){var a=t.apply(this,[n,o,s]);return window.dispatchEvent(new Event("mg_history_changed")),a},history.pushState.isPatched=!0);var i=history.replaceState;i&&!i.isPatched&&(history.replaceState=function(n,o,s){var a=i.apply(this,[n,o,s]);return window.dispatchEvent(new Event("mg_history_changed")),a},history.replaceState.isPatched=!0)}},e.prototype.startEvents=function(){this.patchHistoryAPI(),this.siteBody=document.body||document.documentElement,this.lastUrl=document.location.href;var t=history.state,i=this.getStartedUrl(),n=document.location.href,o=this.isAggressiveMode?this.hasStoragePage(n):i===n;o&&this.isObject(t)&&Object.prototype.hasOwnProperty.call(t,this.additionalPage)&&typeof window[this.additionalPage]=="undefined"&&(window[this.additionalPage]=!0,this.buildAdditionalPage(),this.showAdditionalPage()),this.siteBody.addEventListener(this.initialEvent,this.pointerHandler),window.addEventListener("hashchange",this.hashChangeHandler.bind(this)),window.addEventListener("mg_history_changed",this.hashChangeHandler.bind(this)),window.addEventListener("popstate",this.popstateHandler.bind(this))},e.prototype.hashChangeHandler=function(){var t=document.location.href,i=this.isSameDocumentNavigation(this.lastUrl,t);i&&(this.hasHash(this.lastUrl)||this.hasHash(t))&&(this.hashOverlayChainActive=!0),this.lastUrl=t},e.prototype.pointerHandler=function(){this.siteBody.removeEventListener(this.initialEvent,this.pointerHandler);var t=document.location.href;if(this.isAggressiveMode){var i=this.hasStoragePage(t);i||(this.setStoragePage(t),this.pushHistoryState())}else{var n=this.getStartedUrl();n||(this.setStartedUrl(t),this.pushHistoryState())}},e.prototype.popstateHandler=function(t){var i,n,o=((n=(i=t.target)===null||i===void 0?void 0:i.history)===null||n===void 0?void 0:n.state)||t.state,s=this.getStartedUrl(),a=document.location.href,l=this.isStateSatisfy(o),d=this.isAggressiveMode?this.hasStoragePage(a):s===a;if(this.shouldSkipOverlayPopstate(a,l)){this.lastUrl=a;return}if(d&&l&&typeof window[this.additionalPage]=="undefined"){window[this.additionalPage]=!0,this.replaceHistoryState(),this.buildAdditionalPage(),this.showAdditionalPage(),this.lastUrl=a;return}this.isObject(o)&&(!d&&!Object.prototype.hasOwnProperty.call(o,this.additionalPage)&&!Object.prototype.hasOwnProperty.call(o,this.startedPage)&&this.showRegularPage(),Object.prototype.hasOwnProperty.call(o,this.startedPage)&&this.showStartedPage(),Object.prototype.hasOwnProperty.call(o,this.additionalPage)&&this.showAdditionalPage()),this.lastUrl=a},e.prototype.isStateSatisfy=function(t){return t===null||t===""||this.isObject(t)&&!Object.prototype.hasOwnProperty.call(t,this.startedPage)&&!Object.prototype.hasOwnProperty.call(t,"flowcards")},e.prototype.isGoogleAdHash=function(t){try{return/goog_rewarded|google_vignette/i.test(new URL(t,document.location.origin).hash)}catch(i){return!1}},e.prototype.shouldSkipOverlayPopstate=function(t,i){if(this.isGoogleAdHash(this.lastUrl)||this.isGoogleAdHash(t))return this.hashOverlayChainActive=!0,!0;var n=this.isHashOnlyNavigation(this.lastUrl,t),o=this.isSameDocumentNavigation(this.lastUrl,t);return o&&i&&this.hashOverlayChainActive?(this.hasHash(t)||(this.hashOverlayChainActive=!1),!0):n&&i?(this.hashOverlayChainActive=!0,!0):!1},e.prototype.isHashOnlyNavigation=function(t,i){if(!t||!i||t===i)return!1;try{var n=new URL(t,document.location.origin),o=new URL(i,document.location.origin);return n.pathname===o.pathname&&n.search===o.search&&n.hash!==o.hash}catch(s){return!1}},e.prototype.isSameDocumentNavigation=function(t,i){if(!t||!i)return!1;try{var n=new URL(t,document.location.origin),o=new URL(i,document.location.origin);return n.pathname===o.pathname&&n.search===o.search}catch(s){return!1}},e.prototype.hasHash=function(t){if(!t)return!1;try{return!!new URL(t,document.location.origin).hash}catch(i){return!1}},e.prototype.isWebview=function(){var t=navigator.userAgent||"",i=/FBAN|FBAV|FBLite|FB4A|FB_IAB|\bwv\b|Instagram|Twitter|LinkedInApp|Line\/|MicroMessenger|Snapchat|Telegram|TikTok|Pinterest|Reddit/i;return i.test(t)||this.isIosFBWebview()||this.isFBAndroid()},e.prototype.pushHistoryState=function(){var t,i=history.state,n=(t={},t[this.startedPage]=!0,t),o=document.location;if(i===null||i==="")this.isWebview()&&!o.hash?history.pushState(n,"",o.href+"#"+this.generateHash()):history.pushState(n,"","");else if(this.isObject(i)){var s=G(G({},i),n);this.isWebview()&&!o.hash?history.pushState(s,"",o.href+"#"+this.generateHash()):history.pushState(s,"","")}else console.log("".concat(this.name,": client also uses history.state and its not an object, so module will not work."))},e.prototype.replaceHistoryState=function(){var t,i=history.state,n=(t={},t[this.additionalPage]=!0,t);i===null||i===""?history.replaceState(n,"",""):this.isObject(i)?history.replaceState(G(G({},i),n),"",""):console.log("".concat(this.name,": client also uses history.state and its not an object, so module will not work."))},e.prototype.buildAdditionalPage=function(){var t,i,n,o,s,a=(i=(t=this.options)===null||t===void 0?void 0:t.display)===null||i===void 0?void 0:i.some(function(f){return f.type==="header"}),l=(o=(n=this.options)===null||n===void 0?void 0:n.display)===null||o===void 0?void 0:o.some(function(f){return f.type==="banner"}),d=((s=this.options)===null||s===void 0?void 0:s.cross_button)||!1,p=document.createElement("div");p.classList.add(c.container),p.style.display="none",this.siteBody.appendChild(p),this.styles="\n      body.".concat(c.additionalPage," > *:not(.").concat(c.container,"),\n      html.").concat(c.additionalPage," > *:not(.").concat(c.container,"){\n        display: none !important;\n      }\n      body.").concat(c.additionalPage," .").concat(c.container,",\n      html.").concat(c.additionalPage," .").concat(c.container," {\n        display: block !important;\n      }\n      body.").concat(c.startedPage," .").concat(c.container,",\n      html.").concat(c.startedPage," .").concat(c.container," {\n        display: none !important;\n      }\n      body.").concat(c.additionalPage,",\n      html.").concat(c.additionalPage," {\n        padding-top: 0 !important;\n        margin-top: 0 !important;\n        transform: none !important;\n      }\n      .").concat(c.container," {display: none;margin: 0 auto;box-sizing: border-box;\n        padding: 15px 10px;width: 100%;max-width: 1100px;background: #fff;}\n    "),a&&this.insertHeader(p),d&&this.insertCrossButton(p),l&&this.insertPopup(p),(d||l)&&this.changeSize(p),this.addingStyles(p),this.addingWidget(p)},e.prototype.insertHeader=function(t){var i,n,o=((n=(i=this.options.display.filter(function(d){return d.type==="header"})[0])===null||i===void 0?void 0:i.options)===null||n===void 0?void 0:n.selector)||"header",s=document.querySelector(o);if(s){var a=getComputedStyle(s),l=s.cloneNode(!0);l.classList.add(c.header),t.classList.add(c.headerAdded),t.appendChild(l),this.styles=this.styles+".".concat(c.container,".").concat(c.headerAdded," {padding: 0 !important;}\n        .").concat(c.header," {margin-bottom: 10px !important;z-index: 9999999 !important;}\n        .").concat(c.container,".").concat(c.headerAdded," div[class=").concat(this.widgetContainerSelector,"] {\n        padding: 0 10px;box-sizing: border-box;}"),!this.isMobile()&&!this.isTablet()&&(t.style.maxWidth=a.width),a.position==="fixed"&&(l.style.maxWidth="100%",l.style.top="0px",l.style.zIndex="9999999",t.style.setProperty("padding-top",a.height,"important"))}},e.prototype.insertCrossButton=function(t){var i=this,n=27,o=document.createElement("div");o.classList.add(c.crossButtonContainer);var s=document.createElement("div");s.classList.add(c.crossButton),s.innerHTML='<svg xmlns="http://www.w3.org/2000/svg" \n      xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Layer_1" x="0px" y="0px" \n      width="'.concat(n,'px" height="').concat(n,'px" viewBox="0 0 43 40" enable-background="new 0 0 43 40" \n      xml:space="preserve"><path fill="#4C4C4C" d="M21.5,2c-9.941,0-18,8.06-18,18.001c0,9.941,8.059,18,\n      18,18s18-8.059,18-18C39.5,10.059,31.441,2,21.5,2z"></path><path fill="#FFFFFF" d="M30.076,24.07c0.564,\n      0.564,0.564,1.482,0,2.047l-2.459,2.459c-0.564,0.564-1.48,0.564-2.047,0l-4.07-4.07  \n      l-4.07,4.07c-0.566,0.564-1.482,0.564-2.051,0l-2.455-2.459c-0.566-0.564-0.566-1.482,\n      0-2.047l4.07-4.07l-4.07-4.071  c-0.566-0.565-0.566-1.482,0-2.049l2.455-2.455c0.568-0.566,\n      1.484-0.566,2.051,0l4.07,4.07l4.07-4.07  c0.566-0.566,1.482-0.566,2.047,0l2.459,2.455c0.564,\n      0.566,0.564,1.483,0,2.049L26.006,20L30.076,24.07z"></path></svg>'),this.styles=this.styles+".".concat(c.crossButtonContainer," {display: block !important;\n      margin: 10px auto !important;} .").concat(c.crossButton," {display: block !important;\n      width: ").concat(n,"px !important;height: ").concat(n,"px !important;max-width: ").concat(n,"px !important;\n      max-height: ").concat(n,"px !important;cursor: pointer;border-radius: 50%;overflow: hidden;\n      margin-left: auto;} .").concat(c.crossButton," svg {max-width: ").concat(n,"px !important; \n      max-height: ").concat(n,"px !important;}"),t.appendChild(o),o.appendChild(s),s.addEventListener("click",function(){history.back(),i.showStartedPage()})},e.prototype.insertPopup=function(t){var i=this,n,o=this.isStorageAvailable?localStorage.getItem(this.storagePopupCloseTime):null,s=1440*60*1e3,a=o&&new Date().getTime()-Number(o)>=s;if(!o||a){var l=(n=this.options.display.filter(function(u){return u.type==="banner"})[0])===null||n===void 0?void 0:n.options,d=(l==null?void 0:l.bg_color)||"#0279f5",p=(l==null?void 0:l.text_color)||"#ffffff",f=(l==null?void 0:l.text)||this.getTranslation("[INFORMER_BACK_BUTTON_BANNER_TEXT]"),h=document.createElement("div");h.classList.add(c.popup),t.classList.add(c.popupAdded),h.innerHTML='<div class="'.concat(c.popupInner,'">\n        <div class="').concat(c.popupText,'">').concat(f,'</div><div class="').concat(c.popupTriangle,'"></div>\n        <div class="').concat(c.popupCloseBtn,'"><svg width="11" height="11" viewBox="0 0 11 11">\n        <path fill="').concat(p,'" fill-rule="evenodd" d="M10.34.038L5.5 4.878.66.038.038.66l4.84 \n        4.84-4.84 4.84.622.622 4.84-4.84 4.84 4.84.622-.622-4.84-4.84 4.84-4.84z"></path></svg></div></div>'),t.appendChild(h),this.styles=this.styles+".".concat(c.popup," {display: block;margin: 0 auto;width: 100%;\n        height: 50px;overflow: hidden;position: relative;z-index: 999999;}\n        .").concat(c.popupInner," {position: relative;display: flex;align-items: center;\n        justify-content: space-between;margin: 0 auto;width: 100%;height: 40px;text-align: center;\n        transition: all 0.7s ease;opacity: 0;transform: translateY(-150px);background: ").concat(d,";}\n        .").concat(c.popup,".").concat(c.popupShowed," .").concat(c.popupInner," {transform: translateY(0px);\n        opacity: 1;}.").concat(c.popup,".").concat(c.popupClosed," .").concat(c.popupInner," {\n        display: none;}.").concat(c.popup,".").concat(c.popupClosed," {z-index: -1;}\n        .").concat(c.popupText," {box-sizing: border-box;padding: 10px;width: 100%;height: 100%;\n        display: flex;align-items: center;justify-content: center;font-family: Helvetica, Arial, sans-serif;\n        font-size: 16px;line-height: 1;font-weight: 400;color: ").concat(p,";}\n        .").concat(c.popupTriangle," {display: block;position: absolute;bottom: -10px;left: 50%;\n        transform: translateX(-50%);width: 0;height: 0;border-left: 12px solid transparent;\n        border-right: 12px solid transparent;border-top: 12px solid;color: ").concat(d,";}\n        .").concat(c.popupCloseBtn," {display: flex;align-items: center;justify-content: center;\n        width: 15px;height: 15px;margin-right: 10px;color: ").concat(p,";cursor: pointer;}\n        .").concat(c.container,".").concat(c.popupAdded," div[class=").concat(this.widgetContainerSelector,"] {\n        margin-top: -40px;}@media (max-width: 480px){.").concat(c.popupText," {font-size: 13px;}}");var g=document.querySelector(".".concat(c.popupCloseBtn));g&&g.addEventListener("click",function(){h.classList.add(c.popupClosed),i.isStorageAvailable&&localStorage.setItem(i.storagePopupCloseTime,String(new Date().getTime()))})}},e.prototype.changeSize=function(t){var i=this,n=t.querySelector(".".concat(c.popup)),o=t.querySelector(".".concat(c.crossButtonContainer)),s=void 0,a=90*1e3,l=new Date().getTime();s=setInterval(function(){if(new Date().getTime()-l>=a){clearInterval(s),console.log("".concat(i.name,": additional Smart widget didn't load."));return}var d=t.querySelector("div[class=".concat(i.widgetContainerSelector,"]"));if(d&&d.children.length){var p=d.children[0],f=void 0,h;if(p.shadowRoot&&p.shadowRoot.children.length?f=p.shadowRoot.children:p.children.length&&(f=p.children),f!=null&&f.length&&[].slice.call(f).forEach(function(u){u.getElementsByClassName("mgbox")[0]&&(h=u.getElementsByClassName("mgbox")[0])}),h){clearInterval(s);var g=getComputedStyle(h).width;n&&(n.style.maxWidth=g,n.classList.add(c.popupShowed)),o&&(o.style.maxWidth=g),window.addEventListener("resize",function(){n&&(n.style.maxWidth=getComputedStyle(h).width),o&&(o.style.maxWidth=getComputedStyle(h).width)})}}},150)},e.prototype.addingStyles=function(t){var i=document.createElement("style");i.setAttribute("id","mgAdditionalStyles"),i.appendChild(document.createTextNode(this.styles)),t.appendChild(i)},e.prototype.addingWidget=function(t){var i=this;if(this.options.singleJsUrl){var n=this.getSingleJsController(this.options.siteId),o=document.createElement("div"),s=document.createElement("div");s.dataset.type="_mgwidget",s.dataset.widgetId=String(this.widgetId),s.dataset.typeStory="true",o.classList.add(this.widgetContainerSelector),o.appendChild(s),t.appendChild(o),n&&n.load()}else new Y.AdditionalWidget([{id:this.widgetId,urls:{es5:this.options.widgetPathES5.split(".").map(function(a,l,d){return l===d.length-3?i.widgetId:a}).join("."),es6:this.options.widgetPathES6.split(".").map(function(a,l,d){return l===d.length-3?i.widgetId:a}).join(".")},widgetDivId:"M".concat(this.options.siteId,"ScriptRootC").concat(this.widgetId),searchSelector:".".concat(c.container),insertTo:"into",dataAttributes:[{name:"typeStory",value:"true"}]}],this.isSupportES6()?Y.ScriptUrlType.es6:Y.ScriptUrlType.es5)},e.prototype.showAdditionalPage=function(){this.siteBody.classList.remove(c.startedPage),this.siteBody.classList.add(c.additionalPage)},e.prototype.showStartedPage=function(){this.siteBody.classList.remove(c.additionalPage),this.siteBody.classList.add(c.startedPage)},e.prototype.showRegularPage=function(){this.siteBody.classList.remove(c.startedPage),this.siteBody.classList.remove(c.additionalPage)},e.prototype.getStartedUrl=function(){return this.isStorageAvailable?sessionStorage.getItem(this.storageStartUrl):null},e.prototype.setStartedUrl=function(t){this.isStorageAvailable&&sessionStorage.setItem(this.storageStartUrl,t)},e.prototype.hasStoragePage=function(t){var i=this.isStorageAvailable?JSON.parse(sessionStorage.getItem(this.storagePagesList))||[]:[];return i.some(function(n){return n===t})},e.prototype.setStoragePage=function(t){var i=this.isStorageAvailable?JSON.parse(sessionStorage.getItem(this.storagePagesList))||[]:[];i.push(t),this.isStorageAvailable&&sessionStorage.setItem(this.storagePagesList,JSON.stringify(i))},e.prototype.getTranslation=function(t){var i=this.options.translations;return t.search(/^\[\S*\]$/g)===0?i[t]?i[t]:"":t},e})(bt.AppUtilsBlock);B.BackButtonBlock=kt});var Et=O(function(nt){m();y();w();_();b();k();S();E();Object.defineProperty(nt,"__esModule",{value:!0});var $e=X(),Qe=$(),St=et(),Ze=it();(function(){var r=o(),e=r?"https://jsc.mgid.com/x/p/xposeindonesia.com.1418685.es6.js":"https://jsc.mgid.com/x/p/xposeindonesia.com.1418685.es5.js",t=JSON.parse('{"flows":{"widget_lifecycle":{"sampling":0,"transport":"beacon"},"teaser_click":{"sampling":0,"transport":"beacon"},"widget_error":{"sampling":0,"transport":"beacon"},"bounce_rate":{"sampling":0,"transport":"beacon"},"render_banner_widget":{"sampling":0,"transport":"beacon"},"container_visibility":{"sampling":0,"transport":"beacon"},"tab_visibility":{"sampling":0,"transport":"beacon"},"widget_lifecycle_alt":{"sampling":0,"transport":"websocket"}}}');window._mgpt=window._mgpt||new St.TelemetryTracker("c.mgid.com",{flows:t.flows}),window._mgpt.setWidgetContext(1418685,{siteId:862442,clientId:776151,containerWidgetId:typeof window._mgContainerWidget!="undefined"?window._mgContainerWidget:null}),l(),f(e),a(),d();for(var i=["https://servicer.mgid.com"],n=0;n<i.length;n++)s(i[n]);function o(){try{return new Function("async (x=0)=> x; try {const x=window?.x;} catch {};"),!0}catch(g){return!1}}function s(g){var u=document.createElement("link");u.rel="preconnect",u.href=g,document.head?document.head.appendChild(u):document.body.appendChild(u)}function a(){var g=JSON.parse("[]")}function l(){if(0)var g}function d(){if(0)var g}function p(g){}function f(g){var u,v=document.createElement("script");v.async=!0,v.charset="utf-8",v.src=g,v.crossOrigin="anonymous",(u=window.performance)===null||u===void 0||u.mark("main_script_start_load",{detail:{_mgwidget:1418685}}),document.head?document.head.appendChild(v):document.body.appendChild(v)}function h(){[0,1e3,2e3,5e3,1e4,3e4,6e4].forEach(function(g){setTimeout(function(){var u;(u=window.performance)===null||u===void 0||u.mark("alive_".concat(g),{detail:{_mgwidget:1418685}})},g)})}})()});Et();})();