@adstage/web-sdk 3.0.6 → 3.0.8

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 s,useContext as i}from"react";function r(){var t=["MOBILE","7110OPfFJz","NATIVE","INTERSTITIAL","TEXT","4846686IcvSmJ","VIEWABLE","BANNER","4354wzYYgI","DESKTOP","CLICK","WEB","19376xckanK","15moMdgd","994416GyNrSz","30753JeycYp","1823516RdfKUr","TABLET","3538167ZjolJJ","2440132JRiQkD","POPUP","VIDEO"];return(r=function(){return t})()}var o,a,c,d,l,u,p,h,f,g,m,I;function v(t,e){var n=r();return(v=function(t,e){return n[t-=466]})(t,e)}!function(){for(var t=v,e=r();;)try{if(997416===-parseInt(t(466))/1+parseInt(t(468))/2+parseInt(t(470))/3+parseInt(t(471))/4*(-parseInt(t(487))/5)+parseInt(t(479))/6+parseInt(t(482))/7*(-parseInt(t(486))/8)+parseInt(t(467))/9*(parseInt(t(475))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),(a=o||(o={}))[(c=v)(481)]=c(481),a[c(472)]=c(472),a[c(477)]=c(477),a.NATIVE=c(476),a[c(473)]="VIDEO",a[c(478)]=c(478),(l=d||(d={}))[(u=v)(485)]=u(485),l[u(474)]=u(474),(h=p||(p={}))[(f=v)(480)]=f(480),h[f(484)]=f(484),m=g||(g={}),I=v,m.DESKTOP=I(483),m[I(474)]=I(474),m[I(469)]=I(469);const y=b;function b(t,e){const n=k();return(b=function(t,e){return n[t-=223]})(t,e)}!function(){const t=b,e=k();for(;;)try{if(842338===-parseInt(t(268))/1+-parseInt(t(262))/2+parseInt(t(253))/3+parseInt(t(274))/4+parseInt(t(239))/5*(parseInt(t(275))/6)+parseInt(t(282))/7+parseInt(t(258))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class w{static isBrowser(){const t=b;return typeof window!==t(249)&&typeof document!==t(249)}static isSSR(){return!this.isBrowser()}static[y(285)](){const t=y;return this[t(233)]()&&void 0!==document[t(292)]}static[y(251)](t){const e=y;return this[e(285)]()?document[e(246)](t):null}static safeQuerySelector(t){return this[y(285)]()?document.querySelector(t):null}static[y(264)](t){const e=y;return this[e(285)]()?Array[e(235)](document[e(267)](t)):[]}static[y(238)](t){const e=y;return this[e(285)]()?document[e(242)](t):null}static[y(281)](t,e,n,s){const i=y;this[i(285)]()&&t&&t[i(265)](e,n,s)}static[y(277)](t,e,n,s){const i=y;this[i(285)]()&&t&&t[i(247)](e,n,s)}static[y(229)](t,e){return this[y(233)]()?window[t]??e:e}static[y(254)](t,e){return this[y(285)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const s=y;return this[s(233)]()?window[s(289)](t,e,n):null}static[y(291)](t){return this[y(233)]()&&t?window.getComputedStyle(t):null}static isDOMReady(){const t=y;return!!this[t(285)]()&&document.readyState!==t(284)}static[y(250)](){return new Promise(t=>{const e=b;this[e(285)]()?this[e(252)]()?t():this[e(281)](document,"DOMContentLoaded",()=>t()):t()})}static[y(283)](t,e){const n=y;this[n(285)]()&&t&&Object[n(287)](e)[n(237)](([e,s])=>{const i=n;t[i(271)][i(234)](e,s)})}static[y(241)](t,e){const n=y;this[n(285)]()&&t&&t[n(226)][n(280)](e)}static safeRemoveClass(t,e){const n=y;this.canUseDOM()&&t&&t[n(226)][n(295)](e)}static[y(223)](t,e){const n=y;this[n(285)]()&&t&&(t[n(261)]=e)}static[y(259)](t,e){this[y(285)]()&&t&&(t.innerHTML=e)}static[y(272)](t,e){const n=y;this.canUseDOM()&&t&&e&&t[n(270)](e)}static[y(279)](t,e){const n=y;this[n(285)]()&&t&&e&&t[n(286)](e)}static[y(225)](){const t=y;return{url:this[t(229)](t(228),{href:""})[t(296)],title:this[t(254)](t(294),""),referrer:this[t(254)](t(256),"")}}static[y(269)](){const t=y;return{width:this.getWindowProperty(t(288),0),height:this.getWindowProperty(t(293),0),pixelRatio:this[t(229)](t(276),1)}}static getScrollInfo(){const t=y;return{scrollTop:this.canUseDOM()?window[t(244)]||document.documentElement.scrollTop:0,scrollLeft:this.getWindowProperty(t(240),0)}}static async waitForElement(t,e={}){const n=y,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(285)]())throw new Error("DOM을 사용할 수 없는 환경입니다.");const o=document.getElementById(t);return o?(r&&console[n(231)](n(248)+t),o):(r&&console.log("⏳ 컨테이너 대기 시작: "+t+" (최대 "+s+n(255)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(297)](s/i),l=()=>{const n=a;c++;const u=document[n(246)](t);if(u)return r&&console[n(231)](n(232)+t+" ("+c+n(266)+c*i+n(278)),void e(u);if(c>=d){const e=n(236)+t+n(273)+t+n(227)+s+n(243)+c+n(263);return r&&console[n(230)](e),void o(new Error(e))}r&&c%10==0&&console[n(231)](n(290)+t+" ("+c+"/"+d+")");const p=Math.min(i*Math[n(257)](1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async[y(224)](t,e={}){const n=y,s=t[n(260)](t=>this.waitForElement(t,e));return Promise[n(245)](s)}}function k(){const t=["textContent","2650466ZVmyem","번 시도)","safeQuerySelectorAll","addEventListener","번째 시도, ","querySelectorAll","1058137lerkZc","getViewportInfo","appendChild","style","safeAppendChild",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"209788nBBlFF","79956RVevLD","devicePixelRatio","safeRemoveEventListener","ms 경과)","safeRemoveChild","add","safeAddEventListener","1540952QcYuJo","safeApplyStyles","loading","canUseDOM","removeChild","entries","innerWidth","open","⏳ 컨테이너 대기 중: ","safeGetComputedStyle","readyState","innerHeight","title","remove","href","ceil","safeSetTextContent","waitForElements","getPageInfo","classList",'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: ',"location","getWindowProperty","error","log","✅ 컨테이너 발견: ","isBrowser","setProperty","from",'❌ 컨테이너를 찾을 수 없습니다: "',"forEach","safeCreateElement","350krWyLq","pageXOffset","safeAddClass","createElement","ms (","pageYOffset","all","getElementById","removeEventListener","✅ 컨테이너 즉시 발견: ","undefined","waitForDOM","safeGetElementById","isDOMReady","3415248CzReqX","getDocumentProperty","ms)","referrer","pow","7055112VLSyNR","safeSetInnerHTML","map"];return(k=function(){return t})()}!function(){const t=E,e=x();for(;;)try{if(287615===-parseInt(t(417))/1+parseInt(t(424))/2+parseInt(t(421))/3+parseInt(t(419))/4+-parseInt(t(413))/5*(-parseInt(t(418))/6)+parseInt(t(423))/7*(parseInt(t(414))/8)+-parseInt(t(416))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();function E(t,e){const n=x();return(E=function(t,e){return n[t-=413]})(t,e)}function x(){const t=["856287gurYmn"," AdStageSDK/","7iVYsAM","282954pkJbRC","5wapRfd","4176424QQFfUE","AdStageSDK/","6476634fMbRBH","546456fqUkCC","2384874sfHHSX","829036ygYXon","undefined"];return(x=function(){return t})()}function S(t,e){const n=C();return(S=function(t,e){return n[t-=476]})(t,e)}const A=S;function C(){const t=["test","setItem","effectiveType","37460GMVZqy","339646usPGaQ","platform","ssr_session_","adstage_session_id","SSR","top","102634YUxRWi","DateTimeFormat","generateDeviceId","userAgent","connection","2261184xakqhq","getBoundingClientRect","round","20608ChreVP","timeZone","pixelRatio","getSlotPosition","android","substr","getItem","adstage_device_id","getScrollInfo","11CeIXKB","1609144hTshnV","ssr_device_","random","2915976LSXiFc","UTC","width","now","isBrowser","18cwRsHO","toLowerCase","generateSessionId","resolvedOptions","colorDepth","language","getPlatform","toString","height","scrollTop","440UMAGFN","isMobile","6xMYNpJ","unknown"];return(C=function(){return t})()}!function(){const t=S,e=C();for(;;)try{if(229372===-parseInt(t(525))/1+-parseInt(t(519))/2*(-parseInt(t(513))/3)+parseInt(t(483))/4*(-parseInt(t(511))/5)+-parseInt(t(480))/6+parseInt(t(496))/7+-parseInt(t(493))/8*(-parseInt(t(501))/9)+-parseInt(t(518))/10*(-parseInt(t(492))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class T{static[A(477)](){const t=A;if(!w[t(500)]())return t(494)+Date.now();const e=localStorage[t(489)](t(490));if(e)return e;const n="device_"+Math.random()[t(508)](36)[t(488)](2,9)+"_"+Date.now();return localStorage.setItem("adstage_device_id",n),n}static[A(503)](){const t=A;if(!w[t(500)]())return t(521)+Date[t(499)]();const e=sessionStorage[t(489)](t(522));if(e)return e;const n="session_"+Math[t(495)]()[t(508)](36).substr(2,9)+"_"+Date.now();return sessionStorage[t(516)]("adstage_session_id",n),n}static isMobile(){const t=A;return!!w[t(500)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(515)](navigator.userAgent)}static[A(507)](){const t=A;if(!w[t(500)]())return"web";const e=navigator[t(478)][t(502)]();return/iphone|ipad|ipod/[t(515)](e)?"ios":/android/[t(515)](e)?t(487):T[t(512)]()?"web":"desktop"}static collectDeviceInfo(){const t=A,e=w.getViewportInfo();return{deviceId:T[t(477)](),sessionId:T[t(503)](),osVersion:w.isBrowser()?navigator.platform:t(523),deviceModel:w.isBrowser()?navigator[t(520)]:t(523),appVersion:"1.0.0",sdkVersion:'"3.0.6"',language:w.isBrowser()&&navigator[t(506)]||"ko",country:"KR",ipAddress:"",userAgent:w.isBrowser()?navigator.userAgent:"SSR",timezone:w[t(500)]()?Intl[t(476)]()[t(504)]()[t(484)]:t(497),viewportWidth:e.width,viewportHeight:e[t(509)],screenWidth:w[t(500)]()?screen[t(498)]:0,screenHeight:w[t(500)]()?screen[t(509)]:0,colorDepth:w[t(500)]()?screen[t(505)]:24,pixelRatio:e[t(485)],connectionType:w[t(500)]()&&navigator[t(479)]?.[t(517)]||t(514),platform:T[t(507)]()}}static[A(486)](t){const e=A,n=w.safeGetElementById(t);if(!n)return"unknown";const s=n[e(481)](),i=w[e(491)]();return"x:"+Math[e(482)](s.left)+",y:"+Math.round(s[e(524)]+i[e(510)])}}const R=z;function z(t,e){const n=D();return(z=function(t,e){return n[t-=234]})(t,e)}function D(){const t=["userAgent","1094504SUdXvN","10289412ktmBhb","541830LFACyb","8016928weylaP","315177imyXZa","undefined","1644534VLPWHD","User-Agent","API key is required","contentType","4421291ulWAco","10XCERrU","6PpXgoy","create"];return(D=function(){return t})()}!function(){const t=z,e=D();for(;;)try{if(560707===-parseInt(t(241))/1+parseInt(t(239))/2+parseInt(t(243))/3+-parseInt(t(237))/4*(-parseInt(t(248))/5)+-parseInt(t(234))/6*(parseInt(t(247))/7)+-parseInt(t(240))/8+parseInt(t(238))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{static[R(235)](t,e){const n=R;if(!t)throw new Error(n(245));const s={"x-api-key":t,"Content-Type":e?.[n(246)]||"application/json"};return typeof navigator!==n(242)&&(s[n(244)]=e?.[n(236)]||navigator[n(236)]),s}static createForEvents(t,e){const n=R,s=B[n(235)](t);return e?.[n(236)]&&(s[n(244)]=e[n(236)]),s}}const M=P;function P(t,e){const n=U();return(P=function(t,e){return n[t-=445]})(t,e)}function U(){const t=["6870016AkZQWk","width","debug","9HIeMzF","trackAdvertisementEvent","63gXmVae","get","text","status","now","555612rNAzqh"," event for ad ","10530oFdvmf","🚀 Sending advertisement event: ","299696RzEfSn","platform","2796404uMvsni","deviceId","/advertisements/events/","string","title","✅ Successfully tracked advertisement event: ","length","url","getSlotPosition","🚀 AdvertisementEventTracker: Processing ","NOT_SET","slots","getPageInfo","VIEWABLE"," for ad "," - ","sessionId","📡 API Response Status: ","POST","API request failed: ","22066044jvMJAV","replace","1403210frmsMZ","log","number","apiKey","...","adType","error","180YlkoBz","BANNER","referrer","5GnnPtp","baseUrl","stringify"];return(U=function(){return t})()}!function(){const t=P,e=U();for(;;)try{if(576320===-parseInt(t(483))/1+parseInt(t(481))/2*(-parseInt(t(463))/3)+parseInt(t(485))/4*(-parseInt(t(466))/5)+parseInt(t(479))/6*(-parseInt(t(474))/7)+parseInt(t(469))/8+parseInt(t(472))/9*(-parseInt(t(456))/10)+parseInt(t(454))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class L{constructor(t,e,n,s){const i=P;this[i(467)]=t,this[i(459)]=e,this[i(471)]=n,this[i(445)]=s}async[M(473)](t,e,n){const s=M;try{this[s(471)]&&console[s(457)](s(494)+n+s(480)+t+" in slot "+e);const i=this.slots[s(475)](e),r=T.collectDeviceInfo(),o={adType:i?.[s(461)]||s(464),platform:r[s(484)],deviceId:r[s(486)],deviceInfo:r,pageUrl:w[s(446)]()[s(492)],pageTitle:w[s(446)]()[s(489)],referrer:w[s(446)]()[s(465)],slotId:e,slotPosition:T[s(493)](i?.containerId||""),slotWidth:L.parseNumericValue(i?.[s(470)]),slotHeight:L.parseNumericValue(i?.height),sessionId:r[s(450)],pageLoadTime:performance[s(478)](),metadata:{eventType:n,sdkVersion:'"3.0.6"',timestamp:Date[s(478)]()},...n===p[s(447)]&&{isViewable:!0,iabCompliant:!0}},a=this.baseUrl+s(487)+t+"/"+n,c=B.createForEvents(this[s(459)],o);this[s(471)]&&(console[s(457)](s(482)+n+s(448)+t,{url:a,headers:c,eventData:o}),console[s(457)]("🌐 Full API call details:",{method:s(452),url:a,hasApiKey:!!this[s(459)],bodySize:JSON[s(468)](o)[s(491)]}));const d=await fetch(a,{method:"POST",headers:c,body:JSON[s(468)](o)});if(this[s(471)]&&console[s(457)](s(451)+d.status+" "+d.statusText,{url:a,ok:d.ok}),!d.ok){const t=await d[s(476)]();throw new Error(s(453)+d[s(477)]+" "+d.statusText+s(449)+t)}this[s(471)]&&console[s(457)](s(490)+n+s(448)+t)}catch(i){console[s(462)]("❌ Failed to track advertisement event:",i),console[s(462)]("🔍 Debug info:",{baseUrl:this.baseUrl,apiKey:this[s(459)]?this.apiKey.substring(0,8)+s(460):s(495),url:this[s(467)]+s(487)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static parseNumericValue(t){const e=M;if(typeof t===e(458))return t;if(typeof t===e(488)){const n=parseFloat(t[e(455)](/px$/,""));return isNaN(n)?0:n}return 0}}var F=V;function V(t,e){var n=_();return(V=function(t,e){return n[t-=355]})(t,e)}!function(){for(var t=V,e=_();;)try{if(644319===-parseInt(t(379))/1+parseInt(t(364))/2+parseInt(t(357))/3*(parseInt(t(371))/4)+parseInt(t(377))/5+parseInt(t(361))/6*(-parseInt(t(363))/7)+parseInt(t(370))/8+-parseInt(t(369))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class N{constructor(t,e){var n=V;this.observer=null,this.isViewableTriggered=!1,this[n(376)]=t,this[n(374)]=e,this.initIntersectionObserver()}initIntersectionObserver(){var t=V;t(378)in window?(this[t(372)]=new IntersectionObserver(e=>this[t(368)](e),{threshold:.5,rootMargin:t(362)}),this.observer[t(367)](this[t(376)])):console.warn(t(360))}[F(368)](t){var e=F;t[e(375)](t=>{var n=e;t[n(356)]>=.5&&this[n(355)]()&&!this[n(366)]&&(this.isViewableTriggered=!0,this[n(374)]&&this[n(374)]())})}[F(355)](){var t=F;return!document[t(365)]&&"visible"===document[t(359)]}[F(373)](){var t=F;this[t(372)]&&(this[t(372)][t(358)](),this[t(372)]=null)}}function _(){var t=["2562810BqtSor","disconnect","visibilityState","IntersectionObserver not supported, viewability tracking disabled","45996arWabj","0px","525qnrmgC","566462HIfHKh","hidden","isViewableTriggered","observe","handleIntersection","7381593aCmGen","1635464lJkZME","4gtardG","observer","destroy","onViewableCallback","forEach","element","3593950fsQmFN","IntersectionObserver","21278eUBeNU","isDocumentVisible","intersectionRatio"];return(_=function(){return t})()}function O(t,e){const n=W();return(O=function(t,e){return n[t-=177]})(t,e)}const H=O;!function(){const t=O,e=W();for(;;)try{if(969651===-parseInt(t(190))/1+-parseInt(t(186))/2+parseInt(t(181))/3*(parseInt(t(183))/4)+-parseInt(t(196))/5*(parseInt(t(178))/6)+parseInt(t(184))/7+-parseInt(t(189))/8+parseInt(t(185))/9*(parseInt(t(195))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const K={production:"https://api.adstage.app",beta:H(177)};function W(){const t=["startsWith","10AlCbho","9055KjGnBD","setBaseUrl","/events/track","track","https://beta-api.adstage.app","6pJoMzI","events","detail","109905WPsQCI","production","68CIMRwr","11697784FiBGOv","17421093VFQBUW","1115634jfWDLt","/advertisements","baseUrl","7486784JJxvvR","1764457tTosZN","advertisements","getBaseUrl","/advertisements/list"];return(W=function(){return t})()}H(182);const j={advertisements:{list:H(193),detail:H(187),events:"/advertisements/events"},events:{track:H(198)}};class q{constructor(t){const e=H;this[e(191)]={list:()=>""+this.baseUrl+j[e(191)].list,detail:t=>""+this[e(188)]+j[e(191)][e(180)]+"/"+t,events:(t,n)=>""+this.baseUrl+j[e(191)][e(179)]+"/"+t+"/"+n},this[e(179)]={track:()=>""+this[e(188)]+j.events[e(199)]},this.baseUrl=t||K[e(182)]}[H(197)](t){this[H(188)]=t}[H(192)](){return this.baseUrl}custom(t){const e=H;return""+this[e(188)]+(t[e(194)]("/")?t:"/"+t)}}const X=new q;function J(t,e){var n=G();return(J=function(t,e){return n[t-=125]})(t,e)}var Z=J;function G(){var t=["5237205KZlgeJ","🎯 Triggering initial VIEWABLE event: ad ","8317688fVBgex"," (index: 0) in slot: ","_id","log","1695160YOFaZw","9WLLvKk","VIEWABLE","998917XfQPQO","6xySzbX","trackInitialSlideViewable"," (index: ","🎯 Triggering VIEWABLE event for slide change: ad ","332532VJfUzA","319zwKUWb","2TMIEaz","882970jIzdJV","3149713mOEtch"];return(G=function(){return t})()}!function(){for(var t=J,e=G();;)try{if(791061===-parseInt(t(139))/1*(parseInt(t(127))/2)+parseInt(t(125))/3+-parseInt(t(136))/4+-parseInt(t(130))/5+parseInt(t(140))/6*(-parseInt(t(129))/7)+-parseInt(t(132))/8*(-parseInt(t(137))/9)+parseInt(t(128))/10*(parseInt(t(126))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Y{static trackSlideViewable(t,e,n,s,i=!1){var r=J;i&&console[r(135)](r(143)+t._id+r(142)+n+") in slot: "+e.id),s(t._id,e.id,p[r(138)])}static[Z(141)](t,e,n,s=!1){var i=Z;s&&console[i(135)](i(131)+t[i(134)]+i(133)+e.id),n(t[i(134)],e.id,p[i(138)])}}const Q=$;function $(t,e){const n=et();return($=function(t,e){return n[t-=107]})(t,e)}!function(){const t=$,e=et();for(;;)try{if(349932===-parseInt(t(112))/1+parseInt(t(122))/2*(parseInt(t(108))/3)+parseInt(t(126))/4+-parseInt(t(125))/5*(-parseInt(t(109))/6)+-parseInt(t(136))/7*(parseInt(t(139))/8)+-parseInt(t(116))/9*(-parseInt(t(120))/10)+-parseInt(t(130))/11*(-parseInt(t(131))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class tt{static[Q(133)](t,e,n,s,i=!1,r){const o=Q;e[o(132)]&&(t[o(127)][o(138)]="pointer",t[o(135)](o(115),t=>{const a=o;if(t[a(119)](),t[a(121)](),s&&s(e[a(114)],n.id,p[a(123)]),window[a(107)](e[a(132)],a(129)),i){const t=r||String(n[a(118)])[a(111)]();console[a(134)](a(137)+t+a(140)+e[a(114)]+" -> "+e[a(132)])}}))}static[Q(124)](t,e,n,s,i=!1,r){const o=Q;e.linkUrl&&(t.style[o(138)]="pointer",t[o(135)](o(115),t=>{const a=o;t[a(119)](),t.stopPropagation();if(s()(e._id,n.id,p.CLICK),window.open(e[a(132)],a(129)),i){const t=r||String(n.adType)[a(111)]();console.log("🔗 "+t+a(140)+e._id+a(117)+e[a(132)])}}))}static[Q(128)](t,e,n,s,i=!1,r){this.addClickEvent(t,e,n,s,i,r)}static isClickable(t){return Boolean(t.linkUrl)}static[Q(113)](t,e,n,s,i=!1,r){const o=Q;t[o(110)]((t,a)=>{const c=o,d=e[a];d&&this[c(133)](t,d,n,s,i,r)})}}function et(){const t=["click","9USNacA"," -> ","adType","preventDefault","2473750xsZKol","stopPropagation","282850evzvzn","CLICK","addClickEventForRenderer","5FjSlEH","1342320zEiLZV","style","addClickEventForSlider","_blank","56089qGamgE","228Rnuvoc","linkUrl","addClickEvent","log","addEventListener","105PdAwEy","🔗 ","cursor","273376tISbTa"," ad clicked: ","open","12BpiHOP","1894404PpOzTb","forEach","toLowerCase","698758EzrLcT","addClickEventsBatch","_id"];return(et=function(){return t})()}const nt=st;function st(t,e){const n=it();return(st=function(t,e){return n[t-=116]})(t,e)}function it(){const t=["createMinimalDotIndicator","transform","style","querySelectorAll","createElement","forEach","click","adstage-slider-wrapper","1px dashed #ccc","removeChild","adstage-slide-container","Text Ad","825795nndOha","abs","100px","touchstart","className","adstage-slide","createSimpleAdElement","src","border","videoUrl","1px solid #666","normal","length","contains","classList","div","_id","22hjwUFY","setAttribute","559490mObdOM","backgroundColor","toLowerCase","#666666","7vdpPzd","754hqyxKI","children","height","#000","addTouchSupport","#cccccc","entries","100%","imageUrl","center","getBoundingClientRect","1203192sDNHcZ","padding","touchmove","269128qZMKrI","90jqxJKu","cssText","hidden","0.9","18NVWRBj","fontSize","add","relative","button","transform 0.4s ease-out","adstage-dot","adstage-ad adstage-","appendChild","Banner Ad","width","cover","textContent","active","2732041lhqmSc","background","3567fiictY","inline-block","341sUiuPM","mouseenter","addEventListener","mouseleave","createSliderContainer","preventDefault","changedTouches","remove","adType","display","includes","auto","8px","transparent","setProperty","VIDEO","clientX","TEXT","overflow","translateX(-","#999999","BANNER","none","1748SqfptP","trackSlideViewable","\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 ","body","block","touchend","#f9f9f9","borderColor","opacity","string",".adstage-dot","white","14px","0.7","transition"];return(it=function(){return t})()}!function(){const t=st,e=it();for(;;)try{if(303007===parseInt(t(186))/1*(-parseInt(t(149))/2)+-parseInt(t(184))/3*(-parseInt(t(209))/4)+-parseInt(t(125))/5*(-parseInt(t(168))/6)+parseInt(t(148))/7*(-parseInt(t(163))/8)+-parseInt(t(164))/9*(parseInt(t(144))/10)+-parseInt(t(142))/11*(parseInt(t(160))/12)+parseInt(t(182))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class rt{static[nt(131)](t,e){const n=nt,s=document[n(117)](n(140));switch(s[n(129)]=n(175)+String(t.adType)[n(146)](),s[n(143)]("data-adstage-ad-id",e[n(141)]),s[n(143)]("data-adstage-slot-id",t.id),s[n(226)][n(195)]=n(213),s[n(226)][n(178)]="100%",s[n(226)][n(151)]=n(197),t[n(194)]){case o[n(207)]:if(e[n(157)]){const t=document.createElement("img");t[n(132)]=e[n(157)],t[n(226)][n(178)]=n(156),t[n(226)][n(151)]=n(197),t[n(226)].objectFit=n(179),s[n(176)](t)}else s[n(226)][n(151)]="100px",s[n(226)][n(145)]="#f0f0f0",s.style[n(133)]=n(121),s[n(180)]=n(177);break;case o[n(201)]:if(e[n(134)]){const t=document[n(117)]("video");t[n(132)]=e[n(134)],t[n(226)].width=n(156),t[n(226)].height="auto",s[n(176)](t)}else s.style.height="200px",s[n(226)][n(145)]=n(152),s[n(226)][n(133)]=n(135),s.textContent="Video Ad",s[n(226)].color=n(220);break;case o[n(203)]:if(e[n(180)]){const t=document[n(117)]("div");t[n(180)]=e[n(180)]||"",t[n(226)][n(161)]=n(198),t.style[n(169)]=n(221),s[n(176)](t)}else s[n(226)][n(151)]="50px",s[n(226)][n(161)]=n(198),s[n(180)]=n(124);break;default:s[n(226)][n(151)]=n(127),s.style[n(133)]=n(121),s.style[n(145)]=n(215),s[n(180)]=t[n(194)]+" Ad"}return s}static[nt(190)](t,e,n,s,i=!1){const r=nt,a=document.createElement("div");a[r(129)]=r(120);const c={position:r(171),overflow:r(166)};if(t[r(178)]&&0!==t[r(178)]){let e;e="string"==typeof t[r(178)]?t[r(178)][r(196)]("px")||t.width[r(196)]("%")?t[r(178)]:t.width+"px":t[r(178)]+"px",c[r(178)]=e,c[r(195)]=r(185)}else c[r(195)]="inline-block";if(t[r(151)]&&0!==t[r(151)]){const e=typeof t[r(151)]===r(218)?t[r(151)]:t[r(151)]+"px";c.height=e}Object[r(155)](c).forEach(([t,e])=>{const n=r;a[n(226)][n(200)](t,e)});const d=!t.width||0===t.width,l=!t[r(151)]||0===t[r(151)];if(d||l){const n=document.createElement(r(140));if(n[r(226)][r(165)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!d&&t[r(178)]){let e;e=typeof t.width===r(218)&&(t[r(178)][r(196)]("px")||t[r(178)].includes("%"))?t[r(178)]:t.width+"px",n[r(226)].width=e,n[r(226)].whiteSpace=r(136)}document[r(212)][r(176)](n);let s=0,i=0;e[r(118)](e=>{const o=r,a=this[o(131)](t,e);n[o(176)](a);const c=a[o(159)]();c.width>s&&(s=c[o(178)]),c[o(151)]>i&&(i=c[o(151)]),n[o(122)](a)}),d&&s>0&&(a.style.width=s+"px",c[r(178)]=s+"px"),l&&i>0&&(a.style[r(151)]=i+"px",c[r(151)]=i+"px"),document[r(212)].removeChild(n)}const u=[...e,e[0]],p=document.createElement(r(140));p.className=r(123);const h={display:"flex",transition:r(173),width:100*u[r(137)]+"%"};t.height&&0!==t[r(151)]&&(h[r(151)]=r(156)),Object[r(155)](h).forEach(([t,e])=>{const n=r;p[n(226)][n(200)](t,e)}),u[r(118)]((e,n)=>{const o=r,a=document[o(117)]("div");a[o(129)]=o(130);const c={width:100/u.length+"%","flex-shrink":"0",display:"flex","align-items":o(158),"justify-content":o(158)};t.height&&0!==t[o(151)]&&(c[o(151)]=o(156)),Object[o(155)](c)[o(118)](([t,e])=>{const n=o;a[n(226)][n(200)](t,e)});const d=this[o(131)](t,e);tt.addClickEventForSlider(d,e,t,s,i,String(t.adType)[o(146)]()),a.appendChild(d),p[o(176)](a)});const f=e.every(t=>t[r(194)]===o[r(203)])?null:this[r(224)](e[r(137)]);let g=0;const m=e[r(137)],I=1e3*(n?.autoSlideInterval||3),v=(n,o=!1)=>{const a=r;g=n,p.style[a(223)]=a(o?208:173),p[a(226)][a(225)]=a(205)+100/u[a(137)]*g+"%)";const c=g===m?0:g;if(f){f[a(116)](a(219))[a(118)]((t,e)=>{const n=a,s=t;e===c?(s.classList[n(170)]("active"),s[n(226)].background=n(147),s[n(226)][n(216)]=n(147),s[n(226)][n(217)]="1"):(s.classList[n(193)]("active"),s[n(226)][n(183)]=n(199),s[n(226)][n(216)]="#cccccc",s.style[n(217)]=n(222))})}Y[a(210)](e[c],t,c,s,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f.querySelectorAll(r(219))[r(118)]((t,e)=>{const n=r;t.addEventListener(n(119),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[r(188)](r(187),()=>{clearInterval(b)}),a[r(188)](r(189),()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[r(153)](p,v,()=>g,m,y),a.appendChild(p),f&&a[r(176)](f),v(0),(!t[r(178)]||0===t[r(178)])&&setTimeout(()=>{const e=r,n=p[e(150)][0];if(n){const s=n[e(150)][0];if(s){const n=s[e(159)]();a[e(226)][e(178)]=n[e(178)]+"px",(!t[e(151)]||0===t[e(151)])&&(a[e(226)][e(151)]=n[e(151)]+"px"),a.style[e(204)]=e(166)}}},10),a}static[nt(224)](t){const e=nt,n=document[e(117)]("div");n[e(129)]="adstage-dots",n.style[e(165)]="\n position: absolute;\n bottom: 15px;\n left: 50%;\n transform: translateX(-50%);\n display: flex;\n gap: 12px;\n z-index: 3;\n padding: 8px 16px;\n border-radius: 20px;\n background: rgba(255, 255, 255, 0.1);\n backdrop-filter: blur(10px);\n ";for(let s=0;s<t;s++){const t=document[e(117)](e(172));t[e(129)]=e(174),t[e(226)][e(165)]=e(211),t[e(188)](e(187),()=>{const n=e;!t[n(139)][n(138)](n(181))&&(t[n(226)][n(216)]=n(206),t.style[n(217)]=n(167))}),t.addEventListener(e(189),()=>{const n=e;!t[n(139)][n(138)](n(181))&&(t[n(226)].borderColor=n(154),t.style[n(217)]=n(222))}),n[e(176)](t)}return n}static addTouchSupport(t,e,n,s,i){const r=nt;let o=0,a=!1;t[r(188)](r(128),t=>{const e=r;o=t.touches[0][e(202)],a=!0}),t.addEventListener(r(162),t=>{a&&t[r(191)]()}),t[r(188)](r(214),t=>{const c=r;if(!a)return;a=!1;const d=t[c(192)][0][c(202)],l=o-d;if(Math[c(126)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}function ot(){const t=["clear","Duplicate viewable blocked for ad ","clearAdViewable","98SRpSCY","8IIWwJn","log","1765262HdVYMv","delete"," in slot ","7535076KiFQVY","isDuplicateViewable","373560mEQqMg","433150kYPNyO","add","968447gpcfGc","viewableTracker","968184DfORIP","3994435wvonZi","306SeWjfP"];return(ot=function(){return t})()}const at=ct;function ct(t,e){const n=ot();return(ct=function(t,e){return n[t-=472]})(t,e)}!function(){const t=ct,e=ot();for(;;)try{if(923996===parseInt(t(488))/1+-parseInt(t(480))/2+-parseInt(t(490))/3+-parseInt(t(478))/4*(-parseInt(t(472))/5)+-parseInt(t(483))/6+-parseInt(t(477))/7*(parseInt(t(485))/8)+parseInt(t(473))/9*(parseInt(t(486))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class dt{static[at(484)](t,e,n=!1){const s=at,i=t+"_"+e;return dt[s(489)].has(i)?(n&&console.log(s(475)+t+" in slot "+e),!0):(dt[s(489)][s(487)](i),n&&console[s(479)]("✅ New viewable recorded for ad "+t+s(482)+e),!1)}static[at(474)](){const t=at;dt[t(489)][t(474)]()}static[at(476)](t,e){const n=at,s=t+"_"+e;dt[n(489)][n(481)](s)}}function lt(t,e){const n=pt();return(lt=function(t,e){return n[t-=285]})(t,e)}dt[at(489)]=new Set;const ut=lt;function pt(){const t=["none","renderFallback","rgba(248, 249, 250, 0.5)","rgba(0, 0, 0, 0.02)","createEventTrackingCallback"," container collapsed (","block"," in slot ","auto","setAttribute","1192362IZIPLI","log","height","adstage-slot",'[data-adstage-container="true"]',"createPlaceholder","VIEWABLE","rgba(231, 76, 60, 0.1)","4657360yRuEol","closest","minHeight","📦 Placeholder created for ","justifyContent","1px solid rgba(0, 0, 0, 0.08)",".adstage-","cssText"," for ad ",") - Mode: ","❌ Failed to track ","debug","17428vqJhsK","querySelector","innerHTML","#e74c3c",'[class*="ad"]',"contains","appendChild","display","containerId","center","style","⚠️ Created empty ",'[class*="banner"]'," for ","isEmpty","<span>Loading ","px)","applyPlaceholderStyle","adstage-official","width","2uToFlE","695uCEaBd"," container: ","fontFamily","513892lfYciw",'div[style*="height"]',"data-adstage-type","adstage-slot adstage-","createEmptyContainer","advertisementEventTracker","border","color","✅ New viewable recorded for ad ","generic","div","getDefaultHeight","calculateAdSize","561177cuvpha","invisible","fontSize","data-adstage-empty","warn","adType","getContainerHeight","hasAttribute","100%","6px","11px","⚠️ ","adstage-class","opacity","toLowerCase","true","#666","#f9f9f9","48MuSmfk","2818350IwzwTT",'<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>',"2px dashed #e74c3c","backgroundColor"," x ","parentElement","adstage-slot adstage-empty adstage-","subtle","🔄 Starting advertisement event tracking: ","data-adstage-container","alignItems","number",'div[style*="min-height"]',"1811397hHIMRh"," slot: ","📏 Using default height ","📊 Advertisement event tracked: ","error","createElement","filter","flex","\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 ","unknown","string","\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 ","1px dashed #ccc"," ad...</span>","placeholderMode","className",".adstage-slot","data-adstage-slot","monospace","transparent","advertisement"];return(pt=function(){return t})()}!function(){const t=lt,e=pt();for(;;)try{if(323177===-parseInt(t(357))/1+-parseInt(t(353))/2*(parseInt(t(313))/3)+parseInt(t(333))/4*(parseInt(t(354))/5)+-parseInt(t(389))/6+parseInt(t(402))/7+-parseInt(t(388))/8*(-parseInt(t(370))/9)+parseInt(t(321))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ht{constructor(t,e=!1,n){const s=lt;this.adType=t,this[s(332)]=e,this[s(362)]=n||null}[ut(318)](t,e,n,s){const i=ut,r=document[i(287)](i(367));r.id=e,r[i(297)]=i(360)+String(this[i(375)]).toLowerCase(),r[i(312)](i(398),i(385)),r[i(312)](i(359),String(this[i(375)])),r[i(312)](i(299),e);const{width:o,height:a}=this[i(369)](t,n,s)||{width:"100%",height:this.getDefaultHeight()};r[i(343)][i(352)]=o,r[i(343)][i(315)]=a;const c=s?.[i(296)]||n.placeholderMode||i(371);this.applyPlaceholderStyle(r,c),t[i(339)](r),this.debug&&console[i(314)](i(324)+this[i(375)]+i(403)+e+" ("+o+i(393)+a+i(330)+c)}[ut(350)](t,e){const n=ut;switch(e){case n(371):t[n(343)].backgroundColor=n(301),t[n(343)][n(363)]=n(303),t[n(343)][n(383)]="0",t[n(335)]="";break;case n(301):t[n(343)][n(392)]=n(301),t[n(343)][n(363)]=n(303),t[n(343)][n(340)]=n(309),t.innerHTML="";break;case n(396):t[n(343)][n(392)]=n(306),t[n(343)].border=n(303),t[n(343)].borderRadius="4px",t.style[n(340)]=n(289),t[n(343)].alignItems=n(342),t.style[n(325)]=n(342),t[n(335)]=n(390);break;case"minimal":t[n(343)][n(392)]=n(305),t[n(343)][n(363)]=n(326),t[n(343)].borderRadius=n(379),t[n(343)].display=n(289),t[n(343)].alignItems=n(342),t.style.justifyContent=n(342),t.innerHTML='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case"debug":t[n(343)].border=n(391),t[n(343)][n(340)]="flex",t[n(343)][n(399)]="center",t[n(343)].justifyContent=n(342),t[n(343)][n(392)]=n(320),t.style[n(364)]=n(336),t.style[n(356)]=n(300),t[n(343)][n(372)]=n(380),t[n(335)]=n(348)+this[n(375)]+n(295);break;default:t[n(343)].border=n(294),t[n(343)][n(340)]=n(289),t[n(343)][n(399)]="center",t[n(343)].justifyContent="center",t[n(343)].backgroundColor=n(387),t.style[n(364)]=n(386),t[n(335)]=n(348)+this[n(375)]+n(295)}}[ut(369)](t,e,n){const s=ut,i=e[s(352)],r=e[s(315)];let o,a;if(o="number"==typeof i?i+"px":typeof i===s(292)?i:s(378),typeof r===s(400))a=r+"px";else if(typeof r===s(292)&&r!==s(378)&&"auto"!==r)a=r;else{const e=this.getContainerHeight(t);e>0?(a="100%",(n?.[s(332)]||this.debug)&&console.log("📏 Using 100% height (container: "+e+s(349))):(a=this[s(368)](),(n?.[s(332)]||this.debug)&&console.log(s(404)+a+s(346)+this[s(375)]))}return{width:o,height:a}}[ut(376)](t){const e=ut,n=window.getComputedStyle(t),s=parseFloat(n[e(315)]);if(!s||0===s){const s=parseFloat(n[e(323)]);if(s>0)return s;if(t[e(343)][e(315)]&&t[e(343)][e(315)]!==e(311)){const n=parseFloat(t[e(343)][e(315)]);if(n>0)return n}const i=t.getAttribute(e(315));if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}[ut(307)](){return async(t,e,n)=>{const s=lt;if(n===p[s(319)]){if(dt.isDuplicateViewable(t,e,this.debug))return void(this.debug&&console[s(314)]("🚫 Duplicate viewable blocked for ad "+t+s(310)+e));this[s(332)]&&console[s(314)](s(365)+t+s(310)+e)}if(this[s(362)])try{this[s(332)]&&console[s(314)](s(397)+n+s(329)+t+s(310)+e),await this[s(362)].trackAdvertisementEvent(t,e,n),this[s(332)]&&console.log(s(285)+n+s(329)+t+s(310)+e)}catch(e){this[s(332)]&&console[s(286)](s(331)+n+" event for ad "+t+":",e)}else this[s(332)]&&console[s(374)]("⚠️ AdvertisementEventTracker not available for "+n+" event")}}[ut(304)](t){const e=ut,n=document.getElementById(t.id);if(n){const s=[...[n[e(334)](e(317)),n[e(322)]('[data-adstage-container="true"]'),n].filter(t=>t&&t[e(377)]("data-adstage-container")),...[n[e(322)](e(298)),n[e(322)](e(327)+String(this[e(375)])[e(384)]()),n[e(322)](e(337)),n[e(322)](e(345)),n.closest('[class*="container"]'),n[e(322)](e(358)),n.closest(e(401)),n[e(394)]][e(288)](Boolean)][0];if(s){let n=e(291);n=s[e(377)]("data-adstage-container")?e(351):s.classList[e(338)](e(316))?e(382):e(366),s[e(343)][e(328)]+=e(293),s[e(335)]="",s.setAttribute("data-adstage-empty",e(385)),this[e(332)]&&console[e(374)](e(381)+this.adType+e(308)+n+"): "+t.id,s)}else this[e(361)](t)}t[e(302)]=void 0,t[e(347)]=!0}[ut(361)](t){const e=ut,n=document.getElementById(t[e(341)]);if(n){n[e(335)]="";const s=document.createElement(e(367));s.id=t.id,s.className=e(395)+String(this[e(375)])[e(384)](),s.setAttribute(e(398),e(385)),s[e(312)](e(373),e(385)),s[e(312)](e(299),t.id),s[e(343)].cssText=e(290),n.appendChild(s),this.debug&&console[e(374)](e(344)+this[e(375)]+e(355)+t.id)}}log(t,...e){const n=ut;this.debug&&console[n(314)]("["+this[n(375)]+"] "+t,...e)}}const ft=mt;function gt(){const t=["3:2"," ads: ","📦 Banner container dimensions: ","objectFit","containerId","onerror","reduce","forEach","createElement","16:9","center","count","📊 Using standard ratio: ","Banner container optimization failed, using default size:","appendChild","default","716PUIACN","round","getElementById","width","ratio","toFixed","div","getDefaultHeight","100%","Banner Ad","set","Banner","max","cover","toString","calculateOptimalContainerSize","log","BANNER","250px","🎠 Banner carousel created for slot: ","selectOptimalSizeStrategy","1753590KjEobN","naturalWidth"," with ","abs","2jveuGa","dominant","values","fulfilled","4041MpHThB","from","height","some","className","renderMultipleAds","objectPosition","630385eOShIg","backgroundColor","style","✅ Optimized banner image rendered for ad: ","renderAdElement","12jkVTxz","error","🎨 Banner image style applied: objectFit=","get"," (avg: ","createSliderContainer","69298Syuwiz","slideInterval","naturalHeight","parentElement","length","imageUrl","optimizedHeight","status","❌ Failed to load optimized banner image:","Image URL is not provided","4:3","config","optimizeContainerForBannerAds","warn","loadImageDimensions","7TQfqFa","1073677HiqXiQ","1252002KcjMAx","aspectRatio","Failed to load image: ","block","filter","getBoundingClientRect","name","Banner Advertisement","Container not found: ","1:1","2287248AKpDwu","adstage-ad adstage-banner-ad",", ratio=","src","</div>","innerHTML","borderRadius","display","common","9qFSAcY","map","debug","calculateOptimalHeight","addClickEventForRenderer","createEventTrackingCallback","applyOptimizedImageStyle","renderOptimizedBannerImage","<div>","onload"];return(gt=function(){return t})()}function mt(t,e){const n=gt();return(mt=function(t,e){return n[t-=455]})(t,e)}!function(){const t=mt,e=gt();for(;;)try{if(165871===-parseInt(t(475))/1*(parseInt(t(562))/2)+-parseInt(t(457))/3*(parseInt(t(537))/4)+parseInt(t(464))/5+parseInt(t(492))/6*(-parseInt(t(490))/7)+parseInt(t(502))/8*(parseInt(t(511))/9)+parseInt(t(558))/10+-parseInt(t(491))/11*(-parseInt(t(469))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class It extends ht{constructor(t=!1,e){super(o[mt(554)],t,e)}[ft(544)](){return ft(555)}async[ft(468)](t,e){const n=ft,s=document[n(539)](t[n(525)]);if(!s)return;const i=document[n(529)](n(543));i[n(461)]=n(503);const r=t[n(481)],o=s[n(478)]||s;if(r)i[n(466)][n(540)]=n(545),i.style[n(459)]=String(r);else{const e=t[n(486)],s={width:e?.[n(540)],height:e?.height},{width:r,height:a}=this.calculateAdSize(o,s,{debug:this[n(513)]});i[n(466)][n(540)]=r,i.style[n(459)]=a}e[n(480)]?await this[n(518)](i,e,t):i.innerHTML=n(519)+(e.title||n(546))+n(506),tt[n(515)](i,e,t,()=>this.createEventTrackingCallback(),this.debug,n(548)),s[n(507)]="",s[n(535)](i)}async[ft(462)](t,e){const n=ft,s=document[n(539)](t.containerId);if(!s)throw new Error(n(500)+t[n(525)]);await this[n(487)](t,e);const i=this.createEventTrackingCallback(),r={autoSlideInterval:(t[n(486)]?.[n(476)]||5e3)/1e3,...t[n(486)],optimizedHeight:t.optimizedHeight,aspectRatio:t[n(493)]},o=rt[n(474)](t,e,r,i,this[n(513)]);o&&(s[n(507)]="",s[n(535)](o),this.debug&&console.log(n(556)+t.id+n(560)+e[n(479)]+" ads (optimized: "+(t[n(481)]||n(536))+")"))}async[ft(552)](t,e){const n=ft;if(!t[n(479)])return{width:n(545),height:this[n(544)](),aspectRatio:16/9};try{const s=(await Promise.allSettled(t[n(496)](t=>t.imageUrl).map(t=>this[n(489)](t[n(480)]))))[n(496)](t=>t[n(482)]===n(456))[n(512)](t=>t.value);if(0===s[n(479)])return{width:n(545),height:this[n(544)](),aspectRatio:16/9};const i=this[n(557)](s),r=this[n(514)](s,e,i);return this[n(513)]&&console.log("📐 Optimal banner container calculated: "+e+"x"+r+" (strategy: "+i+")"),{width:n(545),height:r+"px",aspectRatio:e/r}}catch(t){return console[n(488)]("Failed to calculate optimal banner size, using defaults:",t),{width:"100%",height:this[n(544)](),aspectRatio:16/9}}}async optimizeContainerForBannerAds(t,e){const n=ft;try{const s=document[n(539)](t[n(525)]),i=document[n(539)](t.id);if(!s||!i)return;const r=s[n(497)]().width||300,o=await this[n(552)](e,r);i[n(466)][n(459)]=o.height,t[n(481)]=o[n(459)],t[n(493)]=o[n(493)],this[n(513)]&&console[n(553)]("🔧 Banner container optimized for "+e[n(479)]+n(522)+o[n(459)])}catch(t){console[n(488)](n(534),t)}}[ft(557)](t){const e=ft,n=t.map(t=>t[e(540)]/t.height),s=new Map;n[e(528)](t=>{const n=e,i=(Math.round(10*t)/10)[n(551)]();s[n(547)](i,(s[n(472)](i)||0)+1)});const i=Math[e(549)](...s[e(455)]()),r=t[e(479)];if(i/r>=.7)return e(563);const o=[16/9,4/3,1,1.5];return n[e(496)](t=>o[e(460)](n=>Math[e(561)](t-n)<.1)).length/r>=.5?e(510):"average"}[ft(514)](t,e,n){const s=ft,i=t[s(512)](t=>t.width/t[s(459)]);switch(n){case s(563):{const t=new Map;i[s(528)](e=>{const n=s,i=Math[n(538)](10*e)/10,r=i.toString(),o=t[n(472)](r);o?o[n(532)]++:t[n(547)](r,{ratio:i,count:1})});const n=Array[s(458)](t[s(455)]()).reduce((t,e)=>e[s(532)]>t[s(532)]?e:t);return Math[s(538)](e/n[s(541)])}case s(510):{const t=[{ratio:16/9,name:s(530)},{ratio:4/3,name:s(485)},{ratio:1,name:s(501)},{ratio:1.5,name:s(521)}],n=i[s(527)]((t,e)=>t+e,0)/i.length,r=t[s(527)]((t,e)=>Math[s(561)](e[s(541)]-n)<Math[s(561)](t[s(541)]-n)?e:t);return this.debug&&console[s(553)](s(533)+r[s(498)]+s(473)+n[s(542)](2)+")"),Math[s(538)](e/r[s(541)])}default:{const t=i[s(527)]((t,e)=>t+e,0)/i.length;return Math[s(538)](e/t)}}}[ft(489)](t){return new Promise((e,n)=>{const s=mt,i=new Image;i[s(520)]=()=>{const t=s;e({width:i[t(559)],height:i[t(477)]})},i[s(526)]=()=>{n(new Error(s(494)+t))},i.src=t})}[ft(517)](t,e,n){const s=ft,i=e/n;Math[s(561)](i-1)<.1?(t.style[s(524)]="cover",t[s(466)][s(463)]=s(531)):i>1.3?(t[s(466)][s(524)]="contain",t[s(466)][s(463)]="center",t[s(466)][s(465)]="#f0f0f0"):i<.7?(t[s(466)][s(524)]=s(550),t[s(466)].objectPosition=s(531)):(t[s(466)][s(524)]="cover",t[s(466)][s(463)]="center"),this.debug&&console.log(s(471)+t[s(466)][s(524)]+s(504)+i[s(542)](2))}async[ft(518)](t,e,n){const s=ft,i=document[s(529)]("img");i[s(466)].width=s(545),i[s(466)][s(459)]=s(545),i[s(466)][s(509)]=s(495),i[s(466)][s(508)]="8px",i.alt=e.title||s(499),t[s(507)]='<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>';try{if(!e[s(480)])throw new Error(s(484));const r=await this[s(489)](e[s(480)]),o=t.getBoundingClientRect(),a=o[s(540)],c=o[s(459)];this[s(513)]&&(console.log("📸 Banner image dimensions: "+r.width+"x"+r[s(459)]),console.log(s(523)+a+"x"+c));const d=r[s(540)]/r[s(459)],l=a/c;return this[s(517)](i,d,l),i.src=e[s(480)],t[s(507)]="",t.appendChild(i),tt[s(515)](i,e,n,()=>this[s(516)](),this[s(513)],"Banner"),this.debug&&console[s(553)](s(467)+e._id),i}catch(r){return console[s(470)](s(483),r),e[s(480)]&&(i[s(505)]=e[s(480)],i[s(466)].objectFit=s(550),i.style[s(463)]=s(531),t.innerHTML="",t.appendChild(i),tt[s(515)](i,e,n,()=>this[s(516)](),this.debug,s(548))),i}}}const vt=bt;function yt(){const t=["\n font-family: 'Arial', sans-serif;\n text-decoration: none;\n display: block;\n text-align: left;\n transition: color 0.3s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: visible;\n padding-right: 2px;\n padding-left: 2px;\n white-space: nowrap;\n ","4zaJYhJ","2gFRgKg","21590iTkmtP","6975lBpqJD","textContent","5170023zuzEXE","13479984PKSpqn","setTextAdContent","1549236hNTKul","title","4599415nkguGf","113132jyoSgm","7sZPFXi","3727680AHgxDm","createTextAdStyles"];return(yt=function(){return t})()}function bt(t,e){const n=yt();return(bt=function(t,e){return n[t-=252]})(t,e)}!function(){const t=bt,e=yt();for(;;)try{if(908805===parseInt(t(261))/1+-parseInt(t(267))/2*(parseInt(t(255))/3)+parseInt(t(266))/4*(-parseInt(t(260))/5)+-parseInt(t(258))/6*(parseInt(t(262))/7)+parseInt(t(256))/8+-parseInt(t(253))/9*(-parseInt(t(252))/10)+parseInt(t(263))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class wt{static[vt(264)](t=!1){return vt(265)}static[vt(257)](t,e){const n=vt,s=e[n(254)]||e[n(259)]||"";t[n(254)]=s}}const kt=xt;function Et(){const t=["normal","Text","setProperty","\n position: ","div","1745836qttyWA","touchmove","position","whiteSpace","addClickEventForSlider","height","translateY(-20px)","12447333yJMbLM","6AKpAII","className","minHeight","createSimpleAdElement",";\n top: ","adstage-fade-slide","appendChild","zIndex","height: 100%;","height: auto; min-height: fit-content;","1304649ueUrcE","string","forEach","translateY(0)","cssText","opacity","top","includes","auto","2398389yfPTqn","push","left","createElement","length","addEventListener","touchend","setAttribute","clientX","relative","toLowerCase","511820JIzVuw","width","clientY","createTextAdStyles","trackSlideViewable","\n position: relative;\n width: 100%;\n ","mouseleave","touchstart","8XBRFLM","data-adstage-ad-id",";\n ","445364IHDcBh","createTextTransitionContainer","absolute","addTouchSupport","changedTouches","block","abs","transform","removeChild","setTextAdContent","style","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","fit-content","autoSlideInterval","hidden","1964336gKqWWn","touches","height: auto;","\n ","preventDefault","20px","getBoundingClientRect"];return(Et=function(){return t})()}function xt(t,e){const n=Et();return(xt=function(t,e){return n[t-=207]})(t,e)}!function(){const t=xt,e=Et();for(;;)try{if(454291===parseInt(t(274))/1+-parseInt(t(225))/2+parseInt(t(243))/3+-parseInt(t(213))/4+parseInt(t(263))/5*(-parseInt(t(233))/6)+-parseInt(t(252))/7+-parseInt(t(271))/8*(-parseInt(t(232))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class St{static[kt(236)](t,e){const n=kt,s=document[n(255)]("div");return s.className="adstage-ad adstage-"+String(t.adType)[n(262)](),s[n(259)](n(272),e._id),s.setAttribute("data-adstage-slot-id",t.id),s.style.cssText=wt[n(266)](!0),wt[n(207)](s,e),s}static[kt(275)](t,e,n,s,i=!1){const r=kt,o=t[r(230)]&&0!==t[r(230)]&&t[r(230)]!==r(251),a=document[r(255)]("div");a.className="adstage-fade-slider-wrapper";const c={position:r(261),overflow:r(212),display:r(279)};if(!o&&(c.height=r(251),c[r(235)]=r(210)),t.width&&0!==t[r(264)]){let e;e="string"==typeof t[r(264)]?t[r(264)][r(250)]("px")||t[r(264)].includes("%")?t.width:t.width+"px":t[r(264)]+"px",c[r(264)]=e}if(t[r(230)]&&0!==t[r(230)]&&t[r(230)]!==r(251)&&o){let e;e=typeof t[r(230)]===r(244)&&(t[r(230)].includes("px")||t.height[r(250)]("%"))?t[r(230)]:t[r(230)]+"px",c[r(230)]=e}Object.entries(c)[r(245)](([t,e])=>{const n=r;a.style[n(222)](t,e)});const d=document[r(255)](r(224));d.className="adstage-fade-slide-container",d[r(208)].cssText=r(268)+r(o?241:242)+r(216);let l=null;const u=!t[r(264)]||0===t[r(264)],p=!t[r(230)]||0===t[r(230)]||void 0===t[r(230)]||t[r(230)]===r(251);if(u||p&&o){if(l=document.createElement(r(224)),l[r(208)][r(247)]="\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ",!u&&t[r(264)]){let e;e=typeof t[r(264)]===r(244)&&(t[r(264)].includes("px")||t[r(264)][r(250)]("%"))?t.width:t[r(264)]+"px",l.style.width=e,l[r(208)][r(228)]=r(220)}document.body[r(239)](l);let n=0,s=0;e[r(245)](e=>{const i=r,o=this[i(236)](t,e);l[i(239)](o);const a=o[i(219)]();a[i(264)]>n&&(n=a[i(264)]),a[i(230)]>s&&(s=a[i(230)]),l.removeChild(o)}),u&&n>0&&(a.style[r(264)]=n+"px"),p&&s>0&&o&&(a[r(208)][r(230)]=s+"px"),document.body[r(282)](l)}const h=[];e[r(245)]((e,n)=>{const a=r,c=document[a(255)](a(224));c[a(234)]=a(238);const l=0===n,u=o?a(276):l?a(261):"absolute";c.style[a(247)]=a(223)+u+a(237)+("absolute"===u?"0":a(251))+";\n left: "+("absolute"===u?"0":"auto")+";\n width: 100%;\n "+a(o?241:215)+a(209)+(0===n?"1":"0")+";\n transform: translateY("+(0===n?"0":a(218))+");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: "+(0===n?"2":"1")+a(273);const p=this.createSimpleAdElement(t,e);tt[a(229)](p,e,t,s,i,a(221)),c[a(239)](p),d.appendChild(c),h[a(253)](c)});let f=0;const g=e[r(256)],m=1e3*(n?.[r(211)]||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c.style[a(227)]===a(261)&&(c[a(208)][a(227)]=a(276),c[a(208)][a(249)]="0",c.style[a(254)]="0"),d[a(208)][a(227)]="relative",d[a(208)].top="auto",d[a(208)][a(254)]=a(251)),c[a(208)].opacity="0",c[a(208)][a(281)]=a(231),c[a(208)][a(240)]="1",d.style.opacity="1",d[a(208)].transform=a(246),d[a(208)].zIndex="2",h[a(245)]((t,e)=>{const s=a;e!==n&&e!==f&&(t.style[s(248)]="0",t[s(208)][s(281)]="translateY(20px)",t[s(208)][s(240)]="1",!o&&t[s(208)].position===s(261)&&(t[s(208)].position=s(276),t[s(208)].top="0",t[s(208)].left="0"))}),f=n,Y[a(267)](e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a.addEventListener("mouseenter",()=>{clearInterval(v)}),a[r(257)](r(269),()=>{v=setInterval(()=>{I(f+1)},m)}),St.addTouchSupport(a,I,()=>f,g),a[r(239)](d),a}static[kt(277)](t,e,n,s){const i=kt;let r=0,o=0,a=!1;t.addEventListener(i(270),t=>{const e=i;r=t[e(214)][0][e(260)],o=t.touches[0][e(265)],a=!0}),t[i(257)](i(226),t=>{a&&t[i(217)]()}),t[i(257)](i(258),t=>{const s=i;if(!a)return;a=!1;const c=t[s(278)][0][s(260)],d=t.changedTouches[0][s(265)],l=r-c,u=o-d;if(Math[s(280)](l)>Math[s(280)](u)&&Math[s(280)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}function At(t,e){const n=Ct();return(At=function(t,e){return n[t-=429]})(t,e)}function Ct(){const t=["938329KNGFoq","addClickEventForRenderer","getElementById","webkitLineClamp","containerId","setTextAdContent"," ads","2955432vbFAlC","1488XyWrjd","width","length","log","createElement","debug","appendChild","webkitBoxOrient","✨ Single text ad rendered: ","createEventTrackingCallback","Container not found: ","_id","Text","adstage-ad adstage-text-ad","440088dpEgFd","TEXT","vertical","✨ Text transition created for slot: ","optimizedHeight","hidden","300WdNUHk","overflow","config","display","height","55nnIzru","9rzgQSN","createTextTransitionContainer","aspectRatio","30950eRwahk","style","number","8430926FRcGDV","112AMLilB","16360iyRgwN","calculateAdSize","maxLines"," with ","innerHTML","slideInterval","60px"];return(Ct=function(){return t})()}!function(){const t=At,e=Ct();for(;;)try{if(802983===parseInt(t(474))/1+-parseInt(t(432))/2+parseInt(t(433))/3*(parseInt(t(466))/4)+parseInt(t(467))/5*(parseInt(t(453))/6)+parseInt(t(465))/7+parseInt(t(447))/8*(-parseInt(t(459))/9)+parseInt(t(462))/10*(parseInt(t(458))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Tt extends ht{constructor(t=!1,e){super(o[At(448)],t,e)}getDefaultHeight(){return At(473)}async renderAdElement(t,e){const n=At,s=document[n(476)](t[n(429)]);if(!s)return;const i=document[n(437)]("div");i.className=n(446);const r=t.optimizedHeight,o=s.parentElement||s;if(r)i[n(463)][n(434)]="100%",i[n(463)][n(457)]=String(r);else{const e=t[n(455)],s={width:e?.[n(434)],height:e?.height},{width:r,height:a}=this[n(468)](o,s,{debug:this.debug});i.style[n(434)]=r,i[n(463)][n(457)]=a}const a=document.createElement("div");a.className="adstage-text-content",a[n(463)].cssText=wt.createTextAdStyles(!1),wt[n(430)](a,e);const c=t[n(455)]?.[n(469)];c&&typeof c===n(464)&&(a[n(463)][n(456)]="-webkit-box",a[n(463)][n(477)]=String(c),a[n(463)][n(440)]=n(449),a.style[n(454)]=n(452)),i[n(439)](a),tt[n(475)](i,e,t,()=>this[n(442)](),this.debug,n(445)),s.innerHTML="",s[n(439)](i),this[n(438)]&&console[n(436)](n(441)+e[n(444)])}async renderMultipleAds(t,e){const n=At,s=document[n(476)](t[n(429)]);if(!s)throw new Error(n(443)+t.containerId);const i=this.createEventTrackingCallback(),r={autoSlideInterval:(t[n(455)]?.[n(472)]||5e3)/1e3,...t[n(455)],optimizedHeight:t[n(451)],aspectRatio:t[n(461)]},o=St[n(460)](t,e,r,i,this[n(438)]);o&&(s[n(471)]="",s[n(439)](o),this.debug&&console.log(n(450)+t.id+n(470)+e[n(435)]+n(431)))}}function Rt(){const t=["customControls","warn","hideRemainingTime","renderAdElement","style","head","enabled","81805QSioqV","unmuted","7991730kwsrvA","config","loadeddata","Container not found: ","adstage-video-default-controls","renderVideoElementDirect","containerId","img","Video thumbnail","play","8521200xtHncQ","src","imageUrl","8fUDNVD","🎬 Single video rendered for VIDEO slot: ","🎬 Video controls setting:","⚠️ No video advertisements available for slot: ","🎬 Video config received:","title","cssText","Video fallback","252695wRHFyd","getElementById","muted","Video","\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 ","loadedmetadata","createEventTrackingCallback",'\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 '," (autoplay: ","scale(1)","100%","\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 ","addClickEventForRenderer","width","block","360px","getDefaultHeight"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","error","🎬 Autoplay completely failed:","autoplay","videoUrl","VIEWABLE","\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 ","contain","🎬 Video data loaded, attempting autoplay...","textContent","innerHTML","catch","objectFit","mouseleave","div","background",", loop: ","rgba(0, 0, 0, 0.7)","adstage-video-container","adstage-video-mute-button","addEventListener","hideFullscreenButton","canplay","🔊 Video mute toggled: ","none","\n pointer-events: none;\n ","10530330tlZGwL","hideProgressBar","alt","🎬 Auto-play was prevented:","height","_id","relative","🎬 Single video ad rendered: ","🎬 Trying muted autoplay fallback...","rgba(0, 0, 0, 0.9)","button","metadata","120FsUVtE","hideVolumeSlider","hideMuteButton"," !important;\n }\n ","Click to mute","controls","loop","display","debug","10sxXnxA","click","hidePlayButton","createElement","🎬 User explicitly enabled controls, overriding default","mouseenter","hideCurrentTime",", muted: ","4482939hHkFLE"," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","🎬 Final video settings:","hideControls","🎬 Initial autoplay attempt after timeout...","10033219qFIcSF","renderMultipleAds"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","video","playsinline","length","appendChild"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","🎬 Video can play, attempting autoplay...","disabled (default)","className","log"];return(Rt=function(){return t})()}const zt=Dt;function Dt(t,e){const n=Rt();return(Dt=function(t,e){return n[t-=496]})(t,e)}!function(){const t=Dt,e=Rt();for(;;)try{if(760469===parseInt(t(523))/1*(parseInt(t(610))/2)+parseInt(t(499))/3+-parseInt(t(601))/4*(-parseInt(t(546))/5)+-parseInt(t(525))/6+parseInt(t(504))/7*(-parseInt(t(538))/8)+-parseInt(t(535))/9+parseInt(t(589))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Bt extends ht{constructor(t=!1,e){super(o.VIDEO,t,e)}[zt(562)](){return zt(561)}async[zt(519)](t,e){const n=zt,s=document[n(547)](t.containerId);if(!s)return;const i=document[n(613)]("div");i.className="adstage-video-container",i[n(520)][n(544)]=n(550),this[n(530)](i,e,t),s[n(573)]="",s[n(510)](i),this[n(609)]&&console[n(515)](n(596)+e._id)}async[zt(505)](t,e){const n=zt,s=document.getElementById(t[n(531)]);if(!s)throw new Error(n(528)+t[n(531)]);if(e[n(509)]>0){const i=e[0],r=document[n(613)](n(577));r[n(514)]=n(581),r.style[n(544)]=n(569),this[n(530)](r,i,t),s[n(573)]="",s[n(510)](r);const o=this[n(552)]();setTimeout(()=>{const e=n;o(i._id,t.id,p[e(568)])},100),this.debug&&console[n(515)](n(539)+t.id+" ("+i[n(594)]+")")}else this.debug&&console.warn(n(541)+t.id)}[zt(530)](t,e,n){const s=zt;t[s(520)].position=s(595);const i=document[s(613)](s(507));i.style[s(559)]=s(556),i[s(520)][s(593)]="100%",i.style[s(575)]=s(570),i.preload=s(600);const r=n[s(526)];if(this.debug&&console.log(s(542),r),i[s(606)]=!1,i.autoplay=!1!==r?.[s(566)],i[s(548)]=!0,i[s(607)]=!1!==r?.loop,this[s(609)]&&console[s(515)](s(501),{autoplay:i[s(566)],muted:i[s(548)],loop:i[s(607)],controls:i[s(606)]}),!1!==r?.playsinline&&i.setAttribute(s(508),""),!0===r?.[s(606)]&&(i[s(606)]=!0,this[s(609)]&&console[s(515)](s(614))),r?.hideControls)i[s(606)]=!1,i[s(520)][s(544)]+=s(588);else if(r?.[s(516)]){if(i[s(606)]){const t=document.createElement(s(520));t.textContent="\n video::-webkit-media-controls-play-button {\n display: "+(r[s(516)][s(612)]?s(587):"block")+s(500)+(r[s(516)][s(590)]?s(587):s(560))+" !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: "+(r[s(516)][s(497)]?"none":"block")+s(511)+(r[s(516)][s(518)]?"none":"block")+" !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: "+(r[s(516)][s(602)]?"none":s(560))+s(506)+(r[s(516)][s(603)]?s(587):s(560))+s(563)+(r.customControls[s(584)]?"none":s(560))+s(604),document[s(521)][s(510)](t)}}else if(i[s(606)]){const t=document[s(613)](s(520));t.id="adstage-video-default-controls",t[s(572)]="\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 ",!document[s(547)](s(529))&&document[s(521)][s(510)](t)}this[s(609)]&&console[s(515)](s(540),i[s(606)]?s(522):s(513));const o=document[s(613)](s(599));o[s(514)]=s(582),o[s(520)][s(544)]=s(557),r?.[s(502)]&&(o.style[s(608)]=s(587));const a=()=>{const t=s,e=t(553);o[t(573)]=i[t(548)]?e:'\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(543)]=i.muted?"Click to unmute":t(605)};if(a(),o[s(583)](s(611),t=>{const e=s;t.stopPropagation(),i[e(548)]=!i[e(548)],a(),this.debug&&console[e(515)](e(586)+(i[e(548)]?e(548):e(524)))}),o[s(583)](s(496),()=>{const t=s;o.style.background=t(598),o[t(520)].transform="scale(1.1)"}),o.addEventListener(s(576),()=>{const t=s;o[t(520)][t(578)]=t(580),o[t(520)].transform=t(555)}),e.videoUrl){i[s(536)]=e[s(567)];const t=()=>{const t=s;i[t(566)]&&i[t(548)]&&i.paused&&i[t(534)]()[t(574)](e=>{const n=t;this[n(609)]&&(console[n(517)](n(592),e),console[n(517)](n(597))),i[n(548)]=!0,i[n(534)]()[n(574)](t=>{const e=n;this[e(609)]&&console[e(564)](e(565),t)})})};i[s(583)](s(551),()=>{this[s(609)]&&console.log("🎬 Video metadata loaded, attempting autoplay..."),t()}),i[s(583)](s(585),()=>{const e=s;this[e(609)]&&console[e(515)](e(512)),t()}),i[s(583)](s(527),()=>{const e=s;this[e(609)]&&console[e(515)](e(571)),t()}),setTimeout(()=>{const e=s;this[e(609)]&&console[e(515)](e(503)),t()},100)}else if(e.imageUrl){const n=document[s(613)](s(532));return n.src=e[s(537)],n[s(520)][s(559)]=s(556),n.style.height=s(556),n[s(520)][s(575)]=s(570),n.alt=e.title||s(533),void t[s(510)](n)}tt[s(558)](i,e,n,()=>this.createEventTrackingCallback(),this[s(609)],s(549)),i[s(583)]("error",i=>{const r=s;if(console[r(564)]("Video load failed:",i),e.imageUrl){const s=document[r(613)]("img");s.src=e[r(537)],s[r(520)][r(559)]="100%",s.style.height="100%",s[r(520)][r(575)]=r(570),s[r(591)]=e[r(543)]||"Video thumbnail",tt[r(558)](s,e,n,()=>this.createEventTrackingCallback(),this.debug,r(545)),t[r(573)]="",t[r(510)](s)}}),t[s(510)](i),t[s(510)](o),this[s(609)]&&console[s(515)]("🎬 Video element created for ad: "+e._id+s(554)+i[s(566)]+s(498)+i.muted+s(579)+i[s(607)]+")")}}const Mt=Ut;function Pt(){const t=["2200RvBOtc","createElement","log","12QBwrEp","getDefaultHeight","cssText","div","containerId","21630qJyZxV","button","style","_blank","_id","3696848YAMNAW","length","className","backgroundColor","2709AFTjXG","Learn More","linkUrl","advertisementEventTracker","316196dundOg","NATIVE","9DuQPgX","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","textContent","debug","getElementById","470650kvOjGf","title","src","img","addEventListener","adstage-ad adstage-native-ad","21810252olRiVs","renderMultipleAds","1Fnrnvp","🏠 Single native ad rendered: ","open","31944ECiXoc","Native Advertisement","appendChild","): ","611670HYyDeq","imageUrl","\n margin: 0 0 8px 0;\n font-size: 16px;\n font-weight: 600;\n color: #111827;\n line-height: 1.3;\n ","renderAdElement"];return(Pt=function(){return t})()}function Ut(t,e){const n=Pt();return(Ut=function(t,e){return n[t-=148]})(t,e)}!function(){const t=Ut,e=Pt();for(;;)try{if(881805===-parseInt(t(184))/1*(parseInt(t(176))/2)+parseInt(t(151))/3*(parseInt(t(169))/4)+parseInt(t(191))/5+-parseInt(t(156))/6*(-parseInt(t(165))/7)+parseInt(t(161))/8*(parseInt(t(171))/9)+-parseInt(t(148))/10*(-parseInt(t(187))/11)+-parseInt(t(182))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt extends ht{constructor(t=!1,e){super(o[Ut(170)],t,e)}[Mt(152)](){return"200px"}async[Mt(194)](t,e){const n=Mt,s=document[n(175)](t[n(155)]);if(!s)return;const i=document[n(149)](n(154));if(i[n(163)]=n(181),i[n(158)][n(153)]="\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n padding: 16px;\n background: #fff;\n border: 1px solid #e5e7eb;\n border-radius: 8px;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);\n ",e[n(177)]){const t=document[n(149)]("h3");t.textContent=e[n(177)],t[n(158)].cssText=n(193),i[n(189)](t)}if(e[n(173)]){const t=document.createElement("p");t[n(173)]=e[n(173)],t[n(158)].cssText="\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ",i[n(189)](t)}if(e[n(192)]){const t=document[n(149)](n(154));t[n(158)].cssText="\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ";const s=document.createElement(n(179));s[n(178)]=e[n(192)],s.alt=e.title||n(188),s[n(158)][n(153)]=n(172),t[n(189)](s),i[n(189)](t)}if(e[n(167)]){const t=document[n(149)](n(157));t.textContent=n(166),t[n(158)][n(153)]="\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.addEventListener("click",()=>{const t=n;this[t(168)]&&console.log("Native click tracked for ad: "+e[t(160)]),window[t(186)](e.linkUrl,t(159))}),t[n(180)]("mouseenter",()=>{const e=n;t[e(158)][e(164)]="#2563eb"}),t.addEventListener("mouseleave",()=>{const e=n;t[e(158)][e(164)]="#3b82f6"}),i.appendChild(t)}s.innerHTML="",s[n(189)](i),this[n(174)]&&console[n(150)](n(185)+e[n(160)])}async[Mt(183)](t,e){const n=Mt;e[n(162)]>0?(await this[n(194)](t,e[0]),this[n(174)]&&console.log("🏠 Native ad rendered (first of "+e[n(162)]+n(190)+t.id)):this[n(174)]&&console.warn("⚠️ No native advertisements available for slot: "+t.id)}}const Ft=Nt;function Vt(){const t=["removeEventListener","getElementById","1000XXIdUe","5445630lgfcSx","#6b7280","closeInterstitial","debug","linkUrl","target","7SpmbmM","876535qUmMtK","src","title","7488228OWKhUC","color","style","removeChild","\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","🖼️ Interstitial ad rendered: ","appendChild","2227912xCxEOY","9580KwPmgN","keydown","⚠️ 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 ","4VIGqiX","textContent","Interstitial click tracked for ad: ","log","284933KoqFMf","\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ","fadeOut 0.3s ease-out forwards","adstage-interstitial-overlay","mouseleave","Escape","#3b82f6","mouseenter","getDefaultHeight","innerHTML","img","click","containerId","addEventListener","createElement","110PMzeuQ","#f3f4f6","button","advertisementEventTracker","alt","400px","warn","backgroundColor","parentNode","adstage-interstitial-styles","cssText","🖼️ Interstitial ad closed","renderAdElement","length","#374151","#e5e7eb","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","className","renderMultipleAds","_id","body","\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 ","3323580whGRZT","div","animation"];return(Vt=function(){return t})()}function Nt(t,e){const n=Vt();return(Nt=function(t,e){return n[t-=115]})(t,e)}!function(){const t=Nt,e=Vt();for(;;)try{if(639090===parseInt(t(156))/1*(parseInt(t(152))/2)+-parseInt(t(124))/3+-parseInt(t(129))/4*(-parseInt(t(148))/5)+parseInt(t(140))/6+parseInt(t(136))/7*(-parseInt(t(147))/8)+parseInt(t(130))/9+parseInt(t(171))/10*(-parseInt(t(137))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class _t extends ht{constructor(t=!1,e){super(o.INTERSTITIAL,t,e)}[Ft(164)](){return Ft(176)}async[Ft(183)](t,e){const n=Ft;if(!document[n(128)](t[n(168)]))return;const s=document[n(170)]("div");s[n(119)]=n(159),s[n(142)].cssText=n(151);const i=document[n(170)](n(125));i[n(119)]="adstage-interstitial-content",i[n(142)][n(181)]="\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 r=document[n(170)](n(173));if(r[n(165)]="×",r[n(142)][n(181)]="\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 ",r[n(169)]("click",()=>{this.closeInterstitial(s)}),r[n(169)]("mouseenter",()=>{const t=n;r[t(142)][t(178)]=t(117),r[t(142)][t(141)]=t(116)}),r[n(169)](n(160),()=>{const t=n;r.style.backgroundColor=t(172),r[t(142)][t(141)]=t(131)}),e.imageUrl){const t=document[n(170)](n(166));t[n(138)]=e.imageUrl,t[n(175)]=e[n(139)]||"Interstitial Advertisement",t.style[n(181)]=n(118),i[n(146)](t)}if(e.title){const t=document.createElement("h2");t[n(153)]=e[n(139)],t.style.cssText=n(157),i[n(146)](t)}if(e[n(153)]){const t=document[n(170)]("p");t.textContent=e[n(153)],t.style[n(181)]=n(144),i[n(146)](t)}if(e[n(134)]){const t=document[n(170)](n(173));t[n(153)]="Get Started",t[n(142)][n(181)]=n(123),t[n(169)](n(167),()=>{const t=n;this[t(174)]&&console[t(155)](t(154)+e[t(121)]),window.open(e[t(134)],"_blank"),this[t(132)](s)}),t[n(169)](n(163),()=>{const e=n;t[e(142)][e(178)]="#2563eb"}),t[n(169)](n(160),()=>{const e=n;t[e(142)].backgroundColor=e(162)}),i[n(146)](t)}const o=t=>{const e=n;t.key===e(161)&&(this.closeInterstitial(s),document[e(127)]("keydown",o))};if(document[n(169)](n(149),o),s[n(169)](n(167),t=>{const e=n;t[e(135)]===s&&this[e(132)](s)}),!document[n(128)](n(180))){const t=document[n(170)](n(142));t.id="adstage-interstitial-styles",t[n(153)]="\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 ",document.head[n(146)](t)}i[n(146)](r),s[n(146)](i),document[n(122)][n(146)](s),this[n(133)]&&console[n(155)](n(145)+e._id)}async[Ft(120)](t,e){const n=Ft;e[n(115)]>0?(await this[n(183)](t,e[0]),this[n(133)]&&console.log("🖼️ Interstitial ad rendered (first of "+e.length+"): "+t.id)):this.debug&&console[n(177)](n(150)+t.id)}[Ft(132)](t){const e=Ft;t[e(142)][e(126)]=e(158),setTimeout(()=>{const n=e;t[n(179)]&&t[n(179)][n(143)](t)},300),this.debug&&console[e(155)](e(182))}}const Ot=Ht;function Ht(t,e){const n=Kt();return(Ht=function(t,e){return n[t-=292]})(t,e)}function Kt(){const t=["3771810pdlySW","renderAdSlider","adstage-ad adstage-","debug","1117902fIUCdv","renderOptimizedBannerImage is only supported for BANNER ads","textContent","🏭 AdRenderer factory initialized with ","div","createPlaceholder","1TKYiuG","initializeRenderers","NATIVE","src","calculateOptimalContainerSize","getDefaultHeightForAdType","getRenderer","renderers"," renderers","onload","100%","1631105nEZzXz","set","border","renderMultipleAds","248ZEDDZm","setAttribute","data-adstage-slot-id","onerror","block","VIDEO","getDefaultHeight","1px dashed #ccc","style","advertisementEventTracker","854029lVfjTZ","display","advertisement","renderOptimizedBannerImage","Failed to load image: ","20nyDpVY","createElement","height","createAdElement","No renderer found for ad type: ","videoUrl","32061KuyTza","8px","width","TEXT","appendChild","3529512eVIPAz","No advertisement to render","_id","data-adstage-ad-id","calculateAdSize","⚠️ Container optimization is only supported for BANNER ads, got: ","objectFit","adType","INTERSTITIAL","renderAdElement","loadImageDimensions","log","optimizeContainerForBannerAds","imageUrl","BANNER","120092wCrKKw","#f9f9f9","warn","config","44FIoEgC","backgroundColor"];return(Kt=function(){return t})()}!function(){const t=Ht,e=Kt();for(;;)try{if(402779===parseInt(t(354))/1*(-parseInt(t(348))/2)+-parseInt(t(318))/3*(-parseInt(t(342))/4)+parseInt(t(293))/5+-parseInt(t(323))/6+parseInt(t(338))/7*(parseInt(t(297))/8)+parseInt(t(344))/9+-parseInt(t(312))/10*(-parseInt(t(307))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Wt{constructor(t=!1,e){const n=Ht;this[n(361)]=new Map,this[n(347)]=t,this[n(306)]=e||null,this[n(355)]()}initializeRenderers(){const t=Ht;this[t(361)].set(o.BANNER,new It(this[t(347)],this.advertisementEventTracker)),this.renderers[t(294)](o[t(321)],new Tt(this.debug,this[t(306)])),this[t(361)].set(o[t(302)],new Bt(this[t(347)],this[t(306)])),this[t(361)][t(294)](o[t(356)],new Lt(this.debug,this.advertisementEventTracker)),this.renderers[t(294)](o[t(331)],new _t(this.debug,this.advertisementEventTracker)),this.debug&&console[t(334)](t(351)+this[t(361)].size+t(362))}[Ot(315)](t,e){const n=Ot,s=this[n(360)](t.adType),i=document[n(313)](n(352));i.className=n(346)+String(t[n(330)]).toLowerCase(),i.setAttribute(n(326),e[n(325)]),i[n(298)](n(299),t.id);const{width:r,height:a}=s[n(327)](i,t[n(341)]||{},e);switch(i[n(305)][n(320)]=r,i[n(305)][n(314)]=a,i[n(305)][n(308)]=n(301),t[n(330)]){case o.BANNER:if(e[n(336)]){const t=document[n(313)]("img");t[n(357)]=e.imageUrl,t[n(305)][n(320)]=n(292),t[n(305)][n(314)]="100%",t[n(305)][n(329)]="cover",i[n(322)](t)}break;case o[n(302)]:if(e[n(317)]){const t=document[n(313)]("video");t[n(357)]=e.videoUrl,t[n(305)][n(320)]="100%",t.style.height=n(292),i[n(322)](t)}break;case o[n(321)]:if(e.textContent){const t=document[n(313)](n(352));t[n(350)]=e[n(350)]||"",t[n(305)].padding=n(319),i.appendChild(t)}break;default:i[n(305)][n(295)]=n(304),i[n(305)][n(343)]=n(339),i.textContent=t.adType+" Ad"}return i}[Ot(360)](t){const e=Ot,n=this[e(361)].get(t);if(!n)throw new Error(e(316)+t);return n}createPlaceholder(t,e,n,s,i){const r=Ot;this[r(360)](n)[r(353)](t,e,s,i)}async[Ot(335)](t,e){const n=Ot;if(t[n(330)]!==o[n(337)])return void(this.debug&&console[n(340)](n(328)+t[n(330)]));const s=this[n(360)](o[n(337)]);await s.optimizeContainerForBannerAds(t,e)}async[Ot(345)](t,e){const n=Ot,s=this.getRenderer(t[n(330)]);await s[n(296)](t,e)}async renderAd(t){const e=Ot;if(!t[e(309)])throw new Error(e(324));const n=this[e(360)](t[e(330)]);await n[e(332)](t,t[e(309)]),t.isLoaded=!0}async renderAdElement(t,e){const n=Ot,s=this.getRenderer(t[n(330)]);await s.renderAdElement(t,e)}renderFallback(t){const e=Ot;this[e(360)](t[e(330)]).renderFallback(t)}[Ot(359)](t){return this[Ot(360)](t).getDefaultHeight()}[Ot(327)](t,e,n,s){return this.getRenderer(e).calculateAdSize(t,n,s)}[Ot(333)](t){return new Promise((e,n)=>{const s=Ht,i=new Image;i[s(363)]=()=>{e({width:i.naturalWidth,height:i.naturalHeight})},i[s(300)]=()=>{n(new Error(s(311)+t))},i.src=t})}async[Ot(310)](t,e,n){const s=Ot;if(n[s(330)]!==o[s(337)])throw new Error(s(349));const i=this[s(360)](o[s(337)]);return await i.renderOptimizedBannerImage(t,e,n)}async[Ot(358)](t,e,n){const s=Ot;if(n!==o.BANNER){return{width:"100%",height:this[s(360)](n)[s(303)](),aspectRatio:16/9}}const i=this[s(360)](o[s(337)]);return await i[s(358)](t,e)}[Ot(334)](t,...e){const n=Ot;this[n(347)]&&console[n(334)]("[AdRenderer] "+t,...e)}}const jt=qt;function qt(t,e){const n=Xt();return(qt=function(t,e){return n[t-=427]})(t,e)}function Xt(){const t=["renderFallback","slots","_isReady","viewabilityTracker","autoplay","debug","create","refreshAdSlot","advertisements","autoSlide","append","height","❌ Failed to find element for viewability tracking: ","setAttribute","loop","data-adstage-slot-id"," attempts: ","forEach","language","fetchAdData","warn","from","config","mutationObserver","adRenderer","🧹 Auto-cleanup: slot ","Failed to refresh ad slot: ","getElementById","length","adType","503454LUXEth","auto","renderAd","containerId","🎯 Simple viewability tracking started for slot: ","playsinline"," (element found)","removedNodes","Ads module not initialized. Call AdStage.init() first.","✅ Ad loaded for slot: ","createAdInternal","destroy","_id","status","INTERSTITIAL","clear","banner","observe","❌ Failed to track viewable impression:","GET","getSlotById","📊 Fetched ","country","✅ Simple viewable impression tracked for ad ",", filters:","native","handleViewableEvent","get","_config","5309QbDZEc","init","356dvDFVz","video","autoDestroy","100%","253775QFGCxa","❌ Failed to load ad for slot: ","24746770pGBkFc","customControls","destroyModule","Failed to fetch ad data: ","30VCkinp","📊 Advertisement event tracking enabled for slot: ","ensureReady","🔄 Retrying viewability tracking for slot: ","log","1376739FMHmtI","Ad slot not found: ","nodeType","ms... (attempt ","ELEMENT_NODE","🔄 Ad slot refreshed: ","delete","🗑️ Ad slot destroyed: ","advertisement","trackAdvertisementEvent","6024510svrdag","[data-adstage-slot-id]","📊 Fetched specific ad with ID: ","🚫 Advertisement not found with ID: ","handleRemovedElement","renderAdElement","json","getConfig","API key not configured","refresh","toString","then","🗑️ Ads module destroyed","adId","setupAutoCleanup","querySelectorAll","VIEWABLE","TEXT","deviceType","disconnect","hideControls","🎠 Slider will handle VIEWABLE events for ","values","string","renderAdSlider","🔍 Auto-cleanup MutationObserver enabled"," removed","auto-","getBaseUrl","VIDEO","🎯 Ads module initialized (sync mode) with auto-cleanup",". Retrying in ","createAd","innerHTML","width","slideInterval","set","getAllSlots","muted"," ads for type: ","New advertisement viewable tracked for slot:","Auto-cleanup failed for slot ","84PQATug","controls","Container not found after ","Container not found: ","error"," (attempt ","onClick","apiKey","advertisementEventTracker","loadAdContentInBackground","7874296WAEWBm","createAdWithRetry","undefined","text","BANNER","random"];return(Xt=function(){return t})()}!function(){const t=qt,e=Xt();for(;;)try{if(669600===-parseInt(t(556))/1*(-parseInt(t(558))/2)+parseInt(t(429))/3+parseInt(t(481))/4*(parseInt(t(562))/5)+parseInt(t(568))/6*(parseInt(t(527))/7)+parseInt(t(491))/8+-parseInt(t(439))/9+-parseInt(t(564))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Jt{constructor(){const t=qt;this[t(499)]=!1,this._config=null,this[t(498)]=new Map,this[t(489)]=null,this[t(521)]=null,this[t(520)]=null}[jt(557)](t){const e=jt;this[e(555)]=t,this[e(489)]=new L(X[e(467)](),t[e(488)],t[e(502)]||!1,this[e(498)]),this[e(521)]=new Wt(t[e(502)]||!1,this[e(489)]),this[e(453)](),this[e(499)]=!0,t[e(502)]&&console[e(428)](e(469))}isReady(){return this[jt(499)]}[jt(446)](){return this[jt(555)]}[jt(543)](t,e){const n=jt;this[n(570)]();const s={width:e?.[n(473)]||n(561),height:e?.height||n(528),autoSlide:e?.[n(506)]||!1,slideInterval:e?.[n(474)]||5e3,onClick:e?.[n(487)],adId:e?.[n(452)],language:e?.[n(515)],deviceType:e?.[n(457)],country:e?.[n(549)]};return this.createAd(t,o[n(495)],s)}[jt(494)](t,e){const n=jt;this.ensureReady();const s={maxLines:e?.maxLines||3,style:e?.style||"default",onClick:e?.[n(487)],adId:e?.[n(452)],language:e?.language,deviceType:e?.[n(457)],country:e?.[n(549)]};return this[n(471)](t,o[n(456)],s)}[jt(559)](t,e){const n=jt;this[n(570)]();const s={width:e?.[n(473)]||640,height:e?.[n(508)]||360,autoplay:void 0===e?.autoplay||e[n(501)],muted:void 0===e?.[n(477)]||e.muted,loop:void 0===e?.[n(511)]||e[n(511)],playsinline:!1!==e?.[n(532)],controls:void 0!==e?.[n(482)]&&e[n(482)],hideControls:e?.[n(459)]||!1,customControls:e?.[n(565)],autoSlide:!1,maxAds:1,onClick:e?.onClick,...e?.[n(452)]&&{adId:e[n(452)]}};return this[n(471)](t,o[n(468)],s)}[jt(552)](t,e){const n=jt;return this[n(570)](),this[n(471)](t,o.NATIVE,e||{})}interstitial(t,e){const n=jt;return this[n(570)](),this[n(471)](t,o[n(541)],e||{})}[jt(448)](t){const e=jt;this[e(570)]();const n=this[e(498)][e(554)](t);if(!n)throw new Error(e(430)+t);this.refreshAdSlot(n),this._config?.debug&&console[e(428)](e(434)+t)}[jt(538)](t){const e=jt;this[e(570)]();const n=this.slots[e(554)](t);if(!n)throw new Error(e(430)+t);n.viewabilityTracker&&n[e(500)][e(538)]();const s=document.getElementById(n[e(530)]);s&&(s[e(472)]=""),this.slots[e(435)](t),this[e(555)]?.[e(502)]&&console[e(428)](e(436)+t)}[jt(476)](){const t=jt;return this[t(570)](),Array[t(518)](this.slots[t(461)]())}[jt(547)](t){const e=jt;return this[e(570)](),this[e(498)][e(554)](t)||null}[jt(471)](t,e,n){const s=jt;if(!this[s(555)]?.apiKey)throw new Error(s(447));const i="adstage-"+e+"-"+Date.now()+"-"+Math[s(496)]()[s(449)](36).substr(2,9);return this.createAdWithRetry(t,e,n,i,0),i}async[jt(492)](t,e,n,s,i){const r=jt,o=[0,50,100,200,500];let a,c=null;if(typeof t===r(462)){if(a=t,c=document[r(524)](t),!c)return i<4?(this._config?.[r(502)]&&console[r(517)](r(484)+t+r(470)+o[i+1]+r(432)+(i+1)+"/5)"),void setTimeout(()=>{this[r(492)](t,e,n,s,i+1)},o[i+1])):void console[r(485)](r(483)+5+r(513)+t)}else c=t,a=c.id||r(466)+s,!c.id&&(c.id=a);try{this.createAdInternal(a,e,n,s,c)}catch(t){console[r(485)]("광고 생성 중 오류 발생:",t)}}[jt(537)](t,e,n,s,i){const r=jt;i[r(510)](r(512),s),this.adRenderer?.createPlaceholder(i,s,e,n,this[r(555)]);const a={id:s,containerId:t,adType:e,width:n[r(473)]||r(561),height:n[r(508)]||(e===o[r(456)]?r(528):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this[r(516)](e,n)[r(450)](t=>t[0]||null),render:t=>this[r(521)]?.renderAdElement(a,t),refresh:async()=>this[r(504)](a),destroy:()=>this[r(538)](s)};this[r(498)][r(475)](s,a),this[r(490)](a),this[r(489)]&&this[r(555)]?.debug&&console[r(428)](r(569)+s)}async loadAdContentInBackground(t){const e=jt;try{const n=await this.fetchAdData(t[e(526)],t[e(519)]);if(!n||0===n[e(525)])return void this[e(521)]?.[e(497)](t);t.adType===o[e(495)]&&n[e(525)]>0&&await(this[e(521)]?.optimizeContainerForBannerAds(t,n)),n.length>1||t[e(519)]?.[e(506)]?(await(this.adRenderer?.[e(463)](t,n)),this[e(555)]?.debug&&console[e(428)](e(460)+n.length+" ads automatically")):(t[e(437)]=n[0],await(this[e(521)]?.[e(444)](t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t.isLoaded=!0,this[e(555)]?.debug&&console[e(428)](e(536)+t.id+" ("+n[e(525)]+" ads)")}catch(n){console.error(e(563)+t.id,n),this[e(521)]?.[e(497)](t)}}startSimpleViewabilityTracking(t,e){const n=(s=0)=>{const i=qt,r=document[i(524)](t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this[i(555)]?.[i(502)]&&console[i(428)](i(427)+t.id+i(486)+(s+1)+")")):console[i(517)](i(509)+t.id));const o=new N(r,async()=>{const n=i;await this[n(553)](e,t)});t[i(500)]=o,this._config?.[i(502)]&&console[i(428)](i(531)+t.id+i(533))};n()}async[jt(553)](t,e){const n=jt;try{this[n(489)]&&(await this.advertisementEventTracker[n(438)](t._id,e.id,p[n(455)]),this[n(555)]?.[n(502)]&&console.log(n(550)+t[n(539)]))}catch(t){console[n(485)](n(545),t)}}async[jt(516)](t,e){const n=jt;if(!this[n(555)]?.[n(488)])throw new Error(n(447));if(e[n(452)]){const t=""+X.advertisements.detail(e[n(452)]),s=await fetch(t,{method:n(546),headers:B[n(503)](this[n(555)][n(488)])});if(!s.ok){if(404===s[n(540)])return console[n(517)](n(442)+e.adId),[];throw new Error(n(567)+s[n(540)])}const i=await s.json();return this[n(555)]?.[n(502)]&&console[n(428)](n(441)+e[n(452)],i),[i]}const s=new URLSearchParams;s[n(507)](n(526),t),e[n(515)]&&s[n(507)](n(515),e[n(515)]),e[n(457)]&&s.append(n(457),e.deviceType),e[n(549)]&&s[n(507)](n(549),e.country);const i=X[n(505)].list()+"?"+s[n(449)](),r=await fetch(i,{method:n(546),headers:B[n(503)](this[n(555)][n(488)])});if(!r.ok)throw new Error(n(567)+r[n(540)]);const o=(await r[n(445)]())[n(505)]||[];return this[n(555)]?.[n(502)]&&console[n(428)](n(548)+o[n(525)]+n(478)+t+n(551),{language:e.language,deviceType:e[n(457)],country:e[n(549)]}),o}async[jt(504)](t){const e=jt;try{const n=await this[e(516)](t[e(526)],t.config||{});n&&n[e(525)]>0&&(t.advertisement=n[0],await(this[e(521)]?.[e(529)](t)),this.advertisementEventTracker&&console[e(428)](e(479),t.id))}catch(n){console[e(485)](e(523)+t.id,n)}}[jt(570)](){const t=jt;if(!this[t(499)])throw new Error(t(535))}[jt(453)](){const t=jt;typeof window!==t(493)&&"undefined"!=typeof document&&(this[t(520)]&&this[t(520)].disconnect(),this[t(520)]=new MutationObserver(e=>{const n=t;e[n(514)](t=>{const e=n;t[e(534)][e(514)](t=>{const n=e;t[n(431)]===Node[n(433)]&&this[n(443)](t)})})}),this[t(520)][t(544)](document.body,{childList:!0,subtree:!0}),this[t(555)]?.debug&&console[t(428)](t(464)))}[jt(443)](t){const e=jt,n=t.getAttribute(e(512));if(n)return void this[e(560)](n);t[e(454)](e(440))[e(514)](t=>{const n=e,s=t.getAttribute(n(512));s&&this[n(560)](s)})}[jt(560)](t){const e=jt;if(this[e(498)].get(t))try{this[e(498)][e(435)](t),this[e(555)]?.[e(502)]&&console[e(428)](e(522)+t+e(465))}catch(n){this._config?.[e(502)]&&console[e(517)](e(480)+t+":",n)}}[jt(566)](){const t=jt,e=this[t(555)]?.[t(502)];this[t(520)]&&(this[t(520)][t(458)](),this.mutationObserver=null),this.slots[t(542)](),this[t(489)]=null,this[t(521)]=null,this._isReady=!1,this._config=null,e&&console[t(428)](t(451))}}var Zt=Yt;function Gt(){var t=["log","getBaseUrl","getConfig","1448STlgvK","🔄 Config updated","create","1669723asCdkt","API key not available","Config module not initialized","getApiEndpoint","4587qKaiWm","isDebugMode","50WVQxjE","getApiHeaders","1084TGHZvW","modules","210264EKMDUy","18441IVbzXN","getEnabledModules","development","isReady","debug","754fbHoMy","config","_organizationInfo","isModuleEnabled","12FzIumJ","✅ Config module initialized (sync mode)","_config","includes","updateConfig","4315020Zdgqzy","init","1006355kMoThy","_isReady","628madhMi","baseUrl","apiKey"];return(Gt=function(){return t})()}function Yt(t,e){var n=Gt();return(Yt=function(t,e){return n[t-=131]})(t,e)}!function(){for(var t=Yt,e=Gt();;)try{if(234430===parseInt(t(147))/1*(-parseInt(t(139))/2)+-parseInt(t(135))/3*(-parseInt(t(160))/4)+-parseInt(t(137))/5*(-parseInt(t(141))/6)+parseInt(t(158))/7+-parseInt(t(166))/8*(parseInt(t(142))/9)+parseInt(t(156))/10+parseInt(t(131))/11*(-parseInt(t(151))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Qt{constructor(){var t=Yt;this._isReady=!1,this[t(153)]=null,this[t(149)]=null}[Zt(157)](t){var e=Zt;this._config={timeout:3e4,debug:!1,modules:["ads","events",e(148)],...t},t[e(161)]&&X.setBaseUrl(t.baseUrl),this[e(159)]=!0,t.debug&&console[e(163)](e(152),{modules:this[e(153)][e(140)],endpoint:X[e(164)](),mode:e(144)})}[Zt(145)](){return this._isReady}[Zt(165)](){return this[Zt(153)]}getOrganizationInfo(){return this[Zt(149)]}[Zt(134)](){return X[Zt(164)]()}[Zt(136)](){var t=Zt;return this[t(153)]?.[t(146)]||!1}[Zt(143)](){return this._config?.modules||[]}[Zt(150)](t){var e=Zt;return this[e(143)]()[e(154)](t)}[Zt(155)](t){var e=Zt;if(!this[e(153)])throw new Error(e(133));this[e(153)]={...this[e(153)],...t},this.isDebugMode()&&console.log(e(167),t)}[Zt(138)](){var t=Zt;if(!this[t(153)]?.[t(162)])throw new Error(t(132));return B[t(168)](this[t(153)][t(162)])}}function $t(t,e){const n=ee();return($t=function(t,e){return n[t-=309]})(t,e)}const te=$t;function ee(){const t=["getViewportInfo","925290pHBquP","getAutoDetectedDeviceInfo","isBrowser","getDeviceInfo","7140RLUWnp","getDetailedInfo","android","19733bGsiBR","mapPlatformForEvents","_userProvidedDeviceInfo","isMobile","iOS","other","clearDeviceInfo","cookieEnabled","8496ouXelo","1524294UJkzDZ","language","platform","web","userAgent","setDeviceInfo","SSR","Mobile Web","Desktop Web","75KDaWwE","Unknown","height","26003JGeYQZ","568XUDjqv","ko-KR","830CEQDyw","11858CTCDaS","width","test","getPlatform","desktop","ios","10JtapMI","21520cWyDTG"];return(ee=function(){return t})()}!function(){const t=$t,e=ee();for(;;)try{if(124883===parseInt(t(320))/1*(parseInt(t(330))/2)+-parseInt(t(317))/3*(parseInt(t(331))/4)+-parseInt(t(323))/5*(parseInt(t(348))/6)+-parseInt(t(340))/7*(parseInt(t(321))/8)+-parseInt(t(349))/9+parseInt(t(333))/10+-parseInt(t(324))/11*(-parseInt(t(337))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ne{static[te(336)](){const t=te;return{...ne[t(334)](),...ne[t(342)]}}static getAutoDetectedDeviceInfo(){const t=te;if(!w[t(335)]())return{category:t(345),platform:t(314),model:t(314),osVersion:"SSR"};const e=navigator[t(312)].toLowerCase();let n="desktop";/tablet|ipad/[t(326)](e)?n="tablet":T[t(343)]()&&(n="mobile");const s=T[t(327)]();return{category:n,platform:ne[t(341)](s),model:navigator[t(310)],osVersion:navigator.platform}}static[te(313)](t){const e=te;ne[e(342)]={...ne[e(342)],...t}}static setDeviceProperty(t,e){ne[te(342)][t]=e}static[te(346)](){ne[te(342)]={}}static getUserDeviceInfo(){return{...ne._userProvidedDeviceInfo}}static mapPlatformForEvents(t){const e=te;switch(t){case e(329):return e(344);case e(339):return"Android";case e(311):return e(315);case e(328):return e(316);default:return e(318)}}static[te(338)](){const t=te;if(!w[t(335)]())return{userAgent:t(314),language:"ko-KR",platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:"0x0",viewportSize:"0x0"};const e=w[t(332)]();return{userAgent:navigator[t(312)],language:navigator[t(309)]||t(322),platform:navigator[t(310)],cookieEnabled:navigator[t(347)],onLine:navigator.onLine,screenResolution:screen[t(325)]+"x"+screen[t(319)],viewportSize:e[t(325)]+"x"+e[t(319)]}}}function se(){const t=["setUserProperty","35334360tfmiYS","991002fxcjKp","2223374zPgjOu","getBaseUserInfo","_userProperties","clearUserProperties","isBrowser","50sZvPRY","DateTimeFormat","UTC","resolvedOptions","getUserInfo","getCurrentUserProperties","2701084vQNVgz","ko-KR","361592RDhTkk","896454NspHjX","setUserProperties","estimateLocation","1925451AxGwjk"];return(se=function(){return t})()}ne[te(342)]={};const ie=re;function re(t,e){const n=se();return(re=function(t,e){return n[t-=335]})(t,e)}!function(){const t=re,e=se();for(;;)try{if(801814===-parseInt(t(340))/1+-parseInt(t(341))/2+-parseInt(t(337))/3+parseInt(t(352))/4+-parseInt(t(346))/5*(parseInt(t(355))/6)+-parseInt(t(354))/7+parseInt(t(339))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class oe{static[ie(350)](){return{...oe[ie(342)](),...oe._userProperties}}static[ie(342)](){const t=ie;if(!w.isBrowser())return{language:t(353),country:"KR"};const e=navigator.language||t(353);return{language:e,country:oe.extractCountryFromLanguage(e)}}static extractCountryFromLanguage(t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t.split("-")[0]]||"KR"}static[ie(335)](t){const e=ie;oe[e(343)]={...oe[e(343)],...t}}static[ie(338)](t,e){oe[ie(343)][t]=e}static[ie(344)](){oe[ie(343)]={}}static[ie(351)](){return{...oe[ie(343)]}}static[ie(336)](){const t=ie;if(!w[t(345)]())return{timezone:t(348),estimatedCountry:"KR"};const e=Intl[t(347)]()[t(349)]().timeZone;return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function ae(t,e){const n=de();return(ae=function(t,e){return n[t-=453]})(t,e)}oe._userProperties={};const ce=ae;function de(){const t=["adstage_user_id","isNewSession","session_","clearUserId","3464RUtZLP","_userId","11080504TgOBqJ","5457928VbGnLt","getSessionDuration","random","isSessionExpired","ssr_session_","7042752LcnwrH","setItem","removeItem","adstage_session_start","setUserId","adstage_session_id","toString","_sessionStartTime","getSessionStats","55IZydcS","getItem","4xRwffc","getUserId","now","12JctkpY","5805570XVoyVz","refreshSession","2731740oNoChF","382reHvcn","4969386FHAbDd","isBrowser","getSessionId","getSessionInfo"];return(de=function(){return t})()}!function(){const t=ae,e=de();for(;;)try{if(923963===-parseInt(t(457))/1*(-parseInt(t(483))/2)+-parseInt(t(484))/3*(parseInt(t(476))/4)+parseInt(t(480))/5+-parseInt(t(479))/6*(-parseInt(t(460))/7)+-parseInt(t(459))/8+-parseInt(t(465))/9+parseInt(t(482))/10*(parseInt(t(474))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class le{static[ce(486)](){const t=ce;if(!w[t(485)]())return t(464)+Date[t(478)]();const e=sessionStorage[t(475)](t(470));if(e)return e;const n=t(455)+Math[t(462)]()[t(471)](36).substr(2,9)+"_"+Date[t(478)]();return sessionStorage[t(466)](t(470),n),!le[t(472)]&&(le[t(472)]=Date[t(478)](),w[t(485)]()&&sessionStorage.setItem(t(468),String(le[t(472)]))),n}static[ce(469)](t){const e=ce;le[e(458)]=t,w[e(485)]()&&localStorage[e(466)](e(453),t)}static getUserId(){const t=ce;if(le[t(458)])return le[t(458)];if(w.isBrowser()){const e=localStorage[t(475)](t(453));if(e)return le[t(458)]=e,e}}static[ce(456)](){const t=ce;le._userId=void 0,w[t(485)]()&&localStorage.removeItem("adstage_user_id")}static[ce(487)](){const t=ce,e=le.getSessionId(),n=le[t(477)](),s=le.isNewSession();return{sessionId:e,userId:n,sessionDuration:le[t(461)](),isNewSession:s}}static[ce(454)](){const t=ce;if(!w[t(485)]())return!0;const e=sessionStorage[t(475)](t(470)),n=sessionStorage.getItem(t(468));return!e||!n}static[ce(461)](){const t=ce;if(!w[t(485)]())return 0;const e=sessionStorage[t(475)](t(468));return e?Date[t(478)]()-parseInt(e,10):0}static[ce(481)](){const t=ce;return w[t(485)]()&&(sessionStorage[t(467)](t(470)),sessionStorage[t(467)](t(468))),le[t(472)]=void 0,le[t(486)]()}static[ce(463)](t=24){return le[ce(461)]()>60*t*60*1e3}static[ce(473)](){const t=ce,e=le[t(486)](),n=le[t(477)](),s=le[t(461)](),i=le[t(463)](),r=le.isNewSession();let o;if(w[t(485)]()){const e=sessionStorage[t(475)](t(468));o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:i,isNewSession:r}}}const ue=he;function pe(){const t=["249GzcwZC","getUserId","getUserDeviceInfo","debug","_config","50044IzyFCY","apiKey","5640324ToMmnI","❌ Failed to track event:","setUserId","setDeviceProperty","getSessionId","getUserInfo","35776Qfgeoh","getUserProperties","Events module not initialized. Call AdStage.init() first.","setDeviceInfo","✅ Event tracked:","Event tracking failed: ","getDeviceInfo","stringify","4464060daokZk","getCurrentUserProperties","📊 Events module initialized","5697108qHBCNu","👤 User ID set:","📱 Device property set:","76232mLwMII","👤 User properties set:","track","📱 User provided device info cleared","sendEventToServer","application/json","setUserProperties","log","isReady","clearDeviceInfo","_isReady","📱 Device info set:","error","749FqjjkF","statusText","1277617dILlmQ","create","API key not configured for event tracking.","status","getConfig","warn","Event data:"];return(pe=function(){return t})()}function he(t,e){const n=pe();return(he=function(t,e){return n[t-=375]})(t,e)}!function(){const t=he,e=pe();for(;;)try{if(786954===-parseInt(t(409))/1+-parseInt(t(394))/2+parseInt(t(416))/3*(parseInt(t(421))/4)+parseInt(t(388))/5+-parseInt(t(423))/6+parseInt(t(407))/7*(parseInt(t(380))/8)+parseInt(t(391))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class fe{constructor(){const t=he;this[t(404)]=!1,this[t(420)]=null}init(t){const e=he;this[e(420)]=t,this[e(404)]=!0,t[e(419)]&&console[e(401)](e(390))}[ue(402)](){return this._isReady}[ue(413)](){return this[ue(420)]}[ue(376)](t){const e=ue;le[e(376)](t),this._config?.[e(419)]&&console[e(401)](e(392),t)}[ue(417)](){return le[ue(417)]()}[ue(400)](t){const e=ue;oe[e(400)](t),this[e(420)]?.[e(419)]&&console[e(401)](e(395),t)}[ue(381)](){return oe[ue(389)]()}[ue(383)](t){const e=ue;ne[e(383)](t),this[e(420)]?.[e(419)]&&console[e(401)](e(405),t)}setDeviceProperty(t,e){const n=ue;ne[n(377)](t,e),this[n(420)]?.[n(419)]&&console.log(n(393),t,e)}[ue(403)](){const t=ue;ne[t(403)](),this[t(420)]?.[t(419)]&&console[t(401)](t(397))}[ue(418)](){return ne[ue(418)]()}[ue(386)](){return ne[ue(386)]()}[ue(379)](){return oe[ue(379)]()}[ue(389)](){return oe[ue(389)]()}async[ue(396)](t,e){const n=ue;if(this[n(404)])if(this._config?.[n(422)])try{const s={eventName:t,userId:le[n(417)](),sessionId:le[n(378)](),sdkVersion:'"3.0.6"',device:ne[n(386)](),user:oe[n(379)](),params:e||{}};await this[n(398)](s),this[n(420)][n(419)]&&console[n(401)](n(384),t,e)}catch(s){console[n(406)](n(375),s),this[n(420)][n(419)]&&console.error(n(415),{eventName:t,properties:e})}else console[n(414)](n(411));else console[n(414)](n(382))}async[ue(398)](t){const e=ue,n=await fetch(X.events[e(396)](),{method:"POST",headers:{...B[e(410)](this[e(420)][e(422)]),"Content-Type":e(399)},body:JSON[e(387)](t)});if(!n.ok)throw new Error(e(385)+n[e(412)]+" "+n[e(408)])}}const ge=ve;function me(){const t=["7bvCREZ","3bYfMfv","1107334yDtrnF","development","1017dTcYCM","2620308IWexDM","isReady","40gJWiqB","modules","setBaseUrl","_config","_isInitialized","✅ AdStage Debug: 광고 ","instance","reset","baseUrl","log",")의 viewable 추적 초기화됨","apiKey","24wmprXM","🌐 API endpoint configured:","530111lbFWqr","📊 AdStage Debug: 현재 viewable 추적 상태","getConfig","debug","5234560aGdStw","viewableTracker","config","size","92696xJaEsC","10262527xBLTWN","🚀 AdStage SDK initialized (sync mode)","getInstance","clearAdViewable","ads","773860dCkHWS","init","from","events"];return(me=function(){return t})()}!function(){const t=ve,e=me();for(;;)try{if(880843===parseInt(t(323))/1+-parseInt(t(304))/2*(parseInt(t(303))/3)+parseInt(t(337))/4*(parseInt(t(309))/5)+parseInt(t(307))/6*(parseInt(t(302))/7)+-parseInt(t(331))/8*(-parseInt(t(306))/9)+-parseInt(t(327))/10+-parseInt(t(332))/11*(parseInt(t(321))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ie{constructor(){const t=ve;this[t(313)]=!1,this._config=null,this.config=new Qt,this[t(336)]=new Jt,this[t(301)]=new fe}static[ge(299)](t){const e=ge;!Ie[e(315)]&&(Ie[e(315)]=new Ie);const n=Ie.instance;if(!t[e(320)])throw new Error("API key is required for AdStage initialization");n[e(312)]={timeout:3e4,debug:!1,modules:[e(336),e(301),e(329)],...t},n[e(312)].baseUrl&&(X[e(311)](n[e(312)][e(317)]),t[e(326)]&&console[e(318)](e(322),n._config[e(317)]));const s=n[e(312)][e(310)]||[e(336),e(301),e(329)];for(const t of s){const s=n[t];s&&"function"==typeof s[e(299)]&&s[e(299)](n[e(312)])}n[e(313)]=!0,t[e(326)]&&console[e(318)](e(333),{version:"2.0.0",modules:s,apiKey:t.apiKey.substring(0,8)+"...",mode:e(305)})}static[ge(308)](){const t=ge;return Ie[t(315)]?.[t(313)]||!1}static[ge(325)](){const t=ge;return Ie.instance?.[t(312)]||null}static getInstance(){const t=ge;if(!Ie[t(315)])throw new Error("AdStage not initialized. Call AdStage.init() first.");return Ie[t(315)]}static get[ge(336)](){const t=ge;return Ie[t(334)]()[t(336)]}static get[ge(301)](){const t=ge;return Ie[t(334)]()[t(301)]}static get config(){const t=ge;return Ie[t(334)]()[t(329)]}static[ge(316)](){const t=ge;Ie[t(315)]&&(Ie[t(315)]._isInitialized=!1,Ie.instance[t(312)]=null)}}function ve(t,e){const n=me();return(ve=function(t,e){return n[t-=299]})(t,e)}function ye(t,e){var n=we;return Ie[n(169)]()?Ie.events.track(t,e):(console[n(176)](n(157)),Promise[n(166)]())}function be(t){var e=we;Ie[e(169)]()?Ie[e(163)][e(172)](t):console[e(176)](e(157))}function we(t,e){var n=ke();return(we=function(t,e){return n[t-=155]})(t,e)}function ke(){var t=["isReady","6VPxjQK","setUserProperties","setUserId","318456yvFHtb","352468ZZUkEU","15RREIDz","warn","5665239oIFWIA","21290269ZbXQHz","AdStage not initialized. Call AdStage.init() first.","getUserId","getUserProperties","12gRMozW","21XJPWQT","1592712mPlawn","events","332GWglUv","2493JWViwZ","resolve","40fmfUAk","5477765qsEyFL"];return(ke=function(){return t})()}function Ee(){var t=we;if(Ie[t(169)]())return Ie[t(163)][t(158)]();console[t(176)]("AdStage not initialized. Call AdStage.init() first.")}function xe(t){var e=we;Ie[e(169)]()?Ie[e(163)][e(171)](t):console[e(176)](e(157))}function Se(){var t=we;if(Ie[t(169)]())return Ie[t(163)][t(159)]();console[t(176)](t(157))}Ie.debug={clearAllViewable:()=>{dt.clear(),console.log("✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨")},clearAdViewable:(t,e)=>{const n=ge;dt[n(335)](t,e),console[n(318)](n(314)+t+"("+e+n(319))},getViewableStatus:()=>{const t=ge;console[t(318)](t(324),{trackedCount:dt[t(328)][t(330)],trackedItems:Array[t(300)](dt[t(328)])})}},function(){for(var t=we,e=ke();;)try{if(550783===parseInt(t(165))/1*(-parseInt(t(164))/2)+parseInt(t(175))/3*(-parseInt(t(174))/4)+parseInt(t(168))/5*(parseInt(t(170))/6)+parseInt(t(161))/7*(-parseInt(t(173))/8)+-parseInt(t(155))/9+parseInt(t(167))/10*(-parseInt(t(162))/11)+parseInt(t(160))/12*(parseInt(t(156))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ae=e(null);function Ce({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&Ie.reset(),Ie.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};s(()=>{i&&!r&&u(i)},[i,r]);const p={isInitialized:r,config:a,initialize:u,reset:()=>{try{Ie.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(Ae.Provider,{value:p,children:e})}function Te(){const t=i(Ae);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Re(){const{isInitialized:t}=Te();return t?Ie:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function ze(t,e){var n=De();return(ze=function(t,e){return n[t-=319]})(t,e)}function De(){var t=["1209834zvwmSz","407638CBJkcL","924837ffGyRt","1oMCfvv","2949925OAUVFb","140kqAnxN","230SZIjGv","48oOjloD","92548HPBNzw","2871544VhRoCF","358893JZOXUQ","84TBwTxn"];return(De=function(){return t})()}!function(){for(var t=ze,e=De();;)try{if(551622===-parseInt(t(319))/1*(-parseInt(t(328))/2)+parseInt(t(330))/3+-parseInt(t(324))/4*(-parseInt(t(322))/5)+parseInt(t(323))/6*(-parseInt(t(329))/7)+parseInt(t(325))/8+-parseInt(t(326))/9*(-parseInt(t(321))/10)+parseInt(t(320))/11*(-parseInt(t(327))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Be=Me;function Me(t,e){const n=Pe();return(Me=function(t,e){return n[t-=117]})(t,e)}function Pe(){const t=["undefined","30771590lqpQCV","config","7CboWVt","3749394Znlcce","10320228jEPcKI","events","52iGVFgy","AdStage","255639KTDcHl","1076860dEgCYz","5159240vbvTbh","702562yIHKYK","5XpTFNE"];return(Pe=function(){return t})()}!function(){const t=Me,e=Pe();for(;;)try{if(585437===parseInt(t(121))/1+parseInt(t(123))/2+-parseInt(t(120))/3*(-parseInt(t(118))/4)+parseInt(t(124))/5*(parseInt(t(129))/6)+-parseInt(t(128))/7*(parseInt(t(122))/8)+parseInt(t(130))/9+-parseInt(t(126))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ue="2.0.0",Le=["ads",Be(117),Be(127)];typeof window!==Be(125)&&(window[Be(119)]=Ie);export{Ie as AdStage,Ce as AdStageProvider,Ue as SDK_VERSION,Le as SUPPORTED_MODULES,Ee as getUserId,Se as getUserProperties,be as setUserId,xe as setUserProperties,ye as track,Te as useAdStageContext,Re as useAdStageInstance};
1
+ import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useEffect as s,useContext as i}from"react";var r,o,a,c,d,l,u,p,h,f,g;function m(t,e){var n=I();return(m=function(t,e){return n[t-=435]})(t,e)}function I(){var t=["TABLET","4vpsynr","159617gOuNKj","1464Kmjwow","VIEWABLE","528147ElTmod","256920lBbAsJ","NATIVE","VIDEO","TEXT","MOBILE","738490PJbIVF","DESKTOP","WEB","1340772UkwIMd","POPUP","20fgxlul","2171154eozIpL","INTERSTITIAL","973ATrFoF","BANNER"];return(I=function(){return t})()}!function(){for(var t=m,e=I();;)try{if(255365===-parseInt(t(453))/1*(-parseInt(t(452))/2)+-parseInt(t(436))/3+-parseInt(t(444))/4+-parseInt(t(441))/5+parseInt(t(447))/6+-parseInt(t(449))/7*(-parseInt(t(454))/8)+parseInt(t(435))/9*(parseInt(t(446))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),o=r||(r={}),a=m,o.BANNER=a(450),o[a(445)]=a(445),o[a(448)]="INTERSTITIAL",o[a(437)]=a(437),o[a(438)]=a(438),o[a(439)]="TEXT",(d=c||(c={}))[(l=m)(443)]=l(443),d[l(440)]="MOBILE",(p=u||(u={}))[m(455)]="VIEWABLE",p.CLICK="CLICK",(f=h||(h={}))[(g=m)(442)]="DESKTOP",f[g(440)]=g(440),f[g(451)]=g(451);const v=b;function y(){const t=["safeRemoveChild","ceil","pageXOffset","style","7074568BrPGxv",'"\n \n다음을 확인해보세요:\n1. HTML에 id="',"getWindowProperty","undefined","getElementById","location","querySelectorAll","waitForElements","7263798JMqZae","scrollTop","safeAddClass","safeRemoveEventListener","waitForElement","safeAddEventListener","map","min","7KgFJqw","⏳ 컨테이너 대기 중: ","error","DOMContentLoaded","getViewportInfo","safeGetComputedStyle","safeRemoveClass","log","pageYOffset","ms)","all","115769AXHISi","add"," (최대 ","createElement","2891526nKFBQl","innerWidth","3646809pytStq","getDocumentProperty","ms 경과)","from","removeEventListener",'❌ 컨테이너를 찾을 수 없습니다: "',"referrer","safeQuerySelector","href","getScrollInfo","pow","loading","⏳ 컨테이너 대기 시작: ","1799624KwWTox","remove","safeQuerySelectorAll","canUseDOM","ms (","devicePixelRatio","getPageInfo","setProperty","4kDoArA","open","번째 시도, ","isSSR","getComputedStyle","title","isBrowser","DOM을 사용할 수 없는 환경입니다.","✅ 컨테이너 즉시 발견: ","innerHTML","readyState","2937255yKOKJP","removeChild","번 시도)"];return(y=function(){return t})()}function b(t,e){const n=y();return(b=function(t,e){return n[t-=417]})(t,e)}!function(){const t=b,e=y();for(;;)try{if(718079===parseInt(t(484))/1+parseInt(t(431))/2+-parseInt(t(488))/3+parseInt(t(439))/4*(parseInt(t(450))/5)+-parseInt(t(465))/6+-parseInt(t(473))/7*(-parseInt(t(457))/8)+parseInt(t(418))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class w{static[v(445)](){const t=v;return typeof window!==t(460)&&typeof document!==t(460)}static[v(442)](){return!this[v(445)]()}static[v(434)](){return this.isBrowser()&&void 0!==document.readyState}static safeGetElementById(t){const e=v;return this[e(434)]()?document[e(461)](t):null}static[v(425)](t){return this[v(434)]()?document.querySelector(t):null}static[v(433)](t){const e=v;return this[e(434)]()?Array[e(421)](document[e(463)](t)):[]}static safeCreateElement(t){const e=v;return this.canUseDOM()?document[e(487)](t):null}static[v(470)](t,e,n,s){this[v(434)]()&&t&&t.addEventListener(e,n,s)}static[v(468)](t,e,n,s){const i=v;this[i(434)]()&&t&&t[i(422)](e,n,s)}static[v(459)](t,e){return this[v(445)]()?window[t]??e:e}static[v(419)](t,e){return this[v(434)]()?document[t]??e:e}static safeWindowOpen(t,e,n){const s=v;return this.isBrowser()?window[s(440)](t,e,n):null}static[v(478)](t){const e=v;return this[e(445)]()&&t?window[e(443)](t):null}static isDOMReady(){const t=v;return!!this.canUseDOM()&&document[t(449)]!==t(429)}static waitForDOM(){return new Promise(t=>{const e=b;this[e(434)]()?this.isDOMReady()?t():this[e(470)](document,e(476),()=>t()):t()})}static safeApplyStyles(t,e){const n=v;this[n(434)]()&&t&&Object.entries(e).forEach(([e,s])=>{const i=n;t[i(456)][i(438)](e,s)})}static[v(467)](t,e){const n=v;this.canUseDOM()&&t&&t.classList[n(485)](e)}static[v(479)](t,e){const n=v;this[n(434)]()&&t&&t.classList[n(432)](e)}static safeSetTextContent(t,e){this.canUseDOM()&&t&&(t.textContent=e)}static safeSetInnerHTML(t,e){const n=v;this.canUseDOM()&&t&&(t[n(448)]=e)}static safeAppendChild(t,e){this[v(434)]()&&t&&e&&t.appendChild(e)}static[v(453)](t,e){const n=v;this[n(434)]()&&t&&e&&t[n(451)](e)}static[v(437)](){const t=v;return{url:this[t(459)](t(462),{href:""})[t(426)],title:this[t(419)](t(444),""),referrer:this.getDocumentProperty(t(424),"")}}static[v(477)](){const t=v;return{width:this.getWindowProperty(t(417),0),height:this.getWindowProperty("innerHeight",0),pixelRatio:this[t(459)](t(436),1)}}static[v(427)](){const t=v;return{scrollTop:this[t(434)]()?window[t(481)]||document.documentElement[t(466)]:0,scrollLeft:this[t(459)](t(455),0)}}static async[v(469)](t,e={}){const n=v,{timeout:s=3e3,retryInterval:i=100,debug:r=!1}=e;if(!this[n(434)]())throw new Error(n(446));const o=document[n(461)](t);return o?(r&&console[n(480)](n(447)+t),o):(r&&console[n(480)](n(430)+t+n(486)+s+n(482)),new Promise((e,o)=>{const a=n;let c=0;const d=Math[a(454)](s/i),l=()=>{const n=a;c++;const u=document[n(461)](t);if(u)return r&&console[n(480)]("✅ 컨테이너 발견: "+t+" ("+c+n(441)+c*i+n(420)),void e(u);if(c>=d){const e=n(423)+t+n(458)+t+'" 요소가 있는지 확인\n2. React 등에서 컴포넌트가 렌더링된 후 SDK 호출\n3. 철자가 정확한지 확인\n4. 중복된 ID가 없는지 확인\n\n대기 시간: '+s+n(435)+c+n(452);return r&&console[n(475)](e),void o(new Error(e))}r&&c%10==0&&console[n(480)](n(474)+t+" ("+c+"/"+d+")");const p=Math[n(472)](i*Math[n(428)](1.2,c),500);setTimeout(l,p)};setTimeout(l,i)}))}static async[v(464)](t,e={}){const n=v,s=t[n(471)](t=>this[n(469)](t,e));return Promise[n(483)](s)}}const k=E;function x(){const t=["1185381MkFetp","325090UCgAxw","1733376xyVmUJ","2980068ryhFJI","21KWprtz","AdStageSDK/","113460XzJwwn"," AdStageSDK/","9GLONTL","1037862GFOPIM","1226792JIDIRH","155QWDLeK","undefined",'"3.0.8"',"userAgent"];return(x=function(){return t})()}function E(t,e){const n=x();return(E=function(t,e){return n[t-=472]})(t,e)}!function(){const t=E,e=x();for(;;)try{if(521400===parseInt(t(479))/1+-parseInt(t(472))/2+parseInt(t(485))/3+parseInt(t(476))/4*(parseInt(t(481))/5)+-parseInt(t(473))/6+parseInt(t(474))/7*(-parseInt(t(480))/8)+-parseInt(t(478))/9*(-parseInt(t(486))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const A=k(483);function S(){return A}function T(t,e){const n=D();return(T=function(t,e){return n[t-=339]})(t,e)}const C=T;function D(){const t=["left","isBrowser","10276ykFEVC","ssr_device_",",y:","getScrollInfo","isMobile","toString","height","collectDeviceInfo","getItem","scrollTop","1698975mwYYQw","timeZone","connection","language"," .adstage-slider-wrapper","4ybWkVN","getBoundingClientRect","random","width","pixelRatio","round","getSlotPosition","platform","safeQuerySelector","296lNWRLY","1925638JRbUSL","getViewportInfo","effectiveType","setItem","19922kprnoS","device_","DateTimeFormat","now","generateSessionId","generateDeviceId","web","ios","207924VoLExK","adstage_device_id","adstage_session_id","unknown","toLowerCase","1.0.0","session_","SSR","getPlatform","20ROOxPH","substr","test","safeGetElementById","userAgent","20kQbRqf","ssr_session_","166863HUTVGA","1496480afVLXC","android"];return(D=function(){return t})()}!function(){const t=T,e=D();for(;;)try{if(128648===-parseInt(t(370))/1*(-parseInt(t(358))/2)+-parseInt(t(365))/3*(-parseInt(t(385))/4)+-parseInt(t(363))/5*(parseInt(t(349))/6)+parseInt(t(341))/7*(-parseInt(t(394))/8)+parseInt(t(380))/9+-parseInt(t(366))/10+parseInt(t(395))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class B{static generateDeviceId(){const t=T;if(!w[t(369)]())return t(371)+Date[t(344)]();const e=localStorage.getItem(t(350));if(e)return e;const n=t(342)+Math[t(387)]()[t(375)](36)[t(359)](2,9)+"_"+Date[t(344)]();return localStorage[t(340)]("adstage_device_id",n),n}static generateSessionId(){const t=T;if(!w[t(369)]())return t(364)+Date.now();const e=sessionStorage[t(378)](t(351));if(e)return e;const n=t(355)+Math.random()[t(375)](36)[t(359)](2,9)+"_"+Date[t(344)]();return sessionStorage[t(340)](t(351),n),n}static[C(374)](){const t=C;return!!w[t(369)]()&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i[t(360)](navigator[t(362)])}static getPlatform(){const t=C;if(!w[t(369)]())return t(347);const e=navigator[t(362)][t(353)]();return/iphone|ipad|ipod/.test(e)?t(348):/android/[t(360)](e)?t(367):B[t(374)]()?t(347):"desktop"}static[C(377)](){const t=C,e=w[t(396)]();return{deviceId:B[t(346)](),sessionId:B[t(345)](),osVersion:w.isBrowser()?navigator.platform:t(356),deviceModel:w[t(369)]()?navigator[t(392)]:t(356),appVersion:t(354),sdkVersion:S(),language:w[t(369)]()&&navigator[t(383)]||"ko",country:"KR",ipAddress:"",userAgent:w.isBrowser()?navigator[t(362)]:t(356),timezone:w[t(369)]()?Intl[t(343)]().resolvedOptions()[t(381)]:"UTC",viewportWidth:e[t(388)],viewportHeight:e.height,screenWidth:w.isBrowser()?screen[t(388)]:0,screenHeight:w.isBrowser()?screen[t(376)]:0,colorDepth:w.isBrowser()?screen.colorDepth:24,pixelRatio:e[t(389)],connectionType:w[t(369)]()&&navigator[t(382)]?.[t(339)]||t(352),platform:B[t(357)]()}}static[C(391)](t){const e=C;let n=w[e(361)](t);if(!n){const s=w[e(393)]("#"+t+e(384));s&&(n=s)}if(!n&&(n=w[e(393)]('[data-adstage-slot-id="'+t+'"]')),!n)return e(352);const s=n[e(386)](),i=w[e(373)]();return"x:"+Math[e(390)](s[e(368)])+e(372)+Math[e(390)](s.top+i[e(379)])}}function L(){const t=["16725250aRKwXQ","479130CcGQuF","6hTJuPq","1616751LakJfF","application/json","API key is required","undefined","237394FArrDE","2462166SYanxN","61945XROvlW","208hwUIbA","createForEvents","184tCIVkx","create","userAgent","User-Agent","76027AQyqnX"];return(L=function(){return t})()}const R=U;function U(t,e){const n=L();return(U=function(t,e){return n[t-=371]})(t,e)}!function(){const t=U,e=L();for(;;)try{if(430230===parseInt(t(379))/1+parseInt(t(385))/2*(-parseInt(t(380))/3)+-parseInt(t(371))/4*(parseInt(t(387))/5)+-parseInt(t(386))/6+parseInt(t(377))/7*(-parseInt(t(373))/8)+-parseInt(t(381))/9+parseInt(t(378))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class z{static[R(374)](t,e){const n=R;if(!t)throw new Error(n(383));const s={"x-api-key":t,"Content-Type":e?.contentType||n(382)};return typeof navigator!==n(384)&&(s[n(376)]=e?.[n(375)]||navigator[n(375)]),s}static[R(372)](t,e){const n=R,s=z[n(374)](t);return e?.[n(375)]&&(s[n(376)]=e.userAgent),s}}const P=O;function N(){const t=["...","log","getElementById","NOT_SET","containerId","apiKey","/advertisements/events/","width","parseNumericValue","19760587TfjIre","title","111713pOiqUb","getPageInfo","baseUrl","number","length","⚠️ Slot not found for slotId: ","5570008MxqnNO","status","922568TZlyZR",". Skipping event tracking to prevent incorrect adType.","700ZxuOXi","2586321dVYazB","referrer","deviceId","querySelector","platform","120LIBuQs","🌐 Full API call details:"," in slot ","replace","⚠️ DOM element not found for slotId: ","debug","substring","adType","slots","🚀 Sending advertisement event: ","warn","115110hICQDD","88OqaxRU"," event for ad ","string","trackAdvertisementEvent","stringify","). Skipping event tracking.","📡 API Response Status: ","6418mSaFXI","error","5yKjohw","POST","get","API request failed: ","now",'[data-adstage-slot-id="',"text","🔍 Debug info:","VIEWABLE"," (containerId: ","statusText"];return(N=function(){return t})()}function O(t,e){const n=N();return(O=function(t,e){return n[t-=484]})(t,e)}!function(){const t=O,e=N();for(;;)try{if(929115===parseInt(t(495))/1*(parseInt(t(488))/2)+-parseInt(t(530))/3+-parseInt(t(527))/4*(-parseInt(t(497))/5)+parseInt(t(535))/6*(-parseInt(t(519))/7)+parseInt(t(525))/8+parseInt(t(487))/9*(-parseInt(t(529))/10)+parseInt(t(517))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class V{constructor(t,e,n,s){const i=O;this[i(521)]=t,this[i(513)]=e,this[i(540)]=n,this.slots=s}async[P(491)](t,e,n){const s=P;try{this[s(540)]&&console[s(509)]("🚀 AdvertisementEventTracker: Processing "+n+s(489)+t+s(537)+e);const i=this[s(484)][s(499)](e);if(!i)return void(this[s(540)]&&console[s(486)](s(524)+e+s(528)));if(!(document[s(510)](i[s(512)])||document[s(533)](s(502)+e+'"]')))return void(this[s(540)]&&console[s(486)](s(539)+e+s(506)+i[s(512)]+s(493)));const r=B.collectDeviceInfo(),o={adType:i[s(542)],platform:r[s(534)],deviceId:r[s(532)],deviceInfo:r,pageUrl:w.getPageInfo().url,pageTitle:w[s(520)]()[s(518)],referrer:w[s(520)]()[s(531)],slotId:e,slotPosition:B.getSlotPosition(i[s(512)]),slotWidth:V[s(516)](i[s(515)]),slotHeight:V.parseNumericValue(i.height),sessionId:r.sessionId,pageLoadTime:performance.now(),metadata:{eventType:n,sdkVersion:S(),timestamp:Date[s(501)]()},...n===u[s(505)]&&{isViewable:!0,iabCompliant:!0}},a=this[s(521)]+s(514)+t+"/"+n,c=z.createForEvents(this.apiKey,o);this[s(540)]&&(console[s(509)](s(485)+n+" for ad "+t,{url:a,headers:c,eventData:o}),console[s(509)](s(536),{method:s(498),url:a,hasApiKey:!!this.apiKey,bodySize:JSON[s(492)](o)[s(523)]}));const d=await fetch(a,{method:s(498),headers:c,body:JSON.stringify(o)});if(this[s(540)]&&console[s(509)](s(494)+d[s(526)]+" "+d[s(507)],{url:a,ok:d.ok}),!d.ok){const t=await d[s(503)]();throw new Error(s(500)+d[s(526)]+" "+d[s(507)]+" - "+t)}this[s(540)]&&console[s(509)]("✅ Successfully tracked advertisement event: "+n+" for ad "+t)}catch(i){console[s(496)]("❌ Failed to track advertisement event:",i),console[s(496)](s(504),{baseUrl:this.baseUrl,apiKey:this[s(513)]?this[s(513)][s(541)](0,8)+s(508):s(511),url:this[s(521)]+s(514)+t+"/"+n,eventType:n,adId:t,slotId:e})}}static[P(516)](t){const e=P;if(typeof t===e(522))return t;if(typeof t===e(490)){const n=parseFloat(t[e(538)](/px$/,""));return isNaN(n)?0:n}return 0}}function M(t,e){var n=F();return(M=function(t,e){return n[t-=412]})(t,e)}var _=M;function F(){var t=["isViewableTriggered","1105343gTlayh","isDocumentVisible","destroy","50UjjAle","305635hQlMFz","872LCpVTG","IntersectionObserver not supported, viewability tracking disabled","18766368kzAYum","60051VZIeRJ","2322ioeOfb","0px","handleIntersection","disconnect","observer","40IITvUa","2VsfXNI","warn","element","7239449qWfzvv","1623985IheHuW","initIntersectionObserver","visibilityState","6mllubP","onViewableCallback","intersectionRatio"];return(F=function(){return t})()}!function(){for(var t=M,e=F();;)try{if(663650===parseInt(t(437))/1*(parseInt(t(426))/2)+parseInt(t(419))/3*(-parseInt(t(425))/4)+-parseInt(t(415))/5+-parseInt(t(433))/6*(parseInt(t(429))/7)+-parseInt(t(416))/8*(-parseInt(t(420))/9)+-parseInt(t(414))/10*(parseInt(t(430))/11)+parseInt(t(418))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class H{constructor(t,e){var n=M;this[n(424)]=null,this[n(436)]=!1,this.element=t,this[n(434)]=e,this[n(431)]()}[_(431)](){var t=_;"IntersectionObserver"in window?(this[t(424)]=new IntersectionObserver(t=>this.handleIntersection(t),{threshold:.5,rootMargin:t(421)}),this[t(424)].observe(this[t(428)])):console[t(427)](t(417))}[_(422)](t){t.forEach(t=>{var e=M;t[e(435)]>=.5&&this[e(412)]()&&!this[e(436)]&&(this.isViewableTriggered=!0,this[e(434)]&&this[e(434)]())})}[_(412)](){var t=_;return!document.hidden&&"visible"===document[t(432)]}[_(413)](){var t=_;this[t(424)]&&(this[t(424)][t(423)](),this[t(424)]=null)}}const K=G;!function(){const t=G,e=X();for(;;)try{if(844639===-parseInt(t(380))/1+parseInt(t(396))/2*(-parseInt(t(385))/3)+-parseInt(t(381))/4+-parseInt(t(400))/5+-parseInt(t(394))/6+parseInt(t(395))/7+parseInt(t(384))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const W={production:K(399),beta:K(398)};K(386);const j={advertisements:{list:K(392),detail:K(393),events:K(403)},events:{track:K(389)}};function X(){const t=["5057388sRNcDD","10935687BXmbbb","3688tWxwGh","baseUrl","https://beta-api.adstage.app","https://api.adstage.app","6635735OetPWz","setBaseUrl","startsWith","/advertisements/events","609873UhFuCr","5719152BTPQfm","detail","custom","35799648jMdcgh","1599OObdrt","production","events","getBaseUrl","/events/track","advertisements","list","/advertisements/list","/advertisements"];return(X=function(){return t})()}class q{constructor(t){const e=K;this[e(390)]={list:()=>""+this[e(397)]+j[e(390)][e(391)],detail:t=>""+this.baseUrl+j.advertisements[e(382)]+"/"+t,events:(t,n)=>""+this.baseUrl+j[e(390)].events+"/"+t+"/"+n},this[e(387)]={track:()=>""+this.baseUrl+j[e(387)].track},this[e(397)]=t||W.production}[K(401)](t){this[K(397)]=t}[K(388)](){return this.baseUrl}[K(383)](t){const e=K;return""+this.baseUrl+(t[e(402)]("/")?t:"/"+t)}}function G(t,e){const n=X();return(G=function(t,e){return n[t-=380]})(t,e)}const J=new q;var Y=Q;function Q(t,e){var n=Z();return(Q=function(t,e){return n[t-=295]})(t,e)}function Z(){var t=["39gpcjvw","8053nweDzq","16648270VuXAIr","VIEWABLE","9117819PUrAGg","248RFylBU","202784PHLFDA","6wdnjwY","11egrBYJ","9237200rYdCiK"," (index: ","🎯 Triggering initial VIEWABLE event: ad ","🎯 Triggering VIEWABLE event for slide change: ad ",") in slot: ","401961lEGZUi","_id","8vpMQAf","trackSlideViewable","log","704016OdLZZb"];return(Z=function(){return t})()}!function(){for(var t=Q,e=Z();;)try{if(943233===parseInt(t(312))/1*(parseInt(t(296))/2)+parseInt(t(311))/3*(parseInt(t(297))/4)+parseInt(t(300))/5+parseInt(t(298))/6*(parseInt(t(305))/7)+parseInt(t(307))/8*(-parseInt(t(295))/9)+-parseInt(t(313))/10+-parseInt(t(299))/11*(-parseInt(t(310))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ${static[Y(308)](t,e,n,s,i=!1){var r=Y;i&&console[r(309)](r(303)+t._id+r(301)+n+r(304)+e.id),s(t._id,e.id,u.VIEWABLE)}static trackInitialSlideViewable(t,e,n,s=!1){var i=Y;s&&console[i(309)](i(302)+t[i(306)]+" (index: 0) in slot: "+e.id),n(t[i(306)],e.id,u[i(314)])}}function tt(t,e){const n=st();return(tt=function(t,e){return n[t-=492]})(t,e)}const et=tt;!function(){const t=tt,e=st();for(;;)try{if(729514===parseInt(t(500))/1+parseInt(t(498))/2+parseInt(t(513))/3+parseInt(t(496))/4*(parseInt(t(518))/5)+-parseInt(t(499))/6*(-parseInt(t(511))/7)+-parseInt(t(495))/8*(parseInt(t(501))/9)+-parseInt(t(517))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class nt{static[et(506)](t,e,n,s,i=!1,r){const o=et;e[o(507)]&&(t[o(523)].cursor="pointer",t[o(508)](o(520),t=>{const a=o;if(t[a(494)](),t.stopPropagation(),s&&s(e._id,n.id,u[a(497)]),window[a(522)](e[a(507)],a(502)),i){const t=r||String(n[a(493)])[a(509)]();console.log("🔗 "+t+a(504)+e[a(514)]+a(505)+e.linkUrl)}}))}static[et(515)](t,e,n,s,i=!1,r){const o=et;e[o(507)]&&(t[o(523)][o(519)]=o(512),t[o(508)](o(520),t=>{const a=o;t[a(494)](),t[a(510)]();if(s()(e[a(514)],n.id,u[a(497)]),window[a(522)](e[a(507)],"_blank"),i){const t=r||String(n[a(493)])[a(509)]();console.log(a(516)+t+" ad clicked: "+e[a(514)]+" -> "+e[a(507)])}}))}static[et(503)](t,e,n,s,i=!1,r){this[et(506)](t,e,n,s,i,r)}static[et(521)](t){return Boolean(t[et(507)])}static addClickEventsBatch(t,e,n,s,i=!1,r){const o=et;t[o(492)]((t,a)=>{const c=o,d=e[a];d&&this[c(506)](t,d,n,s,i,r)})}}function st(){const t=["76408DaEPRC","CLICK","2393550oDPcbp","2461074wHPnAw","1394169XoiEzQ","826191CuUvcy","_blank","addClickEventForSlider"," ad clicked: "," -> ","addClickEvent","linkUrl","addEventListener","toLowerCase","stopPropagation","14gydcFn","pointer","734619SlqUrn","_id","addClickEventForRenderer","🔗 ","36594120aINUOb","360IeDrDi","cursor","click","isClickable","open","style","forEach","adType","preventDefault","56JgOzoM"];return(st=function(){return t})()}function it(){const t=["createMinimalDotIndicator","style","384rhZrtf","abs","videoUrl","body","100%","borderColor","61256cDDLcT","8XNXPRz","0.7","touches","#f0f0f0","55CUkdQv","translateX(-","fontSize","includes","adstage-slide","every","backgroundColor","inline-block","#cccccc","TEXT","transform","overflow","length","#000","transition","auto","border","contains","padding","Banner Ad","createSliderContainer","_id","active","div","remove"," Ad","whiteSpace","data-adstage-ad-id","BANNER",".adstage-dot","transform 0.4s ease-out","14px","1px solid #666","1035590hnHByc","img","toLowerCase","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","height","getBoundingClientRect","cssText","removeChild","width","4kDkBvP","flex","white","mouseleave","mouseenter","setProperty","addEventListener","data-adstage-slot-id","75177leicKt","adType","200px","preventDefault","color","adstage-slider-wrapper","1px dashed #ccc","clientX","normal","display","querySelectorAll","Video Ad","8px","2865835rpvsQa","touchstart","\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 ","click","className","3471378POpKOa","1786674KYDdap","2251490zFknfZ","classList","adstage-dots","relative","forEach","string","adstage-dot","setAttribute","VIDEO","opacity","center","appendChild","src","#666666","trackSlideViewable","touchmove","createElement","changedTouches","hidden","children","textContent","video","touchend","createSimpleAdElement","\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 ","imageUrl","addTouchSupport","background","none","adstage-ad adstage-","entries","#f9f9f9","100px","button"];return(it=function(){return t})()}const rt=ot;function ot(t,e){const n=it();return(ot=function(t,e){return n[t-=447]})(t,e)}!function(){const t=ot,e=it();for(;;)try{if(309831===-parseInt(t(503))/1*(parseInt(t(502))/2)+-parseInt(t(459))/3*(parseInt(t(549))/4)+-parseInt(t(540))/5+-parseInt(t(458))/6+parseInt(t(453))/7+-parseInt(t(496))/8*(-parseInt(t(557))/9)+parseInt(t(460))/10*(parseInt(t(507))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class at{static createSimpleAdElement(t,e){const n=ot,s=document[n(476)]("div");switch(s[n(457)]=n(489)+String(t[n(558)])[n(542)](),s.setAttribute(n(534),e[n(528)]),s[n(467)](n(556),t.id),s[n(495)][n(449)]="block",s.style[n(548)]=n(500),s[n(495)][n(544)]=n(522),t[n(558)]){case r[n(535)]:if(e[n(485)]){const t=document[n(476)](n(541));t[n(472)]=e.imageUrl,t.style[n(548)]="100%",t[n(495)][n(544)]=n(522),t[n(495)].objectFit="cover",s.appendChild(t)}else s[n(495)].height="100px",s[n(495)].backgroundColor=n(506),s[n(495)][n(523)]="1px dashed #ccc",s[n(480)]=n(526);break;case r[n(468)]:if(e[n(498)]){const t=document.createElement(n(481));t[n(472)]=e[n(498)],t.style[n(548)]="100%",t[n(495)][n(544)]=n(522),s.appendChild(t)}else s[n(495)][n(544)]=n(559),s[n(495)][n(513)]=n(520),s.style.border=n(539),s[n(480)]=n(451),s.style[n(561)]=n(551);break;case r.TEXT:if(e[n(480)]){const t=document[n(476)](n(530));t[n(480)]=e[n(480)]||"",t[n(495)].padding=n(452),t.style[n(509)]=n(538),s[n(471)](t)}else s[n(495)].height="50px",s.style[n(525)]="8px",s[n(480)]="Text Ad";break;default:s[n(495)][n(544)]=n(492),s[n(495)].border=n(563),s[n(495)][n(513)]=n(491),s[n(480)]=t[n(558)]+n(532)}return s}static[rt(527)](t,e,n,s,i=!1){const o=rt,a=document[o(476)]("div");a[o(457)]=o(562);const c={position:o(463),overflow:o(478)};if(t[o(548)]&&0!==t[o(548)]){let e;e=typeof t[o(548)]===o(465)?t[o(548)][o(510)]("px")||t[o(548)][o(510)]("%")?t.width:t.width+"px":t[o(548)]+"px",c.width=e,c[o(449)]="inline-block"}else c[o(449)]=o(514);if(t[o(544)]&&0!==t.height){const e=typeof t.height===o(465)?t[o(544)]:t[o(544)]+"px";c[o(544)]=e}Object[o(490)](c)[o(464)](([t,e])=>{const n=o;a.style[n(554)](t,e)});const d=!t.width||0===t[o(548)],l=!t[o(544)]||0===t.height;if(d||l){const n=document[o(476)](o(530));if(n.style[o(546)]=o(543),!d&&t.width){let e;e=typeof t[o(548)]===o(465)&&(t[o(548)].includes("px")||t[o(548)][o(510)]("%"))?t.width:t[o(548)]+"px",n[o(495)].width=e,n[o(495)][o(533)]=o(448)}document[o(499)][o(471)](n);let s=0,i=0;e[o(464)](e=>{const r=o,a=this[r(483)](t,e);n[r(471)](a);const c=a[r(545)]();c[r(548)]>s&&(s=c[r(548)]),c.height>i&&(i=c.height),n[r(547)](a)}),d&&s>0&&(a[o(495)].width=s+"px",c[o(548)]=s+"px"),l&&i>0&&(a[o(495)][o(544)]=i+"px",c[o(544)]=i+"px"),document[o(499)].removeChild(n)}const u=[...e,e[0]],p=document[o(476)](o(530));p[o(457)]="adstage-slide-container";const h={display:o(550),transition:o(537),width:100*u[o(519)]+"%"};t.height&&0!==t[o(544)]&&(h[o(544)]=o(500)),Object.entries(h)[o(464)](([t,e])=>{const n=o;p[n(495)][n(554)](t,e)}),u[o(464)]((e,n)=>{const r=o,a=document[r(476)](r(530));a[r(457)]=r(511);const c={width:100/u.length+"%","flex-shrink":"0",display:r(550),"align-items":r(470),"justify-content":r(470)};t[r(544)]&&0!==t.height&&(c[r(544)]="100%"),Object[r(490)](c)[r(464)](([t,e])=>{const n=r;a[n(495)][n(554)](t,e)});const d=this[r(483)](t,e);nt.addClickEventForSlider(d,e,t,s,i,String(t[r(558)])[r(542)]()),a[r(471)](d),p[r(471)](a)});const f=e[o(512)](t=>t[o(558)]===r[o(516)])?null:this[o(494)](e[o(519)]);let g=0;const m=e[o(519)],I=1e3*(n?.autoSlideInterval||3),v=(n,r=!1)=>{const a=o;g=n,r?p.style[a(521)]=a(488):p[a(495)].transition=a(537),p.style[a(517)]=a(508)+100/u[a(519)]*g+"%)";const c=g===m?0:g;if(f){f.querySelectorAll(a(536))[a(464)]((t,e)=>{const n=a,s=t;e===c?(s[n(461)].add("active"),s[n(495)][n(487)]=n(473),s.style.borderColor=n(473),s[n(495)].opacity="1"):(s[n(461)][n(531)](n(529)),s[n(495)][n(487)]="transparent",s[n(495)][n(501)]=n(515),s[n(495)][n(469)]=n(504))})}$[a(474)](e[c],t,c,s,i)},y=()=>{g===m&&setTimeout(()=>{v(0,!0)},400)};if(f){f[o(450)](".adstage-dot")[o(464)]((t,e)=>{const n=o;t[n(555)](n(456),()=>v(e))})}let b=setInterval(()=>{v(g+1),y()},I);return a[o(555)](o(553),()=>{clearInterval(b)}),a.addEventListener("mouseleave",()=>{b=setInterval(()=>{v(g+1),y()},I)}),this[o(486)](p,v,()=>g,m,y),a.appendChild(p),f&&a[o(471)](f),v(0),(!t[o(548)]||0===t.width)&&setTimeout(()=>{const e=o,n=p[e(479)][0];if(n){const s=n[e(479)][0];if(s){const n=s[e(545)]();a[e(495)][e(548)]=n[e(548)]+"px",(!t.height||0===t[e(544)])&&(a[e(495)].height=n[e(544)]+"px"),a.style[e(518)]="hidden"}}},10),a}static[rt(494)](t){const e=rt,n=document[e(476)](e(530));n.className=e(462),n.style.cssText=e(484);for(let s=0;s<t;s++){const t=document[e(476)](e(493));t[e(457)]=e(466),t[e(495)][e(546)]=e(455),t[e(555)]("mouseenter",()=>{const n=e;!t[n(461)][n(524)]("active")&&(t[n(495)].borderColor="#999999",t[n(495)][n(469)]="0.9")}),t[e(555)](e(552),()=>{const n=e;!t.classList[n(524)](n(529))&&(t[n(495)][n(501)]=n(515),t[n(495)][n(469)]=n(504))}),n[e(471)](t)}return n}static[rt(486)](t,e,n,s,i){const r=rt;let o=0,a=!1;t[r(555)](r(454),t=>{const e=r;o=t[e(505)][0][e(447)],a=!0}),t[r(555)](r(475),t=>{a&&t[r(560)]()}),t.addEventListener(r(482),t=>{const c=r;if(!a)return;a=!1;const d=t[c(477)][0][c(447)],l=o-d;if(Math[c(497)](l)>50){const t=n();if(l>0){e(t+1),i&&i()}else{e(t>0?t-1:s-1)}}})}}function ct(){const t=["338890iAdcYo","log","delete","153XwQoDp","2504748WmEjVo","497zlHAfx","viewableTracker","1405eHrvAG","5392RSIVZS","3707BOgJLt","add","isDuplicateViewable","✅ New viewable recorded for ad "," in slot ","7464aHOtoY","1498tIcPkd","352611PALgLJ","239SSQTJY","57752SxVgBr","clear"];return(ct=function(){return t})()}function dt(t,e){const n=ct();return(dt=function(t,e){return n[t-=479]})(t,e)}const lt=dt;!function(){const t=dt,e=ct();for(;;)try{if(295982===-parseInt(t(479))/1*(-parseInt(t(497))/2)+-parseInt(t(498))/3+parseInt(t(490))/4*(parseInt(t(489))/5)+-parseInt(t(486))/6+parseInt(t(487))/7*(-parseInt(t(480))/8)+parseInt(t(485))/9*(parseInt(t(482))/10)+parseInt(t(491))/11*(parseInt(t(496))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ut{static[lt(493)](t,e,n=!1){const s=lt,i=t+"_"+e;return ut[s(488)].has(i)?(n&&console[s(483)]("Duplicate viewable blocked for ad "+t+s(495)+e),!0):(ut[s(488)][s(492)](i),n&&console[s(483)](s(494)+t+" in slot "+e),!1)}static[lt(481)](){const t=lt;ut[t(488)][t(481)]()}static clearAdViewable(t,e){const n=lt,s=t+"_"+e;ut.viewableTracker[n(484)](s)}}ut.viewableTracker=new Set;const pt=ht;function ht(t,e){const n=ft();return(ht=function(t,e){return n[t-=206]})(t,e)}function ft(){const t=["closest",'div[style*="min-height"]',"203133MqqNhG","rgba(231, 76, 60, 0.1)","toLowerCase","border",'[class*="banner"]',"createPlaceholder","8386635sfhVYY","monospace","setAttribute","getAttribute","#f9f9f9","querySelector","warn","rgba(0, 0, 0, 0.02)"," for ad ",".adstage-","debug","calculateAdSize","getContainerHeight","isEmpty","3znCFkI","advertisement","data-adstage-slot","📊 Advertisement event tracked: ","auto","classList","<span>Loading ","data-adstage-empty","subtle","data-adstage-container","className","opacity","adstage-official","string","alignItems","6512607tByEHf","true","adstage-slot adstage-empty adstage-"," container collapsed (","filter","60tiBUHm","invisible",".adstage-slot","6px","borderRadius","⚠️ "," event","createEmptyContainer","⚠️ Created empty ","adstage-slot","block"," event for ad ","\n height: 0px !important;\n min-height: 0px !important;\n padding: 0px !important;\n margin: 0px !important;\n border: none !important;\n overflow: hidden !important;\n display: block !important;\n ","data-adstage-type","flex","display","log","14002488sYUvTr",'[data-adstage-container="true"]',"11px","30185740VJlAlY","51306XHIuUc","width","\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 ","adType","fontFamily","number","appendChild","hasAttribute"," container: ","#666",'[class*="ad"]',"div","height","renderFallback","cssText","center","📏 Using default height ","4px","none","error"," ad...</span>","getDefaultHeight","📏 Using 100% height (container: ","🚫 Duplicate viewable blocked for ad ","100%","backgroundColor","fontSize","1px dashed #ccc","parentElement","2px dashed #e74c3c","📦 Placeholder created for ","generic","style","⚠️ AdvertisementEventTracker not available for ","color","259KuvIfc","isDuplicateViewable","minimal","px)","1px solid rgba(0, 0, 0, 0.08)","getComputedStyle","37278thHftl","): ","placeholderMode","advertisementEventTracker"," slot: ","getElementById","innerHTML",'div[style*="height"]',"minHeight",") - Mode: "," for ","transparent","createElement","applyPlaceholderStyle"," in slot ","justifyContent"];return(ft=function(){return t})()}!function(){const t=ht,e=ft();for(;;)try{if(961576===parseInt(t(247))/1*(-parseInt(t(209))/2)+-parseInt(t(227))/3*(-parseInt(t(267))/4)+parseInt(t(233))/5+-parseInt(t(288))/6*(-parseInt(t(323))/7)+parseInt(t(284))/8+-parseInt(t(262))/9+-parseInt(t(287))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class gt{constructor(t,e=!1,n){const s=ht;this[s(291)]=t,this[s(243)]=e,this.advertisementEventTracker=n||null}[pt(232)](t,e,n,s){const i=pt,r=document[i(221)](i(299));r.id=e,r[i(257)]="adstage-slot adstage-"+String(this[i(291)])[i(229)](),r[i(235)](i(256),i(263)),r.setAttribute(i(280),String(this[i(291)])),r[i(235)](i(249),e);const{width:o,height:a}=this[i(244)](t,n,s)||{width:i(312),height:this[i(309)]()};r[i(320)][i(289)]=o,r[i(320)][i(300)]=a;const c=s?.[i(211)]||n[i(211)]||i(268);this[i(222)](r,c),t[i(294)](r),this.debug&&console[i(283)](i(318)+this[i(291)]+i(213)+e+" ("+o+" x "+a+i(218)+c)}applyPlaceholderStyle(t,e){const n=pt;switch(e){case n(268):t[n(320)][n(313)]=n(220),t[n(320)].border=n(306),t[n(320)][n(258)]="0",t[n(215)]="";break;case n(220):t[n(320)][n(313)]=n(220),t[n(320)][n(230)]="none",t.style[n(282)]=n(277),t.innerHTML="";break;case n(255):t.style[n(313)]=n(240),t[n(320)].border=n(306),t[n(320)][n(271)]=n(305),t.style.display=n(281),t[n(320)][n(261)]="center",t[n(320)][n(224)]=n(303),t[n(215)]='<span style="color: rgba(0, 0, 0, 0.3); font-size: 11px; font-family: sans-serif;">•••</span>';break;case n(325):t.style[n(313)]="rgba(248, 249, 250, 0.5)",t[n(320)][n(230)]=n(207),t[n(320)][n(271)]=n(270),t[n(320)][n(282)]=n(281),t[n(320)][n(261)]=n(303),t[n(320)][n(224)]="center",t.innerHTML='<span style="color: rgba(0, 0, 0, 0.4); font-size: 12px; font-family: -apple-system, sans-serif;">•••</span>';break;case n(243):t[n(320)][n(230)]=n(317),t.style[n(282)]="flex",t[n(320)][n(261)]=n(303),t[n(320)][n(224)]=n(303),t[n(320)][n(313)]=n(228),t.style[n(322)]="#e74c3c",t[n(320)][n(292)]=n(234),t.style[n(314)]=n(286),t.innerHTML="<span>Loading "+this.adType+n(308);break;default:t[n(320)].border=n(315),t.style.display=n(281),t[n(320)].alignItems="center",t[n(320)][n(224)]="center",t[n(320)].backgroundColor=n(237),t[n(320)][n(322)]=n(297),t[n(215)]=n(253)+this[n(291)]+" ad...</span>"}}[pt(244)](t,e,n){const s=pt,i=e.width,r=e[s(300)];let o,a;if(o=typeof i===s(293)?i+"px":typeof i===s(260)?i:"100%",typeof r===s(293))a=r+"px";else if(typeof r===s(260)&&r!==s(312)&&r!==s(251))a=r;else{const e=this[s(245)](t);e>0?(a=s(312),(n?.[s(243)]||this.debug)&&console[s(283)](s(310)+e+s(206))):(a=this.getDefaultHeight(),(n?.debug||this[s(243)])&&console.log(s(304)+a+s(219)+this[s(291)]))}return{width:o,height:a}}getContainerHeight(t){const e=pt,n=window[e(208)](t),s=parseFloat(n[e(300)]);if(!s||0===s){const s=parseFloat(n[e(217)]);if(s>0)return s;if(t[e(320)].height&&"auto"!==t[e(320)][e(300)]){const n=parseFloat(t[e(320)].height);if(n>0)return n}const i=t[e(236)](e(300));if(i){const t=parseFloat(i);if(t>0)return t}}return s||0}createEventTrackingCallback(){return async(t,e,n)=>{const s=ht;if(n===u.VIEWABLE){if(ut[s(324)](t,e,this.debug))return void(this.debug&&console[s(283)](s(311)+t+s(223)+e));this.debug&&console[s(283)]("✅ New viewable recorded for ad "+t+" in slot "+e)}if(this[s(212)])try{this[s(243)]&&console.log("🔄 Starting advertisement event tracking: "+n+s(241)+t+s(223)+e),await this[s(212)].trackAdvertisementEvent(t,e,n),this.debug&&console[s(283)](s(250)+n+s(241)+t+s(223)+e)}catch(e){this.debug&&console[s(307)]("❌ Failed to track "+n+s(278)+t+":",e)}else this[s(243)]&&console[s(239)](s(321)+n+s(273))}}[pt(301)](t){const e=pt,n=document[e(214)](t.id);if(n){const s=[...[n[e(238)](e(285)),n[e(225)]('[data-adstage-container="true"]'),n][e(266)](t=>t&&t[e(295)]("data-adstage-container")),...[n[e(225)](e(269)),n[e(225)](e(242)+String(this[e(291)]).toLowerCase()),n.closest(e(298)),n[e(225)](e(231)),n.closest('[class*="container"]'),n[e(225)](e(216)),n[e(225)](e(226)),n[e(316)]][e(266)](Boolean)][0];if(s){let n="unknown";n=s[e(295)](e(256))?e(259):s[e(252)].contains(e(276))?"adstage-class":e(319),s[e(320)][e(302)]+=e(290),s[e(215)]="",s[e(235)](e(254),e(263)),this[e(243)]&&console[e(239)](e(272)+this[e(291)]+e(265)+n+e(210)+t.id,s)}else this[e(274)](t)}t[e(248)]=void 0,t[e(246)]=!0}[pt(274)](t){const e=pt,n=document.getElementById(t.containerId);if(n){n[e(215)]="";const s=document[e(221)]("div");s.id=t.id,s[e(257)]=e(264)+String(this[e(291)])[e(229)](),s[e(235)]("data-adstage-container",e(263)),s.setAttribute("data-adstage-empty",e(263)),s[e(235)](e(249),t.id),s[e(320)][e(302)]=e(279),n[e(294)](s),this[e(243)]&&console[e(239)](e(275)+this.adType+e(296)+t.id)}}log(t,...e){const n=pt;this[n(243)]&&console[n(283)]("["+this[n(291)]+"] "+t,...e)}}const mt=It;function It(t,e){const n=yt();return(It=function(t,e){return n[t-=375]})(t,e)}!function(){const t=It,e=yt();for(;;)try{if(555457===parseInt(t(477))/1*(parseInt(t(444))/2)+-parseInt(t(438))/3+parseInt(t(435))/4+-parseInt(t(445))/5*(parseInt(t(453))/6)+parseInt(t(473))/7*(-parseInt(t(443))/8)+-parseInt(t(392))/9*(parseInt(t(415))/10)+parseInt(t(413))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class vt extends gt{constructor(t=!1,e){super(r[It(449)],t,e)}[mt(427)](){return mt(441)}async[mt(460)](t,e){const n=mt,s=document[n(484)](t[n(422)]);if(!s)return;const i=document[n(421)](n(419));i.className=n(384);const r=t.optimizedHeight,o=s[n(391)]||s;if(r)i[n(452)][n(437)]="100%",i[n(452)][n(439)]=String(r);else{const e=t.config,s={width:e?.[n(437)],height:e?.[n(439)]},{width:r,height:a}=this[n(382)](o,s,{debug:this[n(400)]});i[n(452)].width=r,i[n(452)].height=a}e[n(485)]?await this.renderOptimizedBannerImage(i,e,t):i.innerHTML=n(436)+(e[n(397)]||n(376))+n(416),nt[n(459)](i,e,t,()=>this[n(450)](),this[n(400)],n(476)),s[n(434)]="",s[n(381)](i)}async renderMultipleAds(t,e){const n=mt,s=document[n(484)](t[n(422)]);if(!s)throw new Error(n(426)+t[n(422)]);await this[n(390)](t,e);const i=this[n(450)](),r={autoSlideInterval:(t.config?.[n(408)]||5e3)/1e3,...t[n(404)],optimizedHeight:t[n(407)],aspectRatio:t[n(409)]},o=at[n(483)](t,e,r,i,this[n(400)]);o&&(s[n(434)]="",s[n(381)](o),this[n(400)]&&console[n(417)](n(383)+t.id+n(472)+e[n(388)]+n(385)+(t[n(407)]||n(466))+")"))}async[mt(442)](t,e){const n=mt;if(!t.length)return{width:n(481),height:this[n(427)](),aspectRatio:16/9};try{const s=(await Promise[n(389)](t[n(423)](t=>t[n(485)])[n(486)](t=>this.loadImageDimensions(t[n(485)]))))[n(423)](t=>"fulfilled"===t[n(458)])[n(486)](t=>t.value);if(0===s.length)return{width:"100%",height:this.getDefaultHeight(),aspectRatio:16/9};const i=this[n(446)](s),r=this[n(456)](s,e,i);return this.debug&&console[n(417)](n(468)+e+"x"+r+n(396)+i+")"),{width:n(481),height:r+"px",aspectRatio:e/r}}catch(t){return console[n(465)](n(378),t),{width:n(481),height:this[n(427)](),aspectRatio:16/9}}}async[mt(390)](t,e){const n=mt;try{const s=document[n(484)](t.containerId),i=document[n(484)](t.id);if(!s||!i)return;const r=s[n(474)]().width||300,o=await this[n(442)](e,r);i[n(452)][n(439)]=o.height,t.optimizedHeight=o.height,t[n(409)]=o[n(409)],this[n(400)]&&console[n(417)]("🔧 Banner container optimized for "+e[n(388)]+n(430)+o[n(439)])}catch(t){console[n(465)](n(402),t)}}selectOptimalSizeStrategy(t){const e=mt,n=t[e(486)](t=>t[e(437)]/t.height),s=new Map;n.forEach(t=>{const n=e,i=(Math[n(393)](10*t)/10).toString();s[n(461)](i,(s[n(478)](i)||0)+1)});const i=Math[e(462)](...s[e(464)]()),r=t[e(388)];if(i/r>=.7)return e(431);const o=[16/9,4/3,1,1.5];return n[e(423)](t=>o[e(480)](n=>Math[e(475)](t-n)<.1)).length/r>=.5?"common":e(455)}[mt(456)](t,e,n){const s=mt,i=t[s(486)](t=>t[s(437)]/t[s(439)]);switch(n){case s(431):{const t=new Map;i[s(482)](e=>{const n=s,i=Math.round(10*e)/10,r=i.toString(),o=t[n(478)](r);o?o.count++:t[n(461)](r,{ratio:i,count:1})});const n=Array[s(403)](t[s(464)]()).reduce((t,e)=>e[s(457)]>t.count?e:t);return Math[s(393)](e/n.ratio)}case s(395):{const t=[{ratio:16/9,name:s(433)},{ratio:4/3,name:"4:3"},{ratio:1,name:"1:1"},{ratio:1.5,name:s(394)}],n=i[s(463)]((t,e)=>t+e,0)/i.length,r=t[s(463)]((t,e)=>Math[s(475)](e.ratio-n)<Math[s(475)](t[s(425)]-n)?e:t);return this.debug&&console[s(417)](s(420)+r[s(379)]+s(451)+n[s(440)](2)+")"),Math[s(393)](e/r[s(425)])}case s(455):default:{const t=i[s(463)]((t,e)=>t+e,0)/i[s(388)];return Math[s(393)](e/t)}}}loadImageDimensions(t){return new Promise((e,n)=>{const s=It,i=new Image;i.onload=()=>{const t=It;e({width:i.naturalWidth,height:i[t(447)]})},i[s(405)]=()=>{n(new Error(s(454)+t))},i.src=t})}[mt(418)](t,e,n){const s=mt,i=e/n;Math[s(475)](i-1)<.1?(t[s(452)][s(428)]=s(432),t.style[s(467)]=s(410)):i>1.3?(t[s(452)][s(428)]=s(424),t[s(452)].objectPosition="center",t[s(452)][s(386)]=s(406)):i<.7?(t[s(452)][s(428)]=s(432),t[s(452)][s(467)]=s(410)):(t[s(452)][s(428)]="cover",t[s(452)].objectPosition="center"),this[s(400)]&&console[s(417)](s(411)+t[s(452)][s(428)]+s(399)+i[s(440)](2))}async[mt(398)](t,e,n){const s=mt,i=document[s(421)](s(377));i[s(452)][s(437)]=s(481),i[s(452)].height="100%",i.style[s(387)]=s(479),i[s(452)][s(375)]=s(401),i[s(412)]=e[s(397)]||"Banner Advertisement",t[s(434)]=s(380);try{if(!e[s(485)])throw new Error("Image URL is not provided");const r=await this[s(470)](e[s(485)]),o=t[s(474)](),a=o[s(437)],c=o.height;this[s(400)]&&(console[s(417)](s(429)+r[s(437)]+"x"+r[s(439)]),console[s(417)](s(469)+a+"x"+c));const d=r.width/r[s(439)],l=a/c;return this.applyOptimizedImageStyle(i,d,l),i[s(448)]=e[s(485)],t[s(434)]="",t.appendChild(i),nt[s(459)](i,e,n,()=>this[s(450)](),this[s(400)],s(476)),this.debug&&console[s(417)]("✅ Optimized banner image rendered for ad: "+e[s(471)]),i}catch(r){return console.error(s(414),r),e[s(485)]&&(i[s(448)]=e[s(485)],i[s(452)][s(428)]="cover",i.style.objectPosition="center",t[s(434)]="",t[s(381)](i),nt[s(459)](i,e,n,()=>this.createEventTrackingCallback(),this.debug,"Banner")),i}}}function yt(){const t=["borderRadius","Banner Ad","img","Failed to calculate optimal banner size, using defaults:","name",'<div style="display: flex; align-items: center; justify-content: center; height: 100%; color: #999;">Loading...</div>',"appendChild","calculateAdSize","🎠 Banner carousel created for slot: ","adstage-ad adstage-banner-ad"," ads (optimized: ","backgroundColor","display","length","allSettled","optimizeContainerForBannerAds","parentElement","9ghuHyM","round","3:2","common"," (strategy: ","title","renderOptimizedBannerImage",", ratio=","debug","8px","Banner container optimization failed, using default size:","from","config","onerror","#f0f0f0","optimizedHeight","slideInterval","aspectRatio","center","🎨 Banner image style applied: objectFit=","alt","10809029UVsqaP","❌ Failed to load optimized banner image:","1017190AbOOua","</div>","log","applyOptimizedImageStyle","div","📊 Using standard ratio: ","createElement","containerId","filter","contain","ratio","Container not found: ","getDefaultHeight","objectFit","📸 Banner image dimensions: "," ads: ","dominant","cover","16:9","innerHTML","4202120LJWiBq","<div>","width","2878824GXDNAM","height","toFixed","250px","calculateOptimalContainerSize","16ZGVBGf","524dJLwHl","3010325XkqPba","selectOptimalSizeStrategy","naturalHeight","src","BANNER","createEventTrackingCallback"," (avg: ","style","6ibRzGf","Failed to load image: ","average","calculateOptimalHeight","count","status","addClickEventForRenderer","renderAdElement","set","max","reduce","values","warn","default","objectPosition","📐 Optimal banner container calculated: ","📦 Banner container dimensions: ","loadImageDimensions","_id"," with ","255199kprFqB","getBoundingClientRect","abs","Banner","987Wgdogh","get","block","some","100%","forEach","createSliderContainer","getElementById","imageUrl","map"];return(yt=function(){return t})()}const bt=kt;function wt(){const t=["8005968uxXgUs","\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 ","setTextAdContent","8864401XQQTOt","1412812tTgApa","48320ERSuOk","388704snzolD","991900WQVdzC","4302820MqktKZ","786FYlxOQ","15pJALrY","textContent","9tPHzCQ","title"];return(wt=function(){return t})()}function kt(t,e){const n=wt();return(kt=function(t,e){return n[t-=182]})(t,e)}!function(){const t=kt,e=wt();for(;;)try{if(771209===-parseInt(t(186))/1+parseInt(t(183))/2+parseInt(t(189))/3*(parseInt(t(185))/4)+parseInt(t(184))/5*(-parseInt(t(188))/6)+parseInt(t(182))/7+parseInt(t(193))/8+-parseInt(t(191))/9*(parseInt(t(187))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class xt{static createTextAdStyles(t=!1){return kt(194)}static[bt(195)](t,e){const n=bt,s=e[n(190)]||e[n(192)]||"";t.textContent=s}}function Et(){const t=["length","45LnPIfN","setProperty","cssText","adstage-fade-slide","450213cAVVlI","fit-content","data-adstage-ad-id","20px","addEventListener",";\n width: 100%;\n ","mouseenter","position","clientX","\n position: ","push","createTextAdStyles","createTextTransitionContainer",");\n transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);\n z-index: ","normal","\n ","opacity","adType","2162112jvPQcm","touchstart",";\n left: ","auto","_id","setTextAdContent","addClickEventForSlider","includes","changedTouches","height","body","clientY","forEach","absolute","\n display: flex;\n align-items: center;\n justify-content: flex-start;\n opacity: ","translateY(-20px)","height: 100%;","adstage-fade-slider-wrapper","setAttribute","505458lLeokI","style","3691401jUjdGu","createElement","left","entries","adstage-ad adstage-","whiteSpace","2483464ZRjDEY","zIndex","Text","relative","string",";\n ","12LctVLc","mouseleave","div","touchend","toLowerCase","width","touchmove","abs","12816270bjKWsF","hidden","\n position: absolute;\n visibility: hidden;\n white-space: nowrap;\n top: -9999px;\n left: -9999px;\n ","className","removeChild","appendChild","trackSlideViewable","398665sbcWSf","block","createSimpleAdElement","adstage-fade-slide-container","data-adstage-slot-id","transform",";\n transform: translateY(",";\n top: ","top","getBoundingClientRect","52ARRWOb","addTouchSupport","touches"];return(Et=function(){return t})()}const At=St;function St(t,e){const n=Et();return(St=function(t,e){return n[t-=106]})(t,e)}!function(){const t=St,e=Et();for(;;)try{if(814340===-parseInt(t(173))/1+-parseInt(t(187))/2*(-parseInt(t(136))/3)+parseInt(t(128))/4*(parseInt(t(118))/5)+-parseInt(t(154))/6+-parseInt(t(175))/7+-parseInt(t(181))/8*(-parseInt(t(132))/9)+-parseInt(t(111))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Tt{static[At(120)](t,e){const n=At,s=document[n(176)]("div");return s.className=n(179)+String(t[n(153)])[n(107)](),s[n(172)](n(138),e[n(158)]),s[n(172)](n(122),t.id),s.style[n(134)]=xt[n(147)](!0),xt[n(159)](s,e),s}static[At(148)](t,e,n,s,i=!1){const r=At,o=t[r(163)]&&0!==t.height&&t[r(163)]!==r(157),a=document.createElement(r(189));a[r(114)]=r(171);const c={position:r(184),overflow:r(112),display:r(119)};if(!o&&(c[r(163)]="auto",c.minHeight=r(137)),t[r(108)]&&0!==t[r(108)]){let e;e=typeof t[r(108)]===r(185)?t.width.includes("px")||t[r(108)][r(161)]("%")?t[r(108)]:t[r(108)]+"px":t.width+"px",c[r(108)]=e}if(t[r(163)]&&0!==t[r(163)]&&t[r(163)]!==r(157)&&o){let e;e=typeof t[r(163)]===r(185)?t[r(163)][r(161)]("px")||t[r(163)][r(161)]("%")?t[r(163)]:t[r(163)]+"px":t.height+"px",c.height=e}Object[r(178)](c).forEach(([t,e])=>{const n=r;a[n(174)][n(133)](t,e)});const d=document[r(176)](r(189));d[r(114)]=r(121),d[r(174)][r(134)]="\n position: relative;\n width: 100%;\n "+(o?"height: 100%;":"height: auto; min-height: fit-content;")+r(151);let l=null;const u=!t[r(108)]||0===t.width,p=!t.height||0===t[r(163)]||void 0===t[r(163)]||t.height===r(157);if(u||p&&o){if(l=document[r(176)](r(189)),l[r(174)][r(134)]=r(113),!u&&t[r(108)]){let e;e=typeof t[r(108)]===r(185)?t[r(108)].includes("px")||t[r(108)][r(161)]("%")?t[r(108)]:t.width+"px":t[r(108)]+"px",l[r(174)][r(108)]=e,l[r(174)][r(180)]=r(150)}document[r(164)].appendChild(l);let n=0,s=0;e[r(166)](e=>{const i=r,o=this[i(120)](t,e);l[i(116)](o);const a=o[i(127)]();a[i(108)]>n&&(n=a.width),a[i(163)]>s&&(s=a[i(163)]),l[i(115)](o)}),u&&n>0&&(a[r(174)].width=n+"px"),p&&s>0&&o&&(a[r(174)].height=s+"px"),document[r(164)][r(115)](l)}const h=[];e[r(166)]((e,n)=>{const a=r,c=document[a(176)]("div");c[a(114)]=a(135);const l=a(o?167:0===n?184:167);c[a(174)].cssText=a(145)+l+a(125)+("absolute"===l?"0":a(157))+a(156)+(l===a(167)?"0":a(157))+a(141)+(o?a(170):"height: auto;")+a(168)+(0===n?"1":"0")+a(124)+(0===n?"0":a(139))+a(149)+(0===n?"2":"1")+a(186);const u=this[a(120)](t,e);nt[a(160)](u,e,t,s,i,a(183)),c.appendChild(u),d[a(116)](c),h[a(146)](c)});let f=0;const g=e[r(131)],m=1e3*(n?.autoSlideInterval||4),I=n=>{const a=r;n>=g?n=0:n<0&&(n=g-1);const c=h[f],d=h[n];!o&&(c.style.position===a(184)&&(c[a(174)][a(143)]=a(167),c[a(174)][a(126)]="0",c[a(174)][a(177)]="0"),d[a(174)][a(143)]=a(184),d.style.top=a(157),d[a(174)].left=a(157)),c[a(174)][a(152)]="0",c.style[a(123)]=a(169),c.style.zIndex="1",d[a(174)][a(152)]="1",d.style.transform="translateY(0)",d[a(174)][a(182)]="2",h[a(166)]((t,e)=>{const s=a;e!==n&&e!==f&&(t[s(174)][s(152)]="0",t[s(174)].transform="translateY(20px)",t.style[s(182)]="1",!o&&t[s(174)].position===s(184)&&(t[s(174)].position=s(167),t[s(174)][s(126)]="0",t[s(174)][s(177)]="0"))}),f=n,$[a(117)](e[f],t,f,s,i)};let v=setInterval(()=>{I(f+1)},m);return a[r(140)](r(142),()=>{clearInterval(v)}),a[r(140)](r(188),()=>{v=setInterval(()=>{I(f+1)},m)}),Tt.addTouchSupport(a,I,()=>f,g),a[r(116)](d),a}static[At(129)](t,e,n,s){const i=At;let r=0,o=0,a=!1;t[i(140)](i(155),t=>{const e=i;r=t[e(130)][0].clientX,o=t[e(130)][0][e(165)],a=!0}),t.addEventListener(i(109),t=>{a&&t.preventDefault()}),t[i(140)](i(106),t=>{const s=i;if(!a)return;a=!1;const c=t[s(162)][0][s(144)],d=t[s(162)][0].clientY,l=r-c,u=o-d;if(Math[s(110)](l)>Math[s(110)](u)&&Math[s(110)](l)>50){const t=n();e(l>0?t+1:t-1)}})}}const Ct=Dt;function Dt(t,e){const n=Bt();return(Dt=function(t,e){return n[t-=152]})(t,e)}function Bt(){const t=["config","12aBufyo","cssText","createTextAdStyles","hidden","createEventTrackingCallback","debug","TEXT","containerId","-webkit-box","_id","log","6jJflBU","length","webkitLineClamp","4173610lwDCne","width","createElement","adstage-ad adstage-text-ad","6132735trZiTt","slideInterval","517262tYIzPV","8rDHYrl","height","innerHTML","100%","1112184ZzrKDv","✨ Text transition created for slot: ","50249782WgtNRJ","1plTRCK","className"," with ","60px","vertical","9928710scUXDK","setTextAdContent","2314291SCGcYh","renderMultipleAds","getDefaultHeight","appendChild","getElementById","style","number","Container not found: ","overflow","optimizedHeight","div","Text","renderAdElement","parentElement","aspectRatio"];return(Bt=function(){return t})()}!function(){const t=Dt,e=Bt();for(;;)try{if(780862===-parseInt(t(179))/1*(parseInt(t(171))/2)+parseInt(t(176))/3*(-parseInt(t(202))/4)+parseInt(t(169))/5*(-parseInt(t(162))/6)+-parseInt(t(186))/7*(-parseInt(t(172))/8)+-parseInt(t(184))/9+-parseInt(t(165))/10+parseInt(t(178))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Lt extends gt{constructor(t=!1,e){super(r[Dt(157)],t,e)}[Ct(188)](){return Ct(182)}async[Ct(198)](t,e){const n=Ct,s=document[n(190)](t.containerId);if(!s)return;const i=document[n(167)](n(196));i[n(180)]=n(168);const r=t[n(195)],o=s[n(199)]||s;if(r)i[n(191)][n(166)]=n(175),i.style[n(173)]=String(r);else{const e=t[n(201)],s={width:e?.width,height:e?.[n(173)]},{width:r,height:a}=this.calculateAdSize(o,s,{debug:this[n(156)]});i[n(191)][n(166)]=r,i[n(191)][n(173)]=a}const a=document[n(167)](n(196));a[n(180)]="adstage-text-content",a.style[n(152)]=xt[n(153)](!1),xt[n(185)](a,e);const c=t[n(201)]?.maxLines;c&&typeof c===n(192)&&(a[n(191)].display=n(159),a.style[n(164)]=String(c),a.style.webkitBoxOrient=n(183),a[n(191)][n(194)]=n(154)),i[n(189)](a),nt.addClickEventForRenderer(i,e,t,()=>this[n(155)](),this[n(156)],n(197)),s[n(174)]="",s[n(189)](i),this[n(156)]&&console[n(161)]("✨ Single text ad rendered: "+e[n(160)])}async[Ct(187)](t,e){const n=Ct,s=document[n(190)](t[n(158)]);if(!s)throw new Error(n(193)+t.containerId);const i=this[n(155)](),r={autoSlideInterval:(t[n(201)]?.[n(170)]||5e3)/1e3,...t.config,optimizedHeight:t.optimizedHeight,aspectRatio:t[n(200)]},o=Tt.createTextTransitionContainer(t,e,r,i,this[n(156)]);o&&(s[n(174)]="",s[n(189)](o),this[n(156)]&&console[n(161)](n(177)+t.id+n(181)+e[n(163)]+" ads"))}}const Rt=Ut;function Ut(t,e){const n=Pt();return(Ut=function(t,e){return n[t-=234]})(t,e)}!function(){const t=Ut,e=Pt();for(;;)try{if(812746===-parseInt(t(281))/1+parseInt(t(252))/2+parseInt(t(324))/3*(-parseInt(t(349))/4)+-parseInt(t(236))/5+-parseInt(t(261))/6+parseInt(t(310))/7*(parseInt(t(288))/8)+parseInt(t(341))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class zt extends gt{constructor(t=!1,e){super(r[Ut(335)],t,e)}[Rt(264)](){return Rt(260)}async[Rt(342)](t,e){const n=Rt,s=document.getElementById(t[n(337)]);if(!s)return;const i=document[n(308)](n(331));i[n(315)]=n(302),i.style[n(312)]=n(325),this[n(255)](i,e,t),s[n(311)]="",s.appendChild(i),this[n(245)]&&console.log(n(291)+e._id)}async[Rt(305)](t,e){const n=Rt,s=document.getElementById(t[n(337)]);if(!s)throw new Error(n(333)+t[n(337)]);if(e[n(314)]>0){const i=e[0],r=document[n(308)]("div");r[n(315)]="adstage-video-container",r[n(307)].cssText="\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n ",this[n(255)](r,i,t),s[n(311)]="",s[n(273)](r);const o=this[n(348)]();setTimeout(()=>{o(i[n(268)],t.id,u.VIEWABLE)},100),this[n(245)]&&console[n(270)](n(287)+t.id+" ("+i[n(268)]+")")}else this[n(245)]&&console[n(284)](n(301)+t.id)}renderVideoElementDirect(t,e,n){const s=Rt;t[s(307)][s(241)]=s(286);const i=document[s(308)]("video");i.style.width=s(336),i[s(307)][s(352)]=s(336),i[s(307)][s(316)]="contain",i[s(262)]=s(272);const r=n[s(238)];if(this[s(245)]&&console.log(s(277),r),i.controls=!1,i[s(340)]=!1!==r?.[s(340)],i[s(266)]=!0,i[s(339)]=!1!==r?.[s(339)],this[s(245)]&&console[s(270)]("🎬 Final video settings:",{autoplay:i[s(340)],muted:i[s(266)],loop:i[s(339)],controls:i[s(240)]}),!1!==r?.[s(303)]&&i[s(271)]("playsinline",""),!0===r?.[s(240)]&&(i[s(240)]=!0,this[s(245)]&&console.log(s(328))),r?.[s(347)])i.controls=!1,i[s(307)].cssText+=s(256);else if(r?.[s(289)]){if(i[s(240)]){const t=document[s(308)](s(307));t[s(282)]=s(258)+(r[s(289)][s(263)]?s(283):s(242))+s(254)+(r[s(289)][s(259)]?"none":s(242))+s(253)+(r[s(289)][s(239)]?"none":s(242))+s(285)+(r[s(289)][s(279)]?"none":s(242))+s(313)+(r[s(289)][s(265)]?s(283):s(242))+s(306)+(r[s(289)][s(320)]?s(283):s(242))+s(246)+(r[s(289)][s(276)]?s(283):"block")+s(244),document[s(330)][s(273)](t)}}else if(i.controls){const t=document[s(308)](s(307));t.id="adstage-video-default-controls",t[s(282)]=s(309),!document[s(304)]("adstage-video-default-controls")&&document[s(330)][s(273)](t)}this[s(245)]&&console[s(270)](s(235),i.controls?s(234):s(323));const o=document[s(308)](s(351));o[s(315)]=s(334),o[s(307)][s(312)]=s(249),r?.[s(347)]&&(o[s(307)][s(257)]=s(283));const a=()=>{const t=s,e=t(278),n=t(251);o[t(311)]=i[t(266)]?e:n,o.title=i[t(266)]?t(280):"Click to mute"};if(a(),o[s(295)](s(350),t=>{const e=s;t[e(338)](),i[e(266)]=!i[e(266)],a(),this[e(245)]&&console[e(270)]("🔊 Video mute toggled: "+(i[e(266)]?e(266):e(322)))}),o[s(295)]("mouseenter",()=>{const t=s;o[t(307)][t(274)]=t(332),o[t(307)][t(237)]=t(299)}),o[s(295)]("mouseleave",()=>{const t=s;o[t(307)][t(274)]=t(248),o.style.transform="scale(1)"}),e.videoUrl){i[s(319)]=e.videoUrl;const t=()=>{const t=s;i[t(340)]&&i[t(266)]&&i[t(298)]&&i[t(296)]()[t(294)](e=>{const n=t;this[n(245)]&&(console.warn(n(247),e),console[n(284)](n(321))),i[n(266)]=!0,i[n(296)]()[n(294)](t=>{const e=n;this[e(245)]&&console.error(e(275),t)})})};i.addEventListener(s(269),()=>{const e=s;this[e(245)]&&console[e(270)]("🎬 Video metadata loaded, attempting autoplay..."),t()}),i[s(295)](s(329),()=>{const e=s;this.debug&&console[e(270)](e(243)),t()}),i[s(295)](s(292),()=>{const e=s;this[e(245)]&&console[e(270)](e(297)),t()}),setTimeout(()=>{const e=s;this[e(245)]&&console[e(270)](e(317)),t()},100)}else if(e.imageUrl){const n=document[s(308)]("img");return n.src=e[s(346)],n[s(307)][s(344)]=s(336),n[s(307)][s(352)]=s(336),n.style[s(316)]="contain",n.alt=e[s(345)]||"Video thumbnail",void t.appendChild(n)}nt[s(300)](i,e,n,()=>this[s(348)](),this[s(245)],s(267)),i[s(295)](s(293),i=>{const r=s;if(console[r(293)]("Video load failed:",i),e.imageUrl){const s=document[r(308)](r(343));s.src=e.imageUrl,s[r(307)][r(344)]=r(336),s[r(307)].height=r(336),s[r(307)][r(316)]="contain",s.alt=e[r(345)]||"Video thumbnail",nt[r(300)](s,e,n,()=>this[r(348)](),this[r(245)],r(290)),t[r(311)]="",t[r(273)](s)}}),t[s(273)](i),t[s(273)](o),this.debug&&console[s(270)](s(250)+e._id+s(326)+i.autoplay+s(327)+i[s(266)]+s(318)+i[s(339)]+")")}}function Pt(){const t=["enabled","🎬 Video controls setting:","553015WNJyDx","transform","config","hideCurrentTime","controls","position","block","🎬 Video can play, attempting autoplay..."," !important;\n }\n ","debug"," !important;\n }\n video::-webkit-media-controls-fullscreen-button {\n display: ","🎬 Auto-play was prevented:","rgba(0, 0, 0, 0.7)","\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 ","🎬 Video element created for ad: ",'\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 ',"288748voASoQ"," !important;\n }\n video::-webkit-media-controls-current-time-display {\n display: "," !important;\n }\n video::-webkit-media-controls-timeline {\n display: ","renderVideoElementDirect","\n pointer-events: none;\n ","display","\n video::-webkit-media-controls-play-button {\n display: ","hideProgressBar","360px","5018646Exnmhf","preload","hidePlayButton","getDefaultHeight","hideVolumeSlider","muted","Video","_id","loadedmetadata","log","setAttribute","metadata","appendChild","background","🎬 Autoplay completely failed:","hideFullscreenButton","🎬 Video config received:",'\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 ',"hideRemainingTime","Click to unmute","284929BahDct","textContent","none","warn"," !important;\n }\n video::-webkit-media-controls-time-remaining-display {\n display: ","relative","🎬 Single video rendered for VIDEO slot: ","8yoEAoN","customControls","Video fallback","🎬 Single video ad rendered: ","loadeddata","error","catch","addEventListener","play","🎬 Video data loaded, attempting autoplay...","paused","scale(1.1)","addClickEventForRenderer","⚠️ No video advertisements available for slot: ","adstage-video-container","playsinline","getElementById","renderMultipleAds"," !important;\n }\n video::-webkit-media-controls-mute-button {\n display: ","style","createElement","\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 ","4637346KpzklT","innerHTML","cssText"," !important;\n }\n video::-webkit-media-controls-volume-slider {\n display: ","length","className","objectFit","🎬 Initial autoplay attempt after timeout...",", loop: ","src","hideMuteButton","🎬 Trying muted autoplay fallback...","unmuted","disabled (default)","21771CNtsaG","\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #000;\n border-radius: 8px;\n overflow: hidden;\n "," (autoplay: ",", muted: ","🎬 User explicitly enabled controls, overriding default","canplay","head","div","rgba(0, 0, 0, 0.9)","Container not found: ","adstage-video-mute-button","VIDEO","100%","containerId","stopPropagation","loop","autoplay","15973965SiCWJT","renderAdElement","img","width","title","imageUrl","hideControls","createEventTrackingCallback","296bdsqfJ","click","button","height"];return(Pt=function(){return t})()}const Nt=Ot;function Ot(t,e){const n=Mt();return(Ot=function(t,e){return n[t-=399]})(t,e)}!function(){const t=Ot,e=Mt();for(;;)try{if(275618===-parseInt(t(406))/1*(-parseInt(t(438))/2)+-parseInt(t(404))/3*(-parseInt(t(453))/4)+parseInt(t(424))/5*(parseInt(t(428))/6)+-parseInt(t(429))/7*(parseInt(t(399))/8)+parseInt(t(425))/9*(-parseInt(t(430))/10)+-parseInt(t(445))/11*(-parseInt(t(442))/12)+-parseInt(t(452))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Vt extends gt{constructor(t=!1,e){super(r.NATIVE,t,e)}getDefaultHeight(){return Ot(451)}async[Nt(431)](t,e){const n=Nt,s=document[n(419)](t[n(410)]);if(!s)return;const i=document[n(411)](n(448));if(i[n(421)]=n(407),i[n(435)][n(415)]=n(400),e[n(409)]){const t=document[n(411)]("h3");t[n(455)]=e[n(409)],t[n(435)][n(415)]=n(412),i[n(403)](t)}if(e.textContent){const t=document[n(411)]("p");t[n(455)]=e[n(455)],t[n(435)][n(415)]=n(418),i[n(403)](t)}if(e.imageUrl){const t=document[n(411)]("div");t[n(435)][n(415)]=n(436);const s=document[n(411)](n(444));s[n(405)]=e[n(447)],s.alt=e[n(409)]||n(422),s.style[n(415)]=n(443),t[n(403)](s),i.appendChild(t)}if(e[n(408)]){const t=document[n(411)](n(446));t[n(455)]=n(441),t[n(435)][n(415)]="\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.addEventListener(n(427),()=>{const t=n;this[t(454)]&&console.log(t(433)+e[t(417)]),window[t(401)](e[t(408)],t(426))}),t[n(456)](n(449),()=>{const e=n;t.style.backgroundColor=e(434)}),t[n(456)](n(420),()=>{const e=n;t[e(435)][e(414)]=e(416)}),i[n(403)](t)}s[n(432)]="",s.appendChild(i),this[n(439)]&&console[n(402)](n(413)+e._id)}async[Nt(437)](t,e){const n=Nt;e[n(440)]>0?(await this[n(431)](t,e[0]),this[n(439)]&&console.log(n(450)+e.length+n(423)+t.id)):this[n(439)]&&console.warn("⚠️ No native advertisements available for slot: "+t.id)}}function Mt(){const t=["6sgcrqO","197435kOIVcF","80JUyoAO","renderAdElement","innerHTML","Native click tracked for ad: ","#2563eb","style","\n width: 100%;\n height: 120px;\n margin-bottom: 12px;\n border-radius: 6px;\n overflow: hidden;\n background: #f3f4f6;\n ","renderMultipleAds","3036hVaSkw","debug","length","Learn More","12LtQVYg","\n width: 100%;\n height: 100%;\n object-fit: cover;\n ","img","1602007jFfKEu","button","imageUrl","div","mouseenter","🏠 Native ad rendered (first of ","200px","5614869HmWojo","5264AACJMV","advertisementEventTracker","textContent","addEventListener","88mNPavZ","\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 ","open","log","appendChild","669WOCGaH","src","149uTghNy","adstage-ad adstage-native-ad","linkUrl","title","containerId","createElement","\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: ","backgroundColor","cssText","#3b82f6","_id","\n margin: 0 0 12px 0;\n font-size: 14px;\n color: #6b7280;\n line-height: 1.4;\n flex: 1;\n ","getElementById","mouseleave","className","Native Advertisement","): ","2701015ZhpZLI","211167WhxyGF","_blank","click"];return(Mt=function(){return t})()}const _t=Ht;function Ft(){const t=["\n margin: 0 0 20px 0;\n font-size: 16px;\n color: #6b7280;\n line-height: 1.5;\n ","\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 ","div","#6b7280","\n width: 100%;\n padding: 12px 24px;\n background: #3b82f6;\n color: white;\n border: none;\n border-radius: 8px;\n font-size: 16px;\n font-weight: 600;\n cursor: pointer;\n transition: background-color 0.2s;\n ","open","textContent","#2563eb","title","300qdqtGg","addEventListener","closeInterstitial","renderAdElement","warn","animation","Interstitial Advertisement","Interstitial click tracked for ad: ","className","log","removeEventListener","Get Started","fadeOut 0.3s ease-out forwards","#374151","imageUrl","26510sXBuLz","adstage-interstitial-content","⚠️ No interstitial advertisements available for slot: ","#f3f4f6","\n width: 100%;\n max-height: 300px;\n object-fit: cover;\n border-radius: 8px;\n margin-bottom: 16px;\n ","key","2BNQHnJ","🖼️ Interstitial ad closed","renderMultipleAds","🖼️ Interstitial ad rendered: ","_id","cssText","8AxMHJF","createElement","linkUrl","length","style","94056vuQQOn","): ","🖼️ Interstitial ad rendered (first of ","38066GpBHUq","_blank","adstage-interstitial-overlay","color","\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 ","body","mouseenter","keydown","appendChild","parentNode","5163645qVmvAM","button","src","click","debug","backgroundColor","containerId","adstage-interstitial-styles","innerHTML","INTERSTITIAL","12067pfbBEC","removeChild","5163624qEMuBw","13522779kOLqUn","1047973kcBrTO"];return(Ft=function(){return t})()}function Ht(t,e){const n=Ft();return(Ht=function(t,e){return n[t-=352]})(t,e)}!function(){const t=Ht,e=Ft();for(;;)try{if(798522===-parseInt(t(378))/1+-parseInt(t(409))/2*(-parseInt(t(420))/3)+-parseInt(t(376))/4+-parseInt(t(364))/5+parseInt(t(388))/6*(-parseInt(t(354))/7)+parseInt(t(415))/8*(parseInt(t(377))/9)+-parseInt(t(403))/10*(-parseInt(t(374))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Kt extends gt{constructor(t=!1,e){super(r[Ht(373)],t,e)}getDefaultHeight(){return"400px"}async[_t(391)](t,e){const n=_t;if(!document.getElementById(t[n(370)]))return;const s=document[n(416)](n(381));s[n(396)]=n(356),s.style[n(414)]=n(358);const i=document[n(416)](n(381));i.className=n(404),i.style.cssText=n(380);const r=document.createElement(n(365));if(r[n(372)]="×",r.style.cssText="\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 ",r[n(389)](n(367),()=>{this.closeInterstitial(s)}),r[n(389)](n(360),()=>{const t=n;r.style.backgroundColor="#e5e7eb",r[t(419)].color=t(401)}),r[n(389)]("mouseleave",()=>{const t=n;r[t(419)][t(369)]=t(406),r[t(419)][t(357)]=t(382)}),e[n(402)]){const t=document[n(416)]("img");t[n(366)]=e.imageUrl,t.alt=e[n(387)]||n(394),t.style[n(414)]=n(407),i.appendChild(t)}if(e.title){const t=document[n(416)]("h2");t[n(385)]=e[n(387)],t[n(419)][n(414)]="\n margin: 0 0 12px 0;\n font-size: 24px;\n font-weight: 700;\n color: #111827;\n line-height: 1.3;\n ",i.appendChild(t)}if(e[n(385)]){const t=document.createElement("p");t[n(385)]=e[n(385)],t[n(419)][n(414)]=n(379),i[n(362)](t)}if(e[n(417)]){const t=document[n(416)](n(365));t[n(385)]=n(399),t[n(419)][n(414)]=n(383),t.addEventListener("click",()=>{const t=n;this.advertisementEventTracker&&console[t(397)](t(395)+e[t(413)]),window[t(384)](e[t(417)],t(355)),this[t(390)](s)}),t.addEventListener("mouseenter",()=>{const e=n;t.style.backgroundColor=e(386)}),t[n(389)]("mouseleave",()=>{const e=n;t[e(419)][e(369)]="#3b82f6"}),i[n(362)](t)}const o=t=>{const e=n;"Escape"===t[e(408)]&&(this[e(390)](s),document[e(398)](e(361),o))};if(document.addEventListener(n(361),o),s[n(389)](n(367),t=>{const e=n;t.target===s&&this[e(390)](s)}),!document.getElementById(n(371))){const t=document[n(416)]("style");t.id="adstage-interstitial-styles",t[n(385)]="\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 ",document.head[n(362)](t)}i[n(362)](r),s.appendChild(i),document[n(359)][n(362)](s),this.debug&&console[n(397)](n(412)+e._id)}async[_t(411)](t,e){const n=_t;e[n(418)]>0?(await this[n(391)](t,e[0]),this[n(368)]&&console[n(397)](n(353)+e.length+n(352)+t.id)):this.debug&&console[n(392)](n(405)+t.id)}[_t(390)](t){const e=_t;t[e(419)][e(393)]=e(400),setTimeout(()=>{const n=e;t[n(363)]&&t[n(363)][n(375)](t)},300),this[e(368)]&&console[e(397)](e(410))}}const Wt=jt;function jt(t,e){const n=Xt();return(jt=function(t,e){return n[t-=323]})(t,e)}function Xt(){const t=["NATIVE","TEXT","optimizeContainerForBannerAds"," renderers","Failed to load image: ","log"," Ad","getDefaultHeightForAdType","set","onload","renderFallback","No advertisement to render","textContent","size","createElement","get","VIDEO","advertisement","backgroundColor","adType","BANNER","1351cvSDyV","1184975ojprcZ","7781958WnQobm","config","isLoaded","style","block","cover","165otYWLq","calculateAdSize","9587286RHAJRp","calculateOptimalContainerSize","renderAdElement","data-adstage-ad-id","initializeRenderers","height","1384BhdlZi","src","11654lrdxBU","adstage-ad adstage-","renderers","objectFit","naturalWidth","getDefaultHeight","setAttribute","🏭 AdRenderer factory initialized with ","className","imageUrl","1px dashed #ccc","videoUrl","padding","8px","34279190ZLYXfl","advertisementEventTracker","div","getRenderer","loadImageDimensions","createAdElement","onerror","100%","renderOptimizedBannerImage is only supported for BANNER ads","69848MSyYNe","data-adstage-slot-id","warn","669FzpkpU","INTERSTITIAL","naturalHeight","renderAdSlider","#f9f9f9","renderOptimizedBannerImage","renderAd","appendChild","img","debug","width","createPlaceholder"];return(Xt=function(){return t})()}!function(){const t=jt,e=Xt();for(;;)try{if(906589===parseInt(t(334))/1+-parseInt(t(351))/2*(parseInt(t(377))/3)+-parseInt(t(349))/4*(-parseInt(t(341))/5)+-parseInt(t(343))/6+parseInt(t(333))/7*(-parseInt(t(374))/8)+parseInt(t(335))/9+parseInt(t(365))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class qt{constructor(t=!1,e){const n=jt;this.renderers=new Map,this[n(386)]=t,this[n(366)]=e||null,this[n(347)]()}[Wt(347)](){const t=Wt;this[t(353)][t(397)](r[t(332)],new vt(this[t(386)],this[t(366)])),this.renderers.set(r[t(390)],new Lt(this.debug,this[t(366)])),this[t(353)][t(397)](r[t(328)],new zt(this[t(386)],this[t(366)])),this[t(353)][t(397)](r[t(389)],new Vt(this[t(386)],this[t(366)])),this[t(353)][t(397)](r[t(378)],new Kt(this[t(386)],this[t(366)])),this[t(386)]&&console[t(394)](t(358)+this[t(353)][t(325)]+t(392))}[Wt(370)](t,e){const n=Wt,s=this[n(368)](t[n(331)]),i=document.createElement(n(367));i[n(359)]=n(352)+String(t[n(331)]).toLowerCase(),i[n(357)](n(346),e._id),i.setAttribute(n(375),t.id);const{width:o,height:a}=s[n(342)](i,t[n(336)]||{},e);switch(i.style[n(387)]=o,i[n(338)][n(348)]=a,i[n(338)].display=n(339),t.adType){case r[n(332)]:if(e.imageUrl){const t=document[n(326)](n(385));t[n(350)]=e[n(360)],t[n(338)][n(387)]="100%",t[n(338)][n(348)]=n(372),t.style[n(354)]=n(340),i.appendChild(t)}break;case r[n(328)]:if(e[n(362)]){const t=document.createElement("video");t.src=e[n(362)],t[n(338)][n(387)]="100%",t[n(338)][n(348)]="100%",i.appendChild(t)}break;case r[n(390)]:if(e[n(324)]){const t=document[n(326)]("div");t[n(324)]=e[n(324)]||"",t[n(338)][n(363)]=n(364),i[n(384)](t)}break;default:i[n(338)].border=n(361),i[n(338)][n(330)]=n(381),i[n(324)]=t[n(331)]+n(395)}return i}[Wt(368)](t){const e=Wt,n=this[e(353)][e(327)](t);if(!n)throw new Error("No renderer found for ad type: "+t);return n}[Wt(388)](t,e,n,s,i){const r=Wt;this[r(368)](n)[r(388)](t,e,s,i)}async optimizeContainerForBannerAds(t,e){const n=Wt;if(t.adType!==r.BANNER)return void(this.debug&&console[n(376)]("⚠️ Container optimization is only supported for BANNER ads, got: "+t.adType));const s=this[n(368)](r.BANNER);await s[n(391)](t,e)}async[Wt(380)](t,e){const n=Wt,s=this[n(368)](t[n(331)]);await s.renderMultipleAds(t,e)}async[Wt(383)](t){const e=Wt;if(!t[e(329)])throw new Error(e(323));const n=this[e(368)](t[e(331)]);await n[e(345)](t,t[e(329)]),t[e(337)]=!0}async renderAdElement(t,e){const n=Wt,s=this[n(368)](t[n(331)]);await s[n(345)](t,e)}[Wt(399)](t){const e=Wt;this[e(368)](t.adType)[e(399)](t)}[Wt(396)](t){const e=Wt;return this.getRenderer(t)[e(356)]()}calculateAdSize(t,e,n,s){const i=Wt;return this[i(368)](e)[i(342)](t,n,s)}[Wt(369)](t){return new Promise((e,n)=>{const s=jt,i=new Image;i[s(398)]=()=>{const t=s;e({width:i[t(355)],height:i[t(379)]})},i[s(371)]=()=>{n(new Error(s(393)+t))},i.src=t})}async[Wt(382)](t,e,n){const s=Wt;if(n[s(331)]!==r[s(332)])throw new Error(s(373));const i=this.getRenderer(r.BANNER);return await i[s(382)](t,e,n)}async[Wt(344)](t,e,n){const s=Wt;if(n!==r[s(332)]){const t=this[s(368)](n);return{width:s(372),height:t[s(356)](),aspectRatio:16/9}}const i=this.getRenderer(r.BANNER);return await i[s(344)](t,e)}[Wt(394)](t,...e){this[Wt(386)]&&console.log("[AdRenderer] "+t,...e)}}const Gt=Jt;function Jt(t,e){const n=Yt();return(Jt=function(t,e){return n[t-=230]})(t,e)}function Yt(){const t=["createAd","🗑️ Ads module destroyed","81856RuaBGj","🗑️ Ad slot destroyed: ","text","renderAdElement","error","destroy","create","🧹 Auto-cleanup: slot ","get","loop","❌ Failed to track viewable impression:","getAllSlots","apiKey","🎯 Ads module initialized (sync mode) with auto-cleanup","Ads module not initialized. Call AdStage.init() first.","advertisementEventTracker","handleViewableEvent","12Ydtnch","controls","✅ Ad loaded for slot: ","containerId","_isReady","🎠 Slider will handle VIEWABLE events for ","27wKVSTy","Ad slot not found: ","customControls","length","🔄 Retrying viewability tracking for slot: ","data-adstage-slot-id","createAdInternal"," (attempt ","VIDEO","GET","removedNodes","string","substr","693GOBuhK","random","auto"," ads)","autoDestroy"," attempts: ",", filters:","mutationObserver","height","getBaseUrl","renderFallback","🚫 Advertisement not found with ID: ","viewabilityTracker","getElementById","autoSlide","playsinline","then","📊 Fetched ","delete","debug","843716Tqrnyo","_id","✅ Simple viewable impression tracked for ad ","11gHLNAV","values","detail","getConfig","destroyModule","Failed to refresh ad slot: ","API key not configured","getAttribute","loadAdContentInBackground","deviceType","refreshAdSlot","Failed to fetch ad data: ","setupAutoCleanup","status","list","100%","config","New advertisement viewable tracked for slot:","📊 Advertisement event tracking enabled for slot: "," (element found)","Auto-cleanup failed for slot ","isReady","nodeType","auto-","country"," removed","slideInterval","🔍 Auto-cleanup MutationObserver enabled","disconnect","2345430WxPsTu","init","🔄 Ad slot refreshed: ","ms... (attempt ","toString","observe","onClick","video","ensureReady","16976AzbOyh","VIEWABLE","createAdWithRetry","maxLines","fetchAdData","6663480gDFahK","log","undefined",". Retrying in ","set","🎯 Simple viewability tracking started for slot: ","adstage-","language","warn","innerHTML","TEXT","advertisement","📊 Fetched specific ad with ID: ","_config","refresh","adRenderer","append","muted","handleRemovedElement","setAttribute","native","getSlotById","NATIVE","isLoaded","advertisements","autoplay","❌ Failed to find element for viewability tracking: ","adType","6475540VeTVFX","json","1856197maDDgJ","10WwpwcP","adId","body","slots","BANNER","clear","광고 생성 중 오류 발생:","width","ELEMENT_NODE","forEach"];return(Yt=function(){return t})()}!function(){const t=Jt,e=Yt();for(;;)try{if(830661===-parseInt(t(259))/1*(-parseInt(t(236))/2)+-parseInt(t(253))/3*(-parseInt(t(292))/4)+parseInt(t(369))/5*(-parseInt(t(324))/6)+-parseInt(t(368))/7+parseInt(t(333))/8*(-parseInt(t(272))/9)+parseInt(t(366))/10+-parseInt(t(295))/11*(parseInt(t(338))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Qt{constructor(){const t=Jt;this[t(257)]=!1,this._config=null,this[t(372)]=new Map,this[t(251)]=null,this[t(353)]=null,this[t(279)]=null}[Gt(325)](t){const e=Gt;this[e(351)]=t,this[e(251)]=new V(J[e(281)](),t.apiKey,t[e(291)]||!1,this.slots),this.adRenderer=new qt(t.debug||!1,this[e(251)]),this[e(307)](),this[e(257)]=!0,t[e(291)]&&console.log(e(249))}[Gt(316)](){return this._isReady}[Gt(298)](){return this._config}banner(t,e){const n=Gt;this[n(332)]();const s={width:e?.width||n(310),height:e?.[n(280)]||n(274),autoSlide:e?.[n(286)]||!1,slideInterval:e?.[n(321)]||5e3,onClick:e?.[n(330)],adId:e?.[n(370)],language:e?.[n(345)],deviceType:e?.[n(304)],country:e?.country};return this[n(234)](t,r[n(373)],s)}[Gt(238)](t,e){const n=Gt;this[n(332)]();const s={maxLines:e?.[n(336)]||3,style:e?.style||"default",onClick:e?.[n(330)],adId:e?.[n(370)],language:e?.[n(345)],deviceType:e?.[n(304)],country:e?.[n(319)]};return this[n(234)](t,r.TEXT,s)}[Gt(331)](t,e){const n=Gt;this[n(332)]();const s={width:e?.width||640,height:e?.[n(280)]||360,autoplay:void 0===e?.autoplay||e[n(363)],muted:void 0===e?.[n(355)]||e[n(355)],loop:void 0===e?.[n(245)]||e[n(245)],playsinline:!1!==e?.[n(287)],controls:void 0!==e?.[n(254)]&&e[n(254)],hideControls:e?.hideControls||!1,customControls:e?.[n(261)],autoSlide:!1,maxAds:1,onClick:e?.[n(330)],...e?.[n(370)]&&{adId:e[n(370)]}};return this.createAd(t,r[n(267)],s)}[Gt(358)](t,e){const n=Gt;return this[n(332)](),this[n(234)](t,r[n(360)],e||{})}interstitial(t,e){const n=Gt;return this[n(332)](),this[n(234)](t,r.INTERSTITIAL,e||{})}[Gt(352)](t){const e=Gt;this[e(332)]();const n=this.slots[e(244)](t);if(!n)throw new Error(e(260)+t);this[e(305)](n),this._config?.[e(291)]&&console[e(339)](e(326)+t)}destroy(t){const e=Gt;this[e(332)]();const n=this.slots[e(244)](t);if(!n)throw new Error(e(260)+t);n[e(284)]&&n.viewabilityTracker[e(241)]();const s=document.getElementById(n[e(256)]);s&&(s[e(347)]=""),this[e(372)][e(290)](t),this[e(351)]?.[e(291)]&&console[e(339)](e(237)+t)}[Gt(247)](){const t=Gt;return this.ensureReady(),Array.from(this.slots[t(296)]())}[Gt(359)](t){const e=Gt;return this.ensureReady(),this[e(372)][e(244)](t)||null}[Gt(234)](t,e,n){const s=Gt;if(!this[s(351)]?.[s(248)])throw new Error(s(301));const i=s(344)+e+"-"+Date.now()+"-"+Math[s(273)]()[s(328)](36)[s(271)](2,9);return this[s(335)](t,e,n,i,0),i}async[Gt(335)](t,e,n,s,i){const r=Gt,o=[0,50,100,200,500];let a,c=null;if(typeof t===r(270)){if(a=t,c=document[r(285)](t),!c)return i<4?(this._config?.[r(291)]&&console[r(346)]("Container not found: "+t+r(341)+o[i+1]+r(327)+(i+1)+"/5)"),void setTimeout(()=>{this.createAdWithRetry(t,e,n,s,i+1)},o[i+1])):void console.error("Container not found after 5"+r(277)+t)}else c=t,a=c.id||r(318)+s,!c.id&&(c.id=a);try{this[r(265)](a,e,n,s,c)}catch(t){console[r(240)](r(230),t)}}createAdInternal(t,e,n,s,i){const o=Gt;i[o(357)]("data-adstage-slot-id",s),this[o(353)]?.createPlaceholder(i,s,e,n,this[o(351)]);const a={id:s,containerId:t,adType:e,width:n[o(231)]||o(310),height:n[o(280)]||(e===r[o(348)]?o(274):250),isLoaded:!1,isVisible:!1,refreshRate:0,lazyLoad:!1,targeting:{},advertisement:void 0,config:{type:e,...n},load:async()=>this.fetchAdData(e,n)[o(288)](t=>t[0]||null),render:t=>this[o(353)]?.[o(239)](a,t),refresh:async()=>this[o(305)](a),destroy:()=>this[o(241)](s)};this[o(372)][o(342)](s,a),this[o(303)](a),this[o(251)]&&this[o(351)]?.[o(291)]&&console[o(339)](o(313)+s)}async[Gt(303)](t){const e=Gt;try{const n=await this[e(337)](t[e(365)],t[e(311)]);if(!n||0===n.length)return void this[e(353)]?.[e(282)](t);t[e(365)]===r[e(373)]&&n[e(262)]>0&&await(this.adRenderer?.optimizeContainerForBannerAds(t,n)),n[e(262)]>1||t.config?.[e(286)]?(await(this.adRenderer?.renderAdSlider(t,n)),this[e(351)]?.debug&&console[e(339)](e(258)+n[e(262)]+" ads automatically")):(t.advertisement=n[0],await(this[e(353)]?.[e(239)](t,n[0])),this.startSimpleViewabilityTracking(t,n[0])),t[e(361)]=!0,this[e(351)]?.[e(291)]&&console[e(339)](e(255)+t.id+" ("+n[e(262)]+e(275))}catch(n){console[e(240)]("❌ Failed to load ad for slot: "+t.id,n),this.adRenderer?.renderFallback(t)}}startSimpleViewabilityTracking(t,e){const n=(s=0)=>{const i=Jt,r=document[i(285)](t.id);if(!r)return void(s<5?(setTimeout(()=>n(s+1),300),this[i(351)]?.[i(291)]&&console[i(339)](i(263)+t.id+i(266)+(s+1)+")")):console[i(346)](i(364)+t.id));const o=new H(r,async()=>{const n=i;await this[n(252)](e,t)});t[i(284)]=o,this[i(351)]?.[i(291)]&&console[i(339)](i(343)+t.id+i(314))};n()}async[Gt(252)](t,e){const n=Gt;try{this[n(251)]&&(await this.advertisementEventTracker.trackAdvertisementEvent(t[n(293)],e.id,u[n(334)]),this._config?.[n(291)]&&console[n(339)](n(294)+t[n(293)]))}catch(t){console[n(240)](n(246),t)}}async[Gt(337)](t,e){const n=Gt;if(!this[n(351)]?.[n(248)])throw new Error(n(301));if(e[n(370)]){const t=""+J.advertisements[n(297)](e[n(370)]),s=await fetch(t,{method:n(268),headers:z[n(242)](this[n(351)][n(248)])});if(!s.ok){if(404===s[n(308)])return console[n(346)](n(283)+e[n(370)]),[];throw new Error(n(306)+s[n(308)])}const i=await s[n(367)]();return this[n(351)]?.[n(291)]&&console[n(339)](n(350)+e[n(370)],i),[i]}const s=new URLSearchParams;s[n(354)](n(365),t),e[n(345)]&&s[n(354)](n(345),e[n(345)]),e.deviceType&&s[n(354)](n(304),e.deviceType),e[n(319)]&&s[n(354)](n(319),e[n(319)]);const i=J[n(362)][n(309)]()+"?"+s[n(328)](),r=await fetch(i,{method:n(268),headers:z.create(this[n(351)][n(248)])});if(!r.ok)throw new Error(n(306)+r[n(308)]);const o=(await r[n(367)]()).advertisements||[];return this[n(351)]?.debug&&console[n(339)](n(289)+o[n(262)]+" ads for type: "+t+n(278),{language:e[n(345)],deviceType:e.deviceType,country:e[n(319)]}),o}async[Gt(305)](t){const e=Gt;try{const n=await this[e(337)](t[e(365)],t.config||{});n&&n.length>0&&(t[e(349)]=n[0],await(this.adRenderer?.renderAd(t)),this[e(251)]&&console[e(339)](e(312),t.id))}catch(n){console[e(240)](e(300)+t.id,n)}}[Gt(332)](){const t=Gt;if(!this._isReady)throw new Error(t(250))}[Gt(307)](){const t=Gt;"undefined"!=typeof window&&typeof document!==t(340)&&(this.mutationObserver&&this.mutationObserver[t(323)](),this[t(279)]=new MutationObserver(e=>{const n=t;e[n(233)](t=>{const e=n;t[e(269)].forEach(t=>{const n=e;t[n(317)]===Node[n(232)]&&this[n(356)](t)})})}),this.mutationObserver[t(329)](document[t(371)],{childList:!0,subtree:!0}),this[t(351)]?.debug&&console[t(339)](t(322)))}[Gt(356)](t){const e=Gt,n=t.getAttribute(e(264));if(n)return void this[e(276)](n);t.querySelectorAll("[data-adstage-slot-id]").forEach(t=>{const n=e,s=t[n(302)](n(264));s&&this[n(276)](s)})}[Gt(276)](t){const e=Gt;if(this[e(372)][e(244)](t))try{this[e(372)][e(290)](t),this[e(351)]?.[e(291)]&&console[e(339)](e(243)+t+e(320))}catch(n){this[e(351)]?.debug&&console[e(346)](e(315)+t+":",n)}}[Gt(299)](){const t=Gt,e=this[t(351)]?.[t(291)];this.mutationObserver&&(this[t(279)][t(323)](),this[t(279)]=null),this[t(372)][t(374)](),this.advertisementEventTracker=null,this[t(353)]=null,this[t(257)]=!1,this[t(351)]=null,e&&console[t(339)](t(235))}}function Zt(){var t=["updateConfig","40873gbjMec","1857711rnoriz","_isReady","4140lTVlBa","1160780OaEsxN","518aYYcGu","3257035hmlyvp","✅ Config module initialized (sync mode)","modules","config","development","init","isModuleEnabled","3862836EIDPni","56KONSFH","getEnabledModules","debug","ads","log","includes","4jvvPBg","API key not available","53735dbKQoc","getBaseUrl","Config module not initialized","_organizationInfo","isDebugMode","getConfig","_config","setBaseUrl","getApiHeaders","getOrganizationInfo","isReady","apiKey","events","120352wKZecQ","45XNMeyr"];return(Zt=function(){return t})()}var $t=te;function te(t,e){var n=Zt();return(te=function(t,e){return n[t-=168]})(t,e)}!function(){for(var t=te,e=Zt();;)try{if(683991===parseInt(t(197))/1*(-parseInt(t(173))/2)+-parseInt(t(198))/3+parseInt(t(179))/4*(parseInt(t(203))/5)+parseInt(t(172))/6+parseInt(t(202))/7*(-parseInt(t(194))/8)+parseInt(t(195))/9*(parseInt(t(201))/10)+parseInt(t(181))/11*(parseInt(t(200))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ee{constructor(){var t=te;this[t(199)]=!1,this[t(187)]=null,this[t(184)]=null}[$t(170)](t){var e=$t;this[e(187)]={timeout:3e4,debug:!1,modules:[e(176),e(193),e(168)],...t},t.baseUrl&&J[e(188)](t.baseUrl),this[e(199)]=!0,t[e(175)]&&console[e(177)](e(204),{modules:this._config[e(205)],endpoint:J[e(182)](),mode:e(169)})}[$t(191)](){return this[$t(199)]}[$t(186)](){return this[$t(187)]}[$t(190)](){return this[$t(184)]}getApiEndpoint(){return J[$t(182)]()}[$t(185)](){var t=$t;return this._config?.[t(175)]||!1}[$t(174)](){var t=$t;return this._config?.[t(205)]||[]}[$t(171)](t){var e=$t;return this[e(174)]()[e(178)](t)}[$t(196)](t){var e=$t;if(!this[e(187)])throw new Error(e(183));this._config={...this[e(187)],...t},this.isDebugMode()&&console.log("🔄 Config updated",t)}[$t(189)](){var t=$t;if(!this._config?.[t(192)])throw new Error(t(180));return z.create(this[t(187)][t(192)])}}const ne=se;function se(t,e){const n=ie();return(se=function(t,e){return n[t-=122]})(t,e)}function ie(){const t=["4459774yAXoel","32047776povmqY","_userProvidedDeviceInfo","onLine","getViewportInfo","desktop","setDeviceProperty","clearDeviceInfo","ios","Unknown","SSR","ko-KR","toLowerCase","110XFwQJZ","getDetailedInfo","width","userAgent","Android","12aQTkeS","iOS","language","Desktop Web","getAutoDetectedDeviceInfo","691281hfarGp","android","18ZpmpMi","test","isMobile","platform","mobile","height","other","973105Aqekxj","34560IlGyHs","8MfsduI","0x0","14311jyajLk","mapPlatformForEvents","web","tablet","140lXBEIg","isBrowser","4381330vSBjoT","setDeviceInfo"];return(ie=function(){return t})()}!function(){const t=se,e=ie();for(;;)try{if(743695===parseInt(t(124))/1*(-parseInt(t(145))/2)+-parseInt(t(155))/3*(parseInt(t(150))/4)+parseInt(t(128))/5*(parseInt(t(165))/6)+-parseInt(t(164))/7*(parseInt(t(122))/8)+parseInt(t(157))/9*(-parseInt(t(130))/10)+parseInt(t(132))/11+parseInt(t(133))/12)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class re{static getDeviceInfo(){const t=se;return{...re[t(154)](),...re[t(134)]}}static[ne(154)](){const t=ne;if(!w[t(129)]())return{category:t(163),platform:"SSR",model:t(142),osVersion:t(142)};const e=navigator[t(148)][t(144)]();let n=t(137);/tablet|ipad/[t(158)](e)?n=t(127):B[t(159)]()&&(n=t(161));const s=B.getPlatform();return{category:n,platform:re[t(125)](s),model:navigator[t(160)],osVersion:navigator[t(160)]}}static[ne(131)](t){re[ne(134)]={...re._userProvidedDeviceInfo,...t}}static[ne(138)](t,e){re[ne(134)][t]=e}static[ne(139)](){re[ne(134)]={}}static getUserDeviceInfo(){return{...re[ne(134)]}}static[ne(125)](t){const e=ne;switch(t){case e(140):return e(151);case e(156):return e(149);case e(126):return"Mobile Web";case"desktop":return e(153);default:return e(141)}}static[ne(146)](){const t=ne;if(!w[t(129)]())return{userAgent:"SSR",language:"ko-KR",platform:"SSR",cookieEnabled:!1,onLine:!0,screenResolution:"0x0",viewportSize:t(123)};const e=w[t(136)]();return{userAgent:navigator.userAgent,language:navigator[t(152)]||t(143),platform:navigator.platform,cookieEnabled:navigator.cookieEnabled,onLine:navigator[t(135)],screenResolution:screen[t(147)]+"x"+screen[t(162)],viewportSize:e[t(147)]+"x"+e[t(162)]}}}re._userProvidedDeviceInfo={};const oe=ae;function ae(t,e){const n=de();return(ae=function(t,e){return n[t-=237]})(t,e)}!function(){const t=ae,e=de();for(;;)try{if(408439===parseInt(t(238))/1*(-parseInt(t(244))/2)+-parseInt(t(237))/3+-parseInt(t(247))/4+parseInt(t(249))/5+parseInt(t(248))/6*(parseInt(t(242))/7)+parseInt(t(252))/8+-parseInt(t(250))/9*(-parseInt(t(254))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class ce{static[oe(258)](){const t=oe;return{...ce.getBaseUserInfo(),...ce[t(257)]}}static[oe(243)](){const t=oe;if(!w[t(255)]())return{language:t(241),country:"KR"};const e=navigator[t(259)]||t(241);return{language:e,country:ce[t(240)](e)}}static extractCountryFromLanguage(t){const e={ko:"KR","ko-KR":"KR",en:"US","en-US":"US","en-GB":"GB",ja:"JP","ja-JP":"JP",zh:"CN","zh-CN":"CN","zh-TW":"TW",de:"DE","de-DE":"DE",fr:"FR","fr-FR":"FR"};if(e[t])return e[t];return e[t.split("-")[0]]||"KR"}static[oe(251)](t){const e=oe;ce[e(257)]={...ce[e(257)],...t}}static[oe(260)](t,e){ce[oe(257)][t]=e}static[oe(246)](){ce[oe(257)]={}}static getCurrentUserProperties(){return{...ce[oe(257)]}}static[oe(256)](){const t=oe;if(!w[t(255)]())return{timezone:t(239),estimatedCountry:"KR"};const e=Intl[t(253)]()[t(245)]().timeZone;return{timezone:e,estimatedCountry:{"Asia/Seoul":"KR","Asia/Tokyo":"JP","Asia/Shanghai":"CN","Asia/Hong_Kong":"HK","Asia/Taipei":"TW","America/New_York":"US","America/Los_Angeles":"US","Europe/London":"GB","Europe/Berlin":"DE","Europe/Paris":"FR"}[e]||"KR"}}}function de(){const t=["2069505UwyIPG","8271CoogXz","setUserProperties","3930528EgqNUu","DateTimeFormat","3730XUEdrw","isBrowser","estimateLocation","_userProperties","getUserInfo","language","setUserProperty","1539315BVGTLb","1198pOFGtN","UTC","extractCountryFromLanguage","ko-KR","1106sHcEUq","getBaseUserInfo","956TflNiv","resolvedOptions","clearUserProperties","158552LsDTzu","10854sRBcLN"];return(de=function(){return t})()}ce[oe(257)]={};const le=pe;function ue(){const t=["ssr_session_","getSessionDuration","toString","substr","isBrowser","adstage_user_id","setUserId","adstage_session_id","2235569ZgEgGC","adstage_session_start","336445BlUlQg","getUserId","_userId","4vvqaHv","setItem","removeItem","getSessionStats","isSessionExpired","_sessionStartTime","1634096GtydiX","843124fhXpEJ","isNewSession","getSessionId","getSessionInfo","2273608btIHDr","session_","now","refreshSession","getItem","8570898CkqhtC","1873275VZqjPb"];return(ue=function(){return t})()}function pe(t,e){const n=ue();return(pe=function(t,e){return n[t-=305]})(t,e)}!function(){const t=pe,e=ue();for(;;)try{if(719530===parseInt(t(306))/1+parseInt(t(310))/2+parseInt(t(316))/3+-parseInt(t(330))/4*(-parseInt(t(327))/5)+-parseInt(t(315))/6+-parseInt(t(325))/7+-parseInt(t(305))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class he{static[le(308)](){const t=le;if(!w.isBrowser())return t(317)+Date[t(312)]();const e=sessionStorage.getItem(t(324));if(e)return e;const n=t(311)+Math.random()[t(319)](36)[t(320)](2,9)+"_"+Date[t(312)]();return sessionStorage.setItem(t(324),n),!he[t(335)]&&(he[t(335)]=Date[t(312)](),w[t(321)]()&&sessionStorage[t(331)](t(326),String(he[t(335)]))),n}static[le(323)](t){const e=le;he[e(329)]=t,w[e(321)]()&&localStorage[e(331)](e(322),t)}static[le(328)](){const t=le;if(he[t(329)])return he._userId;if(w[t(321)]()){const e=localStorage[t(314)]("adstage_user_id");if(e)return he._userId=e,e}}static clearUserId(){const t=le;he._userId=void 0,w[t(321)]()&&localStorage[t(332)](t(322))}static[le(309)](){const t=le,e=he[t(308)](),n=he.getUserId(),s=he[t(307)]();return{sessionId:e,userId:n,sessionDuration:he[t(318)](),isNewSession:s}}static[le(307)](){const t=le;if(!w.isBrowser())return!0;const e=sessionStorage[t(314)](t(324)),n=sessionStorage[t(314)](t(326));return!e||!n}static[le(318)](){const t=le;if(!w[t(321)]())return 0;const e=sessionStorage[t(314)]("adstage_session_start");return e?Date[t(312)]()-parseInt(e,10):0}static[le(313)](){const t=le;return w.isBrowser()&&(sessionStorage[t(332)](t(324)),sessionStorage[t(332)]("adstage_session_start")),he._sessionStartTime=void 0,he[t(308)]()}static[le(334)](t=24){return he[le(318)]()>60*t*60*1e3}static[le(333)](){const t=le,e=he.getSessionId(),n=he[t(328)](),s=he.getSessionDuration(),i=he[t(334)](),r=he[t(307)]();let o;if(w[t(321)]()){const e=sessionStorage[t(314)](t(326));o=e?parseInt(e,10):void 0}return{sessionId:e,userId:n,startTime:o,duration:s,isExpired:i,isNewSession:r}}}function fe(){const t=["Event tracking failed: ","apiKey","8804169rtWsax","getUserInfo","👤 User ID set:","getSessionId","📱 Device property set:","getDeviceInfo","📊 Events module initialized","15273150TlDlnC","API key not configured for event tracking.","getConfig","✅ Event tracked:","📱 User provided device info cleared","debug","_isReady","171OdksGD","isReady","8JfBHNR","stringify","getCurrentUserProperties","warn","application/json","29228Wqvwgx","6752832soRBaO","👤 User properties set:","38364vEjcbx","init","statusText","POST","setUserProperties","events","sendEventToServer","setDeviceInfo","3984900pAwptx","track","error","log","Events module not initialized. Call AdStage.init() first.","_config","getUserId","getUserDeviceInfo","create","112vLkTak","setUserId","144251wHUOhD","status","❌ Failed to track event:","clearDeviceInfo","getUserProperties","setDeviceProperty"];return(fe=function(){return t})()}const ge=me;function me(t,e){const n=fe();return(me=function(t,e){return n[t-=483]})(t,e)}!function(){const t=me,e=fe();for(;;)try{if(499609===parseInt(t(508))/1*(parseInt(t(532))/2)+parseInt(t(530))/3*(parseInt(t(486))/4)+parseInt(t(497))/5+-parseInt(t(489))/6*(-parseInt(t(506))/7)+-parseInt(t(487))/8+parseInt(t(516))/9+-parseInt(t(523))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class Ie{constructor(){this._isReady=!1,this._config=null}[ge(490)](t){const e=ge;this[e(502)]=t,this[e(529)]=!0,t[e(528)]&&console[e(500)](e(522))}[ge(531)](){return this[ge(529)]}[ge(525)](){return this[ge(502)]}[ge(507)](t){const e=ge;he[e(507)](t),this[e(502)]?.debug&&console[e(500)](e(518),t)}[ge(503)](){return he.getUserId()}[ge(493)](t){const e=ge;ce[e(493)](t),this[e(502)]?.debug&&console[e(500)](e(488),t)}[ge(512)](){return ce[ge(483)]()}[ge(496)](t){const e=ge;re.setDeviceInfo(t),this[e(502)]?.debug&&console[e(500)]("📱 Device info set:",t)}[ge(513)](t,e){const n=ge;re[n(513)](t,e),this[n(502)]?.[n(528)]&&console[n(500)](n(520),t,e)}[ge(511)](){const t=ge;re[t(511)](),this[t(502)]?.[t(528)]&&console[t(500)](t(527))}getUserDeviceInfo(){return re[ge(504)]()}[ge(521)](){return re.getDeviceInfo()}[ge(517)](){return ce.getUserInfo()}[ge(483)](){return ce[ge(483)]()}async[ge(498)](t,e){const n=ge;if(this[n(529)])if(this[n(502)]?.[n(515)])try{const s={eventName:t,userId:he[n(503)](),sessionId:he[n(519)](),sdkVersion:S(),device:re[n(521)](),user:ce[n(517)](),params:e||{}};await this[n(495)](s),this[n(502)][n(528)]&&console[n(500)](n(526),t,e)}catch(s){console[n(499)](n(510),s),this[n(502)][n(528)]&&console.error("Event data:",{eventName:t,properties:e})}else console.warn(n(524));else console[n(484)](n(501))}async[ge(495)](t){const e=ge,n=await fetch(J[e(494)][e(498)](),{method:e(492),headers:{...z[e(505)](this._config.apiKey),"Content-Type":e(485)},body:JSON[e(533)](t)});if(!n.ok)throw new Error(e(514)+n[e(509)]+" "+n[e(491)])}}function ve(){const t=["8195hSzlVS","debug","AdStage not initialized. Call AdStage.init() first.","21436uuoLqs","clear","🌐 API endpoint configured:","events","ads","from","setBaseUrl","config","📊 AdStage Debug: 현재 viewable 추적 상태","291736aYLtxh",")의 viewable 추적 초기화됨","54DgBjRK","641pfsLVu","...","viewableTracker","development","✅ AdStage Debug: 광고 ","2.0.0","✅ AdStage Debug: 모든 viewable 추적 데이터 초기화됨","log","init","_isInitialized","isReady","69fffwrU","substring","getConfig","size","apiKey","baseUrl","393435AwhaTZ","216300wzWbpl","626oAEstW","clearAdViewable","getInstance","instance","174888QGncsm","🚀 AdStage SDK initialized (sync mode)","_config","1940xufBnJ"];return(ve=function(){return t})()}const ye=be;function be(t,e){const n=ve();return(be=function(t,e){return n[t-=133]})(t,e)}!function(){const t=be,e=ve();for(;;)try{if(110883===parseInt(t(138))/1*(parseInt(t(157))/2)+-parseInt(t(149))/3*(-parseInt(t(168))/4)+-parseInt(t(155))/5+-parseInt(t(161))/6+-parseInt(t(156))/7+parseInt(t(135))/8*(-parseInt(t(137))/9)+parseInt(t(164))/10*(parseInt(t(165))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();class we{constructor(){const t=be;this[t(147)]=!1,this[t(163)]=null,this[t(133)]=new ee,this[t(172)]=new Qt,this[t(171)]=new Ie}static[ye(146)](t){const e=ye;!we[e(160)]&&(we[e(160)]=new we);const n=we.instance;if(!t[e(153)])throw new Error("API key is required for AdStage initialization");n._config={timeout:3e4,debug:!1,modules:[e(172),"events",e(133)],...t},n[e(163)][e(154)]&&(J[e(174)](n[e(163)][e(154)]),t[e(166)]&&console[e(145)](e(170),n[e(163)].baseUrl));const s=n[e(163)].modules||["ads",e(171),"config"];for(const t of s){const s=n[t];s&&"function"==typeof s[e(146)]&&s[e(146)](n[e(163)])}n[e(147)]=!0,t[e(166)]&&console[e(145)](e(162),{version:e(143),modules:s,apiKey:t[e(153)][e(150)](0,8)+e(139),mode:e(141)})}static[ye(148)](){const t=ye;return we[t(160)]?.[t(147)]||!1}static[ye(151)](){const t=ye;return we[t(160)]?._config||null}static[ye(159)](){const t=ye;if(!we[t(160)])throw new Error(t(167));return we[t(160)]}static get[ye(172)](){return we[ye(159)]().ads}static get[ye(171)](){return we.getInstance().events}static get[ye(133)](){const t=ye;return we[t(159)]()[t(133)]}static reset(){const t=ye;we[t(160)]&&(we[t(160)]._isInitialized=!1,we[t(160)][t(163)]=null)}}function ke(t,e){var n=xe();return(ke=function(t,e){return n[t-=147]})(t,e)}function xe(){var t=["events","warn","getUserId","615831RKNwjU","2fiNzhG","8ucUsRY","track","2565244CDqGiv","isReady","2310138LuNTGz","AdStage not initialized. Call AdStage.init() first.","36424629uWQtDb","7364682wKdNVM","getUserProperties","setUserProperties","setUserId","2820300LZAkKK","5851636yhNRXa"];return(xe=function(){return t})()}function Ee(t,e){var n=ke;return we[n(150)]()?we[n(160)][n(148)](t,e):(console[n(161)](n(152)),Promise.resolve())}function Ae(t){var e=ke;we[e(150)]()?we[e(160)][e(157)](t):console[e(161)](e(152))}function Se(){var t=ke;if(we[t(150)]())return we[t(160)][t(162)]();console[t(161)](t(152))}function Te(t){var e=ke;we[e(150)]()?we[e(160)][e(156)](t):console[e(161)](e(152))}function Ce(){var t=ke;if(we[t(150)]())return we[t(160)][t(155)]();console[t(161)](t(152))}we[ye(166)]={clearAllViewable:()=>{const t=ye;ut[t(169)](),console[t(145)](t(144))},clearAdViewable:(t,e)=>{const n=ye;ut[n(158)](t,e),console[n(145)](n(142)+t+"("+e+n(136))},getViewableStatus:()=>{const t=ye;console[t(145)](t(134),{trackedCount:ut[t(140)][t(152)],trackedItems:Array[t(173)](ut[t(140)])})}},function(){for(var t=ke,e=xe();;)try{if(624200===parseInt(t(163))/1*(parseInt(t(164))/2)+-parseInt(t(151))/3+-parseInt(t(149))/4+-parseInt(t(158))/5+-parseInt(t(154))/6+parseInt(t(159))/7*(-parseInt(t(147))/8)+parseInt(t(153))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const De=e(null);function Be({children:e,config:i}){const[r,o]=n(!1),[a,c]=n(null),[d,l]=n(null),u=t=>{try{l(null),r&&we.reset(),we.init(t),c(t),o(!0),t.debug&&console.log("✅ AdStage SDK initialized successfully via React Provider")}catch(t){const e=t instanceof Error?t.message:"Unknown error";l(e),console.error("❌ AdStage SDK initialization failed:",t),o(!1),c(null)}};s(()=>{i&&!r&&u(i)},[i,r]);const p={isInitialized:r,config:a,initialize:u,reset:()=>{try{we.reset(),o(!1),c(null),l(null)}catch(t){console.error("❌ AdStage SDK reset failed:",t)}},error:d};return t(De.Provider,{value:p,children:e})}function Le(){const t=i(De);if(!t)throw new Error("useAdStageContext must be used within an AdStageProvider");return t}function Re(){const{isInitialized:t}=Le();return t?we:(console.warn("AdStage SDK is not initialized. Please call initialize() first or provide config to AdStageProvider."),null)}function Ue(){var t=["1508uSUeiX","175668yLifvo","30VUIadP","54681JDiffY","2020uHIyuv","314019cZvehZ","2087ZHIVub","4CEtidn","45096uonhei","133pkKKer","1228XOljvF","1283898sjELcl","5114463uxyHYS"];return(Ue=function(){return t})()}function ze(t,e){var n=Ue();return(ze=function(t,e){return n[t-=350]})(t,e)}!function(){for(var t=ze,e=Ue();;)try{if(871325===-parseInt(t(359))/1*(parseInt(t(350))/2)+parseInt(t(352))/3*(parseInt(t(360))/4)+-parseInt(t(355))/5*(-parseInt(t(351))/6)+parseInt(t(362))/7*(-parseInt(t(361))/8)+-parseInt(t(358))/9+parseInt(t(357))/10*(parseInt(t(356))/11)+-parseInt(t(354))/12*(parseInt(t(353))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Pe=Ve;!function(){const t=Ve,e=Me();for(;;)try{if(197280===-parseInt(t(157))/1*(parseInt(t(158))/2)+-parseInt(t(165))/3+-parseInt(t(168))/4*(parseInt(t(162))/5)+-parseInt(t(170))/6*(-parseInt(t(163))/7)+parseInt(t(166))/8+parseInt(t(155))/9+-parseInt(t(167))/10*(-parseInt(t(164))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Ne=Pe(159),Oe=[Pe(161),"events",Pe(160)];function Ve(t,e){const n=Me();return(Ve=function(t,e){return n[t-=155]})(t,e)}function Me(){const t=["1984437bDmAfd","AdStage","172475ptwDSA","2VdCAeA","2.0.0","config","ads","466685oaWrCT","343wBGsad","154suaoZA","1011486LcKkDt","2163704RakOWn","328150wtTtxY","16pGmQXX","undefined","15906goFNJu"];return(Me=function(){return t})()}typeof window!==Pe(169)&&(window[Pe(156)]=we);export{we as AdStage,Be as AdStageProvider,Ne as SDK_VERSION,Oe as SUPPORTED_MODULES,Se as getUserId,Ce as getUserProperties,Ae as setUserId,Te as setUserProperties,Ee as track,Le as useAdStageContext,Re as useAdStageInstance};