@adstage/web-sdk 3.0.2 → 3.0.3

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.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=["NATIVE","943579gSBwXL","3634qddCbJ","11ICGzwz","4ErtqWa","8bVtANx","CLICK","989650cbffqs","VIDEO","6cFMRWo","INTERSTITIAL","BANNER","TABLET","588888xmXhXd","443395jKbZDu","285892zoXIMm","1692351otzAyR","VIEWABLE","MOBILE","TEXT","POPUP","WEB"];return(I=function(){return t})()}function v(t,e){var n=I();return(v=function(t,e){return n[t-=260]})(t,e)}!function(){for(var t=v,e=I();;)try{if(167821===parseInt(t(275))/1+-parseInt(t(262))/2+parseInt(t(273))/3+parseInt(t(264))/4*(-parseInt(t(274))/5)+parseInt(t(269))/6*(-parseInt(t(261))/7)+parseInt(t(265))/8*(-parseInt(t(276))/9)+-parseInt(t(267))/10*(-parseInt(t(263))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(o=r||(r={}))[(a=v)(271)]="BANNER",o.POPUP=a(280),o[a(270)]=a(270),o[a(260)]="NATIVE",o.VIDEO=a(268),o.TEXT=a(279),d=c||(c={}),l=v,d.WEB=l(281),d[l(278)]=l(278),(p=u||(u={}))[(h=v)(277)]="VIEWABLE",p[h(266)]=h(266),g=f||(f={}),m=v,g.DESKTOP="DESKTOP",g[m(278)]=m(278),g[m(272)]=m(272);const y=b;function b(t,e){const n=k();return(b=function(t,e){return n[t-=292]})(t,e)}!function(){const t=b,e=k();for(;;)try{if(956608===-parseInt(t(323))/1+-parseInt(t(326))/2*(-parseInt(t(304))/3)+parseInt(t(295))/4*(-parseInt(t(324))/5)+-parseInt(t(322))/6+-parseInt(t(299))/7*(parseInt(t(296))/8)+-parseInt(t(292))/9*(-parseInt(t(363))/10)+parseInt(t(306))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class w{static[y(338)](){const t=y;return typeof window!==t(359)&&typeof document!==t(359)}static[y(328)](){return!this.isBrowser()}static canUseDOM(){const t=y;return this[t(338)]()&&void 0!==document[t(327)]}static[y(355)](t){const e=y;return this[e(307)]()?document[e(302)](t):null}static safeQuerySelector(t){const e=y;return this[e(307)]()?document[e(345)](t):null}static[y(312)](t){const e=y;return this[e(307)]()?Array.from(document[e(303)](t)):[]}static[y(349)](t){return this[y(307)]()?document.createElement(t):null}static[y(293)](t,e,n,s){const i=y;this[i(307)]()&&t&&t[i(348)](e,n,s)}static[y(339)](t,e,n,s){const i=y;this.canUseDOM()&&t&&t[i(305)](e,n,s)}static[y(341)](t,e){return this[y(338)]()?window[t]??e:e}static getDocumentProperty(t,e){return this[y(307)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const s=y;return this[s(338)]()?window[s(310)](t,e,n):null}static safeGetComputedStyle(t){const e=y;return this.isBrowser()&&t?window[e(354)](t):null}static isDOMReady(){const t=y;return!!this[t(307)]()&&document[t(327)]!==t(342)}static[y(294)](){return new Promise(t=>{const e=b;this[e(307)]()?this[e(317)]()?t():this[e(293)](document,e(320),()=>t()):t()})}static[y(298)](t,e){const n=y;this[n(307)]()&&t&&Object.entries(e)[n(358)](([e,s])=>{const i=n;t[i(347)][i(318)](e,s)})}static safeAddClass(t,e){const n=y;this.canUseDOM()&&t&&t[n(343)].add(e)}static[y(330)](t,e){const n=y;this[n(307)]()&&t&&t[n(343)][n(329)](e)}static[y(319)](t,e){const n=y;this[n(307)]()&&t&&(t[n(301)]=e)}static[y(360)](t,e){const n=y;this[n(307)]()&&t&&(t[n(356)]=e)}static safeAppendChild(t,e){this[y(307)]()&&t&&e&&t.appendChild(e)}static[y(325)](t,e){const n=y;this[n(307)]()&&t&&e&&t[n(334)](e)}static[y(357)](){const t=y;return{url:this[t(341)](t(353),{href:""})[t(315)],title:this[t(350)](t(308),""),referrer:this[t(350)](t(361),"")}}static[y(351)](){const t=y;return{width:this[t(341)](t(332),0),height:this[t(341)](t(297),0),pixelRatio:this[t(341)](t(314),1)}}static[y(321)](){const t=y;return{scrollTop:this.canUseDOM()?window[t(331)]||document[t(362)][t(365)]:0,scrollLeft:this[t(341)]("pageXOffset",0)}}static async waitForElement(t,e={}){const n=y,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this.canUseDOM())throw new Error("DOM을 사용할 수 없는 환경입니다.");const o=document.getElementById(t);return o?(r&&console[n(313)](n(333)+t),o):(r&&console.log("⏳ 컨테이너 대기 시작: "+t+n(300)+s+n(344)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(316)](s/i),l=()=>{const n=a;c++;const u=document.getElementById(t);if(u)return r&&console[n(313)]("✅ 컨테이너 발견: "+t+" ("+c+n(311)+c*i+"ms 경과)"),void e(u);if(c>=d){const e=n(335)+t+'"\n \n다음을 확인해보세요:\n1. HTML에 id="'+t+n(352)+s+"ms ("+c+n(340);return r&&console[n(346)](e),void o(new Error(e))}r&&c%10==0&&console[n(313)](n(309)+t+" ("+c+"/"+d+")");const p=Math.min(i*Math.pow(1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async[y(336)](t,e={}){const n=y,s=t.map(t=>this[n(337)](t,e));return Promise[n(364)](s)}}function k(){const t=["ceil","isDOMReady","setProperty","safeSetTextContent","DOMContentLoaded","getScrollInfo","5255502JurILR","976781EQrTVg","60rBWMlJ","safeRemoveChild","2JvRgOf","readyState","isSSR","remove","safeRemoveClass","pageYOffset","innerWidth","✅ 컨테이너 즉시 발견: ","removeChild",'❌ 컨테이너를 찾을 수 없습니다: "',"waitForElements","waitForElement","isBrowser","safeRemoveEventListener","번 시도)","getWindowProperty","loading","classList","ms)","querySelector","error","style","addEventListener","safeCreateElement","getDocumentProperty","getViewportInfo",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"location","getComputedStyle","safeGetElementById","innerHTML","getPageInfo","forEach","undefined","safeSetInnerHTML","referrer","documentElement","139760LmFbAI","all","scrollTop","261Gdjapy","safeAddEventListener","waitForDOM","33704kAOVaZ","16736lHoHkb","innerHeight","safeApplyStyles","35JllgaT"," (최대 ","textContent","getElementById","querySelectorAll","3698322JnsHpi","removeEventListener","14110800gCdcaK","canUseDOM","title","⏳ 컨테이너 대기 중: ","open","번째 시도, ","safeQuerySelectorAll","log","devicePixelRatio","href"];return(k=function(){return t})()}const E=S;function x(){const t=["2030156CILZNE","13013001QUZRVt","510INfDXH","147462jgRmqr","10ENnCOv","undefined","2617652VZGBjI","AdStageSDK/","4131472JoquYD",'"3.0.2"',"userAgent","380989xZIjoq"," AdStageSDK/","3549600OwmUYs"];return(x=function(){return t})()}!function(){const t=S,e=x();for(;;)try{if(996782===parseInt(t(424))/1+-parseInt(t(427))/2+parseInt(t(426))/3+parseInt(t(433))/4*(parseInt(t(431))/5)+parseInt(t(429))/6*(-parseInt(t(430))/7)+-parseInt(t(421))/8+parseInt(t(428))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const A=E(422);function S(t,e){const n=x();return(S=function(t,e){return n[t-=421]})(t,e)}function C(){return A}const T=D;function R(){const t=["1.0.0","9kXKweX","238956gxZqrF","getEnabledModules","getPlaceholderMode","getAppVersion","modules","191978LMsiQV","timeout","20WjvxmI","debug","1552071tUgVUb","getTimeout","apiKey","subtle","5978781wbYMPm","5851608ggBPFs","events","2643864hYQMPh","getApiKey","getConfig","1073578WItiZz","placeholderMode","config","7DLMIOo","isDebugMode","48RACLtE","ads","85vzcDpB","../core/adstage"];return(R=function(){return t})()}function D(t,e){const n=R();return(D=function(t,e){return n[t-=497]})(t,e)}!function(){const t=D,e=R();for(;;)try{if(793129===parseInt(t(521))/1*(-parseInt(t(497))/2)+-parseInt(t(501))/3+parseInt(t(506))/4+-parseInt(t(518))/5*(parseInt(t(522))/6)+parseInt(t(514))/7*(-parseInt(t(508))/8)+parseInt(t(505))/9*(parseInt(t(499))/10)+parseInt(t(511))/11*(parseInt(t(516))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{static getConfig(){const t=D;try{const{AdStage:e}=require(t(519));return e[t(510)]()}catch{return null}}static[T(525)](){const t=T,e=B[t(510)]();return e?.appVersion||t(520)}static[T(515)](){const t=T,e=B[t(510)]();return e?.[t(500)]||!1}static[T(509)](){const t=T,e=B[t(510)]();return e?.[t(503)]}static[T(502)](){const t=T,e=B[t(510)]();return e?.[t(498)]||3e4}static[T(524)](){const t=T,e=B[t(510)]();return e?.[t(512)]||t(504)}static[T(523)](){const t=T,e=B[t(510)]();return e?.[t(526)]||[t(517),t(507),t(513)]}}const L=P;function z(){const t=["getItem","UTC","getBoundingClientRect","toLowerCase","2046000guCORt","platform","adstage_device_id","resolvedOptions","connection","adstage_session_id","ssr_device_","toString","DateTimeFormat","now","height","ios","top","substr","left","1608048ROCyTI","SSR","11208bPAymN","isBrowser","1420160cHKSpQ","1665744ErsuTZ","15460PaXLbs","1275uRdgKq","isMobile","getScrollInfo","generateSessionId","1647USznOq","setItem","getAppVersion","effectiveType","test","web","4065OkQiDo","getPlatform","device_","random","width","getViewportInfo","round","126oWRBJk","generateDeviceId","desktop","safeGetElementById","timeZone","unknown","userAgent"];return(z=function(){return t})()}function P(t,e){const n=z();return(P=function(t,e){return n[t-=395]})(t,e)}!function(){const t=P,e=z();for(;;)try{if(400537===-parseInt(t(401))/1*(parseInt(t(408))/2)+parseInt(t(439))/3+parseInt(t(434))/4+parseInt(t(441))/5*(-parseInt(t(436))/6)+parseInt(t(438))/7+parseInt(t(419))/8+-parseInt(t(395))/9*(parseInt(t(440))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{static[L(409)](){const t=L;if(!w[t(437)]())return t(425)+Date[t(428)]();const e=localStorage[t(415)](t(421));if(e)return e;const n=t(403)+Math[t(404)]()[t(426)](36)[t(432)](2,9)+"_"+Date.now();return localStorage[t(396)](t(421),n),n}static generateSessionId(){const t=L;if(!w[t(437)]())return"ssr_session_"+Date[t(428)]();const e=sessionStorage[t(415)](t(424));if(e)return e;const n="session_"+Math.random()[t(426)](36)[t(432)](2,9)+"_"+Date[t(428)]();return sessionStorage.setItem("adstage_session_id",n),n}static[L(442)](){const t=L;return!!w[t(437)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(399)](navigator[t(414)])}static[L(402)](){const t=L;if(!w[t(437)]())return t(400);const e=navigator[t(414)][t(418)]();return/iphone|ipad|ipod/.test(e)?t(430):/android/.test(e)?"android":M[t(442)]()?"web":t(410)}static collectDeviceInfo(){const t=L,e=w[t(406)]();return{deviceId:M.generateDeviceId(),sessionId:M[t(444)](),osVersion:w.isBrowser()?navigator.platform:t(435),deviceModel:w[t(437)]()?navigator[t(420)]:"SSR",appVersion:B[t(397)](),sdkVersion:C(),language:w[t(437)]()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:w[t(437)]()?navigator[t(414)]:t(435),timezone:w[t(437)]()?Intl[t(427)]()[t(422)]()[t(412)]:t(416),viewportWidth:e[t(405)],viewportHeight:e[t(429)],screenWidth:w[t(437)]()?screen.width:0,screenHeight:w[t(437)]()?screen[t(429)]:0,colorDepth:w.isBrowser()?screen.colorDepth:24,pixelRatio:e.pixelRatio,connectionType:w[t(437)]()?navigator[t(423)]?.[t(398)]||"unknown":t(413),platform:M[t(402)]()}}static getSlotPosition(t){const e=L,n=w[e(411)](t);if(!n)return e(413);const s=n[e(417)](),i=w[e(443)]();return"x:"+Math[e(407)](s[e(433)])+",y:"+Math[e(407)](s[e(431)]+i.scrollTop)}}const N=U;function U(t,e){const n=O();return(U=function(t,e){return n[t-=232]})(t,e)}function O(){const t=["8rvzPNO","1pUkZeP","undefined","6100FAGDHk","477171oIimGJ","application/json","889480SyRkRe","2090qtZwNb","contentType","create","API key is required","9922545ntblDv","3650346FjVIVT","3183397OKOrMP","createForEvents","User-Agent","userAgent","587018mXLrAY"];return(O=function(){return t})()}!function(){const t=U,e=O();for(;;)try{if(552603===-parseInt(t(239))/1*(parseInt(t(237))/2)+parseInt(t(242))/3+parseInt(t(241))/4*(parseInt(t(245))/5)+parseInt(t(232))/6+parseInt(t(233))/7+-parseInt(t(238))/8*(parseInt(t(249))/9)+parseInt(t(244))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{static create(t,e){const n=U;if(!t)throw new Error(n(248));const s={"x-api-key":t,"Content-Type":e?.[n(246)]||n(243)};return typeof navigator!==n(240)&&(s["User-Agent"]=e?.[n(236)]||navigator.userAgent),s}static[N(234)](t,e){const n=N,s=V[n(247)](t);return e?.[n(236)]&&(s[n(235)]=e[n(236)]),s}}const F=H;function _(){const t=["195MNjLAZ","collectDeviceInfo","platform","15144363NYBWLU"," - ","🚀 Sending advertisement event: "," in slot ","debug","string","containerId","BANNER","NOT_SET","width","apiKey","/advertisements/events/","title","...","5290912XdjLQE","slots","baseUrl","get","237YmqOlV","getSlotPosition","6932274ltyOwk","🚀 AdvertisementEventTracker: Processing ","❌ Failed to track advertisement event:"," for ad ","🌐 Full API call details:","status","createForEvents","getPageInfo","8482KNUoPX","POST","parseNumericValue","API request failed: ","stringify","trackAdvertisementEvent","230559fVvyvM","log","replace","now","6332255DIlYmA","error","66244IpkyeK"," event for ad ","referrer","url","sessionId","statusText"];return(_=function(){return t})()}function H(t,e){const n=_();return(H=function(t,e){return n[t-=149]})(t,e)}!function(){const t=H,e=_();for(;;)try{if(684028===-parseInt(t(155))/1*(-parseInt(t(186))/2)+-parseInt(t(176))/3*(parseInt(t(149))/4)+parseInt(t(196))/5+-parseInt(t(178))/6+parseInt(t(192))/7+-parseInt(t(172))/8+parseInt(t(158))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class K{constructor(t,e,n,s){const i=H;this[i(174)]=t,this[i(168)]=e,this[i(162)]=n,this[i(173)]=s}async[F(191)](t,e,n){const s=F;try{this[s(162)]&&console[s(193)](s(179)+n+s(150)+t+s(161)+e);const i=this.slots[s(175)](e),r=M[s(156)](),o={adType:i?.adType||s(165),platform:r[s(157)],deviceId:r.deviceId,deviceInfo:r,pageUrl:w[s(185)]()[s(152)],pageTitle:w[s(185)]()[s(170)],referrer:w[s(185)]()[s(151)],slotId:e,slotPosition:M[s(177)](i?.[s(164)]||""),slotWidth:K[s(188)](i?.[s(167)]),slotHeight:K[s(188)](i?.height),sessionId:r[s(153)],pageLoadTime:performance[s(195)](),metadata:{eventType:n,sdkVersion:C(),timestamp:Date[s(195)]()},...n===u.VIEWABLE&&{isViewable:!0,iabCompliant:!0}},a=this[s(174)]+"/advertisements/events/"+t+"/"+n,c=V[s(184)](this[s(168)],o);this[s(162)]&&(console[s(193)](s(160)+n+s(181)+t,{url:a,headers:c,eventData:o}),console.log(s(182),{method:s(187),url:a,hasApiKey:!!this[s(168)],bodySize:JSON[s(190)](o).length}));const d=await fetch(a,{method:"POST",headers:c,body:JSON[s(190)](o)});if(this[s(162)]&&console[s(193)]("📡 API Response Status: "+d[s(183)]+" "+d[s(154)],{url:a,ok:d.ok}),!d.ok){const t=await d.text();throw new Error(s(189)+d.status+" "+d[s(154)]+s(159)+t)}this[s(162)]&&console.log("✅ Successfully tracked advertisement event: "+n+" for ad "+t)}catch(i){console.error(s(180),i),console[s(197)]("🔍 Debug info:",{baseUrl:this[s(174)],apiKey:this[s(168)]?this.apiKey.substring(0,8)+s(171):s(166),url:this[s(174)]+s(169)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[F(188)](t){const e=F;if("number"==typeof t)return t;if(typeof t===e(163)){const n=parseFloat(t[e(194)](/px$/,""));return isNaN(n)?0:n}return 0}}var j=W;function W(t,e){var n=X();return(W=function(t,e){return n[t-=128]})(t,e)}!function(){for(var t=W,e=X();;)try{if(363666===parseInt(t(155))/1+parseInt(t(146))/2+-parseInt(t(133))/3*(-parseInt(t(132))/4)+-parseInt(t(142))/5*(parseInt(t(154))/6)+parseInt(t(143))/7*(parseInt(t(128))/8)+parseInt(t(150))/9+-parseInt(t(134))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class J{constructor(t,e){var n=W;this.observer=null,this.isViewableTriggered=!1,this[n(145)]=t,this[n(131)]=e,this[n(139)]()}[j(139)](){var t=j;t(156)in window?(this[t(129)]=new IntersectionObserver(e=>this[t(138)](e),{threshold:.5,rootMargin:t(151)}),this[t(129)][t(136)](this[t(145)])):console[t(152)](t(147))}handleIntersection(t){var e=j;t[e(153)](t=>{var n=e;t[n(130)]>=.5&&this[n(149)]()&&!this[n(137)]&&(this[n(137)]=!0,this[n(131)]&&this[n(131)]())})}[j(149)](){var t=j;return!document[t(144)]&&document[t(141)]===t(140)}[j(135)](){var t=j;this.observer&&(this.observer[t(148)](),this[t(129)]=null)}}function X(){var t=["IntersectionObserver","1097776mYspxi","observer","intersectionRatio","onViewableCallback","1704YMyTdj","3867qILyFk","7762950xPrEAl","destroy","observe","isViewableTriggered","handleIntersection","initIntersectionObserver","visible","visibilityState","141395JCMbIB","28DLbiCm","hidden","element","96668qGKjrp","IntersectionObserver not supported, viewability tracking disabled","disconnect","isDocumentVisible","3886947RodHuA","0px","warn","forEach","96hVBrWl","14206mnzgqJ"];return(X=function(){return t})()}const q=Z;function G(){const t=["6ODOlLG","3174687vEHsdB","getBaseUrl","events","1887942vhJlin","https://beta-api.adstage.app","2064190ywHgNe","262722XhPdPJ","128176fJAQMT","production","122336ziqAif","https://api.adstage.io","/advertisements","baseUrl","advertisements","/advertisements/list","20eiNTPE","22oFDNNb","/advertisements/events","105jMpFGI","/events/track","track","399736GJpton","setBaseUrl"];return(G=function(){return t})()}!function(){const t=Z,e=G();for(;;)try{if(225272===-parseInt(t(499))/1+parseInt(t(496))/2*(-parseInt(t(513))/3)+parseInt(t(511))/4*(parseInt(t(505))/5)+-parseInt(t(493))/6+parseInt(t(508))/7*(-parseInt(t(497))/8)+parseInt(t(514))/9+parseInt(t(495))/10*(parseInt(t(506))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Y={production:q(500),beta:q(494)};function Z(t,e){const n=G();return(Z=function(t,e){return n[t-=493]})(t,e)}q(498);const Q={advertisements:{list:q(504),detail:q(501),events:q(507)},events:{track:q(509)}};class ${constructor(t){const e=q;this[e(503)]={list:()=>""+this[e(502)]+Q.advertisements.list,detail:t=>""+this.baseUrl+Q[e(503)].detail+"/"+t,events:(t,n)=>""+this.baseUrl+Q.advertisements[e(516)]+"/"+t+"/"+n},this[e(516)]={track:()=>""+this.baseUrl+Q[e(516)][e(510)]},this.baseUrl=t||Y[e(498)]}[q(512)](t){this[q(502)]=t}[q(515)](){return this[q(502)]}custom(t){return""+this[q(502)]+(t.startsWith("/")?t:"/"+t)}}const tt=new $;var et=nt;function nt(t,e){var n=st();return(nt=function(t,e){return n[t-=467]})(t,e)}function st(){var t=["123741wfuRBH","6cICZDT","trackInitialSlideViewable","🎯 Triggering VIEWABLE event for slide change: ad ","61488aCwJmh","96795IFKYgH","231707WrAJnA","229342VoDrCA","441250UWGwLQ","_id","42RJOmGl","454680CoVGEP"," (index: ","120aQEGOm",") in slot: ","log","🎯 Triggering initial VIEWABLE event: ad ","VIEWABLE"];return(st=function(){return t})()}!function(){for(var t=nt,e=st();;)try{if(125476===parseInt(t(470))/1+parseInt(t(477))/2+parseInt(t(480))/3*(parseInt(t(474))/4)+-parseInt(t(478))/5+parseInt(t(471))/6*(-parseInt(t(476))/7)+-parseInt(t(483))/8*(parseInt(t(475))/9)+-parseInt(t(481))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static trackSlideViewable(t,e,n,s,i=!1){var r=nt;i&&console[r(467)](r(473)+t[r(479)]+r(482)+n+r(484)+e.id),s(t[r(479)],e.id,u[r(469)])}static[et(472)](t,e,n,s=!1){var i=et;s&&console[i(467)](i(468)+t[i(479)]+" (index: 0) in slot: "+e.id),n(t[i(479)],e.id,u[i(469)])}}const rt=at;function ot(){const t=["addClickEventForSlider","45iNNKTa","addClickEvent","CLICK","5HxJrDQ"," ad clicked: ","preventDefault","toLowerCase","addEventListener","stopPropagation","_blank","1696148hpuRxu","cursor","click","160459jirqpw","linkUrl","🔗 ","addClickEventsBatch","open","6dSlqRu","adType","976527UKxjGd","style","isClickable","723070fVzcaw","2PZKmrp"," -> ","addClickEventForRenderer","log","_id","1340024aiEOvA","9527254bLKTDW","2100413ucDrZx"];return(ot=function(){return t})()}function at(t,e){const n=ot();return(at=function(t,e){return n[t-=141]})(t,e)}!function(){const t=at,e=ot();for(;;)try{if(221970===-parseInt(t(162))/1*(-parseInt(t(173))/2)+-parseInt(t(169))/3+-parseInt(t(159))/4*(-parseInt(t(152))/5)+parseInt(t(167))/6*(parseInt(t(147))/7)+parseInt(t(145))/8+parseInt(t(149))/9*(parseInt(t(172))/10)+-parseInt(t(146))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static addClickEvent(t,e,n,s,i=!1,r){const o=at;e[o(163)]&&(t.style[o(160)]="pointer",t[o(156)](o(161),t=>{const a=o;if(t.preventDefault(),t[a(157)](),s&&s(e[a(144)],n.id,u.CLICK),window[a(166)](e[a(163)],a(158)),i){const t=r||String(n[a(168)])[a(155)]();console[a(143)](a(164)+t+a(153)+e._id+a(141)+e.linkUrl)}}))}static[rt(142)](t,e,n,s,i=!1,r){const o=rt;e.linkUrl&&(t[o(170)].cursor="pointer",t[o(156)](o(161),t=>{const a=o;t[a(154)](),t.stopPropagation();if(s()(e[a(144)],n.id,u[a(151)]),window[a(166)](e.linkUrl,a(158)),i){const t=r||String(n[a(168)])[a(155)]();console[a(143)](a(164)+t+a(153)+e[a(144)]+" -> "+e[a(163)])}}))}static[rt(148)](t,e,n,s,i=!1,r){this[rt(150)](t,e,n,s,i,r)}static[rt(171)](t){return Boolean(t[rt(163)])}static[rt(165)](t,e,n,s,i=!1,r){t.forEach((t,o)=>{const a=e[o];a&&this.addClickEvent(t,a,n,s,i,r)})}}const dt=lt;function lt(t,e){const n=ut();return(lt=function(t,e){return n[t-=358]})(t,e)}function ut(){const t=["removeChild","img","#f0f0f0","border","length","classList","src","active","className","querySelectorAll","width","data-adstage-ad-id","clientX","center","833732LtVCdD","appendChild","objectFit","color","background","50px","453019NrMWJS","padding","trackSlideViewable","string","1px solid #666","Video Ad","style","adstage-slider-wrapper","1px dashed #ccc","forEach","createSimpleAdElement","remove","transition","setAttribute","\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 ","toLowerCase","#f9f9f9","14px","body","0.9","2266520FHfmaZ","cssText","8px","adstage-dot","translateX(-","addTouchSupport","abs","0.7","mouseleave","createMinimalDotIndicator","div","touches","whiteSpace","preventDefault","2496858gxBhOI","none","adType","video","entries","inline-block","adstage-dots","createSliderContainer","opacity","#999999","touchend","#666666","1421075idthJF","cover","display","backgroundColor","100%","adstage-slide-container","borderColor","BANNER","children","mouseenter","981865JZevTd","white","#cccccc","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","textContent","setProperty","auto"," Ad","addEventListener","_id","100px","touchmove","videoUrl","getBoundingClientRect","touchstart","includes","transparent","createElement","36bDLmpJ","5499490KmRPPK","autoSlideInterval","every","\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 ","VIDEO","height","changedTouches","hidden","transform 0.4s ease-out","4BpdpaO","addClickEventForSlider","contains","add","18RFVfny","block","adstage-ad adstage-","Text Ad","Banner Ad"];return(ut=function(){return t})()}!function(){const t=lt,e=ut();for(;;)try{if(764290===-parseInt(t(427))/1+parseInt(t(365))/2+-parseInt(t(405))/3+-parseInt(t(455))/4*(-parseInt(t(417))/5)+parseInt(t(459))/6*(parseInt(t(371))/7)+-parseInt(t(391))/8*(-parseInt(t(445))/9)+parseInt(t(446))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class pt{static[dt(381)](t,e){const n=dt,s=document.createElement(n(401));switch(s.className=n(461)+String(t[n(407)])[n(386)](),s[n(384)](n(362),e[n(436)]),s[n(384)]("data-adstage-slot-id",t.id),s[n(377)].display=n(460),s[n(377)][n(361)]=n(421),s.style[n(451)]=n(433),t[n(407)]){case r[n(424)]:if(e.imageUrl){const t=document.createElement(n(465));t[n(470)]=e.imageUrl,t.style.width=n(421),t.style[n(451)]=n(433),t.style[n(367)]=n(418),s[n(366)](t)}else s.style[n(451)]=n(437),s[n(377)][n(420)]=n(466),s[n(377)][n(467)]="1px dashed #ccc",s[n(431)]=n(463);break;case r[n(450)]:if(e[n(439)]){const t=document[n(444)](n(408));t[n(470)]=e[n(439)],t[n(377)][n(361)]=n(421),t.style[n(451)]=n(433),s[n(366)](t)}else s[n(377)][n(451)]="200px",s.style.backgroundColor="#000",s[n(377)][n(467)]=n(375),s[n(431)]=n(376),s.style[n(368)]=n(428);break;case r.TEXT:if(e[n(431)]){const t=document[n(444)](n(401));t.textContent=e[n(431)]||"",t.style[n(372)]=n(393),t[n(377)].fontSize=n(388),s[n(366)](t)}else s.style[n(451)]=n(370),s[n(377)].padding=n(393),s[n(431)]=n(462);break;default:s[n(377)].height=n(437),s.style[n(467)]=n(379),s[n(377)][n(420)]=n(387),s[n(431)]=t[n(407)]+n(434)}return s}static[dt(412)](t,e,n,s,i=!1){const o=dt,a=document.createElement("div");a[o(359)]=o(378);const c={position:"relative",overflow:o(453)};if(t[o(361)]&&0!==t[o(361)]){let e;e="string"==typeof t[o(361)]&&(t[o(361)][o(442)]("px")||t[o(361)][o(442)]("%"))?t.width:t[o(361)]+"px",c.width=e,c.display=o(410)}else c[o(419)]="inline-block";if(t[o(451)]&&0!==t[o(451)]){const e="string"==typeof t[o(451)]?t[o(451)]:t[o(451)]+"px";c[o(451)]=e}Object[o(409)](c).forEach(([t,e])=>{const n=o;a[n(377)][n(432)](t,e)});const d=!t[o(361)]||0===t.width,l=!t[o(451)]||0===t.height;if(d||l){const n=document[o(444)](o(401));if(n.style[o(392)]=o(430),!d&&t.width){let e;e=typeof t[o(361)]===o(374)&&(t[o(361)][o(442)]("px")||t[o(361)][o(442)]("%"))?t[o(361)]:t[o(361)]+"px",n[o(377)][o(361)]=e,n.style[o(403)]="normal"}document[o(389)][o(366)](n);let s=0,i=0;e[o(380)](e=>{const r=o,a=this[r(381)](t,e);n.appendChild(a);const c=a.getBoundingClientRect();c[r(361)]>s&&(s=c.width),c[r(451)]>i&&(i=c.height),n.removeChild(a)}),d&&s>0&&(a[o(377)][o(361)]=s+"px",c[o(361)]=s+"px"),l&&i>0&&(a[o(377)][o(451)]=i+"px",c[o(451)]=i+"px"),document[o(389)][o(464)](n)}const u=[...e,e[0]],p=document.createElement(o(401));p[o(359)]=o(422);const h={display:"flex",transition:"transform 0.4s ease-out",width:100*u[o(468)]+"%"};t.height&&0!==t[o(451)]&&(h.height="100%"),Object[o(409)](h).forEach(([t,e])=>{const n=o;p[n(377)][n(432)](t,e)}),u[o(380)]((e,n)=>{const r=o,a=document[r(444)]("div");a[r(359)]="adstage-slide";const c={width:100/u.length+"%","flex-shrink":"0",display:"flex","align-items":"center","justify-content":r(364)};t.height&&0!==t[r(451)]&&(c[r(451)]=r(421)),Object[r(409)](c)[r(380)](([t,e])=>{const n=r;a.style[n(432)](t,e)});const d=this[r(381)](t,e);ct[r(456)](d,e,t,s,i,String(t[r(407)])[r(386)]()),a.appendChild(d),p[r(366)](a)});const f=e[o(448)](t=>t.adType===r.TEXT)?null:this[o(400)](e[o(468)]);let g=0;const m=e[o(468)],I=1e3*(n?.[o(447)]||3),v=(n,r=!1)=>{const a=o;g=n,r?p.style[a(383)]=a(406):p[a(377)][a(383)]=a(454),p.style.transform=a(395)+100/u[a(468)]*g+"%)";const c=g===m?0:g;if(f){f[a(360)](".adstage-dot")[a(380)]((t,e)=>{const n=a,s=t;e===c?(s[n(469)][n(458)](n(358)),s[n(377)].background=n(416),s.style[n(423)]=n(416),s.style[n(413)]="1"):(s[n(469)][n(382)](n(358)),s[n(377)][n(369)]=n(443),s[n(377)][n(423)]=n(429),s[n(377)][n(413)]="0.7")})}it[a(373)](e[c],t,c,s,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[o(360)](".adstage-dot")[o(380)]((t,e)=>{t.addEventListener("click",()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(435)](o(426),()=>{clearInterval(b)}),a[o(435)](o(399),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[o(396)](p,v,()=>g,m,y),a[o(366)](p),f&&a[o(366)](f),v(0),(!t[o(361)]||0===t[o(361)])&&setTimeout(()=>{const e=o,n=p.children[0];if(n){const s=n[e(425)][0];if(s){const n=s[e(440)]();a[e(377)][e(361)]=n.width+"px",(!t.height||0===t[e(451)])&&(a[e(377)][e(451)]=n[e(451)]+"px"),a[e(377)].overflow=e(453)}}},10),a}static[dt(400)](t){const e=dt,n=document[e(444)](e(401));n.className=e(411),n.style.cssText=e(385);for(let s=0;s<t;s++){const t=document[e(444)]("button");t[e(359)]=e(394),t.style[e(392)]=e(449),t[e(435)]("mouseenter",()=>{const n=e;!t[n(469)][n(457)](n(358))&&(t[n(377)][n(423)]=n(414),t[n(377)][n(413)]=n(390))}),t[e(435)](e(399),()=>{const n=e;!t[n(469)][n(457)]("active")&&(t.style[n(423)]="#cccccc",t.style[n(413)]=n(398))}),n[e(366)](t)}return n}static[dt(396)](t,e,n,s,i){const r=dt;let o=0,a=!1;t[r(435)](r(441),t=>{const e=r;o=t[e(402)][0][e(363)],a=!0}),t[r(435)](r(438),t=>{a&&t[r(404)]()}),t[r(435)](r(415),t=>{const c=r;if(!a)return;a=!1;const d=t[c(452)][0][c(363)],l=o-d;if(Math[c(397)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}function ht(t,e){const n=mt();return(ht=function(t,e){return n[t-=314]})(t,e)}const ft=ht;!function(){const t=ht,e=mt();for(;;)try{if(348800===-parseInt(t(319))/1+parseInt(t(326))/2+parseInt(t(331))/3*(parseInt(t(317))/4)+parseInt(t(316))/5*(-parseInt(t(332))/6)+parseInt(t(318))/7+parseInt(t(324))/8*(parseInt(t(315))/9)+parseInt(t(325))/10*(-parseInt(t(322))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt{static[ft(328)](t,e,n=!1){const s=ft,i=t+"_"+e;return gt.viewableTracker.has(i)?(n&&console.log(s(321)+t+s(329)+e),!0):(gt.viewableTracker[s(320)](i),n&&console.log(s(333)+t+s(329)+e),!1)}static clear(){const t=ft;gt[t(330)][t(327)]()}static[ft(323)](t,e){const n=ft,s=t+"_"+e;gt[n(330)][n(314)](s)}}function mt(){const t=["add","Duplicate viewable blocked for ad ","5225429Hgnwkp","clearAdViewable","16tFfDHp","10rpKddu","982878ioaJfG","clear","isDuplicateViewable"," in slot ","viewableTracker","3WDpfOv","792Zfjhrx","✅ New viewable recorded for ad ","delete","1233459KowbCC","14965PfFQgA","975944Aauuod","3368288mJLAtv","271796rRzRmf"];return(mt=function(){return t})()}gt[ft(330)]=new Set;const It=vt;function vt(t,e){const n=yt();return(vt=function(t,e){return n[t-=342]})(t,e)}function yt(){const t=["width","🚫 Duplicate viewable blocked for ad ","log","683645CDohta","getAttribute","adstage-official","1309Frwnej","6px","⚠️ AdvertisementEventTracker not available for ","string","minHeight","adstage-slot adstage-","error"," for ad ","createElement","fontSize","17705mJPCjl","advertisement","none","100%","toLowerCase","justifyContent","rgba(231, 76, 60, 0.1)","❌ Failed to track ","adstage-slot","\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 ","#e74c3c","innerHTML",'[data-adstage-container="true"]',"div","setAttribute",'[class*="ad"]',"324548RPCIcL","placeholderMode","advertisementEventTracker","contains","createPlaceholder","🔄 Starting advertisement event tracking: ","rgba(248, 249, 250, 0.5)","fontFamily","data-adstage-empty","true","1px solid rgba(0, 0, 0, 0.08)","createEmptyContainer","transparent","✅ New viewable recorded for ad ","filter","alignItems","11px","⚠️ "," ad...</span>","adType","borderRadius",".adstage-","hasAttribute","containerId","style","📏 Using 100% height (container: ","⚠️ Created empty ","createEventTrackingCallback","data-adstage-type","4px","debug","getContainerHeight","isEmpty","918cGGBbm","#666","data-adstage-slot","backgroundColor","VIEWABLE","closest","1499038nkVDcI","display"," in slot ","opacity","\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 ","63496uhaAyZ"," container collapsed (",'[class*="banner"]',"<span>Loading ","trackAdvertisementEvent","appendChild",'[class*="container"]'," x ",") - Mode: ","📏 Using default height ","cssText","479330mSvHgT","number","border","801xQkewB","): ","auto","1px dashed #ccc"," slot: ","unknown",".adstage-slot","rgba(0, 0, 0, 0.02)",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"block","getComputedStyle","adstage-slot adstage-empty adstage-",'div[style*="min-height"]',"warn","center","📦 Placeholder created for ","applyPlaceholderStyle","getElementById","📊 Advertisement event tracked: ","5394270ISYOTA","height","adstage-class","data-adstage-container","querySelector","calculateAdSize","flex","color"," container: ","invisible","px)","51BpACae"];return(yt=function(){return t})()}!function(){const t=vt,e=yt();for(;;)try{if(872758===-parseInt(t(443))/1+-parseInt(t(390))/2+-parseInt(t(439))/3*(parseInt(t(351))/4)+-parseInt(t(456))/5*(parseInt(t(384))/6)+-parseInt(t(428))/7+parseInt(t(395))/8*(-parseInt(t(409))/9)+parseInt(t(406))/10*(parseInt(t(446))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class bt{constructor(t,e=!1,n){const s=vt;this[s(370)]=t,this[s(381)]=e,this[s(353)]=n||null}[It(355)](t,e,n,s){const i=It,r=document[i(454)](i(348));r.id=e,r.className=i(451)+String(this.adType).toLowerCase(),r[i(349)](i(431),i(360)),r[i(349)](i(379),String(this[i(370)])),r[i(349)](i(386),e);const{width:o,height:a}=this[i(433)](t,n,s)||{width:i(459),height:this.getDefaultHeight()};r.style[i(440)]=o,r[i(375)][i(429)]=a;const c=s?.[i(352)]||n[i(352)]||"invisible";this[i(425)](r,c),t.appendChild(r),this[i(381)]&&console.log(i(424)+this[i(370)]+i(413)+e+" ("+o+i(402)+a+i(403)+c)}[It(425)](t,e){const n=It;switch(e){case n(437):t[n(375)][n(387)]=n(363),t.style[n(408)]=n(458),t[n(375)][n(393)]="0",t.innerHTML="";break;case"transparent":t[n(375)].backgroundColor="transparent",t[n(375)].border=n(458),t[n(375)][n(391)]=n(418),t.innerHTML="";break;case"subtle":t[n(375)].backgroundColor=n(416),t.style[n(408)]=n(458),t.style[n(371)]=n(380),t.style[n(391)]="flex",t[n(375)][n(366)]=n(423),t.style.justifyContent=n(423),t[n(346)]=n(417);break;case"minimal":t[n(375)][n(387)]=n(357),t[n(375)][n(408)]=n(361),t[n(375)].borderRadius=n(447),t[n(375)][n(391)]=n(434),t[n(375)][n(366)]=n(423),t[n(375)].justifyContent=n(423),t[n(346)]='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case"debug":t[n(375)][n(408)]="2px dashed #e74c3c",t[n(375)][n(391)]=n(434),t[n(375)][n(366)]=n(423),t[n(375)][n(461)]=n(423),t[n(375)][n(387)]=n(462),t.style.color=n(345),t[n(375)][n(358)]="monospace",t[n(375)][n(455)]=n(367),t[n(346)]=n(398)+this[n(370)]+n(369);break;default:t[n(375)][n(408)]=n(412),t.style.display=n(434),t[n(375)].alignItems="center",t[n(375)].justifyContent=n(423),t[n(375)].backgroundColor="#f9f9f9",t[n(375)][n(435)]=n(385),t.innerHTML="<span>Loading "+this[n(370)]+n(369)}}[It(433)](t,e,n){const s=It,i=e.width,r=e[s(429)];let o,a;if(o="number"==typeof i?i+"px":typeof i===s(449)?i:"100%",typeof r===s(407))a=r+"px";else if("string"==typeof r&&r!==s(459)&&r!==s(411))a=r;else{const e=this[s(382)](t);e>0?(a=s(459),(n?.debug||this[s(381)])&&console[s(442)](s(376)+e+s(438))):(a=this.getDefaultHeight(),(n?.debug||this.debug)&&console[s(442)](s(404)+a+" for "+this[s(370)]))}return{width:o,height:a}}[It(382)](t){const e=It,n=window[e(419)](t),s=parseFloat(n[e(429)]);if(!s||0===s){const s=parseFloat(n[e(450)]);if(s>0)return s;if(t[e(375)][e(429)]&&"auto"!==t.style[e(429)]){const n=parseFloat(t[e(375)].height);if(n>0)return n}const i=t[e(444)](e(429));if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}[It(378)](){return async(t,e,n)=>{const s=vt;if(n===u[s(388)]){if(gt.isDuplicateViewable(t,e,this[s(381)]))return void(this.debug&&console[s(442)](s(441)+t+s(392)+e));this[s(381)]&&console[s(442)](s(364)+t+s(392)+e)}if(this[s(353)])try{this[s(381)]&&console[s(442)](s(356)+n+s(453)+t+s(392)+e),await this.advertisementEventTracker[s(399)](t,e,n),this[s(381)]&&console.log(s(427)+n+s(453)+t+s(392)+e)}catch(e){this[s(381)]&&console[s(452)](s(342)+n+" event for ad "+t+":",e)}else this[s(381)]&&console[s(422)](s(448)+n+" event")}}renderFallback(t){const e=It,n=document[e(426)](t.id);if(n){const s=[...[n[e(432)](e(347)),n[e(389)](e(347)),n][e(365)](t=>t&&t[e(373)](e(431))),...[n.closest(e(415)),n[e(389)](e(372)+String(this[e(370)])[e(460)]()),n[e(389)](e(350)),n.closest(e(397)),n[e(389)](e(401)),n[e(389)]('div[style*="height"]'),n[e(389)](e(421)),n.parentElement][e(365)](Boolean)][0];if(s){let n=e(414);n=s[e(373)]("data-adstage-container")?e(445):s.classList[e(354)](e(343))?e(430):"generic",s.style.cssText+=e(394),s.innerHTML="",s.setAttribute(e(359),e(360)),this[e(381)]&&console.warn(e(368)+this[e(370)]+e(396)+n+e(410)+t.id,s)}else this.createEmptyContainer(t)}t[e(457)]=void 0,t[e(383)]=!0}[It(362)](t){const e=It,n=document[e(426)](t[e(374)]);if(n){n[e(346)]="";const s=document[e(454)](e(348));s.id=t.id,s.className=e(420)+String(this.adType).toLowerCase(),s[e(349)](e(431),"true"),s[e(349)](e(359),e(360)),s[e(349)](e(386),t.id),s[e(375)][e(405)]=e(344),n[e(400)](s),this[e(381)]&&console.warn(e(377)+this[e(370)]+e(436)+t.id)}}[It(442)](t,...e){const n=It;this[n(381)]&&console[n(442)]("["+this[n(370)]+"] "+t,...e)}}function wt(){const t=["div","filter","dominant","16:9","4:3","adstage-ad adstage-banner-ad","2373028PxoTHR","log","applyOptimizedImageStyle","createSliderContainer","optimizeContainerForBannerAds","calculateOptimalHeight","<div>","name","backgroundColor","style","40GGQvcr"," (strategy: ","ratio","renderAdElement","set","objectFit","value","getElementById","optimizedHeight"," (avg: ",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"count","Banner Advertisement","innerHTML","Banner container optimization failed, using default size:","toFixed","250px","length","img","containerId","</div>","1:1","abs","616059hkPoGE"," with "," ads: ","1472975pdAjXJ","common","reduce","alt","Banner Ad","2538090PKRctv","calculateAdSize","3HkcCkE","Image URL is not provided","📦 Banner container dimensions: ","forEach","debug","toString","addClickEventForRenderer","slideInterval","status","30Xwhbmz","cover","naturalHeight",", ratio=","src"," ads (optimized: ","2298948elFKOY","config","display","parentElement","selectOptimalSizeStrategy","_id","Failed to load image: ","from","average","2sAwAvE","appendChild","round","100%","max","659270nbtxPE","Container not found: ","createEventTrackingCallback","aspectRatio","some","height","width","🎨 Banner image style applied: objectFit=","📐 Optimal banner container calculated: ","borderRadius","error","objectPosition","center","map","getDefaultHeight","Banner","getBoundingClientRect","createElement","8px","calculateOptimalContainerSize","values","contain","30371Oeando","get","16nkBZse","loadImageDimensions","imageUrl"];return(wt=function(){return t})()}function kt(t,e){const n=wt();return(kt=function(t,e){return n[t-=272]})(t,e)}const Et=kt;!function(){const t=kt,e=wt();for(;;)try{if(333349===parseInt(t(370))/1*(-parseInt(t(299))/2)+-parseInt(t(275))/3*(parseInt(t(337))/4)+-parseInt(t(304))/5*(-parseInt(t(284))/6)+parseInt(t(373))/7*(parseInt(t(328))/8)+parseInt(t(273))/9+-parseInt(t(347))/10*(parseInt(t(326))/11)+parseInt(t(290))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class xt extends bt{constructor(t=!1,e){super(r.BANNER,t,e)}[Et(318)](){return Et(363)}async[Et(350)](t,e){const n=Et,s=document[n(354)](t[n(366)]);if(!s)return;const i=document[n(321)](n(331));i.className=n(336);const r=t[n(355)],o=s[n(293)]||s;if(r)i.style.width=n(302),i[n(346)][n(309)]=String(r);else{const e=t[n(291)],s={width:e?.[n(310)],height:e?.[n(309)]},{width:r,height:a}=this[n(274)](o,s,{debug:this[n(279)]});i[n(346)][n(310)]=r,i[n(346)][n(309)]=a}e[n(330)]?await this.renderOptimizedBannerImage(i,e,t):i[n(360)]=n(343)+(e.title||n(272))+n(367),ct[n(281)](i,e,t,()=>this[n(306)](),this.debug,n(319)),s.innerHTML="",s[n(300)](i)}async renderMultipleAds(t,e){const n=Et,s=document.getElementById(t[n(366)]);if(!s)throw new Error(n(305)+t[n(366)]);await this.optimizeContainerForBannerAds(t,e);const i=this[n(306)](),r={autoSlideInterval:(t[n(291)]?.[n(282)]||5e3)/1e3,...t[n(291)],optimizedHeight:t.optimizedHeight,aspectRatio:t.aspectRatio},o=pt[n(340)](t,e,r,i,this[n(279)]);o&&(s[n(360)]="",s.appendChild(o),this[n(279)]&&console.log("🎠 Banner carousel created for slot: "+t.id+n(371)+e[n(364)]+n(289)+(t[n(355)]||"default")+")"))}async[Et(323)](t,e){const n=Et;if(!t[n(364)])return{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9};try{const s=(await Promise.allSettled(t[n(332)](t=>t[n(330)])[n(317)](t=>this.loadImageDimensions(t[n(330)]))))[n(332)](t=>"fulfilled"===t[n(283)])[n(317)](t=>t[n(353)]);if(0===s[n(364)])return{width:n(302),height:this[n(318)](),aspectRatio:16/9};const i=this[n(294)](s),r=this[n(342)](s,e,i);return this[n(279)]&&console[n(338)](n(312)+e+"x"+r+n(348)+i+")"),{width:n(302),height:r+"px",aspectRatio:e/r}}catch(t){return console.warn("Failed to calculate optimal banner size, using defaults:",t),{width:n(302),height:this[n(318)](),aspectRatio:16/9}}}async[Et(341)](t,e){const n=Et;try{const s=document[n(354)](t[n(366)]),i=document.getElementById(t.id);if(!s||!i)return;const r=s[n(320)]().width||300,o=await this.calculateOptimalContainerSize(e,r);i.style[n(309)]=o[n(309)],t.optimizedHeight=o[n(309)],t[n(307)]=o[n(307)],this.debug&&console[n(338)]("🔧 Banner container optimized for "+e[n(364)]+n(372)+o[n(309)])}catch(t){console.warn(n(361),t)}}selectOptimalSizeStrategy(t){const e=Et,n=t[e(317)](t=>t[e(310)]/t[e(309)]),s=new Map;n[e(278)](t=>{const n=e,i=(Math[n(301)](10*t)/10)[n(280)]();s[n(351)](i,(s[n(327)](i)||0)+1)});const i=Math[e(303)](...s[e(324)]()),r=t[e(364)];if(i/r>=.7)return"dominant";const o=[16/9,4/3,1,1.5],a=n[e(332)](t=>o[e(308)](e=>Math.abs(t-e)<.1)).length;return e(a/r>=.5?374:298)}calculateOptimalHeight(t,e,n){const s=Et,i=t[s(317)](t=>t[s(310)]/t[s(309)]);switch(n){case s(333):{const t=new Map;i.forEach(e=>{const n=s,i=Math[n(301)](10*e)/10,r=i[n(280)](),o=t[n(327)](r);o?o[n(358)]++:t[n(351)](r,{ratio:i,count:1})});const n=Array[s(297)](t.values())[s(375)]((t,e)=>e[s(358)]>t.count?e:t);return Math[s(301)](e/n.ratio)}case"common":{const t=[{ratio:16/9,name:s(334)},{ratio:4/3,name:s(335)},{ratio:1,name:s(368)},{ratio:1.5,name:"3:2"}],n=i[s(375)]((t,e)=>t+e,0)/i.length,r=t.reduce((t,e)=>Math[s(369)](e.ratio-n)<Math[s(369)](t[s(349)]-n)?e:t);return this[s(279)]&&console[s(338)]("📊 Using standard ratio: "+r[s(344)]+s(356)+n.toFixed(2)+")"),Math[s(301)](e/r[s(349)])}case s(298):default:{const t=i[s(375)]((t,e)=>t+e,0)/i[s(364)];return Math[s(301)](e/t)}}}[Et(329)](t){return new Promise((e,n)=>{const s=kt,i=new Image;i.onload=()=>{const t=kt;e({width:i.naturalWidth,height:i[t(286)]})},i.onerror=()=>{n(new Error(kt(296)+t))},i[s(288)]=t})}[Et(339)](t,e,n){const s=Et,i=e/n;Math[s(369)](i-1)<.1?(t.style[s(352)]=s(285),t.style.objectPosition=s(316)):i>1.3?(t[s(346)].objectFit=s(325),t[s(346)][s(315)]=s(316),t[s(346)][s(345)]="#f0f0f0"):i<.7?(t[s(346)][s(352)]=s(285),t.style[s(315)]=s(316)):(t.style[s(352)]=s(285),t[s(346)][s(315)]=s(316)),this[s(279)]&&console[s(338)](s(311)+t[s(346)][s(352)]+s(287)+i[s(362)](2))}async renderOptimizedBannerImage(t,e,n){const s=Et,i=document[s(321)](s(365));i.style[s(310)]="100%",i[s(346)][s(309)]=s(302),i.style[s(292)]="block",i[s(346)][s(313)]=s(322),i[s(376)]=e.title||s(359),t[s(360)]=s(357);try{if(!e[s(330)])throw new Error(s(276));const r=await this[s(329)](e[s(330)]),o=t[s(320)](),a=o[s(310)],c=o[s(309)];this.debug&&(console[s(338)]("📸 Banner image dimensions: "+r[s(310)]+"x"+r[s(309)]),console[s(338)](s(277)+a+"x"+c));const d=r[s(310)]/r.height,l=a/c;return this[s(339)](i,d,l),i[s(288)]=e[s(330)],t.innerHTML="",t[s(300)](i),ct[s(281)](i,e,n,()=>this[s(306)](),this[s(279)],s(319)),this[s(279)]&&console[s(338)]("✅ Optimized banner image rendered for ad: "+e[s(295)]),i}catch(r){return console[s(314)]("❌ Failed to load optimized banner image:",r),e[s(330)]&&(i[s(288)]=e[s(330)],i[s(346)][s(352)]=s(285),i[s(346)][s(315)]=s(316),t[s(360)]="",t.appendChild(i),ct[s(281)](i,e,n,()=>this[s(306)](),this[s(279)],s(319))),i}}}const At=Ct;function St(){const t=["1008854RoZNdh","2230AzDUFA","setTextAdContent","894JrTuiG","989sNpoHs","createTextAdStyles","644hcNUpj","4575TSglwu","2580528hpzDxS","405mySUVs","449241OqcnsF","title","115732nRiZsP","textContent"];return(St=function(){return t})()}function Ct(t,e){const n=St();return(Ct=function(t,e){return n[t-=363]})(t,e)}!function(){const t=Ct,e=St();for(;;)try{if(192394===parseInt(t(371))/1*(parseInt(t(373))/2)+parseInt(t(363))/3+parseInt(t(365))/4+parseInt(t(374))/5*(-parseInt(t(370))/6)+parseInt(t(367))/7+-parseInt(t(375))/8+parseInt(t(376))/9*(parseInt(t(368))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Tt{static[At(372)](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[At(369)](t,e){const n=At,s=e.textContent||e[n(364)]||"";t[n(366)]=s}}const Rt=Bt;function Dt(){const t=["setAttribute","body","adstage-fade-slide","touchstart","zIndex","entries","auto","addTouchSupport","3BMQjKh","6045324OoSrKH","minHeight","translateY(20px)","fit-content","className","changedTouches",";\n left: ","height: auto;","mouseleave","adType","1782908Rdltwh","touchend","addClickEventForSlider","trackSlideViewable","createSimpleAdElement","style","2166126kAXirA","touches","preventDefault",";\n top: ","Text","4932592eKUJXO","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","push","mouseenter","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","setProperty","width","top","whiteSpace",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","adstage-ad adstage-","normal","left","setTextAdContent","height: 100%;","removeChild","createElement","opacity","string",";\n ","clientX","height: auto; min-height: fit-content;","clientY","createTextAdStyles","relative","block","translateY(0)","includes",";\n transform: translateY(","data-adstage-slot-id","addEventListener","cssText","translateY(-20px)","transform","abs","createTextTransitionContainer","hidden","\n ","4503910NqljOi","265103qyqBaF","position","touchmove","appendChild","data-adstage-ad-id","toLowerCase","absolute","div","7389193ksvXnr","adstage-fade-slide-container","\n position: relative;\n width: 100%;\n ","autoSlideInterval","forEach","_id",";\n width: 100%;\n ","height"];return(Dt=function(){return t})()}function Bt(t,e){const n=Dt();return(Bt=function(t,e){return n[t-=214]})(t,e)}!function(){const t=Bt,e=Dt();for(;;)try{if(570186===parseInt(t(289))/1+-parseInt(t(245))/2*(-parseInt(t(228))/3)+-parseInt(t(239))/4+-parseInt(t(288))/5+parseInt(t(229))/6+-parseInt(t(297))/7+parseInt(t(250))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt{static[Rt(243)](t,e){const n=Rt,s=document[n(266)]("div");return s[n(233)]=n(260)+String(t[n(238)])[n(294)](),s[n(220)](n(293),e[n(217)]),s.setAttribute(n(279),t.id),s[n(244)][n(281)]=Tt[n(273)](!0),Tt[n(263)](s,e),s}static[Rt(285)](t,e,n,s,i=!1){const r=Rt,o=t[r(219)]&&0!==t[r(219)]&&t.height!==r(226),a=document[r(266)]("div");a[r(233)]="adstage-fade-slider-wrapper";const c={position:"relative",overflow:r(286),display:r(275)};if(!o&&(c.height=r(226),c[r(230)]=r(232)),t[r(256)]&&0!==t[r(256)]){let e;e=typeof t[r(256)]===r(268)?t[r(256)][r(277)]("px")||t[r(256)][r(277)]("%")?t.width:t[r(256)]+"px":t.width+"px",c[r(256)]=e}if(t[r(219)]&&0!==t.height&&t[r(219)]!==r(226)&&o){let e;e=typeof t[r(219)]===r(268)&&(t[r(219)][r(277)]("px")||t[r(219)][r(277)]("%"))?t[r(219)]:t.height+"px",c.height=e}Object[r(225)](c).forEach(([t,e])=>{const n=r;a[n(244)][n(255)](t,e)});const d=document[r(266)](r(296));d[r(233)]=r(298),d.style[r(281)]=r(214)+r(o?264:271)+r(287);let l=null;const u=!t[r(256)]||0===t[r(256)],p=!t[r(219)]||0===t.height||void 0===t[r(219)]||"auto"===t.height;if(u||p&&o){if(l=document[r(266)](r(296)),l[r(244)][r(281)]=r(254),!u&&t.width){let e;e=typeof t[r(256)]===r(268)&&(t[r(256)][r(277)]("px")||t[r(256)][r(277)]("%"))?t.width:t[r(256)]+"px",l[r(244)][r(256)]=e,l[r(244)][r(258)]=r(261)}document[r(221)].appendChild(l);let n=0,s=0;e.forEach(e=>{const i=r,o=this[i(243)](t,e);l.appendChild(o);const a=o.getBoundingClientRect();a[i(256)]>n&&(n=a[i(256)]),a.height>s&&(s=a[i(219)]),l[i(265)](o)}),u&&n>0&&(a[r(244)].width=n+"px"),p&&s>0&&o&&(a.style[r(219)]=s+"px"),document[r(221)][r(265)](l)}const h=[];e[r(216)]((e,n)=>{const a=r,c=document[a(266)](a(296));c.className=a(222);const l=a(o?295:0===n?274:295);c[a(244)][a(281)]="\n position: "+l+a(248)+(l===a(295)?"0":"auto")+a(235)+(l===a(295)?"0":a(226))+a(218)+(o?"height: 100%;":a(236))+a(251)+(0===n?"1":"0")+a(278)+(0===n?"0":"20px")+a(259)+(0===n?"2":"1")+a(269);const u=this.createSimpleAdElement(t,e);ct[a(241)](u,e,t,s,i,a(249)),c[a(292)](u),d[a(292)](c),h[a(252)](c)});let f=0;const g=e.length,m=1e3*(n?.[r(215)]||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(244)][a(290)]===a(274)&&(c.style.position=a(295),c[a(244)][a(257)]="0",c[a(244)][a(262)]="0"),d[a(244)].position=a(274),d[a(244)][a(257)]=a(226),d[a(244)][a(262)]=a(226)),c.style[a(267)]="0",c[a(244)][a(283)]=a(282),c[a(244)].zIndex="1",d[a(244)][a(267)]="1",d.style[a(283)]=a(276),d[a(244)][a(224)]="2",h[a(216)]((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(244)][s(267)]="0",t[s(244)][s(283)]=s(231),t[s(244)][s(224)]="1",!o&&"relative"===t.style[s(290)]&&(t[s(244)][s(290)]=s(295),t[s(244)][s(257)]="0",t[s(244)][s(262)]="0"))}),f=n,it[a(242)](e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a.addEventListener(r(253),()=>{clearInterval(v)}),a[r(280)](r(237),()=>{v=setInterval(()=>{I(f+1)},m)}),Lt[r(227)](a,I,()=>f,g),a[r(292)](d),a}static addTouchSupport(t,e,n,s){const i=Rt;let r=0,o=0,a=!1;t[i(280)](i(223),t=>{const e=i;r=t[e(246)][0][e(270)],o=t.touches[0][e(272)],a=!0}),t[i(280)](i(291),t=>{a&&t[i(247)]()}),t[i(280)](i(240),t=>{const s=i;if(!a)return;a=!1;const c=t.changedTouches[0][s(270)],d=t[s(234)][0][s(272)],l=r-c,u=o-d;if(Math.abs(l)>Math[s(284)](u)&&Math[s(284)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const zt=Pt;function Pt(t,e){const n=Mt();return(Pt=function(t,e){return n[t-=373]})(t,e)}function Mt(){const t=["addClickEventForRenderer","optimizedHeight","webkitLineClamp","Container not found: ","slideInterval","width","830161shyfgZ","height","containerId","hidden","vertical","510zdugio","createEventTrackingCallback","-webkit-box","100%","✨ Text transition created for slot: ","debug","appendChild","13505810SGoNwS","innerHTML","className","cssText","60px","9QjkFIA","createTextTransitionContainer","2DyDYzr","div","config","setTextAdContent","style","log","Text","getDefaultHeight","createElement","maxLines","_id","getElementById","54232wzJrWK","display","2109423sFFdya","adstage-text-content"," ads","overflow","renderMultipleAds","440112MvjoOq","66647BvlUCh","createTextAdStyles","number","2435763GtocAA","✨ Single text ad rendered: ","webkitBoxOrient","35KoNFlX"];return(Mt=function(){return t})()}!function(){const t=Pt,e=Mt();for(;;)try{if(739829===parseInt(t(414))/1*(parseInt(t(381))/2)+-parseInt(t(395))/3+-parseInt(t(393))/4*(parseInt(t(407))/5)+parseInt(t(419))/6*(-parseInt(t(401))/7)+-parseInt(t(400))/8+parseInt(t(379))/9*(parseInt(t(374))/10)+parseInt(t(404))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Nt extends bt{constructor(t=!1,e){super(r.TEXT,t,e)}[zt(388)](){return zt(378)}async renderAdElement(t,e){const n=zt,s=document[n(392)](t[n(416)]);if(!s)return;const i=document[n(389)](n(382));i[n(376)]="adstage-ad adstage-text-ad";const r=t[n(409)],o=s.parentElement||s;if(r)i[n(385)][n(413)]=n(422),i[n(385)][n(415)]=String(r);else{const e=t[n(383)],s={width:e?.[n(413)],height:e?.[n(415)]},{width:r,height:a}=this.calculateAdSize(o,s,{debug:this.debug});i[n(385)][n(413)]=r,i.style[n(415)]=a}const a=document[n(389)]("div");a[n(376)]=n(396),a.style[n(377)]=Tt[n(402)](!1),Tt[n(384)](a,e);const c=t[n(383)]?.[n(390)];c&&typeof c===n(403)&&(a[n(385)][n(394)]=n(421),a[n(385)][n(410)]=String(c),a[n(385)][n(406)]=n(418),a[n(385)][n(398)]=n(417)),i[n(373)](a),ct[n(408)](i,e,t,()=>this[n(420)](),this[n(424)],n(387)),s[n(375)]="",s[n(373)](i),this[n(424)]&&console[n(386)](n(405)+e[n(391)])}async[zt(399)](t,e){const n=zt,s=document[n(392)](t.containerId);if(!s)throw new Error(n(411)+t.containerId);const i=this[n(420)](),r={autoSlideInterval:(t.config?.[n(412)]||5e3)/1e3,...t[n(383)],optimizedHeight:t[n(409)],aspectRatio:t.aspectRatio},o=Lt[n(380)](t,e,r,i,this[n(424)]);o&&(s[n(375)]="",s[n(373)](o),this[n(424)]&&console.log(n(423)+t.id+" with "+e.length+n(397)))}}function Ut(t,e){const n=Ot();return(Ut=function(t,e){return n[t-=191]})(t,e)}function Ot(){const t=["1332036TEPFUE","stopPropagation","🎬 Video element created for ad: ","2228010ZBvtDr","height","hideControls","hideCurrentTime","controls","🔊 Video mute toggled: ","renderVideoElementDirect","100%",'\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 ',"adstage-video-mute-button","canplay","🎬 Video can play, attempting autoplay...","cssText","hideVolumeSlider","button","unmuted","style","Video","display","32YeprPC","hideMuteButton","🎬 Autoplay completely failed:","length","🎬 Video config received:"," !important;\n }\n "," (autoplay: ","⚠️ No video advertisements available for slot: ",", loop: ","autoplay","className","img"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","div","getElementById"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","warn","9981aaxmgu","\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 ","mouseleave","getDefaultHeight","\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 ","click"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","enabled","🎬 Single video ad rendered: ","error","title","play","objectFit","muted","block","Video thumbnail","19337AtzwDF","_id","addEventListener","adstage-video-container","containerId","🎬 Final video settings:","renderMultipleAds","hideProgressBar","src","scale(1)","360px","innerHTML","position","contain","customControls","Click to mute","🎬 Auto-play was prevented:","createElement","rgba(0, 0, 0, 0.7)","paused","Click to unmute","addClickEventForRenderer","catch","playsinline","log","width","head","config","Video load failed:","5227812LfiWZf","🎬 Single video rendered for VIDEO slot: ","\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 ","debug","1997415mEOVdr","disabled (default)","12512JXOotH","setAttribute","textContent","relative","none","imageUrl","createEventTrackingCallback","transform","🎬 Video metadata loaded, attempting autoplay...","hideRemainingTime","🎬 Video data loaded, attempting autoplay...","background","renderAdElement","loop","Video fallback","🎬 Trying muted autoplay fallback...","scale(1.1)","VIEWABLE","182315IrvvGH","appendChild","alt","video","🎬 Video controls setting:","🎬 Initial autoplay attempt after timeout..."];return(Ot=function(){return t})()}const Vt=Ut;!function(){const t=Ut,e=Ot();for(;;)try{if(532536===-parseInt(t(243))/1+parseInt(t(302))/2+parseInt(t(191))/3+parseInt(t(210))/4*(parseInt(t(296))/5)+parseInt(t(272))/6+-parseInt(t(276))/7+parseInt(t(278))/8*(-parseInt(t(227))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft extends bt{constructor(t=!1,e){super(r.VIDEO,t,e)}[Vt(230)](){return Vt(253)}async[Vt(290)](t,e){const n=Vt,s=document.getElementById(t[n(247)]);if(!s)return;const i=document.createElement(n(223));i[n(220)]=n(246),i[n(207)].cssText=n(228),this[n(197)](i,e,t),s.innerHTML="",s[n(297)](i),this[n(275)]&&console.log(n(235)+e[n(244)])}async[Vt(249)](t,e){const n=Vt,s=document[n(224)](t[n(247)]);if(!s)throw new Error("Container not found: "+t[n(247)]);if(e[n(213)]>0){const i=e[0],r=document.createElement(n(223));r[n(220)]=n(246),r[n(207)][n(203)]=n(231),this[n(197)](r,i,t),s[n(254)]="",s[n(297)](r);const o=this[n(284)]();setTimeout(()=>{const e=n;o(i._id,t.id,u[e(295)])},100),this.debug&&console[n(267)](n(273)+t.id+" ("+i[n(244)]+")")}else this[n(275)]&&console.warn(n(217)+t.id)}[Vt(197)](t,e,n){const s=Vt;t.style[s(255)]=s(281);const i=document[s(260)](s(299));i[s(207)][s(268)]=s(198),i[s(207)].height="100%",i[s(207)][s(239)]=s(256),i.preload="metadata";const r=n[s(270)];if(this[s(275)]&&console[s(267)](s(214),r),i[s(195)]=!1,i[s(219)]=!1!==r?.[s(219)],i[s(240)]=!0,i[s(291)]=!1!==r?.[s(291)],this[s(275)]&&console[s(267)](s(248),{autoplay:i[s(219)],muted:i[s(240)],loop:i[s(291)],controls:i[s(195)]}),!1!==r?.[s(266)]&&i[s(279)](s(266),""),!0===r?.[s(195)]&&(i[s(195)]=!0,this[s(275)]&&console[s(267)]("🎬 User explicitly enabled controls, overriding default")),r?.[s(193)])i[s(195)]=!1,i[s(207)][s(203)]+="\n pointer-events: none;\n ";else if(r?.[s(257)]){if(i.controls){const t=document.createElement(s(207));t[s(280)]="\n video::-webkit-media-controls-play-button {\n display: "+(r[s(257)].hidePlayButton?"none":s(241))+" !important;\n }\n video::-webkit-media-controls-timeline {\n display: "+(r[s(257)][s(250)]?s(282):s(241))+s(233)+(r.customControls[s(194)]?s(282):s(241))+s(225)+(r[s(257)][s(287)]?"none":s(241))+s(222)+(r[s(257)][s(204)]?s(282):s(241))+" !important;\n }\n video::-webkit-media-controls-mute-button {\n display: "+(r.customControls[s(211)]?s(282):s(241))+" !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: "+(r[s(257)].hideFullscreenButton?"none":s(241))+s(215),document[s(269)].appendChild(t)}}else if(i[s(195)]){const t=document[s(260)]("style");t.id="adstage-video-default-controls",t.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 ",!document.getElementById("adstage-video-default-controls")&&document.head[s(297)](t)}this[s(275)]&&console.log(s(300),i[s(195)]?s(234):s(277));const o=document[s(260)](s(205));o[s(220)]=s(200),o[s(207)][s(203)]=s(274),r?.[s(193)]&&(o[s(207)][s(209)]=s(282));const a=()=>{const t=s,e=t(199);o.innerHTML=i[t(240)]?e:'\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 ',o.title=i[t(240)]?t(263):t(258)};if(a(),o[s(245)](s(232),t=>{const e=s;t[e(303)](),i.muted=!i[e(240)],a(),this.debug&&console.log(e(196)+(i[e(240)]?e(240):e(206)))}),o[s(245)]("mouseenter",()=>{const t=s;o[t(207)][t(289)]="rgba(0, 0, 0, 0.9)",o[t(207)].transform=t(294)}),o[s(245)](s(229),()=>{const t=s;o[t(207)][t(289)]=t(261),o[t(207)][t(285)]=t(252)}),e.videoUrl){i[s(251)]=e.videoUrl;const t=()=>{const t=s;i.autoplay&&i[t(240)]&&i[t(262)]&&i[t(238)]()[t(265)](e=>{const n=t;this[n(275)]&&(console[n(226)](n(259),e),console[n(226)](n(293))),i[n(240)]=!0,i.play()[n(265)](t=>{const e=n;this[e(275)]&&console[e(236)](e(212),t)})})};i.addEventListener("loadedmetadata",()=>{const e=s;this[e(275)]&&console.log(e(286)),t()}),i.addEventListener(s(201),()=>{const e=s;this.debug&&console[e(267)](e(202)),t()}),i[s(245)]("loadeddata",()=>{const e=s;this.debug&&console.log(e(288)),t()}),setTimeout(()=>{const e=s;this[e(275)]&&console[e(267)](e(301)),t()},100)}else if(e[s(283)]){const n=document[s(260)]("img");return n[s(251)]=e[s(283)],n[s(207)][s(268)]=s(198),n.style[s(192)]="100%",n[s(207)][s(239)]=s(256),n[s(298)]=e[s(237)]||s(242),void t[s(297)](n)}ct[s(264)](i,e,n,()=>this[s(284)](),this[s(275)],s(208)),i[s(245)](s(236),i=>{const r=s;if(console.error(r(271),i),e[r(283)]){const s=document[r(260)](r(221));s[r(251)]=e.imageUrl,s[r(207)][r(268)]="100%",s.style[r(192)]=r(198),s[r(207)].objectFit=r(256),s[r(298)]=e[r(237)]||r(242),ct.addClickEventForRenderer(s,e,n,()=>this[r(284)](),this[r(275)],r(292)),t[r(254)]="",t[r(297)](s)}}),t[s(297)](i),t[s(297)](o),this[s(275)]&&console[s(267)](s(304)+e[s(244)]+s(216)+i.autoplay+", muted: "+i[s(240)]+s(218)+i.loop+")")}}const _t=Ht;function Ht(t,e){const n=jt();return(Ht=function(t,e){return n[t-=461]})(t,e)}!function(){const t=Ht,e=jt();for(;;)try{if(968143===-parseInt(t(464))/1+parseInt(t(498))/2+parseInt(t(490))/3*(parseInt(t(502))/4)+-parseInt(t(511))/5*(-parseInt(t(508))/6)+-parseInt(t(473))/7*(-parseInt(t(471))/8)+-parseInt(t(478))/9+-parseInt(t(489))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Kt extends bt{constructor(t=!1,e){super(r[Ht(500)],t,e)}getDefaultHeight(){return Ht(463)}async[_t(482)](t,e){const n=_t,s=document[n(472)](t[n(462)]);if(!s)return;const i=document[n(475)]("div");if(i[n(483)]="adstage-ad adstage-native-ad",i[n(477)][n(509)]=n(467),e.title){const t=document[n(475)]("h3");t[n(492)]=e[n(495)],t[n(477)][n(509)]=n(496),i[n(465)](t)}if(e[n(492)]){const t=document[n(475)]("p");t[n(492)]=e.textContent,t[n(477)][n(509)]=n(510),i[n(465)](t)}if(e[n(485)]){const t=document.createElement(n(487));t[n(477)][n(509)]=n(501);const s=document[n(475)]("img");s.src=e[n(485)],s[n(476)]=e[n(495)]||n(503),s[n(477)][n(509)]=n(474),t[n(465)](s),i[n(465)](t)}if(e.linkUrl){const t=document.createElement(n(484));t.textContent="Learn More",t[n(477)][n(509)]=n(486),t[n(507)](n(494),()=>{const t=n;this[t(461)]&&console[t(513)](t(468)+e[t(499)]),window[t(512)](e[t(493)],t(469))}),t[n(507)](n(481),()=>{const e=n;t[e(477)][e(505)]=e(479)}),t[n(507)](n(497),()=>{const e=n;t.style[e(505)]="#3b82f6"}),i[n(465)](t)}s.innerHTML="",s[n(465)](i),this[n(491)]&&console[n(513)](n(466)+e[n(499)])}async[_t(480)](t,e){const n=_t;e.length>0?(await this[n(482)](t,e[0]),this[n(491)]&&console[n(513)](n(504)+e[n(470)]+"): "+t.id)):this[n(491)]&&console[n(488)](n(506)+t.id)}}function jt(){const t=["🏠 Single native ad rendered: ","\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 ","Native click tracked for ad: ","_blank","length","8486168wumUYn","getElementById","7PflLyH","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","createElement","alt","style","2495547fljGkp","#2563eb","renderMultipleAds","mouseenter","renderAdElement","className","button","imageUrl","\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 ","div","warn","28091120FGuoPM","10809HLoOaN","debug","textContent","linkUrl","click","title","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","mouseleave","417638dtDhqh","_id","NATIVE","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","2140EzWfnM","Native Advertisement","🏠 Native ad rendered (first of ","backgroundColor","⚠️ No native advertisements available for slot: ","addEventListener","90rOJRYO","cssText","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","366910hgNuaz","open","log","advertisementEventTracker","containerId","200px","243387hpZGel","appendChild"];return(jt=function(){return t})()}const Wt=Xt;function Jt(){const t=["className","getDefaultHeight","2yNFvVF","linkUrl","Escape","adstage-interstitial-overlay","keydown","img","color","#e5e7eb","997134LlXuWL","3378296HdBceH","body","adstage-interstitial-content","head","title","1572435TPbair","click","Get Started","\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 ","div","backgroundColor","cssText","1430QrhxNk","getElementById","button","open","mouseenter","#3b82f6","textContent","length","#6b7280","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","imageUrl","target","INTERSTITIAL","_id","Interstitial click tracked for ad: ","\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 ","400px","🖼️ Interstitial ad rendered (first of ","appendChild","innerHTML","\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 ","5456SgXNkj","mouseleave","log","closeInterstitial","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","addEventListener","#374151","style","src","4673736BUfhty","): ","containerId","debug","4158170FGauPK","369652iIgiCk","21EzlLdC","advertisementEventTracker","fadeOut 0.3s ease-out forwards","renderMultipleAds","parentNode","🖼️ Interstitial ad closed","renderAdElement","adstage-interstitial-styles","createElement"];return(Jt=function(){return t})()}function Xt(t,e){const n=Jt();return(Xt=function(t,e){return n[t-=213]})(t,e)}!function(){const t=Xt,e=Jt();for(;;)try{if(272770===parseInt(t(273))/1+-parseInt(t(217))/2*(parseInt(t(231))/3)+-parseInt(t(259))/4*(parseInt(t(238))/5)+-parseInt(t(225))/6*(-parseInt(t(274))/7)+parseInt(t(226))/8+-parseInt(t(268))/9+parseInt(t(272))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class qt extends bt{constructor(t=!1,e){super(r[Xt(250)],t,e)}[Wt(216)](){return Wt(254)}async[Wt(280)](t,e){const n=Wt;if(!document[n(239)](t[n(270)]))return;const s=document.createElement(n(235));s[n(215)]=n(220),s[n(266)][n(237)]=n(234);const i=document.createElement("div");i[n(215)]=n(228),i[n(266)][n(237)]="\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 ";const r=document[n(214)](n(240));if(r[n(257)]="×",r[n(266)][n(237)]=n(258),r.addEventListener(n(232),()=>{this[n(262)](s)}),r[n(264)](n(242),()=>{const t=n;r[t(266)][t(236)]=t(224),r[t(266)].color=t(265)}),r[n(264)]("mouseleave",()=>{const t=n;r[t(266)][t(236)]="#f3f4f6",r[t(266)][t(223)]=t(246)}),e.imageUrl){const t=document.createElement(n(222));t[n(267)]=e[n(248)],t.alt=e[n(230)]||"Interstitial Advertisement",t[n(266)][n(237)]=n(247),i[n(256)](t)}if(e[n(230)]){const t=document[n(214)]("h2");t[n(244)]=e.title,t[n(266)][n(237)]=n(263),i[n(256)](t)}if(e[n(244)]){const t=document[n(214)]("p");t[n(244)]=e[n(244)],t.style[n(237)]="\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ",i[n(256)](t)}if(e[n(218)]){const t=document.createElement(n(240));t.textContent=n(233),t[n(266)][n(237)]=n(253),t[n(264)]("click",()=>{const t=n;this[t(275)]&&console[t(261)](t(252)+e._id),window[t(241)](e.linkUrl,"_blank"),this.closeInterstitial(s)}),t[n(264)](n(242),()=>{const e=n;t[e(266)][e(236)]="#2563eb"}),t[n(264)](n(260),()=>{const e=n;t[e(266)][e(236)]=e(243)}),i.appendChild(t)}const o=t=>{const e=n;t.key===e(219)&&(this[e(262)](s),document.removeEventListener(e(221),o))};if(document[n(264)](n(221),o),s.addEventListener(n(232),t=>{const e=n;t[e(249)]===s&&this[e(262)](s)}),!document.getElementById(n(213))){const t=document[n(214)](n(266));t.id=n(213),t[n(244)]="\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 ",document[n(229)][n(256)](t)}i.appendChild(r),s[n(256)](i),document[n(227)].appendChild(s),this[n(271)]&&console[n(261)]("🖼️ Interstitial ad rendered: "+e[n(251)])}async[Wt(277)](t,e){const n=Wt;e[n(245)]>0?(await this.renderAdElement(t,e[0]),this[n(271)]&&console.log(n(255)+e[n(245)]+n(269)+t.id)):this[n(271)]&&console.warn("⚠️ No interstitial advertisements available for slot: "+t.id)}[Wt(262)](t){const e=Wt;t[e(266)].animation=e(276),setTimeout(()=>{t[e(278)]&&t.parentNode.removeChild(t)},300),this[e(271)]&&console[e(261)](e(279))}}function Gt(){const t=["advertisement","optimizeContainerForBannerAds","textContent","className","getRenderer","736182dAVAAD","initializeRenderers","log","imageUrl","data-adstage-ad-id","toLowerCase","isLoaded","renderAdElement","naturalHeight","VIDEO","set","NATIVE","490836LDNnzR","965986IuVenE","data-adstage-slot-id","renderAdSlider","createAdElement","createElement","div","style","125607lchWZo","get","54354kIWWhy","config","🏭 AdRenderer factory initialized with ","setAttribute","onload","BANNER","appendChild","renderers","border","renderOptimizedBannerImage is only supported for BANNER ads","adType","warn","objectFit","getDefaultHeight","naturalWidth","_id","renderOptimizedBannerImage","3453680wParuJ","videoUrl","14264tiIqcg","getDefaultHeightForAdType","100%"," renderers","renderFallback","#f9f9f9","245ZVWqGi","src","height","No advertisement to render","TEXT","1px dashed #ccc","size","8px","img","width","onerror","createPlaceholder","debug","calculateAdSize","loadImageDimensions","advertisementEventTracker","block"];return(Gt=function(){return t})()}const Yt=Zt;function Zt(t,e){const n=Gt();return(Zt=function(t,e){return n[t-=192]})(t,e)}!function(){const t=Zt,e=Gt();for(;;)try{if(459469===parseInt(t(254))/1+parseInt(t(234))/2+-parseInt(t(246))/3+parseInt(t(206))/4+-parseInt(t(212))/5*(parseInt(t(256))/6)+parseInt(t(247))/7+parseInt(t(204))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Qt{constructor(t=!1,e){const n=Zt;this.renderers=new Map,this[n(224)]=t,this.advertisementEventTracker=e||null,this[n(235)]()}[Yt(235)](){const t=Yt;this[t(194)][t(244)](r[t(192)],new xt(this[t(224)],this[t(227)])),this[t(194)][t(244)](r[t(216)],new Nt(this[t(224)],this[t(227)])),this[t(194)][t(244)](r[t(243)],new Ft(this.debug,this.advertisementEventTracker)),this[t(194)][t(244)](r[t(245)],new Kt(this.debug,this[t(227)])),this[t(194)][t(244)](r.INTERSTITIAL,new qt(this[t(224)],this[t(227)])),this[t(224)]&&console[t(236)](t(258)+this[t(194)][t(218)]+t(209))}[Yt(250)](t,e){const n=Yt,s=this[n(233)](t[n(197)]),i=document[n(251)](n(252));i[n(232)]="adstage-ad adstage-"+String(t[n(197)])[n(239)](),i.setAttribute(n(238),e[n(202)]),i[n(259)](n(248),t.id);const{width:o,height:a}=s.calculateAdSize(i,t[n(257)]||{},e);switch(i[n(253)][n(221)]=o,i.style[n(214)]=a,i.style.display=n(228),t[n(197)]){case r[n(192)]:if(e.imageUrl){const t=document[n(251)](n(220));t[n(213)]=e[n(237)],t[n(253)][n(221)]=n(208),t[n(253)][n(214)]="100%",t.style[n(199)]="cover",i[n(193)](t)}break;case r[n(243)]:if(e.videoUrl){const t=document[n(251)]("video");t[n(213)]=e[n(205)],t[n(253)].width="100%",t[n(253)][n(214)]=n(208),i[n(193)](t)}break;case r[n(216)]:if(e[n(231)]){const t=document[n(251)](n(252));t[n(231)]=e.textContent||"",t[n(253)].padding=n(219),i.appendChild(t)}break;default:i[n(253)][n(195)]=n(217),i[n(253)].backgroundColor=n(211),i[n(231)]=t[n(197)]+" Ad"}return i}[Yt(233)](t){const e=Yt,n=this[e(194)][e(255)](t);if(!n)throw new Error("No renderer found for ad type: "+t);return n}[Yt(223)](t,e,n,s,i){const r=Yt;this[r(233)](n)[r(223)](t,e,s,i)}async[Yt(230)](t,e){const n=Yt;if(t[n(197)]!==r.BANNER)return void(this.debug&&console[n(198)]("⚠️ Container optimization is only supported for BANNER ads, got: "+t[n(197)]));const s=this[n(233)](r[n(192)]);await s.optimizeContainerForBannerAds(t,e)}async[Yt(249)](t,e){const n=Yt,s=this[n(233)](t[n(197)]);await s.renderMultipleAds(t,e)}async renderAd(t){const e=Yt;if(!t[e(229)])throw new Error(e(215));const n=this.getRenderer(t[e(197)]);await n[e(241)](t,t[e(229)]),t[e(240)]=!0}async[Yt(241)](t,e){const n=Yt,s=this.getRenderer(t.adType);await s[n(241)](t,e)}[Yt(210)](t){const e=Yt;this[e(233)](t[e(197)])[e(210)](t)}[Yt(207)](t){const e=Yt;return this[e(233)](t)[e(200)]()}[Yt(225)](t,e,n,s){return this.getRenderer(e).calculateAdSize(t,n,s)}[Yt(226)](t){return new Promise((e,n)=>{const s=Zt,i=new Image;i[s(260)]=()=>{const t=s;e({width:i[t(201)],height:i[t(242)]})},i[s(222)]=()=>{n(new Error("Failed to load image: "+t))},i[s(213)]=t})}async[Yt(203)](t,e,n){const s=Yt;if(n[s(197)]!==r[s(192)])throw new Error(s(196));const i=this.getRenderer(r.BANNER);return await i.renderOptimizedBannerImage(t,e,n)}async calculateOptimalContainerSize(t,e,n){const s=Yt;if(n!==r[s(192)]){const t=this[s(233)](n);return{width:s(208),height:t.getDefaultHeight(),aspectRatio:16/9}}const i=this[s(233)](r[s(192)]);return await i.calculateOptimalContainerSize(t,e)}log(t,...e){this[Yt(224)]&&console.log("[AdRenderer] "+t,...e)}}function $t(t,e){const n=ee();return($t=function(t,e){return n[t-=244]})(t,e)}const te=$t;function ee(){const t=["NATIVE","createPlaceholder","✅ Simple viewable impression tracked for ad ","values","maxLines","adstage-","create","renderAdElement","default","3444360yqgZRI","188342eeUCmH","Container not found after "," removed","from","error","🎯 Ads module initialized (sync mode) with auto-cleanup","API key not configured","slideInterval","nodeType","json","substr","then","isLoaded","toString","adType","height","GET"," (attempt ","_config","Failed to fetch ad data: ","❌ Failed to find element for viewability tracking: ",". Retrying in ","apiKey","refreshAdSlot","renderFallback","100%","setupAutoCleanup","muted","Auto-cleanup failed for slot ","style","renderAdSlider","adRenderer"," ads automatically","Container not found: ","createAdInternal","destroy","9DxSuyz","observe","INTERSTITIAL"," (element found)","set","New advertisement viewable tracked for slot:","deviceType","innerHTML","removedNodes","handleRemovedElement","renderAd","loop","🎯 Simple viewability tracking started for slot: ","delete","Ad slot not found: ","ELEMENT_NODE","🧹 Auto-cleanup: slot ","12174608hVQCrr","get","mutationObserver","🗑️ Ad slot destroyed: ","disconnect","width","string","banner","playsinline","debug","loadAdContentInBackground","length","autoDestroy","TEXT","country","isReady","BANNER","advertisement","🎠 Slider will handle VIEWABLE events for ","config","log","native","viewabilityTracker","slots","trackAdvertisementEvent","288026jTUlRG","📊 Advertisement event tracking enabled for slot: ","interstitial","advertisements","78FuhpoJ","language","onClick","getAttribute","auto"," ads for type: ","광고 생성 중 오류 발생:","getElementById","ms... (attempt ","createAdWithRetry","fetchAdData","list","warn","data-adstage-slot-id","createAd","📊 Fetched ","startSimpleViewabilityTracking","getSlotById","autoSlide","advertisementEventTracker","🔄 Ad slot refreshed: ","_id","undefined","19468290mBKNMM","forEach","Failed to refresh ad slot: ","controls","❌ Failed to track viewable impression:","handleViewableEvent","ensureReady","🚫 Advertisement not found with ID: ","adId","VIEWABLE","3598915WKxgBF","1650633bORgFp","_isReady","7gNstFV","refresh","status","Ads module not initialized. Call AdStage.init() first.","init","hideControls","querySelectorAll","📊 Fetched specific ad with ID: ","append","detail"];return(ee=function(){return t})()}!function(){const t=$t,e=ee();for(;;)try{if(797352===-parseInt(t(255))/1*(parseInt(t(353))/2)+-parseInt(t(253))/3+parseInt(t(274))/4+parseInt(t(252))/5+-parseInt(t(357))/6*(-parseInt(t(275))/7)+-parseInt(t(328))/8*(parseInt(t(311))/9)+parseInt(t(380))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){const t=$t;this[t(254)]=!1,this._config=null,this[t(351)]=new Map,this[t(376)]=null,this[t(306)]=null,this[t(330)]=null}[te(259)](t){const e=te;this._config=t,this[e(376)]=new K(tt.getBaseUrl(),t.apiKey,t[e(337)]||!1,this.slots),this[e(306)]=new Qt(t[e(337)]||!1,this[e(376)]),this[e(301)](),this[e(254)]=!0,t[e(337)]&&console[e(348)](e(280))}[te(343)](){return this[te(254)]}getConfig(){return this[te(293)]}[te(335)](t,e){const n=te;this.ensureReady();const s={width:e?.[n(333)]||"100%",height:e?.height||"auto",autoSlide:e?.autoSlide||!1,slideInterval:e?.[n(282)]||5e3,onClick:e?.[n(359)],adId:e?.[n(250)],language:e?.[n(358)],deviceType:e?.[n(317)],country:e?.[n(342)]};return this.createAd(t,r[n(344)],s)}text(t,e){const n=te;this.ensureReady();const s={maxLines:e?.[n(269)]||3,style:e?.[n(304)]||n(273),onClick:e?.onClick,adId:e?.[n(250)],language:e?.[n(358)],deviceType:e?.[n(317)],country:e?.country};return this[n(371)](t,r.TEXT,s)}video(t,e){const n=te;this[n(248)]();const s={width:e?.width||640,height:e?.[n(290)]||360,autoplay:void 0===e?.autoplay||e.autoplay,muted:void 0===e?.[n(302)]||e[n(302)],loop:void 0===e?.[n(322)]||e[n(322)],playsinline:!1!==e?.[n(336)],controls:void 0!==e?.controls&&e[n(245)],hideControls:e?.[n(260)]||!1,customControls:e?.customControls,autoSlide:!1,maxAds:1,onClick:e?.[n(359)],...e?.[n(250)]&&{adId:e[n(250)]}};return this[n(371)](t,r.VIDEO,s)}[te(349)](t,e){const n=te;return this[n(248)](),this.createAd(t,r[n(265)],e||{})}[te(355)](t,e){const n=te;return this.ensureReady(),this[n(371)](t,r[n(313)],e||{})}[te(256)](t){const e=te;this.ensureReady();const n=this[e(351)].get(t);if(!n)throw new Error(e(325)+t);this.refreshAdSlot(n),this._config?.[e(337)]&&console[e(348)](e(377)+t)}[te(310)](t){const e=te;this[e(248)]();const n=this.slots[e(329)](t);if(!n)throw new Error("Ad slot not found: "+t);n[e(350)]&&n.viewabilityTracker.destroy();const s=document[e(364)](n.containerId);s&&(s[e(318)]=""),this[e(351)].delete(t),this[e(293)]?.[e(337)]&&console.log(e(331)+t)}getAllSlots(){const t=te;return this[t(248)](),Array[t(278)](this[t(351)][t(268)]())}[te(374)](t){const e=te;return this[e(248)](),this[e(351)].get(t)||null}createAd(t,e,n){const s=te;if(!this._config?.[s(297)])throw new Error(s(281));const i=s(270)+e+"-"+Date.now()+"-"+Math.random()[s(288)](36)[s(285)](2,9);return this[s(366)](t,e,n,i,0),i}async[te(366)](t,e,n,s,i){const r=te,o=[0,50,100,200,500];let a,c=null;if(typeof t===r(334)){if(a=t,c=document[r(364)](t),!c)return i<4?(this[r(293)]?.[r(337)]&&console[r(369)](r(308)+t+r(296)+o[i+1]+r(365)+(i+1)+"/5)"),void setTimeout(()=>{this[r(366)](t,e,n,s,i+1)},o[i+1])):void console.error(r(276)+5+" attempts: "+t)}else c=t,a=c.id||"auto-"+s,!c.id&&(c.id=a);try{this[r(309)](a,e,n,s,c)}catch(t){console[r(279)](r(363),t)}}[te(309)](t,e,n,s,i){const o=te;i.setAttribute("data-adstage-slot-id",s),this[o(306)]?.[o(266)](i,s,e,n,this[o(293)]);const a={id:s,containerId:t,adType:e,width:n[o(333)]||o(300),height:n.height||(e===r[o(341)]?o(361):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[o(367)](e,n)[o(286)](t=>t[0]||null),render:t=>this[o(306)]?.[o(272)](a,t),refresh:async()=>this[o(298)](a),destroy:()=>this[o(310)](s)};this[o(351)][o(315)](s,a),this[o(338)](a),this.advertisementEventTracker&&this[o(293)]?.[o(337)]&&console[o(348)](o(354)+s)}async[te(338)](t){const e=te;try{const n=await this[e(367)](t.adType,t[e(347)]);if(!n||0===n[e(339)])return void this.adRenderer?.[e(299)](t);t[e(289)]===r[e(344)]&&n[e(339)]>0&&await(this.adRenderer?.optimizeContainerForBannerAds(t,n)),n[e(339)]>1||t[e(347)]?.[e(375)]?(await(this[e(306)]?.[e(305)](t,n)),this[e(293)]?.debug&&console[e(348)](e(346)+n.length+e(307))):(t[e(345)]=n[0],await(this[e(306)]?.[e(272)](t,n[0])),this[e(373)](t,n[0])),t[e(287)]=!0,this._config?.[e(337)]&&console[e(348)]("✅ Ad loaded for slot: "+t.id+" ("+n[e(339)]+" ads)")}catch(n){console[e(279)]("❌ Failed to load ad for slot: "+t.id,n),this[e(306)]?.[e(299)](t)}}[te(373)](t,e){const n=(s=0)=>{const i=$t,r=document[i(364)](t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this[i(293)]?.[i(337)]&&console[i(348)]("🔄 Retrying viewability tracking for slot: "+t.id+i(292)+(s+1)+")")):console[i(369)](i(295)+t.id));const o=new J(r,async()=>{await this.handleViewableEvent(e,t)});t[i(350)]=o,this[i(293)]?.debug&&console[i(348)](i(323)+t.id+i(314))};n()}async[te(247)](t,e){const n=te;try{this.advertisementEventTracker&&(await this[n(376)][n(352)](t[n(378)],e.id,u[n(251)]),this[n(293)]?.[n(337)]&&console.log(n(267)+t[n(378)]))}catch(t){console[n(279)](n(246),t)}}async[te(367)](t,e){const n=te;if(!this._config?.[n(297)])throw new Error(n(281));if(e[n(250)]){const t=""+tt.advertisements[n(264)](e[n(250)]),s=await fetch(t,{method:n(291),headers:V[n(271)](this[n(293)][n(297)])});if(!s.ok){if(404===s[n(257)])return console[n(369)](n(249)+e[n(250)]),[];throw new Error(n(294)+s[n(257)])}const i=await s[n(284)]();return this[n(293)]?.debug&&console.log(n(262)+e.adId,i),[i]}const s=new URLSearchParams;s[n(263)](n(289),t),e[n(358)]&&s[n(263)]("language",e[n(358)]),e[n(317)]&&s.append(n(317),e[n(317)]),e.country&&s.append(n(342),e.country);const i=tt[n(356)][n(368)]()+"?"+s[n(288)](),r=await fetch(i,{method:n(291),headers:V.create(this[n(293)][n(297)])});if(!r.ok)throw new Error(n(294)+r[n(257)]);const o=(await r[n(284)]())[n(356)]||[];return this[n(293)]?.[n(337)]&&console.log(n(372)+o.length+n(362)+t+", filters:",{language:e.language,deviceType:e.deviceType,country:e[n(342)]}),o}async[te(298)](t){const e=te;try{const n=await this.fetchAdData(t[e(289)],t.config||{});n&&n.length>0&&(t[e(345)]=n[0],await(this[e(306)]?.[e(321)](t)),this[e(376)]&&console[e(348)](e(316),t.id))}catch(n){console.error(e(244)+t.id,n)}}[te(248)](){const t=te;if(!this._isReady)throw new Error(t(258))}setupAutoCleanup(){const t=te;typeof window!==t(379)&&typeof document!==t(379)&&(this[t(330)]&&this[t(330)][t(332)](),this.mutationObserver=new MutationObserver(e=>{const n=t;e[n(381)](t=>{const e=n;t[e(319)].forEach(t=>{const n=e;t[n(283)]===Node[n(326)]&&this[n(320)](t)})})}),this[t(330)][t(312)](document.body,{childList:!0,subtree:!0}),this._config?.[t(337)]&&console.log("🔍 Auto-cleanup MutationObserver enabled"))}handleRemovedElement(t){const e=te,n=t[e(360)](e(370));if(n)return void this.autoDestroy(n);t[e(261)]("[data-adstage-slot-id]")[e(381)](t=>{const n=e,s=t[n(360)](n(370));s&&this[n(340)](s)})}[te(340)](t){const e=te;if(this.slots[e(329)](t))try{this[e(351)][e(324)](t),this._config?.[e(337)]&&console[e(348)](e(327)+t+e(277))}catch(n){this[e(293)]?.[e(337)]&&console[e(369)](e(303)+t+":",n)}}destroyModule(){const t=te,e=this[t(293)]?.debug;this[t(330)]&&(this[t(330)].disconnect(),this.mutationObserver=null),this[t(351)].clear(),this[t(376)]=null,this[t(306)]=null,this[t(254)]=!1,this[t(293)]=null,e&&console[t(348)]("🗑️ Ads module destroyed")}}var se=ie;function ie(t,e){var n=oe();return(ie=function(t,e){return n[t-=361]})(t,e)}!function(){for(var t=ie,e=oe();;)try{if(332031===-parseInt(t(391))/1+-parseInt(t(363))/2+parseInt(t(386))/3*(-parseInt(t(368))/4)+-parseInt(t(392))/5+-parseInt(t(364))/6*(-parseInt(t(376))/7)+-parseInt(t(369))/8*(-parseInt(t(377))/9)+parseInt(t(383))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class re{constructor(){var t=ie;this[t(387)]=!1,this[t(374)]=null,this[t(373)]=null}[se(362)](t){var e=se;this[e(374)]={timeout:3e4,debug:!1,modules:["ads",e(384),e(375)],...t},t[e(390)]&&tt[e(371)](t[e(390)]),this._isReady=!0,t[e(361)]&&console.log("✅ Config module initialized (sync mode)",{modules:this[e(374)].modules,endpoint:tt[e(367)](),mode:e(365)})}[se(378)](){return this._isReady}[se(379)](){return this[se(374)]}[se(382)](){return this[se(373)]}getApiEndpoint(){return tt[se(367)]()}[se(380)](){var t=se;return this[t(374)]?.[t(361)]||!1}getEnabledModules(){var t=se;return this._config?.[t(381)]||[]}isModuleEnabled(t){var e=se;return this[e(385)]()[e(366)](t)}[se(372)](t){var e=se;if(!this[e(374)])throw new Error("Config module not initialized");this[e(374)]={...this[e(374)],...t},this.isDebugMode()&&console[e(370)]("🔄 Config updated",t)}getApiHeaders(){var t=se;if(!this[t(374)]?.[t(389)])throw new Error("API key not available");return V[t(388)](this._config.apiKey)}}function oe(){var t=["8pwWvsN","24nThCtH","log","setBaseUrl","updateConfig","_organizationInfo","_config","config","1106pSTyih","701001KVLAbo","isReady","getConfig","isDebugMode","modules","getOrganizationInfo","1708470shIoOk","events","getEnabledModules","10770BGYPvB","_isReady","create","apiKey","baseUrl","83325HBJtdB","1001765uHfXby","debug","init","45782HIULlp","9162akDizW","development","includes","getBaseUrl"];return(oe=function(){return t})()}const ae=ce;function ce(t,e){const n=de();return(ce=function(t,e){return n[t-=305]})(t,e)}function de(){const t=["929230ocppll","SSR","mobile-web","height","onLine","test","103900tTXmdG","userAgent","mapPlatformForEvents","72507EiMLbZ","getAppVersion","ko-KR","isMobile","width","web","desktop","getDeviceInfo","android","unknown","getPlatform","0x0","desktop-web","mobile","isBrowser","platform","getViewportInfo","77fxrPwq","ios","251832unamEp","other","696384DTLXMX","541392YsKCJs","tablet","toLowerCase","160342MFMPiT"];return(de=function(){return t})()}!function(){const t=ce,e=de();for(;;)try{if(236461===parseInt(t(328))/1+parseInt(t(321))/2+-parseInt(t(331))/3+-parseInt(t(317))/4+-parseInt(t(322))/5+parseInt(t(318))/6+-parseInt(t(313))/7*(-parseInt(t(315))/8))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ae(338)](){const t=ae;if(!w[t(310)]())return{category:t(316),platform:t(323),model:t(323),appVersion:B[t(332)](),osVersion:t(323)};const e=navigator[t(329)][t(320)]();let n=t(337);/tablet|ipad/[t(327)](e)?n=t(319):M[t(334)]()&&(n=t(309));const s=M[t(306)]();return{category:n,platform:le[t(330)](s),model:navigator[t(311)],appVersion:B.getAppVersion(),osVersion:navigator[t(311)]}}static mapPlatformForEvents(t){const e=ae;switch(t){case e(314):return e(314);case e(339):return e(339);case e(336):return e(324);case e(337):return e(308);default:return e(305)}}static getDetailedInfo(){const t=ae;if(!w[t(310)]())return{userAgent:"SSR",language:t(333),platform:t(323),cookieEnabled:!1,onLine:!0,screenResolution:t(307),viewportSize:t(307)};const e=w[t(312)]();return{userAgent:navigator[t(329)],language:navigator.language||"ko-KR",platform:navigator[t(311)],cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(326)],screenResolution:screen[t(335)]+"x"+screen[t(325)],viewportSize:e.width+"x"+e.height}}}function ue(t,e){const n=fe();return(ue=function(t,e){return n[t-=259]})(t,e)}const pe=ue;!function(){const t=ue,e=fe();for(;;)try{if(215339===parseInt(t(273))/1*(parseInt(t(274))/2)+parseInt(t(282))/3*(parseInt(t(276))/4)+-parseInt(t(275))/5+parseInt(t(266))/6*(-parseInt(t(267))/7)+-parseInt(t(264))/8*(parseInt(t(278))/9)+parseInt(t(269))/10*(-parseInt(t(261))/11)+-parseInt(t(268))/12*(-parseInt(t(270))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class he{static[pe(280)](){const t=pe;return{...he[t(272)](),...he[t(283)]}}static[pe(272)](){const t=pe;if(!w[t(271)]())return{language:t(262),country:"KR"};const e=navigator.language||"ko-KR";return{language:e,country:he[t(281)](e)}}static[pe(281)](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[pe(265)]("-")[0]]||"KR"}static setUserProperties(t){const e=pe;he[e(283)]={...he[e(283)],...t}}static[pe(263)](t,e){he[pe(283)][t]=e}static clearUserProperties(){he[pe(283)]={}}static[pe(259)](){return{...he[pe(283)]}}static estimateLocation(){const t=pe;if(!w[t(271)]())return{timezone:t(279),estimatedCountry:"KR"};const e=Intl[t(277)]().resolvedOptions()[t(260)];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 fe(){const t=["987454dQuYJt","isBrowser","getBaseUserInfo","1493NzFTQg","530fsKZQV","2042395jDZzJf","72292yTYDbM","DateTimeFormat","9aOylHN","UTC","getUserInfo","extractCountryFromLanguage","6axeXxR","_userProperties","getCurrentUserProperties","timeZone","29634nuIKiD","ko-KR","setUserProperty","1036344Uwywyg","split","6558fXRiNH","1932xDjqoy","144xwoXLJ","1070CCbBeg"];return(fe=function(){return t})()}function ge(t,e){const n=Ie();return(ge=function(t,e){return n[t-=211]})(t,e)}he[pe(283)]={};const me=ge;function Ie(){const t=["405510oNOlRW","isSessionExpired","getSessionDuration","getUserId","clearUserId","8kaLOSW","842253ToZoHs","25671850dEfmGH","session_","isNewSession","5VQfoYE","ssr_session_","removeItem","toString","_userId","6129487rSKAiw","getItem","12430890YDxApm","getSessionId","random","refreshSession","adstage_session_id","getSessionInfo","adstage_session_start","2PqYwBn","setUserId","1179060fHnyBP","now","_sessionStartTime","setItem","1120630KsknbH","isBrowser"];return(Ie=function(){return t})()}!function(){const t=ge,e=Ie();for(;;)try{if(994557===-parseInt(t(223))/1+parseInt(t(217))/2*(parseInt(t(231))/3)+-parseInt(t(219))/4+-parseInt(t(235))/5*(-parseInt(t(225))/6)+-parseInt(t(240))/7*(-parseInt(t(230))/8)+-parseInt(t(242))/9+parseInt(t(232))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{static[me(211)](){const t=me;if(!w[t(224)]())return t(236)+Date[t(220)]();const e=sessionStorage[t(241)]("adstage_session_id");if(e)return e;const n=t(233)+Math[t(212)]()[t(238)](36).substr(2,9)+"_"+Date[t(220)]();return sessionStorage[t(222)]("adstage_session_id",n),!ve[t(221)]&&(ve[t(221)]=Date[t(220)](),w.isBrowser()&&sessionStorage[t(222)]("adstage_session_start",String(ve._sessionStartTime))),n}static[me(218)](t){const e=me;ve[e(239)]=t,w[e(224)]()&&localStorage[e(222)]("adstage_user_id",t)}static[me(228)](){const t=me;if(ve[t(239)])return ve._userId;if(w[t(224)]()){const e=localStorage.getItem("adstage_user_id");if(e)return ve[t(239)]=e,e}}static[me(229)](){const t=me;ve[t(239)]=void 0,w[t(224)]()&&localStorage[t(237)]("adstage_user_id")}static[me(215)](){const t=me,e=ve[t(211)](),n=ve.getUserId(),s=ve[t(234)]();return{sessionId:e,userId:n,sessionDuration:ve[t(227)](),isNewSession:s}}static[me(234)](){const t=me;if(!w.isBrowser())return!0;const e=sessionStorage.getItem("adstage_session_id"),n=sessionStorage[t(241)](t(216));return!e||!n}static[me(227)](){const t=me;if(!w[t(224)]())return 0;const e=sessionStorage[t(241)](t(216));return e?Date.now()-parseInt(e,10):0}static[me(213)](){const t=me;return w[t(224)]()&&(sessionStorage[t(237)](t(214)),sessionStorage.removeItem(t(216))),ve[t(221)]=void 0,ve[t(211)]()}static isSessionExpired(t=24){return ve[me(227)]()>60*t*60*1e3}static getSessionStats(){const t=me,e=ve[t(211)](),n=ve[t(228)](),s=ve[t(227)](),i=ve[t(226)](),r=ve[t(234)]();let o;if(w[t(224)]()){const e=sessionStorage[t(241)](t(216));o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:i,isNewSession:r}}}const ye=we;function be(){const t=["3996bZNWCF","events","POST","error","warn","getConfig","Event tracking failed: ","getDeviceInfo","20Vlgbtm","setUserId","init","87366PUQNDc","sendEventToServer","apiKey","setUserProperties","69hJgyew","_isReady","getUserInfo","3647GDwaHP","status","8320279MRWAWh","5242734AYauLC","_config","isReady","getSessionId","4236600kohPYZ","getUserId","log","debug","application/json","getUserProperties","55580VppDrA","track","47oTOLjt","1448dBwgqt","API key not configured for event tracking.","✅ Event tracked:","stringify","statusText","❌ Failed to track event:","create"];return(be=function(){return t})()}function we(t,e){const n=be();return(we=function(t,e){return n[t-=488]})(t,e)}!function(){const t=we,e=be();for(;;)try{if(335787===-parseInt(t(499))/1*(-parseInt(t(507))/2)+-parseInt(t(522))/3*(parseInt(t(497))/4)+parseInt(t(515))/5*(parseInt(t(518))/6)+parseInt(t(525))/7*(-parseInt(t(500))/8)+-parseInt(t(528))/9+parseInt(t(491))/10+parseInt(t(527))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ke{constructor(){const t=we;this[t(523)]=!1,this[t(488)]=null}[ye(517)](t){const e=ye;this[e(488)]=t,this._isReady=!0,t[e(494)]&&console[e(493)]("📊 Events module initialized")}[ye(489)](){return this[ye(523)]}[ye(512)](){return this._config}setUserId(t){const e=ye;ve[e(516)](t),this[e(488)]?.[e(494)]&&console[e(493)]("👤 User ID set:",t)}[ye(492)](){return ve[ye(492)]()}setUserProperties(t){const e=ye;he[e(521)](t),this[e(488)]?.[e(494)]&&console[e(493)]("👤 User properties set:",t)}[ye(496)](){return he.getCurrentUserProperties()}async[ye(498)](t,e){const n=ye;if(this[n(523)])if(this[n(488)]?.apiKey)try{const s={eventName:t,userId:ve[n(492)](),sessionId:ve[n(490)](),sdkVersion:C(),device:le[n(514)](),user:he[n(524)](),params:e||{}};await this[n(519)](s),this[n(488)][n(494)]&&console[n(493)](n(502),t,e)}catch(s){console[n(510)](n(505),s),this[n(488)].debug&&console.error("Event data:",{eventName:t,properties:e})}else console[n(511)](n(501));else console.warn("Events module not initialized. Call AdStage.init() first.")}async[ye(519)](t){const e=ye,n=await fetch(tt[e(508)][e(498)](),{method:e(509),headers:{...V[e(506)](this[e(488)][e(520)]),"Content-Type":e(495)},body:JSON[e(503)](t)});if(!n.ok)throw new Error(e(513)+n[e(526)]+" "+n[e(504)])}}const Ee=xe;function xe(t,e){const n=Ae();return(xe=function(t,e){return n[t-=311]})(t,e)}function Ae(){const t=["size","🌐 API endpoint configured:","6CrJkUm","reset","debug","config","670564ZtLzMb","6302865pZBfsq","events","clearAdViewable","1121518Pfcadl","1608200PKKXIG","setBaseUrl","substring","modules","138677EkawMF","_isInitialized","from","API key is required for AdStage initialization","getConfig","10666890TgFfER","42EWAxoV","9TfmBfF","ads","60oQoSUQ","...","getInstance","✅ AdStage Debug: 광고 ","viewableTracker","baseUrl","log","instance","_config","init","📊 AdStage Debug: 현재 viewable 추적 상태","development","754755oQLTYF","2.0.0","function","isReady"];return(Ae=function(){return t})()}!function(){const t=xe,e=Ae();for(;;)try{if(654446===parseInt(t(338))/1+parseInt(t(312))/2+-parseInt(t(324))/3*(-parseInt(t(348))/4)+parseInt(t(349))/5*(-parseInt(t(344))/6)+-parseInt(t(323))/7*(-parseInt(t(313))/8)+-parseInt(t(322))/9+parseInt(t(326))/10*(parseInt(t(317))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Se{constructor(){const t=xe;this._isInitialized=!1,this[t(334)]=null,this.config=new re,this[t(325)]=new ne,this.events=new ke}static[Ee(335)](t){const e=Ee;!Se[e(333)]&&(Se[e(333)]=new Se);const n=Se[e(333)];if(!t.apiKey)throw new Error(e(320));n[e(334)]={timeout:3e4,debug:!1,modules:["ads",e(350),"config"],...t},n[e(334)][e(331)]&&(tt[e(314)](n[e(334)][e(331)]),t[e(346)]&&console.log(e(343),n._config[e(331)]));const s=n[e(334)][e(316)]||[e(325),e(350),e(347)];for(const t of s){const s=n[t];s&&typeof s[e(335)]===e(340)&&s.init(n._config)}n._isInitialized=!0,t[e(346)]&&console[e(332)]("🚀 AdStage SDK initialized (sync mode)",{version:e(339),modules:s,apiKey:t.apiKey[e(315)](0,8)+e(327),mode:e(337)})}static[Ee(341)](){const t=Ee;return Se[t(333)]?._isInitialized||!1}static[Ee(321)](){const t=Ee;return Se[t(333)]?.[t(334)]||null}static[Ee(328)](){const t=Ee;if(!Se[t(333)])throw new Error("AdStage not initialized. Call AdStage.init() first.");return Se[t(333)]}static get ads(){const t=Ee;return Se.getInstance()[t(325)]}static get events(){const t=Ee;return Se[t(328)]()[t(350)]}static get[Ee(347)](){return Se[Ee(328)]().config}static[Ee(345)](){const t=Ee;Se[t(333)]&&(Se[t(333)][t(318)]=!1,Se[t(333)][t(334)]=null)}}function Ce(t,e){var n=De;return Se.isReady()?Se[n(335)].track(t,e):(console[n(333)](n(344)),Promise[n(334)]())}function Te(t){var e=De;Se.isReady()?Se[e(335)][e(341)](t):console.warn(e(344))}function Re(){var t=De;if(Se[t(340)]())return Se[t(335)][t(336)]();console[t(333)](t(344))}function De(t,e){var n=Le();return(De=function(t,e){return n[t-=329]})(t,e)}function Be(t){var e=De;Se[e(340)]()?Se[e(335)].setUserProperties(t):console[e(333)]("AdStage not initialized. Call AdStage.init() first.")}function Le(){var t=["2857EpeEfb","AdStage not initialized. Call AdStage.init() first.","15274110sciWqr","getUserProperties","633420nFAPIu","65DFLeuR","1843926jSmKJM","9gUFYtj","warn","resolve","events","getUserId","90jafeMj","1717656MkYYay","10631586papxPj","isReady","setUserId","441116iuzHNE"];return(Le=function(){return t})()}function ze(){var t=De;if(Se[t(340)]())return Se.events[t(346)]();console.warn(t(344))}Se.debug={clearAllViewable:()=>{gt.clear(),console.log("✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨")},clearAdViewable:(t,e)=>{const n=Ee;gt[n(311)](t,e),console.log(n(329)+t+"("+e+")의 viewable 추적 초기화됨")},getViewableStatus:()=>{const t=Ee;console.log(t(336),{trackedCount:gt[t(330)][t(342)],trackedItems:Array[t(319)](gt[t(330)])})}},function(){for(var t=De,e=Le();;)try{if(847026===-parseInt(t(343))/1*(-parseInt(t(337))/2)+-parseInt(t(331))/3+-parseInt(t(342))/4*(-parseInt(t(330))/5)+parseInt(t(329))/6+-parseInt(t(339))/7+-parseInt(t(338))/8+-parseInt(t(332))/9*(-parseInt(t(345))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Pe=e(null);function Me({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&Se.reset(),Se.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{Se.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Pe.Provider,{value:p,children:e})}function Ne(){const t=i(Pe);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Ue(){const{isInitialized:t}=Ne();return t?Se:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Oe(t,e){var n=Ve();return(Oe=function(t,e){return n[t-=475]})(t,e)}function Ve(){var t=["155DUXgUz","7ogyuVW","10514056wXyxTr","262334hoSSBA","10854756oOghEm","4100829MseQAD","5328756GKwiwL","32340xYDVRx","1730766qgqAYS"];return(Ve=function(){return t})()}function Fe(){const t=["288946wBxemv","8HOPLuN","32583060rlczQi","210648pZNlXR","AdStage","4877536eubBwj","5743425JCLjYz","config","2gEHqeJ","2.0.0","91stuXnq","events","undefined","3339873OpRkXL","4744107wxKjOW"];return(Fe=function(){return t})()}!function(){for(var t=Oe,e=Ve();;)try{if(768544===-parseInt(t(480))/1+-parseInt(t(476))/2+parseInt(t(482))/3+parseInt(t(475))/4*(-parseInt(t(477))/5)+parseInt(t(483))/6+parseInt(t(478))/7*(-parseInt(t(479))/8)+parseInt(t(481))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const _e=He;function He(t,e){const n=Fe();return(He=function(t,e){return n[t-=360]})(t,e)}!function(){const t=He,e=Fe();for(;;)try{if(894771===parseInt(t(363))/1+parseInt(t(371))/2*(parseInt(t(362))/3)+parseInt(t(368))/4+parseInt(t(369))/5+-parseInt(t(366))/6*(parseInt(t(373))/7)+parseInt(t(364))/8*(parseInt(t(361))/9)+-parseInt(t(365))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ke=_e(372),je=["ads",_e(374),_e(370)];typeof window!==_e(360)&&(window[_e(367)]=Se);export{Se as AdStage,Me as AdStageProvider,Ke as SDK_VERSION,je as SUPPORTED_MODULES,Re as getUserId,ze as getUserProperties,Te as setUserId,Be as setUserProperties,Ce as track,Ne as useAdStageContext,Ue 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";function r(){var t=["MOBILE","VIDEO","3738469GJDsca","15CDLaLs","TABLET","DESKTOP","WEB","3460059FvDjBy","1177rhOkWl","10556350wLafpA","18ZpoKsq","16hTtmJR","734632raBQYj","8013lyDuKL","INTERSTITIAL","NATIVE","VIEWABLE","71688CcnpSg","68dNZGzG","POPUP","TEXT","BANNER","1223628dpjIjk","CLICK"];return(r=function(){return t})()}var o,a,c,d,l,u,p,h,f,g,m,I;function v(t,e){var n=r();return(v=function(t,e){return n[t-=107]})(t,e)}!function(){for(var t=v,e=r();;)try{if(554768===-parseInt(t(113))/1*(parseInt(t(118))/2)+parseInt(t(110))/3*(parseInt(t(112))/4)+-parseInt(t(127))/5*(-parseInt(t(122))/6)+-parseInt(t(126))/7+-parseInt(t(111))/8*(parseInt(t(107))/9)+parseInt(t(109))/10+-parseInt(t(108))/11*(parseInt(t(117))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(a=o||(o={}))[(c=v)(121)]=c(121),a[c(119)]=c(119),a[c(114)]=c(114),a.NATIVE=c(115),a[c(125)]=c(125),a[c(120)]=c(120),(l=d||(d={}))[(u=v)(130)]=u(130),l[u(124)]=u(124),(h=p||(p={}))[(f=v)(116)]=f(116),h[f(123)]=f(123),(m=g||(g={}))[(I=v)(129)]=I(129),m[I(124)]=I(124),m[I(128)]=I(128);const y=b;function b(t,e){const n=k();return(b=function(t,e){return n[t-=243]})(t,e)}!function(){const t=b,e=k();for(;;)try{if(795874===-parseInt(t(300))/1+-parseInt(t(262))/2+-parseInt(t(301))/3+-parseInt(t(280))/4*(-parseInt(t(309))/5)+-parseInt(t(268))/6+parseInt(t(293))/7*(parseInt(t(246))/8)+parseInt(t(270))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class w{static[y(288)](){return"undefined"!=typeof window&&typeof document!==y(276)}static[y(277)](){return!this[y(288)]()}static canUseDOM(){return this[y(288)]()&&void 0!==document.readyState}static[y(257)](t){return this[y(302)]()?document.getElementById(t):null}static safeQuerySelector(t){return this.canUseDOM()?document.querySelector(t):null}static[y(247)](t){const e=y;return this[e(302)]()?Array[e(263)](document[e(308)](t)):[]}static safeCreateElement(t){return this[y(302)]()?document.createElement(t):null}static safeAddEventListener(t,e,n,s){const i=y;this[i(302)]()&&t&&t[i(271)](e,n,s)}static safeRemoveEventListener(t,e,n,s){const i=y;this[i(302)]()&&t&&t[i(248)](e,n,s)}static[y(297)](t,e){return this[y(288)]()?window[t]??e:e}static[y(289)](t,e){return this[y(302)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const s=y;return this[s(288)]()?window[s(285)](t,e,n):null}static safeGetComputedStyle(t){return this[y(288)]()&&t?window.getComputedStyle(t):null}static[y(267)](){return!!this.canUseDOM()&&"loading"!==document.readyState}static[y(304)](){return new Promise(t=>{const e=b;this.canUseDOM()?this[e(267)]()?t():this.safeAddEventListener(document,e(311),()=>t()):t()})}static[y(273)](t,e){const n=y;this[n(302)]()&&t&&Object[n(255)](e)[n(258)](([e,s])=>{const i=n;t[i(287)][i(272)](e,s)})}static safeAddClass(t,e){const n=y;this[n(302)]()&&t&&t[n(279)][n(284)](e)}static[y(260)](t,e){const n=y;this[n(302)]()&&t&&t[n(279)][n(274)](e)}static safeSetTextContent(t,e){const n=y;this[n(302)]()&&t&&(t[n(295)]=e)}static[y(261)](t,e){const n=y;this[n(302)]()&&t&&(t[n(269)]=e)}static[y(305)](t,e){this[y(302)]()&&t&&e&&t.appendChild(e)}static safeRemoveChild(t,e){const n=y;this[n(302)]()&&t&&e&&t[n(256)](e)}static[y(298)](){const t=y;return{url:this[t(297)](t(253),{href:""})[t(243)],title:this[t(289)](t(306),""),referrer:this[t(289)](t(299),"")}}static[y(283)](){const t=y;return{width:this[t(297)](t(292),0),height:this[t(297)](t(291),0),pixelRatio:this[t(297)](t(303),1)}}static getScrollInfo(){const t=y;return{scrollTop:this.canUseDOM()?window[t(264)]||document.documentElement[t(250)]:0,scrollLeft:this[t(297)](t(265),0)}}static async waitForElement(t,e={}){const n=y,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(302)]())throw new Error(n(252));const o=document.getElementById(t);return o?(r&&console.log(n(282)+t),o):(r&&console[n(244)](n(278)+t+n(281)+s+n(296)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(266)](s/i),l=()=>{const n=a;c++;const u=document[n(259)](t);if(u)return r&&console[n(244)](n(290)+t+" ("+c+n(275)+c*i+n(249)),void e(u);if(c>=d){const e='❌ 컨테이너를 찾을 수 없습니다: "'+t+n(310)+t+n(286)+s+"ms ("+c+"번 시도)";return r&&console[n(245)](e),void o(new Error(e))}r&&c%10==0&&console.log(n(294)+t+" ("+c+"/"+d+")");const p=Math[n(254)](i*Math[n(251)](1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async waitForElements(t,e={}){const n=y,s=t.map(t=>this[n(307)](t,e));return Promise.all(s)}}function k(){const t=["title","waitForElement","querySelectorAll","1715jLGbnW",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"DOMContentLoaded","href","log","error","24iNqsXT","safeQuerySelectorAll","removeEventListener","ms 경과)","scrollTop","pow","DOM을 사용할 수 없는 환경입니다.","location","min","entries","removeChild","safeGetElementById","forEach","getElementById","safeRemoveClass","safeSetInnerHTML","1998278GmACAk","from","pageYOffset","pageXOffset","ceil","isDOMReady","2726322ZGLnlh","innerHTML","34389369hCWKJQ","addEventListener","setProperty","safeApplyStyles","remove","번째 시도, ","undefined","isSSR","⏳ 컨테이너 대기 시작: ","classList","816vEpiKU"," (최대 ","✅ 컨테이너 즉시 발견: ","getViewportInfo","add","open",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"style","isBrowser","getDocumentProperty","✅ 컨테이너 발견: ","innerHeight","innerWidth","1720033jhMZkL","⏳ 컨테이너 대기 중: ","textContent","ms)","getWindowProperty","getPageInfo","referrer","1121545LfWxRf","3771675PXaJnT","canUseDOM","devicePixelRatio","waitForDOM","safeAppendChild"];return(k=function(){return t})()}const E=S;function x(){const t=["undefined","2223662eZUlUG","2255govwtE","3988143qNMuKy","3810AtEkWN","AdStageSDK/"," AdStageSDK/","3358688UkKEEq","1154731NHJdPO",'"3.0.3"',"593820sQpZil","36tDJgHR","258315ukXdaS","userAgent"];return(x=function(){return t})()}!function(){const t=S,e=x();for(;;)try{if(668706===parseInt(t(307))/1+parseInt(t(309))/2+parseInt(t(311))/3*(-parseInt(t(310))/4)+-parseInt(t(315))/5*(-parseInt(t(317))/6)+-parseInt(t(314))/7+-parseInt(t(306))/8+parseInt(t(316))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const A=E(308);function S(t,e){const n=x();return(S=function(t,e){return n[t-=304]})(t,e)}function C(){return A}const T=R;function D(){const t=["../core/adstage","493380VlQICR","getPlaceholderMode","6IFCkpT","getEnabledModules","getApiKey","2948264mAaBGh","841410xEbahs","9942IYHLMd","appVersion","placeholderMode","timeout","15MDjYLM","isDebugMode","652844cbRWoR","modules","ads","4428030TjLokh","getConfig","events","637552fmPFro","apiKey","1.0.0","getTimeout","2338wZRKIN"];return(D=function(){return t})()}function R(t,e){const n=D();return(R=function(t,e){return n[t-=263]})(t,e)}!function(){const t=R,e=D();for(;;)try{if(347703===parseInt(t(286))/1+parseInt(t(280))/2*(parseInt(t(269))/3)+parseInt(t(267))/4*(-parseInt(t(278))/5)+-parseInt(t(274))/6*(parseInt(t(265))/7)+-parseInt(t(272))/8+-parseInt(t(273))/9+parseInt(t(283))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class z{static getConfig(){const t=R;try{const{AdStage:e}=require(t(266));return e[t(284)]()}catch{return null}}static getAppVersion(){const t=R,e=z[t(284)]();return e?.[t(275)]||t(263)}static[T(279)](){const t=z[T(284)]();return t?.debug||!1}static[T(271)](){const t=T,e=z[t(284)]();return e?.[t(287)]}static[T(264)](){const t=T,e=z[t(284)]();return e?.[t(277)]||3e4}static[T(268)](){const t=T,e=z[t(284)]();return e?.[t(276)]||"subtle"}static[T(270)](){const t=T,e=z.getConfig();return e?.[t(281)]||[t(282),t(285),"config"]}}const L=P;function B(){const t=["platform","756133CMIuPt","android","web","effectiveType","adstage_session_id","device_","toString","getBoundingClientRect","generateSessionId","isMobile","getPlatform","test","toLowerCase","3651579TBEHLD",",y:","SSR","resolvedOptions","collectDeviceInfo","isBrowser","setItem","round","2874156dJiwWQ","pixelRatio","255262vJvSPR","width","generateDeviceId","colorDepth","random","scrollTop","timeZone","session_","height","736316fMASys","userAgent","getScrollInfo","substr","2142114LtYAeX","5PJXtbr","UTC","getSlotPosition","1372136eXVjVL","adstage_device_id","ios","unknown","getItem","now","getAppVersion","64fTHzeI","ssr_session_","left"];return(B=function(){return t})()}function P(t,e){const n=B();return(P=function(t,e){return n[t-=230]})(t,e)}!function(){const t=P,e=B();for(;;)try{if(388264===parseInt(t(260))/1+parseInt(t(241))/2+-parseInt(t(245))/3+-parseInt(t(249))/4*(-parseInt(t(246))/5)+-parseInt(t(230))/6+parseInt(t(232))/7*(-parseInt(t(256))/8)+parseInt(t(273))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{static[L(234)](){const t=L;if(!w[t(278)]())return"ssr_device_"+Date[t(254)]();const e=localStorage[t(253)](t(250));if(e)return e;const n=t(265)+Math[t(236)]().toString(36).substr(2,9)+"_"+Date[t(254)]();return localStorage[t(279)](t(250),n),n}static[L(268)](){const t=L;if(!w[t(278)]())return t(257)+Date[t(254)]();const e=sessionStorage[t(253)](t(264));if(e)return e;const n=t(239)+Math[t(236)]()[t(266)](36)[t(244)](2,9)+"_"+Date[t(254)]();return sessionStorage.setItem(t(264),n),n}static isMobile(){const t=L;return!!w[t(278)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(271)](navigator[t(242)])}static[L(270)](){const t=L;if(!w[t(278)]())return t(262);const e=navigator[t(242)][t(272)]();return/iphone|ipad|ipod/[t(271)](e)?t(251):/android/[t(271)](e)?t(261):V[t(269)]()?"web":"desktop"}static[L(277)](){const t=L,e=w.getViewportInfo();return{deviceId:V[t(234)](),sessionId:V.generateSessionId(),osVersion:w.isBrowser()?navigator[t(259)]:"SSR",deviceModel:w[t(278)]()?navigator[t(259)]:t(275),appVersion:z[t(255)](),sdkVersion:C(),language:w[t(278)]()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:w[t(278)]()?navigator[t(242)]:t(275),timezone:w[t(278)]()?Intl.DateTimeFormat()[t(276)]()[t(238)]:t(247),viewportWidth:e[t(233)],viewportHeight:e[t(240)],screenWidth:w[t(278)]()?screen[t(233)]:0,screenHeight:w[t(278)]()?screen.height:0,colorDepth:w.isBrowser()?screen[t(235)]:24,pixelRatio:e[t(231)],connectionType:w[t(278)]()&&navigator.connection?.[t(263)]||t(252),platform:V[t(270)]()}}static[L(248)](t){const e=L,n=w.safeGetElementById(t);if(!n)return e(252);const s=n[e(267)](),i=w[e(243)]();return"x:"+Math[e(280)](s[e(258)])+e(274)+Math[e(280)](s.top+i[e(237)])}}function M(t,e){const n=N();return(M=function(t,e){return n[t-=228]})(t,e)}function N(){const t=["create","1ICGRrn","3359185fsOWXY","20283936IFeslX","1955709cyNCxx","51240pqtAbg","6577711fMzQjd","6516906cSlUXh","1083086VqVbLP","User-Agent","contentType","createForEvents","userAgent","API key is required"];return(N=function(){return t})()}const U=M;!function(){const t=M,e=N();for(;;)try{if(829497===-parseInt(t(235))/1*(parseInt(t(228))/2)+-parseInt(t(238))/3+parseInt(t(239))/4+-parseInt(t(236))/5+parseInt(t(241))/6+-parseInt(t(240))/7+parseInt(t(237))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class O{static create(t,e){const n=M;if(!t)throw new Error(n(233));const s={"x-api-key":t,"Content-Type":e?.[n(230)]||"application/json"};return"undefined"!=typeof navigator&&(s[n(229)]=e?.[n(232)]||navigator[n(232)]),s}static[U(231)](t,e){const n=U,s=O[n(234)](t);return e?.[n(232)]&&(s[n(229)]=e[n(232)]),s}}const F=H;function H(t,e){const n=_();return(H=function(t,e){return n[t-=467]})(t,e)}function _(){const t=["apiKey"," for ad ","2702FNpFRH","parseNumericValue"," in slot ","🌐 Full API call details:","POST","replace","substring","deviceId","6281580VjTmHm","log","✅ Successfully tracked advertisement event: ","🔍 Debug info:","getSlotPosition","now","BANNER","status","stringify","18140520fDXtVK","error","text","string","...","number","collectDeviceInfo","🚀 AdvertisementEventTracker: Processing ","get","4bqseVH","trackAdvertisementEvent","slots","width","92045iIVIpQ","getPageInfo","350481ZFDSdf"," - ","sessionId","baseUrl","VIEWABLE","debug","1654112DjKAaw","statusText","❌ Failed to track advertisement event:","API request failed: ","height","9rjsNRR","title","1147875VanFLu","22664SyfjfE","containerId"];return(_=function(){return t})()}!function(){const t=H,e=_();for(;;)try{if(926653===parseInt(t(489))/1+-parseInt(t(495))/2+-parseInt(t(502))/3+-parseInt(t(483))/4*(-parseInt(t(487))/5)+parseInt(t(515))/6+-parseInt(t(507))/7*(parseInt(t(503))/8)+-parseInt(t(500))/9*(-parseInt(t(474))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class K{constructor(t,e,n,s){const i=H;this.baseUrl=t,this[i(505)]=e,this[i(494)]=n,this.slots=s}async[F(484)](t,e,n){const s=F;try{this[s(494)]&&console[s(516)](s(481)+n+" event for ad "+t+s(509)+e);const i=this[s(485)][s(482)](e),r=V[s(480)](),o={adType:i?.adType||s(471),platform:r.platform,deviceId:r[s(514)],deviceInfo:r,pageUrl:w[s(488)]().url,pageTitle:w[s(488)]()[s(501)],referrer:w[s(488)]().referrer,slotId:e,slotPosition:V[s(469)](i?.[s(504)]||""),slotWidth:K[s(508)](i?.[s(486)]),slotHeight:K.parseNumericValue(i?.[s(499)]),sessionId:r[s(491)],pageLoadTime:performance[s(470)](),metadata:{eventType:n,sdkVersion:C(),timestamp:Date[s(470)]()},...n===p[s(493)]&&{isViewable:!0,iabCompliant:!0}},a=this[s(492)]+"/advertisements/events/"+t+"/"+n,c=O.createForEvents(this[s(505)],o);this.debug&&(console.log("🚀 Sending advertisement event: "+n+s(506)+t,{url:a,headers:c,eventData:o}),console[s(516)](s(510),{method:s(511),url:a,hasApiKey:!!this[s(505)],bodySize:JSON[s(473)](o).length}));const d=await fetch(a,{method:"POST",headers:c,body:JSON[s(473)](o)});if(this[s(494)]&&console.log("📡 API Response Status: "+d[s(472)]+" "+d[s(496)],{url:a,ok:d.ok}),!d.ok){const t=await d[s(476)]();throw new Error(s(498)+d.status+" "+d[s(496)]+s(490)+t)}this[s(494)]&&console[s(516)](s(467)+n+s(506)+t)}catch(i){console[s(475)](s(497),i),console[s(475)](s(468),{baseUrl:this[s(492)],apiKey:this[s(505)]?this[s(505)][s(513)](0,8)+s(478):"NOT_SET",url:this[s(492)]+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=F;if(typeof t===e(479))return t;if(typeof t===e(477)){const n=parseFloat(t[e(512)](/px$/,""));return isNaN(n)?0:n}return 0}}var j=J;!function(){for(var t=J,e=X();;)try{if(754571===parseInt(t(287))/1+parseInt(t(301))/2+parseInt(t(297))/3+parseInt(t(290))/4+parseInt(t(293))/5+parseInt(t(282))/6*(-parseInt(t(302))/7)+-parseInt(t(284))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class W{constructor(t,e){var n=J;this.observer=null,this[n(280)]=!1,this[n(278)]=t,this[n(283)]=e,this[n(286)]()}[j(286)](){var t=j;t(300)in window?(this[t(298)]=new IntersectionObserver(e=>this[t(288)](e),{threshold:.5,rootMargin:"0px"}),this.observer[t(295)](this.element)):console[t(279)](t(285))}[j(288)](t){t.forEach(t=>{var e=J;t[e(289)]>=.5&&this[e(281)]()&&!this[e(280)]&&(this[e(280)]=!0,this[e(283)]&&this[e(283)]())})}isDocumentVisible(){var t=j;return!document[t(292)]&&document[t(291)]===t(296)}[j(299)](){var t=j;this[t(298)]&&(this.observer[t(294)](),this[t(298)]=null)}}function J(t,e){var n=X();return(J=function(t,e){return n[t-=278]})(t,e)}function X(){var t=["onViewableCallback","12276256JUnwNZ","IntersectionObserver not supported, viewability tracking disabled","initIntersectionObserver","506420DdVHMq","handleIntersection","intersectionRatio","1179060HGEPOj","visibilityState","hidden","2622685LOUIzP","disconnect","observe","visible","3996147Aaktij","observer","destroy","IntersectionObserver","666556zWnetA","181986CDiHOI","element","warn","isViewableTriggered","isDocumentVisible","162xKVRJj"];return(X=function(){return t})()}const G=q;function q(t,e){const n=tt();return(q=function(t,e){return n[t-=489]})(t,e)}!function(){const t=q,e=tt();for(;;)try{if(104716===-parseInt(t(500))/1+parseInt(t(490))/2+parseInt(t(513))/3+-parseInt(t(511))/4+parseInt(t(498))/5*(-parseInt(t(514))/6)+parseInt(t(508))/7*(-parseInt(t(499))/8)+-parseInt(t(510))/9*(-parseInt(t(502))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Q={production:G(491),beta:G(505)},Y={advertisements:{list:G(494),detail:G(492),events:G(489)},events:{track:G(501)}};class Z{constructor(t){const e=G;this[e(496)]={list:()=>""+this[e(493)]+Y.advertisements.list,detail:t=>""+this[e(493)]+Y[e(496)][e(504)]+"/"+t,events:(t,n)=>""+this.baseUrl+Y[e(496)].events+"/"+t+"/"+n},this.events={track:()=>""+this[e(493)]+Y[e(512)][e(506)]},this[e(493)]=t||Q[e(503)]}[G(507)](t){this[G(493)]=t}[G(497)](){return this.baseUrl}[G(495)](t){const e=G;return""+this.baseUrl+(t[e(509)]("/")?t:"/"+t)}}const $=new Z;function tt(){const t=["32474PntVDw","https://api.adstage.io","/advertisements","baseUrl","/advertisements/list","custom","advertisements","getBaseUrl","173135zlWhaT","648ChgnrJ","158608rdphlG","/events/track","60qOzhqj","production","detail","https://beta-api.adstage.app","track","setBaseUrl","9681QrDdAz","startsWith","570897FWPvXi","166192TlvdMo","events","267942NAymlh","12eYjAIO","/advertisements/events"];return(tt=function(){return t})()}function et(t,e){var n=st();return(et=function(t,e){return n[t-=257]})(t,e)}var nt=et;function st(){var t=["1198011xwrmta","1196226cRoPJV",") in slot: ","50GLcyZr","74niXIzF","927437ZqelLv","18zSFQcK","🎯 Triggering initial VIEWABLE event: ad ","1695tSTkzR","7756sFTVtL","VIEWABLE","log","3331515ZqWNGN","19390nTuQKb","_id","trackSlideViewable"," (index: "," (index: 0) in slot: ","447528Awldha"];return(st=function(){return t})()}!function(){for(var t=et,e=st();;)try{if(430937===parseInt(t(270))/1*(-parseInt(t(261))/2)+parseInt(t(257))/3+parseInt(t(266))/4*(parseInt(t(265))/5)+parseInt(t(263))/6*(parseInt(t(262))/7)+parseInt(t(275))/8+-parseInt(t(258))/9*(parseInt(t(260))/10)+parseInt(t(269))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static[nt(272)](t,e,n,s,i=!1){var r=nt;i&&console[r(268)]("🎯 Triggering VIEWABLE event for slide change: ad "+t[r(271)]+r(273)+n+r(259)+e.id),s(t[r(271)],e.id,p.VIEWABLE)}static trackInitialSlideViewable(t,e,n,s=!1){var i=nt;s&&console[i(268)](i(264)+t[i(271)]+i(274)+e.id),n(t._id,e.id,p[i(267)])}}const rt=ot;function ot(t,e){const n=at();return(ot=function(t,e){return n[t-=268]})(t,e)}function at(){const t=["7808796QVMSZi","addClickEventsBatch","1748306DLrcPm"," -> ","preventDefault","click","addClickEventForRenderer","toLowerCase"," ad clicked: ","_blank","_id","🔗 ","addClickEventForSlider","1185495SCAGBQ","log","adType","cursor","3908LAuqKT","789wNGOzH","5417040WiRlgX","pointer","447250rWAxQJ","addEventListener","stopPropagation","addClickEvent","CLICK","style","3066ZGOIHj","linkUrl","open","17983QbfMpn"];return(at=function(){return t})()}!function(){const t=ot,e=at();for(;;)try{if(678770===-parseInt(t(272))/1+parseInt(t(284))/2+-parseInt(t(269))/3*(-parseInt(t(268))/4)+-parseInt(t(295))/5+parseInt(t(278))/6*(-parseInt(t(281))/7)+parseInt(t(270))/8+parseInt(t(282))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static addClickEvent(t,e,n,s,i=!1,r){const o=ot;e[o(279)]&&(t[o(277)][o(298)]="pointer",t[o(273)](o(287),t=>{const a=o;if(t[a(286)](),t[a(274)](),s&&s(e[a(292)],n.id,p[a(276)]),window[a(280)](e[a(279)],a(291)),i){const t=r||String(n.adType)[a(289)]();console[a(296)](a(293)+t+a(290)+e[a(292)]+a(285)+e[a(279)])}}))}static[rt(288)](t,e,n,s,i=!1,r){const o=rt;e[o(279)]&&(t[o(277)][o(298)]=o(271),t[o(273)](o(287),t=>{const a=o;t.preventDefault(),t.stopPropagation();if(s()(e[a(292)],n.id,p[a(276)]),window[a(280)](e[a(279)],a(291)),i){const t=r||String(n[a(297)])[a(289)]();console[a(296)](a(293)+t+" ad clicked: "+e[a(292)]+a(285)+e[a(279)])}}))}static[rt(294)](t,e,n,s,i=!1,r){this[rt(275)](t,e,n,s,i,r)}static isClickable(t){return Boolean(t.linkUrl)}static[rt(283)](t,e,n,s,i=!1,r){t.forEach((t,o)=>{const a=ot,c=e[o];c&&this[a(275)](t,c,n,s,i,r)})}}function dt(t,e){const n=ut();return(dt=function(t,e){return n[t-=375]})(t,e)}const lt=dt;function ut(){const t=["addTouchSupport","querySelectorAll","1949892zKuujo","center","objectFit","851855quNUWV","forEach","includes","string","transform 0.4s ease-out","Banner Ad","getBoundingClientRect","color","preventDefault","border","inline-block","appendChild","_id","clientX","body","img",".adstage-dot","display","50px","VIDEO","changedTouches","#999999","0.7","children","#cccccc","data-adstage-slot-id","Video Ad","textContent","overflow","2111709Mtwcvi","videoUrl","#000","touches","toLowerCase","autoSlideInterval","cssText","createSliderContainer","adstage-slide","abs","block","createMinimalDotIndicator","adstage-dot","100%","#666666","backgroundColor","7PxNcrx","className"," Ad","every","mouseleave","117414CnvHNV","addEventListener","14px","4733176pWlIdx","TEXT","Text Ad","height","translateX(-","cover","7300932lUXxZU","flex","\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-dots","adstage-slider-wrapper","fontSize","adstage-slide-container","transparent","relative","setAttribute","transform","white","entries","active","data-adstage-ad-id","adType","style","classList","transition","createElement","mouseenter","100px","src","hidden","#f0f0f0","borderColor","8px","setProperty","width","auto","video","whiteSpace","imageUrl","div","opacity","add","createSimpleAdElement","1px dashed #ccc","padding","background","contains","touchstart","touchend","length","2455348OKpTnq"];return(ut=function(){return t})()}!function(){const t=dt,e=ut();for(;;)try{if(772002===parseInt(t(381))/1+parseInt(t(437))/2+parseInt(t(469))/3+parseInt(t(434))/4+parseInt(t(440))/5+-parseInt(t(390))/6+parseInt(t(376))/7*(-parseInt(t(384))/8))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class pt{static[lt(426)](t,e){const n=lt,s=document.createElement("div");switch(s[n(377)]="adstage-ad adstage-"+String(t[n(405)])[n(473)](),s[n(399)](n(404),e[n(452)]),s[n(399)](n(465),t.id),s[n(406)].display=n(479),s[n(406)][n(418)]=n(482),s.style[n(387)]=n(419),t.adType){case o.BANNER:if(e[n(422)]){const t=document.createElement(n(455));t.src=e[n(422)],t[n(406)][n(418)]=n(482),t.style[n(387)]=n(419),t[n(406)][n(439)]=n(389),s[n(451)](t)}else s[n(406)][n(387)]=n(411),s[n(406)].backgroundColor=n(414),s.style[n(449)]="1px dashed #ccc",s[n(467)]=n(445);break;case o[n(459)]:if(e[n(470)]){const t=document[n(409)](n(420));t[n(412)]=e[n(470)],t[n(406)][n(418)]="100%",t[n(406)][n(387)]=n(419),s[n(451)](t)}else s[n(406)].height="200px",s[n(406)][n(375)]=n(471),s[n(406)][n(449)]="1px solid #666",s.textContent=n(466),s.style[n(447)]=n(401);break;case o[n(385)]:if(e[n(467)]){const t=document.createElement(n(423));t.textContent=e[n(467)]||"",t[n(406)][n(428)]=n(416),t.style[n(395)]=n(383),s[n(451)](t)}else s.style[n(387)]=n(458),s[n(406)][n(428)]="8px",s[n(467)]=n(386);break;default:s.style[n(387)]=n(411),s[n(406)][n(449)]=n(427),s.style[n(375)]="#f9f9f9",s[n(467)]=t[n(405)]+n(378)}return s}static[lt(476)](t,e,n,s,i=!1){const r=lt,a=document[r(409)](r(423));a[r(377)]=r(394);const c={position:r(398),overflow:"hidden"};if(t[r(418)]&&0!==t[r(418)]){let e;e="string"==typeof t.width&&(t.width[r(442)]("px")||t.width[r(442)]("%"))?t.width:t[r(418)]+"px",c[r(418)]=e,c[r(457)]=r(450)}else c[r(457)]=r(450);if(t[r(387)]&&0!==t[r(387)]){const e=typeof t[r(387)]===r(443)?t[r(387)]:t[r(387)]+"px";c[r(387)]=e}Object.entries(c)[r(441)](([t,e])=>{const n=r;a[n(406)][n(417)](t,e)});const d=!t[r(418)]||0===t[r(418)],l=!t[r(387)]||0===t[r(387)];if(d||l){const n=document[r(409)](r(423));if(n[r(406)].cssText="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t[r(418)]){let e;e="string"==typeof t.width&&(t[r(418)][r(442)]("px")||t[r(418)][r(442)]("%"))?t[r(418)]:t[r(418)]+"px",n.style[r(418)]=e,n.style[r(421)]="normal"}document[r(454)].appendChild(n);let s=0,i=0;e.forEach(e=>{const o=r,a=this[o(426)](t,e);n[o(451)](a);const c=a.getBoundingClientRect();c[o(418)]>s&&(s=c[o(418)]),c[o(387)]>i&&(i=c[o(387)]),n.removeChild(a)}),d&&s>0&&(a[r(406)].width=s+"px",c[r(418)]=s+"px"),l&&i>0&&(a.style[r(387)]=i+"px",c[r(387)]=i+"px"),document[r(454)].removeChild(n)}const u=[...e,e[0]],p=document[r(409)]("div");p[r(377)]=r(396);const h={display:"flex",transition:r(444),width:100*u.length+"%"};t[r(387)]&&0!==t.height&&(h[r(387)]=r(482)),Object[r(402)](h)[r(441)](([t,e])=>{p[r(406)].setProperty(t,e)}),u[r(441)]((e,n)=>{const o=r,a=document[o(409)](o(423));a.className=o(477);const c={width:100/u[o(433)]+"%","flex-shrink":"0",display:o(391),"align-items":o(438),"justify-content":"center"};t.height&&0!==t[o(387)]&&(c.height="100%"),Object[o(402)](c)[o(441)](([t,e])=>{const n=o;a[n(406)][n(417)](t,e)});const d=this[o(426)](t,e);ct.addClickEventForSlider(d,e,t,s,i,String(t[o(405)])[o(473)]()),a.appendChild(d),p.appendChild(a)});const f=e[r(379)](t=>t[r(405)]===o[r(385)])?null:this[r(480)](e.length);let g=0;const m=e[r(433)],I=1e3*(n?.[r(474)]||3),v=(n,o=!1)=>{const a=r;g=n,o?p.style.transition="none":p[a(406)][a(408)]="transform 0.4s ease-out",p.style[a(400)]=a(388)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(436)](a(456))[a(441)]((t,e)=>{const n=a,s=t;e===c?(s[n(407)][n(425)](n(403)),s[n(406)].background=n(483),s.style.borderColor=n(483),s[n(406)][n(424)]="1"):(s[n(407)].remove(n(403)),s[n(406)][n(429)]=n(397),s[n(406)][n(415)]=n(464),s[n(406)][n(424)]="0.7")})}it.trackSlideViewable(e[c],t,c,s,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(r(456))[r(441)]((t,e)=>{t[r(382)]("click",()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[r(382)](r(410),()=>{clearInterval(b)}),a[r(382)](r(380),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[r(435)](p,v,()=>g,m,y),a[r(451)](p),f&&a[r(451)](f),v(0),(!t[r(418)]||0===t[r(418)])&&setTimeout(()=>{const e=r,n=p[e(463)][0];if(n){const s=n.children[0];if(s){const n=s[e(446)]();a[e(406)][e(418)]=n.width+"px",(!t[e(387)]||0===t.height)&&(a.style[e(387)]=n.height+"px"),a.style[e(468)]=e(413)}}},10),a}static[lt(480)](t){const e=lt,n=document.createElement(e(423));n[e(377)]=e(393),n[e(406)][e(475)]="\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ";for(let s=0;s<t;s++){const t=document[e(409)]("button");t[e(377)]=e(481),t[e(406)][e(475)]=e(392),t[e(382)](e(410),()=>{const n=e;!t.classList[n(430)](n(403))&&(t.style[n(415)]=n(461),t[n(406)][n(424)]="0.9")}),t.addEventListener(e(380),()=>{const n=e;!t[n(407)][n(430)](n(403))&&(t[n(406)][n(415)]="#cccccc",t.style.opacity=n(462))}),n.appendChild(t)}return n}static[lt(435)](t,e,n,s,i){const r=lt;let o=0,a=!1;t[r(382)](r(431),t=>{const e=r;o=t[e(472)][0][e(453)],a=!0}),t[r(382)]("touchmove",t=>{a&&t[r(448)]()}),t.addEventListener(r(432),t=>{const c=r;if(!a)return;a=!1;const d=t[c(460)][0][c(453)],l=o-d;if(Math[c(478)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}const ht=ft;function ft(t,e){const n=mt();return(ft=function(t,e){return n[t-=438]})(t,e)}!function(){const t=ft,e=mt();for(;;)try{if(553962===parseInt(t(442))/1+-parseInt(t(457))/2+-parseInt(t(447))/3+-parseInt(t(452))/4+parseInt(t(455))/5*(parseInt(t(441))/6)+-parseInt(t(445))/7+-parseInt(t(449))/8*(-parseInt(t(448))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt{static[ht(446)](t,e,n=!1){const s=ht,i=t+"_"+e;return gt[s(439)][s(451)](i)?(n&&console[s(456)](s(444)+t+s(440)+e),!0):(gt[s(439)][s(454)](i),n&&console[s(456)](s(450)+t+" in slot "+e),!1)}static[ht(443)](){const t=ht;gt[t(439)][t(443)]()}static[ht(438)](t,e){const n=ht,s=t+"_"+e;gt[n(439)][n(453)](s)}}function mt(){const t=["delete","add","35450qonfYK","log","1604764UAbaJl","clearAdViewable","viewableTracker"," in slot ","6EzQWPg","277946XUFVdA","clear","Duplicate viewable blocked for ad ","6655950YpqWon","isDuplicateViewable","377193ayzxiW","625329VBDerm","288bcitbG","✅ New viewable recorded for ad ","has","1413708HBzubk"];return(mt=function(){return t})()}gt[ht(439)]=new Set;const It=yt;function vt(){const t=["calculateAdSize","innerHTML","3129084TTxDYf"," event","40OMJrkP",'[class*="container"]'," event for ad ","toLowerCase",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"className","createEventTrackingCallback","querySelector","center","style","isDuplicateViewable",".adstage-slot","6215110ULNKEN","closest","#f9f9f9","createElement","px)","auto","containerId","1px solid rgba(0, 0, 0, 0.08)"," for ad ","fontSize","adstage-official","VIEWABLE","setAttribute",'[class*="ad"]',"log","renderFallback","📏 Using 100% height (container: ","): ","2507226neHTki","none","adstage-slot"," slot: ","rgba(248, 249, 250, 0.5)",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"getDefaultHeight","7DmUahx","6px","trackAdvertisementEvent"," in slot ","1px dashed #ccc","backgroundColor","data-adstage-container","✅ New viewable recorded for ad "," for ","borderRadius","\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 ","getElementById","div","generic","hasAttribute","4px","data-adstage-slot","number","fontFamily","parentElement","subtle","block","100%","9ktjkwp","width","height","applyPlaceholderStyle","contains","❌ Failed to track ","invisible","2248548cXFarr","📊 Advertisement event tracked: ","<span>Loading ","border","appendChild","minimal"," ad...</span>","warn","opacity","color","adstage-slot adstage-empty adstage-"," container: ","filter","cssText","placeholderMode","unknown","debug",'[class*="banner"]',"🔄 Starting advertisement event tracking: ","adType","createEmptyContainer","1279528MiWqJQ","getContainerHeight","2px dashed #e74c3c","6494488sumoxk","isEmpty","justifyContent","minHeight","true",'[data-adstage-container="true"]',"alignItems",".adstage-","display","string","rgba(231, 76, 60, 0.1)","rgba(0, 0, 0, 0.02)","flex","getAttribute","transparent","advertisement","advertisementEventTracker","25270mXYflR","5GEbHXg","⚠️ AdvertisementEventTracker not available for "];return(vt=function(){return t})()}function yt(t,e){const n=vt();return(yt=function(t,e){return n[t-=472]})(t,e)}!function(){const t=yt,e=vt();for(;;)try{if(418557===parseInt(t(530))/1*(-parseInt(t(523))/2)+parseInt(t(560))/3+parseInt(t(482))/4*(-parseInt(t(524))/5)+parseInt(t(528))/6+-parseInt(t(567))/7*(-parseInt(t(503))/8)+-parseInt(t(475))/9*(parseInt(t(542))/10)+parseInt(t(506))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class bt{constructor(t,e=!1,n){const s=yt;this[s(501)]=t,this[s(498)]=e,this[s(522)]=n||null}createPlaceholder(t,e,n,s){const i=yt,r=document.createElement(i(579));r.id=e,r[i(535)]="adstage-slot adstage-"+String(this.adType)[i(533)](),r[i(554)](i(573),i(510)),r[i(554)]("data-adstage-type",String(this[i(501)])),r[i(554)](i(583),e);const{width:o,height:a}=this[i(526)](t,n,s)||{width:i(474),height:this[i(566)]()};r[i(539)][i(476)]=o,r.style.height=a;const c=s?.[i(496)]||n[i(496)]||i(481);this[i(478)](r,c),t[i(486)](r),this[i(498)]&&console[i(556)]("📦 Placeholder created for "+this[i(501)]+i(563)+e+" ("+o+" x "+a+") - Mode: "+c)}[It(478)](t,e){const n=It;switch(e){case n(481):t.style[n(572)]=n(520),t[n(539)][n(485)]=n(561),t[n(539)][n(490)]="0",t[n(527)]="";break;case"transparent":t[n(539)][n(572)]=n(520),t[n(539)][n(485)]="none",t.style[n(514)]=n(473),t.innerHTML="";break;case n(472):t.style[n(572)]=n(517),t[n(539)][n(485)]=n(561),t[n(539)][n(576)]=n(582),t[n(539)].display=n(518),t.style[n(512)]=n(538),t[n(539)][n(508)]="center",t[n(527)]=n(534);break;case n(487):t.style[n(572)]=n(564),t[n(539)].border=n(549),t.style[n(576)]=n(568),t.style[n(514)]=n(518),t[n(539)].alignItems="center",t.style[n(508)]="center",t[n(527)]=n(565);break;case n(498):t[n(539)][n(485)]=n(505),t[n(539)].display=n(518),t.style[n(512)]=n(538),t[n(539)][n(508)]=n(538),t.style[n(572)]=n(516),t[n(539)][n(491)]="#e74c3c",t[n(539)][n(585)]="monospace",t[n(539)][n(551)]="11px",t[n(527)]=n(484)+this[n(501)]+n(488);break;default:t[n(539)][n(485)]=n(571),t[n(539)][n(514)]=n(518),t[n(539)].alignItems=n(538),t[n(539)].justifyContent=n(538),t[n(539)][n(572)]=n(544),t[n(539)].color="#666",t[n(527)]=n(484)+this.adType+" ad...</span>"}}[It(526)](t,e,n){const s=It,i=e[s(476)],r=e[s(477)];let o,a;if(o=typeof i===s(584)?i+"px":typeof i===s(515)?i:s(474),"number"==typeof r)a=r+"px";else if(typeof r===s(515)&&r!==s(474)&&r!==s(547))a=r;else{const e=this[s(504)](t);e>0?(a="100%",(n?.[s(498)]||this[s(498)])&&console[s(556)](s(558)+e+s(546))):(a=this[s(566)](),(n?.[s(498)]||this[s(498)])&&console[s(556)]("📏 Using default height "+a+s(575)+this[s(501)]))}return{width:o,height:a}}[It(504)](t){const e=It,n=window.getComputedStyle(t),s=parseFloat(n[e(477)]);if(!s||0===s){const s=parseFloat(n[e(509)]);if(s>0)return s;if(t.style[e(477)]&&t[e(539)][e(477)]!==e(547)){const n=parseFloat(t[e(539)][e(477)]);if(n>0)return n}const i=t[e(519)](e(477));if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}[It(536)](){return async(t,e,n)=>{const s=yt;if(n===p[s(553)]){if(gt[s(540)](t,e,this[s(498)]))return void(this.debug&&console[s(556)]("🚫 Duplicate viewable blocked for ad "+t+" in slot "+e));this[s(498)]&&console[s(556)](s(574)+t+s(570)+e)}if(this.advertisementEventTracker)try{this.debug&&console[s(556)](s(500)+n+s(550)+t+" in slot "+e),await this[s(522)][s(569)](t,e,n),this[s(498)]&&console[s(556)](s(483)+n+" for ad "+t+" in slot "+e)}catch(e){this[s(498)]&&console.error(s(480)+n+s(532)+t+":",e)}else this[s(498)]&&console[s(489)](s(525)+n+s(529))}}[It(557)](t){const e=It,n=document.getElementById(t.id);if(n){const s=[...[n[e(537)](e(511)),n[e(543)](e(511)),n][e(494)](t=>t&&t[e(581)](e(573))),...[n[e(543)](e(541)),n.closest(e(513)+String(this[e(501)])[e(533)]()),n[e(543)](e(555)),n.closest(e(499)),n.closest(e(531)),n[e(543)]('div[style*="height"]'),n[e(543)]('div[style*="min-height"]'),n[e(586)]][e(494)](Boolean)][0];if(s){let n=e(497);n=s[e(581)](e(573))?e(552):s.classList[e(479)](e(562))?"adstage-class":e(580),s[e(539)][e(495)]+=e(577),s[e(527)]="",s.setAttribute("data-adstage-empty",e(510)),this.debug&&console.warn("⚠️ "+this[e(501)]+" container collapsed ("+n+e(559)+t.id,s)}else this[e(502)](t)}t[e(521)]=void 0,t[e(507)]=!0}[It(502)](t){const e=It,n=document[e(578)](t[e(548)]);if(n){n[e(527)]="";const s=document[e(545)](e(579));s.id=t.id,s[e(535)]=e(492)+String(this[e(501)])[e(533)](),s[e(554)]("data-adstage-container","true"),s[e(554)]("data-adstage-empty",e(510)),s[e(554)](e(583),t.id),s.style[e(495)]="\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(498)]&&console[e(489)]("⚠️ Created empty "+this[e(501)]+e(493)+t.id)}}log(t,...e){const n=It;this[n(498)]&&console[n(556)]("["+this[n(501)]+"] "+t,...e)}}const wt=kt;function kt(t,e){const n=Et();return(kt=function(t,e){return n[t-=287]})(t,e)}function Et(){const t=["250px","Banner","onload","backgroundColor"," with ","🎠 Banner carousel created for slot: ","670155LcJyck","6685164OCAYiB","getElementById","16:9","📸 Banner image dimensions: ","alt","100%","className","4:3","src","forEach","set","containerId","Banner Ad","createEventTrackingCallback","getBoundingClientRect","calculateOptimalHeight","appendChild"," ads (optimized: ","Failed to calculate optimal banner size, using defaults:","warn","1877967jRgPqq","get","renderMultipleAds","contain","Failed to load image: ","toString","calculateOptimalContainerSize","debug","innerHTML"," (strategy: ","</div>","center","naturalHeight","addClickEventForRenderer","optimizedHeight","renderOptimizedBannerImage","objectPosition","21259KeXLgv","reduce","slideInterval","2592LSIBvr","average","getDefaultHeight","optimizeContainerForBannerAds","BANNER","width","applyOptimizedImageStyle"," (avg: ","count","🎨 Banner image style applied: objectFit=","filter","style","✅ Optimized banner image rendered for ad: ","202460FCeSFA","some","from","round","1347586miMIli","5YbEquJ","#f0f0f0","39CzAeUj","allSettled","<div>","toFixed","loadImageDimensions","log","imageUrl","Banner container optimization failed, using default size:","3:2","config","createElement","renderAdElement","1:1","values","length","default","abs","value","Container not found: ","map","parentElement","error","common","Image URL is not provided",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"2355520aMDHrR","📦 Banner container dimensions: ","calculateAdSize","8px","height","naturalWidth","ratio","aspectRatio","❌ Failed to load optimized banner image:","img","objectFit","fulfilled","createSliderContainer","_id","title","cover","dominant","📐 Optimal banner container calculated: "];return(Et=function(){return t})()}!function(){const t=kt,e=Et();for(;;)try{if(582636===parseInt(t(315))/1+parseInt(t(373))/2+parseInt(t(376))/3*(-parseInt(t(369))/4)+parseInt(t(374))/5*(-parseInt(t(316))/6)+-parseInt(t(353))/7*(-parseInt(t(356))/8)+-parseInt(t(336))/9+parseInt(t(291))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class xt extends bt{constructor(t=!1,e){super(o[kt(360)],t,e)}getDefaultHeight(){return kt(309)}async[wt(387)](t,e){const n=wt,s=document[n(317)](t.containerId);if(!s)return;const i=document.createElement("div");i[n(322)]="adstage-ad adstage-banner-ad";const r=t[n(350)],o=s[n(396)]||s;if(r)i[n(367)][n(361)]=n(321),i[n(367)].height=String(r);else{const e=t[n(385)],s={width:e?.[n(361)],height:e?.[n(295)]},{width:r,height:a}=this[n(293)](o,s,{debug:this[n(343)]});i[n(367)][n(361)]=r,i[n(367)][n(295)]=a}e[n(382)]?await this.renderOptimizedBannerImage(i,e,t):i.innerHTML=n(378)+(e.title||n(328))+n(346),ct[n(349)](i,e,t,()=>this[n(329)](),this[n(343)],n(310)),s[n(344)]="",s[n(332)](i)}async[wt(338)](t,e){const n=wt,s=document.getElementById(t[n(327)]);if(!s)throw new Error(n(394)+t[n(327)]);await this[n(359)](t,e);const i=this[n(329)](),r={autoSlideInterval:(t[n(385)]?.[n(355)]||5e3)/1e3,...t[n(385)],optimizedHeight:t[n(350)],aspectRatio:t.aspectRatio},o=pt[n(303)](t,e,r,i,this[n(343)]);o&&(s[n(344)]="",s[n(332)](o),this[n(343)]&&console.log(n(314)+t.id+n(313)+e[n(390)]+n(333)+(t[n(350)]||n(391))+")"))}async[wt(342)](t,e){const n=wt;if(!t.length)return{width:n(321),height:this.getDefaultHeight(),aspectRatio:16/9};try{const s=(await Promise[n(377)](t[n(366)](t=>t.imageUrl)[n(395)](t=>this[n(380)](t.imageUrl))))[n(366)](t=>t.status===n(302))[n(395)](t=>t[n(393)]);if(0===s.length)return{width:n(321),height:this[n(358)](),aspectRatio:16/9};const i=this.selectOptimalSizeStrategy(s),r=this[n(331)](s,e,i);return this.debug&&console[n(381)](n(308)+e+"x"+r+n(345)+i+")"),{width:n(321),height:r+"px",aspectRatio:e/r}}catch(t){return console[n(335)](n(334),t),{width:n(321),height:this[n(358)](),aspectRatio:16/9}}}async[wt(359)](t,e){const n=wt;try{const s=document.getElementById(t.containerId),i=document[n(317)](t.id);if(!s||!i)return;const r=s[n(330)]()[n(361)]||300,o=await this[n(342)](e,r);i.style[n(295)]=o[n(295)],t[n(350)]=o[n(295)],t.aspectRatio=o[n(298)],this[n(343)]&&console.log("🔧 Banner container optimized for "+e.length+" ads: "+o[n(295)])}catch(t){console[n(335)](n(383),t)}}selectOptimalSizeStrategy(t){const e=wt,n=t.map(t=>t.width/t[e(295)]),s=new Map;n[e(325)](t=>{const n=e,i=(Math[n(372)](10*t)/10)[n(341)]();s[n(326)](i,(s[n(337)](i)||0)+1)});const i=Math.max(...s[e(389)]()),r=t.length;if(i/r>=.7)return e(307);const o=[16/9,4/3,1,1.5],a=n[e(366)](t=>o[e(370)](n=>Math[e(392)](t-n)<.1))[e(390)];return e(a/r>=.5?288:357)}[wt(331)](t,e,n){const s=wt,i=t.map(t=>t.width/t.height);switch(n){case"dominant":{const t=new Map;i.forEach(e=>{const n=kt,s=Math[n(372)](10*e)/10,i=s[n(341)](),r=t[n(337)](i);r?r[n(364)]++:t[n(326)](i,{ratio:s,count:1})});const n=Array[s(371)](t[s(389)]())[s(354)]((t,e)=>e[s(364)]>t.count?e:t);return Math[s(372)](e/n[s(297)])}case s(288):{const t=[{ratio:16/9,name:s(318)},{ratio:4/3,name:s(323)},{ratio:1,name:s(388)},{ratio:1.5,name:s(384)}],n=i[s(354)]((t,e)=>t+e,0)/i.length,r=t[s(354)]((t,e)=>Math[s(392)](e[s(297)]-n)<Math[s(392)](t.ratio-n)?e:t);return this[s(343)]&&console.log("📊 Using standard ratio: "+r.name+s(363)+n[s(379)](2)+")"),Math[s(372)](e/r[s(297)])}case s(357):default:{const t=i[s(354)]((t,e)=>t+e,0)/i[s(390)];return Math[s(372)](e/t)}}}[wt(380)](t){return new Promise((e,n)=>{const s=kt,i=new Image;i[s(311)]=()=>{const t=s;e({width:i[t(296)],height:i[t(348)]})},i.onerror=()=>{n(new Error(s(340)+t))},i[s(324)]=t})}[wt(362)](t,e,n){const s=wt,i=e/n;Math[s(392)](i-1)<.1?(t.style[s(301)]=s(306),t[s(367)].objectPosition=s(347)):i>1.3?(t[s(367)][s(301)]=s(339),t[s(367)][s(352)]="center",t[s(367)][s(312)]=s(375)):i<.7?(t[s(367)][s(301)]=s(306),t[s(367)][s(352)]="center"):(t[s(367)][s(301)]=s(306),t[s(367)].objectPosition="center"),this[s(343)]&&console.log(s(365)+t[s(367)].objectFit+", ratio="+i[s(379)](2))}async[wt(351)](t,e,n){const s=wt,i=document[s(386)](s(300));i[s(367)][s(361)]=s(321),i.style[s(295)]="100%",i[s(367)].display="block",i[s(367)].borderRadius=s(294),i[s(320)]=e[s(305)]||"Banner Advertisement",t.innerHTML=s(290);try{if(!e.imageUrl)throw new Error(s(289));const r=await this[s(380)](e[s(382)]),o=t[s(330)](),a=o[s(361)],c=o.height;this[s(343)]&&(console[s(381)](s(319)+r[s(361)]+"x"+r[s(295)]),console.log(s(292)+a+"x"+c));const d=r[s(361)]/r[s(295)],l=a/c;return this.applyOptimizedImageStyle(i,d,l),i[s(324)]=e[s(382)],t[s(344)]="",t[s(332)](i),ct[s(349)](i,e,n,()=>this.createEventTrackingCallback(),this[s(343)],s(310)),this.debug&&console[s(381)](s(368)+e[s(304)]),i}catch(r){return console[s(287)](s(299),r),e[s(382)]&&(i[s(324)]=e[s(382)],i[s(367)].objectFit=s(306),i[s(367)][s(352)]=s(347),t[s(344)]="",t[s(332)](i),ct[s(349)](i,e,n,()=>this[s(329)](),this[s(343)],s(310))),i}}}const At=St;function St(t,e){const n=Ct();return(St=function(t,e){return n[t-=202]})(t,e)}function Ct(){const t=["657264zHXszF","32719430BibIfo","45710OUflsr","209RAMzzE","6016176XAaZSL","2834NxmSDL","textContent","2769440pDhaYJ","798912QYAFGB","35bIVoOM","1380OofpSd","setTextAdContent","createTextAdStyles"];return(Ct=function(){return t})()}!function(){const t=St,e=Ct();for(;;)try{if(957270===-parseInt(t(213))/1*(-parseInt(t(202))/2)+parseInt(t(205))/3+parseInt(t(210))/4*(parseInt(t(206))/5)+-parseInt(t(207))/6*(-parseInt(t(212))/7)+parseInt(t(204))/8+parseInt(t(214))/9+-parseInt(t(211))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Tt{static[At(209)](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[At(208)](t,e){const n=At,s=e[n(203)]||e.title||"";t[n(203)]=s}}const Dt=Rt;function Rt(t,e){const n=zt();return(Rt=function(t,e){return n[t-=386]})(t,e)}function zt(){const t=["push","12918064KuSkLE","adType","createSimpleAdElement","touches","div","6QyIDje","preventDefault","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","height: auto; min-height: fit-content;","translateY(20px)","touchend","string","top","height","data-adstage-ad-id","1424184nbDNlU","zIndex","clientY","translateY(-20px)","changedTouches","height: 100%;","removeChild","height: auto;","Text","translateY(0)","getBoundingClientRect","48xQytpN",";\n left: ",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","clientX","forEach","autoSlideInterval","createTextAdStyles","11959181VXxpOr","2936038YflQiR","addClickEventForSlider","22JDZWTq","opacity","auto",";\n top: ","setProperty","relative","adstage-fade-slide-container","1busMzc","setTextAdContent","_id","normal","5822510xnrPdr","1471377dlhaPZ","className","4909735yhnWxw","\n position: relative;\n width: 100%;\n ","includes","9ljrszx","length","transform","body","mouseenter","createElement","hidden","width","addEventListener","setAttribute","data-adstage-slot-id","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","position","left","mouseleave",";\n ","abs","addTouchSupport","4bhouik","block","style","cssText","minHeight","\n ","whiteSpace","absolute","appendChild"];return(zt=function(){return t})()}!function(){const t=Rt,e=zt();for(;;)try{if(864576===-parseInt(t(407))/1*(-parseInt(t(460))/2)+parseInt(t(412))/3*(parseInt(t(435))/4)+-parseInt(t(414))/5*(-parseInt(t(450))/6)+-parseInt(t(398))/7+-parseInt(t(445))/8*(-parseInt(t(417))/9)+-parseInt(t(411))/10*(-parseInt(t(400))/11)+-parseInt(t(390))/12*(parseInt(t(397))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt{static[Dt(447)](t,e){const n=Dt,s=document[n(422)]("div");return s[n(413)]="adstage-ad adstage-"+String(t[n(446)]).toLowerCase(),s.setAttribute(n(459),e[n(409)]),s[n(426)](n(427),t.id),s.style.cssText=Tt[n(396)](!0),Tt[n(408)](s,e),s}static createTextTransitionContainer(t,e,n,s,i=!1){const r=Dt,o=t[r(458)]&&0!==t.height&&t[r(458)]!==r(402),a=document[r(422)](r(449));a[r(413)]="adstage-fade-slider-wrapper";const c={position:r(405),overflow:r(423),display:r(436)};if(!o&&(c[r(458)]="auto",c[r(439)]="fit-content"),t.width&&0!==t[r(424)]){let e;e=typeof t[r(424)]===r(456)?t[r(424)][r(416)]("px")||t[r(424)][r(416)]("%")?t[r(424)]:t[r(424)]+"px":t.width+"px",c[r(424)]=e}if(t[r(458)]&&0!==t[r(458)]&&"auto"!==t.height&&o){let e;e=typeof t.height===r(456)?t[r(458)].includes("px")||t[r(458)].includes("%")?t[r(458)]:t[r(458)]+"px":t.height+"px",c[r(458)]=e}Object.entries(c).forEach(([t,e])=>{const n=r;a[n(437)][n(404)](t,e)});const d=document[r(422)]("div");d[r(413)]=r(406),d[r(437)][r(438)]=r(415)+(o?"height: 100%;":r(453))+r(440);let l=null;const u=!t[r(424)]||0===t.width,p=!t[r(458)]||0===t[r(458)]||void 0===t[r(458)]||t.height===r(402);if(u||p&&o){if(l=document[r(422)](r(449)),l[r(437)][r(438)]=r(428),!u&&t.width){let e;e="string"==typeof t[r(424)]&&(t[r(424)][r(416)]("px")||t[r(424)][r(416)]("%"))?t[r(424)]:t[r(424)]+"px",l[r(437)][r(424)]=e,l[r(437)][r(441)]=r(410)}document[r(420)].appendChild(l);let n=0,s=0;e[r(394)](e=>{const i=r,o=this[i(447)](t,e);l[i(443)](o);const a=o[i(389)]();a[i(424)]>n&&(n=a[i(424)]),a[i(458)]>s&&(s=a[i(458)]),l[i(466)](o)}),u&&n>0&&(a.style.width=n+"px"),p&&s>0&&o&&(a[r(437)][r(458)]=s+"px"),document[r(420)][r(466)](l)}const h=[];e.forEach((e,n)=>{const a=r,c=document[a(422)](a(449));c[a(413)]="adstage-fade-slide";const l=0===n,u=o?a(442):l?"relative":a(442);c.style[a(438)]="\n position: "+u+a(403)+(u===a(442)?"0":"auto")+a(391)+("absolute"===u?"0":"auto")+";\n width: 100%;\n "+a(o?465:386)+a(452)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":"20px")+a(392)+(0===n?"2":"1")+a(432);const p=this[a(447)](t,e);ct[a(399)](p,e,t,s,i,a(387)),c[a(443)](p),d[a(443)](c),h[a(444)](c)});let f=0;const g=e[r(418)],m=1e3*(n?.[r(395)]||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(437)].position===a(405)&&(c.style[a(429)]=a(442),c[a(437)].top="0",c[a(437)][a(430)]="0"),d[a(437)].position=a(405),d[a(437)][a(457)]="auto",d[a(437)][a(430)]="auto"),c.style[a(401)]="0",c[a(437)][a(419)]=a(463),c[a(437)][a(461)]="1",d[a(437)].opacity="1",d[a(437)][a(419)]=a(388),d[a(437)][a(461)]="2",h[a(394)]((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(437)][s(401)]="0",t[s(437)][s(419)]=s(454),t[s(437)].zIndex="1",!o&&t.style[s(429)]===s(405)&&(t[s(437)][s(429)]=s(442),t.style.top="0",t[s(437)][s(430)]="0"))}),f=n,it.trackSlideViewable(e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a.addEventListener(r(421),()=>{clearInterval(v)}),a[r(425)](r(431),()=>{v=setInterval(()=>{I(f+1)},m)}),Lt.addTouchSupport(a,I,()=>f,g),a.appendChild(d),a}static[Dt(434)](t,e,n,s){const i=Dt;let r=0,o=0,a=!1;t[i(425)]("touchstart",t=>{const e=i;r=t[e(448)][0][e(393)],o=t[e(448)][0][e(462)],a=!0}),t.addEventListener("touchmove",t=>{a&&t[i(451)]()}),t.addEventListener(i(455),t=>{const s=i;if(!a)return;a=!1;const c=t[s(464)][0][s(393)],d=t[s(464)][0][s(462)],l=r-c,u=o-d;if(Math[s(433)](l)>Math.abs(u)&&Math[s(433)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Bt=Vt;function Pt(){const t=["getDefaultHeight","3fpraTC","overflow","60px","setTextAdContent","addClickEventForRenderer"," with ","6VIBwnq","getElementById","config","div","588180BVwGsv","webkitBoxOrient","height","589729hjpUYM","cssText","1749190vNilyZ","calculateAdSize","slideInterval","style","debug","22iJwaBP","169094JRbxmD","className","180WrAnWM","58362FMEOcu","98744wNGjAr","maxLines","containerId","adstage-ad adstage-text-ad","log","innerHTML","width","1141800GCFcuD","aspectRatio","display","TEXT","_id","✨ Single text ad rendered: ","createTextAdStyles","optimizedHeight","Container not found: ","renderMultipleAds","Text","appendChild","createEventTrackingCallback","createElement","-webkit-box","number"];return(Pt=function(){return t})()}function Vt(t,e){const n=Pt();return(Vt=function(t,e){return n[t-=239]})(t,e)}!function(){const t=Vt,e=Pt();for(;;)try{if(125631===-parseInt(t(253))/1+-parseInt(t(250))/2+parseInt(t(278))/3*(-parseInt(t(239))/4)+parseInt(t(261))/5+-parseInt(t(284))/6*(-parseInt(t(242))/7)+parseInt(t(254))/8*(-parseInt(t(252))/9)+parseInt(t(244))/10*(parseInt(t(249))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Mt extends bt{constructor(t=!1,e){super(o[Vt(264)],t,e)}[Bt(277)](){return Bt(280)}async renderAdElement(t,e){const n=Bt,s=document[n(285)](t.containerId);if(!s)return;const i=document[n(274)]("div");i.className=n(257);const r=t.optimizedHeight,o=s.parentElement||s;if(r)i[n(247)].width="100%",i[n(247)][n(241)]=String(r);else{const e=t.config,s={width:e?.[n(260)],height:e?.[n(241)]},{width:r,height:a}=this[n(245)](o,s,{debug:this[n(248)]});i[n(247)][n(260)]=r,i[n(247)].height=a}const a=document[n(274)](n(287));a[n(251)]="adstage-text-content",a.style[n(243)]=Tt[n(267)](!1),Tt[n(281)](a,e);const c=t[n(286)]?.[n(255)];c&&typeof c===n(276)&&(a[n(247)][n(263)]=n(275),a[n(247)].webkitLineClamp=String(c),a[n(247)][n(240)]="vertical",a[n(247)][n(279)]="hidden"),i[n(272)](a),ct[n(282)](i,e,t,()=>this[n(273)](),this[n(248)],n(271)),s[n(259)]="",s.appendChild(i),this[n(248)]&&console[n(258)](n(266)+e[n(265)])}async[Bt(270)](t,e){const n=Bt,s=document.getElementById(t[n(256)]);if(!s)throw new Error(n(269)+t.containerId);const i=this.createEventTrackingCallback(),r={autoSlideInterval:(t[n(286)]?.[n(246)]||5e3)/1e3,...t[n(286)],optimizedHeight:t[n(268)],aspectRatio:t[n(262)]},o=Lt.createTextTransitionContainer(t,e,r,i,this[n(248)]);o&&(s.innerHTML="",s[n(272)](o),this[n(248)]&&console.log("✨ Text transition created for slot: "+t.id+n(283)+e.length+" ads"))}}const Nt=Ut;function Ut(t,e){const n=Ot();return(Ut=function(t,e){return n[t-=116]})(t,e)}function Ot(){const t=["relative","className"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","disabled (default)","none",", muted: ","videoUrl","🎬 Final video settings:","alt","\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 ","video","head","5180JfrGnn","1398tHFKfo","Click to mute","getDefaultHeight"," (autoplay: ","6872pvwiAW","transform","🎬 Video element created for ad: ","loadedmetadata","🎬 Initial autoplay attempt after timeout...","play","renderMultipleAds","renderVideoElementDirect","width","createEventTrackingCallback","debug","imageUrl","muted","hideControls","getElementById","div","\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 ","title","addClickEventForRenderer","\n video::-webkit-media-controls-play-button {\n display: ","hideMuteButton","100%","221607FTBKyE","objectFit","3904314EYQJdE","renderAdElement","error","🔊 Video mute toggled: ","_id","417npMyun",'\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 ',"Container not found: ","Video load failed:"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","containerId","🎬 User explicitly enabled controls, overriding default","Video","canplay","\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 ","rgba(0, 0, 0, 0.9)"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","Click to unmute","height","background","scale(1)","warn","VIEWABLE","hideCurrentTime","contain","display","catch","1388630bsxBrO","Video thumbnail","🎬 Video config received:","addEventListener","img","autoplay","metadata","155336TSfREC","textContent","Video fallback"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","1210QvtIqV",", loop: ","hideFullscreenButton","🎬 Trying muted autoplay fallback...","innerHTML","6904LGPuth","🎬 Video data loaded, attempting autoplay...","playsinline","customControls","adstage-video-mute-button"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","hideRemainingTime"," !important;\n }\n ","loop","src","adstage-video-default-controls","block","button","\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 ","loadeddata","rgba(0, 0, 0, 0.7)","appendChild","preload","360px"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","cssText","🎬 Video controls setting:","log","\n pointer-events: none;\n ","style","setAttribute","🎬 Autoplay completely failed:","createElement","🎬 Auto-play was prevented:",'\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 ',"controls"];return(Ot=function(){return t})()}!function(){const t=Ut,e=Ot();for(;;)try{if(696272===-parseInt(t(188))/1+-parseInt(t(126))/2*(-parseInt(t(159))/3)+parseInt(t(197))/4*(-parseInt(t(192))/5)+parseInt(t(154))/6+-parseInt(t(125))/7*(-parseInt(t(130))/8)+parseInt(t(152))/9+-parseInt(t(181))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft extends bt{constructor(t=!1,e){super(o.VIDEO,t,e)}[Nt(128)](){return Nt(215)}async[Nt(155)](t,e){const n=Nt,s=document[n(144)](t[n(164)]);if(!s)return;const i=document[n(224)](n(145));i[n(229)]="adstage-video-container",i.style[n(217)]=n(168),this.renderVideoElementDirect(i,e,t),s[n(196)]="",s.appendChild(i),this[n(140)]&&console[n(219)]("🎬 Single video ad rendered: "+e[n(158)])}async[Nt(136)](t,e){const n=Nt,s=document[n(144)](t[n(164)]);if(!s)throw new Error(n(161)+t[n(164)]);if(e.length>0){const i=e[0],r=document.createElement("div");r.className="adstage-video-container",r.style[n(217)]=n(210),this[n(137)](r,i,t),s[n(196)]="",s[n(213)](r);const o=this[n(139)]();setTimeout(()=>{const e=n;o(i._id,t.id,p[e(176)])},100),this.debug&&console[n(219)]("🎬 Single video rendered for VIDEO slot: "+t.id+" ("+i[n(158)]+")")}else this[n(140)]&&console[n(175)]("⚠️ No video advertisements available for slot: "+t.id)}[Nt(137)](t,e,n){const s=Nt;t[s(221)].position=s(228);const i=document.createElement(s(123));i[s(221)][s(138)]=s(151),i.style[s(172)]="100%",i[s(221)][s(153)]=s(178),i[s(214)]=s(187);const r=n.config;if(this[s(140)]&&console[s(219)](s(183),r),i[s(227)]=!1,i[s(186)]=!1!==r?.[s(186)],i.muted=!0,i[s(205)]=!1!==r?.[s(205)],this.debug&&console[s(219)](s(120),{autoplay:i[s(186)],muted:i.muted,loop:i[s(205)],controls:i[s(227)]}),!1!==r?.[s(199)]&&i[s(222)](s(199),""),!0===r?.controls&&(i[s(227)]=!0,this[s(140)]&&console.log(s(165))),r?.[s(143)])i[s(227)]=!1,i[s(221)].cssText+=s(220);else if(r?.[s(200)]){if(i[s(227)]){const t=document.createElement(s(221));t.textContent=s(149)+(r[s(200)].hidePlayButton?s(117):s(208))+s(191)+(r.customControls.hideProgressBar?"none":s(208))+s(230)+(r.customControls[s(177)]?"none":"block")+s(202)+(r.customControls[s(203)]?s(117):s(208))+s(216)+(r[s(200)].hideVolumeSlider?s(117):"block")+s(163)+(r[s(200)][s(150)]?s(117):s(208))+s(170)+(r.customControls[s(194)]?s(117):s(208))+s(204),document[s(124)].appendChild(t)}}else if(i[s(227)]){const t=document[s(224)](s(221));t.id=s(207),t[s(189)]=s(122),!document.getElementById(s(207))&&document[s(124)][s(213)](t)}this.debug&&console.log(s(218),i.controls?"enabled":s(116));const o=document[s(224)](s(209));o.className=s(201),o.style[s(217)]=s(146),r?.[s(143)]&&(o[s(221)][s(179)]=s(117));const a=()=>{const t=s,e=t(160),n=t(226);o[t(196)]=i[t(142)]?e:n,o[t(147)]=i[t(142)]?t(171):t(127)};if(a(),o[s(184)]("click",t=>{const e=s;t.stopPropagation(),i[e(142)]=!i.muted,a(),this[e(140)]&&console[e(219)](e(157)+(i[e(142)]?e(142):"unmuted"))}),o[s(184)]("mouseenter",()=>{const t=s;o[t(221)][t(173)]=t(169),o[t(221)].transform="scale(1.1)"}),o[s(184)]("mouseleave",()=>{const t=s;o.style[t(173)]=t(212),o[t(221)][t(131)]=t(174)}),e[s(119)]){i[s(206)]=e[s(119)];const t=()=>{const t=s;i[t(186)]&&i[t(142)]&&i.paused&&i[t(135)]()[t(180)](e=>{const n=t;this[n(140)]&&(console[n(175)](n(225),e),console[n(175)](n(195))),i.muted=!0,i.play().catch(t=>{const e=n;this.debug&&console[e(156)](e(223),t)})})};i[s(184)](s(133),()=>{const e=s;this[e(140)]&&console[e(219)]("🎬 Video metadata loaded, attempting autoplay..."),t()}),i[s(184)](s(167),()=>{const e=s;this[e(140)]&&console[e(219)]("🎬 Video can play, attempting autoplay..."),t()}),i.addEventListener(s(211),()=>{const e=s;this[e(140)]&&console.log(e(198)),t()}),setTimeout(()=>{const e=s;this[e(140)]&&console[e(219)](e(134)),t()},100)}else if(e[s(141)]){const n=document.createElement(s(185));return n[s(206)]=e.imageUrl,n[s(221)].width=s(151),n[s(221)].height=s(151),n[s(221)].objectFit=s(178),n[s(121)]=e[s(147)]||s(182),void t[s(213)](n)}ct[s(148)](i,e,n,()=>this[s(139)](),this.debug,s(166)),i[s(184)](s(156),i=>{const r=s;if(console.error(r(162),i),e[r(141)]){const s=document[r(224)](r(185));s.src=e.imageUrl,s[r(221)].width=r(151),s[r(221)].height="100%",s[r(221)][r(153)]=r(178),s.alt=e.title||r(182),ct[r(148)](s,e,n,()=>this[r(139)](),this[r(140)],r(190)),t[r(196)]="",t.appendChild(s)}}),t.appendChild(i),t[s(213)](o),this.debug&&console.log(s(132)+e[s(158)]+s(129)+i[s(186)]+s(118)+i[s(142)]+s(193)+i[s(205)]+")")}}function Ht(t,e){const n=Kt();return(Ht=function(t,e){return n[t-=440]})(t,e)}const _t=Ht;function Kt(){const t=["button","Native Advertisement","style","appendChild","5ZJMunD","debug","5866704byBJyh","title","5228902NLgZsQ","24183090cPDhbo","imageUrl","log","textContent","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","advertisementEventTracker","warn","renderAdElement","850552deqxaZ","\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 ","1896123iFyXDE","🏠 Native ad rendered (first of ","4RcpxLz","addEventListener","backgroundColor","mouseenter","src","#2563eb","200px","#3b82f6","open","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","createElement","length","getElementById","1945142JaJIUY","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","renderMultipleAds","_id","click","div","549081XpaGmd","linkUrl","_blank","\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 ","1evWmar","🏠 Single native ad rendered: ","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","Learn More","cssText","Native click tracked for ad: "];return(Kt=function(){return t})()}!function(){const t=Ht,e=Kt();for(;;)try{if(743745===parseInt(t(449))/1*(parseInt(t(489))/2)+-parseInt(t(474))/3*(-parseInt(t(476))/4)+parseInt(t(459))/5*(parseInt(t(461))/6)+parseInt(t(463))/7+-parseInt(t(472))/8+-parseInt(t(445))/9+-parseInt(t(464))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class jt extends bt{constructor(t=!1,e){super(o.NATIVE,t,e)}getDefaultHeight(){return Ht(482)}async[_t(471)](t,e){const n=_t,s=document[n(488)](t.containerId);if(!s)return;const i=document[n(486)]("div");if(i.className="adstage-ad adstage-native-ad",i[n(457)][n(453)]=n(473),e[n(462)]){const t=document[n(486)]("h3");t[n(467)]=e.title,t[n(457)].cssText=n(468),i[n(458)](t)}if(e.textContent){const t=document.createElement("p");t.textContent=e.textContent,t[n(457)][n(453)]=n(485),i.appendChild(t)}if(e[n(465)]){const t=document[n(486)](n(444));t[n(457)].cssText=n(451);const s=document[n(486)]("img");s[n(480)]=e[n(465)],s.alt=e[n(462)]||n(456),s[n(457)][n(453)]=n(440),t[n(458)](s),i[n(458)](t)}if(e.linkUrl){const t=document[n(486)](n(455));t[n(467)]=n(452),t[n(457)][n(453)]=n(448),t.addEventListener(n(443),()=>{const t=n;this[t(469)]&&console[t(466)](t(454)+e[t(442)]),window[t(484)](e[t(446)],t(447))}),t[n(477)](n(479),()=>{const e=n;t[e(457)][e(478)]=e(481)}),t[n(477)]("mouseleave",()=>{const e=n;t[e(457)][e(478)]=e(483)}),i[n(458)](t)}s.innerHTML="",s.appendChild(i),this[n(460)]&&console.log(n(450)+e._id)}async[_t(441)](t,e){const n=_t;e.length>0?(await this[n(471)](t,e[0]),this[n(460)]&&console.log(n(475)+e[n(487)]+"): "+t.id)):this[n(460)]&&console[n(470)]("⚠️ No native advertisements available for slot: "+t.id)}}function Wt(){const t=["\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 ","25399drjvpa","Interstitial Advertisement","🖼️ Interstitial ad rendered: ","cssText","mouseenter","addEventListener","closeInterstitial","\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 ","title","parentNode","linkUrl","fadeOut 0.3s ease-out forwards","#2563eb","100SymGui","1ZBVliX","head","innerHTML","removeEventListener","renderAdElement","target","alt","appendChild","23966969pnnsYV","Escape","adstage-interstitial-overlay","getDefaultHeight","\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 ","imageUrl","\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 ","12REuaSB","_id","img","4208OEiPRx","4lZAmNV","textContent","click","102tGNqPX","3241655HWPDqV","#6b7280","key","_blank","log","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","🖼️ Interstitial ad closed","219779zfNBCQ","79038aSrRmS","src","13635fACamV","mouseleave","\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 ","1033587DyOYyr","div","Interstitial click tracked for ad: ","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","#374151","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","backgroundColor","length","color","debug","#f3f4f6","getElementById","adstage-interstitial-content","button","style","createElement","warn","adstage-interstitial-styles","keydown","animation","⚠️ No interstitial advertisements available for slot: "];return(Wt=function(){return t})()}function Jt(t,e){const n=Wt();return(Jt=function(t,e){return n[t-=101]})(t,e)}const Xt=Jt;!function(){const t=Jt,e=Wt();for(;;)try{if(417277===-parseInt(t(110))/1*(parseInt(t(141))/2)+parseInt(t(146))/3*(parseInt(t(129))/4)+parseInt(t(133))/5+parseInt(t(132))/6*(parseInt(t(140))/7)+-parseInt(t(128))/8*(-parseInt(t(143))/9)+parseInt(t(109))/10*(-parseInt(t(168))/11)+-parseInt(t(125))/12*(parseInt(t(118))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Gt extends bt{constructor(t=!1,e){super(o.INTERSTITIAL,t,e)}[Xt(121)](){return"400px"}async[Xt(114)](t,e){const n=Xt;if(!document[n(157)](t.containerId))return;const s=document.createElement(n(147));s.className=n(120),s[n(160)].cssText=n(124);const i=document[n(161)](n(147));i.className=n(158),i[n(160)].cssText=n(122);const r=document[n(161)](n(159));if(r[n(112)]="×",r.style[n(171)]=n(167),r.addEventListener("click",()=>{this[n(102)](s)}),r[n(101)]("mouseenter",()=>{const t=n;r[t(160)][t(152)]="#e5e7eb",r[t(160)][t(154)]=t(150)}),r[n(101)](n(144),()=>{const t=n;r[t(160)][t(152)]=t(156),r[t(160)][t(154)]=t(134)}),e.imageUrl){const t=document[n(161)](n(127));t[n(142)]=e[n(123)],t[n(116)]=e.title||n(169),t[n(160)].cssText=n(138),i.appendChild(t)}if(e[n(104)]){const t=document.createElement("h2");t[n(130)]=e[n(104)],t[n(160)].cssText=n(149),i[n(117)](t)}if(e.textContent){const t=document[n(161)]("p");t[n(130)]=e[n(130)],t[n(160)][n(171)]=n(151),i[n(117)](t)}if(e[n(106)]){const t=document[n(161)](n(159));t[n(130)]="Get Started",t.style.cssText=n(103),t[n(101)](n(131),()=>{const t=n;this.advertisementEventTracker&&console[t(137)](t(148)+e[t(126)]),window.open(e[t(106)],t(136)),this.closeInterstitial(s)}),t[n(101)](n(172),()=>{const e=n;t.style[e(152)]=e(108)}),t[n(101)](n(144),()=>{t.style.backgroundColor="#3b82f6"}),i[n(117)](t)}const o=t=>{const e=n;t[e(135)]===e(119)&&(this[e(102)](s),document[e(113)](e(164),o))};if(document.addEventListener("keydown",o),s[n(101)](n(131),t=>{const e=n;t[e(115)]===s&&this[e(102)](s)}),!document[n(157)]("adstage-interstitial-styles")){const t=document[n(161)]("style");t.id=n(163),t[n(130)]=n(145),document[n(111)].appendChild(t)}i.appendChild(r),s[n(117)](i),document.body.appendChild(s),this.debug&&console.log(n(170)+e[n(126)])}async renderMultipleAds(t,e){const n=Xt;e[n(153)]>0?(await this.renderAdElement(t,e[0]),this[n(155)]&&console[n(137)]("🖼️ Interstitial ad rendered (first of "+e[n(153)]+"): "+t.id)):this[n(155)]&&console[n(162)](n(166)+t.id)}closeInterstitial(t){const e=Xt;t.style[e(165)]=e(107),setTimeout(()=>{const n=e;t[n(105)]&&t[n(105)].removeChild(t)},300),this.debug&&console[e(137)](e(139))}}const qt=Qt;function Qt(t,e){const n=Yt();return(Qt=function(t,e){return n[t-=438]})(t,e)}function Yt(){const t=["isLoaded","204204GfepHU","video"," Ad","25765773AXLmRQ","renderOptimizedBannerImage is only supported for BANNER ads","⚠️ Container optimization is only supported for BANNER ads, got: ","renderFallback","renderOptimizedBannerImage","advertisement","onerror","8px","style","62NJGsAG","5yAKDpi","initializeRenderers","naturalWidth"," renderers","renderers","BANNER","adType","TEXT","calculateOptimalContainerSize","getRenderer","getDefaultHeightForAdType","textContent","log","getDefaultHeight","toLowerCase","No renderer found for ad type: ","calculateAdSize","backgroundColor","adstage-ad adstage-","className","203SlZAZW","renderAdSlider","img","padding","width","INTERSTITIAL","set","appendChild","imageUrl","setAttribute","createElement","337785NvkOCm","createAdElement","6755030ofCTHZ","optimizeContainerForBannerAds","videoUrl","#f9f9f9","[AdRenderer] ","objectFit","124377MEWOrZ","🏭 AdRenderer factory initialized with ","debug","NATIVE","8lbJpkJ","display","renderAd","cover","src","renderAdElement","advertisementEventTracker","config","4595391cBuIDB","_id","100%","No advertisement to render","6537072ABGiKv","height","VIDEO","get"];return(Yt=function(){return t})()}!function(){const t=Qt,e=Yt();for(;;)try{if(856079===parseInt(t(463))/1+-parseInt(t(504))/2*(parseInt(t(471))/3)+parseInt(t(487))/4*(parseInt(t(505))/5)+-parseInt(t(492))/6*(parseInt(t(452))/7)+parseInt(t(475))/8*(-parseInt(t(483))/9)+-parseInt(t(465))/10+parseInt(t(495))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Zt{constructor(t=!1,e){const n=Qt;this[n(509)]=new Map,this[n(473)]=t,this[n(481)]=e||null,this[n(506)]()}[qt(506)](){const t=qt;this.renderers[t(458)](o[t(510)],new xt(this[t(473)],this[t(481)])),this[t(509)][t(458)](o[t(439)],new Mt(this.debug,this[t(481)])),this[t(509)][t(458)](o[t(489)],new Ft(this.debug,this[t(481)])),this.renderers[t(458)](o[t(474)],new jt(this[t(473)],this[t(481)])),this[t(509)].set(o[t(457)],new Gt(this[t(473)],this[t(481)])),this.debug&&console[t(444)](t(472)+this[t(509)].size+t(508))}[qt(464)](t,e){const n=qt,s=this[n(441)](t.adType),i=document[n(462)]("div");i[n(451)]=n(450)+String(t[n(438)])[n(446)](),i.setAttribute("data-adstage-ad-id",e[n(484)]),i[n(461)]("data-adstage-slot-id",t.id);const{width:r,height:a}=s[n(448)](i,t[n(482)]||{},e);switch(i.style[n(456)]=r,i.style[n(488)]=a,i[n(503)][n(476)]="block",t[n(438)]){case o.BANNER:if(e[n(460)]){const t=document.createElement(n(454));t[n(479)]=e[n(460)],t[n(503)][n(456)]="100%",t.style.height=n(485),t[n(503)][n(470)]=n(478),i[n(459)](t)}break;case o[n(489)]:if(e.videoUrl){const t=document[n(462)](n(493));t[n(479)]=e[n(467)],t[n(503)].width=n(485),t[n(503)][n(488)]=n(485),i[n(459)](t)}break;case o[n(439)]:if(e[n(443)]){const t=document.createElement("div");t[n(443)]=e[n(443)]||"",t[n(503)][n(455)]=n(502),i[n(459)](t)}break;default:i[n(503)].border="1px dashed #ccc",i[n(503)][n(449)]=n(468),i[n(443)]=t[n(438)]+n(494)}return i}[qt(441)](t){const e=qt,n=this[e(509)][e(490)](t);if(!n)throw new Error(e(447)+t);return n}createPlaceholder(t,e,n,s,i){this[qt(441)](n).createPlaceholder(t,e,s,i)}async[qt(466)](t,e){const n=qt;if(t[n(438)]!==o[n(510)])return void(this.debug&&console.warn(n(497)+t.adType));const s=this[n(441)](o[n(510)]);await s[n(466)](t,e)}async[qt(453)](t,e){const n=qt,s=this.getRenderer(t[n(438)]);await s.renderMultipleAds(t,e)}async[qt(477)](t){const e=qt;if(!t.advertisement)throw new Error(e(486));const n=this[e(441)](t[e(438)]);await n[e(480)](t,t[e(500)]),t[e(491)]=!0}async[qt(480)](t,e){const n=this[qt(441)](t.adType);await n.renderAdElement(t,e)}[qt(498)](t){const e=qt;this[e(441)](t[e(438)])[e(498)](t)}[qt(442)](t){const e=qt;return this[e(441)](t)[e(445)]()}calculateAdSize(t,e,n,s){return this[qt(441)](e).calculateAdSize(t,n,s)}loadImageDimensions(t){return new Promise((e,n)=>{const s=Qt,i=new Image;i.onload=()=>{e({width:i[Qt(507)],height:i.naturalHeight})},i[s(501)]=()=>{n(new Error("Failed to load image: "+t))},i.src=t})}async renderOptimizedBannerImage(t,e,n){const s=qt;if(n[s(438)]!==o[s(510)])throw new Error(s(496));const i=this[s(441)](o[s(510)]);return await i[s(499)](t,e,n)}async calculateOptimalContainerSize(t,e,n){const s=qt;if(n!==o[s(510)]){const t=this[s(441)](n);return{width:s(485),height:t.getDefaultHeight(),aspectRatio:16/9}}const i=this[s(441)](o[s(510)]);return await i[s(440)](t,e)}[qt(444)](t,...e){const n=qt;this[n(473)]&&console[n(444)](n(469)+t,...e)}}const $t=te;function te(t,e){const n=ee();return(te=function(t,e){return n[t-=304]})(t,e)}function ee(){const t=["Failed to fetch ad data: ","TEXT","🎯 Ads module initialized (sync mode) with auto-cleanup","customControls","disconnect","🚫 Advertisement not found with ID: ","VIDEO","hideControls","apiKey","BANNER","optimizeContainerForBannerAds","detail","1714020mQYWPB","debug","video","[data-adstage-slot-id]","string","adId","destroy","API key not configured","adstage-","refreshAdSlot","json","handleViewableEvent","append","undefined","8qJssyN","🎯 Simple viewability tracking started for slot: "," ads for type: ","now","country","querySelectorAll","getSlotById","2283724rfmWbs","innerHTML","GET","renderAdElement","_id","controls","length","destroyModule","adRenderer","error","data-adstage-slot-id","_config","onClick","1099179olIJgq","New advertisement viewable tracked for slot:","adType","set"," (element found)","log","width","clear"," removed","slots","removedNodes","isLoaded","create","9719388WRGzVp","autoDestroy","toString","Ad slot not found: ","Auto-cleanup failed for slot ","광고 생성 중 오류 발생:","createAd","autoplay","createAdWithRetry",". Retrying in ","🔄 Ad slot refreshed: ","mutationObserver"," attempts: ","loop","banner","setupAutoCleanup"," (attempt ","advertisement","ELEMENT_NODE","status","interstitial","handleRemovedElement","body","setAttribute","_isReady","3673495xWUDmx","config","❌ Failed to find element for viewability tracking: ","warn","auto","get","🧹 Auto-cleanup: slot ","advertisementEventTracker","❌ Failed to track viewable impression:","481521YuhbYw","🔄 Retrying viewability tracking for slot: ","renderAd","deviceType","language","1171130AFStCQ","height","viewabilityTracker","100%","✅ Simple viewable impression tracked for ad ","ensureReady","advertisements","delete","🔍 Auto-cleanup MutationObserver enabled","getAttribute","fetchAdData","text","❌ Failed to load ad for slot: ","auto-","🗑️ Ads module destroyed","Container not found after ","Failed to refresh ad slot: ","muted","forEach"," ads)"," ads automatically","trackAdvertisementEvent","native","getElementById","style","INTERSTITIAL","startSimpleViewabilityTracking","10yMuDcd","renderFallback","list","default","loadAdContentInBackground","nodeType","getBaseUrl"];return(ee=function(){return t})()}!function(){const t=te,e=ee();for(;;)try{if(324775===-parseInt(t(400))/1+parseInt(t(405))/2+-parseInt(t(353))/3+parseInt(t(340))/4+parseInt(t(432))/5*(parseInt(t(319))/6)+parseInt(t(391))/7*(parseInt(t(333))/8)+-parseInt(t(366))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){const t=te;this[t(390)]=!1,this._config=null,this[t(362)]=new Map,this[t(398)]=null,this[t(348)]=null,this[t(377)]=null}init(t){const e=te;this[e(351)]=t,this[e(398)]=new K($[e(306)](),t[e(315)],t[e(320)]||!1,this[e(362)]),this[e(348)]=new Zt(t[e(320)]||!1,this[e(398)]),this[e(381)](),this[e(390)]=!0,t[e(320)]&&console[e(358)](e(309))}isReady(){return this._isReady}getConfig(){return this[te(351)]}[$t(380)](t,e){const n=$t;this[n(410)]();const s={width:e?.[n(359)]||n(408),height:e?.[n(406)]||n(395),autoSlide:e?.autoSlide||!1,slideInterval:e?.slideInterval||5e3,onClick:e?.[n(352)],adId:e?.adId,language:e?.language,deviceType:e?.[n(403)],country:e?.[n(337)]};return this[n(372)](t,o[n(316)],s)}[$t(416)](t,e){const n=$t;this[n(410)]();const s={maxLines:e?.maxLines||3,style:e?.[n(429)]||n(435),onClick:e?.onClick,adId:e?.adId,language:e?.[n(404)],deviceType:e?.[n(403)],country:e?.[n(337)]};return this.createAd(t,o[n(308)],s)}[$t(321)](t,e){const n=$t;this[n(410)]();const s={width:e?.width||640,height:e?.[n(406)]||360,autoplay:void 0===e?.[n(373)]||e[n(373)],muted:void 0===e?.[n(422)]||e[n(422)],loop:void 0===e?.loop||e[n(379)],playsinline:!1!==e?.playsinline,controls:void 0!==e?.[n(345)]&&e[n(345)],hideControls:e?.[n(314)]||!1,customControls:e?.[n(310)],autoSlide:!1,maxAds:1,onClick:e?.[n(352)],...e?.[n(324)]&&{adId:e.adId}};return this[n(372)](t,o[n(313)],s)}[$t(427)](t,e){const n=$t;return this[n(410)](),this[n(372)](t,o.NATIVE,e||{})}[$t(386)](t,e){const n=$t;return this[n(410)](),this[n(372)](t,o[n(430)],e||{})}refresh(t){const e=$t;this[e(410)]();const n=this[e(362)][e(396)](t);if(!n)throw new Error(e(369)+t);this[e(328)](n),this[e(351)]?.[e(320)]&&console[e(358)](e(376)+t)}[$t(325)](t){const e=$t;this.ensureReady();const n=this[e(362)][e(396)](t);if(!n)throw new Error(e(369)+t);n[e(407)]&&n.viewabilityTracker[e(325)]();const s=document.getElementById(n.containerId);s&&(s[e(341)]=""),this[e(362)][e(412)](t),this[e(351)]?.debug&&console[e(358)]("🗑️ Ad slot destroyed: "+t)}getAllSlots(){const t=$t;return this[t(410)](),Array.from(this[t(362)].values())}[$t(339)](t){const e=$t;return this[e(410)](),this[e(362)][e(396)](t)||null}createAd(t,e,n){const s=$t;if(!this[s(351)]?.apiKey)throw new Error(s(326));const i=s(327)+e+"-"+Date[s(336)]()+"-"+Math.random()[s(368)](36).substr(2,9);return this[s(374)](t,e,n,i,0),i}async[$t(374)](t,e,n,s,i){const r=$t,o=[0,50,100,200,500];let a,c=null;if(typeof t===r(323)){if(a=t,c=document[r(428)](t),!c)return i<4?(this[r(351)]?.[r(320)]&&console[r(394)]("Container not found: "+t+r(375)+o[i+1]+"ms... (attempt "+(i+1)+"/5)"),void setTimeout(()=>{this.createAdWithRetry(t,e,n,s,i+1)},o[i+1])):void console[r(349)](r(420)+5+r(378)+t)}else c=t,a=c.id||r(418)+s,!c.id&&(c.id=a);try{this.createAdInternal(a,e,n,s,c)}catch(t){console[r(349)](r(371),t)}}createAdInternal(t,e,n,s,i){const r=$t;i[r(389)](r(350),s),this[r(348)]?.createPlaceholder(i,s,e,n,this[r(351)]);const a={id:s,containerId:t,adType:e,width:n[r(359)]||r(408),height:n.height||(e===o.TEXT?r(395):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[r(415)](e,n).then(t=>t[0]||null),render:t=>this[r(348)]?.[r(343)](a,t),refresh:async()=>this[r(328)](a),destroy:()=>this[r(325)](s)};this.slots[r(356)](s,a),this[r(304)](a),this.advertisementEventTracker&&this[r(351)]?.[r(320)]&&console[r(358)]("📊 Advertisement event tracking enabled for slot: "+s)}async[$t(304)](t){const e=$t;try{const n=await this[e(415)](t[e(355)],t.config);if(!n||0===n[e(346)])return void this[e(348)]?.[e(433)](t);t.adType===o.BANNER&&n.length>0&&await(this[e(348)]?.[e(317)](t,n)),n[e(346)]>1||t[e(392)]?.autoSlide?(await(this[e(348)]?.renderAdSlider(t,n)),this[e(351)]?.[e(320)]&&console[e(358)]("🎠 Slider will handle VIEWABLE events for "+n[e(346)]+e(425))):(t[e(383)]=n[0],await(this[e(348)]?.[e(343)](t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t[e(364)]=!0,this[e(351)]?.[e(320)]&&console[e(358)]("✅ Ad loaded for slot: "+t.id+" ("+n[e(346)]+e(424))}catch(n){console[e(349)](e(417)+t.id,n),this[e(348)]?.renderFallback(t)}}[$t(431)](t,e){const n=(s=0)=>{const i=te,r=document[i(428)](t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this._config?.debug&&console[i(358)](i(401)+t.id+i(382)+(s+1)+")")):console[i(394)](i(393)+t.id));const o=new W(r,async()=>{const n=i;await this[n(330)](e,t)});t[i(407)]=o,this[i(351)]?.[i(320)]&&console[i(358)](i(334)+t.id+i(357))};n()}async[$t(330)](t,e){const n=$t;try{this[n(398)]&&(await this[n(398)][n(426)](t[n(344)],e.id,p.VIEWABLE),this[n(351)]?.[n(320)]&&console[n(358)](n(409)+t[n(344)]))}catch(t){console[n(349)](n(399),t)}}async fetchAdData(t,e){const n=$t;if(!this[n(351)]?.[n(315)])throw new Error(n(326));if(e[n(324)]){const t=""+$.advertisements[n(318)](e.adId),s=await fetch(t,{method:n(342),headers:O[n(365)](this[n(351)].apiKey)});if(!s.ok){if(404===s[n(385)])return console[n(394)](n(312)+e.adId),[];throw new Error(n(307)+s[n(385)])}const i=await s[n(329)]();return this[n(351)]?.[n(320)]&&console[n(358)]("📊 Fetched specific ad with ID: "+e[n(324)],i),[i]}const s=new URLSearchParams;s[n(331)](n(355),t),e[n(404)]&&s[n(331)](n(404),e[n(404)]),e.deviceType&&s[n(331)](n(403),e[n(403)]),e[n(337)]&&s.append(n(337),e[n(337)]);const i=$.advertisements[n(434)]()+"?"+s[n(368)](),r=await fetch(i,{method:n(342),headers:O.create(this._config.apiKey)});if(!r.ok)throw new Error("Failed to fetch ad data: "+r[n(385)]);const o=(await r.json())[n(411)]||[];return this[n(351)]?.debug&&console[n(358)]("📊 Fetched "+o.length+n(335)+t+", filters:",{language:e[n(404)],deviceType:e.deviceType,country:e[n(337)]}),o}async[$t(328)](t){const e=$t;try{const n=await this.fetchAdData(t[e(355)],t[e(392)]||{});n&&n[e(346)]>0&&(t[e(383)]=n[0],await(this[e(348)]?.[e(402)](t)),this[e(398)]&&console[e(358)](e(354),t.id))}catch(n){console[e(349)](e(421)+t.id,n)}}[$t(410)](){if(!this[$t(390)])throw new Error("Ads module not initialized. Call AdStage.init() first.")}[$t(381)](){const t=$t;typeof window!==t(332)&&"undefined"!=typeof document&&(this[t(377)]&&this[t(377)][t(311)](),this[t(377)]=new MutationObserver(e=>{const n=t;e[n(423)](t=>{const e=n;t[e(363)].forEach(t=>{const n=e;t[n(305)]===Node[n(384)]&&this[n(387)](t)})})}),this.mutationObserver.observe(document[t(388)],{childList:!0,subtree:!0}),this[t(351)]?.[t(320)]&&console[t(358)](t(413)))}[$t(387)](t){const e=$t,n=t[e(414)](e(350));if(n)return void this[e(367)](n);t[e(338)](e(322))[e(423)](t=>{const n=e,s=t[n(414)](n(350));s&&this[n(367)](s)})}[$t(367)](t){const e=$t;if(this.slots[e(396)](t))try{this.slots[e(412)](t),this._config?.[e(320)]&&console[e(358)](e(397)+t+e(361))}catch(n){this[e(351)]?.[e(320)]&&console[e(394)](e(370)+t+":",n)}}[$t(347)](){const t=$t,e=this[t(351)]?.[t(320)];this[t(377)]&&(this[t(377)][t(311)](),this[t(377)]=null),this.slots[t(360)](),this[t(398)]=null,this[t(348)]=null,this._isReady=!1,this._config=null,e&&console[t(358)](t(419))}}var se=ie;function ie(t,e){var n=re();return(ie=function(t,e){return n[t-=482]})(t,e)}function re(){var t=["2ypQKnx","isReady","getEnabledModules","isModuleEnabled","56BNQYru","518497gUnOPI","_organizationInfo","isDebugMode","22948673LsnuNd","_config","117148uLjQRt","938005BdwZwj","updateConfig","getApiHeaders","6953949NjGHnj","6516790SRkdWg","API key not available","apiKey","log","Config module not initialized","getBaseUrl","getApiEndpoint","_isReady","modules","18JHpjzm","events","baseUrl","1680kkkxUN","✅ Config module initialized (sync mode)","3813CZPXcZ","create","🔄 Config updated","debug","includes","config","development"];return(re=function(){return t})()}!function(){for(var t=ie,e=re();;)try{if(474957===parseInt(t(512))/1*(-parseInt(t(486))/2)+parseInt(t(505))/3*(-parseInt(t(503))/4)+parseInt(t(487))/5*(-parseInt(t(500))/6)+parseInt(t(517))/7*(-parseInt(t(516))/8)+parseInt(t(490))/9+-parseInt(t(491))/10+parseInt(t(484))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{constructor(){var t=ie;this._isReady=!1,this[t(485)]=null,this[t(482)]=null}init(t){var e=ie;this[e(485)]={timeout:3e4,debug:!1,modules:["ads",e(501),e(510)],...t},t.baseUrl&&$.setBaseUrl(t[e(502)]),this[e(498)]=!0,t[e(508)]&&console[e(494)](e(504),{modules:this[e(485)][e(499)],endpoint:$[e(496)](),mode:e(511)})}[se(513)](){return this._isReady}getConfig(){return this[se(485)]}getOrganizationInfo(){return this[se(482)]}[se(497)](){return $.getBaseUrl()}isDebugMode(){var t=se;return this[t(485)]?.debug||!1}[se(514)](){return this._config?.modules||[]}[se(515)](t){var e=se;return this.getEnabledModules()[e(509)](t)}[se(488)](t){var e=se;if(!this[e(485)])throw new Error(e(495));this[e(485)]={...this._config,...t},this[e(483)]()&&console[e(494)](e(507),t)}[se(489)](){var t=se;if(!this[t(485)]?.[t(493)])throw new Error(t(492));return O[t(506)](this[t(485)][t(493)])}}const ae=le;function ce(){const t=["other","3850raNrCI","setDeviceInfo","10605790SauGva","getUserProvidedDeviceInfo","8311045EicbzA","23154dQRVIb","language","136BzkafA","getDetailedInfo","getViewportInfo","Android","9FmBuke","6bLtnIs","clearUserProvidedDeviceInfo","toLowerCase","platform","test","mobile","1740dHeQqE","android","ko-KR","userAgent","0x0","SSR","4654640uZpaKE","cookieEnabled","123612dcHriO","desktop","1640KdoOcH","_userProvidedDeviceInfo","ios","isBrowser","web","mapPlatformForEvents","setDeviceProperty","Mobile Web","getAutoDetectedDeviceInfo","height","width","Desktop Web","iOS","getAppVersion","7241395KHekUl"];return(ce=function(){return t})()}!function(){const t=le,e=ce();for(;;)try{if(901453===parseInt(t(308))/1*(-parseInt(t(298))/2)+-parseInt(t(285))/3*(parseInt(t(287))/4)+parseInt(t(284))/5+parseInt(t(292))/6*(-parseInt(t(278))/7)+-parseInt(t(304))/8+parseInt(t(291))/9*(-parseInt(t(282))/10)+-parseInt(t(280))/11*(-parseInt(t(306))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class de{static getDeviceInfo(){return{...de[le(272)](),...de._userProvidedDeviceInfo}}static[ae(272)](){const t=ae;if(!w[t(267)]())return{category:t(279),platform:t(303),model:"SSR",appVersion:z.getAppVersion(),osVersion:t(303)};const e=navigator[t(301)][t(294)]();let n=t(307);/tablet|ipad/[t(296)](e)?n="tablet":V.isMobile()&&(n=t(297));const s=V.getPlatform();return{category:n,platform:de[t(269)](s),model:navigator[t(295)],appVersion:z[t(277)](),osVersion:navigator[t(295)]}}static[ae(281)](t){const e=ae;de._userProvidedDeviceInfo={...de[e(309)],...t}}static[ae(270)](t,e){de[ae(309)][t]=e}static[ae(293)](){de[ae(309)]={}}static[ae(283)](){return{...de[ae(309)]}}static[ae(269)](t){const e=ae;switch(t){case e(266):return e(276);case e(299):return e(290);case e(268):return e(271);case e(307):return e(275);default:return"Unknown"}}static[ae(288)](){const t=ae;if(!w[t(267)]())return{userAgent:t(303),language:t(300),platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:"0x0",viewportSize:t(302)};const e=w[t(289)]();return{userAgent:navigator[t(301)],language:navigator[t(286)]||"ko-KR",platform:navigator[t(295)],cookieEnabled:navigator[t(305)],onLine:navigator.onLine,screenResolution:screen[t(274)]+"x"+screen[t(273)],viewportSize:e[t(274)]+"x"+e[t(273)]}}}function le(t,e){const n=ce();return(le=function(t,e){return n[t-=266]})(t,e)}function ue(t,e){const n=pe();return(ue=function(t,e){return n[t-=128]})(t,e)}function pe(){const t=["getUserInfo","clearUserProperties","ko-KR","2235EJloyq","timeZone","estimateLocation","getBaseUserInfo","language","881220UWFUxg","1810280AkHRbo","UTC","1324rOsSsu","isBrowser","749124gGRGiV","9HLTOWI","setUserProperty","split","DateTimeFormat","543046QNrCTv","47982zGSHYt","getCurrentUserProperties","extractCountryFromLanguage","77nqKtLW","_userProperties"];return(pe=function(){return t})()}de[ae(309)]={};const he=ue;!function(){const t=ue,e=pe();for(;;)try{if(415848===parseInt(t(144))/1+-parseInt(t(137))/2+parseInt(t(129))/3+parseInt(t(139))/4+-parseInt(t(134))/5+-parseInt(t(145))/6*(-parseInt(t(148))/7)+parseInt(t(135))/8*(-parseInt(t(140))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{static[he(150)](){const t=he;return{...fe[t(132)](),...fe[t(149)]}}static[he(132)](){const t=he;if(!w.isBrowser())return{language:t(128),country:"KR"};const e=navigator[t(133)]||t(128);return{language:e,country:fe[t(147)](e)}}static[he(147)](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[he(142)]("-")[0]]||"KR"}static setUserProperties(t){fe._userProperties={...fe._userProperties,...t}}static[he(141)](t,e){fe[he(149)][t]=e}static[he(151)](){fe[he(149)]={}}static[he(146)](){return{...fe[he(149)]}}static[he(131)](){const t=he;if(!w[t(138)]())return{timezone:t(136),estimatedCountry:"KR"};const e=Intl[t(143)]().resolvedOptions()[t(130)];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"}}}fe[he(149)]={};const ge=Ie;function me(){const t=["getUserId","4116aCVAsY","getItem","getSessionStats","1121552kzkmRx","clearUserId","476988FloNSi","adstage_session_id","638QgPYpz","getSessionId","26FFdXKL","ssr_session_","335EYVOej","now","toString","substr","session_","adstage_user_id","refreshSession","19630cmTMPR","72748zvhHsA","3969612ZLOkIH","_userId","_sessionStartTime","isNewSession","setUserId","setItem","random","5190516aXQqhk","adstage_session_start","getSessionDuration","28klFsvk","isBrowser","isSessionExpired"];return(me=function(){return t})()}function Ie(t,e){const n=me();return(Ie=function(t,e){return n[t-=244]})(t,e)}!function(){const t=Ie,e=me();for(;;)try{if(573739===parseInt(t(268))/1*(parseInt(t(258))/2)+-parseInt(t(254))/3+parseInt(t(269))/4+parseInt(t(260))/5*(parseInt(t(249))/6)+-parseInt(t(245))/7*(parseInt(t(252))/8)+-parseInt(t(276))/9+parseInt(t(267))/10*(-parseInt(t(256))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{static[ge(257)](){const t=ge;if(!w[t(246)]())return t(259)+Date.now();const e=sessionStorage[t(250)](t(255));if(e)return e;const n=t(264)+Math[t(275)]()[t(262)](36)[t(263)](2,9)+"_"+Date.now();return sessionStorage[t(274)](t(255),n),!ve[t(271)]&&(ve[t(271)]=Date[t(261)](),w.isBrowser()&&sessionStorage[t(274)](t(277),String(ve[t(271)]))),n}static[ge(273)](t){const e=ge;ve[e(270)]=t,w[e(246)]()&&localStorage.setItem(e(265),t)}static[ge(248)](){const t=ge;if(ve._userId)return ve[t(270)];if(w[t(246)]()){const e=localStorage[t(250)](t(265));if(e)return ve[t(270)]=e,e}}static[ge(253)](){const t=ge;ve[t(270)]=void 0,w[t(246)]()&&localStorage.removeItem(t(265))}static getSessionInfo(){const t=ge,e=ve.getSessionId(),n=ve.getUserId(),s=ve[t(272)]();return{sessionId:e,userId:n,sessionDuration:ve[t(244)](),isNewSession:s}}static[ge(272)](){const t=ge;if(!w[t(246)]())return!0;const e=sessionStorage[t(250)](t(255)),n=sessionStorage[t(250)](t(277));return!e||!n}static[ge(244)](){const t=ge;if(!w[t(246)]())return 0;const e=sessionStorage[t(250)](t(277));return e?Date[t(261)]()-parseInt(e,10):0}static[ge(266)](){const t=ge;return w[t(246)]()&&(sessionStorage.removeItem(t(255)),sessionStorage.removeItem(t(277))),ve[t(271)]=void 0,ve.getSessionId()}static[ge(247)](t=24){return ve[ge(244)]()>60*t*60*1e3}static[ge(251)](){const t=ge,e=ve[t(257)](),n=ve[t(248)](),s=ve.getSessionDuration(),i=ve[t(247)](),r=ve[t(272)]();let o;if(w[t(246)]()){const e=sessionStorage[t(250)]("adstage_session_start");o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:i,isNewSession:r}}}const ye=be;function be(t,e){const n=we();return(be=function(t,e){return n[t-=260]})(t,e)}function we(){const t=["getUserInfo","63694ggcbZz","👤 User ID set:","622937aWrCII","6295GZtfkX","16176BKOlxJ","API key not configured for event tracking.","track","statusText","getConfig","_config","getUserId","application/json","672Hcfbav","1359688rSyjMn","sendEventToServer","60aLXWoU","setUserId","Event tracking failed: ","268LXeRDe","error","👤 User properties set:","debug","isReady","warn","_isReady","log","getSessionId","Event data:","✅ Event tracked:","apiKey","3311YTegPZ","getUserProperties","status","136854lTHUXW","6QmEuZv","5745ITcMjv","init","stringify","setUserProperties","getCurrentUserProperties"];return(we=function(){return t})()}!function(){const t=be,e=we();for(;;)try{if(113069===parseInt(t(285))/1*(-parseInt(t(292))/2)+-parseInt(t(286))/3*(parseInt(t(269))/4)+-parseInt(t(295))/5*(parseInt(t(263))/6)+parseInt(t(294))/7+parseInt(t(264))/8+-parseInt(t(284))/9*(parseInt(t(266))/10)+parseInt(t(281))/11*(parseInt(t(296))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ke{constructor(){const t=be;this._isReady=!1,this[t(260)]=null}[ye(287)](t){const e=ye;this._config=t,this[e(275)]=!0,t[e(272)]&&console[e(276)]("📊 Events module initialized")}[ye(273)](){return this[ye(275)]}[ye(300)](){return this[ye(260)]}[ye(267)](t){const e=ye;ve[e(267)](t),this[e(260)]?.[e(272)]&&console[e(276)](e(293),t)}[ye(261)](){return ve[ye(261)]()}setUserProperties(t){const e=ye;fe[e(289)](t),this[e(260)]?.[e(272)]&&console[e(276)](e(271),t)}[ye(282)](){return fe[ye(290)]()}async[ye(298)](t,e){const n=ye;if(this[n(275)])if(this[n(260)]?.[n(280)])try{const s={eventName:t,userId:ve[n(261)](),sessionId:ve[n(277)](),sdkVersion:C(),device:de.getDeviceInfo(),user:fe[n(291)](),params:e||{}};await this[n(265)](s),this._config[n(272)]&&console.log(n(279),t,e)}catch(s){console.error("❌ Failed to track event:",s),this[n(260)][n(272)]&&console[n(270)](n(278),{eventName:t,properties:e})}else console.warn(n(297));else console[n(274)]("Events module not initialized. Call AdStage.init() first.")}async sendEventToServer(t){const e=ye,n=await fetch($.events[e(298)](),{method:"POST",headers:{...O.create(this[e(260)].apiKey),"Content-Type":e(262)},body:JSON[e(288)](t)});if(!n.ok)throw new Error(e(268)+n[e(283)]+" "+n[e(299)])}}const Ee=Ae;function xe(){const t=["91HkyCHg","init","3880oAJROJ","events","1880410tsuUBF","debug","log","📊 AdStage Debug: 현재 viewable 추적 상태","from","118314KPCQzF","viewableTracker","✅ AdStage Debug: 광고 ","getInstance","_config","setBaseUrl","reset","function","2.0.0","ads","size","AdStage not initialized. Call AdStage.init() first.","clear","development","instance","getConfig","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","baseUrl","842076yCFCmA","config","...","🌐 API endpoint configured:","1353608zibVvm","isReady","substring","889188qJuNms","_isInitialized","3olaVDk","2439AZsAAn","58840TIROyF","🚀 AdStage SDK initialized (sync mode)","clearAdViewable","API key is required for AdStage initialization"];return(xe=function(){return t})()}function Ae(t,e){const n=xe();return(Ae=function(t,e){return n[t-=433]})(t,e)}!function(){const t=Ae,e=xe();for(;;)try{if(438367===parseInt(t(444))/1+-parseInt(t(462))/2*(-parseInt(t(471))/3)+-parseInt(t(466))/4+parseInt(t(439))/5+-parseInt(t(469))/6+parseInt(t(435))/7*(-parseInt(t(473))/8)+-parseInt(t(472))/9*(-parseInt(t(437))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Se{constructor(){const t=Ae;this._isInitialized=!1,this[t(448)]=null,this[t(463)]=new oe,this[t(453)]=new ne,this[t(438)]=new ke}static[Ee(436)](t){const e=Ee;!Se[e(458)]&&(Se[e(458)]=new Se);const n=Se.instance;if(!t.apiKey)throw new Error(e(434));n._config={timeout:3e4,debug:!1,modules:[e(453),e(438),e(463)],...t},n[e(448)][e(461)]&&($[e(449)](n[e(448)][e(461)]),t[e(440)]&&console[e(441)](e(465),n[e(448)][e(461)]));const s=n[e(448)].modules||[e(453),"events",e(463)];for(const t of s){const s=n[t];s&&typeof s[e(436)]===e(451)&&s[e(436)](n[e(448)])}n._isInitialized=!0,t.debug&&console[e(441)](e(474),{version:e(452),modules:s,apiKey:t.apiKey[e(468)](0,8)+e(464),mode:e(457)})}static[Ee(467)](){const t=Ee;return Se[t(458)]?.[t(470)]||!1}static[Ee(459)](){return Se.instance?._config||null}static[Ee(447)](){const t=Ee;if(!Se.instance)throw new Error(t(455));return Se[t(458)]}static get[Ee(453)](){return Se[Ee(447)]().ads}static get[Ee(438)](){return Se[Ee(447)]().events}static get[Ee(463)](){const t=Ee;return Se[t(447)]()[t(463)]}static[Ee(450)](){const t=Ee;Se.instance&&(Se[t(458)][t(470)]=!1,Se[t(458)][t(448)]=null)}}function Ce(t,e){var n=De;return Se.isReady()?Se[n(123)].track(t,e):(console.warn("AdStage not initialized. Call AdStage.init() first."),Promise[n(128)]())}function Te(t){var e=De;Se[e(135)]()?Se[e(123)][e(136)](t):console[e(129)](e(137))}function De(t,e){var n=ze();return(De=function(t,e){return n[t-=121]})(t,e)}function Re(){var t=De;if(Se.isReady())return Se[t(123)][t(130)]();console[t(129)](t(137))}function ze(){var t=["591QzpyIr","isReady","setUserId","AdStage not initialized. Call AdStage.init() first.","8340XzQNVE","7979184arOKYV","events","getUserProperties","setUserProperties","2068825pXoVjP","1696558freuzE","resolve","warn","getUserId","7691516CSZEFp","5780406OcdYlg","542946lXFxCV"];return(ze=function(){return t})()}function Le(t){var e=De;Se[e(135)]()?Se[e(123)][e(125)](t):console[e(129)](e(137))}function Be(){var t=De;if(Se[t(135)]())return Se[t(123)][t(124)]();console[t(129)](t(137))}Se[Ee(440)]={clearAllViewable:()=>{const t=Ee;gt[t(456)](),console.log(t(460))},clearAdViewable:(t,e)=>{const n=Ee;gt[n(433)](t,e),console[n(441)](n(446)+t+"("+e+")의 viewable 추적 초기화됨")},getViewableStatus:()=>{const t=Ee;console[t(441)](t(442),{trackedCount:gt[t(445)][t(454)],trackedItems:Array[t(443)](gt[t(445)])})}},function(){for(var t=De,e=ze();;)try{if(559698===parseInt(t(133))/1+-parseInt(t(127))/2+-parseInt(t(134))/3*(parseInt(t(121))/4)+parseInt(t(126))/5+parseInt(t(132))/6+-parseInt(t(131))/7+parseInt(t(122))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Pe=e(null);function Ve({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&Se.reset(),Se.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{Se.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Pe.Provider,{value:p,children:e})}function Me(){const t=i(Pe);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Ne(){const{isInitialized:t}=Me();return t?Se:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Ue(){var t=["9045384nVZpzY","6bGIkuh","81026OblKQa","3cPGoOd","8UfAXdM","217522sCWdTn","376587GSJEeB","352533qkUuLI","72oYlMId","216167DnnVgE","645710QigKMc","210HCTVRl"];return(Ue=function(){return t})()}function Oe(t,e){var n=Ue();return(Oe=function(t,e){return n[t-=139]})(t,e)}!function(){for(var t=Oe,e=Ue();;)try{if(206140===-parseInt(t(148))/1+-parseInt(t(146))/2*(-parseInt(t(144))/3)+parseInt(t(145))/4*(parseInt(t(139))/5)+-parseInt(t(142))/6*(parseInt(t(150))/7)+-parseInt(t(149))/8*(parseInt(t(147))/9)+parseInt(t(140))/10*(-parseInt(t(143))/11)+parseInt(t(141))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Fe=He;function He(t,e){const n=_e();return(He=function(t,e){return n[t-=113]})(t,e)}function _e(){const t=["40923dVrfWn","ads","events","5230HLPXaI","AdStage","2.0.0","11048Jomgws","1608PLgFYb","12348KPYzxc","114WffJLk","5830phqwKz","undefined","1142240iQeoNB","9814630zulDiY","7254PNkdOA","29249nugRLQ"];return(_e=function(){return t})()}!function(){const t=He,e=_e();for(;;)try{if(765678===parseInt(t(117))/1+parseInt(t(118))/2*(-parseInt(t(125))/3)+parseInt(t(121))/4+parseInt(t(128))/5*(parseInt(t(116))/6)+parseInt(t(122))/7+-parseInt(t(115))/8*(-parseInt(t(123))/9)+parseInt(t(119))/10*(-parseInt(t(124))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ke=Fe(114),je=[Fe(126),Fe(127),"config"];typeof window!==Fe(120)&&(window[Fe(113)]=Se);export{Se as AdStage,Ve as AdStageProvider,Ke as SDK_VERSION,je as SUPPORTED_MODULES,Re as getUserId,Be as getUserProperties,Te as setUserId,Le as setUserProperties,Ce as track,Me as useAdStageContext,Ne as useAdStageInstance};