@adstage/web-sdk
Version:
AdStage Web SDK - Production-ready marketing platform SDK with React Provider support for seamless integration
1 lines • 104 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(){var t=["TABLET","VIEWABLE","NATIVE","POPUP","VIDEO","1664tcqjrc","1345553GdwLbB","10TlAMpa","DESKTOP","935163nGSucR","165856ywXcyD","INTERSTITIAL","9956892TMhVDI","127099svMMXC","MOBILE","TEXT","44550qKGCEv","WEB","CLICK","BANNER","222IMcnZl","16SaPwNw","45WXcCpU","314hgFTmN"];return(f=function(){return t})()}function g(t,e){var n=f();return(g=function(t,e){return n[t-=478]})(t,e)}function m(){const t=["getElementById",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"2631219PtwdPZ","title","ms 경과)","110EzlngQ","loading","innerHeight","querySelector","scrollTop","번 시도)","undefined","pageXOffset","from","appendChild","getWindowProperty","✅ 컨테이너 발견: ","waitForElements","devicePixelRatio","min","getComputedStyle","safeRemoveClass","safeCreateElement","waitForElement","safeQuerySelector","DOMContentLoaded","forEach","log","isBrowser","safeRemoveEventListener","2408329qhKere"," (최대 ","78JsEJyq","64948VAwmYN","innerWidth","canUseDOM","86178YHZetI","isSSR","removeEventListener","safeGetElementById","ceil","href","safeSetInnerHTML","waitForDOM","11115024CLaPaJ","getDocumentProperty","9140346sgNyNX","documentElement","readyState","all","safeAddClass","classList","safeAppendChild","setProperty","7tlPXcr","8GQvIFT","location","getViewportInfo","pageYOffset","entries","✅ 컨테이너 즉시 발견: ","safeQuerySelectorAll","isDOMReady","⏳ 컨테이너 대기 중: ","innerHTML","textContent","⏳ 컨테이너 대기 시작: ","safeGetComputedStyle","addEventListener",'❌ 컨테이너를 찾을 수 없습니다: "',"50FEyPjE","safeAddEventListener",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"referrer","6690rCyuUK"];return(m=function(){return t})()}!function(){for(var t=g,e=f();;)try{if(369082===-parseInt(t(480))/1*(-parseInt(t(486))/2)+-parseInt(t(490))/3+parseInt(t(478))/4*(parseInt(t(497))/5)+-parseInt(t(501))/6*(parseInt(t(494))/7)+parseInt(t(491))/8*(parseInt(t(479))/9)+parseInt(t(488))/10*(parseInt(t(487))/11)+parseInt(t(493))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=g)(500)]=n(500),e[n(484)]="POPUP",e[n(492)]=n(492),e[n(483)]=n(483),e.VIDEO=n(485),e.TEXT=n(496),(i=s||(s={}))[(r=g)(498)]=r(498),i[r(495)]=r(495),(a=o||(o={}))[(c=g)(482)]=c(482),a[c(499)]=c(499),(l=d||(d={}))[(u=g)(489)]=u(489),l[u(495)]=u(495),l[u(481)]=u(481);const I=v;function v(t,e){const n=m();return(v=function(t,e){return n[t-=390]})(t,e)}!function(){const t=v,e=m();for(;;)try{if(602565===parseInt(t(417))/1*(parseInt(t(450))/2)+-parseInt(t(420))/3+parseInt(t(451))/4*(parseInt(t(423))/5)+parseInt(t(454))/6*(parseInt(t(397))/7)+parseInt(t(398))/8*(parseInt(t(464))/9)+parseInt(t(413))/10*(-parseInt(t(448))/11)+parseInt(t(462))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class y{static isBrowser(){const t=v;return typeof window!==t(429)&&typeof document!==t(429)}static[I(455)](){return!this[I(446)]()}static canUseDOM(){const t=I;return this[t(446)]()&&void 0!==document[t(391)]}static[I(457)](t){const e=I;return this[e(453)]()?document[e(418)](t):null}static[I(442)](t){const e=I;return this[e(453)]()?document[e(426)](t):null}static[I(404)](t){const e=I;return this.canUseDOM()?Array[e(431)](document.querySelectorAll(t)):[]}static[I(440)](t){return this[I(453)]()?document.createElement(t):null}static[I(414)](t,e,n,s){const i=I;this[i(453)]()&&t&&t[i(411)](e,n,s)}static[I(447)](t,e,n,s){const i=I;this.canUseDOM()&&t&&t[i(456)](e,n,s)}static[I(433)](t,e){return this[I(446)]()?window[t]??e:e}static[I(463)](t,e){return this[I(453)]()?document[t]??e:e}static safeWindowOpen(t,e,n){return this.isBrowser()?window.open(t,e,n):null}static[I(410)](t){const e=I;return this[e(446)]()&&t?window[e(438)](t):null}static[I(405)](){const t=I;return!!this[t(453)]()&&document[t(391)]!==t(424)}static[I(461)](){return new Promise(t=>{const e=v;this.canUseDOM()?this[e(405)]()?t():this.safeAddEventListener(document,e(443),()=>t()):t()})}static safeApplyStyles(t,e){const n=I;this.canUseDOM()&&t&&Object[n(402)](e)[n(444)](([e,s])=>{const i=n;t.style[i(396)](e,s)})}static[I(393)](t,e){const n=I;this[n(453)]()&&t&&t[n(394)].add(e)}static[I(439)](t,e){const n=I;this.canUseDOM()&&t&&t[n(394)].remove(e)}static safeSetTextContent(t,e){const n=I;this[n(453)]()&&t&&(t[n(408)]=e)}static[I(460)](t,e){const n=I;this.canUseDOM()&&t&&(t[n(407)]=e)}static[I(395)](t,e){const n=I;this[n(453)]()&&t&&e&&t[n(432)](e)}static safeRemoveChild(t,e){this[I(453)]()&&t&&e&&t.removeChild(e)}static getPageInfo(){const t=I;return{url:this[t(433)](t(399),{href:""})[t(459)],title:this[t(463)](t(421),""),referrer:this[t(463)](t(416),"")}}static[I(400)](){const t=I;return{width:this[t(433)](t(452),0),height:this[t(433)](t(425),0),pixelRatio:this[t(433)](t(436),1)}}static getScrollInfo(){const t=I;return{scrollTop:this.canUseDOM()?window[t(401)]||document[t(390)][t(427)]:0,scrollLeft:this[t(433)](t(430),0)}}static async[I(441)](t,e={}){const n=I,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(453)]())throw new Error("DOM을 사용할 수 없는 환경입니다.");const o=document[n(418)](t);return o?(r&&console[n(445)](n(403)+t),o):(r&&console[n(445)](n(409)+t+n(449)+s+"ms)"),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(458)](s/i),l=()=>{const n=a;c++;const u=document[n(418)](t);if(u)return r&&console[n(445)](n(434)+t+" ("+c+"번째 시도, "+c*i+n(422)),void e(u);if(c>=d){const e=n(412)+t+n(415)+t+n(419)+s+"ms ("+c+n(428);return r&&console.error(e),void o(new Error(e))}r&&c%10==0&&console[n(445)](n(406)+t+" ("+c+"/"+d+")");const p=Math[n(437)](i*Math.pow(1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async[I(435)](t,e={}){const n=I,s=t.map(t=>this[n(441)](t,e));return Promise[n(392)](s)}}const b=w;function w(t,e){const n=E();return(w=function(t,e){return n[t-=404]})(t,e)}!function(){const t=w,e=E();for(;;)try{if(540306===-parseInt(t(411))/1*(-parseInt(t(418))/2)+-parseInt(t(416))/3*(parseInt(t(415))/4)+-parseInt(t(413))/5*(parseInt(t(419))/6)+-parseInt(t(409))/7+parseInt(t(410))/8*(parseInt(t(414))/9)+-parseInt(t(407))/10*(parseInt(t(405))/11)+parseInt(t(412))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const k=b(417);function x(){return k}function E(){const t=["6ZdngOX"," AdStageSDK/","388487OlbxVP","AdStageSDK/","290dcaYSH","userAgent","3686473aMfRsi","2048dbxOrs","828431BGQAxm","9517848hqicwp","337055qjbKdE","23418KieNzo","516592jlCABp","3uMlSNd",'"3.0.9"',"2yDrcPQ"];return(E=function(){return t})()}function S(t,e){const n=T();return(S=function(t,e){return n[t-=257]})(t,e)}const A=S;function T(){const t=["connection","platform","5337608DTPwcJ","278925fEDNKk","SSR","getScrollInfo",",y:","getViewportInfo","test","safeQuerySelector","substr","adstage_session_id","ssr_device_","pixelRatio","110hIvBXh","getItem","web","unknown","userAgent","width","7kzFRwU","toString","desktop","701335ylFtJQ",'[data-adstage-slot-id="',"isMobile","session_","6879690liiPdm","DateTimeFormat","effectiveType","adstage_device_id","generateDeviceId","setItem","isBrowser","163935XKUqeI","top","now","random","safeGetElementById","7959032gPdqST","getBoundingClientRect","device_","android","toLowerCase","getPlatform","colorDepth","round","2oLSTHq","resolvedOptions","language","generateSessionId"," .adstage-slider-wrapper","84327daToaJ"];return(T=function(){return t})()}!function(){const t=S,e=T();for(;;)try{if(755642===-parseInt(t(296))/1+parseInt(t(291))/2*(parseInt(t(300))/3)+-parseInt(t(299))/4+parseInt(t(267))/5+parseInt(t(271))/6+parseInt(t(264))/7*(parseInt(t(283))/8)+-parseInt(t(278))/9*(parseInt(t(258))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class C{static[A(275)](){const t=A;if(!y[t(277)]())return t(309)+Date[t(280)]();const e=localStorage.getItem("adstage_device_id");if(e)return e;const n=t(285)+Math[t(281)]()[t(265)](36).substr(2,9)+"_"+Date[t(280)]();return localStorage[t(276)](t(274),n),n}static[A(294)](){const t=A;if(!y[t(277)]())return"ssr_session_"+Date.now();const e=sessionStorage[t(259)](t(308));if(e)return e;const n=t(270)+Math.random().toString(36)[t(307)](2,9)+"_"+Date[t(280)]();return sessionStorage[t(276)]("adstage_session_id",n),n}static[A(269)](){const t=A;return!!y.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(305)](navigator[t(262)])}static[A(288)](){const t=A;if(!y[t(277)]())return t(260);const e=navigator.userAgent[t(287)]();return/iphone|ipad|ipod/.test(e)?"ios":/android/[t(305)](e)?t(286):C[t(269)]()?"web":t(266)}static collectDeviceInfo(){const t=A,e=y[t(304)]();return{deviceId:C.generateDeviceId(),sessionId:C[t(294)](),osVersion:y.isBrowser()?navigator.platform:t(301),deviceModel:y[t(277)]()?navigator[t(298)]:"SSR",appVersion:"1.0.0",sdkVersion:x(),language:y[t(277)]()&&navigator[t(293)]||"ko",country:"KR",ipAddress:"",userAgent:y.isBrowser()?navigator.userAgent:"SSR",timezone:y[t(277)]()?Intl[t(272)]()[t(292)]().timeZone:"UTC",viewportWidth:e.width,viewportHeight:e.height,screenWidth:y[t(277)]()?screen[t(263)]:0,screenHeight:y.isBrowser()?screen.height:0,colorDepth:y[t(277)]()?screen[t(289)]:24,pixelRatio:e[t(257)],connectionType:y[t(277)]()?navigator[t(297)]?.[t(273)]||"unknown":t(261),platform:C[t(288)]()}}static getSlotPosition(t){const e=A;let n=y[e(282)](t);if(!n){const s=y.safeQuerySelector("#"+t+e(295));s&&(n=s)}if(!n&&(n=y[e(306)](e(268)+t+'"]')),!n)return"unknown";const s=n[e(284)](),i=y[e(302)]();return"x:"+Math.round(s.left)+e(303)+Math[e(290)](s[e(279)]+i.scrollTop)}}const L=z;function B(){const t=["35670740TiEOLq","userAgent","528CCNKSA","2539140fZRZsX","10984ZLsgQJ","226392McHZMO","create","5077270ceWOOb","User-Agent","798716JgjELV","undefined","122334QbqMbh","createForEvents","490arkvIW","API key is required","application/json","243yZoatr","contentType"];return(B=function(){return t})()}function z(t,e){const n=B();return(z=function(t,e){return n[t-=344]})(t,e)}!function(){const t=z,e=B();for(;;)try{if(770206===parseInt(t(358))/1+parseInt(t(353))/2*(parseInt(t(351))/3)+-parseInt(t(352))/4+parseInt(t(356))/5+parseInt(t(360))/6*(parseInt(t(344))/7)+-parseInt(t(354))/8*(-parseInt(t(347))/9)+-parseInt(t(349))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class P{static[L(355)](t,e){const n=L;if(!t)throw new Error(n(345));const s={"x-api-key":t,"Content-Type":e?.[n(348)]||n(346)};return typeof navigator!==n(359)&&(s[n(357)]=e?.userAgent||navigator[n(350)]),s}static[L(361)](t,e){const n=L,s=P.create(t);return e?.userAgent&&(s[n(357)]=e[n(350)]),s}}const D=R;function U(){const t=["debug","apiKey","248938OBAEQb","⚠️ DOM element not found for slotId: ","log","now"," for ad ","deviceId","status","🚀 AdvertisementEventTracker: Processing ","height","trackAdvertisementEvent","substring","679893sZnxtF","replace","600018Dvclat","url","collectDeviceInfo","title","188IdDHYz","warn","VIEWABLE"," (containerId: ","baseUrl","API request failed: ","getPageInfo","28ZJLDQj"," in slot ",'[data-adstage-slot-id="',"636544gYwqyH","getSlotPosition","error","/advertisements/events/","length","❌ Failed to track advertisement event:","referrer","string","🔍 Debug info:","🌐 Full API call details:","text","✅ Successfully tracked advertisement event: ","querySelector","number","stringify","createForEvents","NOT_SET",". Skipping event tracking to prevent incorrect adType.","slots","width","13814046VczSHN","⚠️ Slot not found for slotId: ","sessionId","get","containerId","📡 API Response Status: ","58045jgcuWP","1096680fCHbHL","🚀 Sending advertisement event: ","statusText"];return(U=function(){return t})()}function R(t,e){const n=U();return(R=function(t,e){return n[t-=407]})(t,e)}!function(){const t=R,e=U();for(;;)try{if(312659===-parseInt(t(426))/1+parseInt(t(439))/2+-parseInt(t(437))/3+parseInt(t(443))/4*(-parseInt(t(420))/5)+-parseInt(t(421))/6+parseInt(t(450))/7*(-parseInt(t(453))/8)+parseInt(t(414))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t,e,n,s){const i=R;this[i(447)]=t,this[i(425)]=e,this[i(424)]=n,this[i(412)]=s}async[D(435)](t,e,n){const s=D;try{this[s(424)]&&console[s(428)](s(433)+n+" event for ad "+t+s(451)+e);const i=this.slots[s(417)](e);if(!i)return void(this[s(424)]&&console[s(444)](s(415)+e+s(411)));if(!(document.getElementById(i.containerId)||document[s(465)](s(452)+e+'"]')))return void(this.debug&&console.warn(s(427)+e+s(446)+i[s(418)]+"). Skipping event tracking."));const r=C[s(441)](),a={adType:i.adType,platform:r.platform,deviceId:r[s(431)],deviceInfo:r,pageUrl:y[s(449)]()[s(440)],pageTitle:y[s(449)]()[s(442)],referrer:y[s(449)]()[s(459)],slotId:e,slotPosition:C[s(454)](i[s(418)]),slotWidth:M.parseNumericValue(i[s(413)]),slotHeight:M.parseNumericValue(i[s(434)]),sessionId:r[s(416)],pageLoadTime:performance[s(429)](),metadata:{eventType:n,sdkVersion:x(),timestamp:Date.now()},...n===o[s(445)]&&{isViewable:!0,iabCompliant:!0}},c=this.baseUrl+s(456)+t+"/"+n,d=P[s(409)](this.apiKey,a);this[s(424)]&&(console[s(428)](s(422)+n+s(430)+t,{url:c,headers:d,eventData:a}),console[s(428)](s(462),{method:"POST",url:c,hasApiKey:!!this.apiKey,bodySize:JSON.stringify(a)[s(457)]}));const l=await fetch(c,{method:"POST",headers:d,body:JSON[s(408)](a)});if(this[s(424)]&&console.log(s(419)+l.status+" "+l[s(423)],{url:c,ok:l.ok}),!l.ok){const t=await l[s(463)]();throw new Error(s(448)+l[s(432)]+" "+l[s(423)]+" - "+t)}this[s(424)]&&console[s(428)](s(464)+n+s(430)+t)}catch(i){console[s(455)](s(458),i),console[s(455)](s(461),{baseUrl:this[s(447)],apiKey:this.apiKey?this[s(425)][s(436)](0,8)+"...":s(410),url:this[s(447)]+s(456)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=D;if(typeof t===e(407))return t;if(typeof t===e(460)){const n=parseFloat(t[e(438)](/px$/,""));return isNaN(n)?0:n}return 0}}function V(t,e){var n=O();return(V=function(t,e){return n[t-=429]})(t,e)}var N=V;function O(){var t=["observe","warn","76taErev","6586728BSQMUG","initIntersectionObserver","onViewableCallback","1179345MrnPdB","visibilityState","handleIntersection","2912426mzPwIm","IntersectionObserver not supported, viewability tracking disabled","disconnect","130NodHwR","isDocumentVisible","visible","51868GLSXnB","472HjtBhT","220FGKxOM","48buGlca","805338zdueAx","observer","intersectionRatio","IntersectionObserver","forEach","isViewableTriggered","59487etUtLV","85582OexELV"];return(O=function(){return t})()}!function(){for(var t=V,e=O();;)try{if(593183===parseInt(t(436))/1+-parseInt(t(432))/2*(parseInt(t(455))/3)+-parseInt(t(445))/4*(-parseInt(t(447))/5)+parseInt(t(433))/6+-parseInt(t(429))/7*(-parseInt(t(446))/8)+-parseInt(t(449))/9*(parseInt(t(442))/10)+parseInt(t(439))/11*(-parseInt(t(448))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class H{constructor(t,e){var n=V;this[n(450)]=null,this[n(454)]=!1,this.element=t,this[n(435)]=e,this.initIntersectionObserver()}[N(434)](){var t=N;t(452)in window?(this.observer=new IntersectionObserver(e=>this[t(438)](e),{threshold:.5,rootMargin:"0px"}),this[t(450)][t(430)](this.element)):console[t(431)](t(440))}[N(438)](t){var e=N;t[e(453)](t=>{var n=e;t[n(451)]>=.5&&this[n(443)]()&&!this[n(454)]&&(this.isViewableTriggered=!0,this[n(435)]&&this.onViewableCallback())})}isDocumentVisible(){var t=N;return!document.hidden&&document[t(437)]===t(444)}destroy(){var t=N;this[t(450)]&&(this[t(450)][t(441)](),this[t(450)]=null)}}const F=j;!function(){const t=j,e=X();for(;;)try{if(649618===parseInt(t(203))/1+parseInt(t(204))/2+parseInt(t(216))/3*(-parseInt(t(199))/4)+-parseInt(t(212))/5*(-parseInt(t(210))/6)+parseInt(t(219))/7*(-parseInt(t(206))/8)+-parseInt(t(220))/9+parseInt(t(211))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const _={production:F(205),beta:F(202)};F(214);const K={advertisements:{list:F(218),detail:"/advertisements",events:F(209)},events:{track:F(208)}};function j(t,e){const n=X();return(j=function(t,e){return n[t-=199]})(t,e)}function X(){const t=["15199020mLsMVI","5405MgvoMH","getBaseUrl","production","events","12249FUFiIh","baseUrl","/advertisements/list","7992509eCSJBv","3989943IgImnW","custom","track","1172pzinQP","advertisements","list","https://beta-api.adstage.app","390492WTiYvY","1767896FEQsJp","https://api.adstage.app","8WIfCoP","detail","/events/track","/advertisements/events","3534EtLXFU"];return(X=function(){return t})()}class W{constructor(t){const e=F;this[e(200)]={list:()=>""+this[e(217)]+K[e(200)][e(201)],detail:t=>""+this[e(217)]+K[e(200)][e(207)]+"/"+t,events:(t,n)=>""+this[e(217)]+K[e(200)][e(215)]+"/"+t+"/"+n},this[e(215)]={track:()=>""+this[e(217)]+K.events[e(222)]},this[e(217)]=t||_[e(214)]}setBaseUrl(t){this[F(217)]=t}[F(213)](){return this[F(217)]}[F(221)](t){return""+this.baseUrl+(t.startsWith("/")?t:"/"+t)}}const G=new W;var q=J;function Y(){var t=["36834WUUIVH","_id","🎯 Triggering VIEWABLE event for slide change: ad ","log","3BeFoqZ","1500qDiLBr","3000oYKcaM","7298ZkWPnl","232Asjlfg","20xouyTq","45279DDXjLz","🎯 Triggering initial VIEWABLE event: ad ","657204eCpPmo","trackSlideViewable","trackInitialSlideViewable","146rUVEok","2584148GLTiHY","9778639qHNTkz","VIEWABLE","35167jCvsAz"," (index: ",") in slot: "];return(Y=function(){return t})()}function J(t,e){var n=Y();return(J=function(t,e){return n[t-=343]})(t,e)}!function(){for(var t=J,e=Y();;)try{if(402876===parseInt(t(358))/1*(parseInt(t(344))/2)+parseInt(t(355))/3*(-parseInt(t(345))/4)+-parseInt(t(360))/5*(parseInt(t(363))/6)+parseInt(t(351))/7*(parseInt(t(359))/8)+parseInt(t(361))/9*(parseInt(t(356))/10)+-parseInt(t(348))/11*(-parseInt(t(357))/12)+-parseInt(t(346))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Z{static[q(364)](t,e,n,s,i=!1){var r=q;i&&console[r(354)](r(353)+t[r(352)]+r(349)+n+r(350)+e.id),s(t[r(352)],e.id,o[r(347)])}static[q(343)](t,e,n,s=!1){var i=q;s&&console[i(354)](i(362)+t[i(352)]+" (index: 0) in slot: "+e.id),n(t[i(352)],e.id,o.VIEWABLE)}}function Q(t,e){const n=et();return(Q=function(t,e){return n[t-=345]})(t,e)}const $=Q;!function(){const t=Q,e=et();for(;;)try{if(357207===-parseInt(t(349))/1*(parseInt(t(372))/2)+parseInt(t(350))/3*(-parseInt(t(348))/4)+-parseInt(t(360))/5*(parseInt(t(365))/6)+parseInt(t(367))/7+parseInt(t(354))/8*(-parseInt(t(351))/9)+parseInt(t(366))/10+parseInt(t(363))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[$(374)](t,e,n,s,i=!1,r){const a=$;e[a(364)]&&(t.style[a(369)]=a(346),t[a(376)](a(353),t=>{const c=a;if(t[c(362)](),t[c(356)](),s&&s(e[c(375)],n.id,o.CLICK),window.open(e[c(364)],"_blank"),i){const t=r||String(n[c(370)]).toLowerCase();console.log(c(368)+t+c(357)+e[c(375)]+" -> "+e[c(364)])}}))}static addClickEventForRenderer(t,e,n,s,i=!1,r){const a=$;e.linkUrl&&(t[a(347)].cursor=a(346),t[a(376)](a(353),t=>{const c=a;t[c(362)](),t[c(356)]();if(s()(e[c(375)],n.id,o[c(359)]),window.open(e.linkUrl,c(373)),i){const t=r||String(n.adType)[c(345)]();console[c(371)]("🔗 "+t+c(357)+e[c(375)]+c(358)+e[c(364)])}}))}static[$(361)](t,e,n,s,i=!1,r){this[$(374)](t,e,n,s,i,r)}static[$(352)](t){return Boolean(t[$(364)])}static addClickEventsBatch(t,e,n,s,i=!1,r){const o=$;t[o(355)]((t,a)=>{const c=o,d=e[a];d&&this[c(374)](t,d,n,s,i,r)})}}function et(){const t=["CLICK","10lDMAiy","addClickEventForSlider","preventDefault","19123434loyYKP","linkUrl","1103358zpxHOP","4252990mRnVEK","3380433PKnYal","🔗 ","cursor","adType","log","6JiwgCZ","_blank","addClickEvent","_id","addEventListener","toLowerCase","pointer","style","112HrJKxT","226653tnTBWS","69873PDeXGr","5306508HjbXSI","isClickable","click","8GaTTcG","forEach","stopPropagation"," ad clicked: "," -> "];return(et=function(){return t})()}const nt=st;function st(t,e){const n=it();return(st=function(t,e){return n[t-=125]})(t,e)}function it(){const t=["Text Ad","videoUrl","toLowerCase","backgroundColor","cssText","transition","background","objectFit","#f9f9f9","includes","addTouchSupport","100%","div","mouseleave","setProperty","fontSize","padding","0.7","adstage-slide-container","cover","textContent",".adstage-dot","createSimpleAdElement","active","entries","borderColor","src","adstage-dot","2609890QLHGTY","forEach","imageUrl","inline-block","1px solid #666","Banner Ad","block","createElement","BANNER","0.9","removeChild","TEXT","\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 ","hidden","#999999","1287282toJgil","#cccccc","7hIseoB","transform 0.4s ease-out","4563940uhUuCF","appendChild","height","_id","setAttribute","mouseenter","1195745uatfTc","auto","click","img","normal","4481860rIzRMZ","touches","display","string","overflow","8px","getBoundingClientRect","744UlZkvX","classList","281763QyvcAz","adType","translateX(-","abs","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","autoSlideInterval","border","Video Ad","touchstart","querySelectorAll","width","100px","1344294xRyCAZ","addClickEventForSlider","preventDefault","remove","className","addEventListener","none","children","style","50px","color","#000","opacity","clientX","video","body","createSliderContainer","1px dashed #ccc","center","trackSlideViewable","length","createMinimalDotIndicator","#666666","flex","contains"];return(it=function(){return t})()}!function(){const t=st,e=it();for(;;)try{if(856327===-parseInt(t(204))/1+-parseInt(t(179))/2+parseInt(t(194))/3+-parseInt(t(209))/4+parseInt(t(198))/5+-parseInt(t(126))/6*(-parseInt(t(196))/7)+parseInt(t(216))/8*(parseInt(t(218))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class rt{static[nt(173)](e,n){const s=nt,i=document.createElement(s(163));switch(i[s(130)]="adstage-ad adstage-"+String(e[s(219)])[s(153)](),i[s(202)]("data-adstage-ad-id",n[s(201)]),i.setAttribute("data-adstage-slot-id",e.id),i.style.display=s(185),i[s(134)].width=s(162),i[s(134)][s(200)]=s(205),e.adType){case t[s(187)]:if(n[s(181)]){const t=document[s(186)](s(207));t[s(177)]=n[s(181)],t[s(134)][s(228)]=s(162),t[s(134)].height="auto",t[s(134)][s(158)]=s(170),i[s(199)](t)}else i.style[s(200)]=s(125),i.style[s(154)]="#f0f0f0",i.style.border=s(143),i.textContent=s(184);break;case t.VIDEO:if(n.videoUrl){const t=document[s(186)](s(140));t[s(177)]=n[s(152)],t[s(134)].width=s(162),t.style.height=s(205),i[s(199)](t)}else i.style.height="200px",i[s(134)][s(154)]=s(137),i.style[s(224)]=s(183),i.textContent=s(225),i.style[s(136)]="white";break;case t[s(190)]:if(n[s(171)]){const t=document[s(186)]("div");t[s(171)]=n[s(171)]||"",t[s(134)][s(167)]=s(214),t.style[s(166)]="14px",i[s(199)](t)}else i[s(134)][s(200)]=s(135),i[s(134)][s(167)]=s(214),i[s(171)]=s(151);break;default:i[s(134)].height="100px",i[s(134)][s(224)]=s(143),i[s(134)][s(154)]=s(159),i[s(171)]=e[s(219)]+" Ad"}return i}static[nt(142)](e,n,s,i,r=!1){const o=nt,a=document[o(186)](o(163));a[o(130)]="adstage-slider-wrapper";const c={position:"relative",overflow:o(192)};if(e[o(228)]&&0!==e[o(228)]){let t;t=typeof e[o(228)]===o(212)&&(e[o(228)][o(160)]("px")||e[o(228)].includes("%"))?e[o(228)]:e[o(228)]+"px",c[o(228)]=t,c[o(211)]=o(182)}else c[o(211)]=o(182);if(e[o(200)]&&0!==e[o(200)]){const t=typeof e[o(200)]===o(212)?e[o(200)]:e.height+"px";c.height=t}Object[o(175)](c).forEach(([t,e])=>{const n=o;a[n(134)][n(165)](t,e)});const d=!e[o(228)]||0===e[o(228)],l=!e[o(200)]||0===e[o(200)];if(d||l){const t=document[o(186)](o(163));if(t[o(134)].cssText=o(222),!d&&e.width){let n;n=typeof e[o(228)]===o(212)&&(e.width[o(160)]("px")||e.width[o(160)]("%"))?e[o(228)]:e[o(228)]+"px",t[o(134)].width=n,t.style.whiteSpace=o(208)}document.body.appendChild(t);let s=0,i=0;n[o(180)](n=>{const r=o,a=this[r(173)](e,n);t[r(199)](a);const c=a[r(215)]();c.width>s&&(s=c.width),c.height>i&&(i=c[r(200)]),t.removeChild(a)}),d&&s>0&&(a[o(134)][o(228)]=s+"px",c.width=s+"px"),l&&i>0&&(a[o(134)][o(200)]=i+"px",c[o(200)]=i+"px"),document[o(141)][o(189)](t)}const u=[...n,n[0]],p=document.createElement(o(163));p[o(130)]=o(169);const h={display:o(149),transition:o(197),width:100*u.length+"%"};e[o(200)]&&0!==e[o(200)]&&(h.height="100%"),Object[o(175)](h)[o(180)](([t,e])=>{const n=o;p[n(134)][n(165)](t,e)}),u[o(180)]((t,n)=>{const s=o,a=document[s(186)]("div");a[s(130)]="adstage-slide";const c={width:100/u[s(146)]+"%","flex-shrink":"0",display:"flex","align-items":s(144),"justify-content":"center"};e[s(200)]&&0!==e.height&&(c.height=s(162)),Object.entries(c)[s(180)](([t,e])=>{const n=s;a.style[n(165)](t,e)});const d=this[s(173)](e,t);tt[s(127)](d,t,e,i,r,String(e[s(219)])[s(153)]()),a[s(199)](d),p.appendChild(a)});const f=n.every(e=>e[o(219)]===t[o(190)])?null:this[o(147)](n[o(146)]);let g=0;const m=n[o(146)],I=1e3*(s?.[o(223)]||3),v=(t,s=!1)=>{const a=o;g=t,s?p[a(134)][a(156)]=a(132):p.style[a(156)]=a(197),p[a(134)].transform=a(220)+100/u[a(146)]*g+"%)";const c=g===m?0:g;if(f){f[a(227)](a(172)).forEach((t,e)=>{const n=a,s=t;e===c?(s[n(217)].add(n(174)),s[n(134)][n(157)]="#666666",s.style[n(176)]=n(148),s[n(134)].opacity="1"):(s[n(217)][n(129)]("active"),s.style[n(157)]="transparent",s[n(134)][n(176)]=n(195),s[n(134)][n(138)]="0.7")})}Z[a(145)](n[c],e,c,i,r)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(".adstage-dot")[o(180)]((t,e)=>{const n=o;t.addEventListener(n(206),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(131)](o(203),()=>{clearInterval(b)}),a[o(131)](o(164),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[o(161)](p,v,()=>g,m,y),a[o(199)](p),f&&a[o(199)](f),v(0),(!e[o(228)]||0===e.width)&&setTimeout(()=>{const t=o,n=p[t(133)][0];if(n){const s=n[t(133)][0];if(s){const n=s[t(215)]();a[t(134)][t(228)]=n[t(228)]+"px",(!e[t(200)]||0===e[t(200)])&&(a[t(134)].height=n.height+"px"),a.style[t(213)]=t(192)}}},10),a}static[nt(147)](t){const e=nt,n=document[e(186)](e(163));n.className="adstage-dots",n[e(134)][e(155)]="\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 ";for(let s=0;s<t;s++){const t=document[e(186)]("button");t[e(130)]=e(178),t.style[e(155)]=e(191),t[e(131)]("mouseenter",()=>{const n=e;!t[n(217)][n(150)](n(174))&&(t[n(134)].borderColor=n(193),t.style.opacity=n(188))}),t[e(131)]("mouseleave",()=>{const n=e;!t[n(217)][n(150)]("active")&&(t[n(134)][n(176)]=n(195),t[n(134)][n(138)]=n(168))}),n[e(199)](t)}return n}static[nt(161)](t,e,n,s,i){const r=nt;let o=0,a=!1;t.addEventListener(r(226),t=>{o=t[r(210)][0].clientX,a=!0}),t[r(131)]("touchmove",t=>{a&&t[r(128)]()}),t.addEventListener("touchend",t=>{const c=r;if(!a)return;a=!1;const d=t.changedTouches[0][c(139)],l=o-d;if(Math[c(221)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}function ot(t,e){const n=dt();return(ot=function(t,e){return n[t-=165]})(t,e)}const at=ot;!function(){const t=ot,e=dt();for(;;)try{if(389943===parseInt(t(166))/1*(-parseInt(t(182))/2)+parseInt(t(178))/3+-parseInt(t(176))/4+-parseInt(t(165))/5*(-parseInt(t(168))/6)+parseInt(t(172))/7*(parseInt(t(175))/8)+-parseInt(t(171))/9*(parseInt(t(173))/10)+-parseInt(t(170))/11*(parseInt(t(177))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static isDuplicateViewable(t,e,n=!1){const s=ot,i=t+"_"+e;return ct[s(179)].has(i)?(n&&console[s(167)](s(181)+t+s(174)+e),!0):(ct[s(179)][s(180)](i),n&&console.log(s(169)+t+" in slot "+e),!1)}static clear(){const t=ot;ct.viewableTracker[t(183)]()}static clearAdViewable(t,e){const n=t+"_"+e;ct.viewableTracker.delete(n)}}function dt(){const t=["✅ New viewable recorded for ad ","39413JJLdRY","51174jjAZEU","483VsUnAQ","510sSPsWE"," in slot ","58712ItAIHk","806316VApvSL","456EaUKKd","1921557IQorJg","viewableTracker","add","Duplicate viewable blocked for ad ","2OQUSly","clear","827245QtWbBM","294697JUiUGX","log","6fFCNWd"];return(dt=function(){return t})()}function lt(){const t=["isDuplicateViewable","error","cssText","rgba(231, 76, 60, 0.1)","4px","12qJojKe","string","data-adstage-container","#e74c3c","warn","advertisementEventTracker","🔄 Starting advertisement event tracking: ","rgba(0, 0, 0, 0.02)",".adstage-slot","applyPlaceholderStyle","innerHTML"," for ","7168579lwUBqA","❌ Failed to track ","\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","closest","data-adstage-type","display"," event",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"42100mqsmxw","invisible","2px dashed #e74c3c","adstage-slot adstage-empty adstage-","31NsGuXg","minimal","rgba(248, 249, 250, 0.5)","opacity","filter","): ","alignItems","getComputedStyle","flex","advertisement","fontSize","createEmptyContainer","adstage-official","📏 Using default height ","log","1835688GKiVcC","3321pkLcFc","adstage-slot adstage-","border","querySelector",'[class*="ad"]',"className","height"," for ad ","true","style",'div[style*="height"]'," container collapsed (","10aHFsst","📊 Advertisement event tracked: ","transparent","setAttribute","classList","auto",'[class*="banner"]',"1900nSIhrv","containerId","createPlaceholder","none","getContainerHeight","9efoRQa","justifyContent","VIEWABLE","placeholderMode","contains","65106gbtaGv","adstage-class","generic","getElementById","calculateAdSize","adstage-slot","debug","createEventTrackingCallback","data-adstage-slot","number","createElement","1px dashed #ccc","getAttribute",") - Mode: ","⚠️ ","📦 Placeholder created for ","data-adstage-empty"," container: "," in slot ","borderRadius","center","3365975fCwijn","div"," event for ad ","parentElement","monospace","toLowerCase","unknown","<span>Loading ","getDefaultHeight",'[data-adstage-container="true"]',"width","backgroundColor","462XkqcvG","100%","fontFamily","px)","appendChild","renderFallback","isEmpty","13481767RiAJgz","color"];return(lt=function(){return t})()}ct[at(179)]=new Set;const ut=pt;function pt(t,e){const n=lt();return(pt=function(t,e){return n[t-=391]})(t,e)}!function(){const t=pt,e=lt();for(;;)try{if(403845===parseInt(t(405))/1*(parseInt(t(401))/2)+parseInt(t(421))/3*(parseInt(t(440))/4)+-parseInt(t(471))/5+parseInt(t(450))/6*(-parseInt(t(483))/7)+parseInt(t(420))/8*(parseInt(t(445))/9)+parseInt(t(433))/10*(-parseInt(t(392))/11)+-parseInt(t(497))/12*(-parseInt(t(490))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ht{constructor(t,e=!1,n){this.adType=t,this.debug=e,this.advertisementEventTracker=n||null}[ut(442)](t,e,n,s){const i=ut,r=document[i(460)](i(472));r.id=e,r.className=i(422)+String(this.adType)[i(476)](),r[i(436)](i(499),i(429)),r[i(436)](i(397),String(this[i(395)])),r[i(436)](i(458),e);const{width:o,height:a}=this.calculateAdSize(t,n,s)||{width:i(484),height:this.getDefaultHeight()};r[i(430)][i(481)]=o,r[i(430)][i(427)]=a;const c=s?.[i(448)]||n[i(448)]||i(402);this.applyPlaceholderStyle(r,c),t[i(487)](r),this[i(456)]&&console[i(419)](i(465)+this[i(395)]+" slot: "+e+" ("+o+" x "+a+i(463)+c)}[ut(506)](t,e){const n=ut;switch(e){case n(402):t.style[n(482)]=n(435),t.style[n(423)]="none",t[n(430)][n(408)]="0",t.innerHTML="";break;case n(435):t[n(430)][n(482)]=n(435),t[n(430)][n(423)]=n(443),t[n(430)][n(398)]="block",t.innerHTML="";break;case"subtle":t.style.backgroundColor=n(504),t[n(430)][n(423)]=n(443),t[n(430)][n(469)]=n(496),t[n(430)][n(398)]=n(413),t[n(430)][n(411)]=n(470),t[n(430)][n(446)]=n(470),t.innerHTML='<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>';break;case n(406):t[n(430)][n(482)]=n(407),t[n(430)][n(423)]="1px solid rgba(0, 0, 0, 0.08)",t.style.borderRadius="6px",t[n(430)][n(398)]=n(413),t.style[n(411)]="center",t.style[n(446)]=n(470),t.innerHTML=n(400);break;case n(456):t[n(430)].border=n(403),t[n(430)][n(398)]=n(413),t[n(430)][n(411)]="center",t[n(430)].justifyContent=n(470),t[n(430)][n(482)]=n(495),t[n(430)][n(491)]=n(500),t.style[n(485)]=n(475),t.style[n(415)]="11px",t[n(507)]="<span>Loading "+this.adType+" ad...</span>";break;default:t[n(430)].border=n(461),t[n(430)][n(398)]=n(413),t[n(430)][n(411)]=n(470),t[n(430)][n(446)]=n(470),t[n(430)][n(482)]="#f9f9f9",t[n(430)][n(491)]="#666",t.innerHTML=n(478)+this[n(395)]+" ad...</span>"}}[ut(454)](t,e,n){const s=ut,i=e.width,r=e[s(427)];let o,a;if(o=typeof i===s(459)?i+"px":typeof i===s(498)?i:s(484),"number"==typeof r)a=r+"px";else if("string"==typeof r&&"100%"!==r&&r!==s(438))a=r;else{const e=this[s(444)](t);e>0?(a=s(484),(n?.[s(456)]||this.debug)&&console[s(419)]("📏 Using 100% height (container: "+e+s(486))):(a=this[s(479)](),(n?.[s(456)]||this[s(456)])&&console[s(419)](s(418)+a+s(391)+this[s(395)]))}return{width:o,height:a}}[ut(444)](t){const e=ut,n=window[e(412)](t),s=parseFloat(n[e(427)]);if(!s||0===s){const s=parseFloat(n.minHeight);if(s>0)return s;if(t[e(430)].height&&"auto"!==t.style.height){const n=parseFloat(t[e(430)][e(427)]);if(n>0)return n}const i=t[e(462)](e(427));if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}[ut(457)](){return async(t,e,n)=>{const s=pt;if(n===o[s(447)]){if(ct[s(492)](t,e,this[s(456)]))return void(this[s(456)]&&console.log("🚫 Duplicate viewable blocked for ad "+t+" in slot "+e));this[s(456)]&&console[s(419)]("✅ New viewable recorded for ad "+t+s(468)+e)}if(this[s(502)])try{this[s(456)]&&console[s(419)](s(503)+n+s(428)+t+s(468)+e),await this[s(502)].trackAdvertisementEvent(t,e,n),this[s(456)]&&console.log(s(434)+n+" for ad "+t+" in slot "+e)}catch(e){this[s(456)]&&console[s(493)](s(393)+n+s(473)+t+":",e)}else this[s(456)]&&console[s(501)]("⚠️ AdvertisementEventTracker not available for "+n+s(399))}}[ut(488)](t){const e=ut,n=document[e(453)](t.id);if(n){const s=[...[n[e(424)]('[data-adstage-container="true"]'),n[e(396)](e(480)),n][e(409)](t=>t&&t.hasAttribute(e(499))),...[n[e(396)](e(505)),n[e(396)](".adstage-"+String(this[e(395)])[e(476)]()),n[e(396)](e(425)),n[e(396)](e(439)),n[e(396)]('[class*="container"]'),n[e(396)](e(431)),n.closest('div[style*="min-height"]'),n[e(474)]].filter(Boolean)][0];if(s){let n=e(477);n=s.hasAttribute("data-adstage-container")?e(417):s[e(437)][e(449)](e(455))?e(451):e(452),s[e(430)][e(494)]+=e(394),s.innerHTML="",s[e(436)]("data-adstage-empty",e(429)),this.debug&&console[e(501)](e(464)+this[e(395)]+e(432)+n+e(410)+t.id,s)}else this.createEmptyContainer(t)}t[e(414)]=void 0,t[e(489)]=!0}[ut(416)](t){const e=ut,n=document.getElementById(t[e(441)]);if(n){n[e(507)]="";const s=document[e(460)]("div");s.id=t.id,s[e(426)]=e(404)+String(this.adType)[e(476)](),s[e(436)](e(499),e(429)),s[e(436)](e(466),e(429)),s.setAttribute(e(458),t.id),s[e(430)][e(494)]="\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 ",n[e(487)](s),this[e(456)]&&console[e(501)]("⚠️ Created empty "+this.adType+e(467)+t.id)}}[ut(419)](t,...e){const n=ut;this[n(456)]&&console[n(419)]("["+this[n(395)]+"] "+t,...e)}}const ft=gt;function gt(t,e){const n=mt();return(gt=function(t,e){return n[t-=248]})(t,e)}function mt(){const t=["8826PnHXMW","status","className","max","21guuFNu","borderRadius","forEach","average","📊 Using standard ratio: ","length","contain","150932kWchvv","_id","Banner Advertisement","</div>","📦 Banner container dimensions: ","values","abs","📐 Optimal banner container calculated: ","aspectRatio","objectFit","name","set","optimizeContainerForBannerAds","reduce","warn","BANNER","get","common","30767473htKILp","debug","2037380xkeKDV","createElement","objectPosition","1361592ZHCcbU","fulfilled","src","toString","count","loadImageDimensions","3:2"," ads (optimized: ","250px","125812OCzsUr","display"," (avg: ","createSliderContainer","Banner container optimization failed, using default size:","addClickEventForRenderer","innerHTML","default","renderOptimizedBannerImage","✅ Optimized banner image rendered for ad: "," with ","backgroundColor","Container not found: ","📸 Banner image dimensions: ","❌ Failed to load optimized banner image:","calculateOptimalContainerSize","3235zuUMIG","center","config","9xoqVar","calculateAdSize","dominant","imageUrl","title","optimizedHeight","renderAdElement","style","map","adstage-ad adstage-banner-ad","containerId","applyOptimizedImageStyle","3CDXHzy","slideInterval","selectOptimalSizeStrategy","img","ratio","toFixed",", ratio=","width","16:9","block","height","1558370xRwofV","error","onload","round","Banner Ad","calculateOptimalHeight","12gKTOnZ","getDefaultHeight","appendChild","🎠 Banner carousel created for slot: ","1:1","getElementById","value",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"filter","createEventTrackingCallback","alt","cover","100%","from","Image URL is not provided","getBoundingClientRect","Failed to calculate optimal banner size, using defaults:","4:3","log"];return(mt=function(){return t})()}!function(){const t=gt,e=mt();for(;;)try{if(559935===parseInt(t(287))/1+-parseInt(t(275))/2+parseInt(t(318))/3*(-parseInt(t(255))/4)+-parseInt(t(303))/5*(parseInt(t(354))/6)+parseInt(t(248))/7*(-parseInt(t(278))/8)+-parseInt(t(306))/9*(-parseInt(t(329))/10)+parseInt(t(273))/11*(parseInt(t(335))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class It extends ht{constructor(e=!1,n){super(t[gt(270)],e,n)}[ft(336)](){return ft(286)}async[ft(312)](t,e){const n=ft,s=document[n(340)](t[n(316)]);if(!s)return;const i=document[n(276)]("div");i[n(356)]=n(315);const r=t.optimizedHeight,o=s.parentElement||s;if(r)i[n(313)][n(325)]="100%",i[n(313)][n(328)]=String(r);else{const e=t.config,s={width:e?.width,height:e?.height},{width:r,height:a}=this[n(307)](o,s,{debug:this[n(274)]});i[n(313)][n(325)]=r,i[n(313)].height=a}e[n(309)]?await this[n(295)](i,e,t):i[n(293)]="<div>"+(e[n(310)]||n(333))+n(258),tt[n(292)](i,e,t,()=>this[n(344)](),this[n(274)],"Banner"),s.innerHTML="",s[n(337)](i)}async renderMultipleAds(t,e){const n=ft,s=document.getElementById(t.containerId);if(!s)throw new Error(n(299)+t[n(316)]);await this[n(267)](t,e);const i=this.createEventTrackingCallback(),r={autoSlideInterval:(t[n(305)]?.[n(319)]||5e3)/1e3,...t[n(305)],optimizedHeight:t[n(311)],aspectRatio:t.aspectRatio},o=rt[n(290)](t,e,r,i,this.debug);o&&(s.innerHTML="",s.appendChild(o),this[n(274)]&&console.log(n(338)+t.id+n(297)+e[n(253)]+n(285)+(t[n(311)]||n(294))+")"))}async[ft(302)](t,e){const n=ft;if(!t.length)return{width:n(347),height:this.getDefaultHeight(),aspectRatio:16/9};try{const s=(await Promise.allSettled(t[n(343)](t=>t[n(309)]).map(t=>this[n(283)](t[n(309)]))))[n(343)](t=>t[n(355)]===n(279))[n(314)](t=>t[n(341)]);if(0===s[n(253)])return{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9};const i=this[n(320)](s),r=this[n(334)](s,e,i);return this[n(274)]&&console[n(353)](n(262)+e+"x"+r+" (strategy: "+i+")"),{width:"100%",height:r+"px",aspectRatio:e/r}}catch(t){return console[n(269)](n(351),t),{width:n(347),height:this[n(336)](),aspectRatio:16/9}}}async optimizeContainerForBannerAds(t,e){const n=ft;try{const s=document[n(340)](t.containerId),i=document[n(340)](t.id);if(!s||!i)return;const r=s[n(350)]().width||300,o=await this.calculateOptimalContainerSize(e,r);i[n(313)][n(328)]=o.height,t.optimizedHeight=o[n(328)],t[n(263)]=o[n(263)],this[n(274)]&&console.log("🔧 Banner container optimized for "+e[n(253)]+" ads: "+o[n(328)])}catch(t){console[n(269)](n(291),t)}}[ft(320)](t){const e=ft,n=t[e(314)](t=>t.width/t[e(328)]),s=new Map;n[e(250)](t=>{const n=e,i=(Math[n(332)](10*t)/10)[n(281)]();s.set(i,(s[n(271)](i)||0)+1)});const i=Math[e(357)](...s[e(260)]()),r=t[e(253)];if(i/r>=.7)return"dominant";const o=[16/9,4/3,1,1.5];return n[e(343)](t=>o.some(n=>Math[e(261)](t-n)<.1)).length/r>=.5?e(272):"average"}[ft(334)](t,e,n){const s=ft,i=t[s(314)](t=>t[s(325)]/t[s(328)]);switch(n){case s(308):{const t=new Map;i.forEach(e=>{const n=s,i=Math[n(332)](10*e)/10,r=i[n(281)](),o=t[n(271)](r);o?o[n(282)]++:t[n(266)](r,{ratio:i,count:1})});const n=Array[s(348)](t.values())[s(268)]((t,e)=>e[s(282)]>t[s(282)]?e:t);return Math.round(e/n[s(322)])}case s(272):{const t=[{ratio:16/9,name:s(326)},{ratio:4/3,name:s(352)},{ratio:1,name:s(339)},{ratio:1.5,name:s(284)}],n=i[s(268)]((t,e)=>t+e,0)/i.length,r=t[s(268)]((t,e)=>Math[s(261)](e[s(322)]-n)<Math.abs(t[s(322)]-n)?e:t);return this[s(274)]&&console.log(s(252)+r[s(265)]+s(289)+n.toFixed(2)+")"),Math.round(e/r[s(322)])}case s(251):default:{const t=i.reduce((t,e)=>t+e,0)/i[s(253)];return Math[s(332)](e/t)}}}[ft(283)](t){return new Promise((e,n)=>{const s=gt,i=new Image;i[s(331)]=()=>{e({width:i.naturalWidth,height:i.naturalHeight})},i.onerror=()=>{n(new Error("Failed to load image: "+t))},i.src=t})}applyOptimizedImageStyle(t,e,n){const s=ft,i=e/n;Math[s(261)](i-1)<.1?(t[s(313)][s(264)]="cover",t[s(313)][s(277)]=s(304)):i>1.3?(t[s(313)].objectFit=s(254),t[s(313)].objectPosition=s(304),t[s(313)][s(298)]="#f0f0f0"):i<.7?(t.style.objectFit=s(346),t[s(313)].objectPosition=s(304)):(t[s(313)][s(264)]=s(346),t.style[s(277)]=s(304)),this[s(274)]&&console[s(353)]("🎨 Banner image style applied: objectFit="+t[s(313)][s(264)]+s(324)+i[s(323)](2))}async renderOptimizedBannerImage(t,e,n){const s=ft,i=document.createElement(s(321));i.style.width=s(347),i[s(313)].height="100%",i.style[s(288)]=s(327),i[s(313)][s(249)]="8px",i[s(345)]=e[s(310)]||s(257),t.innerHTML=s(342);try{if(!e[s(309)])throw new Error(s(349));const r=await this[s(283)](e[s(309)]),o=t[s(350)](),a=o[s(325)],c=o[s(328)];this[s(274)]&&(console[s(353)](s(300)+r[s(325)]+"x"+r[s(328)]),console[s(353)](s(259)+a+"x"+c));const d=r.width/r[s(328)],l=a/c;return this[s(317)](i,d,l),i[s(280)]=e[s(309)],t[s(293)]="",t[s(337)](i),tt[s(292)](i,e,n,()=>this[s(344)](),this[s(274)],"Banner"),this[s(274)]&&console[s(353)](s(296)+e[s(256)]),i}catch(r){return console[s(330)](s(301),r),e[s(309)]&&(i.src=e.imageUrl,i[s(313)].objectFit=s(346),i[s(313)][s(277)]=s(304),t.innerHTML="",t[s(337)](i),tt[s(292)](i,e,n,()=>this[s(344)](),this[s(274)],"Banner")),i}}}function vt(t,e){const n=bt();return(vt=function(t,e){return n[t-=370]})(t,e)}!function(){const t=vt,e=bt();for(;;)try{if(785806===-parseInt(t(382))/1*(-parseInt(t(370))/2)+parseInt(t(376))/3*(parseInt(t(372))/4)+-parseInt(t(381))/5+parseInt(t(373))/6+parseInt(t(379))/7+-parseInt(t(375))/8*(-parseInt(t(374))/9)+-parseInt(t(378))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class yt{static createTextAdStyles(t=!1){return vt(377)}static setTextAdContent(t,e){const n=vt,s=e[n(371)]||e[n(380)]||"";t[n(371)]=s}}function bt(){const t=["5317242cINHsO","title","4990845OdIsSg","73007khQTFo","22nrjnyL","textContent","9532Bgjxog","363360UoolXX","9ClsrKH","393176MPoGpA","207ucjoCK","\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 ","528420cdjYHm"];return(bt=function(){return t})()}function wt(){const t=["string","4MNHffa","25157968DrOfyI","entries","addClickEventForSlider","preventDefault",";\n left: ","createElement","\n position: relative;\n width: 100%;\n ","height: auto;","touchend","absolute","createTextTransitionContainer","touchstart","99zVXZUL","className","autoSlideInterval","height","changedTouches","_id","clientX","style","includes","data-adstage-ad-id","42vGOBVW","position","\n ","translateY(0)","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","adstage-ad adstage-","addTouchSupport","abs",";\n ","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ",";\n top: ","zIndex","7804920ePYdil","adstage-fade-slide-container","height: 100%;","263252wbsxdO","addEventListener","minHeight","opacity","data-adstage-slot-id","auto","39056StBwHI","297cscyzn","height: auto; min-height: fit-content;","Text","createSimpleAdElement","appendChild","width","removeChild","transform","fit-content","getBoundingClientRect","3584070wYJIxa","\n position: ","left","1340171frLHrp","hidden","push","adstage-fade-slider-wrapper","cssText","top","trackSlideViewable",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","20px","setAttribute","relative","body","whiteSpace","div","adstage-fade-slide","34388AFsZln","clientY","forEach","createTextAdStyles"];return(wt=function(){return t})()}const kt=xt;function xt(t,e){const n=wt();return(xt=function(t,e){return n[t-=424]})(t,e)}!function(){const t=xt,e=wt();for(;;)try{if(698644===-parseInt(t(427))/1*(parseInt(t(465))/2)+parseInt(t(472))/3*(-parseInt(t(500))/4)+-parseInt(t(482))/5+-parseInt(t(450))/6*(-parseInt(t(485))/7)+parseInt(t(471))/8*(-parseInt(t(440))/9)+-parseInt(t(462))/10+parseInt(t(428))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Et{static[kt(475)](t,e){const n=kt,s=document.createElement(n(498));return s[n(441)]=n(455)+String(t.adType).toLowerCase(),s.setAttribute(n(449),e[n(445)]),s[n(494)](n(469),t.id),s[n(447)][n(489)]=yt[n(425)](!0),yt.setTextAdContent(s,e),s}static[kt(438)](t,e,n,s,i=!1){const r=kt,o=t[r(443)]&&0!==t[r(443)]&&"auto"!==t.height,a=document[r(433)](r(498));a.className=r(488);const c={position:r(495),overflow:r(486),display:"block"};if(!o&&(c.height=r(470),c[r(467)]=r(480)),t[r(477)]&&0!==t.width){let e;e="string"==typeof t[r(477)]?t.width.includes("px")||t.width.includes("%")?t[r(477)]:t[r(477)]+"px":t.width+"px",c[r(477)]=e}if(t.height&&0!==t.height&&t.height!==r(470)&&o){let e;e=typeof t.height===r(426)?t[r(443)][r(448)]("px")||t.height[r(448)]("%")?t[r(443)]:t[r(443)]+"px":t.height+"px",c.height=e}Object[r(429)](c)[r(424)](([t,e])=>{a[r(447)].setProperty(t,e)});const d=document.createElement("div");d[r(441)]=r(463),d.style[r(489)]=r(434)+r(o?464:473)+r(452);let l=null;const u=!t.width||0===t[r(477)],p=!t[r(443)]||0===t.height||void 0===t[r(443)]||t[r(443)]===r(470);if(u||p&&o){if(l=document[r(433)]("div"),l[r(447)][r(489)]=r(454),!u&&t[r(477)]){let e;e=typeof t[r(477)]===r(426)&&(t[r(477)][r(448)]("px")||t.width.includes("%"))?t.width:t[r(477)]+"px",l[r(447)].width=e,l.style[r(497)]="normal"}document.body[r(476)](l);let n=0,s=0;e[r(424)](e=>{const i=r,o=this[i(475)](t,e);l[i(476)](o);const a=o[i(481)]();a.width>n&&(n=a.width),a[i(443)]>s&&(s=a[i(443)]),l.removeChild(o)}),u&&n>0&&(a[r(447)][r(477)]=n+"px"),p&&s>0&&o&&(a[r(447)][r(443)]=s+"px"),document[r(496)][r(478)](l)}const h=[];e[r(424)]((e,n)=>{const a=r,c=document[a(433)](a(498));c[a(441)]=a(499);const l=o?"absolute":a(0===n?495:437);c[a(447)][a(489)]=a(483)+l+a(460)+("absolute"===l?"0":a(470))+a(432)+(l===a(437)?"0":a(470))+";\n width: 100%;\n "+a(o?464:435)+a(459)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":a(493))+a(492)+(0===n?"2":"1")+a(458);const u=this.createSimpleAdElement(t,e);tt[a(430)](u,e,t,s,i,a(474)),c[a(476)](u),d.appendChild(c),h[a(487)](c)});let f=0;const g=e.length,m=1e3*(n?.[r(442)]||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(447)][a(451)]===a(495)&&(c[a(447)][a(451)]=a(437),c[a(447)][a(490)]="0",c.style[a(484)]="0"),d[a(447)].position="relative",d.style[a(490)]="auto",d[a(447)][a(484)]=a(470)),c[a(447)].opacity="0",c[a(447)].transform="translateY(-20px)",c[a(447)].zIndex="1",d[a(447)][a(468)]="1",d.style[a(479)]=a(453),d.style[a(461)]="2",h[a(424)]((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(447)][s(468)]="0",t[s(447)][s(479)]="translateY(20px)",t[s(447)].zIndex="1",!o&&"relative"===t[s(447)].position&&(t[s(447)][s(451)]=s(437),t[s(447)][s(490)]="0",t[s(447)][s(484)]="0"))}),f=n,Z[a(491)](e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a[r(466)]("mouseenter",()=>{clearInterval(v)}),a.addEventListener("mouseleave",()=>{v=setInterval(()=>{I(f+1)},m)}),Et[r(456)](a,I,()=>f,g),a[r(476)](d),a}static[kt(456)](t,e,n,s){const i=kt;let r=0,o=0,a=!1;t.addEventListener(i(439),t=>{const e=i;r=t.touches[0][e(446)],o=t.touches[0][e(501)],a=!0}),t[i(466)]("touchmove",t=>{a&&t[i(431)]()}),t[i(466)](i(436),t=>{const s=i;if(!a)return;a=!1;const c=t[s(444)][0][s(446)],d=t[s(444)][0][s(501)],l=r-c,u=o-d;if(Math[s(457)](l)>Math[s(457)](u)&&Math[s(457)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const St=Tt;function At(){const t=["renderAdElement","2Gqchab","12NpmYZB","vertical","optimizedHeight","10guqBva","display","7213475GgyvAQ"," ads","calculateAdSize","height","114569YrNPKL","length","_id","overflow","innerHTML","aspectRatio","parentElement","✨ Single text ad rendered: ","adstage-ad adstage-text-ad","cssText","addClickEventForRenderer","getElementById","257671HEeaLL","webkitLineClamp","debug","createTextAdStyles","config","webkitBoxOrient","createEventTrackingCallback","adstage-text-content","log","appendChild","createTextTransitionContainer","hidden","100%","className","Container not found: ","width","div","1372292fkALTP","2045376VwIVoS","slideInterval","TEXT","style","containerId","getDefaultHeight","3477976xYrtSa","402lLIoaX","createElement","56543465PBkVxN","setTextAdContent","Text"," with "];return(At=function(){return t})()}function Tt(t,e){const n=At();return(Tt=function(t,e){return n[t-=351]})(t,e)}!function(){const t=Tt,e=At();for(;;)try{if(824399===-parseInt(t(401))/1*(-parseInt(t(379))/2)+-parseInt(t(380))/3*(parseInt(t(364))/4)+-parseInt(t(385))/5+parseInt(t(372))/6*(-parseInt(t(389))/7)+-parseInt(t(371))/8+-parseInt(t(365))/9+parseInt(t(383))/10*(parseInt(t(374))/11))break;e.push(e.shi