1import{g as N,r as R,B as A,V as w,N as M,G as U,R as B}from"./nD01Mfmd.js";import{r as L,d as c,l as P,g as h,m as T,e as F,f as v}from"./WEbFRKiA.js";import{o as V}from"./XfmibjA-.js";import"./DikjsCuG.js";import"./D099DBnA.js";import"./CccgUGka.js";import"./CBI54uUg.js";function O(e,t,i){return i?`${e}${t}=${encodeURIComponent(i)}&`:e}function G(e,t,i){const r={};for(const s in e)s===t?Object.prototype.hasOwnProperty.call(e,i)&&(r[t]=e[i]):s!==i&&(r[s]=e[s]);return r.bidfloor===-1&&delete r.bidfloor,r}function q(e,t,i,r,s){return e.getFloor?.({currency:s,mediaType:t,size:[i,r]}).floor||e.params?.bidfloor||-1}function J(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i=0,r="";for(;i++<14;)r+=t.charAt(Math.floor(Math.random()*t.length));return r}function X(e,t,i,r,s){const d=[];return e.forEach(a=>{const o={},l=(n,p,u=0,f=0)=>{const m=q(t,n,u,f,i);o[m]||(o[m]={...a,bidfloor:m}),o[m][p]||(o[m][p]=n==="banner"?{format:[]}:a[n]),n==="banner"&&o[m][p].format.push({w:u,h:f})};a.banner?.format?.length&&a.banner.format.forEach(n=>l("banner","bannerTemp",n?.w,n?.h)),l("native","nativeTemp"),l("video","videoTemp",a.video?.w,a.video?.h),Object.values(o).forEach(n=>{if([["banner","bannerTemp"],["native","nativeTemp"],["video","videoTemp"]].forEach(([p,u])=>{n=G(n,p,u)}),n.banner||n.video||n.native){const p=J();r[p]=n.id,n.id=p,n.banner,d.push(n)}})}),d}const C="https://apps.smartadserver.com",Y=`${C}/diff/templates/asset/csync.html`,_="eqt_pid";function z(e,t,i,r,s){if(e.iframeEnabled){window.addEventListener("message",function a(o){o.origin===C&&o.data.action==="getConsent"&&(o.source&&o.source.postMessage&&o.source.postMessage({action:"consentResponse",id:o.data.id,consents:i.vendorData.vendor.consents},o.origin),o.data.pid&&s.setDataInLocalStorage(_,o.data.pid),this.removeEventListener("message",a))});let d=O(Y+"?","nwid",r);return d=O(d,"gdpr",i?.gdprApplies?"1":"0"),[{type:"iframe",url:d}]}return[]}const x="equativ",$=300,g="Equativ:",Q="https://apps.sascdn.com/diff/video-outstream/equativ-video-outstream.js";let b=[],y={},E=0,I={};function S(e){return!(e.mediaTypes.video&&JSON.stringify(e.mediaTypes.video)==="{}")&&!(e.mediaTypes.native&&JSON.stringify(e.mediaTypes.native)==="{}")}function W(e){return e?.ext?.prebid?.previousauctioninfo&&(e.ext.prebid.previousauctioninfo.forEach(t=>{I[t?.bidId]&&(b.push({feedback_token:I[t.bidId],loss:t.bidderCpm===t.highestBidCpm?0:102,price:t.highestBidCpm}),delete I[t.bidId])}),delete e.ext.prebid),b.length&&(v(e,"ext.bid_feedback",b[0]),b.shift()),e}const D=N({bidderCode:x}),H={code:x,gvlid:45,supportedMediaTypes:[A,w,M],buildRequests:(e,t)=>{if(e.filter(S).length===0){P(`${g} No useful bid requests to process. No requests will be sent.`,e);return}const i=[];return e.forEach(r=>{if(!S(r)){h(`${g} Skipping bid: invalid media types.`,r.bidId);return}const s=k.toORTB({bidRequests:[r],bidderRequest:t});if(!s){h(`${g} Skipping bid: converter returned empty data.`,r.bidId);return}if(!s.id){h(`${g} Skipping bid: request is missing required id field.`,r.bidId);return}if(!s.imp?.length){h(`${g} Skipping bid: no valid impressions after processing.`,r.bidId);return}i.push({data:s,method:"POST",url:"https://ssb-global.smartadserver.com/api/bid?callerId=169"})}),i},interpretResponse:(e,t)=>(t.data?.imp?.length&&t.data.imp.forEach(i=>{i.id=y[i.id]}),e.body?.seatbid?.length&&e.body.seatbid.filter(i=>i?.bid?.length).forEach(i=>i.bid.forEach(r=>{r.impid=y[r.impid],c(r,"ext.feedback_token")&&(I[r.impid]=r.ext.feedback_token),r.ttl=typeof r.exp=="number"&&r.exp>0?r.exp:$})),k.fromORTB({request:t.data,response:e.body})),isBidRequestValid:e=>!!(c(e,"params.networkId")||c(e,"ortb2.site.publisher.id")||c(e,"ortb2.app.publisher.id")||c(e,"ortb2.dooh.publisher.id")),getUserSyncs:(e,t,i)=>z(e,t,i,E,D)},k=V({context:{netRevenue:!0,ttl:$},bidResponse(e,t,i){const{bidRequest:r}=i,s=e(t,i);if(s.mediaType===w&&r.mediaTypes.video.context==="outstream"){const d=B.install({adUnitCode:r.adUnitCode,id:r.bidId,url:Q});d.setRender(a=>{a.renderer.push(()=>{window.EquativVideoOutstream.renderAd({slotId:a.adUnitCode,vast:a.vastUrl||a.vastXml})})}),s.renderer=d}return s},imp(e,t,i){const r=e(t,i),{siteId:s,pageId:d,formatId:a,placementuuid:o}=t.params||{};delete r.dt,r.secure=1,r.tagid=t.adUnitCode,r.displaymanager||="Prebid.js",r.dis
1playmanagerver||="11.29.0",!c(t,"ortb2Imp.rwdd")&&c(t,"mediaTypes.video.ext.rewarded")&&T(r,{rwdd:t.mediaTypes.video.ext.rewarded});const l={...o&&{plcmtuuid:o},...s&&{siteId:s},...d&&{pageId:d},...a&&{formatId:a}};return Object.keys(l).length&&T(r.ext,{bidder:l}),r},request(e,t,i,r){const s=r.bidRequests[0],d=F.getConfig("currency.adServerCurrency")||"USD",a=X(t,s,d,y,"eqtv");let o=e(a,i,r);if(!a?.length)return o;let l=["ortb2.site.publisher","ortb2.app.publisher","ortb2.dooh.publisher"].find(p=>c(s,p))||"ortb2.site.publisher";E=c(s,l+".id")||c(s,"params.networkId"),v(o,l.replace("ortb2.","")+".id",E),[{path:"mediaTypes.video",props:["mimes","placement"]},{path:"ortb2Imp.audio",props:["mimes"]},{path:"mediaTypes.native.ortb",props:["privacy","plcmttype","eventtrackers"]}].forEach(({path:p,props:u})=>{c(s,p)&&u.forEach(f=>{c(s,`${p}.${f}`)||h(`${g} Property "${p}.${f}" is missing from request. Request will proceed, but the use of "${f}" is strongly encouraged.`,s.bidId)})});const n=D.getDataFromLocalStorage(_);return n&&v(o,"user.buyeruid",n),v(o,"ext.equativprebidjsversion","11.29.0"),o=W(o),o}});R(H);L("equativBidAdapter");Object.assign(U,{45:{purposes:[1,2,3,4,7,10],legIntPurposes:[],flexiblePurposes:[],specialFeatures:[1]}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.