@adstage/web-sdk 3.0.12 → 3.0.13
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 r,useContext as s}from"react";var i,o,a,c,d,l,u,p,h,f,g,m;function I(t,e){var n=v();return(I=function(t,e){return n[t-=361]})(t,e)}function v(){var t=["INTERSTITIAL","TABLET","72850heVkBE","1141997dLaHix","2193114IvTgzc","NATIVE","954QhkxOZ","MOBILE","584212keltvs","278NIMeXd","WEB","10ShbVLn","POPUP","CLICK","5067944hvIfiY","1785vVLpnc","VIEWABLE","VIDEO","DESKTOP","BANNER","TEXT","3626958nlHqnb"];return(v=function(){return t})()}!function(){for(var t=I,e=v();;)try{if(613788===parseInt(t(374))/1+parseInt(t(380))/2*(parseInt(t(364))/3)+parseInt(t(379))/4+-parseInt(t(382))/5*(parseInt(t(370))/6)+parseInt(t(375))/7+-parseInt(t(363))/8+-parseInt(t(377))/9*(-parseInt(t(373))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(o=i||(i={}))[(a=I)(368)]="BANNER",o.POPUP=a(361),o.INTERSTITIAL=a(371),o[a(376)]=a(376),o[a(366)]=a(366),o[a(369)]=a(369),(d=c||(c={}))[(l=I)(381)]=l(381),d[l(378)]=l(378),(p=u||(u={}))[(h=I)(365)]=h(365),p[h(362)]="CLICK",(g=f||(f={}))[(m=I)(367)]=m(367),g.MOBILE=m(378),g[m(372)]=m(372);const y=b;function b(t,e){const n=w();return(b=function(t,e){return n[t-=123]})(t,e)}function w(){const t=["325854YuZFGJ","location","isDOMReady","appendChild","remove",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"getViewportInfo","421360IMFTdN","safeQuerySelector","from","getPageInfo","safeRemoveClass","번째 시도, ","2420264YRixLt","safeWindowOpen","29496sMKKcu","ceil","log","getDocumentProperty","20744MQLJAK","3138pPkuGd","innerHeight","waitForElements","querySelector","safeAddClass","safeApplyStyles","waitForDOM","add","safeGetElementById","ms)","readyState","classList","addEventListener","undefined","canUseDOM","removeChild","363GpddKC","entries","1795mLkbsP","querySelectorAll","safeSetInnerHTML","createElement","DOM을 사용할 수 없는 환경입니다.","safeAppendChild","removeEventListener","isBrowser","scrollTop","1098HoKqWk","referrer","waitForElement","getWindowProperty","safeSetTextContent","safeAddEventListener","✅ 컨테이너 즉시 발견: ","devicePixelRatio",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"forEach",'❌ 컨테이너를 찾을 수 없습니다: "',"✅ 컨테이너 발견: ","getElementById","18rDCBhd","getScrollInfo","innerWidth","isSSR","loading"," (최대 ","title","setProperty","innerHTML","ms (","documentElement","error","getComputedStyle","366770cJHOHR"];return(w=function(){return t})()}!function(){const t=b,e=w();for(;;)try{if(243710===-parseInt(t(154))/1+-parseInt(t(161))/2+parseInt(t(140))/3*(parseInt(t(169))/4)+parseInt(t(192))/5*(parseInt(t(174))/6)+-parseInt(t(167))/7+-parseInt(t(173))/8*(parseInt(t(127))/9)+parseInt(t(153))/10*(parseInt(t(190))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class k{static[y(125)](){return typeof window!==y(187)&&"undefined"!=typeof document}static[y(143)](){return!this.isBrowser()}static[y(188)](){const t=y;return this.isBrowser()&&void 0!==document[t(184)]}static[y(182)](t){const e=y;return this.canUseDOM()?document[e(139)](t):null}static[y(162)](t){const e=y;return this[e(188)]()?document[e(177)](t):null}static safeQuerySelectorAll(t){const e=y;return this[e(188)]()?Array[e(163)](document[e(193)](t)):[]}static safeCreateElement(t){const e=y;return this[e(188)]()?document[e(195)](t):null}static[y(132)](t,e,n,r){const s=y;this[s(188)]()&&t&&t[s(186)](e,n,r)}static safeRemoveEventListener(t,e,n,r){const s=y;this[s(188)]()&&t&&t[s(124)](e,n,r)}static[y(130)](t,e){return this[y(125)]()?window[t]??e:e}static getDocumentProperty(t,e){return this.canUseDOM()?document[t]??e:e}static[y(168)](t,e,n){return this[y(125)]()?window.open(t,e,n):null}static safeGetComputedStyle(t){const e=y;return this[e(125)]()&&t?window[e(152)](t):null}static[y(156)](){const t=y;return!!this[t(188)]()&&document[t(184)]!==t(144)}static[y(180)](){return new Promise(t=>{const e=b;this[e(188)]()?this[e(156)]()?t():this[e(132)](document,"DOMContentLoaded",()=>t()):t()})}static[y(179)](t,e){const n=y;this[n(188)]()&&t&&Object[n(191)](e)[n(136)](([e,r])=>{const s=n;t.style[s(147)](e,r)})}static[y(178)](t,e){const n=y;this.canUseDOM()&&t&&t[n(185)][n(181)](e)}static[y(165)](t,e){const n=y;this[n(188)]()&&t&&t.classList[n(158)](e)}static[y(131)](t,e){this[y(188)]()&&t&&(t.textContent=e)}static[y(194)](t,e){const n=y;this[n(188)]()&&t&&(t[n(148)]=e)}static[y(123)](t,e){const n=y;this[n(188)]()&&t&&e&&t[n(157)](e)}static safeRemoveChild(t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(189)](e)}static[y(164)](){const t=y;return{url:this.getWindowProperty(t(155),{href:""}).href,title:this.getDocumentProperty(t(146),""),referrer:this[t(172)](t(128),"")}}static[y(160)](){const t=y;return{width:this.getWindowProperty(t(142),0),height:this[t(130)](t(175),0),pixelRatio:this[t(130)](t(134),1)}}static[y(141)](){const t=y;return{scrollTop:this[t(188)]()?window.pageYOffset||document[t(150)][t(126)]:0,scrollLeft:this[t(130)]("pageXOffset",0)}}static async[y(129)](t,e={}){const n=y,{timeout:r=3e3,retryInterval:s=100,debug:i=!1}=e;if(!this.canUseDOM())throw new Error(n(196));const o=document[n(139)](t);return o?(i&&console.log(n(133)+t),o):(i&&console[n(171)]("⏳ 컨테이너 대기 시작: "+t+n(145)+r+n(183)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(170)](r/s),l=()=>{const n=a;c++;const u=document[n(139)](t);if(u)return i&&console[n(171)](n(138)+t+" ("+c+n(166)+c*s+"ms 경과)"),void e(u);if(c>=d){const e=n(137)+t+n(135)+t+n(159)+r+n(149)+c+"번 시도)";return i&&console[n(151)](e),void o(new Error(e))}i&&c%10==0&&console[n(171)]("⏳ 컨테이너 대기 중: "+t+" ("+c+"/"+d+")");const p=Math.min(s*Math.pow(1.2,c),500);setTimeout(l,p)};setTimeout(l,s)}))}static async[y(176)](t,e={}){const n=y,r=t.map(t=>this[n(129)](t,e));return Promise.all(r)}}function E(t,e){const n=A();return(E=function(t,e){return n[t-=277]})(t,e)}function A(){const t=["470xxNOOX","3.0.13","AdStageSDK/","4185dPFzrT","1057HVMPLE","58722BZRxXy","930MtHojr"," AdStageSDK/","499873YYxejY","310jvvzZR","7486857yYiXbg","1741968RnxCBg","21776HZLNBW","444223MTQFsl"];return(A=function(){return t})()}const x=E;!function(){const t=E,e=A();for(;;)try{if(517172===parseInt(t(277))/1+parseInt(t(284))/2*(-parseInt(t(281))/3)+parseInt(t(289))/4+parseInt(t(287))/5*(-parseInt(t(283))/6)+-parseInt(t(282))/7*(parseInt(t(290))/8)+-parseInt(t(288))/9+parseInt(t(278))/10*(parseInt(t(286))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const S=x(279);function C(){return S}const T=R;function L(){const t=["ssr_session_","safeGetElementById","getPlatform","toLowerCase","substr","session_","timeZone","connection","platform","DateTimeFormat","isMobile","164896ndLHdy","3981488jkbgiS","136760jcunFa","getViewportInfo","safeQuerySelector","pixelRatio","now","device_","177348CepAHq","colorDepth",'[data-adstage-slot-id="',"ios","adstage_session_id","language","toString","getItem","web","effectiveType","1.0.0","56xDUdrw","generateSessionId","resolvedOptions","getBoundingClientRect","adstage_device_id","ssr_device_","round","android","2358450XRSeoa","test","isBrowser","SSR","setItem","top","293004lVGrMD","desktop","collectDeviceInfo","77agRfWE","488398KDaUkw","userAgent","getScrollInfo","width"," .adstage-slider-wrapper","getSlotPosition","UTC","random","left","scrollTop","generateDeviceId","unknown"];return(L=function(){return t})()}function R(t,e){const n=L();return(R=function(t,e){return n[t-=233]})(t,e)}!function(){const t=R,e=L();for(;;)try{if(310763===-parseInt(t(259))/1+-parseInt(t(236))/2+-parseInt(t(292))/3+-parseInt(t(278))/4*(-parseInt(t(261))/5)+-parseInt(t(267))/6*(parseInt(t(235))/7)+parseInt(t(260))/8+parseInt(t(286))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class D{static[T(246)](){const t=T;if(!k[t(288)]())return t(283)+Date.now();const e=localStorage[t(274)](t(282));if(e)return e;const n=t(266)+Math.random().toString(36).substr(2,9)+"_"+Date[t(265)]();return localStorage[t(290)](t(282),n),n}static[T(279)](){const t=T;if(!k[t(288)]())return t(248)+Date[t(265)]();const e=sessionStorage.getItem(t(271));if(e)return e;const n=t(253)+Math[t(243)]()[t(273)](36)[t(252)](2,9)+"_"+Date.now();return sessionStorage[t(290)]("adstage_session_id",n),n}static[T(258)](){const t=T;return!!k.isBrowser()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator[t(237)])}static[T(250)](){const t=T;if(!k[t(288)]())return t(275);const e=navigator[t(237)][t(251)]();return/iphone|ipad|ipod/.test(e)?t(270):/android/[t(287)](e)?t(285):D.isMobile()?t(275):t(233)}static[T(234)](){const t=T,e=k[t(262)]();return{deviceId:D[t(246)](),sessionId:D[t(279)](),osVersion:k[t(288)]()?navigator[t(256)]:t(289),deviceModel:k[t(288)]()?navigator.platform:t(289),appVersion:t(277),sdkVersion:C(),language:k[t(288)]()&&navigator[t(272)]||"ko",country:"KR",ipAddress:"",userAgent:k[t(288)]()?navigator[t(237)]:t(289),timezone:k[t(288)]()?Intl[t(257)]()[t(280)]()[t(254)]:t(242),viewportWidth:e[t(239)],viewportHeight:e.height,screenWidth:k[t(288)]()?screen[t(239)]:0,screenHeight:k[t(288)]()?screen.height:0,colorDepth:k[t(288)]()?screen[t(268)]:24,pixelRatio:e[t(264)],connectionType:k[t(288)]()?navigator[t(255)]?.[t(276)]||"unknown":t(247),platform:D.getPlatform()}}static[T(241)](t){const e=T;let n=k[e(249)](t);if(!n){const r=k.safeQuerySelector("#"+t+e(240));r&&(n=r)}if(!n&&(n=k[e(263)](e(269)+t+'"]')),!n)return e(247);const r=n[e(281)](),s=k[e(238)]();return"x:"+Math[e(284)](r[e(244)])+",y:"+Math[e(284)](r[e(291)]+s[e(245)])}}const _=P;function P(t,e){const n=B();return(P=function(t,e){return n[t-=448]})(t,e)}function B(){const t=["675151AZPQsD","contentType","undefined","API key is required","931200aDrEcA","userAgent","create","3352284xtmgtV","application/json","55ponGrB","3475062ScKlvB","createForEvents","1544360mhCRFT","2cQDHdl","21RrnLJz","12duXYLN","140092VuUpve","3224600vExfzw","User-Agent"];return(B=function(){return t})()}!function(){const t=P,e=B();for(;;)try{if(341861===parseInt(t(458))/1*(parseInt(t(452))/2)+parseInt(t(454))/3*(-parseInt(t(455))/4)+parseInt(t(456))/5+-parseInt(t(449))/6+parseInt(t(453))/7*(parseInt(t(451))/8)+-parseInt(t(465))/9+-parseInt(t(462))/10*(parseInt(t(448))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class M{static[_(464)](t,e){const n=_;if(!t)throw new Error(n(461));const r={"x-api-key":t,"Content-Type":e?.[n(459)]||n(466)};return typeof navigator!==n(460)&&(r[n(457)]=e?.[n(463)]||navigator[n(463)]),r}static[_(450)](t,e){const n=_,r=M[n(464)](t);return e?.[n(463)]&&(r[n(457)]=e[n(463)]),r}}const z=U;function U(t,e){const n=N();return(U=function(t,e){return n[t-=100]})(t,e)}function N(){const t=["parseNumericValue","NOT_SET","stringify","1720059FrhNOH","1379622orSXKt"," in slot ","📡 API Response Status: ","title","width","getSlotPosition","VIEWABLE","POST","debug","⚠️ Slot not found for slotId: ","getPageInfo","21yeyAXk","collectDeviceInfo","error",". Skipping event tracking to prevent incorrect adType.","slots","warn","log","length","602349fAfNqi","createForEvents","number","...","🌐 Full API call details:","⚠️ DOM element not found for slotId: ","🚀 Sending advertisement event: ","containerId","). Skipping event tracking.","now"," for ad ","❌ Failed to track advertisement event:","status","8737182hmSHGB","API request failed: ","height","trackAdvertisementEvent","4239745yZWLyb","referrer","🚀 AdvertisementEventTracker: Processing ","adType","get","string","querySelector"," (containerId: ","4WbBlLm","apiKey","text","getElementById","774988hORchm",'[data-adstage-slot-id="',"/advertisements/events/","baseUrl","12473264KoXBTQ","substring","sessionId","replace","url"," event for ad "];return(N=function(){return t})()}!function(){const t=U,e=N();for(;;)try{if(816698===parseInt(t(135))/1+parseInt(t(102))/2+-parseInt(t(115))/3*(-parseInt(t(160))/4)+-parseInt(t(152))/5+-parseInt(t(116))/6*(-parseInt(t(127))/7)+-parseInt(t(106))/8+parseInt(t(148))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class O{constructor(t,e,n,r){const s=U;this[s(105)]=t,this[s(161)]=e,this[s(124)]=n,this.slots=r}async[z(151)](t,e,n){const r=z;try{this[r(124)]&&console.log(r(154)+n+r(111)+t+r(117)+e);const s=this[r(131)][r(156)](e);if(!s)return void(this[r(124)]&&console[r(132)](r(125)+e+r(130)));if(!(document[r(101)](s[r(142)])||document[r(158)](r(103)+e+'"]')))return void(this[r(124)]&&console.warn(r(140)+e+r(159)+s.containerId+r(143)));const i=D[r(128)](),o={adType:s[r(155)],platform:i.platform,deviceId:i.deviceId,deviceInfo:i,pageUrl:k[r(126)]()[r(110)],pageTitle:k[r(126)]()[r(119)],referrer:k[r(126)]()[r(153)],slotId:e,slotPosition:D[r(121)](s[r(142)]),slotWidth:O[r(112)](s[r(120)]),slotHeight:O.parseNumericValue(s[r(150)]),sessionId:i[r(108)],pageLoadTime:performance[r(144)](),metadata:{eventType:n,sdkVersion:C(),timestamp:Date[r(144)]()},...n===u[r(122)]&&{isViewable:!0,iabCompliant:!0}},a=this.baseUrl+r(104)+t+"/"+n,c=M[r(136)](this[r(161)],o);this[r(124)]&&(console.log(r(141)+n+r(145)+t,{url:a,headers:c,eventData:o}),console[r(133)](r(139),{method:"POST",url:a,hasApiKey:!!this[r(161)],bodySize:JSON[r(114)](o)[r(134)]}));const d=await fetch(a,{method:r(123),headers:c,body:JSON.stringify(o)});if(this[r(124)]&&console[r(133)](r(118)+d[r(147)]+" "+d.statusText,{url:a,ok:d.ok}),!d.ok){const t=await d[r(100)]();throw new Error(r(149)+d[r(147)]+" "+d.statusText+" - "+t)}this[r(124)]&&console[r(133)]("✅ Successfully tracked advertisement event: "+n+r(145)+t)}catch(s){console[r(129)](r(146),s),console.error("🔍 Debug info:",{baseUrl:this[r(105)],apiKey:this[r(161)]?this[r(161)][r(107)](0,8)+r(138):r(113),url:this.baseUrl+"/advertisements/events/"+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=z;if(typeof t===e(137))return t;if(typeof t===e(157)){const n=parseFloat(t[e(109)](/px$/,""));return isNaN(n)?0:n}return 0}}var F=V;function V(t,e){var n=H();return(V=function(t,e){return n[t-=351]})(t,e)}!function(){for(var t=V,e=H();;)try{if(967748===parseInt(t(374))/1+-parseInt(t(359))/2*(parseInt(t(351))/3)+-parseInt(t(366))/4*(-parseInt(t(376))/5)+parseInt(t(369))/6+parseInt(t(373))/7*(-parseInt(t(367))/8)+-parseInt(t(364))/9*(parseInt(t(361))/10)+-parseInt(t(362))/11*(parseInt(t(360))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class j{constructor(t,e){var n=V;this[n(363)]=null,this[n(371)]=!1,this[n(353)]=t,this[n(357)]=e,this[n(354)]()}[F(354)](){var t=F;t(372)in window?(this[t(363)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(355)}),this[t(363)][t(368)](this[t(353)])):console[t(377)](t(378))}handleIntersection(t){t.forEach(t=>{var e=V;t[e(365)]>=.5&&this[e(370)]()&&!this[e(371)]&&(this.isViewableTriggered=!0,this[e(357)]&&this.onViewableCallback())})}[F(370)](){var t=F;return!document[t(356)]&&"visible"===document[t(352)]}[F(358)](){var t=F;this.observer&&(this[t(363)][t(375)](),this[t(363)]=null)}}function H(){var t=["initIntersectionObserver","0px","hidden","onViewableCallback","destroy","2hUNrme","12aZshiW","96700qMAbZj","4702577eTBKvT","observer","387ihfsSP","intersectionRatio","124zmDMDs","3096xgMWvX","observe","8783796snhOYF","isDocumentVisible","isViewableTriggered","IntersectionObserver","7126GIjBHG","170920gfpnRa","disconnect","266620unXZqL","warn","IntersectionObserver not supported, viewability tracking disabled","3248697YqeVSp","visibilityState","element"];return(H=function(){return t})()}const K=W;function W(t,e){const n=Y();return(W=function(t,e){return n[t-=183]})(t,e)}function Y(){const t=["baseUrl","getBaseUrl","1645672nJSXlh","4827844WftdaD","production","/advertisements","/events/track","events","track","/events/register/attribution","2314323ufLMpM","5dKPCqU","8bMvFGf","/advertisements/events","10206371QEuTKf","2199qDsseh","registerAttribution","advertisements","/advertisements/list","14855310QifiKY","setBaseUrl","7361070CwpvpU","detail","https://beta-api.adstage.app","startsWith","2774BeNdch","custom"];return(Y=function(){return t})()}!function(){const t=W,e=Y();for(;;)try{if(893742===parseInt(t(208))/1+-parseInt(t(204))/2*(parseInt(t(194))/3)+parseInt(t(209))/4*(parseInt(t(190))/5)+-parseInt(t(200))/6+-parseInt(t(193))/7+parseInt(t(191))/8*(parseInt(t(189))/9)+parseInt(t(198))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const X={production:"https://api.adstage.app",beta:K(202)},q={advertisements:{list:K(197),detail:K(184),events:K(192)},events:{track:K(185),registerAttribution:K(188)}};class G{constructor(t){const e=K;this.advertisements={list:()=>""+this.baseUrl+q.advertisements.list,detail:t=>""+this.baseUrl+q[e(196)][e(201)]+"/"+t,events:(t,n)=>""+this[e(206)]+q[e(196)][e(186)]+"/"+t+"/"+n},this[e(186)]={track:()=>""+this.baseUrl+q[e(186)][e(187)],registerAttribution:()=>""+this[e(206)]+q[e(186)][e(195)]},this.baseUrl=t||X[e(183)]}[K(199)](t){this[K(206)]=t}[K(207)](){return this[K(206)]}[K(205)](t){const e=K;return""+this[e(206)]+(t[e(203)]("/")?t:"/"+t)}}const J=new G;var Q=$;function Z(){var t=["trackSlideViewable",") in slot: ","46501910jhCUtE","741482JNteHb","🎯 Triggering VIEWABLE event for slide change: ad ","2132444YmmRGd","VIEWABLE","2840810PnTfgA","_id","🎯 Triggering initial VIEWABLE event: ad ","3KIWUZJ","595176uXQmEH","197532ZLpYoE","26YMrCMh","log","104lCFPgQ","85234eUVcTF"];return(Z=function(){return t})()}function $(t,e){var n=Z();return($=function(t,e){return n[t-=449]})(t,e)}!function(){for(var t=$,e=Z();;)try{if(986590===-parseInt(t(465))/1*(parseInt(t(462))/2)+parseInt(t(459))/3*(-parseInt(t(454))/4)+-parseInt(t(456))/5+-parseInt(t(460))/6+parseInt(t(452))/7*(-parseInt(t(464))/8)+parseInt(t(461))/9+parseInt(t(451))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[Q(449)](t,e,n,r,s=!1){var i=Q;s&&console[i(463)](i(453)+t[i(457)]+" (index: "+n+i(450)+e.id),r(t[i(457)],e.id,u[i(455)])}static trackInitialSlideViewable(t,e,n,r=!1){var s=Q;r&&console[s(463)](s(458)+t._id+" (index: 0) in slot: "+e.id),n(t[s(457)],e.id,u[s(455)])}}const et=rt;function nt(){const t=["18950WJdaDc","_blank"," -> ","_id","stopPropagation","isClickable","linkUrl","84vdrBRr"," ad clicked: ","click","addClickEvent","511788WzwIQC","2908458PTjsnN","forEach","pointer","45597ViGjyD","style","addClickEventForRenderer","CLICK","addEventListener","cursor","4104729kOVmve","573848DJtXWU","toLowerCase","addClickEventForSlider","8064oiFlvv","open","preventDefault","47ZHhiQA","adType","25myxhoQ","170hFgJDz"];return(nt=function(){return t})()}function rt(t,e){const n=nt();return(rt=function(t,e){return n[t-=457]})(t,e)}!function(){const t=rt,e=nt();for(;;)try{if(284055===parseInt(t(457))/1*(-parseInt(t(461))/2)+-parseInt(t(476))/3*(-parseInt(t(468))/4)+-parseInt(t(459))/5*(-parseInt(t(472))/6)+parseInt(t(473))/7+-parseInt(t(486))/8+parseInt(t(482))/9+parseInt(t(460))/10*(-parseInt(t(483))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class st{static[et(471)](t,e,n,r,s=!1,i){const o=et;e[o(467)]&&(t[o(477)][o(481)]=o(475),t[o(480)](o(470),t=>{const a=o;if(t[a(488)](),t[a(465)](),r&&r(e[a(464)],n.id,u[a(479)]),window.open(e.linkUrl,"_blank"),s){const t=i||String(n[a(458)]).toLowerCase();console.log("🔗 "+t+a(469)+e._id+" -> "+e[a(467)])}}))}static[et(478)](t,e,n,r,s=!1,i){const o=et;e[o(467)]&&(t[o(477)][o(481)]=o(475),t[o(480)](o(470),t=>{const a=o;t.preventDefault(),t[a(465)]();if(r()(e._id,n.id,u[a(479)]),window[a(487)](e[a(467)],a(462)),s){const t=i||String(n[a(458)])[a(484)]();console.log("🔗 "+t+a(469)+e[a(464)]+a(463)+e[a(467)])}}))}static[et(485)](t,e,n,r,s=!1,i){this[et(471)](t,e,n,r,s,i)}static[et(466)](t){return Boolean(t[et(467)])}static addClickEventsBatch(t,e,n,r,s=!1,i){const o=et;t[o(474)]((t,a)=>{const c=o,d=e[a];d&&this[c(471)](t,d,n,r,s,i)})}}const it=ot;function ot(t,e){const n=at();return(ot=function(t,e){return n[t-=468]})(t,e)}function at(){const t=["removeChild",".adstage-dot","hidden","124860jmxtdX","createSimpleAdElement","createSliderContainer","1px dashed #ccc","textContent","entries","#000","2627513wqWlsB","toLowerCase","children","height","#666666","adstage-slide","string","0.7","88032YTaSRj","adstage-slide-container","every","addTouchSupport","0.9","classList","mouseenter","#999999","querySelectorAll","width","addClickEventForSlider","adstage-dot","1353zTpcNl","100%","createElement","preventDefault","white","trackSlideViewable","touchend","length","border","transform","19loaubA","mouseleave","flex","1248mfpHXG","contains","normal","\n width: 8px;\n height: 8px;\n border-radius: 50%;\n border: 1px solid #cccccc;\n background: transparent;\n cursor: pointer;\n transition: all 0.3s ease;\n outline: none;\n opacity: 0.7;\n padding: 0;\n margin: 0;\n flex-shrink: 0;\n ","background","#cccccc","videoUrl","includes","div","data-adstage-slot-id","createMinimalDotIndicator","click","200px","overflow","objectFit","img","setProperty","touchmove","1px solid #666","2215404OWByLP","display","color","src","addEventListener","setAttribute","center","50px","button","8px","block","borderColor","Banner Ad","forEach","VIDEO","none","auto","846dINIKj","imageUrl","body","transition","autoSlideInterval","translateX(-","fontSize","14px","touchstart","cover","143980bdsaTp","appendChild","getBoundingClientRect","100px","inline-block","className","70588NJBGsb","add","56XmbelV","abs","backgroundColor","touches","video","#f9f9f9","adstage-slider-wrapper","cssText","opacity","TEXT","clientX","adType","adstage-dots","#f0f0f0","style"];return(at=function(){return t})()}!function(){const t=ot,e=at();for(;;)try{if(404791===parseInt(t(496))/1*(-parseInt(t(551))/2)+parseInt(t(474))/3*(-parseInt(t(553))/4)+-parseInt(t(545))/5+parseInt(t(518))/6+-parseInt(t(578))/7+-parseInt(t(499))/8*(parseInt(t(535))/9)+parseInt(t(571))/10*(parseInt(t(486))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ct{static[it(572)](t,e){const n=it,r=document[n(488)]("div");switch(r[n(550)]="adstage-ad adstage-"+String(t[n(564)])[n(579)](),r.setAttribute("data-adstage-ad-id",e._id),r[n(523)](n(508),t.id),r[n(567)].display=n(528),r[n(567)][n(483)]="100%",r[n(567)][n(469)]=n(534),t.adType){case i.BANNER:if(e[n(536)]){const t=document[n(488)](n(514));t[n(521)]=e[n(536)],t[n(567)][n(483)]="100%",t[n(567)][n(469)]="auto",t[n(567)][n(513)]=n(544),r.appendChild(t)}else r.style[n(469)]=n(548),r[n(567)][n(555)]=n(566),r[n(567)][n(494)]="1px dashed #ccc",r[n(575)]=n(530);break;case i[n(532)]:if(e.videoUrl){const t=document.createElement(n(557));t.src=e[n(505)],t[n(567)][n(483)]="100%",t[n(567)][n(469)]=n(534),r[n(546)](t)}else r[n(567)].height=n(511),r[n(567)][n(555)]=n(577),r.style[n(494)]=n(517),r[n(575)]="Video Ad",r[n(567)][n(520)]=n(490);break;case i[n(562)]:if(e[n(575)]){const t=document[n(488)](n(507));t[n(575)]=e[n(575)]||"",t.style.padding="8px",t[n(567)][n(541)]=n(542),r.appendChild(t)}else r[n(567)][n(469)]=n(525),r[n(567)].padding=n(527),r.textContent="Text Ad";break;default:r.style[n(469)]=n(548),r[n(567)][n(494)]=n(574),r.style[n(555)]=n(558),r[n(575)]=t[n(564)]+" Ad"}return r}static[it(573)](t,e,n,r,s=!1){const o=it,a=document.createElement(o(507));a[o(550)]=o(559);const c={position:"relative",overflow:o(570)};if(t.width&&0!==t.width){let e;e=typeof t[o(483)]===o(472)&&(t[o(483)].includes("px")||t[o(483)].includes("%"))?t.width:t[o(483)]+"px",c[o(483)]=e,c[o(519)]=o(549)}else c[o(519)]=o(549);if(t[o(469)]&&0!==t[o(469)]){const e="string"==typeof t.height?t[o(469)]:t[o(469)]+"px";c[o(469)]=e}Object[o(576)](c)[o(531)](([t,e])=>{a[o(567)].setProperty(t,e)});const d=!t.width||0===t[o(483)],l=!t[o(469)]||0===t[o(469)];if(d||l){const n=document[o(488)](o(507));if(n[o(567)][o(560)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t.width){let e;e=typeof t.width===o(472)&&(t[o(483)][o(506)]("px")||t[o(483)][o(506)]("%"))?t.width:t[o(483)]+"px",n.style[o(483)]=e,n[o(567)].whiteSpace=o(501)}document[o(537)].appendChild(n);let r=0,s=0;e[o(531)](e=>{const i=o,a=this[i(572)](t,e);n[i(546)](a);const c=a[i(547)]();c[i(483)]>r&&(r=c[i(483)]),c[i(469)]>s&&(s=c.height),n.removeChild(a)}),d&&r>0&&(a[o(567)][o(483)]=r+"px",c.width=r+"px"),l&&s>0&&(a[o(567)][o(469)]=s+"px",c[o(469)]=s+"px"),document[o(537)][o(568)](n)}const u=[...e,e[0]],p=document[o(488)]("div");p.className=o(475);const h={display:o(498),transition:"transform 0.4s ease-out",width:100*u[o(493)]+"%"};t[o(469)]&&0!==t[o(469)]&&(h[o(469)]=o(487)),Object.entries(h)[o(531)](([t,e])=>{const n=o;p.style[n(515)](t,e)}),u.forEach((e,n)=>{const i=o,a=document.createElement(i(507));a[i(550)]=i(471);const c={width:100/u[i(493)]+"%","flex-shrink":"0",display:i(498),"align-items":i(524),"justify-content":"center"};t.height&&0!==t.height&&(c[i(469)]=i(487)),Object.entries(c).forEach(([t,e])=>{const n=i;a[n(567)][n(515)](t,e)});const d=this[i(572)](t,e);st[i(484)](d,e,t,r,s,String(t[i(564)])[i(579)]()),a[i(546)](d),p[i(546)](a)});const f=e[o(476)](t=>t[o(564)]===i[o(562)])?null:this[o(509)](e[o(493)]);let g=0;const m=e[o(493)],I=1e3*(n?.[o(539)]||3),v=(n,i=!1)=>{const a=o;g=n,p[a(567)][a(538)]=i?a(533):"transform 0.4s ease-out",p[a(567)][a(495)]=a(540)+100/u.length*g+"%)";const c=g===m?0:g;if(f){f[a(482)](a(569))[a(531)]((t,e)=>{const n=a,r=t;e===c?(r[n(479)][n(552)]("active"),r.style[n(503)]="#666666",r[n(567)][n(529)]=n(470),r[n(567)][n(561)]="1"):(r[n(479)].remove("active"),r[n(567)][n(503)]="transparent",r.style.borderColor=n(504),r.style[n(561)]=n(473))})}tt[a(491)](e[c],t,c,r,s)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[o(482)](o(569)).forEach((t,e)=>{const n=o;t[n(522)](n(510),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(522)](o(480),()=>{clearInterval(b)}),a[o(522)]("mouseleave",()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[o(477)](p,v,()=>g,m,y),a[o(546)](p),f&&a[o(546)](f),v(0),(!t.width||0===t[o(483)])&&setTimeout(()=>{const e=o,n=p[e(468)][0];if(n){const r=n.children[0];if(r){const n=r[e(547)]();a[e(567)][e(483)]=n[e(483)]+"px",(!t[e(469)]||0===t[e(469)])&&(a.style[e(469)]=n[e(469)]+"px"),a[e(567)][e(512)]=e(570)}}},10),a}static createMinimalDotIndicator(t){const e=it,n=document[e(488)](e(507));n.className=e(565),n[e(567)][e(560)]="\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ";for(let r=0;r<t;r++){const t=document.createElement(e(526));t[e(550)]=e(485),t.style[e(560)]=e(502),t.addEventListener(e(480),()=>{const n=e;!t[n(479)][n(500)]("active")&&(t.style[n(529)]=n(481),t[n(567)][n(561)]=n(478))}),t[e(522)](e(497),()=>{const n=e;!t[n(479)][n(500)]("active")&&(t[n(567)][n(529)]=n(504),t[n(567)][n(561)]=n(473))}),n.appendChild(t)}return n}static[it(477)](t,e,n,r,s){const i=it;let o=0,a=!1;t[i(522)](i(543),t=>{o=t[i(556)][0].clientX,a=!0}),t.addEventListener(i(516),t=>{a&&t[i(489)]()}),t.addEventListener(i(492),t=>{const c=i;if(!a)return;a=!1;const d=t.changedTouches[0][c(563)],l=o-d;if(Math[c(554)](l)>50){const t=n();if(l>0){e(t+1),s&&s()}else{e(t>0?t-1:r-1)}}})}}const dt=lt;function lt(t,e){const n=pt();return(lt=function(t,e){return n[t-=347]})(t,e)}!function(){const t=lt,e=pt();for(;;)try{if(741714===parseInt(t(356))/1+-parseInt(t(349))/2+-parseInt(t(351))/3*(-parseInt(t(359))/4)+-parseInt(t(360))/5+parseInt(t(355))/6*(parseInt(t(362))/7)+-parseInt(t(366))/8+-parseInt(t(363))/9*(-parseInt(t(347))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static isDuplicateViewable(t,e,n=!1){const r=lt,s=t+"_"+e;return ut[r(364)][r(357)](s)?(n&&console[r(354)](r(365)+t+r(353)+e),!0):(ut.viewableTracker[r(348)](s),n&&console[r(354)](r(361)+t+r(353)+e),!1)}static[dt(352)](){const t=dt;ut[t(364)][t(352)]()}static[dt(358)](t,e){const n=dt,r=t+"_"+e;ut[n(364)][n(350)](r)}}function pt(){const t=["add","215480ZnZbCe","delete","12PIIZBZ","clear"," in slot ","log","115890SwJGsE","99886UnMwey","has","clearAdViewable","327196CHhEFl","6863045ELnJuk","✅ New viewable recorded for ad ","420TcYdaT","12926367RmuDPs","viewableTracker","Duplicate viewable blocked for ad ","6401456NqTRAQ","10rhKHiy"];return(pt=function(){return t})()}ut.viewableTracker=new Set;const ht=gt;!function(){const t=gt,e=mt();for(;;)try{if(130075===parseInt(t(519))/1+parseInt(t(426))/2+parseInt(t(498))/3+parseInt(t(510))/4*(parseInt(t(527))/5)+-parseInt(t(483))/6*(parseInt(t(439))/7)+-parseInt(t(492))/8+-parseInt(t(496))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ft{constructor(t,e=!1,n){const r=gt;this[r(511)]=t,this.debug=e,this[r(470)]=n||null}createPlaceholder(t,e,n,r){const s=gt,i=document.createElement(s(459));i.id=e,i[s(465)]="adstage-slot adstage-"+String(this[s(511)])[s(466)](),i[s(427)](s(450),"true"),i[s(427)](s(516),String(this.adType)),i[s(427)](s(430),e);const{width:o,height:a}=this[s(531)](t,n,r)||{width:s(524),height:this[s(512)]()};i[s(513)].width=o,i[s(513)].height=a;const c=r?.placeholderMode||n[s(487)]||s(533);this.applyPlaceholderStyle(i,c),t[s(445)](i),this[s(523)]&&console[s(480)](s(506)+this[s(511)]+s(503)+e+" ("+o+s(515)+a+") - Mode: "+c)}[ht(475)](t,e){const n=ht;switch(e){case n(533):t[n(513)].backgroundColor="transparent",t[n(513)][n(501)]=n(507),t[n(513)][n(429)]="0",t[n(434)]="";break;case n(482):t[n(513)][n(456)]=n(482),t[n(513)][n(501)]=n(507),t[n(513)][n(457)]="block",t.innerHTML="";break;case n(491):t[n(513)].backgroundColor=n(472),t[n(513)].border="none",t[n(513)][n(484)]=n(451),t[n(513)].display=n(438),t[n(513)][n(468)]=n(432),t[n(513)].justifyContent=n(432),t[n(434)]=n(529);break;case n(494):t[n(513)][n(456)]="rgba(248, 249, 250, 0.5)",t[n(513)].border=n(493),t[n(513)].borderRadius=n(469),t[n(513)].display=n(438),t.style[n(468)]=n(432),t[n(513)][n(431)]=n(432),t[n(434)]=n(443);break;case"debug":t[n(513)][n(501)]=n(447),t[n(513)][n(457)]=n(438),t[n(513)][n(468)]="center",t[n(513)][n(431)]=n(432),t[n(513)][n(456)]=n(425),t[n(513)][n(481)]=n(462),t.style[n(478)]=n(441),t.style[n(528)]="11px",t.innerHTML=n(467)+this.adType+n(460);break;default:t[n(513)][n(501)]=n(436),t[n(513)][n(457)]=n(438),t[n(513)][n(468)]=n(432),t.style.justifyContent="center",t[n(513)].backgroundColor=n(520),t[n(513)][n(481)]=n(473),t[n(434)]=n(467)+this.adType+" ad...</span>"}}[ht(531)](t,e,n){const r=ht,s=e.width,i=e[r(488)];let o,a;if(o=typeof s===r(455)?s+"px":typeof s===r(435)?s:r(524),typeof i===r(455))a=i+"px";else if(typeof i===r(435)&&i!==r(524)&&i!==r(522))a=i;else{const e=this[r(464)](t);e>0?(a=r(524),(n?.[r(523)]||this[r(523)])&&console[r(480)](r(504)+e+"px)")):(a=this[r(512)](),(n?.[r(523)]||this[r(523)])&&console[r(480)](r(440)+a+r(518)+this.adType))}return{width:o,height:a}}getContainerHeight(t){const e=ht,n=window[e(532)](t),r=parseFloat(n[e(488)]);if(!r||0===r){const r=parseFloat(n.minHeight);if(r>0)return r;if(t[e(513)][e(488)]&&t[e(513)].height!==e(522)){const n=parseFloat(t[e(513)].height);if(n>0)return n}const s=t[e(525)](e(488));if(s){const t=parseFloat(s);if(t>0)return t}}return r||0}[ht(476)](){return async(t,e,n)=>{const r=gt;if(n===u[r(463)]){if(ut[r(509)](t,e,this[r(523)]))return void(this[r(523)]&&console[r(480)](r(534)+t+r(530)+e));this[r(523)]&&console[r(480)](r(448)+t+r(530)+e)}if(this[r(470)])try{this[r(523)]&&console[r(480)]("🔄 Starting advertisement event tracking: "+n+" for ad "+t+" in slot "+e),await this.advertisementEventTracker[r(517)](t,e,n),this[r(523)]&&console.log("📊 Advertisement event tracked: "+n+" for ad "+t+r(530)+e)}catch(e){this[r(523)]&&console[r(521)](r(446)+n+r(500)+t+":",e)}else this[r(523)]&&console[r(471)]("⚠️ AdvertisementEventTracker not available for "+n+" event")}}[ht(433)](t){const e=ht,n=document[e(458)](t.id);if(n){const r=[...[n[e(437)](e(485)),n.closest('[data-adstage-container="true"]'),n][e(497)](t=>t&&t[e(489)](e(450))),...[n[e(514)](e(486)),n[e(514)](".adstage-"+String(this.adType)[e(466)]()),n.closest(e(499)),n.closest(e(490)),n[e(514)]('[class*="container"]'),n[e(514)]('div[style*="height"]'),n[e(514)]('div[style*="min-height"]'),n[e(474)]][e(497)](Boolean)][0];if(r){let n=e(495);n=r.hasAttribute(e(450))?"adstage-official":r[e(452)][e(453)]("adstage-slot")?e(442):e(505),r[e(513)][e(424)]+=e(502),r[e(434)]="",r.setAttribute(e(428),"true"),this[e(523)]&&console[e(471)](e(526)+this[e(511)]+" container collapsed ("+n+e(454)+t.id,r)}else this[e(508)](t)}t.advertisement=void 0,t.isEmpty=!0}[ht(508)](t){const e=ht,n=document[e(458)](t[e(449)]);if(n){n[e(434)]="";const r=document.createElement("div");r.id=t.id,r[e(465)]="adstage-slot adstage-empty adstage-"+String(this[e(511)])[e(466)](),r[e(427)]("data-adstage-container",e(479)),r[e(427)](e(428),e(479)),r[e(427)](e(430),t.id),r[e(513)][e(424)]=e(461),n[e(445)](r),this[e(523)]&&console[e(471)](e(477)+this[e(511)]+e(444)+t.id)}}log(t,...e){this[ht(523)]&&console.log("["+this.adType+"] "+t,...e)}}function gt(t,e){const n=mt();return(gt=function(t,e){return n[t-=424]})(t,e)}function mt(){const t=["applyPlaceholderStyle","createEventTrackingCallback","⚠️ Created empty ","fontFamily","true","log","color","transparent","6MdkMwS","borderRadius",'[data-adstage-container="true"]',".adstage-slot","placeholderMode","height","hasAttribute",'[class*="banner"]',"subtle","2002776RMQStn","1px solid rgba(0, 0, 0, 0.08)","minimal","unknown","319572TThiRp","filter","314421djHLPl",'[class*="ad"]'," event for ad ","border","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n "," slot: ","📏 Using 100% height (container: ","generic","📦 Placeholder created for ","none","createEmptyContainer","isDuplicateViewable","24SoUWkn","adType","getDefaultHeight","style","closest"," x ","data-adstage-type","trackAdvertisementEvent"," for ","243033XOfGKz","#f9f9f9","error","auto","debug","100%","getAttribute","⚠️ ","120080AZYpzK","fontSize",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>'," in slot ","calculateAdSize","getComputedStyle","invisible","🚫 Duplicate viewable blocked for ad ","cssText","rgba(231, 76, 60, 0.1)","112400mYYbOB","setAttribute","data-adstage-empty","opacity","data-adstage-slot","justifyContent","center","renderFallback","innerHTML","string","1px dashed #ccc","querySelector","flex","925442FvpUjG","📏 Using default height ","monospace","adstage-class",'<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>'," container: ","appendChild","❌ Failed to track ","2px dashed #e74c3c","✅ New viewable recorded for ad ","containerId","data-adstage-container","4px","classList","contains","): ","number","backgroundColor","display","getElementById","div"," ad...</span>","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","#e74c3c","VIEWABLE","getContainerHeight","className","toLowerCase","<span>Loading ","alignItems","6px","advertisementEventTracker","warn","rgba(0, 0, 0, 0.02)","#666","parentElement"];return(mt=function(){return t})()}const It=vt;function vt(t,e){const n=yt();return(vt=function(t,e){return n[t-=322]})(t,e)}function yt(){const t=["ratio","value","477VaDyQh","slideInterval","onerror","📦 Banner container dimensions: ","src","</div>","warn","containerId","abs","100%","selectOptimalSizeStrategy","3:2","from","innerHTML","display","1911656dVlUJr"," (strategy: ",", ratio=","objectFit","onload","forEach","getDefaultHeight","filter","BANNER","getBoundingClientRect","calculateAdSize","toString","optimizeContainerForBannerAds"," ads (optimized: ","7MxLXBF","📐 Optimal banner container calculated: ","height","status","aspectRatio","optimizedHeight","debug","calculateOptimalHeight","average","adstage-ad adstage-banner-ad","Image URL is not provided","borderRadius","imageUrl","createElement","dominant","parentElement","252WYigpt","renderOptimizedBannerImage","cover","Container not found: ","2183838KSoslN","log","map","Banner Advertisement","❌ Failed to load optimized banner image:","className","8830VIjfTv","15107136FUFqWj","reduce","loadImageDimensions","allSettled","4wggasS","set","✅ Optimized banner image rendered for ad: ","alt","_id","center","some",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"title","1:1","10866NZaUUD"," (avg: ","count","Failed to load image: ","div","8px","<div>","createEventTrackingCallback","common","Banner Ad","🎨 Banner image style applied: objectFit=","applyOptimizedImageStyle","180222bPziCw","Banner container optimization failed, using default size:","round","width","📸 Banner image dimensions: ","addClickEventForRenderer","toFixed","250px","📊 Using standard ratio: ","renderMultipleAds","img","values","length","calculateOptimalContainerSize","backgroundColor"," ads: ","fulfilled","Failed to calculate optimal banner size, using defaults:","name","default","appendChild","🎠 Banner carousel created for slot: ","getElementById","Banner","max","2573015KZUbFy","objectPosition","style","config","4:3","get","error"];return(yt=function(){return t})()}!function(){const t=vt,e=yt();for(;;)try{if(393994===-parseInt(t(394))/1+-parseInt(t(382))/2*(parseInt(t(357))/3)+parseInt(t(372))/4*(-parseInt(t(419))/5)+-parseInt(t(361))/6*(-parseInt(t(341))/7)+-parseInt(t(327))/8+-parseInt(t(428))/9*(-parseInt(t(367))/10)+parseInt(t(368))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class bt extends ft{constructor(t=!1,e){super(i[vt(335)],t,e)}[It(333)](){return It(401)}async renderAdElement(t,e){const n=It,r=document[n(416)](t[n(435)]);if(!r)return;const s=document[n(354)](n(386));s[n(366)]=n(350);const i=t[n(346)],o=r[n(356)]||r;if(i)s[n(421)][n(397)]=n(437),s[n(421)][n(343)]=String(i);else{const e=t[n(422)],r={width:e?.[n(397)],height:e?.height},{width:i,height:a}=this[n(337)](o,r,{debug:this[n(347)]});s[n(421)][n(397)]=i,s[n(421)][n(343)]=a}e[n(353)]?await this[n(358)](s,e,t):s.innerHTML=n(388)+(e[n(380)]||n(391))+n(433),st[n(399)](s,e,t,()=>this[n(389)](),this[n(347)],n(417)),r.innerHTML="",r.appendChild(s)}async[It(403)](t,e){const n=It,r=document[n(416)](t[n(435)]);if(!r)throw new Error(n(360)+t.containerId);await this[n(339)](t,e);const s=this.createEventTrackingCallback(),i={autoSlideInterval:(t[n(422)]?.[n(429)]||5e3)/1e3,...t.config,optimizedHeight:t.optimizedHeight,aspectRatio:t[n(345)]},o=ct.createSliderContainer(t,e,i,s,this[n(347)]);o&&(r[n(325)]="",r.appendChild(o),this[n(347)]&&console[n(362)](n(415)+t.id+" with "+e.length+n(340)+(t[n(346)]||n(413))+")"))}async calculateOptimalContainerSize(t,e){const n=It;if(!t[n(406)])return{width:n(437),height:this[n(333)](),aspectRatio:16/9};try{const r=(await Promise[n(371)](t[n(334)](t=>t.imageUrl)[n(363)](t=>this[n(370)](t.imageUrl))))[n(334)](t=>t[n(344)]===n(410))[n(363)](t=>t[n(427)]);if(0===r[n(406)])return{width:n(437),height:this.getDefaultHeight(),aspectRatio:16/9};const s=this[n(322)](r),i=this[n(348)](r,e,s);return this.debug&&console.log(n(342)+e+"x"+i+n(328)+s+")"),{width:n(437),height:i+"px",aspectRatio:e/i}}catch(t){return console[n(434)](n(411),t),{width:n(437),height:this[n(333)](),aspectRatio:16/9}}}async[It(339)](t,e){const n=It;try{const r=document.getElementById(t.containerId),s=document.getElementById(t.id);if(!r||!s)return;const i=r[n(336)]()[n(397)]||300,o=await this[n(407)](e,i);s[n(421)][n(343)]=o[n(343)],t[n(346)]=o[n(343)],t[n(345)]=o[n(345)],this.debug&&console.log("🔧 Banner container optimized for "+e[n(406)]+n(409)+o[n(343)])}catch(t){console.warn(n(395),t)}}[It(322)](t){const e=It,n=t.map(t=>t[e(397)]/t[e(343)]),r=new Map;n[e(332)](t=>{const n=e,s=(Math[n(396)](10*t)/10)[n(338)]();r[n(373)](s,(r[n(424)](s)||0)+1)});const s=Math[e(418)](...r[e(405)]()),i=t[e(406)];if(s/i>=.7)return e(355);const o=[16/9,4/3,1,1.5],a=n[e(334)](t=>o[e(378)](n=>Math[e(436)](t-n)<.1)).length;return e(a/i>=.5?390:349)}[It(348)](t,e,n){const r=It,s=t[r(363)](t=>t[r(397)]/t[r(343)]);switch(n){case r(355):{const t=new Map;s[r(332)](e=>{const n=r,s=Math[n(396)](10*e)/10,i=s[n(338)](),o=t[n(424)](i);o?o[n(384)]++:t.set(i,{ratio:s,count:1})});const n=Array[r(324)](t[r(405)]())[r(369)]((t,e)=>e[r(384)]>t[r(384)]?e:t);return Math[r(396)](e/n[r(426)])}case r(390):{const t=[{ratio:16/9,name:"16:9"},{ratio:4/3,name:r(423)},{ratio:1,name:r(381)},{ratio:1.5,name:r(323)}],n=s[r(369)]((t,e)=>t+e,0)/s[r(406)],i=t[r(369)]((t,e)=>Math.abs(e[r(426)]-n)<Math.abs(t[r(426)]-n)?e:t);return this[r(347)]&&console.log(r(402)+i[r(412)]+r(383)+n[r(400)](2)+")"),Math[r(396)](e/i[r(426)])}default:{const t=s.reduce((t,e)=>t+e,0)/s[r(406)];return Math.round(e/t)}}}[It(370)](t){return new Promise((e,n)=>{const r=vt,s=new Image;s[r(331)]=()=>{e({width:s.naturalWidth,height:s.naturalHeight})},s[r(430)]=()=>{n(new Error(r(385)+t))},s[r(432)]=t})}[It(393)](t,e,n){const r=It,s=e/n;Math[r(436)](s-1)<.1?(t.style[r(330)]=r(359),t.style[r(420)]=r(377)):s>1.3?(t[r(421)].objectFit="contain",t[r(421)][r(420)]="center",t[r(421)][r(408)]="#f0f0f0"):s<.7?(t[r(421)][r(330)]="cover",t[r(421)][r(420)]="center"):(t[r(421)][r(330)]="cover",t[r(421)][r(420)]=r(377)),this[r(347)]&&console[r(362)](r(392)+t[r(421)][r(330)]+r(329)+s[r(400)](2))}async[It(358)](t,e,n){const r=It,s=document[r(354)](r(404));s.style.width="100%",s[r(421)][r(343)]="100%",s.style[r(326)]="block",s[r(421)][r(352)]=r(387),s[r(375)]=e[r(380)]||r(364),t.innerHTML=r(379);try{if(!e[r(353)])throw new Error(r(351));const i=await this.loadImageDimensions(e[r(353)]),o=t[r(336)](),a=o[r(397)],c=o[r(343)];this.debug&&(console[r(362)](r(398)+i[r(397)]+"x"+i[r(343)]),console.log(r(431)+a+"x"+c));const d=i[r(397)]/i[r(343)],l=a/c;return this[r(393)](s,d,l),s[r(432)]=e[r(353)],t[r(325)]="",t[r(414)](s),st[r(399)](s,e,n,()=>this[r(389)](),this[r(347)],r(417)),this.debug&&console[r(362)](r(374)+e[r(376)]),s}catch(i){return console[r(425)](r(365),i),e[r(353)]&&(s[r(432)]=e[r(353)],s[r(421)][r(330)]=r(359),s[r(421)].objectPosition=r(377),t[r(325)]="",t[r(414)](s),st[r(399)](s,e,n,()=>this.createEventTrackingCallback(),this[r(347)],r(417))),s}}}const wt=kt;function kt(t,e){const n=At();return(kt=function(t,e){return n[t-=263]})(t,e)}!function(){const t=kt,e=At();for(;;)try{if(259155===parseInt(t(263))/1*(parseInt(t(277))/2)+-parseInt(t(266))/3*(parseInt(t(276))/4)+parseInt(t(270))/5*(-parseInt(t(271))/6)+-parseInt(t(267))/7*(parseInt(t(273))/8)+-parseInt(t(268))/9*(parseInt(t(280))/10)+parseInt(t(274))/11*(-parseInt(t(264))/12)+parseInt(t(269))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Et{static[wt(279)](t=!1){return wt(265)}static[wt(278)](t,e){const n=wt,r=e[n(272)]||e[n(275)]||"";t[n(272)]=r}}function At(){const t=["createTextAdStyles","1820180cEDIIv","3314JcEeyx","12yFrXKX","\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n ","3qQrwJb","517622jPdoFx","9BEcRfv","11414026ynvbeL","5jcGaoR","752478LdfJRE","textContent","32vVdycs","1377497WUmKtH","title","555820sZDFnT","150zAstaa","setTextAdContent"];return(At=function(){return t})()}const xt=St;function St(t,e){const n=Ct();return(St=function(t,e){return n[t-=384]})(t,e)}function Ct(){const t=["className","addTouchSupport","autoSlideInterval","addEventListener","forEach","body","height: auto;","addClickEventForSlider","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","touchend","1757982upQlwh","auto","height: auto; min-height: fit-content;","14nkHerA","position","10WCALcn","13985499Oyzflu","zIndex","touchstart","9412795HLpjTf","hidden","clientX","data-adstage-slot-id","entries","includes","mouseleave",";\n width: 100%;\n ","createElement","style",";\n ","getBoundingClientRect","width","5ztcVKt","push","translateY(20px)","createTextAdStyles","195226cLtVLG","minHeight",";\n left: ","string","translateY(-20px)","left","length","createTextTransitionContainer","27Xfomcu","_id","height","abs","whiteSpace","preventDefault","translateY(0)","3645608FpuIep","toLowerCase","relative","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","cssText","changedTouches","touches","transform","setAttribute","\n position: ","\n ","normal","data-adstage-ad-id",";\n top: ","createSimpleAdElement","101058NJeUQW","removeChild","adstage-fade-slide","top","clientY","mouseenter","appendChild","adstage-fade-slide-container","trackSlideViewable","div","height: 100%;","41040336iXzmpw","setProperty","absolute","opacity","20px","104UNtNQi"];return(Ct=function(){return t})()}!function(){const t=St,e=Ct();for(;;)try{if(760918===parseInt(t(426))/1*(parseInt(t(449))/2)+parseInt(t(396))/3*(-parseInt(t(412))/4)+-parseInt(t(445))/5*(parseInt(t(423))/6)+parseInt(t(432))/7+-parseInt(t(464))/8*(-parseInt(t(457))/9)+-parseInt(t(428))/10*(-parseInt(t(429))/11)+-parseInt(t(407))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Tt{static createSimpleAdElement(t,e){const n=St,r=document[n(440)](n(405));return r[n(413)]="adstage-ad adstage-"+String(t.adType)[n(465)](),r[n(389)](n(393),e[n(458)]),r.setAttribute(n(435),t.id),r[n(441)][n(385)]=Et[n(448)](!0),Et.setTextAdContent(r,e),r}static[xt(456)](t,e,n,r,s=!1){const i=xt,o=t.height&&0!==t[i(459)]&&"auto"!==t[i(459)],a=document[i(440)]("div");a[i(413)]="adstage-fade-slider-wrapper";const c={position:i(466),overflow:i(433),display:"block"};if(!o&&(c[i(459)]=i(424),c[i(450)]="fit-content"),t.width&&0!==t[i(444)]){let e;e="string"==typeof t[i(444)]&&(t[i(444)][i(437)]("px")||t[i(444)].includes("%"))?t.width:t[i(444)]+"px",c[i(444)]=e}if(t.height&&0!==t.height&&"auto"!==t.height&&o){let e;e=typeof t[i(459)]===i(452)&&(t[i(459)][i(437)]("px")||t[i(459)][i(437)]("%"))?t[i(459)]:t[i(459)]+"px",c.height=e}Object[i(436)](c)[i(417)](([t,e])=>{const n=i;a[n(441)][n(408)](t,e)});const d=document[i(440)]("div");d[i(413)]=i(403),d[i(441)][i(385)]="\n position: relative;\n width: 100%;\n "+i(o?406:425)+i(391);let l=null;const u=!t[i(444)]||0===t[i(444)],p=!t.height||0===t[i(459)]||void 0===t[i(459)]||t[i(459)]===i(424);if(u||p&&o){if(l=document.createElement(i(405)),l[i(441)].cssText=i(384),!u&&t.width){let e;e=typeof t.width===i(452)&&(t[i(444)][i(437)]("px")||t[i(444)][i(437)]("%"))?t.width:t[i(444)]+"px",l[i(441)].width=e,l[i(441)][i(461)]=i(392)}document[i(418)][i(402)](l);let n=0,r=0;e.forEach(e=>{const s=i,o=this[s(395)](t,e);l[s(402)](o);const a=o[s(443)]();a[s(444)]>n&&(n=a[s(444)]),a[s(459)]>r&&(r=a[s(459)]),l[s(397)](o)}),u&&n>0&&(a[i(441)].width=n+"px"),p&&r>0&&o&&(a[i(441)][i(459)]=r+"px"),document[i(418)][i(397)](l)}const h=[];e.forEach((e,n)=>{const a=i,c=document.createElement(a(405));c[a(413)]=a(398);const l=a(o?409:0===n?466:409);c[a(441)].cssText=a(390)+l+a(394)+("absolute"===l?"0":a(424))+a(451)+(l===a(409)?"0":"auto")+a(439)+a(o?406:419)+a(421)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":a(411))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+a(442);const u=this.createSimpleAdElement(t,e);st[a(420)](u,e,t,r,s,"Text"),c[a(402)](u),d[a(402)](c),h[a(446)](c)});let f=0;const g=e[i(455)],m=1e3*(n?.[i(415)]||4),I=n=>{const a=i;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c[a(441)][a(427)]===a(466)&&(c.style[a(427)]=a(409),c[a(441)].top="0",c[a(441)][a(454)]="0"),d[a(441)][a(427)]="relative",d.style[a(399)]="auto",d[a(441)][a(454)]=a(424)),c[a(441)].opacity="0",c[a(441)][a(388)]=a(453),c[a(441)][a(430)]="1",d[a(441)][a(410)]="1",d.style[a(388)]=a(463),d.style[a(430)]="2",h[a(417)]((t,e)=>{const r=a;e!==n&&e!==f&&(t.style[r(410)]="0",t[r(441)].transform=r(447),t[r(441)].zIndex="1",!o&&t.style[r(427)]===r(466)&&(t[r(441)][r(427)]="absolute",t[r(441)].top="0",t.style[r(454)]="0"))}),f=n,tt[a(404)](e[f],t,f,r,s)};let v=setInterval(()=>{I(f+1)},m);return a[i(416)](i(401),()=>{clearInterval(v)}),a[i(416)](i(438),()=>{v=setInterval(()=>{I(f+1)},m)}),Tt[i(414)](a,I,()=>f,g),a.appendChild(d),a}static addTouchSupport(t,e,n,r){const s=xt;let i=0,o=0,a=!1;t.addEventListener(s(431),t=>{const e=s;i=t[e(387)][0][e(434)],o=t[e(387)][0][e(400)],a=!0}),t[s(416)]("touchmove",t=>{a&&t[s(462)]()}),t[s(416)](s(422),t=>{const r=s;if(!a)return;a=!1;const c=t.changedTouches[0][r(434)],d=t[r(386)][0][r(400)],l=i-c,u=o-d;if(Math[r(460)](l)>Math[r(460)](u)&&Math.abs(l)>50){const t=n();e(l>0?t+1:t-1)}})}}function Lt(){const t=["4939280vsPftE","number","display","getDefaultHeight","Container not found: ","slideInterval","3019128yQxWfI","1344243pgwNCP","div","✨ Single text ad rendered: ","createEventTrackingCallback","addClickEventForRenderer","2934674HxJJag","overflow","width","style","debug","createTextAdStyles","innerHTML"," with ","containerId","hidden","TEXT","getElementById","calculateAdSize","parentElement","webkitLineClamp","✨ Text transition created for slot: ","vertical","renderAdElement","optimizedHeight","-webkit-box","aspectRatio","5066352fUrwdh","appendChild","createTextTransitionContainer","className","3641688pVYBMc","config","_id","length","renderMultipleAds","100%","height","webkitBoxOrient","maxLines","cssText","60px","log","createElement","23052694NtSIwv","adstage-text-content"];return(Lt=function(){return t})()}const Rt=Dt;function Dt(t,e){const n=Lt();return(Dt=function(t,e){return n[t-=251]})(t,e)}!function(){const t=Dt,e=Lt();for(;;)try{if(920102===-parseInt(t(289))/1+parseInt(t(294))/2+parseInt(t(263))/3+parseInt(t(267))/4+parseInt(t(282))/5+parseInt(t(288))/6+-parseInt(t(280))/7)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class _t extends ft{constructor(t=!1,e){super(i[Dt(252)],t,e)}[Rt(285)](){return Rt(277)}async[Rt(259)](t,e){const n=Rt,r=document.getElementById(t.containerId);if(!r)return;const s=document[n(279)](n(290));s[n(266)]="adstage-ad adstage-text-ad";const i=t[n(260)],o=r[n(255)]||r;if(i)s[n(297)].width=n(272),s[n(297)][n(273)]=String(i);else{const e=t.config,r={width:e?.[n(296)],height:e?.height},{width:i,height:a}=this[n(254)](o,r,{debug:this[n(298)]});s[n(297)][n(296)]=i,s[n(297)][n(273)]=a}const a=document.createElement(n(290));a[n(266)]=n(281),a[n(297)][n(276)]=Et[n(299)](!1),Et.setTextAdContent(a,e);const c=t[n(268)]?.[n(275)];c&&typeof c===n(283)&&(a[n(297)][n(284)]=n(261),a.style[n(256)]=String(c),a[n(297)][n(274)]=n(258),a[n(297)][n(295)]=n(251)),s[n(264)](a),st[n(293)](s,e,t,()=>this[n(292)](),this[n(298)],"Text"),r[n(300)]="",r[n(264)](s),this[n(298)]&&console[n(278)](n(291)+e[n(269)])}async[Rt(271)](t,e){const n=Rt,r=document[n(253)](t[n(302)]);if(!r)throw new Error(n(286)+t.containerId);const s=this[n(292)](),i={autoSlideInterval:(t[n(268)]?.[n(287)]||5e3)/1e3,...t[n(268)],optimizedHeight:t[n(260)],aspectRatio:t[n(262)]},o=Tt[n(265)](t,e,i,s,this[n(298)]);o&&(r[n(300)]="",r.appendChild(o),this.debug&&console.log(n(257)+t.id+n(301)+e[n(270)]+" ads"))}}const Pt=Mt;function Bt(){const t=["contain","hideVolumeSlider","className","Click to unmute","rgba(0, 0, 0, 0.7)"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","warn","muted","click","unmuted","🎬 Video config received:","config","relative","alt","background"," !important;\n }\n ","🎬 Video data loaded, attempting autoplay...","display","src",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"/>\n </svg>\n ',", muted: ","width","adstage-video-container","7tYCwhY","none","\n .adstage-video-container video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n .adstage-video-container video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n video::-webkit-media-controls-mute-button {\n display: none !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: none !important;\n }\n video::-webkit-media-controls-toggle-closed-captions-button {\n display: none !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: none !important;\n }\n video::-webkit-media-controls-overflow-button {\n display: none !important;\n }\n video::-webkit-media-controls-picture-in-picture-button {\n display: none !important;\n }\n ","metadata","137965TJVYrI","hideControls","🎬 Auto-play was prevented:","hideRemainingTime","error"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","style","8586824ZCsWyB","appendChild",'\n <svg width="20" height="20" viewBox="0 0 24 24" fill="white">\n <path d="M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z"/>\n </svg>\n ',"preload","⚠️ No video advertisements available for slot: "," (autoplay: ","100%","VIDEO","head","🎬 Video can play, attempting autoplay...","renderVideoElementDirect","playsinline","renderMultipleAds","getDefaultHeight","div","transform","623723NFsDNU","Video thumbnail","createEventTrackingCallback","button","63620xLjZYv","🎬 Trying muted autoplay fallback...","hideMuteButton","hideFullscreenButton","customControls","img","🎬 Video controls setting:","25628ljjUcU","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","cssText","\n pointer-events: none;\n "," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: ","2502645QpEPNy","block","mouseleave","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ","containerId"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","adstage-video-default-controls","loop","addClickEventForRenderer","position","🎬 Video metadata loaded, attempting autoplay...","🎬 Single video rendered for VIDEO slot: ","length","hideProgressBar","autoplay","Container not found: ","🔊 Video mute toggled: ","🎬 Autoplay completely failed:","innerHTML","setAttribute","play","height"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","addEventListener","VIEWABLE","debug","🎬 User explicitly enabled controls, overriding default","video","createElement",", loop: ","videoUrl","stopPropagation","log","textContent","canplay","66jwWdrK","paused","1346522WKhBWK","imageUrl","scale(1.1)","catch","renderAdElement","3060WjQeZb","title","hidePlayButton","controls","🎬 Final video settings:","getElementById","_id","objectFit"];return(Bt=function(){return t})()}function Mt(t,e){const n=Bt();return(Mt=function(t,e){return n[t-=354]})(t,e)}!function(){const t=Mt,e=Bt();for(;;)try{if(936888===-parseInt(t(376))/1+-parseInt(t(429))/2+parseInt(t(392))/3+parseInt(t(387))/4+-parseInt(t(469))/5*(-parseInt(t(427))/6)+parseInt(t(465))/7*(-parseInt(t(360))/8)+-parseInt(t(434))/9*(-parseInt(t(380))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class zt extends ft{constructor(t=!1,e){super(i[Mt(367)],t,e)}[Pt(373)](){return"360px"}async[Pt(433)](t,e){const n=Pt,r=document[n(439)](t[n(396)]);if(!r)return;const s=document[n(420)](n(374));s[n(444)]=n(464),s[n(359)].cssText=n(395),this[n(370)](s,e,t),r.innerHTML="",r[n(361)](s),this[n(417)]&&console[n(424)]("🎬 Single video ad rendered: "+e[n(440)])}async[Pt(372)](t,e){const n=Pt,r=document.getElementById(t[n(396)]);if(!r)throw new Error(n(407)+t[n(396)]);if(e[n(404)]>0){const s=e[0],i=document[n(420)](n(374));i[n(444)]=n(464),i[n(359)][n(389)]=n(388),this[n(370)](i,s,t),r.innerHTML="",r[n(361)](i);const o=this.createEventTrackingCallback();setTimeout(()=>{const e=n;o(s[e(440)],t.id,u[e(416)])},100),this[n(417)]&&console[n(424)](n(403)+t.id+" ("+s[n(440)]+")")}else this[n(417)]&&console.warn(n(364)+t.id)}renderVideoElementDirect(t,e,n){const r=Pt;t.style[r(401)]=r(454);const s=document[r(420)](r(419));s[r(359)][r(463)]=r(366),s[r(359)][r(413)]=r(366),s.style[r(441)]="contain",s[r(363)]=r(468);const i=n[r(453)];if(this.debug&&console[r(424)](r(452),i),s[r(437)]=!1,s.autoplay=!1!==i?.[r(406)],s[r(449)]=!0,s[r(399)]=!1!==i?.loop,this.debug&&console[r(424)](r(438),{autoplay:s.autoplay,muted:s[r(449)],loop:s[r(399)],controls:s[r(437)]}),!1!==i?.[r(371)]&&s[r(411)](r(371),""),!0===i?.controls&&(s[r(437)]=!0,this[r(417)]&&console.log(r(418))),i?.hideControls)s.controls=!1,s[r(359)][r(389)]+=r(390);else if(i?.[r(384)]){if(s[r(437)]){const t=document[r(420)](r(359));t[r(425)]="\n video::-webkit-media-controls-play-button {\n display: "+(i[r(384)][r(436)]?r(466):r(393))+r(397)+(i[r(384)][r(405)]?r(466):r(393))+r(391)+(i[r(384)].hideCurrentTime?r(466):r(393))+" !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: "+(i.customControls[r(356)]?r(466):"block")+r(414)+(i[r(384)][r(443)]?r(466):r(393))+r(447)+(i[r(384)][r(382)]?r(466):r(393))+r(358)+(i.customControls[r(383)]?r(466):"block")+r(457),document[r(368)][r(361)](t)}}else if(s[r(437)]){const t=document[r(420)](r(359));t.id=r(398),t[r(425)]=r(467),!document[r(439)]("adstage-video-default-controls")&&document[r(368)][r(361)](t)}this[r(417)]&&console[r(424)](r(386),s[r(437)]?"enabled":"disabled (default)");const o=document[r(420)](r(379));o[r(444)]="adstage-video-mute-button",o.style[r(389)]="\n position: absolute;\n top: 12px;\n left: 12px;\n width: 40px;\n height: 40px;\n border: none;\n border-radius: 50%;\n background: rgba(0, 0, 0, 0.7);\n color: white;\n font-size: 16px;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10;\n transition: all 0.3s ease;\n backdrop-filter: blur(4px);\n ",i?.[r(354)]&&(o.style[r(459)]=r(466));const a=()=>{const t=r,e=t(362),n=t(461);o[t(410)]=s[t(449)]?e:n,o[t(435)]=s[t(449)]?t(445):"Click to mute"};if(a(),o.addEventListener(r(450),t=>{const e=r;t[e(423)](),s[e(449)]=!s.muted,a(),this.debug&&console.log(e(408)+(s[e(449)]?e(449):e(451)))}),o[r(415)]("mouseenter",()=>{const t=r;o[t(359)][t(456)]="rgba(0, 0, 0, 0.9)",o[t(359)][t(375)]=t(431)}),o.addEventListener(r(394),()=>{const t=r;o.style[t(456)]=t(446),o[t(359)][t(375)]="scale(1)"}),e[r(422)]){s[r(460)]=e[r(422)];const t=()=>{const t=r;s.autoplay&&s[t(449)]&&s[t(428)]&&s[t(412)]()[t(432)](e=>{const n=t;this[n(417)]&&(console[n(448)](n(355),e),console[n(448)](n(381))),s[n(449)]=!0,s[n(412)]()[n(432)](t=>{const e=n;this[e(417)]&&console[e(357)](e(409),t)})})};s[r(415)]("loadedmetadata",()=>{const e=r;this[e(417)]&&console[e(424)](e(402)),t()}),s.addEventListener(r(426),()=>{const e=r;this[e(417)]&&console[e(424)](e(369)),t()}),s[r(415)]("loadeddata",()=>{const e=r;this[e(417)]&&console[e(424)](e(458)),t()}),setTimeout(()=>{const e=r;this[e(417)]&&console[e(424)]("🎬 Initial autoplay attempt after timeout..."),t()},100)}else if(e[r(430)]){const n=document[r(420)](r(385));return n.src=e.imageUrl,n.style.width=r(366),n[r(359)][r(413)]="100%",n[r(359)][r(441)]=r(442),n[r(455)]=e[r(435)]||"Video thumbnail",void t.appendChild(n)}st.addClickEventForRenderer(s,e,n,()=>this[r(378)](),this[r(417)],"Video"),s.addEventListener(r(357),s=>{const i=r;if(console.error("Video load failed:",s),e[i(430)]){const r=document.createElement("img");r[i(460)]=e.imageUrl,r[i(359)][i(463)]="100%",r[i(359)][i(413)]=i(366),r[i(359)][i(441)]=i(442),r[i(455)]=e[i(435)]||i(377),st[i(400)](r,e,n,()=>this[i(378)](),this[i(417)],"Video fallback"),t[i(410)]="",t[i(361)](r)}}),t.appendChild(s),t.appendChild(o),this[r(417)]&&console[r(424)]("🎬 Video element created for ad: "+e[r(440)]+r(365)+s[r(406)]+r(462)+s[r(449)]+r(421)+s[r(399)]+")")}}function Ut(t,e){const n=Ot();return(Ut=function(t,e){return n[t-=477]})(t,e)}const Nt=Ut;function Ot(){const t=["): ","getDefaultHeight","advertisementEventTracker","imageUrl","debug","open","length","button","_blank","src","🏠 Single native ad rendered: ","163833cPhyKw","10drpWQc","style","170667IdgCCz","746268TAttDc","linkUrl","7XqLcqq","div","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","_id","img","backgroundColor","#2563eb","22YcVoqa","mouseleave","addEventListener","click","alt","warn","4454934CQOIxM","title","Native click tracked for ad: ","createElement","containerId","\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ","🏠 Native ad rendered (first of ","cssText","log","textContent","adstage-ad adstage-native-ad","67688CKetXg","appendChild","innerHTML","renderAdElement","getElementById","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","Learn More","2380440AaOCaJ","20lHgiJS","#3b82f6","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","className","3525921mhNhtA"];return(Ot=function(){return t})()}!function(){const t=Ut,e=Ot();for(;;)try{if(324696===-parseInt(t(484))/1+parseInt(t(497))/2*(-parseInt(t(487))/3)+parseInt(t(521))/4+-parseInt(t(522))/5*(-parseInt(t(488))/6)+parseInt(t(490))/7*(parseInt(t(514))/8)+parseInt(t(526))/9*(-parseInt(t(485))/10)+parseInt(t(503))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ft extends ft{constructor(t=!1,e){super(i.NATIVE,t,e)}[Nt(528)](){return"200px"}async renderAdElement(t,e){const n=Nt,r=document[n(518)](t[n(507)]);if(!r)return;const s=document[n(506)](n(491));if(s[n(525)]=n(513),s[n(486)].cssText=n(508),e[n(504)]){const t=document.createElement("h3");t[n(512)]=e.title,t.style.cssText=n(492),s[n(515)](t)}if(e[n(512)]){const t=document[n(506)]("p");t.textContent=e[n(512)],t[n(486)][n(510)]=n(519),s[n(515)](t)}if(e.imageUrl){const t=document.createElement(n(491));t.style[n(510)]=n(524);const r=document.createElement(n(494));r[n(482)]=e[n(530)],r[n(501)]=e[n(504)]||"Native Advertisement",r.style[n(510)]="\n width: 100%;\n height: 100%;\n object-fit: cover;\n ",t[n(515)](r),s[n(515)](t)}if(e.linkUrl){const t=document[n(506)](n(480));t.textContent=n(520),t[n(486)][n(510)]="\n padding: 8px 16px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 6px;\n font-size: 14px;\n font-weight: 500;\n cursor: pointer;\n align-self: flex-start;\n transition: background-color 0.2s;\n ",t[n(499)](n(500),()=>{const t=n;this[t(529)]&&console[t(511)](t(505)+e[t(493)]),window[t(478)](e[t(489)],t(481))}),t[n(499)]("mouseenter",()=>{const e=n;t[e(486)].backgroundColor=e(496)}),t[n(499)](n(498),()=>{const e=n;t[e(486)][e(495)]=e(523)}),s[n(515)](t)}r[n(516)]="",r[n(515)](s),this[n(477)]&&console[n(511)](n(483)+e[n(493)])}async renderMultipleAds(t,e){const n=Nt;e[n(479)]>0?(await this[n(517)](t,e[0]),this[n(477)]&&console[n(511)](n(509)+e[n(479)]+n(527)+t.id)):this[n(477)]&&console[n(502)]("⚠️ No native advertisements available for slot: "+t.id)}}const Vt=jt;function jt(t,e){const n=Kt();return(jt=function(t,e){return n[t-=469]})(t,e)}!function(){const t=jt,e=Kt();for(;;)try{if(513669===-parseInt(t(517))/1+-parseInt(t(538))/2*(parseInt(t(530))/3)+-parseInt(t(474))/4+-parseInt(t(525))/5+-parseInt(t(503))/6*(-parseInt(t(479))/7)+-parseInt(t(519))/8*(-parseInt(t(515))/9)+-parseInt(t(469))/10*(-parseInt(t(540))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ht extends ft{constructor(t=!1,e){super(i.INTERSTITIAL,t,e)}[Vt(489)](){return"400px"}async renderAdElement(t,e){const n=Vt;if(!document[n(486)](t[n(514)]))return;const r=document[n(510)](n(501));r[n(534)]=n(516),r[n(495)][n(535)]=n(529);const s=document.createElement(n(501));s[n(534)]=n(498),s.style[n(535)]=n(537);const i=document[n(510)](n(536));if(i.innerHTML="×",i.style.cssText=n(500),i[n(533)]("click",()=>{this[n(481)](r)}),i[n(533)](n(493),()=>{const t=n;i.style[t(496)]="#e5e7eb",i[t(495)].color=t(512)}),i.addEventListener(n(518),()=>{const t=n;i[t(495)][t(496)]=t(478),i[t(495)][t(490)]=t(526)}),e[n(523)]){const t=document.createElement(n(494));t[n(497)]=e.imageUrl,t.alt=e[n(521)]||n(502),t[n(495)][n(535)]="\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ",s[n(532)](t)}if(e.title){const t=document[n(510)]("h2");t[n(475)]=e[n(521)],t[n(495)][n(535)]=n(531),s[n(532)](t)}if(e[n(475)]){const t=document[n(510)]("p");t[n(475)]=e[n(475)],t.style[n(535)]=n(506),s[n(532)](t)}if(e[n(492)]){const t=document[n(510)]("button");t[n(475)]=n(472),t[n(495)][n(535)]=n(491),t[n(533)](n(507),()=>{const t=n;this[t(527)]&&console.log(t(482)+e[t(477)]),window.open(e[t(492)],"_blank"),this.closeInterstitial(r)}),t.addEventListener(n(493),()=>{const e=n;t[e(495)][e(496)]=e(499)}),t[n(533)](n(518),()=>{const e=n;t[e(495)].backgroundColor=e(509)}),s[n(532)](t)}const o=t=>{const e=n;t[e(505)]===e(480)&&(this[e(481)](r),document.removeEventListener(e(483),o))};if(document[n(533)](n(483),o),r[n(533)](n(507),t=>{const e=n;t[e(471)]===r&&this[e(481)](r)}),!document.getElementById("adstage-interstitial-styles")){const t=document[n(510)]("style");t.id=n(504),t[n(475)]=n(487),document[n(539)][n(532)](t)}s.appendChild(i),r.appendChild(s),document[n(511)][n(532)](r),this[n(522)]&&console[n(485)](n(484)+e[n(477)])}async renderMultipleAds(t,e){const n=Vt;e.length>0?(await this[n(513)](t,e[0]),this.debug&&console.log(n(488)+e.length+n(520)+t.id)):this[n(522)]&&console[n(476)](n(528)+t.id)}[Vt(481)](t){const e=Vt;t[e(495)][e(473)]=e(508),setTimeout(()=>{const n=e;t.parentNode&&t.parentNode[n(524)](t)},300),this[e(522)]&&console.log(e(470))}}function Kt(){const t=["mouseleave","23856FKlHxB","): ","title","debug","imageUrl","removeChild","1560055LbHqfB","#6b7280","advertisementEventTracker","⚠️ No interstitial advertisements available for slot: ","\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background: rgba(0, 0, 0, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 10000;\n animation: fadeIn 0.3s ease-out;\n ","2439CBWWss","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","appendChild","addEventListener","className","cssText","button","\n position: relative;\n max-width: 90vw;\n max-height: 90vh;\n background: white;\n border-radius: 12px;\n padding: 24px;\n box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);\n animation: slideUp 0.3s ease-out;\n overflow: auto;\n ","684LTWtyS","head","11dfLMCp","6847450icqsZJ","🖼️ Interstitial ad closed","target","Get Started","animation","1705488PTpvyF","textContent","warn","_id","#f3f4f6","3072013qqPBlH","Escape","closeInterstitial","Interstitial click tracked for ad: ","keydown","🖼️ Interstitial ad rendered: ","log","getElementById","\n @keyframes fadeIn {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n @keyframes slideUp {\n from { \n opacity: 0;\n transform: translateY(20px);\n }\n to { \n opacity: 1;\n transform: translateY(0);\n }\n }\n ","🖼️ Interstitial ad rendered (first of ","getDefaultHeight","color","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","linkUrl","mouseenter","img","style","backgroundColor","src","adstage-interstitial-content","#2563eb","\n position: absolute;\n top: 12px;\n right: 12px;\n width: 32px;\n height: 32px;\n border: none;\n background: #f3f4f6;\n color: #6b7280;\n font-size: 20px;\n font-weight: bold;\n border-radius: 50%;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n transition: all 0.2s;\n ","div","Interstitial Advertisement","12kseTDl","adstage-interstitial-styles","key","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","click","fadeOut 0.3s ease-out forwards","#3b82f6","createElement","body","#374151","renderAdElement","containerId","666GvZmab","adstage-interstitial-overlay","253033RSMwjD"];return(Kt=function(){return t})()}const Wt=Yt;function Yt(t,e){const n=Xt();return(Yt=function(t,e){return n[t-=411]})(t,e)}function Xt(){const t=["4ujLGBj","renderAd","48016CHyuqO","INTERSTITIAL","1px dashed #ccc","display","renderAdElement","advertisement","debug","naturalHeight","8px","data-adstage-ad-id","videoUrl","advertisementEventTracker","config","width","calculateOptimalContainerSize","No renderer found for ad type: ","style","348663XzBfmv","createPlaceholder","textContent","size","renderOptimizedBannerImage","86610nTZRGN","[AdRenderer] ","block","27rUGBvA","🏭 AdRenderer factory initialized with ","className","renderFallback","height","div","562593joetHf","imageUrl","743869IpFdFW","renderMultipleAds","getDefaultHeightForAdType","adstage-ad adstage-","adType","isLoaded","BANNER","img","border","calculateAdSize","renderers","420414JMCIao","createAdElement","onload"," renderers","TEXT","src","getDefaultHeight","377945WhPjLm","⚠️ Container optimization is only supported for BANNER ads, got: ","set","log","renderAdSlider","setAttribute","backgroundColor","get","padding","VIDEO","onerror","appendChild","cover","optimizeContainerForBannerAds","100%","initializeRenderers","renderOptimizedBannerImage is only supported for BANNER ads","createElement","objectFit","getRenderer"];return(Xt=function(){return t})()}!function(){const t=Yt,e=Xt();for(;;)try{if(185912===parseInt(t(470))/1+parseInt(t(424))/2+parseInt(t(411))/3*(-parseInt(t(451))/4)+-parseInt(t(431))/5+parseInt(t(475))/6+-parseInt(t(413))/7+parseInt(t(453))/8*(-parseInt(t(478))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class qt{constructor(t=!1,e){const n=Yt;this[n(423)]=new Map,this[n(459)]=t,this[n(464)]=e||null,this[n(446)]()}initializeRenderers(){const t=Yt;this[t(423)][t(433)](i[t(419)],new bt(this[t(459)],this.advertisementEventTracker)),this[t(423)][t(433)](i[t(428)],new _t(this[t(459)],this[t(464)])),this.renderers[t(433)](i[t(440)],new zt(this.debug,this[t(464)])),this[t(423)][t(433)](i.NATIVE,new Ft(this[t(459)],this[t(464)])),this[t(423)][t(433)](i[t(454)],new Ht(this[t(459)],this[t(464)])),this[t(459)]&&console[t(434)](t(479)+this[t(423)][t(473)]+t(427))}[Wt(425)](t,e){const n=Wt,r=this[n(450)](t[n(417)]),s=document[n(448)](n(483));s[n(480)]=n(416)+String(t[n(417)]).toLowerCase(),s[n(436)](n(462),e._id),s.setAttribute("data-adstage-slot-id",t.id);const{width:o,height:a}=r.calculateAdSize(s,t[n(465)]||{},e);switch(s[n(469)][n(466)]=o,s[n(469)][n(482)]=a,s[n(469)][n(456)]=n(477),t.adType){case i[n(419)]:if(e.imageUrl){const t=document[n(448)](n(420));t.src=e[n(412)],t[n(469)][n(466)]=n(445),t.style.height=n(445),t[n(469)][n(449)]=n(443),s[n(442)](t)}break;case i[n(440)]:if(e[n(463)]){const t=document[n(448)]("video");t.src=e[n(463)],t[n(469)][n(466)]=n(445),t.style[n(482)]="100%",s[n(442)](t)}break;case i[n(428)]:if(e.textContent){const t=document.createElement(n(483));t[n(472)]=e[n(472)]||"",t[n(469)][n(439)]=n(461),s.appendChild(t)}break;default:s[n(469)][n(421)]=n(455),s[n(469)][n(437)]="#f9f9f9",s[n(472)]=t[n(417)]+" Ad"}return s}[Wt(450)](t){const e=Wt,n=this.renderers[e(438)](t);if(!n)throw new Error(e(468)+t);return n}[Wt(471)](t,e,n,r,s){this[Wt(450)](n).createPlaceholder(t,e,r,s)}async[Wt(444)](t,e){const n=Wt;if(t[n(417)]!==i[n(419)])return void(this.debug&&console.warn(n(432)+t[n(417)]));const r=this[n(450)](i[n(419)]);await r.optimizeContainerForBannerAds(t,e)}async[Wt(435)](t,e){const n=Wt,r=this.getRenderer(t[n(417)]);await r[n(414)](t,e)}async[Wt(452)](t){const e=Wt;if(!t.advertisement)throw new Error("No advertisement to render");const n=this[e(450)](t.adType);await n.renderAdElement(t,t[e(458)]),t[e(418)]=!0}async[Wt(457)](t,e){const n=Wt,r=this[n(450)](t[n(417)]);await r[n(457)](t,e)}[Wt(481)](t){const e=Wt;this[e(450)](t[e(417)])[e(481)](t)}[Wt(415)](t){const e=Wt;return this.getRenderer(t)[e(430)]()}[Wt(422)](t,e,n,r){const s=Wt;return this[s(450)](e)[s(422)](t,n,r)}loadImageDimensions(t){return new Promise((e,n)=>{const r=Yt,s=new Image;s[r(426)]=()=>{const t=r;e({width:s.naturalWidth,height:s[t(460)]})},s[r(441)]=()=>{n(new Error("Failed to load image: "+t))},s[r(429)]=t})}async renderOptimizedBannerImage(t,e,n){const r=Wt;if(n.adType!==i[r(419)])throw new Error(r(447));const s=this[r(450)](i[r(419)]);return await s[r(474)](t,e,n)}async[Wt(467)](t,e,n){const r=Wt;if(n!==i[r(419)]){const t=this[r(450)](n);return{width:r(445),height:t[r(430)](),aspectRatio:16/9}}const s=this[r(450)](i[r(419)]);return await s[r(467)](t,e)}log(t,...e){const n=Wt;this.debug&&console.log(n(476)+t,...e)}}const Gt=Qt;function Jt(){const t=["createAdInternal","374097omRblH","❌ Failed to find element for viewability tracking: ","create","autoSlide","innerHTML","renderAdElement","disconnect","toString","slideInterval","random","from","NATIVE","advertisements","customControls","🗑️ Ad slot destroyed: ",". Retrying in ","optimizeContainerForBannerAds","onClick","destroy","width","values","default","createAd","843689CbkXtt","deviceType","renderFallback","1828287MCODyj","🚫 Advertisement not found with ID: "," ads)","adRenderer","📊 Fetched ","getConfig","getAllSlots","loadAdContentInBackground","Container not found after ","style","100%","2lkXKsN","get","config","Failed to fetch ad data: ","🧹 Auto-cleanup: slot ","getBaseUrl"," ads for type: ","createPlaceholder","containerId","interstitial","290vjyyRa","slots","log","handleViewableEvent","refreshAdSlot","_isReady","New advertisement viewable tracked for slot:","INTERSTITIAL","🔍 Auto-cleanup MutationObserver enabled","Ads module not initialized. Call AdStage.init() first.","_config","handleRemovedElement","then","append","📊 Advertisement event tracking enabled for slot: ","viewabilityTracker","status","Ad slot not found: ","muted","10vnLrwH","advertisement","removedNodes","🎠 Slider will handle VIEWABLE events for ","ensureReady","error","mutationObserver","language","data-adstage-slot-id","getSlotById","height","ms... (attempt ","refresh","getAttribute","startSimpleViewabilityTracking","523056mYldGX"," (attempt ","autoDestroy","106654WQlCYB","setAttribute","observe","init","❌ Failed to load ad for slot: ","📊 Fetched specific ad with ID: ","getElementById","Auto-cleanup failed for slot ","createAdWithRetry","auto","text","adType","autoplay","substr","167153pyLwWr","ELEMENT_NODE","BANNER","48QthBpX","querySelectorAll","list","🎯 Ads module initialized (sync mode) with auto-cleanup","set","destroyModule","loop","length","10768XBMxYI","fetchAdData","json","API key not configured","VIDEO","debug","Failed to refresh ad slot: ","body","native","forEach","trackAdvertisementEvent","renderAdSlider","video","auto-","adId","isLoaded","country","TEXT","❌ Failed to track viewable impression:","warn","now","banner","_id","apiKey","advertisementEventTracker","setupAutoCleanup","delete","isReady","clear","hideControls","🔄 Retrying viewability tracking for slot: ","Container not found: ","✅ Simple viewable impression tracked for ad ","undefined"];return(Jt=function(){return t})()}function Qt(t,e){const n=Jt();return(Qt=function(t,e){return n[t-=138]})(t,e)}!function(){const t=Qt,e=Jt();for(;;)try{if(103835===-parseInt(t(189))/1*(parseInt(t(236))/2)+parseInt(t(152))/3+parseInt(t(261))/4*(parseInt(t(199))/5)+-parseInt(t(233))/6+parseInt(t(250))/7*(parseInt(t(253))/8)+-parseInt(t(178))/9+parseInt(t(218))/10*(parseInt(t(175))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Zt{constructor(){const t=Qt;this._isReady=!1,this[t(209)]=null,this[t(200)]=new Map,this[t(141)]=null,this[t(181)]=null,this[t(224)]=null}[Gt(239)](t){const e=Gt;this._config=t,this[e(141)]=new O(J[e(194)](),t[e(140)],t[e(266)]||!1,this.slots),this[e(181)]=new qt(t[e(266)]||!1,this.advertisementEventTracker),this[e(142)](),this[e(204)]=!0,t[e(266)]&&console.log(e(256))}[Gt(144)](){return this[Gt(204)]}[Gt(183)](){return this[Gt(209)]}[Gt(138)](t,e){const n=Gt;this[n(222)]();const r={width:e?.width||"100%",height:e?.[n(228)]||"auto",autoSlide:e?.[n(155)]||!1,slideInterval:e?.[n(160)]||5e3,onClick:e?.[n(169)],adId:e?.[n(275)],language:e?.language,deviceType:e?.[n(176)],country:e?.[n(277)]};return this.createAd(t,i[n(252)],r)}[Gt(246)](t,e){const n=Gt;this[n(222)]();const r={maxLines:e?.maxLines||3,style:e?.[n(187)]||n(173),onClick:e?.[n(169)],adId:e?.[n(275)],language:e?.[n(225)],deviceType:e?.[n(176)],country:e?.country};return this.createAd(t,i.TEXT,r)}[Gt(273)](t,e){const n=Gt;this[n(222)]();const r={width:e?.[n(171)]||640,height:e?.[n(228)]||360,autoplay:void 0===e?.[n(248)]||e.autoplay,muted:void 0===e?.[n(217)]||e[n(217)],loop:void 0===e?.[n(259)]||e[n(259)],playsinline:!1!==e?.playsinline,controls:void 0!==e?.controls&&e.controls,hideControls:e?.[n(146)]||!1,customControls:e?.[n(165)],autoSlide:!1,maxAds:1,onClick:e?.onClick,...e?.[n(275)]&&{adId:e[n(275)]}};return this.createAd(t,i[n(265)],r)}[Gt(269)](t,e){const n=Gt;return this[n(222)](),this[n(174)](t,i[n(163)],e||{})}[Gt(198)](t,e){const n=Gt;return this[n(222)](),this[n(174)](t,i[n(206)],e||{})}[Gt(230)](t){const e=Gt;this[e(222)]();const n=this[e(200)].get(t);if(!n)throw new Error(e(216)+t);this[e(203)](n),this._config?.[e(266)]&&console[e(201)]("🔄 Ad slot refreshed: "+t)}[Gt(170)](t){const e=Gt;this[e(222)]();const n=this[e(200)][e(190)](t);if(!n)return void(this[e(209)]?.[e(266)]&&console[e(201)]("🔍 Ad slot already cleaned up: "+t));n.viewabilityTracker&&n[e(214)][e(170)]();const r=document[e(242)](n[e(197)]);r&&(r[e(156)]=""),this[e(200)][e(143)](t),this._config?.[e(266)]&&console[e(201)](e(166)+t)}[Gt(184)](){const t=Gt;return this[t(222)](),Array[t(162)](this[t(200)][t(172)]())}[Gt(227)](t){const e=Gt;return this[e(222)](),this[e(200)][e(190)](t)||null}createAd(t,e,n){const r=Gt;if(!this[r(209)]?.[r(140)])throw new Error("API key not configured");const s="adstage-"+e+"-"+Date[r(281)]()+"-"+Math[r(161)]()[r(159)](36)[r(249)](2,9);return this[r(244)](t,e,n,s,0),s}async createAdWithRetry(t,e,n,r,s){const i=Gt,o=[0,50,100,200,500];let a,c=null;if("string"==typeof t){if(a=t,c=document[i(242)](t),!c)return s<4?(this._config?.debug&&console[i(280)](i(148)+t+i(167)+o[s+1]+i(229)+(s+1)+"/5)"),void setTimeout(()=>{this[i(244)](t,e,n,r,s+1)},o[s+1])):void console[i(223)](i(186)+5+" attempts: "+t)}else c=t,a=c.id||i(274)+r,!c.id&&(c.id=a);try{this[i(151)](a,e,n,r,c)}catch(t){console[i(223)]("광고 생성 중 오류 발생:",t)}}[Gt(151)](t,e,n,r,s){const o=Gt;s[o(237)](o(226),r),this[o(181)]?.[o(196)](s,r,e,n,this[o(209)]);const a={id:r,containerId:t,adType:e,width:n[o(171)]||o(188),height:n[o(228)]||(e===i[o(278)]?o(245):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[o(262)](e,n)[o(211)](t=>t[0]||null),render:t=>this[o(181)]?.[o(157)](a,t),refresh:async()=>this[o(203)](a),destroy:()=>this[o(170)](r)};this[o(200)][o(257)](r,a),this.loadAdContentInBackground(a),this.advertisementEventTracker&&this[o(209)]?.debug&&console[o(201)](o(213)+r)}async[Gt(185)](t){const e=Gt;try{const n=await this[e(262)](t[e(247)],t[e(191)]);if(!n||0===n[e(260)])return void this[e(181)]?.[e(177)](t);t[e(247)]===i[e(252)]&&n[e(260)]>0&&await(this[e(181)]?.[e(168)](t,n)),n[e(260)]>1||t[e(191)]?.[e(155)]?(await(this[e(181)]?.[e(272)](t,n)),this[e(209)]?.[e(266)]&&console[e(201)](e(221)+n[e(260)]+" ads automatically")):(t.advertisement=n[0],await(this[e(181)]?.[e(157)](t,n[0])),this[e(232)](t,n[0])),t[e(276)]=!0,this[e(209)]?.debug&&console[e(201)]("✅ Ad loaded for slot: "+t.id+" ("+n.length+e(180))}catch(n){console[e(223)](e(240)+t.id,n),this[e(181)]?.[e(177)](t)}}[Gt(232)](t,e){const n=(r=0)=>{const s=Qt,i=document[s(242)](t.id);if(!i)return void(r<5?(setTimeout(()=>n(r+1),300),this._config?.[s(266)]&&console.log(s(147)+t.id+s(234)+(r+1)+")")):console[s(280)](s(153)+t.id));const o=new j(i,async()=>{const n=s;await this[n(202)](e,t)});t[s(214)]=o,this._config?.debug&&console.log("🎯 Simple viewability tracking started for slot: "+t.id+" (element found)")};n()}async[Gt(202)](t,e){const n=Gt;try{this[n(141)]&&(await this[n(141)][n(271)](t[n(139)],e.id,u.VIEWABLE),this._config?.[n(266)]&&console[n(201)](n(149)+t._id))}catch(t){console[n(223)](n(279),t)}}async[Gt(262)](t,e){const n=Gt;if(!this[n(209)]?.[n(140)])throw new Error(n(264));if(e[n(275)]){const t=""+J.advertisements.detail(e[n(275)]),r=await fetch(t,{method:"GET",headers:M[n(154)](this[n(209)][n(140)])});if(!r.ok){if(404===r[n(215)])return console[n(280)](n(179)+e.adId),[];throw new Error("Failed to fetch ad data: "+r[n(215)])}const s=await r[n(263)]();return this._config?.debug&&console[n(201)](n(241)+e.adId,s),[s]}const r=new URLSearchParams;r[n(212)](n(247),t),e[n(225)]&&r[n(212)]("language",e.language),e[n(176)]&&r[n(212)](n(176),e[n(176)]),e.country&&r[n(212)](n(277),e.country);const s=J[n(164)][n(255)]()+"?"+r[n(159)](),i=await fetch(s,{method:"GET",headers:M[n(154)](this[n(209)][n(140)])});if(!i.ok)throw new Error(n(192)+i.status);const o=(await i.json())[n(164)]||[];return this[n(209)]?.[n(266)]&&console[n(201)](n(182)+o[n(260)]+n(195)+t+", filters:",{language:e[n(225)],deviceType:e[n(176)],country:e[n(277)]}),o}async[Gt(203)](t){const e=Gt;try{const n=await this[e(262)](t.adType,t[e(191)]||{});n&&n.length>0&&(t[e(219)]=n[0],await(this.adRenderer?.renderAd(t)),this[e(141)]&&console[e(201)](e(205),t.id))}catch(n){console[e(223)](e(267)+t.id,n)}}[Gt(222)](){const t=Gt;if(!this[t(204)])throw new Error(t(208))}[Gt(142)](){const t=Gt;typeof window!==t(150)&&typeof document!==t(150)&&(this[t(224)]&&this[t(224)][t(158)](),this.mutationObserver=new MutationObserver(e=>{const n=t;e[n(270)](t=>{const e=n;t[e(220)].forEach(t=>{const n=e;t.nodeType===Node[n(251)]&&this[n(210)](t)})})}),this[t(224)][t(238)](document[t(268)],{childList:!0,subtree:!0}),this._config?.[t(266)]&&console[t(201)](t(207)))}handleRemovedElement(t){const e=Gt,n=t[e(231)](e(226));if(n)return void this[e(235)](n);t[e(254)]("[data-adstage-slot-id]")[e(270)](t=>{const n=e,r=t.getAttribute(n(226));r&&this[n(235)](r)})}[Gt(235)](t){const e=Gt,n=this[e(200)][e(190)](t);if(n)try{n[e(214)]&&n.viewabilityTracker[e(170)](),this[e(200)][e(143)](t),this._config?.[e(266)]&&console.log(e(193)+t+" removed")}catch(n){this._config?.[e(266)]&&console.warn(e(243)+t+":",n)}}[Gt(258)](){const t=Gt,e=this[t(209)]?.[t(266)];this[t(224)]&&(this[t(224)][t(158)](),this[t(224)]=null),this.slots[t(145)](),this.advertisementEventTracker=null,this.adRenderer=null,this[t(204)]=!1,this[t(209)]=null,e&&console[t(201)]("🗑️ Ads module destroyed")}}function $t(t,e){var n=ee();return($t=function(t,e){return n[t-=383]})(t,e)}var te=$t;function ee(){var t=["getBaseUrl","7350EYFEWW","modules","943506QTdLAd","includes","Config module not initialized","3785tUAwbf","baseUrl","log","42847eDZKPB","2051361arRxMh","_config","isReady","setBaseUrl","getApiEndpoint","12jMAvCp","5989137LjIMRP","13252499aHsDGq","apiKey","getEnabledModules","78051NRvYvl","debug","🔄 Config updated","ads","1WOgBqx","_organizationInfo","config","20BZMlgl","20rWIEBN","getConfig","development","104WYnJmA","updateConfig","API key not available","_isReady"];return(ee=function(){return t})()}!function(){for(var t=$t,e=ee();;)try{if(525754===-parseInt(t(391))/1*(-parseInt(t(405))/2)+parseInt(t(387))/3*(parseInt(t(395))/4)+parseInt(t(408))/5*(-parseInt(t(403))/6)+parseInt(t(411))/7*(-parseInt(t(398))/8)+-parseInt(t(412))/9*(-parseInt(t(394))/10)+-parseInt(t(383))/11+-parseInt(t(417))/12*(-parseInt(t(384))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{constructor(){var t=$t;this._isReady=!1,this[t(413)]=null,this._organizationInfo=null}init(t){var e=$t;this[e(413)]={timeout:3e4,debug:!1,modules:[e(390),"events",e(393)],...t},t[e(409)]&&J[e(415)](t.baseUrl),this[e(401)]=!0,t[e(388)]&&console.log("✅ Config module initialized (sync mode)",{modules:this._config[e(404)],endpoint:J[e(402)](),mode:e(397)})}[te(414)](){return this[te(401)]}[te(396)](){return this._config}getOrganizationInfo(){return this[te(392)]}[te(416)](){return J[te(402)]()}isDebugMode(){var t=te;return this[t(413)]?.debug||!1}[te(386)](){var t=te;return this[t(413)]?.[t(404)]||[]}isModuleEnabled(t){var e=te;return this[e(386)]()[e(406)](t)}[te(399)](t){var e=te;if(!this[e(413)])throw new Error(e(407));this[e(413)]={...this._config,...t},this.isDebugMode()&&console[e(410)](e(389),t)}getApiHeaders(){var t=te;if(!this[t(413)]?.[t(385)])throw new Error(t(400));return M.create(this._config[t(385)])}}function re(t,e){const n=oe();return(re=function(t,e){return n[t-=179]})(t,e)}const se=re;!function(){const t=re,e=oe();for(;;)try{if(238041===parseInt(t(179))/1*(parseInt(t(203))/2)+parseInt(t(216))/3+-parseInt(t(206))/4*(parseInt(t(201))/5)+-parseInt(t(214))/6+parseInt(t(210))/7*(parseInt(t(181))/8)+-parseInt(t(204))/9+parseInt(t(199))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ie{static getDeviceInfo(){const t=re;return{...ie[t(209)](),...ie[t(195)]}}static[se(209)](){const t=se;if(!k[t(190)]())return{category:t(191),platform:"SSR",model:t(187),osVersion:t(187)};const e=navigator[t(193)][t(211)]();let n="desktop";/tablet|ipad/[t(202)](e)?n=t(208):D[t(194)]()&&(n=t(184));const r=D[t(196)]();return{category:n,platform:ie[t(200)](r),model:navigator[t(182)],osVersion:navigator[t(182)],deviceId:D.generateDeviceId()}}static[se(215)](t){ie[se(195)]={...ie._userProvidedDeviceInfo,...t}}static[se(213)](t,e){ie._userProvidedDeviceInfo[t]=e}static[se(180)](){ie[se(195)]={}}static[se(183)](){return{...ie._userProvidedDeviceInfo}}static[se(200)](t){const e=se;switch(t){case e(185):return"iOS";case e(207):return e(186);case"web":return e(212);case"desktop":return e(205);default:return"Unknown"}}static getDetailedInfo(){const t=se;if(!k[t(190)]())return{userAgent:t(187),language:"ko-KR",platform:t(187),cookieEnabled:!1,onLine:!0,screenResolution:t(197),viewportSize:"0x0"};const e=k.getViewportInfo();return{userAgent:navigator[t(193)],language:navigator[t(198)]||t(217),platform:navigator[t(182)],cookieEnabled:navigator[t(189)],onLine:navigator.onLine,screenResolution:screen[t(192)]+"x"+screen[t(188)],viewportSize:e[t(192)]+"x"+e[t(188)]}}}function oe(){const t=["Desktop Web","268cqCCgc","android","tablet","getAutoDetectedDeviceInfo","102739UsRUFC","toLowerCase","Mobile Web","setDeviceProperty","2696982iztDya","setDeviceInfo","234408HtknFw","ko-KR","2bUyhdC","clearDeviceInfo","136TfEynS","platform","getUserDeviceInfo","mobile","ios","Android","SSR","height","cookieEnabled","isBrowser","other","width","userAgent","isMobile","_userProvidedDeviceInfo","getPlatform","0x0","language","6958740QxDTYl","mapPlatformForEvents","32950wDGOJs","test","177274XAVsPQ","645525CfqBJa"];return(oe=function(){return t})()}function ae(t,e){const n=ce();return(ae=function(t,e){return n[t-=267]})(t,e)}function ce(){const t=["5uONTnU","12002157eZTWIZ","language","estimateLocation","496596iVaVcI","resolvedOptions","split","1ScOjmv","isBrowser","getBaseUserInfo","13896nKzLNl","1306068VZSnfH","getUserInfo","3527664XsBQlg","ko-KR","10dftqen","setUserProperty","timeZone","5627844sllcDI","517mtJSjd","_userProperties","extractCountryFromLanguage","1085vppHHi","956702JeNQDA","setUserProperties","getCurrentUserProperties"];return(ce=function(){return t})()}ie[se(195)]={};const de=ae;!function(){const t=ae,e=ce();for(;;)try{if(700589===-parseInt(t(276))/1*(-parseInt(t(292))/2)+parseInt(t(282))/3+-parseInt(t(280))/4*(-parseInt(t(269))/5)+-parseInt(t(287))/6+-parseInt(t(291))/7*(-parseInt(t(279))/8)+-parseInt(t(270))/9*(-parseInt(t(284))/10)+parseInt(t(288))/11*(-parseInt(t(273))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[de(281)](){return{...le[de(278)](),...le._userProperties}}static[de(278)](){const t=de;if(!k[t(277)]())return{language:"ko-KR",country:"KR"};const e=navigator[t(271)]||t(283);return{language:e,country:le[t(290)](e)}}static[de(290)](t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t[de(275)]("-")[0]]||"KR"}static[de(267)](t){le[de(289)]={...le._userProperties,...t}}static[de(285)](t,e){le._userProperties[t]=e}static clearUserProperties(){le[de(289)]={}}static[de(268)](){return{...le[de(289)]}}static[de(272)](){const t=de;if(!k[t(277)]())return{timezone:"UTC",estimatedCountry:"KR"};const e=Intl.DateTimeFormat()[t(274)]()[t(286)];return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function ue(t,e){const n=fe();return(ue=function(t,e){return n[t-=377]})(t,e)}le[de(289)]={};const pe=ue;!function(){const t=ue,e=fe();for(;;)try{if(701944===-parseInt(t(398))/1+-parseInt(t(400))/2+parseInt(t(441))/3*(parseInt(t(411))/4)+parseInt(t(422))/5+-parseInt(t(413))/6*(parseInt(t(396))/7)+parseInt(t(427))/8*(-parseInt(t(395))/9)+parseInt(t(414))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class he{static[pe(410)](){const t=pe;if(typeof window===t(389))return null;const e=new URLSearchParams(window[t(387)][t(426)]),n={};let r=!1;const s=e[t(403)](t(436));if(s)try{const e=decodeURIComponent(s),i=new URLSearchParams(e);for(const e of he[t(390)]){const s=i[t(403)](e);s&&(n[e]=s,r=!0)}i[t(403)](t(419))===t(412)&&(r=!0)}catch(e){console[t(402)]("Failed to parse adstage_referrer:",e)}for(const s of he[t(390)]){if(n[s])continue;const i=e[t(403)](s);i&&(n[s]=i,r=!0)}return r?(n.channel||(n[t(394)]?n[t(421)]="google.ads":n[t(409)]?n[t(421)]=t(416):n[t(381)]?n[t(421)]=t(437):n.nclid?n[t(421)]="naver.searchad":n[t(438)]?n[t(421)]=t(392):n[t(443)]?n.channel=t(382):n.twclid&&(n.channel=t(379))),he[t(405)](n),n):null}static[pe(405)](t){const e=pe;if(typeof window!==e(389))try{const n={...he.get(),...t},r=JSON.stringify(n);try{sessionStorage[e(406)](he[e(446)],r)}catch(t){}try{localStorage[e(406)](he[e(446)],r)}catch(t){}}catch(t){console.warn(e(425),t)}}static get(){const t=pe;if(typeof window===t(389))return null;try{const e=sessionStorage?.[t(445)](he[t(446)]);if(e)return JSON[t(388)](e)}catch(t){}try{const e=localStorage?.getItem(he[t(446)]);if(e)return JSON[t(388)](e)}catch(t){}return null}static[pe(391)](){const t=pe;if("undefined"!=typeof window){try{sessionStorage?.[t(393)](he.STORAGE_KEY)}catch(t){}try{localStorage?.[t(393)](he[t(446)])}catch(t){}}}static[pe(432)](){const t=pe,e=he.get();return null!==e&&Object[t(401)](e)[t(377)]>0}static[pe(417)](){const t=pe,e=he[t(403)]();return!!e&&he[t(429)].some(t=>e[t])}static[pe(439)](){const t=pe;if(typeof window===t(389))return!1;const e=he[t(403)]();if(!e||!he.hasClickId())return!1;const n=e[t(394)]||e[t(409)]||e[t(381)]||e[t(434)]||e[t(438)]||e[t(443)]||e[t(397)];if(!n)return!1;return n!==sessionStorage[t(445)](t(433))&&(sessionStorage.setItem("adstage_last_click_id",n),!0)}static[pe(430)](){const t=pe;"undefined"!=typeof window&&sessionStorage[t(406)](t(440),t(412))}static[pe(435)](){const t=pe;return typeof window!==t(389)&&sessionStorage[t(445)](t(440))===t(412)}static[pe(444)](){const t=pe,e=he[t(403)]();if(!e)return null;const n={};return e[t(394)]&&(n[t(394)]=e.gclid),e[t(409)]&&(n[t(409)]=e.fbclid),e[t(381)]&&(n.ttclid=e[t(381)]),e[t(434)]&&(n.nclid=e[t(434)]),e[t(421)]&&(n[t(421)]=e[t(421)]),e[t(378)]&&(n[t(378)]=e[t(378)]),e[t(399)]&&(n[t(383)]=e.campaign_id),e[t(418)]&&(n[t(380)]=e.ad_group),e[t(407)]&&(n[t(442)]=e.ad_group_id),e[t(408)]&&(n[t(385)]=e[t(408)]),e[t(431)]&&(n[t(386)]=e[t(431)]),e.term&&(n.term=e[t(404)]),e[t(415)]&&(n[t(415)]=e.utm_source),e[t(420)]&&(n[t(420)]=e[t(420)]),e[t(428)]&&(n.utm_campaign=e.utm_campaign),e[t(423)]&&(n[t(423)]=e[t(423)]),e[t(384)]&&(n.utm_term=e[t(384)]),Object.keys(n)[t(377)]>0?n:null}}function fe(){const t=["fbclid","captureFromUrl","568784EAxfMM","true","1267548mIZKZR","27517980BjpJzw","utm_source","meta.ads","hasClickId","ad_group","adstage","utm_medium","channel","374700Ymtzzh","utm_content","CAMPAIGN_KEYS","Failed to store tracking params:","search","520QbUerK","utm_campaign","CLICK_ID_KEYS","markClickEventSent","creative_id","hasParams","adstage_last_click_id","nclid","isClickEventSent","adstage_referrer","tiktok.ads","liclid","shouldSendClickEvent","adstage_click_event_sent","27prnHAw","adGroupId","msclkid","toAttributionObject","getItem","STORAGE_KEY","length","campaign","twitter.ads","adGroup","ttclid","microsoft.ads","campaignId","utm_term","adCreative","creativeId","location","parse","undefined","ALL_KEYS","clear","linkedin.ads","removeItem","gclid","172791WWajRK","21WVnLfy","twclid","1126374tuxVsO","campaign_id","792950fZPCvC","keys","warn","get","term","store","setItem","ad_group_id","ad_creative"];return(fe=function(){return t})()}he.STORAGE_KEY="adstage_tracking_params",he[pe(429)]=[pe(394),pe(409),pe(381),pe(434),pe(438),pe(443),pe(397)],he[pe(424)]=["channel",pe(378),"campaign_id",pe(418),"ad_group_id",pe(408),pe(431),pe(404)],he.UTM_KEYS=[pe(415),pe(420),pe(428),pe(423),pe(384)],he[pe(390)]=[...he.CLICK_ID_KEYS,...he[pe(424)],...he.UTM_KEYS];const ge=Ie;function me(){const t=["208ISAAZs","Attribution registration failed: ","25524pEuScv","getUserDeviceInfo","status","📊 Attribution included:","stringify","registerAttribution","93QqSxzh","getUserInfo","API key not configured for event tracking.","getAttributionId","Event tracking failed: ","setUserProperties","📊 Events module initialized","create","apiKey","getConfig","attributionId","📱 User provided device info cleared","setItem","setDeviceProperty","sendAttributionToServer","error","getDeviceInfo","log","undefined","getUserProperties","warn","init","10ZwyMfM","📡 Attribution request URL:","clearDeviceInfo","sendEventToServer","❌ Failed to track event:","getItem","217150FHbgXr","📱 Device property set:","isReady","adstage_attribution_id","_isReady","2369015eXTagb","text","1805097lpcHlu","🔑 Request headers:","getCurrentUserProperties","⏭️ No tracking parameters found, skipping attribution registration","statusText","_config","track","213183nYZpTd","API key not configured for attribution registration.","length","6EnsBpr","❌ API Error Response:","json","setDeviceInfo","application/json","👤 User properties set:","531470WshhMa","debug","events","Events module not initialized. Call AdStage.init() first.","11648760Yzjoag","keys","5TPkuQt","POST"];return(me=function(){return t})()}function Ie(t,e){const n=me();return(Ie=function(t,e){return n[t-=106]})(t,e)}!function(){const t=Ie,e=me();for(;;)try{if(332990===parseInt(t(129))/1*(parseInt(t(167))/2)+parseInt(t(139))/3*(-parseInt(t(133))/4)+parseInt(t(123))/5*(parseInt(t(117))/6)+-parseInt(t(107))/7+parseInt(t(131))/8*(-parseInt(t(114))/9)+parseInt(t(161))/10*(-parseInt(t(172))/11)+parseInt(t(127))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ve{constructor(){this[Ie(171)]=!1,this._config=null}[ge(160)](t){const e=ge;this[e(112)]=t,this[e(171)]=!0,t.debug&&console[e(156)](e(145))}[ge(169)](){return this[ge(171)]}[ge(148)](){return this[ge(112)]}[ge(144)](t){const e=ge;le[e(144)](t),this[e(112)]?.[e(124)]&&console[e(156)](e(122),t)}[ge(158)](){return le.getCurrentUserProperties()}[ge(120)](t){const e=ge;ie.setDeviceInfo(t),this[e(112)]?.[e(124)]&&console[e(156)]("📱 Device info set:",t)}[ge(152)](t,e){const n=ge;ie[n(152)](t,e),this[n(112)]?.[n(124)]&&console[n(156)](n(168),t,e)}[ge(163)](){const t=ge;ie[t(163)](),this[t(112)]?.[t(124)]&&console[t(156)](t(150))}[ge(134)](){return ie[ge(134)]()}[ge(155)](){return ie[ge(155)]()}[ge(140)](){return le.getUserInfo()}[ge(109)](){return le[ge(109)]()}async[ge(113)](t,e){const n=ge;if(this[n(171)])if(this[n(112)]?.apiKey)try{const r=this[n(142)]();if(r){const s={eventName:t,sdkVersion:C(),device:ie[n(155)](),user:le[n(140)](),attributionId:r,params:e||{}};return await this[n(164)](s),void(this._config[n(124)]&&console.log("✅ Event tracked with attribution ID:",t,r))}const s=he.toAttributionObject(),i={eventName:t,sdkVersion:C(),device:ie[n(155)](),user:le[n(140)](),...s&&{attribution:s},params:e||{}};await this.sendEventToServer(i),this[n(112)][n(124)]&&(console[n(156)]("✅ Event tracked:",t,e),s&&console[n(156)](n(136),s))}catch(r){console.error(n(165),r),this[n(112)].debug&&console.error("Event data:",{eventName:t,properties:e})}else console[n(159)](n(141));else console[n(159)](n(126))}async registerAttribution(t){const e=ge;if(!this[e(171)])return console.warn("Events module not initialized. Call AdStage.init() first."),null;if(!this._config?.[e(147)])return console[e(159)](e(115)),null;try{const n=he.get();if(!n||0===Object[e(128)](n)[e(116)])return this[e(112)][e(124)]&&console[e(156)](e(110)),null;const r=await this[e(153)]({deviceId:t,referrerParams:n});if(this[e(112)].debug&&console[e(156)]("✅ Attribution registered:",r),r[e(149)]){try{localStorage.setItem(e(170),r[e(149)])}catch(t){}try{sessionStorage[e(151)](e(170),r[e(149)])}catch(t){}}return r}catch(t){return console[e(154)]("❌ Failed to register attribution:",t),null}}[ge(142)](){const t=ge;if(typeof window===t(157))return null;try{const e=sessionStorage[t(166)](t(170));if(e)return e}catch(t){}try{return localStorage[t(166)]("adstage_attribution_id")}catch(t){}return null}async trackWithAttributionId(t,e){return this[ge(113)](t,e)}async[ge(164)](t){const e=ge,n={...M[e(146)](this._config.apiKey),"Content-Type":e(121)};this[e(112)]?.[e(124)]&&(console.log(e(108),n),console[e(156)]("📡 Request URL:",J[e(125)][e(113)]()),console.log("📦 Request body:",t));const r=await fetch(J[e(125)].track(),{method:e(130),headers:n,body:JSON[e(137)](t)});if(!r.ok){const t=await r[e(106)]();throw console[e(154)](e(118),t),new Error(e(143)+r[e(135)]+" "+r[e(111)])}}async[ge(153)](t){const e=ge,n={...M[e(146)](this[e(112)][e(147)]),"Content-Type":e(121)};this[e(112)]?.debug&&(console[e(156)]("🔑 Attribution request headers:",n),console[e(156)](e(162),J[e(125)][e(138)]()),console[e(156)]("📦 Attribution request body:",t));const r=await fetch(J[e(125)][e(138)](),{method:e(130),headers:n,body:JSON.stringify(t)});if(!r.ok){const t=await r[e(106)]();throw console[e(154)](e(118),t),new Error(e(132)+r[e(135)]+" "+r[e(111)])}return r[e(119)]()}}const ye=be;function be(t,e){const n=we();return(be=function(t,e){return n[t-=413]})(t,e)}function we(){const t=["replace","✅ Auto-tracked click event with tracking params:","tracking_params","243OIzywy","warn","modules","length","setBaseUrl","❌ Failed to auto-track click event:","AdStage.events accessed before initialization","🎯 Sending click event after attribution registration","getItem","✅ Attribution registered:","attributionId","34715IphKdP","AdStage not initialized. Call AdStage.init() first.","height","generateDeviceId","get","13DVXvAK","hardwareConcurrency","catch","userAgent","undefined","🔍 Should send click event:","debug","2488RdpNth","🌐 API endpoint configured:","instance","location","📊 AdStage Debug: 현재 viewable 추적 상태","650538smtrYe","init","expiresAt","registerAttribution","charCodeAt","isReady","baseUrl","width","15910728XWtQjy","campaign","web","reset","track","substring","4884OVukQE","clearAdViewable","_config","toAttributionObject","1724lPuCxp","toISOString","getInstance","channel","🔗 Using attributionId from URL (attribution_id):","log","_isInitialized","AdStage.ads accessed before initialization","...","from","apiKey","ads","toString","❌ Failed to register attribution:","4358vjNHjQ","shouldSendClickEvent","🚀 AdStage SDK initialized (sync mode)","viewableTracker","setItem","adstage_device_id","30079sBOfPj","then","2.0.0","server-","language","❌ Error in click event auto-tracking:","now","clear","function","abs","search","attribution_id",")의 viewable 추적 초기화됨","hasClickId","2434124dvAjXx","882sMEYPW","join","events","config","20XzRfRE","error","development","click"];return(we=function(){return t})()}!function(){const t=be,e=we();for(;;)try{if(816471===parseInt(t(472))/1*(-parseInt(t(440))/2)+-parseInt(t(422))/3*(-parseInt(t(426))/4)+parseInt(t(483))/5*(parseInt(t(461))/6)+parseInt(t(446))/7*(-parseInt(t(495))/8)+parseInt(t(500))/9*(-parseInt(t(465))/10)+-parseInt(t(460))/11+-parseInt(t(416))/12*(-parseInt(t(488))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ke{constructor(){const t=be;this[t(432)]=!1,this._config=null,this.config=new ne,this[t(437)]=new Zt,this[t(463)]=new ve}static[ye(501)](t){const e=ye;!ke[e(497)]&&(ke.instance=new ke);const n=ke[e(497)];if(!t[e(436)])throw new Error("API key is required for AdStage initialization");n[e(424)]={timeout:3e4,debug:!1,modules:["ads",e(463),"config"],...t},n[e(424)][e(414)]&&(J[e(476)](n[e(424)][e(414)]),t[e(494)]&&console[e(431)](e(496),n[e(424)][e(414)]));const r=n[e(424)][e(474)]||[e(437),e(463),e(464)];for(const t of r){const r=n[t];r&&typeof r[e(501)]===e(454)&&r[e(501)](n[e(424)])}if(n[e(432)]=!0,typeof window!==e(492)){const r=he.captureFromUrl();r&&t.debug&&console[e(431)]("📊 Tracking parameters captured:",r);const s=(()=>{const t=e;try{const e=new URLSearchParams(window[t(498)][t(456)]),n=new URLSearchParams((window[t(498)].hash||"")[t(469)](/^#/,""));return e[t(487)](t(457))||n[t(487)](t(457))}catch{return null}})();if(s)try{localStorage[e(444)]("adstage_attribution_id",s),t[e(494)]&&console.log(e(430),s)}catch(t){}const i=he[e(441)]();if(t[e(494)]&&(console[e(431)](e(493),i),!i&&console.log("⏭️ Skipping click event (duplicate or no click ID)")),!s&&r&&he[e(459)]()){const r=(async()=>{const r=e;try{const e=n[r(486)](),s=await n[r(463)][r(503)](e);return s&&t.debug&&console[r(431)](r(481),{attributionId:s.attributionId,channel:s[r(429)],campaign:s[r(417)],expiresAt:s[r(502)]}),s}catch(t){return console.error(r(439),t),null}})();i&&r[e(447)](r=>{const s=e;try{const e=he.get(),i=he[s(425)]();t[s(494)]&&console.log(s(479),{attributionId:r?.[s(482)],hasAttribution:!!r}),n[s(463)][s(420)](s(468),{_autoGenerated:!0,_source:s(471),_timestamp:(new Date)[s(427)](),_platform:"web"})[s(447)](()=>{const n=s;he.markClickEventSent(),t[n(494)]&&console[n(431)](n(470),{attribution:i,trackingParams:e})})[s(490)](t=>{const e=s;console[e(466)](e(477),t)})}catch(t){console[s(466)](s(451),t)}})}else i&&setTimeout(()=>{const r=e;try{const e=he[r(487)](),s=he[r(425)]();n[r(463)][r(420)]("click",{_autoGenerated:!0,_source:r(471),_timestamp:(new Date)[r(427)](),_platform:r(418)})[r(447)](()=>{const n=r;he.markClickEventSent(),t[n(494)]&&console.log(n(470),{attribution:s,trackingParams:e})})[r(490)](t=>{const e=r;console[e(466)](e(477),t)})}catch(t){console[r(466)]("❌ Error in click event auto-tracking:",t)}},100)}t.debug&&console.log(e(442),{version:e(448),modules:r,apiKey:t[e(436)][e(421)](0,8)+e(434),mode:e(467)})}static[ye(413)](){return ke.instance?._isInitialized||!1}static getConfig(){return ke.instance?._config||null}static[ye(428)](){const t=ye;if(!ke[t(497)])throw new Error(t(484));return ke.instance}static get[ye(437)](){const t=ye;try{return ke.getInstance()[t(437)]}catch(e){throw console[t(473)](t(433)),e}}static get[ye(463)](){const t=ye;try{return ke[t(428)]()[t(463)]}catch(e){throw console[t(473)](t(478)),e}}static get[ye(464)](){const t=ye;try{return ke[t(428)]()[t(464)]}catch(e){throw console[t(473)]("AdStage.config accessed before initialization"),e}}static[ye(419)](){const t=ye;ke[t(497)]&&(ke.instance._isInitialized=!1,ke[t(497)][t(424)]=null)}[ye(486)](){const t=ye;if(typeof window===t(492))return t(449)+Math.random()[t(438)](36)[t(421)](2,15);const e=localStorage[t(480)]("adstage_device_id");if(e)return e;const n=[navigator[t(491)],navigator[t(450)],screen[t(415)]+"x"+screen[t(485)],(new Date).getTimezoneOffset(),navigator[t(489)]||0][t(462)]("|");let r=0;for(let e=0;e<n[t(475)];e++){r=(r<<5)-r+n[t(504)](e),r&=r}const s="web-"+Math[t(455)](r)[t(438)](36)+"-"+Date[t(452)]()[t(438)](36);return localStorage[t(444)](t(445),s),s}}function Ee(t,e){var n=xe();return(Ee=function(t,e){return n[t-=107]})(t,e)}function Ae(t,e){var n=Ee;return ke[n(113)]()?ke.events[n(117)](t,e):(console.warn("AdStage not initialized. Call AdStage.init() first."),Promise[n(118)]())}function xe(){var t=["events","5318480qLwavH","1DrucLp","56UTTmjN","6859980IfyFSj","getUserProperties","317198voWgWe","449015klsFQD","6GEGujt","997534JysiEc","5787252AxjGtv","isReady","9592ZbzapX","setUserProperties","warn","track","resolve"];return(xe=function(){return t})()}function Se(t){var e=Ee;ke.isReady()?ke.events[e(115)](t):console[e(116)]("AdStage not initialized. Call AdStage.init() first.")}function Ce(){var t=Ee;if(ke[t(113)]())return ke[t(119)][t(107)]();console[t(116)]("AdStage not initialized. Call AdStage.init() first.")}ke[ye(494)]={clearAllViewable:()=>{const t=ye;ut[t(453)](),console[t(431)]("✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨")},clearAdViewable:(t,e)=>{const n=ye;ut[n(423)](t,e),console[n(431)]("✅ AdStage Debug: 광고 "+t+"("+e+n(458))},getViewableStatus:()=>{const t=ye;console[t(431)](t(499),{trackedCount:ut[t(443)].size,trackedItems:Array[t(435)](ut.viewableTracker)})}},function(){for(var t=Ee,e=xe();;)try{if(571446===-parseInt(t(121))/1*(-parseInt(t(111))/2)+parseInt(t(110))/3*(-parseInt(t(114))/4)+parseInt(t(109))/5+parseInt(t(112))/6+-parseInt(t(108))/7*(-parseInt(t(122))/8)+-parseInt(t(123))/9+-parseInt(t(120))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Te=e(null);function Le({children:e,config:s}){const[i,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),i&&ke.reset(),ke.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};r(()=>{s&&!i&&u(s)},[s,i]);const p={isInitialized:i,config:a,initialize:u,reset:()=>{try{ke.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Te.Provider,{value:p,children:e})}function Re(){const t=s(Te);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function De(){const{isInitialized:t}=Re();return t?ke:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function _e(){var t=["127337nBNheT","570IBCSgF","12oENXWZ","507447MIpYDE","256VjysEa","37330lIIkwP","3567021MRzBOb","2479345uQlghJ","10hTmXor","26146vMKlXD","2188112wALGNR"];return(_e=function(){return t})()}function Pe(t,e){var n=_e();return(Pe=function(t,e){return n[t-=385]})(t,e)}function Be(){const t=["217gafUae","1002524ECyejO","23910fdqGiY","3vgCLGu","12WudYlo","1720zPmrQx","1EqXlLl","408686qsyXYT","events","2.0.0","AdStage","15807jJzMRI","627675WtLLVH","config","5024864DAMqBF","557145uwJMQZ","24woRhov"];return(Be=function(){return t})()}!function(){for(var t=Pe,e=_e();;)try{if(639723===-parseInt(t(393))/1*(parseInt(t(386))/2)+parseInt(t(390))/3+-parseInt(t(394))/4+-parseInt(t(389))/5*(parseInt(t(385))/6)+parseInt(t(395))/7*(parseInt(t(388))/8)+-parseInt(t(387))/9*(-parseInt(t(392))/10)+parseInt(t(391))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Me=ze;function ze(t,e){const n=Be();return(ze=function(t,e){return n[t-=253]})(t,e)}!function(){const t=ze,e=Be();for(;;)try{if(242073===parseInt(t(268))/1*(-parseInt(t(269))/2)+parseInt(t(265))/3*(-parseInt(t(263))/4)+parseInt(t(257))/5+-parseInt(t(264))/6*(-parseInt(t(262))/7)+parseInt(t(261))/8*(-parseInt(t(260))/9)+parseInt(t(267))/10*(parseInt(t(256))/11)+-parseInt(t(266))/12*(-parseInt(t(259))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ue=Me(254),Ne=["ads",Me(253),Me(258)];"undefined"!=typeof window&&(window[Me(255)]=ke);export{ke as AdStage,Le as AdStageProvider,Ue as SDK_VERSION,Ne as SUPPORTED_MODULES,he as TrackingParamsModule,Ce as getUserProperties,Se as setUserProperties,Ae as track,Re as useAdStageContext,De as useAdStageInstance};
|