@adstage/web-sdk 3.0.14 → 3.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.standalone.js +2 -2
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
- package/src/modules/tracking/tracking-params.ts +20 -1
- package/src/utils/api-headers.ts +13 -22
package/dist/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as s,useContext as i}from"react";var r,o,a,c,d,l,u,p,h,f,g,m;function I(){var t=["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};
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as r,useContext as i}from"react";function s(){var t=["1091094pjalQj","975061rTtgTZ","DESKTOP","56EbMQpZ","445053OBQtQn","MOBILE","VIDEO","26764956VgLzIp","6khkKrk","TEXT","5601785ZrlANq","3608124muxnus","9564984LAhysg","POPUP","INTERSTITIAL","CLICK","VIEWABLE","WEB","BANNER"];return(s=function(){return t})()}var o,a,c,d,l,u,p,h,f,g,m,I;function v(t,e){var n=s();return(v=function(t,e){return n[t-=469]})(t,e)}!function(){for(var t=v,e=s();;)try{if(924558===-parseInt(t(473))/1+-parseInt(t(472))/2*(parseInt(t(480))/3)+-parseInt(t(483))/4+-parseInt(t(482))/5+parseInt(t(484))/6+parseInt(t(476))/7*(parseInt(t(475))/8)+parseInt(t(479))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(a=o||(o={}))[(c=v)(471)]="BANNER",a[c(485)]=c(485),a[c(486)]=c(486),a.NATIVE="NATIVE",a[c(478)]=c(478),a[c(481)]=c(481),(l=d||(d={}))[(u=v)(470)]=u(470),l[u(477)]=u(477),(h=p||(p={}))[(f=v)(469)]=f(469),h[f(487)]=f(487),(m=g||(g={}))[(I=v)(474)]="DESKTOP",m[I(477)]=I(477),m.TABLET="TABLET";const y=b;function b(t,e){const n=w();return(b=function(t,e){return n[t-=496]})(t,e)}function w(){const t=['❌ 컨테이너를 찾을 수 없습니다: "',"waitForElements","safeAppendChild","isSSR","ms)","✅ 컨테이너 발견: ","add","getViewportInfo","href","⏳ 컨테이너 대기 시작: ","documentElement","location","remove","isDOMReady","safeQuerySelectorAll","devicePixelRatio","getPageInfo","safeRemoveChild","waitForDOM","safeAddClass","safeSetTextContent","pageXOffset",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"textContent","✅ 컨테이너 즉시 발견: ","2372254jknaLW","log","safeQuerySelector","⏳ 컨테이너 대기 중: ","ms (",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"번째 시도, ","940qDIttH","classList","safeWindowOpen","querySelectorAll","error","DOMContentLoaded","2332698WLhpTy","removeEventListener","entries","getElementById","9231100vTqLoo","removeChild","safeGetComputedStyle","innerWidth","canUseDOM","getWindowProperty","96YhYEEr","waitForElement","13444434gxMbeQ","innerHTML","DOM을 사용할 수 없는 환경입니다.","from","appendChild","readyState","safeRemoveEventListener","all","getScrollInfo","37464OJFajI"," (최대 ","244230uwvNbN","pageYOffset","번 시도)","referrer","safeSetInnerHTML","map","getDocumentProperty","scrollTop","ms 경과)","safeAddEventListener","3PtJHyn","title","loading","5230zdadZz","min","isBrowser","safeCreateElement","undefined","forEach"];return(w=function(){return t})()}!function(){const t=b,e=w();for(;;)try{if(868788===parseInt(t(531))/1+-parseInt(t(497))/2*(-parseInt(t(543))/3)+-parseInt(t(504))/4*(-parseInt(t(546))/5)+parseInt(t(510))/6+-parseInt(t(533))/7*(parseInt(t(520))/8)+-parseInt(t(522))/9+parseInt(t(514))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{static isBrowser(){return"undefined"!=typeof window&&typeof document!==b(550)}static[y(555)](){return!this[y(548)]()}static[y(518)](){const t=y;return this[t(548)]()&&void 0!==document[t(527)]}static safeGetElementById(t){const e=y;return this[e(518)]()?document[e(513)](t):null}static[y(499)](t){return this[y(518)]()?document.querySelector(t):null}static[y(566)](t){const e=y;return this.canUseDOM()?Array[e(525)](document[e(507)](t)):[]}static[y(549)](t){return this[y(518)]()?document.createElement(t):null}static[y(542)](t,e,n,r){this[y(518)]()&&t&&t.addEventListener(e,n,r)}static[y(528)](t,e,n,r){const i=y;this[i(518)]()&&t&&t[i(511)](e,n,r)}static[y(519)](t,e){return this[y(548)]()?window[t]??e:e}static[y(539)](t,e){return this.canUseDOM()?document[t]??e:e}static[y(506)](t,e,n){return this[y(548)]()?window.open(t,e,n):null}static[y(516)](t){return this[y(548)]()&&t?window.getComputedStyle(t):null}static[y(565)](){const t=y;return!!this.canUseDOM()&&document[t(527)]!==t(545)}static[y(570)](){return new Promise(t=>{const e=b;this[e(518)]()?this[e(565)]()?t():this.safeAddEventListener(document,e(509),()=>t()):t()})}static safeApplyStyles(t,e){const n=y;this[n(518)]()&&t&&Object[n(512)](e)[n(551)](([e,n])=>{t.style.setProperty(e,n)})}static[y(571)](t,e){const n=y;this[n(518)]()&&t&&t[n(505)][n(558)](e)}static safeRemoveClass(t,e){const n=y;this[n(518)]()&&t&&t[n(505)][n(564)](e)}static[y(572)](t,e){const n=y;this.canUseDOM()&&t&&(t[n(575)]=e)}static[y(537)](t,e){const n=y;this.canUseDOM()&&t&&(t[n(523)]=e)}static[y(554)](t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(526)](e)}static[y(569)](t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(515)](e)}static[y(568)](){const t=y;return{url:this.getWindowProperty(t(563),{href:""})[t(560)],title:this.getDocumentProperty(t(544),""),referrer:this.getDocumentProperty(t(536),"")}}static[y(559)](){const t=y;return{width:this.getWindowProperty(t(517),0),height:this.getWindowProperty("innerHeight",0),pixelRatio:this[t(519)](t(567),1)}}static[y(530)](){const t=y;return{scrollTop:this[t(518)]()?window[t(534)]||document[t(562)][t(540)]:0,scrollLeft:this[t(519)](t(573),0)}}static async[y(521)](t,e={}){const n=y,{timeout:r=3e3,retryInterval:i=100,debug:s=!1}=e;if(!this[n(518)]())throw new Error(n(524));const o=document[n(513)](t);return o?(s&&console[n(498)](n(496)+t),o):(s&&console.log(n(561)+t+n(532)+r+n(556)),new Promise((e,n)=>{let o=0;const a=Math.ceil(r/i),c=()=>{const d=b;o++;const l=document[d(513)](t);if(l)return s&&console[d(498)](d(557)+t+" ("+o+d(503)+o*i+d(541)),void e(l);if(o>=a){const e=d(552)+t+d(574)+t+d(502)+r+d(501)+o+d(535);return s&&console[d(508)](e),void n(new Error(e))}s&&o%10==0&&console[d(498)](d(500)+t+" ("+o+"/"+a+")");const u=Math[d(547)](i*Math.pow(1.2,o),500);setTimeout(c,u)};setTimeout(c,i)}))}static async[y(553)](t,e={}){const n=y,r=t[n(538)](t=>this[n(521)](t,e));return Promise[n(529)](r)}}const E=A;function A(t,e){const n=T();return(A=function(t,e){return n[t-=302]})(t,e)}!function(){const t=A,e=T();for(;;)try{if(480041===parseInt(t(304))/1+parseInt(t(315))/2*(-parseInt(t(302))/3)+-parseInt(t(316))/4*(parseInt(t(313))/5)+parseInt(t(309))/6*(-parseInt(t(307))/7)+parseInt(t(314))/8*(parseInt(t(305))/9)+parseInt(t(311))/10+-parseInt(t(308))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const x=E(312);function S(){return x}function T(){const t=["4706746vNVIdG","196698qsddvV"," AdStageSDK/","3618750nphpuW","3.0.15","105MZOCPp","8apxoCo","606jPSgwy","128948ZbYoeg","1029UJxsgw","undefined","842328WVPsWx","4656717TkAJLm","userAgent","7KMqsce"];return(T=function(){return t})()}const C=_;function D(){const t=["getPlatform","userAgent","safeGetElementById","toString","collectDeviceInfo","getScrollInfo","2746932PEiQvh","round","3376665MLTKtj","381172QUzLdv","width","UTC","adstage_session_id","setItem","SSR","random","generateDeviceId","now","adstage_device_id","isBrowser","resolvedOptions","DateTimeFormat","effectiveType","7626FvSiZZ",'[data-adstage-slot-id="',"toLowerCase","left","substr","session_","unknown"," .adstage-slider-wrapper","safeQuerySelector","847menKFu","49270eDusXS","1466175GasASI","11IPLXAS","getSlotPosition","1.0.0","72550gowdeR","1441cOTZRe","test","8ClDFeX","android","connection","web","generateSessionId","height","ios","getItem","platform"];return(D=function(){return t})()}function _(t,e){const n=D();return(_=function(t,e){return n[t-=100]})(t,e)}!function(){const t=_,e=D();for(;;)try{if(502098===-parseInt(t(111))/1*(-parseInt(t(114))/2)+parseInt(t(132))/3+-parseInt(t(135))/4+-parseInt(t(110))/5+parseInt(t(149))/6*(-parseInt(t(108))/7)+parseInt(t(117))/8*(parseInt(t(134))/9)+parseInt(t(109))/10*(-parseInt(t(115))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{static[C(142)](){const t=C;if(!k[t(145)]())return"ssr_device_"+Date.now();const e=localStorage[t(124)](t(144));if(e)return e;const n="device_"+Math[t(141)]()[t(129)](36)[t(103)](2,9)+"_"+Date.now();return localStorage[t(139)]("adstage_device_id",n),n}static[C(121)](){const t=C;if(!k[t(145)]())return"ssr_session_"+Date[t(143)]();const e=sessionStorage[t(124)]("adstage_session_id");if(e)return e;const n=t(104)+Math[t(141)]()[t(129)](36).substr(2,9)+"_"+Date[t(143)]();return sessionStorage[t(139)](t(138),n),n}static isMobile(){const t=C;return!!k[t(145)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(116)](navigator[t(127)])}static[C(126)](){const t=C;if(!k[t(145)]())return t(120);const e=navigator[t(127)][t(101)]();return/iphone|ipad|ipod/[t(116)](e)?t(123):/android/[t(116)](e)?t(118):R.isMobile()?t(120):"desktop"}static[C(130)](){const t=C,e=k.getViewportInfo();return{deviceId:R[t(142)](),sessionId:R.generateSessionId(),osVersion:k.isBrowser()?navigator[t(125)]:t(140),deviceModel:k[t(145)]()?navigator.platform:t(140),appVersion:t(113),sdkVersion:S(),language:k.isBrowser()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:k.isBrowser()?navigator[t(127)]:t(140),timezone:k.isBrowser()?Intl[t(147)]()[t(146)]().timeZone:t(137),viewportWidth:e[t(136)],viewportHeight:e[t(122)],screenWidth:k[t(145)]()?screen[t(136)]:0,screenHeight:k[t(145)]()?screen[t(122)]:0,colorDepth:k[t(145)]()?screen.colorDepth:24,pixelRatio:e.pixelRatio,connectionType:k[t(145)]()&&navigator[t(119)]?.[t(148)]||t(105),platform:R.getPlatform()}}static[C(112)](t){const e=C;let n=k[e(128)](t);if(!n){const r=k[e(107)]("#"+t+e(106));r&&(n=r)}if(!n&&(n=k.safeQuerySelector(e(100)+t+'"]')),!n)return e(105);const r=n.getBoundingClientRect(),i=k[e(131)]();return"x:"+Math.round(r[e(102)])+",y:"+Math[e(133)](r.top+i.scrollTop)}}const L=z;function z(t,e){const n=P();return(z=function(t,e){return n[t-=318]})(t,e)}!function(){const t=z,e=P();for(;;)try{if(640486===-parseInt(t(329))/1+parseInt(t(320))/2+parseInt(t(319))/3*(parseInt(t(323))/4)+parseInt(t(321))/5+-parseInt(t(322))/6+-parseInt(t(318))/7*(parseInt(t(326))/8)+parseInt(t(327))/9*(parseInt(t(324))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{static create(t,e){const n=z;if(!t)throw new Error("API key is required");return{"x-api-key":t,"Content-Type":e?.[n(328)]||"application/json"}}static[L(325)](t,e){return U.create(t)}}function P(){const t=["330836EDDGpd","4753450pDXLJd","5146020MkmLjw","4XPbuHZ","60kBsogf","createForEvents","4240nhGtaH","2645127mFkMgG","contentType","1169293tZkFOE","16037qKTCXM","3006459sPTpPa"];return(P=function(){return t})()}const M=O;function B(){const t=["❌ Failed to track advertisement event:","sessionId","🚀 Sending advertisement event: ","adType","createForEvents","...","1522768lcdWrF","statusText","1735915NTouAW","🌐 Full API call details:","16749410fWsMRY","/advertisements/events/","parseNumericValue","number","error","getElementById","url","title","6412584DPDDyi","POST","slots",". Skipping event tracking to prevent incorrect adType.","warn","platform"," event for ad ","apiKey","string","VIEWABLE","152107IaUfFX","height","width","log","baseUrl","text","containerId","NOT_SET","⚠️ DOM element not found for slotId: ","querySelector","status","get","2660868lCLhKM","getPageInfo","📡 API Response Status: "," - "," (containerId: ","1528272eOoVHc","6aUKYIq"," for ad ","debug","API request failed: ","stringify","substring","deviceId","now","🔍 Debug info:","trackAdvertisementEvent","getSlotPosition","4YIduRF","35KBnBFo"];return(B=function(){return t})()}function O(t,e){const n=B();return(O=function(t,e){return n[t-=208]})(t,e)}!function(){const t=O,e=B();for(;;)try{if(668463===parseInt(t(265))/1*(parseInt(t(224))/2)+parseInt(t(223))/3+parseInt(t(235))/4*(-parseInt(t(245))/5)+parseInt(t(255))/6+-parseInt(t(236))/7*(-parseInt(t(243))/8)+-parseInt(t(218))/9+-parseInt(t(247))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{constructor(t,e,n,r){const i=O;this.baseUrl=t,this[i(262)]=e,this[i(226)]=n,this[i(257)]=r}async[M(233)](t,e,n){const r=M;try{this[r(226)]&&console.log("🚀 AdvertisementEventTracker: Processing "+n+r(261)+t+" in slot "+e);const i=this.slots[r(217)](e);if(!i)return void(this[r(226)]&&console[r(259)]("⚠️ Slot not found for slotId: "+e+r(258)));if(!(document[r(252)](i[r(212)])||document[r(215)]('[data-adstage-slot-id="'+e+'"]')))return void(this[r(226)]&&console.warn(r(214)+e+r(222)+i[r(212)]+"). Skipping event tracking."));const s=R.collectDeviceInfo(),o={adType:i[r(240)],platform:s[r(260)],deviceId:s[r(230)],deviceInfo:s,pageUrl:k[r(219)]()[r(253)],pageTitle:k.getPageInfo()[r(254)],referrer:k[r(219)]().referrer,slotId:e,slotPosition:R[r(234)](i.containerId),slotWidth:V.parseNumericValue(i[r(208)]),slotHeight:V.parseNumericValue(i[r(266)]),sessionId:s[r(238)],pageLoadTime:performance[r(231)](),metadata:{eventType:n,sdkVersion:S(),timestamp:Date.now()},...n===p[r(264)]&&{isViewable:!0,iabCompliant:!0}},a=this[r(210)]+r(248)+t+"/"+n,c=U[r(241)](this[r(262)],o);this[r(226)]&&(console[r(209)](r(239)+n+r(225)+t,{url:a,headers:c,eventData:o}),console[r(209)](r(246),{method:r(256),url:a,hasApiKey:!!this[r(262)],bodySize:JSON[r(228)](o).length}));const d=await fetch(a,{method:r(256),headers:c,body:JSON[r(228)](o)});if(this[r(226)]&&console[r(209)](r(220)+d.status+" "+d[r(244)],{url:a,ok:d.ok}),!d.ok){const t=await d[r(211)]();throw new Error(r(227)+d[r(216)]+" "+d.statusText+r(221)+t)}this.debug&&console[r(209)]("✅ Successfully tracked advertisement event: "+n+" for ad "+t)}catch(i){console[r(251)](r(237),i),console.error(r(232),{baseUrl:this[r(210)],apiKey:this[r(262)]?this[r(262)][r(229)](0,8)+r(242):r(213),url:this[r(210)]+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[M(249)](t){const e=M;if(typeof t===e(250))return t;if(typeof t===e(263)){const e=parseFloat(t.replace(/px$/,""));return isNaN(e)?0:e}return 0}}function N(){var t=["visible","disconnect","element","65575VQFWVT","destroy","observe","visibilityState","intersectionRatio","470563RMtcUg","34qBcUAT","isDocumentVisible","IntersectionObserver","18215164qKtaFk","156IMAavl","IntersectionObserver not supported, viewability tracking disabled","observer","81WWyATG","initIntersectionObserver","3813136WpJmqr","7YYbDvc","onViewableCallback","isViewableTriggered","264291mVvVtC","7730574lRodoj","hidden","265610bVfSvN","handleIntersection"];return(N=function(){return t})()}function F(t,e){var n=N();return(F=function(t,e){return n[t-=110]})(t,e)}var H=F;!function(){for(var t=F,e=N();;)try{if(771935===-parseInt(t(110))/1+-parseInt(t(111))/2*(parseInt(t(124))/3)+parseInt(t(115))/4*(parseInt(t(132))/5)+parseInt(t(125))/6+parseInt(t(121))/7*(-parseInt(t(120))/8)+-parseInt(t(118))/9*(parseInt(t(127))/10)+parseInt(t(114))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class j{constructor(t,e){var n=F;this[n(117)]=null,this.isViewableTriggered=!1,this[n(131)]=t,this[n(122)]=e,this[n(119)]()}[H(119)](){var t=H;t(113)in window?(this.observer=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:"0px"}),this[t(117)][t(134)](this.element)):console.warn(t(116))}[H(128)](t){t.forEach(t=>{var e=F;t[e(136)]>=.5&&this[e(112)]()&&!this[e(123)]&&(this[e(123)]=!0,this[e(122)]&&this[e(122)]())})}[H(112)](){var t=H;return!document[t(126)]&&document[t(135)]===t(129)}[H(133)](){var t=H;this.observer&&(this[t(117)][t(130)](),this.observer=null)}}function K(t,e){const n=Y();return(K=function(t,e){return n[t-=326]})(t,e)}const W=K;!function(){const t=K,e=Y();for(;;)try{if(237941===-parseInt(t(344))/1+parseInt(t(352))/2+-parseInt(t(332))/3*(-parseInt(t(336))/4)+parseInt(t(347))/5*(parseInt(t(329))/6)+parseInt(t(326))/7*(parseInt(t(350))/8)+-parseInt(t(345))/9*(parseInt(t(335))/10)+-parseInt(t(328))/11*(parseInt(t(346))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const q={production:W(330),beta:W(351)},G={advertisements:{list:"/advertisements/list",detail:W(342),events:W(334)},events:{track:W(331),registerAttribution:"/events/register/attribution"}};function Y(){const t=["baseUrl","advertisements","/advertisements","events","456341PKdKkw","4437zFQpug","120468dwhTtb","1690xTPuVd","custom","detail","632wqYoWL","https://beta-api.adstage.app","719482rgUNHe","14497riDhup","track","363ZcZqqG","8058yaCCIM","https://api.adstage.app","/events/track","12gXaMmf","setBaseUrl","/advertisements/events","1990CTPGrz","146392nQjcBD","registerAttribution","list","startsWith"];return(Y=function(){return t})()}class Z{constructor(t){const e=W;this[e(341)]={list:()=>""+this.baseUrl+G[e(341)][e(338)],detail:t=>""+this.baseUrl+G.advertisements[e(349)]+"/"+t,events:(t,n)=>""+this[e(340)]+G.advertisements[e(343)]+"/"+t+"/"+n},this[e(343)]={track:()=>""+this[e(340)]+G.events[e(327)],registerAttribution:()=>""+this[e(340)]+G.events[e(337)]},this[e(340)]=t||q.production}[W(333)](t){this[W(340)]=t}getBaseUrl(){return this[W(340)]}[W(348)](t){const e=W;return""+this[e(340)]+(t[e(339)]("/")?t:"/"+t)}}const J=new Z;function X(t,e){var n=tt();return(X=function(t,e){return n[t-=268]})(t,e)}var Q=X;!function(){for(var t=X,e=tt();;)try{if(386161===-parseInt(t(280))/1*(-parseInt(t(284))/2)+-parseInt(t(278))/3+parseInt(t(281))/4*(parseInt(t(287))/5)+-parseInt(t(269))/6*(-parseInt(t(273))/7)+-parseInt(t(268))/8*(parseInt(t(289))/9)+parseInt(t(288))/10*(-parseInt(t(286))/11)+parseInt(t(283))/12*(parseInt(t(272))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[Q(279)](t,e,n,r,i=!1){var s=Q;i&&console[s(277)]("🎯 Triggering VIEWABLE event for slide change: ad "+t._id+s(282)+n+s(270)+e.id),r(t[s(274)],e.id,p.VIEWABLE)}static[Q(285)](t,e,n,r=!1){var i=Q;r&&console[i(277)](i(271)+t._id+i(276)+e.id),n(t._id,e.id,p[i(275)])}}function tt(){var t=["377397swHLCW","120dwOvZd","489966VBNoni",") in slot: ","🎯 Triggering initial VIEWABLE event: ad ","101075mOUuaW","7gwsYCU","_id","VIEWABLE"," (index: 0) in slot: ","log","1012584bdzGft","trackSlideViewable","1369qhopuy","1216308RWkbiI"," (index: ","876LWuayp","870yflIrx","trackInitialSlideViewable","539396dOOmbx","5REDoEg","40eIEWjx"];return(tt=function(){return t})()}function et(t,e){const n=rt();return(et=function(t,e){return n[t-=166]})(t,e)}const nt=et;function rt(){const t=[" -> ","style","134UXcOqz","adType","336060vfDTzZ","addClickEventForRenderer","pointer","toLowerCase","addEventListener","isClickable","cursor","12438360tBybSG","1059988hHfOZb","log","18604091LDQgvu","8yWMUDe","🔗 ","3uOrHnJ","click","1093204DVujTr","35856ZOXkUd","5zvVTDs","CLICK","addClickEvent","4171ptaPqs","_id","_blank","addClickEventForSlider","linkUrl","10zLkRrk","addClickEventsBatch"," ad clicked: ","stopPropagation"];return(rt=function(){return t})()}!function(){const t=et,e=rt();for(;;)try{if(856457===-parseInt(t(180))/1*(parseInt(t(191))/2)+-parseInt(t(173))/3*(-parseInt(t(168))/4)+-parseInt(t(177))/5*(-parseInt(t(193))/6)+-parseInt(t(175))/7*(-parseInt(t(171))/8)+parseInt(t(176))/9*(parseInt(t(185))/10)+parseInt(t(170))/11+-parseInt(t(167))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static addClickEvent(t,e,n,r,i=!1,s){const o=et;e[o(184)]&&(t[o(190)][o(166)]=o(195),t[o(197)](o(174),t=>{const a=o;if(t.preventDefault(),t[a(188)](),r&&r(e[a(181)],n.id,p[a(178)]),window.open(e[a(184)],a(182)),i){const t=s||String(n[a(192)])[a(196)]();console[a(169)](a(172)+t+" ad clicked: "+e[a(181)]+a(189)+e[a(184)])}}))}static[nt(194)](t,e,n,r,i=!1,s){const o=nt;e[o(184)]&&(t[o(190)][o(166)]="pointer",t.addEventListener(o(174),t=>{const a=o;t.preventDefault(),t[a(188)]();if(r()(e[a(181)],n.id,p[a(178)]),window.open(e[a(184)],a(182)),i){const t=s||String(n[a(192)])[a(196)]();console[a(169)](a(172)+t+a(187)+e[a(181)]+a(189)+e[a(184)])}}))}static[nt(183)](t,e,n,r,i=!1,s){this.addClickEvent(t,e,n,r,i,s)}static[nt(198)](t){return Boolean(t[nt(184)])}static[nt(186)](t,e,n,r,i=!1,s){t.forEach((t,o)=>{const a=et,c=e[o];c&&this[a(179)](t,c,n,r,i,s)})}}const st=ot;function ot(t,e){const n=at();return(ot=function(t,e){return n[t-=420]})(t,e)}function at(){const t=["borderColor","8px","1087672UJiChO","removeChild","includes","#f0f0f0","4ooTKKV","204310grNUdv","100px","transform","abs","translateX(-","transform 0.4s ease-out","remove","padding","100%","children","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","textContent","965562SENZVy","3681986kqhvDu","adstage-dots","style","block","addTouchSupport","touchstart","contains","active","Banner Ad","TEXT","body","clientX","auto","VIDEO","overflow","setAttribute","1px dashed #ccc","img","background","70LEpFOZ","preventDefault","videoUrl","0.7","none","hidden","click","whiteSpace","#000","string","display","length","opacity","#666666","querySelectorAll","getBoundingClientRect","inline-block","createMinimalDotIndicator"," Ad","className","autoSlideInterval","86525DrCCFm","normal","div","adType","touchmove","1792810qyQNmW","50px","setProperty","height","adstage-slider-wrapper","changedTouches",".adstage-dot","addEventListener","addClickEventForSlider","adstage-dot","fontSize","entries","createElement","button","45kGDytz","#cccccc","_id","forEach","transition","mouseenter","flex","touchend","video","4119510qmrOnz","toLowerCase","trackSlideViewable","4UWwcLA","src","cssText","appendChild","objectFit","relative","createSimpleAdElement","14px","every","backgroundColor","mouseleave","cover","width","add","createSliderContainer","border","classList"];return(at=function(){return t})()}!function(){const t=ot,e=at();for(;;)try{if(917078===-parseInt(t(420))/1*(parseInt(t(474))/2)+parseInt(t(448))/3+-parseInt(t(451))/4*(parseInt(t(475))/5)+-parseInt(t(487))/6*(parseInt(t(507))/7)+parseInt(t(470))/8+parseInt(t(439))/9*(parseInt(t(425))/10)+parseInt(t(488))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[st(457)](t,e){const n=st,r=document[n(437)](n(422));switch(r.className="adstage-ad adstage-"+String(t.adType)[n(449)](),r[n(503)]("data-adstage-ad-id",e[n(441)]),r[n(503)]("data-adstage-slot-id",t.id),r[n(490)][n(517)]=n(491),r[n(490)][n(463)]=n(483),r[n(490)][n(428)]=n(500),t.adType){case o.BANNER:if(e.imageUrl){const t=document.createElement(n(505));t[n(452)]=e.imageUrl,t[n(490)][n(463)]=n(483),t.style[n(428)]=n(500),t[n(490)][n(455)]=n(462),r[n(454)](t)}else r[n(490)].height=n(476),r[n(490)][n(460)]=n(473),r.style[n(466)]=n(504),r[n(486)]=n(496);break;case o[n(501)]:if(e.videoUrl){const t=document.createElement(n(447));t[n(452)]=e[n(509)],t[n(490)][n(463)]=n(483),t[n(490)][n(428)]=n(500),r[n(454)](t)}else r.style.height="200px",r[n(490)][n(460)]=n(515),r[n(490)][n(466)]="1px solid #666",r[n(486)]="Video Ad",r.style.color="white";break;case o[n(497)]:if(e[n(486)]){const t=document[n(437)]("div");t[n(486)]=e[n(486)]||"",t[n(490)][n(482)]=n(469),t[n(490)][n(435)]=n(458),r.appendChild(t)}else r[n(490)][n(428)]=n(426),r.style[n(482)]=n(469),r[n(486)]="Text Ad";break;default:r[n(490)][n(428)]="100px",r[n(490)].border=n(504),r.style[n(460)]="#f9f9f9",r[n(486)]=t[n(423)]+n(525)}return r}static[st(465)](t,e,n,r,i=!1){const s=st,a=document[s(437)]("div");a.className=s(429);const c={position:s(456),overflow:s(512)};if(t[s(463)]&&0!==t.width){let e;e=typeof t[s(463)]===s(516)?t[s(463)][s(472)]("px")||t[s(463)].includes("%")?t[s(463)]:t[s(463)]+"px":t.width+"px",c[s(463)]=e,c[s(517)]=s(523)}else c[s(517)]=s(523);if(t[s(428)]&&0!==t[s(428)]){const e="string"==typeof t[s(428)]?t[s(428)]:t[s(428)]+"px";c[s(428)]=e}Object[s(436)](c).forEach(([t,e])=>{a[s(490)].setProperty(t,e)});const d=!t[s(463)]||0===t.width,l=!t[s(428)]||0===t[s(428)];if(d||l){const n=document.createElement("div");if(n.style[s(453)]=s(485),!d&&t.width){let e;e="string"==typeof t[s(463)]&&(t[s(463)][s(472)]("px")||t.width.includes("%"))?t.width:t[s(463)]+"px",n[s(490)][s(463)]=e,n[s(490)][s(514)]=s(421)}document[s(498)][s(454)](n);let r=0,i=0;e.forEach(e=>{const o=s,a=this.createSimpleAdElement(t,e);n[o(454)](a);const c=a[o(522)]();c.width>r&&(r=c[o(463)]),c.height>i&&(i=c[o(428)]),n[o(471)](a)}),d&&r>0&&(a[s(490)].width=r+"px",c[s(463)]=r+"px"),l&&i>0&&(a[s(490)][s(428)]=i+"px",c.height=i+"px"),document[s(498)][s(471)](n)}const u=[...e,e[0]],p=document[s(437)](s(422));p[s(526)]="adstage-slide-container";const h={display:s(445),transition:s(480),width:100*u[s(518)]+"%"};t[s(428)]&&0!==t[s(428)]&&(h.height=s(483)),Object[s(436)](h)[s(442)](([t,e])=>{const n=s;p[n(490)][n(427)](t,e)}),u[s(442)]((e,n)=>{const o=s,a=document[o(437)](o(422));a[o(526)]="adstage-slide";const c={width:100/u[o(518)]+"%","flex-shrink":"0",display:"flex","align-items":"center","justify-content":"center"};t.height&&0!==t[o(428)]&&(c[o(428)]="100%"),Object.entries(c)[o(442)](([t,e])=>{const n=o;a[n(490)][n(427)](t,e)});const d=this[o(457)](t,e);it[o(433)](d,e,t,r,i,String(t[o(423)])[o(449)]()),a[o(454)](d),p[o(454)](a)});const f=e[s(459)](t=>t[s(423)]===o[s(497)])?null:this[s(524)](e[s(518)]);let g=0;const m=e[s(518)],I=1e3*(n?.[s(527)]||3),v=(n,o=!1)=>{const a=s;g=n,o?p[a(490)][a(443)]=a(511):p.style[a(443)]=a(480),p[a(490)][a(477)]=a(479)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(521)](a(431)).forEach((t,e)=>{const n=a,r=t;e===c?(r[n(467)][n(464)]("active"),r[n(490)][n(506)]=n(520),r[n(490)].borderColor=n(520),r[n(490)][n(519)]="1"):(r[n(467)][n(481)](n(495)),r[n(490)].background="transparent",r[n(490)][n(468)]=n(440),r.style[n(519)]=n(510))})}$[a(450)](e[c],t,c,r,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(".adstage-dot")[s(442)]((t,e)=>{const n=s;t[n(432)](n(513),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a.addEventListener(s(444),()=>{clearInterval(b)}),a[s(432)]("mouseleave",()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[s(492)](p,v,()=>g,m,y),a[s(454)](p),f&&a.appendChild(f),v(0),(!t.width||0===t[s(463)])&&setTimeout(()=>{const e=s,n=p.children[0];if(n){const r=n[e(484)][0];if(r){const n=r[e(522)]();a.style[e(463)]=n[e(463)]+"px",(!t[e(428)]||0===t[e(428)])&&(a.style.height=n.height+"px"),a[e(490)][e(502)]="hidden"}}},10),a}static[st(524)](t){const e=st,n=document.createElement(e(422));n[e(526)]=e(489),n[e(490)][e(453)]="\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ";for(let r=0;r<t;r++){const t=document.createElement(e(438));t.className=e(434),t[e(490)][e(453)]="\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ",t.addEventListener(e(444),()=>{const n=e;!t.classList[n(494)]("active")&&(t[n(490)][n(468)]="#999999",t.style[n(519)]="0.9")}),t[e(432)](e(461),()=>{const n=e;!t[n(467)][n(494)]("active")&&(t[n(490)].borderColor=n(440),t[n(490)][n(519)]=n(510))}),n[e(454)](t)}return n}static addTouchSupport(t,e,n,r,i){const s=st;let o=0,a=!1;t[s(432)](s(493),t=>{const e=s;o=t.touches[0][e(499)],a=!0}),t[s(432)](s(424),t=>{a&&t[s(508)]()}),t.addEventListener(s(446),t=>{const c=s;if(!a)return;a=!1;const d=t[c(430)][0][c(499)],l=o-d;if(Math[c(478)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:r-1)}}})}}function dt(t,e){const n=pt();return(dt=function(t,e){return n[t-=133]})(t,e)}const lt=dt;!function(){const t=dt,e=pt();for(;;)try{if(557670===-parseInt(t(148))/1+parseInt(t(137))/2*(-parseInt(t(146))/3)+-parseInt(t(147))/4+-parseInt(t(143))/5+-parseInt(t(152))/6*(parseInt(t(133))/7)+parseInt(t(141))/8*(parseInt(t(139))/9)+parseInt(t(134))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static[lt(149)](t,e,n=!1){const r=lt,i=t+"_"+e;return ut[r(135)][r(144)](i)?(n&&console.log(r(140)+t+r(150)+e),!0):(ut[r(135)][r(138)](i),n&&console[r(142)](r(136)+t+" in slot "+e),!1)}static[lt(145)](){ut.viewableTracker.clear()}static[lt(151)](t,e){const n=t+"_"+e;ut[lt(135)].delete(n)}}function pt(){const t=["9BAmedO","Duplicate viewable blocked for ad ","1631768SnjvCE","log","1797345MYVqDF","has","clear","1705578rJwzMp","2589076DeVAqy","919028VekIIn","isDuplicateViewable"," in slot ","clearAdViewable","558qkAIol","51933Pfvshr","35379580xPYEHz","viewableTracker","✅ New viewable recorded for ad ","2WNXVfm","add"];return(pt=function(){return t})()}ut[lt(135)]=new Set;const ht=ft;function ft(t,e){const n=mt();return(ft=function(t,e){return n[t-=278]})(t,e)}!function(){const t=ft,e=mt();for(;;)try{if(977957===-parseInt(t(314))/1+-parseInt(t(396))/2+-parseInt(t(363))/3*(-parseInt(t(329))/4)+parseInt(t(386))/5+-parseInt(t(360))/6+-parseInt(t(284))/7*(-parseInt(t(353))/8)+parseInt(t(379))/9*(parseInt(t(319))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt{constructor(t,e=!1,n){const r=ft;this.adType=t,this[r(374)]=e,this[r(298)]=n||null}[ht(390)](t,e,n,r){const i=ht,s=document[i(286)]("div");s.id=e,s.className=i(315)+String(this[i(328)])[i(278)](),s[i(350)](i(376),i(287)),s[i(350)](i(369),String(this[i(328)])),s.setAttribute("data-adstage-slot",e);const{width:o,height:a}=this[i(388)](t,n,r)||{width:i(339),height:this.getDefaultHeight()};s[i(359)][i(373)]=o,s[i(359)][i(393)]=a;const c=r?.[i(324)]||n[i(324)]||i(331);this[i(367)](s,c),t.appendChild(s),this[i(374)]&&console[i(391)](i(338)+this[i(328)]+i(354)+e+" ("+o+i(348)+a+i(355)+c)}[ht(367)](t,e){const n=ht;switch(e){case n(331):t.style[n(301)]=n(356),t[n(359)][n(307)]="none",t[n(359)][n(336)]="0",t[n(333)]="";break;case n(356):t[n(359)][n(301)]="transparent",t[n(359)][n(307)]="none",t[n(359)][n(397)]=n(334),t[n(333)]="";break;case n(345):t[n(359)][n(301)]=n(395),t.style[n(307)]=n(344),t[n(359)][n(330)]=n(370),t[n(359)].display=n(362),t[n(359)].alignItems=n(313),t.style[n(279)]=n(313),t[n(333)]=n(351);break;case"minimal":t[n(359)][n(301)]="rgba(248, 249, 250, 0.5)",t[n(359)][n(307)]=n(296),t[n(359)][n(330)]=n(311),t[n(359)].display=n(362),t.style[n(295)]=n(313),t[n(359)][n(279)]=n(313),t[n(333)]='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case"debug":t[n(359)].border="2px dashed #e74c3c",t[n(359)].display=n(362),t[n(359)][n(295)]=n(313),t[n(359)].justifyContent=n(313),t.style[n(301)]=n(300),t[n(359)].color="#e74c3c",t[n(359)][n(308)]=n(283),t[n(359)][n(349)]=n(392),t[n(333)]="<span>Loading "+this[n(328)]+n(304);break;default:t.style[n(307)]=n(318),t[n(359)][n(397)]="flex",t[n(359)][n(295)]=n(313),t.style[n(279)]=n(313),t[n(359)][n(301)]="#f9f9f9",t.style[n(327)]=n(281),t.innerHTML=n(288)+this[n(328)]+n(304)}}[ht(388)](t,e,n){const r=ht,i=e[r(373)],s=e[r(393)];let o,a;if(o=typeof i===r(389)?i+"px":"string"==typeof i?i:r(339),typeof s===r(389))a=s+"px";else if("string"==typeof s&&s!==r(339)&&s!==r(357))a=s;else{const e=this[r(316)](t);e>0?(a="100%",(n?.[r(374)]||this[r(374)])&&console[r(391)](r(385)+e+r(294))):(a=this[r(383)](),(n?.[r(374)]||this.debug)&&console[r(391)](r(394)+a+" for "+this[r(328)]))}return{width:o,height:a}}[ht(316)](t){const e=ht,n=window[e(377)](t),r=parseFloat(n[e(393)]);if(!r||0===r){const r=parseFloat(n[e(321)]);if(r>0)return r;if(t[e(359)][e(393)]&&t[e(359)].height!==e(357)){const n=parseFloat(t.style[e(393)]);if(n>0)return n}const i=t[e(325)](e(393));if(i){const t=parseFloat(i);if(t>0)return t}}return r||0}[ht(365)](){return async(t,e,n)=>{const r=ft;if(n===p[r(323)]){if(ut.isDuplicateViewable(t,e,this[r(374)]))return void(this.debug&&console[r(391)](r(352)+t+r(302)+e));this[r(374)]&&console[r(391)]("✅ New viewable recorded for ad "+t+r(302)+e)}if(this[r(298)])try{this.debug&&console[r(391)]("🔄 Starting advertisement event tracking: "+n+r(306)+t+r(302)+e),await this.advertisementEventTracker.trackAdvertisementEvent(t,e,n),this[r(374)]&&console[r(391)](r(380)+n+" for ad "+t+r(302)+e)}catch(e){this[r(374)]&&console[r(335)](r(366)+n+r(378)+t+":",e)}else this.debug&&console[r(340)](r(375)+n+r(289))}}[ht(326)](t){const e=ht,n=document[e(337)](t.id);if(n){const r=[...[n[e(332)](e(342)),n[e(371)]('[data-adstage-container="true"]'),n].filter(t=>t&&t.hasAttribute(e(376))),...[n[e(371)](e(312)),n.closest(e(347)+String(this[e(328)])[e(278)]()),n[e(371)](e(382)),n[e(371)](e(317)),n[e(371)](e(358)),n[e(371)](e(285)),n[e(371)](e(384)),n[e(322)]].filter(Boolean)][0];if(r){let n="unknown";n=r[e(361)](e(376))?e(343):r[e(310)][e(299)](e(282))?e(346):e(320),r.style[e(290)]+="\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",r[e(333)]="",r.setAttribute(e(297),"true"),this[e(374)]&&console[e(340)](e(341)+this.adType+" container collapsed ("+n+e(292)+t.id,r)}else this[e(291)](t)}t[e(381)]=void 0,t[e(303)]=!0}[ht(291)](t){const e=ht,n=document.getElementById(t.containerId);if(n){n.innerHTML="";const r=document[e(286)](e(309));r.id=t.id,r[e(372)]=e(280)+String(this[e(328)])[e(278)](),r.setAttribute(e(376),"true"),r[e(350)](e(297),e(287)),r[e(350)](e(364),t.id),r.style[e(290)]=e(293),n[e(368)](r),this[e(374)]&&console.warn(e(387)+this.adType+e(305)+t.id)}}[ht(391)](t,...e){const n=ht;this[n(374)]&&console.log("["+this[n(328)]+"] "+t,...e)}}function mt(){const t=["VIEWABLE","placeholderMode","getAttribute","renderFallback","color","adType","4XflRKP","borderRadius","invisible","querySelector","innerHTML","block","error","opacity","getElementById","📦 Placeholder created for ","100%","warn","⚠️ ",'[data-adstage-container="true"]',"adstage-official","none","subtle","adstage-class",".adstage-"," x ","fontSize","setAttribute",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"🚫 Duplicate viewable blocked for ad ","64btOQlr"," slot: ",") - Mode: ","transparent","auto",'[class*="container"]',"style","1394946IutsAM","hasAttribute","flex","1825530tdtGRw","data-adstage-slot","createEventTrackingCallback","❌ Failed to track ","applyPlaceholderStyle","appendChild","data-adstage-type","4px","closest","className","width","debug","⚠️ AdvertisementEventTracker not available for ","data-adstage-container","getComputedStyle"," event for ad ","3016539aMAqVf","📊 Advertisement event tracked: ","advertisement",'[class*="ad"]',"getDefaultHeight",'div[style*="min-height"]',"📏 Using 100% height (container: ","5496180QNJuVE","⚠️ Created empty ","calculateAdSize","number","createPlaceholder","log","11px","height","📏 Using default height ","rgba(0, 0, 0, 0.02)","3202020RtyJIi","display","toLowerCase","justifyContent","adstage-slot adstage-empty adstage-","#666","adstage-slot","monospace","1363180kMQlnO",'div[style*="height"]',"createElement","true","<span>Loading "," event","cssText","createEmptyContainer","): ","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","px)","alignItems","1px solid rgba(0, 0, 0, 0.08)","data-adstage-empty","advertisementEventTracker","contains","rgba(231, 76, 60, 0.1)","backgroundColor"," in slot ","isEmpty"," ad...</span>"," container: "," for ad ","border","fontFamily","div","classList","6px",".adstage-slot","center","789379wswHbb","adstage-slot adstage-","getContainerHeight",'[class*="banner"]',"1px dashed #ccc","10aRVjoG","generic","minHeight","parentElement"];return(mt=function(){return t})()}const It=vt;function vt(t,e){const n=bt();return(vt=function(t,e){return n[t-=403]})(t,e)}!function(){const t=vt,e=bt();for(;;)try{if(186673===parseInt(t(424))/1+parseInt(t(419))/2*(parseInt(t(484))/3)+-parseInt(t(410))/4*(-parseInt(t(463))/5)+parseInt(t(468))/6+parseInt(t(412))/7+-parseInt(t(506))/8*(parseInt(t(501))/9)+-parseInt(t(448))/10*(parseInt(t(446))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class yt extends gt{constructor(t=!1,e){super(o[vt(439)],t,e)}[It(438)](){return It(429)}async[It(473)](t,e){const n=It,r=document[n(491)](t[n(436)]);if(!r)return;const i=document[n(476)](n(434));i[n(420)]=n(459);const s=t.optimizedHeight,o=r[n(431)]||r;if(s)i[n(403)][n(499)]=n(413),i[n(403)][n(452)]=String(s);else{const e=t[n(454)],r={width:e?.[n(499)],height:e?.[n(452)]},{width:s,height:a}=this[n(408)](o,r,{debug:this[n(490)]});i[n(403)].width=s,i[n(403)][n(452)]=a}e.imageUrl?await this.renderOptimizedBannerImage(i,e,t):i.innerHTML=n(488)+(e[n(456)]||n(416))+"</div>",it[n(430)](i,e,t,()=>this[n(505)](),this[n(490)],n(495)),r[n(425)]="",r[n(480)](i)}async[It(426)](t,e){const n=It,r=document[n(491)](t[n(436)]);if(!r)throw new Error(n(485)+t[n(436)]);await this[n(404)](t,e);const i=this[n(505)](),s={autoSlideInterval:(t[n(454)]?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t[n(502)],aspectRatio:t[n(472)]},o=ct[n(417)](t,e,s,i,this[n(490)]);o&&(r[n(425)]="",r.appendChild(o),this.debug&&console[n(507)](n(407)+t.id+" with "+e[n(445)]+" ads (optimized: "+(t[n(502)]||n(493))+")"))}async[It(512)](t,e){const n=It;if(!t[n(445)])return{width:"100%",height:this[n(438)](),aspectRatio:16/9};try{const r=(await Promise[n(455)](t[n(481)](t=>t[n(496)])[n(440)](t=>this[n(471)](t[n(496)])))).filter(t=>"fulfilled"===t.status).map(t=>t[n(467)]);if(0===r.length)return{width:"100%",height:this[n(438)](),aspectRatio:16/9};const i=this.selectOptimalSizeStrategy(r),s=this[n(444)](r,e,i);return this[n(490)]&&console[n(507)]("📐 Optimal banner container calculated: "+e+"x"+s+n(500)+i+")"),{width:"100%",height:s+"px",aspectRatio:e/s}}catch(t){return console.warn(n(492),t),{width:n(413),height:this.getDefaultHeight(),aspectRatio:16/9}}}async[It(404)](t,e){const n=It;try{const r=document[n(491)](t[n(436)]),i=document[n(491)](t.id);if(!r||!i)return;const s=r[n(447)]()[n(499)]||300,o=await this[n(512)](e,s);i[n(403)].height=o[n(452)],t.optimizedHeight=o[n(452)],t[n(472)]=o[n(472)],this.debug&&console[n(507)](n(474)+e[n(445)]+n(460)+o.height)}catch(t){console[n(449)](n(510),t)}}[It(511)](t){const e=It,n=t[e(440)](t=>t[e(499)]/t[e(452)]),r=new Map;n[e(458)](t=>{const n=e,i=(Math[n(433)](10*t)/10)[n(497)]();r[n(508)](i,(r.get(i)||0)+1)});const i=Math.max(...r[e(421)]()),s=t[e(445)];if(i/s>=.7)return e(457);const o=[16/9,4/3,1,1.5],a=n.filter(t=>o[e(411)](n=>Math[e(418)](t-n)<.1))[e(445)];return e(a/s>=.5?462:514)}[It(444)](t,e,n){const r=It,i=t[r(440)](t=>t[r(499)]/t[r(452)]);switch(n){case r(457):{const t=new Map;i[r(458)](e=>{const n=r,i=Math.round(10*e)/10,s=i[n(497)](),o=t[n(423)](s);o?o[n(469)]++:t.set(s,{ratio:i,count:1})});const n=Array[r(487)](t[r(421)]())[r(427)]((t,e)=>e.count>t[r(469)]?e:t);return Math[r(433)](e/n.ratio)}case"common":{const t=[{ratio:16/9,name:r(405)},{ratio:4/3,name:"4:3"},{ratio:1,name:r(414)},{ratio:1.5,name:r(504)}],n=i[r(427)]((t,e)=>t+e,0)/i[r(445)],s=t[r(427)]((t,e)=>Math[r(418)](e[r(451)]-n)<Math.abs(t[r(451)]-n)?e:t);return this[r(490)]&&console[r(507)](r(482)+s[r(461)]+r(435)+n[r(486)](2)+")"),Math[r(433)](e/s.ratio)}default:{const t=i[r(427)]((t,e)=>t+e,0)/i[r(445)];return Math[r(433)](e/t)}}}[It(471)](t){return new Promise((e,n)=>{const r=vt,i=new Image;i.onload=()=>{const t=vt;e({width:i[t(415)],height:i[t(478)]})},i[r(483)]=()=>{n(new Error("Failed to load image: "+t))},i[r(470)]=t})}[It(432)](t,e,n){const r=It,i=e/n;Math.abs(i-1)<.1?(t[r(403)].objectFit=r(509),t.style[r(475)]=r(453)):i>1.3?(t[r(403)][r(450)]=r(437),t[r(403)][r(475)]=r(453),t[r(403)][r(443)]=r(428)):i<.7?(t[r(403)][r(450)]=r(509),t[r(403)][r(475)]=r(453)):(t[r(403)][r(450)]=r(509),t.style[r(475)]=r(453)),this[r(490)]&&console[r(507)](r(406)+t[r(403)][r(450)]+r(466)+i[r(486)](2))}async[It(409)](t,e,n){const r=It,i=document[r(476)](r(477));i[r(403)][r(499)]="100%",i[r(403)][r(452)]=r(413),i[r(403)][r(465)]=r(503),i[r(403)].borderRadius=r(441),i[r(498)]=e[r(456)]||r(479),t.innerHTML=r(489);try{if(!e[r(496)])throw new Error(r(494));const s=await this.loadImageDimensions(e.imageUrl),o=t[r(447)](),a=o[r(499)],c=o[r(452)];this.debug&&(console.log(r(442)+s[r(499)]+"x"+s[r(452)]),console[r(507)]("📦 Banner container dimensions: "+a+"x"+c));const d=s[r(499)]/s[r(452)],l=a/c;return this[r(432)](i,d,l),i[r(470)]=e[r(496)],t.innerHTML="",t[r(480)](i),it[r(430)](i,e,n,()=>this.createEventTrackingCallback(),this[r(490)],r(495)),this.debug&&console[r(507)](r(422)+e[r(513)]),i}catch(s){return console[r(464)]("❌ Failed to load optimized banner image:",s),e[r(496)]&&(i[r(470)]=e.imageUrl,i[r(403)][r(450)]=r(509),i[r(403)][r(475)]=r(453),t[r(425)]="",t[r(480)](i),it[r(430)](i,e,n,()=>this.createEventTrackingCallback(),this[r(490)],r(495))),i}}}function bt(){const t=["getBoundingClientRect","70sxcqzD","warn","objectFit","ratio","height","center","config","allSettled","title","dominant","forEach","adstage-ad adstage-banner-ad"," ads: ","name","common","5uCFmUj","error","display",", ratio=","value","1595088nWELgH","count","src","loadImageDimensions","aspectRatio","renderAdElement","🔧 Banner container optimized for ","objectPosition","createElement","img","naturalHeight","Banner Advertisement","appendChild","filter","📊 Using standard ratio: ","onerror","9snpAFD","Container not found: ","toFixed","from","<div>",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"debug","getElementById","Failed to calculate optimal banner size, using defaults:","default","Image URL is not provided","Banner","imageUrl","toString","alt","width"," (strategy: ","9RsfsuV","optimizedHeight","block","3:2","createEventTrackingCallback","461120JaNMmr","log","set","cover","Banner container optimization failed, using default size:","selectOptimalSizeStrategy","calculateOptimalContainerSize","_id","average","style","optimizeContainerForBannerAds","16:9","🎨 Banner image style applied: objectFit=","🎠 Banner carousel created for slot: ","calculateAdSize","renderOptimizedBannerImage","673716JOCmtD","some","874454jKqeZG","100%","1:1","naturalWidth","Banner Ad","createSliderContainer","abs","39646TGYvoR","className","values","✅ Optimized banner image rendered for ad: ","get","215990VvlHXX","innerHTML","renderMultipleAds","reduce","#f0f0f0","250px","addClickEventForRenderer","parentElement","applyOptimizedImageStyle","round","div"," (avg: ","containerId","contain","getDefaultHeight","BANNER","map","8px","📸 Banner image dimensions: ","backgroundColor","calculateOptimalHeight","length","927685SDAarJ"];return(bt=function(){return t})()}function wt(){const t=["\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n ","2wBVKDv","5608080qZXNdQ","84284QMopeL","208035piCkSV","610FUpSOY","32oPsblh","textContent","4524360BECjCB","title","30846kYQQnH","466695djdiKT","setTextAdContent","867461rhjlHt","createTextAdStyles"];return(wt=function(){return t})()}const kt=Et;function Et(t,e){const n=wt();return(Et=function(t,e){return n[t-=395]})(t,e)}!function(){const t=Et,e=wt();for(;;)try{if(395099===parseInt(t(395))/1*(-parseInt(t(400))/2)+-parseInt(t(403))/3+-parseInt(t(402))/4+parseInt(t(404))/5*(parseInt(t(409))/6)+-parseInt(t(397))/7*(-parseInt(t(405))/8)+-parseInt(t(401))/9+parseInt(t(407))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class At{static[kt(398)](t=!1){return kt(399)}static[kt(396)](t,e){const n=kt,r=e[n(406)]||e[n(408)]||"";t.textContent=r}}const xt=Tt;function St(){const t=["touchmove","10736210qIeiOC","mouseleave","adType","auto","hidden","adstage-ad adstage-","adstage-fade-slide-container","\n ","setTextAdContent","52811SjtlQU","opacity","appendChild","left","height: auto; min-height: fit-content;","top","height","height: 100%;","translateY(0)","width","addTouchSupport","createTextAdStyles","26152ksJhFW","16zEGRqY",";\n width: 100%;\n ","zIndex","position","setAttribute","setProperty","touches","includes","toLowerCase","string","forEach","970812pfreMA","cssText","relative","data-adstage-slot-id",";\n left: ","whiteSpace","mouseenter","trackSlideViewable","className","clientY",";\n ","598194WpDIJN","minHeight","createTextTransitionContainer","clientX","2dSWjig","translateY(20px)","10WlLIeC","autoSlideInterval","div","addEventListener","length","_id","transform","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","style","block","getBoundingClientRect","entries","713862fWzkHE","changedTouches","createSimpleAdElement","absolute","touchend","fit-content","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","4502477aykMue",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","removeChild","abs","data-adstage-ad-id","height: auto;","adstage-fade-slide","createElement"];return(St=function(){return t})()}function Tt(t,e){const n=St();return(Tt=function(t,e){return n[t-=189]})(t,e)}!function(){const t=Tt,e=St();for(;;)try{if(325406===parseInt(t(252))/1*(-parseInt(t(213))/2)+-parseInt(t(198))/3+-parseInt(t(264))/4*(-parseInt(t(215))/5)+parseInt(t(209))/6+-parseInt(t(234))/7+parseInt(t(265))/8*(parseInt(t(227))/9)+parseInt(t(243))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ct{static[xt(229)](t,e){const n=xt,r=document[n(241)](n(217));return r.className=n(248)+String(t[n(245)])[n(195)](),r[n(191)](n(238),e[n(220)]),r[n(191)](n(201),t.id),r[n(223)][n(199)]=At[n(263)](!0),At[n(251)](r,e),r}static[xt(211)](t,e,n,r,i=!1){const s=xt,o=t.height&&0!==t[s(258)]&&"auto"!==t.height,a=document.createElement(s(217));a.className="adstage-fade-slider-wrapper";const c={position:s(200),overflow:s(247),display:s(224)};if(!o&&(c[s(258)]="auto",c[s(210)]=s(232)),t.width&&0!==t[s(261)]){let e;e=typeof t[s(261)]===s(196)?t[s(261)][s(194)]("px")||t.width[s(194)]("%")?t[s(261)]:t[s(261)]+"px":t.width+"px",c.width=e}if(t[s(258)]&&0!==t[s(258)]&&"auto"!==t[s(258)]&&o){let e;e=typeof t[s(258)]===s(196)&&(t[s(258)][s(194)]("px")||t.height[s(194)]("%"))?t[s(258)]:t[s(258)]+"px",c[s(258)]=e}Object[s(226)](c)[s(197)](([t,e])=>{const n=s;a[n(223)][n(192)](t,e)});const d=document.createElement("div");d.className=s(249),d[s(223)][s(199)]="\n position: relative;\n width: 100%;\n "+s(o?259:256)+s(250);let l=null;const u=!t[s(261)]||0===t[s(261)],p=!t[s(258)]||0===t[s(258)]||void 0===t[s(258)]||t[s(258)]===s(246);if(u||p&&o){if(l=document[s(241)](s(217)),l[s(223)][s(199)]=s(222),!u&&t[s(261)]){let e;e=typeof t[s(261)]===s(196)?t[s(261)][s(194)]("px")||t[s(261)][s(194)]("%")?t[s(261)]:t[s(261)]+"px":t.width+"px",l.style[s(261)]=e,l[s(223)][s(203)]="normal"}document.body[s(254)](l);let n=0,r=0;e.forEach(e=>{const i=s,o=this.createSimpleAdElement(t,e);l[i(254)](o);const a=o[i(225)]();a[i(261)]>n&&(n=a[i(261)]),a[i(258)]>r&&(r=a[i(258)]),l[i(236)](o)}),u&&n>0&&(a[s(223)][s(261)]=n+"px"),p&&r>0&&o&&(a.style.height=r+"px"),document.body[s(236)](l)}const h=[];e.forEach((e,n)=>{const a=s,c=document.createElement(a(217));c[a(206)]=a(240);const l=o?"absolute":a(0===n?200:230);c[a(223)][a(199)]="\n position: "+l+";\n top: "+("absolute"===l?"0":a(246))+a(202)+(l===a(230)?"0":"auto")+a(266)+a(o?259:239)+a(233)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":"20px")+a(235)+(0===n?"2":"1")+a(208);const u=this[a(229)](t,e);it.addClickEventForSlider(u,e,t,r,i,"Text"),c[a(254)](u),d[a(254)](c),h.push(c)});let f=0;const g=e[s(219)],m=1e3*(n?.[s(216)]||4),I=n=>{const a=s;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c.style[a(190)]===a(200)&&(c.style[a(190)]=a(230),c[a(223)].top="0",c[a(223)][a(255)]="0"),d[a(223)][a(190)]=a(200),d[a(223)][a(257)]=a(246),d.style[a(255)]="auto"),c.style[a(253)]="0",c[a(223)][a(221)]="translateY(-20px)",c.style[a(189)]="1",d[a(223)].opacity="1",d[a(223)][a(221)]=a(260),d.style.zIndex="2",h[a(197)]((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(223)][r(253)]="0",t[r(223)][r(221)]=r(214),t[r(223)][r(189)]="1",!o&&t[r(223)].position===r(200)&&(t[r(223)].position=r(230),t[r(223)][r(257)]="0",t[r(223)][r(255)]="0"))}),f=n,$[a(205)](e[f],t,f,r,i)};let v=setInterval(()=>{I(f+1)},m);return a[s(218)](s(204),()=>{clearInterval(v)}),a[s(218)](s(244),()=>{v=setInterval(()=>{I(f+1)},m)}),Ct.addTouchSupport(a,I,()=>f,g),a.appendChild(d),a}static[xt(262)](t,e,n,r){const i=xt;let s=0,o=0,a=!1;t[i(218)]("touchstart",t=>{const e=i;s=t[e(193)][0][e(212)],o=t[e(193)][0].clientY,a=!0}),t[i(218)](i(242),t=>{a&&t.preventDefault()}),t[i(218)](i(231),t=>{const r=i;if(!a)return;a=!1;const c=t.changedTouches[0].clientX,d=t[r(228)][0][r(207)],l=s-c,u=o-d;if(Math[r(237)](l)>Math.abs(u)&&Math[r(237)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Dt=_t;function _t(t,e){const n=Rt();return(_t=function(t,e){return n[t-=478]})(t,e)}function Rt(){const t=[" ads","createElement","adstage-text-content"," with ","config","2137914rlTHnL","Container not found: ","getDefaultHeight","containerId","2948984lmQPWb","number","117183RDJFwZ","408QyGmRg","log","_id","optimizedHeight","style","4750810NNEmMr","appendChild","adstage-ad adstage-text-ad","innerHTML","✨ Single text ad rendered: ","length","addClickEventForRenderer","width","debug","4zpDxbY","className","height","TEXT","getElementById","5KnEVWc","hidden","Text","105AbjDTw","9wlaGyV","renderMultipleAds","display","createTextTransitionContainer","maxLines","webkitLineClamp","5525310FCQfGI","parentElement","60px","aspectRatio","overflow","100%","193432njkHHC","✨ Text transition created for slot: ","-webkit-box","13183zNhjbX","createEventTrackingCallback","createTextAdStyles"];return(Rt=function(){return t})()}!function(){const t=_t,e=Rt();for(;;)try{if(669321===-parseInt(t(486))/1*(parseInt(t(515))/2)+-parseInt(t(494))/3+-parseInt(t(498))/4*(-parseInt(t(520))/5)+parseInt(t(530))/6+-parseInt(t(523))/7*(parseInt(t(483))/8)+parseInt(t(524))/9*(parseInt(t(506))/10)+-parseInt(t(500))/11*(parseInt(t(501))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt extends gt{constructor(t=!1,e){super(o[_t(518)],t,e)}[Dt(496)](){return Dt(479)}async renderAdElement(t,e){const n=Dt,r=document[n(519)](t[n(497)]);if(!r)return;const i=document.createElement("div");i[n(516)]=n(508);const s=t.optimizedHeight,o=r[n(478)]||r;if(s)i[n(505)].width=n(482),i[n(505)].height=String(s);else{const e=t[n(493)],r={width:e?.[n(513)],height:e?.[n(517)]},{width:s,height:a}=this.calculateAdSize(o,r,{debug:this[n(514)]});i[n(505)][n(513)]=s,i[n(505)].height=a}const a=document[n(490)]("div");a[n(516)]=n(491),a[n(505)].cssText=At[n(488)](!1),At.setTextAdContent(a,e);const c=t[n(493)]?.[n(528)];c&&typeof c===n(499)&&(a[n(505)][n(526)]=n(485),a.style[n(529)]=String(c),a[n(505)].webkitBoxOrient="vertical",a[n(505)][n(481)]=n(521)),i[n(507)](a),it[n(512)](i,e,t,()=>this[n(487)](),this.debug,n(522)),r.innerHTML="",r.appendChild(i),this[n(514)]&&console[n(502)](n(510)+e[n(503)])}async[Dt(525)](t,e){const n=Dt,r=document[n(519)](t[n(497)]);if(!r)throw new Error(n(495)+t[n(497)]);const i=this[n(487)](),s={autoSlideInterval:(t[n(493)]?.slideInterval||5e3)/1e3,...t[n(493)],optimizedHeight:t[n(504)],aspectRatio:t[n(480)]},o=Ct[n(527)](t,e,s,i,this[n(514)]);o&&(r[n(509)]="",r[n(507)](o),this[n(514)]&&console[n(502)](n(484)+t.id+n(492)+e[n(511)]+n(489)))}}const zt=Pt;function Ut(){const t=["loadeddata","2310940bFzbkM","title","setAttribute","head"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","mouseleave","adstage-video-mute-button","hideCurrentTime","playsinline","adstage-video-container","loadedmetadata","containerId","🎬 Video element created for ad: ","addClickEventForRenderer","style","mouseenter","scale(1)","hidePlayButton","none","stopPropagation","transform","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","unmuted","hideFullscreenButton","display","hideRemainingTime","Video thumbnail","22iZsysT","Click to unmute","\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ","debug","Video","height","1048754okKKmk",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',"_id"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ",", muted: ","575816OFOSvf","preload","hideVolumeSlider","length","🎬 Video metadata loaded, attempting autoplay...","🎬 Initial autoplay attempt after timeout...","hideControls","365ceTFBE","metadata","19242unjiwF","90gIYpDZ","block"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","1382MsVclM","renderVideoElementDirect","textContent","🔊 Video mute toggled: ","play","appendChild","objectFit","🎬 Final video settings:","videoUrl","imageUrl","Video fallback","100%","createEventTrackingCallback","rgba(0, 0, 0, 0.7)","catch","⚠️ No video advertisements available for slot: ","img","createElement","src"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ',"contain","🎬 Single video ad rendered: ","2234106WLRHpc","🎬 Autoplay completely failed:","\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n ","loop","error","log","button","video","className","muted","253977OnVcHq","hideProgressBar","🎬 Video controls setting:","innerHTML","12UEZDtW","\n pointer-events: none;\n ","VIEWABLE","renderAdElement","Video load failed:","Click to mute"," (autoplay: ","🎬 Single video rendered for VIDEO slot: ","rgba(0, 0, 0, 0.9)","scale(1.1)","width","Container not found: ","adstage-video-default-controls","div","🎬 Video data loaded, attempting autoplay...","autoplay","cssText"," !important;\n }\n ","addEventListener","click","VIDEO","🎬 User explicitly enabled controls, overriding default","controls","alt","renderMultipleAds","getElementById","background","position","canplay","warn","customControls"];return(Ut=function(){return t})()}function Pt(t,e){const n=Ut();return(Pt=function(t,e){return n[t-=133]})(t,e)}!function(){const t=Pt,e=Ut();for(;;)try{if(178433===parseInt(t(143))/1*(parseInt(t(146))/2)+-parseInt(t(179))/3*(parseInt(t(183))/4)+parseInt(t(140))/5*(parseInt(t(142))/6)+-parseInt(t(248))/7+parseInt(t(133))/8+-parseInt(t(169))/9+parseInt(t(215))/10*(parseInt(t(242))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Mt extends gt{constructor(t=!1,e){super(o[Pt(203)],t,e)}getDefaultHeight(){return"360px"}async[zt(186)](t,e){const n=zt,r=document[n(208)](t.containerId);if(!r)return;const i=document.createElement(n(196));i[n(177)]=n(224),i[n(229)][n(199)]=n(236),this[n(147)](i,e,t),r.innerHTML="",r[n(151)](i),this[n(245)]&&console[n(174)](n(168)+e[n(250)])}async[zt(207)](t,e){const n=zt,r=document[n(208)](t[n(226)]);if(!r)throw new Error(n(194)+t[n(226)]);if(e[n(136)]>0){const i=e[0],s=document[n(163)](n(196));s.className="adstage-video-container",s[n(229)][n(199)]="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this.renderVideoElementDirect(s,i,t),r.innerHTML="",r[n(151)](s);const o=this[n(158)]();setTimeout(()=>{const e=n;o(i[e(250)],t.id,p[e(185)])},100),this[n(245)]&&console[n(174)](n(190)+t.id+" ("+i[n(250)]+")")}else this[n(245)]&&console[n(212)](n(161)+t.id)}[zt(147)](t,e,n){const r=zt;t[r(229)][r(210)]="relative";const i=document[r(163)](r(176));i[r(229)][r(193)]=r(157),i[r(229)].height=r(157),i.style.objectFit=r(167),i[r(134)]=r(141);const s=n.config;if(this[r(245)]&&console[r(174)]("🎬 Video config received:",s),i[r(205)]=!1,i[r(198)]=!1!==s?.[r(198)],i[r(178)]=!0,i.loop=!1!==s?.[r(172)],this[r(245)]&&console[r(174)](r(153),{autoplay:i[r(198)],muted:i.muted,loop:i.loop,controls:i[r(205)]}),!1!==s?.[r(223)]&&i[r(217)]("playsinline",""),!0===s?.controls&&(i[r(205)]=!0,this[r(245)]&&console[r(174)](r(204))),s?.[r(139)])i[r(205)]=!1,i[r(229)][r(199)]+=r(184);else if(s?.[r(213)]){if(i[r(205)]){const t=document[r(163)]("style");t[r(148)]="\n video::-webkit-media-controls-play-button {\n display: "+(s[r(213)][r(232)]?r(233):r(144))+r(219)+(s[r(213)][r(180)]?"none":r(144))+r(145)+(s.customControls[r(222)]?r(233):r(144))+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(s[r(213)][r(240)]?r(233):r(144))+r(165)+(s.customControls[r(135)]?"none":"block")+r(251)+(s[r(213)].hideMuteButton?r(233):r(144))+" !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: "+(s[r(213)][r(238)]?"none":"block")+r(200),document[r(218)][r(151)](t)}}else if(i[r(205)]){const t=document[r(163)](r(229));t.id="adstage-video-default-controls",t[r(148)]=r(171),!document[r(208)](r(195))&&document[r(218)][r(151)](t)}this[r(245)]&&console[r(174)](r(181),i.controls?"enabled":"disabled (default)");const o=document[r(163)](r(175));o[r(177)]=r(221),o[r(229)][r(199)]=r(244),s?.[r(139)]&&(o.style[r(239)]=r(233));const a=()=>{const t=r,e=t(166),n=t(249);o[t(182)]=i[t(178)]?e:n,o[t(216)]=i[t(178)]?t(243):t(188)};if(a(),o[r(201)](r(202),t=>{const e=r;t[e(234)](),i[e(178)]=!i.muted,a(),this[e(245)]&&console[e(174)](e(149)+(i[e(178)]?e(178):e(237)))}),o[r(201)](r(230),()=>{const t=r;o[t(229)].background=t(191),o[t(229)][t(235)]=t(192)}),o.addEventListener(r(220),()=>{const t=r;o[t(229)][t(209)]=t(159),o[t(229)][t(235)]=t(231)}),e.videoUrl){i[r(164)]=e[r(154)];const t=()=>{const t=r;i[t(198)]&&i[t(178)]&&i.paused&&i[t(150)]()[t(160)](e=>{const n=t;this[n(245)]&&(console[n(212)]("🎬 Auto-play was prevented:",e),console[n(212)]("🎬 Trying muted autoplay fallback...")),i[n(178)]=!0,i[n(150)]().catch(t=>{const e=n;this[e(245)]&&console.error(e(170),t)})})};i.addEventListener(r(225),()=>{const e=r;this[e(245)]&&console[e(174)](e(137)),t()}),i[r(201)](r(211),()=>{const e=r;this[e(245)]&&console[e(174)]("🎬 Video can play, attempting autoplay..."),t()}),i[r(201)](r(214),()=>{const e=r;this[e(245)]&&console[e(174)](e(197)),t()}),setTimeout(()=>{const e=r;this[e(245)]&&console[e(174)](e(138)),t()},100)}else if(e[r(155)]){const n=document.createElement(r(162));return n.src=e.imageUrl,n[r(229)].width="100%",n[r(229)][r(247)]=r(157),n[r(229)][r(152)]=r(167),n.alt=e.title||r(241),void t[r(151)](n)}it[r(228)](i,e,n,()=>this[r(158)](),this[r(245)],r(246)),i[r(201)](r(173),i=>{const s=r;if(console.error(s(187),i),e[s(155)]){const r=document[s(163)](s(162));r[s(164)]=e[s(155)],r.style[s(193)]=s(157),r[s(229)].height="100%",r[s(229)].objectFit="contain",r[s(206)]=e[s(216)]||s(241),it.addClickEventForRenderer(r,e,n,()=>this[s(158)](),this[s(245)],s(156)),t[s(182)]="",t[s(151)](r)}}),t.appendChild(i),t[r(151)](o),this.debug&&console[r(174)](r(227)+e._id+r(189)+i[r(198)]+r(252)+i[r(178)]+", loop: "+i[r(172)]+")")}}const Bt=Ot;function Ot(t,e){const n=Nt();return(Ot=function(t,e){return n[t-=219]})(t,e)}!function(){const t=Ot,e=Nt();for(;;)try{if(905460===-parseInt(t(244))/1+-parseInt(t(228))/2+-parseInt(t(237))/3+-parseInt(t(225))/4*(parseInt(t(261))/5)+-parseInt(t(232))/6+-parseInt(t(235))/7*(-parseInt(t(246))/8)+-parseInt(t(239))/9*(-parseInt(t(260))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Vt extends gt{constructor(t=!1,e){super(o[Ot(224)],t,e)}[Bt(257)](){return Bt(238)}async[Bt(242)](t,e){const n=Bt,r=document.getElementById(t[n(222)]);if(!r)return;const i=document[n(251)]("div");if(i[n(233)]=n(230),i[n(229)].cssText=n(226),e[n(258)]){const t=document.createElement("h3");t.textContent=e[n(258)],t[n(229)][n(245)]="\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ",i.appendChild(t)}if(e[n(236)]){const t=document[n(251)]("p");t[n(236)]=e.textContent,t[n(229)][n(245)]=n(254),i[n(255)](t)}if(e[n(252)]){const t=document[n(251)]("div");t[n(229)][n(245)]="\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ";const r=document[n(251)](n(250));r[n(243)]=e.imageUrl,r[n(249)]=e[n(258)]||n(248),r.style[n(245)]="\n width: 100%;\n height: 100%;\n object-fit: cover;\n ",t.appendChild(r),i[n(255)](t)}if(e[n(234)]){const t=document.createElement("button");t[n(236)]="Learn More",t[n(229)][n(245)]=n(219),t[n(241)]("click",()=>{const t=n;this[t(220)]&&console[t(247)]("Native click tracked for ad: "+e[t(223)]),window[t(253)](e[t(234)],"_blank")}),t.addEventListener("mouseenter",()=>{t.style.backgroundColor="#2563eb"}),t.addEventListener(n(240),()=>{const e=n;t.style[e(221)]="#3b82f6"}),i[n(255)](t)}r[n(256)]="",r.appendChild(i),this[n(231)]&&console[n(247)]("🏠 Single native ad rendered: "+e[n(223)])}async renderMultipleAds(t,e){const n=Bt;e.length>0?(await this[n(242)](t,e[0]),this[n(231)]&&console[n(247)](n(227)+e.length+"): "+t.id)):this.debug&&console[n(259)]("⚠️ No native advertisements available for slot: "+t.id)}}function Nt(){const t=["4938910QGDRkZ","65bGfnEB","\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n ","advertisementEventTracker","backgroundColor","containerId","_id","NATIVE","153116TVUjXu","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","🏠 Native ad rendered (first of ","708890pPfOYs","style","adstage-ad adstage-native-ad","debug","2758548AyGdgR","className","linkUrl","7098keIFKx","textContent","2472654vJPzVj","200px","36wfeful","mouseleave","addEventListener","renderAdElement","src","699430VvkibE","cssText","13928JsNrZJ","log","Native Advertisement","alt","img","createElement","imageUrl","open","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","appendChild","innerHTML","getDefaultHeight","title","warn"];return(Nt=function(){return t})()}function Ft(t,e){const n=Kt();return(Ft=function(t,e){return n[t-=353]})(t,e)}const Ht=Ft;!function(){const t=Ft,e=Kt();for(;;)try{if(740661===parseInt(t(411))/1*(-parseInt(t(381))/2)+-parseInt(t(397))/3+parseInt(t(409))/4+-parseInt(t(355))/5+-parseInt(t(387))/6+-parseInt(t(408))/7+parseInt(t(359))/8*(parseInt(t(391))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class jt extends gt{constructor(t=!1,e){super(o[Ft(372)],t,e)}[Ht(376)](){return"400px"}async renderAdElement(t,e){const n=Ht;if(!document[n(386)](t[n(393)]))return;const r=document[n(395)]("div");r[n(416)]="adstage-interstitial-overlay",r[n(356)][n(388)]=n(385);const i=document[n(395)](n(405));i[n(416)]=n(379),i[n(356)].cssText=n(413);const s=document[n(395)](n(375));if(s[n(369)]="×",s[n(356)].cssText=n(366),s[n(404)]("click",()=>{this[n(415)](r)}),s.addEventListener("mouseenter",()=>{const t=n;s.style[t(392)]=t(418),s[t(356)][t(363)]=t(364)}),s[n(404)]("mouseleave",()=>{const t=n;s[t(356)][t(392)]="#f3f4f6",s.style[t(363)]="#6b7280"}),e[n(417)]){const t=document[n(395)](n(367));t[n(361)]=e[n(417)],t[n(414)]=e[n(400)]||"Interstitial Advertisement",t[n(356)][n(388)]=n(384),i[n(357)](t)}if(e.title){const t=document[n(395)]("h2");t[n(412)]=e.title,t[n(356)].cssText=n(406),i.appendChild(t)}if(e.textContent){const t=document[n(395)]("p");t[n(412)]=e[n(412)],t[n(356)][n(388)]="\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ",i.appendChild(t)}if(e.linkUrl){const t=document[n(395)](n(375));t[n(412)]=n(396),t.style[n(388)]=n(373),t[n(404)](n(382),()=>{const t=n;this[t(368)]&&console[t(402)]("Interstitial click tracked for ad: "+e[t(362)]),window[t(390)](e[t(419)],t(394)),this[t(415)](r)}),t[n(404)]("mouseenter",()=>{const e=n;t[e(356)][e(392)]=e(374)}),t[n(404)]("mouseleave",()=>{const e=n;t.style.backgroundColor=e(354)}),i[n(357)](t)}const o=t=>{const e=n;t[e(401)]===e(420)&&(this.closeInterstitial(r),document.removeEventListener(e(360),o))};if(document[n(404)]("keydown",o),r.addEventListener("click",t=>{t.target===r&&this.closeInterstitial(r)}),!document.getElementById("adstage-interstitial-styles")){const t=document[n(395)](n(356));t.id=n(389),t[n(412)]=n(371),document[n(383)].appendChild(t)}i[n(357)](s),r[n(357)](i),document[n(399)][n(357)](r),this[n(365)]&&console[n(402)](n(407)+e[n(362)])}async[Ht(380)](t,e){const n=Ht;e.length>0?(await this[n(377)](t,e[0]),this[n(365)]&&console[n(402)](n(410)+e.length+"): "+t.id)):this.debug&&console[n(378)](n(398)+t.id)}[Ht(415)](t){const e=Ht;t[e(356)][e(353)]=e(403),setTimeout(()=>{const n=e;t[n(358)]&&t[n(358)].removeChild(t)},300),this.debug&&console.log(e(370))}}function Kt(){const t=["advertisementEventTracker","innerHTML","🖼️ Interstitial ad closed","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","INTERSTITIAL","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","#2563eb","button","getDefaultHeight","renderAdElement","warn","adstage-interstitial-content","renderMultipleAds","14QOJpne","click","head","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ","getElementById","2841258aWzKnp","cssText","adstage-interstitial-styles","open","6073263roAtqq","backgroundColor","containerId","_blank","createElement","Get Started","1694796Ccqnex","⚠️ No interstitial advertisements available for slot: ","body","title","key","log","fadeOut 0.3s ease-out forwards","addEventListener","div","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","🖼️ Interstitial ad rendered: ","3253509enaGOs","4332464TFuBHm","🖼️ Interstitial ad rendered (first of ","17373gCYxyd","textContent","\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ","alt","closeInterstitial","className","imageUrl","#e5e7eb","linkUrl","Escape","animation","#3b82f6","3710015xXbYkQ","style","appendChild","parentNode","24tKrInt","keydown","src","_id","color","#374151","debug","\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ","img"];return(Kt=function(){return t})()}const Wt=qt;function qt(t,e){const n=Gt();return(qt=function(t,e){return n[t-=229]})(t,e)}function Gt(){const t=["img"," renderers","206622dRGzkD","src","advertisement","No advertisement to render","getRenderer","406903ZLzvHi","100%","🏭 AdRenderer factory initialized with ","getDefaultHeight","style","toLowerCase","TEXT","warn","renderOptimizedBannerImage","8ZTwsHo","imageUrl","setAttribute","advertisementEventTracker","adType","8px","createElement","685572ODVyRU","height","renderAdSlider","naturalHeight","initializeRenderers","videoUrl","_id","div","4182453BAYQAX","border","321810mfHsrR","appendChild","No renderer found for ad type: ","onload","9Thdccy","block","renderOptimizedBannerImage is only supported for BANNER ads","cover","#f9f9f9","291550LRqulq","calculateAdSize","VIDEO","getDefaultHeightForAdType","calculateOptimalContainerSize","renderAd","NATIVE","config","BANNER","adstage-ad adstage-","renderMultipleAds","INTERSTITIAL","data-adstage-ad-id","28MxkAtO","naturalWidth","objectFit","renderFallback","textContent","createPlaceholder","renderers","debug","[AdRenderer] ","379PFGRPo","backgroundColor","padding","createAdElement","log","5VUitfR","set","renderAdElement","optimizeContainerForBannerAds","width","loadImageDimensions"];return(Gt=function(){return t})()}!function(){const t=qt,e=Gt();for(;;)try{if(111613===parseInt(t(249))/1*(parseInt(t(240))/2)+-parseInt(t(262))/3+-parseInt(t(283))/4+parseInt(t(254))/5*(parseInt(t(293))/6)+parseInt(t(267))/7*(-parseInt(t(276))/8)+parseInt(t(297))/9*(-parseInt(t(302))/10)+parseInt(t(291))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Yt{constructor(t=!1,e){const n=qt;this.renderers=new Map,this[n(247)]=t,this[n(279)]=e||null,this[n(287)]()}[Wt(287)](){const t=Wt;this.renderers.set(o.BANNER,new yt(this[t(247)],this[t(279)])),this.renderers[t(255)](o[t(273)],new Lt(this.debug,this[t(279)])),this[t(246)][t(255)](o[t(229)],new Mt(this[t(247)],this[t(279)])),this[t(246)].set(o[t(233)],new Vt(this[t(247)],this[t(279)])),this[t(246)].set(o[t(238)],new jt(this[t(247)],this[t(279)])),this.debug&&console[t(253)](t(269)+this[t(246)].size+t(261))}[Wt(252)](t,e){const n=Wt,r=this[n(266)](t[n(280)]),i=document.createElement(n(290));i.className=n(236)+String(t.adType)[n(272)](),i[n(278)](n(239),e[n(289)]),i[n(278)]("data-adstage-slot-id",t.id);const{width:s,height:a}=r[n(303)](i,t[n(234)]||{},e);switch(i[n(271)][n(258)]=s,i[n(271)][n(284)]=a,i.style.display=n(298),t[n(280)]){case o[n(235)]:if(e[n(277)]){const t=document[n(282)](n(260));t[n(263)]=e.imageUrl,t.style.width=n(268),t[n(271)][n(284)]=n(268),t[n(271)][n(242)]=n(300),i[n(294)](t)}break;case o[n(229)]:if(e[n(288)]){const t=document[n(282)]("video");t.src=e.videoUrl,t.style.width=n(268),t.style.height=n(268),i.appendChild(t)}break;case o[n(273)]:if(e[n(244)]){const t=document[n(282)](n(290));t[n(244)]=e[n(244)]||"",t.style[n(251)]=n(281),i.appendChild(t)}break;default:i[n(271)][n(292)]="1px dashed #ccc",i[n(271)][n(250)]=n(301),i[n(244)]=t[n(280)]+" Ad"}return i}[Wt(266)](t){const e=Wt,n=this[e(246)].get(t);if(!n)throw new Error(e(295)+t);return n}[Wt(245)](t,e,n,r,i){const s=Wt;this[s(266)](n)[s(245)](t,e,r,i)}async[Wt(257)](t,e){const n=Wt;if(t[n(280)]!==o[n(235)])return void(this.debug&&console[n(274)]("⚠️ Container optimization is only supported for BANNER ads, got: "+t[n(280)]));const r=this[n(266)](o.BANNER);await r.optimizeContainerForBannerAds(t,e)}async[Wt(285)](t,e){const n=Wt,r=this[n(266)](t.adType);await r[n(237)](t,e)}async[Wt(232)](t){const e=Wt;if(!t[e(264)])throw new Error(e(265));const n=this[e(266)](t[e(280)]);await n[e(256)](t,t.advertisement),t.isLoaded=!0}async renderAdElement(t,e){const n=this[Wt(266)](t.adType);await n.renderAdElement(t,e)}[Wt(243)](t){const e=Wt;this[e(266)](t.adType)[e(243)](t)}[Wt(230)](t){const e=Wt;return this[e(266)](t)[e(270)]()}[Wt(303)](t,e,n,r){return this.getRenderer(e).calculateAdSize(t,n,r)}[Wt(259)](t){return new Promise((e,n)=>{const r=qt,i=new Image;i[r(296)]=()=>{const t=r;e({width:i[t(241)],height:i[t(286)]})},i.onerror=()=>{n(new Error("Failed to load image: "+t))},i[r(263)]=t})}async[Wt(275)](t,e,n){const r=Wt;if(n[r(280)]!==o[r(235)])throw new Error(r(299));const i=this.getRenderer(o.BANNER);return await i[r(275)](t,e,n)}async[Wt(231)](t,e,n){const r=Wt;if(n!==o[r(235)]){const t=this[r(266)](n);return{width:r(268),height:t[r(270)](),aspectRatio:16/9}}const i=this[r(266)](o[r(235)]);return await i[r(231)](t,e)}log(t,...e){const n=Wt;this[n(247)]&&console[n(253)](n(248)+t,...e)}}const Zt=Xt;function Jt(){const t=["config","adstage-","createAdWithRetry","getSlotById","setupAutoCleanup","❌ Failed to find element for viewability tracking: ","deviceType","advertisements","API key not configured","body","viewabilityTracker","refreshAdSlot","optimizeContainerForBannerAds","playsinline","hideControls","🔄 Retrying viewability tracking for slot: ","delete","values","data-adstage-slot-id","set","광고 생성 중 오류 발생:","Auto-cleanup failed for slot ","TEXT","json","random","handleViewableEvent","disconnect","BANNER","1099133tOuhaH","default","text","renderAdElement","📊 Fetched ","autoplay","adRenderer","getBaseUrl","autoDestroy","fetchAdData","length","mutationObserver","🔍 Auto-cleanup MutationObserver enabled","getConfig","🎯 Ads module initialized (sync mode) with auto-cleanup","customControls","🎠 Slider will handle VIEWABLE events for ","observe","adType"," ads)","🗑️ Ad slot destroyed: ","NATIVE","6HwMrcm","querySelectorAll","100%","append","native","create","createAdInternal"," ads automatically","apiKey","trackAdvertisementEvent","getElementById","debug","toString","📊 Advertisement event tracking enabled for slot: ","status","1719135mlCdPG","warn","destroy","createAd",", filters:","language","Ads module not initialized. Call AdStage.init() first.","renderAd","auto","544254VAeabB","advertisementEventTracker"," (element found)","renderAdSlider","onClick","403284YxXpOv","Ad slot not found: ","slots",". Retrying in "," ads for type: ","loadAdContentInBackground","❌ Failed to track viewable impression:","get","containerId","VIEWABLE","clear","[data-adstage-slot-id]","video","autoSlide","✅ Simple viewable impression tracked for ad ","Container not found after ","6377900LurhNW","🗑️ Ads module destroyed","getAttribute","🚫 Advertisement not found with ID: ","country","ms... (attempt ","list","🧹 Auto-cleanup: slot ","now","2828320XPlUWd","adId","maxLines","style","string","undefined","setAttribute","width","controls","✅ Ad loaded for slot: ","handleRemovedElement","auto-","height","_config","_isReady","error","GET","30sjmZOQ","39SJVifP","4094RHChXc"," attempts: ","renderFallback","refresh","nodeType","ensureReady","removedNodes","log","startSimpleViewabilityTracking","forEach","slideInterval","substr","VIDEO","Failed to fetch ad data: ","Container not found: ","📊 Fetched specific ad with ID: ","advertisement","createPlaceholder"];return(Jt=function(){return t})()}function Xt(t,e){const n=Jt();return(Xt=function(t,e){return n[t-=315]})(t,e)}!function(){const t=Xt,e=Jt();for(;;)try{if(326563===parseInt(t(384))/1*(-parseInt(t(385))/2)+-parseInt(t(453))/3*(parseInt(t(341))/4)+parseInt(t(383))/5*(parseInt(t(336))/6)+parseInt(t(431))/7+parseInt(t(366))/8+parseInt(t(327))/9+-parseInt(t(357))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Qt{constructor(){const t=Xt;this[t(380)]=!1,this[t(379)]=null,this[t(343)]=new Map,this[t(337)]=null,this[t(437)]=null,this.mutationObserver=null}init(t){const e=Xt;this[e(379)]=t,this[e(337)]=new V(J[e(438)](),t[e(320)],t.debug||!1,this.slots),this[e(437)]=new Yt(t[e(323)]||!1,this.advertisementEventTracker),this[e(407)](),this[e(380)]=!0,t[e(323)]&&console.log(e(445))}isReady(){return this[Xt(380)]}[Zt(444)](){return this[Zt(379)]}banner(t,e){const n=Zt;this[n(390)]();const r={width:e?.width||n(455),height:e?.[n(378)]||n(335),autoSlide:e?.autoSlide||!1,slideInterval:e?.[n(395)]||5e3,onClick:e?.onClick,adId:e?.[n(367)],language:e?.language,deviceType:e?.[n(409)],country:e?.[n(361)]};return this.createAd(t,o.BANNER,r)}[Zt(433)](t,e){const n=Zt;this[n(390)]();const r={maxLines:e?.[n(368)]||3,style:e?.[n(369)]||n(432),onClick:e?.onClick,adId:e?.[n(367)],language:e?.language,deviceType:e?.[n(409)],country:e?.[n(361)]};return this.createAd(t,o[n(425)],r)}[Zt(353)](t,e){const n=Zt;this[n(390)]();const r={width:e?.[n(373)]||640,height:e?.height||360,autoplay:void 0===e?.[n(436)]||e[n(436)],muted:void 0===e?.muted||e.muted,loop:void 0===e?.loop||e.loop,playsinline:!1!==e?.[n(416)],controls:void 0!==e?.[n(374)]&&e.controls,hideControls:e?.[n(417)]||!1,customControls:e?.[n(446)],autoSlide:!1,maxAds:1,onClick:e?.[n(340)],...e?.[n(367)]&&{adId:e[n(367)]}};return this[n(330)](t,o[n(397)],r)}[Zt(316)](t,e){const n=Zt;return this[n(390)](),this[n(330)](t,o[n(452)],e||{})}interstitial(t,e){const n=Zt;return this[n(390)](),this[n(330)](t,o.INTERSTITIAL,e||{})}[Zt(388)](t){const e=Zt;this[e(390)]();const n=this[e(343)].get(t);if(!n)throw new Error(e(342)+t);this[e(414)](n),this._config?.debug&&console[e(392)]("🔄 Ad slot refreshed: "+t)}[Zt(329)](t){const e=Zt;this[e(390)]();const n=this[e(343)][e(348)](t);if(!n)return void(this[e(379)]?.[e(323)]&&console[e(392)]("🔍 Ad slot already cleaned up: "+t));n[e(413)]&&n[e(413)].destroy();const r=document.getElementById(n[e(349)]);r&&(r.innerHTML=""),this[e(343)][e(419)](t),this[e(379)]?.[e(323)]&&console[e(392)](e(451)+t)}getAllSlots(){const t=Zt;return this.ensureReady(),Array.from(this[t(343)][t(420)]())}[Zt(406)](t){const e=Zt;return this[e(390)](),this.slots[e(348)](t)||null}[Zt(330)](t,e,n){const r=Zt;if(!this[r(379)]?.[r(320)])throw new Error(r(411));const i=r(404)+e+"-"+Date[r(365)]()+"-"+Math[r(427)]().toString(36)[r(396)](2,9);return this[r(405)](t,e,n,i,0),i}async createAdWithRetry(t,e,n,r,i){const s=Zt,o=[0,50,100,200,500];let a,c=null;if(typeof t===s(370)){if(a=t,c=document[s(322)](t),!c)return i<4?(this._config?.[s(323)]&&console[s(328)](s(399)+t+s(344)+o[i+1]+s(362)+(i+1)+"/5)"),void setTimeout(()=>{this[s(405)](t,e,n,r,i+1)},o[i+1])):void console[s(381)](s(356)+5+s(386)+t)}else c=t,a=c.id||s(377)+r,!c.id&&(c.id=a);try{this[s(318)](a,e,n,r,c)}catch(t){console[s(381)](s(423),t)}}createAdInternal(t,e,n,r,i){const s=Zt;i[s(372)](s(421),r),this.adRenderer?.[s(402)](i,r,e,n,this[s(379)]);const a={id:r,containerId:t,adType:e,width:n.width||s(455),height:n[s(378)]||(e===o[s(425)]?s(335):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this.fetchAdData(e,n).then(t=>t[0]||null),render:t=>this[s(437)]?.[s(434)](a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this[s(329)](r)};this[s(343)][s(422)](r,a),this[s(346)](a),this[s(337)]&&this[s(379)]?.[s(323)]&&console[s(392)](s(325)+r)}async[Zt(346)](t){const e=Zt;try{const n=await this.fetchAdData(t[e(449)],t[e(403)]);if(!n||0===n[e(441)])return void this[e(437)]?.[e(387)](t);t[e(449)]===o[e(430)]&&n.length>0&&await(this[e(437)]?.[e(415)](t,n)),n.length>1||t[e(403)]?.[e(354)]?(await(this[e(437)]?.[e(339)](t,n)),this[e(379)]?.[e(323)]&&console.log(e(447)+n.length+e(319))):(t.advertisement=n[0],await(this[e(437)]?.[e(434)](t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t.isLoaded=!0,this[e(379)]?.debug&&console[e(392)](e(375)+t.id+" ("+n[e(441)]+e(450))}catch(n){console.error("❌ Failed to load ad for slot: "+t.id,n),this[e(437)]?.renderFallback(t)}}[Zt(393)](t,e){const n=(r=0)=>{const i=Xt,s=document[i(322)](t.id);if(!s)return void(r<5?(setTimeout(()=>n(r+1),300),this._config?.[i(323)]&&console[i(392)](i(418)+t.id+" (attempt "+(r+1)+")")):console[i(328)](i(408)+t.id));const o=new j(s,async()=>{const n=i;await this[n(428)](e,t)});t[i(413)]=o,this._config?.[i(323)]&&console.log("🎯 Simple viewability tracking started for slot: "+t.id+i(338))};n()}async[Zt(428)](t,e){const n=Zt;try{this.advertisementEventTracker&&(await this.advertisementEventTracker[n(321)](t._id,e.id,p[n(350)]),this[n(379)]?.[n(323)]&&console[n(392)](n(355)+t._id))}catch(t){console[n(381)](n(347),t)}}async[Zt(440)](t,e){const n=Zt;if(!this[n(379)]?.[n(320)])throw new Error(n(411));if(e[n(367)]){const t=""+J[n(410)].detail(e[n(367)]),r=await fetch(t,{method:n(382),headers:U[n(317)](this._config[n(320)])});if(!r.ok){if(404===r[n(326)])return console.warn(n(360)+e[n(367)]),[];throw new Error(n(398)+r[n(326)])}const i=await r[n(426)]();return this[n(379)]?.debug&&console.log(n(400)+e[n(367)],i),[i]}const r=new URLSearchParams;r[n(315)](n(449),t),e[n(332)]&&r[n(315)](n(332),e[n(332)]),e.deviceType&&r[n(315)](n(409),e[n(409)]),e[n(361)]&&r[n(315)]("country",e[n(361)]);const i=J[n(410)][n(363)]()+"?"+r[n(324)](),s=await fetch(i,{method:"GET",headers:U.create(this[n(379)][n(320)])});if(!s.ok)throw new Error(n(398)+s[n(326)]);const o=(await s[n(426)]())[n(410)]||[];return this._config?.[n(323)]&&console[n(392)](n(435)+o[n(441)]+n(345)+t+n(331),{language:e[n(332)],deviceType:e[n(409)],country:e[n(361)]}),o}async[Zt(414)](t){const e=Zt;try{const n=await this[e(440)](t.adType,t[e(403)]||{});n&&n[e(441)]>0&&(t[e(401)]=n[0],await(this[e(437)]?.[e(334)](t)),this[e(337)]&&console.log("New advertisement viewable tracked for slot:",t.id))}catch(e){console.error("Failed to refresh ad slot: "+t.id,e)}}[Zt(390)](){const t=Zt;if(!this[t(380)])throw new Error(t(333))}[Zt(407)](){const t=Zt;"undefined"!=typeof window&&typeof document!==t(371)&&(this[t(442)]&&this[t(442)][t(429)](),this[t(442)]=new MutationObserver(e=>{const n=t;e[n(394)](t=>{const e=n;t[e(391)][e(394)](t=>{const n=e;t[n(389)]===Node.ELEMENT_NODE&&this[n(376)](t)})})}),this[t(442)][t(448)](document[t(412)],{childList:!0,subtree:!0}),this._config?.debug&&console[t(392)](t(443)))}[Zt(376)](t){const e=Zt,n=t[e(359)](e(421));if(n)return void this[e(439)](n);t[e(454)](e(352))[e(394)](t=>{const n=e,r=t[n(359)](n(421));r&&this[n(439)](r)})}autoDestroy(t){const e=Zt,n=this[e(343)][e(348)](t);if(n)try{n.viewabilityTracker&&n.viewabilityTracker[e(329)](),this[e(343)][e(419)](t),this[e(379)]?.debug&&console[e(392)](e(364)+t+" removed")}catch(n){this._config?.debug&&console[e(328)](e(424)+t+":",n)}}destroyModule(){const t=Zt,e=this[t(379)]?.[t(323)];this[t(442)]&&(this.mutationObserver[t(429)](),this[t(442)]=null),this[t(343)][t(351)](),this.advertisementEventTracker=null,this.adRenderer=null,this[t(380)]=!1,this[t(379)]=null,e&&console.log(t(358))}}var $t=ee;function te(){var t=["7486AeqHzJ","getApiEndpoint","735CxRCgZ","11JSluit","setBaseUrl","baseUrl","apiKey","log","✅ Config module initialized (sync mode)","1KhCYAM","_config","isModuleEnabled","14139vpxzYB","API key not available","424ywUqWU","create","events","Config module not initialized","ads","4GrCTcD","getEnabledModules","getOrganizationInfo","_organizationInfo","isDebugMode","modules","_isReady","config","updateConfig","development","4465920FleqEl","285423kvmDLn","618pLkuKh","457786VwLgDV","1938960JIPkUT","getApiHeaders","isReady"];return(te=function(){return t})()}function ee(t,e){var n=te();return(ee=function(t,e){return n[t-=432]})(t,e)}!function(){for(var t=ee,e=te();;)try{if(113346===parseInt(t(447))/1*(parseInt(t(438))/2)+parseInt(t(432))/3*(parseInt(t(457))/4)+parseInt(t(440))/5*(-parseInt(t(433))/6)+-parseInt(t(434))/7+parseInt(t(452))/8*(-parseInt(t(450))/9)+-parseInt(t(435))/10*(parseInt(t(441))/11)+parseInt(t(467))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=ee;this[t(463)]=!1,this[t(448)]=null,this[t(460)]=null}init(t){var e=ee;this._config={timeout:3e4,debug:!1,modules:[e(456),e(454),e(464)],...t},t[e(443)]&&J[e(442)](t[e(443)]),this[e(463)]=!0,t.debug&&console[e(445)](e(446),{modules:this[e(448)][e(462)],endpoint:J.getBaseUrl(),mode:e(466)})}[$t(437)](){return this[$t(463)]}getConfig(){return this._config}[$t(459)](){return this[$t(460)]}[$t(439)](){return J.getBaseUrl()}isDebugMode(){var t=$t;return this[t(448)]?.debug||!1}getEnabledModules(){var t=$t;return this[t(448)]?.[t(462)]||[]}[$t(449)](t){return this[$t(458)]().includes(t)}[$t(465)](t){var e=$t;if(!this._config)throw new Error(e(455));this[e(448)]={...this._config,...t},this[e(461)]()&&console.log("🔄 Config updated",t)}[$t(436)](){var t=$t;if(!this[t(448)]?.[t(444)])throw new Error(t(451));return U[t(453)](this[t(448)][t(444)])}}const re=ie;function ie(t,e){const n=se();return(ie=function(t,e){return n[t-=323]})(t,e)}function se(){const t=["2872awyOyk","0x0","getAutoDetectedDeviceInfo","6926382kbyNSJ","userAgent","1276840kbPQIm","language","isBrowser","getViewportInfo","platform","getDetailedInfo","test","setDeviceInfo","getDeviceInfo","3aKidJE","getPlatform","onLine","isMobile","59229MVNblN","tablet","mobile","5692645iMcTeC","iOS","getUserDeviceInfo","mapPlatformForEvents","SSR","1248952tGeAUG","2943904lNFdHj","height","Desktop Web","7347347ZDQVhH","Android","desktop","Unknown","width","_userProvidedDeviceInfo"];return(se=function(){return t})()}!function(){const t=ie,e=se();for(;;)try{if(883758===-parseInt(t(341))/1+parseInt(t(342))/2*(parseInt(t(329))/3)+-parseInt(t(356))/4+parseInt(t(336))/5+parseInt(t(354))/6+parseInt(t(345))/7+-parseInt(t(351))/8*(parseInt(t(333))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static[re(328)](){const t=re;return{...oe.getAutoDetectedDeviceInfo(),...oe[t(350)]}}static[re(353)](){const t=re;if(!k[t(358)]())return{category:"other",platform:"SSR",model:t(340),osVersion:t(340)};const e=navigator.userAgent.toLowerCase();let n=t(347);/tablet|ipad/[t(326)](e)?n=t(334):R[t(332)]()&&(n=t(335));const r=R[t(330)]();return{category:n,platform:oe[t(339)](r),model:navigator[t(324)],osVersion:navigator[t(324)],deviceId:R.generateDeviceId()}}static[re(327)](t){const e=re;oe._userProvidedDeviceInfo={...oe[e(350)],...t}}static setDeviceProperty(t,e){oe[re(350)][t]=e}static clearDeviceInfo(){oe[re(350)]={}}static[re(338)](){return{...oe[re(350)]}}static[re(339)](t){const e=re;switch(t){case"ios":return e(337);case"android":return e(346);case"web":return"Mobile Web";case e(347):return e(344);default:return e(348)}}static[re(325)](){const t=re;if(!k[t(358)]())return{userAgent:t(340),language:"ko-KR",platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(352),viewportSize:t(352)};const e=k[t(323)]();return{userAgent:navigator[t(355)],language:navigator[t(357)]||"ko-KR",platform:navigator.platform,cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(331)],screenResolution:screen[t(349)]+"x"+screen[t(343)],viewportSize:e[t(349)]+"x"+e.height}}}oe[re(350)]={};const ae=ce;function ce(t,e){const n=le();return(ce=function(t,e){return n[t-=197]})(t,e)}!function(){const t=ce,e=le();for(;;)try{if(983522===-parseInt(t(210))/1+-parseInt(t(197))/2*(parseInt(t(215))/3)+parseInt(t(201))/4+-parseInt(t(216))/5*(parseInt(t(208))/6)+parseInt(t(213))/7*(parseInt(t(217))/8)+parseInt(t(198))/9+-parseInt(t(209))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class de{static[ae(204)](){const t=ae;return{...de[t(202)](),...de[t(211)]}}static[ae(202)](){const t=ae;if(!k[t(200)]())return{language:t(207),country:"KR"};const e=navigator[t(205)]||t(207);return{language:e,country:de[t(199)](e)}}static[ae(199)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t.split("-")[0]]||"KR"}static[ae(212)](t){const e=ae;de[e(211)]={...de[e(211)],...t}}static setUserProperty(t,e){de[ae(211)][t]=e}static clearUserProperties(){de[ae(211)]={}}static[ae(203)](){return{...de._userProperties}}static[ae(206)](){const t=ae;if(!k[t(200)]())return{timezone:t(214),estimatedCountry:"KR"};const e=Intl[t(218)]().resolvedOptions().timeZone;return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function le(){const t=["10715dGrIAT","32nMuaAx","DateTimeFormat","59002ZXcxvl","10128276FpnsUC","extractCountryFromLanguage","isBrowser","6520500zdPtBY","getBaseUserInfo","getCurrentUserProperties","getUserInfo","language","estimateLocation","ko-KR","348yglKRR","4135210YOlojF","1285722SkhDrU","_userProperties","setUserProperties","813022PoZrui","UTC","42vhTUcy"];return(le=function(){return t})()}function ue(t,e){const n=he();return(ue=function(t,e){return n[t-=385]})(t,e)}de._userProperties={};const pe=ue;function he(){const t=["warn","keyword","adGroupId","isClickEventSent","utm_medium","campaign","twclid","1352637jiFoAF","kakao","channel","utm_term","ttclid","google.ads","term","UTM_KEYS","93984KUvyUr","campaignId","ALL_KEYS","adstage_referrer","true","linkedin.ads","length","27993ayhImA","store","ad_group","STORAGE_KEY","meta.ads","nclid","getItem","hasClickId","msclkid","keys","k_rank","1YZKsDl","liclid","CAMPAIGN_KEYS","adstage_tracking_params","ad_creative","k_keyword_id","2277036ttLnMi","utm_campaign","setItem","undefined","k_keyword","7423404nUzVjB","clear","get","keywordId","campaign_id","captureFromUrl","creativeId","gclid","ad_group_id","adRank","adCreative","creative_id","search","k_campaign","Failed to parse adstage_referrer:","k_creative","CLICK_ID_KEYS","utm_source","60TOVjEq","shouldSendClickEvent","removeItem","twitter.ads","1969DJaIIR","1747323GYgWVw","1480BByTtd","5hmnwen","fbclid","3074896gRWqTa","utm_content","hasParams","adstage_click_event_sent"];return(he=function(){return t})()}!function(){const t=ue,e=he();for(;;)try{if(683416===parseInt(t(412))/1*(parseInt(t(418))/2)+parseInt(t(446))/3+parseInt(t(450))/4+parseInt(t(448))/5*(parseInt(t(423))/6)+parseInt(t(401))/7*(-parseInt(t(447))/8)+-parseInt(t(386))/9*(parseInt(t(441))/10)+-parseInt(t(445))/11*(parseInt(t(394))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{static[pe(428)](){const t=pe;if(typeof window===t(421))return null;const e=new URLSearchParams(window.location[t(435)]),n={};let r=!1;const i=e[t(425)](t(397));if(i)try{const e=decodeURIComponent(i),s=new URLSearchParams(e);for(const e of fe[t(396)]){const i=s[t(425)](e);i&&(n[e]=i,r=!0)}s[t(425)]("adstage")===t(398)&&(r=!0)}catch(e){console.warn(t(437),e)}for(const i of fe[t(396)]){if(n[i])continue;const s=e[t(425)](i);s&&(n[i]=s,r=!0)}return r?(n[t(388)]||(n[t(430)]?n[t(388)]=t(391):n.fbclid?n[t(388)]=t(405):n[t(390)]?n[t(388)]="tiktok.ads":n[t(406)]?n[t(388)]="naver.searchad":n[t(413)]?n.channel=t(399):n[t(409)]?n[t(388)]="microsoft.ads":n[t(385)]?n[t(388)]=t(444):n[t(440)]===t(387)&&n[t(458)]===t(455)?n[t(388)]="kakao.keyword":(n[t(436)]||n[t(422)])&&(n.channel="kakao.keyword")),fe.store(n),n):null}static[pe(402)](t){const e=pe;if(typeof window!==e(421))try{const n={...fe[e(425)](),...t},r=JSON.stringify(n);try{sessionStorage[e(420)](fe[e(404)],r)}catch(t){}try{localStorage.setItem(fe[e(404)],r)}catch(t){}}catch(t){console[e(454)]("Failed to store tracking params:",t)}}static[pe(425)](){const t=pe;if(typeof window===t(421))return null;try{const e=sessionStorage?.[t(407)](fe[t(404)]);if(e)return JSON.parse(e)}catch(t){}try{const e=localStorage?.[t(407)](fe.STORAGE_KEY);if(e)return JSON.parse(e)}catch(t){}return null}static[pe(424)](){const t=pe;if(typeof window!==t(421)){try{sessionStorage?.[t(443)](fe[t(404)])}catch(t){}try{localStorage?.[t(443)](fe[t(404)])}catch(t){}}}static[pe(452)](){const t=pe,e=fe.get();return null!==e&&Object[t(410)](e)[t(400)]>0}static[pe(408)](){const t=pe,e=fe[t(425)]();return!!e&&fe[t(439)].some(t=>e[t])}static[pe(442)](){const t=pe;if(typeof window===t(421))return!1;const e=fe[t(425)]();if(!e)return!1;const n=fe[t(408)](),r=!!e[t(388)];if(!n&&!r)return!1;const i=n?e[t(430)]||e[t(449)]||e[t(390)]||e[t(406)]||e[t(413)]||e[t(409)]||e[t(385)]:(e[t(388)]||"")+":"+(e[t(392)]||"");if(!i)return!1;return i!==sessionStorage[t(407)]("adstage_last_click_id")&&(sessionStorage[t(420)]("adstage_last_click_id",i),!0)}static markClickEventSent(){const t=pe;typeof window!==t(421)&&sessionStorage[t(420)](t(453),t(398))}static[pe(457)](){const t=pe;return typeof window!==t(421)&&sessionStorage[t(407)](t(453))===t(398)}static toAttributionObject(){const t=pe,e=fe[t(425)]();if(!e)return null;const n={};return e[t(430)]&&(n.gclid=e[t(430)]),e[t(449)]&&(n[t(449)]=e[t(449)]),e[t(390)]&&(n[t(390)]=e[t(390)]),e.nclid&&(n[t(406)]=e[t(406)]),e.channel&&(n[t(388)]=e[t(388)]),e[t(459)]&&(n[t(459)]=e[t(459)]),e.campaign_id&&(n.campaignId=e.campaign_id),e[t(403)]&&(n.adGroup=e[t(403)]),e[t(431)]&&(n[t(456)]=e[t(431)]),e.ad_creative&&(n[t(433)]=e.ad_creative),e[t(434)]&&(n[t(429)]=e.creative_id),e[t(392)]&&(n[t(392)]=e[t(392)]),e[t(436)]&&(n[t(395)]=n[t(395)]||e[t(436)]),e.k_adgroup&&(n.adGroupId=n[t(456)]||e.k_adgroup),e.k_keyword&&(n.keyword=e[t(422)]),e.k_keyword_id&&(n[t(426)]=e[t(417)]),e[t(438)]&&(n[t(429)]=n[t(429)]||e[t(438)]),e.k_rank&&(n[t(432)]=e[t(411)]),e.utm_source&&(n.utm_source=e.utm_source),e.utm_medium&&(n[t(458)]=e[t(458)]),e[t(419)]&&(n[t(419)]=e.utm_campaign),e[t(451)]&&(n[t(451)]=e.utm_content),e[t(389)]&&(n[t(389)]=e[t(389)]),Object[t(410)](n)[t(400)]>0?n:null}}fe.STORAGE_KEY=pe(415),fe[pe(439)]=[pe(430),pe(449),"ttclid",pe(406),pe(413),pe(409),"twclid"],fe[pe(414)]=[pe(388),pe(459),pe(427),pe(403),pe(431),pe(416),"creative_id","term","k_campaign","k_adgroup",pe(422),pe(417),pe(438),"k_rank"],fe.UTM_KEYS=[pe(440),pe(458),"utm_campaign","utm_content",pe(389)],fe[pe(396)]=[...fe[pe(439)],...fe[pe(414)],...fe[pe(393)]];const ge=Ie;function me(){const t=["events","sendEventToServer","json","4751180pYFrwu","isReady","getAttributionId","📊 Events module initialized","API key not configured for attribution registration.","length","getItem","Event tracking failed: ","📱 Device info set:","❌ Failed to track event:","getDeviceInfo","setDeviceProperty","setItem","getCurrentUserProperties","9412731VxgdeU","🔑 Request headers:","adstage_attribution_id","454548QczMDy","toAttributionObject","keys","text","error","setUserProperties","73918THRWMe","📦 Attribution request body:","getUserDeviceInfo","track","_config","log","create","📦 Request body:","3mZOAzR","Events module not initialized. Call AdStage.init() first.","❌ Failed to register attribution:","POST","📡 Request URL:","application/json","getUserInfo","stringify","clearDeviceInfo","init","_isReady","📊 Attribution included:","getConfig","3283032eJLJkt","❌ API Error Response:","setDeviceInfo","apiKey","Event data:","API key not configured for event tracking.","4ITpWBq","Attribution registration failed: ","warn","📡 Attribution request URL:","trackWithAttributionId","21DkOFBc","✅ Event tracked:","🔑 Attribution request headers:","sendAttributionToServer","registerAttribution","get","getUserProperties","statusText","attributionId","undefined","status","16091480ileBzZ","✅ Event tracked with attribution ID:","👤 User properties set:","debug","587280aozxVT"];return(me=function(){return t})()}function Ie(t,e){const n=me();return(Ie=function(t,e){return n[t-=306]})(t,e)}!function(){const t=Ie,e=me();for(;;)try{if(548033===-parseInt(t(332))/1*(parseInt(t(359))/2)+parseInt(t(340))/3*(-parseInt(t(326))/4)+parseInt(t(309))/5+-parseInt(t(379))/6*(parseInt(t(364))/7)+-parseInt(t(353))/8+-parseInt(t(323))/9+parseInt(t(375))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{constructor(){this[Ie(350)]=!1,this._config=null}[ge(349)](t){const e=ge;this[e(336)]=t,this[e(350)]=!0,t[e(378)]&&console[e(337)](e(312))}[ge(310)](){return this._isReady}[ge(352)](){return this[ge(336)]}[ge(331)](t){const e=ge;de.setUserProperties(t),this[e(336)]?.[e(378)]&&console.log(e(377),t)}[ge(370)](){return de[ge(322)]()}[ge(355)](t){const e=ge;oe[e(355)](t),this[e(336)]?.debug&&console[e(337)](e(317),t)}[ge(320)](t,e){const n=ge;oe.setDeviceProperty(t,e),this[n(336)]?.[n(378)]&&console[n(337)]("📱 Device property set:",t,e)}[ge(348)](){const t=ge;oe[t(348)](),this[t(336)]?.[t(378)]&&console[t(337)]("📱 User provided device info cleared")}getUserDeviceInfo(){return oe[ge(334)]()}[ge(319)](){return oe[ge(319)]()}[ge(346)](){return de.getUserInfo()}getCurrentUserProperties(){return de[ge(322)]()}async[ge(335)](t,e){const n=ge;if(this[n(350)])if(this[n(336)]?.[n(356)])try{const r=this[n(311)]();if(r){const i={eventName:t,sdkVersion:S(),device:oe[n(319)](),user:de[n(346)](),attributionId:r,params:e||{}};return await this.sendEventToServer(i),void(this[n(336)][n(378)]&&console[n(337)](n(376),t,r))}const i=fe[n(327)](),s={eventName:t,sdkVersion:S(),device:oe.getDeviceInfo(),user:de[n(346)](),...i&&{attribution:i},params:e||{}};await this.sendEventToServer(s),this._config[n(378)]&&(console[n(337)](n(365),t,e),i&&console[n(337)](n(351),i))}catch(r){console[n(330)](n(318),r),this._config.debug&&console.error(n(357),{eventName:t,properties:e})}else console[n(361)](n(358));else console[n(361)]("Events module not initialized. Call AdStage.init() first.")}async[ge(368)](t){const e=ge;if(!this[e(350)])return console.warn(e(341)),null;if(!this[e(336)]?.[e(356)])return console[e(361)](e(313)),null;try{const n=fe[e(369)]();if(!n||0===Object[e(328)](n)[e(314)])return this[e(336)][e(378)]&&console.log("⏭️ No tracking parameters found, skipping attribution registration"),null;const r=await this[e(367)]({deviceId:t,referrerParams:n});if(this[e(336)][e(378)]&&console[e(337)]("✅ Attribution registered:",r),r[e(372)]){try{localStorage[e(321)]("adstage_attribution_id",r.attributionId)}catch(t){}try{sessionStorage[e(321)](e(325),r.attributionId)}catch(t){}}return r}catch(t){return console[e(330)](e(342),t),null}}[ge(311)](){const t=ge;if(typeof window===t(373))return null;try{const e=sessionStorage[t(315)](t(325));if(e)return e}catch(t){}try{return localStorage[t(315)]("adstage_attribution_id")}catch(t){}return null}async[ge(363)](t,e){return this[ge(335)](t,e)}async[ge(307)](t){const e=ge,n={...U[e(338)](this[e(336)][e(356)]),"Content-Type":e(345)};this[e(336)]?.debug&&(console[e(337)](e(324),n),console[e(337)](e(344),J[e(306)][e(335)]()),console.log(e(339),t));const r=await fetch(J[e(306)][e(335)](),{method:e(343),headers:n,body:JSON[e(347)](t)});if(!r.ok){const t=await r[e(329)]();throw console[e(330)](e(354),t),new Error(e(316)+r[e(374)]+" "+r[e(371)])}}async[ge(367)](t){const e=ge,n={...U.create(this[e(336)][e(356)]),"Content-Type":e(345)};this[e(336)]?.debug&&(console[e(337)](e(366),n),console.log(e(362),J[e(306)][e(368)]()),console[e(337)](e(333),t));const r=await fetch(J[e(306)][e(368)](),{method:e(343),headers:n,body:JSON[e(347)](t)});if(!r.ok){const t=await r[e(329)]();throw console[e(330)](e(354),t),new Error(e(360)+r[e(374)]+" "+r[e(371)])}return r[e(308)]()}}const ye=be;function be(t,e){const n=we();return(be=function(t,e){return n[t-=416]})(t,e)}function we(){const t=["1341Mjrhni","catch","debug","getItem","now","_config","adstage_attribution_id","language","_isInitialized","toString","captureFromUrl","userAgent","size","apiKey","campaign","...","then","function","✅ Attribution registered:","channel","AdStage.config accessed before initialization","🌐 API endpoint configured:","click","🔍 Should send click event:","81660ooHZgU","init","2.0.0","hasClickId","getInstance","from","943999gSeBRy","❌ Error in click event auto-tracking:","31530bgqIhd","hash","attribution_id","length","registerAttribution","location","reset",")의 viewable 추적 초기화됨","⏭️ Skipping click event (duplicate or no click ID)","width","🚀 AdStage SDK initialized (sync mode)","1892632qfrxpn","modules","12XZcnJT","clearAdViewable","expiresAt","get","🎯 Sending click event after attribution registration","setItem","track","height","❌ Failed to auto-track click event:","warn","search","events","54DfNZDx","❌ Failed to register attribution:","toISOString","web-","charCodeAt","hardwareConcurrency","1027378kEFpdg","substring","replace","shouldSendClickEvent","getTimezoneOffset","random","🔗 Using attributionId from URL (attribution_id):","📊 AdStage Debug: 현재 viewable 추적 상태","API key is required for AdStage initialization","✅ Auto-tracked click event with tracking params:","web","generateDeviceId","undefined","baseUrl","viewableTracker","toAttributionObject","ads","markClickEventSent","3801260PENcne","instance","getConfig","join","error","tracking_params","470804oVtHAR","config","clear","development","log","abs","server-","adstage_device_id"];return(we=function(){return t})()}!function(){const t=be,e=we();for(;;)try{if(681826===parseInt(t(451))/1+-parseInt(t(475))/2+parseInt(t(445))/3*(-parseInt(t(507))/4)+parseInt(t(469))/5+-parseInt(t(433))/6*(parseInt(t(418))/7)+parseInt(t(431))/8+-parseInt(t(483))/9*(parseInt(t(420))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ke{constructor(){const t=be;this[t(491)]=!1,this[t(488)]=null,this.config=new ne,this[t(467)]=new Qt,this[t(444)]=new ve}static[ye(508)](t){const e=ye;!ke[e(470)]&&(ke.instance=new ke);const n=ke[e(470)];if(!t[e(496)])throw new Error(e(459));n[e(488)]={timeout:3e4,debug:!1,modules:[e(467),"events",e(476)],...t},n._config[e(464)]&&(J.setBaseUrl(n[e(488)].baseUrl),t[e(485)]&&console[e(479)](e(504),n[e(488)][e(464)]));const r=n._config[e(432)]||[e(467),e(444),"config"];for(const t of r){const r=n[t];r&&typeof r[e(508)]===e(500)&&r[e(508)](n[e(488)])}if(n._isInitialized=!0,"undefined"!=typeof window){const r=fe[e(493)]();r&&t[e(485)]&&console[e(479)]("📊 Tracking parameters captured:",r);const i=(()=>{const t=e;try{const e=new URLSearchParams(window[t(425)][t(443)]),n=new URLSearchParams((window[t(425)][t(421)]||"")[t(453)](/^#/,""));return e.get(t(422))||n.get(t(422))}catch{return null}})();if(i)try{localStorage[e(438)](e(489),i),t[e(485)]&&console[e(479)](e(457),i)}catch(t){}const s=fe[e(454)]();t.debug&&(console[e(479)](e(506),s),!s&&console[e(479)](e(428)));const o=fe[e(510)](),a=!(!r||!r[e(502)]);if(!i&&r&&(o||a)){const r=(async()=>{const r=e;try{const e=n[r(462)](),i=await n[r(444)][r(424)](e);return i&&t[r(485)]&&console[r(479)](r(501),{attributionId:i.attributionId,channel:i[r(502)],campaign:i[r(497)],expiresAt:i[r(435)]}),i}catch(t){return console.error(r(446),t),null}})();s&&r[e(499)](r=>{const i=e;try{const e=fe[i(436)](),s=fe[i(466)]();t[i(485)]&&console[i(479)](i(437),{attributionId:r?.attributionId,hasAttribution:!!r}),n.events[i(439)](i(505),{_autoGenerated:!0,_source:"tracking_params",_timestamp:(new Date)[i(447)](),_platform:i(461)})[i(499)](()=>{const n=i;fe.markClickEventSent(),t[n(485)]&&console[n(479)](n(460),{attribution:s,trackingParams:e})})[i(484)](t=>{const e=i;console[e(473)](e(441),t)})}catch(t){console[i(473)]("❌ Error in click event auto-tracking:",t)}})}else s&&setTimeout(()=>{const r=e;try{const e=fe.get(),i=fe[r(466)]();n[r(444)].track(r(505),{_autoGenerated:!0,_source:r(474),_timestamp:(new Date).toISOString(),_platform:"web"}).then(()=>{const n=r;fe[n(468)](),t[n(485)]&&console[n(479)](n(460),{attribution:i,trackingParams:e})}).catch(t=>{const e=r;console[e(473)](e(441),t)})}catch(t){console.error(r(419),t)}},100)}t[e(485)]&&console[e(479)](e(430),{version:e(509),modules:r,apiKey:t[e(496)][e(452)](0,8)+e(498),mode:e(478)})}static isReady(){const t=ye;return ke[t(470)]?.[t(491)]||!1}static[ye(471)](){const t=ye;return ke[t(470)]?._config||null}static getInstance(){const t=ye;if(!ke[t(470)])throw new Error("AdStage not initialized. Call AdStage.init() first.");return ke[t(470)]}static get ads(){const t=ye;try{return ke[t(416)]()[t(467)]}catch(e){throw console[t(442)]("AdStage.ads accessed before initialization"),e}}static get[ye(444)](){const t=ye;try{return ke[t(416)]()[t(444)]}catch(e){throw console[t(442)]("AdStage.events accessed before initialization"),e}}static get[ye(476)](){const t=ye;try{return ke[t(416)]()[t(476)]}catch(e){throw console[t(442)](t(503)),e}}static[ye(426)](){const t=ye;ke[t(470)]&&(ke[t(470)]._isInitialized=!1,ke[t(470)][t(488)]=null)}[ye(462)](){const t=ye;if(typeof window===t(463))return t(481)+Math[t(456)]()[t(492)](36)[t(452)](2,15);const e=localStorage[t(486)]("adstage_device_id");if(e)return e;const n=[navigator[t(494)],navigator[t(490)],screen[t(429)]+"x"+screen[t(440)],(new Date)[t(455)](),navigator[t(450)]||0][t(472)]("|");let r=0;for(let e=0;e<n[t(423)];e++){r=(r<<5)-r+n[t(449)](e),r&=r}const i=t(448)+Math[t(480)](r)[t(492)](36)+"-"+Date[t(487)]()[t(492)](36);return localStorage.setItem(t(482),i),i}}function Ee(t,e){var n=Ae();return(Ee=function(t,e){return n[t-=309]})(t,e)}function Ae(){var t=["setUserProperties","events","698994PrfFZb","257895fpSrWE","1370425txqrIg","warn","208TPvAPH","isReady","getUserProperties","2463798KTZEJJ","40130yKRiHV","AdStage not initialized. Call AdStage.init() first.","878941GAnbSl","475080vvfZCD","resolve","936RPFWPa"];return(Ae=function(){return t})()}function xe(t,e){var n=Ee;return ke[n(311)]()?ke[n(321)].track(t,e):(console[n(309)]("AdStage not initialized. Call AdStage.init() first."),Promise[n(318)]())}function Se(t){var e=Ee;ke[e(311)]()?ke[e(321)][e(320)](t):console.warn("AdStage not initialized. Call AdStage.init() first.")}function Te(){var t=Ee;if(ke[t(311)]())return ke[t(321)][t(312)]();console[t(309)](t(315))}ke[ye(485)]={clearAllViewable:()=>{ut[ye(477)](),console.log("✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨")},clearAdViewable:(t,e)=>{const n=ye;ut[n(434)](t,e),console[n(479)]("✅ AdStage Debug: 광고 "+t+"("+e+n(427))},getViewableStatus:()=>{const t=ye;console.log(t(458),{trackedCount:ut[t(465)][t(495)],trackedItems:Array[t(417)](ut[t(465)])})}},function(){for(var t=Ee,e=Ae();;)try{if(984958===parseInt(t(324))/1+-parseInt(t(313))/2+parseInt(t(323))/3+parseInt(t(317))/4+-parseInt(t(314))/5*(parseInt(t(319))/6)+-parseInt(t(316))/7+-parseInt(t(310))/8*(-parseInt(t(322))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ce=e(null);function De({children:e,config:i}){const[s,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),s&&ke.reset(),ke.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};r(()=>{i&&!s&&u(i)},[i,s]);const p={isInitialized:s,config:a,initialize:u,reset:()=>{try{ke.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Ce.Provider,{value:p,children:e})}function _e(){const t=i(Ce);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Re(){const{isInitialized:t}=_e();return t?ke:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Le(t,e){var n=ze();return(Le=function(t,e){return n[t-=140]})(t,e)}function ze(){var t=["4817145LXVUKZ","3981UQzdnt","3103216GrAKgG","38108ojiXPd","24729975roUEBg","416IIJGTn","7044834rdnWQb","1654959mRXszS","358dmdvGE"];return(ze=function(){return t})()}!function(){for(var t=Le,e=ze();;)try{if(609631===parseInt(t(146))/1*(parseInt(t(144))/2)+-parseInt(t(143))/3+parseInt(t(147))/4+parseInt(t(145))/5+parseInt(t(142))/6+parseInt(t(148))/7*(parseInt(t(141))/8)+-parseInt(t(140))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ue=Be;!function(){const t=Be,e=Oe();for(;;)try{if(527679===-parseInt(t(248))/1*(-parseInt(t(253))/2)+-parseInt(t(258))/3+-parseInt(t(252))/4*(parseInt(t(260))/5)+parseInt(t(251))/6+-parseInt(t(259))/7*(-parseInt(t(255))/8)+-parseInt(t(247))/9+parseInt(t(257))/10*(parseInt(t(256))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Pe=Ue(254),Me=[Ue(246),"events",Ue(249)];function Be(t,e){const n=Oe();return(Be=function(t,e){return n[t-=246]})(t,e)}function Oe(){const t=["321781lGBEIH","config","AdStage","4446150urCgUz","4OHrAZH","2Lcwiuj","2.0.0","8tGkgcZ","55euuEVk","276730pYXMkz","790194jikkQZ","3352027yYzHQE","964010KeMcXa","ads","6265377qmFsBg"];return(Oe=function(){return t})()}"undefined"!=typeof window&&(window[Ue(250)]=ke);export{ke as AdStage,De as AdStageProvider,Pe as SDK_VERSION,Me as SUPPORTED_MODULES,fe as TrackingParamsModule,Te as getUserProperties,Se as setUserProperties,xe as track,_e as useAdStageContext,Re as useAdStageInstance};
|