text: (window.webpackJsonpreact_ads=window.webpackJsonpreact_ads||[]).push([[37],{284:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(283),a=r.n(n),o=r(277),i={},c=["criteo","outstream","adagio","browsi"];function d(e,t,r){if(t&&e){if(a()(c,t))return i[e]?(r&&"function"==typeof r&&(i[e].loaded?r():i[e].callbacks.push(r)),i[e].tag):(i[e]={loaded:!1,tag:null,callbacks:[]},r&&"function"==typeof r&&i[e].callbacks.push(r),o.logWarn("module ".concat(t," is loading external JavaScript")),function(t,r){var n=document.createElement("script");n.type="text/javascript",n.async=!0,i[e].tag=n,n.readyState?n.onreadystatechange=function(){"loaded"!==n.readyState&&"complete"!==n.readyState||(n.onreadystatechange=null,r())}:n.onload=function(){r()};return n.src=t,o.insertElement(n),n}(e,(function(){i[e].loaded=!0;try{for(var t=0;t<i[e].callbacks.length;t++)i[e].callbacks[t]()}catch(e){o.logError("Error executing callback","adloader.js:loadExternalScript",e)}})));o.logError("".concat(t," not whitelisted for loading external JavaScript"))}else o.logError("cannot load external script without url and moduleCode")}},287:function(e,t,r){"use strict";r.d(t,"a",(function(){return c})),r.d(t,"c",(function(){return d})),r.d(t,"b",(function(){return s}));var n=r(284),a=r(277),o=r(286),i=r.n(o);function c(e){var t=this,r=e.url,o=e.config,c=e.id,d=e.callback,s=e.loaded,l=e.adUnitCode;this.url=r,this.config=o,this.handlers={},this.id=c,this.loaded=s,this.cmd=[],this.push=function(e){"function"==typeof e?t.loaded?e.call():t.cmd.push(e):a.logError("Commands given to Renderer.push must be wrapped in a function")},this.callback=d||function(){t.loaded=!0,t.process()},!function(e){var t=pbjs.adUnits,r=i()(t,(function(t){return t.code===e}));return!!(r&&r.renderer&&r.renderer.url&&r.renderer.render)}(l)?Object(n.a)(r,"outstream",this.callback):a.logWarn("External Js not loaded by Renderer since renderer url and callback is already defined on adUnit ".concat(l))}function d(e){return!(!e||!e.url)}function s(e,t){e.render(t)}c.install=function(e){return new c({url:e.url,config:e.config,id:e.id,callback:e.callback,loaded:e.loaded,adUnitCode:e.adUnitCode})},c.prototype.getConfig=function(){return this.config},c.prototype.setRender=function(e){this.render=e},c.prototype.setEventHandlers=function(e){this.handlers=e},c.prototype.handleVideoEvent=function(e){var t=e.id,r=e.eventName;"function"==typeof this.handlers[r]&&this.handlers[r](),a.logMessage("Prebid Renderer event for id ".concat(t," type ").concat(r))},c.prototype.process=function(){for(;this.cmd.length>0;)try{this.cmd.shift().call()}catch(e){a.logError("Error processing Renderer command: ",e)}}},69:function(e,t,r){"use strict";r.r(t),r.d(t,"spec",(function(){return s}));var n=r(280),a=r(278),o=r(287),i=r(279);function c(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 d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={code:"byplay",supportedMediaTypes:[i.d],isBidRequestValid:function(e){return!!e.params.sectionId},buildRequests:function(e){return e.map((function(e){var t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({requestId:e.bidId,sectionId:e.params.sectionId},e.params.env?{env:e.params.env}:{});return{method:"POST",url:"https://prebid.byplay.net/bidder",data:JSON.stringify(t),options:{withCredentials:!1}}}))},interpretResponse:function(e,t){var r=e.body;return[{requestId:JSON.parse(t.data).requestId,cpm:r.cpm,width:r.width,height:r.height,creativeId:r.creativeId||"0",ttl:n.b.getConfig("_bidderTimeout"),currency:"JPY",netRevenue:r.netRevenue,mediaType:i.d,vastXml:r.vastXml,renderer:l()}]}};function l(){var e=o.a.install({url:"https://cdn.byplay.net/prebid-byplay-v2.js"});return e.setRender((function(e){e.renderer.push((function(){window.adtagRender(e)}))})),e}Object(a.registerBidder)(s)}}]);