@adstage/web-sdk 3.0.13 → 3.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as r,useContext as s}from"react";var i,o,a,c,d,l,u,p,h,f,g,m;function I(t,e){var n=v();return(I=function(t,e){return n[t-=361]})(t,e)}function v(){var t=["INTERSTITIAL","TABLET","72850heVkBE","1141997dLaHix","2193114IvTgzc","NATIVE","954QhkxOZ","MOBILE","584212keltvs","278NIMeXd","WEB","10ShbVLn","POPUP","CLICK","5067944hvIfiY","1785vVLpnc","VIEWABLE","VIDEO","DESKTOP","BANNER","TEXT","3626958nlHqnb"];return(v=function(){return t})()}!function(){for(var t=I,e=v();;)try{if(613788===parseInt(t(374))/1+parseInt(t(380))/2*(parseInt(t(364))/3)+parseInt(t(379))/4+-parseInt(t(382))/5*(parseInt(t(370))/6)+parseInt(t(375))/7+-parseInt(t(363))/8+-parseInt(t(377))/9*(-parseInt(t(373))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(o=i||(i={}))[(a=I)(368)]="BANNER",o.POPUP=a(361),o.INTERSTITIAL=a(371),o[a(376)]=a(376),o[a(366)]=a(366),o[a(369)]=a(369),(d=c||(c={}))[(l=I)(381)]=l(381),d[l(378)]=l(378),(p=u||(u={}))[(h=I)(365)]=h(365),p[h(362)]="CLICK",(g=f||(f={}))[(m=I)(367)]=m(367),g.MOBILE=m(378),g[m(372)]=m(372);const y=b;function b(t,e){const n=w();return(b=function(t,e){return n[t-=123]})(t,e)}function w(){const t=["325854YuZFGJ","location","isDOMReady","appendChild","remove",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"getViewportInfo","421360IMFTdN","safeQuerySelector","from","getPageInfo","safeRemoveClass","번째 시도, ","2420264YRixLt","safeWindowOpen","29496sMKKcu","ceil","log","getDocumentProperty","20744MQLJAK","3138pPkuGd","innerHeight","waitForElements","querySelector","safeAddClass","safeApplyStyles","waitForDOM","add","safeGetElementById","ms)","readyState","classList","addEventListener","undefined","canUseDOM","removeChild","363GpddKC","entries","1795mLkbsP","querySelectorAll","safeSetInnerHTML","createElement","DOM을 사용할 수 없는 환경입니다.","safeAppendChild","removeEventListener","isBrowser","scrollTop","1098HoKqWk","referrer","waitForElement","getWindowProperty","safeSetTextContent","safeAddEventListener","✅ 컨테이너 즉시 발견: ","devicePixelRatio",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"forEach",'❌ 컨테이너를 찾을 수 없습니다: "',"✅ 컨테이너 발견: ","getElementById","18rDCBhd","getScrollInfo","innerWidth","isSSR","loading"," (최대 ","title","setProperty","innerHTML","ms (","documentElement","error","getComputedStyle","366770cJHOHR"];return(w=function(){return t})()}!function(){const t=b,e=w();for(;;)try{if(243710===-parseInt(t(154))/1+-parseInt(t(161))/2+parseInt(t(140))/3*(parseInt(t(169))/4)+parseInt(t(192))/5*(parseInt(t(174))/6)+-parseInt(t(167))/7+-parseInt(t(173))/8*(parseInt(t(127))/9)+parseInt(t(153))/10*(parseInt(t(190))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{static[y(125)](){return typeof window!==y(187)&&"undefined"!=typeof document}static[y(143)](){return!this.isBrowser()}static[y(188)](){const t=y;return this.isBrowser()&&void 0!==document[t(184)]}static[y(182)](t){const e=y;return this.canUseDOM()?document[e(139)](t):null}static[y(162)](t){const e=y;return this[e(188)]()?document[e(177)](t):null}static safeQuerySelectorAll(t){const e=y;return this[e(188)]()?Array[e(163)](document[e(193)](t)):[]}static safeCreateElement(t){const e=y;return this[e(188)]()?document[e(195)](t):null}static[y(132)](t,e,n,r){const s=y;this[s(188)]()&&t&&t[s(186)](e,n,r)}static safeRemoveEventListener(t,e,n,r){const s=y;this[s(188)]()&&t&&t[s(124)](e,n,r)}static[y(130)](t,e){return this[y(125)]()?window[t]??e:e}static getDocumentProperty(t,e){return this.canUseDOM()?document[t]??e:e}static[y(168)](t,e,n){return this[y(125)]()?window.open(t,e,n):null}static safeGetComputedStyle(t){const e=y;return this[e(125)]()&&t?window[e(152)](t):null}static[y(156)](){const t=y;return!!this[t(188)]()&&document[t(184)]!==t(144)}static[y(180)](){return new Promise(t=>{const e=b;this[e(188)]()?this[e(156)]()?t():this[e(132)](document,"DOMContentLoaded",()=>t()):t()})}static[y(179)](t,e){const n=y;this[n(188)]()&&t&&Object[n(191)](e)[n(136)](([e,r])=>{const s=n;t.style[s(147)](e,r)})}static[y(178)](t,e){const n=y;this.canUseDOM()&&t&&t[n(185)][n(181)](e)}static[y(165)](t,e){const n=y;this[n(188)]()&&t&&t.classList[n(158)](e)}static[y(131)](t,e){this[y(188)]()&&t&&(t.textContent=e)}static[y(194)](t,e){const n=y;this[n(188)]()&&t&&(t[n(148)]=e)}static[y(123)](t,e){const n=y;this[n(188)]()&&t&&e&&t[n(157)](e)}static safeRemoveChild(t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(189)](e)}static[y(164)](){const t=y;return{url:this.getWindowProperty(t(155),{href:""}).href,title:this.getDocumentProperty(t(146),""),referrer:this[t(172)](t(128),"")}}static[y(160)](){const t=y;return{width:this.getWindowProperty(t(142),0),height:this[t(130)](t(175),0),pixelRatio:this[t(130)](t(134),1)}}static[y(141)](){const t=y;return{scrollTop:this[t(188)]()?window.pageYOffset||document[t(150)][t(126)]:0,scrollLeft:this[t(130)]("pageXOffset",0)}}static async[y(129)](t,e={}){const n=y,{timeout:r=3e3,retryInterval:s=100,debug:i=!1}=e;if(!this.canUseDOM())throw new Error(n(196));const o=document[n(139)](t);return o?(i&&console.log(n(133)+t),o):(i&&console[n(171)]("⏳ 컨테이너 대기 시작: "+t+n(145)+r+n(183)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(170)](r/s),l=()=>{const n=a;c++;const u=document[n(139)](t);if(u)return i&&console[n(171)](n(138)+t+" ("+c+n(166)+c*s+"ms 경과)"),void e(u);if(c>=d){const e=n(137)+t+n(135)+t+n(159)+r+n(149)+c+"번 시도)";return i&&console[n(151)](e),void o(new Error(e))}i&&c%10==0&&console[n(171)]("⏳ 컨테이너 대기 중: "+t+" ("+c+"/"+d+")");const p=Math.min(s*Math.pow(1.2,c),500);setTimeout(l,p)};setTimeout(l,s)}))}static async[y(176)](t,e={}){const n=y,r=t.map(t=>this[n(129)](t,e));return Promise.all(r)}}function E(t,e){const n=A();return(E=function(t,e){return n[t-=277]})(t,e)}function A(){const t=["470xxNOOX","3.0.13","AdStageSDK/","4185dPFzrT","1057HVMPLE","58722BZRxXy","930MtHojr"," AdStageSDK/","499873YYxejY","310jvvzZR","7486857yYiXbg","1741968RnxCBg","21776HZLNBW","444223MTQFsl"];return(A=function(){return t})()}const x=E;!function(){const t=E,e=A();for(;;)try{if(517172===parseInt(t(277))/1+parseInt(t(284))/2*(-parseInt(t(281))/3)+parseInt(t(289))/4+parseInt(t(287))/5*(-parseInt(t(283))/6)+-parseInt(t(282))/7*(parseInt(t(290))/8)+-parseInt(t(288))/9+parseInt(t(278))/10*(parseInt(t(286))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const S=x(279);function C(){return S}const T=R;function L(){const t=["ssr_session_","safeGetElementById","getPlatform","toLowerCase","substr","session_","timeZone","connection","platform","DateTimeFormat","isMobile","164896ndLHdy","3981488jkbgiS","136760jcunFa","getViewportInfo","safeQuerySelector","pixelRatio","now","device_","177348CepAHq","colorDepth",'[data-adstage-slot-id="',"ios","adstage_session_id","language","toString","getItem","web","effectiveType","1.0.0","56xDUdrw","generateSessionId","resolvedOptions","getBoundingClientRect","adstage_device_id","ssr_device_","round","android","2358450XRSeoa","test","isBrowser","SSR","setItem","top","293004lVGrMD","desktop","collectDeviceInfo","77agRfWE","488398KDaUkw","userAgent","getScrollInfo","width"," .adstage-slider-wrapper","getSlotPosition","UTC","random","left","scrollTop","generateDeviceId","unknown"];return(L=function(){return t})()}function R(t,e){const n=L();return(R=function(t,e){return n[t-=233]})(t,e)}!function(){const t=R,e=L();for(;;)try{if(310763===-parseInt(t(259))/1+-parseInt(t(236))/2+-parseInt(t(292))/3+-parseInt(t(278))/4*(-parseInt(t(261))/5)+-parseInt(t(267))/6*(parseInt(t(235))/7)+parseInt(t(260))/8+parseInt(t(286))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class D{static[T(246)](){const t=T;if(!k[t(288)]())return t(283)+Date.now();const e=localStorage[t(274)](t(282));if(e)return e;const n=t(266)+Math.random().toString(36).substr(2,9)+"_"+Date[t(265)]();return localStorage[t(290)](t(282),n),n}static[T(279)](){const t=T;if(!k[t(288)]())return t(248)+Date[t(265)]();const e=sessionStorage.getItem(t(271));if(e)return e;const n=t(253)+Math[t(243)]()[t(273)](36)[t(252)](2,9)+"_"+Date.now();return sessionStorage[t(290)]("adstage_session_id",n),n}static[T(258)](){const t=T;return!!k.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator[t(237)])}static[T(250)](){const t=T;if(!k[t(288)]())return t(275);const e=navigator[t(237)][t(251)]();return/iphone|ipad|ipod/.test(e)?t(270):/android/[t(287)](e)?t(285):D.isMobile()?t(275):t(233)}static[T(234)](){const t=T,e=k[t(262)]();return{deviceId:D[t(246)](),sessionId:D[t(279)](),osVersion:k[t(288)]()?navigator[t(256)]:t(289),deviceModel:k[t(288)]()?navigator.platform:t(289),appVersion:t(277),sdkVersion:C(),language:k[t(288)]()&&navigator[t(272)]||"ko",country:"KR",ipAddress:"",userAgent:k[t(288)]()?navigator[t(237)]:t(289),timezone:k[t(288)]()?Intl[t(257)]()[t(280)]()[t(254)]:t(242),viewportWidth:e[t(239)],viewportHeight:e.height,screenWidth:k[t(288)]()?screen[t(239)]:0,screenHeight:k[t(288)]()?screen.height:0,colorDepth:k[t(288)]()?screen[t(268)]:24,pixelRatio:e[t(264)],connectionType:k[t(288)]()?navigator[t(255)]?.[t(276)]||"unknown":t(247),platform:D.getPlatform()}}static[T(241)](t){const e=T;let n=k[e(249)](t);if(!n){const r=k.safeQuerySelector("#"+t+e(240));r&&(n=r)}if(!n&&(n=k[e(263)](e(269)+t+'"]')),!n)return e(247);const r=n[e(281)](),s=k[e(238)]();return"x:"+Math[e(284)](r[e(244)])+",y:"+Math[e(284)](r[e(291)]+s[e(245)])}}const _=P;function P(t,e){const n=B();return(P=function(t,e){return n[t-=448]})(t,e)}function B(){const t=["675151AZPQsD","contentType","undefined","API key is required","931200aDrEcA","userAgent","create","3352284xtmgtV","application/json","55ponGrB","3475062ScKlvB","createForEvents","1544360mhCRFT","2cQDHdl","21RrnLJz","12duXYLN","140092VuUpve","3224600vExfzw","User-Agent"];return(B=function(){return t})()}!function(){const t=P,e=B();for(;;)try{if(341861===parseInt(t(458))/1*(parseInt(t(452))/2)+parseInt(t(454))/3*(-parseInt(t(455))/4)+parseInt(t(456))/5+-parseInt(t(449))/6+parseInt(t(453))/7*(parseInt(t(451))/8)+-parseInt(t(465))/9+-parseInt(t(462))/10*(parseInt(t(448))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{static[_(464)](t,e){const n=_;if(!t)throw new Error(n(461));const r={"x-api-key":t,"Content-Type":e?.[n(459)]||n(466)};return typeof navigator!==n(460)&&(r[n(457)]=e?.[n(463)]||navigator[n(463)]),r}static[_(450)](t,e){const n=_,r=M[n(464)](t);return e?.[n(463)]&&(r[n(457)]=e[n(463)]),r}}const z=U;function U(t,e){const n=N();return(U=function(t,e){return n[t-=100]})(t,e)}function N(){const t=["parseNumericValue","NOT_SET","stringify","1720059FrhNOH","1379622orSXKt"," in slot ","📡 API Response Status: ","title","width","getSlotPosition","VIEWABLE","POST","debug","⚠️ Slot not found for slotId: ","getPageInfo","21yeyAXk","collectDeviceInfo","error",". Skipping event tracking to prevent incorrect adType.","slots","warn","log","length","602349fAfNqi","createForEvents","number","...","🌐 Full API call details:","⚠️ DOM element not found for slotId: ","🚀 Sending advertisement event: ","containerId","). Skipping event tracking.","now"," for ad ","❌ Failed to track advertisement event:","status","8737182hmSHGB","API request failed: ","height","trackAdvertisementEvent","4239745yZWLyb","referrer","🚀 AdvertisementEventTracker: Processing ","adType","get","string","querySelector"," (containerId: ","4WbBlLm","apiKey","text","getElementById","774988hORchm",'[data-adstage-slot-id="',"/advertisements/events/","baseUrl","12473264KoXBTQ","substring","sessionId","replace","url"," event for ad "];return(N=function(){return t})()}!function(){const t=U,e=N();for(;;)try{if(816698===parseInt(t(135))/1+parseInt(t(102))/2+-parseInt(t(115))/3*(-parseInt(t(160))/4)+-parseInt(t(152))/5+-parseInt(t(116))/6*(-parseInt(t(127))/7)+-parseInt(t(106))/8+parseInt(t(148))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class O{constructor(t,e,n,r){const s=U;this[s(105)]=t,this[s(161)]=e,this[s(124)]=n,this.slots=r}async[z(151)](t,e,n){const r=z;try{this[r(124)]&&console.log(r(154)+n+r(111)+t+r(117)+e);const s=this[r(131)][r(156)](e);if(!s)return void(this[r(124)]&&console[r(132)](r(125)+e+r(130)));if(!(document[r(101)](s[r(142)])||document[r(158)](r(103)+e+'"]')))return void(this[r(124)]&&console.warn(r(140)+e+r(159)+s.containerId+r(143)));const i=D[r(128)](),o={adType:s[r(155)],platform:i.platform,deviceId:i.deviceId,deviceInfo:i,pageUrl:k[r(126)]()[r(110)],pageTitle:k[r(126)]()[r(119)],referrer:k[r(126)]()[r(153)],slotId:e,slotPosition:D[r(121)](s[r(142)]),slotWidth:O[r(112)](s[r(120)]),slotHeight:O.parseNumericValue(s[r(150)]),sessionId:i[r(108)],pageLoadTime:performance[r(144)](),metadata:{eventType:n,sdkVersion:C(),timestamp:Date[r(144)]()},...n===u[r(122)]&&{isViewable:!0,iabCompliant:!0}},a=this.baseUrl+r(104)+t+"/"+n,c=M[r(136)](this[r(161)],o);this[r(124)]&&(console.log(r(141)+n+r(145)+t,{url:a,headers:c,eventData:o}),console[r(133)](r(139),{method:"POST",url:a,hasApiKey:!!this[r(161)],bodySize:JSON[r(114)](o)[r(134)]}));const d=await fetch(a,{method:r(123),headers:c,body:JSON.stringify(o)});if(this[r(124)]&&console[r(133)](r(118)+d[r(147)]+" "+d.statusText,{url:a,ok:d.ok}),!d.ok){const t=await d[r(100)]();throw new Error(r(149)+d[r(147)]+" "+d.statusText+" - "+t)}this[r(124)]&&console[r(133)]("✅ Successfully tracked advertisement event: "+n+r(145)+t)}catch(s){console[r(129)](r(146),s),console.error("🔍 Debug info:",{baseUrl:this[r(105)],apiKey:this[r(161)]?this[r(161)][r(107)](0,8)+r(138):r(113),url:this.baseUrl+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=z;if(typeof t===e(137))return t;if(typeof t===e(157)){const n=parseFloat(t[e(109)](/px$/,""));return isNaN(n)?0:n}return 0}}var F=V;function V(t,e){var n=H();return(V=function(t,e){return n[t-=351]})(t,e)}!function(){for(var t=V,e=H();;)try{if(967748===parseInt(t(374))/1+-parseInt(t(359))/2*(parseInt(t(351))/3)+-parseInt(t(366))/4*(-parseInt(t(376))/5)+parseInt(t(369))/6+parseInt(t(373))/7*(-parseInt(t(367))/8)+-parseInt(t(364))/9*(parseInt(t(361))/10)+-parseInt(t(362))/11*(parseInt(t(360))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class j{constructor(t,e){var n=V;this[n(363)]=null,this[n(371)]=!1,this[n(353)]=t,this[n(357)]=e,this[n(354)]()}[F(354)](){var t=F;t(372)in window?(this[t(363)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(355)}),this[t(363)][t(368)](this[t(353)])):console[t(377)](t(378))}handleIntersection(t){t.forEach(t=>{var e=V;t[e(365)]>=.5&&this[e(370)]()&&!this[e(371)]&&(this.isViewableTriggered=!0,this[e(357)]&&this.onViewableCallback())})}[F(370)](){var t=F;return!document[t(356)]&&"visible"===document[t(352)]}[F(358)](){var t=F;this.observer&&(this[t(363)][t(375)](),this[t(363)]=null)}}function H(){var t=["initIntersectionObserver","0px","hidden","onViewableCallback","destroy","2hUNrme","12aZshiW","96700qMAbZj","4702577eTBKvT","observer","387ihfsSP","intersectionRatio","124zmDMDs","3096xgMWvX","observe","8783796snhOYF","isDocumentVisible","isViewableTriggered","IntersectionObserver","7126GIjBHG","170920gfpnRa","disconnect","266620unXZqL","warn","IntersectionObserver not supported, viewability tracking disabled","3248697YqeVSp","visibilityState","element"];return(H=function(){return t})()}const K=W;function W(t,e){const n=Y();return(W=function(t,e){return n[t-=183]})(t,e)}function Y(){const t=["baseUrl","getBaseUrl","1645672nJSXlh","4827844WftdaD","production","/advertisements","/events/track","events","track","/events/register/attribution","2314323ufLMpM","5dKPCqU","8bMvFGf","/advertisements/events","10206371QEuTKf","2199qDsseh","registerAttribution","advertisements","/advertisements/list","14855310QifiKY","setBaseUrl","7361070CwpvpU","detail","https://beta-api.adstage.app","startsWith","2774BeNdch","custom"];return(Y=function(){return t})()}!function(){const t=W,e=Y();for(;;)try{if(893742===parseInt(t(208))/1+-parseInt(t(204))/2*(parseInt(t(194))/3)+parseInt(t(209))/4*(parseInt(t(190))/5)+-parseInt(t(200))/6+-parseInt(t(193))/7+parseInt(t(191))/8*(parseInt(t(189))/9)+parseInt(t(198))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const X={production:"https://api.adstage.app",beta:K(202)},q={advertisements:{list:K(197),detail:K(184),events:K(192)},events:{track:K(185),registerAttribution:K(188)}};class G{constructor(t){const e=K;this.advertisements={list:()=>""+this.baseUrl+q.advertisements.list,detail:t=>""+this.baseUrl+q[e(196)][e(201)]+"/"+t,events:(t,n)=>""+this[e(206)]+q[e(196)][e(186)]+"/"+t+"/"+n},this[e(186)]={track:()=>""+this.baseUrl+q[e(186)][e(187)],registerAttribution:()=>""+this[e(206)]+q[e(186)][e(195)]},this.baseUrl=t||X[e(183)]}[K(199)](t){this[K(206)]=t}[K(207)](){return this[K(206)]}[K(205)](t){const e=K;return""+this[e(206)]+(t[e(203)]("/")?t:"/"+t)}}const J=new G;var Q=$;function Z(){var t=["trackSlideViewable",") in slot: ","46501910jhCUtE","741482JNteHb","🎯 Triggering VIEWABLE event for slide change: ad ","2132444YmmRGd","VIEWABLE","2840810PnTfgA","_id","🎯 Triggering initial VIEWABLE event: ad ","3KIWUZJ","595176uXQmEH","197532ZLpYoE","26YMrCMh","log","104lCFPgQ","85234eUVcTF"];return(Z=function(){return t})()}function $(t,e){var n=Z();return($=function(t,e){return n[t-=449]})(t,e)}!function(){for(var t=$,e=Z();;)try{if(986590===-parseInt(t(465))/1*(parseInt(t(462))/2)+parseInt(t(459))/3*(-parseInt(t(454))/4)+-parseInt(t(456))/5+-parseInt(t(460))/6+parseInt(t(452))/7*(-parseInt(t(464))/8)+parseInt(t(461))/9+parseInt(t(451))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[Q(449)](t,e,n,r,s=!1){var i=Q;s&&console[i(463)](i(453)+t[i(457)]+" (index: "+n+i(450)+e.id),r(t[i(457)],e.id,u[i(455)])}static trackInitialSlideViewable(t,e,n,r=!1){var s=Q;r&&console[s(463)](s(458)+t._id+" (index: 0) in slot: "+e.id),n(t[s(457)],e.id,u[s(455)])}}const et=rt;function nt(){const t=["18950WJdaDc","_blank"," -> ","_id","stopPropagation","isClickable","linkUrl","84vdrBRr"," ad clicked: ","click","addClickEvent","511788WzwIQC","2908458PTjsnN","forEach","pointer","45597ViGjyD","style","addClickEventForRenderer","CLICK","addEventListener","cursor","4104729kOVmve","573848DJtXWU","toLowerCase","addClickEventForSlider","8064oiFlvv","open","preventDefault","47ZHhiQA","adType","25myxhoQ","170hFgJDz"];return(nt=function(){return t})()}function rt(t,e){const n=nt();return(rt=function(t,e){return n[t-=457]})(t,e)}!function(){const t=rt,e=nt();for(;;)try{if(284055===parseInt(t(457))/1*(-parseInt(t(461))/2)+-parseInt(t(476))/3*(-parseInt(t(468))/4)+-parseInt(t(459))/5*(-parseInt(t(472))/6)+parseInt(t(473))/7+-parseInt(t(486))/8+parseInt(t(482))/9+parseInt(t(460))/10*(-parseInt(t(483))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class st{static[et(471)](t,e,n,r,s=!1,i){const o=et;e[o(467)]&&(t[o(477)][o(481)]=o(475),t[o(480)](o(470),t=>{const a=o;if(t[a(488)](),t[a(465)](),r&&r(e[a(464)],n.id,u[a(479)]),window.open(e.linkUrl,"_blank"),s){const t=i||String(n[a(458)]).toLowerCase();console.log("🔗 "+t+a(469)+e._id+" -> "+e[a(467)])}}))}static[et(478)](t,e,n,r,s=!1,i){const o=et;e[o(467)]&&(t[o(477)][o(481)]=o(475),t[o(480)](o(470),t=>{const a=o;t.preventDefault(),t[a(465)]();if(r()(e._id,n.id,u[a(479)]),window[a(487)](e[a(467)],a(462)),s){const t=i||String(n[a(458)])[a(484)]();console.log("🔗 "+t+a(469)+e[a(464)]+a(463)+e[a(467)])}}))}static[et(485)](t,e,n,r,s=!1,i){this[et(471)](t,e,n,r,s,i)}static[et(466)](t){return Boolean(t[et(467)])}static addClickEventsBatch(t,e,n,r,s=!1,i){const o=et;t[o(474)]((t,a)=>{const c=o,d=e[a];d&&this[c(471)](t,d,n,r,s,i)})}}const it=ot;function ot(t,e){const n=at();return(ot=function(t,e){return n[t-=468]})(t,e)}function at(){const t=["removeChild",".adstage-dot","hidden","124860jmxtdX","createSimpleAdElement","createSliderContainer","1px dashed #ccc","textContent","entries","#000","2627513wqWlsB","toLowerCase","children","height","#666666","adstage-slide","string","0.7","88032YTaSRj","adstage-slide-container","every","addTouchSupport","0.9","classList","mouseenter","#999999","querySelectorAll","width","addClickEventForSlider","adstage-dot","1353zTpcNl","100%","createElement","preventDefault","white","trackSlideViewable","touchend","length","border","transform","19loaubA","mouseleave","flex","1248mfpHXG","contains","normal","\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 ","background","#cccccc","videoUrl","includes","div","data-adstage-slot-id","createMinimalDotIndicator","click","200px","overflow","objectFit","img","setProperty","touchmove","1px solid #666","2215404OWByLP","display","color","src","addEventListener","setAttribute","center","50px","button","8px","block","borderColor","Banner Ad","forEach","VIDEO","none","auto","846dINIKj","imageUrl","body","transition","autoSlideInterval","translateX(-","fontSize","14px","touchstart","cover","143980bdsaTp","appendChild","getBoundingClientRect","100px","inline-block","className","70588NJBGsb","add","56XmbelV","abs","backgroundColor","touches","video","#f9f9f9","adstage-slider-wrapper","cssText","opacity","TEXT","clientX","adType","adstage-dots","#f0f0f0","style"];return(at=function(){return t})()}!function(){const t=ot,e=at();for(;;)try{if(404791===parseInt(t(496))/1*(-parseInt(t(551))/2)+parseInt(t(474))/3*(-parseInt(t(553))/4)+-parseInt(t(545))/5+parseInt(t(518))/6+-parseInt(t(578))/7+-parseInt(t(499))/8*(parseInt(t(535))/9)+parseInt(t(571))/10*(parseInt(t(486))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[it(572)](t,e){const n=it,r=document[n(488)]("div");switch(r[n(550)]="adstage-ad adstage-"+String(t[n(564)])[n(579)](),r.setAttribute("data-adstage-ad-id",e._id),r[n(523)](n(508),t.id),r[n(567)].display=n(528),r[n(567)][n(483)]="100%",r[n(567)][n(469)]=n(534),t.adType){case i.BANNER:if(e[n(536)]){const t=document[n(488)](n(514));t[n(521)]=e[n(536)],t[n(567)][n(483)]="100%",t[n(567)][n(469)]="auto",t[n(567)][n(513)]=n(544),r.appendChild(t)}else r.style[n(469)]=n(548),r[n(567)][n(555)]=n(566),r[n(567)][n(494)]="1px dashed #ccc",r[n(575)]=n(530);break;case i[n(532)]:if(e.videoUrl){const t=document.createElement(n(557));t.src=e[n(505)],t[n(567)][n(483)]="100%",t[n(567)][n(469)]=n(534),r[n(546)](t)}else r[n(567)].height=n(511),r[n(567)][n(555)]=n(577),r.style[n(494)]=n(517),r[n(575)]="Video Ad",r[n(567)][n(520)]=n(490);break;case i[n(562)]:if(e[n(575)]){const t=document[n(488)](n(507));t[n(575)]=e[n(575)]||"",t.style.padding="8px",t[n(567)][n(541)]=n(542),r.appendChild(t)}else r[n(567)][n(469)]=n(525),r[n(567)].padding=n(527),r.textContent="Text Ad";break;default:r.style[n(469)]=n(548),r[n(567)][n(494)]=n(574),r.style[n(555)]=n(558),r[n(575)]=t[n(564)]+" Ad"}return r}static[it(573)](t,e,n,r,s=!1){const o=it,a=document.createElement(o(507));a[o(550)]=o(559);const c={position:"relative",overflow:o(570)};if(t.width&&0!==t.width){let e;e=typeof t[o(483)]===o(472)&&(t[o(483)].includes("px")||t[o(483)].includes("%"))?t.width:t[o(483)]+"px",c[o(483)]=e,c[o(519)]=o(549)}else c[o(519)]=o(549);if(t[o(469)]&&0!==t[o(469)]){const e="string"==typeof t.height?t[o(469)]:t[o(469)]+"px";c[o(469)]=e}Object[o(576)](c)[o(531)](([t,e])=>{a[o(567)].setProperty(t,e)});const d=!t.width||0===t[o(483)],l=!t[o(469)]||0===t[o(469)];if(d||l){const n=document[o(488)](o(507));if(n[o(567)][o(560)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t.width){let e;e=typeof t.width===o(472)&&(t[o(483)][o(506)]("px")||t[o(483)][o(506)]("%"))?t.width:t[o(483)]+"px",n.style[o(483)]=e,n[o(567)].whiteSpace=o(501)}document[o(537)].appendChild(n);let r=0,s=0;e[o(531)](e=>{const i=o,a=this[i(572)](t,e);n[i(546)](a);const c=a[i(547)]();c[i(483)]>r&&(r=c[i(483)]),c[i(469)]>s&&(s=c.height),n.removeChild(a)}),d&&r>0&&(a[o(567)][o(483)]=r+"px",c.width=r+"px"),l&&s>0&&(a[o(567)][o(469)]=s+"px",c[o(469)]=s+"px"),document[o(537)][o(568)](n)}const u=[...e,e[0]],p=document[o(488)]("div");p.className=o(475);const h={display:o(498),transition:"transform 0.4s ease-out",width:100*u[o(493)]+"%"};t[o(469)]&&0!==t[o(469)]&&(h[o(469)]=o(487)),Object.entries(h)[o(531)](([t,e])=>{const n=o;p.style[n(515)](t,e)}),u.forEach((e,n)=>{const i=o,a=document.createElement(i(507));a[i(550)]=i(471);const c={width:100/u[i(493)]+"%","flex-shrink":"0",display:i(498),"align-items":i(524),"justify-content":"center"};t.height&&0!==t.height&&(c[i(469)]=i(487)),Object.entries(c).forEach(([t,e])=>{const n=i;a[n(567)][n(515)](t,e)});const d=this[i(572)](t,e);st[i(484)](d,e,t,r,s,String(t[i(564)])[i(579)]()),a[i(546)](d),p[i(546)](a)});const f=e[o(476)](t=>t[o(564)]===i[o(562)])?null:this[o(509)](e[o(493)]);let g=0;const m=e[o(493)],I=1e3*(n?.[o(539)]||3),v=(n,i=!1)=>{const a=o;g=n,p[a(567)][a(538)]=i?a(533):"transform 0.4s ease-out",p[a(567)][a(495)]=a(540)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(482)](a(569))[a(531)]((t,e)=>{const n=a,r=t;e===c?(r[n(479)][n(552)]("active"),r.style[n(503)]="#666666",r[n(567)][n(529)]=n(470),r[n(567)][n(561)]="1"):(r[n(479)].remove("active"),r[n(567)][n(503)]="transparent",r.style.borderColor=n(504),r.style[n(561)]=n(473))})}tt[a(491)](e[c],t,c,r,s)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[o(482)](o(569)).forEach((t,e)=>{const n=o;t[n(522)](n(510),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(522)](o(480),()=>{clearInterval(b)}),a[o(522)]("mouseleave",()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[o(477)](p,v,()=>g,m,y),a[o(546)](p),f&&a[o(546)](f),v(0),(!t.width||0===t[o(483)])&&setTimeout(()=>{const e=o,n=p[e(468)][0];if(n){const r=n.children[0];if(r){const n=r[e(547)]();a[e(567)][e(483)]=n[e(483)]+"px",(!t[e(469)]||0===t[e(469)])&&(a.style[e(469)]=n[e(469)]+"px"),a[e(567)][e(512)]=e(570)}}},10),a}static createMinimalDotIndicator(t){const e=it,n=document[e(488)](e(507));n.className=e(565),n[e(567)][e(560)]="\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.createElement(e(526));t[e(550)]=e(485),t.style[e(560)]=e(502),t.addEventListener(e(480),()=>{const n=e;!t[n(479)][n(500)]("active")&&(t.style[n(529)]=n(481),t[n(567)][n(561)]=n(478))}),t[e(522)](e(497),()=>{const n=e;!t[n(479)][n(500)]("active")&&(t[n(567)][n(529)]=n(504),t[n(567)][n(561)]=n(473))}),n.appendChild(t)}return n}static[it(477)](t,e,n,r,s){const i=it;let o=0,a=!1;t[i(522)](i(543),t=>{o=t[i(556)][0].clientX,a=!0}),t.addEventListener(i(516),t=>{a&&t[i(489)]()}),t.addEventListener(i(492),t=>{const c=i;if(!a)return;a=!1;const d=t.changedTouches[0][c(563)],l=o-d;if(Math[c(554)](l)>50){const t=n();if(l>0){e(t+1),s&&s()}else{e(t>0?t-1:r-1)}}})}}const dt=lt;function lt(t,e){const n=pt();return(lt=function(t,e){return n[t-=347]})(t,e)}!function(){const t=lt,e=pt();for(;;)try{if(741714===parseInt(t(356))/1+-parseInt(t(349))/2+-parseInt(t(351))/3*(-parseInt(t(359))/4)+-parseInt(t(360))/5+parseInt(t(355))/6*(parseInt(t(362))/7)+-parseInt(t(366))/8+-parseInt(t(363))/9*(-parseInt(t(347))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static isDuplicateViewable(t,e,n=!1){const r=lt,s=t+"_"+e;return ut[r(364)][r(357)](s)?(n&&console[r(354)](r(365)+t+r(353)+e),!0):(ut.viewableTracker[r(348)](s),n&&console[r(354)](r(361)+t+r(353)+e),!1)}static[dt(352)](){const t=dt;ut[t(364)][t(352)]()}static[dt(358)](t,e){const n=dt,r=t+"_"+e;ut[n(364)][n(350)](r)}}function pt(){const t=["add","215480ZnZbCe","delete","12PIIZBZ","clear"," in slot ","log","115890SwJGsE","99886UnMwey","has","clearAdViewable","327196CHhEFl","6863045ELnJuk","✅ New viewable recorded for ad ","420TcYdaT","12926367RmuDPs","viewableTracker","Duplicate viewable blocked for ad ","6401456NqTRAQ","10rhKHiy"];return(pt=function(){return t})()}ut.viewableTracker=new Set;const ht=gt;!function(){const t=gt,e=mt();for(;;)try{if(130075===parseInt(t(519))/1+parseInt(t(426))/2+parseInt(t(498))/3+parseInt(t(510))/4*(parseInt(t(527))/5)+-parseInt(t(483))/6*(parseInt(t(439))/7)+-parseInt(t(492))/8+-parseInt(t(496))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ft{constructor(t,e=!1,n){const r=gt;this[r(511)]=t,this.debug=e,this[r(470)]=n||null}createPlaceholder(t,e,n,r){const s=gt,i=document.createElement(s(459));i.id=e,i[s(465)]="adstage-slot adstage-"+String(this[s(511)])[s(466)](),i[s(427)](s(450),"true"),i[s(427)](s(516),String(this.adType)),i[s(427)](s(430),e);const{width:o,height:a}=this[s(531)](t,n,r)||{width:s(524),height:this[s(512)]()};i[s(513)].width=o,i[s(513)].height=a;const c=r?.placeholderMode||n[s(487)]||s(533);this.applyPlaceholderStyle(i,c),t[s(445)](i),this[s(523)]&&console[s(480)](s(506)+this[s(511)]+s(503)+e+" ("+o+s(515)+a+") - Mode: "+c)}[ht(475)](t,e){const n=ht;switch(e){case n(533):t[n(513)].backgroundColor="transparent",t[n(513)][n(501)]=n(507),t[n(513)][n(429)]="0",t[n(434)]="";break;case n(482):t[n(513)][n(456)]=n(482),t[n(513)][n(501)]=n(507),t[n(513)][n(457)]="block",t.innerHTML="";break;case n(491):t[n(513)].backgroundColor=n(472),t[n(513)].border="none",t[n(513)][n(484)]=n(451),t[n(513)].display=n(438),t[n(513)][n(468)]=n(432),t[n(513)].justifyContent=n(432),t[n(434)]=n(529);break;case n(494):t[n(513)][n(456)]="rgba(248, 249, 250, 0.5)",t[n(513)].border=n(493),t[n(513)].borderRadius=n(469),t[n(513)].display=n(438),t.style[n(468)]=n(432),t[n(513)][n(431)]=n(432),t[n(434)]=n(443);break;case"debug":t[n(513)][n(501)]=n(447),t[n(513)][n(457)]=n(438),t[n(513)][n(468)]="center",t[n(513)][n(431)]=n(432),t[n(513)][n(456)]=n(425),t[n(513)][n(481)]=n(462),t.style[n(478)]=n(441),t.style[n(528)]="11px",t.innerHTML=n(467)+this.adType+n(460);break;default:t[n(513)][n(501)]=n(436),t[n(513)][n(457)]=n(438),t[n(513)][n(468)]=n(432),t.style.justifyContent="center",t[n(513)].backgroundColor=n(520),t[n(513)][n(481)]=n(473),t[n(434)]=n(467)+this.adType+" ad...</span>"}}[ht(531)](t,e,n){const r=ht,s=e.width,i=e[r(488)];let o,a;if(o=typeof s===r(455)?s+"px":typeof s===r(435)?s:r(524),typeof i===r(455))a=i+"px";else if(typeof i===r(435)&&i!==r(524)&&i!==r(522))a=i;else{const e=this[r(464)](t);e>0?(a=r(524),(n?.[r(523)]||this[r(523)])&&console[r(480)](r(504)+e+"px)")):(a=this[r(512)](),(n?.[r(523)]||this[r(523)])&&console[r(480)](r(440)+a+r(518)+this.adType))}return{width:o,height:a}}getContainerHeight(t){const e=ht,n=window[e(532)](t),r=parseFloat(n[e(488)]);if(!r||0===r){const r=parseFloat(n.minHeight);if(r>0)return r;if(t[e(513)][e(488)]&&t[e(513)].height!==e(522)){const n=parseFloat(t[e(513)].height);if(n>0)return n}const s=t[e(525)](e(488));if(s){const t=parseFloat(s);if(t>0)return t}}return r||0}[ht(476)](){return async(t,e,n)=>{const r=gt;if(n===u[r(463)]){if(ut[r(509)](t,e,this[r(523)]))return void(this[r(523)]&&console[r(480)](r(534)+t+r(530)+e));this[r(523)]&&console[r(480)](r(448)+t+r(530)+e)}if(this[r(470)])try{this[r(523)]&&console[r(480)]("🔄 Starting advertisement event tracking: "+n+" for ad "+t+" in slot "+e),await this.advertisementEventTracker[r(517)](t,e,n),this[r(523)]&&console.log("📊 Advertisement event tracked: "+n+" for ad "+t+r(530)+e)}catch(e){this[r(523)]&&console[r(521)](r(446)+n+r(500)+t+":",e)}else this[r(523)]&&console[r(471)]("⚠️ AdvertisementEventTracker not available for "+n+" event")}}[ht(433)](t){const e=ht,n=document[e(458)](t.id);if(n){const r=[...[n[e(437)](e(485)),n.closest('[data-adstage-container="true"]'),n][e(497)](t=>t&&t[e(489)](e(450))),...[n[e(514)](e(486)),n[e(514)](".adstage-"+String(this.adType)[e(466)]()),n.closest(e(499)),n.closest(e(490)),n[e(514)]('[class*="container"]'),n[e(514)]('div[style*="height"]'),n[e(514)]('div[style*="min-height"]'),n[e(474)]][e(497)](Boolean)][0];if(r){let n=e(495);n=r.hasAttribute(e(450))?"adstage-official":r[e(452)][e(453)]("adstage-slot")?e(442):e(505),r[e(513)][e(424)]+=e(502),r[e(434)]="",r.setAttribute(e(428),"true"),this[e(523)]&&console[e(471)](e(526)+this[e(511)]+" container collapsed ("+n+e(454)+t.id,r)}else this[e(508)](t)}t.advertisement=void 0,t.isEmpty=!0}[ht(508)](t){const e=ht,n=document[e(458)](t[e(449)]);if(n){n[e(434)]="";const r=document.createElement("div");r.id=t.id,r[e(465)]="adstage-slot adstage-empty adstage-"+String(this[e(511)])[e(466)](),r[e(427)]("data-adstage-container",e(479)),r[e(427)](e(428),e(479)),r[e(427)](e(430),t.id),r[e(513)][e(424)]=e(461),n[e(445)](r),this[e(523)]&&console[e(471)](e(477)+this[e(511)]+e(444)+t.id)}}log(t,...e){this[ht(523)]&&console.log("["+this.adType+"] "+t,...e)}}function gt(t,e){const n=mt();return(gt=function(t,e){return n[t-=424]})(t,e)}function mt(){const t=["applyPlaceholderStyle","createEventTrackingCallback","⚠️ Created empty ","fontFamily","true","log","color","transparent","6MdkMwS","borderRadius",'[data-adstage-container="true"]',".adstage-slot","placeholderMode","height","hasAttribute",'[class*="banner"]',"subtle","2002776RMQStn","1px solid rgba(0, 0, 0, 0.08)","minimal","unknown","319572TThiRp","filter","314421djHLPl",'[class*="ad"]'," event for ad ","border","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n "," slot: ","📏 Using 100% height (container: ","generic","📦 Placeholder created for ","none","createEmptyContainer","isDuplicateViewable","24SoUWkn","adType","getDefaultHeight","style","closest"," x ","data-adstage-type","trackAdvertisementEvent"," for ","243033XOfGKz","#f9f9f9","error","auto","debug","100%","getAttribute","⚠️ ","120080AZYpzK","fontSize",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>'," in slot ","calculateAdSize","getComputedStyle","invisible","🚫 Duplicate viewable blocked for ad ","cssText","rgba(231, 76, 60, 0.1)","112400mYYbOB","setAttribute","data-adstage-empty","opacity","data-adstage-slot","justifyContent","center","renderFallback","innerHTML","string","1px dashed #ccc","querySelector","flex","925442FvpUjG","📏 Using default height ","monospace","adstage-class",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>'," container: ","appendChild","❌ Failed to track ","2px dashed #e74c3c","✅ New viewable recorded for ad ","containerId","data-adstage-container","4px","classList","contains","): ","number","backgroundColor","display","getElementById","div"," ad...</span>","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","#e74c3c","VIEWABLE","getContainerHeight","className","toLowerCase","<span>Loading ","alignItems","6px","advertisementEventTracker","warn","rgba(0, 0, 0, 0.02)","#666","parentElement"];return(mt=function(){return t})()}const It=vt;function vt(t,e){const n=yt();return(vt=function(t,e){return n[t-=322]})(t,e)}function yt(){const t=["ratio","value","477VaDyQh","slideInterval","onerror","📦 Banner container dimensions: ","src","</div>","warn","containerId","abs","100%","selectOptimalSizeStrategy","3:2","from","innerHTML","display","1911656dVlUJr"," (strategy: ",", ratio=","objectFit","onload","forEach","getDefaultHeight","filter","BANNER","getBoundingClientRect","calculateAdSize","toString","optimizeContainerForBannerAds"," ads (optimized: ","7MxLXBF","📐 Optimal banner container calculated: ","height","status","aspectRatio","optimizedHeight","debug","calculateOptimalHeight","average","adstage-ad adstage-banner-ad","Image URL is not provided","borderRadius","imageUrl","createElement","dominant","parentElement","252WYigpt","renderOptimizedBannerImage","cover","Container not found: ","2183838KSoslN","log","map","Banner Advertisement","❌ Failed to load optimized banner image:","className","8830VIjfTv","15107136FUFqWj","reduce","loadImageDimensions","allSettled","4wggasS","set","✅ Optimized banner image rendered for ad: ","alt","_id","center","some",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"title","1:1","10866NZaUUD"," (avg: ","count","Failed to load image: ","div","8px","<div>","createEventTrackingCallback","common","Banner Ad","🎨 Banner image style applied: objectFit=","applyOptimizedImageStyle","180222bPziCw","Banner container optimization failed, using default size:","round","width","📸 Banner image dimensions: ","addClickEventForRenderer","toFixed","250px","📊 Using standard ratio: ","renderMultipleAds","img","values","length","calculateOptimalContainerSize","backgroundColor"," ads: ","fulfilled","Failed to calculate optimal banner size, using defaults:","name","default","appendChild","🎠 Banner carousel created for slot: ","getElementById","Banner","max","2573015KZUbFy","objectPosition","style","config","4:3","get","error"];return(yt=function(){return t})()}!function(){const t=vt,e=yt();for(;;)try{if(393994===-parseInt(t(394))/1+-parseInt(t(382))/2*(parseInt(t(357))/3)+parseInt(t(372))/4*(-parseInt(t(419))/5)+-parseInt(t(361))/6*(-parseInt(t(341))/7)+-parseInt(t(327))/8+-parseInt(t(428))/9*(-parseInt(t(367))/10)+parseInt(t(368))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class bt extends ft{constructor(t=!1,e){super(i[vt(335)],t,e)}[It(333)](){return It(401)}async renderAdElement(t,e){const n=It,r=document[n(416)](t[n(435)]);if(!r)return;const s=document[n(354)](n(386));s[n(366)]=n(350);const i=t[n(346)],o=r[n(356)]||r;if(i)s[n(421)][n(397)]=n(437),s[n(421)][n(343)]=String(i);else{const e=t[n(422)],r={width:e?.[n(397)],height:e?.height},{width:i,height:a}=this[n(337)](o,r,{debug:this[n(347)]});s[n(421)][n(397)]=i,s[n(421)][n(343)]=a}e[n(353)]?await this[n(358)](s,e,t):s.innerHTML=n(388)+(e[n(380)]||n(391))+n(433),st[n(399)](s,e,t,()=>this[n(389)](),this[n(347)],n(417)),r.innerHTML="",r.appendChild(s)}async[It(403)](t,e){const n=It,r=document[n(416)](t[n(435)]);if(!r)throw new Error(n(360)+t.containerId);await this[n(339)](t,e);const s=this.createEventTrackingCallback(),i={autoSlideInterval:(t[n(422)]?.[n(429)]||5e3)/1e3,...t.config,optimizedHeight:t.optimizedHeight,aspectRatio:t[n(345)]},o=ct.createSliderContainer(t,e,i,s,this[n(347)]);o&&(r[n(325)]="",r.appendChild(o),this[n(347)]&&console[n(362)](n(415)+t.id+" with "+e.length+n(340)+(t[n(346)]||n(413))+")"))}async calculateOptimalContainerSize(t,e){const n=It;if(!t[n(406)])return{width:n(437),height:this[n(333)](),aspectRatio:16/9};try{const r=(await Promise[n(371)](t[n(334)](t=>t.imageUrl)[n(363)](t=>this[n(370)](t.imageUrl))))[n(334)](t=>t[n(344)]===n(410))[n(363)](t=>t[n(427)]);if(0===r[n(406)])return{width:n(437),height:this.getDefaultHeight(),aspectRatio:16/9};const s=this[n(322)](r),i=this[n(348)](r,e,s);return this.debug&&console.log(n(342)+e+"x"+i+n(328)+s+")"),{width:n(437),height:i+"px",aspectRatio:e/i}}catch(t){return console[n(434)](n(411),t),{width:n(437),height:this[n(333)](),aspectRatio:16/9}}}async[It(339)](t,e){const n=It;try{const r=document.getElementById(t.containerId),s=document.getElementById(t.id);if(!r||!s)return;const i=r[n(336)]()[n(397)]||300,o=await this[n(407)](e,i);s[n(421)][n(343)]=o[n(343)],t[n(346)]=o[n(343)],t[n(345)]=o[n(345)],this.debug&&console.log("🔧 Banner container optimized for "+e[n(406)]+n(409)+o[n(343)])}catch(t){console.warn(n(395),t)}}[It(322)](t){const e=It,n=t.map(t=>t[e(397)]/t[e(343)]),r=new Map;n[e(332)](t=>{const n=e,s=(Math[n(396)](10*t)/10)[n(338)]();r[n(373)](s,(r[n(424)](s)||0)+1)});const s=Math[e(418)](...r[e(405)]()),i=t[e(406)];if(s/i>=.7)return e(355);const o=[16/9,4/3,1,1.5],a=n[e(334)](t=>o[e(378)](n=>Math[e(436)](t-n)<.1)).length;return e(a/i>=.5?390:349)}[It(348)](t,e,n){const r=It,s=t[r(363)](t=>t[r(397)]/t[r(343)]);switch(n){case r(355):{const t=new Map;s[r(332)](e=>{const n=r,s=Math[n(396)](10*e)/10,i=s[n(338)](),o=t[n(424)](i);o?o[n(384)]++:t.set(i,{ratio:s,count:1})});const n=Array[r(324)](t[r(405)]())[r(369)]((t,e)=>e[r(384)]>t[r(384)]?e:t);return Math[r(396)](e/n[r(426)])}case r(390):{const t=[{ratio:16/9,name:"16:9"},{ratio:4/3,name:r(423)},{ratio:1,name:r(381)},{ratio:1.5,name:r(323)}],n=s[r(369)]((t,e)=>t+e,0)/s[r(406)],i=t[r(369)]((t,e)=>Math.abs(e[r(426)]-n)<Math.abs(t[r(426)]-n)?e:t);return this[r(347)]&&console.log(r(402)+i[r(412)]+r(383)+n[r(400)](2)+")"),Math[r(396)](e/i[r(426)])}default:{const t=s.reduce((t,e)=>t+e,0)/s[r(406)];return Math.round(e/t)}}}[It(370)](t){return new Promise((e,n)=>{const r=vt,s=new Image;s[r(331)]=()=>{e({width:s.naturalWidth,height:s.naturalHeight})},s[r(430)]=()=>{n(new Error(r(385)+t))},s[r(432)]=t})}[It(393)](t,e,n){const r=It,s=e/n;Math[r(436)](s-1)<.1?(t.style[r(330)]=r(359),t.style[r(420)]=r(377)):s>1.3?(t[r(421)].objectFit="contain",t[r(421)][r(420)]="center",t[r(421)][r(408)]="#f0f0f0"):s<.7?(t[r(421)][r(330)]="cover",t[r(421)][r(420)]="center"):(t[r(421)][r(330)]="cover",t[r(421)][r(420)]=r(377)),this[r(347)]&&console[r(362)](r(392)+t[r(421)][r(330)]+r(329)+s[r(400)](2))}async[It(358)](t,e,n){const r=It,s=document[r(354)](r(404));s.style.width="100%",s[r(421)][r(343)]="100%",s.style[r(326)]="block",s[r(421)][r(352)]=r(387),s[r(375)]=e[r(380)]||r(364),t.innerHTML=r(379);try{if(!e[r(353)])throw new Error(r(351));const i=await this.loadImageDimensions(e[r(353)]),o=t[r(336)](),a=o[r(397)],c=o[r(343)];this.debug&&(console[r(362)](r(398)+i[r(397)]+"x"+i[r(343)]),console.log(r(431)+a+"x"+c));const d=i[r(397)]/i[r(343)],l=a/c;return this[r(393)](s,d,l),s[r(432)]=e[r(353)],t[r(325)]="",t[r(414)](s),st[r(399)](s,e,n,()=>this[r(389)](),this[r(347)],r(417)),this.debug&&console[r(362)](r(374)+e[r(376)]),s}catch(i){return console[r(425)](r(365),i),e[r(353)]&&(s[r(432)]=e[r(353)],s[r(421)][r(330)]=r(359),s[r(421)].objectPosition=r(377),t[r(325)]="",t[r(414)](s),st[r(399)](s,e,n,()=>this.createEventTrackingCallback(),this[r(347)],r(417))),s}}}const wt=kt;function kt(t,e){const n=At();return(kt=function(t,e){return n[t-=263]})(t,e)}!function(){const t=kt,e=At();for(;;)try{if(259155===parseInt(t(263))/1*(parseInt(t(277))/2)+-parseInt(t(266))/3*(parseInt(t(276))/4)+parseInt(t(270))/5*(-parseInt(t(271))/6)+-parseInt(t(267))/7*(parseInt(t(273))/8)+-parseInt(t(268))/9*(parseInt(t(280))/10)+parseInt(t(274))/11*(-parseInt(t(264))/12)+parseInt(t(269))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Et{static[wt(279)](t=!1){return wt(265)}static[wt(278)](t,e){const n=wt,r=e[n(272)]||e[n(275)]||"";t[n(272)]=r}}function At(){const t=["createTextAdStyles","1820180cEDIIv","3314JcEeyx","12yFrXKX","\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 ","3qQrwJb","517622jPdoFx","9BEcRfv","11414026ynvbeL","5jcGaoR","752478LdfJRE","textContent","32vVdycs","1377497WUmKtH","title","555820sZDFnT","150zAstaa","setTextAdContent"];return(At=function(){return t})()}const xt=St;function St(t,e){const n=Ct();return(St=function(t,e){return n[t-=384]})(t,e)}function Ct(){const t=["className","addTouchSupport","autoSlideInterval","addEventListener","forEach","body","height: auto;","addClickEventForSlider","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","touchend","1757982upQlwh","auto","height: auto; min-height: fit-content;","14nkHerA","position","10WCALcn","13985499Oyzflu","zIndex","touchstart","9412795HLpjTf","hidden","clientX","data-adstage-slot-id","entries","includes","mouseleave",";\n width: 100%;\n ","createElement","style",";\n ","getBoundingClientRect","width","5ztcVKt","push","translateY(20px)","createTextAdStyles","195226cLtVLG","minHeight",";\n left: ","string","translateY(-20px)","left","length","createTextTransitionContainer","27Xfomcu","_id","height","abs","whiteSpace","preventDefault","translateY(0)","3645608FpuIep","toLowerCase","relative","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","cssText","changedTouches","touches","transform","setAttribute","\n position: ","\n ","normal","data-adstage-ad-id",";\n top: ","createSimpleAdElement","101058NJeUQW","removeChild","adstage-fade-slide","top","clientY","mouseenter","appendChild","adstage-fade-slide-container","trackSlideViewable","div","height: 100%;","41040336iXzmpw","setProperty","absolute","opacity","20px","104UNtNQi"];return(Ct=function(){return t})()}!function(){const t=St,e=Ct();for(;;)try{if(760918===parseInt(t(426))/1*(parseInt(t(449))/2)+parseInt(t(396))/3*(-parseInt(t(412))/4)+-parseInt(t(445))/5*(parseInt(t(423))/6)+parseInt(t(432))/7+-parseInt(t(464))/8*(-parseInt(t(457))/9)+-parseInt(t(428))/10*(-parseInt(t(429))/11)+-parseInt(t(407))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Tt{static createSimpleAdElement(t,e){const n=St,r=document[n(440)](n(405));return r[n(413)]="adstage-ad adstage-"+String(t.adType)[n(465)](),r[n(389)](n(393),e[n(458)]),r.setAttribute(n(435),t.id),r[n(441)][n(385)]=Et[n(448)](!0),Et.setTextAdContent(r,e),r}static[xt(456)](t,e,n,r,s=!1){const i=xt,o=t.height&&0!==t[i(459)]&&"auto"!==t[i(459)],a=document[i(440)]("div");a[i(413)]="adstage-fade-slider-wrapper";const c={position:i(466),overflow:i(433),display:"block"};if(!o&&(c[i(459)]=i(424),c[i(450)]="fit-content"),t.width&&0!==t[i(444)]){let e;e="string"==typeof t[i(444)]&&(t[i(444)][i(437)]("px")||t[i(444)].includes("%"))?t.width:t[i(444)]+"px",c[i(444)]=e}if(t.height&&0!==t.height&&"auto"!==t.height&&o){let e;e=typeof t[i(459)]===i(452)&&(t[i(459)][i(437)]("px")||t[i(459)][i(437)]("%"))?t[i(459)]:t[i(459)]+"px",c.height=e}Object[i(436)](c)[i(417)](([t,e])=>{const n=i;a[n(441)][n(408)](t,e)});const d=document[i(440)]("div");d[i(413)]=i(403),d[i(441)][i(385)]="\n position: relative;\n width: 100%;\n "+i(o?406:425)+i(391);let l=null;const u=!t[i(444)]||0===t[i(444)],p=!t.height||0===t[i(459)]||void 0===t[i(459)]||t[i(459)]===i(424);if(u||p&&o){if(l=document.createElement(i(405)),l[i(441)].cssText=i(384),!u&&t.width){let e;e=typeof t.width===i(452)&&(t[i(444)][i(437)]("px")||t[i(444)][i(437)]("%"))?t.width:t[i(444)]+"px",l[i(441)].width=e,l[i(441)][i(461)]=i(392)}document[i(418)][i(402)](l);let n=0,r=0;e.forEach(e=>{const s=i,o=this[s(395)](t,e);l[s(402)](o);const a=o[s(443)]();a[s(444)]>n&&(n=a[s(444)]),a[s(459)]>r&&(r=a[s(459)]),l[s(397)](o)}),u&&n>0&&(a[i(441)].width=n+"px"),p&&r>0&&o&&(a[i(441)][i(459)]=r+"px"),document[i(418)][i(397)](l)}const h=[];e.forEach((e,n)=>{const a=i,c=document.createElement(a(405));c[a(413)]=a(398);const l=a(o?409:0===n?466:409);c[a(441)].cssText=a(390)+l+a(394)+("absolute"===l?"0":a(424))+a(451)+(l===a(409)?"0":"auto")+a(439)+a(o?406:419)+a(421)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":a(411))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+a(442);const u=this.createSimpleAdElement(t,e);st[a(420)](u,e,t,r,s,"Text"),c[a(402)](u),d[a(402)](c),h[a(446)](c)});let f=0;const g=e[i(455)],m=1e3*(n?.[i(415)]||4),I=n=>{const a=i;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(441)][a(427)]===a(466)&&(c.style[a(427)]=a(409),c[a(441)].top="0",c[a(441)][a(454)]="0"),d[a(441)][a(427)]="relative",d.style[a(399)]="auto",d[a(441)][a(454)]=a(424)),c[a(441)].opacity="0",c[a(441)][a(388)]=a(453),c[a(441)][a(430)]="1",d[a(441)][a(410)]="1",d.style[a(388)]=a(463),d.style[a(430)]="2",h[a(417)]((t,e)=>{const r=a;e!==n&&e!==f&&(t.style[r(410)]="0",t[r(441)].transform=r(447),t[r(441)].zIndex="1",!o&&t.style[r(427)]===r(466)&&(t[r(441)][r(427)]="absolute",t[r(441)].top="0",t.style[r(454)]="0"))}),f=n,tt[a(404)](e[f],t,f,r,s)};let v=setInterval(()=>{I(f+1)},m);return a[i(416)](i(401),()=>{clearInterval(v)}),a[i(416)](i(438),()=>{v=setInterval(()=>{I(f+1)},m)}),Tt[i(414)](a,I,()=>f,g),a.appendChild(d),a}static addTouchSupport(t,e,n,r){const s=xt;let i=0,o=0,a=!1;t.addEventListener(s(431),t=>{const e=s;i=t[e(387)][0][e(434)],o=t[e(387)][0][e(400)],a=!0}),t[s(416)]("touchmove",t=>{a&&t[s(462)]()}),t[s(416)](s(422),t=>{const r=s;if(!a)return;a=!1;const c=t.changedTouches[0][r(434)],d=t[r(386)][0][r(400)],l=i-c,u=o-d;if(Math[r(460)](l)>Math[r(460)](u)&&Math.abs(l)>50){const t=n();e(l>0?t+1:t-1)}})}}function Lt(){const t=["4939280vsPftE","number","display","getDefaultHeight","Container not found: ","slideInterval","3019128yQxWfI","1344243pgwNCP","div","✨ Single text ad rendered: ","createEventTrackingCallback","addClickEventForRenderer","2934674HxJJag","overflow","width","style","debug","createTextAdStyles","innerHTML"," with ","containerId","hidden","TEXT","getElementById","calculateAdSize","parentElement","webkitLineClamp","✨ Text transition created for slot: ","vertical","renderAdElement","optimizedHeight","-webkit-box","aspectRatio","5066352fUrwdh","appendChild","createTextTransitionContainer","className","3641688pVYBMc","config","_id","length","renderMultipleAds","100%","height","webkitBoxOrient","maxLines","cssText","60px","log","createElement","23052694NtSIwv","adstage-text-content"];return(Lt=function(){return t})()}const Rt=Dt;function Dt(t,e){const n=Lt();return(Dt=function(t,e){return n[t-=251]})(t,e)}!function(){const t=Dt,e=Lt();for(;;)try{if(920102===-parseInt(t(289))/1+parseInt(t(294))/2+parseInt(t(263))/3+parseInt(t(267))/4+parseInt(t(282))/5+parseInt(t(288))/6+-parseInt(t(280))/7)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class _t extends ft{constructor(t=!1,e){super(i[Dt(252)],t,e)}[Rt(285)](){return Rt(277)}async[Rt(259)](t,e){const n=Rt,r=document.getElementById(t.containerId);if(!r)return;const s=document[n(279)](n(290));s[n(266)]="adstage-ad adstage-text-ad";const i=t[n(260)],o=r[n(255)]||r;if(i)s[n(297)].width=n(272),s[n(297)][n(273)]=String(i);else{const e=t.config,r={width:e?.[n(296)],height:e?.height},{width:i,height:a}=this[n(254)](o,r,{debug:this[n(298)]});s[n(297)][n(296)]=i,s[n(297)][n(273)]=a}const a=document.createElement(n(290));a[n(266)]=n(281),a[n(297)][n(276)]=Et[n(299)](!1),Et.setTextAdContent(a,e);const c=t[n(268)]?.[n(275)];c&&typeof c===n(283)&&(a[n(297)][n(284)]=n(261),a.style[n(256)]=String(c),a[n(297)][n(274)]=n(258),a[n(297)][n(295)]=n(251)),s[n(264)](a),st[n(293)](s,e,t,()=>this[n(292)](),this[n(298)],"Text"),r[n(300)]="",r[n(264)](s),this[n(298)]&&console[n(278)](n(291)+e[n(269)])}async[Rt(271)](t,e){const n=Rt,r=document[n(253)](t[n(302)]);if(!r)throw new Error(n(286)+t.containerId);const s=this[n(292)](),i={autoSlideInterval:(t[n(268)]?.[n(287)]||5e3)/1e3,...t[n(268)],optimizedHeight:t[n(260)],aspectRatio:t[n(262)]},o=Tt[n(265)](t,e,i,s,this[n(298)]);o&&(r[n(300)]="",r.appendChild(o),this.debug&&console.log(n(257)+t.id+n(301)+e[n(270)]+" ads"))}}const Pt=Mt;function Bt(){const t=["contain","hideVolumeSlider","className","Click to unmute","rgba(0, 0, 0, 0.7)"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","warn","muted","click","unmuted","🎬 Video config received:","config","relative","alt","background"," !important;\n }\n ","🎬 Video data loaded, attempting autoplay...","display","src",'\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 ',", muted: ","width","adstage-video-container","7tYCwhY","none","\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 ","metadata","137965TJVYrI","hideControls","🎬 Auto-play was prevented:","hideRemainingTime","error"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","style","8586824ZCsWyB","appendChild",'\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 ',"preload","⚠️ No video advertisements available for slot: "," (autoplay: ","100%","VIDEO","head","🎬 Video can play, attempting autoplay...","renderVideoElementDirect","playsinline","renderMultipleAds","getDefaultHeight","div","transform","623723NFsDNU","Video thumbnail","createEventTrackingCallback","button","63620xLjZYv","🎬 Trying muted autoplay fallback...","hideMuteButton","hideFullscreenButton","customControls","img","🎬 Video controls setting:","25628ljjUcU","\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 ","cssText","\n pointer-events: none;\n "," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","2502645QpEPNy","block","mouseleave","\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 ","containerId"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","adstage-video-default-controls","loop","addClickEventForRenderer","position","🎬 Video metadata loaded, attempting autoplay...","🎬 Single video rendered for VIDEO slot: ","length","hideProgressBar","autoplay","Container not found: ","🔊 Video mute toggled: ","🎬 Autoplay completely failed:","innerHTML","setAttribute","play","height"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","addEventListener","VIEWABLE","debug","🎬 User explicitly enabled controls, overriding default","video","createElement",", loop: ","videoUrl","stopPropagation","log","textContent","canplay","66jwWdrK","paused","1346522WKhBWK","imageUrl","scale(1.1)","catch","renderAdElement","3060WjQeZb","title","hidePlayButton","controls","🎬 Final video settings:","getElementById","_id","objectFit"];return(Bt=function(){return t})()}function Mt(t,e){const n=Bt();return(Mt=function(t,e){return n[t-=354]})(t,e)}!function(){const t=Mt,e=Bt();for(;;)try{if(936888===-parseInt(t(376))/1+-parseInt(t(429))/2+parseInt(t(392))/3+parseInt(t(387))/4+-parseInt(t(469))/5*(-parseInt(t(427))/6)+parseInt(t(465))/7*(-parseInt(t(360))/8)+-parseInt(t(434))/9*(-parseInt(t(380))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class zt extends ft{constructor(t=!1,e){super(i[Mt(367)],t,e)}[Pt(373)](){return"360px"}async[Pt(433)](t,e){const n=Pt,r=document[n(439)](t[n(396)]);if(!r)return;const s=document[n(420)](n(374));s[n(444)]=n(464),s[n(359)].cssText=n(395),this[n(370)](s,e,t),r.innerHTML="",r[n(361)](s),this[n(417)]&&console[n(424)]("🎬 Single video ad rendered: "+e[n(440)])}async[Pt(372)](t,e){const n=Pt,r=document.getElementById(t[n(396)]);if(!r)throw new Error(n(407)+t[n(396)]);if(e[n(404)]>0){const s=e[0],i=document[n(420)](n(374));i[n(444)]=n(464),i[n(359)][n(389)]=n(388),this[n(370)](i,s,t),r.innerHTML="",r[n(361)](i);const o=this.createEventTrackingCallback();setTimeout(()=>{const e=n;o(s[e(440)],t.id,u[e(416)])},100),this[n(417)]&&console[n(424)](n(403)+t.id+" ("+s[n(440)]+")")}else this[n(417)]&&console.warn(n(364)+t.id)}renderVideoElementDirect(t,e,n){const r=Pt;t.style[r(401)]=r(454);const s=document[r(420)](r(419));s[r(359)][r(463)]=r(366),s[r(359)][r(413)]=r(366),s.style[r(441)]="contain",s[r(363)]=r(468);const i=n[r(453)];if(this.debug&&console[r(424)](r(452),i),s[r(437)]=!1,s.autoplay=!1!==i?.[r(406)],s[r(449)]=!0,s[r(399)]=!1!==i?.loop,this.debug&&console[r(424)](r(438),{autoplay:s.autoplay,muted:s[r(449)],loop:s[r(399)],controls:s[r(437)]}),!1!==i?.[r(371)]&&s[r(411)](r(371),""),!0===i?.controls&&(s[r(437)]=!0,this[r(417)]&&console.log(r(418))),i?.hideControls)s.controls=!1,s[r(359)][r(389)]+=r(390);else if(i?.[r(384)]){if(s[r(437)]){const t=document[r(420)](r(359));t[r(425)]="\n video::-webkit-media-controls-play-button {\n display: "+(i[r(384)][r(436)]?r(466):r(393))+r(397)+(i[r(384)][r(405)]?r(466):r(393))+r(391)+(i[r(384)].hideCurrentTime?r(466):r(393))+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(i.customControls[r(356)]?r(466):"block")+r(414)+(i[r(384)][r(443)]?r(466):r(393))+r(447)+(i[r(384)][r(382)]?r(466):r(393))+r(358)+(i.customControls[r(383)]?r(466):"block")+r(457),document[r(368)][r(361)](t)}}else if(s[r(437)]){const t=document[r(420)](r(359));t.id=r(398),t[r(425)]=r(467),!document[r(439)]("adstage-video-default-controls")&&document[r(368)][r(361)](t)}this[r(417)]&&console[r(424)](r(386),s[r(437)]?"enabled":"disabled (default)");const o=document[r(420)](r(379));o[r(444)]="adstage-video-mute-button",o.style[r(389)]="\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 ",i?.[r(354)]&&(o.style[r(459)]=r(466));const a=()=>{const t=r,e=t(362),n=t(461);o[t(410)]=s[t(449)]?e:n,o[t(435)]=s[t(449)]?t(445):"Click to mute"};if(a(),o.addEventListener(r(450),t=>{const e=r;t[e(423)](),s[e(449)]=!s.muted,a(),this.debug&&console.log(e(408)+(s[e(449)]?e(449):e(451)))}),o[r(415)]("mouseenter",()=>{const t=r;o[t(359)][t(456)]="rgba(0, 0, 0, 0.9)",o[t(359)][t(375)]=t(431)}),o.addEventListener(r(394),()=>{const t=r;o.style[t(456)]=t(446),o[t(359)][t(375)]="scale(1)"}),e[r(422)]){s[r(460)]=e[r(422)];const t=()=>{const t=r;s.autoplay&&s[t(449)]&&s[t(428)]&&s[t(412)]()[t(432)](e=>{const n=t;this[n(417)]&&(console[n(448)](n(355),e),console[n(448)](n(381))),s[n(449)]=!0,s[n(412)]()[n(432)](t=>{const e=n;this[e(417)]&&console[e(357)](e(409),t)})})};s[r(415)]("loadedmetadata",()=>{const e=r;this[e(417)]&&console[e(424)](e(402)),t()}),s.addEventListener(r(426),()=>{const e=r;this[e(417)]&&console[e(424)](e(369)),t()}),s[r(415)]("loadeddata",()=>{const e=r;this[e(417)]&&console[e(424)](e(458)),t()}),setTimeout(()=>{const e=r;this[e(417)]&&console[e(424)]("🎬 Initial autoplay attempt after timeout..."),t()},100)}else if(e[r(430)]){const n=document[r(420)](r(385));return n.src=e.imageUrl,n.style.width=r(366),n[r(359)][r(413)]="100%",n[r(359)][r(441)]=r(442),n[r(455)]=e[r(435)]||"Video thumbnail",void t.appendChild(n)}st.addClickEventForRenderer(s,e,n,()=>this[r(378)](),this[r(417)],"Video"),s.addEventListener(r(357),s=>{const i=r;if(console.error("Video load failed:",s),e[i(430)]){const r=document.createElement("img");r[i(460)]=e.imageUrl,r[i(359)][i(463)]="100%",r[i(359)][i(413)]=i(366),r[i(359)][i(441)]=i(442),r[i(455)]=e[i(435)]||i(377),st[i(400)](r,e,n,()=>this[i(378)](),this[i(417)],"Video fallback"),t[i(410)]="",t[i(361)](r)}}),t.appendChild(s),t.appendChild(o),this[r(417)]&&console[r(424)]("🎬 Video element created for ad: "+e[r(440)]+r(365)+s[r(406)]+r(462)+s[r(449)]+r(421)+s[r(399)]+")")}}function Ut(t,e){const n=Ot();return(Ut=function(t,e){return n[t-=477]})(t,e)}const Nt=Ut;function Ot(){const t=["): ","getDefaultHeight","advertisementEventTracker","imageUrl","debug","open","length","button","_blank","src","🏠 Single native ad rendered: ","163833cPhyKw","10drpWQc","style","170667IdgCCz","746268TAttDc","linkUrl","7XqLcqq","div","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","_id","img","backgroundColor","#2563eb","22YcVoqa","mouseleave","addEventListener","click","alt","warn","4454934CQOIxM","title","Native click tracked for ad: ","createElement","containerId","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","🏠 Native ad rendered (first of ","cssText","log","textContent","adstage-ad adstage-native-ad","67688CKetXg","appendChild","innerHTML","renderAdElement","getElementById","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","Learn More","2380440AaOCaJ","20lHgiJS","#3b82f6","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","className","3525921mhNhtA"];return(Ot=function(){return t})()}!function(){const t=Ut,e=Ot();for(;;)try{if(324696===-parseInt(t(484))/1+parseInt(t(497))/2*(-parseInt(t(487))/3)+parseInt(t(521))/4+-parseInt(t(522))/5*(-parseInt(t(488))/6)+parseInt(t(490))/7*(parseInt(t(514))/8)+parseInt(t(526))/9*(-parseInt(t(485))/10)+parseInt(t(503))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft extends ft{constructor(t=!1,e){super(i.NATIVE,t,e)}[Nt(528)](){return"200px"}async renderAdElement(t,e){const n=Nt,r=document[n(518)](t[n(507)]);if(!r)return;const s=document[n(506)](n(491));if(s[n(525)]=n(513),s[n(486)].cssText=n(508),e[n(504)]){const t=document.createElement("h3");t[n(512)]=e.title,t.style.cssText=n(492),s[n(515)](t)}if(e[n(512)]){const t=document[n(506)]("p");t.textContent=e[n(512)],t[n(486)][n(510)]=n(519),s[n(515)](t)}if(e.imageUrl){const t=document.createElement(n(491));t.style[n(510)]=n(524);const r=document.createElement(n(494));r[n(482)]=e[n(530)],r[n(501)]=e[n(504)]||"Native Advertisement",r.style[n(510)]="\n width: 100%;\n height: 100%;\n object-fit: cover;\n ",t[n(515)](r),s[n(515)](t)}if(e.linkUrl){const t=document[n(506)](n(480));t.textContent=n(520),t[n(486)][n(510)]="\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 ",t[n(499)](n(500),()=>{const t=n;this[t(529)]&&console[t(511)](t(505)+e[t(493)]),window[t(478)](e[t(489)],t(481))}),t[n(499)]("mouseenter",()=>{const e=n;t[e(486)].backgroundColor=e(496)}),t[n(499)](n(498),()=>{const e=n;t[e(486)][e(495)]=e(523)}),s[n(515)](t)}r[n(516)]="",r[n(515)](s),this[n(477)]&&console[n(511)](n(483)+e[n(493)])}async renderMultipleAds(t,e){const n=Nt;e[n(479)]>0?(await this[n(517)](t,e[0]),this[n(477)]&&console[n(511)](n(509)+e[n(479)]+n(527)+t.id)):this[n(477)]&&console[n(502)]("⚠️ No native advertisements available for slot: "+t.id)}}const Vt=jt;function jt(t,e){const n=Kt();return(jt=function(t,e){return n[t-=469]})(t,e)}!function(){const t=jt,e=Kt();for(;;)try{if(513669===-parseInt(t(517))/1+-parseInt(t(538))/2*(parseInt(t(530))/3)+-parseInt(t(474))/4+-parseInt(t(525))/5+-parseInt(t(503))/6*(-parseInt(t(479))/7)+-parseInt(t(519))/8*(-parseInt(t(515))/9)+-parseInt(t(469))/10*(-parseInt(t(540))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ht extends ft{constructor(t=!1,e){super(i.INTERSTITIAL,t,e)}[Vt(489)](){return"400px"}async renderAdElement(t,e){const n=Vt;if(!document[n(486)](t[n(514)]))return;const r=document[n(510)](n(501));r[n(534)]=n(516),r[n(495)][n(535)]=n(529);const s=document.createElement(n(501));s[n(534)]=n(498),s.style[n(535)]=n(537);const i=document[n(510)](n(536));if(i.innerHTML="×",i.style.cssText=n(500),i[n(533)]("click",()=>{this[n(481)](r)}),i[n(533)](n(493),()=>{const t=n;i.style[t(496)]="#e5e7eb",i[t(495)].color=t(512)}),i.addEventListener(n(518),()=>{const t=n;i[t(495)][t(496)]=t(478),i[t(495)][t(490)]=t(526)}),e[n(523)]){const t=document.createElement(n(494));t[n(497)]=e.imageUrl,t.alt=e[n(521)]||n(502),t[n(495)][n(535)]="\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ",s[n(532)](t)}if(e.title){const t=document[n(510)]("h2");t[n(475)]=e[n(521)],t[n(495)][n(535)]=n(531),s[n(532)](t)}if(e[n(475)]){const t=document[n(510)]("p");t[n(475)]=e[n(475)],t.style[n(535)]=n(506),s[n(532)](t)}if(e[n(492)]){const t=document[n(510)]("button");t[n(475)]=n(472),t[n(495)][n(535)]=n(491),t[n(533)](n(507),()=>{const t=n;this[t(527)]&&console.log(t(482)+e[t(477)]),window.open(e[t(492)],"_blank"),this.closeInterstitial(r)}),t.addEventListener(n(493),()=>{const e=n;t[e(495)][e(496)]=e(499)}),t[n(533)](n(518),()=>{const e=n;t[e(495)].backgroundColor=e(509)}),s[n(532)](t)}const o=t=>{const e=n;t[e(505)]===e(480)&&(this[e(481)](r),document.removeEventListener(e(483),o))};if(document[n(533)](n(483),o),r[n(533)](n(507),t=>{const e=n;t[e(471)]===r&&this[e(481)](r)}),!document.getElementById("adstage-interstitial-styles")){const t=document[n(510)]("style");t.id=n(504),t[n(475)]=n(487),document[n(539)][n(532)](t)}s.appendChild(i),r.appendChild(s),document[n(511)][n(532)](r),this[n(522)]&&console[n(485)](n(484)+e[n(477)])}async renderMultipleAds(t,e){const n=Vt;e.length>0?(await this[n(513)](t,e[0]),this.debug&&console.log(n(488)+e.length+n(520)+t.id)):this[n(522)]&&console[n(476)](n(528)+t.id)}[Vt(481)](t){const e=Vt;t[e(495)][e(473)]=e(508),setTimeout(()=>{const n=e;t.parentNode&&t.parentNode[n(524)](t)},300),this[e(522)]&&console.log(e(470))}}function Kt(){const t=["mouseleave","23856FKlHxB","): ","title","debug","imageUrl","removeChild","1560055LbHqfB","#6b7280","advertisementEventTracker","⚠️ No interstitial advertisements available for slot: ","\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 ","2439CBWWss","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","appendChild","addEventListener","className","cssText","button","\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 ","684LTWtyS","head","11dfLMCp","6847450icqsZJ","🖼️ Interstitial ad closed","target","Get Started","animation","1705488PTpvyF","textContent","warn","_id","#f3f4f6","3072013qqPBlH","Escape","closeInterstitial","Interstitial click tracked for ad: ","keydown","🖼️ Interstitial ad rendered: ","log","getElementById","\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 ","🖼️ Interstitial ad rendered (first of ","getDefaultHeight","color","\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 ","linkUrl","mouseenter","img","style","backgroundColor","src","adstage-interstitial-content","#2563eb","\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 ","div","Interstitial Advertisement","12kseTDl","adstage-interstitial-styles","key","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","click","fadeOut 0.3s ease-out forwards","#3b82f6","createElement","body","#374151","renderAdElement","containerId","666GvZmab","adstage-interstitial-overlay","253033RSMwjD"];return(Kt=function(){return t})()}const Wt=Yt;function Yt(t,e){const n=Xt();return(Yt=function(t,e){return n[t-=411]})(t,e)}function Xt(){const t=["4ujLGBj","renderAd","48016CHyuqO","INTERSTITIAL","1px dashed #ccc","display","renderAdElement","advertisement","debug","naturalHeight","8px","data-adstage-ad-id","videoUrl","advertisementEventTracker","config","width","calculateOptimalContainerSize","No renderer found for ad type: ","style","348663XzBfmv","createPlaceholder","textContent","size","renderOptimizedBannerImage","86610nTZRGN","[AdRenderer] ","block","27rUGBvA","🏭 AdRenderer factory initialized with ","className","renderFallback","height","div","562593joetHf","imageUrl","743869IpFdFW","renderMultipleAds","getDefaultHeightForAdType","adstage-ad adstage-","adType","isLoaded","BANNER","img","border","calculateAdSize","renderers","420414JMCIao","createAdElement","onload"," renderers","TEXT","src","getDefaultHeight","377945WhPjLm","⚠️ Container optimization is only supported for BANNER ads, got: ","set","log","renderAdSlider","setAttribute","backgroundColor","get","padding","VIDEO","onerror","appendChild","cover","optimizeContainerForBannerAds","100%","initializeRenderers","renderOptimizedBannerImage is only supported for BANNER ads","createElement","objectFit","getRenderer"];return(Xt=function(){return t})()}!function(){const t=Yt,e=Xt();for(;;)try{if(185912===parseInt(t(470))/1+parseInt(t(424))/2+parseInt(t(411))/3*(-parseInt(t(451))/4)+-parseInt(t(431))/5+parseInt(t(475))/6+-parseInt(t(413))/7+parseInt(t(453))/8*(-parseInt(t(478))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class qt{constructor(t=!1,e){const n=Yt;this[n(423)]=new Map,this[n(459)]=t,this[n(464)]=e||null,this[n(446)]()}initializeRenderers(){const t=Yt;this[t(423)][t(433)](i[t(419)],new bt(this[t(459)],this.advertisementEventTracker)),this[t(423)][t(433)](i[t(428)],new _t(this[t(459)],this[t(464)])),this.renderers[t(433)](i[t(440)],new zt(this.debug,this[t(464)])),this[t(423)][t(433)](i.NATIVE,new Ft(this[t(459)],this[t(464)])),this[t(423)][t(433)](i[t(454)],new Ht(this[t(459)],this[t(464)])),this[t(459)]&&console[t(434)](t(479)+this[t(423)][t(473)]+t(427))}[Wt(425)](t,e){const n=Wt,r=this[n(450)](t[n(417)]),s=document[n(448)](n(483));s[n(480)]=n(416)+String(t[n(417)]).toLowerCase(),s[n(436)](n(462),e._id),s.setAttribute("data-adstage-slot-id",t.id);const{width:o,height:a}=r.calculateAdSize(s,t[n(465)]||{},e);switch(s[n(469)][n(466)]=o,s[n(469)][n(482)]=a,s[n(469)][n(456)]=n(477),t.adType){case i[n(419)]:if(e.imageUrl){const t=document[n(448)](n(420));t.src=e[n(412)],t[n(469)][n(466)]=n(445),t.style.height=n(445),t[n(469)][n(449)]=n(443),s[n(442)](t)}break;case i[n(440)]:if(e[n(463)]){const t=document[n(448)]("video");t.src=e[n(463)],t[n(469)][n(466)]=n(445),t.style[n(482)]="100%",s[n(442)](t)}break;case i[n(428)]:if(e.textContent){const t=document.createElement(n(483));t[n(472)]=e[n(472)]||"",t[n(469)][n(439)]=n(461),s.appendChild(t)}break;default:s[n(469)][n(421)]=n(455),s[n(469)][n(437)]="#f9f9f9",s[n(472)]=t[n(417)]+" Ad"}return s}[Wt(450)](t){const e=Wt,n=this.renderers[e(438)](t);if(!n)throw new Error(e(468)+t);return n}[Wt(471)](t,e,n,r,s){this[Wt(450)](n).createPlaceholder(t,e,r,s)}async[Wt(444)](t,e){const n=Wt;if(t[n(417)]!==i[n(419)])return void(this.debug&&console.warn(n(432)+t[n(417)]));const r=this[n(450)](i[n(419)]);await r.optimizeContainerForBannerAds(t,e)}async[Wt(435)](t,e){const n=Wt,r=this.getRenderer(t[n(417)]);await r[n(414)](t,e)}async[Wt(452)](t){const e=Wt;if(!t.advertisement)throw new Error("No advertisement to render");const n=this[e(450)](t.adType);await n.renderAdElement(t,t[e(458)]),t[e(418)]=!0}async[Wt(457)](t,e){const n=Wt,r=this[n(450)](t[n(417)]);await r[n(457)](t,e)}[Wt(481)](t){const e=Wt;this[e(450)](t[e(417)])[e(481)](t)}[Wt(415)](t){const e=Wt;return this.getRenderer(t)[e(430)]()}[Wt(422)](t,e,n,r){const s=Wt;return this[s(450)](e)[s(422)](t,n,r)}loadImageDimensions(t){return new Promise((e,n)=>{const r=Yt,s=new Image;s[r(426)]=()=>{const t=r;e({width:s.naturalWidth,height:s[t(460)]})},s[r(441)]=()=>{n(new Error("Failed to load image: "+t))},s[r(429)]=t})}async renderOptimizedBannerImage(t,e,n){const r=Wt;if(n.adType!==i[r(419)])throw new Error(r(447));const s=this[r(450)](i[r(419)]);return await s[r(474)](t,e,n)}async[Wt(467)](t,e,n){const r=Wt;if(n!==i[r(419)]){const t=this[r(450)](n);return{width:r(445),height:t[r(430)](),aspectRatio:16/9}}const s=this[r(450)](i[r(419)]);return await s[r(467)](t,e)}log(t,...e){const n=Wt;this.debug&&console.log(n(476)+t,...e)}}const Gt=Qt;function Jt(){const t=["createAdInternal","374097omRblH","❌ Failed to find element for viewability tracking: ","create","autoSlide","innerHTML","renderAdElement","disconnect","toString","slideInterval","random","from","NATIVE","advertisements","customControls","🗑️ Ad slot destroyed: ",". Retrying in ","optimizeContainerForBannerAds","onClick","destroy","width","values","default","createAd","843689CbkXtt","deviceType","renderFallback","1828287MCODyj","🚫 Advertisement not found with ID: "," ads)","adRenderer","📊 Fetched ","getConfig","getAllSlots","loadAdContentInBackground","Container not found after ","style","100%","2lkXKsN","get","config","Failed to fetch ad data: ","🧹 Auto-cleanup: slot ","getBaseUrl"," ads for type: ","createPlaceholder","containerId","interstitial","290vjyyRa","slots","log","handleViewableEvent","refreshAdSlot","_isReady","New advertisement viewable tracked for slot:","INTERSTITIAL","🔍 Auto-cleanup MutationObserver enabled","Ads module not initialized. Call AdStage.init() first.","_config","handleRemovedElement","then","append","📊 Advertisement event tracking enabled for slot: ","viewabilityTracker","status","Ad slot not found: ","muted","10vnLrwH","advertisement","removedNodes","🎠 Slider will handle VIEWABLE events for ","ensureReady","error","mutationObserver","language","data-adstage-slot-id","getSlotById","height","ms... (attempt ","refresh","getAttribute","startSimpleViewabilityTracking","523056mYldGX"," (attempt ","autoDestroy","106654WQlCYB","setAttribute","observe","init","❌ Failed to load ad for slot: ","📊 Fetched specific ad with ID: ","getElementById","Auto-cleanup failed for slot ","createAdWithRetry","auto","text","adType","autoplay","substr","167153pyLwWr","ELEMENT_NODE","BANNER","48QthBpX","querySelectorAll","list","🎯 Ads module initialized (sync mode) with auto-cleanup","set","destroyModule","loop","length","10768XBMxYI","fetchAdData","json","API key not configured","VIDEO","debug","Failed to refresh ad slot: ","body","native","forEach","trackAdvertisementEvent","renderAdSlider","video","auto-","adId","isLoaded","country","TEXT","❌ Failed to track viewable impression:","warn","now","banner","_id","apiKey","advertisementEventTracker","setupAutoCleanup","delete","isReady","clear","hideControls","🔄 Retrying viewability tracking for slot: ","Container not found: ","✅ Simple viewable impression tracked for ad ","undefined"];return(Jt=function(){return t})()}function Qt(t,e){const n=Jt();return(Qt=function(t,e){return n[t-=138]})(t,e)}!function(){const t=Qt,e=Jt();for(;;)try{if(103835===-parseInt(t(189))/1*(parseInt(t(236))/2)+parseInt(t(152))/3+parseInt(t(261))/4*(parseInt(t(199))/5)+-parseInt(t(233))/6+parseInt(t(250))/7*(parseInt(t(253))/8)+-parseInt(t(178))/9+parseInt(t(218))/10*(parseInt(t(175))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Zt{constructor(){const t=Qt;this._isReady=!1,this[t(209)]=null,this[t(200)]=new Map,this[t(141)]=null,this[t(181)]=null,this[t(224)]=null}[Gt(239)](t){const e=Gt;this._config=t,this[e(141)]=new O(J[e(194)](),t[e(140)],t[e(266)]||!1,this.slots),this[e(181)]=new qt(t[e(266)]||!1,this.advertisementEventTracker),this[e(142)](),this[e(204)]=!0,t[e(266)]&&console.log(e(256))}[Gt(144)](){return this[Gt(204)]}[Gt(183)](){return this[Gt(209)]}[Gt(138)](t,e){const n=Gt;this[n(222)]();const r={width:e?.width||"100%",height:e?.[n(228)]||"auto",autoSlide:e?.[n(155)]||!1,slideInterval:e?.[n(160)]||5e3,onClick:e?.[n(169)],adId:e?.[n(275)],language:e?.language,deviceType:e?.[n(176)],country:e?.[n(277)]};return this.createAd(t,i[n(252)],r)}[Gt(246)](t,e){const n=Gt;this[n(222)]();const r={maxLines:e?.maxLines||3,style:e?.[n(187)]||n(173),onClick:e?.[n(169)],adId:e?.[n(275)],language:e?.[n(225)],deviceType:e?.[n(176)],country:e?.country};return this.createAd(t,i.TEXT,r)}[Gt(273)](t,e){const n=Gt;this[n(222)]();const r={width:e?.[n(171)]||640,height:e?.[n(228)]||360,autoplay:void 0===e?.[n(248)]||e.autoplay,muted:void 0===e?.[n(217)]||e[n(217)],loop:void 0===e?.[n(259)]||e[n(259)],playsinline:!1!==e?.playsinline,controls:void 0!==e?.controls&&e.controls,hideControls:e?.[n(146)]||!1,customControls:e?.[n(165)],autoSlide:!1,maxAds:1,onClick:e?.onClick,...e?.[n(275)]&&{adId:e[n(275)]}};return this.createAd(t,i[n(265)],r)}[Gt(269)](t,e){const n=Gt;return this[n(222)](),this[n(174)](t,i[n(163)],e||{})}[Gt(198)](t,e){const n=Gt;return this[n(222)](),this[n(174)](t,i[n(206)],e||{})}[Gt(230)](t){const e=Gt;this[e(222)]();const n=this[e(200)].get(t);if(!n)throw new Error(e(216)+t);this[e(203)](n),this._config?.[e(266)]&&console[e(201)]("🔄 Ad slot refreshed: "+t)}[Gt(170)](t){const e=Gt;this[e(222)]();const n=this[e(200)][e(190)](t);if(!n)return void(this[e(209)]?.[e(266)]&&console[e(201)]("🔍 Ad slot already cleaned up: "+t));n.viewabilityTracker&&n[e(214)][e(170)]();const r=document[e(242)](n[e(197)]);r&&(r[e(156)]=""),this[e(200)][e(143)](t),this._config?.[e(266)]&&console[e(201)](e(166)+t)}[Gt(184)](){const t=Gt;return this[t(222)](),Array[t(162)](this[t(200)][t(172)]())}[Gt(227)](t){const e=Gt;return this[e(222)](),this[e(200)][e(190)](t)||null}createAd(t,e,n){const r=Gt;if(!this[r(209)]?.[r(140)])throw new Error("API key not configured");const s="adstage-"+e+"-"+Date[r(281)]()+"-"+Math[r(161)]()[r(159)](36)[r(249)](2,9);return this[r(244)](t,e,n,s,0),s}async createAdWithRetry(t,e,n,r,s){const i=Gt,o=[0,50,100,200,500];let a,c=null;if("string"==typeof t){if(a=t,c=document[i(242)](t),!c)return s<4?(this._config?.debug&&console[i(280)](i(148)+t+i(167)+o[s+1]+i(229)+(s+1)+"/5)"),void setTimeout(()=>{this[i(244)](t,e,n,r,s+1)},o[s+1])):void console[i(223)](i(186)+5+" attempts: "+t)}else c=t,a=c.id||i(274)+r,!c.id&&(c.id=a);try{this[i(151)](a,e,n,r,c)}catch(t){console[i(223)]("광고 생성 중 오류 발생:",t)}}[Gt(151)](t,e,n,r,s){const o=Gt;s[o(237)](o(226),r),this[o(181)]?.[o(196)](s,r,e,n,this[o(209)]);const a={id:r,containerId:t,adType:e,width:n[o(171)]||o(188),height:n[o(228)]||(e===i[o(278)]?o(245):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[o(262)](e,n)[o(211)](t=>t[0]||null),render:t=>this[o(181)]?.[o(157)](a,t),refresh:async()=>this[o(203)](a),destroy:()=>this[o(170)](r)};this[o(200)][o(257)](r,a),this.loadAdContentInBackground(a),this.advertisementEventTracker&&this[o(209)]?.debug&&console[o(201)](o(213)+r)}async[Gt(185)](t){const e=Gt;try{const n=await this[e(262)](t[e(247)],t[e(191)]);if(!n||0===n[e(260)])return void this[e(181)]?.[e(177)](t);t[e(247)]===i[e(252)]&&n[e(260)]>0&&await(this[e(181)]?.[e(168)](t,n)),n[e(260)]>1||t[e(191)]?.[e(155)]?(await(this[e(181)]?.[e(272)](t,n)),this[e(209)]?.[e(266)]&&console[e(201)](e(221)+n[e(260)]+" ads automatically")):(t.advertisement=n[0],await(this[e(181)]?.[e(157)](t,n[0])),this[e(232)](t,n[0])),t[e(276)]=!0,this[e(209)]?.debug&&console[e(201)]("✅ Ad loaded for slot: "+t.id+" ("+n.length+e(180))}catch(n){console[e(223)](e(240)+t.id,n),this[e(181)]?.[e(177)](t)}}[Gt(232)](t,e){const n=(r=0)=>{const s=Qt,i=document[s(242)](t.id);if(!i)return void(r<5?(setTimeout(()=>n(r+1),300),this._config?.[s(266)]&&console.log(s(147)+t.id+s(234)+(r+1)+")")):console[s(280)](s(153)+t.id));const o=new j(i,async()=>{const n=s;await this[n(202)](e,t)});t[s(214)]=o,this._config?.debug&&console.log("🎯 Simple viewability tracking started for slot: "+t.id+" (element found)")};n()}async[Gt(202)](t,e){const n=Gt;try{this[n(141)]&&(await this[n(141)][n(271)](t[n(139)],e.id,u.VIEWABLE),this._config?.[n(266)]&&console[n(201)](n(149)+t._id))}catch(t){console[n(223)](n(279),t)}}async[Gt(262)](t,e){const n=Gt;if(!this[n(209)]?.[n(140)])throw new Error(n(264));if(e[n(275)]){const t=""+J.advertisements.detail(e[n(275)]),r=await fetch(t,{method:"GET",headers:M[n(154)](this[n(209)][n(140)])});if(!r.ok){if(404===r[n(215)])return console[n(280)](n(179)+e.adId),[];throw new Error("Failed to fetch ad data: "+r[n(215)])}const s=await r[n(263)]();return this._config?.debug&&console[n(201)](n(241)+e.adId,s),[s]}const r=new URLSearchParams;r[n(212)](n(247),t),e[n(225)]&&r[n(212)]("language",e.language),e[n(176)]&&r[n(212)](n(176),e[n(176)]),e.country&&r[n(212)](n(277),e.country);const s=J[n(164)][n(255)]()+"?"+r[n(159)](),i=await fetch(s,{method:"GET",headers:M[n(154)](this[n(209)][n(140)])});if(!i.ok)throw new Error(n(192)+i.status);const o=(await i.json())[n(164)]||[];return this[n(209)]?.[n(266)]&&console[n(201)](n(182)+o[n(260)]+n(195)+t+", filters:",{language:e[n(225)],deviceType:e[n(176)],country:e[n(277)]}),o}async[Gt(203)](t){const e=Gt;try{const n=await this[e(262)](t.adType,t[e(191)]||{});n&&n.length>0&&(t[e(219)]=n[0],await(this.adRenderer?.renderAd(t)),this[e(141)]&&console[e(201)](e(205),t.id))}catch(n){console[e(223)](e(267)+t.id,n)}}[Gt(222)](){const t=Gt;if(!this[t(204)])throw new Error(t(208))}[Gt(142)](){const t=Gt;typeof window!==t(150)&&typeof document!==t(150)&&(this[t(224)]&&this[t(224)][t(158)](),this.mutationObserver=new MutationObserver(e=>{const n=t;e[n(270)](t=>{const e=n;t[e(220)].forEach(t=>{const n=e;t.nodeType===Node[n(251)]&&this[n(210)](t)})})}),this[t(224)][t(238)](document[t(268)],{childList:!0,subtree:!0}),this._config?.[t(266)]&&console[t(201)](t(207)))}handleRemovedElement(t){const e=Gt,n=t[e(231)](e(226));if(n)return void this[e(235)](n);t[e(254)]("[data-adstage-slot-id]")[e(270)](t=>{const n=e,r=t.getAttribute(n(226));r&&this[n(235)](r)})}[Gt(235)](t){const e=Gt,n=this[e(200)][e(190)](t);if(n)try{n[e(214)]&&n.viewabilityTracker[e(170)](),this[e(200)][e(143)](t),this._config?.[e(266)]&&console.log(e(193)+t+" removed")}catch(n){this._config?.[e(266)]&&console.warn(e(243)+t+":",n)}}[Gt(258)](){const t=Gt,e=this[t(209)]?.[t(266)];this[t(224)]&&(this[t(224)][t(158)](),this[t(224)]=null),this.slots[t(145)](),this.advertisementEventTracker=null,this.adRenderer=null,this[t(204)]=!1,this[t(209)]=null,e&&console[t(201)]("🗑️ Ads module destroyed")}}function $t(t,e){var n=ee();return($t=function(t,e){return n[t-=383]})(t,e)}var te=$t;function ee(){var t=["getBaseUrl","7350EYFEWW","modules","943506QTdLAd","includes","Config module not initialized","3785tUAwbf","baseUrl","log","42847eDZKPB","2051361arRxMh","_config","isReady","setBaseUrl","getApiEndpoint","12jMAvCp","5989137LjIMRP","13252499aHsDGq","apiKey","getEnabledModules","78051NRvYvl","debug","🔄 Config updated","ads","1WOgBqx","_organizationInfo","config","20BZMlgl","20rWIEBN","getConfig","development","104WYnJmA","updateConfig","API key not available","_isReady"];return(ee=function(){return t})()}!function(){for(var t=$t,e=ee();;)try{if(525754===-parseInt(t(391))/1*(-parseInt(t(405))/2)+parseInt(t(387))/3*(parseInt(t(395))/4)+parseInt(t(408))/5*(-parseInt(t(403))/6)+parseInt(t(411))/7*(-parseInt(t(398))/8)+-parseInt(t(412))/9*(-parseInt(t(394))/10)+-parseInt(t(383))/11+-parseInt(t(417))/12*(-parseInt(t(384))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=$t;this._isReady=!1,this[t(413)]=null,this._organizationInfo=null}init(t){var e=$t;this[e(413)]={timeout:3e4,debug:!1,modules:[e(390),"events",e(393)],...t},t[e(409)]&&J[e(415)](t.baseUrl),this[e(401)]=!0,t[e(388)]&&console.log("✅ Config module initialized (sync mode)",{modules:this._config[e(404)],endpoint:J[e(402)](),mode:e(397)})}[te(414)](){return this[te(401)]}[te(396)](){return this._config}getOrganizationInfo(){return this[te(392)]}[te(416)](){return J[te(402)]()}isDebugMode(){var t=te;return this[t(413)]?.debug||!1}[te(386)](){var t=te;return this[t(413)]?.[t(404)]||[]}isModuleEnabled(t){var e=te;return this[e(386)]()[e(406)](t)}[te(399)](t){var e=te;if(!this[e(413)])throw new Error(e(407));this[e(413)]={...this._config,...t},this.isDebugMode()&&console[e(410)](e(389),t)}getApiHeaders(){var t=te;if(!this[t(413)]?.[t(385)])throw new Error(t(400));return M.create(this._config[t(385)])}}function re(t,e){const n=oe();return(re=function(t,e){return n[t-=179]})(t,e)}const se=re;!function(){const t=re,e=oe();for(;;)try{if(238041===parseInt(t(179))/1*(parseInt(t(203))/2)+parseInt(t(216))/3+-parseInt(t(206))/4*(parseInt(t(201))/5)+-parseInt(t(214))/6+parseInt(t(210))/7*(parseInt(t(181))/8)+-parseInt(t(204))/9+parseInt(t(199))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ie{static getDeviceInfo(){const t=re;return{...ie[t(209)](),...ie[t(195)]}}static[se(209)](){const t=se;if(!k[t(190)]())return{category:t(191),platform:"SSR",model:t(187),osVersion:t(187)};const e=navigator[t(193)][t(211)]();let n="desktop";/tablet|ipad/[t(202)](e)?n=t(208):D[t(194)]()&&(n=t(184));const r=D[t(196)]();return{category:n,platform:ie[t(200)](r),model:navigator[t(182)],osVersion:navigator[t(182)],deviceId:D.generateDeviceId()}}static[se(215)](t){ie[se(195)]={...ie._userProvidedDeviceInfo,...t}}static[se(213)](t,e){ie._userProvidedDeviceInfo[t]=e}static[se(180)](){ie[se(195)]={}}static[se(183)](){return{...ie._userProvidedDeviceInfo}}static[se(200)](t){const e=se;switch(t){case e(185):return"iOS";case e(207):return e(186);case"web":return e(212);case"desktop":return e(205);default:return"Unknown"}}static getDetailedInfo(){const t=se;if(!k[t(190)]())return{userAgent:t(187),language:"ko-KR",platform:t(187),cookieEnabled:!1,onLine:!0,screenResolution:t(197),viewportSize:"0x0"};const e=k.getViewportInfo();return{userAgent:navigator[t(193)],language:navigator[t(198)]||t(217),platform:navigator[t(182)],cookieEnabled:navigator[t(189)],onLine:navigator.onLine,screenResolution:screen[t(192)]+"x"+screen[t(188)],viewportSize:e[t(192)]+"x"+e[t(188)]}}}function oe(){const t=["Desktop Web","268cqCCgc","android","tablet","getAutoDetectedDeviceInfo","102739UsRUFC","toLowerCase","Mobile Web","setDeviceProperty","2696982iztDya","setDeviceInfo","234408HtknFw","ko-KR","2bUyhdC","clearDeviceInfo","136TfEynS","platform","getUserDeviceInfo","mobile","ios","Android","SSR","height","cookieEnabled","isBrowser","other","width","userAgent","isMobile","_userProvidedDeviceInfo","getPlatform","0x0","language","6958740QxDTYl","mapPlatformForEvents","32950wDGOJs","test","177274XAVsPQ","645525CfqBJa"];return(oe=function(){return t})()}function ae(t,e){const n=ce();return(ae=function(t,e){return n[t-=267]})(t,e)}function ce(){const t=["5uONTnU","12002157eZTWIZ","language","estimateLocation","496596iVaVcI","resolvedOptions","split","1ScOjmv","isBrowser","getBaseUserInfo","13896nKzLNl","1306068VZSnfH","getUserInfo","3527664XsBQlg","ko-KR","10dftqen","setUserProperty","timeZone","5627844sllcDI","517mtJSjd","_userProperties","extractCountryFromLanguage","1085vppHHi","956702JeNQDA","setUserProperties","getCurrentUserProperties"];return(ce=function(){return t})()}ie[se(195)]={};const de=ae;!function(){const t=ae,e=ce();for(;;)try{if(700589===-parseInt(t(276))/1*(-parseInt(t(292))/2)+parseInt(t(282))/3+-parseInt(t(280))/4*(-parseInt(t(269))/5)+-parseInt(t(287))/6+-parseInt(t(291))/7*(-parseInt(t(279))/8)+-parseInt(t(270))/9*(-parseInt(t(284))/10)+parseInt(t(288))/11*(-parseInt(t(273))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[de(281)](){return{...le[de(278)](),...le._userProperties}}static[de(278)](){const t=de;if(!k[t(277)]())return{language:"ko-KR",country:"KR"};const e=navigator[t(271)]||t(283);return{language:e,country:le[t(290)](e)}}static[de(290)](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[de(275)]("-")[0]]||"KR"}static[de(267)](t){le[de(289)]={...le._userProperties,...t}}static[de(285)](t,e){le._userProperties[t]=e}static clearUserProperties(){le[de(289)]={}}static[de(268)](){return{...le[de(289)]}}static[de(272)](){const t=de;if(!k[t(277)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl.DateTimeFormat()[t(274)]()[t(286)];return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function ue(t,e){const n=fe();return(ue=function(t,e){return n[t-=377]})(t,e)}le[de(289)]={};const pe=ue;!function(){const t=ue,e=fe();for(;;)try{if(701944===-parseInt(t(398))/1+-parseInt(t(400))/2+parseInt(t(441))/3*(parseInt(t(411))/4)+parseInt(t(422))/5+-parseInt(t(413))/6*(parseInt(t(396))/7)+parseInt(t(427))/8*(-parseInt(t(395))/9)+parseInt(t(414))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class he{static[pe(410)](){const t=pe;if(typeof window===t(389))return null;const e=new URLSearchParams(window[t(387)][t(426)]),n={};let r=!1;const s=e[t(403)](t(436));if(s)try{const e=decodeURIComponent(s),i=new URLSearchParams(e);for(const e of he[t(390)]){const s=i[t(403)](e);s&&(n[e]=s,r=!0)}i[t(403)](t(419))===t(412)&&(r=!0)}catch(e){console[t(402)]("Failed to parse adstage_referrer:",e)}for(const s of he[t(390)]){if(n[s])continue;const i=e[t(403)](s);i&&(n[s]=i,r=!0)}return r?(n.channel||(n[t(394)]?n[t(421)]="google.ads":n[t(409)]?n[t(421)]=t(416):n[t(381)]?n[t(421)]=t(437):n.nclid?n[t(421)]="naver.searchad":n[t(438)]?n[t(421)]=t(392):n[t(443)]?n.channel=t(382):n.twclid&&(n.channel=t(379))),he[t(405)](n),n):null}static[pe(405)](t){const e=pe;if(typeof window!==e(389))try{const n={...he.get(),...t},r=JSON.stringify(n);try{sessionStorage[e(406)](he[e(446)],r)}catch(t){}try{localStorage[e(406)](he[e(446)],r)}catch(t){}}catch(t){console.warn(e(425),t)}}static get(){const t=pe;if(typeof window===t(389))return null;try{const e=sessionStorage?.[t(445)](he[t(446)]);if(e)return JSON[t(388)](e)}catch(t){}try{const e=localStorage?.getItem(he[t(446)]);if(e)return JSON[t(388)](e)}catch(t){}return null}static[pe(391)](){const t=pe;if("undefined"!=typeof window){try{sessionStorage?.[t(393)](he.STORAGE_KEY)}catch(t){}try{localStorage?.[t(393)](he[t(446)])}catch(t){}}}static[pe(432)](){const t=pe,e=he.get();return null!==e&&Object[t(401)](e)[t(377)]>0}static[pe(417)](){const t=pe,e=he[t(403)]();return!!e&&he[t(429)].some(t=>e[t])}static[pe(439)](){const t=pe;if(typeof window===t(389))return!1;const e=he[t(403)]();if(!e||!he.hasClickId())return!1;const n=e[t(394)]||e[t(409)]||e[t(381)]||e[t(434)]||e[t(438)]||e[t(443)]||e[t(397)];if(!n)return!1;return n!==sessionStorage[t(445)](t(433))&&(sessionStorage.setItem("adstage_last_click_id",n),!0)}static[pe(430)](){const t=pe;"undefined"!=typeof window&&sessionStorage[t(406)](t(440),t(412))}static[pe(435)](){const t=pe;return typeof window!==t(389)&&sessionStorage[t(445)](t(440))===t(412)}static[pe(444)](){const t=pe,e=he[t(403)]();if(!e)return null;const n={};return e[t(394)]&&(n[t(394)]=e.gclid),e[t(409)]&&(n[t(409)]=e.fbclid),e[t(381)]&&(n.ttclid=e[t(381)]),e[t(434)]&&(n.nclid=e[t(434)]),e[t(421)]&&(n[t(421)]=e[t(421)]),e[t(378)]&&(n[t(378)]=e[t(378)]),e[t(399)]&&(n[t(383)]=e.campaign_id),e[t(418)]&&(n[t(380)]=e.ad_group),e[t(407)]&&(n[t(442)]=e.ad_group_id),e[t(408)]&&(n[t(385)]=e[t(408)]),e[t(431)]&&(n[t(386)]=e[t(431)]),e.term&&(n.term=e[t(404)]),e[t(415)]&&(n[t(415)]=e.utm_source),e[t(420)]&&(n[t(420)]=e[t(420)]),e[t(428)]&&(n.utm_campaign=e.utm_campaign),e[t(423)]&&(n[t(423)]=e[t(423)]),e[t(384)]&&(n.utm_term=e[t(384)]),Object.keys(n)[t(377)]>0?n:null}}function fe(){const t=["fbclid","captureFromUrl","568784EAxfMM","true","1267548mIZKZR","27517980BjpJzw","utm_source","meta.ads","hasClickId","ad_group","adstage","utm_medium","channel","374700Ymtzzh","utm_content","CAMPAIGN_KEYS","Failed to store tracking params:","search","520QbUerK","utm_campaign","CLICK_ID_KEYS","markClickEventSent","creative_id","hasParams","adstage_last_click_id","nclid","isClickEventSent","adstage_referrer","tiktok.ads","liclid","shouldSendClickEvent","adstage_click_event_sent","27prnHAw","adGroupId","msclkid","toAttributionObject","getItem","STORAGE_KEY","length","campaign","twitter.ads","adGroup","ttclid","microsoft.ads","campaignId","utm_term","adCreative","creativeId","location","parse","undefined","ALL_KEYS","clear","linkedin.ads","removeItem","gclid","172791WWajRK","21WVnLfy","twclid","1126374tuxVsO","campaign_id","792950fZPCvC","keys","warn","get","term","store","setItem","ad_group_id","ad_creative"];return(fe=function(){return t})()}he.STORAGE_KEY="adstage_tracking_params",he[pe(429)]=[pe(394),pe(409),pe(381),pe(434),pe(438),pe(443),pe(397)],he[pe(424)]=["channel",pe(378),"campaign_id",pe(418),"ad_group_id",pe(408),pe(431),pe(404)],he.UTM_KEYS=[pe(415),pe(420),pe(428),pe(423),pe(384)],he[pe(390)]=[...he.CLICK_ID_KEYS,...he[pe(424)],...he.UTM_KEYS];const ge=Ie;function me(){const t=["208ISAAZs","Attribution registration failed: ","25524pEuScv","getUserDeviceInfo","status","📊 Attribution included:","stringify","registerAttribution","93QqSxzh","getUserInfo","API key not configured for event tracking.","getAttributionId","Event tracking failed: ","setUserProperties","📊 Events module initialized","create","apiKey","getConfig","attributionId","📱 User provided device info cleared","setItem","setDeviceProperty","sendAttributionToServer","error","getDeviceInfo","log","undefined","getUserProperties","warn","init","10ZwyMfM","📡 Attribution request URL:","clearDeviceInfo","sendEventToServer","❌ Failed to track event:","getItem","217150FHbgXr","📱 Device property set:","isReady","adstage_attribution_id","_isReady","2369015eXTagb","text","1805097lpcHlu","🔑 Request headers:","getCurrentUserProperties","⏭️ No tracking parameters found, skipping attribution registration","statusText","_config","track","213183nYZpTd","API key not configured for attribution registration.","length","6EnsBpr","❌ API Error Response:","json","setDeviceInfo","application/json","👤 User properties set:","531470WshhMa","debug","events","Events module not initialized. Call AdStage.init() first.","11648760Yzjoag","keys","5TPkuQt","POST"];return(me=function(){return t})()}function Ie(t,e){const n=me();return(Ie=function(t,e){return n[t-=106]})(t,e)}!function(){const t=Ie,e=me();for(;;)try{if(332990===parseInt(t(129))/1*(parseInt(t(167))/2)+parseInt(t(139))/3*(-parseInt(t(133))/4)+parseInt(t(123))/5*(parseInt(t(117))/6)+-parseInt(t(107))/7+parseInt(t(131))/8*(-parseInt(t(114))/9)+parseInt(t(161))/10*(-parseInt(t(172))/11)+parseInt(t(127))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{constructor(){this[Ie(171)]=!1,this._config=null}[ge(160)](t){const e=ge;this[e(112)]=t,this[e(171)]=!0,t.debug&&console[e(156)](e(145))}[ge(169)](){return this[ge(171)]}[ge(148)](){return this[ge(112)]}[ge(144)](t){const e=ge;le[e(144)](t),this[e(112)]?.[e(124)]&&console[e(156)](e(122),t)}[ge(158)](){return le.getCurrentUserProperties()}[ge(120)](t){const e=ge;ie.setDeviceInfo(t),this[e(112)]?.[e(124)]&&console[e(156)]("📱 Device info set:",t)}[ge(152)](t,e){const n=ge;ie[n(152)](t,e),this[n(112)]?.[n(124)]&&console[n(156)](n(168),t,e)}[ge(163)](){const t=ge;ie[t(163)](),this[t(112)]?.[t(124)]&&console[t(156)](t(150))}[ge(134)](){return ie[ge(134)]()}[ge(155)](){return ie[ge(155)]()}[ge(140)](){return le.getUserInfo()}[ge(109)](){return le[ge(109)]()}async[ge(113)](t,e){const n=ge;if(this[n(171)])if(this[n(112)]?.apiKey)try{const r=this[n(142)]();if(r){const s={eventName:t,sdkVersion:C(),device:ie[n(155)](),user:le[n(140)](),attributionId:r,params:e||{}};return await this[n(164)](s),void(this._config[n(124)]&&console.log("✅ Event tracked with attribution ID:",t,r))}const s=he.toAttributionObject(),i={eventName:t,sdkVersion:C(),device:ie[n(155)](),user:le[n(140)](),...s&&{attribution:s},params:e||{}};await this.sendEventToServer(i),this[n(112)][n(124)]&&(console[n(156)]("✅ Event tracked:",t,e),s&&console[n(156)](n(136),s))}catch(r){console.error(n(165),r),this[n(112)].debug&&console.error("Event data:",{eventName:t,properties:e})}else console[n(159)](n(141));else console[n(159)](n(126))}async registerAttribution(t){const e=ge;if(!this[e(171)])return console.warn("Events module not initialized. Call AdStage.init() first."),null;if(!this._config?.[e(147)])return console[e(159)](e(115)),null;try{const n=he.get();if(!n||0===Object[e(128)](n)[e(116)])return this[e(112)][e(124)]&&console[e(156)](e(110)),null;const r=await this[e(153)]({deviceId:t,referrerParams:n});if(this[e(112)].debug&&console[e(156)]("✅ Attribution registered:",r),r[e(149)]){try{localStorage.setItem(e(170),r[e(149)])}catch(t){}try{sessionStorage[e(151)](e(170),r[e(149)])}catch(t){}}return r}catch(t){return console[e(154)]("❌ Failed to register attribution:",t),null}}[ge(142)](){const t=ge;if(typeof window===t(157))return null;try{const e=sessionStorage[t(166)](t(170));if(e)return e}catch(t){}try{return localStorage[t(166)]("adstage_attribution_id")}catch(t){}return null}async trackWithAttributionId(t,e){return this[ge(113)](t,e)}async[ge(164)](t){const e=ge,n={...M[e(146)](this._config.apiKey),"Content-Type":e(121)};this[e(112)]?.[e(124)]&&(console.log(e(108),n),console[e(156)]("📡 Request URL:",J[e(125)][e(113)]()),console.log("📦 Request body:",t));const r=await fetch(J[e(125)].track(),{method:e(130),headers:n,body:JSON[e(137)](t)});if(!r.ok){const t=await r[e(106)]();throw console[e(154)](e(118),t),new Error(e(143)+r[e(135)]+" "+r[e(111)])}}async[ge(153)](t){const e=ge,n={...M[e(146)](this[e(112)][e(147)]),"Content-Type":e(121)};this[e(112)]?.debug&&(console[e(156)]("🔑 Attribution request headers:",n),console[e(156)](e(162),J[e(125)][e(138)]()),console[e(156)]("📦 Attribution request body:",t));const r=await fetch(J[e(125)][e(138)](),{method:e(130),headers:n,body:JSON.stringify(t)});if(!r.ok){const t=await r[e(106)]();throw console[e(154)](e(118),t),new Error(e(132)+r[e(135)]+" "+r[e(111)])}return r[e(119)]()}}const ye=be;function be(t,e){const n=we();return(be=function(t,e){return n[t-=413]})(t,e)}function we(){const t=["replace","✅ Auto-tracked click event with tracking params:","tracking_params","243OIzywy","warn","modules","length","setBaseUrl","❌ Failed to auto-track click event:","AdStage.events accessed before initialization","🎯 Sending click event after attribution registration","getItem","✅ Attribution registered:","attributionId","34715IphKdP","AdStage not initialized. Call AdStage.init() first.","height","generateDeviceId","get","13DVXvAK","hardwareConcurrency","catch","userAgent","undefined","🔍 Should send click event:","debug","2488RdpNth","🌐 API endpoint configured:","instance","location","📊 AdStage Debug: 현재 viewable 추적 상태","650538smtrYe","init","expiresAt","registerAttribution","charCodeAt","isReady","baseUrl","width","15910728XWtQjy","campaign","web","reset","track","substring","4884OVukQE","clearAdViewable","_config","toAttributionObject","1724lPuCxp","toISOString","getInstance","channel","🔗 Using attributionId from URL (attribution_id):","log","_isInitialized","AdStage.ads accessed before initialization","...","from","apiKey","ads","toString","❌ Failed to register attribution:","4358vjNHjQ","shouldSendClickEvent","🚀 AdStage SDK initialized (sync mode)","viewableTracker","setItem","adstage_device_id","30079sBOfPj","then","2.0.0","server-","language","❌ Error in click event auto-tracking:","now","clear","function","abs","search","attribution_id",")의 viewable 추적 초기화됨","hasClickId","2434124dvAjXx","882sMEYPW","join","events","config","20XzRfRE","error","development","click"];return(we=function(){return t})()}!function(){const t=be,e=we();for(;;)try{if(816471===parseInt(t(472))/1*(-parseInt(t(440))/2)+-parseInt(t(422))/3*(-parseInt(t(426))/4)+parseInt(t(483))/5*(parseInt(t(461))/6)+parseInt(t(446))/7*(-parseInt(t(495))/8)+parseInt(t(500))/9*(-parseInt(t(465))/10)+-parseInt(t(460))/11+-parseInt(t(416))/12*(-parseInt(t(488))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ke{constructor(){const t=be;this[t(432)]=!1,this._config=null,this.config=new ne,this[t(437)]=new Zt,this[t(463)]=new ve}static[ye(501)](t){const e=ye;!ke[e(497)]&&(ke.instance=new ke);const n=ke[e(497)];if(!t[e(436)])throw new Error("API key is required for AdStage initialization");n[e(424)]={timeout:3e4,debug:!1,modules:["ads",e(463),"config"],...t},n[e(424)][e(414)]&&(J[e(476)](n[e(424)][e(414)]),t[e(494)]&&console[e(431)](e(496),n[e(424)][e(414)]));const r=n[e(424)][e(474)]||[e(437),e(463),e(464)];for(const t of r){const r=n[t];r&&typeof r[e(501)]===e(454)&&r[e(501)](n[e(424)])}if(n[e(432)]=!0,typeof window!==e(492)){const r=he.captureFromUrl();r&&t.debug&&console[e(431)]("📊 Tracking parameters captured:",r);const s=(()=>{const t=e;try{const e=new URLSearchParams(window[t(498)][t(456)]),n=new URLSearchParams((window[t(498)].hash||"")[t(469)](/^#/,""));return e[t(487)](t(457))||n[t(487)](t(457))}catch{return null}})();if(s)try{localStorage[e(444)]("adstage_attribution_id",s),t[e(494)]&&console.log(e(430),s)}catch(t){}const i=he[e(441)]();if(t[e(494)]&&(console[e(431)](e(493),i),!i&&console.log("⏭️ Skipping click event (duplicate or no click ID)")),!s&&r&&he[e(459)]()){const r=(async()=>{const r=e;try{const e=n[r(486)](),s=await n[r(463)][r(503)](e);return s&&t.debug&&console[r(431)](r(481),{attributionId:s.attributionId,channel:s[r(429)],campaign:s[r(417)],expiresAt:s[r(502)]}),s}catch(t){return console.error(r(439),t),null}})();i&&r[e(447)](r=>{const s=e;try{const e=he.get(),i=he[s(425)]();t[s(494)]&&console.log(s(479),{attributionId:r?.[s(482)],hasAttribution:!!r}),n[s(463)][s(420)](s(468),{_autoGenerated:!0,_source:s(471),_timestamp:(new Date)[s(427)](),_platform:"web"})[s(447)](()=>{const n=s;he.markClickEventSent(),t[n(494)]&&console[n(431)](n(470),{attribution:i,trackingParams:e})})[s(490)](t=>{const e=s;console[e(466)](e(477),t)})}catch(t){console[s(466)](s(451),t)}})}else i&&setTimeout(()=>{const r=e;try{const e=he[r(487)](),s=he[r(425)]();n[r(463)][r(420)]("click",{_autoGenerated:!0,_source:r(471),_timestamp:(new Date)[r(427)](),_platform:r(418)})[r(447)](()=>{const n=r;he.markClickEventSent(),t[n(494)]&&console.log(n(470),{attribution:s,trackingParams:e})})[r(490)](t=>{const e=r;console[e(466)](e(477),t)})}catch(t){console[r(466)]("❌ Error in click event auto-tracking:",t)}},100)}t.debug&&console.log(e(442),{version:e(448),modules:r,apiKey:t[e(436)][e(421)](0,8)+e(434),mode:e(467)})}static[ye(413)](){return ke.instance?._isInitialized||!1}static getConfig(){return ke.instance?._config||null}static[ye(428)](){const t=ye;if(!ke[t(497)])throw new Error(t(484));return ke.instance}static get[ye(437)](){const t=ye;try{return ke.getInstance()[t(437)]}catch(e){throw console[t(473)](t(433)),e}}static get[ye(463)](){const t=ye;try{return ke[t(428)]()[t(463)]}catch(e){throw console[t(473)](t(478)),e}}static get[ye(464)](){const t=ye;try{return ke[t(428)]()[t(464)]}catch(e){throw console[t(473)]("AdStage.config accessed before initialization"),e}}static[ye(419)](){const t=ye;ke[t(497)]&&(ke.instance._isInitialized=!1,ke[t(497)][t(424)]=null)}[ye(486)](){const t=ye;if(typeof window===t(492))return t(449)+Math.random()[t(438)](36)[t(421)](2,15);const e=localStorage[t(480)]("adstage_device_id");if(e)return e;const n=[navigator[t(491)],navigator[t(450)],screen[t(415)]+"x"+screen[t(485)],(new Date).getTimezoneOffset(),navigator[t(489)]||0][t(462)]("|");let r=0;for(let e=0;e<n[t(475)];e++){r=(r<<5)-r+n[t(504)](e),r&=r}const s="web-"+Math[t(455)](r)[t(438)](36)+"-"+Date[t(452)]()[t(438)](36);return localStorage[t(444)](t(445),s),s}}function Ee(t,e){var n=xe();return(Ee=function(t,e){return n[t-=107]})(t,e)}function Ae(t,e){var n=Ee;return ke[n(113)]()?ke.events[n(117)](t,e):(console.warn("AdStage not initialized. Call AdStage.init() first."),Promise[n(118)]())}function xe(){var t=["events","5318480qLwavH","1DrucLp","56UTTmjN","6859980IfyFSj","getUserProperties","317198voWgWe","449015klsFQD","6GEGujt","997534JysiEc","5787252AxjGtv","isReady","9592ZbzapX","setUserProperties","warn","track","resolve"];return(xe=function(){return t})()}function Se(t){var e=Ee;ke.isReady()?ke.events[e(115)](t):console[e(116)]("AdStage not initialized. Call AdStage.init() first.")}function Ce(){var t=Ee;if(ke[t(113)]())return ke[t(119)][t(107)]();console[t(116)]("AdStage not initialized. Call AdStage.init() first.")}ke[ye(494)]={clearAllViewable:()=>{const t=ye;ut[t(453)](),console[t(431)]("✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨")},clearAdViewable:(t,e)=>{const n=ye;ut[n(423)](t,e),console[n(431)]("✅ AdStage Debug: 광고 "+t+"("+e+n(458))},getViewableStatus:()=>{const t=ye;console[t(431)](t(499),{trackedCount:ut[t(443)].size,trackedItems:Array[t(435)](ut.viewableTracker)})}},function(){for(var t=Ee,e=xe();;)try{if(571446===-parseInt(t(121))/1*(-parseInt(t(111))/2)+parseInt(t(110))/3*(-parseInt(t(114))/4)+parseInt(t(109))/5+parseInt(t(112))/6+-parseInt(t(108))/7*(-parseInt(t(122))/8)+-parseInt(t(123))/9+-parseInt(t(120))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Te=e(null);function Le({children:e,config:s}){const[i,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),i&&ke.reset(),ke.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};r(()=>{s&&!i&&u(s)},[s,i]);const p={isInitialized:i,config:a,initialize:u,reset:()=>{try{ke.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Te.Provider,{value:p,children:e})}function Re(){const t=s(Te);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function De(){const{isInitialized:t}=Re();return t?ke:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function _e(){var t=["127337nBNheT","570IBCSgF","12oENXWZ","507447MIpYDE","256VjysEa","37330lIIkwP","3567021MRzBOb","2479345uQlghJ","10hTmXor","26146vMKlXD","2188112wALGNR"];return(_e=function(){return t})()}function Pe(t,e){var n=_e();return(Pe=function(t,e){return n[t-=385]})(t,e)}function Be(){const t=["217gafUae","1002524ECyejO","23910fdqGiY","3vgCLGu","12WudYlo","1720zPmrQx","1EqXlLl","408686qsyXYT","events","2.0.0","AdStage","15807jJzMRI","627675WtLLVH","config","5024864DAMqBF","557145uwJMQZ","24woRhov"];return(Be=function(){return t})()}!function(){for(var t=Pe,e=_e();;)try{if(639723===-parseInt(t(393))/1*(parseInt(t(386))/2)+parseInt(t(390))/3+-parseInt(t(394))/4+-parseInt(t(389))/5*(parseInt(t(385))/6)+parseInt(t(395))/7*(parseInt(t(388))/8)+-parseInt(t(387))/9*(-parseInt(t(392))/10)+parseInt(t(391))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Me=ze;function ze(t,e){const n=Be();return(ze=function(t,e){return n[t-=253]})(t,e)}!function(){const t=ze,e=Be();for(;;)try{if(242073===parseInt(t(268))/1*(-parseInt(t(269))/2)+parseInt(t(265))/3*(-parseInt(t(263))/4)+parseInt(t(257))/5+-parseInt(t(264))/6*(-parseInt(t(262))/7)+parseInt(t(261))/8*(-parseInt(t(260))/9)+parseInt(t(267))/10*(parseInt(t(256))/11)+-parseInt(t(266))/12*(-parseInt(t(259))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ue=Me(254),Ne=["ads",Me(253),Me(258)];"undefined"!=typeof window&&(window[Me(255)]=ke);export{ke as AdStage,Le as AdStageProvider,Ue as SDK_VERSION,Ne as SUPPORTED_MODULES,he as TrackingParamsModule,Ce as getUserProperties,Se as setUserProperties,Ae as track,Re as useAdStageContext,De as useAdStageInstance};
1
+ import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as r,useContext as i}from"react";function s(){var t=["1091094pjalQj","975061rTtgTZ","DESKTOP","56EbMQpZ","445053OBQtQn","MOBILE","VIDEO","26764956VgLzIp","6khkKrk","TEXT","5601785ZrlANq","3608124muxnus","9564984LAhysg","POPUP","INTERSTITIAL","CLICK","VIEWABLE","WEB","BANNER"];return(s=function(){return t})()}var o,a,c,d,l,u,p,h,f,g,m,I;function v(t,e){var n=s();return(v=function(t,e){return n[t-=469]})(t,e)}!function(){for(var t=v,e=s();;)try{if(924558===-parseInt(t(473))/1+-parseInt(t(472))/2*(parseInt(t(480))/3)+-parseInt(t(483))/4+-parseInt(t(482))/5+parseInt(t(484))/6+parseInt(t(476))/7*(parseInt(t(475))/8)+parseInt(t(479))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(a=o||(o={}))[(c=v)(471)]="BANNER",a[c(485)]=c(485),a[c(486)]=c(486),a.NATIVE="NATIVE",a[c(478)]=c(478),a[c(481)]=c(481),(l=d||(d={}))[(u=v)(470)]=u(470),l[u(477)]=u(477),(h=p||(p={}))[(f=v)(469)]=f(469),h[f(487)]=f(487),(m=g||(g={}))[(I=v)(474)]="DESKTOP",m[I(477)]=I(477),m.TABLET="TABLET";const y=b;function b(t,e){const n=w();return(b=function(t,e){return n[t-=496]})(t,e)}function w(){const t=['❌ 컨테이너를 찾을 수 없습니다: "',"waitForElements","safeAppendChild","isSSR","ms)","✅ 컨테이너 발견: ","add","getViewportInfo","href","⏳ 컨테이너 대기 시작: ","documentElement","location","remove","isDOMReady","safeQuerySelectorAll","devicePixelRatio","getPageInfo","safeRemoveChild","waitForDOM","safeAddClass","safeSetTextContent","pageXOffset",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"textContent","✅ 컨테이너 즉시 발견: ","2372254jknaLW","log","safeQuerySelector","⏳ 컨테이너 대기 중: ","ms (",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"번째 시도, ","940qDIttH","classList","safeWindowOpen","querySelectorAll","error","DOMContentLoaded","2332698WLhpTy","removeEventListener","entries","getElementById","9231100vTqLoo","removeChild","safeGetComputedStyle","innerWidth","canUseDOM","getWindowProperty","96YhYEEr","waitForElement","13444434gxMbeQ","innerHTML","DOM을 사용할 수 없는 환경입니다.","from","appendChild","readyState","safeRemoveEventListener","all","getScrollInfo","37464OJFajI"," (최대 ","244230uwvNbN","pageYOffset","번 시도)","referrer","safeSetInnerHTML","map","getDocumentProperty","scrollTop","ms 경과)","safeAddEventListener","3PtJHyn","title","loading","5230zdadZz","min","isBrowser","safeCreateElement","undefined","forEach"];return(w=function(){return t})()}!function(){const t=b,e=w();for(;;)try{if(868788===parseInt(t(531))/1+-parseInt(t(497))/2*(-parseInt(t(543))/3)+-parseInt(t(504))/4*(-parseInt(t(546))/5)+parseInt(t(510))/6+-parseInt(t(533))/7*(parseInt(t(520))/8)+-parseInt(t(522))/9+parseInt(t(514))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{static isBrowser(){return"undefined"!=typeof window&&typeof document!==b(550)}static[y(555)](){return!this[y(548)]()}static[y(518)](){const t=y;return this[t(548)]()&&void 0!==document[t(527)]}static safeGetElementById(t){const e=y;return this[e(518)]()?document[e(513)](t):null}static[y(499)](t){return this[y(518)]()?document.querySelector(t):null}static[y(566)](t){const e=y;return this.canUseDOM()?Array[e(525)](document[e(507)](t)):[]}static[y(549)](t){return this[y(518)]()?document.createElement(t):null}static[y(542)](t,e,n,r){this[y(518)]()&&t&&t.addEventListener(e,n,r)}static[y(528)](t,e,n,r){const i=y;this[i(518)]()&&t&&t[i(511)](e,n,r)}static[y(519)](t,e){return this[y(548)]()?window[t]??e:e}static[y(539)](t,e){return this.canUseDOM()?document[t]??e:e}static[y(506)](t,e,n){return this[y(548)]()?window.open(t,e,n):null}static[y(516)](t){return this[y(548)]()&&t?window.getComputedStyle(t):null}static[y(565)](){const t=y;return!!this.canUseDOM()&&document[t(527)]!==t(545)}static[y(570)](){return new Promise(t=>{const e=b;this[e(518)]()?this[e(565)]()?t():this.safeAddEventListener(document,e(509),()=>t()):t()})}static safeApplyStyles(t,e){const n=y;this[n(518)]()&&t&&Object[n(512)](e)[n(551)](([e,n])=>{t.style.setProperty(e,n)})}static[y(571)](t,e){const n=y;this[n(518)]()&&t&&t[n(505)][n(558)](e)}static safeRemoveClass(t,e){const n=y;this[n(518)]()&&t&&t[n(505)][n(564)](e)}static[y(572)](t,e){const n=y;this.canUseDOM()&&t&&(t[n(575)]=e)}static[y(537)](t,e){const n=y;this.canUseDOM()&&t&&(t[n(523)]=e)}static[y(554)](t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(526)](e)}static[y(569)](t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(515)](e)}static[y(568)](){const t=y;return{url:this.getWindowProperty(t(563),{href:""})[t(560)],title:this.getDocumentProperty(t(544),""),referrer:this.getDocumentProperty(t(536),"")}}static[y(559)](){const t=y;return{width:this.getWindowProperty(t(517),0),height:this.getWindowProperty("innerHeight",0),pixelRatio:this[t(519)](t(567),1)}}static[y(530)](){const t=y;return{scrollTop:this[t(518)]()?window[t(534)]||document[t(562)][t(540)]:0,scrollLeft:this[t(519)](t(573),0)}}static async[y(521)](t,e={}){const n=y,{timeout:r=3e3,retryInterval:i=100,debug:s=!1}=e;if(!this[n(518)]())throw new Error(n(524));const o=document[n(513)](t);return o?(s&&console[n(498)](n(496)+t),o):(s&&console.log(n(561)+t+n(532)+r+n(556)),new Promise((e,n)=>{let o=0;const a=Math.ceil(r/i),c=()=>{const d=b;o++;const l=document[d(513)](t);if(l)return s&&console[d(498)](d(557)+t+" ("+o+d(503)+o*i+d(541)),void e(l);if(o>=a){const e=d(552)+t+d(574)+t+d(502)+r+d(501)+o+d(535);return s&&console[d(508)](e),void n(new Error(e))}s&&o%10==0&&console[d(498)](d(500)+t+" ("+o+"/"+a+")");const u=Math[d(547)](i*Math.pow(1.2,o),500);setTimeout(c,u)};setTimeout(c,i)}))}static async[y(553)](t,e={}){const n=y,r=t[n(538)](t=>this[n(521)](t,e));return Promise[n(529)](r)}}const E=A;function A(t,e){const n=T();return(A=function(t,e){return n[t-=302]})(t,e)}!function(){const t=A,e=T();for(;;)try{if(480041===parseInt(t(304))/1+parseInt(t(315))/2*(-parseInt(t(302))/3)+-parseInt(t(316))/4*(parseInt(t(313))/5)+parseInt(t(309))/6*(-parseInt(t(307))/7)+parseInt(t(314))/8*(parseInt(t(305))/9)+parseInt(t(311))/10+-parseInt(t(308))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const x=E(312);function S(){return x}function T(){const t=["4706746vNVIdG","196698qsddvV"," AdStageSDK/","3618750nphpuW","3.0.15","105MZOCPp","8apxoCo","606jPSgwy","128948ZbYoeg","1029UJxsgw","undefined","842328WVPsWx","4656717TkAJLm","userAgent","7KMqsce"];return(T=function(){return t})()}const C=_;function D(){const t=["getPlatform","userAgent","safeGetElementById","toString","collectDeviceInfo","getScrollInfo","2746932PEiQvh","round","3376665MLTKtj","381172QUzLdv","width","UTC","adstage_session_id","setItem","SSR","random","generateDeviceId","now","adstage_device_id","isBrowser","resolvedOptions","DateTimeFormat","effectiveType","7626FvSiZZ",'[data-adstage-slot-id="',"toLowerCase","left","substr","session_","unknown"," .adstage-slider-wrapper","safeQuerySelector","847menKFu","49270eDusXS","1466175GasASI","11IPLXAS","getSlotPosition","1.0.0","72550gowdeR","1441cOTZRe","test","8ClDFeX","android","connection","web","generateSessionId","height","ios","getItem","platform"];return(D=function(){return t})()}function _(t,e){const n=D();return(_=function(t,e){return n[t-=100]})(t,e)}!function(){const t=_,e=D();for(;;)try{if(502098===-parseInt(t(111))/1*(-parseInt(t(114))/2)+parseInt(t(132))/3+-parseInt(t(135))/4+-parseInt(t(110))/5+parseInt(t(149))/6*(-parseInt(t(108))/7)+parseInt(t(117))/8*(parseInt(t(134))/9)+parseInt(t(109))/10*(-parseInt(t(115))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{static[C(142)](){const t=C;if(!k[t(145)]())return"ssr_device_"+Date.now();const e=localStorage[t(124)](t(144));if(e)return e;const n="device_"+Math[t(141)]()[t(129)](36)[t(103)](2,9)+"_"+Date.now();return localStorage[t(139)]("adstage_device_id",n),n}static[C(121)](){const t=C;if(!k[t(145)]())return"ssr_session_"+Date[t(143)]();const e=sessionStorage[t(124)]("adstage_session_id");if(e)return e;const n=t(104)+Math[t(141)]()[t(129)](36).substr(2,9)+"_"+Date[t(143)]();return sessionStorage[t(139)](t(138),n),n}static isMobile(){const t=C;return!!k[t(145)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(116)](navigator[t(127)])}static[C(126)](){const t=C;if(!k[t(145)]())return t(120);const e=navigator[t(127)][t(101)]();return/iphone|ipad|ipod/[t(116)](e)?t(123):/android/[t(116)](e)?t(118):R.isMobile()?t(120):"desktop"}static[C(130)](){const t=C,e=k.getViewportInfo();return{deviceId:R[t(142)](),sessionId:R.generateSessionId(),osVersion:k.isBrowser()?navigator[t(125)]:t(140),deviceModel:k[t(145)]()?navigator.platform:t(140),appVersion:t(113),sdkVersion:S(),language:k.isBrowser()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:k.isBrowser()?navigator[t(127)]:t(140),timezone:k.isBrowser()?Intl[t(147)]()[t(146)]().timeZone:t(137),viewportWidth:e[t(136)],viewportHeight:e[t(122)],screenWidth:k[t(145)]()?screen[t(136)]:0,screenHeight:k[t(145)]()?screen[t(122)]:0,colorDepth:k[t(145)]()?screen.colorDepth:24,pixelRatio:e.pixelRatio,connectionType:k[t(145)]()&&navigator[t(119)]?.[t(148)]||t(105),platform:R.getPlatform()}}static[C(112)](t){const e=C;let n=k[e(128)](t);if(!n){const r=k[e(107)]("#"+t+e(106));r&&(n=r)}if(!n&&(n=k.safeQuerySelector(e(100)+t+'"]')),!n)return e(105);const r=n.getBoundingClientRect(),i=k[e(131)]();return"x:"+Math.round(r[e(102)])+",y:"+Math[e(133)](r.top+i.scrollTop)}}const L=z;function z(t,e){const n=P();return(z=function(t,e){return n[t-=318]})(t,e)}!function(){const t=z,e=P();for(;;)try{if(640486===-parseInt(t(329))/1+parseInt(t(320))/2+parseInt(t(319))/3*(parseInt(t(323))/4)+parseInt(t(321))/5+-parseInt(t(322))/6+-parseInt(t(318))/7*(parseInt(t(326))/8)+parseInt(t(327))/9*(parseInt(t(324))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{static create(t,e){const n=z;if(!t)throw new Error("API key is required");return{"x-api-key":t,"Content-Type":e?.[n(328)]||"application/json"}}static[L(325)](t,e){return U.create(t)}}function P(){const t=["330836EDDGpd","4753450pDXLJd","5146020MkmLjw","4XPbuHZ","60kBsogf","createForEvents","4240nhGtaH","2645127mFkMgG","contentType","1169293tZkFOE","16037qKTCXM","3006459sPTpPa"];return(P=function(){return t})()}const M=O;function B(){const t=["❌ Failed to track advertisement event:","sessionId","🚀 Sending advertisement event: ","adType","createForEvents","...","1522768lcdWrF","statusText","1735915NTouAW","🌐 Full API call details:","16749410fWsMRY","/advertisements/events/","parseNumericValue","number","error","getElementById","url","title","6412584DPDDyi","POST","slots",". Skipping event tracking to prevent incorrect adType.","warn","platform"," event for ad ","apiKey","string","VIEWABLE","152107IaUfFX","height","width","log","baseUrl","text","containerId","NOT_SET","⚠️ DOM element not found for slotId: ","querySelector","status","get","2660868lCLhKM","getPageInfo","📡 API Response Status: "," - "," (containerId: ","1528272eOoVHc","6aUKYIq"," for ad ","debug","API request failed: ","stringify","substring","deviceId","now","🔍 Debug info:","trackAdvertisementEvent","getSlotPosition","4YIduRF","35KBnBFo"];return(B=function(){return t})()}function O(t,e){const n=B();return(O=function(t,e){return n[t-=208]})(t,e)}!function(){const t=O,e=B();for(;;)try{if(668463===parseInt(t(265))/1*(parseInt(t(224))/2)+parseInt(t(223))/3+parseInt(t(235))/4*(-parseInt(t(245))/5)+parseInt(t(255))/6+-parseInt(t(236))/7*(-parseInt(t(243))/8)+-parseInt(t(218))/9+-parseInt(t(247))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{constructor(t,e,n,r){const i=O;this.baseUrl=t,this[i(262)]=e,this[i(226)]=n,this[i(257)]=r}async[M(233)](t,e,n){const r=M;try{this[r(226)]&&console.log("🚀 AdvertisementEventTracker: Processing "+n+r(261)+t+" in slot "+e);const i=this.slots[r(217)](e);if(!i)return void(this[r(226)]&&console[r(259)]("⚠️ Slot not found for slotId: "+e+r(258)));if(!(document[r(252)](i[r(212)])||document[r(215)]('[data-adstage-slot-id="'+e+'"]')))return void(this[r(226)]&&console.warn(r(214)+e+r(222)+i[r(212)]+"). Skipping event tracking."));const s=R.collectDeviceInfo(),o={adType:i[r(240)],platform:s[r(260)],deviceId:s[r(230)],deviceInfo:s,pageUrl:k[r(219)]()[r(253)],pageTitle:k.getPageInfo()[r(254)],referrer:k[r(219)]().referrer,slotId:e,slotPosition:R[r(234)](i.containerId),slotWidth:V.parseNumericValue(i[r(208)]),slotHeight:V.parseNumericValue(i[r(266)]),sessionId:s[r(238)],pageLoadTime:performance[r(231)](),metadata:{eventType:n,sdkVersion:S(),timestamp:Date.now()},...n===p[r(264)]&&{isViewable:!0,iabCompliant:!0}},a=this[r(210)]+r(248)+t+"/"+n,c=U[r(241)](this[r(262)],o);this[r(226)]&&(console[r(209)](r(239)+n+r(225)+t,{url:a,headers:c,eventData:o}),console[r(209)](r(246),{method:r(256),url:a,hasApiKey:!!this[r(262)],bodySize:JSON[r(228)](o).length}));const d=await fetch(a,{method:r(256),headers:c,body:JSON[r(228)](o)});if(this[r(226)]&&console[r(209)](r(220)+d.status+" "+d[r(244)],{url:a,ok:d.ok}),!d.ok){const t=await d[r(211)]();throw new Error(r(227)+d[r(216)]+" "+d.statusText+r(221)+t)}this.debug&&console[r(209)]("✅ Successfully tracked advertisement event: "+n+" for ad "+t)}catch(i){console[r(251)](r(237),i),console.error(r(232),{baseUrl:this[r(210)],apiKey:this[r(262)]?this[r(262)][r(229)](0,8)+r(242):r(213),url:this[r(210)]+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[M(249)](t){const e=M;if(typeof t===e(250))return t;if(typeof t===e(263)){const e=parseFloat(t.replace(/px$/,""));return isNaN(e)?0:e}return 0}}function N(){var t=["visible","disconnect","element","65575VQFWVT","destroy","observe","visibilityState","intersectionRatio","470563RMtcUg","34qBcUAT","isDocumentVisible","IntersectionObserver","18215164qKtaFk","156IMAavl","IntersectionObserver not supported, viewability tracking disabled","observer","81WWyATG","initIntersectionObserver","3813136WpJmqr","7YYbDvc","onViewableCallback","isViewableTriggered","264291mVvVtC","7730574lRodoj","hidden","265610bVfSvN","handleIntersection"];return(N=function(){return t})()}function F(t,e){var n=N();return(F=function(t,e){return n[t-=110]})(t,e)}var H=F;!function(){for(var t=F,e=N();;)try{if(771935===-parseInt(t(110))/1+-parseInt(t(111))/2*(parseInt(t(124))/3)+parseInt(t(115))/4*(parseInt(t(132))/5)+parseInt(t(125))/6+parseInt(t(121))/7*(-parseInt(t(120))/8)+-parseInt(t(118))/9*(parseInt(t(127))/10)+parseInt(t(114))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class j{constructor(t,e){var n=F;this[n(117)]=null,this.isViewableTriggered=!1,this[n(131)]=t,this[n(122)]=e,this[n(119)]()}[H(119)](){var t=H;t(113)in window?(this.observer=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:"0px"}),this[t(117)][t(134)](this.element)):console.warn(t(116))}[H(128)](t){t.forEach(t=>{var e=F;t[e(136)]>=.5&&this[e(112)]()&&!this[e(123)]&&(this[e(123)]=!0,this[e(122)]&&this[e(122)]())})}[H(112)](){var t=H;return!document[t(126)]&&document[t(135)]===t(129)}[H(133)](){var t=H;this.observer&&(this[t(117)][t(130)](),this.observer=null)}}function K(t,e){const n=Y();return(K=function(t,e){return n[t-=326]})(t,e)}const W=K;!function(){const t=K,e=Y();for(;;)try{if(237941===-parseInt(t(344))/1+parseInt(t(352))/2+-parseInt(t(332))/3*(-parseInt(t(336))/4)+parseInt(t(347))/5*(parseInt(t(329))/6)+parseInt(t(326))/7*(parseInt(t(350))/8)+-parseInt(t(345))/9*(parseInt(t(335))/10)+-parseInt(t(328))/11*(parseInt(t(346))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const q={production:W(330),beta:W(351)},G={advertisements:{list:"/advertisements/list",detail:W(342),events:W(334)},events:{track:W(331),registerAttribution:"/events/register/attribution"}};function Y(){const t=["baseUrl","advertisements","/advertisements","events","456341PKdKkw","4437zFQpug","120468dwhTtb","1690xTPuVd","custom","detail","632wqYoWL","https://beta-api.adstage.app","719482rgUNHe","14497riDhup","track","363ZcZqqG","8058yaCCIM","https://api.adstage.app","/events/track","12gXaMmf","setBaseUrl","/advertisements/events","1990CTPGrz","146392nQjcBD","registerAttribution","list","startsWith"];return(Y=function(){return t})()}class Z{constructor(t){const e=W;this[e(341)]={list:()=>""+this.baseUrl+G[e(341)][e(338)],detail:t=>""+this.baseUrl+G.advertisements[e(349)]+"/"+t,events:(t,n)=>""+this[e(340)]+G.advertisements[e(343)]+"/"+t+"/"+n},this[e(343)]={track:()=>""+this[e(340)]+G.events[e(327)],registerAttribution:()=>""+this[e(340)]+G.events[e(337)]},this[e(340)]=t||q.production}[W(333)](t){this[W(340)]=t}getBaseUrl(){return this[W(340)]}[W(348)](t){const e=W;return""+this[e(340)]+(t[e(339)]("/")?t:"/"+t)}}const J=new Z;function X(t,e){var n=tt();return(X=function(t,e){return n[t-=268]})(t,e)}var Q=X;!function(){for(var t=X,e=tt();;)try{if(386161===-parseInt(t(280))/1*(-parseInt(t(284))/2)+-parseInt(t(278))/3+parseInt(t(281))/4*(parseInt(t(287))/5)+-parseInt(t(269))/6*(-parseInt(t(273))/7)+-parseInt(t(268))/8*(parseInt(t(289))/9)+parseInt(t(288))/10*(-parseInt(t(286))/11)+parseInt(t(283))/12*(parseInt(t(272))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[Q(279)](t,e,n,r,i=!1){var s=Q;i&&console[s(277)]("🎯 Triggering VIEWABLE event for slide change: ad "+t._id+s(282)+n+s(270)+e.id),r(t[s(274)],e.id,p.VIEWABLE)}static[Q(285)](t,e,n,r=!1){var i=Q;r&&console[i(277)](i(271)+t._id+i(276)+e.id),n(t._id,e.id,p[i(275)])}}function tt(){var t=["377397swHLCW","120dwOvZd","489966VBNoni",") in slot: ","🎯 Triggering initial VIEWABLE event: ad ","101075mOUuaW","7gwsYCU","_id","VIEWABLE"," (index: 0) in slot: ","log","1012584bdzGft","trackSlideViewable","1369qhopuy","1216308RWkbiI"," (index: ","876LWuayp","870yflIrx","trackInitialSlideViewable","539396dOOmbx","5REDoEg","40eIEWjx"];return(tt=function(){return t})()}function et(t,e){const n=rt();return(et=function(t,e){return n[t-=166]})(t,e)}const nt=et;function rt(){const t=[" -> ","style","134UXcOqz","adType","336060vfDTzZ","addClickEventForRenderer","pointer","toLowerCase","addEventListener","isClickable","cursor","12438360tBybSG","1059988hHfOZb","log","18604091LDQgvu","8yWMUDe","🔗 ","3uOrHnJ","click","1093204DVujTr","35856ZOXkUd","5zvVTDs","CLICK","addClickEvent","4171ptaPqs","_id","_blank","addClickEventForSlider","linkUrl","10zLkRrk","addClickEventsBatch"," ad clicked: ","stopPropagation"];return(rt=function(){return t})()}!function(){const t=et,e=rt();for(;;)try{if(856457===-parseInt(t(180))/1*(parseInt(t(191))/2)+-parseInt(t(173))/3*(-parseInt(t(168))/4)+-parseInt(t(177))/5*(-parseInt(t(193))/6)+-parseInt(t(175))/7*(-parseInt(t(171))/8)+parseInt(t(176))/9*(parseInt(t(185))/10)+parseInt(t(170))/11+-parseInt(t(167))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static addClickEvent(t,e,n,r,i=!1,s){const o=et;e[o(184)]&&(t[o(190)][o(166)]=o(195),t[o(197)](o(174),t=>{const a=o;if(t.preventDefault(),t[a(188)](),r&&r(e[a(181)],n.id,p[a(178)]),window.open(e[a(184)],a(182)),i){const t=s||String(n[a(192)])[a(196)]();console[a(169)](a(172)+t+" ad clicked: "+e[a(181)]+a(189)+e[a(184)])}}))}static[nt(194)](t,e,n,r,i=!1,s){const o=nt;e[o(184)]&&(t[o(190)][o(166)]="pointer",t.addEventListener(o(174),t=>{const a=o;t.preventDefault(),t[a(188)]();if(r()(e[a(181)],n.id,p[a(178)]),window.open(e[a(184)],a(182)),i){const t=s||String(n[a(192)])[a(196)]();console[a(169)](a(172)+t+a(187)+e[a(181)]+a(189)+e[a(184)])}}))}static[nt(183)](t,e,n,r,i=!1,s){this.addClickEvent(t,e,n,r,i,s)}static[nt(198)](t){return Boolean(t[nt(184)])}static[nt(186)](t,e,n,r,i=!1,s){t.forEach((t,o)=>{const a=et,c=e[o];c&&this[a(179)](t,c,n,r,i,s)})}}const st=ot;function ot(t,e){const n=at();return(ot=function(t,e){return n[t-=420]})(t,e)}function at(){const t=["borderColor","8px","1087672UJiChO","removeChild","includes","#f0f0f0","4ooTKKV","204310grNUdv","100px","transform","abs","translateX(-","transform 0.4s ease-out","remove","padding","100%","children","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","textContent","965562SENZVy","3681986kqhvDu","adstage-dots","style","block","addTouchSupport","touchstart","contains","active","Banner Ad","TEXT","body","clientX","auto","VIDEO","overflow","setAttribute","1px dashed #ccc","img","background","70LEpFOZ","preventDefault","videoUrl","0.7","none","hidden","click","whiteSpace","#000","string","display","length","opacity","#666666","querySelectorAll","getBoundingClientRect","inline-block","createMinimalDotIndicator"," Ad","className","autoSlideInterval","86525DrCCFm","normal","div","adType","touchmove","1792810qyQNmW","50px","setProperty","height","adstage-slider-wrapper","changedTouches",".adstage-dot","addEventListener","addClickEventForSlider","adstage-dot","fontSize","entries","createElement","button","45kGDytz","#cccccc","_id","forEach","transition","mouseenter","flex","touchend","video","4119510qmrOnz","toLowerCase","trackSlideViewable","4UWwcLA","src","cssText","appendChild","objectFit","relative","createSimpleAdElement","14px","every","backgroundColor","mouseleave","cover","width","add","createSliderContainer","border","classList"];return(at=function(){return t})()}!function(){const t=ot,e=at();for(;;)try{if(917078===-parseInt(t(420))/1*(parseInt(t(474))/2)+parseInt(t(448))/3+-parseInt(t(451))/4*(parseInt(t(475))/5)+-parseInt(t(487))/6*(parseInt(t(507))/7)+parseInt(t(470))/8+parseInt(t(439))/9*(parseInt(t(425))/10)+parseInt(t(488))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[st(457)](t,e){const n=st,r=document[n(437)](n(422));switch(r.className="adstage-ad adstage-"+String(t.adType)[n(449)](),r[n(503)]("data-adstage-ad-id",e[n(441)]),r[n(503)]("data-adstage-slot-id",t.id),r[n(490)][n(517)]=n(491),r[n(490)][n(463)]=n(483),r[n(490)][n(428)]=n(500),t.adType){case o.BANNER:if(e.imageUrl){const t=document.createElement(n(505));t[n(452)]=e.imageUrl,t[n(490)][n(463)]=n(483),t.style[n(428)]=n(500),t[n(490)][n(455)]=n(462),r[n(454)](t)}else r[n(490)].height=n(476),r[n(490)][n(460)]=n(473),r.style[n(466)]=n(504),r[n(486)]=n(496);break;case o[n(501)]:if(e.videoUrl){const t=document.createElement(n(447));t[n(452)]=e[n(509)],t[n(490)][n(463)]=n(483),t[n(490)][n(428)]=n(500),r[n(454)](t)}else r.style.height="200px",r[n(490)][n(460)]=n(515),r[n(490)][n(466)]="1px solid #666",r[n(486)]="Video Ad",r.style.color="white";break;case o[n(497)]:if(e[n(486)]){const t=document[n(437)]("div");t[n(486)]=e[n(486)]||"",t[n(490)][n(482)]=n(469),t[n(490)][n(435)]=n(458),r.appendChild(t)}else r[n(490)][n(428)]=n(426),r.style[n(482)]=n(469),r[n(486)]="Text Ad";break;default:r[n(490)][n(428)]="100px",r[n(490)].border=n(504),r.style[n(460)]="#f9f9f9",r[n(486)]=t[n(423)]+n(525)}return r}static[st(465)](t,e,n,r,i=!1){const s=st,a=document[s(437)]("div");a.className=s(429);const c={position:s(456),overflow:s(512)};if(t[s(463)]&&0!==t.width){let e;e=typeof t[s(463)]===s(516)?t[s(463)][s(472)]("px")||t[s(463)].includes("%")?t[s(463)]:t[s(463)]+"px":t.width+"px",c[s(463)]=e,c[s(517)]=s(523)}else c[s(517)]=s(523);if(t[s(428)]&&0!==t[s(428)]){const e="string"==typeof t[s(428)]?t[s(428)]:t[s(428)]+"px";c[s(428)]=e}Object[s(436)](c).forEach(([t,e])=>{a[s(490)].setProperty(t,e)});const d=!t[s(463)]||0===t.width,l=!t[s(428)]||0===t[s(428)];if(d||l){const n=document.createElement("div");if(n.style[s(453)]=s(485),!d&&t.width){let e;e="string"==typeof t[s(463)]&&(t[s(463)][s(472)]("px")||t.width.includes("%"))?t.width:t[s(463)]+"px",n[s(490)][s(463)]=e,n[s(490)][s(514)]=s(421)}document[s(498)][s(454)](n);let r=0,i=0;e.forEach(e=>{const o=s,a=this.createSimpleAdElement(t,e);n[o(454)](a);const c=a[o(522)]();c.width>r&&(r=c[o(463)]),c.height>i&&(i=c[o(428)]),n[o(471)](a)}),d&&r>0&&(a[s(490)].width=r+"px",c[s(463)]=r+"px"),l&&i>0&&(a[s(490)][s(428)]=i+"px",c.height=i+"px"),document[s(498)][s(471)](n)}const u=[...e,e[0]],p=document[s(437)](s(422));p[s(526)]="adstage-slide-container";const h={display:s(445),transition:s(480),width:100*u[s(518)]+"%"};t[s(428)]&&0!==t[s(428)]&&(h.height=s(483)),Object[s(436)](h)[s(442)](([t,e])=>{const n=s;p[n(490)][n(427)](t,e)}),u[s(442)]((e,n)=>{const o=s,a=document[o(437)](o(422));a[o(526)]="adstage-slide";const c={width:100/u[o(518)]+"%","flex-shrink":"0",display:"flex","align-items":"center","justify-content":"center"};t.height&&0!==t[o(428)]&&(c[o(428)]="100%"),Object.entries(c)[o(442)](([t,e])=>{const n=o;a[n(490)][n(427)](t,e)});const d=this[o(457)](t,e);it[o(433)](d,e,t,r,i,String(t[o(423)])[o(449)]()),a[o(454)](d),p[o(454)](a)});const f=e[s(459)](t=>t[s(423)]===o[s(497)])?null:this[s(524)](e[s(518)]);let g=0;const m=e[s(518)],I=1e3*(n?.[s(527)]||3),v=(n,o=!1)=>{const a=s;g=n,o?p[a(490)][a(443)]=a(511):p.style[a(443)]=a(480),p[a(490)][a(477)]=a(479)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(521)](a(431)).forEach((t,e)=>{const n=a,r=t;e===c?(r[n(467)][n(464)]("active"),r[n(490)][n(506)]=n(520),r[n(490)].borderColor=n(520),r[n(490)][n(519)]="1"):(r[n(467)][n(481)](n(495)),r[n(490)].background="transparent",r[n(490)][n(468)]=n(440),r.style[n(519)]=n(510))})}$[a(450)](e[c],t,c,r,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(".adstage-dot")[s(442)]((t,e)=>{const n=s;t[n(432)](n(513),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a.addEventListener(s(444),()=>{clearInterval(b)}),a[s(432)]("mouseleave",()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[s(492)](p,v,()=>g,m,y),a[s(454)](p),f&&a.appendChild(f),v(0),(!t.width||0===t[s(463)])&&setTimeout(()=>{const e=s,n=p.children[0];if(n){const r=n[e(484)][0];if(r){const n=r[e(522)]();a.style[e(463)]=n[e(463)]+"px",(!t[e(428)]||0===t[e(428)])&&(a.style.height=n.height+"px"),a[e(490)][e(502)]="hidden"}}},10),a}static[st(524)](t){const e=st,n=document.createElement(e(422));n[e(526)]=e(489),n[e(490)][e(453)]="\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.createElement(e(438));t.className=e(434),t[e(490)][e(453)]="\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ",t.addEventListener(e(444),()=>{const n=e;!t.classList[n(494)]("active")&&(t[n(490)][n(468)]="#999999",t.style[n(519)]="0.9")}),t[e(432)](e(461),()=>{const n=e;!t[n(467)][n(494)]("active")&&(t[n(490)].borderColor=n(440),t[n(490)][n(519)]=n(510))}),n[e(454)](t)}return n}static addTouchSupport(t,e,n,r,i){const s=st;let o=0,a=!1;t[s(432)](s(493),t=>{const e=s;o=t.touches[0][e(499)],a=!0}),t[s(432)](s(424),t=>{a&&t[s(508)]()}),t.addEventListener(s(446),t=>{const c=s;if(!a)return;a=!1;const d=t[c(430)][0][c(499)],l=o-d;if(Math[c(478)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:r-1)}}})}}function dt(t,e){const n=pt();return(dt=function(t,e){return n[t-=133]})(t,e)}const lt=dt;!function(){const t=dt,e=pt();for(;;)try{if(557670===-parseInt(t(148))/1+parseInt(t(137))/2*(-parseInt(t(146))/3)+-parseInt(t(147))/4+-parseInt(t(143))/5+-parseInt(t(152))/6*(parseInt(t(133))/7)+parseInt(t(141))/8*(parseInt(t(139))/9)+parseInt(t(134))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static[lt(149)](t,e,n=!1){const r=lt,i=t+"_"+e;return ut[r(135)][r(144)](i)?(n&&console.log(r(140)+t+r(150)+e),!0):(ut[r(135)][r(138)](i),n&&console[r(142)](r(136)+t+" in slot "+e),!1)}static[lt(145)](){ut.viewableTracker.clear()}static[lt(151)](t,e){const n=t+"_"+e;ut[lt(135)].delete(n)}}function pt(){const t=["9BAmedO","Duplicate viewable blocked for ad ","1631768SnjvCE","log","1797345MYVqDF","has","clear","1705578rJwzMp","2589076DeVAqy","919028VekIIn","isDuplicateViewable"," in slot ","clearAdViewable","558qkAIol","51933Pfvshr","35379580xPYEHz","viewableTracker","✅ New viewable recorded for ad ","2WNXVfm","add"];return(pt=function(){return t})()}ut[lt(135)]=new Set;const ht=ft;function ft(t,e){const n=mt();return(ft=function(t,e){return n[t-=278]})(t,e)}!function(){const t=ft,e=mt();for(;;)try{if(977957===-parseInt(t(314))/1+-parseInt(t(396))/2+-parseInt(t(363))/3*(-parseInt(t(329))/4)+parseInt(t(386))/5+-parseInt(t(360))/6+-parseInt(t(284))/7*(-parseInt(t(353))/8)+parseInt(t(379))/9*(parseInt(t(319))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt{constructor(t,e=!1,n){const r=ft;this.adType=t,this[r(374)]=e,this[r(298)]=n||null}[ht(390)](t,e,n,r){const i=ht,s=document[i(286)]("div");s.id=e,s.className=i(315)+String(this[i(328)])[i(278)](),s[i(350)](i(376),i(287)),s[i(350)](i(369),String(this[i(328)])),s.setAttribute("data-adstage-slot",e);const{width:o,height:a}=this[i(388)](t,n,r)||{width:i(339),height:this.getDefaultHeight()};s[i(359)][i(373)]=o,s[i(359)][i(393)]=a;const c=r?.[i(324)]||n[i(324)]||i(331);this[i(367)](s,c),t.appendChild(s),this[i(374)]&&console[i(391)](i(338)+this[i(328)]+i(354)+e+" ("+o+i(348)+a+i(355)+c)}[ht(367)](t,e){const n=ht;switch(e){case n(331):t.style[n(301)]=n(356),t[n(359)][n(307)]="none",t[n(359)][n(336)]="0",t[n(333)]="";break;case n(356):t[n(359)][n(301)]="transparent",t[n(359)][n(307)]="none",t[n(359)][n(397)]=n(334),t[n(333)]="";break;case n(345):t[n(359)][n(301)]=n(395),t.style[n(307)]=n(344),t[n(359)][n(330)]=n(370),t[n(359)].display=n(362),t[n(359)].alignItems=n(313),t.style[n(279)]=n(313),t[n(333)]=n(351);break;case"minimal":t[n(359)][n(301)]="rgba(248, 249, 250, 0.5)",t[n(359)][n(307)]=n(296),t[n(359)][n(330)]=n(311),t[n(359)].display=n(362),t.style[n(295)]=n(313),t[n(359)][n(279)]=n(313),t[n(333)]='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case"debug":t[n(359)].border="2px dashed #e74c3c",t[n(359)].display=n(362),t[n(359)][n(295)]=n(313),t[n(359)].justifyContent=n(313),t.style[n(301)]=n(300),t[n(359)].color="#e74c3c",t[n(359)][n(308)]=n(283),t[n(359)][n(349)]=n(392),t[n(333)]="<span>Loading "+this[n(328)]+n(304);break;default:t.style[n(307)]=n(318),t[n(359)][n(397)]="flex",t[n(359)][n(295)]=n(313),t.style[n(279)]=n(313),t[n(359)][n(301)]="#f9f9f9",t.style[n(327)]=n(281),t.innerHTML=n(288)+this[n(328)]+n(304)}}[ht(388)](t,e,n){const r=ht,i=e[r(373)],s=e[r(393)];let o,a;if(o=typeof i===r(389)?i+"px":"string"==typeof i?i:r(339),typeof s===r(389))a=s+"px";else if("string"==typeof s&&s!==r(339)&&s!==r(357))a=s;else{const e=this[r(316)](t);e>0?(a="100%",(n?.[r(374)]||this[r(374)])&&console[r(391)](r(385)+e+r(294))):(a=this[r(383)](),(n?.[r(374)]||this.debug)&&console[r(391)](r(394)+a+" for "+this[r(328)]))}return{width:o,height:a}}[ht(316)](t){const e=ht,n=window[e(377)](t),r=parseFloat(n[e(393)]);if(!r||0===r){const r=parseFloat(n[e(321)]);if(r>0)return r;if(t[e(359)][e(393)]&&t[e(359)].height!==e(357)){const n=parseFloat(t.style[e(393)]);if(n>0)return n}const i=t[e(325)](e(393));if(i){const t=parseFloat(i);if(t>0)return t}}return r||0}[ht(365)](){return async(t,e,n)=>{const r=ft;if(n===p[r(323)]){if(ut.isDuplicateViewable(t,e,this[r(374)]))return void(this.debug&&console[r(391)](r(352)+t+r(302)+e));this[r(374)]&&console[r(391)]("✅ New viewable recorded for ad "+t+r(302)+e)}if(this[r(298)])try{this.debug&&console[r(391)]("🔄 Starting advertisement event tracking: "+n+r(306)+t+r(302)+e),await this.advertisementEventTracker.trackAdvertisementEvent(t,e,n),this[r(374)]&&console[r(391)](r(380)+n+" for ad "+t+r(302)+e)}catch(e){this[r(374)]&&console[r(335)](r(366)+n+r(378)+t+":",e)}else this.debug&&console[r(340)](r(375)+n+r(289))}}[ht(326)](t){const e=ht,n=document[e(337)](t.id);if(n){const r=[...[n[e(332)](e(342)),n[e(371)]('[data-adstage-container="true"]'),n].filter(t=>t&&t.hasAttribute(e(376))),...[n[e(371)](e(312)),n.closest(e(347)+String(this[e(328)])[e(278)]()),n[e(371)](e(382)),n[e(371)](e(317)),n[e(371)](e(358)),n[e(371)](e(285)),n[e(371)](e(384)),n[e(322)]].filter(Boolean)][0];if(r){let n="unknown";n=r[e(361)](e(376))?e(343):r[e(310)][e(299)](e(282))?e(346):e(320),r.style[e(290)]+="\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 ",r[e(333)]="",r.setAttribute(e(297),"true"),this[e(374)]&&console[e(340)](e(341)+this.adType+" container collapsed ("+n+e(292)+t.id,r)}else this[e(291)](t)}t[e(381)]=void 0,t[e(303)]=!0}[ht(291)](t){const e=ht,n=document.getElementById(t.containerId);if(n){n.innerHTML="";const r=document[e(286)](e(309));r.id=t.id,r[e(372)]=e(280)+String(this[e(328)])[e(278)](),r.setAttribute(e(376),"true"),r[e(350)](e(297),e(287)),r[e(350)](e(364),t.id),r.style[e(290)]=e(293),n[e(368)](r),this[e(374)]&&console.warn(e(387)+this.adType+e(305)+t.id)}}[ht(391)](t,...e){const n=ht;this[n(374)]&&console.log("["+this[n(328)]+"] "+t,...e)}}function mt(){const t=["VIEWABLE","placeholderMode","getAttribute","renderFallback","color","adType","4XflRKP","borderRadius","invisible","querySelector","innerHTML","block","error","opacity","getElementById","📦 Placeholder created for ","100%","warn","⚠️ ",'[data-adstage-container="true"]',"adstage-official","none","subtle","adstage-class",".adstage-"," x ","fontSize","setAttribute",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"🚫 Duplicate viewable blocked for ad ","64btOQlr"," slot: ",") - Mode: ","transparent","auto",'[class*="container"]',"style","1394946IutsAM","hasAttribute","flex","1825530tdtGRw","data-adstage-slot","createEventTrackingCallback","❌ Failed to track ","applyPlaceholderStyle","appendChild","data-adstage-type","4px","closest","className","width","debug","⚠️ AdvertisementEventTracker not available for ","data-adstage-container","getComputedStyle"," event for ad ","3016539aMAqVf","📊 Advertisement event tracked: ","advertisement",'[class*="ad"]',"getDefaultHeight",'div[style*="min-height"]',"📏 Using 100% height (container: ","5496180QNJuVE","⚠️ Created empty ","calculateAdSize","number","createPlaceholder","log","11px","height","📏 Using default height ","rgba(0, 0, 0, 0.02)","3202020RtyJIi","display","toLowerCase","justifyContent","adstage-slot adstage-empty adstage-","#666","adstage-slot","monospace","1363180kMQlnO",'div[style*="height"]',"createElement","true","<span>Loading "," event","cssText","createEmptyContainer","): ","\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 ","px)","alignItems","1px solid rgba(0, 0, 0, 0.08)","data-adstage-empty","advertisementEventTracker","contains","rgba(231, 76, 60, 0.1)","backgroundColor"," in slot ","isEmpty"," ad...</span>"," container: "," for ad ","border","fontFamily","div","classList","6px",".adstage-slot","center","789379wswHbb","adstage-slot adstage-","getContainerHeight",'[class*="banner"]',"1px dashed #ccc","10aRVjoG","generic","minHeight","parentElement"];return(mt=function(){return t})()}const It=vt;function vt(t,e){const n=bt();return(vt=function(t,e){return n[t-=403]})(t,e)}!function(){const t=vt,e=bt();for(;;)try{if(186673===parseInt(t(424))/1+parseInt(t(419))/2*(parseInt(t(484))/3)+-parseInt(t(410))/4*(-parseInt(t(463))/5)+parseInt(t(468))/6+parseInt(t(412))/7+-parseInt(t(506))/8*(parseInt(t(501))/9)+-parseInt(t(448))/10*(parseInt(t(446))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class yt extends gt{constructor(t=!1,e){super(o[vt(439)],t,e)}[It(438)](){return It(429)}async[It(473)](t,e){const n=It,r=document[n(491)](t[n(436)]);if(!r)return;const i=document[n(476)](n(434));i[n(420)]=n(459);const s=t.optimizedHeight,o=r[n(431)]||r;if(s)i[n(403)][n(499)]=n(413),i[n(403)][n(452)]=String(s);else{const e=t[n(454)],r={width:e?.[n(499)],height:e?.[n(452)]},{width:s,height:a}=this[n(408)](o,r,{debug:this[n(490)]});i[n(403)].width=s,i[n(403)][n(452)]=a}e.imageUrl?await this.renderOptimizedBannerImage(i,e,t):i.innerHTML=n(488)+(e[n(456)]||n(416))+"</div>",it[n(430)](i,e,t,()=>this[n(505)](),this[n(490)],n(495)),r[n(425)]="",r[n(480)](i)}async[It(426)](t,e){const n=It,r=document[n(491)](t[n(436)]);if(!r)throw new Error(n(485)+t[n(436)]);await this[n(404)](t,e);const i=this[n(505)](),s={autoSlideInterval:(t[n(454)]?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t[n(502)],aspectRatio:t[n(472)]},o=ct[n(417)](t,e,s,i,this[n(490)]);o&&(r[n(425)]="",r.appendChild(o),this.debug&&console[n(507)](n(407)+t.id+" with "+e[n(445)]+" ads (optimized: "+(t[n(502)]||n(493))+")"))}async[It(512)](t,e){const n=It;if(!t[n(445)])return{width:"100%",height:this[n(438)](),aspectRatio:16/9};try{const r=(await Promise[n(455)](t[n(481)](t=>t[n(496)])[n(440)](t=>this[n(471)](t[n(496)])))).filter(t=>"fulfilled"===t.status).map(t=>t[n(467)]);if(0===r.length)return{width:"100%",height:this[n(438)](),aspectRatio:16/9};const i=this.selectOptimalSizeStrategy(r),s=this[n(444)](r,e,i);return this[n(490)]&&console[n(507)]("📐 Optimal banner container calculated: "+e+"x"+s+n(500)+i+")"),{width:"100%",height:s+"px",aspectRatio:e/s}}catch(t){return console.warn(n(492),t),{width:n(413),height:this.getDefaultHeight(),aspectRatio:16/9}}}async[It(404)](t,e){const n=It;try{const r=document[n(491)](t[n(436)]),i=document[n(491)](t.id);if(!r||!i)return;const s=r[n(447)]()[n(499)]||300,o=await this[n(512)](e,s);i[n(403)].height=o[n(452)],t.optimizedHeight=o[n(452)],t[n(472)]=o[n(472)],this.debug&&console[n(507)](n(474)+e[n(445)]+n(460)+o.height)}catch(t){console[n(449)](n(510),t)}}[It(511)](t){const e=It,n=t[e(440)](t=>t[e(499)]/t[e(452)]),r=new Map;n[e(458)](t=>{const n=e,i=(Math[n(433)](10*t)/10)[n(497)]();r[n(508)](i,(r.get(i)||0)+1)});const i=Math.max(...r[e(421)]()),s=t[e(445)];if(i/s>=.7)return e(457);const o=[16/9,4/3,1,1.5],a=n.filter(t=>o[e(411)](n=>Math[e(418)](t-n)<.1))[e(445)];return e(a/s>=.5?462:514)}[It(444)](t,e,n){const r=It,i=t[r(440)](t=>t[r(499)]/t[r(452)]);switch(n){case r(457):{const t=new Map;i[r(458)](e=>{const n=r,i=Math.round(10*e)/10,s=i[n(497)](),o=t[n(423)](s);o?o[n(469)]++:t.set(s,{ratio:i,count:1})});const n=Array[r(487)](t[r(421)]())[r(427)]((t,e)=>e.count>t[r(469)]?e:t);return Math[r(433)](e/n.ratio)}case"common":{const t=[{ratio:16/9,name:r(405)},{ratio:4/3,name:"4:3"},{ratio:1,name:r(414)},{ratio:1.5,name:r(504)}],n=i[r(427)]((t,e)=>t+e,0)/i[r(445)],s=t[r(427)]((t,e)=>Math[r(418)](e[r(451)]-n)<Math.abs(t[r(451)]-n)?e:t);return this[r(490)]&&console[r(507)](r(482)+s[r(461)]+r(435)+n[r(486)](2)+")"),Math[r(433)](e/s.ratio)}default:{const t=i[r(427)]((t,e)=>t+e,0)/i[r(445)];return Math[r(433)](e/t)}}}[It(471)](t){return new Promise((e,n)=>{const r=vt,i=new Image;i.onload=()=>{const t=vt;e({width:i[t(415)],height:i[t(478)]})},i[r(483)]=()=>{n(new Error("Failed to load image: "+t))},i[r(470)]=t})}[It(432)](t,e,n){const r=It,i=e/n;Math.abs(i-1)<.1?(t[r(403)].objectFit=r(509),t.style[r(475)]=r(453)):i>1.3?(t[r(403)][r(450)]=r(437),t[r(403)][r(475)]=r(453),t[r(403)][r(443)]=r(428)):i<.7?(t[r(403)][r(450)]=r(509),t[r(403)][r(475)]=r(453)):(t[r(403)][r(450)]=r(509),t.style[r(475)]=r(453)),this[r(490)]&&console[r(507)](r(406)+t[r(403)][r(450)]+r(466)+i[r(486)](2))}async[It(409)](t,e,n){const r=It,i=document[r(476)](r(477));i[r(403)][r(499)]="100%",i[r(403)][r(452)]=r(413),i[r(403)][r(465)]=r(503),i[r(403)].borderRadius=r(441),i[r(498)]=e[r(456)]||r(479),t.innerHTML=r(489);try{if(!e[r(496)])throw new Error(r(494));const s=await this.loadImageDimensions(e.imageUrl),o=t[r(447)](),a=o[r(499)],c=o[r(452)];this.debug&&(console.log(r(442)+s[r(499)]+"x"+s[r(452)]),console[r(507)]("📦 Banner container dimensions: "+a+"x"+c));const d=s[r(499)]/s[r(452)],l=a/c;return this[r(432)](i,d,l),i[r(470)]=e[r(496)],t.innerHTML="",t[r(480)](i),it[r(430)](i,e,n,()=>this.createEventTrackingCallback(),this[r(490)],r(495)),this.debug&&console[r(507)](r(422)+e[r(513)]),i}catch(s){return console[r(464)]("❌ Failed to load optimized banner image:",s),e[r(496)]&&(i[r(470)]=e.imageUrl,i[r(403)][r(450)]=r(509),i[r(403)][r(475)]=r(453),t[r(425)]="",t[r(480)](i),it[r(430)](i,e,n,()=>this.createEventTrackingCallback(),this[r(490)],r(495))),i}}}function bt(){const t=["getBoundingClientRect","70sxcqzD","warn","objectFit","ratio","height","center","config","allSettled","title","dominant","forEach","adstage-ad adstage-banner-ad"," ads: ","name","common","5uCFmUj","error","display",", ratio=","value","1595088nWELgH","count","src","loadImageDimensions","aspectRatio","renderAdElement","🔧 Banner container optimized for ","objectPosition","createElement","img","naturalHeight","Banner Advertisement","appendChild","filter","📊 Using standard ratio: ","onerror","9snpAFD","Container not found: ","toFixed","from","<div>",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"debug","getElementById","Failed to calculate optimal banner size, using defaults:","default","Image URL is not provided","Banner","imageUrl","toString","alt","width"," (strategy: ","9RsfsuV","optimizedHeight","block","3:2","createEventTrackingCallback","461120JaNMmr","log","set","cover","Banner container optimization failed, using default size:","selectOptimalSizeStrategy","calculateOptimalContainerSize","_id","average","style","optimizeContainerForBannerAds","16:9","🎨 Banner image style applied: objectFit=","🎠 Banner carousel created for slot: ","calculateAdSize","renderOptimizedBannerImage","673716JOCmtD","some","874454jKqeZG","100%","1:1","naturalWidth","Banner Ad","createSliderContainer","abs","39646TGYvoR","className","values","✅ Optimized banner image rendered for ad: ","get","215990VvlHXX","innerHTML","renderMultipleAds","reduce","#f0f0f0","250px","addClickEventForRenderer","parentElement","applyOptimizedImageStyle","round","div"," (avg: ","containerId","contain","getDefaultHeight","BANNER","map","8px","📸 Banner image dimensions: ","backgroundColor","calculateOptimalHeight","length","927685SDAarJ"];return(bt=function(){return t})()}function wt(){const t=["\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 ","2wBVKDv","5608080qZXNdQ","84284QMopeL","208035piCkSV","610FUpSOY","32oPsblh","textContent","4524360BECjCB","title","30846kYQQnH","466695djdiKT","setTextAdContent","867461rhjlHt","createTextAdStyles"];return(wt=function(){return t})()}const kt=Et;function Et(t,e){const n=wt();return(Et=function(t,e){return n[t-=395]})(t,e)}!function(){const t=Et,e=wt();for(;;)try{if(395099===parseInt(t(395))/1*(-parseInt(t(400))/2)+-parseInt(t(403))/3+-parseInt(t(402))/4+parseInt(t(404))/5*(parseInt(t(409))/6)+-parseInt(t(397))/7*(-parseInt(t(405))/8)+-parseInt(t(401))/9+parseInt(t(407))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class At{static[kt(398)](t=!1){return kt(399)}static[kt(396)](t,e){const n=kt,r=e[n(406)]||e[n(408)]||"";t.textContent=r}}const xt=Tt;function St(){const t=["touchmove","10736210qIeiOC","mouseleave","adType","auto","hidden","adstage-ad adstage-","adstage-fade-slide-container","\n ","setTextAdContent","52811SjtlQU","opacity","appendChild","left","height: auto; min-height: fit-content;","top","height","height: 100%;","translateY(0)","width","addTouchSupport","createTextAdStyles","26152ksJhFW","16zEGRqY",";\n width: 100%;\n ","zIndex","position","setAttribute","setProperty","touches","includes","toLowerCase","string","forEach","970812pfreMA","cssText","relative","data-adstage-slot-id",";\n left: ","whiteSpace","mouseenter","trackSlideViewable","className","clientY",";\n ","598194WpDIJN","minHeight","createTextTransitionContainer","clientX","2dSWjig","translateY(20px)","10WlLIeC","autoSlideInterval","div","addEventListener","length","_id","transform","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","style","block","getBoundingClientRect","entries","713862fWzkHE","changedTouches","createSimpleAdElement","absolute","touchend","fit-content","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","4502477aykMue",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","removeChild","abs","data-adstage-ad-id","height: auto;","adstage-fade-slide","createElement"];return(St=function(){return t})()}function Tt(t,e){const n=St();return(Tt=function(t,e){return n[t-=189]})(t,e)}!function(){const t=Tt,e=St();for(;;)try{if(325406===parseInt(t(252))/1*(-parseInt(t(213))/2)+-parseInt(t(198))/3+-parseInt(t(264))/4*(-parseInt(t(215))/5)+parseInt(t(209))/6+-parseInt(t(234))/7+parseInt(t(265))/8*(parseInt(t(227))/9)+parseInt(t(243))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ct{static[xt(229)](t,e){const n=xt,r=document[n(241)](n(217));return r.className=n(248)+String(t[n(245)])[n(195)](),r[n(191)](n(238),e[n(220)]),r[n(191)](n(201),t.id),r[n(223)][n(199)]=At[n(263)](!0),At[n(251)](r,e),r}static[xt(211)](t,e,n,r,i=!1){const s=xt,o=t.height&&0!==t[s(258)]&&"auto"!==t.height,a=document.createElement(s(217));a.className="adstage-fade-slider-wrapper";const c={position:s(200),overflow:s(247),display:s(224)};if(!o&&(c[s(258)]="auto",c[s(210)]=s(232)),t.width&&0!==t[s(261)]){let e;e=typeof t[s(261)]===s(196)?t[s(261)][s(194)]("px")||t.width[s(194)]("%")?t[s(261)]:t[s(261)]+"px":t.width+"px",c.width=e}if(t[s(258)]&&0!==t[s(258)]&&"auto"!==t[s(258)]&&o){let e;e=typeof t[s(258)]===s(196)&&(t[s(258)][s(194)]("px")||t.height[s(194)]("%"))?t[s(258)]:t[s(258)]+"px",c[s(258)]=e}Object[s(226)](c)[s(197)](([t,e])=>{const n=s;a[n(223)][n(192)](t,e)});const d=document.createElement("div");d.className=s(249),d[s(223)][s(199)]="\n position: relative;\n width: 100%;\n "+s(o?259:256)+s(250);let l=null;const u=!t[s(261)]||0===t[s(261)],p=!t[s(258)]||0===t[s(258)]||void 0===t[s(258)]||t[s(258)]===s(246);if(u||p&&o){if(l=document[s(241)](s(217)),l[s(223)][s(199)]=s(222),!u&&t[s(261)]){let e;e=typeof t[s(261)]===s(196)?t[s(261)][s(194)]("px")||t[s(261)][s(194)]("%")?t[s(261)]:t[s(261)]+"px":t.width+"px",l.style[s(261)]=e,l[s(223)][s(203)]="normal"}document.body[s(254)](l);let n=0,r=0;e.forEach(e=>{const i=s,o=this.createSimpleAdElement(t,e);l[i(254)](o);const a=o[i(225)]();a[i(261)]>n&&(n=a[i(261)]),a[i(258)]>r&&(r=a[i(258)]),l[i(236)](o)}),u&&n>0&&(a[s(223)][s(261)]=n+"px"),p&&r>0&&o&&(a.style.height=r+"px"),document.body[s(236)](l)}const h=[];e.forEach((e,n)=>{const a=s,c=document.createElement(a(217));c[a(206)]=a(240);const l=o?"absolute":a(0===n?200:230);c[a(223)][a(199)]="\n position: "+l+";\n top: "+("absolute"===l?"0":a(246))+a(202)+(l===a(230)?"0":"auto")+a(266)+a(o?259:239)+a(233)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":"20px")+a(235)+(0===n?"2":"1")+a(208);const u=this[a(229)](t,e);it.addClickEventForSlider(u,e,t,r,i,"Text"),c[a(254)](u),d[a(254)](c),h.push(c)});let f=0;const g=e[s(219)],m=1e3*(n?.[s(216)]||4),I=n=>{const a=s;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c.style[a(190)]===a(200)&&(c.style[a(190)]=a(230),c[a(223)].top="0",c[a(223)][a(255)]="0"),d[a(223)][a(190)]=a(200),d[a(223)][a(257)]=a(246),d.style[a(255)]="auto"),c.style[a(253)]="0",c[a(223)][a(221)]="translateY(-20px)",c.style[a(189)]="1",d[a(223)].opacity="1",d[a(223)][a(221)]=a(260),d.style.zIndex="2",h[a(197)]((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(223)][r(253)]="0",t[r(223)][r(221)]=r(214),t[r(223)][r(189)]="1",!o&&t[r(223)].position===r(200)&&(t[r(223)].position=r(230),t[r(223)][r(257)]="0",t[r(223)][r(255)]="0"))}),f=n,$[a(205)](e[f],t,f,r,i)};let v=setInterval(()=>{I(f+1)},m);return a[s(218)](s(204),()=>{clearInterval(v)}),a[s(218)](s(244),()=>{v=setInterval(()=>{I(f+1)},m)}),Ct.addTouchSupport(a,I,()=>f,g),a.appendChild(d),a}static[xt(262)](t,e,n,r){const i=xt;let s=0,o=0,a=!1;t[i(218)]("touchstart",t=>{const e=i;s=t[e(193)][0][e(212)],o=t[e(193)][0].clientY,a=!0}),t[i(218)](i(242),t=>{a&&t.preventDefault()}),t[i(218)](i(231),t=>{const r=i;if(!a)return;a=!1;const c=t.changedTouches[0].clientX,d=t[r(228)][0][r(207)],l=s-c,u=o-d;if(Math[r(237)](l)>Math.abs(u)&&Math[r(237)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Dt=_t;function _t(t,e){const n=Rt();return(_t=function(t,e){return n[t-=478]})(t,e)}function Rt(){const t=[" ads","createElement","adstage-text-content"," with ","config","2137914rlTHnL","Container not found: ","getDefaultHeight","containerId","2948984lmQPWb","number","117183RDJFwZ","408QyGmRg","log","_id","optimizedHeight","style","4750810NNEmMr","appendChild","adstage-ad adstage-text-ad","innerHTML","✨ Single text ad rendered: ","length","addClickEventForRenderer","width","debug","4zpDxbY","className","height","TEXT","getElementById","5KnEVWc","hidden","Text","105AbjDTw","9wlaGyV","renderMultipleAds","display","createTextTransitionContainer","maxLines","webkitLineClamp","5525310FCQfGI","parentElement","60px","aspectRatio","overflow","100%","193432njkHHC","✨ Text transition created for slot: ","-webkit-box","13183zNhjbX","createEventTrackingCallback","createTextAdStyles"];return(Rt=function(){return t})()}!function(){const t=_t,e=Rt();for(;;)try{if(669321===-parseInt(t(486))/1*(parseInt(t(515))/2)+-parseInt(t(494))/3+-parseInt(t(498))/4*(-parseInt(t(520))/5)+parseInt(t(530))/6+-parseInt(t(523))/7*(parseInt(t(483))/8)+parseInt(t(524))/9*(parseInt(t(506))/10)+-parseInt(t(500))/11*(parseInt(t(501))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt extends gt{constructor(t=!1,e){super(o[_t(518)],t,e)}[Dt(496)](){return Dt(479)}async renderAdElement(t,e){const n=Dt,r=document[n(519)](t[n(497)]);if(!r)return;const i=document.createElement("div");i[n(516)]=n(508);const s=t.optimizedHeight,o=r[n(478)]||r;if(s)i[n(505)].width=n(482),i[n(505)].height=String(s);else{const e=t[n(493)],r={width:e?.[n(513)],height:e?.[n(517)]},{width:s,height:a}=this.calculateAdSize(o,r,{debug:this[n(514)]});i[n(505)][n(513)]=s,i[n(505)].height=a}const a=document[n(490)]("div");a[n(516)]=n(491),a[n(505)].cssText=At[n(488)](!1),At.setTextAdContent(a,e);const c=t[n(493)]?.[n(528)];c&&typeof c===n(499)&&(a[n(505)][n(526)]=n(485),a.style[n(529)]=String(c),a[n(505)].webkitBoxOrient="vertical",a[n(505)][n(481)]=n(521)),i[n(507)](a),it[n(512)](i,e,t,()=>this[n(487)](),this.debug,n(522)),r.innerHTML="",r.appendChild(i),this[n(514)]&&console[n(502)](n(510)+e[n(503)])}async[Dt(525)](t,e){const n=Dt,r=document[n(519)](t[n(497)]);if(!r)throw new Error(n(495)+t[n(497)]);const i=this[n(487)](),s={autoSlideInterval:(t[n(493)]?.slideInterval||5e3)/1e3,...t[n(493)],optimizedHeight:t[n(504)],aspectRatio:t[n(480)]},o=Ct[n(527)](t,e,s,i,this[n(514)]);o&&(r[n(509)]="",r[n(507)](o),this[n(514)]&&console[n(502)](n(484)+t.id+n(492)+e[n(511)]+n(489)))}}const zt=Pt;function Ut(){const t=["loadeddata","2310940bFzbkM","title","setAttribute","head"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","mouseleave","adstage-video-mute-button","hideCurrentTime","playsinline","adstage-video-container","loadedmetadata","containerId","🎬 Video element created for ad: ","addClickEventForRenderer","style","mouseenter","scale(1)","hidePlayButton","none","stopPropagation","transform","\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 ","unmuted","hideFullscreenButton","display","hideRemainingTime","Video thumbnail","22iZsysT","Click to unmute","\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ","debug","Video","height","1048754okKKmk",'\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 ',"_id"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ",", muted: ","575816OFOSvf","preload","hideVolumeSlider","length","🎬 Video metadata loaded, attempting autoplay...","🎬 Initial autoplay attempt after timeout...","hideControls","365ceTFBE","metadata","19242unjiwF","90gIYpDZ","block"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","1382MsVclM","renderVideoElementDirect","textContent","🔊 Video mute toggled: ","play","appendChild","objectFit","🎬 Final video settings:","videoUrl","imageUrl","Video fallback","100%","createEventTrackingCallback","rgba(0, 0, 0, 0.7)","catch","⚠️ No video advertisements available for slot: ","img","createElement","src"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ",'\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 ',"contain","🎬 Single video ad rendered: ","2234106WLRHpc","🎬 Autoplay completely failed:","\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 ","loop","error","log","button","video","className","muted","253977OnVcHq","hideProgressBar","🎬 Video controls setting:","innerHTML","12UEZDtW","\n pointer-events: none;\n ","VIEWABLE","renderAdElement","Video load failed:","Click to mute"," (autoplay: ","🎬 Single video rendered for VIDEO slot: ","rgba(0, 0, 0, 0.9)","scale(1.1)","width","Container not found: ","adstage-video-default-controls","div","🎬 Video data loaded, attempting autoplay...","autoplay","cssText"," !important;\n }\n ","addEventListener","click","VIDEO","🎬 User explicitly enabled controls, overriding default","controls","alt","renderMultipleAds","getElementById","background","position","canplay","warn","customControls"];return(Ut=function(){return t})()}function Pt(t,e){const n=Ut();return(Pt=function(t,e){return n[t-=133]})(t,e)}!function(){const t=Pt,e=Ut();for(;;)try{if(178433===parseInt(t(143))/1*(parseInt(t(146))/2)+-parseInt(t(179))/3*(parseInt(t(183))/4)+parseInt(t(140))/5*(parseInt(t(142))/6)+-parseInt(t(248))/7+parseInt(t(133))/8+-parseInt(t(169))/9+parseInt(t(215))/10*(parseInt(t(242))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Mt extends gt{constructor(t=!1,e){super(o[Pt(203)],t,e)}getDefaultHeight(){return"360px"}async[zt(186)](t,e){const n=zt,r=document[n(208)](t.containerId);if(!r)return;const i=document.createElement(n(196));i[n(177)]=n(224),i[n(229)][n(199)]=n(236),this[n(147)](i,e,t),r.innerHTML="",r[n(151)](i),this[n(245)]&&console[n(174)](n(168)+e[n(250)])}async[zt(207)](t,e){const n=zt,r=document[n(208)](t[n(226)]);if(!r)throw new Error(n(194)+t[n(226)]);if(e[n(136)]>0){const i=e[0],s=document[n(163)](n(196));s.className="adstage-video-container",s[n(229)][n(199)]="\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.renderVideoElementDirect(s,i,t),r.innerHTML="",r[n(151)](s);const o=this[n(158)]();setTimeout(()=>{const e=n;o(i[e(250)],t.id,p[e(185)])},100),this[n(245)]&&console[n(174)](n(190)+t.id+" ("+i[n(250)]+")")}else this[n(245)]&&console[n(212)](n(161)+t.id)}[zt(147)](t,e,n){const r=zt;t[r(229)][r(210)]="relative";const i=document[r(163)](r(176));i[r(229)][r(193)]=r(157),i[r(229)].height=r(157),i.style.objectFit=r(167),i[r(134)]=r(141);const s=n.config;if(this[r(245)]&&console[r(174)]("🎬 Video config received:",s),i[r(205)]=!1,i[r(198)]=!1!==s?.[r(198)],i[r(178)]=!0,i.loop=!1!==s?.[r(172)],this[r(245)]&&console[r(174)](r(153),{autoplay:i[r(198)],muted:i.muted,loop:i.loop,controls:i[r(205)]}),!1!==s?.[r(223)]&&i[r(217)]("playsinline",""),!0===s?.controls&&(i[r(205)]=!0,this[r(245)]&&console[r(174)](r(204))),s?.[r(139)])i[r(205)]=!1,i[r(229)][r(199)]+=r(184);else if(s?.[r(213)]){if(i[r(205)]){const t=document[r(163)]("style");t[r(148)]="\n video::-webkit-media-controls-play-button {\n display: "+(s[r(213)][r(232)]?r(233):r(144))+r(219)+(s[r(213)][r(180)]?"none":r(144))+r(145)+(s.customControls[r(222)]?r(233):r(144))+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(s[r(213)][r(240)]?r(233):r(144))+r(165)+(s.customControls[r(135)]?"none":"block")+r(251)+(s[r(213)].hideMuteButton?r(233):r(144))+" !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: "+(s[r(213)][r(238)]?"none":"block")+r(200),document[r(218)][r(151)](t)}}else if(i[r(205)]){const t=document[r(163)](r(229));t.id="adstage-video-default-controls",t[r(148)]=r(171),!document[r(208)](r(195))&&document[r(218)][r(151)](t)}this[r(245)]&&console[r(174)](r(181),i.controls?"enabled":"disabled (default)");const o=document[r(163)](r(175));o[r(177)]=r(221),o[r(229)][r(199)]=r(244),s?.[r(139)]&&(o.style[r(239)]=r(233));const a=()=>{const t=r,e=t(166),n=t(249);o[t(182)]=i[t(178)]?e:n,o[t(216)]=i[t(178)]?t(243):t(188)};if(a(),o[r(201)](r(202),t=>{const e=r;t[e(234)](),i[e(178)]=!i.muted,a(),this[e(245)]&&console[e(174)](e(149)+(i[e(178)]?e(178):e(237)))}),o[r(201)](r(230),()=>{const t=r;o[t(229)].background=t(191),o[t(229)][t(235)]=t(192)}),o.addEventListener(r(220),()=>{const t=r;o[t(229)][t(209)]=t(159),o[t(229)][t(235)]=t(231)}),e.videoUrl){i[r(164)]=e[r(154)];const t=()=>{const t=r;i[t(198)]&&i[t(178)]&&i.paused&&i[t(150)]()[t(160)](e=>{const n=t;this[n(245)]&&(console[n(212)]("🎬 Auto-play was prevented:",e),console[n(212)]("🎬 Trying muted autoplay fallback...")),i[n(178)]=!0,i[n(150)]().catch(t=>{const e=n;this[e(245)]&&console.error(e(170),t)})})};i.addEventListener(r(225),()=>{const e=r;this[e(245)]&&console[e(174)](e(137)),t()}),i[r(201)](r(211),()=>{const e=r;this[e(245)]&&console[e(174)]("🎬 Video can play, attempting autoplay..."),t()}),i[r(201)](r(214),()=>{const e=r;this[e(245)]&&console[e(174)](e(197)),t()}),setTimeout(()=>{const e=r;this[e(245)]&&console[e(174)](e(138)),t()},100)}else if(e[r(155)]){const n=document.createElement(r(162));return n.src=e.imageUrl,n[r(229)].width="100%",n[r(229)][r(247)]=r(157),n[r(229)][r(152)]=r(167),n.alt=e.title||r(241),void t[r(151)](n)}it[r(228)](i,e,n,()=>this[r(158)](),this[r(245)],r(246)),i[r(201)](r(173),i=>{const s=r;if(console.error(s(187),i),e[s(155)]){const r=document[s(163)](s(162));r[s(164)]=e[s(155)],r.style[s(193)]=s(157),r[s(229)].height="100%",r[s(229)].objectFit="contain",r[s(206)]=e[s(216)]||s(241),it.addClickEventForRenderer(r,e,n,()=>this[s(158)](),this[s(245)],s(156)),t[s(182)]="",t[s(151)](r)}}),t.appendChild(i),t[r(151)](o),this.debug&&console[r(174)](r(227)+e._id+r(189)+i[r(198)]+r(252)+i[r(178)]+", loop: "+i[r(172)]+")")}}const Bt=Ot;function Ot(t,e){const n=Nt();return(Ot=function(t,e){return n[t-=219]})(t,e)}!function(){const t=Ot,e=Nt();for(;;)try{if(905460===-parseInt(t(244))/1+-parseInt(t(228))/2+-parseInt(t(237))/3+-parseInt(t(225))/4*(parseInt(t(261))/5)+-parseInt(t(232))/6+-parseInt(t(235))/7*(-parseInt(t(246))/8)+-parseInt(t(239))/9*(-parseInt(t(260))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Vt extends gt{constructor(t=!1,e){super(o[Ot(224)],t,e)}[Bt(257)](){return Bt(238)}async[Bt(242)](t,e){const n=Bt,r=document.getElementById(t[n(222)]);if(!r)return;const i=document[n(251)]("div");if(i[n(233)]=n(230),i[n(229)].cssText=n(226),e[n(258)]){const t=document.createElement("h3");t.textContent=e[n(258)],t[n(229)][n(245)]="\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ",i.appendChild(t)}if(e[n(236)]){const t=document[n(251)]("p");t[n(236)]=e.textContent,t[n(229)][n(245)]=n(254),i[n(255)](t)}if(e[n(252)]){const t=document[n(251)]("div");t[n(229)][n(245)]="\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ";const r=document[n(251)](n(250));r[n(243)]=e.imageUrl,r[n(249)]=e[n(258)]||n(248),r.style[n(245)]="\n width: 100%;\n height: 100%;\n object-fit: cover;\n ",t.appendChild(r),i[n(255)](t)}if(e[n(234)]){const t=document.createElement("button");t[n(236)]="Learn More",t[n(229)][n(245)]=n(219),t[n(241)]("click",()=>{const t=n;this[t(220)]&&console[t(247)]("Native click tracked for ad: "+e[t(223)]),window[t(253)](e[t(234)],"_blank")}),t.addEventListener("mouseenter",()=>{t.style.backgroundColor="#2563eb"}),t.addEventListener(n(240),()=>{const e=n;t.style[e(221)]="#3b82f6"}),i[n(255)](t)}r[n(256)]="",r.appendChild(i),this[n(231)]&&console[n(247)]("🏠 Single native ad rendered: "+e[n(223)])}async renderMultipleAds(t,e){const n=Bt;e.length>0?(await this[n(242)](t,e[0]),this[n(231)]&&console[n(247)](n(227)+e.length+"): "+t.id)):this.debug&&console[n(259)]("⚠️ No native advertisements available for slot: "+t.id)}}function Nt(){const t=["4938910QGDRkZ","65bGfnEB","\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 ","advertisementEventTracker","backgroundColor","containerId","_id","NATIVE","153116TVUjXu","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","🏠 Native ad rendered (first of ","708890pPfOYs","style","adstage-ad adstage-native-ad","debug","2758548AyGdgR","className","linkUrl","7098keIFKx","textContent","2472654vJPzVj","200px","36wfeful","mouseleave","addEventListener","renderAdElement","src","699430VvkibE","cssText","13928JsNrZJ","log","Native Advertisement","alt","img","createElement","imageUrl","open","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","appendChild","innerHTML","getDefaultHeight","title","warn"];return(Nt=function(){return t})()}function Ft(t,e){const n=Kt();return(Ft=function(t,e){return n[t-=353]})(t,e)}const Ht=Ft;!function(){const t=Ft,e=Kt();for(;;)try{if(740661===parseInt(t(411))/1*(-parseInt(t(381))/2)+-parseInt(t(397))/3+parseInt(t(409))/4+-parseInt(t(355))/5+-parseInt(t(387))/6+-parseInt(t(408))/7+parseInt(t(359))/8*(parseInt(t(391))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class jt extends gt{constructor(t=!1,e){super(o[Ft(372)],t,e)}[Ht(376)](){return"400px"}async renderAdElement(t,e){const n=Ht;if(!document[n(386)](t[n(393)]))return;const r=document[n(395)]("div");r[n(416)]="adstage-interstitial-overlay",r[n(356)][n(388)]=n(385);const i=document[n(395)](n(405));i[n(416)]=n(379),i[n(356)].cssText=n(413);const s=document[n(395)](n(375));if(s[n(369)]="×",s[n(356)].cssText=n(366),s[n(404)]("click",()=>{this[n(415)](r)}),s.addEventListener("mouseenter",()=>{const t=n;s.style[t(392)]=t(418),s[t(356)][t(363)]=t(364)}),s[n(404)]("mouseleave",()=>{const t=n;s[t(356)][t(392)]="#f3f4f6",s.style[t(363)]="#6b7280"}),e[n(417)]){const t=document[n(395)](n(367));t[n(361)]=e[n(417)],t[n(414)]=e[n(400)]||"Interstitial Advertisement",t[n(356)][n(388)]=n(384),i[n(357)](t)}if(e.title){const t=document[n(395)]("h2");t[n(412)]=e.title,t[n(356)].cssText=n(406),i.appendChild(t)}if(e.textContent){const t=document[n(395)]("p");t[n(412)]=e[n(412)],t[n(356)][n(388)]="\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ",i.appendChild(t)}if(e.linkUrl){const t=document[n(395)](n(375));t[n(412)]=n(396),t.style[n(388)]=n(373),t[n(404)](n(382),()=>{const t=n;this[t(368)]&&console[t(402)]("Interstitial click tracked for ad: "+e[t(362)]),window[t(390)](e[t(419)],t(394)),this[t(415)](r)}),t[n(404)]("mouseenter",()=>{const e=n;t[e(356)][e(392)]=e(374)}),t[n(404)]("mouseleave",()=>{const e=n;t.style.backgroundColor=e(354)}),i[n(357)](t)}const o=t=>{const e=n;t[e(401)]===e(420)&&(this.closeInterstitial(r),document.removeEventListener(e(360),o))};if(document[n(404)]("keydown",o),r.addEventListener("click",t=>{t.target===r&&this.closeInterstitial(r)}),!document.getElementById("adstage-interstitial-styles")){const t=document[n(395)](n(356));t.id=n(389),t[n(412)]=n(371),document[n(383)].appendChild(t)}i[n(357)](s),r[n(357)](i),document[n(399)][n(357)](r),this[n(365)]&&console[n(402)](n(407)+e[n(362)])}async[Ht(380)](t,e){const n=Ht;e.length>0?(await this[n(377)](t,e[0]),this[n(365)]&&console[n(402)](n(410)+e.length+"): "+t.id)):this.debug&&console[n(378)](n(398)+t.id)}[Ht(415)](t){const e=Ht;t[e(356)][e(353)]=e(403),setTimeout(()=>{const n=e;t[n(358)]&&t[n(358)].removeChild(t)},300),this.debug&&console.log(e(370))}}function Kt(){const t=["advertisementEventTracker","innerHTML","🖼️ Interstitial ad closed","\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 ","INTERSTITIAL","\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 ","#2563eb","button","getDefaultHeight","renderAdElement","warn","adstage-interstitial-content","renderMultipleAds","14QOJpne","click","head","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ","getElementById","2841258aWzKnp","cssText","adstage-interstitial-styles","open","6073263roAtqq","backgroundColor","containerId","_blank","createElement","Get Started","1694796Ccqnex","⚠️ No interstitial advertisements available for slot: ","body","title","key","log","fadeOut 0.3s ease-out forwards","addEventListener","div","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","🖼️ Interstitial ad rendered: ","3253509enaGOs","4332464TFuBHm","🖼️ Interstitial ad rendered (first of ","17373gCYxyd","textContent","\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 ","alt","closeInterstitial","className","imageUrl","#e5e7eb","linkUrl","Escape","animation","#3b82f6","3710015xXbYkQ","style","appendChild","parentNode","24tKrInt","keydown","src","_id","color","#374151","debug","\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 ","img"];return(Kt=function(){return t})()}const Wt=qt;function qt(t,e){const n=Gt();return(qt=function(t,e){return n[t-=229]})(t,e)}function Gt(){const t=["img"," renderers","206622dRGzkD","src","advertisement","No advertisement to render","getRenderer","406903ZLzvHi","100%","🏭 AdRenderer factory initialized with ","getDefaultHeight","style","toLowerCase","TEXT","warn","renderOptimizedBannerImage","8ZTwsHo","imageUrl","setAttribute","advertisementEventTracker","adType","8px","createElement","685572ODVyRU","height","renderAdSlider","naturalHeight","initializeRenderers","videoUrl","_id","div","4182453BAYQAX","border","321810mfHsrR","appendChild","No renderer found for ad type: ","onload","9Thdccy","block","renderOptimizedBannerImage is only supported for BANNER ads","cover","#f9f9f9","291550LRqulq","calculateAdSize","VIDEO","getDefaultHeightForAdType","calculateOptimalContainerSize","renderAd","NATIVE","config","BANNER","adstage-ad adstage-","renderMultipleAds","INTERSTITIAL","data-adstage-ad-id","28MxkAtO","naturalWidth","objectFit","renderFallback","textContent","createPlaceholder","renderers","debug","[AdRenderer] ","379PFGRPo","backgroundColor","padding","createAdElement","log","5VUitfR","set","renderAdElement","optimizeContainerForBannerAds","width","loadImageDimensions"];return(Gt=function(){return t})()}!function(){const t=qt,e=Gt();for(;;)try{if(111613===parseInt(t(249))/1*(parseInt(t(240))/2)+-parseInt(t(262))/3+-parseInt(t(283))/4+parseInt(t(254))/5*(parseInt(t(293))/6)+parseInt(t(267))/7*(-parseInt(t(276))/8)+parseInt(t(297))/9*(-parseInt(t(302))/10)+parseInt(t(291))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Yt{constructor(t=!1,e){const n=qt;this.renderers=new Map,this[n(247)]=t,this[n(279)]=e||null,this[n(287)]()}[Wt(287)](){const t=Wt;this.renderers.set(o.BANNER,new yt(this[t(247)],this[t(279)])),this.renderers[t(255)](o[t(273)],new Lt(this.debug,this[t(279)])),this[t(246)][t(255)](o[t(229)],new Mt(this[t(247)],this[t(279)])),this[t(246)].set(o[t(233)],new Vt(this[t(247)],this[t(279)])),this[t(246)].set(o[t(238)],new jt(this[t(247)],this[t(279)])),this.debug&&console[t(253)](t(269)+this[t(246)].size+t(261))}[Wt(252)](t,e){const n=Wt,r=this[n(266)](t[n(280)]),i=document.createElement(n(290));i.className=n(236)+String(t.adType)[n(272)](),i[n(278)](n(239),e[n(289)]),i[n(278)]("data-adstage-slot-id",t.id);const{width:s,height:a}=r[n(303)](i,t[n(234)]||{},e);switch(i[n(271)][n(258)]=s,i[n(271)][n(284)]=a,i.style.display=n(298),t[n(280)]){case o[n(235)]:if(e[n(277)]){const t=document[n(282)](n(260));t[n(263)]=e.imageUrl,t.style.width=n(268),t[n(271)][n(284)]=n(268),t[n(271)][n(242)]=n(300),i[n(294)](t)}break;case o[n(229)]:if(e[n(288)]){const t=document[n(282)]("video");t.src=e.videoUrl,t.style.width=n(268),t.style.height=n(268),i.appendChild(t)}break;case o[n(273)]:if(e[n(244)]){const t=document[n(282)](n(290));t[n(244)]=e[n(244)]||"",t.style[n(251)]=n(281),i.appendChild(t)}break;default:i[n(271)][n(292)]="1px dashed #ccc",i[n(271)][n(250)]=n(301),i[n(244)]=t[n(280)]+" Ad"}return i}[Wt(266)](t){const e=Wt,n=this[e(246)].get(t);if(!n)throw new Error(e(295)+t);return n}[Wt(245)](t,e,n,r,i){const s=Wt;this[s(266)](n)[s(245)](t,e,r,i)}async[Wt(257)](t,e){const n=Wt;if(t[n(280)]!==o[n(235)])return void(this.debug&&console[n(274)]("⚠️ Container optimization is only supported for BANNER ads, got: "+t[n(280)]));const r=this[n(266)](o.BANNER);await r.optimizeContainerForBannerAds(t,e)}async[Wt(285)](t,e){const n=Wt,r=this[n(266)](t.adType);await r[n(237)](t,e)}async[Wt(232)](t){const e=Wt;if(!t[e(264)])throw new Error(e(265));const n=this[e(266)](t[e(280)]);await n[e(256)](t,t.advertisement),t.isLoaded=!0}async renderAdElement(t,e){const n=this[Wt(266)](t.adType);await n.renderAdElement(t,e)}[Wt(243)](t){const e=Wt;this[e(266)](t.adType)[e(243)](t)}[Wt(230)](t){const e=Wt;return this[e(266)](t)[e(270)]()}[Wt(303)](t,e,n,r){return this.getRenderer(e).calculateAdSize(t,n,r)}[Wt(259)](t){return new Promise((e,n)=>{const r=qt,i=new Image;i[r(296)]=()=>{const t=r;e({width:i[t(241)],height:i[t(286)]})},i.onerror=()=>{n(new Error("Failed to load image: "+t))},i[r(263)]=t})}async[Wt(275)](t,e,n){const r=Wt;if(n[r(280)]!==o[r(235)])throw new Error(r(299));const i=this.getRenderer(o.BANNER);return await i[r(275)](t,e,n)}async[Wt(231)](t,e,n){const r=Wt;if(n!==o[r(235)]){const t=this[r(266)](n);return{width:r(268),height:t[r(270)](),aspectRatio:16/9}}const i=this[r(266)](o[r(235)]);return await i[r(231)](t,e)}log(t,...e){const n=Wt;this[n(247)]&&console[n(253)](n(248)+t,...e)}}const Zt=Xt;function Jt(){const t=["config","adstage-","createAdWithRetry","getSlotById","setupAutoCleanup","❌ Failed to find element for viewability tracking: ","deviceType","advertisements","API key not configured","body","viewabilityTracker","refreshAdSlot","optimizeContainerForBannerAds","playsinline","hideControls","🔄 Retrying viewability tracking for slot: ","delete","values","data-adstage-slot-id","set","광고 생성 중 오류 발생:","Auto-cleanup failed for slot ","TEXT","json","random","handleViewableEvent","disconnect","BANNER","1099133tOuhaH","default","text","renderAdElement","📊 Fetched ","autoplay","adRenderer","getBaseUrl","autoDestroy","fetchAdData","length","mutationObserver","🔍 Auto-cleanup MutationObserver enabled","getConfig","🎯 Ads module initialized (sync mode) with auto-cleanup","customControls","🎠 Slider will handle VIEWABLE events for ","observe","adType"," ads)","🗑️ Ad slot destroyed: ","NATIVE","6HwMrcm","querySelectorAll","100%","append","native","create","createAdInternal"," ads automatically","apiKey","trackAdvertisementEvent","getElementById","debug","toString","📊 Advertisement event tracking enabled for slot: ","status","1719135mlCdPG","warn","destroy","createAd",", filters:","language","Ads module not initialized. Call AdStage.init() first.","renderAd","auto","544254VAeabB","advertisementEventTracker"," (element found)","renderAdSlider","onClick","403284YxXpOv","Ad slot not found: ","slots",". Retrying in "," ads for type: ","loadAdContentInBackground","❌ Failed to track viewable impression:","get","containerId","VIEWABLE","clear","[data-adstage-slot-id]","video","autoSlide","✅ Simple viewable impression tracked for ad ","Container not found after ","6377900LurhNW","🗑️ Ads module destroyed","getAttribute","🚫 Advertisement not found with ID: ","country","ms... (attempt ","list","🧹 Auto-cleanup: slot ","now","2828320XPlUWd","adId","maxLines","style","string","undefined","setAttribute","width","controls","✅ Ad loaded for slot: ","handleRemovedElement","auto-","height","_config","_isReady","error","GET","30sjmZOQ","39SJVifP","4094RHChXc"," attempts: ","renderFallback","refresh","nodeType","ensureReady","removedNodes","log","startSimpleViewabilityTracking","forEach","slideInterval","substr","VIDEO","Failed to fetch ad data: ","Container not found: ","📊 Fetched specific ad with ID: ","advertisement","createPlaceholder"];return(Jt=function(){return t})()}function Xt(t,e){const n=Jt();return(Xt=function(t,e){return n[t-=315]})(t,e)}!function(){const t=Xt,e=Jt();for(;;)try{if(326563===parseInt(t(384))/1*(-parseInt(t(385))/2)+-parseInt(t(453))/3*(parseInt(t(341))/4)+parseInt(t(383))/5*(parseInt(t(336))/6)+parseInt(t(431))/7+parseInt(t(366))/8+parseInt(t(327))/9+-parseInt(t(357))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Qt{constructor(){const t=Xt;this[t(380)]=!1,this[t(379)]=null,this[t(343)]=new Map,this[t(337)]=null,this[t(437)]=null,this.mutationObserver=null}init(t){const e=Xt;this[e(379)]=t,this[e(337)]=new V(J[e(438)](),t[e(320)],t.debug||!1,this.slots),this[e(437)]=new Yt(t[e(323)]||!1,this.advertisementEventTracker),this[e(407)](),this[e(380)]=!0,t[e(323)]&&console.log(e(445))}isReady(){return this[Xt(380)]}[Zt(444)](){return this[Zt(379)]}banner(t,e){const n=Zt;this[n(390)]();const r={width:e?.width||n(455),height:e?.[n(378)]||n(335),autoSlide:e?.autoSlide||!1,slideInterval:e?.[n(395)]||5e3,onClick:e?.onClick,adId:e?.[n(367)],language:e?.language,deviceType:e?.[n(409)],country:e?.[n(361)]};return this.createAd(t,o.BANNER,r)}[Zt(433)](t,e){const n=Zt;this[n(390)]();const r={maxLines:e?.[n(368)]||3,style:e?.[n(369)]||n(432),onClick:e?.onClick,adId:e?.[n(367)],language:e?.language,deviceType:e?.[n(409)],country:e?.[n(361)]};return this.createAd(t,o[n(425)],r)}[Zt(353)](t,e){const n=Zt;this[n(390)]();const r={width:e?.[n(373)]||640,height:e?.height||360,autoplay:void 0===e?.[n(436)]||e[n(436)],muted:void 0===e?.muted||e.muted,loop:void 0===e?.loop||e.loop,playsinline:!1!==e?.[n(416)],controls:void 0!==e?.[n(374)]&&e.controls,hideControls:e?.[n(417)]||!1,customControls:e?.[n(446)],autoSlide:!1,maxAds:1,onClick:e?.[n(340)],...e?.[n(367)]&&{adId:e[n(367)]}};return this[n(330)](t,o[n(397)],r)}[Zt(316)](t,e){const n=Zt;return this[n(390)](),this[n(330)](t,o[n(452)],e||{})}interstitial(t,e){const n=Zt;return this[n(390)](),this[n(330)](t,o.INTERSTITIAL,e||{})}[Zt(388)](t){const e=Zt;this[e(390)]();const n=this[e(343)].get(t);if(!n)throw new Error(e(342)+t);this[e(414)](n),this._config?.debug&&console[e(392)]("🔄 Ad slot refreshed: "+t)}[Zt(329)](t){const e=Zt;this[e(390)]();const n=this[e(343)][e(348)](t);if(!n)return void(this[e(379)]?.[e(323)]&&console[e(392)]("🔍 Ad slot already cleaned up: "+t));n[e(413)]&&n[e(413)].destroy();const r=document.getElementById(n[e(349)]);r&&(r.innerHTML=""),this[e(343)][e(419)](t),this[e(379)]?.[e(323)]&&console[e(392)](e(451)+t)}getAllSlots(){const t=Zt;return this.ensureReady(),Array.from(this[t(343)][t(420)]())}[Zt(406)](t){const e=Zt;return this[e(390)](),this.slots[e(348)](t)||null}[Zt(330)](t,e,n){const r=Zt;if(!this[r(379)]?.[r(320)])throw new Error(r(411));const i=r(404)+e+"-"+Date[r(365)]()+"-"+Math[r(427)]().toString(36)[r(396)](2,9);return this[r(405)](t,e,n,i,0),i}async createAdWithRetry(t,e,n,r,i){const s=Zt,o=[0,50,100,200,500];let a,c=null;if(typeof t===s(370)){if(a=t,c=document[s(322)](t),!c)return i<4?(this._config?.[s(323)]&&console[s(328)](s(399)+t+s(344)+o[i+1]+s(362)+(i+1)+"/5)"),void setTimeout(()=>{this[s(405)](t,e,n,r,i+1)},o[i+1])):void console[s(381)](s(356)+5+s(386)+t)}else c=t,a=c.id||s(377)+r,!c.id&&(c.id=a);try{this[s(318)](a,e,n,r,c)}catch(t){console[s(381)](s(423),t)}}createAdInternal(t,e,n,r,i){const s=Zt;i[s(372)](s(421),r),this.adRenderer?.[s(402)](i,r,e,n,this[s(379)]);const a={id:r,containerId:t,adType:e,width:n.width||s(455),height:n[s(378)]||(e===o[s(425)]?s(335):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this.fetchAdData(e,n).then(t=>t[0]||null),render:t=>this[s(437)]?.[s(434)](a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this[s(329)](r)};this[s(343)][s(422)](r,a),this[s(346)](a),this[s(337)]&&this[s(379)]?.[s(323)]&&console[s(392)](s(325)+r)}async[Zt(346)](t){const e=Zt;try{const n=await this.fetchAdData(t[e(449)],t[e(403)]);if(!n||0===n[e(441)])return void this[e(437)]?.[e(387)](t);t[e(449)]===o[e(430)]&&n.length>0&&await(this[e(437)]?.[e(415)](t,n)),n.length>1||t[e(403)]?.[e(354)]?(await(this[e(437)]?.[e(339)](t,n)),this[e(379)]?.[e(323)]&&console.log(e(447)+n.length+e(319))):(t.advertisement=n[0],await(this[e(437)]?.[e(434)](t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t.isLoaded=!0,this[e(379)]?.debug&&console[e(392)](e(375)+t.id+" ("+n[e(441)]+e(450))}catch(n){console.error("❌ Failed to load ad for slot: "+t.id,n),this[e(437)]?.renderFallback(t)}}[Zt(393)](t,e){const n=(r=0)=>{const i=Xt,s=document[i(322)](t.id);if(!s)return void(r<5?(setTimeout(()=>n(r+1),300),this._config?.[i(323)]&&console[i(392)](i(418)+t.id+" (attempt "+(r+1)+")")):console[i(328)](i(408)+t.id));const o=new j(s,async()=>{const n=i;await this[n(428)](e,t)});t[i(413)]=o,this._config?.[i(323)]&&console.log("🎯 Simple viewability tracking started for slot: "+t.id+i(338))};n()}async[Zt(428)](t,e){const n=Zt;try{this.advertisementEventTracker&&(await this.advertisementEventTracker[n(321)](t._id,e.id,p[n(350)]),this[n(379)]?.[n(323)]&&console[n(392)](n(355)+t._id))}catch(t){console[n(381)](n(347),t)}}async[Zt(440)](t,e){const n=Zt;if(!this[n(379)]?.[n(320)])throw new Error(n(411));if(e[n(367)]){const t=""+J[n(410)].detail(e[n(367)]),r=await fetch(t,{method:n(382),headers:U[n(317)](this._config[n(320)])});if(!r.ok){if(404===r[n(326)])return console.warn(n(360)+e[n(367)]),[];throw new Error(n(398)+r[n(326)])}const i=await r[n(426)]();return this[n(379)]?.debug&&console.log(n(400)+e[n(367)],i),[i]}const r=new URLSearchParams;r[n(315)](n(449),t),e[n(332)]&&r[n(315)](n(332),e[n(332)]),e.deviceType&&r[n(315)](n(409),e[n(409)]),e[n(361)]&&r[n(315)]("country",e[n(361)]);const i=J[n(410)][n(363)]()+"?"+r[n(324)](),s=await fetch(i,{method:"GET",headers:U.create(this[n(379)][n(320)])});if(!s.ok)throw new Error(n(398)+s[n(326)]);const o=(await s[n(426)]())[n(410)]||[];return this._config?.[n(323)]&&console[n(392)](n(435)+o[n(441)]+n(345)+t+n(331),{language:e[n(332)],deviceType:e[n(409)],country:e[n(361)]}),o}async[Zt(414)](t){const e=Zt;try{const n=await this[e(440)](t.adType,t[e(403)]||{});n&&n[e(441)]>0&&(t[e(401)]=n[0],await(this[e(437)]?.[e(334)](t)),this[e(337)]&&console.log("New advertisement viewable tracked for slot:",t.id))}catch(e){console.error("Failed to refresh ad slot: "+t.id,e)}}[Zt(390)](){const t=Zt;if(!this[t(380)])throw new Error(t(333))}[Zt(407)](){const t=Zt;"undefined"!=typeof window&&typeof document!==t(371)&&(this[t(442)]&&this[t(442)][t(429)](),this[t(442)]=new MutationObserver(e=>{const n=t;e[n(394)](t=>{const e=n;t[e(391)][e(394)](t=>{const n=e;t[n(389)]===Node.ELEMENT_NODE&&this[n(376)](t)})})}),this[t(442)][t(448)](document[t(412)],{childList:!0,subtree:!0}),this._config?.debug&&console[t(392)](t(443)))}[Zt(376)](t){const e=Zt,n=t[e(359)](e(421));if(n)return void this[e(439)](n);t[e(454)](e(352))[e(394)](t=>{const n=e,r=t[n(359)](n(421));r&&this[n(439)](r)})}autoDestroy(t){const e=Zt,n=this[e(343)][e(348)](t);if(n)try{n.viewabilityTracker&&n.viewabilityTracker[e(329)](),this[e(343)][e(419)](t),this[e(379)]?.debug&&console[e(392)](e(364)+t+" removed")}catch(n){this._config?.debug&&console[e(328)](e(424)+t+":",n)}}destroyModule(){const t=Zt,e=this[t(379)]?.[t(323)];this[t(442)]&&(this.mutationObserver[t(429)](),this[t(442)]=null),this[t(343)][t(351)](),this.advertisementEventTracker=null,this.adRenderer=null,this[t(380)]=!1,this[t(379)]=null,e&&console.log(t(358))}}var $t=ee;function te(){var t=["7486AeqHzJ","getApiEndpoint","735CxRCgZ","11JSluit","setBaseUrl","baseUrl","apiKey","log","✅ Config module initialized (sync mode)","1KhCYAM","_config","isModuleEnabled","14139vpxzYB","API key not available","424ywUqWU","create","events","Config module not initialized","ads","4GrCTcD","getEnabledModules","getOrganizationInfo","_organizationInfo","isDebugMode","modules","_isReady","config","updateConfig","development","4465920FleqEl","285423kvmDLn","618pLkuKh","457786VwLgDV","1938960JIPkUT","getApiHeaders","isReady"];return(te=function(){return t})()}function ee(t,e){var n=te();return(ee=function(t,e){return n[t-=432]})(t,e)}!function(){for(var t=ee,e=te();;)try{if(113346===parseInt(t(447))/1*(parseInt(t(438))/2)+parseInt(t(432))/3*(parseInt(t(457))/4)+parseInt(t(440))/5*(-parseInt(t(433))/6)+-parseInt(t(434))/7+parseInt(t(452))/8*(-parseInt(t(450))/9)+-parseInt(t(435))/10*(parseInt(t(441))/11)+parseInt(t(467))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=ee;this[t(463)]=!1,this[t(448)]=null,this[t(460)]=null}init(t){var e=ee;this._config={timeout:3e4,debug:!1,modules:[e(456),e(454),e(464)],...t},t[e(443)]&&J[e(442)](t[e(443)]),this[e(463)]=!0,t.debug&&console[e(445)](e(446),{modules:this[e(448)][e(462)],endpoint:J.getBaseUrl(),mode:e(466)})}[$t(437)](){return this[$t(463)]}getConfig(){return this._config}[$t(459)](){return this[$t(460)]}[$t(439)](){return J.getBaseUrl()}isDebugMode(){var t=$t;return this[t(448)]?.debug||!1}getEnabledModules(){var t=$t;return this[t(448)]?.[t(462)]||[]}[$t(449)](t){return this[$t(458)]().includes(t)}[$t(465)](t){var e=$t;if(!this._config)throw new Error(e(455));this[e(448)]={...this._config,...t},this[e(461)]()&&console.log("🔄 Config updated",t)}[$t(436)](){var t=$t;if(!this[t(448)]?.[t(444)])throw new Error(t(451));return U[t(453)](this[t(448)][t(444)])}}const re=ie;function ie(t,e){const n=se();return(ie=function(t,e){return n[t-=323]})(t,e)}function se(){const t=["2872awyOyk","0x0","getAutoDetectedDeviceInfo","6926382kbyNSJ","userAgent","1276840kbPQIm","language","isBrowser","getViewportInfo","platform","getDetailedInfo","test","setDeviceInfo","getDeviceInfo","3aKidJE","getPlatform","onLine","isMobile","59229MVNblN","tablet","mobile","5692645iMcTeC","iOS","getUserDeviceInfo","mapPlatformForEvents","SSR","1248952tGeAUG","2943904lNFdHj","height","Desktop Web","7347347ZDQVhH","Android","desktop","Unknown","width","_userProvidedDeviceInfo"];return(se=function(){return t})()}!function(){const t=ie,e=se();for(;;)try{if(883758===-parseInt(t(341))/1+parseInt(t(342))/2*(parseInt(t(329))/3)+-parseInt(t(356))/4+parseInt(t(336))/5+parseInt(t(354))/6+parseInt(t(345))/7+-parseInt(t(351))/8*(parseInt(t(333))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static[re(328)](){const t=re;return{...oe.getAutoDetectedDeviceInfo(),...oe[t(350)]}}static[re(353)](){const t=re;if(!k[t(358)]())return{category:"other",platform:"SSR",model:t(340),osVersion:t(340)};const e=navigator.userAgent.toLowerCase();let n=t(347);/tablet|ipad/[t(326)](e)?n=t(334):R[t(332)]()&&(n=t(335));const r=R[t(330)]();return{category:n,platform:oe[t(339)](r),model:navigator[t(324)],osVersion:navigator[t(324)],deviceId:R.generateDeviceId()}}static[re(327)](t){const e=re;oe._userProvidedDeviceInfo={...oe[e(350)],...t}}static setDeviceProperty(t,e){oe[re(350)][t]=e}static clearDeviceInfo(){oe[re(350)]={}}static[re(338)](){return{...oe[re(350)]}}static[re(339)](t){const e=re;switch(t){case"ios":return e(337);case"android":return e(346);case"web":return"Mobile Web";case e(347):return e(344);default:return e(348)}}static[re(325)](){const t=re;if(!k[t(358)]())return{userAgent:t(340),language:"ko-KR",platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(352),viewportSize:t(352)};const e=k[t(323)]();return{userAgent:navigator[t(355)],language:navigator[t(357)]||"ko-KR",platform:navigator.platform,cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(331)],screenResolution:screen[t(349)]+"x"+screen[t(343)],viewportSize:e[t(349)]+"x"+e.height}}}oe[re(350)]={};const ae=ce;function ce(t,e){const n=le();return(ce=function(t,e){return n[t-=197]})(t,e)}!function(){const t=ce,e=le();for(;;)try{if(983522===-parseInt(t(210))/1+-parseInt(t(197))/2*(parseInt(t(215))/3)+parseInt(t(201))/4+-parseInt(t(216))/5*(parseInt(t(208))/6)+parseInt(t(213))/7*(parseInt(t(217))/8)+parseInt(t(198))/9+-parseInt(t(209))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class de{static[ae(204)](){const t=ae;return{...de[t(202)](),...de[t(211)]}}static[ae(202)](){const t=ae;if(!k[t(200)]())return{language:t(207),country:"KR"};const e=navigator[t(205)]||t(207);return{language:e,country:de[t(199)](e)}}static[ae(199)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t.split("-")[0]]||"KR"}static[ae(212)](t){const e=ae;de[e(211)]={...de[e(211)],...t}}static setUserProperty(t,e){de[ae(211)][t]=e}static clearUserProperties(){de[ae(211)]={}}static[ae(203)](){return{...de._userProperties}}static[ae(206)](){const t=ae;if(!k[t(200)]())return{timezone:t(214),estimatedCountry:"KR"};const e=Intl[t(218)]().resolvedOptions().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 le(){const t=["10715dGrIAT","32nMuaAx","DateTimeFormat","59002ZXcxvl","10128276FpnsUC","extractCountryFromLanguage","isBrowser","6520500zdPtBY","getBaseUserInfo","getCurrentUserProperties","getUserInfo","language","estimateLocation","ko-KR","348yglKRR","4135210YOlojF","1285722SkhDrU","_userProperties","setUserProperties","813022PoZrui","UTC","42vhTUcy"];return(le=function(){return t})()}function ue(t,e){const n=he();return(ue=function(t,e){return n[t-=385]})(t,e)}de._userProperties={};const pe=ue;function he(){const t=["warn","keyword","adGroupId","isClickEventSent","utm_medium","campaign","twclid","1352637jiFoAF","kakao","channel","utm_term","ttclid","google.ads","term","UTM_KEYS","93984KUvyUr","campaignId","ALL_KEYS","adstage_referrer","true","linkedin.ads","length","27993ayhImA","store","ad_group","STORAGE_KEY","meta.ads","nclid","getItem","hasClickId","msclkid","keys","k_rank","1YZKsDl","liclid","CAMPAIGN_KEYS","adstage_tracking_params","ad_creative","k_keyword_id","2277036ttLnMi","utm_campaign","setItem","undefined","k_keyword","7423404nUzVjB","clear","get","keywordId","campaign_id","captureFromUrl","creativeId","gclid","ad_group_id","adRank","adCreative","creative_id","search","k_campaign","Failed to parse adstage_referrer:","k_creative","CLICK_ID_KEYS","utm_source","60TOVjEq","shouldSendClickEvent","removeItem","twitter.ads","1969DJaIIR","1747323GYgWVw","1480BByTtd","5hmnwen","fbclid","3074896gRWqTa","utm_content","hasParams","adstage_click_event_sent"];return(he=function(){return t})()}!function(){const t=ue,e=he();for(;;)try{if(683416===parseInt(t(412))/1*(parseInt(t(418))/2)+parseInt(t(446))/3+parseInt(t(450))/4+parseInt(t(448))/5*(parseInt(t(423))/6)+parseInt(t(401))/7*(-parseInt(t(447))/8)+-parseInt(t(386))/9*(parseInt(t(441))/10)+-parseInt(t(445))/11*(parseInt(t(394))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{static[pe(428)](){const t=pe;if(typeof window===t(421))return null;const e=new URLSearchParams(window.location[t(435)]),n={};let r=!1;const i=e[t(425)](t(397));if(i)try{const e=decodeURIComponent(i),s=new URLSearchParams(e);for(const e of fe[t(396)]){const i=s[t(425)](e);i&&(n[e]=i,r=!0)}s[t(425)]("adstage")===t(398)&&(r=!0)}catch(e){console.warn(t(437),e)}for(const i of fe[t(396)]){if(n[i])continue;const s=e[t(425)](i);s&&(n[i]=s,r=!0)}return r?(n[t(388)]||(n[t(430)]?n[t(388)]=t(391):n.fbclid?n[t(388)]=t(405):n[t(390)]?n[t(388)]="tiktok.ads":n[t(406)]?n[t(388)]="naver.searchad":n[t(413)]?n.channel=t(399):n[t(409)]?n[t(388)]="microsoft.ads":n[t(385)]?n[t(388)]=t(444):n[t(440)]===t(387)&&n[t(458)]===t(455)?n[t(388)]="kakao.keyword":(n[t(436)]||n[t(422)])&&(n.channel="kakao.keyword")),fe.store(n),n):null}static[pe(402)](t){const e=pe;if(typeof window!==e(421))try{const n={...fe[e(425)](),...t},r=JSON.stringify(n);try{sessionStorage[e(420)](fe[e(404)],r)}catch(t){}try{localStorage.setItem(fe[e(404)],r)}catch(t){}}catch(t){console[e(454)]("Failed to store tracking params:",t)}}static[pe(425)](){const t=pe;if(typeof window===t(421))return null;try{const e=sessionStorage?.[t(407)](fe[t(404)]);if(e)return JSON.parse(e)}catch(t){}try{const e=localStorage?.[t(407)](fe.STORAGE_KEY);if(e)return JSON.parse(e)}catch(t){}return null}static[pe(424)](){const t=pe;if(typeof window!==t(421)){try{sessionStorage?.[t(443)](fe[t(404)])}catch(t){}try{localStorage?.[t(443)](fe[t(404)])}catch(t){}}}static[pe(452)](){const t=pe,e=fe.get();return null!==e&&Object[t(410)](e)[t(400)]>0}static[pe(408)](){const t=pe,e=fe[t(425)]();return!!e&&fe[t(439)].some(t=>e[t])}static[pe(442)](){const t=pe;if(typeof window===t(421))return!1;const e=fe[t(425)]();if(!e)return!1;const n=fe[t(408)](),r=!!e[t(388)];if(!n&&!r)return!1;const i=n?e[t(430)]||e[t(449)]||e[t(390)]||e[t(406)]||e[t(413)]||e[t(409)]||e[t(385)]:(e[t(388)]||"")+":"+(e[t(392)]||"");if(!i)return!1;return i!==sessionStorage[t(407)]("adstage_last_click_id")&&(sessionStorage[t(420)]("adstage_last_click_id",i),!0)}static markClickEventSent(){const t=pe;typeof window!==t(421)&&sessionStorage[t(420)](t(453),t(398))}static[pe(457)](){const t=pe;return typeof window!==t(421)&&sessionStorage[t(407)](t(453))===t(398)}static toAttributionObject(){const t=pe,e=fe[t(425)]();if(!e)return null;const n={};return e[t(430)]&&(n.gclid=e[t(430)]),e[t(449)]&&(n[t(449)]=e[t(449)]),e[t(390)]&&(n[t(390)]=e[t(390)]),e.nclid&&(n[t(406)]=e[t(406)]),e.channel&&(n[t(388)]=e[t(388)]),e[t(459)]&&(n[t(459)]=e[t(459)]),e.campaign_id&&(n.campaignId=e.campaign_id),e[t(403)]&&(n.adGroup=e[t(403)]),e[t(431)]&&(n[t(456)]=e[t(431)]),e.ad_creative&&(n[t(433)]=e.ad_creative),e[t(434)]&&(n[t(429)]=e.creative_id),e[t(392)]&&(n[t(392)]=e[t(392)]),e[t(436)]&&(n[t(395)]=n[t(395)]||e[t(436)]),e.k_adgroup&&(n.adGroupId=n[t(456)]||e.k_adgroup),e.k_keyword&&(n.keyword=e[t(422)]),e.k_keyword_id&&(n[t(426)]=e[t(417)]),e[t(438)]&&(n[t(429)]=n[t(429)]||e[t(438)]),e.k_rank&&(n[t(432)]=e[t(411)]),e.utm_source&&(n.utm_source=e.utm_source),e.utm_medium&&(n[t(458)]=e[t(458)]),e[t(419)]&&(n[t(419)]=e.utm_campaign),e[t(451)]&&(n[t(451)]=e.utm_content),e[t(389)]&&(n[t(389)]=e[t(389)]),Object[t(410)](n)[t(400)]>0?n:null}}fe.STORAGE_KEY=pe(415),fe[pe(439)]=[pe(430),pe(449),"ttclid",pe(406),pe(413),pe(409),"twclid"],fe[pe(414)]=[pe(388),pe(459),pe(427),pe(403),pe(431),pe(416),"creative_id","term","k_campaign","k_adgroup",pe(422),pe(417),pe(438),"k_rank"],fe.UTM_KEYS=[pe(440),pe(458),"utm_campaign","utm_content",pe(389)],fe[pe(396)]=[...fe[pe(439)],...fe[pe(414)],...fe[pe(393)]];const ge=Ie;function me(){const t=["events","sendEventToServer","json","4751180pYFrwu","isReady","getAttributionId","📊 Events module initialized","API key not configured for attribution registration.","length","getItem","Event tracking failed: ","📱 Device info set:","❌ Failed to track event:","getDeviceInfo","setDeviceProperty","setItem","getCurrentUserProperties","9412731VxgdeU","🔑 Request headers:","adstage_attribution_id","454548QczMDy","toAttributionObject","keys","text","error","setUserProperties","73918THRWMe","📦 Attribution request body:","getUserDeviceInfo","track","_config","log","create","📦 Request body:","3mZOAzR","Events module not initialized. Call AdStage.init() first.","❌ Failed to register attribution:","POST","📡 Request URL:","application/json","getUserInfo","stringify","clearDeviceInfo","init","_isReady","📊 Attribution included:","getConfig","3283032eJLJkt","❌ API Error Response:","setDeviceInfo","apiKey","Event data:","API key not configured for event tracking.","4ITpWBq","Attribution registration failed: ","warn","📡 Attribution request URL:","trackWithAttributionId","21DkOFBc","✅ Event tracked:","🔑 Attribution request headers:","sendAttributionToServer","registerAttribution","get","getUserProperties","statusText","attributionId","undefined","status","16091480ileBzZ","✅ Event tracked with attribution ID:","👤 User properties set:","debug","587280aozxVT"];return(me=function(){return t})()}function Ie(t,e){const n=me();return(Ie=function(t,e){return n[t-=306]})(t,e)}!function(){const t=Ie,e=me();for(;;)try{if(548033===-parseInt(t(332))/1*(parseInt(t(359))/2)+parseInt(t(340))/3*(-parseInt(t(326))/4)+parseInt(t(309))/5+-parseInt(t(379))/6*(parseInt(t(364))/7)+-parseInt(t(353))/8+-parseInt(t(323))/9+parseInt(t(375))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{constructor(){this[Ie(350)]=!1,this._config=null}[ge(349)](t){const e=ge;this[e(336)]=t,this[e(350)]=!0,t[e(378)]&&console[e(337)](e(312))}[ge(310)](){return this._isReady}[ge(352)](){return this[ge(336)]}[ge(331)](t){const e=ge;de.setUserProperties(t),this[e(336)]?.[e(378)]&&console.log(e(377),t)}[ge(370)](){return de[ge(322)]()}[ge(355)](t){const e=ge;oe[e(355)](t),this[e(336)]?.debug&&console[e(337)](e(317),t)}[ge(320)](t,e){const n=ge;oe.setDeviceProperty(t,e),this[n(336)]?.[n(378)]&&console[n(337)]("📱 Device property set:",t,e)}[ge(348)](){const t=ge;oe[t(348)](),this[t(336)]?.[t(378)]&&console[t(337)]("📱 User provided device info cleared")}getUserDeviceInfo(){return oe[ge(334)]()}[ge(319)](){return oe[ge(319)]()}[ge(346)](){return de.getUserInfo()}getCurrentUserProperties(){return de[ge(322)]()}async[ge(335)](t,e){const n=ge;if(this[n(350)])if(this[n(336)]?.[n(356)])try{const r=this[n(311)]();if(r){const i={eventName:t,sdkVersion:S(),device:oe[n(319)](),user:de[n(346)](),attributionId:r,params:e||{}};return await this.sendEventToServer(i),void(this[n(336)][n(378)]&&console[n(337)](n(376),t,r))}const i=fe[n(327)](),s={eventName:t,sdkVersion:S(),device:oe.getDeviceInfo(),user:de[n(346)](),...i&&{attribution:i},params:e||{}};await this.sendEventToServer(s),this._config[n(378)]&&(console[n(337)](n(365),t,e),i&&console[n(337)](n(351),i))}catch(r){console[n(330)](n(318),r),this._config.debug&&console.error(n(357),{eventName:t,properties:e})}else console[n(361)](n(358));else console[n(361)]("Events module not initialized. Call AdStage.init() first.")}async[ge(368)](t){const e=ge;if(!this[e(350)])return console.warn(e(341)),null;if(!this[e(336)]?.[e(356)])return console[e(361)](e(313)),null;try{const n=fe[e(369)]();if(!n||0===Object[e(328)](n)[e(314)])return this[e(336)][e(378)]&&console.log("⏭️ No tracking parameters found, skipping attribution registration"),null;const r=await this[e(367)]({deviceId:t,referrerParams:n});if(this[e(336)][e(378)]&&console[e(337)]("✅ Attribution registered:",r),r[e(372)]){try{localStorage[e(321)]("adstage_attribution_id",r.attributionId)}catch(t){}try{sessionStorage[e(321)](e(325),r.attributionId)}catch(t){}}return r}catch(t){return console[e(330)](e(342),t),null}}[ge(311)](){const t=ge;if(typeof window===t(373))return null;try{const e=sessionStorage[t(315)](t(325));if(e)return e}catch(t){}try{return localStorage[t(315)]("adstage_attribution_id")}catch(t){}return null}async[ge(363)](t,e){return this[ge(335)](t,e)}async[ge(307)](t){const e=ge,n={...U[e(338)](this[e(336)][e(356)]),"Content-Type":e(345)};this[e(336)]?.debug&&(console[e(337)](e(324),n),console[e(337)](e(344),J[e(306)][e(335)]()),console.log(e(339),t));const r=await fetch(J[e(306)][e(335)](),{method:e(343),headers:n,body:JSON[e(347)](t)});if(!r.ok){const t=await r[e(329)]();throw console[e(330)](e(354),t),new Error(e(316)+r[e(374)]+" "+r[e(371)])}}async[ge(367)](t){const e=ge,n={...U.create(this[e(336)][e(356)]),"Content-Type":e(345)};this[e(336)]?.debug&&(console[e(337)](e(366),n),console.log(e(362),J[e(306)][e(368)]()),console[e(337)](e(333),t));const r=await fetch(J[e(306)][e(368)](),{method:e(343),headers:n,body:JSON[e(347)](t)});if(!r.ok){const t=await r[e(329)]();throw console[e(330)](e(354),t),new Error(e(360)+r[e(374)]+" "+r[e(371)])}return r[e(308)]()}}const ye=be;function be(t,e){const n=we();return(be=function(t,e){return n[t-=416]})(t,e)}function we(){const t=["1341Mjrhni","catch","debug","getItem","now","_config","adstage_attribution_id","language","_isInitialized","toString","captureFromUrl","userAgent","size","apiKey","campaign","...","then","function","✅ Attribution registered:","channel","AdStage.config accessed before initialization","🌐 API endpoint configured:","click","🔍 Should send click event:","81660ooHZgU","init","2.0.0","hasClickId","getInstance","from","943999gSeBRy","❌ Error in click event auto-tracking:","31530bgqIhd","hash","attribution_id","length","registerAttribution","location","reset",")의 viewable 추적 초기화됨","⏭️ Skipping click event (duplicate or no click ID)","width","🚀 AdStage SDK initialized (sync mode)","1892632qfrxpn","modules","12XZcnJT","clearAdViewable","expiresAt","get","🎯 Sending click event after attribution registration","setItem","track","height","❌ Failed to auto-track click event:","warn","search","events","54DfNZDx","❌ Failed to register attribution:","toISOString","web-","charCodeAt","hardwareConcurrency","1027378kEFpdg","substring","replace","shouldSendClickEvent","getTimezoneOffset","random","🔗 Using attributionId from URL (attribution_id):","📊 AdStage Debug: 현재 viewable 추적 상태","API key is required for AdStage initialization","✅ Auto-tracked click event with tracking params:","web","generateDeviceId","undefined","baseUrl","viewableTracker","toAttributionObject","ads","markClickEventSent","3801260PENcne","instance","getConfig","join","error","tracking_params","470804oVtHAR","config","clear","development","log","abs","server-","adstage_device_id"];return(we=function(){return t})()}!function(){const t=be,e=we();for(;;)try{if(681826===parseInt(t(451))/1+-parseInt(t(475))/2+parseInt(t(445))/3*(-parseInt(t(507))/4)+parseInt(t(469))/5+-parseInt(t(433))/6*(parseInt(t(418))/7)+parseInt(t(431))/8+-parseInt(t(483))/9*(parseInt(t(420))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ke{constructor(){const t=be;this[t(491)]=!1,this[t(488)]=null,this.config=new ne,this[t(467)]=new Qt,this[t(444)]=new ve}static[ye(508)](t){const e=ye;!ke[e(470)]&&(ke.instance=new ke);const n=ke[e(470)];if(!t[e(496)])throw new Error(e(459));n[e(488)]={timeout:3e4,debug:!1,modules:[e(467),"events",e(476)],...t},n._config[e(464)]&&(J.setBaseUrl(n[e(488)].baseUrl),t[e(485)]&&console[e(479)](e(504),n[e(488)][e(464)]));const r=n._config[e(432)]||[e(467),e(444),"config"];for(const t of r){const r=n[t];r&&typeof r[e(508)]===e(500)&&r[e(508)](n[e(488)])}if(n._isInitialized=!0,"undefined"!=typeof window){const r=fe[e(493)]();r&&t[e(485)]&&console[e(479)]("📊 Tracking parameters captured:",r);const i=(()=>{const t=e;try{const e=new URLSearchParams(window[t(425)][t(443)]),n=new URLSearchParams((window[t(425)][t(421)]||"")[t(453)](/^#/,""));return e.get(t(422))||n.get(t(422))}catch{return null}})();if(i)try{localStorage[e(438)](e(489),i),t[e(485)]&&console[e(479)](e(457),i)}catch(t){}const s=fe[e(454)]();t.debug&&(console[e(479)](e(506),s),!s&&console[e(479)](e(428)));const o=fe[e(510)](),a=!(!r||!r[e(502)]);if(!i&&r&&(o||a)){const r=(async()=>{const r=e;try{const e=n[r(462)](),i=await n[r(444)][r(424)](e);return i&&t[r(485)]&&console[r(479)](r(501),{attributionId:i.attributionId,channel:i[r(502)],campaign:i[r(497)],expiresAt:i[r(435)]}),i}catch(t){return console.error(r(446),t),null}})();s&&r[e(499)](r=>{const i=e;try{const e=fe[i(436)](),s=fe[i(466)]();t[i(485)]&&console[i(479)](i(437),{attributionId:r?.attributionId,hasAttribution:!!r}),n.events[i(439)](i(505),{_autoGenerated:!0,_source:"tracking_params",_timestamp:(new Date)[i(447)](),_platform:i(461)})[i(499)](()=>{const n=i;fe.markClickEventSent(),t[n(485)]&&console[n(479)](n(460),{attribution:s,trackingParams:e})})[i(484)](t=>{const e=i;console[e(473)](e(441),t)})}catch(t){console[i(473)]("❌ Error in click event auto-tracking:",t)}})}else s&&setTimeout(()=>{const r=e;try{const e=fe.get(),i=fe[r(466)]();n[r(444)].track(r(505),{_autoGenerated:!0,_source:r(474),_timestamp:(new Date).toISOString(),_platform:"web"}).then(()=>{const n=r;fe[n(468)](),t[n(485)]&&console[n(479)](n(460),{attribution:i,trackingParams:e})}).catch(t=>{const e=r;console[e(473)](e(441),t)})}catch(t){console.error(r(419),t)}},100)}t[e(485)]&&console[e(479)](e(430),{version:e(509),modules:r,apiKey:t[e(496)][e(452)](0,8)+e(498),mode:e(478)})}static isReady(){const t=ye;return ke[t(470)]?.[t(491)]||!1}static[ye(471)](){const t=ye;return ke[t(470)]?._config||null}static getInstance(){const t=ye;if(!ke[t(470)])throw new Error("AdStage not initialized. Call AdStage.init() first.");return ke[t(470)]}static get ads(){const t=ye;try{return ke[t(416)]()[t(467)]}catch(e){throw console[t(442)]("AdStage.ads accessed before initialization"),e}}static get[ye(444)](){const t=ye;try{return ke[t(416)]()[t(444)]}catch(e){throw console[t(442)]("AdStage.events accessed before initialization"),e}}static get[ye(476)](){const t=ye;try{return ke[t(416)]()[t(476)]}catch(e){throw console[t(442)](t(503)),e}}static[ye(426)](){const t=ye;ke[t(470)]&&(ke[t(470)]._isInitialized=!1,ke[t(470)][t(488)]=null)}[ye(462)](){const t=ye;if(typeof window===t(463))return t(481)+Math[t(456)]()[t(492)](36)[t(452)](2,15);const e=localStorage[t(486)]("adstage_device_id");if(e)return e;const n=[navigator[t(494)],navigator[t(490)],screen[t(429)]+"x"+screen[t(440)],(new Date)[t(455)](),navigator[t(450)]||0][t(472)]("|");let r=0;for(let e=0;e<n[t(423)];e++){r=(r<<5)-r+n[t(449)](e),r&=r}const i=t(448)+Math[t(480)](r)[t(492)](36)+"-"+Date[t(487)]()[t(492)](36);return localStorage.setItem(t(482),i),i}}function Ee(t,e){var n=Ae();return(Ee=function(t,e){return n[t-=309]})(t,e)}function Ae(){var t=["setUserProperties","events","698994PrfFZb","257895fpSrWE","1370425txqrIg","warn","208TPvAPH","isReady","getUserProperties","2463798KTZEJJ","40130yKRiHV","AdStage not initialized. Call AdStage.init() first.","878941GAnbSl","475080vvfZCD","resolve","936RPFWPa"];return(Ae=function(){return t})()}function xe(t,e){var n=Ee;return ke[n(311)]()?ke[n(321)].track(t,e):(console[n(309)]("AdStage not initialized. Call AdStage.init() first."),Promise[n(318)]())}function Se(t){var e=Ee;ke[e(311)]()?ke[e(321)][e(320)](t):console.warn("AdStage not initialized. Call AdStage.init() first.")}function Te(){var t=Ee;if(ke[t(311)]())return ke[t(321)][t(312)]();console[t(309)](t(315))}ke[ye(485)]={clearAllViewable:()=>{ut[ye(477)](),console.log("✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨")},clearAdViewable:(t,e)=>{const n=ye;ut[n(434)](t,e),console[n(479)]("✅ AdStage Debug: 광고 "+t+"("+e+n(427))},getViewableStatus:()=>{const t=ye;console.log(t(458),{trackedCount:ut[t(465)][t(495)],trackedItems:Array[t(417)](ut[t(465)])})}},function(){for(var t=Ee,e=Ae();;)try{if(984958===parseInt(t(324))/1+-parseInt(t(313))/2+parseInt(t(323))/3+parseInt(t(317))/4+-parseInt(t(314))/5*(parseInt(t(319))/6)+-parseInt(t(316))/7+-parseInt(t(310))/8*(-parseInt(t(322))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ce=e(null);function De({children:e,config:i}){const[s,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),s&&ke.reset(),ke.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};r(()=>{i&&!s&&u(i)},[i,s]);const p={isInitialized:s,config:a,initialize:u,reset:()=>{try{ke.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Ce.Provider,{value:p,children:e})}function _e(){const t=i(Ce);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Re(){const{isInitialized:t}=_e();return t?ke:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Le(t,e){var n=ze();return(Le=function(t,e){return n[t-=140]})(t,e)}function ze(){var t=["4817145LXVUKZ","3981UQzdnt","3103216GrAKgG","38108ojiXPd","24729975roUEBg","416IIJGTn","7044834rdnWQb","1654959mRXszS","358dmdvGE"];return(ze=function(){return t})()}!function(){for(var t=Le,e=ze();;)try{if(609631===parseInt(t(146))/1*(parseInt(t(144))/2)+-parseInt(t(143))/3+parseInt(t(147))/4+parseInt(t(145))/5+parseInt(t(142))/6+parseInt(t(148))/7*(parseInt(t(141))/8)+-parseInt(t(140))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ue=Be;!function(){const t=Be,e=Oe();for(;;)try{if(527679===-parseInt(t(248))/1*(-parseInt(t(253))/2)+-parseInt(t(258))/3+-parseInt(t(252))/4*(parseInt(t(260))/5)+parseInt(t(251))/6+-parseInt(t(259))/7*(-parseInt(t(255))/8)+-parseInt(t(247))/9+parseInt(t(257))/10*(parseInt(t(256))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Pe=Ue(254),Me=[Ue(246),"events",Ue(249)];function Be(t,e){const n=Oe();return(Be=function(t,e){return n[t-=246]})(t,e)}function Oe(){const t=["321781lGBEIH","config","AdStage","4446150urCgUz","4OHrAZH","2Lcwiuj","2.0.0","8tGkgcZ","55euuEVk","276730pYXMkz","790194jikkQZ","3352027yYzHQE","964010KeMcXa","ads","6265377qmFsBg"];return(Oe=function(){return t})()}"undefined"!=typeof window&&(window[Ue(250)]=ke);export{ke as AdStage,De as AdStageProvider,Pe as SDK_VERSION,Me as SUPPORTED_MODULES,fe as TrackingParamsModule,Te as getUserProperties,Se as setUserProperties,xe as track,_e as useAdStageContext,Re as useAdStageInstance};