@adstage/web-sdk
Version:
AdStage Web SDK - Production-ready marketing platform SDK with React Provider support for seamless integration
1 lines • 110 kB
JavaScript
"use strict";var t,e,n,s,i,r,o,a,c,d,l,u,p=require("react/jsx-runtime"),h=require("react");function f(t,e){var n=g();return(f=function(t,e){return n[t-=462]})(t,e)}function g(){var t=["WEB","POPUP","18Xdqwaa","4rxSNXt","TEXT","2938256AfFzNT","MOBILE","VIDEO","CLICK","15039277qnXGji","BANNER","TABLET","12OQdbRW","1476542yvComu","7261219bqdSWq","VIEWABLE","900520ZoDAlV","INTERSTITIAL","1ZQYdnA","1245639YlhtBT","3158830kUaWpz","NATIVE","DESKTOP"];return(g=function(){return t})()}!function(){for(var t=f,e=g();;)try{if(706308===-parseInt(t(467))/1*(parseInt(t(462))/2)+-parseInt(t(468))/3*(-parseInt(t(475))/4)+parseInt(t(465))/5*(parseInt(t(484))/6)+parseInt(t(463))/7+parseInt(t(477))/8+-parseInt(t(474))/9*(-parseInt(t(469))/10)+-parseInt(t(481))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=f)(482)]=n(482),e[n(473)]="POPUP",e[n(466)]="INTERSTITIAL",e[n(470)]=n(470),e.VIDEO=n(479),e.TEXT=n(476),(i=s||(s={}))[(r=f)(472)]=r(472),i.MOBILE=r(478),(a=o||(o={}))[(c=f)(464)]=c(464),a[c(480)]=c(480),(l=d||(d={}))[(u=f)(471)]=u(471),l.MOBILE="MOBILE",l[u(483)]="TABLET";const m=v;function I(){const t=["all","setProperty","264feUMPs","entries","safeGetComputedStyle","ms (","querySelectorAll","waitForElement","7FhZFnt","safeAddClass","DOM을 사용할 수 없는 환경입니다.","safeAppendChild","safeApplyStyles","textContent","isDOMReady","pageXOffset","isBrowser","safeCreateElement","⏳ 컨테이너 대기 중: ","pow","error",'❌ 컨테이너를 찾을 수 없습니다: "',"addEventListener","85213oPCBQZ","canUseDOM","referrer",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"safeQuerySelector","safeSetInnerHTML","innerHTML","scrollTop","ms 경과)","loading","2522360PPnJUe","20fypwIe","querySelector","isSSR","safeAddEventListener","log","getDocumentProperty","998202Rixbjq","readyState","12849177waCZLS","getWindowProperty","getComputedStyle","innerHeight","8xeQymy","pageYOffset","53367MdZaxl","classList","remove","style","2994498qdnpgz","safeRemoveEventListener","devicePixelRatio","ceil","add","safeRemoveClass","undefined",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"forEach","DOMContentLoaded","getViewportInfo","29115InOqPM","innerWidth","documentElement","⏳ 컨테이너 대기 시작: ","open","location","waitForDOM","✅ 컨테이너 즉시 발견: ","min","getElementById"];return(I=function(){return t})()}function v(t,e){const n=I();return(v=function(t,e){return n[t-=334]})(t,e)}!function(){const t=v,e=I();for(;;)try{if(434805===-parseInt(t(341))/1+parseInt(t(352))/2*(-parseInt(t(366))/3)+parseInt(t(393))/4*(-parseInt(t(381))/5)+parseInt(t(358))/6*(-parseInt(t(399))/7)+parseInt(t(364))/8*(parseInt(t(370))/9)+-parseInt(t(351))/10+parseInt(t(360))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class y{static[m(334)](){const t=m;return typeof window!==t(376)&&typeof document!==t(376)}static[m(354)](){return!this.isBrowser()}static[m(342)](){const t=m;return this[t(334)]()&&void 0!==document[t(359)]}static safeGetElementById(t){const e=m;return this.canUseDOM()?document[e(390)](t):null}static[m(345)](t){const e=m;return this[e(342)]()?document[e(353)](t):null}static safeQuerySelectorAll(t){const e=m;return this[e(342)]()?Array.from(document[e(397)](t)):[]}static[m(335)](t){return this[m(342)]()?document.createElement(t):null}static safeAddEventListener(t,e,n,s){const i=m;this[i(342)]()&&t&&t[i(340)](e,n,s)}static[m(371)](t,e,n,s){this[m(342)]()&&t&&t.removeEventListener(e,n,s)}static[m(361)](t,e){return this.isBrowser()?window[t]??e:e}static[m(357)](t,e){return this[m(342)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const s=m;return this.isBrowser()?window[s(385)](t,e,n):null}static[m(395)](t){const e=m;return this[e(334)]()&&t?window[e(362)](t):null}static[m(405)](){const t=m;return!!this[t(342)]()&&document[t(359)]!==t(350)}static[m(387)](){return new Promise(t=>{const e=v;this[e(342)]()?this[e(405)]()?t():this[e(355)](document,e(379),()=>t()):t()})}static[m(403)](t,e){const n=m;this[n(342)]()&&t&&Object[n(394)](e)[n(378)](([e,s])=>{const i=n;t[i(369)][i(392)](e,s)})}static[m(400)](t,e){const n=m;this[n(342)]()&&t&&t[n(367)][n(374)](e)}static[m(375)](t,e){const n=m;this[n(342)]()&&t&&t.classList[n(368)](e)}static safeSetTextContent(t,e){const n=m;this[n(342)]()&&t&&(t[n(404)]=e)}static[m(346)](t,e){const n=m;this.canUseDOM()&&t&&(t[n(347)]=e)}static[m(402)](t,e){this[m(342)]()&&t&&e&&t.appendChild(e)}static safeRemoveChild(t,e){this[m(342)]()&&t&&e&&t.removeChild(e)}static getPageInfo(){const t=m;return{url:this[t(361)](t(386),{href:""}).href,title:this[t(357)]("title",""),referrer:this.getDocumentProperty(t(343),"")}}static[m(380)](){const t=m;return{width:this.getWindowProperty(t(382),0),height:this[t(361)](t(363),0),pixelRatio:this[t(361)](t(372),1)}}static getScrollInfo(){const t=m;return{scrollTop:this.canUseDOM()?window[t(365)]||document[t(383)][t(348)]:0,scrollLeft:this[t(361)](t(406),0)}}static async[m(398)](t,e={}){const n=m,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this.canUseDOM())throw new Error(n(401));const o=document.getElementById(t);return o?(r&&console.log(n(388)+t),o):(r&&console.log(n(384)+t+" (최대 "+s+"ms)"),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(373)](s/i),l=()=>{const n=a;c++;const u=document[n(390)](t);if(u)return r&&console[n(356)]("✅ 컨테이너 발견: "+t+" ("+c+"번째 시도, "+c*i+n(349)),void e(u);if(c>=d){const e=n(339)+t+n(344)+t+n(377)+s+n(396)+c+"번 시도)";return r&&console[n(338)](e),void o(new Error(e))}r&&c%10==0&&console[n(356)](n(336)+t+" ("+c+"/"+d+")");const p=Math[n(389)](i*Math[n(337)](1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async waitForElements(t,e={}){const n=m,s=t.map(t=>this[n(398)](t,e));return Promise[n(391)](s)}}const b=k;function w(){const t=["600600aGGVII","1238499DqGqgs","10VRRITM","373786FmVTpE","4CIVZyr","3.0.10","undefined","956153FfIxru","925008OcAlUS","AdStageSDK/","10912xPEMTe"," AdStageSDK/","32IehBXB","1598675osRbEj","userAgent","62MKUphQ"];return(w=function(){return t})()}function k(t,e){const n=w();return(k=function(t,e){return n[t-=400]})(t,e)}!function(){const t=k,e=w();for(;;)try{if(190399===-parseInt(t(407))/1*(parseInt(t(412))/2)+parseInt(t(413))/3+-parseInt(t(401))/4*(-parseInt(t(410))/5)+-parseInt(t(405))/6+-parseInt(t(400))/7*(-parseInt(t(409))/8)+-parseInt(t(414))/9+parseInt(t(415))/10*(parseInt(t(404))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const E=b(402);function x(){return E}const S=A;function A(t,e){const n=T();return(A=function(t,e){return n[t-=318]})(t,e)}function T(){const t=["getItem","UTC","getViewportInfo","SSR","substr","resolvedOptions","1337bokraU","ssr_session_","160pXnznh","generateSessionId","5252958RrpEoP","height",'[data-adstage-slot-id="',"session_","pixelRatio","unknown","safeGetElementById","userAgent","ios","collectDeviceInfo","toString","connection","platform","width","getBoundingClientRect","safeQuerySelector","adstage_session_id","random","top","getPlatform","toLowerCase","6072348BDgHdI","1301583GaDGvC","127708XYZuCw","generateDeviceId","getScrollInfo","isBrowser","now",",y:","22ZohRel","1.0.0","scrollTop","1698626PGMcbY","2818570pkCMHT","adstage_device_id","27272xwWbjO","language"," .adstage-slider-wrapper","test","android","web","1RWQVip","getSlotPosition","round"];return(T=function(){return t})()}!function(){const t=A,e=T();for(;;)try{if(661609===parseInt(t(330))/1*(parseInt(t(321))/2)+parseInt(t(365))/3+parseInt(t(366))/4*(parseInt(t(341))/5)+-parseInt(t(364))/6+-parseInt(t(339))/7*(parseInt(t(324))/8)+parseInt(t(343))/9+-parseInt(t(322))/10*(parseInt(t(318))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class C{static generateDeviceId(){const t=A;if(!y[t(369)]())return"ssr_device_"+Date[t(370)]();const e=localStorage[t(333)](t(323));if(e)return e;const n="device_"+Math.random()[t(353)](36)[t(337)](2,9)+"_"+Date.now();return localStorage.setItem(t(323),n),n}static[S(342)](){const t=S;if(!y[t(369)]())return t(340)+Date[t(370)]();const e=sessionStorage[t(333)](t(359));if(e)return e;const n=t(346)+Math[t(360)]()[t(353)](36)[t(337)](2,9)+"_"+Date.now();return sessionStorage.setItem(t(359),n),n}static isMobile(){return!!y[S(369)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static[S(362)](){const t=S;if(!y[t(369)]())return t(329);const e=navigator[t(350)][t(363)]();return/iphone|ipad|ipod/[t(327)](e)?t(351):/android/.test(e)?t(328):C.isMobile()?t(329):"desktop"}static[S(352)](){const t=S,e=y[t(335)]();return{deviceId:C[t(367)](),sessionId:C[t(342)](),osVersion:y.isBrowser()?navigator[t(355)]:t(336),deviceModel:y[t(369)]()?navigator[t(355)]:t(336),appVersion:t(319),sdkVersion:x(),language:y[t(369)]()&&navigator[t(325)]||"ko",country:"KR",ipAddress:"",userAgent:y[t(369)]()?navigator[t(350)]:"SSR",timezone:y.isBrowser()?Intl.DateTimeFormat()[t(338)]().timeZone:t(334),viewportWidth:e[t(356)],viewportHeight:e.height,screenWidth:y[t(369)]()?screen[t(356)]:0,screenHeight:y[t(369)]()?screen[t(344)]:0,colorDepth:y[t(369)]()?screen.colorDepth:24,pixelRatio:e[t(347)],connectionType:y[t(369)]()&&navigator[t(354)]?.effectiveType||t(348),platform:C.getPlatform()}}static[S(331)](t){const e=S;let n=y[e(349)](t);if(!n){const s=y[e(358)]("#"+t+e(326));s&&(n=s)}if(!n&&(n=y.safeQuerySelector(e(345)+t+'"]')),!n)return e(348);const s=n[e(357)](),i=y[e(368)]();return"x:"+Math.round(s.left)+e(371)+Math[e(332)](s[e(361)]+i[e(320)])}}function R(t,e){const n=L();return(R=function(t,e){return n[t-=367]})(t,e)}const D=R;function L(){const t=["contentType","15168MwMFjd","userAgent","application/json","User-Agent","undefined","5292060vKyVub","955vmZNyy","336712kMEgLn","15630bpTDdN","API key is required","2uyhDxY","5893488BURbil","737709fFdYgh","create","4fdIoSC","407rsiFbK","560321BAAhPY","createForEvents","56bMGobu"];return(L=function(){return t})()}!function(){const t=R,e=L();for(;;)try{if(347455===parseInt(t(380))/1*(-parseInt(t(374))/2)+parseInt(t(376))/3*(parseInt(t(378))/4)+parseInt(t(370))/5*(parseInt(t(372))/6)+-parseInt(t(382))/7*(-parseInt(t(371))/8)+-parseInt(t(375))/9+parseInt(t(369))/10+parseInt(t(379))/11*(-parseInt(t(384))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{static[D(377)](t,e){const n=D;if(!t)throw new Error(n(373));const s={"x-api-key":t,"Content-Type":e?.[n(383)]||n(386)};return typeof navigator!==n(368)&&(s[n(367)]=e?.[n(385)]||navigator[n(385)]),s}static[D(381)](t,e){const n=D,s=M[n(377)](t);return e?.[n(385)]&&(s[n(367)]=e[n(385)]),s}}function P(t,e){const n=z();return(P=function(t,e){return n[t-=139]})(t,e)}const _=P;function z(){const t=[" - ","warn","get"," for ad ","querySelector","/advertisements/events/","5526155aOqCvz","🌐 Full API call details:","height","adType","getElementById","status","apiKey","number","containerId","length","parseNumericValue","7230996LsIRjb","url"," event for ad ","baseUrl","error","❌ Failed to track advertisement event:","3635084dnFGPo","text","title","). Skipping event tracking."," in slot ","collectDeviceInfo","1640644cGCyBr","replace","106312lpdrnj","referrer","✅ Successfully tracked advertisement event: ","slots","debug","⚠️ Slot not found for slotId: ","POST","API request failed: ","log","📡 API Response Status: ","🚀 AdvertisementEventTracker: Processing ","trackAdvertisementEvent","⚠️ DOM element not found for slotId: ","1123394QvGMqo","VIEWABLE","...","width","getPageInfo","3TSmYtt","19972638rCpmGR","getSlotPosition","stringify","now","sessionId","platform","175vdkgMX"];return(z=function(){return t})()}!function(){const t=P,e=z();for(;;)try{if(611505===parseInt(t(172))/1+parseInt(t(157))/2+-parseInt(t(177))/3*(parseInt(t(151))/4)+-parseInt(t(191))/5+-parseInt(t(145))/6+parseInt(t(184))/7*(-parseInt(t(159))/8)+parseInt(t(178))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{constructor(t,e,n,s){const i=P;this[i(148)]=t,this.apiKey=e,this.debug=n,this[i(162)]=s}async[_(170)](t,e,n){const s=_;try{this.debug&&console[s(167)](s(169)+n+s(147)+t+s(155)+e);const i=this.slots[s(187)](e);if(!i)return void(this[s(163)]&&console[s(186)](s(164)+e+". Skipping event tracking to prevent incorrect adType."));if(!(document[s(195)](i[s(142)])||document[s(189)]('[data-adstage-slot-id="'+e+'"]')))return void(this[s(163)]&&console.warn(s(171)+e+" (containerId: "+i.containerId+s(154)));const r=C[s(156)](),a={adType:i[s(194)],platform:r[s(183)],deviceId:r.deviceId,deviceInfo:r,pageUrl:y[s(176)]()[s(146)],pageTitle:y[s(176)]()[s(153)],referrer:y.getPageInfo()[s(160)],slotId:e,slotPosition:C[s(179)](i[s(142)]),slotWidth:B[s(144)](i[s(175)]),slotHeight:B[s(144)](i[s(193)]),sessionId:r[s(182)],pageLoadTime:performance[s(181)](),metadata:{eventType:n,sdkVersion:x(),timestamp:Date[s(181)]()},...n===o[s(173)]&&{isViewable:!0,iabCompliant:!0}},c=this[s(148)]+s(190)+t+"/"+n,d=M.createForEvents(this[s(140)],a);this[s(163)]&&(console[s(167)]("🚀 Sending advertisement event: "+n+s(188)+t,{url:c,headers:d,eventData:a}),console[s(167)](s(192),{method:"POST",url:c,hasApiKey:!!this[s(140)],bodySize:JSON[s(180)](a)[s(143)]}));const l=await fetch(c,{method:s(165),headers:d,body:JSON[s(180)](a)});if(this[s(163)]&&console[s(167)](s(168)+l[s(139)]+" "+l.statusText,{url:c,ok:l.ok}),!l.ok){const t=await l[s(152)]();throw new Error(s(166)+l.status+" "+l.statusText+s(185)+t)}this[s(163)]&&console[s(167)](s(161)+n+s(188)+t)}catch(i){console[s(149)](s(150),i),console[s(149)]("🔍 Debug info:",{baseUrl:this[s(148)],apiKey:this[s(140)]?this.apiKey.substring(0,8)+s(174):"NOT_SET",url:this[s(148)]+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=_;if(typeof t===e(141))return t;if("string"==typeof t){const n=parseFloat(t[e(158)](/px$/,""));return isNaN(n)?0:n}return 0}}function U(t,e){var n=O();return(U=function(t,e){return n[t-=318]})(t,e)}var N=U;function O(){var t=["element","initIntersectionObserver","hidden","isDocumentVisible","1682208UlWghE","49HHDWhx","disconnect","forEach","visibilityState","IntersectionObserver","onViewableCallback","1940778MsWPrz","observer","isViewableTriggered","destroy","356560bNYHHb","1979260KnUmLS","intersectionRatio","284706GcVPom","71818OdVfsN","observe","32GTgggY","33GZYkRQ","visible","1186503iHGitI","2JwYrgT","warn","handleIntersection"];return(O=function(){return t})()}!function(){for(var t=U,e=O();;)try{if(350276===parseInt(t(341))/1*(parseInt(t(335))/2)+parseInt(t(340))/3+-parseInt(t(337))/4*(-parseInt(t(331))/5)+-parseInt(t(334))/6*(-parseInt(t(321))/7)+-parseInt(t(320))/8+-parseInt(t(327))/9+parseInt(t(332))/10*(-parseInt(t(338))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{constructor(t,e){var n=U;this.observer=null,this[n(329)]=!1,this[n(344)]=t,this.onViewableCallback=e,this.initIntersectionObserver()}[N(345)](){var t=N;t(325)in window?(this.observer=new IntersectionObserver(e=>this[t(343)](e),{threshold:.5,rootMargin:"0px"}),this.observer[t(336)](this[t(344)])):console[t(342)]("IntersectionObserver not supported, viewability tracking disabled")}[N(343)](t){var e=N;t[e(323)](t=>{var n=e;t[n(333)]>=.5&&this.isDocumentVisible()&&!this[n(329)]&&(this[n(329)]=!0,this.onViewableCallback&&this[n(326)]())})}[N(319)](){var t=N;return!document[t(318)]&&document[t(324)]===t(339)}[N(330)](){var t=N;this[t(328)]&&(this[t(328)][t(322)](),this[t(328)]=null)}}function F(){const t=["96762TJtUOz","list","/advertisements/list","track","529411ZIIpBK","2rOxebW","2282820VFCjVs","10582232XnwVvi","baseUrl","1380162SCYkMY","production","6RKNxkC","advertisements","2617260qECwdX","/advertisements","https://beta-api.adstage.app","events","https://api.adstage.app","getBaseUrl","395rRgPGj","startsWith","detail","registerAttribution","10547478MDGEAi","/advertisements/events"];return(F=function(){return t})()}const H=Y;!function(){const t=Y,e=F();for(;;)try{if(748311===parseInt(t(384))/1*(parseInt(t(360))/2)+parseInt(t(366))/3*(-parseInt(t(361))/4)+parseInt(t(374))/5*(parseInt(t(380))/6)+parseInt(t(364))/7+parseInt(t(362))/8+-parseInt(t(378))/9+-parseInt(t(368))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const K={production:H(372),beta:H(370)};H(365);const j={advertisements:{list:H(382),detail:H(369),events:H(379)},events:{track:"/events/track",registerAttribution:"/events/register/attribution"}};function Y(t,e){const n=F();return(Y=function(t,e){return n[t-=360]})(t,e)}class W{constructor(t){const e=H;this[e(367)]={list:()=>""+this[e(363)]+j[e(367)][e(381)],detail:t=>""+this[e(363)]+j[e(367)][e(376)]+"/"+t,events:(t,n)=>""+this[e(363)]+j[e(367)][e(371)]+"/"+t+"/"+n},this.events={track:()=>""+this[e(363)]+j.events[e(383)],registerAttribution:()=>""+this.baseUrl+j.events[e(377)]},this.baseUrl=t||K[e(365)]}setBaseUrl(t){this[H(363)]=t}[H(373)](){return this[H(363)]}custom(t){const e=H;return""+this[e(363)]+(t[e(375)]("/")?t:"/"+t)}}const G=new W;function q(t,e){var n=Q();return(q=function(t,e){return n[t-=128]})(t,e)}var X=q;function Q(){var t=["42978408HQsnyY"," (index: 0) in slot: ",") in slot: ","trackSlideViewable","269297VnIUTw","77gIPidL","_id","1494627hqzfTe","947RMcSFG","8738745dSRUSH","🎯 Triggering VIEWABLE event for slide change: ad ","VIEWABLE","117fGUDcr","4NcviXf","1178xJSKHg"," (index: ","482776QGegsQ","🎯 Triggering initial VIEWABLE event: ad ","876530Ztfvrc","186yspUNy"];return(Q=function(){return t})()}!function(){for(var t=q,e=Q();;)try{if(983274===parseInt(t(146))/1*(-parseInt(t(132))/2)+-parseInt(t(145))/3*(parseInt(t(131))/4)+-parseInt(t(147))/5+parseInt(t(137))/6*(-parseInt(t(142))/7)+parseInt(t(134))/8*(parseInt(t(130))/9)+-parseInt(t(136))/10*(-parseInt(t(143))/11)+parseInt(t(138))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class J{static[X(141)](t,e,n,s,i=!1){var r=X;i&&console.log(r(128)+t[r(144)]+r(133)+n+r(140)+e.id),s(t[r(144)],e.id,o[r(129)])}static trackInitialSlideViewable(t,e,n,s=!1){var i=X;s&&console.log(i(135)+t[i(144)]+i(139)+e.id),n(t[i(144)],e.id,o[i(129)])}}const Z=tt;function $(){const t=["4781238CNTZQh","linkUrl","CLICK","preventDefault","1412689zHrfvk"," ad clicked: ","style","8602629jUmyye","3777MzEKUT","16502769iyBytp","toLowerCase","log","8bShMKz","_blank","adType","cursor","addClickEventForSlider","addEventListener","addClickEventsBatch","2963000kDBVtj","isClickable","addClickEvent","click","_id","addClickEventForRenderer","stopPropagation","open","🔗 "," -> ","1200715ivqklM","4764YbleGN"];return($=function(){return t})()}function tt(t,e){const n=$();return(tt=function(t,e){return n[t-=149]})(t,e)}!function(){const t=tt,e=$();for(;;)try{if(774340===parseInt(t(173))/1+parseInt(t(157))/2+-parseInt(t(177))/3*(-parseInt(t(168))/4)+parseInt(t(167))/5+-parseInt(t(169))/6+parseInt(t(176))/7*(-parseInt(t(150))/8)+-parseInt(t(178))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class et{static[Z(159)](t,e,n,s,i=!1,r){const a=Z;e.linkUrl&&(t[a(175)][a(153)]="pointer",t[a(155)](a(160),t=>{const c=a;if(t[c(172)](),t[c(163)](),s&&s(e._id,n.id,o[c(171)]),window[c(164)](e[c(170)],c(151)),i){const t=r||String(n[c(152)])[c(179)]();console[c(149)](c(165)+t+c(174)+e[c(161)]+c(166)+e[c(170)])}}))}static[Z(162)](t,e,n,s,i=!1,r){const a=Z;e[a(170)]&&(t[a(175)][a(153)]="pointer",t[a(155)]("click",t=>{const c=a;t[c(172)](),t.stopPropagation();if(s()(e[c(161)],n.id,o[c(171)]),window[c(164)](e.linkUrl,c(151)),i){const t=r||String(n.adType)[c(179)]();console[c(149)](c(165)+t+" ad clicked: "+e[c(161)]+c(166)+e[c(170)])}}))}static[Z(154)](t,e,n,s,i=!1,r){this.addClickEvent(t,e,n,s,i,r)}static[Z(158)](t){return Boolean(t[Z(170)])}static[Z(156)](t,e,n,s,i=!1,r){t.forEach((t,o)=>{const a=tt,c=e[o];c&&this[a(159)](t,c,n,s,i,r)})}}const nt=st;function st(t,e){const n=it();return(st=function(t,e){return n[t-=205]})(t,e)}function it(){const t=["padding","adstage-dots","createMinimalDotIndicator","preventDefault","#cccccc","18mHVooi","opacity","color","50px","height","1px dashed #ccc","#f0f0f0","\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ","center","hidden","forEach","classList","style","string","0.9","auto","block","removeChild","length","createSimpleAdElement","flex","createSliderContainer","transition","touchmove","contains","100px","click","touches","1230NGpJhY","createElement","setProperty","querySelectorAll","\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ","className","abs","autoSlideInterval","#f9f9f9","100%","adType","setAttribute","videoUrl","clientX","#000","3628534yywiaW","mouseleave","#999999","toLowerCase","VIDEO","TEXT","translateX(-","36gQNqfn","borderColor","6968mwCWlq","_id","src",".adstage-dot","inline-block","cssText","div","none","touchstart","adstage-slide-container","changedTouches","background","width","trackSlideViewable","children","add","every","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","button","entries","appendChild","mouseenter","adstage-slider-wrapper","866771YYPmlN","cover","active","39274340hOpPiv","Video Ad","fontSize","backgroundColor","imageUrl","overflow","881915jDXkGS","transform 0.4s ease-out","4288680atfThD","border","includes","Banner Ad","BANNER","getBoundingClientRect","#666666","8642704fkgdWj","data-adstage-ad-id","adstage-ad adstage-","8px","addEventListener","transform","white","video","img","addTouchSupport","display","body"," Ad","Text Ad","adstage-dot","normal","textContent"];return(it=function(){return t})()}!function(){const t=st,e=it();for(;;)try{if(827050===parseInt(t(226))/1+parseInt(t(318))/2*(-parseInt(t(294))/3)+parseInt(t(316))/4*(-parseInt(t(235))/5)+-parseInt(t(266))/6*(parseInt(t(309))/7)+parseInt(t(244))/8+-parseInt(t(237))/9+parseInt(t(229))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class rt{static[nt(285)](e,n){const s=nt,i=document[s(295)]("div");switch(i[s(299)]=s(246)+String(e[s(304)])[s(312)](),i[s(305)](s(245),n[s(319)]),i[s(305)]("data-adstage-slot-id",e.id),i.style[s(254)]=s(282),i[s(278)][s(215)]="100%",i[s(278)][s(270)]=s(281),e[s(304)]){case t[s(241)]:if(n[s(233)]){const t=document[s(295)](s(252));t[s(205)]=n[s(233)],t[s(278)].width=s(303),t[s(278)][s(270)]=s(281),t[s(278)].objectFit=s(227),i[s(223)](t)}else i[s(278)][s(270)]=s(291),i.style.backgroundColor=s(272),i.style[s(238)]=s(271),i[s(260)]=s(240);break;case t[s(313)]:if(n.videoUrl){const t=document[s(295)](s(251));t[s(205)]=n[s(306)],t[s(278)][s(215)]=s(303),t[s(278)][s(270)]=s(281),i[s(223)](t)}else i[s(278)][s(270)]="200px",i[s(278)][s(232)]=s(308),i[s(278)].border="1px solid #666",i[s(260)]=s(230),i[s(278)][s(268)]=s(250);break;case t[s(314)]:if(n[s(260)]){const t=document[s(295)](s(209));t[s(260)]=n[s(260)]||"",t.style.padding=s(247),t.style[s(231)]="14px",i[s(223)](t)}else i[s(278)].height=s(269),i.style[s(261)]=s(247),i.textContent=s(257);break;default:i[s(278)].height=s(291),i[s(278)][s(238)]=s(271),i[s(278)][s(232)]=s(302),i.textContent=e[s(304)]+s(256)}return i}static[nt(287)](e,n,s,i,r=!1){const o=nt,a=document.createElement(o(209));a.className=o(225);const c={position:"relative",overflow:o(275)};if(e[o(215)]&&0!==e.width){let t;t=typeof e[o(215)]===o(279)&&(e[o(215)][o(239)]("px")||e[o(215)][o(239)]("%"))?e[o(215)]:e[o(215)]+"px",c.width=t,c[o(254)]=o(207)}else c.display=o(207);if(e[o(270)]&&0!==e[o(270)]){const t="string"==typeof e[o(270)]?e[o(270)]:e[o(270)]+"px";c[o(270)]=t}Object[o(222)](c)[o(276)](([t,e])=>{const n=o;a[n(278)][n(296)](t,e)});const d=!e[o(215)]||0===e[o(215)],l=!e[o(270)]||0===e[o(270)];if(d||l){const t=document[o(295)](o(209));if(t[o(278)][o(208)]=o(220),!d&&e[o(215)]){let n;n=typeof e[o(215)]===o(279)&&(e[o(215)][o(239)]("px")||e[o(215)].includes("%"))?e[o(215)]:e.width+"px",t[o(278)][o(215)]=n,t[o(278)].whiteSpace=o(259)}document[o(255)][o(223)](t);let s=0,i=0;n[o(276)](n=>{const r=o,a=this[r(285)](e,n);t.appendChild(a);const c=a[r(242)]();c.width>s&&(s=c[r(215)]),c[r(270)]>i&&(i=c[r(270)]),t[r(283)](a)}),d&&s>0&&(a[o(278)][o(215)]=s+"px",c[o(215)]=s+"px"),l&&i>0&&(a[o(278)].height=i+"px",c[o(270)]=i+"px"),document[o(255)][o(283)](t)}const u=[...n,n[0]],p=document.createElement("div");p.className=o(212);const h={display:o(286),transition:"transform 0.4s ease-out",width:100*u[o(284)]+"%"};e[o(270)]&&0!==e[o(270)]&&(h.height="100%"),Object[o(222)](h)[o(276)](([t,e])=>{const n=o;p[n(278)][n(296)](t,e)}),u[o(276)]((t,n)=>{const s=o,a=document[s(295)](s(209));a[s(299)]="adstage-slide";const c={width:100/u[s(284)]+"%","flex-shrink":"0",display:s(286),"align-items":s(274),"justify-content":"center"};e.height&&0!==e[s(270)]&&(c[s(270)]=s(303)),Object[s(222)](c)[s(276)](([t,e])=>{const n=s;a[n(278)][n(296)](t,e)});const d=this[s(285)](e,t);et.addClickEventForSlider(d,t,e,i,r,String(e[s(304)]).toLowerCase()),a[s(223)](d),p[s(223)](a)});const f=n[o(219)](e=>e[o(304)]===t[o(314)])?null:this[o(263)](n.length);let g=0;const m=n[o(284)],I=1e3*(s?.[o(301)]||3),v=(t,s=!1)=>{const a=o;g=t,p[a(278)][a(288)]=a(s?210:236),p[a(278)][a(249)]=a(315)+100/u[a(284)]*g+"%)";const c=g===m?0:g;if(f){f.querySelectorAll(".adstage-dot")[a(276)]((t,e)=>{const n=a,s=t;e===c?(s.classList[n(218)]("active"),s.style[n(214)]=n(243),s[n(278)].borderColor=n(243),s[n(278)][n(267)]="1"):(s[n(277)].remove(n(228)),s[n(278)][n(214)]="transparent",s[n(278)][n(317)]="#cccccc",s[n(278)][n(267)]="0.7")})}J[a(216)](n[c],e,c,i,r)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[o(297)](o(206))[o(276)]((t,e)=>{const n=o;t[n(248)](n(292),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(248)](o(224),()=>{clearInterval(b)}),a[o(248)](o(310),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[o(253)](p,v,()=>g,m,y),a[o(223)](p),f&&a[o(223)](f),v(0),(!e[o(215)]||0===e[o(215)])&&setTimeout(()=>{const t=o,n=p[t(217)][0];if(n){const s=n[t(217)][0];if(s){const n=s[t(242)]();a[t(278)][t(215)]=n[t(215)]+"px",(!e[t(270)]||0===e[t(270)])&&(a[t(278)][t(270)]=n[t(270)]+"px"),a[t(278)][t(234)]="hidden"}}},10),a}static createMinimalDotIndicator(t){const e=nt,n=document[e(295)](e(209));n.className=e(262),n.style[e(208)]=e(273);for(let s=0;s<t;s++){const t=document[e(295)](e(221));t.className=e(258),t[e(278)][e(208)]=e(298),t.addEventListener(e(224),()=>{const n=e;!t.classList[n(290)](n(228))&&(t[n(278)].borderColor=n(311),t[n(278)][n(267)]=n(280))}),t[e(248)](e(310),()=>{const n=e;!t[n(277)][n(290)](n(228))&&(t[n(278)].borderColor=n(265),t[n(278)].opacity="0.7")}),n[e(223)](t)}return n}static[nt(253)](t,e,n,s,i){const r=nt;let o=0,a=!1;t[r(248)](r(211),t=>{o=t[r(293)][0].clientX,a=!0}),t[r(248)](r(289),t=>{a&&t[r(264)]()}),t.addEventListener("touchend",t=>{const c=r;if(!a)return;a=!1;const d=t[c(213)][0][c(307)],l=o-d;if(Math[c(300)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}const ot=ct;!function(){const t=ct,e=dt();for(;;)try{if(643295===parseInt(t(352))/1+parseInt(t(333))/2*(-parseInt(t(338))/3)+-parseInt(t(348))/4*(parseInt(t(337))/5)+-parseInt(t(334))/6*(parseInt(t(349))/7)+parseInt(t(340))/8*(-parseInt(t(350))/9)+parseInt(t(347))/10+parseInt(t(341))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class at{static isDuplicateViewable(t,e,n=!1){const s=ct,i=t+"_"+e;return at[s(351)][s(343)](i)?(n&&console[s(336)](s(335)+t+s(342)+e),!0):(at[s(351)][s(339)](i),n&&console[s(336)](s(344)+t+s(342)+e),!1)}static[ot(346)](){const t=ot;at.viewableTracker[t(346)]()}static[ot(353)](t,e){const n=ot,s=t+"_"+e;at[n(351)][n(345)](s)}}function ct(t,e){const n=dt();return(ct=function(t,e){return n[t-=333]})(t,e)}function dt(){const t=["231wyhdrO","add","1360600MhMcTS","22440858ZliKHo"," in slot ","has","✅ New viewable recorded for ad ","delete","clear","10256480xsOfjL","4wQeEAi","119PwdCTL","63hDohHT","viewableTracker","49552WwKLhf","clearAdViewable","16708QNGinf","15258lPWaQp","Duplicate viewable blocked for ad ","log","2974845olNCOH"];return(dt=function(){return t})()}function lt(t,e){const n=pt();return(lt=function(t,e){return n[t-=431]})(t,e)}at[ot(351)]=new Set;const ut=lt;function pt(){const t=["transparent","appendChild","371924wNRAHv"," in slot "," ad...</span>"," for ","createPlaceholder","createElement","10813554cecSWw","setAttribute","applyPlaceholderStyle","querySelector",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","2px dashed #e74c3c","<span>Loading ","color","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","adType","cssText","fontSize","placeholderMode","display","height","borderRadius","trackAdvertisementEvent","block","minHeight","📊 Advertisement event tracked: ","306912EADlTC","hasAttribute","error",") - Mode: ",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>','[class*="banner"]',"5mXhppz","getAttribute","📏 Using default height ","📏 Using 100% height (container: ","data-adstage-container","VIEWABLE","adstage-slot adstage-empty adstage-","isDuplicateViewable","data-adstage-slot","⚠️ AdvertisementEventTracker not available for ","createEmptyContainer","data-adstage-empty","width","rgba(248, 249, 250, 0.5)","parentElement","3068124UDSLpl","innerHTML","border"," event","data-adstage-type","log","getComputedStyle","div","adstage-slot","warn"," event for ad ","getElementById","flex",'[class*="container"]',"classList",".adstage-","getContainerHeight",'div[style*="height"]',"backgroundColor","className"," container: ","center","generic","alignItems","true","containerId","98MRKwqn","advertisementEventTracker","6px",'[data-adstage-container="true"]',"number","filter","minimal","justifyContent","10325350BvVFnc","✅ New viewable recorded for ad ","closest","advertisement","calculateAdSize",'div[style*="min-height"]',"⚠️ Created empty ","unknown","opacity","1px dashed #ccc","9649842kyxeYz","⚠️ ","11px","4px","887496fKXFCD","string","3DtLYrb","): "," for ad "," slot: ","createEventTrackingCallback","auto","debug","invisible","style","adstage-class","toLowerCase","100%",'[class*="ad"]'];return(pt=function(){return t})()}!function(){const t=lt,e=pt();for(;;)try{if(861250===-parseInt(t(505))/1+parseInt(t(440))/2+parseInt(t(490))/3*(-parseInt(t(532))/4)+-parseInt(t(538))/5*(parseInt(t(484))/6)+parseInt(t(466))/7*(parseInt(t(488))/8)+-parseInt(t(511))/9+parseInt(t(474))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ht{constructor(t,e=!1,n){const s=lt;this[s(521)]=t,this[s(496)]=e,this.advertisementEventTracker=n||null}[ut(509)](t,e,n,s){const i=ut,r=document[i(510)](i(447));r.id=e,r.className="adstage-slot adstage-"+String(this[i(521)])[i(500)](),r[i(512)](i(542),"true"),r[i(512)](i(444),String(this[i(521)])),r[i(512)](i(433),e);const{width:o,height:a}=this[i(478)](t,n,s)||{width:i(501),height:this.getDefaultHeight()};r.style[i(437)]=o,r[i(498)][i(526)]=a;const c=s?.[i(524)]||n[i(524)]||i(497);this[i(513)](r,c),t[i(504)](r),this.debug&&console[i(445)]("📦 Placeholder created for "+this[i(521)]+i(493)+e+" ("+o+" x "+a+i(535)+c)}[ut(513)](t,e){const n=ut;switch(e){case n(497):t[n(498)].backgroundColor=n(503),t[n(498)][n(442)]="none",t[n(498)][n(482)]="0",t[n(441)]="";break;case n(503):t[n(498)][n(458)]=n(503),t[n(498)].border="none",t.style[n(525)]=n(529),t[n(441)]="";break;case"subtle":t[n(498)].backgroundColor="rgba(0, 0, 0, 0.02)",t[n(498)].border="none",t.style[n(527)]=n(487),t[n(498)][n(525)]=n(452),t[n(498)][n(463)]="center",t[n(498)][n(473)]=n(461),t[n(441)]=n(536);break;case n(472):t[n(498)][n(458)]=n(438),t[n(498)][n(442)]="1px solid rgba(0, 0, 0, 0.08)",t[n(498)][n(527)]=n(468),t[n(498)][n(525)]=n(452),t[n(498)].alignItems=n(461),t[n(498)][n(473)]=n(461),t[n(441)]=n(515);break;case n(496):t[n(498)][n(442)]=n(517),t[n(498)][n(525)]=n(452),t[n(498)][n(463)]="center",t[n(498)].justifyContent=n(461),t[n(498)].backgroundColor="rgba(231, 76, 60, 0.1)",t.style[n(519)]="#e74c3c",t.style.fontFamily="monospace",t[n(498)][n(523)]=n(486),t[n(441)]=n(518)+this.adType+n(507);break;default:t.style[n(442)]=n(483),t[n(498)][n(525)]="flex",t[n(498)][n(463)]=n(461),t.style[n(473)]=n(461),t[n(498)][n(458)]="#f9f9f9",t[n(498)][n(519)]="#666",t[n(441)]=n(518)+this[n(521)]+n(507)}}[ut(478)](t,e,n){const s=ut,i=e[s(437)],r=e[s(526)];let o,a;if(o=typeof i===s(470)?i+"px":typeof i===s(489)?i:"100%",typeof r===s(470))a=r+"px";else if(typeof r===s(489)&&r!==s(501)&&r!==s(495))a=r;else{const e=this[s(456)](t);e>0?(a=s(501),(n?.debug||this[s(496)])&&console[s(445)](s(541)+e+"px)")):(a=this.getDefaultHeight(),(n?.[s(496)]||this[s(496)])&&console.log(s(540)+a+s(508)+this.adType))}return{width:o,height:a}}getContainerHeight(t){const e=ut,n=window[e(446)](t),s=parseFloat(n[e(526)]);if(!s||0===s){const s=parseFloat(n[e(530)]);if(s>0)return s;if(t[e(498)][e(526)]&&"auto"!==t.style.height){const n=parseFloat(t[e(498)][e(526)]);if(n>0)return n}const i=t[e(539)]("height");if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}[ut(494)](){return async(t,e,n)=>{const s=lt;if(n===o[s(543)]){if(at[s(432)](t,e,this[s(496)]))return void(this[s(496)]&&console[s(445)]("🚫 Duplicate viewable blocked for ad "+t+" in slot "+e));this[s(496)]&&console[s(445)](s(475)+t+s(506)+e)}if(this[s(467)])try{this.debug&&console.log("🔄 Starting advertisement event tracking: "+n+s(492)+t+s(506)+e),await this[s(467)][s(528)](t,e,n),this.debug&&console[s(445)](s(531)+n+s(492)+t+s(506)+e)}catch(e){this[s(496)]&&console[s(534)]("❌ Failed to track "+n+s(450)+t+":",e)}else this[s(496)]&&console[s(449)](s(434)+n+s(443))}}renderFallback(t){const e=ut,n=document[e(451)](t.id);if(n){const s=[...[n[e(514)]('[data-adstage-container="true"]'),n.closest(e(469)),n][e(471)](t=>t&&t[e(533)](e(542))),...[n[e(476)](".adstage-slot"),n[e(476)](e(455)+String(this.adType)[e(500)]()),n[e(476)](e(502)),n[e(476)](e(537)),n[e(476)](e(453)),n[e(476)](e(457)),n.closest(e(479)),n[e(439)]][e(471)](Boolean)][0];if(s){let n=e(481);n=s.hasAttribute(e(542))?"adstage-official":s[e(454)].contains(e(448))?e(499):e(462),s[e(498)][e(522)]+=e(516),s[e(441)]="",s[e(512)](e(436),e(464)),this[e(496)]&&console[e(449)](e(485)+this[e(521)]+" container collapsed ("+n+e(491)+t.id,s)}else this[e(435)](t)}t[e(477)]=void 0,t.isEmpty=!0}createEmptyContainer(t){const e=ut,n=document[e(451)](t[e(465)]);if(n){n.innerHTML="";const s=document[e(510)](e(447));s.id=t.id,s[e(459)]=e(431)+String(this[e(521)])[e(500)](),s[e(512)](e(542),e(464)),s[e(512)]("data-adstage-empty","true"),s[e(512)](e(433),t.id),s.style.cssText=e(520),n[e(504)](s),this[e(496)]&&console[e(449)](e(480)+this[e(521)]+e(460)+t.id)}}log(t,...e){const n=ut;this[n(496)]&&console.log("["+this[n(521)]+"] "+t,...e)}}const ft=mt;function gt(){const t=["name","12YgFUZc","default","config","map"," (avg: ","renderAdElement","parentElement","fulfilled","contain","</div>","values","error","🎨 Banner image style applied: objectFit=","Container not found: ","BANNER","title","Banner Ad","dominant","abs","optimizeContainerForBannerAds","cover","Banner Advertisement","308766SmMlgq","reduce","renderOptimizedBannerImage","selectOptimalSizeStrategy","backgroundColor","value","width","🎠 Banner carousel created for slot: ","onload"," ads: "," (strategy: ","count",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"imageUrl","4:3","src","getElementById","length","Banner container optimization failed, using default size:","containerId","<div>","innerHTML","applyOptimizedImageStyle","getDefaultHeight","average","2486421YWWxTG","Failed to calculate optimal banner size, using defaults:","className"," with ","1024330rELpUr","loadImageDimensions","log","objectFit","calculateAdSize","renderMultipleAds","naturalHeight","📸 Banner image dimensions: ","250px","from","img","debug","adstage-ad adstage-banner-ad","aspectRatio","forEach","height","11046544ekHBKa","toFixed","🔧 Banner container optimized for ","filter","100%","some","📦 Banner container dimensions: ","calculateOptimalContainerSize","borderRadius","div","5467805SAFLKq","4376040HHMVqV","get","#f0f0f0","naturalWidth","toString","637498PaRyzN"," ads (optimized: ","onerror","8px","center","appendChild","ratio","calculateOptimalHeight","Banner","allSettled","common","objectPosition","addClickEventForRenderer","style","createEventTrackingCallback","Image URL is not provided","📐 Optimal banner container calculated: ","getBoundingClientRect","createElement","set","round","❌ Failed to load optimized banner image:","block","16:9","optimizedHeight"];return(gt=function(){return t})()}function mt(t,e){const n=gt();return(mt=function(t,e){return n[t-=250]})(t,e)}!function(){const t=mt,e=gt();for(;;)try{if(521887===-parseInt(t(257))/1+-parseInt(t(305))/2+parseInt(t(330))/3+-parseInt(t(283))/4*(-parseInt(t(334))/5)+-parseInt(t(252))/6+-parseInt(t(251))/7+parseInt(t(350))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class It extends ht{constructor(e=!1,n){super(t[mt(297)],e,n)}[ft(328)](){return ft(342)}async[ft(288)](t,e){const n=ft,s=document.getElementById(t[n(324)]);if(!s)return;const i=document[n(275)](n(250));i[n(332)]=n(346);const r=t.optimizedHeight,o=s[n(289)]||s;if(r)i[n(270)][n(311)]=n(354),i.style[n(349)]=String(r);else{const e=t[n(285)],s={width:e?.[n(311)],height:e?.[n(349)]},{width:r,height:a}=this[n(338)](o,s,{debug:this[n(345)]});i[n(270)][n(311)]=r,i[n(270)][n(349)]=a}e[n(318)]?await this[n(307)](i,e,t):i.innerHTML=n(325)+(e[n(298)]||n(299))+n(292),et[n(269)](i,e,t,()=>this[n(271)](),this[n(345)],n(265)),s.innerHTML="",s[n(262)](i)}async[ft(339)](t,e){const n=ft,s=document[n(321)](t[n(324)]);if(!s)throw new Error(n(296)+t[n(324)]);await this[n(302)](t,e);const i=this[n(271)](),r={autoSlideInterval:(t[n(285)]?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t.optimizedHeight,aspectRatio:t.aspectRatio},o=rt.createSliderContainer(t,e,r,i,this.debug);o&&(s.innerHTML="",s[n(262)](o),this.debug&&console[n(336)](n(312)+t.id+n(333)+e[n(322)]+n(258)+(t[n(281)]||n(284))+")"))}async[ft(357)](t,e){const n=ft;if(!t.length)return{width:n(354),height:this.getDefaultHeight(),aspectRatio:16/9};try{const s=(await Promise[n(266)](t[n(353)](t=>t[n(318)])[n(286)](t=>this[n(335)](t[n(318)]))))[n(353)](t=>t.status===n(290))[n(286)](t=>t[n(310)]);if(0===s.length)return{width:n(354),height:this.getDefaultHeight(),aspectRatio:16/9};const i=this[n(308)](s),r=this[n(264)](s,e,i);return this[n(345)]&&console[n(336)](n(273)+e+"x"+r+n(315)+i+")"),{width:n(354),height:r+"px",aspectRatio:e/r}}catch(t){return console.warn(n(331),t),{width:"100%",height:this[n(328)](),aspectRatio:16/9}}}async[ft(302)](t,e){const n=ft;try{const s=document[n(321)](t[n(324)]),i=document[n(321)](t.id);if(!s||!i)return;const r=s[n(274)]().width||300,o=await this[n(357)](e,r);i.style.height=o[n(349)],t[n(281)]=o[n(349)],t[n(347)]=o[n(347)],this[n(345)]&&console[n(336)](n(352)+e[n(322)]+n(314)+o.height)}catch(t){console.warn(n(323),t)}}selectOptimalSizeStrategy(t){const e=ft,n=t[e(286)](t=>t[e(311)]/t[e(349)]),s=new Map;n.forEach(t=>{const n=e,i=(Math[n(277)](10*t)/10).toString();s[n(276)](i,(s[n(253)](i)||0)+1)});const i=Math.max(...s[e(293)]()),r=t[e(322)];if(i/r>=.7)return e(300);const o=[16/9,4/3,1,1.5];return n[e(353)](t=>o[e(355)](n=>Math[e(301)](t-n)<.1)).length/r>=.5?"common":e(329)}calculateOptimalHeight(t,e,n){const s=ft,i=t[s(286)](t=>t[s(311)]/t[s(349)]);switch(n){case"dominant":{const t=new Map;i[s(348)](e=>{const n=s,i=Math.round(10*e)/10,r=i[n(256)](),o=t.get(r);o?o[n(316)]++:t[n(276)](r,{ratio:i,count:1})});const n=Array[s(343)](t[s(293)]())[s(306)]((t,e)=>e.count>t[s(316)]?e:t);return Math[s(277)](e/n[s(263)])}case s(267):{const t=[{ratio:16/9,name:s(280)},{ratio:4/3,name:s(319)},{ratio:1,name:"1:1"},{ratio:1.5,name:"3:2"}],n=i[s(306)]((t,e)=>t+e,0)/i[s(322)],r=t[s(306)]((t,e)=>Math[s(301)](e[s(263)]-n)<Math[s(301)](t[s(263)]-n)?e:t);return this.debug&&console.log("📊 Using standard ratio: "+r[s(282)]+s(287)+n[s(351)](2)+")"),Math[s(277)](e/r[s(263)])}default:{const t=i.reduce((t,e)=>t+e,0)/i[s(322)];return Math[s(277)](e/t)}}}[ft(335)](t){return new Promise((e,n)=>{const s=mt,i=new Image;i[s(313)]=()=>{const t=s;e({width:i[t(255)],height:i[t(340)]})},i[s(259)]=()=>{n(new Error("Failed to load image: "+t))},i[s(320)]=t})}[ft(327)](t,e,n){const s=ft,i=e/n;Math[s(301)](i-1)<.1?(t[s(270)][s(337)]=s(303),t.style[s(268)]="center"):i>1.3?(t[s(270)].objectFit=s(291),t[s(270)][s(268)]="center",t[s(270)][s(309)]=s(254)):i<.7?(t[s(270)][s(337)]="cover",t[s(270)].objectPosition="center"):(t[s(270)][s(337)]="cover",t[s(270)][s(268)]=s(261)),this.debug&&console[s(336)](s(295)+t.style[s(337)]+", ratio="+i.toFixed(2))}async renderOptimizedBannerImage(t,e,n){const s=ft,i=document[s(275)](s(344));i[s(270)][s(311)]=s(354),i[s(270)][s(349)]="100%",i[s(270)].display=s(279),i[s(270)][s(358)]=s(260),i.alt=e[s(298)]||s(304),t[s(326)]=s(317);try{if(!e[s(318)])throw new Error(s(272));const r=await this.loadImageDimensions(e.imageUrl),o=t[s(274)](),a=o[s(311)],c=o[s(349)];this[s(345)]&&(console[s(336)](s(341)+r.width+"x"+r[s(349)]),console[s(336)](s(356)+a+"x"+c));const d=r.width/r[s(349)],l=a/c;return this[s(327)](i,d,l),i.src=e[s(318)],t[s(326)]="",t[s(262)](i),et[s(269)](i,e,n,()=>this[s(271)](),this[s(345)],s(265)),this[s(345)]&&console[s(336)]("✅ Optimized banner image rendered for ad: "+e._id),i}catch(r){return console[s(294)](s(278),r),e[s(318)]&&(i.src=e[s(318)],i[s(270)].objectFit=s(303),i[s(270)][s(268)]="center",t[s(326)]="",t[s(262)](i),et[s(269)](i,e,n,()=>this.createEventTrackingCallback(),this[s(345)],s(265))),i}}}function vt(t,e){const n=bt();return(vt=function(t,e){return n[t-=333]})(t,e)}const yt=vt;function bt(){const t=["9107QfDyNX","1550202DHzDGw","createTextAdStyles","214yyyGsX","456CaSkjt","1771820rBvGLJ","textContent","7420842lFeqhZ","1451259UvTFhY","\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n ","setTextAdContent","3041TKhhBJ","1121428wPlLqo"];return(bt=function(){return t})()}!function(){const t=vt,e=bt();for(;;)try{if(273915===parseInt(t(334))/1*(-parseInt(t(339))/2)+-parseInt(t(344))/3+parseInt(t(335))/4+-parseInt(t(341))/5+parseInt(t(337))/6+parseInt(t(336))/7*(parseInt(t(340))/8)+parseInt(t(343))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class wt{static[yt(338)](t=!1){return yt(345)}static[yt(333)](t,e){const n=yt,s=e.textContent||e.title||"";t[n(342)]=s}}const kt=Et;function Et(t,e){const n=xt();return(Et=function(t,e){return n[t-=239]})(t,e)}function xt(){const t=["data-adstage-ad-id","preventDefault","appendChild","1499085xnwNFU","left","style","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","hidden","touchmove","includes","clientY","width","20px","addEventListener","12VForls","string","top","removeChild","height: auto;","setProperty","270288Ixbnbb","toLowerCase","absolute","translateY(0)","16932CLzilT","fit-content","className","90CXUvyE","2651HNHyzg","clientX","setTextAdContent","adstage-fade-slider-wrapper","530176dufVnN",";\n top: ","adstage-fade-slide-container","trackSlideViewable","202452mmNhfY","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","adstage-fade-slide","touchend","\n position: relative;\n width: 100%;\n ","block","touches","forEach",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","changedTouches","opacity","60bAkjXh","push","height: 100%;","auto","div","relative",";\n left: ","zIndex","1609739YHKzDR","\n ","createTextAdStyles","body","createSimpleAdElement",";\n ","createElement","2824iwAdKC","minHeight","position","abs","height: auto; min-height: fit-content;","25459nSthor","adstage-ad adstage-","setAttribute","cssText","translateY(-20px)","height","transform","whiteSpace","addTouchSupport","createTextTransitionContainer"];return(xt=function(){return t})()}!function(){const t=Et,e=xt();for(;;)try{if(919453===parseInt(t(240))/1+parseInt(t(282))/2*(-parseInt(t(276))/3)+-parseInt(t(294))/4+-parseInt(t(289))/5*(-parseInt(t(298))/6)+parseInt(t(252))/7*(-parseInt(t(247))/8)+parseInt(t(265))/9*(parseInt(t(309))/10)+-parseInt(t(290))/11*(parseInt(t(286))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class St{static[kt(244)](t,e){const n=kt,s=document.createElement(n(313));return s[n(288)]=n(253)+String(t.adType)[n(283)](),s.setAttribute(n(262),e._id),s[n(254)]("data-adstage-slot-id",t.id),s[n(267)][n(255)]=wt[n(242)](!0),wt[n(292)](s,e),s}static[kt(261)](t,e,n,s,i=!1){const r=kt,o=t[r(257)]&&0!==t.height&&t[r(257)]!==r(312),a=document[r(246)](r(313));a.className=r(293);const c={position:"relative",overflow:r(269),display:r(303)};if(!o&&(c[r(257)]=r(312),c[r(248)]=r(287)),t[r(273)]&&0!==t.width){let e;e="string"==typeof t[r(273)]?t.width[r(271)]("px")||t[r(273)].includes("%")?t[r(273)]:t.width+"px":t[r(273)]+"px",c[r(273)]=e}if(t[r(257)]&&0!==t[r(257)]&&t[r(257)]!==r(312)&&o){let e;e=typeof t[r(257)]===r(277)&&(t[r(257)][r(271)]("px")||t.height[r(271)]("%"))?t[r(257)]:t[r(257)]+"px",c[r(257)]=e}Object.entries(c)[r(305)](([t,e])=>{const n=r;a[n(267)][n(281)](t,e)});const d=document[r(246)](r(313));d[r(288)]=r(296),d[r(267)][r(255)]=r(302)+r(o?311:251)+r(241);let l=null;const u=!t[r(273)]||0===t[r(273)],p=!t[r(257)]||0===t[r(257)]||void 0===t[r(257)]||"auto"===t[r(257)];if(u||p&&o){if(l=document.createElement(r(313)),l.style[r(255)]=r(299),!u&&t[r(273)]){let e;e=typeof t[r(273)]===r(277)?t[r(273)].includes("px")||t[r(273)][r(271)]("%")?t.width:t.width+"px":t[r(273)]+"px",l.style[r(273)]=e,l[r(267)][r(259)]="normal"}document[r(243)][r(264)](l);let n=0,s=0;e.forEach(e=>{const i=r,o=this[i(244)](t,e);l[i(264)](o);const a=o.getBoundingClientRect();a[i(273)]>n&&(n=a.width),a.height>s&&(s=a[i(257)]),l[i(279)](o)}),u&&n>0&&(a[r(267)][r(273)]=n+"px"),p&&s>0&&o&&(a[r(267)][r(257)]=s+"px"),document.body.removeChild(l)}const h=[];e[r(305)]((e,n)=>{const a=r,c=document[a(246)]("div");c[a(288)]=a(300);const l=a(o?284:0===n?314:284);c[a(267)][a(255)]="\n position: "+l+a(295)+(l===a(284)?"0":a(312))+a(315)+(l===a(284)?"0":a(312))+";\n width: 100%;\n "+a(o?311:280)+a(268)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":a(274))+a(306)+(0===n?"2":"1")+a(245);const u=this.createSimpleAdElement(t,e);et.addClickEventForSlider(u,e,t,s,i,"Text"),c[a(264)](u),d[a(264)](c),h[a(310)](c)});let f=0;const g=e.length,m=1e3*(n?.autoSlideInterval||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c.style[a(249)]===a(314)&&(c[a(267)][a(249)]=a(284),c[a(267)][a(278)]="0",c[a(267)][a(266)]="0"),d[a(267)][a(249)]=a(314),d[a(267)][a(278)]=a(312),d[a(267)].left=a(312)),c[a(267)].opacity="0",c[a(267)][a(258)]=a(256),c[a(267)][a(239)]="1",d[a(267)][a(308)]="1",d[a(267)][a(258)]=a(285),d[a(267)][a(239)]="2",h.forEach((t,e)=>{const s=a;e!==n&&e!==f&&(t.style[s(308)]="0",t[s(267)][s(258)]="translateY(20px)",t[s(267)].zIndex="1",!o&&t[s(267)][s(249)]===s(314)&&(t[s(267)][s(249)]=s(284),t[s(267)].top="0",t[s(267)][s(266)]="0"))}),f=n,J[a(297)](e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a[r(275)]("mouseenter",()=>{clearInterval(v)}),a[r(275)]("mouseleave",()=>{v=setInterval(()=>{I(f+1)},m)}),St[r(260)](a,I,()=>f,g),a[r(264)](d),a}static[kt(260)](t,e,n,s){const i=kt;let r=0,o=0,a=!1;t[i(275)]("touchstart",t=>{const e=i;r=t[e(304)][0][e(291)],o=t[e(304)][0][e(272)],a=!0}),t[i(275)](i(270),t=>{a&&t[i(263)]()}),t[i(275)](i(301),t=>{const s=i;if(!a)return;a=!1;const c=t.changedTouches[0].clientX,d=t[s(307)][0][s(272)],l=r-c,u=o-d;if(Math[s(250)](l)>Math.abs(u)&&Math.abs(l)>50){const t=n();e(l>0?t+1:t-1)}})}}const At=Ct;function Tt(){const t=["cssText","renderMultipleAds","128802vvHxpq","parentElement","height","config","createTextTransitionContainer","189aAdSGK","✨ Single text ad rendered: ","30584zcqFpq","2887250jRVLev","length","innerHTML","60px","hidden"," with ","2952310MWvbbF","getDefaultHeight","createElement","log","_id","480652rmGKUJ","3ZHHpoY","display","maxLines","aspectRatio","createEventTrackingCallback","optimizedHeight","100%","adstage-text-content","div","calculateAdSize","webkitBoxOrient","TEXT","containerId","number","addClickEventForRenderer","setTextAdContent","171YqsegA","slideInterval","41765UVRYJq","debug","Text","width","34OfKHUH","23643422lmSymy","style","-webkit-box","className","appendChild"];return(Tt=function(){return t})()}function Ct(t,e){const n=Tt();return(Ct=function(t,e){return n[t-=156]})(t,e)}!function(){const t=Ct,e=Tt();for(;;)try{if(384769===parseInt(t(156))/1*(-parseInt(t(160))/2)+parseInt(t(188))/3*(-parseInt(t(187))/4)+-parseInt(t(176))/5+parseInt(t(168))/6*(-parseInt(t(173))/7)+parseInt(t(175))/8*(-parseInt(t(204))/9)+parseInt(t(182))/10+parseInt(t(161))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Rt extends ht{constructor(e=!1,n){super(t[Ct(199)],e,n)}[At(183)](){return At(179)}async renderAdElement(t,e){const n=At,s=document.getElementById(t.containerId);if(!s)return;const i=docum