@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.
@@ -1,4 +1,4 @@
1
- var t,e,n,r,o,i,s,a,c,l,d,u;function p(t,e){var n=h();return(p=function(t,e){return n[t-=344]})(t,e)}function h(){var t=["543963aZsTbK","8UhDVJH","CLICK","3092850NzBoXa","POPUP","TEXT","DESKTOP","NATIVE","1632630lLKNXV","4649472RhfcdW","INTERSTITIAL","6175113ycCowV","TABLET","WEB","BANNER","MOBILE","VIDEO","1019187BDcUDX","17832384amzxZz","4ZlQlkN","VIEWABLE"];return(h=function(){return t})()}!function(){for(var t=p,e=h();;)try{if(665803===-parseInt(t(347))/1+parseInt(t(349))/2*(-parseInt(t(351))/3)+-parseInt(t(360))/4+parseInt(t(354))/5+-parseInt(t(359))/6+-parseInt(t(362))/7*(-parseInt(t(352))/8)+parseInt(t(348))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=p)(344)]=n(344),e[n(355)]=n(355),e.INTERSTITIAL=n(361),e.NATIVE=n(358),e[n(346)]=n(346),e[n(356)]=n(356),(o=r||(r={}))[(i=p)(364)]=i(364),o[i(345)]=i(345),(a=s||(s={}))[(c=p)(350)]=c(350),a[c(353)]=c(353),(d=l||(l={}))[(u=p)(357)]=u(357),d[u(345)]=u(345),d[u(363)]=u(363);const f=g;function g(t,e){const n=m();return(g=function(t,e){return n[t-=447]})(t,e)}function m(){const t=["DOMContentLoaded","waitForDOM","safeWindowOpen","getScrollInfo","innerHeight","safeRemoveClass",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"safeQuerySelectorAll","safeRemoveChild",'❌ 컨테이너를 찾을 수 없습니다: "',"safeQuerySelector","loading","canUseDOM","from","error","getViewportInfo","getElementById","getDocumentProperty","ms 경과)","✅ 컨테이너 즉시 발견: ","setProperty","getWindowProperty","4379712jpQxQq","undefined","referrer","removeEventListener","isBrowser","querySelector","open","126nhfTqU","devicePixelRatio","번 시도)","getPageInfo","innerWidth","2262501IOjMQW","classList","safeAddClass","innerHTML","pageXOffset","safeAppendChild","waitForElement","entries","76284WnxIUj","safeSetInnerHTML","1456076WSRTdb","readyState","✅ 컨테이너 발견: ","287679GDQAHJ","safeSetTextContent","isDOMReady",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"log","style","번째 시도, ","safeApplyStyles","pageYOffset","min","safeAddEventListener","10uIjbOT","waitForElements","⏳ 컨테이너 대기 중: ","isSSR","147063pbmnim","getComputedStyle","DOM을 사용할 수 없는 환경입니다.","pow","add","addEventListener","textContent","ceil","querySelectorAll","safeGetElementById","1264164opzcuc"];return(m=function(){return t})()}!function(){const t=g,e=m();for(;;)try{if(542225===-parseInt(t(481))/1+parseInt(t(476))/2+parseInt(t(506))/3+-parseInt(t(478))/4*(-parseInt(t(492))/5)+-parseInt(t(463))/6*(-parseInt(t(496))/7)+-parseInt(t(456))/8+-parseInt(t(468))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class y{static[f(460)](){return typeof window!==f(457)&&"undefined"!=typeof document}static[f(495)](){return!this[f(460)]()}static[f(519)](){const t=f;return this[t(460)]()&&void 0!==document[t(479)]}static[f(505)](t){const e=f;return this[e(519)]()?document[e(450)](t):null}static[f(517)](t){const e=f;return this[e(519)]()?document[e(461)](t):null}static[f(514)](t){const e=f;return this[e(519)]()?Array[e(447)](document[e(504)](t)):[]}static safeCreateElement(t){return this[f(519)]()?document.createElement(t):null}static[f(491)](t,e,n,r){const o=f;this[o(519)]()&&t&&t[o(501)](e,n,r)}static safeRemoveEventListener(t,e,n,r){const o=f;this[o(519)]()&&t&&t[o(459)](e,n,r)}static[f(455)](t,e){return this[f(460)]()?window[t]??e:e}static[f(451)](t,e){return this[f(519)]()?document[t]??e:e}static[f(509)](t,e,n){const r=f;return this[r(460)]()?window[r(462)](t,e,n):null}static safeGetComputedStyle(t){const e=f;return this.isBrowser()&&t?window[e(497)](t):null}static[f(483)](){const t=f;return!!this[t(519)]()&&document[t(479)]!==t(518)}static[f(508)](){return new Promise(t=>{const e=g;this[e(519)]()?this.isDOMReady()?t():this[e(491)](document,e(507),()=>t()):t()})}static[f(488)](t,e){const n=f;this[n(519)]()&&t&&Object[n(475)](e).forEach(([e,r])=>{const o=n;t[o(486)][o(454)](e,r)})}static[f(470)](t,e){const n=f;this[n(519)]()&&t&&t.classList[n(500)](e)}static[f(512)](t,e){const n=f;this.canUseDOM()&&t&&t[n(469)].remove(e)}static[f(482)](t,e){const n=f;this[n(519)]()&&t&&(t[n(502)]=e)}static[f(477)](t,e){const n=f;this[n(519)]()&&t&&(t[n(471)]=e)}static[f(473)](t,e){this[f(519)]()&&t&&e&&t.appendChild(e)}static[f(515)](t,e){this.canUseDOM()&&t&&e&&t.removeChild(e)}static[f(466)](){const t=f;return{url:this[t(455)]("location",{href:""}).href,title:this.getDocumentProperty("title",""),referrer:this[t(451)](t(458),"")}}static[f(449)](){const t=f;return{width:this[t(455)](t(467),0),height:this[t(455)](t(511),0),pixelRatio:this[t(455)](t(464),1)}}static[f(510)](){const t=f;return{scrollTop:this[t(519)]()?window[t(489)]||document.documentElement.scrollTop:0,scrollLeft:this[t(455)](t(472),0)}}static async[f(474)](t,e={}){const n=f,{timeout:r=3e3,retryInterval:o=100,debug:i=!1}=e;if(!this[n(519)]())throw new Error(n(498));const s=document[n(450)](t);return s?(i&&console[n(485)](n(453)+t),s):(i&&console[n(485)]("⏳ 컨테이너 대기 시작: "+t+" (최대 "+r+"ms)"),new Promise((e,s)=>{const a=n;let c=0;const l=Math[a(503)](r/o),d=()=>{const n=a;c++;const u=document[n(450)](t);if(u)return i&&console.log(n(480)+t+" ("+c+n(487)+c*o+n(452)),void e(u);if(c>=l){const e=n(516)+t+n(484)+t+n(513)+r+"ms ("+c+n(465);return i&&console[n(448)](e),void s(new Error(e))}i&&c%10==0&&console[n(485)](n(494)+t+" ("+c+"/"+l+")");const p=Math[n(490)](o*Math[n(499)](1.2,c),500);setTimeout(d,p)};setTimeout(d,o)}))}static async[f(493)](t,e={}){const n=f,r=t.map(t=>this[n(474)](t,e));return Promise.all(r)}}const v=I;function I(t,e){const n=b();return(I=function(t,e){return n[t-=323]})(t,e)}function b(){const t=["589449FTVGRy","2099880TYyLFR","800140xvfmYv","3.0.14","30DHFfew","400752irHAWf","undefined","userAgent","750ofbDXR","4FAILLb","12870IxcXpp","3846JXNqEA","AdStageSDK/","743048emAuay"];return(b=function(){return t})()}!function(){const t=I,e=b();for(;;)try{if(221266===-parseInt(t(324))/1*(-parseInt(t(326))/2)+parseInt(t(334))/3+parseInt(t(328))/4+parseInt(t(331))/5+parseInt(t(333))/6*(-parseInt(t(329))/7)+parseInt(t(330))/8+-parseInt(t(325))/9*(parseInt(t(323))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const w=v(332);function k(){return w}function E(t,e){const n=S();return(E=function(t,e){return n[t-=161]})(t,e)}const x=E;function S(){const t=["resolvedOptions","platform","getViewportInfo","28037940MNaBkA","device_"," .adstage-slider-wrapper","3551007pjstJx","session_","ios","296eUGIRg",",y:","ssr_device_","toString","generateDeviceId","collectDeviceInfo","adstage_session_id","SSR","width","1124497khiPKF","5517xPBnrh","18680LZDAMp","getScrollInfo","setItem","substr","100RCfLUA","261028kgvFpz","3299298NfjmCz","getSlotPosition","DateTimeFormat","unknown","scrollTop","now","web","top","height","UTC","safeGetElementById",'[data-adstage-slot-id="',"ssr_session_","14eSttlI","random","effectiveType","userAgent","isBrowser","6602YFRDWr","adstage_device_id","test","getPlatform","getItem","safeQuerySelector","colorDepth","95xnMZkh","round","left","isMobile","1.0.0","pixelRatio","generateSessionId"];return(S=function(){return t})()}!function(){const t=E,e=S();for(;;)try{if(724932===-parseInt(t(173))/1*(parseInt(t(208))/2)+-parseInt(t(170))/3+-parseInt(t(189))/4*(-parseInt(t(215))/5)+parseInt(t(190))/6*(-parseInt(t(203))/7)+-parseInt(t(184))/8*(-parseInt(t(183))/9)+parseInt(t(188))/10*(-parseInt(t(182))/11)+parseInt(t(167))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class A{static[x(177)](){const t=x;if(!y[t(207)]())return t(175)+Date.now();const e=localStorage.getItem("adstage_device_id");if(e)return e;const n=t(168)+Math[t(204)]()[t(176)](36)[t(187)](2,9)+"_"+Date[t(195)]();return localStorage[t(186)](t(209),n),n}static[x(163)](){const t=x;if(!y.isBrowser())return t(202)+Date[t(195)]();const e=sessionStorage[t(212)](t(179));if(e)return e;const n=t(171)+Math[t(204)]()[t(176)](36)[t(187)](2,9)+"_"+Date[t(195)]();return sessionStorage[t(186)](t(179),n),n}static isMobile(){const t=x;return!!y.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(210)](navigator[t(206)])}static getPlatform(){const t=x;if(!y[t(207)]())return t(196);const e=navigator[t(206)].toLowerCase();return/iphone|ipad|ipod/[t(210)](e)?t(172):/android/[t(210)](e)?"android":A[t(218)]()?"web":"desktop"}static[x(178)](){const t=x,e=y[t(166)]();return{deviceId:A[t(177)](),sessionId:A[t(163)](),osVersion:y[t(207)]()?navigator.platform:t(180),deviceModel:y[t(207)]()?navigator[t(165)]:t(180),appVersion:t(161),sdkVersion:k(),language:y.isBrowser()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:y.isBrowser()?navigator[t(206)]:"SSR",timezone:y[t(207)]()?Intl[t(192)]()[t(164)]().timeZone:t(199),viewportWidth:e.width,viewportHeight:e.height,screenWidth:y[t(207)]()?screen[t(181)]:0,screenHeight:y[t(207)]()?screen[t(198)]:0,colorDepth:y.isBrowser()?screen[t(214)]:24,pixelRatio:e[t(162)],connectionType:y[t(207)]()&&navigator.connection?.[t(205)]||t(193),platform:A[t(211)]()}}static[x(191)](t){const e=x;let n=y[e(200)](t);if(!n){const r=y[e(213)]("#"+t+e(169));r&&(n=r)}if(!n&&(n=y.safeQuerySelector(e(201)+t+'"]')),!n)return e(193);const r=n.getBoundingClientRect(),o=y[e(185)]();return"x:"+Math[e(216)](r[e(217)])+e(174)+Math[e(216)](r[e(197)]+o[e(194)])}}const C=_;function T(){const t=["API key is required","1233OPCJRi","1076238iaSSiP","56160kLmQEj","5940550XFcPfK","4643404sYuuLM","userAgent","10102uphEAP","User-Agent","create","14nkNQlf","undefined","79oejfiK","186324dngJHh","5EwERAR","application/json","6910020QoZhMj"];return(T=function(){return t})()}function _(t,e){const n=T();return(_=function(t,e){return n[t-=333]})(t,e)}!function(){const t=_,e=T();for(;;)try{if(647508===-parseInt(t(344))/1*(-parseInt(t(339))/2)+parseInt(t(334))/3+parseInt(t(337))/4*(-parseInt(t(346))/5)+-parseInt(t(345))/6*(parseInt(t(342))/7)+-parseInt(t(335))/8*(-parseInt(t(333))/9)+parseInt(t(348))/10+-parseInt(t(336))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class R{static[C(341)](t,e){const n=C;if(!t)throw new Error(n(349));const r={"x-api-key":t,"Content-Type":e?.contentType||n(347)};return typeof navigator!==n(343)&&(r[n(340)]=e?.userAgent||navigator[n(338)]),r}static createForEvents(t,e){const n=C,r=R[n(341)](t);return e?.[n(338)]&&(r["User-Agent"]=e[n(338)]),r}}const D=L;function L(t,e){const n=O();return(L=function(t,e){return n[t-=161]})(t,e)}function O(){const t=["get","✅ Successfully tracked advertisement event: ","45mXZVVO","createForEvents","40370eqVwga","slots"," - ","debug","). Skipping event tracking.","616GCUJlr"," (containerId: ","1940659OqTWXR","containerId","sessionId","statusText","54SZUUZR","status"," for ad ","number","/advertisements/events/","🌐 Full API call details:","53756giENuS","API request failed: ","⚠️ Slot not found for slotId: ","error","VIEWABLE","553132WLkmeQ"," in slot ","⚠️ DOM element not found for slotId: ","height","getPageInfo","66xRXKYq","apiKey","197418qUTWaA","stringify",'[data-adstage-slot-id="',"...","trackAdvertisementEvent","referrer","parseNumericValue","🚀 Sending advertisement event: ","warn","title","🔍 Debug info:","substring","301024sgUrhD","url","48851YpfSLZ","querySelector","POST","🚀 AdvertisementEventTracker: Processing ","deviceId","baseUrl","now","log"];return(O=function(){return t})()}!function(){const t=L,e=O();for(;;)try{if(150345===parseInt(t(184))/1+parseInt(t(163))/2+-parseInt(t(168))/3*(-parseInt(t(213))/4)+-parseInt(t(194))/5*(parseInt(t(170))/6)+parseInt(t(203))/7+parseInt(t(182))/8*(-parseInt(t(207))/9)+parseInt(t(196))/10*(-parseInt(t(201))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class P{constructor(t,e,n,r){const o=L;this.baseUrl=t,this[o(169)]=e,this[o(199)]=n,this.slots=r}async[D(174)](t,e,n){const r=D;try{this[r(199)]&&console[r(191)](r(187)+n+" event for ad "+t+r(164)+e);const o=this[r(197)][r(192)](e);if(!o)return void(this[r(199)]&&console[r(178)](r(215)+e+". Skipping event tracking to prevent incorrect adType."));if(!(document.getElementById(o[r(204)])||document[r(185)](r(172)+e+'"]')))return void(this[r(199)]&&console[r(178)](r(165)+e+r(202)+o.containerId+r(200)));const i=A.collectDeviceInfo(),a={adType:o.adType,platform:i.platform,deviceId:i[r(188)],deviceInfo:i,pageUrl:y[r(167)]()[r(183)],pageTitle:y[r(167)]()[r(179)],referrer:y[r(167)]()[r(175)],slotId:e,slotPosition:A.getSlotPosition(o[r(204)]),slotWidth:P[r(176)](o.width),slotHeight:P[r(176)](o[r(166)]),sessionId:i[r(205)],pageLoadTime:performance[r(190)](),metadata:{eventType:n,sdkVersion:k(),timestamp:Date[r(190)]()},...n===s[r(162)]&&{isViewable:!0,iabCompliant:!0}},c=this[r(189)]+r(211)+t+"/"+n,l=R[r(195)](this[r(169)],a);this.debug&&(console.log(r(177)+n+r(209)+t,{url:c,headers:l,eventData:a}),console[r(191)](r(212),{method:r(186),url:c,hasApiKey:!!this[r(169)],bodySize:JSON.stringify(a).length}));const d=await fetch(c,{method:r(186),headers:l,body:JSON[r(171)](a)});if(this[r(199)]&&console[r(191)]("📡 API Response Status: "+d.status+" "+d[r(206)],{url:c,ok:d.ok}),!d.ok){const t=await d.text();throw new Error(r(214)+d[r(208)]+" "+d[r(206)]+r(198)+t)}this[r(199)]&&console[r(191)](r(193)+n+" for ad "+t)}catch(o){console[r(161)]("❌ Failed to track advertisement event:",o),console[r(161)](r(180),{baseUrl:this.baseUrl,apiKey:this[r(169)]?this.apiKey[r(181)](0,8)+r(173):"NOT_SET",url:this[r(189)]+r(211)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[D(176)](t){if(typeof t===D(210))return t;if("string"==typeof t){const e=parseFloat(t.replace(/px$/,""));return isNaN(e)?0:e}return 0}}var U=z;function z(t,e){var n=B();return(z=function(t,e){return n[t-=394]})(t,e)}function B(){var t=["2209671QtiTAD","5980130tbHbrW","handleIntersection","element","119IwUZYQ","4sLFppR","873760AMOMYY","IntersectionObserver","177384KyGqlF","visibilityState","observe","IntersectionObserver not supported, viewability tracking disabled","observer","isViewableTriggered","860OObNCy","1391808TsyrxD","visible","forEach","destroy","intersectionRatio","1353qPIUAz","warn","disconnect","onViewableCallback","isDocumentVisible","9546EEfPQV","0px"];return(B=function(){return t})()}!function(){for(var t=z,e=B();;)try{if(222442===parseInt(t(403))/1*(-parseInt(t(400))/2)+parseInt(t(415))/3*(-parseInt(t(409))/4)+parseInt(t(401))/5+parseInt(t(420))/6*(-parseInt(t(399))/7)+parseInt(t(410))/8+-parseInt(t(395))/9+parseInt(t(396))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t,e){var n=z;this[n(407)]=null,this[n(408)]=!1,this[n(398)]=t,this.onViewableCallback=e,this.initIntersectionObserver()}initIntersectionObserver(){var t=z;t(402)in window?(this[t(407)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(394)}),this.observer[t(405)](this[t(398)])):console[t(416)](t(406))}[U(397)](t){var e=U;t[e(412)](t=>{var n=e;t[n(414)]>=.5&&this[n(419)]()&&!this[n(408)]&&(this.isViewableTriggered=!0,this[n(418)]&&this[n(418)]())})}[U(419)](){var t=U;return!document.hidden&&document[t(404)]===t(411)}[U(413)](){var t=U;this[t(407)]&&(this[t(407)][t(417)](),this[t(407)]=null)}}const N=V;function V(t,e){const n=F();return(V=function(t,e){return n[t-=319]})(t,e)}function F(){const t=["1069830yLyVCO","/events/register/attribution","https://api.adstage.app","877930KoIBVA","/advertisements/events","1306863hNriQx","210174Yvvonu","/advertisements","setBaseUrl","events","5544940susGyu","getBaseUrl","advertisements","production","baseUrl","2TzRJkn","/advertisements/list","registerAttribution","1235016NdxDnL","7teldad","110Almzbx","5255784gDrEbO","custom","/events/track","track","https://beta-api.adstage.app","list"];return(F=function(){return t})()}!function(){const t=V,e=F();for(;;)try{if(455514===parseInt(t(322))/1+-parseInt(t(334))/2*(parseInt(t(324))/3)+-parseInt(t(337))/4+-parseInt(t(339))/5*(parseInt(t(325))/6)+-parseInt(t(338))/7*(-parseInt(t(340))/8)+-parseInt(t(319))/9+parseInt(t(329))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const j={production:N(321),beta:N(344)},K={advertisements:{list:N(335),detail:N(326),events:N(323)},events:{track:N(342),registerAttribution:N(320)}};class H{constructor(t){const e=N;this[e(331)]={list:()=>""+this.baseUrl+K[e(331)][e(345)],detail:t=>""+this[e(333)]+K[e(331)].detail+"/"+t,events:(t,n)=>""+this.baseUrl+K[e(331)][e(328)]+"/"+t+"/"+n},this.events={track:()=>""+this.baseUrl+K.events[e(343)],registerAttribution:()=>""+this[e(333)]+K.events[e(336)]},this[e(333)]=t||j[e(332)]}[N(327)](t){this[N(333)]=t}[N(330)](){return this[N(333)]}[N(341)](t){return""+this.baseUrl+(t.startsWith("/")?t:"/"+t)}}const W=new H;function q(){var t=["3816954MLTEez","trackSlideViewable","6RQefdw"," (index: 0) in slot: ","1676038iYoste","72GdAjMB","83522RdKybf","47575wVaDFn","1282480YSmuwY","160107zAAODH","🎯 Triggering VIEWABLE event for slide change: ad ","log","VIEWABLE",") in slot: "," (index: ","trackInitialSlideViewable","3255144nrSjag","_id"];return(q=function(){return t})()}var Y=J;function J(t,e){var n=q();return(J=function(t,e){return n[t-=412]})(t,e)}!function(){for(var t=J,e=q();;)try{if(233350===parseInt(t(428))/1+-parseInt(t(425))/2*(parseInt(t(421))/3)+-parseInt(t(427))/4+parseInt(t(426))/5*(-parseInt(t(424))/6)+-parseInt(t(423))/7+parseInt(t(417))/8+parseInt(t(419))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class X{static[Y(420)](t,e,n,r,o=!1){var i=Y;o&&console[i(412)](i(429)+t[i(418)]+i(415)+n+i(414)+e.id),r(t._id,e.id,s.VIEWABLE)}static[Y(416)](t,e,n,r=!1){var o=Y;r&&console.log("🎯 Triggering initial VIEWABLE event: ad "+t[o(418)]+o(422)+e.id),n(t[o(418)],e.id,s[o(413)])}}const G=Z;function Z(t,e){const n=Q();return(Z=function(t,e){return n[t-=143]})(t,e)}function Q(){const t=["stopPropagation","log","addClickEvent","1557105EUCjqX","preventDefault","forEach"," -> ","7186416OirRGL","CLICK","_blank","19UKCkIh","pointer","open","cursor","isClickable","491071KHJglD","20998kfFjqk","1183890YTfNKM","🔗 ","addClickEventsBatch","style","400062eellgP","addEventListener","linkUrl","toLowerCase"," ad clicked: ","_id","129352sbHWvz"];return(Q=function(){return t})()}!function(){const t=Z,e=Q();for(;;)try{if(159222===-parseInt(t(159))/1*(parseInt(t(165))/2)+-parseInt(t(170))/3+parseInt(t(148))/4+-parseInt(t(152))/5+-parseInt(t(166))/6+parseInt(t(164))/7+parseInt(t(156))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[G(151)](t,e,n,r,o=!1,i){const a=G;e[a(144)]&&(t[a(169)][a(162)]="pointer",t.addEventListener("click",t=>{const c=a;if(t[c(153)](),t[c(149)](),r&&r(e[c(147)],n.id,s.CLICK),window[c(161)](e[c(144)],"_blank"),o){const t=i||String(n.adType).toLowerCase();console.log(c(167)+t+c(146)+e._id+c(155)+e[c(144)])}}))}static addClickEventForRenderer(t,e,n,r,o=!1,i){const a=G;e.linkUrl&&(t[a(169)][a(162)]=a(160),t[a(143)]("click",t=>{const c=a;t[c(153)](),t[c(149)]();if(r()(e._id,n.id,s[c(157)]),window[c(161)](e[c(144)],c(158)),o){const t=i||String(n.adType)[c(145)]();console[c(150)](c(167)+t+c(146)+e[c(147)]+c(155)+e[c(144)])}}))}static addClickEventForSlider(t,e,n,r,o=!1,i){this[G(151)](t,e,n,r,o,i)}static[G(163)](t){return Boolean(t[G(144)])}static[G(168)](t,e,n,r,o=!1,i){t[G(154)]((t,s)=>{const a=e[s];a&&this.addClickEvent(t,a,n,r,o,i)})}}const tt=et;function et(t,e){const n=nt();return(et=function(t,e){return n[t-=168]})(t,e)}function nt(){const t=["400375llpxZO","5265488OtPJOK","textContent","getBoundingClientRect","classList","normal","whiteSpace","Text Ad","data-adstage-slot-id","appendChild","borderColor","padding"," Ad","cssText","addEventListener","width","backgroundColor","remove","toLowerCase","changedTouches","autoSlideInterval","200px","3520491akxfWP","createMinimalDotIndicator","flex","addTouchSupport","center","7890YuRZyN","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","white","string","clientX","25668434QHwMMc","adstage-dot","display","opacity","every","setProperty","forEach","videoUrl","src","createSliderContainer","100px","adstage-ad adstage-","#000","none","transition","children","100%","active","touches","querySelectorAll","setAttribute","touchend","1px dashed #ccc","8px","TEXT","body","imageUrl","border","1px solid #666","cover","244466TOOVfq","\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ","#cccccc","20djFCPH","Banner Ad","translateX(-","className","0.9","20LdEJJI","color","mouseleave","_id","fontSize","1ewTsVX","length","#666666","background","adstage-slide-container","#999999","entries","auto","mouseenter",".adstage-dot","touchstart","button","removeChild","height","0.7","469CqbdSs","touchmove","abs","adType","14px","addClickEventForSlider","hidden","relative","adstage-slider-wrapper","includes","inline-block","createElement","div","style","adstage-dots","click","trackSlideViewable","transform 0.4s ease-out","2767356pPVxBz","video","#f9f9f9"];return(nt=function(){return t})()}!function(){const t=et,e=nt();for(;;)try{if(592502===-parseInt(t(188))/1*(parseInt(t(175))/2)+-parseInt(t(246))/3+parseInt(t(178))/4*(-parseInt(t(224))/5)+parseInt(t(251))/6*(-parseInt(t(203))/7)+parseInt(t(225))/8+-parseInt(t(221))/9*(parseInt(t(183))/10)+parseInt(t(256))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class rt{static createSimpleAdElement(e,n){const r=et,o=document[r(214)](r(215));switch(o[r(181)]=r(267)+String(e[r(206)])[r(242)](),o[r(276)]("data-adstage-ad-id",n[r(186)]),o[r(276)](r(232),e.id),o[r(216)][r(258)]="block",o.style[r(239)]=r(272),o[r(216)][r(201)]=r(195),e[r(206)]){case t.BANNER:if(n[r(171)]){const t=document[r(214)]("img");t[r(264)]=n[r(171)],t[r(216)][r(239)]="100%",t.style[r(201)]=r(195),t[r(216)].objectFit=r(174),o[r(233)](t)}else o[r(216)][r(201)]=r(266),o[r(216)].backgroundColor="#f0f0f0",o[r(216)][r(172)]=r(278),o.textContent=r(179);break;case t.VIDEO:if(n[r(263)]){const t=document[r(214)](r(222));t[r(264)]=n[r(263)],t[r(216)].width="100%",t[r(216)].height=r(195),o[r(233)](t)}else o[r(216)].height=r(245),o[r(216)][r(240)]=r(268),o[r(216)][r(172)]=r(173),o[r(226)]="Video Ad",o.style[r(184)]=r(253);break;case t[r(169)]:if(n[r(226)]){const t=document[r(214)](r(215));t[r(226)]=n.textContent||"",t.style[r(235)]=r(168),t[r(216)][r(187)]=r(207),o.appendChild(t)}else o[r(216)][r(201)]="50px",o.style[r(235)]=r(168),o[r(226)]=r(231);break;default:o[r(216)][r(201)]="100px",o[r(216)][r(172)]=r(278),o[r(216)][r(240)]=r(223),o[r(226)]=e[r(206)]+r(236)}return o}static[tt(265)](e,n,r,o,i=!1){const s=tt,a=document[s(214)]("div");a[s(181)]=s(211);const c={position:s(210),overflow:s(209)};if(e[s(239)]&&0!==e.width){let t;t=typeof e[s(239)]===s(254)&&(e[s(239)][s(212)]("px")||e.width.includes("%"))?e.width:e[s(239)]+"px",c[s(239)]=t,c[s(258)]=s(213)}else c[s(258)]="inline-block";if(e.height&&0!==e[s(201)]){const t=typeof e[s(201)]===s(254)?e[s(201)]:e[s(201)]+"px";c[s(201)]=t}Object[s(194)](c)[s(262)](([t,e])=>{a[s(216)].setProperty(t,e)});const l=!e[s(239)]||0===e[s(239)],d=!e[s(201)]||0===e[s(201)];if(l||d){const t=document[s(214)]("div");if(t[s(216)].cssText=s(252),!l&&e[s(239)]){let n;n="string"==typeof e.width&&(e[s(239)][s(212)]("px")||e[s(239)][s(212)]("%"))?e[s(239)]:e[s(239)]+"px",t[s(216)].width=n,t[s(216)][s(230)]=s(229)}document.body[s(233)](t);let r=0,o=0;n[s(262)](n=>{const i=s,a=this.createSimpleAdElement(e,n);t[i(233)](a);const c=a[i(227)]();c[i(239)]>r&&(r=c[i(239)]),c.height>o&&(o=c[i(201)]),t[i(200)](a)}),l&&r>0&&(a[s(216)][s(239)]=r+"px",c[s(239)]=r+"px"),d&&o>0&&(a[s(216)][s(201)]=o+"px",c.height=o+"px"),document[s(170)][s(200)](t)}const u=[...n,n[0]],p=document[s(214)](s(215));p[s(181)]=s(192);const h={display:s(248),transition:s(220),width:100*u[s(189)]+"%"};e[s(201)]&&0!==e[s(201)]&&(h[s(201)]="100%"),Object[s(194)](h).forEach(([t,e])=>{p.style.setProperty(t,e)}),u[s(262)]((t,n)=>{const r=s,a=document.createElement(r(215));a[r(181)]="adstage-slide";const c={width:100/u.length+"%","flex-shrink":"0",display:r(248),"align-items":"center","justify-content":r(250)};e.height&&0!==e[r(201)]&&(c[r(201)]=r(272)),Object[r(194)](c)[r(262)](([t,e])=>{const n=r;a[n(216)][n(261)](t,e)});const l=this.createSimpleAdElement(e,t);$[r(208)](l,t,e,o,i,String(e[r(206)])[r(242)]()),a[r(233)](l),p[r(233)](a)});const f=n[s(260)](e=>e[s(206)]===t[s(169)])?null:this[s(247)](n[s(189)]);let g=0;const m=n[s(189)],y=1e3*(r?.[s(244)]||3),v=(t,r=!1)=>{const a=s;g=t,p[a(216)][a(270)]=a(r?269:220),p[a(216)].transform=a(180)+100/u[a(189)]*g+"%)";const c=g===m?0:g;if(f){f[a(275)](a(197))[a(262)]((t,e)=>{const n=a,r=t;e===c?(r.classList.add(n(273)),r[n(216)][n(191)]=n(190),r.style[n(234)]=n(190),r[n(216)][n(259)]="1"):(r.classList[n(241)](n(273)),r[n(216)].background="transparent",r[n(216)][n(234)]=n(177),r[n(216)][n(259)]=n(202))})}X[a(219)](n[c],e,c,o,i)},I=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[s(275)](s(197)).forEach((t,e)=>{const n=s;t.addEventListener(n(218),()=>v(e))})}let b=setInterval(()=>{v(g+1),I()},y);return a.addEventListener(s(196),()=>{clearInterval(b)}),a[s(238)](s(185),()=>{b=setInterval(()=>{v(g+1),I()},y)}),this[s(249)](p,v,()=>g,m,I),a[s(233)](p),f&&a[s(233)](f),v(0),(!e.width||0===e[s(239)])&&setTimeout(()=>{const t=s,n=p[t(271)][0];if(n){const r=n[t(271)][0];if(r){const n=r.getBoundingClientRect();a[t(216)][t(239)]=n[t(239)]+"px",(!e.height||0===e.height)&&(a[t(216)][t(201)]=n[t(201)]+"px"),a[t(216)].overflow="hidden"}}},10),a}static[tt(247)](t){const e=tt,n=document[e(214)]("div");n[e(181)]=e(217),n.style[e(237)]="\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ";for(let r=0;r<t;r++){const t=document[e(214)](e(199));t.className=e(257),t[e(216)].cssText=e(176),t.addEventListener(e(196),()=>{const n=e;!t[n(228)].contains("active")&&(t[n(216)][n(234)]=n(193),t.style[n(259)]=n(182))}),t[e(238)](e(185),()=>{const n=e;!t[n(228)].contains(n(273))&&(t[n(216)][n(234)]=n(177),t[n(216)][n(259)]=n(202))}),n[e(233)](t)}return n}static addTouchSupport(t,e,n,r,o){const i=tt;let s=0,a=!1;t.addEventListener(i(198),t=>{const e=i;s=t[e(274)][0][e(255)],a=!0}),t.addEventListener(i(204),t=>{a&&t.preventDefault()}),t.addEventListener(i(277),t=>{const c=i;if(!a)return;a=!1;const l=t[c(243)][0][c(255)],d=s-l;if(Math[c(205)](d)>50){const t=n();if(d>0){e(t+1),o&&o()}else{e(t>0?t-1:r-1)}}})}}const ot=st;function it(){const t=["clear","add"," in slot ","18fGYLVS","1657248kcUrWM","has","2682463BifTAB","viewableTracker","delete","9705720ETGssL","isDuplicateViewable","323104BzIJbo","154316Bthfyk","clearAdViewable","462733vnIbZj","1682920VzTlcU","log"];return(it=function(){return t})()}function st(t,e){const n=it();return(st=function(t,e){return n[t-=232]})(t,e)}!function(){const t=st,e=it();for(;;)try{if(286921===parseInt(t(246))/1+-parseInt(t(243))/2+parseInt(t(235))/3*(-parseInt(t(244))/4)+-parseInt(t(247))/5+-parseInt(t(236))/6+-parseInt(t(238))/7+parseInt(t(241))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class at{static[ot(242)](t,e,n=!1){const r=ot,o=t+"_"+e;return at[r(239)][r(237)](o)?(n&&console.log("Duplicate viewable blocked for ad "+t+r(234)+e),!0):(at[r(239)][r(233)](o),n&&console[r(248)]("✅ New viewable recorded for ad "+t+r(234)+e),!1)}static clear(){const t=ot;at[t(239)][t(232)]()}static[ot(245)](t,e){const n=ot,r=t+"_"+e;at[n(239)][n(240)](r)}}at[ot(239)]=new Set;const ct=dt;function lt(){const t=["2px dashed #e74c3c","#e74c3c",'[class*="ad"]'," container collapsed (","log","rgba(0, 0, 0, 0.02)","rgba(231, 76, 60, 0.1)","📏 Using 100% height (container: ","getDefaultHeight","opacity","center","innerHTML","color","generic","parentElement","isDuplicateViewable"," container: ","6px","width","transparent","true","fontFamily","px)","15ApBsnR",'div[style*="min-height"]',"renderFallback","data-adstage-slot","1294uhARzv","❌ Failed to track ","debug","4px"," in slot ","isEmpty","<span>Loading ","): ",'[class*="banner"]',"advertisementEventTracker","setAttribute",'[data-adstage-container="true"]'," event for ad ","height","adType","1px dashed #ccc"," event","alignItems","hasAttribute"," for ","🚫 Duplicate viewable blocked for ad "," slot: ","monospace","none","📏 Using default height ","⚠️ "," ad...</span>","data-adstage-container","fontSize","classList",'div[style*="height"]',"createPlaceholder","getElementById","unknown","style","data-adstage-empty","getComputedStyle","borderRadius","border","calculateAdSize","trackAdvertisementEvent","auto","278OMbMwC","querySelector",") - Mode: ","createEmptyContainer","9843911DDKyFt","#666","string","2420280OYzclk","warn",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"getAttribute","error"," for ad ","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",'[class*="container"]',"toLowerCase","adstage-class","containerId","getContainerHeight","applyPlaceholderStyle","contains","display","cssText","backgroundColor",".adstage-slot","954vWRxwL","advertisement","flex","appendChild","8YEbSEC","44830kjQAhO","adstage-official","🔄 Starting advertisement event tracking: ","454472cynpYq","createElement","✅ New viewable recorded for ad ","createEventTrackingCallback",".adstage-","11px","className","100%","justifyContent","3811437rNhoSZ","number","closest","div","📊 Advertisement event tracked: ","2006712HaJTuI","filter","📦 Placeholder created for ","adstage-slot adstage-empty adstage-","placeholderMode","invisible"];return(lt=function(){return t})()}function dt(t,e){const n=lt();return(dt=function(t,e){return n[t-=226]})(t,e)}!function(){const t=dt,e=lt();for(;;)try{if(305496===parseInt(t(292))/1*(parseInt(t(334))/2)+parseInt(t(288))/3*(-parseInt(t(245))/4)+parseInt(t(341))/5+parseInt(t(259))/6+-parseInt(t(254))/7*(parseInt(t(241))/8)+parseInt(t(237))/9*(-parseInt(t(242))/10)+parseInt(t(338))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{constructor(t,e=!1,n){const r=dt;this[r(306)]=t,this[r(294)]=e,this[r(301)]=n||null}[ct(323)](t,e,n,r){const o=ct,i=document.createElement(o(257));i.id=e,i[o(251)]="adstage-slot adstage-"+String(this[o(306)])[o(227)](),i[o(302)](o(319),o(285)),i[o(302)]("data-adstage-type",String(this[o(306)])),i[o(302)](o(291),e);const{width:s,height:a}=this.calculateAdSize(t,n,r)||{width:o(252),height:this[o(273)]()};i.style[o(283)]=s,i[o(326)][o(305)]=a;const c=r?.[o(263)]||n[o(263)]||"invisible";this[o(231)](i,c),t[o(240)](i),this[o(294)]&&console[o(269)](o(261)+this[o(306)]+o(313)+e+" ("+s+" x "+a+o(336)+c)}[ct(231)](t,e){const n=ct;switch(e){case n(264):t[n(326)].backgroundColor=n(284),t.style[n(330)]=n(315),t[n(326)][n(274)]="0",t[n(276)]="";break;case"transparent":t[n(326)][n(235)]=n(284),t.style[n(330)]=n(315),t[n(326)][n(233)]="block",t[n(276)]="";break;case"subtle":t[n(326)][n(235)]=n(270),t.style[n(330)]="none",t[n(326)].borderRadius=n(295),t[n(326)][n(233)]=n(239),t[n(326)][n(309)]=n(275),t[n(326)].justifyContent=n(275),t[n(276)]=n(343);break;case"minimal":t[n(326)][n(235)]="rgba(248, 249, 250, 0.5)",t[n(326)][n(330)]="1px solid rgba(0, 0, 0, 0.08)",t[n(326)][n(329)]=n(282),t[n(326)].display=n(239),t[n(326)][n(309)]=n(275),t[n(326)][n(253)]=n(275),t[n(276)]='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case n(294):t[n(326)][n(330)]=n(265),t.style[n(233)]="flex",t.style.alignItems=n(275),t.style.justifyContent=n(275),t.style[n(235)]=n(271),t[n(326)][n(277)]=n(266),t[n(326)][n(286)]=n(314),t[n(326)][n(320)]=n(250),t.innerHTML=n(298)+this[n(306)]+n(318);break;default:t[n(326)][n(330)]=n(307),t[n(326)][n(233)]=n(239),t.style[n(309)]="center",t.style[n(253)]="center",t[n(326)].backgroundColor="#f9f9f9",t[n(326)][n(277)]=n(339),t[n(276)]=n(298)+this.adType+" ad...</span>"}}[ct(331)](t,e,n){const r=ct,o=e[r(283)],i=e[r(305)];let s,a;if(s=typeof o===r(255)?o+"px":typeof o===r(340)?o:r(252),typeof i===r(255))a=i+"px";else if("string"==typeof i&&"100%"!==i&&i!==r(333))a=i;else{const e=this[r(230)](t);e>0?(a="100%",(n?.debug||this[r(294)])&&console[r(269)](r(272)+e+r(287))):(a=this.getDefaultHeight(),(n?.[r(294)]||this[r(294)])&&console[r(269)](r(316)+a+r(311)+this.adType))}return{width:s,height:a}}[ct(230)](t){const e=ct,n=window[e(328)](t),r=parseFloat(n[e(305)]);if(!r||0===r){const r=parseFloat(n.minHeight);if(r>0)return r;if(t[e(326)][e(305)]&&t.style[e(305)]!==e(333)){const n=parseFloat(t.style[e(305)]);if(n>0)return n}const o=t[e(344)](e(305));if(o){const t=parseFloat(o);if(t>0)return t}}return r||0}[ct(248)](){return async(t,e,n)=>{const r=dt;if(n===s.VIEWABLE){if(at[r(280)](t,e,this[r(294)]))return void(this[r(294)]&&console[r(269)](r(312)+t+r(296)+e));this.debug&&console[r(269)](r(247)+t+" in slot "+e)}if(this[r(301)])try{this[r(294)]&&console.log(r(244)+n+r(346)+t+" in slot "+e),await this[r(301)][r(332)](t,e,n),this.debug&&console.log(r(258)+n+r(346)+t+r(296)+e)}catch(e){this[r(294)]&&console[r(345)](r(293)+n+r(304)+t+":",e)}else this[r(294)]&&console[r(342)]("⚠️ AdvertisementEventTracker not available for "+n+r(308))}}[ct(290)](t){const e=ct,n=document.getElementById(t.id);if(n){const r=[...[n[e(335)](e(303)),n[e(256)]('[data-adstage-container="true"]'),n].filter(t=>t&&t[e(310)](e(319))),...[n[e(256)](e(236)),n.closest(e(249)+String(this[e(306)])[e(227)]()),n[e(256)](e(267)),n[e(256)](e(300)),n.closest(e(226)),n[e(256)](e(322)),n.closest(e(289)),n[e(279)]][e(260)](Boolean)][0];if(r){let n=e(325);n=r[e(310)](e(319))?e(243):r[e(321)][e(232)]("adstage-slot")?e(228):e(278),r[e(326)][e(234)]+=e(347),r.innerHTML="",r[e(302)](e(327),e(285)),this.debug&&console.warn(e(317)+this.adType+e(268)+n+e(299)+t.id,r)}else this.createEmptyContainer(t)}t[e(238)]=void 0,t[e(297)]=!0}[ct(337)](t){const e=ct,n=document[e(324)](t[e(229)]);if(n){n.innerHTML="";const r=document[e(246)](e(257));r.id=t.id,r[e(251)]=e(262)+String(this[e(306)])[e(227)](),r.setAttribute(e(319),e(285)),r[e(302)]("data-adstage-empty",e(285)),r[e(302)](e(291),t.id),r[e(326)][e(234)]="\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",n[e(240)](r),this[e(294)]&&console[e(342)]("⚠️ Created empty "+this[e(306)]+e(281)+t.id)}}[ct(269)](t,...e){const n=ct;this[n(294)]&&console.log("["+this[n(306)]+"] "+t,...e)}}const pt=ht;function ht(t,e){const n=ft();return(ht=function(t,e){return n[t-=416]})(t,e)}function ft(){const t=["createSliderContainer","warn","getBoundingClientRect","center","loadImageDimensions","className","onload","map","calculateAdSize","debug","reduce","Banner","toFixed","BANNER","set","#f0f0f0","Failed to calculate optimal banner size, using defaults:","values","round","🎠 Banner carousel created for slot: ","alt","parentElement","from","contain","img","objectPosition","250px","height","log","37146jTVsoa","appendChild",", ratio=","16:9","containerId","value","Image URL is not provided","Banner Ad","Container not found: ","div","style","485310CAwacI","calculateOptimalContainerSize","✅ Optimized banner image rendered for ad: ","common","4:3","8px","548156aRcIDu","get","2529576Kwhiyb",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>'," with ","allSettled","📸 Banner image dimensions: ","title","renderOptimizedBannerImage","config","9oDZIdY","display","cover","status","average","objectFit","createEventTrackingCallback","1:1","🔧 Banner container optimized for ","📊 Using standard ratio: ","slideInterval","158370JsxFqF","innerHTML","100%","filter"," (avg: ","optimizedHeight","length","naturalHeight","getDefaultHeight","❌ Failed to load optimized banner image:","aspectRatio","3:2","ratio","optimizeContainerForBannerAds","</div>","🎨 Banner image style applied: objectFit=","onerror","count","src","dominant","width","applyOptimizedImageStyle","abs","7135248EgAZfq","toString","imageUrl","6444256oMMcmV","block","borderRadius","getElementById"," ads: ","📐 Optimal banner container calculated: ","backgroundColor","forEach","addClickEventForRenderer","renderAdElement","naturalWidth","max","56hDoVtV","selectOptimalSizeStrategy","fulfilled","calculateOptimalHeight"];return(ft=function(){return t})()}!function(){const t=ht,e=ft();for(;;)try{if(969742===parseInt(t(484))/1*(-parseInt(t(451))/2)+-parseInt(t(522))/3+parseInt(t(439))/4+-parseInt(t(495))/5+-parseInt(t(503))/6+parseInt(t(501))/7+-parseInt(t(436))/8*(-parseInt(t(511))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt extends ut{constructor(e=!1,n){super(t[ht(468)],e,n)}[pt(421)](){return pt(481)}async[pt(448)](t,e){const n=pt,r=document[n(442)](t[n(488)]);if(!r)return;const o=document.createElement(n(493));o[n(460)]="adstage-ad adstage-banner-ad";const i=t[n(418)],s=r[n(476)]||r;if(i)o[n(494)][n(433)]=n(524),o[n(494)][n(482)]=String(i);else{const e=t.config,r={width:e?.width,height:e?.[n(482)]},{width:i,height:a}=this[n(463)](s,r,{debug:this[n(464)]});o[n(494)][n(433)]=i,o[n(494)][n(482)]=a}e[n(438)]?await this[n(509)](o,e,t):o[n(523)]="<div>"+(e.title||n(491))+n(427),$.addClickEventForRenderer(o,e,t,()=>this[n(517)](),this[n(464)],n(466)),r[n(523)]="",r[n(485)](o)}async renderMultipleAds(t,e){const n=pt,r=document[n(442)](t[n(488)]);if(!r)throw new Error(n(492)+t[n(488)]);await this[n(426)](t,e);const o=this[n(517)](),i={autoSlideInterval:(t[n(510)]?.[n(521)]||5e3)/1e3,...t[n(510)],optimizedHeight:t[n(418)],aspectRatio:t.aspectRatio},s=rt[n(455)](t,e,i,o,this[n(464)]);s&&(r[n(523)]="",r[n(485)](s),this[n(464)]&&console.log(n(474)+t.id+n(505)+e[n(419)]+" ads (optimized: "+(t[n(418)]||"default")+")"))}async[pt(496)](t,e){const n=pt;if(!t[n(419)])return{width:"100%",height:this[n(421)](),aspectRatio:16/9};try{const r=(await Promise[n(506)](t[n(416)](t=>t[n(438)])[n(462)](t=>this[n(459)](t[n(438)]))))[n(416)](t=>t[n(514)]===n(453)).map(t=>t[n(489)]);if(0===r[n(419)])return{width:"100%",height:this[n(421)](),aspectRatio:16/9};const o=this[n(452)](r),i=this[n(454)](r,e,o);return this.debug&&console[n(483)](n(444)+e+"x"+i+" (strategy: "+o+")"),{width:n(524),height:i+"px",aspectRatio:e/i}}catch(t){return console[n(456)](n(471),t),{width:n(524),height:this[n(421)](),aspectRatio:16/9}}}async[pt(426)](t,e){const n=pt;try{const r=document[n(442)](t.containerId),o=document[n(442)](t.id);if(!r||!o)return;const i=r[n(457)]().width||300,s=await this[n(496)](e,i);o.style[n(482)]=s[n(482)],t[n(418)]=s[n(482)],t[n(423)]=s[n(423)],this[n(464)]&&console[n(483)](n(519)+e[n(419)]+n(443)+s[n(482)])}catch(t){console[n(456)]("Banner container optimization failed, using default size:",t)}}[pt(452)](t){const e=pt,n=t[e(462)](t=>t[e(433)]/t[e(482)]),r=new Map;n.forEach(t=>{const n=e,o=(Math[n(473)](10*t)/10)[n(437)]();r.set(o,(r.get(o)||0)+1)});const o=Math[e(450)](...r[e(472)]()),i=t[e(419)];if(o/i>=.7)return e(432);const s=[16/9,4/3,1,1.5],a=n.filter(t=>s.some(n=>Math[e(435)](t-n)<.1))[e(419)];return e(a/i>=.5?498:515)}[pt(454)](t,e,n){const r=pt,o=t[r(462)](t=>t[r(433)]/t[r(482)]);switch(n){case r(432):{const t=new Map;o[r(446)](e=>{const n=r,o=Math[n(473)](10*e)/10,i=o[n(437)](),s=t[n(502)](i);s?s[n(430)]++:t[n(469)](i,{ratio:o,count:1})});const n=Array[r(477)](t[r(472)]())[r(465)]((t,e)=>e.count>t[r(430)]?e:t);return Math[r(473)](e/n[r(425)])}case"common":{const t=[{ratio:16/9,name:r(487)},{ratio:4/3,name:r(499)},{ratio:1,name:r(518)},{ratio:1.5,name:r(424)}],n=o[r(465)]((t,e)=>t+e,0)/o[r(419)],i=t.reduce((t,e)=>Math.abs(e[r(425)]-n)<Math[r(435)](t[r(425)]-n)?e:t);return this[r(464)]&&console[r(483)](r(520)+i.name+r(417)+n[r(467)](2)+")"),Math[r(473)](e/i[r(425)])}case r(515):default:{const t=o[r(465)]((t,e)=>t+e,0)/o[r(419)];return Math.round(e/t)}}}loadImageDimensions(t){return new Promise((e,n)=>{const r=ht,o=new Image;o[r(461)]=()=>{const t=r;e({width:o[t(449)],height:o[t(420)]})},o[r(429)]=()=>{n(new Error("Failed to load image: "+t))},o.src=t})}applyOptimizedImageStyle(t,e,n){const r=pt,o=e/n;Math.abs(o-1)<.1?(t[r(494)][r(516)]=r(513),t.style[r(480)]=r(458)):o>1.3?(t[r(494)][r(516)]=r(478),t[r(494)][r(480)]="center",t.style[r(445)]=r(470)):o<.7?(t[r(494)][r(516)]="cover",t[r(494)][r(480)]=r(458)):(t[r(494)][r(516)]=r(513),t.style[r(480)]=r(458)),this[r(464)]&&console.log(r(428)+t[r(494)].objectFit+r(486)+o[r(467)](2))}async renderOptimizedBannerImage(t,e,n){const r=pt,o=document.createElement(r(479));o[r(494)].width=r(524),o[r(494)][r(482)]=r(524),o.style[r(512)]=r(440),o[r(494)][r(441)]=r(500),o[r(475)]=e[r(508)]||"Banner Advertisement",t[r(523)]=r(504);try{if(!e[r(438)])throw new Error(r(490));const i=await this.loadImageDimensions(e[r(438)]),s=t[r(457)](),a=s[r(433)],c=s[r(482)];this[r(464)]&&(console[r(483)](r(507)+i[r(433)]+"x"+i[r(482)]),console[r(483)]("📦 Banner container dimensions: "+a+"x"+c));const l=i[r(433)]/i.height,d=a/c;return this[r(434)](o,l,d),o[r(431)]=e[r(438)],t[r(523)]="",t[r(485)](o),$[r(447)](o,e,n,()=>this[r(517)](),this[r(464)],r(466)),this[r(464)]&&console.log(r(497)+e._id),o}catch(i){return console.error(r(422),i),e.imageUrl&&(o[r(431)]=e.imageUrl,o[r(494)][r(516)]=r(513),o[r(494)][r(480)]="center",t[r(523)]="",t[r(485)](o),$[r(447)](o,e,n,()=>this.createEventTrackingCallback(),this.debug,r(466))),o}}}const mt=yt;function yt(t,e){const n=It();return(yt=function(t,e){return n[t-=234]})(t,e)}!function(){const t=yt,e=It();for(;;)try{if(708137===-parseInt(t(239))/1*(-parseInt(t(242))/2)+parseInt(t(234))/3+parseInt(t(240))/4*(parseInt(t(237))/5)+-parseInt(t(236))/6+parseInt(t(245))/7+-parseInt(t(243))/8+parseInt(t(235))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class vt{static createTextAdStyles(t=!1){return"\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n "}static[mt(244)](t,e){const n=mt,r=e.textContent||e[n(238)]||"";t[n(241)]=r}}function It(){const t=["setTextAdContent","445529zoXLBM","1799616EeqqJU","1172826sdjgje","7970406oeLPuo","6859835RvoLLV","title","3931JAIVkf","4iaehUD","textContent","106ywKqeq","2700840NivhGl"];return(It=function(){return t})()}const bt=kt;function wt(){const t=["height: auto; min-height: fit-content;","style","fit-content","adstage-fade-slide-container","clientX","className","mouseenter","changedTouches","createTextAdStyles","adstage-fade-slide","height",";\n width: 100%;\n ","length","push","\n ","20px","211839udiJcF","528ZwBOrU","11JaOrUI","opacity","touches","addEventListener","width",";\n ","createSimpleAdElement","forEach","45918156liWfOD","21zJMGor","string","body","preventDefault","touchmove","includes","relative","appendChild","setAttribute","_id","autoSlideInterval","6461092OqRwEw","5318AARfwB","block","div","abs","\n position: relative;\n width: 100%;\n ","position","zIndex","toLowerCase","createElement","trackSlideViewable","top","normal","54LDWCja","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","cssText","height: 100%;","touchend","minHeight","\n position: ","clientY","setTextAdContent",";\n top: ","translateY(-20px)","left","2624390UFHHjP","3542772wlxBZY","transform","height: auto;","data-adstage-ad-id","adstage-fade-slider-wrapper","5MwzWEe","9037504qPjdwJ","addClickEventForSlider","auto","absolute","removeChild","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "];return(wt=function(){return t})()}function kt(t,e){const n=wt();return(kt=function(t,e){return n[t-=234]})(t,e)}!function(){const t=kt,e=wt();for(;;)try{if(931129===-parseInt(t(248))/1*(parseInt(t(302))/2)+parseInt(t(301))/3+parseInt(t(247))/4*(parseInt(t(278))/5)+parseInt(t(273))/6*(parseInt(t(236))/7)+parseInt(t(279))/8+parseInt(t(260))/9*(parseInt(t(272))/10)+-parseInt(t(303))/11*(parseInt(t(235))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Et{static[bt(309)](t,e){const n=bt,r=document[n(256)](n(250));return r[n(290)]="adstage-ad adstage-"+String(t.adType)[n(255)](),r[n(244)](n(276),e[n(245)]),r[n(244)]("data-adstage-slot-id",t.id),r[n(286)][n(262)]=vt[n(293)](!0),vt[n(268)](r,e),r}static createTextTransitionContainer(t,e,n,r,o=!1){const i=bt,s=t.height&&0!==t.height&&t.height!==i(281),a=document.createElement("div");a[i(290)]=i(277);const c={position:i(242),overflow:"hidden",display:i(249)};if(!s&&(c[i(295)]=i(281),c[i(265)]=i(287)),t[i(307)]&&0!==t[i(307)]){let e;e=typeof t[i(307)]===i(237)&&(t[i(307)][i(241)]("px")||t[i(307)].includes("%"))?t[i(307)]:t[i(307)]+"px",c.width=e}if(t[i(295)]&&0!==t[i(295)]&&t[i(295)]!==i(281)&&s){let e;e="string"==typeof t[i(295)]?t[i(295)][i(241)]("px")||t.height[i(241)]("%")?t[i(295)]:t[i(295)]+"px":t.height+"px",c[i(295)]=e}Object.entries(c)[i(234)](([t,e])=>{a[i(286)].setProperty(t,e)});const l=document.createElement(i(250));l.className=i(288),l[i(286)].cssText=i(252)+i(s?263:285)+i(299);let d=null;const u=!t[i(307)]||0===t[i(307)],p=!t[i(295)]||0===t[i(295)]||void 0===t[i(295)]||"auto"===t[i(295)];if(u||p&&s){if(d=document[i(256)](i(250)),d[i(286)][i(262)]=i(261),!u&&t[i(307)]){let e;e=typeof t[i(307)]===i(237)&&(t[i(307)][i(241)]("px")||t[i(307)][i(241)]("%"))?t[i(307)]:t.width+"px",d.style[i(307)]=e,d.style.whiteSpace=i(259)}document.body[i(243)](d);let n=0,r=0;e.forEach(e=>{const o=i,s=this[o(309)](t,e);d.appendChild(s);const a=s.getBoundingClientRect();a[o(307)]>n&&(n=a.width),a[o(295)]>r&&(r=a[o(295)]),d[o(283)](s)}),u&&n>0&&(a[i(286)][i(307)]=n+"px"),p&&r>0&&s&&(a[i(286)][i(295)]=r+"px"),document[i(238)][i(283)](d)}const h=[];e[i(234)]((e,n)=>{const a=i,c=document[a(256)](a(250));c[a(290)]=a(294);const d=a(s?282:0===n?242:282);c[a(286)][a(262)]=a(266)+d+a(269)+(d===a(282)?"0":a(281))+";\n left: "+(d===a(282)?"0":a(281))+a(296)+a(s?263:275)+a(284)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":a(300))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+a(308);const u=this[a(309)](t,e);$[a(280)](u,e,t,r,o,"Text"),c[a(243)](u),l[a(243)](c),h[a(298)](c)});let f=0;const g=e[i(297)],m=1e3*(n?.[i(246)]||4),y=n=>{const a=i;n>=g?n=0:n<0&&(n=g-1);const c=h[f],l=h[n];!s&&("relative"===c[a(286)][a(253)]&&(c[a(286)][a(253)]=a(282),c.style[a(258)]="0",c[a(286)][a(271)]="0"),l[a(286)][a(253)]=a(242),l[a(286)][a(258)]=a(281),l[a(286)].left="auto"),c[a(286)][a(304)]="0",c[a(286)][a(274)]=a(270),c.style[a(254)]="1",l[a(286)][a(304)]="1",l[a(286)][a(274)]="translateY(0)",l[a(286)][a(254)]="2",h[a(234)]((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(286)][r(304)]="0",t[r(286)][r(274)]="translateY(20px)",t.style.zIndex="1",!s&&"relative"===t.style[r(253)]&&(t[r(286)][r(253)]=r(282),t[r(286)][r(258)]="0",t.style[r(271)]="0"))}),f=n,X[a(257)](e[f],t,f,r,o)};let v=setInterval(()=>{y(f+1)},m);return a[i(306)](i(291),()=>{clearInterval(v)}),a[i(306)]("mouseleave",()=>{v=setInterval(()=>{y(f+1)},m)}),Et.addTouchSupport(a,y,()=>f,g),a.appendChild(l),a}static addTouchSupport(t,e,n,r){const o=bt;let i=0,s=0,a=!1;t[o(306)]("touchstart",t=>{const e=o;i=t[e(305)][0][e(289)],s=t[e(305)][0][e(267)],a=!0}),t[o(306)](o(240),t=>{a&&t[o(239)]()}),t.addEventListener(o(264),t=>{const r=o;if(!a)return;a=!1;const c=t[r(292)][0][r(289)],l=t[r(292)][0].clientY,d=i-c,u=s-l;if(Math[r(251)](d)>Math[r(251)](u)&&Math[r(251)](d)>50){const t=n();e(d>0?t+1:t-1)}})}}const xt=St;function St(t,e){const n=Ct();return(St=function(t,e){return n[t-=134]})(t,e)}!function(){const t=St,e=Ct();for(;;)try{if(924810===parseInt(t(165))/1+-parseInt(t(181))/2*(parseInt(t(143))/3)+parseInt(t(153))/4*(-parseInt(t(183))/5)+parseInt(t(137))/6*(parseInt(t(161))/7)+-parseInt(t(141))/8*(parseInt(t(167))/9)+-parseInt(t(151))/10*(-parseInt(t(150))/11)+parseInt(t(136))/12*(parseInt(t(175))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class At extends ut{constructor(e=!1,n){super(t[St(142)],e,n)}[xt(170)](){return xt(152)}async renderAdElement(t,e){const n=xt,r=document[n(182)](t[n(155)]);if(!r)return;const o=document[n(166)](n(154));o[n(145)]=n(156);const i=t[n(174)],s=r[n(172)]||r;if(i)o[n(146)][n(135)]=n(180),o.style[n(176)]=String(i);else{const e=t[n(148)],r={width:e?.width,height:e?.[n(176)]},{width:i,height:a}=this[n(164)](s,r,{debug:this[n(171)]});o.style[n(135)]=i,o[n(146)].height=a}const a=document[n(166)](n(154));a[n(145)]=n(163),a.style.cssText=vt.createTextAdStyles(!1),vt[n(159)](a,e);const c=t[n(148)]?.[n(139)];c&&typeof c===n(177)&&(a[n(146)][n(158)]="-webkit-box",a[n(146)][n(169)]=String(c),a[n(146)][n(147)]=n(134),a[n(146)][n(160)]=n(173)),o[n(149)](a),$[n(184)](o,e,t,()=>this.createEventTrackingCallback(),this[n(171)],n(168)),r[n(185)]="",r[n(149)](o),this[n(171)]&&console.log(n(179)+e[n(140)])}async renderMultipleAds(t,e){const n=xt,r=document[n(182)](t.containerId);if(!r)throw new Error(n(138)+t.containerId);const o=this[n(144)](),i={autoSlideInterval:(t[n(148)]?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t.optimizedHeight,aspectRatio:t.aspectRatio},s=Et[n(162)](t,e,i,o,this[n(171)]);s&&(r[n(185)]="",r[n(149)](s),this[n(171)]&&console.log("✨ Text transition created for slot: "+t.id+n(157)+e.length+n(178)))}}function Ct(){const t=["✨ Single text ad rendered: ","100%","277604UyTnGJ","getElementById","35pfAoLR","addClickEventForRenderer","innerHTML","vertical","width","8592IBFBPs","6PFyxev","Container not found: ","maxLines","_id","3058568ruRvKa","TEXT","39xtptYP","createEventTrackingCallback","className","style","webkitBoxOrient","config","appendChild","869ydrcxL","21500bcCKiO","60px","590056WVEKCX","div","containerId","adstage-ad adstage-text-ad"," with ","display","setTextAdContent","overflow","11260319mFJemq","createTextTransitionContainer","adstage-text-content","calculateAdSize","721036SILLqb","createElement","9MvFzho","Text","webkitLineClamp","getDefaultHeight","debug","parentElement","hidden","optimizedHeight","29861qwiZth","height","number"," ads"];return(Ct=function(){return t})()}const Tt=_t;function _t(t,e){const n=Rt();return(_t=function(t,e){return n[t-=362]})(t,e)}function Rt(){const t=["display","🎬 Video element created for ad: ","360px","263827zbgUkW","\n video::-webkit-media-controls-play-button {\n display: ","adstage-video-mute-button","style","debug","renderVideoElementDirect","createElement","100%","head","1088dQBPMT","4578363aZdtzV","🎬 Trying muted autoplay fallback...","addEventListener","containerId","play","customControls","muted","rgba(0, 0, 0, 0.9)","hideCurrentTime","2570132AUOlUe","cssText","⚠️ No video advertisements available for slot: ","VIEWABLE","🎬 Initial autoplay attempt after timeout..."," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","adstage-video-default-controls","click","unmuted","🎬 Video config received:","Video","_id","🎬 Video controls setting:"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","getDefaultHeight","transform","none","mouseleave","7rnqjqz","height","763978WasCtY","28206gpvQGD",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ',"renderMultipleAds","hideControls","catch","🎬 Video metadata loaded, attempting autoplay...","block","title","createEventTrackingCallback","src","Click to mute","autoplay","🎬 Autoplay completely failed:","innerHTML","disabled (default)","videoUrl","hideFullscreenButton","width","background","adstage-video-container"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","button","log","mouseenter","playsinline","appendChild","error","5phyduX","relative","className","\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ","hidePlayButton","8678742PudRUX","img","loop","Video load failed:"," (autoplay: ","video"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","Container not found: ","div","\n pointer-events: none;\n ","stopPropagation","scale(1)","Video fallback","controls","Video thumbnail","warn",", loop: ","addClickEventForRenderer","hideProgressBar","imageUrl","config","hideVolumeSlider",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',"objectFit","getElementById",", muted: ","848160yMpjiF","loadeddata","contain","hideMuteButton"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","VIDEO","loadedmetadata","textContent","\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n "];return(Rt=function(){return t})()}!function(){const t=_t,e=Rt();for(;;)try{if(786115===parseInt(t(470))/1+-parseInt(t(399))/2+-parseInt(t(370))/3+-parseInt(t(379))/4*(-parseInt(t(427))/5)+-parseInt(t(432))/6*(-parseInt(t(397))/7)+-parseInt(t(369))/8*(-parseInt(t(400))/9)+-parseInt(t(458))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Dt extends ut{constructor(e=!1,n){super(t[_t(463)],e,n)}[Tt(393)](){return Tt(469)}async renderAdElement(t,e){const n=Tt,r=document[n(456)](t[n(373)]);if(!r)return;const o=document[n(366)](n(440));o.className="adstage-video-container",o[n(363)][n(380)]="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this[n(365)](o,e,t),r[n(413)]="",r[n(425)](o),this.debug&&console[n(422)]("🎬 Single video ad rendered: "+e[n(390)])}async[Tt(402)](t,e){const n=Tt,r=document.getElementById(t[n(373)]);if(!r)throw new Error(n(439)+t.containerId);if(e.length>0){const o=e[0],i=document[n(366)]("div");i[n(429)]=n(419),i[n(363)][n(380)]="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this[n(365)](i,o,t),r.innerHTML="",r[n(425)](i);const a=this.createEventTrackingCallback();setTimeout(()=>{const e=n;a(o._id,t.id,s[e(382)])},100),this[n(364)]&&console[n(422)]("🎬 Single video rendered for VIDEO slot: "+t.id+" ("+o._id+")")}else this.debug&&console[n(447)](n(381)+t.id)}[Tt(365)](t,e,n){const r=Tt;t[r(363)].position=r(428);const o=document.createElement(r(437));o[r(363)].width=r(367),o[r(363)][r(398)]=r(367),o.style[r(455)]=r(460),o.preload="metadata";const i=n[r(452)];if(this[r(364)]&&console[r(422)](r(388),i),o[r(445)]=!1,o.autoplay=!1!==i?.[r(411)],o[r(376)]=!0,o[r(434)]=!1!==i?.[r(434)],this[r(364)]&&console[r(422)]("🎬 Final video settings:",{autoplay:o[r(411)],muted:o[r(376)],loop:o[r(434)],controls:o[r(445)]}),!1!==i?.playsinline&&o.setAttribute(r(424),""),!0===i?.[r(445)]&&(o[r(445)]=!0,this[r(364)]&&console[r(422)]("🎬 User explicitly enabled controls, overriding default")),i?.[r(403)])o.controls=!1,o[r(363)][r(380)]+=r(441);else if(i?.customControls){if(o[r(445)]){const t=document[r(366)](r(363));t[r(465)]=r(471)+(i.customControls[r(431)]?r(395):r(406))+r(438)+(i[r(375)][r(450)]?"none":r(406))+r(384)+(i.customControls[r(378)]?r(395):r(406))+r(462)+(i[r(375)].hideRemainingTime?"none":r(406))+" !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: "+(i[r(375)][r(453)]?"none":"block")+r(420)+(i[r(375)][r(461)]?r(395):"block")+r(392)+(i[r(375)][r(416)]?r(395):r(406))+" !important;\n }\n ",document.head[r(425)](t)}}else if(o[r(445)]){const t=document[r(366)](r(363));t.id="adstage-video-default-controls",t[r(465)]=r(466),!document[r(456)](r(385))&&document[r(368)][r(425)](t)}this[r(364)]&&console[r(422)](r(391),o[r(445)]?"enabled":r(414));const s=document.createElement(r(421));s[r(429)]=r(362),s[r(363)][r(380)]=r(430),i?.[r(403)]&&(s.style[r(467)]=r(395));const a=()=>{const t=r,e=t(401),n=t(454);s[t(413)]=o[t(376)]?e:n,s[t(407)]=o[t(376)]?"Click to unmute":t(410)};if(a(),s[r(372)](r(386),t=>{const e=r;t[e(442)](),o[e(376)]=!o.muted,a(),this[e(364)]&&console[e(422)]("🔊 Video mute toggled: "+(o[e(376)]?"muted":e(387)))}),s.addEventListener(r(423),()=>{const t=r;s[t(363)][t(418)]=t(377),s[t(363)][t(394)]="scale(1.1)"}),s[r(372)](r(396),()=>{const t=r;s[t(363)].background="rgba(0, 0, 0, 0.7)",s[t(363)][t(394)]=t(443)}),e[r(415)]){o.src=e[r(415)];const t=()=>{const t=r;o[t(411)]&&o.muted&&o.paused&&o.play()[t(404)](e=>{const n=t;this[n(364)]&&(console[n(447)]("🎬 Auto-play was prevented:",e),console[n(447)](n(371))),o.muted=!0,o[n(374)]()[n(404)](t=>{const e=n;this[e(364)]&&console.error(e(412),t)})})};o.addEventListener(r(464),()=>{const e=r;this[e(364)]&&console.log(e(405)),t()}),o[r(372)]("canplay",()=>{const e=r;this[e(364)]&&console[e(422)]("🎬 Video can play, attempting autoplay..."),t()}),o[r(372)](r(459),()=>{const e=r;this[e(364)]&&console[e(422)]("🎬 Video data loaded, attempting autoplay..."),t()}),setTimeout(()=>{const e=r;this[e(364)]&&console.log(e(383)),t()},100)}else if(e[r(451)]){const n=document[r(366)](r(433));return n[r(409)]=e.imageUrl,n[r(363)][r(417)]="100%",n[r(363)][r(398)]=r(367),n.style[r(455)]=r(460),n.alt=e[r(407)]||"Video thumbnail",void t[r(425)](n)}$[r(449)](o,e,n,()=>this[r(408)](),this[r(364)],r(389)),o[r(372)](r(426),o=>{const i=r;if(console[i(426)](i(435),o),e[i(451)]){const r=document[i(366)]("img");r[i(409)]=e[i(451)],r[i(363)][i(417)]=i(367),r.style[i(398)]="100%",r.style.objectFit=i(460),r.alt=e[i(407)]||i(446),$[i(449)](r,e,n,()=>this[i(408)](),this[i(364)],i(444)),t[i(413)]="",t[i(425)](r)}}),t[r(425)](o),t.appendChild(s),this[r(364)]&&console[r(422)](r(468)+e._id+r(436)+o.autoplay+r(457)+o[r(376)]+r(448)+o[r(434)]+")")}}const Lt=Ot;function Ot(t,e){const n=Pt();return(Ot=function(t,e){return n[t-=290]})(t,e)}function Pt(){const t=["5855796uMHviY","cssText","renderAdElement","5563747eKQobP","23499696UFRpdg","containerId","Learn More","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","open","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","200px","renderMultipleAds","#3b82f6","linkUrl","advertisementEventTracker","NATIVE","innerHTML","addEventListener","1vQeKfE","warn","style","className","): ","createElement","mouseenter","23721PlicxI","8fowxRR","_id","mouseleave","log","button","#2563eb","getElementById","debug","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","10aaVZWx","length","1056730AFDEhT","🏠 Native ad rendered (first of ","568554HBpEyN","div","title","1250400hZbYdZ","adstage-ad adstage-native-ad","backgroundColor","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","imageUrl","272bRjjti","Native click tracked for ad: ","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n ","appendChild","Native Advertisement","alt","🏠 Single native ad rendered: ","src","img","textContent"];return(Pt=function(){return t})()}!function(){const t=Ot,e=Pt();for(;;)try{if(421797===-parseInt(t(294))/1*(parseInt(t(315))/2)+parseInt(t(301))/3*(parseInt(t(323))/4)+parseInt(t(311))/5*(-parseInt(t(318))/6)+-parseInt(t(337))/7+parseInt(t(302))/8*(-parseInt(t(334))/9)+-parseInt(t(313))/10+parseInt(t(338))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ut extends ut{constructor(e=!1,n){super(t[Ot(291)],e,n)}getDefaultHeight(){return Ot(344)}async[Lt(336)](t,e){const n=Lt,r=document[n(308)](t[n(339)]);if(!r)return;const o=document[n(299)]("div");if(o[n(297)]=n(319),o[n(296)][n(335)]=n(325),e[n(317)]){const t=document[n(299)]("h3");t[n(333)]=e[n(317)],t[n(296)].cssText=n(310),o[n(327)](t)}if(e.textContent){const t=document[n(299)]("p");t.textContent=e[n(333)],t[n(296)][n(335)]=n(343),o.appendChild(t)}if(e[n(322)]){const t=document[n(299)](n(316));t[n(296)][n(335)]=n(341);const r=document[n(299)](n(332));r[n(331)]=e[n(322)],r[n(329)]=e.title||n(328),r[n(296)].cssText=n(321),t.appendChild(r),o.appendChild(t)}if(e.linkUrl){const t=document[n(299)](n(306));t[n(333)]=n(340),t[n(296)][n(335)]=n(326),t[n(293)]("click",()=>{const t=n;this[t(290)]&&console[t(305)](t(324)+e[t(303)]),window[t(342)](e[t(347)],"_blank")}),t[n(293)](n(300),()=>{const e=n;t.style[e(320)]=e(307)}),t[n(293)](n(304),()=>{const e=n;t[e(296)][e(320)]=e(346)}),o[n(327)](t)}r[n(292)]="",r.appendChild(o),this[n(309)]&&console[n(305)](n(330)+e[n(303)])}async[Lt(345)](t,e){const n=Lt;e[n(312)]>0?(await this.renderAdElement(t,e[0]),this[n(309)]&&console[n(305)](n(314)+e[n(312)]+n(298)+t.id)):this.debug&&console[n(295)]("⚠️ No native advertisements available for slot: "+t.id)}}const zt=Mt;!function(){const t=Mt,e=Nt();for(;;)try{if(890915===-parseInt(t(423))/1+parseInt(t(424))/2+-parseInt(t(442))/3+-parseInt(t(417))/4+parseInt(t(452))/5+parseInt(t(436))/6*(-parseInt(t(396))/7)+parseInt(t(435))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Bt extends ut{constructor(e=!1,n){super(t[Mt(408)],e,n)}[zt(390)](){return"400px"}async[zt(411)](t,e){const n=zt;if(!document[n(447)](t[n(440)]))return;const r=document.createElement(n(428));r.className="adstage-interstitial-overlay",r[n(413)][n(443)]="\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ";const o=document[n(420)](n(428));o[n(418)]=n(406),o[n(413)].cssText="\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ";const i=document[n(420)](n(449));if(i[n(398)]="×",i[n(413)][n(443)]="\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ",i[n(437)](n(439),()=>{this.closeInterstitial(r)}),i.addEventListener(n(393),()=>{const t=n;i[t(413)].backgroundColor="#e5e7eb",i[t(413)][t(451)]=t(403)}),i[n(437)](n(438),()=>{const t=n;i[t(413)][t(441)]=t(388),i[t(413)].color="#6b7280"}),e[n(448)]){const t=document.createElement(n(407));t[n(433)]=e[n(448)],t[n(389)]=e[n(399)]||"Interstitial Advertisement",t[n(413)][n(443)]=n(395),o[n(400)](t)}if(e[n(399)]){const t=document[n(420)]("h2");t[n(391)]=e[n(399)],t[n(413)].cssText=n(431),o[n(400)](t)}if(e[n(391)]){const t=document[n(420)]("p");t[n(391)]=e[n(391)],t[n(413)][n(443)]="\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ",o[n(400)](t)}if(e[n(446)]){const t=document[n(420)]("button");t[n(391)]=n(450),t.style[n(443)]=n(430),t.addEventListener("click",()=>{const t=n;this[t(401)]&&console[t(445)]("Interstitial click tracked for ad: "+e[t(414)]),window[t(404)](e.linkUrl,t(409)),this[t(405)](r)}),t[n(437)]("mouseenter",()=>{const e=n;t[e(413)][e(441)]=e(410)}),t[n(437)](n(438),()=>{const e=n;t[e(413)].backgroundColor=e(422)}),o[n(400)](t)}const s=t=>{const e=n;"Escape"===t[e(402)]&&(this[e(405)](r),document[e(421)](e(426),s))};if(document[n(437)](n(426),s),r.addEventListener(n(439),t=>{const e=n;t.target===r&&this[e(405)](r)}),!document[n(447)]("adstage-interstitial-styles")){const t=document[n(420)](n(413));t.id=n(425),t[n(391)]=n(444),document[n(412)].appendChild(t)}o.appendChild(i),r[n(400)](o),document[n(427)].appendChild(r),this.debug&&console.log(n(434)+e[n(414)])}async renderMultipleAds(t,e){const n=zt;e[n(419)]>0?(await this[n(411)](t,e[0]),this[n(397)]&&console.log("🖼️ Interstitial ad rendered (first of "+e[n(419)]+n(415)+t.id)):this.debug&&console[n(432)](n(429)+t.id)}closeInterstitial(t){const e=zt;t.style.animation="fadeOut 0.3s ease-out forwards",setTimeout(()=>{const e=Mt;t[e(416)]&&t.parentNode[e(394)](t)},300),this[e(397)]&&console[e(445)](e(392))}}function Mt(t,e){const n=Nt();return(Mt=function(t,e){return n[t-=388]})(t,e)}function Nt(){const t=["title","appendChild","advertisementEventTracker","key","#374151","open","closeInterstitial","adstage-interstitial-content","img","INTERSTITIAL","_blank","#2563eb","renderAdElement","head","style","_id","): ","parentNode","2293396TaBoJa","className","length","createElement","removeEventListener","#3b82f6","833395SExwGF","1716944AKPaha","adstage-interstitial-styles","keydown","body","div","⚠️ No interstitial advertisements available for slot: ","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","warn","src","🖼️ Interstitial ad rendered: ","34642920kvfgjZ","9491628QkntMo","addEventListener","mouseleave","click","containerId","backgroundColor","4672380FahLQK","cssText","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","log","linkUrl","getElementById","imageUrl","button","Get Started","color","1241100yKqabD","#f3f4f6","alt","getDefaultHeight","textContent","🖼️ Interstitial ad closed","mouseenter","removeChild","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","7JfEwCA","debug","innerHTML"];return(Nt=function(){return t})()}const Vt=jt;function Ft(){const t=["getDefaultHeightForAdType","debug","getRenderer","display","adstage-ad adstage-","textContent","objectFit","renderOptimizedBannerImage"," renderers","renderFallback","cover","block","data-adstage-ad-id","createPlaceholder","style","video","#f9f9f9","439425toDWil","renderers","set","advertisementEventTracker","TEXT","renderAd","warn","BANNER","adType","860315CLibht","loadImageDimensions","100%","get","[AdRenderer] ","renderMultipleAds","renderAdElement","No advertisement to render","⚠️ Container optimization is only supported for BANNER ads, got: ","onload"," Ad","4AGOkrw","1px dashed #ccc","div","className","1106uuxnCW","NATIVE","calculateAdSize","src","width","INTERSTITIAL","initializeRenderers","naturalHeight","getDefaultHeight","231397ZyKtsC","setAttribute","VIDEO","data-adstage-slot-id","2666312XGsmWr","height","3vQKABy","appendChild","advertisement","Failed to load image: ","onerror","3029090nJlNdq","renderAdSlider","imageUrl","log","calculateOptimalContainerSize","padding","createElement","videoUrl","createAdElement","config","11elIhlc","toLowerCase","777848OYqlXh","img","8px","🏭 AdRenderer factory initialized with ","isLoaded","optimizeContainerForBannerAds","naturalWidth","17538yjIFLq"];return(Ft=function(){return t})()}function jt(t,e){const n=Ft();return(jt=function(t,e){return n[t-=465]})(t,e)}!function(){const t=jt,e=Ft();for(;;)try{if(312105===parseInt(t(498))/1+-parseInt(t(521))/2*(-parseInt(t(504))/3)+-parseInt(t(485))/4*(-parseInt(t(474))/5)+parseInt(t(528))/6*(-parseInt(t(489))/7)+parseInt(t(502))/8+-parseInt(t(465))/9+-parseInt(t(509))/10*(parseInt(t(519))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Kt{constructor(t=!1,e){const n=jt;this[n(466)]=new Map,this[n(530)]=t,this[n(468)]=e||null,this[n(495)]()}initializeRenderers(){const e=jt;this[e(466)][e(467)](t[e(472)],new gt(this.debug,this[e(468)])),this.renderers[e(467)](t[e(469)],new At(this[e(530)],this.advertisementEventTracker)),this[e(466)][e(467)](t[e(500)],new Dt(this[e(530)],this[e(468)])),this[e(466)].set(t[e(490)],new Ut(this[e(530)],this.advertisementEventTracker)),this[e(466)][e(467)](t[e(494)],new Bt(this[e(530)],this[e(468)])),this.debug&&console[e(512)](e(524)+this[e(466)].size+e(537))}[Vt(517)](e,n){const r=Vt,o=this[r(531)](e[r(473)]),i=document.createElement("div");i[r(488)]=r(533)+String(e[r(473)])[r(520)](),i[r(499)](r(541),n._id),i[r(499)](r(501),e.id);const{width:s,height:a}=o.calculateAdSize(i,e[r(518)]||{},n);switch(i[r(543)][r(493)]=s,i[r(543)][r(503)]=a,i[r(543)][r(532)]=r(540),e.adType){case t[r(472)]:if(n[r(511)]){const t=document[r(515)](r(522));t[r(492)]=n[r(511)],t[r(543)][r(493)]=r(476),t[r(543)].height=r(476),t[r(543)][r(535)]=r(539),i[r(505)](t)}break;case t.VIDEO:if(n[r(516)]){const t=document[r(515)](r(544));t[r(492)]=n.videoUrl,t[r(543)].width="100%",t.style[r(503)]="100%",i[r(505)](t)}break;case t[r(469)]:if(n.textContent){const t=document[r(515)](r(487));t.textContent=n[r(534)]||"",t[r(543)][r(514)]=r(523),i[r(505)](t)}break;default:i[r(543)].border=r(486),i[r(543)].backgroundColor=r(545),i[r(534)]=e[r(473)]+r(484)}return i}[Vt(531)](t){const e=Vt,n=this[e(466)][e(477)](t);if(!n)throw new Error("No renderer found for ad type: "+t);return n}[Vt(542)](t,e,n,r,o){const i=Vt;this[i(531)](n)[i(542)](t,e,r,o)}async[Vt(526)](e,n){const r=Vt;if(e[r(473)]!==t[r(472)])return void(this.debug&&console[r(471)](r(482)+e[r(473)]));const o=this.getRenderer(t.BANNER);await o[r(526)](e,n)}async[Vt(510)](t,e){const n=Vt,r=this[n(531)](t[n(473)]);await r[n(479)](t,e)}async[Vt(470)](t){const e=Vt;if(!t[e(506)])throw new Error(e(481));const n=this[e(531)](t.adType);await n[e(480)](t,t[e(506)]),t[e(525)]=!0}async[Vt(480)](t,e){const n=this[Vt(531)](t.adType);await n.renderAdElement(t,e)}renderFallback(t){const e=Vt;this[e(531)](t[e(473)])[e(538)](t)}[Vt(529)](t){const e=Vt;return this[e(531)](t)[e(497)]()}[Vt(491)](t,e,n,r){const o=Vt;return this[o(531)](e)[o(491)](t,n,r)}[Vt(475)](t){return new Promise((e,n)=>{const r=jt,o=new Image;o[r(483)]=()=>{const t=r;e({width:o[t(527)],height:o[t(496)]})},o[r(508)]=()=>{n(new Error(r(507)+t))},o.src=t})}async[Vt(536)](e,n,r){const o=Vt;if(r[o(473)]!==t.BANNER)throw new Error("renderOptimizedBannerImage is only supported for BANNER ads");const i=this[o(531)](t[o(472)]);return await i[o(536)](e,n,r)}async[Vt(513)](e,n,r){const o=Vt;if(r!==t.BANNER){const t=this[o(531)](r);return{width:o(476),height:t.getDefaultHeight(),aspectRatio:16/9}}const i=this.getRenderer(t[o(472)]);return await i.calculateOptimalContainerSize(e,n)}[Vt(512)](t,...e){const n=Vt;this[n(530)]&&console[n(512)](n(478)+t,...e)}}const Ht=Wt;function Wt(t,e){const n=qt();return(Wt=function(t,e){return n[t-=284]})(t,e)}function qt(){const t=["NATIVE","then","❌ Failed to load ad for slot: ","data-adstage-slot-id","🎯 Simple viewability tracking started for slot: ","[data-adstage-slot-id]","refreshAdSlot","createAdInternal","init","getConfig","Container not found after ","🎠 Slider will handle VIEWABLE events for ","광고 생성 중 오류 발생:","text","New advertisement viewable tracked for slot:","_config","handleViewableEvent","✅ Ad loaded for slot: ","get","🗑️ Ad slot destroyed: "," ads for type: ","getSlotById","createAdWithRetry","fetchAdData","autoplay","413102epuPYY","muted","VIDEO","substr","apiKey"," ads)","debug","56DOOXRj","Ad slot not found: ","forEach","set","🎯 Ads module initialized (sync mode) with auto-cleanup","undefined","destroy","refresh","auto-","🔍 Auto-cleanup MutationObserver enabled","innerHTML","json",". Retrying in ","default","🚫 Advertisement not found with ID: ","Auto-cleanup failed for slot ","style","🔍 Ad slot already cleaned up: ","advertisement","getAllSlots","548250ZNJBAS","nodeType","getBaseUrl","renderFallback","deviceType","now","Failed to refresh ad slot: ","9924SxhgKj","customControls","querySelectorAll","_isReady","setupAutoCleanup","adId","random","interstitial","adRenderer","error","warn","❌ Failed to track viewable impression:","BANNER","isReady","create","country","adType","playsinline","Failed to fetch ad data: ","renderAd","2KFYyZC","loop","height","delete"," (element found)","hideControls","startSimpleViewabilityTracking","Ads module not initialized. Call AdStage.init() first.","controls","length","9483386kHDrUq","advertisements","onClick","native","observe","from","append","video","slideInterval","308tNmrAz","autoSlide","autoDestroy","getElementById","_id","detail","createAd","status","optimizeContainerForBannerAds","renderAdElement","API key not configured","advertisementEventTracker","auto","language",", filters:","renderAdSlider","GET","config","handleRemovedElement","getAttribute","banner","containerId","INTERSTITIAL","width","slots","Container not found: ","viewabilityTracker","1314856SPHUZX","✅ Simple viewable impression tracked for ad ","📊 Advertisement event tracking enabled for slot: ","54XPMCAX","❌ Failed to find element for viewability tracking: ","disconnect","string","trackAdvertisementEvent","100%","values","isLoaded"," removed","VIEWABLE","list","18399PKjghN","adstage-","loadAdContentInBackground","mutationObserver","1395315GJraEU","log","TEXT","createPlaceholder","ensureReady","toString"];return(qt=function(){return t})()}!function(){const t=Wt,e=qt();for(;;)try{if(526410===parseInt(t(344))/1*(parseInt(t(290))/2)+-parseInt(t(404))/3*(-parseInt(t(297))/4)+parseInt(t(408))/5+parseInt(t(324))/6*(-parseInt(t(363))/7)+-parseInt(t(390))/8*(parseInt(t(393))/9)+-parseInt(t(317))/10+parseInt(t(354))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Yt{constructor(){const t=Wt;this[t(327)]=!1,this[t(429)]=null,this[t(387)]=new Map,this[t(374)]=null,this[t(332)]=null,this.mutationObserver=null}[Ht(422)](t){const e=Ht;this[e(429)]=t,this[e(374)]=new P(W[e(319)](),t[e(294)],t[e(296)]||!1,this.slots),this[e(332)]=new Kt(t[e(296)]||!1,this[e(374)]),this[e(328)](),this[e(327)]=!0,t[e(296)]&&console[e(409)](e(301))}[Ht(337)](){return this[Ht(327)]}[Ht(423)](){return this[Ht(429)]}[Ht(383)](e,n){const r=Ht;this[r(412)]();const o={width:n?.[r(386)]||r(398),height:n?.[r(346)]||r(375),autoSlide:n?.[r(364)]||!1,slideInterval:n?.[r(362)]||5e3,onClick:n?.[r(356)],adId:n?.adId,language:n?.[r(376)],deviceType:n?.[r(321)],country:n?.country};return this[r(369)](e,t[r(336)],o)}[Ht(427)](e,n){const r=Ht;this[r(412)]();const o={maxLines:n?.maxLines||3,style:n?.[r(313)]||r(310),onClick:n?.[r(356)],adId:n?.[r(329)],language:n?.[r(376)],deviceType:n?.[r(321)],country:n?.country};return this[r(369)](e,t[r(410)],o)}[Ht(361)](e,n){const r=Ht;this[r(412)]();const o={width:n?.[r(386)]||640,height:n?.[r(346)]||360,autoplay:void 0===n?.[r(289)]||n.autoplay,muted:void 0===n?.[r(291)]||n.muted,loop:void 0===n?.loop||n[r(345)],playsinline:!1!==n?.[r(341)],controls:void 0!==n?.[r(352)]&&n[r(352)],hideControls:n?.[r(349)]||!1,customControls:n?.[r(325)],autoSlide:!1,maxAds:1,onClick:n?.[r(356)],...n?.adId&&{adId:n.adId}};return this[r(369)](e,t[r(292)],o)}[Ht(357)](e,n){const r=Ht;return this[r(412)](),this[r(369)](e,t[r(414)],n||{})}[Ht(331)](e,n){const r=Ht;return this.ensureReady(),this[r(369)](e,t[r(385)],n||{})}[Ht(304)](t){const e=Ht;this.ensureReady();const n=this[e(387)][e(432)](t);if(!n)throw new Error(e(298)+t);this[e(420)](n),this[e(429)]?.[e(296)]&&console[e(409)]("🔄 Ad slot refreshed: "+t)}[Ht(303)](t){const e=Ht;this.ensureReady();const n=this.slots[e(432)](t);if(!n)return void(this[e(429)]?.[e(296)]&&console.log(e(314)+t));n[e(389)]&&n[e(389)][e(303)]();const r=document[e(366)](n[e(384)]);r&&(r[e(307)]=""),this[e(387)][e(347)](t),this[e(429)]?.[e(296)]&&console[e(409)](e(284)+t)}[Ht(316)](){const t=Ht;return this.ensureReady(),Array[t(359)](this[t(387)][t(399)]())}[Ht(286)](t){const e=Ht;return this[e(412)](),this.slots[e(432)](t)||null}[Ht(369)](t,e,n){const r=Ht;if(!this[r(429)]?.apiKey)throw new Error(r(373));const o=r(405)+e+"-"+Date[r(322)]()+"-"+Math[r(330)]()[r(413)](36)[r(293)](2,9);return this[r(287)](t,e,n,o,0),o}async[Ht(287)](t,e,n,r,o){const i=Ht,s=[0,50,100,200,500];let a,c=null;if(typeof t===i(396)){if(a=t,c=document[i(366)](t),!c)return o<4?(this._config?.[i(296)]&&console[i(334)](i(388)+t+i(309)+s[o+1]+"ms... (attempt "+(o+1)+"/5)"),void setTimeout(()=>{this[i(287)](t,e,n,r,o+1)},s[o+1])):void console.error(i(424)+5+" attempts: "+t)}else c=t,a=c.id||i(305)+r,!c.id&&(c.id=a);try{this[i(421)](a,e,n,r,c)}catch(t){console.error(i(426),t)}}[Ht(421)](e,n,r,o,i){const s=Ht;i.setAttribute(s(417),o),this.adRenderer?.[s(411)](i,o,n,r,this[s(429)]);const a={id:o,containerId:e,adType:n,width:r[s(386)]||s(398),height:r[s(346)]||(n===t[s(410)]?s(375):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...r},load:async()=>this[s(288)](n,r)[s(415)](t=>t[0]||null),render:t=>this[s(332)]?.[s(372)](a,t),refresh:async()=>this[s(420)](a),destroy:()=>this[s(303)](o)};this[s(387)][s(300)](o,a),this.loadAdContentInBackground(a),this[s(374)]&&this[s(429)]?.[s(296)]&&console.log(s(392)+o)}async[Ht(406)](e){const n=Ht;try{const r=await this[n(288)](e[n(340)],e[n(380)]);if(!r||0===r[n(353)])return void this.adRenderer?.[n(320)](e);e[n(340)]===t[n(336)]&&r[n(353)]>0&&await(this[n(332)]?.[n(371)](e,r)),r.length>1||e[n(380)]?.[n(364)]?(await(this.adRenderer?.[n(378)](e,r)),this[n(429)]?.[n(296)]&&console[n(409)](n(425)+r.length+" ads automatically")):(e[n(315)]=r[0],await(this[n(332)]?.renderAdElement(e,r[0])),this[n(350)](e,r[0])),e[n(400)]=!0,this[n(429)]?.[n(296)]&&console[n(409)](n(431)+e.id+" ("+r.length+n(295))}catch(t){console[n(333)](n(416)+e.id,t),this[n(332)]?.renderFallback(e)}}[Ht(350)](t,e){const n=(r=0)=>{const o=Wt,i=document[o(366)](t.id);if(!i)return void(r<5?(setTimeout(()=>n(r+1),300),this._config?.[o(296)]&&console.log("🔄 Retrying viewability tracking for slot: "+t.id+" (attempt "+(r+1)+")")):console[o(334)](o(394)+t.id));const s=new M(i,async()=>{await this.handleViewableEvent(e,t)});t.viewabilityTracker=s,this._config?.[o(296)]&&console.log(o(418)+t.id+o(348))};n()}async[Ht(430)](t,e){const n=Ht;try{this[n(374)]&&(await this[n(374)][n(397)](t[n(367)],e.id,s[n(402)]),this[n(429)]?.debug&&console[n(409)](n(391)+t[n(367)]))}catch(t){console.error(n(335),t)}}async fetchAdData(t,e){const n=Ht;if(!this[n(429)]?.[n(294)])throw new Error(n(373));if(e[n(329)]){const t=""+W[n(355)][n(368)](e.adId),r=await fetch(t,{method:n(379),headers:R[n(338)](this[n(429)][n(294)])});if(!r.ok){if(404===r[n(370)])return console[n(334)](n(311)+e.adId),[];throw new Error(n(342)+r[n(370)])}const o=await r[n(308)]();return this[n(429)]?.debug&&console[n(409)]("📊 Fetched specific ad with ID: "+e.adId,o),[o]}const r=new URLSearchParams;r[n(360)]("adType",t),e[n(376)]&&r.append(n(376),e.language),e[n(321)]&&r[n(360)](n(321),e[n(321)]),e[n(339)]&&r[n(360)](n(339),e.country);const o=W[n(355)][n(403)]()+"?"+r[n(413)](),i=await fetch(o,{method:n(379),headers:R[n(338)](this._config[n(294)])});if(!i.ok)throw new Error("Failed to fetch ad data: "+i[n(370)]);const s=(await i[n(308)]())[n(355)]||[];return this._config?.[n(296)]&&console[n(409)]("📊 Fetched "+s.length+n(285)+t+n(377),{language:e.language,deviceType:e[n(321)],country:e.country}),s}async refreshAdSlot(t){const e=Ht;try{const n=await this[e(288)](t[e(340)],t[e(380)]||{});n&&n[e(353)]>0&&(t[e(315)]=n[0],await(this.adRenderer?.[e(343)](t)),this[e(374)]&&console[e(409)](e(428),t.id))}catch(n){console[e(333)](e(323)+t.id,n)}}[Ht(412)](){const t=Ht;if(!this[t(327)])throw new Error(t(351))}[Ht(328)](){const t=Ht;typeof window!==t(302)&&typeof document!==t(302)&&(this.mutationObserver&&this.mutationObserver.disconnect(),this[t(407)]=new MutationObserver(e=>{const n=t;e[n(299)](t=>{const e=n;t.removedNodes[e(299)](t=>{t[e(318)]===Node.ELEMENT_NODE&&this.handleRemovedElement(t)})})}),this[t(407)][t(358)](document.body,{childList:!0,subtree:!0}),this._config?.[t(296)]&&console[t(409)](t(306)))}[Ht(381)](t){const e=Ht,n=t.getAttribute("data-adstage-slot-id");if(n)return void this[e(365)](n);t[e(326)](e(419))[e(299)](t=>{const n=e,r=t[n(382)](n(417));r&&this.autoDestroy(r)})}[Ht(365)](t){const e=Ht,n=this.slots[e(432)](t);if(n)try{n[e(389)]&&n[e(389)][e(303)](),this[e(387)][e(347)](t),this._config?.[e(296)]&&console.log("🧹 Auto-cleanup: slot "+t+e(401))}catch(n){this[e(429)]?.[e(296)]&&console.warn(e(312)+t+":",n)}}destroyModule(){const t=Ht,e=this._config?.[t(296)];this[t(407)]&&(this[t(407)][t(395)](),this.mutationObserver=null),this[t(387)].clear(),this.advertisementEventTracker=null,this[t(332)]=null,this[t(327)]=!1,this[t(429)]=null,e&&console.log("🗑️ Ads module destroyed")}}var Jt=Xt;function Xt(t,e){var n=Gt();return(Xt=function(t,e){return n[t-=303]})(t,e)}function Gt(){var t=["1cXwZMT","976213zVWMht","getApiEndpoint","log","modules","init","1109946USjYgw","268965bDcKZs","debug","741444knEBZV","_isReady","getBaseUrl","isDebugMode","getApiHeaders","includes","✅ Config module initialized (sync mode)","151024humOQI","baseUrl","_organizationInfo","config","apiKey","449835TtGelQ","updateConfig","🔄 Config updated","254148ODEmSO","getConfig","_config","Config module not initialized","development","getOrganizationInfo","create","isModuleEnabled","events","isReady","API key not available"];return(Gt=function(){return t})()}!function(){for(var t=Xt,e=Gt();;)try{if(102275===parseInt(t(327))/1*(parseInt(t(316))/2)+parseInt(t(313))/3+-parseInt(t(336))/4+-parseInt(t(334))/5+parseInt(t(333))/6+-parseInt(t(328))/7+parseInt(t(308))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Zt{constructor(){var t=Xt;this[t(337)]=!1,this[t(318)]=null,this._organizationInfo=null}[Jt(332)](t){var e=Jt;this[e(318)]={timeout:3e4,debug:!1,modules:["ads",e(324),e(311)],...t},t[e(309)]&&W.setBaseUrl(t.baseUrl),this._isReady=!0,t.debug&&console[e(330)](e(307),{modules:this[e(318)][e(331)],endpoint:W[e(303)](),mode:e(320)})}[Jt(325)](){return this[Jt(337)]}[Jt(317)](){return this[Jt(318)]}[Jt(321)](){return this[Jt(310)]}[Jt(329)](){return W[Jt(303)]()}[Jt(304)](){var t=Jt;return this[t(318)]?.[t(335)]||!1}getEnabledModules(){var t=Jt;return this[t(318)]?.[t(331)]||[]}[Jt(323)](t){var e=Jt;return this.getEnabledModules()[e(306)](t)}[Jt(314)](t){var e=Jt;if(!this[e(318)])throw new Error(e(319));this._config={...this[e(318)],...t},this.isDebugMode()&&console[e(330)](e(315),t)}[Jt(305)](){var t=Jt;if(!this[t(318)]?.[t(312)])throw new Error(t(326));return R[t(322)](this._config[t(312)])}}const Qt=te;!function(){const t=te,e=ee();for(;;)try{if(446626===parseInt(t(534))/1+-parseInt(t(532))/2+parseInt(t(528))/3+parseInt(t(537))/4*(parseInt(t(521))/5)+parseInt(t(506))/6+-parseInt(t(529))/7*(parseInt(t(500))/8)+parseInt(t(524))/9*(-parseInt(t(520))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class $t{static[Qt(507)](){return{...$t.getAutoDetectedDeviceInfo(),...$t._userProvidedDeviceInfo}}static[Qt(517)](){const t=Qt;if(!y[t(509)]())return{category:t(519),platform:t(504),model:t(504),osVersion:"SSR"};const e=navigator[t(511)][t(525)]();let n=t(526);/tablet|ipad/.test(e)?n="tablet":A[t(502)]()&&(n=t(538));const r=A[t(513)]();return{category:n,platform:$t[t(536)](r),model:navigator[t(514)],osVersion:navigator[t(514)],deviceId:A[t(531)]()}}static[Qt(516)](t){const e=Qt;$t[e(515)]={...$t[e(515)],...t}}static[Qt(505)](t,e){$t[Qt(515)][t]=e}static[Qt(499)](){$t._userProvidedDeviceInfo={}}static getUserDeviceInfo(){return{...$t[Qt(515)]}}static mapPlatformForEvents(t){const e=Qt;switch(t){case e(501):return e(539);case e(523):return"Android";case"web":return e(527);case e(526):return e(508);default:return e(510)}}static getDetailedInfo(){const t=Qt;if(!y[t(509)]())return{userAgent:t(504),language:t(522),platform:t(504),cookieEnabled:!1,onLine:!0,screenResolution:t(533),viewportSize:t(533)};const e=y.getViewportInfo();return{userAgent:navigator[t(511)],language:navigator[t(530)]||t(522),platform:navigator[t(514)],cookieEnabled:navigator[t(512)],onLine:navigator[t(535)],screenResolution:screen[t(518)]+"x"+screen[t(503)],viewportSize:e[t(518)]+"x"+e[t(503)]}}}function te(t,e){const n=ee();return(te=function(t,e){return n[t-=499]})(t,e)}function ee(){const t=["other","10oBwqYI","250385Xtgnsc","ko-KR","android","3816693VwSsmT","toLowerCase","desktop","Mobile Web","1778424bjXcWI","89467EEfkTe","language","generateDeviceId","1294562fiXpNh","0x0","667566AOLmXN","onLine","mapPlatformForEvents","44VihAtb","mobile","iOS","clearDeviceInfo","376IfcdSC","ios","isMobile","height","SSR","setDeviceProperty","1844820qZwHXw","getDeviceInfo","Desktop Web","isBrowser","Unknown","userAgent","cookieEnabled","getPlatform","platform","_userProvidedDeviceInfo","setDeviceInfo","getAutoDetectedDeviceInfo","width"];return(ee=function(){return t})()}function ne(t,e){const n=ie();return(ne=function(t,e){return n[t-=298]})(t,e)}$t[Qt(515)]={};const re=ne;!function(){const t=ne,e=ie();for(;;)try{if(992829===-parseInt(t(304))/1+-parseInt(t(313))/2*(parseInt(t(300))/3)+parseInt(t(306))/4+parseInt(t(316))/5*(parseInt(t(312))/6)+-parseInt(t(311))/7*(-parseInt(t(315))/8)+-parseInt(t(320))/9+parseInt(t(305))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static getUserInfo(){const t=ne;return{...oe[t(310)](),...oe[t(309)]}}static[re(310)](){const t=re;if(!y.isBrowser())return{language:t(303),country:"KR"};const e=navigator[t(307)]||"ko-KR";return{language:e,country:oe[t(302)](e)}}static extractCountryFromLanguage(t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t.split("-")[0]]||"KR"}static setUserProperties(t){const e=re;oe._userProperties={...oe[e(309)],...t}}static[re(299)](t,e){oe._userProperties[t]=e}static[re(319)](){oe._userProperties={}}static[re(317)](){return{...oe[re(309)]}}static[re(318)](){const t=re;if(!y[t(314)]())return{timezone:t(321),estimatedCountry:"KR"};const e=Intl[t(308)]()[t(301)]()[t(298)];return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function ie(){const t=["setUserProperty","2328YqjvFC","resolvedOptions","extractCountryFromLanguage","ko-KR","1387376AXnSsO","8477520dmFJvE","4007216VKYeUs","language","DateTimeFormat","_userProperties","getBaseUserInfo","151711wejyjI","37998QqdUWA","592wVpCkC","isBrowser","464cknsms","1005pIalqx","getCurrentUserProperties","estimateLocation","clearUserProperties","15926598JzEvoc","UTC","timeZone"];return(ie=function(){return t})()}function se(t,e){const n=ae();return(se=function(t,e){return n[t-=277]})(t,e)}function ae(){const t=["search","41153520sFkQZl","stringify","15234spTJBK","utm_term","naver.searchad","UTM_KEYS","msclkid","adGroupId","creative_id","get","nclid","fbclid","isClickEventSent","ad_creative","term","612534GttrHP","183332QtZiGV","CAMPAIGN_KEYS","hasParams","ttclid","campaign_id","CLICK_ID_KEYS","9189104cCGOAv","getItem","15689511rDNtRh","shouldSendClickEvent","ad_group","ad_group_id","campaignId","removeItem","14lqlVBr","meta.ads","adstage_referrer","68329lDBEaT","gclid","adstage_click_event_sent","some","Failed to store tracking params:","markClickEventSent","microsoft.ads","location","utm_content","adGroup","warn","store","170PpIity","linkedin.ads","utm_medium","channel","length","utm_campaign","undefined","campaign","setItem","adstage_last_click_id","381dCysBp","twitter.ads","toAttributionObject","captureFromUrl","STORAGE_KEY","utm_source","ALL_KEYS","twclid","adstage","true","liclid"];return(ae=function(){return t})()}oe[re(309)]={};const ce=se;!function(){const t=se,e=ae();for(;;)try{if(904979===parseInt(t(311))/1+parseInt(t(280))/2*(parseInt(t(333))/3)+-parseInt(t(294))/4*(parseInt(t(323))/5)+-parseInt(t(293))/6*(-parseInt(t(308))/7)+-parseInt(t(300))/8+-parseInt(t(302))/9+parseInt(t(278))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ce(336)](){const t=ce;if(typeof window===t(329))return null;const e=new URLSearchParams(window[t(318)][t(277)]),n={};let r=!1;const o=e[t(287)](t(310));if(o)try{const e=decodeURIComponent(o),i=new URLSearchParams(e);for(const e of le[t(339)]){const t=i.get(e);t&&(n[e]=t,r=!0)}i[t(287)](t(341))===t(342)&&(r=!0)}catch(e){console[t(321)]("Failed to parse adstage_referrer:",e)}for(const o of le[t(339)]){if(n[o])continue;const i=e[t(287)](o);i&&(n[o]=i,r=!0)}return r?(n[t(326)]||(n[t(312)]?n[t(326)]="google.ads":n[t(289)]?n[t(326)]=t(309):n.ttclid?n.channel="tiktok.ads":n[t(288)]?n[t(326)]=t(282):n[t(343)]?n[t(326)]=t(324):n[t(284)]?n[t(326)]=t(317):n[t(340)]&&(n.channel=t(334))),le[t(322)](n),n):null}static[ce(322)](t){const e=ce;if(typeof window!==e(329))try{const n={...le.get(),...t},r=JSON[e(279)](n);try{sessionStorage[e(331)](le[e(337)],r)}catch(t){}try{localStorage[e(331)](le[e(337)],r)}catch(t){}}catch(t){console[e(321)](e(315),t)}}static[ce(287)](){const t=ce;if(typeof window===t(329))return null;try{const e=sessionStorage?.[t(301)](le.STORAGE_KEY);if(e)return JSON.parse(e)}catch(t){}try{const e=localStorage?.[t(301)](le[t(337)]);if(e)return JSON.parse(e)}catch(t){}return null}static clear(){const t=ce;if(typeof window!==t(329)){try{sessionStorage?.[t(307)](le[t(337)])}catch(t){}try{localStorage?.removeItem(le.STORAGE_KEY)}catch(t){}}}static[ce(296)](){const t=ce,e=le.get();return null!==e&&Object.keys(e)[t(327)]>0}static hasClickId(){const t=ce,e=le[t(287)]();return!!e&&le[t(299)][t(314)](t=>e[t])}static[ce(303)](){const t=ce;if("undefined"==typeof window)return!1;const e=le[t(287)]();if(!e)return!1;const n=le.hasClickId(),r=!!e[t(326)];if(!n&&!r)return!1;const o=n?e[t(312)]||e.fbclid||e[t(297)]||e[t(288)]||e[t(343)]||e[t(284)]||e[t(340)]:(e.channel||"")+":"+(e[t(292)]||"");if(!o)return!1;return o!==sessionStorage[t(301)](t(332))&&(sessionStorage.setItem(t(332),o),!0)}static[ce(316)](){const t=ce;"undefined"!=typeof window&&sessionStorage[t(331)](t(313),"true")}static[ce(290)](){const t=ce;return typeof window!==t(329)&&sessionStorage[t(301)]("adstage_click_event_sent")===t(342)}static[ce(335)](){const t=ce,e=le.get();if(!e)return null;const n={};return e[t(312)]&&(n[t(312)]=e[t(312)]),e[t(289)]&&(n[t(289)]=e[t(289)]),e[t(297)]&&(n[t(297)]=e.ttclid),e[t(288)]&&(n[t(288)]=e[t(288)]),e.channel&&(n.channel=e[t(326)]),e[t(330)]&&(n[t(330)]=e[t(330)]),e[t(298)]&&(n[t(306)]=e[t(298)]),e[t(304)]&&(n[t(320)]=e[t(304)]),e[t(305)]&&(n[t(285)]=e[t(305)]),e[t(291)]&&(n.adCreative=e.ad_creative),e[t(286)]&&(n.creativeId=e[t(286)]),e[t(292)]&&(n[t(292)]=e[t(292)]),e[t(338)]&&(n[t(338)]=e[t(338)]),e[t(325)]&&(n[t(325)]=e[t(325)]),e[t(328)]&&(n[t(328)]=e[t(328)]),e[t(319)]&&(n[t(319)]=e[t(319)]),e[t(281)]&&(n[t(281)]=e[t(281)]),Object.keys(n)[t(327)]>0?n:null}}le[ce(337)]="adstage_tracking_params",le[ce(299)]=["gclid",ce(289),"ttclid",ce(288),"liclid","msclkid",ce(340)],le[ce(295)]=[ce(326),ce(330),ce(298),"ad_group",ce(305),ce(291),ce(286),ce(292)],le[ce(283)]=["utm_source",ce(325),ce(328),"utm_content",ce(281)],le[ce(339)]=[...le[ce(299)],...le[ce(295)],...le[ce(283)]];const de=ue;function ue(t,e){const n=pe();return(ue=function(t,e){return n[t-=276]})(t,e)}function pe(){const t=["getAttributionId","getConfig","setUserProperties","✅ Attribution registered:","❌ Failed to register attribution:","undefined","setDeviceProperty","1539658bGYuik","length","log","getUserDeviceInfo","getCurrentUserProperties","Attribution registration failed: ","statusText","❌ API Error Response:","🔑 Attribution request headers:","88823OgOTgl","get","_isReady","create","track","3967452XwIdMe","📦 Request body:","warn","33938154JAaLDl","adstage_attribution_id","registerAttribution","📊 Events module initialized","📱 User provided device info cleared","POST","sendEventToServer","8460vOXQMb","json","stringify","init","attributionId","API key not configured for event tracking.","❌ Failed to track event:","3355224WAHEAP","sendAttributionToServer","setItem","events","📡 Attribution request URL:","debug","_config","808NYHgma","🔑 Request headers:","error","getDeviceInfo","keys","setDeviceInfo","📱 Device info set:","Event tracking failed: ","getUserInfo","Event data:","📡 Request URL:","2645sVZRxe","API key not configured for attribution registration.","application/json","591735BWFIAR","text","getItem","clearDeviceInfo","trackWithAttributionId","📱 Device property set:","📊 Attribution included:","⏭️ No tracking parameters found, skipping attribution registration","Events module not initialized. Call AdStage.init() first.","getUserProperties","✅ Event tracked with attribution ID:","status","apiKey"];return(pe=function(){return t})()}!function(){const t=ue,e=pe();for(;;)try{if(754362===parseInt(t(294))/1+parseInt(t(314))/2+parseInt(t(328))/3+-parseInt(t(338))/4*(-parseInt(t(291))/5)+-parseInt(t(345))/6+-parseInt(t(323))/7*(-parseInt(t(280))/8)+-parseInt(t(331))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class he{constructor(){const t=ue;this[t(325)]=!1,this[t(279)]=null}[de(341)](t){const e=de;this._config=t,this[e(325)]=!0,t[e(278)]&&console[e(316)](e(334))}isReady(){return this[de(325)]}[de(308)](){return this[de(279)]}[de(309)](t){const e=de;oe[e(309)](t),this[e(279)]?.[e(278)]&&console[e(316)]("👤 User properties set:",t)}[de(303)](){return oe[de(318)]()}[de(285)](t){const e=de;$t.setDeviceInfo(t),this[e(279)]?.[e(278)]&&console[e(316)](e(286),t)}setDeviceProperty(t,e){const n=de;$t[n(313)](t,e),this._config?.[n(278)]&&console[n(316)](n(299),t,e)}[de(297)](){const t=de;$t[t(297)](),this._config?.[t(278)]&&console[t(316)](t(335))}getUserDeviceInfo(){return $t[de(317)]()}[de(283)](){return $t[de(283)]()}[de(288)](){return oe[de(288)]()}[de(318)](){return oe.getCurrentUserProperties()}async[de(327)](t,e){const n=de;if(this[n(325)])if(this[n(279)]?.[n(306)])try{const r=this[n(307)]();if(r){const o={eventName:t,sdkVersion:k(),device:$t[n(283)](),user:oe[n(288)](),attributionId:r,params:e||{}};return await this[n(337)](o),void(this[n(279)][n(278)]&&console[n(316)](n(304),t,r))}const o=le.toAttributionObject(),i={eventName:t,sdkVersion:k(),device:$t[n(283)](),user:oe[n(288)](),...o&&{attribution:o},params:e||{}};await this.sendEventToServer(i),this[n(279)][n(278)]&&(console[n(316)]("✅ Event tracked:",t,e),o&&console.log(n(300),o))}catch(r){console[n(282)](n(344),r),this[n(279)][n(278)]&&console[n(282)](n(289),{eventName:t,properties:e})}else console[n(330)](n(343));else console[n(330)](n(302))}async registerAttribution(t){const e=de;if(!this._isReady)return console[e(330)]("Events module not initialized. Call AdStage.init() first."),null;if(!this[e(279)]?.apiKey)return console[e(330)](e(292)),null;try{const n=le[e(324)]();if(!n||0===Object[e(284)](n)[e(315)])return this[e(279)][e(278)]&&console[e(316)](e(301)),null;const r=await this[e(346)]({deviceId:t,referrerParams:n});if(this[e(279)][e(278)]&&console.log(e(310),r),r[e(342)]){try{localStorage.setItem(e(332),r[e(342)])}catch(t){}try{sessionStorage[e(347)]("adstage_attribution_id",r[e(342)])}catch(t){}}return r}catch(t){return console[e(282)](e(311),t),null}}[de(307)](){const t=de;if(typeof window===t(312))return null;try{const e=sessionStorage[t(296)](t(332));if(e)return e}catch(t){}try{return localStorage.getItem(t(332))}catch(t){}return null}async[de(298)](t,e){return this[de(327)](t,e)}async[de(337)](t){const e=de,n={...R[e(326)](this[e(279)][e(306)]),"Content-Type":"application/json"};this[e(279)]?.debug&&(console[e(316)](e(281),n),console[e(316)](e(290),W.events[e(327)]()),console[e(316)](e(329),t));const r=await fetch(W[e(276)].track(),{method:"POST",headers:n,body:JSON[e(340)](t)});if(!r.ok){const t=await r[e(295)]();throw console.error(e(321),t),new Error(e(287)+r[e(305)]+" "+r[e(320)])}}async[de(346)](t){const e=de,n={...R[e(326)](this[e(279)].apiKey),"Content-Type":e(293)};this[e(279)]?.[e(278)]&&(console[e(316)](e(322),n),console[e(316)](e(277),W[e(276)][e(333)]()),console.log("📦 Attribution request body:",t));const r=await fetch(W[e(276)][e(333)](),{method:e(336),headers:n,body:JSON.stringify(t)});if(!r.ok){const t=await r[e(295)]();throw console.error("❌ API Error Response:",t),new Error(e(319)+r[e(305)]+" "+r.statusText)}return r[e(339)]()}}const fe=me;function ge(){const t=["❌ Error in click event auto-tracking:","debug","from","adstage_device_id","channel","init","❌ Failed to auto-track click event:","now","✅ Auto-tracked click event with tracking params:","7881KOpIUV","track","height","clear","5013160cgfMkH","reset","302fQifwV","3JXUowE","attributionId","expiresAt","hardwareConcurrency","getTimezoneOffset","warn","AdStage not initialized. Call AdStage.init() first.","undefined","toISOString","🔍 Should send click event:","viewableTracker","get","_config","8AcqUwI","2.0.0","9295092KCotIh","🌐 API endpoint configured:","toString","baseUrl","toAttributionObject","isReady","getInstance","tracking_params","server-","userAgent","ads","instance","AdStage.events accessed before initialization","location","13112759WFYCDB","campaign","setBaseUrl","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","generateDeviceId","18512ADnMUk","📊 AdStage Debug: 현재 viewable 추적 상태","charCodeAt","757955dbQvSK","random","clearAdViewable","modules","attribution_id","AdStage.config accessed before initialization","🔗 Using attributionId from URL (attribution_id):","6KDQsaa","✅ Attribution registered:","error","registerAttribution","357273cNXoBG","events","function","substring","📊 Tracking parameters captured:","🚀 AdStage SDK initialized (sync mode)","...","click","then","getConfig","getItem","_isInitialized","setItem","🎯 Sending click event after attribution registration","AdStage.ads accessed before initialization","catch","apiKey","web-","shouldSendClickEvent",")의 viewable 추적 초기화됨","log","config"];return(ge=function(){return t})()}function me(t,e){const n=ge();return(me=function(t,e){return n[t-=299]})(t,e)}!function(){const t=me,e=ge();for(;;)try{if(625358===parseInt(t(326))/1*(parseInt(t(332))/2)+-parseInt(t(333))/3*(parseInt(t(367))/4)+parseInt(t(370))/5*(parseInt(t(377))/6)+-parseInt(t(381))/7+parseInt(t(346))/8*(parseInt(t(348))/9)+-parseInt(t(330))/10+-parseInt(t(362))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ye{constructor(){const t=me;this[t(306)]=!1,this[t(345)]=null,this[t(316)]=new Zt,this[t(358)]=new Yt,this.events=new he}static[fe(322)](t){const e=fe;!ye[e(359)]&&(ye[e(359)]=new ye);const n=ye[e(359)];if(!t[e(311)])throw new Error("API key is required for AdStage initialization");n[e(345)]={timeout:3e4,debug:!1,modules:["ads",e(382),e(316)],...t},n._config[e(351)]&&(W[e(364)](n[e(345)][e(351)]),t[e(318)]&&console[e(315)](e(349),n[e(345)].baseUrl));const r=n[e(345)][e(373)]||[e(358),e(382),e(316)];for(const t of r){const r=n[t];r&&typeof r.init===e(383)&&r[e(322)](n[e(345)])}if(n[e(306)]=!0,typeof window!==e(340)){const r=le.captureFromUrl();r&&t[e(318)]&&console[e(315)](e(299),r);const o=(()=>{const t=e;try{const e=new URLSearchParams(window[t(361)].search),n=new URLSearchParams((window.location.hash||"").replace(/^#/,""));return e[t(344)]("attribution_id")||n[t(344)](t(374))}catch{return null}})();if(o)try{localStorage[e(307)]("adstage_attribution_id",o),t[e(318)]&&console.log(e(376),o)}catch(t){}const i=le[e(313)]();t[e(318)]&&(console[e(315)](e(342),i),!i&&console[e(315)]("⏭️ Skipping click event (duplicate or no click ID)"));const s=le.hasClickId(),a=!(!r||!r[e(321)]);if(!o&&r&&(s||a)){const r=(async()=>{const r=e;try{const e=n[r(366)](),o=await n[r(382)][r(380)](e);return o&&t[r(318)]&&console[r(315)](r(378),{attributionId:o.attributionId,channel:o[r(321)],campaign:o[r(363)],expiresAt:o[r(335)]}),o}catch(t){return console[r(379)]("❌ Failed to register attribution:",t),null}})();i&&r[e(303)](r=>{const o=e;try{const e=le[o(344)](),i=le.toAttributionObject();t.debug&&console[o(315)](o(308),{attributionId:r?.[o(334)],hasAttribution:!!r}),n[o(382)][o(327)](o(302),{_autoGenerated:!0,_source:o(355),_timestamp:(new Date)[o(341)](),_platform:"web"})[o(303)](()=>{const n=o;le.markClickEventSent(),t[n(318)]&&console[n(315)]("✅ Auto-tracked click event with tracking params:",{attribution:i,trackingParams:e})}).catch(t=>{const e=o;console[e(379)](e(323),t)})}catch(t){console[o(379)](o(317),t)}})}else i&&setTimeout(()=>{const r=e;try{const e=le[r(344)](),o=le[r(352)]();n[r(382)][r(327)](r(302),{_autoGenerated:!0,_source:r(355),_timestamp:(new Date).toISOString(),_platform:"web"})[r(303)](()=>{const n=r;le.markClickEventSent(),t[n(318)]&&console[n(315)](n(325),{attribution:o,trackingParams:e})})[r(310)](t=>{console[r(379)]("❌ Failed to auto-track click event:",t)})}catch(t){console[r(379)](r(317),t)}},100)}t.debug&&console[e(315)](e(300),{version:e(347),modules:r,apiKey:t[e(311)][e(384)](0,8)+e(301),mode:"development"})}static[fe(353)](){const t=fe;return ye[t(359)]?.[t(306)]||!1}static[fe(304)](){return ye.instance?._config||null}static[fe(354)](){const t=fe;if(!ye[t(359)])throw new Error(t(339));return ye[t(359)]}static get[fe(358)](){const t=fe;try{return ye[t(354)]().ads}catch(e){throw console.warn(t(309)),e}}static get[fe(382)](){const t=fe;try{return ye.getInstance()[t(382)]}catch(e){throw console[t(338)](t(360)),e}}static get[fe(316)](){const t=fe;try{return ye[t(354)]()[t(316)]}catch(e){throw console[t(338)](t(375)),e}}static[fe(331)](){const t=fe;ye[t(359)]&&(ye[t(359)][t(306)]=!1,ye[t(359)]._config=null)}generateDeviceId(){const t=fe;if(typeof window===t(340))return t(356)+Math[t(371)]()[t(350)](36)[t(384)](2,15);const e=localStorage[t(305)](t(320));if(e)return e;const n=[navigator[t(357)],navigator.language,screen.width+"x"+screen[t(328)],(new Date)[t(337)](),navigator[t(336)]||0].join("|");let r=0;for(let e=0;e<n.length;e++){r=(r<<5)-r+n[t(369)](e),r&=r}const o=t(312)+Math.abs(r)[t(350)](36)+"-"+Date[t(324)]()[t(350)](36);return localStorage[t(307)](t(320),o),o}}function ve(t,e){var n=Ie();return(ve=function(t,e){return n[t-=103]})(t,e)}function Ie(){var t=["4062IowQji","isReady","272NaWXVJ","AdStage not initialized. Call AdStage.init() first.","11134508tBVmJL","setUserProperties","299238aYBOJc","853286yzpICs","142737TvHdzc","6062922whJVxX","2YkgfIs","resolve","warn","events","2348iQlzzN","2140030lGNLhh","track","85PPhcCz"];return(Ie=function(){return t})()}function be(t,e){var n=ve;return ye.isReady()?ye[n(108)][n(111)](t,e):(console.warn("AdStage not initialized. Call AdStage.init() first."),Promise[n(106)]())}function we(t){var e=ve;ye[e(114)]()?ye[e(108)][e(118)](t):console.warn("AdStage not initialized. Call AdStage.init() first.")}function ke(){var t=ve;if(ye[t(114)]())return ye.events.getUserProperties();console[t(107)](t(116))}ye[fe(318)]={clearAllViewable:()=>{const t=fe;at[t(329)](),console.log(t(365))},clearAdViewable:(t,e)=>{const n=fe;at[n(372)](t,e),console.log("✅ AdStage Debug: 광고 "+t+"("+e+n(314))},getViewableStatus:()=>{const t=fe;console.log(t(368),{trackedCount:at[t(343)].size,trackedItems:Array[t(319)](at[t(343)])})}},function(){for(var t=ve,e=Ie();;)try{if(456514===-parseInt(t(120))/1*(-parseInt(t(105))/2)+-parseInt(t(113))/3*(parseInt(t(109))/4)+parseInt(t(112))/5*(-parseInt(t(119))/6)+-parseInt(t(103))/7*(-parseInt(t(115))/8)+-parseInt(t(104))/9+parseInt(t(110))/10+parseInt(t(117))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var Ee,xe={exports:{}},Se={},Ae={exports:{}},Ce={};Ae.exports=function(){if(Ee)return Ce;Ee=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function y(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var v=y.prototype=new m;v.constructor=y,h(v,g.prototype),v.isPureReactComponent=!0;var I=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var o,i={},s=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(s=""+n.key),n)b.call(n,o)&&!k.hasOwnProperty(o)&&(i[o]=n[o]);var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){for(var l=Array(c),d=0;d<c;d++)l[d]=arguments[d+2];i.children=l}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===i[o]&&(i[o]=c[o]);return{$$typeof:t,type:e,key:s,ref:a,props:i,_owner:w.current}}function x(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var S=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function C(n,r,o,i,s){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return s=s(c=n),n=""===i?"."+A(c,0):i,I(s)?(o="",null!=n&&(o=n.replace(S,"$&/")+"/"),C(s,r,o,"",function(t){return t})):null!=s&&(x(s)&&(s=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(s,o+(!s.key||c&&c.key===s.key?"":(""+s.key).replace(S,"$&/")+"/")+n)),r.push(s)),1;if(c=0,i=""===i?".":i+":",I(n))for(var l=0;l<n.length;l++){var d=i+A(a=n[l],l);c+=C(a,r,o,d,s)}else if(d=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof d)for(n=d.call(n),l=0;!(a=n.next()).done;)c+=C(a=a.value,r,o,d=i+A(a,l++),s);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function T(t,e,n){if(null==t)return t;var r=[],o=0;return C(t,r,"","",function(t){return e.call(n,t,o++)}),r}function _(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var R={current:null},D={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:D,ReactCurrentOwner:w};function O(){throw Error("act(...) is not supported in production builds of React.")}return Ce.Children={map:T,forEach:function(t,e,n){T(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return T(t,function(){e++}),e},toArray:function(t){return T(t,function(t){return t})||[]},only:function(t){if(!x(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Ce.Component=g,Ce.Fragment=n,Ce.Profiler=o,Ce.PureComponent=y,Ce.StrictMode=r,Ce.Suspense=c,Ce.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,Ce.act=O,Ce.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),i=e.key,s=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(s=n.ref,a=w.current),void 0!==n.key&&(i=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)b.call(n,l)&&!k.hasOwnProperty(l)&&(o[l]=void 0===n[l]&&void 0!==c?c[l]:n[l])}var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){c=Array(l);for(var d=0;d<l;d++)c[d]=arguments[d+2];o.children=c}return{$$typeof:t,type:e.type,key:i,ref:s,props:o,_owner:a}},Ce.createContext=function(t){return(t={$$typeof:s,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:i,_context:t},t.Consumer=t},Ce.createElement=E,Ce.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(t){return{$$typeof:a,render:t}},Ce.isValidElement=x,Ce.lazy=function(t){return{$$typeof:d,_payload:{_status:-1,_result:t},_init:_}},Ce.memo=function(t,e){return{$$typeof:l,type:t,compare:void 0===e?null:e}},Ce.startTransition=function(t){var e=D.transition;D.transition={};try{t()}finally{D.transition=e}},Ce.unstable_act=O,Ce.useCallback=function(t,e){return R.current.useCallback(t,e)},Ce.useContext=function(t){return R.current.useContext(t)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(t){return R.current.useDeferredValue(t)},Ce.useEffect=function(t,e){return R.current.useEffect(t,e)},Ce.useId=function(){return R.current.useId()},Ce.useImperativeHandle=function(t,e,n){return R.current.useImperativeHandle(t,e,n)},Ce.useInsertionEffect=function(t,e){return R.current.useInsertionEffect(t,e)},Ce.useLayoutEffect=function(t,e){return R.current.useLayoutEffect(t,e)},Ce.useMemo=function(t,e){return R.current.useMemo(t,e)},Ce.useReducer=function(t,e,n){return R.current.useReducer(t,e,n)},Ce.useRef=function(t){return R.current.useRef(t)},Ce.useState=function(t){return R.current.useState(t)},Ce.useSyncExternalStore=function(t,e,n){return R.current.useSyncExternalStore(t,e,n)},Ce.useTransition=function(){return R.current.useTransition()},Ce.version="18.3.1",Ce}();var Te,_e=Ae.exports;
1
+ var t,e,n,r,o,s,i,a,c,d,l;function u(t,e){var n=p();return(u=function(t,e){return n[t-=450]})(t,e)}function p(){var t=["606402NqsTqe","16RAqDPs","WEB","INTERSTITIAL","NATIVE","34QccaUY","155460toqsRe","13QpTHqf","374qXfGKZ","TABLET","12160pCPpdV","VIDEO","3606TlrsyQ","2857116dlaLwk","VIEWABLE","DESKTOP","BANNER","MOBILE","12UvTjFZ","667555OvNRND","14411fYhqHZ","1364DVINjI"];return(p=function(){return t})()}function h(){const t=["innerHeight","style","safeRemoveClass","href","removeChild","safeCreateElement","⏳ 컨테이너 대기 중: ","all","createElement","31332600qVyzxf","documentElement","getComputedStyle","3ilXRds","title","open","4653376kKBmYa","safeRemoveChild","from","safeAddEventListener","isSSR","getWindowProperty","querySelector","remove","readyState","devicePixelRatio","safeRemoveEventListener","log","번 시도)","544496kutNzO","2044458HFStfw","getViewportInfo","innerHTML","textContent","entries","waitForElements","appendChild","safeSetInnerHTML","ms 경과)","✅ 컨테이너 발견: ","waitForElement","isBrowser","✅ 컨테이너 즉시 발견: ","isDOMReady","canUseDOM","40UCrIaE","pageYOffset","ms)","safeGetComputedStyle","1893800tqdmpU","번째 시도, ","ceil","getElementById","789568DCkdCa","classList","safeQuerySelectorAll","pow","add","undefined","safeAddClass","40686icyNbk","getDocumentProperty",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"location","scrollTop","⏳ 컨테이너 대기 시작: ","safeAppendChild","DOM을 사용할 수 없는 환경입니다.","ms (","pageXOffset"];return(h=function(){return t})()}!function(){for(var t=u,e=p();;)try{if(603634===-parseInt(t(462))/1*(parseInt(t(469))/2)+-parseInt(t(454))/3*(-parseInt(t(463))/4)+-parseInt(t(452))/5+parseInt(t(460))/6*(-parseInt(t(461))/7)+parseInt(t(465))/8*(-parseInt(t(464))/9)+parseInt(t(470))/10*(parseInt(t(450))/11)+parseInt(t(455))/12*(parseInt(t(471))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(e=t||(t={}))[(n=u)(458)]=n(458),e.POPUP="POPUP",e[n(467)]=n(467),e[n(468)]=n(468),e[n(453)]=n(453),e.TEXT="TEXT",(o=r||(r={}))[(s=u)(466)]="WEB",o[s(459)]=s(459),(a=i||(i={}))[u(456)]="VIEWABLE",a.CLICK="CLICK",(d=c||(c={}))[(l=u)(457)]=l(457),d[l(459)]=l(459),d[l(451)]=l(451);const f=g;function g(t,e){const n=h();return(g=function(t,e){return n[t-=292]})(t,e)}!function(){const t=g,e=h();for(;;)try{if(623513===-parseInt(t(336))/1+-parseInt(t(337))/2*(parseInt(t(320))/3)+-parseInt(t(356))/4+parseInt(t(352))/5*(-parseInt(t(298))/6)+-parseInt(t(323))/7+-parseInt(t(360))/8+parseInt(t(317))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class m{static[f(348)](){const t=f;return typeof window!==t(296)&&typeof document!==t(296)}static[f(327)](){return!this[f(348)]()}static[f(351)](){return this[f(348)]()&&void 0!==document.readyState}static safeGetElementById(t){const e=f;return this[e(351)]()?document[e(359)](t):null}static safeQuerySelector(t){const e=f;return this.canUseDOM()?document[e(329)](t):null}static[f(293)](t){const e=f;return this.canUseDOM()?Array[e(325)](document.querySelectorAll(t)):[]}static[f(313)](t){const e=f;return this.canUseDOM()?document[e(316)](t):null}static safeAddEventListener(t,e,n,r){this[f(351)]()&&t&&t.addEventListener(e,n,r)}static[f(333)](t,e,n,r){this.canUseDOM()&&t&&t.removeEventListener(e,n,r)}static[f(328)](t,e){return this[f(348)]()?window[t]??e:e}static[f(299)](t,e){return this[f(351)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const r=f;return this[r(348)]()?window[r(322)](t,e,n):null}static[f(355)](t){const e=f;return this[e(348)]()&&t?window[e(319)](t):null}static[f(350)](){const t=f;return!!this[t(351)]()&&"loading"!==document[t(331)]}static waitForDOM(){return new Promise(t=>{const e=g;this[e(351)]()?this.isDOMReady()?t():this[e(326)](document,"DOMContentLoaded",()=>t()):t()})}static safeApplyStyles(t,e){const n=f;this[n(351)]()&&t&&Object[n(341)](e).forEach(([e,r])=>{t[n(309)].setProperty(e,r)})}static[f(297)](t,e){const n=f;this[n(351)]()&&t&&t[n(292)][n(295)](e)}static[f(310)](t,e){const n=f;this.canUseDOM()&&t&&t[n(292)][n(330)](e)}static safeSetTextContent(t,e){const n=f;this.canUseDOM()&&t&&(t[n(340)]=e)}static[f(344)](t,e){const n=f;this.canUseDOM()&&t&&(t[n(339)]=e)}static[f(304)](t,e){const n=f;this[n(351)]()&&t&&e&&t[n(343)](e)}static[f(324)](t,e){const n=f;this[n(351)]()&&t&&e&&t[n(312)](e)}static getPageInfo(){const t=f;return{url:this[t(328)](t(301),{href:""})[t(311)],title:this[t(299)](t(321),""),referrer:this[t(299)]("referrer","")}}static[f(338)](){const t=f;return{width:this[t(328)]("innerWidth",0),height:this.getWindowProperty(t(308),0),pixelRatio:this.getWindowProperty(t(332),1)}}static getScrollInfo(){const t=f;return{scrollTop:this.canUseDOM()?window[t(353)]||document[t(318)][t(302)]:0,scrollLeft:this[t(328)](t(307),0)}}static async waitForElement(t,e={}){const n=f,{timeout:r=3e3,retryInterval:o=100,debug:s=!1}=e;if(!this[n(351)]())throw new Error(n(305));const i=document[n(359)](t);return i?(s&&console.log(n(349)+t),i):(s&&console[n(334)](n(303)+t+" (최대 "+r+n(354)),new Promise((e,i)=>{const a=n;let c=0;const d=Math[a(358)](r/o),l=()=>{const n=a;c++;const u=document[n(359)](t);if(u)return s&&console[n(334)](n(346)+t+" ("+c+n(357)+c*o+n(345)),void e(u);if(c>=d){const e='❌ 컨테이너를 찾을 수 없습니다: "'+t+n(300)+t+'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: '+r+n(306)+c+n(335);return s&&console.error(e),void i(new Error(e))}s&&c%10==0&&console[n(334)](n(314)+t+" ("+c+"/"+d+")");const p=Math.min(o*Math[n(294)](1.2,c),500);setTimeout(l,p)};setTimeout(l,o)}))}static async[f(342)](t,e={}){const n=f,r=t.map(t=>this[n(347)](t,e));return Promise[n(315)](r)}}const y=b;!function(){const t=b,e=w();for(;;)try{if(767900===parseInt(t(302))/1+parseInt(t(292))/2+-parseInt(t(298))/3+-parseInt(t(294))/4*(-parseInt(t(291))/5)+parseInt(t(301))/6+parseInt(t(297))/7+-parseInt(t(299))/8*(parseInt(t(290))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const v=y(289);function I(){return v}function b(t,e){const n=w();return(b=function(t,e){return n[t-=289]})(t,e)}function w(){const t=["23459432QqYMDZ","undefined","4820322cipgcS","1304705WhjKxJ","3.0.15","9YDNKwV","25wlBaZv","2904468CqFWnh","userAgent","224212PiLAKk","AdStageSDK/"," AdStageSDK/","4548936UBWlbH","2370330BLFaTi"];return(w=function(){return t})()}const k=S;function E(){const t=["isMobile","8oDYZzG","1075vSTAec","ssr_device_","isBrowser","session_","language","2988020TCltmj","setItem","timeZone",'[data-adstage-slot-id="',"getViewportInfo","1189764iBpCmW","web","getItem","top","safeQuerySelector","generateSessionId","random","device_","scrollTop","colorDepth","height","platform","DateTimeFormat","529220wksjGk","SSR","resolvedOptions","round","870576rfLVPF","17754aBiULT","ssr_session_","getPlatform",",y:","now","getSlotPosition","generateDeviceId","adstage_session_id","connection","safeGetElementById","toLowerCase","24tgzEjs","243159hxoDhm","adstage_device_id","3280445KkolKC","getScrollInfo","ios","1.0.0","effectiveType","userAgent","width","toString","android","test","unknown"];return(E=function(){return t})()}function S(t,e){const n=E();return(S=function(t,e){return n[t-=205]})(t,e)}!function(){const t=S,e=E();for(;;)try{if(482601===-parseInt(t(246))/1+parseInt(t(218))/2*(parseInt(t(259))/3)+parseInt(t(224))/4+-parseInt(t(219))/5*(parseInt(t(247))/6)+parseInt(t(206))/7+-parseInt(t(258))/8*(-parseInt(t(229))/9)+parseInt(t(242))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class x{static[k(253)](){const t=k;if(!m[t(221)]())return t(220)+Date[t(251)]();const e=localStorage[t(231)]("adstage_device_id");if(e)return e;const n=t(236)+Math[t(235)]().toString(36).substr(2,9)+"_"+Date[t(251)]();return localStorage[t(225)](t(205),n),n}static generateSessionId(){const t=k;if(!m.isBrowser())return t(248)+Date.now();const e=sessionStorage[t(231)](t(254));if(e)return e;const n=t(222)+Math[t(235)]()[t(213)](36).substr(2,9)+"_"+Date[t(251)]();return sessionStorage[t(225)](t(254),n),n}static[k(217)](){const t=k;return!!m[t(221)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(215)](navigator[t(211)])}static[k(249)](){const t=k;if(!m[t(221)]())return t(230);const e=navigator[t(211)][t(257)]();return/iphone|ipad|ipod/[t(215)](e)?t(208):/android/[t(215)](e)?t(214):x.isMobile()?t(230):"desktop"}static collectDeviceInfo(){const t=k,e=m[t(228)]();return{deviceId:x[t(253)](),sessionId:x[t(234)](),osVersion:m[t(221)]()?navigator[t(240)]:t(243),deviceModel:m[t(221)]()?navigator[t(240)]:t(243),appVersion:t(209),sdkVersion:I(),language:m[t(221)]()&&navigator[t(223)]||"ko",country:"KR",ipAddress:"",userAgent:m[t(221)]()?navigator[t(211)]:t(243),timezone:m[t(221)]()?Intl[t(241)]()[t(244)]()[t(226)]:"UTC",viewportWidth:e[t(212)],viewportHeight:e[t(239)],screenWidth:m[t(221)]()?screen.width:0,screenHeight:m[t(221)]()?screen[t(239)]:0,colorDepth:m[t(221)]()?screen[t(238)]:24,pixelRatio:e.pixelRatio,connectionType:m[t(221)]()?navigator[t(255)]?.[t(210)]||"unknown":t(216),platform:x[t(249)]()}}static[k(252)](t){const e=k;let n=m[e(256)](t);if(!n){const r=m[e(233)]("#"+t+" .adstage-slider-wrapper");r&&(n=r)}if(!n&&(n=m[e(233)](e(227)+t+'"]')),!n)return e(216);const r=n.getBoundingClientRect(),o=m[e(207)]();return"x:"+Math[e(245)](r.left)+e(250)+Math[e(245)](r[e(232)]+o[e(237)])}}const A=C;function C(t,e){const n=T();return(C=function(t,e){return n[t-=256]})(t,e)}function T(){const t=["API key is required","createForEvents","22176uCKEAA","application/json","23488543Mzsota","8QZecmM","1504490uENdHf","1744oTteBw","45qgZmmG","2910gdGoDW","11190tcbCXo","22umadIW","1371855EiCkmH","contentType","9874gpMtTR","create","10552465rFrSbs","24efBBYf"];return(T=function(){return t})()}!function(){const t=C,e=T();for(;;)try{if(679948===parseInt(t(261))/1*(-parseInt(t(258))/2)+-parseInt(t(259))/3*(-parseInt(t(270))/4)+parseInt(t(256))/5*(parseInt(t(257))/6)+-parseInt(t(267))/7*(-parseInt(t(272))/8)+-parseInt(t(273))/9*(-parseInt(t(271))/10)+parseInt(t(263))/11+parseInt(t(264))/12*(-parseInt(t(269))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class _{static create(t,e){const n=C;if(!t)throw new Error(n(265));return{"x-api-key":t,"Content-Type":e?.[n(260)]||n(268)}}static[A(266)](t,e){return _[A(262)](t)}}const R=L;function D(){const t=["deviceId",". Skipping event tracking to prevent incorrect adType.","platform","adType","number","baseUrl","getElementById","60orxSIU","stringify","length","debug","text","2111656XFfibT","20UMOqhB","588495MgMSBR"," event for ad ","POST","title","referrer","getSlotPosition","url","/advertisements/events/","replace","warn","⚠️ DOM element not found for slotId: ","statusText","1450757ukoxrd","14vcbDQq","parseNumericValue","🚀 AdvertisementEventTracker: Processing ","800376pgklvC","1068233raGpDi","querySelector"," for ad ","🔍 Debug info:","...","❌ Failed to track advertisement event:","slots","VIEWABLE"," - "," in slot ","height","23799816QLQnSG","9YcXfzr","). Skipping event tracking.","6QKBUPD","width","NOT_SET","API request failed: ","collectDeviceInfo","getPageInfo","apiKey","2910936JUBzzB","string","⚠️ Slot not found for slotId: ","🚀 Sending advertisement event: ","substring","containerId","log","now","createForEvents"];return(D=function(){return t})()}function L(t,e){const n=D();return(L=function(t,e){return n[t-=167]})(t,e)}!function(){const t=L,e=D();for(;;)try{if(618237===-parseInt(t(207))/1+-parseInt(t(221))/2*(parseInt(t(206))/3)+parseInt(t(189))/4*(parseInt(t(190))/5)+parseInt(t(167))/6*(parseInt(t(203))/7)+parseInt(t(188))/8*(-parseInt(t(219))/9)+parseInt(t(183))/10*(-parseInt(t(202))/11)+parseInt(t(218))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class U{constructor(t,e,n,r){const o=L;this.baseUrl=t,this[o(227)]=e,this.debug=n,this[o(213)]=r}async trackAdvertisementEvent(t,e,n){const r=L;try{this[r(186)]&&console[r(173)](r(205)+n+r(191)+t+r(216)+e);const o=this[r(213)].get(e);if(!o)return void(this[r(186)]&&console.warn(r(169)+e+r(177)));if(!(document[r(182)](o[r(172)])||document[r(208)]('[data-adstage-slot-id="'+e+'"]')))return void(this[r(186)]&&console[r(199)](r(200)+e+" (containerId: "+o.containerId+r(220)));const s=x[r(225)](),a={adType:o[r(179)],platform:s[r(178)],deviceId:s[r(176)],deviceInfo:s,pageUrl:m[r(226)]()[r(196)],pageTitle:m.getPageInfo()[r(193)],referrer:m[r(226)]()[r(194)],slotId:e,slotPosition:x[r(195)](o.containerId),slotWidth:U[r(204)](o[r(222)]),slotHeight:U[r(204)](o[r(217)]),sessionId:s.sessionId,pageLoadTime:performance[r(174)](),metadata:{eventType:n,sdkVersion:I(),timestamp:Date.now()},...n===i[r(214)]&&{isViewable:!0,iabCompliant:!0}},c=this[r(181)]+r(197)+t+"/"+n,d=_[r(175)](this[r(227)],a);this[r(186)]&&(console[r(173)](r(170)+n+r(209)+t,{url:c,headers:d,eventData:a}),console[r(173)]("🌐 Full API call details:",{method:r(192),url:c,hasApiKey:!!this[r(227)],bodySize:JSON[r(184)](a)[r(185)]}));const l=await fetch(c,{method:"POST",headers:d,body:JSON[r(184)](a)});if(this[r(186)]&&console[r(173)]("📡 API Response Status: "+l.status+" "+l[r(201)],{url:c,ok:l.ok}),!l.ok){const t=await l[r(187)]();throw new Error(r(224)+l.status+" "+l[r(201)]+r(215)+t)}this[r(186)]&&console[r(173)]("✅ Successfully tracked advertisement event: "+n+r(209)+t)}catch(o){console.error(r(212),o),console.error(r(210),{baseUrl:this[r(181)],apiKey:this[r(227)]?this[r(227)][r(171)](0,8)+r(211):r(223),url:this[r(181)]+r(197)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[R(204)](t){const e=R;if(typeof t===e(180))return t;if(typeof t===e(168)){const n=parseFloat(t[e(198)](/px$/,""));return isNaN(n)?0:n}return 0}}function P(t,e){var n=O();return(P=function(t,e){return n[t-=481]})(t,e)}var B=P;function O(){var t=["destroy","warn","onViewableCallback","28ETnKjO","visibilityState","16156ViOtAm","30LDaOJW","forEach","initIntersectionObserver","disconnect","3604025axMtIK","isViewableTriggered","1462766JnViHm","IntersectionObserver","696064yfQTOm","7459224GSWtvA","0px","2ZETapW","22570020DCHjkd","isDocumentVisible","2031580jMFabK","handleIntersection","observer","hidden","18JLZeln","observe"];return(O=function(){return t})()}!function(){for(var t=P,e=O();;)try{if(836619===parseInt(t(483))/1*(parseInt(t(488))/2)+parseInt(t(503))/3*(parseInt(t(502))/4)+-parseInt(t(481))/5+-parseInt(t(486))/6+parseInt(t(500))/7*(-parseInt(t(485))/8)+-parseInt(t(495))/9*(parseInt(t(491))/10)+parseInt(t(489))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t,e){var n=P;this[n(493)]=null,this.isViewableTriggered=!1,this.element=t,this[n(499)]=e,this[n(505)]()}[B(505)](){var t=B;t(484)in window?(this[t(493)]=new IntersectionObserver(e=>this[t(492)](e),{threshold:.5,rootMargin:t(487)}),this[t(493)][t(496)](this.element)):console[t(498)]("IntersectionObserver not supported, viewability tracking disabled")}[B(492)](t){var e=B;t[e(504)](t=>{var n=e;t.intersectionRatio>=.5&&this[n(490)]()&&!this.isViewableTriggered&&(this[n(482)]=!0,this[n(499)]&&this.onViewableCallback())})}isDocumentVisible(){var t=B;return!document[t(494)]&&"visible"===document[t(501)]}[B(497)](){var t=B;this.observer&&(this[t(493)][t(506)](),this[t(493)]=null)}}const z=V;!function(){const t=V,e=H();for(;;)try{if(572372===-parseInt(t(141))/1*(-parseInt(t(128))/2)+parseInt(t(138))/3+-parseInt(t(136))/4+parseInt(t(129))/5*(parseInt(t(143))/6)+parseInt(t(126))/7+parseInt(t(133))/8+parseInt(t(148))/9*(-parseInt(t(127))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const N={production:z(146),beta:z(144)};function V(t,e){const n=H();return(V=function(t,e){return n[t-=124]})(t,e)}z(140);const j={advertisements:{list:z(124),detail:z(130),events:z(147)},events:{track:z(139),registerAttribution:"/events/register/attribution"}};class F{constructor(t){const e=z;this[e(135)]={list:()=>""+this[e(137)]+j[e(135)].list,detail:t=>""+this[e(137)]+j[e(135)][e(145)]+"/"+t,events:(t,e)=>""+this.baseUrl+j.advertisements.events+"/"+t+"/"+e},this[e(125)]={track:()=>""+this[e(137)]+j[e(125)].track,registerAttribution:()=>""+this[e(137)]+j.events[e(131)]},this[e(137)]=t||N[e(140)]}[z(134)](t){this[z(137)]=t}[z(132)](){return this[z(137)]}[z(149)](t){const e=z;return""+this[e(137)]+(t[e(142)]("/")?t:"/"+t)}}const K=new F;function H(){const t=["production","9055TFZyMq","startsWith","3545898eWguCH","https://beta-api.adstage.app","detail","https://api.adstage.app","/advertisements/events","3076695vyQEpy","custom","/advertisements/list","events","7798343ZmBrja","50KdVdqy","6vKMfnz","5uXFIpS","/advertisements","registerAttribution","getBaseUrl","6178160hbowfm","setBaseUrl","advertisements","2312824xPPmpC","baseUrl","1066158sKIBsX","/events/track"];return(H=function(){return t})()}var W=q;function Y(){var t=["7370LzaQlk","48013lNbLKV","trackInitialSlideViewable","8201584IJYvwj","462etBTiX","4unFXZZ"," (index: 0) in slot: ","trackSlideViewable","🎯 Triggering initial VIEWABLE event: ad ","215055sFwxEr","1797850viVrmt","4446425RsHlpa",") in slot: ","327654kcRdZL","10035DKNbBF","_id","VIEWABLE"];return(Y=function(){return t})()}function q(t,e){var n=Y();return(q=function(t,e){return n[t-=357]})(t,e)}!function(){for(var t=q,e=Y();;)try{if(571029===parseInt(t(358))/1+-parseInt(t(372))/2+-parseInt(t(371))/3+-parseInt(t(367))/4*(-parseInt(t(373))/5)+parseInt(t(366))/6*(parseInt(t(363))/7)+-parseInt(t(365))/8+parseInt(t(359))/9*(parseInt(t(362))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class G{static[W(369)](t,e,n,r,o=!1){var s=W;o&&console.log("🎯 Triggering VIEWABLE event for slide change: ad "+t[s(360)]+" (index: "+n+s(357)+e.id),r(t._id,e.id,i[s(361)])}static[W(364)](t,e,n,r=!1){var o=W;r&&console.log(o(370)+t._id+o(368)+e.id),n(t[o(360)],e.id,i[o(361)])}}const Z=J;function J(t,e){const n=X();return(J=function(t,e){return n[t-=278]})(t,e)}function X(){const t=["_id","addEventListener","557326PVVrOF","addClickEventForRenderer","toLowerCase","3152886LFSdLy","forEach","click","isClickable","🔗 ","addClickEvent","adType","CLICK","1387408jbyCOe"," ad clicked: ","pointer","cursor","style","linkUrl"," -> ","14tuSrcg","551160cXRVmt","log","3464656xTVjhb","336825jVdbef","stopPropagation","preventDefault","open","733518donhZR","_blank"];return(X=function(){return t})()}!function(){const t=J,e=X();for(;;)try{if(266919===parseInt(t(284))/1+parseInt(t(292))/2+-parseInt(t(288))/3+parseInt(t(303))/4+-parseInt(t(281))/5+parseInt(t(295))/6+parseInt(t(280))/7*(-parseInt(t(283))/8))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Q{static[Z(300)](t,e,n,r,o=!1,s){const a=Z;e[a(278)]&&(t[a(307)].cursor=a(305),t[a(291)](a(297),t=>{const c=a;if(t.preventDefault(),t[c(285)](),r&&r(e[c(290)],n.id,i[c(302)]),window[c(287)](e[c(278)],c(289)),o){const t=s||String(n.adType)[c(294)]();console[c(282)](c(299)+t+c(304)+e[c(290)]+c(279)+e[c(278)])}}))}static[Z(293)](t,e,n,r,o=!1,s){const a=Z;e[a(278)]&&(t[a(307)][a(306)]="pointer",t[a(291)]("click",t=>{const c=a;t[c(286)](),t[c(285)]();if(r()(e._id,n.id,i[c(302)]),window[c(287)](e.linkUrl,c(289)),o){const t=s||String(n[c(301)])[c(294)]();console[c(282)]("🔗 "+t+" ad clicked: "+e._id+" -> "+e[c(278)])}}))}static addClickEventForSlider(t,e,n,r,o=!1,s){this[Z(300)](t,e,n,r,o,s)}static[Z(298)](t){return Boolean(t[Z(278)])}static addClickEventsBatch(t,e,n,r,o=!1,s){const i=Z;t[i(296)]((t,a)=>{const c=i,d=e[a];d&&this[c(300)](t,d,n,r,o,s)})}}const $=et;function tt(){const t=["toLowerCase","transparent","245155EfsVfl","textContent","Text Ad","div","14ujIZNn","objectFit","createSliderContainer","width","9cRddhE","auto","none","abs","touchend","preventDefault","hidden","white","1008432QvmAsq","borderColor","cssText","getBoundingClientRect","background","includes","img","autoSlideInterval","backgroundColor","clientX","12jZxhqs","1px solid #666","normal","forEach","fontSize","transform 0.4s ease-out","\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 ","padding","body","inline-block","className","color","video","entries","flex","cover","3769504seNqgt","mouseenter","0.7","adType","addTouchSupport","VIDEO","#000","50px","mouseleave","8px","setProperty","1px dashed #ccc","trackSlideViewable"," Ad","createSimpleAdElement","imageUrl","add","display","transform","querySelectorAll","removeChild","_id","src","data-adstage-slot-id","addEventListener","\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 ","100px","every","center","3503240iloAYP","25304VSsjnb","adstage-slide","videoUrl","adstage-dot","opacity","#666666","5LqAjzl","17068942cYSHGa","#f9f9f9","createElement","adstage-ad adstage-","data-adstage-ad-id","TEXT","string","classList","setAttribute","249eTWTvQ","#cccccc",".adstage-dot","100%","96326CHmjHP","adstage-slider-wrapper","overflow","length","Banner Ad","transition","contains","14px","style","border","height","active","children","translateX(-","appendChild","BANNER","createMinimalDotIndicator","addClickEventForSlider"];return(tt=function(){return t})()}function et(t,e){const n=tt();return(et=function(t,e){return n[t-=356]})(t,e)}!function(){const t=et,e=tt();for(;;)try{if(279810===parseInt(t(464))/1*(-parseInt(t(366))/2)+parseInt(t(362))/3*(-parseInt(t(458))/4)+-parseInt(t(386))/5+parseInt(t(402))/6*(-parseInt(t(390))/7)+-parseInt(t(428))/8*(parseInt(t(394))/9)+parseInt(t(457))/10+-parseInt(t(465))/11*(-parseInt(t(412))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class nt{static[$(442)](e,n){const r=$,o=document.createElement(r(389));switch(o[r(422)]=r(356)+String(e[r(431)]).toLowerCase(),o[r(361)](r(357),n[r(449)]),o[r(361)](r(451),e.id),o.style[r(445)]="block",o[r(374)].width="100%",o[r(374)].height=r(395),e[r(431)]){case t[r(381)]:if(n[r(443)]){const t=document[r(467)](r(408));t[r(450)]=n[r(443)],t[r(374)].width="100%",t.style[r(376)]=r(395),t[r(374)][r(391)]=r(427),o[r(380)](t)}else o[r(374)][r(376)]="100px",o[r(374)][r(410)]="#f0f0f0",o[r(374)][r(375)]=r(439),o.textContent=r(370);break;case t[r(433)]:if(n[r(460)]){const t=document[r(467)](r(424));t[r(450)]=n.videoUrl,t[r(374)][r(393)]=r(365),t.style.height=r(395),o[r(380)](t)}else o[r(374)][r(376)]="200px",o[r(374)][r(410)]=r(434),o.style[r(375)]=r(413),o[r(387)]="Video Ad",o.style[r(423)]=r(401);break;case t[r(358)]:if(n[r(387)]){const t=document.createElement(r(389));t.textContent=n[r(387)]||"",t[r(374)][r(419)]=r(437),t.style[r(416)]=r(373),o[r(380)](t)}else o[r(374)].height=r(435),o[r(374)].padding=r(437),o[r(387)]=r(388);break;default:o[r(374)][r(376)]=r(454),o[r(374)][r(375)]="1px dashed #ccc",o[r(374)][r(410)]=r(466),o.textContent=e[r(431)]+r(441)}return o}static[$(392)](e,n,r,o,s=!1){const i=$,a=document[i(467)]("div");a[i(422)]=i(367);const c={position:"relative",overflow:i(400)};if(e[i(393)]&&0!==e[i(393)]){let t;t=typeof e[i(393)]===i(359)&&(e[i(393)][i(407)]("px")||e.width[i(407)]("%"))?e.width:e[i(393)]+"px",c.width=t,c[i(445)]=i(421)}else c.display=i(421);if(e[i(376)]&&0!==e[i(376)]){const t=typeof e[i(376)]===i(359)?e[i(376)]:e.height+"px";c.height=t}Object[i(425)](c).forEach(([t,e])=>{const n=i;a.style[n(438)](t,e)});const d=!e[i(393)]||0===e[i(393)],l=!e[i(376)]||0===e[i(376)];if(d||l){const t=document[i(467)]("div");if(t.style[i(404)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&e.width){let n;n=typeof e[i(393)]===i(359)&&(e[i(393)][i(407)]("px")||e[i(393)][i(407)]("%"))?e.width:e[i(393)]+"px",t[i(374)][i(393)]=n,t[i(374)].whiteSpace=i(414)}document[i(420)][i(380)](t);let r=0,o=0;n[i(415)](n=>{const s=i,a=this[s(442)](e,n);t[s(380)](a);const c=a[s(405)]();c.width>r&&(r=c[s(393)]),c[s(376)]>o&&(o=c[s(376)]),t[s(448)](a)}),d&&r>0&&(a[i(374)][i(393)]=r+"px",c[i(393)]=r+"px"),l&&o>0&&(a.style[i(376)]=o+"px",c[i(376)]=o+"px"),document[i(420)][i(448)](t)}const u=[...n,n[0]],p=document[i(467)](i(389));p[i(422)]="adstage-slide-container";const h={display:i(426),transition:i(417),width:100*u[i(369)]+"%"};e[i(376)]&&0!==e[i(376)]&&(h[i(376)]="100%"),Object.entries(h)[i(415)](([t,e])=>{const n=i;p[n(374)][n(438)](t,e)}),u[i(415)]((t,n)=>{const r=i,a=document[r(467)](r(389));a[r(422)]=r(459);const c={width:100/u.length+"%","flex-shrink":"0",display:"flex","align-items":r(456),"justify-content":r(456)};e[r(376)]&&0!==e.height&&(c[r(376)]=r(365)),Object[r(425)](c)[r(415)](([t,e])=>{const n=r;a[n(374)][n(438)](t,e)});const d=this.createSimpleAdElement(e,t);Q[r(383)](d,t,e,o,s,String(e[r(431)])[r(384)]()),a[r(380)](d),p.appendChild(a)});const f=n[i(455)](e=>e.adType===t[i(358)])?null:this.createMinimalDotIndicator(n[i(369)]);let g=0;const m=n[i(369)],y=1e3*(r?.[i(409)]||3),v=(t,r=!1)=>{const a=i;g=t,p[a(374)][a(371)]=a(r?396:417),p[a(374)][a(446)]=a(379)+100/u[a(369)]*g+"%)";const c=g===m?0:g;if(f){f[a(447)](a(364))[a(415)]((t,e)=>{const n=a,r=t;e===c?(r.classList[n(444)](n(377)),r[n(374)].background="#666666",r[n(374)][n(403)]=n(463),r[n(374)].opacity="1"):(r[n(360)].remove(n(377)),r[n(374)][n(406)]=n(385),r[n(374)][n(403)]=n(363),r[n(374)].opacity=n(430))})}G[a(440)](n[c],e,c,o,s)},I=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[i(447)](i(364))[i(415)]((t,e)=>{t[i(452)]("click",()=>v(e))})}let b=setInterval(()=>{v(g+1),I()},y);return a[i(452)](i(429),()=>{clearInterval(b)}),a[i(452)](i(436),()=>{b=setInterval(()=>{v(g+1),I()},y)}),this[i(432)](p,v,()=>g,m,I),a.appendChild(p),f&&a[i(380)](f),v(0),(!e[i(393)]||0===e[i(393)])&&setTimeout(()=>{const t=i,n=p.children[0];if(n){const r=n[t(378)][0];if(r){const n=r[t(405)]();a[t(374)][t(393)]=n[t(393)]+"px",(!e[t(376)]||0===e.height)&&(a.style[t(376)]=n[t(376)]+"px"),a[t(374)][t(368)]=t(400)}}},10),a}static[$(382)](t){const e=$,n=document[e(467)](e(389));n[e(422)]="adstage-dots",n[e(374)][e(404)]=e(418);for(let r=0;r<t;r++){const t=document.createElement("button");t[e(422)]=e(461),t[e(374)].cssText=e(453),t[e(452)](e(429),()=>{const n=e;!t[n(360)][n(372)]("active")&&(t[n(374)][n(403)]="#999999",t[n(374)][n(462)]="0.9")}),t[e(452)](e(436),()=>{const n=e;!t[n(360)].contains("active")&&(t[n(374)][n(403)]="#cccccc",t[n(374)][n(462)]=n(430))}),n[e(380)](t)}return n}static addTouchSupport(t,e,n,r,o){const s=$;let i=0,a=!1;t[s(452)]("touchstart",t=>{const e=s;i=t.touches[0][e(411)],a=!0}),t.addEventListener("touchmove",t=>{a&&t[s(399)]()}),t.addEventListener(s(398),t=>{const c=s;if(!a)return;a=!1;const d=t.changedTouches[0][c(411)],l=i-d;if(Math[c(397)](l)>50){const t=n();if(l>0){e(t+1),o&&o()}else{e(t>0?t-1:r-1)}}})}}const rt=st;function ot(){const t=["viewableTracker","7498632QbpMsb","clear","12788545eUdFGc","752615aBZpoc","34642xjuJnT","495EhUBTk","2691064iucuxN","add","2010468BgLDuu","12080cObcZl","has","Duplicate viewable blocked for ad ","14PGWHlE","87VJgyAl","12VcJkEn"," in slot ","log"];return(ot=function(){return t})()}function st(t,e){const n=ot();return(st=function(t,e){return n[t-=399]})(t,e)}!function(){const t=st,e=ot();for(;;)try{if(822611===-parseInt(t(409))/1*(-parseInt(t(400))/2)+parseInt(t(404))/3+-parseInt(t(410))/4*(-parseInt(t(399))/5)+-parseInt(t(414))/6+parseInt(t(408))/7*(parseInt(t(402))/8)+parseInt(t(401))/9*(-parseInt(t(405))/10)+-parseInt(t(416))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static isDuplicateViewable(t,e,n=!1){const r=st,o=t+"_"+e;return it[r(413)][r(406)](o)?(n&&console[r(412)](r(407)+t+r(411)+e),!0):(it[r(413)][r(403)](o),n&&console[r(412)]("✅ New viewable recorded for ad "+t+r(411)+e),!1)}static[rt(415)](){const t=rt;it[t(413)][t(415)]()}static clearAdViewable(t,e){const n=t+"_"+e;it[rt(413)].delete(n)}}it.viewableTracker=new Set;const at=ct;function ct(t,e){const n=dt();return(ct=function(t,e){return n[t-=239]})(t,e)}function dt(){const t=["VIEWABLE","unknown","60HThRwm","style","contains","innerHTML",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"4px","generic","adstage-official","none","containerId","advertisementEventTracker","rgba(231, 76, 60, 0.1)","monospace","center","📏 Using 100% height (container: ","adstage-slot","toLowerCase","querySelector","data-adstage-empty","closest","appendChild","getAttribute","6px",".adstage-slot","77PQnWHT","cssText","⚠️ ","rgba(0, 0, 0, 0.02)"," ad...</span>","11px","flex"," for ","4PFVTXU","display","px)",'[class*="banner"]',"data-adstage-container","trackAdvertisementEvent"," slot: ","getElementById","adstage-slot adstage-","string","log","div","borderRadius","calculateAdSize","height",'[data-adstage-container="true"]'," container collapsed (","978528pRvMAa"," x ","104136bAIXLw","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","\n 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 ","opacity","📏 Using default height ","backgroundColor","getContainerHeight"," in slot ","getDefaultHeight","data-adstage-type","⚠️ AdvertisementEventTracker not available for ",'[class*="container"]',"data-adstage-slot","minimal","359434UcdKKe","📦 Placeholder created for ","transparent","advertisement","debug","createElement","100%","justifyContent",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>','div[style*="height"]',".adstage-","createEventTrackingCallback","classList","createPlaceholder","true"," container: ","fontSize","3627SzXuvl","hasAttribute","getComputedStyle","placeholderMode","warn","auto","2px dashed #e74c3c",'[class*="ad"]',"color"," event for ad ","3334672mdjAXr","alignItems","🚫 Duplicate viewable blocked for ad ","minHeight","applyPlaceholderStyle","block","invisible","180813ZTmBwW","error","border","1px solid rgba(0, 0, 0, 0.08)","706770yeuNtT","adstage-class","adType","width","parentElement","📊 Advertisement event tracked: ","#e74c3c","🔄 Starting advertisement event tracking: "," for ad ","filter","isDuplicateViewable","setAttribute","adstage-slot adstage-empty adstage-","1dHYrZc","1px dashed #ccc"];return(dt=function(){return t})()}!function(){const t=ct,e=dt();for(;;)try{if(104175===parseInt(t(276))/1*(parseInt(t(345))/2)+-parseInt(t(259))/3*(-parseInt(t(312))/4)+-parseInt(t(263))/5+parseInt(t(329))/6+-parseInt(t(304))/7*(-parseInt(t(331))/8)+-parseInt(t(242))/9*(-parseInt(t(280))/10)+-parseInt(t(252))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class lt{constructor(t,e=!1,n){const r=ct;this[r(265)]=t,this.debug=e,this[r(290)]=n||null}[at(358)](t,e,n,r){const o=at,s=document[o(350)](o(323));s.id=e,s.className=o(320)+String(this[o(265)])[o(296)](),s.setAttribute("data-adstage-container","true"),s.setAttribute(o(340),String(this[o(265)])),s.setAttribute(o(343),e);const{width:i,height:a}=this.calculateAdSize(t,n,r)||{width:o(351),height:this[o(339)]()};s.style[o(266)]=i,s[o(281)][o(326)]=a;const c=r?.[o(245)]||n.placeholderMode||o(258);this[o(256)](s,c),t.appendChild(s),this[o(349)]&&console[o(322)](o(346)+this[o(265)]+o(318)+e+" ("+i+o(330)+a+") - Mode: "+c)}[at(256)](t,e){const n=at;switch(e){case n(258):t.style.backgroundColor=n(347),t.style[n(261)]=n(288),t[n(281)][n(334)]="0",t[n(283)]="";break;case n(347):t[n(281)].backgroundColor=n(347),t.style[n(261)]=n(288),t[n(281)][n(313)]=n(257),t[n(283)]="";break;case"subtle":t.style.backgroundColor=n(307),t[n(281)].border=n(288),t.style[n(324)]=n(285),t[n(281)].display=n(310),t[n(281)][n(253)]=n(293),t.style[n(352)]=n(293),t[n(283)]=n(353);break;case n(344):t[n(281)].backgroundColor="rgba(248, 249, 250, 0.5)",t[n(281)][n(261)]=n(262),t[n(281)][n(324)]=n(302),t[n(281)].display=n(310),t.style.alignItems=n(293),t[n(281)][n(352)]="center",t[n(283)]=n(284);break;case n(349):t.style.border=n(248),t[n(281)].display=n(310),t[n(281)][n(253)]=n(293),t.style.justifyContent=n(293),t.style.backgroundColor=n(291),t.style[n(250)]=n(269),t[n(281)].fontFamily=n(292),t.style[n(241)]=n(309),t[n(283)]="<span>Loading "+this[n(265)]+n(308);break;default:t[n(281)][n(261)]=n(277),t[n(281)][n(313)]=n(310),t.style[n(253)]="center",t[n(281)][n(352)]=n(293),t[n(281)][n(336)]="#f9f9f9",t[n(281)][n(250)]="#666",t[n(283)]="<span>Loading "+this[n(265)]+n(308)}}[at(325)](t,e,n){const r=at,o=e[r(266)],s=e[r(326)];let i,a;if(i="number"==typeof o?o+"px":typeof o===r(321)?o:r(351),"number"==typeof s)a=s+"px";else if(typeof s===r(321)&&s!==r(351)&&"auto"!==s)a=s;else{const e=this[r(337)](t);e>0?(a=r(351),(n?.[r(349)]||this[r(349)])&&console[r(322)](r(294)+e+r(314))):(a=this[r(339)](),(n?.debug||this.debug)&&console[r(322)](r(335)+a+r(311)+this[r(265)]))}return{width:i,height:a}}[at(337)](t){const e=at,n=window[e(244)](t),r=parseFloat(n[e(326)]);if(!r||0===r){const r=parseFloat(n[e(255)]);if(r>0)return r;if(t[e(281)].height&&t[e(281)][e(326)]!==e(247)){const e=parseFloat(t.style.height);if(e>0)return e}const o=t[e(301)](e(326));if(o){const t=parseFloat(o);if(t>0)return t}}return r||0}[at(356)](){return async(t,e,n)=>{const r=ct;if(n===i[r(278)]){if(it[r(273)](t,e,this[r(349)]))return void(this[r(349)]&&console[r(322)](r(254)+t+r(338)+e));this[r(349)]&&console[r(322)]("✅ New viewable recorded for ad "+t+r(338)+e)}if(this[r(290)])try{this.debug&&console.log(r(270)+n+r(271)+t+" in slot "+e),await this[r(290)][r(317)](t,e,n),this[r(349)]&&console.log(r(268)+n+r(271)+t+r(338)+e)}catch(e){this[r(349)]&&console[r(260)]("❌ Failed to track "+n+r(251)+t+":",e)}else this[r(349)]&&console.warn(r(341)+n+" event")}}renderFallback(t){const e=at,n=document[e(319)](t.id);if(n){const r=[...[n[e(297)](e(327)),n.closest(e(327)),n][e(272)](t=>t&&t[e(243)](e(316))),...[n[e(299)](e(303)),n[e(299)](e(355)+String(this[e(265)]).toLowerCase()),n[e(299)](e(249)),n[e(299)](e(315)),n.closest(e(342)),n.closest(e(354)),n[e(299)]('div[style*="min-height"]'),n[e(267)]][e(272)](Boolean)][0];if(r){let n=e(279);n=r.hasAttribute("data-adstage-container")?e(287):r[e(357)][e(282)](e(295))?e(264):e(286),r[e(281)][e(305)]+=e(333),r[e(283)]="",r.setAttribute(e(298),e(239)),this[e(349)]&&console[e(246)](e(306)+this[e(265)]+e(328)+n+"): "+t.id,r)}else this.createEmptyContainer(t)}t[e(348)]=void 0,t.isEmpty=!0}createEmptyContainer(t){const e=at,n=document.getElementById(t[e(289)]);if(n){n[e(283)]="";const r=document[e(350)](e(323));r.id=t.id,r.className=e(275)+String(this[e(265)])[e(296)](),r[e(274)](e(316),e(239)),r[e(274)](e(298),e(239)),r.setAttribute("data-adstage-slot",t.id),r[e(281)][e(305)]=e(332),n[e(300)](r),this.debug&&console[e(246)]("⚠️ Created empty "+this.adType+e(240)+t.id)}}[at(322)](t,...e){const n=at;this[n(349)]&&console[n(322)]("["+this[n(265)]+"] "+t,...e)}}const ut=pt;function pt(t,e){const n=ht();return(pt=function(t,e){return n[t-=305]})(t,e)}function ht(){const t=["100%"," ads (optimized: ","count","18OAKCoi","center","📐 Optimal banner container calculated: ","✅ Optimized banner image rendered for ad: ","Banner",", ratio=","selectOptimalSizeStrategy","renderOptimizedBannerImage","optimizeContainerForBannerAds","calculateOptimalHeight","dominant","250px","optimizedHeight","addClickEventForRenderer","debug","Failed to load image: ","BANNER","Banner Advertisement","filter","warn","set","renderMultipleAds","cover","get","log","createEventTrackingCallback","map","objectPosition","renderAdElement","name"," ads: ","📸 Banner image dimensions: ","toFixed","height","round","calculateAdSize","onerror","Banner container optimization failed, using default size:","reduce","width","242138mBYiAP","imageUrl","borderRadius","some","src","Container not found: ","objectFit","16810mFiMOJ","img","<div>","appendChild","3:2","fulfilled","toString","naturalHeight","status","forEach","values","</div>","151444YEGVEf","🎨 Banner image style applied: objectFit=","display","ratio","getDefaultHeight","getBoundingClientRect","17752988tzjpYj","getElementById","Image URL is not provided","containerId","slideInterval","title","naturalWidth","onload","loadImageDimensions","📊 Using standard ratio: ",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"1yhIwst","max"," with "," (strategy: ","50TCRhwM","length","config","6249552jGjolL","abs","block","calculateOptimalContainerSize","Banner Ad","1:1","common","4:3","#f0f0f0","557851HOTSeH","alt","default","applyOptimizedImageStyle","backgroundColor","500691weCjBB","from","className","adstage-ad adstage-banner-ad","average","aspectRatio","_id","style","allSettled","4122TPYLMK","16:9"," (avg: ","createElement","innerHTML"];return(ht=function(){return t})()}!function(){const t=pt,e=ht();for(;;)try{if(392539===parseInt(t(355))/1*(-parseInt(t(319))/2)+-parseInt(t(376))/3+parseInt(t(338))/4*(parseInt(t(359))/5)+-parseInt(t(393))/6*(-parseInt(t(371))/7)+-parseInt(t(362))/8+-parseInt(t(385))/9*(parseInt(t(326))/10)+parseInt(t(344))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ft extends lt{constructor(e=!1,n){super(t[pt(409)],e,n)}[ut(342)](){return ut(404)}async[ut(307)](t,e){const n=ut,r=document[n(345)](t[n(347)]);if(!r)return;const o=document[n(388)]("div");o[n(378)]=n(379);const s=t[n(405)],i=r.parentElement||r;if(s)o[n(383)][n(318)]=n(390),o[n(383)][n(312)]=String(s);else{const e=t[n(361)],r={width:e?.[n(318)],height:e?.height},{width:s,height:a}=this[n(314)](i,r,{debug:this[n(407)]});o[n(383)][n(318)]=s,o[n(383)].height=a}e[n(320)]?await this[n(400)](o,e,t):o[n(389)]=n(328)+(e.title||n(366))+n(337),Q[n(406)](o,e,t,()=>this[n(418)](),this[n(407)],n(397)),r[n(389)]="",r.appendChild(o)}async[ut(414)](t,e){const n=ut,r=document[n(345)](t[n(347)]);if(!r)throw new Error(n(324)+t[n(347)]);await this[n(401)](t,e);const o=this[n(418)](),s={autoSlideInterval:(t.config?.[n(348)]||5e3)/1e3,...t[n(361)],optimizedHeight:t.optimizedHeight,aspectRatio:t[n(381)]},i=nt.createSliderContainer(t,e,s,o,this.debug);i&&(r[n(389)]="",r[n(329)](i),this[n(407)]&&console[n(417)]("🎠 Banner carousel created for slot: "+t.id+n(357)+e[n(360)]+n(391)+(t[n(405)]||n(373))+")"))}async[ut(365)](t,e){const n=ut;if(!t[n(360)])return{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9};try{const r=(await Promise[n(384)](t[n(411)](t=>t[n(320)])[n(305)](t=>this[n(352)](t[n(320)]))))[n(411)](t=>t[n(334)]===n(331))[n(305)](t=>t.value);if(0===r[n(360)])return{width:n(390),height:this[n(342)](),aspectRatio:16/9};const o=this.selectOptimalSizeStrategy(r),s=this[n(402)](r,e,o);return this.debug&&console.log(n(395)+e+"x"+s+n(358)+o+")"),{width:n(390),height:s+"px",aspectRatio:e/s}}catch(t){return console[n(412)]("Failed to calculate optimal banner size, using defaults:",t),{width:n(390),height:this[n(342)](),aspectRatio:16/9}}}async[ut(401)](t,e){const n=ut;try{const r=document[n(345)](t.containerId),o=document.getElementById(t.id);if(!r||!o)return;const s=r.getBoundingClientRect().width||300,i=await this.calculateOptimalContainerSize(e,s);o[n(383)][n(312)]=i[n(312)],t[n(405)]=i.height,t[n(381)]=i[n(381)],this.debug&&console.log("🔧 Banner container optimized for "+e.length+n(309)+i[n(312)])}catch(t){console[n(412)](n(316),t)}}[ut(399)](t){const e=ut,n=t[e(305)](t=>t[e(318)]/t[e(312)]),r=new Map;n[e(335)](t=>{const n=e,o=(Math[n(313)](10*t)/10)[n(332)]();r[n(413)](o,(r[n(416)](o)||0)+1)});const o=Math[e(356)](...r[e(336)]()),s=t[e(360)];if(o/s>=.7)return"dominant";const i=[16/9,4/3,1,1.5];return n[e(411)](t=>i[e(322)](n=>Math[e(363)](t-n)<.1))[e(360)]/s>=.5?e(368):"average"}calculateOptimalHeight(t,e,n){const r=ut,o=t[r(305)](t=>t[r(318)]/t[r(312)]);switch(n){case r(403):{const t=new Map;o[r(335)](e=>{const n=r,o=Math[n(313)](10*e)/10,s=o[n(332)](),i=t.get(s);i?i[n(392)]++:t[n(413)](s,{ratio:o,count:1})});const n=Array[r(377)](t[r(336)]())[r(317)]((t,e)=>e.count>t[r(392)]?e:t);return Math[r(313)](e/n[r(341)])}case r(368):{const t=[{ratio:16/9,name:r(386)},{ratio:4/3,name:r(369)},{ratio:1,name:r(367)},{ratio:1.5,name:r(330)}],n=o.reduce((t,e)=>t+e,0)/o[r(360)],s=t[r(317)]((t,e)=>Math[r(363)](e.ratio-n)<Math[r(363)](t[r(341)]-n)?e:t);return this[r(407)]&&console[r(417)](r(353)+s[r(308)]+r(387)+n[r(311)](2)+")"),Math[r(313)](e/s[r(341)])}case r(380):default:{const t=o[r(317)]((t,e)=>t+e,0)/o[r(360)];return Math[r(313)](e/t)}}}[ut(352)](t){return new Promise((e,n)=>{const r=pt,o=new Image;o[r(351)]=()=>{const t=r;e({width:o[t(350)],height:o[t(333)]})},o[r(315)]=()=>{n(new Error(r(408)+t))},o.src=t})}[ut(374)](t,e,n){const r=ut,o=e/n;Math[r(363)](o-1)<.1?(t[r(383)][r(325)]=r(415),t.style[r(306)]="center"):o>1.3?(t[r(383)][r(325)]="contain",t[r(383)][r(306)]=r(394),t[r(383)][r(375)]=r(370)):o<.7?(t[r(383)].objectFit=r(415),t[r(383)][r(306)]="center"):(t[r(383)][r(325)]=r(415),t.style[r(306)]=r(394)),this[r(407)]&&console[r(417)](r(339)+t.style[r(325)]+r(398)+o[r(311)](2))}async renderOptimizedBannerImage(t,e,n){const r=ut,o=document[r(388)](r(327));o.style.width="100%",o.style[r(312)]=r(390),o.style[r(340)]=r(364),o[r(383)][r(321)]="8px",o[r(372)]=e[r(349)]||r(410),t[r(389)]=r(354);try{if(!e[r(320)])throw new Error(r(346));const s=await this[r(352)](e[r(320)]),i=t[r(343)](),a=i[r(318)],c=i[r(312)];this.debug&&(console[r(417)](r(310)+s[r(318)]+"x"+s[r(312)]),console.log("📦 Banner container dimensions: "+a+"x"+c));const d=s[r(318)]/s.height,l=a/c;return this[r(374)](o,d,l),o.src=e.imageUrl,t[r(389)]="",t[r(329)](o),Q[r(406)](o,e,n,()=>this[r(418)](),this[r(407)],"Banner"),this[r(407)]&&console[r(417)](r(396)+e[r(382)]),o}catch(s){return console.error("❌ Failed to load optimized banner image:",s),e.imageUrl&&(o[r(323)]=e[r(320)],o[r(383)][r(325)]=r(415),o[r(383)][r(306)]=r(394),t[r(389)]="",t.appendChild(o),Q.addClickEventForRenderer(o,e,n,()=>this[r(418)](),this[r(407)],r(397))),o}}}const gt=yt;function mt(){const t=["2571591ecDMfk","title","140NLxPZy","554888BLYpsf","40hfKwxS","20712CLbJVm","createTextAdStyles","11753176jpJZkq","527660wsayyr","1ZotgQu","1878210sTZVOr","textContent","4192545wLzXND"];return(mt=function(){return t})()}function yt(t,e){const n=mt();return(yt=function(t,e){return n[t-=189]})(t,e)}!function(){const t=yt,e=mt();for(;;)try{if(772872===parseInt(t(195))/1*(-parseInt(t(189))/2)+parseInt(t(199))/3+parseInt(t(194))/4+-parseInt(t(201))/5*(-parseInt(t(191))/6)+parseInt(t(198))/7+-parseInt(t(193))/8+parseInt(t(196))/9*(parseInt(t(190))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class vt{static[gt(192)](t=!1){return"\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n "}static setTextAdContent(t,e){const n=gt,r=e[n(197)]||e[n(200)]||"";t[n(197)]=r}}const It=bt;function bt(t,e){const n=wt();return(bt=function(t,e){return n[t-=310]})(t,e)}function wt(){const t=["toLowerCase","1678624kkCfQm","appendChild","createTextAdStyles","clientX",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","64ESfYsL","adstage-fade-slider-wrapper","setProperty","style",";\n left: ","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",";\n transform: translateY(","transform","changedTouches","createSimpleAdElement",";\n ","touchstart","normal","removeChild","left",";\n width: 100%;\n ","absolute","53229kjBcyK","mouseenter","forEach","3110Oadkbm","string","position","translateY(20px)","whiteSpace","addEventListener","\n position: relative;\n width: 100%;\n ","addClickEventForSlider","848763bQPUjf","createElement","2655508VaoVhg","height: auto; min-height: fit-content;","body","cssText","Text","clientY","opacity","touches","3269010BafOUl","width","top","className",";\n top: ","20px","block","height","addTouchSupport","div","entries","11698Ekqgbo","setAttribute","preventDefault","6GMySYj","height: 100%;","setTextAdContent","includes","1683556KeHAcD","autoSlideInterval","zIndex","mouseleave","hidden","getBoundingClientRect","adstage-fade-slide-container","touchend","data-adstage-slot-id","translateY(0)","abs","relative","auto","touchmove","15knhxRu","fit-content","minHeight"];return(wt=function(){return t})()}!function(){const t=bt,e=wt();for(;;)try{if(841665===parseInt(t(358))/1+parseInt(t(333))/2*(-parseInt(t(354))/3)+-parseInt(t(314))/4+parseInt(t(322))/5*(-parseInt(t(336))/6)+-parseInt(t(340))/7+-parseInt(t(363))/8*(parseInt(t(312))/9)+parseInt(t(383))/10*(parseInt(t(380))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class kt{static createSimpleAdElement(t,e){const n=bt,r=document.createElement(n(331));return r.className="adstage-ad adstage-"+String(t.adType)[n(357)](),r[n(334)]("data-adstage-ad-id",e._id),r[n(334)](n(348),t.id),r.style[n(317)]=vt[n(360)](!0),vt[n(338)](r,e),r}static createTextTransitionContainer(t,e,n,r,o=!1){const s=bt,i=t.height&&0!==t[s(329)]&&t[s(329)]!==s(352),a=document[s(313)]("div");a[s(325)]=s(364);const c={position:"relative",overflow:s(344),display:s(328)};if(!i&&(c.height="auto",c[s(356)]=s(355)),t[s(323)]&&0!==t[s(323)]){let e;e="string"==typeof t[s(323)]&&(t[s(323)].includes("px")||t[s(323)][s(339)]("%"))?t[s(323)]:t[s(323)]+"px",c[s(323)]=e}if(t[s(329)]&&0!==t[s(329)]&&t[s(329)]!==s(352)&&i){let e;e=typeof t[s(329)]===s(384)&&(t[s(329)][s(339)]("px")||t[s(329)].includes("%"))?t[s(329)]:t[s(329)]+"px",c[s(329)]=e}Object[s(332)](c)[s(382)](([t,e])=>{const n=s;a[n(366)][n(365)](t,e)});const d=document[s(313)]("div");d.className=s(346),d.style[s(317)]=s(310)+s(i?337:315)+"\n ";let l=null;const u=!t[s(323)]||0===t[s(323)],p=!t[s(329)]||0===t[s(329)]||void 0===t[s(329)]||"auto"===t[s(329)];if(u||p&&i){if(l=document[s(313)]("div"),l[s(366)][s(317)]=s(368),!u&&t[s(323)]){let e;e=typeof t[s(323)]===s(384)?t[s(323)][s(339)]("px")||t[s(323)][s(339)]("%")?t[s(323)]:t[s(323)]+"px":t.width+"px",l[s(366)][s(323)]=e,l[s(366)][s(387)]=s(375)}document[s(316)][s(359)](l);let n=0,r=0;e[s(382)](e=>{const o=s,i=this[o(372)](t,e);l[o(359)](i);const a=i[o(345)]();a[o(323)]>n&&(n=a[o(323)]),a[o(329)]>r&&(r=a[o(329)]),l[o(376)](i)}),u&&n>0&&(a.style[s(323)]=n+"px"),p&&r>0&&i&&(a[s(366)][s(329)]=r+"px"),document[s(316)][s(376)](l)}const h=[];e.forEach((e,n)=>{const a=s,c=document[a(313)](a(331));c.className="adstage-fade-slide";const l=a(i?379:0===n?351:379);c.style[a(317)]="\n position: "+l+a(326)+(l===a(379)?"0":a(352))+a(367)+(l===a(379)?"0":a(352))+a(378)+(i?"height: 100%;":"height: auto;")+"\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: "+(0===n?"1":"0")+a(369)+(0===n?"0":a(327))+a(362)+(0===n?"2":"1")+a(373);const u=this[a(372)](t,e);Q[a(311)](u,e,t,r,o,a(318)),c[a(359)](u),d[a(359)](c),h.push(c)});let f=0;const g=e.length,m=1e3*(n?.[s(341)]||4),y=n=>{const a=s;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!i&&(c[a(366)][a(385)]===a(351)&&(c[a(366)][a(385)]=a(379),c[a(366)][a(324)]="0",c[a(366)].left="0"),d[a(366)][a(385)]=a(351),d[a(366)][a(324)]=a(352),d.style[a(377)]=a(352)),c.style.opacity="0",c.style[a(370)]="translateY(-20px)",c[a(366)][a(342)]="1",d[a(366)][a(320)]="1",d[a(366)][a(370)]=a(349),d.style[a(342)]="2",h.forEach((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(366)][r(320)]="0",t[r(366)].transform=r(386),t.style.zIndex="1",!i&&"relative"===t[r(366)].position&&(t.style[r(385)]=r(379),t.style[r(324)]="0",t[r(366)][r(377)]="0"))}),f=n,G.trackSlideViewable(e[f],t,f,r,o)};let v=setInterval(()=>{y(f+1)},m);return a[s(388)](s(381),()=>{clearInterval(v)}),a[s(388)](s(343),()=>{v=setInterval(()=>{y(f+1)},m)}),kt[s(330)](a,y,()=>f,g),a[s(359)](d),a}static[It(330)](t,e,n,r){const o=It;let s=0,i=0,a=!1;t.addEventListener(o(374),t=>{const e=o;s=t.touches[0][e(361)],i=t[e(321)][0].clientY,a=!0}),t.addEventListener(o(353),t=>{a&&t[o(335)]()}),t[o(388)](o(347),t=>{const r=o;if(!a)return;a=!1;const c=t[r(371)][0][r(361)],d=t[r(371)][0][r(319)],l=s-c,u=i-d;if(Math.abs(l)>Math.abs(u)&&Math[r(350)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Et=St;function St(t,e){const n=At();return(St=function(t,e){return n[t-=280]})(t,e)}!function(){const t=St,e=At();for(;;)try{if(514547===parseInt(t(326))/1*(-parseInt(t(302))/2)+-parseInt(t(310))/3*(-parseInt(t(283))/4)+-parseInt(t(291))/5*(parseInt(t(309))/6)+parseInt(t(323))/7+-parseInt(t(295))/8+parseInt(t(296))/9*(parseInt(t(289))/10)+parseInt(t(311))/11*(parseInt(t(327))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class xt extends lt{constructor(e=!1,n){super(t[St(313)],e,n)}[Et(320)](){return Et(321)}async renderAdElement(t,e){const n=Et,r=document[n(316)](t.containerId);if(!r)return;const o=document[n(280)](n(288));o[n(315)]=n(286);const s=t.optimizedHeight,i=r.parentElement||r;if(s)o[n(284)][n(281)]=n(331),o[n(284)][n(298)]=String(s);else{const e=t.config,r={width:e?.[n(281)],height:e?.[n(298)]},{width:s,height:a}=this[n(329)](i,r,{debug:this[n(292)]});o[n(284)][n(281)]=s,o.style[n(298)]=a}const a=document[n(280)](n(288));a.className=n(304),a[n(284)][n(330)]=vt[n(325)](!1),vt[n(301)](a,e);const c=t[n(318)]?.[n(303)];c&&typeof c===n(328)&&(a[n(284)][n(285)]=n(332),a[n(284)][n(307)]=String(c),a.style[n(294)]=n(314),a[n(284)].overflow=n(308)),o[n(293)](a),Q.addClickEventForRenderer(o,e,t,()=>this[n(317)](),this[n(292)],n(282)),r[n(319)]="",r[n(293)](o),this[n(292)]&&console[n(299)](n(300)+e[n(305)])}async[Et(324)](t,e){const n=Et,r=document[n(316)](t[n(297)]);if(!r)throw new Error(n(322)+t[n(297)]);const o=this[n(317)](),s={autoSlideInterval:(t.config?.[n(312)]||5e3)/1e3,...t[n(318)],optimizedHeight:t[n(334)],aspectRatio:t[n(287)]},i=kt[n(306)](t,e,s,o,this[n(292)]);i&&(r.innerHTML="",r[n(293)](i),this[n(292)]&&console.log(n(333)+t.id+" with "+e[n(290)]+" ads"))}}function At(){const t=["length","5HnFfJm","debug","appendChild","webkitBoxOrient","2744096rYdHim","645831uxgEhV","containerId","height","log","✨ Single text ad rendered: ","setTextAdContent","791548LDTbFd","maxLines","adstage-text-content","_id","createTextTransitionContainer","webkitLineClamp","hidden","913182VxoTmQ","49083HWKDGn","30811diAonC","slideInterval","TEXT","vertical","className","getElementById","createEventTrackingCallback","config","innerHTML","getDefaultHeight","60px","Container not found: ","2804158JYYDoU","renderMultipleAds","createTextAdStyles","1yRwhpe","2628dvDzMl","number","calculateAdSize","cssText","100%","-webkit-box","✨ Text transition created for slot: ","optimizedHeight","createElement","width","Text","8dfXhEX","style","display","adstage-ad adstage-text-ad","aspectRatio","div","50qWTQvH"];return(At=function(){return t})()}const Ct=Tt;function Tt(t,e){const n=Rt();return(Tt=function(t,e){return n[t-=402]})(t,e)}!function(){const t=Tt,e=Rt();for(;;)try{if(765885===-parseInt(t(511))/1*(-parseInt(t(416))/2)+parseInt(t(411))/3*(-parseInt(t(481))/4)+-parseInt(t(467))/5*(parseInt(t(421))/6)+-parseInt(t(448))/7*(parseInt(t(432))/8)+-parseInt(t(505))/9*(-parseInt(t(403))/10)+parseInt(t(441))/11+-parseInt(t(433))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class _t extends lt{constructor(e=!1,n){super(t[Tt(436)],e,n)}[Ct(443)](){return"360px"}async[Ct(437)](t,e){const n=Ct,r=document.getElementById(t[n(449)]);if(!r)return;const o=document[n(423)](n(407));o[n(477)]=n(471),o[n(465)].cssText=n(483),this[n(461)](o,e,t),r[n(417)]="",r[n(510)](o),this[n(470)]&&console[n(514)](n(450)+e[n(454)])}async[Ct(503)](t,e){const n=Ct,r=document.getElementById(t[n(449)]);if(!r)throw new Error(n(488)+t.containerId);if(e.length>0){const o=e[0],s=document.createElement(n(407));s[n(477)]=n(471),s.style.cssText=n(456),this.renderVideoElementDirect(s,o,t),r[n(417)]="",r[n(510)](s);const a=this[n(502)]();setTimeout(()=>{const e=n;a(o._id,t.id,i[e(452)])},100),this[n(470)]&&console[n(514)](n(460)+t.id+" ("+o._id+")")}else this.debug&&console.warn(n(482)+t.id)}[Ct(461)](t,e,n){const r=Ct;t[r(465)][r(469)]=r(464);const o=document[r(423)](r(487));o[r(465)][r(414)]=r(427),o[r(465)][r(420)]=r(427),o[r(465)][r(498)]=r(425),o.preload=r(493);const s=n[r(497)];if(this[r(470)]&&console[r(514)](r(473),s),o[r(486)]=!1,o[r(453)]=!1!==s?.[r(453)],o[r(517)]=!0,o.loop=!1!==s?.[r(462)],this[r(470)]&&console.log(r(494),{autoplay:o[r(453)],muted:o[r(517)],loop:o[r(462)],controls:o[r(486)]}),!1!==s?.[r(455)]&&o[r(516)](r(455),""),!0===s?.[r(486)]&&(o[r(486)]=!0,this[r(470)]&&console[r(514)](r(507))),s?.[r(434)])o[r(486)]=!1,o[r(465)].cssText+=r(479);else if(s?.[r(496)]){if(o[r(486)]){const t=document.createElement(r(465));t[r(406)]=r(512)+(s[r(496)].hidePlayButton?"none":"block")+r(504)+(s.customControls.hideProgressBar?r(499):"block")+" !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: "+(s[r(496)][r(413)]?r(499):r(415))+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(s[r(496)][r(405)]?r(499):r(415))+r(509)+(s.customControls.hideVolumeSlider?r(499):r(415))+r(485)+(s.customControls[r(478)]?r(499):"block")+r(472)+(s[r(496)][r(438)]?r(499):"block")+" !important;\n }\n ",document[r(440)].appendChild(t)}}else if(o[r(486)]){const t=document[r(423)](r(465));t.id=r(476),t[r(406)]=r(513),!document[r(459)](r(476))&&document.head[r(510)](t)}this[r(470)]&&console[r(514)](r(484),o.controls?r(402):r(446));const i=document[r(423)](r(429));i[r(477)]=r(495),i.style[r(447)]=r(458),s?.[r(434)]&&(i[r(465)].display=r(499));const a=()=>{const t=r,e=t(428),n=t(422);i.innerHTML=o.muted?e:n,i[t(506)]=o[t(517)]?"Click to unmute":"Click to mute"};if(a(),i[r(474)](r(500),t=>{const e=r;t.stopPropagation(),o.muted=!o.muted,a(),this.debug&&console.log(e(442)+(o.muted?e(517):"unmuted"))}),i.addEventListener(r(410),()=>{const t=r;i[t(465)][t(515)]=t(435),i[t(465)][t(418)]="scale(1.1)"}),i[r(474)](r(489),()=>{const t=r;i[t(465)][t(515)]="rgba(0, 0, 0, 0.7)",i[t(465)].transform=t(445)}),e[r(480)]){o[r(430)]=e[r(480)];const t=()=>{const t=r;o[t(453)]&&o.muted&&o.paused&&o.play()[t(412)](e=>{const n=t;this[n(470)]&&(console[n(491)](n(419),e),console.warn(n(409))),o.muted=!0,o.play().catch(t=>{const e=n;this[e(470)]&&console.error(e(457),t)})})};o[r(474)]("loadedmetadata",()=>{const e=r;this[e(470)]&&console.log(e(501)),t()}),o[r(474)](r(431),()=>{const e=r;this[e(470)]&&console[e(514)](e(408)),t()}),o.addEventListener(r(492),()=>{const e=r;this[e(470)]&&console[e(514)](e(475)),t()}),setTimeout(()=>{const e=r;this[e(470)]&&console[e(514)](e(404)),t()},100)}else if(e[r(444)]){const n=document[r(423)](r(463));return n[r(430)]=e.imageUrl,n[r(465)][r(414)]=r(427),n[r(465)][r(420)]="100%",n[r(465)].objectFit="contain",n.alt=e[r(506)]||"Video thumbnail",void t.appendChild(n)}Q[r(451)](o,e,n,()=>this[r(502)](),this.debug,"Video"),o.addEventListener(r(508),o=>{const s=r;if(console[s(508)]("Video load failed:",o),e.imageUrl){const r=document[s(423)](s(463));r[s(430)]=e[s(444)],r[s(465)][s(414)]=s(427),r.style[s(420)]="100%",r[s(465)][s(498)]=s(425),r.alt=e[s(506)]||s(426),Q[s(451)](r,e,n,()=>this[s(502)](),this[s(470)],s(439)),t[s(417)]="",t.appendChild(r)}}),t.appendChild(o),t.appendChild(i),this[r(470)]&&console[r(514)](r(468)+e[r(454)]+r(466)+o[r(453)]+r(424)+o.muted+r(490)+o[r(462)]+")")}}function Rt(){const t=["⚠️ No video advertisements available for slot: ","\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:"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","controls","video","Container not found: ","mouseleave",", loop: ","warn","loadeddata","metadata","🎬 Final video settings:","adstage-video-mute-button","customControls","config","objectFit","none","click","🎬 Video metadata loaded, attempting autoplay...","createEventTrackingCallback","renderMultipleAds"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","9GUaJky","title","🎬 User explicitly enabled controls, overriding default","error"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","appendChild","877718FfGOSY","\n video::-webkit-media-controls-play-button {\n display: ","\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 ","log","background","setAttribute","muted","enabled","12719780JThBZo","🎬 Initial autoplay attempt after timeout...","hideRemainingTime","textContent","div","🎬 Video can play, attempting autoplay...","🎬 Trying muted autoplay fallback...","mouseenter","228QBLCaX","catch","hideCurrentTime","width","block","2MZoUez","innerHTML","transform","🎬 Auto-play was prevented:","height","3714RqyBee",'\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 ',"createElement",", muted: ","contain","Video thumbnail","100%",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ',"button","src","canplay","52144FyazVZ","6083388tLdMZt","hideControls","rgba(0, 0, 0, 0.9)","VIDEO","renderAdElement","hideFullscreenButton","Video fallback","head","8854318DKuULW","🔊 Video mute toggled: ","getDefaultHeight","imageUrl","scale(1)","disabled (default)","cssText","119whuzvV","containerId","🎬 Single video ad rendered: ","addClickEventForRenderer","VIEWABLE","autoplay","_id","playsinline","\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 ","🎬 Autoplay completely failed:","\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 ","getElementById","🎬 Single video rendered for VIDEO slot: ","renderVideoElementDirect","loop","img","relative","style"," (autoplay: ","6770uXIEai","🎬 Video element created for ad: ","position","debug","adstage-video-container"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","🎬 Video config received:","addEventListener","🎬 Video data loaded, attempting autoplay...","adstage-video-default-controls","className","hideMuteButton","\n pointer-events: none;\n ","videoUrl","38572njbLiX"];return(Rt=function(){return t})()}const Dt=Ut;function Lt(){const t=["\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","linkUrl","328936cVWDre","src","49bAoyEE","imageUrl","#3b82f6","1650820NasgqK","length","warn","cssText","6711JQgdCb","renderAdElement","title","\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 ","Native Advertisement","textContent","className","NATIVE","4rBomdb","appendChild","Learn More","1603940naDKIM","addEventListener","createElement","open","backgroundColor","div","button","style","87081hKNepS","mouseenter","click","adstage-ad adstage-native-ad","_blank","🏠 Single native ad rendered: ","_id","⚠️ No native advertisements available for slot: ","getElementById","9XfrDKz","containerId","debug","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","🏠 Native ad rendered (first of ","getDefaultHeight","252sazsAk","log","alt","#2563eb","): ","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","2427702aohxrw","Native click tracked for ad: ","3490102bwHpdP"];return(Lt=function(){return t})()}function Ut(t,e){const n=Lt();return(Ut=function(t,e){return n[t-=176]})(t,e)}!function(){const t=Ut,e=Lt();for(;;)try{if(225495===-parseInt(t(191))/1+parseInt(t(206))/2*(parseInt(t(226))/3)+parseInt(t(180))/4*(-parseInt(t(222))/5)+-parseInt(t(212))/6+-parseInt(t(219))/7*(-parseInt(t(217))/8)+parseInt(t(200))/9*(parseInt(t(183))/10)+parseInt(t(214))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Pt extends lt{constructor(e=!1,n){super(t[Ut(179)],e,n)}[Dt(205)](){return"200px"}async renderAdElement(t,e){const n=Dt,r=document[n(199)](t[n(201)]);if(!r)return;const o=document.createElement(n(188));if(o[n(178)]=n(194),o[n(190)].cssText="\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 ",e[n(228)]){const t=document[n(185)]("h3");t[n(177)]=e.title,t[n(190)][n(225)]="\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ",o[n(181)](t)}if(e[n(177)]){const t=document[n(185)]("p");t[n(177)]=e[n(177)],t[n(190)].cssText=n(215),o[n(181)](t)}if(e[n(220)]){const t=document[n(185)](n(188));t.style.cssText=n(211);const r=document[n(185)]("img");r[n(218)]=e.imageUrl,r[n(208)]=e[n(228)]||n(176),r[n(190)][n(225)]=n(203),t.appendChild(r),o[n(181)](t)}if(e[n(216)]){const t=document[n(185)](n(189));t[n(177)]=n(182),t[n(190)][n(225)]=n(229),t[n(184)](n(193),()=>{const t=n;this.advertisementEventTracker&&console[t(207)](t(213)+e[t(197)]),window[t(186)](e[t(216)],t(195))}),t[n(184)](n(192),()=>{const e=n;t[e(190)][e(187)]=e(209)}),t[n(184)]("mouseleave",()=>{const e=n;t[e(190)].backgroundColor=e(221)}),o[n(181)](t)}r.innerHTML="",r.appendChild(o),this[n(202)]&&console.log(n(196)+e[n(197)])}async renderMultipleAds(t,e){const n=Dt;e[n(223)]>0?(await this[n(227)](t,e[0]),this[n(202)]&&console[n(207)](n(204)+e[n(223)]+n(210)+t.id)):this.debug&&console[n(224)](n(198)+t.id)}}const Bt=Mt;function Ot(){const t=["2740848tvVLnc","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","2169486BhSlsN","getDefaultHeight","textContent","renderMultipleAds","385065WkzeuQ","open","alt","fadeOut 0.3s ease-out forwards","log","getElementById","createElement","click","addEventListener","title","adstage-interstitial-styles","mouseleave","head","Escape","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","backgroundColor","innerHTML","renderAdElement","Get Started","appendChild","_id","linkUrl","4206290DrBqiE","⚠️ No interstitial advertisements available for slot: ","adstage-interstitial-overlay","body","src","Interstitial click tracked for ad: ","227841tAJOiy","cssText","30BNZYDH","🖼️ Interstitial ad closed","className","20HlOSaD","2018191dnTaDy","🖼️ Interstitial ad rendered: ","div","\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 ","target","INTERSTITIAL","#374151","#6b7280","\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 ","style","closeInterstitial","removeEventListener","#2563eb","imageUrl","debug","button","adstage-interstitial-content","400px","parentNode","img","\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 ","key","287aJLUNO","#f3f4f6","animation","color","#e5e7eb","1682UMwWuH","mouseenter","warn"];return(Ot=function(){return t})()}function Mt(t,e){const n=Ot();return(Mt=function(t,e){return n[t-=131]})(t,e)}!function(){const t=Mt,e=Ot();for(;;)try{if(195673===-parseInt(t(172))/1*(-parseInt(t(177))/2)+-parseInt(t(144))/3*(-parseInt(t(149))/4)+-parseInt(t(186))/5*(-parseInt(t(146))/6)+-parseInt(t(150))/7+-parseInt(t(180))/8+parseInt(t(182))/9+-parseInt(t(138))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class zt extends lt{constructor(e=!1,n){super(t[Mt(155)],e,n)}[Bt(183)](){return Bt(167)}async renderAdElement(t,e){const n=Bt;if(!document[n(191)](t.containerId))return;const r=document[n(192)](n(152));r[n(148)]=n(140),r[n(159)][n(145)]="\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ";const o=document[n(192)](n(152));o[n(148)]=n(166),o[n(159)][n(145)]="\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ";const s=document[n(192)](n(165));if(s[n(132)]="×",s[n(159)][n(145)]=n(170),s[n(194)](n(193),()=>{this[n(160)](r)}),s[n(194)](n(178),()=>{const t=n;s.style[t(131)]=t(176),s.style[t(175)]=t(156)}),s[n(194)](n(197),()=>{const t=n;s.style[t(131)]=t(173),s[t(159)][t(175)]=t(157)}),e[n(163)]){const t=document[n(192)](n(169));t[n(142)]=e[n(163)],t[n(188)]=e.title||"Interstitial Advertisement",t[n(159)][n(145)]="\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ",o[n(135)](t)}if(e[n(195)]){const t=document[n(192)]("h2");t[n(184)]=e[n(195)],t[n(159)][n(145)]=n(200),o[n(135)](t)}if(e.textContent){const t=document[n(192)]("p");t[n(184)]=e.textContent,t[n(159)][n(145)]=n(181),o[n(135)](t)}if(e[n(137)]){const t=document[n(192)]("button");t[n(184)]=n(134),t[n(159)][n(145)]=n(158),t.addEventListener("click",()=>{const t=n;this.advertisementEventTracker&&console[t(190)](t(143)+e[t(136)]),window[t(187)](e.linkUrl,"_blank"),this[t(160)](r)}),t.addEventListener("mouseenter",()=>{const e=n;t[e(159)][e(131)]=e(162)}),t[n(194)](n(197),()=>{const e=n;t.style[e(131)]="#3b82f6"}),o.appendChild(t)}const i=t=>{const e=n;t[e(171)]===e(199)&&(this[e(160)](r),document[e(161)]("keydown",i))};if(document[n(194)]("keydown",i),r[n(194)](n(193),t=>{const e=n;t[e(154)]===r&&this[e(160)](r)}),!document[n(191)](n(196))){const t=document[n(192)]("style");t.id=n(196),t[n(184)]=n(153),document[n(198)][n(135)](t)}o[n(135)](s),r.appendChild(o),document[n(141)].appendChild(r),this[n(164)]&&console[n(190)](n(151)+e[n(136)])}async[Bt(185)](t,e){const n=Bt;e.length>0?(await this[n(133)](t,e[0]),this[n(164)]&&console.log("🖼️ Interstitial ad rendered (first of "+e.length+"): "+t.id)):this[n(164)]&&console[n(179)](n(139)+t.id)}closeInterstitial(t){const e=Bt;t[e(159)][e(174)]=e(189),setTimeout(()=>{t[e(168)]&&t.parentNode.removeChild(t)},300),this.debug&&console[e(190)](e(147))}}function Nt(t,e){const n=jt();return(Nt=function(t,e){return n[t-=402]})(t,e)}const Vt=Nt;function jt(){const t=["advertisementEventTracker","width","⚠️ Container optimization is only supported for BANNER ads, got: ","getDefaultHeight","onload","createPlaceholder","24014214qWCXRH","renderers","warn","backgroundColor","textContent","1px dashed #ccc","config","8px","get","toLowerCase","renderMultipleAds","loadImageDimensions","naturalWidth","100%","760152zYYbZP","size"," renderers","log","appendChild","padding","5824010NQJmRd","optimizeContainerForBannerAds","renderFallback","8987598KUUtLb","style","border","No advertisement to render","setAttribute"," Ad","height","debug","renderAd","naturalHeight","set","VIDEO","videoUrl","data-adstage-slot-id","advertisement","display","div","8376iiWQVm","initializeRenderers","BANNER","renderAdElement","adType","createAdElement","isLoaded","No renderer found for ad type: ","calculateAdSize","renderOptimizedBannerImage is only supported for BANNER ads","7TisHSG","createElement","196408eDbykI","getRenderer","INTERSTITIAL","renderOptimizedBannerImage","img","imageUrl","#f9f9f9","onerror","[AdRenderer] ","2344VGkKNL","TEXT","src","block","348316sXNUjb"];return(jt=function(){return t})()}!function(){const t=Nt,e=jt();for(;;)try{if(926760===-parseInt(t(442))/1+-parseInt(t(463))/2+-parseInt(t(417))/3*(-parseInt(t(438))/4)+parseInt(t(469))/5+parseInt(t(472))/6+parseInt(t(427))/7*(parseInt(t(429))/8)+-parseInt(t(449))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft{constructor(t=!1,e){const n=Nt;this[n(450)]=new Map,this[n(407)]=t,this[n(443)]=e||null,this[n(418)]()}[Vt(418)](){const e=Vt;this[e(450)].set(t.BANNER,new ft(this.debug,this[e(443)])),this.renderers[e(410)](t[e(439)],new xt(this[e(407)],this[e(443)])),this[e(450)].set(t[e(411)],new _t(this[e(407)],this[e(443)])),this[e(450)][e(410)](t.NATIVE,new Pt(this[e(407)],this[e(443)])),this[e(450)].set(t[e(431)],new zt(this[e(407)],this[e(443)])),this[e(407)]&&console[e(466)]("🏭 AdRenderer factory initialized with "+this[e(450)][e(464)]+e(465))}[Vt(422)](e,n){const r=Vt,o=this[r(430)](e[r(421)]),s=document[r(428)](r(416));s.className="adstage-ad adstage-"+String(e[r(421)])[r(458)](),s[r(404)]("data-adstage-ad-id",n._id),s.setAttribute(r(413),e.id);const{width:i,height:a}=o[r(425)](s,e[r(455)]||{},n);switch(s[r(473)][r(444)]=i,s[r(473)][r(406)]=a,s[r(473)][r(415)]=r(441),e.adType){case t[r(419)]:if(n[r(434)]){const t=document.createElement(r(433));t.src=n.imageUrl,t[r(473)][r(444)]="100%",t[r(473)][r(406)]=r(462),t[r(473)].objectFit="cover",s.appendChild(t)}break;case t[r(411)]:if(n.videoUrl){const t=document[r(428)]("video");t.src=n[r(412)],t[r(473)][r(444)]=r(462),t[r(473)][r(406)]="100%",s[r(467)](t)}break;case t[r(439)]:if(n.textContent){const t=document[r(428)](r(416));t.textContent=n[r(453)]||"",t[r(473)][r(468)]=r(456),s[r(467)](t)}break;default:s.style[r(402)]=r(454),s[r(473)][r(452)]=r(435),s[r(453)]=e[r(421)]+r(405)}return s}[Vt(430)](t){const e=Vt,n=this[e(450)][e(457)](t);if(!n)throw new Error(e(424)+t);return n}[Vt(448)](t,e,n,r,o){const s=Vt;this[s(430)](n)[s(448)](t,e,r,o)}async[Vt(470)](e,n){const r=Vt;if(e.adType!==t[r(419)])return void(this[r(407)]&&console[r(451)](r(445)+e.adType));const o=this.getRenderer(t[r(419)]);await o[r(470)](e,n)}async renderAdSlider(t,e){const n=Vt,r=this.getRenderer(t[n(421)]);await r[n(459)](t,e)}async[Vt(408)](t){const e=Vt;if(!t[e(414)])throw new Error(e(403));const n=this[e(430)](t.adType);await n[e(420)](t,t[e(414)]),t[e(423)]=!0}async[Vt(420)](t,e){const n=Vt,r=this[n(430)](t[n(421)]);await r.renderAdElement(t,e)}[Vt(471)](t){const e=Vt;this[e(430)](t[e(421)])[e(471)](t)}getDefaultHeightForAdType(t){const e=Vt;return this[e(430)](t)[e(446)]()}[Vt(425)](t,e,n,r){const o=Vt;return this[o(430)](e)[o(425)](t,n,r)}[Vt(460)](t){return new Promise((e,n)=>{const r=Nt,o=new Image;o[r(447)]=()=>{const t=r;e({width:o[t(461)],height:o[t(409)]})},o[r(436)]=()=>{n(new Error("Failed to load image: "+t))},o[r(440)]=t})}async[Vt(432)](e,n,r){const o=Vt;if(r[o(421)]!==t[o(419)])throw new Error(o(426));const s=this[o(430)](t[o(419)]);return await s[o(432)](e,n,r)}async calculateOptimalContainerSize(e,n,r){const o=Vt;if(r!==t[o(419)]){return{width:"100%",height:this[o(430)](r)[o(446)](),aspectRatio:16/9}}const s=this.getRenderer(t[o(419)]);return await s.calculateOptimalContainerSize(e,n)}log(t,...e){const n=Vt;this[n(407)]&&console[n(466)](n(437)+t,...e)}}const Kt=Wt;function Ht(){const t=["refreshAdSlot","width","isLoaded"," ads)","createPlaceholder","광고 생성 중 오류 발생:","Failed to fetch ad data: ","adstage-","🧹 Auto-cleanup: slot ","forEach","✅ Simple viewable impression tracked for ad ","🎠 Slider will handle VIEWABLE events for ","isReady","hideControls","🔍 Auto-cleanup MutationObserver enabled","mutationObserver","slideInterval","length"," ads automatically","getAttribute","3024680DuTpUK","createAd","Ads module not initialized. Call AdStage.init() first.","getConfig","✅ Ad loaded for slot: ","random","string","controls","then","native","deviceType","VIEWABLE","list","interstitial","_isReady","append","init","advertisements","BANNER"," (element found)","6228hfIigQ","debug","loadAdContentInBackground","json","destroyModule","playsinline","from","33543pONcEt","adType","autoDestroy","apiKey","set","NATIVE","muted","Ad slot not found: ","autoplay",", filters:","adId","2962umTtHO","create","69fvYEnU","style","setAttribute","destroy","language","renderAd","optimizeContainerForBannerAds","status","banner","getSlotById","65cgHkwU","INTERSTITIAL","text","🎯 Simple viewability tracking started for slot: ","[data-adstage-slot-id]","delete","GET"," (attempt ","auto","100%","_id","data-adstage-slot-id","maxLines","slots","loop","🔄 Retrying viewability tracking for slot: ","startSimpleViewabilityTracking","🔄 Ad slot refreshed: ","setupAutoCleanup","error","Auto-cleanup failed for slot ","substr","adRenderer","renderAdElement","height","log","ensureReady","getElementById","renderFallback","warn","12ToFAmw","values","3081339TBdjWB","handleViewableEvent","autoSlide","advertisement","8fRlpdH","nodeType","170748iGCRLL","VIDEO","Failed to refresh ad slot: ","Container not found: ","country","handleRemovedElement","578186cMNewn","TEXT","createAdInternal","default","API key not configured","renderAdSlider","advertisementEventTracker","refresh","onClick","toString","❌ Failed to track viewable impression:","❌ Failed to load ad for slot: ","📊 Fetched ","customControls","createAdWithRetry","Container not found after ","get","16797AHTcjk","viewabilityTracker","📊 Fetched specific ad with ID: ","fetchAdData","undefined","🎯 Ads module initialized (sync mode) with auto-cleanup","_config","disconnect","ELEMENT_NODE"];return(Ht=function(){return t})()}function Wt(t,e){const n=Ht();return(Wt=function(t,e){return n[t-=430]})(t,e)}!function(){const t=Wt,e=Ht();for(;;)try{if(333069===parseInt(t(442))/1*(parseInt(t(440))/2)+-parseInt(t(569))/3+parseInt(t(490))/4*(parseInt(t(452))/5)+parseInt(t(482))/6*(-parseInt(t(496))/7)+-parseInt(t(488))/8*(-parseInt(t(484))/9)+parseInt(t(542))/10+parseInt(t(513))/11*(-parseInt(t(562))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Yt{constructor(){const t=Wt;this[t(556)]=!1,this[t(519)]=null,this.slots=new Map,this[t(502)]=null,this.adRenderer=null,this.mutationObserver=null}[Kt(558)](t){const e=Kt;this[e(519)]=t,this[e(502)]=new U(K.getBaseUrl(),t[e(432)],t[e(563)]||!1,this[e(465)]),this[e(474)]=new Ft(t[e(563)]||!1,this[e(502)]),this[e(470)](),this[e(556)]=!0,t.debug&&console.log(e(518))}[Kt(534)](){return this[Kt(556)]}[Kt(545)](){return this[Kt(519)]}[Kt(450)](e,n){const r=Kt;this.ensureReady();const o={width:n?.[r(523)]||r(461),height:n?.[r(476)]||r(460),autoSlide:n?.autoSlide||!1,slideInterval:n?.[r(538)]||5e3,onClick:n?.[r(504)],adId:n?.[r(439)],language:n?.[r(446)],deviceType:n?.[r(552)],country:n?.country};return this[r(543)](e,t[r(560)],o)}[Kt(454)](e,n){const r=Kt;this.ensureReady();const o={maxLines:n?.[r(464)]||3,style:n?.[r(443)]||r(499),onClick:n?.[r(504)],adId:n?.[r(439)],language:n?.[r(446)],deviceType:n?.[r(552)],country:n?.[r(494)]};return this[r(543)](e,t[r(497)],o)}video(e,n){const r=Kt;this[r(478)]();const o={width:n?.width||640,height:n?.[r(476)]||360,autoplay:void 0===n?.[r(437)]||n[r(437)],muted:void 0===n?.[r(435)]||n[r(435)],loop:void 0===n?.[r(466)]||n[r(466)],playsinline:!1!==n?.[r(567)],controls:void 0!==n?.[r(549)]&&n[r(549)],hideControls:n?.[r(535)]||!1,customControls:n?.[r(509)],autoSlide:!1,maxAds:1,onClick:n?.[r(504)],...n?.adId&&{adId:n[r(439)]}};return this[r(543)](e,t[r(491)],o)}[Kt(551)](e,n){const r=Kt;return this[r(478)](),this[r(543)](e,t[r(434)],n||{})}[Kt(555)](e,n){const r=Kt;return this[r(478)](),this[r(543)](e,t[r(453)],n||{})}[Kt(503)](t){const e=Kt;this[e(478)]();const n=this[e(465)][e(512)](t);if(!n)throw new Error(e(436)+t);this[e(522)](n),this._config?.[e(563)]&&console[e(477)](e(469)+t)}[Kt(445)](t){const e=Kt;this[e(478)]();const n=this[e(465)].get(t);if(!n)return void(this[e(519)]?.[e(563)]&&console[e(477)]("🔍 Ad slot already cleaned up: "+t));n.viewabilityTracker&&n.viewabilityTracker[e(445)]();const r=document[e(479)](n.containerId);r&&(r.innerHTML=""),this[e(465)][e(457)](t),this._config?.debug&&console[e(477)]("🗑️ Ad slot destroyed: "+t)}getAllSlots(){const t=Kt;return this.ensureReady(),Array[t(568)](this[t(465)][t(483)]())}[Kt(451)](t){const e=Kt;return this.ensureReady(),this.slots[e(512)](t)||null}[Kt(543)](t,e,n){const r=Kt;if(!this._config?.apiKey)throw new Error(r(500));const o=r(529)+e+"-"+Date.now()+"-"+Math[r(547)]()[r(505)](36)[r(473)](2,9);return this[r(510)](t,e,n,o,0),o}async[Kt(510)](t,e,n,r,o){const s=Kt,i=[0,50,100,200,500];let a,c=null;if(typeof t===s(548)){if(a=t,c=document.getElementById(t),!c)return o<4?(this[s(519)]?.[s(563)]&&console[s(481)](s(493)+t+". Retrying in "+i[o+1]+"ms... (attempt "+(o+1)+"/5)"),void setTimeout(()=>{this[s(510)](t,e,n,r,o+1)},i[o+1])):void console[s(471)](s(511)+5+" attempts: "+t)}else c=t,a=c.id||"auto-"+r,!c.id&&(c.id=a);try{this[s(498)](a,e,n,r,c)}catch(t){console.error(s(527),t)}}[Kt(498)](e,n,r,o,s){const i=Kt;s[i(444)](i(463),o),this[i(474)]?.[i(526)](s,o,n,r,this._config);const a={id:o,containerId:e,adType:n,width:r[i(523)]||i(461),height:r[i(476)]||(n===t[i(497)]?i(460):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:n,...r},load:async()=>this[i(516)](n,r)[i(550)](t=>t[0]||null),render:t=>this[i(474)]?.[i(475)](a,t),refresh:async()=>this.refreshAdSlot(a),destroy:()=>this[i(445)](o)};this[i(465)][i(433)](o,a),this[i(564)](a),this[i(502)]&&this[i(519)]?.[i(563)]&&console[i(477)]("📊 Advertisement event tracking enabled for slot: "+o)}async[Kt(564)](e){const n=Kt;try{const r=await this[n(516)](e.adType,e.config);if(!r||0===r.length)return void this[n(474)]?.renderFallback(e);e.adType===t[n(560)]&&r[n(539)]>0&&await(this[n(474)]?.[n(448)](e,r)),r[n(539)]>1||e.config?.[n(486)]?(await(this[n(474)]?.[n(501)](e,r)),this[n(519)]?.[n(563)]&&console[n(477)](n(533)+r.length+n(540))):(e[n(487)]=r[0],await(this[n(474)]?.[n(475)](e,r[0])),this[n(468)](e,r[0])),e[n(524)]=!0,this[n(519)]?.[n(563)]&&console[n(477)](n(546)+e.id+" ("+r.length+n(525))}catch(t){console[n(471)](n(507)+e.id,t),this[n(474)]?.[n(480)](e)}}startSimpleViewabilityTracking(t,e){const n=(r=0)=>{const o=Wt,s=document[o(479)](t.id);if(!s)return void(r<5?(setTimeout(()=>n(r+1),300),this[o(519)]?.[o(563)]&&console[o(477)](o(467)+t.id+o(459)+(r+1)+")")):console[o(481)]("❌ Failed to find element for viewability tracking: "+t.id));const i=new M(s,async()=>{const n=o;await this[n(485)](e,t)});t[o(514)]=i,this[o(519)]?.[o(563)]&&console[o(477)](o(455)+t.id+o(561))};n()}async[Kt(485)](t,e){const n=Kt;try{this[n(502)]&&(await this[n(502)].trackAdvertisementEvent(t[n(462)],e.id,i[n(553)]),this[n(519)]?.debug&&console[n(477)](n(532)+t[n(462)]))}catch(t){console[n(471)](n(506),t)}}async fetchAdData(t,e){const n=Kt;if(!this[n(519)]?.[n(432)])throw new Error(n(500));if(e.adId){const t=""+K[n(559)].detail(e[n(439)]),r=await fetch(t,{method:"GET",headers:_[n(441)](this[n(519)][n(432)])});if(!r.ok){if(404===r.status)return console[n(481)]("🚫 Advertisement not found with ID: "+e[n(439)]),[];throw new Error("Failed to fetch ad data: "+r.status)}const o=await r[n(565)]();return this._config?.[n(563)]&&console[n(477)](n(515)+e[n(439)],o),[o]}const r=new URLSearchParams;r[n(557)](n(430),t),e[n(446)]&&r[n(557)](n(446),e[n(446)]),e[n(552)]&&r.append(n(552),e.deviceType),e[n(494)]&&r[n(557)]("country",e.country);const o=K.advertisements[n(554)]()+"?"+r[n(505)](),s=await fetch(o,{method:n(458),headers:_[n(441)](this[n(519)][n(432)])});if(!s.ok)throw new Error(n(528)+s[n(449)]);const i=(await s[n(565)]())[n(559)]||[];return this._config?.[n(563)]&&console.log(n(508)+i[n(539)]+" ads for type: "+t+n(438),{language:e[n(446)],deviceType:e[n(552)],country:e[n(494)]}),i}async refreshAdSlot(t){const e=Kt;try{const n=await this[e(516)](t[e(430)],t.config||{});n&&n[e(539)]>0&&(t.advertisement=n[0],await(this[e(474)]?.[e(447)](t)),this[e(502)]&&console.log("New advertisement viewable tracked for slot:",t.id))}catch(n){console[e(471)](e(492)+t.id,n)}}ensureReady(){const t=Kt;if(!this[t(556)])throw new Error(t(544))}setupAutoCleanup(){const t=Kt;typeof window!==t(517)&&typeof document!==t(517)&&(this[t(537)]&&this[t(537)][t(520)](),this[t(537)]=new MutationObserver(e=>{const n=t;e[n(531)](t=>{const e=n;t.removedNodes[e(531)](t=>{const n=e;t[n(489)]===Node[n(521)]&&this[n(495)](t)})})}),this[t(537)].observe(document.body,{childList:!0,subtree:!0}),this[t(519)]?.debug&&console[t(477)](t(536)))}[Kt(495)](t){const e=Kt,n=t.getAttribute(e(463));if(n)return void this.autoDestroy(n);t.querySelectorAll(e(456))[e(531)](t=>{const n=e,r=t[n(541)](n(463));r&&this.autoDestroy(r)})}[Kt(431)](t){const e=Kt,n=this.slots[e(512)](t);if(n)try{n[e(514)]&&n[e(514)][e(445)](),this.slots[e(457)](t),this[e(519)]?.[e(563)]&&console[e(477)](e(530)+t+" removed")}catch(n){this[e(519)]?.[e(563)]&&console[e(481)](e(472)+t+":",n)}}[Kt(566)](){const t=Kt,e=this[t(519)]?.[t(563)];this[t(537)]&&(this.mutationObserver[t(520)](),this[t(537)]=null),this[t(465)].clear(),this[t(502)]=null,this[t(474)]=null,this[t(556)]=!1,this[t(519)]=null,e&&console[t(477)]("🗑️ Ads module destroyed")}}var qt=Zt;function Gt(){var t=["debug","10JyCCAU","getApiHeaders","updateConfig","_isReady","_organizationInfo","256078eIXuOw","ads","5672835XtGlZl","getConfig","API key not available","2315154AjpxqV","config","create","init","isModuleEnabled","Config module not initialized","isDebugMode","modules","setBaseUrl","baseUrl","8216831dWJJUe","getOrganizationInfo","getEnabledModules","_config","1438152tzLALQ","getBaseUrl","events","apiKey","log","🔄 Config updated","2259084ypEFlu","7395480MuaKym"];return(Gt=function(){return t})()}function Zt(t,e){var n=Gt();return(Zt=function(t,e){return n[t-=341]})(t,e)}!function(){for(var t=Zt,e=Gt();;)try{if(695693===parseInt(t(369))/1*(parseInt(t(341))/2)+parseInt(t(360))/3+-parseInt(t(366))/4+-parseInt(t(343))/5+parseInt(t(346))/6+parseInt(t(356))/7+-parseInt(t(367))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Jt{constructor(){var t=Zt;this[t(372)]=!1,this[t(359)]=null,this[t(373)]=null}[qt(349)](t){var e=qt;this[e(359)]={timeout:3e4,debug:!1,modules:[e(342),e(362),e(347)],...t},t[e(355)]&&K[e(354)](t.baseUrl),this._isReady=!0,t[e(368)]&&console[e(364)]("✅ Config module initialized (sync mode)",{modules:this[e(359)][e(353)],endpoint:K.getBaseUrl(),mode:"development"})}isReady(){return this._isReady}[qt(344)](){return this[qt(359)]}[qt(357)](){return this[qt(373)]}getApiEndpoint(){return K[qt(361)]()}[qt(352)](){var t=qt;return this[t(359)]?.[t(368)]||!1}getEnabledModules(){var t=qt;return this._config?.[t(353)]||[]}[qt(350)](t){return this[qt(358)]().includes(t)}[qt(371)](t){var e=qt;if(!this[e(359)])throw new Error(e(351));this[e(359)]={...this[e(359)],...t},this.isDebugMode()&&console[e(364)](e(365),t)}[qt(370)](){var t=qt;if(!this._config?.[t(363)])throw new Error(t(345));return _[t(348)](this._config[t(363)])}}function Xt(){const t=["getPlatform","1332688oXDLmK","clearDeviceInfo","getDetailedInfo","412vQPTES","6709671TzKZiL","Desktop Web","_userProvidedDeviceInfo","height","17231093GIPjrp","setDeviceProperty","5513432NNlOrV","4251SoiWHs","ios","setDeviceInfo","web","mapPlatformForEvents","desktop","test","getUserDeviceInfo","ko-KR","isMobile","cookieEnabled","getViewportInfo","10rqZHzX","isBrowser","generateDeviceId","iOS","1105290tbhiqc","width","Mobile Web","mobile","SSR","language","tablet","24DQvbJQ","platform","toLowerCase","Unknown","781xNqwzS","other","getAutoDetectedDeviceInfo","0x0","1574JqJTjd"];return(Xt=function(){return t})()}const Qt=$t;function $t(t,e){const n=Xt();return($t=function(t,e){return n[t-=140]})(t,e)}!function(){const t=$t,e=Xt();for(;;)try{if(474155===-parseInt(t(148))/1*(parseInt(t(152))/2)+-parseInt(t(165))/3*(-parseInt(t(157))/4)+parseInt(t(181))/5*(parseInt(t(144))/6)+parseInt(t(154))/7+parseInt(t(164))/8+parseInt(t(158))/9+parseInt(t(177))/10*(-parseInt(t(162))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class te{static getDeviceInfo(){const t=$t;return{...te[t(150)](),...te[t(160)]}}static[Qt(150)](){const t=Qt;if(!m[t(178)]())return{category:t(149),platform:t(141),model:"SSR",osVersion:"SSR"};const e=navigator.userAgent[t(146)]();let n=t(170);/tablet|ipad/[t(171)](e)?n=t(143):x[t(174)]()&&(n=t(140));const r=x[t(153)]();return{category:n,platform:te[t(169)](r),model:navigator[t(145)],osVersion:navigator[t(145)],deviceId:x[t(179)]()}}static[Qt(167)](t){te[Qt(160)]={...te._userProvidedDeviceInfo,...t}}static[Qt(163)](t,e){te._userProvidedDeviceInfo[t]=e}static[Qt(155)](){te[Qt(160)]={}}static[Qt(172)](){return{...te._userProvidedDeviceInfo}}static mapPlatformForEvents(t){const e=Qt;switch(t){case e(166):return e(180);case"android":return"Android";case e(168):return e(183);case"desktop":return e(159);default:return e(147)}}static[Qt(156)](){const t=Qt;if(!m.isBrowser())return{userAgent:"SSR",language:t(173),platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:"0x0",viewportSize:t(151)};const e=m[t(176)]();return{userAgent:navigator.userAgent,language:navigator[t(142)]||t(173),platform:navigator.platform,cookieEnabled:navigator[t(175)],onLine:navigator.onLine,screenResolution:screen[t(182)]+"x"+screen[t(161)],viewportSize:e[t(182)]+"x"+e[t(161)]}}}function ee(t,e){const n=re();return(ee=function(t,e){return n[t-=359]})(t,e)}te[Qt(160)]={};const ne=ee;function re(){const t=["24703ZQOhAc","split","DateTimeFormat","644411KNujEf","75090IUFsuI","clearUserProperties","7258080aQkPfL","resolvedOptions","1990hORnGs","setUserProperties","132icUPvn","8514060ZSbvmA","3592ZqpnJM","44397umgzPk","isBrowser","getUserInfo","timeZone","getCurrentUserProperties","32nuxNZw","setUserProperty","getBaseUserInfo","1302235AAgkpm","extractCountryFromLanguage","_userProperties","language","ko-KR","4CBhYzM"];return(re=function(){return t})()}!function(){const t=ee,e=re();for(;;)try{if(822287===-parseInt(t(373))/1*(-parseInt(t(369))/2)+-parseInt(t(374))/3*(-parseInt(t(361))/4)+parseInt(t(376))/5+-parseInt(t(381))/6+parseInt(t(370))/7*(parseInt(t(382))/8)+parseInt(t(383))/9*(-parseInt(t(378))/10)+-parseInt(t(364))/11*(parseInt(t(380))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static[ne(385)](){const t=ne;return{...oe[t(363)](),...oe[t(366)]}}static[ne(363)](){const t=ne;if(!m[t(384)]())return{language:"ko-KR",country:"KR"};const e=navigator[t(367)]||t(368);return{language:e,country:oe.extractCountryFromLanguage(e)}}static[ne(365)](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[ne(371)]("-")[0]]||"KR"}static[ne(379)](t){const e=ne;oe[e(366)]={...oe[e(366)],...t}}static[ne(362)](t,e){oe[ne(366)][t]=e}static[ne(375)](){oe[ne(366)]={}}static[ne(360)](){return{...oe[ne(366)]}}static estimateLocation(){const t=ne;if(!m[t(384)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(372)]()[t(377)]()[t(359)];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"}}}oe[ne(366)]={};const se=ie;function ie(t,e){const n=ce();return(ie=function(t,e){return n[t-=331]})(t,e)}!function(){const t=ie,e=ce();for(;;)try{if(787093===-parseInt(t(367))/1+-parseInt(t(362))/2+-parseInt(t(395))/3+parseInt(t(343))/4*(parseInt(t(348))/5)+-parseInt(t(410))/6*(parseInt(t(404))/7)+parseInt(t(406))/8*(parseInt(t(345))/9)+parseInt(t(342))/10*(parseInt(t(344))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ae{static[se(354)](){const t=se;if(typeof window===t(411))return null;const e=new URLSearchParams(window[t(359)][t(381)]),n={};let r=!1;const o=e[t(366)](t(408));if(o)try{const e=decodeURIComponent(o),s=new URLSearchParams(e);for(const e of ae.ALL_KEYS){const o=s[t(366)](e);o&&(n[e]=o,r=!0)}s.get(t(334))===t(388)&&(r=!0)}catch(e){console.warn(t(402),e)}for(const o of ae[t(383)]){if(n[o])continue;const s=e[t(366)](o);s&&(n[o]=s,r=!0)}return r?(n[t(369)]||(n[t(372)]?n[t(369)]=t(389):n[t(374)]?n[t(369)]="meta.ads":n.ttclid?n.channel=t(353):n[t(349)]?n[t(369)]="naver.searchad":n.liclid?n[t(369)]=t(382):n.msclkid?n[t(369)]="microsoft.ads":n.twclid?n.channel=t(350):(n[t(387)]===t(384)&&n[t(333)]===t(357)||n[t(371)]||n[t(339)])&&(n[t(369)]=t(361))),ae[t(392)](n),n):null}static[se(392)](t){const e=se;if(typeof window!==e(411))try{const n={...ae.get(),...t},r=JSON.stringify(n);try{sessionStorage.setItem(ae[e(335)],r)}catch(t){}try{localStorage.setItem(ae.STORAGE_KEY,r)}catch(t){}}catch(t){console[e(337)](e(375),t)}}static get(){const t=se;if(typeof window===t(411))return null;try{const e=sessionStorage?.getItem(ae[t(335)]);if(e)return JSON[t(368)](e)}catch(t){}try{const e=localStorage?.[t(401)](ae[t(335)]);if(e)return JSON[t(368)](e)}catch(t){}return null}static[se(391)](){const t=se;if(typeof window!==t(411)){try{sessionStorage?.removeItem(ae.STORAGE_KEY)}catch(t){}try{localStorage?.[t(360)](ae.STORAGE_KEY)}catch(t){}}}static[se(403)](){const t=ae[se(366)]();return null!==t&&Object.keys(t).length>0}static[se(390)](){const t=se,e=ae[t(366)]();return!!e&&ae[t(351)][t(338)](t=>e[t])}static shouldSendClickEvent(){const t=se;if(typeof window===t(411))return!1;const e=ae[t(366)]();if(!e)return!1;const n=ae.hasClickId(),r=!!e[t(369)];if(!n&&!r)return!1;const o=n?e[t(372)]||e[t(374)]||e[t(358)]||e.nclid||e[t(396)]||e.msclkid||e[t(341)]:(e[t(369)]||"")+":"+(e.term||"");if(!o)return!1;return o!==sessionStorage[t(401)](t(398))&&(sessionStorage[t(346)](t(398),o),!0)}static[se(397)](){const t=se;"undefined"!=typeof window&&sessionStorage.setItem(t(412),t(388))}static[se(386)](){const t=se;return typeof window!==t(411)&&sessionStorage[t(401)](t(412))===t(388)}static[se(356)](){const t=se,e=ae[t(366)]();if(!e)return null;const n={};return e[t(372)]&&(n[t(372)]=e[t(372)]),e[t(374)]&&(n.fbclid=e.fbclid),e.ttclid&&(n.ttclid=e[t(358)]),e[t(349)]&&(n[t(349)]=e.nclid),e[t(369)]&&(n[t(369)]=e[t(369)]),e[t(336)]&&(n[t(336)]=e[t(336)]),e[t(363)]&&(n.campaignId=e.campaign_id),e[t(393)]&&(n[t(405)]=e.ad_group),e[t(347)]&&(n.adGroupId=e[t(347)]),e[t(400)]&&(n[t(394)]=e[t(400)]),e[t(399)]&&(n[t(385)]=e.creative_id),e.term&&(n[t(380)]=e.term),e[t(371)]&&(n[t(373)]=n[t(373)]||e[t(371)]),e[t(370)]&&(n[t(352)]=n[t(352)]||e.k_adgroup),e[t(339)]&&(n.keyword=e[t(339)]),e.k_keyword_id&&(n[t(377)]=e[t(332)]),e[t(365)]&&(n[t(385)]=n[t(385)]||e[t(365)]),e[t(379)]&&(n.adRank=e[t(379)]),e.utm_source&&(n[t(387)]=e[t(387)]),e[t(333)]&&(n[t(333)]=e[t(333)]),e[t(331)]&&(n[t(331)]=e.utm_campaign),e[t(378)]&&(n[t(378)]=e.utm_content),e[t(340)]&&(n[t(340)]=e.utm_term),Object[t(409)](n)[t(355)]>0?n:null}}function ce(){const t=["channel","k_adgroup","k_campaign","gclid","campaignId","fbclid","Failed to store tracking params:","CAMPAIGN_KEYS","keywordId","utm_content","k_rank","term","search","linkedin.ads","ALL_KEYS","kakao","creativeId","isClickEventSent","utm_source","true","google.ads","hasClickId","clear","store","ad_group","adCreative","3471042UHMyYV","liclid","markClickEventSent","adstage_last_click_id","creative_id","ad_creative","getItem","Failed to parse adstage_referrer:","hasParams","7MvsnJF","adGroup","1224yeDnJV","UTM_KEYS","adstage_referrer","keys","6909546TctOKL","undefined","adstage_click_event_sent","utm_campaign","k_keyword_id","utm_medium","adstage","STORAGE_KEY","campaign","warn","some","k_keyword","utm_term","twclid","1510SReLuA","120wptKvM","229339GNfNPi","81999OGbtgU","setItem","ad_group_id","34370bMbfXz","nclid","twitter.ads","CLICK_ID_KEYS","adGroupId","tiktok.ads","captureFromUrl","length","toAttributionObject","keyword","ttclid","location","removeItem","kakao.keyword","1073820PQCQHO","campaign_id","msclkid","k_creative","get","1115794AoUwzr","parse"];return(ce=function(){return t})()}ae[se(335)]="adstage_tracking_params",ae[se(351)]=[se(372),se(374),"ttclid",se(349),se(396),se(364),se(341)],ae.CAMPAIGN_KEYS=[se(369),se(336),se(363),se(393),"ad_group_id",se(400),se(399),"term",se(371),se(370),se(339),se(332),se(365),"k_rank"],ae.UTM_KEYS=[se(387),"utm_medium",se(331),se(378),"utm_term"],ae[se(383)]=[...ae.CLICK_ID_KEYS,...ae[se(376)],...ae[se(407)]];const de=le;function le(t,e){const n=ue();return(le=function(t,e){return n[t-=161]})(t,e)}function ue(){const t=["_isReady","clearDeviceInfo","setDeviceInfo","✅ Attribution registered:","track","2799627QwQjgE","POST","_config","❌ Failed to track event:","statusText","Event data:","isReady","text","create","sendEventToServer","undefined","📱 User provided device info cleared","📦 Request body:","5917965YQTNqZ","Event tracking failed: ","API key not configured for event tracking.","log","📡 Request URL:","10WUHbGA","sendAttributionToServer","API key not configured for attribution registration.","registerAttribution","trackWithAttributionId","7161260XkGwwG","setUserProperties","apiKey","📦 Attribution request body:","length","getConfig","application/json","📊 Events module initialized","✅ Event tracked:","setDeviceProperty","🔑 Request headers:","🔑 Attribution request headers:","warn","343507avpkNE","27126BSYfmT","getUserProperties","📱 Device property set:","get","getUserDeviceInfo","❌ Failed to register attribution:","📊 Attribution included:","❌ API Error Response:","getCurrentUserProperties","status","📡 Attribution request URL:","10476549iCIijM","getDeviceInfo","attributionId","stringify","Events module not initialized. Call AdStage.init() first.","getAttributionId","2SChWKT","debug","903mvNWMB","✅ Event tracked with attribution ID:","8847328GfvZgZ","error","setItem","toAttributionObject","getUserInfo","adstage_attribution_id","📱 Device info set:","getItem","events"];return(ue=function(){return t})()}!function(){const t=le,e=ue();for(;;)try{if(969748===-parseInt(t(223))/1+-parseInt(t(169))/2*(parseInt(t(187))/3)+-parseInt(t(210))/4+parseInt(t(200))/5+parseInt(t(224))/6*(parseInt(t(171))/7)+parseInt(t(173))/8+-parseInt(t(163))/9*(-parseInt(t(205))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class pe{constructor(){const t=le;this[t(182)]=!1,this[t(189)]=null}init(t){const e=le;this._config=t,this[e(182)]=!0,t[e(170)]&&console.log(e(217))}[de(193)](){return this[de(182)]}[de(215)](){return this._config}setUserProperties(t){const e=de;oe[e(211)](t),this._config?.[e(170)]&&console[e(203)]("👤 User properties set:",t)}[de(225)](){return oe[de(232)]()}[de(184)](t){const e=de;te[e(184)](t),this._config?.[e(170)]&&console[e(203)](e(179),t)}setDeviceProperty(t,e){const n=de;te[n(219)](t,e),this._config?.[n(170)]&&console[n(203)](n(226),t,e)}[de(183)](){const t=de;te[t(183)](),this[t(189)]?.debug&&console[t(203)](t(198))}getUserDeviceInfo(){return te[de(228)]()}getDeviceInfo(){return te[de(164)]()}[de(177)](){return oe.getUserInfo()}[de(232)](){return oe.getCurrentUserProperties()}async[de(186)](t,e){const n=de;if(this[n(182)])if(this[n(189)]?.apiKey)try{const r=this[n(168)]();if(r){const o={eventName:t,sdkVersion:I(),device:te[n(164)](),user:oe[n(177)](),attributionId:r,params:e||{}};return await this[n(196)](o),void(this[n(189)][n(170)]&&console.log(n(172),t,r))}const o=ae[n(176)](),s={eventName:t,sdkVersion:I(),device:te[n(164)](),user:oe[n(177)](),...o&&{attribution:o},params:e||{}};await this[n(196)](s),this._config[n(170)]&&(console.log(n(218),t,e),o&&console[n(203)](n(230),o))}catch(r){console[n(174)](n(190),r),this._config[n(170)]&&console.error(n(192),{eventName:t,properties:e})}else console[n(222)](n(202));else console[n(222)](n(167))}async[de(208)](t){const e=de;if(!this[e(182)])return console[e(222)](e(167)),null;if(!this[e(189)]?.[e(212)])return console[e(222)](e(207)),null;try{const n=ae[e(227)]();if(!n||0===Object.keys(n)[e(214)])return this[e(189)][e(170)]&&console[e(203)]("⏭️ No tracking parameters found, skipping attribution registration"),null;const r=await this[e(206)]({deviceId:t,referrerParams:n});if(this[e(189)][e(170)]&&console[e(203)](e(185),r),r[e(165)]){try{localStorage[e(175)]("adstage_attribution_id",r.attributionId)}catch(t){}try{sessionStorage.setItem("adstage_attribution_id",r.attributionId)}catch(t){}}return r}catch(t){return console[e(174)](e(229),t),null}}[de(168)](){const t=de;if(typeof window===t(197))return null;try{const e=sessionStorage[t(180)](t(178));if(e)return e}catch(t){}try{return localStorage.getItem("adstage_attribution_id")}catch(t){}return null}async[de(209)](t,e){return this[de(186)](t,e)}async[de(196)](t){const e=de,n={..._.create(this[e(189)].apiKey),"Content-Type":"application/json"};this[e(189)]?.[e(170)]&&(console[e(203)](e(220),n),console[e(203)](e(204),K.events[e(186)]()),console[e(203)](e(199),t));const r=await fetch(K[e(181)][e(186)](),{method:e(188),headers:n,body:JSON[e(166)](t)});if(!r.ok){const t=await r.text();throw console[e(174)](e(231),t),new Error(e(201)+r[e(161)]+" "+r[e(191)])}}async[de(206)](t){const e=de,n={..._[e(195)](this[e(189)].apiKey),"Content-Type":e(216)};this._config?.[e(170)]&&(console[e(203)](e(221),n),console.log(e(162),K[e(181)][e(208)]()),console[e(203)](e(213),t));const r=await fetch(K[e(181)][e(208)](),{method:e(188),headers:n,body:JSON.stringify(t)});if(!r.ok){const t=await r[e(194)]();throw console[e(174)](e(231),t),new Error("Attribution registration failed: "+r[e(161)]+" "+r.statusText)}return r.json()}}const he=fe;function fe(t,e){const n=ge();return(fe=function(t,e){return n[t-=214]})(t,e)}function ge(){const t=["isReady","track","_config","warn","join","web","🚀 AdStage SDK initialized (sync mode)","now","✅ Auto-tracked click event with tracking params:","expiresAt","abs","attribution_id","apiKey","click","tracking_params","📊 Tracking parameters captured:","ads","charCodeAt","getItem","getConfig","attributionId","setBaseUrl","...","campaign","viewableTracker","error","then","catch","❌ Failed to auto-track click event:","width","toString","_isInitialized","modules","setItem","AdStage not initialized. Call AdStage.init() first.","server-","getTimezoneOffset","3939208KsVfzv","AdStage.events accessed before initialization","API key is required for AdStage initialization","captureFromUrl","7878808yjhSbZ","log","1256601bZXnyX","language",")의 viewable 추적 초기화됨","⏭️ Skipping click event (duplicate or no click ID)","🔍 Should send click event:","instance","❌ Error in click event auto-tracking:","263005LCWhfs","from","clear","baseUrl","toAttributionObject","1114622ReGest","userAgent","✅ AdStage Debug: 광고 ","search","AdStage.ads accessed before initialization","events","replace","config","channel","debug","✅ Attribution registered:","hasClickId","🌐 API endpoint configured:","init","422772waemEd","get","getInstance","function","undefined","6gBhdif","245104xIJRqI","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","🔗 Using attributionId from URL (attribution_id):","generateDeviceId","toISOString","reset"];return(ge=function(){return t})()}!function(){const t=fe,e=ge();for(;;)try{if(731707===parseInt(t(238))/1+parseInt(t(250))/2*(-parseInt(t(269))/3)+-parseInt(t(270))/4+-parseInt(t(245))/5+parseInt(t(264))/6+parseInt(t(236))/7+-parseInt(t(232))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class me{constructor(){const t=fe;this[t(226)]=!1,this[t(278)]=null,this[t(257)]=new Jt,this[t(292)]=new Yt,this[t(255)]=new pe}static[he(263)](t){const e=he;!me.instance&&(me.instance=new me);const n=me[e(243)];if(!t[e(288)])throw new Error(e(234));n[e(278)]={timeout:3e4,debug:!1,modules:["ads",e(255),"config"],...t},n[e(278)][e(248)]&&(K[e(216)](n._config.baseUrl),t[e(259)]&&console[e(237)](e(262),n[e(278)][e(248)]));const r=n[e(278)][e(227)]||[e(292),e(255),"config"];for(const t of r){const r=n[t];r&&typeof r[e(263)]===e(267)&&r[e(263)](n[e(278)])}if(n._isInitialized=!0,typeof window!==e(268)){const r=ae[e(235)]();r&&t[e(259)]&&console[e(237)](e(291),r);const o=(()=>{const t=e;try{const e=new URLSearchParams(window.location[t(253)]),n=new URLSearchParams((window.location.hash||"")[t(256)](/^#/,""));return e.get(t(287))||n[t(265)](t(287))}catch{return null}})();if(o)try{localStorage[e(228)]("adstage_attribution_id",o),t[e(259)]&&console[e(237)](e(272),o)}catch(t){}const s=ae.shouldSendClickEvent();t[e(259)]&&(console.log(e(242),s),!s&&console.log(e(241)));const i=ae[e(261)](),a=!(!r||!r[e(258)]);if(!o&&r&&(i||a)){const r=(async()=>{const r=e;try{const e=n[r(273)](),o=await n[r(255)].registerAttribution(e);return o&&t[r(259)]&&console[r(237)](r(260),{attributionId:o[r(215)],channel:o[r(258)],campaign:o[r(218)],expiresAt:o[r(285)]}),o}catch(t){return console[r(220)]("❌ Failed to register attribution:",t),null}})();s&&r[e(221)](r=>{const o=e;try{const e=ae[o(265)](),s=ae.toAttributionObject();t[o(259)]&&console[o(237)]("🎯 Sending click event after attribution registration",{attributionId:r?.attributionId,hasAttribution:!!r}),n[o(255)][o(277)](o(289),{_autoGenerated:!0,_source:o(290),_timestamp:(new Date)[o(274)](),_platform:o(281)}).then(()=>{const n=o;ae.markClickEventSent(),t.debug&&console[n(237)](n(284),{attribution:s,trackingParams:e})})[o(222)](t=>{const e=o;console.error(e(223),t)})}catch(t){console[o(220)](o(244),t)}})}else s&&setTimeout(()=>{const r=e;try{const e=ae[r(265)](),o=ae[r(249)]();n[r(255)][r(277)](r(289),{_autoGenerated:!0,_source:r(290),_timestamp:(new Date)[r(274)](),_platform:"web"})[r(221)](()=>{const n=r;ae.markClickEventSent(),t.debug&&console[n(237)](n(284),{attribution:o,trackingParams:e})})[r(222)](t=>{const e=r;console[e(220)](e(223),t)})}catch(t){console[r(220)](r(244),t)}},100)}t[e(259)]&&console[e(237)](e(282),{version:"2.0.0",modules:r,apiKey:t.apiKey.substring(0,8)+e(217),mode:"development"})}static[he(276)](){const t=he;return me.instance?.[t(226)]||!1}static[he(214)](){const t=he;return me[t(243)]?.[t(278)]||null}static[he(266)](){const t=he;if(!me[t(243)])throw new Error(t(229));return me[t(243)]}static get[he(292)](){const t=he;try{return me[t(266)]()[t(292)]}catch(e){throw console[t(279)](t(254)),e}}static get[he(255)](){const t=he;try{return me.getInstance().events}catch(e){throw console[t(279)](t(233)),e}}static get[he(257)](){const t=he;try{return me[t(266)]()[t(257)]}catch(e){throw console[t(279)]("AdStage.config accessed before initialization"),e}}static[he(275)](){const t=he;me[t(243)]&&(me.instance[t(226)]=!1,me[t(243)]._config=null)}generateDeviceId(){const t=he;if(typeof window===t(268))return t(230)+Math.random().toString(36).substring(2,15);const e=localStorage[t(294)]("adstage_device_id");if(e)return e;const n=[navigator[t(251)],navigator[t(239)],screen[t(224)]+"x"+screen.height,(new Date)[t(231)](),navigator.hardwareConcurrency||0][t(280)]("|");let r=0;for(let e=0;e<n.length;e++){r=(r<<5)-r+n[t(293)](e),r&=r}const o="web-"+Math[t(286)](r)[t(225)](36)+"-"+Date[t(283)]()[t(225)](36);return localStorage[t(228)]("adstage_device_id",o),o}}function ye(t,e){var n=be();return(ye=function(t,e){return n[t-=407]})(t,e)}function ve(t,e){var n=ye;return me[n(410)]()?me[n(424)][n(415)](t,e):(console.warn("AdStage not initialized. Call AdStage.init() first."),Promise[n(419)]())}function Ie(t){var e=ye;me[e(410)]()?me.events[e(407)](t):console[e(425)](e(418))}function be(){var t=["1199mEpxKT","isReady","1031136PamMui","606501qBNPQM","1058888otkFTY","3134215pNCThs","track","2059hvjWLt","9jPpXbT","AdStage not initialized. Call AdStage.init() first.","resolve","566cMttQM","2078810DiNAcM","37776BVeBbz","12tyJgmv","events","warn","setUserProperties","7gVaNYt"];return(be=function(){return t})()}function we(){var t=ye;if(me.isReady())return me[t(424)].getUserProperties();console[t(425)](t(418))}me[he(259)]={clearAllViewable:()=>{const t=he;it[t(247)](),console.log(t(271))},clearAdViewable:(t,e)=>{const n=he;it.clearAdViewable(t,e),console[n(237)](n(252)+t+"("+e+n(240))},getViewableStatus:()=>{const t=he;console[t(237)]("📊 AdStage Debug: 현재 viewable 추적 상태",{trackedCount:it.viewableTracker.size,trackedItems:Array[t(246)](it[t(219)])})}},function(){for(var t=ye,e=be();;)try{if(434073===-parseInt(t(416))/1*(-parseInt(t(420))/2)+-parseInt(t(412))/3*(parseInt(t(423))/4)+parseInt(t(414))/5+-parseInt(t(411))/6+parseInt(t(408))/7*(-parseInt(t(413))/8)+parseInt(t(417))/9*(-parseInt(t(421))/10)+parseInt(t(409))/11*(parseInt(t(422))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();var ke,Ee={exports:{}},Se={},xe={exports:{}},Ae={};xe.exports=function(){if(ke)return Ae;ke=1;var t=Symbol.for("react.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),i=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),l=Symbol.for("react.lazy"),u=Symbol.iterator,p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,f={};function g(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}function m(){}function y(t,e,n){this.props=t,this.context=e,this.refs=f,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},g.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},m.prototype=g.prototype;var v=y.prototype=new m;v.constructor=y,h(v,g.prototype),v.isPureReactComponent=!0;var I=Array.isArray,b=Object.prototype.hasOwnProperty,w={current:null},k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,n,r){var o,s={},i=null,a=null;if(null!=n)for(o in void 0!==n.ref&&(a=n.ref),void 0!==n.key&&(i=""+n.key),n)b.call(n,o)&&!k.hasOwnProperty(o)&&(s[o]=n[o]);var c=arguments.length-2;if(1===c)s.children=r;else if(1<c){for(var d=Array(c),l=0;l<c;l++)d[l]=arguments[l+2];s.children=d}if(e&&e.defaultProps)for(o in c=e.defaultProps)void 0===s[o]&&(s[o]=c[o]);return{$$typeof:t,type:e,key:i,ref:a,props:s,_owner:w.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}var x=/\/+/g;function A(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(t){return e[t]})}(""+t.key):e.toString(36)}function C(n,r,o,s,i){var a=typeof n;"undefined"!==a&&"boolean"!==a||(n=null);var c=!1;if(null===n)c=!0;else switch(a){case"string":case"number":c=!0;break;case"object":switch(n.$$typeof){case t:case e:c=!0}}if(c)return i=i(c=n),n=""===s?"."+A(c,0):s,I(i)?(o="",null!=n&&(o=n.replace(x,"$&/")+"/"),C(i,r,o,"",function(t){return t})):null!=i&&(S(i)&&(i=function(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}(i,o+(!i.key||c&&c.key===i.key?"":(""+i.key).replace(x,"$&/")+"/")+n)),r.push(i)),1;if(c=0,s=""===s?".":s+":",I(n))for(var d=0;d<n.length;d++){var l=s+A(a=n[d],d);c+=C(a,r,o,l,i)}else if(l=function(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=u&&t[u]||t["@@iterator"])?t:null}(n),"function"==typeof l)for(n=l.call(n),d=0;!(a=n.next()).done;)c+=C(a=a.value,r,o,l=s+A(a,d++),i);else if("object"===a)throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}function T(t,e,n){if(null==t)return t;var r=[],o=0;return C(t,r,"","",function(t){return e.call(n,t,o++)}),r}function _(t){if(-1===t._status){var e=t._result;(e=e()).then(function(e){0!==t._status&&-1!==t._status||(t._status=1,t._result=e)},function(e){0!==t._status&&-1!==t._status||(t._status=2,t._result=e)}),-1===t._status&&(t._status=0,t._result=e)}if(1===t._status)return t._result.default;throw t._result}var R={current:null},D={transition:null},L={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:D,ReactCurrentOwner:w};function U(){throw Error("act(...) is not supported in production builds of React.")}return Ae.Children={map:T,forEach:function(t,e,n){T(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return T(t,function(){e++}),e},toArray:function(t){return T(t,function(t){return t})||[]},only:function(t){if(!S(t))throw Error("React.Children.only expected to receive a single React element child.");return t}},Ae.Component=g,Ae.Fragment=n,Ae.Profiler=o,Ae.PureComponent=y,Ae.StrictMode=r,Ae.Suspense=c,Ae.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=L,Ae.act=U,Ae.cloneElement=function(e,n,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=h({},e.props),s=e.key,i=e.ref,a=e._owner;if(null!=n){if(void 0!==n.ref&&(i=n.ref,a=w.current),void 0!==n.key&&(s=""+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(d in n)b.call(n,d)&&!k.hasOwnProperty(d)&&(o[d]=void 0===n[d]&&void 0!==c?c[d]:n[d])}var d=arguments.length-2;if(1===d)o.children=r;else if(1<d){c=Array(d);for(var l=0;l<d;l++)c[l]=arguments[l+2];o.children=c}return{$$typeof:t,type:e.type,key:s,ref:i,props:o,_owner:a}},Ae.createContext=function(t){return(t={$$typeof:i,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:t},t.Consumer=t},Ae.createElement=E,Ae.createFactory=function(t){var e=E.bind(null,t);return e.type=t,e},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(t){return{$$typeof:a,render:t}},Ae.isValidElement=S,Ae.lazy=function(t){return{$$typeof:l,_payload:{_status:-1,_result:t},_init:_}},Ae.memo=function(t,e){return{$$typeof:d,type:t,compare:void 0===e?null:e}},Ae.startTransition=function(t){var e=D.transition;D.transition={};try{t()}finally{D.transition=e}},Ae.unstable_act=U,Ae.useCallback=function(t,e){return R.current.useCallback(t,e)},Ae.useContext=function(t){return R.current.useContext(t)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(t){return R.current.useDeferredValue(t)},Ae.useEffect=function(t,e){return R.current.useEffect(t,e)},Ae.useId=function(){return R.current.useId()},Ae.useImperativeHandle=function(t,e,n){return R.current.useImperativeHandle(t,e,n)},Ae.useInsertionEffect=function(t,e){return R.current.useInsertionEffect(t,e)},Ae.useLayoutEffect=function(t,e){return R.current.useLayoutEffect(t,e)},Ae.useMemo=function(t,e){return R.current.useMemo(t,e)},Ae.useReducer=function(t,e,n){return R.current.useReducer(t,e,n)},Ae.useRef=function(t){return R.current.useRef(t)},Ae.useState=function(t){return R.current.useState(t)},Ae.useSyncExternalStore=function(t,e,n){return R.current.useSyncExternalStore(t,e,n)},Ae.useTransition=function(){return R.current.useTransition()},Ae.version="18.3.1",Ae}();var Ce,Te=xe.exports;
2
2
  /**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
@@ -7,4 +7,4 @@ var t,e,n,r,o,i,s,a,c,l,d,u;function p(t,e){var n=h();return(p=function(t,e){ret
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */xe.exports=function(){if(Te)return Se;Te=1;var t=_e,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function s(t,n,s){var a,c={},l=null,d=null;for(a in void 0!==s&&(l=""+s),void 0!==n.key&&(l=""+n.key),void 0!==n.ref&&(d=n.ref),n)r.call(n,a)&&!i.hasOwnProperty(a)&&(c[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===c[a]&&(c[a]=n[a]);return{$$typeof:e,type:t,key:l,ref:d,props:c,_owner:o.current}}return Se.Fragment=n,Se.jsx=s,Se.jsxs=s,Se}();var Re=xe.exports;const De=_e.createContext(null);function Le({children:t,config:e}){const[n,r]=_e.useState(!1),[o,i]=_e.useState(null),[s,a]=_e.useState(null),c=t=>{try{a(null),n&&ye.reset(),ye.init(t),i(t),r(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),r(!1),i(null)}};_e.useEffect(()=>{e&&!n&&c(e)},[e,n]);const l={isInitialized:n,config:o,initialize:c,reset:()=>{try{ye.reset(),r(!1),i(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:s};return Re.jsx(De.Provider,{value:l,children:t})}function Oe(){const t=_e.useContext(De);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Pe(){const{isInitialized:t}=Oe();return t?ye:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Ue(t,e){var n=ze();return(Ue=function(t,e){return n[t-=396]})(t,e)}function ze(){var t=["33842943jOxOio","1592103xgWtyw","6351821NxSJYM","4ycCfgS","8MxWGxI","882935xlVdkO","2044214wBvGNL","6795204rdHaHC","1225845WZDSxP"];return(ze=function(){return t})()}!function(){for(var t=Ue,e=ze();;)try{if(591218===-parseInt(t(403))/1+-parseInt(t(404))/2+parseInt(t(399))/3+parseInt(t(401))/4*(parseInt(t(397))/5)+-parseInt(t(396))/6+-parseInt(t(400))/7+-parseInt(t(402))/8*(-parseInt(t(398))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Be=Me;function Me(t,e){const n=Ve();return(Me=function(t,e){return n[t-=380]})(t,e)}!function(){const t=Me,e=Ve();for(;;)try{if(402231===-parseInt(t(380))/1+-parseInt(t(387))/2+-parseInt(t(389))/3+-parseInt(t(390))/4*(-parseInt(t(391))/5)+-parseInt(t(386))/6*(parseInt(t(381))/7)+parseInt(t(385))/8+parseInt(t(388))/9*(parseInt(t(392))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ne=Be(383);function Ve(){const t=["80888WefEBw","145UFIgAH","6820JNdHAJ","689816aICLZU","10423xqqwgD","events","2.0.0","config","4583744zASNft","84RUXpae","112842OEoVUw","2412qEvcrN","518604mIdUtF"];return(Ve=function(){return t})()}const Fe=["ads",Be(382),Be(384)];"undefined"!=typeof window&&(window.AdStage=ye);export{ye as AdStage,Le as AdStageProvider,Ne as SDK_VERSION,Fe as SUPPORTED_MODULES,le as TrackingParamsModule,ke as getUserProperties,we as setUserProperties,be as track,Oe as useAdStageContext,Pe as useAdStageInstance};
10
+ */Ee.exports=function(){if(Ce)return Se;Ce=1;var t=Te,e=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function i(t,n,i){var a,c={},d=null,l=null;for(a in void 0!==i&&(d=""+i),void 0!==n.key&&(d=""+n.key),void 0!==n.ref&&(l=n.ref),n)r.call(n,a)&&!s.hasOwnProperty(a)&&(c[a]=n[a]);if(t&&t.defaultProps)for(a in n=t.defaultProps)void 0===c[a]&&(c[a]=n[a]);return{$$typeof:e,type:t,key:d,ref:l,props:c,_owner:o.current}}return Se.Fragment=n,Se.jsx=i,Se.jsxs=i,Se}();var _e=Ee.exports;const Re=Te.createContext(null);function De({children:t,config:e}){const[n,r]=Te.useState(!1),[o,s]=Te.useState(null),[i,a]=Te.useState(null),c=t=>{try{a(null),n&&me.reset(),me.init(t),s(t),r(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";a(e),console.error("❌ AdStage SDK initialization failed:",t),r(!1),s(null)}};Te.useEffect(()=>{e&&!n&&c(e)},[e,n]);const d={isInitialized:n,config:o,initialize:c,reset:()=>{try{me.reset(),r(!1),s(null),a(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:i};return _e.jsx(Re.Provider,{value:d,children:t})}function Le(){const t=Te.useContext(Re);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Ue(){const{isInitialized:t}=Le();return t?me:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Pe(t,e){var n=Be();return(Pe=function(t,e){return n[t-=389]})(t,e)}function Be(){var t=["16FAFJSJ","28RetRHA","350581HgfUoU","22488MYyPle","74289OAdTZo","2046470CFwBtT","11359170YDHaoZ","1364749OTVgIC","3218640OBjMqB","1045fnWXez"];return(Be=function(){return t})()}!function(){for(var t=Pe,e=Be();;)try{if(937893===parseInt(t(395))/1+parseInt(t(393))/2+-parseInt(t(392))/3*(-parseInt(t(389))/4)+-parseInt(t(397))/5*(parseInt(t(391))/6)+parseInt(t(390))/7*(parseInt(t(398))/8)+-parseInt(t(394))/9+parseInt(t(396))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Oe=Me;function Me(t,e){const n=Ne();return(Me=function(t,e){return n[t-=425]})(t,e)}!function(){const t=Me,e=Ne();for(;;)try{if(960279===-parseInt(t(440))/1*(parseInt(t(429))/2)+-parseInt(t(433))/3+parseInt(t(435))/4*(-parseInt(t(434))/5)+-parseInt(t(438))/6*(-parseInt(t(437))/7)+-parseInt(t(428))/8+-parseInt(t(439))/9*(parseInt(t(430))/10)+-parseInt(t(425))/11*(-parseInt(t(436))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ze=Oe(426);function Ne(){const t=["56JmUJVj","123666jjMjip","3771324sqvTSS","687439AwcHpV","22EMzvje","2.0.0","events","3178488viCEPA","2tuWqer","20RKLEbZ","undefined","config","3616917DajUAH","75SjaYwL","389448nYzrNm","32305692rTaGSE"];return(Ne=function(){return t})()}const Ve=["ads",Oe(427),Oe(432)];typeof window!==Oe(431)&&(window.AdStage=me);export{me as AdStage,De as AdStageProvider,ze as SDK_VERSION,Ve as SUPPORTED_MODULES,ae as TrackingParamsModule,we as getUserProperties,Ie as setUserProperties,ve as track,Le as useAdStageContext,Ue as useAdStageInstance};