@adstage/web-sdk 3.0.13 → 3.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 s,useContext as i}from"react";var r,o,a,c,d,l,u,p,h,f,g,m;function I(){var t=["WEB","POPUP","MOBILE","NATIVE","769346SVjzhd","1608dgoRKo","BANNER","4076000GpgyOf","DESKTOP","CLICK","179884zFHGBM","1035860KJnCfh","1666932awDCFd","6775LMZZnl","INTERSTITIAL","TEXT","TABLET","1129515foFDLA","VIEWABLE"];return(I=function(){return t})()}function y(t,e){var n=I();return(y=function(t,e){return n[t-=414]})(t,e)}!function(){for(var t=y,e=I();;)try{if(230301===-parseInt(t(419))/1+-parseInt(t(432))/2+parseInt(t(426))/3+parseInt(t(421))/4+parseInt(t(422))/5*(parseInt(t(414))/6)+parseInt(t(420))/7+-parseInt(t(416))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(o=r||(r={}))[(a=y)(415)]="BANNER",o.POPUP=a(429),o[a(423)]=a(423),o[a(431)]=a(431),o.VIDEO="VIDEO",o[a(424)]=a(424),(d=c||(c={}))[(l=y)(428)]=l(428),d.MOBILE=l(430),(p=u||(u={}))[(h=y)(427)]="VIEWABLE",p[h(418)]=h(418),(g=f||(f={}))[(m=y)(417)]=m(417),g[m(430)]=m(430),g[m(425)]=m(425);const v=b;function b(t,e){const n=w();return(b=function(t,e){return n[t-=389]})(t,e)}function w(){const t=["waitForDOM","9ZmFLne","querySelectorAll","innerHTML","44210uEpDxP","map","safeRemoveChild","isBrowser","forEach","waitForElements","isDOMReady","⏳ 컨테이너 대기 시작: ","✅ 컨테이너 즉시 발견: ","classList","getComputedStyle","9563029uRneOP","innerHeight","safeAddEventListener","safeQuerySelector","add","referrer","isSSR","min","getDocumentProperty","canUseDOM","13430747ciUFOW","title","error","ms (","devicePixelRatio","10382FuzMua","textContent","번 시도)",'❌ 컨테이너를 찾을 수 없습니다: "',"getPageInfo"," (최대 ",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"innerWidth","waitForElement","setProperty","scrollTop","log","documentElement","safeApplyStyles","addEventListener","createElement","190jZUbtz","getWindowProperty","ms 경과)","safeGetComputedStyle","708nDHHzh","pageXOffset","remove","location","undefined","getViewportInfo","all","from","removeEventListener","removeChild","open","readyState","querySelector","safeSetInnerHTML","getElementById","ms)","2864010JuqTki","2976rbgRBH","getScrollInfo","pageYOffset","safeQuerySelectorAll","safeAddClass","safeCreateElement","496uqWDoJ","style","11112568WKCRHs"];return(w=function(){return t})()}!function(){const t=b,e=w();for(;;)try{if(904814===parseInt(t(407))/1*(parseInt(t(423))/2)+parseInt(t(444))/3*(parseInt(t(450))/4)+parseInt(t(457))/5*(parseInt(t(427))/6)+-parseInt(t(392))/7+-parseInt(t(452))/8+-parseInt(t(454))/9*(-parseInt(t(443))/10)+parseInt(t(402))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{static[v(460)](){const t=v;return typeof window!==t(431)&&typeof document!==t(431)}static[v(398)](){return!this[v(460)]()}static[v(401)](){const t=v;return this[t(460)]()&&void 0!==document[t(438)]}static safeGetElementById(t){return this[v(401)]()?document.getElementById(t):null}static[v(395)](t){const e=v;return this.canUseDOM()?document[e(439)](t):null}static[v(447)](t){const e=v;return this[e(401)]()?Array[e(434)](document[e(455)](t)):[]}static[v(449)](t){const e=v;return this.canUseDOM()?document[e(422)](t):null}static[v(394)](t,e,n,s){const i=v;this[i(401)]()&&t&&t[i(421)](e,n,s)}static safeRemoveEventListener(t,e,n,s){const i=v;this[i(401)]()&&t&&t[i(435)](e,n,s)}static[v(424)](t,e){return this.isBrowser()?window[t]??e:e}static[v(400)](t,e){return this[v(401)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const s=v;return this[s(460)]()?window[s(437)](t,e,n):null}static[v(426)](t){const e=v;return this[e(460)]()&&t?window[e(391)](t):null}static[v(463)](){const t=v;return!!this[t(401)]()&&"loading"!==document[t(438)]}static[v(453)](){return new Promise(t=>{const e=b;this[e(401)]()?this.isDOMReady()?t():this[e(394)](document,"DOMContentLoaded",()=>t()):t()})}static[v(420)](t,e){const n=v;this.canUseDOM()&&t&&Object.entries(e)[n(461)](([e,s])=>{const i=n;t[i(451)][i(416)](e,s)})}static[v(448)](t,e){const n=v;this[n(401)]()&&t&&t[n(390)][n(396)](e)}static safeRemoveClass(t,e){const n=v;this[n(401)]()&&t&&t[n(390)][n(429)](e)}static safeSetTextContent(t,e){const n=v;this[n(401)]()&&t&&(t[n(408)]=e)}static[v(440)](t,e){const n=v;this.canUseDOM()&&t&&(t[n(456)]=e)}static safeAppendChild(t,e){this.canUseDOM()&&t&&e&&t.appendChild(e)}static[v(459)](t,e){const n=v;this[n(401)]()&&t&&e&&t[n(436)](e)}static[v(411)](){const t=v;return{url:this.getWindowProperty(t(430),{href:""}).href,title:this[t(400)](t(403),""),referrer:this[t(400)](t(397),"")}}static[v(432)](){const t=v;return{width:this.getWindowProperty(t(414),0),height:this[t(424)](t(393),0),pixelRatio:this[t(424)](t(406),1)}}static[v(445)](){const t=v;return{scrollTop:this[t(401)]()?window[t(446)]||document[t(419)][t(417)]:0,scrollLeft:this.getWindowProperty(t(428),0)}}static async[v(415)](t,e={}){const n=v,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(401)]())throw new Error("DOM을 사용할 수 없는 환경입니다.");const o=document.getElementById(t);return o?(r&&console[n(418)](n(389)+t),o):(r&&console.log(n(464)+t+n(412)+s+n(442)),new Promise((e,n)=>{let o=0;const a=Math.ceil(s/i),c=()=>{const d=b;o++;const l=document[d(441)](t);if(l)return r&&console.log("✅ 컨테이너 발견: "+t+" ("+o+"번째 시도, "+o*i+d(425)),void e(l);if(o>=a){const e=d(410)+t+'"\n \n다음을 확인해보세요:\n1. HTML에 id="'+t+d(413)+s+d(405)+o+d(409);return r&&console[d(404)](e),void n(new Error(e))}r&&o%10==0&&console[d(418)]("⏳ 컨테이너 대기 중: "+t+" ("+o+"/"+a+")");const u=Math[d(399)](i*Math.pow(1.2,o),500);setTimeout(c,u)};setTimeout(c,i)}))}static async[v(462)](t,e={}){const n=v,s=t[n(458)](t=>this[n(415)](t,e));return Promise[n(433)](s)}}const E=x;function x(t,e){const n=S();return(x=function(t,e){return n[t-=311]})(t,e)}function S(){const t=["255852GxypAd","undefined","42VRYlsx","1867425pGDOHJ"," AdStageSDK/","3.0.14","2315JFCMCv","45jNgDWK","39612yrhTkK","2202170lbYUro","6ABCQHj","userAgent","1477880oaVSVh","24759823suxhQX","1900HniCGp","AdStageSDK/"];return(S=function(){return t})()}!function(){const t=x,e=S();for(;;)try{if(527599===-parseInt(t(325))/1+-parseInt(t(311))/2*(parseInt(t(317))/3)+-parseInt(t(323))/4*(parseInt(t(315))/5)+parseInt(t(319))/6*(-parseInt(t(312))/7)+parseInt(t(321))/8*(-parseInt(t(316))/9)+parseInt(t(318))/10+parseInt(t(322))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const A=E(314);function C(){return A}const T=D;function R(){const t=["SSR","isMobile","99zxfLyN","test","toString","ios","generateSessionId","getSlotPosition","ssr_session_","random","connection","unknown","userAgent"," .adstage-slider-wrapper","2903390zNhWRJ","round","width","setItem","safeGetElementById","platform","2911bwLHQq","getViewportInfo","2299094WZayor","5659836EcHMhC","resolvedOptions","5wLVgRZ","pixelRatio","language","1097409zyKYlI","android","5205696qPCHMk",'[data-adstage-slot-id="',"generateDeviceId","session_","scrollTop","safeQuerySelector","getItem","adstage_session_id","adstage_device_id","collectDeviceInfo","web","isBrowser","4600488PaLXRA","substr","height","getScrollInfo","ssr_device_","532AgaMAP","colorDepth","getPlatform","now"];return(R=function(){return t})()}function D(t,e){const n=R();return(D=function(t,e){return n[t-=248]})(t,e)}!function(){const t=D,e=R();for(;;)try{if(791979===-parseInt(t(254))/1*(parseInt(t(281))/2)+-parseInt(t(262))/3+-parseInt(t(264))/4*(parseInt(t(259))/5)+parseInt(t(257))/6+-parseInt(t(256))/7+-parseInt(t(276))/8+parseInt(t(287))/9*(parseInt(t(248))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class L{static[T(266)](){const t=T;if(!k.isBrowser())return t(280)+Date.now();const e=localStorage[t(270)](t(272));if(e)return e;const n="device_"+Math[t(294)]()[t(289)](36)[t(277)](2,9)+"_"+Date[t(284)]();return localStorage[t(251)](t(272),n),n}static[T(291)](){const t=T;if(!k[t(275)]())return t(293)+Date[t(284)]();const e=sessionStorage[t(270)](t(271));if(e)return e;const n=t(267)+Math[t(294)]().toString(36).substr(2,9)+"_"+Date.now();return sessionStorage[t(251)](t(271),n),n}static[T(286)](){const t=T;return!!k.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(288)](navigator[t(297)])}static[T(283)](){const t=T;if(!k[t(275)]())return t(274);const e=navigator[t(297)].toLowerCase();return/iphone|ipad|ipod/[t(288)](e)?t(290):/android/.test(e)?t(263):L[t(286)]()?t(274):"desktop"}static[T(273)](){const t=T,e=k[t(255)]();return{deviceId:L.generateDeviceId(),sessionId:L[t(291)](),osVersion:k[t(275)]()?navigator[t(253)]:t(285),deviceModel:k.isBrowser()?navigator[t(253)]:t(285),appVersion:"1.0.0",sdkVersion:C(),language:k[t(275)]()&&navigator[t(261)]||"ko",country:"KR",ipAddress:"",userAgent:k[t(275)]()?navigator[t(297)]:"SSR",timezone:k[t(275)]()?Intl.DateTimeFormat()[t(258)]().timeZone:"UTC",viewportWidth:e[t(250)],viewportHeight:e[t(278)],screenWidth:k[t(275)]()?screen[t(250)]:0,screenHeight:k[t(275)]()?screen[t(278)]:0,colorDepth:k[t(275)]()?screen[t(282)]:24,pixelRatio:e[t(260)],connectionType:k[t(275)]()&&navigator[t(295)]?.effectiveType||t(296),platform:L[t(283)]()}}static[T(292)](t){const e=T;let n=k[e(252)](t);if(!n){const s=k[e(269)]("#"+t+e(298));s&&(n=s)}if(!n&&(n=k.safeQuerySelector(e(265)+t+'"]')),!n)return e(296);const s=n.getBoundingClientRect(),i=k[e(279)]();return"x:"+Math[e(249)](s.left)+",y:"+Math.round(s.top+i[e(268)])}}const z=P;function P(t,e){const n=_();return(P=function(t,e){return n[t-=266]})(t,e)}!function(){const t=P,e=_();for(;;)try{if(117548===parseInt(t(270))/1+-parseInt(t(283))/2*(-parseInt(t(269))/3)+parseInt(t(276))/4*(-parseInt(t(267))/5)+parseInt(t(273))/6*(-parseInt(t(274))/7)+-parseInt(t(271))/8*(parseInt(t(266))/9)+parseInt(t(275))/10*(-parseInt(t(278))/11)+parseInt(t(280))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{static[z(272)](t,e){const n=z;if(!t)throw new Error("API key is required");const s={"x-api-key":t,"Content-Type":e?.[n(277)]||n(268)};return typeof navigator!==n(281)&&(s[n(279)]=e?.[n(282)]||navigator[n(282)]),s}static createForEvents(t,e){const n=z,s=B[n(272)](t);return e?.[n(282)]&&(s[n(279)]=e.userAgent),s}}function _(){const t=["User-Agent","5920668AlHxWh","undefined","userAgent","301570bnUkgk","225xPhPsd","24545FDzxYk","application/json","3VuyPlD","15533qtFZjR","48536PgOdBZ","create","6DmgFSH","1180193XtEyUR","390TBwDxB","176nzVanw","contentType","1661PQYhmG"];return(_=function(){return t})()}const U=O;function M(){const t=[" for ad ","text","getSlotPosition","warn","API request failed: "," (containerId: ",'[data-adstage-slot-id="',"6022088SkVTVb","...","parseNumericValue","🚀 Sending advertisement event: "," event for ad ","log",". Skipping event tracking to prevent incorrect adType.","debug","26618382RYERGQ","655071niIpoC","referrer","VIEWABLE","number","baseUrl","apiKey"," in slot ","20gTglex","🌐 Full API call details:","1634822xkdGqY","length","18xVclsP","containerId","slots","POST","get","substring","now","replace","width","⚠️ DOM element not found for slotId: ","693552nbvhhQ","trackAdvertisementEvent","status","querySelector","61434xmGMIN","adType","createForEvents","statusText","getPageInfo","📡 API Response Status: ","2416572iibkqF","❌ Failed to track advertisement event:","getElementById","NOT_SET"];return(M=function(){return t})()}function O(t,e){const n=M();return(O=function(t,e){return n[t-=122]})(t,e)}!function(){const t=O,e=M();for(;;)try{if(600609===parseInt(t(133))/1*(-parseInt(t(147))/2)+-parseInt(t(122))/3+-parseInt(t(153))/4+parseInt(t(129))/5*(-parseInt(t(143))/6)+parseInt(t(131))/7+-parseInt(t(164))/8+parseInt(t(172))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{constructor(t,e,n,s){const i=O;this[i(126)]=t,this.apiKey=e,this[i(171)]=n,this[i(135)]=s}async[U(144)](t,e,n){const s=U;try{this[s(171)]&&console[s(169)]("🚀 AdvertisementEventTracker: Processing "+n+s(168)+t+s(128)+e);const i=this.slots[s(137)](e);if(!i)return void(this.debug&&console[s(160)]("⚠️ Slot not found for slotId: "+e+s(170)));if(!(document[s(155)](i[s(134)])||document[s(146)](s(163)+e+'"]')))return void(this.debug&&console[s(160)](s(142)+e+s(162)+i[s(134)]+"). Skipping event tracking."));const r=L.collectDeviceInfo(),o={adType:i[s(148)],platform:r.platform,deviceId:r.deviceId,deviceInfo:r,pageUrl:k[s(151)]().url,pageTitle:k[s(151)]().title,referrer:k[s(151)]()[s(123)],slotId:e,slotPosition:L[s(159)](i[s(134)]),slotWidth:V[s(166)](i[s(141)]),slotHeight:V.parseNumericValue(i.height),sessionId:r.sessionId,pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:C(),timestamp:Date[s(139)]()},...n===u[s(124)]&&{isViewable:!0,iabCompliant:!0}},a=this[s(126)]+"/advertisements/events/"+t+"/"+n,c=B[s(149)](this.apiKey,o);this[s(171)]&&(console[s(169)](s(167)+n+s(157)+t,{url:a,headers:c,eventData:o}),console[s(169)](s(130),{method:"POST",url:a,hasApiKey:!!this[s(127)],bodySize:JSON.stringify(o)[s(132)]}));const d=await fetch(a,{method:s(136),headers:c,body:JSON.stringify(o)});if(this[s(171)]&&console.log(s(152)+d[s(145)]+" "+d.statusText,{url:a,ok:d.ok}),!d.ok){const t=await d[s(158)]();throw new Error(s(161)+d[s(145)]+" "+d[s(150)]+" - "+t)}this[s(171)]&&console[s(169)]("✅ Successfully tracked advertisement event: "+n+" for ad "+t)}catch(i){console.error(s(154),i),console.error("🔍 Debug info:",{baseUrl:this[s(126)],apiKey:this[s(127)]?this.apiKey[s(138)](0,8)+s(165):s(156),url:this[s(126)]+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[U(166)](t){const e=U;if(typeof t===e(125))return t;if("string"==typeof t){const n=parseFloat(t[e(140)](/px$/,""));return isNaN(n)?0:n}return 0}}var N=F;function F(t,e){var n=H();return(F=function(t,e){return n[t-=221]})(t,e)}function H(){var t=["handleIntersection","IntersectionObserver not supported, viewability tracking disabled","28usNWQd","1723908PuZuDo","intersectionRatio","1224030MNXwxQ","1478540yTcvoc","destroy","element","isViewableTriggered","490094cyqkwL","observe","19592pwJHRG","2530570ETbDCb","warn","IntersectionObserver","306fRQOoQ","611046GORsXx","hidden","isDocumentVisible","visible","observer","disconnect","onViewableCallback","0px","4HbGsaB","initIntersectionObserver","visibilityState"];return(H=function(){return t})()}!function(){for(var t=F,e=H();;)try{if(320345===parseInt(t(245))/1+-parseInt(t(240))/2+parseInt(t(238))/3*(parseInt(t(232))/4)+parseInt(t(248))/5+parseInt(t(224))/6*(-parseInt(t(237))/7)+parseInt(t(247))/8*(-parseInt(t(223))/9)+-parseInt(t(241))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class K{constructor(t,e){var n=F;this[n(228)]=null,this[n(244)]=!1,this.element=t,this[n(230)]=e,this[n(233)]()}initIntersectionObserver(){var t=F;t(222)in window?(this[t(228)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(231)}),this[t(228)][t(246)](this[t(243)])):console[t(221)](t(236))}[N(235)](t){t.forEach(t=>{var e=F;t[e(239)]>=.5&&this[e(226)]()&&!this.isViewableTriggered&&(this[e(244)]=!0,this.onViewableCallback&&this[e(230)]())})}isDocumentVisible(){var t=N;return!document[t(225)]&&document[t(234)]===t(227)}[N(242)](){var t=N;this[t(228)]&&(this.observer[t(229)](),this[t(228)]=null)}}const j=W;function W(t,e){const n=G();return(W=function(t,e){return n[t-=166]})(t,e)}function G(){const t=["4RaiRUs","startsWith","production","registerAttribution","setBaseUrl","detail","events","https://api.adstage.app","4391900vhwlzu","baseUrl","822agIghI","custom","/advertisements","1322959eZrPvB","list","https://beta-api.adstage.app","advertisements","626702NvrZSP","track","3789528gpYiaT","12424554ItVlZF","getBaseUrl","/events/register/attribution","57029oPqHKH","1014441EaFYQM"];return(G=function(){return t})()}!function(){const t=W,e=G();for(;;)try{if(926877===-parseInt(t(169))/1+-parseInt(t(173))/2+-parseInt(t(180))/3*(parseInt(t(181))/4)+parseInt(t(189))/5+parseInt(t(166))/6*(parseInt(t(179))/7)+-parseInt(t(175))/8+parseInt(t(176))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Y={production:j(188),beta:j(171)};j(183);const q={advertisements:{list:"/advertisements/list",detail:j(168),events:"/advertisements/events"},events:{track:"/events/track",registerAttribution:j(178)}};class X{constructor(t){const e=j;this[e(172)]={list:()=>""+this[e(190)]+q[e(172)][e(170)],detail:t=>""+this.baseUrl+q[e(172)][e(186)]+"/"+t,events:(t,n)=>""+this[e(190)]+q.advertisements[e(187)]+"/"+t+"/"+n},this[e(187)]={track:()=>""+this[e(190)]+q[e(187)][e(174)],registerAttribution:()=>""+this[e(190)]+q[e(187)][e(184)]},this[e(190)]=t||Y[e(183)]}[j(185)](t){this.baseUrl=t}[j(177)](){return this[j(190)]}[j(167)](t){const e=j;return""+this.baseUrl+(t[e(182)]("/")?t:"/"+t)}}const Z=new X;function J(){var t=["VIEWABLE","🎯 Triggering VIEWABLE event for slide change: ad ","trackSlideViewable","_id","1065699ATZmjs",") in slot: ","2340310oaMewh"," (index: 0) in slot: "," (index: ","3157208ernOfT","6503840HPlcHf","🎯 Triggering initial VIEWABLE event: ad ","log","trackInitialSlideViewable","5533002ohDBuH","3bulZVA","63TKikRZ","1856504hfRKva","978380VWFpeZ"];return(J=function(){return t})()}var Q=$;function $(t,e){var n=J();return($=function(t,e){return n[t-=141]})(t,e)}!function(){for(var t=$,e=J();;)try{if(719739===-parseInt(t(159))/1+parseInt(t(154))/2+parseInt(t(151))/3*(-parseInt(t(145))/4)+parseInt(t(142))/5+parseInt(t(150))/6+-parseInt(t(146))/7+parseInt(t(153))/8*(parseInt(t(152))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[Q(157)](t,e,n,s,i=!1){var r=Q;i&&console.log(r(156)+t[r(158)]+r(144)+n+r(141)+e.id),s(t[r(158)],e.id,u[r(155)])}static[Q(149)](t,e,n,s=!1){var i=Q;s&&console[i(148)](i(147)+t[i(158)]+i(143)+e.id),n(t[i(158)],e.id,u[i(155)])}}const et=nt;function nt(t,e){const n=st();return(nt=function(t,e){return n[t-=399]})(t,e)}function st(){const t=["400592uzmlPU"," ad clicked: ","1868290hNSiJS","isClickable","pointer","_id","preventDefault","adType","toLowerCase","_blank","log","8JDLyHd","open","addEventListener","553PnQhaX","cursor","forEach","addClickEvent","5659072DEdRSr","linkUrl","CLICK","stopPropagation","addClickEventForSlider","addClickEventsBatch"," -> ","3314532nWxSTo","2256786SwFTzY","style","99zBLmiM","🔗 ","85938XVknrB","2986940nrfatw","click"];return(st=function(){return t})()}!function(){const t=nt,e=st();for(;;)try{if(854087===-parseInt(t(424))/1+parseInt(t(417))/2+parseInt(t(416))/3+-parseInt(t(402))/4*(parseInt(t(422))/5)+parseInt(t(421))/6*(-parseInt(t(405))/7)+-parseInt(t(409))/8+parseInt(t(419))/9*(parseInt(t(426))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static[et(408)](t,e,n,s,i=!1,r){const o=et;e.linkUrl&&(t[o(418)][o(406)]="pointer",t[o(404)](o(423),t=>{const a=o;if(t.preventDefault(),t[a(412)](),s&&s(e[a(429)],n.id,u[a(411)]),window[a(403)](e[a(410)],a(400)),i){const t=r||String(n[a(431)])[a(399)]();console.log(a(420)+t+a(425)+e[a(429)]+a(415)+e[a(410)])}}))}static addClickEventForRenderer(t,e,n,s,i=!1,r){const o=et;e[o(410)]&&(t[o(418)].cursor=o(428),t[o(404)](o(423),t=>{const a=o;t[a(430)](),t[a(412)]();if(s()(e[a(429)],n.id,u[a(411)]),window[a(403)](e[a(410)],"_blank"),i){const t=r||String(n[a(431)]).toLowerCase();console[a(401)](a(420)+t+a(425)+e[a(429)]+a(415)+e[a(410)])}}))}static[et(413)](t,e,n,s,i=!1,r){this[et(408)](t,e,n,s,i,r)}static[et(427)](t){return Boolean(t[et(410)])}static[et(414)](t,e,n,s,i=!1,r){const o=et;t[o(407)]((t,a)=>{const c=o,d=e[a];d&&this[c(408)](t,d,n,s,i,r)})}}const rt=ot;function ot(t,e){const n=at();return(ot=function(t,e){return n[t-=277]})(t,e)}function at(){const t=["addClickEventForSlider","center","adstage-slide-container","5LyjYDO","1px dashed #ccc","overflow","removeChild","translateX(-","autoSlideInterval","#cccccc","classList","appendChild","14px","1756803sTPHRR","5356197OcCTLA","setProperty","data-adstage-ad-id","hidden","flex","VIDEO","height","18662ujyuXV","adstage-ad adstage-","1592340VBHuwI","mouseleave","none","color","0.9","video","preventDefault","white","style","active","relative","string","fontSize","normal","border","1240WFrEyA","touchend","className","adstage-slider-wrapper","toLowerCase","clientX","8px","50px","objectFit","textContent","createElement","touches","#f0f0f0","transition","BANNER","1px solid #666","length","children","every","padding","background","click","_id","Video Ad","addTouchSupport","TEXT","433809QuKama","abs","contains","100px","videoUrl","4KNUnsX","remove","auto","createMinimalDotIndicator","width","mouseenter","adstage-dots","cssText","#666666","borderColor","3505180AalwHq","forEach","whiteSpace","div","touchmove","Text Ad","addEventListener","touchstart","transform 0.4s ease-out","backgroundColor","includes","imageUrl","createSliderContainer","100%","body","200px","adstage-slide","querySelectorAll","trackSlideViewable","150lzHJqK","setAttribute","opacity","createSimpleAdElement","data-adstage-slot-id",".adstage-dot","getBoundingClientRect","adType","7170378sRMlPt","img","#000","0.7","display"];return(at=function(){return t})()}!function(){const t=ot,e=at();for(;;)try{if(924918===-parseInt(t(294))/1+parseInt(t(360))/2+-parseInt(t(304))/3*(-parseInt(t(350))/4)+-parseInt(t(284))/5*(-parseInt(t(387))/6)+parseInt(t(302))/7*(parseInt(t(319))/8)+-parseInt(t(345))/9*(parseInt(t(379))/10)+-parseInt(t(295))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[rt(382)](t,e){const n=rt,s=document[n(329)](n(363));switch(s.className=n(303)+String(t.adType)[n(323)](),s.setAttribute(n(297),e[n(341)]),s[n(380)](n(383),t.id),s[n(312)][n(280)]="block",s.style[n(354)]="100%",s[n(312)][n(301)]=n(352),t[n(386)]){case r[n(333)]:if(e.imageUrl){const t=document[n(329)](n(277));t.src=e[n(371)],t[n(312)][n(354)]=n(373),t[n(312)].height=n(352),t[n(312)][n(327)]="cover",s[n(292)](t)}else s.style.height=n(348),s[n(312)][n(369)]=n(331),s[n(312)][n(318)]=n(285),s[n(328)]="Banner Ad";break;case r[n(300)]:if(e[n(349)]){const t=document[n(329)](n(309));t.src=e.videoUrl,t.style[n(354)]=n(373),t.style[n(301)]=n(352),s[n(292)](t)}else s.style[n(301)]=n(375),s.style[n(369)]=n(278),s[n(312)][n(318)]=n(334),s[n(328)]=n(342),s[n(312)][n(307)]=n(311);break;case r[n(344)]:if(e[n(328)]){const t=document.createElement("div");t.textContent=e.textContent||"",t[n(312)][n(338)]=n(325),t[n(312)][n(316)]=n(293),s[n(292)](t)}else s.style.height=n(326),s[n(312)][n(338)]=n(325),s[n(328)]=n(365);break;default:s[n(312)][n(301)]=n(348),s[n(312)][n(318)]="1px dashed #ccc",s[n(312)][n(369)]="#f9f9f9",s[n(328)]=t.adType+" Ad"}return s}static[rt(372)](t,e,n,s,i=!1){const o=rt,a=document[o(329)]("div");a[o(321)]=o(322);const c={position:o(314),overflow:"hidden"};if(t.width&&0!==t[o(354)]){let e;e=typeof t.width===o(315)&&(t[o(354)][o(370)]("px")||t[o(354)].includes("%"))?t[o(354)]:t[o(354)]+"px",c.width=e,c.display="inline-block"}else c[o(280)]="inline-block";if(t[o(301)]&&0!==t[o(301)]){const e="string"==typeof t[o(301)]?t.height:t.height+"px";c.height=e}Object.entries(c)[o(361)](([t,e])=>{a[o(312)].setProperty(t,e)});const d=!t.width||0===t[o(354)],l=!t[o(301)]||0===t[o(301)];if(d||l){const n=document[o(329)](o(363));if(n[o(312)][o(357)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t.width){let e;e=typeof t[o(354)]===o(315)&&(t[o(354)][o(370)]("px")||t.width[o(370)]("%"))?t.width:t[o(354)]+"px",n[o(312)].width=e,n[o(312)][o(362)]=o(317)}document[o(374)][o(292)](n);let s=0,i=0;e[o(361)](e=>{const r=o,a=this.createSimpleAdElement(t,e);n[r(292)](a);const c=a[r(385)]();c[r(354)]>s&&(s=c[r(354)]),c.height>i&&(i=c[r(301)]),n[r(287)](a)}),d&&s>0&&(a[o(312)][o(354)]=s+"px",c.width=s+"px"),l&&i>0&&(a.style[o(301)]=i+"px",c.height=i+"px"),document[o(374)][o(287)](n)}const u=[...e,e[0]],p=document[o(329)](o(363));p[o(321)]=o(283);const h={display:"flex",transition:o(368),width:100*u[o(335)]+"%"};t[o(301)]&&0!==t.height&&(h.height=o(373)),Object.entries(h)[o(361)](([t,e])=>{const n=o;p.style[n(296)](t,e)}),u[o(361)]((e,n)=>{const r=o,a=document[r(329)](r(363));a.className=r(376);const c={width:100/u[r(335)]+"%","flex-shrink":"0",display:r(299),"align-items":r(282),"justify-content":"center"};t[r(301)]&&0!==t[r(301)]&&(c[r(301)]=r(373)),Object.entries(c).forEach(([t,e])=>{const n=r;a[n(312)][n(296)](t,e)});const d=this.createSimpleAdElement(t,e);it[r(281)](d,e,t,s,i,String(t.adType)[r(323)]()),a[r(292)](d),p[r(292)](a)});const f=e[o(337)](t=>t.adType===r[o(344)])?null:this[o(353)](e[o(335)]);let g=0;const m=e[o(335)],I=1e3*(n?.[o(289)]||3),y=(n,r=!1)=>{const a=o;g=n,r?p[a(312)].transition=a(306):p[a(312)][a(332)]="transform 0.4s ease-out",p.style.transform=a(288)+100/u[a(335)]*g+"%)";const c=g===m?0:g;if(f){f[a(377)](a(384))[a(361)]((t,e)=>{const n=a,s=t;e===c?(s[n(291)].add("active"),s[n(312)][n(339)]=n(358),s[n(312)][n(359)]="#666666",s[n(312)][n(381)]="1"):(s[n(291)][n(351)](n(313)),s.style[n(339)]="transparent",s.style[n(359)]=n(290),s[n(312)][n(381)]=n(279))})}tt[a(378)](e[c],t,c,s,i)},v=()=>{g===m&&setTimeout(()=>{y(0,!0)},400)};if(f){f[o(377)](o(384))[o(361)]((t,e)=>{const n=o;t[n(366)](n(340),()=>y(e))})}let b=setInterval(()=>{y(g+1),v()},I);return a[o(366)](o(355),()=>{clearInterval(b)}),a.addEventListener(o(305),()=>{b=setInterval(()=>{y(g+1),v()},I)}),this[o(343)](p,y,()=>g,m,v),a[o(292)](p),f&&a.appendChild(f),y(0),(!t[o(354)]||0===t[o(354)])&&setTimeout(()=>{const e=o,n=p[e(336)][0];if(n){const s=n.children[0];if(s){const n=s[e(385)]();a[e(312)][e(354)]=n[e(354)]+"px",(!t[e(301)]||0===t[e(301)])&&(a.style[e(301)]=n.height+"px"),a[e(312)][e(286)]=e(298)}}},10),a}static[rt(353)](t){const e=rt,n=document[e(329)]("div");n[e(321)]=e(356),n[e(312)][e(357)]="\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ";for(let s=0;s<t;s++){const t=document[e(329)]("button");t.className="adstage-dot",t[e(312)][e(357)]="\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ",t[e(366)]("mouseenter",()=>{const n=e;!t.classList[n(347)](n(313))&&(t[n(312)].borderColor="#999999",t[n(312)][n(381)]=n(308))}),t[e(366)](e(305),()=>{const n=e;!t.classList[n(347)](n(313))&&(t[n(312)].borderColor=n(290),t[n(312)][n(381)]=n(279))}),n[e(292)](t)}return n}static addTouchSupport(t,e,n,s,i){const r=rt;let o=0,a=!1;t[r(366)](r(367),t=>{o=t[r(330)][0].clientX,a=!0}),t[r(366)](r(364),t=>{a&&t[r(310)]()}),t.addEventListener(r(320),t=>{const c=r;if(!a)return;a=!1;const d=t.changedTouches[0][c(324)],l=o-d;if(Math[c(346)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}const dt=pt;function lt(){const t=["132978HoZzdt","39090GbzqgU","Duplicate viewable blocked for ad ","15VwXcRy","delete","2rhDvaM","221392vtCuip","199110qSDZXA","add","3479CzEThc","24cPBzGL","3192167eUylFA","log","viewableTracker","clear","✅ New viewable recorded for ad "," in slot ","333apRfSY","clearAdViewable","428276PZTNXE"];return(lt=function(){return t})()}!function(){const t=pt,e=lt();for(;;)try{if(205917===parseInt(t(181))/1*(parseInt(t(166))/2)+-parseInt(t(168))/3+-parseInt(t(180))/4*(parseInt(t(184))/5)+-parseInt(t(171))/6*(parseInt(t(170))/7)+parseInt(t(167))/8+parseInt(t(178))/9*(parseInt(t(182))/10)+parseInt(t(172))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static isDuplicateViewable(t,e,n=!1){const s=pt,i=t+"_"+e;return ut[s(174)].has(i)?(n&&console[s(173)](s(183)+t+s(177)+e),!0):(ut[s(174)][s(169)](i),n&&console.log(s(176)+t+s(177)+e),!1)}static[dt(175)](){const t=dt;ut.viewableTracker[t(175)]()}static[dt(179)](t,e){const n=dt,s=t+"_"+e;ut[n(174)][n(165)](s)}}function pt(t,e){const n=lt();return(pt=function(t,e){return n[t-=165]})(t,e)}function ht(){const t=["data-adstage-container","createElement","data-adstage-slot","fontSize"," in slot ","adType"," container: ","11px","toLowerCase","div","debug","getAttribute",") - Mode: ","hasAttribute","applyPlaceholderStyle","appendChild","isEmpty","renderFallback","minimal","📏 Using 100% height (container: ","createEmptyContainer","monospace","border"," ad...</span>","closest",'[data-adstage-container="true"]',"error"," for ad ","2px dashed #e74c3c",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"232368TnwzPX","adstage-slot adstage-empty adstage-","): ","opacity","borderRadius","#f9f9f9","4px","setAttribute","advertisementEventTracker","advertisement","getElementById","adstage-official","531654PNwVaG","true","log",'[class*="banner"]',"flex","style","color","calculateAdSize","block","none","filter","isDuplicateViewable","⚠️ AdvertisementEventTracker not available for ","invisible","<span>Loading ","311936DNzNBS"," slot: ","210054AzOMce","createPlaceholder","warn","backgroundColor","190XEStLu","cssText","querySelector","data-adstage-empty"," event","📦 Placeholder created for ","transparent","\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 ","display"," event for ad ","✅ New viewable recorded for ad ","🔄 Starting advertisement event tracking: ","placeholderMode","data-adstage-type","width","containerId","number","3346588RuYhJy","#666","px)","100%","auto","alignItems"," x ","35eNMPdz","⚠️ "," for ","trackAdvertisementEvent","unknown","15cSJnlp",'[class*="ad"]',"center","1px dashed #ccc","generic","justifyContent","className","getContainerHeight","adstage-slot adstage-","getDefaultHeight","innerHTML","classList","subtle",'[class*="container"]',"📊 Advertisement event tracked: ","height","rgba(0, 0, 0, 0.02)","rgba(248, 249, 250, 0.5)","contains",'div[style*="min-height"]',"string","1791416HBwZQC","⚠️ Created empty ","393651emwOpc"];return(ht=function(){return t})()}ut[dt(174)]=new Set;const ft=gt;function gt(t,e){const n=ht();return(gt=function(t,e){return n[t-=379]})(t,e)}!function(){const t=gt,e=ht();for(;;)try{if(620102===-parseInt(t(455))/1+-parseInt(t(470))/2+parseInt(t(443))/3+parseInt(t(493))/4+-parseInt(t(389))/5*(-parseInt(t(472))/6)+parseInt(t(384))/7*(parseInt(t(410))/8)+parseInt(t(412))/9*(-parseInt(t(476))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class mt{constructor(t,e=!1,n){const s=gt;this[s(418)]=t,this[s(423)]=e,this[s(451)]=n||null}[ft(473)](t,e,n,s){const i=ft,r=document[i(414)](i(422));r.id=e,r[i(395)]=i(397)+String(this[i(418)]).toLowerCase(),r.setAttribute(i(413),"true"),r[i(450)](i(489),String(this[i(418)])),r.setAttribute(i(415),e);const{width:o,height:a}=this[i(462)](t,n,s)||{width:i(380),height:this[i(398)]()};r[i(460)][i(490)]=o,r[i(460)].height=a;const c=s?.[i(488)]||n[i(488)]||i(468);this[i(427)](r,c),t.appendChild(r),this[i(423)]&&console[i(457)](i(481)+this[i(418)]+i(471)+e+" ("+o+i(383)+a+i(425)+c)}applyPlaceholderStyle(t,e){const n=ft;switch(e){case n(468):t.style.backgroundColor="transparent",t[n(460)][n(435)]=n(464),t[n(460)][n(446)]="0",t[n(399)]="";break;case n(482):t[n(460)][n(475)]=n(482),t[n(460)][n(435)]=n(464),t[n(460)].display=n(463),t[n(399)]="";break;case n(401):t.style[n(475)]=n(405),t[n(460)][n(435)]=n(464),t.style[n(447)]=n(449),t[n(460)][n(484)]=n(459),t[n(460)].alignItems=n(391),t[n(460)][n(394)]=n(391),t[n(399)]=n(442);break;case n(431):t.style[n(475)]=n(406),t.style[n(435)]="1px solid rgba(0, 0, 0, 0.08)",t[n(460)][n(447)]="6px",t.style[n(484)]=n(459),t[n(460)][n(382)]=n(391),t[n(460)].justifyContent="center",t.innerHTML='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case n(423):t[n(460)].border=n(441),t[n(460)][n(484)]="flex",t[n(460)][n(382)]=n(391),t.style[n(394)]="center",t.style[n(475)]="rgba(231, 76, 60, 0.1)",t.style[n(461)]="#e74c3c",t[n(460)].fontFamily=n(434),t[n(460)][n(416)]=n(420),t.innerHTML="<span>Loading "+this[n(418)]+n(436);break;default:t[n(460)][n(435)]=n(392),t.style[n(484)]=n(459),t[n(460)][n(382)]=n(391),t[n(460)][n(394)]=n(391),t[n(460)][n(475)]=n(448),t.style[n(461)]=n(494),t[n(399)]=n(469)+this.adType+n(436)}}[ft(462)](t,e,n){const s=ft,i=e[s(490)],r=e.height;let o,a;if(o=typeof i===s(492)?i+"px":typeof i===s(409)?i:s(380),typeof r===s(492))a=r+"px";else if(typeof r===s(409)&&"100%"!==r&&r!==s(381))a=r;else{const e=this[s(396)](t);e>0?(a=s(380),(n?.[s(423)]||this[s(423)])&&console[s(457)](s(432)+e+s(379))):(a=this[s(398)](),(n?.[s(423)]||this[s(423)])&&console[s(457)]("📏 Using default height "+a+s(386)+this[s(418)]))}return{width:o,height:a}}getContainerHeight(t){const e=ft,n=window.getComputedStyle(t),s=parseFloat(n.height);if(!s||0===s){const s=parseFloat(n.minHeight);if(s>0)return s;if(t[e(460)][e(404)]&&t[e(460)].height!==e(381)){const n=parseFloat(t[e(460)].height);if(n>0)return n}const i=t[e(424)]("height");if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}createEventTrackingCallback(){return async(t,e,n)=>{const s=gt;if(n===u.VIEWABLE){if(ut[s(466)](t,e,this[s(423)]))return void(this[s(423)]&&console[s(457)]("🚫 Duplicate viewable blocked for ad "+t+s(417)+e));this[s(423)]&&console[s(457)](s(486)+t+s(417)+e)}if(this.advertisementEventTracker)try{this[s(423)]&&console[s(457)](s(487)+n+s(440)+t+s(417)+e),await this.advertisementEventTracker[s(387)](t,e,n),this[s(423)]&&console[s(457)](s(403)+n+s(440)+t+s(417)+e)}catch(e){this[s(423)]&&console[s(439)]("❌ Failed to track "+n+s(485)+t+":",e)}else this[s(423)]&&console[s(474)](s(467)+n+s(480))}}[ft(430)](t){const e=ft,n=document[e(453)](t.id);if(n){const s=[...[n[e(478)](e(438)),n[e(437)]('[data-adstage-container="true"]'),n][e(465)](t=>t&&t[e(426)](e(413))),...[n.closest(".adstage-slot"),n[e(437)](".adstage-"+String(this[e(418)])[e(421)]()),n[e(437)](e(390)),n[e(437)](e(458)),n[e(437)](e(402)),n.closest('div[style*="height"]'),n[e(437)](e(408)),n.parentElement].filter(Boolean)][0];if(s){let n=e(388);n=s[e(426)]("data-adstage-container")?e(454):s[e(400)][e(407)]("adstage-slot")?"adstage-class":e(393),s.style[e(477)]+="\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 ",s[e(399)]="",s[e(450)]("data-adstage-empty",e(456)),this[e(423)]&&console[e(474)](e(385)+this[e(418)]+" container collapsed ("+n+e(445)+t.id,s)}else this[e(433)](t)}t[e(452)]=void 0,t[e(429)]=!0}[ft(433)](t){const e=ft,n=document.getElementById(t[e(491)]);if(n){n.innerHTML="";const s=document.createElement("div");s.id=t.id,s[e(395)]=e(444)+String(this[e(418)])[e(421)](),s.setAttribute(e(413),e(456)),s[e(450)](e(479),e(456)),s[e(450)]("data-adstage-slot",t.id),s[e(460)][e(477)]=e(483),n[e(428)](s),this[e(423)]&&console[e(474)](e(411)+this.adType+e(419)+t.id)}}[ft(457)](t,...e){const n=ft;this[n(423)]&&console[n(457)]("["+this.adType+"] "+t,...e)}}const It=vt;function yt(){const t=["status","Failed to load image: ","📐 Optimal banner container calculated: ","toString","from","calculateAdSize","alt","debug","naturalHeight","selectOptimalSizeStrategy","📦 Banner container dimensions: ","12GLmYyQ","set","map","createEventTrackingCallback","3418656yDAnXo","appendChild","cover","getBoundingClientRect","renderOptimizedBannerImage","✅ Optimized banner image rendered for ad: ",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"display","Banner","createSliderContainer","average","abs","aspectRatio","22jzekpz","34mjtZYx","objectPosition","default","round","parentElement","427KxsbLB",", ratio=","Banner container optimization failed, using default size:","19542KzoNDS","100%","containerId","286587LuFsti","<div>","forEach","_id","objectFit","img","onload","height","config","filter","renderMultipleAds","loadImageDimensions","warn","createElement","error","Banner Advertisement","common","toFixed","BANNER","naturalWidth","title","center","📸 Banner image dimensions: ","backgroundColor","reduce","#f0f0f0","calculateOptimalHeight","3:2","div","📊 Using standard ratio: ","dominant","width","16:9","adstage-ad adstage-banner-ad","Banner Ad","Failed to calculate optimal banner size, using defaults:","style","283445WhfnKN","33014CLMZcx","src","fulfilled","value","onerror","innerHTML","name","imageUrl"," (strategy: ","log","applyOptimizedImageStyle","renderAdElement","block","calculateOptimalContainerSize","1831356ATxLHO","🎠 Banner carousel created for slot: ","getDefaultHeight","40UfjaPu","count","get","ratio","max","1:1","2253354LIgBtE","optimizedHeight"," ads: ","borderRadius","Container not found: ","addClickEventForRenderer","length","values","some","getElementById","Image URL is not provided"];return(yt=function(){return t})()}function vt(t,e){const n=yt();return(vt=function(t,e){return n[t-=340]})(t,e)}!function(){const t=vt,e=yt();for(;;)try{if(428342===-parseInt(t(415))/1*(-parseInt(t(352))/2)+-parseInt(t(375))/3+-parseInt(t(397))/4*(-parseInt(t(351))/5)+parseInt(t(423))/6*(parseInt(t(420))/7)+parseInt(t(401))/8+-parseInt(t(426))/9*(-parseInt(t(369))/10)+parseInt(t(414))/11*(-parseInt(t(366))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class bt extends mt{constructor(t=!1,e){super(r[vt(444)],t,e)}getDefaultHeight(){return"250px"}async[It(363)](t,e){const n=It,s=document.getElementById(t[n(425)]);if(!s)return;const i=document[n(439)](n(342));i.className=n(347);const r=t[n(376)],o=s[n(419)]||s;if(r)i[n(350)][n(345)]="100%",i[n(350)].height=String(r);else{const e=t[n(434)],s={width:e?.[n(345)],height:e?.[n(433)]},{width:r,height:a}=this[n(391)](o,s,{debug:this[n(393)]});i[n(350)][n(345)]=r,i.style[n(433)]=a}e[n(359)]?await this[n(405)](i,e,t):i[n(357)]=n(427)+(e[n(446)]||n(348))+"</div>",it[n(380)](i,e,t,()=>this[n(400)](),this[n(393)],n(409)),s[n(357)]="",s[n(402)](i)}async[It(436)](t,e){const n=It,s=document[n(384)](t[n(425)]);if(!s)throw new Error(n(379)+t[n(425)]);await this.optimizeContainerForBannerAds(t,e);const i=this.createEventTrackingCallback(),r={autoSlideInterval:(t[n(434)]?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t[n(376)],aspectRatio:t[n(413)]},o=ct[n(410)](t,e,r,i,this.debug);o&&(s[n(357)]="",s[n(402)](o),this[n(393)]&&console[n(361)](n(367)+t.id+" with "+e[n(381)]+" ads (optimized: "+(t[n(376)]||n(417))+")"))}async[It(365)](t,e){const n=It;if(!t.length)return{width:n(424),height:this[n(368)](),aspectRatio:16/9};try{const s=(await Promise.allSettled(t[n(435)](t=>t[n(359)])[n(399)](t=>this[n(437)](t[n(359)]))))[n(435)](t=>t[n(386)]===n(354))[n(399)](t=>t[n(355)]);if(0===s[n(381)])return{width:"100%",height:this[n(368)](),aspectRatio:16/9};const i=this[n(395)](s),r=this[n(340)](s,e,i);return this[n(393)]&&console.log(n(388)+e+"x"+r+n(360)+i+")"),{width:n(424),height:r+"px",aspectRatio:e/r}}catch(t){return console[n(438)](n(349),t),{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9}}}async optimizeContainerForBannerAds(t,e){const n=It;try{const s=document[n(384)](t[n(425)]),i=document[n(384)](t.id);if(!s||!i)return;const r=s[n(404)]().width||300,o=await this.calculateOptimalContainerSize(e,r);i[n(350)][n(433)]=o[n(433)],t[n(376)]=o.height,t.aspectRatio=o[n(413)],this[n(393)]&&console[n(361)]("🔧 Banner container optimized for "+e[n(381)]+n(377)+o.height)}catch(t){console[n(438)](n(422),t)}}[It(395)](t){const e=It,n=t[e(399)](t=>t[e(345)]/t[e(433)]),s=new Map;n[e(428)](t=>{const n=e,i=(Math[n(418)](10*t)/10)[n(389)]();s.set(i,(s[n(371)](i)||0)+1)});const i=Math[e(373)](...s[e(382)]()),r=t.length;if(i/r>=.7)return e(344);const o=[16/9,4/3,1,1.5],a=n[e(435)](t=>o[e(383)](e=>Math.abs(t-e)<.1))[e(381)];return e(a/r>=.5?442:411)}[It(340)](t,e,n){const s=It,i=t[s(399)](t=>t[s(345)]/t[s(433)]);switch(n){case s(344):{const t=new Map;i[s(428)](e=>{const n=s,i=Math[n(418)](10*e)/10,r=i[n(389)](),o=t.get(r);o?o.count++:t[n(398)](r,{ratio:i,count:1})});const n=Array[s(390)](t.values())[s(450)]((t,e)=>e[s(370)]>t[s(370)]?e:t);return Math[s(418)](e/n[s(372)])}case s(442):{const t=[{ratio:16/9,name:s(346)},{ratio:4/3,name:"4:3"},{ratio:1,name:s(374)},{ratio:1.5,name:s(341)}],n=i[s(450)]((t,e)=>t+e,0)/i[s(381)],r=t[s(450)]((t,e)=>Math.abs(e.ratio-n)<Math[s(412)](t[s(372)]-n)?e:t);return this[s(393)]&&console.log(s(343)+r[s(358)]+" (avg: "+n[s(443)](2)+")"),Math[s(418)](e/r.ratio)}case s(411):default:{const t=i[s(450)]((t,e)=>t+e,0)/i[s(381)];return Math[s(418)](e/t)}}}[It(437)](t){return new Promise((e,n)=>{const s=vt,i=new Image;i[s(432)]=()=>{const t=s;e({width:i[t(445)],height:i[t(394)]})},i[s(356)]=()=>{n(new Error(s(387)+t))},i[s(353)]=t})}[It(362)](t,e,n){const s=It,i=e/n;Math[s(412)](i-1)<.1?(t[s(350)][s(430)]=s(403),t[s(350)].objectPosition=s(447)):i>1.3?(t[s(350)][s(430)]="contain",t[s(350)][s(416)]="center",t[s(350)][s(449)]=s(451)):i<.7?(t[s(350)].objectFit=s(403),t[s(350)][s(416)]="center"):(t[s(350)][s(430)]=s(403),t.style[s(416)]=s(447)),this[s(393)]&&console[s(361)]("🎨 Banner image style applied: objectFit="+t[s(350)][s(430)]+s(421)+i.toFixed(2))}async[It(405)](t,e,n){const s=It,i=document[s(439)](s(431));i[s(350)].width="100%",i.style[s(433)]=s(424),i[s(350)][s(408)]=s(364),i.style[s(378)]="8px",i[s(392)]=e.title||s(441),t[s(357)]=s(407);try{if(!e.imageUrl)throw new Error(s(385));const r=await this[s(437)](e[s(359)]),o=t.getBoundingClientRect(),a=o[s(345)],c=o[s(433)];this.debug&&(console.log(s(448)+r.width+"x"+r.height),console.log(s(396)+a+"x"+c));const d=r.width/r[s(433)],l=a/c;return this[s(362)](i,d,l),i.src=e.imageUrl,t[s(357)]="",t[s(402)](i),it[s(380)](i,e,n,()=>this[s(400)](),this.debug,s(409)),this.debug&&console[s(361)](s(406)+e[s(429)]),i}catch(r){return console[s(440)]("❌ Failed to load optimized banner image:",r),e[s(359)]&&(i.src=e[s(359)],i[s(350)][s(430)]="cover",i[s(350)][s(416)]=s(447),t.innerHTML="",t[s(402)](i),it[s(380)](i,e,n,()=>this[s(400)](),this[s(393)],s(409))),i}}}const wt=Et;function kt(){const t=["3mxVOta","986388zurgkV","setTextAdContent","71448CzdmKx","129188SRrxgb","textContent","title","1nCGvxE","createTextAdStyles","35RdWsIn","11965NhCNNS","80ayhfHx","426BsIDyn","\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 ","48771gySvMg","14GSNpaL","44600COqcuU","22DHMdoL","5526404kKBZLK"];return(kt=function(){return t})()}function Et(t,e){const n=kt();return(Et=function(t,e){return n[t-=419]})(t,e)}!function(){const t=Et,e=kt();for(;;)try{if(115302===parseInt(t(431))/1*(-parseInt(t(428))/2)+-parseInt(t(424))/3*(-parseInt(t(427))/4)+-parseInt(t(434))/5*(parseInt(t(436))/6)+-parseInt(t(433))/7*(-parseInt(t(421))/8)+parseInt(t(419))/9*(parseInt(t(435))/10)+parseInt(t(422))/11*(-parseInt(t(425))/12)+-parseInt(t(423))/13*(-parseInt(t(420))/14))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class xt{static[wt(432)](t=!1){return wt(437)}static[wt(426)](t,e){const n=wt,s=e[n(429)]||e[n(430)]||"";t[n(429)]=s}}const St=Ct;function At(){const t=["opacity","touches","20524gYySkz","data-adstage-slot-id","auto","data-adstage-ad-id","createElement","includes","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","height: 100%;","adstage-fade-slide-container","4SDPege","touchmove","abs","_id","touchstart","appendChild","\n position: relative;\n width: 100%;\n ","\n position: ","17980EFukpS","height: auto;","className","2382NFPGqZ","34838ayeviO","transform","autoSlideInterval","createTextAdStyles","mouseenter","relative",";\n width: 100%;\n ","cssText","createTextTransitionContainer","position",";\n left: ","clientX","changedTouches","createSimpleAdElement","height","absolute",";\n ","hidden","4184LGurCx","addEventListener","style","whiteSpace","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","trackSlideViewable","25299bDljAw","19151gUbbaO","setProperty","clientY","zIndex","top","adstage-fade-slider-wrapper","translateY(-20px)","getBoundingClientRect","minHeight","adstage-ad adstage-","addTouchSupport","\n ","normal","20px","adType","setAttribute","body",";\n transform: translateY(","width","preventDefault","forEach","removeChild","left","div","translateY(0)","1219415gcGdGr","push","980876pdIeOp","length","3937704LjGGFU","string"];return(At=function(){return t})()}function Ct(t,e){const n=At();return(Ct=function(t,e){return n[t-=383]})(t,e)}!function(){const t=Ct,e=At();for(;;)try{if(742442===-parseInt(t(420))/1+-parseInt(t(393))/2+-parseInt(t(395))/3+parseInt(t(408))/4*(-parseInt(t(391))/5)+-parseInt(t(419))/6*(-parseInt(t(399))/7)+-parseInt(t(438))/8*(parseInt(t(444))/9)+parseInt(t(416))/10*(parseInt(t(445))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Tt{static[St(433)](t,e){const n=St,s=document.createElement(n(389));return s.className=n(454)+String(t[n(459)]).toLowerCase(),s[n(460)](n(402),e[n(411)]),s[n(460)](n(400),t.id),s.style[n(427)]=xt[n(423)](!0),xt.setTextAdContent(s,e),s}static[St(428)](t,e,n,s,i=!1){const r=St,o=t[r(434)]&&0!==t.height&&t[r(434)]!==r(401),a=document[r(403)](r(389));a[r(418)]=r(450);const c={position:"relative",overflow:r(437),display:"block"};if(!o&&(c[r(434)]=r(401),c[r(453)]="fit-content"),t[r(384)]&&0!==t[r(384)]){let e;e=typeof t.width===r(396)&&(t.width[r(404)]("px")||t[r(384)][r(404)]("%"))?t[r(384)]:t[r(384)]+"px",c[r(384)]=e}if(t[r(434)]&&0!==t[r(434)]&&t[r(434)]!==r(401)&&o){let e;e=typeof t.height===r(396)&&(t[r(434)][r(404)]("px")||t[r(434)].includes("%"))?t[r(434)]:t[r(434)]+"px",c.height=e}Object.entries(c)[r(386)](([t,e])=>{const n=r;a.style[n(446)](t,e)});const d=document[r(403)](r(389));d[r(418)]=r(407),d[r(440)][r(427)]=r(414)+(o?r(406):"height: auto; min-height: fit-content;")+r(456);let l=null;const u=!t[r(384)]||0===t[r(384)],p=!t[r(434)]||0===t[r(434)]||void 0===t[r(434)]||t[r(434)]===r(401);if(u||p&&o){if(l=document.createElement(r(389)),l.style[r(427)]=r(442),!u&&t[r(384)]){let e;e="string"==typeof t[r(384)]&&(t[r(384)].includes("px")||t[r(384)][r(404)]("%"))?t[r(384)]:t[r(384)]+"px",l[r(440)][r(384)]=e,l[r(440)][r(441)]=r(457)}document.body[r(413)](l);let n=0,s=0;e[r(386)](e=>{const i=r,o=this[i(433)](t,e);l.appendChild(o);const a=o[i(452)]();a[i(384)]>n&&(n=a[i(384)]),a[i(434)]>s&&(s=a[i(434)]),l[i(387)](o)}),u&&n>0&&(a.style[r(384)]=n+"px"),p&&s>0&&o&&(a.style[r(434)]=s+"px"),document[r(461)][r(387)](l)}const h=[];e[r(386)]((e,n)=>{const a=r,c=document[a(403)](a(389));c[a(418)]="adstage-fade-slide";const l=a(o?435:0===n?425:435);c[a(440)][a(427)]=a(415)+l+";\n top: "+("absolute"===l?"0":a(401))+a(430)+("absolute"===l?"0":a(401))+a(426)+(o?"height: 100%;":a(417))+a(405)+(0===n?"1":"0")+a(383)+(0===n?"0":a(458))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+a(436);const u=this.createSimpleAdElement(t,e);it.addClickEventForSlider(u,e,t,s,i,"Text"),c[a(413)](u),d[a(413)](c),h[a(392)](c)});let f=0;const g=e[r(394)],m=1e3*(n?.[r(422)]||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(440)][a(429)]===a(425)&&(c[a(440)].position=a(435),c[a(440)].top="0",c[a(440)].left="0"),d[a(440)].position=a(425),d[a(440)][a(449)]="auto",d[a(440)][a(388)]=a(401)),c[a(440)][a(397)]="0",c[a(440)][a(421)]=a(451),c[a(440)].zIndex="1",d.style[a(397)]="1",d.style[a(421)]=a(390),d[a(440)][a(448)]="2",h.forEach((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(440)][s(397)]="0",t[s(440)][s(421)]="translateY(20px)",t[s(440)][s(448)]="1",!o&&t[s(440)][s(429)]===s(425)&&(t[s(440)][s(429)]=s(435),t[s(440)][s(449)]="0",t[s(440)][s(388)]="0"))}),f=n,tt[a(443)](e[f],t,f,s,i)};let y=setInterval(()=>{I(f+1)},m);return a[r(439)](r(424),()=>{clearInterval(y)}),a.addEventListener("mouseleave",()=>{y=setInterval(()=>{I(f+1)},m)}),Tt[r(455)](a,I,()=>f,g),a[r(413)](d),a}static addTouchSupport(t,e,n,s){const i=St;let r=0,o=0,a=!1;t[i(439)](i(412),t=>{const e=i;r=t[e(398)][0][e(431)],o=t[e(398)][0].clientY,a=!0}),t[i(439)](i(409),t=>{a&&t[i(385)]()}),t.addEventListener("touchend",t=>{const s=i;if(!a)return;a=!1;const c=t.changedTouches[0][s(431)],d=t[s(432)][0][s(447)],l=r-c,u=o-d;if(Math.abs(l)>Math[s(410)](u)&&Math[s(410)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Rt=Lt;function Dt(){const t=["appendChild","style"," with ","number","getElementById","✨ Single text ad rendered: ","2811488FSDAHz","createTextAdStyles","-webkit-box","✨ Text transition created for slot: ","className","display","Text","setTextAdContent","log","2507184xkUoMg","3GgezYD","aspectRatio","calculateAdSize","createElement","slideInterval","addClickEventForRenderer","containerId","height","innerHTML","config","1450324ekSyyD","debug","vertical","cssText","26567882EdJozD","60px","7582026FLvohW","_id","TEXT","createTextTransitionContainer","7jUvKMg","hidden","renderAdElement","1XsEfrA","webkitLineClamp","optimizedHeight","adstage-text-content","width","27gGSWwO","11565eqryNd","createEventTrackingCallback","div","4078430oyJZnU"," ads"];return(Dt=function(){return t})()}function Lt(t,e){const n=Dt();return(Lt=function(t,e){return n[t-=424]})(t,e)}!function(){const t=Lt,e=Dt();for(;;)try{if(930897===parseInt(t(457))/1*(parseInt(t(444))/2)+-parseInt(t(434))/3*(-parseInt(t(433))/4)+parseInt(t(463))/5+-parseInt(t(450))/6*(parseInt(t(454))/7)+-parseInt(t(424))/8+parseInt(t(462))/9*(-parseInt(t(466))/10)+parseInt(t(448))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class zt extends mt{constructor(t=!1,e){super(r[Lt(452)],t,e)}getDefaultHeight(){return Lt(449)}async[Rt(456)](t,e){const n=Rt,s=document[n(472)](t[n(440)]);if(!s)return;const i=document.createElement(n(465));i[n(428)]="adstage-ad adstage-text-ad";const r=t[n(459)],o=s.parentElement||s;if(r)i[n(469)].width="100%",i[n(469)][n(441)]=String(r);else{const e=t.config,s={width:e?.[n(461)],height:e?.[n(441)]},{width:r,height:a}=this[n(436)](o,s,{debug:this[n(445)]});i.style.width=r,i[n(469)][n(441)]=a}const a=document[n(437)](n(465));a[n(428)]=n(460),a[n(469)][n(447)]=xt[n(425)](!1),xt[n(431)](a,e);const c=t[n(443)]?.maxLines;c&&typeof c===n(471)&&(a.style[n(429)]=n(426),a.style[n(458)]=String(c),a[n(469)].webkitBoxOrient=n(446),a.style.overflow=n(455)),i[n(468)](a),it[n(439)](i,e,t,()=>this[n(464)](),this[n(445)],n(430)),s[n(442)]="",s[n(468)](i),this[n(445)]&&console[n(432)](n(473)+e[n(451)])}async renderMultipleAds(t,e){const n=Rt,s=document[n(472)](t[n(440)]);if(!s)throw new Error("Container not found: "+t.containerId);const i=this[n(464)](),r={autoSlideInterval:(t[n(443)]?.[n(438)]||5e3)/1e3,...t[n(443)],optimizedHeight:t[n(459)],aspectRatio:t[n(435)]},o=Tt[n(453)](t,e,r,i,this[n(445)]);o&&(s[n(442)]="",s[n(468)](o),this.debug&&console[n(432)](n(427)+t.id+n(470)+e.length+n(467)))}}const Pt=_t;!function(){const t=_t,e=Ut();for(;;)try{if(907682===parseInt(t(205))/1*(-parseInt(t(244))/2)+parseInt(t(234))/3+-parseInt(t(199))/4+-parseInt(t(183))/5*(parseInt(t(191))/6)+-parseInt(t(259))/7+parseInt(t(263))/8+-parseInt(t(208))/9*(-parseInt(t(264))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Bt extends mt{constructor(t=!1,e){super(r[_t(272)],t,e)}[Pt(188)](){return Pt(212)}async renderAdElement(t,e){const n=Pt,s=document.getElementById(t.containerId);if(!s)return;const i=document[n(209)](n(293));i.className=n(276),i[n(194)][n(190)]=n(232),this[n(182)](i,e,t),s.innerHTML="",s[n(294)](i),this[n(214)]&&console[n(279)](n(216)+e._id)}async[Pt(249)](t,e){const n=Pt,s=document[n(237)](t[n(218)]);if(!s)throw new Error(n(268)+t[n(218)]);if(e.length>0){const i=e[0],r=document.createElement(n(293));r[n(223)]="adstage-video-container",r.style[n(190)]=n(286),this.renderVideoElementDirect(r,i,t),s[n(287)]="",s[n(294)](r);const o=this[n(192)]();setTimeout(()=>{const e=n;o(i._id,t.id,u[e(265)])},100),this[n(214)]&&console[n(279)](n(180)+t.id+" ("+i[n(203)]+")")}else this[n(214)]&&console[n(297)](n(187)+t.id)}[Pt(182)](t,e,n){const s=Pt;t[s(194)][s(241)]=s(217);const i=document[s(209)]("video");i[s(194)][s(243)]=s(277),i[s(194)][s(213)]=s(277),i[s(194)].objectFit=s(238),i[s(226)]=s(179);const r=n[s(256)];if(this.debug&&console[s(279)](s(275),r),i[s(271)]=!1,i[s(251)]=!1!==r?.autoplay,i[s(210)]=!0,i.loop=!1!==r?.[s(250)],this[s(214)]&&console[s(279)](s(281),{autoplay:i[s(251)],muted:i[s(210)],loop:i[s(250)],controls:i.controls}),!1!==r?.[s(246)]&&i.setAttribute("playsinline",""),!0===r?.[s(271)]&&(i[s(271)]=!0,this.debug&&console.log("🎬 User explicitly enabled controls, overriding default")),r?.[s(291)])i[s(271)]=!1,i[s(194)][s(190)]+=s(196);else if(r?.[s(285)]){if(i[s(271)]){const t=document[s(209)](s(194));t.textContent=s(295)+(r.customControls[s(181)]?s(260):s(228))+s(270)+(r[s(285)][s(193)]?s(260):s(228))+s(235)+(r.customControls[s(253)]?s(260):s(228))+s(201)+(r[s(285)].hideRemainingTime?s(260):s(228))+s(221)+(r[s(285)][s(269)]?"none":"block")+s(254)+(r.customControls[s(215)]?s(260):s(228))+s(252)+(r[s(285)][s(257)]?s(260):s(228))+s(195),document[s(229)][s(294)](t)}}else if(i[s(271)]){const t=document.createElement(s(194));t.id=s(206),t[s(262)]=s(289),!document.getElementById("adstage-video-default-controls")&&document.head[s(294)](t)}this[s(214)]&&console.log(s(233),i.controls?s(231):s(296));const o=document.createElement("button");o[s(223)]=s(204),o[s(194)][s(190)]=s(225),r?.[s(291)]&&(o[s(194)][s(189)]=s(260));const a=()=>{const t=s,e=t(247);o[t(287)]=i[t(210)]?'\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 ':e,o[t(227)]=i[t(210)]?t(211):t(230)};if(a(),o[s(240)]("click",t=>{const e=s;t[e(274)](),i.muted=!i[e(210)],a(),this[e(214)]&&console.log(e(258)+(i[e(210)]?e(210):e(299)))}),o[s(240)](s(261),()=>{const t=s;o[t(194)].background="rgba(0, 0, 0, 0.9)",o[t(194)][t(224)]=t(273)}),o.addEventListener(s(280),()=>{const t=s;o.style[t(282)]="rgba(0, 0, 0, 0.7)",o[t(194)][t(224)]=t(198)}),e[s(278)]){i[s(185)]=e.videoUrl;const t=()=>{const t=s;i[t(251)]&&i[t(210)]&&i[t(267)]&&i[t(284)]()[t(220)](e=>{const n=t;this.debug&&(console[n(297)](n(207),e),console[n(297)](n(290))),i[n(210)]=!0,i[n(284)]().catch(t=>{const e=n;this[e(214)]&&console[e(186)](e(239),t)})})};i.addEventListener(s(283),()=>{this[s(214)]&&console.log("🎬 Video metadata loaded, attempting autoplay..."),t()}),i.addEventListener("canplay",()=>{const e=s;this[e(214)]&&console[e(279)](e(202)),t()}),i.addEventListener(s(200),()=>{const e=s;this[e(214)]&&console[e(279)]("🎬 Video data loaded, attempting autoplay..."),t()}),setTimeout(()=>{const e=s;this[e(214)]&&console[e(279)](e(292)),t()},100)}else if(e[s(248)]){const n=document[s(209)]("img");return n[s(185)]=e.imageUrl,n[s(194)][s(243)]=s(277),n[s(194)][s(213)]=s(277),n[s(194)][s(255)]=s(238),n[s(266)]=e[s(227)]||s(242),void t[s(294)](n)}it[s(245)](i,e,n,()=>this[s(192)](),this.debug,s(298)),i[s(240)](s(186),i=>{const r=s;if(console[r(186)](r(184),i),e.imageUrl){const s=document[r(209)]("img");s[r(185)]=e.imageUrl,s[r(194)][r(243)]=r(277),s.style[r(213)]=r(277),s.style[r(255)]=r(238),s[r(266)]=e[r(227)]||r(242),it.addClickEventForRenderer(s,e,n,()=>this[r(192)](),this[r(214)],r(197)),t.innerHTML="",t[r(294)](s)}}),t[s(294)](i),t[s(294)](o),this[s(214)]&&console.log(s(236)+e._id+s(219)+i[s(251)]+s(222)+i[s(210)]+s(288)+i.loop+")")}}function _t(t,e){const n=Ut();return(_t=function(t,e){return n[t-=179]})(t,e)}function Ut(){const t=["🎬 Initial autoplay attempt after timeout...","div","appendChild","\n video::-webkit-media-controls-play-button {\n display: ","disabled (default)","warn","Video","unmuted","metadata","🎬 Single video rendered for VIDEO slot: ","hidePlayButton","renderVideoElementDirect","5240mZdIjq","Video load failed:","src","error","⚠️ No video advertisements available for slot: ","getDefaultHeight","display","cssText","9996jUpHxh","createEventTrackingCallback","hideProgressBar","style"," !important;\n }\n ","\n pointer-events: none;\n ","Video fallback","scale(1)","3866500DBkqig","loadeddata"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","🎬 Video can play, attempting autoplay...","_id","adstage-video-mute-button","18649CGDFlp","adstage-video-default-controls","🎬 Auto-play was prevented:","26559igKNZV","createElement","muted","Click to unmute","360px","height","debug","hideMuteButton","🎬 Single video ad rendered: ","relative","containerId"," (autoplay: ","catch"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ",", muted: ","className","transform","\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 ","preload","title","block","head","Click to mute","enabled","\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 ","🎬 Video controls setting:","1296669AuDrCb"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","🎬 Video element created for ad: ","getElementById","contain","🎬 Autoplay completely failed:","addEventListener","position","Video thumbnail","width","18uDvQVA","addClickEventForRenderer","playsinline",'\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 ',"imageUrl","renderMultipleAds","loop","autoplay"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","hideCurrentTime"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","objectFit","config","hideFullscreenButton","🔊 Video mute toggled: ","4562866TBXBfB","none","mouseenter","textContent","7816432rZXAwa","10270lJVQQS","VIEWABLE","alt","paused","Container not found: ","hideVolumeSlider"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","controls","VIDEO","scale(1.1)","stopPropagation","🎬 Video config received:","adstage-video-container","100%","videoUrl","log","mouseleave","🎬 Final video settings:","background","loadedmetadata","play","customControls","\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 ","innerHTML",", loop: ","\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 ","🎬 Trying muted autoplay fallback...","hideControls"];return(Ut=function(){return t})()}function Mt(t,e){const n=Ot();return(Mt=function(t,e){return n[t-=425]})(t,e)}function Ot(){const t=["Native click tracked for ad: ","15142toUtIz","advertisementEventTracker","cssText","imageUrl","_id","length","111528VqHfLO","#3b82f6","1167966kBuZyQ","div","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","mouseleave","containerId","🏠 Native ad rendered (first of ","renderAdElement","mouseenter","): ","_blank","10ESrPOD","16174422bgfgbs","click","alt","\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 ","img","linkUrl","10jrEIQx","992862xLheUJ","NATIVE","title","adstage-ad adstage-native-ad","13sPpmbT","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","warn","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","addEventListener","14delqgx","1389864sXYuPw","debug","1132521OSJJmP","🏠 Single native ad rendered: ","button","⚠️ No native advertisements available for slot: ","style","appendChild","src","log","textContent","renderMultipleAds","createElement","backgroundColor","open","Learn More","Native Advertisement"];return(Ot=function(){return t})()}const Vt=Mt;!function(){const t=Mt,e=Ot();for(;;)try{if(316330===parseInt(t(434))/1*(parseInt(t(458))/2)+-parseInt(t(442))/3+-parseInt(t(440))/4+parseInt(t(476))/5*(-parseInt(t(466))/6)+-parseInt(t(439))/7*(parseInt(t(464))/8)+-parseInt(t(430))/9+-parseInt(t(429))/10*(-parseInt(t(477))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Nt extends mt{constructor(t=!1,e){super(r[Mt(431)],t,e)}getDefaultHeight(){return"200px"}async[Vt(472)](t,e){const n=Vt,s=document.getElementById(t[n(470)]);if(!s)return;const i=document.createElement("div");if(i.className=n(433),i[n(446)][n(460)]=n(426),e[n(432)]){const t=document.createElement("h3");t[n(450)]=e[n(432)],t[n(446)][n(460)]=n(468),i[n(447)](t)}if(e[n(450)]){const t=document.createElement("p");t[n(450)]=e[n(450)],t[n(446)].cssText="\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ",i[n(447)](t)}if(e[n(461)]){const t=document[n(452)](n(467));t[n(446)][n(460)]=n(437);const s=document.createElement(n(427));s[n(448)]=e[n(461)],s[n(425)]=e.title||n(456),s[n(446)].cssText=n(435),t.appendChild(s),i.appendChild(t)}if(e.linkUrl){const t=document[n(452)](n(444));t[n(450)]=n(455),t.style[n(460)]="\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(438)](n(478),()=>{const t=n;this[t(459)]&&console[t(449)](t(457)+e._id),window[t(454)](e[t(428)],t(475))}),t[n(438)](n(473),()=>{t.style.backgroundColor="#2563eb"}),t[n(438)](n(469),()=>{const e=n;t[e(446)][e(453)]=e(465)}),i[n(447)](t)}s.innerHTML="",s.appendChild(i),this[n(441)]&&console[n(449)](n(443)+e[n(462)])}async[Vt(451)](t,e){const n=Vt;e.length>0?(await this[n(472)](t,e[0]),this[n(441)]&&console[n(449)](n(471)+e[n(463)]+n(474)+t.id)):this[n(441)]&&console[n(436)](n(445)+t.id)}}function Ft(){const t=["fadeOut 0.3s ease-out forwards","keydown","body","addEventListener","mouseleave","4CYQjYV","closeInterstitial","appendChild","adstage-interstitial-content","removeEventListener","_id","createElement","color","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","mouseenter","Interstitial Advertisement","3102MqMGuy","containerId","): ","INTERSTITIAL","#6b7280","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","Escape","getElementById","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","linkUrl","innerHTML","\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 ","getDefaultHeight","🖼️ Interstitial ad closed","1787590cuVSiA","400px","15992484bvamXL","\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 ","1208akrUcV","23085CRUVch","#3b82f6","4saiLqj","#e5e7eb","#f3f4f6","🖼️ Interstitial ad rendered: ","imageUrl","cssText","img","removeChild","712446MnpQvU","warn","\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 ","renderMultipleAds","_blank","advertisementEventTracker","renderAdElement","54823VRNVVw","parentNode","\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 ","Get Started","textContent","log","style","9961HWTeyb","adstage-interstitial-styles","11nIMQNb","title","button","backgroundColor","1842570ySayYL","#374151","\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 ","click","🖼️ Interstitial ad rendered (first of ","debug","className","src"];return(Ft=function(){return t})()}function Ht(t,e){const n=Ft();return(Ht=function(t,e){return n[t-=420]})(t,e)}const Kt=Ht;!function(){const t=Ht,e=Ft();for(;;)try{if(383701===-parseInt(t(461))/1+-parseInt(t(446))/2*(-parseInt(t(454))/3)+-parseInt(t(487))/4*(-parseInt(t(439))/5)+parseInt(t(425))/6*(parseInt(t(468))/7)+-parseInt(t(443))/8*(-parseInt(t(444))/9)+-parseInt(t(474))/10+parseInt(t(470))/11*(-parseInt(t(441))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class jt extends mt{constructor(t=!1,e){super(r[Ht(428)],t,e)}[Kt(437)](){return Kt(440)}async renderAdElement(t,e){const n=Kt;if(!document[n(432)](t[n(426)]))return;const s=document[n(420)]("div");s[n(480)]="adstage-interstitial-overlay",s.style.cssText=n(442);const i=document[n(420)]("div");i[n(480)]=n(490),i.style[n(451)]=n(436);const r=document[n(420)](n(472));if(r[n(435)]="×",r[n(467)][n(451)]=n(456),r[n(485)]("click",()=>{this[n(488)](s)}),r[n(485)](n(423),()=>{const t=n;r[t(467)].backgroundColor=t(447),r[t(467)][t(421)]=t(475)}),r[n(485)](n(486),()=>{const t=n;r[t(467)][t(473)]=t(448),r[t(467)][t(421)]=t(429)}),e[n(450)]){const t=document.createElement(n(452));t[n(481)]=e[n(450)],t.alt=e[n(471)]||n(424),t[n(467)][n(451)]=n(433),i[n(489)](t)}if(e[n(471)]){const t=document.createElement("h2");t[n(465)]=e[n(471)],t[n(467)][n(451)]=n(430),i[n(489)](t)}if(e[n(465)]){const t=document[n(420)]("p");t[n(465)]=e[n(465)],t[n(467)][n(451)]=n(422),i.appendChild(t)}if(e[n(434)]){const t=document.createElement(n(472));t[n(465)]=n(464),t[n(467)][n(451)]=n(476),t[n(485)]("click",()=>{const t=n;this[t(459)]&&console[t(466)]("Interstitial click tracked for ad: "+e._id),window.open(e.linkUrl,t(458)),this[t(488)](s)}),t[n(485)](n(423),()=>{const e=n;t[e(467)][e(473)]="#2563eb"}),t[n(485)](n(486),()=>{const e=n;t[e(467)][e(473)]=e(445)}),i[n(489)](t)}const o=t=>{const e=n;t.key===e(431)&&(this.closeInterstitial(s),document[e(491)](e(483),o))};if(document[n(485)]("keydown",o),s[n(485)](n(477),t=>{t.target===s&&this.closeInterstitial(s)}),!document[n(432)](n(469))){const t=document[n(420)](n(467));t.id="adstage-interstitial-styles",t[n(465)]=n(463),document.head[n(489)](t)}i[n(489)](r),s[n(489)](i),document[n(484)][n(489)](s),this[n(479)]&&console[n(466)](n(449)+e[n(492)])}async[Kt(457)](t,e){const n=Kt;e.length>0?(await this[n(460)](t,e[0]),this[n(479)]&&console[n(466)](n(478)+e.length+n(427)+t.id)):this[n(479)]&&console[n(455)]("⚠️ No interstitial advertisements available for slot: "+t.id)}closeInterstitial(t){const e=Kt;t[e(467)].animation=e(482),setTimeout(()=>{const n=e;t.parentNode&&t[n(462)][n(453)](t)},300),this.debug&&console[e(466)](e(438))}}const Wt=Yt;function Gt(){const t=["renderAdElement","padding","createAdElement","379424wiKUyW","toLowerCase","cover","TEXT","getDefaultHeightForAdType","div","naturalHeight","renderAd","renderOptimizedBannerImage is only supported for BANNER ads","adType","style","14zNKruL","calculateOptimalContainerSize","display","renderFallback","advertisement","data-adstage-slot-id","get","config","backgroundColor","imageUrl","width","optimizeContainerForBannerAds","renderAdSlider","height","border"," Ad","BANNER","advertisementEventTracker","VIDEO","1280606dKpLOV","renderOptimizedBannerImage","⚠️ Container optimization is only supported for BANNER ads, got: ","appendChild","log","warn","loadImageDimensions","#f9f9f9","createElement","className","initializeRenderers","1637619sHrkmF","renderers","src","videoUrl","calculateAdSize","getDefaultHeight","5205915MzwFYs","[AdRenderer] ","adstage-ad adstage-","No advertisement to render","6676895EgoTvV","100%","getRenderer","set","video","debug","textContent","isLoaded","objectFit","1px dashed #ccc","Failed to load image: ","8GyVdNy","createPlaceholder","30276729iWchQr","2107500UojBii"];return(Gt=function(){return t})()}function Yt(t,e){const n=Gt();return(Yt=function(t,e){return n[t-=248]})(t,e)}!function(){const t=Yt,e=Gt();for(;;)try{if(878441===-parseInt(t(261))/1+-parseInt(t(250))/2+parseInt(t(267))/3+parseInt(t(289))/4+-parseInt(t(271))/5+-parseInt(t(285))/6*(parseInt(t(300))/7)+parseInt(t(282))/8*(parseInt(t(284))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class qt{constructor(t=!1,e){const n=Yt;this[n(262)]=new Map,this[n(276)]=t,this[n(248)]=e||null,this[n(260)]()}[Wt(260)](){const t=Wt;this[t(262)].set(r.BANNER,new bt(this[t(276)],this[t(248)])),this.renderers[t(274)](r.TEXT,new zt(this.debug,this[t(248)])),this[t(262)][t(274)](r[t(249)],new Bt(this[t(276)],this[t(248)])),this[t(262)][t(274)](r.NATIVE,new Nt(this[t(276)],this[t(248)])),this[t(262)].set(r.INTERSTITIAL,new jt(this[t(276)],this[t(248)])),this[t(276)]&&console[t(254)]("🏭 AdRenderer factory initialized with "+this[t(262)].size+" renderers")}[Wt(288)](t,e){const n=Wt,s=this[n(273)](t[n(298)]),i=document[n(258)](n(294));i[n(259)]=n(269)+String(t[n(298)])[n(290)](),i.setAttribute("data-adstage-ad-id",e._id),i.setAttribute(n(305),t.id);const{width:o,height:a}=s[n(265)](i,t[n(307)]||{},e);switch(i.style[n(310)]=o,i.style[n(313)]=a,i[n(299)][n(302)]="block",t.adType){case r[n(316)]:if(e.imageUrl){const t=document[n(258)]("img");t[n(263)]=e[n(309)],t[n(299)][n(310)]=n(272),t[n(299)][n(313)]="100%",t.style[n(279)]=n(291),i.appendChild(t)}break;case r.VIDEO:if(e[n(264)]){const t=document[n(258)](n(275));t.src=e[n(264)],t.style[n(310)]="100%",t.style[n(313)]=n(272),i[n(253)](t)}break;case r[n(292)]:if(e[n(277)]){const t=document.createElement(n(294));t[n(277)]=e[n(277)]||"",t[n(299)][n(287)]="8px",i[n(253)](t)}break;default:i[n(299)][n(314)]=n(280),i[n(299)][n(308)]=n(257),i[n(277)]=t.adType+n(315)}return i}[Wt(273)](t){const e=Wt,n=this[e(262)][e(306)](t);if(!n)throw new Error("No renderer found for ad type: "+t);return n}[Wt(283)](t,e,n,s,i){const r=Wt;this[r(273)](n)[r(283)](t,e,s,i)}async[Wt(311)](t,e){const n=Wt;if(t[n(298)]!==r[n(316)])return void(this[n(276)]&&console[n(255)](n(252)+t[n(298)]));const s=this[n(273)](r[n(316)]);await s[n(311)](t,e)}async[Wt(312)](t,e){const n=Wt,s=this.getRenderer(t[n(298)]);await s.renderMultipleAds(t,e)}async[Wt(296)](t){const e=Wt;if(!t[e(304)])throw new Error(e(270));const n=this[e(273)](t.adType);await n[e(286)](t,t[e(304)]),t[e(278)]=!0}async[Wt(286)](t,e){const n=Wt,s=this[n(273)](t.adType);await s[n(286)](t,e)}[Wt(303)](t){const e=Wt;this[e(273)](t[e(298)]).renderFallback(t)}[Wt(293)](t){return this[Wt(273)](t).getDefaultHeight()}[Wt(265)](t,e,n,s){const i=Wt;return this[i(273)](e)[i(265)](t,n,s)}[Wt(256)](t){return new Promise((e,n)=>{const s=Yt,i=new Image;i.onload=()=>{const t=Yt;e({width:i.naturalWidth,height:i[t(295)]})},i.onerror=()=>{n(new Error(Yt(281)+t))},i[s(263)]=t})}async renderOptimizedBannerImage(t,e,n){const s=Wt;if(n[s(298)]!==r[s(316)])throw new Error(s(297));const i=this[s(273)](r[s(316)]);return await i[s(251)](t,e,n)}async calculateOptimalContainerSize(t,e,n){const s=Wt;if(n!==r[s(316)]){const t=this[s(273)](n);return{width:s(272),height:t[s(266)](),aspectRatio:16/9}}const i=this.getRenderer(r[s(316)]);return await i[s(301)](t,e)}[Wt(254)](t,...e){const n=Wt;this[n(276)]&&console[n(254)](n(268)+t,...e)}}function Xt(){const t=["handleRemovedElement","Container not found after ","Ad slot not found: ","now","[data-adstage-slot-id]","config","height","NATIVE","warn","onClick","❌ Failed to track viewable impression:","disconnect","text","❌ Failed to find element for viewability tracking: ","muted","✅ Simple viewable impression tracked for ad ","interstitial","createAdInternal","advertisementEventTracker","apiKey","✅ Ad loaded for slot: ","handleViewableEvent","❌ Failed to load ad for slot: ","renderAdSlider","GET","slideInterval","ms... (attempt ","get","🔄 Ad slot refreshed: ","Failed to fetch ad data: ","getBaseUrl","isLoaded","log","destroy","3532YFOyKn","status","viewabilityTracker","data-adstage-slot-id","default","🔄 Retrying viewability tracking for slot: ","customControls","from","🎯 Ads module initialized (sync mode) with auto-cleanup","🗑️ Ad slot destroyed: ","API key not configured","_isReady","refreshAdSlot","5073618fyISsk","controls","1690000nrEbus","894883iSsFzg","random","createAdWithRetry","Failed to refresh ad slot: ","📊 Advertisement event tracking enabled for slot: ","adRenderer",". Retrying in ","undefined","autoSlide"," attempts: ","autoDestroy","getSlotById","error","country","14099571FFUqvb","renderAd"," removed","12iCQnUi","string"," (element found)","VIEWABLE","hideControls","_id","toString","debug","loop","autoplay","language","isReady","BANNER","auto","1743065IsjoAE","🔍 Auto-cleanup MutationObserver enabled","init","observe","8596553ZHaoZP","getAttribute","INTERSTITIAL","deviceType","slots","Ads module not initialized. Call AdStage.init() first.","1851pTPJZf","substr","mutationObserver","append","delete","startSimpleViewabilityTracking","🚫 Advertisement not found with ID: "," ads)","ELEMENT_NODE","trackAdvertisementEvent","TEXT","createAd","ensureReady","advertisements","advertisement","innerHTML","renderFallback","json","_config","querySelectorAll","🗑️ Ads module destroyed","refresh","adId","style","forEach"," ads for type: ","📊 Fetched ","VIDEO","detail","length","banner","New advertisement viewable tracked for slot:","getElementById","getAllSlots","setupAutoCleanup","renderAdElement","destroyModule","fetchAdData"," (attempt ","🧹 Auto-cleanup: slot ","adType","create","setAttribute","width","playsinline"];return(Xt=function(){return t})()}const Zt=Jt;function Jt(t,e){const n=Xt();return(Jt=function(t,e){return n[t-=190]})(t,e)}!function(){const t=Jt,e=Xt();for(;;)try{if(642853===parseInt(t(273))/1+-parseInt(t(257))/2*(-parseInt(t(314))/3)+-parseInt(t(290))/4*(parseInt(t(304))/5)+-parseInt(t(270))/6+-parseInt(t(308))/7+parseInt(t(272))/8+parseInt(t(287))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Qt{constructor(){const t=Jt;this[t(268)]=!1,this[t(196)]=null,this[t(312)]=new Map,this.advertisementEventTracker=null,this[t(278)]=null,this[t(316)]=null}[Zt(306)](t){const e=Zt;this._config=t,this[e(241)]=new V(Z[e(253)](),t[e(242)],t[e(297)]||!1,this[e(312)]),this[e(278)]=new qt(t[e(297)]||!1,this[e(241)]),this[e(212)](),this[e(268)]=!0,t.debug&&console[e(255)](e(265))}[Zt(301)](){return this[Zt(268)]}getConfig(){return this._config}[Zt(208)](t,e){const n=Zt;this[n(190)]();const s={width:e?.[n(221)]||"100%",height:e?.[n(229)]||"auto",autoSlide:e?.[n(281)]||!1,slideInterval:e?.[n(248)]||5e3,onClick:e?.onClick,adId:e?.adId,language:e?.[n(300)],deviceType:e?.[n(311)],country:e?.country};return this[n(325)](t,r[n(302)],s)}[Zt(235)](t,e){const n=Zt;this[n(190)]();const s={maxLines:e?.maxLines||3,style:e?.[n(201)]||n(261),onClick:e?.onClick,adId:e?.[n(200)],language:e?.language,deviceType:e?.[n(311)],country:e?.country};return this[n(325)](t,r[n(324)],s)}video(t,e){const n=Zt;this[n(190)]();const s={width:e?.[n(221)]||640,height:e?.[n(229)]||360,autoplay:void 0===e?.[n(299)]||e[n(299)],muted:void 0===e?.[n(237)]||e[n(237)],loop:void 0===e?.[n(298)]||e.loop,playsinline:!1!==e?.[n(222)],controls:void 0!==e?.[n(271)]&&e[n(271)],hideControls:e?.[n(294)]||!1,customControls:e?.[n(263)],autoSlide:!1,maxAds:1,onClick:e?.[n(232)],...e?.[n(200)]&&{adId:e.adId}};return this[n(325)](t,r[n(205)],s)}native(t,e){const n=Zt;return this[n(190)](),this[n(325)](t,r[n(230)],e||{})}[Zt(239)](t,e){const n=Zt;return this[n(190)](),this.createAd(t,r[n(310)],e||{})}[Zt(199)](t){const e=Zt;this[e(190)]();const n=this[e(312)][e(250)](t);if(!n)throw new Error(e(225)+t);this.refreshAdSlot(n),this[e(196)]?.[e(297)]&&console[e(255)](e(251)+t)}[Zt(256)](t){const e=Zt;this[e(190)]();const n=this[e(312)][e(250)](t);if(!n)return void(this._config?.[e(297)]&&console[e(255)]("🔍 Ad slot already cleaned up: "+t));n[e(259)]&&n[e(259)].destroy();const s=document[e(210)](n.containerId);s&&(s[e(193)]=""),this[e(312)][e(318)](t),this[e(196)]?.[e(297)]&&console[e(255)](e(266)+t)}[Zt(211)](){const t=Zt;return this.ensureReady(),Array[t(264)](this[t(312)].values())}[Zt(284)](t){const e=Zt;return this[e(190)](),this[e(312)][e(250)](t)||null}[Zt(325)](t,e,n){const s=Zt;if(!this[s(196)]?.apiKey)throw new Error(s(267));const i="adstage-"+e+"-"+Date[s(226)]()+"-"+Math[s(274)]()[s(296)](36)[s(315)](2,9);return this[s(275)](t,e,n,i,0),i}async[Zt(275)](t,e,n,s,i){const r=Zt,o=[0,50,100,200,500];let a,c=null;if(typeof t===r(291)){if(a=t,c=document[r(210)](t),!c)return i<4?(this._config?.debug&&console[r(231)]("Container not found: "+t+r(279)+o[i+1]+r(249)+(i+1)+"/5)"),void setTimeout(()=>{this[r(275)](t,e,n,s,i+1)},o[i+1])):void console[r(285)](r(224)+5+r(282)+t)}else c=t,a=c.id||"auto-"+s,!c.id&&(c.id=a);try{this.createAdInternal(a,e,n,s,c)}catch(t){console[r(285)]("광고 생성 중 오류 발생:",t)}}[Zt(240)](t,e,n,s,i){const o=Zt;i[o(220)]("data-adstage-slot-id",s),this.adRenderer?.createPlaceholder(i,s,e,n,this[o(196)]);const a={id:s,containerId:t,adType:e,width:n[o(221)]||"100%",height:n[o(229)]||(e===r[o(324)]?o(303):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[o(215)](e,n).then(t=>t[0]||null),render:t=>this[o(278)]?.[o(213)](a,t),refresh:async()=>this[o(269)](a),destroy:()=>this[o(256)](s)};this.slots.set(s,a),this.loadAdContentInBackground(a),this[o(241)]&&this[o(196)]?.[o(297)]&&console[o(255)](o(277)+s)}async loadAdContentInBackground(t){const e=Zt;try{const n=await this[e(215)](t[e(218)],t[e(228)]);if(!n||0===n.length)return void this[e(278)]?.[e(194)](t);t[e(218)]===r[e(302)]&&n[e(207)]>0&&await(this.adRenderer?.optimizeContainerForBannerAds(t,n)),n[e(207)]>1||t[e(228)]?.[e(281)]?(await(this[e(278)]?.[e(246)](t,n)),this[e(196)]?.debug&&console[e(255)]("🎠 Slider will handle VIEWABLE events for "+n.length+" ads automatically")):(t[e(192)]=n[0],await(this[e(278)]?.[e(213)](t,n[0])),this[e(319)](t,n[0])),t[e(254)]=!0,this[e(196)]?.[e(297)]&&console[e(255)](e(243)+t.id+" ("+n[e(207)]+e(321))}catch(n){console[e(285)](e(245)+t.id,n),this.adRenderer?.[e(194)](t)}}[Zt(319)](t,e){const n=(s=0)=>{const i=Jt,r=document[i(210)](t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this[i(196)]?.[i(297)]&&console.log(i(262)+t.id+i(216)+(s+1)+")")):console[i(231)](i(236)+t.id));const o=new K(r,async()=>{const n=i;await this[n(244)](e,t)});t[i(259)]=o,this[i(196)]?.[i(297)]&&console[i(255)]("🎯 Simple viewability tracking started for slot: "+t.id+i(292))};n()}async[Zt(244)](t,e){const n=Zt;try{this[n(241)]&&(await this[n(241)][n(323)](t[n(295)],e.id,u[n(293)]),this[n(196)]?.debug&&console.log(n(238)+t[n(295)]))}catch(t){console[n(285)](n(233),t)}}async[Zt(215)](t,e){const n=Zt;if(!this._config?.[n(242)])throw new Error("API key not configured");if(e[n(200)]){const t=""+Z[n(191)][n(206)](e[n(200)]),s=await fetch(t,{method:n(247),headers:B.create(this[n(196)][n(242)])});if(!s.ok){if(404===s.status)return console[n(231)](n(320)+e[n(200)]),[];throw new Error(n(252)+s[n(258)])}const i=await s.json();return this[n(196)]?.debug&&console[n(255)]("📊 Fetched specific ad with ID: "+e[n(200)],i),[i]}const s=new URLSearchParams;s[n(317)](n(218),t),e.language&&s.append(n(300),e.language),e[n(311)]&&s[n(317)](n(311),e[n(311)]),e[n(286)]&&s.append(n(286),e[n(286)]);const i=Z.advertisements.list()+"?"+s[n(296)](),r=await fetch(i,{method:n(247),headers:B[n(219)](this[n(196)][n(242)])});if(!r.ok)throw new Error(n(252)+r[n(258)]);const o=(await r[n(195)]()).advertisements||[];return this._config?.[n(297)]&&console[n(255)](n(204)+o[n(207)]+n(203)+t+", filters:",{language:e[n(300)],deviceType:e.deviceType,country:e[n(286)]}),o}async refreshAdSlot(t){const e=Zt;try{const n=await this.fetchAdData(t[e(218)],t[e(228)]||{});n&&n.length>0&&(t.advertisement=n[0],await(this.adRenderer?.[e(288)](t)),this.advertisementEventTracker&&console[e(255)](e(209),t.id))}catch(n){console[e(285)](e(276)+t.id,n)}}[Zt(190)](){const t=Zt;if(!this[t(268)])throw new Error(t(313))}[Zt(212)](){const t=Zt;typeof window!==t(280)&&typeof document!==t(280)&&(this[t(316)]&&this.mutationObserver[t(234)](),this.mutationObserver=new MutationObserver(e=>{const n=t;e[n(202)](t=>{const e=n;t.removedNodes[e(202)](t=>{const n=e;t.nodeType===Node[n(322)]&&this[n(223)](t)})})}),this[t(316)][t(307)](document.body,{childList:!0,subtree:!0}),this[t(196)]?.debug&&console[t(255)](t(305)))}[Zt(223)](t){const e=Zt,n=t[e(309)](e(260));if(n)return void this[e(283)](n);t[e(197)](e(227))[e(202)](t=>{const n=e,s=t[n(309)]("data-adstage-slot-id");s&&this[n(283)](s)})}autoDestroy(t){const e=Zt,n=this[e(312)][e(250)](t);if(n)try{n.viewabilityTracker&&n[e(259)].destroy(),this[e(312)][e(318)](t),this._config?.[e(297)]&&console[e(255)](e(217)+t+e(289))}catch(n){this[e(196)]?.debug&&console[e(231)]("Auto-cleanup failed for slot "+t+":",n)}}[Zt(214)](){const t=Zt,e=this[t(196)]?.debug;this[t(316)]&&(this.mutationObserver.disconnect(),this[t(316)]=null),this[t(312)].clear(),this[t(241)]=null,this[t(278)]=null,this._isReady=!1,this[t(196)]=null,e&&console[t(255)](t(198))}}var $t=te;function te(t,e){var n=ee();return(te=function(t,e){return n[t-=237]})(t,e)}function ee(){var t=["log","20741292NvxWej","2nvFGIo","2392545GUEVsl","updateConfig","debug","API key not available","_organizationInfo","getConfig","apiKey","4926aESKCR","4qjlIrj","9EUaIwo","6581928knJiBF","init","✅ Config module initialized (sync mode)","getApiEndpoint","Config module not initialized","includes","getOrganizationInfo","modules","728341ryxpXb","isModuleEnabled","ads","create","isDebugMode","getBaseUrl","6301540GSAYyA","🔄 Config updated","baseUrl","_config","4921RiQUVs","development","getApiHeaders","isReady","1583286vnuPBA","getEnabledModules"];return(ee=function(){return t})()}!function(){for(var t=te,e=ee();;)try{if(436734===parseInt(t(249))/1*(-parseInt(t(267))/2)+parseInt(t(263))/3+-parseInt(t(239))/4*(parseInt(t(268))/5)+parseInt(t(238))/6*(-parseInt(t(259))/7)+-parseInt(t(241))/8*(parseInt(t(240))/9)+parseInt(t(255))/10+parseInt(t(266))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=te;this._isReady=!1,this[t(258)]=null,this[t(272)]=null}[$t(242)](t){var e=$t;this[e(258)]={timeout:3e4,debug:!1,modules:[e(251),"events","config"],...t},t[e(257)]&&Z.setBaseUrl(t[e(257)]),this._isReady=!0,t[e(270)]&&console.log(e(243),{modules:this[e(258)][e(248)],endpoint:Z.getBaseUrl(),mode:e(260)})}[$t(262)](){return this._isReady}[$t(273)](){return this[$t(258)]}[$t(247)](){return this._organizationInfo}[$t(244)](){return Z[$t(254)]()}[$t(253)](){var t=$t;return this[t(258)]?.[t(270)]||!1}[$t(264)](){var t=$t;return this[t(258)]?.[t(248)]||[]}[$t(250)](t){var e=$t;return this[e(264)]()[e(246)](t)}[$t(269)](t){var e=$t;if(!this[e(258)])throw new Error(e(245));this[e(258)]={...this[e(258)],...t},this[e(253)]()&&console[e(265)](e(256),t)}[$t(261)](){var t=$t;if(!this[t(258)]?.[t(237)])throw new Error(t(271));return B[t(252)](this[t(258)][t(237)])}}const se=ie;function ie(t,e){const n=oe();return(ie=function(t,e){return n[t-=465]})(t,e)}!function(){const t=ie,e=oe();for(;;)try{if(140888===-parseInt(t(496))/1+parseInt(t(492))/2+parseInt(t(500))/3+-parseInt(t(494))/4+-parseInt(t(466))/5*(-parseInt(t(470))/6)+parseInt(t(495))/7*(-parseInt(t(468))/8)+-parseInt(t(474))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class re{static getDeviceInfo(){const t=ie;return{...re.getAutoDetectedDeviceInfo(),...re[t(465)]}}static[se(487)](){const t=se;if(!k[t(497)]())return{category:t(483),platform:t(471),model:t(471),osVersion:t(471)};const e=navigator[t(491)][t(475)]();let n="desktop";/tablet|ipad/.test(e)?n="tablet":L[t(481)]()&&(n=t(485));const s=L[t(499)]();return{category:n,platform:re[t(480)](s),model:navigator[t(478)],osVersion:navigator[t(478)],deviceId:L[t(498)]()}}static setDeviceInfo(t){const e=se;re[e(465)]={...re[e(465)],...t}}static[se(484)](t,e){re._userProvidedDeviceInfo[t]=e}static[se(490)](){re[se(465)]={}}static[se(476)](){return{...re._userProvidedDeviceInfo}}static[se(480)](t){const e=se;switch(t){case e(493):return e(477);case e(501):return"Android";case"web":return"Mobile Web";case"desktop":return e(467);default:return e(488)}}static[se(472)](){const t=se;if(!k.isBrowser())return{userAgent:"SSR",language:t(489),platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(473),viewportSize:t(473)};const e=k.getViewportInfo();return{userAgent:navigator[t(491)],language:navigator[t(486)]||t(489),platform:navigator[t(478)],cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(479)],screenResolution:screen[t(469)]+"x"+screen[t(482)],viewportSize:e.width+"x"+e[t(482)]}}}function oe(){const t=["5496EmkvEh","android","_userProvidedDeviceInfo","696655hkqBbB","Desktop Web","115208WWczOS","width","12oqDdTQ","SSR","getDetailedInfo","0x0","9054wAopRc","toLowerCase","getUserDeviceInfo","iOS","platform","onLine","mapPlatformForEvents","isMobile","height","other","setDeviceProperty","mobile","language","getAutoDetectedDeviceInfo","Unknown","ko-KR","clearDeviceInfo","userAgent","451696miBwfu","ios","77684lfUfmH","84VWXDDx","172215RAFsKe","isBrowser","generateDeviceId","getPlatform"];return(oe=function(){return t})()}re[se(465)]={};const ae=ce;function ce(t,e){const n=le();return(ce=function(t,e){return n[t-=457]})(t,e)}!function(){const t=ce,e=le();for(;;)try{if(416481===-parseInt(t(462))/1*(parseInt(t(460))/2)+-parseInt(t(469))/3*(-parseInt(t(463))/4)+-parseInt(t(461))/5+parseInt(t(470))/6+parseInt(t(464))/7+parseInt(t(477))/8+-parseInt(t(471))/9*(parseInt(t(476))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class de{static[ae(459)](){return{...de.getBaseUserInfo(),...de._userProperties}}static getBaseUserInfo(){const t=ae;if(!k[t(472)]())return{language:t(479),country:"KR"};const e=navigator[t(474)]||t(479);return{language:e,country:de[t(468)](e)}}static[ae(468)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t[ae(473)]("-")[0]]||"KR"}static[ae(475)](t){const e=ae;de[e(458)]={...de[e(458)],...t}}static[ae(480)](t,e){de._userProperties[t]=e}static[ae(457)](){de._userProperties={}}static getCurrentUserProperties(){return{...de[ae(458)]}}static[ae(466)](){const t=ae;if(!k[t(472)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(465)]()[t(467)]()[t(478)];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=["clearUserProperties","_userProperties","getUserInfo","37670XYYOki","2250195SRxwuY","6aqifrR","152eytsuF","4740491umRItb","DateTimeFormat","estimateLocation","resolvedOptions","extractCountryFromLanguage","21582PRlzMw","2680878OWOmkc","8597871yiArLx","isBrowser","split","language","setUserProperties","10dulIRT","4299608zjoeVL","timeZone","ko-KR","setUserProperty"];return(le=function(){return t})()}de[ae(458)]={};const ue=fe;!function(){const t=fe,e=he();for(;;)try{if(931850===parseInt(t(465))/1+parseInt(t(463))/2+-parseInt(t(412))/3+parseInt(t(420))/4+parseInt(t(408))/5*(-parseInt(t(435))/6)+-parseInt(t(462))/7*(parseInt(t(445))/8)+-parseInt(t(449))/9*(-parseInt(t(415))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class pe{static captureFromUrl(){const t=fe;if(typeof window===t(404))return null;const e=new URLSearchParams(window[t(461)][t(456)]),n={};let s=!1;const i=e[t(403)](t(459));if(i)try{const e=decodeURIComponent(i),r=new URLSearchParams(e);for(const e of pe[t(401)]){const i=r[t(403)](e);i&&(n[e]=i,s=!0)}r[t(403)](t(423))===t(467)&&(s=!0)}catch(t){console.warn("Failed to parse adstage_referrer:",t)}for(const i of pe.ALL_KEYS){if(n[i])continue;const r=e[t(403)](i);r&&(n[i]=r,s=!0)}return s?(n[t(464)]||(n[t(451)]?n[t(464)]=t(439):n[t(469)]?n[t(464)]=t(453):n.ttclid?n[t(464)]=t(421):n[t(425)]?n.channel=t(406):n.liclid?n[t(464)]=t(442):n[t(431)]?n[t(464)]=t(405):n.twclid&&(n[t(464)]=t(437))),pe[t(443)](n),n):null}static[ue(443)](t){const e=ue;if(typeof window!==e(404))try{const n={...pe[e(403)](),...t},s=JSON.stringify(n);try{sessionStorage[e(407)](pe[e(444)],s)}catch(t){}try{localStorage[e(407)](pe[e(444)],s)}catch(t){}}catch(t){console[e(433)](e(418),t)}}static get(){const t=ue;if(typeof window===t(404))return null;try{const e=sessionStorage?.getItem(pe[t(444)]);if(e)return JSON.parse(e)}catch(t){}try{const e=localStorage?.[t(410)](pe[t(444)]);if(e)return JSON.parse(e)}catch(t){}return null}static[ue(450)](){const t=ue;if(typeof window!==t(404)){try{sessionStorage?.[t(416)](pe.STORAGE_KEY)}catch(t){}try{localStorage?.removeItem(pe[t(444)])}catch(t){}}}static[ue(414)](){const t=ue,e=pe.get();return null!==e&&Object[t(441)](e)[t(411)]>0}static[ue(417)](){const t=ue,e=pe[t(403)]();return!!e&&pe.CLICK_ID_KEYS[t(419)](t=>e[t])}static shouldSendClickEvent(){const t=ue;if(typeof window===t(404))return!1;const e=pe[t(403)]();if(!e)return!1;const n=pe[t(417)](),s=!!e[t(464)];if(!n&&!s)return!1;const i=n?e[t(451)]||e[t(469)]||e[t(428)]||e.nclid||e[t(440)]||e[t(431)]||e[t(458)]:(e.channel||"")+":"+(e[t(427)]||"");if(!i)return!1;return i!==sessionStorage[t(410)](t(447))&&(sessionStorage.setItem(t(447),i),!0)}static[ue(455)](){const t=ue;typeof window!==t(404)&&sessionStorage[t(407)](t(452),t(467))}static[ue(409)](){return"undefined"!=typeof window&&"true"===sessionStorage[ue(410)]("adstage_click_event_sent")}static[ue(413)](){const t=ue,e=pe[t(403)]();if(!e)return null;const n={};return e.gclid&&(n[t(451)]=e[t(451)]),e[t(469)]&&(n[t(469)]=e.fbclid),e[t(428)]&&(n.ttclid=e[t(428)]),e[t(425)]&&(n.nclid=e[t(425)]),e[t(464)]&&(n.channel=e[t(464)]),e[t(430)]&&(n[t(430)]=e.campaign),e[t(468)]&&(n.campaignId=e[t(468)]),e[t(446)]&&(n.adGroup=e.ad_group),e[t(400)]&&(n[t(432)]=e.ad_group_id),e[t(438)]&&(n[t(422)]=e.ad_creative),e.creative_id&&(n[t(436)]=e[t(448)]),e.term&&(n[t(427)]=e[t(427)]),e[t(402)]&&(n[t(402)]=e[t(402)]),e[t(457)]&&(n[t(457)]=e[t(457)]),e[t(454)]&&(n[t(454)]=e[t(454)]),e.utm_content&&(n[t(424)]=e[t(424)]),e[t(460)]&&(n[t(460)]=e[t(460)]),Object.keys(n)[t(411)]>0?n:null}}function he(){const t=["ALL_KEYS","utm_source","get","undefined","microsoft.ads","naver.searchad","setItem","20WqrkYF","isClickEventSent","getItem","length","4739580zUzqmg","toAttributionObject","hasParams","4918970XqtEsf","removeItem","hasClickId","Failed to store tracking params:","some","3554496oWJHBF","tiktok.ads","adCreative","adstage","utm_content","nclid","CAMPAIGN_KEYS","term","ttclid","UTM_KEYS","campaign","msclkid","adGroupId","warn","adstage_tracking_params","730038xuveyj","creativeId","twitter.ads","ad_creative","google.ads","liclid","keys","linkedin.ads","store","STORAGE_KEY","2027664ZYgrXc","ad_group","adstage_last_click_id","creative_id","18lRpDMP","clear","gclid","adstage_click_event_sent","meta.ads","utm_campaign","markClickEventSent","search","utm_medium","twclid","adstage_referrer","utm_term","location","35ABLXPu","2585864WSEgNT","channel","1100342GRfleL","CLICK_ID_KEYS","true","campaign_id","fbclid","ad_group_id"];return(he=function(){return t})()}function fe(t,e){const n=he();return(fe=function(t,e){return n[t-=400]})(t,e)}pe[ue(444)]=ue(434),pe[ue(466)]=[ue(451),ue(469),ue(428),ue(425),ue(440),"msclkid",ue(458)],pe[ue(426)]=[ue(464),"campaign",ue(468),ue(446),ue(400),ue(438),ue(448),ue(427)],pe[ue(429)]=[ue(402),ue(457),"utm_campaign","utm_content",ue(460)],pe[ue(401)]=[...pe.CLICK_ID_KEYS,...pe[ue(426)],...pe[ue(429)]];const ge=Ie;function me(){const t=["📡 Attribution request URL:","_isReady","POST","❌ Failed to register attribution:","adstage_attribution_id","init","417474YrxJro","setItem","registerAttribution","102996VtfiKO","setDeviceInfo","attributionId","getUserProperties","🔑 Attribution request headers:","create","toAttributionObject","✅ Event tracked with attribution ID:","getAttributionId","getDeviceInfo","API key not configured for attribution registration.","statusText","error","text","3897636KXZeGJ","setUserProperties","698wsqZRh","getUserInfo","323672WKHcXY","setDeviceProperty","json","❌ API Error Response:","_config","👤 User properties set:","sendAttributionToServer","API key not configured for event tracking.","8745yDGSok","1220KIwEko","Event tracking failed: ","3tMKmaZ","events","getUserDeviceInfo","📦 Attribution request body:","clearDeviceInfo","application/json","getItem","38322LELaGw","355KYSBSO","getCurrentUserProperties","sendEventToServer","Events module not initialized. Call AdStage.init() first.","debug","warn","Attribution registration failed: ","apiKey","track","log","55TcbkuH","📱 Device info set:","get","28XDJEOd","Event data:","isReady","stringify","status"];return(me=function(){return t})()}function Ie(t,e){const n=me();return(Ie=function(t,e){return n[t-=453]})(t,e)}!function(){const t=Ie,e=me();for(;;)try{if(191750===parseInt(t(468))/1*(parseInt(t(511))/2)+-parseInt(t(460))/3*(-parseInt(t(495))/4)+parseInt(t(478))/5*(-parseInt(t(467))/6)+-parseInt(t(481))/7*(parseInt(t(513))/8)+parseInt(t(492))/9+parseInt(t(458))/10*(-parseInt(t(457))/11)+parseInt(t(509))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ye{constructor(){const t=Ie;this._isReady=!1,this[t(453)]=null}[ge(491)](t){const e=ge;this[e(453)]=t,this[e(487)]=!0,t[e(472)]&&console[e(477)]("📊 Events module initialized")}[ge(483)](){return this[ge(487)]}getConfig(){return this[ge(453)]}[ge(510)](t){const e=ge;de[e(510)](t),this._config?.[e(472)]&&console[e(477)](e(454),t)}[ge(498)](){return de[ge(469)]()}[ge(496)](t){const e=ge;re[e(496)](t),this[e(453)]?.[e(472)]&&console[e(477)](e(479),t)}[ge(514)](t,e){const n=ge;re[n(514)](t,e),this[n(453)]?.[n(472)]&&console[n(477)]("📱 Device property set:",t,e)}clearDeviceInfo(){const t=ge;re[t(464)](),this._config?.[t(472)]&&console[t(477)]("📱 User provided device info cleared")}getUserDeviceInfo(){return re[ge(462)]()}getDeviceInfo(){return re[ge(504)]()}[ge(512)](){return de[ge(512)]()}[ge(469)](){return de.getCurrentUserProperties()}async[ge(476)](t,e){const n=ge;if(this._isReady)if(this[n(453)]?.[n(475)])try{const s=this[n(503)]();if(s){const i={eventName:t,sdkVersion:C(),device:re[n(504)](),user:de[n(512)](),attributionId:s,params:e||{}};return await this[n(470)](i),void(this[n(453)][n(472)]&&console[n(477)](n(502),t,s))}const i=pe[n(501)](),r={eventName:t,sdkVersion:C(),device:re[n(504)](),user:de[n(512)](),...i&&{attribution:i},params:e||{}};await this[n(470)](r),this[n(453)][n(472)]&&(console[n(477)]("✅ Event tracked:",t,e),i&&console[n(477)]("📊 Attribution included:",i))}catch(s){console[n(507)]("❌ Failed to track event:",s),this._config[n(472)]&&console.error(n(482),{eventName:t,properties:e})}else console[n(473)](n(456));else console.warn(n(471))}async[ge(494)](t){const e=ge;if(!this[e(487)])return console[e(473)](e(471)),null;if(!this._config?.[e(475)])return console[e(473)](e(505)),null;try{const n=pe[e(480)]();if(!n||0===Object.keys(n).length)return this[e(453)][e(472)]&&console.log("⏭️ No tracking parameters found, skipping attribution registration"),null;const s=await this.sendAttributionToServer({deviceId:t,referrerParams:n});if(this._config.debug&&console[e(477)]("✅ Attribution registered:",s),s[e(497)]){try{localStorage[e(493)](e(490),s[e(497)])}catch(t){}try{sessionStorage[e(493)](e(490),s[e(497)])}catch(t){}}return s}catch(t){return console[e(507)](e(489),t),null}}[ge(503)](){const t=ge;if("undefined"==typeof window)return null;try{const e=sessionStorage[t(466)](t(490));if(e)return e}catch(t){}try{return localStorage[t(466)](t(490))}catch(t){}return null}async trackWithAttributionId(t,e){return this.track(t,e)}async[ge(470)](t){const e=ge,n={...B[e(500)](this[e(453)].apiKey),"Content-Type":e(465)};this[e(453)]?.debug&&(console.log("🔑 Request headers:",n),console[e(477)]("📡 Request URL:",Z[e(461)][e(476)]()),console[e(477)]("📦 Request body:",t));const s=await fetch(Z[e(461)][e(476)](),{method:e(488),headers:n,body:JSON[e(484)](t)});if(!s.ok){const t=await s.text();throw console.error(e(516),t),new Error(e(459)+s[e(485)]+" "+s.statusText)}}async[ge(455)](t){const e=ge,n={...B[e(500)](this[e(453)][e(475)]),"Content-Type":e(465)};this[e(453)]?.[e(472)]&&(console[e(477)](e(499),n),console[e(477)](e(486),Z[e(461)][e(494)]()),console[e(477)](e(463),t));const s=await fetch(Z[e(461)][e(494)](),{method:e(488),headers:n,body:JSON.stringify(t)});if(!s.ok){const t=await s[e(508)]();throw console[e(507)](e(516),t),new Error(e(474)+s[e(485)]+" "+s[e(506)])}return s[e(515)]()}}const ve=be;function be(t,e){const n=ke();return(be=function(t,e){return n[t-=107]})(t,e)}!function(){const t=be,e=ke();for(;;)try{if(522953===parseInt(t(121))/1+parseInt(t(130))/2*(-parseInt(t(133))/3)+-parseInt(t(158))/4*(-parseInt(t(182))/5)+-parseInt(t(176))/6+parseInt(t(146))/7+-parseInt(t(169))/8+parseInt(t(128))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class we{constructor(){const t=be;this[t(127)]=!1,this[t(163)]=null,this.config=new ne,this[t(150)]=new Qt,this[t(160)]=new ye}static[ve(168)](t){const e=ve;!we.instance&&(we[e(142)]=new we);const n=we[e(142)];if(!t[e(165)])throw new Error(e(161));n._config={timeout:3e4,debug:!1,modules:["ads",e(160),e(179)],...t},n[e(163)][e(197)]&&(Z[e(112)](n[e(163)][e(197)]),t.debug&&console[e(175)](e(114),n._config[e(197)]));const s=n[e(163)].modules||[e(150),e(160),e(179)];for(const t of s){const s=n[t];s&&typeof s[e(168)]===e(126)&&s.init(n[e(163)])}if(n._isInitialized=!0,typeof window!==e(181)){const s=pe[e(171)]();s&&t.debug&&console[e(175)](e(119),s);const i=(()=>{const t=e;try{const e=new URLSearchParams(window[t(120)].search),n=new URLSearchParams((window[t(120)][t(117)]||"").replace(/^#/,""));return e[t(151)](t(135))||n[t(151)](t(135))}catch{return null}})();if(i)try{localStorage[e(152)](e(129),i),t[e(162)]&&console[e(175)](e(187),i)}catch(t){}const r=pe[e(184)]();t[e(162)]&&(console[e(175)](e(136),r),!r&&console[e(175)](e(195)));const o=pe[e(107)](),a=!(!s||!s[e(189)]);if(!i&&s&&(o||a)){const s=(async()=>{const s=e;try{const e=n[s(188)](),i=await n[s(160)].registerAttribution(e);return i&&t[s(162)]&&console.log(s(143),{attributionId:i.attributionId,channel:i.channel,campaign:i[s(108)],expiresAt:i[s(132)]}),i}catch(t){return console[s(167)](s(186),t),null}})();r&&s.then(s=>{const i=e;try{const e=pe[i(151)](),r=pe[i(140)]();t[i(162)]&&console[i(175)](i(139),{attributionId:s?.attributionId,hasAttribution:!!s}),n[i(160)][i(194)](i(174),{_autoGenerated:!0,_source:"tracking_params",_timestamp:(new Date)[i(123)](),_platform:i(122)})[i(178)](()=>{const n=i;pe[n(154)](),t[n(162)]&&console[n(175)]("✅ Auto-tracked click event with tracking params:",{attribution:r,trackingParams:e})})[i(138)](t=>{const e=i;console.error(e(153),t)})}catch(t){console[i(167)](i(110),t)}})}else r&&setTimeout(()=>{const s=e;try{const e=pe[s(151)](),i=pe[s(140)]();n[s(160)][s(194)](s(174),{_autoGenerated:!0,_source:s(131),_timestamp:(new Date)[s(123)](),_platform:s(122)}).then(()=>{const n=s;pe.markClickEventSent(),t[n(162)]&&console[n(175)]("✅ Auto-tracked click event with tracking params:",{attribution:i,trackingParams:e})}).catch(t=>{const e=s;console.error(e(153),t)})}catch(t){console[s(167)]("❌ Error in click event auto-tracking:",t)}},100)}t[e(162)]&&console.log(e(116),{version:e(137),modules:s,apiKey:t[e(165)][e(191)](0,8)+"...",mode:"development"})}static[ve(156)](){const t=ve;return we[t(142)]?._isInitialized||!1}static[ve(118)](){const t=ve;return we[t(142)]?.[t(163)]||null}static[ve(177)](){const t=ve;if(!we[t(142)])throw new Error(t(134));return we.instance}static get ads(){const t=ve;try{return we[t(177)]().ads}catch(e){throw console.warn(t(149)),e}}static get[ve(160)](){const t=ve;try{return we[t(177)]().events}catch(e){throw console[t(164)](t(192)),e}}static get[ve(179)](){const t=ve;try{return we[t(177)]()[t(179)]}catch(e){throw console[t(164)](t(115)),e}}static reset(){const t=ve;we[t(142)]&&(we.instance[t(127)]=!1,we[t(142)][t(163)]=null)}[ve(188)](){const t=ve;if(typeof window===t(181))return t(180)+Math[t(183)]()[t(145)](36)[t(191)](2,15);const e=localStorage[t(109)](t(111));if(e)return e;const n=[navigator.userAgent,navigator[t(166)],screen[t(144)]+"x"+screen[t(173)],(new Date)[t(147)](),navigator[t(113)]||0][t(159)]("|");let s=0;for(let e=0;e<n[t(196)];e++){s=(s<<5)-s+n[t(172)](e),s&=s}const i=t(124)+Math.abs(s)[t(145)](36)+"-"+Date.now().toString(36);return localStorage[t(152)](t(111),i),i}}function ke(){const t=["debug","_config","warn","apiKey","language","error","init","8040848UUmoDE",")의 viewable 추적 초기화됨","captureFromUrl","charCodeAt","height","click","log","3222234CxdEVT","getInstance","then","config","server-","undefined","120cBlSTM","random","shouldSendClickEvent","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","❌ Failed to register attribution:","🔗 Using attributionId from URL (attribution_id):","generateDeviceId","channel","📊 AdStage Debug: 현재 viewable 추적 상태","substring","AdStage.events accessed before initialization","from","track","⏭️ Skipping click event (duplicate or no click ID)","length","baseUrl","hasClickId","campaign","getItem","❌ Error in click event auto-tracking:","adstage_device_id","setBaseUrl","hardwareConcurrency","🌐 API endpoint configured:","AdStage.config accessed before initialization","🚀 AdStage SDK initialized (sync mode)","hash","getConfig","📊 Tracking parameters captured:","location","772453RMmaOL","web","toISOString","web-","clear","function","_isInitialized","14955435wXnjZz","adstage_attribution_id","178aliZPL","tracking_params","expiresAt","21849HRmJxl","AdStage not initialized. Call AdStage.init() first.","attribution_id","🔍 Should send click event:","2.0.0","catch","🎯 Sending click event after attribution registration","toAttributionObject","✅ AdStage Debug: 광고 ","instance","✅ Attribution registered:","width","toString","286923fWhjkN","getTimezoneOffset","size","AdStage.ads accessed before initialization","ads","get","setItem","❌ Failed to auto-track click event:","markClickEventSent","viewableTracker","isReady","clearAdViewable","39688QRujgH","join","events","API key is required for AdStage initialization"];return(ke=function(){return t})()}function Ee(t,e){var n=xe;return we.isReady()?we[n(382)][n(377)](t,e):(console[n(392)]("AdStage not initialized. Call AdStage.init() first."),Promise[n(388)]())}function xe(t,e){var n=Ce();return(xe=function(t,e){return n[t-=376]})(t,e)}function Se(t){var e=xe;we.isReady()?we[e(382)][e(391)](t):console.warn(e(378))}function Ae(){var t=xe;if(we[t(380)]())return we[t(382)].getUserProperties();console.warn(t(378))}function Ce(){var t=["88jXafEq","track","AdStage not initialized. Call AdStage.init() first.","531787fpyvLe","isReady","15cdrfta","events","3036XDJijM","59633RpeIxO","45HxzLCx","430090SrBIUA","788724XWNjmB","resolve","8047jxxYHw","876402YTPTap","setUserProperties","warn","5310547YpLdTf","2GgwSlq","6kFvHQV"];return(Ce=function(){return t})()}we.debug={clearAllViewable:()=>{const t=ve;ut[t(125)](),console[t(175)](t(185))},clearAdViewable:(t,e)=>{const n=ve;ut[n(157)](t,e),console[n(175)](n(141)+t+"("+e+n(170))},getViewableStatus:()=>{const t=ve;console[t(175)](t(190),{trackedCount:ut[t(155)][t(148)],trackedItems:Array[t(193)](ut[t(155)])})}},function(){for(var t=xe,e=Ce();;)try{if(318192===parseInt(t(379))/1*(-parseInt(t(394))/2)+parseInt(t(395))/3*(parseInt(t(387))/4)+-parseInt(t(381))/5*(-parseInt(t(390))/6)+-parseInt(t(384))/7*(parseInt(t(376))/8)+parseInt(t(385))/9*(-parseInt(t(386))/10)+parseInt(t(393))/11+-parseInt(t(383))/12*(parseInt(t(389))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Te=e(null);function Re({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&we.reset(),we.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};s(()=>{i&&!r&&u(i)},[i,r]);const p={isInitialized:r,config:a,initialize:u,reset:()=>{try{we.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Te.Provider,{value:p,children:e})}function De(){const t=i(Te);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Le(){const{isInitialized:t}=De();return t?we:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function ze(t,e){var n=Pe();return(ze=function(t,e){return n[t-=448]})(t,e)}function Pe(){var t=["1788303sbRrUF","521004FlxnOa","4bNKKFo","459613zBuUzE","497833IcuDxI","15582830NkGoCf","7803792NDBKof","72kAbvVl","2FwgJob","2325265YGvGun"];return(Pe=function(){return t})()}function Be(){const t=["277172kaBdZc","39292wovVJr","ads","1112604VyhVLc","config","8830xijnup","1770354CtMhOH","192330euQnql","2430544fsaKuE","events","undefined","AdStage","351BUywac","30uRALLl","1626yscatG"];return(Be=function(){return t})()}function _e(t,e){const n=Be();return(_e=function(t,e){return n[t-=253]})(t,e)}!function(){for(var t=ze,e=Pe();;)try{if(631971===parseInt(t(448))/1*(parseInt(t(452))/2)+-parseInt(t(454))/3+-parseInt(t(456))/4*(parseInt(t(453))/5)+-parseInt(t(455))/6+-parseInt(t(457))/7*(-parseInt(t(451))/8)+-parseInt(t(450))/9+parseInt(t(449))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ue=_e;!function(){const t=_e,e=Be();for(;;)try{if(350802===-parseInt(t(254))/1*(parseInt(t(266))/2)+parseInt(t(259))/3+parseInt(t(256))/4+-parseInt(t(258))/5*(-parseInt(t(267))/6)+parseInt(t(253))/7+parseInt(t(261))/8+-parseInt(t(265))/9*(parseInt(t(260))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Me="2.0.0",Oe=[Ue(255),Ue(262),Ue(257)];typeof window!==Ue(263)&&(window[Ue(264)]=we);export{we as AdStage,Re as AdStageProvider,Me as SDK_VERSION,Oe as SUPPORTED_MODULES,pe as TrackingParamsModule,Ae as getUserProperties,Se as setUserProperties,Ee as track,De as useAdStageContext,Le as useAdStageInstance};