prebid.js 8.7.0 → 8.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/33acrossBidAdapter.js +1 -1
  2. package/dist/33acrossIdSystem.js +1 -1
  3. package/dist/a1MediaRtdProvider.js +1 -1
  4. package/dist/adagioBidAdapter.js +1 -1
  5. package/dist/adbookpspBidAdapter.js +1 -1
  6. package/dist/adgenerationBidAdapter.js +1 -1
  7. package/dist/admaticBidAdapter.js +1 -1
  8. package/dist/adqueryBidAdapter.js +1 -1
  9. package/dist/adqueryIdSystem.js +1 -1
  10. package/dist/adrelevantisBidAdapter.js +1 -1
  11. package/dist/adtrgtmeBidAdapter.js +1 -1
  12. package/dist/adxcgBidAdapter.js +1 -1
  13. package/dist/adyoulikeBidAdapter.js +1 -1
  14. package/dist/ajaBidAdapter.js +1 -1
  15. package/dist/amxBidAdapter.js +1 -1
  16. package/dist/amxIdSystem.js +1 -1
  17. package/dist/appierAnalyticsAdapter.js +1 -1
  18. package/dist/appnexusBidAdapter.js +1 -1
  19. package/dist/asoBidAdapter.js +1 -1
  20. package/dist/axonixBidAdapter.js +1 -1
  21. package/dist/bidViewability.js +1 -1
  22. package/dist/bidglassBidAdapter.js +1 -1
  23. package/dist/big-richmediaBidAdapter.js +1 -1
  24. package/dist/brandmetricsRtdProvider.js +1 -1
  25. package/dist/bridBidAdapter.js +1 -1
  26. package/dist/bridgewellBidAdapter.js +1 -1
  27. package/dist/brightMountainMediaBidAdapter.js +1 -1
  28. package/dist/carodaBidAdapter.js +1 -1
  29. package/dist/chtnwBidAdapter.js +1 -1
  30. package/dist/concertBidAdapter.js +1 -1
  31. package/dist/connectadBidAdapter.js +1 -1
  32. package/dist/consumableBidAdapter.js +1 -1
  33. package/dist/conversantAnalyticsAdapter.js +1 -1
  34. package/dist/conversantBidAdapter.js +1 -1
  35. package/dist/craftBidAdapter.js +1 -1
  36. package/dist/criteoBidAdapter.js +1 -1
  37. package/dist/cwireBidAdapter.js +1 -1
  38. package/dist/dependencies.json +4 -1
  39. package/dist/dspxBidAdapter.js +1 -1
  40. package/dist/eplanningBidAdapter.js +1 -1
  41. package/dist/euidIdSystem.js +1 -1
  42. package/dist/feedadBidAdapter.js +1 -1
  43. package/dist/finativeBidAdapter.js +1 -1
  44. package/dist/freewheel-sspBidAdapter.js +1 -1
  45. package/dist/geoedgeRtdProvider.js +1 -1
  46. package/dist/gmosspBidAdapter.js +1 -1
  47. package/dist/goldbachBidAdapter.js +1 -1
  48. package/dist/greenbidsAnalyticsAdapter.js +1 -1
  49. package/dist/greenbidsRtdProvider.js +1 -1
  50. package/dist/gridBidAdapter.js +1 -1
  51. package/dist/gumgumBidAdapter.js +1 -1
  52. package/dist/h12mediaBidAdapter.js +1 -1
  53. package/dist/hypelabBidAdapter.js +1 -1
  54. package/dist/id5IdSystem.js +1 -1
  55. package/dist/imdsBidAdapter.js +1 -1
  56. package/dist/improvedigitalBidAdapter.js +1 -1
  57. package/dist/insticatorBidAdapter.js +1 -1
  58. package/dist/ixBidAdapter.js +1 -1
  59. package/dist/justpremiumBidAdapter.js +1 -1
  60. package/dist/kargoBidAdapter.js +1 -1
  61. package/dist/konduitAnalyticsAdapter.js +1 -1
  62. package/dist/kueezBidAdapter.js +1 -1
  63. package/dist/kueezRtbBidAdapter.js +1 -1
  64. package/dist/kulturemediaBidAdapter.js +1 -1
  65. package/dist/lassoBidAdapter.js +1 -1
  66. package/dist/lifestreetBidAdapter.js +1 -1
  67. package/dist/liveIntentIdSystem.js +1 -1
  68. package/dist/logicadBidAdapter.js +1 -1
  69. package/dist/loglyliftBidAdapter.js +1 -1
  70. package/dist/magniteAnalyticsAdapter.js +1 -1
  71. package/dist/malltvAnalyticsAdapter.js +1 -1
  72. package/dist/marsmediaBidAdapter.js +1 -1
  73. package/dist/mediafuseBidAdapter.js +1 -1
  74. package/dist/mediasquareBidAdapter.js +1 -1
  75. package/dist/mgidBidAdapter.js +1 -1
  76. package/dist/minutemediaBidAdapter.js +1 -1
  77. package/dist/minutemediaplusBidAdapter.js +1 -1
  78. package/dist/nativoBidAdapter.js +1 -1
  79. package/dist/nexx360BidAdapter.js +1 -1
  80. package/dist/not-for-prod/prebid.js +138 -137
  81. package/dist/oguryBidAdapter.js +1 -1
  82. package/dist/onetagBidAdapter.js +1 -1
  83. package/dist/ooloAnalyticsAdapter.js +1 -1
  84. package/dist/operaadsBidAdapter.js +1 -1
  85. package/dist/operaadsIdSystem.js +1 -0
  86. package/dist/optidigitalBidAdapter.js +1 -1
  87. package/dist/outbrainBidAdapter.js +1 -1
  88. package/dist/oxxionAnalyticsAdapter.js +1 -1
  89. package/dist/parrableIdSystem.js +1 -1
  90. package/dist/pixfutureBidAdapter.js +1 -1
  91. package/dist/prebid-core.js +1 -1
  92. package/dist/publinkIdSystem.js +1 -1
  93. package/dist/pubmaticBidAdapter.js +1 -1
  94. package/dist/pubwiseAnalyticsAdapter.js +1 -1
  95. package/dist/pxyzBidAdapter.js +1 -1
  96. package/dist/quantcastBidAdapter.js +1 -1
  97. package/dist/readpeakBidAdapter.js +1 -1
  98. package/dist/relaidoBidAdapter.js +1 -1
  99. package/dist/retailspotBidAdapter.js +1 -1
  100. package/dist/rhythmoneBidAdapter.js +1 -1
  101. package/dist/riseBidAdapter.js +1 -1
  102. package/dist/rubiconBidAdapter.js +1 -1
  103. package/dist/seedingAllianceBidAdapter.js +1 -1
  104. package/dist/seedtagBidAdapter.js +1 -1
  105. package/dist/sharethroughAnalyticsAdapter.js +1 -1
  106. package/dist/sharethroughBidAdapter.js +1 -1
  107. package/dist/shinezBidAdapter.js +1 -1
  108. package/dist/smaatoBidAdapter.js +1 -1
  109. package/dist/smartadserverBidAdapter.js +1 -1
  110. package/dist/smartxBidAdapter.js +1 -1
  111. package/dist/smartyadsBidAdapter.js +1 -1
  112. package/dist/smilewantedBidAdapter.js +1 -1
  113. package/dist/snigelBidAdapter.js +1 -1
  114. package/dist/sonobiBidAdapter.js +1 -1
  115. package/dist/sovrnAnalyticsAdapter.js +1 -1
  116. package/dist/sovrnBidAdapter.js +1 -1
  117. package/dist/sspBCBidAdapter.js +1 -1
  118. package/dist/stvBidAdapter.js +1 -1
  119. package/dist/sublimeBidAdapter.js +1 -1
  120. package/dist/targetVideoBidAdapter.js +1 -1
  121. package/dist/teadsBidAdapter.js +1 -1
  122. package/dist/topicsFpdModule.js +1 -1
  123. package/dist/trionBidAdapter.js +1 -1
  124. package/dist/tripleliftBidAdapter.js +1 -1
  125. package/dist/ttdBidAdapter.js +1 -1
  126. package/dist/ucfunnelAnalyticsAdapter.js +1 -1
  127. package/dist/uid2IdSystem.js +1 -1
  128. package/dist/underdogmediaBidAdapter.js +1 -1
  129. package/dist/undertoneBidAdapter.js +1 -1
  130. package/dist/vidazooBidAdapter.js +1 -1
  131. package/dist/videobyteBidAdapter.js +1 -1
  132. package/dist/visxBidAdapter.js +1 -1
  133. package/dist/vuukleBidAdapter.js +1 -1
  134. package/dist/widespaceBidAdapter.js +1 -1
  135. package/dist/winrBidAdapter.js +1 -1
  136. package/dist/yahoosspBidAdapter.js +1 -1
  137. package/dist/yieldmoBidAdapter.js +1 -1
  138. package/dist/yieldoneAnalyticsAdapter.js +1 -1
  139. package/integrationExamples/topics/topics-server.js +72 -0
  140. package/modules/.submodules.json +2 -1
  141. package/modules/a1MediaRtdProvider.js +1 -1
  142. package/modules/admaticBidAdapter.js +5 -0
  143. package/modules/adqueryBidAdapter.js +23 -21
  144. package/modules/adqueryIdSystem.js +45 -30
  145. package/modules/adrelevantisBidAdapter.js +2 -0
  146. package/modules/bidViewability.js +7 -0
  147. package/modules/bidViewability.md +9 -8
  148. package/modules/brandmetricsRtdProvider.js +30 -27
  149. package/modules/criteoBidAdapter.js +66 -43
  150. package/modules/geoedgeRtdProvider.js +43 -13
  151. package/modules/geoedgeRtdProvider.md +2 -1
  152. package/modules/liveIntentIdSystem.js +16 -1
  153. package/modules/nativoBidAdapter.js +21 -3
  154. package/modules/onetagBidAdapter.js +3 -0
  155. package/modules/operaadsBidAdapter.js +5 -0
  156. package/modules/operaadsBidAdapter.md +5 -5
  157. package/modules/operaadsIdSystem.js +106 -0
  158. package/modules/operaadsIdSystem.md +52 -0
  159. package/modules/oxxionAnalyticsAdapter.js +22 -5
  160. package/modules/rubiconBidAdapter.js +2 -2
  161. package/modules/smartyadsBidAdapter.js +18 -1
  162. package/modules/snigelBidAdapter.js +69 -16
  163. package/modules/snigelBidAdapter.md +9 -3
  164. package/modules/topicsFpdModule.js +35 -9
  165. package/modules/visxBidAdapter.js +51 -1
  166. package/package.json +2 -2
  167. package/src/adloader.js +1 -0
  168. package/src/native.js +2 -2
  169. package/test/spec/modules/admaticBidAdapter_spec.js +5 -0
  170. package/test/spec/modules/adqueryIdSystem_spec.js +13 -24
  171. package/test/spec/modules/bidViewability_spec.js +32 -1
  172. package/test/spec/modules/brandmetricsRtdProvider_spec.js +6 -0
  173. package/test/spec/modules/criteoBidAdapter_spec.js +228 -0
  174. package/test/spec/modules/eids_spec.js +48 -0
  175. package/test/spec/modules/geoedgeRtdProvider_spec.js +44 -24
  176. package/test/spec/modules/liveIntentIdMinimalSystem_spec.js +5 -0
  177. package/test/spec/modules/liveIntentIdSystem_spec.js +5 -0
  178. package/test/spec/modules/nativoBidAdapter_spec.js +6 -1
  179. package/test/spec/modules/onetagBidAdapter_spec.js +69 -0
  180. package/test/spec/modules/operaadsIdSystem_spec.js +53 -0
  181. package/test/spec/modules/oxxionAnalyticsAdapter_spec.js +6 -1
  182. package/test/spec/modules/rubiconBidAdapter_spec.js +24 -0
  183. package/test/spec/modules/smartyadsBidAdapter_spec.js +49 -0
  184. package/test/spec/modules/snigelBidAdapter_spec.js +57 -6
  185. package/test/spec/modules/topicsFpdModule_spec.js +102 -1
  186. package/test/spec/modules/visxBidAdapter_spec.js +151 -1
  187. package/test/spec/native_spec.js +5 -3
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[40155],{33390:function(e,t,r){var i=r(93324),n=r(89062),a=r(4942),o=r(71002),d=r(78640),s=r(20265),p=r(64358),u=r(96475),c=r(24679),l=r(3193),f=r(5644),m=r(15164),g=r(52021),v=r(34614),b=r(14699),y=r(90154),x=r(35706);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,d=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){d=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(d)throw a}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var Z="ix",C="roundel",S=[c.Mk,c.pX,c.B5],U=[144,144],E={JPY:1},P="p",T="x",k=1,D=2,j=3,A=4,B=5,F=9,N={SITE:["id","name","domain","cat","sectioncat","pagecat","page","ref","search","mobile","privacypolicy","publisher","content","keywords","ext"],USER:["id","buyeruid","yob","gender","keywords","customdata","geo","data","ext"]},_={"liveramp.com":"idl","netid.de":"NETID","neustar.biz":"fabrickId","zeotap.com":"zeotapIdPlus","uidapi.com":"UID2","adserver.org":"TDID","id5-sync.com":"","crwdcntrl.net":"","epsilon.com":"","audigent.com":"","pubcid.org":"","utiq.com":"","intimatemerger.com":"","33across.com":"","liveintent.indexexchange.com":""},R=["britepoolid","lipbid","criteoId","merkleId","parrableId","connectid","tapadId","quantcastId","pubProvidedId"],X=["mimes","minduration","maxduration"],z=["mimes","minduration","maxduration","protocols","protocol","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext","playerSize","w","h","plcmt"],L="ixdiag",q="".concat(Z,"_features"),M=!1,W=(0,m.df)({bidderCode:Z}),G={REQUESTED_FEATURE_TOGGLES:["pbjs_enable_multiformat"],featureToggles:{},isFeatureEnabled:function(e){return(0,s.Z)(this.featureToggles,"features.".concat(e,".activated"),!1)},getFeatureToggles:function(){if(W.localStorageIsEnabled()){var e=(0,p.safeJSONParse)(W.getDataFromLocalStorage(q));(0,s.Z)(e,"expiry")&&e.expiry>=(new Date).getTime()?this.featureToggles=e:this.clearFeatureToggles()}},setFeatureToggles:function(e){var t=e.body,r=new Date,i=(0,s.Z)(t,"ext.features");i&&(this.featureToggles={expiry:r.setHours(r.getHours()+1),features:i},W.localStorageIsEnabled()&&W.setDataInLocalStorage(q,JSON.stringify(this.featureToggles)))},clearFeatureToggles:function(){this.featureToggles={},W.localStorageIsEnabled()&&W.removeDataFromLocalStorage(q)}},J=0,V="",H="",Q=!1,$=2;function Y(e){var t=K(e,c.pX),r=(0,s.Z)(e,"mediaTypes.video"),i=(0,s.Z)(e,"params.video");if(ne(r,i).length)return{};for(var n in t.video=i?(0,p.deepClone)(e.params.video):{},t.ext.tid=(0,s.Z)(e,"ortb2Imp.ext.tid"),function(e,t){if((0,s.Z)(t,"mediaTypes.video.context")===y.gZ){var r=(0,s.Z)(t,"mediaTypes.video.renderer");if(r||(r=(0,s.Z)(t,"renderer")),(0,s.Z)(t,"schain",!1))e.displaymanager="pbjs_wrapper";else if(r&&"object"===(0,o.Z)(r)){if(void 0!==r.url){var i="";try{i=new URL(r.url).hostname}catch(e){return}i.includes("js-sec.indexww")?e.displaymanager="ix":e.displaymanager=r.url}}else e.displaymanager="ix"}}(t,e),ce(t,e),r)-1===z.indexOf(n)||t.video.hasOwnProperty(n)||(t.video[n]=r[n]);if(t.video.minduration>t.video.maxduration)return(0,p.logError)("IX Bid Adapter: video minduration [".concat(t.video.minduration,"] cannot be greater than video maxduration [").concat(t.video.maxduration,"]"),{bidder:Z,code:F}),{};var a=i&&i.context||r&&r.context;if(function(e){e.video.hasOwnProperty("plcmt")&&(!(0,p.isInteger)(e.video.plcmt)||e.video.plcmt<1||e.video.plcmt>4)&&((0,p.logWarn)("IX Bid Adapter: video.plcmt [".concat(e.video.plcmt,"] must be an integer between 1-4 inclusive")),delete e.video.plcmt)}(t),a&&!t.video.hasOwnProperty("placement")&&(a===y.LD?t.video.placement=1:a===y.gZ?(0,s.Z)(i,"playerConfig.floatOnScroll")?t.video.placement=5:(t.video.placement=3,Q=!0):(0,p.logWarn)("IX Bid Adapter: Video context '".concat(a,"' is not supported"))),!t.video.w||!t.video.h){var d=ae((0,s.Z)(t,"video.playerSize"))||ae((0,s.Z)(e,"params.size"));if(!d)return(0,p.logWarn)("IX Bid Adapter: Video size is missing in [mediaTypes.video]"),{};t.video.w=d[0],t.video.h=d[1]}return ee(e,t,c.pX),t}function K(e,t){var r={};if(r.id=e.bidId,r.ext={},(0,s.Z)(e,"params.".concat(t,".siteId"))&&!isNaN(Number(e.params[t].siteId)))switch(t){case c.Mk:r.ext.siteID=e.params.banner.siteId.toString();break;case c.pX:r.ext.siteID=e.params.video.siteId.toString();break;case c.B5:r.ext.siteID=e.params.native.siteId.toString()}else r.ext.siteID=e.params.siteId.toString();return!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id||(r.ext.sid=String(e.params.id)),r}function ee(e,t,r){var i=null,n=null;if(e.params.bidFloor&&e.params.bidFloorCur&&(i={floor:e.params.bidFloor,currency:e.params.bidFloorCur}),(0,p.isFn)(e.getFloor)){var a="*",o="*";if(r&&(0,p.contains)(S,r)){var d=t[r];a=r,o=[d.w,d.h]}try{n=e.getFloor({mediaType:a,size:o})}catch(e){(0,p.logWarn)("priceFloors module call getFloor failed, error : ",e)}}var s=!1;n?(t.bidfloor=n.floor,t.bidfloorcur=n.currency,t.ext.fl=P,s=!0):i&&(t.bidfloor=i.floor,t.bidfloorcur=i.currency,t.ext.fl=T,s=!0),s&&(r==c.Mk?((0,u.N)(t,"banner.ext.bidfloor",t.bidfloor),(0,u.N)(t,"banner.ext.fl",t.ext.fl)):r==c.pX?((0,u.N)(t,"video.ext.bidfloor",t.bidfloor),(0,u.N)(t,"video.ext.fl",t.ext.fl)):((0,u.N)(t,"native.ext.bidfloor",t.bidfloor),(0,u.N)(t,"native.ext.fl",t.ext.fl)))}function te(e,t,r){var i={},n=!(!(0,s.Z)(e,"exp")||!(0,p.isInteger)(e.exp)),a=(0,s.Z)(e,"dealid")||(0,s.Z)(e,"ext.dealid");E.hasOwnProperty(t)?i.cpm=e.price/E[t]:i.cpm=e.price/100,i.requestId=e.impid,a&&(i.dealId=a),i.netRevenue=true,i.currency=t,i.creativeId=e.hasOwnProperty("crid")?e.crid:"-",e.mtype!=$||(!e.ext||e.ext.vasturl)&&e.ext?e.ext&&e.ext.vasturl&&(i.vastUrl=e.ext.vasturl):i.vastXml=e.adm;var o=null;if("string"==typeof e.adm&&"{"===e.adm[0]&&"}"===e.adm[e.adm.length-1])try{o=JSON.parse(e.adm)}catch(e){(0,p.logWarn)("adm looks like JSON but failed to parse: ",e)}return e.ext&&e.ext.vasturl||e.mtype==$?(i.width=r.video.w,i.height=r.video.h,i.mediaType=c.pX,i.mediaTypes=r.mediaTypes,i.ttl=n?e.exp:3600):o&&o.native?(i.native={ortb:o.native},i.width=e.w?e.w:1,i.height=e.h?e.h:1,i.mediaType=c.B5,i.ttl=n?e.exp:3600):(i.ad=e.adm,i.width=e.w,i.height=e.h,i.mediaType=c.Mk,i.ttl=n?e.exp:300),i.meta={},i.meta.networkId=(0,s.Z)(e,"ext.dspid"),i.meta.brandId=(0,s.Z)(e,"ext.advbrandid"),i.meta.brandName=(0,s.Z)(e,"ext.advbrand"),e.adomain&&e.adomain.length>0&&(i.meta.advertiserDomains=e.adomain),i}function re(e){return Array.isArray(e)&&2===e.length&&(0,p.isInteger)(e[0])&&(0,p.isInteger)(e[1])}function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(re(e))return e[0]===t[0]&&e[1]===t[1];for(var r=0;r<e.length;r++)if(e[r][0]===t[0]&&e[r][1]===t[1])return!0;return!1}function ne(e,t){var r=[];e||(0,p.logWarn)("IX Bid Adapter: mediaTypes.video is the preferred location for video params in ad unit");var i,n=O(X);try{for(n.s();!(i=n.n()).done;){var a=i.value,o=e&&e.hasOwnProperty(a),d=t&&t.hasOwnProperty(a);o||d||r.push("IX Bid Adapter: ".concat(a," is not included in either the adunit or params level"))}}catch(e){n.e(e)}finally{n.f()}var s=e&&e.hasOwnProperty("protocol"),u=e&&e.hasOwnProperty("protocols"),c=t&&t.hasOwnProperty("protocol"),l=t&&t.hasOwnProperty("protocols");return s||u||c||l||r.push("IX Bid Adapter: protocol/protcols is not included in either the adunit or params level"),r}function ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return re(e)?e:!!re(e[0])&&e[0]}function oe(e,t,r){if(e)return I(I({},(0,v.sE)(r,(function(t){return t.bidId===e}))),(0,v.sE)(t,(function(t){return t.id===e})))}function de(e,t,r,i){var n="https://htlb.casalemedia.com/openrtb/pbjs",a=function(e){var t=[],r={};if((0,p.isArray)(e)){var i,n=O(e);try{for(n.s();!(i=n.n()).done;){var a=i.value;_.hasOwnProperty(a.source)&&(0,s.Z)(a,"uids.0")&&(r[a.source]=!0,""!=_[a.source]&&(a.uids[0].ext={rtiPartner:_[a.source]}),delete a.uids[0].atype,t.push(a))}}catch(e){n.e(e)}finally{n.f()}}return{toSend:t,seenSources:r}}((0,s.Z)(e,"0.userIdAsEids")),d=a.toSend;if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo&&function(e,t){var r=window.headertag.getIdentityInfo();if(r&&"object"===(0,o.Z)(r))for(var i in r)if(r.hasOwnProperty(i)){var n=r[i];!n.responsePending&&n.data&&"object"===(0,o.Z)(n.data)&&Object.keys(n.data).length&&!t.seenSources[n.data.source]&&e.push(n.data)}}(d,a),t&&t.bidderCode===C&&!a.seenSources["liveramp.com"])return[];var c=[],f=function(e){var t={};return t.id=e[0].bidderRequestId.toString(),t.site={},t.ext={},t.ext.source="prebid",t.ext.ixdiag={},t.ext.ixdiag.ls=W.localStorageIsEnabled(),t.imp=[],t.at=1,t}(e);f=function(e,t){t.length>0&&(e.ext.features={},t.forEach((function(t){e.ext.features[t]={activated:G.isFeatureEnabled(t)}})));return e}(f,G.REQUESTED_FEATURE_TOGGLES);var m=function(e){for(var t=e.map((function(e){return e.adUnitCode})).filter((function(e,t,r){return r.indexOf(e)===t})),r={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"8.7.0",userIds:fe(e[0]),url:window.location.href.split("?")[0],vpd:Q},i=function(i){a=e.filter((function(e){return e.adUnitCode===t[i]}))[0],(0,s.Z)(a,"mediaTypes")&&(Object.keys(a.mediaTypes).length>1&&r.mfu++,(0,s.Z)(a,"mediaTypes.native")&&r.nu++,(0,s.Z)(a,"mediaTypes.banner")&&r.bu++,"outstream"===(0,s.Z)(a,"mediaTypes.video.context")&&(r.ou++,Oe(a)&&(r.ren=!0)),"instream"===(0,s.Z)(a,"mediaTypes.video.context")&&r.iu++,r.allu++)},n=0;n<t.length;n++){var a;i(n)}return r}(e);for(var g in m)f.ext.ixdiag[g]=m[g];f=function(e,t,r,i,n){var a,o,d=(0,s.Z)(t,"timeout");d&&(e.ext.ixdiag.tmax=d);l.vc.getConfig("userSync")&&(e.ext.ixdiag.syncsPerBidder=l.vc.getConfig("userSync").syncsPerBidder);var u=function(){if(!W.localStorageIsEnabled())return;var e,t={};try{e=JSON.parse(W.getDataFromLocalStorage(L)||"{}")}catch(e){return(0,p.logError)("ix can not read ixdiag from localStorage."),null}return Object.keys(e).forEach((function(r){Object.keys(e[r]).forEach((function(i){"number"==typeof e[r][i]&&(t[i]=t[i]?t[i]+e[r][i]:e[r][i])}))})),t}();(0,p.isEmpty)(u)||(e.ext.ixdiag.err=u);e.ext.ixdiag.imps=Object.keys(r).length,e.source={tid:null==t||null===(a=t.ortb2)||void 0===a||null===(o=a.source)||void 0===o?void 0:o.tid},i[0].schain&&(e.source.ext={},e.source.ext.schain=i[0].schain);n.length>0&&(e.user={},e.user.eids=n);document.referrer&&""!==document.referrer&&(e.site.ref=document.referrer);return e}(f,t,r,e,d),f=function(e,t){if(t){t.gdprConsent&&((V=t.gdprConsent).hasOwnProperty("gdprApplies")&&(e.regs={ext:{gdpr:V.gdprApplies?1:0}}),V.hasOwnProperty("consentString")&&(e.user=e.user||{},e.user.ext={consent:V.consentString||""},V.hasOwnProperty("addtlConsent")&&V.addtlConsent&&(e.user.ext.consented_providers_settings={addtl_consent:V.addtlConsent}))),t.uspConsent&&((0,u.N)(e,"regs.ext.us_privacy",t.uspConsent),H=t.uspConsent);var r=(0,s.Z)(t,"refererInfo.page");r&&(e.site.page=r),t.gppConsent&&((0,u.N)(e,"regs.gpp",t.gppConsent.gppString),(0,u.N)(e,"regs.gpp_sid",t.gppConsent.applicableSections))}l.vc.getConfig("coppa")&&(0,u.N)(e,"regs.coppa",1);return e}(f,t);var v={};J=e[0].params.siteId,v.s=J;for(var b=Object.keys(r),y=!1,x=0;x<b.length&&!(c.length>=4);x++){f=se(r,b,f,x);var h=(0,s.Z)(t,"ortb2")||{},w=I({},h.site||h.context);w.page=pe(t);var Z=I({},h.user);(0,p.isEmpty)(h)||y||((f=ue(t,f,h,w,Z)).site=(0,p.mergeDeep)({},f.site,w),f.user=(0,p.mergeDeep)({},f.user,Z),y=!0),f=le(r,f,b,x,v,n);var S=x===b.length-1;f=Se(f=Ce(f=Ee(f))),S&&(c.push({method:"POST",url:n+"?s="+J,data:(0,p.deepClone)(f),option:{contentType:"text/plain"},validBidRequests:e}),f.imp=[],y=!1)}return c}function se(e,t,r,i){var a=e[t[i]],o=a.missingImps,d=void 0===o?[]:o,l=a.ixImps,f={ixImps:void 0===l?[]:l,missingBannerImpressions:d},m=Object.keys(f).map((function(e){return f[e]})).filter((function(e){return Array.isArray(e)})).reduce((function(e,t){return e.concat.apply(e,(0,n.Z)(t))}),[]),g=e[t[i]].gpid,v=e[t[i]].dfp_ad_unit_code,b=e[t[i]].tid,y=e[t[i]].sid,x=m.filter((function(e){return c.Mk in e})),h=m.filter((function(e){return!(c.Mk in e)}));if(x.length>0){var I=x.reduce((function(e,t){return e[t.id]||(e[t.id]=[]),e[t.id].push(t),e}),{});for(var O in I){for(var w=I[O],Z=w[0],C={id:Z.id,banner:{topframe:Z.banner.topframe,format:w.map((function(e){var t=e.banner;return{w:t.w,h:t.h,ext:e.ext}}))}},S=0;S<C.banner.format.length;S++)null!=C.banner.format[S].ext&&null!=C.banner.format[S].ext.sid&&delete C.banner.format[S].ext.sid,"bidfloor"in w[S]&&(C.banner.format[S].ext.bidfloor=w[S].bidfloor);var U=e[t[i]].pos;(0,p.isInteger)(U)&&(C.banner.pos=U),(v||g||b||y)&&(C.ext={},C.ext.dfp_ad_unit_code=v,C.ext.gpid=g,C.ext.tid=b,C.ext.sid=y),"bidfloor"in w[0]&&(C.bidfloor=w[0].bidfloor),"bidfloorcur"in w[0]&&(C.bidfloorcur=w[0].bidfloorcur);var E=e[t[i]].adUnitFPD;E&&(0,u.N)(C,"ext.data",E),r.imp.push(C)}}return h.length>0&&h.forEach((function(e){if((0,u.N)(e,"ext.gpid",g),r.imp.length>0){var t=!1;r.imp.forEach((function(i,n){e.id===i.id&&c.pX in e?(i.video=e.video,i.video.ext=Object.assign({},e.video.ext,e.ext),(0,s.Z)(i,"video.ext.bidfloor",!1)&&(0,s.Z)(i,"bidfloor",!1)&&i.video.ext.bidfloor<i.bidfloor&&(i.bidfloor=i.video.ext.bidfloor),!(0,s.Z)(i,"ext.siteID",!1)&&(0,s.Z)(e,"video.ext.siteID")&&((0,u.N)(i,"ext.siteID",e.video.ext.siteID),(0,u.N)(r,"ext.ixdiag.usid",!0)),t=!0):e.id===i.id&&c.B5 in e&&(i.native=e.native,i.native.ext=Object.assign({},e.native.ext,e.ext),(0,s.Z)(i,"native.ext.bidfloor",!1)&&(0,s.Z)(i,"bidfloor",!1)&&i.native.ext.bidfloor<i.bidfloor&&(i.bidfloor=i.native.ext.bidfloor),!(0,s.Z)(i,"ext.siteID",!1)&&(0,s.Z)(e,"native.ext.siteID",!1)&&((0,u.N)(i,"ext.siteID",e.native.ext.siteID),(0,u.N)(r,"ext.ixdiag.usid",!0)),t=!0)})),t||r.imp.push(e)}else r.imp.push(e)})),r}function pe(e){var t=e&&e.bidderCode||"ix",r=l.vc.getConfig(t),n="";if((n=(0,s.Z)(e,"ortb2.site.page")?e.ortb2.site.page:(0,s.Z)(e,"refererInfo.page"),r)&&"object"===(0,o.Z)(r.firstPartyData))return function(e,t,r){var n;try{n=new URL(t)}catch(r){(0,p.logWarn)("IX Bid Adapter: Invalid URL set in ortb2.site.page: ".concat(t,". Using referer URL instead.")),n=new URL((0,s.Z)(e,"refererInfo.page"))}for(var a=new URLSearchParams(n.search),o=0,d=Object.entries(r);o<d.length;o++){var u=(0,i.Z)(d[o],2),c=u[0],l=u[1];a.has(c)||a.append(c,l)}return n.search=a.toString(),n.toString()}(e,n,r.firstPartyData);return n}function ue(e,t,r,i,n){if(t.ext.ixdiag.fpd=!0,Object.keys(i).forEach((function(e){-1===N.SITE.indexOf(e)&&delete i[e]})),Object.keys(n).forEach((function(e){-1===N.USER.indexOf(e)&&delete n[e]})),r.device){var a=I({},r.device.sua);(0,p.isEmpty)(a)||(0,u.N)(t,"device.sua",a)}return r.hasOwnProperty("regs")&&!e.gppConsent&&(r.regs.hasOwnProperty("gpp")&&"string"==typeof r.regs.gpp&&(0,u.N)(t,"regs.gpp",r.regs.gpp),r.regs.hasOwnProperty("gpp_sid")&&Array.isArray(r.regs.gpp_sid)&&(0,u.N)(t,"regs.gpp_sid",r.regs.gpp_sid)),t}function ce(e,t){var r=(0,s.Z)(t,"ortb2Imp.ext.data");r&&(0,u.N)(e,"ext.data",r)}function le(e,t,r,i,n,a){var o=e[r[i]].pbadslot,d=e[r[i]].tagId,s=e[r[i]].adUnitCode,p=e[r[i]].divId;return(o||d||s||p)&&(t.ext.ixdiag.pbadslot=o,t.ext.ixdiag.tagid=d,t.ext.ixdiag.adunitcode=s,t.ext.ixdiag.divId=p),t}function fe(e){var t=e.userId||{};return R.filter((function(e){return t[e]}))}function me(e,t){if(t)for(var r=0;r<e.length;r++){var i=e[r];if(t[0]===i[0]&&t[1]===i[1]){e.splice(r,1);break}}}function ge(e,t){var r=function(e){var t=K(e,c.B5),r=e.nativeOrtbRequest;return r.eventtrackers=[{event:1,methods:[1,2]}],r.privacy=1,t.native={request:JSON.stringify(r),ver:"1.2"},t.ext.tid=(0,s.Z)(e,"ortb2Imp.ext.tid"),ce(t,e),ee(e,t,c.B5),t}(e);if(0!=Object.keys(r).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(r),t[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId");var i=e.adUnitCode,n=document.getElementById(i)?i:(0,p.getGptSlotInfoForAdUnitCode)(i).divId;t[e.adUnitCode].adUnitCode=i,t[e.adUnitCode].divId=n}}function ve(e,t){var r=Y(e);if(0!=Object.keys(r).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(r),t[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId");var i=e.adUnitCode,n=document.getElementById(i)?i:(0,p.getGptSlotInfoForAdUnitCode)(i).divId;t[e.adUnitCode].adUnitCode=i,t[e.adUnitCode].divId=n}}function be(e,t,r){var i=function(e){var t=K(e,c.Mk);t.banner={};var r=(0,s.Z)(e,"params.size");return r&&(t.banner.w=r[0],t.banner.h=r[1]),t.banner.topframe=(0,p.inIframe)()?0:1,ee(e,t,c.Mk),t}(e),n=ie((0,s.Z)(e,"mediaTypes.banner.sizes"),(0,s.Z)(e,"params.size"));r.hasOwnProperty(e.adUnitCode)||(r[e.adUnitCode]={}),r[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),r[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),r[e.adUnitCode].tid=(0,s.Z)(e,"ortb2Imp.ext.tid"),r[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),r[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId"),r[e.adUnitCode].pos=(0,s.Z)(e,"mediaTypes.banner.pos");var a=(0,s.Z)(e,"ortb2Imp.ext.data");a&&(r[e.adUnitCode].adUnitFPD=a);var o=(0,s.Z)(e,"params.id");!o||"string"!=typeof o&&"number"!=typeof o||(r[e.adUnitCode].sid=String(o));var d=e.adUnitCode,u=document.getElementById(d)?d:(0,p.getGptSlotInfoForAdUnitCode)(d).divId;r[e.adUnitCode].adUnitCode=d,r[e.adUnitCode].divId=u,n&&(r[e.adUnitCode].hasOwnProperty("ixImps")||(r[e.adUnitCode].ixImps=[]),r[e.adUnitCode].ixImps.push(i)),function(e,t,r){if(t.hasOwnProperty(e.adUnitCode)){var i=[];t[e.adUnitCode].hasOwnProperty("missingSizes")&&(i=t[e.adUnitCode].missingSizes),me(i,e.params.size),t[e.adUnitCode].missingSizes=i}else if((0,s.Z)(e,"mediaTypes.banner.sizes")){var n=(0,p.deepClone)(e.mediaTypes.banner.sizes);me(n,e.params.size);var a={missingSizes:n,impression:r};t[e.adUnitCode]=a}}(e,t,i)}function ye(e,t,r){var i=(0,p.deepClone)(t);return i.banner.w=r[0],i.banner.h=r[1],ee(e,i,c.Mk),i}function xe(e){"ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===Z&&function(e){if(W.localStorageIsEnabled()){var t;try{t=JSON.parse(W.getDataFromLocalStorage(L)||"{}")}catch(e){(0,p.logWarn)("ix can not read ixdiag from localStorage.")}var r=new Date;if(Object.keys(t).map((function(e){var i=new Date(e);i.setDate(i.getDate()+7)-r<0&&delete t[e]})),"ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===Z){var i=r.toISOString().slice(0,10),n=e.arguments[1].code;n&&(t[i]=t[i]||{},Number(t[i][n])||(t[i][n]=0),t[i][n]++)}W.setDataInLocalStorage(L,JSON.stringify(t))}}(e)}function he(e){e.renderer.push((function(){var t=e.adUnitCode,r=document.getElementById(t)?t:(0,p.getGptSlotInfoForAdUnitCode)(t).divId;r?window.createIXPlayer(r,e):(0,p.logWarn)("IX Bid Adapter: adUnitCode: ".concat(r," not found on page."))}))}function Ie(e,t){var r=x.Th.install({id:e,url:t,loaded:!1});try{r.setRender(he)}catch(e){return(0,p.logWarn)("Prebid Error calling setRender on renderer",e),null}return t?r:((0,p.logWarn)("Outstream renderer URL not found"),null)}function Oe(e){if("outstream"!==(0,s.Z)(e,"mediaTypes.video.context"))return!1;var t=(0,s.Z)(e,"mediaTypes.video.renderer");return t||(t=(0,s.Z)(e,"renderer")),!!("object"!==(0,o.Z)(t)||!t.url||!t.render)||t.backupOnly}var we={code:Z,gvlid:10,aliases:[{code:C,gvlid:10,skipPbsAliasing:!1}],supportedMediaTypes:S,isBidRequestValid:function(e){M||(g.on(f.FP.AUCTION_DEBUG,xe),g.on(f.FP.AD_RENDER_FAILED,xe),M=!0);var t,r,i=(0,s.Z)(e,"params.video"),n=(0,s.Z)(e,"params.size"),a=(0,s.Z)(e,"mediaTypes.banner.sizes"),o=(0,s.Z)(e,"mediaTypes.video"),d=(0,s.Z)(e,"mediaTypes.video.playerSize"),u=e.params.hasOwnProperty("bidFloor"),c=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!(0,p.contains)(S,e.mediaType))return(0,p.logWarn)("IX Bid Adapter: media type is not supported."),!1;if((0,s.Z)(e,"mediaTypes.banner")&&!a)return!1;if(n){var l=ae(n);if(!l)return(0,p.logError)("IX Bid Adapter: size has invalid format.",{bidder:Z,code:k}),!1;if(!ie(e.sizes,l)&&!ie(d,l)&&!ie(a,l))return(0,p.logError)("IX Bid Adapter: bid size is not included in ad unit sizes or player size.",{bidder:Z,code:D}),!1}if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return(0,p.logError)("IX Bid Adapter: siteId must be string or number type.",{bidder:Z,code:A}),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return(0,p.logError)("IX Bid Adapter: siteId must valid value",{bidder:Z,code:A}),!1;if((u||c)&&!(u&&c&&(t=e.params.bidFloor,r=e.params.bidFloorCur,Boolean("number"==typeof t&&"string"==typeof r&&r.match(/^[A-Z]{3}$/)))))return(0,p.logError)("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format.",{bidder:Z,code:B}),!1;if(o&&i){var m=Y(e).video,v=ne(o,i);if((0,s.Z)(e,"mediaTypes.video.context")===y.gZ&&Oe(e)&&m){var b=[(0,s.Z)(m,"w"),(0,s.Z)(m,"h")];if(!(b[0]>=U[0]&&b[1]>=U[1]))return(0,p.logError)("IX Bid Adapter: ".concat(b," is an invalid size for IX outstream renderer")),!1}if(v.length)return v.forEach((function(e){(0,p.logError)(e,{bidder:Z,code:j})})),!1}return function(e){return void 0===(0,s.Z)(e,"mediaTypes.native")||e.nativeOrtbRequest&&Array.isArray(e.nativeOrtbRequest.assets)&&e.nativeOrtbRequest.assets.length>0}(e)},buildRequests:function(e,t){var r=[],i={},a={},o={},d={};for(var u in G.getFeatureToggles(),e.forEach((function(e){var t=Object.keys((0,s.Z)(e,"mediaTypes",{}));for(var r in t)switch(t[r]){case c.Mk:be(e,d,i);break;case c.pX:ve(e,a);break;case c.B5:ge(e,o);break;default:(0,p.logWarn)("IX Bid Adapter: ad unit mediaTypes ".concat(r," is not supported"))}})),d)if(d.hasOwnProperty(u)){var l=d[u].missingSizes;i.hasOwnProperty(u)||(i[u]={}),i[u].hasOwnProperty("missingImps")||(i[u].missingImps=[],i[u].missingCount=0);for(var f=d[u].impression,m=0;m<l.length;m++){var g=ye(e[0],f,l[m]);i[u].missingImps.push(g),i[u].missingCount++}}var v,b=[];return Object.keys(i).length>0&&b.push(i),Object.keys(a).length>0&&b.push(a),Object.keys(o).length>0&&b.push(o),G.isFeatureEnabled("pbjs_enable_multiformat")?r.push.apply(r,(0,n.Z)(de(e,t,(v={},b.forEach((function(e){Object.keys(e).forEach((function(t){Object.keys(v).includes(t)?v[t].hasOwnProperty("ixImps")&&e[t].hasOwnProperty("ixImps")?v[t].ixImps=[].concat((0,n.Z)(v[t].ixImps),(0,n.Z)(e[t].ixImps)):v[t].hasOwnProperty("missingImps")&&e[t].hasOwnProperty("missingImps")?v[t].missingImps=[].concat((0,n.Z)(v[t].missingImps),(0,n.Z)(e[t].missingImps)):e[t].hasOwnProperty("ixImps")?v[t].ixImps=e[t].ixImps:e[t].hasOwnProperty("missingImps")&&(v[t].missingImps=e[t].missingImps):v[t]=e[t]}))})),v)))):(Object.keys(i).length>0&&r.push.apply(r,(0,n.Z)(de(e,t,i))),Object.keys(a).length>0&&r.push.apply(r,(0,n.Z)(de(e,t,a))),Object.keys(o).length>0&&r.push.apply(r,(0,n.Z)(de(e,t,o)))),r},interpretResponse:function(e,t){var r=[],i=null;if(!e.hasOwnProperty("body")||!e.body.hasOwnProperty("seatbid"))return G.setFeatureToggles(e),r;for(var n=e.body,a=n.seatbid,o=0;o<a.length;o++)if(a[o].hasOwnProperty("bid")){for(var d=a[o].bid,u=t.data,l=0;l<d.length;l++){var f=oe(d[l].impid,u.imp,t.validBidRequests);if((i=te(d[l],n.cur,f)).mediaType===c.pX&&Oe(f)){var m=(0,s.Z)(n,"ext.videoplayerurl");if(i.renderer=Ie(d[l].bidId,m),!i.renderer)continue}r.push(i)}if((0,s.Z)(u,"ext.ixdiag.err")&&W.localStorageIsEnabled())try{W.removeDataFromLocalStorage(L)}catch(e){(0,p.logError)("ix can not clear ixdiag from localStorage.")}}return G.setFeatureToggles(e),r},transformBidParams:function(e,t){return(0,p.convertTypes)({siteID:"number"},e)},getUserSyncs:function(e,t){var r=[],i=null;if(t.length>0&&(i=(0,s.Z)(t[0],"body.ext.publishersyncsperbidderoverride")),void 0!==i&&0==i)return[];if(e.iframeEnabled)r.push({type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"});else{var n=null;l.vc.getConfig("userSync")&&(n=l.vc.getConfig("userSync").syncsPerBidder),0===n&&(n=i),n=i&&(0===n||n)?i>n?n:i:1;for(var a=0;a<n;a++)r.push({type:"image",url:Ze(n,a)})}return r}};function Ze(e,t){var r="",i="0";return V&&V.hasOwnProperty("gdprApplies")&&(i=V.gdprApplies?"1":"0"),V&&V.hasOwnProperty("consentString")&&(r=V.consentString||""),"https://dsum.casalemedia.com/pbusermatch?origin=prebid&site_id="+J.toString()+"&p="+e.toString()+"&i="+t.toString()+"&gdpr="+i+"&gdpr_consent="+r+"&us_privacy="+(H||"")}function Ce(e){return e.imp.forEach((function(t,r){var i=t.ext;if(null==i)return e;Ue(t)<2||Object.keys(i).forEach((function(n){if(c.Mk in t){var a=t.banner.ext;if(void 0!==a&&void 0!==a[n]&&a[n]==i[n]&&delete e.imp[r].banner.ext[n],void 0!==t.banner.format)for(var o=0;o<t.banner.format.length;o++)null!=t.banner.format[o].ext&&null!=t.banner.format[o].ext[n]&&t.banner.format[o].ext[n]==i[n]&&delete e.imp[r].banner.format[o].ext[n]}if(c.pX in t){var d=t.video.ext;void 0!==d&&void 0!==d[n]&&d[n]==i[n]&&delete e.imp[r].video.ext[n]}if(c.B5 in t){var s=t.native.ext;void 0!==s&&void 0!==s[n]&&s[n]==i[n]&&delete e.imp[r].native.ext[n]}}))})),e}function Se(e){return e.imp.forEach((function(t,r){if(null==t.ext)return e;if(!(Ue(t)<2)){if(c.Mk in t){var i=t.banner.ext;if(void 0!==i&&void 0!==i.siteID&&delete e.imp[r].banner.ext.siteID,void 0!==t.banner.format)for(var n=0;n<t.banner.format.length;n++)void 0!==t.banner.format[n].ext&&void 0!==t.banner.format[n].ext.siteID&&((0,u.N)(e.imp[r],"ext.siteID",t.banner.format[n].ext.siteID),(0,u.N)(e,"ext.ixdiag.usid",!0),delete e.imp[r].banner.format[n].ext.siteID)}if(c.pX in t){var a=t.video.ext;void 0!==a&&void 0!==a.siteID&&delete e.imp[r].video.ext.siteID}if(c.B5 in t){var o=t.native.ext;void 0!==o&&void 0!==o.siteID&&delete e.imp[r].native.ext.siteID}}})),e}function Ue(e){var t=0;return void 0!==e.banner&&(t+=1),void 0!==e.video&&(t+=1),void 0!==e.native&&(t+=1),t}function Ee(e){return null==e.device&&(e.device={}),e.device.h=window.screen.height,e.device.w=window.screen.width,e}(0,b.dX)(we),(0,d.z)("ixBidAdapter")}},function(e){var t;t=33390,e(e.s=t)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[40155],{33390:function(e,t,r){var i=r(93324),n=r(89062),a=r(4942),o=r(71002),d=r(78640),s=r(20265),p=r(64358),u=r(96475),c=r(24679),l=r(3193),f=r(5644),m=r(15164),g=r(52021),v=r(34614),b=r(14699),y=r(90154),x=r(35706);function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){(0,a.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function O(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var i=0,n=function(){};return{s:n,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,d=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){d=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(d)throw a}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,i=new Array(t);r<t;r++)i[r]=e[r];return i}var Z="ix",C="roundel",S=[c.Mk,c.pX,c.B5],U=[144,144],E={JPY:1},P="p",T="x",k=1,D=2,j=3,A=4,B=5,F=9,N={SITE:["id","name","domain","cat","sectioncat","pagecat","page","ref","search","mobile","privacypolicy","publisher","content","keywords","ext"],USER:["id","buyeruid","yob","gender","keywords","customdata","geo","data","ext"]},_={"liveramp.com":"idl","netid.de":"NETID","neustar.biz":"fabrickId","zeotap.com":"zeotapIdPlus","uidapi.com":"UID2","adserver.org":"TDID","id5-sync.com":"","crwdcntrl.net":"","epsilon.com":"","audigent.com":"","pubcid.org":"","utiq.com":"","intimatemerger.com":"","33across.com":"","liveintent.indexexchange.com":""},R=["britepoolid","lipbid","criteoId","merkleId","parrableId","connectid","tapadId","quantcastId","pubProvidedId"],X=["mimes","minduration","maxduration"],z=["mimes","minduration","maxduration","protocols","protocol","startdelay","placement","linearity","skip","skipmin","skipafter","sequence","battr","maxextended","minbitrate","maxbitrate","boxingallowed","playbackmethod","playbackend","delivery","pos","companionad","api","companiontype","ext","playerSize","w","h","plcmt"],L="ixdiag",q="".concat(Z,"_features"),M=!1,W=(0,m.df)({bidderCode:Z}),G={REQUESTED_FEATURE_TOGGLES:["pbjs_enable_multiformat"],featureToggles:{},isFeatureEnabled:function(e){return(0,s.Z)(this.featureToggles,"features.".concat(e,".activated"),!1)},getFeatureToggles:function(){if(W.localStorageIsEnabled()){var e=(0,p.safeJSONParse)(W.getDataFromLocalStorage(q));(0,s.Z)(e,"expiry")&&e.expiry>=(new Date).getTime()?this.featureToggles=e:this.clearFeatureToggles()}},setFeatureToggles:function(e){var t=e.body,r=new Date,i=(0,s.Z)(t,"ext.features");i&&(this.featureToggles={expiry:r.setHours(r.getHours()+1),features:i},W.localStorageIsEnabled()&&W.setDataInLocalStorage(q,JSON.stringify(this.featureToggles)))},clearFeatureToggles:function(){this.featureToggles={},W.localStorageIsEnabled()&&W.removeDataFromLocalStorage(q)}},J=0,V="",H="",Q=!1,$=2;function Y(e){var t=K(e,c.pX),r=(0,s.Z)(e,"mediaTypes.video"),i=(0,s.Z)(e,"params.video");if(ne(r,i).length)return{};for(var n in t.video=i?(0,p.deepClone)(e.params.video):{},t.ext.tid=(0,s.Z)(e,"ortb2Imp.ext.tid"),function(e,t){if((0,s.Z)(t,"mediaTypes.video.context")===y.gZ){var r=(0,s.Z)(t,"mediaTypes.video.renderer");if(r||(r=(0,s.Z)(t,"renderer")),(0,s.Z)(t,"schain",!1))e.displaymanager="pbjs_wrapper";else if(r&&"object"===(0,o.Z)(r)){if(void 0!==r.url){var i="";try{i=new URL(r.url).hostname}catch(e){return}i.includes("js-sec.indexww")?e.displaymanager="ix":e.displaymanager=r.url}}else e.displaymanager="ix"}}(t,e),ce(t,e),r)-1===z.indexOf(n)||t.video.hasOwnProperty(n)||(t.video[n]=r[n]);if(t.video.minduration>t.video.maxduration)return(0,p.logError)("IX Bid Adapter: video minduration [".concat(t.video.minduration,"] cannot be greater than video maxduration [").concat(t.video.maxduration,"]"),{bidder:Z,code:F}),{};var a=i&&i.context||r&&r.context;if(function(e){e.video.hasOwnProperty("plcmt")&&(!(0,p.isInteger)(e.video.plcmt)||e.video.plcmt<1||e.video.plcmt>4)&&((0,p.logWarn)("IX Bid Adapter: video.plcmt [".concat(e.video.plcmt,"] must be an integer between 1-4 inclusive")),delete e.video.plcmt)}(t),a&&!t.video.hasOwnProperty("placement")&&(a===y.LD?t.video.placement=1:a===y.gZ?(0,s.Z)(i,"playerConfig.floatOnScroll")?t.video.placement=5:(t.video.placement=3,Q=!0):(0,p.logWarn)("IX Bid Adapter: Video context '".concat(a,"' is not supported"))),!t.video.w||!t.video.h){var d=ae((0,s.Z)(t,"video.playerSize"))||ae((0,s.Z)(e,"params.size"));if(!d)return(0,p.logWarn)("IX Bid Adapter: Video size is missing in [mediaTypes.video]"),{};t.video.w=d[0],t.video.h=d[1]}return ee(e,t,c.pX),t}function K(e,t){var r={};if(r.id=e.bidId,r.ext={},(0,s.Z)(e,"params.".concat(t,".siteId"))&&!isNaN(Number(e.params[t].siteId)))switch(t){case c.Mk:r.ext.siteID=e.params.banner.siteId.toString();break;case c.pX:r.ext.siteID=e.params.video.siteId.toString();break;case c.B5:r.ext.siteID=e.params.native.siteId.toString()}else r.ext.siteID=e.params.siteId.toString();return!e.params.hasOwnProperty("id")||"string"!=typeof e.params.id&&"number"!=typeof e.params.id||(r.ext.sid=String(e.params.id)),r}function ee(e,t,r){var i=null,n=null;if(e.params.bidFloor&&e.params.bidFloorCur&&(i={floor:e.params.bidFloor,currency:e.params.bidFloorCur}),(0,p.isFn)(e.getFloor)){var a="*",o="*";if(r&&(0,p.contains)(S,r)){var d=t[r];a=r,o=[d.w,d.h]}try{n=e.getFloor({mediaType:a,size:o})}catch(e){(0,p.logWarn)("priceFloors module call getFloor failed, error : ",e)}}var s=!1;n?(t.bidfloor=n.floor,t.bidfloorcur=n.currency,t.ext.fl=P,s=!0):i&&(t.bidfloor=i.floor,t.bidfloorcur=i.currency,t.ext.fl=T,s=!0),s&&(r==c.Mk?((0,u.N)(t,"banner.ext.bidfloor",t.bidfloor),(0,u.N)(t,"banner.ext.fl",t.ext.fl)):r==c.pX?((0,u.N)(t,"video.ext.bidfloor",t.bidfloor),(0,u.N)(t,"video.ext.fl",t.ext.fl)):((0,u.N)(t,"native.ext.bidfloor",t.bidfloor),(0,u.N)(t,"native.ext.fl",t.ext.fl)))}function te(e,t,r){var i={},n=!(!(0,s.Z)(e,"exp")||!(0,p.isInteger)(e.exp)),a=(0,s.Z)(e,"dealid")||(0,s.Z)(e,"ext.dealid");E.hasOwnProperty(t)?i.cpm=e.price/E[t]:i.cpm=e.price/100,i.requestId=e.impid,a&&(i.dealId=a),i.netRevenue=true,i.currency=t,i.creativeId=e.hasOwnProperty("crid")?e.crid:"-",e.mtype!=$||(!e.ext||e.ext.vasturl)&&e.ext?e.ext&&e.ext.vasturl&&(i.vastUrl=e.ext.vasturl):i.vastXml=e.adm;var o=null;if("string"==typeof e.adm&&"{"===e.adm[0]&&"}"===e.adm[e.adm.length-1])try{o=JSON.parse(e.adm)}catch(e){(0,p.logWarn)("adm looks like JSON but failed to parse: ",e)}return e.ext&&e.ext.vasturl||e.mtype==$?(i.width=r.video.w,i.height=r.video.h,i.mediaType=c.pX,i.mediaTypes=r.mediaTypes,i.ttl=n?e.exp:3600):o&&o.native?(i.native={ortb:o.native},i.width=e.w?e.w:1,i.height=e.h?e.h:1,i.mediaType=c.B5,i.ttl=n?e.exp:3600):(i.ad=e.adm,i.width=e.w,i.height=e.h,i.mediaType=c.Mk,i.ttl=n?e.exp:300),i.meta={},i.meta.networkId=(0,s.Z)(e,"ext.dspid"),i.meta.brandId=(0,s.Z)(e,"ext.advbrandid"),i.meta.brandName=(0,s.Z)(e,"ext.advbrand"),e.adomain&&e.adomain.length>0&&(i.meta.advertiserDomains=e.adomain),i}function re(e){return Array.isArray(e)&&2===e.length&&(0,p.isInteger)(e[0])&&(0,p.isInteger)(e[1])}function ie(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(re(e))return e[0]===t[0]&&e[1]===t[1];for(var r=0;r<e.length;r++)if(e[r][0]===t[0]&&e[r][1]===t[1])return!0;return!1}function ne(e,t){var r=[];e||(0,p.logWarn)("IX Bid Adapter: mediaTypes.video is the preferred location for video params in ad unit");var i,n=O(X);try{for(n.s();!(i=n.n()).done;){var a=i.value,o=e&&e.hasOwnProperty(a),d=t&&t.hasOwnProperty(a);o||d||r.push("IX Bid Adapter: ".concat(a," is not included in either the adunit or params level"))}}catch(e){n.e(e)}finally{n.f()}var s=e&&e.hasOwnProperty("protocol"),u=e&&e.hasOwnProperty("protocols"),c=t&&t.hasOwnProperty("protocol"),l=t&&t.hasOwnProperty("protocols");return s||u||c||l||r.push("IX Bid Adapter: protocol/protcols is not included in either the adunit or params level"),r}function ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return re(e)?e:!!re(e[0])&&e[0]}function oe(e,t,r){if(e)return I(I({},(0,v.sE)(r,(function(t){return t.bidId===e}))),(0,v.sE)(t,(function(t){return t.id===e})))}function de(e,t,r,i){var n="https://htlb.casalemedia.com/openrtb/pbjs",a=function(e){var t=[],r={};if((0,p.isArray)(e)){var i,n=O(e);try{for(n.s();!(i=n.n()).done;){var a=i.value;_.hasOwnProperty(a.source)&&(0,s.Z)(a,"uids.0")&&(r[a.source]=!0,""!=_[a.source]&&(a.uids[0].ext={rtiPartner:_[a.source]}),delete a.uids[0].atype,t.push(a))}}catch(e){n.e(e)}finally{n.f()}}return{toSend:t,seenSources:r}}((0,s.Z)(e,"0.userIdAsEids")),d=a.toSend;if(window.headertag&&"function"==typeof window.headertag.getIdentityInfo&&function(e,t){var r=window.headertag.getIdentityInfo();if(r&&"object"===(0,o.Z)(r))for(var i in r)if(r.hasOwnProperty(i)){var n=r[i];!n.responsePending&&n.data&&"object"===(0,o.Z)(n.data)&&Object.keys(n.data).length&&!t.seenSources[n.data.source]&&e.push(n.data)}}(d,a),t&&t.bidderCode===C&&!a.seenSources["liveramp.com"])return[];var c=[],f=function(e){var t={};return t.id=e[0].bidderRequestId.toString(),t.site={},t.ext={},t.ext.source="prebid",t.ext.ixdiag={},t.ext.ixdiag.ls=W.localStorageIsEnabled(),t.imp=[],t.at=1,t}(e);f=function(e,t){t.length>0&&(e.ext.features={},t.forEach((function(t){e.ext.features[t]={activated:G.isFeatureEnabled(t)}})));return e}(f,G.REQUESTED_FEATURE_TOGGLES);var m=function(e){for(var t=e.map((function(e){return e.adUnitCode})).filter((function(e,t,r){return r.indexOf(e)===t})),r={mfu:0,bu:0,iu:0,nu:0,ou:0,allu:0,ren:!1,version:"8.8.0",userIds:fe(e[0]),url:window.location.href.split("?")[0],vpd:Q},i=function(i){a=e.filter((function(e){return e.adUnitCode===t[i]}))[0],(0,s.Z)(a,"mediaTypes")&&(Object.keys(a.mediaTypes).length>1&&r.mfu++,(0,s.Z)(a,"mediaTypes.native")&&r.nu++,(0,s.Z)(a,"mediaTypes.banner")&&r.bu++,"outstream"===(0,s.Z)(a,"mediaTypes.video.context")&&(r.ou++,Oe(a)&&(r.ren=!0)),"instream"===(0,s.Z)(a,"mediaTypes.video.context")&&r.iu++,r.allu++)},n=0;n<t.length;n++){var a;i(n)}return r}(e);for(var g in m)f.ext.ixdiag[g]=m[g];f=function(e,t,r,i,n){var a,o,d=(0,s.Z)(t,"timeout");d&&(e.ext.ixdiag.tmax=d);l.vc.getConfig("userSync")&&(e.ext.ixdiag.syncsPerBidder=l.vc.getConfig("userSync").syncsPerBidder);var u=function(){if(!W.localStorageIsEnabled())return;var e,t={};try{e=JSON.parse(W.getDataFromLocalStorage(L)||"{}")}catch(e){return(0,p.logError)("ix can not read ixdiag from localStorage."),null}return Object.keys(e).forEach((function(r){Object.keys(e[r]).forEach((function(i){"number"==typeof e[r][i]&&(t[i]=t[i]?t[i]+e[r][i]:e[r][i])}))})),t}();(0,p.isEmpty)(u)||(e.ext.ixdiag.err=u);e.ext.ixdiag.imps=Object.keys(r).length,e.source={tid:null==t||null===(a=t.ortb2)||void 0===a||null===(o=a.source)||void 0===o?void 0:o.tid},i[0].schain&&(e.source.ext={},e.source.ext.schain=i[0].schain);n.length>0&&(e.user={},e.user.eids=n);document.referrer&&""!==document.referrer&&(e.site.ref=document.referrer);return e}(f,t,r,e,d),f=function(e,t){if(t){t.gdprConsent&&((V=t.gdprConsent).hasOwnProperty("gdprApplies")&&(e.regs={ext:{gdpr:V.gdprApplies?1:0}}),V.hasOwnProperty("consentString")&&(e.user=e.user||{},e.user.ext={consent:V.consentString||""},V.hasOwnProperty("addtlConsent")&&V.addtlConsent&&(e.user.ext.consented_providers_settings={addtl_consent:V.addtlConsent}))),t.uspConsent&&((0,u.N)(e,"regs.ext.us_privacy",t.uspConsent),H=t.uspConsent);var r=(0,s.Z)(t,"refererInfo.page");r&&(e.site.page=r),t.gppConsent&&((0,u.N)(e,"regs.gpp",t.gppConsent.gppString),(0,u.N)(e,"regs.gpp_sid",t.gppConsent.applicableSections))}l.vc.getConfig("coppa")&&(0,u.N)(e,"regs.coppa",1);return e}(f,t);var v={};J=e[0].params.siteId,v.s=J;for(var b=Object.keys(r),y=!1,x=0;x<b.length&&!(c.length>=4);x++){f=se(r,b,f,x);var h=(0,s.Z)(t,"ortb2")||{},w=I({},h.site||h.context);w.page=pe(t);var Z=I({},h.user);(0,p.isEmpty)(h)||y||((f=ue(t,f,h,w,Z)).site=(0,p.mergeDeep)({},f.site,w),f.user=(0,p.mergeDeep)({},f.user,Z),y=!0),f=le(r,f,b,x,v,n);var S=x===b.length-1;f=Se(f=Ce(f=Ee(f))),S&&(c.push({method:"POST",url:n+"?s="+J,data:(0,p.deepClone)(f),option:{contentType:"text/plain"},validBidRequests:e}),f.imp=[],y=!1)}return c}function se(e,t,r,i){var a=e[t[i]],o=a.missingImps,d=void 0===o?[]:o,l=a.ixImps,f={ixImps:void 0===l?[]:l,missingBannerImpressions:d},m=Object.keys(f).map((function(e){return f[e]})).filter((function(e){return Array.isArray(e)})).reduce((function(e,t){return e.concat.apply(e,(0,n.Z)(t))}),[]),g=e[t[i]].gpid,v=e[t[i]].dfp_ad_unit_code,b=e[t[i]].tid,y=e[t[i]].sid,x=m.filter((function(e){return c.Mk in e})),h=m.filter((function(e){return!(c.Mk in e)}));if(x.length>0){var I=x.reduce((function(e,t){return e[t.id]||(e[t.id]=[]),e[t.id].push(t),e}),{});for(var O in I){for(var w=I[O],Z=w[0],C={id:Z.id,banner:{topframe:Z.banner.topframe,format:w.map((function(e){var t=e.banner;return{w:t.w,h:t.h,ext:e.ext}}))}},S=0;S<C.banner.format.length;S++)null!=C.banner.format[S].ext&&null!=C.banner.format[S].ext.sid&&delete C.banner.format[S].ext.sid,"bidfloor"in w[S]&&(C.banner.format[S].ext.bidfloor=w[S].bidfloor);var U=e[t[i]].pos;(0,p.isInteger)(U)&&(C.banner.pos=U),(v||g||b||y)&&(C.ext={},C.ext.dfp_ad_unit_code=v,C.ext.gpid=g,C.ext.tid=b,C.ext.sid=y),"bidfloor"in w[0]&&(C.bidfloor=w[0].bidfloor),"bidfloorcur"in w[0]&&(C.bidfloorcur=w[0].bidfloorcur);var E=e[t[i]].adUnitFPD;E&&(0,u.N)(C,"ext.data",E),r.imp.push(C)}}return h.length>0&&h.forEach((function(e){if((0,u.N)(e,"ext.gpid",g),r.imp.length>0){var t=!1;r.imp.forEach((function(i,n){e.id===i.id&&c.pX in e?(i.video=e.video,i.video.ext=Object.assign({},e.video.ext,e.ext),(0,s.Z)(i,"video.ext.bidfloor",!1)&&(0,s.Z)(i,"bidfloor",!1)&&i.video.ext.bidfloor<i.bidfloor&&(i.bidfloor=i.video.ext.bidfloor),!(0,s.Z)(i,"ext.siteID",!1)&&(0,s.Z)(e,"video.ext.siteID")&&((0,u.N)(i,"ext.siteID",e.video.ext.siteID),(0,u.N)(r,"ext.ixdiag.usid",!0)),t=!0):e.id===i.id&&c.B5 in e&&(i.native=e.native,i.native.ext=Object.assign({},e.native.ext,e.ext),(0,s.Z)(i,"native.ext.bidfloor",!1)&&(0,s.Z)(i,"bidfloor",!1)&&i.native.ext.bidfloor<i.bidfloor&&(i.bidfloor=i.native.ext.bidfloor),!(0,s.Z)(i,"ext.siteID",!1)&&(0,s.Z)(e,"native.ext.siteID",!1)&&((0,u.N)(i,"ext.siteID",e.native.ext.siteID),(0,u.N)(r,"ext.ixdiag.usid",!0)),t=!0)})),t||r.imp.push(e)}else r.imp.push(e)})),r}function pe(e){var t=e&&e.bidderCode||"ix",r=l.vc.getConfig(t),n="";if((n=(0,s.Z)(e,"ortb2.site.page")?e.ortb2.site.page:(0,s.Z)(e,"refererInfo.page"),r)&&"object"===(0,o.Z)(r.firstPartyData))return function(e,t,r){var n;try{n=new URL(t)}catch(r){(0,p.logWarn)("IX Bid Adapter: Invalid URL set in ortb2.site.page: ".concat(t,". Using referer URL instead.")),n=new URL((0,s.Z)(e,"refererInfo.page"))}for(var a=new URLSearchParams(n.search),o=0,d=Object.entries(r);o<d.length;o++){var u=(0,i.Z)(d[o],2),c=u[0],l=u[1];a.has(c)||a.append(c,l)}return n.search=a.toString(),n.toString()}(e,n,r.firstPartyData);return n}function ue(e,t,r,i,n){if(t.ext.ixdiag.fpd=!0,Object.keys(i).forEach((function(e){-1===N.SITE.indexOf(e)&&delete i[e]})),Object.keys(n).forEach((function(e){-1===N.USER.indexOf(e)&&delete n[e]})),r.device){var a=I({},r.device.sua);(0,p.isEmpty)(a)||(0,u.N)(t,"device.sua",a)}return r.hasOwnProperty("regs")&&!e.gppConsent&&(r.regs.hasOwnProperty("gpp")&&"string"==typeof r.regs.gpp&&(0,u.N)(t,"regs.gpp",r.regs.gpp),r.regs.hasOwnProperty("gpp_sid")&&Array.isArray(r.regs.gpp_sid)&&(0,u.N)(t,"regs.gpp_sid",r.regs.gpp_sid)),t}function ce(e,t){var r=(0,s.Z)(t,"ortb2Imp.ext.data");r&&(0,u.N)(e,"ext.data",r)}function le(e,t,r,i,n,a){var o=e[r[i]].pbadslot,d=e[r[i]].tagId,s=e[r[i]].adUnitCode,p=e[r[i]].divId;return(o||d||s||p)&&(t.ext.ixdiag.pbadslot=o,t.ext.ixdiag.tagid=d,t.ext.ixdiag.adunitcode=s,t.ext.ixdiag.divId=p),t}function fe(e){var t=e.userId||{};return R.filter((function(e){return t[e]}))}function me(e,t){if(t)for(var r=0;r<e.length;r++){var i=e[r];if(t[0]===i[0]&&t[1]===i[1]){e.splice(r,1);break}}}function ge(e,t){var r=function(e){var t=K(e,c.B5),r=e.nativeOrtbRequest;return r.eventtrackers=[{event:1,methods:[1,2]}],r.privacy=1,t.native={request:JSON.stringify(r),ver:"1.2"},t.ext.tid=(0,s.Z)(e,"ortb2Imp.ext.tid"),ce(t,e),ee(e,t,c.B5),t}(e);if(0!=Object.keys(r).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(r),t[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId");var i=e.adUnitCode,n=document.getElementById(i)?i:(0,p.getGptSlotInfoForAdUnitCode)(i).divId;t[e.adUnitCode].adUnitCode=i,t[e.adUnitCode].divId=n}}function ve(e,t){var r=Y(e);if(0!=Object.keys(r).length){t[e.adUnitCode]={},t[e.adUnitCode].ixImps=[],t[e.adUnitCode].ixImps.push(r),t[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),t[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),t[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),t[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId");var i=e.adUnitCode,n=document.getElementById(i)?i:(0,p.getGptSlotInfoForAdUnitCode)(i).divId;t[e.adUnitCode].adUnitCode=i,t[e.adUnitCode].divId=n}}function be(e,t,r){var i=function(e){var t=K(e,c.Mk);t.banner={};var r=(0,s.Z)(e,"params.size");return r&&(t.banner.w=r[0],t.banner.h=r[1]),t.banner.topframe=(0,p.inIframe)()?0:1,ee(e,t,c.Mk),t}(e),n=ie((0,s.Z)(e,"mediaTypes.banner.sizes"),(0,s.Z)(e,"params.size"));r.hasOwnProperty(e.adUnitCode)||(r[e.adUnitCode]={}),r[e.adUnitCode].gpid=(0,s.Z)(e,"ortb2Imp.ext.gpid"),r[e.adUnitCode].dfp_ad_unit_code=(0,s.Z)(e,"ortb2Imp.ext.data.adserver.adslot"),r[e.adUnitCode].tid=(0,s.Z)(e,"ortb2Imp.ext.tid"),r[e.adUnitCode].pbadslot=(0,s.Z)(e,"ortb2Imp.ext.data.pbadslot"),r[e.adUnitCode].tagId=(0,s.Z)(e,"params.tagId"),r[e.adUnitCode].pos=(0,s.Z)(e,"mediaTypes.banner.pos");var a=(0,s.Z)(e,"ortb2Imp.ext.data");a&&(r[e.adUnitCode].adUnitFPD=a);var o=(0,s.Z)(e,"params.id");!o||"string"!=typeof o&&"number"!=typeof o||(r[e.adUnitCode].sid=String(o));var d=e.adUnitCode,u=document.getElementById(d)?d:(0,p.getGptSlotInfoForAdUnitCode)(d).divId;r[e.adUnitCode].adUnitCode=d,r[e.adUnitCode].divId=u,n&&(r[e.adUnitCode].hasOwnProperty("ixImps")||(r[e.adUnitCode].ixImps=[]),r[e.adUnitCode].ixImps.push(i)),function(e,t,r){if(t.hasOwnProperty(e.adUnitCode)){var i=[];t[e.adUnitCode].hasOwnProperty("missingSizes")&&(i=t[e.adUnitCode].missingSizes),me(i,e.params.size),t[e.adUnitCode].missingSizes=i}else if((0,s.Z)(e,"mediaTypes.banner.sizes")){var n=(0,p.deepClone)(e.mediaTypes.banner.sizes);me(n,e.params.size);var a={missingSizes:n,impression:r};t[e.adUnitCode]=a}}(e,t,i)}function ye(e,t,r){var i=(0,p.deepClone)(t);return i.banner.w=r[0],i.banner.h=r[1],ee(e,i,c.Mk),i}function xe(e){"ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===Z&&function(e){if(W.localStorageIsEnabled()){var t;try{t=JSON.parse(W.getDataFromLocalStorage(L)||"{}")}catch(e){(0,p.logWarn)("ix can not read ixdiag from localStorage.")}var r=new Date;if(Object.keys(t).map((function(e){var i=new Date(e);i.setDate(i.getDate()+7)-r<0&&delete t[e]})),"ERROR"===e.type&&e.arguments&&e.arguments[1]&&e.arguments[1].bidder===Z){var i=r.toISOString().slice(0,10),n=e.arguments[1].code;n&&(t[i]=t[i]||{},Number(t[i][n])||(t[i][n]=0),t[i][n]++)}W.setDataInLocalStorage(L,JSON.stringify(t))}}(e)}function he(e){e.renderer.push((function(){var t=e.adUnitCode,r=document.getElementById(t)?t:(0,p.getGptSlotInfoForAdUnitCode)(t).divId;r?window.createIXPlayer(r,e):(0,p.logWarn)("IX Bid Adapter: adUnitCode: ".concat(r," not found on page."))}))}function Ie(e,t){var r=x.Th.install({id:e,url:t,loaded:!1});try{r.setRender(he)}catch(e){return(0,p.logWarn)("Prebid Error calling setRender on renderer",e),null}return t?r:((0,p.logWarn)("Outstream renderer URL not found"),null)}function Oe(e){if("outstream"!==(0,s.Z)(e,"mediaTypes.video.context"))return!1;var t=(0,s.Z)(e,"mediaTypes.video.renderer");return t||(t=(0,s.Z)(e,"renderer")),!!("object"!==(0,o.Z)(t)||!t.url||!t.render)||t.backupOnly}var we={code:Z,gvlid:10,aliases:[{code:C,gvlid:10,skipPbsAliasing:!1}],supportedMediaTypes:S,isBidRequestValid:function(e){M||(g.on(f.FP.AUCTION_DEBUG,xe),g.on(f.FP.AD_RENDER_FAILED,xe),M=!0);var t,r,i=(0,s.Z)(e,"params.video"),n=(0,s.Z)(e,"params.size"),a=(0,s.Z)(e,"mediaTypes.banner.sizes"),o=(0,s.Z)(e,"mediaTypes.video"),d=(0,s.Z)(e,"mediaTypes.video.playerSize"),u=e.params.hasOwnProperty("bidFloor"),c=e.params.hasOwnProperty("bidFloorCur");if(e.hasOwnProperty("mediaType")&&!(0,p.contains)(S,e.mediaType))return(0,p.logWarn)("IX Bid Adapter: media type is not supported."),!1;if((0,s.Z)(e,"mediaTypes.banner")&&!a)return!1;if(n){var l=ae(n);if(!l)return(0,p.logError)("IX Bid Adapter: size has invalid format.",{bidder:Z,code:k}),!1;if(!ie(e.sizes,l)&&!ie(d,l)&&!ie(a,l))return(0,p.logError)("IX Bid Adapter: bid size is not included in ad unit sizes or player size.",{bidder:Z,code:D}),!1}if("string"!=typeof e.params.siteId&&"number"!=typeof e.params.siteId)return(0,p.logError)("IX Bid Adapter: siteId must be string or number type.",{bidder:Z,code:A}),!1;if("string"!=typeof e.params.siteId&&isNaN(Number(e.params.siteId)))return(0,p.logError)("IX Bid Adapter: siteId must valid value",{bidder:Z,code:A}),!1;if((u||c)&&!(u&&c&&(t=e.params.bidFloor,r=e.params.bidFloorCur,Boolean("number"==typeof t&&"string"==typeof r&&r.match(/^[A-Z]{3}$/)))))return(0,p.logError)("IX Bid Adapter: bidFloor / bidFloorCur parameter has invalid format.",{bidder:Z,code:B}),!1;if(o&&i){var m=Y(e).video,v=ne(o,i);if((0,s.Z)(e,"mediaTypes.video.context")===y.gZ&&Oe(e)&&m){var b=[(0,s.Z)(m,"w"),(0,s.Z)(m,"h")];if(!(b[0]>=U[0]&&b[1]>=U[1]))return(0,p.logError)("IX Bid Adapter: ".concat(b," is an invalid size for IX outstream renderer")),!1}if(v.length)return v.forEach((function(e){(0,p.logError)(e,{bidder:Z,code:j})})),!1}return function(e){return void 0===(0,s.Z)(e,"mediaTypes.native")||e.nativeOrtbRequest&&Array.isArray(e.nativeOrtbRequest.assets)&&e.nativeOrtbRequest.assets.length>0}(e)},buildRequests:function(e,t){var r=[],i={},a={},o={},d={};for(var u in G.getFeatureToggles(),e.forEach((function(e){var t=Object.keys((0,s.Z)(e,"mediaTypes",{}));for(var r in t)switch(t[r]){case c.Mk:be(e,d,i);break;case c.pX:ve(e,a);break;case c.B5:ge(e,o);break;default:(0,p.logWarn)("IX Bid Adapter: ad unit mediaTypes ".concat(r," is not supported"))}})),d)if(d.hasOwnProperty(u)){var l=d[u].missingSizes;i.hasOwnProperty(u)||(i[u]={}),i[u].hasOwnProperty("missingImps")||(i[u].missingImps=[],i[u].missingCount=0);for(var f=d[u].impression,m=0;m<l.length;m++){var g=ye(e[0],f,l[m]);i[u].missingImps.push(g),i[u].missingCount++}}var v,b=[];return Object.keys(i).length>0&&b.push(i),Object.keys(a).length>0&&b.push(a),Object.keys(o).length>0&&b.push(o),G.isFeatureEnabled("pbjs_enable_multiformat")?r.push.apply(r,(0,n.Z)(de(e,t,(v={},b.forEach((function(e){Object.keys(e).forEach((function(t){Object.keys(v).includes(t)?v[t].hasOwnProperty("ixImps")&&e[t].hasOwnProperty("ixImps")?v[t].ixImps=[].concat((0,n.Z)(v[t].ixImps),(0,n.Z)(e[t].ixImps)):v[t].hasOwnProperty("missingImps")&&e[t].hasOwnProperty("missingImps")?v[t].missingImps=[].concat((0,n.Z)(v[t].missingImps),(0,n.Z)(e[t].missingImps)):e[t].hasOwnProperty("ixImps")?v[t].ixImps=e[t].ixImps:e[t].hasOwnProperty("missingImps")&&(v[t].missingImps=e[t].missingImps):v[t]=e[t]}))})),v)))):(Object.keys(i).length>0&&r.push.apply(r,(0,n.Z)(de(e,t,i))),Object.keys(a).length>0&&r.push.apply(r,(0,n.Z)(de(e,t,a))),Object.keys(o).length>0&&r.push.apply(r,(0,n.Z)(de(e,t,o)))),r},interpretResponse:function(e,t){var r=[],i=null;if(!e.hasOwnProperty("body")||!e.body.hasOwnProperty("seatbid"))return G.setFeatureToggles(e),r;for(var n=e.body,a=n.seatbid,o=0;o<a.length;o++)if(a[o].hasOwnProperty("bid")){for(var d=a[o].bid,u=t.data,l=0;l<d.length;l++){var f=oe(d[l].impid,u.imp,t.validBidRequests);if((i=te(d[l],n.cur,f)).mediaType===c.pX&&Oe(f)){var m=(0,s.Z)(n,"ext.videoplayerurl");if(i.renderer=Ie(d[l].bidId,m),!i.renderer)continue}r.push(i)}if((0,s.Z)(u,"ext.ixdiag.err")&&W.localStorageIsEnabled())try{W.removeDataFromLocalStorage(L)}catch(e){(0,p.logError)("ix can not clear ixdiag from localStorage.")}}return G.setFeatureToggles(e),r},transformBidParams:function(e,t){return(0,p.convertTypes)({siteID:"number"},e)},getUserSyncs:function(e,t){var r=[],i=null;if(t.length>0&&(i=(0,s.Z)(t[0],"body.ext.publishersyncsperbidderoverride")),void 0!==i&&0==i)return[];if(e.iframeEnabled)r.push({type:"iframe",url:"https://js-sec.indexww.com/um/ixmatch.html"});else{var n=null;l.vc.getConfig("userSync")&&(n=l.vc.getConfig("userSync").syncsPerBidder),0===n&&(n=i),n=i&&(0===n||n)?i>n?n:i:1;for(var a=0;a<n;a++)r.push({type:"image",url:Ze(n,a)})}return r}};function Ze(e,t){var r="",i="0";return V&&V.hasOwnProperty("gdprApplies")&&(i=V.gdprApplies?"1":"0"),V&&V.hasOwnProperty("consentString")&&(r=V.consentString||""),"https://dsum.casalemedia.com/pbusermatch?origin=prebid&site_id="+J.toString()+"&p="+e.toString()+"&i="+t.toString()+"&gdpr="+i+"&gdpr_consent="+r+"&us_privacy="+(H||"")}function Ce(e){return e.imp.forEach((function(t,r){var i=t.ext;if(null==i)return e;Ue(t)<2||Object.keys(i).forEach((function(n){if(c.Mk in t){var a=t.banner.ext;if(void 0!==a&&void 0!==a[n]&&a[n]==i[n]&&delete e.imp[r].banner.ext[n],void 0!==t.banner.format)for(var o=0;o<t.banner.format.length;o++)null!=t.banner.format[o].ext&&null!=t.banner.format[o].ext[n]&&t.banner.format[o].ext[n]==i[n]&&delete e.imp[r].banner.format[o].ext[n]}if(c.pX in t){var d=t.video.ext;void 0!==d&&void 0!==d[n]&&d[n]==i[n]&&delete e.imp[r].video.ext[n]}if(c.B5 in t){var s=t.native.ext;void 0!==s&&void 0!==s[n]&&s[n]==i[n]&&delete e.imp[r].native.ext[n]}}))})),e}function Se(e){return e.imp.forEach((function(t,r){if(null==t.ext)return e;if(!(Ue(t)<2)){if(c.Mk in t){var i=t.banner.ext;if(void 0!==i&&void 0!==i.siteID&&delete e.imp[r].banner.ext.siteID,void 0!==t.banner.format)for(var n=0;n<t.banner.format.length;n++)void 0!==t.banner.format[n].ext&&void 0!==t.banner.format[n].ext.siteID&&((0,u.N)(e.imp[r],"ext.siteID",t.banner.format[n].ext.siteID),(0,u.N)(e,"ext.ixdiag.usid",!0),delete e.imp[r].banner.format[n].ext.siteID)}if(c.pX in t){var a=t.video.ext;void 0!==a&&void 0!==a.siteID&&delete e.imp[r].video.ext.siteID}if(c.B5 in t){var o=t.native.ext;void 0!==o&&void 0!==o.siteID&&delete e.imp[r].native.ext.siteID}}})),e}function Ue(e){var t=0;return void 0!==e.banner&&(t+=1),void 0!==e.video&&(t+=1),void 0!==e.native&&(t+=1),t}function Ee(e){return null==e.device&&(e.device={}),e.device.h=window.screen.height,e.device.w=window.screen.width,e}(0,b.dX)(we),(0,d.z)("ixBidAdapter")}},function(e){var t;t=33390,e(e.s=t)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[79848],{95850:function(e,n,r){var t=r(93324),i=r(89062),a=r(78640),s=r(14699),o=r(20265),c={code:"justpremium",gvlid:62,time:6e4,isBidRequestValid:function(e){return!!(e&&e.params&&e.params.zone)},buildRequests:function(e,n){var r,i,a=(r={},i={},e.forEach((function(e){var n=e.params,t=n.zone;if(1!==r[t]){var a=n.allow||n.formats||[],s=n.exclude||[];if(0===a.length&&0===s.length)return r[n.zone]=1;r[t]=r[t]||[[],{}],r[t][0]=function(e){for(var n=e.concat(),r=0;r<n.length;++r)for(var t=r+1;t<n.length;++t)n[r]===n[t]&&n.splice(t--,1);return n}(r[t][0].concat(a)),s.forEach((function(e){r[t][1][e]?r[t][1][e]++:r[t][1][e]=1})),i[t]=i[t]||0,s.length&&i[t]++}})),Object.keys(i).forEach((function(e){if(1!==r[e]){var n=[];Object.keys(r[e][1]).forEach((function(t){r[e][1][t]===i[e]&&n.push(t)})),r[e][1]=n}})),Object.keys(r).forEach((function(e){1!==r[e]&&r[e][1].length&&(r[e][0].forEach((function(n){var t=r[e][1].indexOf(n);t>-1&&r[e][1].splice(t,1)})),r[e][0].length=0),1===r[e]||r[e][0].length||r[e][1].length||(r[e]=1)})),r),s=function(){var e;try{e=window.top}catch(n){e=window}return{screenWidth:e.screen.width,screenHeight:e.screen.height,innerWidth:e.innerWidth,innerHeight:e.innerHeight}}(),c=function(){if(!window.top)return null;var e=new URLSearchParams(window.top.location.search);return function(e){return 0===Object.keys(e).length?null:e}((n={ggAdbuyid:e.get("gg_adbuyid"),ggDealid:e.get("gg_dealid"),ggEadbuyid:e.get("gg_eadbuyid")},Object.fromEntries(Object.entries(n).filter((function(e){var n=(0,t.Z)(e,2);return n[0],null!=n[1]})))));var n}(),u={zone:e.map((function(e){return parseInt(e.params.zone)})).filter((function(e,n,r){return r.indexOf(e)===n})),referer:n.refererInfo.page,sw:s.screenWidth,sh:s.screenHeight,ww:s.innerWidth,wh:s.innerHeight,c:a,id:e[0].params.zone,sizes:{},ggExt:c};e.forEach((function(e){var n=e.params.zone,r=u.sizes;r[n]=r[n]||[],r[n].push.apply(r[n],e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes)})),(0,o.Z)(e[0],"userId.pubcid")?u.pubcid=(0,o.Z)(e[0],"userId.pubcid"):(0,o.Z)(e[0],"crumbs.pubcid")&&(u.pubcid=(0,o.Z)(e[0],"crumbs.pubcid")),u.uids=e[0].userId,n&&n.gdprConsent&&(u.gdpr_consent={consent_string:n.gdprConsent.consentString,consent_required:"boolean"!=typeof n.gdprConsent.gdprApplies||n.gdprConsent.gdprApplies}),n&&n.uspConsent&&(u.us_privacy=n.uspConsent),u.version={prebid:"8.7.0",jp_adapter:"1.8.3"},e[0].schain&&(u.schain=e[0].schain);var d=JSON.stringify(u);return{method:"POST",url:"https://pre.ads.justpremium.com/v/2.0/t/xhr?i="+ +new Date,data:d,bids:e}},interpretResponse:function(e,n){var r=e.body,t=[];return n.bids.forEach((function(e){var n=function(e,n){var r=e.zone;if(n[r])for(var t=n[r].length;t--;)if(u(e,n[r][t]))return n[r].splice(t,1).pop();return!1}(e.params,r.bid);if(n){var i=e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes&&e.mediaTypes.banner.sizes.length&&e.mediaTypes.banner.sizes[0]||[],a={requestId:e.bidId,creativeId:n.id,width:i[0]||n.width,height:i[1]||n.height,ad:n.adm,cpm:n.price,netRevenue:!0,currency:n.currency||"USD",ttl:n.ttl||c.time,format:n.format,meta:{advertiserDomains:n.adomain&&n.adomain.length>0?n.adomain:[]}};n.ext&&n.ext.pg&&(a.adserverTargeting={hb_deal_justpremium:"jp_pg"}),t.push(a)}})),t},getUserSyncs:function(e,n,r,t){var a="https://pre.ads.justpremium.com/v/1.0/t/sync?_c=a"+Math.random().toString(36).substring(7)+Date.now(),s=[];if(r&&"boolean"==typeof r.gdprApplies&&r.gdprApplies&&r.consentString&&(a=a+"&consentString="+encodeURIComponent(r.consentString)),t&&(a=a+"&usPrivacy="+encodeURIComponent(t)),e.iframeEnabled&&s.push({type:"iframe",url:a}),e.pixelEnabled&&0!==n.length){var o=n.map((function(e){var n;return null==e||null===(n=e.body)||void 0===n?void 0:n.pxs})).reduce((function(e,n){return e.concat(n)}),[]).filter((function(e){return void 0!==e}));s=[].concat((0,i.Z)(s),(0,i.Z)(o))}return s}};function u(e,n){var r=n.format;return e.allow&&e.allow.length?e.allow.indexOf(r)>-1:!e.exclude||!e.exclude.length||e.exclude.indexOf(r)<0}(0,s.dX)(c),(0,a.z)("justpremiumBidAdapter")}},function(e){var n;n=95850,e(e.s=n)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[79848],{95850:function(e,n,r){var t=r(93324),i=r(89062),a=r(78640),s=r(14699),o=r(20265),c={code:"justpremium",gvlid:62,time:6e4,isBidRequestValid:function(e){return!!(e&&e.params&&e.params.zone)},buildRequests:function(e,n){var r,i,a=(r={},i={},e.forEach((function(e){var n=e.params,t=n.zone;if(1!==r[t]){var a=n.allow||n.formats||[],s=n.exclude||[];if(0===a.length&&0===s.length)return r[n.zone]=1;r[t]=r[t]||[[],{}],r[t][0]=function(e){for(var n=e.concat(),r=0;r<n.length;++r)for(var t=r+1;t<n.length;++t)n[r]===n[t]&&n.splice(t--,1);return n}(r[t][0].concat(a)),s.forEach((function(e){r[t][1][e]?r[t][1][e]++:r[t][1][e]=1})),i[t]=i[t]||0,s.length&&i[t]++}})),Object.keys(i).forEach((function(e){if(1!==r[e]){var n=[];Object.keys(r[e][1]).forEach((function(t){r[e][1][t]===i[e]&&n.push(t)})),r[e][1]=n}})),Object.keys(r).forEach((function(e){1!==r[e]&&r[e][1].length&&(r[e][0].forEach((function(n){var t=r[e][1].indexOf(n);t>-1&&r[e][1].splice(t,1)})),r[e][0].length=0),1===r[e]||r[e][0].length||r[e][1].length||(r[e]=1)})),r),s=function(){var e;try{e=window.top}catch(n){e=window}return{screenWidth:e.screen.width,screenHeight:e.screen.height,innerWidth:e.innerWidth,innerHeight:e.innerHeight}}(),c=function(){if(!window.top)return null;var e=new URLSearchParams(window.top.location.search);return function(e){return 0===Object.keys(e).length?null:e}((n={ggAdbuyid:e.get("gg_adbuyid"),ggDealid:e.get("gg_dealid"),ggEadbuyid:e.get("gg_eadbuyid")},Object.fromEntries(Object.entries(n).filter((function(e){var n=(0,t.Z)(e,2);return n[0],null!=n[1]})))));var n}(),u={zone:e.map((function(e){return parseInt(e.params.zone)})).filter((function(e,n,r){return r.indexOf(e)===n})),referer:n.refererInfo.page,sw:s.screenWidth,sh:s.screenHeight,ww:s.innerWidth,wh:s.innerHeight,c:a,id:e[0].params.zone,sizes:{},ggExt:c};e.forEach((function(e){var n=e.params.zone,r=u.sizes;r[n]=r[n]||[],r[n].push.apply(r[n],e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes)})),(0,o.Z)(e[0],"userId.pubcid")?u.pubcid=(0,o.Z)(e[0],"userId.pubcid"):(0,o.Z)(e[0],"crumbs.pubcid")&&(u.pubcid=(0,o.Z)(e[0],"crumbs.pubcid")),u.uids=e[0].userId,n&&n.gdprConsent&&(u.gdpr_consent={consent_string:n.gdprConsent.consentString,consent_required:"boolean"!=typeof n.gdprConsent.gdprApplies||n.gdprConsent.gdprApplies}),n&&n.uspConsent&&(u.us_privacy=n.uspConsent),u.version={prebid:"8.8.0",jp_adapter:"1.8.3"},e[0].schain&&(u.schain=e[0].schain);var d=JSON.stringify(u);return{method:"POST",url:"https://pre.ads.justpremium.com/v/2.0/t/xhr?i="+ +new Date,data:d,bids:e}},interpretResponse:function(e,n){var r=e.body,t=[];return n.bids.forEach((function(e){var n=function(e,n){var r=e.zone;if(n[r])for(var t=n[r].length;t--;)if(u(e,n[r][t]))return n[r].splice(t,1).pop();return!1}(e.params,r.bid);if(n){var i=e.mediaTypes&&e.mediaTypes.banner&&e.mediaTypes.banner.sizes&&e.mediaTypes.banner.sizes.length&&e.mediaTypes.banner.sizes[0]||[],a={requestId:e.bidId,creativeId:n.id,width:i[0]||n.width,height:i[1]||n.height,ad:n.adm,cpm:n.price,netRevenue:!0,currency:n.currency||"USD",ttl:n.ttl||c.time,format:n.format,meta:{advertiserDomains:n.adomain&&n.adomain.length>0?n.adomain:[]}};n.ext&&n.ext.pg&&(a.adserverTargeting={hb_deal_justpremium:"jp_pg"}),t.push(a)}})),t},getUserSyncs:function(e,n,r,t){var a="https://pre.ads.justpremium.com/v/1.0/t/sync?_c=a"+Math.random().toString(36).substring(7)+Date.now(),s=[];if(r&&"boolean"==typeof r.gdprApplies&&r.gdprApplies&&r.consentString&&(a=a+"&consentString="+encodeURIComponent(r.consentString)),t&&(a=a+"&usPrivacy="+encodeURIComponent(t)),e.iframeEnabled&&s.push({type:"iframe",url:a}),e.pixelEnabled&&0!==n.length){var o=n.map((function(e){var n;return null==e||null===(n=e.body)||void 0===n?void 0:n.pxs})).reduce((function(e,n){return e.concat(n)}),[]).filter((function(e){return void 0!==e}));s=[].concat((0,i.Z)(s),(0,i.Z)(o))}return s}};function u(e,n){var r=n.format;return e.allow&&e.allow.length?e.allow.indexOf(r)>-1:!e.exclude||!e.exclude.length||e.exclude.indexOf(r)<0}(0,s.dX)(c),(0,a.z)("justpremiumBidAdapter")}},function(e){var n;n=95850,e(e.s=n)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[42703],{35526:function(e,t,r){var n,a,i,o=r(93324),d=r(71002),l=r(78640),c=r(64358),u=r(20265),p=r(3193),s=r(14699),E=r(15164),I=r(24679),S=Object.freeze({CODE:"kargo",HOST:"krk2.kargo.com",REQUEST_METHOD:"POST",REQUEST_ENDPOINT:"/api/v1/prebid",TIMEOUT_ENDPOINT:"/api/v1/event/timeout",GVLID:972,SUPPORTED_MEDIA_TYPES:[I.Mk,I.pX]}),m=(0,E.df)({bidderCode:S.CODE}),g=Object.freeze({KEY:"currency",US_DOLLAR:"USD"}),b=Object.freeze({SOCIAL_CANVAS:"params.socialCanvas",SUA:"ortb2.device.sua",TDID_ADAPTER:"userId.tdid"}),f=Object.freeze({BROWSERS:"browsers",MOBILE:"mobile",MODEL:"model",PLATFORM:"platform",SOURCE:"source"}),v=[f.BROWSERS,f.MOBILE,f.MODEL,f.SOURCE,f.PLATFORM],D=Object.freeze({KEY:"krg_crb",SYNC_URL:"https://crb.kargo.com/api/v1/initsyncrnd/{UUID}?seed={SEED}&idx={INDEX}&gdpr={GDPR}&gdpr_consent={GDPR_CONSENT}&us_privacy={US_PRIVACY}&gpp={GPP_STRING}&gpp_sid={GPP_SID}",SYNC_COUNT:5,PAGE_VIEW_ID:"pageViewId",PAGE_VIEW_TIMESTAMP:"pageViewTimestamp",PAGE_VIEW_URL:"pageViewUrl"});function T(){try{var e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=-177&e[6]|64,e[8]=-65&e[8]|128;var t=Array.prototype.map.call(new Uint8Array(e),(function(e){return("00"+e.toString(16)).slice(-2)})).join("");return t.slice(0,8)+"-"+t.slice(8,12)+"-"+t.slice(12,16)+"-"+t.slice(16,20)+"-"+t.slice(20)}catch(e){return""}}function C(){return n||(n=T()),n}function _(e){try{return m.getDataFromLocalStorage(e)}catch(e){return null}}function R(e,t,r,n,a){var i=O._getCrb(),o={crbIDs:i.syncIds||{}};e&&(o.tdID=e),!e&&i.tdID&&(o.tdID=i.tdID),t&&(o.usp=t);try{r&&(o.gdpr={consent:r.consentString||"",applies:!!r.gdprApplies})}catch(e){}if(null!=i.lexId&&(o.kargoID=i.lexId),null!=i.clientId&&(o.clientID=i.clientId),null!=i.optOut&&(o.optOut=i.optOut),null!=n&&(o.sharedIDEids=n),a){var d={};a&&a.consentString&&(d.gppString=a.consentString),a&&a.applicableSections&&(d.applicableSections=a.applicableSections),(0,c.isEmpty)(d)||(o.gpp=d)}return o}var O={gvlid:S.GVLID,code:S.CODE,isBidRequestValid:function(e){return!(!e||!e.params)&&!!e.params.placementId},buildRequests:function(e,t){var r=p.vc.getConfig(g.KEY),n=r&&r.adServerCurrency?r.adServerCurrency:null,o=[];(0,c._each)(e,(function(e){o.push(function(e){var t,r,n={id:e.bidId,tid:null===(t=e.ortb2Imp)||void 0===t||null===(r=t.ext)||void 0===r?void 0:r.tid,pid:e.params.placementId,code:e.adUnitCode};null!=e.floorData&&e.floorData.floorMin>0&&(n.floor=e.floorData.floorMin);e.bidRequestsCount>0&&(n.bidRequestCount=e.bidRequestsCount);e.bidderRequestsCount>0&&(n.bidderRequestCount=e.bidderRequestsCount);e.bidderWinsCount>0&&(n.bidderWinCount=e.bidderWinsCount);var a=function(e){if(null!=e.ortb2Imp){if(null!=e.ortb2Imp.gpid&&""!=e.ortb2Imp.gpid)return e.ortb2Imp.gpid;if(null!=e.ortb2Imp.ext&&null!=e.ortb2Imp.ext.data){if(null!=e.ortb2Imp.ext.data.pbAdSlot&&""!=e.ortb2Imp.ext.data.pbAdSlot)return e.ortb2Imp.ext.data.pbAdSlot;if(null!=e.ortb2Imp.ext.data.adServer&&null!=e.ortb2Imp.ext.data.adServer.adSlot&&""!=e.ortb2Imp.ext.data.adServer.adSlot)return e.ortb2Imp.ext.data.adServer.adSlot}}if(null!=e.adUnitCode&&""!=e.adUnitCode)return e.adUnitCode;return""}(e);null!=a&&""!=a&&(n.fpd={gpid:a});null!=e.mediaTypes&&(null!=e.mediaTypes.banner&&(n.banner=e.mediaTypes.banner),null!=e.mediaTypes.video&&(n.video=e.mediaTypes.video),null!=e.mediaTypes.native&&(n.native=e.mediaTypes.native));return n}(e))}));var d=e[0],l=(0,u.Z)(d,b.TDID_ADAPTER),s=function(e){var t;return{pageURL:null==e||null===(t=e.refererInfo)||void 0===t?void 0:t.page,rawCRB:m.getCookie(D.KEY),rawCRBLocalStorage:_(D.KEY)}}(t),E=Object.assign({},{pbv:"8.7.0",aid:d.auctionId,sid:C(),url:s.pageURL,timeout:t.timeout,ts:(new Date).getTime(),device:{size:[window.screen.width,window.screen.height]},imp:o,user:R(l,t.uspConsent,t.gdprConsent,d.userIdAsEids,t.gppConsent)});d.schain&&d.schain.nodes&&(E.schain=d.schain);var I=function(){if(a===window.location.pathname)return++i;return a=window.location.pathname,i=0}();null!=I&&(E.requestCount=I),null!=n&&n!=g.US_DOLLAR&&(E.cur=n),null!=s.rawCRB&&(E.rawCRB=s.rawCRB),null!=s.rawCRBLocalStorage&&(E.rawCRBLocalStorage=s.rawCRBLocalStorage);var T=(0,u.Z)(d,b.SOCIAL_CANVAS);null!=T&&(E.socan=T);var O=(0,u.Z)(d,b.SUA);if(O){var P=[];v.forEach((function(e){var t=O[e];if(t&&("string"!=typeof t||""!==t.trim()))switch(e){case f.MOBILE&&t<1:case f.SOURCE&&t<1:break;default:P.push(e)}})),E.device.sua=(0,c.pick)(O,P)}var y=null!=_(D.PAGE_VIEW_ID),A=null!=_(D.PAGE_VIEW_TIMESTAMP),U=null!=_(D.PAGE_VIEW_URL),h={};return y&&(h.id=_(D.PAGE_VIEW_ID)),A&&(h.timestamp=Number(_(D.PAGE_VIEW_TIMESTAMP))),U&&(h.url=_(D.PAGE_VIEW_URL)),(0,c.isEmpty)(h)||(E.page=h),Object.assign({},t,{method:S.REQUEST_METHOD,url:"https://".concat(S.HOST).concat(S.REQUEST_ENDPOINT),data:E,currency:n})},interpretResponse:function(e,t){var r=e.body,n=[];return(0,c.isEmpty)(r)||"object"!==(0,d.Z)(r)||Object.entries(r).forEach((function(e){var r=(0,o.Z)(e,2),a=r[0],i=r[1],d={mediaType:i.mediaType&&S.SUPPORTED_MEDIA_TYPES.includes(i.mediaType)?i.mediaType:I.Mk};i.metadata&&i.metadata.landingPageDomain&&(d.clickUrl=i.metadata.landingPageDomain[0],d.advertiserDomains=i.metadata.landingPageDomain);var l={requestId:a,cpm:Number(i.cpm),width:i.width,height:i.height,ttl:300,creativeId:i.id,dealId:i.targetingCustom,netRevenue:!0,currency:i.currency||t.currency,mediaType:d.mediaType,meta:d};d.mediaType==I.pX?i.admUrl?l.vastUrl=i.admUrl:l.vastXml=i.adm:l.ad=i.adm,n.push(l)})),n},getUserSyncs:function(e,t,r,n,a){var i=[],o=T(),d=O._getCrb().clientId,l=r&&r.gdprApplies?1:0,c=r&&r.consentString?r.consentString:"",u=a&&a.consentString?a.consentString:"",p=a&&a.applicableSections&&Array.isArray(a.applicableSections)?a.applicableSections.join(","):"";if("string"==typeof n&&4==n.length&&1==n[0]&&"Y"==n[2])return i;if(e.iframeEnabled&&o&&d)for(var s=0;s<D.SYNC_COUNT;s++)i.push({type:"iframe",url:D.SYNC_URL.replace("{UUID}",d).replace("{SEED}",o).replace("{INDEX}",s).replace("{GDPR}",l).replace("{GDPR_CONSENT}",c).replace("{US_PRIVACY}",n||"").replace("{GPP_STRING}",u).replace("{GPP_SID}",p)});return i},supportedMediaTypes:S.SUPPORTED_MEDIA_TYPES,onTimeout:function(e){null!=e&&e.forEach((function(e){!function(e,t){var r={aid:e,ato:t};try{var n=(0,c.buildUrl)({protocol:"https",hostname:S.HOST,pathname:S.TIMEOUT_ENDPOINT,search:r});(0,c.triggerPixel)(n)}catch(e){}}(e.auctionId,e.timeout)}))},_getCrb:function(){var e=function(){try{return JSON.parse(atob(_(D.KEY)))}catch(e){return{}}}();return Object.keys(e).length?e:function(){try{var e=JSON.parse(m.getCookie(D.KEY));if(e&&e.v){var t=JSON.parse(atob(e.v));if(t)return t}return{}}catch(e){return{}}}()},_getSessionId:C};(0,s.dX)(O),(0,l.z)("kargoBidAdapter")}},function(e){var t;t=35526,e(e.s=t)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[42703],{35526:function(e,t,r){var n,a,i,o=r(93324),d=r(71002),l=r(78640),c=r(64358),u=r(20265),p=r(3193),s=r(14699),E=r(15164),I=r(24679),S=Object.freeze({CODE:"kargo",HOST:"krk2.kargo.com",REQUEST_METHOD:"POST",REQUEST_ENDPOINT:"/api/v1/prebid",TIMEOUT_ENDPOINT:"/api/v1/event/timeout",GVLID:972,SUPPORTED_MEDIA_TYPES:[I.Mk,I.pX]}),m=(0,E.df)({bidderCode:S.CODE}),g=Object.freeze({KEY:"currency",US_DOLLAR:"USD"}),b=Object.freeze({SOCIAL_CANVAS:"params.socialCanvas",SUA:"ortb2.device.sua",TDID_ADAPTER:"userId.tdid"}),f=Object.freeze({BROWSERS:"browsers",MOBILE:"mobile",MODEL:"model",PLATFORM:"platform",SOURCE:"source"}),v=[f.BROWSERS,f.MOBILE,f.MODEL,f.SOURCE,f.PLATFORM],D=Object.freeze({KEY:"krg_crb",SYNC_URL:"https://crb.kargo.com/api/v1/initsyncrnd/{UUID}?seed={SEED}&idx={INDEX}&gdpr={GDPR}&gdpr_consent={GDPR_CONSENT}&us_privacy={US_PRIVACY}&gpp={GPP_STRING}&gpp_sid={GPP_SID}",SYNC_COUNT:5,PAGE_VIEW_ID:"pageViewId",PAGE_VIEW_TIMESTAMP:"pageViewTimestamp",PAGE_VIEW_URL:"pageViewUrl"});function T(){try{var e=new Uint8Array(16);crypto.getRandomValues(e),e[6]=-177&e[6]|64,e[8]=-65&e[8]|128;var t=Array.prototype.map.call(new Uint8Array(e),(function(e){return("00"+e.toString(16)).slice(-2)})).join("");return t.slice(0,8)+"-"+t.slice(8,12)+"-"+t.slice(12,16)+"-"+t.slice(16,20)+"-"+t.slice(20)}catch(e){return""}}function C(){return n||(n=T()),n}function _(e){try{return m.getDataFromLocalStorage(e)}catch(e){return null}}function R(e,t,r,n,a){var i=O._getCrb(),o={crbIDs:i.syncIds||{}};e&&(o.tdID=e),!e&&i.tdID&&(o.tdID=i.tdID),t&&(o.usp=t);try{r&&(o.gdpr={consent:r.consentString||"",applies:!!r.gdprApplies})}catch(e){}if(null!=i.lexId&&(o.kargoID=i.lexId),null!=i.clientId&&(o.clientID=i.clientId),null!=i.optOut&&(o.optOut=i.optOut),null!=n&&(o.sharedIDEids=n),a){var d={};a&&a.consentString&&(d.gppString=a.consentString),a&&a.applicableSections&&(d.applicableSections=a.applicableSections),(0,c.isEmpty)(d)||(o.gpp=d)}return o}var O={gvlid:S.GVLID,code:S.CODE,isBidRequestValid:function(e){return!(!e||!e.params)&&!!e.params.placementId},buildRequests:function(e,t){var r=p.vc.getConfig(g.KEY),n=r&&r.adServerCurrency?r.adServerCurrency:null,o=[];(0,c._each)(e,(function(e){o.push(function(e){var t,r,n={id:e.bidId,tid:null===(t=e.ortb2Imp)||void 0===t||null===(r=t.ext)||void 0===r?void 0:r.tid,pid:e.params.placementId,code:e.adUnitCode};null!=e.floorData&&e.floorData.floorMin>0&&(n.floor=e.floorData.floorMin);e.bidRequestsCount>0&&(n.bidRequestCount=e.bidRequestsCount);e.bidderRequestsCount>0&&(n.bidderRequestCount=e.bidderRequestsCount);e.bidderWinsCount>0&&(n.bidderWinCount=e.bidderWinsCount);var a=function(e){if(null!=e.ortb2Imp){if(null!=e.ortb2Imp.gpid&&""!=e.ortb2Imp.gpid)return e.ortb2Imp.gpid;if(null!=e.ortb2Imp.ext&&null!=e.ortb2Imp.ext.data){if(null!=e.ortb2Imp.ext.data.pbAdSlot&&""!=e.ortb2Imp.ext.data.pbAdSlot)return e.ortb2Imp.ext.data.pbAdSlot;if(null!=e.ortb2Imp.ext.data.adServer&&null!=e.ortb2Imp.ext.data.adServer.adSlot&&""!=e.ortb2Imp.ext.data.adServer.adSlot)return e.ortb2Imp.ext.data.adServer.adSlot}}if(null!=e.adUnitCode&&""!=e.adUnitCode)return e.adUnitCode;return""}(e);null!=a&&""!=a&&(n.fpd={gpid:a});null!=e.mediaTypes&&(null!=e.mediaTypes.banner&&(n.banner=e.mediaTypes.banner),null!=e.mediaTypes.video&&(n.video=e.mediaTypes.video),null!=e.mediaTypes.native&&(n.native=e.mediaTypes.native));return n}(e))}));var d=e[0],l=(0,u.Z)(d,b.TDID_ADAPTER),s=function(e){var t;return{pageURL:null==e||null===(t=e.refererInfo)||void 0===t?void 0:t.page,rawCRB:m.getCookie(D.KEY),rawCRBLocalStorage:_(D.KEY)}}(t),E=Object.assign({},{pbv:"8.8.0",aid:d.auctionId,sid:C(),url:s.pageURL,timeout:t.timeout,ts:(new Date).getTime(),device:{size:[window.screen.width,window.screen.height]},imp:o,user:R(l,t.uspConsent,t.gdprConsent,d.userIdAsEids,t.gppConsent)});d.schain&&d.schain.nodes&&(E.schain=d.schain);var I=function(){if(a===window.location.pathname)return++i;return a=window.location.pathname,i=0}();null!=I&&(E.requestCount=I),null!=n&&n!=g.US_DOLLAR&&(E.cur=n),null!=s.rawCRB&&(E.rawCRB=s.rawCRB),null!=s.rawCRBLocalStorage&&(E.rawCRBLocalStorage=s.rawCRBLocalStorage);var T=(0,u.Z)(d,b.SOCIAL_CANVAS);null!=T&&(E.socan=T);var O=(0,u.Z)(d,b.SUA);if(O){var P=[];v.forEach((function(e){var t=O[e];if(t&&("string"!=typeof t||""!==t.trim()))switch(e){case f.MOBILE&&t<1:case f.SOURCE&&t<1:break;default:P.push(e)}})),E.device.sua=(0,c.pick)(O,P)}var y=null!=_(D.PAGE_VIEW_ID),A=null!=_(D.PAGE_VIEW_TIMESTAMP),U=null!=_(D.PAGE_VIEW_URL),h={};return y&&(h.id=_(D.PAGE_VIEW_ID)),A&&(h.timestamp=Number(_(D.PAGE_VIEW_TIMESTAMP))),U&&(h.url=_(D.PAGE_VIEW_URL)),(0,c.isEmpty)(h)||(E.page=h),Object.assign({},t,{method:S.REQUEST_METHOD,url:"https://".concat(S.HOST).concat(S.REQUEST_ENDPOINT),data:E,currency:n})},interpretResponse:function(e,t){var r=e.body,n=[];return(0,c.isEmpty)(r)||"object"!==(0,d.Z)(r)||Object.entries(r).forEach((function(e){var r=(0,o.Z)(e,2),a=r[0],i=r[1],d={mediaType:i.mediaType&&S.SUPPORTED_MEDIA_TYPES.includes(i.mediaType)?i.mediaType:I.Mk};i.metadata&&i.metadata.landingPageDomain&&(d.clickUrl=i.metadata.landingPageDomain[0],d.advertiserDomains=i.metadata.landingPageDomain);var l={requestId:a,cpm:Number(i.cpm),width:i.width,height:i.height,ttl:300,creativeId:i.id,dealId:i.targetingCustom,netRevenue:!0,currency:i.currency||t.currency,mediaType:d.mediaType,meta:d};d.mediaType==I.pX?i.admUrl?l.vastUrl=i.admUrl:l.vastXml=i.adm:l.ad=i.adm,n.push(l)})),n},getUserSyncs:function(e,t,r,n,a){var i=[],o=T(),d=O._getCrb().clientId,l=r&&r.gdprApplies?1:0,c=r&&r.consentString?r.consentString:"",u=a&&a.consentString?a.consentString:"",p=a&&a.applicableSections&&Array.isArray(a.applicableSections)?a.applicableSections.join(","):"";if("string"==typeof n&&4==n.length&&1==n[0]&&"Y"==n[2])return i;if(e.iframeEnabled&&o&&d)for(var s=0;s<D.SYNC_COUNT;s++)i.push({type:"iframe",url:D.SYNC_URL.replace("{UUID}",d).replace("{SEED}",o).replace("{INDEX}",s).replace("{GDPR}",l).replace("{GDPR_CONSENT}",c).replace("{US_PRIVACY}",n||"").replace("{GPP_STRING}",u).replace("{GPP_SID}",p)});return i},supportedMediaTypes:S.SUPPORTED_MEDIA_TYPES,onTimeout:function(e){null!=e&&e.forEach((function(e){!function(e,t){var r={aid:e,ato:t};try{var n=(0,c.buildUrl)({protocol:"https",hostname:S.HOST,pathname:S.TIMEOUT_ENDPOINT,search:r});(0,c.triggerPixel)(n)}catch(e){}}(e.auctionId,e.timeout)}))},_getCrb:function(){var e=function(){try{return JSON.parse(atob(_(D.KEY)))}catch(e){return{}}}();return Object.keys(e).length?e:function(){try{var e=JSON.parse(m.getCookie(D.KEY));if(e&&e.v){var t=JSON.parse(atob(e.v));if(t)return t}return{}}catch(e){return{}}}()},_getSessionId:C};(0,s.dX)(O),(0,l.z)("kargoBidAdapter")}},function(e){var t;t=35526,e(e.s=t)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[49581],{97557:function(e,t,n){var i,a=n(4942),d=n(78640),r=n(64358),o=n(48928),s=n(64563),c=n(86104),u=n(18621),p=n(3193),I=n(5644),g="tracker.konduit.me",l=(i={},(0,a.Z)(i,I.FP.AUCTION_INIT,b),(0,a.Z)(i,I.FP.AUCTION_END,b),(0,a.Z)(i,I.FP.BID_REQUESTED,(function(e){return{bidderCode:e.bidderCode,time:e.start,bids:e.bids.map((function(e){return{transactionId:e.transactionId,adUnitCode:e.adUnitCode,bidId:e.bidId,startTime:e.startTime,sizes:(0,r.parseSizesInput)(e.sizes).toString(),params:e.params}}))}})),(0,a.Z)(i,I.FP.BID_TIMEOUT,(function(e){return e.map((function(e){return e.bidder})).filter(r.uniques)})),(0,a.Z)(i,I.FP.BID_RESPONSE,(function(e){return{bidderCode:e.bidder,transactionId:e.transactionId,adUnitCode:e.adUnitCode,statusMessage:e.statusMessage,mediaType:e.mediaType,renderedSize:e.size,cpm:e.cpm,currency:e.currency,netRevenue:e.netRevenue,timeToRespond:e.timeToRespond,bidId:e.bidId,requestId:e.requestId,creativeId:e.creativeId}})),(0,a.Z)(i,I.FP.BID_WON,(function(e){return{adId:e.adId,bidderCode:e.bidder,adUnitCode:e.adUnitCode,statusMessage:e.statusMessage,mediaType:e.mediaType,renderedSize:e.size,cpm:e.cpm,currency:e.currency,netRevenue:e.netRevenue,timeToRespond:e.timeToRespond,bidId:e.requestId,dealId:e.dealId,status:e.status,creativeId:e.creativeId}})),(0,a.Z)(i,I.FP.NO_BID,(function(e){return{bidderCode:e.bidder,transactionId:e.transactionId,adUnitCode:e.adUnitCode,bidId:e.bidId}})),i);function m(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat((t=e.search||"",Object.keys(t).map((function(e){return Array.isArray(t[e])?t[e].map((function(t){return"".concat(e,"[]=").concat(t)})).join("&"):"".concat(e,"=").concat(t[e])})).join("&"))):"")+(e.hash?"#".concat(e.hash):"");var t}var v=function(){return!!h.context.aggregatedEvents.filter((function(e){return e.eventType===I.FP.BID_WON}))[0]},h=Object.assign((0,s.ZP)({analyticsType:"endpoint"}),{track:function(e){var t,n,i,a,d=e.eventType,r=e.args;if(I.FP.AUCTION_INIT===d&&h.context.aggregatedEvents.splice(0),l[d]&&h.context.aggregatedEvents.push({eventType:d,data:l[d](r)}),d===I.FP.AUCTION_END){if(!v()&&u.q0.getWinningBids()[0]){var s=l[I.FP.BID_WON](u.q0.getWinningBids()[0]);h.context.aggregatedEvents.push({eventType:I.FP.BID_WON,data:s})}!function(e){var t=e.host,n=void 0===t?g:t,i=e.method,a=e.path,d=e.payload,r={protocol:"https",hostname:n,pathname:a};"GET"===i&&(r.search=d);var s=m(r);(0,o.h)(s,void 0,"POST"===i?JSON.stringify(d):null,{contentType:"application/json",method:i,withCredentials:!0})}({method:"POST",path:"/analytics-initial-event",payload:(t=p.vc.getConfig("konduit.konduitId"),n=window.screen,i=n.width,a=n.height,{konduitId:t,prebidVersion:"8.7.0",konduitPrebidModuleVersion:"1.0.0",environment:{screen:{width:i,height:a},language:navigator.language},events:h.context.aggregatedEvents})})}}});function b(e){return{auctionId:e.auctionId,timestamp:e.timestamp,auctionEnd:e.auctionEnd,auctionStatus:e.auctionStatus,adUnitCodes:e.adUnitCodes,labels:e.labels,timeout:e.timeout}}h.originEnableAnalytics=h.enableAnalytics,h.enableAnalytics=function(e){p.vc.getConfig("konduit.konduitId")?(h.context={aggregatedEvents:[]},h.originEnableAnalytics(e)):(0,r.logError)("A konduitId in config is required to use konduitAnalyticsAdapter")},c.ZP.registerAnalyticsAdapter({adapter:h,code:"konduit"});(0,d.z)("konduitAnalyticsAdapter")}},function(e){e.O(0,[14861],(function(){return t=97557,e(e.s=t);var t}));e.O()}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[49581],{97557:function(e,t,n){var i,a=n(4942),d=n(78640),r=n(64358),o=n(48928),s=n(64563),c=n(86104),u=n(18621),p=n(3193),I=n(5644),g="tracker.konduit.me",l=(i={},(0,a.Z)(i,I.FP.AUCTION_INIT,b),(0,a.Z)(i,I.FP.AUCTION_END,b),(0,a.Z)(i,I.FP.BID_REQUESTED,(function(e){return{bidderCode:e.bidderCode,time:e.start,bids:e.bids.map((function(e){return{transactionId:e.transactionId,adUnitCode:e.adUnitCode,bidId:e.bidId,startTime:e.startTime,sizes:(0,r.parseSizesInput)(e.sizes).toString(),params:e.params}}))}})),(0,a.Z)(i,I.FP.BID_TIMEOUT,(function(e){return e.map((function(e){return e.bidder})).filter(r.uniques)})),(0,a.Z)(i,I.FP.BID_RESPONSE,(function(e){return{bidderCode:e.bidder,transactionId:e.transactionId,adUnitCode:e.adUnitCode,statusMessage:e.statusMessage,mediaType:e.mediaType,renderedSize:e.size,cpm:e.cpm,currency:e.currency,netRevenue:e.netRevenue,timeToRespond:e.timeToRespond,bidId:e.bidId,requestId:e.requestId,creativeId:e.creativeId}})),(0,a.Z)(i,I.FP.BID_WON,(function(e){return{adId:e.adId,bidderCode:e.bidder,adUnitCode:e.adUnitCode,statusMessage:e.statusMessage,mediaType:e.mediaType,renderedSize:e.size,cpm:e.cpm,currency:e.currency,netRevenue:e.netRevenue,timeToRespond:e.timeToRespond,bidId:e.requestId,dealId:e.dealId,status:e.status,creativeId:e.creativeId}})),(0,a.Z)(i,I.FP.NO_BID,(function(e){return{bidderCode:e.bidder,transactionId:e.transactionId,adUnitCode:e.adUnitCode,bidId:e.bidId}})),i);function m(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat((t=e.search||"",Object.keys(t).map((function(e){return Array.isArray(t[e])?t[e].map((function(t){return"".concat(e,"[]=").concat(t)})).join("&"):"".concat(e,"=").concat(t[e])})).join("&"))):"")+(e.hash?"#".concat(e.hash):"");var t}var v=function(){return!!h.context.aggregatedEvents.filter((function(e){return e.eventType===I.FP.BID_WON}))[0]},h=Object.assign((0,s.ZP)({analyticsType:"endpoint"}),{track:function(e){var t,n,i,a,d=e.eventType,r=e.args;if(I.FP.AUCTION_INIT===d&&h.context.aggregatedEvents.splice(0),l[d]&&h.context.aggregatedEvents.push({eventType:d,data:l[d](r)}),d===I.FP.AUCTION_END){if(!v()&&u.q0.getWinningBids()[0]){var s=l[I.FP.BID_WON](u.q0.getWinningBids()[0]);h.context.aggregatedEvents.push({eventType:I.FP.BID_WON,data:s})}!function(e){var t=e.host,n=void 0===t?g:t,i=e.method,a=e.path,d=e.payload,r={protocol:"https",hostname:n,pathname:a};"GET"===i&&(r.search=d);var s=m(r);(0,o.h)(s,void 0,"POST"===i?JSON.stringify(d):null,{contentType:"application/json",method:i,withCredentials:!0})}({method:"POST",path:"/analytics-initial-event",payload:(t=p.vc.getConfig("konduit.konduitId"),n=window.screen,i=n.width,a=n.height,{konduitId:t,prebidVersion:"8.8.0",konduitPrebidModuleVersion:"1.0.0",environment:{screen:{width:i,height:a},language:navigator.language},events:h.context.aggregatedEvents})})}}});function b(e){return{auctionId:e.auctionId,timestamp:e.timestamp,auctionEnd:e.auctionEnd,auctionStatus:e.auctionStatus,adUnitCodes:e.adUnitCodes,labels:e.labels,timeout:e.timeout}}h.originEnableAnalytics=h.enableAnalytics,h.enableAnalytics=function(e){p.vc.getConfig("konduit.konduitId")?(h.context={aggregatedEvents:[]},h.originEnableAnalytics(e)):(0,r.logError)("A konduitId in config is required to use konduitAnalyticsAdapter")},c.ZP.registerAnalyticsAdapter({adapter:h,code:"konduit"});(0,d.z)("konduitAnalyticsAdapter")}},function(e){e.O(0,[14861],(function(){return t=97557,e(e.s=t);var t}));e.O()}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[6351],{56845:function(e,r,t){var n=t(89062),a=t(93324),i=t(78640),o=t(64358),s=t(20265),d=t(14699),u=t(24679),p=t(3193);function c(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return m(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw i}}}}function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var l="USD",f=[u.Mk,u.pX],y="1.0.0",v="iframe",g="pixel",b={code:"kueez",version:y,supportedMediaTypes:f,isBidRequestValid:function(e){return function(e){var r=!0;e.params||((0,o.logWarn)("Kueez adapter - missing params"),r=!1);e.params.org||((0,o.logWarn)("Kueez adapter - org is a required param"),r=!1);return r}(e)},buildRequests:function(e,r){var t=(0,a.Z)(e,1)[0],n=t.params.testMode,i=function(e,r,t){return{params:C(r,t),bids:w(e,t)}}(e,t,r);return{method:"POST",url:k(n),data:i}},interpretResponse:function(e){var r=e.body,t=null==r?void 0:r.bids;return t&&t.length?t.map((function(e){var r={cpm:e.cpm,creativeId:e.requestId,currency:e.currency||l,height:e.height,mediaType:e.mediaType,meta:{mediaType:e.mediaType},netRevenue:e.netRevenue||!0,nurl:e.nurl,requestId:e.requestId,ttl:e.ttl||420,width:e.width};return e.adomain&&e.adomain.length&&(r.meta.advertiserDomains=e.adomain),e.mediaType===u.pX?r.vastXml=e.vastXml:e.mediaType===u.Mk&&(r.ad=e.ad),r})):[]},getUserSyncs:function(e,r){var t,a=[],i=c(r);try{for(i.s();!(t=i.n()).done;){var s=t.value;if(e.pixelEnabled&&(0,o.isArray)(s.body.params.userSyncPixels)){var d=s.body.params.userSyncPixels.map((function(e){return{type:"image",url:e}}));a.push.apply(a,(0,n.Z)(d))}e.iframeEnabled&&s.body.params.userSyncURL&&a.push({type:"iframe",url:s.body.params.userSyncURL})}}catch(e){i.e(e)}finally{i.f()}return a},onBidWon:function(e){null!=e&&((0,o.logInfo)("onBidWon:",e),e.hasOwnProperty("nurl")&&e.nurl.length>0&&(0,o.triggerPixel)(e.nurl))}};function h(e){return(0,o.isEmpty)(e)?"":encodeURIComponent(e)}function I(e,r){var t=0;if((0,o.isFn)(e.getFloor)){var n=e.getFloor({currency:l,mediaType:r,size:"*"});t=n.currency===l&&n.floor?n.floor:0}return t}function T(e,r){if(!e)return!1;var t=(0,o.isArray)(e.bidders)?e.bidders:[r];return"include"===e.filter&&(0,o.contains)(t,r)}function k(e){return e?"https://hb.kueezssp.com/hb-multi-kz-test":"https://hb.kueezssp.com/hb-kz-multi"}function w(e,r){var t=[];return e.length&&e.forEach((function(e){t.push(function(e,r){var t,n,a=e.params,i=function(e){return e.mediaTypes&&e.mediaTypes.banner}(e)?u.Mk:u.pX,d=function(e,r){var t=[];return(0,s.Z)(e,"mediaTypes.".concat(r,".sizes"))?t=e.mediaTypes[r].sizes:Array.isArray(e.sizes)&&e.sizes.length>0&&(t=e.sizes),t}(e,i),p=(0,s.Z)(e,"ortb2Imp.ext.gpid"),c=(0,s.Z)(e,"mediaTypes.".concat(i,".pos")),m=a.placementId||(0,s.Z)(e,"mediaTypes.".concat(i,".name")),l=isNaN(a.floorPrice)?0:a.floorPrice,f={adUnitCode:(0,o.getBidIdParameter)("adUnitCode",e),bidId:(0,o.getBidIdParameter)("bidId",e),loop:(0,o.getBidIdParameter)("bidderRequestsCount",e),bidderRequestId:(0,o.getBidIdParameter)("bidderRequestId",e),floorPrice:Math.max(I(e,i),l),mediaType:i,sizes:d,transactionId:(null===(t=e.ortb2Imp)||void 0===t||null===(n=t.ext)||void 0===n?void 0:n.tid)||""};c&&(f.pos=c);p&&(f.gpid=p);m&&(f.placementId=m);i===u.pX&&function(e,r){var t=(0,s.Z)(r,"mediaTypes.video.linearity"),n=(0,s.Z)(r,"mediaTypes.video.maxduration"),a=(0,s.Z)(r,"mediaTypes.video.minduration"),i=(0,s.Z)(r,"mediaTypes.video.placement"),d=function(e){var r=(0,s.Z)(e,"mediaTypes.video.playbackmethod");if(Array.isArray(r)&&(0,o.isInteger)(r[0]))return r[0];if((0,o.isInteger)(r))return r}(r),u=(0,s.Z)(r,"mediaTypes.video.skip");t&&(e.linearity=t);n&&(e.maxDuration=n);a&&(e.minDuration=a);i&&(e.placement=i);d&&(e.playbackMethod=d);u&&(e.skip=u)}(f,e);return f}(e))})),t}function C(e,r){var t,n=r.bidderCode,a=p.vc.getConfig("userSync")||{},i=a.syncEnabled,d=a.filterSettings,u=window.location.hostname,c=(0,o.getBidIdParameter)("params",e),m=(0,o.getBidIdParameter)("userId",e),l=r.ortb2||{},f=r.timeout,b={adapter_version:y,auction_start:(0,o.timestamp)(),device_type:(t=navigator.userAgent,/ipad|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(t.toLowerCase())?"5":/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(t.toLowerCase())?"4":/smart[-_\s]?tv|hbbtv|appletv|googletv|hdmi|netcast|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b/i.test(t.toLowerCase())?"3":"1"),dnt:"yes"===navigator.doNotTrack||"1"===navigator.doNotTrack||"1"===navigator.msDoNotTrack?1:0,publisher_id:c.org,publisher_name:u,session_id:(0,o.getBidIdParameter)("auctionId",e),site_domain:u,tmax:f,ua:navigator.userAgent,wrapper_type:"prebidjs",wrapper_vendor:"pbjs",wrapper_version:"8.7.0"};if(i){var I=function(e,r){return e&&["all","iframe"].some((function(t){return T(e[t],r)}))?v:e&&e.image&&!T(e.image,r)?void 0:g}(d,n);I&&(b.cs_method=I)}return r&&r.gdprConsent&&r.gdprConsent.gdprApplies&&(b.gdpr=r.gdprConsent.gdprApplies,b.gdpr_consent=r.gdprConsent.consentString),r.uspConsent&&(b.us_privacy=r.uspConsent),c.ifa&&(b.ifa=c.ifa),l.site&&(b.site_metadata=JSON.stringify(l.site)),l.user&&(b.user_metadata=JSON.stringify(l.user)),r&&r.refererInfo&&(b.referrer=(0,s.Z)(r,"refererInfo.ref"),b.page_url=(0,s.Z)(r,"refererInfo.page")||(0,s.Z)(window,"location.href")),e.schain&&(b.schain=function(e){if((0,o.isEmpty)(e))return"";var r="".concat(e.ver,",").concat(e.complete);return e.nodes.forEach((function(e){r+="!",r+="".concat(h(e.asi),","),r+="".concat(h(e.sid),","),r+="".concat(e.hp?encodeURIComponent(e.hp):"",","),r+="".concat(h(e.rid),","),r+="".concat(h(e.name),","),r+="".concat(h(e.domain))})),r}(e.schain)),m&&(b.userIds=JSON.stringify(m)),b}(0,d.dX)(b),(0,i.z)("kueezBidAdapter")}},function(e){var r;r=56845,e(e.s=r)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[6351],{56845:function(e,r,t){var n=t(89062),a=t(93324),i=t(78640),o=t(64358),s=t(20265),d=t(14699),u=t(24679),p=t(3193);function c(e,r){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,r){if(!e)return;if("string"==typeof e)return m(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return m(e,r)}(e))||r&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==t.return||t.return()}finally{if(s)throw i}}}}function m(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var l="USD",f=[u.Mk,u.pX],y="1.0.0",v="iframe",g="pixel",b={code:"kueez",version:y,supportedMediaTypes:f,isBidRequestValid:function(e){return function(e){var r=!0;e.params||((0,o.logWarn)("Kueez adapter - missing params"),r=!1);e.params.org||((0,o.logWarn)("Kueez adapter - org is a required param"),r=!1);return r}(e)},buildRequests:function(e,r){var t=(0,a.Z)(e,1)[0],n=t.params.testMode,i=function(e,r,t){return{params:C(r,t),bids:w(e,t)}}(e,t,r);return{method:"POST",url:k(n),data:i}},interpretResponse:function(e){var r=e.body,t=null==r?void 0:r.bids;return t&&t.length?t.map((function(e){var r={cpm:e.cpm,creativeId:e.requestId,currency:e.currency||l,height:e.height,mediaType:e.mediaType,meta:{mediaType:e.mediaType},netRevenue:e.netRevenue||!0,nurl:e.nurl,requestId:e.requestId,ttl:e.ttl||420,width:e.width};return e.adomain&&e.adomain.length&&(r.meta.advertiserDomains=e.adomain),e.mediaType===u.pX?r.vastXml=e.vastXml:e.mediaType===u.Mk&&(r.ad=e.ad),r})):[]},getUserSyncs:function(e,r){var t,a=[],i=c(r);try{for(i.s();!(t=i.n()).done;){var s=t.value;if(e.pixelEnabled&&(0,o.isArray)(s.body.params.userSyncPixels)){var d=s.body.params.userSyncPixels.map((function(e){return{type:"image",url:e}}));a.push.apply(a,(0,n.Z)(d))}e.iframeEnabled&&s.body.params.userSyncURL&&a.push({type:"iframe",url:s.body.params.userSyncURL})}}catch(e){i.e(e)}finally{i.f()}return a},onBidWon:function(e){null!=e&&((0,o.logInfo)("onBidWon:",e),e.hasOwnProperty("nurl")&&e.nurl.length>0&&(0,o.triggerPixel)(e.nurl))}};function h(e){return(0,o.isEmpty)(e)?"":encodeURIComponent(e)}function I(e,r){var t=0;if((0,o.isFn)(e.getFloor)){var n=e.getFloor({currency:l,mediaType:r,size:"*"});t=n.currency===l&&n.floor?n.floor:0}return t}function T(e,r){if(!e)return!1;var t=(0,o.isArray)(e.bidders)?e.bidders:[r];return"include"===e.filter&&(0,o.contains)(t,r)}function k(e){return e?"https://hb.kueezssp.com/hb-multi-kz-test":"https://hb.kueezssp.com/hb-kz-multi"}function w(e,r){var t=[];return e.length&&e.forEach((function(e){t.push(function(e,r){var t,n,a=e.params,i=function(e){return e.mediaTypes&&e.mediaTypes.banner}(e)?u.Mk:u.pX,d=function(e,r){var t=[];return(0,s.Z)(e,"mediaTypes.".concat(r,".sizes"))?t=e.mediaTypes[r].sizes:Array.isArray(e.sizes)&&e.sizes.length>0&&(t=e.sizes),t}(e,i),p=(0,s.Z)(e,"ortb2Imp.ext.gpid"),c=(0,s.Z)(e,"mediaTypes.".concat(i,".pos")),m=a.placementId||(0,s.Z)(e,"mediaTypes.".concat(i,".name")),l=isNaN(a.floorPrice)?0:a.floorPrice,f={adUnitCode:(0,o.getBidIdParameter)("adUnitCode",e),bidId:(0,o.getBidIdParameter)("bidId",e),loop:(0,o.getBidIdParameter)("bidderRequestsCount",e),bidderRequestId:(0,o.getBidIdParameter)("bidderRequestId",e),floorPrice:Math.max(I(e,i),l),mediaType:i,sizes:d,transactionId:(null===(t=e.ortb2Imp)||void 0===t||null===(n=t.ext)||void 0===n?void 0:n.tid)||""};c&&(f.pos=c);p&&(f.gpid=p);m&&(f.placementId=m);i===u.pX&&function(e,r){var t=(0,s.Z)(r,"mediaTypes.video.linearity"),n=(0,s.Z)(r,"mediaTypes.video.maxduration"),a=(0,s.Z)(r,"mediaTypes.video.minduration"),i=(0,s.Z)(r,"mediaTypes.video.placement"),d=function(e){var r=(0,s.Z)(e,"mediaTypes.video.playbackmethod");if(Array.isArray(r)&&(0,o.isInteger)(r[0]))return r[0];if((0,o.isInteger)(r))return r}(r),u=(0,s.Z)(r,"mediaTypes.video.skip");t&&(e.linearity=t);n&&(e.maxDuration=n);a&&(e.minDuration=a);i&&(e.placement=i);d&&(e.playbackMethod=d);u&&(e.skip=u)}(f,e);return f}(e))})),t}function C(e,r){var t,n=r.bidderCode,a=p.vc.getConfig("userSync")||{},i=a.syncEnabled,d=a.filterSettings,u=window.location.hostname,c=(0,o.getBidIdParameter)("params",e),m=(0,o.getBidIdParameter)("userId",e),l=r.ortb2||{},f=r.timeout,b={adapter_version:y,auction_start:(0,o.timestamp)(),device_type:(t=navigator.userAgent,/ipad|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(t.toLowerCase())?"5":/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(t.toLowerCase())?"4":/smart[-_\s]?tv|hbbtv|appletv|googletv|hdmi|netcast|viera|nettv|roku|\bdtv\b|sonydtv|inettvbrowser|\btv\b/i.test(t.toLowerCase())?"3":"1"),dnt:"yes"===navigator.doNotTrack||"1"===navigator.doNotTrack||"1"===navigator.msDoNotTrack?1:0,publisher_id:c.org,publisher_name:u,session_id:(0,o.getBidIdParameter)("auctionId",e),site_domain:u,tmax:f,ua:navigator.userAgent,wrapper_type:"prebidjs",wrapper_vendor:"pbjs",wrapper_version:"8.8.0"};if(i){var I=function(e,r){return e&&["all","iframe"].some((function(t){return T(e[t],r)}))?v:e&&e.image&&!T(e.image,r)?void 0:g}(d,n);I&&(b.cs_method=I)}return r&&r.gdprConsent&&r.gdprConsent.gdprApplies&&(b.gdpr=r.gdprConsent.gdprApplies,b.gdpr_consent=r.gdprConsent.consentString),r.uspConsent&&(b.us_privacy=r.uspConsent),c.ifa&&(b.ifa=c.ifa),l.site&&(b.site_metadata=JSON.stringify(l.site)),l.user&&(b.user_metadata=JSON.stringify(l.user)),r&&r.refererInfo&&(b.referrer=(0,s.Z)(r,"refererInfo.ref"),b.page_url=(0,s.Z)(r,"refererInfo.page")||(0,s.Z)(window,"location.href")),e.schain&&(b.schain=function(e){if((0,o.isEmpty)(e))return"";var r="".concat(e.ver,",").concat(e.complete);return e.nodes.forEach((function(e){r+="!",r+="".concat(h(e.asi),","),r+="".concat(h(e.sid),","),r+="".concat(e.hp?encodeURIComponent(e.hp):"",","),r+="".concat(h(e.rid),","),r+="".concat(h(e.name),","),r+="".concat(h(e.domain))})),r}(e.schain)),m&&(b.userIds=JSON.stringify(m)),b}(0,d.dX)(b),(0,i.z)("kueezBidAdapter")}},function(e){var r;r=56845,e(e.s=r)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[25307],{24283:function(e,t,n){var r=n(78640),i=n(64358),o=n(20265),a=n(14699),d=n(24679),c=n(15164),s=n(3193),u="exchange",p="kueezrtb",g="1.0.0",b=9e5,l=(0,c.df)({bidderCode:p});function f(){try{return(0,i.parseUrl)(window.top.document.URL,{decodeSearchAsString:!0}).search}catch(e){return""}}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return"https://".concat(e,".kueezrtb.com")}function h(e){return e.cId||e.CID||e.cID||e.CId||e.cid||e.ciD||e.Cid||e.CiD}function m(e){return e.pId||e.PID||e.pID||e.PId||e.pid||e.piD||e.Pid||e.PiD}function I(e,t,n,r,a){var d,c,s=e.params,u=e.bidId,p=e.userId,l=e.adUnitCode,I=e.schain,S=e.mediaTypes,D=e.auctionId,R=e.transactionId,k=e.bidderRequestId,U=e.bidRequestsCount,q=e.bidderRequestsCount,z=e.bidderWinsCount,w=s.bidFloor,O=s.ext,T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_",n=e.length,r=0,i=0;if(n>0)for(;i<n;)r=(r<<5)-r+e.charCodeAt(i++)|0;return t+r}(t),x=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,r="u_".concat(e),i=Date.now(),o=C(r);!o||!o.value||i-o.created>n?y(r,t="".concat(e,"_").concat(i.toString())):t=o.value;return t}(T),A=h(s),_=m(s),j=function(e){return e.subDomain||e.SubDomain||e.Subdomain||e.subdomain||e.SUBDOMAIN||e.subDOMAIN}(s),F=(0,o.Z)(e,"ortb2Imp.ext.gpid",(0,o.Z)(e,"ortb2Imp.ext.data.pbadslot",""));if((0,i.isFn)(e.getFloor)){var M=e.getFloor({currency:"USD",mediaType:"*",size:"*"});"USD"===M.currency&&(w=M.floor)}var P,Z,E,L={url:encodeURIComponent(t),uqs:f(),cb:Date.now(),bidFloor:w,bidId:u,referrer:r.refererInfo.ref,adUnitCode:l,publisherId:_,sizes:n,uniqueDealId:x,bidderVersion:g,prebidVersion:"8.7.0",res:"".concat(screen.width,"x").concat(screen.height),schain:I,mediaTypes:S,gpid:F,auctionId:D,transactionId:R,bidderRequestId:k,bidRequestsCount:U,bidderRequestsCount:q,bidderWinsCount:z,bidderTimeout:a};P=L,Z=p,(0,i._each)(Z,(function(e,t){switch(E="uid.".concat(t),t){case"digitrustid":P[E]=(0,o.Z)(e,"data.id");break;case"lipb":P[E]=e.lipbid;break;case"parrableId":P[E]=e.eid;break;case"id5id":P[E]=e.uid;break;default:P[E]=e}}));var N=(0,o.Z)(r,"ortb2.device.sua");N&&(L.sua=N),r.gdprConsent&&(r.gdprConsent.consentString&&(L.gdprConsent=r.gdprConsent.consentString),void 0!==r.gdprConsent.gdprApplies&&(L.gdpr=r.gdprConsent.gdprApplies?1:0)),r.uspConsent&&(L.usPrivacy=r.uspConsent),r.gppConsent?(L.gppString=r.gppConsent.gppString,L.gppSid=r.gppConsent.applicableSections):null!==(d=r.ortb2)&&void 0!==d&&null!==(c=d.regs)&&void 0!==c&&c.gpp&&(L.gppString=r.ortb2.regs.gpp,L.gppSid=r.ortb2.regs.gpp_sid);var X={method:"POST",url:"".concat(v(j),"/prebid/multi/").concat(A),data:L};return(0,i._each)(O,(function(e,t){X.data["ext."+t]=e})),X}function C(e){try{return function(e){try{return JSON.parse(e)}catch(t){return e}}(l.getDataFromLocalStorage(e))}catch(e){}return null}function y(e,t,n){try{var r=n||Date.now(),i=JSON.stringify({value:t,created:r});l.setDataInLocalStorage(e,i)}catch(e){}}var S={code:p,version:g,gvlid:1165,supportedMediaTypes:[d.Mk,d.pX],isBidRequestValid:function(e){var t=e.params||{};return!(!h(t)||!m(t))},buildRequests:function(e,t){var n=t.refererInfo.page||t.refererInfo.topmostLocation,r=s.vc.getConfig("bidderTimeout"),o=[];return e.forEach((function(e){var a=(0,i.parseSizesInput)(e.sizes),d=I(e,n,a,t,r);o.push(d)})),o},interpretResponse:function(e,t){if(!e||!e.body)return[];var n=t.data.bidId,r=e.body.results,i=[];try{return r.forEach((function(e){var t=e.creativeId,r=e.ad,o=e.price,a=e.exp,c=e.width,s=e.height,u=e.currency,p=e.metaData,g=e.advertiserDomains,b=e.mediaType,l=void 0===b?d.Mk:b;if(r&&o){var f={requestId:n,cpm:o,width:c,height:s,creativeId:t,currency:u||"USD",netRevenue:!0,ttl:a||300};p?Object.assign(f,{meta:p}):Object.assign(f,{meta:{advertiserDomains:g||[]}}),l===d.Mk?Object.assign(f,{ad:r}):Object.assign(f,{vastXml:r,mediaType:d.pX}),i.push(f)}})),i}catch(e){return[]}},getUserSyncs:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=[],d=e.iframeEnabled,c=e.pixelEnabled,s=n.gdprApplies,u=n.consentString,p=void 0===u?"":u,g=t.filter((function(e){return(0,o.Z)(e,"body.cid")})).map((function(e){return e.body.cid})).filter(i.uniques),b="?cid=".concat(encodeURIComponent(g.join(",")),"&gdpr=").concat(s?1:0,"&gdpr_consent=").concat(encodeURIComponent(p||""),"&us_privacy=").concat(encodeURIComponent(r||""));return d&&a.push({type:"iframe",url:"https://sync.kueezrtb.com/api/sync/iframe/".concat(b)}),c&&a.push({type:"image",url:"https://sync.kueezrtb.com/api/sync/image/".concat(b)}),a}};(0,a.dX)(S),(0,r.z)("kueezRtbBidAdapter")}},function(e){var t;t=24283,e(e.s=t)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[25307],{24283:function(e,t,n){var r=n(78640),i=n(64358),o=n(20265),a=n(14699),d=n(24679),c=n(15164),s=n(3193),u="exchange",p="kueezrtb",g="1.0.0",b=9e5,l=(0,c.df)({bidderCode:p});function f(){try{return(0,i.parseUrl)(window.top.document.URL,{decodeSearchAsString:!0}).search}catch(e){return""}}function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u;return"https://".concat(e,".kueezrtb.com")}function h(e){return e.cId||e.CID||e.cID||e.CId||e.cid||e.ciD||e.Cid||e.CiD}function m(e){return e.pId||e.PID||e.pID||e.PId||e.pid||e.piD||e.Pid||e.PiD}function I(e,t,n,r,a){var d,c,s=e.params,u=e.bidId,p=e.userId,l=e.adUnitCode,I=e.schain,S=e.mediaTypes,D=e.auctionId,R=e.transactionId,k=e.bidderRequestId,U=e.bidRequestsCount,q=e.bidderRequestsCount,z=e.bidderWinsCount,w=s.bidFloor,O=s.ext,T=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_",n=e.length,r=0,i=0;if(n>0)for(;i<n;)r=(r<<5)-r+e.charCodeAt(i++)|0;return t+r}(t),x=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b,r="u_".concat(e),i=Date.now(),o=C(r);!o||!o.value||i-o.created>n?y(r,t="".concat(e,"_").concat(i.toString())):t=o.value;return t}(T),A=h(s),_=m(s),j=function(e){return e.subDomain||e.SubDomain||e.Subdomain||e.subdomain||e.SUBDOMAIN||e.subDOMAIN}(s),F=(0,o.Z)(e,"ortb2Imp.ext.gpid",(0,o.Z)(e,"ortb2Imp.ext.data.pbadslot",""));if((0,i.isFn)(e.getFloor)){var M=e.getFloor({currency:"USD",mediaType:"*",size:"*"});"USD"===M.currency&&(w=M.floor)}var P,Z,E,L={url:encodeURIComponent(t),uqs:f(),cb:Date.now(),bidFloor:w,bidId:u,referrer:r.refererInfo.ref,adUnitCode:l,publisherId:_,sizes:n,uniqueDealId:x,bidderVersion:g,prebidVersion:"8.8.0",res:"".concat(screen.width,"x").concat(screen.height),schain:I,mediaTypes:S,gpid:F,auctionId:D,transactionId:R,bidderRequestId:k,bidRequestsCount:U,bidderRequestsCount:q,bidderWinsCount:z,bidderTimeout:a};P=L,Z=p,(0,i._each)(Z,(function(e,t){switch(E="uid.".concat(t),t){case"digitrustid":P[E]=(0,o.Z)(e,"data.id");break;case"lipb":P[E]=e.lipbid;break;case"parrableId":P[E]=e.eid;break;case"id5id":P[E]=e.uid;break;default:P[E]=e}}));var N=(0,o.Z)(r,"ortb2.device.sua");N&&(L.sua=N),r.gdprConsent&&(r.gdprConsent.consentString&&(L.gdprConsent=r.gdprConsent.consentString),void 0!==r.gdprConsent.gdprApplies&&(L.gdpr=r.gdprConsent.gdprApplies?1:0)),r.uspConsent&&(L.usPrivacy=r.uspConsent),r.gppConsent?(L.gppString=r.gppConsent.gppString,L.gppSid=r.gppConsent.applicableSections):null!==(d=r.ortb2)&&void 0!==d&&null!==(c=d.regs)&&void 0!==c&&c.gpp&&(L.gppString=r.ortb2.regs.gpp,L.gppSid=r.ortb2.regs.gpp_sid);var X={method:"POST",url:"".concat(v(j),"/prebid/multi/").concat(A),data:L};return(0,i._each)(O,(function(e,t){X.data["ext."+t]=e})),X}function C(e){try{return function(e){try{return JSON.parse(e)}catch(t){return e}}(l.getDataFromLocalStorage(e))}catch(e){}return null}function y(e,t,n){try{var r=n||Date.now(),i=JSON.stringify({value:t,created:r});l.setDataInLocalStorage(e,i)}catch(e){}}var S={code:p,version:g,gvlid:1165,supportedMediaTypes:[d.Mk,d.pX],isBidRequestValid:function(e){var t=e.params||{};return!(!h(t)||!m(t))},buildRequests:function(e,t){var n=t.refererInfo.page||t.refererInfo.topmostLocation,r=s.vc.getConfig("bidderTimeout"),o=[];return e.forEach((function(e){var a=(0,i.parseSizesInput)(e.sizes),d=I(e,n,a,t,r);o.push(d)})),o},interpretResponse:function(e,t){if(!e||!e.body)return[];var n=t.data.bidId,r=e.body.results,i=[];try{return r.forEach((function(e){var t=e.creativeId,r=e.ad,o=e.price,a=e.exp,c=e.width,s=e.height,u=e.currency,p=e.metaData,g=e.advertiserDomains,b=e.mediaType,l=void 0===b?d.Mk:b;if(r&&o){var f={requestId:n,cpm:o,width:c,height:s,creativeId:t,currency:u||"USD",netRevenue:!0,ttl:a||300};p?Object.assign(f,{meta:p}):Object.assign(f,{meta:{advertiserDomains:g||[]}}),l===d.Mk?Object.assign(f,{ad:r}):Object.assign(f,{vastXml:r,mediaType:d.pX}),i.push(f)}})),i}catch(e){return[]}},getUserSyncs:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",a=[],d=e.iframeEnabled,c=e.pixelEnabled,s=n.gdprApplies,u=n.consentString,p=void 0===u?"":u,g=t.filter((function(e){return(0,o.Z)(e,"body.cid")})).map((function(e){return e.body.cid})).filter(i.uniques),b="?cid=".concat(encodeURIComponent(g.join(",")),"&gdpr=").concat(s?1:0,"&gdpr_consent=").concat(encodeURIComponent(p||""),"&us_privacy=").concat(encodeURIComponent(r||""));return d&&a.push({type:"iframe",url:"https://sync.kueezrtb.com/api/sync/iframe/".concat(b)}),c&&a.push({type:"image",url:"https://sync.kueezrtb.com/api/sync/image/".concat(b)}),a}};(0,a.dX)(S),(0,r.z)("kueezRtbBidAdapter")}},function(e){var t;t=24283,e(e.s=t)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[73737],{63648:function(e,r,t){var n=t(4942),i=t(78640),a=t(96475),o=t(20265),s=t(64358),d=t(14699),p=t(24679);function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var l=["mimes","minduration","maxduration","placement","protocols","startdelay","skip","skipafter","minbitrate","maxbitrate","delivery","playbackmethod","api","linearity"],f={code:"kulturemedia",VERSION:"1.0.0",supportedMediaTypes:[p.Mk,p.pX],ENDPOINT:"https://ads.kulture.media/pbjs",isBidRequestValid:function(e){return function(e){if(!e.params)return!1;if(e.params.e2etest)return!0;if(!e.params.publisherId)return(0,s.logError)("Validation failed: publisherId not declared"),!1;if(!e.params.placementId)return(0,s.logError)("Validation failed: placementId not declared"),!1;if(!y(e)&&!m(e))return!1;return!0}(e)&&function(e){if(!m(e))return!0;var r=(0,o.Z)(e,"mediaTypes.banner");if(!Array.isArray(r.sizes))return!1;return!0}(e)&&function(e){if(!y(e))return!0;var r=(0,o.Z)(e,"mediaTypes.video",{}),t=(0,o.Z)(e,"params.video",{}),n=(0,o.Z)(e,"params",{});if(n&&n.e2etest)return!0;var i=u(u({},r),t);if(!Array.isArray(i.mimes)||0===i.mimes.length)return(0,s.logError)("Validation failed: mimes are invalid"),!1;if(!Array.isArray(i.protocols)||0===i.protocols.length)return(0,s.logError)("Validation failed: protocols are invalid"),!1;if(!i.context)return(0,s.logError)("Validation failed: context id not declared"),!1;if("instream"!==i.context)return(0,s.logError)("Validation failed: only context instream is supported "),!1;if(void 0===i.playerSize||!Array.isArray(i.playerSize)||!Array.isArray(i.playerSize[0]))return(0,s.logError)("Validation failed: player size not declared or is not in format [[w,h]]"),!1;return!0}(e)},buildRequests:function(e,r){if(e&&r){var t;m(e[0])?t=function(e,r){var t,n,i,a=e.map((function(e){return{id:e.bidId,banner:{format:e.mediaTypes.banner.sizes.map((function(e){return{w:e[0],h:e[1]}}))},ext:{exchange:{placementId:e.params.placementId}}}}));return{id:r.bidderRequestId,imp:a,site:{domain:null===(t=r.refererInfo)||void 0===t?void 0:t.domain,page:null===(n=r.refererInfo)||void 0===n?void 0:n.page,ref:null===(i=r.refererInfo)||void 0===i?void 0:i.ref},ext:{}}}(e,r):y(e[0])&&(t=function(e,r){var t=e.params,n=(0,o.Z)(e,"mediaTypes.video",{}),i=(0,o.Z)(e,"params.video",{}),a=u(u({},n),i);e.params&&e.params.e2etest&&(a.playerSize=[[640,480]],a.conext="instream");var d={w:parseInt(a.playerSize[0][0],10),h:parseInt(a.playerSize[0][1],10)};l.forEach((function(e){a.hasOwnProperty(e)&&(d[e]=a[e])})),d.placement=d.placement||2,"instream"===t.context&&(d.startdelay=d.startdelay||0,d.placement=1);var p={currency:e.params.cur||"USD",mediaType:"video",size:"*"},c=e.params;(0,s.isFn)(e.getFloor)?c=e.getFloor(p):t.bidfloor&&(c={floor:t.bidfloor,currency:t.currency||"USD"});var m={id:e.bidId,imp:[{id:"1",video:d,secure:b()?1:0,bidfloor:c.floor,bidfloorcur:c.currency}],site:{domain:r.refererInfo.domain,page:r.refererInfo.page,ref:r.refererInfo.ref},ext:{hb:1,prebidver:"8.7.0",adapterver:f.VERSION}};if(a.content&&(0,s.isPlainObject)(a.content)){m.site.content={};var y=["id","title","series","season","genre","contentrating","language","url"],v=["episode","prodq","context","livestream","len"],g=["cat"],h=["ext"];for(var O in i.content)y.indexOf(O)>-1&&(0,s.isStr)(a.content[O])||v.indexOf(O)>-1&&(0,s.isNumber)(a.content[O])||h.indexOf(O)>-1&&(0,s.isPlainObject)(a.content[O])||g.indexOf(O)>-1&&(0,s.isArray)(a.content[O])&&a.content[O].every((function(e){return(0,s.isStr)(e)}))?m.site.content[O]=a.content[O]:(0,s.logMessage)("KultureMedia bid adapter validation error: ",O," is either not supported is OpenRTB V2.5 or value is undefined")}return m}(e[0],r)),e[0].schain&&(0,a.N)(t,"source.ext.schain",e[0].schain),r.gdprConsent&&((0,a.N)(t,"user.ext.consent",r.gdprConsent.consentString),(0,a.N)(t,"regs.ext.gdpr",r.gdprConsent.gdprApplies?1:0)),r.uspConsent&&(0,a.N)(t,"regs.ext.us_privacy",r.uspConsent);var n=(0,o.Z)(e[0],"userIdAsEids");Array.isArray(n)&&n.length>0&&(0,a.N)(t,"user.ext.eids",n);var i=e[0].params.publisherId,d=e[0].params.placementId,p=e[0].params.networkId||1;e[0].params.e2etest&&((0,s.logMessage)("E2E test mode enabled"),i="e2etest");var c=f.ENDPOINT+"?pid="+i;return d&&(c+="&placementId="+d),p&&(c+="&nId="+p),{method:"POST",url:c,data:JSON.stringify(t)}}},interpretResponse:function(e){var r=[],t=(e||{}).body;return t&&t.seatbid&&1===t.seatbid.length&&t.seatbid[0].bid&&t.seatbid[0].bid.length?t.seatbid[0].bid.forEach((function(e){e.adm&&e.price&&r.push(function(e){var r=e.adomain&&e.adomain.length,t={requestId:e.impid,cpm:e.price,width:e.w,height:e.h,ad:e.adm,ttl:"number"==typeof e.exp?e.exp:300,creativeId:e.crid,netRevenue:true,currency:"USD",mediaType:(0,o.Z)(e,"ext.prebid.type",p.Mk)};r&&(t.meta={advertiserDomains:e.adomain});t.mediaType===p.pX&&(t.vastXml=e.adm);return t}(e))})):(0,s.logInfo)("kulturemedia.interpretResponse :: no valid responses to interpret"),r},getUserSyncs:function(e,r){(0,s.logInfo)("kulturemedia.getUserSyncs","syncOptions",e,"serverResponses",r);var t=[];return e.iframeEnabled||e.pixelEnabled?(r.forEach((function(r){var n=(0,o.Z)(r,"body.ext.usersync");if(n){var i=[];Object.keys(n).forEach((function(e){var r=n[e];r.syncs&&r.syncs.length&&(i=i.concat(r.syncs))})),i.forEach((function(e){t.push({type:"iframe"===e.type?"iframe":"image",url:e.url})})),e.iframeEnabled||(t=t.filter((function(e){return"iframe"!==e.type}))),e.pixelEnabled||(t=t.filter((function(e){return"image"!==e.type})))}})),(0,s.logInfo)("kulturemedia.getUserSyncs result=%o",t),t):t}};function m(e){return!!(0,o.Z)(e,"mediaTypes.banner")}function y(e){return!!(0,o.Z)(e,"mediaTypes.video")}function b(){return"https:"===document.location.protocol}(0,d.dX)(f),(0,i.z)("kulturemediaBidAdapter")}},function(e){var r;r=63648,e(e.s=r)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[73737],{63648:function(e,r,t){var n=t(4942),i=t(78640),a=t(96475),o=t(20265),s=t(64358),d=t(14699),p=t(24679);function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function u(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){(0,n.Z)(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}var l=["mimes","minduration","maxduration","placement","protocols","startdelay","skip","skipafter","minbitrate","maxbitrate","delivery","playbackmethod","api","linearity"],f={code:"kulturemedia",VERSION:"1.0.0",supportedMediaTypes:[p.Mk,p.pX],ENDPOINT:"https://ads.kulture.media/pbjs",isBidRequestValid:function(e){return function(e){if(!e.params)return!1;if(e.params.e2etest)return!0;if(!e.params.publisherId)return(0,s.logError)("Validation failed: publisherId not declared"),!1;if(!e.params.placementId)return(0,s.logError)("Validation failed: placementId not declared"),!1;if(!y(e)&&!m(e))return!1;return!0}(e)&&function(e){if(!m(e))return!0;var r=(0,o.Z)(e,"mediaTypes.banner");if(!Array.isArray(r.sizes))return!1;return!0}(e)&&function(e){if(!y(e))return!0;var r=(0,o.Z)(e,"mediaTypes.video",{}),t=(0,o.Z)(e,"params.video",{}),n=(0,o.Z)(e,"params",{});if(n&&n.e2etest)return!0;var i=u(u({},r),t);if(!Array.isArray(i.mimes)||0===i.mimes.length)return(0,s.logError)("Validation failed: mimes are invalid"),!1;if(!Array.isArray(i.protocols)||0===i.protocols.length)return(0,s.logError)("Validation failed: protocols are invalid"),!1;if(!i.context)return(0,s.logError)("Validation failed: context id not declared"),!1;if("instream"!==i.context)return(0,s.logError)("Validation failed: only context instream is supported "),!1;if(void 0===i.playerSize||!Array.isArray(i.playerSize)||!Array.isArray(i.playerSize[0]))return(0,s.logError)("Validation failed: player size not declared or is not in format [[w,h]]"),!1;return!0}(e)},buildRequests:function(e,r){if(e&&r){var t;m(e[0])?t=function(e,r){var t,n,i,a=e.map((function(e){return{id:e.bidId,banner:{format:e.mediaTypes.banner.sizes.map((function(e){return{w:e[0],h:e[1]}}))},ext:{exchange:{placementId:e.params.placementId}}}}));return{id:r.bidderRequestId,imp:a,site:{domain:null===(t=r.refererInfo)||void 0===t?void 0:t.domain,page:null===(n=r.refererInfo)||void 0===n?void 0:n.page,ref:null===(i=r.refererInfo)||void 0===i?void 0:i.ref},ext:{}}}(e,r):y(e[0])&&(t=function(e,r){var t=e.params,n=(0,o.Z)(e,"mediaTypes.video",{}),i=(0,o.Z)(e,"params.video",{}),a=u(u({},n),i);e.params&&e.params.e2etest&&(a.playerSize=[[640,480]],a.conext="instream");var d={w:parseInt(a.playerSize[0][0],10),h:parseInt(a.playerSize[0][1],10)};l.forEach((function(e){a.hasOwnProperty(e)&&(d[e]=a[e])})),d.placement=d.placement||2,"instream"===t.context&&(d.startdelay=d.startdelay||0,d.placement=1);var p={currency:e.params.cur||"USD",mediaType:"video",size:"*"},c=e.params;(0,s.isFn)(e.getFloor)?c=e.getFloor(p):t.bidfloor&&(c={floor:t.bidfloor,currency:t.currency||"USD"});var m={id:e.bidId,imp:[{id:"1",video:d,secure:b()?1:0,bidfloor:c.floor,bidfloorcur:c.currency}],site:{domain:r.refererInfo.domain,page:r.refererInfo.page,ref:r.refererInfo.ref},ext:{hb:1,prebidver:"8.8.0",adapterver:f.VERSION}};if(a.content&&(0,s.isPlainObject)(a.content)){m.site.content={};var y=["id","title","series","season","genre","contentrating","language","url"],v=["episode","prodq","context","livestream","len"],g=["cat"],h=["ext"];for(var O in i.content)y.indexOf(O)>-1&&(0,s.isStr)(a.content[O])||v.indexOf(O)>-1&&(0,s.isNumber)(a.content[O])||h.indexOf(O)>-1&&(0,s.isPlainObject)(a.content[O])||g.indexOf(O)>-1&&(0,s.isArray)(a.content[O])&&a.content[O].every((function(e){return(0,s.isStr)(e)}))?m.site.content[O]=a.content[O]:(0,s.logMessage)("KultureMedia bid adapter validation error: ",O," is either not supported is OpenRTB V2.5 or value is undefined")}return m}(e[0],r)),e[0].schain&&(0,a.N)(t,"source.ext.schain",e[0].schain),r.gdprConsent&&((0,a.N)(t,"user.ext.consent",r.gdprConsent.consentString),(0,a.N)(t,"regs.ext.gdpr",r.gdprConsent.gdprApplies?1:0)),r.uspConsent&&(0,a.N)(t,"regs.ext.us_privacy",r.uspConsent);var n=(0,o.Z)(e[0],"userIdAsEids");Array.isArray(n)&&n.length>0&&(0,a.N)(t,"user.ext.eids",n);var i=e[0].params.publisherId,d=e[0].params.placementId,p=e[0].params.networkId||1;e[0].params.e2etest&&((0,s.logMessage)("E2E test mode enabled"),i="e2etest");var c=f.ENDPOINT+"?pid="+i;return d&&(c+="&placementId="+d),p&&(c+="&nId="+p),{method:"POST",url:c,data:JSON.stringify(t)}}},interpretResponse:function(e){var r=[],t=(e||{}).body;return t&&t.seatbid&&1===t.seatbid.length&&t.seatbid[0].bid&&t.seatbid[0].bid.length?t.seatbid[0].bid.forEach((function(e){e.adm&&e.price&&r.push(function(e){var r=e.adomain&&e.adomain.length,t={requestId:e.impid,cpm:e.price,width:e.w,height:e.h,ad:e.adm,ttl:"number"==typeof e.exp?e.exp:300,creativeId:e.crid,netRevenue:true,currency:"USD",mediaType:(0,o.Z)(e,"ext.prebid.type",p.Mk)};r&&(t.meta={advertiserDomains:e.adomain});t.mediaType===p.pX&&(t.vastXml=e.adm);return t}(e))})):(0,s.logInfo)("kulturemedia.interpretResponse :: no valid responses to interpret"),r},getUserSyncs:function(e,r){(0,s.logInfo)("kulturemedia.getUserSyncs","syncOptions",e,"serverResponses",r);var t=[];return e.iframeEnabled||e.pixelEnabled?(r.forEach((function(r){var n=(0,o.Z)(r,"body.ext.usersync");if(n){var i=[];Object.keys(n).forEach((function(e){var r=n[e];r.syncs&&r.syncs.length&&(i=i.concat(r.syncs))})),i.forEach((function(e){t.push({type:"iframe"===e.type?"iframe":"image",url:e.url})})),e.iframeEnabled||(t=t.filter((function(e){return"iframe"!==e.type}))),e.pixelEnabled||(t=t.filter((function(e){return"image"!==e.type})))}})),(0,s.logInfo)("kulturemedia.getUserSyncs result=%o",t),t):t}};function m(e){return!!(0,o.Z)(e,"mediaTypes.banner")}function y(e){return!!(0,o.Z)(e,"mediaTypes.video")}function b(){return"https:"===document.location.protocol}(0,d.dX)(f),(0,i.z)("kulturemediaBidAdapter")}},function(e){var r;r=63648,e(e.s=r)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[1146],{90069:function(e,i,t){var d=t(78640),n=t(14699),r=t(24679),a=t(15164),o=t(48928),s=t(3193),u="lasso",c="https://trc.lhmos.com/prebid",m=(0,a.df)({bidderCode:u}),p={code:u,isBidRequestValid:function(e){return!(!e.params||!e.params.adUnitId)},buildRequests:function(e,i){if(0===e.length)return[];var t="";return m.cookiesAreEnabled&&(t=m.getCookie("aim-xr",void 0)),e.map((function(e){var d,n,a=[];e.mediaTypes&&e.mediaTypes[r.Mk]&&e.mediaTypes[r.Mk].sizes&&(a=e.mediaTypes[r.Mk].sizes);var o,u={auctionStart:i.auctionStart,url:encodeURIComponent(window.location.href),bidderRequestId:e.bidderRequestId,adUnitCode:e.adUnitCode,auctionId:e.auctionId,bidId:e.bidId,transactionId:null===(d=e.ortb2Imp)||void 0===d||null===(n=d.ext)||void 0===n?void 0:n.tid,device:encodeURIComponent(JSON.stringify((o=window.top,{ua:navigator.userAgent,width:o.innerWidth||o.document.documentElement.clientWidth||o.document.body.clientWidth,height:o.innerHeight||o.document.documentElement.clientHeight||o.document.body.clientHeight,browserLanguage:navigator.language}))),sizes:a,aimXR:t,uid:"$UID",params:JSON.stringify(e.params),crumbs:JSON.stringify(e.crumbs),prebidVersion:"8.7.0",version:3,coppa:1==s.vc.getConfig("coppa")?1:0,ccpa:i.uspConsent||void 0};return{method:"GET",url:l(t,e.params),data:u,options:{withCredentials:!0}}}))},interpretResponse:function(e){var i=e&&e.body,t=[];if(!i||!i.bid.ad)return t;var d={requestId:i.bidid,cpm:i.bid.price,currency:i.cur,width:i.bid.w,height:i.bid.h,creativeId:i.bid.crid,netRevenue:i.netRevenue,ttl:i.ttl,ad:i.bid.ad,mediaType:i.bid.mediaType,meta:{secondaryCatIds:i.bid.cat,advertiserDomains:i.bid.advertiserDomains,advertiserName:i.meta.advertiserName,mediaType:i.bid.mediaType}};return t.push(d),t},onTimeout:function(e){null!==e&&(0,o.h)(c+"/timeout",null,JSON.stringify(e),{method:"POST",withCredentials:!1})},onBidWon:function(e){(0,o.h)(c+"/won",null,JSON.stringify(e),{method:"POST",withCredentials:!1})},supportedMediaTypes:[r.Mk]};function l(e,i){var t="/request";return i&&i.dtc&&(t="/dtc-request"),e?c+t:"https://secure.adnxs.com/getuid?"+c+t}(0,n.dX)(p),(0,d.z)("lassoBidAdapter")}},function(e){var i;i=90069,e(e.s=i)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[1146],{90069:function(e,i,t){var d=t(78640),n=t(14699),r=t(24679),a=t(15164),o=t(48928),s=t(3193),u="lasso",c="https://trc.lhmos.com/prebid",m=(0,a.df)({bidderCode:u}),p={code:u,isBidRequestValid:function(e){return!(!e.params||!e.params.adUnitId)},buildRequests:function(e,i){if(0===e.length)return[];var t="";return m.cookiesAreEnabled&&(t=m.getCookie("aim-xr",void 0)),e.map((function(e){var d,n,a=[];e.mediaTypes&&e.mediaTypes[r.Mk]&&e.mediaTypes[r.Mk].sizes&&(a=e.mediaTypes[r.Mk].sizes);var o,u={auctionStart:i.auctionStart,url:encodeURIComponent(window.location.href),bidderRequestId:e.bidderRequestId,adUnitCode:e.adUnitCode,auctionId:e.auctionId,bidId:e.bidId,transactionId:null===(d=e.ortb2Imp)||void 0===d||null===(n=d.ext)||void 0===n?void 0:n.tid,device:encodeURIComponent(JSON.stringify((o=window.top,{ua:navigator.userAgent,width:o.innerWidth||o.document.documentElement.clientWidth||o.document.body.clientWidth,height:o.innerHeight||o.document.documentElement.clientHeight||o.document.body.clientHeight,browserLanguage:navigator.language}))),sizes:a,aimXR:t,uid:"$UID",params:JSON.stringify(e.params),crumbs:JSON.stringify(e.crumbs),prebidVersion:"8.8.0",version:3,coppa:1==s.vc.getConfig("coppa")?1:0,ccpa:i.uspConsent||void 0};return{method:"GET",url:l(t,e.params),data:u,options:{withCredentials:!0}}}))},interpretResponse:function(e){var i=e&&e.body,t=[];if(!i||!i.bid.ad)return t;var d={requestId:i.bidid,cpm:i.bid.price,currency:i.cur,width:i.bid.w,height:i.bid.h,creativeId:i.bid.crid,netRevenue:i.netRevenue,ttl:i.ttl,ad:i.bid.ad,mediaType:i.bid.mediaType,meta:{secondaryCatIds:i.bid.cat,advertiserDomains:i.bid.advertiserDomains,advertiserName:i.meta.advertiserName,mediaType:i.bid.mediaType}};return t.push(d),t},onTimeout:function(e){null!==e&&(0,o.h)(c+"/timeout",null,JSON.stringify(e),{method:"POST",withCredentials:!1})},onBidWon:function(e){(0,o.h)(c+"/won",null,JSON.stringify(e),{method:"POST",withCredentials:!1})},supportedMediaTypes:[r.Mk]};function l(e,i){var t="/request";return i&&i.dtc&&(t="/dtc-request"),e?c+t:"https://secure.adnxs.com/getuid?"+c+t}(0,n.dX)(p),(0,d.z)("lassoBidAdapter")}},function(e){var i;i=90069,e(e.s=i)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[86533],{74868:function(e,t,n){var r,i,s,a=n(78640),d=n(64358),o=n(14699),f=n(24679),p="8.7.0",c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var s=r[r.length-1]||{},a=[e[0]];return n.forEach((function(t,n){var i=(0,d.isInteger)(t)?r[t]:s[t];a.push(i,e[n+1])})),a.join("")}}(r||(i=["https://ads.lfstmedia.com/gate/","/","?adkey=","&ad_size=","&__location=","&__referrer=","&__wn=","&__sf=","&__fif=","&__if=","&__stamp=","&__pp=1&__hb=1&_prebid_json=1&__gz=1&deferred_format=vast_2_0,vast_3_0&__hbver=",""],s||(s=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(s)}}))),"adapter","slot","adkey","ad_size","location","referrer","wn","sf","fif","if","stamp","hbver");function u(e){return e?"1":"0"}var _={code:"lifestreet",aliases:["lsm"],supportedMediaTypes:[f.Mk,f.pX],isBidRequestValid:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params,n=void 0===t?{}:t;return!!(n.slot&&n.adkey&&n.ad_size)},buildRequests:function(e,t){return e.map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.params,r=(t.refererInfo||{}).referer,i=c({adapter:"prebid",slot:n.slot,adkey:n.adkey,ad_size:n.ad_size,location:r,referrer:r,wn:u(/fb_http/i.test(window.name)),sf:u(window.sfAPI||window.$sf),fif:u(!0===window.inDapIF),if:u(window!==window.top),stamp:(new Date).getTime(),hbver:p});if(t.gdprConsent){if(void 0!==t.gdprConsent.gdprApplies)i+="&__gdpr="+(t.gdprConsent.gdprApplies?"1":"0");void 0!==t.gdprConsent.consentString&&(i+="&__consent=".concat(t.gdprConsent.consentString))}return t.uspConsent&&(i+="&__us_privacy=".concat(t.uspConsent)),{method:"GET",url:i,bidId:e.bidId}}(e,t)}))},interpretResponse:function(e,t){var n=[],r=e.body;if(!function(e){return!/^\s*\{\s*"advertisementAvailable"\s*:\s*false/i.test(e.content)&&-1===e.content.indexOf('<VAST version="2.0"></VAST>')&&1===e.status}(r))return n;var i=r.content_type.indexOf("vast")>-1,s=i?f.pX:f.Mk,a={requestId:t.bidId,cpm:r.cpm,currency:r.currency?r.currency:"USD",width:r.width,height:r.height,creativeId:r.creativeId,netRevenue:!r.netRevenue||r.netRevenue,ttl:r.ttl?r.ttl:86400,mediaType:s,meta:{mediaType:s,advertiserDomains:r.advertiserDomains}};return r.hasOwnProperty("dealId")&&(a.dealId=r.dealId),i?void 0!==r.vastUrl?a.vastUrl=r.vastUrl:a.vastXml=r.content:a.ad=r.content,n.push(a),n}};(0,o.dX)(_),(0,a.z)("lifestreetBidAdapter")}},function(e){var t;t=74868,e(e.s=t)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[86533],{74868:function(e,t,n){var r,i,s,a=n(78640),d=n(64358),o=n(14699),f=n(24679),p="8.8.0",c=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var s=r[r.length-1]||{},a=[e[0]];return n.forEach((function(t,n){var i=(0,d.isInteger)(t)?r[t]:s[t];a.push(i,e[n+1])})),a.join("")}}(r||(i=["https://ads.lfstmedia.com/gate/","/","?adkey=","&ad_size=","&__location=","&__referrer=","&__wn=","&__sf=","&__fif=","&__if=","&__stamp=","&__pp=1&__hb=1&_prebid_json=1&__gz=1&deferred_format=vast_2_0,vast_3_0&__hbver=",""],s||(s=i.slice(0)),r=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(s)}}))),"adapter","slot","adkey","ad_size","location","referrer","wn","sf","fif","if","stamp","hbver");function u(e){return e?"1":"0"}var _={code:"lifestreet",aliases:["lsm"],supportedMediaTypes:[f.Mk,f.pX],isBidRequestValid:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params,n=void 0===t?{}:t;return!!(n.slot&&n.adkey&&n.ad_size)},buildRequests:function(e,t){return e.map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.params,r=(t.refererInfo||{}).referer,i=c({adapter:"prebid",slot:n.slot,adkey:n.adkey,ad_size:n.ad_size,location:r,referrer:r,wn:u(/fb_http/i.test(window.name)),sf:u(window.sfAPI||window.$sf),fif:u(!0===window.inDapIF),if:u(window!==window.top),stamp:(new Date).getTime(),hbver:p});if(t.gdprConsent){if(void 0!==t.gdprConsent.gdprApplies)i+="&__gdpr="+(t.gdprConsent.gdprApplies?"1":"0");void 0!==t.gdprConsent.consentString&&(i+="&__consent=".concat(t.gdprConsent.consentString))}return t.uspConsent&&(i+="&__us_privacy=".concat(t.uspConsent)),{method:"GET",url:i,bidId:e.bidId}}(e,t)}))},interpretResponse:function(e,t){var n=[],r=e.body;if(!function(e){return!/^\s*\{\s*"advertisementAvailable"\s*:\s*false/i.test(e.content)&&-1===e.content.indexOf('<VAST version="2.0"></VAST>')&&1===e.status}(r))return n;var i=r.content_type.indexOf("vast")>-1,s=i?f.pX:f.Mk,a={requestId:t.bidId,cpm:r.cpm,currency:r.currency?r.currency:"USD",width:r.width,height:r.height,creativeId:r.creativeId,netRevenue:!r.netRevenue||r.netRevenue,ttl:r.ttl?r.ttl:86400,mediaType:s,meta:{mediaType:s,advertiserDomains:r.advertiserDomains}};return r.hasOwnProperty("dealId")&&(a.dealId=r.dealId),i?void 0!==r.vastUrl?a.vastUrl=r.vastUrl:a.vastXml=r.content:a.ad=r.content,n.push(a),n}};(0,o.dX)(_),(0,a.z)("lifestreetBidAdapter")}},function(e){var t;t=74868,e(e.s=t)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[93390],{88360:function(e,t,r){var n=r(4942),o=r(71002),i=r(93324),a=r(78640),u=r(64358),c=r(48928),s=r(92797),l=r(52676);const f=l.VW;l.gn,l.Vl,l.vH,l.YB;var p=r(86104),d=r(15164),h=r(9633);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){(0,n.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var m="pre_lips",y="liveIntentId",w="liveintent.com",b=(0,d.df)({moduleType:h.y2,moduleName:y}),E={nonId:!0},I={ajaxGet:function(e,t,r,n){(0,c.O)(n)(e,{success:t,error:r},void 0,{method:"GET",withCredentials:!0})},pixelGet:function(e,t){return(0,u.triggerPixel)(e,t)}},S=!1,C=null;function x(){S=!0}function _(e){function t(e){return Object.entries(e).flatMap((function(e){var t=(0,i.Z)(e,2),r=t[0],n=t[1];return"boolean"==typeof n&&n?[r]:[]}))}return"object"===(0,o.Z)(e)?t(v(v({},E),e)):t(E)}function R(e){if(C)return C;var t={publisherId:(e=e||{}).publisherId||"any",requestedAttributes:_(e.requestedAttributesOverrides)};e.url&&(t.url=e.url),e.ajaxTimeout&&(t.ajaxTimeout=e.ajaxTimeout);var r,n,o=(r=e.liCollectConfig,n={},(r=r||{}).appId&&(n.appId=r.appId),r.fpiStorageStrategy&&(n.storageStrategy=r.fpiStorageStrategy),r.fpiExpirationDays&&(n.expirationDays=r.fpiExpirationDays),r.collectorUrl&&(n.collectorUrl=r.collectorUrl),n);!o.appId&&e.distributorId?(o.distributorId=e.distributorId,t.source=e.distributorId):t.source=e.partner||"prebid",o.wrapperName="prebid",o.identityResolutionConfig=t,o.identifiersToResolve=e.identifiersToResolve||[],o.fireEventDelay=e.fireEventDelay;var i=p.nX.getConsentData();i&&(o.usPrivacyString=i);var a=p.rp.getConsentData();return a&&(o.gdprApplies=a.gdprApplies,o.gdprConsent=a.consentString),C=O.getInitializer()(o,b,I),e.emailHash&&C.push({hash:e.emailHash}),C}function N(){if(!S&&C){var e=C.config.fireEventDelay||500;setTimeout((function(){window.liQ_instances.forEach((function(e){return e.eventBus.once(m,x)})),!S&&C&&C.fire()}),e)}}var O={moduleMode:null,name:y,setModuleMode:function(e){this.moduleMode=e},getInitializer:function(){var e=this;return function(t,r,n){return f(t,r,n,e.moduleMode)}},decode:function(e,t){var r=t&&t.params||{};return C||R(r),N(),function(e){var t={},r=e.nonId||e.unifiedId;return r&&(e.lipbid=r,delete e.unifiedId,t.lipb=e),e.uid2&&(t.uid2={id:e.uid2,ext:{provider:w}}),e.bidswitch&&(t.bidswitch={id:e.bidswitch,ext:{provider:w}}),e.medianet&&(t.medianet={id:e.medianet,ext:{provider:w}}),e.magnite&&(t.magnite={id:e.magnite,ext:{provider:w}}),t}(e)},getId:function(e){var t=R(e&&e.params||{});if(t){N();return{callback:function(e){t.resolve((function(t){e(t)}),(function(t){(0,u.logError)("".concat(y,": ID fetch encountered an error: "),t),e()}))}}}},eids:{lipb:{getValue:function(e){return e.lipbid},source:"liveintent.com",atype:3,getEidExt:function(e){if(Array.isArray(e.segments)&&e.segments.length)return{segments:e.segments}}},bidswitch:{source:"bidswitch.net",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}},medianet:{source:"media.net",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}},magnite:{source:"rubiconproject.com",atype:3,getValue:function(e){return e.id},getUidExt:function(e){if(e.ext)return e.ext}}}};(0,s.Bx)("userId",O),(0,a.z)("liveIntentIdSystem")},52676:function(e,t){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var n,o,i,a=(n=function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",o=new RegExp("^".concat(n,"$"),"i"),i=!!String.prototype.trim;function a(e){return null!=e}function u(e){return"[object Array]"===Object.prototype.toString.call(e)}function c(e){return i?(""+e).trim():(""+e).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function s(e){return"string"==typeof e}function l(e){return!!e&&"object"===r(e)&&!u(e)}function f(e,t){return new Date((new Date).getTime()+e*t)}function p(e,t,r){if(l(t)){var n=void 0;return(n="message"in t&&"string"==typeof t.message?new Error(r||t.message):new Error(r)).name=e,"stack"in t&&"string"==typeof t.stack&&(n.stack=t.stack),"lineNumber"in t&&"number"==typeof t.lineNumber&&(n.lineNumber=t.lineNumber),"columnNumber"in t&&"number"==typeof t.columnNumber&&(n.columnNumber=t.columnNumber),n}return(n=Error(r)).name=e,n}var d="li_errors",h=function(){function e(e){this.size=5,"number"==typeof e?this.size=e:"string"==typeof e&&(this.size=parseInt(e)||this.size),this.h={},this.q={}}return e.prototype.on=function(e,t,r){var n={callback:t.bind(r),unbound:t};(this.h[e]||(this.h[e]=[])).push(n);for(var o=(this.q[e]||[]).length,i=0;i<o;i++)t.call(r,this.q[e][i]);return this},e.prototype.once=function(e,t,r){var n=this,o=this.q[e]||[];if(o.length>0)return t.call(r,o[0]),this;var i=function o(i){n.off(e,o),t.call(r,i)};return i._=t,this.on(e,i,r)},e.prototype.emit=function(e,t){for(var r=(this.h[e]||[]).slice(),n=0,o=r.length;n<o;n++)r[n].callback(t);var i=this.q[e]||(this.q[e]=[]);return i.length>=this.size&&i.shift(),i.push(t),this},e.prototype.off=function(e,t){var r=this.h[e],n=[];if(r&&t)for(var o=0,i=r.length;o<i;o++)r[o].unbound!==t&&n.push(r[o]);return n.length?this.h[e]=n:delete this.h[e],this},e.prototype.emitErrorWithMessage=function(e,t,r){var n=p(e,r,t);return this.emit(d,n)},e.prototype.emitError=function(e,t){var r=p(e,t);return this.emit(d,r)},e}();t.ERRORS_CHANNEL=d,t.ReplayEmitter=h,t.UUID=n,t.expiresInDays=function(e){return f(e,864e5)},t.expiresInHours=function(e){return f(e,36e5)},t.isArray=u,t.isFunction=function(e){return!!e&&"function"==typeof e},t.isNonEmpty=function(e){return a(e)&&c(e).length>0},t.isObject=l,t.isRecord=function(e){return l(e)},t.isString=s,t.isUUID=function(e){return!!e&&o.test(c(e))},t.nonNull=a,t.safeToString=function(e){return"object"===r(e)?JSON.stringify(e):""+e},t.strEqualsIgnoreCase=function(e,t){return s(e)&&s(t)&&c(e.toLowerCase())===c(t.toLowerCase())},t.trim=c,t.wrapError=p},n(o={exports:{}},o.exports),o.exports),u=(i=a)&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i;a.ERRORS_CHANNEL,a.ReplayEmitter,a.UUID,a.expiresInDays,a.expiresInHours,a.isArray,a.isFunction,a.isNonEmpty,a.isObject,a.isRecord,a.isString,a.isUUID,a.nonNull,a.safeToString,a.strEqualsIgnoreCase,a.trim,a.wrapError;var c=u.ERRORS_CHANNEL,s=u.ReplayEmitter;u.UUID;var l=u.expiresInDays,f=u.expiresInHours,p=u.isArray,d=u.isFunction,h=u.isNonEmpty,g=u.isObject,v=u.isRecord,m=u.isString,y=u.isUUID,w=u.nonNull,b=u.safeToString,E=u.strEqualsIgnoreCase,I=u.trim,S=u.wrapError;function C(e,t,r){return h(t)?[[e,r(t)]]:[]}function x(e,t){return C(e,t,(function(e){return encodeURIComponent(e)}))}function _(e,t,r){return C(e,t,(function(e){return encodeURIComponent(r(e))}))}function R(e,t,r){return h(t)&&d(r)&&r(t)?[[e,encodeURIComponent(t)]]:[]}var N=function(){function e(e,t,r,n,o){this.url=e&&e.collectorUrl||"https://rp.liadm.com",this.calls=t,this.eventBus=r,this.onload=n,this.presend=o}return e.prototype.callBakers=function(e){try{var t=JSON.parse(e).bakers;if(p(t))for(var r=0;r<t.length;r++)this.calls.pixelGet("".concat(t[r],"?dtstmp=").concat(Date.now()))}catch(t){this.eventBus.emitErrorWithMessage("CallBakers","Error while calling bakers with ".concat(e),t)}},e.prototype.sendState=function(e,t,r){var n;if(e.sendsPixel()){d(this.presend)&&this.presend();var o=x("dtstmp",Date.now()),i=(n=e.asQuery()).prependParams.apply(n,o).toQueryString();r("".concat(this.url,"/").concat(t).concat(i))}},e.prototype.sendAjax=function(e){var t=this;this.sendState(e,"j",(function(r){t.calls.ajaxGet(r,(function(e){d(t.onload)&&t.onload(),t.callBakers(e)}),(function(r){t.sendPixel(e),t.eventBus.emitError("AjaxFailed",r)}),0)}))},e.prototype.sendPixel=function(e){var t=this;this.sendState(e,"p",(function(e){return t.calls.pixelGet(e,t.onload)}))},e}();function O(e){var t=function(e){e="".concat(e);for(var t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return null;var r,n="";for(t=0;t<e.length;t+=3){var o=[void 0,void 0,void 0,void 0];o[0]=e.charCodeAt(t)>>2,o[1]=(3&e.charCodeAt(t))<<4,e.length>t+2?(o[1]|=e.charCodeAt(t+1)>>4,o[2]=(15&e.charCodeAt(t+1))<<2,o[2]|=e.charCodeAt(t+2)>>6,o[3]=63&e.charCodeAt(t+2)):e.length>t+1&&(o[1]|=e.charCodeAt(t+1)>>4,o[2]=(15&e.charCodeAt(t+1))<<2);for(var i=0;i<o.length;i++){var a=o[i];n+=void 0===a?"=":(r=a)>=0&&r<64?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[r]:void 0}}return n}(e);return t||""}var D=/[+/]|=+$/g,U={"+":"-","/":"_"};function j(e){return U[e]||""}function A(e){var t=null,r=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(e,t){return String.fromCharCode(parseInt("0x"+t,16))}));try{t=window&&d(window.btoa)?window.btoa:O}catch(e){t=O}return t(r).replace(D,j)}for(var L=[],k=0;k<64;)L[k]=0|4294967296*Math.sin(++k%Math.PI);for(var F,M=function(e){var t,r,n,o=[t=1732584193,r=4023233417,~t,~r],i=[],a=unescape(encodeURI(e))+"€",u=a.length;for(e=--u/4+2|15,i[--e]=8*u;~u;)i[u>>2]|=a.charCodeAt(u)<<8*u--;for(k=a=0;k<e;k+=16){for(u=o;a<64;u=[n=u[3],t+((n=u[0]+[t&r|~t&n,n&t|~n&r,t^r^n,r^(t|~n)][u=a>>4]+L[a]+~~i[k|15&[a,5*a+1,3*a+5,7*a][u]])<<(u=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*u+a++%4])|n>>>-u),t,r])t=0|u[1],r=u[2];for(a=4;a;)o[--a]+=u[a]}for(e="";a<32;)e+=(o[a>>3]>>4*(1^a++)&15).toString(16);return e},T=function(e){var t,r,n,o,i,a=[],u=[r=1732584193,n=4023233417,~r,~n,3285377520],c=[],s=unescape(encodeURI(e))+"€",l=s.length;for(c[e=--l/4+2|15]=8*l;~l;)c[l>>2]|=s.charCodeAt(l)<<8*~l--;for(t=l=0;t<e;t+=16){for(r=u;l<80;r=[r[4]+(a[l]=l<16?~~c[t+l]:2*s|s<0)+1518500249+[n&o|~n&i,s=341275144+(n^o^i),882459459+(n&o|n&i|o&i),s+1535694389][l++/5>>2]+((s=r[0])<<5|s>>>27),s,n<<30|n>>>2,o,i])s=a[l-3]^a[l-8]^a[l-14]^a[l-16],n=r[1],o=r[2],i=r[3];for(l=5;l;)u[--l]+=r[l]}for(s="";l<40;)s+=(u[l>>3]>>4*(7-l++)&15).toString(16);return s},P=18,V=[],B=[];P>1;P--)for(F=P;F<320;)V[F+=P]=1;function W(e,t){return 4294967296*Math.pow(e,1/t)|0}for(F=0;F<64;)V[++P]||(B[F]=W(P,2),V[F++]=W(P,3));function q(e,t){return e>>>t|e<<-t}var Q=function(e){var t=B.slice(P=F=0,8),r=[],n=unescape(encodeURI(e))+"€",o=n.length;for(r[e=--o/4+2|15]=8*o;~o;)r[o>>2]|=n.charCodeAt(o)<<8*~o--;for(o=[];P<e;P+=16){for(W=t.slice();F<64;W.unshift(n+(q(n=W[0],2)^q(n,13)^q(n,22))+(n&W[1]^W[1]&W[2]^W[2]&n)))W[3]+=n=0|(o[F]=F<16?~~r[F+P]:(q(n=o[F-2],17)^q(n,19)^n>>>10)+o[F-7]+(q(n=o[F-15],7)^q(n,18)^n>>>3)+o[F-16])+W.pop()+(q(n=W[4],6)^q(n,11)^q(n,25))+(n&W[5]^~n&W[6])+V[F++];for(F=8;F;)t[--F]+=W[F]}for(n="";F<64;)n+=(t[F>>3]>>4*(7-F++)&15).toString(16);return n},H=new Map([[32,"md5"],[40,"sha1"],[64,"sha256"]]);function G(e){var t=J(e);return!!t&&H.has(t.length)}function J(e){var t=e.match(/(\s+)?[a-f0-9]{32,64}(\s+)?/gi);return t&&t.map(I)[0]}function z(e){var t=e.toLowerCase();return{md5:M(t),sha1:T(t),sha256:Q(t)}}function X(e){return/\S+(@|%40)\S+\.\S+/.test(e)}function Y(e){return/\S+(@|%40)\S+\.\S+/.test(e)}function Z(e){for(var t=function(e){for(var t=[],r=new RegExp("([\\w\\d.+-]+(@|%40)[\\w\\d-]+.[\\w\\d.-]+)","g"),n=r.exec(e);n;)t.push(I(n[1])),n=r.exec(e);return t}(e),r=[],n=e,o=0;o<t.length;o++){var i=t[o],a=z(i);n=n.replace(i,a.md5),r.push(a)}return{stringWithoutRawEmails:n,hashesFromOriginalString:r}}function $(e,t){return"string"==typeof t&&X(I(t))?"*********":t}var K=function(e){var t="";return e.forEach((function(e){var r=0===t.length?"?":"&";e&&e.length&&2===e.length&&e[0]&&e[1]&&(t="".concat(t).concat(r).concat(e[0],"=").concat(e[1]))})),t};function ee(e){return function(e){return"false"!==e&&("true"===e||e)}(function(e){return"null"===e||"undefined"===e?null:e}(function(e){return isNaN(+e)?e:+e}(e)))}function te(e,t){if(t in e){var r=e[t];return p(r)?r.map((function(e){return ee(ne(e))})):ee(ne(r))}}function re(e){var t,r,n,o={};return e&&-1!==(t=e.indexOf("?"))&&(r=e.slice(t+1))&&(-1===(n=r.indexOf("#"))||(r=r.slice(0,n)))?(r.split("&").forEach((function(e){if(e){var t=void 0,r=e.split("=");t=r[0];var n=2===r.length?r[1]:"true";if("[]"===t.slice(-2)&&(t=t.slice(0,-2)),t in o){var i=o[t];p(i)?i.push(n):o[t]=[i,n]}else o[t]=n}})),o):o}function ne(e){return e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)}var oe=function(){function e(e){var t=e.match(/^(https?\:\/\/)?(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(null===t)throw new TypeError("Failed to parse URL: ".concat(e));this.protocol=t[1]||"",this.host=t[2]||"",this.hostname=t[3]||"",this.port=t[4]||"",this.pathname=t[5]||"",this.search=t[6]||"",this.hash=t[7]||""}return e.prototype.toString=function(){return"".concat(this.protocol).concat(this.host).concat(this.pathname).concat(this.search).concat(this.hash)},e}(),ie=["items","itemids"],ae=["email","emailhash","hash","hashedemail"];var ue=[function(e){for(var t,r=e.eventSource||{},n=0,o=Object.keys(r);n<o.length;n++){var i=o[n],a=i.toLowerCase();if(ae.indexOf(a)>-1){var u=I(b(r[i])),c=(t=void 0,(t=u.match(/\S+(@|%40)\S+\.\S+/))&&t.map(I)[0]),s=J(u);if(c){var l=z(ne(c));return ce({hashedEmail:[l.md5,l.sha1,l.sha256]},e)}if(s&&G(s))return ce({hashedEmail:[s.toLowerCase()]},e)}}return e},function(e){var t=e.eventSource||{};return Object.keys(t).forEach((function(e){var r=e.toLowerCase(),n=t[e];ie.indexOf(r)>-1&&p(n)&&n.length>10&&(n.length=10)})),{}}];function ce(e,t){var r={};function n(e){return g(e)?e:{}}function o(e){return Object.keys(e)}var i=n(e),a=n(t);return o(i).forEach((function(e){r[e]=i[e]})),o(a).forEach((function(e){r[e]=a[e]})),r}var se="full",le="no_path";function fe(e){if(void 0===e.pageUrl||0===e.pageUrl.length)return["",!1,[]];if(function(e){return!(void 0!==e.urlCollectionMode&&e.urlCollectionMode!==se||void 0!==e.queryParametersFilter&&""!==e.queryParametersFilter)}(e))return[e.pageUrl,!1,[]];var t=new oe(e.pageUrl),r=function(e){var t=re(e),r=[];return Object.keys(t).forEach((function(e){r.push([e,te(t,e)])})),r}(t.search),n=function(e,t){return t.urlCollectionMode===le&&e.pathname.length>1}(t,e),o=function(e,t){if(void 0===t.queryParametersFilter||""===t.queryParametersFilter)return[];var r=new RegExp(t.queryParametersFilter);return e.map((function(e){return e[0]})).filter((function(e){return r.test(e)}))}(r,e);return n&&(t.pathname="/"),o.length>0&&(t.search=function(e,t){var r=e.filter((function(e){return!t.includes(e[0])})).map((function(e){return"".concat(e[0],"=").concat(e[1])}));return r.length>0?"?".concat(r.join("&")):""}(r,o)),[t.toString(),n,o]}var pe=["setemail","setemailhash","sethashedemail"];function de(e,t){return function(r){var n=r[e];return w(n)?t(n):[]}}var he=[de("appId",(function(e){return x("aid",e)})),de("distributorId",(function(e){return x("did",e)})),de("eventSource",(function(e){return C("se",e,(function(e){return A(JSON.stringify(e,$))}))})),de("liveConnectId",(function(e){return x("duid",e)})),de("trackerName",(function(e){return x("tna",e)})),function(e){if(w(e.pageUrl)){var t=fe(e),r=t[0],n=t[1],o=t[2],i=[x("pu",r),R("pu_rp",n?1:0,(function(e){return 1===e})),_("pu_rqp",o,(function(e){return e.join(",")}))];return Array.prototype.concat.apply([],i)}return[]},de("errorDetails",(function(e){return C("ae",e,(function(e){return A(JSON.stringify(e))}))})),de("retrievedIdentifiers",(function(e){var t=[];return p(e)&&e.forEach((function(e){return t.push.apply(t,x("ext_".concat(e.name),e.value))})),t})),de("hashesFromIdentifiers",(function(e){var t=[];return p(e)&&e.forEach((function(e){return t.push.apply(t,x("scre","".concat(e.md5,",").concat(e.sha1,",").concat(e.sha256)))})),t})),de("decisionIds",(function(e){return _("li_did",e,(function(e){return e.join(",")}))})),de("hashedEmail",(function(e){return _("e",e,(function(e){return e.join(",")}))})),de("usPrivacyString",(function(e){return x("us_privacy",e)})),de("wrapperName",(function(e){return x("wpn",e)})),de("gdprApplies",(function(e){return _("gdpr",e,(function(e){return e?1:0}))})),de("privacyMode",(function(e){return R("n3pc",e?1:0,(function(e){return 1===e}))})),de("privacyMode",(function(e){return R("n3pct",e?1:0,(function(e){return 1===e}))})),de("privacyMode",(function(e){return R("nb",e?1:0,(function(e){return 1===e}))})),de("gdprConsent",(function(e){return x("gdpr_consent",e)})),de("referrer",(function(e){return x("refr",e)})),de("contextElements",(function(e){return x("c",e)}))],ge=function(){function e(e){this.tuples=e}return e.prototype.prependParams=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=this.tuples;return n.unshift.apply(n,t),new e(n)},e.prototype.toQueryString=function(){return K(this.tuples)},e}(),ve=function(){function e(t,r){this.data=e.safeFiddle(t,r),this.eventBus=r}return e.safeFiddle=function(e,t){try{return r=JSON.parse(JSON.stringify(e)),g(r.eventSource)?ue.reduce((function(e,t){return ce(e,t(e))}),r):r}catch(e){return console.error(e),t.emitErrorWithMessage("StateCombineWith","Error while extracting event data",e),{}}var r},e.prototype.combineWith=function(t){return new e(ce(this.data,t),this.eventBus)},e.prototype.sendsPixel=function(){var e=g(this.data.eventSource)?this.data.eventSource:{},t=Object.keys(e).filter((function(e){return"eventname"===e.toLowerCase()||"event"===e.toLowerCase()})),r=t&&t.length>=1&&t[0],n=r&&I(e[r]);return!n||-1===pe.indexOf(n.toLowerCase())},e.prototype.asTuples=function(){var e=this,t=[];return he.forEach((function(r){var n=r(e.data);n&&p(n)&&t.push.apply(t,n)})),t},e.prototype.asQuery=function(){return new ge(this.asTuples())},e}();function me(e){void 0===e&&(e=window);for(var t,r=be((function(){return e.location.ancestorOrigins}))||[],n=[],o=e;o!==top;)n.push(o),o=o.parent;n.push(o);for(var i=function(e){t=be((function(){return n[e].location.href})),0!==e&&(t||(t=be((function(){return n[e-1].document.referrer}))),t||(t=r[e-1]))},a=n.length-1;a>=0&&!t;a--)i(a);return t}function ye(e,t,r){if(!e&&t&&""!==t&&r){var n=function(e,t){for(var r=window.document.querySelectorAll(e),n="",o=0;o<r.length;o++){var i=n+Z(r[o].outerHTML).stringWithoutRawEmails;if(!(we(i)<=t))return n;n=i}return n}(t,r);return A(n)}return""}function we(e){var t=encodeURI(e).split(/%..|./).length-1;return 4*Math.ceil(t/3)}function be(e){try{return e()}catch(e){return}}var Ee=null;function Ie(e){if(Ee)return Ee;var t,r={pageUrl:me(),referrer:(void 0===t&&(t=window),be((function(){return t.top.document.referrer}))),contextElements:ye(e.privacyMode,e.contextSelectors,e.contextElementsLength)};return Ee=r,r}var Se={errorDetails:{message:"Unknown message",name:"Unknown name"}};function Ce(e){try{var t=1*e;return isNaN(t)?void 0:t}catch(e){}}function xe(e){try{return m(e)&&e.length&&e.length>120?"".concat(e.substr(0,120),"..."):"".concat(e)}catch(e){}}function _e(e,t,r){try{var n=new N(e,t,r);r.on(c,(function(t){n.sendPixel(new ve(function(e){return v(e)?{errorDetails:{message:xe(e.message)||"",name:xe(e.name)||"",stackTrace:xe(e.stack),lineNumber:Ce(e.lineNumber),columnNumber:Ce(e.columnNumber),fileName:xe(e.fileName)}}:Se}(t),r).combineWith(e||{}).combineWith(Ie({})))}))}catch(e){console.error("handlers.error.register",e)}}var Re="__li__evt_bus",Ne=c,Oe="lips",De="pre_lips",Ue="_li_duid",je="https://idx.liadm.com/idex",Ae=[],Le=Object.freeze({__proto__:null,EVENT_BUS_NAMESPACE:Re,ERRORS_PREFIX:Ne,PIXEL_SENT_PREFIX:Oe,PRELOAD_PIXEL:De,PEOPLE_VERIFIED_LS_ENTRY:Ue,DEFAULT_IDEX_EXPIRATION_HOURS:1,DEFAULT_IDEX_AJAX_TIMEOUT:5e3,DEFAULT_IDEX_URL:je,DEFAULT_REQUESTED_ATTRIBUTES:Ae}),ke="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Fe=ke.length,Me=Math.pow(2,48)-1,Te=function(){var e="undefined"!=typeof window?window:null,t=e&&(e.crypto||e.msCrypto);if(t)return function(){var e=new Uint8Array(1);return t.getRandomValues(e),e[0]/255};return function(){return Math.random()}}();function Pe(e,t){if(e>Me)throw(r=new Error("cannot encode time greater than "+Me)).source="Ulid",r;for(var r,n,o="";t>0;t--)o=ke.charAt(n=e%Fe)+o,e=(e-n)/Fe;return o}function Ve(){var e=Math.floor(Te()*Fe);return e===Fe&&(e=Fe-1),ke.charAt(e)}function Be(){return Pe(Date.now(),10)+function(e){for(var t="";e>0;e--)t=Ve()+t;return t}(16)}var We="_li_dcdm_c";function qe(e,t,r){try{var n=e.expirationDays||730,o=function(){var e=t.getCookie(We);if(e)return e;for(var r=document.domain||document.location&&document.location.host||window&&window.location&&window.location.host||"localhost",n=r.split("."),o=n.length;o>0;o--){var i=".".concat(n.slice(o-1,n.length).join("."));if(t.setCookie(We,i,void 0,"Lax",i),t.getCookie(We))return i}return".".concat(r)}(),i={expires:n,domain:o},a=function(e,n){try{var o=t.get(e),a=l(i.expires);return o?t.set(e,o,a,i.domain):t.set(e,n,a,i.domain),t.get(e)}catch(e){return r.emitErrorWithMessage("CookieLsGetOrAdd","Failed manipulating cookie jar or ls",e),null}}("_lc2_fpi","".concat((u=o,void 0===c&&(c=12),T(u.replace(/^\./,"")).substring(0,c)),"--").concat(Be()).toLocaleLowerCase())||void 0;return a&&t.setDataInLocalStorage(Ue,a),{domain:o,liveConnectId:a,peopleVerifiedId:a}}catch(e){return r.emitErrorWithMessage("IdentifiersResolve","Error while managing identifiers",e),{}}var u,c}var Qe=l(30),He="lidids.",Ge=function(e,t,r){return r.indexOf(e)===t},Je=function(e){return e&&I(e).length>0};function ze(e,t,r){var n,o,i={};try{var a=[].concat(e.pageUrl&&(n=e.pageUrl,o="li_did",te(re(n),o))||[]),u=t.findSimilarCookies(He);a.map(I).filter(Je).filter(y).filter(Ge).forEach((function(r){return n=r,o=e.domain,void(n&&t.setCookie("".concat(He).concat(n),n,Qe,"Lax",o));var n,o})),i={decisionIds:a.concat(u).map(I).filter(Je).filter(y).filter(Ge)}}catch(e){r.emitErrorWithMessage("DecisionsResolve","Error while managing decision ids",e)}return i}function Xe(e,t,r){try{return function(e,t){for(var r=[],n=[],o=0;o<e.length;o++){var i=e[o],a=t.getCookie(i)||t.getDataFromLocalStorage(i);if(a){var u=Z(b(a));r.push({name:i,value:u.stringWithoutRawEmails}),n=n.concat(u.hashesFromOriginalString)}}return{retrievedIdentifiers:r,hashesFromIdentifiers:Ye(n)}}(function(e){var t=[];e.identifiersToResolve&&(p(e.identifiersToResolve)?t=e.identifiersToResolve:m(e.identifiersToResolve)&&(t=e.identifiersToResolve.split(",")));for(var r=0;r<t.length;r++)t[r]=t[r].trim();return t}(e),t)}catch(e){return r&&r.emitError("IdentifiersEnricher",e),{}}}function Ye(e){for(var t=new Set,r=[],n=0;n<e.length;n++)t.has(e[n].md5)||(r.push(e[n]),t.add(e[n].md5));return r}function Ze(e){return h(e)&&h(e.gdprApplies)?{privacyMode:!!e.gdprApplies}:{}}function $e(e,t){if(e&&e.appId&&e.distributorId){var r=e.distributorId;delete e.distributorId,t.emitError("AppIdAndDistributorIdPresent",new Error("Event contains both appId: ".concat(e.appId," and distributorId: ").concat(r,". Ignoring distributorId")))}return e}var Ke={get:function(){return null},set:function(){}},et=function(){function e(e,t,r,n){var o,i,a,u,c,s,l=this;this.eventBus=n,this.calls=t,this.cache=r,this.idexConfig=e.identityResolutionConfig||{},this.externalIds=e.retrievedIdentifiers||[],this.source=this.idexConfig.source||"unknown",this.publisherId=this.idexConfig.publisherId||"any",this.url=this.idexConfig.url||je,this.timeout=this.idexConfig.ajaxTimeout||5e3,this.requestedAttributes=this.idexConfig.requestedAttributes||Ae,this.tuples=[],(o=this.tuples).push.apply(o,x("duid",e.peopleVerifiedId)),(i=this.tuples).push.apply(i,x("us_privacy",e.usPrivacyString)),(a=this.tuples).push.apply(a,C("gdpr",e.gdprApplies,(function(e){return encodeURIComponent(e?1:0)}))),(u=this.tuples).push.apply(u,R("n3pc",e.privacyMode?"1":"0",(function(e){return"1"===e}))),(c=this.tuples).push.apply(c,x("gdpr_consent",e.gdprConsent)),(s=this.tuples).push.apply(s,x("did",e.distributorId)),this.externalIds.forEach((function(e){var t;(t=l.tuples).push.apply(t,x(e.name,e.value))}));this.requestedAttributes.filter((function(t){return"uid2"!==t||!e.privacyMode})).forEach((function(e){var t;(t=l.tuples).push.apply(t,x("resolve",e))}))}return e.make=function(t,r,n,o){var i=t||{},a=function(e,t,r,n){var o="__li_idex_cache";function i(e){if(e){var t=A(JSON.stringify(e));return"".concat(o,"_").concat(t)}return o}return{get:function(e){var t=r.get(i(e));return t?JSON.parse(t):t},set:function(o,a,u){try{r.set(i(o),JSON.stringify(a),u||f(e),t)}catch(e){n.emitError("IdentityResolverStorage",e)}}}}((i.identityResolutionConfig||{}).expirationHours||1,i.domain,r,o);return new e(i,n,a,o)},e.makeNoCache=function(t,r,n){return new e(t||{},r,Ke,n)},e.prototype.responseReceived=function(e,t){var r=this;return function(n,o){var i={};if(n)try{i=JSON.parse(n)}catch(e){console.error("Error parsing response",e),r.eventBus.emitError("IdentityResolverParser",e)}var a=function(e){if(g(e)&&"getResponseHeader"in e&&d(e.getResponseHeader)){var t=e.getResponseHeader("expires");if(t)return new Date(t)}}(o);r.cache.set(e,i,a),t(i)}},e.prototype.unsafeResolve=function(e,t,r){var n=this.cache.get(r);n?e(n):this.calls.ajaxGet(this.getUrl(r),this.responseReceived(r,e),t,this.timeout)},e.prototype.getUrl=function(e){var t=this.tuples.slice().concat(function(e){if(e&&g(e)){var t=[];return Object.keys(e).forEach((function(r){var n=e[r];n&&!g(n)&&n.length&&(p(n)?n.forEach((function(e){return t.push([encodeURIComponent(r),encodeURIComponent(e)])})):t.push([encodeURIComponent(r),encodeURIComponent(n)]))})),t}return[]}(e)),r=K(t);return"".concat(this.url,"/").concat(this.source,"/").concat(this.publisherId).concat(r)},e.prototype.resolve=function(e,t,r){try{this.unsafeResolve(e,t,r||{})}catch(e){console.error("IdentityResolve",e),t(),this.eventBus&&this.eventBus.emitError("IdentityResolve",e)}},e}();var tt=function(e,t){return tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},tt(e,t)};var rt="ls",nt="none",ot="disabled",it=function(){},at=function(){function e(e,t,r){this.obj=e,this.name=t,this.errors=[],this.eventBus=r}return e.prototype.wrap=function(e){if(g(this.obj)){var t=this.obj[e];if(d(t))return t.bind(this.obj)}return this.errors.push(e),it},e.prototype.reportErrors=function(){this.errors.length>0&&this.eventBus.emitErrorWithMessage(this.name,"The functions '".concat(JSON.stringify(this.errors),"' were not provided"))},e}(),ut=function(){};function ct(e,t,r){return E(t,ot)?ut:e.wrap(r)}function st(e,t,r){return E(t,nt)?ut:ct(e,t,r)}var lt=function(){function e(e,t){this.minimalFunctions={getCookie:ct(t,e,"getCookie"),getDataFromLocalStorage:ct(t,e,"getDataFromLocalStorage"),localStorageIsEnabled:st(t,e,"localStorageIsEnabled")}}return e.make=function(t,r,n){var o=new at(r,"ReadOnlyStorageHandler",n),i=new e(t,o);return o.reportErrors(),i},e.prototype.localStorageIsEnabled=function(){return!!this.minimalFunctions.localStorageIsEnabled()},e.prototype.getCookie=function(e){return this.minimalFunctions.getCookie(e)||null},e.prototype.getDataFromLocalStorage=function(e){return this.minimalFunctions.getDataFromLocalStorage(e)||null},e}(),ft=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.storageStrategy=t,n.functions={setCookie:st(r,t,"setCookie"),removeDataFromLocalStorage:st(r,t,"removeDataFromLocalStorage"),setDataInLocalStorage:st(r,t,"setDataInLocalStorage"),findSimilarCookies:ct(r,t,"findSimilarCookies")},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}tt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}(t,e),t.make=function(e,r,n){var o=new at(r,"StorageHandler",n),i=new t(e,o);return o.reportErrors(),i},t.prototype.get=function(e){if(E(this.storageStrategy,nt)||E(this.storageStrategy,ot))return null;if(E(this.storageStrategy,rt)){if(this.localStorageIsEnabled()){var t="".concat(e,"_exp"),r=this.getDataFromLocalStorage(t);return r&&Date.parse(r)<=(new Date).getTime()&&this.removeDataFromLocalStorage(e),this.getDataFromLocalStorage(e)}return null}return this.getCookie(e)},t.prototype.set=function(e,t,r,n){if(E(this.storageStrategy,nt)||E(this.storageStrategy,ot));else if(E(this.storageStrategy,rt)){if(this.localStorageIsEnabled()){var o="".concat(e,"_exp");this.setDataInLocalStorage(e,t),this.setDataInLocalStorage(o,"".concat(r))}}else this.setCookie(e,t,r,"Lax",n)},t.prototype.setCookie=function(e,t,r,n,o){this.functions.setCookie(e,t,r,n,o)},t.prototype.setDataInLocalStorage=function(e,t){this.functions.setDataInLocalStorage(e,t)},t.prototype.removeDataFromLocalStorage=function(e){this.functions.removeDataFromLocalStorage(e)},t.prototype.findSimilarCookies=function(e){return this.functions.findSimilarCookies(e)||[]},t}(lt),pt=function(){function e(e,t){var r=new at(e,"CallHandler",t);this.functions={ajaxGet:r.wrap("ajaxGet"),pixelGet:r.wrap("pixelGet")},r.reportErrors()}return e.prototype.ajaxGet=function(e,t,r,n){this.functions.ajaxGet(e,t,r,n)},e.prototype.pixelGet=function(e,t){this.functions.pixelGet(e,t)},e}();function dt(e){return new s("number"==typeof e&&e>=0?e:5)}function ht(e){d(e.emitErrorWithMessage)&&d(e.emitError)||(e.emitErrorWithMessage=function(t,r,n){void 0===n&&(n={});var o=S(t,r,n);return e.emit(c,o)},e.emitError=function(t,r){return e.emitErrorWithMessage(t,r.message,r)})}function gt(e){return void 0===e&&(e=5),dt(e)}function vt(e){var t=window[e].eventBus||window.__li__evt_bus;return ht(t),t}var mt=Object.freeze({__proto__:null,LocalEventBus:gt,GlobalEventBus:function(e,t,r){try{return window||r(new Error("Bus can only be attached to the window, which is not present")),window&&!window[e]&&(window[e]=dt(t)),ht(window[e]),window[e]}catch(e){console.error("events.bus.init",e),r(e)}},getAvailableBus:vt}),yt={};function wt(e,t,r,n){if(e&&g(e))if("config"in e)n.emitErrorWithMessage("StrayConfig","Received a config after LC has already been initialised",new Error(JSON.stringify(e)));else{var o=r.combineWith({eventSource:e});yt.hashedEmail=yt.hashedEmail||o.data.hashedEmail;var i=ce({eventSource:e},yt);t.sendAjax(r.combineWith(i))}else n.emitErrorWithMessage("EventNotAnObject","Received event was not an object",new Error(e))}function bt(e,t,r,n){try{e.forEach((function(e){var o=e;p(o)?o.forEach((function(e){return wt(e,t,r,n)})):wt(o,t,r,n)}))}catch(e){console.error("Error sending events",e),n.emitErrorWithMessage("LCPush","Failed sending an event",e)}}function Et(e,t,r,n){try{var o=new pt(r,n),i=$e(e,n),a=ce(i,Ze(i));_e(a,o,n);var u=a.privacyMode?ot:a.storageStrategy,c=ft.make(u,t,n),s=function(e,t){return e.combineWith(t(e.data,c,n))},l=[qe,ze],f=[Ie,Xe].reduce(s,new ve(a,n)),p=l.reduce(s,f),d=ce(a,{peopleVerifiedId:p.data.peopleVerifiedId}),h=new N(a,o,n,(function(){return n.emit(Oe,d)}),(function(){return n.emit(De,"0")})),g=et.make(p.data,c,o,n),v=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return bt(e,h,p,n)};return{push:v,fire:function(){return v({})},peopleVerifiedId:p.data.peopleVerifiedId,ready:!0,resolve:g.resolve.bind(g),resolutionCallUrl:g.getUrl.bind(g),config:i,eventBus:n}}catch(e){console.error(e),n.emitErrorWithMessage("LCConstruction","Failed to build LC",e)}}function It(e,t,r,n){var o=window[e.globalVarName]||[],i=function(e){try{if(window&&window[e.globalVarName]&&window[e.globalVarName].ready){var t=window[e.globalVarName].config&&function(e,t){if(e.appId!==t.appId||e.wrapperName!==t.wrapperName||e.collectorUrl!==t.collectorUrl)return{appId:[e.appId,t.appId],wrapperName:[e.wrapperName,t.wrapperName],collectorUrl:[e.collectorUrl,t.collectorUrl]}}(window[e.globalVarName].config,e);if(t){var r=new Error;r.name="ConfigSent",r.message="Additional configuration received";var n=vt(e.globalVarName);window[e.globalVarName].eventBus=n,n.emitErrorWithMessage("LCDuplication",JSON.stringify(t),r)}return window[e.globalVarName]}}catch(e){console.error("Could not initialize error bus")}}(e)||Et(e,t,r,n)||o;if(p(o))for(var a=0;a<o.length;a++)i.push(o[a]);return window[i.config.globalVarName]=i,window.liQ_instances=window.liQ_instances||[],0===window.liQ_instances.filter((function(e){return e.config.globalVarName===i.config.globalVarName})).length&&window.liQ_instances.push(i),i}function St(e,t,r,n){var o,i=g(e)&&e||{},a=n||gt();try{o=i.globalVarName?It(i,t,r,a):function(e,t,r,n){var o=Et(e,t,r,n);return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(o),o}(i,t,r,a)}catch(e){console.error(e),a.emitErrorWithMessage("LCConstruction","Failed to build LC",e)}return o}function Ct(e,t,r){try{return function(e,t){e.identifiersToResolve=e.identifiersToResolve||[];for(var r=p(e.identifiersToResolve)?e.identifiersToResolve:b(e.identifiersToResolve).split(","),n=[],o=0;o<r.length;o++){var i=I(r[o]),a=t.getCookie(i)||t.getDataFromLocalStorage(i);!a||Y(b(a))||X(b(a))||n.push({name:i,value:b(a)})}return{retrievedIdentifiers:n}}(e,t)}catch(e){return r.emitError("IdentifiersEnrich",e),{}}}function xt(e,t,r,n,o){try{var i=new pt(r,n),a=$e(e,n),u=ce(a,Ze(a)),c=u.privacyMode?ot:u.storageStrategy,s=lt.make(c,t,n),l=ce(u,function(e,t,r){try{return{peopleVerifiedId:e.peopleVerifiedId||t.getDataFromLocalStorage(Ue)||void 0}}catch(e){return r.emitError("PeopleVerifiedEnrich",e),{}}}(u,s,n)),f=ce(l,Ct(l,s,n)),p=et.makeNoCache(f,i,n);return{push:function(e){return o(e)},fire:function(){return o({})},peopleVerifiedId:f.peopleVerifiedId,ready:!0,resolve:p.resolve.bind(p),resolutionCallUrl:p.getUrl.bind(p),config:a,eventBus:n}}catch(e){console.error(e)}}function _t(e,t,r,n){var o=g(e)&&e||{},i=n||gt();try{return o.globalVarName?function(e,t,r,n){var o=window[e.globalVarName]=window[e.globalVarName]||[],i=xt(e,t,r,n,o.push.bind(o));return window.liQ_instances=window.liQ_instances||[],0===window.liQ_instances.filter((function(e){return e.config.globalVarName===i.config.globalVarName})).length&&window.liQ_instances.push(i),i}(o,t,r,i):function(e,t,r,n){var o=xt(e,t,r,n,(function(e){}));return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(o),o}(o,t,r,i)}catch(e){console.error(e)}return{}}t.VW=function(e,t,r,n,o){var i="minimal"===n||!1,a=o||gt();return(i?_t:St)(g(e)&&e||{},t,r,a)},t.gn=_t,t.Vl=St,t.vH=Le,t.YB=mt}},function(e){var t;t=88360,e(e.s=t)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[93390],{71175:function(t,e,r){var n=r(4942),o=r(71002),i=r(93324),a=r(78640),u=r(64358),c=r(48928),s=r(92797),l=r(32548);const f=l.VW;l.gn,l.Vl,l.vH,l.YB;var d=r(86104),p=r(15164),h=r(9633);function g(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function v(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?g(Object(r),!0).forEach((function(e){(0,n.Z)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var m="pre_lips",y="liveIntentId",w="liveintent.com",b=(0,p.df)({moduleType:h.y2,moduleName:y}),E={nonId:!0},S={ajaxGet:function(t,e,r,n){(0,c.O)(n)(t,{success:e,error:r},void 0,{method:"GET",withCredentials:!0})},pixelGet:function(t,e){return(0,u.triggerPixel)(t,e)}},I=!1,x=null;function C(){I=!0}function _(t){function e(t){return Object.entries(t).flatMap((function(t){var e=(0,i.Z)(t,2),r=e[0],n=e[1];return"boolean"==typeof n&&n?[r]:[]}))}return"object"===(0,o.Z)(t)?e(v(v({},E),t)):e(E)}function O(t){if(x)return x;var e={publisherId:(t=t||{}).publisherId||"any",requestedAttributes:_(t.requestedAttributesOverrides)};t.url&&(e.url=t.url),t.ajaxTimeout&&(e.ajaxTimeout=t.ajaxTimeout);var r,n,o=(r=t.liCollectConfig,n={},(r=r||{}).appId&&(n.appId=r.appId),r.fpiStorageStrategy&&(n.storageStrategy=r.fpiStorageStrategy),r.fpiExpirationDays&&(n.expirationDays=r.fpiExpirationDays),r.collectorUrl&&(n.collectorUrl=r.collectorUrl),n);!o.appId&&t.distributorId?(o.distributorId=t.distributorId,e.source=t.distributorId):e.source=t.partner||"prebid",o.wrapperName="prebid",o.identityResolutionConfig=e,o.identifiersToResolve=t.identifiersToResolve||[],o.fireEventDelay=t.fireEventDelay;var i=d.nX.getConsentData();i&&(o.usPrivacyString=i);var a=d.rp.getConsentData();return a&&(o.gdprApplies=a.gdprApplies,o.gdprConsent=a.consentString),x=N.getInitializer()(o,b,S),t.emailHash&&x.push({hash:t.emailHash}),x}function R(){if(!I&&x){var t=x.config.fireEventDelay||500;setTimeout((function(){window.liQ_instances.forEach((function(t){return t.eventBus.once(m,C)})),!I&&x&&x.fire()}),t)}}var N={moduleMode:null,name:y,setModuleMode:function(t){this.moduleMode=t},getInitializer:function(){var t=this;return function(e,r,n){return f(e,r,n,t.moduleMode)}},decode:function(t,e){var r=e&&e.params||{};return x||O(r),R(),function(t){var e={},r=t.nonId||t.unifiedId;return r&&(t.lipbid=r,delete t.unifiedId,e.lipb=t),t.uid2&&(e.uid2={id:t.uid2,ext:{provider:w}}),t.bidswitch&&(e.bidswitch={id:t.bidswitch,ext:{provider:w}}),t.medianet&&(e.medianet={id:t.medianet,ext:{provider:w}}),t.magnite&&(e.magnite={id:t.magnite,ext:{provider:w}}),t.index&&(e.index={id:t.index,ext:{provider:w}}),e}(t)},getId:function(t){var e=O(t&&t.params||{});if(e){R();return{callback:function(t){e.resolve((function(e){t(e)}),(function(e){(0,u.logError)("".concat(y,": ID fetch encountered an error: "),e),t()}))}}}},eids:{lipb:{getValue:function(t){return t.lipbid},source:"liveintent.com",atype:3,getEidExt:function(t){if(Array.isArray(t.segments)&&t.segments.length)return{segments:t.segments}}},bidswitch:{source:"bidswitch.net",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},medianet:{source:"media.net",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},magnite:{source:"rubiconproject.com",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}},index:{source:"liveintent.indexexchange.com",atype:3,getValue:function(t){return t.id},getUidExt:function(t){if(t.ext)return t.ext}}}};(0,s.Bx)("userId",N),(0,a.z)("liveIntentIdSystem")},18698:function(t){function e(r){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},32548:function(t,e,r){var n=r(18698),o={},i="[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",a=new RegExp("^".concat(i,"$"),"i"),u=!!String.prototype.trim;function c(t){return null!=t}function s(t){return"[object Array]"===Object.prototype.toString.call(t)}function l(t){return u?(""+t).trim():(""+t).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function f(t){return"string"==typeof t}function d(t){return!!t&&"object"===n(t)&&!s(t)}function p(t,e){return new Date((new Date).getTime()+t*e)}function h(t,e,r){if(d(e)){var n=void 0;return(n="message"in e&&"string"==typeof e.message?new Error(r||e.message):new Error(r)).name=t,"stack"in e&&"string"==typeof e.stack&&(n.stack=e.stack),"lineNumber"in e&&"number"==typeof e.lineNumber&&(n.lineNumber=e.lineNumber),"columnNumber"in e&&"number"==typeof e.columnNumber&&(n.columnNumber=e.columnNumber),n}return(n=Error(r)).name=t,n}var g=function(){return g=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},g.apply(this,arguments)};function v(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var m="li_errors",y=function(){function t(t){var e=parseInt(t.toString())||5;this.data={h:{},q:{},size:e}}return t.prototype.on=function(t,e,r){var n,o={callback:e.bind(r),unbound:e};return this.data=g(g({},this.data),{h:g(g({},this.data.h),(n={},n[t]=v(v([],this.data.h[t]||[],!0),[o],!1),n))}),(this.data.q[t]||[]).forEach((function(t){return e.call(r,t)})),this},t.prototype.once=function(t,e,r){var n=this,o=this.data.q[t]||[];if(o.length>0)return e.call(r,o[0]),this;var i=function o(i){n.off(t,o),e.call(r,i)};return i._=e,this.on(t,i,r)},t.prototype.emit=function(t,e){var r;(this.data.h[t]||[]).forEach((function(t){return t.callback(e)}));var n=this.data.q[t]||[];return this.data=g(g({},this.data),{q:g(g({},this.data.q),(r={},r[t]=v(v([],n.length<this.data.size?n:n.slice(1),!0),[e],!1),r))}),this},t.prototype.off=function(t,e){var r,o=this.data.h[t],i=o&&e&&o.filter((function(t){return t.unbound!==e}))||[];if(i.length)this.data=g(g({},this.data),{h:g(g({},this.data.h),(r={},r[t]=i,r))});else{var a=this.data.h,u=t;a[u];var c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(a,["symbol"===n(u)?u:u+""]);this.data=g(g({},this.data),{h:c})}return this},t.prototype.emitErrorWithMessage=function(t,e,r){var n=h(t,r,e);return this.emit(m,n)},t.prototype.emitError=function(t,e){var r=h(t,e);return this.emit(m,r)},t}();o.ERRORS_CHANNEL=m,o.ReplayEmitter=y,o.UUID=i,o.expiresInDays=function(t){return p(t,864e5)},o.expiresInHours=function(t){return p(t,36e5)},o.isArray=s,o.isFunction=function(t){return!!t&&"function"==typeof t},o.isNonEmpty=function(t){return c(t)&&l(t).length>0},o.isObject=d,o.isRecord=function(t){return d(t)},o.isString=f,o.isUUID=function(t){return!!t&&a.test(l(t))},o.nonNull=c,o.safeToString=function(t){return"object"===n(t)?JSON.stringify(t):""+t},o.strEqualsIgnoreCase=function(t,e){return f(t)&&f(e)&&l(t.toLowerCase())===l(e.toLowerCase())},o.trim=l,o.wrapError=h;var w=o.ERRORS_CHANNEL,b=o.ReplayEmitter,E=o.expiresInDays,S=o.expiresInHours,I=o.isArray,x=o.isFunction,C=o.isNonEmpty,_=o.isObject,O=o.isRecord,R=o.isString,N=o.isUUID,j=o.nonNull,D=o.safeToString,A=o.strEqualsIgnoreCase,U=o.trim,L=o.wrapError;function k(t,e,r){return C(e)?[[t,r(e)]]:[]}function F(t,e){return k(t,e,(function(t){return encodeURIComponent(t)}))}function M(t,e,r){return k(t,e,(function(t){return encodeURIComponent(r(t))}))}function P(t,e,r){return C(e)&&x(r)&&r(e)?[[t,encodeURIComponent(e)]]:[]}var T=function(){function t(t,e,r,n,o){this.url=t&&t.collectorUrl||"https://rp.liadm.com",this.calls=e,this.eventBus=r,this.onload=n,this.presend=o}return t.prototype.callBakers=function(t){try{var e=JSON.parse(t).bakers;if(I(e))for(var r=0;r<e.length;r++)this.calls.pixelGet("".concat(e[r],"?dtstmp=").concat(Date.now()))}catch(e){this.eventBus.emitErrorWithMessage("CallBakers","Error while calling bakers with ".concat(t),e)}},t.prototype.sendState=function(t,e,r){var n;if(t.sendsPixel()){x(this.presend)&&this.presend();var o=F("dtstmp",Date.now()),i=(n=t.asQuery()).prependParams.apply(n,o).toQueryString();r("".concat(this.url,"/").concat(e).concat(i))}},t.prototype.sendAjax=function(t){var e=this;this.sendState(t,"j",(function(r){e.calls.ajaxGet(r,(function(t){x(e.onload)&&e.onload(),e.callBakers(t)}),(function(r){e.sendPixel(t),e.eventBus.emitError("AjaxFailed",r)}),0)}))},t.prototype.sendPixel=function(t){var e=this;this.sendState(t,"p",(function(t){return e.calls.pixelGet(t,e.onload)}))},t}();function V(t){var e=function(t){t="".concat(t);for(var e=0;e<t.length;e++)if(t.charCodeAt(e)>255)return null;var r,n="";for(e=0;e<t.length;e+=3){var o=[void 0,void 0,void 0,void 0];o[0]=t.charCodeAt(e)>>2,o[1]=(3&t.charCodeAt(e))<<4,t.length>e+2?(o[1]|=t.charCodeAt(e+1)>>4,o[2]=(15&t.charCodeAt(e+1))<<2,o[2]|=t.charCodeAt(e+2)>>6,o[3]=63&t.charCodeAt(e+2)):t.length>e+1&&(o[1]|=t.charCodeAt(e+1)>>4,o[2]=(15&t.charCodeAt(e+1))<<2);for(var i=0;i<o.length;i++){var a=o[i];n+=void 0===a?"=":(r=a)>=0&&r<64?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[r]:void 0}}return n}(t);return e||""}var B=/[+/]|=+$/g,W={"+":"-","/":"_"};function Q(t){return W[t]||""}function q(t){var e=null,r=encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(parseInt("0x"+e,16))}));try{e=window&&x(window.btoa)?window.btoa:V}catch(t){e=V}return e(r).replace(B,Q)}for(var G=[],H=0;H<64;)G[H]=0|4294967296*Math.sin(++H%Math.PI);function J(t){var e,r,n,o=[e=1732584193,r=4023233417,~e,~r],i=[],a=unescape(encodeURI(t))+"€",u=a.length;for(t=--u/4+2|15,i[--t]=8*u;~u;)i[u>>2]|=a.charCodeAt(u)<<8*u--;for(H=a=0;H<t;H+=16){for(u=o;a<64;u=[n=u[3],e+((n=u[0]+[e&r|~e&n,n&e|~n&r,e^r^n,r^(e|~n)][u=a>>4]+G[a]+~~i[H|15&[a,5*a+1,3*a+5,7*a][u]])<<(u=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*u+a++%4])|n>>>-u),e,r])e=0|u[1],r=u[2];for(a=4;a;)o[--a]+=u[a]}for(t="";a<32;)t+=(o[a>>3]>>4*(1^a++)&15).toString(16);return t}function X(t){var e,r,n,o,i,a=[],u=[r=1732584193,n=4023233417,~r,~n,3285377520],c=[],s=unescape(encodeURI(t))+"€",l=s.length;for(c[t=--l/4+2|15]=8*l;~l;)c[l>>2]|=s.charCodeAt(l)<<8*~l--;for(e=l=0;e<t;e+=16){for(r=u;l<80;r=[r[4]+(a[l]=l<16?~~c[e+l]:2*s|s<0)+1518500249+[n&o|~n&i,s=341275144+(n^o^i),882459459+(n&o|n&i|o&i),s+1535694389][l++/5>>2]+((s=r[0])<<5|s>>>27),s,n<<30|n>>>2,o,i])s=a[l-3]^a[l-8]^a[l-14]^a[l-16],n=r[1],o=r[2],i=r[3];for(l=5;l;)u[--l]+=r[l]}for(s="";l<40;)s+=(u[l>>3]>>4*(7-l++)&15).toString(16);return s}for(var z,Y=18,Z=[],$=[];Y>1;Y--)for(z=Y;z<320;)Z[z+=Y]=1;function K(t,e){return 4294967296*Math.pow(t,1/e)|0}for(z=0;z<64;)Z[++Y]||($[z]=K(Y,2),Z[z++]=K(Y,3));function tt(t,e){return t>>>e|t<<-e}function et(t){var e=$.slice(Y=z=0,8),r=[],n=unescape(encodeURI(t))+"€",o=n.length;for(r[t=--o/4+2|15]=8*o;~o;)r[o>>2]|=n.charCodeAt(o)<<8*~o--;for(o=[];Y<t;Y+=16){for(K=e.slice();z<64;K.unshift(n+(tt(n=K[0],2)^tt(n,13)^tt(n,22))+(n&K[1]^K[1]&K[2]^K[2]&n)))K[3]+=n=0|(o[z]=z<16?~~r[z+Y]:(tt(n=o[z-2],17)^tt(n,19)^n>>>10)+o[z-7]+(tt(n=o[z-15],7)^tt(n,18)^n>>>3)+o[z-16])+K.pop()+(tt(n=K[4],6)^tt(n,11)^tt(n,25))+(n&K[5]^~n&K[6])+Z[z++];for(z=8;z;)e[--z]+=K[z]}for(n="";z<64;)n+=(e[z>>3]>>4*(7-z++)&15).toString(16);return n}var rt=new Map([[32,"md5"],[40,"sha1"],[64,"sha256"]]);function nt(t){var e=ot(t);return!!e&&rt.has(e.length)}function ot(t){var e=t.match(/(\s+)?[a-f0-9]{32,64}(\s+)?/gi);return e&&e.map(U)[0]}function it(t){var e=t.toLowerCase();return{md5:J(e),sha1:X(e),sha256:et(e)}}function at(t){return/\S+(@|%40)\S+\.\S+/.test(t)}function ut(t){return/\S+(@|%40)\S+\.\S+/.test(t)}function ct(t){for(var e=function(t){for(var e=[],r=new RegExp("([\\w\\d.+-]+(@|%40)[\\w\\d-]+.[\\w\\d.-]+)","g"),n=r.exec(t);n;)e.push(U(n[1])),n=r.exec(t);return e}(t),r=[],n=t,o=0;o<e.length;o++){var i=e[o],a=it(i);n=n.replace(i,a.md5),r.push(a)}return{stringWithoutRawEmails:n,hashesFromOriginalString:r}}function st(t,e){return"string"==typeof e&&at(U(e))?"*********":e}var lt=function(t){var e="";return t.forEach((function(t){var r=0===e.length?"?":"&";t&&t.length&&2===t.length&&t[0]&&t[1]&&(e="".concat(e).concat(r).concat(t[0],"=").concat(t[1]))})),e};function ft(t){return function(t){return"false"!==t&&("true"===t||t)}(function(t){return"null"===t||"undefined"===t?null:t}(function(t){return isNaN(+t)?t:+t}(t)))}function dt(t,e){if(e in t){var r=t[e];return I(r)?r.map((function(t){return ft(ht(t))})):ft(ht(r))}}function pt(t){var e,r,n,o={};return t&&-1!==(e=t.indexOf("?"))&&(r=t.slice(e+1))&&(-1===(n=r.indexOf("#"))||(r=r.slice(0,n)))?(r.split("&").forEach((function(t){if(t){var e=void 0,r=t.split("=");e=r[0];var n=2===r.length?r[1]:"true";if("[]"===e.slice(-2)&&(e=e.slice(0,-2)),e in o){var i=o[e];I(i)?i.push(n):o[e]=[i,n]}else o[e]=n}})),o):o}function ht(t){return t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)}var gt=function(){function t(t){var e=t.match(/^(https?\:\/\/)?(([^:\/?#]*)(?:\:([0-9]+))?)([\/]{0,1}[^?#]*)(\?[^#]*|)(#.*|)$/);if(null===e)throw new TypeError("Failed to parse URL: ".concat(t));this.protocol=e[1]||"",this.host=e[2]||"",this.hostname=e[3]||"",this.port=e[4]||"",this.pathname=e[5]||"",this.search=e[6]||"",this.hash=e[7]||""}return t.prototype.toString=function(){return"".concat(this.protocol).concat(this.host).concat(this.pathname).concat(this.search).concat(this.hash)},t}(),vt=["items","itemids"],mt=["email","emailhash","hash","hashedemail"],yt=[function(t){for(var e,r=t.eventSource||{},n=0,o=Object.keys(r);n<o.length;n++){var i=o[n],a=i.toLowerCase();if(mt.indexOf(a)>-1){var u=U(D(r[i])),c=(e=void 0,(e=u.match(/\S+(@|%40)\S+\.\S+/))&&e.map(U)[0]),s=ot(u);if(c){var l=it(ht(c));return wt({hashedEmail:[l.md5,l.sha1,l.sha256]},t)}if(s&&nt(s))return wt({hashedEmail:[s.toLowerCase()]},t)}}return t},function(t){var e=t.eventSource||{};return Object.keys(e).forEach((function(t){var r=t.toLowerCase(),n=e[t];vt.indexOf(r)>-1&&I(n)&&n.length>10&&(n.length=10)})),{}}];function wt(t,e){var r={};function n(t){return _(t)?t:{}}function o(t){return Object.keys(t)}var i=n(t),a=n(e);return o(i).forEach((function(t){r[t]=i[t]})),o(a).forEach((function(t){r[t]=a[t]})),r}var bt="full",Et="no_path";var St=["setemail","setemailhash","sethashedemail"];function It(t,e){return function(r){var n=r[t];return j(n)?e(n):[]}}var xt=[It("appId",(function(t){return F("aid",t)})),It("distributorId",(function(t){return F("did",t)})),It("eventSource",(function(t){return k("se",t,(function(t){return q(JSON.stringify(t,st))}))})),It("liveConnectId",(function(t){return F("duid",t)})),It("trackerName",(function(t){return F("tna",t)})),function(t){if(j(t.pageUrl)){var e=function(t){if(void 0===t.pageUrl||0===t.pageUrl.length)return["",!1,[]];if(function(t){return!(void 0!==t.urlCollectionMode&&t.urlCollectionMode!==bt||void 0!==t.queryParametersFilter&&""!==t.queryParametersFilter)}(t))return[t.pageUrl,!1,[]];var e=new gt(t.pageUrl),r=function(t){var e=pt(t),r=[];return Object.keys(e).forEach((function(t){r.push([t,dt(e,t)])})),r}(e.search),n=function(t,e){return e.urlCollectionMode===Et&&t.pathname.length>1}(e,t),o=function(t,e){if(void 0===e.queryParametersFilter||""===e.queryParametersFilter)return[];var r=new RegExp(e.queryParametersFilter);return t.map((function(t){return t[0]})).filter((function(t){return r.test(t)}))}(r,t);return n&&(e.pathname="/"),o.length>0&&(e.search=function(t,e){var r=t.filter((function(t){return!e.includes(t[0])})).map((function(t){return"".concat(t[0],"=").concat(t[1])}));return r.length>0?"?".concat(r.join("&")):""}(r,o)),[e.toString(),n,o]}(t),r=e[0],n=e[1],o=e[2],i=[F("pu",r),P("pu_rp",n?1:0,(function(t){return 1===t})),M("pu_rqp",o,(function(t){return t.join(",")}))];return Array.prototype.concat.apply([],i)}return[]},It("errorDetails",(function(t){return k("ae",t,(function(t){return q(JSON.stringify(t))}))})),It("retrievedIdentifiers",(function(t){var e=[];return I(t)&&t.forEach((function(t){return e.push.apply(e,F("ext_".concat(t.name),t.value))})),e})),It("hashesFromIdentifiers",(function(t){var e=[];return I(t)&&t.forEach((function(t){return e.push.apply(e,F("scre","".concat(t.md5,",").concat(t.sha1,",").concat(t.sha256)))})),e})),It("decisionIds",(function(t){return M("li_did",t,(function(t){return t.join(",")}))})),It("hashedEmail",(function(t){return M("e",t,(function(t){return t.join(",")}))})),It("usPrivacyString",(function(t){return F("us_privacy",t)})),It("wrapperName",(function(t){return F("wpn",t)})),It("gdprApplies",(function(t){return M("gdpr",t,(function(t){return t?1:0}))})),It("privacyMode",(function(t){return P("n3pc",t?1:0,(function(t){return 1===t}))})),It("privacyMode",(function(t){return P("n3pct",t?1:0,(function(t){return 1===t}))})),It("privacyMode",(function(t){return P("nb",t?1:0,(function(t){return 1===t}))})),It("gdprConsent",(function(t){return F("gdpr_consent",t)})),It("referrer",(function(t){return F("refr",t)})),It("contextElements",(function(t){return F("c",t)}))],Ct=function(){function t(t){this.tuples=t}return t.prototype.prependParams=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=this.tuples;return n.unshift.apply(n,e),new t(n)},t.prototype.toQueryString=function(){return lt(this.tuples)},t}(),_t=function(){function t(e,r){this.data=t.safeFiddle(e,r),this.eventBus=r}return t.safeFiddle=function(t,e){try{return r=JSON.parse(JSON.stringify(t)),_(r.eventSource)?yt.reduce((function(t,e){return wt(t,e(t))}),r):r}catch(t){return console.error(t),e.emitErrorWithMessage("StateCombineWith","Error while extracting event data",t),{}}var r},t.prototype.combineWith=function(e){return new t(wt(this.data,e),this.eventBus)},t.prototype.sendsPixel=function(){var t=_(this.data.eventSource)?this.data.eventSource:{},e=Object.keys(t).filter((function(t){return"eventname"===t.toLowerCase()||"event"===t.toLowerCase()})),r=e&&e.length>=1&&e[0],n=r&&U(t[r]);return!n||-1===St.indexOf(n.toLowerCase())},t.prototype.asTuples=function(){var t=this,e=[];return xt.forEach((function(r){var n=r(t.data);n&&I(n)&&e.push.apply(e,n)})),e},t.prototype.asQuery=function(){return new Ct(this.asTuples())},t}();function Ot(t){void 0===t&&(t=window);for(var e,r=jt((function(){return t.location.ancestorOrigins}))||[],n=[],o=t;o!==top;)n.push(o),o=o.parent;n.push(o);for(var i=function(t){e=jt((function(){return n[t].location.href})),0!==t&&(e||(e=jt((function(){return n[t-1].document.referrer}))),e||(e=r[t-1]))},a=n.length-1;a>=0&&!e;a--)i(a);return e}function Rt(t,e,r){if(!t&&e&&""!==e&&r){var n=function(t,e){for(var r=window.document.querySelectorAll(t),n="",o=0;o<r.length;o++){var i=n+ct(r[o].outerHTML).stringWithoutRawEmails;if(!(Nt(i)<=e))return n;n=i}return n}(e,r);return q(n)}return""}function Nt(t){return Math.ceil(4*new Blob([t]).size/3)}function jt(t){try{return t()}catch(t){return}}var Dt=null;function At(t){if(Dt)return Dt;var e,r={pageUrl:Ot(),referrer:(void 0===e&&(e=window),jt((function(){return e.top.document.referrer}))),contextElements:Rt(t.privacyMode,t.contextSelectors,t.contextElementsLength)};return Dt=r,r}var Ut={errorDetails:{message:"Unknown message",name:"Unknown name"}};function Lt(t){try{var e=1*t;return isNaN(e)?void 0:e}catch(t){}}function kt(t){try{return R(t)&&t.length&&t.length>120?"".concat(t.substr(0,120),"..."):"".concat(t)}catch(t){}}function Ft(t,e,r){try{var n=new T(t,e,r);r.on(w,(function(e){n.sendPixel(new _t(function(t){return O(t)?{errorDetails:{message:kt(t.message)||"",name:kt(t.name)||"",stackTrace:kt(t.stack),lineNumber:Lt(t.lineNumber),columnNumber:Lt(t.columnNumber),fileName:kt(t.fileName)}}:Ut}(e),r).combineWith(t||{}).combineWith(At({})))}))}catch(t){console.error("handlers.error.register",t)}}var Mt="__li__evt_bus",Pt=w,Tt="lips",Vt="pre_lips",Bt="_li_duid",Wt="https://idx.liadm.com/idex",Qt=[],qt=Object.freeze({__proto__:null,DEFAULT_IDEX_AJAX_TIMEOUT:5e3,DEFAULT_IDEX_EXPIRATION_HOURS:1,DEFAULT_IDEX_URL:Wt,DEFAULT_REQUESTED_ATTRIBUTES:Qt,ERRORS_PREFIX:Pt,EVENT_BUS_NAMESPACE:Mt,PEOPLE_VERIFIED_LS_ENTRY:Bt,PIXEL_SENT_PREFIX:Tt,PRELOAD_PIXEL:Vt}),Gt="0123456789ABCDEFGHJKMNPQRSTVWXYZ",Ht=Gt.length,Jt=Math.pow(2,48)-1,Xt=function(){var t="undefined"!=typeof window?window:null,e=t&&(t.crypto||t.msCrypto);return e?function(){var t=new Uint8Array(1);return e.getRandomValues(t),t[0]/255}:function(){return Math.random()}}();function zt(){var t=Math.floor(Xt()*Ht);return t===Ht&&(t=Ht-1),Gt.charAt(t)}function Yt(){return function(t,e){if(t>Jt)throw(r=new Error("cannot encode time greater than "+Jt)).source="Ulid",r;for(var r,n,o="";e>0;e--)o=Gt.charAt(n=t%Ht)+o,t=(t-n)/Ht;return o}(Date.now(),10)+function(t){for(var e="";t>0;t--)e=zt()+e;return e}(16)}var Zt="_li_dcdm_c";function $t(t,e,r){try{var n=t.expirationDays||730,o=function(){var t=e.getCookie(Zt);if(t)return t;for(var r=document.domain||document.location&&document.location.host||window&&window.location&&window.location.host||"localhost",n=r.split("."),o=n.length;o>0;o--){var i=".".concat(n.slice(o-1,n.length).join("."));if(e.setCookie(Zt,i,void 0,"Lax",i),e.getCookie(Zt))return i}return".".concat(r)}(),i={expires:n,domain:o},a=function(t,n){try{var o=e.get(t),a=E(i.expires);return o?e.set(t,o,a,i.domain):e.set(t,n,a,i.domain),e.get(t)}catch(t){return r.emitErrorWithMessage("CookieLsGetOrAdd","Failed manipulating cookie jar or ls",t),null}}("_lc2_fpi","".concat((u=o,void 0===c&&(c=12),X(u.replace(/^\./,"")).substring(0,c)),"--").concat(Yt()).toLocaleLowerCase())||void 0;return a&&e.setDataInLocalStorage(Bt,a),{domain:o,liveConnectId:a,peopleVerifiedId:a}}catch(t){return r.emitErrorWithMessage("IdentifiersResolve","Error while managing identifiers",t),{}}var u,c}var Kt=E(30),te="lidids.",ee=function(t,e,r){return r.indexOf(t)===e},re=function(t){return t&&U(t).length>0};function ne(t,e,r){function n(t,e){try{return e()}catch(e){return r.emitErrorWithMessage("DecisionsResolve",t,e),[]}}var o=n("Error while extracting new decision ids",(function(){var e;return[].concat(t.pageUrl&&(e=t.pageUrl,"li_did",dt(pt(e),"li_did"))||[]).map(U).filter(re).filter(N).filter(ee)})),i=n("Error while retrieving stored decision ids",(function(){return e.findSimilarCookies(te).map(U).filter(re).filter(N).filter(ee)}));return o.forEach((function(n){try{o=n,i=t.domain,o&&e.setCookie("".concat(te).concat(o),o,Kt,"Lax",i)}catch(t){r.emitErrorWithMessage("DecisionsResolve","Error while storing new decision id",t)}var o,i})),{decisionIds:o.concat(i).filter(ee)}}function oe(t,e,r){try{return function(t,e){for(var r=[],n=[],o=0;o<t.length;o++){var i=t[o],a=e.getCookie(i)||e.getDataFromLocalStorage(i);if(a){var u=ct(D(a));r.push({name:i,value:u.stringWithoutRawEmails}),n=n.concat(u.hashesFromOriginalString)}}return{retrievedIdentifiers:r,hashesFromIdentifiers:ie(n)}}(function(t){var e=[];t.identifiersToResolve&&(I(t.identifiersToResolve)?e=t.identifiersToResolve:R(t.identifiersToResolve)&&(e=t.identifiersToResolve.split(",")));for(var r=0;r<e.length;r++)e[r]=e[r].trim();return e}(t),e)}catch(t){return r&&r.emitError("IdentifiersEnricher",t),{}}}function ie(t){for(var e=new Set,r=[],n=0;n<t.length;n++)e.has(t[n].md5)||(r.push(t[n]),e.add(t[n].md5));return r}function ae(t){return C(t)&&C(t.gdprApplies)?{privacyMode:!!t.gdprApplies}:{}}function ue(t,e){if(t&&t.appId&&t.distributorId){var r=t.distributorId;delete t.distributorId,e.emitError("AppIdAndDistributorIdPresent",new Error("Event contains both appId: ".concat(t.appId," and distributorId: ").concat(r,". Ignoring distributorId")))}return t}var ce={get:function(){return null},set:function(){}},se=function(){function t(t,e,r,n){var o,i,a,u,c,s,l=this;this.eventBus=n,this.calls=e,this.cache=r,this.idexConfig=t.identityResolutionConfig||{},this.externalIds=t.retrievedIdentifiers||[],this.source=this.idexConfig.source||"unknown",this.publisherId=this.idexConfig.publisherId||"any",this.url=this.idexConfig.url||Wt,this.timeout=this.idexConfig.ajaxTimeout||5e3,this.requestedAttributes=this.idexConfig.requestedAttributes||Qt,this.tuples=[],(o=this.tuples).push.apply(o,F("duid",t.peopleVerifiedId)),(i=this.tuples).push.apply(i,F("us_privacy",t.usPrivacyString)),(a=this.tuples).push.apply(a,k("gdpr",t.gdprApplies,(function(t){return encodeURIComponent(t?1:0)}))),(u=this.tuples).push.apply(u,P("n3pc",t.privacyMode?"1":"0",(function(t){return"1"===t}))),(c=this.tuples).push.apply(c,F("gdpr_consent",t.gdprConsent)),(s=this.tuples).push.apply(s,F("did",t.distributorId)),this.externalIds.forEach((function(t){var e;(e=l.tuples).push.apply(e,F(t.name,t.value))})),this.requestedAttributes.filter((function(e){return"uid2"!==e||!t.privacyMode})).forEach((function(t){var e;(e=l.tuples).push.apply(e,F("resolve",t))}))}return t.make=function(e,r,n,o){var i=e||{},a=function(t,e,r,n){var o="__li_idex_cache";function i(t){if(t){var e=q(JSON.stringify(t));return"".concat(o,"_").concat(e)}return o}return{get:function(t){var e=r.get(i(t));return e?JSON.parse(e):e},set:function(o,a,u){try{r.set(i(o),JSON.stringify(a),u||S(t),e)}catch(t){n.emitError("IdentityResolverStorage",t)}}}}((i.identityResolutionConfig||{}).expirationHours||1,i.domain,r,o);return new t(i,n,a,o)},t.makeNoCache=function(e,r,n){return new t(e||{},r,ce,n)},t.prototype.responseReceived=function(t,e){var r=this;return function(n,o){var i={};if(n)try{i=JSON.parse(n)}catch(t){console.error("Error parsing response",t),r.eventBus.emitError("IdentityResolverParser",t)}var a=function(t){if(_(t)&&"getResponseHeader"in t&&x(t.getResponseHeader)){var e=t.getResponseHeader("expires");if(e)return new Date(e)}}(o);r.cache.set(t,i,a),e(i)}},t.prototype.unsafeResolve=function(t,e,r){var n=this.cache.get(r);n?t(n):this.calls.ajaxGet(this.getUrl(r),this.responseReceived(r,t),e,this.timeout)},t.prototype.getUrl=function(t){var e=this.tuples.slice().concat(function(t){if(t&&_(t)){var e=[];return Object.keys(t).forEach((function(r){var n=t[r];n&&!_(n)&&n.length&&(I(n)?n.forEach((function(t){return e.push([encodeURIComponent(r),encodeURIComponent(t)])})):e.push([encodeURIComponent(r),encodeURIComponent(n)]))})),e}return[]}(t)),r=lt(e);return"".concat(this.url,"/").concat(this.source,"/").concat(this.publisherId).concat(r)},t.prototype.resolve=function(t,e,r){try{this.unsafeResolve(t,e,r||{})}catch(t){console.error("IdentityResolve",t),e(),this.eventBus&&this.eventBus.emitError("IdentityResolve",t)}},t}(),le=function(t,e){return le=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},le(t,e)},fe="ls",de="none",pe="disabled",he=function(){},ge=function(){function t(t,e,r){this.obj=t,this.name=e,this.errors=[],this.eventBus=r}return t.prototype.wrap=function(t){if(_(this.obj)){var e=this.obj[t];if(x(e))return e.bind(this.obj)}return this.errors.push(t),he},t.prototype.reportErrors=function(){this.errors.length>0&&this.eventBus.emitErrorWithMessage(this.name,"The functions '".concat(JSON.stringify(this.errors),"' were not provided"))},t}(),ve=function(){};function me(t,e,r){return A(e,pe)?ve:t.wrap(r)}function ye(t,e,r){return A(e,de)?ve:me(t,e,r)}var we=function(){function t(t,e){this.minimalFunctions={getCookie:me(e,t,"getCookie"),getDataFromLocalStorage:me(e,t,"getDataFromLocalStorage"),localStorageIsEnabled:ye(e,t,"localStorageIsEnabled")}}return t.make=function(e,r,n){var o=new ge(r,"ReadOnlyStorageHandler",n),i=new t(e,o);return o.reportErrors(),i},t.prototype.localStorageIsEnabled=function(){return!!this.minimalFunctions.localStorageIsEnabled()},t.prototype.getCookie=function(t){return this.minimalFunctions.getCookie(t)||null},t.prototype.getDataFromLocalStorage=function(t){return this.minimalFunctions.getDataFromLocalStorage(t)||null},t}(),be=function(t){function e(e,r){var n=t.call(this,e,r)||this;return n.storageStrategy=e,n.functions={setCookie:ye(r,e,"setCookie"),removeDataFromLocalStorage:ye(r,e,"removeDataFromLocalStorage"),setDataInLocalStorage:ye(r,e,"setDataInLocalStorage"),findSimilarCookies:me(r,e,"findSimilarCookies")},n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}le(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),e.make=function(t,r,n){var o=new ge(r,"StorageHandler",n),i=new e(t,o);return o.reportErrors(),i},e.prototype.get=function(t){if(A(this.storageStrategy,de)||A(this.storageStrategy,pe))return null;if(A(this.storageStrategy,fe)){if(this.localStorageIsEnabled()){var e="".concat(t,"_exp"),r=this.getDataFromLocalStorage(e);return r&&Date.parse(r)<=(new Date).getTime()&&this.removeDataFromLocalStorage(t),this.getDataFromLocalStorage(t)}return null}return this.getCookie(t)},e.prototype.set=function(t,e,r,n){if(A(this.storageStrategy,de)||A(this.storageStrategy,pe));else if(A(this.storageStrategy,fe)){if(this.localStorageIsEnabled()){var o="".concat(t,"_exp");this.setDataInLocalStorage(t,e),this.setDataInLocalStorage(o,"".concat(r))}}else this.setCookie(t,e,r,"Lax",n)},e.prototype.setCookie=function(t,e,r,n,o){this.functions.setCookie(t,e,r,n,o)},e.prototype.setDataInLocalStorage=function(t,e){this.functions.setDataInLocalStorage(t,e)},e.prototype.removeDataFromLocalStorage=function(t){this.functions.removeDataFromLocalStorage(t)},e.prototype.findSimilarCookies=function(t){return this.functions.findSimilarCookies(t)||[]},e}(we),Ee=function(){function t(t,e){var r=new ge(t,"CallHandler",e);this.functions={ajaxGet:r.wrap("ajaxGet"),pixelGet:r.wrap("pixelGet")},r.reportErrors()}return t.prototype.ajaxGet=function(t,e,r,n){this.functions.ajaxGet(t,e,r,n)},t.prototype.pixelGet=function(t,e){this.functions.pixelGet(t,e)},t}();function Se(t){return new b("number"==typeof t&&t>=0?t:5)}function Ie(t){x(t.emitErrorWithMessage)&&x(t.emitError)||(t.emitErrorWithMessage=function(e,r,n){void 0===n&&(n={});var o=L(e,r,n);return t.emit(w,o)},t.emitError=function(e,r){return t.emitErrorWithMessage(e,r.message,r)})}function xe(t){return void 0===t&&(t=5),Se(t)}function Ce(t){var e=window[t].eventBus||window[Mt];return Ie(e),e}var _e=Object.freeze({__proto__:null,GlobalEventBus:function(t,e,r){try{return window||r(new Error("Bus can only be attached to the window, which is not present")),window&&!window[t]&&(window[t]=Se(e)),Ie(window[t]),window[t]}catch(t){console.error("events.bus.init",t),r(t)}},LocalEventBus:xe,getAvailableBus:Ce}),Oe={};function Re(t,e,r,n){if(t&&_(t))if("config"in t)n.emitErrorWithMessage("StrayConfig","Received a config after LC has already been initialised",new Error(JSON.stringify(t)));else{var o=r.combineWith({eventSource:t});Oe.hashedEmail=Oe.hashedEmail||o.data.hashedEmail;var i=wt({eventSource:t},Oe);e.sendAjax(r.combineWith(i))}else n.emitErrorWithMessage("EventNotAnObject","Received event was not an object",new Error(t))}function Ne(t,e,r,n){try{var o=new Ee(r,n),i=ue(t,n),a=wt(i,ae(i));Ft(a,o,n);var u=a.privacyMode?pe:a.storageStrategy,c=be.make(u,e,n),s=function(t,e){return t.combineWith(e(t.data,c,n))},l=[$t,ne],f=[At,oe].reduce(s,new _t(a,n)),d=l.reduce(s,f),p=wt(a,{peopleVerifiedId:d.data.peopleVerifiedId}),h=new T(a,o,n,(function(){return n.emit(Tt,p)}),(function(){return n.emit(Vt,"0")})),g=se.make(d.data,c,o,n),v=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(t,e,r,n){try{t.forEach((function(t){var o=t;I(o)?o.forEach((function(t){return Re(t,e,r,n)})):Re(o,e,r,n)}))}catch(t){console.error("Error sending events",t),n.emitErrorWithMessage("LCPush","Failed sending an event",t)}}(t,h,d,n)};return{push:v,fire:function(){return v({})},peopleVerifiedId:d.data.peopleVerifiedId,ready:!0,resolve:g.resolve.bind(g),resolutionCallUrl:g.getUrl.bind(g),config:i,eventBus:n}}catch(t){console.error(t),n.emitErrorWithMessage("LCConstruction","Failed to build LC",t)}}function je(t,e,r,n){var o,i=_(t)&&t||{},a=n||xe();try{o=i.globalVarName?function(t,e,r,n){var o=window[t.globalVarName]||[],i=function(t){try{if(window&&window[t.globalVarName]&&window[t.globalVarName].ready){var e=window[t.globalVarName].config&&function(t,e){if(t.appId!==e.appId||t.wrapperName!==e.wrapperName||t.collectorUrl!==e.collectorUrl)return{appId:[t.appId,e.appId],wrapperName:[t.wrapperName,e.wrapperName],collectorUrl:[t.collectorUrl,e.collectorUrl]}}(window[t.globalVarName].config,t);if(e){var r=new Error;r.name="ConfigSent",r.message="Additional configuration received";var n=Ce(t.globalVarName);window[t.globalVarName].eventBus=n,n.emitErrorWithMessage("LCDuplication",JSON.stringify(e),r)}return window[t.globalVarName]}}catch(t){console.error("Could not initialize error bus")}}(t)||Ne(t,e,r,n)||o;if(I(o))for(var a=0;a<o.length;a++)i.push(o[a]);return window[i.config.globalVarName]=i,window.liQ_instances=window.liQ_instances||[],0===window.liQ_instances.filter((function(t){return t.config.globalVarName===i.config.globalVarName})).length&&window.liQ_instances.push(i),i}(i,e,r,a):function(t,e,r,n){var o=Ne(t,e,r,n);return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(o),o}(i,e,r,a)}catch(t){console.error(t),a.emitErrorWithMessage("LCConstruction","Failed to build LC",t)}return o}function De(t,e,r,n,o){try{var i=new Ee(r,n),a=ue(t,n),u=wt(a,ae(a)),c=u.privacyMode?pe:u.storageStrategy,s=we.make(c,e,n),l=wt(u,function(t,e,r){try{return{peopleVerifiedId:t.peopleVerifiedId||e.getDataFromLocalStorage(Bt)||void 0}}catch(t){return r.emitError("PeopleVerifiedEnrich",t),{}}}(u,s,n)),f=wt(l,function(t,e,r){try{return function(t,e){t.identifiersToResolve=t.identifiersToResolve||[];for(var r=I(t.identifiersToResolve)?t.identifiersToResolve:D(t.identifiersToResolve).split(","),n=[],o=0;o<r.length;o++){var i=U(r[o]),a=e.getCookie(i)||e.getDataFromLocalStorage(i);!a||ut(D(a))||at(D(a))||n.push({name:i,value:D(a)})}return{retrievedIdentifiers:n}}(t,e)}catch(t){return r.emitError("IdentifiersEnrich",t),{}}}(l,s,n)),d=se.makeNoCache(f,i,n);return{push:function(t){return o(t)},fire:function(){return o({})},peopleVerifiedId:f.peopleVerifiedId,ready:!0,resolve:d.resolve.bind(d),resolutionCallUrl:d.getUrl.bind(d),config:a,eventBus:n}}catch(t){console.error(t)}}function Ae(t,e,r,n){var o=_(t)&&t||{},i=n||xe();try{return o.globalVarName?function(t,e,r,n){var o=window[t.globalVarName]=window[t.globalVarName]||[],i=De(t,e,r,n,o.push.bind(o));return window.liQ_instances=window.liQ_instances||[],0===window.liQ_instances.filter((function(t){return t.config.globalVarName===i.config.globalVarName})).length&&window.liQ_instances.push(i),i}(o,e,r,i):function(t,e,r,n){var o=De(t,e,r,n,(function(t){}));return window.liQ_instances=window.liQ_instances||[],window.liQ_instances.push(o),o}(o,e,r,i)}catch(t){console.error(t)}return{}}e.VW=function(t,e,r,n,o){var i="minimal"===n||!1,a=o||xe();return(i?Ae:je)(_(t)&&t||{},e,r,a)},e.gn=Ae,e.Vl=je,e.vH=qt,e.YB=_e}},function(t){var e;e=71175,t(t.s=e)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[18470],{20354:function(e,r,d){var t=d(78640),i=d(14699),s=d(24679),a=d(70059),n=d(20265),u={code:"logicad",supportedMediaTypes:[s.Mk,s.B5],isBidRequestValid:function(e){return!(!e.params||!e.params.tid)},buildRequests:function(e,r){for(var d=[],t=0,i=(e=(0,a.lY)(e)).length;t<i;t++){var s={method:"POST",url:"https://pb.ladsp.com/adrequest/prebid",data:JSON.stringify(o(e[t],r)),options:{},bidderRequest:r};d.push(s)}return d},interpretResponse:function(e,r){e=e.body;var d=[];return!e||e.error||e.seatbid.forEach((function(e){d.push(e.bid)})),d},getUserSyncs:function(e,r){return r.length>0&&r[0].body.userSync&&e.pixelEnabled&&"image"==r[0].body.userSync.type?[{type:"image",url:r[0].body.userSync.url}]:[]}};function o(e,r){var d,t,i={auctionId:e.auctionId,bidderRequestId:e.bidderRequestId,bids:[{adUnitCode:e.adUnitCode,bidId:e.bidId,transactionId:null===(d=e.ortb2Imp)||void 0===d||null===(t=d.ext)||void 0===t?void 0:t.tid,sizes:e.sizes,params:e.params,mediaTypes:e.mediaTypes}],prebidJsVersion:"8.7.0",referrer:r.refererInfo.page,auctionStartTime:r.auctionStart,eids:e.userIdAsEids},s=(0,n.Z)(e,"ortb2.device.sua");s&&(i.sua=s);var a=(0,n.Z)(e,"ortb2.user.data");return a&&(i.userData=a),i}(0,i.dX)(u),(0,t.z)("logicadBidAdapter")}},function(e){var r;r=20354,e(e.s=r)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[18470],{20354:function(e,r,d){var t=d(78640),i=d(14699),s=d(24679),a=d(70059),n=d(20265),u={code:"logicad",supportedMediaTypes:[s.Mk,s.B5],isBidRequestValid:function(e){return!(!e.params||!e.params.tid)},buildRequests:function(e,r){for(var d=[],t=0,i=(e=(0,a.lY)(e)).length;t<i;t++){var s={method:"POST",url:"https://pb.ladsp.com/adrequest/prebid",data:JSON.stringify(o(e[t],r)),options:{},bidderRequest:r};d.push(s)}return d},interpretResponse:function(e,r){e=e.body;var d=[];return!e||e.error||e.seatbid.forEach((function(e){d.push(e.bid)})),d},getUserSyncs:function(e,r){return r.length>0&&r[0].body.userSync&&e.pixelEnabled&&"image"==r[0].body.userSync.type?[{type:"image",url:r[0].body.userSync.url}]:[]}};function o(e,r){var d,t,i={auctionId:e.auctionId,bidderRequestId:e.bidderRequestId,bids:[{adUnitCode:e.adUnitCode,bidId:e.bidId,transactionId:null===(d=e.ortb2Imp)||void 0===d||null===(t=d.ext)||void 0===t?void 0:t.tid,sizes:e.sizes,params:e.params,mediaTypes:e.mediaTypes}],prebidJsVersion:"8.8.0",referrer:r.refererInfo.page,auctionStartTime:r.auctionStart,eids:e.userIdAsEids},s=(0,n.Z)(e,"ortb2.device.sua");s&&(i.sua=s);var a=(0,n.Z)(e,"ortb2.user.data");return a&&(i.userData=a),i}(0,i.dX)(u),(0,t.z)("logicadBidAdapter")}},function(e){var r;r=20354,e(e.s=r)}]);
@@ -1 +1 @@
1
- (self.pbjsChunk=self.pbjsChunk||[]).push([[41790],{75133:function(e,r,t){var i=t(78640),d=t(3193),n=t(14699),o=t(24679),a=t(70059),s={code:"loglylift",supportedMediaTypes:[o.Mk,o.B5],isBidRequestValid:function(e){return!(!e.params||!e.params.adspotId)},buildRequests:function(e,r){for(var t=[],i=0,d=(e=(0,a.lY)(e)).length;i<d;i++){var n={method:"POST",url:"https://bid.logly.co.jp/prebid/client/v1?adspot_id="+e[i].params.adspotId,data:JSON.stringify(u(e[i],r)),options:{},bidderRequest:r};t.push(n)}return t},interpretResponse:function(e,r){r.bidderRequest;e=e.body;var t=[];return!e||e.error||e.bids.forEach((function(e){t.push(e)})),t},getUserSyncs:function(e,r){var t=[];return e.iframeEnabled&&r.length>0&&r[0].body.bids[0].native&&t.push({type:"iframe",url:"https://sync.logly.co.jp/sync/sync.html"}),t}};function u(e,r){var t,i,n=d.vc.getConfig("currency"),o=n&&n.adServerCurrency||"USD";return{auctionId:e.auctionId,bidderRequestId:e.bidderRequestId,transactionId:null===(t=e.ortb2Imp)||void 0===t||null===(i=t.ext)||void 0===i?void 0:i.tid,adUnitCode:e.adUnitCode,bidId:e.bidId,mediaTypes:e.mediaTypes,params:e.params,prebidJsVersion:"8.7.0",url:window.location.href,domain:r.refererInfo.domain,referer:r.refererInfo.page,auctionStartTime:r.auctionStart,currency:o,timeout:d.vc.getConfig("bidderTimeout")}}(0,n.dX)(s),(0,i.z)("loglyliftBidAdapter")}},function(e){var r;r=75133,e(e.s=r)}]);
1
+ (self.pbjsChunk=self.pbjsChunk||[]).push([[41790],{75133:function(e,r,t){var i=t(78640),d=t(3193),n=t(14699),o=t(24679),a=t(70059),s={code:"loglylift",supportedMediaTypes:[o.Mk,o.B5],isBidRequestValid:function(e){return!(!e.params||!e.params.adspotId)},buildRequests:function(e,r){for(var t=[],i=0,d=(e=(0,a.lY)(e)).length;i<d;i++){var n={method:"POST",url:"https://bid.logly.co.jp/prebid/client/v1?adspot_id="+e[i].params.adspotId,data:JSON.stringify(u(e[i],r)),options:{},bidderRequest:r};t.push(n)}return t},interpretResponse:function(e,r){r.bidderRequest;e=e.body;var t=[];return!e||e.error||e.bids.forEach((function(e){t.push(e)})),t},getUserSyncs:function(e,r){var t=[];return e.iframeEnabled&&r.length>0&&r[0].body.bids[0].native&&t.push({type:"iframe",url:"https://sync.logly.co.jp/sync/sync.html"}),t}};function u(e,r){var t,i,n=d.vc.getConfig("currency"),o=n&&n.adServerCurrency||"USD";return{auctionId:e.auctionId,bidderRequestId:e.bidderRequestId,transactionId:null===(t=e.ortb2Imp)||void 0===t||null===(i=t.ext)||void 0===i?void 0:i.tid,adUnitCode:e.adUnitCode,bidId:e.bidId,mediaTypes:e.mediaTypes,params:e.params,prebidJsVersion:"8.8.0",url:window.location.href,domain:r.refererInfo.domain,referer:r.refererInfo.page,auctionStartTime:r.auctionStart,currency:o,timeout:d.vc.getConfig("bidderTimeout")}}(0,n.dX)(s),(0,i.z)("loglyliftBidAdapter")}},function(e){var r;r=75133,e(e.s=r)}]);