pbjsChunk([116],{126:function(e,r,t){e.exports=t(127)},127:function(e,r,t){"use strict";var n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a=o(t(9)),s=o(t(3)),u=o(t(2)),l=(function(e){{if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}})(t(0)),p=t(13),h=t(7),v=t(4);function o(e){return e&&e.__esModule?e:{default:e}}var i=function(){var i="0.2",c=new a.default("adyoulike");function d(e){var r=f(e.sizes);return!!(e.params.placement&&r.width&&r.height)}function f(e){var r={},t=l.parseSizesInput(e)[0];if("string"!=typeof t)return r;var n=t.toUpperCase().split("X"),a=parseInt(n[0],10);a&&(r.width=a);var o=parseInt(n[1],10);return o&&(r.height=o),r}return c.callBids=function(e){var r={},t=(e.bids||[]).filter(d);t.forEach((function(e){r[e.params.placement]=e}));var n=t.map((function(e){return e.params.placement}));if(!l.isEmpty(n)){var a=(function(r,e){var t={Version:i,Placements:e,TransactionIds:{}};try{performance&&performance.navigation&&(t.PageRefreshed=performance.navigation.type===performance.navigation.TYPE_RELOAD)}catch(e){t.PageRefreshed=!1}return e.forEach((function(e){t.TransactionIds[e]=r[e].transactionId})),JSON.stringify(t)})(r,n),o=(0,p.format)({protocol:"https:"===document.location.protocol?"https":"http",host:"hb-api.omnitagjs.com",pathname:"/hb-api/prebid",search:(function(){var e={},r=(function(){var e="";if(window.self!==window.top)try{e=window.top.document.referrer}catch(e){}else e=document.referrer;return e})();r&&(e.RefererUrl=encodeURIComponent(r));var t=(function(){var e=void 0;if(window.self!==window.top)try{e=window.top.document.head.querySelector('link[rel="canonical"][href]')}catch(e){}else e=document.head.querySelector('link[rel="canonical"][href]');return e?e.href:""})();return t&&(e.CanonicalUrl=encodeURIComponent(t)),e})()});(0,h.ajax)(o,(function(e){!(function(o,e){var r=[];try{r=JSON.parse(e)}catch(e){l.logError(e)}var i={};r.forEach((function(e){i[e.Placement]=e})),Object.keys(o).forEach((function(e){var r,t,n,a;r=o[e],t=i[e],n=(function(e,r,t){var n=void 0;if(t&&t.Banner){n=s.default.createBid(v.STATUS.GOOD,r);var a=f(r.sizes);n.width=a.width,n.height=a.height,n.cpm=t.Price,n.ad=t.Banner}else n=s.default.createBid(v.STATUS.NO_BID,r);return n.bidderCode=c.getBidderCode(),n})(0,r,t),a=r.placementCode,u.default.addBidResponse(a,n)}))})(r,e)}),a,{contentType:"text/json",withCredentials:!0})}},n(this,{callBids:c.callBids,setBidderCode:c.setBidderCode})};o(t(1)).default.registerBidAdapter(new i,"adyoulike"),e.exports=i}},[126]);