text: pbjsChunk([384],{206:function(e,t,r){e.exports=r(207)},207:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),r.d(t,"spec",function(){return S});var y=r(0),m=r(2),a=r(1),n=r(10),f=r.n(n),i=r(13),d=r.n(i),l=r(3);function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],a=!0,n=!1,i=void 0;try{for(var s,o=e[Symbol.iterator]();!(a=(s=o.next()).done)&&(r.push(s.value),!t||r.length!==t);a=!0);}catch(e){n=!0,i=e}finally{try{a||null==o.return||o.return()}finally{if(n)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return s(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 s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function o(t,e){var r,a=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),a.push.apply(a,r)),a}function u(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach(function(e){var t,r,a;t=n,a=i[r=e],r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}var p=Object.freeze(["mimes","minduration","maxduration","protocols","startdelay","linearity","boxingallowed","playbackmethod","delivery","pos","api","ext"]),v=1,b=2,g=Object.freeze({1:"iframe",2:"image"}),h=[{name:"title",assetType:"title"},{name:"icon",assetType:"img",type:1},{name:"image",assetType:"img",type:3},{name:"body",assetType:"data",type:2},{name:"body2",assetType:"data",type:10},{name:"sponsoredBy",assetType:"data",type:1},{name:"phone",assetType:"data",type:8},{name:"address",assetType:"data",type:9},{name:"price",assetType:"data",type:6},{name:"salePrice",assetType:"data",type:7},{name:"cta",assetType:"data",type:12},{name:"rating",assetType:"data",type:3},{name:"downloads",assetType:"data",type:5},{name:"likes",assetType:"data",type:4},{name:"displayUrl",assetType:"data",type:11}],T=h.reduce(function(e,t,r){return e[t.name]=u({id:r},t),e},{}),S={code:"adkernel",gvlid:14,aliases:["headbidding","adsolut","oftmediahb","audiencemedia","waardex_ak","roqoon","andbeyond","adbite","houseofpubs","torchad","stringads","bcm"],supportedMediaTypes:[m.b,m.d,m.c],isBidRequestValid:function(e){return"params"in e&&void 0!==e.params.host&&"zoneId"in e.params&&!isNaN(Number(e.params.zoneId))&&0<e.params.zoneId&&e.mediaTypes&&(e.mediaTypes.banner||e.mediaTypes.video||e.mediaTypes.native&&(j((t=e.mediaTypes.native).image)&&j(t.icon)&&!y.deepAccess(t,"privacyLink.required")&&!y.deepAccess(t,"privacyIcon.required")));var t},buildRequests:function(e,a){var s,t,r,n=(s=e,t=a.refererInfo,r=t&&0===t.referer.indexOf("https:"),s.map(function(e){return function(t,e){var r,a,n,i={id:t.bidId,tagid:t.adUnitCode};return y.deepAccess(t,"mediaTypes.banner")?(r=y.getAdUnitSizes(t),i.banner={format:r.map(function(e){return y.parseGPTSingleSizeArrayToRtbSize(e)}),topframe:0}):y.deepAccess(t,"mediaTypes.video")?(a=t.mediaTypes.video.playerSize||[],i.video=y.parseGPTSingleSizeArrayToRtbSize(a[0])||{},t.params.video&&Object.keys(t.params.video).filter(function(e){return d()(p,e)}).forEach(function(e){return i.video[e]=t.params.video[e]})):y.deepAccess(t,"mediaTypes.native")&&(n=function(e){for(var t={ver:"1.1",assets:[]},r=0,a=Object.keys(e);r<a.length;r++){var n=a[r],i=e[n],s=T[n];if(void 0!==s){var o={id:s.id,required:~~i.required};if("img"===s.assetType)o[s.assetType]=function(e,t){var r,a={type:e.type};return t.sizes?(r=c(t.sizes,2),a.w=r[0],a.h=r[1]):t.aspect_ratios&&(a.wmin=t.aspect_ratios[0].min_width,a.hmin=t.aspect_ratios[0].min_height),y.cleanObj(a)}(s,i);else if("data"===s.assetType)o.data=y.cleanObj({type:s.type,len:i.len});else{if("title"!==s.assetType)return;o.title={len:i.len||90}}t.assets.push(o)}}return t}(t.mediaTypes.native),i.native={ver:"1.1",request:JSON.stringify(n)}),e&&(i.secure=1),i}(e,r)}).reduce(function(e,t,r){var a=s[r].params,n=a.zoneId,i=a.host;return e[i]=e[i]||{},e[i][n]=e[i][n]||[],e[i][n].push(t),e},{})),i=[],o=e[0].schain;return Object.keys(n).forEach(function(r){Object.keys(n[r]).forEach(function(e){var t=function(e,t,r){var a=t.bidderCode,n=t.gdprConsent,i=t.auctionId,s=t.refererInfo,o=t.timeout,d=t.uspConsent,c=l.b.getConfig("coppa"),u={id:i,imp:e,site:function(e){var t=y.parseUrl(e.referer),r={domain:t.hostname,page:"".concat(t.protocol,"://").concat(t.hostname).concat(t.pathname)};self===top&&document.referrer&&(r.ref=document.referrer);var a=document.getElementsByTagName("meta").keywords;a&&a.content&&(r.keywords=a.content);return r}(s),at:1,device:{ip:"caller",ipv6:"caller",ua:"caller",js:1,language:function(){var e=navigator.language?"language":"userLanguage";return navigator[e].split("-")[0]}()},tmax:parseInt(o)};y.getDNT()&&(u.device.dnt=1);n&&(void 0!==n.gdprApplies&&y.deepSetValue(u,"regs.ext.gdpr",~~n.gdprApplies),void 0!==n.consentString&&y.deepSetValue(u,"user.ext.consent",n.consentString));d&&y.deepSetValue(u,"regs.ext.us_privacy",d);c&&y.deepSetValue(u,"regs.coppa",1);var p=function(e){if(!l.b.getConfig("userSync.syncEnabled"))return;var t=l.b.getConfig("userSync.filterSettings");{if(O(t.all,e)||O(t.iframe,e))return v;if(O(t.image,e))return b}}(a);p&&y.deepSetValue(u,"ext.adk_usersync",p);r&&y.deepSetValue(u,"source.ext.schain",r);return u}(n[r][e],a,o);i.push({method:"POST",url:"https://".concat(r,"/hb?zone=").concat(e,"&v=").concat("1.5"),data:JSON.stringify(t)})})}),i},interpretResponse:function(e,t){var p=e.body;if(!p.seatbid)return[];var l=JSON.parse(t.data);return p.seatbid.map(function(e){return e.bid}).reduce(function(e,t){return e.concat(t)},[]).map(function(t){var e,r,a,n,i,s,o,d,c=f()(l.imp,function(e){return e.id===t.impid}),u={requestId:t.impid,cpm:t.price,creativeId:t.crid,currency:p.cur||"USD",ttl:360,netRevenue:!0};return"banner"in c?(u.mediaType=m.b,u.width=t.w,u.height=t.h,u.ad=function(e){var t=e.adm;"nurl"in e&&(t+=y.createTrackPixelHtml("".concat(e.nurl,"&px=1")));return t}(t)):"video"in c?(u.mediaType=m.d,u.vastUrl=t.nurl,u.width=c.video.w,u.height=c.video.h):"native"in c&&(u.mediaType=m.c,u.native=(e=JSON.parse(t.adm),r=e.native,a=r.assets,n=r.link,i=r.imptrackers,s=r.jstracker,o=r.privacy,d={clickUrl:n.url,impressionTrackers:i,javascriptTrackers:s?[s]:void 0,privacyLink:o},y._each(a,function(e){var t=h[e.id].name,r=h[e.id].assetType;d[t]=e[r].text||e[r].value||y.cleanObj({url:e[r].url,width:e[r].w,height:e[r].h})}),y.cleanObj(d))),y.isStr(t.dealid)&&(u.dealId=t.dealid),y.isArray(t.adomain)&&y.deepSetValue(u,"meta.advertiserDomains",t.adomain),y.isArray(t.cat)&&y.deepSetValue(u,"meta.secondaryCatIds",t.cat),y.isPlainObject(t.ext)&&(y.isNumber(t.ext.advertiser_id)&&y.deepSetValue(u,"meta.advertiserId",t.ext.advertiser_id),y.isStr(t.ext.advertiser_name)&&y.deepSetValue(u,"meta.advertiserName",t.ext.advertiser_name),y.isStr(t.ext.agency_name)&&y.deepSetValue(u,"meta.agencyName",t.ext.agency_name)),u})},getUserSyncs:function(e,t){return t&&0!==t.length&&(e.iframeEnabled||e.pixelEnabled)?t.filter(function(e){return e.body&&e.body.ext&&e.body.ext.adk_usersync}).map(function(e){return e.body.ext.adk_usersync}).reduce(function(e,t){return e.concat(t)},[]).map(function(e){var t=e.url,r=e.type;return{type:g[r],url:t}}):[]}};function O(e,t){if(e){var r=y.isArray(e.bidders)?e.bidders:[t],a="include"===e.filter;return y.contains(r,t)===a}}function j(e){return!e||(e.sizes?y.isArrayOfNums(e.sizes,2):!y.isArray(e.aspect_ratios)||0<e.aspect_ratios.length&&e.aspect_ratios[0].min_height&&e.aspect_ratios[0].min_width)}Object(a.registerBidder)(S)}},[206]);