(() => { var Pi=Object.defineProperty;var Oi=(t,e,i)=>e in t?Pi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var c=(t,e,i)=>Oi(t,typeof e!="symbol"?e+"":e,i);var Le=(t=>(t.ScriptLoaded="script-loaded",t.ClientReady="client-ready",t))(Le||{}),st=(t=>(t.Error="error",t))(st||{}),ce=(t=>(t.AdRequest="ad-request",t.AdResolve="ad-resolved",t.AdNotResolved="ad-not-resolved",t))(ce||{}),j=(t=>(t.AdReady="ad-ready",t.AdView="ad-view",t.AdInsert="ad-insert",t.AdClick="ad-click",t.AdClose="ad-xtocloseclick",t.AdIframeReady="ad-iframe-ready",t.AdOverlay="ad-overlay",t))(j||{}),rt=(t=>(t.MinipassConnected="minipass-connected",t.AdCreativeImpression="ad-creative-impression",t.AdCreativeClick="ad-creative-click",t))(rt||{}),Ce=(t=>(t.VideoVastAvailable="video-vast-available",t.VideoVastLoaded="video-vast-loaded",t.VideoReady="video-ready",t.VideoLazyPlay="video-lazyplay",t.VideoStarted="video-started",t.VideoImpression="video-impression",t.VideoPlay="video-play",t.VideoPlayPercentile25="video-played-percentile-25",t.VideoPlayPercentile50="video-played-percentile-50",t.VideoPlayPercentile75="video-played-percentile-75",t.VideoEnd="video-end",t.VideoClick="video-click",t.VideoSkip="video-skip",t.VideoError="video-error",t.VideoViewableImpression="video-viewable-impression",t.VideoPaused="video-paused",t.VideoResumed="video-resumed",t.VideoAllAdsCompleted="video-all-ads-completed",t))(Ce||{}),F=(t=>(t.AdViewability1s50="ad-viewability-1s50",t.AdViewability1s100="ad-viewability-1s100",t.AdViewability2s50="ad-viewability-2s50",t.AdViewability3s50="ad-viewability-3s50",t))(F||{}),ue=(t=>(t.LazyInsert="ad-lazyinsert",t.LazyInsertNotReady="ad-lazyinsert-not-ready",t))(ue||{}),at=(t=>(t.XandrViewabilityWrapperChange="appnexus-viewability-wrapper-change",t))(at||{});const le={...j,...Ce,...F,...st,...at,...rt,...ue};var Ve=(t=>(t.DISPLAY="display",t.VIDEO="video",t.NATIVE="native",t))(Ve||{});const Mi=t=>{switch(t){case Ve.DISPLAY:case Ve.NATIVE:return"display";case Ve.VIDEO:return"video"}},xi=t=>{switch(t){case"OMN":return"native";case"OMV":return"outstreamVideo";default:{const e=t.replace(/^(P|OM)/,"");switch(e){case"CEDh":case"CEDv":return"engagementDisplay";case"CID":return"impactDisplay";case"CN":return"native";case"CEV":return"engagementVideo";case"CBV":return"brandedVideo";case"COV":return"outstreamVideo";case"CFD":return"frameDisplay";default:{const[i,n]=Di(e);return i===200&&n===200||i===250&&n===250||i===300&&n===250||i===336&&n===280?"standardAdsSquared":i&&n?i>=n?"standardAdsBanner":"standardAdsVertical":"unknown"}}}}},Ri=t=>{switch(t){case"engagementDisplay":return"contextual-engagement-display";case"impactDisplay":return"contextual-impact-display";case"native":return"contextual-native";case"engagementVideo":return"contextual-engagement-video";case"brandedVideo":return"contextual-branded-video";case"outstreamVideo":return"contextual-outstream-video";case"standardAdsBanner":case"standardAdsSquared":case"standardAdsVertical":return"display-standard";case"frameDisplay":return"contextual-frame-display";case"protectedAudiences":return"protected-audiences";case"unknown":default:return"unknown"}},Di=t=>{const e=/^(\d+)x(\d+)$/,i=t.match(e),n=(s,r)=>s?parseInt(s[r],10):void 0;return[n(i,1),n(i,2)]};var Ae=(t=>(t.Open="open",t.Deal="deal",t.Direct="direct",t))(Ae||{}),Ke=(t=>(t.CEV="CEV",t.COV="COV",t.CBV="CBV",t.CEDV="CEDv",t.CEDH="CEDh",t.CID="CID",t.CFD="CFD",t.CN="CN",t.PCEV="PCEV",t.PCOV="PCOV",t.PCBV="PCBV",t.PCEDV="PCEDv",t.PCEDH="PCEDh",t.PCID="PCID",t.PCFD="PCFD",t.PCN="PCN",t.PDS_GROUP="PDS",t.P120X600="P120x600",t.P160X600="P160x600",t.P300X600="P300x600",t.P320X50="P320x50",t.P728X90="P728x90",t.P970X250="P970x250",t.PFDS_GROUP="PFDS",t.P300X250="P300x250",t.OMN="OMN",t.OMV="OMV",t.OM85X31="OM85x31",t.OM120X60="OM120x60",t.OM120X240="OM120x240",t.OM120X600="OM120x600",t.OM160X600="OM160x600",t.OM300X50="OM300x50",t.OM300X100="OM300x100",t.OM300X600="OM300x600",t.OM320X50="OM320x50",t.OM320X100="OM320x100",t.OM320X480="OM320x480",t.OM468X60="OM468x60",t.OM728X90="OM728x90",t.OM728X200="OM728x200",t.OM728X250="OM728x250",t.OM980X90="OM980x90",t.OM970X90="OM970x90",t.OM970X250="OM970x250",t.OM970X300="OM970x300",t.OM980X250="OM980x250",t.OM125X125="OM125x125",t.OM180X150="OM180x150",t.OM200X200="OM200x200",t.OM213X120="OM213x120",t.OM250X250="OM250x250",t.OM300X200="OM300x200",t.OM300X250="OM300x250",t.OM320X250="OM320x250",t.OM336X280="OM336x280",t.OM350X196="OM350x196",t.OM400X225="OM400x225",t.OM400X300="OM400x300",t.OM600X400="OM600x400",t.OM640X360="OM640x360",t.OM640X480="OM640x480",t.OM700X393="OM700x393",t))(Ke||{});const Ft=t=>["CEV","COV","CBV","CEDv","CEDh","CID","CFD","CN","PCEV","PCOV","PCBV","PCEDv","PCEDh","PCID","PCFD","PCN"].includes(t),ot=t=>["OMV","COV","PCOV"].includes(t),yt=t=>["OMV","COV","PCOV","CBV","PCBV","CEV","CEDv","PCEV"].includes(t);var Re=(t=>(t.AD_SWAP="AD_SWAP",t.SINGLE="SINGLE",t.BACKUP="BACKUP",t.EMPTY="EMPTY",t))(Re||{}),ge=(t=>(t.HeaderBidding="HeaderBidding",t.Tam="Tam",t.PrebidServer="PrebidServer",t.SingleAdUnit="Autonomous",t.Tag="Tag",t.AMP="AMP",t))(ge||{}),M=(t=>(t.InBanner="inBanner",t.InArticle="inArticle",t.InScreen="inScreen",t.InTop="inTop",t))(M||{});const Gt=(t=navigator.userAgent)=>/Android|web0S|iPhone|iPad|iPod|BlackBerry|Opera Mini/i.test(t),Je=(t=navigator.userAgent)=>!Gt(t),ki=()=>{const t=document.currentScript;return t&&t instanceof HTMLScriptElement?t.src:null},re=t=>{try{for(;t!==t.parent;)t.parent.document.body,t=t.parent}catch{}return t},Ui=(t=window)=>re(t)==t,Xt=t=>{const e=ki()||"",n=/https:\/\/(t\.seedtag\.com\/c|config\.seedtag\.com)\/v\/([0-9]*)\/*/gi.exec(e);return n&&n[2]||void 0},Wt=(t,e,i,n,s)=>{let r="unknown";t instanceof Error?r=t.message:typeof t=="string"&&(r=t);const d={...{s:i,e:r,t:"adunit-render",v:Xt()||"",at:e,tk:n},...s};fetch("https://endpoint1.collection.eu.sumologic.com/receiver/v1/http/ZaVnC4dhaV3AGFS6E0Ysz3fSDL-XPgtC2BIL2fEC-IbmNYLrELvAJsYPSFheE2S32YMJV1_wFRVO4JN0pV5s44NmcX6j1gUGn1ozH3BB4eTXeGoYMoijJg==",{method:"POST",body:JSON.stringify(d)})},Et=t=>{try{return!!t.$sf&&!!t.$sf.ext}catch{return!1}},ze=t=>{try{if(Et(t))return t.$sf;if(Et(t.parent))return ze(t.parent)}catch{}},ae=t=>!!ze(t),Ni="https://s.seedtag.com/e/";class Li{constructor(e){c(this,"getEventEndpoint",e=>Ni+(e?"ev":"e"));this.payload=e}addEvent(e,i){const n={name:e,...i};return this.payload.events.push(n),n}async sendEvents(){if(!this.payload.events.length)return Promise.resolve();this.payload.events.forEach(this.mapEventPayload);const e=btoa(JSON.stringify(this.payload));return this.payload.events=[],fetch(this.getEventEndpoint(!!this.payload.eventChunk),{method:"POST",body:e,credentials:"include"}).catch(()=>{})}updatePayload(e){this.payload={...this.payload,...e}}mapEventPayload(e){e.channel===Ae.Deal&&(e.channel="programmatic-direct")}}var de=(t=>(t.FIXED="fixed",t.MOBILE="mobile",t.UNKNOWN="unknown",t))(de||{}),Ze=(t=>(t.Desktop="desktop",t.Handheld="handheld",t))(Ze||{}),X=(t=>(t.Android="Android",t.iOS="iOS",t.Windows="Windows",t.Mac_OS="Mac OS",t.Linux="Linux",t.Chromium_OS="Chromium OS",t.Ubuntu="Ubuntu",t))(X||{}),Y=(t=>(t.Chrome="chrome",t.Safari="safari",t.Facebook="facebook",t.Firefox="firefox",t.Instagram="instagram",t.Bot="bot",t))(Y||{});const zi=t=>{var i;const e=(i=t.navigator.connection)==null?void 0:i.effectiveType;return Je()||e==="wifi"||e==="ethernet"?de.FIXED:e==="cellular"||e==="wimax"?de.MOBILE:de.UNKNOWN},Bi=t=>{const i=/Mobile|Android|iPhone|iPad|iPod|Windows Phone/i.test(t)?Ze.Handheld:Ze.Desktop;let n;/Android/i.test(t)?n=X.Android:/iPhone|iPad|iPod/i.test(t)?n=X.iOS:/Windows/i.test(t)?n=X.Windows:/Mac OS/i.test(t)?n=X.Mac_OS:/Linux/i.test(t)?n=X.Linux:/CrOS/i.test(t)?n=X.Chromium_OS:/Ubuntu/i.test(t)&&(n=X.Ubuntu);let s;return/bot|crawler|spider|slurp|bing|baidu|duckduckgo|yandex|teoma|facebookexternalhit|twitterbot|whatsapp|googlebot|adsbot|mediapartners/i.test(t.toLowerCase())?s=Y.Bot:/Chrome/i.test(t)&&!/Edg|OPR|FBAN|Instagram/i.test(t)?s=Y.Chrome:/Safari/i.test(t)&&!/Chrome|CriOS/i.test(t)?s=Y.Safari:/Firefox/i.test(t)?s=Y.Firefox:/FBAN|FBAV/i.test(t)?s=Y.Facebook:/Instagram/i.test(t)&&(s=Y.Instagram),{device:i,os:n,browser:s}},Hi=(t,e)=>{const i=t.navigator.userAgent,n=Bi(i);return{version:Xt(),sourceType:e,safeframe:ae(t),browser:n.browser,os:n.os,device:n.device,events:[]}};class Qt{constructor(e,i){this.base64file=e,this.type=i}getAsBase64Url(){return`data:${this.type};base64,${this.base64file}`}getAsArrayBuffer(){return Uint8Array.from(atob(this.base64file),e=>e.charCodeAt(0))}getAsBlobUrl(){const e=new Blob([this.getAsArrayBuffer()],{type:this.type});return URL.createObjectURL(e)}}const _i="AAAAFGZ0eXBNU05WAAACAE1TTlYAAAOUbW9vdgAAAGxtdmhkAAAAAM9ghv7PYIb+A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XZwOWfIoUWjiERVUkFUSU9ORIeTMDA6MDA6MDAuMDQwMDAwMDAwAB9DtnWn54EAo6KBAACAgkmDQgAB8AH2ADgkHBgCAAAwYAAAEN///v/vTtAAHFO7a5G7j7OBALeK94EB8YIBqPCBAw==";class Xi extends Qt{constructor(){super(Gi,"video/webm")}}function Ct(){return new Promise(t=>{const e=window.document.createElement("iframe");e.style.width="0",e.style.height="0",e.style.border="0",document.body.appendChild(e);const i=e.contentDocument;i.open(),i.write(''),i.close();const n=Wi(),s=()=>{try{e.remove()}catch{}},r=a=>{s(),t(a)};n.onerror=()=>r(!1);try{i.body.appendChild(n),n.play().then(()=>r(!0)).catch(()=>r(!1))}catch{r(!1)}})}function Wi(){const t=document.createElement("video");return t.autoplay=!0,t.muted=!0,t.playsInline=!0,[new Fi,new Xi].forEach(i=>{const n=document.createElement("source");n.type=i.type,n.src=i.getAsBlobUrl(),t.appendChild(n)}),t}const Qi="amp:visibilitychange";function we(t,e){try{const i=e(t);if(i)return i;if(t!==t.parent)return we(t.parent,e)}catch{}}const ji=t=>!!t.AMP_CONTEXT_DATA&&!!t.AMP_CONTEXT_DATA.canonicalUrl,Yi=t=>!!t.context&&!!t.context.renderStart,jt=t=>!!we(t,ji),dt=t=>!!we(t,Yi),$i=t=>we(t,e=>e.AMP_CONTEXT_DATA),Yt=t=>we(t,e=>e.context),ht=t=>dt(t)||jt(t),qi="https://s.seedtag.com/c/adunit/bid",Ki="https://s.seedtag.com/c/v2/amp/bid";class Ji{constructor(e){this.body=e}async send(){const e=this.getBodyMinified(),i=this.getEndPointURL();return(await fetch(i,{method:"POST",body:JSON.stringify(e),credentials:"include",headers:{"Content-Type":"text/plain"}})).json()}getBodyMinified(){return{i:this.body.adUnitId,w:this.body.width,h:this.body.height,ap:this.body.autoplay,r:this.body.adUnitRatio,ry:this.body.adUnitRatioY,g:this.body.geometry,a:this.body.aboveTheFold,f:this.body.firstRequest,u:this.body.url,t:this.body.publisherToken,rc:this.body.adRefresh,cmp:this.body.consentConfig.hasCMP,cd:this.body.consentConfig.gdprConsent,uc:this.body.consentConfig.uspConsent,ga:this.body.consentConfig.gdprApplies,c:this.body.connectionType,v:this.body.st_v,ti:this.body.transactionId,eids:this.body.userEids}}getEndPointURL(){return ht(window)?Ki:qi}}class Zi{constructor(e,i,n){c(this,"getGeometry",()=>{const e=this.container.getBoundingClientRect(),i=this.getScrollOffsetY(),n=this.container.ownerDocument.defaultView;if(!n)throw new Error("Element is not attached to a Document");const s=this.adUnitType===M.InScreen?n.innerHeight:e.height;return{width:e.width,height:s,top:this.adUnitType===M.InScreen?0:e.top,left:e.left,scrollY:i,viewport:{width:n.innerWidth,height:n.innerHeight}}});c(this,"getScrollOffsetY",()=>{if(!this.container.ownerDocument.defaultView||this.adUnitType===M.InScreen)return 0;let i=this.container.getBoundingClientRect();const n=this.topWindow.innerHeight-i.height,a=.5+(i.top-n/2)/n;return this.isValidNumber(a)?a:0});c(this,"isOnViewPort",()=>{if(this.adUnitType===M.InScreen)return!0;const e=this.container.ownerDocument;if(!e)return!1;const i=e.defaultView;return i?i.frameElement?i.frameElement.getBoundingClientRect().top{const e=this.container.ownerDocument;if(!e)return 0;const i=e.defaultView;if(!i)return 0;const n=i.innerHeight,s=this.container.getBoundingClientRect(),d=(s.top+s.height/2-n/2)/n;return this.isValidNumber(d)?d:0});c(this,"truncate",e=>Math.floor(e*10)/10);c(this,"normalizeRatio",e=>{try{if(this.isValidNumber(e)){const i=this.truncate(e);return Math.min(2,i)}return 1}catch{return 1}});c(this,"getRatio",(e,i)=>{if(e===0||i===0)return{ratio:1,ratioY:1,ratioX:1};const n=this.normalizeRatio(e/i),s=this.normalizeRatio(i/this.topWindow.innerHeight),r=this.normalizeRatio(e/this.topWindow.innerWidth);return{ratio:n,ratioY:s,ratioX:r}});this.container=e,this.topWindow=i,this.adUnitType=n}async getAdUnitMeasures(){const e=this.getElementPosition(),{width:i,height:n}=this.getAdUnitSize(),s=this.isOnViewPort(),r=this.getRatio(i,n),a=this.getGeometry(),d=this.getMiddlePosition(e);return{size:{width:i,height:n},onViewPort:s,ratio:r,geometry:a,middlePosition:d,elementPosition:this.getElementPosition()}}getAdUnitSize(){var i;if(ae(window)){const n=(i=ze(window))==null?void 0:i.ext.geom();if(n)return{width:n.self.w,height:n.self.h}}const e={width:Math.max(this.container.clientWidth,0),height:Math.max(this.container.clientHeight,0)};return this.adUnitType===M.InScreen||this.adUnitType===M.InTop?{width:e.width,height:150}:this.adUnitType===M.InArticle?{width:e.width,height:e.width/16*9}:e}getMiddlePosition(e){let i=Math.round(e*4)/4*100;return i=Math.max(-200,Math.min(200,i)),i}isValidNumber(e){return e&&!isNaN(e)&&isFinite(e)&&typeof e=="number"}}const $t="google_ads_iframe",qt=t=>{const e=en(t);if(!e)return{googleDiv:void 0,googleIframe:void 0};const i=e.parentElement;return(i==null?void 0:i.tagName)==="DIV"&&i.id.includes($t)?{googleDiv:i,googleIframe:e}:{googleDiv:void 0,googleIframe:void 0}},en=t=>{var i,n;let e=(i=t.ownerDocument.defaultView)==null?void 0:i.frameElement;for(;e;){if(e.id.includes($t))return e;e=(n=e.ownerDocument.defaultView)==null?void 0:n.frameElement}return e},wt=(t,e,i)=>{t.setAttribute(e,i.toString()),t.style[e]=i.toString()+"px",t.style.margin="0 auto"},tn=587;class nn{constructor(e,i,n,s,r){c(this,"googleDiv");c(this,"googleIframe");c(this,"shouldResize16_9GoogleIframe",()=>Je()&&Ft(this.productShortCode)||ot(this.productShortCode));c(this,"shouldResizeViewport55",()=>Gt()&&(this.productShortCode==Ke.CID||this.productShortCode==Ke.CBV));c(this,"shouldResize",()=>this.shouldResize16_9GoogleIframe()||this.shouldResizeViewport55());this.container=e,this.containerSize=i,this.productShortCode=n,this.bidResponseHeight=s,this.topWindow=r;let{googleDiv:a,googleIframe:d}=qt(this.container);this.googleDiv=a,this.googleIframe=d}resize(){ae(window)?this.expandInArticle(this.bidResponseHeight):this.shouldResize()&&(this.shouldResize16_9GoogleIframe()?this.resizeGoogleContainerTo169AspectRatio():this.shouldResizeViewport55()&&(this.resizeGoogleContainerToViewport55(this.topWindow),this.resizeGoogleContainerToParagraphWidth()),this.setIntermediatesIframeSize(),this.setParentElementHeightToAuto()),this.resizeIframeToTheParentSize()}resizeGoogleContainerToViewport55(e){if(this.googleDiv&&this.googleIframe){const i=e.innerHeight*.55;this.containerSize.height=i,this.setGoogleIframeSize("height",i)}}resizeGoogleContainerToParagraphWidth(){if(this.googleDiv){const e=this.getParagraphWidth(this.googleDiv);e&&(this.containerSize.width=e,this.setGoogleIframeSize("width",e))}}resizeGoogleContainerTo169AspectRatio(){this.googleDiv&&this.googleIframe&&(Je()?(this.containerSize.width=tn,this.setGoogleIframeSize("width",this.containerSize.width)):this.resizeGoogleContainerToParagraphWidth(),this.containerSize.height=this.containerSize.width/(16/9),this.setGoogleIframeSize("height",this.containerSize.height))}resizeIframeToTheParentSize(){let e=!1;if(this.googleDiv&&this.googleDiv.parentElement&&this.googleDiv.parentElement.clientHeight!==0){if(this.googleDiv.parentElement.clientHeight{const e=new Image;e.loading="eager",e.src=t},rn=t=>{const e=document.createElement("iframe");e.style.display="none",e.src=t,document.body.appendChild(e)},an=t=>{try{const n=new DOMParser().parseFromString(t,"text/html").querySelector("script");if(n){const s=document.createElement("script");s.src=n.src,n.async&&(s.async=!0),n.type&&(s.type=n.type),document.body.appendChild(s)}}catch(e){console.error("Error tracking script tag",e)}};var on=Object.defineProperty,dn=(t,e,i)=>e in t?on(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,m=(t,e,i)=>(dn(t,typeof e!="symbol"?e+"":e,i),i),Kt=(t=>(t.Error="error",t))(Kt||{}),R=(t=>(t.AdReady="ad-ready",t.AdView="ad-view",t.AdInsert="ad-insert",t.AdClick="ad-click",t.AdClose="ad-xtocloseclick",t.AdIframeReady="ad-iframe-ready",t.AdOverlay="ad-overlay",t))(R||{}),Be=(t=>(t.MinipassConnected="minipass-connected",t.AdCreativeImpression="ad-creative-impression",t.AdCreativeClick="ad-creative-click",t))(Be||{}),ve=(t=>(t.AdCreativeExpand="ad-creative-expand",t.AdCreativeResize="ad-creative-resize",t))(ve||{}),O=(t=>(t.VideoVastAvailable="video-vast-available",t.VideoVastLoaded="video-vast-loaded",t.VideoReady="video-ready",t.VideoLazyPlay="video-lazyplay",t.VideoStarted="video-started",t.VideoImpression="video-impression",t.VideoPlay="video-play",t.VideoPlayPercentile25="video-played-percentile-25",t.VideoPlayPercentile50="video-played-percentile-50",t.VideoPlayPercentile75="video-played-percentile-75",t.VideoEnd="video-end",t.VideoClick="video-click",t.VideoSkip="video-skip",t.VideoError="video-error",t.VideoViewableImpression="video-viewable-impression",t.VideoPaused="video-paused",t.VideoResumed="video-resumed",t.VideoAllAdsCompleted="video-all-ads-completed",t))(O||{}),Jt=(t=>(t.AdViewability1s50="ad-viewability-1s50",t.AdViewability1s100="ad-viewability-1s100",t.AdViewability2s50="ad-viewability-2s50",t.AdViewability3s50="ad-viewability-3s50",t))(Jt||{}),Zt=(t=>(t.LazyInsert="ad-lazyinsert",t.LazyInsertNotReady="ad-lazyinsert-not-ready",t))(Zt||{}),ei=(t=>(t.XandrViewabilityWrapperChange="appnexus-viewability-wrapper-change",t))(ei||{});const De={...R,...O,...Jt,...Kt,...ei,...Be,...Zt};var k=(t=>(t.DISPLAY="display",t.VIDEO="video",t.NATIVE="native",t))(k||{}),me=(t=>(t.FULL="full",t.STATIC="static",t))(me||{}),ie=(t=>(t.Open="open",t.Deal="deal",t.Direct="direct",t))(ie||{}),he=(t=>(t.CEV="CEV",t.COV="COV",t.CBV="CBV",t.CEDV="CEDv",t.CEDH="CEDh",t.CID="CID",t.CFD="CFD",t.CN="CN",t.PCEV="PCEV",t.PCOV="PCOV",t.PCBV="PCBV",t.PCEDV="PCEDv",t.PCEDH="PCEDh",t.PCID="PCID",t.PCFD="PCFD",t.PCN="PCN",t.PDS_GROUP="PDS",t.P120X600="P120x600",t.P160X600="P160x600",t.P300X600="P300x600",t.P320X50="P320x50",t.P728X90="P728x90",t.P970X250="P970x250",t.PFDS_GROUP="PFDS",t.P300X250="P300x250",t.OMN="OMN",t.OMV="OMV",t.OM85X31="OM85x31",t.OM120X60="OM120x60",t.OM120X240="OM120x240",t.OM120X600="OM120x600",t.OM160X600="OM160x600",t.OM300X50="OM300x50",t.OM300X100="OM300x100",t.OM300X600="OM300x600",t.OM320X50="OM320x50",t.OM320X100="OM320x100",t.OM320X480="OM320x480",t.OM468X60="OM468x60",t.OM728X90="OM728x90",t.OM728X200="OM728x200",t.OM728X250="OM728x250",t.OM980X90="OM980x90",t.OM970X90="OM970x90",t.OM970X250="OM970x250",t.OM970X300="OM970x300",t.OM980X250="OM980x250",t.OM125X125="OM125x125",t.OM180X150="OM180x150",t.OM200X200="OM200x200",t.OM213X120="OM213x120",t.OM250X250="OM250x250",t.OM300X200="OM300x200",t.OM300X250="OM300x250",t.OM320X250="OM320x250",t.OM336X280="OM336x280",t.OM350X196="OM350x196",t.OM400X225="OM400x225",t.OM400X300="OM400x300",t.OM600X400="OM600x400",t.OM640X360="OM640x360",t.OM640X480="OM640x480",t.OM700X393="OM700x393",t))(he||{});const ti=t=>["CEV","COV","CBV","CEDv","CEDh","CID","CFD","CN","PCEV","PCOV","PCBV","PCEDv","PCEDh","PCID","PCFD","PCN"].includes(t),hn=t=>["OMV","COV","PCOV"].includes(t);var K=(t=>(t.InBanner="inBanner",t.InArticle="inArticle",t.InScreen="inScreen",t.InTop="inTop",t))(K||{});const _=(t=navigator.userAgent)=>/Android|web0S|iPhone|iPad|iPod|BlackBerry|Opera Mini/i.test(t),cn=(t=navigator.userAgent)=>!_(t),ln=(t,e)=>{const i=document.createElement("iframe");return e&&["allow-scripts","allow-same-origin","allow-popups"].forEach(n=>i.sandbox.add(n)),i.style.border="none",i.style.overflow="hidden",i.scrolling="no",i.id=t,i.style.height="100%",i.style.width="100%",i},bt=t=>{try{return!!t.$sf&&!!t.$sf.ext}catch{return!1}},ke=t=>{try{if(bt(t))return t.$sf;if(bt(t.parent))return ke(t.parent)}catch{}},pn=t=>!!ke(t);class un{constructor(e){m(this,"productShortCode"),m(this,"productType"),m(this,"productMarket"),m(this,"size"),m(this,"adsContent"),this.productShortCode=e[0].productShortCode,this.productType=e[0].productType,this.productMarket=e[0].productMarket,this.size={width:e[0].size.width,height:e[0].size.height},this.adsContent=e.map(i=>({content:i.content,creativeId:i.creativeId}))}getAd(){return this.adsContent[0]}getAds(){return this.adsContent}isProductResponsive(){return this.size.width===600||this.size.height===600}isFullVideo(){return[he.OMV,he.COV,he.PCOV].includes(this.productShortCode)}isCreativeLoaderNotImplemented(){return this.productMarket===ie.Open||this.productShortCode===he.PCOV}shouldUseMiniPass(){return ti(this.productShortCode)}}class An{constructor(){m(this,"events",new Map)}addEventListener(e,i){const n=this.events.get(e)||[];n.push(i),this.events.set(e,n)}removeEventListener(e,i){const n=this.events.get(e)||[],s=n.indexOf(i);s!==-1&&n.splice(s,1),this.events.set(e,n)}dispatchEvent(e,i){(this.events.get(e)||[]).forEach(n=>n(i))}clearEventListeners(){this.events.clear()}}var z=(t=>(t.CENTER="center",t.TOP="top",t.BOTTOM="bottom",t))(z||{}),G=(t=>(t.CENTER="center",t.LEFT="left",t.RIGHT="right",t))(G||{}),Z=(t=>(t.FIXED="fixed",t.ABSOLUTE="absolute",t.RELATIVE="relative",t))(Z||{});const gn='';class vn{constructor(e=1,i){m(this,"svg",gn),m(this,"closeButtonElement"),this.undoScale=e,this.onClick=i,this.closeButtonElement=document.createElement("div"),this.closeButtonElement.setAttribute("data-testid","close-button"),this.closeButtonElement.className="x-to-close st-reset",this.closeButtonElement.innerHTML=this.svg,this.setPositionStyle(this.closeButtonElement),this.closeButtonElement.addEventListener("click",()=>{this.onClick()})}render(e){return e.appendChild(this.closeButtonElement),this.closeButtonElement}destroy(){this.closeButtonElement.removeEventListener("click",this.onClick),this.closeButtonElement.remove()}setPositionStyle(e){if(e.style.position="absolute",e.style.top="6px",e.style.right="6px",e.style.width="18px",e.style.height="18px",e.style.cursor="pointer",e.style.zIndex="2147483647",this.undoScale!==1){const i=1/this.undoScale;e.style.transform=`scale(${i.toString()})`,e.style.transformOrigin="top right"}}}class mn{constructor(e,i){this.content=e,this.renderContainer=i}init(){return this.renderContainer.init()}render(){this.renderContainer.render(this.content)}destroy(){return this.renderContainer.destroy()}hide(){this.renderContainer.setStyle({display:"none",zIndex:"0",opacity:"0"})}show(){this.renderContainer.setStyle({display:"block",zIndex:"1",opacity:"1"})}getIframe(){return this.renderContainer.getIframe()}resize(e){this.renderContainer.resize(e)}}class St{constructor(e,i,n){m(this,"iframe"),this.settings=e,this.canvas=i,this.handleEvent=n,this.iframe=ln(e.iframeId,e.isSandbox),this.iframe.className=e.isSandbox?"st-standard-ads-sandbox":"st-standard-ads",this.iframe.setAttribute("data-testid",e.iframeId)}init(){return this.canvas.appendChild(this.iframe),this.setSize(),this.iframe.setAttribute("data-testid","iframe-ad-container"),this.iframe.name="seedtag_creative",this.handleEvent(R.AdReady),Promise.resolve()}render(e){var i,n,s,r;const a=this.getHtmlContent(e);this.handleEvent(R.AdInsert),this.iframe.name="seedtag_creative",(i=this.iframe.contentDocument)==null||i.open(),(n=this.iframe.contentDocument)==null||n.addEventListener("AdViewEvent",()=>this.handleEvent(R.AdView)),(s=this.iframe.contentDocument)==null||s.write(a),(r=this.iframe.contentDocument)==null||r.close(),this.handleEvent(R.AdIframeReady)}getIframeBody(){var e;return(e=this.iframe.contentDocument)==null?void 0:e.body}destroy(){return this.canvas.removeChild(this.iframe),Promise.resolve()}resize(e){this.settings.adSize=e,this.setSize()}setStyle(e){this.iframe.style.display=e.display,this.iframe.style.zIndex=e.zIndex,this.iframe.style.opacity=e.opacity}addEventListener(e,i,n){var s,r;(r=(s=this.iframe.contentWindow)==null?void 0:s.document.querySelector(e))==null||r.addEventListener(i,n)}getSize(){return this.settings.adSize}getIframe(){return this.iframe}setSize(){const{width:e,height:i}=this.settings.adSize;this.iframe.style.width=e+"px",this.iframe.style.height=i+"px"}getHtmlContent(e){return` ${e}