@adstage/web-sdk 3.0.12 → 3.0.14

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.
@@ -1,4 +1,4 @@
1
- var t,e,n,r,o,i,s,a,c,l,d,u;function p(){var t=["NATIVE","POPUP","TABLET","VIEWABLE","2192EjXhBm","205123bmnIee","VIDEO","3427330uRMeWX","MOBILE","28wePTpT","905226CtmkjK","2944856FjbhgW","1218fOxWuw","CLICK","DESKTOP","BANNER","18mLyJSA","INTERSTITIAL","1087490SaIgbf","WEB","1402796ekAVGO"];return(p=function(){return t})()}function h(t,e){var n=p();return(h=function(t,e){return n[t-=197]})(t,e)}function f(){const t=["innerHTML","isSSR","86309vrQCUc","textContent","getScrollInfo","isBrowser","getPageInfo","add",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"loading","DOMContentLoaded","documentElement","번째 시도, ","1028JNkTky","safeGetComputedStyle","14qfNpDO","classList","safeSetInnerHTML","readyState"," (최대 ","✅ 컨테이너 즉시 발견: ","2626734uVhfJf","97600mKkHgY","scrollTop","9987dgNCPm","isDOMReady","addEventListener","getElementById","appendChild","pow","safeRemoveChild","setProperty","removeEventListener",'❌ 컨테이너를 찾을 수 없습니다: "',"title","waitForDOM","15617602iwRuYN","safeRemoveClass","getComputedStyle","waitForElement","undefined","번 시도)","safeGetElementById","createElement","2056136iEKUCv","pageYOffset","safeApplyStyles","devicePixelRatio","getDocumentProperty","error","safeWindowOpen","DOM을 사용할 수 없는 환경입니다.","entries","removeChild","ms (","href","canUseDOM","✅ 컨테이너 발견: ","innerHeight","ms 경과)",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"pageXOffset","378pwaKQi","3048540VaywMG","getWindowProperty","ceil","all","safeAddEventListener","getViewportInfo","safeRemoveEventListener","waitForElements","innerWidth","log","style","6oPbhjD","location"];return(f=function(){return t})()}function g(t,e){const n=f();return(g=function(t,e){return n[t-=257]})(t,e)}!function(){for(var t=h,e=p();;)try{if(419174===parseInt(t(197))/1+-parseInt(t(212))/2+-parseInt(t(204))/3*(-parseInt(t(217))/4)+parseInt(t(210))/5+-parseInt(t(202))/6*(parseInt(t(201))/7)+-parseInt(t(203))/8*(-parseInt(t(208))/9)+parseInt(t(199))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=h)(207)]="BANNER",e[n(214)]=n(214),e[n(209)]=n(209),e[n(213)]=n(213),e[n(198)]=n(198),e.TEXT="TEXT",(o=r||(r={}))[(i=h)(211)]=i(211),o[i(200)]="MOBILE",(a=s||(s={}))[(c=h)(216)]=c(216),a[c(205)]=c(205),(d=l||(l={}))[(u=h)(206)]="DESKTOP",d[u(200)]="MOBILE",d[u(215)]=u(215);const m=g;!function(){const t=g,e=f();for(;;)try{if(446733===-parseInt(t(285))/1*(-parseInt(t(281))/2)+parseInt(t(307))/3*(parseInt(t(296))/4)+-parseInt(t(270))/5+parseInt(t(304))/6+parseInt(t(298))/7*(parseInt(t(327))/8)+parseInt(t(269))/9*(parseInt(t(305))/10)+-parseInt(t(319))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class y{static[m(288)](){return"undefined"!=typeof window&&typeof document!==m(323)}static[m(284)](){return!this[m(288)]()}static[m(263)](){const t=m;return this.isBrowser()&&void 0!==document[t(301)]}static[m(325)](t){const e=m;return this[e(263)]()?document[e(310)](t):null}static safeQuerySelector(t){return this[m(263)]()?document.querySelector(t):null}static safeQuerySelectorAll(t){return this[m(263)]()?Array.from(document.querySelectorAll(t)):[]}static safeCreateElement(t){const e=m;return this[e(263)]()?document[e(326)](t):null}static[m(274)](t,e,n,r){const o=m;this[o(263)]()&&t&&t[o(309)](e,n,r)}static[m(276)](t,e,n,r){const o=m;this[o(263)]()&&t&&t[o(315)](e,n,r)}static[m(271)](t,e){return this.isBrowser()?window[t]??e:e}static[m(331)](t,e){return this.canUseDOM()?document[t]??e:e}static[m(257)](t,e,n){return this[m(288)]()?window.open(t,e,n):null}static[m(297)](t){const e=m;return this[e(288)]()&&t?window[e(321)](t):null}static[m(308)](){const t=m;return!!this[t(263)]()&&document.readyState!==t(292)}static[m(318)](){return new Promise(t=>{const e=g;this[e(263)]()?this[e(308)]()?t():this[e(274)](document,e(293),()=>t()):t()})}static[m(329)](t,e){const n=m;this[n(263)]()&&t&&Object[n(259)](e).forEach(([e,r])=>{const o=n;t[o(280)][o(314)](e,r)})}static safeAddClass(t,e){const n=m;this.canUseDOM()&&t&&t[n(299)][n(290)](e)}static[m(320)](t,e){this[m(263)]()&&t&&t.classList.remove(e)}static safeSetTextContent(t,e){const n=m;this[n(263)]()&&t&&(t[n(286)]=e)}static[m(300)](t,e){const n=m;this[n(263)]()&&t&&(t[n(283)]=e)}static safeAppendChild(t,e){const n=m;this[n(263)]()&&t&&e&&t[n(311)](e)}static[m(313)](t,e){const n=m;this[n(263)]()&&t&&e&&t[n(260)](e)}static[m(289)](){const t=m;return{url:this[t(271)](t(282),{href:""})[t(262)],title:this.getDocumentProperty(t(317),""),referrer:this.getDocumentProperty("referrer","")}}static[m(275)](){const t=m;return{width:this[t(271)](t(278),0),height:this.getWindowProperty(t(265),0),pixelRatio:this[t(271)](t(330),1)}}static[m(287)](){const t=m;return{scrollTop:this.canUseDOM()?window[t(328)]||document[t(294)][t(306)]:0,scrollLeft:this.getWindowProperty(t(268),0)}}static async[m(322)](t,e={}){const n=m,{timeout:r=3e3,retryInterval:o=100,debug:i=!1}=e;if(!this[n(263)]())throw new Error(n(258));const s=document[n(310)](t);return s?(i&&console[n(279)](n(303)+t),s):(i&&console[n(279)]("⏳ 컨테이너 대기 시작: "+t+n(302)+r+"ms)"),new Promise((e,s)=>{const a=n;let c=0;const l=Math[a(272)](r/o),d=()=>{const n=a;c++;const u=document[n(310)](t);if(u)return i&&console[n(279)](n(264)+t+" ("+c+n(295)+c*o+n(266)),void e(u);if(c>=l){const e=n(316)+t+n(291)+t+n(267)+r+n(261)+c+n(324);return i&&console[n(332)](e),void s(new Error(e))}i&&c%10==0&&console[n(279)]("⏳ 컨테이너 대기 중: "+t+" ("+c+"/"+l+")");const p=Math.min(o*Math[n(312)](1.2,c),500);setTimeout(d,p)};setTimeout(d,o)}))}static async[m(277)](t,e={}){const n=m,r=t.map(t=>this[n(322)](t,e));return Promise[n(273)](r)}}const v=w;!function(){const t=w,e=b();for(;;)try{if(767327===parseInt(t(358))/1*(parseInt(t(362))/2)+-parseInt(t(361))/3*(-parseInt(t(348))/4)+-parseInt(t(352))/5+parseInt(t(360))/6+-parseInt(t(359))/7*(parseInt(t(356))/8)+parseInt(t(350))/9*(-parseInt(t(355))/10)+parseInt(t(353))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const I=v(354);function b(){const t=["2872JXQXnO","undefined","594954nUWmHf","userAgent","2626685oUnuzS","18978784McUdVD","3.0.12","100REpacQ","1264xlsWca","AdStageSDK/","5228FnnXeC","9744VMTHQe","616380KLFPNP","177DytIOz","116lJKyOS"];return(b=function(){return t})()}function w(t,e){const n=b();return(w=function(t,e){return n[t-=348]})(t,e)}function k(){return I}function S(t,e){const n=E();return(S=function(t,e){return n[t-=203]})(t,e)}function E(){const t=["collectDeviceInfo","random","adstage_device_id","setItem","unknown"," .adstage-slider-wrapper","top","session_","ios","getItem","27771ipoFDE","timeZone","87300yuJTPn","effectiveType","getViewportInfo","1547504jxLHzZ","toString","ssr_device_","1.0.0","276ubFSgd","10050608WtYBUy","web","UTC","colorDepth","generateDeviceId","substr","language","getScrollInfo","SSR","adstage_session_id","userAgent",'[data-adstage-slot-id="',"safeQuerySelector","2864675GisSRe","getPlatform","1030032Obxexd","toLowerCase","left","now","4338468yjyReQ","isMobile","resolvedOptions","generateSessionId","round","width","getBoundingClientRect","isBrowser"];return(E=function(){return t})()}const x=S;!function(){const t=S,e=E();for(;;)try{if(392402===parseInt(t(218))/1+-parseInt(t(241))/2+-parseInt(t(216))/3*(-parseInt(t(225))/4)+-parseInt(t(239))/5+-parseInt(t(245))/6+parseInt(t(221))/7+parseInt(t(226))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class A{static[x(230)](){const t=x;if(!y[t(205)]())return t(223)+Date[t(244)]();const e=localStorage[t(215)](t(208));if(e)return e;const n="device_"+Math[t(207)]().toString(36)[t(231)](2,9)+"_"+Date[t(244)]();return localStorage[t(209)]("adstage_device_id",n),n}static[x(248)](){const t=x;if(!y.isBrowser())return"ssr_session_"+Date.now();const e=sessionStorage[t(215)](t(235));if(e)return e;const n=t(213)+Math[t(207)]()[t(222)](36)[t(231)](2,9)+"_"+Date[t(244)]();return sessionStorage[t(209)]("adstage_session_id",n),n}static[x(246)](){const t=x;return!!y[t(205)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator[t(236)])}static[x(240)](){const t=x;if(!y[t(205)]())return t(227);const e=navigator[t(236)][t(242)]();return/iphone|ipad|ipod/.test(e)?t(214):/android/.test(e)?"android":A.isMobile()?"web":"desktop"}static[x(206)](){const t=x,e=y[t(220)]();return{deviceId:A.generateDeviceId(),sessionId:A[t(248)](),osVersion:y[t(205)]()?navigator.platform:"SSR",deviceModel:y.isBrowser()?navigator.platform:"SSR",appVersion:t(224),sdkVersion:k(),language:y[t(205)]()&&navigator[t(232)]||"ko",country:"KR",ipAddress:"",userAgent:y[t(205)]()?navigator[t(236)]:t(234),timezone:y.isBrowser()?Intl.DateTimeFormat()[t(247)]()[t(217)]:t(228),viewportWidth:e[t(203)],viewportHeight:e.height,screenWidth:y[t(205)]()?screen.width:0,screenHeight:y[t(205)]()?screen.height:0,colorDepth:y[t(205)]()?screen[t(229)]:24,pixelRatio:e.pixelRatio,connectionType:y[t(205)]()&&navigator.connection?.[t(219)]||t(210),platform:A[t(240)]()}}static getSlotPosition(t){const e=x;let n=y.safeGetElementById(t);if(!n){const r=y[e(238)]("#"+t+e(211));r&&(n=r)}if(!n&&(n=y.safeQuerySelector(e(237)+t+'"]')),!n)return e(210);const r=n[e(204)](),o=y[e(233)]();return"x:"+Math[e(249)](r[e(243)])+",y:"+Math[e(249)](r[e(212)]+o.scrollTop)}}const C=T;function T(t,e){const n=_();return(T=function(t,e){return n[t-=493]})(t,e)}function _(){const t=["3eUTztN","2528730OmXGkf","2463439qBAYOK","undefined","2501664DfBlPV","contentType","60ByTMpB","352146pgaKDa","9843930VCJWue","create","User-Agent","362380vmtTAB","userAgent","30FNIIao","createForEvents","API key is required","6972bMsOQN","2639snyRpR"];return(_=function(){return t})()}!function(){const t=T,e=_();for(;;)try{if(648131===-parseInt(t(498))/1*(parseInt(t(505))/2)+-parseInt(t(499))/3+parseInt(t(509))/4*(-parseInt(t(493))/5)+parseInt(t(496))/6*(parseInt(t(497))/7)+-parseInt(t(502))/8+parseInt(t(506))/9+-parseInt(t(504))/10*(-parseInt(t(500))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{static[C(507)](t,e){const n=C;if(!t)throw new Error(n(495));const r={"x-api-key":t,"Content-Type":e?.[n(503)]||"application/json"};return typeof navigator!==n(501)&&(r[n(508)]=e?.[n(510)]||navigator[n(510)]),r}static[C(494)](t,e){const n=C,r=R.create(t);return e?.userAgent&&(r[n(508)]=e.userAgent),r}}const D=U;function P(){const t=["stringify","getPageInfo","apiKey"," for ad ","5jvQNmi","status","slots","querySelector","1KTBbGo"," (containerId: ",'[data-adstage-slot-id="'," in slot ","getSlotPosition","9573066oqsBAe","collectDeviceInfo","number","🌐 Full API call details:","adType","36mqfXGO","NOT_SET","VIEWABLE","containerId","length","string","❌ Failed to track advertisement event:","API request failed: ","trackAdvertisementEvent","1378630vZpNnU","parseNumericValue","7806568fbCtzm","sessionId","replace","substring","createForEvents","title","referrer","95032cCTEPD","/advertisements/events/","warn","log","⚠️ DOM element not found for slotId: ","url","920715FtqYvG","⚠️ Slot not found for slotId: ","baseUrl","2481676yFomRB","). Skipping event tracking.","🔍 Debug info:","469bdOgbH","✅ Successfully tracked advertisement event: "," - ","1931674zCdSIW","deviceId","statusText","🚀 AdvertisementEventTracker: Processing ","now","width","debug","error","🚀 Sending advertisement event: ","text"];return(P=function(){return t})()}function U(t,e){const n=P();return(U=function(t,e){return n[t-=280]})(t,e)}!function(){const t=U,e=P();for(;;)try{if(817829===parseInt(t(316))/1*(parseInt(t(298))/2)+-parseInt(t(289))/3+parseInt(t(292))/4+parseInt(t(312))/5*(parseInt(t(321))/6)+-parseInt(t(295))/7*(parseInt(t(283))/8)+parseInt(t(326))/9*(-parseInt(t(335))/10)+-parseInt(t(337))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class O{constructor(t,e,n,r){const o=U;this.baseUrl=t,this.apiKey=e,this[o(304)]=n,this[o(314)]=r}async[D(334)](t,e,n){const r=D;try{this.debug&&console[r(286)](r(301)+n+" event for ad "+t+r(319)+e);const o=this.slots.get(e);if(!o)return void(this[r(304)]&&console.warn(r(290)+e+". Skipping event tracking to prevent incorrect adType."));if(!(document.getElementById(o[r(329)])||document[r(315)](r(318)+e+'"]')))return void(this[r(304)]&&console[r(285)](r(287)+e+r(317)+o.containerId+r(293)));const i=A[r(322)](),a={adType:o[r(325)],platform:i.platform,deviceId:i[r(299)],deviceInfo:i,pageUrl:y[r(309)]()[r(288)],pageTitle:y[r(309)]()[r(281)],referrer:y.getPageInfo()[r(282)],slotId:e,slotPosition:A[r(320)](o[r(329)]),slotWidth:O[r(336)](o[r(303)]),slotHeight:O[r(336)](o.height),sessionId:i[r(338)],pageLoadTime:performance[r(302)](),metadata:{eventType:n,sdkVersion:k(),timestamp:Date[r(302)]()},...n===s[r(328)]&&{isViewable:!0,iabCompliant:!0}},c=this[r(291)]+r(284)+t+"/"+n,l=R[r(280)](this.apiKey,a);this[r(304)]&&(console.log(r(306)+n+r(311)+t,{url:c,headers:l,eventData:a}),console[r(286)](r(324),{method:"POST",url:c,hasApiKey:!!this[r(310)],bodySize:JSON.stringify(a)[r(330)]}));const d=await fetch(c,{method:"POST",headers:l,body:JSON[r(308)](a)});if(this[r(304)]&&console.log("📡 API Response Status: "+d[r(313)]+" "+d[r(300)],{url:c,ok:d.ok}),!d.ok){const t=await d[r(307)]();throw new Error(r(333)+d[r(313)]+" "+d[r(300)]+r(297)+t)}this[r(304)]&&console[r(286)](r(296)+n+r(311)+t)}catch(o){console[r(305)](r(332),o),console.error(r(294),{baseUrl:this.baseUrl,apiKey:this[r(310)]?this.apiKey[r(340)](0,8)+"...":r(327),url:this[r(291)]+r(284)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[D(336)](t){const e=D;if(typeof t===e(323))return t;if(typeof t===e(331)){const n=parseFloat(t[e(339)](/px$/,""));return isNaN(n)?0:n}return 0}}function L(t,e){var n=z();return(L=function(t,e){return n[t-=149]})(t,e)}var B=L;function z(){var t=["2153736pPKZgh","24435zXfCXr","16576pTIEUm","visible","2696968ZkQIBe","0px","observer","27iMPuOI","246209aAkgGi","intersectionRatio","onViewableCallback","548vPIsOo","isViewableTriggered","2819490JOavIH","disconnect","warn","hidden","visibilityState","isDocumentVisible","IntersectionObserver","initIntersectionObserver","33FtSIbv","observe","IntersectionObserver not supported, viewability tracking disabled","600ieOMyW","3823614CthRRG"];return(z=function(){return t})()}!function(){for(var t=L,e=z();;)try{if(680706===-parseInt(t(149))/1+parseInt(t(167))/2+parseInt(t(166))/3+-parseInt(t(152))/4*(-parseInt(t(168))/5)+parseInt(t(165))/6*(-parseInt(t(169))/7)+parseInt(t(171))/8*(-parseInt(t(174))/9)+-parseInt(t(154))/10*(parseInt(t(162))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t,e){var n=L;this.observer=null,this[n(153)]=!1,this.element=t,this[n(151)]=e,this[n(161)]()}initIntersectionObserver(){var t=L;t(160)in window?(this[t(173)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(172)}),this.observer[t(163)](this.element)):console[t(156)](t(164))}handleIntersection(t){t.forEach(t=>{var e=L;t[e(150)]>=.5&&this.isDocumentVisible()&&!this[e(153)]&&(this[e(153)]=!0,this[e(151)]&&this[e(151)]())})}[B(159)](){var t=B;return!document[t(157)]&&document[t(158)]===t(170)}destroy(){var t=B;this[t(173)]&&(this[t(173)][t(155)](),this.observer=null)}}function F(t,e){const n=W();return(F=function(t,e){return n[t-=315]})(t,e)}const N=F;!function(){const t=F,e=W();for(;;)try{if(306819===parseInt(t(333))/1+parseInt(t(331))/2+-parseInt(t(317))/3*(-parseInt(t(322))/4)+-parseInt(t(340))/5+-parseInt(t(330))/6+-parseInt(t(319))/7*(-parseInt(t(318))/8)+-parseInt(t(324))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const V={production:N(336),beta:N(320)};N(316);const j={advertisements:{list:N(321),detail:N(323),events:"/advertisements/events"},events:{track:N(332),registerAttribution:N(326)}};class H{constructor(t){const e=N;this[e(338)]={list:()=>""+this.baseUrl+j[e(338)][e(335)],detail:t=>""+this[e(328)]+j.advertisements.detail+"/"+t,events:(t,n)=>""+this[e(328)]+j[e(338)][e(339)]+"/"+t+"/"+n},this[e(339)]={track:()=>""+this.baseUrl+j[e(339)][e(315)],registerAttribution:()=>""+this[e(328)]+j.events[e(329)]},this[e(328)]=t||V[e(316)]}[N(325)](t){this[N(328)]=t}[N(327)](){return this.baseUrl}[N(334)](t){const e=N;return""+this[e(328)]+(t[e(337)]("/")?t:"/"+t)}}const K=new H;function W(){const t=["395032cvSMxM","/advertisements","6181254wxevzd","setBaseUrl","/events/register/attribution","getBaseUrl","baseUrl","registerAttribution","2133528LwJXFe","111406NovBRG","/events/track","586668CuKIMA","custom","list","https://api.adstage.app","startsWith","advertisements","events","1678610KWTwUC","track","production","18pmmHDa","56glUVYG","450016mWKTgn","https://beta-api.adstage.app","/advertisements/list"];return(W=function(){return t})()}var Y=q;function X(){var t=["🎯 Triggering initial VIEWABLE event: ad "," (index: 0) in slot: ","59889090AgzrqJ","VIEWABLE","28TsBIbp","trackSlideViewable","8PvjzxT","🎯 Triggering VIEWABLE event for slide change: ad ","499053lGUpha","trackInitialSlideViewable",") in slot: ","_id","2367682sgYCcN","12XYKNgR","2232965MovnBZ","1534907gGoBHz","7043407yFxRRg","log","15228504YXyMSp"];return(X=function(){return t})()}function q(t,e){var n=X();return(q=function(t,e){return n[t-=228]})(t,e)}!function(){for(var t=q,e=X();;)try{if(881943===-parseInt(t(236))/1+parseInt(t(233))/2+-parseInt(t(229))/3*(parseInt(t(244))/4)+-parseInt(t(235))/5*(parseInt(t(234))/6)+-parseInt(t(237))/7*(parseInt(t(246))/8)+-parseInt(t(239))/9+parseInt(t(242))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class G{static[Y(245)](t,e,n,r,o=!1){var i=Y;o&&console[i(238)](i(228)+t._id+" (index: "+n+i(231)+e.id),r(t[i(232)],e.id,s[i(243)])}static[Y(230)](t,e,n,r=!1){var o=Y;r&&console[o(238)](o(240)+t[o(232)]+o(241)+e.id),n(t[o(232)],e.id,s.VIEWABLE)}}const J=Q;function Q(t,e){const n=Z();return(Q=function(t,e){return n[t-=351]})(t,e)}function Z(){const t=["40euQWkX","open","4VIFvvg","cursor","style","log","4178133VwhBOD","isClickable","341800CqIMml","38370fWltLQ","930356xGBGrt","toLowerCase","pointer","preventDefault","1271270jkZSpQ","click","4578030wuJltE","forEach","addClickEventForSlider","_blank","stopPropagation","_id","CLICK","addClickEvent","adType","addClickEventsBatch","linkUrl","54CmifYE","7166210SOSsHs","🔗 "];return(Z=function(){return t})()}!function(){const t=Q,e=Z();for(;;)try{if(721889===-parseInt(t(377))/1+parseInt(t(353))/2+-parseInt(t(375))/3*(parseInt(t(371))/4)+parseInt(t(378))/5*(-parseInt(t(366))/6)+parseInt(t(379))/7*(parseInt(t(369))/8)+parseInt(t(355))/9+parseInt(t(367))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[J(362)](t,e,n,r,o=!1,i){const a=J;e[a(365)]&&(t[a(373)].cursor=a(351),t.addEventListener(a(354),t=>{const c=a;if(t[c(352)](),t[c(359)](),r&&r(e._id,n.id,s[c(361)]),window[c(370)](e[c(365)],c(358)),o){const t=i||String(n[c(363)])[c(380)]();console[c(374)](c(368)+t+" ad clicked: "+e[c(360)]+" -> "+e.linkUrl)}}))}static addClickEventForRenderer(t,e,n,r,o=!1,i){const a=J;e.linkUrl&&(t.style[a(372)]=a(351),t.addEventListener(a(354),t=>{const c=a;t[c(352)](),t.stopPropagation();if(r()(e[c(360)],n.id,s[c(361)]),window[c(370)](e[c(365)],c(358)),o){const t=i||String(n[c(363)])[c(380)]();console[c(374)](c(368)+t+" ad clicked: "+e[c(360)]+" -> "+e[c(365)])}}))}static[J(357)](t,e,n,r,o=!1,i){this[J(362)](t,e,n,r,o,i)}static[J(376)](t){return Boolean(t[J(365)])}static[J(364)](t,e,n,r,o=!1,i){const s=J;t[s(356)]((t,a)=>{const c=s,l=e[a];l&&this[c(362)](t,l,n,r,o,i)})}}function tt(){const t=["7XABcHv","cover","width","hidden","inline-block","add","cssText","forEach","backgroundColor","remove","textContent","auto","translateX(-","1px dashed #ccc","div","803896tBHzts","359695VVANsw","every","0.9","changedTouches","overflow","0.7","imageUrl","transition","entries","querySelectorAll","1223904cwbdnV","touchstart","border","appendChild","#000","background",".adstage-dot","createMinimalDotIndicator","touches"," Ad","#999999","adstage-dot","406973sahpcO","#666666","722duqXxB","relative","length","603QbrQQe","white","Video Ad","\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 ","addTouchSupport","setAttribute","8px","string","active","20kTOPzY","style","adstage-ad adstage-","height","abs","contains","borderColor","createSimpleAdElement","body","adType","objectFit","fontSize","trackSlideViewable","200px","Text Ad","touchend","_id","100%","classList","videoUrl","includes","TEXT","transform","Banner Ad","100px","transform 0.4s ease-out","normal","#f9f9f9","opacity","3428019JtEMvd","data-adstage-ad-id","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","className","mouseleave","4236342JCAHEL","autoSlideInterval","clientX","50px","adstage-slider-wrapper","button","display","data-adstage-slot-id","14px","color","preventDefault","src","flex","createSliderContainer","video","setProperty","getBoundingClientRect","removeChild","1px solid #666","\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 ","children","createElement","click","#cccccc","transparent","addEventListener","BANNER"];return(tt=function(){return t})()}const et=nt;function nt(t,e){const n=tt();return(nt=function(t,e){return n[t-=146]})(t,e)}!function(){const t=nt,e=tt();for(;;)try{if(398612===parseInt(t(192))/1+-parseInt(t(194))/2*(parseInt(t(197))/3)+parseInt(t(169))/4+parseInt(t(170))/5+-parseInt(t(240))/6*(-parseInt(t(154))/7)+-parseInt(t(180))/8+-parseInt(t(235))/9*(parseInt(t(206))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class rt{static[et(213)](e,n){const r=et,o=document.createElement(r(168));switch(o.className=r(208)+String(e[r(215)]).toLowerCase(),o[r(202)](r(236),n[r(222)]),o[r(202)](r(247),e.id),o[r(207)][r(246)]="block",o.style[r(156)]="100%",o[r(207)][r(209)]=r(165),e[r(215)]){case t[r(153)]:if(n.imageUrl){const t=document.createElement("img");t[r(251)]=n[r(176)],t[r(207)][r(156)]="100%",t[r(207)][r(209)]=r(165),t[r(207)][r(216)]=r(155),o[r(183)](t)}else o.style[r(209)]=r(230),o[r(207)].backgroundColor="#f0f0f0",o[r(207)].border=r(167),o[r(164)]=r(229);break;case t.VIDEO:if(n[r(225)]){const t=document[r(148)](r(254));t[r(251)]=n[r(225)],t.style[r(156)]=r(223),t[r(207)].height=r(165),o[r(183)](t)}else o[r(207)][r(209)]=r(219),o[r(207)][r(162)]=r(184),o[r(207)][r(182)]=r(258),o[r(164)]=r(199),o.style[r(249)]=r(198);break;case t.TEXT:if(n[r(164)]){const t=document[r(148)](r(168));t[r(164)]=n[r(164)]||"",t[r(207)].padding=r(203),t.style[r(217)]=r(248),o[r(183)](t)}else o[r(207)][r(209)]=r(243),o[r(207)].padding=r(203),o[r(164)]=r(220);break;default:o[r(207)][r(209)]=r(230),o[r(207)][r(182)]=r(167),o[r(207)][r(162)]=r(233),o[r(164)]=e[r(215)]+r(189)}return o}static[et(253)](e,n,r,o,i=!1){const s=et,a=document[s(148)]("div");a[s(238)]=s(244);const c={position:s(195),overflow:s(157)};if(e.width&&0!==e[s(156)]){let t;t=typeof e[s(156)]===s(204)?e[s(156)][s(226)]("px")||e[s(156)][s(226)]("%")?e[s(156)]:e[s(156)]+"px":e.width+"px",c[s(156)]=t,c[s(246)]=s(158)}else c.display="inline-block";if(e.height&&0!==e[s(209)]){const t="string"==typeof e.height?e[s(209)]:e[s(209)]+"px";c[s(209)]=t}Object[s(178)](c)[s(161)](([t,e])=>{const n=s;a[n(207)][n(255)](t,e)});const l=!e[s(156)]||0===e[s(156)],d=!e[s(209)]||0===e.height;if(l||d){const t=document[s(148)](s(168));if(t[s(207)][s(160)]=s(237),!l&&e[s(156)]){let n;n="string"==typeof e[s(156)]?e.width.includes("px")||e.width[s(226)]("%")?e[s(156)]:e.width+"px":e[s(156)]+"px",t[s(207)].width=n,t[s(207)].whiteSpace=s(232)}document[s(214)][s(183)](t);let r=0,o=0;n.forEach(n=>{const i=s,a=this[i(213)](e,n);t[i(183)](a);const c=a[i(256)]();c[i(156)]>r&&(r=c[i(156)]),c[i(209)]>o&&(o=c[i(209)]),t.removeChild(a)}),l&&r>0&&(a[s(207)][s(156)]=r+"px",c[s(156)]=r+"px"),d&&o>0&&(a[s(207)][s(209)]=o+"px",c[s(209)]=o+"px"),document[s(214)][s(257)](t)}const u=[...n,n[0]],p=document[s(148)]("div");p[s(238)]="adstage-slide-container";const h={display:s(252),transition:"transform 0.4s ease-out",width:100*u[s(196)]+"%"};e[s(209)]&&0!==e[s(209)]&&(h[s(209)]="100%"),Object[s(178)](h)[s(161)](([t,e])=>{p.style.setProperty(t,e)}),u[s(161)]((t,n)=>{const r=s,a=document[r(148)](r(168));a[r(238)]="adstage-slide";const c={width:100/u[r(196)]+"%","flex-shrink":"0",display:r(252),"align-items":"center","justify-content":"center"};e[r(209)]&&0!==e.height&&(c[r(209)]=r(223)),Object[r(178)](c)[r(161)](([t,e])=>{a.style.setProperty(t,e)});const l=this[r(213)](e,t);$.addClickEventForSlider(l,t,e,o,i,String(e[r(215)]).toLowerCase()),a[r(183)](l),p.appendChild(a)});const f=n[s(171)](e=>e[s(215)]===t[s(227)])?null:this.createMinimalDotIndicator(n[s(196)]);let g=0;const m=n[s(196)],y=1e3*(r?.[s(241)]||3),v=(t,r=!1)=>{const a=s;g=t,r?p.style[a(177)]="none":p[a(207)][a(177)]=a(231),p.style[a(228)]=a(166)+100/u[a(196)]*g+"%)";const c=g===m?0:g;if(f){f[a(179)](".adstage-dot")[a(161)]((t,e)=>{const n=a,r=t;e===c?(r[n(224)][n(159)]("active"),r[n(207)][n(185)]=n(193),r[n(207)][n(212)]=n(193),r[n(207)][n(234)]="1"):(r[n(224)][n(163)](n(205)),r[n(207)].background=n(151),r.style.borderColor="#cccccc",r[n(207)].opacity=n(175))})}G[a(218)](n[c],e,c,o,i)},I=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(s(186))[s(161)]((t,e)=>{const n=s;t[n(152)](n(149),()=>v(e))})}let b=setInterval(()=>{v(g+1),I()},y);return a[s(152)]("mouseenter",()=>{clearInterval(b)}),a[s(152)](s(239),()=>{b=setInterval(()=>{v(g+1),I()},y)}),this[s(201)](p,v,()=>g,m,I),a[s(183)](p),f&&a[s(183)](f),v(0),(!e[s(156)]||0===e[s(156)])&&setTimeout(()=>{const t=s,n=p[t(147)][0];if(n){const r=n[t(147)][0];if(r){const n=r[t(256)]();a[t(207)][t(156)]=n[t(156)]+"px",(!e[t(209)]||0===e[t(209)])&&(a[t(207)][t(209)]=n.height+"px"),a[t(207)][t(174)]=t(157)}}},10),a}static[et(187)](t){const e=et,n=document[e(148)](e(168));n[e(238)]="adstage-dots",n[e(207)][e(160)]=e(200);for(let r=0;r<t;r++){const t=document.createElement(e(245));t[e(238)]=e(191),t.style[e(160)]=e(146),t.addEventListener("mouseenter",()=>{const n=e;!t.classList[n(211)](n(205))&&(t[n(207)][n(212)]=n(190),t[n(207)][n(234)]=n(172))}),t[e(152)]("mouseleave",()=>{const n=e;!t[n(224)][n(211)]("active")&&(t[n(207)][n(212)]=n(150),t.style[n(234)]=n(175))}),n[e(183)](t)}return n}static[et(201)](t,e,n,r,o){const i=et;let s=0,a=!1;t[i(152)](i(181),t=>{const e=i;s=t[e(188)][0][e(242)],a=!0}),t[i(152)]("touchmove",t=>{a&&t[i(250)]()}),t[i(152)](i(221),t=>{const c=i;if(!a)return;a=!1;const l=t[c(173)][0].clientX,d=s-l;if(Math[c(210)](d)>50){const t=n();if(d>0){e(t+1),o&&o()}else{e(t>0?t-1:r-1)}}})}}function ot(){const t=["1796688LIHcyz","1947786XgdvLt","16163480jXkNNL","has","clear","add"," in slot ","✅ New viewable recorded for ad ","39132CavlsU","isDuplicateViewable","9879iukZqq","234EzsxpD","Duplicate viewable blocked for ad ","viewableTracker","4424485QafHnj","6285559kUxafz","clearAdViewable"];return(ot=function(){return t})()}const it=st;function st(t,e){const n=ot();return(st=function(t,e){return n[t-=370]})(t,e)}!function(){const t=st,e=ot();for(;;)try{if(587070===parseInt(t(378))/1*(-parseInt(t(379))/2)+-parseInt(t(385))/3+parseInt(t(376))/4+parseInt(t(382))/5+parseInt(t(386))/6+-parseInt(t(383))/7+parseInt(t(370))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class at{static[it(377)](t,e,n=!1){const r=it,o=t+"_"+e;return at[r(381)][r(371)](o)?(n&&console.log(r(380)+t+r(374)+e),!0):(at.viewableTracker[r(373)](o),n&&console.log(r(375)+t+" in slot "+e),!1)}static[it(372)](){const t=it;at[t(381)][t(372)]()}static[it(384)](t,e){const n=t+"_"+e;at[it(381)].delete(n)}}at[it(381)]=new Set;const ct=dt;function lt(){const t=["data-adstage-type","none","getElementById","auto"," for ad ","transparent","29433DgaFYa","📏 Using default height ","invisible","parentElement","debug","): ","string","borderRadius","cssText","isDuplicateViewable","className","❌ Failed to track ",'[class*="ad"]',"containerId","4px","adstage-class","rgba(248, 249, 250, 0.5)","flex","closest",".adstage-slot"," ad...</span>","number","11321247AKSxzC","style","11px","createElement","1124072ECcarh",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"center","rgba(0, 0, 0, 0.02)","6px",'div[style*="min-height"]',"99cEMtdE","data-adstage-empty","advertisement","error","data-adstage-slot","px)","getDefaultHeight","fontSize","toLowerCase","createEventTrackingCallback","opacity"," for ","data-adstage-container","true","classList","hasAttribute","color","createPlaceholder","display","adstage-slot adstage-empty adstage-","🔄 Starting advertisement event tracking: ","1mgdPdT","monospace","querySelector","📏 Using 100% height (container: ","100%","703425gDAgHl","minHeight","justifyContent","div","filter","minimal","adType",'[class*="banner"]',"\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 ","setAttribute","backgroundColor","createEmptyContainer","1px solid rgba(0, 0, 0, 0.08)","<span>Loading ",".adstage-","1582572dOFosB","adstage-slot adstage-","innerHTML","📦 Placeholder created for ","fontFamily","width","advertisementEventTracker","1957006wZRwKs","584CvQtpE","isEmpty","block","border","appendChild"," in slot ",'[data-adstage-container="true"]',"298210qMXQyD","applyPlaceholderStyle","warn","#f9f9f9"," container: ","log","\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 ","1px dashed #ccc","#e74c3c","unknown","calculateAdSize","adstage-official","✅ New viewable recorded for ad ","alignItems","⚠️ ","subtle","getContainerHeight","height"," event"];return(lt=function(){return t})()}function dt(t,e){const n=lt();return(dt=function(t,e){return n[t-=270]})(t,e)}!function(){const t=dt,e=lt();for(;;)try{if(857681===-parseInt(t(282))/1*(-parseInt(t(309))/2)+-parseInt(t(342))/3*(-parseInt(t(310))/4)+-parseInt(t(287))/5+-parseInt(t(302))/6+-parseInt(t(364))/7+parseInt(t(368))/8+-parseInt(t(374))/9*(-parseInt(t(317))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{constructor(t,e=!1,n){const r=dt;this.adType=t,this[r(346)]=e,this[r(308)]=n||null}[ct(278)](t,e,n,r){const o=ct,i=document[o(367)](o(290));i.id=e,i[o(352)]=o(303)+String(this[o(293)]).toLowerCase(),i[o(296)](o(273),o(274)),i[o(296)](o(336),String(this.adType)),i[o(296)](o(378),e);const{width:s,height:a}=this[o(327)](t,n,r)||{width:o(286),height:this[o(380)]()};i[o(365)][o(307)]=s,i[o(365)][o(334)]=a;const c=r?.placeholderMode||n.placeholderMode||o(344);this[o(318)](i,c),t[o(314)](i),this[o(346)]&&console.log(o(305)+this[o(293)]+" slot: "+e+" ("+s+" x "+a+") - Mode: "+c)}applyPlaceholderStyle(t,e){const n=ct;switch(e){case"invisible":t[n(365)][n(297)]=n(341),t.style[n(313)]="none",t[n(365)][n(271)]="0",t[n(304)]="";break;case n(341):t[n(365)][n(297)]="transparent",t.style.border=n(337),t[n(365)][n(279)]=n(312),t.innerHTML="";break;case n(332):t[n(365)][n(297)]=n(371),t[n(365)][n(313)]="none",t[n(365)][n(349)]=n(356),t[n(365)][n(279)]=n(359),t[n(365)][n(330)]=n(370),t.style[n(289)]="center",t[n(304)]='<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>';break;case n(292):t[n(365)].backgroundColor=n(358),t.style[n(313)]=n(299),t[n(365)][n(349)]=n(372),t.style[n(279)]="flex",t[n(365)].alignItems="center",t[n(365)][n(289)]=n(370),t[n(304)]=n(369);break;case n(346):t[n(365)][n(313)]="2px dashed #e74c3c",t[n(365)][n(279)]="flex",t[n(365)][n(330)]=n(370),t[n(365)].justifyContent=n(370),t[n(365)][n(297)]="rgba(231, 76, 60, 0.1)",t[n(365)][n(277)]=n(325),t[n(365)][n(306)]=n(283),t[n(365)][n(381)]=n(366),t[n(304)]=n(300)+this[n(293)]+" ad...</span>";break;default:t.style[n(313)]=n(324),t[n(365)].display="flex",t[n(365)][n(330)]=n(370),t[n(365)][n(289)]=n(370),t[n(365)].backgroundColor=n(320),t[n(365)][n(277)]="#666",t[n(304)]=n(300)+this[n(293)]+n(362)}}[ct(327)](t,e,n){const r=ct,o=e.width,i=e[r(334)];let s,a;if(s="number"==typeof o?o+"px":typeof o===r(348)?o:r(286),typeof i===r(363))a=i+"px";else if(typeof i===r(348)&&i!==r(286)&&i!==r(339))a=i;else{const e=this[r(333)](t);e>0?(a="100%",(n?.[r(346)]||this[r(346)])&&console[r(322)](r(285)+e+r(379))):(a=this[r(380)](),(n?.[r(346)]||this[r(346)])&&console[r(322)](r(343)+a+r(272)+this[r(293)]))}return{width:s,height:a}}getContainerHeight(t){const e=ct,n=window.getComputedStyle(t),r=parseFloat(n[e(334)]);if(!r||0===r){const r=parseFloat(n[e(288)]);if(r>0)return r;if(t.style.height&&t[e(365)][e(334)]!==e(339)){const n=parseFloat(t[e(365)].height);if(n>0)return n}const o=t.getAttribute(e(334));if(o){const t=parseFloat(o);if(t>0)return t}}return r||0}[ct(270)](){return async(t,e,n)=>{const r=dt;if(n===s.VIEWABLE){if(at[r(351)](t,e,this[r(346)]))return void(this[r(346)]&&console.log("🚫 Duplicate viewable blocked for ad "+t+r(315)+e));this[r(346)]&&console.log(r(329)+t+" in slot "+e)}if(this.advertisementEventTracker)try{this.debug&&console.log(r(281)+n+r(340)+t+r(315)+e),await this[r(308)].trackAdvertisementEvent(t,e,n),this[r(346)]&&console.log("📊 Advertisement event tracked: "+n+r(340)+t+r(315)+e)}catch(e){this.debug&&console[r(377)](r(353)+n+" event for ad "+t+":",e)}else this.debug&&console[r(319)]("⚠️ AdvertisementEventTracker not available for "+n+r(335))}}renderFallback(t){const e=ct,n=document[e(338)](t.id);if(n){const r=[...[n[e(284)]('[data-adstage-container="true"]'),n[e(360)](e(316)),n][e(291)](t=>t&&t[e(276)](e(273))),...[n[e(360)](e(361)),n[e(360)](e(301)+String(this[e(293)])[e(382)]()),n[e(360)](e(354)),n[e(360)](e(294)),n.closest('[class*="container"]'),n.closest('div[style*="height"]'),n[e(360)](e(373)),n[e(345)]][e(291)](Boolean)][0];if(r){let n=e(326);n=r[e(276)]("data-adstage-container")?e(328):r[e(275)].contains("adstage-slot")?e(357):"generic",r[e(365)].cssText+=e(295),r[e(304)]="",r[e(296)](e(375),e(274)),this.debug&&console[e(319)](e(331)+this[e(293)]+" container collapsed ("+n+e(347)+t.id,r)}else this[e(298)](t)}t[e(376)]=void 0,t[e(311)]=!0}[ct(298)](t){const e=ct,n=document[e(338)](t[e(355)]);if(n){n[e(304)]="";const r=document[e(367)]("div");r.id=t.id,r[e(352)]=e(280)+String(this[e(293)])[e(382)](),r[e(296)](e(273),e(274)),r[e(296)](e(375),e(274)),r[e(296)]("data-adstage-slot",t.id),r[e(365)][e(350)]=e(323),n[e(314)](r),this[e(346)]&&console[e(319)]("⚠️ Created empty "+this[e(293)]+e(321)+t.id)}}[ct(322)](t,...e){const n=ct;this[n(346)]&&console.log("["+this[n(293)]+"] "+t,...e)}}const pt=ht;function ht(t,e){const n=ft();return(ht=function(t,e){return n[t-=184]})(t,e)}function ft(){const t=["16:9"," (avg: ","1376jPUmay","calculateOptimalContainerSize","Banner","toString","2705498NBYzlD","src","#f0f0f0","100%","optimizedHeight","round","value","dominant"," ads (optimized: ","calculateOptimalHeight","Image URL is not provided","objectPosition","🎨 Banner image style applied: objectFit=","forEach","map","📸 Banner image dimensions: ","style","imageUrl","34650ryEVNy","max","Banner Advertisement","naturalWidth","4:3","objectFit","name","aspectRatio","2191763GUJCkm","toFixed","fulfilled","onerror","div","addClickEventForRenderer","Container not found: ","status","display","block","22257YJpyPD","renderOptimizedBannerImage","default","get","🔧 Banner container optimized for ","abs","getBoundingClientRect","average","📦 Banner container dimensions: ","681288LDxHYj","250px","values","innerHTML","from","parentElement","naturalHeight","filter","count","<div>","className","common","containerId","ratio","Failed to calculate optimal banner size, using defaults:","30bSiSQC","reduce","createElement","calculateAdSize","Banner Ad","optimizeContainerForBannerAds","some","getDefaultHeight","onload","title","set","appendChild","applyOptimizedImageStyle","log","Failed to load image: ","📐 Optimal banner container calculated: ","1:1","</div>","allSettled","cover","center","slideInterval","height","config","adstage-ad adstage-banner-ad","841939Cribem","length","Banner container optimization failed, using default size:"," (strategy: ","alt","37230LFyfTN","createSliderContainer","renderMultipleAds","loadImageDimensions","createEventTrackingCallback","8px","img","contain","debug","getElementById","selectOptimalSizeStrategy","warn",", ratio=","width","❌ Failed to load optimized banner image:","BANNER"," with "];return(ft=function(){return t})()}!function(){const t=ht,e=ft();for(;;)try{if(799622===-parseInt(t(279))/1+parseInt(t(194))/2+parseInt(t(212))/3+parseInt(t(239))/4*(parseInt(t(254))/5)+-parseInt(t(284))/6+-parseInt(t(220))/7+-parseInt(t(190))/8*(parseInt(t(230))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt extends ut{constructor(e=!1,n){super(t[ht(186)],e,n)}[pt(261)](){return pt(240)}async renderAdElement(t,e){const n=pt,r=document[n(293)](t[n(251)]);if(!r)return;const o=document[n(256)](n(224));o[n(249)]=n(278);const i=t.optimizedHeight,s=r[n(244)]||r;if(i)o[n(210)][n(184)]=n(197),o.style[n(276)]=String(i);else{const e=t[n(277)],r={width:e?.width,height:e?.[n(276)]},{width:i,height:a}=this[n(257)](s,r,{debug:this[n(292)]});o.style[n(184)]=i,o[n(210)][n(276)]=a}e.imageUrl?await this[n(231)](o,e,t):o.innerHTML=n(248)+(e[n(263)]||n(258))+n(271),$[n(225)](o,e,t,()=>this[n(288)](),this[n(292)],n(192)),r.innerHTML="",r[n(265)](o)}async[pt(286)](t,e){const n=pt,r=document.getElementById(t.containerId);if(!r)throw new Error(n(226)+t[n(251)]);await this.optimizeContainerForBannerAds(t,e);const o=this[n(288)](),i={autoSlideInterval:(t.config?.[n(275)]||5e3)/1e3,...t.config,optimizedHeight:t[n(198)],aspectRatio:t[n(219)]},s=rt[n(285)](t,e,i,o,this[n(292)]);s&&(r[n(242)]="",r[n(265)](s),this.debug&&console[n(267)]("🎠 Banner carousel created for slot: "+t.id+n(187)+e[n(280)]+n(202)+(t[n(198)]||n(232))+")"))}async[pt(191)](t,e){const n=pt;if(!t[n(280)])return{width:n(197),height:this.getDefaultHeight(),aspectRatio:16/9};try{const r=(await Promise[n(272)](t[n(246)](t=>t.imageUrl)[n(208)](t=>this[n(287)](t[n(211)]))))[n(246)](t=>t[n(227)]===n(222)).map(t=>t[n(200)]);if(0===r[n(280)])return{width:n(197),height:this[n(261)](),aspectRatio:16/9};const o=this[n(294)](r),i=this[n(203)](r,e,o);return this[n(292)]&&console.log(n(269)+e+"x"+i+n(282)+o+")"),{width:n(197),height:i+"px",aspectRatio:e/i}}catch(t){return console[n(295)](n(253),t),{width:"100%",height:this[n(261)](),aspectRatio:16/9}}}async[pt(259)](t,e){const n=pt;try{const r=document[n(293)](t[n(251)]),o=document[n(293)](t.id);if(!r||!o)return;const i=r.getBoundingClientRect()[n(184)]||300,s=await this[n(191)](e,i);o[n(210)][n(276)]=s[n(276)],t[n(198)]=s[n(276)],t[n(219)]=s.aspectRatio,this[n(292)]&&console[n(267)](n(234)+e[n(280)]+" ads: "+s[n(276)])}catch(t){console.warn(n(281),t)}}[pt(294)](t){const e=pt,n=t[e(208)](t=>t[e(184)]/t.height),r=new Map;n[e(207)](t=>{const n=e,o=(Math[n(199)](10*t)/10)[n(193)]();r[n(264)](o,(r.get(o)||0)+1)});const o=Math[e(213)](...r[e(241)]()),i=t[e(280)];if(o/i>=.7)return e(201);const s=[16/9,4/3,1,1.5],a=n[e(246)](t=>s[e(260)](n=>Math[e(235)](t-n)<.1))[e(280)];return e(a/i>=.5?250:237)}calculateOptimalHeight(t,e,n){const r=pt,o=t[r(208)](t=>t[r(184)]/t[r(276)]);switch(n){case r(201):{const t=new Map;o.forEach(e=>{const n=r,o=Math[n(199)](10*e)/10,i=o[n(193)](),s=t[n(233)](i);s?s.count++:t[n(264)](i,{ratio:o,count:1})});const n=Array[r(243)](t.values())[r(255)]((t,e)=>e.count>t[r(247)]?e:t);return Math.round(e/n[r(252)])}case r(250):{const t=[{ratio:16/9,name:r(188)},{ratio:4/3,name:r(216)},{ratio:1,name:r(270)},{ratio:1.5,name:"3:2"}],n=o[r(255)]((t,e)=>t+e,0)/o[r(280)],i=t[r(255)]((t,e)=>Math.abs(e.ratio-n)<Math[r(235)](t[r(252)]-n)?e:t);return this.debug&&console[r(267)]("📊 Using standard ratio: "+i[r(218)]+r(189)+n.toFixed(2)+")"),Math[r(199)](e/i[r(252)])}default:{const t=o[r(255)]((t,e)=>t+e,0)/o.length;return Math[r(199)](e/t)}}}[pt(287)](t){return new Promise((e,n)=>{const r=ht,o=new Image;o[r(262)]=()=>{const t=r;e({width:o[t(215)],height:o[t(245)]})},o[r(223)]=()=>{n(new Error(r(268)+t))},o[r(195)]=t})}[pt(266)](t,e,n){const r=pt,o=e/n;Math.abs(o-1)<.1?(t[r(210)][r(217)]=r(273),t[r(210)][r(205)]=r(274)):o>1.3?(t[r(210)][r(217)]=r(291),t[r(210)].objectPosition=r(274),t[r(210)].backgroundColor=r(196)):o<.7?(t[r(210)][r(217)]="cover",t[r(210)][r(205)]=r(274)):(t.style[r(217)]=r(273),t[r(210)][r(205)]="center"),this.debug&&console[r(267)](r(206)+t[r(210)][r(217)]+r(296)+o[r(221)](2))}async renderOptimizedBannerImage(t,e,n){const r=pt,o=document[r(256)](r(290));o[r(210)][r(184)]=r(197),o.style.height=r(197),o[r(210)][r(228)]=r(229),o.style.borderRadius=r(289),o[r(283)]=e.title||r(214),t[r(242)]='<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>';try{if(!e[r(211)])throw new Error(r(204));const i=await this[r(287)](e[r(211)]),s=t[r(236)](),a=s.width,c=s[r(276)];this[r(292)]&&(console[r(267)](r(209)+i.width+"x"+i[r(276)]),console[r(267)](r(238)+a+"x"+c));const l=i[r(184)]/i.height,d=a/c;return this[r(266)](o,l,d),o.src=e[r(211)],t.innerHTML="",t.appendChild(o),$[r(225)](o,e,n,()=>this[r(288)](),this[r(292)],"Banner"),this[r(292)]&&console.log("✅ Optimized banner image rendered for ad: "+e._id),o}catch(i){return console.error(r(185),i),e[r(211)]&&(o[r(195)]=e.imageUrl,o.style[r(217)]="cover",o.style[r(205)]=r(274),t[r(242)]="",t[r(265)](o),$.addClickEventForRenderer(o,e,n,()=>this[r(288)](),this.debug,r(192))),o}}}const mt=vt;!function(){const t=vt,e=It();for(;;)try{if(768964===parseInt(t(211))/1+-parseInt(t(215))/2*(parseInt(t(209))/3)+-parseInt(t(217))/4*(-parseInt(t(212))/5)+-parseInt(t(220))/6+parseInt(t(210))/7*(-parseInt(t(223))/8)+-parseInt(t(219))/9*(-parseInt(t(222))/10)+parseInt(t(214))/11*(parseInt(t(213))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class yt{static[mt(216)](t=!1){return mt(218)}static setTextAdContent(t,e){const n=mt,r=e.textContent||e[n(221)]||"";t[n(224)]=r}}function vt(t,e){const n=It();return(vt=function(t,e){return n[t-=209]})(t,e)}function It(){const t=["textContent","36171iXqYdy","5296277UaFREh","378192cOiIhU","5aBwaAN","80484uQYwcS","3223JlXkez","94GXEfRp","createTextAdStyles","1820636ttPkpY","\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 ","3411DeBhrK","8542170FUMbuS","title","18930ZUWyJO","8VAybTg"];return(It=function(){return t})()}const bt=kt;function wt(){const t=["adstage-fade-slider-wrapper","mouseenter","appendChild","addTouchSupport","setProperty","includes","touchstart","getBoundingClientRect","cssText","whiteSpace","relative","translateY(-20px)","touches","changedTouches","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","35CDwZzi",";\n width: 100%;\n ","\n position: ","420612fMmSXg","normal","translateY(0)","data-adstage-ad-id","71622afzYAC","touchend","removeChild","createTextAdStyles","clientY","data-adstage-slot-id","preventDefault","top","adType","body","2570sagUwF","3765835yxftHV","clientX","forEach","height","30195BhoSYy","absolute","6LrQTET","touchmove","76BGMKob","position","div","minHeight","left","height: auto; min-height: fit-content;",";\n transform: translateY(","fit-content","toLowerCase","length",";\n ","entries",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","createElement","transform","autoSlideInterval",";\n left: ","1190eAWkLI","addEventListener","_id","string","zIndex","2106laoMLn","createSimpleAdElement","14880195zlRMkj","adstage-fade-slide","createTextTransitionContainer","adstage-ad adstage-","mouseleave","abs","className","height: 100%;","style","addClickEventForSlider","auto","64353iHUCZZ","adstage-fade-slide-container","trackSlideViewable","45256XavOLd","\n ","opacity","width","setAttribute"];return(wt=function(){return t})()}function kt(t,e){const n=wt();return(kt=function(t,e){return n[t-=315]})(t,e)}!function(){const t=kt,e=wt();for(;;)try{if(902609===-parseInt(t(384))/1*(parseInt(t(391))/2)+-parseInt(t(361))/3*(-parseInt(t(326))/4)+-parseInt(t(318))/5*(parseInt(t(324))/6)+-parseInt(t(343))/7*(parseInt(t(364))/8)+parseInt(t(322))/9*(-parseInt(t(317))/10)+-parseInt(t(350))/11+-parseInt(t(387))/12*(-parseInt(t(348))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class St{static[bt(349)](t,e){const n=bt,r=document[n(339)]("div");return r[n(356)]=n(353)+String(t[n(315)])[n(334)](),r[n(368)](n(390),e[n(345)]),r[n(368)](n(396),t.id),r[n(358)][n(377)]=yt[n(394)](!0),yt.setTextAdContent(r,e),r}static[bt(352)](t,e,n,r,o=!1){const i=bt,s=t.height&&0!==t[i(321)]&&"auto"!==t[i(321)],a=document[i(339)](i(328));a[i(356)]=i(369);const c={position:i(379),overflow:"hidden",display:"block"};if(!s&&(c[i(321)]=i(360),c[i(329)]=i(333)),t[i(367)]&&0!==t[i(367)]){let e;e="string"==typeof t.width&&(t[i(367)][i(374)]("px")||t[i(367)][i(374)]("%"))?t.width:t[i(367)]+"px",c[i(367)]=e}if(t.height&&0!==t[i(321)]&&"auto"!==t[i(321)]&&s){let e;e="string"==typeof t[i(321)]&&(t.height[i(374)]("px")||t.height[i(374)]("%"))?t[i(321)]:t[i(321)]+"px",c[i(321)]=e}Object[i(337)](c)[i(320)](([t,e])=>{const n=i;a[n(358)][n(373)](t,e)});const l=document.createElement("div");l[i(356)]=i(362),l[i(358)][i(377)]="\n position: relative;\n width: 100%;\n "+i(s?357:331)+i(365);let d=null;const u=!t[i(367)]||0===t[i(367)],p=!t[i(321)]||0===t[i(321)]||void 0===t[i(321)]||t[i(321)]===i(360);if(u||p&&s){if(d=document[i(339)](i(328)),d[i(358)][i(377)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!u&&t[i(367)]){let e;e=typeof t[i(367)]===i(346)&&(t[i(367)].includes("px")||t.width.includes("%"))?t[i(367)]:t[i(367)]+"px",d[i(358)][i(367)]=e,d[i(358)][i(378)]=i(388)}document.body[i(371)](d);let n=0,r=0;e[i(320)](e=>{const o=i,s=this.createSimpleAdElement(t,e);d[o(371)](s);const a=s[o(376)]();a[o(367)]>n&&(n=a[o(367)]),a.height>r&&(r=a[o(321)]),d[o(393)](s)}),u&&n>0&&(a[i(358)][i(367)]=n+"px"),p&&r>0&&s&&(a[i(358)][i(321)]=r+"px"),document[i(316)][i(393)](d)}const h=[];e[i(320)]((e,n)=>{const a=i,c=document[a(339)]("div");c[a(356)]=a(351);const d=0===n,u=s?a(323):d?"relative":a(323);c[a(358)][a(377)]=a(386)+u+";\n top: "+(u===a(323)?"0":a(360))+a(342)+(u===a(323)?"0":a(360))+a(385)+(s?a(357):"height: auto;")+a(383)+(0===n?"1":"0")+a(332)+(0===n?"0":"20px")+a(338)+(0===n?"2":"1")+a(336);const p=this[a(349)](t,e);$[a(359)](p,e,t,r,o,"Text"),c[a(371)](p),l[a(371)](c),h.push(c)});let f=0;const g=e[i(335)],m=1e3*(n?.[i(341)]||4),y=n=>{const a=i;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!s&&(c[a(358)].position===a(379)&&(c[a(358)].position="absolute",c[a(358)][a(398)]="0",c[a(358)][a(330)]="0"),l[a(358)][a(327)]=a(379),l[a(358)][a(398)]=a(360),l.style[a(330)]=a(360)),c.style[a(366)]="0",c.style[a(340)]=a(380),c[a(358)][a(347)]="1",l[a(358)][a(366)]="1",l[a(358)].transform=a(389),l[a(358)][a(347)]="2",h.forEach((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(358)][r(366)]="0",t[r(358)][r(340)]="translateY(20px)",t[r(358)][r(347)]="1",!s&&"relative"===t[r(358)].position&&(t[r(358)][r(327)]=r(323),t.style[r(398)]="0",t[r(358)][r(330)]="0"))}),f=n,G[a(363)](e[f],t,f,r,o)};let v=setInterval(()=>{y(f+1)},m);return a[i(344)](i(370),()=>{clearInterval(v)}),a[i(344)](i(354),()=>{v=setInterval(()=>{y(f+1)},m)}),St[i(372)](a,y,()=>f,g),a[i(371)](l),a}static[bt(372)](t,e,n,r){const o=bt;let i=0,s=0,a=!1;t.addEventListener(o(375),t=>{const e=o;i=t[e(381)][0][e(319)],s=t.touches[0][e(395)],a=!0}),t.addEventListener(o(325),t=>{a&&t[o(397)]()}),t[o(344)](o(392),t=>{const r=o;if(!a)return;a=!1;const c=t[r(382)][0].clientX,l=t[r(382)][0][r(395)],d=i-c,u=s-l;if(Math[r(355)](d)>Math[r(355)](u)&&Math[r(355)](d)>50){const t=n();e(d>0?t+1:t-1)}})}}function Et(){const t=["3246085OCQcWQ","adstage-text-content","config","Container not found: ","TEXT","createElement","div","30tQqbWj","1017GStZSK","number","103078nRFBAk","-webkit-box","style","containerId","innerHTML","60px","overflow","aspectRatio","_id","497273FSizib","className","createEventTrackingCallback","maxLines","✨ Single text ad rendered: ","parentElement","log","renderMultipleAds"," with ","debug"," ads","appendChild","createTextAdStyles","3179673lHHwQU","height","8073320XntUUK","12IdxHtZ","6407533anzcUD","length","webkitLineClamp","Text","hidden","createTextTransitionContainer","adstage-ad adstage-text-ad","getElementById","renderAdElement","14UgZHBx","calculateAdSize","width","1744vePTMp","✨ Text transition created for slot: ","optimizedHeight"];return(Et=function(){return t})()}const xt=At;function At(t,e){const n=Et();return(At=function(t,e){return n[t-=131]})(t,e)}!function(){const t=At,e=Et();for(;;)try{if(569004===parseInt(t(135))/1*(parseInt(t(170))/2)+parseInt(t(133))/3*(parseInt(t(173))/4)+parseInt(t(176))/5+parseInt(t(160))/6*(parseInt(t(144))/7)+parseInt(t(159))/8+-parseInt(t(157))/9+-parseInt(t(132))/10*(parseInt(t(161))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ct extends ut{constructor(e=!1,n){super(t[At(180)],e,n)}getDefaultHeight(){return At(140)}async[xt(169)](t,e){const n=xt,r=document[n(168)](t.containerId);if(!r)return;const o=document[n(181)](n(131));o.className=n(167);const i=t[n(175)],s=r[n(149)]||r;if(i)o[n(137)][n(172)]="100%",o.style[n(158)]=String(i);else{const e=t.config,r={width:e?.[n(172)],height:e?.[n(158)]},{width:i,height:a}=this[n(171)](s,r,{debug:this[n(153)]});o[n(137)].width=i,o[n(137)][n(158)]=a}const a=document[n(181)]("div");a[n(145)]=n(177),a[n(137)].cssText=yt[n(156)](!1),yt.setTextAdContent(a,e);const c=t[n(178)]?.[n(147)];c&&typeof c===n(134)&&(a[n(137)].display=n(136),a[n(137)][n(163)]=String(c),a[n(137)].webkitBoxOrient="vertical",a[n(137)][n(141)]=n(165)),o[n(155)](a),$.addClickEventForRenderer(o,e,t,()=>this[n(146)](),this[n(153)],n(164)),r[n(139)]="",r.appendChild(o),this[n(153)]&&console[n(150)](n(148)+e[n(143)])}async[xt(151)](t,e){const n=xt,r=document.getElementById(t.containerId);if(!r)throw new Error(n(179)+t[n(138)]);const o=this[n(146)](),i={autoSlideInterval:(t[n(178)]?.slideInterval||5e3)/1e3,...t[n(178)],optimizedHeight:t.optimizedHeight,aspectRatio:t[n(142)]},s=St[n(166)](t,e,i,o,this[n(153)]);s&&(r.innerHTML="",r[n(155)](s),this[n(153)]&&console[n(150)](n(174)+t.id+n(152)+e[n(162)]+n(154)))}}const Tt=Rt;function _t(){const t=["adstage-video-default-controls","display","\n pointer-events: none;\n ","1914539heBkif","getDefaultHeight","log","🎬 Video element created for ad: ","Video fallback","🎬 Video controls setting:","rgba(0, 0, 0, 0.7)","🎬 Video config received:","customControls","adstage-video-container","relative","renderVideoElementDirect","40hIjFpT","rgba(0, 0, 0, 0.9)","none","cssText","🎬 Auto-play was prevented:","getElementById","debug","hideControls","🎬 Single video ad rendered: ","Video load failed:","autoplay","\n video::-webkit-media-controls-play-button {\n display: "," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","muted","innerHTML","className","disabled (default)","9wUFSmJ","🔊 Video mute toggled: ","1297540kgFhzQ","addClickEventForRenderer"," !important;\n }\n ","enabled","hidePlayButton","Click to unmute","renderAdElement","100%","hideProgressBar","🎬 Video metadata loaded, attempting autoplay...","canplay","img","mouseleave","button","setAttribute"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","height","length"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","Video thumbnail","_id","601531xxgddU","controls","🎬 Trying muted autoplay fallback...","scale(1)","551748JZYqdm","width","alt","playsinline","click","🎬 Autoplay completely failed:","head","Video","🎬 Video can play, attempting autoplay...","position","title","play","contain"," (autoplay: ","3hXPmjp","2042721Ltbbbi","🎬 Video data loaded, attempting autoplay...","div","createElement","hideRemainingTime","style",", loop: ","\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 "," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","addEventListener","\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 ","\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 ","10PFexdG","🎬 User explicitly enabled controls, overriding default","src","containerId","objectFit","createEventTrackingCallback","loadedmetadata","config","mouseenter","transform","🎬 Final video settings:","background","50962VWzHnT","Click to mute","6714VpMUia","error","🎬 Initial autoplay attempt after timeout...","hideCurrentTime","loop","VIEWABLE","Container not found: ","catch","appendChild","preload","warn","hideMuteButton","360px","hideFullscreenButton","⚠️ No video advertisements available for slot: ","imageUrl","block","videoUrl"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","unmuted"];return(_t=function(){return t})()}function Rt(t,e){const n=_t();return(Rt=function(t,e){return n[t-=362]})(t,e)}!function(){const t=Rt,e=_t();for(;;)try{if(251148===-parseInt(t(469))/1*(-parseInt(t(415))/2)+parseInt(t(390))/3*(parseInt(t(376))/4)+parseInt(t(471))/5+parseInt(t(417))/6+parseInt(t(372))/7*(-parseInt(t(452))/8)+-parseInt(t(391))/9*(-parseInt(t(403))/10)+-parseInt(t(440))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Dt extends ut{constructor(e=!1,n){super(t.VIDEO,e,n)}[Tt(441)](){return Tt(429)}async[Tt(477)](t,e){const n=Tt,r=document[n(457)](t.containerId);if(!r)return;const o=document[n(394)](n(393));o.className=n(449),o[n(396)][n(455)]=n(402),this[n(451)](o,e,t),r[n(466)]="",r.appendChild(o),this[n(458)]&&console.log(n(460)+e[n(371)])}async renderMultipleAds(t,e){const n=Tt,r=document[n(457)](t[n(406)]);if(!r)throw new Error(n(423)+t[n(406)]);if(e[n(368)]>0){const o=e[0],i=document[n(394)](n(393));i[n(467)]=n(449),i[n(396)][n(455)]=n(398),this[n(451)](i,o,t),r[n(466)]="",r.appendChild(i);const a=this[n(408)]();setTimeout(()=>{const e=n;a(o[e(371)],t.id,s[e(422)])},100),this.debug&&console[n(442)]("🎬 Single video rendered for VIDEO slot: "+t.id+" ("+o[n(371)]+")")}else this[n(458)]&&console[n(427)](n(431)+t.id)}renderVideoElementDirect(t,e,n){const r=Tt;t.style[r(385)]=r(450);const o=document[r(394)]("video");o[r(396)][r(377)]=r(478),o[r(396)][r(367)]=r(478),o[r(396)][r(407)]=r(388),o[r(426)]="metadata";const i=n[r(410)];if(this[r(458)]&&console[r(442)](r(447),i),o[r(373)]=!1,o.autoplay=!1!==i?.autoplay,o[r(465)]=!0,o[r(421)]=!1!==i?.[r(421)],this[r(458)]&&console[r(442)](r(413),{autoplay:o[r(462)],muted:o[r(465)],loop:o[r(421)],controls:o.controls}),!1!==i?.[r(379)]&&o[r(365)](r(379),""),!0===i?.controls&&(o.controls=!0,this.debug&&console[r(442)](r(404))),i?.hideControls)o[r(373)]=!1,o[r(396)][r(455)]+=r(439);else if(i?.customControls){if(o[r(373)]){const t=document[r(394)](r(396));t.textContent=r(463)+(i.customControls[r(475)]?r(454):r(433))+r(435)+(i[r(448)][r(479)]?r(454):r(433))+r(399)+(i[r(448)][r(420)]?r(454):r(433))+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(i[r(448)][r(395)]?r(454):r(433))+r(369)+(i[r(448)].hideVolumeSlider?r(454):r(433))+r(366)+(i.customControls[r(428)]?r(454):r(433))+r(464)+(i[r(448)][r(430)]?r(454):r(433))+r(473),document[r(382)][r(425)](t)}}else if(o[r(373)]){const t=document[r(394)]("style");t.id=r(437),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[r(457)](r(437))&&document[r(382)][r(425)](t)}this.debug&&console.log(r(445),o[r(373)]?r(474):r(468));const s=document[r(394)](r(364));s[r(467)]="adstage-video-mute-button",s[r(396)][r(455)]=r(401),i?.[r(459)]&&(s[r(396)][r(438)]="none");const a=()=>{const t=r;s[t(466)]=o.muted?'\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 ':'\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 ',s[t(386)]=o[t(465)]?t(476):t(416)};if(a(),s[r(400)](r(380),t=>{const e=r;t.stopPropagation(),o[e(465)]=!o[e(465)],a(),this[e(458)]&&console[e(442)](e(470)+(o[e(465)]?e(465):e(436)))}),s[r(400)](r(411),()=>{const t=r;s[t(396)][t(414)]=t(453),s[t(396)].transform="scale(1.1)"}),s[r(400)](r(363),()=>{const t=r;s[t(396)][t(414)]=t(446),s[t(396)][t(412)]=t(375)}),e[r(434)]){o[r(405)]=e[r(434)];const t=()=>{const t=r;o[t(462)]&&o.muted&&o.paused&&o[t(387)]()[t(424)](e=>{const n=t;this[n(458)]&&(console[n(427)](n(456),e),console[n(427)](n(374))),o[n(465)]=!0,o[n(387)]()[n(424)](t=>{const e=n;this[e(458)]&&console[e(418)](e(381),t)})})};o[r(400)](r(409),()=>{const e=r;this[e(458)]&&console.log(e(480)),t()}),o[r(400)](r(481),()=>{const e=r;this.debug&&console.log(e(384)),t()}),o[r(400)]("loadeddata",()=>{const e=r;this[e(458)]&&console[e(442)](e(392)),t()}),setTimeout(()=>{const e=r;this[e(458)]&&console[e(442)](e(419)),t()},100)}else if(e[r(432)]){const n=document[r(394)]("img");return n[r(405)]=e[r(432)],n[r(396)].width=r(478),n.style[r(367)]=r(478),n[r(396)][r(407)]=r(388),n[r(378)]=e.title||r(370),void t[r(425)](n)}$[r(472)](o,e,n,()=>this[r(408)](),this[r(458)],r(383)),o[r(400)]("error",o=>{const i=r;if(console.error(i(461),o),e[i(432)]){const r=document.createElement(i(362));r[i(405)]=e[i(432)],r[i(396)][i(377)]=i(478),r.style[i(367)]=i(478),r.style[i(407)]=i(388),r[i(378)]=e[i(386)]||i(370),$[i(472)](r,e,n,()=>this[i(408)](),this[i(458)],i(444)),t[i(466)]="",t[i(425)](r)}}),t.appendChild(o),t.appendChild(s),this[r(458)]&&console[r(442)](r(443)+e[r(371)]+r(389)+o[r(462)]+", muted: "+o[r(465)]+r(397)+o.loop+")")}}function Pt(){const t=["40565PVHZdl","backgroundColor","Native click tracked for ad: ","click","textContent","debug","1882584fcFoqq","length","200px","imageUrl","log","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","mouseenter","_blank","cssText","advertisementEventTracker","div","style","270sJLAOz","Learn More","1356453JtIkIJ","#3b82f6","renderAdElement","747nwhXGj","open","title","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","innerHTML","Native Advertisement","linkUrl","39384bDvVmA","createElement","🏠 Native ad rendered (first of ","NATIVE","containerId","): ","4BGcXMk","\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 ","renderMultipleAds","\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 ","_id","className","addEventListener","🏠 Single native ad rendered: ","appendChild","button","getElementById","21652zWjjBs","alt","img","72KxYRAF","warn","1786195wnuoCB","90651fnvKsA"];return(Pt=function(){return t})()}const Ut=Ot;function Ot(t,e){const n=Pt();return(Ot=function(t,e){return n[t-=247]})(t,e)}!function(){const t=Ot,e=Pt();for(;;)try{if(591511===parseInt(t(275))/1+-parseInt(t(268))/2*(-parseInt(t(271))/3)+parseInt(t(257))/4*(parseInt(t(273))/5)+parseInt(t(281))/6+-parseInt(t(295))/7+-parseInt(t(251))/8*(parseInt(t(298))/9)+parseInt(t(293))/10*(parseInt(t(274))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt extends ut{constructor(e=!1,n){super(t[Ot(254)],e,n)}getDefaultHeight(){return Ot(283)}async[Ut(297)](t,e){const n=Ut,r=document[n(267)](t[n(255)]);if(!r)return;const o=document[n(252)](n(291));if(o[n(262)]="adstage-ad adstage-native-ad",o[n(292)][n(289)]=n(260),e[n(300)]){const t=document.createElement("h3");t[n(279)]=e.title,t[n(292)].cssText="\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ",o[n(265)](t)}if(e[n(279)]){const t=document[n(252)]("p");t[n(279)]=e[n(279)],t[n(292)][n(289)]="\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ",o[n(265)](t)}if(e[n(284)]){const t=document[n(252)]("div");t[n(292)][n(289)]=n(286);const r=document[n(252)](n(270));r.src=e[n(284)],r[n(269)]=e[n(300)]||n(249),r.style[n(289)]=n(247),t[n(265)](r),o.appendChild(t)}if(e[n(250)]){const t=document[n(252)](n(266));t.textContent=n(294),t.style.cssText=n(258),t[n(263)](n(278),()=>{const t=n;this[t(290)]&&console[t(285)](t(277)+e._id),window[t(299)](e[t(250)],t(288))}),t[n(263)](n(287),()=>{const e=n;t[e(292)][e(276)]="#2563eb"}),t[n(263)]("mouseleave",()=>{const e=n;t[e(292)].backgroundColor=e(296)}),o[n(265)](t)}r[n(248)]="",r[n(265)](o),this[n(280)]&&console.log(n(264)+e[n(261)])}async[Ut(259)](t,e){const n=Ut;e.length>0?(await this[n(297)](t,e[0]),this[n(280)]&&console[n(285)](n(253)+e[n(282)]+n(256)+t.id)):this.debug&&console[n(272)]("⚠️ No native advertisements available for slot: "+t.id)}}const Bt=Mt;function zt(){const t=["renderAdElement","🖼️ Interstitial ad rendered: ","animation","className","cssText","advertisementEventTracker","removeChild","19125WmhGcJ","450RsSepi","src","adstage-interstitial-styles","🖼️ Interstitial ad rendered (first of ","132630nSbwVU","4908FFQDVQ","addEventListener","alt","log","7OpkSxl","638218VmiKpz","button","warn","423hoMNEm","closeInterstitial","INTERSTITIAL","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","#6b7280","backgroundColor","_blank","open","createElement","adstage-interstitial-overlay","#374151","Interstitial click tracked for ad: ","400px","2877954xDMjjJ","fadeOut 0.3s ease-out forwards","_id","\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 ","Get Started","mouseenter","4DvPvdC","imageUrl","color","containerId","mouseleave","title","removeEventListener","adstage-interstitial-content","renderMultipleAds","\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 ","style","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","click","img","689QSypQo","2130faOuOq","10500haRomh","14465ZFfUzz","parentNode","keydown","debug","head","linkUrl","innerHTML","length","\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 ","textContent","2506056moHaHl","appendChild"];return(zt=function(){return t})()}function Mt(t,e){const n=zt();return(Mt=function(t,e){return n[t-=479]})(t,e)}!function(){const t=Mt,e=zt();for(;;)try{if(699247===parseInt(t(487))/1*(-parseInt(t(482))/2)+-parseInt(t(508))/3*(-parseInt(t(514))/4)+parseInt(t(481))/5*(-parseInt(t(529))/6)+parseInt(t(491))/7*(parseInt(t(541))/8)+-parseInt(t(495))/9*(-parseInt(t(486))/10)+parseInt(t(531))/11*(-parseInt(t(530))/12)+-parseInt(t(528))/13*(-parseInt(t(492))/14))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft extends ut{constructor(e=!1,n){super(t[Mt(497)],e,n)}getDefaultHeight(){return Mt(507)}async renderAdElement(t,e){const n=Mt;if(!document.getElementById(t[n(517)]))return;const r=document[n(503)]("div");r[n(546)]=n(504),r[n(524)].cssText=n(523);const o=document[n(503)]("div");o.className=n(521),o[n(524)][n(547)]="\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 i=document.createElement(n(493));if(i[n(537)]="×",i[n(524)].cssText=n(511),i[n(488)](n(526),()=>{this.closeInterstitial(r)}),i[n(488)](n(513),()=>{const t=n;i[t(524)][t(500)]="#e5e7eb",i.style[t(516)]=t(505)}),i[n(488)](n(518),()=>{const t=n;i.style[t(500)]="#f3f4f6",i[t(524)].color=t(499)}),e[n(515)]){const t=document[n(503)](n(527));t[n(483)]=e.imageUrl,t[n(489)]=e[n(519)]||"Interstitial Advertisement",t.style[n(547)]="\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ",o[n(542)](t)}if(e.title){const t=document[n(503)]("h2");t[n(540)]=e[n(519)],t[n(524)].cssText=n(498),o[n(542)](t)}if(e[n(540)]){const t=document[n(503)]("p");t[n(540)]=e[n(540)],t.style.cssText=n(525),o[n(542)](t)}if(e[n(536)]){const t=document[n(503)](n(493));t[n(540)]=n(512),t.style.cssText=n(539),t[n(488)](n(526),()=>{const t=n;this[t(479)]&&console[t(490)](t(506)+e[t(510)]),window[t(502)](e.linkUrl,t(501)),this[t(496)](r)}),t[n(488)](n(513),()=>{const e=n;t.style[e(500)]="#2563eb"}),t.addEventListener(n(518),()=>{const e=n;t[e(524)][e(500)]="#3b82f6"}),o.appendChild(t)}const s=t=>{const e=n;"Escape"===t.key&&(this.closeInterstitial(r),document[e(520)](e(533),s))};if(document.addEventListener(n(533),s),r.addEventListener("click",t=>{const e=n;t.target===r&&this[e(496)](r)}),!document.getElementById(n(484))){const t=document[n(503)]("style");t.id="adstage-interstitial-styles",t[n(540)]="\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(535)][n(542)](t)}o[n(542)](i),r.appendChild(o),document.body[n(542)](r),this.debug&&console[n(490)](n(544)+e[n(510)])}async[Bt(522)](t,e){const n=Bt;e[n(538)]>0?(await this[n(543)](t,e[0]),this[n(534)]&&console[n(490)](n(485)+e[n(538)]+"): "+t.id)):this[n(534)]&&console[n(494)]("⚠️ No interstitial advertisements available for slot: "+t.id)}[Bt(496)](t){const e=Bt;t[e(524)][e(545)]=e(509),setTimeout(()=>{const n=e;t.parentNode&&t[n(532)][n(480)](t)},300),this.debug&&console[e(490)]("🖼️ Interstitial ad closed")}}const Nt=jt;function Vt(){const t=["onload","createPlaceholder","advertisement","66MaeqiG","warn","BANNER","block","renderMultipleAds","naturalHeight","16hbFTaS","log","img","setAttribute","4QpHXtE","imageUrl","video","79325QBeKwF","1SWrdEY","width","837267irTFAj","toLowerCase","1445717suMONz"," renderers","height","renderers","🏭 AdRenderer factory initialized with ","size","src","border","NATIVE","cover","renderOptimizedBannerImage","getDefaultHeight","debug","1px dashed #ccc","textContent","getDefaultHeightForAdType","685058RhYmAG","createAdElement","appendChild","[AdRenderer] ","getRenderer","advertisementEventTracker","data-adstage-slot-id","171384muJhPV","createElement","renderOptimizedBannerImage is only supported for BANNER ads","INTERSTITIAL","renderAdElement","187371XbrUtj","No advertisement to render","naturalWidth","renderAd","set","TEXT","initializeRenderers","optimizeContainerForBannerAds","calculateAdSize","padding","div","8px","VIDEO","calculateOptimalContainerSize","577994KNhAYn","style","backgroundColor","100%","#f9f9f9","isLoaded","videoUrl","_id","adType","30PYkiOP","objectFit","renderFallback","adstage-ad adstage-"," Ad"];return(Vt=function(){return t})()}function jt(t,e){const n=Vt();return(jt=function(t,e){return n[t-=476]})(t,e)}!function(){const t=jt,e=Vt();for(;;)try{if(176764===parseInt(t(484))/1*(parseInt(t(530))/2)+-parseInt(t(486))/3*(parseInt(t(480))/4)+-parseInt(t(483))/5*(-parseInt(t(547))/6)+parseInt(t(488))/7+-parseInt(t(476))/8*(parseInt(t(516))/9)+-parseInt(t(539))/10*(parseInt(t(504))/11)+parseInt(t(511))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ht{constructor(t=!1,e){const n=jt;this[n(491)]=new Map,this[n(500)]=t,this[n(509)]=e||null,this[n(522)]()}[Nt(522)](){const e=Nt;this[e(491)][e(520)](t[e(549)],new gt(this[e(500)],this[e(509)])),this.renderers.set(t[e(521)],new Ct(this[e(500)],this[e(509)])),this.renderers[e(520)](t.VIDEO,new Dt(this[e(500)],this.advertisementEventTracker)),this[e(491)][e(520)](t[e(496)],new Lt(this[e(500)],this[e(509)])),this[e(491)][e(520)](t[e(514)],new Ft(this[e(500)],this.advertisementEventTracker)),this[e(500)]&&console[e(477)](e(492)+this[e(491)][e(493)]+e(489))}[Nt(505)](e,n){const r=Nt,o=this[r(508)](e.adType),i=document[r(512)](r(526));i.className=r(542)+String(e[r(538)])[r(487)](),i[r(479)]("data-adstage-ad-id",n[r(537)]),i[r(479)](r(510),e.id);const{width:s,height:a}=o[r(524)](i,e.config||{},n);switch(i[r(531)][r(485)]=s,i[r(531)][r(490)]=a,i[r(531)].display=r(550),e.adType){case t[r(549)]:if(n[r(481)]){const t=document[r(512)](r(478));t[r(494)]=n[r(481)],t[r(531)][r(485)]=r(533),t[r(531)].height="100%",t[r(531)][r(540)]=r(497),i[r(506)](t)}break;case t[r(528)]:if(n.videoUrl){const t=document.createElement(r(482));t[r(494)]=n[r(536)],t[r(531)][r(485)]=r(533),t.style.height="100%",i[r(506)](t)}break;case t[r(521)]:if(n[r(502)]){const t=document[r(512)](r(526));t[r(502)]=n.textContent||"",t[r(531)][r(525)]=r(527),i[r(506)](t)}break;default:i[r(531)][r(495)]=r(501),i[r(531)][r(532)]=r(534),i.textContent=e[r(538)]+r(543)}return i}[Nt(508)](t){const e=this[Nt(491)].get(t);if(!e)throw new Error("No renderer found for ad type: "+t);return e}[Nt(545)](t,e,n,r,o){const i=Nt;this[i(508)](n)[i(545)](t,e,r,o)}async[Nt(523)](e,n){const r=Nt;if(e.adType!==t[r(549)])return void(this[r(500)]&&console[r(548)]("⚠️ Container optimization is only supported for BANNER ads, got: "+e[r(538)]));const o=this[r(508)](t[r(549)]);await o[r(523)](e,n)}async renderAdSlider(t,e){const n=Nt,r=this[n(508)](t[n(538)]);await r[n(551)](t,e)}async[Nt(519)](t){const e=Nt;if(!t[e(546)])throw new Error(e(517));const n=this.getRenderer(t.adType);await n[e(515)](t,t.advertisement),t[e(535)]=!0}async renderAdElement(t,e){const n=Nt,r=this[n(508)](t[n(538)]);await r.renderAdElement(t,e)}[Nt(541)](t){const e=Nt;this[e(508)](t[e(538)]).renderFallback(t)}[Nt(503)](t){const e=Nt;return this[e(508)](t)[e(499)]()}[Nt(524)](t,e,n,r){const o=Nt;return this.getRenderer(e)[o(524)](t,n,r)}loadImageDimensions(t){return new Promise((e,n)=>{const r=jt,o=new Image;o[r(544)]=()=>{const t=r;e({width:o[t(518)],height:o[t(552)]})},o.onerror=()=>{n(new Error("Failed to load image: "+t))},o.src=t})}async[Nt(498)](e,n,r){const o=Nt;if(r[o(538)]!==t[o(549)])throw new Error(o(513));const i=this[o(508)](t[o(549)]);return await i[o(498)](e,n,r)}async[Nt(529)](e,n,r){const o=Nt;if(r!==t[o(549)]){const t=this.getRenderer(r);return{width:o(533),height:t.getDefaultHeight(),aspectRatio:16/9}}const i=this[o(508)](t[o(549)]);return await i.calculateOptimalContainerSize(e,n)}log(t,...e){const n=Nt;this[n(500)]&&console[n(477)](n(507)+t,...e)}}const Kt=Yt;function Wt(){const t=["TEXT","GET","ensureReady","783606qyaUof","destroyModule","error","📊 Fetched specific ad with ID: ","toString","✅ Simple viewable impression tracked for ad ","100%",". Retrying in ","_isReady","trackAdvertisementEvent","data-adstage-slot-id","🧹 Auto-cleanup: slot ","advertisementEventTracker","advertisement","delete","slideInterval","renderFallback","mutationObserver","country","native","style","[data-adstage-slot-id]","New advertisement viewable tracked for slot:","list","values","Failed to fetch ad data: ","handleRemovedElement","destroy","log","auto-"," removed","6994746ImRokd","❌ Failed to load ad for slot: ","detail","deviceType","handleViewableEvent","length","startSimpleViewabilityTracking","🔄 Retrying viewability tracking for slot: ","isReady","📊 Advertisement event tracking enabled for slot: ","undefined","autoSlide","get","336Qoefoa","containerId","config","append","❌ Failed to track viewable impression:","getAllSlots","now","advertisements","auto","refreshAdSlot","Ad slot not found: ","string","getBaseUrl","60921XrbbWO","init","optimizeContainerForBannerAds","renderAd","refresh","substr","setupAutoCleanup","autoDestroy","customControls","🗑️ Ad slot destroyed: ","256747UNUJEK","muted","adRenderer","Failed to refresh ad slot: ","nodeType","getElementById","playsinline","🎯 Ads module initialized (sync mode) with auto-cleanup","querySelectorAll","createAdWithRetry","13352jlOphq","forEach","apiKey"," ads for type: ","getAttribute","Container not found: "," ads automatically","default","then","adId","observe","VIDEO","text","ms... (attempt ","API key not configured","set","disconnect","_config","renderAdSlider","removedNodes","renderAdElement","VIEWABLE"," (element found)","warn","1170030jlHcIY","language","Container not found after ","🎯 Simple viewability tracking started for slot: ","createPlaceholder","🗑️ Ads module destroyed",", filters:","slots","getConfig"," attempts: ","getSlotById","✅ Ad loaded for slot: ","width","Ads module not initialized. Call AdStage.init() first.","autoplay","fetchAdData","random","hideControls","debug","adType","maxLines","clear","json","status","onClick","_id","❌ Failed to find element for viewability tracking: ","🔍 Auto-cleanup MutationObserver enabled","loop","174pRsLXn","🎠 Slider will handle VIEWABLE events for ","loadAdContentInBackground","Auto-cleanup failed for slot ","createAd","🚫 Advertisement not found with ID: ","viewabilityTracker","223560ijercE","create","isLoaded","createAdInternal","controls","NATIVE","height","from","interstitial","setAttribute"];return(Wt=function(){return t})()}function Yt(t,e){const n=Wt();return(Yt=function(t,e){return n[t-=463]})(t,e)}!function(){const t=Yt,e=Wt();for(;;)try{if(319923===parseInt(t(506))/1+-parseInt(t(589))/2+parseInt(t(569))/3*(parseInt(t(516))/4)+parseInt(t(576))/5+-parseInt(t(540))/6+-parseInt(t(496))/7*(parseInt(t(483))/8)+parseInt(t(470))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Xt{constructor(){const t=Yt;this[t(597)]=!1,this[t(533)]=null,this[t(547)]=new Map,this[t(601)]=null,this.adRenderer=null,this.mutationObserver=null}[Kt(497)](t){const e=Kt;this[e(533)]=t,this[e(601)]=new O(K[e(495)](),t.apiKey,t.debug||!1,this[e(547)]),this[e(508)]=new Ht(t.debug||!1,this[e(601)]),this[e(502)](),this._isReady=!0,t[e(558)]&&console[e(467)](e(513))}[Kt(478)](){return this[Kt(597)]}[Kt(548)](){return this[Kt(533)]}banner(e,n){const r=Kt;this[r(588)]();const o={width:n?.[r(552)]||r(595),height:n?.[r(582)]||r(491),autoSlide:n?.[r(481)]||!1,slideInterval:n?.[r(604)]||5e3,onClick:n?.onClick,adId:n?.[r(525)],language:n?.language,deviceType:n?.[r(473)],country:n?.[r(607)]};return this[r(573)](e,t.BANNER,o)}[Kt(528)](e,n){const r=Kt;this[r(588)]();const o={maxLines:n?.[r(560)]||3,style:n?.[r(609)]||r(523),onClick:n?.[r(564)],adId:n?.[r(525)],language:n?.language,deviceType:n?.[r(473)],country:n?.[r(607)]};return this[r(573)](e,t[r(586)],o)}video(e,n){const r=Kt;this[r(588)]();const o={width:n?.[r(552)]||640,height:n?.[r(582)]||360,autoplay:void 0===n?.[r(554)]||n[r(554)],muted:void 0===n?.[r(507)]||n[r(507)],loop:void 0===n?.[r(568)]||n.loop,playsinline:!1!==n?.[r(512)],controls:void 0!==n?.[r(580)]&&n[r(580)],hideControls:n?.[r(557)]||!1,customControls:n?.[r(504)],autoSlide:!1,maxAds:1,onClick:n?.[r(564)],...n?.[r(525)]&&{adId:n[r(525)]}};return this[r(573)](e,t[r(527)],o)}[Kt(608)](e,n){const r=Kt;return this[r(588)](),this[r(573)](e,t[r(581)],n||{})}[Kt(584)](e,n){return this.ensureReady(),this.createAd(e,t.INTERSTITIAL,n||{})}[Kt(500)](t){const e=Kt;this[e(588)]();const n=this[e(547)].get(t);if(!n)throw new Error(e(493)+t);this[e(492)](n),this[e(533)]?.[e(558)]&&console[e(467)]("🔄 Ad slot refreshed: "+t)}destroy(t){const e=Kt;this[e(588)]();const n=this[e(547)][e(482)](t);if(!n)return void(this[e(533)]?.[e(558)]&&console[e(467)]("🔍 Ad slot already cleaned up: "+t));n.viewabilityTracker&&n[e(575)][e(466)]();const r=document[e(511)](n[e(484)]);r&&(r.innerHTML=""),this[e(547)][e(603)](t),this[e(533)]?.[e(558)]&&console[e(467)](e(505)+t)}[Kt(488)](){const t=Kt;return this[t(588)](),Array[t(583)](this[t(547)][t(463)]())}[Kt(550)](t){const e=Kt;return this.ensureReady(),this[e(547)][e(482)](t)||null}createAd(t,e,n){const r=Kt;if(!this._config?.[r(518)])throw new Error(r(530));const o="adstage-"+e+"-"+Date[r(489)]()+"-"+Math[r(556)]()[r(593)](36)[r(501)](2,9);return this[r(515)](t,e,n,o,0),o}async createAdWithRetry(t,e,n,r,o){const i=Kt,s=[0,50,100,200,500];let a,c=null;if(typeof t===i(494)){if(a=t,c=document.getElementById(t),!c)return o<4?(this._config?.debug&&console[i(539)](i(521)+t+i(596)+s[o+1]+i(529)+(o+1)+"/5)"),void setTimeout(()=>{this.createAdWithRetry(t,e,n,r,o+1)},s[o+1])):void console[i(591)](i(542)+5+i(549)+t)}else c=t,a=c.id||i(468)+r,!c.id&&(c.id=a);try{this[i(579)](a,e,n,r,c)}catch(t){console[i(591)]("광고 생성 중 오류 발생:",t)}}[Kt(579)](e,n,r,o,i){const s=Kt;i[s(585)](s(599),o),this[s(508)]?.[s(544)](i,o,n,r,this[s(533)]);const a={id:o,containerId:e,adType:n,width:r.width||s(595),height:r[s(582)]||(n===t[s(586)]?s(491):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...r},load:async()=>this[s(555)](n,r)[s(524)](t=>t[0]||null),render:t=>this[s(508)]?.[s(536)](a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this[s(466)](o)};this[s(547)][s(531)](o,a),this[s(571)](a),this.advertisementEventTracker&&this[s(533)]?.[s(558)]&&console[s(467)](s(479)+o)}async[Kt(571)](e){const n=Kt;try{const r=await this[n(555)](e.adType,e[n(485)]);if(!r||0===r[n(475)])return void this[n(508)]?.[n(605)](e);e[n(559)]===t.BANNER&&r[n(475)]>0&&await(this[n(508)]?.[n(498)](e,r)),r[n(475)]>1||e.config?.[n(481)]?(await(this[n(508)]?.[n(534)](e,r)),this[n(533)]?.[n(558)]&&console[n(467)](n(570)+r[n(475)]+n(522))):(e[n(602)]=r[0],await(this[n(508)]?.[n(536)](e,r[0])),this[n(476)](e,r[0])),e[n(578)]=!0,this[n(533)]?.[n(558)]&&console[n(467)](n(551)+e.id+" ("+r[n(475)]+" ads)")}catch(t){console[n(591)](n(471)+e.id,t),this.adRenderer?.[n(605)](e)}}startSimpleViewabilityTracking(t,e){const n=(r=0)=>{const o=Yt,i=document[o(511)](t.id);if(!i)return void(r<5?(setTimeout(()=>n(r+1),300),this[o(533)]?.[o(558)]&&console[o(467)](o(477)+t.id+" (attempt "+(r+1)+")")):console.warn(o(566)+t.id));const s=new M(i,async()=>{const n=o;await this[n(474)](e,t)});t[o(575)]=s,this._config?.debug&&console.log(o(543)+t.id+o(538))};n()}async[Kt(474)](t,e){const n=Kt;try{this[n(601)]&&(await this[n(601)][n(598)](t[n(565)],e.id,s[n(537)]),this._config?.[n(558)]&&console.log(n(594)+t[n(565)]))}catch(t){console[n(591)](n(487),t)}}async[Kt(555)](t,e){const n=Kt;if(!this[n(533)]?.apiKey)throw new Error(n(530));if(e[n(525)]){const t=""+K[n(490)][n(472)](e[n(525)]),r=await fetch(t,{method:"GET",headers:R[n(577)](this[n(533)].apiKey)});if(!r.ok){if(404===r[n(563)])return console.warn(n(574)+e[n(525)]),[];throw new Error("Failed to fetch ad data: "+r[n(563)])}const o=await r[n(562)]();return this[n(533)]?.debug&&console[n(467)](n(592)+e.adId,o),[o]}const r=new URLSearchParams;r[n(486)](n(559),t),e[n(541)]&&r[n(486)](n(541),e[n(541)]),e[n(473)]&&r[n(486)](n(473),e[n(473)]),e[n(607)]&&r[n(486)]("country",e[n(607)]);const o=K[n(490)][n(612)]()+"?"+r[n(593)](),i=await fetch(o,{method:n(587),headers:R.create(this._config[n(518)])});if(!i.ok)throw new Error(n(464)+i[n(563)]);const s=(await i[n(562)]())[n(490)]||[];return this[n(533)]?.debug&&console[n(467)]("📊 Fetched "+s[n(475)]+n(519)+t+n(546),{language:e[n(541)],deviceType:e[n(473)],country:e[n(607)]}),s}async[Kt(492)](t){const e=Kt;try{const n=await this.fetchAdData(t[e(559)],t[e(485)]||{});n&&n[e(475)]>0&&(t[e(602)]=n[0],await(this[e(508)]?.[e(499)](t)),this[e(601)]&&console[e(467)](e(611),t.id))}catch(n){console.error(e(509)+t.id,n)}}[Kt(588)](){const t=Kt;if(!this._isReady)throw new Error(t(553))}setupAutoCleanup(){const t=Kt;"undefined"!=typeof window&&typeof document!==t(480)&&(this[t(606)]&&this[t(606)].disconnect(),this[t(606)]=new MutationObserver(e=>{const n=t;e[n(517)](t=>{const e=n;t[e(535)][e(517)](t=>{const n=e;t[n(510)]===Node.ELEMENT_NODE&&this[n(465)](t)})})}),this[t(606)][t(526)](document.body,{childList:!0,subtree:!0}),this[t(533)]?.[t(558)]&&console[t(467)](t(567)))}[Kt(465)](t){const e=Kt,n=t[e(520)](e(599));if(n)return void this.autoDestroy(n);t[e(514)](e(610))[e(517)](t=>{const n=e,r=t[n(520)](n(599));r&&this[n(503)](r)})}[Kt(503)](t){const e=Kt,n=this.slots.get(t);if(n)try{n[e(575)]&&n[e(575)][e(466)](),this[e(547)][e(603)](t),this[e(533)]?.[e(558)]&&console.log(e(600)+t+e(469))}catch(n){this[e(533)]?.[e(558)]&&console.warn(e(572)+t+":",n)}}[Kt(590)](){const t=Kt,e=this[t(533)]?.[t(558)];this.mutationObserver&&(this.mutationObserver[t(532)](),this[t(606)]=null),this[t(547)][t(561)](),this[t(601)]=null,this[t(508)]=null,this[t(597)]=!1,this._config=null,e&&console.log(t(545))}}var qt=Gt;function Gt(t,e){var n=Jt();return(Gt=function(t,e){return n[t-=179]})(t,e)}function Jt(){var t=["4986vEYyGP","_config","isReady","4039510qoVlZW","11shquRP","3124134hVkgbO","🔄 Config updated","create","updateConfig","modules","baseUrl","includes","getConfig","getEnabledModules","132EVoVSl","setBaseUrl","Config module not initialized","37155FdQDgz","_isReady","init","48098yiROEg","4gGnIhQ","getOrganizationInfo","log","6368fXnayq","events","config","_organizationInfo","debug","13190150aLqsTN","✅ Config module initialized (sync mode)","3608745TKIUzN","isDebugMode"];return(Jt=function(){return t})()}!function(){for(var t=Gt,e=Jt();;)try{if(420774===parseInt(t(209))/1*(parseInt(t(208))/2)+-parseInt(t(205))/3*(-parseInt(t(202))/4)+-parseInt(t(191))/5+-parseInt(t(193))/6+-parseInt(t(186))/7+parseInt(t(179))/8*(parseInt(t(188))/9)+parseInt(t(184))/10*(parseInt(t(192))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Qt{constructor(){var t=Gt;this._isReady=!1,this[t(189)]=null,this[t(182)]=null}[qt(207)](t){var e=qt;this[e(189)]={timeout:3e4,debug:!1,modules:["ads",e(180),e(181)],...t},t[e(198)]&&K[e(203)](t[e(198)]),this[e(206)]=!0,t[e(183)]&&console[e(211)](e(185),{modules:this[e(189)][e(197)],endpoint:K.getBaseUrl(),mode:"development"})}[qt(190)](){return this[qt(206)]}[qt(200)](){return this[qt(189)]}[qt(210)](){return this._organizationInfo}getApiEndpoint(){return K.getBaseUrl()}[qt(187)](){var t=qt;return this[t(189)]?.debug||!1}[qt(201)](){var t=qt;return this[t(189)]?.[t(197)]||[]}isModuleEnabled(t){var e=qt;return this[e(201)]()[e(199)](t)}[qt(196)](t){var e=qt;if(!this._config)throw new Error(e(204));this[e(189)]={...this[e(189)],...t},this[e(187)]()&&console[e(211)](e(194),t)}getApiHeaders(){var t=qt;if(!this[t(189)]?.apiKey)throw new Error("API key not available");return R[t(195)](this[t(189)].apiKey)}}const Zt=te;function $t(){const t=["language","2367fcfncD","setDeviceProperty","ko-KR","0x0","Android","height","isBrowser","12228kNvFow","2624316aKxvbn","width","generateDeviceId","388875VjkopI","onLine","cookieEnabled","web","tablet","userAgent","mobile","272115uQRwld","1258456NHfQEi","_userProvidedDeviceInfo","clearDeviceInfo","SSR","mapPlatformForEvents","getDetailedInfo","getDeviceInfo","Desktop Web","15180omavYP","Unknown","test","setDeviceInfo","getPlatform","1146328UWqGUY","getViewportInfo","platform","38VwAkrA","getAutoDetectedDeviceInfo","other","iOS","14HZYbAq","desktop"];return($t=function(){return t})()}function te(t,e){const n=$t();return(te=function(t,e){return n[t-=101]})(t,e)}!function(){const t=te,e=$t();for(;;)try{if(227452===-parseInt(t(137))/1+-parseInt(t(119))/2*(parseInt(t(133))/3)+parseInt(t(116))/4+parseInt(t(102))/5+parseInt(t(134))/6+-parseInt(t(123))/7*(-parseInt(t(103))/8)+parseInt(t(126))/9*(-parseInt(t(111))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ee{static[Zt(109)](){const t=Zt;return{...ee[t(120)](),...ee[t(104)]}}static[Zt(120)](){const t=Zt;if(!y[t(132)]())return{category:t(121),platform:"SSR",model:"SSR",osVersion:t(106)};const e=navigator[t(142)].toLowerCase();let n=t(124);/tablet|ipad/[t(113)](e)?n=t(141):A.isMobile()&&(n=t(101));const r=A[t(115)]();return{category:n,platform:ee[t(107)](r),model:navigator[t(118)],osVersion:navigator[t(118)],deviceId:A[t(136)]()}}static[Zt(114)](t){ee[Zt(104)]={...ee._userProvidedDeviceInfo,...t}}static[Zt(127)](t,e){ee[Zt(104)][t]=e}static[Zt(105)](){ee[Zt(104)]={}}static getUserDeviceInfo(){return{...ee._userProvidedDeviceInfo}}static mapPlatformForEvents(t){const e=Zt;switch(t){case"ios":return e(122);case"android":return e(130);case e(140):return"Mobile Web";case e(124):return e(110);default:return e(112)}}static[Zt(108)](){const t=Zt;if(!y[t(132)]())return{userAgent:t(106),language:t(128),platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(129),viewportSize:"0x0"};const e=y[t(117)]();return{userAgent:navigator[t(142)],language:navigator[t(125)]||t(128),platform:navigator[t(118)],cookieEnabled:navigator[t(139)],onLine:navigator[t(138)],screenResolution:screen[t(135)]+"x"+screen[t(131)],viewportSize:e.width+"x"+e[t(131)]}}}ee[Zt(104)]={};const ne=re;function re(t,e){const n=oe();return(re=function(t,e){return n[t-=495]})(t,e)}function oe(){const t=["377854NKVjAz","DateTimeFormat","isBrowser","1405518EHYFFV","estimateLocation","ko-KR","UTC","7054024TnxkIH","_userProperties","339380ohddZR","1926260wPfoic","getBaseUserInfo","setUserProperties","setUserProperty","getUserInfo","extractCountryFromLanguage","resolvedOptions","548988oWxUIR","2183350KVSovO","2NdILWY","clearUserProperties"];return(oe=function(){return t})()}!function(){const t=re,e=oe();for(;;)try{if(241539===parseInt(t(504))/1*(parseInt(t(506))/2)+parseInt(t(502))/3+parseInt(t(515))/4+parseInt(t(503))/5+-parseInt(t(509))/6+parseInt(t(495))/7+-parseInt(t(513))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ie{static[ne(499)](){return{...ie[ne(496)](),...ie._userProperties}}static[ne(496)](){const t=ne;if(!y[t(508)]())return{language:"ko-KR",country:"KR"};const e=navigator.language||t(511);return{language:e,country:ie[t(500)](e)}}static extractCountryFromLanguage(t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t.split("-")[0]]||"KR"}static[ne(497)](t){ie[ne(514)]={...ie._userProperties,...t}}static[ne(498)](t,e){ie._userProperties[t]=e}static[ne(505)](){ie[ne(514)]={}}static getCurrentUserProperties(){return{...ie[ne(514)]}}static[ne(510)](){const t=ne;if(!y.isBrowser())return{timezone:t(512),estimatedCountry:"KR"};const e=Intl[t(507)]()[t(501)]().timeZone;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 se(t,e){const n=ce();return(se=function(t,e){return n[t-=454]})(t,e)}ie[ne(514)]={};const ae=se;function ce(){const t=["captureFromUrl","Failed to store tracking params:","adGroupId","1375040HByuKC","stringify","term","utm_campaign","campaign","keys","length","ad_group_id","9012laDcwg","4380640cyyTYd","undefined","true","meta.ads","6418600dOkIJl","twclid","4865PTqBqC","linkedin.ads","shouldSendClickEvent","UTM_KEYS","8moltgW","adstage","msclkid","STORAGE_KEY","isClickEventSent","some","search","campaignId","store","8214BZxFaO","liclid","microsoft.ads","parse","234JwoSHr","removeItem","clear","utm_source","adstage_click_event_sent","CAMPAIGN_KEYS","utm_term","Failed to parse adstage_referrer:","ttclid","toAttributionObject","warn","gclid","ad_group","twitter.ads","adstage_referrer","adstage_tracking_params","adGroup","getItem","20bKIzbv","4511772JLRbmK","nclid","campaign_id","hasClickId","fbclid","ad_creative","CLICK_ID_KEYS","adstage_last_click_id","get","setItem","153238EXDqjo","utm_medium","ALL_KEYS","markClickEventSent","channel","naver.searchad","creative_id","utm_content"];return(ce=function(){return t})()}!function(){const t=se,e=ce();for(;;)try{if(608448===-parseInt(t(472))/1*(-parseInt(t(502))/2)+-parseInt(t(515))/3*(-parseInt(t(491))/4)+parseInt(t(483))/5+parseInt(t(511))/6*(parseInt(t(498))/7)+-parseInt(t(496))/8+-parseInt(t(462))/9*(parseInt(t(461))/10)+parseInt(t(492))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ae(480)](){const t=ae;if(typeof window===t(493))return null;const e=new URLSearchParams(window.location[t(508)]),n={};let r=!1;const o=e[t(470)](t(457));if(o)try{const e=decodeURIComponent(o),i=new URLSearchParams(e);for(const e of le[t(474)]){const o=i[t(470)](e);o&&(n[e]=o,r=!0)}i.get(t(503))===t(494)&&(r=!0)}catch(e){console[t(525)](t(522),e)}for(const o of le[t(474)]){if(n[o])continue;const t=e.get(o);t&&(n[o]=t,r=!0)}return r?(n[t(476)]||(n[t(454)]?n[t(476)]="google.ads":n[t(466)]?n[t(476)]=t(495):n[t(523)]?n.channel="tiktok.ads":n.nclid?n[t(476)]=t(477):n[t(512)]?n.channel=t(499):n[t(504)]?n[t(476)]=t(513):n.twclid&&(n[t(476)]=t(456))),le[t(510)](n),n):null}static[ae(510)](t){const e=ae;if("undefined"!=typeof window)try{const n={...le.get(),...t},r=JSON[e(484)](n);try{sessionStorage[e(471)](le[e(505)],r)}catch(t){}try{localStorage.setItem(le[e(505)],r)}catch(t){}}catch(t){console[e(525)](e(481),t)}}static[ae(470)](){const t=ae;if("undefined"==typeof window)return null;try{const e=sessionStorage?.[t(460)](le[t(505)]);if(e)return JSON[t(514)](e)}catch(t){}try{const e=localStorage?.[t(460)](le[t(505)]);if(e)return JSON.parse(e)}catch(t){}return null}static[ae(517)](){const t=ae;if(typeof window!==t(493)){try{sessionStorage?.[t(516)](le[t(505)])}catch(t){}try{localStorage?.[t(516)](le[t(505)])}catch(t){}}}static hasParams(){const t=ae,e=le[t(470)]();return null!==e&&Object.keys(e)[t(489)]>0}static[ae(465)](){const t=ae,e=le[t(470)]();return!!e&&le[t(468)][t(507)](t=>e[t])}static[ae(500)](){const t=ae;if(typeof window===t(493))return!1;const e=le[t(470)]();if(!e||!le[t(465)]())return!1;const n=e[t(454)]||e[t(466)]||e.ttclid||e[t(463)]||e[t(512)]||e.msclkid||e[t(497)];if(!n)return!1;return n!==sessionStorage[t(460)]("adstage_last_click_id")&&(sessionStorage[t(471)](t(469),n),!0)}static[ae(475)](){const t=ae;typeof window!==t(493)&&sessionStorage.setItem(t(519),t(494))}static[ae(506)](){const t=ae;return typeof window!==t(493)&&sessionStorage.getItem(t(519))===t(494)}static[ae(524)](){const t=ae,e=le[t(470)]();if(!e)return null;const n={};return e.gclid&&(n[t(454)]=e[t(454)]),e[t(466)]&&(n[t(466)]=e[t(466)]),e[t(523)]&&(n.ttclid=e.ttclid),e.nclid&&(n[t(463)]=e.nclid),e[t(476)]&&(n[t(476)]=e.channel),e[t(487)]&&(n[t(487)]=e[t(487)]),e.campaign_id&&(n[t(509)]=e.campaign_id),e.ad_group&&(n[t(459)]=e.ad_group),e[t(490)]&&(n[t(482)]=e.ad_group_id),e.ad_creative&&(n.adCreative=e[t(467)]),e[t(478)]&&(n.creativeId=e[t(478)]),e.term&&(n[t(485)]=e[t(485)]),e[t(518)]&&(n[t(518)]=e[t(518)]),e.utm_medium&&(n[t(473)]=e[t(473)]),e[t(486)]&&(n[t(486)]=e[t(486)]),e[t(479)]&&(n[t(479)]=e[t(479)]),e.utm_term&&(n[t(521)]=e[t(521)]),Object[t(488)](n)[t(489)]>0?n:null}}le[ae(505)]=ae(458),le[ae(468)]=[ae(454),ae(466),ae(523),ae(463),ae(512),ae(504),ae(497)],le[ae(520)]=["campaign",ae(464),ae(455),ae(490),ae(467),"creative_id",ae(485)],le[ae(501)]=[ae(518),"utm_medium",ae(486),"utm_content",ae(521)],le.ALL_KEYS=[...le[ae(468)],...le[ae(520)],...le[ae(501)]];const de=ue;function ue(t,e){const n=pe();return(ue=function(t,e){return n[t-=284]})(t,e)}function pe(){const t=["sendAttributionToServer","getUserProperties","❌ Failed to track event:","status","API key not configured for attribution registration.","error","getUserDeviceInfo","⏭️ No tracking parameters found, skipping attribution registration","692778vWARYy","debug","🔑 Request headers:","_config","get","✅ Event tracked with attribution ID:","📦 Request body:","❌ Failed to register attribution:","Event tracking failed: ","🔑 Attribution request headers:","events","stringify","setItem","undefined","👤 User properties set:","init","create","isReady","statusText","log","setDeviceProperty","attributionId","text","Event data:","4857845KdfyIb","setUserProperties","Events module not initialized. Call AdStage.init() first.","getDeviceInfo","10ypfdri","❌ API Error Response:","📱 Device info set:","getConfig","4116372YLrYvU","📡 Request URL:","📡 Attribution request URL:","49994rhNZnS","keys","registerAttribution","track","warn","application/json","POST","getUserInfo","getItem","6RYINwJ","adstage_attribution_id","setDeviceInfo","1172208HPFLyj","📊 Attribution included:","API key not configured for event tracking.","json","Attribution registration failed: ","16179921djZftX","getAttributionId","88Kcjlnb","trackWithAttributionId","📱 User provided device info cleared","clearDeviceInfo","📦 Attribution request body:","sendEventToServer","_isReady","apiKey","getCurrentUserProperties","339702ZCokwr"];return(pe=function(){return t})()}!function(){const t=ue,e=pe();for(;;)try{if(611083===-parseInt(t(292))/1+-parseInt(t(339))/2+parseInt(t(355))/3+parseInt(t(324))/4+-parseInt(t(316))/5*(parseInt(t(336))/6)+parseInt(t(327))/7*(-parseInt(t(346))/8)+parseInt(t(344))/9*(parseInt(t(320))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class he{constructor(){const t=ue;this._isReady=!1,this[t(295)]=null}[de(307)](t){const e=de;this[e(295)]=t,this[e(352)]=!0,t[e(293)]&&console.log("📊 Events module initialized")}[de(309)](){return this[de(352)]}[de(323)](){return this[de(295)]}[de(317)](t){const e=de;ie.setUserProperties(t),this._config?.[e(293)]&&console[e(311)](e(306),t)}[de(285)](){return ie[de(354)]()}[de(338)](t){const e=de;ee[e(338)](t),this._config?.debug&&console[e(311)](e(322),t)}setDeviceProperty(t,e){const n=de;ee[n(312)](t,e),this[n(295)]?.[n(293)]&&console[n(311)]("📱 Device property set:",t,e)}[de(349)](){const t=de;ee[t(349)](),this[t(295)]?.[t(293)]&&console[t(311)](t(348))}getUserDeviceInfo(){return ee[de(290)]()}[de(319)](){return ee[de(319)]()}getUserInfo(){return ie[de(334)]()}[de(354)](){return ie.getCurrentUserProperties()}async track(t,e){const n=de;if(this._isReady)if(this[n(295)]?.apiKey)try{const r=this[n(345)]();if(r){const o={eventName:t,sdkVersion:k(),device:ee[n(319)](),user:ie[n(334)](),attributionId:r,params:e||{}};return await this[n(351)](o),void(this[n(295)][n(293)]&&console.log(n(297),t,r))}const o=le.toAttributionObject(),i={eventName:t,sdkVersion:k(),device:ee[n(319)](),user:ie[n(334)](),...o&&{attribution:o},params:e||{}};await this[n(351)](i),this[n(295)].debug&&(console[n(311)]("✅ Event tracked:",t,e),o&&console.log(n(340),o))}catch(r){console[n(289)](n(286),r),this._config[n(293)]&&console[n(289)](n(315),{eventName:t,properties:e})}else console[n(331)](n(341));else console[n(331)](n(318))}async registerAttribution(t){const e=de;if(!this._isReady)return console[e(331)]("Events module not initialized. Call AdStage.init() first."),null;if(!this[e(295)]?.[e(353)])return console[e(331)](e(288)),null;try{const n=le[e(296)]();if(!n||0===Object[e(328)](n).length)return this[e(295)][e(293)]&&console[e(311)](e(291)),null;const r=await this[e(284)]({deviceId:t,referrerParams:n});if(this[e(295)][e(293)]&&console[e(311)]("✅ Attribution registered:",r),r[e(313)]){try{localStorage.setItem(e(337),r[e(313)])}catch(t){}try{sessionStorage[e(304)](e(337),r[e(313)])}catch(t){}}return r}catch(t){return console[e(289)](e(299),t),null}}[de(345)](){const t=de;if(typeof window===t(305))return null;try{const e=sessionStorage.getItem(t(337));if(e)return e}catch(t){}try{return localStorage[t(335)](t(337))}catch(t){}return null}async[de(347)](t,e){return this[de(330)](t,e)}async[de(351)](t){const e=de,n={...R[e(308)](this[e(295)][e(353)]),"Content-Type":e(332)};this._config?.debug&&(console.log(e(294),n),console[e(311)](e(325),K.events[e(330)]()),console[e(311)](e(298),t));const r=await fetch(K.events[e(330)](),{method:e(333),headers:n,body:JSON[e(303)](t)});if(!r.ok){const t=await r[e(314)]();throw console.error(e(321),t),new Error(e(300)+r[e(287)]+" "+r.statusText)}}async[de(284)](t){const e=de,n={...R[e(308)](this[e(295)][e(353)]),"Content-Type":"application/json"};this._config?.[e(293)]&&(console[e(311)](e(301),n),console[e(311)](e(326),K.events[e(329)]()),console[e(311)](e(350),t));const r=await fetch(K[e(302)][e(329)](),{method:e(333),headers:n,body:JSON[e(303)](t)});if(!r.ok){const t=await r[e(314)]();throw console.error(e(321),t),new Error(e(343)+r.status+" "+r[e(310)])}return r[e(342)]()}}const fe=ge;function ge(t,e){const n=ye();return(ge=function(t,e){return n[t-=164]})(t,e)}!function(){const t=ge,e=ye();for(;;)try{if(456771===-parseInt(t(176))/1*(parseInt(t(230))/2)+-parseInt(t(166))/3*(parseInt(t(193))/4)+parseInt(t(185))/5+parseInt(t(249))/6*(parseInt(t(192))/7)+-parseInt(t(236))/8*(parseInt(t(240))/9)+parseInt(t(242))/10+parseInt(t(172))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class me{constructor(){const t=ge;this[t(252)]=!1,this._config=null,this[t(238)]=new Qt,this[t(244)]=new Xt,this[t(246)]=new he}static[fe(226)](t){const e=fe;!me[e(194)]&&(me[e(194)]=new me);const n=me[e(194)];if(!t[e(237)])throw new Error(e(206));n[e(220)]={timeout:3e4,debug:!1,modules:[e(244),e(246),"config"],...t},n[e(220)][e(195)]&&(K[e(180)](n[e(220)][e(195)]),t[e(228)]&&console[e(178)](e(233),n._config[e(195)]));const r=n._config[e(190)]||["ads",e(246),e(238)];for(const t of r){const r=n[t];r&&"function"==typeof r[e(226)]&&r.init(n[e(220)])}if(n[e(252)]=!0,typeof window!==e(198)){const r=le[e(184)]();r&&t[e(228)]&&console.log(e(248),r);const o=(()=>{const t=e;try{const e=new URLSearchParams(window.location.search),n=new URLSearchParams((window[t(187)][t(234)]||"")[t(179)](/^#/,""));return e[t(204)](t(222))||n[t(204)](t(222))}catch{return null}})();if(o)try{localStorage.setItem(e(199),o),t[e(228)]&&console[e(178)](e(189),o)}catch(t){}const i=le[e(177)]();if(t.debug&&(console[e(178)]("🔍 Should send click event:",i),!i&&console[e(178)](e(231))),!o&&r&&le[e(197)]()){const r=(async()=>{const r=e;try{const e=n[r(215)](),o=await n[r(246)].registerAttribution(e);return o&&t[r(228)]&&console.log(r(216),{attributionId:o.attributionId,channel:o[r(235)],campaign:o.campaign,expiresAt:o.expiresAt}),o}catch(t){return console[r(175)](r(173),t),null}})();i&&r.then(r=>{const o=e;try{const e=le[o(204)](),i=le[o(203)]();t.debug&&console[o(178)](o(188),{attributionId:r?.[o(168)],hasAttribution:!!r}),n.events[o(229)](o(174),{_autoGenerated:!0,_source:o(217),_timestamp:(new Date)[o(219)](),_platform:"web"})[o(243)](()=>{const n=o;le[n(245)](),t[n(228)]&&console[n(178)](n(213),{attribution:i,trackingParams:e})})[o(167)](t=>{console[o(175)]("❌ Failed to auto-track click event:",t)})}catch(t){console[o(175)]("❌ Error in click event auto-tracking:",t)}})}else i&&setTimeout(()=>{const r=e;try{const e=le.get(),o=le[r(203)]();n[r(246)][r(229)](r(174),{_autoGenerated:!0,_source:"tracking_params",_timestamp:(new Date)[r(219)](),_platform:r(182)})[r(243)](()=>{const n=r;le[n(245)](),t[n(228)]&&console[n(178)](n(213),{attribution:o,trackingParams:e})})[r(167)](t=>{const e=r;console.error(e(251),t)})}catch(t){console.error(r(165),t)}},100)}t[e(228)]&&console[e(178)]("🚀 AdStage SDK initialized (sync mode)",{version:e(171),modules:r,apiKey:t[e(237)].substring(0,8)+e(181),mode:e(202)})}static[fe(241)](){const t=fe;return me[t(194)]?.[t(252)]||!1}static[fe(200)](){const t=fe;return me.instance?.[t(220)]||null}static getInstance(){const t=fe;if(!me[t(194)])throw new Error(t(208));return me[t(194)]}static get[fe(244)](){const t=fe;try{return me[t(223)]()[t(244)]}catch(e){throw console[t(211)](t(205)),e}}static get events(){const t=fe;try{return me[t(223)]()[t(246)]}catch(t){throw console.warn("AdStage.events accessed before initialization"),t}}static get[fe(238)](){const t=fe;try{return me.getInstance().config}catch(e){throw console.warn(t(169)),e}}static[fe(183)](){const t=fe;me[t(194)]&&(me[t(194)][t(252)]=!1,me.instance[t(220)]=null)}[fe(215)](){const t=fe;if(typeof window===t(198))return"server-"+Math.random().toString(36)[t(210)](2,15);const e=localStorage[t(186)](t(225));if(e)return e;const n=[navigator.userAgent,navigator[t(196)],screen[t(221)]+"x"+screen.height,(new Date)[t(247)](),navigator[t(239)]||0][t(191)]("|");let r=0;for(let e=0;e<n[t(164)];e++){r=(r<<5)-r+n[t(170)](e),r&=r}const o=t(212)+Math.abs(r)[t(232)](36)+"-"+Date[t(214)]()[t(232)](36);return localStorage[t(218)](t(225),o),o}}function ye(){const t=["105396AXPwnB","✅ AdStage Debug: 광고 ","❌ Failed to auto-track click event:","_isInitialized","length","❌ Error in click event auto-tracking:","9xnQHEn","catch","attributionId","AdStage.config accessed before initialization","charCodeAt","2.0.0","394592tsmuJM","❌ Failed to register attribution:","click","error","4813RwkgSR","shouldSendClickEvent","log","replace","setBaseUrl","...","web","reset","captureFromUrl","4101210cQrHfs","getItem","location","🎯 Sending click event after attribution registration","🔗 Using attributionId from URL (attribution_id):","modules","join","77DseFqt","712324nUcIbI","instance","baseUrl","language","hasClickId","undefined","adstage_attribution_id","getConfig","📊 AdStage Debug: 현재 viewable 추적 상태","development","toAttributionObject","get","AdStage.ads accessed before initialization","API key is required for AdStage initialization","size","AdStage not initialized. Call AdStage.init() first.","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","substring","warn","web-","✅ Auto-tracked click event with tracking params:","now","generateDeviceId","✅ Attribution registered:","tracking_params","setItem","toISOString","_config","width","attribution_id","getInstance","viewableTracker","adstage_device_id","init","clearAdViewable","debug","track","162mmbnJQ","⏭️ Skipping click event (duplicate or no click ID)","toString","🌐 API endpoint configured:","hash","channel","8560aolBFy","apiKey","config","hardwareConcurrency","828AbgcVr","isReady","4299670JmfmRX","then","ads","markClickEventSent","events","getTimezoneOffset","📊 Tracking parameters captured:"];return(ye=function(){return t})()}function ve(){var t=["getUserProperties","AdStage not initialized. Call AdStage.init() first.","8PxFVys","warn","531966zIvXuJ","events","4206517MXBrdS","setUserProperties","516371UHTBrZ","7067790RokbHh","873588zsZrdX","170312ZTUtUY","2adUZsk","track","3556940YhQTSR","resolve","isReady"];return(ve=function(){return t})()}function Ie(t,e){var n=ve();return(Ie=function(t,e){return n[t-=399]})(t,e)}function be(t,e){var n=Ie;return me.isReady()?me[n(402)][n(410)](t,e):(console.warn("AdStage not initialized. Call AdStage.init() first."),Promise[n(412)]())}function we(t){var e=Ie;me[e(413)]()?me[e(402)][e(404)](t):console[e(400)]("AdStage not initialized. Call AdStage.init() first.")}function ke(){var t=Ie;if(me.isReady())return me[t(402)][t(414)]();console[t(400)](t(415))}me[fe(228)]={clearAllViewable:()=>{const t=fe;at.clear(),console.log(t(209))},clearAdViewable:(t,e)=>{const n=fe;at[n(227)](t,e),console[n(178)](n(250)+t+"("+e+")의 viewable 추적 초기화됨")},getViewableStatus:()=>{const t=fe;console[t(178)](t(201),{trackedCount:at[t(224)][t(207)],trackedItems:Array.from(at[t(224)])})}},function(){for(var t=Ie,e=ve();;)try{if(368542===parseInt(t(405))/1*(-parseInt(t(409))/2)+parseInt(t(401))/3+-parseInt(t(408))/4+parseInt(t(411))/5+-parseInt(t(407))/6+parseInt(t(403))/7*(-parseInt(t(399))/8)+parseInt(t(406))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Se,Ee={exports:{}},xe={},Ae={exports:{}},Ce={};Ae.exports=function(){if(Se)return Ce;Se=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function y(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var v=y.prototype=new m;v.constructor=y,h(v,g.prototype),v.isPureReactComponent=!0;var I=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,n,r){var o,i={},s=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)b.call(n,o)&&!k.hasOwnProperty(o)&&(i[o]=n[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:t,type:e,key:s,ref:a,props:i,_owner:w.current}}function E(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function C(n,r,o,i,s){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return s=s(c=n),n=""===i?"."+A(c,0):i,I(s)?(o="",null!=n&&(o=n.replace(x,"$&/")+"/"),C(s,r,o,"",function(t){return t})):null!=s&&(E(s)&&(s=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(x,"$&/")+"/")+n)),r.push(s)),1;if(c=0,i=""===i?".":i+":",I(n))for(var l=0;l<n.length;l++){var d=i+A(a=n[l],l);c+=C(a,r,o,d,s)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof d)for(n=d.call(n),l=0;!(a=n.next()).done;)c+=C(a=a.value,r,o,d=i+A(a,l++),s);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function T(t,e,n){if(null==t)return t;var r=[],o=0;return C(t,r,"","",function(t){return e.call(n,t,o++)}),r}function _(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var R={current:null},D={transition:null},P={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:D,ReactCurrentOwner:w};function U(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:T,forEach:function(t,e,n){T(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return T(t,function(){e++}),e},toArray:function(t){return T(t,function(t){return t})||[]},only:function(t){if(!E(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Ce.Component=g,Ce.Fragment=n,Ce.Profiler=o,Ce.PureComponent=y,Ce.StrictMode=r,Ce.Suspense=c,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,Ce.act=U,Ce.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(s=n.ref,a=w.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)b.call(n,l)&&!k.hasOwnProperty(l)&&(o[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:t,type:e.type,key:i,ref:s,props:o,_owner:a}},Ce.createContext=function(t){return(t={$$typeof:s,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:t},t.Consumer=t},Ce.createElement=S,Ce.createFactory=function(t){var e=S.bind(null,t);return e.type=t,e},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(t){return{$$typeof:a,render:t}},Ce.isValidElement=E,Ce.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:_}},Ce.memo=function(t,e){return{$$typeof:l,type:t,compare:void 0===e?null:e}},Ce.startTransition=function(t){var e=D.transition;D.transition={};try{t()}finally{D.transition=e}},Ce.unstable_act=U,Ce.useCallback=function(t,e){return R.current.useCallback(t,e)},Ce.useContext=function(t){return R.current.useContext(t)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(t){return R.current.useDeferredValue(t)},Ce.useEffect=function(t,e){return R.current.useEffect(t,e)},Ce.useId=function(){return R.current.useId()},Ce.useImperativeHandle=function(t,e,n){return R.current.useImperativeHandle(t,e,n)},Ce.useInsertionEffect=function(t,e){return R.current.useInsertionEffect(t,e)},Ce.useLayoutEffect=function(t,e){return R.current.useLayoutEffect(t,e)},Ce.useMemo=function(t,e){return R.current.useMemo(t,e)},Ce.useReducer=function(t,e,n){return R.current.useReducer(t,e,n)},Ce.useRef=function(t){return R.current.useRef(t)},Ce.useState=function(t){return R.current.useState(t)},Ce.useSyncExternalStore=function(t,e,n){return R.current.useSyncExternalStore(t,e,n)},Ce.useTransition=function(){return R.current.useTransition()},Ce.version="18.3.1",Ce}();var Te,_e=Ae.exports;
1
+ var t,e,n,r,o,i,s,a,c,l,d,u;function p(t,e){var n=h();return(p=function(t,e){return n[t-=344]})(t,e)}function h(){var t=["543963aZsTbK","8UhDVJH","CLICK","3092850NzBoXa","POPUP","TEXT","DESKTOP","NATIVE","1632630lLKNXV","4649472RhfcdW","INTERSTITIAL","6175113ycCowV","TABLET","WEB","BANNER","MOBILE","VIDEO","1019187BDcUDX","17832384amzxZz","4ZlQlkN","VIEWABLE"];return(h=function(){return t})()}!function(){for(var t=p,e=h();;)try{if(665803===-parseInt(t(347))/1+parseInt(t(349))/2*(-parseInt(t(351))/3)+-parseInt(t(360))/4+parseInt(t(354))/5+-parseInt(t(359))/6+-parseInt(t(362))/7*(-parseInt(t(352))/8)+parseInt(t(348))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=p)(344)]=n(344),e[n(355)]=n(355),e.INTERSTITIAL=n(361),e.NATIVE=n(358),e[n(346)]=n(346),e[n(356)]=n(356),(o=r||(r={}))[(i=p)(364)]=i(364),o[i(345)]=i(345),(a=s||(s={}))[(c=p)(350)]=c(350),a[c(353)]=c(353),(d=l||(l={}))[(u=p)(357)]=u(357),d[u(345)]=u(345),d[u(363)]=u(363);const f=g;function g(t,e){const n=m();return(g=function(t,e){return n[t-=447]})(t,e)}function m(){const t=["DOMContentLoaded","waitForDOM","safeWindowOpen","getScrollInfo","innerHeight","safeRemoveClass",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"safeQuerySelectorAll","safeRemoveChild",'❌ 컨테이너를 찾을 수 없습니다: "',"safeQuerySelector","loading","canUseDOM","from","error","getViewportInfo","getElementById","getDocumentProperty","ms 경과)","✅ 컨테이너 즉시 발견: ","setProperty","getWindowProperty","4379712jpQxQq","undefined","referrer","removeEventListener","isBrowser","querySelector","open","126nhfTqU","devicePixelRatio","번 시도)","getPageInfo","innerWidth","2262501IOjMQW","classList","safeAddClass","innerHTML","pageXOffset","safeAppendChild","waitForElement","entries","76284WnxIUj","safeSetInnerHTML","1456076WSRTdb","readyState","✅ 컨테이너 발견: ","287679GDQAHJ","safeSetTextContent","isDOMReady",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"log","style","번째 시도, ","safeApplyStyles","pageYOffset","min","safeAddEventListener","10uIjbOT","waitForElements","⏳ 컨테이너 대기 중: ","isSSR","147063pbmnim","getComputedStyle","DOM을 사용할 수 없는 환경입니다.","pow","add","addEventListener","textContent","ceil","querySelectorAll","safeGetElementById","1264164opzcuc"];return(m=function(){return t})()}!function(){const t=g,e=m();for(;;)try{if(542225===-parseInt(t(481))/1+parseInt(t(476))/2+parseInt(t(506))/3+-parseInt(t(478))/4*(-parseInt(t(492))/5)+-parseInt(t(463))/6*(-parseInt(t(496))/7)+-parseInt(t(456))/8+-parseInt(t(468))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class y{static[f(460)](){return typeof window!==f(457)&&"undefined"!=typeof document}static[f(495)](){return!this[f(460)]()}static[f(519)](){const t=f;return this[t(460)]()&&void 0!==document[t(479)]}static[f(505)](t){const e=f;return this[e(519)]()?document[e(450)](t):null}static[f(517)](t){const e=f;return this[e(519)]()?document[e(461)](t):null}static[f(514)](t){const e=f;return this[e(519)]()?Array[e(447)](document[e(504)](t)):[]}static safeCreateElement(t){return this[f(519)]()?document.createElement(t):null}static[f(491)](t,e,n,r){const o=f;this[o(519)]()&&t&&t[o(501)](e,n,r)}static safeRemoveEventListener(t,e,n,r){const o=f;this[o(519)]()&&t&&t[o(459)](e,n,r)}static[f(455)](t,e){return this[f(460)]()?window[t]??e:e}static[f(451)](t,e){return this[f(519)]()?document[t]??e:e}static[f(509)](t,e,n){const r=f;return this[r(460)]()?window[r(462)](t,e,n):null}static safeGetComputedStyle(t){const e=f;return this.isBrowser()&&t?window[e(497)](t):null}static[f(483)](){const t=f;return!!this[t(519)]()&&document[t(479)]!==t(518)}static[f(508)](){return new Promise(t=>{const e=g;this[e(519)]()?this.isDOMReady()?t():this[e(491)](document,e(507),()=>t()):t()})}static[f(488)](t,e){const n=f;this[n(519)]()&&t&&Object[n(475)](e).forEach(([e,r])=>{const o=n;t[o(486)][o(454)](e,r)})}static[f(470)](t,e){const n=f;this[n(519)]()&&t&&t.classList[n(500)](e)}static[f(512)](t,e){const n=f;this.canUseDOM()&&t&&t[n(469)].remove(e)}static[f(482)](t,e){const n=f;this[n(519)]()&&t&&(t[n(502)]=e)}static[f(477)](t,e){const n=f;this[n(519)]()&&t&&(t[n(471)]=e)}static[f(473)](t,e){this[f(519)]()&&t&&e&&t.appendChild(e)}static[f(515)](t,e){this.canUseDOM()&&t&&e&&t.removeChild(e)}static[f(466)](){const t=f;return{url:this[t(455)]("location",{href:""}).href,title:this.getDocumentProperty("title",""),referrer:this[t(451)](t(458),"")}}static[f(449)](){const t=f;return{width:this[t(455)](t(467),0),height:this[t(455)](t(511),0),pixelRatio:this[t(455)](t(464),1)}}static[f(510)](){const t=f;return{scrollTop:this[t(519)]()?window[t(489)]||document.documentElement.scrollTop:0,scrollLeft:this[t(455)](t(472),0)}}static async[f(474)](t,e={}){const n=f,{timeout:r=3e3,retryInterval:o=100,debug:i=!1}=e;if(!this[n(519)]())throw new Error(n(498));const s=document[n(450)](t);return s?(i&&console[n(485)](n(453)+t),s):(i&&console[n(485)]("⏳ 컨테이너 대기 시작: "+t+" (최대 "+r+"ms)"),new Promise((e,s)=>{const a=n;let c=0;const l=Math[a(503)](r/o),d=()=>{const n=a;c++;const u=document[n(450)](t);if(u)return i&&console.log(n(480)+t+" ("+c+n(487)+c*o+n(452)),void e(u);if(c>=l){const e=n(516)+t+n(484)+t+n(513)+r+"ms ("+c+n(465);return i&&console[n(448)](e),void s(new Error(e))}i&&c%10==0&&console[n(485)](n(494)+t+" ("+c+"/"+l+")");const p=Math[n(490)](o*Math[n(499)](1.2,c),500);setTimeout(d,p)};setTimeout(d,o)}))}static async[f(493)](t,e={}){const n=f,r=t.map(t=>this[n(474)](t,e));return Promise.all(r)}}const v=I;function I(t,e){const n=b();return(I=function(t,e){return n[t-=323]})(t,e)}function b(){const t=["589449FTVGRy","2099880TYyLFR","800140xvfmYv","3.0.14","30DHFfew","400752irHAWf","undefined","userAgent","750ofbDXR","4FAILLb","12870IxcXpp","3846JXNqEA","AdStageSDK/","743048emAuay"];return(b=function(){return t})()}!function(){const t=I,e=b();for(;;)try{if(221266===-parseInt(t(324))/1*(-parseInt(t(326))/2)+parseInt(t(334))/3+parseInt(t(328))/4+parseInt(t(331))/5+parseInt(t(333))/6*(-parseInt(t(329))/7)+parseInt(t(330))/8+-parseInt(t(325))/9*(parseInt(t(323))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const w=v(332);function k(){return w}function E(t,e){const n=S();return(E=function(t,e){return n[t-=161]})(t,e)}const x=E;function S(){const t=["resolvedOptions","platform","getViewportInfo","28037940MNaBkA","device_"," .adstage-slider-wrapper","3551007pjstJx","session_","ios","296eUGIRg",",y:","ssr_device_","toString","generateDeviceId","collectDeviceInfo","adstage_session_id","SSR","width","1124497khiPKF","5517xPBnrh","18680LZDAMp","getScrollInfo","setItem","substr","100RCfLUA","261028kgvFpz","3299298NfjmCz","getSlotPosition","DateTimeFormat","unknown","scrollTop","now","web","top","height","UTC","safeGetElementById",'[data-adstage-slot-id="',"ssr_session_","14eSttlI","random","effectiveType","userAgent","isBrowser","6602YFRDWr","adstage_device_id","test","getPlatform","getItem","safeQuerySelector","colorDepth","95xnMZkh","round","left","isMobile","1.0.0","pixelRatio","generateSessionId"];return(S=function(){return t})()}!function(){const t=E,e=S();for(;;)try{if(724932===-parseInt(t(173))/1*(parseInt(t(208))/2)+-parseInt(t(170))/3+-parseInt(t(189))/4*(-parseInt(t(215))/5)+parseInt(t(190))/6*(-parseInt(t(203))/7)+-parseInt(t(184))/8*(-parseInt(t(183))/9)+parseInt(t(188))/10*(-parseInt(t(182))/11)+parseInt(t(167))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class A{static[x(177)](){const t=x;if(!y[t(207)]())return t(175)+Date.now();const e=localStorage.getItem("adstage_device_id");if(e)return e;const n=t(168)+Math[t(204)]()[t(176)](36)[t(187)](2,9)+"_"+Date[t(195)]();return localStorage[t(186)](t(209),n),n}static[x(163)](){const t=x;if(!y.isBrowser())return t(202)+Date[t(195)]();const e=sessionStorage[t(212)](t(179));if(e)return e;const n=t(171)+Math[t(204)]()[t(176)](36)[t(187)](2,9)+"_"+Date[t(195)]();return sessionStorage[t(186)](t(179),n),n}static isMobile(){const t=x;return!!y.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(210)](navigator[t(206)])}static getPlatform(){const t=x;if(!y[t(207)]())return t(196);const e=navigator[t(206)].toLowerCase();return/iphone|ipad|ipod/[t(210)](e)?t(172):/android/[t(210)](e)?"android":A[t(218)]()?"web":"desktop"}static[x(178)](){const t=x,e=y[t(166)]();return{deviceId:A[t(177)](),sessionId:A[t(163)](),osVersion:y[t(207)]()?navigator.platform:t(180),deviceModel:y[t(207)]()?navigator[t(165)]:t(180),appVersion:t(161),sdkVersion:k(),language:y.isBrowser()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:y.isBrowser()?navigator[t(206)]:"SSR",timezone:y[t(207)]()?Intl[t(192)]()[t(164)]().timeZone:t(199),viewportWidth:e.width,viewportHeight:e.height,screenWidth:y[t(207)]()?screen[t(181)]:0,screenHeight:y[t(207)]()?screen[t(198)]:0,colorDepth:y.isBrowser()?screen[t(214)]:24,pixelRatio:e[t(162)],connectionType:y[t(207)]()&&navigator.connection?.[t(205)]||t(193),platform:A[t(211)]()}}static[x(191)](t){const e=x;let n=y[e(200)](t);if(!n){const r=y[e(213)]("#"+t+e(169));r&&(n=r)}if(!n&&(n=y.safeQuerySelector(e(201)+t+'"]')),!n)return e(193);const r=n.getBoundingClientRect(),o=y[e(185)]();return"x:"+Math[e(216)](r[e(217)])+e(174)+Math[e(216)](r[e(197)]+o[e(194)])}}const C=_;function T(){const t=["API key is required","1233OPCJRi","1076238iaSSiP","56160kLmQEj","5940550XFcPfK","4643404sYuuLM","userAgent","10102uphEAP","User-Agent","create","14nkNQlf","undefined","79oejfiK","186324dngJHh","5EwERAR","application/json","6910020QoZhMj"];return(T=function(){return t})()}function _(t,e){const n=T();return(_=function(t,e){return n[t-=333]})(t,e)}!function(){const t=_,e=T();for(;;)try{if(647508===-parseInt(t(344))/1*(-parseInt(t(339))/2)+parseInt(t(334))/3+parseInt(t(337))/4*(-parseInt(t(346))/5)+-parseInt(t(345))/6*(parseInt(t(342))/7)+-parseInt(t(335))/8*(-parseInt(t(333))/9)+parseInt(t(348))/10+-parseInt(t(336))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{static[C(341)](t,e){const n=C;if(!t)throw new Error(n(349));const r={"x-api-key":t,"Content-Type":e?.contentType||n(347)};return typeof navigator!==n(343)&&(r[n(340)]=e?.userAgent||navigator[n(338)]),r}static createForEvents(t,e){const n=C,r=R[n(341)](t);return e?.[n(338)]&&(r["User-Agent"]=e[n(338)]),r}}const D=L;function L(t,e){const n=O();return(L=function(t,e){return n[t-=161]})(t,e)}function O(){const t=["get","✅ Successfully tracked advertisement event: ","45mXZVVO","createForEvents","40370eqVwga","slots"," - ","debug","). Skipping event tracking.","616GCUJlr"," (containerId: ","1940659OqTWXR","containerId","sessionId","statusText","54SZUUZR","status"," for ad ","number","/advertisements/events/","🌐 Full API call details:","53756giENuS","API request failed: ","⚠️ Slot not found for slotId: ","error","VIEWABLE","553132WLkmeQ"," in slot ","⚠️ DOM element not found for slotId: ","height","getPageInfo","66xRXKYq","apiKey","197418qUTWaA","stringify",'[data-adstage-slot-id="',"...","trackAdvertisementEvent","referrer","parseNumericValue","🚀 Sending advertisement event: ","warn","title","🔍 Debug info:","substring","301024sgUrhD","url","48851YpfSLZ","querySelector","POST","🚀 AdvertisementEventTracker: Processing ","deviceId","baseUrl","now","log"];return(O=function(){return t})()}!function(){const t=L,e=O();for(;;)try{if(150345===parseInt(t(184))/1+parseInt(t(163))/2+-parseInt(t(168))/3*(-parseInt(t(213))/4)+-parseInt(t(194))/5*(parseInt(t(170))/6)+parseInt(t(203))/7+parseInt(t(182))/8*(-parseInt(t(207))/9)+parseInt(t(196))/10*(-parseInt(t(201))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class P{constructor(t,e,n,r){const o=L;this.baseUrl=t,this[o(169)]=e,this[o(199)]=n,this.slots=r}async[D(174)](t,e,n){const r=D;try{this[r(199)]&&console[r(191)](r(187)+n+" event for ad "+t+r(164)+e);const o=this[r(197)][r(192)](e);if(!o)return void(this[r(199)]&&console[r(178)](r(215)+e+". Skipping event tracking to prevent incorrect adType."));if(!(document.getElementById(o[r(204)])||document[r(185)](r(172)+e+'"]')))return void(this[r(199)]&&console[r(178)](r(165)+e+r(202)+o.containerId+r(200)));const i=A.collectDeviceInfo(),a={adType:o.adType,platform:i.platform,deviceId:i[r(188)],deviceInfo:i,pageUrl:y[r(167)]()[r(183)],pageTitle:y[r(167)]()[r(179)],referrer:y[r(167)]()[r(175)],slotId:e,slotPosition:A.getSlotPosition(o[r(204)]),slotWidth:P[r(176)](o.width),slotHeight:P[r(176)](o[r(166)]),sessionId:i[r(205)],pageLoadTime:performance[r(190)](),metadata:{eventType:n,sdkVersion:k(),timestamp:Date[r(190)]()},...n===s[r(162)]&&{isViewable:!0,iabCompliant:!0}},c=this[r(189)]+r(211)+t+"/"+n,l=R[r(195)](this[r(169)],a);this.debug&&(console.log(r(177)+n+r(209)+t,{url:c,headers:l,eventData:a}),console[r(191)](r(212),{method:r(186),url:c,hasApiKey:!!this[r(169)],bodySize:JSON.stringify(a).length}));const d=await fetch(c,{method:r(186),headers:l,body:JSON[r(171)](a)});if(this[r(199)]&&console[r(191)]("📡 API Response Status: "+d.status+" "+d[r(206)],{url:c,ok:d.ok}),!d.ok){const t=await d.text();throw new Error(r(214)+d[r(208)]+" "+d[r(206)]+r(198)+t)}this[r(199)]&&console[r(191)](r(193)+n+" for ad "+t)}catch(o){console[r(161)]("❌ Failed to track advertisement event:",o),console[r(161)](r(180),{baseUrl:this.baseUrl,apiKey:this[r(169)]?this.apiKey[r(181)](0,8)+r(173):"NOT_SET",url:this[r(189)]+r(211)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[D(176)](t){if(typeof t===D(210))return t;if("string"==typeof t){const e=parseFloat(t.replace(/px$/,""));return isNaN(e)?0:e}return 0}}var U=z;function z(t,e){var n=B();return(z=function(t,e){return n[t-=394]})(t,e)}function B(){var t=["2209671QtiTAD","5980130tbHbrW","handleIntersection","element","119IwUZYQ","4sLFppR","873760AMOMYY","IntersectionObserver","177384KyGqlF","visibilityState","observe","IntersectionObserver not supported, viewability tracking disabled","observer","isViewableTriggered","860OObNCy","1391808TsyrxD","visible","forEach","destroy","intersectionRatio","1353qPIUAz","warn","disconnect","onViewableCallback","isDocumentVisible","9546EEfPQV","0px"];return(B=function(){return t})()}!function(){for(var t=z,e=B();;)try{if(222442===parseInt(t(403))/1*(-parseInt(t(400))/2)+parseInt(t(415))/3*(-parseInt(t(409))/4)+parseInt(t(401))/5+parseInt(t(420))/6*(-parseInt(t(399))/7)+parseInt(t(410))/8+-parseInt(t(395))/9+parseInt(t(396))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t,e){var n=z;this[n(407)]=null,this[n(408)]=!1,this[n(398)]=t,this.onViewableCallback=e,this.initIntersectionObserver()}initIntersectionObserver(){var t=z;t(402)in window?(this[t(407)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(394)}),this.observer[t(405)](this[t(398)])):console[t(416)](t(406))}[U(397)](t){var e=U;t[e(412)](t=>{var n=e;t[n(414)]>=.5&&this[n(419)]()&&!this[n(408)]&&(this.isViewableTriggered=!0,this[n(418)]&&this[n(418)]())})}[U(419)](){var t=U;return!document.hidden&&document[t(404)]===t(411)}[U(413)](){var t=U;this[t(407)]&&(this[t(407)][t(417)](),this[t(407)]=null)}}const N=V;function V(t,e){const n=F();return(V=function(t,e){return n[t-=319]})(t,e)}function F(){const t=["1069830yLyVCO","/events/register/attribution","https://api.adstage.app","877930KoIBVA","/advertisements/events","1306863hNriQx","210174Yvvonu","/advertisements","setBaseUrl","events","5544940susGyu","getBaseUrl","advertisements","production","baseUrl","2TzRJkn","/advertisements/list","registerAttribution","1235016NdxDnL","7teldad","110Almzbx","5255784gDrEbO","custom","/events/track","track","https://beta-api.adstage.app","list"];return(F=function(){return t})()}!function(){const t=V,e=F();for(;;)try{if(455514===parseInt(t(322))/1+-parseInt(t(334))/2*(parseInt(t(324))/3)+-parseInt(t(337))/4+-parseInt(t(339))/5*(parseInt(t(325))/6)+-parseInt(t(338))/7*(-parseInt(t(340))/8)+-parseInt(t(319))/9+parseInt(t(329))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const j={production:N(321),beta:N(344)},K={advertisements:{list:N(335),detail:N(326),events:N(323)},events:{track:N(342),registerAttribution:N(320)}};class H{constructor(t){const e=N;this[e(331)]={list:()=>""+this.baseUrl+K[e(331)][e(345)],detail:t=>""+this[e(333)]+K[e(331)].detail+"/"+t,events:(t,n)=>""+this.baseUrl+K[e(331)][e(328)]+"/"+t+"/"+n},this.events={track:()=>""+this.baseUrl+K.events[e(343)],registerAttribution:()=>""+this[e(333)]+K.events[e(336)]},this[e(333)]=t||j[e(332)]}[N(327)](t){this[N(333)]=t}[N(330)](){return this[N(333)]}[N(341)](t){return""+this.baseUrl+(t.startsWith("/")?t:"/"+t)}}const W=new H;function q(){var t=["3816954MLTEez","trackSlideViewable","6RQefdw"," (index: 0) in slot: ","1676038iYoste","72GdAjMB","83522RdKybf","47575wVaDFn","1282480YSmuwY","160107zAAODH","🎯 Triggering VIEWABLE event for slide change: ad ","log","VIEWABLE",") in slot: "," (index: ","trackInitialSlideViewable","3255144nrSjag","_id"];return(q=function(){return t})()}var Y=J;function J(t,e){var n=q();return(J=function(t,e){return n[t-=412]})(t,e)}!function(){for(var t=J,e=q();;)try{if(233350===parseInt(t(428))/1+-parseInt(t(425))/2*(parseInt(t(421))/3)+-parseInt(t(427))/4+parseInt(t(426))/5*(-parseInt(t(424))/6)+-parseInt(t(423))/7+parseInt(t(417))/8+parseInt(t(419))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class X{static[Y(420)](t,e,n,r,o=!1){var i=Y;o&&console[i(412)](i(429)+t[i(418)]+i(415)+n+i(414)+e.id),r(t._id,e.id,s.VIEWABLE)}static[Y(416)](t,e,n,r=!1){var o=Y;r&&console.log("🎯 Triggering initial VIEWABLE event: ad "+t[o(418)]+o(422)+e.id),n(t[o(418)],e.id,s[o(413)])}}const G=Z;function Z(t,e){const n=Q();return(Z=function(t,e){return n[t-=143]})(t,e)}function Q(){const t=["stopPropagation","log","addClickEvent","1557105EUCjqX","preventDefault","forEach"," -> ","7186416OirRGL","CLICK","_blank","19UKCkIh","pointer","open","cursor","isClickable","491071KHJglD","20998kfFjqk","1183890YTfNKM","🔗 ","addClickEventsBatch","style","400062eellgP","addEventListener","linkUrl","toLowerCase"," ad clicked: ","_id","129352sbHWvz"];return(Q=function(){return t})()}!function(){const t=Z,e=Q();for(;;)try{if(159222===-parseInt(t(159))/1*(parseInt(t(165))/2)+-parseInt(t(170))/3+parseInt(t(148))/4+-parseInt(t(152))/5+-parseInt(t(166))/6+parseInt(t(164))/7+parseInt(t(156))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[G(151)](t,e,n,r,o=!1,i){const a=G;e[a(144)]&&(t[a(169)][a(162)]="pointer",t.addEventListener("click",t=>{const c=a;if(t[c(153)](),t[c(149)](),r&&r(e[c(147)],n.id,s.CLICK),window[c(161)](e[c(144)],"_blank"),o){const t=i||String(n.adType).toLowerCase();console.log(c(167)+t+c(146)+e._id+c(155)+e[c(144)])}}))}static addClickEventForRenderer(t,e,n,r,o=!1,i){const a=G;e.linkUrl&&(t[a(169)][a(162)]=a(160),t[a(143)]("click",t=>{const c=a;t[c(153)](),t[c(149)]();if(r()(e._id,n.id,s[c(157)]),window[c(161)](e[c(144)],c(158)),o){const t=i||String(n.adType)[c(145)]();console[c(150)](c(167)+t+c(146)+e[c(147)]+c(155)+e[c(144)])}}))}static addClickEventForSlider(t,e,n,r,o=!1,i){this[G(151)](t,e,n,r,o,i)}static[G(163)](t){return Boolean(t[G(144)])}static[G(168)](t,e,n,r,o=!1,i){t[G(154)]((t,s)=>{const a=e[s];a&&this.addClickEvent(t,a,n,r,o,i)})}}const tt=et;function et(t,e){const n=nt();return(et=function(t,e){return n[t-=168]})(t,e)}function nt(){const t=["400375llpxZO","5265488OtPJOK","textContent","getBoundingClientRect","classList","normal","whiteSpace","Text Ad","data-adstage-slot-id","appendChild","borderColor","padding"," Ad","cssText","addEventListener","width","backgroundColor","remove","toLowerCase","changedTouches","autoSlideInterval","200px","3520491akxfWP","createMinimalDotIndicator","flex","addTouchSupport","center","7890YuRZyN","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","white","string","clientX","25668434QHwMMc","adstage-dot","display","opacity","every","setProperty","forEach","videoUrl","src","createSliderContainer","100px","adstage-ad adstage-","#000","none","transition","children","100%","active","touches","querySelectorAll","setAttribute","touchend","1px dashed #ccc","8px","TEXT","body","imageUrl","border","1px solid #666","cover","244466TOOVfq","\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 ","#cccccc","20djFCPH","Banner Ad","translateX(-","className","0.9","20LdEJJI","color","mouseleave","_id","fontSize","1ewTsVX","length","#666666","background","adstage-slide-container","#999999","entries","auto","mouseenter",".adstage-dot","touchstart","button","removeChild","height","0.7","469CqbdSs","touchmove","abs","adType","14px","addClickEventForSlider","hidden","relative","adstage-slider-wrapper","includes","inline-block","createElement","div","style","adstage-dots","click","trackSlideViewable","transform 0.4s ease-out","2767356pPVxBz","video","#f9f9f9"];return(nt=function(){return t})()}!function(){const t=et,e=nt();for(;;)try{if(592502===-parseInt(t(188))/1*(parseInt(t(175))/2)+-parseInt(t(246))/3+parseInt(t(178))/4*(-parseInt(t(224))/5)+parseInt(t(251))/6*(-parseInt(t(203))/7)+parseInt(t(225))/8+-parseInt(t(221))/9*(parseInt(t(183))/10)+parseInt(t(256))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class rt{static createSimpleAdElement(e,n){const r=et,o=document[r(214)](r(215));switch(o[r(181)]=r(267)+String(e[r(206)])[r(242)](),o[r(276)]("data-adstage-ad-id",n[r(186)]),o[r(276)](r(232),e.id),o[r(216)][r(258)]="block",o.style[r(239)]=r(272),o[r(216)][r(201)]=r(195),e[r(206)]){case t.BANNER:if(n[r(171)]){const t=document[r(214)]("img");t[r(264)]=n[r(171)],t[r(216)][r(239)]="100%",t.style[r(201)]=r(195),t[r(216)].objectFit=r(174),o[r(233)](t)}else o[r(216)][r(201)]=r(266),o[r(216)].backgroundColor="#f0f0f0",o[r(216)][r(172)]=r(278),o.textContent=r(179);break;case t.VIDEO:if(n[r(263)]){const t=document[r(214)](r(222));t[r(264)]=n[r(263)],t[r(216)].width="100%",t[r(216)].height=r(195),o[r(233)](t)}else o[r(216)].height=r(245),o[r(216)][r(240)]=r(268),o[r(216)][r(172)]=r(173),o[r(226)]="Video Ad",o.style[r(184)]=r(253);break;case t[r(169)]:if(n[r(226)]){const t=document[r(214)](r(215));t[r(226)]=n.textContent||"",t.style[r(235)]=r(168),t[r(216)][r(187)]=r(207),o.appendChild(t)}else o[r(216)][r(201)]="50px",o.style[r(235)]=r(168),o[r(226)]=r(231);break;default:o[r(216)][r(201)]="100px",o[r(216)][r(172)]=r(278),o[r(216)][r(240)]=r(223),o[r(226)]=e[r(206)]+r(236)}return o}static[tt(265)](e,n,r,o,i=!1){const s=tt,a=document[s(214)]("div");a[s(181)]=s(211);const c={position:s(210),overflow:s(209)};if(e[s(239)]&&0!==e.width){let t;t=typeof e[s(239)]===s(254)&&(e[s(239)][s(212)]("px")||e.width.includes("%"))?e.width:e[s(239)]+"px",c[s(239)]=t,c[s(258)]=s(213)}else c[s(258)]="inline-block";if(e.height&&0!==e[s(201)]){const t=typeof e[s(201)]===s(254)?e[s(201)]:e[s(201)]+"px";c[s(201)]=t}Object[s(194)](c)[s(262)](([t,e])=>{a[s(216)].setProperty(t,e)});const l=!e[s(239)]||0===e[s(239)],d=!e[s(201)]||0===e[s(201)];if(l||d){const t=document[s(214)]("div");if(t[s(216)].cssText=s(252),!l&&e[s(239)]){let n;n="string"==typeof e.width&&(e[s(239)][s(212)]("px")||e[s(239)][s(212)]("%"))?e[s(239)]:e[s(239)]+"px",t[s(216)].width=n,t[s(216)][s(230)]=s(229)}document.body[s(233)](t);let r=0,o=0;n[s(262)](n=>{const i=s,a=this.createSimpleAdElement(e,n);t[i(233)](a);const c=a[i(227)]();c[i(239)]>r&&(r=c[i(239)]),c.height>o&&(o=c[i(201)]),t[i(200)](a)}),l&&r>0&&(a[s(216)][s(239)]=r+"px",c[s(239)]=r+"px"),d&&o>0&&(a[s(216)][s(201)]=o+"px",c.height=o+"px"),document[s(170)][s(200)](t)}const u=[...n,n[0]],p=document[s(214)](s(215));p[s(181)]=s(192);const h={display:s(248),transition:s(220),width:100*u[s(189)]+"%"};e[s(201)]&&0!==e[s(201)]&&(h[s(201)]="100%"),Object[s(194)](h).forEach(([t,e])=>{p.style.setProperty(t,e)}),u[s(262)]((t,n)=>{const r=s,a=document.createElement(r(215));a[r(181)]="adstage-slide";const c={width:100/u.length+"%","flex-shrink":"0",display:r(248),"align-items":"center","justify-content":r(250)};e.height&&0!==e[r(201)]&&(c[r(201)]=r(272)),Object[r(194)](c)[r(262)](([t,e])=>{const n=r;a[n(216)][n(261)](t,e)});const l=this.createSimpleAdElement(e,t);$[r(208)](l,t,e,o,i,String(e[r(206)])[r(242)]()),a[r(233)](l),p[r(233)](a)});const f=n[s(260)](e=>e[s(206)]===t[s(169)])?null:this[s(247)](n[s(189)]);let g=0;const m=n[s(189)],y=1e3*(r?.[s(244)]||3),v=(t,r=!1)=>{const a=s;g=t,p[a(216)][a(270)]=a(r?269:220),p[a(216)].transform=a(180)+100/u[a(189)]*g+"%)";const c=g===m?0:g;if(f){f[a(275)](a(197))[a(262)]((t,e)=>{const n=a,r=t;e===c?(r.classList.add(n(273)),r[n(216)][n(191)]=n(190),r.style[n(234)]=n(190),r[n(216)][n(259)]="1"):(r.classList[n(241)](n(273)),r[n(216)].background="transparent",r[n(216)][n(234)]=n(177),r[n(216)][n(259)]=n(202))})}X[a(219)](n[c],e,c,o,i)},I=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[s(275)](s(197)).forEach((t,e)=>{const n=s;t.addEventListener(n(218),()=>v(e))})}let b=setInterval(()=>{v(g+1),I()},y);return a.addEventListener(s(196),()=>{clearInterval(b)}),a[s(238)](s(185),()=>{b=setInterval(()=>{v(g+1),I()},y)}),this[s(249)](p,v,()=>g,m,I),a[s(233)](p),f&&a[s(233)](f),v(0),(!e.width||0===e[s(239)])&&setTimeout(()=>{const t=s,n=p[t(271)][0];if(n){const r=n[t(271)][0];if(r){const n=r.getBoundingClientRect();a[t(216)][t(239)]=n[t(239)]+"px",(!e.height||0===e.height)&&(a[t(216)][t(201)]=n[t(201)]+"px"),a[t(216)].overflow="hidden"}}},10),a}static[tt(247)](t){const e=tt,n=document[e(214)]("div");n[e(181)]=e(217),n.style[e(237)]="\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 r=0;r<t;r++){const t=document[e(214)](e(199));t.className=e(257),t[e(216)].cssText=e(176),t.addEventListener(e(196),()=>{const n=e;!t[n(228)].contains("active")&&(t[n(216)][n(234)]=n(193),t.style[n(259)]=n(182))}),t[e(238)](e(185),()=>{const n=e;!t[n(228)].contains(n(273))&&(t[n(216)][n(234)]=n(177),t[n(216)][n(259)]=n(202))}),n[e(233)](t)}return n}static addTouchSupport(t,e,n,r,o){const i=tt;let s=0,a=!1;t.addEventListener(i(198),t=>{const e=i;s=t[e(274)][0][e(255)],a=!0}),t.addEventListener(i(204),t=>{a&&t.preventDefault()}),t.addEventListener(i(277),t=>{const c=i;if(!a)return;a=!1;const l=t[c(243)][0][c(255)],d=s-l;if(Math[c(205)](d)>50){const t=n();if(d>0){e(t+1),o&&o()}else{e(t>0?t-1:r-1)}}})}}const ot=st;function it(){const t=["clear","add"," in slot ","18fGYLVS","1657248kcUrWM","has","2682463BifTAB","viewableTracker","delete","9705720ETGssL","isDuplicateViewable","323104BzIJbo","154316Bthfyk","clearAdViewable","462733vnIbZj","1682920VzTlcU","log"];return(it=function(){return t})()}function st(t,e){const n=it();return(st=function(t,e){return n[t-=232]})(t,e)}!function(){const t=st,e=it();for(;;)try{if(286921===parseInt(t(246))/1+-parseInt(t(243))/2+parseInt(t(235))/3*(-parseInt(t(244))/4)+-parseInt(t(247))/5+-parseInt(t(236))/6+-parseInt(t(238))/7+parseInt(t(241))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class at{static[ot(242)](t,e,n=!1){const r=ot,o=t+"_"+e;return at[r(239)][r(237)](o)?(n&&console.log("Duplicate viewable blocked for ad "+t+r(234)+e),!0):(at[r(239)][r(233)](o),n&&console[r(248)]("✅ New viewable recorded for ad "+t+r(234)+e),!1)}static clear(){const t=ot;at[t(239)][t(232)]()}static[ot(245)](t,e){const n=ot,r=t+"_"+e;at[n(239)][n(240)](r)}}at[ot(239)]=new Set;const ct=dt;function lt(){const t=["2px dashed #e74c3c","#e74c3c",'[class*="ad"]'," container collapsed (","log","rgba(0, 0, 0, 0.02)","rgba(231, 76, 60, 0.1)","📏 Using 100% height (container: ","getDefaultHeight","opacity","center","innerHTML","color","generic","parentElement","isDuplicateViewable"," container: ","6px","width","transparent","true","fontFamily","px)","15ApBsnR",'div[style*="min-height"]',"renderFallback","data-adstage-slot","1294uhARzv","❌ Failed to track ","debug","4px"," in slot ","isEmpty","<span>Loading ","): ",'[class*="banner"]',"advertisementEventTracker","setAttribute",'[data-adstage-container="true"]'," event for ad ","height","adType","1px dashed #ccc"," event","alignItems","hasAttribute"," for ","🚫 Duplicate viewable blocked for ad "," slot: ","monospace","none","📏 Using default height ","⚠️ "," ad...</span>","data-adstage-container","fontSize","classList",'div[style*="height"]',"createPlaceholder","getElementById","unknown","style","data-adstage-empty","getComputedStyle","borderRadius","border","calculateAdSize","trackAdvertisementEvent","auto","278OMbMwC","querySelector",") - Mode: ","createEmptyContainer","9843911DDKyFt","#666","string","2420280OYzclk","warn",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"getAttribute","error"," for ad ","\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 ",'[class*="container"]',"toLowerCase","adstage-class","containerId","getContainerHeight","applyPlaceholderStyle","contains","display","cssText","backgroundColor",".adstage-slot","954vWRxwL","advertisement","flex","appendChild","8YEbSEC","44830kjQAhO","adstage-official","🔄 Starting advertisement event tracking: ","454472cynpYq","createElement","✅ New viewable recorded for ad ","createEventTrackingCallback",".adstage-","11px","className","100%","justifyContent","3811437rNhoSZ","number","closest","div","📊 Advertisement event tracked: ","2006712HaJTuI","filter","📦 Placeholder created for ","adstage-slot adstage-empty adstage-","placeholderMode","invisible"];return(lt=function(){return t})()}function dt(t,e){const n=lt();return(dt=function(t,e){return n[t-=226]})(t,e)}!function(){const t=dt,e=lt();for(;;)try{if(305496===parseInt(t(292))/1*(parseInt(t(334))/2)+parseInt(t(288))/3*(-parseInt(t(245))/4)+parseInt(t(341))/5+parseInt(t(259))/6+-parseInt(t(254))/7*(parseInt(t(241))/8)+parseInt(t(237))/9*(-parseInt(t(242))/10)+parseInt(t(338))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{constructor(t,e=!1,n){const r=dt;this[r(306)]=t,this[r(294)]=e,this[r(301)]=n||null}[ct(323)](t,e,n,r){const o=ct,i=document.createElement(o(257));i.id=e,i[o(251)]="adstage-slot adstage-"+String(this[o(306)])[o(227)](),i[o(302)](o(319),o(285)),i[o(302)]("data-adstage-type",String(this[o(306)])),i[o(302)](o(291),e);const{width:s,height:a}=this.calculateAdSize(t,n,r)||{width:o(252),height:this[o(273)]()};i.style[o(283)]=s,i[o(326)][o(305)]=a;const c=r?.[o(263)]||n[o(263)]||"invisible";this[o(231)](i,c),t[o(240)](i),this[o(294)]&&console[o(269)](o(261)+this[o(306)]+o(313)+e+" ("+s+" x "+a+o(336)+c)}[ct(231)](t,e){const n=ct;switch(e){case n(264):t[n(326)].backgroundColor=n(284),t.style[n(330)]=n(315),t[n(326)][n(274)]="0",t[n(276)]="";break;case"transparent":t[n(326)][n(235)]=n(284),t.style[n(330)]=n(315),t[n(326)][n(233)]="block",t[n(276)]="";break;case"subtle":t[n(326)][n(235)]=n(270),t.style[n(330)]="none",t[n(326)].borderRadius=n(295),t[n(326)][n(233)]=n(239),t[n(326)][n(309)]=n(275),t[n(326)].justifyContent=n(275),t[n(276)]=n(343);break;case"minimal":t[n(326)][n(235)]="rgba(248, 249, 250, 0.5)",t[n(326)][n(330)]="1px solid rgba(0, 0, 0, 0.08)",t[n(326)][n(329)]=n(282),t[n(326)].display=n(239),t[n(326)][n(309)]=n(275),t[n(326)][n(253)]=n(275),t[n(276)]='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case n(294):t[n(326)][n(330)]=n(265),t.style[n(233)]="flex",t.style.alignItems=n(275),t.style.justifyContent=n(275),t.style[n(235)]=n(271),t[n(326)][n(277)]=n(266),t[n(326)][n(286)]=n(314),t[n(326)][n(320)]=n(250),t.innerHTML=n(298)+this[n(306)]+n(318);break;default:t[n(326)][n(330)]=n(307),t[n(326)][n(233)]=n(239),t.style[n(309)]="center",t.style[n(253)]="center",t[n(326)].backgroundColor="#f9f9f9",t[n(326)][n(277)]=n(339),t[n(276)]=n(298)+this.adType+" ad...</span>"}}[ct(331)](t,e,n){const r=ct,o=e[r(283)],i=e[r(305)];let s,a;if(s=typeof o===r(255)?o+"px":typeof o===r(340)?o:r(252),typeof i===r(255))a=i+"px";else if("string"==typeof i&&"100%"!==i&&i!==r(333))a=i;else{const e=this[r(230)](t);e>0?(a="100%",(n?.debug||this[r(294)])&&console[r(269)](r(272)+e+r(287))):(a=this.getDefaultHeight(),(n?.[r(294)]||this[r(294)])&&console[r(269)](r(316)+a+r(311)+this.adType))}return{width:s,height:a}}[ct(230)](t){const e=ct,n=window[e(328)](t),r=parseFloat(n[e(305)]);if(!r||0===r){const r=parseFloat(n.minHeight);if(r>0)return r;if(t[e(326)][e(305)]&&t.style[e(305)]!==e(333)){const n=parseFloat(t.style[e(305)]);if(n>0)return n}const o=t[e(344)](e(305));if(o){const t=parseFloat(o);if(t>0)return t}}return r||0}[ct(248)](){return async(t,e,n)=>{const r=dt;if(n===s.VIEWABLE){if(at[r(280)](t,e,this[r(294)]))return void(this[r(294)]&&console[r(269)](r(312)+t+r(296)+e));this.debug&&console[r(269)](r(247)+t+" in slot "+e)}if(this[r(301)])try{this[r(294)]&&console.log(r(244)+n+r(346)+t+" in slot "+e),await this[r(301)][r(332)](t,e,n),this.debug&&console.log(r(258)+n+r(346)+t+r(296)+e)}catch(e){this[r(294)]&&console[r(345)](r(293)+n+r(304)+t+":",e)}else this[r(294)]&&console[r(342)]("⚠️ AdvertisementEventTracker not available for "+n+r(308))}}[ct(290)](t){const e=ct,n=document.getElementById(t.id);if(n){const r=[...[n[e(335)](e(303)),n[e(256)]('[data-adstage-container="true"]'),n].filter(t=>t&&t[e(310)](e(319))),...[n[e(256)](e(236)),n.closest(e(249)+String(this[e(306)])[e(227)]()),n[e(256)](e(267)),n[e(256)](e(300)),n.closest(e(226)),n[e(256)](e(322)),n.closest(e(289)),n[e(279)]][e(260)](Boolean)][0];if(r){let n=e(325);n=r[e(310)](e(319))?e(243):r[e(321)][e(232)]("adstage-slot")?e(228):e(278),r[e(326)][e(234)]+=e(347),r.innerHTML="",r[e(302)](e(327),e(285)),this.debug&&console.warn(e(317)+this.adType+e(268)+n+e(299)+t.id,r)}else this.createEmptyContainer(t)}t[e(238)]=void 0,t[e(297)]=!0}[ct(337)](t){const e=ct,n=document[e(324)](t[e(229)]);if(n){n.innerHTML="";const r=document[e(246)](e(257));r.id=t.id,r[e(251)]=e(262)+String(this[e(306)])[e(227)](),r.setAttribute(e(319),e(285)),r[e(302)]("data-adstage-empty",e(285)),r[e(302)](e(291),t.id),r[e(326)][e(234)]="\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",n[e(240)](r),this[e(294)]&&console[e(342)]("⚠️ Created empty "+this[e(306)]+e(281)+t.id)}}[ct(269)](t,...e){const n=ct;this[n(294)]&&console.log("["+this[n(306)]+"] "+t,...e)}}const pt=ht;function ht(t,e){const n=ft();return(ht=function(t,e){return n[t-=416]})(t,e)}function ft(){const t=["createSliderContainer","warn","getBoundingClientRect","center","loadImageDimensions","className","onload","map","calculateAdSize","debug","reduce","Banner","toFixed","BANNER","set","#f0f0f0","Failed to calculate optimal banner size, using defaults:","values","round","🎠 Banner carousel created for slot: ","alt","parentElement","from","contain","img","objectPosition","250px","height","log","37146jTVsoa","appendChild",", ratio=","16:9","containerId","value","Image URL is not provided","Banner Ad","Container not found: ","div","style","485310CAwacI","calculateOptimalContainerSize","✅ Optimized banner image rendered for ad: ","common","4:3","8px","548156aRcIDu","get","2529576Kwhiyb",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>'," with ","allSettled","📸 Banner image dimensions: ","title","renderOptimizedBannerImage","config","9oDZIdY","display","cover","status","average","objectFit","createEventTrackingCallback","1:1","🔧 Banner container optimized for ","📊 Using standard ratio: ","slideInterval","158370JsxFqF","innerHTML","100%","filter"," (avg: ","optimizedHeight","length","naturalHeight","getDefaultHeight","❌ Failed to load optimized banner image:","aspectRatio","3:2","ratio","optimizeContainerForBannerAds","</div>","🎨 Banner image style applied: objectFit=","onerror","count","src","dominant","width","applyOptimizedImageStyle","abs","7135248EgAZfq","toString","imageUrl","6444256oMMcmV","block","borderRadius","getElementById"," ads: ","📐 Optimal banner container calculated: ","backgroundColor","forEach","addClickEventForRenderer","renderAdElement","naturalWidth","max","56hDoVtV","selectOptimalSizeStrategy","fulfilled","calculateOptimalHeight"];return(ft=function(){return t})()}!function(){const t=ht,e=ft();for(;;)try{if(969742===parseInt(t(484))/1*(-parseInt(t(451))/2)+-parseInt(t(522))/3+parseInt(t(439))/4+-parseInt(t(495))/5+-parseInt(t(503))/6+parseInt(t(501))/7+-parseInt(t(436))/8*(-parseInt(t(511))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt extends ut{constructor(e=!1,n){super(t[ht(468)],e,n)}[pt(421)](){return pt(481)}async[pt(448)](t,e){const n=pt,r=document[n(442)](t[n(488)]);if(!r)return;const o=document.createElement(n(493));o[n(460)]="adstage-ad adstage-banner-ad";const i=t[n(418)],s=r[n(476)]||r;if(i)o[n(494)][n(433)]=n(524),o[n(494)][n(482)]=String(i);else{const e=t.config,r={width:e?.width,height:e?.[n(482)]},{width:i,height:a}=this[n(463)](s,r,{debug:this[n(464)]});o[n(494)][n(433)]=i,o[n(494)][n(482)]=a}e[n(438)]?await this[n(509)](o,e,t):o[n(523)]="<div>"+(e.title||n(491))+n(427),$.addClickEventForRenderer(o,e,t,()=>this[n(517)](),this[n(464)],n(466)),r[n(523)]="",r[n(485)](o)}async renderMultipleAds(t,e){const n=pt,r=document[n(442)](t[n(488)]);if(!r)throw new Error(n(492)+t[n(488)]);await this[n(426)](t,e);const o=this[n(517)](),i={autoSlideInterval:(t[n(510)]?.[n(521)]||5e3)/1e3,...t[n(510)],optimizedHeight:t[n(418)],aspectRatio:t.aspectRatio},s=rt[n(455)](t,e,i,o,this[n(464)]);s&&(r[n(523)]="",r[n(485)](s),this[n(464)]&&console.log(n(474)+t.id+n(505)+e[n(419)]+" ads (optimized: "+(t[n(418)]||"default")+")"))}async[pt(496)](t,e){const n=pt;if(!t[n(419)])return{width:"100%",height:this[n(421)](),aspectRatio:16/9};try{const r=(await Promise[n(506)](t[n(416)](t=>t[n(438)])[n(462)](t=>this[n(459)](t[n(438)]))))[n(416)](t=>t[n(514)]===n(453)).map(t=>t[n(489)]);if(0===r[n(419)])return{width:"100%",height:this[n(421)](),aspectRatio:16/9};const o=this[n(452)](r),i=this[n(454)](r,e,o);return this.debug&&console[n(483)](n(444)+e+"x"+i+" (strategy: "+o+")"),{width:n(524),height:i+"px",aspectRatio:e/i}}catch(t){return console[n(456)](n(471),t),{width:n(524),height:this[n(421)](),aspectRatio:16/9}}}async[pt(426)](t,e){const n=pt;try{const r=document[n(442)](t.containerId),o=document[n(442)](t.id);if(!r||!o)return;const i=r[n(457)]().width||300,s=await this[n(496)](e,i);o.style[n(482)]=s[n(482)],t[n(418)]=s[n(482)],t[n(423)]=s[n(423)],this[n(464)]&&console[n(483)](n(519)+e[n(419)]+n(443)+s[n(482)])}catch(t){console[n(456)]("Banner container optimization failed, using default size:",t)}}[pt(452)](t){const e=pt,n=t[e(462)](t=>t[e(433)]/t[e(482)]),r=new Map;n.forEach(t=>{const n=e,o=(Math[n(473)](10*t)/10)[n(437)]();r.set(o,(r.get(o)||0)+1)});const o=Math[e(450)](...r[e(472)]()),i=t[e(419)];if(o/i>=.7)return e(432);const s=[16/9,4/3,1,1.5],a=n.filter(t=>s.some(n=>Math[e(435)](t-n)<.1))[e(419)];return e(a/i>=.5?498:515)}[pt(454)](t,e,n){const r=pt,o=t[r(462)](t=>t[r(433)]/t[r(482)]);switch(n){case r(432):{const t=new Map;o[r(446)](e=>{const n=r,o=Math[n(473)](10*e)/10,i=o[n(437)](),s=t[n(502)](i);s?s[n(430)]++:t[n(469)](i,{ratio:o,count:1})});const n=Array[r(477)](t[r(472)]())[r(465)]((t,e)=>e.count>t[r(430)]?e:t);return Math[r(473)](e/n[r(425)])}case"common":{const t=[{ratio:16/9,name:r(487)},{ratio:4/3,name:r(499)},{ratio:1,name:r(518)},{ratio:1.5,name:r(424)}],n=o[r(465)]((t,e)=>t+e,0)/o[r(419)],i=t.reduce((t,e)=>Math.abs(e[r(425)]-n)<Math[r(435)](t[r(425)]-n)?e:t);return this[r(464)]&&console[r(483)](r(520)+i.name+r(417)+n[r(467)](2)+")"),Math[r(473)](e/i[r(425)])}case r(515):default:{const t=o[r(465)]((t,e)=>t+e,0)/o[r(419)];return Math.round(e/t)}}}loadImageDimensions(t){return new Promise((e,n)=>{const r=ht,o=new Image;o[r(461)]=()=>{const t=r;e({width:o[t(449)],height:o[t(420)]})},o[r(429)]=()=>{n(new Error("Failed to load image: "+t))},o.src=t})}applyOptimizedImageStyle(t,e,n){const r=pt,o=e/n;Math.abs(o-1)<.1?(t[r(494)][r(516)]=r(513),t.style[r(480)]=r(458)):o>1.3?(t[r(494)][r(516)]=r(478),t[r(494)][r(480)]="center",t.style[r(445)]=r(470)):o<.7?(t[r(494)][r(516)]="cover",t[r(494)][r(480)]=r(458)):(t[r(494)][r(516)]=r(513),t.style[r(480)]=r(458)),this[r(464)]&&console.log(r(428)+t[r(494)].objectFit+r(486)+o[r(467)](2))}async renderOptimizedBannerImage(t,e,n){const r=pt,o=document.createElement(r(479));o[r(494)].width=r(524),o[r(494)][r(482)]=r(524),o.style[r(512)]=r(440),o[r(494)][r(441)]=r(500),o[r(475)]=e[r(508)]||"Banner Advertisement",t[r(523)]=r(504);try{if(!e[r(438)])throw new Error(r(490));const i=await this.loadImageDimensions(e[r(438)]),s=t[r(457)](),a=s[r(433)],c=s[r(482)];this[r(464)]&&(console[r(483)](r(507)+i[r(433)]+"x"+i[r(482)]),console[r(483)]("📦 Banner container dimensions: "+a+"x"+c));const l=i[r(433)]/i.height,d=a/c;return this[r(434)](o,l,d),o[r(431)]=e[r(438)],t[r(523)]="",t[r(485)](o),$[r(447)](o,e,n,()=>this[r(517)](),this[r(464)],r(466)),this[r(464)]&&console.log(r(497)+e._id),o}catch(i){return console.error(r(422),i),e.imageUrl&&(o[r(431)]=e.imageUrl,o[r(494)][r(516)]=r(513),o[r(494)][r(480)]="center",t[r(523)]="",t[r(485)](o),$[r(447)](o,e,n,()=>this.createEventTrackingCallback(),this.debug,r(466))),o}}}const mt=yt;function yt(t,e){const n=It();return(yt=function(t,e){return n[t-=234]})(t,e)}!function(){const t=yt,e=It();for(;;)try{if(708137===-parseInt(t(239))/1*(-parseInt(t(242))/2)+parseInt(t(234))/3+parseInt(t(240))/4*(parseInt(t(237))/5)+-parseInt(t(236))/6+parseInt(t(245))/7+-parseInt(t(243))/8+parseInt(t(235))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class vt{static createTextAdStyles(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[mt(244)](t,e){const n=mt,r=e.textContent||e[n(238)]||"";t[n(241)]=r}}function It(){const t=["setTextAdContent","445529zoXLBM","1799616EeqqJU","1172826sdjgje","7970406oeLPuo","6859835RvoLLV","title","3931JAIVkf","4iaehUD","textContent","106ywKqeq","2700840NivhGl"];return(It=function(){return t})()}const bt=kt;function wt(){const t=["height: auto; min-height: fit-content;","style","fit-content","adstage-fade-slide-container","clientX","className","mouseenter","changedTouches","createTextAdStyles","adstage-fade-slide","height",";\n width: 100%;\n ","length","push","\n ","20px","211839udiJcF","528ZwBOrU","11JaOrUI","opacity","touches","addEventListener","width",";\n ","createSimpleAdElement","forEach","45918156liWfOD","21zJMGor","string","body","preventDefault","touchmove","includes","relative","appendChild","setAttribute","_id","autoSlideInterval","6461092OqRwEw","5318AARfwB","block","div","abs","\n position: relative;\n width: 100%;\n ","position","zIndex","toLowerCase","createElement","trackSlideViewable","top","normal","54LDWCja","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","cssText","height: 100%;","touchend","minHeight","\n position: ","clientY","setTextAdContent",";\n top: ","translateY(-20px)","left","2624390UFHHjP","3542772wlxBZY","transform","height: auto;","data-adstage-ad-id","adstage-fade-slider-wrapper","5MwzWEe","9037504qPjdwJ","addClickEventForSlider","auto","absolute","removeChild","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "];return(wt=function(){return t})()}function kt(t,e){const n=wt();return(kt=function(t,e){return n[t-=234]})(t,e)}!function(){const t=kt,e=wt();for(;;)try{if(931129===-parseInt(t(248))/1*(parseInt(t(302))/2)+parseInt(t(301))/3+parseInt(t(247))/4*(parseInt(t(278))/5)+parseInt(t(273))/6*(parseInt(t(236))/7)+parseInt(t(279))/8+parseInt(t(260))/9*(parseInt(t(272))/10)+-parseInt(t(303))/11*(parseInt(t(235))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Et{static[bt(309)](t,e){const n=bt,r=document[n(256)](n(250));return r[n(290)]="adstage-ad adstage-"+String(t.adType)[n(255)](),r[n(244)](n(276),e[n(245)]),r[n(244)]("data-adstage-slot-id",t.id),r[n(286)][n(262)]=vt[n(293)](!0),vt[n(268)](r,e),r}static createTextTransitionContainer(t,e,n,r,o=!1){const i=bt,s=t.height&&0!==t.height&&t.height!==i(281),a=document.createElement("div");a[i(290)]=i(277);const c={position:i(242),overflow:"hidden",display:i(249)};if(!s&&(c[i(295)]=i(281),c[i(265)]=i(287)),t[i(307)]&&0!==t[i(307)]){let e;e=typeof t[i(307)]===i(237)&&(t[i(307)][i(241)]("px")||t[i(307)].includes("%"))?t[i(307)]:t[i(307)]+"px",c.width=e}if(t[i(295)]&&0!==t[i(295)]&&t[i(295)]!==i(281)&&s){let e;e="string"==typeof t[i(295)]?t[i(295)][i(241)]("px")||t.height[i(241)]("%")?t[i(295)]:t[i(295)]+"px":t.height+"px",c[i(295)]=e}Object.entries(c)[i(234)](([t,e])=>{a[i(286)].setProperty(t,e)});const l=document.createElement(i(250));l.className=i(288),l[i(286)].cssText=i(252)+i(s?263:285)+i(299);let d=null;const u=!t[i(307)]||0===t[i(307)],p=!t[i(295)]||0===t[i(295)]||void 0===t[i(295)]||"auto"===t[i(295)];if(u||p&&s){if(d=document[i(256)](i(250)),d[i(286)][i(262)]=i(261),!u&&t[i(307)]){let e;e=typeof t[i(307)]===i(237)&&(t[i(307)][i(241)]("px")||t[i(307)][i(241)]("%"))?t[i(307)]:t.width+"px",d.style[i(307)]=e,d.style.whiteSpace=i(259)}document.body[i(243)](d);let n=0,r=0;e.forEach(e=>{const o=i,s=this[o(309)](t,e);d.appendChild(s);const a=s.getBoundingClientRect();a[o(307)]>n&&(n=a.width),a[o(295)]>r&&(r=a[o(295)]),d[o(283)](s)}),u&&n>0&&(a[i(286)][i(307)]=n+"px"),p&&r>0&&s&&(a[i(286)][i(295)]=r+"px"),document[i(238)][i(283)](d)}const h=[];e[i(234)]((e,n)=>{const a=i,c=document[a(256)](a(250));c[a(290)]=a(294);const d=a(s?282:0===n?242:282);c[a(286)][a(262)]=a(266)+d+a(269)+(d===a(282)?"0":a(281))+";\n left: "+(d===a(282)?"0":a(281))+a(296)+a(s?263:275)+a(284)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":a(300))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+a(308);const u=this[a(309)](t,e);$[a(280)](u,e,t,r,o,"Text"),c[a(243)](u),l[a(243)](c),h[a(298)](c)});let f=0;const g=e[i(297)],m=1e3*(n?.[i(246)]||4),y=n=>{const a=i;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!s&&("relative"===c[a(286)][a(253)]&&(c[a(286)][a(253)]=a(282),c.style[a(258)]="0",c[a(286)][a(271)]="0"),l[a(286)][a(253)]=a(242),l[a(286)][a(258)]=a(281),l[a(286)].left="auto"),c[a(286)][a(304)]="0",c[a(286)][a(274)]=a(270),c.style[a(254)]="1",l[a(286)][a(304)]="1",l[a(286)][a(274)]="translateY(0)",l[a(286)][a(254)]="2",h[a(234)]((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(286)][r(304)]="0",t[r(286)][r(274)]="translateY(20px)",t.style.zIndex="1",!s&&"relative"===t.style[r(253)]&&(t[r(286)][r(253)]=r(282),t[r(286)][r(258)]="0",t.style[r(271)]="0"))}),f=n,X[a(257)](e[f],t,f,r,o)};let v=setInterval(()=>{y(f+1)},m);return a[i(306)](i(291),()=>{clearInterval(v)}),a[i(306)]("mouseleave",()=>{v=setInterval(()=>{y(f+1)},m)}),Et.addTouchSupport(a,y,()=>f,g),a.appendChild(l),a}static addTouchSupport(t,e,n,r){const o=bt;let i=0,s=0,a=!1;t[o(306)]("touchstart",t=>{const e=o;i=t[e(305)][0][e(289)],s=t[e(305)][0][e(267)],a=!0}),t[o(306)](o(240),t=>{a&&t[o(239)]()}),t.addEventListener(o(264),t=>{const r=o;if(!a)return;a=!1;const c=t[r(292)][0][r(289)],l=t[r(292)][0].clientY,d=i-c,u=s-l;if(Math[r(251)](d)>Math[r(251)](u)&&Math[r(251)](d)>50){const t=n();e(d>0?t+1:t-1)}})}}const xt=St;function St(t,e){const n=Ct();return(St=function(t,e){return n[t-=134]})(t,e)}!function(){const t=St,e=Ct();for(;;)try{if(924810===parseInt(t(165))/1+-parseInt(t(181))/2*(parseInt(t(143))/3)+parseInt(t(153))/4*(-parseInt(t(183))/5)+parseInt(t(137))/6*(parseInt(t(161))/7)+-parseInt(t(141))/8*(parseInt(t(167))/9)+-parseInt(t(151))/10*(-parseInt(t(150))/11)+parseInt(t(136))/12*(parseInt(t(175))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class At extends ut{constructor(e=!1,n){super(t[St(142)],e,n)}[xt(170)](){return xt(152)}async renderAdElement(t,e){const n=xt,r=document[n(182)](t[n(155)]);if(!r)return;const o=document[n(166)](n(154));o[n(145)]=n(156);const i=t[n(174)],s=r[n(172)]||r;if(i)o[n(146)][n(135)]=n(180),o.style[n(176)]=String(i);else{const e=t[n(148)],r={width:e?.width,height:e?.[n(176)]},{width:i,height:a}=this[n(164)](s,r,{debug:this[n(171)]});o.style[n(135)]=i,o[n(146)].height=a}const a=document[n(166)](n(154));a[n(145)]=n(163),a.style.cssText=vt.createTextAdStyles(!1),vt[n(159)](a,e);const c=t[n(148)]?.[n(139)];c&&typeof c===n(177)&&(a[n(146)][n(158)]="-webkit-box",a[n(146)][n(169)]=String(c),a[n(146)][n(147)]=n(134),a[n(146)][n(160)]=n(173)),o[n(149)](a),$[n(184)](o,e,t,()=>this.createEventTrackingCallback(),this[n(171)],n(168)),r[n(185)]="",r[n(149)](o),this[n(171)]&&console.log(n(179)+e[n(140)])}async renderMultipleAds(t,e){const n=xt,r=document[n(182)](t.containerId);if(!r)throw new Error(n(138)+t.containerId);const o=this[n(144)](),i={autoSlideInterval:(t[n(148)]?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t.optimizedHeight,aspectRatio:t.aspectRatio},s=Et[n(162)](t,e,i,o,this[n(171)]);s&&(r[n(185)]="",r[n(149)](s),this[n(171)]&&console.log("✨ Text transition created for slot: "+t.id+n(157)+e.length+n(178)))}}function Ct(){const t=["✨ Single text ad rendered: ","100%","277604UyTnGJ","getElementById","35pfAoLR","addClickEventForRenderer","innerHTML","vertical","width","8592IBFBPs","6PFyxev","Container not found: ","maxLines","_id","3058568ruRvKa","TEXT","39xtptYP","createEventTrackingCallback","className","style","webkitBoxOrient","config","appendChild","869ydrcxL","21500bcCKiO","60px","590056WVEKCX","div","containerId","adstage-ad adstage-text-ad"," with ","display","setTextAdContent","overflow","11260319mFJemq","createTextTransitionContainer","adstage-text-content","calculateAdSize","721036SILLqb","createElement","9MvFzho","Text","webkitLineClamp","getDefaultHeight","debug","parentElement","hidden","optimizedHeight","29861qwiZth","height","number"," ads"];return(Ct=function(){return t})()}const Tt=_t;function _t(t,e){const n=Rt();return(_t=function(t,e){return n[t-=362]})(t,e)}function Rt(){const t=["display","🎬 Video element created for ad: ","360px","263827zbgUkW","\n video::-webkit-media-controls-play-button {\n display: ","adstage-video-mute-button","style","debug","renderVideoElementDirect","createElement","100%","head","1088dQBPMT","4578363aZdtzV","🎬 Trying muted autoplay fallback...","addEventListener","containerId","play","customControls","muted","rgba(0, 0, 0, 0.9)","hideCurrentTime","2570132AUOlUe","cssText","⚠️ No video advertisements available for slot: ","VIEWABLE","🎬 Initial autoplay attempt after timeout..."," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","adstage-video-default-controls","click","unmuted","🎬 Video config received:","Video","_id","🎬 Video controls setting:"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","getDefaultHeight","transform","none","mouseleave","7rnqjqz","height","763978WasCtY","28206gpvQGD",'\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 ',"renderMultipleAds","hideControls","catch","🎬 Video metadata loaded, attempting autoplay...","block","title","createEventTrackingCallback","src","Click to mute","autoplay","🎬 Autoplay completely failed:","innerHTML","disabled (default)","videoUrl","hideFullscreenButton","width","background","adstage-video-container"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","button","log","mouseenter","playsinline","appendChild","error","5phyduX","relative","className","\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 ","hidePlayButton","8678742PudRUX","img","loop","Video load failed:"," (autoplay: ","video"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","Container not found: ","div","\n pointer-events: none;\n ","stopPropagation","scale(1)","Video fallback","controls","Video thumbnail","warn",", loop: ","addClickEventForRenderer","hideProgressBar","imageUrl","config","hideVolumeSlider",'\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 ',"objectFit","getElementById",", muted: ","848160yMpjiF","loadeddata","contain","hideMuteButton"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","VIDEO","loadedmetadata","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 "];return(Rt=function(){return t})()}!function(){const t=_t,e=Rt();for(;;)try{if(786115===parseInt(t(470))/1+-parseInt(t(399))/2+-parseInt(t(370))/3+-parseInt(t(379))/4*(-parseInt(t(427))/5)+-parseInt(t(432))/6*(-parseInt(t(397))/7)+-parseInt(t(369))/8*(-parseInt(t(400))/9)+-parseInt(t(458))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Dt extends ut{constructor(e=!1,n){super(t[_t(463)],e,n)}[Tt(393)](){return Tt(469)}async renderAdElement(t,e){const n=Tt,r=document[n(456)](t[n(373)]);if(!r)return;const o=document[n(366)](n(440));o.className="adstage-video-container",o[n(363)][n(380)]="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this[n(365)](o,e,t),r[n(413)]="",r[n(425)](o),this.debug&&console[n(422)]("🎬 Single video ad rendered: "+e[n(390)])}async[Tt(402)](t,e){const n=Tt,r=document.getElementById(t[n(373)]);if(!r)throw new Error(n(439)+t.containerId);if(e.length>0){const o=e[0],i=document[n(366)]("div");i[n(429)]=n(419),i[n(363)][n(380)]="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this[n(365)](i,o,t),r.innerHTML="",r[n(425)](i);const a=this.createEventTrackingCallback();setTimeout(()=>{const e=n;a(o._id,t.id,s[e(382)])},100),this[n(364)]&&console[n(422)]("🎬 Single video rendered for VIDEO slot: "+t.id+" ("+o._id+")")}else this.debug&&console[n(447)](n(381)+t.id)}[Tt(365)](t,e,n){const r=Tt;t[r(363)].position=r(428);const o=document.createElement(r(437));o[r(363)].width=r(367),o[r(363)][r(398)]=r(367),o.style[r(455)]=r(460),o.preload="metadata";const i=n[r(452)];if(this[r(364)]&&console[r(422)](r(388),i),o[r(445)]=!1,o.autoplay=!1!==i?.[r(411)],o[r(376)]=!0,o[r(434)]=!1!==i?.[r(434)],this[r(364)]&&console[r(422)]("🎬 Final video settings:",{autoplay:o[r(411)],muted:o[r(376)],loop:o[r(434)],controls:o[r(445)]}),!1!==i?.playsinline&&o.setAttribute(r(424),""),!0===i?.[r(445)]&&(o[r(445)]=!0,this[r(364)]&&console[r(422)]("🎬 User explicitly enabled controls, overriding default")),i?.[r(403)])o.controls=!1,o[r(363)][r(380)]+=r(441);else if(i?.customControls){if(o[r(445)]){const t=document[r(366)](r(363));t[r(465)]=r(471)+(i.customControls[r(431)]?r(395):r(406))+r(438)+(i[r(375)][r(450)]?"none":r(406))+r(384)+(i.customControls[r(378)]?r(395):r(406))+r(462)+(i[r(375)].hideRemainingTime?"none":r(406))+" !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: "+(i[r(375)][r(453)]?"none":"block")+r(420)+(i[r(375)][r(461)]?r(395):"block")+r(392)+(i[r(375)][r(416)]?r(395):r(406))+" !important;\n }\n ",document.head[r(425)](t)}}else if(o[r(445)]){const t=document[r(366)](r(363));t.id="adstage-video-default-controls",t[r(465)]=r(466),!document[r(456)](r(385))&&document[r(368)][r(425)](t)}this[r(364)]&&console[r(422)](r(391),o[r(445)]?"enabled":r(414));const s=document.createElement(r(421));s[r(429)]=r(362),s[r(363)][r(380)]=r(430),i?.[r(403)]&&(s.style[r(467)]=r(395));const a=()=>{const t=r,e=t(401),n=t(454);s[t(413)]=o[t(376)]?e:n,s[t(407)]=o[t(376)]?"Click to unmute":t(410)};if(a(),s[r(372)](r(386),t=>{const e=r;t[e(442)](),o[e(376)]=!o.muted,a(),this[e(364)]&&console[e(422)]("🔊 Video mute toggled: "+(o[e(376)]?"muted":e(387)))}),s.addEventListener(r(423),()=>{const t=r;s[t(363)][t(418)]=t(377),s[t(363)][t(394)]="scale(1.1)"}),s[r(372)](r(396),()=>{const t=r;s[t(363)].background="rgba(0, 0, 0, 0.7)",s[t(363)][t(394)]=t(443)}),e[r(415)]){o.src=e[r(415)];const t=()=>{const t=r;o[t(411)]&&o.muted&&o.paused&&o.play()[t(404)](e=>{const n=t;this[n(364)]&&(console[n(447)]("🎬 Auto-play was prevented:",e),console[n(447)](n(371))),o.muted=!0,o[n(374)]()[n(404)](t=>{const e=n;this[e(364)]&&console.error(e(412),t)})})};o.addEventListener(r(464),()=>{const e=r;this[e(364)]&&console.log(e(405)),t()}),o[r(372)]("canplay",()=>{const e=r;this[e(364)]&&console[e(422)]("🎬 Video can play, attempting autoplay..."),t()}),o[r(372)](r(459),()=>{const e=r;this[e(364)]&&console[e(422)]("🎬 Video data loaded, attempting autoplay..."),t()}),setTimeout(()=>{const e=r;this[e(364)]&&console.log(e(383)),t()},100)}else if(e[r(451)]){const n=document[r(366)](r(433));return n[r(409)]=e.imageUrl,n[r(363)][r(417)]="100%",n[r(363)][r(398)]=r(367),n.style[r(455)]=r(460),n.alt=e[r(407)]||"Video thumbnail",void t[r(425)](n)}$[r(449)](o,e,n,()=>this[r(408)](),this[r(364)],r(389)),o[r(372)](r(426),o=>{const i=r;if(console[i(426)](i(435),o),e[i(451)]){const r=document[i(366)]("img");r[i(409)]=e[i(451)],r[i(363)][i(417)]=i(367),r.style[i(398)]="100%",r.style.objectFit=i(460),r.alt=e[i(407)]||i(446),$[i(449)](r,e,n,()=>this[i(408)](),this[i(364)],i(444)),t[i(413)]="",t[i(425)](r)}}),t[r(425)](o),t.appendChild(s),this[r(364)]&&console[r(422)](r(468)+e._id+r(436)+o.autoplay+r(457)+o[r(376)]+r(448)+o[r(434)]+")")}}const Lt=Ot;function Ot(t,e){const n=Pt();return(Ot=function(t,e){return n[t-=290]})(t,e)}function Pt(){const t=["5855796uMHviY","cssText","renderAdElement","5563747eKQobP","23499696UFRpdg","containerId","Learn More","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","open","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","200px","renderMultipleAds","#3b82f6","linkUrl","advertisementEventTracker","NATIVE","innerHTML","addEventListener","1vQeKfE","warn","style","className","): ","createElement","mouseenter","23721PlicxI","8fowxRR","_id","mouseleave","log","button","#2563eb","getElementById","debug","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","10aaVZWx","length","1056730AFDEhT","🏠 Native ad rendered (first of ","568554HBpEyN","div","title","1250400hZbYdZ","adstage-ad adstage-native-ad","backgroundColor","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","imageUrl","272bRjjti","Native click tracked for ad: ","\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 ","\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 ","appendChild","Native Advertisement","alt","🏠 Single native ad rendered: ","src","img","textContent"];return(Pt=function(){return t})()}!function(){const t=Ot,e=Pt();for(;;)try{if(421797===-parseInt(t(294))/1*(parseInt(t(315))/2)+parseInt(t(301))/3*(parseInt(t(323))/4)+parseInt(t(311))/5*(-parseInt(t(318))/6)+-parseInt(t(337))/7+parseInt(t(302))/8*(-parseInt(t(334))/9)+-parseInt(t(313))/10+parseInt(t(338))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ut extends ut{constructor(e=!1,n){super(t[Ot(291)],e,n)}getDefaultHeight(){return Ot(344)}async[Lt(336)](t,e){const n=Lt,r=document[n(308)](t[n(339)]);if(!r)return;const o=document[n(299)]("div");if(o[n(297)]=n(319),o[n(296)][n(335)]=n(325),e[n(317)]){const t=document[n(299)]("h3");t[n(333)]=e[n(317)],t[n(296)].cssText=n(310),o[n(327)](t)}if(e.textContent){const t=document[n(299)]("p");t.textContent=e[n(333)],t[n(296)][n(335)]=n(343),o.appendChild(t)}if(e[n(322)]){const t=document[n(299)](n(316));t[n(296)][n(335)]=n(341);const r=document[n(299)](n(332));r[n(331)]=e[n(322)],r[n(329)]=e.title||n(328),r[n(296)].cssText=n(321),t.appendChild(r),o.appendChild(t)}if(e.linkUrl){const t=document[n(299)](n(306));t[n(333)]=n(340),t[n(296)][n(335)]=n(326),t[n(293)]("click",()=>{const t=n;this[t(290)]&&console[t(305)](t(324)+e[t(303)]),window[t(342)](e[t(347)],"_blank")}),t[n(293)](n(300),()=>{const e=n;t.style[e(320)]=e(307)}),t[n(293)](n(304),()=>{const e=n;t[e(296)][e(320)]=e(346)}),o[n(327)](t)}r[n(292)]="",r.appendChild(o),this[n(309)]&&console[n(305)](n(330)+e[n(303)])}async[Lt(345)](t,e){const n=Lt;e[n(312)]>0?(await this.renderAdElement(t,e[0]),this[n(309)]&&console[n(305)](n(314)+e[n(312)]+n(298)+t.id)):this.debug&&console[n(295)]("⚠️ No native advertisements available for slot: "+t.id)}}const zt=Mt;!function(){const t=Mt,e=Nt();for(;;)try{if(890915===-parseInt(t(423))/1+parseInt(t(424))/2+-parseInt(t(442))/3+-parseInt(t(417))/4+parseInt(t(452))/5+parseInt(t(436))/6*(-parseInt(t(396))/7)+parseInt(t(435))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Bt extends ut{constructor(e=!1,n){super(t[Mt(408)],e,n)}[zt(390)](){return"400px"}async[zt(411)](t,e){const n=zt;if(!document[n(447)](t[n(440)]))return;const r=document.createElement(n(428));r.className="adstage-interstitial-overlay",r[n(413)][n(443)]="\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 ";const o=document[n(420)](n(428));o[n(418)]=n(406),o[n(413)].cssText="\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 i=document[n(420)](n(449));if(i[n(398)]="×",i[n(413)][n(443)]="\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 ",i[n(437)](n(439),()=>{this.closeInterstitial(r)}),i.addEventListener(n(393),()=>{const t=n;i[t(413)].backgroundColor="#e5e7eb",i[t(413)][t(451)]=t(403)}),i[n(437)](n(438),()=>{const t=n;i[t(413)][t(441)]=t(388),i[t(413)].color="#6b7280"}),e[n(448)]){const t=document.createElement(n(407));t[n(433)]=e[n(448)],t[n(389)]=e[n(399)]||"Interstitial Advertisement",t[n(413)][n(443)]=n(395),o[n(400)](t)}if(e[n(399)]){const t=document[n(420)]("h2");t[n(391)]=e[n(399)],t[n(413)].cssText=n(431),o[n(400)](t)}if(e[n(391)]){const t=document[n(420)]("p");t[n(391)]=e[n(391)],t[n(413)][n(443)]="\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ",o[n(400)](t)}if(e[n(446)]){const t=document[n(420)]("button");t[n(391)]=n(450),t.style[n(443)]=n(430),t.addEventListener("click",()=>{const t=n;this[t(401)]&&console[t(445)]("Interstitial click tracked for ad: "+e[t(414)]),window[t(404)](e.linkUrl,t(409)),this[t(405)](r)}),t[n(437)]("mouseenter",()=>{const e=n;t[e(413)][e(441)]=e(410)}),t[n(437)](n(438),()=>{const e=n;t[e(413)].backgroundColor=e(422)}),o[n(400)](t)}const s=t=>{const e=n;"Escape"===t[e(402)]&&(this[e(405)](r),document[e(421)](e(426),s))};if(document[n(437)](n(426),s),r.addEventListener(n(439),t=>{const e=n;t.target===r&&this[e(405)](r)}),!document[n(447)]("adstage-interstitial-styles")){const t=document[n(420)](n(413));t.id=n(425),t[n(391)]=n(444),document[n(412)].appendChild(t)}o.appendChild(i),r[n(400)](o),document[n(427)].appendChild(r),this.debug&&console.log(n(434)+e[n(414)])}async renderMultipleAds(t,e){const n=zt;e[n(419)]>0?(await this[n(411)](t,e[0]),this[n(397)]&&console.log("🖼️ Interstitial ad rendered (first of "+e[n(419)]+n(415)+t.id)):this.debug&&console[n(432)](n(429)+t.id)}closeInterstitial(t){const e=zt;t.style.animation="fadeOut 0.3s ease-out forwards",setTimeout(()=>{const e=Mt;t[e(416)]&&t.parentNode[e(394)](t)},300),this[e(397)]&&console[e(445)](e(392))}}function Mt(t,e){const n=Nt();return(Mt=function(t,e){return n[t-=388]})(t,e)}function Nt(){const t=["title","appendChild","advertisementEventTracker","key","#374151","open","closeInterstitial","adstage-interstitial-content","img","INTERSTITIAL","_blank","#2563eb","renderAdElement","head","style","_id","): ","parentNode","2293396TaBoJa","className","length","createElement","removeEventListener","#3b82f6","833395SExwGF","1716944AKPaha","adstage-interstitial-styles","keydown","body","div","⚠️ No interstitial advertisements available for slot: ","\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 ","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","warn","src","🖼️ Interstitial ad rendered: ","34642920kvfgjZ","9491628QkntMo","addEventListener","mouseleave","click","containerId","backgroundColor","4672380FahLQK","cssText","\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 ","log","linkUrl","getElementById","imageUrl","button","Get Started","color","1241100yKqabD","#f3f4f6","alt","getDefaultHeight","textContent","🖼️ Interstitial ad closed","mouseenter","removeChild","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","7JfEwCA","debug","innerHTML"];return(Nt=function(){return t})()}const Vt=jt;function Ft(){const t=["getDefaultHeightForAdType","debug","getRenderer","display","adstage-ad adstage-","textContent","objectFit","renderOptimizedBannerImage"," renderers","renderFallback","cover","block","data-adstage-ad-id","createPlaceholder","style","video","#f9f9f9","439425toDWil","renderers","set","advertisementEventTracker","TEXT","renderAd","warn","BANNER","adType","860315CLibht","loadImageDimensions","100%","get","[AdRenderer] ","renderMultipleAds","renderAdElement","No advertisement to render","⚠️ Container optimization is only supported for BANNER ads, got: ","onload"," Ad","4AGOkrw","1px dashed #ccc","div","className","1106uuxnCW","NATIVE","calculateAdSize","src","width","INTERSTITIAL","initializeRenderers","naturalHeight","getDefaultHeight","231397ZyKtsC","setAttribute","VIDEO","data-adstage-slot-id","2666312XGsmWr","height","3vQKABy","appendChild","advertisement","Failed to load image: ","onerror","3029090nJlNdq","renderAdSlider","imageUrl","log","calculateOptimalContainerSize","padding","createElement","videoUrl","createAdElement","config","11elIhlc","toLowerCase","777848OYqlXh","img","8px","🏭 AdRenderer factory initialized with ","isLoaded","optimizeContainerForBannerAds","naturalWidth","17538yjIFLq"];return(Ft=function(){return t})()}function jt(t,e){const n=Ft();return(jt=function(t,e){return n[t-=465]})(t,e)}!function(){const t=jt,e=Ft();for(;;)try{if(312105===parseInt(t(498))/1+-parseInt(t(521))/2*(-parseInt(t(504))/3)+-parseInt(t(485))/4*(-parseInt(t(474))/5)+parseInt(t(528))/6*(-parseInt(t(489))/7)+parseInt(t(502))/8+-parseInt(t(465))/9+-parseInt(t(509))/10*(parseInt(t(519))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Kt{constructor(t=!1,e){const n=jt;this[n(466)]=new Map,this[n(530)]=t,this[n(468)]=e||null,this[n(495)]()}initializeRenderers(){const e=jt;this[e(466)][e(467)](t[e(472)],new gt(this.debug,this[e(468)])),this.renderers[e(467)](t[e(469)],new At(this[e(530)],this.advertisementEventTracker)),this[e(466)][e(467)](t[e(500)],new Dt(this[e(530)],this[e(468)])),this[e(466)].set(t[e(490)],new Ut(this[e(530)],this.advertisementEventTracker)),this[e(466)][e(467)](t[e(494)],new Bt(this[e(530)],this[e(468)])),this.debug&&console[e(512)](e(524)+this[e(466)].size+e(537))}[Vt(517)](e,n){const r=Vt,o=this[r(531)](e[r(473)]),i=document.createElement("div");i[r(488)]=r(533)+String(e[r(473)])[r(520)](),i[r(499)](r(541),n._id),i[r(499)](r(501),e.id);const{width:s,height:a}=o.calculateAdSize(i,e[r(518)]||{},n);switch(i[r(543)][r(493)]=s,i[r(543)][r(503)]=a,i[r(543)][r(532)]=r(540),e.adType){case t[r(472)]:if(n[r(511)]){const t=document[r(515)](r(522));t[r(492)]=n[r(511)],t[r(543)][r(493)]=r(476),t[r(543)].height=r(476),t[r(543)][r(535)]=r(539),i[r(505)](t)}break;case t.VIDEO:if(n[r(516)]){const t=document[r(515)](r(544));t[r(492)]=n.videoUrl,t[r(543)].width="100%",t.style[r(503)]="100%",i[r(505)](t)}break;case t[r(469)]:if(n.textContent){const t=document[r(515)](r(487));t.textContent=n[r(534)]||"",t[r(543)][r(514)]=r(523),i[r(505)](t)}break;default:i[r(543)].border=r(486),i[r(543)].backgroundColor=r(545),i[r(534)]=e[r(473)]+r(484)}return i}[Vt(531)](t){const e=Vt,n=this[e(466)][e(477)](t);if(!n)throw new Error("No renderer found for ad type: "+t);return n}[Vt(542)](t,e,n,r,o){const i=Vt;this[i(531)](n)[i(542)](t,e,r,o)}async[Vt(526)](e,n){const r=Vt;if(e[r(473)]!==t[r(472)])return void(this.debug&&console[r(471)](r(482)+e[r(473)]));const o=this.getRenderer(t.BANNER);await o[r(526)](e,n)}async[Vt(510)](t,e){const n=Vt,r=this[n(531)](t[n(473)]);await r[n(479)](t,e)}async[Vt(470)](t){const e=Vt;if(!t[e(506)])throw new Error(e(481));const n=this[e(531)](t.adType);await n[e(480)](t,t[e(506)]),t[e(525)]=!0}async[Vt(480)](t,e){const n=this[Vt(531)](t.adType);await n.renderAdElement(t,e)}renderFallback(t){const e=Vt;this[e(531)](t[e(473)])[e(538)](t)}[Vt(529)](t){const e=Vt;return this[e(531)](t)[e(497)]()}[Vt(491)](t,e,n,r){const o=Vt;return this[o(531)](e)[o(491)](t,n,r)}[Vt(475)](t){return new Promise((e,n)=>{const r=jt,o=new Image;o[r(483)]=()=>{const t=r;e({width:o[t(527)],height:o[t(496)]})},o[r(508)]=()=>{n(new Error(r(507)+t))},o.src=t})}async[Vt(536)](e,n,r){const o=Vt;if(r[o(473)]!==t.BANNER)throw new Error("renderOptimizedBannerImage is only supported for BANNER ads");const i=this[o(531)](t[o(472)]);return await i[o(536)](e,n,r)}async[Vt(513)](e,n,r){const o=Vt;if(r!==t.BANNER){const t=this[o(531)](r);return{width:o(476),height:t.getDefaultHeight(),aspectRatio:16/9}}const i=this.getRenderer(t[o(472)]);return await i.calculateOptimalContainerSize(e,n)}[Vt(512)](t,...e){const n=Vt;this[n(530)]&&console[n(512)](n(478)+t,...e)}}const Ht=Wt;function Wt(t,e){const n=qt();return(Wt=function(t,e){return n[t-=284]})(t,e)}function qt(){const t=["NATIVE","then","❌ Failed to load ad for slot: ","data-adstage-slot-id","🎯 Simple viewability tracking started for slot: ","[data-adstage-slot-id]","refreshAdSlot","createAdInternal","init","getConfig","Container not found after ","🎠 Slider will handle VIEWABLE events for ","광고 생성 중 오류 발생:","text","New advertisement viewable tracked for slot:","_config","handleViewableEvent","✅ Ad loaded for slot: ","get","🗑️ Ad slot destroyed: "," ads for type: ","getSlotById","createAdWithRetry","fetchAdData","autoplay","413102epuPYY","muted","VIDEO","substr","apiKey"," ads)","debug","56DOOXRj","Ad slot not found: ","forEach","set","🎯 Ads module initialized (sync mode) with auto-cleanup","undefined","destroy","refresh","auto-","🔍 Auto-cleanup MutationObserver enabled","innerHTML","json",". Retrying in ","default","🚫 Advertisement not found with ID: ","Auto-cleanup failed for slot ","style","🔍 Ad slot already cleaned up: ","advertisement","getAllSlots","548250ZNJBAS","nodeType","getBaseUrl","renderFallback","deviceType","now","Failed to refresh ad slot: ","9924SxhgKj","customControls","querySelectorAll","_isReady","setupAutoCleanup","adId","random","interstitial","adRenderer","error","warn","❌ Failed to track viewable impression:","BANNER","isReady","create","country","adType","playsinline","Failed to fetch ad data: ","renderAd","2KFYyZC","loop","height","delete"," (element found)","hideControls","startSimpleViewabilityTracking","Ads module not initialized. Call AdStage.init() first.","controls","length","9483386kHDrUq","advertisements","onClick","native","observe","from","append","video","slideInterval","308tNmrAz","autoSlide","autoDestroy","getElementById","_id","detail","createAd","status","optimizeContainerForBannerAds","renderAdElement","API key not configured","advertisementEventTracker","auto","language",", filters:","renderAdSlider","GET","config","handleRemovedElement","getAttribute","banner","containerId","INTERSTITIAL","width","slots","Container not found: ","viewabilityTracker","1314856SPHUZX","✅ Simple viewable impression tracked for ad ","📊 Advertisement event tracking enabled for slot: ","54XPMCAX","❌ Failed to find element for viewability tracking: ","disconnect","string","trackAdvertisementEvent","100%","values","isLoaded"," removed","VIEWABLE","list","18399PKjghN","adstage-","loadAdContentInBackground","mutationObserver","1395315GJraEU","log","TEXT","createPlaceholder","ensureReady","toString"];return(qt=function(){return t})()}!function(){const t=Wt,e=qt();for(;;)try{if(526410===parseInt(t(344))/1*(parseInt(t(290))/2)+-parseInt(t(404))/3*(-parseInt(t(297))/4)+parseInt(t(408))/5+parseInt(t(324))/6*(-parseInt(t(363))/7)+-parseInt(t(390))/8*(parseInt(t(393))/9)+-parseInt(t(317))/10+parseInt(t(354))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Yt{constructor(){const t=Wt;this[t(327)]=!1,this[t(429)]=null,this[t(387)]=new Map,this[t(374)]=null,this[t(332)]=null,this.mutationObserver=null}[Ht(422)](t){const e=Ht;this[e(429)]=t,this[e(374)]=new P(W[e(319)](),t[e(294)],t[e(296)]||!1,this.slots),this[e(332)]=new Kt(t[e(296)]||!1,this[e(374)]),this[e(328)](),this[e(327)]=!0,t[e(296)]&&console[e(409)](e(301))}[Ht(337)](){return this[Ht(327)]}[Ht(423)](){return this[Ht(429)]}[Ht(383)](e,n){const r=Ht;this[r(412)]();const o={width:n?.[r(386)]||r(398),height:n?.[r(346)]||r(375),autoSlide:n?.[r(364)]||!1,slideInterval:n?.[r(362)]||5e3,onClick:n?.[r(356)],adId:n?.adId,language:n?.[r(376)],deviceType:n?.[r(321)],country:n?.country};return this[r(369)](e,t[r(336)],o)}[Ht(427)](e,n){const r=Ht;this[r(412)]();const o={maxLines:n?.maxLines||3,style:n?.[r(313)]||r(310),onClick:n?.[r(356)],adId:n?.[r(329)],language:n?.[r(376)],deviceType:n?.[r(321)],country:n?.country};return this[r(369)](e,t[r(410)],o)}[Ht(361)](e,n){const r=Ht;this[r(412)]();const o={width:n?.[r(386)]||640,height:n?.[r(346)]||360,autoplay:void 0===n?.[r(289)]||n.autoplay,muted:void 0===n?.[r(291)]||n.muted,loop:void 0===n?.loop||n[r(345)],playsinline:!1!==n?.[r(341)],controls:void 0!==n?.[r(352)]&&n[r(352)],hideControls:n?.[r(349)]||!1,customControls:n?.[r(325)],autoSlide:!1,maxAds:1,onClick:n?.[r(356)],...n?.adId&&{adId:n.adId}};return this[r(369)](e,t[r(292)],o)}[Ht(357)](e,n){const r=Ht;return this[r(412)](),this[r(369)](e,t[r(414)],n||{})}[Ht(331)](e,n){const r=Ht;return this.ensureReady(),this[r(369)](e,t[r(385)],n||{})}[Ht(304)](t){const e=Ht;this.ensureReady();const n=this[e(387)][e(432)](t);if(!n)throw new Error(e(298)+t);this[e(420)](n),this[e(429)]?.[e(296)]&&console[e(409)]("🔄 Ad slot refreshed: "+t)}[Ht(303)](t){const e=Ht;this.ensureReady();const n=this.slots[e(432)](t);if(!n)return void(this[e(429)]?.[e(296)]&&console.log(e(314)+t));n[e(389)]&&n[e(389)][e(303)]();const r=document[e(366)](n[e(384)]);r&&(r[e(307)]=""),this[e(387)][e(347)](t),this[e(429)]?.[e(296)]&&console[e(409)](e(284)+t)}[Ht(316)](){const t=Ht;return this.ensureReady(),Array[t(359)](this[t(387)][t(399)]())}[Ht(286)](t){const e=Ht;return this[e(412)](),this.slots[e(432)](t)||null}[Ht(369)](t,e,n){const r=Ht;if(!this[r(429)]?.apiKey)throw new Error(r(373));const o=r(405)+e+"-"+Date[r(322)]()+"-"+Math[r(330)]()[r(413)](36)[r(293)](2,9);return this[r(287)](t,e,n,o,0),o}async[Ht(287)](t,e,n,r,o){const i=Ht,s=[0,50,100,200,500];let a,c=null;if(typeof t===i(396)){if(a=t,c=document[i(366)](t),!c)return o<4?(this._config?.[i(296)]&&console[i(334)](i(388)+t+i(309)+s[o+1]+"ms... (attempt "+(o+1)+"/5)"),void setTimeout(()=>{this[i(287)](t,e,n,r,o+1)},s[o+1])):void console.error(i(424)+5+" attempts: "+t)}else c=t,a=c.id||i(305)+r,!c.id&&(c.id=a);try{this[i(421)](a,e,n,r,c)}catch(t){console.error(i(426),t)}}[Ht(421)](e,n,r,o,i){const s=Ht;i.setAttribute(s(417),o),this.adRenderer?.[s(411)](i,o,n,r,this[s(429)]);const a={id:o,containerId:e,adType:n,width:r[s(386)]||s(398),height:r[s(346)]||(n===t[s(410)]?s(375):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...r},load:async()=>this[s(288)](n,r)[s(415)](t=>t[0]||null),render:t=>this[s(332)]?.[s(372)](a,t),refresh:async()=>this[s(420)](a),destroy:()=>this[s(303)](o)};this[s(387)][s(300)](o,a),this.loadAdContentInBackground(a),this[s(374)]&&this[s(429)]?.[s(296)]&&console.log(s(392)+o)}async[Ht(406)](e){const n=Ht;try{const r=await this[n(288)](e[n(340)],e[n(380)]);if(!r||0===r[n(353)])return void this.adRenderer?.[n(320)](e);e[n(340)]===t[n(336)]&&r[n(353)]>0&&await(this[n(332)]?.[n(371)](e,r)),r.length>1||e[n(380)]?.[n(364)]?(await(this.adRenderer?.[n(378)](e,r)),this[n(429)]?.[n(296)]&&console[n(409)](n(425)+r.length+" ads automatically")):(e[n(315)]=r[0],await(this[n(332)]?.renderAdElement(e,r[0])),this[n(350)](e,r[0])),e[n(400)]=!0,this[n(429)]?.[n(296)]&&console[n(409)](n(431)+e.id+" ("+r.length+n(295))}catch(t){console[n(333)](n(416)+e.id,t),this[n(332)]?.renderFallback(e)}}[Ht(350)](t,e){const n=(r=0)=>{const o=Wt,i=document[o(366)](t.id);if(!i)return void(r<5?(setTimeout(()=>n(r+1),300),this._config?.[o(296)]&&console.log("🔄 Retrying viewability tracking for slot: "+t.id+" (attempt "+(r+1)+")")):console[o(334)](o(394)+t.id));const s=new M(i,async()=>{await this.handleViewableEvent(e,t)});t.viewabilityTracker=s,this._config?.[o(296)]&&console.log(o(418)+t.id+o(348))};n()}async[Ht(430)](t,e){const n=Ht;try{this[n(374)]&&(await this[n(374)][n(397)](t[n(367)],e.id,s[n(402)]),this[n(429)]?.debug&&console[n(409)](n(391)+t[n(367)]))}catch(t){console.error(n(335),t)}}async fetchAdData(t,e){const n=Ht;if(!this[n(429)]?.[n(294)])throw new Error(n(373));if(e[n(329)]){const t=""+W[n(355)][n(368)](e.adId),r=await fetch(t,{method:n(379),headers:R[n(338)](this[n(429)][n(294)])});if(!r.ok){if(404===r[n(370)])return console[n(334)](n(311)+e.adId),[];throw new Error(n(342)+r[n(370)])}const o=await r[n(308)]();return this[n(429)]?.debug&&console[n(409)]("📊 Fetched specific ad with ID: "+e.adId,o),[o]}const r=new URLSearchParams;r[n(360)]("adType",t),e[n(376)]&&r.append(n(376),e.language),e[n(321)]&&r[n(360)](n(321),e[n(321)]),e[n(339)]&&r[n(360)](n(339),e.country);const o=W[n(355)][n(403)]()+"?"+r[n(413)](),i=await fetch(o,{method:n(379),headers:R[n(338)](this._config[n(294)])});if(!i.ok)throw new Error("Failed to fetch ad data: "+i[n(370)]);const s=(await i[n(308)]())[n(355)]||[];return this._config?.[n(296)]&&console[n(409)]("📊 Fetched "+s.length+n(285)+t+n(377),{language:e.language,deviceType:e[n(321)],country:e.country}),s}async refreshAdSlot(t){const e=Ht;try{const n=await this[e(288)](t[e(340)],t[e(380)]||{});n&&n[e(353)]>0&&(t[e(315)]=n[0],await(this.adRenderer?.[e(343)](t)),this[e(374)]&&console[e(409)](e(428),t.id))}catch(n){console[e(333)](e(323)+t.id,n)}}[Ht(412)](){const t=Ht;if(!this[t(327)])throw new Error(t(351))}[Ht(328)](){const t=Ht;typeof window!==t(302)&&typeof document!==t(302)&&(this.mutationObserver&&this.mutationObserver.disconnect(),this[t(407)]=new MutationObserver(e=>{const n=t;e[n(299)](t=>{const e=n;t.removedNodes[e(299)](t=>{t[e(318)]===Node.ELEMENT_NODE&&this.handleRemovedElement(t)})})}),this[t(407)][t(358)](document.body,{childList:!0,subtree:!0}),this._config?.[t(296)]&&console[t(409)](t(306)))}[Ht(381)](t){const e=Ht,n=t.getAttribute("data-adstage-slot-id");if(n)return void this[e(365)](n);t[e(326)](e(419))[e(299)](t=>{const n=e,r=t[n(382)](n(417));r&&this.autoDestroy(r)})}[Ht(365)](t){const e=Ht,n=this.slots[e(432)](t);if(n)try{n[e(389)]&&n[e(389)][e(303)](),this[e(387)][e(347)](t),this._config?.[e(296)]&&console.log("🧹 Auto-cleanup: slot "+t+e(401))}catch(n){this[e(429)]?.[e(296)]&&console.warn(e(312)+t+":",n)}}destroyModule(){const t=Ht,e=this._config?.[t(296)];this[t(407)]&&(this[t(407)][t(395)](),this.mutationObserver=null),this[t(387)].clear(),this.advertisementEventTracker=null,this[t(332)]=null,this[t(327)]=!1,this[t(429)]=null,e&&console.log("🗑️ Ads module destroyed")}}var Jt=Xt;function Xt(t,e){var n=Gt();return(Xt=function(t,e){return n[t-=303]})(t,e)}function Gt(){var t=["1cXwZMT","976213zVWMht","getApiEndpoint","log","modules","init","1109946USjYgw","268965bDcKZs","debug","741444knEBZV","_isReady","getBaseUrl","isDebugMode","getApiHeaders","includes","✅ Config module initialized (sync mode)","151024humOQI","baseUrl","_organizationInfo","config","apiKey","449835TtGelQ","updateConfig","🔄 Config updated","254148ODEmSO","getConfig","_config","Config module not initialized","development","getOrganizationInfo","create","isModuleEnabled","events","isReady","API key not available"];return(Gt=function(){return t})()}!function(){for(var t=Xt,e=Gt();;)try{if(102275===parseInt(t(327))/1*(parseInt(t(316))/2)+parseInt(t(313))/3+-parseInt(t(336))/4+-parseInt(t(334))/5+parseInt(t(333))/6+-parseInt(t(328))/7+parseInt(t(308))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Zt{constructor(){var t=Xt;this[t(337)]=!1,this[t(318)]=null,this._organizationInfo=null}[Jt(332)](t){var e=Jt;this[e(318)]={timeout:3e4,debug:!1,modules:["ads",e(324),e(311)],...t},t[e(309)]&&W.setBaseUrl(t.baseUrl),this._isReady=!0,t.debug&&console[e(330)](e(307),{modules:this[e(318)][e(331)],endpoint:W[e(303)](),mode:e(320)})}[Jt(325)](){return this[Jt(337)]}[Jt(317)](){return this[Jt(318)]}[Jt(321)](){return this[Jt(310)]}[Jt(329)](){return W[Jt(303)]()}[Jt(304)](){var t=Jt;return this[t(318)]?.[t(335)]||!1}getEnabledModules(){var t=Jt;return this[t(318)]?.[t(331)]||[]}[Jt(323)](t){var e=Jt;return this.getEnabledModules()[e(306)](t)}[Jt(314)](t){var e=Jt;if(!this[e(318)])throw new Error(e(319));this._config={...this[e(318)],...t},this.isDebugMode()&&console[e(330)](e(315),t)}[Jt(305)](){var t=Jt;if(!this[t(318)]?.[t(312)])throw new Error(t(326));return R[t(322)](this._config[t(312)])}}const Qt=te;!function(){const t=te,e=ee();for(;;)try{if(446626===parseInt(t(534))/1+-parseInt(t(532))/2+parseInt(t(528))/3+parseInt(t(537))/4*(parseInt(t(521))/5)+parseInt(t(506))/6+-parseInt(t(529))/7*(parseInt(t(500))/8)+parseInt(t(524))/9*(-parseInt(t(520))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class $t{static[Qt(507)](){return{...$t.getAutoDetectedDeviceInfo(),...$t._userProvidedDeviceInfo}}static[Qt(517)](){const t=Qt;if(!y[t(509)]())return{category:t(519),platform:t(504),model:t(504),osVersion:"SSR"};const e=navigator[t(511)][t(525)]();let n=t(526);/tablet|ipad/.test(e)?n="tablet":A[t(502)]()&&(n=t(538));const r=A[t(513)]();return{category:n,platform:$t[t(536)](r),model:navigator[t(514)],osVersion:navigator[t(514)],deviceId:A[t(531)]()}}static[Qt(516)](t){const e=Qt;$t[e(515)]={...$t[e(515)],...t}}static[Qt(505)](t,e){$t[Qt(515)][t]=e}static[Qt(499)](){$t._userProvidedDeviceInfo={}}static getUserDeviceInfo(){return{...$t[Qt(515)]}}static mapPlatformForEvents(t){const e=Qt;switch(t){case e(501):return e(539);case e(523):return"Android";case"web":return e(527);case e(526):return e(508);default:return e(510)}}static getDetailedInfo(){const t=Qt;if(!y[t(509)]())return{userAgent:t(504),language:t(522),platform:t(504),cookieEnabled:!1,onLine:!0,screenResolution:t(533),viewportSize:t(533)};const e=y.getViewportInfo();return{userAgent:navigator[t(511)],language:navigator[t(530)]||t(522),platform:navigator[t(514)],cookieEnabled:navigator[t(512)],onLine:navigator[t(535)],screenResolution:screen[t(518)]+"x"+screen[t(503)],viewportSize:e[t(518)]+"x"+e[t(503)]}}}function te(t,e){const n=ee();return(te=function(t,e){return n[t-=499]})(t,e)}function ee(){const t=["other","10oBwqYI","250385Xtgnsc","ko-KR","android","3816693VwSsmT","toLowerCase","desktop","Mobile Web","1778424bjXcWI","89467EEfkTe","language","generateDeviceId","1294562fiXpNh","0x0","667566AOLmXN","onLine","mapPlatformForEvents","44VihAtb","mobile","iOS","clearDeviceInfo","376IfcdSC","ios","isMobile","height","SSR","setDeviceProperty","1844820qZwHXw","getDeviceInfo","Desktop Web","isBrowser","Unknown","userAgent","cookieEnabled","getPlatform","platform","_userProvidedDeviceInfo","setDeviceInfo","getAutoDetectedDeviceInfo","width"];return(ee=function(){return t})()}function ne(t,e){const n=ie();return(ne=function(t,e){return n[t-=298]})(t,e)}$t[Qt(515)]={};const re=ne;!function(){const t=ne,e=ie();for(;;)try{if(992829===-parseInt(t(304))/1+-parseInt(t(313))/2*(parseInt(t(300))/3)+parseInt(t(306))/4+parseInt(t(316))/5*(parseInt(t(312))/6)+-parseInt(t(311))/7*(-parseInt(t(315))/8)+-parseInt(t(320))/9+parseInt(t(305))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static getUserInfo(){const t=ne;return{...oe[t(310)](),...oe[t(309)]}}static[re(310)](){const t=re;if(!y.isBrowser())return{language:t(303),country:"KR"};const e=navigator[t(307)]||"ko-KR";return{language:e,country:oe[t(302)](e)}}static extractCountryFromLanguage(t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t.split("-")[0]]||"KR"}static setUserProperties(t){const e=re;oe._userProperties={...oe[e(309)],...t}}static[re(299)](t,e){oe._userProperties[t]=e}static[re(319)](){oe._userProperties={}}static[re(317)](){return{...oe[re(309)]}}static[re(318)](){const t=re;if(!y[t(314)]())return{timezone:t(321),estimatedCountry:"KR"};const e=Intl[t(308)]()[t(301)]()[t(298)];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 ie(){const t=["setUserProperty","2328YqjvFC","resolvedOptions","extractCountryFromLanguage","ko-KR","1387376AXnSsO","8477520dmFJvE","4007216VKYeUs","language","DateTimeFormat","_userProperties","getBaseUserInfo","151711wejyjI","37998QqdUWA","592wVpCkC","isBrowser","464cknsms","1005pIalqx","getCurrentUserProperties","estimateLocation","clearUserProperties","15926598JzEvoc","UTC","timeZone"];return(ie=function(){return t})()}function se(t,e){const n=ae();return(se=function(t,e){return n[t-=277]})(t,e)}function ae(){const t=["search","41153520sFkQZl","stringify","15234spTJBK","utm_term","naver.searchad","UTM_KEYS","msclkid","adGroupId","creative_id","get","nclid","fbclid","isClickEventSent","ad_creative","term","612534GttrHP","183332QtZiGV","CAMPAIGN_KEYS","hasParams","ttclid","campaign_id","CLICK_ID_KEYS","9189104cCGOAv","getItem","15689511rDNtRh","shouldSendClickEvent","ad_group","ad_group_id","campaignId","removeItem","14lqlVBr","meta.ads","adstage_referrer","68329lDBEaT","gclid","adstage_click_event_sent","some","Failed to store tracking params:","markClickEventSent","microsoft.ads","location","utm_content","adGroup","warn","store","170PpIity","linkedin.ads","utm_medium","channel","length","utm_campaign","undefined","campaign","setItem","adstage_last_click_id","381dCysBp","twitter.ads","toAttributionObject","captureFromUrl","STORAGE_KEY","utm_source","ALL_KEYS","twclid","adstage","true","liclid"];return(ae=function(){return t})()}oe[re(309)]={};const ce=se;!function(){const t=se,e=ae();for(;;)try{if(904979===parseInt(t(311))/1+parseInt(t(280))/2*(parseInt(t(333))/3)+-parseInt(t(294))/4*(parseInt(t(323))/5)+-parseInt(t(293))/6*(-parseInt(t(308))/7)+-parseInt(t(300))/8+-parseInt(t(302))/9+parseInt(t(278))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ce(336)](){const t=ce;if(typeof window===t(329))return null;const e=new URLSearchParams(window[t(318)][t(277)]),n={};let r=!1;const o=e[t(287)](t(310));if(o)try{const e=decodeURIComponent(o),i=new URLSearchParams(e);for(const e of le[t(339)]){const t=i.get(e);t&&(n[e]=t,r=!0)}i[t(287)](t(341))===t(342)&&(r=!0)}catch(e){console[t(321)]("Failed to parse adstage_referrer:",e)}for(const o of le[t(339)]){if(n[o])continue;const i=e[t(287)](o);i&&(n[o]=i,r=!0)}return r?(n[t(326)]||(n[t(312)]?n[t(326)]="google.ads":n[t(289)]?n[t(326)]=t(309):n.ttclid?n.channel="tiktok.ads":n[t(288)]?n[t(326)]=t(282):n[t(343)]?n[t(326)]=t(324):n[t(284)]?n[t(326)]=t(317):n[t(340)]&&(n.channel=t(334))),le[t(322)](n),n):null}static[ce(322)](t){const e=ce;if(typeof window!==e(329))try{const n={...le.get(),...t},r=JSON[e(279)](n);try{sessionStorage[e(331)](le[e(337)],r)}catch(t){}try{localStorage[e(331)](le[e(337)],r)}catch(t){}}catch(t){console[e(321)](e(315),t)}}static[ce(287)](){const t=ce;if(typeof window===t(329))return null;try{const e=sessionStorage?.[t(301)](le.STORAGE_KEY);if(e)return JSON.parse(e)}catch(t){}try{const e=localStorage?.[t(301)](le[t(337)]);if(e)return JSON.parse(e)}catch(t){}return null}static clear(){const t=ce;if(typeof window!==t(329)){try{sessionStorage?.[t(307)](le[t(337)])}catch(t){}try{localStorage?.removeItem(le.STORAGE_KEY)}catch(t){}}}static[ce(296)](){const t=ce,e=le.get();return null!==e&&Object.keys(e)[t(327)]>0}static hasClickId(){const t=ce,e=le[t(287)]();return!!e&&le[t(299)][t(314)](t=>e[t])}static[ce(303)](){const t=ce;if("undefined"==typeof window)return!1;const e=le[t(287)]();if(!e)return!1;const n=le.hasClickId(),r=!!e[t(326)];if(!n&&!r)return!1;const o=n?e[t(312)]||e.fbclid||e[t(297)]||e[t(288)]||e[t(343)]||e[t(284)]||e[t(340)]:(e.channel||"")+":"+(e[t(292)]||"");if(!o)return!1;return o!==sessionStorage[t(301)](t(332))&&(sessionStorage.setItem(t(332),o),!0)}static[ce(316)](){const t=ce;"undefined"!=typeof window&&sessionStorage[t(331)](t(313),"true")}static[ce(290)](){const t=ce;return typeof window!==t(329)&&sessionStorage[t(301)]("adstage_click_event_sent")===t(342)}static[ce(335)](){const t=ce,e=le.get();if(!e)return null;const n={};return e[t(312)]&&(n[t(312)]=e[t(312)]),e[t(289)]&&(n[t(289)]=e[t(289)]),e[t(297)]&&(n[t(297)]=e.ttclid),e[t(288)]&&(n[t(288)]=e[t(288)]),e.channel&&(n.channel=e[t(326)]),e[t(330)]&&(n[t(330)]=e[t(330)]),e[t(298)]&&(n[t(306)]=e[t(298)]),e[t(304)]&&(n[t(320)]=e[t(304)]),e[t(305)]&&(n[t(285)]=e[t(305)]),e[t(291)]&&(n.adCreative=e.ad_creative),e[t(286)]&&(n.creativeId=e[t(286)]),e[t(292)]&&(n[t(292)]=e[t(292)]),e[t(338)]&&(n[t(338)]=e[t(338)]),e[t(325)]&&(n[t(325)]=e[t(325)]),e[t(328)]&&(n[t(328)]=e[t(328)]),e[t(319)]&&(n[t(319)]=e[t(319)]),e[t(281)]&&(n[t(281)]=e[t(281)]),Object.keys(n)[t(327)]>0?n:null}}le[ce(337)]="adstage_tracking_params",le[ce(299)]=["gclid",ce(289),"ttclid",ce(288),"liclid","msclkid",ce(340)],le[ce(295)]=[ce(326),ce(330),ce(298),"ad_group",ce(305),ce(291),ce(286),ce(292)],le[ce(283)]=["utm_source",ce(325),ce(328),"utm_content",ce(281)],le[ce(339)]=[...le[ce(299)],...le[ce(295)],...le[ce(283)]];const de=ue;function ue(t,e){const n=pe();return(ue=function(t,e){return n[t-=276]})(t,e)}function pe(){const t=["getAttributionId","getConfig","setUserProperties","✅ Attribution registered:","❌ Failed to register attribution:","undefined","setDeviceProperty","1539658bGYuik","length","log","getUserDeviceInfo","getCurrentUserProperties","Attribution registration failed: ","statusText","❌ API Error Response:","🔑 Attribution request headers:","88823OgOTgl","get","_isReady","create","track","3967452XwIdMe","📦 Request body:","warn","33938154JAaLDl","adstage_attribution_id","registerAttribution","📊 Events module initialized","📱 User provided device info cleared","POST","sendEventToServer","8460vOXQMb","json","stringify","init","attributionId","API key not configured for event tracking.","❌ Failed to track event:","3355224WAHEAP","sendAttributionToServer","setItem","events","📡 Attribution request URL:","debug","_config","808NYHgma","🔑 Request headers:","error","getDeviceInfo","keys","setDeviceInfo","📱 Device info set:","Event tracking failed: ","getUserInfo","Event data:","📡 Request URL:","2645sVZRxe","API key not configured for attribution registration.","application/json","591735BWFIAR","text","getItem","clearDeviceInfo","trackWithAttributionId","📱 Device property set:","📊 Attribution included:","⏭️ No tracking parameters found, skipping attribution registration","Events module not initialized. Call AdStage.init() first.","getUserProperties","✅ Event tracked with attribution ID:","status","apiKey"];return(pe=function(){return t})()}!function(){const t=ue,e=pe();for(;;)try{if(754362===parseInt(t(294))/1+parseInt(t(314))/2+parseInt(t(328))/3+-parseInt(t(338))/4*(-parseInt(t(291))/5)+-parseInt(t(345))/6+-parseInt(t(323))/7*(-parseInt(t(280))/8)+-parseInt(t(331))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class he{constructor(){const t=ue;this[t(325)]=!1,this[t(279)]=null}[de(341)](t){const e=de;this._config=t,this[e(325)]=!0,t[e(278)]&&console[e(316)](e(334))}isReady(){return this[de(325)]}[de(308)](){return this[de(279)]}[de(309)](t){const e=de;oe[e(309)](t),this[e(279)]?.[e(278)]&&console[e(316)]("👤 User properties set:",t)}[de(303)](){return oe[de(318)]()}[de(285)](t){const e=de;$t.setDeviceInfo(t),this[e(279)]?.[e(278)]&&console[e(316)](e(286),t)}setDeviceProperty(t,e){const n=de;$t[n(313)](t,e),this._config?.[n(278)]&&console[n(316)](n(299),t,e)}[de(297)](){const t=de;$t[t(297)](),this._config?.[t(278)]&&console[t(316)](t(335))}getUserDeviceInfo(){return $t[de(317)]()}[de(283)](){return $t[de(283)]()}[de(288)](){return oe[de(288)]()}[de(318)](){return oe.getCurrentUserProperties()}async[de(327)](t,e){const n=de;if(this[n(325)])if(this[n(279)]?.[n(306)])try{const r=this[n(307)]();if(r){const o={eventName:t,sdkVersion:k(),device:$t[n(283)](),user:oe[n(288)](),attributionId:r,params:e||{}};return await this[n(337)](o),void(this[n(279)][n(278)]&&console[n(316)](n(304),t,r))}const o=le.toAttributionObject(),i={eventName:t,sdkVersion:k(),device:$t[n(283)](),user:oe[n(288)](),...o&&{attribution:o},params:e||{}};await this.sendEventToServer(i),this[n(279)][n(278)]&&(console[n(316)]("✅ Event tracked:",t,e),o&&console.log(n(300),o))}catch(r){console[n(282)](n(344),r),this[n(279)][n(278)]&&console[n(282)](n(289),{eventName:t,properties:e})}else console[n(330)](n(343));else console[n(330)](n(302))}async registerAttribution(t){const e=de;if(!this._isReady)return console[e(330)]("Events module not initialized. Call AdStage.init() first."),null;if(!this[e(279)]?.apiKey)return console[e(330)](e(292)),null;try{const n=le[e(324)]();if(!n||0===Object[e(284)](n)[e(315)])return this[e(279)][e(278)]&&console[e(316)](e(301)),null;const r=await this[e(346)]({deviceId:t,referrerParams:n});if(this[e(279)][e(278)]&&console.log(e(310),r),r[e(342)]){try{localStorage.setItem(e(332),r[e(342)])}catch(t){}try{sessionStorage[e(347)]("adstage_attribution_id",r[e(342)])}catch(t){}}return r}catch(t){return console[e(282)](e(311),t),null}}[de(307)](){const t=de;if(typeof window===t(312))return null;try{const e=sessionStorage[t(296)](t(332));if(e)return e}catch(t){}try{return localStorage.getItem(t(332))}catch(t){}return null}async[de(298)](t,e){return this[de(327)](t,e)}async[de(337)](t){const e=de,n={...R[e(326)](this[e(279)][e(306)]),"Content-Type":"application/json"};this[e(279)]?.debug&&(console[e(316)](e(281),n),console[e(316)](e(290),W.events[e(327)]()),console[e(316)](e(329),t));const r=await fetch(W[e(276)].track(),{method:"POST",headers:n,body:JSON[e(340)](t)});if(!r.ok){const t=await r[e(295)]();throw console.error(e(321),t),new Error(e(287)+r[e(305)]+" "+r[e(320)])}}async[de(346)](t){const e=de,n={...R[e(326)](this[e(279)].apiKey),"Content-Type":e(293)};this[e(279)]?.[e(278)]&&(console[e(316)](e(322),n),console[e(316)](e(277),W[e(276)][e(333)]()),console.log("📦 Attribution request body:",t));const r=await fetch(W[e(276)][e(333)](),{method:e(336),headers:n,body:JSON.stringify(t)});if(!r.ok){const t=await r[e(295)]();throw console.error("❌ API Error Response:",t),new Error(e(319)+r[e(305)]+" "+r.statusText)}return r[e(339)]()}}const fe=me;function ge(){const t=["❌ Error in click event auto-tracking:","debug","from","adstage_device_id","channel","init","❌ Failed to auto-track click event:","now","✅ Auto-tracked click event with tracking params:","7881KOpIUV","track","height","clear","5013160cgfMkH","reset","302fQifwV","3JXUowE","attributionId","expiresAt","hardwareConcurrency","getTimezoneOffset","warn","AdStage not initialized. Call AdStage.init() first.","undefined","toISOString","🔍 Should send click event:","viewableTracker","get","_config","8AcqUwI","2.0.0","9295092KCotIh","🌐 API endpoint configured:","toString","baseUrl","toAttributionObject","isReady","getInstance","tracking_params","server-","userAgent","ads","instance","AdStage.events accessed before initialization","location","13112759WFYCDB","campaign","setBaseUrl","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","generateDeviceId","18512ADnMUk","📊 AdStage Debug: 현재 viewable 추적 상태","charCodeAt","757955dbQvSK","random","clearAdViewable","modules","attribution_id","AdStage.config accessed before initialization","🔗 Using attributionId from URL (attribution_id):","6KDQsaa","✅ Attribution registered:","error","registerAttribution","357273cNXoBG","events","function","substring","📊 Tracking parameters captured:","🚀 AdStage SDK initialized (sync mode)","...","click","then","getConfig","getItem","_isInitialized","setItem","🎯 Sending click event after attribution registration","AdStage.ads accessed before initialization","catch","apiKey","web-","shouldSendClickEvent",")의 viewable 추적 초기화됨","log","config"];return(ge=function(){return t})()}function me(t,e){const n=ge();return(me=function(t,e){return n[t-=299]})(t,e)}!function(){const t=me,e=ge();for(;;)try{if(625358===parseInt(t(326))/1*(parseInt(t(332))/2)+-parseInt(t(333))/3*(parseInt(t(367))/4)+parseInt(t(370))/5*(parseInt(t(377))/6)+-parseInt(t(381))/7+parseInt(t(346))/8*(parseInt(t(348))/9)+-parseInt(t(330))/10+-parseInt(t(362))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ye{constructor(){const t=me;this[t(306)]=!1,this[t(345)]=null,this[t(316)]=new Zt,this[t(358)]=new Yt,this.events=new he}static[fe(322)](t){const e=fe;!ye[e(359)]&&(ye[e(359)]=new ye);const n=ye[e(359)];if(!t[e(311)])throw new Error("API key is required for AdStage initialization");n[e(345)]={timeout:3e4,debug:!1,modules:["ads",e(382),e(316)],...t},n._config[e(351)]&&(W[e(364)](n[e(345)][e(351)]),t[e(318)]&&console[e(315)](e(349),n[e(345)].baseUrl));const r=n[e(345)][e(373)]||[e(358),e(382),e(316)];for(const t of r){const r=n[t];r&&typeof r.init===e(383)&&r[e(322)](n[e(345)])}if(n[e(306)]=!0,typeof window!==e(340)){const r=le.captureFromUrl();r&&t[e(318)]&&console[e(315)](e(299),r);const o=(()=>{const t=e;try{const e=new URLSearchParams(window[t(361)].search),n=new URLSearchParams((window.location.hash||"").replace(/^#/,""));return e[t(344)]("attribution_id")||n[t(344)](t(374))}catch{return null}})();if(o)try{localStorage[e(307)]("adstage_attribution_id",o),t[e(318)]&&console.log(e(376),o)}catch(t){}const i=le[e(313)]();t[e(318)]&&(console[e(315)](e(342),i),!i&&console[e(315)]("⏭️ Skipping click event (duplicate or no click ID)"));const s=le.hasClickId(),a=!(!r||!r[e(321)]);if(!o&&r&&(s||a)){const r=(async()=>{const r=e;try{const e=n[r(366)](),o=await n[r(382)][r(380)](e);return o&&t[r(318)]&&console[r(315)](r(378),{attributionId:o.attributionId,channel:o[r(321)],campaign:o[r(363)],expiresAt:o[r(335)]}),o}catch(t){return console[r(379)]("❌ Failed to register attribution:",t),null}})();i&&r[e(303)](r=>{const o=e;try{const e=le[o(344)](),i=le.toAttributionObject();t.debug&&console[o(315)](o(308),{attributionId:r?.[o(334)],hasAttribution:!!r}),n[o(382)][o(327)](o(302),{_autoGenerated:!0,_source:o(355),_timestamp:(new Date)[o(341)](),_platform:"web"})[o(303)](()=>{const n=o;le.markClickEventSent(),t[n(318)]&&console[n(315)]("✅ Auto-tracked click event with tracking params:",{attribution:i,trackingParams:e})}).catch(t=>{const e=o;console[e(379)](e(323),t)})}catch(t){console[o(379)](o(317),t)}})}else i&&setTimeout(()=>{const r=e;try{const e=le[r(344)](),o=le[r(352)]();n[r(382)][r(327)](r(302),{_autoGenerated:!0,_source:r(355),_timestamp:(new Date).toISOString(),_platform:"web"})[r(303)](()=>{const n=r;le.markClickEventSent(),t[n(318)]&&console[n(315)](n(325),{attribution:o,trackingParams:e})})[r(310)](t=>{console[r(379)]("❌ Failed to auto-track click event:",t)})}catch(t){console[r(379)](r(317),t)}},100)}t.debug&&console[e(315)](e(300),{version:e(347),modules:r,apiKey:t[e(311)][e(384)](0,8)+e(301),mode:"development"})}static[fe(353)](){const t=fe;return ye[t(359)]?.[t(306)]||!1}static[fe(304)](){return ye.instance?._config||null}static[fe(354)](){const t=fe;if(!ye[t(359)])throw new Error(t(339));return ye[t(359)]}static get[fe(358)](){const t=fe;try{return ye[t(354)]().ads}catch(e){throw console.warn(t(309)),e}}static get[fe(382)](){const t=fe;try{return ye.getInstance()[t(382)]}catch(e){throw console[t(338)](t(360)),e}}static get[fe(316)](){const t=fe;try{return ye[t(354)]()[t(316)]}catch(e){throw console[t(338)](t(375)),e}}static[fe(331)](){const t=fe;ye[t(359)]&&(ye[t(359)][t(306)]=!1,ye[t(359)]._config=null)}generateDeviceId(){const t=fe;if(typeof window===t(340))return t(356)+Math[t(371)]()[t(350)](36)[t(384)](2,15);const e=localStorage[t(305)](t(320));if(e)return e;const n=[navigator[t(357)],navigator.language,screen.width+"x"+screen[t(328)],(new Date)[t(337)](),navigator[t(336)]||0].join("|");let r=0;for(let e=0;e<n.length;e++){r=(r<<5)-r+n[t(369)](e),r&=r}const o=t(312)+Math.abs(r)[t(350)](36)+"-"+Date[t(324)]()[t(350)](36);return localStorage[t(307)](t(320),o),o}}function ve(t,e){var n=Ie();return(ve=function(t,e){return n[t-=103]})(t,e)}function Ie(){var t=["4062IowQji","isReady","272NaWXVJ","AdStage not initialized. Call AdStage.init() first.","11134508tBVmJL","setUserProperties","299238aYBOJc","853286yzpICs","142737TvHdzc","6062922whJVxX","2YkgfIs","resolve","warn","events","2348iQlzzN","2140030lGNLhh","track","85PPhcCz"];return(Ie=function(){return t})()}function be(t,e){var n=ve;return ye.isReady()?ye[n(108)][n(111)](t,e):(console.warn("AdStage not initialized. Call AdStage.init() first."),Promise[n(106)]())}function we(t){var e=ve;ye[e(114)]()?ye[e(108)][e(118)](t):console.warn("AdStage not initialized. Call AdStage.init() first.")}function ke(){var t=ve;if(ye[t(114)]())return ye.events.getUserProperties();console[t(107)](t(116))}ye[fe(318)]={clearAllViewable:()=>{const t=fe;at[t(329)](),console.log(t(365))},clearAdViewable:(t,e)=>{const n=fe;at[n(372)](t,e),console.log("✅ AdStage Debug: 광고 "+t+"("+e+n(314))},getViewableStatus:()=>{const t=fe;console.log(t(368),{trackedCount:at[t(343)].size,trackedItems:Array[t(319)](at[t(343)])})}},function(){for(var t=ve,e=Ie();;)try{if(456514===-parseInt(t(120))/1*(-parseInt(t(105))/2)+-parseInt(t(113))/3*(parseInt(t(109))/4)+parseInt(t(112))/5*(-parseInt(t(119))/6)+-parseInt(t(103))/7*(-parseInt(t(115))/8)+-parseInt(t(104))/9+parseInt(t(110))/10+parseInt(t(117))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ee,xe={exports:{}},Se={},Ae={exports:{}},Ce={};Ae.exports=function(){if(Ee)return Ce;Ee=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function y(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var v=y.prototype=new m;v.constructor=y,h(v,g.prototype),v.isPureReactComponent=!0;var I=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var o,i={},s=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)b.call(n,o)&&!k.hasOwnProperty(o)&&(i[o]=n[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:t,type:e,key:s,ref:a,props:i,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var S=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function C(n,r,o,i,s){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return s=s(c=n),n=""===i?"."+A(c,0):i,I(s)?(o="",null!=n&&(o=n.replace(S,"$&/")+"/"),C(s,r,o,"",function(t){return t})):null!=s&&(x(s)&&(s=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(S,"$&/")+"/")+n)),r.push(s)),1;if(c=0,i=""===i?".":i+":",I(n))for(var l=0;l<n.length;l++){var d=i+A(a=n[l],l);c+=C(a,r,o,d,s)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof d)for(n=d.call(n),l=0;!(a=n.next()).done;)c+=C(a=a.value,r,o,d=i+A(a,l++),s);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function T(t,e,n){if(null==t)return t;var r=[],o=0;return C(t,r,"","",function(t){return e.call(n,t,o++)}),r}function _(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var R={current:null},D={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:D,ReactCurrentOwner:w};function O(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:T,forEach:function(t,e,n){T(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return T(t,function(){e++}),e},toArray:function(t){return T(t,function(t){return t})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Ce.Component=g,Ce.Fragment=n,Ce.Profiler=o,Ce.PureComponent=y,Ce.StrictMode=r,Ce.Suspense=c,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,Ce.act=O,Ce.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(s=n.ref,a=w.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)b.call(n,l)&&!k.hasOwnProperty(l)&&(o[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:t,type:e.type,key:i,ref:s,props:o,_owner:a}},Ce.createContext=function(t){return(t={$$typeof:s,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:t},t.Consumer=t},Ce.createElement=E,Ce.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(t){return{$$typeof:a,render:t}},Ce.isValidElement=x,Ce.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:_}},Ce.memo=function(t,e){return{$$typeof:l,type:t,compare:void 0===e?null:e}},Ce.startTransition=function(t){var e=D.transition;D.transition={};try{t()}finally{D.transition=e}},Ce.unstable_act=O,Ce.useCallback=function(t,e){return R.current.useCallback(t,e)},Ce.useContext=function(t){return R.current.useContext(t)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(t){return R.current.useDeferredValue(t)},Ce.useEffect=function(t,e){return R.current.useEffect(t,e)},Ce.useId=function(){return R.current.useId()},Ce.useImperativeHandle=function(t,e,n){return R.current.useImperativeHandle(t,e,n)},Ce.useInsertionEffect=function(t,e){return R.current.useInsertionEffect(t,e)},Ce.useLayoutEffect=function(t,e){return R.current.useLayoutEffect(t,e)},Ce.useMemo=function(t,e){return R.current.useMemo(t,e)},Ce.useReducer=function(t,e,n){return R.current.useReducer(t,e,n)},Ce.useRef=function(t){return R.current.useRef(t)},Ce.useState=function(t){return R.current.useState(t)},Ce.useSyncExternalStore=function(t,e,n){return R.current.useSyncExternalStore(t,e,n)},Ce.useTransition=function(){return R.current.useTransition()},Ce.version="18.3.1",Ce}();var Te,_e=Ae.exports;
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -7,4 +7,4 @@ var t,e,n,r,o,i,s,a,c,l,d,u;function p(){var t=["NATIVE","POPUP","TABLET","VIEWA
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */Ee.exports=function(){if(Te)return xe;Te=1;var t=_e,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(t,n,s){var a,c={},l=null,d=null;for(a in void 0!==s&&(l=""+s),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(c[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===c[a]&&(c[a]=n[a]);return{$$typeof:e,type:t,key:l,ref:d,props:c,_owner:o.current}}return xe.Fragment=n,xe.jsx=s,xe.jsxs=s,xe}();var Re=Ee.exports;const De=_e.createContext(null);function Pe({children:t,config:e}){const[n,r]=_e.useState(!1),[o,i]=_e.useState(null),[s,a]=_e.useState(null),c=t=>{try{a(null),n&&me.reset(),me.init(t),i(t),r(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),r(!1),i(null)}};_e.useEffect(()=>{e&&!n&&c(e)},[e,n]);const l={isInitialized:n,config:o,initialize:c,reset:()=>{try{me.reset(),r(!1),i(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:s};return Re.jsx(De.Provider,{value:l,children:t})}function Ue(){const t=_e.useContext(De);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Oe(){const{isInitialized:t}=Ue();return t?me:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Le(t,e){var n=Be();return(Le=function(t,e){return n[t-=152]})(t,e)}function Be(){var t=["9368XsGwuu","990781qFDgRy","4618158ULWWWZ","2467260XLSOmn","10rhgmpe","152pOLjUU","566132EWBtnt","252dAtayt","1611uyURji","24954YGwlft","1754872WlDapO","72eNObTZ"];return(Be=function(){return t})()}!function(){for(var t=Le,e=Be();;)try{if(994988===-parseInt(t(158))/1*(-parseInt(t(162))/2)+parseInt(t(155))/3+parseInt(t(163))/4*(parseInt(t(157))/5)+parseInt(t(152))/6*(-parseInt(t(159))/7)+parseInt(t(153))/8*(-parseInt(t(161))/9)+-parseInt(t(156))/10+-parseInt(t(154))/11*(parseInt(t(160))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ze=Fe;function Me(){const t=["378xGnaBt","329TCxUCp","18375408CAobRL","4638805sqbDDM","6619992SpmORT","events","73918XhuFqf","AdStage","ads","undefined","28164ayXYvH","41656hsOLUc","192904Rmvfnq"];return(Me=function(){return t})()}function Fe(t,e){const n=Me();return(Fe=function(t,e){return n[t-=396]})(t,e)}!function(){const t=Fe,e=Me();for(;;)try{if(756780===-parseInt(t(401))/1+parseInt(t(407))/2+parseInt(t(408))/3*(-parseInt(t(405))/4)+parseInt(t(398))/5+-parseInt(t(399))/6+-parseInt(t(396))/7*(parseInt(t(406))/8)+parseInt(t(397))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ne="2.0.0",Ve=[ze(403),ze(400),"config"];typeof window!==ze(404)&&(window[ze(402)]=me);export{me as AdStage,Pe as AdStageProvider,Ne as SDK_VERSION,Ve as SUPPORTED_MODULES,le as TrackingParamsModule,ke as getUserProperties,we as setUserProperties,be as track,Ue as useAdStageContext,Oe as useAdStageInstance};
10
+ */xe.exports=function(){if(Te)return Se;Te=1;var t=_e,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(t,n,s){var a,c={},l=null,d=null;for(a in void 0!==s&&(l=""+s),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(c[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===c[a]&&(c[a]=n[a]);return{$$typeof:e,type:t,key:l,ref:d,props:c,_owner:o.current}}return Se.Fragment=n,Se.jsx=s,Se.jsxs=s,Se}();var Re=xe.exports;const De=_e.createContext(null);function Le({children:t,config:e}){const[n,r]=_e.useState(!1),[o,i]=_e.useState(null),[s,a]=_e.useState(null),c=t=>{try{a(null),n&&ye.reset(),ye.init(t),i(t),r(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),r(!1),i(null)}};_e.useEffect(()=>{e&&!n&&c(e)},[e,n]);const l={isInitialized:n,config:o,initialize:c,reset:()=>{try{ye.reset(),r(!1),i(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:s};return Re.jsx(De.Provider,{value:l,children:t})}function Oe(){const t=_e.useContext(De);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Pe(){const{isInitialized:t}=Oe();return t?ye:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Ue(t,e){var n=ze();return(Ue=function(t,e){return n[t-=396]})(t,e)}function ze(){var t=["33842943jOxOio","1592103xgWtyw","6351821NxSJYM","4ycCfgS","8MxWGxI","882935xlVdkO","2044214wBvGNL","6795204rdHaHC","1225845WZDSxP"];return(ze=function(){return t})()}!function(){for(var t=Ue,e=ze();;)try{if(591218===-parseInt(t(403))/1+-parseInt(t(404))/2+parseInt(t(399))/3+parseInt(t(401))/4*(parseInt(t(397))/5)+-parseInt(t(396))/6+-parseInt(t(400))/7+-parseInt(t(402))/8*(-parseInt(t(398))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Be=Me;function Me(t,e){const n=Ve();return(Me=function(t,e){return n[t-=380]})(t,e)}!function(){const t=Me,e=Ve();for(;;)try{if(402231===-parseInt(t(380))/1+-parseInt(t(387))/2+-parseInt(t(389))/3+-parseInt(t(390))/4*(-parseInt(t(391))/5)+-parseInt(t(386))/6*(parseInt(t(381))/7)+parseInt(t(385))/8+parseInt(t(388))/9*(parseInt(t(392))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ne=Be(383);function Ve(){const t=["80888WefEBw","145UFIgAH","6820JNdHAJ","689816aICLZU","10423xqqwgD","events","2.0.0","config","4583744zASNft","84RUXpae","112842OEoVUw","2412qEvcrN","518604mIdUtF"];return(Ve=function(){return t})()}const Fe=["ads",Be(382),Be(384)];"undefined"!=typeof window&&(window.AdStage=ye);export{ye as AdStage,Le as AdStageProvider,Ne as SDK_VERSION,Fe as SUPPORTED_MODULES,le as TrackingParamsModule,ke as getUserProperties,we as setUserProperties,be as track,Oe as useAdStageContext,Pe as useAdStageInstance};