@adstage/web-sdk 3.0.12 → 3.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1 +1 @@
1
- import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as r,useContext as i}from"react";function s(t,e){var n=I();return(s=function(t,e){return n[t-=276]})(t,e)}var o,a,c,d,l,u,p,h,f,g,m;function I(){var t=["21Ifvixt","441CDiVca","85420bfbssR","VIDEO","TABLET","543Gczpgi","16901038sMGsMJ","WEB","VIEWABLE","259640BnGvOZ","MOBILE","4558160tGOOJw","DESKTOP","3710UwaAsZ","15WwKwbJ","NATIVE","1036788gTxVLQ","INTERSTITIAL","1150308fSozrN","POPUP","BANNER","TEXT"];return(I=function(){return t})()}function v(t,e){const n=b();return(v=function(t,e){return n[t-=242]})(t,e)}!function(){for(var t=s,e=I();;)try{if(616682===-parseInt(t(277))/1+parseInt(t(294))/2*(parseInt(t(286))/3)+-parseInt(t(292))/4+-parseInt(t(295))/5*(-parseInt(t(297))/6)+-parseInt(t(281))/7*(-parseInt(t(290))/8)+-parseInt(t(282))/9*(-parseInt(t(283))/10)+parseInt(t(287))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(a=o||(o={}))[(c=s)(279)]="BANNER",a.POPUP=c(278),a[c(276)]="INTERSTITIAL",a[c(296)]=c(296),a[c(284)]=c(284),a[c(280)]=c(280),(l=d||(d={}))[(u=s)(288)]="WEB",l.MOBILE=u(291),(h=p||(p={}))[s(289)]="VIEWABLE",h.CLICK="CLICK",g=f||(f={}),m=s,g.DESKTOP=m(293),g[m(291)]=m(291),g[m(285)]=m(285);const y=v;function b(){const t=["getPageInfo","open","innerHTML","safeSetTextContent","readyState","9498HqbIDE","776518JDJZIx",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"1243482CzNrMg","safeGetElementById","getElementById","92048rUHADl",'❌ 컨테이너를 찾을 수 없습니다: "',"classList","getComputedStyle","getScrollInfo","2370fjmPbz","entries","add","safeAddEventListener"," (최대 ","pow","log","remove","createElement","safeGetComputedStyle","getViewportInfo","safeRemoveClass","querySelectorAll",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"addEventListener","⏳ 컨테이너 대기 중: ","error","referrer","waitForElement","getDocumentProperty","501844pyPSiH","documentElement","⏳ 컨테이너 대기 시작: ","15039081XcdCfE","497AoXtEF","DOM을 사용할 수 없는 환경입니다.","getWindowProperty","safeRemoveEventListener","scrollTop","번째 시도, ","innerHeight","safeCreateElement","undefined","title","✅ 컨테이너 즉시 발견: ","isBrowser","querySelector","setProperty","1015484JQAvLS","safeQuerySelectorAll","safeSetInnerHTML","style","ceil","isDOMReady","ms 경과)","safeApplyStyles","isSSR","canUseDOM"];return(b=function(){return t})()}!function(){const t=v,e=b();for(;;)try{if(468714===parseInt(t(264))/1+-parseInt(t(294))/2+-parseInt(t(266))/3+parseInt(t(248))/4+-parseInt(t(274))/5*(parseInt(t(263))/6)+-parseInt(t(298))/7*(parseInt(t(269))/8)+parseInt(t(297))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class w{static isBrowser(){const t=v;return typeof window!==t(242)&&typeof document!==t(242)}static[y(256)](){return!this[y(245)]()}static[y(257)](){const t=y;return this[t(245)]()&&void 0!==document[t(262)]}static[y(267)](t){const e=y;return this[e(257)]()?document[e(268)](t):null}static safeQuerySelector(t){const e=y;return this[e(257)]()?document[e(246)](t):null}static[y(249)](t){const e=y;return this[e(257)]()?Array.from(document[e(286)](t)):[]}static[y(305)](t){const e=y;return this[e(257)]()?document[e(282)](t):null}static[y(277)](t,e,n,r){const i=y;this[i(257)]()&&t&&t[i(288)](e,n,r)}static[y(301)](t,e,n,r){this.canUseDOM()&&t&&t.removeEventListener(e,n,r)}static[y(300)](t,e){return this[y(245)]()?window[t]??e:e}static[y(293)](t,e){return this.canUseDOM()?document[t]??e:e}static safeWindowOpen(t,e,n){const r=y;return this[r(245)]()?window[r(259)](t,e,n):null}static[y(283)](t){const e=y;return this.isBrowser()&&t?window[e(272)](t):null}static isDOMReady(){return!!this[y(257)]()&&"loading"!==document.readyState}static waitForDOM(){return new Promise(t=>{const e=v;this[e(257)]()?this[e(253)]()?t():this[e(277)](document,"DOMContentLoaded",()=>t()):t()})}static[y(255)](t,e){const n=y;this.canUseDOM()&&t&&Object[n(275)](e).forEach(([e,r])=>{const i=n;t[i(251)][i(247)](e,r)})}static safeAddClass(t,e){const n=y;this[n(257)]()&&t&&t[n(271)][n(276)](e)}static[y(285)](t,e){const n=y;this[n(257)]()&&t&&t[n(271)][n(281)](e)}static[y(261)](t,e){this.canUseDOM()&&t&&(t.textContent=e)}static[y(250)](t,e){const n=y;this[n(257)]()&&t&&(t[n(260)]=e)}static safeAppendChild(t,e){this[y(257)]()&&t&&e&&t.appendChild(e)}static safeRemoveChild(t,e){this.canUseDOM()&&t&&e&&t.removeChild(e)}static[y(258)](){const t=y;return{url:this[t(300)]("location",{href:""}).href,title:this[t(293)](t(243),""),referrer:this.getDocumentProperty(t(291),"")}}static[y(284)](){const t=y;return{width:this[t(300)]("innerWidth",0),height:this[t(300)](t(304),0),pixelRatio:this[t(300)]("devicePixelRatio",1)}}static[y(273)](){const t=y;return{scrollTop:this[t(257)]()?window.pageYOffset||document[t(295)][t(302)]:0,scrollLeft:this.getWindowProperty("pageXOffset",0)}}static async waitForElement(t,e={}){const n=y,{timeout:r=3e3,retryInterval:i=100,debug:s=!1}=e;if(!this[n(257)]())throw new Error(n(299));const o=document[n(268)](t);return o?(s&&console[n(280)](n(244)+t),o):(s&&console.log(n(296)+t+n(278)+r+"ms)"),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(252)](r/i),l=()=>{const n=a;c++;const u=document[n(268)](t);if(u)return s&&console.log("✅ 컨테이너 발견: "+t+" ("+c+n(303)+c*i+n(254)),void e(u);if(c>=d){const e=n(270)+t+n(287)+t+n(265)+r+"ms ("+c+"번 시도)";return s&&console[n(290)](e),void o(new Error(e))}s&&c%10==0&&console[n(280)](n(289)+t+" ("+c+"/"+d+")");const p=Math.min(i*Math[n(279)](1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async waitForElements(t,e={}){const n=y,r=t.map(t=>this[n(292)](t,e));return Promise.all(r)}}const k=S;!function(){const t=S,e=x();for(;;)try{if(459177===parseInt(t(135))/1*(parseInt(t(131))/2)+-parseInt(t(129))/3+parseInt(t(124))/4+parseInt(t(132))/5*(parseInt(t(122))/6)+parseInt(t(130))/7*(-parseInt(t(133))/8)+parseInt(t(123))/9*(-parseInt(t(125))/10)+parseInt(t(127))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const E=k(126);function A(){return E}function x(){const t=["5eOnTIk","8BVFFNp","AdStageSDK/","3acDOpf","userAgent"," AdStageSDK/","1889952NLjwZy","418005wavVnd","3468516fZBoBX","90hvqmKR","3.0.12","4051718kBazku","undefined","728910gobAPk","5614259BoHArq","247820CTjvAY"];return(x=function(){return t})()}function S(t,e){const n=x();return(S=function(t,e){return n[t-=122]})(t,e)}const T=C;function C(t,e){const n=R();return(C=function(t,e){return n[t-=487]})(t,e)}function R(){const t=["isBrowser","369SduEtB","timeZone","round","1756776FCPXhX","3490sswcTU","ios","66935dLgHkV","getScrollInfo"," .adstage-slider-wrapper","pixelRatio","getItem","userAgent","substr","28340jcoouZ","web","30605ZpHqXI","SSR","desktop","toLowerCase","effectiveType","generateSessionId","573977nSAziQ","android","ssr_device_","setItem","collectDeviceInfo","adstage_device_id","DateTimeFormat","isMobile","2176xNVRBB","now",'[data-adstage-slot-id="',"getPlatform","random","unknown","toString","1.0.0","test","session_","getViewportInfo","width",",y:","UTC","adstage_session_id","device_","safeGetElementById","height","19287hHatAz","getSlotPosition","platform","238382mzeVYL","generateDeviceId","top","safeQuerySelector","getBoundingClientRect","12FjsHwl"];return(R=function(){return t})()}!function(){const t=C,e=R();for(;;)try{if(519669===parseInt(t(524))/1+parseInt(t(496))/2+parseInt(t(503))/3*(parseInt(t(516))/4)+-parseInt(t(518))/5+-parseInt(t(501))/6*(-parseInt(t(506))/7)+-parseInt(t(532))/8*(-parseInt(t(493))/9)+parseInt(t(507))/10*(-parseInt(t(509))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class D{static[T(497)](){const t=T;if(!w[t(502)]())return t(526)+Date.now();const e=localStorage[t(513)](t(529));if(e)return e;const n=t(490)+Math[t(536)]().toString(36)[t(515)](2,9)+"_"+Date[t(533)]();return localStorage.setItem(t(529),n),n}static[T(523)](){const t=T;if(!w[t(502)]())return"ssr_session_"+Date[t(533)]();const e=sessionStorage[t(513)](t(489));if(e)return e;const n=t(541)+Math.random()[t(538)](36)[t(515)](2,9)+"_"+Date[t(533)]();return sessionStorage[t(527)](t(489),n),n}static isMobile(){const t=T;return!!w[t(502)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator[t(514)])}static[T(535)](){const t=T;if(!w.isBrowser())return"web";const e=navigator[t(514)][t(521)]();return/iphone|ipad|ipod/.test(e)?t(508):/android/[t(540)](e)?t(525):D[t(531)]()?t(517):t(520)}static[T(528)](){const t=T,e=w[t(542)]();return{deviceId:D[t(497)](),sessionId:D[t(523)](),osVersion:w[t(502)]()?navigator.platform:t(519),deviceModel:w[t(502)]()?navigator[t(495)]:"SSR",appVersion:t(539),sdkVersion:A(),language:w[t(502)]()&&navigator.language||"ko",country:"KR",ipAddress:"",userAgent:w[t(502)]()?navigator[t(514)]:t(519),timezone:w[t(502)]()?Intl[t(530)]().resolvedOptions()[t(504)]:t(488),viewportWidth:e[t(543)],viewportHeight:e[t(492)],screenWidth:w[t(502)]()?screen[t(543)]:0,screenHeight:w.isBrowser()?screen[t(492)]:0,colorDepth:w[t(502)]()?screen.colorDepth:24,pixelRatio:e[t(512)],connectionType:w[t(502)]()?navigator.connection?.[t(522)]||"unknown":t(537),platform:D.getPlatform()}}static[T(494)](t){const e=T;let n=w[e(491)](t);if(!n){const r=w[e(499)]("#"+t+e(511));r&&(n=r)}if(!n&&(n=w[e(499)](e(534)+t+'"]')),!n)return e(537);const r=n[e(500)](),i=w[e(510)]();return"x:"+Math[e(505)](r.left)+e(487)+Math[e(505)](r[e(498)]+i.scrollTop)}}function z(t,e){const n=P();return(z=function(t,e){return n[t-=409]})(t,e)}const L=z;!function(){const t=z,e=P();for(;;)try{if(472097===parseInt(t(416))/1*(parseInt(t(419))/2)+-parseInt(t(411))/3*(-parseInt(t(415))/4)+parseInt(t(425))/5*(-parseInt(t(417))/6)+parseInt(t(409))/7*(parseInt(t(424))/8)+parseInt(t(412))/9*(parseInt(t(420))/10)+-parseInt(t(418))/11+parseInt(t(410))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{static[L(423)](t,e){const n=L;if(!t)throw new Error(n(426));const r={"x-api-key":t,"Content-Type":e?.contentType||n(413)};return"undefined"!=typeof navigator&&(r["User-Agent"]=e?.[n(421)]||navigator[n(421)]),r}static[L(414)](t,e){const n=L,r=B[n(423)](t);return e?.[n(421)]&&(r[n(422)]=e[n(421)]),r}}function P(){const t=["15155nYysxq","API key is required","7HTnwwI","142932brBcyj","1427553FhFayB","3915SsobGw","application/json","createForEvents","4SmUzEr","854245uAizDH","1662YqwXxP","9013191jvNAri","2ucXiLl","5960qoQieK","userAgent","User-Agent","create","4238384jVHrZg"];return(P=function(){return t})()}function O(t,e){const n=_();return(O=function(t,e){return n[t-=363]})(t,e)}const U=O;function _(){const t=["2331332gGpNXI","getElementById","❌ Failed to track advertisement event:","stringify",'[data-adstage-slot-id="',"5taaxLO","number","log","statusText","containerId","📡 API Response Status: "," for ad ","POST","baseUrl","104SFIFHZ","adType","🚀 Sending advertisement event: "," in slot ","26808OfiWbp","getSlotPosition","slots","🌐 Full API call details:",". Skipping event tracking to prevent incorrect adType.","/advertisements/events/","parseNumericValue","replace","width","🔍 Debug info:","139473GYzDtZ","✅ Successfully tracked advertisement event: ","error","16693700lJvSdf","648673mlRyhw","sessionId","621942rPefht","32FKllsj","trackAdvertisementEvent","length","createForEvents","NOT_SET","...","url","height","platform","🚀 AdvertisementEventTracker: Processing ","warn","4364759GkHBNm","debug","querySelector"," (containerId: ","referrer","getPageInfo","now","apiKey"," - "];return(_=function(){return t})()}!function(){const t=O,e=_();for(;;)try{if(349676===-parseInt(t(395))/1+parseInt(t(377))/2*(-parseInt(t(381))/3)+parseInt(t(363))/4+parseInt(t(368))/5*(-parseInt(t(397))/6)+-parseInt(t(409))/7+-parseInt(t(398))/8*(parseInt(t(391))/9)+parseInt(t(394))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{constructor(t,e,n,r){const i=O;this[i(376)]=t,this[i(416)]=e,this.debug=n,this[i(383)]=r}async[U(399)](t,e,n){const r=U;try{this[r(410)]&&console[r(370)](r(407)+n+" event for ad "+t+r(380)+e);const i=this.slots.get(e);if(!i)return void(this.debug&&console[r(408)]("⚠️ Slot not found for slotId: "+e+r(385)));if(!(document[r(364)](i.containerId)||document[r(411)](r(367)+e+'"]')))return void(this[r(410)]&&console[r(408)]("⚠️ DOM element not found for slotId: "+e+r(412)+i[r(372)]+"). Skipping event tracking."));const s=D.collectDeviceInfo(),o={adType:i[r(378)],platform:s[r(406)],deviceId:s.deviceId,deviceInfo:s,pageUrl:w[r(414)]()[r(404)],pageTitle:w.getPageInfo().title,referrer:w[r(414)]()[r(413)],slotId:e,slotPosition:D[r(382)](i.containerId),slotWidth:M[r(387)](i[r(389)]),slotHeight:M[r(387)](i[r(405)]),sessionId:s[r(396)],pageLoadTime:performance[r(415)](),metadata:{eventType:n,sdkVersion:A(),timestamp:Date.now()},...n===p.VIEWABLE&&{isViewable:!0,iabCompliant:!0}},a=this[r(376)]+r(386)+t+"/"+n,c=B[r(401)](this[r(416)],o);this[r(410)]&&(console.log(r(379)+n+r(374)+t,{url:a,headers:c,eventData:o}),console.log(r(384),{method:r(375),url:a,hasApiKey:!!this[r(416)],bodySize:JSON[r(366)](o)[r(400)]}));const d=await fetch(a,{method:"POST",headers:c,body:JSON[r(366)](o)});if(this[r(410)]&&console.log(r(373)+d.status+" "+d.statusText,{url:a,ok:d.ok}),!d.ok){const t=await d.text();throw new Error("API request failed: "+d.status+" "+d[r(371)]+r(417)+t)}this[r(410)]&&console[r(370)](r(392)+n+r(374)+t)}catch(i){console.error(r(365),i),console[r(393)](r(390),{baseUrl:this[r(376)],apiKey:this[r(416)]?this[r(416)].substring(0,8)+r(403):r(402),url:this.baseUrl+r(386)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=U;if(typeof t===e(369))return t;if("string"==typeof t){const n=parseFloat(t[e(388)](/px$/,""));return isNaN(n)?0:n}return 0}}function N(t,e){var n=V();return(N=function(t,e){return n[t-=195]})(t,e)}var F=N;function V(){var t=["initIntersectionObserver","observe","intersectionRatio","225FvJfZm","11iIwkwC","visible","815700epPAFs","onViewableCallback","forEach","visibilityState","14mzpbMV","IntersectionObserver","IntersectionObserver not supported, viewability tracking disabled","289648SQpHMz","disconnect","handleIntersection","3467295XKFLGu","109900iwsaKB","5omnpBW","2696892AVbBDZ","observer","632968JjSHdk","isViewableTriggered","6jKRyYw","173444KUMbeq","warn"];return(V=function(){return t})()}!function(){for(var t=N,e=V();;)try{if(414750===-parseInt(t(214))/1*(-parseInt(t(220))/2)+parseInt(t(219))/3*(parseInt(t(217))/4)+-parseInt(t(212))/5+-parseInt(t(202))/6*(-parseInt(t(206))/7)+parseInt(t(209))/8+parseInt(t(199))/9*(parseInt(t(213))/10)+parseInt(t(200))/11*(-parseInt(t(215))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class H{constructor(t,e){var n=N;this[n(216)]=null,this[n(218)]=!1,this.element=t,this.onViewableCallback=e,this[n(196)]()}[F(196)](){var t=F;t(207)in window?(this[t(216)]=new IntersectionObserver(e=>this[t(211)](e),{threshold:.5,rootMargin:"0px"}),this[t(216)][t(197)](this.element)):console[t(195)](t(208))}[F(211)](t){var e=F;t[e(204)](t=>{var n=e;t[n(198)]>=.5&&this.isDocumentVisible()&&!this[n(218)]&&(this.isViewableTriggered=!0,this[n(203)]&&this[n(203)]())})}isDocumentVisible(){var t=F;return!document.hidden&&document[t(205)]===t(201)}destroy(){var t=F;this.observer&&(this[t(216)][t(210)](),this[t(216)]=null)}}const K=W;!function(){const t=W,e=Z();for(;;)try{if(680101===-parseInt(t(495))/1*(parseInt(t(505))/2)+parseInt(t(497))/3*(-parseInt(t(491))/4)+parseInt(t(498))/5*(-parseInt(t(503))/6)+-parseInt(t(506))/7*(parseInt(t(508))/8)+parseInt(t(502))/9+parseInt(t(509))/10+parseInt(t(513))/11*(parseInt(t(492))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const j={production:K(511),beta:"https://beta-api.adstage.app"};function W(t,e){const n=Z();return(W=function(t,e){return n[t-=489]})(t,e)}function Z(){const t=["5577120ieCmOP","setBaseUrl","https://api.adstage.app","startsWith","28893788zOVCNF","/advertisements/events","detail","4iKAOvH","12TRGSQN","custom","events","5739QtdrRg","/advertisements","1977855HxHzmR","494245FvOwsx","/events/track","baseUrl","advertisements","1234611ycznOa","18hRXRJV","/events/register/attribution","222oeadpa","217hgonVX","production","270616BowrFB"];return(Z=function(){return t})()}K(507);const G={advertisements:{list:"/advertisements/list",detail:K(496),events:K(489)},events:{track:K(499),registerAttribution:K(504)}};class q{constructor(t){const e=K;this[e(501)]={list:()=>""+this[e(500)]+G[e(501)].list,detail:t=>""+this[e(500)]+G.advertisements[e(490)]+"/"+t,events:(t,n)=>""+this[e(500)]+G[e(501)][e(494)]+"/"+t+"/"+n},this[e(494)]={track:()=>""+this[e(500)]+G.events.track,registerAttribution:()=>""+this[e(500)]+G[e(494)].registerAttribution},this[e(500)]=t||j[e(507)]}[K(510)](t){this[K(500)]=t}getBaseUrl(){return this[K(500)]}[K(493)](t){const e=K;return""+this[e(500)]+(t[e(512)]("/")?t:"/"+t)}}const X=new q;var J=Y;function Y(t,e){var n=Q();return(Y=function(t,e){return n[t-=382]})(t,e)}function Q(){var t=["log","trackInitialSlideViewable","trackSlideViewable","545591eNccMw","VIEWABLE","3823355AGpKim","8GKZExI","1268736dCBKCy","🎯 Triggering VIEWABLE event for slide change: ad ","7036862fZLlJw","_id","7576434pNesWL","4106060lXJUpF","1819212XTPVPp"," (index: 0) in slot: "," (index: "];return(Q=function(){return t})()}!function(){for(var t=Y,e=Q();;)try{if(782556===-parseInt(t(393))/1+parseInt(t(387))/2+parseInt(t(397))/3+-parseInt(t(386))/4+parseInt(t(395))/5+parseInt(t(385))/6+parseInt(t(383))/7*(-parseInt(t(396))/8))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[J(392)](t,e,n,r,i=!1){var s=J;i&&console[s(390)](s(382)+t[s(384)]+s(389)+n+") in slot: "+e.id),r(t[s(384)],e.id,p[s(394)])}static[J(391)](t,e,n,r=!1){var i=J;r&&console.log("🎯 Triggering initial VIEWABLE event: ad "+t[i(384)]+i(388)+e.id),n(t._id,e.id,p[i(394)])}}const tt=nt;function et(){const t=["_id"," -> ","293112vPsvEa","toLowerCase","3542294rJHFjf"," ad clicked: ","6FMitlk","log","42820vjTXpo","linkUrl","forEach","isClickable","36WINwuT","1690805MIfrKT","1374228jKPPSa","505568KRCvVH","click","🔗 ","CLICK","open","adType","addClickEventForRenderer","style","stopPropagation","cursor","pointer","preventDefault","8hIQlmZ","addEventListener","addClickEventForSlider","3058idjXTH","81843QzZCXv","_blank"];return(et=function(){return t})()}function nt(t,e){const n=et();return(nt=function(t,e){return n[t-=373]})(t,e)}!function(){const t=nt,e=et();for(;;)try{if(277554===-parseInt(t(386))/1+-parseInt(t(373))/2+-parseInt(t(402))/3*(parseInt(t(383))/4)+parseInt(t(384))/5*(parseInt(t(377))/6)+parseInt(t(375))/7*(-parseInt(t(398))/8)+parseInt(t(385))/9+parseInt(t(379))/10*(parseInt(t(401))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class rt{static addClickEvent(t,e,n,r,i=!1,s){const o=nt;e[o(380)]&&(t[o(393)].cursor="pointer",t[o(399)](o(387),t=>{const a=o;if(t[a(397)](),t[a(394)](),r&&r(e._id,n.id,p[a(389)]),window[a(390)](e[a(380)],a(403)),i){const t=s||String(n[a(391)]).toLowerCase();console[a(378)](a(388)+t+a(376)+e[a(404)]+a(405)+e[a(380)])}}))}static[tt(392)](t,e,n,r,i=!1,s){const o=tt;e.linkUrl&&(t.style[o(395)]=o(396),t[o(399)](o(387),t=>{const a=o;t.preventDefault(),t.stopPropagation();if(r()(e[a(404)],n.id,p[a(389)]),window.open(e[a(380)],"_blank"),i){const t=s||String(n[a(391)])[a(374)]();console[a(378)]("🔗 "+t+a(376)+e._id+a(405)+e[a(380)])}}))}static[tt(400)](t,e,n,r,i=!1,s){this.addClickEvent(t,e,n,r,i,s)}static[tt(382)](t){return Boolean(t[tt(380)])}static addClickEventsBatch(t,e,n,r,i=!1,s){t[tt(381)]((t,o)=>{const a=e[o];a&&this.addClickEvent(t,a,n,r,i,s)})}}const it=ot;function st(){const t=["2435776mirmHn","Text Ad","textContent","translateX(-","adType","0.7","block","addTouchSupport","\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 ","div","toLowerCase","removeChild","contains","add","objectFit","8csBLrR","addEventListener","VIDEO","width","length","#cccccc","touches","children","preventDefault","opacity","white","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","trackSlideViewable","100px","classList","touchend","cssText","mouseleave","borderColor","839588govziP","overflow","transition","\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ","background","117454NSxGEE","appendChild","transform 0.4s ease-out","auto","#666666","every","1px solid #666","hidden","string","200px","#999999","33dpvmVP","clientX","flex","video","changedTouches","className","createSimpleAdElement","remove","relative","style","createMinimalDotIndicator","19968310pwOkac","adstage-dots","entries","175WHcGWB","0.9","2392029AyMbrI","adstage-slider-wrapper","adstage-slide",".adstage-dot","data-adstage-slot-id","border","button","active","color","Banner Ad","getBoundingClientRect","imageUrl","18138ZOuUuB","height","_id","includes","click","touchstart","videoUrl","padding","#f0f0f0","src","body","inline-block","forEach","TEXT","3109392duxgnp","addClickEventForSlider","100%","1px dashed #ccc","center","display","setAttribute"," Ad","mouseenter","createElement","adstage-ad adstage-","cover","backgroundColor","setProperty","8px","adstage-slide-container"];return(st=function(){return t})()}function ot(t,e){const n=st();return(ot=function(t,e){return n[t-=408]})(t,e)}!function(){const t=ot,e=st();for(;;)try{if(569040===-parseInt(t(434))/1+parseInt(t(439))/2*(-parseInt(t(450))/3)+parseInt(t(492))/4+-parseInt(t(464))/5*(parseInt(t(478))/6)+-parseInt(t(508))/7*(parseInt(t(415))/8)+-parseInt(t(466))/9+parseInt(t(461))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class at{static[it(456)](t,e){const n=it,r=document[n(501)](n(409));switch(r[n(455)]=n(502)+String(t.adType)[n(410)](),r[n(498)]("data-adstage-ad-id",e[n(480)]),r.setAttribute(n(470),t.id),r[n(459)].display=n(514),r.style[n(418)]=n(494),r[n(459)][n(479)]="auto",t[n(512)]){case o.BANNER:if(e[n(477)]){const t=document[n(501)]("img");t[n(487)]=e[n(477)],t.style[n(418)]=n(494),t.style.height=n(442),t.style[n(414)]=n(503),r[n(440)](t)}else r[n(459)][n(479)]=n(428),r.style[n(504)]=n(486),r.style.border=n(495),r.textContent=n(475);break;case o[n(417)]:if(e[n(484)]){const t=document[n(501)](n(453));t.src=e[n(484)],t.style[n(418)]="100%",t.style.height=n(442),r[n(440)](t)}else r[n(459)][n(479)]=n(448),r[n(459)][n(504)]="#000",r[n(459)][n(471)]=n(445),r[n(510)]="Video Ad",r[n(459)][n(474)]=n(425);break;case o[n(491)]:if(e[n(510)]){const t=document.createElement(n(409));t[n(510)]=e[n(510)]||"",t[n(459)][n(485)]=n(506),t[n(459)].fontSize="14px",r.appendChild(t)}else r[n(459)].height="50px",r.style[n(485)]="8px",r[n(510)]=n(509);break;default:r[n(459)][n(479)]=n(428),r[n(459)][n(471)]=n(495),r[n(459)].backgroundColor="#f9f9f9",r.textContent=t[n(512)]+n(499)}return r}static createSliderContainer(t,e,n,r,i=!1){const s=it,a=document.createElement(s(409));a[s(455)]=s(467);const c={position:s(458),overflow:s(446)};if(t[s(418)]&&0!==t[s(418)]){let e;e=typeof t[s(418)]===s(447)&&(t.width[s(481)]("px")||t[s(418)].includes("%"))?t[s(418)]:t[s(418)]+"px",c.width=e,c[s(497)]=s(489)}else c[s(497)]="inline-block";if(t[s(479)]&&0!==t[s(479)]){const e=typeof t[s(479)]===s(447)?t.height:t[s(479)]+"px";c[s(479)]=e}Object[s(463)](c)[s(490)](([t,e])=>{a[s(459)].setProperty(t,e)});const d=!t[s(418)]||0===t[s(418)],l=!t[s(479)]||0===t.height;if(d||l){const n=document[s(501)](s(409));if(n.style[s(431)]=s(426),!d&&t.width){let e;e=typeof t.width===s(447)&&(t.width.includes("px")||t[s(418)][s(481)]("%"))?t.width:t[s(418)]+"px",n[s(459)][s(418)]=e,n.style.whiteSpace="normal"}document[s(488)][s(440)](n);let r=0,i=0;e.forEach(e=>{const o=s,a=this[o(456)](t,e);n[o(440)](a);const c=a[o(476)]();c.width>r&&(r=c[o(418)]),c[o(479)]>i&&(i=c[o(479)]),n[o(411)](a)}),d&&r>0&&(a[s(459)][s(418)]=r+"px",c.width=r+"px"),l&&i>0&&(a.style[s(479)]=i+"px",c[s(479)]=i+"px"),document.body.removeChild(n)}const u=[...e,e[0]],p=document[s(501)](s(409));p[s(455)]=s(507);const h={display:s(452),transition:s(441),width:100*u[s(419)]+"%"};t[s(479)]&&0!==t[s(479)]&&(h[s(479)]=s(494)),Object[s(463)](h)[s(490)](([t,e])=>{const n=s;p[n(459)][n(505)](t,e)}),u[s(490)]((e,n)=>{const o=s,a=document[o(501)](o(409));a[o(455)]=o(468);const c={width:100/u[o(419)]+"%","flex-shrink":"0",display:"flex","align-items":o(496),"justify-content":o(496)};t[o(479)]&&0!==t[o(479)]&&(c.height=o(494)),Object[o(463)](c)[o(490)](([t,e])=>{const n=o;a[n(459)][n(505)](t,e)});const d=this[o(456)](t,e);rt[o(493)](d,e,t,r,i,String(t[o(512)])[o(410)]()),a[o(440)](d),p.appendChild(a)});const f=e[s(444)](t=>t[s(512)]===o.TEXT)?null:this[s(460)](e.length);let g=0;const m=e[s(419)],I=1e3*(n?.autoSlideInterval||3),v=(n,o=!1)=>{const a=s;g=n,p[a(459)][a(436)]=o?"none":"transform 0.4s ease-out",p[a(459)].transform=a(511)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f.querySelectorAll(a(469))[a(490)]((t,e)=>{const n=a,r=t;e===c?(r[n(429)][n(413)](n(473)),r.style[n(438)]="#666666",r[n(459)][n(433)]=n(443),r[n(459)][n(424)]="1"):(r[n(429)][n(457)](n(473)),r[n(459)].background="transparent",r.style[n(433)]=n(420),r.style[n(424)]=n(513))})}$[a(427)](e[c],t,c,r,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(s(469))[s(490)]((t,e)=>{const n=s;t[n(416)](n(482),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a.addEventListener(s(500),()=>{clearInterval(b)}),a.addEventListener(s(432),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[s(515)](p,v,()=>g,m,y),a.appendChild(p),f&&a[s(440)](f),v(0),(!t[s(418)]||0===t[s(418)])&&setTimeout(()=>{const e=s,n=p[e(422)][0];if(n){const r=n.children[0];if(r){const n=r[e(476)]();a.style.width=n.width+"px",(!t[e(479)]||0===t[e(479)])&&(a[e(459)].height=n[e(479)]+"px"),a[e(459)][e(435)]=e(446)}}},10),a}static[it(460)](t){const e=it,n=document[e(501)]("div");n[e(455)]=e(462),n.style[e(431)]=e(408);for(let r=0;r<t;r++){const t=document.createElement(e(472));t[e(455)]="adstage-dot",t[e(459)].cssText=e(437),t[e(416)](e(500),()=>{const n=e;!t[n(429)][n(412)](n(473))&&(t.style[n(433)]=n(449),t[n(459)][n(424)]=n(465))}),t.addEventListener(e(432),()=>{const n=e;!t[n(429)][n(412)](n(473))&&(t[n(459)][n(433)]=n(420),t[n(459)][n(424)]="0.7")}),n.appendChild(t)}return n}static[it(515)](t,e,n,r,i){const s=it;let o=0,a=!1;t[s(416)](s(483),t=>{o=t[s(421)][0].clientX,a=!0}),t[s(416)]("touchmove",t=>{a&&t[s(423)]()}),t.addEventListener(s(430),t=>{const c=s;if(!a)return;a=!1;const d=t[c(454)][0][c(451)],l=o-d;if(Math.abs(l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:r-1)}}})}}const ct=dt;function dt(t,e){const n=lt();return(dt=function(t,e){return n[t-=193]})(t,e)}function lt(){const t=["36799sCrTVE","5OXhAhU","271708fKisxv","clear","log"," in slot ","1007512ODUtLH","viewableTracker","has","13383ppEihb","4ciLjgz","1032528fGTfxU","843840ECjVuJ","Duplicate viewable blocked for ad ","✅ New viewable recorded for ad ","59997rOodCZ","delete","clearAdViewable","isDuplicateViewable","810ehFplO","472KMsTXv"];return(lt=function(){return t})()}!function(){const t=dt,e=lt();for(;;)try{if(224183===-parseInt(t(210))/1*(-parseInt(t(205))/2)+-parseInt(t(207))/3+parseInt(t(197))/4*(-parseInt(t(196))/5)+parseInt(t(206))/6+-parseInt(t(195))/7*(-parseInt(t(194))/8)+-parseInt(t(204))/9*(parseInt(t(193))/10)+parseInt(t(201))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static[ct(213)](t,e,n=!1){const r=ct,i=t+"_"+e;return ut[r(202)][r(203)](i)?(n&&console[r(199)](r(208)+t+r(200)+e),!0):(ut[r(202)].add(i),n&&console[r(199)](r(209)+t+r(200)+e),!1)}static[ct(198)](){const t=ct;ut[t(202)][t(198)]()}static[ct(212)](t,e){const n=ct,r=t+"_"+e;ut[n(202)][n(211)](r)}}ut[ct(202)]=new Set;const pt=ht;function ht(t,e){const n=ft();return(ht=function(t,e){return n[t-=202]})(t,e)}function ft(){const t=["div","error",'[data-adstage-container="true"]',"border","borderRadius","getElementById","data-adstage-type","color","createEmptyContainer",") - Mode: ","1005655VBXwpJ","advertisementEventTracker","none","data-adstage-container","alignItems","debug","1394421TBKvIc","data-adstage-empty",".adstage-",".adstage-slot","renderFallback"," event for ad ","justifyContent","<span>Loading ","opacity","✅ New viewable recorded for ad ","570660JCGCyz","display","fontFamily","adstage-slot adstage-","🚫 Duplicate viewable blocked for ad ","📊 Advertisement event tracked: ","adstage-official","isEmpty","createEventTrackingCallback"," ad...</span>","center","cssText","advertisement","rgba(0, 0, 0, 0.02)","style","): ","adType","\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*="banner"]',"parentElement","adstage-class","4px","hasAttribute","11px",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>',"log",'[class*="ad"]',"adstage-slot adstage-empty adstage-","📏 Using default height ","394vwnSmT","2px dashed #e74c3c","contains","createPlaceholder","getDefaultHeight",'div[style*="min-height"]','[class*="container"]',"transparent",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"❌ Failed to track ","applyPlaceholderStyle","createElement","number","true"," for ad ","100%","appendChild","generic"," container: ","invisible","monospace","containerId","closest","#e74c3c"," for ","subtle","trackAdvertisementEvent","flex","⚠️ Created empty "," x ","warn","backgroundColor","setAttribute","170198hIRWEp","width","3763328gfxZaU",'div[style*="height"]',"height","filter","2307QzfaGn","minimal","unknown","innerHTML","auto","🔄 Starting advertisement event tracking: ","calculateAdSize","classList","minHeight","925136swCRxO","⚠️ ","className","toLowerCase","\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 ","getContainerHeight","px)","adstage-slot","string"," in slot "];return(ft=function(){return t})()}!function(){const t=ht,e=ft();for(;;)try{if(127245===-parseInt(t(205))/1+parseInt(t(285))/2*(parseInt(t(211))/3)+-parseInt(t(220))/4+parseInt(t(240))/5+-parseInt(t(256))/6+-parseInt(t(246))/7+parseInt(t(207))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt{constructor(t,e=!1,n){const r=ht;this[r(272)]=t,this[r(245)]=e,this.advertisementEventTracker=n||null}[pt(288)](t,e,n,r){const i=pt,s=document[i(296)](i(230));s.id=e,s[i(222)]=i(259)+String(this[i(272)])[i(223)](),s.setAttribute(i(243),i(298)),s.setAttribute(i(236),String(this[i(272)])),s[i(204)]("data-adstage-slot",e);const{width:o,height:a}=this[i(217)](t,n,r)||{width:i(300),height:this[i(289)]()};s[i(270)][i(206)]=o,s[i(270)][i(209)]=a;const c=r?.placeholderMode||n.placeholderMode||i(304);this[i(295)](s,c),t[i(301)](s),this[i(245)]&&console[i(281)]("📦 Placeholder created for "+this[i(272)]+" slot: "+e+" ("+o+i(314)+a+i(239)+c)}[pt(295)](t,e){const n=pt;switch(e){case n(304):t[n(270)][n(203)]=n(292),t[n(270)][n(233)]=n(242),t[n(270)][n(254)]="0",t.innerHTML="";break;case n(292):t[n(270)].backgroundColor=n(292),t[n(270)][n(233)]="none",t[n(270)][n(257)]="block",t[n(214)]="";break;case n(310):t.style[n(203)]=n(269),t[n(270)][n(233)]="none",t[n(270)][n(234)]=n(277),t[n(270)][n(257)]="flex",t.style.alignItems="center",t[n(270)][n(252)]=n(266),t.innerHTML=n(293);break;case n(212):t[n(270)][n(203)]="rgba(248, 249, 250, 0.5)",t[n(270)].border="1px solid rgba(0, 0, 0, 0.08)",t[n(270)].borderRadius="6px",t[n(270)].display=n(312),t[n(270)][n(244)]=n(266),t.style[n(252)]=n(266),t[n(214)]=n(280);break;case n(245):t[n(270)][n(233)]=n(286),t[n(270)][n(257)]="flex",t[n(270)][n(244)]="center",t.style[n(252)]="center",t[n(270)][n(203)]="rgba(231, 76, 60, 0.1)",t[n(270)][n(237)]=n(308),t[n(270)][n(258)]=n(305),t[n(270)].fontSize=n(279),t[n(214)]=n(253)+this[n(272)]+n(265);break;default:t[n(270)][n(233)]="1px dashed #ccc",t[n(270)].display=n(312),t[n(270)][n(244)]=n(266),t[n(270)][n(252)]=n(266),t[n(270)][n(203)]="#f9f9f9",t.style[n(237)]="#666",t.innerHTML=n(253)+this[n(272)]+n(265)}}calculateAdSize(t,e,n){const r=pt,i=e.width,s=e[r(209)];let o,a;if(o=typeof i===r(297)?i+"px":"string"==typeof i?i:r(300),typeof s===r(297))a=s+"px";else if(typeof s===r(228)&&s!==r(300)&&s!==r(215))a=s;else{const e=this.getContainerHeight(t);e>0?(a=r(300),(n?.[r(245)]||this.debug)&&console[r(281)]("📏 Using 100% height (container: "+e+r(226))):(a=this[r(289)](),(n?.[r(245)]||this[r(245)])&&console.log(r(284)+a+r(309)+this[r(272)]))}return{width:o,height:a}}[pt(225)](t){const e=pt,n=window.getComputedStyle(t),r=parseFloat(n[e(209)]);if(!r||0===r){const r=parseFloat(n[e(219)]);if(r>0)return r;if(t[e(270)].height&&t[e(270)].height!==e(215)){const n=parseFloat(t[e(270)][e(209)]);if(n>0)return n}const i=t.getAttribute(e(209));if(i){const t=parseFloat(i);if(t>0)return t}}return r||0}[pt(264)](){return async(t,e,n)=>{const r=ht;if(n===p.VIEWABLE){if(ut.isDuplicateViewable(t,e,this[r(245)]))return void(this[r(245)]&&console.log(r(260)+t+r(229)+e));this[r(245)]&&console.log(r(255)+t+" in slot "+e)}if(this[r(241)])try{this[r(245)]&&console[r(281)](r(216)+n+r(299)+t+r(229)+e),await this[r(241)][r(311)](t,e,n),this[r(245)]&&console.log(r(261)+n+r(299)+t+r(229)+e)}catch(e){this[r(245)]&&console[r(231)](r(294)+n+r(251)+t+":",e)}else this[r(245)]&&console[r(202)]("⚠️ AdvertisementEventTracker not available for "+n+" event")}}[pt(250)](t){const e=pt,n=document[e(235)](t.id);if(n){const r=[...[n.querySelector(e(232)),n[e(307)](e(232)),n][e(210)](t=>t&&t[e(278)](e(243))),...[n[e(307)](e(249)),n[e(307)](e(248)+String(this[e(272)]).toLowerCase()),n[e(307)](e(282)),n[e(307)](e(274)),n[e(307)](e(291)),n[e(307)](e(208)),n[e(307)](e(290)),n[e(275)]].filter(Boolean)][0];if(r){let n=e(213);n=r[e(278)](e(243))?e(262):r[e(218)][e(287)](e(227))?e(276):e(302),r[e(270)][e(267)]+=e(273),r[e(214)]="",r.setAttribute(e(247),"true"),this[e(245)]&&console[e(202)](e(221)+this[e(272)]+" container collapsed ("+n+e(271)+t.id,r)}else this.createEmptyContainer(t)}t[e(268)]=void 0,t[e(263)]=!0}[pt(238)](t){const e=pt,n=document[e(235)](t[e(306)]);if(n){n[e(214)]="";const r=document[e(296)]("div");r.id=t.id,r.className=e(283)+String(this[e(272)]).toLowerCase(),r[e(204)](e(243),e(298)),r.setAttribute(e(247),e(298)),r[e(204)]("data-adstage-slot",t.id),r[e(270)][e(267)]=e(224),n[e(301)](r),this[e(245)]&&console[e(202)](e(313)+this.adType+e(303)+t.id)}}[pt(281)](t,...e){this[pt(245)]&&console.log("["+this.adType+"] "+t,...e)}}const mt=It;function It(t,e){const n=vt();return(It=function(t,e){return n[t-=464]})(t,e)}function vt(){const t=["height"," ads: ","267780iobAUD","values","config","calculateAdSize","🎠 Banner carousel created for slot: ","selectOptimalSizeStrategy","debug","getDefaultHeight","2606RBDbbl","dominant","value","Container not found: ","renderAdElement","onerror","objectFit","getElementById","optimizedHeight","containerId","addClickEventForRenderer","title"," ads (optimized: ","optimizeContainerForBannerAds","width","fulfilled","parentElement","appendChild","from","Banner","objectPosition","max","adstage-ad adstage-banner-ad","center","📊 Using standard ratio: ","977PpMVxk","Banner container optimization failed, using default size:","backgroundColor","❌ Failed to load optimized banner image:"," with ","imageUrl","calculateOptimalContainerSize","Image URL is not provided","100%","div","toFixed","createEventTrackingCallback","_id","calculateOptimalHeight","8px","1430oaZkyW","866978hnoWco","default","📦 Banner container dimensions: ","3:2","warn","<div>","Banner Ad",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"4542234IZLuDv","1:1","</div>","style","250px","abs","filter","className","src","ratio","📸 Banner image dimensions: ","🎨 Banner image style applied: objectFit=","map","log","aspectRatio","Failed to calculate optimal banner size, using defaults:","onload","set","getBoundingClientRect","10557mgQhSC","Banner Advertisement","borderRadius","contain","count","BANNER","18MygYbv","block","display","cover","some","🔧 Banner container optimized for ","average","28NZpjLf","reduce","loadImageDimensions","toString","createElement","allSettled","common","Failed to load image: ","naturalHeight","209085TMSLhN","1552HljsCy","forEach","renderOptimizedBannerImage","round","img","8064530UOFDPC","alt","name","innerHTML","applyOptimizedImageStyle"," (avg: ","length"];return(vt=function(){return t})()}!function(){const t=It,e=vt();for(;;)try{if(771575===-parseInt(t(567))/1*(parseInt(t(542))/2)+-parseInt(t(478))/3+parseInt(t(510))/4*(-parseInt(t(519))/5)+parseInt(t(503))/6*(parseInt(t(470))/7)+-parseInt(t(520))/8*(parseInt(t(497))/9)+parseInt(t(525))/10+parseInt(t(469))/11*(parseInt(t(534))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class yt extends gt{constructor(t=!1,e){super(o[It(502)],t,e)}[mt(541)](){return mt(482)}async[mt(546)](t,e){const n=mt,r=document[n(549)](t[n(551)]);if(!r)return;const i=document[n(514)](n(576));i[n(485)]=n(564);const s=t[n(550)],o=r[n(558)]||r;if(s)i[n(481)].width="100%",i[n(481)][n(532)]=String(s);else{const e=t[n(536)],r={width:e?.[n(556)],height:e?.height},{width:s,height:a}=this[n(537)](o,r,{debug:this[n(540)]});i[n(481)][n(556)]=s,i.style.height=a}e[n(572)]?await this[n(522)](i,e,t):i.innerHTML=n(475)+(e[n(553)]||n(476))+n(480),rt[n(552)](i,e,t,()=>this.createEventTrackingCallback(),this.debug,n(561)),r[n(528)]="",r[n(559)](i)}async renderMultipleAds(t,e){const n=mt,r=document.getElementById(t.containerId);if(!r)throw new Error(n(545)+t[n(551)]);await this[n(555)](t,e);const i=this[n(465)](),s={autoSlideInterval:(t[n(536)]?.slideInterval||5e3)/1e3,...t[n(536)],optimizedHeight:t[n(550)],aspectRatio:t[n(492)]},o=at.createSliderContainer(t,e,s,i,this.debug);o&&(r.innerHTML="",r.appendChild(o),this.debug&&console[n(491)](n(538)+t.id+n(571)+e[n(531)]+n(554)+(t[n(550)]||n(471))+")"))}async[mt(573)](t,e){const n=mt;if(!t[n(531)])return{width:"100%",height:this[n(541)](),aspectRatio:16/9};try{const r=(await Promise[n(515)](t[n(484)](t=>t.imageUrl)[n(490)](t=>this[n(512)](t[n(572)]))))[n(484)](t=>t.status===n(557))[n(490)](t=>t[n(544)]);if(0===r[n(531)])return{width:"100%",height:this[n(541)](),aspectRatio:16/9};const i=this[n(539)](r),s=this[n(467)](r,e,i);return this[n(540)]&&console.log("📐 Optimal banner container calculated: "+e+"x"+s+" (strategy: "+i+")"),{width:n(575),height:s+"px",aspectRatio:e/s}}catch(t){return console[n(474)](n(493),t),{width:n(575),height:this[n(541)](),aspectRatio:16/9}}}async[mt(555)](t,e){const n=mt;try{const r=document[n(549)](t.containerId),i=document[n(549)](t.id);if(!r||!i)return;const s=r[n(496)]().width||300,o=await this[n(573)](e,s);i[n(481)][n(532)]=o.height,t.optimizedHeight=o[n(532)],t[n(492)]=o[n(492)],this[n(540)]&&console[n(491)](n(508)+e[n(531)]+n(533)+o.height)}catch(t){console[n(474)](n(568),t)}}selectOptimalSizeStrategy(t){const e=mt,n=t[e(490)](t=>t[e(556)]/t[e(532)]),r=new Map;n[e(521)](t=>{const n=e,i=(Math.round(10*t)/10)[n(513)]();r[n(495)](i,(r.get(i)||0)+1)});const i=Math[e(563)](...r[e(535)]()),s=t.length;if(i/s>=.7)return e(543);const o=[16/9,4/3,1,1.5];return n[e(484)](t=>o[e(507)](n=>Math[e(483)](t-n)<.1))[e(531)]/s>=.5?e(516):"average"}[mt(467)](t,e,n){const r=mt,i=t.map(t=>t.width/t.height);switch(n){case r(543):{const t=new Map;i[r(521)](e=>{const n=r,i=Math[n(523)](10*e)/10,s=i[n(513)](),o=t.get(s);o?o[n(501)]++:t.set(s,{ratio:i,count:1})});const n=Array[r(560)](t[r(535)]())[r(511)]((t,e)=>e[r(501)]>t[r(501)]?e:t);return Math.round(e/n[r(487)])}case r(516):{const t=[{ratio:16/9,name:"16:9"},{ratio:4/3,name:"4:3"},{ratio:1,name:r(479)},{ratio:1.5,name:r(473)}],n=i[r(511)]((t,e)=>t+e,0)/i[r(531)],s=t[r(511)]((t,e)=>Math[r(483)](e[r(487)]-n)<Math.abs(t[r(487)]-n)?e:t);return this[r(540)]&&console[r(491)](r(566)+s[r(527)]+r(530)+n[r(464)](2)+")"),Math.round(e/s[r(487)])}case r(509):default:{const t=i[r(511)]((t,e)=>t+e,0)/i.length;return Math.round(e/t)}}}[mt(512)](t){return new Promise((e,n)=>{const r=It,i=new Image;i[r(494)]=()=>{const t=r;e({width:i.naturalWidth,height:i[t(518)]})},i[r(547)]=()=>{n(new Error(r(517)+t))},i[r(486)]=t})}[mt(529)](t,e,n){const r=mt,i=e/n;Math.abs(i-1)<.1?(t[r(481)][r(548)]=r(506),t.style[r(562)]=r(565)):i>1.3?(t[r(481)][r(548)]=r(500),t[r(481)].objectPosition=r(565),t[r(481)][r(569)]="#f0f0f0"):i<.7?(t[r(481)][r(548)]="cover",t.style[r(562)]=r(565)):(t[r(481)][r(548)]=r(506),t.style[r(562)]="center"),this[r(540)]&&console[r(491)](r(489)+t.style[r(548)]+", ratio="+i.toFixed(2))}async[mt(522)](t,e,n){const r=mt,i=document[r(514)](r(524));i[r(481)].width=r(575),i[r(481)][r(532)]=r(575),i.style[r(505)]=r(504),i[r(481)][r(499)]=r(468),i[r(526)]=e[r(553)]||r(498),t[r(528)]=r(477);try{if(!e.imageUrl)throw new Error(r(574));const s=await this[r(512)](e[r(572)]),o=t[r(496)](),a=o[r(556)],c=o[r(532)];this.debug&&(console[r(491)](r(488)+s[r(556)]+"x"+s[r(532)]),console[r(491)](r(472)+a+"x"+c));const d=s[r(556)]/s[r(532)],l=a/c;return this[r(529)](i,d,l),i[r(486)]=e[r(572)],t[r(528)]="",t.appendChild(i),rt[r(552)](i,e,n,()=>this[r(465)](),this[r(540)],"Banner"),this[r(540)]&&console[r(491)]("✅ Optimized banner image rendered for ad: "+e[r(466)]),i}catch(s){return console.error(r(570),s),e[r(572)]&&(i[r(486)]=e.imageUrl,i[r(481)][r(548)]=r(506),i[r(481)][r(562)]="center",t[r(528)]="",t[r(559)](i),rt[r(552)](i,e,n,()=>this[r(465)](),this.debug,"Banner")),i}}}const bt=wt;function wt(t,e){const n=Et();return(wt=function(t,e){return n[t-=317]})(t,e)}!function(){const t=wt,e=Et();for(;;)try{if(724475===parseInt(t(324))/1*(-parseInt(t(323))/2)+parseInt(t(318))/3*(-parseInt(t(326))/4)+parseInt(t(330))/5+-parseInt(t(325))/6*(-parseInt(t(327))/7)+parseInt(t(320))/8+parseInt(t(329))/9+-parseInt(t(331))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class kt{static[bt(328)](t=!1){return bt(319)}static[bt(317)](t,e){const n=bt,r=e[n(322)]||e[n(321)]||"";t.textContent=r}}function Et(){const t=["3039420kYRinA","3916dwhXFG","7zhSZIj","createTextAdStyles","11658483kSIhQe","2570250DzrUHG","6476840BmRXgy","setTextAdContent","1587pAOjwZ","\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 ","1140888jgAmqs","title","textContent","284bwdGlN","4004RDyfQZ"];return(Et=function(){return t})()}const At=xt;function xt(t,e){const n=Tt();return(xt=function(t,e){return n[t-=438]})(t,e)}!function(){const t=xt,e=Tt();for(;;)try{if(434024===parseInt(t(495))/1*(-parseInt(t(461))/2)+parseInt(t(459))/3*(parseInt(t(511))/4)+parseInt(t(454))/5+-parseInt(t(503))/6+-parseInt(t(512))/7+-parseInt(t(463))/8+-parseInt(t(496))/9*(-parseInt(t(508))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class St{static[At(499)](t,e){const n=At,r=document.createElement(n(487));return r.className=n(460)+String(t[n(506)])[n(485)](),r.setAttribute(n(492),e[n(448)]),r.setAttribute(n(438),t.id),r.style[n(440)]=kt.createTextAdStyles(!0),kt[n(491)](r,e),r}static[At(453)](t,e,n,r,i=!1){const s=At,o=t[s(439)]&&0!==t[s(439)]&&t[s(439)]!==s(486),a=document[s(505)]("div");a[s(489)]=s(502);const c={position:s(479),overflow:s(442),display:s(472)};if(!o&&(c[s(439)]=s(486),c[s(513)]="fit-content"),t[s(510)]&&0!==t[s(510)]){let e;e=typeof t[s(510)]===s(515)&&(t.width[s(474)]("px")||t[s(510)][s(474)]("%"))?t[s(510)]:t[s(510)]+"px",c.width=e}if(t.height&&0!==t[s(439)]&&t.height!==s(486)&&o){let e;e=typeof t.height===s(515)?t.height[s(474)]("px")||t[s(439)][s(474)]("%")?t.height:t[s(439)]+"px":t.height+"px",c[s(439)]=e}Object[s(484)](c)[s(441)](([t,e])=>{const n=s;a[n(498)][n(516)](t,e)});const d=document.createElement(s(487));d[s(489)]=s(493),d[s(498)][s(440)]="\n position: relative;\n width: 100%;\n "+(o?s(467):"height: auto; min-height: fit-content;")+"\n ";let l=null;const u=!t[s(510)]||0===t[s(510)],p=!t[s(439)]||0===t[s(439)]||void 0===t[s(439)]||t[s(439)]===s(486);if(u||p&&o){if(l=document.createElement("div"),l[s(498)][s(440)]=s(514),!u&&t.width){let e;e=typeof t[s(510)]===s(515)?t[s(510)][s(474)]("px")||t.width.includes("%")?t[s(510)]:t.width+"px":t[s(510)]+"px",l.style.width=e,l[s(498)][s(447)]=s(488)}document[s(465)][s(445)](l);let n=0,r=0;e[s(441)](e=>{const i=s,o=this.createSimpleAdElement(t,e);l.appendChild(o);const a=o[i(497)]();a[i(510)]>n&&(n=a.width),a[i(439)]>r&&(r=a[i(439)]),l[i(471)](o)}),u&&n>0&&(a.style[s(510)]=n+"px"),p&&r>0&&o&&(a[s(498)].height=r+"px"),document[s(465)][s(471)](l)}const h=[];e.forEach((e,n)=>{const a=s,c=document.createElement(a(487));c[a(489)]=a(455);const l=a(o?482:0===n?479:482);c[a(498)].cssText="\n position: "+l+a(480)+(l===a(482)?"0":a(486))+";\n left: "+(l===a(482)?"0":"auto")+a(517)+(o?"height: 100%;":a(518))+a(451)+(0===n?"1":"0")+a(483)+(0===n?"0":a(452))+a(509)+(0===n?"2":"1")+a(468);const u=this[a(499)](t,e);rt[a(446)](u,e,t,r,i,a(470)),c[a(445)](u),d[a(445)](c),h[a(464)](c)});let f=0;const g=e[s(469)],m=1e3*(n?.[s(494)]||4),I=n=>{const a=s;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(498)][a(476)]===a(479)&&(c[a(498)][a(476)]=a(482),c.style[a(501)]="0",c.style[a(457)]="0"),d[a(498)].position="relative",d[a(498)][a(501)]="auto",d[a(498)][a(457)]=a(486)),c[a(498)][a(475)]="0",c[a(498)][a(481)]=a(473),c[a(498)][a(466)]="1",d[a(498)][a(475)]="1",d[a(498)][a(481)]="translateY(0)",d[a(498)][a(466)]="2",h[a(441)]((t,e)=>{const r=a;e!==n&&e!==f&&(t[r(498)].opacity="0",t[r(498)].transform=r(444),t[r(498)].zIndex="1",!o&&t[r(498)][r(476)]===r(479)&&(t[r(498)][r(476)]=r(482),t[r(498)][r(501)]="0",t[r(498)][r(457)]="0"))}),f=n,$[a(519)](e[f],t,f,r,i)};let v=setInterval(()=>{I(f+1)},m);return a[s(443)]("mouseenter",()=>{clearInterval(v)}),a[s(443)](s(477),()=>{v=setInterval(()=>{I(f+1)},m)}),St[s(507)](a,I,()=>f,g),a[s(445)](d),a}static addTouchSupport(t,e,n,r){const i=At;let s=0,o=0,a=!1;t[i(443)](i(504),t=>{const e=i;s=t[e(450)][0].clientX,o=t.touches[0][e(458)],a=!0}),t[i(443)](i(490),t=>{a&&t[i(456)]()}),t[i(443)](i(500),t=>{const r=i;if(!a)return;a=!1;const c=t[r(449)][0][r(478)],d=t.changedTouches[0][r(458)],l=s-c,u=o-d;if(Math[r(462)](l)>Math.abs(u)&&Math[r(462)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}function Tt(){const t=["preventDefault","left","clientY","69987BRAyIQ","adstage-ad adstage-","68fRZfdW","abs","1825848lBFUCu","push","body","zIndex","height: 100%;",";\n ","length","Text","removeChild","block","translateY(-20px)","includes","opacity","position","mouseleave","clientX","relative",";\n top: ","transform","absolute",";\n transform: translateY(","entries","toLowerCase","auto","div","normal","className","touchmove","setTextAdContent","data-adstage-ad-id","adstage-fade-slide-container","autoSlideInterval","24081gCJuWq","9270477jamICO","getBoundingClientRect","style","createSimpleAdElement","touchend","top","adstage-fade-slider-wrapper","2930892AodTXI","touchstart","createElement","adType","addTouchSupport","20dlogvW",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","width","44whFDqz","3504333AkqAzi","minHeight","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","string","setProperty",";\n width: 100%;\n ","height: auto;","trackSlideViewable","data-adstage-slot-id","height","cssText","forEach","hidden","addEventListener","translateY(20px)","appendChild","addClickEventForSlider","whiteSpace","_id","changedTouches","touches","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","20px","createTextTransitionContainer","766925UrANtP","adstage-fade-slide"];return(Tt=function(){return t})()}const Ct=Dt;function Rt(){const t=["config","optimizedHeight","366JnKGmt","cssText","overflow"," ads","TEXT","60px","createEventTrackingCallback","createTextTransitionContainer","setTextAdContent","createTextAdStyles","renderAdElement","width","debug","innerHTML","className","80832acgjAP","_id","height","createElement","getElementById","33464KDjQzM","number","log","containerId","parentElement","767570NTeZZz","Container not found: "," with ","getDefaultHeight","div","adstage-text-content","renderMultipleAds","aspectRatio","webkitBoxOrient","3290202kUSgDP","16025yEuGtY","appendChild","400079GSiunA","style","-webkit-box","webkitLineClamp","2RHbEFT","686WCfBme","addClickEventForRenderer","✨ Single text ad rendered: ","6507108pfdaPV"];return(Rt=function(){return t})()}function Dt(t,e){const n=Rt();return(Dt=function(t,e){return n[t-=220]})(t,e)}!function(){const t=Dt,e=Rt();for(;;)try{if(556589===-parseInt(t(237))/1+parseInt(t(241))/2*(parseInt(t(234))/3)+parseInt(t(220))/4+parseInt(t(235))/5*(parseInt(t(248))/6)+parseInt(t(242))/7*(-parseInt(t(263))/8)+parseInt(t(245))/9+-parseInt(t(225))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class zt extends gt{constructor(t=!1,e){super(o[Dt(252)],t,e)}[Ct(228)](){return Ct(253)}async[Ct(258)](t,e){const n=Ct,r=document.getElementById(t[n(223)]);if(!r)return;const i=document[n(266)]("div");i[n(262)]="adstage-ad adstage-text-ad";const s=t.optimizedHeight,o=r[n(224)]||r;if(s)i.style[n(259)]="100%",i[n(238)].height=String(s);else{const e=t[n(246)],r={width:e?.[n(259)],height:e?.[n(265)]},{width:s,height:a}=this.calculateAdSize(o,r,{debug:this[n(260)]});i[n(238)][n(259)]=s,i[n(238)][n(265)]=a}const a=document.createElement(n(229));a[n(262)]=n(230),a[n(238)][n(249)]=kt[n(257)](!1),kt[n(256)](a,e);const c=t.config?.maxLines;c&&typeof c===n(221)&&(a[n(238)].display=n(239),a[n(238)][n(240)]=String(c),a[n(238)][n(233)]="vertical",a[n(238)][n(250)]="hidden"),i[n(236)](a),rt[n(243)](i,e,t,()=>this[n(254)](),this[n(260)],"Text"),r[n(261)]="",r[n(236)](i),this[n(260)]&&console.log(n(244)+e[n(264)])}async[Ct(231)](t,e){const n=Ct,r=document[n(267)](t[n(223)]);if(!r)throw new Error(n(226)+t.containerId);const i=this[n(254)](),s={autoSlideInterval:(t.config?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t[n(247)],aspectRatio:t[n(232)]},o=St[n(255)](t,e,s,i,this[n(260)]);o&&(r[n(261)]="",r[n(236)](o),this.debug&&console[n(222)]("✨ Text transition created for slot: "+t.id+n(227)+e.length+n(251)))}}const Lt=Pt;function Bt(){const t=["renderVideoElementDirect","display","2534312ShLokm","renderAdElement","🎬 Autoplay completely failed:","containerId"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","mouseleave","div","\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 ","🎬 Video can play, attempting autoplay...","🎬 Initial autoplay attempt after timeout...","autoplay","Video thumbnail","muted","contain","imageUrl","appendChild","height","none","img","block","177fBDfCp","\n video::-webkit-media-controls-play-button {\n display: ","title","16MqkYSo","1407770EIpjXE","6415tIJwDp",", muted: ","Click to unmute","rgba(0, 0, 0, 0.7)","🎬 Video element created for ad: ","button","textContent","preload","stopPropagation","2288608iBdtnP","scale(1.1)","play","enabled"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: "," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","4854582RITBLf","debug","paused","customControls","\n pointer-events: none;\n ","⚠️ No video advertisements available for slot: ","length","playsinline","src","relative","Video","getDefaultHeight",", loop: ","_id","setAttribute"," !important;\n }\n ","warn","Video fallback","innerHTML","className","adstage-video-container"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","🎬 User explicitly enabled controls, overriding default","VIDEO","loop","360px","createElement","error","🔊 Video mute toggled: ","renderMultipleAds","adstage-video-default-controls","transform","2ntHwqc","loadeddata","addClickEventForRenderer","100%","width","hideVolumeSlider","background","5286OCZxOO","🎬 Auto-play was prevented:","config","\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 ","addEventListener","style","Video load failed:","canplay","hideControls","🎬 Trying muted autoplay fallback...","position"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: "," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","createEventTrackingCallback","click","log","VIEWABLE","hideFullscreenButton","Container not found: ","metadata","1327934RuQoql","hideCurrentTime","hidePlayButton","hideProgressBar","catch","mouseenter","videoUrl","cssText","getElementById","44776ffqdwU","alt","controls","\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 ","objectFit"];return(Bt=function(){return t})()}function Pt(t,e){const n=Bt();return(Pt=function(t,e){return n[t-=212]})(t,e)}!function(){const t=Pt,e=Bt();for(;;)try{if(843518===-parseInt(t(292))/1*(parseInt(t(319))/2)+-parseInt(t(240))/3*(-parseInt(t(213))/4)+parseInt(t(245))/5*(parseInt(t(299))/6)+-parseInt(t(254))/7+-parseInt(t(243))/8*(-parseInt(t(260))/9)+-parseInt(t(244))/10+-parseInt(t(220))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ot extends gt{constructor(t=!1,e){super(o[Pt(283)],t,e)}[Lt(271)](){return Lt(285)}async[Lt(221)](t,e){const n=Lt,r=document[n(212)](t[n(223)]);if(!r)return;const i=document[n(286)](n(226));i.className=n(280),i[n(304)].cssText=n(216),this[n(218)](i,e,t),r.innerHTML="",r[n(235)](i),this[n(261)]&&console[n(314)]("🎬 Single video ad rendered: "+e._id)}async[Lt(289)](t,e){const n=Lt,r=document[n(212)](t[n(223)]);if(!r)throw new Error(n(317)+t.containerId);if(e[n(266)]>0){const i=e[0],s=document[n(286)](n(226));s[n(279)]=n(280),s[n(304)][n(326)]=n(302),this[n(218)](s,i,t),r.innerHTML="",r.appendChild(s);const o=this[n(312)]();setTimeout(()=>{const e=n;o(i[e(273)],t.id,p[e(315)])},100),this[n(261)]&&console[n(314)]("🎬 Single video rendered for VIDEO slot: "+t.id+" ("+i[n(273)]+")")}else this[n(261)]&&console[n(276)](n(265)+t.id)}[Lt(218)](t,e,n){const r=Lt;t[r(304)][r(309)]=r(269);const i=document[r(286)]("video");i[r(304)][r(296)]=r(295),i[r(304)][r(236)]=r(295),i[r(304)][r(217)]="contain",i[r(252)]=r(318);const s=n[r(301)];if(this.debug&&console[r(314)]("🎬 Video config received:",s),i.controls=!1,i[r(230)]=!1!==s?.[r(230)],i.muted=!0,i.loop=!1!==s?.[r(284)],this.debug&&console[r(314)]("🎬 Final video settings:",{autoplay:i[r(230)],muted:i[r(232)],loop:i[r(284)],controls:i[r(215)]}),!1!==s?.[r(267)]&&i[r(274)](r(267),""),!0===s?.[r(215)]&&(i.controls=!0,this[r(261)]&&console[r(314)](r(282))),s?.hideControls)i.controls=!1,i.style[r(326)]+=r(264);else if(s?.[r(263)]){if(i[r(215)]){const t=document[r(286)](r(304));t[r(251)]=r(241)+(s.customControls[r(321)]?"none":r(239))+r(281)+(s[r(263)][r(322)]?r(237):r(239))+r(310)+(s[r(263)][r(320)]?r(237):"block")+r(224)+(s[r(263)].hideRemainingTime?r(237):r(239))+r(258)+(s[r(263)][r(297)]?r(237):r(239))+r(259)+(s[r(263)].hideMuteButton?r(237):r(239))+r(311)+(s.customControls[r(316)]?r(237):"block")+r(275),document.head.appendChild(t)}}else if(i.controls){const t=document[r(286)](r(304));t.id=r(290),t.textContent=r(227),!document.getElementById("adstage-video-default-controls")&&document.head[r(235)](t)}this[r(261)]&&console[r(314)]("🎬 Video controls setting:",i.controls?r(257):"disabled (default)");const o=document.createElement(r(250));o[r(279)]="adstage-video-mute-button",o.style[r(326)]="\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 ",s?.[r(307)]&&(o[r(304)][r(219)]=r(237));const a=()=>{const t=r;o.innerHTML=i[t(232)]?'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ':'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',o[t(242)]=i[t(232)]?t(247):"Click to mute"};if(a(),o[r(303)](r(313),t=>{const e=r;t[e(253)](),i[e(232)]=!i[e(232)],a(),this[e(261)]&&console[e(314)](e(288)+(i.muted?"muted":"unmuted"))}),o[r(303)](r(324),()=>{const t=r;o[t(304)][t(298)]="rgba(0, 0, 0, 0.9)",o[t(304)][t(291)]=t(255)}),o[r(303)](r(225),()=>{const t=r;o.style.background=t(248),o[t(304)][t(291)]="scale(1)"}),e[r(325)]){i[r(268)]=e[r(325)];const t=()=>{const t=r;i[t(230)]&&i[t(232)]&&i[t(262)]&&i[t(256)]()[t(323)](e=>{const n=t;this[n(261)]&&(console[n(276)](n(300),e),console[n(276)](n(308))),i[n(232)]=!0,i[n(256)]()[n(323)](t=>{const e=n;this[e(261)]&&console[e(287)](e(222),t)})})};i[r(303)]("loadedmetadata",()=>{const e=r;this[e(261)]&&console[e(314)]("🎬 Video metadata loaded, attempting autoplay..."),t()}),i[r(303)](r(306),()=>{const e=r;this[e(261)]&&console[e(314)](e(228)),t()}),i[r(303)](r(293),()=>{this[r(261)]&&console.log("🎬 Video data loaded, attempting autoplay..."),t()}),setTimeout(()=>{const e=r;this.debug&&console.log(e(229)),t()},100)}else if(e.imageUrl){const n=document[r(286)]("img");return n[r(268)]=e.imageUrl,n[r(304)][r(296)]="100%",n[r(304)][r(236)]=r(295),n[r(304)].objectFit="contain",n[r(214)]=e[r(242)]||r(231),void t[r(235)](n)}rt.addClickEventForRenderer(i,e,n,()=>this[r(312)](),this[r(261)],r(270)),i[r(303)](r(287),i=>{const s=r;if(console[s(287)](s(305),i),e.imageUrl){const r=document.createElement(s(238));r[s(268)]=e[s(234)],r.style[s(296)]=s(295),r[s(304)][s(236)]=s(295),r[s(304)][s(217)]=s(233),r[s(214)]=e.title||s(231),rt[s(294)](r,e,n,()=>this[s(312)](),this[s(261)],s(277)),t[s(278)]="",t[s(235)](r)}}),t[r(235)](i),t[r(235)](o),this[r(261)]&&console[r(314)](r(249)+e[r(273)]+" (autoplay: "+i[r(230)]+r(246)+i.muted+r(272)+i.loop+")")}}function Ut(){const t=["linkUrl","innerHTML","log","div","Native click tracked for ad: ","2290980ZNmcmU","mouseleave","createElement","446526roBcAH","appendChild","length","src","cssText","⚠️ No native advertisements available for slot: ","debug","containerId","renderMultipleAds","warn","getDefaultHeight","alt","#3b82f6","_id","#2563eb","16SdRdZG","56uMQSjh","imageUrl","click","open","NATIVE","1415yvXlCj","title","style","advertisementEventTracker","textContent","1336lhLmwP","mouseenter","button","renderAdElement","🏠 Native ad rendered (first of ","3533985TjOwhn","backgroundColor","3450843vRBeXS","img","200px","110579PJRVJV","4880sfbHWv","\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 ","addEventListener","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","🏠 Single native ad rendered: ","\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 ","_blank"];return(Ut=function(){return t})()}const _t=Mt;function Mt(t,e){const n=Ut();return(Mt=function(t,e){return n[t-=416]})(t,e)}!function(){const t=Mt,e=Ut();for(;;)try{if(598171===parseInt(t(445))/1*(-parseInt(t(455))/2)+parseInt(t(460))/3+parseInt(t(466))/4*(-parseInt(t(450))/5)+-parseInt(t(429))/6+parseInt(t(465))/7*(parseInt(t(444))/8)+-parseInt(t(462))/9+parseInt(t(426))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Nt extends gt{constructor(t=!1,e){super(o[Mt(449)],t,e)}[_t(439)](){return _t(464)}async renderAdElement(t,e){const n=_t,r=document.getElementById(t[n(436)]);if(!r)return;const i=document[n(428)](n(424));if(i.className="adstage-ad adstage-native-ad",i[n(452)][n(433)]=n(419),e[n(451)]){const t=document.createElement("h3");t[n(454)]=e[n(451)],t[n(452)][n(433)]=n(417),i[n(430)](t)}if(e[n(454)]){const t=document.createElement("p");t[n(454)]=e[n(454)],t[n(452)][n(433)]="\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ",i[n(430)](t)}if(e[n(446)]){const t=document.createElement(n(424));t[n(452)][n(433)]="\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ";const r=document.createElement(n(463));r[n(432)]=e.imageUrl,r[n(440)]=e[n(451)]||"Native Advertisement",r.style[n(433)]="\n width: 100%;\n height: 100%;\n object-fit: cover;\n ",t[n(430)](r),i[n(430)](t)}if(e[n(421)]){const t=document.createElement(n(457));t[n(454)]="Learn More",t.style[n(433)]=n(467),t[n(416)](n(447),()=>{const t=n;this[t(453)]&&console.log(t(425)+e[t(442)]),window[t(448)](e[t(421)],t(420))}),t[n(416)](n(456),()=>{const e=n;t[e(452)].backgroundColor=e(443)}),t[n(416)](n(427),()=>{const e=n;t[e(452)][e(461)]=e(441)}),i.appendChild(t)}r[n(422)]="",r.appendChild(i),this[n(435)]&&console.log(n(418)+e[n(442)])}async[_t(437)](t,e){const n=_t;e[n(431)]>0?(await this[n(458)](t,e[0]),this[n(435)]&&console[n(423)](n(459)+e[n(431)]+"): "+t.id)):this[n(435)]&&console[n(438)](n(434)+t.id)}}const Ft=Vt;function Vt(t,e){const n=Ht();return(Vt=function(t,e){return n[t-=192]})(t,e)}function Ht(){const t=["INTERSTITIAL","length","debug","head","renderMultipleAds","key","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","#374151","containerId","getDefaultHeight","400px","mouseenter","Interstitial Advertisement","linkUrl","title","imageUrl","23426VSQTGk","#e5e7eb","Get Started","adstage-interstitial-overlay","advertisementEventTracker","mouseleave","): ","#2563eb","_blank","cssText","5ngUpJd","450816JcynUW","#f3f4f6","addEventListener","1590295VCrICN","style","1398560PgWRCa","adstage-interstitial-content","keydown","63SRkQNk","\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 ","🖼️ Interstitial ad rendered (first of ","renderAdElement","parentNode","alt","textContent","open","\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ","div","log","Escape","removeEventListener","body","⚠️ No interstitial advertisements available for slot: ","backgroundColor","927kPpSYG","innerHTML","closeInterstitial","click","_id","11126500HsLZqr","30pjbgMn","button","#6b7280","\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 ","appendChild","🖼️ Interstitial ad closed","30010MDFVVJ","className","1511280TbUyUS","getElementById","createElement","adstage-interstitial-styles"];return(Ht=function(){return t})()}!function(){const t=Vt,e=Ht();for(;;)try{if(611595===-parseInt(t(260))/1*(-parseInt(t(241))/2)+-parseInt(t(252))/3+parseInt(t(257))/4*(-parseInt(t(251))/5)+parseInt(t(213))/6*(-parseInt(t(255))/7)+parseInt(t(221))/8+-parseInt(t(207))/9*(-parseInt(t(219))/10)+parseInt(t(212))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Kt extends gt{constructor(t=!1,e){super(o[Vt(225)],t,e)}[Ft(234)](){return Ft(235)}async[Ft(194)](t,e){const n=Ft;if(!document[n(222)](t[n(233)]))return;const r=document[n(223)](n(200));r[n(220)]=n(244),r[n(256)][n(250)]=n(192);const i=document[n(223)](n(200));i[n(220)]=n(258),i[n(256)][n(250)]="\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.createElement("button");if(s[n(208)]="×",s.style[n(250)]=n(199),s[n(254)](n(210),()=>{this[n(209)](r)}),s[n(254)](n(236),()=>{const t=n;s[t(256)][t(206)]=t(242),s.style.color=t(232)}),s[n(254)](n(246),()=>{const t=n;s[t(256)][t(206)]=t(253),s[t(256)].color=t(215)}),e[n(240)]){const t=document[n(223)]("img");t.src=e.imageUrl,t[n(196)]=e.title||n(237),t[n(256)][n(250)]="\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ",i[n(217)](t)}if(e.title){const t=document[n(223)]("h2");t[n(197)]=e[n(239)],t[n(256)][n(250)]=n(231),i[n(217)](t)}if(e.textContent){const t=document[n(223)]("p");t[n(197)]=e[n(197)],t[n(256)][n(250)]="\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ",i.appendChild(t)}if(e[n(238)]){const t=document.createElement(n(214));t.textContent=n(243),t[n(256)][n(250)]="\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 ",t[n(254)](n(210),()=>{const t=n;this[t(245)]&&console[t(201)]("Interstitial click tracked for ad: "+e._id),window[t(198)](e[t(238)],t(249)),this[t(209)](r)}),t.addEventListener(n(236),()=>{const e=n;t[e(256)][e(206)]=e(248)}),t.addEventListener(n(246),()=>{const e=n;t[e(256)][e(206)]="#3b82f6"}),i[n(217)](t)}const o=t=>{const e=n;t[e(230)]===e(202)&&(this.closeInterstitial(r),document[e(203)](e(259),o))};if(document.addEventListener(n(259),o),r.addEventListener("click",t=>{const e=n;t.target===r&&this[e(209)](r)}),!document[n(222)]("adstage-interstitial-styles")){const t=document[n(223)](n(256));t.id=n(224),t[n(197)]=n(216),document[n(228)][n(217)](t)}i[n(217)](s),r[n(217)](i),document[n(204)][n(217)](r),this[n(227)]&&console.log("🖼️ Interstitial ad rendered: "+e[n(211)])}async[Ft(229)](t,e){const n=Ft;e[n(226)]>0?(await this.renderAdElement(t,e[0]),this[n(227)]&&console[n(201)](n(193)+e[n(226)]+n(247)+t.id)):this[n(227)]&&console.warn(n(205)+t.id)}[Ft(209)](t){const e=Ft;t[e(256)].animation="fadeOut 0.3s ease-out forwards",setTimeout(()=>{t[e(195)]&&t.parentNode.removeChild(t)},300),this[e(227)]&&console[e(201)](e(218))}}const jt=Zt;function Wt(){const t=[" Ad","calculateOptimalContainerSize","loadImageDimensions","border","1351045krvzHT","getDefaultHeight","textContent","video","setAttribute","size","adstage-ad adstage-","BANNER","isLoaded","No advertisement to render","naturalHeight","className","optimizeContainerForBannerAds","createAdElement","initializeRenderers","style","onload","adType","debug","config","renderAdSlider","6cLTFhD","1px dashed #ccc","warn","6jBEVrr","211824ZzjFLh","_id","renderAd","[AdRenderer] ","data-adstage-ad-id","src","imageUrl","1925416KhVWwW","height","createPlaceholder","advertisement","getRenderer","block","50744rzqAhM","display","appendChild","🏭 AdRenderer factory initialized with ","renderAdElement","3656230GqMowV","videoUrl","NATIVE","renderOptimizedBannerImage","423MFukNz","createElement","advertisementEventTracker","log","INTERSTITIAL","renderers","⚠️ Container optimization is only supported for BANNER ads, got: ","naturalWidth","No renderer found for ad type: ","2554552KKOSKn","padding"," renderers","renderMultipleAds","get","TEXT","onerror","renderOptimizedBannerImage is only supported for BANNER ads","100%","div","width","#f9f9f9","836OaBTaM","objectFit","renderFallback","3fHNnIw","10387DcEqyH","set","backgroundColor"];return(Wt=function(){return t})()}function Zt(t,e){const n=Wt();return(Zt=function(t,e){return n[t-=326]})(t,e)}!function(){const t=Zt,e=Wt();for(;;)try{if(261394===parseInt(t(347))/1*(-parseInt(t(378))/2)+parseInt(t(346))/3*(-parseInt(t(386))/4)+-parseInt(t(354))/5*(parseInt(t(375))/6)+-parseInt(t(331))/7+parseInt(t(392))/8*(-parseInt(t(401))/9)+parseInt(t(397))/10+parseInt(t(343))/11*(parseInt(t(379))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Gt{constructor(t=!1,e){const n=Zt;this.renderers=new Map,this.debug=t,this[n(403)]=e||null,this[n(368)]()}initializeRenderers(){const t=Zt;this[t(327)][t(348)](o.BANNER,new yt(this[t(372)],this[t(403)])),this.renderers[t(348)](o[t(336)],new zt(this[t(372)],this.advertisementEventTracker)),this[t(327)][t(348)](o.VIDEO,new Ot(this[t(372)],this[t(403)])),this.renderers[t(348)](o[t(399)],new Nt(this[t(372)],this[t(403)])),this[t(327)][t(348)](o[t(326)],new Kt(this.debug,this[t(403)])),this[t(372)]&&console.log(t(395)+this[t(327)][t(359)]+t(333))}[jt(367)](t,e){const n=jt,r=this[n(390)](t[n(371)]),i=document[n(402)](n(340));i[n(365)]=n(360)+String(t[n(371)]).toLowerCase(),i[n(358)](n(383),e[n(380)]),i[n(358)]("data-adstage-slot-id",t.id);const{width:s,height:a}=r.calculateAdSize(i,t[n(373)]||{},e);switch(i[n(369)].width=s,i[n(369)][n(387)]=a,i[n(369)][n(393)]=n(391),t.adType){case o[n(361)]:if(e.imageUrl){const t=document[n(402)]("img");t[n(384)]=e[n(385)],t[n(369)][n(341)]=n(339),t[n(369)][n(387)]=n(339),t[n(369)][n(344)]="cover",i[n(394)](t)}break;case o.VIDEO:if(e[n(398)]){const t=document[n(402)](n(357));t[n(384)]=e[n(398)],t[n(369)][n(341)]=n(339),t[n(369)][n(387)]=n(339),i[n(394)](t)}break;case o[n(336)]:if(e[n(356)]){const t=document[n(402)](n(340));t[n(356)]=e[n(356)]||"",t.style[n(332)]="8px",i[n(394)](t)}break;default:i[n(369)][n(353)]=n(376),i.style[n(349)]=n(342),i.textContent=t.adType+n(350)}return i}[jt(390)](t){const e=jt,n=this[e(327)][e(335)](t);if(!n)throw new Error(e(330)+t);return n}[jt(388)](t,e,n,r,i){const s=jt;this[s(390)](n)[s(388)](t,e,r,i)}async[jt(366)](t,e){const n=jt;if(t.adType!==o[n(361)])return void(this[n(372)]&&console[n(377)](n(328)+t[n(371)]));const r=this[n(390)](o[n(361)]);await r.optimizeContainerForBannerAds(t,e)}async[jt(374)](t,e){const n=jt,r=this.getRenderer(t[n(371)]);await r[n(334)](t,e)}async[jt(381)](t){const e=jt;if(!t[e(389)])throw new Error(e(363));const n=this[e(390)](t.adType);await n.renderAdElement(t,t[e(389)]),t[e(362)]=!0}async[jt(396)](t,e){const n=jt,r=this[n(390)](t[n(371)]);await r[n(396)](t,e)}renderFallback(t){const e=jt;this[e(390)](t[e(371)])[e(345)](t)}getDefaultHeightForAdType(t){const e=jt;return this[e(390)](t)[e(355)]()}calculateAdSize(t,e,n,r){return this[jt(390)](e).calculateAdSize(t,n,r)}[jt(352)](t){return new Promise((e,n)=>{const r=Zt,i=new Image;i[r(370)]=()=>{const t=r;e({width:i[t(329)],height:i[t(364)]})},i[r(337)]=()=>{n(new Error("Failed to load image: "+t))},i.src=t})}async[jt(400)](t,e,n){const r=jt;if(n.adType!==o[r(361)])throw new Error(r(338));const i=this[r(390)](o[r(361)]);return await i.renderOptimizedBannerImage(t,e,n)}async calculateOptimalContainerSize(t,e,n){const r=jt;if(n!==o[r(361)]){return{width:"100%",height:this[r(390)](n).getDefaultHeight(),aspectRatio:16/9}}const i=this[r(390)](o[r(361)]);return await i[r(351)](t,e)}log(t,...e){const n=jt;this[n(372)]&&console[n(404)](n(382)+t,...e)}}const qt=Jt;function Xt(){const t=["disconnect","3EGLPek","Failed to fetch ad data: ","create"," ads for type: ","INTERSTITIAL","controls","createAdInternal","handleViewableEvent","destroyModule","loop","length","_isReady","width","[data-adstage-slot-id]","mutationObserver","getAllSlots","innerHTML","language","status","renderAdElement","BANNER","querySelectorAll","trackAdvertisementEvent","fetchAdData","📊 Advertisement event tracking enabled for slot: ","native","❌ Failed to find element for viewability tracking: ","275964XBuIhF","values","New advertisement viewable tracked for slot:","createAd","removedNodes","_id","delete"," (element found)","hideControls","100%","getConfig","detail","4416470EXBfZW","ELEMENT_NODE","undefined","random","🎠 Slider will handle VIEWABLE events for ","🔍 Ad slot already cleaned up: ","5696820IPZKmT","✅ Ad loaded for slot: ","refreshAdSlot","🎯 Ads module initialized (sync mode) with auto-cleanup","getBaseUrl","🔄 Retrying viewability tracking for slot: ","slideInterval","list","renderAd","muted","toString"," ads)","1438962nDMZjw","log","advertisementEventTracker","VIEWABLE","Auto-cleanup failed for slot ","GET","adId","VIDEO","📊 Fetched ","NATIVE","3142868xdnsGw","🔍 Auto-cleanup MutationObserver enabled","adType","7332942IZPTZC","then","Ad slot not found: ","debug","ensureReady","TEXT","getSlotById","loadAdContentInBackground","string","auto-","startSimpleViewabilityTracking","error","handleRemovedElement","viewabilityTracker","renderAdSlider","forEach","body","createAdWithRetry","📊 Fetched specific ad with ID: ","5220332XjNomV","config","setupAutoCleanup","Container not found: ","광고 생성 중 오류 발생:","height","autoDestroy","append","get"," ads automatically","🚫 Advertisement not found with ID: "," removed",", filters:","now","apiKey","country","advertisements","warn","API key not configured","autoSlide","optimizeContainerForBannerAds","getAttribute","interstitial","🗑️ Ads module destroyed","✅ Simple viewable impression tracked for ad ","ms... (attempt ","40ULqFgc","getElementById","style","observe","destroy"," attempts: ","🎯 Simple viewability tracking started for slot: ","playsinline","json","adstage-","clear","renderFallback","video","from","_config","substr","deviceType","data-adstage-slot-id","auto","slots","onClick","advertisement","adRenderer","🗑️ Ad slot destroyed: "];return(Xt=function(){return t})()}function Jt(t,e){const n=Xt();return(Jt=function(t,e){return n[t-=200]})(t,e)}!function(){const t=Jt,e=Xt();for(;;)try{if(863496===parseInt(t(323))/1+-parseInt(t(223))/2+-parseInt(t(296))/3*(-parseInt(t(245))/4)+-parseInt(t(335))/5+-parseInt(t(226))/6+-parseInt(t(213))/7+-parseInt(t(271))/8*(-parseInt(t(201))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Yt{constructor(){const t=Jt;this[t(307)]=!1,this[t(285)]=null,this[t(290)]=new Map,this[t(215)]=null,this[t(293)]=null,this[t(310)]=null}init(t){const e=Jt;this._config=t,this.advertisementEventTracker=new M(X[e(205)](),t.apiKey,t[e(229)]||!1,this.slots),this.adRenderer=new Gt(t.debug||!1,this.advertisementEventTracker),this.setupAutoCleanup(),this._isReady=!0,t.debug&&console[e(214)](e(204))}isReady(){return this[Jt(307)]}[qt(333)](){return this[qt(285)]}banner(t,e){const n=qt;this.ensureReady();const r={width:e?.width||n(332),height:e?.[n(250)]||n(289),autoSlide:e?.[n(264)]||!1,slideInterval:e?.[n(207)]||5e3,onClick:e?.[n(291)],adId:e?.[n(219)],language:e?.language,deviceType:e?.deviceType,country:e?.country};return this[n(326)](t,o[n(316)],r)}text(t,e){const n=qt;this.ensureReady();const r={maxLines:e?.maxLines||3,style:e?.[n(273)]||"default",onClick:e?.[n(291)],adId:e?.adId,language:e?.[n(313)],deviceType:e?.[n(287)],country:e?.[n(260)]};return this.createAd(t,o[n(231)],r)}[qt(283)](t,e){const n=qt;this[n(230)]();const r={width:e?.[n(308)]||640,height:e?.[n(250)]||360,autoplay:void 0===e?.autoplay||e.autoplay,muted:void 0===e?.[n(210)]||e.muted,loop:void 0===e?.[n(305)]||e[n(305)],playsinline:!1!==e?.[n(278)],controls:void 0!==e?.controls&&e[n(301)],hideControls:e?.[n(331)]||!1,customControls:e?.customControls,autoSlide:!1,maxAds:1,onClick:e?.[n(291)],...e?.adId&&{adId:e[n(219)]}};return this[n(326)](t,o[n(220)],r)}[qt(321)](t,e){const n=qt;return this[n(230)](),this[n(326)](t,o[n(222)],e||{})}[qt(267)](t,e){const n=qt;return this[n(230)](),this[n(326)](t,o[n(300)],e||{})}refresh(t){const e=qt;this[e(230)]();const n=this[e(290)][e(253)](t);if(!n)throw new Error(e(228)+t);this[e(203)](n),this[e(285)]?.[e(229)]&&console.log("🔄 Ad slot refreshed: "+t)}[qt(275)](t){const e=qt;this[e(230)]();const n=this[e(290)].get(t);if(!n)return void(this[e(285)]?.[e(229)]&&console[e(214)](e(200)+t));n[e(239)]&&n[e(239)][e(275)]();const r=document.getElementById(n.containerId);r&&(r[e(312)]=""),this[e(290)][e(329)](t),this[e(285)]?.[e(229)]&&console[e(214)](e(294)+t)}[qt(311)](){const t=qt;return this.ensureReady(),Array[t(284)](this[t(290)][t(324)]())}[qt(232)](t){const e=qt;return this[e(230)](),this[e(290)][e(253)](t)||null}[qt(326)](t,e,n){const r=qt;if(!this._config?.apiKey)throw new Error(r(263));const i=r(280)+e+"-"+Date[r(258)]()+"-"+Math[r(338)]()[r(211)](36)[r(286)](2,9);return this.createAdWithRetry(t,e,n,i,0),i}async createAdWithRetry(t,e,n,r,i){const s=qt,o=[0,50,100,200,500];let a,c=null;if(typeof t===s(234)){if(a=t,c=document[s(272)](t),!c)return i<4?(this[s(285)]?.[s(229)]&&console[s(262)](s(248)+t+". Retrying in "+o[i+1]+s(270)+(i+1)+"/5)"),void setTimeout(()=>{this[s(243)](t,e,n,r,i+1)},o[i+1])):void console[s(237)]("Container not found after 5"+s(276)+t)}else c=t,a=c.id||s(235)+r,!c.id&&(c.id=a);try{this[s(302)](a,e,n,r,c)}catch(t){console.error(s(249),t)}}createAdInternal(t,e,n,r,i){const s=qt;i.setAttribute("data-adstage-slot-id",r),this[s(293)]?.createPlaceholder(i,r,e,n,this[s(285)]);const a={id:r,containerId:t,adType:e,width:n[s(308)]||s(332),height:n[s(250)]||(e===o.TEXT?s(289):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[s(319)](e,n)[s(227)](t=>t[0]||null),render:t=>this.adRenderer?.[s(315)](a,t),refresh:async()=>this[s(203)](a),destroy:()=>this[s(275)](r)};this[s(290)].set(r,a),this[s(233)](a),this[s(215)]&&this._config?.[s(229)]&&console[s(214)](s(320)+r)}async[qt(233)](t){const e=qt;try{const n=await this[e(319)](t[e(225)],t[e(246)]);if(!n||0===n.length)return void this[e(293)]?.renderFallback(t);t[e(225)]===o[e(316)]&&n[e(306)]>0&&await(this[e(293)]?.[e(265)](t,n)),n[e(306)]>1||t[e(246)]?.[e(264)]?(await(this[e(293)]?.[e(240)](t,n)),this[e(285)]?.debug&&console[e(214)](e(339)+n.length+e(254))):(t[e(292)]=n[0],await(this[e(293)]?.renderAdElement(t,n[0])),this[e(236)](t,n[0])),t.isLoaded=!0,this[e(285)]?.[e(229)]&&console[e(214)](e(202)+t.id+" ("+n[e(306)]+e(212))}catch(n){console.error("❌ Failed to load ad for slot: "+t.id,n),this[e(293)]?.[e(282)](t)}}startSimpleViewabilityTracking(t,e){const n=(r=0)=>{const i=Jt,s=document[i(272)](t.id);if(!s)return void(r<5?(setTimeout(()=>n(r+1),300),this[i(285)]?.debug&&console.log(i(206)+t.id+" (attempt "+(r+1)+")")):console.warn(i(322)+t.id));const o=new H(s,async()=>{const n=i;await this[n(303)](e,t)});t.viewabilityTracker=o,this[i(285)]?.[i(229)]&&console[i(214)](i(277)+t.id+i(330))};n()}async handleViewableEvent(t,e){const n=qt;try{this[n(215)]&&(await this[n(215)][n(318)](t._id,e.id,p[n(216)]),this[n(285)]?.[n(229)]&&console[n(214)](n(269)+t[n(328)]))}catch(t){console[n(237)]("❌ Failed to track viewable impression:",t)}}async fetchAdData(t,e){const n=qt;if(!this[n(285)]?.[n(259)])throw new Error(n(263));if(e.adId){const t=""+X[n(261)][n(334)](e[n(219)]),r=await fetch(t,{method:n(218),headers:B[n(298)](this[n(285)][n(259)])});if(!r.ok){if(404===r[n(314)])return console.warn(n(255)+e[n(219)]),[];throw new Error(n(297)+r[n(314)])}const i=await r.json();return this[n(285)]?.debug&&console[n(214)](n(244)+e.adId,i),[i]}const r=new URLSearchParams;r[n(252)]("adType",t),e.language&&r[n(252)]("language",e.language),e[n(287)]&&r[n(252)](n(287),e.deviceType),e[n(260)]&&r[n(252)](n(260),e[n(260)]);const i=X[n(261)][n(208)]()+"?"+r[n(211)](),s=await fetch(i,{method:n(218),headers:B.create(this._config.apiKey)});if(!s.ok)throw new Error(n(297)+s[n(314)]);const o=(await s[n(279)]())[n(261)]||[];return this[n(285)]?.debug&&console[n(214)](n(221)+o[n(306)]+n(299)+t+n(257),{language:e.language,deviceType:e.deviceType,country:e.country}),o}async[qt(203)](t){const e=qt;try{const n=await this[e(319)](t.adType,t[e(246)]||{});n&&n[e(306)]>0&&(t[e(292)]=n[0],await(this[e(293)]?.[e(209)](t)),this.advertisementEventTracker&&console[e(214)](e(325),t.id))}catch(e){console.error("Failed to refresh ad slot: "+t.id,e)}}[qt(230)](){if(!this[qt(307)])throw new Error("Ads module not initialized. Call AdStage.init() first.")}[qt(247)](){const t=qt;typeof window!==t(337)&&"undefined"!=typeof document&&(this[t(310)]&&this[t(310)][t(295)](),this.mutationObserver=new MutationObserver(t=>{t.forEach(t=>{const e=Jt;t[e(327)][e(241)](t=>{const n=e;t.nodeType===Node[n(336)]&&this[n(238)](t)})})}),this.mutationObserver[t(274)](document[t(242)],{childList:!0,subtree:!0}),this[t(285)]?.[t(229)]&&console[t(214)](t(224)))}[qt(238)](t){const e=qt,n=t.getAttribute(e(288));if(n)return void this[e(251)](n);t[e(317)](e(309))[e(241)](t=>{const n=e,r=t[n(266)](n(288));r&&this[n(251)](r)})}[qt(251)](t){const e=qt,n=this[e(290)][e(253)](t);if(n)try{n[e(239)]&&n[e(239)].destroy(),this.slots[e(329)](t),this[e(285)]?.[e(229)]&&console[e(214)]("🧹 Auto-cleanup: slot "+t+e(256))}catch(n){this._config?.[e(229)]&&console[e(262)](e(217)+t+":",n)}}[qt(304)](){const t=qt,e=this[t(285)]?.debug;this[t(310)]&&(this[t(310)].disconnect(),this[t(310)]=null),this.slots[t(281)](),this[t(215)]=null,this[t(293)]=null,this[t(307)]=!1,this._config=null,e&&console.log(t(268))}}function Qt(){var t=["228506TOzDlh","1556085kTEbcM","events","getBaseUrl","7LsZaZc","getApiEndpoint","log","baseUrl","includes","development","API key not available","getConfig","148kRopoS","getOrganizationInfo","_config","_organizationInfo","1007610gWJKlz","isDebugMode","Config module not initialized","isModuleEnabled","config","12351AftcEC","28094Twinne","✅ Config module initialized (sync mode)","832018wgocey","17379InWtlg","getApiHeaders","create","debug","_isReady","apiKey","4980ntNNOB","modules","224lHHsJC","getEnabledModules"];return(Qt=function(){return t})()}var $t=te;function te(t,e){var n=Qt();return(te=function(t,e){return n[t-=242]})(t,e)}!function(){for(var t=te,e=Qt();;)try{if(246486===-parseInt(t(275))/1+-parseInt(t(264))/2+parseInt(t(261))/3*(parseInt(t(252))/4)+-parseInt(t(276))/5+-parseInt(t(256))/6*(parseInt(t(244))/7)+-parseInt(t(273))/8*(parseInt(t(265))/9)+parseInt(t(271))/10*(parseInt(t(262))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ee{constructor(){this[te(269)]=!1,this._config=null,this._organizationInfo=null}init(t){var e=te;this[e(254)]={timeout:3e4,debug:!1,modules:["ads",e(242),e(260)],...t},t[e(247)]&&X.setBaseUrl(t.baseUrl),this[e(269)]=!0,t.debug&&console[e(246)](e(263),{modules:this[e(254)][e(272)],endpoint:X[e(243)](),mode:e(249)})}isReady(){return this[te(269)]}[$t(251)](){return this[$t(254)]}[$t(253)](){return this[$t(255)]}[$t(245)](){return X[$t(243)]()}[$t(257)](){var t=$t;return this[t(254)]?.[t(268)]||!1}[$t(274)](){var t=$t;return this._config?.[t(272)]||[]}[$t(259)](t){var e=$t;return this[e(274)]()[e(248)](t)}updateConfig(t){var e=$t;if(!this[e(254)])throw new Error(e(258));this[e(254)]={...this[e(254)],...t},this[e(257)]()&&console[e(246)]("🔄 Config updated",t)}[$t(266)](){var t=$t;if(!this[t(254)]?.[t(270)])throw new Error(t(250));return B[t(267)](this[t(254)][t(270)])}}function ne(){const t=["32dErZxz","Mobile Web","getAutoDetectedDeviceInfo","ios","55tbKJJm","getUserDeviceInfo","setDeviceProperty","0x0","platform","174920jVtpCC","216NCOPFg","height","getDetailedInfo","language","getPlatform","setDeviceInfo","SSR","desktop","63ZLKYKX","1421096dtZpNR","Android","_userProvidedDeviceInfo","getViewportInfo","mobile","iOS","509222jupuMb","Desktop Web","other","clearDeviceInfo","width","userAgent","4815UPTMYT","ko-KR","2832MRlgmr","android","isBrowser","web","2838OpyvZp","281923hWwPdO","mapPlatformForEvents","8660mKzpOA"];return(ne=function(){return t})()}const re=ie;function ie(t,e){const n=ne();return(ie=function(t,e){return n[t-=443]})(t,e)}!function(){const t=ie,e=ne();for(;;)try{if(652738===-parseInt(t(463))/1+-parseInt(t(444))/2+parseInt(t(443))/3*(parseInt(t(475))/4)+parseInt(t(456))/5*(parseInt(t(462))/6)+parseInt(t(450))/7*(parseInt(t(466))/8)+-parseInt(t(476))/9*(parseInt(t(465))/10)+-parseInt(t(470))/11*(-parseInt(t(458))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class se{static getDeviceInfo(){const t=ie;return{...se.getAutoDetectedDeviceInfo(),...se[t(446)]}}static[re(468)](){const t=re;if(!w[t(460)]())return{category:t(452),platform:t(482),model:t(482),osVersion:t(482)};const e=navigator.userAgent.toLowerCase();let n="desktop";/tablet|ipad/.test(e)?n="tablet":D.isMobile()&&(n=t(448));const r=D[t(480)]();return{category:n,platform:se.mapPlatformForEvents(r),model:navigator[t(474)],osVersion:navigator[t(474)],deviceId:D.generateDeviceId()}}static[re(481)](t){se[re(446)]={...se._userProvidedDeviceInfo,...t}}static[re(472)](t,e){se[re(446)][t]=e}static[re(453)](){se[re(446)]={}}static[re(471)](){return{...se._userProvidedDeviceInfo}}static[re(464)](t){const e=re;switch(t){case e(469):return e(449);case e(459):return e(445);case e(461):return e(467);case e(483):return e(451);default:return"Unknown"}}static[re(478)](){const t=re;if(!w[t(460)]())return{userAgent:t(482),language:t(457),platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(473),viewportSize:"0x0"};const e=w[t(447)]();return{userAgent:navigator[t(455)],language:navigator[t(479)]||t(457),platform:navigator[t(474)],cookieEnabled:navigator.cookieEnabled,onLine:navigator.onLine,screenResolution:screen[t(454)]+"x"+screen[t(477)],viewportSize:e[t(454)]+"x"+e[t(477)]}}}se[re(446)]={};const oe=ce;!function(){const t=ce,e=de();for(;;)try{if(817853===parseInt(t(133))/1+parseInt(t(130))/2+-parseInt(t(143))/3*(parseInt(t(137))/4)+-parseInt(t(138))/5+-parseInt(t(142))/6+-parseInt(t(144))/7+-parseInt(t(141))/8*(-parseInt(t(131))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ae{static[oe(135)](){const t=oe;return{...ae[t(145)](),...ae[t(134)]}}static[oe(145)](){const t=oe;if(!w.isBrowser())return{language:t(136),country:"KR"};const e=navigator.language||t(136);return{language:e,country:ae.extractCountryFromLanguage(e)}}static[oe(139)](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[oe(140)]("-")[0]]||"KR"}static setUserProperties(t){const e=oe;ae[e(134)]={...ae[e(134)],...t}}static[oe(132)](t,e){ae[oe(134)][t]=e}static clearUserProperties(){ae[oe(134)]={}}static getCurrentUserProperties(){return{...ae[oe(134)]}}static estimateLocation(){const t=oe;if(!w.isBrowser())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(147)]().resolvedOptions()[t(146)];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 ce(t,e){const n=de();return(ce=function(t,e){return n[t-=130]})(t,e)}function de(){const t=["2301120aplQBf","3OKmmom","9687629JFSZHM","getBaseUserInfo","timeZone","DateTimeFormat","218586KNpzDy","41903127fCCJhm","setUserProperty","115949sZwniT","_userProperties","getUserInfo","ko-KR","5459124NpStyg","4655220SFfPKe","extractCountryFromLanguage","split","8ZeTFuz"];return(de=function(){return t})()}function le(t,e){const n=he();return(le=function(t,e){return n[t-=357]})(t,e)}ae[oe(134)]={};const ue=le;!function(){const t=le,e=he();for(;;)try{if(489865===-parseInt(t(414))/1+parseInt(t(363))/2*(-parseInt(t(422))/3)+parseInt(t(423))/4+-parseInt(t(373))/5+-parseInt(t(359))/6*(parseInt(t(417))/7)+parseInt(t(416))/8+parseInt(t(408))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class pe{static[ue(390)](){const t=ue;if(typeof window===t(386))return null;const e=new URLSearchParams(window[t(402)][t(377)]),n={};let r=!1;const i=e.get("adstage_referrer");if(i)try{const e=decodeURIComponent(i),s=new URLSearchParams(e);for(const e of pe.ALL_KEYS){const i=s[t(369)](e);i&&(n[e]=i,r=!0)}"true"===s[t(369)](t(357))&&(r=!0)}catch(e){console[t(391)](t(367),e)}for(const i of pe[t(361)]){if(n[i])continue;const s=e[t(369)](i);s&&(n[i]=s,r=!0)}return r?(n[t(380)]||(n[t(412)]?n[t(380)]=t(410):n[t(411)]?n[t(380)]=t(372):n[t(378)]?n[t(380)]=t(399):n[t(393)]?n.channel=t(397):n[t(406)]?n[t(380)]=t(409):n[t(379)]?n[t(380)]=t(419):n[t(374)]&&(n.channel="twitter.ads")),pe[t(415)](n),n):null}static store(t){const e=ue;if(typeof window!==e(386))try{const n={...pe.get(),...t},r=JSON.stringify(n);try{sessionStorage[e(421)](pe.STORAGE_KEY,r)}catch(t){}try{localStorage.setItem(pe.STORAGE_KEY,r)}catch(t){}}catch(t){console[e(391)]("Failed to store tracking params:",t)}}static get(){const t=ue;if(typeof window===t(386))return null;try{const e=sessionStorage?.[t(392)](pe[t(376)]);if(e)return JSON[t(381)](e)}catch(t){}try{const e=localStorage?.getItem(pe.STORAGE_KEY);if(e)return JSON[t(381)](e)}catch(t){}return null}static[ue(364)](){const t=ue;if(typeof window!==t(386)){try{sessionStorage?.[t(425)](pe[t(376)])}catch(t){}try{localStorage?.[t(425)](pe[t(376)])}catch(t){}}}static[ue(396)](){const t=ue,e=pe[t(369)]();return null!==e&&Object[t(385)](e)[t(388)]>0}static[ue(424)](){const t=ue,e=pe[t(369)]();return!!e&&pe[t(400)][t(418)](t=>e[t])}static shouldSendClickEvent(){const t=ue;if("undefined"==typeof window)return!1;const e=pe[t(369)]();if(!e||!pe[t(424)]())return!1;const n=e[t(412)]||e[t(411)]||e[t(378)]||e[t(393)]||e[t(406)]||e.msclkid||e[t(374)];if(!n)return!1;return n!==sessionStorage[t(392)](t(358))&&(sessionStorage.setItem(t(358),n),!0)}static[ue(395)](){const t=ue;typeof window!==t(386)&&sessionStorage[t(421)](t(407),t(405))}static[ue(384)](){const t=ue;return typeof window!==t(386)&&sessionStorage[t(392)](t(407))===t(405)}static[ue(370)](){const t=ue,e=pe[t(369)]();if(!e)return null;const n={};return e[t(412)]&&(n.gclid=e[t(412)]),e[t(411)]&&(n.fbclid=e.fbclid),e[t(378)]&&(n[t(378)]=e[t(378)]),e[t(393)]&&(n[t(393)]=e[t(393)]),e[t(380)]&&(n[t(380)]=e.channel),e[t(371)]&&(n[t(371)]=e[t(371)]),e[t(382)]&&(n[t(360)]=e[t(382)]),e[t(387)]&&(n[t(403)]=e.ad_group),e[t(362)]&&(n.adGroupId=e[t(362)]),e[t(413)]&&(n[t(404)]=e[t(413)]),e[t(401)]&&(n[t(383)]=e[t(401)]),e[t(389)]&&(n[t(389)]=e[t(389)]),e[t(394)]&&(n[t(394)]=e[t(394)]),e.utm_medium&&(n[t(366)]=e.utm_medium),e[t(375)]&&(n[t(375)]=e.utm_campaign),e[t(368)]&&(n[t(368)]=e[t(368)]),e[t(398)]&&(n[t(398)]=e[t(398)]),Object[t(385)](n)[t(388)]>0?n:null}}function he(){const t=["getItem","nclid","utm_source","markClickEventSent","hasParams","naver.searchad","utm_term","tiktok.ads","CLICK_ID_KEYS","creative_id","location","adGroup","adCreative","true","liclid","adstage_click_event_sent","19891008byVxBB","linkedin.ads","google.ads","fbclid","gclid","ad_creative","286587nFMwZt","store","1668456lxPNnO","1946mTIzym","some","microsoft.ads","UTM_KEYS","setItem","2051703UaoNfR","2372200RJPhej","hasClickId","removeItem","adstage","adstage_last_click_id","15702ATdUKy","campaignId","ALL_KEYS","ad_group_id","2xoHLbH","clear","CAMPAIGN_KEYS","utm_medium","Failed to parse adstage_referrer:","utm_content","get","toAttributionObject","campaign","meta.ads","4119200nFzGOO","twclid","utm_campaign","STORAGE_KEY","search","ttclid","msclkid","channel","parse","campaign_id","creativeId","isClickEventSent","keys","undefined","ad_group","length","term","captureFromUrl","warn"];return(he=function(){return t})()}function fe(){const t=["getCurrentUserProperties","length","getDeviceInfo","📡 Request URL:","create","❌ Failed to register attribution:","undefined","getAttributionId","warn","track","5976LKeeUR","6eGgXmG","status","isReady","getUserDeviceInfo","init","trackWithAttributionId","❌ Failed to track event:","157311ZnWarI","_isReady","log","sendAttributionToServer","apiKey","❌ API Error Response:","✅ Event tracked:","setDeviceProperty","2486737OORvON","🔑 Request headers:","POST","📦 Attribution request body:","getItem","📱 User provided device info cleared","868aWjRUl","🔑 Attribution request headers:","setUserProperties","API key not configured for attribution registration.","4292980trGsOg","_config","588uGWZyo","910ZNMnpg","toAttributionObject","📊 Attribution included:","getUserProperties","✅ Attribution registered:","json","setItem","📊 Events module initialized","Event data:","6577435KhjKuR","application/json","API key not configured for event tracking.","attributionId","events","get","📡 Attribution request URL:","error","setDeviceInfo","text","Events module not initialized. Call AdStage.init() first.","Event tracking failed: ","stringify","registerAttribution","debug","120104EYYRqH","2999175lyHAXV","📦 Request body:","📱 Device property set:","sendEventToServer","getUserInfo","adstage_attribution_id","keys","statusText"];return(fe=function(){return t})()}pe[ue(376)]="adstage_tracking_params",pe[ue(400)]=[ue(412),ue(411),"ttclid","nclid",ue(406),ue(379),ue(374)],pe[ue(365)]=[ue(371),"campaign_id",ue(387),"ad_group_id",ue(413),ue(401),ue(389)],pe[ue(420)]=[ue(394),ue(366),ue(375),ue(368),"utm_term"],pe[ue(361)]=[...pe[ue(400)],...pe[ue(365)],...pe[ue(420)]];const ge=me;function me(t,e){const n=fe();return(me=function(t,e){return n[t-=365]})(t,e)}!function(){const t=me,e=fe();for(;;)try{if(954505===parseInt(t(393))/1*(parseInt(t(421))/2)+-parseInt(t(375))/3+-parseInt(t(419))/4+parseInt(t(431))/5*(parseInt(t(394))/6)+parseInt(t(415))/7*(-parseInt(t(374))/8)+-parseInt(t(401))/9*(-parseInt(t(422))/10)+parseInt(t(409))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ie{constructor(){this._isReady=!1,this._config=null}[ge(398)](t){const e=ge;this._config=t,this[e(402)]=!0,t[e(373)]&&console[e(403)](e(429))}[ge(396)](){return this[ge(402)]}getConfig(){return this[ge(420)]}[ge(417)](t){const e=ge;ae[e(417)](t),this[e(420)]?.[e(373)]&&console[e(403)]("👤 User properties set:",t)}[ge(425)](){return ae[ge(383)]()}[ge(367)](t){const e=ge;se[e(367)](t),this[e(420)]?.[e(373)]&&console[e(403)]("📱 Device info set:",t)}[ge(408)](t,e){const n=ge;se[n(408)](t,e),this._config?.[n(373)]&&console[n(403)](n(377),t,e)}clearDeviceInfo(){const t=ge;se.clearDeviceInfo(),this[t(420)]?.[t(373)]&&console[t(403)](t(414))}[ge(397)](){return se[ge(397)]()}getDeviceInfo(){return se[ge(385)]()}[ge(379)](){return ae[ge(379)]()}getCurrentUserProperties(){return ae[ge(383)]()}async[ge(392)](t,e){const n=ge;if(this[n(402)])if(this[n(420)]?.[n(405)])try{const r=this[n(390)]();if(r){const i={eventName:t,sdkVersion:A(),device:se.getDeviceInfo(),user:ae[n(379)](),attributionId:r,params:e||{}};return await this[n(378)](i),void(this._config.debug&&console[n(403)]("✅ Event tracked with attribution ID:",t,r))}const i=pe[n(423)](),s={eventName:t,sdkVersion:A(),device:se.getDeviceInfo(),user:ae[n(379)](),...i&&{attribution:i},params:e||{}};await this[n(378)](s),this[n(420)][n(373)]&&(console[n(403)](n(407),t,e),i&&console[n(403)](n(424),i))}catch(r){console[n(366)](n(400),r),this[n(420)][n(373)]&&console[n(366)](n(430),{eventName:t,properties:e})}else console[n(391)](n(433));else console.warn(n(369))}async[ge(372)](t){const e=ge;if(!this[e(402)])return console[e(391)](e(369)),null;if(!this[e(420)]?.[e(405)])return console[e(391)](e(418)),null;try{const n=pe[e(436)]();if(!n||0===Object[e(381)](n)[e(384)])return this._config.debug&&console[e(403)]("⏭️ No tracking parameters found, skipping attribution registration"),null;const r=await this.sendAttributionToServer({deviceId:t,referrerParams:n});if(this[e(420)][e(373)]&&console[e(403)](e(426),r),r[e(434)]){try{localStorage[e(428)]("adstage_attribution_id",r[e(434)])}catch(t){}try{sessionStorage[e(428)]("adstage_attribution_id",r[e(434)])}catch(t){}}return r}catch(t){return console.error(e(388),t),null}}[ge(390)](){const t=ge;if(typeof window===t(389))return null;try{const e=sessionStorage[t(413)](t(380));if(e)return e}catch(t){}try{return localStorage.getItem(t(380))}catch(t){}return null}async[ge(399)](t,e){return this[ge(392)](t,e)}async sendEventToServer(t){const e=ge,n={...B[e(387)](this[e(420)].apiKey),"Content-Type":e(432)};this[e(420)]?.[e(373)]&&(console[e(403)](e(410),n),console.log(e(386),X.events.track()),console[e(403)](e(376),t));const r=await fetch(X.events.track(),{method:"POST",headers:n,body:JSON[e(371)](t)});if(!r.ok){const t=await r[e(368)]();throw console.error(e(406),t),new Error(e(370)+r.status+" "+r[e(382)])}}async[ge(404)](t){const e=ge,n={...B[e(387)](this[e(420)][e(405)]),"Content-Type":e(432)};this[e(420)]?.[e(373)]&&(console.log(e(416),n),console[e(403)](e(365),X[e(435)][e(372)]()),console[e(403)](e(412),t));const r=await fetch(X[e(435)].registerAttribution(),{method:e(411),headers:n,body:JSON[e(371)](t)});if(!r.ok){const t=await r.text();throw console.error("❌ API Error Response:",t),new Error("Attribution registration failed: "+r[e(395)]+" "+r[e(382)])}return r[e(427)]()}}const ve=we;function ye(){const t=["modules","attributionId","setItem","get","✅ Auto-tracked click event with tracking params:","10bYamjw","toISOString","adstage_attribution_id","769JYbczx","markClickEventSent","❌ Failed to register attribution:","web-","3899583qRnYiQ","✅ Attribution registered:","length","height","getInstance","tracking_params","development","🌐 API endpoint configured:","charCodeAt","viewableTracker","isReady","now","log","size","❌ Failed to auto-track click event:","init","instance","toAttributionObject","ads","🎯 Sending click event after attribution registration","search","toString","config","reset","...","language","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","adstage_device_id","location","server-","substring","catch","100kInsUA","AdStage not initialized. Call AdStage.init() first.","undefined","then","API key is required for AdStage initialization","_config","events","getConfig","⏭️ Skipping click event (duplicate or no click ID)","55416430qZuppy","3578680RKYAaw","debug","2149QfqpdO","function","attribution_id","replace","clear","click","web","apiKey",")의 viewable 추적 초기화됨","width","userAgent","1518525AuUIBN","_isInitialized","20656ENVAEq","6079902jASyAq","✅ AdStage Debug: 광고 ","🔗 Using attributionId from URL (attribution_id):","random","expiresAt","join","🚀 AdStage SDK initialized (sync mode)","getTimezoneOffset","generateDeviceId","warn","🔍 Should send click event:","AdStage.ads accessed before initialization","❌ Error in click event auto-tracking:","error","track","baseUrl","abs","2.0.0"];return(ye=function(){return t})()}!function(){const t=we,e=ye();for(;;)try{if(968400===-parseInt(t(282))/1*(parseInt(t(318))/2)+-parseInt(t(253))/3+-parseInt(t(328))/4*(parseInt(t(279))/5)+-parseInt(t(256))/6+-parseInt(t(242))/7*(parseInt(t(255))/8)+-parseInt(t(286))/9+parseInt(t(327))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class be{constructor(){const t=we;this[t(254)]=!1,this[t(323)]=null,this[t(308)]=new ee,this[t(304)]=new Yt,this[t(324)]=new Ie}static[ve(301)](t){const e=ve;!be[e(302)]&&(be.instance=new be);const n=be[e(302)];if(!t[e(249)])throw new Error(e(322));n[e(323)]={timeout:3e4,debug:!1,modules:[e(304),e(324),e(308)],...t},n[e(323)][e(271)]&&(X.setBaseUrl(n[e(323)].baseUrl),t[e(241)]&&console[e(298)](e(293),n[e(323)].baseUrl));const r=n[e(323)][e(274)]||[e(304),"events",e(308)];for(const t of r){const r=n[t];r&&typeof r[e(301)]===e(243)&&r[e(301)](n[e(323)])}if(n[e(254)]=!0,"undefined"!=typeof window){const r=pe.captureFromUrl();r&&t[e(241)]&&console.log("📊 Tracking parameters captured:",r);const i=(()=>{const t=e;try{const e=new URLSearchParams(window[t(314)][t(306)]),n=new URLSearchParams((window[t(314)].hash||"")[t(245)](/^#/,""));return e.get(t(244))||n[t(277)]("attribution_id")}catch{return null}})();if(i)try{localStorage[e(276)](e(281),i),t.debug&&console[e(298)](e(258),i)}catch(t){}const s=pe.shouldSendClickEvent();if(t[e(241)]&&(console.log(e(266),s),!s&&console[e(298)](e(326))),!i&&r&&pe.hasClickId()){const r=(async()=>{const r=e;try{const e=n.generateDeviceId(),i=await n.events.registerAttribution(e);return i&&t[r(241)]&&console[r(298)](r(287),{attributionId:i[r(275)],channel:i.channel,campaign:i.campaign,expiresAt:i[r(260)]}),i}catch(t){return console.error(r(284),t),null}})();s&&r[e(321)](r=>{const i=e;try{const e=pe[i(277)](),s=pe[i(303)]();t[i(241)]&&console.log(i(305),{attributionId:r?.[i(275)],hasAttribution:!!r}),n[i(324)][i(270)]("click",{_autoGenerated:!0,_source:i(291),_timestamp:(new Date)[i(280)](),_platform:i(248)})[i(321)](()=>{const n=i;pe[n(283)](),t[n(241)]&&console[n(298)](n(278),{attribution:s,trackingParams:e})})[i(317)](t=>{const e=i;console[e(269)](e(300),t)})}catch(t){console.error(i(268),t)}})}else s&&setTimeout(()=>{const r=e;try{const e=pe[r(277)](),i=pe.toAttributionObject();n.events[r(270)](r(247),{_autoGenerated:!0,_source:r(291),_timestamp:(new Date)[r(280)](),_platform:"web"})[r(321)](()=>{const n=r;pe[n(283)](),t.debug&&console[n(298)](n(278),{attribution:i,trackingParams:e})})[r(317)](t=>{console[r(269)]("❌ Failed to auto-track click event:",t)})}catch(t){console[r(269)](r(268),t)}},100)}t[e(241)]&&console[e(298)](e(262),{version:e(273),modules:r,apiKey:t[e(249)][e(316)](0,8)+e(310),mode:e(292)})}static[ve(296)](){const t=ve;return be[t(302)]?.[t(254)]||!1}static[ve(325)](){const t=ve;return be[t(302)]?._config||null}static[ve(290)](){const t=ve;if(!be[t(302)])throw new Error(t(319));return be[t(302)]}static get[ve(304)](){const t=ve;try{return be.getInstance().ads}catch(e){throw console[t(265)](t(267)),e}}static get events(){const t=ve;try{return be.getInstance()[t(324)]}catch(e){throw console[t(265)]("AdStage.events accessed before initialization"),e}}static get[ve(308)](){const t=ve;try{return be.getInstance()[t(308)]}catch(e){throw console[t(265)]("AdStage.config accessed before initialization"),e}}static[ve(309)](){const t=ve;be[t(302)]&&(be[t(302)][t(254)]=!1,be[t(302)][t(323)]=null)}[ve(264)](){const t=ve;if(typeof window===t(320))return t(315)+Math[t(259)]()[t(307)](36).substring(2,15);const e=localStorage.getItem(t(313));if(e)return e;const n=[navigator[t(252)],navigator[t(311)],screen[t(251)]+"x"+screen[t(289)],(new Date)[t(263)](),navigator.hardwareConcurrency||0][t(261)]("|");let r=0;for(let e=0;e<n[t(288)];e++){r=(r<<5)-r+n[t(294)](e),r&=r}const i=t(285)+Math[t(272)](r)[t(307)](36)+"-"+Date[t(297)]().toString(36);return localStorage[t(276)](t(313),i),i}}function we(t,e){const n=ye();return(we=function(t,e){return n[t-=241]})(t,e)}function ke(){var t=["86336Pkpuwk","591810agguXW","252zsQbbp","118232dpZUqu","190DrwQSd","7362rQkjim","AdStage not initialized. Call AdStage.init() first.","4592QYIYAd","resolve","1158490rmaWlO","1418348Iwmxty","2512082DyRkmR","events","warn","isReady"];return(ke=function(){return t})()}function Ee(t,e){var n=Ae;return be[n(227)]()?be[n(225)].track(t,e):(console[n(226)](n(234)),Promise[n(236)]())}function Ae(t,e){var n=ke();return(Ae=function(t,e){return n[t-=224]})(t,e)}function xe(t){var e=Ae;be[e(227)]()?be[e(225)].setUserProperties(t):console[e(226)](e(234))}function Se(){var t=Ae;if(be[t(227)]())return be.events.getUserProperties();console[t(226)](t(234))}be[ve(241)]={clearAllViewable:()=>{const t=ve;ut[t(246)](),console[t(298)](t(312))},clearAdViewable:(t,e)=>{const n=ve;ut.clearAdViewable(t,e),console.log(n(257)+t+"("+e+n(250))},getViewableStatus:()=>{const t=ve;console[t(298)]("📊 AdStage Debug: 현재 viewable 추적 상태",{trackedCount:ut[t(295)][t(299)],trackedItems:Array.from(ut[t(295)])})}},function(){for(var t=Ae,e=ke();;)try{if(736594===-parseInt(t(238))/1+-parseInt(t(224))/2+parseInt(t(229))/3+parseInt(t(228))/4*(-parseInt(t(232))/5)+parseInt(t(233))/6*(parseInt(t(235))/7)+-parseInt(t(231))/8+parseInt(t(230))/9*(parseInt(t(237))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Te=e(null);function Ce({children:e,config:i}){const[s,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),s&&be.reset(),be.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};r(()=>{i&&!s&&u(i)},[i,s]);const p={isInitialized:s,config:a,initialize:u,reset:()=>{try{be.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Te.Provider,{value:p,children:e})}function Re(){const t=i(Te);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function De(){const{isInitialized:t}=Re();return t?be:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function ze(t,e){var n=Le();return(ze=function(t,e){return n[t-=301]})(t,e)}function Le(){var t=["138496iPtKVf","6197742OuJMHH","7NBRBlr","208680TVhoDs","24nEwenq","2405628Mswwjf","1316476gMNJCn","1477380rGnnFU","1572950TMNUjW"];return(Le=function(){return t})()}!function(){for(var t=ze,e=Le();;)try{if(409444===-parseInt(t(307))/1*(parseInt(t(305))/2)+parseInt(t(301))/3+parseInt(t(303))/4+-parseInt(t(304))/5+-parseInt(t(309))/6*(-parseInt(t(302))/7)+-parseInt(t(308))/8+-parseInt(t(306))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Be=Pe;function Pe(t,e){const n=Ue();return(Pe=function(t,e){return n[t-=293]})(t,e)}!function(){const t=Pe,e=Ue();for(;;)try{if(723530===parseInt(t(293))/1*(parseInt(t(295))/2)+parseInt(t(294))/3*(-parseInt(t(303))/4)+parseInt(t(298))/5+parseInt(t(308))/6+parseInt(t(304))/7+-parseInt(t(302))/8*(parseInt(t(297))/9)+-parseInt(t(305))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Oe=Be(306);function Ue(){const t=["6929675nRdRWx","undefined","config","events","32WuQank","860628ZmnxbN","9399243WqWXUg","5563080VQErDh","2.0.0","AdStage","2328114hzjIDi","2qChxFL","9qUJSMQ","133642UqtLzb","ads","2981331mFjYJH"];return(Ue=function(){return t})()}const _e=[Be(296),Be(301),Be(300)];typeof window!==Be(299)&&(window[Be(307)]=be);export{be as AdStage,Ce as AdStageProvider,Oe as SDK_VERSION,_e as SUPPORTED_MODULES,pe as TrackingParamsModule,Se as getUserProperties,xe as setUserProperties,Ee as track,Re as useAdStageContext,De as useAdStageInstance};
1
+ import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as s,useContext as i}from"react";var r,o,a,c,d,l,u,p,h,f,g,m;function I(){var t=["WEB","POPUP","MOBILE","NATIVE","769346SVjzhd","1608dgoRKo","BANNER","4076000GpgyOf","DESKTOP","CLICK","179884zFHGBM","1035860KJnCfh","1666932awDCFd","6775LMZZnl","INTERSTITIAL","TEXT","TABLET","1129515foFDLA","VIEWABLE"];return(I=function(){return t})()}function y(t,e){var n=I();return(y=function(t,e){return n[t-=414]})(t,e)}!function(){for(var t=y,e=I();;)try{if(230301===-parseInt(t(419))/1+-parseInt(t(432))/2+parseInt(t(426))/3+parseInt(t(421))/4+parseInt(t(422))/5*(parseInt(t(414))/6)+parseInt(t(420))/7+-parseInt(t(416))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(o=r||(r={}))[(a=y)(415)]="BANNER",o.POPUP=a(429),o[a(423)]=a(423),o[a(431)]=a(431),o.VIDEO="VIDEO",o[a(424)]=a(424),(d=c||(c={}))[(l=y)(428)]=l(428),d.MOBILE=l(430),(p=u||(u={}))[(h=y)(427)]="VIEWABLE",p[h(418)]=h(418),(g=f||(f={}))[(m=y)(417)]=m(417),g[m(430)]=m(430),g[m(425)]=m(425);const v=b;function b(t,e){const n=w();return(b=function(t,e){return n[t-=389]})(t,e)}function w(){const t=["waitForDOM","9ZmFLne","querySelectorAll","innerHTML","44210uEpDxP","map","safeRemoveChild","isBrowser","forEach","waitForElements","isDOMReady","⏳ 컨테이너 대기 시작: ","✅ 컨테이너 즉시 발견: ","classList","getComputedStyle","9563029uRneOP","innerHeight","safeAddEventListener","safeQuerySelector","add","referrer","isSSR","min","getDocumentProperty","canUseDOM","13430747ciUFOW","title","error","ms (","devicePixelRatio","10382FuzMua","textContent","번 시도)",'❌ 컨테이너를 찾을 수 없습니다: "',"getPageInfo"," (최대 ",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"innerWidth","waitForElement","setProperty","scrollTop","log","documentElement","safeApplyStyles","addEventListener","createElement","190jZUbtz","getWindowProperty","ms 경과)","safeGetComputedStyle","708nDHHzh","pageXOffset","remove","location","undefined","getViewportInfo","all","from","removeEventListener","removeChild","open","readyState","querySelector","safeSetInnerHTML","getElementById","ms)","2864010JuqTki","2976rbgRBH","getScrollInfo","pageYOffset","safeQuerySelectorAll","safeAddClass","safeCreateElement","496uqWDoJ","style","11112568WKCRHs"];return(w=function(){return t})()}!function(){const t=b,e=w();for(;;)try{if(904814===parseInt(t(407))/1*(parseInt(t(423))/2)+parseInt(t(444))/3*(parseInt(t(450))/4)+parseInt(t(457))/5*(parseInt(t(427))/6)+-parseInt(t(392))/7+-parseInt(t(452))/8+-parseInt(t(454))/9*(-parseInt(t(443))/10)+parseInt(t(402))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{static[v(460)](){const t=v;return typeof window!==t(431)&&typeof document!==t(431)}static[v(398)](){return!this[v(460)]()}static[v(401)](){const t=v;return this[t(460)]()&&void 0!==document[t(438)]}static safeGetElementById(t){return this[v(401)]()?document.getElementById(t):null}static[v(395)](t){const e=v;return this.canUseDOM()?document[e(439)](t):null}static[v(447)](t){const e=v;return this[e(401)]()?Array[e(434)](document[e(455)](t)):[]}static[v(449)](t){const e=v;return this.canUseDOM()?document[e(422)](t):null}static[v(394)](t,e,n,s){const i=v;this[i(401)]()&&t&&t[i(421)](e,n,s)}static safeRemoveEventListener(t,e,n,s){const i=v;this[i(401)]()&&t&&t[i(435)](e,n,s)}static[v(424)](t,e){return this.isBrowser()?window[t]??e:e}static[v(400)](t,e){return this[v(401)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const s=v;return this[s(460)]()?window[s(437)](t,e,n):null}static[v(426)](t){const e=v;return this[e(460)]()&&t?window[e(391)](t):null}static[v(463)](){const t=v;return!!this[t(401)]()&&"loading"!==document[t(438)]}static[v(453)](){return new Promise(t=>{const e=b;this[e(401)]()?this.isDOMReady()?t():this[e(394)](document,"DOMContentLoaded",()=>t()):t()})}static[v(420)](t,e){const n=v;this.canUseDOM()&&t&&Object.entries(e)[n(461)](([e,s])=>{const i=n;t[i(451)][i(416)](e,s)})}static[v(448)](t,e){const n=v;this[n(401)]()&&t&&t[n(390)][n(396)](e)}static safeRemoveClass(t,e){const n=v;this[n(401)]()&&t&&t[n(390)][n(429)](e)}static safeSetTextContent(t,e){const n=v;this[n(401)]()&&t&&(t[n(408)]=e)}static[v(440)](t,e){const n=v;this.canUseDOM()&&t&&(t[n(456)]=e)}static safeAppendChild(t,e){this.canUseDOM()&&t&&e&&t.appendChild(e)}static[v(459)](t,e){const n=v;this[n(401)]()&&t&&e&&t[n(436)](e)}static[v(411)](){const t=v;return{url:this.getWindowProperty(t(430),{href:""}).href,title:this[t(400)](t(403),""),referrer:this[t(400)](t(397),"")}}static[v(432)](){const t=v;return{width:this.getWindowProperty(t(414),0),height:this[t(424)](t(393),0),pixelRatio:this[t(424)](t(406),1)}}static[v(445)](){const t=v;return{scrollTop:this[t(401)]()?window[t(446)]||document[t(419)][t(417)]:0,scrollLeft:this.getWindowProperty(t(428),0)}}static async[v(415)](t,e={}){const n=v,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(401)]())throw new Error("DOM을 사용할 수 없는 환경입니다.");const o=document.getElementById(t);return o?(r&&console[n(418)](n(389)+t),o):(r&&console.log(n(464)+t+n(412)+s+n(442)),new Promise((e,n)=>{let o=0;const a=Math.ceil(s/i),c=()=>{const d=b;o++;const l=document[d(441)](t);if(l)return r&&console.log("✅ 컨테이너 발견: "+t+" ("+o+"번째 시도, "+o*i+d(425)),void e(l);if(o>=a){const e=d(410)+t+'"\n \n다음을 확인해보세요:\n1. HTML에 id="'+t+d(413)+s+d(405)+o+d(409);return r&&console[d(404)](e),void n(new Error(e))}r&&o%10==0&&console[d(418)]("⏳ 컨테이너 대기 중: "+t+" ("+o+"/"+a+")");const u=Math[d(399)](i*Math.pow(1.2,o),500);setTimeout(c,u)};setTimeout(c,i)}))}static async[v(462)](t,e={}){const n=v,s=t[n(458)](t=>this[n(415)](t,e));return Promise[n(433)](s)}}const E=x;function x(t,e){const n=S();return(x=function(t,e){return n[t-=311]})(t,e)}function S(){const t=["255852GxypAd","undefined","42VRYlsx","1867425pGDOHJ"," AdStageSDK/","3.0.14","2315JFCMCv","45jNgDWK","39612yrhTkK","2202170lbYUro","6ABCQHj","userAgent","1477880oaVSVh","24759823suxhQX","1900HniCGp","AdStageSDK/"];return(S=function(){return t})()}!function(){const t=x,e=S();for(;;)try{if(527599===-parseInt(t(325))/1+-parseInt(t(311))/2*(parseInt(t(317))/3)+-parseInt(t(323))/4*(parseInt(t(315))/5)+parseInt(t(319))/6*(-parseInt(t(312))/7)+parseInt(t(321))/8*(-parseInt(t(316))/9)+parseInt(t(318))/10+parseInt(t(322))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const A=E(314);function C(){return A}const T=D;function R(){const t=["SSR","isMobile","99zxfLyN","test","toString","ios","generateSessionId","getSlotPosition","ssr_session_","random","connection","unknown","userAgent"," .adstage-slider-wrapper","2903390zNhWRJ","round","width","setItem","safeGetElementById","platform","2911bwLHQq","getViewportInfo","2299094WZayor","5659836EcHMhC","resolvedOptions","5wLVgRZ","pixelRatio","language","1097409zyKYlI","android","5205696qPCHMk",'[data-adstage-slot-id="',"generateDeviceId","session_","scrollTop","safeQuerySelector","getItem","adstage_session_id","adstage_device_id","collectDeviceInfo","web","isBrowser","4600488PaLXRA","substr","height","getScrollInfo","ssr_device_","532AgaMAP","colorDepth","getPlatform","now"];return(R=function(){return t})()}function D(t,e){const n=R();return(D=function(t,e){return n[t-=248]})(t,e)}!function(){const t=D,e=R();for(;;)try{if(791979===-parseInt(t(254))/1*(parseInt(t(281))/2)+-parseInt(t(262))/3+-parseInt(t(264))/4*(parseInt(t(259))/5)+parseInt(t(257))/6+-parseInt(t(256))/7+-parseInt(t(276))/8+parseInt(t(287))/9*(parseInt(t(248))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class L{static[T(266)](){const t=T;if(!k.isBrowser())return t(280)+Date.now();const e=localStorage[t(270)](t(272));if(e)return e;const n="device_"+Math[t(294)]()[t(289)](36)[t(277)](2,9)+"_"+Date[t(284)]();return localStorage[t(251)](t(272),n),n}static[T(291)](){const t=T;if(!k[t(275)]())return t(293)+Date[t(284)]();const e=sessionStorage[t(270)](t(271));if(e)return e;const n=t(267)+Math[t(294)]().toString(36).substr(2,9)+"_"+Date.now();return sessionStorage[t(251)](t(271),n),n}static[T(286)](){const t=T;return!!k.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(288)](navigator[t(297)])}static[T(283)](){const t=T;if(!k[t(275)]())return t(274);const e=navigator[t(297)].toLowerCase();return/iphone|ipad|ipod/[t(288)](e)?t(290):/android/.test(e)?t(263):L[t(286)]()?t(274):"desktop"}static[T(273)](){const t=T,e=k[t(255)]();return{deviceId:L.generateDeviceId(),sessionId:L[t(291)](),osVersion:k[t(275)]()?navigator[t(253)]:t(285),deviceModel:k.isBrowser()?navigator[t(253)]:t(285),appVersion:"1.0.0",sdkVersion:C(),language:k[t(275)]()&&navigator[t(261)]||"ko",country:"KR",ipAddress:"",userAgent:k[t(275)]()?navigator[t(297)]:"SSR",timezone:k[t(275)]()?Intl.DateTimeFormat()[t(258)]().timeZone:"UTC",viewportWidth:e[t(250)],viewportHeight:e[t(278)],screenWidth:k[t(275)]()?screen[t(250)]:0,screenHeight:k[t(275)]()?screen[t(278)]:0,colorDepth:k[t(275)]()?screen[t(282)]:24,pixelRatio:e[t(260)],connectionType:k[t(275)]()&&navigator[t(295)]?.effectiveType||t(296),platform:L[t(283)]()}}static[T(292)](t){const e=T;let n=k[e(252)](t);if(!n){const s=k[e(269)]("#"+t+e(298));s&&(n=s)}if(!n&&(n=k.safeQuerySelector(e(265)+t+'"]')),!n)return e(296);const s=n.getBoundingClientRect(),i=k[e(279)]();return"x:"+Math[e(249)](s.left)+",y:"+Math.round(s.top+i[e(268)])}}const z=P;function P(t,e){const n=_();return(P=function(t,e){return n[t-=266]})(t,e)}!function(){const t=P,e=_();for(;;)try{if(117548===parseInt(t(270))/1+-parseInt(t(283))/2*(-parseInt(t(269))/3)+parseInt(t(276))/4*(-parseInt(t(267))/5)+parseInt(t(273))/6*(-parseInt(t(274))/7)+-parseInt(t(271))/8*(parseInt(t(266))/9)+parseInt(t(275))/10*(-parseInt(t(278))/11)+parseInt(t(280))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{static[z(272)](t,e){const n=z;if(!t)throw new Error("API key is required");const s={"x-api-key":t,"Content-Type":e?.[n(277)]||n(268)};return typeof navigator!==n(281)&&(s[n(279)]=e?.[n(282)]||navigator[n(282)]),s}static createForEvents(t,e){const n=z,s=B[n(272)](t);return e?.[n(282)]&&(s[n(279)]=e.userAgent),s}}function _(){const t=["User-Agent","5920668AlHxWh","undefined","userAgent","301570bnUkgk","225xPhPsd","24545FDzxYk","application/json","3VuyPlD","15533qtFZjR","48536PgOdBZ","create","6DmgFSH","1180193XtEyUR","390TBwDxB","176nzVanw","contentType","1661PQYhmG"];return(_=function(){return t})()}const U=O;function M(){const t=[" for ad ","text","getSlotPosition","warn","API request failed: "," (containerId: ",'[data-adstage-slot-id="',"6022088SkVTVb","...","parseNumericValue","🚀 Sending advertisement event: "," event for ad ","log",". Skipping event tracking to prevent incorrect adType.","debug","26618382RYERGQ","655071niIpoC","referrer","VIEWABLE","number","baseUrl","apiKey"," in slot ","20gTglex","🌐 Full API call details:","1634822xkdGqY","length","18xVclsP","containerId","slots","POST","get","substring","now","replace","width","⚠️ DOM element not found for slotId: ","693552nbvhhQ","trackAdvertisementEvent","status","querySelector","61434xmGMIN","adType","createForEvents","statusText","getPageInfo","📡 API Response Status: ","2416572iibkqF","❌ Failed to track advertisement event:","getElementById","NOT_SET"];return(M=function(){return t})()}function O(t,e){const n=M();return(O=function(t,e){return n[t-=122]})(t,e)}!function(){const t=O,e=M();for(;;)try{if(600609===parseInt(t(133))/1*(-parseInt(t(147))/2)+-parseInt(t(122))/3+-parseInt(t(153))/4+parseInt(t(129))/5*(-parseInt(t(143))/6)+parseInt(t(131))/7+-parseInt(t(164))/8+parseInt(t(172))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{constructor(t,e,n,s){const i=O;this[i(126)]=t,this.apiKey=e,this[i(171)]=n,this[i(135)]=s}async[U(144)](t,e,n){const s=U;try{this[s(171)]&&console[s(169)]("🚀 AdvertisementEventTracker: Processing "+n+s(168)+t+s(128)+e);const i=this.slots[s(137)](e);if(!i)return void(this.debug&&console[s(160)]("⚠️ Slot not found for slotId: "+e+s(170)));if(!(document[s(155)](i[s(134)])||document[s(146)](s(163)+e+'"]')))return void(this.debug&&console[s(160)](s(142)+e+s(162)+i[s(134)]+"). Skipping event tracking."));const r=L.collectDeviceInfo(),o={adType:i[s(148)],platform:r.platform,deviceId:r.deviceId,deviceInfo:r,pageUrl:k[s(151)]().url,pageTitle:k[s(151)]().title,referrer:k[s(151)]()[s(123)],slotId:e,slotPosition:L[s(159)](i[s(134)]),slotWidth:V[s(166)](i[s(141)]),slotHeight:V.parseNumericValue(i.height),sessionId:r.sessionId,pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:C(),timestamp:Date[s(139)]()},...n===u[s(124)]&&{isViewable:!0,iabCompliant:!0}},a=this[s(126)]+"/advertisements/events/"+t+"/"+n,c=B[s(149)](this.apiKey,o);this[s(171)]&&(console[s(169)](s(167)+n+s(157)+t,{url:a,headers:c,eventData:o}),console[s(169)](s(130),{method:"POST",url:a,hasApiKey:!!this[s(127)],bodySize:JSON.stringify(o)[s(132)]}));const d=await fetch(a,{method:s(136),headers:c,body:JSON.stringify(o)});if(this[s(171)]&&console.log(s(152)+d[s(145)]+" "+d.statusText,{url:a,ok:d.ok}),!d.ok){const t=await d[s(158)]();throw new Error(s(161)+d[s(145)]+" "+d[s(150)]+" - "+t)}this[s(171)]&&console[s(169)]("✅ Successfully tracked advertisement event: "+n+" for ad "+t)}catch(i){console.error(s(154),i),console.error("🔍 Debug info:",{baseUrl:this[s(126)],apiKey:this[s(127)]?this.apiKey[s(138)](0,8)+s(165):s(156),url:this[s(126)]+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[U(166)](t){const e=U;if(typeof t===e(125))return t;if("string"==typeof t){const n=parseFloat(t[e(140)](/px$/,""));return isNaN(n)?0:n}return 0}}var N=F;function F(t,e){var n=H();return(F=function(t,e){return n[t-=221]})(t,e)}function H(){var t=["handleIntersection","IntersectionObserver not supported, viewability tracking disabled","28usNWQd","1723908PuZuDo","intersectionRatio","1224030MNXwxQ","1478540yTcvoc","destroy","element","isViewableTriggered","490094cyqkwL","observe","19592pwJHRG","2530570ETbDCb","warn","IntersectionObserver","306fRQOoQ","611046GORsXx","hidden","isDocumentVisible","visible","observer","disconnect","onViewableCallback","0px","4HbGsaB","initIntersectionObserver","visibilityState"];return(H=function(){return t})()}!function(){for(var t=F,e=H();;)try{if(320345===parseInt(t(245))/1+-parseInt(t(240))/2+parseInt(t(238))/3*(parseInt(t(232))/4)+parseInt(t(248))/5+parseInt(t(224))/6*(-parseInt(t(237))/7)+parseInt(t(247))/8*(-parseInt(t(223))/9)+-parseInt(t(241))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class K{constructor(t,e){var n=F;this[n(228)]=null,this[n(244)]=!1,this.element=t,this[n(230)]=e,this[n(233)]()}initIntersectionObserver(){var t=F;t(222)in window?(this[t(228)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(231)}),this[t(228)][t(246)](this[t(243)])):console[t(221)](t(236))}[N(235)](t){t.forEach(t=>{var e=F;t[e(239)]>=.5&&this[e(226)]()&&!this.isViewableTriggered&&(this[e(244)]=!0,this.onViewableCallback&&this[e(230)]())})}isDocumentVisible(){var t=N;return!document[t(225)]&&document[t(234)]===t(227)}[N(242)](){var t=N;this[t(228)]&&(this.observer[t(229)](),this[t(228)]=null)}}const j=W;function W(t,e){const n=G();return(W=function(t,e){return n[t-=166]})(t,e)}function G(){const t=["4RaiRUs","startsWith","production","registerAttribution","setBaseUrl","detail","events","https://api.adstage.app","4391900vhwlzu","baseUrl","822agIghI","custom","/advertisements","1322959eZrPvB","list","https://beta-api.adstage.app","advertisements","626702NvrZSP","track","3789528gpYiaT","12424554ItVlZF","getBaseUrl","/events/register/attribution","57029oPqHKH","1014441EaFYQM"];return(G=function(){return t})()}!function(){const t=W,e=G();for(;;)try{if(926877===-parseInt(t(169))/1+-parseInt(t(173))/2+-parseInt(t(180))/3*(parseInt(t(181))/4)+parseInt(t(189))/5+parseInt(t(166))/6*(parseInt(t(179))/7)+-parseInt(t(175))/8+parseInt(t(176))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Y={production:j(188),beta:j(171)};j(183);const q={advertisements:{list:"/advertisements/list",detail:j(168),events:"/advertisements/events"},events:{track:"/events/track",registerAttribution:j(178)}};class X{constructor(t){const e=j;this[e(172)]={list:()=>""+this[e(190)]+q[e(172)][e(170)],detail:t=>""+this.baseUrl+q[e(172)][e(186)]+"/"+t,events:(t,n)=>""+this[e(190)]+q.advertisements[e(187)]+"/"+t+"/"+n},this[e(187)]={track:()=>""+this[e(190)]+q[e(187)][e(174)],registerAttribution:()=>""+this[e(190)]+q[e(187)][e(184)]},this[e(190)]=t||Y[e(183)]}[j(185)](t){this.baseUrl=t}[j(177)](){return this[j(190)]}[j(167)](t){const e=j;return""+this.baseUrl+(t[e(182)]("/")?t:"/"+t)}}const Z=new X;function J(){var t=["VIEWABLE","🎯 Triggering VIEWABLE event for slide change: ad ","trackSlideViewable","_id","1065699ATZmjs",") in slot: ","2340310oaMewh"," (index: 0) in slot: "," (index: ","3157208ernOfT","6503840HPlcHf","🎯 Triggering initial VIEWABLE event: ad ","log","trackInitialSlideViewable","5533002ohDBuH","3bulZVA","63TKikRZ","1856504hfRKva","978380VWFpeZ"];return(J=function(){return t})()}var Q=$;function $(t,e){var n=J();return($=function(t,e){return n[t-=141]})(t,e)}!function(){for(var t=$,e=J();;)try{if(719739===-parseInt(t(159))/1+parseInt(t(154))/2+parseInt(t(151))/3*(-parseInt(t(145))/4)+parseInt(t(142))/5+parseInt(t(150))/6+-parseInt(t(146))/7+parseInt(t(153))/8*(parseInt(t(152))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[Q(157)](t,e,n,s,i=!1){var r=Q;i&&console.log(r(156)+t[r(158)]+r(144)+n+r(141)+e.id),s(t[r(158)],e.id,u[r(155)])}static[Q(149)](t,e,n,s=!1){var i=Q;s&&console[i(148)](i(147)+t[i(158)]+i(143)+e.id),n(t[i(158)],e.id,u[i(155)])}}const et=nt;function nt(t,e){const n=st();return(nt=function(t,e){return n[t-=399]})(t,e)}function st(){const t=["400592uzmlPU"," ad clicked: ","1868290hNSiJS","isClickable","pointer","_id","preventDefault","adType","toLowerCase","_blank","log","8JDLyHd","open","addEventListener","553PnQhaX","cursor","forEach","addClickEvent","5659072DEdRSr","linkUrl","CLICK","stopPropagation","addClickEventForSlider","addClickEventsBatch"," -> ","3314532nWxSTo","2256786SwFTzY","style","99zBLmiM","🔗 ","85938XVknrB","2986940nrfatw","click"];return(st=function(){return t})()}!function(){const t=nt,e=st();for(;;)try{if(854087===-parseInt(t(424))/1+parseInt(t(417))/2+parseInt(t(416))/3+-parseInt(t(402))/4*(parseInt(t(422))/5)+parseInt(t(421))/6*(-parseInt(t(405))/7)+-parseInt(t(409))/8+parseInt(t(419))/9*(parseInt(t(426))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class it{static[et(408)](t,e,n,s,i=!1,r){const o=et;e.linkUrl&&(t[o(418)][o(406)]="pointer",t[o(404)](o(423),t=>{const a=o;if(t.preventDefault(),t[a(412)](),s&&s(e[a(429)],n.id,u[a(411)]),window[a(403)](e[a(410)],a(400)),i){const t=r||String(n[a(431)])[a(399)]();console.log(a(420)+t+a(425)+e[a(429)]+a(415)+e[a(410)])}}))}static addClickEventForRenderer(t,e,n,s,i=!1,r){const o=et;e[o(410)]&&(t[o(418)].cursor=o(428),t[o(404)](o(423),t=>{const a=o;t[a(430)](),t[a(412)]();if(s()(e[a(429)],n.id,u[a(411)]),window[a(403)](e[a(410)],"_blank"),i){const t=r||String(n[a(431)]).toLowerCase();console[a(401)](a(420)+t+a(425)+e[a(429)]+a(415)+e[a(410)])}}))}static[et(413)](t,e,n,s,i=!1,r){this[et(408)](t,e,n,s,i,r)}static[et(427)](t){return Boolean(t[et(410)])}static[et(414)](t,e,n,s,i=!1,r){const o=et;t[o(407)]((t,a)=>{const c=o,d=e[a];d&&this[c(408)](t,d,n,s,i,r)})}}const rt=ot;function ot(t,e){const n=at();return(ot=function(t,e){return n[t-=277]})(t,e)}function at(){const t=["addClickEventForSlider","center","adstage-slide-container","5LyjYDO","1px dashed #ccc","overflow","removeChild","translateX(-","autoSlideInterval","#cccccc","classList","appendChild","14px","1756803sTPHRR","5356197OcCTLA","setProperty","data-adstage-ad-id","hidden","flex","VIDEO","height","18662ujyuXV","adstage-ad adstage-","1592340VBHuwI","mouseleave","none","color","0.9","video","preventDefault","white","style","active","relative","string","fontSize","normal","border","1240WFrEyA","touchend","className","adstage-slider-wrapper","toLowerCase","clientX","8px","50px","objectFit","textContent","createElement","touches","#f0f0f0","transition","BANNER","1px solid #666","length","children","every","padding","background","click","_id","Video Ad","addTouchSupport","TEXT","433809QuKama","abs","contains","100px","videoUrl","4KNUnsX","remove","auto","createMinimalDotIndicator","width","mouseenter","adstage-dots","cssText","#666666","borderColor","3505180AalwHq","forEach","whiteSpace","div","touchmove","Text Ad","addEventListener","touchstart","transform 0.4s ease-out","backgroundColor","includes","imageUrl","createSliderContainer","100%","body","200px","adstage-slide","querySelectorAll","trackSlideViewable","150lzHJqK","setAttribute","opacity","createSimpleAdElement","data-adstage-slot-id",".adstage-dot","getBoundingClientRect","adType","7170378sRMlPt","img","#000","0.7","display"];return(at=function(){return t})()}!function(){const t=ot,e=at();for(;;)try{if(924918===-parseInt(t(294))/1+parseInt(t(360))/2+-parseInt(t(304))/3*(-parseInt(t(350))/4)+-parseInt(t(284))/5*(-parseInt(t(387))/6)+parseInt(t(302))/7*(parseInt(t(319))/8)+-parseInt(t(345))/9*(parseInt(t(379))/10)+-parseInt(t(295))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[rt(382)](t,e){const n=rt,s=document[n(329)](n(363));switch(s.className=n(303)+String(t.adType)[n(323)](),s.setAttribute(n(297),e[n(341)]),s[n(380)](n(383),t.id),s[n(312)][n(280)]="block",s.style[n(354)]="100%",s[n(312)][n(301)]=n(352),t[n(386)]){case r[n(333)]:if(e.imageUrl){const t=document[n(329)](n(277));t.src=e[n(371)],t[n(312)][n(354)]=n(373),t[n(312)].height=n(352),t[n(312)][n(327)]="cover",s[n(292)](t)}else s.style.height=n(348),s[n(312)][n(369)]=n(331),s[n(312)][n(318)]=n(285),s[n(328)]="Banner Ad";break;case r[n(300)]:if(e[n(349)]){const t=document[n(329)](n(309));t.src=e.videoUrl,t.style[n(354)]=n(373),t.style[n(301)]=n(352),s[n(292)](t)}else s.style[n(301)]=n(375),s.style[n(369)]=n(278),s[n(312)][n(318)]=n(334),s[n(328)]=n(342),s[n(312)][n(307)]=n(311);break;case r[n(344)]:if(e[n(328)]){const t=document.createElement("div");t.textContent=e.textContent||"",t[n(312)][n(338)]=n(325),t[n(312)][n(316)]=n(293),s[n(292)](t)}else s.style.height=n(326),s[n(312)][n(338)]=n(325),s[n(328)]=n(365);break;default:s[n(312)][n(301)]=n(348),s[n(312)][n(318)]="1px dashed #ccc",s[n(312)][n(369)]="#f9f9f9",s[n(328)]=t.adType+" Ad"}return s}static[rt(372)](t,e,n,s,i=!1){const o=rt,a=document[o(329)]("div");a[o(321)]=o(322);const c={position:o(314),overflow:"hidden"};if(t.width&&0!==t[o(354)]){let e;e=typeof t.width===o(315)&&(t[o(354)][o(370)]("px")||t[o(354)].includes("%"))?t[o(354)]:t[o(354)]+"px",c.width=e,c.display="inline-block"}else c[o(280)]="inline-block";if(t[o(301)]&&0!==t[o(301)]){const e="string"==typeof t[o(301)]?t.height:t.height+"px";c.height=e}Object.entries(c)[o(361)](([t,e])=>{a[o(312)].setProperty(t,e)});const d=!t.width||0===t[o(354)],l=!t[o(301)]||0===t[o(301)];if(d||l){const n=document[o(329)](o(363));if(n[o(312)][o(357)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t.width){let e;e=typeof t[o(354)]===o(315)&&(t[o(354)][o(370)]("px")||t.width[o(370)]("%"))?t.width:t[o(354)]+"px",n[o(312)].width=e,n[o(312)][o(362)]=o(317)}document[o(374)][o(292)](n);let s=0,i=0;e[o(361)](e=>{const r=o,a=this.createSimpleAdElement(t,e);n[r(292)](a);const c=a[r(385)]();c[r(354)]>s&&(s=c[r(354)]),c.height>i&&(i=c[r(301)]),n[r(287)](a)}),d&&s>0&&(a[o(312)][o(354)]=s+"px",c.width=s+"px"),l&&i>0&&(a.style[o(301)]=i+"px",c.height=i+"px"),document[o(374)][o(287)](n)}const u=[...e,e[0]],p=document[o(329)](o(363));p[o(321)]=o(283);const h={display:"flex",transition:o(368),width:100*u[o(335)]+"%"};t[o(301)]&&0!==t.height&&(h.height=o(373)),Object.entries(h)[o(361)](([t,e])=>{const n=o;p.style[n(296)](t,e)}),u[o(361)]((e,n)=>{const r=o,a=document[r(329)](r(363));a.className=r(376);const c={width:100/u[r(335)]+"%","flex-shrink":"0",display:r(299),"align-items":r(282),"justify-content":"center"};t[r(301)]&&0!==t[r(301)]&&(c[r(301)]=r(373)),Object.entries(c).forEach(([t,e])=>{const n=r;a[n(312)][n(296)](t,e)});const d=this.createSimpleAdElement(t,e);it[r(281)](d,e,t,s,i,String(t.adType)[r(323)]()),a[r(292)](d),p[r(292)](a)});const f=e[o(337)](t=>t.adType===r[o(344)])?null:this[o(353)](e[o(335)]);let g=0;const m=e[o(335)],I=1e3*(n?.[o(289)]||3),y=(n,r=!1)=>{const a=o;g=n,r?p[a(312)].transition=a(306):p[a(312)][a(332)]="transform 0.4s ease-out",p.style.transform=a(288)+100/u[a(335)]*g+"%)";const c=g===m?0:g;if(f){f[a(377)](a(384))[a(361)]((t,e)=>{const n=a,s=t;e===c?(s[n(291)].add("active"),s[n(312)][n(339)]=n(358),s[n(312)][n(359)]="#666666",s[n(312)][n(381)]="1"):(s[n(291)][n(351)](n(313)),s.style[n(339)]="transparent",s.style[n(359)]=n(290),s[n(312)][n(381)]=n(279))})}tt[a(378)](e[c],t,c,s,i)},v=()=>{g===m&&setTimeout(()=>{y(0,!0)},400)};if(f){f[o(377)](o(384))[o(361)]((t,e)=>{const n=o;t[n(366)](n(340),()=>y(e))})}let b=setInterval(()=>{y(g+1),v()},I);return a[o(366)](o(355),()=>{clearInterval(b)}),a.addEventListener(o(305),()=>{b=setInterval(()=>{y(g+1),v()},I)}),this[o(343)](p,y,()=>g,m,v),a[o(292)](p),f&&a.appendChild(f),y(0),(!t[o(354)]||0===t[o(354)])&&setTimeout(()=>{const e=o,n=p[e(336)][0];if(n){const s=n.children[0];if(s){const n=s[e(385)]();a[e(312)][e(354)]=n[e(354)]+"px",(!t[e(301)]||0===t[e(301)])&&(a.style[e(301)]=n.height+"px"),a[e(312)][e(286)]=e(298)}}},10),a}static[rt(353)](t){const e=rt,n=document[e(329)]("div");n[e(321)]=e(356),n[e(312)][e(357)]="\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ";for(let s=0;s<t;s++){const t=document[e(329)]("button");t.className="adstage-dot",t[e(312)][e(357)]="\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ",t[e(366)]("mouseenter",()=>{const n=e;!t.classList[n(347)](n(313))&&(t[n(312)].borderColor="#999999",t[n(312)][n(381)]=n(308))}),t[e(366)](e(305),()=>{const n=e;!t.classList[n(347)](n(313))&&(t[n(312)].borderColor=n(290),t[n(312)][n(381)]=n(279))}),n[e(292)](t)}return n}static addTouchSupport(t,e,n,s,i){const r=rt;let o=0,a=!1;t[r(366)](r(367),t=>{o=t[r(330)][0].clientX,a=!0}),t[r(366)](r(364),t=>{a&&t[r(310)]()}),t.addEventListener(r(320),t=>{const c=r;if(!a)return;a=!1;const d=t.changedTouches[0][c(324)],l=o-d;if(Math[c(346)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}const dt=pt;function lt(){const t=["132978HoZzdt","39090GbzqgU","Duplicate viewable blocked for ad ","15VwXcRy","delete","2rhDvaM","221392vtCuip","199110qSDZXA","add","3479CzEThc","24cPBzGL","3192167eUylFA","log","viewableTracker","clear","✅ New viewable recorded for ad "," in slot ","333apRfSY","clearAdViewable","428276PZTNXE"];return(lt=function(){return t})()}!function(){const t=pt,e=lt();for(;;)try{if(205917===parseInt(t(181))/1*(parseInt(t(166))/2)+-parseInt(t(168))/3+-parseInt(t(180))/4*(parseInt(t(184))/5)+-parseInt(t(171))/6*(parseInt(t(170))/7)+parseInt(t(167))/8+parseInt(t(178))/9*(parseInt(t(182))/10)+parseInt(t(172))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static isDuplicateViewable(t,e,n=!1){const s=pt,i=t+"_"+e;return ut[s(174)].has(i)?(n&&console[s(173)](s(183)+t+s(177)+e),!0):(ut[s(174)][s(169)](i),n&&console.log(s(176)+t+s(177)+e),!1)}static[dt(175)](){const t=dt;ut.viewableTracker[t(175)]()}static[dt(179)](t,e){const n=dt,s=t+"_"+e;ut[n(174)][n(165)](s)}}function pt(t,e){const n=lt();return(pt=function(t,e){return n[t-=165]})(t,e)}function ht(){const t=["data-adstage-container","createElement","data-adstage-slot","fontSize"," in slot ","adType"," container: ","11px","toLowerCase","div","debug","getAttribute",") - Mode: ","hasAttribute","applyPlaceholderStyle","appendChild","isEmpty","renderFallback","minimal","📏 Using 100% height (container: ","createEmptyContainer","monospace","border"," ad...</span>","closest",'[data-adstage-container="true"]',"error"," for ad ","2px dashed #e74c3c",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"232368TnwzPX","adstage-slot adstage-empty adstage-","): ","opacity","borderRadius","#f9f9f9","4px","setAttribute","advertisementEventTracker","advertisement","getElementById","adstage-official","531654PNwVaG","true","log",'[class*="banner"]',"flex","style","color","calculateAdSize","block","none","filter","isDuplicateViewable","⚠️ AdvertisementEventTracker not available for ","invisible","<span>Loading ","311936DNzNBS"," slot: ","210054AzOMce","createPlaceholder","warn","backgroundColor","190XEStLu","cssText","querySelector","data-adstage-empty"," event","📦 Placeholder created for ","transparent","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","display"," event for ad ","✅ New viewable recorded for ad ","🔄 Starting advertisement event tracking: ","placeholderMode","data-adstage-type","width","containerId","number","3346588RuYhJy","#666","px)","100%","auto","alignItems"," x ","35eNMPdz","⚠️ "," for ","trackAdvertisementEvent","unknown","15cSJnlp",'[class*="ad"]',"center","1px dashed #ccc","generic","justifyContent","className","getContainerHeight","adstage-slot adstage-","getDefaultHeight","innerHTML","classList","subtle",'[class*="container"]',"📊 Advertisement event tracked: ","height","rgba(0, 0, 0, 0.02)","rgba(248, 249, 250, 0.5)","contains",'div[style*="min-height"]',"string","1791416HBwZQC","⚠️ Created empty ","393651emwOpc"];return(ht=function(){return t})()}ut[dt(174)]=new Set;const ft=gt;function gt(t,e){const n=ht();return(gt=function(t,e){return n[t-=379]})(t,e)}!function(){const t=gt,e=ht();for(;;)try{if(620102===-parseInt(t(455))/1+-parseInt(t(470))/2+parseInt(t(443))/3+parseInt(t(493))/4+-parseInt(t(389))/5*(-parseInt(t(472))/6)+parseInt(t(384))/7*(parseInt(t(410))/8)+parseInt(t(412))/9*(-parseInt(t(476))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class mt{constructor(t,e=!1,n){const s=gt;this[s(418)]=t,this[s(423)]=e,this[s(451)]=n||null}[ft(473)](t,e,n,s){const i=ft,r=document[i(414)](i(422));r.id=e,r[i(395)]=i(397)+String(this[i(418)]).toLowerCase(),r.setAttribute(i(413),"true"),r[i(450)](i(489),String(this[i(418)])),r.setAttribute(i(415),e);const{width:o,height:a}=this[i(462)](t,n,s)||{width:i(380),height:this[i(398)]()};r[i(460)][i(490)]=o,r[i(460)].height=a;const c=s?.[i(488)]||n[i(488)]||i(468);this[i(427)](r,c),t.appendChild(r),this[i(423)]&&console[i(457)](i(481)+this[i(418)]+i(471)+e+" ("+o+i(383)+a+i(425)+c)}applyPlaceholderStyle(t,e){const n=ft;switch(e){case n(468):t.style.backgroundColor="transparent",t[n(460)][n(435)]=n(464),t[n(460)][n(446)]="0",t[n(399)]="";break;case n(482):t[n(460)][n(475)]=n(482),t[n(460)][n(435)]=n(464),t[n(460)].display=n(463),t[n(399)]="";break;case n(401):t.style[n(475)]=n(405),t[n(460)][n(435)]=n(464),t.style[n(447)]=n(449),t[n(460)][n(484)]=n(459),t[n(460)].alignItems=n(391),t[n(460)][n(394)]=n(391),t[n(399)]=n(442);break;case n(431):t.style[n(475)]=n(406),t.style[n(435)]="1px solid rgba(0, 0, 0, 0.08)",t[n(460)][n(447)]="6px",t.style[n(484)]=n(459),t[n(460)][n(382)]=n(391),t[n(460)].justifyContent="center",t.innerHTML='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case n(423):t[n(460)].border=n(441),t[n(460)][n(484)]="flex",t[n(460)][n(382)]=n(391),t.style[n(394)]="center",t.style[n(475)]="rgba(231, 76, 60, 0.1)",t.style[n(461)]="#e74c3c",t[n(460)].fontFamily=n(434),t[n(460)][n(416)]=n(420),t.innerHTML="<span>Loading "+this[n(418)]+n(436);break;default:t[n(460)][n(435)]=n(392),t.style[n(484)]=n(459),t[n(460)][n(382)]=n(391),t[n(460)][n(394)]=n(391),t[n(460)][n(475)]=n(448),t.style[n(461)]=n(494),t[n(399)]=n(469)+this.adType+n(436)}}[ft(462)](t,e,n){const s=ft,i=e[s(490)],r=e.height;let o,a;if(o=typeof i===s(492)?i+"px":typeof i===s(409)?i:s(380),typeof r===s(492))a=r+"px";else if(typeof r===s(409)&&"100%"!==r&&r!==s(381))a=r;else{const e=this[s(396)](t);e>0?(a=s(380),(n?.[s(423)]||this[s(423)])&&console[s(457)](s(432)+e+s(379))):(a=this[s(398)](),(n?.[s(423)]||this[s(423)])&&console[s(457)]("📏 Using default height "+a+s(386)+this[s(418)]))}return{width:o,height:a}}getContainerHeight(t){const e=ft,n=window.getComputedStyle(t),s=parseFloat(n.height);if(!s||0===s){const s=parseFloat(n.minHeight);if(s>0)return s;if(t[e(460)][e(404)]&&t[e(460)].height!==e(381)){const n=parseFloat(t[e(460)].height);if(n>0)return n}const i=t[e(424)]("height");if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}createEventTrackingCallback(){return async(t,e,n)=>{const s=gt;if(n===u.VIEWABLE){if(ut[s(466)](t,e,this[s(423)]))return void(this[s(423)]&&console[s(457)]("🚫 Duplicate viewable blocked for ad "+t+s(417)+e));this[s(423)]&&console[s(457)](s(486)+t+s(417)+e)}if(this.advertisementEventTracker)try{this[s(423)]&&console[s(457)](s(487)+n+s(440)+t+s(417)+e),await this.advertisementEventTracker[s(387)](t,e,n),this[s(423)]&&console[s(457)](s(403)+n+s(440)+t+s(417)+e)}catch(e){this[s(423)]&&console[s(439)]("❌ Failed to track "+n+s(485)+t+":",e)}else this[s(423)]&&console[s(474)](s(467)+n+s(480))}}[ft(430)](t){const e=ft,n=document[e(453)](t.id);if(n){const s=[...[n[e(478)](e(438)),n[e(437)]('[data-adstage-container="true"]'),n][e(465)](t=>t&&t[e(426)](e(413))),...[n.closest(".adstage-slot"),n[e(437)](".adstage-"+String(this[e(418)])[e(421)]()),n[e(437)](e(390)),n[e(437)](e(458)),n[e(437)](e(402)),n.closest('div[style*="height"]'),n[e(437)](e(408)),n.parentElement].filter(Boolean)][0];if(s){let n=e(388);n=s[e(426)]("data-adstage-container")?e(454):s[e(400)][e(407)]("adstage-slot")?"adstage-class":e(393),s.style[e(477)]+="\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ",s[e(399)]="",s[e(450)]("data-adstage-empty",e(456)),this[e(423)]&&console[e(474)](e(385)+this[e(418)]+" container collapsed ("+n+e(445)+t.id,s)}else this[e(433)](t)}t[e(452)]=void 0,t[e(429)]=!0}[ft(433)](t){const e=ft,n=document.getElementById(t[e(491)]);if(n){n.innerHTML="";const s=document.createElement("div");s.id=t.id,s[e(395)]=e(444)+String(this[e(418)])[e(421)](),s.setAttribute(e(413),e(456)),s[e(450)](e(479),e(456)),s[e(450)]("data-adstage-slot",t.id),s[e(460)][e(477)]=e(483),n[e(428)](s),this[e(423)]&&console[e(474)](e(411)+this.adType+e(419)+t.id)}}[ft(457)](t,...e){const n=ft;this[n(423)]&&console[n(457)]("["+this.adType+"] "+t,...e)}}const It=vt;function yt(){const t=["status","Failed to load image: ","📐 Optimal banner container calculated: ","toString","from","calculateAdSize","alt","debug","naturalHeight","selectOptimalSizeStrategy","📦 Banner container dimensions: ","12GLmYyQ","set","map","createEventTrackingCallback","3418656yDAnXo","appendChild","cover","getBoundingClientRect","renderOptimizedBannerImage","✅ Optimized banner image rendered for ad: ",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"display","Banner","createSliderContainer","average","abs","aspectRatio","22jzekpz","34mjtZYx","objectPosition","default","round","parentElement","427KxsbLB",", ratio=","Banner container optimization failed, using default size:","19542KzoNDS","100%","containerId","286587LuFsti","<div>","forEach","_id","objectFit","img","onload","height","config","filter","renderMultipleAds","loadImageDimensions","warn","createElement","error","Banner Advertisement","common","toFixed","BANNER","naturalWidth","title","center","📸 Banner image dimensions: ","backgroundColor","reduce","#f0f0f0","calculateOptimalHeight","3:2","div","📊 Using standard ratio: ","dominant","width","16:9","adstage-ad adstage-banner-ad","Banner Ad","Failed to calculate optimal banner size, using defaults:","style","283445WhfnKN","33014CLMZcx","src","fulfilled","value","onerror","innerHTML","name","imageUrl"," (strategy: ","log","applyOptimizedImageStyle","renderAdElement","block","calculateOptimalContainerSize","1831356ATxLHO","🎠 Banner carousel created for slot: ","getDefaultHeight","40UfjaPu","count","get","ratio","max","1:1","2253354LIgBtE","optimizedHeight"," ads: ","borderRadius","Container not found: ","addClickEventForRenderer","length","values","some","getElementById","Image URL is not provided"];return(yt=function(){return t})()}function vt(t,e){const n=yt();return(vt=function(t,e){return n[t-=340]})(t,e)}!function(){const t=vt,e=yt();for(;;)try{if(428342===-parseInt(t(415))/1*(-parseInt(t(352))/2)+-parseInt(t(375))/3+-parseInt(t(397))/4*(-parseInt(t(351))/5)+parseInt(t(423))/6*(parseInt(t(420))/7)+parseInt(t(401))/8+-parseInt(t(426))/9*(-parseInt(t(369))/10)+parseInt(t(414))/11*(-parseInt(t(366))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class bt extends mt{constructor(t=!1,e){super(r[vt(444)],t,e)}getDefaultHeight(){return"250px"}async[It(363)](t,e){const n=It,s=document.getElementById(t[n(425)]);if(!s)return;const i=document[n(439)](n(342));i.className=n(347);const r=t[n(376)],o=s[n(419)]||s;if(r)i[n(350)][n(345)]="100%",i[n(350)].height=String(r);else{const e=t[n(434)],s={width:e?.[n(345)],height:e?.[n(433)]},{width:r,height:a}=this[n(391)](o,s,{debug:this[n(393)]});i[n(350)][n(345)]=r,i.style[n(433)]=a}e[n(359)]?await this[n(405)](i,e,t):i[n(357)]=n(427)+(e[n(446)]||n(348))+"</div>",it[n(380)](i,e,t,()=>this[n(400)](),this[n(393)],n(409)),s[n(357)]="",s[n(402)](i)}async[It(436)](t,e){const n=It,s=document[n(384)](t[n(425)]);if(!s)throw new Error(n(379)+t[n(425)]);await this.optimizeContainerForBannerAds(t,e);const i=this.createEventTrackingCallback(),r={autoSlideInterval:(t[n(434)]?.slideInterval||5e3)/1e3,...t.config,optimizedHeight:t[n(376)],aspectRatio:t[n(413)]},o=ct[n(410)](t,e,r,i,this.debug);o&&(s[n(357)]="",s[n(402)](o),this[n(393)]&&console[n(361)](n(367)+t.id+" with "+e[n(381)]+" ads (optimized: "+(t[n(376)]||n(417))+")"))}async[It(365)](t,e){const n=It;if(!t.length)return{width:n(424),height:this[n(368)](),aspectRatio:16/9};try{const s=(await Promise.allSettled(t[n(435)](t=>t[n(359)])[n(399)](t=>this[n(437)](t[n(359)]))))[n(435)](t=>t[n(386)]===n(354))[n(399)](t=>t[n(355)]);if(0===s[n(381)])return{width:"100%",height:this[n(368)](),aspectRatio:16/9};const i=this[n(395)](s),r=this[n(340)](s,e,i);return this[n(393)]&&console.log(n(388)+e+"x"+r+n(360)+i+")"),{width:n(424),height:r+"px",aspectRatio:e/r}}catch(t){return console[n(438)](n(349),t),{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9}}}async optimizeContainerForBannerAds(t,e){const n=It;try{const s=document[n(384)](t[n(425)]),i=document[n(384)](t.id);if(!s||!i)return;const r=s[n(404)]().width||300,o=await this.calculateOptimalContainerSize(e,r);i[n(350)][n(433)]=o[n(433)],t[n(376)]=o.height,t.aspectRatio=o[n(413)],this[n(393)]&&console[n(361)]("🔧 Banner container optimized for "+e[n(381)]+n(377)+o.height)}catch(t){console[n(438)](n(422),t)}}[It(395)](t){const e=It,n=t[e(399)](t=>t[e(345)]/t[e(433)]),s=new Map;n[e(428)](t=>{const n=e,i=(Math[n(418)](10*t)/10)[n(389)]();s.set(i,(s[n(371)](i)||0)+1)});const i=Math[e(373)](...s[e(382)]()),r=t.length;if(i/r>=.7)return e(344);const o=[16/9,4/3,1,1.5],a=n[e(435)](t=>o[e(383)](e=>Math.abs(t-e)<.1))[e(381)];return e(a/r>=.5?442:411)}[It(340)](t,e,n){const s=It,i=t[s(399)](t=>t[s(345)]/t[s(433)]);switch(n){case s(344):{const t=new Map;i[s(428)](e=>{const n=s,i=Math[n(418)](10*e)/10,r=i[n(389)](),o=t.get(r);o?o.count++:t[n(398)](r,{ratio:i,count:1})});const n=Array[s(390)](t.values())[s(450)]((t,e)=>e[s(370)]>t[s(370)]?e:t);return Math[s(418)](e/n[s(372)])}case s(442):{const t=[{ratio:16/9,name:s(346)},{ratio:4/3,name:"4:3"},{ratio:1,name:s(374)},{ratio:1.5,name:s(341)}],n=i[s(450)]((t,e)=>t+e,0)/i[s(381)],r=t[s(450)]((t,e)=>Math.abs(e.ratio-n)<Math[s(412)](t[s(372)]-n)?e:t);return this[s(393)]&&console.log(s(343)+r[s(358)]+" (avg: "+n[s(443)](2)+")"),Math[s(418)](e/r.ratio)}case s(411):default:{const t=i[s(450)]((t,e)=>t+e,0)/i[s(381)];return Math[s(418)](e/t)}}}[It(437)](t){return new Promise((e,n)=>{const s=vt,i=new Image;i[s(432)]=()=>{const t=s;e({width:i[t(445)],height:i[t(394)]})},i[s(356)]=()=>{n(new Error(s(387)+t))},i[s(353)]=t})}[It(362)](t,e,n){const s=It,i=e/n;Math[s(412)](i-1)<.1?(t[s(350)][s(430)]=s(403),t[s(350)].objectPosition=s(447)):i>1.3?(t[s(350)][s(430)]="contain",t[s(350)][s(416)]="center",t[s(350)][s(449)]=s(451)):i<.7?(t[s(350)].objectFit=s(403),t[s(350)][s(416)]="center"):(t[s(350)][s(430)]=s(403),t.style[s(416)]=s(447)),this[s(393)]&&console[s(361)]("🎨 Banner image style applied: objectFit="+t[s(350)][s(430)]+s(421)+i.toFixed(2))}async[It(405)](t,e,n){const s=It,i=document[s(439)](s(431));i[s(350)].width="100%",i.style[s(433)]=s(424),i[s(350)][s(408)]=s(364),i.style[s(378)]="8px",i[s(392)]=e.title||s(441),t[s(357)]=s(407);try{if(!e.imageUrl)throw new Error(s(385));const r=await this[s(437)](e[s(359)]),o=t.getBoundingClientRect(),a=o[s(345)],c=o[s(433)];this.debug&&(console.log(s(448)+r.width+"x"+r.height),console.log(s(396)+a+"x"+c));const d=r.width/r[s(433)],l=a/c;return this[s(362)](i,d,l),i.src=e.imageUrl,t[s(357)]="",t[s(402)](i),it[s(380)](i,e,n,()=>this[s(400)](),this.debug,s(409)),this.debug&&console[s(361)](s(406)+e[s(429)]),i}catch(r){return console[s(440)]("❌ Failed to load optimized banner image:",r),e[s(359)]&&(i.src=e[s(359)],i[s(350)][s(430)]="cover",i[s(350)][s(416)]=s(447),t.innerHTML="",t[s(402)](i),it[s(380)](i,e,n,()=>this[s(400)](),this[s(393)],s(409))),i}}}const wt=Et;function kt(){const t=["3mxVOta","986388zurgkV","setTextAdContent","71448CzdmKx","129188SRrxgb","textContent","title","1nCGvxE","createTextAdStyles","35RdWsIn","11965NhCNNS","80ayhfHx","426BsIDyn","\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n ","48771gySvMg","14GSNpaL","44600COqcuU","22DHMdoL","5526404kKBZLK"];return(kt=function(){return t})()}function Et(t,e){const n=kt();return(Et=function(t,e){return n[t-=419]})(t,e)}!function(){const t=Et,e=kt();for(;;)try{if(115302===parseInt(t(431))/1*(-parseInt(t(428))/2)+-parseInt(t(424))/3*(-parseInt(t(427))/4)+-parseInt(t(434))/5*(parseInt(t(436))/6)+-parseInt(t(433))/7*(-parseInt(t(421))/8)+parseInt(t(419))/9*(parseInt(t(435))/10)+parseInt(t(422))/11*(-parseInt(t(425))/12)+-parseInt(t(423))/13*(-parseInt(t(420))/14))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class xt{static[wt(432)](t=!1){return wt(437)}static[wt(426)](t,e){const n=wt,s=e[n(429)]||e[n(430)]||"";t[n(429)]=s}}const St=Ct;function At(){const t=["opacity","touches","20524gYySkz","data-adstage-slot-id","auto","data-adstage-ad-id","createElement","includes","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","height: 100%;","adstage-fade-slide-container","4SDPege","touchmove","abs","_id","touchstart","appendChild","\n position: relative;\n width: 100%;\n ","\n position: ","17980EFukpS","height: auto;","className","2382NFPGqZ","34838ayeviO","transform","autoSlideInterval","createTextAdStyles","mouseenter","relative",";\n width: 100%;\n ","cssText","createTextTransitionContainer","position",";\n left: ","clientX","changedTouches","createSimpleAdElement","height","absolute",";\n ","hidden","4184LGurCx","addEventListener","style","whiteSpace","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","trackSlideViewable","25299bDljAw","19151gUbbaO","setProperty","clientY","zIndex","top","adstage-fade-slider-wrapper","translateY(-20px)","getBoundingClientRect","minHeight","adstage-ad adstage-","addTouchSupport","\n ","normal","20px","adType","setAttribute","body",";\n transform: translateY(","width","preventDefault","forEach","removeChild","left","div","translateY(0)","1219415gcGdGr","push","980876pdIeOp","length","3937704LjGGFU","string"];return(At=function(){return t})()}function Ct(t,e){const n=At();return(Ct=function(t,e){return n[t-=383]})(t,e)}!function(){const t=Ct,e=At();for(;;)try{if(742442===-parseInt(t(420))/1+-parseInt(t(393))/2+-parseInt(t(395))/3+parseInt(t(408))/4*(-parseInt(t(391))/5)+-parseInt(t(419))/6*(-parseInt(t(399))/7)+-parseInt(t(438))/8*(parseInt(t(444))/9)+parseInt(t(416))/10*(parseInt(t(445))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Tt{static[St(433)](t,e){const n=St,s=document.createElement(n(389));return s.className=n(454)+String(t[n(459)]).toLowerCase(),s[n(460)](n(402),e[n(411)]),s[n(460)](n(400),t.id),s.style[n(427)]=xt[n(423)](!0),xt.setTextAdContent(s,e),s}static[St(428)](t,e,n,s,i=!1){const r=St,o=t[r(434)]&&0!==t.height&&t[r(434)]!==r(401),a=document[r(403)](r(389));a[r(418)]=r(450);const c={position:"relative",overflow:r(437),display:"block"};if(!o&&(c[r(434)]=r(401),c[r(453)]="fit-content"),t[r(384)]&&0!==t[r(384)]){let e;e=typeof t.width===r(396)&&(t.width[r(404)]("px")||t[r(384)][r(404)]("%"))?t[r(384)]:t[r(384)]+"px",c[r(384)]=e}if(t[r(434)]&&0!==t[r(434)]&&t[r(434)]!==r(401)&&o){let e;e=typeof t.height===r(396)&&(t[r(434)][r(404)]("px")||t[r(434)].includes("%"))?t[r(434)]:t[r(434)]+"px",c.height=e}Object.entries(c)[r(386)](([t,e])=>{const n=r;a.style[n(446)](t,e)});const d=document[r(403)](r(389));d[r(418)]=r(407),d[r(440)][r(427)]=r(414)+(o?r(406):"height: auto; min-height: fit-content;")+r(456);let l=null;const u=!t[r(384)]||0===t[r(384)],p=!t[r(434)]||0===t[r(434)]||void 0===t[r(434)]||t[r(434)]===r(401);if(u||p&&o){if(l=document.createElement(r(389)),l.style[r(427)]=r(442),!u&&t[r(384)]){let e;e="string"==typeof t[r(384)]&&(t[r(384)].includes("px")||t[r(384)][r(404)]("%"))?t[r(384)]:t[r(384)]+"px",l[r(440)][r(384)]=e,l[r(440)][r(441)]=r(457)}document.body[r(413)](l);let n=0,s=0;e[r(386)](e=>{const i=r,o=this[i(433)](t,e);l.appendChild(o);const a=o[i(452)]();a[i(384)]>n&&(n=a[i(384)]),a[i(434)]>s&&(s=a[i(434)]),l[i(387)](o)}),u&&n>0&&(a.style[r(384)]=n+"px"),p&&s>0&&o&&(a.style[r(434)]=s+"px"),document[r(461)][r(387)](l)}const h=[];e[r(386)]((e,n)=>{const a=r,c=document[a(403)](a(389));c[a(418)]="adstage-fade-slide";const l=a(o?435:0===n?425:435);c[a(440)][a(427)]=a(415)+l+";\n top: "+("absolute"===l?"0":a(401))+a(430)+("absolute"===l?"0":a(401))+a(426)+(o?"height: 100%;":a(417))+a(405)+(0===n?"1":"0")+a(383)+(0===n?"0":a(458))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+a(436);const u=this.createSimpleAdElement(t,e);it.addClickEventForSlider(u,e,t,s,i,"Text"),c[a(413)](u),d[a(413)](c),h[a(392)](c)});let f=0;const g=e[r(394)],m=1e3*(n?.[r(422)]||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(440)][a(429)]===a(425)&&(c[a(440)].position=a(435),c[a(440)].top="0",c[a(440)].left="0"),d[a(440)].position=a(425),d[a(440)][a(449)]="auto",d[a(440)][a(388)]=a(401)),c[a(440)][a(397)]="0",c[a(440)][a(421)]=a(451),c[a(440)].zIndex="1",d.style[a(397)]="1",d.style[a(421)]=a(390),d[a(440)][a(448)]="2",h.forEach((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(440)][s(397)]="0",t[s(440)][s(421)]="translateY(20px)",t[s(440)][s(448)]="1",!o&&t[s(440)][s(429)]===s(425)&&(t[s(440)][s(429)]=s(435),t[s(440)][s(449)]="0",t[s(440)][s(388)]="0"))}),f=n,tt[a(443)](e[f],t,f,s,i)};let y=setInterval(()=>{I(f+1)},m);return a[r(439)](r(424),()=>{clearInterval(y)}),a.addEventListener("mouseleave",()=>{y=setInterval(()=>{I(f+1)},m)}),Tt[r(455)](a,I,()=>f,g),a[r(413)](d),a}static addTouchSupport(t,e,n,s){const i=St;let r=0,o=0,a=!1;t[i(439)](i(412),t=>{const e=i;r=t[e(398)][0][e(431)],o=t[e(398)][0].clientY,a=!0}),t[i(439)](i(409),t=>{a&&t[i(385)]()}),t.addEventListener("touchend",t=>{const s=i;if(!a)return;a=!1;const c=t.changedTouches[0][s(431)],d=t[s(432)][0][s(447)],l=r-c,u=o-d;if(Math.abs(l)>Math[s(410)](u)&&Math[s(410)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Rt=Lt;function Dt(){const t=["appendChild","style"," with ","number","getElementById","✨ Single text ad rendered: ","2811488FSDAHz","createTextAdStyles","-webkit-box","✨ Text transition created for slot: ","className","display","Text","setTextAdContent","log","2507184xkUoMg","3GgezYD","aspectRatio","calculateAdSize","createElement","slideInterval","addClickEventForRenderer","containerId","height","innerHTML","config","1450324ekSyyD","debug","vertical","cssText","26567882EdJozD","60px","7582026FLvohW","_id","TEXT","createTextTransitionContainer","7jUvKMg","hidden","renderAdElement","1XsEfrA","webkitLineClamp","optimizedHeight","adstage-text-content","width","27gGSWwO","11565eqryNd","createEventTrackingCallback","div","4078430oyJZnU"," ads"];return(Dt=function(){return t})()}function Lt(t,e){const n=Dt();return(Lt=function(t,e){return n[t-=424]})(t,e)}!function(){const t=Lt,e=Dt();for(;;)try{if(930897===parseInt(t(457))/1*(parseInt(t(444))/2)+-parseInt(t(434))/3*(-parseInt(t(433))/4)+parseInt(t(463))/5+-parseInt(t(450))/6*(parseInt(t(454))/7)+-parseInt(t(424))/8+parseInt(t(462))/9*(-parseInt(t(466))/10)+parseInt(t(448))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class zt extends mt{constructor(t=!1,e){super(r[Lt(452)],t,e)}getDefaultHeight(){return Lt(449)}async[Rt(456)](t,e){const n=Rt,s=document[n(472)](t[n(440)]);if(!s)return;const i=document.createElement(n(465));i[n(428)]="adstage-ad adstage-text-ad";const r=t[n(459)],o=s.parentElement||s;if(r)i[n(469)].width="100%",i[n(469)][n(441)]=String(r);else{const e=t.config,s={width:e?.[n(461)],height:e?.[n(441)]},{width:r,height:a}=this[n(436)](o,s,{debug:this[n(445)]});i.style.width=r,i[n(469)][n(441)]=a}const a=document[n(437)](n(465));a[n(428)]=n(460),a[n(469)][n(447)]=xt[n(425)](!1),xt[n(431)](a,e);const c=t[n(443)]?.maxLines;c&&typeof c===n(471)&&(a.style[n(429)]=n(426),a.style[n(458)]=String(c),a[n(469)].webkitBoxOrient=n(446),a.style.overflow=n(455)),i[n(468)](a),it[n(439)](i,e,t,()=>this[n(464)](),this[n(445)],n(430)),s[n(442)]="",s[n(468)](i),this[n(445)]&&console[n(432)](n(473)+e[n(451)])}async renderMultipleAds(t,e){const n=Rt,s=document[n(472)](t[n(440)]);if(!s)throw new Error("Container not found: "+t.containerId);const i=this[n(464)](),r={autoSlideInterval:(t[n(443)]?.[n(438)]||5e3)/1e3,...t[n(443)],optimizedHeight:t[n(459)],aspectRatio:t[n(435)]},o=Tt[n(453)](t,e,r,i,this[n(445)]);o&&(s[n(442)]="",s[n(468)](o),this.debug&&console[n(432)](n(427)+t.id+n(470)+e.length+n(467)))}}const Pt=_t;!function(){const t=_t,e=Ut();for(;;)try{if(907682===parseInt(t(205))/1*(-parseInt(t(244))/2)+parseInt(t(234))/3+-parseInt(t(199))/4+-parseInt(t(183))/5*(parseInt(t(191))/6)+-parseInt(t(259))/7+parseInt(t(263))/8+-parseInt(t(208))/9*(-parseInt(t(264))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Bt extends mt{constructor(t=!1,e){super(r[_t(272)],t,e)}[Pt(188)](){return Pt(212)}async renderAdElement(t,e){const n=Pt,s=document.getElementById(t.containerId);if(!s)return;const i=document[n(209)](n(293));i.className=n(276),i[n(194)][n(190)]=n(232),this[n(182)](i,e,t),s.innerHTML="",s[n(294)](i),this[n(214)]&&console[n(279)](n(216)+e._id)}async[Pt(249)](t,e){const n=Pt,s=document[n(237)](t[n(218)]);if(!s)throw new Error(n(268)+t[n(218)]);if(e.length>0){const i=e[0],r=document.createElement(n(293));r[n(223)]="adstage-video-container",r.style[n(190)]=n(286),this.renderVideoElementDirect(r,i,t),s[n(287)]="",s[n(294)](r);const o=this[n(192)]();setTimeout(()=>{const e=n;o(i._id,t.id,u[e(265)])},100),this[n(214)]&&console[n(279)](n(180)+t.id+" ("+i[n(203)]+")")}else this[n(214)]&&console[n(297)](n(187)+t.id)}[Pt(182)](t,e,n){const s=Pt;t[s(194)][s(241)]=s(217);const i=document[s(209)]("video");i[s(194)][s(243)]=s(277),i[s(194)][s(213)]=s(277),i[s(194)].objectFit=s(238),i[s(226)]=s(179);const r=n[s(256)];if(this.debug&&console[s(279)](s(275),r),i[s(271)]=!1,i[s(251)]=!1!==r?.autoplay,i[s(210)]=!0,i.loop=!1!==r?.[s(250)],this[s(214)]&&console[s(279)](s(281),{autoplay:i[s(251)],muted:i[s(210)],loop:i[s(250)],controls:i.controls}),!1!==r?.[s(246)]&&i.setAttribute("playsinline",""),!0===r?.[s(271)]&&(i[s(271)]=!0,this.debug&&console.log("🎬 User explicitly enabled controls, overriding default")),r?.[s(291)])i[s(271)]=!1,i[s(194)][s(190)]+=s(196);else if(r?.[s(285)]){if(i[s(271)]){const t=document[s(209)](s(194));t.textContent=s(295)+(r.customControls[s(181)]?s(260):s(228))+s(270)+(r[s(285)][s(193)]?s(260):s(228))+s(235)+(r.customControls[s(253)]?s(260):s(228))+s(201)+(r[s(285)].hideRemainingTime?s(260):s(228))+s(221)+(r[s(285)][s(269)]?"none":"block")+s(254)+(r.customControls[s(215)]?s(260):s(228))+s(252)+(r[s(285)][s(257)]?s(260):s(228))+s(195),document[s(229)][s(294)](t)}}else if(i[s(271)]){const t=document.createElement(s(194));t.id=s(206),t[s(262)]=s(289),!document.getElementById("adstage-video-default-controls")&&document.head[s(294)](t)}this[s(214)]&&console.log(s(233),i.controls?s(231):s(296));const o=document.createElement("button");o[s(223)]=s(204),o[s(194)][s(190)]=s(225),r?.[s(291)]&&(o[s(194)][s(189)]=s(260));const a=()=>{const t=s,e=t(247);o[t(287)]=i[t(210)]?'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ':e,o[t(227)]=i[t(210)]?t(211):t(230)};if(a(),o[s(240)]("click",t=>{const e=s;t[e(274)](),i.muted=!i[e(210)],a(),this[e(214)]&&console.log(e(258)+(i[e(210)]?e(210):e(299)))}),o[s(240)](s(261),()=>{const t=s;o[t(194)].background="rgba(0, 0, 0, 0.9)",o[t(194)][t(224)]=t(273)}),o.addEventListener(s(280),()=>{const t=s;o.style[t(282)]="rgba(0, 0, 0, 0.7)",o[t(194)][t(224)]=t(198)}),e[s(278)]){i[s(185)]=e.videoUrl;const t=()=>{const t=s;i[t(251)]&&i[t(210)]&&i[t(267)]&&i[t(284)]()[t(220)](e=>{const n=t;this.debug&&(console[n(297)](n(207),e),console[n(297)](n(290))),i[n(210)]=!0,i[n(284)]().catch(t=>{const e=n;this[e(214)]&&console[e(186)](e(239),t)})})};i.addEventListener(s(283),()=>{this[s(214)]&&console.log("🎬 Video metadata loaded, attempting autoplay..."),t()}),i.addEventListener("canplay",()=>{const e=s;this[e(214)]&&console[e(279)](e(202)),t()}),i.addEventListener(s(200),()=>{const e=s;this[e(214)]&&console[e(279)]("🎬 Video data loaded, attempting autoplay..."),t()}),setTimeout(()=>{const e=s;this[e(214)]&&console[e(279)](e(292)),t()},100)}else if(e[s(248)]){const n=document[s(209)]("img");return n[s(185)]=e.imageUrl,n[s(194)][s(243)]=s(277),n[s(194)][s(213)]=s(277),n[s(194)][s(255)]=s(238),n[s(266)]=e[s(227)]||s(242),void t[s(294)](n)}it[s(245)](i,e,n,()=>this[s(192)](),this.debug,s(298)),i[s(240)](s(186),i=>{const r=s;if(console[r(186)](r(184),i),e.imageUrl){const s=document[r(209)]("img");s[r(185)]=e.imageUrl,s[r(194)][r(243)]=r(277),s.style[r(213)]=r(277),s.style[r(255)]=r(238),s[r(266)]=e[r(227)]||r(242),it.addClickEventForRenderer(s,e,n,()=>this[r(192)](),this[r(214)],r(197)),t.innerHTML="",t[r(294)](s)}}),t[s(294)](i),t[s(294)](o),this[s(214)]&&console.log(s(236)+e._id+s(219)+i[s(251)]+s(222)+i[s(210)]+s(288)+i.loop+")")}}function _t(t,e){const n=Ut();return(_t=function(t,e){return n[t-=179]})(t,e)}function Ut(){const t=["🎬 Initial autoplay attempt after timeout...","div","appendChild","\n video::-webkit-media-controls-play-button {\n display: ","disabled (default)","warn","Video","unmuted","metadata","🎬 Single video rendered for VIDEO slot: ","hidePlayButton","renderVideoElementDirect","5240mZdIjq","Video load failed:","src","error","⚠️ No video advertisements available for slot: ","getDefaultHeight","display","cssText","9996jUpHxh","createEventTrackingCallback","hideProgressBar","style"," !important;\n }\n ","\n pointer-events: none;\n ","Video fallback","scale(1)","3866500DBkqig","loadeddata"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","🎬 Video can play, attempting autoplay...","_id","adstage-video-mute-button","18649CGDFlp","adstage-video-default-controls","🎬 Auto-play was prevented:","26559igKNZV","createElement","muted","Click to unmute","360px","height","debug","hideMuteButton","🎬 Single video ad rendered: ","relative","containerId"," (autoplay: ","catch"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ",", muted: ","className","transform","\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ","preload","title","block","head","Click to mute","enabled","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","🎬 Video controls setting:","1296669AuDrCb"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","🎬 Video element created for ad: ","getElementById","contain","🎬 Autoplay completely failed:","addEventListener","position","Video thumbnail","width","18uDvQVA","addClickEventForRenderer","playsinline",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',"imageUrl","renderMultipleAds","loop","autoplay"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","hideCurrentTime"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","objectFit","config","hideFullscreenButton","🔊 Video mute toggled: ","4562866TBXBfB","none","mouseenter","textContent","7816432rZXAwa","10270lJVQQS","VIEWABLE","alt","paused","Container not found: ","hideVolumeSlider"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","controls","VIDEO","scale(1.1)","stopPropagation","🎬 Video config received:","adstage-video-container","100%","videoUrl","log","mouseleave","🎬 Final video settings:","background","loadedmetadata","play","customControls","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","innerHTML",", loop: ","\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n ","🎬 Trying muted autoplay fallback...","hideControls"];return(Ut=function(){return t})()}function Mt(t,e){const n=Ot();return(Mt=function(t,e){return n[t-=425]})(t,e)}function Ot(){const t=["Native click tracked for ad: ","15142toUtIz","advertisementEventTracker","cssText","imageUrl","_id","length","111528VqHfLO","#3b82f6","1167966kBuZyQ","div","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","mouseleave","containerId","🏠 Native ad rendered (first of ","renderAdElement","mouseenter","): ","_blank","10ESrPOD","16174422bgfgbs","click","alt","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","img","linkUrl","10jrEIQx","992862xLheUJ","NATIVE","title","adstage-ad adstage-native-ad","13sPpmbT","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","warn","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","addEventListener","14delqgx","1389864sXYuPw","debug","1132521OSJJmP","🏠 Single native ad rendered: ","button","⚠️ No native advertisements available for slot: ","style","appendChild","src","log","textContent","renderMultipleAds","createElement","backgroundColor","open","Learn More","Native Advertisement"];return(Ot=function(){return t})()}const Vt=Mt;!function(){const t=Mt,e=Ot();for(;;)try{if(316330===parseInt(t(434))/1*(parseInt(t(458))/2)+-parseInt(t(442))/3+-parseInt(t(440))/4+parseInt(t(476))/5*(-parseInt(t(466))/6)+-parseInt(t(439))/7*(parseInt(t(464))/8)+-parseInt(t(430))/9+-parseInt(t(429))/10*(-parseInt(t(477))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Nt extends mt{constructor(t=!1,e){super(r[Mt(431)],t,e)}getDefaultHeight(){return"200px"}async[Vt(472)](t,e){const n=Vt,s=document.getElementById(t[n(470)]);if(!s)return;const i=document.createElement("div");if(i.className=n(433),i[n(446)][n(460)]=n(426),e[n(432)]){const t=document.createElement("h3");t[n(450)]=e[n(432)],t[n(446)][n(460)]=n(468),i[n(447)](t)}if(e[n(450)]){const t=document.createElement("p");t[n(450)]=e[n(450)],t[n(446)].cssText="\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ",i[n(447)](t)}if(e[n(461)]){const t=document[n(452)](n(467));t[n(446)][n(460)]=n(437);const s=document.createElement(n(427));s[n(448)]=e[n(461)],s[n(425)]=e.title||n(456),s[n(446)].cssText=n(435),t.appendChild(s),i.appendChild(t)}if(e.linkUrl){const t=document[n(452)](n(444));t[n(450)]=n(455),t.style[n(460)]="\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n ",t[n(438)](n(478),()=>{const t=n;this[t(459)]&&console[t(449)](t(457)+e._id),window[t(454)](e[t(428)],t(475))}),t[n(438)](n(473),()=>{t.style.backgroundColor="#2563eb"}),t[n(438)](n(469),()=>{const e=n;t[e(446)][e(453)]=e(465)}),i[n(447)](t)}s.innerHTML="",s.appendChild(i),this[n(441)]&&console[n(449)](n(443)+e[n(462)])}async[Vt(451)](t,e){const n=Vt;e.length>0?(await this[n(472)](t,e[0]),this[n(441)]&&console[n(449)](n(471)+e[n(463)]+n(474)+t.id)):this[n(441)]&&console[n(436)](n(445)+t.id)}}function Ft(){const t=["fadeOut 0.3s ease-out forwards","keydown","body","addEventListener","mouseleave","4CYQjYV","closeInterstitial","appendChild","adstage-interstitial-content","removeEventListener","_id","createElement","color","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","mouseenter","Interstitial Advertisement","3102MqMGuy","containerId","): ","INTERSTITIAL","#6b7280","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","Escape","getElementById","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","linkUrl","innerHTML","\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ","getDefaultHeight","🖼️ Interstitial ad closed","1787590cuVSiA","400px","15992484bvamXL","\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ","1208akrUcV","23085CRUVch","#3b82f6","4saiLqj","#e5e7eb","#f3f4f6","🖼️ Interstitial ad rendered: ","imageUrl","cssText","img","removeChild","712446MnpQvU","warn","\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ","renderMultipleAds","_blank","advertisementEventTracker","renderAdElement","54823VRNVVw","parentNode","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","Get Started","textContent","log","style","9961HWTeyb","adstage-interstitial-styles","11nIMQNb","title","button","backgroundColor","1842570ySayYL","#374151","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","click","🖼️ Interstitial ad rendered (first of ","debug","className","src"];return(Ft=function(){return t})()}function Ht(t,e){const n=Ft();return(Ht=function(t,e){return n[t-=420]})(t,e)}const Kt=Ht;!function(){const t=Ht,e=Ft();for(;;)try{if(383701===-parseInt(t(461))/1+-parseInt(t(446))/2*(-parseInt(t(454))/3)+-parseInt(t(487))/4*(-parseInt(t(439))/5)+parseInt(t(425))/6*(parseInt(t(468))/7)+-parseInt(t(443))/8*(-parseInt(t(444))/9)+-parseInt(t(474))/10+parseInt(t(470))/11*(-parseInt(t(441))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class jt extends mt{constructor(t=!1,e){super(r[Ht(428)],t,e)}[Kt(437)](){return Kt(440)}async renderAdElement(t,e){const n=Kt;if(!document[n(432)](t[n(426)]))return;const s=document[n(420)]("div");s[n(480)]="adstage-interstitial-overlay",s.style.cssText=n(442);const i=document[n(420)]("div");i[n(480)]=n(490),i.style[n(451)]=n(436);const r=document[n(420)](n(472));if(r[n(435)]="×",r[n(467)][n(451)]=n(456),r[n(485)]("click",()=>{this[n(488)](s)}),r[n(485)](n(423),()=>{const t=n;r[t(467)].backgroundColor=t(447),r[t(467)][t(421)]=t(475)}),r[n(485)](n(486),()=>{const t=n;r[t(467)][t(473)]=t(448),r[t(467)][t(421)]=t(429)}),e[n(450)]){const t=document.createElement(n(452));t[n(481)]=e[n(450)],t.alt=e[n(471)]||n(424),t[n(467)][n(451)]=n(433),i[n(489)](t)}if(e[n(471)]){const t=document.createElement("h2");t[n(465)]=e[n(471)],t[n(467)][n(451)]=n(430),i[n(489)](t)}if(e[n(465)]){const t=document[n(420)]("p");t[n(465)]=e[n(465)],t[n(467)][n(451)]=n(422),i.appendChild(t)}if(e[n(434)]){const t=document.createElement(n(472));t[n(465)]=n(464),t[n(467)][n(451)]=n(476),t[n(485)]("click",()=>{const t=n;this[t(459)]&&console[t(466)]("Interstitial click tracked for ad: "+e._id),window.open(e.linkUrl,t(458)),this[t(488)](s)}),t[n(485)](n(423),()=>{const e=n;t[e(467)][e(473)]="#2563eb"}),t[n(485)](n(486),()=>{const e=n;t[e(467)][e(473)]=e(445)}),i[n(489)](t)}const o=t=>{const e=n;t.key===e(431)&&(this.closeInterstitial(s),document[e(491)](e(483),o))};if(document[n(485)]("keydown",o),s[n(485)](n(477),t=>{t.target===s&&this.closeInterstitial(s)}),!document[n(432)](n(469))){const t=document[n(420)](n(467));t.id="adstage-interstitial-styles",t[n(465)]=n(463),document.head[n(489)](t)}i[n(489)](r),s[n(489)](i),document[n(484)][n(489)](s),this[n(479)]&&console[n(466)](n(449)+e[n(492)])}async[Kt(457)](t,e){const n=Kt;e.length>0?(await this[n(460)](t,e[0]),this[n(479)]&&console[n(466)](n(478)+e.length+n(427)+t.id)):this[n(479)]&&console[n(455)]("⚠️ No interstitial advertisements available for slot: "+t.id)}closeInterstitial(t){const e=Kt;t[e(467)].animation=e(482),setTimeout(()=>{const n=e;t.parentNode&&t[n(462)][n(453)](t)},300),this.debug&&console[e(466)](e(438))}}const Wt=Yt;function Gt(){const t=["renderAdElement","padding","createAdElement","379424wiKUyW","toLowerCase","cover","TEXT","getDefaultHeightForAdType","div","naturalHeight","renderAd","renderOptimizedBannerImage is only supported for BANNER ads","adType","style","14zNKruL","calculateOptimalContainerSize","display","renderFallback","advertisement","data-adstage-slot-id","get","config","backgroundColor","imageUrl","width","optimizeContainerForBannerAds","renderAdSlider","height","border"," Ad","BANNER","advertisementEventTracker","VIDEO","1280606dKpLOV","renderOptimizedBannerImage","⚠️ Container optimization is only supported for BANNER ads, got: ","appendChild","log","warn","loadImageDimensions","#f9f9f9","createElement","className","initializeRenderers","1637619sHrkmF","renderers","src","videoUrl","calculateAdSize","getDefaultHeight","5205915MzwFYs","[AdRenderer] ","adstage-ad adstage-","No advertisement to render","6676895EgoTvV","100%","getRenderer","set","video","debug","textContent","isLoaded","objectFit","1px dashed #ccc","Failed to load image: ","8GyVdNy","createPlaceholder","30276729iWchQr","2107500UojBii"];return(Gt=function(){return t})()}function Yt(t,e){const n=Gt();return(Yt=function(t,e){return n[t-=248]})(t,e)}!function(){const t=Yt,e=Gt();for(;;)try{if(878441===-parseInt(t(261))/1+-parseInt(t(250))/2+parseInt(t(267))/3+parseInt(t(289))/4+-parseInt(t(271))/5+-parseInt(t(285))/6*(parseInt(t(300))/7)+parseInt(t(282))/8*(parseInt(t(284))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class qt{constructor(t=!1,e){const n=Yt;this[n(262)]=new Map,this[n(276)]=t,this[n(248)]=e||null,this[n(260)]()}[Wt(260)](){const t=Wt;this[t(262)].set(r.BANNER,new bt(this[t(276)],this[t(248)])),this.renderers[t(274)](r.TEXT,new zt(this.debug,this[t(248)])),this[t(262)][t(274)](r[t(249)],new Bt(this[t(276)],this[t(248)])),this[t(262)][t(274)](r.NATIVE,new Nt(this[t(276)],this[t(248)])),this[t(262)].set(r.INTERSTITIAL,new jt(this[t(276)],this[t(248)])),this[t(276)]&&console[t(254)]("🏭 AdRenderer factory initialized with "+this[t(262)].size+" renderers")}[Wt(288)](t,e){const n=Wt,s=this[n(273)](t[n(298)]),i=document[n(258)](n(294));i[n(259)]=n(269)+String(t[n(298)])[n(290)](),i.setAttribute("data-adstage-ad-id",e._id),i.setAttribute(n(305),t.id);const{width:o,height:a}=s[n(265)](i,t[n(307)]||{},e);switch(i.style[n(310)]=o,i.style[n(313)]=a,i[n(299)][n(302)]="block",t.adType){case r[n(316)]:if(e.imageUrl){const t=document[n(258)]("img");t[n(263)]=e[n(309)],t[n(299)][n(310)]=n(272),t[n(299)][n(313)]="100%",t.style[n(279)]=n(291),i.appendChild(t)}break;case r.VIDEO:if(e[n(264)]){const t=document[n(258)](n(275));t.src=e[n(264)],t.style[n(310)]="100%",t.style[n(313)]=n(272),i[n(253)](t)}break;case r[n(292)]:if(e[n(277)]){const t=document.createElement(n(294));t[n(277)]=e[n(277)]||"",t[n(299)][n(287)]="8px",i[n(253)](t)}break;default:i[n(299)][n(314)]=n(280),i[n(299)][n(308)]=n(257),i[n(277)]=t.adType+n(315)}return i}[Wt(273)](t){const e=Wt,n=this[e(262)][e(306)](t);if(!n)throw new Error("No renderer found for ad type: "+t);return n}[Wt(283)](t,e,n,s,i){const r=Wt;this[r(273)](n)[r(283)](t,e,s,i)}async[Wt(311)](t,e){const n=Wt;if(t[n(298)]!==r[n(316)])return void(this[n(276)]&&console[n(255)](n(252)+t[n(298)]));const s=this[n(273)](r[n(316)]);await s[n(311)](t,e)}async[Wt(312)](t,e){const n=Wt,s=this.getRenderer(t[n(298)]);await s.renderMultipleAds(t,e)}async[Wt(296)](t){const e=Wt;if(!t[e(304)])throw new Error(e(270));const n=this[e(273)](t.adType);await n[e(286)](t,t[e(304)]),t[e(278)]=!0}async[Wt(286)](t,e){const n=Wt,s=this[n(273)](t.adType);await s[n(286)](t,e)}[Wt(303)](t){const e=Wt;this[e(273)](t[e(298)]).renderFallback(t)}[Wt(293)](t){return this[Wt(273)](t).getDefaultHeight()}[Wt(265)](t,e,n,s){const i=Wt;return this[i(273)](e)[i(265)](t,n,s)}[Wt(256)](t){return new Promise((e,n)=>{const s=Yt,i=new Image;i.onload=()=>{const t=Yt;e({width:i.naturalWidth,height:i[t(295)]})},i.onerror=()=>{n(new Error(Yt(281)+t))},i[s(263)]=t})}async renderOptimizedBannerImage(t,e,n){const s=Wt;if(n[s(298)]!==r[s(316)])throw new Error(s(297));const i=this[s(273)](r[s(316)]);return await i[s(251)](t,e,n)}async calculateOptimalContainerSize(t,e,n){const s=Wt;if(n!==r[s(316)]){const t=this[s(273)](n);return{width:s(272),height:t[s(266)](),aspectRatio:16/9}}const i=this.getRenderer(r[s(316)]);return await i[s(301)](t,e)}[Wt(254)](t,...e){const n=Wt;this[n(276)]&&console[n(254)](n(268)+t,...e)}}function Xt(){const t=["handleRemovedElement","Container not found after ","Ad slot not found: ","now","[data-adstage-slot-id]","config","height","NATIVE","warn","onClick","❌ Failed to track viewable impression:","disconnect","text","❌ Failed to find element for viewability tracking: ","muted","✅ Simple viewable impression tracked for ad ","interstitial","createAdInternal","advertisementEventTracker","apiKey","✅ Ad loaded for slot: ","handleViewableEvent","❌ Failed to load ad for slot: ","renderAdSlider","GET","slideInterval","ms... (attempt ","get","🔄 Ad slot refreshed: ","Failed to fetch ad data: ","getBaseUrl","isLoaded","log","destroy","3532YFOyKn","status","viewabilityTracker","data-adstage-slot-id","default","🔄 Retrying viewability tracking for slot: ","customControls","from","🎯 Ads module initialized (sync mode) with auto-cleanup","🗑️ Ad slot destroyed: ","API key not configured","_isReady","refreshAdSlot","5073618fyISsk","controls","1690000nrEbus","894883iSsFzg","random","createAdWithRetry","Failed to refresh ad slot: ","📊 Advertisement event tracking enabled for slot: ","adRenderer",". Retrying in ","undefined","autoSlide"," attempts: ","autoDestroy","getSlotById","error","country","14099571FFUqvb","renderAd"," removed","12iCQnUi","string"," (element found)","VIEWABLE","hideControls","_id","toString","debug","loop","autoplay","language","isReady","BANNER","auto","1743065IsjoAE","🔍 Auto-cleanup MutationObserver enabled","init","observe","8596553ZHaoZP","getAttribute","INTERSTITIAL","deviceType","slots","Ads module not initialized. Call AdStage.init() first.","1851pTPJZf","substr","mutationObserver","append","delete","startSimpleViewabilityTracking","🚫 Advertisement not found with ID: "," ads)","ELEMENT_NODE","trackAdvertisementEvent","TEXT","createAd","ensureReady","advertisements","advertisement","innerHTML","renderFallback","json","_config","querySelectorAll","🗑️ Ads module destroyed","refresh","adId","style","forEach"," ads for type: ","📊 Fetched ","VIDEO","detail","length","banner","New advertisement viewable tracked for slot:","getElementById","getAllSlots","setupAutoCleanup","renderAdElement","destroyModule","fetchAdData"," (attempt ","🧹 Auto-cleanup: slot ","adType","create","setAttribute","width","playsinline"];return(Xt=function(){return t})()}const Zt=Jt;function Jt(t,e){const n=Xt();return(Jt=function(t,e){return n[t-=190]})(t,e)}!function(){const t=Jt,e=Xt();for(;;)try{if(642853===parseInt(t(273))/1+-parseInt(t(257))/2*(-parseInt(t(314))/3)+-parseInt(t(290))/4*(parseInt(t(304))/5)+-parseInt(t(270))/6+-parseInt(t(308))/7+parseInt(t(272))/8+parseInt(t(287))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Qt{constructor(){const t=Jt;this[t(268)]=!1,this[t(196)]=null,this[t(312)]=new Map,this.advertisementEventTracker=null,this[t(278)]=null,this[t(316)]=null}[Zt(306)](t){const e=Zt;this._config=t,this[e(241)]=new V(Z[e(253)](),t[e(242)],t[e(297)]||!1,this[e(312)]),this[e(278)]=new qt(t[e(297)]||!1,this[e(241)]),this[e(212)](),this[e(268)]=!0,t.debug&&console[e(255)](e(265))}[Zt(301)](){return this[Zt(268)]}getConfig(){return this._config}[Zt(208)](t,e){const n=Zt;this[n(190)]();const s={width:e?.[n(221)]||"100%",height:e?.[n(229)]||"auto",autoSlide:e?.[n(281)]||!1,slideInterval:e?.[n(248)]||5e3,onClick:e?.onClick,adId:e?.adId,language:e?.[n(300)],deviceType:e?.[n(311)],country:e?.country};return this[n(325)](t,r[n(302)],s)}[Zt(235)](t,e){const n=Zt;this[n(190)]();const s={maxLines:e?.maxLines||3,style:e?.[n(201)]||n(261),onClick:e?.onClick,adId:e?.[n(200)],language:e?.language,deviceType:e?.[n(311)],country:e?.country};return this[n(325)](t,r[n(324)],s)}video(t,e){const n=Zt;this[n(190)]();const s={width:e?.[n(221)]||640,height:e?.[n(229)]||360,autoplay:void 0===e?.[n(299)]||e[n(299)],muted:void 0===e?.[n(237)]||e[n(237)],loop:void 0===e?.[n(298)]||e.loop,playsinline:!1!==e?.[n(222)],controls:void 0!==e?.[n(271)]&&e[n(271)],hideControls:e?.[n(294)]||!1,customControls:e?.[n(263)],autoSlide:!1,maxAds:1,onClick:e?.[n(232)],...e?.[n(200)]&&{adId:e.adId}};return this[n(325)](t,r[n(205)],s)}native(t,e){const n=Zt;return this[n(190)](),this[n(325)](t,r[n(230)],e||{})}[Zt(239)](t,e){const n=Zt;return this[n(190)](),this.createAd(t,r[n(310)],e||{})}[Zt(199)](t){const e=Zt;this[e(190)]();const n=this[e(312)][e(250)](t);if(!n)throw new Error(e(225)+t);this.refreshAdSlot(n),this[e(196)]?.[e(297)]&&console[e(255)](e(251)+t)}[Zt(256)](t){const e=Zt;this[e(190)]();const n=this[e(312)][e(250)](t);if(!n)return void(this._config?.[e(297)]&&console[e(255)]("🔍 Ad slot already cleaned up: "+t));n[e(259)]&&n[e(259)].destroy();const s=document[e(210)](n.containerId);s&&(s[e(193)]=""),this[e(312)][e(318)](t),this[e(196)]?.[e(297)]&&console[e(255)](e(266)+t)}[Zt(211)](){const t=Zt;return this.ensureReady(),Array[t(264)](this[t(312)].values())}[Zt(284)](t){const e=Zt;return this[e(190)](),this[e(312)][e(250)](t)||null}[Zt(325)](t,e,n){const s=Zt;if(!this[s(196)]?.apiKey)throw new Error(s(267));const i="adstage-"+e+"-"+Date[s(226)]()+"-"+Math[s(274)]()[s(296)](36)[s(315)](2,9);return this[s(275)](t,e,n,i,0),i}async[Zt(275)](t,e,n,s,i){const r=Zt,o=[0,50,100,200,500];let a,c=null;if(typeof t===r(291)){if(a=t,c=document[r(210)](t),!c)return i<4?(this._config?.debug&&console[r(231)]("Container not found: "+t+r(279)+o[i+1]+r(249)+(i+1)+"/5)"),void setTimeout(()=>{this[r(275)](t,e,n,s,i+1)},o[i+1])):void console[r(285)](r(224)+5+r(282)+t)}else c=t,a=c.id||"auto-"+s,!c.id&&(c.id=a);try{this.createAdInternal(a,e,n,s,c)}catch(t){console[r(285)]("광고 생성 중 오류 발생:",t)}}[Zt(240)](t,e,n,s,i){const o=Zt;i[o(220)]("data-adstage-slot-id",s),this.adRenderer?.createPlaceholder(i,s,e,n,this[o(196)]);const a={id:s,containerId:t,adType:e,width:n[o(221)]||"100%",height:n[o(229)]||(e===r[o(324)]?o(303):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[o(215)](e,n).then(t=>t[0]||null),render:t=>this[o(278)]?.[o(213)](a,t),refresh:async()=>this[o(269)](a),destroy:()=>this[o(256)](s)};this.slots.set(s,a),this.loadAdContentInBackground(a),this[o(241)]&&this[o(196)]?.[o(297)]&&console[o(255)](o(277)+s)}async loadAdContentInBackground(t){const e=Zt;try{const n=await this[e(215)](t[e(218)],t[e(228)]);if(!n||0===n.length)return void this[e(278)]?.[e(194)](t);t[e(218)]===r[e(302)]&&n[e(207)]>0&&await(this.adRenderer?.optimizeContainerForBannerAds(t,n)),n[e(207)]>1||t[e(228)]?.[e(281)]?(await(this[e(278)]?.[e(246)](t,n)),this[e(196)]?.debug&&console[e(255)]("🎠 Slider will handle VIEWABLE events for "+n.length+" ads automatically")):(t[e(192)]=n[0],await(this[e(278)]?.[e(213)](t,n[0])),this[e(319)](t,n[0])),t[e(254)]=!0,this[e(196)]?.[e(297)]&&console[e(255)](e(243)+t.id+" ("+n[e(207)]+e(321))}catch(n){console[e(285)](e(245)+t.id,n),this.adRenderer?.[e(194)](t)}}[Zt(319)](t,e){const n=(s=0)=>{const i=Jt,r=document[i(210)](t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this[i(196)]?.[i(297)]&&console.log(i(262)+t.id+i(216)+(s+1)+")")):console[i(231)](i(236)+t.id));const o=new K(r,async()=>{const n=i;await this[n(244)](e,t)});t[i(259)]=o,this[i(196)]?.[i(297)]&&console[i(255)]("🎯 Simple viewability tracking started for slot: "+t.id+i(292))};n()}async[Zt(244)](t,e){const n=Zt;try{this[n(241)]&&(await this[n(241)][n(323)](t[n(295)],e.id,u[n(293)]),this[n(196)]?.debug&&console.log(n(238)+t[n(295)]))}catch(t){console[n(285)](n(233),t)}}async[Zt(215)](t,e){const n=Zt;if(!this._config?.[n(242)])throw new Error("API key not configured");if(e[n(200)]){const t=""+Z[n(191)][n(206)](e[n(200)]),s=await fetch(t,{method:n(247),headers:B.create(this[n(196)][n(242)])});if(!s.ok){if(404===s.status)return console[n(231)](n(320)+e[n(200)]),[];throw new Error(n(252)+s[n(258)])}const i=await s.json();return this[n(196)]?.debug&&console[n(255)]("📊 Fetched specific ad with ID: "+e[n(200)],i),[i]}const s=new URLSearchParams;s[n(317)](n(218),t),e.language&&s.append(n(300),e.language),e[n(311)]&&s[n(317)](n(311),e[n(311)]),e[n(286)]&&s.append(n(286),e[n(286)]);const i=Z.advertisements.list()+"?"+s[n(296)](),r=await fetch(i,{method:n(247),headers:B[n(219)](this[n(196)][n(242)])});if(!r.ok)throw new Error(n(252)+r[n(258)]);const o=(await r[n(195)]()).advertisements||[];return this._config?.[n(297)]&&console[n(255)](n(204)+o[n(207)]+n(203)+t+", filters:",{language:e[n(300)],deviceType:e.deviceType,country:e[n(286)]}),o}async refreshAdSlot(t){const e=Zt;try{const n=await this.fetchAdData(t[e(218)],t[e(228)]||{});n&&n.length>0&&(t.advertisement=n[0],await(this.adRenderer?.[e(288)](t)),this.advertisementEventTracker&&console[e(255)](e(209),t.id))}catch(n){console[e(285)](e(276)+t.id,n)}}[Zt(190)](){const t=Zt;if(!this[t(268)])throw new Error(t(313))}[Zt(212)](){const t=Zt;typeof window!==t(280)&&typeof document!==t(280)&&(this[t(316)]&&this.mutationObserver[t(234)](),this.mutationObserver=new MutationObserver(e=>{const n=t;e[n(202)](t=>{const e=n;t.removedNodes[e(202)](t=>{const n=e;t.nodeType===Node[n(322)]&&this[n(223)](t)})})}),this[t(316)][t(307)](document.body,{childList:!0,subtree:!0}),this[t(196)]?.debug&&console[t(255)](t(305)))}[Zt(223)](t){const e=Zt,n=t[e(309)](e(260));if(n)return void this[e(283)](n);t[e(197)](e(227))[e(202)](t=>{const n=e,s=t[n(309)]("data-adstage-slot-id");s&&this[n(283)](s)})}autoDestroy(t){const e=Zt,n=this[e(312)][e(250)](t);if(n)try{n.viewabilityTracker&&n[e(259)].destroy(),this[e(312)][e(318)](t),this._config?.[e(297)]&&console[e(255)](e(217)+t+e(289))}catch(n){this[e(196)]?.debug&&console[e(231)]("Auto-cleanup failed for slot "+t+":",n)}}[Zt(214)](){const t=Zt,e=this[t(196)]?.debug;this[t(316)]&&(this.mutationObserver.disconnect(),this[t(316)]=null),this[t(312)].clear(),this[t(241)]=null,this[t(278)]=null,this._isReady=!1,this[t(196)]=null,e&&console[t(255)](t(198))}}var $t=te;function te(t,e){var n=ee();return(te=function(t,e){return n[t-=237]})(t,e)}function ee(){var t=["log","20741292NvxWej","2nvFGIo","2392545GUEVsl","updateConfig","debug","API key not available","_organizationInfo","getConfig","apiKey","4926aESKCR","4qjlIrj","9EUaIwo","6581928knJiBF","init","✅ Config module initialized (sync mode)","getApiEndpoint","Config module not initialized","includes","getOrganizationInfo","modules","728341ryxpXb","isModuleEnabled","ads","create","isDebugMode","getBaseUrl","6301540GSAYyA","🔄 Config updated","baseUrl","_config","4921RiQUVs","development","getApiHeaders","isReady","1583286vnuPBA","getEnabledModules"];return(ee=function(){return t})()}!function(){for(var t=te,e=ee();;)try{if(436734===parseInt(t(249))/1*(-parseInt(t(267))/2)+parseInt(t(263))/3+-parseInt(t(239))/4*(parseInt(t(268))/5)+parseInt(t(238))/6*(-parseInt(t(259))/7)+-parseInt(t(241))/8*(parseInt(t(240))/9)+parseInt(t(255))/10+parseInt(t(266))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=te;this._isReady=!1,this[t(258)]=null,this[t(272)]=null}[$t(242)](t){var e=$t;this[e(258)]={timeout:3e4,debug:!1,modules:[e(251),"events","config"],...t},t[e(257)]&&Z.setBaseUrl(t[e(257)]),this._isReady=!0,t[e(270)]&&console.log(e(243),{modules:this[e(258)][e(248)],endpoint:Z.getBaseUrl(),mode:e(260)})}[$t(262)](){return this._isReady}[$t(273)](){return this[$t(258)]}[$t(247)](){return this._organizationInfo}[$t(244)](){return Z[$t(254)]()}[$t(253)](){var t=$t;return this[t(258)]?.[t(270)]||!1}[$t(264)](){var t=$t;return this[t(258)]?.[t(248)]||[]}[$t(250)](t){var e=$t;return this[e(264)]()[e(246)](t)}[$t(269)](t){var e=$t;if(!this[e(258)])throw new Error(e(245));this[e(258)]={...this[e(258)],...t},this[e(253)]()&&console[e(265)](e(256),t)}[$t(261)](){var t=$t;if(!this[t(258)]?.[t(237)])throw new Error(t(271));return B[t(252)](this[t(258)][t(237)])}}const se=ie;function ie(t,e){const n=oe();return(ie=function(t,e){return n[t-=465]})(t,e)}!function(){const t=ie,e=oe();for(;;)try{if(140888===-parseInt(t(496))/1+parseInt(t(492))/2+parseInt(t(500))/3+-parseInt(t(494))/4+-parseInt(t(466))/5*(-parseInt(t(470))/6)+parseInt(t(495))/7*(-parseInt(t(468))/8)+-parseInt(t(474))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class re{static getDeviceInfo(){const t=ie;return{...re.getAutoDetectedDeviceInfo(),...re[t(465)]}}static[se(487)](){const t=se;if(!k[t(497)]())return{category:t(483),platform:t(471),model:t(471),osVersion:t(471)};const e=navigator[t(491)][t(475)]();let n="desktop";/tablet|ipad/.test(e)?n="tablet":L[t(481)]()&&(n=t(485));const s=L[t(499)]();return{category:n,platform:re[t(480)](s),model:navigator[t(478)],osVersion:navigator[t(478)],deviceId:L[t(498)]()}}static setDeviceInfo(t){const e=se;re[e(465)]={...re[e(465)],...t}}static[se(484)](t,e){re._userProvidedDeviceInfo[t]=e}static[se(490)](){re[se(465)]={}}static[se(476)](){return{...re._userProvidedDeviceInfo}}static[se(480)](t){const e=se;switch(t){case e(493):return e(477);case e(501):return"Android";case"web":return"Mobile Web";case"desktop":return e(467);default:return e(488)}}static[se(472)](){const t=se;if(!k.isBrowser())return{userAgent:"SSR",language:t(489),platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:t(473),viewportSize:t(473)};const e=k.getViewportInfo();return{userAgent:navigator[t(491)],language:navigator[t(486)]||t(489),platform:navigator[t(478)],cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(479)],screenResolution:screen[t(469)]+"x"+screen[t(482)],viewportSize:e.width+"x"+e[t(482)]}}}function oe(){const t=["5496EmkvEh","android","_userProvidedDeviceInfo","696655hkqBbB","Desktop Web","115208WWczOS","width","12oqDdTQ","SSR","getDetailedInfo","0x0","9054wAopRc","toLowerCase","getUserDeviceInfo","iOS","platform","onLine","mapPlatformForEvents","isMobile","height","other","setDeviceProperty","mobile","language","getAutoDetectedDeviceInfo","Unknown","ko-KR","clearDeviceInfo","userAgent","451696miBwfu","ios","77684lfUfmH","84VWXDDx","172215RAFsKe","isBrowser","generateDeviceId","getPlatform"];return(oe=function(){return t})()}re[se(465)]={};const ae=ce;function ce(t,e){const n=le();return(ce=function(t,e){return n[t-=457]})(t,e)}!function(){const t=ce,e=le();for(;;)try{if(416481===-parseInt(t(462))/1*(parseInt(t(460))/2)+-parseInt(t(469))/3*(-parseInt(t(463))/4)+-parseInt(t(461))/5+parseInt(t(470))/6+parseInt(t(464))/7+parseInt(t(477))/8+-parseInt(t(471))/9*(parseInt(t(476))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class de{static[ae(459)](){return{...de.getBaseUserInfo(),...de._userProperties}}static getBaseUserInfo(){const t=ae;if(!k[t(472)]())return{language:t(479),country:"KR"};const e=navigator[t(474)]||t(479);return{language:e,country:de[t(468)](e)}}static[ae(468)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t[ae(473)]("-")[0]]||"KR"}static[ae(475)](t){const e=ae;de[e(458)]={...de[e(458)],...t}}static[ae(480)](t,e){de._userProperties[t]=e}static[ae(457)](){de._userProperties={}}static getCurrentUserProperties(){return{...de[ae(458)]}}static[ae(466)](){const t=ae;if(!k[t(472)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl[t(465)]()[t(467)]()[t(478)];return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function le(){const t=["clearUserProperties","_userProperties","getUserInfo","37670XYYOki","2250195SRxwuY","6aqifrR","152eytsuF","4740491umRItb","DateTimeFormat","estimateLocation","resolvedOptions","extractCountryFromLanguage","21582PRlzMw","2680878OWOmkc","8597871yiArLx","isBrowser","split","language","setUserProperties","10dulIRT","4299608zjoeVL","timeZone","ko-KR","setUserProperty"];return(le=function(){return t})()}de[ae(458)]={};const ue=fe;!function(){const t=fe,e=he();for(;;)try{if(931850===parseInt(t(465))/1+parseInt(t(463))/2+-parseInt(t(412))/3+parseInt(t(420))/4+parseInt(t(408))/5*(-parseInt(t(435))/6)+-parseInt(t(462))/7*(parseInt(t(445))/8)+-parseInt(t(449))/9*(-parseInt(t(415))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class pe{static captureFromUrl(){const t=fe;if(typeof window===t(404))return null;const e=new URLSearchParams(window[t(461)][t(456)]),n={};let s=!1;const i=e[t(403)](t(459));if(i)try{const e=decodeURIComponent(i),r=new URLSearchParams(e);for(const e of pe[t(401)]){const i=r[t(403)](e);i&&(n[e]=i,s=!0)}r[t(403)](t(423))===t(467)&&(s=!0)}catch(t){console.warn("Failed to parse adstage_referrer:",t)}for(const i of pe.ALL_KEYS){if(n[i])continue;const r=e[t(403)](i);r&&(n[i]=r,s=!0)}return s?(n[t(464)]||(n[t(451)]?n[t(464)]=t(439):n[t(469)]?n[t(464)]=t(453):n.ttclid?n[t(464)]=t(421):n[t(425)]?n.channel=t(406):n.liclid?n[t(464)]=t(442):n[t(431)]?n[t(464)]=t(405):n.twclid&&(n[t(464)]=t(437))),pe[t(443)](n),n):null}static[ue(443)](t){const e=ue;if(typeof window!==e(404))try{const n={...pe[e(403)](),...t},s=JSON.stringify(n);try{sessionStorage[e(407)](pe[e(444)],s)}catch(t){}try{localStorage[e(407)](pe[e(444)],s)}catch(t){}}catch(t){console[e(433)](e(418),t)}}static get(){const t=ue;if(typeof window===t(404))return null;try{const e=sessionStorage?.getItem(pe[t(444)]);if(e)return JSON.parse(e)}catch(t){}try{const e=localStorage?.[t(410)](pe[t(444)]);if(e)return JSON.parse(e)}catch(t){}return null}static[ue(450)](){const t=ue;if(typeof window!==t(404)){try{sessionStorage?.[t(416)](pe.STORAGE_KEY)}catch(t){}try{localStorage?.removeItem(pe[t(444)])}catch(t){}}}static[ue(414)](){const t=ue,e=pe.get();return null!==e&&Object[t(441)](e)[t(411)]>0}static[ue(417)](){const t=ue,e=pe[t(403)]();return!!e&&pe.CLICK_ID_KEYS[t(419)](t=>e[t])}static shouldSendClickEvent(){const t=ue;if(typeof window===t(404))return!1;const e=pe[t(403)]();if(!e)return!1;const n=pe[t(417)](),s=!!e[t(464)];if(!n&&!s)return!1;const i=n?e[t(451)]||e[t(469)]||e[t(428)]||e.nclid||e[t(440)]||e[t(431)]||e[t(458)]:(e.channel||"")+":"+(e[t(427)]||"");if(!i)return!1;return i!==sessionStorage[t(410)](t(447))&&(sessionStorage.setItem(t(447),i),!0)}static[ue(455)](){const t=ue;typeof window!==t(404)&&sessionStorage[t(407)](t(452),t(467))}static[ue(409)](){return"undefined"!=typeof window&&"true"===sessionStorage[ue(410)]("adstage_click_event_sent")}static[ue(413)](){const t=ue,e=pe[t(403)]();if(!e)return null;const n={};return e.gclid&&(n[t(451)]=e[t(451)]),e[t(469)]&&(n[t(469)]=e.fbclid),e[t(428)]&&(n.ttclid=e[t(428)]),e[t(425)]&&(n.nclid=e[t(425)]),e[t(464)]&&(n.channel=e[t(464)]),e[t(430)]&&(n[t(430)]=e.campaign),e[t(468)]&&(n.campaignId=e[t(468)]),e[t(446)]&&(n.adGroup=e.ad_group),e[t(400)]&&(n[t(432)]=e.ad_group_id),e[t(438)]&&(n[t(422)]=e.ad_creative),e.creative_id&&(n[t(436)]=e[t(448)]),e.term&&(n[t(427)]=e[t(427)]),e[t(402)]&&(n[t(402)]=e[t(402)]),e[t(457)]&&(n[t(457)]=e[t(457)]),e[t(454)]&&(n[t(454)]=e[t(454)]),e.utm_content&&(n[t(424)]=e[t(424)]),e[t(460)]&&(n[t(460)]=e[t(460)]),Object.keys(n)[t(411)]>0?n:null}}function he(){const t=["ALL_KEYS","utm_source","get","undefined","microsoft.ads","naver.searchad","setItem","20WqrkYF","isClickEventSent","getItem","length","4739580zUzqmg","toAttributionObject","hasParams","4918970XqtEsf","removeItem","hasClickId","Failed to store tracking params:","some","3554496oWJHBF","tiktok.ads","adCreative","adstage","utm_content","nclid","CAMPAIGN_KEYS","term","ttclid","UTM_KEYS","campaign","msclkid","adGroupId","warn","adstage_tracking_params","730038xuveyj","creativeId","twitter.ads","ad_creative","google.ads","liclid","keys","linkedin.ads","store","STORAGE_KEY","2027664ZYgrXc","ad_group","adstage_last_click_id","creative_id","18lRpDMP","clear","gclid","adstage_click_event_sent","meta.ads","utm_campaign","markClickEventSent","search","utm_medium","twclid","adstage_referrer","utm_term","location","35ABLXPu","2585864WSEgNT","channel","1100342GRfleL","CLICK_ID_KEYS","true","campaign_id","fbclid","ad_group_id"];return(he=function(){return t})()}function fe(t,e){const n=he();return(fe=function(t,e){return n[t-=400]})(t,e)}pe[ue(444)]=ue(434),pe[ue(466)]=[ue(451),ue(469),ue(428),ue(425),ue(440),"msclkid",ue(458)],pe[ue(426)]=[ue(464),"campaign",ue(468),ue(446),ue(400),ue(438),ue(448),ue(427)],pe[ue(429)]=[ue(402),ue(457),"utm_campaign","utm_content",ue(460)],pe[ue(401)]=[...pe.CLICK_ID_KEYS,...pe[ue(426)],...pe[ue(429)]];const ge=Ie;function me(){const t=["📡 Attribution request URL:","_isReady","POST","❌ Failed to register attribution:","adstage_attribution_id","init","417474YrxJro","setItem","registerAttribution","102996VtfiKO","setDeviceInfo","attributionId","getUserProperties","🔑 Attribution request headers:","create","toAttributionObject","✅ Event tracked with attribution ID:","getAttributionId","getDeviceInfo","API key not configured for attribution registration.","statusText","error","text","3897636KXZeGJ","setUserProperties","698wsqZRh","getUserInfo","323672WKHcXY","setDeviceProperty","json","❌ API Error Response:","_config","👤 User properties set:","sendAttributionToServer","API key not configured for event tracking.","8745yDGSok","1220KIwEko","Event tracking failed: ","3tMKmaZ","events","getUserDeviceInfo","📦 Attribution request body:","clearDeviceInfo","application/json","getItem","38322LELaGw","355KYSBSO","getCurrentUserProperties","sendEventToServer","Events module not initialized. Call AdStage.init() first.","debug","warn","Attribution registration failed: ","apiKey","track","log","55TcbkuH","📱 Device info set:","get","28XDJEOd","Event data:","isReady","stringify","status"];return(me=function(){return t})()}function Ie(t,e){const n=me();return(Ie=function(t,e){return n[t-=453]})(t,e)}!function(){const t=Ie,e=me();for(;;)try{if(191750===parseInt(t(468))/1*(parseInt(t(511))/2)+-parseInt(t(460))/3*(-parseInt(t(495))/4)+parseInt(t(478))/5*(-parseInt(t(467))/6)+-parseInt(t(481))/7*(parseInt(t(513))/8)+parseInt(t(492))/9+parseInt(t(458))/10*(-parseInt(t(457))/11)+parseInt(t(509))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ye{constructor(){const t=Ie;this._isReady=!1,this[t(453)]=null}[ge(491)](t){const e=ge;this[e(453)]=t,this[e(487)]=!0,t[e(472)]&&console[e(477)]("📊 Events module initialized")}[ge(483)](){return this[ge(487)]}getConfig(){return this[ge(453)]}[ge(510)](t){const e=ge;de[e(510)](t),this._config?.[e(472)]&&console[e(477)](e(454),t)}[ge(498)](){return de[ge(469)]()}[ge(496)](t){const e=ge;re[e(496)](t),this[e(453)]?.[e(472)]&&console[e(477)](e(479),t)}[ge(514)](t,e){const n=ge;re[n(514)](t,e),this[n(453)]?.[n(472)]&&console[n(477)]("📱 Device property set:",t,e)}clearDeviceInfo(){const t=ge;re[t(464)](),this._config?.[t(472)]&&console[t(477)]("📱 User provided device info cleared")}getUserDeviceInfo(){return re[ge(462)]()}getDeviceInfo(){return re[ge(504)]()}[ge(512)](){return de[ge(512)]()}[ge(469)](){return de.getCurrentUserProperties()}async[ge(476)](t,e){const n=ge;if(this._isReady)if(this[n(453)]?.[n(475)])try{const s=this[n(503)]();if(s){const i={eventName:t,sdkVersion:C(),device:re[n(504)](),user:de[n(512)](),attributionId:s,params:e||{}};return await this[n(470)](i),void(this[n(453)][n(472)]&&console[n(477)](n(502),t,s))}const i=pe[n(501)](),r={eventName:t,sdkVersion:C(),device:re[n(504)](),user:de[n(512)](),...i&&{attribution:i},params:e||{}};await this[n(470)](r),this[n(453)][n(472)]&&(console[n(477)]("✅ Event tracked:",t,e),i&&console[n(477)]("📊 Attribution included:",i))}catch(s){console[n(507)]("❌ Failed to track event:",s),this._config[n(472)]&&console.error(n(482),{eventName:t,properties:e})}else console[n(473)](n(456));else console.warn(n(471))}async[ge(494)](t){const e=ge;if(!this[e(487)])return console[e(473)](e(471)),null;if(!this._config?.[e(475)])return console[e(473)](e(505)),null;try{const n=pe[e(480)]();if(!n||0===Object.keys(n).length)return this[e(453)][e(472)]&&console.log("⏭️ No tracking parameters found, skipping attribution registration"),null;const s=await this.sendAttributionToServer({deviceId:t,referrerParams:n});if(this._config.debug&&console[e(477)]("✅ Attribution registered:",s),s[e(497)]){try{localStorage[e(493)](e(490),s[e(497)])}catch(t){}try{sessionStorage[e(493)](e(490),s[e(497)])}catch(t){}}return s}catch(t){return console[e(507)](e(489),t),null}}[ge(503)](){const t=ge;if("undefined"==typeof window)return null;try{const e=sessionStorage[t(466)](t(490));if(e)return e}catch(t){}try{return localStorage[t(466)](t(490))}catch(t){}return null}async trackWithAttributionId(t,e){return this.track(t,e)}async[ge(470)](t){const e=ge,n={...B[e(500)](this[e(453)].apiKey),"Content-Type":e(465)};this[e(453)]?.debug&&(console.log("🔑 Request headers:",n),console[e(477)]("📡 Request URL:",Z[e(461)][e(476)]()),console[e(477)]("📦 Request body:",t));const s=await fetch(Z[e(461)][e(476)](),{method:e(488),headers:n,body:JSON[e(484)](t)});if(!s.ok){const t=await s.text();throw console.error(e(516),t),new Error(e(459)+s[e(485)]+" "+s.statusText)}}async[ge(455)](t){const e=ge,n={...B[e(500)](this[e(453)][e(475)]),"Content-Type":e(465)};this[e(453)]?.[e(472)]&&(console[e(477)](e(499),n),console[e(477)](e(486),Z[e(461)][e(494)]()),console[e(477)](e(463),t));const s=await fetch(Z[e(461)][e(494)](),{method:e(488),headers:n,body:JSON.stringify(t)});if(!s.ok){const t=await s[e(508)]();throw console[e(507)](e(516),t),new Error(e(474)+s[e(485)]+" "+s[e(506)])}return s[e(515)]()}}const ve=be;function be(t,e){const n=ke();return(be=function(t,e){return n[t-=107]})(t,e)}!function(){const t=be,e=ke();for(;;)try{if(522953===parseInt(t(121))/1+parseInt(t(130))/2*(-parseInt(t(133))/3)+-parseInt(t(158))/4*(-parseInt(t(182))/5)+-parseInt(t(176))/6+parseInt(t(146))/7+-parseInt(t(169))/8+parseInt(t(128))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class we{constructor(){const t=be;this[t(127)]=!1,this[t(163)]=null,this.config=new ne,this[t(150)]=new Qt,this[t(160)]=new ye}static[ve(168)](t){const e=ve;!we.instance&&(we[e(142)]=new we);const n=we[e(142)];if(!t[e(165)])throw new Error(e(161));n._config={timeout:3e4,debug:!1,modules:["ads",e(160),e(179)],...t},n[e(163)][e(197)]&&(Z[e(112)](n[e(163)][e(197)]),t.debug&&console[e(175)](e(114),n._config[e(197)]));const s=n[e(163)].modules||[e(150),e(160),e(179)];for(const t of s){const s=n[t];s&&typeof s[e(168)]===e(126)&&s.init(n[e(163)])}if(n._isInitialized=!0,typeof window!==e(181)){const s=pe[e(171)]();s&&t.debug&&console[e(175)](e(119),s);const i=(()=>{const t=e;try{const e=new URLSearchParams(window[t(120)].search),n=new URLSearchParams((window[t(120)][t(117)]||"").replace(/^#/,""));return e[t(151)](t(135))||n[t(151)](t(135))}catch{return null}})();if(i)try{localStorage[e(152)](e(129),i),t[e(162)]&&console[e(175)](e(187),i)}catch(t){}const r=pe[e(184)]();t[e(162)]&&(console[e(175)](e(136),r),!r&&console[e(175)](e(195)));const o=pe[e(107)](),a=!(!s||!s[e(189)]);if(!i&&s&&(o||a)){const s=(async()=>{const s=e;try{const e=n[s(188)](),i=await n[s(160)].registerAttribution(e);return i&&t[s(162)]&&console.log(s(143),{attributionId:i.attributionId,channel:i.channel,campaign:i[s(108)],expiresAt:i[s(132)]}),i}catch(t){return console[s(167)](s(186),t),null}})();r&&s.then(s=>{const i=e;try{const e=pe[i(151)](),r=pe[i(140)]();t[i(162)]&&console[i(175)](i(139),{attributionId:s?.attributionId,hasAttribution:!!s}),n[i(160)][i(194)](i(174),{_autoGenerated:!0,_source:"tracking_params",_timestamp:(new Date)[i(123)](),_platform:i(122)})[i(178)](()=>{const n=i;pe[n(154)](),t[n(162)]&&console[n(175)]("✅ Auto-tracked click event with tracking params:",{attribution:r,trackingParams:e})})[i(138)](t=>{const e=i;console.error(e(153),t)})}catch(t){console[i(167)](i(110),t)}})}else r&&setTimeout(()=>{const s=e;try{const e=pe[s(151)](),i=pe[s(140)]();n[s(160)][s(194)](s(174),{_autoGenerated:!0,_source:s(131),_timestamp:(new Date)[s(123)](),_platform:s(122)}).then(()=>{const n=s;pe.markClickEventSent(),t[n(162)]&&console[n(175)]("✅ Auto-tracked click event with tracking params:",{attribution:i,trackingParams:e})}).catch(t=>{const e=s;console.error(e(153),t)})}catch(t){console[s(167)]("❌ Error in click event auto-tracking:",t)}},100)}t[e(162)]&&console.log(e(116),{version:e(137),modules:s,apiKey:t[e(165)][e(191)](0,8)+"...",mode:"development"})}static[ve(156)](){const t=ve;return we[t(142)]?._isInitialized||!1}static[ve(118)](){const t=ve;return we[t(142)]?.[t(163)]||null}static[ve(177)](){const t=ve;if(!we[t(142)])throw new Error(t(134));return we.instance}static get ads(){const t=ve;try{return we[t(177)]().ads}catch(e){throw console.warn(t(149)),e}}static get[ve(160)](){const t=ve;try{return we[t(177)]().events}catch(e){throw console[t(164)](t(192)),e}}static get[ve(179)](){const t=ve;try{return we[t(177)]()[t(179)]}catch(e){throw console[t(164)](t(115)),e}}static reset(){const t=ve;we[t(142)]&&(we.instance[t(127)]=!1,we[t(142)][t(163)]=null)}[ve(188)](){const t=ve;if(typeof window===t(181))return t(180)+Math[t(183)]()[t(145)](36)[t(191)](2,15);const e=localStorage[t(109)](t(111));if(e)return e;const n=[navigator.userAgent,navigator[t(166)],screen[t(144)]+"x"+screen[t(173)],(new Date)[t(147)](),navigator[t(113)]||0][t(159)]("|");let s=0;for(let e=0;e<n[t(196)];e++){s=(s<<5)-s+n[t(172)](e),s&=s}const i=t(124)+Math.abs(s)[t(145)](36)+"-"+Date.now().toString(36);return localStorage[t(152)](t(111),i),i}}function ke(){const t=["debug","_config","warn","apiKey","language","error","init","8040848UUmoDE",")의 viewable 추적 초기화됨","captureFromUrl","charCodeAt","height","click","log","3222234CxdEVT","getInstance","then","config","server-","undefined","120cBlSTM","random","shouldSendClickEvent","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","❌ Failed to register attribution:","🔗 Using attributionId from URL (attribution_id):","generateDeviceId","channel","📊 AdStage Debug: 현재 viewable 추적 상태","substring","AdStage.events accessed before initialization","from","track","⏭️ Skipping click event (duplicate or no click ID)","length","baseUrl","hasClickId","campaign","getItem","❌ Error in click event auto-tracking:","adstage_device_id","setBaseUrl","hardwareConcurrency","🌐 API endpoint configured:","AdStage.config accessed before initialization","🚀 AdStage SDK initialized (sync mode)","hash","getConfig","📊 Tracking parameters captured:","location","772453RMmaOL","web","toISOString","web-","clear","function","_isInitialized","14955435wXnjZz","adstage_attribution_id","178aliZPL","tracking_params","expiresAt","21849HRmJxl","AdStage not initialized. Call AdStage.init() first.","attribution_id","🔍 Should send click event:","2.0.0","catch","🎯 Sending click event after attribution registration","toAttributionObject","✅ AdStage Debug: 광고 ","instance","✅ Attribution registered:","width","toString","286923fWhjkN","getTimezoneOffset","size","AdStage.ads accessed before initialization","ads","get","setItem","❌ Failed to auto-track click event:","markClickEventSent","viewableTracker","isReady","clearAdViewable","39688QRujgH","join","events","API key is required for AdStage initialization"];return(ke=function(){return t})()}function Ee(t,e){var n=xe;return we.isReady()?we[n(382)][n(377)](t,e):(console[n(392)]("AdStage not initialized. Call AdStage.init() first."),Promise[n(388)]())}function xe(t,e){var n=Ce();return(xe=function(t,e){return n[t-=376]})(t,e)}function Se(t){var e=xe;we.isReady()?we[e(382)][e(391)](t):console.warn(e(378))}function Ae(){var t=xe;if(we[t(380)]())return we[t(382)].getUserProperties();console.warn(t(378))}function Ce(){var t=["88jXafEq","track","AdStage not initialized. Call AdStage.init() first.","531787fpyvLe","isReady","15cdrfta","events","3036XDJijM","59633RpeIxO","45HxzLCx","430090SrBIUA","788724XWNjmB","resolve","8047jxxYHw","876402YTPTap","setUserProperties","warn","5310547YpLdTf","2GgwSlq","6kFvHQV"];return(Ce=function(){return t})()}we.debug={clearAllViewable:()=>{const t=ve;ut[t(125)](),console[t(175)](t(185))},clearAdViewable:(t,e)=>{const n=ve;ut[n(157)](t,e),console[n(175)](n(141)+t+"("+e+n(170))},getViewableStatus:()=>{const t=ve;console[t(175)](t(190),{trackedCount:ut[t(155)][t(148)],trackedItems:Array[t(193)](ut[t(155)])})}},function(){for(var t=xe,e=Ce();;)try{if(318192===parseInt(t(379))/1*(-parseInt(t(394))/2)+parseInt(t(395))/3*(parseInt(t(387))/4)+-parseInt(t(381))/5*(-parseInt(t(390))/6)+-parseInt(t(384))/7*(parseInt(t(376))/8)+parseInt(t(385))/9*(-parseInt(t(386))/10)+parseInt(t(393))/11+-parseInt(t(383))/12*(parseInt(t(389))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Te=e(null);function Re({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&we.reset(),we.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};s(()=>{i&&!r&&u(i)},[i,r]);const p={isInitialized:r,config:a,initialize:u,reset:()=>{try{we.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Te.Provider,{value:p,children:e})}function De(){const t=i(Te);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Le(){const{isInitialized:t}=De();return t?we:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function ze(t,e){var n=Pe();return(ze=function(t,e){return n[t-=448]})(t,e)}function Pe(){var t=["1788303sbRrUF","521004FlxnOa","4bNKKFo","459613zBuUzE","497833IcuDxI","15582830NkGoCf","7803792NDBKof","72kAbvVl","2FwgJob","2325265YGvGun"];return(Pe=function(){return t})()}function Be(){const t=["277172kaBdZc","39292wovVJr","ads","1112604VyhVLc","config","8830xijnup","1770354CtMhOH","192330euQnql","2430544fsaKuE","events","undefined","AdStage","351BUywac","30uRALLl","1626yscatG"];return(Be=function(){return t})()}function _e(t,e){const n=Be();return(_e=function(t,e){return n[t-=253]})(t,e)}!function(){for(var t=ze,e=Pe();;)try{if(631971===parseInt(t(448))/1*(parseInt(t(452))/2)+-parseInt(t(454))/3+-parseInt(t(456))/4*(parseInt(t(453))/5)+-parseInt(t(455))/6+-parseInt(t(457))/7*(-parseInt(t(451))/8)+-parseInt(t(450))/9+parseInt(t(449))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ue=_e;!function(){const t=_e,e=Be();for(;;)try{if(350802===-parseInt(t(254))/1*(parseInt(t(266))/2)+parseInt(t(259))/3+parseInt(t(256))/4+-parseInt(t(258))/5*(-parseInt(t(267))/6)+parseInt(t(253))/7+parseInt(t(261))/8+-parseInt(t(265))/9*(parseInt(t(260))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Me="2.0.0",Oe=[Ue(255),Ue(262),Ue(257)];typeof window!==Ue(263)&&(window[Ue(264)]=we);export{we as AdStage,Re as AdStageProvider,Me as SDK_VERSION,Oe as SUPPORTED_MODULES,pe as TrackingParamsModule,Ae as getUserProperties,Se as setUserProperties,Ee as track,De as useAdStageContext,Le as useAdStageInstance};