!function(e,t,o,n,i){var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},a="function"==typeof d[n]&&d[n],l=a.cache||{},r="undefined"!=typeof module&&"function"==typeof module.require&&module.require.bind(module);function s(t,o){if(!l[t]){if(!e[t]){var i="function"==typeof d[n]&&d[n];if(!o&&i)return i(t,!0);if(a)return a(t,!0);if(r&&"string"==typeof t)return r(t);var u=Error("Cannot find module '"+t+"'");throw u.code="MODULE_NOT_FOUND",u}g.resolve=function(o){var n=e[t][1][o];return null!=n?n:o},g.cache={};var p=l[t]=new s.Module(t);e[t][0].call(p.exports,g,p,p.exports,this)}return l[t].exports;function g(e){var t=g.resolve(e);return!1===t?{}:s(t)}}s.isParcelRequire=!0,s.Module=function(e){this.id=e,this.bundle=s,this.exports={}},s.modules=e,s.cache=l,s.parent=a,s.register=function(t,o){e[t]=[function(e,t){t.exports=o},{}]},Object.defineProperty(s,"root",{get:function(){return d[n]}}),d[n]=s;for(var u=0;ug),n.export(o,"gptSlotDivIdBaseAttr",()=>f),n.export(o,"gptSlotConfigIdAttr",()=>c),n.export(o,"gptSlotReadyAttr",()=>w);var i=e("./gpt/LoadGptScript.js"),d=n.interopDefault(i),a=e("./LogTools.js"),l=n.interopDefault(a),r=e("./gpt/ShowAd.js"),s=n.interopDefault(r),u=e("./SlotDatas"),p=n.interopDefault(u);let g="gpt-slot-div-id",f="gpt-slot-div-id-base",c="gpt-slot-config-id",w="slot-ready",h="slot-display",m=` ------------------------------------------------------------------------------------------ fdn-gpt.js configuration and options example - Define before fdn-gpt.js include ------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------ Ad Element HTML Usage ------------------------------------------------------------------------------------------ SLOTS DEFINED IN HEADER - Use for slots guaranteed to be in the page before page load. ---------------------------------------------------------------------------------------- Predetermined HTML: - IDs must be in the Foundation.Gpt.Options.defineInHeaderSlotIdList array. - ID base (everything before the first \`-\`) should be the ID of the defined slot config. Foundation.Gpt.Options.defineInHeaderSlotIdList array before the fdn-gpt.js code executes. - gpt ad slot is displayed after found in the DOM. Dynamic HTML: - Possible generated ${g} values must be in the Foundation.Gpt.Options.defineInHeaderSlotIdList array before the fdn-gpt.js code executes. - ${f} used to generate ${g} with a suffix after found in HTML. Ex: Rectangle-1, Rectangle-2, Rectangle-3 etc. - gpt ad slot is displayed after ${g} is generated and found in the DOM. SLOTS DEFINED INLINE - Use for lazy loading and slots injected after page load. ---------------------------------------------------------------------------------------- Inline HTML: - ${c} used to generate ${g} with a suffix after found in HTML. Ex: Rectangle-inline-1, Rectangle-inline-2, Rectangle-inline-3 etc. - gpt ad slot is defined and displayed after ${g} is generated and found in the DOM ------------------------------------------------------------------------------------------ `;if(window.Foundation=window.Foundation||{},window.Foundation.Gpt=window.Foundation.Gpt||{},window.Foundation.Gpt.Options=window.Foundation.Gpt.Options||{},void 0===window.Foundation.Gpt.Options.defineInHeaderSlotIdList){(0,l.default).warn("Required: window.Foundation.Gpt.Options.defineInHeaderSlotIdList not defined. Define in page before loading GPT script.");return}if(void 0===window.Foundation.Gpt.Options.slotPresetData){if((0,l.default).warn("Required: window.Foundation.Gpt.Options.slotPresetData not defined. Define in page before loading GPT script."),void 0===window.Foundation.Gpt.Options.slotConfigData)return;new p.default({datas:window.Foundation.Gpt.Options.slotConfigData}),(0,l.default).warn("Deprecated: window.Foundation.Gpt.Options.slotConfigData found. Rename to window.Foundation.Gpt.Options.slotPresetData.")}let b=new p.default({datas:window.Foundation.Gpt.Options.slotPresetData||window.Foundation.Gpt.Options.slotConfigData});window.Foundation.Gpt.SlotDataPresets=b,void 0===window.Foundation.Gpt.Options.pageLeveTargeting?(0,l.default).warn("window.Foundation.Gpt.Options.pageLeveTargeting not defined."):0===window.Foundation.Gpt.Options.pageLeveTargeting.length&&(0,l.default).warn("window.Foundation.Gpt.Options.pageLeveTargeting does not contain any items."),window.Foundation.Gpt.Options.pageLeveTargeting=window.Foundation.Gpt.Options.pageLeveTargeting||[],window.Foundation.Gpt.Options.debugging=window.Foundation.Gpt.Options.debugging||!1,window.Foundation.Gpt.Options.showPlaceholders=window.Foundation.Gpt.Options.showPlaceholders||!1,window.Foundation.Gpt.Options.layoutBreakPoints=window.Foundation.Gpt.Options.layoutBreakPoints||[998,768,600,400],"boolean"==typeof window.Foundation.Gpt.Options.loadGptScript?window.Foundation.Gpt.Options.loadGptScript=window.Foundation.Gpt.Options.loadGptScript:window.Foundation.Gpt.Options.loadGptScript=!0,window.Foundation.Gpt.Options.loadGptScript&&(0,d.default)(),window.Foundation.Gpt.Options.debugging?((0,l.default).enable(),(0,l.default).info(m)):(0,l.default).disable(),window.Foundation.Gpt.InPageSlotData=[],window.Foundation.Gpt.getInPageSlotDataById=e=>{let t=null;return window.Foundation.Gpt.InPageSlotData.every(o=>void 0===o.id||o.id!==e||(t=o,!1)),t},window.Foundation.Gpt.addToInPageSlotData=e=>{null!==window.Foundation.Gpt.getInPageSlotDataById(e.id)?(0,l.default).warn(`Duplicate slot ${e.id} already in InPageSlotData.`):window.Foundation.Gpt.InPageSlotData.push(e)},window.Foundation.Gpt.DefineSlot=function(e){(0,l.default).log(`Defining slot ${e.id}`);let t=null;if("outofpage"===e.type?t=window.googletag.defineOutOfPageSlot(e.adUnit,e.id):"topanchor"===e.type?(t=window.googletag.defineOutOfPageSlot(e.adUnit,window.googletag.enums.OutOfPageFormat.TOP_ANCHOR)).inPageId=e.id:"bottomanchor"===e.type?(t=window.googletag.defineOutOfPageSlot(e.adUnit,window.googletag.enums.OutOfPageFormat.BOTTOM_ANCHOR)).inPageId=e.id:t=window.googletag.defineSlot(e.adUnit,e.sizes,e.id),e.sizeMap&&e.sizeMap.length&&void 0!==e.sizeMap[0].minSize){let o=googletag.sizeMapping();e.sizeMap.forEach((t,n)=>{(0,l.default).info(`Add size map [${n}] to ${e.id}, ${t.minSize}`,t.sizes),o.addSize(t.minSize,t.sizes)});let n=o.build();t.defineSizeMapping(n),(0,l.default).info(`Defined size mapping for ${e.id}`,n)}e.collapseEmptyDiv&&(t.setCollapseEmptyDiv(!0),(0,l.default).info(`Slot setCollapseEmptyDiv(true) for ${e.id}`)),e.targeting&&e.targeting.forEach(function(e,o){t.setTargeting(e.key,e.value)}),t.addService(googletag.pubads())},window.Foundation.Gpt.SetUpPredeterminedSlot=function(e){let t=e.getAttribute(g);if(b.getDataById(t),null!==document.querySelector(`div[${g}="${t}"][${w}]`)){e.setAttribute(w,"inactive: duplicate slot"),(0,l.default).warn(`Duplicate slot ${t} already set up.`);return}if(0>window.Foundation.Gpt.Options.defineInHeaderSlotIdList.indexOf(t)){e.setAttribute(w,"inactive: not in defineInHeaderSlotIdList"),(0,l.default).warn(`Slot div id ${t} not in Foundation.Gpt.Options.defineInHeaderSlotIdList.`);return}e.id=t,e.setAttribute(w,!0)},window.Foundation.Gpt.SetUpDynamicSlot=function(e){let t=e.getAttribute(f),o=e.getAttribute(c),n=b.getDataById(o);if(null!==e.getAttribute(w)){(0,l.default).warn(`Already set up slot #${e.id}.`);return}if(n)for(let o=1;o<=300;o++){let i=`${t}-${o}`;if(null===document.querySelector(`[${g}="${i}"]`)){if(e.id=i,e.setAttribute(g,i),e.setAttribute(w,!0),window.googletag.pubads().getSlots().every(e=>{if(e.getSlotElementId()!==i)return!0})){let e={...n};e.id=i,null===b.getDataById(i)&&window.Foundation.Gpt.addToInPageSlotData(e),window.googletag.cmd.push(function(){window.Foundation.Gpt.DefineSlot(e)})}o=300}else 300===o&&(0,l.default).warn(`Could not generate suitable slot id for ${t}.`)}else{e.setAttribute(w,"inactive: slotData not defined."),(0,l.default).warn(`Slot Config ${o} not in Foundation.Gpt.SlotDataPresets.`);return}},window.Foundation.Gpt.SetUpInlineSlot=function(e){let t=e.getAttribute(c),o=b.getDataById(t);if(null!==e.getAttribute(w)){(0,l.default).warn(`Already set up slot #${e.id}.`);return}if(o)for(let n=1;n<=300;n++){let i=`${t}-inline-${n}`,d=null===document.querySelector(`[${g}="${i}"]`),a=window.googletag.pubads().getSlots().every(e=>{if(e.getSlotElementId()!==i)return!0});if((0,l.default).info(`SetUpInlineSlot -- newSlotId: ${i}, newSlotIdUseable: ${d}, newSlotIdNotDefinedInGpt: ${a}`),d&&a){e.id=i,e.setAttribute(g,i),e.setAttribute(w,!0);let t={...o};t.id=i,window.Foundation.Gpt.addToInPageSlotData(t),window.googletag.cmd.push(function(){window.Foundation.Gpt.DefineSlot(t)}),n=300}else 300===n&&(0,l.default).warn(`Could not generate suitable slot id for ${t}.`)}else{e.setAttribute(w,"inactive: slotData not defined."),(0,l.default).warn(`Slot Config ${t} not in Foundation.Gpt.SlotDataPresets.`);return}},window.Foundation.Gpt.GetUnreadySlotElements=function(){let e=[`div[${g}]:not([${w}])`,`div[${f}]:not([${w}])`,`div[${c}]:not([${w}])`];return document.querySelectorAll(`${e.join(", ")}`)},window.Foundation.Gpt.ReadyUpSlotElements=function(){window.Foundation.Gpt.GetUnreadySlotElements().forEach(e=>{if(null===e.getAttribute(w)){let t=e.getAttribute(g)||null,o=e.getAttribute(f)||null,n=e.getAttribute(c)||null;t?window.Foundation.Gpt.SetUpPredeterminedSlot(e):o&&n?window.Foundation.Gpt.SetUpDynamicSlot(e):n&&window.Foundation.Gpt.SetUpInlineSlot(e)}})},window.Foundation.Gpt.SearchForAdsToDisplay=()=>{window.googletag.pubads().getSlots().forEach(e=>{let t=e.getSlotElementId(),o=document.querySelector(`div[id="${t}"][${w}]`);if(null!==o){let n=null!==o.getAttribute(w),i=null===o.getAttribute(h);n&&i&&(o.setAttribute(h,!0),window.Foundation.Gpt.Options.showPlaceholders?"FixedFooter"===t?(0,s.default).placeholderFixedFooter(e,window.Foundation.Gpt.getInPageSlotDataById(t)):(0,s.default).placeholder(e,window.Foundation.Gpt.getInPageSlotDataById(t)):(0,s.default).display(e))}})},window.Foundation.Gpt.ReportAdElementsNotFound=function(){window.googletag.pubads().getSlots().forEach(e=>{let t=e.getSlotElementId();"FixedFooter"===t||e.getOutOfPage()||null!==document.querySelector(`div[${g}="${t}"]`)||(0,l.default).info(`Ad Element [id="${t}"] not found in page.`)})},window.Foundation.Gpt.RefreshAll=function(){window.googletag.pubads().getSlots().forEach(e=>{let t=e.getSlotElementId(),o=document.querySelector(`div[id="${t}"][${w}]`);if(e.getOutOfPage()&&window.Foundation.Gpt.getInPageSlotDataById(e.inPageId))(0,s.default).refresh(e);else if(null!==o){let n=null!==o.getAttribute(w),i=null!==o.getAttribute(h);if(n&&i){let o=window.Foundation.Gpt.getInPageSlotDataById(t);"outofpage"!==o.type&&(window.Foundation.Gpt.Options.showPlaceholders?"FixedFooter"===t?(0,s.default).reloadPlaceholderFixedFooter(e,o):(0,s.default).reloadPlaceholder(e,o):"FixedFooter"===t?(0,s.default).refreshFixedFooter(e):(0,s.default).refresh(e))}}})},window.Foundation.Gpt.Options.defineInHeaderSlotIdList.forEach(e=>{let t=e.replace(/-\w*$/,""),o=b.getDataById(t);if(o){let t={...o};t.id=e,window.Foundation.Gpt.addToInPageSlotData(t)}else(0,l.default).warn(`Could not locate base slotData for slot ${e}`)}),window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(function(){for(let e of(window.Foundation.Gpt.InPageSlotData.forEach(e=>{window.Foundation.Gpt.DefineSlot(e)}),window.Foundation.Gpt.Options.pageLeveTargeting))(0,l.default).log(`Defining page level targeting: ${e.key} = ${e.value}`),window.googletag.pubads().setTargeting(e.key,e.value);window.googletag.pubads().addEventListener("slotRequested",function(e){let t=e.slot.getSlotElementId();(0,l.default).info(`GPT event ${t} slotRequested`)}),window.googletag.pubads().addEventListener("slotResponseReceived",function(e){let t=e.slot.getSlotElementId(),o=document.querySelector(`[id="${t}"]`),n="Ad data received";null===e.slot.getResponseInformation()&&(n="No ad data received",o&&(o.hidden=!0)),(0,l.default).info(`GPT event ${t} slotResponseReceived ${n}`)}),window.googletag.pubads().addEventListener("slotOnload",function(e){let t=e.slot.getSlotElementId(),o=document.querySelector(`[id="${t}"]`);o?.removeAttribute("hidden"),(0,l.default).info(`GPT event ${t} slotOnload`)}),window.googletag.pubads().addEventListener("impressionViewable",function(e){(0,l.default).info(`GPT event ${e.slot.getSlotElementId()} impressionViewableEvent`);let t=e.slot,o=t.getTargeting("refreshTimer"),n=o[0];if("string"==typeof n&&n.match(/^\d+$/)){let i=parseInt(n);i<30&&(0,l.default).warn(`GPT event ${e.slot.getSlotElementId()} refresh timer should be no less than 30 seconds.`),void 0===t.refreshCount&&(o[1]&&(parseInt(o[1]),1)?t.refreshCount=parseInt(o[1]):t.refreshCount=100001),t.refreshCount<1?(0,l.default).info(`GPT event ${e.slot.getSlotElementId()} refresh timer started for ${i} seconds. RefreshesLeft ${t.refreshCount}`):((0,l.default).info(`GPT event ${e.slot.getSlotElementId()} refresh timer started for ${i} seconds. RefreshesLeft ${t.refreshCount}`),"number"==typeof t.fdnGptRefreshTimeout&&clearTimeout(t.fdnGptRefreshTimeout),t.fdnGptRefreshTimeout=setTimeout(function(){(0,l.default).info(`GPT event ${e.slot.getSlotElementId()} refreshing ad.`),t.refreshCount--,googletag.pubads().refresh([t])},1e3*i))}}),window.googletag.pubads().addEventListener("slotRenderEnded",function(e){(0,l.default).info(`GPT event ${e.slot.getSlotElementId()} slotRenderEndedEvent`)}),window.googletag.pubads().addEventListener("slotVisibilityChanged",function(e){(0,l.default).info(`GPT event ${e.slot.getSlotElementId()} slotVisibilityChangedEvent`)}),window.googletag.pubads().enableSingleRequest(),window.googletag.pubads().collapseEmptyDivs(),window.googletag.enableServices(),window.googletag.pubads().getSlots().forEach(e=>{e.getOutOfPage&&e.getOutOfPage()&&!window.Foundation.Gpt.Options.showPlaceholders&&(0,s.default).displayOutOfPageAd(e)}),window.googletag.pubads().getSlots().forEach(e=>{let t=e.getSlotElementId();"FixedFooter"===t&&(window.Foundation.Gpt.Options.showPlaceholders?(0,s.default).placeholderFixedFooter(e,b.getDataById(t)):(0,s.default).displayFixedFooter(e))});let e=new Event("foundation:ad:resize"),t=window.innerWidth,o=null;window.addEventListener("resize",n=>{clearTimeout(o),o=setTimeout(()=>{let o=window.Foundation.Gpt.Options.layoutBreakPoints.filter(e=>t=e),n=window.Foundation.Gpt.Options.layoutBreakPoints.filter(e=>t>=e&&window.innerWidth{window.Foundation.Gpt.ReadyUpSlotElements(),setTimeout(window.Foundation.Gpt.SearchForAdsToDisplay,100)}),window.googletag.cmd.push(()=>{setTimeout(()=>{setInterval(()=>{window.Foundation.Gpt.ReadyUpSlotElements(),window.Foundation.Gpt.SearchForAdsToDisplay()},500)},200)}),window.googletag.cmd.push(()=>{setTimeout(window.Foundation.Gpt.ReportAdElementsNotFound,1e4)}),window.Foundation.Gpt.LogTools=l.default,window.Foundation.Gpt.ShowAd=s.default},{"./gpt/LoadGptScript.js":"4ZDua","./LogTools.js":"cUFId","./gpt/ShowAd.js":"4Xlh0","./SlotDatas":"67R7V","@parcel/transformer-js/src/esmodule-helpers.js":"jiucr"}],"4ZDua":[function(e,t,o){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(o),n.export(o,"default",()=>function(){if(void 0===window.googletag||void 0===window.googletag.pubads){let e=document.createElement("script");e.async=!0,e.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",document.querySelector("head").append(e)}})},{"@parcel/transformer-js/src/esmodule-helpers.js":"jiucr"}],jiucr:[function(e,t,o){o.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},o.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},o.exportAll=function(e,t){return Object.keys(e).forEach(function(o){"default"===o||"__esModule"===o||Object.prototype.hasOwnProperty.call(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:function(){return e[o]}})}),t},o.export=function(e,t,o){Object.defineProperty(e,t,{enumerable:!0,get:o})}},{}],cUFId:[function(e,t,o){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(o),o.default={error:function(){!0===n&&window.console.error("%cFDN GPT","color:white;background:indianred;padding:4px;border-radius:4px;",...arguments)},info:function(){!0===n&&window.console.info("%cFDN GPT","color:darkgrey;background:cornsilk;padding:4px;border-radius:4px;",...arguments)},log:function(){!0===n&&window.console.log("%cFDN GPT","color:white;background:darkgray;padding:4px;border-radius:4px;",...arguments)},success:function(){!0===n&&window.console.info("%cFDN GPT","color:white;background:limegreen;padding:4px;border-radius:4px;",...arguments)},warn:function(){!0===n&&window.console.warn("%cFDN GPT","color:white;background:darkorange;padding:4px;border-radius:4px;",...arguments)},enable:function(){n=!0},disable:function(){n=!1},isEnabled:function(){return n}};let n=!0},{"@parcel/transformer-js/src/esmodule-helpers.js":"jiucr"}],"4Xlh0":[function(e,t,o){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(o);var i=e("../LogTools.js"),d=n.interopDefault(i),a=e("../fdn-gpt.js");function l(e){if(!e){(0,d.default).warn("ShowAd.display gptSlot not supplied or no value");return}window.googletag.cmd.push(function(){let t=e.getSlotElementId();(0,d.default).log(`Calling googletag.display for ${t}`),window.googletag.display(e)})}function r(e){if(!e){(0,d.default).warn("ShowAd.refresh gptSlot not supplied or no value");return}let t=e.getSlotElementId(),o=document.querySelector(`[id="${t}"]`);o&&window.googletag.cmd.push(function(){o.removeAttribute("hidden"),(0,d.default).info(`Refreshing ad ${t}`),window.googletag.pubads().refresh([e])})}function s(e,t){let o;if(!e){(0,d.default).warn(`ShowAd.placeholder gptSlot for slotDivId: ${t.id} not supplied or missing value`);return}if(!t){(0,d.default).warn(`ShowAd.placeholder slotConfig for slotDivId: ${e.getSlotElementId()} not supplied or missing value`);return}let n=e.getSlotElementId(),i=window.innerWidth,l=document.querySelector(`[${a.gptSlotDivIdAttr}="${n}"]`);if(null===l){(0,d.default).warn(`ShowAd.placeholder ad element with attribute ${a.gptSlotDivIdAttr}="${n}" not found.`);return}if(l.id=n,l.hidden=!0,l.innerHTML="",e.getOutOfPage()){(0,d.default).info(`ShowAd.placeholder slotDivId: ${n} is Out-of-page so no placeholder to render.`);return}if(null==t){console.warn(`ShowAd.placeholder slotConfig for slotDivId: ${n} not supplied or no value.`);return}if(void 0===t.sizes||null===t.sizes){console.warn(`ShowAd.placeholder slotConfig for slotDivId: ${n} does not contain sizes.`);return}let r="",s="",u="",p=e=>2===e.length&&"number"==typeof e[0]?`${e[0]}x${e[1]}`:"string"==typeof e[0]&&e,g=[],f="string"==typeof t.sizes[0],c="object"==typeof t.sizes[1],w=t.sizes&&t.sizes[0]&&"number"==typeof t.sizes[0][0];0===t.sizes.length?g.push("No sizes defined"):w||f&&c?t.sizes.forEach((e,t)=>{g.push(p(e)||"Unexpected sizes item config")}):"number"==typeof t.sizes[0]?g.push(p(t.sizes)||"Unexpected sizes item config"):"string"==typeof t.sizes[0]?g.push(p(t.sizes)||"Unexpected sizes item config"):g.push("Unexpected sizes list config"),s=g.join(", "),(t.sizeMap||{}).forEach((e,t)=>{let n=e.minSize[0],d=[],a="string"==typeof e.sizes[0],l="object"==typeof e.sizes[1],s=a&&l,g=e.sizes&&e.sizes[0]&&"number"==typeof e.sizes[0][0];0===e.sizes.length?d.push("No sizes for this breakpoint"):g||s?e.sizes.forEach((e,t)=>{d.push(p(e)||"Unexpected sizeMap.sizes item config")}):"number"==typeof e.sizes[0]?d.push(p(e.sizes)||"Unexpected sizeMap.sizes item config"):"string"==typeof e.sizes[0]?d.push(p(e.sizes)||"Unexpected sizeMap.sizes item config"):d.push("Unexpected sizeMap.sizes list config"),!o&&i>n&&(r=d[0],o=g||s?e.sizes[0]:e.sizes),u+=`Sizes for browser width over ${n}px:
${d.join(", ")}
`});let h="",m=e.getTargetingKeys();m.length&&(h+="
Slot targeting:
",m.forEach((t,o)=>{h+=`${t} = ${e.getTargeting(t)}
`})),h+="
Page level targeting:
",window.googletag.pubads().getTargetingKeys().forEach((e,t)=>{h+=`${e} = ${window.googletag.pubads().getTargeting(e)}
`}),l.innerHTML=`\
\ Slot <div> ID:
\ ${n}
\ Ad Unit:
\ ${t.adUnit}
\ Current size: ${r}
\ All Sizes:
\ ${s}
\ ${u}\ ${h}\
\ `;let b=l.querySelector("div");if(b.style.boxSizing="border-box",b.style.color="#000000",b.style.backgroundColor="#eeeeee",b.style.border="solid 1px gray",b.style.padding="15px",b.style.marginLeft="auto",b.style.marginRight="auto",b.style.overflow="auto",b.style.fontFamily="sans-serif",b.style.fontSize="12px","fluid"===o){let e=l.parentElement.getBoundingClientRect().width;b.style.width=`${e}px`,b.style.height="250px"}else b.style.width=`${o[0]}px`,b.style.height=`${o[1]}px`;l.removeAttribute("hidden")}function u(e,t){let o=e.getSlotElementId();window.innerWidth,document.querySelector(`[${a.gptSlotDivIdAttr}="${o}"]`).removeAttribute("id"),s(e,t)}function p(e,t){if(!e){(0,d.default).warn("ShowAd.buildFixedFooterContainer gptSlot not supplied or no value");return}let o=e.getSlotElementId(),n=document.querySelector(`[${a.gptSlotDivIdAttr}="${o}"]`),i=o+"-container",l=window.innerWidth{u.remove()},500)};p.addEventListener("click",o)}let g=document.querySelector(`style[id="${r}"]`);if(!g){let e=s.style.marginBottom;(g=document.createElement("style")).id=r,g.innerText=`\ body {\ margin-bottom: ${e};\ transition: margin-bottom 0.5s;\ }\ body.fdnFixedFooterAdSpacing {\ margin-bottom: 100px;\ }\ `,s.classList.add("fdnFixedFooterAdSpacing"),u.append(g)}"function"==typeof t&&t()}(0,d.default).enable(),o.default={display:l,displayOutOfPageAd:function(e){if(!e){(0,d.default).warn("ShowAd.displayOutOfPageAd gptSlot not supplied or no value");return}l(e)},displayFixedFooter:function(e){if(!e){(0,d.default).warn("ShowAd.displayFixedFooter gptSlot not supplied or no value");return}p(e,()=>{l(e)})},refresh:r,refreshFixedFooter:function(e){if(!e){(0,d.default).warn("ShowAd.refreshFixedFooter gptSlot not supplied or no value");return}p(e,()=>{r(e)})},placeholder:s,placeholderFixedFooter:function(e,t){p(e,()=>{s(e,t)})},reloadPlaceholder:u,reloadPlaceholderFixedFooter:function(e,t){p(e,()=>{u(e,t)})}}},{"../LogTools.js":"cUFId","../fdn-gpt.js":"j5vfO","@parcel/transformer-js/src/esmodule-helpers.js":"jiucr"}],"67R7V":[function(e,t,o){var n=e("@parcel/transformer-js/src/esmodule-helpers.js");n.defineInteropFlag(o);var i=e("./SlotData.js"),d=n.interopDefault(i);o.default=class{constructor(e){this.datas=[];let t=this;e&&e.datas&&e.datas.length&&e.datas.forEach(e=>{t.datas.push(new d.default(e))})}addData(e){if(this.getDataById(e.id)){console.warn(`Slot config id ${e.id} already exists`);return}this.datas.push(new d.default(e))}getDataById(e){let t=null;return this.datas.every(o=>void 0===o.id||o.id!==e||(t=o,!1)),t}}},{"./SlotData.js":"gNM54","@parcel/transformer-js/src/esmodule-helpers.js":"jiucr"}],gNM54:[function(e,t,o){e("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(o),o.default=class{constructor(e){this.type=e.type,this.id=e.id,this.adUnit=e.adUnit,this.sizes=e.sizes,this.sizeMap=e.sizeMap,this.targeting=e.targeting,this.collapseEmptyDiv=e.collapseEmptyDiv}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"jiucr"}]},["j5vfO"],"j5vfO","parcelRequire009c"); //# sourceMappingURL=fdn-gpt-map.js