(()=>{var Fi=Object.create;var Ht=Object.defineProperty,Bi=Object.defineProperties,Gi=Object.getOwnPropertyDescriptor,Vi=Object.getOwnPropertyDescriptors,Yi=Object.getOwnPropertyNames,vr=Object.getOwnPropertySymbols,Hi=Object.getPrototypeOf,Tr=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable;var Yt=(t,e,r)=>e in t?Ht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Y=(t,e)=>{for(var r in e||(e={}))Tr.call(e,r)&&Yt(t,r,e[r]);if(vr)for(var r of vr(e))ji.call(e,r)&&Yt(t,r,e[r]);return t},fe=(t,e)=>Bi(t,Vi(e));var Or=(t=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(t,{get:(e,r)=>(typeof require!="undefined"?require:e)[r]}):t)(function(t){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var nt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Ki=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Yi(e))!Tr.call(t,n)&&n!==r&&Ht(t,n,{get:()=>e[n],enumerable:!(i=Gi(e,n))||i.enumerable});return t};var Rr=(t,e,r)=>(r=t!=null?Fi(Hi(t)):{},Ki(e||!t||!t.__esModule?Ht(r,"default",{value:t,enumerable:!0}):r,t));var de=(t,e,r)=>Yt(t,typeof e!="symbol"?e+"":e,r);var x=(t,e,r)=>new Promise((i,n)=>{var a=l=>{try{o(r.next(l))}catch(g){n(g)}},s=l=>{try{o(r.throw(l))}catch(g){n(g)}},o=l=>l.done?i(l.value):Promise.resolve(l.value).then(a,s);o((r=r.apply(t,e)).next())});var Hr=nt((Uo,Yr)=>{"use strict";var Qi=function(e){return Ji(e)&&!Xi(e)};function Ji(t){return!!t&&typeof t=="object"}function Xi(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||tn(t)}var Zi=typeof Symbol=="function"&&Symbol.for,en=Zi?Symbol.for("react.element"):60103;function tn(t){return t.$$typeof===en}function rn(t){return Array.isArray(t)?[]:{}}function Fe(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Te(rn(t),t,e):t}function nn(t,e,r){return t.concat(e).map(function(i){return Fe(i,r)})}function on(t,e){if(!e.customMerge)return Te;var r=e.customMerge(t);return typeof r=="function"?r:Te}function sn(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Gr(t){return Object.keys(t).concat(sn(t))}function Vr(t,e){try{return e in t}catch(r){return!1}}function an(t,e){return Vr(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function cn(t,e,r){var i={};return r.isMergeableObject(t)&&Gr(t).forEach(function(n){i[n]=Fe(t[n],r)}),Gr(e).forEach(function(n){an(t,n)||(Vr(t,n)&&r.isMergeableObject(e[n])?i[n]=on(n,r)(t[n],e[n],r):i[n]=Fe(e[n],r))}),i}function Te(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||nn,r.isMergeableObject=r.isMergeableObject||Qi,r.cloneUnlessOtherwiseSpecified=Fe;var i=Array.isArray(e),n=Array.isArray(t),a=i===n;return a?i?r.arrayMerge(t,e,r):cn(t,e,r):Fe(e,r)}Te.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(i,n){return Te(i,n,r)},{})};var fn=Te;Yr.exports=fn});var ti=nt(()=>{});var ii=nt((_t,ri)=>{(function(t,e){typeof _t=="object"?ri.exports=_t=e():typeof define=="function"&&define.amd?define([],e):t.CryptoJS=e()})(_t,function(){var t=t||function(e,r){var i;if(typeof window!="undefined"&&window.crypto&&(i=window.crypto),typeof self!="undefined"&&self.crypto&&(i=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window!="undefined"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof global!="undefined"&&global.crypto&&(i=global.crypto),!i&&typeof Or=="function")try{i=ti()}catch(m){}var n=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch(m){}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch(m){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function m(){}return function(h){var O;return m.prototype=h,O=new m,m.prototype=null,O}}(),s={},o=s.lib={},l=o.Base=function(){return{extend:function(m){var h=a(this);return m&&h.mixIn(m),(!h.hasOwnProperty("init")||this.init===h.init)&&(h.init=function(){h.$super.init.apply(this,arguments)}),h.init.prototype=h,h.$super=this,h},create:function(){var m=this.extend();return m.init.apply(m,arguments),m},init:function(){},mixIn:function(m){for(var h in m)m.hasOwnProperty(h)&&(this[h]=m[h]);m.hasOwnProperty("toString")&&(this.toString=m.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),g=o.WordArray=l.extend({init:function(m,h){m=this.words=m||[],h!=r?this.sigBytes=h:this.sigBytes=m.length*4},toString:function(m){return(m||A).stringify(this)},concat:function(m){var h=this.words,O=m.words,T=this.sigBytes,C=m.sigBytes;if(this.clamp(),T%4)for(var D=0;D>>2]>>>24-D%4*8&255;h[T+D>>>2]|=ae<<24-(T+D)%4*8}else for(var G=0;G>>2]=O[G>>>2];return this.sigBytes+=C,this},clamp:function(){var m=this.words,h=this.sigBytes;m[h>>>2]&=4294967295<<32-h%4*8,m.length=e.ceil(h/4)},clone:function(){var m=l.clone.call(this);return m.words=this.words.slice(0),m},random:function(m){for(var h=[],O=0;O>>2]>>>24-C%4*8&255;T.push((D>>>4).toString(16)),T.push((D&15).toString(16))}return T.join("")},parse:function(m){for(var h=m.length,O=[],T=0;T>>3]|=parseInt(m.substr(T,2),16)<<24-T%8*4;return new g.init(O,h/2)}},v=I.Latin1={stringify:function(m){for(var h=m.words,O=m.sigBytes,T=[],C=0;C>>2]>>>24-C%4*8&255;T.push(String.fromCharCode(D))}return T.join("")},parse:function(m){for(var h=m.length,O=[],T=0;T>>2]|=(m.charCodeAt(T)&255)<<24-T%4*8;return new g.init(O,h)}},y=I.Utf8={stringify:function(m){try{return decodeURIComponent(escape(v.stringify(m)))}catch(h){throw new Error("Malformed UTF-8 data")}},parse:function(m){return v.parse(unescape(encodeURIComponent(m)))}},S=o.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(m){typeof m=="string"&&(m=y.parse(m)),this._data.concat(m),this._nDataBytes+=m.sigBytes},_process:function(m){var h,O=this._data,T=O.words,C=O.sigBytes,D=this.blockSize,ae=D*4,G=C/ae;m?G=e.ceil(G):G=e.max((G|0)-this._minBufferSize,0);var te=G*D,_e=e.min(te*4,C);if(te){for(var ce=0;ce{(function(t,e){typeof bt=="object"?ni.exports=bt=e(ii()):typeof define=="function"&&define.amd?define(["./core"],e):e(t.CryptoJS)})(bt,function(t){return function(e){var r=t,i=r.lib,n=i.WordArray,a=i.Hasher,s=r.algo,o=[];(function(){for(var y=0;y<64;y++)o[y]=e.abs(e.sin(y+1))*4294967296|0})();var l=s.MD5=a.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(y,S){for(var L=0;L<16;L++){var M=S+L,m=y[M];y[M]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360}var h=this._hash.words,O=y[S+0],T=y[S+1],C=y[S+2],D=y[S+3],ae=y[S+4],G=y[S+5],te=y[S+6],_e=y[S+7],ce=y[S+8],Je=y[S+9],Xe=y[S+10],Ze=y[S+11],et=y[S+12],tt=y[S+13],rt=y[S+14],it=y[S+15],w=h[0],_=h[1],b=h[2],E=h[3];w=g(w,_,b,E,O,7,o[0]),E=g(E,w,_,b,T,12,o[1]),b=g(b,E,w,_,C,17,o[2]),_=g(_,b,E,w,D,22,o[3]),w=g(w,_,b,E,ae,7,o[4]),E=g(E,w,_,b,G,12,o[5]),b=g(b,E,w,_,te,17,o[6]),_=g(_,b,E,w,_e,22,o[7]),w=g(w,_,b,E,ce,7,o[8]),E=g(E,w,_,b,Je,12,o[9]),b=g(b,E,w,_,Xe,17,o[10]),_=g(_,b,E,w,Ze,22,o[11]),w=g(w,_,b,E,et,7,o[12]),E=g(E,w,_,b,tt,12,o[13]),b=g(b,E,w,_,rt,17,o[14]),_=g(_,b,E,w,it,22,o[15]),w=I(w,_,b,E,T,5,o[16]),E=I(E,w,_,b,te,9,o[17]),b=I(b,E,w,_,Ze,14,o[18]),_=I(_,b,E,w,O,20,o[19]),w=I(w,_,b,E,G,5,o[20]),E=I(E,w,_,b,Xe,9,o[21]),b=I(b,E,w,_,it,14,o[22]),_=I(_,b,E,w,ae,20,o[23]),w=I(w,_,b,E,Je,5,o[24]),E=I(E,w,_,b,rt,9,o[25]),b=I(b,E,w,_,D,14,o[26]),_=I(_,b,E,w,ce,20,o[27]),w=I(w,_,b,E,tt,5,o[28]),E=I(E,w,_,b,C,9,o[29]),b=I(b,E,w,_,_e,14,o[30]),_=I(_,b,E,w,et,20,o[31]),w=A(w,_,b,E,G,4,o[32]),E=A(E,w,_,b,ce,11,o[33]),b=A(b,E,w,_,Ze,16,o[34]),_=A(_,b,E,w,rt,23,o[35]),w=A(w,_,b,E,T,4,o[36]),E=A(E,w,_,b,ae,11,o[37]),b=A(b,E,w,_,_e,16,o[38]),_=A(_,b,E,w,Xe,23,o[39]),w=A(w,_,b,E,tt,4,o[40]),E=A(E,w,_,b,O,11,o[41]),b=A(b,E,w,_,D,16,o[42]),_=A(_,b,E,w,te,23,o[43]),w=A(w,_,b,E,Je,4,o[44]),E=A(E,w,_,b,et,11,o[45]),b=A(b,E,w,_,it,16,o[46]),_=A(_,b,E,w,C,23,o[47]),w=v(w,_,b,E,O,6,o[48]),E=v(E,w,_,b,_e,10,o[49]),b=v(b,E,w,_,rt,15,o[50]),_=v(_,b,E,w,G,21,o[51]),w=v(w,_,b,E,et,6,o[52]),E=v(E,w,_,b,D,10,o[53]),b=v(b,E,w,_,Xe,15,o[54]),_=v(_,b,E,w,T,21,o[55]),w=v(w,_,b,E,ce,6,o[56]),E=v(E,w,_,b,it,10,o[57]),b=v(b,E,w,_,te,15,o[58]),_=v(_,b,E,w,tt,21,o[59]),w=v(w,_,b,E,ae,6,o[60]),E=v(E,w,_,b,Ze,10,o[61]),b=v(b,E,w,_,C,15,o[62]),_=v(_,b,E,w,Je,21,o[63]),h[0]=h[0]+w|0,h[1]=h[1]+_|0,h[2]=h[2]+b|0,h[3]=h[3]+E|0},_doFinalize:function(){var y=this._data,S=y.words,L=this._nDataBytes*8,M=y.sigBytes*8;S[M>>>5]|=128<<24-M%32;var m=e.floor(L/4294967296),h=L;S[(M+64>>>9<<4)+15]=(m<<8|m>>>24)&16711935|(m<<24|m>>>8)&4278255360,S[(M+64>>>9<<4)+14]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,y.sigBytes=(S.length+1)*4,this._process();for(var O=this._hash,T=O.words,C=0;C<4;C++){var D=T[C];T[C]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360}return O},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y}});function g(y,S,L,M,m,h,O){var T=y+(S&L|~S&M)+m+O;return(T<>>32-h)+S}function I(y,S,L,M,m,h,O){var T=y+(S&M|L&~M)+m+O;return(T<>>32-h)+S}function A(y,S,L,M,m,h,O){var T=y+(S^L^M)+m+O;return(T<>>32-h)+S}function v(y,S,L,M,m,h,O){var T=y+(L^(S|~M))+m+O;return(T<>>32-h)+S}r.MD5=a._createHelper(l),r.HmacMD5=a._createHmacHelper(l)}(Math),t.MD5})});var be={pubfigEngineLoadInit:"pubfig-engine-load-init",pubfigEngineSetupStart:"pubfig-engine-setup-start",pubfigEngineLoad:"pubfig-engine-load",pubfigSlotRequested:"pubfig-slotRequested",pubfigStickyFooterSlotRequested:"pubfig-sticky-footer-slotRequested",pubfigSlotRenderEnded:"pubfig-slotRenderEnded",pubfigEngineSetupEnd:"pubfig-engine-setup-end",pubfigStickyFooterSlotRenderEnded:"pubfig-sticky-footer-slotRenderEnded",pubfigPrebidFsRequestBids:"pubfig-prebid-fsRequestBids",pubfigPrebidAuctionInit:"pubfig-prebid-auctionInit",pubfigPrebidAuctionEnd:"pubfig-prebid-auctionEnd",pubfigLoaded:"pubfig-loaded",pubfigInitRequestStart:"pubfig-init-request-start",pubfigInitRequestEnd:"pubfig-init-request-end"};var k=(t,e=window)=>{var i,n;return(n=new URLSearchParams((i=e.location)==null?void 0:i.search).get(t))!=null?n:""},xr=(t,e=window)=>new URLSearchParams(e.location.search).has(t);var Nr={IMMEDIATE:"immediate",MAIN:"main",BEACON:"beacon",ERROR:"error"};var ot=class{constructor(e,r){de(this,"type","default");this._payload=this._buildPayload(e),this._topic=r}get payload(){return this._payload}get topic(){return this._topic||Nr.MAIN}setTopic(e){this._topic=e}setType(e){this.type=e}_buildPayload(e){return e||{}}};var $=class extends ot{constructor(){super(...arguments);de(this,"type","customEvent")}_buildPayload(r){let{eventType:i,data:n,eventName:a}=r;return{eventType:i,eventName:a,jsonValue:JSON.stringify(n)}}};var st=t=>{let{dependencies:e,name:r}=t||{};if(e){if(!Array.isArray(e))throw new Error(`Module Definition Error: ${r}. Dependencies must be an array.`);e.forEach(i=>{let{token:n}=typeof i=="string"?{token:i}:i;if(!n)throw new Error(`Module Definition Error: ${r}. Dependency must contain a token.`);if(typeof n!="string")throw new Error(`Module Definition Error: ${r}. Token must be a string.`)})}},Ae=t=>t.charAt(0).toLowerCase()+t.slice(1);var Se={SINGLETON:"singleton",FOR_FEATURE:"forFeature"};var at=class t{constructor(){this._modules=new Map}static get instance(){return this._instance||(this._instance=new t),this._instance}set(e,r){var i;if(!e)throw new Error("Token must be provided");if(this._modules.has(e))throw new Error(`Module with token ${e} already exists`);if((i=r.dependencies)!=null&&i.length&&new Set(r.dependencies).size!==r.dependencies.length)throw new Error(`Duplicated dependencies found in module ${e}.`);this._modules.set(e,r)}get(e){return this._modules.get(e)}has(e){return this._modules.has(e)}delete(e){this._modules.delete(e)}getAlias(e){let r=this.get(e);return r==null?void 0:r.defaultAlias}clear(){this._modules.clear()}static class(e,{token:r,factory:i,dependencies:n=[],injectionMode:a=Se.SINGLETON,defaultAlias:s}){if(!e)throw new Error("Class must be provided");if(!r)throw new Error("Token must be provided");st({dependencies:n,name:e.name}),t.instance.set(r,{factory:i||(({dependencies:o})=>new e(o)),dependencies:n,injectionMode:a,defaultAlias:s||Ae(r),type:"classModule"})}static object({token:e,value:r,factory:i,dependencies:n,injectionMode:a=Se.SINGLETON,defaultAlias:s}){if(!e)throw new Error("Token must be provided");if(!r&&!i)throw new Error("Value or factory must be provided");st({dependencies:n,name:e}),t.instance.set(e,{value:r,factory:i,dependencies:n,injectionMode:a,defaultAlias:s||Ae(e),type:"object"})}static function(e,{token:r,dependencies:i,defaultAlias:n}={}){if(!e)throw new Error("Function must be provided");if(!r)throw new Error("Token must be provided");st({dependencies:i,name:r}),t.instance.set(r,{dependencies:i,defaultAlias:n||Ae(r),func:e,type:"function"})}};var ct=class t{constructor(e){this._moduleRegistry=e,this._moduleInstances=new Map}static get instance(){return this._instance||(this._instance=new t(at.instance)),this._instance}set(e,r){this._moduleInstances.set(e,r)}clear(){this._moduleInstances.clear()}get(e){return this._moduleInstances.get(e)}delete(e){this._moduleInstances.delete(e)}call(e,...r){return x(this,null,function*(){let i=this._moduleRegistry.get(e);if(!i)throw new Error(`Module with token "${e}" does not exist`);let{dependencies:n,type:a,func:s}=i;if(a!=="function")throw new Error(`Module with token "${e}" is not a function type`);let o=yield this._resolveDependencies({token:e,dependencies:n});return s(o,...r)})}create(i){return x(this,arguments,function*(e,{provide:r={}}={}){let n=this._moduleRegistry.get(e);if(!n)throw new Error(`Module with token "${e}" does not exist`);let{dependencies:a=[],factory:s,value:o,func:l}=n,g=a.filter(A=>{let v=this._getDependencyObject(A),S=v.alias||this._moduleRegistry.getAlias(v.token)||Ae(v.token);return!r[S]});return this._resolveDependencies({token:e,dependencies:g}).then(A=>this._createInstance({token:e,dependencies:Y(Y({},A),r),container:this,factory:s,value:o,func:l}))})}resolve(e,r){return x(this,null,function*(){return this._resolve({token:e,optional:r})})}resolveAll(e){return x(this,null,function*(){if(!Array.isArray(e))throw new Error("Tokens must be an array");return this._resolveDependencies({dependencies:e})})}has(e){return this._moduleInstances.has(e)}_resolve(a){return x(this,arguments,function*({token:e,resolvedDeps:r=new Set,parentToken:i,optional:n}){if(!this._moduleRegistry.has(e)){if(n)return null;throw new Error(`${[...r,e].join(" -> ")}. Module with token "${e}" does not exist`)}let s=this._moduleRegistry.get(e),{dependencies:o=[],factory:l,value:g,func:I,injectionMode:A=Se.SINGLETON}=s;if(i&&A===Se.FOR_FEATURE&&(e=`${i}:${e}`),this.has(e))return this.get(e);if(r.has(e))throw new Error(`Circular dependency detected: ${Array.from(r).join(" -> ")} ->${e}`);r.add(e);let v=this._resolveDependencies({token:e,dependencies:o,resolvedDeps:r}).then(y=>this._createInstance({token:e,dependencies:y,container:this,factory:l,value:g,func:I}));return this.set(e,v),v.then&&v.then(y=>{this.set(e,y)}),v})}_resolveDependencies(n){return x(this,arguments,function*({token:e,dependencies:r,resolvedDeps:i}){let a=[];return r.length&&(a=yield Promise.all(r.map(s=>x(this,null,function*(){let{token:o,alias:l,optional:g}=this._getDependencyObject(s),I=yield this._resolve({token:o,resolvedDeps:new Set(i),parentToken:e,optional:g}),A=this._moduleRegistry.getAlias(o);return[l||A||o,I]})))),Object.fromEntries(a)})}_getDependencyObject(e){return typeof e=="string"?{token:e}:e}_createInstance({dependencies:e,container:r,factory:i,value:n,token:a,func:s}){if(n!==void 0)return n;if(s!==void 0)return s.bind(null,e);if(!(i instanceof Function))throw new Error(`Container Error: ${a}. Factory must be a function`);let o=i({dependencies:e,container:r});if(!(o instanceof Object))throw new Error(`Container Error: ${a}. Factory must return an object`);return o}};var Cr={ANALYTICS:"Analytics",PERFORMANCE_LOGGER:"PerformanceLogger",DISPENSARY_DATA:"DispensaryData",AD_SLOT_SERVICE:"AdSlotService",AD_SLOTS_MANAGER:"AdSlotsManager",LOGGER:"Logger",EVENT_BUS:"EventBus",CONFIG_MANAGER:"ConfigManager",FREESTAR:"freestar",WINDOW:"window",PAGE:"Page",SESSION_STORAGE_MANAGER:"SessionStorageManager",PREBID_MANAGER:"PrebidManager",AMAZON_MANAGER:"AmazonManager",AD_QUALITY_MANAGER:"AdQualityManager",GAM_MANAGER:"GamManager",DEVICE_INFO:"deviceInfo",GEO_INFO:"geoInfo",FS_DATA:"fsdata",BID_RESPONSE_ANALYTICS_EVENT_FACTORY:"BidResponseAnalyticsEventFactory",BID_WON_ANALYTICS_EVENT_FACTORY:"BidWonAnalyticsEventFactory",BID_REQUESTED_ANALYTICS_EVENT_FACTORY:"BidRequestedAnalyticsEventFactory",DFP_RESPONSE_ANALYTICS_EVENT_FACTORY:"DfpResponseAnalyticsEventFactory",ANALYTICS_EVENT_FACTORY:"AnalyticsEventFactory",MAIN_QUEUE:"MainQueue",ERROR_QUEUE:"ErrorQueue",IMMEDIATE_QUEUE:"ImmediateQueue",BEACON_QUEUE:"BeaconQueue",ANALYTICS_MESSAGE_FACTORY:"AnalyticsMessageFactory",DATA_COLLECTOR_API:"DataCollectorAPI",IDENTITY_CONFIG:"IdentityConfig",HASHED_EMAIL_PROVIDERS:"HashedEmailProviderManager",REALTIME_PROVIDERS:"RealtimeProvidersManager",ANALYTICS_ADAPTERS:"AnalyticsAdaptersManager",IDENTITY_MANAGER:"IdentityManager",ATS_MANAGER:"atsManager",VIDEO:"Video",STICKY_AD:"StickyAd",FOP_VIDEO_SCRIPTS:"FopVideoScripts",AUCTION_MANAGER:"AuctionManager",NATIVE_RENDER_MANAGER:"nativeRenderManager",CONFIANT:"Confiant",IN_BANNER_VIDEO_PLAYER:"InBannerVideoPlayer",OUTSTREAM_VIDEO_PLAYER:"OutstreamVideoPlayer",INCONTENT_VIDEO_AD:"InContentVideoAd",FLOATING_VIDEO_AD:"FloatingVideoAd",INCONTENT_TO_FLOATING_VIDEO_AD:"InContentToFloatingVideoAd",AD_REFRESHER:"AdRefresher",REFRESH_LIBRARY:"RefreshLibrary",STICKY_FOOTER_REFRESHER:"StickyFooterRefresher",DEFAULT_REFRESHER:"DefaultRefresher",DEVICE_ORIENTATION_TRACKER:"DeviceOrientationTracker",VIRTUAL_KEYBOARD_REFRESH_CONTROL:"VirtualKeyboardRefreshControl",RENDER_BID_MIDWAY:"RenderBidMidwayManager",GLOBAL_REFRESH_USER_IDS_STATE:"GlobalRefreshUserIDsState",REBID_MANAGER:"RebidManager",MEMORY_MONITOR:"MemoryMonitor",BIDS_MANAGER:"BidsManager",OPTABLE_MANAGER:"OptableManager",ANCILLARY:"Ancillary",BRANDING:"Branding",REPORT_AD:"ReportAd",IDEAL_AD_STACK_MANAGER:"IdealAdStackManager",IIQ_MANAGER:"IntentIqManager",CONNECTID_MANAGER:"ConnectIdManager",USER_INFO_MANAGER:"UserInfoManager",AD_BLOCK:"AdBlock",URL_VALIDATOR:"UrlValidator",SESSION_REFRESH_TRACKER:"SessionRefreshTracker",PAGE_DENSITY_TRACKER:"PageDensityTracker"};function jt({type:t="div",classList:e=[],id:r=!1,src:i=!1,name:n=!1,attributes:a=[],children:s=[],style:o={},innerHTML:l,textContent:g},I=document){let A=I.createElement(t);return e.length&&(A.className=e.join(" ")),i&&(A.src=i),r&&(A.id=r),n&&A.setAttribute("name",n),Array.isArray(a)?a.forEach(v=>{Object.entries(v).forEach(([y,S])=>{A.setAttribute(y,S)})}):Object.entries(a).forEach(([v,y])=>{A.setAttribute(v,y)}),Object.keys(o).length&&qi(A,o),l&&(A.innerHTML=l),g&&(A.textContent=g),s.length&&s.forEach(v=>{v&&A.appendChild(v)}),A}var qi=(t,e)=>(t&&Object.entries(e).forEach(([r,i])=>{t.style[r]=i}),t);function $i(t,e,r=null,i,n=!0,a=!1,s=!0,o){try{let l=jt({type:"script"});t&&(l.src=t),s&&l.setAttribute("data-owner","freestar"),i&&(l.textContent=i),r&&(l.id=r),n&&(l.async=n),typeof a!="undefined"&&(l.defer=a),l.type="text/javascript";let g=null;e&&l.addEventListener("load",()=>{e(),g&&g.disconnect()},{once:!0}),o&&l.addEventListener("error",I=>{o(I),g&&g.disconnect()}),document.getElementsByTagName("head")[0].appendChild(l),"MutationObserver"in window&&(g=new MutationObserver(I=>{I.forEach(A=>{A.attributeName==="type"&&document.querySelectorAll('[type="osano/blocked"]').forEach(v=>{v===l&&(console.warn("Script was blocked by Osano:",t||r),o&&o(new Event("osano-blocked")),g.disconnect())})})}),g.observe(l,{attributes:!0,attributeFilter:["type"]}))}catch(l){ct.instance.resolve(Cr.ANALYTICS).then(g=>{g.track(new $({eventName:"LOAD_SCRIPT_FAILED",data:{scriptSrc:t,id:r,error:l.message}}))})}}var Dr=(t,e=null,r=null,i={})=>{let{defer:n=!1}=i;return new Promise((a,s)=>{$i(t,a,e,r,!0,n,!0,s)})};function re(t){Math.random()<.01&&freestar.analyticsQueue.push(new $({eventName:"PUBFIG_NOT_LOADED",eventType:t||"",data:{domain:window.location.hostname}}))}function ft(t){for(var e=1;et.toUpperCase()));var Wi=()=>{if(typeof freestar.debug=="number")return freestar.debug;let t=k("fslog");if(t==="true")return 99;if(t!==""&&Number.isFinite(+t))return+t},Pr=(t,...e)=>{let r="Pubfig",i="background: #00C389; color: #fff; border-radius: 3px; padding: 3px";typeof t=="object"&&(r=t.title?t.title:r,i=t.styles?t.styles:i,t=typeof t.level!="undefined"?t.level:1),!(k("fs-log-filter")&&r!==k("fs-log-filter"))&&(Wi()>=t&&Wt.length===0||Wt.includes(r.toUpperCase()))&&console.info(`%c${r}: `,i,...e)};var lt="https://d.pub.network",ut="https://c.pub.network",Lr="6.198.2",Mr="c84ffa3acac67be747fa82c5d424dbdac0e7a988",kr="&configId=NUMBER",Ur="&debug=true",Fr="&testId=TEST_ID",Br="&variantId=VARIANT_ID",Ue="fs.abtest.group",ue="fs.abtest.id",Qt="fs.abtest.type",ve="fs.abtest.variant_type",Jt="fs.abtest.pubfig_location",Xt="fs.config";var Kr=Rr(Hr());var Zt={videoAdhesion:{prettyName:"Sticky Footer Video Adhesion",disabled:!1},stickyFooter:{prettyName:"Sticky Footer",disabled:!1,refreshDisabled:!1,refreshInterval:0},video:{prettyName:"Video",disabled:!1,refreshDisabled:!1,refreshInterval:0},standAloneVideo:{prettyName:"Stand Alone Video",disabled:!1,refreshDisabled:!1,refreshInterval:0},pushdown:{prettyName:"Pushdown",disabled:!1,refreshDisabled:!1,refreshInterval:0},dynamicAds:{prettyName:"Dynamic Ads",disabled:!1,refreshDisabled:!1,refreshInterval:0,optionsPath:"dynamicAdOptions"},dynamicAdsV2:{prettyName:"Dynamic Ads V2",disabled:!1,refreshDisabled:!1,refreshInterval:0,optionsPath:"dynamicAdOptionsV2"},footerBidding:{prettyName:"Footer Bidding",disabled:!1,refreshDisabled:!1,refreshInterval:0},slidingUnit:{prettyName:"Sliding Unit",disabled:!1,refreshDisabled:!1,refreshInterval:0},sideWall:{prettyName:"Sidewall",disabled:!1,refreshDisabled:!1,refreshInterval:0},pageGrabber:{prettyName:"Page Grabber",disabled:!1,refreshDisabled:!1,refreshInterval:0},interstitial:{prettyName:"Interstitial",disabled:!1,refreshDisabled:!1,refreshInterval:0},googleInterstitial:{prettyName:"Google Interstitial",disabled:!1,refreshDisabled:!1,refreshInterval:0},dianomiContentRec:{prettyName:"Dianomi Content Recommendation",disabled:!1,refreshDisabled:!1,refreshInterval:0},lazyLoad:{prettyName:"Lazy Loaded Ads",disabled:!1,refreshDisabled:!1,refreshInterval:0},iai:{prettyName:"Intelligent Ad Insert",disabled:!1,refreshDisabled:!1,refreshInterval:0},stickyRail:{prettyName:"Sticky Rail",disabled:!1,refreshDisabled:!1,refreshInterval:0}};var pt={SILENT:0,CORE:5,MODULE:50,VERBOSE:99};var jr=()=>{var s;let t=k("fslog"),e=Number(t);if(String(t).trim()==="true")return pt.VERBOSE;if(e)return Math.max(e,0);let r=k("fsdebug"),i=(s=window==null?void 0:window.freestar)==null?void 0:s.debug;if(r||i)return pt.VERBOSE;let n=Number(r),a=Number(i);return Number.isInteger(a)?Math.max(a,0):Number.isInteger(n)?Math.max(n,0):pt.SILENT};var mt=class{constructor(e={}){let{config:r={}}=e;Object.assign(this,r),this.enabled_slots=r.enabled_slots||[],this.products=r.products?(0,Kr.default)(Zt,r.products):Zt,this.logLevel=jr()}resetEnabledSlots(){this.enabled_slots=[]}setOriginalChanel(e){e&&(this.orignalChannel=e)}};function qr(t){if(["null","nullblank","nullsrcdoc"].includes(t.trim()))return!0;try{let e=new URL(t).origin;return!(e.startsWith("file://")||e==="null")}catch(e){return!1}}var dn="undefined",$o=`${dn}pubfig.min.js`;var ln="undefined",$r=`${ln}prebid.js`,zr="prod";function Q(t,e,r){if(!e)return;let n=(Array.isArray(e)?e:e.match(/([^[.\]])+/g)).reduce((a,s)=>a&&a[s],t);return n===void 0?r:n}function Wr(t){return t instanceof Object}var P={string:{type:"string",default:""},array:{type:"array",default:[]},object:{type:"object",default:{}},number:{type:"number",default:void 0}};function U({key:t,type:e=P.string.type}){let r=sessionStorage.getItem(t);if(e===P.object.type){if(r){let i=JSON.parse(r);if(Wr(i))return i}return P.object.default}if(e===P.array.type){if(r){let i=JSON.parse(r);if(Array.isArray(i))return i}return P.array.default}if(e===P.number.type){let i=Number(r);return Number.isInteger(i)?i:P.number.default}return r}function V({key:t,type:e=P.string,value:r}){r&&((e===P.object||e===P.array)&&(r=JSON.stringify(r)),sessionStorage.setItem(t,r))}function Oe({key:t}){sessionStorage.removeItem(t)}var gt="pubfig.min.js",Xr="https://a.pub.network/",Qr="freestar-com",Jr="fs.sitePath",un=(t=window.document)=>{let e=t.querySelectorAll(`script[src*="${gt}"]`);return Array.from(e||[]).find(r=>!r.src.includes("/core/"))},pn=t=>{var e,r;return(r=(e=t==null?void 0:t.src)==null?void 0:e.split(Xr)[1])==null?void 0:r.split("/")[0]},ht=t=>{let e=U({key:Jr});if(e&&e!==Qr)return e;let r=un(),i=pn(r||t)||Qr;return V({key:Jr,value:i,type:P.string}),i},Zr=(t=window,e)=>{var n,a,s;if(ke.includes("localhost"))return ke;let r=t.document.querySelectorAll(`script[src*="${gt}"]`),i=null;return e&&(i=Array.from(r).find(({id:o})=>o===e)),i||(i=Array.from(r).pop()),(s=i==null?void 0:i.src.substring(0,(i==null?void 0:i.src.lastIndexOf("/"))+1))!=null?s:`${Xr}${(a=(n=t.freestar)==null?void 0:n.fsdata)==null?void 0:a.path}/`};var B=[];for(let t=0;t<256;++t)B.push((t+256).toString(16).slice(1));function ei(t,e=0){return(B[t[e+0]]+B[t[e+1]]+B[t[e+2]]+B[t[e+3]]+"-"+B[t[e+4]]+B[t[e+5]]+"-"+B[t[e+6]]+B[t[e+7]]+"-"+B[t[e+8]]+B[t[e+9]]+"-"+B[t[e+10]]+B[t[e+11]]+B[t[e+12]]+B[t[e+13]]+B[t[e+14]]+B[t[e+15]]).toLowerCase()}var er,mn=new Uint8Array(16);function tr(){if(!er){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");er=crypto.getRandomValues.bind(crypto)}return er(mn)}var gn=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),rr={randomUUID:gn};function hn(t,e,r){var n,a,s;if(rr.randomUUID&&!e&&!t)return rr.randomUUID();t=t||{};let i=(s=(a=t.random)!=null?a:(n=t.rng)==null?void 0:n.call(t))!=null?s:tr();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){if(r=r||0,r<0||r+16>e.length)throw new RangeError(`UUID byte range ${r}:${r+15} is out of buffer bounds`);for(let o=0;o<16;++o)e[r+o]=i[o];return e}return ei(i)}var wt=hn;var ci=Rr(oi());var ir="fs.session";var si="pageviews",ai="StickyFooter";function wn(){try{let t=U({key:ir,type:P.object.type});return(!t||!t.id)&&(t={id:wt()},V({key:ir,type:P.object,value:t})),t.id}catch(t){return null}}function _n(){try{let e=Number(sessionStorage.getItem(si)||0)+1;return sessionStorage.setItem(si,e),e}catch(t){return 1}}function fi({dispensaryData:t}){var A,v,y,S;if(window.freestar.initialBrowserInfoSent)return;let e=_n();if(window.freestar.initialBrowserInfoSent=!0,window.freestar.lastHrefPushed=window.location.href,!((A=t.fsdata)!=null&&A.accountId)||!((v=t.fsdata)!=null&&v.siteId))return;let r=(0,ci.default)(window.location.href+freestar.hitTime+(t.fpc||"")).toString(),i=((y=document.querySelector("link[rel='canonical']"))==null?void 0:y.getAttribute("href"))||"",n=wn(),a=U({key:Ue,type:P.number.type})||0,s=U({key:ue})||null,o=U({key:ve})||null,l=t.getValue("deploymentId"),g=t.getValue("templateVersionId");if(g==null){let L=t.getValue("gitHash");L&&(g=L)}let I={messageId:wt(),pageId:r,url:window.location.href,referalURL:document.referrer||void 0,userAgent:navigator.userAgent,pageviewCount:e,accountId:t.fsdata.accountId,siteId:t.fsdata.siteId,deploymentId:l,templateVersionId:g,testName:s,testGroup:a,testVariantId:o,sessionId:n,browserInformation:[{canonical:i,fpc:((S=freestar.msg)==null?void 0:S.fpc)||"",hitTime:freestar.hitTime,loadTime:Date.now()-freestar.hitTime,winHeight:window.innerHeight||0,winWidth:window.innerWidth||0,maxHeight:0,isServerToServer:!1,googleVersion:""}]};try{fetch(`${ut}/v2/c`,{method:"POST",body:JSON.stringify(I),headers:{"Content-Type":"application/json"},keepalive:!0}).catch(()=>{})}catch(L){}}function bn(){return ai.includes("MODULES")?[]:ai.split(",").map(t=>t.trim())}function di(){if(k("fsdisable"))throw new Error("pubfig disabled.");if(!qr(window.location.href))throw new Error("Pubfig disabled: Invalid page URL detected. Please ensure you are loading from a valid origin.")}function li(){if(freestar.performanceLogger.logMark({markerName:be.pubfigEngineLoadInit}),freestar.modulesLoaded.engine)return freestar.log(0,"========== ENGINE ALREADY LOADED =========="),!1;let t=window.fsprebid||{};if(window.fsprebid=t,t.que=t.que||[],t.retries=0,freestar.fsdata.disallowedGeos&&freestar.fsdata.disallowedGeos.length&&freestar.fsdata.disallowedGeos.includes(freestar.locData.iso))freestar.log(0,"Ad serving is blocked in "+freestar.locData.iso);else{if(freestar.modulesLoaded.engine)return freestar.log(0,"========== ENGINE ALREADY LOADED =========="),!1;En()}}var En=()=>x(void 0,null,function*(){let t=["engineMobile","engineDesktop","engineFallback"];for(let e of t)try{yield freestar.scriptsManager.loadScript(e);return}catch(r){}});function ui(){let t=window.freestar||{};window.freestar=t,t.log=Pr,t.disableAutoTrackPageviews=t.disableAutoTrackPageviews||!1,t.version=Lr,t.gitHash=Mr,t.hitTime=t.hitTime||Date.now(),t.queue=t.queue||[];let e=new mt(t);t.config=t.config||{},t.configManager=e,t.config.products=e.products,t.config.enabled_slots=e.enabled_slots,t.modulesLoaded=t.modulesLoaded||{engine:!1,messaging:!1,pubfig:!1,prebid:!1},t.msg={},t.msg.dispensaryURL=window.dispensaryUrl||lt,t.consentManagement={consentData:{}},t.analyticsQueue=[],t.featuresIncluded=bn(),t.sitePath=t.sitePath||ht(),t.initialBrowserInfoSent=!1,t.newAdSlots=function(r,i=null){t.loaded||re("newAdSlots"),t.queue.push(function(){t.newAdSlots(r,i)})},t.deleteAdSlots=function(r){t.loaded||re("deleteAdSlots"),t.queue.push(function(){t.deleteAdSlots(r)})},t.newStickyFooter=function(r){t.loaded||re("newStickyFooter"),t.queue.push(function(){t.newStickyFooter(r)})},t.newSidewall=function(r){t.loaded||re("newSidewall"),t.queue.push(function(){t.newSidewall(r)})},t.newVideo=function(r){t.loaded||re("newVideo"),t.queue.push(function(){t.newVideo(r)})},t.newPushdown=function(r){t.loaded||re("newPushdown"),t.queue.push(function(){t.newPushdown(r)})},t.newStandAlonePlayer=function(r){t.loaded||re("newStandAlonePlayer"),t.queue.push(function(){t.newStandAlonePlayer(r)})},t.deleteStandAlonePlayer=function(r){t.loaded||re("deleteStandAlonePlayer"),t.queue.push(function(){t.deleteStandAlonePlayer(r)})}}function pi(){return x(this,null,function*(){let t=["prebid","prebidFallback"];for(let e of t)try{yield freestar.scriptsManager.loadScript(e);return}catch(r){}})}var Et=class{constructor({freestar:e}){this._freestar=e,this._analytics=null,this.isReportingActive=U({key:ue})||Math.random()*100<1,e.performanceMarksData=e.performanceMarksData||{pendingMarks:[],processedMarks:[]},this.isFirstLoad=this.getIsFirstLoad()}get performanceMarksData(){return this._freestar.performanceMarksData}set performanceMarksData(e){this._freestar.performanceMarksData=e}setAnalytics(e){this._analytics=e}resetPerformanceLogger(){sessionStorage.removeItem("hasLoadedBefore"),this.performanceMarksData={pendingMarks:[],processedMarks:[]}}fetchPerformanceMarkDetails({markerName:e,compareToData:r}){let i=performance==null?void 0:performance.getEntriesByName(e,"mark");if(i.length===0)return null;let n;r&&(n=performance==null?void 0:performance.getEntriesByName(r,"mark"));let a=i[0];return Y({marker_name:a.name,absolute_time:a.startTime.toFixed(2)},this.compareMarks({mark:a,compareToPerformanceMarkData:n}))}compareMarks({mark:e,compareToPerformanceMarkData:r}){if(!r)return{};let i=(e.startTime-r[0].startTime).toFixed(2);return{compared_to:r[0].name,relative_Time:i}}fetchUserDetails(){let{deviceInfo:e,locData:r}=this._freestar,{browser:i,os:n,device:a}=e;return fe(Y({},r),{browser_name:i.name,browser_version:i.version,os_name:n.name,os_version:n.version,device_type:a.type})}getIsFirstLoad(){return sessionStorage.getItem("hasLoadedBefore")===null?(sessionStorage.setItem("hasLoadedBefore","true"),!0):!1}sendPerformanceMarkerToQueue({markerName:e,compareTo:r}){if(!(!this.isReportingActive||this.performanceMarksData.processedMarks.includes(e)))if(this.performanceMarksData.processedMarks.push(e),r.length===0){let i=this.fetchPerformanceMarkDetails({markerName:e}),n=this.fetchUserDetails(),a=new $({eventType:"PERFORMANCE",eventName:e.toUpperCase(),data:fe(Y(Y({},i),n),{is_first_load:this.isFirstLoad,pubfig_version:this._freestar.version})});if(this._analytics){this._analytics.track(a);return}this._freestar.analyticsQueue.push(a)}else r.forEach(i=>{let n=this.fetchPerformanceMarkDetails({markerName:e,compareToData:i}),a=this.fetchUserDetails(),s=new $({eventType:"PERFORMANCE",eventName:e.toUpperCase(),data:fe(Y(Y({},n),a),{is_first_load:this.isFirstLoad,pubfig_version:this._freestar.version})});if(this._analytics){this._analytics.track(s);return}this._freestar.analyticsQueue.push(s)})}pushAllPendingMarksToMsgQue(){this.performanceMarksData.pendingMarks.forEach(e=>{this.sendPerformanceMarkerToQueue(e)})}logMark({markerName:e,compareTo:r=[],isFreestarDataCollectorInitialized:i=!0}){if(performance.mark(e),!i||!this._freestar.deviceInfo||!this._freestar.locData){this.performanceMarksData.pendingMarks.push({markerName:e,compareTo:r});return}this.sendPerformanceMarkerToQueue({markerName:e,compareTo:r})}logPerformanceMarkers(){let e=performance.getEntriesByType("mark");for(let r of e)console.log(`Mark [${r.name}]: ${r.startTime.toFixed(2)}ms`)}};var In="2.0.2",mr=500,mi="user-agent",De="",gi="?",St="function",he="undefined",Pe="object",gr="string",H="browser",ne="cpu",X="device",W="engine",z="os",Ne="result",d="name",c="type",u="vendor",p="version",j="architecture",ze="major",f="model",qe="console",R="mobile",N="tablet",F="smarttv",J="wearable",nr="xr",$e="embedded",Be="inapp",_r="brands",Ie="formFactors",br="fullVersionList",Ce="platform",Er="platformVersion",Tt="bitness",we="sec-ch-ua",yn=we+"-full-version-list",An=we+"-arch",Sn=we+"-"+Tt,vn=we+"-form-factors",Tn=we+"-"+R,On=we+"-"+f,Ci=we+"-"+Ce,Rn=Ci+"-version",Di=[_r,br,R,f,Ce,Er,j,Ie,Tt],It="Amazon",Re="Apple",hi="ASUS",wi="BlackBerry",Ee="Google",_i="Huawei",bi="Lenovo",Ei="Honor",yt="LG",or="Microsoft",sr="Motorola",ar="Nvidia",Ii="OnePlus",cr="OPPO",Ge="Samsung",yi="Sharp",Ve="Sony",fr="Xiaomi",dr="Zebra",Ai="Chrome",Si="Chromium",pe="Chromecast",xn="Edge",Ye="Firefox",He="Opera",vi="Facebook",Ti="Sogou",xe="Mobile ",je=" Browser",hr="Windows",Nn=typeof window!==he,K=Nn&&window.navigator?window.navigator:void 0,me=K&&K.userAgentData?K.userAgentData:void 0,Cn=function(t,e){var r={},i=e;if(!vt(e)){i={};for(var n in e)for(var a in e[n])i[a]=e[n][a].concat(i[a]?i[a]:[])}for(var s in t)r[s]=i[s]&&i[s].length%2===0?i[s].concat(t[s]):t[s];return r},Ot=function(t){for(var e={},r=0;r0){for(var r in t)if(oe(t[r])==oe(e))return!0;return!1}return Me(t)?oe(e).indexOf(oe(t))!==-1:!1},vt=function(t,e){for(var r in t)return/^(browser|cpu|device|engine|os)$/.test(r)||(e?vt(t[r]):!1)},Me=function(t){return typeof t===gr},lr=function(t){if(t){for(var e=[],r=Le(/\\?\"/g,t).split(","),i=0;i-1){var n=We(r[i]).split(";v=");e[i]={brand:n[0],version:n[1]}}else e[i]=We(r[i]);return e}},oe=function(t){return Me(t)?t.toLowerCase():t},ur=function(t){return Me(t)?Le(/[^\d\.]/g,t).split(".")[0]:void 0},se=function(t){for(var e in t){var r=t[e];typeof r==Pe&&r.length==2?this[r[0]]=r[1]:this[r]=void 0}return this},Le=function(t,e){return Me(e)?e.replace(t,De):e},Ke=function(t){return Le(/\\?\"/g,t)},We=function(t,e){if(Me(t))return t=Le(/^\s\s*/,t),typeof e===he?t:t.substring(0,mr)},pr=function(t,e){if(!(!t||!e))for(var r=0,i,n,a,s,o,l;r0?s.length===2?typeof s[1]==St?this[s[0]]=s[1].call(this,l):this[s[0]]=s[1]:s.length===3?typeof s[1]===St&&!(s[1].exec&&s[1].test)?this[s[0]]=l?s[1].call(this,l,s[2]):void 0:this[s[0]]=l?l.replace(s[1],s[2]):void 0:s.length===4&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):void 0):this[s]=l||void 0;r+=2}},ge=function(t,e){for(var r in e)if(typeof e[r]===Pe&&e[r].length>0){for(var i=0;i2&&this.set(f,"iPad").set(c,N);break;case z:!this.get(d)&&me&&me[Ce]&&this.set(d,me[Ce]);break;case Ne:var n=this.data,a=function(s){return n[s].getItem().detectFeature().get()};this.set(H,a(H)).set(ne,a(ne)).set(X,a(X)).set(W,a(W)).set(z,a(z))}return this},this.parseUA=function(){return this.itemType!=Ne&&pr.call(this.data,this.ua,this.rgxMap),this.itemType==H&&this.set(ze,ur(this.get(p))),this},this.parseCH=function(){var n=this.uaCH,a=this.rgxMap;switch(this.itemType){case H:case W:var s=n[br]||n[_r],o;if(s)for(var l in s){var g=s[l].brand||s[l],I=s[l].version;this.itemType==H&&!/not.a.brand/i.test(g)&&(!o||/chrom/i.test(o)&&g!=Si)&&(g=ge(g,{Chrome:"Google Chrome",Edge:"Microsoft Edge","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome"}),this.set(d,g).set(p,I).set(ze,ur(I)),o=g),this.itemType==W&&g==Si&&this.set(p,I)}break;case ne:var A=n[j];A&&(A&&n[Tt]=="64"&&(A+="64"),pr.call(this.data,A+";",a));break;case X:if(n[R]&&this.set(c,R),n[f]&&(this.set(f,n[f]),!this.get(c)||!this.get(u))){var v={};pr.call(v,"droid 9; "+n[f]+")",a),!this.get(c)&&v.type&&this.set(c,v.type),!this.get(u)&&v.vendor&&this.set(u,v.vendor)}if(n[Ie]){var y;if(typeof n[Ie]!="string")for(var S=0;!y&&S=13?"11":"10"),this.set(d,L).set(p,M)}this.get(d)==hr&&n[f]=="Xbox"&&this.set(d,"Xbox").set(p,void 0);break;case Ne:var m=this.data,h=function(O){return m[O].getItem().setCH(n).parseCH().get()};this.set(H,h(H)).set(ne,h(ne)).set(X,h(X)).set(W,h(W)).set(z,h(z))}return this},se.call(this,[["itemType",t],["ua",e],["uaCH",i],["rgxMap",r],["data",Dn(this,t)]]),this}function Z(t,e,r){if(typeof t===Pe?(vt(t,!0)?(typeof e===Pe&&(r=e),e=t):(r=t,e=void 0),t=void 0):typeof t===gr&&!vt(e,!0)&&(r=e,e=void 0),r&&typeof r.append===St){var i={};r.forEach(function(l,g){i[g]=l}),r=i}if(!(this instanceof Z))return new Z(t,e,r).getResult();var n=typeof t===gr?t:r&&r[mi]?r[mi]:K&&K.userAgent?K.userAgent:De,a=new Pi(r,!0),s=e?Cn(xi,e):xi,o=function(l){return l==Ne?function(){return new Ni(l,n,s,a).set("ua",n).set(H,this.getBrowser()).set(ne,this.getCPU()).set(X,this.getDevice()).set(W,this.getEngine()).set(z,this.getOS()).get()}:function(){return new Ni(l,n,s[l],a).parseUA().get()}};return se.call(this,[["getBrowser",o(H)],["getCPU",o(ne)],["getDevice",o(X)],["getEngine",o(W)],["getOS",o(z)],["getResult",o(Ne)],["getUA",function(){return n}],["setUA",function(l){return Me(l)&&(n=l.length>mr?We(l,mr):l),this}]]).setUA(n),this}Z.VERSION=In;Z.BROWSER=Ot([d,p,ze,c]);Z.CPU=Ot([j]);Z.DEVICE=Ot([f,u,c,qe,R,F,N,J,$e]);Z.ENGINE=Z.OS=Ot([d,p]);var Li="desktop";var Ir="fs.session",Rt=class{constructor({freestar:e,window:r}){de(this,"deviceInfo",{});var n;this._freestar=e,this._window=r,this.cdep=!!this._freestar.cdep;let i=JSON.parse(U({key:Ir}));this.known=Number((n=i==null?void 0:i.known)!=null?n:0)}initManager(){this._window.freestar=this._window.freestar||{},this._setDeviceType()}_setDeviceType(){this.deviceInfo=Z(),this._window.freestar.deviceInfo=this.deviceInfo,this.deviceInfo.device.type||(this.deviceInfo.device={type:Li})}get userAgent(){let e=this.deviceInfo.browser.name,r=this.deviceInfo.os.name;return r==="Mac OS"&&e==="Safari"?"Safari":r==="iOS"?"iOS":e}_update(e){this.known=e;let r=JSON.parse(U({key:Ir}));if((r==null?void 0:r.known)!==this.known){let i=fe(Y({},r),{known:this.known});V({key:Ir,type:P.object,value:i})}}get isKnownByPrebidUser(){var e;return!!((e=window.fsprebid)!=null&&e.getUserIds&&Object.keys(window.fsprebid.getUserIds()).length)}get isCDEPUser(){return this.cdep}get _isKnown(){return Number(!this.isCDEPUser&&this.isKnownByPrebidUser)}get isKnown(){return this._update(this._isKnown),this.known}};var Qe="fs.altConfig";var xt=" exiting after creating new instance...",Ar=class{constructor({win:e=window}={}){this._window=e,this._window._pubfigInstanceManagerConfig=this._window._pubfigInstanceManagerConfig||{},this.config=this._window._pubfigInstanceManagerConfig,this.fsLoadPubfigVersionUrlParams=k(ie.fsLoadPubfigVersion,e),this.fsLoadPubfigVersionUrlParams&&(this._window.freestar.pubfigVersionToLoad=this.fsLoadPubfigVersionUrlParams),this.fsAltConfigUrlParams=this._getAltConfigVersion(),this.isQA=k(ie.fsdebug,e),this._currentSitePath=this._window.freestar.sitePath}_getAltConfigVersion(){let e=k(ie.fsaltconfig,this._window),r=U({key:Qe});return e||r}setPubfigMinCurrentId(e){Object.values(le).includes(e)&&(this.config.pubfigMinCurrentId=e)}get sourcesPath(){return Zr(this._window,this.config.pubfigMinCurrentId)}loadAlternativeInstance({src:e,errorString:r}){let i=jt({type:"script",id:this.config.pubfigMinCurrentId,src:e},this._window.document);throw this._window.document.head.appendChild(i),new Error(r)}checkForAlternativeInstances({isTest:e,onAlternativeInstanceFound:r}={isTest:"",onAlternativeInstanceFound:()=>{}}){this.fsLoadPubfigVersionUrlParams&&!this.config.loadPubfigVersionRedirect&&(this.config.loadPubfigVersionRedirect=!0,this.setPubfigMinCurrentId(le.playwrightTestsScriptId),r(),this.loadAlternativeInstance({src:`https://a.pub.network/core/pubfig/${this.fsLoadPubfigVersionUrlParams}/pubfig.min.js`,errorString:`PLAYWRIGHTS TEST FOUND -${xt}`})),e&&e.length&&(r(),this.setPubfigMinCurrentId(le.abTestsScriptId),this._window.freestar.redirected=!0,this.loadAlternativeInstance({src:e,errorString:`AB TEST FOUND -${xt}`}));let i=Array.from(document.querySelectorAll(`script#${le.fsAltConfigScriptId}`));if(this.fsAltConfigUrlParams&&i.length===0&&(V({key:Qe,value:this.fsAltConfigUrlParams}),r(),this.setPubfigMinCurrentId(le.fsAltConfigScriptId),this.loadAlternativeInstance({src:`https://a.pub.network/${this._currentSitePath}/test/${this.fsAltConfigUrlParams}/pubfig.min.js?bypass=true`,errorString:`Alternate Configuration - found alt version,${xt}`})),this.isQA&&!this.config.fsQaRedirect){this.config.fsQaRedirect=!0;let n;document.querySelectorAll("script").forEach(a=>{if(a.innerText.includes("qa/pubfig")){n=!0;return}}),n||(r(),this.setPubfigMinCurrentId(le.qaScriptId),this.loadAlternativeInstance({src:`https://a.pub.network/${this._currentSitePath}/qa/pubfig.min.js`,errorString:`QA version called via params -${xt}`}))}}},yr=null;function ee(){return yr||(yr=new Ar),yr}function Mi({freestar:t=window.freestar,network:e}){return!e.deviceExclusive||e.deviceExclusive.toLowerCase()===t.deviceInfo.device.type}var Pn={emxdigital:"emx_digital",synacor:"synacormedia"},Nt=class{constructor({freestar:e}){this._freestar=e}_normalizeLocation(e){let i=Q(e,"location");if(i)return{iso:i.countryCode,city:i.cityName,state:i.state}}networkSlugModification(e=""){return Pn[e]||e}_processNetworkMap(e){return Q(e,"networkMap.networks")}_adaptFsDataSettings(e){var i,n,a,s;let r=Q(e,"pubfigSettings.fsdata");return r&&(r.timeout=(i=r.timeout)!=null?i:3e3,r.mobileTimeout=(n=r.mobileTimeout)!=null?n:3e3),(a=r==null?void 0:r.placements)!=null&&a.length&&(r.placements=this._filterOutArchivedPlacements(r.placements),r.placements.forEach(o=>{o.sizeMappings.sort(function(l,g){return l.viewport.size[0]===g.viewport.size[0]?0:l.viewport.size[0]>g.viewport.size[0]?-1:1})})),(s=r==null?void 0:r.networks)!=null&&s.length&&(r.networks=this._getDeviceExclusiveNetworks(r.networks)),r}_getDeviceExclusiveNetworks(e){return e.filter(r=>Mi({freestar:this._freestar,network:r}))}_filterOutArchivedPlacements(e){return e.filter(r=>!r.archived)}_getFpc(e){return e.fsuid}_getAbTest(e){var r;return(r=Q(e,"pubfigSettings.abTest"))!=null?r:{}}_getPubfigLocation(e){return Q(e,"pubfigSettings.pubfigLocation")}adapt(e){return!e||Object.keys(e).length===0?(console.error("Empty data provided to DispensaryDataAdapter"),{}):{fpc:this._getFpc(e),location:this._normalizeLocation(e),networkMap:this._processNetworkMap(e),fsdata:this._adaptFsDataSettings(e,e.adRefresh),abTest:this._getAbTest(e),pubfigLocation:this._getPubfigLocation(e)}}};var Ct=class{constructor({freestar:e}){this.adapters={dispensaryData:new Nt({freestar:e})}}adapt(e,r){if(!this.adapters[e])throw new Error(`No adapter found for data type ${e}`);return this.adapters[e].adapt(r)}};var Dt=class{constructor({freestar:e}){de(this,"_isLoaded",!1);this._freestar=e,this.fpc,this.locData,this.networkMap,this.fsdata,this.config={},this.envAndConfig,this.cdep,this.dataAdapter=new Ct({freestar:e})}load(){return x(this,null,function*(){this._isLoaded||(this._setEnvironmentAndConfig(),yield this._fetchDispensaryData(),this.cdep=yield this._getCookieDeprecationLabel(),this._isLoaded=!0)})}_setEnvironmentAndConfig(){let e=xr(ie.fsdebug),r=k(ie.fsaltconfig),i=U({key:Qe}),n=r||i,a=k("fstesturl");this.envAndConfig={env:"PROD",version:!1,altUrl:a},e?this.envAndConfig.env="QA":n&&n>0&&(this.envAndConfig.env="TEST",this.envAndConfig.version=n)}_getCookieDeprecationLabel(){return x(this,null,function*(){return"cookieDeprecationLabel"in navigator?navigator.cookieDeprecationLabel.getValue():null})}_getInitUrl(){let e=`${lt}/v2/sites/${this._freestar.sitePath}/configs?env=${this.envAndConfig.env}`;this.envAndConfig.env==="TEST"&&(e+=kr.replace("NUMBER",this.envAndConfig.version.toString())),this.envAndConfig.env!=="PROD"&&(e+=Ur);let r=U({key:ue}),i=U({key:ve});return r&&(e+=Fr.replace("TEST_ID",r)),i&&(e+=Br.replace("VARIANT_ID",i)),e}_fallBackFetch(){return x(this,null,function*(){let e=yield fetch(`https://a.pub.network/${this._freestar.sitePath}/fsdata.json`);if(!e.ok){let i=`No data returned from fsdata fallback endpoint: ${e.status}`;throw new Error(i)}let r=yield e.json();r?(this.fsdata=r,this.locData=null,this.networkMap=null):console.error("DispensaryData: No data returned from dispensary endpoint")})}_reportEmptyData(){freestar.analyticsQueue.push(new $({eventName:"INIT_ENDPOINT_FAILED",eventType:"EMPTY_FSDATA",data:freestar.fsdata})),console.error("DispensaryData: Empty data returned")}_clearAbTestData(){Oe({key:Ue}),Oe({key:ue}),Oe({key:ve}),Oe({key:Qt}),Oe({key:Jt})}abTestDataFetchAndSet({pubfigSettings:{abTest:e,pubfigLocation:r}}){if(this._freestar.redirected)return!1;if(!e)return this._clearAbTestData(),!1;let{testGroup:i,testId:n,testType:a,testVariantId:s}=e;return`${i}`.length&&V({key:Ue,value:`${i}`,type:P.string}),n&&V({key:ue,value:n,type:P.string}),s&&V({key:ve,value:s,type:P.string}),a&&(V({key:Qt,value:a,type:P.string}),r)?(V({key:Jt,value:r,type:P.string}),r):!1}_getLocationData(e,r){let i=Q(e,r);if(i)return{iso:i.countryCode,city:i.cityName,state:i.state}}_processData(e){let r=this.dataAdapter.adapt("dispensaryData",e);ee().checkForAlternativeInstances({isTest:this.abTestDataFetchAndSet(e),onAlternativeInstanceFound:()=>{this._freestar.performanceLogger.resetPerformanceLogger(),this._freestar.modulesLoaded.pubfig=!1}}),this.fpc=r.fpc,this.locData=r.location,this.networkMap=r.networkMap,this.fsdata=r.fsdata,this.abTest=r.abTest,this.pubfigLocation=r.pubfigLocation}_fetchDispensaryData(){return x(this,null,function*(){let e=U({key:Xt});if(e&&(e=JSON.parse(e),e.timestamp&&(Date.now()-e.timestamp)/1e3/60>=3*60&&(e=null)),(this.envAndConfig.env!=="PROD"||this.envAndConfig.env==="PROD"&&e&&e.altconfig)&&(e=null),!e)try{let r=yield fetch(this._getInitUrl(),{credentials:"include"});if(!r.ok)throw console.log(`DispensaryData: No data returned from initURL fetching fsdata endpoint: ${r.status}`),new Error("Fetching dispensary data failed");if(e=yield r.json(),!e||Object.keys(e).length===0)throw this._reportEmptyData(),new Error("Empty data returned");e.timestamp=Date.now(),this.envAndConfig.env==="TEST"&&!e.altconfig&&(e.altconfig=!0),V({key:Xt,value:e,type:P.object})}catch(r){yield this._fallBackFetch();return}this._processData(e)})}getValue(e){return Q(this.fsdata,e)}};var Pt=class{constructor({win:e,scripts:r=[]}={}){this._win=e,this._scripts=new Map(r.map(i=>[i.id,i]))}addScripts(e){e.forEach(r=>this._scripts.set(r.id,r))}getScript(e){return this._scripts.get(e)}loadScript(e){return x(this,null,function*(){let r=this.getScript(e);if(!r)throw new Error(`Script ${e} not found`);return r.load()})}loadScripts(){return x(this,arguments,function*({id:e=[]}={}){let r=e.flatMap(i=>this.getScript(i)||[]);return Promise.all(r.map(i=>i.load()))})}};var ye={IDLE:"idle",PENDING:"pending",READY:"ready",SKIPPED:"skipped",ERROR:"error"},q=class{constructor({id:e,location:r}){this.status=ye.IDLE,this.id=e,this.location=r,this._onLoad=[]}onLoad(e){if(this.status===ye.READY){e();return}this._onLoad.push(e)}beforeLoad(){return!0}afterLoad(){}load(){return x(this,null,function*(){if(this.status!==ye.IDLE)return;if(this.status=ye.PENDING,!this.beforeLoad()){this.status=ye.SKIPPED;return}try{yield Dr(this.location,null,null),this.afterLoad(),this._onLoad.forEach(r=>r()),this._onLoad=[],this.status=ye.READY}catch(r){throw this.status=ye.ERROR,r}})}};var Lt=class extends q{constructor({freestar:e=window.freestar,instanceManager:r=ee()}={}){super({id:"engineMobile",location:`${r.sourcesPath}pubfig.engine.mobile.js`}),this._freestar=e}load(){var r,i,n;let e=(n=(i=(r=this._freestar.deviceInfo)==null?void 0:r.device)==null?void 0:i.type)!=null?n:"desktop";if(!(e.toLowerCase()==="mobile"))throw new Error("device type not supported");return super.load()}afterLoad(){this._restoreGlobalUnderscore()}_restoreGlobalUnderscore(){this._freestar.globalUnderscore&&(window._=this._freestar.globalUnderscore)}};var Mt=class extends q{constructor({freestar:e=window.freestar,instanceManager:r=ee()}={}){super({id:"engineDesktop",location:`${r.sourcesPath}pubfig.engine.js`}),this._freestar=e}afterLoad(){this._restoreGlobalUnderscore()}_restoreGlobalUnderscore(){this._freestar.globalUnderscore&&(window._=this._freestar.globalUnderscore)}};var kt="https://a.pub.network/core/pubfig";var Ut=class extends q{constructor({freestar:e=window.freestar}={}){super({id:"engineFallback",location:`${kt}/${e.version}/pubfig.engine.js`}),this._freestar=e}afterLoad(){this._restoreGlobalUnderscore()}_restoreGlobalUnderscore(){this._freestar.globalUnderscore&&(window._=this._freestar.globalUnderscore)}};var Ln="https://securepubads.g.doubleclick.net/tag/js/gpt.js",Ft=class extends q{constructor({win:e=window,dispensaryData:r}={}){super({id:"gam",location:""}),this._win=e,this._dispensaryData=r,this._setLocation()}beforeLoad(){return this._win.googletag=this._win.googletag||{},this._win.googletag.cmd=this._win.googletag.cmd||[],!0}_getGamNetworkCode(){var n,a,s;let e=(n=this._dispensaryData.fsdata)==null?void 0:n.placements,r=e==null?void 0:e[0],i=(a=r==null?void 0:r.dfpId)==null?void 0:a.split("/");return!i||i.length<2?null:((s=i[1])==null?void 0:s.split(",")[0])||null}_setLocation(){this.location=Ln}};var Bt=class extends q{constructor({instanceManager:e=ee()}={}){let i=zr==="dev"?$r:`${e.sourcesPath}prebid.js`;super({id:"prebid",location:i})}};var Gt=class extends q{constructor({freestar:e=window.freestar}={}){super({id:"prebidFallback",location:`${kt}/${e.version}/prebid.js`})}};var ki=({getIsFound:t,getElement:e=()=>null,callback:r,timeout:i=5e3,frequency:n=300})=>{let a=0,s=t(),o=e();if(s){r(s,o);return}let l=setInterval(()=>{a=a+1;let g=t(),I=e();(g||a>=i/n)&&(r(g,I),clearInterval(l))},n)};var Mn=({elementSelector:t,callback:e,timeout:r=5e3,frequency:i=300,doc:n=document})=>{ki({getIsFound:()=>!!n.querySelector(t),getElement:()=>n.querySelector(t),callback:(a,s)=>{e(a,s)},timeout:r,frequency:i})},Ui=(...e)=>x(void 0,[...e],function*(t={}){return new Promise(r=>{Mn(fe(Y({},t),{callback:(i,n)=>{r({isFound:i,element:n})}}))})});var kn=[{owner:"google",ua:"googlebot"},{owner:"google",ua:"mediapartners-google"},{owner:"google",ua:"adsbot-google"},{owner:"bing",ua:"bingbot"},{owner:"yahoo",ua:"slurp"},{owner:"duckduckgo",ua:"duckduckbot"},{owner:"baidu",ua:"baiduspider"},{owner:"yandex",ua:"yandexbot"},{owner:"exabot",ua:"konqueror/3.5"},{owner:"exabot",ua:"Exabot/3.0"},{owner:"facebook",ua:"facebot"},{owner:"facebook",ua:"facebookexternalhit/1.0"},{owner:"facebook",ua:"facebookexternalhit/1.1"},{owner:"alexa",ua:"ia_archiver"},{owner:"meta",ua:"meta-externalads/1.1"},{owner:"meta",ua:"meta-externalagent/1.1"},{owner:"meta",ua:"meta-externalfetcher/1.1"},{owner:"aws",ua:"CloudWatchSynthetics/"},{owner:"amazon",ua:"AmazonAdBot"}],Vt=class{constructor(){}checkForBot(){var n;let e=((n=window.navigator)==null?void 0:n.userAgent)||(navigator==null?void 0:navigator.userAgent),r="fs.bot.found",i=zt({name:r});i&&i?this._handleBotDetected(r,e):e&&!i&&(kn.forEach(a=>{RegExp(a.ua.toLowerCase()).test(e.toLowerCase())&&this._handleBotDetected(r,e)}),$t({name:r,value:!1}))}_handleBotDetected(e,r){throw this._isDetected=!0,this._trackEvent(),$t({botCookieName:e,value:!0}),`pubfig code is disabled as the user agent ${r} is a bot`}_trackEvent(){return x(this,null,function*(){let e=new $({eventName:"BOT_DETECTED",eventType:"botDetected",data:{detected:!0}});yield fetch(`${ut}/v2/c`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({customEvent:[e.payload],accountId:freestar.fsdata.accountId,siteId:freestar.fsdata.siteId}),credentials:"include"})})}};(function(){return x(this,null,function*(){var i,n,a,s,o,l;if(di(),(n=(i=window.freestar)==null?void 0:i.modulesLoaded)!=null&&n.pubfig)return;ui(),freestar.modulesLoaded.pubfig=!0;let e=new Et({freestar:window.freestar});freestar.performanceLogger=e,e.logMark({markerName:be.pubfigLoaded,isFreestarDataCollectorInitialized:!1});let r=new Rt({freestar:window.freestar,window});r.initManager(),freestar.userInfoManager=r;try{ee().checkForAlternativeInstances({isTest:!1,onAlternativeInstanceFound:()=>{e.resetPerformanceLogger(),freestar.fsdata=null,freestar.modulesLoaded.pubfig=!1}}),e.logMark({markerName:be.pubfigInitRequestStart,isFreestarDataCollectorInitialized:!1});let{element:g}=yield Ui({elementSelector:`script[src*="${gt}"]`,doc:window.document,frequency:10});freestar.sitePath==="freestar-com"&&(freestar.sitePath=ht(g));let I=new Dt({freestar});yield I.load(),freestar.dispensaryData=I,freestar.cdep=I.cdep,freestar.fsdata=(a=I.fsdata)!=null?a:{},freestar.msg.fpc=(s=I.fpc)!=null?s:"",freestar.locData=(o=I.locData)!=null?o:{},freestar.networkMap=(l=I.networkMap)!=null?l:{},freestar.url=window.location.href,new Vt().checkForBot(),fi({dispensaryData:I}),freestar.scriptsManager=new Pt({win:window,scripts:[new Bt,new Gt,new Ft({dispensaryData:I}),new Lt,new Mt,new Ut]})}catch(g){return console.warn(`Warning: ${g.message}`),g}pi(),freestar.scriptsManager.loadScripts({id:["gam"]}),e.logMark({markerName:be.pubfigInitRequestEnd,compareTo:[be.pubfigInitRequestStart]}),li()})})();})();