UNPKG

@adstage/web-sdk

Version:

AdStage Web SDK - Production-ready marketing platform SDK with React Provider support for seamless integration

1 lines 103 kB
import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as s,useContext as i}from"react";var r,o,a,c,d,l,u,p,h,f,g,m;function I(){var t=["WEB","14YPspwD","4030165GSrREL","INTERSTITIAL","22294dnYSKv","345878sRhFNP","1342LeeeIL","NATIVE","VIDEO","42828gvXMVS","CLICK","DESKTOP","3263qpdPhT","523044vbeFUR","144kdlPRg","TABLET","POPUP","TEXT","4CnoizF","49430MtsflG","VIEWABLE","BANNER","2507478RBQUsc","MOBILE","93Hfjfwc"];return(I=function(){return t})()}function v(t,e){var n=I();return(v=function(t,e){return n[t-=444]})(t,e)}function y(){const t=["waitForElement","15ggUGkZ",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"safeAddEventListener","scrollTop","safeQuerySelector","appendChild","safeRemoveClass","undefined","safeQuerySelectorAll","getComputedStyle","innerWidth","53261615aIbEsM","54838ZlvQBU","isDOMReady","3304773oxHLAD","waitForElements","removeEventListener","log","✅ 컨테이너 즉시 발견: ","canUseDOM","loading","pageXOffset","createElement","from","innerHTML","30IyxDzj","isBrowser","⏳ 컨테이너 대기 시작: "," (최대 ",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"href","style",'❌ 컨테이너를 찾을 수 없습니다: "',"setProperty","map","safeGetElementById","safeApplyStyles","⏳ 컨테이너 대기 중: ","7326822MYVFyq","getScrollInfo","textContent","DOM을 사용할 수 없는 환경입니다.","open","ms (","ceil","DOMContentLoaded","ms 경과)","querySelectorAll","classList","81409TCnJkI","addEventListener","safeSetInnerHTML","번 시도)","116492YrQTXd","error","getElementById","1016670tnIXCj","816dFXgZs","getPageInfo","getWindowProperty","waitForDOM","safeSetTextContent","min","location","ms)","108oafHbM","safeAppendChild","safeGetComputedStyle","getViewportInfo","getDocumentProperty","forEach"];return(y=function(){return t})()}function b(t,e){const n=y();return(b=function(t,e){return n[t-=464]})(t,e)}!function(){for(var t=v,e=I();;)try{if(617633===-parseInt(t(458))/1+parseInt(t(457))/2*(-parseInt(t(452))/3)+parseInt(t(446))/4*(parseInt(t(455))/5)+parseInt(t(450))/6*(-parseInt(t(454))/7)+parseInt(t(467))/8*(parseInt(t(466))/9)+-parseInt(t(447))/10*(parseInt(t(459))/11)+parseInt(t(462))/12*(parseInt(t(465))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(o=r||(r={}))[(a=v)(449)]="BANNER",o[a(444)]="POPUP",o[a(456)]=a(456),o[a(460)]=a(460),o[a(461)]=a(461),o[a(445)]=a(445),(d=c||(c={}))[(l=v)(453)]=l(453),d[l(451)]=l(451),(p=u||(u={}))[(h=v)(448)]=h(448),p[h(463)]=h(463),(g=f||(f={}))[(m=v)(464)]=m(464),g[m(451)]="MOBILE",g[m(468)]=m(468);const w=b;!function(){const t=b,e=y();for(;;)try{if(633601===-parseInt(t(492))/1*(-parseInt(t(468))/2)+parseInt(t(529))/3+parseInt(t(496))/4*(-parseInt(t(515))/5)+parseInt(t(481))/6+-parseInt(t(527))/7*(-parseInt(t(500))/8)+-parseInt(t(508))/9*(-parseInt(t(499))/10)+-parseInt(t(526))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{static isBrowser(){return"undefined"!=typeof window&&typeof document!==b(522)}static isSSR(){return!this[b(469)]()}static[w(534)](){return this[w(469)]()&&void 0!==document.readyState}static[w(478)](t){const e=w;return this[e(534)]()?document[e(498)](t):null}static[w(519)](t){return this[w(534)]()?document.querySelector(t):null}static[w(523)](t){const e=w;return this[e(534)]()?Array[e(466)](document[e(490)](t)):[]}static safeCreateElement(t){const e=w;return this[e(534)]()?document[e(465)](t):null}static[w(517)](t,e,n,s){const i=w;this[i(534)]()&&t&&t[i(493)](e,n,s)}static safeRemoveEventListener(t,e,n,s){const i=w;this[i(534)]()&&t&&t[i(531)](e,n,s)}static[w(502)](t,e){return this.isBrowser()?window[t]??e:e}static[w(512)](t,e){return this[w(534)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const s=w;return this.isBrowser()?window[s(485)](t,e,n):null}static[w(510)](t){const e=w;return this[e(469)]()&&t?window[e(524)](t):null}static[w(528)](){const t=w;return!!this.canUseDOM()&&document.readyState!==t(535)}static[w(503)](){return new Promise(t=>{const e=b;this[e(534)]()?this[e(528)]()?t():this[e(517)](document,e(488),()=>t()):t()})}static[w(479)](t,e){const n=w;this.canUseDOM()&&t&&Object.entries(e)[n(513)](([e,s])=>{const i=n;t[i(474)][i(476)](e,s)})}static safeAddClass(t,e){this[w(534)]()&&t&&t.classList.add(e)}static[w(521)](t,e){const n=w;this[n(534)]()&&t&&t[n(491)].remove(e)}static[w(504)](t,e){const n=w;this[n(534)]()&&t&&(t[n(483)]=e)}static[w(494)](t,e){const n=w;this.canUseDOM()&&t&&(t[n(467)]=e)}static[w(509)](t,e){const n=w;this[n(534)]()&&t&&e&&t[n(520)](e)}static safeRemoveChild(t,e){this[w(534)]()&&t&&e&&t.removeChild(e)}static[w(501)](){const t=w;return{url:this[t(502)](t(506),{href:""})[t(473)],title:this.getDocumentProperty("title",""),referrer:this[t(512)]("referrer","")}}static[w(511)](){const t=w;return{width:this[t(502)](t(525),0),height:this[t(502)]("innerHeight",0),pixelRatio:this[t(502)]("devicePixelRatio",1)}}static[w(482)](){const t=w;return{scrollTop:this[t(534)]()?window.pageYOffset||document.documentElement[t(518)]:0,scrollLeft:this[t(502)](t(464),0)}}static async[w(514)](t,e={}){const n=w,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(534)]())throw new Error(n(484));const o=document[n(498)](t);return o?(r&&console[n(532)](n(533)+t),o):(r&&console[n(532)](n(470)+t+n(471)+s+n(507)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(487)](s/i),l=()=>{const n=a;c++;const u=document[n(498)](t);if(u)return r&&console[n(532)]("✅ 컨테이너 발견: "+t+" ("+c+"번째 시도, "+c*i+n(489)),void e(u);if(c>=d){const e=n(475)+t+n(516)+t+n(472)+s+n(486)+c+n(495);return r&&console[n(497)](e),void o(new Error(e))}r&&c%10==0&&console.log(n(480)+t+" ("+c+"/"+d+")");const p=Math[n(505)](i*Math.pow(1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async[w(530)](t,e={}){const n=t[w(477)](t=>this.waitForElement(t,e));return Promise.all(n)}}const x=E;function E(t,e){const n=S();return(E=function(t,e){return n[t-=266]})(t,e)}function S(){const t=["userAgent"," AdStageSDK/","387niOYHb","912JpQODB","581397WNRyeg","2SPxDFa","621626ijIIrB","6440zoDLYf","33fyVedq","4838450VEePfu",'"3.0.9"',"1967980mZcWKk","35833ohqldD","3436320uwykus"];return(S=function(){return t})()}!function(){const t=E,e=S();for(;;)try{if(557923===-parseInt(t(268))/1*(-parseInt(t(267))/2)+parseInt(t(266))/3+parseInt(t(273))/4+-parseInt(t(271))/5+parseInt(t(279))/6*(-parseInt(t(274))/7)+parseInt(t(269))/8*(-parseInt(t(278))/9)+parseInt(t(275))/10*(parseInt(t(270))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const A=x(272);function T(){return A}function C(t,e){const n=R();return(C=function(t,e){return n[t-=273]})(t,e)}const D=C;function R(){const t=["1347929ZvrGly","now","315dRyNfc","colorDepth","device_","2685726hlpRfX","test","scrollTop","getPlatform","setItem","platform","web","width","substr","generateDeviceId","getItem","timeZone","82184YlOFHy","toString","getScrollInfo",",y:","session_","ssr_session_","2394512WXcyBh","isMobile"," .adstage-slider-wrapper","54duZFwk",'[data-adstage-slot-id="',"1.0.0","25DfgLQd","generateSessionId","toLowerCase","UTC","safeQuerySelector","safeGetElementById","39873mqbOez","android","adstage_session_id","resolvedOptions","userAgent","top","7DIpOik","isBrowser","ios","getViewportInfo","SSR","ssr_device_","411916DfPUFb","left","desktop","getBoundingClientRect","random","getSlotPosition","unknown","round","height","language","94480ZZuHIa"];return(R=function(){return t})()}!function(){const t=C,e=R();for(;;)try{if(271977===parseInt(t(328))/1+-parseInt(t(307))/2*(-parseInt(t(316))/3)+-parseInt(t(298))/4*(-parseInt(t(310))/5)+-parseInt(t(286))/6*(parseInt(t(322))/7)+parseInt(t(304))/8+-parseInt(t(283))/9*(parseInt(t(280))/10)+-parseInt(t(281))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{static[D(295)](){const t=D;if(!k.isBrowser())return t(327)+Date.now();const e=localStorage[t(296)]("adstage_device_id");if(e)return e;const n=t(285)+Math[t(274)]()[t(299)](36)[t(294)](2,9)+"_"+Date[t(282)]();return localStorage.setItem("adstage_device_id",n),n}static[D(311)](){const t=D;if(!k.isBrowser())return t(303)+Date.now();const e=sessionStorage[t(296)](t(318));if(e)return e;const n=t(302)+Math.random()[t(299)](36).substr(2,9)+"_"+Date[t(282)]();return sessionStorage[t(290)]("adstage_session_id",n),n}static[D(305)](){const t=D;return!!k[t(323)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(287)](navigator[t(320)])}static[D(289)](){const t=D;if(!k[t(323)]())return t(292);const e=navigator.userAgent[t(312)]();return/iphone|ipad|ipod/[t(287)](e)?t(324):/android/.test(e)?t(317):B.isMobile()?t(292):t(330)}static collectDeviceInfo(){const t=D,e=k[t(325)]();return{deviceId:B[t(295)](),sessionId:B[t(311)](),osVersion:k[t(323)]()?navigator[t(291)]:"SSR",deviceModel:k[t(323)]()?navigator[t(291)]:t(326),appVersion:t(309),sdkVersion:T(),language:k[t(323)]()&&navigator[t(279)]||"ko",country:"KR",ipAddress:"",userAgent:k[t(323)]()?navigator[t(320)]:t(326),timezone:k.isBrowser()?Intl.DateTimeFormat()[t(319)]()[t(297)]:t(313),viewportWidth:e[t(293)],viewportHeight:e[t(278)],screenWidth:k.isBrowser()?screen.width:0,screenHeight:k[t(323)]()?screen.height:0,colorDepth:k[t(323)]()?screen[t(284)]:24,pixelRatio:e.pixelRatio,connectionType:k[t(323)]()&&navigator.connection?.effectiveType||t(276),platform:B.getPlatform()}}static[D(275)](t){const e=D;let n=k[e(315)](t);if(!n){const s=k[e(314)]("#"+t+e(306));s&&(n=s)}if(!n&&(n=k.safeQuerySelector(e(308)+t+'"]')),!n)return e(276);const s=n[e(273)](),i=k[e(300)]();return"x:"+Math[e(277)](s[e(329)])+e(301)+Math[e(277)](s[e(321)]+i[e(288)])}}const P=z;function z(t,e){const n=L();return(z=function(t,e){return n[t-=109]})(t,e)}function L(){const t=["User-Agent","24BWwiTC","290979ncPvyu","734336AqYMbY","undefined","395912WKvrRb","2003596uGzkQO","203974PgsnMF","contentType","33VveveA","userAgent","4054804IPDLtB","6378305lsHygA","create"];return(L=function(){return t})()}!function(){const t=z,e=L();for(;;)try{if(937531===parseInt(t(120))/1+-parseInt(t(110))/2*(parseInt(t(112))/3)+-parseInt(t(114))/4+parseInt(t(115))/5+parseInt(t(118))/6*(parseInt(t(109))/7)+-parseInt(t(122))/8+-parseInt(t(119))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{static[P(116)](t,e){const n=P;if(!t)throw new Error("API key is required");const s={"x-api-key":t,"Content-Type":e?.[n(111)]||"application/json"};return typeof navigator!==n(121)&&(s[n(117)]=e?.[n(113)]||navigator[n(113)]),s}static createForEvents(t,e){const n=P,s=U[n(116)](t);return e?.[n(113)]&&(s[n(117)]=e.userAgent),s}}const M=O;function O(t,e){const n=V();return(O=function(t,e){return n[t-=241]})(t,e)}function V(){const t=["🚀 AdvertisementEventTracker: Processing ","❌ Failed to track advertisement event:","API request failed: ","error"," - ","string","1sVORon","width","...","NOT_SET"," event for ad ","log","7595343VeMkcn","trackAdvertisementEvent","📡 API Response Status: ","110CRYSBJ","number","getPageInfo","⚠️ DOM element not found for slotId: ","platform","slots","now","621OqojhM","getSlotPosition","debug","warn","1051084OmoTfv","parseNumericValue","url","🚀 Sending advertisement event: ","baseUrl","🌐 Full API call details:","apiKey",'[data-adstage-slot-id="'," for ad ","deviceId","603972QCdQPy","3260694BeaClI","height","sessionId"," (containerId: ","substring","containerId","/advertisements/events/","status","5ezxHCz","POST","statusText","1036058JepOmR","getElementById","querySelector","createForEvents","868483iRTpqh","length","95792kjTadU","). Skipping event tracking.","stringify","collectDeviceInfo","✅ Successfully tracked advertisement event: "];return(V=function(){return t})()}!function(){const t=O,e=V();for(;;)try{if(604097===-parseInt(t(270))/1*(parseInt(t(253))/2)+-parseInt(t(241))/3+parseInt(t(290))/4*(-parseInt(t(250))/5)+parseInt(t(242))/6+parseInt(t(276))/7+parseInt(t(259))/8*(parseInt(t(286))/9)+parseInt(t(279))/10*(-parseInt(t(257))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class N{constructor(t,e,n,s){const i=O;this[i(294)]=t,this[i(296)]=e,this.debug=n,this[i(284)]=s}async[M(277)](t,e,n){const s=M;try{this.debug&&console[s(275)](s(264)+n+s(274)+t+" in slot "+e);const i=this.slots.get(e);if(!i)return void(this.debug&&console[s(289)]("⚠️ Slot not found for slotId: "+e+". Skipping event tracking to prevent incorrect adType."));if(!(document[s(254)](i[s(247)])||document[s(255)](s(297)+e+'"]')))return void(this[s(288)]&&console[s(289)](s(282)+e+s(245)+i[s(247)]+s(260)));const r=B[s(262)](),o={adType:i.adType,platform:r[s(283)],deviceId:r[s(299)],deviceInfo:r,pageUrl:k.getPageInfo()[s(292)],pageTitle:k[s(281)]().title,referrer:k.getPageInfo().referrer,slotId:e,slotPosition:B[s(287)](i[s(247)]),slotWidth:N[s(291)](i[s(271)]),slotHeight:N[s(291)](i[s(243)]),sessionId:r[s(244)],pageLoadTime:performance[s(285)](),metadata:{eventType:n,sdkVersion:T(),timestamp:Date[s(285)]()},...n===u.VIEWABLE&&{isViewable:!0,iabCompliant:!0}},a=this[s(294)]+s(248)+t+"/"+n,c=U[s(256)](this.apiKey,o);this[s(288)]&&(console[s(275)](s(293)+n+s(298)+t,{url:a,headers:c,eventData:o}),console[s(275)](s(295),{method:"POST",url:a,hasApiKey:!!this[s(296)],bodySize:JSON[s(261)](o)[s(258)]}));const d=await fetch(a,{method:s(251),headers:c,body:JSON[s(261)](o)});if(this.debug&&console.log(s(278)+d[s(249)]+" "+d[s(252)],{url:a,ok:d.ok}),!d.ok){const t=await d.text();throw new Error(s(266)+d[s(249)]+" "+d.statusText+s(268)+t)}this[s(288)]&&console[s(275)](s(263)+n+s(298)+t)}catch(i){console[s(267)](s(265),i),console[s(267)]("🔍 Debug info:",{baseUrl:this.baseUrl,apiKey:this[s(296)]?this[s(296)][s(246)](0,8)+s(272):s(273),url:this.baseUrl+s(248)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[M(291)](t){const e=M;if(typeof t===e(280))return t;if(typeof t===e(269)){const e=parseFloat(t.replace(/px$/,""));return isNaN(e)?0:e}return 0}}var F=_;function _(t,e){var n=j();return(_=function(t,e){return n[t-=299]})(t,e)}!function(){for(var t=_,e=j();;)try{if(906642===parseInt(t(324))/1*(parseInt(t(305))/2)+-parseInt(t(308))/3*(-parseInt(t(322))/4)+-parseInt(t(303))/5+parseInt(t(315))/6*(-parseInt(t(318))/7)+-parseInt(t(307))/8*(parseInt(t(317))/9)+parseInt(t(311))/10*(-parseInt(t(326))/11)+-parseInt(t(312))/12*(-parseInt(t(302))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class H{constructor(t,e){var n=_;this.observer=null,this[n(301)]=!1,this[n(304)]=t,this[n(321)]=e,this.initIntersectionObserver()}[F(319)](){var t=F;"IntersectionObserver"in window?(this[t(300)]=new IntersectionObserver(e=>this[t(310)](e),{threshold:.5,rootMargin:t(316)}),this.observer.observe(this[t(304)])):console[t(299)]("IntersectionObserver not supported, viewability tracking disabled")}[F(310)](t){var e=F;t[e(325)](t=>{var n=e;t.intersectionRatio>=.5&&this[n(314)]()&&!this[n(301)]&&(this[n(301)]=!0,this[n(321)]&&this[n(321)]())})}[F(314)](){var t=F;return!document[t(313)]&&document[t(320)]===t(306)}[F(309)](){var t=F;this[t(300)]&&(this[t(300)][t(323)](),this[t(300)]=null)}}function j(){var t=["8317035DuepVs","element","1998tVdzlq","visible","16DqeKXR","715479tBbTow","destroy","handleIntersection","1130pllgnS","53001552KolDxa","hidden","isDocumentVisible","36gQdTwy","0px","7613442BBlqIU","769146KbKdvP","initIntersectionObserver","visibilityState","onViewableCallback","8nuDmmh","disconnect","78HkGzBr","forEach","4917blhvEe","warn","observer","isViewableTriggered","13cmrEva"];return(j=function(){return t})()}const K=q;!function(){const t=q,e=Q();for(;;)try{if(997659===-parseInt(t(399))/1*(parseInt(t(393))/2)+parseInt(t(384))/3*(-parseInt(t(389))/4)+-parseInt(t(385))/5*(parseInt(t(407))/6)+parseInt(t(392))/7+parseInt(t(391))/8+-parseInt(t(408))/9*(parseInt(t(397))/10)+parseInt(t(395))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const W={production:K(402),beta:"https://beta-api.adstage.app"};function q(t,e){const n=Q();return(q=function(t,e){return n[t-=384]})(t,e)}function Q(){const t=["1970xZuOBs","list","2zLsfOj","advertisements","production","https://api.adstage.app","custom","setBaseUrl","events","/events/track","6SXYBRx","35307RgKFaO","/advertisements/events","3RvqYPr","150665JjVIEG","/advertisements","detail","/advertisements/list","6412156FDdhQU","track","14015880uhzDZo","2349914TsHbhH","1028392ObweBX","baseUrl","25788037pRpwiD","getBaseUrl"];return(Q=function(){return t})()}K(401);const Y={advertisements:{list:K(388),detail:K(386),events:K(409)},events:{track:K(406)}};class X{constructor(t){const e=K;this.advertisements={list:()=>""+this[e(394)]+Y[e(400)][e(398)],detail:t=>""+this[e(394)]+Y[e(400)][e(387)]+"/"+t,events:(t,n)=>""+this.baseUrl+Y.advertisements[e(405)]+"/"+t+"/"+n},this[e(405)]={track:()=>""+this.baseUrl+Y[e(405)][e(390)]},this.baseUrl=t||W[e(401)]}[K(404)](t){this.baseUrl=t}[K(396)](){return this.baseUrl}[K(403)](t){return""+this.baseUrl+(t.startsWith("/")?t:"/"+t)}}const Z=new X;function J(){var t=["153618gTGjye","6459ekGsDd",") in slot: ","1835275RXIaJP","🎯 Triggering initial VIEWABLE event: ad ","trackSlideViewable","6201240LznTCV"," (index: ","204DRpQQv"," (index: 0) in slot: ","1061851DBOxuc","3267820vpgkLE","1588444vbnHym","log","VIEWABLE","_id","trackInitialSlideViewable","18NHTtuM","6RddBog"];return(J=function(){return t})()}function G(t,e){var n=J();return(G=function(t,e){return n[t-=411]})(t,e)}var $=G;!function(){for(var t=G,e=J();;)try{if(417304===parseInt(t(427))/1+parseInt(t(420))/2+parseInt(t(428))/3*(parseInt(t(416))/4)+-parseInt(t(411))/5+parseInt(t(426))/6*(-parseInt(t(418))/7)+-parseInt(t(414))/8+-parseInt(t(425))/9*(-parseInt(t(419))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[$(413)](t,e,n,s,i=!1){var r=$;i&&console[r(421)]("🎯 Triggering VIEWABLE event for slide change: ad "+t[r(423)]+r(415)+n+r(429)+e.id),s(t[r(423)],e.id,u[r(422)])}static[$(424)](t,e,n,s=!1){var i=$;s&&console.log(i(412)+t[i(423)]+i(417)+e.id),n(t[i(423)],e.id,u.VIEWABLE)}}function et(t,e){const n=st();return(et=function(t,e){return n[t-=269]})(t,e)}const nt=et;function st(){const t=["addClickEvent","CLICK","65558NuiQPl","_blank","toLowerCase","cursor","🔗 ","addClickEventsBatch","linkUrl","6uKHZdO","adType","stopPropagation","36191760iZnpup","1251Ryeprm","log","_id"," ad clicked: ","open","click","addClickEventForRenderer","3924145bblFxx","addClickEventForSlider","pointer","10042330kLkJNJ","preventDefault","6bqDCZN","11829URoMEm","addEventListener"," -> ","style","6152405hIUgms","82056ZJAQkE","268UPSNiy"];return(st=function(){return t})()}!function(){const t=et,e=st();for(;;)try{if(871047===-parseInt(t(291))/1*(parseInt(t(298))/2)+-parseInt(t(282))/3*(-parseInt(t(288))/4)+parseInt(t(276))/5+-parseInt(t(281))/6*(-parseInt(t(286))/7)+parseInt(t(287))/8*(parseInt(t(269))/9)+parseInt(t(279))/10+-parseInt(t(301))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static[nt(289)](t,e,n,s,i=!1,r){const o=nt;e[o(297)]&&(t[o(285)][o(294)]=o(278),t.addEventListener(o(274),t=>{const a=o;if(t.preventDefault(),t[a(300)](),s&&s(e[a(271)],n.id,u[a(290)]),window[a(273)](e[a(297)],a(292)),i){const t=r||String(n[a(299)])[a(293)]();console[a(270)]("🔗 "+t+" ad clicked: "+e[a(271)]+a(284)+e[a(297)])}}))}static[nt(275)](t,e,n,s,i=!1,r){const o=nt;e[o(297)]&&(t.style.cursor=o(278),t[o(283)]("click",t=>{const a=o;t[a(280)](),t.stopPropagation();if(s()(e[a(271)],n.id,u[a(290)]),window[a(273)](e.linkUrl,"_blank"),i){const t=r||String(n[a(299)])[a(293)]();console.log(a(295)+t+a(272)+e._id+a(284)+e[a(297)])}}))}static[nt(277)](t,e,n,s,i=!1,r){this[nt(289)](t,e,n,s,i,r)}static isClickable(t){return Boolean(t[nt(297)])}static[nt(296)](t,e,n,s,i=!1,r){t.forEach((t,o)=>{const a=et,c=e[o];c&&this[a(289)](t,c,n,s,i,r)})}}const rt=at;function ot(){const t=["100%","Banner Ad","adstage-dots","fontSize","0.7","adstage-dot","entries","15OVIiZP","addTouchSupport","touchend","1562589sVkocU","1054415ILKfwo","setProperty","includes","white","7843190aAfUfx","touchstart","border","14px","mouseleave","200px","whiteSpace","contains","\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 ","imageUrl","toLowerCase","addEventListener","9778668DvfiSd","img","transition","display","1px dashed #ccc","Video Ad","block","touches","autoSlideInterval","relative","active","23406823txyyZm","textContent","#cccccc","276154dUxLhF","hidden","style","removeChild","8px","classList","0.9","data-adstage-ad-id","100px","color","div","click","#000","string","normal","cssText","8TSSpbQ","flex","#f0f0f0","forEach","246269bvEdTT","setAttribute","mouseenter","inline-block","appendChild","changedTouches","padding","backgroundColor","getBoundingClientRect","abs","none","createSimpleAdElement","remove","clientX","borderColor","overflow","cover"," Ad","addClickEventForSlider","createElement","width","\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 ","adstage-slide-container","50px","adType","children","videoUrl","trackSlideViewable","height","data-adstage-slot-id","center","video","Text Ad","12WFafnv",".adstage-dot","className","touchmove","TEXT","#666666","length","_id","background","auto","BANNER","transform","adstage-slide","18WhKgrl","src","1px solid #666"];return(ot=function(){return t})()}function at(t,e){const n=ot();return(at=function(t,e){return n[t-=456]})(t,e)}!function(){const t=at,e=ot();for(;;)try{if(889041===parseInt(t(562))/1+-parseInt(t(542))/2*(parseInt(t(508))/3)+-parseInt(t(485))/4*(parseInt(t(512))/5)+parseInt(t(528))/6+-parseInt(t(511))/7*(parseInt(t(558))/8)+parseInt(t(498))/9*(-parseInt(t(516))/10)+parseInt(t(539))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[rt(463)](t,e){const n=rt,s=document.createElement(n(552));switch(s.className="adstage-ad adstage-"+String(t[n(476)])[n(526)](),s.setAttribute(n(549),e[n(492)]),s[n(563)](n(481),t.id),s[n(544)][n(531)]=n(534),s[n(544)].width=n(501),s[n(544)][n(480)]=n(494),t.adType){case r[n(495)]:if(e[n(525)]){const t=document[n(471)](n(529));t[n(499)]=e[n(525)],t[n(544)][n(472)]=n(501),t[n(544)].height="auto",t.style.objectFit=n(468),s[n(456)](t)}else s.style.height="100px",s.style[n(459)]=n(560),s[n(544)][n(518)]=n(532),s[n(540)]=n(502);break;case r.VIDEO:if(e[n(478)]){const t=document[n(471)](n(483));t[n(499)]=e[n(478)],t[n(544)][n(472)]="100%",t.style[n(480)]=n(494),s[n(456)](t)}else s[n(544)].height=n(521),s.style.backgroundColor=n(554),s[n(544)].border=n(500),s[n(540)]=n(533),s[n(544)][n(551)]=n(515);break;case r[n(489)]:if(e[n(540)]){const t=document[n(471)]("div");t[n(540)]=e[n(540)]||"",t.style.padding=n(546),t.style[n(504)]=n(519),s[n(456)](t)}else s[n(544)].height=n(475),s.style[n(458)]=n(546),s.textContent=n(484);break;default:s[n(544)][n(480)]=n(550),s.style[n(518)]=n(532),s[n(544)].backgroundColor="#f9f9f9",s[n(540)]=t[n(476)]+n(469)}return s}static createSliderContainer(t,e,n,s,i=!1){const o=rt,a=document[o(471)]("div");a[o(487)]="adstage-slider-wrapper";const c={position:o(537),overflow:o(543)};if(t[o(472)]&&0!==t[o(472)]){let e;e=typeof t[o(472)]===o(555)&&(t[o(472)][o(514)]("px")||t[o(472)][o(514)]("%"))?t[o(472)]:t[o(472)]+"px",c[o(472)]=e,c.display=o(565)}else c.display=o(565);if(t.height&&0!==t[o(480)]){const e="string"==typeof t.height?t.height:t[o(480)]+"px";c[o(480)]=e}Object[o(507)](c)[o(561)](([t,e])=>{a[o(544)].setProperty(t,e)});const d=!t[o(472)]||0===t[o(472)],l=!t[o(480)]||0===t[o(480)];if(d||l){const n=document.createElement(o(552));if(n[o(544)].cssText="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t.width){let e;e=typeof t[o(472)]===o(555)&&(t.width[o(514)]("px")||t[o(472)][o(514)]("%"))?t.width:t[o(472)]+"px",n[o(544)][o(472)]=e,n[o(544)][o(522)]=o(556)}document.body[o(456)](n);let s=0,i=0;e[o(561)](e=>{const r=o,a=this[r(463)](t,e);n[r(456)](a);const c=a[r(460)]();c[r(472)]>s&&(s=c[r(472)]),c.height>i&&(i=c[r(480)]),n[r(545)](a)}),d&&s>0&&(a[o(544)][o(472)]=s+"px",c[o(472)]=s+"px"),l&&i>0&&(a[o(544)].height=i+"px",c[o(480)]=i+"px"),document.body.removeChild(n)}const u=[...e,e[0]],p=document[o(471)](o(552));p[o(487)]=o(474);const h={display:o(559),transition:"transform 0.4s ease-out",width:100*u.length+"%"};t[o(480)]&&0!==t.height&&(h[o(480)]="100%"),Object[o(507)](h).forEach(([t,e])=>{const n=o;p[n(544)][n(513)](t,e)}),u[o(561)]((e,n)=>{const r=o,a=document.createElement(r(552));a[r(487)]=r(497);const c={width:100/u[r(491)]+"%","flex-shrink":"0",display:r(559),"align-items":r(482),"justify-content":r(482)};t.height&&0!==t[r(480)]&&(c.height=r(501)),Object[r(507)](c)[r(561)](([t,e])=>{const n=r;a.style[n(513)](t,e)});const d=this[r(463)](t,e);it[r(470)](d,e,t,s,i,String(t.adType)[r(526)]()),a[r(456)](d),p.appendChild(a)});const f=e.every(t=>t[o(476)]===r.TEXT)?null:this.createMinimalDotIndicator(e[o(491)]);let g=0;const m=e[o(491)],I=1e3*(n?.[o(536)]||3),v=(n,r=!1)=>{const a=o;g=n,p[a(544)][a(530)]=r?a(462):"transform 0.4s ease-out",p[a(544)][a(496)]="translateX(-"+100/u[a(491)]*g+"%)";const c=g===m?0:g;if(f){f.querySelectorAll(a(486))[a(561)]((t,e)=>{const n=a,s=t;e===c?(s.classList.add("active"),s[n(544)][n(493)]="#666666",s.style.borderColor=n(490),s.style.opacity="1"):(s[n(547)][n(464)]("active"),s[n(544)][n(493)]="transparent",s.style[n(466)]=n(541),s[n(544)].opacity=n(505))})}tt[a(479)](e[c],t,c,s,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(o(486))[o(561)]((t,e)=>{const n=o;t[n(527)](n(553),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a.addEventListener(o(564),()=>{clearInterval(b)}),a[o(527)](o(520),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this.addTouchSupport(p,v,()=>g,m,y),a.appendChild(p),f&&a.appendChild(f),v(0),(!t[o(472)]||0===t.width)&&setTimeout(()=>{const e=o,n=p.children[0];if(n){const s=n[e(477)][0];if(s){const n=s.getBoundingClientRect();a[e(544)][e(472)]=n[e(472)]+"px",(!t.height||0===t[e(480)])&&(a.style.height=n.height+"px"),a[e(544)][e(467)]=e(543)}}},10),a}static createMinimalDotIndicator(t){const e=rt,n=document[e(471)](e(552));n[e(487)]=e(503),n[e(544)][e(557)]=e(524);for(let s=0;s<t;s++){const t=document[e(471)]("button");t[e(487)]=e(506),t[e(544)][e(557)]=e(473),t[e(527)](e(564),()=>{const n=e;!t[n(547)][n(523)]("active")&&(t[n(544)][n(466)]="#999999",t[n(544)].opacity=n(548))}),t[e(527)](e(520),()=>{const n=e;!t[n(547)].contains(n(538))&&(t.style[n(466)]=n(541),t[n(544)].opacity=n(505))}),n.appendChild(t)}return n}static[rt(509)](t,e,n,s,i){const r=rt;let o=0,a=!1;t[r(527)](r(517),t=>{const e=r;o=t[e(535)][0][e(465)],a=!0}),t[r(527)](r(488),t=>{a&&t.preventDefault()}),t[r(527)](r(510),t=>{const c=r;if(!a)return;a=!1;const d=t[c(457)][0][c(465)],l=o-d;if(Math[c(461)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}const dt=lt;function lt(t,e){const n=pt();return(lt=function(t,e){return n[t-=494]})(t,e)}!function(){const t=lt,e=pt();for(;;)try{if(407904===parseInt(t(499))/1+parseInt(t(506))/2+-parseInt(t(497))/3*(parseInt(t(512))/4)+-parseInt(t(509))/5+parseInt(t(500))/6*(parseInt(t(503))/7)+parseInt(t(508))/8*(-parseInt(t(507))/9)+parseInt(t(510))/10*(parseInt(t(502))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static[dt(498)](t,e,n=!1){const s=dt,i=t+"_"+e;return ut[s(513)].has(i)?(n&&console.log(s(494)+t+s(505)+e),!0):(ut.viewableTracker.add(i),n&&console[s(501)](s(504)+t+s(505)+e),!1)}static clear(){const t=dt;ut[t(513)][t(496)]()}static[dt(495)](t,e){const n=dt,s=t+"_"+e;ut[n(513)][n(511)](s)}}function pt(){const t=["clear","372bhCJFz","isDuplicateViewable","8681xsQMWB","114mWgtjf","log","4279BVLnSh","298277CRxhxl","✅ New viewable recorded for ad "," in slot ","290212DbfSkf","693bDIaxa","25728yrDDZI","1858805cFZNCR","2650hzBqoe","delete","1264DQQXfM","viewableTracker","Duplicate viewable blocked for ad ","clearAdViewable"];return(pt=function(){return t})()}ut[dt(513)]=new Set;const ht=ft;function ft(t,e){const n=gt();return(ft=function(t,e){return n[t-=151]})(t,e)}function gt(){const t=["warn","monospace","isDuplicateViewable","rgba(231, 76, 60, 0.1)","getAttribute","alignItems","setAttribute","parentElement","#f9f9f9",'[class*="container"]',"getComputedStyle","rgba(248, 249, 250, 0.5)","containerId","\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 ","): ","width","backgroundColor","rgba(0, 0, 0, 0.02)","height","data-adstage-type","contains","querySelector","transparent","6px","37626shyGuM","unknown","border","#e74c3c","4px","65354YUobBC"," container: ","calculateAdSize","\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 ","189488JbzPvL","getElementById","createEmptyContainer","advertisement","advertisementEventTracker","subtle","1060780dlWeJu","innerHTML","1px dashed #ccc",'div[style*="height"]',"102gDfSIA","adstage-slot adstage-","div","string"," x ","1330588pKsYaz","✅ New viewable recorded for ad "," for ","error","createEventTrackingCallback","🚫 Duplicate viewable blocked for ad ","📏 Using default height ","true","style","block","<span>Loading ","auto"," slot: ","applyPlaceholderStyle","77764tQhbYD","#666"," event for ad ","center","minimal","📏 Using 100% height (container: ","1px solid rgba(0, 0, 0, 0.08)","none","hasAttribute","data-adstage-slot",".adstage-",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"11KwrhGL","appendChild","adstage-official","createElement","2px dashed #e74c3c","📦 Placeholder created for ","opacity","renderFallback","minHeight","flex",'[class*="banner"]',"className","📊 Advertisement event tracked: ","getContainerHeight","adType","data-adstage-container","100%","invisible","90nSPBfC","createPlaceholder","adstage-slot","placeholderMode","fontFamily","4483032OSrnbr",'[data-adstage-container="true"]',"adstage-slot adstage-empty adstage-","log","⚠️ Created empty ","color","adstage-class","filter","371WsbtSw",'div[style*="min-height"]',"classList","borderRadius","generic","closest","justifyContent","data-adstage-empty"," for ad ","toLowerCase","trackAdvertisementEvent","330wwBzie","display","px)","VIEWABLE"," in slot ","debug"];return(gt=function(){return t})()}!function(){const t=ft,e=gt();for(;;)try{if(679507===parseInt(t(220))/1+parseInt(t(201))/2*(-parseInt(t(215))/3)+parseInt(t(234))/4*(-parseInt(t(166))/5)+parseInt(t(196))/6*(parseInt(t(155))/7)+-parseInt(t(205))/8+-parseInt(t(264))/9*(-parseInt(t(211))/10)+parseInt(t(246))/11*(parseInt(t(269))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class mt{constructor(t,e=!1,n){const s=ft;this.adType=t,this[s(171)]=e,this[s(209)]=n||null}[ht(265)](t,e,n,s){const i=ht,r=document[i(249)](i(217));r.id=e,r[i(257)]=i(216)+String(this[i(260)])[i(164)](),r[i(178)](i(261),"true"),r[i(178)](i(191),String(this[i(260)])),r[i(178)](i(243),e);const{width:o,height:a}=this[i(203)](t,n,s)||{width:i(262),height:this.getDefaultHeight()};r[i(228)][i(187)]=o,r[i(228)][i(190)]=a;const c=s?.[i(267)]||n[i(267)]||i(263);this[i(233)](r,c),t[i(247)](r),this.debug&&console[i(272)](i(251)+this[i(260)]+i(232)+e+" ("+o+i(219)+a+") - Mode: "+c)}applyPlaceholderStyle(t,e){const n=ht;switch(e){case n(263):t[n(228)][n(188)]=n(194),t.style[n(198)]=n(241),t[n(228)][n(252)]="0",t[n(212)]="";break;case n(194):t[n(228)][n(188)]=n(194),t.style.border=n(241),t[n(228)][n(167)]=n(229),t[n(212)]="";break;case n(210):t[n(228)][n(188)]=n(189),t[n(228)].border=n(241),t[n(228)][n(158)]=n(200),t.style[n(167)]=n(255),t[n(228)][n(177)]="center",t[n(228)].justifyContent=n(237),t[n(212)]='<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>';break;case n(238):t[n(228)][n(188)]=n(183),t[n(228)][n(198)]=n(240),t.style[n(158)]=n(195),t[n(228)][n(167)]=n(255),t[n(228)].alignItems="center",t.style.justifyContent=n(237),t.innerHTML=n(245);break;case n(171):t[n(228)][n(198)]=n(250),t[n(228)].display=n(255),t[n(228)][n(177)]=n(237),t.style[n(161)]="center",t[n(228)][n(188)]=n(175),t[n(228)][n(152)]=n(199),t[n(228)][n(268)]=n(173),t.style.fontSize="11px",t.innerHTML=n(230)+this[n(260)]+" ad...</span>";break;default:t[n(228)][n(198)]=n(213),t.style[n(167)]=n(255),t[n(228)].alignItems="center",t.style[n(161)]="center",t[n(228)][n(188)]=n(180),t[n(228)].color=n(235),t.innerHTML=n(230)+this[n(260)]+" ad...</span>"}}calculateAdSize(t,e,n){const s=ht,i=e[s(187)],r=e[s(190)];let o,a;if(o="number"==typeof i?i+"px":"string"==typeof i?i:s(262),"number"==typeof r)a=r+"px";else if(typeof r===s(218)&&r!==s(262)&&r!==s(231))a=r;else{const e=this[s(259)](t);e>0?(a=s(262),(n?.debug||this.debug)&&console[s(272)](s(239)+e+s(168))):(a=this.getDefaultHeight(),(n?.[s(171)]||this[s(171)])&&console.log(s(226)+a+s(222)+this.adType))}return{width:o,height:a}}[ht(259)](t){const e=ht,n=window[e(182)](t),s=parseFloat(n.height);if(!s||0===s){const s=parseFloat(n[e(254)]);if(s>0)return s;if(t[e(228)].height&&t[e(228)][e(190)]!==e(231)){const n=parseFloat(t[e(228)].height);if(n>0)return n}const i=t[e(176)](e(190));if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}[ht(224)](){return async(t,e,n)=>{const s=ft;if(n===u[s(169)]){if(ut[s(174)](t,e,this[s(171)]))return void(this[s(171)]&&console[s(272)](s(225)+t+s(170)+e));this[s(171)]&&console[s(272)](s(221)+t+s(170)+e)}if(this[s(209)])try{this.debug&&console[s(272)]("🔄 Starting advertisement event tracking: "+n+s(163)+t+s(170)+e),await this.advertisementEventTracker[s(165)](t,e,n),this[s(171)]&&console[s(272)](s(258)+n+s(163)+t+" in slot "+e)}catch(e){this[s(171)]&&console[s(223)]("❌ Failed to track "+n+s(236)+t+":",e)}else this[s(171)]&&console[s(172)]("⚠️ AdvertisementEventTracker not available for "+n+" event")}}[ht(253)](t){const e=ht,n=document[e(206)](t.id);if(n){const s=[...[n[e(193)](e(270)),n[e(160)](e(270)),n][e(154)](t=>t&&t[e(242)](e(261))),...[n[e(160)](".adstage-slot"),n[e(160)](e(244)+String(this[e(260)]).toLowerCase()),n[e(160)]('[class*="ad"]'),n[e(160)](e(256)),n[e(160)](e(181)),n.closest(e(214)),n.closest(e(156)),n[e(179)]][e(154)](Boolean)][0];if(s){let n=e(197);n=s[e(242)]("data-adstage-container")?e(248):s[e(157)][e(192)](e(266))?e(153):e(159),s.style.cssText+=e(185),s.innerHTML="",s[e(178)](e(162),"true"),this[e(171)]&&console[e(172)]("⚠️ "+this[e(260)]+" container collapsed ("+n+e(186)+t.id,s)}else this[e(207)](t)}t[e(208)]=void 0,t.isEmpty=!0}[ht(207)](t){const e=ht,n=document[e(206)](t[e(184)]);if(n){n.innerHTML="";const s=document[e(249)](e(217));s.id=t.id,s[e(257)]=e(271)+String(this.adType).toLowerCase(),s[e(178)](e(261),e(227)),s[e(178)](e(162),e(227)),s.setAttribute(e(243),t.id),s[e(228)].cssText=e(204),n[e(247)](s),this[e(171)]&&console[e(172)](e(151)+this[e(260)]+e(202)+t.id)}}log(t,...e){this[ht(171)]&&console.log("["+this.adType+"] "+t,...e)}}function It(){const t=["status","110458rLDpps","error","average","from","length","calculateAdSize","renderOptimizedBannerImage","round","🎠 Banner carousel created for slot: ","naturalHeight","10PyOzcW","get","Banner Advertisement","src","3:2"," ads: "," with ","center","display","112YHriam","log"," (avg: ","338632TPGFfW","16:9","alt","borderRadius","imageUrl","naturalWidth","onload","getElementById","fulfilled","addClickEventForRenderer","Banner","title","860109CTgqgu","count","debug","aspectRatio","onerror","contain","optimizeContainerForBannerAds","height","img","width","1280152ThkqNV","8px","objectFit","Image URL is not provided","<div>","createElement","backgroundColor","optimizedHeight","ratio","getDefaultHeight","toString","appendChild","innerHTML","applyOptimizedImageStyle","allSettled","80754qIevdt","forEach","max","❌ Failed to load optimized banner image:","values","objectPosition","100%","250px","warn","loadImageDimensions","containerId","toFixed","5HtYmQD","style","div","2576583miSmGT","Container not found: ","_id","getBoundingClientRect","📐 Optimal banner container calculated: ","selectOptimalSizeStrategy","createEventTrackingCallback","calculateOptimalContainerSize","Failed to calculate optimal banner size, using defaults:","className","map","filter","config","cover"," (strategy: ","name","set","reduce","abs","calculateOptimalHeight","1:1","renderMultipleAds","678788QrQTYo"];return(It=function(){return t})()}const vt=yt;function yt(t,e){const n=It();return(yt=function(t,e){return n[t-=227]})(t,e)}!function(){const t=yt,e=It();for(;;)try{if(146392===parseInt(t(284))/1+-parseInt(t(306))/2+-parseInt(t(318))/3+-parseInt(t(282))/4*(parseInt(t(257))/5)+-parseInt(t(245))/6*(-parseInt(t(303))/7)+parseInt(t(230))/8+parseInt(t(260))/9*(parseInt(t(294))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class bt extends mt{constructor(t=!1,e){super(r.BANNER,t,e)}[vt(239)](){return vt(252)}async renderAdElement(t,e){const n=vt,s=document[n(313)](t[n(255)]);if(!s)return;const i=document[n(235)](n(259));i[n(269)]="adstage-ad adstage-banner-ad";const r=t.optimizedHeight,o=s.parentElement||s;if(r)i[n(258)][n(229)]="100%",i.style[n(227)]=String(r);else{const e=t.config,s={width:e?.[n(229)],height:e?.height},{width:r,height:a}=this[n(289)](o,s,{debug:this[n(320)]});i[n(258)][n(229)]=r,i[n(258)][n(227)]=a}e[n(310)]?await this.renderOptimizedBannerImage(i,e,t):i[n(242)]=n(234)+(e.title||"Banner Ad")+"</div>",it[n(315)](i,e,t,()=>this[n(266)](),this[n(320)],"Banner"),s[n(242)]="",s[n(241)](i)}async[vt(281)](t,e){const n=vt,s=document[n(313)](t[n(255)]);if(!s)throw new Error(n(261)+t[n(255)]);await this.optimizeContainerForBannerAds(t,e);const i=this[n(266)](),r={autoSlideInterval:(t[n(272)]?.slideInterval||5e3)/1e3,...t[n(272)],optimizedHeight:t[n(237)],aspectRatio:t[n(321)]},o=ct.createSliderContainer(t,e,r,i,this.debug);o&&(s[n(242)]="",s.appendChild(o),this.debug&&console.log(n(292)+t.id+n(300)+e[n(288)]+" ads (optimized: "+(t[n(237)]||"default")+")"))}async[vt(267)](t,e){const n=vt;if(!t.length)return{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9};try{const s=(await Promise[n(244)](t[n(271)](t=>t.imageUrl)[n(270)](t=>this[n(254)](t[n(310)]))))[n(271)](t=>t[n(283)]===n(314))[n(270)](t=>t.value);if(0===s[n(288)])return{width:n(251),height:this.getDefaultHeight(),aspectRatio:16/9};const i=this[n(265)](s),r=this.calculateOptimalHeight(s,e,i);return this[n(320)]&&console[n(304)](n(264)+e+"x"+r+n(274)+i+")"),{width:n(251),height:r+"px",aspectRatio:e/r}}catch(t){return console[n(253)](n(268),t),{width:"100%",height:this[n(239)](),aspectRatio:16/9}}}async[vt(324)](t,e){const n=vt;try{const s=document[n(313)](t[n(255)]),i=document[n(313)](t.id);if(!s||!i)return;const r=s[n(263)]()[n(229)]||300,o=await this[n(267)](e,r);i[n(258)].height=o[n(227)],t[n(237)]=o[n(227)],t[n(321)]=o.aspectRatio,this[n(320)]&&console[n(304)]("🔧 Banner container optimized for "+e[n(288)]+n(299)+o[n(227)])}catch(t){console[n(253)]("Banner container optimization failed, using default size:",t)}}[vt(265)](t){const e=vt,n=t[e(270)](t=>t[e(229)]/t[e(227)]),s=new Map;n[e(246)](t=>{const n=e,i=(Math[n(291)](10*t)/10)[n(240)]();s[n(276)](i,(s.get(i)||0)+1)});const i=Math[e(247)](...s[e(249)]()),r=t.length;if(i/r>=.7)return"dominant";const o=[16/9,4/3,1,1.5];return n.filter(t=>o.some(n=>Math[e(278)](t-n)<.1)).length/r>=.5?"common":"average"}[vt(279)](t,e,n){const s=vt,i=t.map(t=>t[s(229)]/t.height);switch(n){case"dominant":{const t=new Map;i[s(246)](e=>{const n=s,i=Math[n(291)](10*e)/10,r=i[n(240)](),o=t[n(295)](r);o?o[n(319)]++:t[n(276)](r,{ratio:i,count:1})});const n=Array[s(287)](t[s(249)]())[s(277)]((t,e)=>e[s(319)]>t[s(319)]?e:t);return Math[s(291)](e/n.ratio)}case"common":{const t=[{ratio:16/9,name:s(307)},{ratio:4/3,name:"4:3"},{ratio:1,name:s(280)},{ratio:1.5,name:s(298)}],n=i.reduce((t,e)=>t+e,0)/i[s(288)],r=t[s(277)]((t,e)=>Math.abs(e.ratio-n)<Math.abs(t[s(238)]-n)?e:t);return this[s(320)]&&console[s(304)]("📊 Using standard ratio: "+r[s(275)]+s(305)+n[s(256)](2)+")"),Math[s(291)](e/r[s(238)])}case s(286):default:{const t=i.reduce((t,e)=>t+e,0)/i[s(288)];return Math[s(291)](e/t)}}}[vt(254)](t){return new Promise((e,n)=>{const s=yt,i=new Image;i[s(312)]=()=>{const t=s;e({width:i[t(311)],height:i[t(293)]})},i[s(322)]=()=>{n(new Error("Failed to load image: "+t))},i[s(297)]=t})}[vt(243)](t,e,n){const s=vt,i=e/n;Math.abs(i-1)<.1?(t.style[s(232)]=s(273),t.style.objectPosition=s(301)):i>1.3?(t[s(258)][s(232)]=s(323),t.style[s(250)]=s(301),t.style[s(236)]="#f0f0f0"):i<.7?(t[s(258)].objectFit=s(273),t[s(258)][s(250)]=s(301)):(t[s(258)][s(232)]="cover",t.style[s(250)]=s(301)),this.debug&&console.log("🎨 Banner image style applied: objectFit="+t[s(258)][s(232)]+", ratio="+i.toFixed(2))}async[vt(290)](t,e,n){const s=vt,i=document[s(235)](s(228));i[s(258)][s(229)]=s(251),i[s(258)].height=s(251),i[s(258)][s(302)]="block",i[s(258)][s(309)]=s(231),i[s(308)]=e[s(317)]||s(296),t[s(242)]='<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>';try{if(!e[s(310)])throw new Error(s(233));const r=await this[s(254)](e[s(310)]),o=t.getBoundingClientRect(),a=o[s(229)],c=o.height;this[s(320)]&&(console[s(304)]("📸 Banner image dimensions: "+r[s(229)]+"x"+r[s(227)]),console.log("📦 Banner container dimensions: "+a+"x"+c));const d=r[s(229)]/r[s(227)],l=a/c;return this[s(243)](i,d,l),i.src=e.imageUrl,t[s(242)]="",t.appendChild(i),it.addClickEventForRenderer(i,e,n,()=>this[s(266)](),this[s(320)],s(316)),this[s(320)]&&console[s(304)]("✅ Optimized banner image rendered for ad: "+e[s(262)]),i}catch(r){return console[s(285)](s(248),r),e[s(310)]&&(i[s(297)]=e[s(310)],i[s(258)][s(232)]="cover",i.style[s(250)]=s(301),t[s(242)]="",t[s(241)](i),it.addClickEventForRenderer(i,e,n,()=>this[s(266)](),this[s(320)],"Banner")),i}}}function wt(t,e){const n=xt();return(wt=function(t,e){return n[t-=454]})(t,e)}const kt=wt;function xt(){const t=["createTextAdStyles","4109655OAtyKA","24DGmdOB","286914yIvZip","847116zIxVJg","504vqlfIg","80930nbFxeA","title","794074ocwTQs","textContent","7461852FdvCyo","12RVZGdo","4189256csvrwJ","setTextAdContent","14sKNrrq","5cvAVXq"];return(xt=function(){return t})()}!function(){const t=wt,e=xt();for(;;)try{if(665793===parseInt(t(462))/1+-parseInt(t(465))/2*(-parseInt(t(457))/3)+parseInt(t(458))/4*(-parseInt(t(469))/5)+-parseInt(t(464))/6+-parseInt(t(468))/7*(-parseInt(t(466))/8)+parseInt(t(459))/9*(parseInt(t(460))/10)+parseInt(t(455))/11*(-parseInt(t(456))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Et{static[kt(454)](t=!1){return"\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 "}static[kt(467)](t,e){const n=kt,s=e[n(463)]||e[n(461)]||"";t[n(463)]=s}}const St=Tt;function At(){const t=[";\n width: 100%;\n ","20px","translateY(20px)","addTouchSupport","_id","data-adstage-slot-id","5756690VoExAn","5429208WWCBtf","div","createTextTransitionContainer",";\n top: ","9MWTsCM","position","height","\n ",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","clientY","adType","trackSlideViewable","translateY(0)","body","3206343QXofws","createTextAdStyles","touches","90845qlXdfA","cssText",";\n transform: translateY(","getBoundingClientRect","createSimpleAdElement","relative","setAttribute","appendChild","length","left","abs","forEach","preventDefault","\n position: relative;\n width: 100%;\n ","touchend","className","removeChild","184ToUjww","setTextAdContent","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","adstage-fade-slider-wrapper","clientX","opacity","whiteSpace","top","4iTQAND","style","auto","autoSlideInterval","createElement","width","Text","includes","addEventListener","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","push",";\n ","transform","entries","absolute","zIndex","data-adstage-ad-id","54419DzmrqP","string","445304UxvWYf","adstage-fade-slide-container","normal","1423644fxUQVP","\n position: "];return(At=function(){return t})()}function Tt(t,e){const n=At();return(Tt=function(t,e){return n[t-=385]})(t,e)}!function(){const t=Tt,e=At();for(;;)try{if(479197===parseInt(t(423))/1*(parseInt(t(406))/2)+parseInt(t(428))/3+parseInt(t(398))/4*(-parseInt(t(454))/5)+parseInt(t(437))/6+parseInt(t(451))/7+-parseInt(t(425))/8+parseInt(t(441))/9*(-parseInt(t(436))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ct{static[St(385)](t,e){const n=St,s=document[n(410)](n(438));return s[n(396)]="adstage-ad adstage-"+String(t[n(447)]).toLowerCase(),s.setAttribute(n(422),e[n(434)]),s[n(387)](n(435),t.id),s[n(407)][n(455)]=Et[n(452)](!0),Et[n(399)](s,e),s}static[St(439)](t,e,n,s,i=!1){const r=St,o=t[r(443)]&&0!==t[r(443)]&&t.height!==r(408),a=document[r(410)](r(438));a[r(396)]=r(401);const c={position:r(386),overflow:"hidden",display:"block"};if(!o&&(c[r(443)]=r(408),c.minHeight="fit-content"),t[r(411)]&&0!==t.width){let e;e=typeof t[r(411)]===r(424)&&(t[r(411)].includes("px")||t[r(411)].includes("%"))?t.width:t[r(411)]+"px",c.width=e}if(t[r(443)]&&0!==t.height&&t[r(443)]!==r(408)&&o){let e;e=typeof t[r(443)]===r(424)?t[r(443)].includes("px")||t[r(443)][r(413)]("%")?t[r(443)]:t.height+"px":t[r(443)]+"px",c[r(443)]=e}Object[r(419)](c)[r(392)](([t,e])=>{a.style.setProperty(t,e)});const d=document[r(410)](r(438));d.className=r(426),d[r(407)][r(455)]=r(394)+(o?"height: 100%;":"height: auto; min-height: fit-content;")+r(444);let l=null;const u=!t[r(411)]||0===t[r(411)],p=!t[r(443)]||0===t[r(443)]||void 0===t[r(443)]||t[r(443)]===r(408);if(u||p&&o){if(l=document[r(410)]("div"),l[r(407)][r(455)]=r(415),!u&&t.width){let e;e=typeof t[r(411)]===r(424)?t.width[r(413)]("px")||t[r(411)][r(413)]("%")?t.width:t[r(411)]+"px":t.width+"px",l.style[r(411)]=e,l[r(407)][r(404)]=r(427)}document[r(450)][r(388)](l);let n=0,s=0;e[r(392)](e=>{const i=r,o=this[i(385)](t,e);l.appendChild(o);const a=o[i(457)]();a[i(411)]>n&&(n=a[i(411)]),a[i(443)]>s&&(s=a.height),l.removeChild(o)}),u&&n>0&&(a[r(407)][r(411)]=n+"px"),p&&s>0&&o&&(a[r(407)].height=s+"px"),document.body[r(397)](l)}const h=[];e[r(392)]((e,n)=>{const a=r,c=document[a(410)](a(438));c[a(396)]="adstage-fade-slide";const l=o?"absolute":a(0===n?386:420);c[a(407)][a(455)]=a(429)+l+a(440)+(l===a(420)?"0":"auto")+";\n left: "+("absolute"===l?"0":"auto")+a(430)+(o?"height: 100%;":"height: auto;")+a(400)+(0===n?"1":"0")+a(456)+(0===n?"0":a(431))+a(445)+(0===n?"2":"1")+a(417);const u=this[a(385)](t,e);it.addClickEventForSlider(u,e,t,s,i,a(412)),c[a(388)](u),d[a(388)](c),h[a(416)](c)});let f=0;const g=e[r(389)],m=1e3*(n?.[r(409)]||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&("relative"===c[a(407)][a(442)]&&(c.style.position=a(420),c.style[a(405)]="0",c[a(407)][a(390)]="0"),d[a(407)].position=a(386),d[a(407)][a(405)]=a(408),d[a(407)][a(390)]=a(408)),c[a(407)].opacity="0",c[a(407)][a(418)]="translateY(-20px)",c[a(407)][a(421)]="1",d[a(407)][a(403)]="1",d[a(407)][a(418)]=a(449),d[a(407)][a(421)]="2",h[a(392)]((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(407)][s(403)]="0",t[s(407)].transform=s(432),t[s(407)].zIndex="1",!o&&"relative"===t[s(407)].position&&(t.style[s(442)]=s(420),t[s(407)][s(405)]="0",t[s(407)][s(390)]="0"))}),f=n,tt[a(448)](e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a[r(414)]("mouseenter",()=>{clearInterval(v)}),a[r(414)]("mouseleave",()=>{v=setInterval(()=>{I(f+1)},m)}),Ct[r(433)](a,I,()=>f,g),a[r(388)](d),a}static[St(433)](t,e,n,s){const i=St;let r=0,o=0,a=!1;t[i(414)]("touchstart",t=>{const e=i;r=t[e(453)][0][e(402)],o=t[e(453)][0][e(446)],a=!0}),t.addEventListener("touchmove",t=>{a&&t[i(393)]()}),t.addEventListener(i(395),t=>{const s=i;if(!a)return;a=!1;const c=t.changedTouches[0][s(402)],d=t.changedTouches[0].clientY,l=r-c,u=o-d;if(Math[s(391)](l)>Math[s(391)](u)&&Math.abs(l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Dt=Rt;function Rt(t,e){const n=Bt();return(Rt=function(t,e){return n[t-=401]})(t,e)}function Bt(){const t=["addClickEventForRenderer","vertical","getElementById","length","376vUCFnG","appendChild","adstage-text-content","91852AZFIsV","className"," with ","width","div","optimizedHeight","renderAdElement","getDefaultHeight","cssText","2538190DgeOnR","Text","51FKTKVL","_id","-webkit-box","overflow","9117889jTTDUP","parentElement"," ads","createEventTrackingCallback","debug","style","214501mEIKtm","containerId","slideInterval","adstage-ad adstage-text-ad","calculateAdSize","45ITeLJx","TEXT","display","11491wZFKIR","4003235gmaEaE","config","createTextTransitionContainer","log","height","setTextAdContent","106dfqxMZ","createElement","Container not found: ","hidden","4203414ntpGcK","innerHTML"];return(Bt=function(){return t})()}!function(){const t=Rt,e=Bt();for(;;)try{if(881451===-parseInt(t(408))/1*(parseInt(t(415))/2)+-parseInt(t(439))/3*(-parseInt(t(428))/4)+parseInt(t(409))/5+-parseInt(t(419))/6+-parseInt(t(449))/7*(-parseInt(t(425))/8)+parseInt(t(405))/9*(-parseInt(t(437))/10)+parseInt(t(443))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Pt extends mt{constructor(t=!1,e){super(r[Rt(406)],t,e)}[Dt(435)](){return"60px"}async[Dt(434)](t,e){const n=Dt,s=document[n(423)](t.c