November 13, 2024

What Are “High Crimes and Misdemeanors”?

Misdemeanors #Misdemeanors

“));var m=_[n.size_id].split(“x”).map(function(e){return Number(e)}),v=(0,i.Z)(m,2);f.width=v[0],f.height=v[1]}f.rubiconTargeting=(Array.isArray(n.targeting)?n.targeting:[]).reduce(function(e,t){return e[t.key]=t.values[0],e},{rpfl_elemid:p.adUnitCode}),t.push(f)}else(0,g.H)(“Rubicon: bidRequest undefined at index position:”.concat(r),d,e);return t},[]).sort(function(e,t){return(t.cpm||0)-(e.cpm||0)})},getUserSyncs:function(e,t,n,r){if(!A&&e.iframeEnabled){var i={};return n&&(“boolean”==typeof n.gdprApplies&&(i.gdpr=Number(n.gdprApplies)),”string”==typeof n.consentString&&(i.gdpr_consent=n.consentString)),r&&(i.us_privacy=encodeURIComponent(r)),i=Object.keys(i).length?”?”.concat((0,g.Yp)(i)):””,A=!0,{type:”iframe”,url:”https://”.concat(y.syncHost||”eus”,”.rubiconproject.com/usync.html”)+i}}},transformBidParams:function(e,t){return(0,g.uh)({accountId:”number”,siteId:”number”,zoneId:”number”},e)}};function T(e,t){var n;return n=e.params.referrer?e.params.referrer:t.refererInfo.page,e.params.secure?n.replace(/^http:/i,”https:”):n}function O(e){var t,n=document.getElementById(e.adUnitCode);(t=n.querySelector(“div[id^=’google_ads’]”))&&t.style.setProperty(“display”,”none”),function(e){var t=e.querySelector(“script[id^=’sas_script’]”),n=t&&t.nextSibling;n&&”iframe”===n.localName&&n.style.setProperty(“display”,”none”)}(n);var r=e.renderer.getConfig();e.renderer.push(function(){window.MagniteApex.renderAd({width:e.width,height:e.height,vastUrl:e.vastUrl,placement:{attachTo:n,align:r.align||”center”,position:r.position||”append”},closeButton:r.closeButton||!1,label:r.label||void 0,collapse:r.collapse||!0})})}function E(e,t){var n=e.params;if(t===l.pX){var r=[];return n.video&&n.video.playerWidth&&n.video.playerHeight?r=[n.video.playerWidth,n.video.playerHeight]:Array.isArray((0,v.Z)(e,”mediaTypes.video.playerSize”))&&1===e.mediaTypes.video.playerSize.length?r=e.mediaTypes.video.playerSize[0]:Array.isArray(e.sizes)&&e.sizes.length>0&&Array.isArray(e.sizes[0])&&e.sizes[0].length>1&&(r=e.sizes[0]),r}var i=[];return Array.isArray(n.sizes)?i=n.sizes:void 0!==(0,v.Z)(e,”mediaTypes.banner.sizes”)?i=C(e.mediaTypes.banner.sizes):Array.isArray(e.sizes)&&e.sizes.length>0?i=C(e.sizes):(0,g.yN)(“Rubicon: no sizes are setup or found”),function(e){var t=[15,2,9];return i.sort(function(e,n){var r=t.indexOf(e),i=t.indexOf(n);return r>-1||i>-1?-1===r?1:-1===i?-1:r-i:e-n})}()}function C(e){return(0,g.sF)(e).reduce(function(e,t){var n=parseInt(_[t],10);return n&&e.push(n),e},[])}function k(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=[];if(function(e){var t=void 0!==(0,v.Z)(e,”mediaTypes.”.concat(l.pX)),n=void 0!==(0,v.Z)(e,”mediaTypes.”.concat(l.Mk)),r=void 0!==(0,v.Z)(e,”params.bidonmultiformat”),i=”object”!==(0,o.Z)((0,v.Z)(e,”params.video”));return!(!t||!r)||(n&&i&&(t=!1),t&&i&&(0,m.N)(e,”params.video”,{}),t)}(e)){if(-1===[“outstream”,”instream”].indexOf((0,v.Z)(e,”mediaTypes.”.concat(l.pX,”.context”))))return t&&(0,g.H)(“Rubicon: mediaTypes.video.context must be outstream or instream”),n;if(E(e,l.pX).length0)return l.getDataFromLocalStorage(e)}}function h(e,t){return function(n,r){t?b(t,e,function(){n(r()||e)})():n(e)}}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:””,n=arguments.length>2?arguments[2]:void 0;if(e){var r=(0,o.en)(e);r.search.id=encodeURIComponent(“pubcid:”+t);var i=(0,o.Q2)(r);return function(){(0,o.hq)(i,n)}}}function y(){return!!(l.cookiesAreEnabled()&&v(g,p)||l.hasLocalStorage()&&v(g,f))}var _={name:”sharedId”,aliasName:”pubCommonId”,gvlid:d.$P,decode:function(e,t){if(!y())return(0,o.PN)(” Decoded value PubCommonId “+e),{pubcid:e};(0,o.PN)(“PubCommonId decode: Has opted-out”)},getId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>2?arguments[2]:void 0;if(y())(0,o.PN)(“PubCommonId: Has opted-out”);else{if(!s.VP.getCoppa()){var n=e.params,i=(n=void 0===n?{}:n).create,a=void 0===i||i,c=n.pixelUrl,d=t;if(!d){try{“object”===(0,r.Z)(window[m])&&(d=window[m].getId())}catch(e){}d||(d=a&&(0,o.wn)()?(0,o.DO)():void 0)}return{id:d,callback:h(d,c)}}(0,o.PN)(“PubCommonId: IDs not provided for coppa requests, exiting PubCommonId”)}},extendId:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>2?arguments[2]:void 0;if(y())return(0,o.PN)(“PubCommonId: Has opted-out”),{id:void 0};if(s.VP.getCoppa())(0,o.PN)(“PubCommonId: IDs not provided for coppa requests, exiting PubCommonId”);else{var n=e.params,r=(n=void 0===n?{}:n).extend,i=void 0!==r&&r,a=n.pixelUrl;if(i)return a?{callback:b(a,t)}:{id:t}}},domainOverride:function(){for(var e,t,n=document.domain.split(“.”),r=”_gd”.concat(Date.now()),i=0;i=0?n.connection.downlink.toString():””),timeToFirstByte:m(window),data:r,deviceWidth:screen.width,hb_version:”7.44.0″},function(e){var t={unifiedId2:”uid2.id”,liveRampId:”idl_env”,lotamePanoramaId:”lotamePanoramaId”,id5Id:”id5id.uid”,criteoId:”criteoId”,yahooConnectId:”connectId”,quantcastId:”quantcastId”,epsilonPublisherLinkId:”publinkId”,publisherFirstPartyViewerId:”pubcid”,merkleId:”merkleId.id”,kinessoId:”kpuid”},n={};for(var r in t){var i=t[r],o=(0,a.Z)(e,”0.userId.”.concat(i));o&&(n[r]=o)}return n}(e)),function(e){var t=(0,a.Z)(e,”0.userId.teadsId”);if(t)return{firstPartyCookieTeadsId:t};if(p.cookiesAreEnabled(null)){var n=p.getCookie(“_tfpvi”,null);if(n)return{firstPartyCookieTeadsId:n}}return{}}(e)),o=e[0];o.schain&&(i.schain=o.schain);var s=t.gdprConsent;if(t&&s){var c=”boolean”==typeof s.gdprApplies,d=”string”==typeof s.consentString,l=c?function(e,t){var n=12;return e?t&&!t.isServiceSpecific&&(n=11):n=0,n}(s.gdprApplies,s.vendorData):22;i.gdpr_iab={consent:d?s.consentString:””,status:l,apiVersion:s.apiVersion}}t&&t.uspConsent&&(i.us_privacy=t.uspConsent);var f=(0,a.Z)(o,”ortb2.device.sua”);return f&&(i.userAgentClientHints=f),{method:”POST”,url:”https://a.teads.tv/hb/bid-request”,data:JSON.stringify(i)}},interpretResponse:function(e,t){var n=[];return(e=e.body).responses&&e.responses.forEach(function(e){var t={cpm:e.cpm,width:e.width,height:e.height,currency:e.currency,netRevenue:!0,ttl:e.ttl,meta:{advertiserDomains:e&&e.adomain?e.adomain:[]},ad:e.ad,requestId:e.bidId,creativeId:e.creativeId,placementId:e.placementId};e.dealId&&(t.dealId=e.dealId),n.push(t)}),n}};function g(e){var t=””;return e&&e.refererInfo&&e.refererInfo.page&&(t=e.refererInfo.page),t}function m(e){var t=e.performance||e.webkitPerformance||e.msPerformance||e.mozPerformance,n=t&&”function”==typeof t.getEntriesByType&&”[object Function]”===Object.prototype.toString.call(t.getEntriesByType)&&t.getEntriesByType(“navigation”)[0]&&t.getEntriesByType(“navigation”)[0].responseStart&&t.getEntriesByType(“navigation”)[0].requestStart&&t.getEntriesByType(“navigation”)[0].responseStart>0&&t.getEntriesByType(“navigation”)[0].requestStart>0&&Math.round(t.getEntriesByType(“navigation”)[0].responseStart-t.getEntriesByType(“navigation”)[0].requestStart);if(n)return n.toString();var r=t&&t.timing.responseStart&&t.timing.requestStart&&t.timing.responseStart>0&&t.timing.requestStart>0&&t.timing.responseStart-t.timing.requestStart;return r?r.toString():””}function v(e){var t={},n=(0,o.NA)(e.params,”placementId”),r=(0,o.NA)(e.params,”pageId”),i=(0,a.Z)(e,”ortb2Imp.ext.gpid”);return t.sizes=function(e){return(0,o.sF)(function(e){var t=(0,a.Z)(e,”mediaTypes.video.playerSize”),n=(0,a.Z)(e,”mediaTypes.video.sizes”),r=(0,a.Z)(e,”mediaTypes.banner.sizes”);return(0,o.kJ)(r)||(0,o.kJ)(t)||(0,o.kJ)(n)?[r,n,t].reduce(function(e,t){return(0,o.kJ)(t)&&((0,o.kJ)(t[0])?t.forEach(function(t){e.push(t)}):e.push(t)),e},[]):e.sizes}(e))}(e),t.bidId=(0,o.An)(“bidId”,e),t.bidderRequestId=(0,o.An)(“bidderRequestId”,e),t.placementId=parseInt(n,10),t.pageId=parseInt(r,10),t.adUnitCode=(0,o.An)(“adUnitCode”,e),t.auctionId=(0,o.An)(“auctionId”,e),t.transactionId=(0,o.An)(“transactionId”,e),i&&(t.gpid=i),t}function h(e){return parseInt(e)>0}(0,s.dX)(f),(0,i.z)(“teadsBidAdapter”)}},function(e){e(e.s=6401)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[599],{789:function(e,t,n){var r=n(1002),i=n(4942),o=n(9062),a=n(8640),s=n(4358),c=n(4679),d=n(5339),u=n(3193),l=n(5164);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&(i.user={ext:{eids:d}});var u=function(e,t){var n={};return(0,s.xb)(e)||(n.schain=f({},e)),(0,s.xb)(t)||(n.fpd=f({},t)),n}(a,c);return(0,s.xb)(u)||(i.ext=u),null!=t&&null!==(n=t.ortb2)&&void 0!==n&&null!==(r=n.regs)&&void 0!==r&&r.gpp&&(i.regs=Object.assign({},t.ortb2.regs)),i}(e,t);if(n=(0,s.t0)(n,”lib”,”prebid”),n=(0,s.t0)(n,”v”,”7.44.0″),t&&t.refererInfo){var i=t.refererInfo.page;n=(0,s.t0)(n,”referrer”,i)}return t&&t.timeout&&(n=(0,s.t0)(n,”tmax”,t.timeout)),t&&t.gdprConsent&&(void 0!==t.gdprConsent.gdprApplies&&(m=t.gdprConsent.gdprApplies,n=(0,s.t0)(n,”gdpr”,m.toString())),void 0!==t.gdprConsent.consentString&&(v=t.gdprConsent.consentString,n=(0,s.t0)(n,”cmp_cs”,v))),t&&t.uspConsent&&(n=(0,s.t0)(n,”us_privacy”,t.uspConsent)),!0===u.vc.getConfig(“coppa”)&&(n=(0,s.t0)(n,”coppa”,!0)),n.lastIndexOf(“&”)===n.length-1&&(n=n.substring(0,n.length-1)),(0,s.ji)(“tlCall request built: “+n),{method:”POST”,url:n,data:r,bidderRequest:t}},interpretResponse:function(e,t){var n=t.bidderRequest;return(e.body.bids||[]).map(function(e){return function(e,t){var n={},r=t.width||1,i=t.height||1,o=t.deal_id||””,a=t.crid||””,s=e.bids[t.imp_id];return 0!=t.cpm&&t.ad&&(n={requestId:s.bidId,cpm:t.cpm,width:r,height:i,netRevenue:!0,ad:t.ad,creativeId:a,dealId:o,currency:”USD”,ttl:300,tl_source:t.tl_source,meta:{}},y(s)&&”video”===t.media_type&&(n.vastXml=t.ad,n.mediaType=”video”,n.ttl=3600),t.advertiser_name&&(n.meta.advertiserName=t.advertiser_name),t.adomain&&t.adomain.length&&(n.meta.advertiserDomains=t.adomain),t.tl_source&&”hdx”==t.tl_source&&(y(s)&&”video”===t.media_type?n.meta.mediaType=”video”:n.meta.mediaType=”banner”),t.tl_source&&”tlx”==t.tl_source&&(n.meta.mediaType=”native”),a&&(n.meta.networkId=a.slice(0,a.indexOf(“_”)))),n}(n,e)})},getUserSyncs:function(e,t,n,r){var i=function(e){if(e)return e.iframeEnabled?”iframe”:e.pixelEnabled?”image”:void 0}(e);if(i){var o=”https://eb2.3lift.com/sync?”;return”image”===i&&(o=(0,s.t0)(o,”px”,1),o=(0,s.t0)(o,”src”,”prebid”)),null!==v&&(o=(0,s.t0)(o,”gdpr”,m),o=(0,s.t0)(o,”cmp_cs”,v)),r&&(o=(0,s.t0)(o,”us_privacy”,r)),[{type:i,url:o}]}}};function y(e){return I(e)&&(_(e)||function(e){return I(e)&&”outstream”===e.mediaTypes.video.context.toLowerCase()}(e))}function _(e){return I(e)&&”instream”===e.mediaTypes.video.context.toLowerCase()}function I(e){return e.mediaTypes.video&&e.mediaTypes.video.context}function w(e){var t=null;if(“function”==typeof e.getFloor)try{var n=e.getFloor({currency:”USD”,mediaType:y(e)?”video”:”banner”,size:”*”});”object”!==(0,r.Z)(n)||”USD”!==n.currency||isNaN(parseFloat(n.floor))||(t=parseFloat(n.floor))}catch(e){(0,s.H)(“Triplelift: getFloor threw an error: “,e)}return null!==t?t:e.params.floor}function T(e,t){(0,s.xb)(t)||Object.keys(t).forEach(function(n){null!=t[n]&&(e[n]=t[n])})}function O(e,t,n,r){return e.map(function(e){return function(t){return t&&t.userId&&t.userId[e]}}(t)).filter(E(t)).map(function(e,t){return function(n){return{source:e,uids:[{id:n.id?n.id:n,ext:{rtiPartner:t}}]}}}(n,r))}var E=function(e){return function(t,n,r){var i=!!t&&((0,s.d8)(t)?!!t:(0,s.PO)(t)&&!(0,s.kJ)(t)&&!(0,s.xb)(t)&&t.id&&(0,s.d8)(t.id)&&!!t.id);return i||void 0===r[0]||(0,s.yN)(“Triplelift: invalid “.concat(e,” userId format”)),i}};function C(e){return e.filter(k).map(function(e){return{w:e[0],h:e[1]}})}function k(e){return 2===e.length&&”number”==typeof e[0]&&”number”==typeof e[1]}(0,d.dX)(b),(0,a.z)(“tripleliftBidAdapter”)}},function(e){e(e.s=789)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[158],{3446:function(e,t,n){var r=n(9062),i=n(8640),o=n(6475),a=n(4358),s=n(265),c=n(3193),d=n(5339),u=n(4679);function l(e){var t;return{ttdprebid:{ver:”TTD-PREBID-2022.06.28″,pbjs:”7.44.0″,keywords:null!==(t=e.site)&&void 0!==t&&t.keywords?e.site.keywords.split(“,”).map(function(e){return e.trim()}):[]}}}function p(e){var t,n={};return e.gdprConsent&&”boolean”==typeof e.gdprConsent.gdprApplies&&o.N(n,”ext.gdpr”,e.gdprConsent.gdprApplies?1:0),e.uspConsent&&o.N(n,”ext.us_privacy”,e.uspConsent),!0===c.vc.getConfig(“coppa”)&&(n.coppa=1),null!==(t=e.ortb2)&&void 0!==t&&t.regs&&a.Ee(n,e.ortb2.regs),n}function f(e){var t={tid:e[0].auctionId};return e[0].schain&&o.N(t,”ext.schain”,e[0].schain),t}function g(){var e=navigator.connection||navigator.webkitConnection;if(!e)return 0;switch(e.type){case”ethernet”:return 1;case”wifi”:return 2;case”cellular”:switch(e.effectiveType){case”slow-2g”:case”2g”:return 4;case”3g”:return 5;case”4g”:return 6;default:return 3}default:return 0}}function m(e){var t={};e.gdprConsent&&o.N(t,”ext.consent”,e.gdprConsent.consentString),a.d8(s.Z(e,”bids.0.userId.tdid”))&&(t.buyeruid=e.bids[0].userId.tdid);var n=s.Z(e,”bids.0.userIdAsEids”);n&&n.length&&o.N(t,”ext.eids”,n);var i=s.Z(e,”ortb2.user.data”);return i&&i.length&&(t=a.Ee(t,{data:(0,r.Z)(i)})),t}function v(e,t){var n=a.Ee({page:s.Z(e,”refererInfo.page”),ref:s.Z(e,”refererInfo.ref”),publisher:{id:s.Z(e,”bids.0.params.publisherId”)}},t.site),r=e.refererInfo.domain;return r&&o.N(n,”publisher.domain”,r),n}var h={code:”ttd”,gvlid:21,aliases:[“thetradedesk”],supportedMediaTypes:[u.Mk,u.pX],isBidRequestValid:function(e){if(!e||!e.params)return a.yN(“ttd: Missing bid parameters”),!1;if(!e.params.supplySourceId)return a.yN(“ttd: Missing required parameter params.supplySourceId”),!1;if(!/^[w+]+$/.test(e.params.supplySourceId))return a.yN(“ttd: supplySourceId must only contain alphabetic characters”),!1;if(!e.params.publisherId)return a.yN(“ttd: Missing required parameter params.publisherId”),!1;if(e.params.publisherId.length>32)return a.yN(“ttd: params.publisherId must be 32 characters or less”),!1;if(e.params.bidfloor&&isNaN(parseFloat(e.params.bidfloor)))return!1;var t=s.Z(e,”ortb2Imp.ext.gpid”);if(!e.params.placementId&&!t)return a.yN(“ttd: one of params.placementId or gpid (via the GPT module https://docs.prebid.org/dev-docs/modules/gpt-pre-auction.html) must be passed”),!1;var n=s.Z(e,”mediaTypes.banner”),r=s.Z(e,”mediaTypes.video”);if(!n&&!r)return a.yN(“ttd: one of mediaTypes.banner or mediaTypes.video must be passed”),!1;if(r){if(!r.maxduration||!a.U(r.maxduration))return a.yN(“ttd: mediaTypes.video.maxduration must be set to the maximum video ad duration in seconds”),!1;if(!r.api||0===r.api.length)return a.yN(“ttd: mediaTypes.video.api should be an array of supported api frameworks. See the Open RTB v2.5 spec for valid values”),!1;if(!r.mimes||0===r.mimes.length)return a.yN(“ttd: mediaTypes.video.mimes should be an array of supported mime types”),!1;if(!r.protocols)return a.yN(“ttd: mediaTypes.video.protocols should be an array of supported protocols. See the Open RTB v2.5 spec for valid values”),!1}return!0},buildRequests:function(e,t){var n,r=t.ortb2||{},i={id:t.auctionId,imp:e.map(function(e){return function(e){var t={id:e.bidId},n=s.Z(e,”ortb2Imp.ext.gpid”),r=s.Z(e,”ortb2Imp.ext.tid”),i=s.Z(e,”ortb2Imp.rwdd”);(n||r)&&(t.ext={},n&&(t.ext.gpid=n),r&&(t.ext.tid=r)),i&&(t.rwdd=i);var o=n||e.params.placementId;o&&(t.tagid=o);var c=s.Z(e,”mediaTypes.video”),d={};s.Z(e,”mediaTypes.banner”)&&(d[u.Mk]=function(e){var t=function(e){return a.sF(e).filter(function(e){return e}).map(function(e){return e.split(“x”)}).map(function(e){return{width:parseInt(e[0]),height:parseInt(e[1])}})}(e.mediaTypes.banner.sizes).map(function(e){return{w:e.width,h:e.height}}),n=parseInt(s.Z(e,”mediaTypes.banner.pos”)),r=s.Z(e,”params.banner.expdir”),i={};n&&(i.pos=n),r&&Array.isArray(r)&&(i.expdir=r);var o=Object.assign({w:t[0].w,h:t[0].h,format:t},i),c=s.Z(e,”ortb2Imp.battr”);return c&&(o.battr=c),o}(e)),c&&(d[u.pX]=function(e){var t=s.Z(e,”mediaTypes.video.minduration”),n=s.Z(e,”mediaTypes.video.maxduration”),r=s.Z(e,”mediaTypes.video.playerSize”),i=s.Z(e,”mediaTypes.video.api”),o=s.Z(e,”mediaTypes.video.mimes”),c=s.Z(e,”mediaTypes.video.placement”),d=s.Z(e,”mediaTypes.video.plcmt”),u=s.Z(e,”mediaTypes.video.protocols”),l=s.Z(e,”mediaTypes.video.playbackmethod”),p=s.Z(e,”mediaTypes.video.pos”),f=s.Z(e,”mediaTypes.video.startdelay”),g=s.Z(e,”mediaTypes.video.skip”),m=s.Z(e,”mediaTypes.video.skipmin”),v=s.Z(e,”mediaTypes.video.skipafter”),h=s.Z(e,”mediaTypes.video.minbitrate”),b=s.Z(e,”mediaTypes.video.maxbitrate”);t&&a.U(t)||(t=0);var y={minduration:t,maxduration:n,api:i,mimes:o,placement:c,protocols:u};void 0!==r&&(a.kJ(r[0])?(y.w=parseInt(r[0][0]),y.h=parseInt(r[0][1])):a.hj(r[0])&&(y.w=parseInt(r[0]),y.h=parseInt(r[1]))),l&&(y.playbackmethod=l),d&&(y.plcmt=d),p&&(y.pos=p),f&&a.U(f)&&(y.startdelay=f),!g||0!==g&&1!==g||(y.skip=g),m&&a.U(m)&&(y.skipmin=m),v&&a.U(v)&&(y.skipafter=v),h&&a.U(h)&&(y.minbitrate=h),b&&a.U(b)&&(y.maxbitrate=b);var _=s.Z(e,”ortb2Imp.battr”);return _&&(y.battr=_),y}(e)),Object.assign(t,d);var l=function(e){if(e.params.bidfloor)return e.params.bidfloor;if(!a.LQ(e.getFloor))return null;var t=e.getFloor({currency:”USD”,mediaType:”*”,size:”*”});return a.PO(t)&&!isNaN(t.floor)&&”USD”===t.currency?t.floor:null}(e);return l&&(t.bidfloor=parseFloat(l),t.bidfloorcur=”USD”),t}(e)}),site:v(t,r),device:(n=navigator.language||navigator.browserLanguage||navigator.userLanguage||navigator.systemLanguage,{ua:navigator.userAgent,dnt:a.oV()?1:0,language:n,connectiontype:g()}),user:m(t),at:1,cur:[“USD”],regs:p(t),source:f(e),ext:l(r)};return r&&r.bcat&&(i.bcat=r.bcat),r&&r.badv&&(i.badv=r.badv),{method:”POST”,url:”https://direct.adsrvr.org/bid/bidder/”+t.bids[0].params.supplySourceId,data:i,options:{withCredentials:!0}}},interpretResponse:function(e,t){var n=s.Z(e,”body.seatbid”),r=s.Z(e,”body.cur”);if(!n||0===n.length)return[];var i=[],o=s.Z(t,”data.imp”);return n.forEach(function(e){e.bid.forEach(function(e){var t=o.find(function(t){return t.id===e.impid}),n=e.price||0,s={requestId:e.impid,cpm:n,creativeId:e.crid,dealId:e.dealid||null,currency:r||”USD”,netRevenue:!0,ttl:e.ttl||360,meta:{}};e.adomain&&e.adomain.length>0&&(s.meta.advertiserDomains=e.adomain),1===e.ext.mediatype?Object.assign(s,{width:e.w,height:e.h,ad:a.ew(e.adm,n),mediaType:u.Mk}):2===e.ext.mediatype&&(Object.assign(s,{width:t.video.w,height:t.video.h,mediaType:u.pX}),e.nurl?s.vastUrl=a.ew(e.nurl,n):s.vastXml=a.ew(e.adm,n)),i.push(s)})}),i},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]:””,i=[],o=”&gdpr=”.concat(n.gdprApplies?1:0,”&gdpr_consent=”).concat(encodeURIComponent(n.consentString)),a=””.concat(“https://match.adsrvr.org”,”/track/usersync?us_privacy=”).concat(encodeURIComponent(r)).concat(o);return e.pixelEnabled?i.push({type:”image”,url:a+”&ust=image”}):e.iframeEnabled&&i.push({type:”iframe”,url:a+”&ust=iframe”}),i}};(0,d.dX)(h),(0,i.z)(“ttdBidAdapter”)}},function(e){e(e.s=3446)}]),(self.pbjsChunk=self.pbjsChunk||[]).push([[215],{2722:function(e,t,n){var r=n(1002),i=n(8640),o=n(4614),a=n(3193),s=n(2021),c=n(1039),d=n(5644),u=n(2797),l=n(4358),p=n(265),f={growthCodeId:{getValue:function(e){return e.gc_id},source:”growthcode.io”,atype:1,getUidExt:function(e){var t=(0,l.ei)(e,[“h1″,”h2″,”h3″]);if(Object.keys(t).length)return t}},trustpid:{source:”trustpid.com”,atype:1,getValue:function(e){return e}},intentIqId:{source:”intentiq.com”,atype:1},naveggId:{source:”navegg.com”,atype:1},justId:{source:”justtag.com”,atype:1},pubcid:{source:”pubcid.org”,atype:1},tdid:{source:”adserver.org”,atype:1,getUidExt:function(){return{rtiPartner:”TDID”}}},id5id:{getValue:function(e){return e.uid},source:”id5-sync.com”,atype:1,getUidExt:function(e){if(e.ext)return e.ext}},ftrackId:{source:”flashtalking.com”,atype:1,getValue:function(e){var t=””;return e&&e.ext&&e.ext.DeviceID&&(t=e.ext.DeviceID),t},getUidExt:function(e){return e&&e.ext}},parrableId:{source:”parrable.com”,atype:1,getValue:function(e){return e.eid?e.eid:e.ccpaOptout?””:null},getUidExt:function(e){var t=(0,l.ei)(e,[“ibaOptout”,”ccpaOptout”]);if(Object.keys(t).length)return t}},idl_env:{source:”liveramp.com”,atype:3},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}}},britepoolid:{source:”britepool.com”,atype:3},dmdId:{source:”hcn.health”,atype:3},lotamePanoramaId:{source:”crwdcntrl.net”,atype:1},criteoId:{source:”criteo.com”,atype:1},merkleId:{atype:3,getSource:function(e){var t;return null!=e&&null!==(t=e.ext)&&void 0!==t&&t.ssp?””.concat(e.ext.ssp,”.merkleinc.com”):”merkleinc.com”},getValue:function(e){return e.id},getUidExt:function(e){return e.keyID?{keyID:e.keyID}:e.ext?e.ext:void 0}},netId:{source:”netid.de”,atype:1},IDP:{source:”zeotap.com”,atype:1},hadronId:{source:”audigent.com”,atype:1},quantcastId:{source:”quantcast.com”,atype:1},idx:{source:”idx.lat”,atype:1},connectid:{source:”verizonmedia.com”,atype:3},fabrickId:{source:”neustar.biz”,atype:1},mwOpenLinkId:{source:”mediawallahscript.com”,atype:1},tapadId:{source:”tapad.com”,atype:1},novatiq:{getValue:function(e){return void 0===e.snowflake.id?e.snowflake:e.snowflake.id},source:”novatiq.com”},uid2:{source:”uidapi.com”,atype:3,getValue:function(e){return e.id}},deepintentId:{source:”deepintent.com”,atype:3},admixerId:{source:”admixer.net”,atype:3},adtelligentId:{source:”adtelligent.com”,atype:3},amxId:{source:”amxdt.net”,atype:1},publinkId:{source:”epsilon.com”,atype:3},kpuid:{source:”kpuid.com”,atype:3},imppid:{source:”ppid.intimatemerger.com”,atype:1},imuid:{source:”intimatemerger.com”,atype:1},connectId:{source:”yahoo.com”,atype:3},qid:{source:”adquery.io”,atype:1},dacId:{source:”impact-ad.jp”,atype:1},”33acrossId”:{source:”33across.com”,atype:1,getValue:function(e){return e.envelope}},tncid:{source:”thenewco.it”,atype:3},gravitompId:{source:”gravito.net”,atype:1},czechAdId:{source:”czechadid.cz”,atype:1},oneKeyData:{getValue:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0])return e.identifiers[0].value},source:”paf”,atype:1,getEidExt:function(e){if(e&&e.preferences)return{preferences:e.preferences}},getUidExt:function(e){if(e&&Array.isArray(e.identifiers)&&e.identifiers[0]){var t=e.identifiers[0];return{version:t.version,type:t.type,source:t.source}}}}};function g(e,t){var n=f[t];if(n&&e){var r={};r.source=(0,l.LQ)(n.getSource)?n.getSource(e):n.source;var i=(0,l.LQ)(n.getValue)?n.getValue(e):e;if((0,l.d8)(i)){var o={id:i,atype:n.atype};if((0,l.LQ)(n.getUidExt)){var a=n.getUidExt(e);a&&(o.ext=a)}if(r.uids=[o],(0,l.LQ)(n.getEidExt)){var s=n.getEidExt(e);s&&(r.ext=s)}return r}}return null}function m(e){var t=[],n=function(n){if(e.hasOwnProperty(n))if(“pubProvidedId”===n)t=t.concat(e.pubProvidedId);else if(Array.isArray(e[n]))e[n].forEach(function(e,r,i){var o=g(e,n);o&&t.push(o)});else{var r=g(e[n],n);r&&t.push(r)}};for(var r in e)n(r);return t}var v,h,b,y,_,I,w=n(5164),T=n(6475),O=(0,u.z3)(“sync”,function(){}),E=n(8792),C=n(7673),k=n(6372),x=n(9128),S=n(8196),A=n(2513),P=n(9633),j=”User ID”,D=w.c$,R=w.Dp,B=”_pbjs_userid_consent_data”,N=30,U=”_pbjs_id_optout”,Z=(0,w.eA)(“userid”),q=!1,M=[],z=[],F=[],H=function(){return null==I&&(I=(0,x.V6)()),I};function L(e){return H().fork().renameWith(function(t){return[“userId.mod.”.concat(t),”userId.mods.”.concat(e,”.”).concat(t)]})}function W(e){var t=”function”==typeof e.submodule.domainOverride?e.submodule.domainOverride():null,n=e.config.storage.name;return function(e,r,i){Z.setCookie(n+(e||””),r,i,”Lax”,t)}}function K(e,t){var n=e.config.storage;try{var r=new Date(Date.now()+864e5*n.expires).toUTCString(),i=(0,l.PO)(t)?JSON.stringify(t):t;if(n.type===D){var o=W(e);o(null,i,r),”number”==typeof n.refreshInSeconds&&o(“_last”,(new Date).toUTCString(),r)}else n.type===R&&(Z.setDataInLocalStorage(“”.concat(n.name,”_exp”),r),Z.setDataInLocalStorage(n.name,encodeURIComponent(i)),”number”==typeof n.refreshInSeconds&&Z.setDataInLocalStorage(“”.concat(n.name,”_last”),(new Date).toUTCString()))}catch(e){(0,l.H)(e)}}function J(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=n?””.concat(e.name,”_”).concat(n):e.name;try{if(e.type===D)t=Z.getCookie(r);else if(e.type===R){var i=Z.getDataFromLocalStorage(“”.concat(e.name,”_exp”));””===i?t=Z.getDataFromLocalStorage(r):i&&new Date(i).getTime()-Date.now()>0&&(t=decodeURIComponent(Z.getDataFromLocalStorage(r)))}”string”==typeof t&&”{“===t.trim().charAt(0)&&(t=JSON.parse(t))}catch(e){(0,l.H)(e)}return t}function V(e){var t={consentString:””,gdprApplies:!1,apiVersion:0};return e&&(t.consentString=e.consentString,t.gdprApplies=e.gdprApplies,t.apiVersion=e.apiVersion),(0,l._R)(JSON.stringify(t))}function X(e,t){t=H().fork().startTiming(“userId.callbacks.total”).stopBefore(t);var n=(0,l.yx)(function(){clearTimeout(void 0),t()},e.length);e.forEach(function(e){var t=L(e.submodule.name).startTiming(“callback”).stopBefore(n);try{var r;e.callback(function(n){n?(e.config.storage&&K(e,n),e.idObj=e.submodule.decode(n,e.config),ue(e.idObj)):(0,l.PN)(“”.concat(j,”: “).concat(e.submodule.name,” – request id responded with an empty value”)),t()},J.bind(null,null===(r=e.config)||void 0===r?void 0:r.storage))}catch(n){(0,l.H)(“Error in userID module ‘”.concat(e.submodule.name,”‘:”),n),t()}e.callback=void 0})}function G(e,t){[e].some(function(e){return!Array.isArray(e)||!e.length})||e.forEach(function(e){e.bids&&(0,l.kJ)(e.bids)&&e.bids.forEach(function(e){var n=function(e,t){return Array.isArray(e)&&e.length&&t?e.filter(function(e){return!e.config.bidders||!(0,l.kJ)(e.config.bidders)||(0,o.q9)(e.config.bidders,t)}).filter(function(e){return(0,l.PO)(e.idObj)&&Object.keys(e.idObj).length}).reduce(function(e,t){return Object.keys(t.idObj).forEach(function(n){e[n]=t.idObj[n]}),e},{}):{}}(t,e.bidder);Object.keys(n).length&&(e.userId=n,e.userIdAsEids=m(n))})})}var Q,Y={};function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ne()||[],t=y&&e.find(function(e){return e.source===y});if(t&&”string”==typeof(0,p.Z)(t,”uids.0.id”)){var n=t.uids[0].id.replace(/[W_]/g,””);if(n.length>=32&&n.length2&&void 0!==arguments[2]?arguments[2]:{},o=r.delay,a=void 0===o?E.Z.timeout:o,s=r.getIds,c=void 0===s?ce:s;E.Z.race([c().catch(function(){return null}),a(b)]).then(function(){G(t.adUnits||(0,i.R)().adUnits,v),H().join((0,x.Bf)(t.metrics),{propagate:!1,includeGroups:!0}),e.call(n,t)})});function te(){return e=v,Array.isArray(e)&&e.length?e.filter(function(e){return(0,l.PO)(e.idObj)&&Object.keys(e.idObj).length}).reduce(function(e,t){return Object.keys(t.idObj).forEach(function(n){e[n]=t.idObj[n]}),e},{}):{};var e}function ne(){return m(te())}function re(e){return m(function(e,t){if(!Array.isArray(e)||!e.length)return{};var n=e.filter(function(e){var n;return(0,l.PO)(e.idObj)&&Object.keys(e.idObj).length&&(null===(n=f[Object.keys(e.idObj)[0]])||void 0===n?void 0:n.source)===t});return(0,l.xb)(n)?[]:n[0].idObj}(v,e))[0]}function ie(e,t,n){return Q().then(function(){var r={};if((0,l.LQ)(n)){(0,l.PN)(“”.concat(j,” – Getting encrypted signal from custom function : “).concat(n.name,” & source : “).concat(e,” “));var i=n(e);r[e]=i?oe(i):null}else{var o=re(e);(0,l.PN)(“”.concat(j,” – Getting encrypted signal for eids :”).concat(JSON.stringify(o))),(0,l.xb)(o)||(r[o.source]=!0===t?oe(o):o.uids[0].id)}return(0,l.PN)(“”.concat(j,” – Fetching encrypted eids: “).concat(r[e])),r[e]})}function oe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=””;return 1===t&&(n=”object”===(0,r.Z)(e)?window.btoa(JSON.stringify(e)):window.btoa(e)),””.concat(t,”||”).concat(n)}function ae(){if((0,l.T9)()){window.googletag.encryptedSignalProviders=window.googletag.encryptedSignalProviders||[];var e=a.vc.getConfig(“userSync.encryptedSignalSources”);if(e){var t=e.registerDelay||0;setTimeout(function(){e.sources&&e.sources.forEach(function(e){var t=e.source,n=e.encrypt,r=e.customFunc;t.forEach(function(e){window.googletag.encryptedSignalProviders.push({id:e,collectorFunction:function(){return ie(e,n,r)}})})})},t)}else(0,l.yN)(“”.concat(j,” – ESP : encryptedSignalSources config not defined under userSync Object”))}}function se(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).submoduleNames,t=arguments.length>1?arguments[1]:void 0;return Q({refresh:!0,submoduleNames:e}).then(function(){return t&&(0,l.LQ)(t)&&t(),te()})}function ce(){return Q().then(function(){return te()},function(e){return e===Y?Promise.resolve().then(ce):((0,l.H)(“Error initializing userId”,e),E.Z.reject(e))})}var de=(0,u.z3)(“sync”,function(e,t){return{userIdModules:e,hasValidated:t&&t.hasValidated}},”validateGdprEnforcement”);function ue(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te();if(e&&y){var t=$(m(e));t&&((0,l.T9)()?window.googletag.pubads().setPublisherProvidedId(t):(window.googletag=window.googletag||{},window.googletag.cmd=window.googletag.cmd||[],window.googletag.cmd.push(function(){window.googletag.pubads().setPublisherProvidedId(t)})))}}function le(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return H().fork().measureTime(“userId.init.modules”,function(){if(!t.length)return[];var i=function(){var e=[],t=!1;return Z.localStorageIsEnabled()&&(e.push(R),Z.getDataFromLocalStorage(U)&&((0,l.PN)(“”.concat(j,” – opt-out localStorage found, storage disabled”)),t=!0)),Z.cookiesAreEnabled()&&(e.push(D),Z.getCookie(U)&&((0,l.PN)(“”.concat(j,” – opt-out cookie found, storage disabled”)),t=!0)),new Set(t?[]:e)}();if(!(t=t.filter(function(e){return!e.config.storage||i.has(e.config.storage.type)})).length)return(0,l.yN)(“”.concat(j,” – no ID module is configured for one of the available storage types:”),Array.from(i)),[];var o=de(t,n),a=o.userIdModules;if(!o.hasValidated&&!(0,C.h)(n))return(0,l.yN)(“”.concat(j,” – gdpr permission not valid for local storage or cookies, exit module”)),[];var s=function(){try{return Z.getCookie(B)}catch(e){(0,l.H)(e)}}();!function(e){try{var t=new Date(Date.now()+864e5*N).toUTCString();Z.setCookie(B,V(e),t,”Lax”)}catch(e){(0,l.H)(e)}}(n);var c=a.reduce(function(e,t){return L(t.submodule.name).measureTime(“init”,function(){try{(function(e,t,n,r){if(e.config.storage){var i,o=J(e.config.storage),a=!1;if(“number”==typeof e.config.storage.refreshInSeconds){var s=new Date(J(e.config.storage,”last”));a=s&&Date.now()-s.getTime()>1e3*e.config.storage.refreshInSeconds}!o||a||r||!function(e,t){return null!=n&&n===V(t)}(0,t)?i=e.submodule.getId(e.config,t,o):”function”==typeof e.submodule.extendId&&(i=e.submodule.extendId(e.config,t,o)),(0,l.PO)(i)&&(i.id&&(K(e,i.id),o=i.id),”function”==typeof i.callback&&(e.callback=i.callback)),o&&(e.idObj=e.submodule.decode(o,e.config))}else if(e.config.value)e.idObj=e.config.value;else{var c=e.submodule.getId(e.config,t,void 0);(0,l.PO)(c)&&(“function”==typeof c.callback&&(e.callback=c.callback),c.id&&(e.idObj=e.submodule.decode(c.id,e.config)))}ue(e.idObj)})(t,n,s,r),e.push(t)}catch(e){(0,l.H)(“Error in userID module ‘”.concat(t.submodule.name,”‘:”),e)}return e})},[]);return c.length&&function(e){var t=(0,l.EE)().setEidPermissions;”function”==typeof t&&(0,l.kJ)(e)&&t(function(e){var t=[];return e.filter(function(e){return(0,l.PO)(e.idObj)&&Object.keys(e.idObj).length}).forEach(function(e){Object.keys(e.idObj).forEach(function(n){(0,p.Z)(e,”config.bidders”)&&Array.isArray(e.config.bidders)&&(0,p.Z)(f,n+”.source”)&&t.push({source:f[n].source,bidders:e.config.bidders})})}),t}(e))}(c),c.forEach(function(e,t){for(var n=!1,r=0;r1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{}).delay,n=void 0===t?E.Z.timeout:t;y=void 0,M=[],z=[],q=!1,v=[],Q=function(){var e,t,n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).delay,r=void 0===n?E.Z.timeout:n,i=(0,E.P)(),o=(0,E.P)(),a=!1;function p(n){return t=H().fork(),null!=e&&e.reject(Y),e=(0,E.P)(),E.Z.race([n,e.promise]).finally(t.startTiming(“userId.total”))}var f=v,g=M;function m(e){return function(){if(f===v&&g===M)return e.apply(void 0,arguments)}}function y(){return c.rp.promise.finally(t.startTiming(“userId.init.gdpr”))}var _=p(E.Z.all([u.Cd,i.promise]).then(y).then(m(function(e){le(f,g,e)})).then(function(){return o.promise.finally(t.startTiming(“userId.callbacks.pending”))}).then(m(function(){var e=f.filter(function(e){return(0,l.LQ)(e.callback)});if(e.length)return new E.Z(function(t){return X(e,t)})})));return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refresh,n=void 0!==t&&t,c=e.submoduleNames,u=void 0===c?null:c,l=e.ready;return void 0!==l&&l&&!a&&(a=!0,i.resolve(),b>0?o.resolve():s.on(d.FP.AUCTION_END,function e(){s.S1(d.FP.AUCTION_END,e),r(h).then(o.resolve)})),n&&a&&(_=p(_.catch(function(){return null}).then(y).then(m(function(e){var t=le(f,g.filter(function(e){return null==u||u.includes(e.submodule.name)}),e,!0).filter(function(e){return null!=e.callback});if(t.length)return new E.Z(function(e){return X(t,e)})})))),_}}({delay:n}),null!=_&&_(),F=[],_=e.getConfig(“userSync”,function(e){var t=e.userSync;y=t.ppid,t&&t.userIds&&(z=t.userIds,h=(0,l.hj)(t.syncDelay)?t.syncDelay:500,b=(0,l.hj)(t.auctionDelay)?t.auctionDelay:0,fe(),Q({ready:!0}))}),(0,i.R)().getUserIds=te,(0,i.R)().getUserIdsAsEids=ne,(0,i.R)().getEncryptedEidsForSource=me(ie),(0,i.R)().registerSignalSources=ae,(0,i.R)().refreshUserIds=me(se),(0,i.R)().getUserIdsAsync=me(ce),(0,i.R)().getUserIdsAsEidBySource=re}(a.vc),(0,u.bA)(“userId”,function(e){(0,o.sE)(F,function(t){return t.name===e.name})||(F.push(e),A.qh.register(P.y2,e.name,e.gvlid),fe(),Q({refresh:!0,submoduleNames:[e.name]}))}),(0,k.f8)({type:k.Z,name:”userExtEids”,fn:function(e,t,n){var r=(0,p.Z)(n,”bidRequests.0.userIdAsEids”);r&&(0,T.N)(e,”user.ext.eids”,r)}}),(0,i.z)(“userId”)},6372:function(e,t,n){n.d(t,{DZ:function(){return s},Px:function(){return c},TP:function(){return u},YC:function(){return d},Z:function(){return a},f8:function(){return g},fP:function(){return m},gm:function(){return i},md:function(){return l}});var r,i=[“request”,”imp”,”bidResponse”,”response”],o=[“default”,”pbs”],a=i[0],s=i[1],c=i[2],d=i[3],u=o[0],l=o[1],p=new Set(i),f=(r={},{registerOrtbProcessor:function(e){var t=e.type,n=e.name,o=e.fn,a=e.priority,s=void 0===a?0:a,c=e.dialects,d=void 0===c?[u]:c;if(!p.has(t))throw new Error(“ORTB processor type must be one of: “.concat(i.join(“, “)));d.forEach(function(e){r.hasOwnProperty(e)||(r[e]={}),r[e].hasOwnProperty(t)||(r[e][t]={}),r[e][t][n]={priority:s,fn:o}})},getProcessors:function(e){return r[e]||{}}}),g=f.registerOrtbProcessor,m=f.getProcessors},7673:function(e,t,n){n.d(t,{h:function(){return i}});var r=n(265);function i(e){return null==e||!e.gdprApplies||!0===(0,r.Z)(e,”vendorData.purpose.consents.1”)}}},function(e){e(e.s=2722)}])})(),pbjs.processQueue(); }, {}]; window.modules[“visibility.legacy”] = [function(require,module,exports){“use strict”;DS.service(“$visibility”,[“$document”,”$window”,”_throttle”,”Eventify”,function(e,t,n,i){var o,r,h=[];function s(e,t){return et?e:t}function d(e,t,n){!e.preload&&e.preloadThreshhold&&function(e,t,n,i){return t.top=e.shownThreshold&&!e.seen?(e.seen=!0,setTimeout(function(){e.trigger(“shown”,new r(“shown”,t))},15)):(!n||i1&&(h+=e(r,Math.floor(n/o),i-1,o)),h},this.getVerticallyVisiblePixels=f,this.getViewportHeight=function(){return t.innerHeight||e.documentElement.clientHeight||e.body.clientHeight},this.getViewportWidth=function(){return t.innerWidth||e.documentElement.clientWidth||e.body.clientWidth},this.isElementNotHidden=u,this.isElementInViewport=function(n){var i=n.getBoundingClientRect();return i.top>=0&&i.left>=0&&i.bottom<=(t.innerHeight||e.documentElement.clientHeight)&&i.right arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } function mountLegacyServices() { Object.keys(window.modules).filter(function (key) { return typeof key === 'string' && key.match(/.legacy$/); }).forEach(function (key) { return window.require(key); }); } function tryToMount(fn, el, name) { try { fn(el); // init the controller } catch (e) { var elementTag = el.outerHTML.slice(0, el.outerHTML.indexOf(el.innerHTML)); console.error("Error initializing controller for "".concat(name, "" on "").concat(elementTag, """), e); } } /** * mount client.js component controllers */ function mountComponentModules() { Object.keys(window.modules).filter(function (key) { return typeof key === 'string' && key.match(/.client$/); }).forEach(function (key) { var controllerFn = window.require(key); if (typeof controllerFn === 'function') { var name = key.replace('.client', ''), instancesSelector = "[data-uri*="_components/".concat(name, "/"]"), defaultSelector = "[data-uri$="_components".concat(name, ""]"), instances = document.querySelectorAll(instancesSelector), defaults = document.querySelectorAll(defaultSelector); var _iterator = _createForOfIteratorHelper(instances), _step; try { for (_iterator.s(); !(_step = _iterator.n()).done;) { var el = _step.value; tryToMount(controllerFn, el, name); } } catch (err) { _iterator.e(err); } finally { _iterator.f(); } var _iterator2 = _createForOfIteratorHelper(defaults), _step2; try { for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { var _el = _step2.value; tryToMount(controllerFn, _el, name); } } catch (err) { _iterator2.e(err); } finally { _iterator2.f(); } } }); } // Make sure that a `window.process.env.NODE_ENV` is available in the client for any dependencies, // services, or components that could require it // note: the “ value is swapped for the actual environment variable in /lib/cmd/compile/scripts.js window.process = window.process || {}; window.process.env = window.process.env || {}; if (!window.process.env.NODE_ENV) { window.process.env.NODE_ENV = ''; } // note: legacy controllers that require legacy services (e.g. dollar-slice) must // wait for DOMContentLoaded to initialize themselves, as the files themselves must be mounted first mountLegacyServices(); mountComponentModules(); // ]]

Leave a Reply