@adstage/web-sdk 3.0.7 → 3.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.standalone.js +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/src/core/adstage.ts +19 -4
- package/src/managers/ads/advertisement-event-tracker.ts +10 -0
- package/src/managers/device-info-collector.ts +18 -1
- package/src/modules/ads/ads-module.ts +10 -1
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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=["POPUP","4swZEhB","TABLET","871919JaFqop","BANNER","7045137JXujab","CLICK","INTERSTITIAL","2bqungf","8ZcgMcb","VIDEO","DESKTOP","6140848PyWXbC","29615810VjAYrl","2258661tFSsQR","2232474VdRahE","VIEWABLE","TEXT","2876850quOZWw","NATIVE","MOBILE","WEB"];return(I=function(){return t})()}function v(t,e){var n=I();return(v=function(t,e){return n[t-=492]})(t,e)}function y(t,e){const n=k();return(y=function(t,e){return n[t-=498]})(t,e)}!function(){for(var t=v,e=I();;)try{if(483797===parseInt(t(513))/1*(-parseInt(t(496))/2)+-parseInt(t(502))/3*(parseInt(t(511))/4)+-parseInt(t(506))/5+-parseInt(t(503))/6+-parseInt(t(500))/7*(-parseInt(t(497))/8)+-parseInt(t(493))/9+parseInt(t(501))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(o=r||(r={}))[(a=v)(492)]="BANNER",o[a(510)]=a(510),o[a(495)]="INTERSTITIAL",o[a(507)]=a(507),o[a(498)]="VIDEO",o.TEXT=a(505),(d=c||(c={}))[(l=v)(509)]=l(509),d.MOBILE="MOBILE",p=u||(u={}),h=v,p.VIEWABLE=h(504),p[h(494)]=h(494),g=f||(f={}),m=v,g.DESKTOP=m(499),g.MOBILE=m(508),g[m(512)]=m(512);const b=y;!function(){const t=y,e=k();for(;;)try{if(616119===-parseInt(t(524))/1*(parseInt(t(566))/2)+parseInt(t(542))/3*(parseInt(t(509))/4)+-parseInt(t(549))/5+parseInt(t(541))/6+-parseInt(t(561))/7*(parseInt(t(507))/8)+-parseInt(t(558))/9*(-parseInt(t(528))/10)+parseInt(t(552))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class w{static[b(523)](){const t=b;return typeof window!==t(551)&&typeof document!==t(551)}static[b(562)](){return!this[b(523)]()}static[b(539)](){return this.isBrowser()&&void 0!==document.readyState}static[b(521)](t){const e=b;return this[e(539)]()?document[e(543)](t):null}static safeQuerySelector(t){return this.canUseDOM()?document.querySelector(t):null}static[b(498)](t){const e=b;return this[e(539)]()?Array[e(556)](document[e(546)](t)):[]}static[b(520)](t){const e=b;return this[e(539)]()?document[e(540)](t):null}static[b(531)](t,e,n,s){const i=b;this[i(539)]()&&t&&t[i(522)](e,n,s)}static[b(513)](t,e,n,s){const i=b;this[i(539)]()&&t&&t[i(505)](e,n,s)}static[b(537)](t,e){return this[b(523)]()?window[t]??e:e}static getDocumentProperty(t,e){return this[b(539)]()?document[t]??e:e}static[b(567)](t,e,n){const s=b;return this[s(523)]()?window[s(571)](t,e,n):null}static[b(569)](t){const e=b;return this[e(523)]()&&t?window[e(557)](t):null}static[b(518)](){const t=b;return!!this[t(539)]()&&"loading"!==document[t(525)]}static[b(559)](){return new Promise(t=>{const e=y;this[e(539)]()?this[e(518)]()?t():this.safeAddEventListener(document,e(530),()=>t()):t()})}static safeApplyStyles(t,e){const n=b;this.canUseDOM()&&t&&Object[n(536)](e)[n(529)](([e,s])=>{t[n(574)].setProperty(e,s)})}static[b(573)](t,e){const n=b;this.canUseDOM()&&t&&t[n(504)][n(508)](e)}static[b(545)](t,e){const n=b;this[n(539)]()&&t&&t[n(504)].remove(e)}static[b(538)](t,e){const n=b;this[n(539)]()&&t&&(t[n(511)]=e)}static[b(534)](t,e){const n=b;this[n(539)]()&&t&&(t[n(515)]=e)}static[b(499)](t,e){const n=b;this[n(539)]()&&t&&e&&t[n(575)](e)}static[b(510)](t,e){const n=b;this[n(539)]()&&t&&e&&t[n(554)](e)}static[b(516)](){const t=b;return{url:this[t(537)](t(514),{href:""}).href,title:this[t(563)]("title",""),referrer:this[t(563)]("referrer","")}}static getViewportInfo(){const t=b;return{width:this.getWindowProperty("innerWidth",0),height:this[t(537)](t(501),0),pixelRatio:this.getWindowProperty(t(526),1)}}static[b(503)](){const t=b;return{scrollTop:this.canUseDOM()?window[t(544)]||document[t(570)][t(577)]:0,scrollLeft:this.getWindowProperty(t(572),0)}}static async[b(555)](t,e={}){const n=b,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(539)]())throw new Error(n(532));const o=document[n(543)](t);return o?(r&&console[n(568)](n(512)+t),o):(r&&console[n(568)]("⏳ 컨테이너 대기 시작: "+t+n(502)+s+n(564)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(533)](s/i),l=()=>{const n=a;c++;const u=document[n(543)](t);if(u)return r&&console[n(568)]("✅ 컨테이너 발견: "+t+" ("+c+"번째 시도, "+c*i+n(519)),void e(u);if(c>=d){const e=n(576)+t+n(535)+t+n(550)+s+n(565)+c+n(547);return r&&console[n(527)](e),void o(new Error(e))}r&&c%10==0&&console[n(568)](n(517)+t+" ("+c+"/"+d+")");const p=Math[n(553)](i*Math[n(548)](1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async[b(500)](t,e={}){const n=b,s=t[n(560)](t=>this.waitForElement(t,e));return Promise[n(506)](s)}}function k(){const t=["devicePixelRatio","error","10hwjrOg","forEach","DOMContentLoaded","safeAddEventListener","DOM을 사용할 수 없는 환경입니다.","ceil","safeSetInnerHTML",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"entries","getWindowProperty","safeSetTextContent","canUseDOM","createElement","2384064gZKaQa","22485zzJwdp","getElementById","pageYOffset","safeRemoveClass","querySelectorAll","번 시도)","pow","4323380DbWkOA",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"undefined","18059074GjzyaA","min","removeChild","waitForElement","from","getComputedStyle","2157120PYNdrJ","waitForDOM","map","181223xCVqnp","isSSR","getDocumentProperty","ms)","ms (","205982RatVOg","safeWindowOpen","log","safeGetComputedStyle","documentElement","open","pageXOffset","safeAddClass","style","appendChild",'❌ 컨테이너를 찾을 수 없습니다: "',"scrollTop","safeQuerySelectorAll","safeAppendChild","waitForElements","innerHeight"," (최대 ","getScrollInfo","classList","removeEventListener","all","352ucnlBN","add","292rzrliK","safeRemoveChild","textContent","✅ 컨테이너 즉시 발견: ","safeRemoveEventListener","location","innerHTML","getPageInfo","⏳ 컨테이너 대기 중: ","isDOMReady","ms 경과)","safeCreateElement","safeGetElementById","addEventListener","isBrowser","2LrSDnK","readyState"];return(k=function(){return t})()}const x=E;function E(t,e){const n=T();return(E=function(t,e){return n[t-=202]})(t,e)}!function(){const t=E,e=T();for(;;)try{if(667173===parseInt(t(206))/1*(-parseInt(t(210))/2)+parseInt(t(204))/3+parseInt(t(211))/4+-parseInt(t(216))/5+-parseInt(t(203))/6*(parseInt(t(213))/7)+parseInt(t(205))/8*(parseInt(t(212))/9)+parseInt(t(215))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const S=x(208);function A(){return S}function T(){const t=["2533190NdMXDo"," AdStageSDK/","5253744cayIwv","2850507aflYHg","1457880jLbRQu","2YfkAyK","undefined",'"3.0.7"',"userAgent","518920zCQGoC","267188PIaPsz","27jDEFQl","7GHqQRM","AdStageSDK/","10046840KRWQik"];return(T=function(){return t})()}function C(){const t=["getPlatform","adstage_session_id","toString","isMobile","generateDeviceId","generateSessionId","substr","android","getScrollInfo","getItem","ssr_device_","web","DateTimeFormat","ssr_session_","adstage_device_id","33894KIBnpI","ios","toLowerCase","1.0.0","desktop","userAgent","66829SXiTQR","session_",",y:","pixelRatio","test","1799707mqscZE","20kYbqmL","1941745sFJJMp","SSR","getSlotPosition","random","language","isBrowser","resolvedOptions","width","timeZone","unknown","left","913882vHLnXv","effectiveType","platform","16XRytOz","12HvjxGp","now","getViewportInfo","round","381294FXInho","setItem","4717899azwtqb","collectDeviceInfo","colorDepth","height","top","connection"];return(C=function(){return t})()}function D(t,e){const n=C();return(D=function(t,e){return n[t-=240]})(t,e)}const R=D;!function(){const t=D,e=C();for(;;)try{if(263562===-parseInt(t(284))/1+-parseInt(t(247))/2+-parseInt(t(255))/3*(parseInt(t(251))/4)+-parseInt(t(291))/5+-parseInt(t(278))/6+-parseInt(t(289))/7*(-parseInt(t(250))/8)+parseInt(t(257))/9*(parseInt(t(290))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class z{static generateDeviceId(){const t=D;if(!w[t(241)]())return t(273)+Date[t(252)]();const e=localStorage.getItem(t(277));if(e)return e;const n="device_"+Math[t(294)]()[t(265)](36)[t(269)](2,9)+"_"+Date[t(252)]();return localStorage[t(256)](t(277),n),n}static[R(268)](){const t=R;if(!w.isBrowser())return t(276)+Date[t(252)]();const e=sessionStorage[t(272)](t(264));if(e)return e;const n=t(285)+Math[t(294)]()[t(265)](36)[t(269)](2,9)+"_"+Date.now();return sessionStorage.setItem("adstage_session_id",n),n}static[R(266)](){const t=R;return!!w[t(241)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(288)](navigator[t(283)])}static[R(263)](){const t=R;if(!w[t(241)]())return t(274);const e=navigator[t(283)][t(280)]();return/iphone|ipad|ipod/[t(288)](e)?t(279):/android/[t(288)](e)?t(270):z.isMobile()?t(274):t(282)}static[R(258)](){const t=R,e=w[t(253)]();return{deviceId:z[t(267)](),sessionId:z[t(268)](),osVersion:w[t(241)]()?navigator.platform:t(292),deviceModel:w[t(241)]()?navigator[t(249)]:t(292),appVersion:t(281),sdkVersion:A(),language:w[t(241)]()&&navigator[t(240)]||"ko",country:"KR",ipAddress:"",userAgent:w[t(241)]()?navigator.userAgent:t(292),timezone:w[t(241)]()?Intl[t(275)]()[t(242)]()[t(244)]:"UTC",viewportWidth:e[t(243)],viewportHeight:e[t(260)],screenWidth:w.isBrowser()?screen[t(243)]:0,screenHeight:w[t(241)]()?screen[t(260)]:0,colorDepth:w.isBrowser()?screen[t(259)]:24,pixelRatio:e[t(287)],connectionType:w[t(241)]()?navigator[t(262)]?.[t(248)]||"unknown":t(245),platform:z.getPlatform()}}static[R(293)](t){const e=R,n=w.safeGetElementById(t);if(!n)return e(245);const s=n.getBoundingClientRect(),i=w[e(271)]();return"x:"+Math[e(254)](s[e(246)])+e(286)+Math.round(s[e(261)]+i.scrollTop)}}const B=M;function M(t,e){const n=L();return(M=function(t,e){return n[t-=427]})(t,e)}function L(){const t=["1805790JDWyfK","239880IYbqKO","24OiPGcV","1931070DHURGc","createForEvents","11RIZtQV","userAgent","239754xQgrSP","2qxthhz","2206632vJxuht","create","API key is required","957933jlgRwJ","823648oxWAHx","14nedmQR","9CMczzB","undefined","User-Agent"];return(L=function(){return t})()}!function(){const t=M,e=L();for(;;)try{if(163651===parseInt(t(428))/1+parseInt(t(429))/2*(-parseInt(t(433))/3)+-parseInt(t(441))/4*(parseInt(t(440))/5)+parseInt(t(442))/6+-parseInt(t(435))/7*(-parseInt(t(434))/8)+parseInt(t(436))/9*(-parseInt(t(439))/10)+parseInt(t(444))/11*(parseInt(t(430))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{static[B(431)](t,e){const n=B;if(!t)throw new Error(n(432));const s={"x-api-key":t,"Content-Type":e?.contentType||"application/json"};return typeof navigator!==n(437)&&(s[n(438)]=e?.[n(427)]||navigator[n(427)]),s}static[B(443)](t,e){const n=B,s=U.create(t);return e?.userAgent&&(s[n(438)]=e[n(427)]),s}}const P=N;function N(t,e){const n=O();return(N=function(t,e){return n[t-=388]})(t,e)}!function(){const t=N,e=O();for(;;)try{if(190495===-parseInt(t(414))/1+parseInt(t(428))/2+-parseInt(t(398))/3*(parseInt(t(413))/4)+parseInt(t(424))/5+parseInt(t(392))/6*(-parseInt(t(421))/7)+parseInt(t(410))/8+parseInt(t(434))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{constructor(t,e,n,s){const i=N;this[i(427)]=t,this[i(437)]=e,this.debug=n,this[i(393)]=s}async[P(407)](t,e,n){const s=P;try{this[s(425)]&&console[s(404)](s(415)+n+s(396)+t+s(399)+e);const i=this[s(393)].get(e);if(!i)return void(this[s(425)]&&console[s(390)](s(400)+e+s(409)));const r=z.collectDeviceInfo(),o={adType:i[s(403)],platform:r.platform,deviceId:r[s(402)],deviceInfo:r,pageUrl:w[s(405)]()[s(394)],pageTitle:w.getPageInfo().title,referrer:w[s(405)]()[s(433)],slotId:e,slotPosition:z[s(423)](i.containerId),slotWidth:V.parseNumericValue(i.width),slotHeight:V.parseNumericValue(i[s(389)]),sessionId:r[s(408)],pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:A(),timestamp:Date[s(411)]()},...n===u.VIEWABLE&&{isViewable:!0,iabCompliant:!0}},a=this[s(427)]+"/advertisements/events/"+t+"/"+n,c=U[s(435)](this[s(437)],o);this[s(425)]&&(console[s(404)](s(406)+n+s(391)+t,{url:a,headers:c,eventData:o}),console[s(404)]("🌐 Full API call details:",{method:s(422),url:a,hasApiKey:!!this[s(437)],bodySize:JSON[s(416)](o)[s(412)]}));const d=await fetch(a,{method:s(422),headers:c,body:JSON.stringify(o)});if(this.debug&&console[s(404)]("📡 API Response Status: "+d.status+" "+d[s(397)],{url:a,ok:d.ok}),!d.ok){const t=await d[s(420)]();throw new Error(s(431)+d.status+" "+d[s(397)]+s(388)+t)}this[s(425)]&&console[s(404)](s(426)+n+s(391)+t)}catch(i){console[s(417)](s(418),i),console[s(417)](s(395),{baseUrl:this.baseUrl,apiKey:this[s(437)]?this[s(437)].substring(0,8)+s(430):s(419),url:this[s(427)]+s(432)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[P(429)](t){const e=P;if(typeof t===e(436))return t;if(typeof t===e(401)){const e=parseFloat(t.replace(/px$/,""));return isNaN(e)?0:e}return 0}}function O(){const t=["deviceId","adType","log","getPageInfo","🚀 Sending advertisement event: ","trackAdvertisementEvent","sessionId",". Skipping event tracking to prevent incorrect adType.","572008YgUkmd","now","length","656COQaWC","21787VTVNpR","🚀 AdvertisementEventTracker: Processing ","stringify","error","❌ Failed to track advertisement event:","NOT_SET","text","563423xVLuYx","POST","getSlotPosition","535755QDghXJ","debug","✅ Successfully tracked advertisement event: ","baseUrl","633114KNDaGY","parseNumericValue","...","API request failed: ","/advertisements/events/","referrer","843084RkAtkY","createForEvents","number","apiKey"," - ","height","warn"," for ad ","18mPKwle","slots","url","🔍 Debug info:"," event for ad ","statusText","2472maXwFP"," in slot ","⚠️ Slot not found for slotId: ","string"];return(O=function(){return t})()}function F(){var t=["handleIntersection","IntersectionObserver not supported, viewability tracking disabled","5730546WbEJkN","destroy","visibilityState","isViewableTriggered","2223824YaJLwD","observe","1874020gcAHIc","intersectionRatio","observer","44jbImiH","hidden","24cUhDYC","0px","element","2754284hahFyj","onViewableCallback","2zSkgyI","36bGZjHF","visible","7xCGrgH","IntersectionObserver","1001079TayUbY","1348izjBva","isDocumentVisible","15290DGEyNC","initIntersectionObserver","disconnect","warn","1102103FMClik"];return(F=function(){return t})()}var _=j;function j(t,e){var n=F();return(j=function(t,e){return n[t-=238]})(t,e)}!function(){for(var t=j,e=F();;)try{if(611273===-parseInt(t(249))/1+parseInt(t(268))/2*(-parseInt(t(242))/3)+-parseInt(t(243))/4*(-parseInt(t(245))/5)+parseInt(t(252))/6*(parseInt(t(240))/7)+parseInt(t(256))/8*(-parseInt(t(238))/9)+-parseInt(t(258))/10*(-parseInt(t(261))/11)+-parseInt(t(263))/12*(-parseInt(t(266))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class H{constructor(t,e){var n=j;this[n(260)]=null,this.isViewableTriggered=!1,this[n(265)]=t,this[n(267)]=e,this[n(246)]()}initIntersectionObserver(){var t=j;t(241)in window?(this[t(260)]=new IntersectionObserver(e=>this[t(250)](e),{threshold:.5,rootMargin:t(264)}),this.observer[t(257)](this[t(265)])):console[t(248)](t(251))}[_(250)](t){t.forEach(t=>{var e=j;t[e(259)]>=.5&&this[e(244)]()&&!this.isViewableTriggered&&(this[e(255)]=!0,this.onViewableCallback&&this.onViewableCallback())})}[_(244)](){var t=_;return!document[t(262)]&&document[t(254)]===t(239)}[_(253)](){var t=_;this.observer&&(this[t(260)][t(247)](),this.observer=null)}}const K=X;function W(){const t=["setBaseUrl","11mGaWgT","advertisements","/advertisements/events","1vNHkaS","908lgQOLm","11000388lzHiwG","/advertisements/list","18uWggqL","1348826bycQQy","baseUrl","list","/events/track","2536yhTBoO","3582ebUvjZ","/advertisements","custom","4908710aHkpyX","https://api.adstage.app","5037KjvjGJ","647080wBVpQV","track","production","startsWith","detail","1203412SWxErg","https://beta-api.adstage.app","events"];return(W=function(){return t})()}function X(t,e){const n=W();return(X=function(t,e){return n[t-=229]})(t,e)}!function(){const t=X,e=W();for(;;)try{if(342960===parseInt(t(249))/1*(-parseInt(t(254))/2)+-parseInt(t(236))/3*(-parseInt(t(250))/4)+-parseInt(t(237))/5+-parseInt(t(253))/6*(parseInt(t(242))/7)+parseInt(t(230))/8*(-parseInt(t(231))/9)+-parseInt(t(234))/10*(-parseInt(t(246))/11)+parseInt(t(251))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Y={production:K(235),beta:K(243)},q={advertisements:{list:K(252),detail:K(232),events:K(248)},events:{track:K(229)}};class J{constructor(t){const e=K;this[e(247)]={list:()=>""+this.baseUrl+q[e(247)][e(256)],detail:t=>""+this[e(255)]+q[e(247)][e(241)]+"/"+t,events:(t,n)=>""+this[e(255)]+q[e(247)][e(244)]+"/"+t+"/"+n},this[e(244)]={track:()=>""+this[e(255)]+q[e(244)][e(238)]},this[e(255)]=t||Y[e(239)]}[K(245)](t){this[K(255)]=t}getBaseUrl(){return this[K(255)]}[K(233)](t){const e=K;return""+this[e(255)]+(t[e(240)]("/")?t:"/"+t)}}const Z=new J;var Q=G;function G(t,e){var n=$();return(G=function(t,e){return n[t-=493]})(t,e)}function $(){var t=["trackSlideViewable"," (index: 0) in slot: ","1126741BxsCvi","trackInitialSlideViewable","877956quwXIp","_id","2KnqjvX","log"," (index: ","12TNDavk","555852LPrBjh","475047MrmYAJ","1219535rBHnIs","5726313RcemwQ","VIEWABLE",") in slot: ","5460136pKRaqg"];return($=function(){return t})()}!function(){for(var t=G,e=$();;)try{if(623763===-parseInt(t(501))/1+parseInt(t(497))/2*(parseInt(t(502))/3)+-parseInt(t(495))/4+parseInt(t(503))/5+-parseInt(t(500))/6*(parseInt(t(493))/7)+parseInt(t(507))/8+parseInt(t(504))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[Q(508)](t,e,n,s,i=!1){var r=Q;i&&console[r(498)]("🎯 Triggering VIEWABLE event for slide change: ad "+t[r(496)]+r(499)+n+r(506)+e.id),s(t[r(496)],e.id,u[r(505)])}static[Q(494)](t,e,n,s=!1){var i=Q;s&&console[i(498)]("🎯 Triggering initial VIEWABLE event: ad "+t[i(496)]+i(509)+e.id),n(t[i(496)],e.id,u[i(505)])}}const et=nt;function nt(t,e){const n=it();return(nt=function(t,e){return n[t-=389]})(t,e)}!function(){const t=nt,e=it();for(;;)try{if(907281===-parseInt(t(396))/1*(-parseInt(t(412))/2)+-parseInt(t(414))/3+-parseInt(t(391))/4*(-parseInt(t(399))/5)+parseInt(t(420))/6+-parseInt(t(389))/7+-parseInt(t(408))/8*(parseInt(t(397))/9)+-parseInt(t(401))/10*(-parseInt(t(410))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class st{static[et(416)](t,e,n,s,i=!1,r){const o=et;e[o(398)]&&(t[o(417)][o(400)]=o(415),t[o(405)](o(413),t=>{const a=o;if(t[a(392)](),t[a(403)](),s&&s(e[a(409)],n.id,u[a(393)]),window.open(e.linkUrl,a(404)),i){const t=r||String(n[a(395)]).toLowerCase();console[a(394)](a(407)+t+a(411)+e[a(409)]+a(402)+e[a(398)])}}))}static[et(419)](t,e,n,s,i=!1,r){const o=et;e.linkUrl&&(t.style[o(400)]="pointer",t[o(405)](o(413),t=>{const a=o;t[a(392)](),t[a(403)]();if(s()(e[a(409)],n.id,u[a(393)]),window.open(e.linkUrl,"_blank"),i){const t=r||String(n.adType)[a(390)]();console.log("🔗 "+t+" ad clicked: "+e[a(409)]+a(402)+e.linkUrl)}}))}static[et(418)](t,e,n,s,i=!1,r){this.addClickEvent(t,e,n,s,i,r)}static isClickable(t){return Boolean(t[et(398)])}static[et(406)](t,e,n,s,i=!1,r){t.forEach((t,o)=>{const a=nt,c=e[o];c&&this[a(416)](t,c,n,s,i,r)})}}function it(){const t=["addClickEventForSlider","addClickEventForRenderer","7076520iejlCO","7922845OuZdVt","toLowerCase","4JZlXbN","preventDefault","CLICK","log","adType","7583RFSMLy","3080970PZqDZd","linkUrl","3675365UNSgKG","cursor","30UkRVtg"," -> ","stopPropagation","_blank","addEventListener","addClickEventsBatch","🔗 ","8iFrpqp","_id","1952357XCGUPW"," ad clicked: ","234uzoihR","click","2858157xxoIXl","pointer","addClickEvent","style"];return(it=function(){return t})()}const rt=at;function ot(){const t=["querySelectorAll","auto","active","width","#000","5889896jEDnbW","100%","every","adstage-slide","#999999","textContent","height","touches","padding","string","length","adstage-dots","background","opacity","className",".adstage-dot","none","img","color","transition","contains","Text Ad","toLowerCase","inline-block","touchend","1px solid #666"," Ad","block","backgroundColor","createElement","#f9f9f9","VIDEO","5957280yhoSjT","BANNER","mouseleave","div","#666666","data-adstage-slot-id","50px","12xEwzEr","forEach","hidden","#cccccc","adType","src","60GOmzCF","border","classList","Video Ad","clientX","style","mouseenter","getBoundingClientRect","30tPmArZ","100px","display","imageUrl","setProperty","0.9","transparent","14px","2866023quFaWW","0.7","61986NKTMIj","fontSize","click","cssText","objectFit","8px","TEXT","470565ZNIyxm","includes","addEventListener","transform","1px dashed #ccc","trackSlideViewable","videoUrl","children","preventDefault","addTouchSupport","center","appendChild","\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 ","button","adstage-slider-wrapper","cover","entries","2676764SmJsQl","removeChild","normal","createSliderContainer","setAttribute","white","overflow","createMinimalDotIndicator","touchstart","143722NDZPoJ","borderColor","translateX(-","createSimpleAdElement"];return(ot=function(){return t})()}function at(t,e){const n=ot();return(at=function(t,e){return n[t-=208]})(t,e)}!function(){const t=at,e=ot();for(;;)try{if(550855===parseInt(t(289))/1+-parseInt(t(238))/2*(-parseInt(t(256))/3)+parseInt(t(280))/4+parseInt(t(263))/5*(parseInt(t(232))/6)+-parseInt(t(225))/7+parseInt(t(298))/8+parseInt(t(254))/9*(-parseInt(t(246))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[rt(292)](t,e){const n=rt,s=document.createElement("div");switch(s[n(312)]="adstage-ad adstage-"+String(t.adType).toLowerCase(),s.setAttribute("data-adstage-ad-id",e._id),s[n(284)](n(230),t.id),s[n(243)][n(248)]=n(220),s.style[n(296)]=n(299),s[n(243)][n(304)]=n(294),t[n(236)]){case r[n(226)]:if(e[n(249)]){const t=document.createElement(n(210));t[n(237)]=e.imageUrl,t[n(243)].width=n(299),t[n(243)].height="auto",t[n(243)][n(260)]=n(278),s[n(274)](t)}else s.style[n(304)]=n(247),s.style.backgroundColor="#f0f0f0",s[n(243)][n(239)]="1px dashed #ccc",s[n(303)]="Banner Ad";break;case r[n(224)]:if(e.videoUrl){const t=document.createElement("video");t[n(237)]=e[n(269)],t[n(243)].width=n(299),t.style[n(304)]=n(294),s[n(274)](t)}else s[n(243)][n(304)]="200px",s[n(243)].backgroundColor=n(297),s.style[n(239)]=n(218),s[n(303)]=n(241),s[n(243)][n(211)]=n(285);break;case r[n(262)]:if(e[n(303)]){const t=document[n(222)](n(228));t[n(303)]=e.textContent||"",t[n(243)][n(306)]=n(261),t[n(243)][n(257)]=n(253),s[n(274)](t)}else s[n(243)].height=n(231),s[n(243)][n(306)]=n(261),s[n(303)]=n(214);break;default:s[n(243)].height=n(247),s.style.border=n(267),s.style[n(221)]=n(223),s[n(303)]=t[n(236)]+n(219)}return s}static[rt(283)](t,e,n,s,i=!1){const o=rt,a=document[o(222)](o(228));a.className=o(277);const c={position:"relative",overflow:o(234)};if(t[o(296)]&&0!==t[o(296)]){let e;e=typeof t.width===o(307)?t.width.includes("px")||t.width[o(264)]("%")?t[o(296)]:t.width+"px":t[o(296)]+"px",c[o(296)]=e,c.display="inline-block"}else c[o(248)]=o(216);if(t[o(304)]&&0!==t[o(304)]){const e="string"==typeof t[o(304)]?t[o(304)]:t[o(304)]+"px";c[o(304)]=e}Object[o(279)](c)[o(233)](([t,e])=>{const n=o;a.style[n(250)](t,e)});const d=!t[o(296)]||0===t.width,l=!t.height||0===t.height;if(d||l){const n=document[o(222)](o(228));if(n[o(243)].cssText="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t[o(296)]){let e;e=typeof t.width===o(307)&&(t[o(296)][o(264)]("px")||t[o(296)].includes("%"))?t[o(296)]:t[o(296)]+"px",n[o(243)][o(296)]=e,n[o(243)].whiteSpace=o(282)}document.body.appendChild(n);let s=0,i=0;e[o(233)](e=>{const r=o,a=this[r(292)](t,e);n[r(274)](a);const c=a.getBoundingClientRect();c[r(296)]>s&&(s=c[r(296)]),c.height>i&&(i=c[r(304)]),n[r(281)](a)}),d&&s>0&&(a[o(243)][o(296)]=s+"px",c[o(296)]=s+"px"),l&&i>0&&(a.style[o(304)]=i+"px",c[o(304)]=i+"px"),document.body[o(281)](n)}const u=[...e,e[0]],p=document[o(222)](o(228));p[o(312)]="adstage-slide-container";const h={display:"flex",transition:"transform 0.4s ease-out",width:100*u[o(308)]+"%"};t[o(304)]&&0!==t[o(304)]&&(h.height=o(299)),Object.entries(h)[o(233)](([t,e])=>{const n=o;p[n(243)][n(250)](t,e)}),u[o(233)]((e,n)=>{const r=o,a=document[r(222)](r(228));a[r(312)]=r(301);const c={width:100/u[r(308)]+"%","flex-shrink":"0",display:"flex","align-items":r(273),"justify-content":r(273)};t[r(304)]&&0!==t[r(304)]&&(c[r(304)]="100%"),Object[r(279)](c).forEach(([t,e])=>{a[r(243)].setProperty(t,e)});const d=this[r(292)](t,e);st.addClickEventForSlider(d,e,t,s,i,String(t[r(236)])[r(215)]()),a[r(274)](d),p[r(274)](a)});const f=e[o(300)](t=>t[o(236)]===r.TEXT)?null:this.createMinimalDotIndicator(e.length);let g=0;const m=e[o(308)],I=1e3*(n?.autoSlideInterval||3),v=(n,r=!1)=>{const a=o;g=n,r?p.style.transition=a(209):p[a(243)][a(212)]="transform 0.4s ease-out",p[a(243)][a(266)]=a(291)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(293)](a(208))[a(233)]((t,e)=>{const n=a,s=t;e===c?(s[n(240)].add(n(295)),s[n(243)][n(310)]="#666666",s[n(243)][n(290)]=n(229),s[n(243)].opacity="1"):(s[n(240)].remove(n(295)),s[n(243)][n(310)]=n(252),s[n(243)][n(290)]=n(235),s.style[n(311)]=n(255))})}tt[a(268)](e[c],t,c,s,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[o(293)](".adstage-dot")[o(233)]((t,e)=>{const n=o;t.addEventListener(n(258),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(265)](o(244),()=>{clearInterval(b)}),a[o(265)]("mouseleave",()=>{b=setInterval(()=>{v(g+1),y()},I)}),this.addTouchSupport(p,v,()=>g,m,y),a[o(274)](p),f&&a[o(274)](f),v(0),(!t[o(296)]||0===t[o(296)])&&setTimeout(()=>{const e=o,n=p.children[0];if(n){const s=n[e(270)][0];if(s){const n=s[e(245)]();a[e(243)][e(296)]=n[e(296)]+"px",(!t.height||0===t[e(304)])&&(a[e(243)][e(304)]=n[e(304)]+"px"),a.style[e(286)]="hidden"}}},10),a}static[rt(287)](t){const e=rt,n=document[e(222)]("div");n[e(312)]=e(309),n[e(243)][e(259)]=e(275);for(let s=0;s<t;s++){const t=document[e(222)](e(276));t[e(312)]="adstage-dot",t[e(243)][e(259)]="\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 ",t[e(265)]("mouseenter",()=>{const n=e;!t[n(240)][n(213)]("active")&&(t.style[n(290)]=n(302),t.style[n(311)]=n(251))}),t[e(265)](e(227),()=>{const n=e;!t[n(240)][n(213)](n(295))&&(t[n(243)][n(290)]="#cccccc",t[n(243)].opacity="0.7")}),n[e(274)](t)}return n}static[rt(272)](t,e,n,s,i){const r=rt;let o=0,a=!1;t[r(265)](r(288),t=>{const e=r;o=t[e(305)][0][e(242)],a=!0}),t[r(265)]("touchmove",t=>{a&&t[r(271)]()}),t.addEventListener(r(217),t=>{if(!a)return;a=!1;const r=t.changedTouches[0].clientX,c=o-r;if(Math.abs(c)>50){const t=n();if(c>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}const dt=ut;!function(){const t=ut,e=pt();for(;;)try{if(845153===parseInt(t(454))/1+parseInt(t(451))/2+parseInt(t(442))/3*(parseInt(t(458))/4)+-parseInt(t(445))/5*(-parseInt(t(444))/6)+parseInt(t(457))/7+parseInt(t(448))/8+-parseInt(t(443))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class lt{static[dt(450)](t,e,n=!1){const s=dt,i=t+"_"+e;return lt[s(453)][s(449)](i)?(n&&console[s(446)](s(455)+t+s(452)+e),!0):(lt[s(453)][s(456)](i),n&&console[s(446)]("✅ New viewable recorded for ad "+t+s(452)+e),!1)}static clear(){const t=dt;lt[t(453)][t(459)]()}static[dt(447)](t,e){const n=t+"_"+e;lt.viewableTracker.delete(n)}}function ut(t,e){const n=pt();return(ut=function(t,e){return n[t-=442]})(t,e)}function pt(){const t=["4tCPRTx","clear","2217246VjrBWi","19498959uVATpk","3244446POBLMz","5RImCty","log","clearAdViewable","4019592fokBKD","has","isDuplicateViewable","1893890Upqryo"," in slot ","viewableTracker","264755IvkmXh","Duplicate viewable blocked for ad ","add","124124ZDRMxJ"];return(pt=function(){return t})()}lt.viewableTracker=new Set;const ht=ft;function ft(t,e){const n=mt();return(ft=function(t,e){return n[t-=188]})(t,e)}!function(){const t=ft,e=mt();for(;;)try{if(222592===parseInt(t(244))/1+-parseInt(t(296))/2+-parseInt(t(231))/3*(parseInt(t(257))/4)+-parseInt(t(289))/5+parseInt(t(205))/6+parseInt(t(198))/7+parseInt(t(230))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt{constructor(t,e=!1,n){const s=ft;this.adType=t,this[s(272)]=e,this[s(284)]=n||null}[ht(246)](t,e,n,s){const i=ht,r=document[i(196)](i(247));r.id=e,r.className=i(261)+String(this.adType).toLowerCase(),r.setAttribute(i(211),"true"),r[i(252)](i(267),String(this[i(233)])),r[i(252)]("data-adstage-slot",e);const{width:o,height:a}=this[i(238)](t,n,s)||{width:i(226),height:this.getDefaultHeight()};r.style[i(229)]=o,r.style.height=a;const c=s?.[i(192)]||n.placeholderMode||"invisible";this[i(219)](r,c),t[i(274)](r),this[i(272)]&&console[i(276)](i(248)+this[i(233)]+i(286)+e+" ("+o+i(295)+a+") - Mode: "+c)}[ht(219)](t,e){const n=ht;switch(e){case"invisible":t.style[n(197)]=n(237),t.style[n(189)]=n(281),t[n(249)].opacity="0",t.innerHTML="";break;case n(237):t.style[n(197)]=n(237),t[n(249)].border="none",t[n(249)][n(259)]=n(225),t[n(251)]="";break;case"subtle":t[n(249)][n(197)]=n(291),t.style.border=n(281),t[n(249)].borderRadius=n(204),t.style.display=n(292),t[n(249)].alignItems="center",t[n(249)].justifyContent="center",t[n(251)]=n(224);break;case n(221):t.style[n(197)]=n(280),t.style.border="1px solid rgba(0, 0, 0, 0.08)",t[n(249)][n(236)]=n(298),t.style[n(259)]=n(292),t.style.alignItems=n(200),t[n(249)][n(227)]="center",t[n(251)]='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case"debug":t[n(249)][n(189)]=n(294),t[n(249)].display=n(292),t.style[n(208)]=n(200),t[n(249)].justifyContent="center",t[n(249)].backgroundColor=n(258),t[n(249)][n(213)]=n(268),t[n(249)][n(264)]=n(269),t[n(249)][n(228)]=n(218),t[n(251)]=n(206)+this[n(233)]+n(243);break;default:t.style.border="1px dashed #ccc",t[n(249)][n(259)]="flex",t.style.alignItems=n(200),t.style[n(227)]=n(200),t[n(249)].backgroundColor=n(271),t.style[n(213)]=n(270),t.innerHTML="<span>Loading "+this.adType+n(243)}}[ht(238)](t,e,n){const s=ht,i=e.width,r=e.height;let o,a;if(o=typeof i===s(288)?i+"px":typeof i===s(299)?i:s(226),typeof r===s(288))a=r+"px";else if(typeof r===s(299)&&r!==s(226)&&"auto"!==r)a=r;else{const e=this[s(278)](t);e>0?(a="100%",(n?.[s(272)]||this[s(272)])&&console[s(276)](s(234)+e+"px)")):(a=this[s(195)](),(n?.[s(272)]||this[s(272)])&&console[s(276)]("📏 Using default height "+a+" for "+this.adType))}return{width:o,height:a}}getContainerHeight(t){const e=ht,n=window.getComputedStyle(t),s=parseFloat(n[e(215)]);if(!s||0===s){const s=parseFloat(n[e(207)]);if(s>0)return s;if(t[e(249)][e(215)]&&"auto"!==t[e(249)][e(215)]){const e=parseFloat(t.style.height);if(e>0)return e}const i=t[e(202)]("height");if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}[ht(256)](){return async(t,e,n)=>{const s=ft;if(n===u[s(199)]){if(lt[s(220)](t,e,this.debug))return void(this[s(272)]&&console[s(276)](s(194)+t+s(241)+e));this[s(272)]&&console[s(276)](s(287)+t+" in slot "+e)}if(this[s(284)])try{this[s(272)]&&console[s(276)](s(188)+n+s(245)+t+s(241)+e),await this[s(284)][s(193)](t,e,n),this[s(272)]&&console[s(276)](s(265)+n+s(245)+t+s(241)+e)}catch(e){this[s(272)]&&console.error(s(254)+n+s(277)+t+":",e)}else this[s(272)]&&console.warn(s(282)+n+s(279))}}[ht(255)](t){const e=ht,n=document[e(216)](t.id);if(n){const s=[...[n[e(212)]('[data-adstage-container="true"]'),n.closest('[data-adstage-container="true"]'),n][e(217)](t=>t&&t[e(260)](e(211))),...[n[e(250)](e(240)),n.closest(".adstage-"+String(this.adType)[e(301)]()),n[e(250)](e(232)),n.closest(e(223)),n.closest(e(203)),n.closest(e(190)),n[e(250)]('div[style*="min-height"]'),n[e(209)]].filter(Boolean)][0];if(s){let n=e(253);n=s[e(260)]("data-adstage-container")?e(235):s[e(275)][e(266)](e(262))?e(210):e(302),s[e(249)][e(201)]+=e(285),s[e(251)]="",s[e(252)](e(273),e(222)),this[e(272)]&&console[e(263)]("⚠️ "+this[e(233)]+" container collapsed ("+n+e(214)+t.id,s)}else this[e(242)](t)}t[e(300)]=void 0,t.isEmpty=!0}[ht(242)](t){const e=ht,n=document[e(216)](t[e(283)]);if(n){n[e(251)]="";const s=document[e(196)](e(247));s.id=t.id,s[e(239)]=e(191)+String(this[e(233)])[e(301)](),s[e(252)](e(211),e(222)),s.setAttribute("data-adstage-empty",e(222)),s[e(252)](e(297),t.id),s[e(249)][e(201)]="\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.appendChild(s),this[e(272)]&&console[e(263)](e(293)+this[e(233)]+e(290)+t.id)}}[ht(276)](t,...e){const n=ht;this[n(272)]&&console.log("["+this[n(233)]+"] "+t,...e)}}function mt(){const t=["6px","string","advertisement","toLowerCase","generic","🔄 Starting advertisement event tracking: ","border",'div[style*="height"]',"adstage-slot adstage-empty adstage-","placeholderMode","trackAdvertisementEvent","🚫 Duplicate viewable blocked for ad ","getDefaultHeight","createElement","backgroundColor","69993vleGAj","VIEWABLE","center","cssText","getAttribute",'[class*="container"]',"4px","171150aXMAOU","<span>Loading ","minHeight","alignItems","parentElement","adstage-class","data-adstage-container","querySelector","color","): ","height","getElementById","filter","11px","applyPlaceholderStyle","isDuplicateViewable","minimal","true",'[class*="banner"]','<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"block","100%","justifyContent","fontSize","width","8848728LMxMKy","24hQGdXz",'[class*="ad"]',"adType","📏 Using 100% height (container: ","adstage-official","borderRadius","transparent","calculateAdSize","className",".adstage-slot"," in slot ","createEmptyContainer"," ad...</span>","128528dLwZmE"," for ad ","createPlaceholder","div","📦 Placeholder created for ","style","closest","innerHTML","setAttribute","unknown","❌ Failed to track ","renderFallback","createEventTrackingCallback","157096mJjYnn","rgba(231, 76, 60, 0.1)","display","hasAttribute","adstage-slot adstage-","adstage-slot","warn","fontFamily","📊 Advertisement event tracked: ","contains","data-adstage-type","#e74c3c","monospace","#666","#f9f9f9","debug","data-adstage-empty","appendChild","classList","log"," event for ad ","getContainerHeight"," event","rgba(248, 249, 250, 0.5)","none","⚠️ AdvertisementEventTracker not available for ","containerId","advertisementEventTracker","\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 "," slot: ","✅ New viewable recorded for ad ","number","1667895ycceQN"," container: ","rgba(0, 0, 0, 0.02)","flex","⚠️ Created empty ","2px dashed #e74c3c"," x ","805560QZgMvu","data-adstage-slot"];return(mt=function(){return t})()}const It=vt;function vt(t,e){const n=yt();return(vt=function(t,e){return n[t-=207]})(t,e)}function yt(){const t=["alt","getBoundingClientRect","2aMUImO","toString","</div>","dominant","imageUrl","11646gxdgMj","title","1:1","Failed to calculate optimal banner size, using defaults:","calculateAdSize","2720AEiyhE","getElementById","1102293QOVkUX","abs"," (avg: ","181948WIUfWy","3:2","status","100%","containerId","objectPosition","ratio","Banner Advertisement","loadImageDimensions","createSliderContainer","📐 Optimal banner container calculated: ","onerror","cover","Banner","applyOptimizedImageStyle","250px","renderOptimizedBannerImage"," (strategy: ","createElement","selectOptimalSizeStrategy","adstage-ad adstage-banner-ad",", ratio=","reduce","getDefaultHeight","max","✅ Optimized banner image rendered for ad: ","style","slideInterval","_id","aspectRatio","src","className","95uguOpY","appendChild","error","Container not found: ","height","32663708SyXAkE","get","Failed to load image: ","createEventTrackingCallback","<div>","#f0f0f0","config","center","some","addClickEventForRenderer","borderRadius","log","allSettled","warn","16:9","average","common","from"," ads (optimized: ","round","count","debug","length","display",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"🎠 Banner carousel created for slot: ","contain","🔧 Banner container optimized for ","10650pBUDkC","4:3","map","forEach","img","objectFit","calculateOptimalHeight","📸 Banner image dimensions: ","❌ Failed to load optimized banner image:","🎨 Banner image style applied: objectFit=","optimizeContainerForBannerAds","11109OyeoMq","div","optimizedHeight","set","block","8px","value","Banner container optimization failed, using default size:","onload","filter","renderAdElement","Banner Ad","width","calculateOptimalContainerSize","3774618KwBALH","📦 Banner container dimensions: ","values","Image URL is not provided","5912tBtcii","innerHTML","renderMultipleAds","toFixed"];return(yt=function(){return t})()}!function(){const t=vt,e=yt();for(;;)try{if(831436===-parseInt(t(279))/1+-parseInt(t(314))/2*(parseInt(t(211))/3)+-parseInt(t(214))/4*(parseInt(t(246))/5)+parseInt(t(304))/6+-parseInt(t(290))/7*(parseInt(t(308))/8)+parseInt(t(319))/9*(-parseInt(t(209))/10)+parseInt(t(251))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class bt extends gt{constructor(t=!1,e){super(r.BANNER,t,e)}getDefaultHeight(){return vt(229)}async[It(300)](t,e){const n=It,s=document[n(210)](t.containerId);if(!s)return;const i=document.createElement(n(291));i[n(245)]=n(234);const r=t[n(292)],o=s.parentElement||s;if(r)i[n(240)][n(302)]=n(217),i[n(240)].height=String(r);else{const e=t[n(257)],s={width:e?.[n(302)],height:e?.[n(250)]},{width:r,height:a}=this[n(208)](o,s,{debug:this[n(272)]});i[n(240)].width=r,i[n(240)][n(250)]=a}e[n(318)]?await this[n(230)](i,e,t):i[n(309)]=n(255)+(e[n(320)]||n(301))+n(316),st.addClickEventForRenderer(i,e,t,()=>this[n(254)](),this[n(272)],n(227)),s[n(309)]="",s.appendChild(i)}async[It(310)](t,e){const n=It,s=document[n(210)](t[n(218)]);if(!s)throw new Error(n(249)+t[n(218)]);await this[n(289)](t,e);const i=this[n(254)](),r={autoSlideInterval:(t.config?.[n(241)]||5e3)/1e3,...t[n(257)],optimizedHeight:t.optimizedHeight,aspectRatio:t[n(243)]},o=ct[n(223)](t,e,r,i,this[n(272)]);o&&(s[n(309)]="",s.appendChild(o),this[n(272)]&&console[n(262)](n(276)+t.id+" with "+e[n(273)]+n(269)+(t[n(292)]||"default")+")"))}async[It(303)](t,e){const n=It;if(!t.length)return{width:n(217),height:this.getDefaultHeight(),aspectRatio:16/9};try{const s=(await Promise[n(263)](t[n(299)](t=>t[n(318)])[n(281)](t=>this[n(222)](t[n(318)]))))[n(299)](t=>"fulfilled"===t[n(216)])[n(281)](t=>t[n(296)]);if(0===s[n(273)])return{width:n(217),height:this.getDefaultHeight(),aspectRatio:16/9};const i=this[n(233)](s),r=this[n(285)](s,e,i);return this[n(272)]&&console.log(n(224)+e+"x"+r+n(231)+i+")"),{width:n(217),height:r+"px",aspectRatio:e/r}}catch(t){return console[n(264)](n(207),t),{width:n(217),height:this[n(237)](),aspectRatio:16/9}}}async[It(289)](t,e){const n=It;try{const s=document[n(210)](t.containerId),i=document[n(210)](t.id);if(!s||!i)return;const r=s[n(313)]()[n(302)]||300,o=await this[n(303)](e,r);i[n(240)].height=o[n(250)],t[n(292)]=o.height,t[n(243)]=o[n(243)],this[n(272)]&&console[n(262)](n(278)+e.length+" ads: "+o[n(250)])}catch(t){console[n(264)](n(297),t)}}[It(233)](t){const e=It,n=t.map(t=>t.width/t.height),s=new Map;n[e(282)](t=>{const n=e,i=(Math[n(270)](10*t)/10)[n(315)]();s[n(293)](i,(s[n(252)](i)||0)+1)});const i=Math[e(238)](...s[e(306)]()),r=t[e(273)];if(i/r>=.7)return e(317);const o=[16/9,4/3,1,1.5],a=n.filter(t=>o[e(259)](n=>Math[e(212)](t-n)<.1))[e(273)];return e(a/r>=.5?267:266)}[It(285)](t,e,n){const s=It,i=t.map(t=>t[s(302)]/t[s(250)]);switch(n){case s(317):{const t=new Map;i[s(282)](e=>{const n=s,i=Math.round(10*e)/10,r=i.toString(),o=t[n(252)](r);o?o.count++:t[n(293)](r,{ratio:i,count:1})});const n=Array[s(268)](t.values()).reduce((t,e)=>e[s(271)]>t.count?e:t);return Math[s(270)](e/n[s(220)])}case s(267):{const t=[{ratio:16/9,name:s(265)},{ratio:4/3,name:s(280)},{ratio:1,name:s(321)},{ratio:1.5,name:s(215)}],n=i[s(236)]((t,e)=>t+e,0)/i[s(273)],r=t[s(236)]((t,e)=>Math.abs(e[s(220)]-n)<Math[s(212)](t[s(220)]-n)?e:t);return this[s(272)]&&console[s(262)]("📊 Using standard ratio: "+r.name+s(213)+n[s(311)](2)+")"),Math[s(270)](e/r[s(220)])}case s(266):default:{const t=i.reduce((t,e)=>t+e,0)/i[s(273)];return Math[s(270)](e/t)}}}[It(222)](t){return new Promise((e,n)=>{const s=vt,i=new Image;i[s(298)]=()=>{e({width:i.naturalWidth,height:i.naturalHeight})},i[s(225)]=()=>{n(new Error(s(253)+t))},i[s(244)]=t})}applyOptimizedImageStyle(t,e,n){const s=It,i=e/n;Math[s(212)](i-1)<.1?(t.style[s(284)]="cover",t[s(240)][s(219)]=s(258)):i>1.3?(t.style[s(284)]=s(277),t.style[s(219)]="center",t[s(240)].backgroundColor=s(256)):i<.7?(t[s(240)].objectFit=s(226),t[s(240)][s(219)]="center"):(t.style[s(284)]=s(226),t.style[s(219)]="center"),this[s(272)]&&console[s(262)](s(288)+t[s(240)][s(284)]+s(235)+i.toFixed(2))}async[It(230)](t,e,n){const s=It,i=document[s(232)](s(283));i.style[s(302)]=s(217),i[s(240)][s(250)]=s(217),i[s(240)][s(274)]=s(294),i[s(240)][s(261)]=s(295),i[s(312)]=e.title||s(221),t[s(309)]=s(275);try{if(!e[s(318)])throw new Error(s(307));const r=await this[s(222)](e[s(318)]),o=t[s(313)](),a=o.width,c=o[s(250)];this[s(272)]&&(console[s(262)](s(286)+r[s(302)]+"x"+r[s(250)]),console[s(262)](s(305)+a+"x"+c));const d=r[s(302)]/r[s(250)],l=a/c;return this[s(228)](i,d,l),i[s(244)]=e[s(318)],t[s(309)]="",t[s(247)](i),st.addClickEventForRenderer(i,e,n,()=>this[s(254)](),this[s(272)],s(227)),this[s(272)]&&console[s(262)](s(239)+e[s(242)]),i}catch(r){return console[s(248)](s(287),r),e[s(318)]&&(i.src=e[s(318)],i[s(240)][s(284)]=s(226),i.style[s(219)]=s(258),t.innerHTML="",t[s(247)](i),st[s(260)](i,e,n,()=>this.createEventTrackingCallback(),this.debug,s(227))),i}}}const wt=kt;function kt(t,e){const n=xt();return(kt=function(t,e){return n[t-=450]})(t,e)}function xt(){const t=["103754ZexCTH","9116215OIQwxv","12rZfrBe","1455344lLrvws","20fFMgJB","539580aOWwcq","setTextAdContent","669504RYPWXS","\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 ","2422908CmUUTY","752aYhGfs","14123718XyqjtK"];return(xt=function(){return t})()}!function(){const t=kt,e=xt();for(;;)try{if(997775===-parseInt(t(455))/1+-parseInt(t(453))/2+parseInt(t(450))/3*(parseInt(t(451))/4)+parseInt(t(461))/5+parseInt(t(457))/6+parseInt(t(460))/7*(parseInt(t(458))/8)+parseInt(t(459))/9*(-parseInt(t(452))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Et{static createTextAdStyles(t=!1){return kt(456)}static[wt(454)](t,e){const n=e.textContent||e.title||"";t.textContent=n}}const St=At;function At(t,e){const n=Tt();return(At=function(t,e){return n[t-=374]})(t,e)}function Tt(){const t=["string","20px","addClickEventForSlider","addEventListener","301QoYBxz","1015420PYsiKA","appendChild","left","changedTouches",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","addTouchSupport","mouseleave","opacity","relative","translateY(20px)","adstage-fade-slide-container","touchstart","push","absolute","hidden","getBoundingClientRect","trackSlideViewable","auto","preventDefault","767592yThrzm","className","touches","removeChild","mouseenter","setProperty","minHeight","top","data-adstage-ad-id","clientY","adType","includes","2123516HJikPz","whiteSpace","3367071asvNed","height","1287283JHkeEp","createSimpleAdElement","toLowerCase","zIndex",";\n left: ","autoSlideInterval","15ixtguL","setAttribute","createElement","\n position: ","forEach","style","div","width","clientX","block","4962450fsbmnG","adstage-fade-slider-wrapper","adstage-fade-slide","data-adstage-slot-id","createTextAdStyles","position","touchmove","103856JdEdNK","cssText","\n position: relative;\n width: 100%;\n ","height: auto; min-height: fit-content;","Text","length",";\n ","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","translateY(0)","abs","body","setTextAdContent",";\n width: 100%;\n "];return(Tt=function(){return t})()}!function(){const t=At,e=Tt();for(;;)try{if(717137===-parseInt(t(430))/1+-parseInt(t(426))/2+-parseInt(t(436))/3*(-parseInt(t(395))/4)+parseInt(t(446))/5+-parseInt(t(414))/6+-parseInt(t(394))/7*(-parseInt(t(377))/8)+parseInt(t(428))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ct{static[St(431)](t,e){const n=St,s=document.createElement(n(442));return s[n(415)]="adstage-ad adstage-"+String(t[n(424)])[n(432)](),s[n(437)](n(422),e._id),s[n(437)](n(449),t.id),s[n(441)][n(378)]=Et[n(374)](!0),Et[n(388)](s,e),s}static createTextTransitionContainer(t,e,n,s,i=!1){const r=St,o=t[r(429)]&&0!==t[r(429)]&&t[r(429)]!==r(412),a=document.createElement(r(442));a[r(415)]=r(447);const c={position:r(403),overflow:r(409),display:r(445)};if(!o&&(c[r(429)]="auto",c[r(420)]="fit-content"),t[r(443)]&&0!==t.width){let e;e=typeof t[r(443)]===r(390)?t.width.includes("px")||t[r(443)][r(425)]("%")?t[r(443)]:t[r(443)]+"px":t.width+"px",c.width=e}if(t[r(429)]&&0!==t.height&&"auto"!==t[r(429)]&&o){let e;e="string"==typeof t.height&&(t[r(429)].includes("px")||t[r(429)][r(425)]("%"))?t.height:t.height+"px",c.height=e}Object.entries(c).forEach(([t,e])=>{const n=r;a[n(441)][n(419)](t,e)});const d=document[r(438)](r(442));d[r(415)]=r(405),d[r(441)][r(378)]=r(379)+(o?"height: 100%;":r(380))+"\n ";let l=null;const u=!t[r(443)]||0===t[r(443)],p=!t.height||0===t[r(429)]||void 0===t[r(429)]||t.height===r(412);if(u||p&&o){if(l=document[r(438)]("div"),l.style.cssText=r(384),!u&&t[r(443)]){let e;e=typeof t[r(443)]===r(390)&&(t.width[r(425)]("px")||t[r(443)][r(425)]("%"))?t[r(443)]:t[r(443)]+"px",l[r(441)][r(443)]=e,l[r(441)][r(427)]="normal"}document[r(387)][r(396)](l);let n=0,s=0;e[r(440)](e=>{const i=r,o=this[i(431)](t,e);l[i(396)](o);const a=o[i(410)]();a[i(443)]>n&&(n=a[i(443)]),a[i(429)]>s&&(s=a[i(429)]),l.removeChild(o)}),u&&n>0&&(a[r(441)][r(443)]=n+"px"),p&&s>0&&o&&(a[r(441)][r(429)]=s+"px"),document[r(387)][r(417)](l)}const h=[];e[r(440)]((e,n)=>{const a=r,c=document[a(438)](a(442));c[a(415)]=a(448);const l=a(o?408:0===n?403:408);c[a(441)][a(378)]=a(439)+l+";\n top: "+(l===a(408)?"0":a(412))+a(434)+(l===a(408)?"0":a(412))+a(389)+(o?"height: 100%;":"height: auto;")+"\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":a(391))+a(399)+(0===n?"2":"1")+a(383);const u=this[a(431)](t,e);st[a(392)](u,e,t,s,i,a(381)),c[a(396)](u),d.appendChild(c),h[a(407)](c)});let f=0;const g=e[r(382)],m=1e3*(n?.[r(435)]||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c.style.position===a(403)&&(c[a(441)].position="absolute",c[a(441)][a(421)]="0",c[a(441)].left="0"),d.style[a(375)]=a(403),d.style.top=a(412),d[a(441)][a(397)]="auto"),c.style.opacity="0",c[a(441)].transform="translateY(-20px)",c[a(441)][a(433)]="1",d[a(441)].opacity="1",d[a(441)].transform=a(385),d.style[a(433)]="2",h[a(440)]((t,e)=>{const s=a;e!==n&&e!==f&&(t.style[s(402)]="0",t[s(441)].transform=s(404),t[s(441)][s(433)]="1",!o&&"relative"===t[s(441)].position&&(t[s(441)][s(375)]=s(408),t[s(441)][s(421)]="0",t[s(441)].left="0"))}),f=n,tt[a(411)](e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a[r(393)](r(418),()=>{clearInterval(v)}),a[r(393)](r(401),()=>{v=setInterval(()=>{I(f+1)},m)}),Ct.addTouchSupport(a,I,()=>f,g),a[r(396)](d),a}static[St(400)](t,e,n,s){const i=St;let r=0,o=0,a=!1;t[i(393)](i(406),t=>{const e=i;r=t[e(416)][0][e(444)],o=t[e(416)][0][e(423)],a=!0}),t[i(393)](i(376),t=>{a&&t[i(413)]()}),t.addEventListener("touchend",t=>{const s=i;if(!a)return;a=!1;const c=t[s(398)][0].clientX,d=t[s(398)][0][s(423)],l=r-c,u=o-d;if(Math[s(386)](l)>Math[s(386)](u)&&Math[s(386)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}function Dt(){const t=["Container not found: ","createTextAdStyles","16369ceDWru","debug","maxLines","createEventTrackingCallback","containerId","className","-webkit-box","127824ddphnG","7863831sFttMO","194JNrmOm","height","slideInterval","hidden","✨ Text transition created for slot: ","webkitBoxOrient","style","10CWIRZc","setTextAdContent","60px","3UxndgX","79688OkwlCE","100%","width","adstage-text-content","createTextTransitionContainer","renderMultipleAds","calculateAdSize","innerHTML","config","15615281vxuQoL"," with ","getDefaultHeight","22712316UnmICz","30gfnuzE","adstage-ad adstage-text-ad","getElementById","div","vertical","createElement","217vCweCE","5968232jsBQMW","number","appendChild","aspectRatio","optimizedHeight","log","length"];return(Dt=function(){return t})()}const Rt=zt;function zt(t,e){const n=Dt();return(zt=function(t,e){return n[t-=406]})(t,e)}!function(){const t=zt,e=Dt();for(;;)try{if(822313===parseInt(t(409))/1*(parseInt(t(418))/2)+parseInt(t(428))/3*(parseInt(t(449))/4)+parseInt(t(442))/5*(-parseInt(t(416))/6)+parseInt(t(448))/7*(parseInt(t(429))/8)+parseInt(t(417))/9*(parseInt(t(425))/10)+-parseInt(t(438))/11+-parseInt(t(441))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Bt extends gt{constructor(t=!1,e){super(r.TEXT,t,e)}[Rt(440)](){return Rt(427)}async renderAdElement(t,e){const n=Rt,s=document[n(444)](t[n(413)]);if(!s)return;const i=document.createElement("div");i[n(414)]=n(443);const r=t.optimizedHeight,o=s.parentElement||s;if(r)i.style[n(431)]=n(430),i[n(424)][n(419)]=String(r);else{const e=t[n(437)],s={width:e?.[n(431)],height:e?.[n(419)]},{width:r,height:a}=this[n(435)](o,s,{debug:this.debug});i[n(424)][n(431)]=r,i[n(424)].height=a}const a=document[n(447)](n(445));a.className=n(432),a[n(424)].cssText=Et[n(408)](!1),Et[n(426)](a,e);const c=t[n(437)]?.[n(411)];c&&typeof c===n(450)&&(a.style.display=n(415),a[n(424)].webkitLineClamp=String(c),a[n(424)][n(423)]=n(446),a[n(424)].overflow=n(421)),i[n(451)](a),st.addClickEventForRenderer(i,e,t,()=>this[n(412)](),this[n(410)],"Text"),s.innerHTML="",s[n(451)](i),this[n(410)]&&console[n(454)]("✨ Single text ad rendered: "+e._id)}async[Rt(434)](t,e){const n=Rt,s=document[n(444)](t[n(413)]);if(!s)throw new Error(n(407)+t[n(413)]);const i=this[n(412)](),r={autoSlideInterval:(t[n(437)]?.[n(420)]||5e3)/1e3,...t[n(437)],optimizedHeight:t[n(453)],aspectRatio:t[n(452)]},o=Ct[n(433)](t,e,r,i,this[n(410)]);o&&(s[n(436)]="",s[n(451)](o),this[n(410)]&&console[n(454)](n(422)+t.id+n(439)+e[n(406)]+" ads"))}}const Mt=Lt;function Lt(t,e){const n=Pt();return(Lt=function(t,e){return n[t-=397]})(t,e)}!function(){const t=Lt,e=Pt();for(;;)try{if(222738===parseInt(t(470))/1*(-parseInt(t(509))/2)+parseInt(t(476))/3+-parseInt(t(421))/4+parseInt(t(424))/5*(-parseInt(t(425))/6)+parseInt(t(499))/7+-parseInt(t(500))/8*(parseInt(t(442))/9)+parseInt(t(414))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ut extends gt{constructor(t=!1,e){super(r[Lt(515)],t,e)}[Mt(461)](){return Mt(441)}async[Mt(430)](t,e){const n=Mt,s=document[n(438)](t[n(434)]);if(!s)return;const i=document[n(464)](n(480));i[n(511)]=n(433),i[n(479)].cssText=n(466),this.renderVideoElementDirect(i,e,t),s.innerHTML="",s[n(444)](i),this[n(506)]&&console[n(415)]("🎬 Single video ad rendered: "+e[n(496)])}async[Mt(426)](t,e){const n=Mt,s=document.getElementById(t[n(434)]);if(!s)throw new Error(n(408)+t[n(434)]);if(e[n(410)]>0){const i=e[0],r=document[n(464)](n(480));r.className=n(433),r.style[n(405)]=n(471),this.renderVideoElementDirect(r,i,t),s[n(513)]="",s.appendChild(r);const o=this[n(486)]();setTimeout(()=>{const e=n;o(i[e(496)],t.id,u[e(465)])},100),this.debug&&console[n(415)](n(487)+t.id+" ("+i[n(496)]+")")}else this.debug&&console[n(462)]("⚠️ No video advertisements available for slot: "+t.id)}[Mt(502)](t,e,n){const s=Mt;t[s(479)][s(450)]=s(452);const i=document[s(464)](s(449));i[s(479)][s(416)]="100%",i[s(479)].height=s(472),i[s(479)][s(514)]=s(423),i.preload=s(512);const r=n.config;if(this[s(506)]&&console.log(s(475),r),i[s(516)]=!1,i[s(402)]=!1!==r?.[s(402)],i.muted=!0,i[s(427)]=!1!==r?.loop,this[s(506)]&&console[s(415)](s(497),{autoplay:i[s(402)],muted:i[s(447)],loop:i.loop,controls:i.controls}),!1!==r?.[s(517)]&&i[s(469)]("playsinline",""),!0===r?.[s(516)]&&(i[s(516)]=!0,this[s(506)]&&console.log(s(485))),r?.[s(477)])i[s(516)]=!1,i[s(479)][s(405)]+=s(440);else if(r?.[s(406)]){if(i[s(516)]){const t=document[s(464)](s(479));t[s(399)]=s(407)+(r[s(406)][s(473)]?"none":s(453))+s(435)+(r[s(406)][s(463)]?s(431):"block")+s(439)+(r[s(406)][s(460)]?s(431):"block")+s(458)+(r[s(406)][s(492)]?s(431):s(453))+s(429)+(r[s(406)][s(468)]?s(431):s(453))+s(510)+(r.customControls[s(454)]?s(431):s(453))+s(398)+(r[s(406)][s(478)]?s(431):s(453))+s(409),document[s(457)][s(444)](t)}}else if(i.controls){const t=document[s(464)](s(479));t.id=s(418),t[s(399)]=s(403),!document[s(438)](s(418))&&document[s(457)][s(444)](t)}this.debug&&console.log(s(455),i[s(516)]?s(518):s(404));const o=document[s(464)](s(491));o.className=s(451),o.style.cssText=s(411),r?.hideControls&&(o[s(479)][s(490)]=s(431));const a=()=>{const t=s,e=t(467),n=t(459);o[t(513)]=i[t(447)]?e:n,o[t(420)]=i.muted?t(397):t(505)};if(a(),o[s(401)](s(489),t=>{const e=s;t[e(412)](),i.muted=!i.muted,a(),this[e(506)]&&console.log(e(428)+(i.muted?e(447):e(508)))}),o[s(401)](s(446),()=>{const t=s;o.style.background=t(417),o[t(479)].transform=t(419)}),o[s(401)]("mouseleave",()=>{const t=s;o[t(479)][t(432)]=t(488),o[t(479)][t(436)]="scale(1)"}),e[s(481)]){i[s(456)]=e[s(481)];const t=()=>{const t=s;i[t(402)]&&i[t(447)]&&i.paused&&i[t(504)]()[t(519)](e=>{const n=t;this[n(506)]&&(console[n(462)]("🎬 Auto-play was prevented:",e),console.warn(n(503))),i[n(447)]=!0,i[n(504)]()[n(519)](t=>{const e=n;this.debug&&console[e(448)](e(483),t)})})};i[s(401)](s(498),()=>{const e=s;this[e(506)]&&console[e(415)](e(445)),t()}),i[s(401)](s(474),()=>{const e=s;this[e(506)]&&console.log(e(507)),t()}),i[s(401)](s(443),()=>{this.debug&&console.log("🎬 Video data loaded, attempting autoplay..."),t()}),setTimeout(()=>{const e=s;this[e(506)]&&console.log(e(484)),t()},100)}else if(e[s(493)]){const n=document.createElement("img");return n.src=e[s(493)],n[s(479)][s(416)]=s(472),n[s(479)][s(422)]=s(472),n[s(479)][s(514)]="contain",n[s(494)]=e[s(420)]||s(495),void t[s(444)](n)}st[s(482)](i,e,n,()=>this.createEventTrackingCallback(),this[s(506)],"Video"),i.addEventListener("error",i=>{const r=s;if(console.error(r(413),i),e.imageUrl){const s=document[r(464)](r(501));s[r(456)]=e[r(493)],s.style[r(416)]="100%",s[r(479)][r(422)]="100%",s.style.objectFit=r(423),s[r(494)]=e[r(420)]||r(495),st[r(482)](s,e,n,()=>this.createEventTrackingCallback(),this[r(506)],"Video fallback"),t[r(513)]="",t.appendChild(s)}}),t.appendChild(i),t[s(444)](o),this[s(506)]&&console[s(415)]("🎬 Video element created for ad: "+e._id+" (autoplay: "+i.autoplay+s(400)+i[s(447)]+s(437)+i[s(427)]+")")}}function Pt(){const t=["hideRemainingTime","imageUrl","alt","Video thumbnail","_id","🎬 Final video settings:","loadedmetadata","2758217pYBxfZ","1870072PJiFrF","img","renderVideoElementDirect","🎬 Trying muted autoplay fallback...","play","Click to mute","debug","🎬 Video can play, attempting autoplay...","unmuted","828524nZNWih"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","className","metadata","innerHTML","objectFit","VIDEO","controls","playsinline","enabled","catch","Click to unmute"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","textContent",", muted: ","addEventListener","autoplay","\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n ","disabled (default)","cssText","customControls","\n video::-webkit-media-controls-play-button {\n display: ","Container not found: "," !important;\n }\n ","length","\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ","stopPropagation","Video load failed:","9711610wquOeB","log","width","rgba(0, 0, 0, 0.9)","adstage-video-default-controls","scale(1.1)","title","977480pPpIxt","height","contain","1282370hEIcLj","6CKrbQX","renderMultipleAds","loop","🔊 Video mute toggled: "," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","renderAdElement","none","background","adstage-video-container","containerId"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","transform",", loop: ","getElementById"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","\n pointer-events: none;\n ","360px","9sVJPkj","loadeddata","appendChild","🎬 Video metadata loaded, attempting autoplay...","mouseenter","muted","error","video","position","adstage-video-mute-button","relative","block","hideMuteButton","🎬 Video controls setting:","src","head"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',"hideCurrentTime","getDefaultHeight","warn","hideProgressBar","createElement","VIEWABLE","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ',"hideVolumeSlider","setAttribute","1KsDaer","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","100%","hidePlayButton","canplay","🎬 Video config received:","19233dXspPp","hideControls","hideFullscreenButton","style","div","videoUrl","addClickEventForRenderer","🎬 Autoplay completely failed:","🎬 Initial autoplay attempt after timeout...","🎬 User explicitly enabled controls, overriding default","createEventTrackingCallback","🎬 Single video rendered for VIDEO slot: ","rgba(0, 0, 0, 0.7)","click","display","button"];return(Pt=function(){return t})()}const Nt=Ot;function Vt(){const t=["containerId","div","imageUrl","Learn More","3uenpKA","_blank","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","1467279FBmVui","title","_id","⚠️ No native advertisements available for slot: ","1604876jABxiy","1MXqZEJ","createElement","4389190ikKNxh","debug","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","8SyuxPm","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","mouseleave","innerHTML","): ","textContent","linkUrl","Native click tracked for ad: ","NATIVE","src","695662RNSvYe","backgroundColor","open","\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n ","renderAdElement","log","advertisementEventTracker","getElementById","length","🏠 Single native ad rendered: ","27822XPKdQq","img","8926522ssLnVb","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","alt","mouseenter","#3b82f6","className","addEventListener","448bWlJkq","appendChild","style","cssText","click","1894905qJmCEz","renderMultipleAds"];return(Vt=function(){return t})()}function Ot(t,e){const n=Vt();return(Ot=function(t,e){return n[t-=332]})(t,e)}!function(){const t=Ot,e=Vt();for(;;)try{if(238377===parseInt(t(382))/1*(parseInt(t(344))/2)+-parseInt(t(374))/3*(parseInt(t(381))/4)+parseInt(t(368))/5+-parseInt(t(354))/6*(parseInt(t(363))/7)+-parseInt(t(334))/8*(parseInt(t(377))/9)+-parseInt(t(384))/10+parseInt(t(356))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft extends gt{constructor(t=!1,e){super(r[Ot(342)],t,e)}getDefaultHeight(){return"200px"}async[Nt(348)](t,e){const n=Nt,s=document[n(351)](t[n(370)]);if(!s)return;const i=document[n(383)](n(371));if(i[n(361)]="adstage-ad adstage-native-ad",i[n(365)][n(366)]="\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ",e[n(378)]){const t=document.createElement("h3");t[n(339)]=e[n(378)],t[n(365)][n(366)]=n(376),i.appendChild(t)}if(e.textContent){const t=document[n(383)]("p");t[n(339)]=e[n(339)],t[n(365)].cssText=n(333),i.appendChild(t)}if(e[n(372)]){const t=document[n(383)](n(371));t[n(365)][n(366)]=n(357);const s=document[n(383)](n(355));s[n(343)]=e.imageUrl,s[n(358)]=e[n(378)]||"Native Advertisement",s[n(365)].cssText=n(335),t[n(364)](s),i[n(364)](t)}if(e.linkUrl){const t=document[n(383)]("button");t[n(339)]=n(373),t[n(365)][n(366)]=n(347),t[n(362)](n(367),()=>{const t=n;this[t(350)]&&console[t(349)](t(341)+e._id),window[t(346)](e[t(340)],t(375))}),t[n(362)](n(359),()=>{t[n(365)].backgroundColor="#2563eb"}),t[n(362)](n(336),()=>{const e=n;t[e(365)][e(345)]=e(360)}),i[n(364)](t)}s[n(337)]="",s[n(364)](i),this[n(332)]&&console[n(349)](n(353)+e[n(379)])}async[Nt(369)](t,e){const n=Nt;e[n(352)]>0?(await this[n(348)](t,e[0]),this[n(332)]&&console[n(349)]("🏠 Native ad rendered (first of "+e[n(352)]+n(338)+t.id)):this[n(332)]&&console.warn(n(380)+t.id)}}function _t(){const t=["Interstitial click tracked for ad: ","target","backgroundColor","4394248fwCXar","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","title","_id","🖼️ Interstitial ad closed","key","removeEventListener","400px","addEventListener","🖼️ Interstitial ad rendered (first of ","src","Get Started","mouseleave","button","length","log","appendChild","10fvMpDr","565518PDmHtU","adstage-interstitial-overlay","getElementById","2876036VgufoB","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","#e5e7eb","1750220XXtZKn","linkUrl","createElement","color","cssText","#f3f4f6","getDefaultHeight","removeChild","textContent","renderMultipleAds","119KIOzMB","img","\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ","Escape","#374151","renderAdElement","Interstitial Advertisement","click","style","closeInterstitial","debug","className","mouseenter","): ","fadeOut 0.3s ease-out forwards","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ","49128FNTAgj","alt","imageUrl","62054630LFOgJx","adstage-interstitial-styles","3GOmZRy","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","9kpeQFu","parentNode","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","div","\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ","animation","#3b82f6","#2563eb","#6b7280","4364823XMUifS"];return(_t=function(){return t})()}const jt=Ht;function Ht(t,e){const n=_t();return(Ht=function(t,e){return n[t-=247]})(t,e)}!function(){const t=Ht,e=_t();for(;;)try{if(845503===parseInt(t(284))/1*(parseInt(t(279))/2)+-parseInt(t(295))/3+-parseInt(t(249))/4*(parseInt(t(316))/5)+parseInt(t(317))/6*(-parseInt(t(262))/7)+-parseInt(t(299))/8+-parseInt(t(286))/9*(-parseInt(t(252))/10)+parseInt(t(282))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Kt extends gt{constructor(t=!1,e){super(r.INTERSTITIAL,t,e)}[jt(258)](){return jt(306)}async[jt(267)](t,e){const n=jt;if(!document[n(248)](t.containerId))return;const s=document[n(254)](n(289));s[n(273)]=n(247),s[n(270)][n(256)]=n(290);const i=document[n(254)]("div");i[n(273)]="adstage-interstitial-content",i[n(270)][n(256)]=n(278);const r=document[n(254)](n(312));if(r.innerHTML="×",r[n(270)].cssText=n(264),r[n(307)](n(269),()=>{this[n(271)](s)}),r[n(307)](n(274),()=>{const t=n;r.style[t(298)]=t(251),r.style[t(255)]=t(266)}),r[n(307)](n(311),()=>{const t=n;r.style[t(298)]=t(257),r[t(270)][t(255)]=t(294)}),e[n(281)]){const t=document[n(254)](n(263));t[n(309)]=e[n(281)],t[n(280)]=e[n(301)]||n(268),t[n(270)][n(256)]=n(300),i[n(315)](t)}if(e[n(301)]){const t=document[n(254)]("h2");t.textContent=e[n(301)],t[n(270)].cssText=n(277),i[n(315)](t)}if(e[n(260)]){const t=document[n(254)]("p");t[n(260)]=e[n(260)],t[n(270)].cssText=n(250),i.appendChild(t)}if(e[n(253)]){const t=document[n(254)](n(312));t[n(260)]=n(310),t.style.cssText=n(288),t[n(307)]("click",()=>{const t=n;this.advertisementEventTracker&&console[t(314)](t(296)+e[t(302)]),window.open(e[t(253)],"_blank"),this[t(271)](s)}),t[n(307)]("mouseenter",()=>{const e=n;t[e(270)][e(298)]=e(293)}),t[n(307)](n(311),()=>{const e=n;t[e(270)][e(298)]=e(292)}),i[n(315)](t)}const o=t=>{const e=n;t[e(304)]===e(265)&&(this.closeInterstitial(s),document[e(305)]("keydown",o))};if(document[n(307)]("keydown",o),s.addEventListener("click",t=>{const e=n;t[e(297)]===s&&this[e(271)](s)}),!document[n(248)](n(283))){const t=document.createElement("style");t.id=n(283),t[n(260)]=n(285),document.head[n(315)](t)}i[n(315)](r),s.appendChild(i),document.body[n(315)](s),this[n(272)]&&console[n(314)]("🖼️ Interstitial ad rendered: "+e[n(302)])}async[jt(261)](t,e){const n=jt;e[n(313)]>0?(await this[n(267)](t,e[0]),this.debug&&console[n(314)](n(308)+e[n(313)]+n(275)+t.id)):this[n(272)]&&console.warn("⚠️ No interstitial advertisements available for slot: "+t.id)}[jt(271)](t){const e=jt;t[e(270)][e(291)]=e(276),setTimeout(()=>{const n=e;t[n(287)]&&t[n(287)][n(259)](t)},300),this[e(272)]&&console[e(314)](e(303))}}function Wt(t,e){const n=Yt();return(Wt=function(t,e){return n[t-=344]})(t,e)}const Xt=Wt;function Yt(){const t=["onload","naturalWidth","🏭 AdRenderer factory initialized with ","getRenderer","12QLWyOV","appendChild","isLoaded","width","data-adstage-ad-id","videoUrl","setAttribute","initializeRenderers","height","70279CafwfW","110tURIyd","93SOjESv","block","imageUrl","NATIVE","adType","set","12wGReCS","objectFit","INTERSTITIAL","BANNER","backgroundColor","style","createElement","No renderer found for ad type: ","22272RqpFMh","VIDEO"," Ad","advertisementEventTracker","133395RuNnPj","calculateOptimalContainerSize","src","100%","renderMultipleAds","debug","getDefaultHeight","optimizeContainerForBannerAds","renderFallback","181082MMqMlL","div","renderers","28SCszZQ","renderAdElement","calculateAdSize","5358041ezXoei","No advertisement to render","warn","border","img","video","TEXT","278562CSjVdu","renderAdSlider","advertisement","#f9f9f9","createAdElement","351JPdfKu","createPlaceholder","config","display","textContent","data-adstage-slot-id","renderOptimizedBannerImage","padding","16528odSOMR","get","[AdRenderer] ","renderAd","log"];return(Yt=function(){return t})()}!function(){const t=Wt,e=Yt();for(;;)try{if(214880===-parseInt(t(397))/1*(-parseInt(t(388))/2)+-parseInt(t(399))/3*(-parseInt(t(379))/4)+-parseInt(t(344))/5+-parseInt(t(366))/6*(parseInt(t(356))/7)+parseInt(t(413))/8*(parseInt(t(371))/9)+parseInt(t(398))/10*(parseInt(t(353))/11)+-parseInt(t(405))/12*(parseInt(t(359))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class qt{constructor(t=!1,e){const n=Wt;this[n(355)]=new Map,this.debug=t,this[n(416)]=e||null,this[n(395)]()}[Xt(395)](){const t=Xt;this[t(355)].set(r.BANNER,new bt(this[t(349)],this[t(416)])),this[t(355)][t(404)](r.TEXT,new Bt(this[t(349)],this.advertisementEventTracker)),this[t(355)][t(404)](r[t(414)],new Ut(this.debug,this[t(416)])),this.renderers[t(404)](r[t(402)],new Ft(this.debug,this[t(416)])),this[t(355)][t(404)](r[t(407)],new Kt(this.debug,this[t(416)])),this[t(349)]&&console[t(383)](t(386)+this[t(355)].size+" renderers")}[Xt(370)](t,e){const n=Xt,s=this[n(387)](t[n(403)]),i=document[n(411)](n(354));i.className="adstage-ad adstage-"+String(t[n(403)]).toLowerCase(),i[n(394)](n(392),e._id),i.setAttribute(n(376),t.id);const{width:o,height:a}=s[n(358)](i,t[n(373)]||{},e);switch(i[n(410)][n(391)]=o,i.style[n(396)]=a,i[n(410)][n(374)]=n(400),t[n(403)]){case r.BANNER:if(e[n(401)]){const t=document.createElement(n(363));t[n(346)]=e[n(401)],t.style[n(391)]="100%",t[n(410)][n(396)]=n(347),t[n(410)][n(406)]="cover",i.appendChild(t)}break;case r.VIDEO:if(e[n(393)]){const t=document[n(411)](n(364));t[n(346)]=e[n(393)],t.style.width="100%",t[n(410)][n(396)]=n(347),i[n(389)](t)}break;case r[n(365)]:if(e[n(375)]){const t=document[n(411)](n(354));t[n(375)]=e.textContent||"",t[n(410)][n(378)]="8px",i.appendChild(t)}break;default:i[n(410)][n(362)]="1px dashed #ccc",i[n(410)][n(409)]=n(369),i[n(375)]=t.adType+n(415)}return i}[Xt(387)](t){const e=Xt,n=this[e(355)][e(380)](t);if(!n)throw new Error(e(412)+t);return n}createPlaceholder(t,e,n,s,i){const r=Xt;this[r(387)](n)[r(372)](t,e,s,i)}async optimizeContainerForBannerAds(t,e){const n=Xt;if(t[n(403)]!==r[n(408)])return void(this[n(349)]&&console[n(361)]("⚠️ Container optimization is only supported for BANNER ads, got: "+t[n(403)]));const s=this[n(387)](r[n(408)]);await s[n(351)](t,e)}async[Xt(367)](t,e){const n=Xt,s=this[n(387)](t[n(403)]);await s[n(348)](t,e)}async[Xt(382)](t){const e=Xt;if(!t[e(368)])throw new Error(e(360));const n=this[e(387)](t[e(403)]);await n[e(357)](t,t[e(368)]),t[e(390)]=!0}async[Xt(357)](t,e){const n=Xt,s=this[n(387)](t[n(403)]);await s[n(357)](t,e)}[Xt(352)](t){const e=Xt;this.getRenderer(t[e(403)])[e(352)](t)}getDefaultHeightForAdType(t){return this[Xt(387)](t).getDefaultHeight()}[Xt(358)](t,e,n,s){const i=Xt;return this[i(387)](e)[i(358)](t,n,s)}loadImageDimensions(t){return new Promise((e,n)=>{const s=Wt,i=new Image;i[s(384)]=()=>{e({width:i[s(385)],height:i.naturalHeight})},i.onerror=()=>{n(new Error("Failed to load image: "+t))},i.src=t})}async[Xt(377)](t,e,n){const s=Xt;if(n[s(403)]!==r[s(408)])throw new Error("renderOptimizedBannerImage is only supported for BANNER ads");const i=this[s(387)](r[s(408)]);return await i[s(377)](t,e,n)}async[Xt(345)](t,e,n){const s=Xt;if(n!==r[s(408)]){return{width:"100%",height:this[s(387)](n)[s(350)](),aspectRatio:16/9}}const i=this.getRenderer(r[s(408)]);return await i[s(345)](t,e)}log(t,...e){const n=Xt;this.debug&&console[n(383)](n(381)+t,...e)}}const Jt=Zt;function Zt(t,e){const n=Qt();return(Zt=function(t,e){return n[t-=408]})(t,e)}function Qt(){const t=["🔄 Retrying viewability tracking for slot: ","adRenderer","autoDestroy","status",". Retrying in ","create","optimizeContainerForBannerAds","createAdInternal","random","autoplay","maxLines","API key not configured","498EipgvK","100%","_isReady","playsinline","Container not found after ","2396770dpUUMf","disconnect","renderAdSlider","then","2BIcpOT","nodeType","refreshAdSlot","1501113beBkDu","mutationObserver","config","handleRemovedElement","NATIVE","isLoaded","8tqTgaI","77076oEXpmh","string","substr","forEach","containerId","autoSlide","init"," ads)","createAdWithRetry","advertisement","interstitial","clear","now","createPlaceholder","_config","onClick","🗑️ Ads module destroyed","adId","getAllSlots","New advertisement viewable tracked for slot:"," ads automatically","startSimpleViewabilityTracking","length","destroyModule","slots","109249bJWrzN","from","slideInterval","innerHTML","error","ELEMENT_NODE","handleViewableEvent","❌ Failed to track viewable impression:","547739aSaFaf","delete","ms... (attempt ","height","adstage-","width","toString","language","muted","renderAd","deviceType","fetchAdData","🚫 Advertisement not found with ID: ","📊 Fetched ","VIEWABLE","observe","set","country"," removed","GET","getSlotById","loadAdContentInBackground"," ads for type: ","🗑️ Ad slot destroyed: "," attempts: ","Failed to refresh ad slot: ","debug","[data-adstage-slot-id]","get","querySelectorAll","🎯 Ads module initialized (sync mode) with auto-cleanup","getAttribute","log","4530960cqYDvL","data-adstage-slot-id","json","auto","renderFallback","destroy","✅ Ad loaded for slot: ",", filters:","BANNER","append","detail","advertisements","✅ Simple viewable impression tracked for ad ","getElementById","default","Failed to fetch ad data: ","광고 생성 중 오류 발생:","banner","setupAutoCleanup","Ad slot not found: ","viewabilityTracker","_id"," (element found)","values","native","Auto-cleanup failed for slot ","advertisementEventTracker","360HJOOEF","ensureReady","apiKey","getBaseUrl","list","INTERSTITIAL","🔍 Auto-cleanup MutationObserver enabled","loop","body","undefined","🎠 Slider will handle VIEWABLE events for ","removedNodes","31994358zDJZUN","adType","❌ Failed to find element for viewability tracking: ","warn"," (attempt ","createAd"];return(Qt=function(){return t})()}!function(){const t=Zt,e=Qt();for(;;)try{if(695773===-parseInt(t(462))/1*(-parseInt(t(419))/2)+parseInt(t(422))/3*(parseInt(t(428))/4)+parseInt(t(495))/5+parseInt(t(410))/6*(parseInt(t(454))/7)+-parseInt(t(522))/8*(parseInt(t(429))/9)+parseInt(t(415))/10+-parseInt(t(534))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Gt{constructor(){const t=Zt;this[t(412)]=!1,this._config=null,this.slots=new Map,this[t(521)]=null,this[t(541)]=null,this[t(423)]=null}[Jt(435)](t){const e=Jt;this[e(443)]=t,this.advertisementEventTracker=new V(Z[e(525)](),t[e(524)],t[e(488)]||!1,this[e(453)]),this[e(541)]=new qt(t[e(488)]||!1,this.advertisementEventTracker),this[e(513)](),this[e(412)]=!0,t.debug&&console[e(494)](e(492))}isReady(){return this._isReady}getConfig(){return this[Jt(443)]}[Jt(512)](t,e){const n=Jt;this[n(523)]();const s={width:e?.[n(467)]||"100%",height:e?.height||n(498),autoSlide:e?.[n(434)]||!1,slideInterval:e?.[n(456)]||5e3,onClick:e?.[n(444)],adId:e?.adId,language:e?.[n(469)],deviceType:e?.[n(472)],country:e?.[n(479)]};return this.createAd(t,r[n(503)],s)}text(t,e){const n=Jt;this[n(523)]();const s={maxLines:e?.[n(408)]||3,style:e?.style||n(509),onClick:e?.[n(444)],adId:e?.[n(446)],language:e?.language,deviceType:e?.[n(472)],country:e?.country};return this.createAd(t,r.TEXT,s)}video(t,e){const n=Jt;this[n(523)]();const s={width:e?.[n(467)]||640,height:e?.[n(465)]||360,autoplay:void 0===e?.[n(549)]||e[n(549)],muted:void 0===e?.[n(470)]||e[n(470)],loop:void 0===e?.[n(529)]||e[n(529)],playsinline:!1!==e?.[n(413)],controls:void 0!==e?.controls&&e.controls,hideControls:e?.hideControls||!1,customControls:e?.customControls,autoSlide:!1,maxAds:1,onClick:e?.onClick,...e?.adId&&{adId:e[n(446)]}};return this[n(539)](t,r.VIDEO,s)}[Jt(519)](t,e){const n=Jt;return this[n(523)](),this[n(539)](t,r[n(426)],e||{})}[Jt(439)](t,e){const n=Jt;return this[n(523)](),this[n(539)](t,r[n(527)],e||{})}refresh(t){const e=Jt;this[e(523)]();const n=this.slots.get(t);if(!n)throw new Error(e(514)+t);this[e(421)](n),this[e(443)]?.[e(488)]&&console[e(494)]("🔄 Ad slot refreshed: "+t)}destroy(t){const e=Jt;this[e(523)]();const n=this.slots[e(490)](t);if(!n)throw new Error(e(514)+t);n.viewabilityTracker&&n[e(515)][e(500)]();const s=document[e(508)](n[e(433)]);s&&(s[e(457)]=""),this[e(453)][e(463)](t),this[e(443)]?.[e(488)]&&console[e(494)](e(485)+t)}[Jt(447)](){const t=Jt;return this.ensureReady(),Array[t(455)](this[t(453)][t(518)]())}[Jt(482)](t){const e=Jt;return this[e(523)](),this[e(453)][e(490)](t)||null}[Jt(539)](t,e,n){const s=Jt;if(!this._config?.apiKey)throw new Error(s(409));const i=s(466)+e+"-"+Date[s(441)]()+"-"+Math[s(548)]()[s(468)](36)[s(431)](2,9);return this[s(437)](t,e,n,i,0),i}async[Jt(437)](t,e,n,s,i){const r=Jt,o=[0,50,100,200,500];let a,c=null;if(typeof t===r(430)){if(a=t,c=document[r(508)](t),!c)return i<4?(this._config?.debug&&console[r(537)]("Container not found: "+t+r(544)+o[i+1]+r(464)+(i+1)+"/5)"),void setTimeout(()=>{this[r(437)](t,e,n,s,i+1)},o[i+1])):void console[r(458)](r(414)+5+r(486)+t)}else c=t,a=c.id||"auto-"+s,!c.id&&(c.id=a);try{this[r(547)](a,e,n,s,c)}catch(t){console[r(458)](r(511),t)}}[Jt(547)](t,e,n,s,i){const o=Jt;i.setAttribute(o(496),s),this[o(541)]?.[o(442)](i,s,e,n,this[o(443)]);const a={id:s,containerId:t,adType:e,width:n[o(467)]||o(411),height:n[o(465)]||(e===r.TEXT?o(498):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[o(473)](e,n)[o(418)](t=>t[0]||null),render:t=>this[o(541)]?.renderAdElement(a,t),refresh:async()=>this[o(421)](a),destroy:()=>this[o(500)](s)};this.slots[o(478)](s,a),this[o(483)](a),this.advertisementEventTracker&&this[o(443)]?.debug&&console.log("📊 Advertisement event tracking enabled for slot: "+s)}async loadAdContentInBackground(t){const e=Jt;try{const n=await this[e(473)](t.adType,t[e(424)]);if(!n||0===n.length)return void this[e(541)]?.[e(499)](t);t[e(535)]===r[e(503)]&&n.length>0&&await(this[e(541)]?.[e(546)](t,n)),n.length>1||t[e(424)]?.[e(434)]?(await(this.adRenderer?.[e(417)](t,n)),this[e(443)]?.[e(488)]&&console.log(e(532)+n[e(451)]+e(449))):(t[e(438)]=n[0],await(this[e(541)]?.renderAdElement(t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t[e(427)]=!0,this[e(443)]?.[e(488)]&&console[e(494)](e(501)+t.id+" ("+n[e(451)]+e(436))}catch(n){console[e(458)]("❌ Failed to load ad for slot: "+t.id,n),this[e(541)]?.[e(499)](t)}}[Jt(450)](t,e){const n=(s=0)=>{const i=Zt,r=document[i(508)](t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this[i(443)]?.[i(488)]&&console[i(494)](i(540)+t.id+i(538)+(s+1)+")")):console[i(537)](i(536)+t.id));const o=new H(r,async()=>{await this.handleViewableEvent(e,t)});t.viewabilityTracker=o,this[i(443)]?.debug&&console.log("🎯 Simple viewability tracking started for slot: "+t.id+i(517))};n()}async[Jt(460)](t,e){const n=Jt;try{this[n(521)]&&(await this[n(521)].trackAdvertisementEvent(t[n(516)],e.id,u[n(476)]),this._config?.[n(488)]&&console[n(494)](n(507)+t[n(516)]))}catch(t){console[n(458)](n(461),t)}}async[Jt(473)](t,e){const n=Jt;if(!this[n(443)]?.[n(524)])throw new Error(n(409));if(e[n(446)]){const t=""+Z[n(506)][n(505)](e[n(446)]),s=await fetch(t,{method:n(481),headers:U[n(545)](this._config[n(524)])});if(!s.ok){if(404===s[n(543)])return console.warn(n(474)+e.adId),[];throw new Error(n(510)+s.status)}const i=await s[n(497)]();return this._config?.[n(488)]&&console[n(494)]("📊 Fetched specific ad with ID: "+e[n(446)],i),[i]}const s=new URLSearchParams;s[n(504)]("adType",t),e[n(469)]&&s[n(504)](n(469),e[n(469)]),e.deviceType&&s[n(504)](n(472),e[n(472)]),e[n(479)]&&s[n(504)](n(479),e.country);const i=Z[n(506)][n(526)]()+"?"+s[n(468)](),r=await fetch(i,{method:n(481),headers:U[n(545)](this._config[n(524)])});if(!r.ok)throw new Error("Failed to fetch ad data: "+r[n(543)]);const o=(await r[n(497)]())[n(506)]||[];return this[n(443)]?.debug&&console[n(494)](n(475)+o[n(451)]+n(484)+t+n(502),{language:e.language,deviceType:e[n(472)],country:e.country}),o}async[Jt(421)](t){const e=Jt;try{const n=await this[e(473)](t[e(535)],t[e(424)]||{});n&&n[e(451)]>0&&(t.advertisement=n[0],await(this.adRenderer?.[e(471)](t)),this.advertisementEventTracker&&console[e(494)](e(448),t.id))}catch(n){console[e(458)](e(487)+t.id,n)}}[Jt(523)](){if(!this._isReady)throw new Error("Ads module not initialized. Call AdStage.init() first.")}[Jt(513)](){const t=Jt;typeof window!==t(531)&&typeof document!==t(531)&&(this.mutationObserver&&this[t(423)][t(416)](),this[t(423)]=new MutationObserver(e=>{const n=t;e[n(432)](t=>{const e=n;t[e(533)][e(432)](t=>{const n=e;t[n(420)]===Node[n(459)]&&this.handleRemovedElement(t)})})}),this.mutationObserver[t(477)](document[t(530)],{childList:!0,subtree:!0}),this[t(443)]?.debug&&console.log(t(528)))}[Jt(425)](t){const e=Jt,n=t.getAttribute(e(496));if(n)return void this[e(542)](n);t[e(491)](e(489))[e(432)](t=>{const n=t[e(493)]("data-adstage-slot-id");n&&this.autoDestroy(n)})}[Jt(542)](t){const e=Jt;if(this[e(453)][e(490)](t))try{this[e(453)][e(463)](t),this._config?.[e(488)]&&console[e(494)]("🧹 Auto-cleanup: slot "+t+e(480))}catch(n){this[e(443)]?.[e(488)]&&console.warn(e(520)+t+":",n)}}[Jt(452)](){const t=Jt,e=this[t(443)]?.[t(488)];this[t(423)]&&(this[t(423)][t(416)](),this[t(423)]=null),this.slots[t(440)](),this.advertisementEventTracker=null,this.adRenderer=null,this[t(412)]=!1,this._config=null,e&&console[t(494)](t(445))}}var $t=ee;function te(){var t=["getEnabledModules","256989fwIREb","updateConfig","isModuleEnabled","getApiHeaders","development","isReady","4167428lgrejs","init","🔄 Config updated","baseUrl","20294080BVDDiT","7030513grsFBZ","debug","config","✅ Config module initialized (sync mode)","3640095MbyXzh","_isReady","getApiEndpoint","3XwbinP","_organizationInfo","log","ads","getConfig","1846278xfaarG","_config","Config module not initialized","events","apiKey","modules","2580942AgoWAB","includes","setBaseUrl","getBaseUrl"];return(te=function(){return t})()}function ee(t,e){var n=te();return(ee=function(t,e){return n[t-=255]})(t,e)}!function(){for(var t=ee,e=te();;)try{if(674936===parseInt(t(278))/1+-parseInt(t(267))/2+parseInt(t(262))/3*(-parseInt(t(284))/4)+-parseInt(t(259))/5+-parseInt(t(273))/6+parseInt(t(255))/7+parseInt(t(288))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=ee;this[t(260)]=!1,this[t(268)]=null,this[t(263)]=null}[$t(285)](t){var e=$t;this[e(268)]={timeout:3e4,debug:!1,modules:[e(265),e(270),e(257)],...t},t.baseUrl&&Z[e(275)](t[e(287)]),this._isReady=!0,t[e(256)]&&console[e(264)](e(258),{modules:this._config[e(272)],endpoint:Z[e(276)](),mode:e(282)})}[$t(283)](){return this[$t(260)]}[$t(266)](){return this._config}getOrganizationInfo(){return this[$t(263)]}[$t(261)](){return Z[$t(276)]()}isDebugMode(){return this._config?.debug||!1}[$t(277)](){var t=$t;return this[t(268)]?.[t(272)]||[]}[$t(280)](t){var e=$t;return this[e(277)]()[e(274)](t)}[$t(279)](t){var e=$t;if(!this[e(268)])throw new Error(e(269));this[e(268)]={...this._config,...t},this.isDebugMode()&&console[e(264)](e(286),t)}[$t(281)](){var t=$t;if(!this[t(268)]?.[t(271)])throw new Error("API key not available");return U.create(this[t(268)][t(271)])}}const se=ie;function ie(t,e){const n=re();return(ie=function(t,e){return n[t-=366]})(t,e)}function re(){const t=["cookieEnabled","_userProvidedDeviceInfo","1292100yOLrjf","getPlatform","other","ko-KR","5407682diGrro","getAutoDetectedDeviceInfo","getViewportInfo","userAgent","platform","setDeviceInfo","tablet","Desktop Web","onLine","setDeviceProperty","10FrAYoD","522180UdyxhP","toLowerCase","498231tNYKdV","getDetailedInfo","height","16CFESye","language","test","8217850mxoBnh","0x0","mobile","4856859lEZdiM","6NtWdVV","clearDeviceInfo","8uLpKSC","isMobile","SSR","width","8969521oXaadO","mapPlatformForEvents","isBrowser"];return(re=function(){return t})()}!function(){const t=ie,e=re();for(;;)try{if(988886===parseInt(t(381))/1+-parseInt(t(396))/2+-parseInt(t(398))/3*(-parseInt(t(372))/4)+-parseInt(t(366))/5*(parseInt(t(370))/6)+parseInt(t(385))/7*(parseInt(t(401))/8)+-parseInt(t(369))/9*(-parseInt(t(395))/10)+-parseInt(t(376))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static getDeviceInfo(){const t=ie;return{...oe[t(386)](),...oe[t(380)]}}static[se(386)](){const t=se;if(!w[t(378)]())return{category:t(383),platform:t(374),model:t(374),osVersion:t(374)};const e=navigator[t(388)][t(397)]();let n="desktop";/tablet|ipad/[t(403)](e)?n=t(391):z[t(373)]()&&(n=t(368));const s=z[t(382)]();return{category:n,platform:oe[t(377)](s),model:navigator[t(389)],osVersion:navigator[t(389)]}}static[se(390)](t){oe[se(380)]={...oe._userProvidedDeviceInfo,...t}}static[se(394)](t,e){oe[se(380)][t]=e}static[se(371)](){oe[se(380)]={}}static getUserDeviceInfo(){return{...oe[se(380)]}}static[se(377)](t){const e=se;switch(t){case"ios":return"iOS";case"android":return"Android";case"web":return"Mobile Web";case"desktop":return e(392);default:return"Unknown"}}static[se(399)](){const t=se;if(!w[t(378)]())return{userAgent:t(374),language:"ko-KR",platform:t(374),cookieEnabled:!1,onLine:!0,screenResolution:t(367),viewportSize:t(367)};const e=w[t(387)]();return{userAgent:navigator.userAgent,language:navigator[t(402)]||t(384),platform:navigator.platform,cookieEnabled:navigator[t(379)],onLine:navigator[t(393)],screenResolution:screen[t(375)]+"x"+screen[t(400)],viewportSize:e[t(375)]+"x"+e[t(400)]}}}oe[se(380)]={};const ae=de;function ce(){const t=["_userProperties","928674RykmXW","getCurrentUserProperties","1899482daZDBB","setUserProperty","854517vuKjuT","8vpYnoQ","567643yPljSr","UTC","143pdQmkl","getUserInfo","963625hqVNvk","ko-KR","isBrowser","6dMzLuK","getBaseUserInfo","estimateLocation","timeZone","extractCountryFromLanguage","110370ZeFuuc","12MEQeCj","2cZTLxM","8cAHUht","setUserProperties","2540867wnEwkg","DateTimeFormat"];return(ce=function(){return t})()}function de(t,e){const n=ce();return(de=function(t,e){return n[t-=382]})(t,e)}!function(){const t=de,e=ce();for(;;)try{if(358700===-parseInt(t(393))/1*(parseInt(t(407))/2)+parseInt(t(391))/3*(parseInt(t(392))/4)+parseInt(t(397))/5*(-parseInt(t(400))/6)+-parseInt(t(384))/7*(-parseInt(t(382))/8)+-parseInt(t(387))/9+parseInt(t(405))/10*(parseInt(t(395))/11)+-parseInt(t(406))/12*(-parseInt(t(389))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ae(396)](){const t=ae;return{...le[t(401)](),...le[t(386)]}}static[ae(401)](){const t=ae;if(!w[t(399)]())return{language:t(398),country:"KR"};const e=navigator.language||t(398);return{language:e,country:le[t(404)](e)}}static[ae(404)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t.split("-")[0]]||"KR"}static[ae(383)](t){const e=ae;le[e(386)]={...le[e(386)],...t}}static[ae(390)](t,e){le[ae(386)][t]=e}static clearUserProperties(){le._userProperties={}}static[ae(388)](){return{...le._userProperties}}static[ae(402)](){const t=ae;if(!w[t(399)]())return{timezone:t(394),estimatedCountry:"KR"};const e=Intl[t(385)]().resolvedOptions()[t(403)];return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function ue(){const t=["447310WpJUrL","2583930Iljrzc","18936291VNvVMj","4CUjQiZ","adstage_user_id","77gZTGCn","getSessionDuration","now","269610mYrMUz","removeItem","9yNhagn","508098XyuIeF","isBrowser","getSessionStats","3637510cfgFcN","18YasghH","getItem","getSessionId","adstage_session_id","clearUserId","getUserId","toString","_userId","session_","isNewSession","adstage_session_start","substr","isSessionExpired","setUserId","177248hEEVzw","setItem","random","_sessionStartTime","ssr_session_"];return(ue=function(){return t})()}le[ae(386)]={};const pe=he;function he(t,e){const n=ue();return(he=function(t,e){return n[t-=199]})(t,e)}!function(){const t=he,e=ue();for(;;)try{if(766526===-parseInt(t(206))/1+parseInt(t(232))/2*(parseInt(t(208))/3)+parseInt(t(201))/4*(-parseInt(t(212))/5)+-parseInt(t(209))/6*(parseInt(t(203))/7)+parseInt(t(227))/8*(parseInt(t(213))/9)+parseInt(t(199))/10+parseInt(t(200))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{static[pe(215)](){const t=pe;if(!w[t(210)]())return t(231)+Date.now();const e=sessionStorage[t(214)]("adstage_session_id");if(e)return e;const n=t(221)+Math[t(229)]()[t(219)](36)[t(224)](2,9)+"_"+Date[t(205)]();return sessionStorage[t(228)](t(216),n),!fe[t(230)]&&(fe._sessionStartTime=Date[t(205)](),w[t(210)]()&&sessionStorage.setItem(t(223),String(fe[t(230)]))),n}static[pe(226)](t){const e=pe;fe[e(220)]=t,w[e(210)]()&&localStorage[e(228)](e(202),t)}static getUserId(){const t=pe;if(fe[t(220)])return fe[t(220)];if(w[t(210)]()){const e=localStorage[t(214)]("adstage_user_id");if(e)return fe[t(220)]=e,e}}static[pe(217)](){const t=pe;fe._userId=void 0,w[t(210)]()&&localStorage[t(207)]("adstage_user_id")}static getSessionInfo(){const t=pe,e=fe[t(215)](),n=fe[t(218)](),s=fe[t(222)]();return{sessionId:e,userId:n,sessionDuration:fe.getSessionDuration(),isNewSession:s}}static[pe(222)](){const t=pe;if(!w[t(210)]())return!0;const e=sessionStorage[t(214)](t(216)),n=sessionStorage[t(214)](t(223));return!e||!n}static[pe(204)](){const t=pe;if(!w.isBrowser())return 0;const e=sessionStorage.getItem(t(223));return e?Date[t(205)]()-parseInt(e,10):0}static refreshSession(){const t=pe;return w[t(210)]()&&(sessionStorage[t(207)](t(216)),sessionStorage[t(207)](t(223))),fe._sessionStartTime=void 0,fe[t(215)]()}static[pe(225)](t=24){return fe.getSessionDuration()>60*t*60*1e3}static[pe(211)](){const t=pe,e=fe[t(215)](),n=fe[t(218)](),s=fe[t(204)](),i=fe[t(225)](),r=fe[t(222)]();let o;if(w[t(210)]()){const e=sessionStorage[t(214)](t(223));o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:i,isNewSession:r}}}const ge=me;function me(t,e){const n=Ie();return(me=function(t,e){return n[t-=277]})(t,e)}function Ie(){const t=["Event tracking failed: ","apiKey","4RbxzAj","getUserDeviceInfo","_isReady","getCurrentUserProperties","✅ Event tracked:","❌ Failed to track event:","322824IJAybW","setDeviceProperty","517940BnovYW","36WbtYdB","📱 Device property set:","warn","debug","_config","3429804UXCAQn","setDeviceInfo","init","👤 User ID set:","status","161784YJBVbh","98tyXarA","isReady","setUserProperties","events","getUserId","📱 Device info set:","Event data:","getDeviceInfo","error","📊 Events module initialized","getUserProperties","getUserInfo","clearDeviceInfo","track","sendEventToServer","4526770UIrKGs","API key not configured for event tracking.","setUserId","log","1607979UlSlqS","create","statusText","POST","2168595xwRGSF","stringify"];return(Ie=function(){return t})()}!function(){const t=me,e=Ie();for(;;)try{if(339358===-parseInt(t(289))/1+parseInt(t(300))/2+-parseInt(t(320))/3*(-parseInt(t(281))/4)+-parseInt(t(277))/5+-parseInt(t(295))/6+parseInt(t(301))/7*(-parseInt(t(287))/8)+parseInt(t(290))/9*(parseInt(t(316))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{constructor(){const t=me;this[t(283)]=!1,this[t(294)]=null}[ge(297)](t){const e=ge;this[e(294)]=t,this[e(283)]=!0,t[e(293)]&&console[e(319)](e(310))}[ge(302)](){return this[ge(283)]}getConfig(){return this[ge(294)]}[ge(318)](t){const e=ge;fe[e(318)](t),this[e(294)]?.[e(293)]&&console[e(319)](e(298),t)}[ge(305)](){return fe[ge(305)]()}[ge(303)](t){const e=ge;le.setUserProperties(t),this._config?.[e(293)]&&console[e(319)]("👤 User properties set:",t)}[ge(311)](){return le[ge(284)]()}[ge(296)](t){const e=ge;oe[e(296)](t),this[e(294)]?.[e(293)]&&console.log(e(306),t)}[ge(288)](t,e){const n=ge;oe[n(288)](t,e),this[n(294)]?.[n(293)]&&console[n(319)](n(291),t,e)}[ge(313)](){const t=ge;oe.clearDeviceInfo(),this[t(294)]?.[t(293)]&&console[t(319)]("📱 User provided device info cleared")}[ge(282)](){return oe[ge(282)]()}getDeviceInfo(){return oe[ge(308)]()}[ge(312)](){return le.getUserInfo()}[ge(284)](){return le[ge(284)]()}async[ge(314)](t,e){const n=ge;if(this._isReady)if(this[n(294)]?.apiKey)try{const s={eventName:t,userId:fe.getUserId(),sessionId:fe.getSessionId(),sdkVersion:A(),device:oe[n(308)](),user:le[n(312)](),params:e||{}};await this[n(315)](s),this[n(294)][n(293)]&&console[n(319)](n(285),t,e)}catch(s){console[n(309)](n(286),s),this._config.debug&&console.error(n(307),{eventName:t,properties:e})}else console[n(292)](n(317));else console[n(292)]("Events module not initialized. Call AdStage.init() first.")}async[ge(315)](t){const e=ge,n=await fetch(Z[e(304)][e(314)](),{method:e(323),headers:{...U[e(321)](this[e(294)][e(280)]),"Content-Type":"application/json"},body:JSON[e(278)](t)});if(!n.ok)throw new Error(e(279)+n[e(299)]+" "+n[e(322)])}}const ye=we;function be(){const t=["1875225MRVTHl","getInstance","development","API key is required for AdStage initialization","apiKey","🚀 AdStage SDK initialized (sync mode)","AdStage not initialized. Call AdStage.init() first.","2.0.0","8339800GitDZF","463oqYDQk","10791153oKxvDe","log","📊 AdStage Debug: 현재 viewable 추적 상태","init","clearAdViewable","events","isReady","from","8wHqqwc","setBaseUrl","getConfig","substring","_config","_isInitialized","ads","instance","clear","10179240VhBFqV","config","baseUrl","158892RTCbtG","🌐 API endpoint configured:","debug","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","63rNcotz","3478NOWOqJ","...","function","2719926CSsqyj"];return(be=function(){return t})()}function we(t,e){const n=be();return(we=function(t,e){return n[t-=481]})(t,e)}!function(){const t=we,e=be();for(;;)try{if(918239===-parseInt(t(518))/1*(-parseInt(t(505))/2)+parseInt(t(504))/3*(-parseInt(t(500))/4)+parseInt(t(509))/5+-parseInt(t(508))/6+-parseInt(t(517))/7+-parseInt(t(488))/8*(-parseInt(t(519))/9)+parseInt(t(497))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ke{constructor(){const t=we;this[t(493)]=!1,this._config=null,this[t(498)]=new ne,this[t(494)]=new Gt,this[t(485)]=new ve}static[ye(483)](t){const e=ye;!ke[e(495)]&&(ke[e(495)]=new ke);const n=ke[e(495)];if(!t[e(513)])throw new Error(e(512));n[e(492)]={timeout:3e4,debug:!1,modules:[e(494),e(485),e(498)],...t},n[e(492)][e(499)]&&(Z[e(489)](n[e(492)].baseUrl),t[e(502)]&&console[e(481)](e(501),n[e(492)].baseUrl));const s=n._config.modules||[e(494),e(485),e(498)];for(const t of s){const s=n[t];s&&typeof s[e(483)]===e(507)&&s[e(483)](n[e(492)])}n[e(493)]=!0,t[e(502)]&&console[e(481)](e(514),{version:e(516),modules:s,apiKey:t[e(513)][e(491)](0,8)+e(506),mode:e(511)})}static[ye(486)](){const t=ye;return ke[t(495)]?.[t(493)]||!1}static[ye(490)](){const t=ye;return ke[t(495)]?._config||null}static[ye(510)](){const t=ye;if(!ke[t(495)])throw new Error(t(515));return ke[t(495)]}static get[ye(494)](){const t=ye;return ke.getInstance()[t(494)]}static get[ye(485)](){const t=ye;return ke[t(510)]()[t(485)]}static get[ye(498)](){const t=ye;return ke[t(510)]()[t(498)]}static reset(){const t=ye;ke[t(495)]&&(ke.instance._isInitialized=!1,ke[t(495)][t(492)]=null)}}function xe(t,e){var n=Se;return ke[n(227)]()?ke[n(235)][n(238)](t,e):(console[n(224)](n(220)),Promise[n(222)]())}function Ee(t){var e=Se;ke[e(227)]()?ke[e(235)][e(231)](t):console[e(224)](e(220))}function Se(t,e){var n=Ae();return(Se=function(t,e){return n[t-=220]})(t,e)}function Ae(){var t=["243yELYRR","track","setUserProperties","AdStage not initialized. Call AdStage.init() first.","getUserProperties","resolve","13751748XrYRym","warn","getUserId","5222845ntRqOs","isReady","464926ItSYIZ","1397092cYAuSL","17548uPJxEN","setUserId","2mmPWCz","24254650TiPoxp","6cpAgXd","events","13681792heVTiP"];return(Ae=function(){return t})()}function Te(){var t=Se;if(ke[t(227)]())return ke.events[t(225)]();console[t(224)]("AdStage not initialized. Call AdStage.init() first.")}function Ce(t){var e=Se;ke[e(227)]()?ke[e(235)][e(239)](t):console[e(224)](e(220))}function De(){var t=Se;if(ke[t(227)]())return ke[t(235)][t(221)]();console[t(224)]("AdStage not initialized. Call AdStage.init() first.")}ke[ye(502)]={clearAllViewable:()=>{const t=ye;lt[t(496)](),console[t(481)](t(503))},clearAdViewable:(t,e)=>{const n=ye;lt[n(484)](t,e),console[n(481)]("✅ AdStage Debug: 광고 "+t+"("+e+")의 viewable 추적 초기화됨")},getViewableStatus:()=>{const t=ye;console[t(481)](t(482),{trackedCount:lt.viewableTracker.size,trackedItems:Array[t(487)](lt.viewableTracker)})}},function(){for(var t=Se,e=Ae();;)try{if(881973===-parseInt(t(232))/1*(parseInt(t(229))/2)+parseInt(t(237))/3*(parseInt(t(230))/4)+-parseInt(t(226))/5*(-parseInt(t(234))/6)+parseInt(t(228))/7+parseInt(t(236))/8+parseInt(t(223))/9+-parseInt(t(233))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Re=e(null);function ze({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&ke.reset(),ke.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};s(()=>{i&&!r&&u(i)},[i,r]);const p={isInitialized:r,config:a,initialize:u,reset:()=>{try{ke.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Re.Provider,{value:p,children:e})}function Be(){const t=i(Re);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Me(){const{isInitialized:t}=Be();return t?ke:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Le(t,e){var n=Ue();return(Le=function(t,e){return n[t-=139]})(t,e)}function Ue(){var t=["217808GcETsp","24700368tRXfuZ","6LZeRMO","40giukOF","1773IzDPoM","76aJYgPZ","369qjCmYY","1975897gwdUzh","1056174TsTWtY","8935380cBBmJN","994EugIzw"];return(Ue=function(){return t})()}!function(){for(var t=Le,e=Ue();;)try{if(763502===parseInt(t(140))/1*(-parseInt(t(143))/2)+parseInt(t(145))/3*(-parseInt(t(146))/4)+parseInt(t(144))/5*(-parseInt(t(149))/6)+-parseInt(t(148))/7+parseInt(t(141))/8*(parseInt(t(147))/9)+-parseInt(t(139))/10+parseInt(t(142))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Pe=Ne;function Ne(t,e){const n=Ve();return(Ne=function(t,e){return n[t-=130]})(t,e)}function Ve(){const t=["70077FJhioM","undefined","761247IWDxiu","76MDnECl","ads","110JXsUoK","2.0.0","163548fnICYq","310HzTDej","40qYHElE","6953jaonsC","AdStage","230LRRECt","8777447Dqvmuy","events","14997384kWkVps","config","309089zdldJc"];return(Ve=function(){return t})()}!function(){const t=Ne,e=Ve();for(;;)try{if(654383===parseInt(t(144))/1*(-parseInt(t(146))/2)+parseInt(t(134))/3*(-parseInt(t(137))/4)+-parseInt(t(139))/5*(-parseInt(t(141))/6)+parseInt(t(147))/7+-parseInt(t(143))/8*(-parseInt(t(136))/9)+-parseInt(t(142))/10*(-parseInt(t(133))/11)+-parseInt(t(131))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Oe=Pe(140),Fe=[Pe(138),Pe(130),Pe(132)];typeof window!==Pe(135)&&(window[Pe(145)]=ke);export{ke as AdStage,ze as AdStageProvider,Oe as SDK_VERSION,Fe as SUPPORTED_MODULES,Te as getUserId,De as getUserProperties,Ee as setUserId,Ce as setUserProperties,xe as track,Be as useAdStageContext,Me as useAdStageInstance};
|
|
1
|
+
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.containerId);if(!s)return;const i=document[n(416)](n(432));i[n(429)]=n(403);const r=t[n(433)],o=s[n(444)]||s;if(r)i[n(448)][n(431)]="100%",i[n(448)][n(413)]=String(r);else{const e=t[n(410)],s={width:e?.[n(431)],height:e?.height},{width:r,height:a}=this[n(404)](o,s,{debug:this.debug});i[n(448)][n(431)]=r,i.style[n(413)]=a}const a=document[n(416)](n(432));a[n(429)]=n(427),a[n(448)][n(436)]=Et.createTextAdStyles(!1),Et[n(414)](a,e);const c=t.config?.maxLines;c&&"number"==typeof c&&(a[n(448)][n(407)]=n(441),a.style.webkitLineClamp=String(c),a[n(448)].webkitBoxOrient=n(422),a.style[n(442)]=n(418)),i[n(426)](a),it[n(421)](i,e,t,()=>this[n(446)](),this.debug,n(438)),s[n(420)]="",s[n(426)](i),this[n(447)]&&console[n(412)]("✨ Single text ad rendered: "+e[n(440)])}async renderMultipleAds(t,e){const n=Dt,s=document.getElementById(t.containerId);if(!s)throw new Error(n(417)+t[n(401)]);const i=this[n(446)](),r={autoSlideInterval:(t[n(410)]?.[n(402)]||5e3)/1e3,...t.config,optimizedHeight:t[n(433)],aspectRatio:t.aspectRatio},o=Ct[n(411)](t,e,r,i,this.debug);o&&(s[n(420)]="",s[n(426)](o),this[n(447)]&&console.log("✨ Text transition created for slot: "+t.id+n(430)+e[n(424)]+n(445)))}}const zt=Lt;function Lt(t,e){const n=Ut();return(Lt=function(t,e){return n[t-=463]})(t,e)}function Ut(){const t=["VIEWABLE","2118267kylaNw","metadata","Click to unmute","100%","🎬 Trying muted autoplay fallback...","cssText","🎬 Single video rendered for VIDEO slot: ","alt","playsinline","Container not found: ","log","imageUrl","paused","textContent","\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n ","customControls","position","_id","innerHTML","appendChild","Video load failed:","relative","renderMultipleAds","debug","loadeddata","getElementById","play","\n pointer-events: none;\n ","error","loadedmetadata","height","scale(1.1)","videoUrl","hidePlayButton","stopPropagation","8pWXYmS","containerId","4136148HscvPP","Video","174xZtusV","addEventListener","115028SwRHKj","renderVideoElementDirect","div","src","1388PhDEVC","renderAdElement","style","muted","video","contain"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","unmuted","Click to mute","width","1770775HjrLMn","enabled","🎬 User explicitly enabled controls, overriding default","🔊 Video mute toggled: ","head","title","img","controls","🎬 Video can play, attempting autoplay...",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ',"button","🎬 Autoplay completely failed:","catch","🎬 Video controls setting:","🎬 Single video ad rendered: ","adstage-video-container","autoplay",", loop: ","createEventTrackingCallback","none","adstage-video-default-controls","objectFit","rgba(0, 0, 0, 0.7)"," !important;\n }\n ","createElement","Video fallback","🎬 Video data loaded, attempting autoplay...","🎬 Final video settings:","block"," (autoplay: ","preload","background","adstage-video-mute-button","hideMuteButton","className","VIDEO","setAttribute","hideControls","warn"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","loop"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","hideRemainingTime","🎬 Video metadata loaded, attempting autoplay...","360px",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',"Video thumbnail","scale(1)"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","addClickEventForRenderer","click","display","getDefaultHeight","disabled (default)"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ",", muted: ","rgba(0, 0, 0, 0.9)","\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ","1030438IVLtpC","⚠️ No video advertisements available for slot: ","3555482mVvpPm","mouseenter","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","hideFullscreenButton"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: "];return(Ut=function(){return t})()}!function(){const t=Lt,e=Ut();for(;;)try{if(357677===-parseInt(t(494))/1+parseInt(t(566))/2+parseInt(t(492))/3*(parseInt(t(498))/4)+parseInt(t(508))/5+-parseInt(t(490))/6+parseInt(t(568))/7+parseInt(t(488))/8*(-parseInt(t(574))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Mt extends mt{constructor(t=!1,e){super(r[Lt(543)],t,e)}[zt(560)](){return zt(552)}async[zt(499)](t,e){const n=zt,s=document[n(478)](t[n(489)]);if(!s)return;const i=document[n(532)](n(496));i[n(542)]=n(523),i[n(500)][n(579)]="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this[n(495)](i,e,t),s[n(471)]="",s.appendChild(i),this.debug&&console[n(463)](n(522)+e[n(470)])}async[zt(475)](t,e){const n=zt,s=document[n(478)](t[n(489)]);if(!s)throw new Error(n(583)+t[n(489)]);if(e.length>0){const i=e[0],r=document[n(532)](n(496));r.className=n(523),r[n(500)][n(579)]=n(570),this[n(495)](r,i,t),s[n(471)]="",s[n(472)](r);const o=this[n(526)]();setTimeout(()=>{const e=n;o(i._id,t.id,u[e(573)])},100),this[n(476)]&&console[n(463)](n(580)+t.id+" ("+i[n(470)]+")")}else this[n(476)]&&console[n(546)](n(567)+t.id)}renderVideoElementDirect(t,e,n){const s=zt;t[s(500)][s(469)]=s(474);const i=document.createElement(s(502));i[s(500)][s(507)]=s(577),i.style[s(483)]=s(577),i[s(500)][s(529)]=s(503),i[s(538)]=s(575);const r=n.config;if(this[s(476)]&&console[s(463)]("🎬 Video config received:",r),i[s(515)]=!1,i.autoplay=!1!==r?.[s(524)],i[s(501)]=!0,i.loop=!1!==r?.[s(548)],this[s(476)]&&console.log(s(535),{autoplay:i[s(524)],muted:i[s(501)],loop:i[s(548)],controls:i[s(515)]}),!1!==r?.[s(582)]&&i[s(544)](s(582),""),!0===r?.[s(515)]&&(i.controls=!0,this[s(476)]&&console[s(463)](s(510))),r?.[s(545)])i[s(515)]=!1,i[s(500)][s(579)]+=s(480);else if(r?.customControls){if(i[s(515)]){const t=document[s(532)](s(500));t[s(466)]="\n video::-webkit-media-controls-play-button {\n display: "+(r.customControls[s(486)]?s(527):s(536))+s(556)+(r[s(468)].hideProgressBar?s(527):s(536))+s(572)+(r[s(468)].hideCurrentTime?s(527):s(536))+s(504)+(r.customControls[s(550)]?"none":s(536))+s(562)+(r[s(468)].hideVolumeSlider?s(527):"block")+s(547)+(r[s(468)][s(541)]?"none":s(536))+s(549)+(r[s(468)][s(571)]?s(527):s(536))+s(531),document.head[s(472)](t)}}else if(i[s(515)]){const t=document.createElement(s(500));t.id=s(528),t[s(466)]=s(467),!document[s(478)](s(528))&&document[s(512)].appendChild(t)}this[s(476)]&&console[s(463)](s(521),i[s(515)]?s(509):s(561));const o=document[s(532)](s(518));o[s(542)]=s(540),o[s(500)][s(579)]=s(565),r?.[s(545)]&&(o[s(500)][s(559)]=s(527));const a=()=>{const t=s,e=t(517),n=t(553);o[t(471)]=i[t(501)]?e:n,o[t(513)]=i[t(501)]?t(576):t(506)};if(a(),o[s(493)](s(558),t=>{const e=s;t[e(487)](),i[e(501)]=!i[e(501)],a(),this[e(476)]&&console[e(463)](e(511)+(i[e(501)]?e(501):e(505)))}),o[s(493)](s(569),()=>{const t=s;o.style.background=t(564),o[t(500)].transform=t(484)}),o[s(493)]("mouseleave",()=>{const t=s;o[t(500)][t(539)]=t(530),o[t(500)].transform=t(555)}),e[s(485)]){i[s(497)]=e[s(485)];const t=()=>{const t=s;i[t(524)]&&i.muted&&i[t(465)]&&i[t(479)]()[t(520)](e=>{const n=t;this[n(476)]&&(console[n(546)]("🎬 Auto-play was prevented:",e),console[n(546)](n(578))),i.muted=!0,i[n(479)]()[n(520)](t=>{const e=n;this[e(476)]&&console[e(481)](e(519),t)})})};i[s(493)](s(482),()=>{const e=s;this[e(476)]&&console[e(463)](e(551)),t()}),i[s(493)]("canplay",()=>{const e=s;this.debug&&console.log(e(516)),t()}),i[s(493)](s(477),()=>{const e=s;this[e(476)]&&console[e(463)](e(534)),t()}),setTimeout(()=>{this.debug&&console.log("🎬 Initial autoplay attempt after timeout..."),t()},100)}else if(e[s(464)]){const n=document[s(532)](s(514));return n[s(497)]=e[s(464)],n[s(500)][s(507)]="100%",n[s(500)].height=s(577),n[s(500)][s(529)]=s(503),n[s(581)]=e.title||"Video thumbnail",void t[s(472)](n)}it[s(557)](i,e,n,()=>this[s(526)](),this[s(476)],s(491)),i.addEventListener(s(481),i=>{const r=s;if(console[r(481)](r(473),i),e[r(464)]){const s=document[r(532)]("img");s[r(497)]=e.imageUrl,s[r(500)][r(507)]=r(577),s.style.height=r(577),s.style.objectFit=r(503),s[r(581)]=e.title||r(554),it.addClickEventForRenderer(s,e,n,()=>this[r(526)](),this.debug,r(533)),t.innerHTML="",t[r(472)](s)}}),t[s(472)](i),t[s(472)](o),this[s(476)]&&console[s(463)]("🎬 Video element created for ad: "+e._id+s(537)+i[s(524)]+s(563)+i.muted+s(525)+i[s(548)]+")")}}const Ot=Nt;function Vt(){const t=["adstage-ad adstage-native-ad","length","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","addEventListener","div","_id","getElementById","34139WHbwzP","50CEYEiQ","textContent","3VRJFBF","117ETRTpp","⚠️ No native advertisements available for slot: ","4710228yTZdTo","title","innerHTML","200px","10918KaMobr","style","log","containerId","src","appendChild","1393332PcXySu","mouseleave","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","🏠 Native ad rendered (first of ","\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n ","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","imageUrl","1240BToIxN","🏠 Single native ad rendered: ","renderMultipleAds","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","img","9439496ekaDhP","warn","advertisementEventTracker","450160wEXWLq","createElement","#3b82f6","debug","Native click tracked for ad: ","cssText","open","linkUrl","474180tZmoZO","Learn More","mouseenter","_blank","): ","className","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","Native Advertisement","button"];return(Vt=function(){return t})()}function Nt(t,e){const n=Vt();return(Nt=function(t,e){return n[t-=130]})(t,e)}!function(){const t=Nt,e=Vt();for(;;)try{if(624076===parseInt(t(134))/1*(parseInt(t(180))/2)+parseInt(t(182))/3*(parseInt(t(140))/4)+-parseInt(t(163))/5+parseInt(t(130))/6+-parseInt(t(179))/7*(-parseInt(t(147))/8)+-parseInt(t(183))/9*(parseInt(t(155))/10)+-parseInt(t(152))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft extends mt{constructor(t=!1,e){super(r.NATIVE,t,e)}getDefaultHeight(){return Nt(133)}async renderAdElement(t,e){const n=Nt,s=document[n(178)](t[n(137)]);if(!s)return;const i=document[n(156)](n(176));if(i[n(168)]=n(172),i.style.cssText=n(145),e.title){const t=document[n(156)]("h3");t[n(181)]=e[n(131)],t[n(135)][n(160)]=n(169),i[n(139)](t)}if(e[n(181)]){const t=document[n(156)]("p");t.textContent=e[n(181)],t[n(135)][n(160)]=n(174),i[n(139)](t)}if(e[n(146)]){const t=document[n(156)]("div");t.style[n(160)]=n(142);const s=document.createElement(n(151));s[n(138)]=e[n(146)],s.alt=e[n(131)]||n(170),s[n(135)][n(160)]=n(150),t[n(139)](s),i[n(139)](t)}if(e[n(162)]){const t=document[n(156)](n(171));t[n(181)]=n(164),t[n(135)][n(160)]=n(144),t[n(175)]("click",()=>{const t=n;this[t(154)]&&console[t(136)](t(159)+e[t(177)]),window[t(161)](e[t(162)],t(166))}),t[n(175)](n(165),()=>{t[n(135)].backgroundColor="#2563eb"}),t[n(175)](n(141),()=>{const e=n;t[e(135)].backgroundColor=e(157)}),i[n(139)](t)}s[n(132)]="",s[n(139)](i),this[n(158)]&&console.log(n(148)+e[n(177)])}async[Ot(149)](t,e){const n=Ot;e[n(173)]>0?(await this.renderAdElement(t,e[0]),this[n(158)]&&console[n(136)](n(143)+e[n(173)]+n(167)+t.id)):this[n(158)]&&console[n(153)](n(184)+t.id)}}const _t=Ht;function Ht(t,e){const n=jt();return(Ht=function(t,e){return n[t-=256]})(t,e)}function jt(){const t=["Escape","🖼️ Interstitial ad rendered (first of ","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","16DBLynY","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ","className","): ","#6b7280","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","advertisementEventTracker","\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ","color","2825436anUAGc","removeEventListener","Interstitial Advertisement","cssText","title","#f3f4f6","_id","8sRqNwl","createElement","renderAdElement","mouseleave","getElementById","84WTaRFv","linkUrl","src","getDefaultHeight","div","textContent","backgroundColor","containerId","renderMultipleAds","7464040mXxGEV","removeChild","632955UckDXb","click","appendChild","button","imageUrl","_blank","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","41966QWjWlV","alt","#374151","debug","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","addEventListener","keydown","head","🖼️ Interstitial ad rendered: ","25591500EziFPb","Get Started","mouseenter","243996qAtKoS","closeInterstitial","log","style","innerHTML","2772WXxgLZ","adstage-interstitial-content","#e5e7eb","adstage-interstitial-overlay","warn","animation","22328uJVvCW","adstage-interstitial-styles","body","🖼️ Interstitial ad closed","INTERSTITIAL"];return(jt=function(){return t})()}!function(){const t=Ht,e=jt();for(;;)try{if(500060===-parseInt(t(291))/1*(parseInt(t(268))/2)+parseInt(t(261))/3+-parseInt(t(322))/4*(parseInt(t(284))/5)+parseInt(t(303))/6*(-parseInt(t(273))/7)+parseInt(t(314))/8*(-parseInt(t(308))/9)+-parseInt(t(282))/10+parseInt(t(300))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Kt extends mt{constructor(t=!1,e){super(r[Ht(318)],t,e)}[_t(276)](){return"400px"}async[_t(270)](t,e){const n=_t;if(!document[n(272)](t[n(280)]))return;const s=document[n(269)](n(277));s.className=n(311),s[n(306)].cssText=n(324);const i=document[n(269)](n(277));i[n(325)]=n(309),i[n(306)][n(264)]=n(259);const r=document[n(269)](n(287));if(r[n(307)]="×",r.style[n(264)]="\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ",r[n(296)]("click",()=>{this[n(304)](s)}),r[n(296)]("mouseenter",()=>{const t=n;r[t(306)][t(279)]=t(310),r[t(306)][t(260)]=t(293)}),r[n(296)]("mouseleave",()=>{const t=n;r.style[t(279)]=t(266),r.style.color=t(256)}),e.imageUrl){const t=document.createElement("img");t[n(275)]=e[n(288)],t[n(292)]=e[n(265)]||n(263),t.style[n(264)]=n(323),i.appendChild(t)}if(e[n(265)]){const t=document[n(269)]("h2");t[n(278)]=e[n(265)],t.style.cssText=n(295),i[n(286)](t)}if(e[n(278)]){const t=document[n(269)]("p");t[n(278)]=e[n(278)],t[n(306)][n(264)]=n(257),i[n(286)](t)}if(e[n(274)]){const t=document[n(269)](n(287));t[n(278)]=n(301),t[n(306)][n(264)]=n(321),t[n(296)]("click",()=>{const t=n;this[t(258)]&&console.log("Interstitial click tracked for ad: "+e._id),window.open(e[t(274)],t(289)),this[t(304)](s)}),t.addEventListener(n(302),()=>{t[n(306)].backgroundColor="#2563eb"}),t[n(296)](n(271),()=>{t[n(306)].backgroundColor="#3b82f6"}),i[n(286)](t)}const o=t=>{const e=n;t.key===e(319)&&(this[e(304)](s),document[e(262)](e(297),o))};if(document.addEventListener("keydown",o),s[n(296)](n(285),t=>{const e=n;t.target===s&&this[e(304)](s)}),!document.getElementById("adstage-interstitial-styles")){const t=document[n(269)]("style");t.id=n(315),t[n(278)]=n(290),document[n(298)][n(286)](t)}i[n(286)](r),s[n(286)](i),document[n(316)][n(286)](s),this.debug&&console[n(305)](n(299)+e[n(267)])}async[_t(281)](t,e){const n=_t;e.length>0?(await this[n(270)](t,e[0]),this[n(294)]&&console.log(n(320)+e.length+n(326)+t.id)):this[n(294)]&&console[n(312)]("⚠️ No interstitial advertisements available for slot: "+t.id)}[_t(304)](t){const e=_t;t[e(306)][e(313)]="fadeOut 0.3s ease-out forwards",setTimeout(()=>{const n=e;t.parentNode&&t.parentNode[n(283)](t)},300),this.debug&&console.log(e(317))}}const Wt=qt;function qt(t,e){const n=Qt();return(qt=function(t,e){return n[t-=448]})(t,e)}function Qt(){const t=["createElement","40dRVAsk","1742GiELwE","renderFallback","calculateOptimalContainerSize","style","11MejXpf","getDefaultHeight","isLoaded","Failed to load image: ","createAdElement","imageUrl","data-adstage-slot-id","910596jyhtGp","calculateAdSize","setAttribute","advertisement","8px","warn","className","⚠️ Container optimization is only supported for BANNER ads, got: ","renderers","naturalHeight","data-adstage-ad-id","35408cKFlbR","renderAdSlider","onerror","303128fNVzpS","initializeRenderers","appendChild","log","getRenderer","renderAd","BANNER","onload","renderMultipleAds","advertisementEventTracker","467796gmwdxc","get","border","videoUrl","renderOptimizedBannerImage","height","img","100%","renderOptimizedBannerImage is only supported for BANNER ads","block","adType","size","No renderer found for ad type: ","padding","[AdRenderer] ","width","textContent","48843skPZue","13867dAKloU","naturalWidth","248094KEFVmH","NATIVE"," renderers","280tghcak","renderAdElement","config","220kPTZxM","display","2044IkCzoX","createPlaceholder","debug","set","VIDEO","video","optimizeContainerForBannerAds","cover","objectFit","1px dashed #ccc","INTERSTITIAL","adstage-ad adstage-","60nyPLXp"];return(Qt=function(){return t})()}!function(){const t=qt,e=Qt();for(;;)try{if(776421===parseInt(t(505))/1*(-parseInt(t(513))/2)+-parseInt(t(507))/3*(-parseInt(t(449))/4)+-parseInt(t(451))/5*(parseInt(t(487))/6)+-parseInt(t(515))/7*(parseInt(t(474))/8)+-parseInt(t(504))/9*(-parseInt(t(510))/10)+parseInt(t(456))/11*(-parseInt(t(463))/12)+parseInt(t(452))/13*(parseInt(t(477))/14))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Yt{constructor(t=!1,e){const n=qt;this[n(471)]=new Map,this[n(517)]=t,this.advertisementEventTracker=e||null,this[n(478)]()}initializeRenderers(){const t=qt;this[t(471)][t(518)](r[t(483)],new bt(this[t(517)],this[t(486)])),this[t(471)][t(518)](r.TEXT,new Pt(this[t(517)],this[t(486)])),this[t(471)].set(r[t(519)],new Mt(this.debug,this[t(486)])),this[t(471)][t(518)](r[t(508)],new Ft(this[t(517)],this[t(486)])),this[t(471)][t(518)](r[t(525)],new Kt(this[t(517)],this[t(486)])),this.debug&&console.log("🏭 AdRenderer factory initialized with "+this[t(471)][t(498)]+t(509))}[Wt(460)](t,e){const n=Wt,s=this[n(481)](t[n(497)]),i=document[n(450)]("div");i[n(469)]=n(448)+String(t[n(497)]).toLowerCase(),i[n(465)](n(473),e._id),i[n(465)](n(462),t.id);const{width:o,height:a}=s[n(464)](i,t[n(512)]||{},e);switch(i[n(455)][n(502)]=o,i.style.height=a,i[n(455)][n(514)]=n(496),t.adType){case r[n(483)]:if(e[n(461)]){const t=document.createElement(n(493));t.src=e[n(461)],t[n(455)][n(502)]=n(494),t.style[n(492)]=n(494),t.style[n(523)]=n(522),i[n(479)](t)}break;case r[n(519)]:if(e.videoUrl){const t=document[n(450)](n(520));t.src=e[n(490)],t[n(455)].width=n(494),t.style[n(492)]=n(494),i[n(479)](t)}break;case r.TEXT:if(e[n(503)]){const t=document[n(450)]("div");t[n(503)]=e[n(503)]||"",t[n(455)][n(500)]=n(467),i[n(479)](t)}break;default:i.style[n(489)]=n(524),i[n(455)].backgroundColor="#f9f9f9",i.textContent=t[n(497)]+" Ad"}return i}[Wt(481)](t){const e=Wt,n=this[e(471)][e(488)](t);if(!n)throw new Error(e(499)+t);return n}[Wt(516)](t,e,n,s,i){const r=Wt;this[r(481)](n)[r(516)](t,e,s,i)}async[Wt(521)](t,e){const n=Wt;if(t.adType!==r[n(483)])return void(this[n(517)]&&console[n(468)](n(470)+t[n(497)]));const s=this[n(481)](r[n(483)]);await s[n(521)](t,e)}async[Wt(475)](t,e){const n=Wt,s=this[n(481)](t[n(497)]);await s[n(485)](t,e)}async[Wt(482)](t){const e=Wt;if(!t[e(466)])throw new Error("No advertisement to render");const n=this[e(481)](t.adType);await n[e(511)](t,t[e(466)]),t[e(458)]=!0}async[Wt(511)](t,e){const n=Wt,s=this[n(481)](t[n(497)]);await s[n(511)](t,e)}[Wt(453)](t){const e=Wt;this[e(481)](t[e(497)])[e(453)](t)}getDefaultHeightForAdType(t){return this[Wt(481)](t).getDefaultHeight()}[Wt(464)](t,e,n,s){const i=Wt;return this[i(481)](e)[i(464)](t,n,s)}loadImageDimensions(t){return new Promise((e,n)=>{const s=qt,i=new Image;i[s(484)]=()=>{const t=s;e({width:i[t(506)],height:i[t(472)]})},i[s(476)]=()=>{n(new Error(s(459)+t))},i.src=t})}async[Wt(491)](t,e,n){const s=Wt;if(n[s(497)]!==r[s(483)])throw new Error(s(495));const i=this[s(481)](r[s(483)]);return await i.renderOptimizedBannerImage(t,e,n)}async[Wt(454)](t,e,n){const s=Wt;if(n!==r.BANNER){const t=this.getRenderer(n);return{width:s(494),height:t[s(457)](),aspectRatio:16/9}}const i=this.getRenderer(r[s(483)]);return await i.calculateOptimalContainerSize(t,e)}[Wt(480)](t,...e){const n=Wt;this[n(517)]&&console[n(480)](n(501)+t,...e)}}const Xt=Zt;function Zt(t,e){const n=Jt();return(Zt=function(t,e){return n[t-=339]})(t,e)}function Jt(){const t=["observe","createAdWithRetry","body","renderAdSlider","nodeType","📊 Fetched specific ad with ID: ","VIDEO","NATIVE","adRenderer","❌ Failed to load ad for slot: ","_config","country","onClick"," removed","list","TEXT","isLoaded","isReady","🚫 Advertisement not found with ID: ","Container not found after ","renderAd","debug","maxLines","destroy","autoDestroy","refreshAdSlot","getAllSlots","controls","warn","getAttribute","getElementById","mutationObserver","string","native"," (attempt ","✅ Ad loaded for slot: ","API key not configured","VIEWABLE","🔍 Ad slot already cleaned up: ","clear","init","autoplay","GET","New advertisement viewable tracked for slot:","loop","now","renderFallback","create","toString","config","🎠 Slider will handle VIEWABLE events for ","[data-adstage-slot-id]","🔍 Auto-cleanup MutationObserver enabled","startSimpleViewabilityTracking","adId","createAd","Auto-cleanup failed for slot "," ads for type: ","delete","INTERSTITIAL","100%","querySelectorAll","4961604QThbAq","autoSlide","set","getSlotById","refresh","undefined","advertisementEventTracker","auto","createAdInternal","Failed to refresh ad slot: ","7NgsWMV","append","📊 Fetched ","Failed to fetch ad data: ","🗑️ Ad slot destroyed: ","banner","log","detail","1JWkXfe","json","advertisement","removedNodes"," attempts: ","Ads module not initialized. Call AdStage.init() first.","handleRemovedElement","values","get","13596540NwNVhx","_id","style","❌ Failed to find element for viewability tracking: ","advertisements","status"," ads automatically","4820755QOtrXT","slots","viewabilityTracker","8598933aOSpNI","_isReady","renderAdElement","adType","length",", filters:","7542096TVURFm","disconnect","apiKey","destroyModule","optimizeContainerForBannerAds","fetchAdData","height","8xJYMkT","muted","광고 생성 중 오류 발생:","getConfig","auto-","width","random","🧹 Auto-cleanup: slot ","containerId","ensureReady","hideControls","from","ms... (attempt ","setAttribute","🔄 Retrying viewability tracking for slot: ","forEach","❌ Failed to track viewable impression:","BANNER","deviceType","🎯 Simple viewability tracking started for slot: ","data-adstage-slot-id","innerHTML","text","language","ELEMENT_NODE","createPlaceholder","1310604qtrDMY","customControls","🔄 Ad slot refreshed: ","824427nZeUjo",". Retrying in ","error","Ad slot not found: "];return(Jt=function(){return t})()}!function(){const t=Zt,e=Jt();for(;;)try{if(529158===-parseInt(t(390))/1*(-parseInt(t(448))/2)+-parseInt(t(451))/3*(-parseInt(t(422))/4)+-parseInt(t(406))/5+parseInt(t(372))/6*(parseInt(t(382))/7)+-parseInt(t(415))/8+-parseInt(t(409))/9+parseInt(t(399))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Gt{constructor(){const t=Zt;this[t(410)]=!1,this._config=null,this[t(407)]=new Map,this[t(378)]=null,this[t(463)]=null,this[t(341)]=null}[Xt(350)](t){const e=Xt;this._config=t,this[e(378)]=new N(Z.getBaseUrl(),t[e(417)],t[e(476)]||!1,this.slots),this[e(463)]=new Yt(t[e(476)]||!1,this.advertisementEventTracker),this.setupAutoCleanup(),this._isReady=!0,t[e(476)]&&console[e(388)]("🎯 Ads module initialized (sync mode) with auto-cleanup")}[Xt(472)](){return this[Xt(410)]}[Xt(425)](){return this._config}[Xt(387)](t,e){const n=Xt;this[n(431)]();const s={width:e?.[n(427)]||n(370),height:e?.[n(421)]||n(379),autoSlide:e?.[n(373)]||!1,slideInterval:e?.slideInterval||5e3,onClick:e?.[n(467)],adId:e?.[n(364)],language:e?.[n(445)],deviceType:e?.[n(440)],country:e?.[n(466)]};return this[n(365)](t,r.BANNER,s)}[Xt(444)](t,e){const n=Xt;this[n(431)]();const s={maxLines:e?.[n(477)]||3,style:e?.[n(401)]||"default",onClick:e?.[n(467)],adId:e?.[n(364)],language:e?.language,deviceType:e?.[n(440)],country:e?.[n(466)]};return this[n(365)](t,r[n(470)],s)}video(t,e){const n=Xt;this.ensureReady();const s={width:e?.[n(427)]||640,height:e?.height||360,autoplay:void 0===e?.[n(351)]||e[n(351)],muted:void 0===e?.[n(423)]||e[n(423)],loop:void 0===e?.[n(354)]||e[n(354)],playsinline:!1!==e?.playsinline,controls:void 0!==e?.[n(482)]&&e[n(482)],hideControls:e?.[n(432)]||!1,customControls:e?.[n(449)],autoSlide:!1,maxAds:1,onClick:e?.[n(467)],...e?.[n(364)]&&{adId:e[n(364)]}};return this.createAd(t,r[n(461)],s)}[Xt(343)](t,e){const n=Xt;return this[n(431)](),this[n(365)](t,r[n(462)],e||{})}interstitial(t,e){const n=Xt;return this[n(431)](),this.createAd(t,r[n(369)],e||{})}[Xt(376)](t){const e=Xt;this[e(431)]();const n=this[e(407)][e(398)](t);if(!n)throw new Error(e(454)+t);this[e(480)](n),this._config?.[e(476)]&&console[e(388)](e(450)+t)}destroy(t){const e=Xt;this[e(431)]();const n=this[e(407)][e(398)](t);if(!n)return void(this._config?.debug&&console[e(388)](e(348)+t));n[e(408)]&&n[e(408)][e(478)]();const s=document[e(340)](n[e(430)]);s&&(s[e(443)]=""),this.slots[e(368)](t),this[e(465)]?.debug&&console.log(e(386)+t)}[Xt(481)](){const t=Xt;return this[t(431)](),Array[t(433)](this[t(407)][t(397)]())}[Xt(375)](t){const e=Xt;return this[e(431)](),this[e(407)][e(398)](t)||null}createAd(t,e,n){const s=Xt;if(!this[s(465)]?.[s(417)])throw new Error("API key not configured");const i="adstage-"+e+"-"+Date[s(355)]()+"-"+Math[s(428)]()[s(358)](36).substr(2,9);return this[s(456)](t,e,n,i,0),i}async[Xt(456)](t,e,n,s,i){const r=Xt,o=[0,50,100,200,500];let a,c=null;if(typeof t===r(342)){if(a=t,c=document[r(340)](t),!c)return i<4?(this[r(465)]?.[r(476)]&&console[r(483)]("Container not found: "+t+r(452)+o[i+1]+r(434)+(i+1)+"/5)"),void setTimeout(()=>{this.createAdWithRetry(t,e,n,s,i+1)},o[i+1])):void console[r(453)](r(474)+5+r(394)+t)}else c=t,a=c.id||r(426)+s,!c.id&&(c.id=a);try{this[r(380)](a,e,n,s,c)}catch(t){console[r(453)](r(424),t)}}[Xt(380)](t,e,n,s,i){const o=Xt;i[o(435)](o(442),s),this[o(463)]?.[o(447)](i,s,e,n,this[o(465)]);const a={id:s,containerId:t,adType:e,width:n[o(427)]||o(370),height:n[o(421)]||(e===r[o(470)]?o(379):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[o(420)](e,n).then(t=>t[0]||null),render:t=>this.adRenderer?.[o(411)](a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this[o(478)](s)};this.slots[o(374)](s,a),this.loadAdContentInBackground(a),this.advertisementEventTracker&&this[o(465)]?.[o(476)]&&console[o(388)]("📊 Advertisement event tracking enabled for slot: "+s)}async loadAdContentInBackground(t){const e=Xt;try{const n=await this[e(420)](t.adType,t[e(359)]);if(!n||0===n.length)return void this[e(463)]?.renderFallback(t);t[e(412)]===r[e(439)]&&n[e(413)]>0&&await(this.adRenderer?.[e(419)](t,n)),n.length>1||t[e(359)]?.[e(373)]?(await(this[e(463)]?.[e(458)](t,n)),this[e(465)]?.debug&&console[e(388)](e(360)+n[e(413)]+e(405))):(t[e(392)]=n[0],await(this[e(463)]?.renderAdElement(t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t[e(471)]=!0,this[e(465)]?.debug&&console[e(388)](e(345)+t.id+" ("+n[e(413)]+" ads)")}catch(n){console.error(e(464)+t.id,n),this[e(463)]?.[e(356)](t)}}[Xt(363)](t,e){const n=(s=0)=>{const i=Zt,r=document.getElementById(t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this[i(465)]?.[i(476)]&&console[i(388)](i(436)+t.id+i(344)+(s+1)+")")):console[i(483)](i(402)+t.id));const o=new H(r,async()=>{await this.handleViewableEvent(e,t)});t[i(408)]=o,this[i(465)]?.debug&&console.log(i(441)+t.id+" (element found)")};n()}async handleViewableEvent(t,e){const n=Xt;try{this[n(378)]&&(await this[n(378)].trackAdvertisementEvent(t[n(400)],e.id,u[n(347)]),this[n(465)]?.debug&&console[n(388)]("✅ Simple viewable impression tracked for ad "+t[n(400)]))}catch(t){console.error(n(438),t)}}async[Xt(420)](t,e){const n=Xt;if(!this[n(465)]?.[n(417)])throw new Error(n(346));if(e[n(364)]){const t=""+Z[n(403)][n(389)](e.adId),s=await fetch(t,{method:n(352),headers:U[n(357)](this[n(465)].apiKey)});if(!s.ok){if(404===s[n(404)])return console[n(483)](n(473)+e[n(364)]),[];throw new Error(n(385)+s[n(404)])}const i=await s[n(391)]();return this._config?.[n(476)]&&console[n(388)](n(460)+e.adId,i),[i]}const s=new URLSearchParams;s[n(383)](n(412),t),e[n(445)]&&s[n(383)](n(445),e.language),e[n(440)]&&s[n(383)]("deviceType",e.deviceType),e[n(466)]&&s[n(383)]("country",e[n(466)]);const i=Z.advertisements[n(469)]()+"?"+s[n(358)](),r=await fetch(i,{method:n(352),headers:U[n(357)](this[n(465)][n(417)])});if(!r.ok)throw new Error(n(385)+r[n(404)]);const o=(await r.json())[n(403)]||[];return this[n(465)]?.debug&&console[n(388)](n(384)+o[n(413)]+n(367)+t+n(414),{language:e.language,deviceType:e.deviceType,country:e[n(466)]}),o}async[Xt(480)](t){const e=Xt;try{const n=await this[e(420)](t[e(412)],t[e(359)]||{});n&&n.length>0&&(t[e(392)]=n[0],await(this[e(463)]?.[e(475)](t)),this[e(378)]&&console[e(388)](e(353),t.id))}catch(n){console[e(453)](e(381)+t.id,n)}}ensureReady(){const t=Xt;if(!this[t(410)])throw new Error(t(395))}setupAutoCleanup(){const t=Xt;typeof window!==t(377)&&typeof document!==t(377)&&(this.mutationObserver&&this[t(341)][t(416)](),this[t(341)]=new MutationObserver(e=>{const n=t;e[n(437)](t=>{const e=n;t[e(393)][e(437)](t=>{const n=e;t[n(459)]===Node[n(446)]&&this.handleRemovedElement(t)})})}),this[t(341)][t(455)](document[t(457)],{childList:!0,subtree:!0}),this[t(465)]?.debug&&console.log(t(362)))}[Xt(396)](t){const e=Xt,n=t[e(339)](e(442));if(n)return void this[e(479)](n);t[e(371)](e(361)).forEach(t=>{const n=e,s=t[n(339)](n(442));s&&this[n(479)](s)})}[Xt(479)](t){const e=Xt,n=this[e(407)][e(398)](t);if(n)try{n[e(408)]&&n[e(408)][e(478)](),this.slots[e(368)](t),this[e(465)]?.debug&&console[e(388)](e(429)+t+e(468))}catch(n){this[e(465)]?.debug&&console[e(483)](e(366)+t+":",n)}}[Xt(418)](){const t=Xt,e=this[t(465)]?.[t(476)];this.mutationObserver&&(this.mutationObserver[t(416)](),this[t(341)]=null),this[t(407)][t(349)](),this[t(378)]=null,this.adRenderer=null,this[t(410)]=!1,this[t(465)]=null,e&&console.log("🗑️ Ads module destroyed")}}var $t=te;function te(t,e){var n=ee();return(te=function(t,e){return n[t-=384]})(t,e)}function ee(){var t=["updateConfig","apiKey","Config module not initialized","_organizationInfo","log","setBaseUrl","getApiEndpoint","events","4478757HRWkEi","1462776pHrluC","_isReady","modules","getEnabledModules","7702415eOqNmb","290181BTagyq","getOrganizationInfo","isModuleEnabled","ads","baseUrl","1040556GzAiZH","1694320MyDYLE","debug","API key not available","create","✅ Config module initialized (sync mode)","getBaseUrl","isReady","isDebugMode","4uEpgCQ","1945514SZjzDG","development","config","🔄 Config updated","_config"];return(ee=function(){return t})()}!function(){for(var t=te,e=ee();;)try{if(852955===parseInt(t(391))/1+parseInt(t(406))/2+-parseInt(t(385))/3*(parseInt(t(405))/4)+parseInt(t(397))/5+-parseInt(t(396))/6+parseInt(t(390))/7+-parseInt(t(386))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=te;this[t(387)]=!1,this[t(410)]=null,this[t(414)]=null}init(t){var e=te;this[e(410)]={timeout:3e4,debug:!1,modules:[e(394),e(384),e(408)],...t},t[e(395)]&&Z[e(416)](t[e(395)]),this[e(387)]=!0,t[e(398)]&&console[e(415)](e(401),{modules:this[e(410)][e(388)],endpoint:Z[e(402)](),mode:e(407)})}[$t(403)](){return this[$t(387)]}getConfig(){return this._config}[$t(392)](){return this[$t(414)]}[$t(417)](){return Z.getBaseUrl()}[$t(404)](){var t=$t;return this[t(410)]?.[t(398)]||!1}[$t(389)](){var t=$t;return this[t(410)]?.[t(388)]||[]}[$t(393)](t){return this.getEnabledModules().includes(t)}[$t(411)](t){var e=$t;if(!this._config)throw new Error(e(413));this[e(410)]={...this._config,...t},this[e(404)]()&&console[e(415)](e(409),t)}getApiHeaders(){var t=$t;if(!this[t(410)]?.[t(412)])throw new Error(t(399));return U[t(400)](this[t(410)][t(412)])}}const se=ie;function ie(t,e){const n=oe();return(ie=function(t,e){return n[t-=408]})(t,e)}!function(){const t=ie,e=oe();for(;;)try{if(196965===-parseInt(t(440))/1+parseInt(t(422))/2*(parseInt(t(421))/3)+-parseInt(t(415))/4*(parseInt(t(431))/5)+-parseInt(t(432))/6+parseInt(t(427))/7*(parseInt(t(409))/8)+parseInt(t(441))/9+parseInt(t(434))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class re{static getDeviceInfo(){const t=ie;return{...re.getAutoDetectedDeviceInfo(),...re[t(428)]}}static[se(412)](){const t=se;if(!k.isBrowser())return{category:"other",platform:"SSR",model:t(408),osVersion:t(408)};const e=navigator.userAgent[t(414)]();let n=t(416);/tablet|ipad/.test(e)?n=t(410):B[t(442)]()&&(n=t(418));const s=B[t(426)]();return{category:n,platform:re[t(417)](s),model:navigator[t(443)],osVersion:navigator[t(443)]}}static[se(445)](t){re._userProvidedDeviceInfo={...re._userProvidedDeviceInfo,...t}}static[se(438)](t,e){re[se(428)][t]=e}static[se(439)](){re[se(428)]={}}static[se(437)](){return{...re._userProvidedDeviceInfo}}static[se(417)](t){const e=se;switch(t){case"ios":return"iOS";case e(444):return e(435);case"web":return e(425);case e(416):return e(423);default:return"Unknown"}}static[se(447)](){const t=se;if(!k[t(430)]())return{userAgent:t(408),language:"ko-KR",platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(429),viewportSize:"0x0"};const e=k[t(411)]();return{userAgent:navigator[t(413)],language:navigator[t(433)]||t(420),platform:navigator[t(443)],cookieEnabled:navigator[t(419)],onLine:navigator[t(424)],screenResolution:screen.width+"x"+screen[t(446)],viewportSize:e[t(436)]+"x"+e[t(446)]}}}function oe(){const t=["platform","android","setDeviceInfo","height","getDetailedInfo","SSR","32lWoSZB","tablet","getViewportInfo","getAutoDetectedDeviceInfo","userAgent","toLowerCase","4zbCDPc","desktop","mapPlatformForEvents","mobile","cookieEnabled","ko-KR","45PUWnbp","45418bZtESP","Desktop Web","onLine","Mobile Web","getPlatform","500661fUUjuj","_userProvidedDeviceInfo","0x0","isBrowser","1164115QOPAkg","1903248fKfINI","language","2122450PqPHLE","Android","width","getUserDeviceInfo","setDeviceProperty","clearDeviceInfo","131244jakRyL","353412UOYzlQ","isMobile"];return(oe=function(){return t})()}re[se(428)]={};const ae=ce;function ce(t,e){const n=de();return(ce=function(t,e){return n[t-=218]})(t,e)}function de(){const t=["UTC","resolvedOptions","708738ogmprS","5622652jOFGkx","getUserInfo","extractCountryFromLanguage","setUserProperty","setUserProperties","getBaseUserInfo","isBrowser","7197780UUtxuj","9390017zzkZyq","language","1GNcoxZ","split","timeZone","getCurrentUserProperties","3812958OzFszB","480826mWhJtB","8576648zCYsYu","estimateLocation","clearUserProperties","ko-KR","_userProperties"];return(de=function(){return t})()}!function(){const t=ce,e=de();for(;;)try{if(961569===parseInt(t(231))/1*(parseInt(t(236))/2)+parseInt(t(235))/3+-parseInt(t(221))/4+-parseInt(t(228))/5+-parseInt(t(220))/6+parseInt(t(229))/7+parseInt(t(237))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ae(222)](){return{...le[ae(226)](),...le._userProperties}}static[ae(226)](){const t=ae;if(!k[t(227)]())return{language:t(240),country:"KR"};const e=navigator[t(230)]||t(240);return{language:e,country:le.extractCountryFromLanguage(e)}}static[ae(223)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t[ae(232)]("-")[0]]||"KR"}static[ae(225)](t){const e=ae;le[e(241)]={...le[e(241)],...t}}static[ae(224)](t,e){le[ae(241)][t]=e}static[ae(239)](){le[ae(241)]={}}static[ae(234)](){return{...le[ae(241)]}}static[ae(238)](){const t=ae;if(!k[t(227)]())return{timezone:t(218),estimatedCountry:"KR"};const e=Intl.DateTimeFormat()[t(219)]()[t(233)];return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}le[ae(241)]={};const ue=he;function pe(){const t=["534048QnPtVI","isBrowser","removeItem","adstage_session_id","session_","getSessionInfo","adstage_session_start","setItem","refreshSession","1609853afUcuI","34508iKPMjg","getSessionId","isNewSession","now","random","23776116vOfWcw","922hiuXDF","12VTYCLW","adstage_user_id","isSessionExpired","_userId","setUserId","clearUserId","1010TzaEIe","9jggMJl","158686MhNIML","ssr_session_","getItem","substr","getSessionDuration","535pshOQo","getUserId","7132816ZYmQkL","_sessionStartTime","4971BjajXN","getSessionStats"];return(pe=function(){return t})()}function he(t,e){const n=pe();return(he=function(t,e){return n[t-=171]})(t,e)}!function(){const t=he,e=pe();for(;;)try{if(785933===parseInt(t(174))/1+parseInt(t(190))/2*(-parseInt(t(172))/3)+parseInt(t(184))/4*(parseInt(t(204))/5)+-parseInt(t(191))/6*(-parseInt(t(183))/7)+-parseInt(t(206))/8*(parseInt(t(198))/9)+parseInt(t(197))/10*(-parseInt(t(199))/11)+parseInt(t(189))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{static[ue(185)](){const t=ue;if(!k[t(175)]())return t(200)+Date[t(187)]();const e=sessionStorage.getItem("adstage_session_id");if(e)return e;const n=t(178)+Math[t(188)]().toString(36)[t(202)](2,9)+"_"+Date[t(187)]();return sessionStorage[t(181)](t(177),n),!fe[t(171)]&&(fe[t(171)]=Date.now(),k[t(175)]()&&sessionStorage.setItem("adstage_session_start",String(fe[t(171)]))),n}static[ue(195)](t){const e=ue;fe[e(194)]=t,k.isBrowser()&&localStorage[e(181)](e(192),t)}static[ue(205)](){const t=ue;if(fe[t(194)])return fe[t(194)];if(k[t(175)]()){const e=localStorage[t(201)](t(192));if(e)return fe[t(194)]=e,e}}static[ue(196)](){const t=ue;fe[t(194)]=void 0,k[t(175)]()&&localStorage[t(176)](t(192))}static[ue(179)](){const t=ue,e=fe[t(185)](),n=fe.getUserId(),s=fe.isNewSession();return{sessionId:e,userId:n,sessionDuration:fe[t(203)](),isNewSession:s}}static isNewSession(){const t=ue;if(!k[t(175)]())return!0;const e=sessionStorage[t(201)]("adstage_session_id"),n=sessionStorage.getItem(t(180));return!e||!n}static[ue(203)](){const t=ue;if(!k[t(175)]())return 0;const e=sessionStorage[t(201)](t(180));return e?Date[t(187)]()-parseInt(e,10):0}static[ue(182)](){const t=ue;return k[t(175)]()&&(sessionStorage[t(176)]("adstage_session_id"),sessionStorage[t(176)](t(180))),fe[t(171)]=void 0,fe[t(185)]()}static[ue(193)](t=24){return fe[ue(203)]()>60*t*60*1e3}static[ue(173)](){const t=ue,e=fe[t(185)](),n=fe.getUserId(),s=fe[t(203)](),i=fe.isSessionExpired(),r=fe[t(186)]();let o;if(k[t(175)]()){const e=sessionStorage[t(201)](t(180));o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:i,isNewSession:r}}}const ge=me;function me(t,e){const n=Ie();return(me=function(t,e){return n[t-=324]})(t,e)}function Ie(){const t=["490YyQMnI","init","_config","📊 Events module initialized","524616LopqOg","getUserDeviceInfo","36240mOuwKv","statusText","2879740rnOUXz","_isReady","POST","warn","setUserId","create","application/json","debug","clearDeviceInfo","log","setDeviceProperty","❌ Failed to track event:","events","Event tracking failed: ","✅ Event tracked:","sendEventToServer","track","isReady","getUserInfo","setDeviceInfo","891160NMNHKg","83570YpMILg","2806544VWXOvR","Events module not initialized. Call AdStage.init() first.","getUserId","📱 Device property set:","error","getUserProperties","👤 User properties set:","getCurrentUserProperties","setUserProperties","apiKey","API key not configured for event tracking.","305196lcoHwD","stringify","getDeviceInfo","getConfig"];return(Ie=function(){return t})()}!function(){const t=me,e=Ie();for(;;)try{if(384493===parseInt(t(360))/1+-parseInt(t(359))/2+parseInt(t(335))/3+-parseInt(t(327))/4+parseInt(t(339))/5+parseInt(t(337))/6*(parseInt(t(331))/7)+-parseInt(t(361))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{constructor(){const t=me;this[t(340)]=!1,this[t(333)]=null}[ge(332)](t){const e=ge;this._config=t,this[e(340)]=!0,t[e(346)]&&console[e(348)](e(334))}[ge(356)](){return this[ge(340)]}[ge(330)](){return this._config}[ge(343)](t){const e=ge;fe.setUserId(t),this[e(333)]?.debug&&console[e(348)]("👤 User ID set:",t)}getUserId(){return fe[ge(363)]()}setUserProperties(t){const e=ge;le[e(324)](t),this[e(333)]?.[e(346)]&&console[e(348)](e(367),t)}[ge(366)](){return le[ge(368)]()}[ge(358)](t){const e=ge;re.setDeviceInfo(t),this[e(333)]?.[e(346)]&&console[e(348)]("📱 Device info set:",t)}[ge(349)](t,e){const n=ge;re[n(349)](t,e),this._config?.debug&&console.log(n(364),t,e)}[ge(347)](){const t=ge;re[t(347)](),this._config?.[t(346)]&&console.log("📱 User provided device info cleared")}[ge(336)](){return re[ge(336)]()}[ge(329)](){return re[ge(329)]()}[ge(357)](){return le[ge(357)]()}[ge(368)](){return le[ge(368)]()}async[ge(355)](t,e){const n=ge;if(this[n(340)])if(this[n(333)]?.[n(325)])try{const s={eventName:t,userId:fe[n(363)](),sessionId:fe.getSessionId(),sdkVersion:T(),device:re.getDeviceInfo(),user:le[n(357)](),params:e||{}};await this[n(354)](s),this[n(333)][n(346)]&&console[n(348)](n(353),t,e)}catch(s){console[n(365)](n(350),s),this[n(333)].debug&&console[n(365)]("Event data:",{eventName:t,properties:e})}else console[n(342)](n(326));else console[n(342)](n(362))}async[ge(354)](t){const e=ge,n=await fetch(Z[e(351)][e(355)](),{method:e(341),headers:{...U[e(344)](this._config[e(325)]),"Content-Type":e(345)},body:JSON[e(328)](t)});if(!n.ok)throw new Error(e(352)+n.status+" "+n[e(338)])}}const ye=be;function be(t,e){const n=ke();return(be=function(t,e){return n[t-=298]})(t,e)}!function(){const t=be,e=ke();for(;;)try{if(243105===-parseInt(t(317))/1+parseInt(t(322))/2+parseInt(t(318))/3+-parseInt(t(302))/4*(parseInt(t(299))/5)+-parseInt(t(332))/6*(-parseInt(t(334))/7)+-parseInt(t(328))/8+-parseInt(t(315))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class we{constructor(){const t=be;this[t(337)]=!1,this[t(311)]=null,this[t(319)]=new ne,this[t(313)]=new Gt,this.events=new ve}static init(t){const e=be;!we[e(323)]&&(we.instance=new we);const n=we.instance;if(!t[e(300)])throw new Error(e(333));n[e(311)]={timeout:3e4,debug:!1,modules:[e(313),e(321),e(319)],...t},n._config[e(329)]&&(Z[e(303)](n[e(311)][e(329)]),t.debug&&console[e(301)](e(327),n[e(311)][e(329)]));const s=n._config[e(320)]||["ads",e(321),e(319)];for(const t of s){const s=n[t];s&&typeof s[e(306)]===e(309)&&s[e(306)](n[e(311)])}n[e(337)]=!0,t[e(341)]&&console.log(e(340),{version:e(335),modules:s,apiKey:t[e(300)].substring(0,8)+e(310),mode:e(326)})}static[ye(330)](){const t=ye;return we[t(323)]?.[t(337)]||!1}static[ye(338)](){const t=ye;return we[t(323)]?.[t(311)]||null}static[ye(324)](){const t=ye;if(!we.instance)throw new Error("AdStage not initialized. Call AdStage.init() first.");return we[t(323)]}static get[ye(313)](){const t=ye;try{return we[t(324)]()[t(313)]}catch(e){throw console.warn(t(305)),e}}static get[ye(321)](){const t=ye;try{return we.getInstance()[t(321)]}catch(e){throw console.warn(t(312)),e}}static get[ye(319)](){const t=ye;try{return we[t(324)]()[t(319)]}catch(e){throw console[t(325)](t(304)),e}}static[ye(316)](){const t=ye;we[t(323)]&&(we[t(323)][t(337)]=!1,we[t(323)][t(311)]=null)}}function ke(){const t=["development","🌐 API endpoint configured:","2832344WAizhB","baseUrl","isReady","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","8586EwzqSG","API key is required for AdStage initialization","861RaJUmU","2.0.0",")의 viewable 추적 초기화됨","_isInitialized","getConfig","clear","🚀 AdStage SDK initialized (sync mode)","debug","✅ AdStage Debug: 광고 ","417245xKKxqY","apiKey","log","4gjbqEF","setBaseUrl","AdStage.config accessed before initialization","AdStage.ads accessed before initialization","init","clearAdViewable","size","function","...","_config","AdStage.events accessed before initialization","ads","viewableTracker","359334FtiQUP","reset","41701xdlJVx","663735LISsaw","config","modules","events","729932vEtJoA","instance","getInstance","warn"];return(ke=function(){return t})()}function xe(t,e){var n=Ee;return we[n(142)]()?we.events[n(144)](t,e):(console[n(146)](n(145)),Promise[n(157)]())}function Ee(t,e){var n=Se();return(Ee=function(t,e){return n[t-=141]})(t,e)}function Se(){var t=["1934128hJoEJU","325668uWciCn","132szkxqA","3988376AYjdFf","setUserProperties","86YlPGmO","setUserId","533162KRbPkm","44295sPrNuV","resolve","28195cFqndY","events","isReady","10BbonIQ","track","AdStage not initialized. Call AdStage.init() first.","warn","1497276JKIPTr"];return(Se=function(){return t})()}function Ae(t){var e=Ee;we[e(142)]()?we[e(141)][e(154)](t):console.warn(e(145))}function Te(){var t=Ee;if(we[t(142)]())return we.events.getUserId();console[t(146)](t(145))}function Ce(t){var e=Ee;we.isReady()?we[e(141)][e(152)](t):console.warn(e(145))}function De(){var t=Ee;if(we[t(142)]())return we[t(141)].getUserProperties();console[t(146)]("AdStage not initialized. Call AdStage.init() first.")}we.debug={clearAllViewable:()=>{const t=ye;ut[t(339)](),console.log(t(331))},clearAdViewable:(t,e)=>{const n=ye;ut[n(307)](t,e),console.log(n(298)+t+"("+e+n(336))},getViewableStatus:()=>{const t=ye;console[t(301)]("📊 AdStage Debug: 현재 viewable 추적 상태",{trackedCount:ut[t(314)][t(308)],trackedItems:Array.from(ut[t(314)])})}},function(){for(var t=Ee,e=Se();;)try{if(349992===parseInt(t(155))/1+parseInt(t(153))/2*(-parseInt(t(156))/3)+parseInt(t(149))/4+parseInt(t(158))/5*(-parseInt(t(150))/6)+parseInt(t(151))/7+-parseInt(t(148))/8+parseInt(t(147))/9*(parseInt(t(143))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Re=e(null);function Be({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&we.reset(),we.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};s(()=>{i&&!r&&u(i)},[i,r]);const p={isInitialized:r,config:a,initialize:u,reset:()=>{try{we.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Re.Provider,{value:p,children:e})}function Pe(){const t=i(Re);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function ze(){const{isInitialized:t}=Pe();return t?we:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Le(){var t=["2294Jeskxk","257844rsSCmO","78Losoxb","925410NFjJEB","8393ScrJDj","3CPlvOh","199494fBiaDt","1530hxACiI","155pFSyjE","42572atjWbA","9NhxjLG","2865752lwfsCQ","7ReEHuP"];return(Le=function(){return t})()}function Ue(t,e){var n=Le();return(Ue=function(t,e){return n[t-=166]})(t,e)}!function(){for(var t=Ue,e=Le();;)try{if(231311===parseInt(t(176))/1*(-parseInt(t(171))/2)+parseInt(t(174))/3+parseInt(t(167))/4*(parseInt(t(166))/5)+parseInt(t(177))/6*(-parseInt(t(170))/7)+-parseInt(t(169))/8*(parseInt(t(168))/9)+parseInt(t(178))/10*(parseInt(t(175))/11)+-parseInt(t(172))/12*(parseInt(t(173))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Me=Oe;function Oe(t,e){const n=Ve();return(Oe=function(t,e){return n[t-=165]})(t,e)}function Ve(){const t=["undefined","events","6838320LrIJOS","3683820jqwSmV","10474096OPsEsd","ads","1104QFuSeB","14510yzlCst","914545OvQEav","AdStage","3651354NCbwUh","config","1823332oOXROs","7DCRWBD"];return(Ve=function(){return t})()}!function(){const t=Oe,e=Ve();for(;;)try{if(999357===-parseInt(t(175))/1+parseInt(t(165))/2+parseInt(t(170))/3+parseInt(t(173))/4*(-parseInt(t(174))/5)+-parseInt(t(169))/6+parseInt(t(166))/7*(parseInt(t(171))/8)+parseInt(t(177))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ne="2.0.0",Fe=[Me(172),Me(168),Me(178)];typeof window!==Me(167)&&(window[Me(176)]=we);export{we as AdStage,Be as AdStageProvider,Ne as SDK_VERSION,Fe as SUPPORTED_MODULES,Te as getUserId,De as getUserProperties,Ae as setUserId,Ce as setUserProperties,xe as track,Pe as useAdStageContext,ze as useAdStageInstance};
|