text: pbjsChunk([69],{276:function(e,r,n){e.exports=n(277)},277:function(e,r,n){"use strict";var t=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t])}return e},a=u(n(9)),i=u(n(3)),d=u(n(2)),o=(function(e){{if(e&&e.__esModule)return e;var r={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r.default=e,r}})(n(0)),s=n(7),c=n(4),l=u(n(1));function u(e){return e&&e.__esModule?e:{default:e}}var p="smartyads",f={1:"468x60",2:"728x90",8:"120x600",9:"160x600",10:"300x600",15:"300x250",16:"336x280",19:"300x100",43:"320x50",44:"300x50",48:"300x300",54:"300x1050",55:"970x90",57:"970x250",58:"1000x90",59:"320x80",61:"1000x1000",65:"640x480",67:"320x480",68:"1800x1000",72:"320x320",73:"320x160",83:"480x300",94:"970x310",96:"970x210",101:"480x320",102:"768x1024",113:"1000x300",117:"320x100",125:"800x250",126:"200x600"};function x(){return t(new a.default(p),{callBids:function(e){(e.bids||[]).forEach((function(e){try{(0,s.ajax)(function(e){e.startTime=(new Date).getTime();var r,n=x.masSizeOrdering(Array.isArray(e.params.sizes)?e.params.sizes.map((function(e){return(f[e]||"").split("x")})):e.sizes);if(n.length<1)throw"no valid sizes";r="http:"!==window.location.protocol?1:0;var t=window.location.host,a=window.location.pathname,i=navigator.language,d=window.screen.width,o=window.screen.height,s=["banner_id",e.params.banner_id,"size_ad",n[0],"alt_size_ad",n.slice(1).join(",")||void 0,"host",t,"page",a,"language",i,"deviceWidth",d,"deviceHeight",o,"secure",r,"bidId",e.bidId,"checkOn","rf"];return s.reduce((function(e,r,n){return n%2==0&&void 0!==s[n+1]?e+r+"="+encodeURIComponent(s[n+1])+"&":e}),"//ssp-nj.webtradehub.com/?").slice(0,-1)}(e),(function(r){try{o.logMessage("XHR callback function called for ad ID: "+e.bidId),t=r,a=e,s=JSON.parse(t),(l=i.default.createBid(c.STATUS.GOOD,a)).creative_id=s.ad_id,l.bidderCode=a.bidder,l.cpm=s.cpm||0,l.ad=s.adm,l.width=s.width,l.height=s.height,l.dealId=s.deal,d.default.addBidResponse(a.placementCode,l)}catch(r){"string"==typeof r?o.logWarn(r+" when processing smartyads response for placement code "+e.placementCode):o.logError("Error processing smartyads response for placement code "+e.placementCode,null,r);var n=i.default.createBid(c.STATUS.NO_BID,e);n.bidderCode=e.bidder,n.error=r,d.default.addBidResponse(e.placementCode,n)}var t,a,s,l}),void 0,{withCredentials:!0})}catch(r){o.logError("Error sending smartyads request for placement code "+e.placementCode,null,r)}}))}})}o._each(f,(function(e,r){return f[e]=r})),x.masSizeOrdering=function(e){var r=[15,2,9];return o.parseSizesInput(e).reduce((function(e,r){var n=parseInt(f[r],10);return n&&e.push(n),e}),[]).sort((function(e,n){var t=r.indexOf(e),a=r.indexOf(n);return t>-1||a>-1?-1===t?1:-1===a?-1:t-a:e-n}))},l.default.registerBidAdapter(new x,"smartyads"),e.exports=x}},[276]);