!function(){function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[a]={exports:{}};t[a][0].call(l.exports,function(e){return i(t[a][1][e]||e)},l,l.exports,e,t,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a=0;n--){var a=l.randomSplice(t),u=b[a];if(u.enabled)try{var p=f[a];if(l.isObject(p)?u.instance=d(p,u.configs):u.instance=p(u.configs),!u.instance){u.enabled=!1;continue}w[a]=T.NOT_STARTED}catch(e){u.enabled=!1}}m._setDirectInterface("IdentityLayer",{retrieve:g,getResult:h,getIdentityResults:y,invokeAllPartners:r}),m._setExecutor(v)}(),a.derive(m,{retrieve:g,getResult:h})}var i,o,a=e(10),s=e(3),u=e(15),c=e(52),l=e(25),d=e(37),f={AdserverOrgIp:e(36),LiveRampIp:e(38)};t.exports=n},{}],3:[function(e,t,r){"use strict";function n(){function e(e,t){return i.resolve(t)}function t(e,t){u={},u[e]=t}function r(e){c=e}function n(){return u}function o(e){l=e}function a(e,t){return l(e,t)}function s(e,t){return i.resolve().then(function(){return c(e,t)})}var u,c,l;return function(){u=null,c=e,l=e}(),{_setDirectInterface:t,_setExecutor:r,_executeNext:a,setNext:o,getDirectInterface:n,execute:s}}var i=e(15);e(26);t.exports=n},{}],4:[function(e,t,r){"use strict";function n(e){function t(e,t){return r._executeNext(e,t).then(function(t){for(var r={slot:{},partner:{}},o=[],a=t.slice();t.length;){var c=u.randomSplice(t);if(c.htSlot){var l=c.htSlot.getName();c.pass||(c.hasOwnProperty("price")&&u.isNumber(c.price)?(r.slot.hasOwnProperty(l)?r.slot[l].price-1&&(s=c.length-l-1,c=c.slice(0,l)+c.slice(l+1)),s>=o)s-=o;else{var d=o-s;s=0,c=i.padEnd(c,c.length+d,"0")}c.length>9&&(s-=c.length-9,c=c.slice(0,9)),u=Math.pow(10,s),c=Number(c);var f=e.buckets.length;if(c=e.buckets[f-1].max*u)c=e.buckets[f-1].max*u;else{for(var p,g=e.floor,h=0;h0&&(y=sn)break;if(e&&(i=e(o)))return i;var s;try{s=o.frameElement}catch(e){s=null}if(null===s){if(t&&(i=t(o)))return i;break}o=o.parent,a++}}catch(e){}return null}function g(e){return p(function(t){return t.hasOwnProperty(e)?t[e]:null})}function h(e,t){var r=t||m,n=r.document.createElement("iframe");return e&&(n.src=e),n.width=0,n.height=0,n.scrolling="no",n.marginWidth=0,n.marginHeight=0,n.frameBorder=0,n.setAttribute("style","border: 0px; vertical-align: bottom; visibility: hidden; display: none;"),r.document.body.appendChild(n),n}function v(e){var t=e+"=",r=m.document.cookie.split(";");for(var n in r)if(r.hasOwnProperty(n)){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return null}function y(){var e=!1;try{new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(e=!0)}catch(t){navigator.mimeTypes&&void 0!==navigator.mimeTypes["application/x-shockwave-flash"]&&navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(e=!0)}return e}var m;return function(){m=p(null,function(e){return e})}(),{topWindow:m,getProtocol:e,isLocalStorageSupported:f,getViewportWidth:t,getViewportHeight:r,isTopFrame:l,getScreenWidth:n,getScreenHeight:i,getReferrer:o,getPageUrl:d,getHostname:a,getUserAgent:s,getLanguage:u,getPathname:c,getNearestEntity:g,traverseContextTree:p,createHiddenIFrame:h,readCookie:v,isFlashSupported:y}}()},{}],9:[function(e,t,r){"use strict";var n=e(8),i=e(25),o=e(24);t.exports=function(){function e(e){if(!s)return!1;try{localStorage.removeItem(u+e)}catch(e){return!1}return!0}function t(t){if(!s)return null;var r;try{r=JSON.parse(localStorage.getItem(u+t))}catch(e){return null}return null===r?null:!r.e||r.ec&&(r=c);var n=o.now(),i={t:n,d:t,e:n+r};try{localStorage.setItem(u+e,JSON.stringify(i))}catch(e){return!1}return!0}var s,u="IXWRAPPER",c=6048e5;return function(){s=n.isLocalStorageSupported()}(),{deleteData:e,getEntry:t,getData:r,setData:a}}()},{}],10:[function(e,t,r){"use strict";e(26);t.exports=function(){function e(e){for(var t in e)e.hasOwnProperty(t)&&"_"===t[0]&&"__"!==t.slice(0,2)&&delete e[t];return e}function t(t,r){var n,i={};for(n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);for(n in r)r.hasOwnProperty(n)&&(i[n]=r[n]);return e(i)}return{derive:t}}()},{}],11:[function(e,t,r){"use strict";function n(e){function t(e){if(i.isFunction(e))try{e()}catch(e){}}return function(){if(i.isArray(e))for(var t=0;t=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],r={},n={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",versionNumber:t[4]||t[2]||"0"};if(n.browser&&(r[n.browser]=!0,r.version=n.version,r.versionNumber=parseInt(n.versionNumber,10)),r.rv||r.iemobile){n.browser="msie",r.msie=!0}if(r.edge){delete r.edge;n.browser="msedge",r.msedge=!0}if(r.opr){n.browser="opera",r.opera=!0}if(r.safari&&r.android){n.browser="android",r.android=!0}if(r.safari&&r.kindle){n.browser="kindle",r.kindle=!0}if(r.safari&&r.silk){n.browser="silk",r.silk=!0}return r.name=n.browser,r}(window.navigator.userAgent)},{}],17:[function(e,t,r){"use strict";var n=e(8),i=e(21),o=e(25);e(26);t.exports=function(){function e(e,t){(t=t||window.googletag)&&t.cmd&&t.cmd.push(e)}function t(e){return e=e||window,e.googletag?e.googletag:(e.googletag=e.googletag||{},e.googletag.cmd=e.googletag.cmd||[],i.jsonp({async:!0,url:n.getProtocol()+"//www.googletagservices.com/tag/js/gpt.js",windowScope:e}),e.googletag)}function r(e){return void 0===e?n.getNearestEntity("googletag"):n.traverseContextTree(function(e){return e.hasOwnProperty("googletag")?e.googletag:null},null,e,e)}function a(e){return o.isObject(e)&&o.isFunction(e.getSlotElementId)&&o.isFunction(e.setTargeting)&&o.isFunction(e.getTargeting)&&o.isFunction(e.clearTargeting)}function s(){return googletag.pubads().getSlots().slice()}function u(e){for(var t=s(),r=0;r=0;u--)if(o=n[u],!(Number(o)>e)){i=Object.keys(y[o]).sort(r);for(var c=i.length-1;c>=0;c--)if(a=i[c],!(Number(a)>t)){s=y[o][a];break}if(s.length>0)break}return s}function u(){return m}function c(){return b}function l(){return _}function d(){return w}function f(e){w=e}var p,g,h,v,y,m,b,_,w;return function(){if(p=e,g=t.id,h=null,v=null,y=null,m=null,b=null,_=null,w=null,t.hasOwnProperty("divId")&&(h=RegExp(t.divId)),t.hasOwnProperty("adUnitPath")&&(v=RegExp(t.adUnitPath)),t.hasOwnProperty("sizeMapping")){var r,n,i,o=/^(\d+)x(\d+)$/;y={};for(var a in t.sizeMapping)t.sizeMapping.hasOwnProperty(a)&&(r=o.exec(a),n=r[1],i=r[2],y.hasOwnProperty(n)||(y[n]={}),y[n][i]=t.sizeMapping[a])}t.hasOwnProperty("targeting")&&(m=t.targeting),t.hasOwnProperty("deviceType")&&(b=t.deviceType),t.hasOwnProperty("position")&&(_=t.position),t.hasOwnProperty("type")&&(w=t.type),t=void 0}(),{getName:n,getId:i,getDivId:o,getAdUnitPath:a,getSizes:s,getTargeting:u,getDeviceType:c,getPosition:l,getType:d,setType:f}}e(26);n.SlotTypes={INSTREAM_VIDEO:"INSTREAM_VIDEO",BANNER:"BANNER"},t.exports=n},{}],19:[function(e,t,r){"use strict";function n(e){function t(e,t){for(var r=0;r=0;l--){for(var f=[],p=-1,g=0;gf[m]){f=h,p=g;break}if(h[m]=0){var b={};c[p]=!0,b.htSlot=n[p],i[l].firstPartyData&&(b.firstPartyData=i[l].firstPartyData),i[l].reference&&(b.ref=i[l].reference),r.push(b),i.splice(l,1)}}for(var _=n.length-1;_>=0;_--)c[_]&&n.splice(_,1)}return r}var d=[],f=[],p={divId:function(e,t){var r=t.getDivId();return r?r.test(e.divId)?1:0:-1},targeting:function(e,t){var n=t.getTargeting(),i=e.targeting;if(!n)return-1;for(var o=!1,s=0,u=0;u0?s+1:0},size:function(e,t){var r=t.getSizes(i.getViewportWidth(),i.getViewportHeight());if(!r)return-1;for(var n=0,o=0;o0&&r[0].price>e.price&&delete e.targeting.price)}),r.length>0){var n=s.randomSplice(r);n.hasOwnProperty("dealId")||t.push(n);for(var i=0;i-1&&e.splice(r,1)}function d(r,i,o){if("array"!==e(r))return!1;if(void 0!==i){if(!t(i))throw n("INVALID_TYPE","`type` must be a string");if("class"===i){if(!t(o))throw n("INVALID_TYPE","`className` must be a string");for(var a=0;a0;n--)t=Math.floor(Math.random()*(n+1)),r=e[n],e[n]=e[t],e[t]=r;return e}function g(e){return JSON.parse(JSON.stringify(e))}function h(){for(var e=Array.prototype.slice.call(arguments),t={},r=0;r=1<<28)throw new RangeError("repeat count must not overflow maximum string size");for(var n="",i=0;i>=0,r=String(r||" "),e.length>t?String(e):(t-=e.length,t>r.length&&(r+=_(r,t/r.length)),r.slice(0,t)+String(e))}function S(e,t,r){return t>>=0,r=String(r||" "),e.length>t?String(e):(t-=e.length,t>r.length&&(r+=_(r,t/r.length)),String(e)+r.slice(0,t))}function I(e,t){t=t||null;try{return eval.call(t,e)}catch(e){}return null}function P(e,t,r){r=r||null;try{return eval.call(r,e+"("+t.join()+")")}catch(e){}return null}function T(){for(var e=Array.prototype.slice.call(arguments),t=e[0],r=1;r=0;g--){var h=e.Layers[g].layerId,v=c[h](e.Layers[g].configs);v.getDirectInterface()&&(r.Layers=s.mergeObjects(r.Layers,v.getDirectInterface())),p&&v.setNext(p.execute),p=v}}(),{getDirectInterface:t}}var i=e(13),o=e(18),a=e(52),s=e(25),u=(e(26),[{name:"EventsService",constructor:e(43)},{name:"GptService",constructor:e(48)},{name:"PublisherSonarService",constructor:e(49)},{name:"HeaderStatsService",constructor:e(44)},{name:"TimerService",constructor:e(50)},{name:"ComplianceService",constructor:e(47)},{name:"RenderService",constructor:e(46)},{name:"AdaptiveTimeoutService",constructor:e(42)},{name:"KeyValueService",constructor:e(45)}]),c={GptLayer:e(1),MediationLayer:e(4),PartnersLayer:e(5),IdentityLayer:e(2),VideoInterfaceLayer:e(6)};t.exports=n},{}],28:[function(e,t,r){"use strict";function n(){function e(e){for(var t="",r=0;rb&&(y=b),y}var c,l,d,f=6048e5,p=100,g=.8,h=3,v={IPR:0,DONE:1},y={hs_session_start:function(e){var t=e.sessionId;c.hasOwnProperty(t)&&d[t]===v.IPR||(c[t]=a.now(),d[t]=v.IPR)},hs_session_end:function(e){var t=e.sessionId;if(c[t]&&d[t]===v.IPR){d[t]=v.DONE;var r=i.getData(n.STORAGE_KEY_NAME);null!==r&&r.hasOwnProperty("prt")&&s.isArray(r.prt)?(r=r.prt,r.length>=5&&r.pop()):r=[],r.unshift({sId:t,sst:c[t],rt:l[t]||{}}),i.setData(n.STORAGE_KEY_NAME,{prt:r},f),delete l[t],delete c[t]}},partner_request_complete:function(e){t("partner_request_complete",e)}};return function(){for(var e in y)y.hasOwnProperty(e)&&o.services.EventsService.on(e,y[e]);d={},l={},c={}}(),{getTimeout:u}}var i=e(9),o=e(52),a=e(24),s=e(25);n.STORAGE_KEY_NAME="lib_mem",t.exports=n},{}],29:[function(e,t,r){"use strict";function n(e,t){function r(e){var r;r=t.pageDemandHistory;for(var n in r)r.hasOwnProperty(n)&&(window.googletag.pubads().clearTargeting(n),delete r[n]);r=t.gSlotDemandHistory;for(var i=0;i=0;p--)t.gSlotDisplayHistory.hasOwnProperty(f[p].getSlotElementId())&&f.splice(p,1);if(!f.length)return n.done=!0,h(n),s.resolve();for(var v=[],m=0;m=0;l--)a.isGSlot(e[l])||e.splice(l,1);if(t.requestArchitecture===d.RequestArchitectures.MRA)for(var g=e.length-1;g>=0;g--)t.gSlotDisplayHistory.hasOwnProperty(e[g].getSlotElementId())||e.splice(g,1);if(!e.length)return n(c,u),f.resolve();for(var m=[],b=0;be.created)}function w(e){return!(!R.consent||!i.isPrivacyEnabled())&&((!e.data.consent||!p.isArraySubset(Object.keys(R.consent),Object.keys(e.data.consent)))&&i.wait().then(function(){return Object.keys(R.consent).some(function(t){if(e.data.consent&&e.data.consent[t])return!1;var r=i[t].getConsent();return r&&r.consentString})}))}function S(e){return e.data.version!==R.version}function I(e){return!r(e.data.data)}function P(){return R.consent&&i.isPrivacyEnabled()?i.wait():null}function T(){var e=u.getEntry(B);return l.resolve().then(function(){if(!e)return null;var t=j[e.data.response];return t?l.all(t.map(function(t){return t.call(null,e)})):null}).then(function(t){return!t||t.indexOf(!0)>-1?null:(o.emit("hs_identity_cached",{statsId:D}),n(e.data.response,e.data.data),e.data)})}function E(){return l.resolve().then(function(){return l.all(G.map(function(e){return e.call()}))}).then(function(){return new l(function(e){o.emit("hs_identity_request",{statsId:D}),z=!1,U=e,o.emit("ip_module_retrieve_"+L)})})}function O(){return D}function x(){return k}function A(){if(C)return C;if(k&&p.isArray(k.uids)&&k.uids.length&&k.uids[0].id){var e={};return e[R.targetingKeys.exchangeBidding]=k.uids[0].id,e}return null}function N(){return T().then(function(e){return e?null:E()})}var R,L,D,M,k,C,q,U,B,z,j={match:[_,I],pass:[_,w,S],error:[S]},G=[P];return function(){i=d.services.ComplianceService,o=d.services.EventsService,a=d.services.PublisherSonarService,R=e.profile,L=R.partnerId,D=R.statsId,k=null,C=null,U=null,B=L,q={},M={Utilities:{buildUrl:c.buildUrl,getPageUrl:s.getPageUrl,getProtocol:s.getProtocol,getReferrer:s.getReferrer,getTime:f.now,getType:p.getType,isArray:p.isArray,isEmpty:p.isEmpty,isFunction:p.isFunction,isInteger:p.isInteger,isNumeric:p.isNumeric,isString:p.isString,isObject:p.isObject,isTopFrame:s.isTopFrame,isXhrSupported:c.isXhrSupported,ajax:y,getConsent:h,getIdentityResultFrom:v,getPublisherSonarData:m},onRetrieve:o.on.bind(null,"ip_module_retrieve_"+L),onResult:o.on.bind(null,"ip_module_result_"+L),registerMatch:g.bind(null,"match"),registerPass:g.bind(null,"pass"),registerError:g.bind(null,"error"),registerEbTargeting:b,configs:t},e.main(M)}(),{getStatsId:O,getResults:x,getTargets:A,retrieve:N}}var i,o,a,s=e(8),u=e(9),c=e(21),l=e(15),d=e(52),f=e(24),p=e(25);t.exports=n},{}],38:[function(e,t,r){"use strict";function n(){var e={pid:s,rt:"envelope"},t=o.Utilities.getConsent("gdpr");t&&t.consentString&&t.version&&(e[d.consent.gdpr]=t.consentString,1==t.version?e[l]=1:2==t.version&&(e[l]=4));var r=[],n=d.sonar.entrypoints[0].key,i=o.Utilities.getPublisherSonarData();i&&i.hasOwnProperty(n)&&(e[n]=i[n].data,e[u]=c,r.push(i[n].meta)),o.Utilities.ajax({url:o.Utilities.getProtocol()+a,method:"GET",data:e,onSuccess:function(e){try{var t,n=JSON.parse(e);if(!o.Utilities.isObject(n))return void o.registerError("invalid response");if(o.Utilities.isEmpty(n))return void o.registerPass();if(!n.hasOwnProperty("envelope"))return void o.registerError("invalid envelope object");if(o.Utilities.isEmpty(n.envelope))return void o.registerPass();t={source:d.source,uids:[{id:n.envelope,ext:{rtiPartner:"idl"}}]},r.length&&(t.ext={sonar:r}),o.registerMatch(t)}catch(e){o.registerError("response is not valid JSON")}},onFailure:function(e){204===e?o.registerPass():o.registerError("API returned error response "+e)}})}function i(e){o=e,window.ats&&window.ats.retrieveEnvelope(function(e){if(e)try{var t=JSON.parse(e).envelope;o.registerMatch({source:d.source,uids:[{id:t,ext:{rtiPartner:"idl"}}]})}catch(e){}}),o.onRetrieve(n)}var o,a="//api.rlcdn.com/api/identity",s=2,u="it",c=4,l="ct",d={partnerId:"LiveRampIp",statsId:"LVRAMP",version:"1.3.0",source:"liveramp.com",cacheExpiry:{match:864e5,pass:864e5,error:864e5},consent:{gdpr:"cv"},targetingKeys:{exchangeBidding:"ixpid_3"},sonar:{enabled:!0,entrypoints:[{key:"iv",filter:{attr:1,algo:1}}]}};t.exports={type:"identity",api:"1",main:i,profile:d}},{}],39:[function(e,t,r){"use strict";function n(e){function t(e,r,n,i){var o="";if(h.isString(r)||h.isNumber(r))return o+=n+e+"="+r.toString()+"&";if(h.isObject(r)){if(!i||"indexexchange"===e)for(var a in r)if(r.hasOwnProperty(a)){var s=n+e+"_";"ext"===e?s=n:"indexexchange"===e&&(s=n+"ix_"),o+=t(a,r[a],s,!0)}return o}if(h.isArray(r)&&!h.isEmpty(r)){if(h.isString(r[0])){for(var u="",c=0;c0&&(c=""!==s.topWindow.location.search?"&"+c:"?"+c,c=c.slice(0,-1))}o.setPage(s.getPageUrl()+c),h.isString(document.referrer)&&""!==document.referrer&&o.setRef(document.referrer),o.setExt({source:"ixwrapper"});for(var f=0;f=0;y--)if(d[y].ixImpId===l[p].impid){v=d[y],d.splice(y,1);break}if(v){var w=v.htSlot.getId();if(l[p].hasOwnProperty("price")||l[p].ext&&l[p].ext.hasOwnProperty("dealid")){var S=l[p].price;b.enabledAnalytics.requestTime&&(i.emit("hs_slot_bid",{sessionId:e,statsId:b.statsId,htSlotId:w,requestId:v.requestId,xSlotNames:[v.xSlotName]}),n[w]&&n[w][v.requestId]&&h.arrayDelete(n[w][v.requestId],v.xSlotName));var I;l[p].ext&&h.isString(l[p].ext.dealid)&&!h.isEmpty(l[p].ext.dealid)&&(I=l[p].ext.dealid);var P=l[p].adm;v.targetingType="slot",v.targeting={};var T="";h.isNumeric(S)&&(v.price=Number(m._bidTransformers.price.apply(S))),T=h.isNumeric(S)?m._bidTransformers.targeting.apply(S):S;var E=m._configs.targetingKeys.pm,O=m._configs.targetingKeys.pmid,x=m._configs.targetingKeys.om,A=m._configs.targetingKeys.id;if(m._configs.lineItemType!==c.LineItemTypes.CUSTOM){var N=f.arrayToString(v.size);I?(v.targeting[O]=[N+"_"+I],h.isString(T)&&!h.isEmpty(T)&&(v.targeting[E]=[N+"_"+T])):v.targeting[x]=[N+"_"+T],v.targeting[A]=[v.requestId];o.registerAd({sessionId:e,partnerId:b.partnerId,adm:P,requestId:v.requestId,size:v.size,price:T,dealId:I,timeOfExpiry:b.features.demandExpiry.enabled?b.features.demandExpiry.value+g.now():0})}else{var R=v.xSlotName;I?(v.targeting[E]=[R+"_"+I],h.isString(T)&&!h.isEmpty(T)&&v.targeting[E].push(R+"_"+T)):v.targeting[x]=[R+"_"+T],o.registerIndexLegacyAd(e,b.partnerId,P,b.features.demandExpiry.enabled?b.features.demandExpiry.value+g.now():0,I||T,R)}}}}b.enabledAnalytics.requestTime&&m._emitStatsEvent(e,"hs_slot_pass",n)}var m,b,_,w;!function(){i=p.services.EventsService,o=p.services.RenderService,a=p.services.ComplianceService,b={partnerId:"IndexExchangeHtb",namespace:"IndexExchangeHtb",statsId:"INDX",version:"2.7.0",targetingType:"slot",enabledAnalytics:{requestTime:!0},features:{demandExpiry:{enabled:!0,value:3e5},rateLimiting:{enabled:!1,value:0}},targetingKeys:{id:"ix_id",om:"IOM",pm:"IPM",pmid:"IPMID"},bidUnitInCents:1,lineItemType:c.LineItemTypes.ID_AND_SIZE,callbackType:d.CallbackTypes.ID,architecture:d.Architectures.FSRA,requestType:d.RequestTypes.ANY},_="https://htlb.casalemedia.com/cygnus",w=p.NAMESPACE+"."+b.namespace+".adResponseCallback",m=d(b,e,null,{parseResponse:y,generateRequestObj:n,adResponseCallback:v}),window[p.NAMESPACE]&&(window[p.NAMESPACE][b.namespace]=window[p.NAMESPACE][b.namespace]||{},window[p.NAMESPACE][b.namespace].adResponseCallback=v)}();var S={};return u.derive(m,S)}var i,o,a,s=e(8),u=e(10),c=e(12),l=e(22),d=e(40),f=e(23),p=e(52),g=e(24),h=e(25);e(26);t.exports=n},{}],40:[function(e,t,r){"use strict";function n(e,t,r,h){function v(e){ return function(t){z[e]=t,delete H[e]}}function y(e,t,r){for(var n in r)if(r.hasOwnProperty(n))for(var o in r[n])r[n].hasOwnProperty(o)&&r[n][o].length&&i.emit(t,{sessionId:e,statsId:A.statsId,htSlotId:n,requestId:o,xSlotNames:r[n][o]})}function m(e,r){var n={};return n=e===F.PRICE?{outputCentsDivisor:1,outputPrecision:0,roundingType:"NONE"}:e===F.TARGETING?t.bidTransformer:t.bidTransformerTypes[e],g.mergeObjects(q[e],{bidUnitInCents:A.bidUnitInCents},r||{},n||{})}function b(e){var t=[];A.architecture===n.Architectures.FSRA&&t.push([]);for(var r={},i=0;i=0;n--){var i=t[n].htSlot.getName();L.hasOwnProperty(i)&&r<=L[i]?t.splice(n,1):L[i]=r+U.rateLimiting.value}}if(!t.length)return[];if(M)return M(e,t);for(var o=b(t),a=[],s=0;s0&&(U.timeout=t.timeout,i.emit("hs_define_partner_timeout",{timeout:U.timeout,statsId:A.statsId})),t.hasOwnProperty("targetingKeyOverride"))for(var p in t.targetingKeyOverride)t.targetingKeyOverride.hasOwnProperty(p)&&U.targetingKeys.hasOwnProperty(p)&&(U.targetingKeys[p]=t.targetingKeyOverride[p]);if(t.hasOwnProperty("rateLimiting")&&(t.rateLimiting.hasOwnProperty("enabled")&&(U.rateLimiting.enabled=t.rateLimiting.enabled),t.rateLimiting.value&&(U.rateLimiting.value=t.rateLimiting.value)),t.hasOwnProperty("lineItemType")&&(U.lineItemType=c.LineItemTypes[t.lineItemType]),U.xSlots=t.xSlots,U.mapping=t.mapping,N=!1,r){g.isArray(r)||(r=[r]);var v=[];r.map(function(e){var t=d.defer();v.push(t.promise),l.jsonp({url:e,onSuccess:function(){t.resolve()}})}),d.all(v).then(function(){N=!0,i.emit("partner_instantiated",{partner:A.partnerId}),B=u(B)})}else i.emit("partner_instantiated",{partner:A.partnerId}),N=!0;o.registerPartner(A.partnerId,U.lineItemType,U.targetingKeys.id),j={},e.hasOwnProperty("bidUnitInCents")&&(j.targeting=s(m(F.TARGETING)),j.price=s(m(F.PRICE)),j.video=s(m(F.VIDEO))),h.retriever?M=h.retriever:(C=h.parseResponse,k=h.generateRequestObj,G=h.adResponseCallback),D={},D.hasOwnProperty(A.namespace)||(D[A.namespace]={}),A.callbackType===n.CallbackTypes.ID?D[A.namespace].adResponseCallback=G:D[A.namespace].adResponseCallbacks=H}(),{_configs:U,_adResponseStore:z,_bidTransformers:j,_setDirectInterface:I,_addToDirectInterface:P,_generateReturnParcels:b,_emitStatsEvent:y,_pushToCommandQueue:w,_generateBidTransformerConfig:m,getPartnerId:T,getDirectInterface:E,getPrefetchDisabled:O,isReady:S,retrieve:x}}var i,o,a,s=e(7),u=e(11),c=e(12),l=e(21),d=e(15),f=e(52),p=e(24),g=e(25);e(26);n.Architectures={MRA:0,SRA:1,FSRA:2},n.CallbackTypes={ID:0,CALLBACK_NAME:1,NONE:2},n.RequestTypes={ANY:0,AJAX:1,JSONP:2},t.exports=n},{}],41:[function(e,t,r){"use strict";function n(e,t){function r(e){P||(P=s({selectors:["divId"],filters:["deviceType"]}));for(var t=[],r=0;r=0;r--)if(a[t][r].id===e)return void a[t].splice(r,1)}function o(){var e=Array.prototype.slice.call(arguments),t=e.shift();if(t&&a.hasOwnProperty(t))for(var r=a[t].length-1;r>=0;r--){try{a[t][r].fn.apply(null,e)}catch(e){}a[t][r].once&&a[t].splice(r,1)}}var a;return function(){a={}}(),{on:t,once:r,off:n,emit:o}}var i=e(24);e(26);t.exports=n},{}],44:[function(e,t,r){"use strict";function n(e){function t(e){var t={auction_cycle:"ac",global_timeout:"gt",bid_requests:"brq",bid_responses:"brs",bid_errors:"be",bid_passes:"bp",bid_timeouts:"bt",dfp_kv_pushed:"kv",top_bid:"tb",prefetch:"p",res_latency:"rl",partner_timeout:"pt"};return t.hasOwnProperty(e)?t[e]:e}function r(){if(d.isEmpty(k))return[];var e={s:"identity",t:B,xslots:{}};for(var r in k)if(k.hasOwnProperty(r)){e.xslots.hasOwnProperty(r)||(e.xslots[r]={});for(var n=0;ng)&&(p.v=g)}else"prefetch"===e?p.v=1:p.v++;"bid_requests"===e?I[f]=l.now():"bid_responses"===e&&i.emit("hs_slot_valid_bid_latency",t)}}}}if(!u.isXhrSupported())return null;var y,m,b,_,w,S,I,P,T,E,O,x,A,N,R,L,D,M,k,C,q,U,B,z,j={IPR:0,DONE:1,SENT:2},G={hs_session_start:function(e){var t=e.sessionId;A.hasOwnProperty(t)||(A[t]=j.IPR,P[t]=l.now(),E[t]=[],O[t]={},R[t]=n.SessionTypes.DISPLAY,R[t]=e.sessionType,N[t]=e.timeout);var r=a.getData(s.STORAGE_KEY_NAME);null!==r&&r.hasOwnProperty("prt")&&d.isArray(r.prt)&&0!==r.prt.length||(M[t]=!0)},hs_session_end:function(e){var t=e.sessionId;A.hasOwnProperty(t)&&A[t]!==j.DONE&&(T[t]=String(l.now()-P[t]),delete P[t],setTimeout(function(){A[t]=j.DONE,h(t)},0))},hs_akamai_debug:function(e){var t=e.sessionId;x[t]={},x[t].hostname=e.hostname,e.hasOwnProperty("requestHost")&&(x[t].requestHost=e.requestHost),e.hasOwnProperty("akamaiPresent")&&(x[t].akamaiPresent=e.akamaiPresent)},hs_slot_request:function(e){v("bid_requests",e)},hs_slot_bid:function(e){v("bid_responses",e)},hs_slot_pass:function(e){v("bid_passes",e)},hs_slot_timeout:function(e){v("bid_timeouts",e)},hs_slot_error:function(e){v("bid_errors",e)},hs_slot_highest_bid:function(e){v("top_bid",e)},hs_slot_valid_bid_latency:function(e){v("res_latency",e)},hs_slot_kv_pushed:function(e){v("dfp_kv_pushed",e)},hs_slot_prefetch:function(e){v("prefetch",e)},hs_define_partner_timeout:function(e){L[e.statsId]=String(e.timeout)},hs_identity_request:function(e){f("hs_identity_request",e)},hs_identity_cached:function(e){f("hs_identity_cached",e)},hs_identity_response:function(e){f("hs_identity_response",e),i.emit("hs_identity_bid_latency",e)},hs_identity_error:function(e){f("hs_identity_error",e),i.emit("hs_identity_bid_latency",e)},hs_identity_pass:function(e){f("hs_identity_pass",e),i.emit("hs_identity_bid_latency",e)},hs_identity_bid_latency:function(e){d.isNumber(U[e.statsId])&&f("hs_identity_bid_latency",e)},hs_identity_timeout:function(e){f("hs_identity_timeout",e),z=!0},hs_define_identity_timeout:function(e){C=String(e.timeout)}};return function(){i=c.services.EventsService,S=l.now(),y="https://as-sec.casalemedia.com/headerstats",m=e.siteId,b=e.configId,_=e.options,w=m+l.now(),w+=l.generateUniqueId(32-w.length),c.instanceId=w,A={},E={},O={},x={},I={},P={},T={},R={},N={},L={},D={},M={},k={},U={},z=!1,q={};for(var t in G)G.hasOwnProperty(t)&&c.services.EventsService.on(t,G[t])}(),{}}var i,o=e(8),a=e(9),s=e(28),u=e(21),c=e(52),l=e(24),d=e(25);e(26);n.SessionTypes={DISPLAY:"display",VIDEO:"video"},t.exports=n},{}],45:[function(e,t,r){"use strict";function n(){function e(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function t(){return i.deepCopy(s)}function r(){return i.deepCopy(u)}function n(){return!0}function o(t){return!!e(t)&&(u.site=i.deepCopy(t),!0)}function a(t){return!!e(t)&&(u.user=i.deepCopy(t),!0)}var s={site:{},user:{}},u={};return function(){u=i.deepCopy(s)}(),{getDefaultKeyValueData:t,getKeyValueData:r,hasKeyValueAccess:n,setSiteKeyValueData:o,setUserKeyValueData:a}}var i=e(25);t.exports=n},{}],46:[function(e,t,r){"use strict";function n(e){function t(e,t,r,n){if(e.hasOwnProperty(t)&&e[t].hasOwnProperty(r)){for(var i=null,o=0;ow[t].timeOfExpiry&&r(t)}function d(e){var t;do{t=u.generateUniqueId(o.PUBKIT_AD_ID_LENGTH,"ALPHANUM")}while(w.hasOwnProperty[t]);return w[t]=e,t}function f(e){if(w.hasOwnProperty(e)&&w[e].timeOfExpiry&&u.now()>w[e].timeOfExpiry&&r(e),S[e])return i.emit("internal_info","Attempted to render expired ad "+e),null;if(!w.hasOwnProperty(e))throw l("INVALID_VALUE","`pubKitAdId` does not match any registered ad");var t=w[e];return r(e),t}function p(e){if(e.auxFn)try{e.auxFn.apply(null,e.auxArgs)}catch(e){i.emit("internal_error","Error occurred running ad aux function.",e.stack)}}function g(e,t){var r=f(t);if(!r)return!1;p(r);try{u.documentWrite(e,r.adm)}catch(e){return i.emit("internal_error",'Error occurred while rendering ad "'+t+'".',e.stack),!1}return!0}function h(e){var t=d(e);if(e.price||e.dealId){var r=e.partnerId,n=e.requestId;if(T.hasOwnProperty(r)){var i;i=c.isString(e.size)?e.size:a.arrayToString(e.size),a.isSpecialSize(i)&&(N[n]=i),E[r]||(E[r]={}),E[r][i]||(E[r][i]={}),E[r][i][n]||(E[r][i][n]=[]),E[r][i][n].push(t);var o=e.price;o&&(O[r]||(O[r]={}),O[r][o]||(O[r][o]={}),O[r][o][n]||(O[r][o][n]=[]),O[r][o][n].push(t));var s=e.dealId;return s&&(x[r]||(x[r]={}),x[r][s]||(x[r][s]={}),x[r][s][n]||(x[r][s][n]=[]),x[r][s][n].push(t)),t}}}function v(e,t,r,n,i,o){if(T.hasOwnProperty(t)){var a={sessionId:e,partnerId:t,adm:r,price:i};n&&n>0&&(a.timeOfExpiry=n);var s=d(a);return A[o]=A[o]||{},A[o][i]=A[o][i]||[],A[o][i].push(s),s}}function y(e,t,r,n,o){try{if(!E.hasOwnProperty(e))return void i.emit("internal_error","Partner "+e+" missing from ad ID map.");if(!c.isObject(r))return void i.emit("internal_error","invalid targeting map");if(!r.hasOwnProperty(T[e].idKey))return void i.emit("internal_error","targeting map missing key "+T[e].idKey);var a=r[T[e].idKey];if(!c.isArray(a))return void i.emit("internal_error","invalid targeting map");if(!c.isNumeric(n))return void i.emit("internal_error","invalid width");if(!c.isNumeric(o))return void i.emit("internal_error","invalid height");var s=n+"x"+o;if(P&&P.hasOwnProperty(s)){var u=P[s];s=u[0]+"x"+u[1]}for(var l=0;l0&&!c;)c=g(t,u.shift());return}}catch(t){i.emit("internal_error",'Error occurred while rendering ad for "'+e+'".',t.stack)}}function _(e,t,r){T.hasOwnProperty(e)||(T[e]={}),T[e].lineItemType=t,T[e].idKey=r}var w,S,I,P,T={},E={},O={},x={},A={},N={};return function(){w={},S={},P=e.sizeRetargeting||null,I=setInterval(n,o.RENDER_SERVICE_EXPIRY_SWEEP_TIMER),i=s.services.EventsService,window.addEventListener("message",function(e){try{if(!c.isString(e.data)||"ix_ht_render:"!==e.data.substr(0,"ix_ht_render:".length))return;m(JSON.parse(e.data.substr("ix_ht_render:".length)),e.source,e.origin)}catch(e){i.emit("internal_error","Error occurred while rendering ad.",e.stack)}},!1)}(),{registerAd:h,render:g,registerPartner:_,renderDfpAd:y,registerIndexLegacyAd:v,renderIndexLegacyAd:b}}var i,o=e(12),a=e(23),s=e(52),u=e(24),c=e(25),l=e(26);t.exports=n},{}],47:[function(e,t,r){"use strict";function n(){function e(){return{applies:!0,consentString:""}}function t(){return{version:1,uspString:""}}function r(){return!1}function n(e){return e}function o(){return i.resolve()}return{gdpr:{getConsent:e,setApplies:function(){}},usp:{getConsent:t},isPrivacyEnabled:r,delay:n,wait:o}}var i=e(15);t.exports=n},{}],48:[function(e,t,r){"use strict";e(24);t.exports=function(){return{}}},{}],49:[function(e,t,r){"use strict";t.exports=function(){return{getSonarPayload:function(){return{}},getLastUpdated:function(){return 0},setSonarEmail:function(){return{}}}}},{}],50:[function(e,t,r){"use strict";function n(){function e(e){return function(){u[e].state=c.TERMINATED;for(var t=0;t