@datazoom/collector_shaka_mt_om 2.27.0 → 2.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1 +1 @@
1
- !function(){var n,e,t,s,Jc="object"==typeof module?{}:null,$c=window.URL,Qc=window.URLSearchParams,Zc=window.EventTarget,nl=window.CustomEvent,el={};function tl(n,e){el[n]=e}function il(n,e){tl("ext_"+n,e)}tl("base","2.1.0"),function(ne,ee,E){"use strict";var v,p,te=ne.Object,h=ne.Array,g=ne.Date,he=ne.Number,A=ne.String,y=ne.RegExp,ie=ne.Math,S=ne.XMLHttpRequest,T=ne.Uint8Array,C=ne.ArrayBuffer,M=ne.JSON,ge=ne.Promise,Ee=ne.document||{},n=Ee.currentScript||{},D=ne.location||{},R=ne.navigator||{},N=R.userAgent||"",ye=R.connection||R.mozConnection||R.webkitConnection,k=ne.crypto,P=ne.console||{},e=ne.performance,w=ne.setInterval,L=ne.setTimeout,U=(ne.clearInterval,ne.decodeURIComponent),x=ne.encodeURIComponent;try{v=ne.localStorage,p=ne.sessionStorage}catch(n){}function F(t){return t?function(n,e){n="[DZ] "+n,void 0===e?t.call(P,n):t.call(P,n,e)}:null}var t=F(P.log)||function(){},V=F(P.error)||t,W=F(P.warn)||t,j=F(P.info)||t,B=F(P.debug)||t,Se={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},H="datazoom_",t="__"+H+"rootobj",G="custom_",q="v_";if(Se[t]=1,Jc)Jc.datazoom=Se;else{if(de(ne.datazoom)){if(ne.datazoom[t])return W("Collector already loaded");W("Overwriting window.datazoom")}ne.datazoom=Se}function b(e,t,n){var i,r=t.shift();return null==r?i=e:e?r instanceof y?te.keys(e).some(function(n){if(r.test(n))return null!=(i=b(e[n],t.slice()))}):i=b(e[r],t):i=null,null!=i?i:n}function re(n){return"function"==typeof n}function z(n,e){if(re(n))try{return new(n=e?n.bind.apply(n,[null].concat(e)):n),1}catch(n){}}z($c,["http://x.io"])&&z(Qc)||(Qc=function(n){var i=[];function t(n,e){!1!==e&&i.push([n,e])}function r(e){i=i.filter(function(n){return n[0]!==e})}n&&n.slice(1).split("&").forEach(function(n){n=n.split("=");try{i.push([U(n[0]),null==n[1]||U(n[1])])}catch(n){oe(n,"URLSearchParams()")}});n=this;n.append=t,n["delete"]=r,n.set=function(n,e){r(n),t(n,e)},n.get=function(e){var t=null;return i.some(function(n){if(n[0]===e)return t=n[1],!0}),t},n.toString=function(){return i.map(function(n){var e=x(n[0]);return!0===n[1]?e:e+"="+x(n[1])}).join("&")}},$c=function(n){var e=this,n=n.split("?"),t=n[0],n=n[1]?"?"+n[1]:"";e.search=n,e.searchParams=new Qc(n),e.toString=function(){return t+e.search}}),z(Zc)&&z(nl,["x"])||(Zc=function(){var t=this,i={};t.addEventListener=function(n,e){var t=i[n];t||(i[n]=t=[]),t.push(e)},t.removeEventListener=function(n,e){var t=i[n];t&&(i[n]=t.filter(function(n){return n!=e}))},t.dispatchEvent=function(e){var n=i[e.type];n&&n.forEach(function(n){L(function(){n.call(t,e)},0)})}},nl=function(n,e){this.type=n,e&&(this.detail=e.detail)}),ee=te.assign({},{cn:"Shaka Player (MT/OM)",sv:"2.27.0",cf:"",mf:null,ev:[],fd:[],md:[],od:null,mb:"",sw:!1,sm:"",sp:[],ss:"",sd:"",sc:"",ab:"",st:null,hi:1e4,ti:200,cm:null,am:null,cq:null,aq:null,rd:[1,2,4,8,8,8,8],bd:50,kd:50,mh:5e3,ml:0,mc:256,mp:2.5,ep:2,ed:2500,ec:he.MAX_VALUE,cc:"",cl:"",ci:"",cd:[],og:!0,os:!0,tt:!1,om:!1,ps:null,sn:["IDLE","CT_REQUESTED","CT_BUFFERING","CT_PLAYING","CT_PAUSED","CT_SEEKING","CT_COMPLETED","CT_STOPPED","CT_ERROR","AD_BUFFERING","AD_PLAYING","AD_PAUSED","AD_SEEKING","AD_COMPLETED","AD_SKIPPED","AD_ERROR","AD_BREAK_STARTED","AD_BREAK_ENDED"],le:function(n){var e=n.event,t=n.video;Oe("[Event] "+e.type+(t?" ("+t.media_type+")":"")+" @"+e.timestamp,ce(n))}},ee||{});var o,Y,Ie,K={datapoints:{events:"ev",flux_data:"fd",metadata:"md",cmcd:"cd"},endpoints:{event_ingest:"mb",sampling:"sm",ad_blocker_bait:"ab"},sampling:{enable:"sw",definition_namespace:"ss",definition_key_name:"sd",criteria_sampling_key_name:"sc",criteria_matching_fields:"sp"},ondemand:"od",customer_code:"cc",connector_list:"cl",app_session_timeout_mins:"st",heartbeat_interval_ms:"hi",content_milestone_percent:"cm",ad_milestone_percent:"am",content_qv_sec:"cq",ad_qv_sec:"aq",observability:{lag_enabled:"og",loss_enabled:"os"},om_enabled:"om",configuration_id:""},X=!Jc&&n.src||"/",J=D.href||"https://localhost",$="configuration_id",Q="urn:x-cast:io.datazoom.collector",Ae="transfer",Z=0,nn=1,en=2,tn=3,rn=4,an=5,on={off:Z,error:nn,warning:en,info:tn,debug:rn,verbose:an},sn=en;function un(n){var e;n&&(e=on[n],Z<=(e=null!=e?e:+n)&&e<=an?sn=e:W("Invalid log level: "+n))}function cn(){o={},Y=[],[[ee.ps],[X.split("?")[1]],[J.split("?")[1],H]].forEach(function(n){var i=n[1];n[0]&&n[0].split("&").forEach(function(n){try{var e=n.split("="),t=U(e[0]);if(i){if(!t.startsWith(i))return;t=t.slice(i.length)}o[t]=null==e[1]||U(e[1]),t.startsWith("x-")&&Y.push([t,o[t]])}catch(n){W("Invalid query string: "+n.message)}})}),Ie="true"==o.demo,un(o.log)}cn();var ln="io.datazoom.",dn=ln,fn="__ss_ev_count",pn="__ss_last_act",mn="__ss_custom_md",_n="__ss_msg_queue",vn="__ss_sm_resp",hn="__ss_appss_to",gn="__ss_on_demand",En="collector_observability",yn="process_duration_ms",Sn="send_duration_ms",In="call_duration_ms",An="queue_duration_ms",Tn="attempt_count",bn="attempt",On="status_code",Cn="sample",Mn="config",Dn="log";function Rn(n,e,t,i){sn<n||e(t,i)}function Te(n,e){Rn(nn,V,n,e)}function ae(n,e){Rn(en,W,n,e)}function be(n,e){Rn(tn,j,n,e)}function Oe(n,e){Rn(rn,B,n,e)}function Nn(n,e){Rn(an,B,n,e)}function oe(n,e){e="[Exception] "+(e?"("+e+") ":"")+n;return Te(e,n),e}function Ce(t,i,r,a,o){var s,u=0,c=1,l=0;return i=i||"",r=r||1,a=a||he.MAX_VALUE,{log:function(n,e){o&&(s=se())>=l+o&&(u=0,c=1,l=s),++u>=c&&(t("["+u+"] "+i+n,e),c+=ie.min(c*r,a))}}}function Me(n,e){O(ne,"postMessage",[{type:n,data:e},"*"])}var kn,se,Pn,wn,Ln,Un,xn=[],Fn=0;function Vn(n,e,t,i,r,a,o,s){var t={time:t,metric_name:i,dimension:{},batch:function(){return a}},u=(n&&(t.type=n),null!=r&&(t.metric_value=r),t.dimension);return e&&(u.target=e),s&&s.forEach(function(n){u[n[0]]=n[1]}),o&&(u["b4_ss"]=!0),t}function Wn(i,r,a,o){var s=r,u=1,c=Fn++;return{retry:function(n){s=n,u++},log:function(n,e){var t;ee.og&&(null!=a&&xn.push(Vn(null,i,t=r-a,yn,n-t,c,o,[[Tn,u],[On,e]]),Vn(null,i,t,An,a,c,o)),xn.push(Vn(null,i,r,Sn,n-r,c,!1,[[Tn,u],[On,e]]),Vn(null,i,s,In,n-s,c,!1,[[bn,u],[On,e]])))}}}function jn(n,e){var t,i;ee.os&&(i=n.t,i=ie.trunc(i/6e4),(i=(kn=kn||{})[i]||(kn[i]=[0,0,0]))[2]++,t=(i=i[3]||(i[3]={}))[e],n=bs(n.m,hr),t?t.push(n):i[e]=[n])}function Bn(n){var e,t=kn[n],i=Fn++;t[2]&&(t[3]&&(e=[["status_codes",t[3]]]),xn.push(Vn("loss",null,6e4*+n,"evnt_fail",t[2],i,!1,e)))}function De(n){return n&&(xe(n)?n.slice():te.assign({},n))}function Hn(n,e){return de(e)?n?te.assign({},n,e):e:n}function Gn(n,e){var t;return e?((t={})[n]=e,t):null}function qn(t,i){var r;return i?t?(r=De(t),te.keys(i).forEach(function(n){var e=t[n];r[n]=e?te.assign({},e,i[n]):i[n]}),r):i:t}function O(n,e,t,i){e=b(n,[e],i);return re(e)?e.apply(n,t):null}function zn(n,e,t){return function(){try{return e.apply(n,arguments)}catch(n){oe(n,t)}}}function Yn(t,n){te.keys(t).forEach(function(e){n.forEach(function(n){n[e]=zn(n,t[e],e)})}),n[0]}function Kn(n){var e={};return n.forEach(function(n){e[n.nm]=n}),e}function Xn(n){var e={};return n.forEach(function(n){e[n.nm]=!0}),e}function Jn(n,e,t){n.forEach(function(n){n[e]=t})}function Re(n,e){var n=new $c(n,J),t=new Qc(n.search);return e(t),n.search="?"+t.toString(),n.toString()}function $n(n){var e,t=Y.length;return t?Re(n,function(n){for(e=0;e<t;e++)n.append(Y[e][0],Y[e][1])}):n}function Qn(n,e,t){var i;return null!=(i=n?new $c(n,J).searchParams.get(e):i)?i:t}Pn=0,wn=ee.ec,Ln=Ce(ae,"Abnormal clock increment: ",.2,1e3,3e5),e&&e.now,Un=Pn+g.now(),se=function(n){var e=g.now(),t=Un,i=(Un=Pn+e)-t;return(i<0||wn<i)&&(Un=t+ee.ti,Pn=Un-e,Ln.log(i)),Un};var ue=function(){for(var t=[],n=0;n<256;n++)t.push((n+256).toString(16).substr(1).toLowerCase());return function(){var n=new T(16);if(k&&k.getRandomValues)k.getRandomValues(n);else{ae("getRandomValues() not supported");for(var e=0;e<16;e++)n[e]=ie.floor(256*ie.random())}return n[6]=15&n[6]|64,n[8]=63&n[8]|128,t[n[0]]+t[n[1]]+t[n[2]]+t[n[3]]+"-"+t[n[4]]+t[n[5]]+"-"+t[n[6]]+t[n[7]]+"-"+t[n[8]]+t[n[9]]+"-"+t[n[10]]+t[n[11]]+t[n[12]]+t[n[13]]+t[n[14]]+t[n[15]]}}();function Zn(n,e,t,i,r,a){var o=new S;if(o.open(n,e,!0),null!=a&&(o.timeout=a),t)for(var s=te.keys(t),u=0;u<s.length;u++)o.setRequestHeader(s[u],t[s[u]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function ce(n){if(n)try{return M.stringify(n)}catch(n){oe(n,"toJSON")}return null}function le(n){if(n)try{return M.parse(n)}catch(n){oe(n,"fromJSON")}return null}function Ne(n,e){return(n===p?dn:ln)+e}function m(n,e,t){if(n)if(null==t)Pe(n,e);else try{n.setItem(Ne(n,e),ce({v:t}))}catch(n){oe(n,"storageSet")}}function ke(n,e){n=n?le(n.getItem(Ne(n,e))):null;return n?n.v:null}function Pe(n,e){n&&n.removeItem(Ne(n,e))}ne.self!==ne.top&&Oe("Page loaded in a frame, set sessionStorage prefix to: "+(dn+=(o.frame_id||ue())+"."));var we=le('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Le(n){return"string"==typeof n}function Ue(n){return he.isFinite(n)}function xe(n){return h.isArray(n)}function de(n){return null!=n&&"object"==typeof n&&!xe(n)}function Fe(n){return Le(n)?n:""+n}function Ve(n){return Ue(n=+n)?n:null}function We(e,t,i){return null==e&&null==t?Ve:function(n){return null!=(n=Ve(n))&&(null!=e&&n<e?n=i?null:e:null!=t&&t<n&&(n=i?null:t)),n}}function je(n){return ie.round(n)}function Be(n,e){for(var t=0;t<e.length;t++)!function(n){for(var e=n,t=1;t<arguments.length;t++)e.dv||(e.dv=[]),e.dv.push(arguments[t])}(e[t],n)}function He(n,e){if(e)for(var t=0;t<e.length&&null!=n;t++)n=e[t](n);return n}var Ge,qe,ze,Ye,Ke=4,Xe=8,Je=16,$e=32,I=65535,Qe=Ke,t=1|Je,n=Ke|Je,e=n|$e,r=Xe,Ze={ap:2,nm:"ad_beacon_response"},nt={ap:2,nm:"ad_break_start"},et={ap:2,nm:"ad_break_end"},tt={ap:2,nm:"ad_click"},it={ap:2,nm:"ad_impression"},rt={ap:2,nm:"ad_om_session_created"},at={ap:2,nm:"ad_om_session_omitted"},ot={ap:2,nm:"ad_skip"},st={ap:Qe,nm:"app_session_end"},ut={ap:3,nm:"audio_track_changed"},ct={ap:3,nm:"buffer_start"},lt={ap:3,nm:"buffer_end"},dt={ap:3,nm:"cast_start"},ft={ap:3,nm:"cast_end"},pt={ap:3,nm:"cast_transfer"},mt={ap:I,nm:"context_ready"},_t={ap:Qe,nm:"datazoom_loaded"},vt={ap:3,nm:"error"},ht={ap:3,nm:"exit_fullscreen"},gt={ap:3,nm:"fullscreen"},Et={ap:3,nm:"heartbeat"},yt={ap:3,nm:"media_loaded"},St={ap:1,nm:"media_object_request"},It={ap:3,nm:"media_request"},At={ap:3,nm:"milestone"},Tt={ap:3,nm:"mute"},bt={ap:3,nm:"pause"},Ot={ap:3,nm:"play_btn"},Ct={ap:3,nm:"playback_start"},Mt={ap:3,nm:"playback_complete"},Dt={ap:1,nm:"player_ready"},Rt={ap:3,nm:"playing"},Nt={ap:3,nm:"qualified_view"},kt={ap:1,nm:"quality_change_request"},Pt={ap:3,nm:"rendition_change"},wt={ap:3,nm:"resize"},Lt={ap:3,nm:"resume"},Ut={ap:3,nm:"seek_start"},xt={ap:3,nm:"seek_end"},Ft={ap:3,nm:"stall_start"},Vt={ap:3,nm:"stall_end"},Wt={ap:3,nm:"stop"},jt={ap:3,nm:"subtitle_change"},Bt={ap:3,nm:"unmute"},Ht={ap:3,nm:"volume_change"},Gt=(It.rtc=0,Ct.rtc=1,bt.rtc=2,ct.rtc=3,Ft.rtc=4,Ut.rtc=5,Pt.rtc=6,At.rtc=7,It.rta=8,Ct.rta=9,ct.rta=10,Ft.rta=11,At.rta=12,vt.rta=ot.rta=Mt.rta=13,nt.rta=14,et.rta=15,Et.rt=16,ct.rt=17,Ft.rt=18,["event","metrics"]),qt={ap:t,nm:"bandwidth_kbps"},zt={ap:t,nm:"buffer_duration_ms"},Yt={ap:t,nm:"buffer_duration_ads_ms"},Kt={ap:t,nm:"buffer_duration_content_ms"},Xt={ap:t,nm:"buffer_fill_percent"},Jt={ap:t,nm:"buffer_length_ms"},$t={ap:t,nm:"content_session_start_ts_ms"},Qt={ap:3,nm:"current_audio_track"},Zt={ap:t,nm:"current_subtitles"},ni={ap:n,nm:"engagement_duration_ms"},ei={ap:n,nm:"engagement_duration_ads_ms"},ti={ap:n,nm:"engagement_duration_content_ms"},ii={ap:r,nm:"event_count"},ri={ap:t,nm:"num_ad_break_plays"},ai={ap:n,nm:"num_ad_plays"},oi={ap:n,nm:"num_content_plays"},si={ap:n,nm:"num_errors"},ui={ap:n,nm:"num_errors_ads"},ci={ap:n,nm:"num_errors_content"},li={ap:n,nm:"num_pauses_content"},di={ap:n,nm:"num_requests_content"},fi={ap:n,nm:"num_seeks_content"},pi={ap:t,nm:"pause_duration_ms"},mi={ap:t,nm:"pause_duration_ads_ms"},_i={ap:t,nm:"pause_duration_content_ms"},vi={ap:t,nm:"playback_duration_ms"},hi={ap:t,nm:"playback_duration_ads_ms"},gi={ap:n,nm:"playback_duration_ads_app_ms"},Ei={ap:n,nm:"playback_duration_ads_audible_app_ms"},yi={ap:n,nm:"playback_duration_ads_viewable_app_ms"},Si={ap:2,nm:"playback_duration_ad_session_ms"},Ii={ap:t,nm:"playback_duration_content_ms"},Ai={ap:t,nm:"playback_duration_promo_ms"},Ti={ap:3,nm:"playback_rate"},bi={ap:t,nm:"player_state"},Oi={ap:t,nm:"player_viewable"},Ci={ap:t,nm:"player_viewable_percent"},fe={ap:3,nm:"playhead_position_sec"},Mi={ap:t,nm:"playhead_pdt_sec"},Di={ap:3,nm:"rendition_audio_bitrate_kbps"},Ri={ap:3,nm:"rendition_height"},Ni={ap:3,nm:"rendition_name"},ki={ap:3,nm:"rendition_video_bitrate_kbps"},Pi={ap:3,nm:"rendition_width"},wi={ap:t,nm:"stall_count"},Li={ap:t,nm:"stall_count_ads"},Ui={ap:t,nm:"stall_count_content"},xi={ap:t,nm:"stall_duration_ms"},Fi={ap:t,nm:"stall_duration_ads_ms"},Vi={ap:t,nm:"stall_duration_content_ms"},Wi={ap:t,nm:"time_since_last_ad_break_start_ms"},ji={ap:t,nm:"time_since_last_ad_completed_ms"},Bi={ap:t,nm:"time_since_last_buffer_start_ms"},Hi={ap:t,nm:"time_since_last_buffer_start_ad_ms"},Gi={ap:t,nm:"time_since_last_buffer_start_content_ms"},qi={ap:t,nm:"time_since_last_heartbeat_ms"},zi={ap:t,nm:"time_since_last_milestone_ad_ms"},Yi={ap:t,nm:"time_since_last_milestone_content_ms"},Ki={ap:t,nm:"time_since_last_pause_ms"},Xi={ap:t,nm:"time_since_last_rendition_change_ms"},Ji={ap:t,nm:"time_since_last_request_ad_ms"},$i={ap:t,nm:"time_since_last_seek_start_ms"},Qi={ap:t,nm:"time_since_last_stall_start_ms"},Zi={ap:t,nm:"time_since_last_stall_start_ad_ms"},nr={ap:t,nm:"time_since_last_stall_start_content_ms"},er={ap:t,nm:"time_since_last_started_ad_ms"},tr={ap:t,nm:"time_since_request_content_ms"},ir={ap:t,nm:"time_since_started_content_ms"},rr={ap:t,nm:"time_to_first_frame_ms"},ar={ap:t,nm:"time_to_first_frame_plus_ad_delay_ms"},or={ap:t,nm:"volume_level_percent"},sr=(Jn([zt,Yt,Kt,pi,mi,_i,vi,hi,gi,Ei,yi,Ii,Ai,wi,Li,Ui,xi,Fi,Vi,ai,si,ui,ci,oi,li,di,fi],"df",0),tr.ts=0,ir.ts=1,Ki.ts=2,Gi.ts=3,nr.ts=4,$i.ts=5,Xi.ts=6,Yi.ts=7,Ji.ts=8,er.ts=9,Hi.ts=10,Zi.ts=11,zi.ts=12,Wi.ts=14,ji.ts=13,qi.ts=16,Bi.ts=17,Qi.ts=18,[]),ur=["event"],i=["event","attributes"],a=["cmcd"],s=["user_details"],u=["player"],c=["device"],l=["video"],d=["geo_location"],cr=["network"],lr=["page"],f=["ad"],dr=["ops_metadata"],fr=["custom"],pr=["vendor"],mr={p:sr,ap:e,nm:"configuration_id"},_r={p:sr,ap:e,nm:"connector_list"},vr={p:sr,ap:e,nm:"customer_code"},hr={p:sr,ap:r,nm:"event_id"},gr={p:ur,ap:r,nm:"timestamp"},Er={p:ur,ap:r,nm:"type"},sr={p:a,ap:r,nm:"bl"},ur={p:a,ap:r,nm:"br"},yr={p:a,ap:r,nm:"bs"},Sr={p:a,ap:r,nm:"cid"},Ir={p:a,ap:r,nm:"d"},Ar={p:a,ap:r,nm:"dl"},Tr={p:a,ap:r,nm:"mtp"},br={p:a,ap:r,nm:"nor"},Or={p:a,ap:r,nm:"nrr"},Cr={p:a,ap:r,nm:"ot"},Mr={p:a,ap:r,nm:"pr"},Dr={p:a,ap:r,nm:"rid"},Rr={p:a,ap:r,nm:"rtp"},Nr={p:a,ap:r,nm:"sf"},kr={p:a,ap:r,nm:"sid"},Pr={p:a,ap:r,nm:"st"},wr={p:a,ap:r,nm:"su"},Lr={p:a,ap:r,nm:"tb"},a={p:a,ap:r,nm:"v"},Ur={p:i,ap:r,nm:"abs_shift"},xr={p:i,ap:r,nm:"error_code"},Fr={p:i,ap:r,nm:"error_msg"},Vr={p:i,ap:r,nm:"inner_error"},Wr={p:i,ap:r,nm:"heartbeat_count"},jr={p:i,ap:r,nm:"milestone_percent"},Br={p:i,ap:r,nm:"qualified_view_sec"},Hr={p:i,ap:r,nm:"seek_start_point_ms"},Gr={p:i,ap:r,nm:"seek_end_point_ms"},qr={p:i,ap:r,nm:"startup_duration_content_ms"},zr={p:i,ap:r,nm:"startup_duration_total_ms"},Yr={p:s,ap:n,nm:"app_session_id"},Kr={p:s,ap:n,nm:"app_session_start_ts_ms"},i={p:s,ap:n,nm:"app_session_end_ts_ms"},Xr={p:s,ap:t,nm:"cast_app_session_id"},Jr={p:s,ap:t,nm:"cast_content_session_id"},$r={p:s,ap:e,nm:"client_ip"},Qr={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:n,nm:"user_agent"},Zr={p:u,ap:t,nm:"autostart"},na={p:u,ap:t,nm:"casting"},ea={p:u,ap:t,nm:"controls"},ta={p:u,ap:t,nm:"default_muted"},ia={p:u,ap:t,nm:"default_playback_rate"},ra={p:u,ap:t,nm:"fullscreen"},aa={p:u,ap:t,nm:"loop"},oa={p:u,ap:t,nm:"muted"},sa={p:u,ap:t,nm:"player_name"},ua={p:u,ap:t,nm:"player_version"},ca={p:u,ap:t,nm:"preload"},la={p:u,ap:t,nm:"ready_state"},da={p:u,ap:t,nm:"streaming_protocol"},fa={p:u,ap:t,nm:"streaming_type"},pa={p:u,ap:t,nm:"subtitles"},u={p:c,ap:n,nm:"advertising_id"},ma={p:c,ap:n,nm:"browser_name"},_a={p:c,ap:n,nm:"browser_height"},va={p:c,ap:n,nm:"browser_version"},ha={p:c,ap:n,nm:"browser_width"},ga={p:c,ap:n,nm:"cookies_enabled"},Ea={p:c,ap:e,nm:"device_id"},ya={p:c,ap:n,nm:"device_mfg"},Sa={p:c,ap:n,nm:"device_name"},Ia={p:c,ap:n,nm:"device_type"},Aa={p:c,ap:n,nm:"orientation"},Ta={p:c,ap:n,nm:"os_name"},c={p:c,ap:n,nm:"os_version"},ba={p:l,ap:t,nm:"asset_id"},Oa={p:l,ap:t,nm:"description"},Ca={p:l,ap:t,nm:"duration_sec"},Ma={p:l,ap:t,nm:"frame_rate"},Da={p:l,ap:t,nm:"media_tags"},Ra={p:l,ap:3,nm:"media_type"},Na={p:l,ap:t,nm:"player_height"},ka={p:l,ap:t,nm:"player_width"},Pa={p:l,ap:t,nm:"source"},wa={p:l,ap:t,nm:"title"},La={p:d,ap:e,nm:"city"},Ua={p:d,ap:e,nm:"country"},xa={p:d,ap:e,nm:"country_code"},Fa={p:d,ap:e,nm:"latitude"},Va={p:d,ap:e,nm:"longitude"},Wa={p:d,ap:e,nm:"postal_code"},ja={p:d,ap:e,nm:"region"},Ba={p:d,ap:e,nm:"region_code"},Ha={p:d,ap:e,nm:"continent"},Ga={p:d,ap:e,nm:"continent_code"},l={p:d,ap:e,nm:"district"},qa={p:d,ap:e,nm:"timezone_name"},za={p:d,ap:e,nm:"timezone_offset"},Ya={p:cr,ap:e,nm:"asn"},d={p:cr,ap:e,nm:"asn_org"},Ka={p:cr,ap:n,nm:"connection_type"},Xa={p:cr,ap:e,nm:"isp"},Ja={p:cr,ap:e,nm:"mobile_connection"},$a={p:dr,ap:r,nm:"context_id"},Qa={p:dr,ap:r,nm:"context_name"},cr={p:dr,ap:n,nm:"dz_dictionary_version"},Za={p:dr,ap:r,nm:"msg_send_client_ts_ms"},no={p:dr,ap:r,nm:"player_context_id"},eo={p:dr,ap:e,nm:"server_ts_offset_ms"},to={p:lr,ap:n,nm:"collector_name"},io={p:lr,ap:n,nm:"dz_sdk_version"},ro={p:lr,ap:n,nm:"page_title"},ao={p:lr,ap:n,nm:"page_url"},oo={p:lr,ap:n,nm:"referrer_url"},so={p:lr,ap:n,nm:"site_domain"},uo={p:f,ap:r,nm:"ad_beacon_status"},co={p:f,ap:r,nm:"ad_beacon_type"},lo={p:f,ap:r,nm:"ad_beacon_url"},fo={p:f,ap:2,nm:"ad_beacons"},po={p:f,ap:2,nm:"ad_beacons_rejected"},mo={p:f,ap:2,nm:"ad_beacons_sent"},_o={p:f,ap:e,nm:"ad_blocker"},vo={p:f,ap:t,nm:"ad_break_id"},ho={p:f,ap:2,nm:"ad_click_url"},go={p:f,ap:2,nm:"ad_creative_id"},Eo={p:f,ap:2,nm:"ad_duration_sec"},yo={p:f,ap:2,nm:"ad_id"},So={p:f,ap:r,nm:"ad_om_session_data"},Io={p:f,ap:2,nm:"ad_om_session_events"},lr={p:f,ap:2,nm:"ad_partner"},Ao={p:f,ap:t,nm:"ad_position"},To={p:f,ap:2,nm:"ad_session_id"},bo={p:f,ap:2,nm:"ad_system"},Oo={p:f,ap:2,nm:"ad_time_offset_sec"},e={p:f,ap:n,nm:"ad_tracking_opt_out"},Co={p:f,ap:2,nm:"advertiser_name"},Mo={p:f,ap:2,nm:"deal_id"},Do={p:f,ap:2,nm:"skip_time_offset_sec"},Ro={p:f,ap:2,nm:"wrapper_creative_ids"},No={p:f,ap:2,nm:"wrapper_id"},ko={p:f,ap:2,nm:"wrapper_systems"},n={p:["cdn"],ap:t,nm:"cdn"},Po=(Mo.df="",Jn([Ro,No,ko],"df",[]),Be(function(n){return!!n},[_o,e,Zr,yr,na,ea,ga,ta,ra,aa,Ja,oa,wr,pa,Oi]),Be(function(n){xe(n)||(n=[n]);for(var e=0;e<n.length;e++)n[e]=Fe(n[e])||"";return n},[Ro,No,ko]),Be(null==Ge&&null==qe?Fe:function(n){var e;return null!=(n=Fe(n))&&(e=n.length,null!=Ge&&e<Ge?n=null:null!=qe&&qe<e&&(n=ze?null:n.slice(0,qe))),n},[Ur,vo,ho,go,yo,lr,Ao,To,bo,Co,u,Yr,Ya,d,ba,ma,va,Xr,Jr,n,Sr,La,$r,mr,_r,Qr,Ha,Ga,Ua,xa,vr,Mo,Oa,Ea,ya,Sa,Ia,l,io,xr,Fr,hr,Vr,Xa,Ra,br,Or,Aa,Ta,c,Cr,ro,ao,no,sa,ua,Wa,ca,oo,ja,Ba,Dr,Nr,kr,so,Pa,Pr,da,fa,qa,wa,Er,s,Qt,Zt,bi,Ni]),Be(We(0,100),[Xt,Ci,or]),Be(We(0,1e9,!0),[qt]),Be(We(),[Eo,Oo,i,Kr,sr,ur,_a,ha,Ir,ia,Ar,Ca,Ma,Wr,Fa,Va,jr,Tr,Na,ka,Mr,Br,la,Rr,Gr,Hr,eo,Do,qr,zr,Lr,gr,za,a,Yt,Kt,zt,Jt,$t,ei,ti,ni,ii,ri,ai,oi,si,ui,ci,li,di,fi,mi,_i,pi,hi,gi,Ei,yi,Si,Ii,vi,Ai,Ti,fe,Di,Ri,ki,Pi,wi,Li,Ui,Fi,Vi,xi,Wi,ji,Hi,Gi,Bi,qi,zi,Yi,Ki,Xi,Ji,$i,Zi,nr,Qi,er,tr,ir,rr,ar]),Be(0==(f=5)?je:(Ye=ie.pow(10,f),function(n){return ie.round(n*Ye)/Ye}),[Eo,Oo,i,Kr,sr,ur,_a,ha,Ir,ia,Ar,Ca,Ma,Wr,Fa,Va,jr,Tr,Na,ka,Mr,Br,la,Rr,Gr,Hr,eo,Do,qr,zr,Lr,gr,za,a,qt,Yt,Kt,zt,Xt,Jt,$t,ei,ti,ni,ii,ri,ai,oi,si,ui,ci,li,di,fi,mi,_i,pi,hi,gi,Ei,yi,Si,Ii,vi,Ai,Ti,Ci,fe,Di,Ri,ki,Pi,wi,Li,Ui,Fi,Vi,xi,Wi,ji,Hi,Gi,Bi,qi,zi,Yi,Ki,Xi,Ji,$i,Zi,nr,Qi,er,tr,ir,rr,ar,or]),[Ze,nt,et,tt,it,rt,at,ot,st,ut,ct,lt,dt,ft,pt,mt,_t,vt,ht,gt,Et,yt,St,It,At,Tt,bt,Ot,Ct,Mt,Dt,Rt,Nt,kt,Pt,wt,Lt,Ut,xt,Ft,Vt,Wt,jt,Bt,Ht]),wo=Kn(Po);function Lo(n,e){return q+n+"_"+e}function Uo(n,e){var t,i=Xn(Po),r={},a={};n?0<n.length?(n=Le(t=ee.tt&&o.beta_ev)?n.concat(t.split(".").map(function(n){return{name:n,media_types:["na"]}})):n).forEach(function(n){var e,t=n&&n.name;t&&i[t]?(n=n.media_types)&&0<n.length&&(r[t]=!0,"na"!=n[0])&&(e={},n.forEach(function(n){e[n]=!0}),a[t]=e):ae("Unknown event: "+t)}):e&&ae("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,Po.forEach(function(n){n.on=!(r&&!r[n.nm]),n.mm=a&&a[n.nm]})}Uo(),Jn([ai,si,ui,ci,oi,li,di,fi,gi,Ei,yi],"st",p);var xo=[qt,zt,Yt,Kt,Xt,Jt,$t,Qt,Zt,ni,ei,ti,ii,ri,ai,oi,si,ui,ci,li,di,fi,pi,mi,_i,vi,hi,gi,Ei,yi,Si,Ii,Ai,Ti,bi,Oi,Ci,fe,Mi,Di,Ri,Ni,ki,Pi,wi,Li,Ui,xi,Fi,Vi,Wi,ji,Bi,Hi,Gi,qi,zi,Yi,Ki,Xi,Ji,$i,Qi,Zi,nr,er,tr,ir,rr,ar,or],Fo=[],Vo=(xo.forEach(function(n){null!=n.ts&&Fo.push(n)}),[]),Wo=[];function jo(n){var e,t=Xn(xo),i={};n?(n=Le(e=ee.tt&&o.beta_fd)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:ae("Unknown flux data: "+n)}):i=null,Vo=[],Wo=[],xo.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?Wo:Vo).push(n)})}jo(),Jn([Yr,Kr],"st",p);var Bo,Ho,Go,qo,zo,Yo=[sa,ua,u,wa,ba,fa,na],Ko={},Xo=(Yo.forEach(function(n){Ko[n.nm.toUpperCase()]=H+n.nm}),[mr,_r,vr,hr,gr,Er,sr,ur,yr,Sr,Ir,Ar,Tr,br,Or,Cr,Mr,Dr,Rr,Nr,kr,Pr,wr,Lr,a,Ur,xr,Fr,Vr,Wr,jr,Br,Hr,Gr,qr,zr,Yr,Kr,i,Xr,Jr,$r,Qr,s,Zr,na,ea,ta,ia,ra,aa,oa,sa,ua,ca,la,da,fa,pa,u,ma,_a,va,ha,ga,Ea,ya,Sa,Ia,Aa,Ta,c,ba,Oa,Ca,Ma,Da,Ra,Na,ka,Pa,wa,La,Ua,xa,Fa,Va,Wa,ja,Ba,Ha,Ga,l,qa,za,Ya,d,Ka,Xa,Ja,$a,Qa,cr,Za,no,eo,to,io,ro,ao,oo,so,uo,co,lo,fo,po,mo,_o,vo,ho,go,Eo,yo,So,Io,lr,Ao,To,bo,Oo,e,Co,Mo,Do,Ro,No,ko,n]),Jo=Kn(Xo),$o=Xo.concat(xo),Qo=Kn($o),Zo=[hr],ns=[],es=[];function ts(n){var e,t=Xn(Xo),i={};Ho=Go=qo=zo=!1,n?((n=Le(e=ee.tt&&o.beta_md)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:"custom_metadata_all"==n?Ho=!0:"custom_events_all"==n?Go=!0:"vendor_metadata_all"==n?qo=!0:"vendor_events_all"==n?zo=!0:ae("Unknown metadata: "+n)}),Zo.forEach(function(n){i[n.nm]=!0})):Ho=Go=qo=zo=!(i=null),ns=[],es=[],Xo.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?es:ns).push(n)})}ts();var is="ad",rs=/^live$/i,as={"application/x-mpegURL":"HLS","application/dash+xml":"DASH","application/vnd.ms-sstr+xm":"Smooth","video/x-flv":"Flash","video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"};var t=[[/Opera\/([\d.]+)/,"Opera"],[/OPR\/([\d.]+)/,"Opera"],[/Edge\/([\d.]+)/,"Microsoft Edge"],[/Edg\/([\d.]+)/,"Microsoft Edge"],[/MSIE ([\d.]+)/,"Microsoft Internet Explorer"],[/Trident\/.*rv:([\d.]+)/,"Microsoft Internet Explorer"],[/Seamonkey\/([\d.]+)/,"Seamonkey"],[/Firefox\/([\d.]+)/,"Firefox"],[/Chromium\/([\d.]+)/,"Chromium"],[/Chrome\/([\d.]+)/,"Chrome"],[/Safari\/([\d.]+)/,"Safari"]],f=[[/Windows 10\.0|Windows NT 10\.0/,"Windows 10"],[/Windows 8\.1|Windows NT 6\.3/,"Windows 8.1"],[/Windows 8|Windows NT 6\.2/,"Windows 8"],[/Windows 7|Windows NT 6\.1/,"Windows 7"],[/Windows NT 6\.0/,"Windows Vista"],[/Windows NT 5\.2/,"Windows Server 2003"],[/Windows NT 5\.1|Windows XP/,"Windows XP"],[/Windows NT 5\.0|Windows 2000/,"Windows 2000"],[/Win 9x 4\.90|Windows ME/,"Windows ME"],[/Windows 98|Win98/,"Windows 98"],[/Windows 95|Win95|Windows_95/,"Windows 95"],[/Windows NT 4\.0|WinNT4\.0|WinNT|Windows NT/,"Windows NT 4.0"],[/Windows CE/,"Windows CE"],[/Win16/,"Windows 3.11"],[/Tizen/,"Tizen"],[/Android/,"Android"],[/OpenBSD/,"Open BSD"],[/SunOS/,"Sun OS"],[/Linux|X11/,"Linux"],[/iPhone|iPad|iPod/,"iOS"],[/Mac OS X/,"Mac OS X"],[/MacPPC|MacIntel|Mac_PowerPC|Macintosh/,"Mac OS"],[/QNX/,"QNX"],[/UNIX/,"UNIX"],[/BeOS/,"BeOS"],[/OS\/2/,"OS/2"],[/nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver/,"Search Bot"]],st=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],os=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function ss(n,e,t){e&&t.push(n)}function us(n,e,t){t.push(n+"="+e)}function cs(n,e,t){t.push(n+(o.cmcd_ntq?"="+e:'="'+e+'"'))}function ls(n,e,t){t.push(n+'="'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function ds(n){return"false"!==n}function fs(n){return+n}function ps(n){return n.replace(/"/g,"")}function ms(n){return n.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var _s,vs,pe={bl:[0,[us,fs],sr],br:[1,[us,fs],ur],bs:[2,[ss,ds],yr],cid:[3,[ls,ms],Sr],d:[1,[us,fs],Ir],dl:[0,[us,fs],Ar],mtp:[0,[us,fs],Tr],nor:[0,[ls,ms],br],nrr:[0,[ls,ms],Or],ot:[1,[cs,ps],Cr],pr:[3,[us,fs],Mr],rtp:[2,[us,fs],Rr],sf:[3,[cs,ps],Nr],sid:[3,[ls,ms],kr],st:[3,[cs,ps],Pr],su:[0,[ss,ds],wr],tb:[1,[us,fs],Lr],v:[3,[us,fs],a]},hs={bs:!1,su:!1,v:1,pr:1},gs="org.svalabs-";function Es(n){for(var e,t,i=[[],[],[],[]],r=te.keys(n),a=0;a<r.length;a++)e=r[a],(t=pe[e])&&t[3]&&t[1][0](e,n[e],i[t[0]]);return i}function ys(n){var e,t=te.keys(pe);for(_s=!1,vs="header"===(Se.options.cmcdMode||o.cmcd_mode),e=0;e<t.length;e++)pe[t[e]][3]=!1;if(n&&xe(n)&&0<n.length)if(_s=!0,"na"==n[0])for(e=0;e<t.length;e++)pe[t[e]][3]=!0;else n.forEach(function(n){var e=pe[n];e?e[3]=!0:ae("Unknown CMCD key: "+n)})}function Ss(n,e,t){for(var i,r,a=te.keys(n),o=0;o<a.length;o++)delete n[a[o]];for(o=0;o<e.length;o++)0!=((i=e[o]).ap&t)&&null!=(r=null==(r=(r=i.st||i.se)&&ke(r,i.nm))?i.df:r)&&(n[i.nm]=r)}function Is(n,e,t,i){for(var r,a,o,s,u=0;u<i.length;u++)o=(a=(r=i[u])[0]).nm,0!=(a.ap&t)?(s=e[o])&&s(r)||(n[o]=r[1],(s=a.st||a.on&&a.se)&&m(s,o,r[1])):ae("Setting inapplicable data",a)}function As(n,e){return n[e.nm]}function Ts(n,e,t,i,r){var a,o=[];return t&&o.push([t,a=e(t)+i]),r&&o.push([r,e(r)+i]),n(o),a}function me(n,e,t){if(e)for(var i,r,a=0;a<e.length;a++)if(r=n[i=e[a]])n=r;else{if(t)return null;n=n[i]={}}return n}function bs(n,e){n=me(n,e.p||Gt,!0);return n&&n[e.nm]}function Os(n,e,t,i){for(var r,a,o,s=0;s<e.length;s++)0!=((r=e[s]).ap&t)&&null!=(o=He(n[a=r.nm],r.dv))&&(me(i,r.p)[a]=o)}pe[gs+"rid"]=[0,[ls,ms],Dr],pe[gs+"tid"]=[0,[ls,ms]],pe[gs+"cmi"]=[0,[us,fs]],pe[gs+"pmi"]=[0,[us,fs]],ys();var Cs,Ms,Ds,Rs,Ns,ks,Ps,ws,Ls,Us,xs,Fs,Vs,Ws,js,Bs,Hs,_,Gs={},qs={},zs=ke(p,_n)||[],Ys=[],Ks=1,Xs=2,Js=4,$s=Js,Qs=Xs|Ks|$s,Zs=0,nu=1,eu=[];function tu(n){return null!=n?6e4*n:12e5}function iu(n,e){if(!Qs&&0<zs.length){for(var t,i=se(),r=0,a=0;a<zs.length;a++)zs[a].p&&(t=!0,Os(Gs,ns,$e,zs[a].m)),r=ie.max(r,i-zs[a].t);Fs&&fu(zs,0,Wn(Dn,i,r,t),n),e=!0}e&&(zs=[],Pe(p,_n)),Ps=null}function ru(n){if(!(Qs&=~n)){n=eu[Zs];if(null==Ps&&iu(),re(n))try{n()}catch(n){oe(n,"onConfigReady")}}}function au(n,e,t,i,r,a,o,s,u){if(4==n.readyState){var c=se(),l=n.status;if(e+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[r++];if(null!=a)return L(function(){o.retry(se()),t(i,r,o)},1e3*a),void ae(e+"retry #"+r+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(n,c))||u&&u(e,l)||ae(e+"failed")}}function ou(e,t,i){Ls=Zn("POST",$n(ee.sm),{"Content-Type":"application/json","cache-control":"no-cache"},e,function(n){4==n.readyState&&(Ls=null,au(n,"Sampling API",ou,e,t,ee.rd,i,function(n){n=le(n.responseText);if(Us=n&&n[ee.ss+"_sampling"])return Fs=Us.in_sample,xs=!1,ru(Xs),m(p,vn,Us),!0},function(n){return Fs=xs=!0,ru(Xs),ae(n+"forced in"),!0}))})}function su(){var n;!ws||Qs&Ks||(ee.sw&&ee.sm?(ee.sp,(n=Jo[ee.sd])&&(ws.sampling_definition_params={namespace:ee.ss,key_name:n.nm,key_value:mu(n)}),(n=Jo[ee.sc])&&(ws.sampling_criteria_params={sampling:{key_name:n.nm,key_value:mu(n)}}),ws.sampling_override=o.sampling_override||"NONE",ws.sampling_request_id=ue(),ou(ce(ws),0,Wn(Cn,se()))):(Fs=!0,ru(Xs)),ws=null)}function uu(i,e,t){var n,r;ee.ci?(ee.tt&&(ee.mf=o.mock_config||ee.mf),Oe("Get config from "+(n=ee.mf||Re($n("https://"+ee.cf+"platform.datazoom.io/beacon/v2/config"),function(n){n.append($,ee.ci)}))),r=se(),Zn("GET",n,null,null,function(n){au(n,"Config API",uu,i,e,ee.rd,t,function(n,e){var t=le(n.responseText);if(t)return i(t,n.getResponseHeader("dz-extra"),r,e),!0},function(n,e){e<400||429==e||499<e||(ee.om=!1),i()})})):(ae("Missing configuration ID"),ee.om=!1,i())}function cu(){uu(function(n,e,t,i){ee.st=null,n&&function i(r,a){de(r)?te.keys(r).forEach(function(n){var e=r[n],t=a[n];de(t)?i(e,t):null==t?be("Unknown config key: "+n):null==e?be("Undefined config key: "+n):t&&(ee[t]=e)}):ae("Invalid config object",r)}(n,K),m(p,hn,ee.st),ee.st=tu(ee.st),m(p,gn,ee.od),Uo(ee.ev,n),jo(ee.fd),ts(ee.md),ys(ee.cd),Bo={ad_blocker:1,device_id:1,mobile_connection:1,page_url:1,referrer_url:1},ee.og||(xn=[]),ee.os||(kn=null),O(ee.cm,"sort"),O(ee.am,"sort"),O(ee.cq,"sort"),O(ee.aq,"sort"),pu([[vr,ee.cc],[_r,ee.cl]]),Ys.forEach(function(n){var e,t,i,r,a,o=!1,s=bs(n.m,Er),u=wo[s];u?o=u.on:s.startsWith(G)?o=Go:s.startsWith(q)&&(o=zo),o&&(e=n.m,t={},ns.concat(es).forEach(function(n){null!=(i=bs(e,n))&&(me(t,n.p)[n.nm]=i)}),r=me(e,Gt),a=me(t,Gt),Vo.concat(Wo).forEach(function(n){null!=(i=bs(r,n))&&(a[n.nm]=i)}),Ho&&(i=me(e,fr,!0))&&te.assign(me(t,fr),i),qo&&(i=me(e,pr,!0))&&te.assign(me(t,pr),i),lu(t,a),n.m=t,zs.push(n))}),m(p,_n,zs),Ys=[];var r,n=Ea.nm,n=(Ea.on?(r=ke(v,n))||(r=ue(),m(v,n,r)):Pe(v,n),pu([[Ea,r]]),e);try{var a,o,s,u,c,l=n&&le(atob(n));l?(a=l.latitude,o=l.longitude,s=l.timezone_offset,c=(u=l.time_sync)&&+u,pu([[$r,l.client_ip],[Ja,l.mobile_connection],[Ya,l.asn],[Ba,l.region_code],[ja,l.region],[xa,l.country_code],[Ua,l.country],[Wa,l.postal_code],[La,l.city],[Fa,a?+a:null],[Va,o?+o:null],[Ha,l.continent],[Ga,l.continent_code],[qa,l.timezone_name],[za,null!=s?s/3600:null]]),c&&pu([[eo,ie.round(c-(t+i)/2)]])):ae("Missing or invalid dz-extra header")}catch(n){oe(n,"processDzExtra")}ee.ab&&_o.on&&null==mu(_o)?Zn("GET",$n(ee.ab),null,null,function(n){4==n.readyState&&(pu([[_o,!n.status]]),ru(Js))}):ru(Js),ru(Ks),su(),L(function(){ru($s),su()},ee.mh),te.keys(_e).forEach(function(n){n=_e[n].configCallback;n&&n(ee)})},0,Wn(Mn,se()))}function lu(n,e){var t=""+(Ns+1e7);me(n,hr.p)[hr.nm]=Ds+"_"+t.substr(-7,2)+"."+t.substr(-5),m(p,fn,++Ns),ii.on&&(e[ii.nm]=Ns)}function du(n,e,t,i,r,a,o){var s,u,c,l,d,o=o?Ke:Je,f=me(n,Gt);for(Os(Gs,ns,o,n),Os(Gs,Vo,o,f),(i=i||[]).push([Er,e],[gr,t]),s=0;s<i.length;s++)u=(c=i[s])[0],c[2]||0!=(u.ap&Xe)?u.on&&null!=(c=He(c[1],u.dv))&&(me(n,u.p)[u.nm]=c):ae("Invalid event data",u);Ho&&(o=Hn(Cs,r),e=n,r=ce(o),d=r?r.length:0,(l=ee.ml)&&l<d?ae("Custom metadata size: "+d+" > "+l):2<d&&(o=le(r))&&te.assign(me(e,fr),o)),qo&&(l=qn(Ms,a),d=n,l)&&te.assign(me(d,pr),l),Ie&&Me("evInfo",n),!(sn<rn)&&ee.le&&ee.le(n)||(r={p:Qs,m:n,t:t},Qs&Ks?Ys.push(r):(lu(n,f),zs.push(r),m(p,_n,zs),null==Ps&&(Ps=L(iu,ee.bd))))}function fu(t,e,i,n){var r,a=t.map(function(n){return n.m}),o=(a.forEach(function(n,e){var t,i=me(n,dr);i.versions=el,Za.on&&(me(n,Za.p)[Za.nm]=se()),Us&&(i[ee.ss+"_sampling"]=Us),null!=xs&&(i[ee.ss+"_forced_sampling_in"]=xs),e||(r=i[En],kn&&(te.keys(kn).forEach(Bn),kn=null),xn.length&&(r=r?r.concat(xn):xn,xn=[],r.length>ee.mc&&(r.sort(function(n,e){return n.batch()>e.batch()?1:-1}),t=r[r.length-ee.mc-1].batch(),r=r.filter(function(n){return n.batch()>t})),i[En]=r))}),$n(ee.mb)),a=ce(a);n&&R.sendBeacon&&R.sendBeacon(o,a)||Zn("POST",o,{"Content-Type":"application/json"},a,function(n){au(n,"Message post",fu,t,e,ee.rd,i,null,function(n,e){t.forEach(function(n){jn(n,e)}),r&&(xn=r.concat(xn))})})}function pu(n){Is(Gs,qs,Ke,n)}function mu(n){return Gs[n.nm]}function _u(n){if(zc&&(zc=!1,hu(_t,n)),!Ds||!Rs||(e=n,t=ee.st,e<ks&&ae("Activity time reversal: "+ks+" -> "+e),0<=t&&(e<ks||ks+t<=e))){iu(!(Ys=[]),!0);t=n,e=eu[nu];if(Ds=ue(),Rs=ks=t,pu([[Yr,Ds],[Kr,Rs],[ai,Ns=0],[si,0],[ui,0],[ci,0],[oi,0],[li,0],[di,0],[fi,0],[gi,0],[Ei,0],[yi,0]]),m(p,fn,Ns),m(p,pn,ks),Pe(p,vn),Ls&&Ls.abort(),Ls=Us=null,Fs=xs=null,Qs|=Xs,ws={},su(),re(e))try{e()}catch(n){oe(n,"onAppSessionStart")}}else m(p,pn,ks=n);var e,t;pu([[ni,n-Rs],[ha,ne.outerWidth],[_a,ne.outerHeight],[ro,Ee.title],[ao,D.href],[oo,Ee.referrer],[so,D.hostname],[ga,R.cookieEnabled]])}function vu(n,e,t){Ts(pu,mu,n,e,t)}function hu(n,e,t,i,r){0!=(n.ap&Ke)?(_u(e),n.on&&du({},n.nm,e,t,i,r,!0)):ae("Event inapplicable: "+n.nm+", ss",n)}function gu(e,t){var i,r;e&&Yo.forEach(function(n){i=H+n.nm,null!=(r=e[i])&&(t([[n,r]]),delete e[i])})}if(Ss(Gs,$o,Ke),Ds=mu(Yr),Rs=mu(Kr),Ns=ke(p,fn)||0,ks=ke(p,pn)||0,Us=ke(p,vn),Cs=ke(p,mn),Ms=ke(p,"__ss_vendor_md"),ee.st=tu(ke(p,hn)),ee.od=ke(p,gn),Us?(Fs=Us.in_sample,xs=!1,ru(Xs)):ws={},t.some(function(n){if(_=n[0].exec(N))return Vs=n[1],Ws=_[1],!0})||(_=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(N))&&(Vs=_[1],Ws=_[2]),(_=/Version\/([\d.]+)/.exec(N))&&(Ws=_[1]),f.some(function(n){if(n[0].test(N))return js=n[1],!0})){switch(_=null,js){case"Mac OS X":_=/Mac OS X (10[\d._]+)/.exec(N);break;case"Android":_=/Android ([\d._]+)/.exec(N);break;case"iOS":_=/OS (\d+_\d+(_\d+)?)/.exec(N);break;case"Tizen":_=/Tizen[ \/]([\d._]+)/.exec(N);break;default:(_=/Windows (.*)/.exec(js))&&(js="Windows")}_&&(Bs=_[1].replace(/_/g,"."))}else js=Bs="-";st.some(function(n){if(n[0].test(N))return Hs=n[1],!0}),pu([[s,N],[ma,Vs],[va,Ws],[Ta,js],[c,Bs],[Ia,Hs],[to,ee.cn],[io,ee.sv],[cr,3]]);var Eu="adapterID",yu="adapterOptions",Su="baseContext",Iu="contextType",Au="contextName",Tu="metadata",bu=0,Ou=2,Cu=["base","player","app"],_e={},Mu=[];function Du(n){if(!n.destroyed){n.setTimer(null);try{var e=n.destroyCallback;e&&e()}catch(n){oe(n,"onDestroy")}delete _e[n.id],n.removeListeners(),n.destroyed=!0}}function Ru(n,e,t,i,r,a,o){(r=r||[]).push([$a,n.id],[Qa,n.name]),du(e,t,i,r,Hn(n.customMetadata,a),qn(n.vendorMetadata,o))}function Nu(n,e){return!(null!=e&&!de(e)||(n.customMetadata=le(ce(e)),0))}function ku(n){var e=De(Gs);return e._c_=Hn(Cs,n.customMetadata),e._v_=qn(Ms,n.vendorMetadata),e}function Pu(){var t,c=[],i={},a={id:ue(),type:bu,destroyed:!1,destroyCallback:null,configCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(n,e,t){if(a.destroyed)return ae(n+" after destroyed"+(e?": "+e:""),t),!0},onDestroy:function(n){a.destroyCallback=n},onConfig:function(n){a.configCallback=n},setTimer:function(n){var e;t&&(0<=(e=Mu.indexOf(t))&&Mu.splice(e,1),t=null),n&&(Mu.push(n),t=n)},fireEvent:function(n,e,t,i,r){a.shallBlock("fireEvent",n.nm,n)||(_u(e),n.on&&Ru(a,{},n.nm,e,t,i,r))},fireVendorEvent:function(n,e,t){a.fireEvent({ap:I,nm:Lo(n,e),on:zo},se(),null,null,Gn(n,t))},addListener:function(n,e,t,i,r){if(n&&e){var a=n[i=i||"addEventListener"];if(re(a)){u=zn(n,t,s="listener: "+(s=e));var o=sn<an?u:function(){Nn(s,arguments),u.apply(null,arguments)};try{"-"===e?a.call(n,o):a.call(n,e,o),c.push([n,e,t,o,r||"removeEventListener"])}catch(n){oe(n,"addListener: "+e)}}else ae("Invalid add-listener method: "+i,n)}var s,u},removeListeners:function(r,a,o){c=c.filter(function(n){var e=n[0],t=n[1];if(r&&r!=e||a&&a!=t||o&&o!=n[2])return!0;var i=e&&e[n[4]];if(re(i))try{"-"===t?i.call(e,n[3]):i.call(e,t,n[3])}catch(n){}else ae("Invalid remove-listener method: "+n[4],e)})},stash:function(n,e,t){i[n]=[e,t]},unstash:function(n){n.forEach(function(e){var n=i[e];if(n){delete i[e];try{n[0].apply(null,n[1])}catch(n){oe(n,"unstash: "+e)}}})}},n={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return Cu[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){Du(a)},setMetadata:function(n){return Nu(a,n)},getMetadata:function(){return le(ce(a.customMetadata))},generateEvent:function(n,e){a.fireEvent({ap:I,nm:G+n,on:Go},se(),null,e)},dumpDzData:function(n){var e=le(ce(ku(a)));return null==n?e:e[n]}};return a.basePublicMethods=n,a.publicContext=De(n),_e[a.id]=a}function wu(n,e){var t,i;return null==n?i=Pu():(i=(t=de(n)&&re(n.contextID)&&n.contextID())&&Le(t)&&_e[t])&&i.type===bu&&i.publicContext===n||(ae("Invalid contextOptions."+Su,n),i=Pu()),null!=e&&(i.name=e),i}tl("player_ctx_core","2.1.0");function Lu(n){return ee.sn&&ee.sn[n]||""+n}var Uu,xu,Fu,Vu,ve=[],Wu="idle",ju=(ve[2]=ve[9]="buffering",ve[3]=ve[10]="playing",ve[4]=ve[11]="paused",ve[5]=ve[12]="seeking",ve[6]="ended",ve[0]=ve[7]=ve[8]=Wu,"impression"),Bu="firstQuartile",Hu="midPoint",Gu="thirdQuartile",qu="complete",zu="bufferStart",Yu="bufferFinish",Ku="clickThrough",Xu="volumeChange",Ju="fullscreen",$u="exitFullscreen",Qu="finish",Zu=function(U,x,r){var i,a,o,F,V,W,j,B,f={},H={},g={},G={},q={},z={},Y=[],K=[],X=[],J=[],$=[],Q=[],Z=[],p=[],nn=ue(),m=wu(r[Su],r[Au]),s=Hc(r[Eu],1),u=r[yu];function en(){var e,n;o&&(e=se(),n=te.keys(o).map(function(n){return o[n]}),o=null,n.forEach(function(n){w(n.ev,e,n.dl)}))}function E(n,e,t){(o=o||{})[t||n.nm]={ev:n,dl:e}}function _(n){Is(f,H,1,n)}function y(n){Is(g,G,2,n)}function S(n,e){return As(e?g:f,n)}function I(n){return g[n.nm]}function tn(){var n=S(sa),e=S(ua);Ss(f,$o,1),_([[Ra,"content"],[sa,n],[ua,e]])}function rn(){Ss(g,$o,2),y([[Ra,"ad"]])}function n(n,e){H[n.nm]=e}function an(n,e){G[n.nm]=e}function on(n,e){z[n.nm]=e}function e(n,e,t,i){for(var r=[],a=0;a<e.length;a++)r[e[a]]=!0;Z[n]={tr:r,en:t,ex:i}}u=de(u)?De(u):{},s&&(W=s[2],j=s[3],te.assign(u,s[4]||{}),F=u[Wc],V=u[jc],(u[Vc]||[]).forEach(function(n){q[n[0].nm]=n[1]})),U&&te.keys(_e).some(function(n){n=_e[n];if(1==n.type&&n.player===U)return n.publicContext.destroy(),!0});var sn,t,un,c,cn,l,ln,dn,A,fn,pn,T,mn,b,O,_n,vn,hn,gn,En,C,M,yn,Sn,d,v,D,R,In,N,k,An,h=0,Tn=Wu,bn=1,On=se(),Cn=Ce(ae,"Abnormal duration increment: ",1,1e3,3e5);function Mn(){return 2==bn}function Dn(){return!!b&&b.type===is}function Rn(n){A=n+ee.hi,Oe("Heartbeats started")}function Nn(){A&&Oe("Heartbeats stopped"),A=0}function P(n,e,t){return Ts(_,S,n,e,t)}function kn(n){var e=n-On;e<0||e>ee.ed?Cn.log(e):0<e&&(4==h?P(_i,e,pi):11==h?P(mi,e,pi):2==h?(t&&P(Vi,e,xi),P(Kt,e,zt)):9==h&&(t&&P(Fi,e,xi),P(Yt,e,zt))),On=n}function Pn(n,e){null!=n&&(p[n]=e)}function w(e,t,i,n,r,a){if(!m.shallBlock("fireEvent",e.nm,e))if(a=a||(Dn()?2:bn),0!=(e.ap&a)){if(_u(t),(i=i||[]).push([no,m.id]),An||(An=!0,(u=X.some(function(n){try{return n(t,i,e,a)}catch(n){oe(n,"extEventHandler")}}))||(u=(c=z&&z[e.nm])&&c(t,i,e,a)),An=!1),!u){kn(t);for(var o,s,u,c,l=[[bi,Tn]],d=0;d<Fo.length;d++)s=p[(o=Fo[d]).ts],l.push([o,s?t-s:0]);_(l),null==S(qt)&&ye&&(c=ye.downlink)&&_([[qt,1e3*c]]),Pn(e.rt,t),Pn(2==a?e.rta:e.rtc,t),!e.on||e.mm&&!e.mm[S(Ra,2==a)]||(c=me(u={},Gt),2==a?(Os(g,ns,2,u),Os(g,Vo,2,c),Os(f,ns,Je,u),Os(f,Vo,Je,c)):(Os(f,ns,1,u),Os(f,Vo,1,c),Os(g,ns,Je,u),Os(g,Vo,Je,c)),Ru(m,u,e.nm,t,i,n,r))}}else ae("Event inapplicable: "+e.nm+", "+a,e)}function wn(n){var e=n[1];e&&e!=S(n[0])&&E(pt)}function Ln(n,e){var t=3==e?C:M;if(n!=t){var i,r,a,o,s,u,c,l,d=se();if(A||Rn(d),fn=!0,3==e){if(s=F||ee.mp,C=n,a=d-yn,yn=d,i=S(Ca),T){var f,p=b;if(null==_n&&0<i&&(f=T.locate(i),_n=(f.type?f.start:i)-f._e),i=_n,O&&t>=O.start&&t<=O.end||(O=T.locate(t)),(b=b&&n>=b.start&&n<=b.end?b:T.locate(n))&&(u=b.type,c=b.start,l=b._d),b!=p&&(f=k<=n&&n<k+s,u===is?N!==c&&l&&((null==N?Vn:(f&&w(Mt,d),Hn))(d),N=c,k=b.end,jn(),y(l.concat([[Eo,k-N]])),Bn(d,b._a),w(it,d,null,null,null,2),M=0,Sn=d):null!=N&&(f&&w(Mt,d,null,null,null,2),Hn(),Wn(d))),u===is)return void(l&&(Ln(p=n-c,10),g[fe.nm]=p))}dn||(r=vn=!vn&&ee.cm?ee.cm.slice():vn)}else s=V||ee.mp,M=n,a=d-Sn,Sn=d,i=I(Eo),r=hn=!hn&&ee.am?ee.am.slice():hn;if(null!=t&&null!=n&&0<=t&&t<n&&n<=t+s){if(0<i&&r)for(var m,_,v=0,h=3==e&&O&&b?(_=((O.type?O.start:t)-O._e)/i,((u?c:n)-b._e)/i):(_=t/i,n/i);v<r.length&&!(h<(m=r[v]/100));)_<m?(r.splice(v,1),E(At,[[jr,100*m]],At.nm+m)):v++;if(3==e){if(D=n,a<0||a>ee.ed)Cn.log(a);else if(0<a)if(u)P("promo"===u?Ai:null,a,vi);else if(i=P(Ii,a,vi)/1e3,ee.cq)for(gn=gn||ee.cq.slice();null!=(o=gn[0])&&o<=i;)gn.shift(),E(Nt,[[Br,o]],Nt.nm+o)}else if(R=n,a<0||a>ee.ed)Cn.log(a);else if(0<a&&(P(hi,a,vi),vu(gi,a),!1===S(oa)&&vu(Ei,a),!0===S(Oi)&&vu(yi,a),i=Ts(y,I,Si,a)/1e3,ee.aq))for(En=En||ee.aq.slice();null!=(o=En[0])&&o<=i;)En.shift(),E(Nt,[[Br,o]],Nt.nm+o)}}}function Un(n,e){null==d&&null!=n&&null!=D&&n!=D&&(d=D,vu(fi,1),w(Ut,e||se()))}function xn(n,e){null==v&&null!=n&&null!=R&&n!=R&&(v=R,w(Ut,e||se()))}function Fn(n){sn&&w(Wt,n),sn=un=!1,bn=1,d=D=null,Nn()}function Vn(n){var e,t,i="pre";S(Ii)>1e3*ee.ep&&(e=S(fe),t=S(Ca),i=null!=e&&null!=t&&e+ee.ep>t?"post":"mid"),c=l=ln=!1,rn(),_([[vo,ue()],[Ao,i],[ri,0]]),w(nt,n)}function Wn(n){In+=n-p[14],w(et,n,null,null,null,2),_([[vo,null],[Ao,null],[ri,null]])}function jn(){ln||(ln=!0,y([[To,a||ue()],[Si,0]]),a=null)}function Bn(n,e){var t=eu[4];if(c=!0,hn=En=null,vu(ai,1),P(ri,1),re(t))try{t(i,e)}catch(n){oe(n,"onAdStart")}w(Ct,n)}function Hn(){if(c){var n=eu[5];if(re(n))try{n(i)}catch(n){oe(n,"onAdEnd")}}c=l=ln=!1,v=R=N=k=null,rn()}function Gn(n,e,t,i){var r,a,o,s;n!=h&&(o=Z[h],r=Lu(h)+" => "+Lu(n),a=ve[n]||Tn,m.shallBlock("setState",r)||(o.tr[n]?(Oe("state: "+r+" ("+a+")"),(o=o.ex)&&o(e,n,t,i),kn(e),s=h,Tn=a,(o=Z[h=n].en)&&o(e,s,t,i),fn=!0):ae("Invalid transition: "+r)))}function qn(n){return n!=h&&!!Z[h].tr[n]}function zn(){return 0==h||7==h||8==h}function L(o,s,u){return function(n){var e,t,i,r,a;e=o,t=s,i=u,a=(n=n)[0],n=n[1]=He(n[1],a.dv),a=S(a,i),null!=i&&i!=Mn()||null==a||null==n||(t?!n!=!a&&E(n?e:t):n!=a&&E(e,r=e==Pt?a<n?[[Ur,"up"]]:n<a?[[Ur,"down"]]:null:r))}}function Yn(n){n[1]=He(n[1],n[0].dv)}e(0,[1,8]),e(1,[2,7,8,16],function(n){var e=eu[2];if(Fn(n),sn=!(cn=!1),dn=rs.test(S(fa)),In=0,_([[Qr,nn],[$t,n]]),nn=ue(),vu(di,1),B&&B(),re(e))try{e(i)}catch(n){oe(n,"onContentSessionStart")}T=mn,mn=b=O=_n=null,N=k=null,pn=0,w(It,n)}),e(2,[3,4,5,7,8,16],function(n,e){(t=3==e)&&(P(Ui,1,wi),w(Ft,n)),w(ct,n)},function(n){w(lt,n),t&&w(Vt,n),t=!1,un||w(yt,n)}),e(3,[2,4,5,6,7,8,16],function(n){var e,t;un||(t=(e=n-p[0])-In,un=!0,vn=gn=null,vu(oi,1),_([[rr,t],[ar,e]]),w(Ct,n,[[qr,t],[zr,e]])),C=D=S(fe),yn=n,null!=d&&(w(xt,n,[[Hr,1e3*d],[Gr,null!=C?1e3*C:null]]),d=null),w(Rt,n),cn&&(cn=!1,w(Lt,n)),A||Rn(n)},function(){C=null}),e(4,[2,3,5,6,7,8,16],function(n){cn||(cn=!0,vu(li,1),w(bt,n))}),e(5,[2,3,4,6,7,8,16],function(n){Un(S(fe),n)}),e(6,[2,3,4,5,7,8,16],function(n){w(Mt,n)}),e(7,[],function(n){Fn(n)}),e(8,[],function(n,e,t){w(vt,n,t),Fn(n)}),e(9,[10,11,12,14,15,7],function(n,e){jn(),(t=10==e)&&(P(Li,1,wi),w(Ft,n)),w(ct,n)},function(n){w(lt,n),t&&w(Vt,n),t=!1}),e(10,[9,11,12,13,14,15,7],function(n,e,t,i){jn(),c||Bn(n,i),M=R=I(fe),Sn=n,null!=v&&(w(xt,n,[[Hr,1e3*v],[Gr,null!=M?1e3*M:null]]),v=null),w(Rt,n),l&&(l=!1,w(Lt,n)),A||Rn(n)},function(){M=null}),e(11,[9,10,12,14,15,7],function(n){l||(l=!0,w(bt,n))}),e(12,[9,10,11,13,14,15,7],function(n){xn(I(fe),n)}),e(13,[9,10,17,7],function(n){w(Mt,n),Hn()}),e(14,[9,10,17,7],function(n){w(ot,n),Hn()}),e(15,[9,10,17,7],function(n,e,t){w(vt,n,t),Hn()}),e(16,[9,10,15,17,7],function(n){bn=2,Vn(n)}),e(17,[2,3,4,5,6,7],function(n){Wn(n),bn=1});var Kn,Xn=ki,Jn=ki;function $n(n){var i=[],r=0,a=0;return i.locate=function(e){return i.find(function(n){return e>=n.start&&e<=n.end})},n.forEach(function(n){var e=n.start,t=n.end;Ue(e)&&Ue(t)&&(e=e<r?r:e)<t?(r<e&&i.push({start:r,end:e,_e:a}),i.push(te.assign({},n,{start:e,_e:a})),n.type&&(a+=t-e),r=t):ae("Skipped time span",n)}),i.push({start:r,end:he.MAX_VALUE,_e:a}),i}function Qn(n,e){n=n&&n({type:Ae,ack:e,appSID:mu(Yr),ctSID:S(Qr)});n&&n["catch"](function(n){be("Cast transfer message rejected",n)})}function Zn(n){var e,t=m.publicContext,i=null;m.player=n,te.assign(t,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return n},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(Qr)},nextContentSessionID:function(){return nn},playerState:function(){return Tn},destroy:function(){if(!m.destroyed){qn(7)&&Gn(7,se());for(var n=0;n<K.length;n++)try{K[n]()}catch(n){oe(n,"extOnDestroy")}Du(m)}},startContentSession:function(){return!!zn()&&(m.reset(),m.setState(1),m.setState(2),!0)},setMetadata:function(n){return!!Nu(m,n)&&(gu(m.customMetadata,m.setData),!0)},annotateContentSession:function(n){return null==n?!(mn=null):!!xe(n)&&(mn=$n(n.slice().sort(function(n,e){return n.start>e.start?1:-1})),!0)},dumpDzData:function(n){var e=te.assign(ku(m),f,g),t=Ra.nm;return e[t]=(Mn()||Dn()?g:f)[t],e=le(ce(e)),null==n?e:e[n]}}),ec.forEach(function(n){try{n(t,m,Y,K,X,J,$,Q)}catch(n){oe(n,"extInit")}});try{i=s?W?W(n,m,u):null:"Missing adapter"}catch(n){i=oe(n,s[0]+" initContext")}return i?(Te(i),t.destroy()):(null!=(e=r[Tu])&&t.setMetadata(e),e=se(),w(mt,e),w(Dt,e),m.setTimer(function(){for(var n=0;n<Y.length;n++)try{Y[n]()}catch(n){oe(n,"extOnTimer")}if(Kn)try{Kn()}catch(n){oe(n,"onTimer")}var e=se();kn(e),A&&A<=e&&(fn?(w(Et,e,[[Wr,++pn]]),A=e+ee.hi,fn=!1):Nn())})),t}return 1&(q[Xn.nm]||0)&&(Xn=Ri),2&(q[Jn.nm]||0)&&(Jn=Ri),n(Ca,Yn),an(Eo,Yn),n(da,function(n){var e=n[1];n[1]=e&&as[e]||e}),n(fa,function(n){dn=rs.test(n[1])}),n(fe,function(n){5==h||2==h?Un(n[1]):3==h&&Ln(n[1],3);for(var e=0;e<J.length;e++)try{J[e](n)}catch(n){oe(n,"extPlayheadHandler")}}),an(fe,function(n){12==h?xn(n[1]):10==h&&Ln(n[1],10)}),n(Xn,L(Pt,null,!1)),an(Jn,L(Pt,null,!0)),n(oa,L(Tt,Bt)),n(ra,L(gt,ht)),n(na,L(dt,ft)),n(ka,L(wt)),n(Na,L(wt)),n(or,L(Ht)),n(Qt,L(ut,null,!1)),an(Qt,L(ut,null,!0)),n(Zt,L(jt)),n(pa,L(jt)),n(Xr,wn),n(Jr,wn),n(Ci,function(n){var e,t,i,r,a=n[1];a=a&&re(a.getBoundingClientRect)?"visible"==Ee.visibilityState?(e=(r=a.getBoundingClientRect()).left,t=r.right,i=r.top,r=r.bottom,ie.min(100,ie.max(0,ie.round(100*(ie.min(t,ne.innerWidth)-ie.max(e,0))*(ie.min(r,ne.innerHeight)-ie.max(i,0))/((t-e)*(r-i)))))):0:He(a,Ci.dv),null!=(n[1]=a)&&_([[Oi,50<=a]])}),n(Jt,function(n){var e=n[1];if(e&&re(e.end)){var t,i,r=S(fe);if(null!=r)for(t=0;t<e.length;t++)if(i=e.end(t),r>=e.start(t)&&r<=i)return void(n[1]=1e3*(i-r));n[1]=0}}),on(yt,function(n,e,t,i){2==i&&(a=ue(),e.push([To,a,!0]))}),on(it,function(n,e){a&&e.push([To,a,!0])}),on(vt,function(n,e,t,i){vu(1==i?ci:ui,1,si)}),tn(),rn(),te.assign(m,{type:1,fireEvent:w,fire:function(n,e,t){w(n,se(),e,null,null,t)},setState:function(n,e,t){Gn(n,se(),e,t)},canSetState:qn,reset:function(){qn(7)&&Gn(7,se()),tn(),rn(),p=[],h=0,Tn=Wu},setData:function(n){_(n),en()},setAdData:function(n){y(n),en()},getData:S,getAdData:I,getState:function(){return h},isIdle:zn,isAdIdle:function(){return 13==h||14==h||15==h},isInAds:Mn,isInSsaiAds:Dn,onTimer:function(n){Kn=n},onCtSessionStart:function(n){B=n},matchCtSource:function(n){return S(Pa)==n},reqCtSID:function(){return zn()?nn:S(Qr)},reqTracer:function(n,a){n=Re(n,function(n){n["delete"]("CMCD")});var e,t=m.reqCtSID(),i=ue(),r=((a=te.assign({},a||{},{sid:t}))[gs+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(e=S(ba))&&(a.cid=e),{url:n,sid:t,rid:i,cmcd:a,start:se()});return{reqID:i,urlBase:n,url:function(){var e=Es(a);return Re(n,function(n){n.append("CMCD",e[0].concat(e[1],e[2],e[3]).sort().join())})},headers:function(){for(var n={},e=Es(a),t=0;t<4;t++)e[t].length&&(n[os[t]]=e[t].sort().join());return n},enabledData:function(){for(var n,e,t=te.keys(a),i={},r=0;r<t.length;r++)n=t[r],(e=pe[n])&&e[3]&&(i[n]=a[n]);return i},status:function(n){r.status=n},start:function(){r.start=se()},resp:function(n){r.resp=null!=n?r.start+n:se(),Ie&&Me("reqInfo",r)},end:function(n){var e=se(),t=(r.end=null!=n?r.start+n:e,te.assign({},hs,a)),i=[];te.keys(t).forEach(function(n){var e=pe[n];e&&e[2]&&i.push([e[2],t[n]])}),w(St,e,i,null,null,1),Ie&&Me("reqInfo",r)}}},updateTimedMetadata:function(n,e,t,i,r){for(var a=0;a<$.length;a++)try{$[a](n,e,t,i,r)}catch(n){oe(n,"extTimedMetadataHandler")}},addCtTimeSpans:function(n){var u=T?T.filter(function(n){return n.type}):[];n.forEach(function(n){for(var e,t,i,r,a=n.start,o=n.end,s=0;s<u.length&&(i=(t=u[s]).start,r=t.end,!(o<=i));s++)a<r&&(i<a?(u.splice(s+1,0,te.assign({},t,{start:a})),t.end=a):(e||(u.splice(s++,0,n),e=!0),o<r?t.start=o:u.splice(s--,1)));e||u.splice(s,0,n)}),T=$n(u),b=O=_n=null},initCastTransfer:function(n){zn()||Qn(n,!1)},handleCastMessage:function(n,e){!n||n.type!==Ae||zn()||(m.setData([[Xr,n.appSID],[Jr,n.ctSID]]),n.ack)||Qn(e,!0)},sa:{}}),s&&_([[sa,s[1]]]),Qs&Ks&&ys((Xn=Se.options).cmcdEnable?Xn.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new ge(function(e,t){try{j(x,m,u).then(function(n){i=Zn(n),e(i)},function(n){Te(n),t(n)})}catch(n){t(oe(n,s[0]+" createTargetObject"))}}):ge.reject("Not implemented"):i=Zn(U)},nc=function(n,a){var o=new(n||Zc),s=(a=a||nl,{});function u(){return{currentTime:o.currentTime}}function c(){return{getAdId:function(){return s.adId},getAdSystem:function(){return s.adSystem},getAdvertiserName:function(){return s.advertiserName},getCreativeId:function(){return s.creativeId},getDealId:function(){return s.dealId},getDuration:function(){return s.duration},getSkipTimeOffset:function(){return s.skipTimeOffset},getVastMediaBitrate:function(){return s.vastMediaBitrate},getVastMediaWidth:function(){return s.vastMediaWidth},getVastMediaHeight:function(){return s.vastMediaHeight},getWrapperAdIds:function(){return s.wrapperAdIds},getWrapperAdSystems:function(){return s.wrapperAdSystems},getWrapperCreativeIds:function(){return s.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return s.adPodIndex},getTimeOffset:function(){return s.adTimeOffset}}},h:{clickThroughUrl:s.clickThroughUrl}}}return o.dispatch=function(n,e,t){var i,r;t=t||{},e&&((i=e.media)&&te.assign(o,i),i=e.ima)&&((e=i.adsManager)&&te.assign(o,e),(e=i.ad)&&te.assign(s,e),t.getAd=c,t.getAdData=u,r=i.error)&&(t.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),n&&(e=new a(n),te.assign(e,t),o.dispatchEvent(e))},o.getBoundingClientRect=function(){return o.boundingClientRect||{left:0,right:0,top:0,bottom:0}},o.getVolume=function(){return o.volume},o},ec=[],tc="REQUEST_COMPLETE",ic="SLOT_STARTED",rc="SLOT_ENDED",ac="AD_INITIATED",oc="AD_BUFFERING_START",sc="AD_BUFFERING_END",uc="AD_PAUSE",cc="AD_RESUME",lc="AD_IMPRESSION",dc="AD_IMPRESSION_END",fc="AD_COMPLETE",pc="AD_SKIPPED",mc="AD_CLICK",_c=(il("freewheel","2.0.0"),ec.push(function(n,i,e,t){var r,a,o=i.setState,s=i.setAdData,u=i.fire,c={},l={on:{}};function d(){r&&(i.removeListeners(r),c={},r=a=null)}l.$update=l.update=function(n,e){var t;i.isInAds()&&(e&&s([[Oo,O(e,"getTimePosition")]]),a&&(s([[fe,O(a,"getPlayheadTime")],[Eo,O(a,"getDuration")],[yo,O(a,"getAdId")],[go,a._creativeId],[Mo,O(a,"getDealId")],[Do,O(a,"getSkipOffset")]]),e=O(a,"getActiveCreativeRendition"))&&(t=O(e,"getHeight"),s([[Pi,O(e,"getWidth")],[Ri,t],[Ni,t?t+"p":null]])),n)&&(e=O(n,"getAdVolume"),i.setData([[or,100*e],[oa,0==e]]))},l.on[tc]=function(n,e){e.success?u(It,null,2):u(vt,null,2)},l.on[ic]=function(n,e){a=null,o(16),l.update(n,e.slot)},l.on[rc]=function(){o(17),a=null},l.on[ac]=function(){s([[Ti,1]]),u(yt,null,2)},l.on[oc]=function(){o(9)},l.on[sc]=l.on[cc]=function(){o(10,null,a)},l.on[lc]=function(){o(10,null,a),u(it,null,2)},l.on[uc]=function(){o(11)},l.on[fc]=function(){o(13),a=null},l.on[pc]=function(){o(14),a=null},l.on[dc]=function(){a=null},l.on[mc]=function(){u(tt)},l.on["ERROR"]=function(n,e){o(15,[[xr,e.errorCode],[Fr,e.errorInfo]]),a=null},l.on["AD"]=function(n,e){a=e.adInstance,l.update(n);var t=c[e.subType];t&&t(n,e)},l.$on=De(l.on),i.sa.fwContext=l,e.push(function(){r&&l.update(r)}),t.push(d),Yn({attachFwContext:function(n){var e;!i.shallBlock("attachFwContext",null,n)&&n!=r&&(d(),r=n)&&(e=b(ne.tv,["freewheel","SDK"]),[tc,ic,rc,"AD"].forEach(function(t){var n=e&&e["EVENT_"+t];n&&i.addListener(r,n,function(n){var e=l.on[t];e&&e(r,n)})}),[ac,oc,sc,uc,cc,lc,dc,fc,pc,mc,"ERROR"].forEach(function(i){var n=e&&e["EVENT_"+i];n&&(c[n]=function(n,e){var t=l.on[i];t&&t(n,e)})}))},detachFwContext:d},[n,i])}),"play"),vc="waiting",hc="playing",gc="pause",Ec="seeking",yc="seeked",Sc="ended",Ic="durationchange",Ac="ratechange",Tc="timeupdate",bc=(il("html5","2.0.0"),ec.push(function(n,a,e,t){var r,o,s,u,i=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function f(){o&&d(o),r&&d(r),r=o=null}function p(){if(r){for(var n,e,t,i=0;i<r.length;i++)"metadata"===(t=r[i]).kind?e=e||t:"showing"===t.mode&&(n=n||t);s||c([[pa,!!n],[Zt,n?n.label||n.language:null]]),o!=e&&(o&&d(o),o=e)&&l(o,"cuechange",function(){var n=o.activeCues;if(n)for(var e,t,i=0;i<n.length;i++)(t=(e=n[i]).value)&&a.updateTimedMetadata("ID3",e.startTime,e.endTime,t.key,t.data)})}}t.push(f);var m={on:{}};function _(){u&&d(u),u=null}m.$update=m.update=function(n,e){e&&(c([[Ca,n.duration],[ta,n.muted],[ia,n.playbackRate]]),p()),a.isInAds()||c([[fe,n.currentTime],[Ti,n.playbackRate],[ka,n.offsetWidth],[Na,n.offsetHeight],[Ci,n],[Jt,n.buffered],[aa,n.loop],[oa,n.muted],[or,100*n.volume],[la,n.readyState]])},m.on[_c]=function(n){a.isIdle()&&(a.reset(),m.update(n,!0),i(1),i(2))},m.on[vc]=function(n){m.update(n),i(2)},m.on[hc]=function(n){m.update(n),a.isAdIdle()&&i(17),i(3)},m.on[gc]=function(n){m.update(n),i(4)},m.on[Ec]=function(n){m.update(n),i(5)},m.on[yc]=function(n){m.update(n),i(n.paused?4:3)},m.on[Sc]=function(n){m.update(n),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(n){var e,t=n.error;t&&(e=[[xr,t.code],[Fr,t.message]]),m.update(n),i(8,e)},m.on[Ic]=function(n){c([[Ca,n.duration]])},m.on[Ac]=function(n){c([[Ti,n.playbackRate]])},m.on[Tc]=function(n){m.update(n)},m.$on=De(m.on),a.sa.mediaElement=m,e.push(function(){u&&m.update(u)}),t.push(_),Yn({attachMediaElement:function(n){_(),(u=n)&&[[_c,(n=[[Sc,gc,Ec,_c,vc,yc,hc]])[0]],[vc,n[0]],[hc,n[0]],[gc,n[0]],[Ec,n[0]],[yc,n[0]],[Sc,n[0]],["error"],[Ic],[Ac],[Tc]].forEach(function(i){var r=i[0];l(u,r,function(n){var e,t=m.on[r];t&&((e=i[1])?(a.stash(r,t,[u,n]),L(function(){a.unstash(e)},0)):t(u,n))})})},detachMediaElement:_,attachTextTracks:function(n,e){f(),s=e,(r=n)&&["change","addtrack","removetrack"].forEach(function(n){l(r,n,p)})},detachTextTracks:f},[a])}),"CLICK"),Oc="STARTED",Cc="AD_PROGRESS",Mc="AD_BUFFERING",Dc="IMPRESSION",Rc="PAUSED",Nc="RESUMED",kc="COMPLETE",Pc="LOADED",wc="ALL_ADS_COMPLETED",Lc="SKIPPED",Uc="VOLUME_CHANGED",xc="AD_ERROR",Fc={CLICK:"click",STARTED:"start",AD_PROGRESS:"adProgress",AD_BUFFERING:"adBuffering",IMPRESSION:"impression",PAUSED:"pause",RESUMED:"resume",COMPLETE:"complete",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",VOLUME_CHANGED:"volumeChange",AD_ERROR:"adError"},Vc=(il("ima","2.0.0"),ec.push(function(n,a,e,t){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(n){var e,n=n.getError();return n&&(e=[[xr,n.getErrorCode()],[Fr,n.getMessage()]],n=n.getInnerError())&&e.push([Vr,""+n]),e}var d,f,p={on:{}};function m(){o&&c(o),o=null}function _(n){var e=n.getAdPodInfo(),t=n.getVastMediaHeight(),t=[[yo,n.getAdId(),!0],[bo,n.getAdSystem(),!0],[Co,n.getAdvertiserName(),!0],[go,n.getCreativeId(),!0],[Mo,n.getDealId(),!0],[Eo,n.getDuration(),!0],[Do,n.getSkipTimeOffset(),!0],[ki,n.getVastMediaBitrate(),!0],[Pi,n.getVastMediaWidth(),!0],[Ri,t,!0],[Ni,t?t+"p":null,!0],[No,n.getWrapperAdIds(),!0],[ko,n.getWrapperAdSystems(),!0],[Ro,n.getWrapperCreativeIds(),!0],[ho,b(n,[/[a-z]/,"clickThroughUrl"]),!0]];return e&&t.push([Oo,e.getTimeOffset(),!0]),t}p.$update=p.update=function(n,e){a.isInAds()&&(e&&r(_(e)),n)&&(e=n.getVolume(),a.setData([[or,100*e],[oa,0==e]]))},p.on[bc]=function(n){p.update(n),s(tt)},p.on[Oc]=function(n,e){e=e.getAd();a.isInAds()||i(16),r([[Ti,1]]),p.update(n,e),i(10,null,e)},p.on[Cc]=function(n,e){e=b(e.getAdData(),["currentTime"]);null!=e&&(p.update(n),9==a.getState()&&(null==d?d=e:d!=e&&i(10)),r([[fe,e]]))},p.on[Mc]=function(n){p.update(n),i(9),d=null},p.on[Dc]=function(n){p.update(n),s(it,null,2)},p.on[Rc]=function(n){p.update(n),i(11)},p.on[Nc]=function(n){p.update(n),i(10)},p.on[kc]=function(n){p.update(n),i(13)},p.on[Pc]=function(n,e){e=e.getAd();s(yt,e&&_(e),2)},p.on[wc]=function(){i(17),m()},p.on[Lc]=function(n){p.update(n),i(14)},p.on[Uc]=function(n){p.update(n)},p.on[xc]=function(n,e){p.update(n),a.canSetState(15)?i(15,l(e)):s(vt,l(e),2)},p.$on=De(p.on),a.sa.imaAdsManager=p,e.push(function(){o&&p.update(o)}),t.push(m);var v={on:{}};function h(){f&&c(f),f=null}v.on[xc]=function(n,e){s(vt,l(e),2)},v.$on=De(v.on),a.sa.imaAdsLoader=v,t.push(h),Yn({attachImaAdsManager:function(n){var e,t;!a.shallBlock("attachImaAdsManager",null,n)&&n!=o&&(m(),o=n)&&(n=b(ne.google,["ima"]),e=b(n,["AdEvent","Type"],Fc),[[bc],[Oc,null,(t=[[Oc,Dc]])[0]],[Cc],[Mc],[Dc,null,t[0]],[Rc],[Nc],[kc],[Pc],[wc],[Lc],[Uc],[xc,b(n,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],n=(i[1]||e)[r];n&&u(o,n,function(n){var e,t=p.on[r];t&&((e=i[2])?(a.stash(r,t,[o,n]),L(function(){a.unstash(e)},0)):t(o,n))})}),s(It,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(n){a.shallBlock("attachImaAdsLoader",null,n)||n==f||(h(),(f=n)&&(n=b(ne.google,["ima","AdErrorEvent","Type"],Fc)[xc])&&u(f,n,function(n){var e=v.on[xc];e&&e(f,n)}))},detachImaAdsLoader:h},[n,a])}),il("ima_dai","2.0.0"),ec.push(function(e,r,n,t,i,a,o){var s,u,c,l=r.addListener;function d(){s&&r.removeListeners(s),s=u=c=null}function f(n){for(var e;(e=u[0])&&e.t<=n;)u.shift(),delete e.t,s.onTimedMetadata(e)}t.push(d),a.push(function(n){s&&f(c=n[1])}),o.push(function(n,e,t,i,r){var a;s&&i&&r&&Le(a="ID3"===n?r:a)&&((n={t:e})[i]=a,u.push(n),null!=c)&&f(c)}),Yn({attachImaDaiStreamManager:function(n){r.shallBlock("attachImaDaiStreamManager",null,n)||n==s||(d(),(s=n)&&(n=b(ne.google,["ima","dai","api","StreamEvent","Type"]),u=[],n)&&(l(s,n.CUEPOINTS_CHANGED,function(n){r.isIdle()&&(n=b(n.getStreamData(),["cuepoints"]))&&n.length&&e.annotateContentSession(n.map(function(n){return{type:is,start:n.start,end:n.end}}))}),l(s,n.STARTED,function(n){var e,t,i,n=n.getAd();n&&(e=c||0,t=n.getAdPodInfo(),i=n.getVastMediaHeight(),r.addCtTimeSpans([{type:is,start:e,end:e+(n.getDuration()||0),_d:[[yo,n.getAdId()],[bo,n.getAdSystem()],[Co,n.getAdvertiserName()],[go,n.getCreativeId()],[Mo,n.getDealId()],[Do,n.getSkipTimeOffset()],[Pi,n.getVastMediaWidth()],[Ri,i],[Ni,i?i+"p":null],[No,n.getWrapperAdIds()],[ko,n.getWrapperAdSystems()],[Ro,n.getWrapperCreativeIds()],[Oo,t?t.getTimeOffset():null]],_a:n}]))})))},detachImaDaiStreamManager:d},[e,r])}),Se.mediatailor=((Ot=E.mediatailor)&&(Ot.clientInfo+=" DZSDK "+ee.cn+" v"+ee.sv),Ot),il("mediatailor","2.0.0"),ec.push(function(n,c,e,t,i,r,a,o){var l,d,f,p,m;function _(n,e,t){if(n&&1===n.playCount)for(var i=o.length,r=0;r<i;r++)o[r](e,t)}function v(){l&&d&&l.removeAdObserver(d),l=d=null,f=p=m=null}t.push(v),i.push(function(n,e,t,i){var r=f&&f[t.nm];return r&&r(n,e,t,i)}),r.push(function(n){l&&3==c.getState()&&(p=n[1],m=c.getData(Mi),sn<an||Nn("MT onPlayheadUpdate: "+p+", "+m),l.onPlayheadUpdate(p,m||null))}),a.push(function(n,e,t,i,r){var a,o,s,u;l&&"EMT-TRACKING"===n&&r&&(e=e,(a=(a=r)&&a.avails)&&a.length&&(o=e-a[0].startTimeInSeconds,s=function(n){n.startTimeInSeconds+=o},u=function(n){var e=n.trackingEvents;n.startTimeInSeconds+=o,n.adProgramDateTime=null,e&&e.forEach(s)},a.forEach(function(n){var e=n.ads;n.startTimeInSeconds+=o,n.availProgramDateTime=null,e&&e.forEach(u)})),l.updateAdTrackingInfo(r,n))}),Yn({attachMediaTailorSession:function(n,e){var o,s,u,t,i,r,a;e=e||Se.mediatailor,!c.shallBlock("attachMediaTailorSession",null,n)&&e&&n!=l&&(v(),t=function(){var n=c.getData(or);Ue(n)&&_(o,Xu,n)},i=e.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(n){return function(){_(o,n)}})(ju),r[i.LOADED]=a("loaded"),r[i.START]=a("start"),r[i.FIRST_QUARTILE]=a(Bu),r[i.MID_POINT]=a(Hu),r[i.THIRD_QUARTILE]=a(Gu),r[i.COMPLETE]=a(qu),r[i.PAUSE]=a("pause"),r[i.RESUME]=a("resume"),r[i.FULLSCREEN]=a(Ju),r[i.EXIT_FULLSCREEN]=a($u),r[i.MUTE]=function(){_(o,Xu,0)},r[i.UNMUTE]=t,r[i.CLICK_THROUGH]=function(){c.fire(tt),_(o,Ku)},r[i.SKIP]=function(){c.fire(ot),_(o,"skip")},l=n)&&(a=e.PlaybackEvent,f={},[[a.START,Ct,1],[a.END,Wt,I],[a.PAUSE,bt,I],[a.RESUME,Lt,I],[a.MUTE,Tt,I],[a.UNMUTE,Bt,I],[a.FULLSCREEN,gt,I],[a.EXIT_FULLSCREEN,ht,I]].forEach(function(r){f[r[1].nm]=function(n,e,t,i){r[2]&i&&l.onPlaybackEvent(r[0])}}),f[Ht.nm]=t,f[ct.nm]=function(){_(o,zu)},f[lt.nm]=function(){_(o,Yu)},d={onNewAd:function(n){var e,t;c.addCtTimeSpans([(e=(n=n).startDate,t=n.trackingEvents,e=e&&m?e-m+p:n.start,{type:is,start:e,end:e+n.duration,_a:n,_d:[[yo,n.vastAdId],[bo,n.adSystem],[go,n.creativeId],[Do,n.skipOffset],[Oo,n.availStart],[ho,n.videoClickThrough],[fo,t&&t.map(function(n){return n.eventType}).join(",")]]})])},onAdLoad:function(n){var e,i,t,r,a=n.adVerifications;s={},u={},1===(o=n).playCount&&(e={},i=[],t=c.getData(or),r=n.skipOffset,Ue(t)&&(e["v"]=t),e["d"]=n.duration,e["ap"]=!!c.getData(Zr),e["po"]=0===n.availStart?0:1,e["sk"]=0<=r,e["so"]=e["sk"]?r:null,e["vf"]=i,a&&a.forEach(function(n){var e=b(n.javaScriptResource,[0,"uri"]),t=n.vendor;e&&t&&i.push({url:e,vd:t,p:n.verificationParameters||""})}),_(n,"init",e))},onAdEnd:function(n){_(n,Qu),o=s=u=null},onAdTrackingEvent:function(n,e){e=r[e];e&&e()},onAdBeaconResponse:function(n,e,t,i){e=e&&e.eventType;n==o&&e&&(i<200||299<i?u&&(u[e]=1,c.setAdData([[po,te.keys(u).join(",")]])):s&&(s[e]=1,c.setAdData([[mo,te.keys(s).join(",")]]))),c.fire(Ze,[[co,e],[lo,t],[uo,i]],2)},onNonLinearAdsStart:function(n,e,t){},onNonLinearAdsEnd:function(n){}},l.addAdObserver(d))},detachMediaTailorSession:v},[n])}),il("yospace","2.0.0"),ec.push(function(s,u,n,e,t,i,r){var f,c,l,a,d,p,m,_,v,h=["YMID","YSEQ","YTYP","YDUR"];function g(){f&&c&&f.removeAnalyticObserver(c),f=c=null,l=a=d=m=null}function o(n){for(var e;(e=l[0])&&e.t<=n;)l.shift(),f.onTimedMetadata(v.createFromMetadata(e.YMID,e.YSEQ,e.YTYP,e.YDUR,1e3*e.t))}function E(n,e,t){(a=a&&a.t===n?a:{t:n})[e]=t||"",te.keys(a).length===h.length+1&&(l.push(a),(a=null)!=m)&&o(m)}e.push(g),t.push(function(n,e,t,i){var r=d&&d[t.nm];return r&&r(n,e,t,i)}),i.push(function(n){f&&!u.isIdle()&&(m=n[1],p===_.VOD||p===_.DVRLIVE?f.onPlayheadUpdate(ie.round(1e3*m)):o(m))});var y=A.fromCharCode;function S(n,e,t){for(var i,r=[];e<t;)31<(i=n[e++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(n,e,t,i,r){var a;if(f&&r&&p===_.LIVE)if("ID3"===n||"org.id3"===n)h.includes(i)&&(r instanceof C&&(r=new T(r))||r instanceof T?3===r[0]&&(a=S(r,1,r.length)):a=r,Le(a))&&E(e,i,a);else if("urn:yospace:a:id3:2016"===n){if(r instanceof T)for(var o,s=S(r,0,r.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),h.includes(o[0])&&E(e,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===n&&r instanceof T){var c=r.length;if(9<c&&73===r[0]&&68===r[1]&&51===r[2]&&(r[3]<<8|r[4])<=1024&&!(192&r[5])){u=6;for(var l=0,d=10;u<d;)l=l<<7|127&r[u++];for(c=ie.min(c,l+10);u+9<c;){for(i="",d=u+4;u<d;)i+=y(r[u++]);for(l=0,d=u+4;u<d;)l=l<<7|127&r[u++];d=(u+=2)+l,h.includes(i)&&d<=c&&E(e,i,S(r,u,d)),u=d}}}}),Yn({attachYospaceSession:function(n){var e,a,o,t,i,r=ne.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,n)&&r&&n!=f&&(g(),f=n)&&(e=r.PlayerEvent,n=r.BreakType,_=r.PlaybackMode,v=r.TimedMetadata,p=f.getPlaybackMode(),l=[],d={},[[e.START,Ct,1],[e.STOP,Wt,I],[e.PAUSE,bt,I],[e.RESUME,Lt,I],[e.STALL,Ft,I],[e.CONTINUE,Vt,I]].forEach(function(r){d[r[1].nm]=function(n,e,t,i){r[2]&i&&f.onPlayerEvent(r[0],0)}}),d[xt.nm]=function(){f.onPlayerEvent(e.SEEK,1e3*(m||0))},d[Tt.nm]=function(){f.onVolumeChange(!0)},d[Bt.nm]=function(){f.onVolumeChange(!1)},a=function(n,e){n=n.getProperty(e);return n&&n.getValue()},o=function(n,e,t,i){n&&(e.push(n.getIdentifier()),t.push(n.getAdSystem()),i.push(n.getCreativeIdentifier()),o(n.getLineage(),e,t,i))},t=function(n){var e=n.getSkipOffset(),t=[],i=[],r=[],e=(o(n.getLineage(),t,i,r),[[yo,n.getIdentifier()],[bo,a(n,"AdSystem")],[Co,a(n,"Advertiser")],[Do,0<e?e/1e3:e],[No,t],[ko,i],[Ro,r]]),t=n.getLinearCreative(),i=(t&&e.push([go,t.getCreativeIdentifier()],[ho,t.getClickThroughUrl()]),n.getStart()/1e3);return{type:is,start:i,end:i+n.getDuration()/1e3,_d:e,_a:n}},c={onAdvertBreakStart:function(n){},onAdvertBreakEnd:function(){},onAdvertStart:function(n){u.addCtTimeSpans([t(n)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(n){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(n){}},f.addAnalyticObserver(c),p===_.VOD)&&(i=[],(r=f.getAdBreaksByType(n.LINEAR))&&r.forEach(function(n){n=n.adverts;n&&n.forEach(function(n){i.push(t(n))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:g},[s])}),il("open_measurement","2.0.0"),ec.push(function(n,h,e,t,i,r,a,o){var s,g,u,c;function l(){c&&c(Qu),g=u=c=null,s=!1}t.push(l),o.push(function(n,e){s&&("init"===n?(c&&c(Qu),c=!1===ee.om?null:u(e)):c&&(c(n,e),n===Qu)&&(c=null))}),Yn({startOmidSessionClient:function(n){var f,p,m,_,v=E.OmidSessionClient,e=we.omidPartnerName,t=we.omidPartnerVersion;h.shallBlock("startOmidSessionClient",null,n=n||{})||(f=n.omidServiceWindow||ne.self,p=n.videoElement,m=n.contentURL||D.href,_=n.accessModeHandler,v&&e&&t&&p?(l(),g=new v.Partner(e,t),u=function(i){var t=[];function n(n){var e=n?at:rt,t=[[So,ce(i)]];n&&t.push([Fr,n]),h.fire(e,t,2)}function r(n,e){t.push(null==e?n:n+"("+e+")"),h.setAdData([[Io,t.join(",")]])}h.setAdData([[Io,null]]);var a,o,s,u,c,l,e=i["vf"],e=e&&e.map(function(n){var e=n["url"],t=n["vd"],n=n["p"]||"";return new v.VerificationScriptResource(e,t,n,_&&_(e,t,n)||"full")});return e&&e.length?((e=new v.Context(g,e,m)).setServiceWindow(f),"VIDEO"===p.tagName?e.setVideoElement(p):e.setVideoElement(p.getElementsByTagName("video")[0]||p),a=new v.AdSession(e),o=!1,s=[],a.setCreativeType("video"),a.setImpressionType("beginToRender"),a.isSupported()?(l={loaded:function(){u.loaded(new v.VastProperties(i["sk"],i["so"],i["ap"],i["po"]))},start:function(){c.start(i["d"],i["v"]/100)},impression:function(){u.impressionOccurred()},firstQuartile:function(){c.firstQuartile()},midPoint:function(){c.midpoint()},thirdQuartile:function(){c.thirdQuartile()},complete:function(){c.complete()},pause:function(){c.pause()},resume:function(){c.resume()},bufferStart:function(){c.bufferStart()},bufferFinish:function(){c.bufferFinish()},skip:function(){c.skipped()},clickThrough:function(){c.adUserInteraction("click")},volumeChange:function(n){i["v"]=n,c.volumeChange(n/100)},fullscreen:function(){c.playerStateChange("fullscreen")},exitFullscreen:function(){c.playerStateChange("normal")},finish:function(){a.finish()}},a.registerSessionObserver(function(n){switch(n.type){case"sessionStart":var e;for(r(n.type),u=new v.AdEvents(a),c=new v.MediaEvents(a),o=!0;e=s.shift();)d(e[0],e[1]);break;case"sessionError":r(n.type),ae("OMID ad session error")}}),n(),a.start(),d):(ae("OMID ad session unsupported"),n("Unsupported"),null)):(n("Resources not found"),null);function d(n,e){var t;o?(t=l[n])?(r(n,e),t(e)):ae("Unknown amEvent: "+n):s.push([n,e])}},s=!0):Te("Missing OM SDK library or parameters"))},stopOmidSessionClient:l},[n])}),Se.omidPartnerName=we.omidPartnerName,Se.omidPartnerVersion=we.omidPartnerVersion,"unsupportedDataList"),Wc="maxCtPlayheadInterval",jc="maxAdPlayheadInterval",Bc={};function Hc(n,e){var t=null==n?Uu:Le(n)&&Bc[n];return t&&t[5]===e?t:(ae("Invalid adapter for id: "+n),null)}function Gc(n,e,t,i,r,a){i=[n,xu,i,r,a,t];Uu=Uu||i,Bc[n]=i,tl("adt_"+n,e)}function qc(){if(!Fu){var n=eu[3];if(re(n))try{n()}catch(n){oe(n,"onPageUnload")}te.keys(_e).forEach(function(n){_e[n].publicContext.destroy()}),iu(!0),Fu=!0}}xu="Shaka Player",Gc("shaka","2.26.0",1,function(n,l,e){function t(n){L(function(){l.unstash(["ended","pause"])},n)}var d,i,f,r,a=e.shakaRoot||ne.shaka,o=e.controls;if(n&&(n.player?(d=n.player,o=n.controls||o):d=n),!d||!a)return"Invalid player or missing shaka root";l.setData([[ua,b(a,["Player","version"])]]);var s,n=b(ne.cast,["framework","CastContext"]),a=n&&n.getInstance();function u(n,e,t){l.addListener(n,e,t)}function c(n,e){u(d,n,e)}function p(n,e){u(f,n,e)}function m(){var n=b(ne.cast,["framework","CastContext"]),n=n&&n.getInstance();return n&&n.getCurrentSession()}function _(n){var e=m();return e&&e.sendMessage(Q,n)}function v(){d.getVariantTracks().some(function(n){var e;if(n.active)return e=n.audioBandwidth/1e3,l.setData([[Qt,n.language],[Di,e],[Ma,n.frameRate]]),!0})}function h(){var e;if("m"===r)(t=d.getTextTracks()).some(function(n){if(n.active)return e=n,!0});else if("t"===r&&f)for(var n,t=f.textTracks,i=0;i<t.length;i++)if("showing"===(n=t[i]).mode){e=n;break}t&&l.setData([[pa,!!e],[Zt,e?e.label||e.language:null]])}function g(){var n,e,t,i,r,a,o,s,u,c;l.isIdle()||(n=b(f,["duration"]),n=1==d.isLive()||n==ie.pow(2,32)?null:n,e=re(d.getStats)?d.getStats():null,s=d.getConfiguration(),c=d.seekRange(),t=b(f,["muted"]),i=b(e,["streamBandwidth"])/1e3,r=b(e,["height"],null),a=b(f,["currentTime"]),re(d.getBufferFullness)?u=d.getBufferFullness():f&&1==f.buffered.length&&(o=ie.max(f.buffered.end(0)-a,0),s=ie.min(s.streaming.bufferingGoal,c.end-a),u=100*ie.min(o/s,1)),v(),h(),(c=O(d,"getPresentationStartTimeAsDate"))&&null!=a&&l.setData([[Mi,a+c.getTime()/1e3]]),l.setData([[fe,a],[Ca,n],[fa,d.isLive()?"Live":"VOD"],[oa,t],[or,t?0:100*b(f,["volume"],0)],[wa,b(f,["title"],"")],[Pa,d.getAssetUri()],[aa,b(f,["loop"])],[Ti,d.getPlaybackRate()],[Jt,b(f,["buffered"])],[ki,i],[Pi,b(e,["width"],null)],[Ri,r],[Ni,r?r+"p":null],[Zr,b(f,["autoplay"])],[Xt,isNaN(u)?null:u],[la,b(f,["readyState"])]]))}function E(){l.isIdle()&&(l.reset(),l.setState(1),l.setState(2))}function y(){g(),l.isAdIdle()&&l.setState(17),l.setState(3)}function S(){g(),l.setState(6)}function I(){l.setState(5)}function A(){g(),l.setState(4)}function T(){var n=e.mediaElement||d.getMediaElement();return n!=f&&(f&&(l.removeListeners(f),f.textTracks)&&l.removeListeners(f.textTracks),(f=n)&&((n=f.textTracks).length?(r="t",u(n,"change",h),u(n,"addtrack",h),u(n,"removetrack",h)):r="m",p("play",E),p("playing",y),p("ended",function(){l.stash("ended",S),t(0)}),p("seeking",I),p("pause",function(){l.stash("pause",A),t(0)})),1)}_s&&(s={},d.configure({cmcd:{enabled:!0,sessionId:l.reqCtSID(),useHeaders:!1}}),d.getNetworkingEngine().registerRequestFilter(function(n,e){var t,i,r,a=b(e.uris,[0]);a&&(i=Qn(a,"CMCD"),r={},i&&i.split(",").forEach(function(n){var n=n.split("="),e=n[0],t=pe[e];t&&(r[e]=t[1][1](n[1]))}),i=r,i=l.reqTracer(a,i),s[a.split("?")[0]]=i,vs?(t=i.headers(),te.keys(t).forEach(function(n){e.headers[n]=t[n]}),e.uris[0]=i.urlBase):e.uris[0]=i.url())}),d.getNetworkingEngine().registerResponseFilter(function(n,e){var t=b(e,["uri"],"").split("?")[0],i=s[t];i&&(i.status(e.status),i.end(),delete s[t])}),c("downloadheadersreceived",function(n){n=s[b(n.request,["uris",0],"").split("?")[0]];n&&n.resp()}),c("downloadfailed",function(n){var e=b(n.request,["uris",0],"").split("?")[0],t=s[e];t&&(n.aborted||(t.status(n.httpResponseCode),t.end()),delete s[e])})),u(O(d,"getAdManager"),"ima-ad-manager-loaded",function(n){n=n.imaAdManager;l.attachImaAdsManager(n)}),c("onstatechange",function(){T()&&(Oe("Shaka media element updated (onstatechange)",f),f)&&l.setData([[ta,f.defaultMuted],[ia,f.defaultPlaybackRate]])}),c("buffering",function(n){l.isIdle()||l.isInAds()||(g(),l.setState(n.buffering?2:3))}),c("error",function(n){var e,t=[];n&&(t.push([Fr,b(n,["detail","data",1,"message"],"")]),t.push([xr,b(n,["detail","code"])]),e=b(n,["detail","severity"])),e&&1===e||(g(),l.setState(8,t))}),c("textchanged",h),c("variantchanged",v),c("unloading",function(){g(),l.setState(7)}),u(o,"caststatuschanged",function(n){n=void 0!==b(n,["newStatus"])?b(n,["newStatus"]):b(n,["og"]);l.setData([[na,n]])}),l.addListener(a,b(ne.cast,["framework","CastContextEventType","CAST_STATE_CHANGED"]),function(n){var t,n="CONNECTED"==n.castState;n&&(t=m(),l.addListener(t,"mediasession",function(n){var e=b(n,["mediaSession"]);l.removeListeners(i,"-"),i=e,l.addListener(e,"-",function(){switch(e.playerState){case"PLAYING":l.setState(3);break;case"PAUSED":l.setState(4);break;case"BUFFERING":l.isIdle()&&(l.setState(1),l.initCastTransfer(_)),l.setState(2);break;case"IDLE":"FINISHED"==b(e,["idleReason"])&&l.setState(6)}},"addUpdateListener","removeUpdateListener"),l.removeListeners(null,Q),l.addListener(t,Q,function(n,e){l.handleCastMessage(le(e),_)},"addMessageListener","removeMessageListener"),l.initCastTransfer(_)})),l.setData([[na,n]])}),c("metadata",function(n){var e=n.payload;e&&l.updateTimedMetadata(n.metadataType,n.startTime,n.endTime,e.key,e.data)}),c("emsg",function(n){n=n.detail;n&&l.updateTimedMetadata(n.schemeIdUri,n.startTime,n.endTime,null,n.messageData)}),l.onCtSessionStart(function(){l.setData([[ta,b(f,["defaultMuted"])],[ia,b(f,["defaultPlaybackRate"])],[Ci,f||null]]),g()}),l.onTimer(function(){T()&&Oe("Shaka media element updated (onTimer)",f),l.isInAds()||g();var n=null!=Ee.fullscreenElement;f&&re(f.getBoundingClientRect)&&l.setData([[Ci,f]]),l.setData([[ra,n],[Na,b(f,["clientHeight"])],[ka,b(f,["clientWidth"])]])}),e.mediaElement&&T()}),xu="DOM",Gc("dom","2.0.0",Ou,function(l,o){var s=o.publicContext;if(!l)return"Invalid DOM element";function e(n){var a,c;n&&(o.removeListeners(),a=n.events,c=n.metadata,a)&&te.keys(a).forEach(function(e){var n=a[e],t=n.query_selector,i=n.interaction_type;if(t&&i)try{var r=l.querySelectorAll(t);r&&r.forEach(function(n){o.addListener(n,i,function(){var u;c&&(u=s.getMetadata()||{},te.keys(c).forEach(function(n){var e=c[n],t=e.query_selector,i=e.attribute_name;if(t&&i)try{var r=l.querySelectorAll(t);if(r){for(var a=[],o=0;o<r.length;o++){var s=r[o][i];null!=s&&a.push(s)}u[n]=a}}catch(n){oe(n,"querySelectorAll for: "+t)}}),s.setMetadata(u)),s.generateEvent(e)})})}catch(n){oe(n,"querySelectorAll for: "+t)}})}e(ee.od),o.onConfig(function(n){e(n.od)})});var zc=!0;function Yc(t){if(!Vu){if(!(ee.ci||Qn(X,$)||t&&t[$]))return!1;t&&(X=Re(X,function(e){te.keys(t).forEach(function(n){e.set(n,t[n])})}),cn()),zc&&(zc=!1,hu(_t,se()));var n=Qn(X,"env");ee.cf="staging"===n||"dev"===n||"sandbox"===n?n:"",ee.ci=Qn(X,$)||ee.ci,ee.om=null,pu([[mr,ee.ci]]),cu(),Vu=!0}return!0}function Kc(n){n()}function Xc(n,e,t){de(t)||(null!=t&&ae("Invalid contextOptions",t),t={});var i,r,a,o,s,u,c,l,d,f,p,m,_,v,h=t[Iu]||Cu[1];switch(h){case Cu[1]:return Zu(n,e,t);case Cu[Ou]:return o=n,s=e,p=wu((u=t)[Su],u[Au]),m=Hc(u[Eu],Ou),_=de(_=u[yu])?De(_):{},m&&(l=m[2],d=m[3],te.assign(_,m[4]||{})),te.assign(p,{type:Ou,fire:function(n,e){p.fireEvent(n,se(),e)},onTimer:function(n){f=n}}),s?d?new ge(function(e,t){try{d(s,p,_).then(function(n){c=g(n),e(c)},function(n){Te(n),t(n)})}catch(n){t(oe(n,m[0]+" createTargetObject"))}}):ge.reject("Not implemented"):c=g(o);case Cu[bu]:if(!e)return r=(o=wu(null,t[Au])).publicContext,null!=(a=t[Tu])&&r.setMetadata(a),o.fireEvent(mt,se()),r;i="Invalid context type: "+h;break;default:i="Unknown context type: "+h}function g(n){var e,t=p.publicContext,i=null;p.target=n,te.assign(t,p.basePublicMethods,{getError:function(){return i},getTarget:function(){return n},adapterID:function(){return m?m[0]:null}});try{i=m?l?l(n,p,_):null:"Missing adapter"}catch(n){i=oe(n,m[0]+" initContext")}return i?(Te(i),t.destroy()):(null!=(e=u[Tu])&&t.setMetadata(e),p.fire(mt),p.setTimer(function(){if(f)try{f()}catch(n){oe(n,"onTimer")}})),t}return Te(i),e?ge.reject(i):(v=i,{getError:function(){return v}})}O(ne,"addEventListener",["pagehide",qc]),"Safari"==Vs&&O(ne,"addEventListener",["beforeunload",function(n){L(function(){n.defaultPrevented||n.returnValue||qc()},0)}]),be("Datazoom SDK "+ee.sv+" ("+ee.cn+") DDv3",el),w(function(){Mu.length?Mu.forEach(Kc):se()},ee.ti),te.assign(Se,{init:Yc,setLogLevel:un,createContext:function(n,e){return Xc(n,null,e)},createBaseContext:function(n){return(n=de(n)?De(n):{})[Iu]=Cu[bu],Xc(null,null,n)},createContextAndTarget:function(n){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);return Xc(null,e,n)},createCollectorProxy:function(n,e,t){return(n=n||Cu[1])===Cu[1]?nc(e,t):(Te("Unsupported context type: "+n),null)},adapterIDs:function(){return te.keys(Bc)},contexts:function(){return te.keys(_e).map(function(n){return _e[n].publicContext})},playerContexts:function(){return te.keys(_e).filter(function(n){return 1==_e[n].type}).map(function(n){return _e[n].publicContext})},setMetadata:function(n){return!(null!=n&&!de(n)||(gu(Cs=le(ce(n)),pu),m(p,mn,Cs),0))},getMetadata:function(){return le(ce(Cs))},getAppSessionData:function(n){var e=null;return e=Bo&&Bo[n]&&(n=Qo[n])?mu(n):e},generateEvent:function(n,e,t){t=!t&&te.keys(_e)[0];t?_e[t].publicContext.generateEvent(n,e):hu({ap:Qe,nm:G+n,on:Go},se(),null,e)},on:function(n,e){eu[n]=e},appSessionID:function(){return Ds},generateUUID:function(){return ue()},sdkEvent:{CONFIG_READY:Zs,APP_SESSION_START:nu,CONTENT_SESSION_START:2,PAGE_UNLOAD:3,AD_START:4,AD_END:5},timeSpanType:{AD:is,PROMO:"promo"},overridableMetadata:Ko,name:ee.cn,version:ee.sv,dictionaryVersion:3}),Jc||L(Yc,ee.kd)}("object"==typeof globalThis?globalThis:window,{},(s={},il("omid_session_client","1.5.5"),function(){function n(e,i){var u=u||{},t=(u.scope={},u.createTemplateTagFirstArg=function(n){return n.raw=n},u.createTemplateTagFirstArgWithRaw=function(n,e){return n.raw=e,n},u.arrayIteratorImpl=function(n){var e=0;return function(){return e<n.length?{done:!1,value:n[e++]}:{done:!0}}},u.arrayIterator=function(n){return{next:u.arrayIteratorImpl(n)}},u.makeIterator=function(n){var e="undefined"!=typeof Symbol&&Symbol.iterator&&n[Symbol.iterator];if(e)return e.call(n);if("number"==typeof n.length)return u.arrayIterator(n);throw Error(String(n)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(n){for(var e,t=[];!(e=n.next()).done;)t.push(e.value);return t},u.arrayFromIterable=function(n){return n instanceof Array?n:u.arrayFromIterator(u.makeIterator(n))},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.objectCreate=u.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(n){function e(){}return e.prototype=n,new e},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(n,e,t){return n!=Array.prototype&&n!=Object.prototype&&(n[e]=t.value),n},u.getGlobal=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof on&&on];for(var e=0;e<n.length;++e){var t=n[e];if(t&&t.Math==Math)return t}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$",u.polyfill=function(n,e,t,i){e&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(n,e,t,i):u.polyfillUnisolated(n,e,t,i))},u.polyfillUnisolated=function(n,e,t,i){for(t=u.global,n=n.split("."),i=0;i<n.length-1;i++){var r=n[i];if(!(r in t))return;t=t[r]}(e=e(i=t[n=n[n.length-1]]))!=i&&null!=e&&u.defineProperty(t,n,{configurable:!0,writable:!0,value:e})},u.polyfillIsolated=function(n,e,t,i){var r=n.split(".");n=1===r.length,i=r[0],i=!n&&i in u.polyfills?u.polyfills:u.global;for(var a=0;a<r.length-1;a++){var o=r[a];if(!(o in i))return;i=i[o]}r=r[r.length-1],null!=(e=e(t=u.IS_SYMBOL_NATIVE&&"es6"===t?i[r]:null))&&(n?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:e}):e!==t&&(void 0===u.propertyToPolyfillSymbol[r]&&(t=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+t+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:e})))},u.getConstructImplementation=function(){var i;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(n,[],function(){}),new n instanceof n?Reflect.construct:(i=Reflect.construct,function(n,e,t){return n=i(n,e),t&&Reflect.setPrototypeOf(n,t.prototype),n})):function(n,e,t){return t=u.objectCreate((t=void 0===t?n:t).prototype||Object.prototype),Function.prototype.apply.call(n,t,e)||t};function n(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var n={};try{return n.__proto__={a:!0},n.a}catch(n){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(n,e){if(n.__proto__=e,n.__proto__!==e)throw new TypeError(n+" is not extensible");return n}:null,u.inherits=function(n,e){if(n.prototype=u.objectCreate(e.prototype),n.prototype.constructor=n,u.setPrototypeOf){var t=u.setPrototypeOf;t(n,e)}else for(t in e){var i;"prototype"!=t&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(e,t))&&Object.defineProperty(n,t,i):n[t]=e[t])}n.superClass_=e.prototype},u.getRestArguments=function(){for(var n=Number(this),e=[],t=n;t<arguments.length;t++)e[t-n]=arguments[t];return e},u.polyfill("Reflect",function(n){return n||{}},"es6","es3"),u.polyfill("Reflect.construct",function(n){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(n){var t;return n||(u.setPrototypeOf?(t=u.setPrototypeOf,function(n,e){try{return t(n,e),!0}catch(n){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(n){var e,t,i,r;return n||((e=function(n,e){this.$jscomp$symbol$id_=n,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(n){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new e(t+(n||"")+"_"+i++,n)})},"es6","es3"),u.polyfill("Symbol.iterator",function(n){if(!n){n=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<e.length;t++){var i=u.global[e[t]];"function"==typeof i&&"function"!=typeof i.prototype[n]&&u.defineProperty(i.prototype,n,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return n},"es6","es3"),u.iteratorPrototype=function(n){return(n={next:n})[Symbol.iterator]=function(){return this},n},u.iteratorFromArray=function(e,t){e instanceof String&&(e+="");var i=0,r=!1,n={next:function(){var n;return!r&&i<e.length?(n=i++,{value:t(n,e[n]),done:!1}):{done:r=!0,value:void 0}}};return n[Symbol.iterator]=function(){return n},n},u.polyfill("Array.prototype.keys",function(n){return n||function(){return u.iteratorFromArray(this,function(n){return n})}},"es6","es3"),u.owns=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},u.polyfill("Object.values",function(n){return n||function(n){var e,t=[];for(e in n)u.owns(n,e)&&t.push(n[e]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(n,e,t){return n==i&&"q"==e&&t==r}}));return!0===r.q}catch(n){return!1}},u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,u.ES6_CONFORMANCE=u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&u.checkEs6ConformanceViaProxy(),u.polyfill("WeakMap",function(i){function t(){}function r(n){var e=typeof n;return"object"==e&&null!==n||"function"==e}function a(n){var e;u.owns(n,o)||(e=new t,u.defineProperty(n,o,{value:e}))}function n(n){var e;u.ISOLATE_POLYFILLS||(e=Object[n])&&(Object[n]=function(n){return n instanceof t?n:(Object.isExtensible(n)&&a(n),e(n))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if(function(){if(i&&Object.seal)try{var n=Object.seal({}),e=Object.seal({}),t=new i([[n,2],[e,3]]);return 2==t.get(n)&&3==t.get(e)?(t["delete"](n),t.set(e,4),!t.has(n)&&4==t.get(e)):void 0}catch(n){}}())return i;function e(n){if(this.id_=(s+=Math.random()+1).toString(),n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var o="$jscomp_hidden_"+Math.random(),s=(n("freeze"),n("preventExtensions"),n("seal"),0);return e.prototype.set=function(n,e){if(!r(n))throw Error("Invalid WeakMap key");if(a(n),u.owns(n,o))return n[o][this.id_]=e,this;throw Error("WeakMap key fail: "+n)},e.prototype.get=function(n){return r(n)&&u.owns(n,o)?n[o][this.id_]:void 0},e.prototype.has=function(n){return r(n)&&u.owns(n,o)&&u.owns(n[o],this.id_)},e.prototype["delete"]=function(n){return!!(r(n)&&u.owns(n,o)&&u.owns(n[o],this.id_))&&delete n[o][this.id_]},e},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(r){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if(function(){if(!u.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var n,e,t=Object.seal({x:4}),i=new r(u.makeIterator([[t,"s"]]));return"s"!=i.get(t)||1!=i.size||i.get({x:4})||i.set({x:4},"t")!=i||2!=i.size?void 0:(e=(n=i.entries()).next()).done||e.value[0]!=t||"s"!=e.value[1]?void 0:!((e=n.next()).done||4!=e.value[0].x||"t"!=e.value[1]||!n.next().done)}catch(n){}}())return r;function n(n){if(this.data_={},this.head_=t(),this.size=0,n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var a=new WeakMap,i=(n.prototype.set=function(n,e){var t=i(this,n=0===n?0:n);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=e:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:n,value:e},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},n.prototype["delete"]=function(n){return!(!(n=i(this,n)).entry||!n.list||(n.list.splice(n.index,1),n.list.length||delete this.data_[n.id],n.entry.previous.next=n.entry.next,n.entry.next.previous=n.entry.previous,n.entry.head=null,this.size--,0))},n.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},n.prototype.has=function(n){return!!i(this,n).entry},n.prototype.get=function(n){return(n=i(this,n).entry)&&n.value},n.prototype.entries=function(){return e(this,function(n){return[n.key,n.value]})},n.prototype.keys=function(){return e(this,function(n){return n.key})},n.prototype.values=function(){return e(this,function(n){return n.value})},n.prototype.forEach=function(n,e){for(var t,i=this.entries();!(t=i.next()).done;)t=t.value,n.call(e,t[1],t[0],this)},n.prototype[Symbol.iterator]=n.prototype.entries,function(n,e){var t=e&&typeof e,i=("object"==t||"function"==t?a.has(e)?t=a.get(e):(t=""+ ++o,a.set(e,t)):t="p_"+e,n.data_[t]);if(i&&u.owns(n.data_,t))for(n=0;n<i.length;n++){var r=i[n];if(e!=e&&r.key!=r.key||e===r.key)return{id:t,list:i,index:n,entry:r}}return{id:t,list:i,index:-1,entry:void 0}}),e=function(n,e){var t=n.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=n.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:e(t)};t=null}return{done:!0,value:void 0}})},t=function(){var n={};return n.previous=n.next=n.head=n},o=0;return n},"es6","es3"),"omid_message_guid"),r="omid_message_method",a="omid_message_version",o="omid_message_args",s=function(n,e,t,i){this.guid=n,this.method=e,this.version=t,this.args=i},c=(s.isValidSerializedMessage=function(n){return!!n&&void 0!==n[t]&&void 0!==n[r]&&void 0!==n[a]&&"string"==typeof n[t]&&"string"==typeof n[r]&&"string"==typeof n[a]&&(void 0===n[o]||void 0!==n[o])},s.deserialize=function(n){return new s(n[t],n[r],n[a],n[o])},s.prototype.serialize=function(){var n={};return n[t]=this.guid,n[r]=this.method,n[a]=this.version,void 0!==this.args&&(n[o]=this.args),n},{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction",STATE_CHANGE:"stateChange"},MediaEventType:{LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},SupportedFeatures:{CONTAINER:"clid",VIDEO:"vlid"},VideoPosition:{PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},VideoPlayerState:{MINIMIZED:"minimized",COLLAPSED:"collapsed",NORMAL:"normal",EXPANDED:"expanded",FULLSCREEN:"fullscreen"},NativeViewKeys:{X:"x",LEFT:"left",Y:"y",TOP:"top",WIDTH:"width",HEIGHT:"height",AD_SESSION_ID:"adSessionId",IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",CLIPS_TO_BOUNDS:"clipsToBounds",CHILD_VIEWS:"childViews",END_X:"endX",END_Y:"endY",OBSTRUCTIONS:"obstructions",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),l=function(n){this.to=n,this.communicationType_=c.CommunicationType.NONE};function d(n,e){if(!e)throw Error("Value for "+n+" is undefined, null or blank.");if("string"!=typeof e&&!(e instanceof String))throw Error("Value for "+n+" is not a string.");if(""===e.trim())throw Error("Value for "+n+" is empty string.")}function f(n,e){if(null==e)throw Error("Value for "+n+" is undefined or null")}function p(n,e){if(null==e)throw Error(n+" must not be null or undefined.");if("number"!=typeof e||isNaN(e))throw Error("Value for "+n+" is not a number")}function m(n,e,t,i){if(p(n,e),e<t||i<e)throw Error("Value for "+n+" is outside the range ["+t+","+i+"]")}function U(n,e){return n&&(n[e]||(n[e]={}))}function n(n,e,t){(t=void 0===t?void 0===i?null:i:t)&&((n=n.split(".")).slice(0,n.length-1).reduce(U,t)[n[n.length-1]]=e)}function _(n,e,t,i){i=void 0===i?c.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",n),this.resourceUrl=n,this.vendorKey=e,this.verificationParameters=t,this.accessMode=i}function v(n,e){d("UniversalAdId.value",n),d("UniversalAdId.idRegistry",e),this.value=n,this.idRegistry=e}function h(n,e,t,i,r){t=void 0===t?null:t,i=void 0===i?null:i,r=void 0===r?null:r,f("Context.partner",n),this.partner=n,this.verificationScriptResources=e,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null,this.universalAdId=r}l.prototype.sendMessage=function(n,e){},l.prototype.handleMessage=function(n,e){this.onMessage&&this.onMessage(n,e)},l.prototype.serialize=function(n){return JSON.stringify(n)},l.prototype.deserialize=function(n){return JSON.parse(n)},l.prototype.isDirectCommunication=function(){return this.communicationType_===c.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},n("OmidSessionClient.Partner",function(n,e){d("Partner.name",n),d("Partner.version",e),this.name=n,this.version=e}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},n("OmidSessionClient.VerificationScriptResource",_),v.prototype.toSerialisedValue=function(){return this.value+"; "+this.idRegistry},n("OmidSessionClient.UniversalAdId",v),h.prototype.setVideoElement=function(n){f("Context.videoElement",n),this.videoElement=n},h.prototype.setSlotElement=function(n){f("Context.slotElement",n),this.slotElement=n},h.prototype.setServiceWindow=function(n){f("Context.serviceWindow",n),this.serviceWindow=n},n("OmidSessionClient.Context",h);var g={},E=(g.omidGlobal=function(){if(void 0!==e&&e)return e;if(void 0!==on&&on)return on;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var n=Function("return this")();if(n)return n;throw Error("Could not determine global object context.")}(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),y={sessionError:"reportError"},x=Object.keys(c.MediaEventType).map(function(n){return c.MediaEventType[n]}),F=["impressionOccurred"],S=function(n){n=void 0===n?g.omidGlobal:n,this.interfaceRoot_=n[E.ROOT]};function I(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random()|0;return n=("y"===n?3&e|8:e).toString(16)})}function A(){var n=u.getRestArguments.apply(0,arguments);V(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(n))))},function(){console.error.apply(console,u.arrayFromIterable(n))})}function V(n,e){"undefined"!=typeof jasmine&&jasmine?n():"undefined"!=typeof console&&console&&console.error&&e()}S.prototype.isSupported=function(){return null!=this.interfaceRoot_},S.prototype.sendMessage=function(n,e,t){if("registerSessionObserver"==n&&(t=[e]),e=this.interfaceRoot_,0<=F.indexOf(n=y[n]?y[n]:n)&&(e=e[E.AD_EVENTS]),!(e=(e=0<=x.indexOf(n)?e[E.MEDIA_EVENTS]:e)[n]))throw Error("Unrecognized method name: "+n+".");e.apply(null,u.arrayFromIterable(t))};var T="1.5.5-iab77",W=3;function b(n){return/\d+\.\d+\.\d+(-.*)?/.test(n)}function O(n,e){n=n.split("-")[0].split("."),e=e.split("-")[0].split(".");for(var t=0;t<W;t++){var i=parseInt(n[t],10),r=parseInt(e[t],10);if(r<i)break;if(i<r)return!1}return!0}var C="1.0.3";function j(n,e){return b(n)&&O(n,C)?e:JSON.stringify(e)}function B(n,e){return b(n)&&O(n,C)?e||[]:e&&"string"==typeof e?JSON.parse(e):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function G(n){return q(n,H.SESSION_SERVICE)}function q(n,e){return e+n}function M(n){return null!=n&&void 0!==n.top&&null!=n.top}function z(n){var e;if(n!==g.omidGlobal)try{if(void 0===n.location.hostname)return!0;""!==(e=n).x&&e.x}catch(n){return!0}return!1}function Y(n){return M(n=void 0===n&&"undefined"!=typeof window&&window?window:n)?n:g.omidGlobal}function K(n){return M(n)?n.top:g.omidGlobal}var D=function(n){l.call(this,n),this.communicationType_=c.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,l),D.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.handleExportedMessage(n.serialize(),this)},D.prototype.handleExportedMessage=function(n,e){s.isValidSerializedMessage(n)&&this.handleMessage(s.deserialize(n),e)},D.prototype.isCrossOrigin=function(){return!1},function(n,e){e=void 0===e?g.omidGlobal:e,l.call(this,e);var t=this;this.communicationType_=c.CommunicationType.POST_MESSAGE,n.addEventListener("message",function(n){var e;"object"==typeof n.data&&(e=n.data,s.isValidSerializedMessage(e))&&(e=s.deserialize(e),n.source)&&t.handleMessage(e,n.source)})}),N=(u.inherits(R,l),R.isCompatibleContext=function(n){return!!(n&&n.addEventListener&&n.postMessage)},R.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.postMessage(n.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||z(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(n){var e={};return e[c.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,e[c.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,e[n]}});function X(n,e){try{return n.frames&&!!n.frames[e]}catch(n){return!1}}function J(n,e){n.document.write('<iframe style="display:none" id="'+e+'" name="'+e+'" sandbox></iframe>')}N.isOmidPresent=function(e){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return X(e,n)})},N.getOmidEnvironment=function(n){for(var e=u.makeIterator(Object.values(c.Environment)),t=e.next();!t.done;t=e.next()){t=t.value;if(X(n,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(e,n){e.frames&&e.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return!!e.frames[n]})&&(null==e.document.body&&N.isMutationObserverAvailable_(e)?N.registerMutationObserver_(e,n):(n=N.getEnvironmentIframeName(n),e.document.body?(N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n)):(J(e,N.OMID_PRESENT_FRAME_NAME),J(e,n))))},N.appendPresenceIframe_=function(n,e){var t=n.document.createElement("iframe");t.id=e,t.name=e,t.style.display="none",t.sandbox="",n.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(n){return"MutationObserver"in n},N.registerMutationObserver_=function(e,t){var i=new MutationObserver(function(n){n.forEach(function(n){"BODY"===n.addedNodes[0].nodeName&&(n=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n),i.disconnect())})});i.observe(e.document.documentElement,{childList:!0})};var $=["omid","v1_SessionServiceCommunication"];function Q(n,e){return e.reduce(function(n,e){return n&&n[e]},n)}function Z(n,e,t,i){for(var r=(e=u.makeIterator(e)).next();!r.done;r=e.next())if(r=function(n,e,t,i){if(!z(e))try{var r=Q(e,t);if(r)return new D(r)}catch(n){}return i(e)?new R(n,e):null}(n,r.value,t,i))return r;return null}function nn(n,e,t){t=void 0===t?N.isOmidPresent:t;var i=[n,K(n)];return e&&i.unshift(e),Z(n,i,$,t)}function k(n,e,t){f("AdSession.context",n),this.adSessionId_=I(),this.context_=n,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=e||nn(Y(),i),this.sessionInterface_=t||new S,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(n.verificationScriptResources),this.sendSlotElement_(n.slotElement),this.sendVideoElement_(n.videoElement),this.sendContentUrl_(n.contentUrl),this.watchSessionEvents_()}function en(n,e,t,i){this.isSkippable=n,this.skipOffset=e,this.isAutoPlay=t,this.position=i}function P(n){f("AdEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerAdEvents(),this.adSession=n}catch(n){throw Error("AdSession already has an ad events instance registered")}}function w(n){f("MediaEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerMediaEvents(),this.adSession=n}catch(n){throw Error("AdSession already has a media events instance registered")}}function tn(t){var n=Y();new R(n).onMessage=function(n,e){n.method===c.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(e)}}k.prototype.getAdSessionId=function(){return this.adSessionId_},k.prototype.setCreativeType=function(n){if(n===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+c.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",n,this.adSessionId_),this.creativeType_=n},k.prototype.setImpressionType=function(n){if(n===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+c.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",n,this.adSessionId_),this.impressionType_=n},k.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},k.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},k.prototype.registerSessionObserver=function(n){this.sendMessage("registerSessionObserver",n,this.adSessionId_)},k.prototype.start=function(){var n={customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation};this.context_.universalAdId&&(n.universalAdId=this.context_.universalAdId.toSerialisedValue()),this.sendOneWayMessage("startSession",n,this.adSessionId_)},k.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},k.prototype.error=function(n,e){this.sendOneWayMessage("sessionError",n,e,this.adSessionId_)},k.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},k.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},k.prototype.sendOneWayMessage=function(n){var e=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[n,null].concat(u.arrayFromIterable(e)))},k.prototype.sendMessage=function(n,e){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(n,e,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(n,e,t)},k.prototype.sendInternalMessage_=function(n,e,t){var i=I();e&&(this.callbackMap_[i]=e),n=new s(i,G(n),T,j(T,t)),this.communication_.sendMessage(n)},k.prototype.handleInternalMessage_=function(n,e){e=n.method;var t,i=n.guid;n=n.args,"response"===e&&this.callbackMap_[i]&&(t=B(T,n),this.callbackMap_[i].apply(this,t)),"error"===e&&window.console&&A(n)},k.prototype.sendInterfaceMessage_=function(n,e,t){try{this.sessionInterface_.sendMessage(n,e,t)}catch(n){A("Failed to communicate with SessionInterface with error:"),A(n)}},k.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},k.prototype.impressionOccurred=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},k.prototype.creativeLoaded=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},k.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",T,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},k.prototype.injectVerificationScripts_=function(n){n&&(n=n.map(function(n){return n.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",n,this.adSessionId_))},k.prototype.sendSlotElement_=function(n){this.sendElement_(n,"setSlotElement")},k.prototype.sendVideoElement_=function(n){this.sendElement_(n,"setVideoElement")},k.prototype.sendElement_=function(n,e){n&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(e,n,this.adSessionId_):this.error(c.ErrorType.GENERIC,"Session Client "+e+" called when communication is cross-origin"))},k.prototype.sendContentUrl_=function(n){n&&this.sendOneWayMessage("setContentUrl",n,this.adSessionId_)},k.prototype.setElementBounds=function(n){f("AdSession.elementBounds",n),this.sendOneWayMessage("setElementBounds",n,this.adSessionId_)},k.prototype.watchSessionEvents_=function(){var e=this;this.registerSessionObserver(function(n){n.type===c.AdEventType.SESSION_START&&(e.isSessionRunning_=!0,e.creativeType_=n.data.creativeType,e.impressionType_=n.data.impressionType),n.type===c.AdEventType.SESSION_FINISH&&(e.isSessionRunning_=!1)})},n("OmidSessionClient.AdSession",k),en.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},P.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},P.prototype.loaded=function(n){n=void 0===n?null:n,this.adSession.creativeLoaded(),n=n?n.toJSON():null,this.adSession.sendOneWayMessage("loaded",n,this.adSessionId_)},n("OmidSessionClient.AdEvents",P),w.prototype.start=function(n,e){p("MediaEvents.start.duration",n),m("MediaEvents.start.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("start",n,e,this.adSessionId_)},w.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},w.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},w.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},w.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},w.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},w.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},w.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},w.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},w.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},w.prototype.volumeChange=function(n){m("MediaEvents.volumeChange.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("volumeChange",n,this.adSessionId_)},w.prototype.playerStateChange=function(n){f("MediaEvents.playerStateChange.playerState",n),this.adSession.sendOneWayMessage("playerStateChange",n,this.adSessionId_)},w.prototype.adUserInteraction=function(n){f("MediaEvents.adUserInteraction.interactionType",n),this.adSession.sendOneWayMessage("adUserInteraction",n,this.adSessionId_)},n("OmidSessionClient.MediaEvents",w),n("OmidSessionClient.OmidVersion",function(n,e){d("OmidVersion.semanticVersion",n),d("OmidVersion.apiLevel",e)}),n("OmidSessionClient.listenForServiceWindow",tn),n("OmidSessionClient.VastProperties",en);var L={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9,HUMAN:10}};function rn(n){for(var e=u.makeIterator(an.keys()),t=e.next();!t.done;t=e.next())for(var t=t.value,i=u.makeIterator(an.get(t)),r=i.next();!r.done;r=i.next())if(r.value.test(n))return t;return L.VerificationVendorId.OTHER}var an=new Map([[L.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[L.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[L.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[L.VerificationVendorId.NIELSEN,[]],[L.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[L.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[L.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]],[L.VerificationVendorId.HUMAN,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.script\.ac\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\/(2|ag|static)\/[a-zA-Z0-9.]*\/analytics.js.*$/]]]);n("OmidSessionClient.verificationVendorIdForScriptUrl",rn),n("OmidSessionClient.VerificationVendorId",L.VerificationVendorId),L.verificationVendorIdForScriptUrl=rn}var on="object"==typeof globalThis?globalThis:window,e={},t=void 0===on?this:on;if("object"==typeof(r=void 0===e?void 0:e)&&"string"!=typeof r.nodeName)n(t,r);else{var i,r={},a=["1.5.5-iab77"],o="default";for(i in a.push(o),n(t,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(t,i)&&Object.defineProperty(t,i,{value:{}}),a.forEach(function(n){var e;null==Object.getOwnPropertyDescriptor(t[i],n)&&(e=function n(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]=n(e[t]));return Object.freeze(e)}(r[i]),Object.defineProperty(t[i],n,{get:function(){return e},enumerable:!0}))}))}s.OmidSessionClient=e.OmidSessionClient}(),il("aws_mtsdk","1.12.0"),t={},n=self,e=function(){"use strict";var i={d:function(n,e){for(var t in e)i.o(e,t)&&!i.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}},d={},p=(i.d(d,{"default":function(){return kn}}),1),m=2,h=4,g="[MT] ",E=function(n){return n[n["NONE"]=0]="NONE",n[n["ERROR"]=1]="ERROR",n[n["WARNING"]=2]="WARNING",n[n["INFO"]=3]="INFO",n[n["DEBUG"]=4]="DEBUG",n[n["VERBOSE"]=5]="VERBOSE",n}({}),A=m;function B(n,e,t,i){n<=A&&(t=g+t,void 0===i?e.call(console,t):e.call(console,t,i))}var T=console.error,b=console.warn,un=(console.info,console.debug);function u(n,e){B(p,T,n,e)}function H(n,e){B(m,b,n,e)}function G(n,e){B(h,un,n,e)}function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function a(n){var e;return null==(e="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:window)?void 0:e[n]}function _(n){if(n){if(Array.isArray(n))return n.slice();if("object"===t(n))return Object.assign({},n)}return null}function q(n){if(n)try{return JSON.parse(JSON.stringify(n))}catch(n){u("Exception during deep-copy: ".concat(n),n)}return null}function O(n,e){if(null!=n)try{return new $c(n,e).toString()}catch(n){u("URL Exception: ".concat(n),n)}return null}function z(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i)for(var r=0,a=i-1;r<=a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o+1:a=o-1}return-1}function cn(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i){for(var r=0,a=i-1;r<a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o:a=o-1}if(0<r||0<=t(n,e[r]))return r}return-1}for(var o=[],n=0;n<256;n++)o.push((n+256).toString(16).substr(1).toLowerCase());var C=!(null==(e=a("crypto"))||!e.getRandomValues);C||H("crypto.getRandomValues() unavailable");var M=/P.*T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?/;var D="MediaTailor",R="1.0.0",N=[2,9],k="ad_start",P="ad_progress",w="ad_click",L="ad_can_skip",ln="ad_incoming",U="nonlinear_ad_start",x="nonlinear_ad_end",F="ad_tracking_info_response",V=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],s=null;function W(t){var n,i,e,r="nonceReq: ";return s?(n=null==(n=a("goog"))||null==(n=n.pal)?void 0:n.NonceRequest)?((i=new n).omidPartnerName=D,i.omidPartnerVersion=R,i.supportedApiFrameworks=N,V.forEach(function(n){var e=t[n];null!=e&&(i[n]=e)}),i.sessionId||(i.sessionId=function(){var n=new Uint8Array(16);if(C)crypto.getRandomValues(n);else for(var e=0;e<16;e++)n[e]=Math.floor(256*Math.random());return n[6]=15&n[6]|64,n[8]=63&n[8]|128,o[n[0]]+o[n[1]]+o[n[2]]+o[n[3]]+"-"+o[n[4]]+o[n[5]]+"-"+o[n[6]]+o[n[7]]+"-"+o[n[8]]+o[n[9]]+"-"+o[n[10]]+o[n[11]]+o[n[12]]+o[n[13]]+o[n[14]]+o[n[15]]}()),(e=null==(e=(n=s).loadNonceManager)?void 0:e.call(n,i))?G(r+"Request sent",i):u(r+"Request failed",i),e):(u(r+"Missing PAL SDK classes"),null):(u(r+"PAL isn't initialized"),null)}function dn(n){try{return JSON.parse(n)}catch(n){return H("JSON Parse Exception: ".concat(n),n),null}}function j(r,a,o,s,i){var u=new XMLHttpRequest,c=null==s?void 0:s.retryHeuristics,l=0,d=!1;function f(){if(!d)try{e=u,n=r,i=null==(t=s)?void 0:t.headers,e.open(n,a,!0),e.timeout=null!=(n=null==t?void 0:t.timeout)?n:0,i&&Object.keys(i).forEach(function(n){e.setRequestHeader(n,i[n])}),l++,u.send(o),G("XHR (".concat(r," ").concat(a,", #").concat(l,") request sent"),o)}catch(n){H("XHR Exception: ".concat(n),n)}var e,n,t,i}return u.onreadystatechange=function(){if(!d&&4===u.readyState){var n=u.status,e=u.responseText;if(G("XHR (".concat(a,") response received, status ").concat(n),e),n<200||299<n){var t=c?c(l,n,e):-1;if(0<=t)return setTimeout(f,t),void H("XHR (".concat(a,") failed (status ").concat(n,"), retry in ").concat(t," ms"),e)}i&&i(e,n,a)}},f(),{abort:function(){d=!0,u.abort(),G("XHR (".concat(a,") aborted"))}}}function fn(n,e,t){return j("GET",n,null,e,t)}function pn(n,e,t,i){try{(t=_(t)||{}).headers=(o={"Content-Type":"application/json; charset=utf-8"},s=t.headers,o&&s?Object.assign(o,s):o),r=n,a=JSON.stringify(e),j("POST",r,a,t,function(n,e,t){200===e&&null!=n&&(n=dn(n)),i&&i(n,e,t)})}catch(n){H("JSON Encode Exception: ".concat(n),n)}var r,a,o,s}function mn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function Y(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var i,r,a,o,s=[],u=!0,c=!1;try{if(a=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(i=a.call(t)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(n){c=!0,r=n}finally{try{if(!u&&null!=t["return"]&&(o=t["return"](),Object(o)!==o))return}finally{if(c)throw r}}return s}}(n,e)||function(n,e){var t;if(n)return"string"==typeof n?mn(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mn(n,e):void 0}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var e="impression",K="firstQuartile",X="midpoint",J="thirdQuartile",$="complete",r="creativeView",f=[],_n=(f[0]=[e],f[1]=["clickTracking"],f[2]=["loaded"],f[3]=["start",r],f[4]=[K],f[5]=[X],f[6]=[J],f[7]=[$],f[8]=["skip"],f[9]=["pause"],f[10]=["resume"],f[11]=["mute"],f[12]=["unmute"],f[13]=["fullscreen","playerExpand"],f[14]=["exitFullscreen","playerCollapse"],{});function vn(s,u,c){var l={},d=null;return{onAdLoad:function(n){d={},null!=(n=n.trackingEvents)&&n.forEach(function(n){d[n.eventType]=n})},onAdEnd:function(n){d=null},onAdTrackingEvent:function(n,e){var t=f[e];if(d&&1===n.playCount&&t)for(var i=t.length,r=0;r<i;r++){var a,o=t[r];s&&null!=(a=_n[o])&&a.noninteractive||!function(i,r){var n=null==r?void 0:r.beaconUrls;if(n)for(var e=n.length,t=0;t<e;t++){var a=null==(a=n[t])?void 0:a.trim();a&&(u?fetch(a,{mode:"no-cors"}):fn(a,l,function(n,e,t){c(i,r,t,e)}))}}(n,d[o])}}}}function hn(n,e){var t,i,r,a,o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(o)return i=!(t=!0),{s:function(){o=o.call(n)},n:function(){var n=o.next();return t=n.done,n},e:function(n){i=!0,r=n},f:function(){try{t||null==o["return"]||o["return"]()}finally{if(i)throw r}}};if(Array.isArray(n)||(o=function(n,e){var t;if(n)return"string"==typeof n?gn(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?gn(n,e):void 0}(n))||e&&n&&"number"==typeof n.length)return o&&(n=o),a=0,{s:e=function(){},n:function(){return a>=n.length?{done:!0}:{done:!1,value:n[a++]}},e:function(n){throw n},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}[e,"loaded","start",r,K,X,J,$].forEach(function(n){_n[n]={noninteractive:!0}});var Q="adData: ";function y(n){return n&&"object"===t(n)&&n}function Z(n,e){if(!y(n))return null;for(var t=Y(e,2)[1],i={},r=t.length,a=0;a<r;a++){var o=Y(t[a],3),s=o[0],u=o[1],o=o[2],o=o[0](n[s],o);if(null!=o)i[s]=o;else if(!u)return G(Q+"Missing object field: ".concat(s),n),null}return i}function S(n){return n&&Array.isArray(n)?n:null}function I(n,e){if(!S(n))return null;for(var e=Y(e,3),t=e[1],i=e[2],r=[],a=n.length,o=0;o<a;o++){var s=i[0](n[o],i);null!=s||t?r.push(s):G(Q+"Invalid array entry at: ".concat(o),n)}return r}function nn(n){return"number"==typeof n?n:null}function en(n){return"string"==typeof n?n:null}var e=[nn],r=[en],c=[function(n){return"boolean"==typeof n?n:null}],En=[Z,[["content",!1,r],["type",!1,r]]],yn=[Z,[["beaconUrls",!1,[I,!1,r]],["durationInSeconds",!0,e],["eventId",!0,r],["eventProgramDateTime",!0,r],["eventType",!1,r],["startTimeInSeconds",!0,e]]],Sn=[I,!1,[Z,[["beaconUrls",!1,[I,!1,r]],["eventType",!1,r]]]],In=[Z,[["adId",!0,r],["adParameters",!0,r],["adSystem",!0,r],["adTitle",!0,r],["adVerifications",!0,[I,!1,[Z,[["executableResource",!0,[I,!1,[Z,[["apiFramework",!0,r],["language",!0,r],["type",!0,r],["uri",!0,r]]]]],["javaScriptResource",!0,[I,!1,[Z,[["apiFramework",!0,r],["browserOptional",!0,r],["uri",!0,r]]]]],["trackingEvents",!0,[I,!1,[Z,[["event",!1,r],["uri",!1,r]]]]],["vendor",!0,r],["verificationParameters",!0,r]]]]],["companionAds",!0,[I,!1,[Z,[["adParameters",!0,r],["altText",!0,r],["attributes",!0,[Z,[["adSlotId",!0,r],["apiFramework",!0,r],["assetHeight",!0,r],["assetWidth",!0,r],["expandedHeight",!0,r],["expandedWidth",!0,r],["height",!0,r],["id",!0,r],["pxratio",!0,r],["renderingMode",!0,r],["width",!0,r]]]],["companionClickThrough",!0,r],["companionClickTracking",!0,r],["htmlResource",!0,r],["iFrameResource",!0,r],["sequence",!0,r],["staticResource",!0,r],["trackingEvents",!0,[I,!1,[Z,[["beaconUrls",!1,[I,!1,r]],["eventType",!1,r]]]]]]]]],["creativeId",!0,r],["creativeSequence",!0,r],["extensions",!0,[I,!1,En]],["trackingEvents",!0,[I,!1,yn]],["vastAdId",!0,r]]],An=[Z,[["nonLinearAdList",!1,[I,!1,[Z,[["durationInSeconds",!0,e],["adId",!0,r],["adParameters",!0,r],["adSystem",!0,r],["adTitle",!0,r],["creativeId",!0,r],["creativeAdId",!0,r],["creativeSequence",!0,r],["width",!0,r],["height",!0,r],["expandedWidth",!0,r],["expandedHeight",!0,r],["scalable",!0,c],["maintainAspectRatio",!0,c],["minSuggestedDuration",!0,r],["apiFramework",!0,r],["staticResource",!0,r],["staticResourceCreativeType",!0,r],["iFrameResource",!0,r],["htmlResource",!0,r],["clickThrough",!0,r],["clickTracking",!0,r],["clickTrackingId",!0,r]]]]],["extensions",!0,[I,!1,En]],["trackingEvents",!0,[I,!1,yn]]]],tn=new DOMParser,Tn=/\n|<!\[CDATA\[|\]\]>/g;function rn(n){n=null==n?void 0:n.textContent;return null==n?null:n.replace(Tn,"").trim()}function an(n,e,t){t&&(n[e]=t)}function on(n,e){var t,i=hn(n.children);try{for(i.s();!(t=i.n()).done;){var r,a=t.value;null!=(r=e[a.tagName])&&r.call(e,a)}}catch(n){i.e(n)}finally{i.f()}}function bn(n){var t=[];return on(n,{IconClickFallbackImage:function(n){var e={};t.push(e),an(e,"width",n.getAttribute("width")),an(e,"height",n.getAttribute("height")),on(n,{AltText:function(n){an(e,"altText",rn(n))},StaticResource:function(n){an(e,"staticResource",rn(n))}})}}),t}function On(n){return n&&new Date("1970-01-01T".concat(n,"Z")).getTime()/1e3}function Cn(n,a,v){var h,g,r;if(y(n))return h=en(n.dashAvailabilityStartTime),null!=(g=S(n.avails))&&g.forEach(function(n){if(y(n)){var o=en(n.availId);if(o){var s=nn(n.startTimeInSeconds),u=nn(n.durationInSeconds),c=(e=(e=en(n.adMarkerDuration))&&M.exec(e))?3600*((i=e[1])?+i:0)+60*((i=e[2])?+i:0)+((i=e[3])?+i:0):null,l=I(n.adBreakTrackingEvents,Sn),d=((d=en(n.availProgramDateTime))?new Date(d).getTime()/1e3:h?new Date(h).getTime()/1e3+s:0)||0,e=(E(!1,n,o,s,u,d,c,l),a[o]),t="",f=S(n.ads),i=(null!=f&&f.forEach(function(n){y(n)&&(t+="".concat(n.adId,",").concat(n.startTime,",").concat(n.duration,";"))}),!e||t!==e.digest);if(G(Q+"Avail ".concat(i?e?"!":"":"~").concat(o," ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),i){var p={},m=null==e?void 0:e.ads,_=null==f?void 0:f.length;if(null!=f&&f.forEach(function(n,e){var t,i,r,a;y(n)?(t=en(n.adId))?null==(i=nn(n.startTimeInSeconds))?H(Q+"Invalid or missing ad start time",n):(p[t]={start:i,duration:n.duration},r=null,m&&(r=m[t],m[t]=null),a=!r||i!==r.start||n.duration!==r.duration,G(Q+"Ad ".concat(a?r?"!":"":"~").concat(t," ")+"(#".concat(e+1," of ").concat(_,") ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.adProgramDateTime,")"),n),a&&v(i,o,e,_,s,u,d,c,l,n,!1,!1,null==(t=r)?void 0:t.start)):H(Q+"Missing ad ID",n):H(Q+"Invalid ad object",f)}),m)for(var r in m){r=m[r];r&&v(0,o,0,0,s,u,d,c,l,null,!1,!1,r.start)}a[o]={digest:t,ads:p}}}else H(Q+"Missing avail ID",n)}else H(Q+"Invalid avail object",g)}),null!=(r=S(n.nonLinearAvails))&&r.forEach(function(n){var e,t,i;y(n)?(i=en(n.availId),G(Q+"nonLinearAvail ".concat(i," (").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),e=nn(n.startTimeInSeconds),t=I(n.adBreakTrackingEvents,Sn),E(!0,n,i,e,null,i=((i=en(n.availProgramDateTime))?new Date(i).getTime()/1e3:h?new Date(h).getTime()/1e3+e:0)||0,null,t)):H(Q+"Invalid nonLinearAvail object",r)}),(n=en(n.nextToken))&&G(Q+'nextToken "'.concat(n,'"')),n;function E(n,e,t,i,r,a,o,s){e=null==(e=S(e.nonLinearAdsList))?void 0:e[0];e&&(y(e)?null==i?H(Q+"Invalid or missing nonlinear ad start time",e):(G(Q+"nonLinearAds",e),v(i,t,0,1,i,r,a,o,s,e,!0,n)):H(Q+"Invalid nonLinearAds object",e))}H(Q+"Invalid tracking-info response")}e=function(n){return n[n["AD_START"]=k]="AD_START",n[n["AD_END"]="ad_end"]="AD_END",n[n["AD_PROGRESS"]=P]="AD_PROGRESS",n[n["AD_CLICK"]=w]="AD_CLICK",n[n["AD_CAN_SKIP"]=L]="AD_CAN_SKIP",n[n["AD_INCOMING"]=ln]="AD_INCOMING",n[n["NONLINEAR_AD_START"]=U]="NONLINEAR_AD_START",n[n["NONLINEAR_AD_END"]=x]="NONLINEAR_AD_END",n[n["AD_TRACKING_INFO_RESPONSE"]=F]="AD_TRACKING_INFO_RESPONSE",n}({});function Mn(){var i=new Zc,a=null,r=null,o=-1,s=!1;function u(n,e){i.dispatchEvent(new nl(n,{detail:e}))}function c(n,e){var t=n.availDuration,i=n.inAvailStartOffset;return{toAdEnd:n.duration-e,toAvailEnd:null!=t&&null!=i?t-i-e:null,toSkipThreshold:0<=o?Math.max(0,o-e):null}}return{addEventListener:function(n,e,t){i.addEventListener(n,e,t)},removeEventListener:function(n,e,t){i.removeEventListener(n,e,t)},onTrackingInfoResponse:function(n){u(F,{failedAdTrackingInfoRequest:n})},onAdStart:function(n,e,t){var i,r;r=e,t=t,a={adData:q(i=n),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:t+i.duration-r},o=n.skipOffset,s=!1,u(k,{adObject:a,adElapsedTime:e,adCountdown:c(n,e)})},onAdEnd:function(n){u("ad_end",{adObject:a}),a=null},onAdProgress:function(n,e,t){u(P,{adObject:a,adElapsedTime:e,adCountdown:c(n,e)}),!s&&0<=o&&o<=e&&(s=!0,u(L,{adObject:a}))},onAdClick:function(n){u(w,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart:function(n,e,t){r={adData:q(n)},u(U,{nonLinearAdsObject:r,adElapsedTime:e})},onNonLinearAdsEnd:function(n){u(x,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}}var c=function(n){return n[n["START"]=0]="START",n[n["END"]=1]="END",n[n["PAUSE"]=2]="PAUSE",n[n["RESUME"]=3]="RESUME",n[n["MUTE"]=4]="MUTE",n[n["UNMUTE"]=5]="UNMUTE",n[n["FULLSCREEN"]=6]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=7]="EXIT_FULLSCREEN",n}({}),sn=[],r=(sn[0]="IMPRESSION",sn[1]="CLICK_THROUGH",sn[2]="LOADED",sn[3]="START",sn[4]="FIRST_QUARTILE",sn[5]="MID_POINT",sn[6]="THIRD_QUARTILE",sn[7]="COMPLETE",sn[8]="SKIP",sn[9]="PAUSE",sn[10]="RESUME",sn[11]="MUTE",sn[12]="UNMUTE",sn[13]="FULLSCREEN",sn[14]="EXIT_FULLSCREEN",function(n){return n[n["IMPRESSION"]=0]="IMPRESSION",n[n["CLICK_THROUGH"]=1]="CLICK_THROUGH",n[n["LOADED"]=2]="LOADED",n[n["START"]=3]="START",n[n["FIRST_QUARTILE"]=4]="FIRST_QUARTILE",n[n["MID_POINT"]=5]="MID_POINT",n[n["THIRD_QUARTILE"]=6]="THIRD_QUARTILE",n[n["COMPLETE"]=7]="COMPLETE",n[n["SKIP"]=8]="SKIP",n[n["PAUSE"]=9]="PAUSE",n[n["RESUME"]=10]="RESUME",n[n["MUTE"]=11]="MUTE",n[n["UNMUTE"]=12]="UNMUTE",n[n["FULLSCREEN"]=13]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=14]="EXIT_FULLSCREEN",n}({}));function Dn(a,e,S){var s,u="adTracking: ",I=function(n,e){return n-e.start},x=function(n,e){return n-e.startDate},t=function(n,e){return n.start-e.start},F={headers:{"Cache-Control":"no-cache, no-store"}},c=a?S.defaultTrackingRequestInterval||10:-1,V=null!=(n=S.incomingAdCountdownInterval)?n:5,n=S.adTrackingUpdateMode||"pagination",W="playhead"===n,j="pagination"===n,A=[],r={},T=[],b={},l=null,d=null,f=null,p=null,m=null,_=null,v=null,h=null,g=null,E=null,o=null,O=null,y=null,C=null,M=0,D=[],R=Mn();function N(n,e){for(var t=D.length,i=0;i<t;i++){var r,a=D[i];null!=(r=a[n])&&r.apply(a,e)}}function k(n,e){e=e||l,G(u+"Ad tracking event ".concat(sn[n]),e),N("onAdTrackingEvent",[e,n])}function P(n,e){!n.startDate&&O&&(n.startDate=e+O);e=s;(s=!!n.startDate)!==e&&G(u+"Set adHasStartDate to ".concat(s))}function w(n,e){var E,y;200===e?(y=E=!1,o=Cn(n,r,function(n,e,t,i,r,a,o,s,u,c,l,d,f){var p,m,_,v,h,g;null!=r&&o&&(O=o-r),l?(l="".concat(e||n||0),!b[l]&&(p=n,o=o,m=e,_=u,d=d,m=(g=Z(v=c,An))?g.nonLinearAdList.length?(h=g.nonLinearAdList.reduce(function(n,e){var t=e.durationInSeconds||0;return t<=0&&(t=On(e.minSuggestedDuration)||0),Math.max(n,t)},0)||5,Object.assign(g,{start:p,startDate:o,duration:h,availId:m,nonlinearAvail:d,adBreakTrackingEvents:_}),G(Q+"New NonLinearAdsData (".concat(h,"s @ ").concat(p,"s / ").concat(o,"s)"),g),g):(H(Q+"Empty nonLinearAdList",v),null):(H(Q+"Missing required fields for NonLinearAdsData",v),null))&&(P(m,n),b[l]=m,z(n,T,I)<0&&(T.push(m),y=!0),N("onNewNonLinearAds",[m]))):(d=null!=f?z(f,A,I):-1,(_=c&&function(t,n,e,i,r,a,o,s,u){var c=nn(u.durationInSeconds);if(null==c||c<=0)return H(Q+"Invalid or missing ad duration",u),null;var l=(l=en(u.adProgramDateTime))&&new Date(l).getTime()/1e3,d=On(en(u.skipOffset)),f=(d||0===d||(d=-1),Z(u,In));if(!f)return H(Q+"Missing required fields for AdData",u),null;function p(n,e){var t=n.getElementsByTagName("JavaScriptResource"),i=n.getElementsByTagName("VerificationParameters"),n=n.getAttribute("vendor"),t=rn(null==t?void 0:t[0]),i=rn(null==i?void 0:i[0]);n&&t?(f.adVerifications||(f.adVerifications=[])).push({vendor:n,javaScriptResource:[{uri:t}],verificationParameters:i}):H(Q+"Invalid AdVerifications extension content",e)}null!=(u=f.extensions)&&u.forEach(function(n){if("AdVerifications"===n.type){var e=n.content;try{var t=null==(a=tn.parseFromString(e,"application/xml"))?void 0:a.documentElement;if(t)if("Verification"===t.tagName)p(t,n);else{var i=t.getElementsByTagName("Verification");if(i)for(var r=0;r<i.length;r++)p(i[r],n)}}catch(n){H(Q+"Exception parsing AdVerifications extension: ".concat(e),n)}}else if("companion_about_this_ad"===n.type){var a="<root>"+n.content+"</root>";try{var o,s=null==(o=tn.parseFromString(a,"application/xml"))?void 0:o.documentElement;s&&on(s,{Icon:function(n){var e=f.icons||(f.icons=[]),t={};e.push(t),an(t,"program",n.getAttribute("program")),an(t,"width",n.getAttribute("width")),an(t,"height",n.getAttribute("height")),an(t,"xPosition",n.getAttribute("xPosition")),an(t,"yPosition",n.getAttribute("yPosition")),on(n,{StaticResource:function(n){an(t,"staticResource",rn(n))},IconClicks:function(n){var e={};t.iconClicks=e,on(n,{IconClickThrough:function(n){an(e,"iconClickThrough",rn(n))},IconClickFallbackImages:function(n){n=bn(n);n.length&&(e.iconClickFallbackImages=n)}})}})}})}catch(n){H(Q+"Exception parsing AdChoices extension: ".concat(a),n)}}else if("IconClickFallbackImages"===n.type){t="<root>"+n.content+"</root>";try{var u,c=null==(u=tn.parseFromString(t,"application/xml"))?void 0:u.documentElement;c&&on(c,{IconClickFallbackImages:function(n){var e={},n=((f.icons||(f.icons=[])).push(e),an(e,"program",n.getAttribute("program")),bn(n));n.length&&(e.iconClicks={iconClickFallbackImages:n})}})}catch(n){H(Q+"Exception parsing AdChoices extension: ".concat(t),n)}}});var m=[0,0,0,0];function _(n,e){e-=t;0<e&&e<c+.01&&(m[n]=e)}return Object.assign(f,{start:t,startDate:l||0,duration:c,skipOffset:d,availId:n,availAdIndex:e,availAdCount:i,availStart:r,availDuration:a,availMarkedDuration:o,adBreakTrackingEvents:s,inAvailStartOffset:null!=r?t-r:null,playCount:0,quartileEventOffsets:m}),f.videoClickThrough=null,f.trackingEvents=null==(u=f.trackingEvents)?void 0:u.filter(function(n){switch(n.eventType){case"clickThrough":var e=n.beaconUrls[0];return e&&(f.videoClickThrough=e),!1;case K:_(0,n.startTimeInSeconds);break;case X:_(1,n.startTimeInSeconds);break;case J:_(2,n.startTimeInSeconds);break;case $:_(3,n.startTimeInSeconds)}return!0}),G(Q+"New AdData (".concat(c,"s @ ").concat(t,"s / ").concat(l,")"),f),f}(n,e,t,i,r,a,s,u,c))?(P(_,n),0<=d&&(_.playCount=A[d].playCount,A.splice(d,1)),n!==f&&0<=(h=z(n,A,I))&&A.splice(h,1),A.push(_),E=!0,N("onNewAd",[_,0<=d])):0<=d&&(c||S.detectAdRemoval)&&(A.splice(d,1),E=!0))}),E&&(A.sort(t),d=f=null,p=null),y&&(T.sort(t),_=v=null,h=null),N("onTrackingInfoResponse",[!1])):(H(u+"Request failed, status ".concat(e),n),N("onTrackingInfoResponse",[!0])),g=null}function L(n,e){var t,i,r;a&&(t=[["tttt","".concat(Date.now())]],W&&t.push(["aws.playheadPositionInSeconds",""+Math.round(e&&O?e-O:n)]),j&&o&&t.push(["aws.nextToken",o]),null!=(e=g)&&e.abort(),n=t,e=new $c(e=a),r=new Qc(e.search),n.forEach(function(n){r.append(n[0],n[1])}),e.search="?"+r.toString(),t=e.toString(),i=w,g=fn(t,F,function(n,e,t){200===e&&null!=n&&(n=dn(n)),i&&i(n,e,t)}))}function U(n,e,t,i){var r,a,o=i?"startDate":"start",t=cn(t,e,i?x:I),i=0<=t?(a=(r=e[t])[o],t+1<e.length?e[t+1][o]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,e.length?e[0][o]:Number.MAX_VALUE);return G(u+"Update time range (".concat(a," - ").concat(i,"), ")+"".concat(n," ad index ").concat(t),r),[r,a,i]}function i(n){n&&D.indexOf(n)<0&&D.push(n)}return 0<=c&&L(0),i(R),i(vn(S.disableNoninteractiveClientSideBeaconing||"server"===(null==(n=S.sessionFeatures)?void 0:n.reportingMode),S.sendAdBeaconsInNoCorsMode&&"function"==typeof fetch,function(n,e,t,i){N("onAdBeaconResponse",[n,e,t,i])})),{updateAdTrackingInfo:function(n,e){var t;null==n?(L(null!=(t=y)?t:0,C),E=y):(null!=(t=g)&&t.abort(),w(n,200))},startUpdatingAdTrackingInfo:function(n){a?(c=n||10,E=null):H(u+"Missing 'trackingUrl'")},stopUpdatingAdTrackingInfo:function(){c=-1},onPlayheadUpdate:function(n,e){var t,i,r,a,o;null!=y&&y<n&&n<y+2.5&&(0<=c&&!g&&(null==E||Math.abs(n-E)>=c)&&(L(n,e),E=n),a=u+"onPlayheadUpdate(".concat(n,", ").concat(e,"), ")+"adHasStartDate => ".concat(s),B(5,un,a,o),a=(e=s?e:null)||n,(null==d||a<d||f<=a)&&(o=Y(U("linear",A,a,e),3),p=o[0],d=o[1],f=o[2]),o=l,r=a-d,(null==(i=l=p&&a<d+p.duration?p:null)?void 0:i.adId)===(null==o?void 0:o.adId)?l&&(G(u+"Ad progresses, time => ".concat(r)),N("onAdProgress",[l,r,n]),M<r)&&r<M+2.5&&(i=M,M=r,(t=l.quartileEventOffsets[0])&&i<t&&t<=M&&k(4),(t=l.quartileEventOffsets[1])&&i<t&&t<=M&&k(5),t=l.quartileEventOffsets[2])&&i<t&&t<=M&&k(6):(o&&((i=o.quartileEventOffsets[3])&&i<M+2.5&&k(7,o),G(u+"Ad ends",o),N("onAdEnd",[o])),M=0,l&&(l.playCount++,e&&G(u+"PDT offset => player ".concat(e-n,", ")+"ad ".concat(l.startDate-l.start),l),G(u+"Ad loads",l),N("onAdLoad",[l]),k(2),G(u+"Ad starts, time => ".concat(r),l),N("onAdStart",[l,r,n]),k(3),k(0))),l||(t=f-a)<=V&&R.dispatchEvent(ln,{timeToNextAd:t}),(null==_||a<_||v<=a)&&(i=Y(U("nonlinear",T,a,e),3),h=i[0],_=i[1],v=i[2]),o=m,r=a-_,(m=h&&a<_+h.duration?h:null)!==o)&&(o&&(G(u+"Nonlinear ad ends",o),N("onNonLinearAdsEnd",[o])),m)&&(e&&G(u+"PDT offset => player ".concat(e-n,", ")+"nonlinear ad ".concat(m.startDate-m.start),m),G(u+"Nonlinear ad starts, time => ".concat(r),m),N("onNonLinearAdsStart",[m,r,n])),y=n,C=e},onPlaybackRateUpdate:function(n){},onPlaybackEvent:function(n){switch(n){case 0:null!=e&&e.sendPlaybackStart();break;case 1:null!=e&&e.sendPlaybackEnd()}if(l)switch(n){case 2:k(9);break;case 3:k(10);break;case 4:k(11);break;case 5:k(12);break;case 6:k(13);break;case 7:k(14)}},onVideoClick:function(n){l&&(null!=e&&e.sendAdTouch(n),N("onAdClick",[l]))},onPlayerControlClick:function(n){l&&null!=e&&e.sendAdTouch(n)},onAdClickthrough:function(){l&&(null!=e&&e.sendAdClick(),k(1))},onAdSkip:function(){l&&k(8)},addAdObserver:i,removeAdObserver:function(n){n&&0<=(n=D.indexOf(n))&&D.splice(n,1)},getAllAds:function(){return A.map(q)},getAllNonLinearAds:function(n){return n?Object.keys(b).map(function(n){return q(b[n])}):T.map(q)},addEventListener:function(n,e,t){R.addEventListener(n,e,t)},removeEventListener:function(n,e,t){R.removeEventListener(n,e,t)}}}var v=function(n){return n[n["INVALID_CONFIG"]=0]="INVALID_CONFIG",n[n["INVALID_INIT_RESPONSE"]=1]="INVALID_INIT_RESPONSE",n[n["INIT_DISRUPTED"]=2]="INIT_DISRUPTED",n[n["INIT_ERROR"]=3]="INIT_ERROR",n}({});function l(t,n,i,r){var a,e,o=null,s=t.trackingUrl,u=t.sessionInitUrl,c=t.sessionInitHeaders,l=null!=(e=t.sessionInitTimeout)?e:3e4,d=null!=(e=t.sessionInitMaxRetries)?e:8,f=t.palNonceManager||n,p=null!=(n=null==f||null==(e=f.getNonce)?void 0:e.call(f))?n:null,m={getPlaybackUrl:function(){return o},getTrackingUrl:function(){return s},getPalNonce:function(){return p},updateAdTrackingInfo:function(n,e){a.updateAdTrackingInfo(n,e)},startUpdatingAdTrackingInfo:function(n){a.startUpdatingAdTrackingInfo(n)},stopUpdatingAdTrackingInfo:function(){a.stopUpdatingAdTrackingInfo()},onPlayheadUpdate:function(n,e){a.onPlayheadUpdate(n,e)},onPlaybackRateUpdate:function(n){a.onPlaybackRateUpdate(n)},onPlaybackEvent:function(n){a.onPlaybackEvent(n)},onVideoClick:function(n){a.onVideoClick(n)},onPlayerControlClick:function(n){a.onPlayerControlClick(n)},onAdClickthrough:function(){a.onAdClickthrough()},onAdSkip:function(){a.onAdSkip()},addAdObserver:function(n){a.addAdObserver(n)},removeAdObserver:function(n){a.removeAdObserver(n)},getAllAds:function(){return a.getAllAds()},getAllNonLinearAds:function(n){return a.getAllNonLinearAds(n)},destroy:function(){},addEventListener:function(n,e,t){a.addEventListener(n,e,t)},removeEventListener:function(n,e,t){a.removeEventListener(n,e,t)}};u?(e=_(t.originParams)||{},(n=t.sessionFeatures)&&("off"===n.overlayAvails&&(e.overlayAvails="off"),"server"===n.reportingMode&&(e.reportingMode="server"),"on"===n.adSignaling&&(e.adSignaling={enabled:"true"}),Object.assign(e,n.extra||{})),(n=_(t.playerParams)||{}).device_sdk_info||(n.device_sdk_info=kn.clientInfo),p&&(n.givn=p),e.playerParams=n,n={retryHeuristics:function(n,e,t){return(0==e||429==e||500<=e&&e<=599)&&n<=d?0==e?0:l:-1}},c&&(n.headers=c),l&&(n.timeout=l),G('createSession: Request sent to URL "'.concat(u,'"'),e),pn(u,e,n,function(n,e){200===e?(o=O(null==n?void 0:n.manifestUrl,u))&&(s=O(null==n?void 0:n.trackingUrl,u))?(a=Dn(s,f,t),i(m,"Successful session response",n)):r(v.INVALID_INIT_RESPONSE,"Invalid session response"):0===e?r(v.INIT_DISRUPTED,"Disrupted session initialization"):r(v.INIT_ERROR,"Failed session initialization")})):(a=Dn(s,f,t),i(m,"Session initialized ".concat(s?"elsewhere":"without 'trackingUrl'")))}function Rn(e,i,r,a){var n,o="createSession: ";function t(n,e,t){G(o+e,t),i?i(n,null):r(n)}function s(n,e){var t={code:n,message:e};u(o+"(".concat(n,") ").concat(e)),i?i(null,t):a(t)}e?(n=e.palNonceRequestParams,e.trackingUrl||e.palNonceManager||!n?l(e,null,t,s):(n=W(n))?n.then(function(n){G(o+"NonceManager received",n),l(e,n,t,s)})["catch"](function(n){H(o+"Nonce request rejected",n),l(e,null,t,s)}):(H(o+"Unable to create a nonce request"),l(e,null,t,s))):s(v.INVALID_CONFIG,"Missing config")}var Nn="1.12.0";console.debug("[MT] AWS Elemental MediaTailor SDK v".concat(Nn));var kn={initPal:function(n,e){var t="initPal: ";if(!n){if(!e)return u(t+"Missing consent settings"),!1;var i=null==(i=a("goog"))?void 0:i.pal,r=null==i?void 0:i.NonceLoader,i=null==i?void 0:i.ConsentSettings;if(!r||!i)return u(t+"Missing PAL SDK classes"),!1;i=new i;i.allowStorage=null!=(e=e.allowStorage)&&e,n=new r(i)}return s&&H(t+"Resetting NonceLoader"),s=n,!0},createSession:function(t,n){if(!n)return new Promise(function(n,e){Rn(t,null,n,e)});Rn(t,n,null,null)},PlaybackEvent:c,AdTrackingEvent:r,SessionUiEvent:e,setLogLevel:function(n){0<=n&&n<=5?A=n:console.warn(g+"Invalid log level: ".concat(n))},LogLevel:E,getSdkVersion:function(){return Nn},clientInfo:"MTSDK v"+Nn};return d["default"]},"object"==typeof t?t["mediatailor"]=e():n["mediatailor"]=e(),s.mediatailor=t.mediatailor,s)),Jc&&(module.exports=Jc.datazoom)}();
1
+ !function(){var n,e,t,s,Jc="object"==typeof module?{}:null,$c=window.URL,Qc=window.URLSearchParams,Zc=window.EventTarget,nl=window.CustomEvent,el={};function tl(n,e){el[n]=e}function il(n,e){tl("ext_"+n,e)}tl("base","2.1.0"),function(ne,ee,E){"use strict";var v,p,te=ne.Object,h=ne.Array,g=ne.Date,he=ne.Number,A=ne.String,y=ne.RegExp,ie=ne.Math,S=ne.XMLHttpRequest,T=ne.Uint8Array,C=ne.ArrayBuffer,M=ne.JSON,ge=ne.Promise,Ee=ne.document||{},n=Ee.currentScript||{},D=ne.location||{},R=ne.navigator||{},N=R.userAgent||"",ye=R.connection||R.mozConnection||R.webkitConnection,k=ne.crypto,P=ne.console||{},e=ne.performance,w=ne.setInterval,L=ne.setTimeout,x=(ne.clearInterval,ne.decodeURIComponent),U=ne.encodeURIComponent;try{v=ne.localStorage,p=ne.sessionStorage}catch(n){}function F(t){return t?function(n,e){n="[DZ] "+n,void 0===e?t.call(P,n):t.call(P,n,e)}:null}var t=F(P.log)||function(){},V=F(P.error)||t,W=F(P.warn)||t,j=F(P.info)||t,B=F(P.debug)||t,Se={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},H="datazoom_",t="__"+H+"rootobj",G="custom_",q="v_";if(Se[t]=1,Jc)Jc.datazoom=Se;else{if(de(ne.datazoom)){if(ne.datazoom[t])return W("Collector already loaded");W("Overwriting window.datazoom")}ne.datazoom=Se}function b(e,t,n){var i,r=t.shift();return null==r?i=e:e?r instanceof y?te.keys(e).some(function(n){if(r.test(n))return null!=(i=b(e[n],t.slice()))}):i=b(e[r],t):i=null,null!=i?i:n}function re(n){return"function"==typeof n}function z(n,e){if(re(n))try{return new(n=e?n.bind.apply(n,[null].concat(e)):n),1}catch(n){}}z($c,["http://x.io"])&&z(Qc)||(Qc=function(n){var i=[];function t(n,e){!1!==e&&i.push([n,e])}function r(e){i=i.filter(function(n){return n[0]!==e})}n&&n.slice(1).split("&").forEach(function(n){n=n.split("=");try{i.push([x(n[0]),null==n[1]||x(n[1])])}catch(n){oe(n,"URLSearchParams()")}});n=this;n.append=t,n["delete"]=r,n.set=function(n,e){r(n),t(n,e)},n.get=function(e){var t=null;return i.some(function(n){if(n[0]===e)return t=n[1],!0}),t},n.toString=function(){return i.map(function(n){var e=U(n[0]);return!0===n[1]?e:e+"="+U(n[1])}).join("&")}},$c=function(n){var e=this,n=n.split("?"),t=n[0],n=n[1]?"?"+n[1]:"";e.search=n,e.searchParams=new Qc(n),e.toString=function(){return t+e.search}}),z(Zc)&&z(nl,["x"])||(Zc=function(){var t=this,i={};t.addEventListener=function(n,e){var t=i[n];t||(i[n]=t=[]),t.push(e)},t.removeEventListener=function(n,e){var t=i[n];t&&(i[n]=t.filter(function(n){return n!=e}))},t.dispatchEvent=function(e){var n=i[e.type];n&&n.forEach(function(n){L(function(){n.call(t,e)},0)})}},nl=function(n,e){this.type=n,e&&(this.detail=e.detail)}),ee=te.assign({},{cn:"Shaka Player (MT/OM)",sv:"2.28.0",cf:"",mf:null,ev:[],fd:[],md:[],od:null,mb:"",sw:!1,sm:"",sp:[],ss:"",sd:"",sc:"",ab:"",st:null,hi:1e4,ti:200,cm:null,am:null,cq:null,aq:null,rd:[1,2,4,8,8,8,8],bd:50,kd:50,mh:5e3,ml:0,mc:256,mp:2.5,ep:2,ed:2500,ec:he.MAX_VALUE,cc:"",cl:"",ci:"",cd:[],og:!0,os:!0,tt:!1,om:!1,ps:null,sn:["IDLE","CT_REQUESTED","CT_BUFFERING","CT_PLAYING","CT_PAUSED","CT_SEEKING","CT_COMPLETED","CT_STOPPED","CT_ERROR","AD_BUFFERING","AD_PLAYING","AD_PAUSED","AD_SEEKING","AD_COMPLETED","AD_SKIPPED","AD_ERROR","AD_BREAK_STARTED","AD_BREAK_ENDED"],le:function(n){var e=n.event,t=n.video;Oe("[Event] "+e.type+(t?" ("+t.media_type+")":"")+" @"+e.timestamp,ce(n))}},ee||{});var o,Y,Ie,K={datapoints:{events:"ev",flux_data:"fd",metadata:"md",cmcd:"cd"},endpoints:{event_ingest:"mb",sampling:"sm",ad_blocker_bait:"ab"},sampling:{enable:"sw",definition_namespace:"ss",definition_key_name:"sd",criteria_sampling_key_name:"sc",criteria_matching_fields:"sp"},ondemand:"od",customer_code:"cc",connector_list:"cl",app_session_timeout_mins:"st",heartbeat_interval_ms:"hi",content_milestone_percent:"cm",ad_milestone_percent:"am",content_qv_sec:"cq",ad_qv_sec:"aq",observability:{lag_enabled:"og",loss_enabled:"os"},om_enabled:"om",configuration_id:""},X=!Jc&&n.src||"/",J=D.href||"https://localhost",$="configuration_id",Q="urn:x-cast:io.datazoom.collector",Ae="transfer",Z=0,nn=1,en=2,tn=3,rn=4,an=5,on={off:Z,error:nn,warning:en,info:tn,debug:rn,verbose:an},sn=en;function un(n){var e;n&&(e=on[n],Z<=(e=null!=e?e:+n)&&e<=an?sn=e:W("Invalid log level: "+n))}function cn(){o={},Y=[],[[ee.ps],[X.split("?")[1]],[J.split("?")[1],H]].forEach(function(n){var i=n[1];n[0]&&n[0].split("&").forEach(function(n){try{var e=n.split("="),t=x(e[0]);if(i){if(!t.startsWith(i))return;t=t.slice(i.length)}o[t]=null==e[1]||x(e[1]),t.startsWith("x-")&&Y.push([t,o[t]])}catch(n){W("Invalid query string: "+n.message)}})}),Ie="true"==o.demo,un(o.log)}cn();var ln="io.datazoom.",dn=ln,fn="__ss_ev_count",pn="__ss_last_act",mn="__ss_custom_md",_n="__ss_msg_queue",vn="__ss_sm_resp",hn="__ss_appss_to",gn="__ss_on_demand",En="collector_observability",yn="process_duration_ms",Sn="send_duration_ms",In="call_duration_ms",An="queue_duration_ms",Tn="attempt_count",bn="attempt",On="status_code",Cn="sample",Mn="config",Dn="log";function Rn(n,e,t,i){sn<n||e(t,i)}function Te(n,e){Rn(nn,V,n,e)}function ae(n,e){Rn(en,W,n,e)}function be(n,e){Rn(tn,j,n,e)}function Oe(n,e){Rn(rn,B,n,e)}function Nn(n,e){Rn(an,B,n,e)}function oe(n,e){e="[Exception] "+(e?"("+e+") ":"")+n;return Te(e,n),e}function Ce(t,i,r,a,o){var s,u=0,c=1,l=0;return i=i||"",r=r||1,a=a||he.MAX_VALUE,{log:function(n,e){o&&(s=se())>=l+o&&(u=0,c=1,l=s),++u>=c&&(t("["+u+"] "+i+n,e),c+=ie.min(c*r,a))}}}function Me(n,e){O(ne,"postMessage",[{type:n,data:e},"*"])}var kn,se,Pn,wn,Ln,xn,Un=[],Fn=0;function Vn(n,e,t,i,r,a,o,s){var t={time:t,metric_name:i,dimension:{},batch:function(){return a}},u=(n&&(t.type=n),null!=r&&(t.metric_value=r),t.dimension);return e&&(u.target=e),s&&s.forEach(function(n){u[n[0]]=n[1]}),o&&(u["b4_ss"]=!0),t}function Wn(i,r,a,o){var s=r,u=1,c=Fn++;return{retry:function(n){s=n,u++},log:function(n,e){var t;ee.og&&(null!=a&&Un.push(Vn(null,i,t=r-a,yn,n-t,c,o,[[Tn,u],[On,e]]),Vn(null,i,t,An,a,c,o)),Un.push(Vn(null,i,r,Sn,n-r,c,!1,[[Tn,u],[On,e]]),Vn(null,i,s,In,n-s,c,!1,[[bn,u],[On,e]])))}}}function jn(n,e){var t,i;ee.os&&(i=n.t,i=ie.trunc(i/6e4),(i=(kn=kn||{})[i]||(kn[i]=[0,0,0]))[2]++,t=(i=i[3]||(i[3]={}))[e],n=bs(n.m,hr),t?t.push(n):i[e]=[n])}function Bn(n){var e,t=kn[n],i=Fn++;t[2]&&(t[3]&&(e=[["status_codes",t[3]]]),Un.push(Vn("loss",null,6e4*+n,"evnt_fail",t[2],i,!1,e)))}function De(n){return n&&(Ue(n)?n.slice():te.assign({},n))}function Hn(n,e){return de(e)?n?te.assign({},n,e):e:n}function Gn(n,e){var t;return e?((t={})[n]=e,t):null}function qn(t,i){var r;return i?t?(r=De(t),te.keys(i).forEach(function(n){var e=t[n];r[n]=e?te.assign({},e,i[n]):i[n]}),r):i:t}function O(n,e,t,i){e=b(n,[e],i);return re(e)?e.apply(n,t):null}function zn(n,e,t){return function(){try{return e.apply(n,arguments)}catch(n){oe(n,t)}}}function Yn(t,n){te.keys(t).forEach(function(e){n.forEach(function(n){n[e]=zn(n,t[e],e)})}),n[0]}function Kn(n){var e={};return n.forEach(function(n){e[n.nm]=n}),e}function Xn(n){var e={};return n.forEach(function(n){e[n.nm]=!0}),e}function Jn(n,e,t){n.forEach(function(n){n[e]=t})}function Re(n,e){var n=new $c(n,J),t=new Qc(n.search);return e(t),n.search="?"+t.toString(),n.toString()}function $n(n){var e,t=Y.length;return t?Re(n,function(n){for(e=0;e<t;e++)n.append(Y[e][0],Y[e][1])}):n}function Qn(n,e,t){var i;return null!=(i=n?new $c(n,J).searchParams.get(e):i)?i:t}Pn=0,wn=ee.ec,Ln=Ce(ae,"Abnormal clock increment: ",.2,1e3,3e5),e&&e.now,xn=Pn+g.now(),se=function(n){var e=g.now(),t=xn,i=(xn=Pn+e)-t;return(i<0||wn<i)&&(xn=t+ee.ti,Pn=xn-e,Ln.log(i)),xn};var ue=function(){for(var t=[],n=0;n<256;n++)t.push((n+256).toString(16).substr(1).toLowerCase());return function(){var n=new T(16);if(k&&k.getRandomValues)k.getRandomValues(n);else{ae("getRandomValues() not supported");for(var e=0;e<16;e++)n[e]=ie.floor(256*ie.random())}return n[6]=15&n[6]|64,n[8]=63&n[8]|128,t[n[0]]+t[n[1]]+t[n[2]]+t[n[3]]+"-"+t[n[4]]+t[n[5]]+"-"+t[n[6]]+t[n[7]]+"-"+t[n[8]]+t[n[9]]+"-"+t[n[10]]+t[n[11]]+t[n[12]]+t[n[13]]+t[n[14]]+t[n[15]]}}();function Zn(n,e,t,i,r,a){var o=new S;if(o.open(n,e,!0),null!=a&&(o.timeout=a),t)for(var s=te.keys(t),u=0;u<s.length;u++)o.setRequestHeader(s[u],t[s[u]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function ce(n){if(n)try{return M.stringify(n)}catch(n){oe(n,"toJSON")}return null}function le(n){if(n)try{return M.parse(n)}catch(n){oe(n,"fromJSON")}return null}function Ne(n,e){return(n===p?dn:ln)+e}function m(n,e,t){if(n)if(null==t)Pe(n,e);else try{n.setItem(Ne(n,e),ce({v:t}))}catch(n){oe(n,"storageSet")}}function ke(n,e){n=n?le(n.getItem(Ne(n,e))):null;return n?n.v:null}function Pe(n,e){n&&n.removeItem(Ne(n,e))}ne.self!==ne.top&&Oe("Page loaded in a frame, set sessionStorage prefix to: "+(dn+=(o.frame_id||ue())+"."));var we=le('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Le(n){return"string"==typeof n}function xe(n){return he.isFinite(n)}function Ue(n){return h.isArray(n)}function de(n){return null!=n&&"object"==typeof n&&!Ue(n)}function Fe(n){return Le(n)?n:""+n}function Ve(n){return xe(n=+n)?n:null}function We(e,t,i){return null==e&&null==t?Ve:function(n){return null!=(n=Ve(n))&&(null!=e&&n<e?n=i?null:e:null!=t&&t<n&&(n=i?null:t)),n}}function je(n){return ie.round(n)}function Be(n,e){for(var t=0;t<e.length;t++)!function(n){for(var e=n,t=1;t<arguments.length;t++)e.dv||(e.dv=[]),e.dv.push(arguments[t])}(e[t],n)}function He(n,e){if(e)for(var t=0;t<e.length&&null!=n;t++)n=e[t](n);return n}var Ge,qe,ze,Ye,Ke=4,Xe=8,Je=16,$e=32,I=65535,Qe=Ke,t=1|Je,n=Ke|Je,e=n|$e,r=Xe,Ze={ap:2,nm:"ad_beacon_response"},nt={ap:2,nm:"ad_break_start"},et={ap:2,nm:"ad_break_end"},tt={ap:2,nm:"ad_click"},it={ap:2,nm:"ad_impression"},rt={ap:2,nm:"ad_om_session_created"},at={ap:2,nm:"ad_om_session_omitted"},ot={ap:2,nm:"ad_skip"},st={ap:Qe,nm:"app_session_end"},ut={ap:3,nm:"audio_track_changed"},ct={ap:3,nm:"buffer_start"},lt={ap:3,nm:"buffer_end"},dt={ap:3,nm:"cast_start"},ft={ap:3,nm:"cast_end"},pt={ap:3,nm:"cast_transfer"},mt={ap:I,nm:"context_ready"},_t={ap:Qe,nm:"datazoom_loaded"},vt={ap:3,nm:"error"},ht={ap:3,nm:"exit_fullscreen"},gt={ap:3,nm:"fullscreen"},Et={ap:3,nm:"heartbeat"},yt={ap:3,nm:"media_loaded"},St={ap:1,nm:"media_object_request"},It={ap:3,nm:"media_request"},At={ap:3,nm:"milestone"},Tt={ap:3,nm:"mute"},bt={ap:3,nm:"pause"},Ot={ap:3,nm:"play_btn"},Ct={ap:3,nm:"playback_start"},Mt={ap:3,nm:"playback_complete"},Dt={ap:1,nm:"player_ready"},Rt={ap:3,nm:"playing"},Nt={ap:3,nm:"qualified_view"},kt={ap:1,nm:"quality_change_request"},Pt={ap:3,nm:"rendition_change"},wt={ap:3,nm:"resize"},Lt={ap:3,nm:"resume"},xt={ap:3,nm:"seek_start"},Ut={ap:3,nm:"seek_end"},Ft={ap:3,nm:"stall_start"},Vt={ap:3,nm:"stall_end"},Wt={ap:3,nm:"stop"},jt={ap:3,nm:"subtitle_change"},Bt={ap:3,nm:"unmute"},Ht={ap:3,nm:"volume_change"},Gt=(It.rtc=0,Ct.rtc=1,bt.rtc=2,ct.rtc=3,Ft.rtc=4,xt.rtc=5,Pt.rtc=6,At.rtc=7,It.rta=8,Ct.rta=9,ct.rta=10,Ft.rta=11,At.rta=12,vt.rta=ot.rta=Mt.rta=13,nt.rta=14,et.rta=15,Et.rt=16,ct.rt=17,Ft.rt=18,["event","metrics"]),qt={ap:t,nm:"bandwidth_kbps"},zt={ap:t,nm:"buffer_duration_ms"},Yt={ap:t,nm:"buffer_duration_ads_ms"},Kt={ap:t,nm:"buffer_duration_content_ms"},Xt={ap:t,nm:"buffer_fill_percent"},Jt={ap:t,nm:"buffer_length_ms"},$t={ap:t,nm:"content_session_start_ts_ms"},Qt={ap:3,nm:"current_audio_track"},Zt={ap:t,nm:"current_subtitles"},ni={ap:n,nm:"engagement_duration_ms"},ei={ap:n,nm:"engagement_duration_ads_ms"},ti={ap:n,nm:"engagement_duration_content_ms"},ii={ap:r,nm:"event_count"},ri={ap:t,nm:"num_ad_break_plays"},ai={ap:n,nm:"num_ad_plays"},oi={ap:n,nm:"num_content_plays"},si={ap:n,nm:"num_errors"},ui={ap:n,nm:"num_errors_ads"},ci={ap:n,nm:"num_errors_content"},li={ap:n,nm:"num_pauses_content"},di={ap:n,nm:"num_requests_content"},fi={ap:n,nm:"num_seeks_content"},pi={ap:t,nm:"pause_duration_ms"},mi={ap:t,nm:"pause_duration_ads_ms"},_i={ap:t,nm:"pause_duration_content_ms"},vi={ap:t,nm:"playback_duration_ms"},hi={ap:t,nm:"playback_duration_ads_ms"},gi={ap:n,nm:"playback_duration_ads_app_ms"},Ei={ap:n,nm:"playback_duration_ads_audible_app_ms"},yi={ap:n,nm:"playback_duration_ads_viewable_app_ms"},Si={ap:2,nm:"playback_duration_ad_session_ms"},Ii={ap:t,nm:"playback_duration_content_ms"},Ai={ap:t,nm:"playback_duration_promo_ms"},Ti={ap:3,nm:"playback_rate"},bi={ap:t,nm:"player_state"},Oi={ap:t,nm:"player_viewable"},Ci={ap:t,nm:"player_viewable_percent"},fe={ap:3,nm:"playhead_position_sec"},Mi={ap:t,nm:"playhead_pdt_sec"},Di={ap:3,nm:"rendition_audio_bitrate_kbps"},Ri={ap:3,nm:"rendition_height"},Ni={ap:3,nm:"rendition_name"},ki={ap:3,nm:"rendition_video_bitrate_kbps"},Pi={ap:3,nm:"rendition_width"},wi={ap:t,nm:"stall_count"},Li={ap:t,nm:"stall_count_ads"},xi={ap:t,nm:"stall_count_content"},Ui={ap:t,nm:"stall_duration_ms"},Fi={ap:t,nm:"stall_duration_ads_ms"},Vi={ap:t,nm:"stall_duration_content_ms"},Wi={ap:t,nm:"time_since_last_ad_break_start_ms"},ji={ap:t,nm:"time_since_last_ad_completed_ms"},Bi={ap:t,nm:"time_since_last_buffer_start_ms"},Hi={ap:t,nm:"time_since_last_buffer_start_ad_ms"},Gi={ap:t,nm:"time_since_last_buffer_start_content_ms"},qi={ap:t,nm:"time_since_last_heartbeat_ms"},zi={ap:t,nm:"time_since_last_milestone_ad_ms"},Yi={ap:t,nm:"time_since_last_milestone_content_ms"},Ki={ap:t,nm:"time_since_last_pause_ms"},Xi={ap:t,nm:"time_since_last_rendition_change_ms"},Ji={ap:t,nm:"time_since_last_request_ad_ms"},$i={ap:t,nm:"time_since_last_seek_start_ms"},Qi={ap:t,nm:"time_since_last_stall_start_ms"},Zi={ap:t,nm:"time_since_last_stall_start_ad_ms"},nr={ap:t,nm:"time_since_last_stall_start_content_ms"},er={ap:t,nm:"time_since_last_started_ad_ms"},tr={ap:t,nm:"time_since_request_content_ms"},ir={ap:t,nm:"time_since_started_content_ms"},rr={ap:t,nm:"time_to_first_frame_ms"},ar={ap:t,nm:"time_to_first_frame_plus_ad_delay_ms"},or={ap:t,nm:"volume_level_percent"},sr=(Jn([zt,Yt,Kt,pi,mi,_i,vi,hi,gi,Ei,yi,Ii,Ai,wi,Li,xi,Ui,Fi,Vi,ai,si,ui,ci,oi,li,di,fi],"df",0),tr.ts=0,ir.ts=1,Ki.ts=2,Gi.ts=3,nr.ts=4,$i.ts=5,Xi.ts=6,Yi.ts=7,Ji.ts=8,er.ts=9,Hi.ts=10,Zi.ts=11,zi.ts=12,Wi.ts=14,ji.ts=13,qi.ts=16,Bi.ts=17,Qi.ts=18,[]),ur=["event"],i=["event","attributes"],a=["cmcd"],s=["user_details"],u=["player"],c=["device"],l=["video"],d=["geo_location"],cr=["network"],lr=["page"],f=["ad"],dr=["ops_metadata"],fr=["custom"],pr=["vendor"],mr={p:sr,ap:e,nm:"configuration_id"},_r={p:sr,ap:e,nm:"connector_list"},vr={p:sr,ap:e,nm:"customer_code"},hr={p:sr,ap:r,nm:"event_id"},gr={p:ur,ap:r,nm:"timestamp"},Er={p:ur,ap:r,nm:"type"},sr={p:a,ap:r,nm:"bl"},ur={p:a,ap:r,nm:"br"},yr={p:a,ap:r,nm:"bs"},Sr={p:a,ap:r,nm:"cid"},Ir={p:a,ap:r,nm:"d"},Ar={p:a,ap:r,nm:"dl"},Tr={p:a,ap:r,nm:"mtp"},br={p:a,ap:r,nm:"nor"},Or={p:a,ap:r,nm:"nrr"},Cr={p:a,ap:r,nm:"ot"},Mr={p:a,ap:r,nm:"pr"},Dr={p:a,ap:r,nm:"rid"},Rr={p:a,ap:r,nm:"rtp"},Nr={p:a,ap:r,nm:"sf"},kr={p:a,ap:r,nm:"sid"},Pr={p:a,ap:r,nm:"st"},wr={p:a,ap:r,nm:"su"},Lr={p:a,ap:r,nm:"tb"},a={p:a,ap:r,nm:"v"},xr={p:i,ap:r,nm:"abs_shift"},Ur={p:i,ap:r,nm:"error_code"},Fr={p:i,ap:r,nm:"error_msg"},Vr={p:i,ap:r,nm:"inner_error"},Wr={p:i,ap:r,nm:"heartbeat_count"},jr={p:i,ap:r,nm:"milestone_percent"},Br={p:i,ap:r,nm:"qualified_view_sec"},Hr={p:i,ap:r,nm:"seek_start_point_ms"},Gr={p:i,ap:r,nm:"seek_end_point_ms"},qr={p:i,ap:r,nm:"startup_duration_content_ms"},zr={p:i,ap:r,nm:"startup_duration_total_ms"},Yr={p:s,ap:n,nm:"app_session_id"},Kr={p:s,ap:n,nm:"app_session_start_ts_ms"},i={p:s,ap:n,nm:"app_session_end_ts_ms"},Xr={p:s,ap:t,nm:"cast_app_session_id"},Jr={p:s,ap:t,nm:"cast_content_session_id"},$r={p:s,ap:e,nm:"client_ip"},Qr={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:n,nm:"user_agent"},Zr={p:u,ap:t,nm:"autostart"},na={p:u,ap:t,nm:"casting"},ea={p:u,ap:t,nm:"controls"},ta={p:u,ap:t,nm:"default_muted"},ia={p:u,ap:t,nm:"default_playback_rate"},ra={p:u,ap:t,nm:"fullscreen"},aa={p:u,ap:t,nm:"loop"},oa={p:u,ap:t,nm:"muted"},sa={p:u,ap:t,nm:"player_name"},ua={p:u,ap:t,nm:"player_version"},ca={p:u,ap:t,nm:"preload"},la={p:u,ap:t,nm:"ready_state"},da={p:u,ap:t,nm:"streaming_protocol"},fa={p:u,ap:t,nm:"streaming_type"},pa={p:u,ap:t,nm:"subtitles"},u={p:c,ap:n,nm:"advertising_id"},ma={p:c,ap:n,nm:"browser_name"},_a={p:c,ap:n,nm:"browser_height"},va={p:c,ap:n,nm:"browser_version"},ha={p:c,ap:n,nm:"browser_width"},ga={p:c,ap:n,nm:"cookies_enabled"},Ea={p:c,ap:e,nm:"device_id"},ya={p:c,ap:n,nm:"device_mfg"},Sa={p:c,ap:n,nm:"device_name"},Ia={p:c,ap:n,nm:"device_type"},Aa={p:c,ap:n,nm:"orientation"},Ta={p:c,ap:n,nm:"os_name"},c={p:c,ap:n,nm:"os_version"},ba={p:l,ap:t,nm:"asset_id"},Oa={p:l,ap:t,nm:"description"},Ca={p:l,ap:t,nm:"duration_sec"},Ma={p:l,ap:t,nm:"frame_rate"},Da={p:l,ap:t,nm:"media_tags"},Ra={p:l,ap:3,nm:"media_type"},Na={p:l,ap:t,nm:"player_height"},ka={p:l,ap:t,nm:"player_width"},Pa={p:l,ap:t,nm:"source"},wa={p:l,ap:t,nm:"title"},La={p:d,ap:e,nm:"city"},xa={p:d,ap:e,nm:"country"},Ua={p:d,ap:e,nm:"country_code"},Fa={p:d,ap:e,nm:"latitude"},Va={p:d,ap:e,nm:"longitude"},Wa={p:d,ap:e,nm:"postal_code"},ja={p:d,ap:e,nm:"region"},Ba={p:d,ap:e,nm:"region_code"},Ha={p:d,ap:e,nm:"continent"},Ga={p:d,ap:e,nm:"continent_code"},l={p:d,ap:e,nm:"district"},qa={p:d,ap:e,nm:"timezone_name"},za={p:d,ap:e,nm:"timezone_offset"},Ya={p:cr,ap:e,nm:"asn"},d={p:cr,ap:e,nm:"asn_org"},Ka={p:cr,ap:n,nm:"connection_type"},Xa={p:cr,ap:e,nm:"isp"},Ja={p:cr,ap:e,nm:"mobile_connection"},$a={p:dr,ap:r,nm:"context_id"},Qa={p:dr,ap:r,nm:"context_name"},cr={p:dr,ap:n,nm:"dz_dictionary_version"},Za={p:dr,ap:r,nm:"msg_send_client_ts_ms"},no={p:dr,ap:r,nm:"player_context_id"},eo={p:dr,ap:e,nm:"server_ts_offset_ms"},to={p:lr,ap:n,nm:"collector_name"},io={p:lr,ap:n,nm:"dz_sdk_version"},ro={p:lr,ap:n,nm:"page_title"},ao={p:lr,ap:n,nm:"page_url"},oo={p:lr,ap:n,nm:"referrer_url"},so={p:lr,ap:n,nm:"site_domain"},uo={p:f,ap:r,nm:"ad_beacon_status"},co={p:f,ap:r,nm:"ad_beacon_type"},lo={p:f,ap:r,nm:"ad_beacon_url"},fo={p:f,ap:2,nm:"ad_beacons"},po={p:f,ap:2,nm:"ad_beacons_rejected"},mo={p:f,ap:2,nm:"ad_beacons_sent"},_o={p:f,ap:e,nm:"ad_blocker"},vo={p:f,ap:t,nm:"ad_break_id"},ho={p:f,ap:2,nm:"ad_click_url"},go={p:f,ap:2,nm:"ad_creative_id"},Eo={p:f,ap:2,nm:"ad_duration_sec"},yo={p:f,ap:2,nm:"ad_id"},So={p:f,ap:r,nm:"ad_om_session_data"},Io={p:f,ap:2,nm:"ad_om_session_events"},lr={p:f,ap:2,nm:"ad_partner"},Ao={p:f,ap:t,nm:"ad_position"},To={p:f,ap:2,nm:"ad_session_id"},bo={p:f,ap:2,nm:"ad_system"},Oo={p:f,ap:2,nm:"ad_time_offset_sec"},e={p:f,ap:n,nm:"ad_tracking_opt_out"},Co={p:f,ap:2,nm:"advertiser_name"},Mo={p:f,ap:2,nm:"deal_id"},Do={p:f,ap:2,nm:"skip_time_offset_sec"},Ro={p:f,ap:2,nm:"wrapper_creative_ids"},No={p:f,ap:2,nm:"wrapper_id"},ko={p:f,ap:2,nm:"wrapper_systems"},n={p:["cdn"],ap:t,nm:"cdn"},Po=(Mo.df="",Jn([Ro,No,ko],"df",[]),Be(function(n){return!!n},[_o,e,Zr,yr,na,ea,ga,ta,ra,aa,Ja,oa,wr,pa,Oi]),Be(function(n){Ue(n)||(n=[n]);for(var e=0;e<n.length;e++)n[e]=Fe(n[e])||"";return n},[Ro,No,ko]),Be(null==Ge&&null==qe?Fe:function(n){var e;return null!=(n=Fe(n))&&(e=n.length,null!=Ge&&e<Ge?n=null:null!=qe&&qe<e&&(n=ze?null:n.slice(0,qe))),n},[xr,vo,ho,go,yo,lr,Ao,To,bo,Co,u,Yr,Ya,d,ba,ma,va,Xr,Jr,n,Sr,La,$r,mr,_r,Qr,Ha,Ga,xa,Ua,vr,Mo,Oa,Ea,ya,Sa,Ia,l,io,Ur,Fr,hr,Vr,Xa,Ra,br,Or,Aa,Ta,c,Cr,ro,ao,no,sa,ua,Wa,ca,oo,ja,Ba,Dr,Nr,kr,so,Pa,Pr,da,fa,qa,wa,Er,s,Qt,Zt,bi,Ni]),Be(We(0,100),[Xt,Ci,or]),Be(We(0,1e9,!0),[qt]),Be(We(),[Eo,Oo,i,Kr,sr,ur,_a,ha,Ir,ia,Ar,Ca,Ma,Wr,Fa,Va,jr,Tr,Na,ka,Mr,Br,la,Rr,Gr,Hr,eo,Do,qr,zr,Lr,gr,za,a,Yt,Kt,zt,Jt,$t,ei,ti,ni,ii,ri,ai,oi,si,ui,ci,li,di,fi,mi,_i,pi,hi,gi,Ei,yi,Si,Ii,vi,Ai,Ti,fe,Di,Ri,ki,Pi,wi,Li,xi,Fi,Vi,Ui,Wi,ji,Hi,Gi,Bi,qi,zi,Yi,Ki,Xi,Ji,$i,Zi,nr,Qi,er,tr,ir,rr,ar]),Be(0==(f=5)?je:(Ye=ie.pow(10,f),function(n){return ie.round(n*Ye)/Ye}),[Eo,Oo,i,Kr,sr,ur,_a,ha,Ir,ia,Ar,Ca,Ma,Wr,Fa,Va,jr,Tr,Na,ka,Mr,Br,la,Rr,Gr,Hr,eo,Do,qr,zr,Lr,gr,za,a,qt,Yt,Kt,zt,Xt,Jt,$t,ei,ti,ni,ii,ri,ai,oi,si,ui,ci,li,di,fi,mi,_i,pi,hi,gi,Ei,yi,Si,Ii,vi,Ai,Ti,Ci,fe,Di,Ri,ki,Pi,wi,Li,xi,Fi,Vi,Ui,Wi,ji,Hi,Gi,Bi,qi,zi,Yi,Ki,Xi,Ji,$i,Zi,nr,Qi,er,tr,ir,rr,ar,or]),[Ze,nt,et,tt,it,rt,at,ot,st,ut,ct,lt,dt,ft,pt,mt,_t,vt,ht,gt,Et,yt,St,It,At,Tt,bt,Ot,Ct,Mt,Dt,Rt,Nt,kt,Pt,wt,Lt,xt,Ut,Ft,Vt,Wt,jt,Bt,Ht]),wo=Kn(Po);function Lo(n,e){return q+n+"_"+e}function xo(n,e){var t,i=Xn(Po),r={},a={};n?0<n.length?(n=Le(t=ee.tt&&o.beta_ev)?n.concat(t.split(".").map(function(n){return{name:n,media_types:["na"]}})):n).forEach(function(n){var e,t=n&&n.name;t&&i[t]?(n=n.media_types)&&0<n.length&&(r[t]=!0,"na"!=n[0])&&(e={},n.forEach(function(n){e[n]=!0}),a[t]=e):ae("Unknown event: "+t)}):e&&ae("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,Po.forEach(function(n){n.on=!(r&&!r[n.nm]),n.mm=a&&a[n.nm]})}xo(),Jn([ai,si,ui,ci,oi,li,di,fi,gi,Ei,yi],"st",p);var Uo=[qt,zt,Yt,Kt,Xt,Jt,$t,Qt,Zt,ni,ei,ti,ii,ri,ai,oi,si,ui,ci,li,di,fi,pi,mi,_i,vi,hi,gi,Ei,yi,Si,Ii,Ai,Ti,bi,Oi,Ci,fe,Mi,Di,Ri,Ni,ki,Pi,wi,Li,xi,Ui,Fi,Vi,Wi,ji,Bi,Hi,Gi,qi,zi,Yi,Ki,Xi,Ji,$i,Qi,Zi,nr,er,tr,ir,rr,ar,or],Fo=[],Vo=(Uo.forEach(function(n){null!=n.ts&&Fo.push(n)}),[]),Wo=[];function jo(n){var e,t=Xn(Uo),i={};n?(n=Le(e=ee.tt&&o.beta_fd)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:ae("Unknown flux data: "+n)}):i=null,Vo=[],Wo=[],Uo.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?Wo:Vo).push(n)})}jo(),Jn([Yr,Kr],"st",p);var Bo,Ho,Go,qo,zo,Yo=[sa,ua,u,wa,ba,fa,na],Ko={},Xo=(Yo.forEach(function(n){Ko[n.nm.toUpperCase()]=H+n.nm}),[mr,_r,vr,hr,gr,Er,sr,ur,yr,Sr,Ir,Ar,Tr,br,Or,Cr,Mr,Dr,Rr,Nr,kr,Pr,wr,Lr,a,xr,Ur,Fr,Vr,Wr,jr,Br,Hr,Gr,qr,zr,Yr,Kr,i,Xr,Jr,$r,Qr,s,Zr,na,ea,ta,ia,ra,aa,oa,sa,ua,ca,la,da,fa,pa,u,ma,_a,va,ha,ga,Ea,ya,Sa,Ia,Aa,Ta,c,ba,Oa,Ca,Ma,Da,Ra,Na,ka,Pa,wa,La,xa,Ua,Fa,Va,Wa,ja,Ba,Ha,Ga,l,qa,za,Ya,d,Ka,Xa,Ja,$a,Qa,cr,Za,no,eo,to,io,ro,ao,oo,so,uo,co,lo,fo,po,mo,_o,vo,ho,go,Eo,yo,So,Io,lr,Ao,To,bo,Oo,e,Co,Mo,Do,Ro,No,ko,n]),Jo=Kn(Xo),$o=Xo.concat(Uo),Qo=Kn($o),Zo=[hr],ns=[],es=[];function ts(n){var e,t=Xn(Xo),i={};Ho=Go=qo=zo=!1,n?((n=Le(e=ee.tt&&o.beta_md)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:"custom_metadata_all"==n?Ho=!0:"custom_events_all"==n?Go=!0:"vendor_metadata_all"==n?qo=!0:"vendor_events_all"==n?zo=!0:ae("Unknown metadata: "+n)}),Zo.forEach(function(n){i[n.nm]=!0})):Ho=Go=qo=zo=!(i=null),ns=[],es=[],Xo.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?es:ns).push(n)})}ts();var is="ad",rs=/^live$/i,as={"application/x-mpegURL":"HLS","application/dash+xml":"DASH","application/vnd.ms-sstr+xm":"Smooth","video/x-flv":"Flash","video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"};var t=[[/Opera\/([\d.]+)/,"Opera"],[/OPR\/([\d.]+)/,"Opera"],[/Edge\/([\d.]+)/,"Microsoft Edge"],[/Edg\/([\d.]+)/,"Microsoft Edge"],[/MSIE ([\d.]+)/,"Microsoft Internet Explorer"],[/Trident\/.*rv:([\d.]+)/,"Microsoft Internet Explorer"],[/Seamonkey\/([\d.]+)/,"Seamonkey"],[/Firefox\/([\d.]+)/,"Firefox"],[/Chromium\/([\d.]+)/,"Chromium"],[/Chrome\/([\d.]+)/,"Chrome"],[/Safari\/([\d.]+)/,"Safari"]],f=[[/Windows 10\.0|Windows NT 10\.0/,"Windows 10"],[/Windows 8\.1|Windows NT 6\.3/,"Windows 8.1"],[/Windows 8|Windows NT 6\.2/,"Windows 8"],[/Windows 7|Windows NT 6\.1/,"Windows 7"],[/Windows NT 6\.0/,"Windows Vista"],[/Windows NT 5\.2/,"Windows Server 2003"],[/Windows NT 5\.1|Windows XP/,"Windows XP"],[/Windows NT 5\.0|Windows 2000/,"Windows 2000"],[/Win 9x 4\.90|Windows ME/,"Windows ME"],[/Windows 98|Win98/,"Windows 98"],[/Windows 95|Win95|Windows_95/,"Windows 95"],[/Windows NT 4\.0|WinNT4\.0|WinNT|Windows NT/,"Windows NT 4.0"],[/Windows CE/,"Windows CE"],[/Win16/,"Windows 3.11"],[/Tizen/,"Tizen"],[/Android/,"Android"],[/OpenBSD/,"Open BSD"],[/SunOS/,"Sun OS"],[/Linux|X11/,"Linux"],[/iPhone|iPad|iPod/,"iOS"],[/Mac OS X/,"Mac OS X"],[/MacPPC|MacIntel|Mac_PowerPC|Macintosh/,"Mac OS"],[/QNX/,"QNX"],[/UNIX/,"UNIX"],[/BeOS/,"BeOS"],[/OS\/2/,"OS/2"],[/nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver/,"Search Bot"]],st=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],os=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function ss(n,e,t){e&&t.push(n)}function us(n,e,t){t.push(n+"="+e)}function cs(n,e,t){t.push(n+(o.cmcd_ntq?"="+e:'="'+e+'"'))}function ls(n,e,t){t.push(n+'="'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function ds(n){return"false"!==n}function fs(n){return+n}function ps(n){return n.replace(/"/g,"")}function ms(n){return n.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var _s,vs,pe={bl:[0,[us,fs],sr],br:[1,[us,fs],ur],bs:[2,[ss,ds],yr],cid:[3,[ls,ms],Sr],d:[1,[us,fs],Ir],dl:[0,[us,fs],Ar],mtp:[0,[us,fs],Tr],nor:[0,[ls,ms],br],nrr:[0,[ls,ms],Or],ot:[1,[cs,ps],Cr],pr:[3,[us,fs],Mr],rtp:[2,[us,fs],Rr],sf:[3,[cs,ps],Nr],sid:[3,[ls,ms],kr],st:[3,[cs,ps],Pr],su:[0,[ss,ds],wr],tb:[1,[us,fs],Lr],v:[3,[us,fs],a]},hs={bs:!1,su:!1,v:1,pr:1},gs="org.svalabs-";function Es(n){for(var e,t,i=[[],[],[],[]],r=te.keys(n),a=0;a<r.length;a++)e=r[a],(t=pe[e])&&t[3]&&t[1][0](e,n[e],i[t[0]]);return i}function ys(n){var e,t=te.keys(pe);for(_s=!1,vs="header"===(Se.options.cmcdMode||o.cmcd_mode),e=0;e<t.length;e++)pe[t[e]][3]=!1;if(n&&Ue(n)&&0<n.length)if(_s=!0,"na"==n[0])for(e=0;e<t.length;e++)pe[t[e]][3]=!0;else n.forEach(function(n){var e=pe[n];e?e[3]=!0:ae("Unknown CMCD key: "+n)})}function Ss(n,e,t){for(var i,r,a=te.keys(n),o=0;o<a.length;o++)delete n[a[o]];for(o=0;o<e.length;o++)0!=((i=e[o]).ap&t)&&null!=(r=null==(r=(r=i.st||i.se)&&ke(r,i.nm))?i.df:r)&&(n[i.nm]=r)}function Is(n,e,t,i){for(var r,a,o,s,u=0;u<i.length;u++)o=(a=(r=i[u])[0]).nm,0!=(a.ap&t)?(s=e[o])&&s(r)||(n[o]=r[1],(s=a.st||a.on&&a.se)&&m(s,o,r[1])):ae("Setting inapplicable data",a)}function As(n,e){return n[e.nm]}function Ts(n,e,t,i,r){var a,o=[];return t&&o.push([t,a=e(t)+i]),r&&o.push([r,e(r)+i]),n(o),a}function me(n,e,t){if(e)for(var i,r,a=0;a<e.length;a++)if(r=n[i=e[a]])n=r;else{if(t)return null;n=n[i]={}}return n}function bs(n,e){n=me(n,e.p||Gt,!0);return n&&n[e.nm]}function Os(n,e,t,i){for(var r,a,o,s=0;s<e.length;s++)0!=((r=e[s]).ap&t)&&null!=(o=He(n[a=r.nm],r.dv))&&(me(i,r.p)[a]=o)}pe[gs+"rid"]=[0,[ls,ms],Dr],pe[gs+"tid"]=[0,[ls,ms]],pe[gs+"cmi"]=[0,[us,fs]],pe[gs+"pmi"]=[0,[us,fs]],ys();var Cs,Ms,Ds,Rs,Ns,ks,Ps,ws,Ls,xs,Us,Fs,Vs,Ws,js,Bs,Hs,_,Gs={},qs={},zs=ke(p,_n)||[],Ys=[],Ks=1,Xs=2,Js=4,$s=Js,Qs=Xs|Ks|$s,Zs=0,nu=1,eu=[];function tu(n){return null!=n?6e4*n:12e5}function iu(n,e){if(!Qs&&0<zs.length){for(var t,i=se(),r=0,a=0;a<zs.length;a++)zs[a].p&&(t=!0,Os(Gs,ns,$e,zs[a].m)),r=ie.max(r,i-zs[a].t);Fs&&fu(zs,0,Wn(Dn,i,r,t),n),e=!0}e&&(zs=[],Pe(p,_n)),Ps=null}function ru(n){if(!(Qs&=~n)){n=eu[Zs];if(null==Ps&&iu(),re(n))try{n()}catch(n){oe(n,"onConfigReady")}}}function au(n,e,t,i,r,a,o,s,u){if(4==n.readyState){var c=se(),l=n.status;if(e+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[r++];if(null!=a)return L(function(){o.retry(se()),t(i,r,o)},1e3*a),void ae(e+"retry #"+r+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(n,c))||u&&u(e,l)||ae(e+"failed")}}function ou(e,t,i){Ls=Zn("POST",$n(ee.sm),{"Content-Type":"application/json","cache-control":"no-cache"},e,function(n){4==n.readyState&&(Ls=null,au(n,"Sampling API",ou,e,t,ee.rd,i,function(n){n=le(n.responseText);if(xs=n&&n[ee.ss+"_sampling"])return Fs=xs.in_sample,Us=!1,ru(Xs),m(p,vn,xs),!0},function(n){return Fs=Us=!0,ru(Xs),ae(n+"forced in"),!0}))})}function su(){var n;!ws||Qs&Ks||(ee.sw&&ee.sm?(ee.sp,(n=Jo[ee.sd])&&(ws.sampling_definition_params={namespace:ee.ss,key_name:n.nm,key_value:mu(n)}),(n=Jo[ee.sc])&&(ws.sampling_criteria_params={sampling:{key_name:n.nm,key_value:mu(n)}}),ws.sampling_override=o.sampling_override||"NONE",ws.sampling_request_id=ue(),ou(ce(ws),0,Wn(Cn,se()))):(Fs=!0,ru(Xs)),ws=null)}function uu(i,e,t){var n,r;ee.ci?(ee.tt&&(ee.mf=o.mock_config||ee.mf),Oe("Get config from "+(n=ee.mf||Re($n("https://"+ee.cf+"platform.datazoom.io/beacon/v2/config"),function(n){n.append($,ee.ci)}))),r=se(),Zn("GET",n,null,null,function(n){au(n,"Config API",uu,i,e,ee.rd,t,function(n,e){var t=le(n.responseText);if(t)return i(t,n.getResponseHeader("dz-extra"),r,e),!0},function(n,e){e<400||429==e||499<e||(ee.om=!1),i()})})):(ae("Missing configuration ID"),ee.om=!1,i())}function cu(){uu(function(n,e,t,i){ee.st=null,n&&function i(r,a){de(r)?te.keys(r).forEach(function(n){var e=r[n],t=a[n];de(t)?i(e,t):null==t?be("Unknown config key: "+n):null==e?be("Undefined config key: "+n):t&&(ee[t]=e)}):ae("Invalid config object",r)}(n,K),m(p,hn,ee.st),ee.st=tu(ee.st),m(p,gn,ee.od),xo(ee.ev,n),jo(ee.fd),ts(ee.md),ys(ee.cd),Bo={ad_blocker:1,device_id:1,mobile_connection:1,page_url:1,referrer_url:1},ee.og||(Un=[]),ee.os||(kn=null),O(ee.cm,"sort"),O(ee.am,"sort"),O(ee.cq,"sort"),O(ee.aq,"sort"),pu([[vr,ee.cc],[_r,ee.cl]]),Ys.forEach(function(n){var e,t,i,r,a,o=!1,s=bs(n.m,Er),u=wo[s];u?o=u.on:s.startsWith(G)?o=Go:s.startsWith(q)&&(o=zo),o&&(e=n.m,t={},ns.concat(es).forEach(function(n){null!=(i=bs(e,n))&&(me(t,n.p)[n.nm]=i)}),r=me(e,Gt),a=me(t,Gt),Vo.concat(Wo).forEach(function(n){null!=(i=bs(r,n))&&(a[n.nm]=i)}),Ho&&(i=me(e,fr,!0))&&te.assign(me(t,fr),i),qo&&(i=me(e,pr,!0))&&te.assign(me(t,pr),i),lu(t,a),n.m=t,zs.push(n))}),m(p,_n,zs),Ys=[];var r,n=Ea.nm,n=(Ea.on?(r=ke(v,n))||(r=ue(),m(v,n,r)):Pe(v,n),pu([[Ea,r]]),e);try{var a,o,s,u,c,l=n&&le(atob(n));l?(a=l.latitude,o=l.longitude,s=l.timezone_offset,c=(u=l.time_sync)&&+u,pu([[$r,l.client_ip],[Ja,l.mobile_connection],[Ya,l.asn],[Ba,l.region_code],[ja,l.region],[Ua,l.country_code],[xa,l.country],[Wa,l.postal_code],[La,l.city],[Fa,a?+a:null],[Va,o?+o:null],[Ha,l.continent],[Ga,l.continent_code],[qa,l.timezone_name],[za,null!=s?s/3600:null]]),c&&pu([[eo,ie.round(c-(t+i)/2)]])):ae("Missing or invalid dz-extra header")}catch(n){oe(n,"processDzExtra")}ee.ab&&_o.on&&null==mu(_o)?Zn("GET",$n(ee.ab),null,null,function(n){4==n.readyState&&(pu([[_o,!n.status]]),ru(Js))}):ru(Js),ru(Ks),su(),L(function(){ru($s),su()},ee.mh),te.keys(_e).forEach(function(n){n=_e[n].configCallback;n&&n(ee)})},0,Wn(Mn,se()))}function lu(n,e){var t=""+(Ns+1e7);me(n,hr.p)[hr.nm]=Ds+"_"+t.substr(-7,2)+"."+t.substr(-5),m(p,fn,++Ns),ii.on&&(e[ii.nm]=Ns)}function du(n,e,t,i,r,a,o){var s,u,c,l,d,o=o?Ke:Je,f=me(n,Gt);for(Os(Gs,ns,o,n),Os(Gs,Vo,o,f),(i=i||[]).push([Er,e],[gr,t]),s=0;s<i.length;s++)u=(c=i[s])[0],c[2]||0!=(u.ap&Xe)?u.on&&null!=(c=He(c[1],u.dv))&&(me(n,u.p)[u.nm]=c):ae("Invalid event data",u);Ho&&(o=Hn(Cs,r),e=n,r=ce(o),d=r?r.length:0,(l=ee.ml)&&l<d?ae("Custom metadata size: "+d+" > "+l):2<d&&(o=le(r))&&te.assign(me(e,fr),o)),qo&&(l=qn(Ms,a),d=n,l)&&te.assign(me(d,pr),l),Ie&&Me("evInfo",n),!(sn<rn)&&ee.le&&ee.le(n)||(r={p:Qs,m:n,t:t},Qs&Ks?Ys.push(r):(lu(n,f),zs.push(r),m(p,_n,zs),null==Ps&&(Ps=L(iu,ee.bd))))}function fu(t,e,i,n){var r,a=t.map(function(n){return n.m}),o=(a.forEach(function(n,e){var t,i=me(n,dr);i.versions=el,Za.on&&(me(n,Za.p)[Za.nm]=se()),xs&&(i[ee.ss+"_sampling"]=xs),null!=Us&&(i[ee.ss+"_forced_sampling_in"]=Us),e||(r=i[En],kn&&(te.keys(kn).forEach(Bn),kn=null),Un.length&&(r=r?r.concat(Un):Un,Un=[],r.length>ee.mc&&(r.sort(function(n,e){return n.batch()>e.batch()?1:-1}),t=r[r.length-ee.mc-1].batch(),r=r.filter(function(n){return n.batch()>t})),i[En]=r))}),$n(ee.mb)),a=ce(a);n&&R.sendBeacon&&R.sendBeacon(o,a)||Zn("POST",o,{"Content-Type":"application/json"},a,function(n){au(n,"Message post",fu,t,e,ee.rd,i,null,function(n,e){t.forEach(function(n){jn(n,e)}),r&&(Un=r.concat(Un))})})}function pu(n){Is(Gs,qs,Ke,n)}function mu(n){return Gs[n.nm]}function _u(n){if(zc&&(zc=!1,hu(_t,n)),!Ds||!Rs||(e=n,t=ee.st,e<ks&&ae("Activity time reversal: "+ks+" -> "+e),0<=t&&(e<ks||ks+t<=e))){iu(!(Ys=[]),!0);t=n,e=eu[nu];if(Ds=ue(),Rs=ks=t,pu([[Yr,Ds],[Kr,Rs],[ai,Ns=0],[si,0],[ui,0],[ci,0],[oi,0],[li,0],[di,0],[fi,0],[gi,0],[Ei,0],[yi,0]]),m(p,fn,Ns),m(p,pn,ks),Pe(p,vn),Ls&&Ls.abort(),Ls=xs=null,Fs=Us=null,Qs|=Xs,ws={},su(),re(e))try{e()}catch(n){oe(n,"onAppSessionStart")}}else m(p,pn,ks=n);var e,t;pu([[ni,n-Rs],[ha,ne.outerWidth],[_a,ne.outerHeight],[ro,Ee.title],[ao,D.href],[oo,Ee.referrer],[so,D.hostname],[ga,R.cookieEnabled]])}function vu(n,e,t){Ts(pu,mu,n,e,t)}function hu(n,e,t,i,r){0!=(n.ap&Ke)?(_u(e),n.on&&du({},n.nm,e,t,i,r,!0)):ae("Event inapplicable: "+n.nm+", ss",n)}function gu(e,t){var i,r;e&&Yo.forEach(function(n){i=H+n.nm,null!=(r=e[i])&&(t([[n,r]]),delete e[i])})}if(Ss(Gs,$o,Ke),Ds=mu(Yr),Rs=mu(Kr),Ns=ke(p,fn)||0,ks=ke(p,pn)||0,xs=ke(p,vn),Cs=ke(p,mn),Ms=ke(p,"__ss_vendor_md"),ee.st=tu(ke(p,hn)),ee.od=ke(p,gn),xs?(Fs=xs.in_sample,Us=!1,ru(Xs)):ws={},t.some(function(n){if(_=n[0].exec(N))return Vs=n[1],Ws=_[1],!0})||(_=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(N))&&(Vs=_[1],Ws=_[2]),(_=/Version\/([\d.]+)/.exec(N))&&(Ws=_[1]),f.some(function(n){if(n[0].test(N))return js=n[1],!0})){switch(_=null,js){case"Mac OS X":_=/Mac OS X (10[\d._]+)/.exec(N);break;case"Android":_=/Android ([\d._]+)/.exec(N);break;case"iOS":_=/OS (\d+_\d+(_\d+)?)/.exec(N);break;case"Tizen":_=/Tizen[ \/]([\d._]+)/.exec(N);break;default:(_=/Windows (.*)/.exec(js))&&(js="Windows")}_&&(Bs=_[1].replace(/_/g,"."))}else js=Bs="-";st.some(function(n){if(n[0].test(N))return Hs=n[1],!0}),pu([[s,N],[ma,Vs],[va,Ws],[Ta,js],[c,Bs],[Ia,Hs],[to,ee.cn],[io,ee.sv],[cr,3]]);var Eu="adapterID",yu="adapterOptions",Su="baseContext",Iu="contextType",Au="contextName",Tu="metadata",bu=0,Ou=2,Cu=["base","player","app"],_e={},Mu=[];function Du(n){if(!n.destroyed){n.setTimer(null);try{var e=n.destroyCallback;e&&e()}catch(n){oe(n,"onDestroy")}delete _e[n.id],n.removeListeners(),n.destroyed=!0}}function Ru(n,e,t,i,r,a,o){(r=r||[]).push([$a,n.id],[Qa,n.name]),du(e,t,i,r,Hn(n.customMetadata,a),qn(n.vendorMetadata,o))}function Nu(n,e){return!(null!=e&&!de(e)||(n.customMetadata=le(ce(e)),0))}function ku(n){var e=De(Gs);return e._c_=Hn(Cs,n.customMetadata),e._v_=qn(Ms,n.vendorMetadata),e}function Pu(){var t,c=[],i={},a={id:ue(),type:bu,destroyed:!1,destroyCallback:null,configCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(n,e,t){if(a.destroyed)return ae(n+" after destroyed"+(e?": "+e:""),t),!0},onDestroy:function(n){a.destroyCallback=n},onConfig:function(n){a.configCallback=n},setTimer:function(n){var e;t&&(0<=(e=Mu.indexOf(t))&&Mu.splice(e,1),t=null),n&&(Mu.push(n),t=n)},fireEvent:function(n,e,t,i,r){a.shallBlock("fireEvent",n.nm,n)||(_u(e),n.on&&Ru(a,{},n.nm,e,t,i,r))},fireVendorEvent:function(n,e,t){a.fireEvent({ap:I,nm:Lo(n,e),on:zo},se(),null,null,Gn(n,t))},addListener:function(n,e,t,i,r){if(n&&e){var a=n[i=i||"addEventListener"];if(re(a)){u=zn(n,t,s="listener: "+(s=e));var o=sn<an?u:function(){Nn(s,arguments),u.apply(null,arguments)};try{"-"===e?a.call(n,o):a.call(n,e,o),c.push([n,e,t,o,r||"removeEventListener"])}catch(n){oe(n,"addListener: "+e)}}else ae("Invalid add-listener method: "+i,n)}var s,u},removeListeners:function(r,a,o){c=c.filter(function(n){var e=n[0],t=n[1];if(r&&r!=e||a&&a!=t||o&&o!=n[2])return!0;var i=e&&e[n[4]];if(re(i))try{"-"===t?i.call(e,n[3]):i.call(e,t,n[3])}catch(n){}else ae("Invalid remove-listener method: "+n[4],e)})},stash:function(n,e,t){i[n]=[e,t]},unstash:function(n){n.forEach(function(e){var n=i[e];if(n){delete i[e];try{n[0].apply(null,n[1])}catch(n){oe(n,"unstash: "+e)}}})}},n={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return Cu[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){Du(a)},setMetadata:function(n){return Nu(a,n)},getMetadata:function(){return le(ce(a.customMetadata))},generateEvent:function(n,e){a.fireEvent({ap:I,nm:G+n,on:Go},se(),null,e)},dumpDzData:function(n){var e=le(ce(ku(a)));return null==n?e:e[n]}};return a.basePublicMethods=n,a.publicContext=De(n),_e[a.id]=a}function wu(n,e){var t,i;return null==n?i=Pu():(i=(t=de(n)&&re(n.contextID)&&n.contextID())&&Le(t)&&_e[t])&&i.type===bu&&i.publicContext===n||(ae("Invalid contextOptions."+Su,n),i=Pu()),null!=e&&(i.name=e),i}tl("player_ctx_core","2.1.0");function Lu(n){return ee.sn&&ee.sn[n]||""+n}var xu,Uu,Fu,Vu,ve=[],Wu="idle",ju=(ve[2]=ve[9]="buffering",ve[3]=ve[10]="playing",ve[4]=ve[11]="paused",ve[5]=ve[12]="seeking",ve[6]="ended",ve[0]=ve[7]=ve[8]=Wu,"impression"),Bu="firstQuartile",Hu="midPoint",Gu="thirdQuartile",qu="complete",zu="bufferStart",Yu="bufferFinish",Ku="clickThrough",Xu="volumeChange",Ju="fullscreen",$u="exitFullscreen",Qu="finish",Zu=function(x,U,r){var i,a,o,F,V,W,j,B,f={},H={},g={},G={},q={},z={},Y=[],K=[],X=[],J=[],$=[],Q=[],Z=[],p=[],nn=ue(),m=wu(r[Su],r[Au]),s=Hc(r[Eu],1),u=r[yu];function en(){var e,n;o&&(e=se(),n=te.keys(o).map(function(n){return o[n]}),o=null,n.forEach(function(n){w(n.ev,e,n.dl)}))}function E(n,e,t){(o=o||{})[t||n.nm]={ev:n,dl:e}}function _(n){Is(f,H,1,n)}function y(n){Is(g,G,2,n)}function S(n,e){return As(e?g:f,n)}function I(n){return g[n.nm]}function tn(){var n=S(sa),e=S(ua);Ss(f,$o,1),_([[Ra,"content"],[sa,n],[ua,e]])}function rn(){Ss(g,$o,2),y([[Ra,"ad"]])}function n(n,e){H[n.nm]=e}function an(n,e){G[n.nm]=e}function on(n,e){z[n.nm]=e}function e(n,e,t,i){for(var r=[],a=0;a<e.length;a++)r[e[a]]=!0;Z[n]={tr:r,en:t,ex:i}}u=de(u)?De(u):{},s&&(W=s[2],j=s[3],te.assign(u,s[4]||{}),F=u[Wc],V=u[jc],(u[Vc]||[]).forEach(function(n){q[n[0].nm]=n[1]})),x&&te.keys(_e).some(function(n){n=_e[n];if(1==n.type&&n.player===x)return n.publicContext.destroy(),!0});var sn,t,un,c,cn,l,ln,dn,A,fn,pn,T,mn,b,O,_n,vn,hn,gn,En,C,M,yn,Sn,d,v,D,R,In,N,k,An,h=0,Tn=Wu,bn=1,On=se(),Cn=Ce(ae,"Abnormal duration increment: ",1,1e3,3e5);function Mn(){return 2==bn}function Dn(){return!!b&&b.type===is}function Rn(n){A=n+ee.hi,Oe("Heartbeats started")}function Nn(){A&&Oe("Heartbeats stopped"),A=0}function P(n,e,t){return Ts(_,S,n,e,t)}function kn(n){var e=n-On;e<0||e>ee.ed?Cn.log(e):0<e&&(4==h?P(_i,e,pi):11==h?P(mi,e,pi):2==h?(t&&P(Vi,e,Ui),P(Kt,e,zt)):9==h&&(t&&P(Fi,e,Ui),P(Yt,e,zt))),On=n}function Pn(n,e){null!=n&&(p[n]=e)}function w(e,t,i,n,r,a){if(!m.shallBlock("fireEvent",e.nm,e))if(a=a||(Dn()?2:bn),0!=(e.ap&a)){if(_u(t),(i=i||[]).push([no,m.id]),An||(An=!0,(u=X.some(function(n){try{return n(t,i,e,a)}catch(n){oe(n,"extEventHandler")}}))||(u=(c=z&&z[e.nm])&&c(t,i,e,a)),An=!1),!u){kn(t);for(var o,s,u,c,l=[[bi,Tn]],d=0;d<Fo.length;d++)s=p[(o=Fo[d]).ts],l.push([o,s?t-s:0]);_(l),null==S(qt)&&ye&&(c=ye.downlink)&&_([[qt,1e3*c]]),Pn(e.rt,t),Pn(2==a?e.rta:e.rtc,t),!e.on||e.mm&&!e.mm[S(Ra,2==a)]||(c=me(u={},Gt),2==a?(Os(g,ns,2,u),Os(g,Vo,2,c),Os(f,ns,Je,u),Os(f,Vo,Je,c)):(Os(f,ns,1,u),Os(f,Vo,1,c),Os(g,ns,Je,u),Os(g,Vo,Je,c)),Ru(m,u,e.nm,t,i,n,r))}}else ae("Event inapplicable: "+e.nm+", "+a,e)}function wn(n){var e=n[1];e&&e!=S(n[0])&&E(pt)}function Ln(n,e){var t=3==e?C:M;if(n!=t){var i,r,a,o,s,u,c,l,d=se();if(A||Rn(d),fn=!0,3==e){if(s=F||ee.mp,C=n,a=d-yn,yn=d,i=S(Ca),T){var f,p=b;if(null==_n&&0<i&&(f=T.locate(i),_n=(f.type?f.start:i)-f._e),i=_n,O&&t>=O.start&&t<=O.end||(O=T.locate(t)),(b=b&&n>=b.start&&n<=b.end?b:T.locate(n))&&(u=b.type,c=b.start,l=b._d),b!=p&&(f=k<=n&&n<k+s,u===is?N!==c&&l&&((null==N?Vn:(f&&w(Mt,d),Hn))(d),N=c,k=b.end,jn(),y(l.concat([[Eo,k-N]])),Bn(d,b._a),w(it,d,null,null,null,2),M=0,Sn=d):null!=N&&(f&&w(Mt,d,null,null,null,2),Hn(),Wn(d))),u===is)return void(l&&(Ln(p=n-c,10),g[fe.nm]=p))}dn||(r=vn=!vn&&ee.cm?ee.cm.slice():vn)}else s=V||ee.mp,M=n,a=d-Sn,Sn=d,i=I(Eo),r=hn=!hn&&ee.am?ee.am.slice():hn;if(null!=t&&null!=n&&0<=t&&t<n&&n<=t+s){if(0<i&&r)for(var m,_,v=0,h=3==e&&O&&b?(_=((O.type?O.start:t)-O._e)/i,((u?c:n)-b._e)/i):(_=t/i,n/i);v<r.length&&!(h<(m=r[v]/100));)_<m?(r.splice(v,1),E(At,[[jr,100*m]],At.nm+m)):v++;if(3==e){if(D=n,a<0||a>ee.ed)Cn.log(a);else if(0<a)if(u)P("promo"===u?Ai:null,a,vi);else if(i=P(Ii,a,vi)/1e3,ee.cq)for(gn=gn||ee.cq.slice();null!=(o=gn[0])&&o<=i;)gn.shift(),E(Nt,[[Br,o]],Nt.nm+o)}else if(R=n,a<0||a>ee.ed)Cn.log(a);else if(0<a&&(P(hi,a,vi),vu(gi,a),!1===S(oa)&&vu(Ei,a),!0===S(Oi)&&vu(yi,a),i=Ts(y,I,Si,a)/1e3,ee.aq))for(En=En||ee.aq.slice();null!=(o=En[0])&&o<=i;)En.shift(),E(Nt,[[Br,o]],Nt.nm+o)}}}function xn(n,e){null==d&&null!=n&&null!=D&&n!=D&&(d=D,vu(fi,1),w(xt,e||se()))}function Un(n,e){null==v&&null!=n&&null!=R&&n!=R&&(v=R,w(xt,e||se()))}function Fn(n){sn&&w(Wt,n),sn=un=!1,bn=1,d=D=null,Nn()}function Vn(n){var e,t,i="pre";S(Ii)>1e3*ee.ep&&(e=S(fe),t=S(Ca),i=null!=e&&null!=t&&e+ee.ep>t?"post":"mid"),c=l=ln=!1,rn(),_([[vo,ue()],[Ao,i],[ri,0]]),w(nt,n)}function Wn(n){In+=n-p[14],w(et,n,null,null,null,2),_([[vo,null],[Ao,null],[ri,null]])}function jn(){ln||(ln=!0,y([[To,a||ue()],[Si,0]]),a=null)}function Bn(n,e){var t=eu[4];if(c=!0,hn=En=null,vu(ai,1),P(ri,1),re(t))try{t(i,e)}catch(n){oe(n,"onAdStart")}w(Ct,n)}function Hn(){if(c){var n=eu[5];if(re(n))try{n(i)}catch(n){oe(n,"onAdEnd")}}c=l=ln=!1,v=R=N=k=null,rn()}function Gn(n,e,t,i){var r,a,o,s;n!=h&&(o=Z[h],r=Lu(h)+" => "+Lu(n),a=ve[n]||Tn,m.shallBlock("setState",r)||(o.tr[n]?(Oe("state: "+r+" ("+a+")"),(o=o.ex)&&o(e,n,t,i),kn(e),s=h,Tn=a,(o=Z[h=n].en)&&o(e,s,t,i),fn=!0):ae("Invalid transition: "+r)))}function qn(n){return n!=h&&!!Z[h].tr[n]}function zn(){return 0==h||7==h||8==h}function L(o,s,u){return function(n){var e,t,i,r,a;e=o,t=s,i=u,a=(n=n)[0],n=n[1]=He(n[1],a.dv),a=S(a,i),null!=i&&i!=Mn()||null==a||null==n||(t?!n!=!a&&E(n?e:t):n!=a&&E(e,r=e==Pt?a<n?[[xr,"up"]]:n<a?[[xr,"down"]]:null:r))}}function Yn(n){n[1]=He(n[1],n[0].dv)}e(0,[1,8]),e(1,[2,7,8,16],function(n){var e=eu[2];if(Fn(n),sn=!(cn=!1),dn=rs.test(S(fa)),In=0,_([[Qr,nn],[$t,n]]),nn=ue(),vu(di,1),B&&B(),re(e))try{e(i)}catch(n){oe(n,"onContentSessionStart")}T=mn,mn=b=O=_n=null,N=k=null,pn=0,w(It,n)}),e(2,[3,4,5,7,8,16],function(n,e){(t=3==e)&&(P(xi,1,wi),w(Ft,n)),w(ct,n)},function(n){w(lt,n),t&&w(Vt,n),t=!1,un||w(yt,n)}),e(3,[2,4,5,6,7,8,16],function(n){var e,t;un||(t=(e=n-p[0])-In,un=!0,vn=gn=null,vu(oi,1),_([[rr,t],[ar,e]]),w(Ct,n,[[qr,t],[zr,e]])),C=D=S(fe),yn=n,null!=d&&(w(Ut,n,[[Hr,1e3*d],[Gr,null!=C?1e3*C:null]]),d=null),w(Rt,n),cn&&(cn=!1,w(Lt,n)),A||Rn(n)},function(){C=null}),e(4,[2,3,5,6,7,8,16],function(n){cn||(cn=!0,vu(li,1),w(bt,n))}),e(5,[2,3,4,6,7,8,16],function(n){xn(S(fe),n)}),e(6,[2,3,4,5,7,8,16],function(n){w(Mt,n)}),e(7,[],function(n){Fn(n)}),e(8,[],function(n,e,t){w(vt,n,t),Fn(n)}),e(9,[10,11,12,14,15,7],function(n,e){jn(),(t=10==e)&&(P(Li,1,wi),w(Ft,n)),w(ct,n)},function(n){w(lt,n),t&&w(Vt,n),t=!1}),e(10,[9,11,12,13,14,15,7],function(n,e,t,i){jn(),c||Bn(n,i),M=R=I(fe),Sn=n,null!=v&&(w(Ut,n,[[Hr,1e3*v],[Gr,null!=M?1e3*M:null]]),v=null),w(Rt,n),l&&(l=!1,w(Lt,n)),A||Rn(n)},function(){M=null}),e(11,[9,10,12,14,15,7],function(n){l||(l=!0,w(bt,n))}),e(12,[9,10,11,13,14,15,7],function(n){Un(I(fe),n)}),e(13,[9,10,17,7],function(n){w(Mt,n),Hn()}),e(14,[9,10,17,7],function(n){w(ot,n),Hn()}),e(15,[9,10,17,7],function(n,e,t){w(vt,n,t),Hn()}),e(16,[9,10,15,17,7],function(n){bn=2,Vn(n)}),e(17,[2,3,4,5,6,7],function(n){Wn(n),bn=1});var Kn,Xn=ki,Jn=ki;function $n(n){var i=[],r=0,a=0;return i.locate=function(e){return i.find(function(n){return e>=n.start&&e<=n.end})},n.forEach(function(n){var e=n.start,t=n.end;xe(e)&&xe(t)&&(e=e<r?r:e)<t?(r<e&&i.push({start:r,end:e,_e:a}),i.push(te.assign({},n,{start:e,_e:a})),n.type&&(a+=t-e),r=t):ae("Skipped time span",n)}),i.push({start:r,end:he.MAX_VALUE,_e:a}),i}function Qn(n,e){n=n&&n({type:Ae,ack:e,appSID:mu(Yr),ctSID:S(Qr)});n&&n["catch"](function(n){be("Cast transfer message rejected",n)})}function Zn(n){var e,t=m.publicContext,i=null;m.player=n,te.assign(t,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return n},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(Qr)},nextContentSessionID:function(){return nn},playerState:function(){return Tn},destroy:function(){if(!m.destroyed){qn(7)&&Gn(7,se());for(var n=0;n<K.length;n++)try{K[n]()}catch(n){oe(n,"extOnDestroy")}Du(m)}},startContentSession:function(){return!!zn()&&(m.reset(),m.setState(1),m.setState(2),!0)},setMetadata:function(n){return!!Nu(m,n)&&(gu(m.customMetadata,m.setData),!0)},annotateContentSession:function(n){return null==n?!(mn=null):!!Ue(n)&&(mn=$n(n.slice().sort(function(n,e){return n.start>e.start?1:-1})),!0)},dumpDzData:function(n){var e=te.assign(ku(m),f,g),t=Ra.nm;return e[t]=(Mn()||Dn()?g:f)[t],e=le(ce(e)),null==n?e:e[n]}}),ec.forEach(function(n){try{n(t,m,Y,K,X,J,$,Q)}catch(n){oe(n,"extInit")}});try{i=s?W?W(n,m,u):null:"Missing adapter"}catch(n){i=oe(n,s[0]+" initContext")}return i?(Te(i),t.destroy()):(null!=(e=r[Tu])&&t.setMetadata(e),e=se(),w(mt,e),w(Dt,e),m.setTimer(function(){for(var n=0;n<Y.length;n++)try{Y[n]()}catch(n){oe(n,"extOnTimer")}if(Kn)try{Kn()}catch(n){oe(n,"onTimer")}var e=se();kn(e),A&&A<=e&&(fn?(w(Et,e,[[Wr,++pn]]),A=e+ee.hi,fn=!1):Nn())})),t}return 1&(q[Xn.nm]||0)&&(Xn=Ri),2&(q[Jn.nm]||0)&&(Jn=Ri),n(Ca,Yn),an(Eo,Yn),n(da,function(n){var e=n[1];n[1]=e&&as[e]||e}),n(fa,function(n){dn=rs.test(n[1])}),n(fe,function(n){5==h||2==h?xn(n[1]):3==h&&Ln(n[1],3);for(var e=0;e<J.length;e++)try{J[e](n)}catch(n){oe(n,"extPlayheadHandler")}}),an(fe,function(n){12==h?Un(n[1]):10==h&&Ln(n[1],10)}),n(Xn,L(Pt,null,!1)),an(Jn,L(Pt,null,!0)),n(oa,L(Tt,Bt)),n(ra,L(gt,ht)),n(na,L(dt,ft)),n(ka,L(wt)),n(Na,L(wt)),n(or,L(Ht)),n(Qt,L(ut,null,!1)),an(Qt,L(ut,null,!0)),n(Zt,L(jt)),n(pa,L(jt)),n(Xr,wn),n(Jr,wn),n(Ci,function(n){var e,t,i,r,a=n[1];a=a&&re(a.getBoundingClientRect)?"visible"==Ee.visibilityState?(e=(r=a.getBoundingClientRect()).left,t=r.right,i=r.top,r=r.bottom,ie.min(100,ie.max(0,ie.round(100*(ie.min(t,ne.innerWidth)-ie.max(e,0))*(ie.min(r,ne.innerHeight)-ie.max(i,0))/((t-e)*(r-i)))))):0:He(a,Ci.dv),null!=(n[1]=a)&&_([[Oi,50<=a]])}),n(Jt,function(n){var e=n[1];if(e&&re(e.end)){var t,i,r=S(fe);if(null!=r)for(t=0;t<e.length;t++)if(i=e.end(t),r>=e.start(t)&&r<=i)return void(n[1]=1e3*(i-r));n[1]=0}}),on(yt,function(n,e,t,i){2==i&&(a=ue(),e.push([To,a,!0]))}),on(it,function(n,e){a&&e.push([To,a,!0])}),on(vt,function(n,e,t,i){vu(1==i?ci:ui,1,si)}),tn(),rn(),te.assign(m,{type:1,fireEvent:w,fire:function(n,e,t){w(n,se(),e,null,null,t)},setState:function(n,e,t){Gn(n,se(),e,t)},canSetState:qn,reset:function(){qn(7)&&Gn(7,se()),tn(),rn(),p=[],h=0,Tn=Wu},setData:function(n){_(n),en()},setAdData:function(n){y(n),en()},getData:S,getAdData:I,getState:function(){return h},isIdle:zn,isAdIdle:function(){return 13==h||14==h||15==h},isInAds:Mn,isInSsaiAds:Dn,onTimer:function(n){Kn=n},onCtSessionStart:function(n){B=n},matchCtSource:function(n){return S(Pa)==n},reqCtSID:function(){return zn()?nn:S(Qr)},reqTracer:function(n,a){n=Re(n,function(n){n["delete"]("CMCD")});var e,t=m.reqCtSID(),i=ue(),r=((a=te.assign({},a||{},{sid:t}))[gs+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(e=S(ba))&&(a.cid=e),{url:n,sid:t,rid:i,cmcd:a,start:se()});return{reqID:i,urlBase:n,url:function(){var e=Es(a);return Re(n,function(n){n.append("CMCD",e[0].concat(e[1],e[2],e[3]).sort().join())})},headers:function(){for(var n={},e=Es(a),t=0;t<4;t++)e[t].length&&(n[os[t]]=e[t].sort().join());return n},enabledData:function(){for(var n,e,t=te.keys(a),i={},r=0;r<t.length;r++)n=t[r],(e=pe[n])&&e[3]&&(i[n]=a[n]);return i},status:function(n){r.status=n},start:function(){r.start=se()},resp:function(n){r.resp=null!=n?r.start+n:se(),Ie&&Me("reqInfo",r)},end:function(n){var e=se(),t=(r.end=null!=n?r.start+n:e,te.assign({},hs,a)),i=[];te.keys(t).forEach(function(n){var e=pe[n];e&&e[2]&&i.push([e[2],t[n]])}),w(St,e,i,null,null,1),Ie&&Me("reqInfo",r)}}},updateTimedMetadata:function(n,e,t,i,r){for(var a=0;a<$.length;a++)try{$[a](n,e,t,i,r)}catch(n){oe(n,"extTimedMetadataHandler")}},addCtTimeSpans:function(n){var u=T?T.filter(function(n){return n.type}):[];n.forEach(function(n){for(var e,t,i,r,a=n.start,o=n.end,s=0;s<u.length&&(i=(t=u[s]).start,r=t.end,!(o<=i));s++)a<r&&(i<a?(u.splice(s+1,0,te.assign({},t,{start:a})),t.end=a):(e||(u.splice(s++,0,n),e=!0),o<r?t.start=o:u.splice(s--,1)));e||u.splice(s,0,n)}),T=$n(u),b=O=_n=null},initCastTransfer:function(n){zn()||Qn(n,!1)},handleCastMessage:function(n,e){!n||n.type!==Ae||zn()||(m.setData([[Xr,n.appSID],[Jr,n.ctSID]]),n.ack)||Qn(e,!0)},sa:{}}),s&&_([[sa,s[1]]]),Qs&Ks&&ys((Xn=Se.options).cmcdEnable?Xn.cmcdKeys||["sid","org.svalabs-rid"]:null),U?j?new ge(function(e,t){try{j(U,m,u).then(function(n){i=Zn(n),e(i)},function(n){Te(n),t(n)})}catch(n){t(oe(n,s[0]+" createTargetObject"))}}):ge.reject("Not implemented"):i=Zn(x)},nc=function(n,a){var o=new(n||Zc),s=(a=a||nl,{});function u(){return{currentTime:o.currentTime}}function c(){return{getAdId:function(){return s.adId},getAdSystem:function(){return s.adSystem},getAdvertiserName:function(){return s.advertiserName},getCreativeId:function(){return s.creativeId},getDealId:function(){return s.dealId},getDuration:function(){return s.duration},getSkipTimeOffset:function(){return s.skipTimeOffset},getVastMediaBitrate:function(){return s.vastMediaBitrate},getVastMediaWidth:function(){return s.vastMediaWidth},getVastMediaHeight:function(){return s.vastMediaHeight},getWrapperAdIds:function(){return s.wrapperAdIds},getWrapperAdSystems:function(){return s.wrapperAdSystems},getWrapperCreativeIds:function(){return s.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return s.adPodIndex},getTimeOffset:function(){return s.adTimeOffset}}},h:{clickThroughUrl:s.clickThroughUrl}}}return o.dispatch=function(n,e,t){var i,r;t=t||{},e&&((i=e.media)&&te.assign(o,i),i=e.ima)&&((e=i.adsManager)&&te.assign(o,e),(e=i.ad)&&te.assign(s,e),t.getAd=c,t.getAdData=u,r=i.error)&&(t.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),n&&(e=new a(n),te.assign(e,t),o.dispatchEvent(e))},o.getBoundingClientRect=function(){return o.boundingClientRect||{left:0,right:0,top:0,bottom:0}},o.getVolume=function(){return o.volume},o},ec=[],tc="REQUEST_COMPLETE",ic="SLOT_STARTED",rc="SLOT_ENDED",ac="AD_INITIATED",oc="AD_BUFFERING_START",sc="AD_BUFFERING_END",uc="AD_PAUSE",cc="AD_RESUME",lc="AD_IMPRESSION",dc="AD_IMPRESSION_END",fc="AD_COMPLETE",pc="AD_SKIPPED",mc="AD_CLICK",_c=(il("freewheel","2.0.0"),ec.push(function(n,i,e,t){var r,a,o=i.setState,s=i.setAdData,u=i.fire,c={},l={on:{}};function d(){r&&(i.removeListeners(r),c={},r=a=null)}l.$update=l.update=function(n,e){var t;i.isInAds()&&(e&&s([[Oo,O(e,"getTimePosition")]]),a&&(s([[fe,O(a,"getPlayheadTime")],[Eo,O(a,"getDuration")],[yo,O(a,"getAdId")],[go,a._creativeId],[Mo,O(a,"getDealId")],[Do,O(a,"getSkipOffset")]]),e=O(a,"getActiveCreativeRendition"))&&(t=O(e,"getHeight"),s([[Pi,O(e,"getWidth")],[Ri,t],[Ni,t?t+"p":null]])),n)&&(e=O(n,"getAdVolume"),i.setData([[or,100*e],[oa,0==e]]))},l.on[tc]=function(n,e){e.success?u(It,null,2):u(vt,null,2)},l.on[ic]=function(n,e){a=null,o(16),l.update(n,e.slot)},l.on[rc]=function(){o(17),a=null},l.on[ac]=function(){s([[Ti,1]]),u(yt,null,2)},l.on[oc]=function(){o(9)},l.on[sc]=l.on[cc]=function(){o(10,null,a)},l.on[lc]=function(){o(10,null,a),u(it,null,2)},l.on[uc]=function(){o(11)},l.on[fc]=function(){o(13),a=null},l.on[pc]=function(){o(14),a=null},l.on[dc]=function(){a=null},l.on[mc]=function(){u(tt)},l.on["ERROR"]=function(n,e){o(15,[[Ur,e.errorCode],[Fr,e.errorInfo]]),a=null},l.on["AD"]=function(n,e){a=e.adInstance,l.update(n);var t=c[e.subType];t&&t(n,e)},l.$on=De(l.on),i.sa.fwContext=l,e.push(function(){r&&l.update(r)}),t.push(d),Yn({attachFwContext:function(n){var e;!i.shallBlock("attachFwContext",null,n)&&n!=r&&(d(),r=n)&&(e=b(ne.tv,["freewheel","SDK"]),[tc,ic,rc,"AD"].forEach(function(t){var n=e&&e["EVENT_"+t];n&&i.addListener(r,n,function(n){var e=l.on[t];e&&e(r,n)})}),[ac,oc,sc,uc,cc,lc,dc,fc,pc,mc,"ERROR"].forEach(function(i){var n=e&&e["EVENT_"+i];n&&(c[n]=function(n,e){var t=l.on[i];t&&t(n,e)})}))},detachFwContext:d},[n,i])}),"play"),vc="waiting",hc="playing",gc="pause",Ec="seeking",yc="seeked",Sc="ended",Ic="durationchange",Ac="ratechange",Tc="timeupdate",bc=(il("html5","2.0.0"),ec.push(function(n,a,e,t){var r,o,s,u,i=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function f(){o&&d(o),r&&d(r),r=o=null}function p(){if(r){for(var n,e,t,i=0;i<r.length;i++)"metadata"===(t=r[i]).kind?e=e||t:"showing"===t.mode&&(n=n||t);s||c([[pa,!!n],[Zt,n?n.label||n.language:null]]),o!=e&&(o&&d(o),o=e)&&l(o,"cuechange",function(){var n=o.activeCues;if(n)for(var e,t,i=0;i<n.length;i++)(t=(e=n[i]).value)&&a.updateTimedMetadata("ID3",e.startTime,e.endTime,t.key,t.data)})}}t.push(f);var m={on:{}};function _(){u&&d(u),u=null}m.$update=m.update=function(n,e){e&&(c([[Ca,n.duration],[ta,n.muted],[ia,n.playbackRate]]),p()),a.isInAds()||c([[fe,n.currentTime],[Ti,n.playbackRate],[ka,n.offsetWidth],[Na,n.offsetHeight],[Ci,n],[Jt,n.buffered],[aa,n.loop],[oa,n.muted],[or,100*n.volume],[la,n.readyState]])},m.on[_c]=function(n){a.isIdle()&&(a.reset(),m.update(n,!0),i(1),i(2))},m.on[vc]=function(n){m.update(n),i(2)},m.on[hc]=function(n){m.update(n),a.isAdIdle()&&i(17),i(3)},m.on[gc]=function(n){m.update(n),i(4)},m.on[Ec]=function(n){m.update(n),i(5)},m.on[yc]=function(n){m.update(n),i(n.paused?4:3)},m.on[Sc]=function(n){m.update(n),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(n){var e,t=n.error;t&&(e=[[Ur,t.code],[Fr,t.message]]),m.update(n),i(8,e)},m.on[Ic]=function(n){c([[Ca,n.duration]])},m.on[Ac]=function(n){c([[Ti,n.playbackRate]])},m.on[Tc]=function(n){m.update(n)},m.$on=De(m.on),a.sa.mediaElement=m,e.push(function(){u&&m.update(u)}),t.push(_),Yn({attachMediaElement:function(n){_(),(u=n)&&[[_c,(n=[[Sc,gc,Ec,_c,vc,yc,hc]])[0]],[vc,n[0]],[hc,n[0]],[gc,n[0]],[Ec,n[0]],[yc,n[0]],[Sc,n[0]],["error"],[Ic],[Ac],[Tc]].forEach(function(i){var r=i[0];l(u,r,function(n){var e,t=m.on[r];t&&((e=i[1])?(a.stash(r,t,[u,n]),L(function(){a.unstash(e)},0)):t(u,n))})})},detachMediaElement:_,attachTextTracks:function(n,e){f(),s=e,(r=n)&&["change","addtrack","removetrack"].forEach(function(n){l(r,n,p)})},detachTextTracks:f},[a])}),"CLICK"),Oc="STARTED",Cc="AD_PROGRESS",Mc="AD_BUFFERING",Dc="IMPRESSION",Rc="PAUSED",Nc="RESUMED",kc="COMPLETE",Pc="LOADED",wc="ALL_ADS_COMPLETED",Lc="SKIPPED",xc="VOLUME_CHANGED",Uc="AD_ERROR",Fc={CLICK:"click",STARTED:"start",AD_PROGRESS:"adProgress",AD_BUFFERING:"adBuffering",IMPRESSION:"impression",PAUSED:"pause",RESUMED:"resume",COMPLETE:"complete",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",VOLUME_CHANGED:"volumeChange",AD_ERROR:"adError"},Vc=(il("ima","2.0.0"),ec.push(function(n,a,e,t){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(n){var e,n=n.getError();return n&&(e=[[Ur,n.getErrorCode()],[Fr,n.getMessage()]],n=n.getInnerError())&&e.push([Vr,""+n]),e}var d,f,p={on:{}};function m(){o&&c(o),o=null}function _(n){var e=n.getAdPodInfo(),t=n.getVastMediaHeight(),t=[[yo,n.getAdId(),!0],[bo,n.getAdSystem(),!0],[Co,n.getAdvertiserName(),!0],[go,n.getCreativeId(),!0],[Mo,n.getDealId(),!0],[Eo,n.getDuration(),!0],[Do,n.getSkipTimeOffset(),!0],[ki,n.getVastMediaBitrate(),!0],[Pi,n.getVastMediaWidth(),!0],[Ri,t,!0],[Ni,t?t+"p":null,!0],[No,n.getWrapperAdIds(),!0],[ko,n.getWrapperAdSystems(),!0],[Ro,n.getWrapperCreativeIds(),!0],[ho,b(n,[/[a-z]/,"clickThroughUrl"]),!0]];return e&&t.push([Oo,e.getTimeOffset(),!0]),t}p.$update=p.update=function(n,e){a.isInAds()&&(e&&r(_(e)),n)&&(e=n.getVolume(),a.setData([[or,100*e],[oa,0==e]]))},p.on[bc]=function(n){p.update(n),s(tt)},p.on[Oc]=function(n,e){e=e.getAd();a.isInAds()||i(16),r([[Ti,1]]),p.update(n,e),i(10,null,e)},p.on[Cc]=function(n,e){e=b(e.getAdData(),["currentTime"]);null!=e&&(p.update(n),9==a.getState()&&(null==d?d=e:d!=e&&i(10)),r([[fe,e]]))},p.on[Mc]=function(n){p.update(n),i(9),d=null},p.on[Dc]=function(n){p.update(n),s(it,null,2)},p.on[Rc]=function(n){p.update(n),i(11)},p.on[Nc]=function(n){p.update(n),i(10)},p.on[kc]=function(n){p.update(n),i(13)},p.on[Pc]=function(n,e){e=e.getAd();s(yt,e&&_(e),2)},p.on[wc]=function(){i(17),m()},p.on[Lc]=function(n){p.update(n),i(14)},p.on[xc]=function(n){p.update(n)},p.on[Uc]=function(n,e){p.update(n),a.canSetState(15)?i(15,l(e)):s(vt,l(e),2)},p.$on=De(p.on),a.sa.imaAdsManager=p,e.push(function(){o&&p.update(o)}),t.push(m);var v={on:{}};function h(){f&&c(f),f=null}v.on[Uc]=function(n,e){s(vt,l(e),2)},v.$on=De(v.on),a.sa.imaAdsLoader=v,t.push(h),Yn({attachImaAdsManager:function(n){var e,t;!a.shallBlock("attachImaAdsManager",null,n)&&n!=o&&(m(),o=n)&&(n=b(ne.google,["ima"]),e=b(n,["AdEvent","Type"],Fc),[[bc],[Oc,null,(t=[[Oc,Dc]])[0]],[Cc],[Mc],[Dc,null,t[0]],[Rc],[Nc],[kc],[Pc],[wc],[Lc],[xc],[Uc,b(n,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],n=(i[1]||e)[r];n&&u(o,n,function(n){var e,t=p.on[r];t&&((e=i[2])?(a.stash(r,t,[o,n]),L(function(){a.unstash(e)},0)):t(o,n))})}),s(It,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(n){a.shallBlock("attachImaAdsLoader",null,n)||n==f||(h(),(f=n)&&(n=b(ne.google,["ima","AdErrorEvent","Type"],Fc)[Uc])&&u(f,n,function(n){var e=v.on[Uc];e&&e(f,n)}))},detachImaAdsLoader:h},[n,a])}),il("ima_dai","2.0.0"),ec.push(function(e,r,n,t,i,a,o){var s,u,c,l=r.addListener;function d(){s&&r.removeListeners(s),s=u=c=null}function f(n){for(var e;(e=u[0])&&e.t<=n;)u.shift(),delete e.t,s.onTimedMetadata(e)}t.push(d),a.push(function(n){s&&f(c=n[1])}),o.push(function(n,e,t,i,r){var a;s&&i&&r&&Le(a="ID3"===n?r:a)&&((n={t:e})[i]=a,u.push(n),null!=c)&&f(c)}),Yn({attachImaDaiStreamManager:function(n){r.shallBlock("attachImaDaiStreamManager",null,n)||n==s||(d(),(s=n)&&(n=b(ne.google,["ima","dai","api","StreamEvent","Type"]),u=[],n)&&(l(s,n.CUEPOINTS_CHANGED,function(n){r.isIdle()&&(n=b(n.getStreamData(),["cuepoints"]))&&n.length&&e.annotateContentSession(n.map(function(n){return{type:is,start:n.start,end:n.end}}))}),l(s,n.STARTED,function(n){var e,t,i,n=n.getAd();n&&(e=c||0,t=n.getAdPodInfo(),i=n.getVastMediaHeight(),r.addCtTimeSpans([{type:is,start:e,end:e+(n.getDuration()||0),_d:[[yo,n.getAdId()],[bo,n.getAdSystem()],[Co,n.getAdvertiserName()],[go,n.getCreativeId()],[Mo,n.getDealId()],[Do,n.getSkipTimeOffset()],[Pi,n.getVastMediaWidth()],[Ri,i],[Ni,i?i+"p":null],[No,n.getWrapperAdIds()],[ko,n.getWrapperAdSystems()],[Ro,n.getWrapperCreativeIds()],[Oo,t?t.getTimeOffset():null]],_a:n}]))})))},detachImaDaiStreamManager:d},[e,r])}),Se.mediatailor=((Ot=E.mediatailor)&&(Ot.clientInfo+=" DZSDK "+ee.cn+" v"+ee.sv),Ot),il("mediatailor","2.0.0"),ec.push(function(n,c,e,t,i,r,a,o){var l,d,f,p,m;function _(n,e,t){if(n&&1===n.playCount)for(var i=o.length,r=0;r<i;r++)o[r](e,t)}function v(){l&&d&&l.removeAdObserver(d),l=d=null,f=p=m=null}t.push(v),i.push(function(n,e,t,i){var r=f&&f[t.nm];return r&&r(n,e,t,i)}),r.push(function(n){l&&3==c.getState()&&(p=n[1],m=c.getData(Mi),sn<an||Nn("MT onPlayheadUpdate: "+p+", "+m),l.onPlayheadUpdate(p,m||null))}),a.push(function(n,e,t,i,r){var a,o,s,u;l&&"EMT-TRACKING"===n&&r&&(e=e,(a=(a=r)&&a.avails)&&a.length&&(o=e-a[0].startTimeInSeconds,s=function(n){n.startTimeInSeconds+=o},u=function(n){var e=n.trackingEvents;n.startTimeInSeconds+=o,n.adProgramDateTime=null,e&&e.forEach(s)},a.forEach(function(n){var e=n.ads;n.startTimeInSeconds+=o,n.availProgramDateTime=null,e&&e.forEach(u)})),l.updateAdTrackingInfo(r,n))}),Yn({attachMediaTailorSession:function(n,e){var o,s,u,t,i,r,a;e=e||Se.mediatailor,!c.shallBlock("attachMediaTailorSession",null,n)&&e&&n!=l&&(v(),t=function(){var n=c.getData(or);xe(n)&&_(o,Xu,n)},i=e.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(n){return function(){_(o,n)}})(ju),r[i.LOADED]=a("loaded"),r[i.START]=a("start"),r[i.FIRST_QUARTILE]=a(Bu),r[i.MID_POINT]=a(Hu),r[i.THIRD_QUARTILE]=a(Gu),r[i.COMPLETE]=a(qu),r[i.PAUSE]=a("pause"),r[i.RESUME]=a("resume"),r[i.FULLSCREEN]=a(Ju),r[i.EXIT_FULLSCREEN]=a($u),r[i.MUTE]=function(){_(o,Xu,0)},r[i.UNMUTE]=t,r[i.CLICK_THROUGH]=function(){c.fire(tt),_(o,Ku)},r[i.SKIP]=function(){c.fire(ot),_(o,"skip")},l=n)&&(a=e.PlaybackEvent,f={},[[a.START,Ct,1],[a.END,Wt,I],[a.PAUSE,bt,I],[a.RESUME,Lt,I],[a.MUTE,Tt,I],[a.UNMUTE,Bt,I],[a.FULLSCREEN,gt,I],[a.EXIT_FULLSCREEN,ht,I]].forEach(function(r){f[r[1].nm]=function(n,e,t,i){r[2]&i&&l.onPlaybackEvent(r[0])}}),f[Ht.nm]=t,f[ct.nm]=function(){_(o,zu)},f[lt.nm]=function(){_(o,Yu)},d={onNewAd:function(n){var e,t;c.addCtTimeSpans([(e=(n=n).startDate,t=n.trackingEvents,e=e&&m?e-m+p:n.start,{type:is,start:e,end:e+n.duration,_a:n,_d:[[yo,n.vastAdId],[bo,n.adSystem],[go,n.creativeId],[Do,n.skipOffset],[Oo,n.availStart],[ho,n.videoClickThrough],[fo,t&&t.map(function(n){return n.eventType}).join(",")]]})])},onAdLoad:function(n){var e,i,t,r,a=n.adVerifications;s={},u={},1===(o=n).playCount&&(e={},i=[],t=c.getData(or),r=n.skipOffset,xe(t)&&(e["v"]=t),e["d"]=n.duration,e["ap"]=!!c.getData(Zr),e["po"]=0===n.availStart?0:1,e["sk"]=0<=r,e["so"]=e["sk"]?r:null,e["vf"]=i,a&&a.forEach(function(n){var e=b(n.javaScriptResource,[0,"uri"]),t=n.vendor;e&&t&&i.push({url:e,vd:t,p:n.verificationParameters||""})}),_(n,"init",e))},onAdEnd:function(n){_(n,Qu),o=s=u=null},onAdTrackingEvent:function(n,e){e=r[e];e&&e()},onAdBeaconResponse:function(n,e,t,i){e=e&&e.eventType;n==o&&e&&(i<200||299<i?u&&(u[e]=1,c.setAdData([[po,te.keys(u).join(",")]])):s&&(s[e]=1,c.setAdData([[mo,te.keys(s).join(",")]]))),c.fire(Ze,[[co,e],[lo,t],[uo,i]],2)},onNonLinearAdsStart:function(n,e,t){},onNonLinearAdsEnd:function(n){}},l.addAdObserver(d))},detachMediaTailorSession:v},[n])}),il("yospace","2.0.0"),ec.push(function(s,u,n,e,t,i,r){var f,c,l,a,d,p,m,_,v,h=["YMID","YSEQ","YTYP","YDUR"];function g(){f&&c&&f.removeAnalyticObserver(c),f=c=null,l=a=d=m=null}function o(n){for(var e;(e=l[0])&&e.t<=n;)l.shift(),f.onTimedMetadata(v.createFromMetadata(e.YMID,e.YSEQ,e.YTYP,e.YDUR,1e3*e.t))}function E(n,e,t){(a=a&&a.t===n?a:{t:n})[e]=t||"",te.keys(a).length===h.length+1&&(l.push(a),(a=null)!=m)&&o(m)}e.push(g),t.push(function(n,e,t,i){var r=d&&d[t.nm];return r&&r(n,e,t,i)}),i.push(function(n){f&&!u.isIdle()&&(m=n[1],p===_.VOD||p===_.DVRLIVE?f.onPlayheadUpdate(ie.round(1e3*m)):o(m))});var y=A.fromCharCode;function S(n,e,t){for(var i,r=[];e<t;)31<(i=n[e++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(n,e,t,i,r){var a;if(f&&r&&p===_.LIVE)if("ID3"===n||"org.id3"===n)h.includes(i)&&(r instanceof C&&(r=new T(r))||r instanceof T?3===r[0]&&(a=S(r,1,r.length)):a=r,Le(a))&&E(e,i,a);else if("urn:yospace:a:id3:2016"===n){if(r instanceof T)for(var o,s=S(r,0,r.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),h.includes(o[0])&&E(e,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===n&&r instanceof T){var c=r.length;if(9<c&&73===r[0]&&68===r[1]&&51===r[2]&&(r[3]<<8|r[4])<=1024&&!(192&r[5])){u=6;for(var l=0,d=10;u<d;)l=l<<7|127&r[u++];for(c=ie.min(c,l+10);u+9<c;){for(i="",d=u+4;u<d;)i+=y(r[u++]);for(l=0,d=u+4;u<d;)l=l<<7|127&r[u++];d=(u+=2)+l,h.includes(i)&&d<=c&&E(e,i,S(r,u,d)),u=d}}}}),Yn({attachYospaceSession:function(n){var e,a,o,t,i,r=ne.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,n)&&r&&n!=f&&(g(),f=n)&&(e=r.PlayerEvent,n=r.BreakType,_=r.PlaybackMode,v=r.TimedMetadata,p=f.getPlaybackMode(),l=[],d={},[[e.START,Ct,1],[e.STOP,Wt,I],[e.PAUSE,bt,I],[e.RESUME,Lt,I],[e.STALL,Ft,I],[e.CONTINUE,Vt,I]].forEach(function(r){d[r[1].nm]=function(n,e,t,i){r[2]&i&&f.onPlayerEvent(r[0],0)}}),d[Ut.nm]=function(){f.onPlayerEvent(e.SEEK,1e3*(m||0))},d[Tt.nm]=function(){f.onVolumeChange(!0)},d[Bt.nm]=function(){f.onVolumeChange(!1)},a=function(n,e){n=n.getProperty(e);return n&&n.getValue()},o=function(n,e,t,i){n&&(e.push(n.getIdentifier()),t.push(n.getAdSystem()),i.push(n.getCreativeIdentifier()),o(n.getLineage(),e,t,i))},t=function(n){var e=n.getSkipOffset(),t=[],i=[],r=[],e=(o(n.getLineage(),t,i,r),[[yo,n.getIdentifier()],[bo,a(n,"AdSystem")],[Co,a(n,"Advertiser")],[Do,0<e?e/1e3:e],[No,t],[ko,i],[Ro,r]]),t=n.getLinearCreative(),i=(t&&e.push([go,t.getCreativeIdentifier()],[ho,t.getClickThroughUrl()]),n.getStart()/1e3);return{type:is,start:i,end:i+n.getDuration()/1e3,_d:e,_a:n}},c={onAdvertBreakStart:function(n){},onAdvertBreakEnd:function(){},onAdvertStart:function(n){u.addCtTimeSpans([t(n)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(n){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(n){}},f.addAnalyticObserver(c),p===_.VOD)&&(i=[],(r=f.getAdBreaksByType(n.LINEAR))&&r.forEach(function(n){n=n.adverts;n&&n.forEach(function(n){i.push(t(n))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:g},[s])}),il("open_measurement","2.0.0"),ec.push(function(n,h,e,t,i,r,a,o){var s,g,u,c;function l(){c&&c(Qu),g=u=c=null,s=!1}t.push(l),o.push(function(n,e){s&&("init"===n?(c&&c(Qu),c=!1===ee.om?null:u(e)):c&&(c(n,e),n===Qu)&&(c=null))}),Yn({startOmidSessionClient:function(n){var f,p,m,_,v=E.OmidSessionClient,e=we.omidPartnerName,t=we.omidPartnerVersion;h.shallBlock("startOmidSessionClient",null,n=n||{})||(f=n.omidServiceWindow||ne.self,p=n.videoElement,m=n.contentURL||D.href,_=n.accessModeHandler,v&&e&&t&&p?(l(),g=new v.Partner(e,t),u=function(i){var t=[];function n(n){var e=n?at:rt,t=[[So,ce(i)]];n&&t.push([Fr,n]),h.fire(e,t,2)}function r(n,e){t.push(null==e?n:n+"("+e+")"),h.setAdData([[Io,t.join(",")]])}h.setAdData([[Io,null]]);var a,o,s,u,c,l,e=i["vf"],e=e&&e.map(function(n){var e=n["url"],t=n["vd"],n=n["p"]||"";return new v.VerificationScriptResource(e,t,n,_&&_(e,t,n)||"full")});return e&&e.length?((e=new v.Context(g,e,m)).setServiceWindow(f),"VIDEO"===p.tagName?e.setVideoElement(p):e.setVideoElement(p.getElementsByTagName("video")[0]||p),a=new v.AdSession(e),o=!1,s=[],a.setCreativeType("video"),a.setImpressionType("beginToRender"),a.isSupported()?(l={loaded:function(){u.loaded(new v.VastProperties(i["sk"],i["so"],i["ap"],i["po"]))},start:function(){c.start(i["d"],i["v"]/100)},impression:function(){u.impressionOccurred()},firstQuartile:function(){c.firstQuartile()},midPoint:function(){c.midpoint()},thirdQuartile:function(){c.thirdQuartile()},complete:function(){c.complete()},pause:function(){c.pause()},resume:function(){c.resume()},bufferStart:function(){c.bufferStart()},bufferFinish:function(){c.bufferFinish()},skip:function(){c.skipped()},clickThrough:function(){c.adUserInteraction("click")},volumeChange:function(n){i["v"]=n,c.volumeChange(n/100)},fullscreen:function(){c.playerStateChange("fullscreen")},exitFullscreen:function(){c.playerStateChange("normal")},finish:function(){a.finish()}},a.registerSessionObserver(function(n){switch(n.type){case"sessionStart":var e;for(r(n.type),u=new v.AdEvents(a),c=new v.MediaEvents(a),o=!0;e=s.shift();)d(e[0],e[1]);break;case"sessionError":r(n.type),ae("OMID ad session error")}}),n(),a.start(),d):(ae("OMID ad session unsupported"),n("Unsupported"),null)):(n("Resources not found"),null);function d(n,e){var t;o?(t=l[n])?(r(n,e),t(e)):ae("Unknown amEvent: "+n):s.push([n,e])}},s=!0):Te("Missing OM SDK library or parameters"))},stopOmidSessionClient:l},[n])}),Se.omidPartnerName=we.omidPartnerName,Se.omidPartnerVersion=we.omidPartnerVersion,"unsupportedDataList"),Wc="maxCtPlayheadInterval",jc="maxAdPlayheadInterval",Bc={};function Hc(n,e){var t=null==n?xu:Le(n)&&Bc[n];return t&&t[5]===e?t:(ae("Invalid adapter for id: "+n),null)}function Gc(n,e,t,i,r,a){i=[n,Uu,i,r,a,t];xu=xu||i,Bc[n]=i,tl("adt_"+n,e)}function qc(){if(!Fu){var n=eu[3];if(re(n))try{n()}catch(n){oe(n,"onPageUnload")}te.keys(_e).forEach(function(n){_e[n].publicContext.destroy()}),iu(!0),Fu=!0}}Uu="Shaka Player",Gc("shaka","2.26.0",1,function(n,l,e){function t(n){L(function(){l.unstash(["ended","pause"])},n)}var d,i,f,r,a=e.shakaRoot||ne.shaka,o=e.controls;if(n&&(n.player?(d=n.player,o=n.controls||o):d=n),!d||!a)return"Invalid player or missing shaka root";l.setData([[ua,b(a,["Player","version"])]]);var s,n=b(ne.cast,["framework","CastContext"]),a=n&&n.getInstance();function u(n,e,t){l.addListener(n,e,t)}function c(n,e){u(d,n,e)}function p(n,e){u(f,n,e)}function m(){var n=b(ne.cast,["framework","CastContext"]),n=n&&n.getInstance();return n&&n.getCurrentSession()}function _(n){var e=m();return e&&e.sendMessage(Q,n)}function v(){d.getVariantTracks().some(function(n){var e;if(n.active)return e=n.audioBandwidth/1e3,l.setData([[Qt,n.language],[Di,e],[Ma,n.frameRate]]),!0})}function h(){var e;if("m"===r)(t=d.getTextTracks()).some(function(n){if(n.active)return e=n,!0});else if("t"===r&&f)for(var n,t=f.textTracks,i=0;i<t.length;i++)if("showing"===(n=t[i]).mode){e=n;break}t&&l.setData([[pa,!!e],[Zt,e?e.label||e.language:null]])}function g(){var n,e,t,i,r,a,o,s,u,c;l.isIdle()||(n=b(f,["duration"]),n=1==d.isLive()||n==ie.pow(2,32)?null:n,e=re(d.getStats)?d.getStats():null,s=d.getConfiguration(),c=d.seekRange(),t=b(f,["muted"]),i=b(e,["streamBandwidth"])/1e3,r=b(e,["height"],null),a=b(f,["currentTime"]),re(d.getBufferFullness)?u=d.getBufferFullness():f&&1==f.buffered.length&&(o=ie.max(f.buffered.end(0)-a,0),s=ie.min(s.streaming.bufferingGoal,c.end-a),u=100*ie.min(o/s,1)),v(),h(),(c=O(d,"getPresentationStartTimeAsDate"))&&null!=a&&l.setData([[Mi,a+c.getTime()/1e3]]),l.setData([[fe,a],[Ca,n],[fa,d.isLive()?"Live":"VOD"],[oa,t],[or,t?0:100*b(f,["volume"],0)],[wa,b(f,["title"],"")],[Pa,d.getAssetUri()],[aa,b(f,["loop"])],[Ti,d.getPlaybackRate()],[Jt,b(f,["buffered"])],[ki,i],[Pi,b(e,["width"],null)],[Ri,r],[Ni,r?r+"p":null],[Zr,b(f,["autoplay"])],[Xt,isNaN(u)?null:u],[la,b(f,["readyState"])]]))}function E(){l.isIdle()&&(l.reset(),l.setState(1),l.setState(2))}function y(){g(),l.isAdIdle()&&l.setState(17),l.setState(3)}function S(){g(),l.setState(6)}function I(){l.setState(5)}function A(){g(),l.setState(4)}function T(){var n=e.mediaElement||d.getMediaElement();return n!=f&&(f&&(l.removeListeners(f),f.textTracks)&&l.removeListeners(f.textTracks),(f=n)&&((n=f.textTracks).length?(r="t",u(n,"change",h),u(n,"addtrack",h),u(n,"removetrack",h)):r="m",p("play",E),p("playing",y),p("ended",function(){l.stash("ended",S),t(0)}),p("seeking",I),p("pause",function(){l.stash("pause",A),t(0)})),1)}_s&&(s={},d.configure({cmcd:{enabled:!0,sessionId:l.reqCtSID(),useHeaders:!1}}),d.getNetworkingEngine().registerRequestFilter(function(n,e){var t,i,r,a=b(e.uris,[0]);a&&(i=Qn(a,"CMCD"),r={},i&&i.split(",").forEach(function(n){var n=n.split("="),e=n[0],t=pe[e];t&&(r[e]=t[1][1](n[1]))}),i=r,i=l.reqTracer(a,i),s[a.split("?")[0]]=i,vs?(t=i.headers(),te.keys(t).forEach(function(n){e.headers[n]=t[n]}),e.uris[0]=i.urlBase):e.uris[0]=i.url())}),d.getNetworkingEngine().registerResponseFilter(function(n,e){var t=b(e,["uri"],"").split("?")[0],i=s[t];i&&(i.status(e.status),i.end(),delete s[t])}),c("downloadheadersreceived",function(n){n=s[b(n.request,["uris",0],"").split("?")[0]];n&&n.resp()}),c("downloadfailed",function(n){var e=b(n.request,["uris",0],"").split("?")[0],t=s[e];t&&(n.aborted||(t.status(n.httpResponseCode),t.end()),delete s[e])})),u(O(d,"getAdManager"),"ima-ad-manager-loaded",function(n){n=n.imaAdManager;l.attachImaAdsManager(n)}),c("onstatechange",function(){T()&&(Oe("Shaka media element updated (onstatechange)",f),f)&&l.setData([[ta,f.defaultMuted],[ia,f.defaultPlaybackRate]])}),c("buffering",function(n){l.isIdle()||l.isInAds()||(g(),l.setState(n.buffering?2:3))}),c("error",function(n){var e,t=[];n&&(t.push([Fr,b(n,["detail","data",1,"message"],"")]),t.push([Ur,b(n,["detail","code"])]),e=b(n,["detail","severity"])),e&&1===e||(g(),l.setState(8,t))}),c("textchanged",h),c("variantchanged",v),c("unloading",function(){g(),l.setState(7)}),u(o,"caststatuschanged",function(n){n=void 0!==b(n,["newStatus"])?b(n,["newStatus"]):b(n,["og"]);l.setData([[na,n]])}),l.addListener(a,b(ne.cast,["framework","CastContextEventType","CAST_STATE_CHANGED"]),function(n){var t,n="CONNECTED"==n.castState;n&&(t=m(),l.addListener(t,"mediasession",function(n){var e=b(n,["mediaSession"]);l.removeListeners(i,"-"),i=e,l.addListener(e,"-",function(){switch(e.playerState){case"PLAYING":l.setState(3);break;case"PAUSED":l.setState(4);break;case"BUFFERING":l.isIdle()&&(l.setState(1),l.initCastTransfer(_)),l.setState(2);break;case"IDLE":"FINISHED"==b(e,["idleReason"])&&l.setState(6)}},"addUpdateListener","removeUpdateListener"),l.removeListeners(null,Q),l.addListener(t,Q,function(n,e){l.handleCastMessage(le(e),_)},"addMessageListener","removeMessageListener"),l.initCastTransfer(_)})),l.setData([[na,n]])}),c("metadata",function(n){var e=n.payload;e&&l.updateTimedMetadata(n.metadataType,n.startTime,n.endTime,e.key,e.data)}),c("emsg",function(n){n=n.detail;n&&l.updateTimedMetadata(n.schemeIdUri,n.startTime,n.endTime,null,n.messageData)}),l.onCtSessionStart(function(){l.setData([[ta,b(f,["defaultMuted"])],[ia,b(f,["defaultPlaybackRate"])],[Ci,f||null]]),g()}),l.onTimer(function(){T()&&Oe("Shaka media element updated (onTimer)",f),l.isInAds()||g();var n=null!=Ee.fullscreenElement;f&&re(f.getBoundingClientRect)&&l.setData([[Ci,f]]),l.setData([[ra,n],[Na,b(f,["clientHeight"])],[ka,b(f,["clientWidth"])]])}),e.mediaElement&&T()}),Uu="DOM",Gc("dom","2.1.0",Ou,function(f,c){var l=c.publicContext;if(!f)return"Invalid DOM element";function e(n){var o,s;function u(c,l){var d=null;return c&&te.keys(c).forEach(function(n){var e=c[n],t=e.query_selector,i=e.attribute_name,r=e.relative;if(i){var a,o,s,u=null;if(null!=r&&l){if(0<=r&&r<100)for(a=l,s=0;s<r&&a;s++)a=a.parentElement}else a=f;if(a)if(t)try{o=a.querySelectorAll(t)}catch(n){oe(n,"querySelectorAll for: "+t)}else o=[a];if(o)for(u=[],s=0;s<o.length;s++)u.push(o[s][i]);(d=d||{})[n]=u}}),d}n&&(c.removeListeners(),o=n.events,s=n.metadata,o)&&te.keys(o).forEach(function(t){var n=o[t],i=n.attributes,e=n.query_selector,r=n.interaction_type;if(e&&r)try{var a=f.querySelectorAll(e);a&&a.forEach(function(e){c.addListener(e,r,function(){var n=u(s),n=(n&&l.setMetadata(te.assign(l.getMetadata()||{},n)),u(i,e));l.generateEvent(t,n)})})}catch(n){oe(n,"querySelectorAll for: "+e)}})}e(ee.od),c.onConfig(function(n){e(n.od)})});var zc=!0;function Yc(t){if(!Vu){if(!(ee.ci||Qn(X,$)||t&&t[$]))return!1;t&&(X=Re(X,function(e){te.keys(t).forEach(function(n){e.set(n,t[n])})}),cn()),zc&&(zc=!1,hu(_t,se()));var n=Qn(X,"env");ee.cf="staging"===n||"dev"===n||"sandbox"===n?n:"",ee.ci=Qn(X,$)||ee.ci,ee.om=null,pu([[mr,ee.ci]]),cu(),Vu=!0}return!0}function Kc(n){n()}function Xc(n,e,t){de(t)||(null!=t&&ae("Invalid contextOptions",t),t={});var i,r,a,o,s,u,c,l,d,f,p,m,_,v,h=t[Iu]||Cu[1];switch(h){case Cu[1]:return Zu(n,e,t);case Cu[Ou]:return o=n,s=e,p=wu((u=t)[Su],u[Au]),m=Hc(u[Eu],Ou),_=de(_=u[yu])?De(_):{},m&&(l=m[2],d=m[3],te.assign(_,m[4]||{})),te.assign(p,{type:Ou,fire:function(n,e){p.fireEvent(n,se(),e)},onTimer:function(n){f=n}}),s?d?new ge(function(e,t){try{d(s,p,_).then(function(n){c=g(n),e(c)},function(n){Te(n),t(n)})}catch(n){t(oe(n,m[0]+" createTargetObject"))}}):ge.reject("Not implemented"):c=g(o);case Cu[bu]:if(!e)return r=(o=wu(null,t[Au])).publicContext,null!=(a=t[Tu])&&r.setMetadata(a),o.fireEvent(mt,se()),r;i="Invalid context type: "+h;break;default:i="Unknown context type: "+h}function g(n){var e,t=p.publicContext,i=null;p.target=n,te.assign(t,p.basePublicMethods,{getError:function(){return i},getTarget:function(){return n},adapterID:function(){return m?m[0]:null}});try{i=m?l?l(n,p,_):null:"Missing adapter"}catch(n){i=oe(n,m[0]+" initContext")}return i?(Te(i),t.destroy()):(null!=(e=u[Tu])&&t.setMetadata(e),p.fire(mt),p.setTimer(function(){if(f)try{f()}catch(n){oe(n,"onTimer")}})),t}return Te(i),e?ge.reject(i):(v=i,{getError:function(){return v}})}O(ne,"addEventListener",["pagehide",qc]),"Safari"==Vs&&O(ne,"addEventListener",["beforeunload",function(n){L(function(){n.defaultPrevented||n.returnValue||qc()},0)}]),be("Datazoom SDK "+ee.sv+" ("+ee.cn+") DDv3",el),w(function(){Mu.length?Mu.forEach(Kc):se()},ee.ti),te.assign(Se,{init:Yc,setLogLevel:un,createContext:function(n,e){return Xc(n,null,e)},createBaseContext:function(n){return(n=de(n)?De(n):{})[Iu]=Cu[bu],Xc(null,null,n)},createContextAndTarget:function(n){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);return Xc(null,e,n)},createCollectorProxy:function(n,e,t){return(n=n||Cu[1])===Cu[1]?nc(e,t):(Te("Unsupported context type: "+n),null)},adapterIDs:function(){return te.keys(Bc)},contexts:function(){return te.keys(_e).map(function(n){return _e[n].publicContext})},playerContexts:function(){return te.keys(_e).filter(function(n){return 1==_e[n].type}).map(function(n){return _e[n].publicContext})},setMetadata:function(n){return!(null!=n&&!de(n)||(gu(Cs=le(ce(n)),pu),m(p,mn,Cs),0))},getMetadata:function(){return le(ce(Cs))},getAppSessionData:function(n){var e=null;return e=Bo&&Bo[n]&&(n=Qo[n])?mu(n):e},generateEvent:function(n,e,t){t=!t&&te.keys(_e)[0];t?_e[t].publicContext.generateEvent(n,e):hu({ap:Qe,nm:G+n,on:Go},se(),null,e)},on:function(n,e){eu[n]=e},appSessionID:function(){return Ds},generateUUID:function(){return ue()},sdkEvent:{CONFIG_READY:Zs,APP_SESSION_START:nu,CONTENT_SESSION_START:2,PAGE_UNLOAD:3,AD_START:4,AD_END:5},timeSpanType:{AD:is,PROMO:"promo"},overridableMetadata:Ko,name:ee.cn,version:ee.sv,dictionaryVersion:3}),Jc||L(Yc,ee.kd)}("object"==typeof globalThis?globalThis:window,{},(s={},il("omid_session_client","1.5.5"),function(){function n(e,i){var u=u||{},t=(u.scope={},u.createTemplateTagFirstArg=function(n){return n.raw=n},u.createTemplateTagFirstArgWithRaw=function(n,e){return n.raw=e,n},u.arrayIteratorImpl=function(n){var e=0;return function(){return e<n.length?{done:!1,value:n[e++]}:{done:!0}}},u.arrayIterator=function(n){return{next:u.arrayIteratorImpl(n)}},u.makeIterator=function(n){var e="undefined"!=typeof Symbol&&Symbol.iterator&&n[Symbol.iterator];if(e)return e.call(n);if("number"==typeof n.length)return u.arrayIterator(n);throw Error(String(n)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(n){for(var e,t=[];!(e=n.next()).done;)t.push(e.value);return t},u.arrayFromIterable=function(n){return n instanceof Array?n:u.arrayFromIterator(u.makeIterator(n))},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.objectCreate=u.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(n){function e(){}return e.prototype=n,new e},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(n,e,t){return n!=Array.prototype&&n!=Object.prototype&&(n[e]=t.value),n},u.getGlobal=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof on&&on];for(var e=0;e<n.length;++e){var t=n[e];if(t&&t.Math==Math)return t}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$",u.polyfill=function(n,e,t,i){e&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(n,e,t,i):u.polyfillUnisolated(n,e,t,i))},u.polyfillUnisolated=function(n,e,t,i){for(t=u.global,n=n.split("."),i=0;i<n.length-1;i++){var r=n[i];if(!(r in t))return;t=t[r]}(e=e(i=t[n=n[n.length-1]]))!=i&&null!=e&&u.defineProperty(t,n,{configurable:!0,writable:!0,value:e})},u.polyfillIsolated=function(n,e,t,i){var r=n.split(".");n=1===r.length,i=r[0],i=!n&&i in u.polyfills?u.polyfills:u.global;for(var a=0;a<r.length-1;a++){var o=r[a];if(!(o in i))return;i=i[o]}r=r[r.length-1],null!=(e=e(t=u.IS_SYMBOL_NATIVE&&"es6"===t?i[r]:null))&&(n?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:e}):e!==t&&(void 0===u.propertyToPolyfillSymbol[r]&&(t=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+t+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:e})))},u.getConstructImplementation=function(){var i;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(n,[],function(){}),new n instanceof n?Reflect.construct:(i=Reflect.construct,function(n,e,t){return n=i(n,e),t&&Reflect.setPrototypeOf(n,t.prototype),n})):function(n,e,t){return t=u.objectCreate((t=void 0===t?n:t).prototype||Object.prototype),Function.prototype.apply.call(n,t,e)||t};function n(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var n={};try{return n.__proto__={a:!0},n.a}catch(n){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(n,e){if(n.__proto__=e,n.__proto__!==e)throw new TypeError(n+" is not extensible");return n}:null,u.inherits=function(n,e){if(n.prototype=u.objectCreate(e.prototype),n.prototype.constructor=n,u.setPrototypeOf){var t=u.setPrototypeOf;t(n,e)}else for(t in e){var i;"prototype"!=t&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(e,t))&&Object.defineProperty(n,t,i):n[t]=e[t])}n.superClass_=e.prototype},u.getRestArguments=function(){for(var n=Number(this),e=[],t=n;t<arguments.length;t++)e[t-n]=arguments[t];return e},u.polyfill("Reflect",function(n){return n||{}},"es6","es3"),u.polyfill("Reflect.construct",function(n){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(n){var t;return n||(u.setPrototypeOf?(t=u.setPrototypeOf,function(n,e){try{return t(n,e),!0}catch(n){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(n){var e,t,i,r;return n||((e=function(n,e){this.$jscomp$symbol$id_=n,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(n){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new e(t+(n||"")+"_"+i++,n)})},"es6","es3"),u.polyfill("Symbol.iterator",function(n){if(!n){n=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<e.length;t++){var i=u.global[e[t]];"function"==typeof i&&"function"!=typeof i.prototype[n]&&u.defineProperty(i.prototype,n,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return n},"es6","es3"),u.iteratorPrototype=function(n){return(n={next:n})[Symbol.iterator]=function(){return this},n},u.iteratorFromArray=function(e,t){e instanceof String&&(e+="");var i=0,r=!1,n={next:function(){var n;return!r&&i<e.length?(n=i++,{value:t(n,e[n]),done:!1}):{done:r=!0,value:void 0}}};return n[Symbol.iterator]=function(){return n},n},u.polyfill("Array.prototype.keys",function(n){return n||function(){return u.iteratorFromArray(this,function(n){return n})}},"es6","es3"),u.owns=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},u.polyfill("Object.values",function(n){return n||function(n){var e,t=[];for(e in n)u.owns(n,e)&&t.push(n[e]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(n,e,t){return n==i&&"q"==e&&t==r}}));return!0===r.q}catch(n){return!1}},u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,u.ES6_CONFORMANCE=u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&u.checkEs6ConformanceViaProxy(),u.polyfill("WeakMap",function(i){function t(){}function r(n){var e=typeof n;return"object"==e&&null!==n||"function"==e}function a(n){var e;u.owns(n,o)||(e=new t,u.defineProperty(n,o,{value:e}))}function n(n){var e;u.ISOLATE_POLYFILLS||(e=Object[n])&&(Object[n]=function(n){return n instanceof t?n:(Object.isExtensible(n)&&a(n),e(n))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if(function(){if(i&&Object.seal)try{var n=Object.seal({}),e=Object.seal({}),t=new i([[n,2],[e,3]]);return 2==t.get(n)&&3==t.get(e)?(t["delete"](n),t.set(e,4),!t.has(n)&&4==t.get(e)):void 0}catch(n){}}())return i;function e(n){if(this.id_=(s+=Math.random()+1).toString(),n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var o="$jscomp_hidden_"+Math.random(),s=(n("freeze"),n("preventExtensions"),n("seal"),0);return e.prototype.set=function(n,e){if(!r(n))throw Error("Invalid WeakMap key");if(a(n),u.owns(n,o))return n[o][this.id_]=e,this;throw Error("WeakMap key fail: "+n)},e.prototype.get=function(n){return r(n)&&u.owns(n,o)?n[o][this.id_]:void 0},e.prototype.has=function(n){return r(n)&&u.owns(n,o)&&u.owns(n[o],this.id_)},e.prototype["delete"]=function(n){return!!(r(n)&&u.owns(n,o)&&u.owns(n[o],this.id_))&&delete n[o][this.id_]},e},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(r){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if(function(){if(!u.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var n,e,t=Object.seal({x:4}),i=new r(u.makeIterator([[t,"s"]]));return"s"!=i.get(t)||1!=i.size||i.get({x:4})||i.set({x:4},"t")!=i||2!=i.size?void 0:(e=(n=i.entries()).next()).done||e.value[0]!=t||"s"!=e.value[1]?void 0:!((e=n.next()).done||4!=e.value[0].x||"t"!=e.value[1]||!n.next().done)}catch(n){}}())return r;function n(n){if(this.data_={},this.head_=t(),this.size=0,n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var a=new WeakMap,i=(n.prototype.set=function(n,e){var t=i(this,n=0===n?0:n);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=e:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:n,value:e},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},n.prototype["delete"]=function(n){return!(!(n=i(this,n)).entry||!n.list||(n.list.splice(n.index,1),n.list.length||delete this.data_[n.id],n.entry.previous.next=n.entry.next,n.entry.next.previous=n.entry.previous,n.entry.head=null,this.size--,0))},n.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},n.prototype.has=function(n){return!!i(this,n).entry},n.prototype.get=function(n){return(n=i(this,n).entry)&&n.value},n.prototype.entries=function(){return e(this,function(n){return[n.key,n.value]})},n.prototype.keys=function(){return e(this,function(n){return n.key})},n.prototype.values=function(){return e(this,function(n){return n.value})},n.prototype.forEach=function(n,e){for(var t,i=this.entries();!(t=i.next()).done;)t=t.value,n.call(e,t[1],t[0],this)},n.prototype[Symbol.iterator]=n.prototype.entries,function(n,e){var t=e&&typeof e,i=("object"==t||"function"==t?a.has(e)?t=a.get(e):(t=""+ ++o,a.set(e,t)):t="p_"+e,n.data_[t]);if(i&&u.owns(n.data_,t))for(n=0;n<i.length;n++){var r=i[n];if(e!=e&&r.key!=r.key||e===r.key)return{id:t,list:i,index:n,entry:r}}return{id:t,list:i,index:-1,entry:void 0}}),e=function(n,e){var t=n.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=n.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:e(t)};t=null}return{done:!0,value:void 0}})},t=function(){var n={};return n.previous=n.next=n.head=n},o=0;return n},"es6","es3"),"omid_message_guid"),r="omid_message_method",a="omid_message_version",o="omid_message_args",s=function(n,e,t,i){this.guid=n,this.method=e,this.version=t,this.args=i},c=(s.isValidSerializedMessage=function(n){return!!n&&void 0!==n[t]&&void 0!==n[r]&&void 0!==n[a]&&"string"==typeof n[t]&&"string"==typeof n[r]&&"string"==typeof n[a]&&(void 0===n[o]||void 0!==n[o])},s.deserialize=function(n){return new s(n[t],n[r],n[a],n[o])},s.prototype.serialize=function(){var n={};return n[t]=this.guid,n[r]=this.method,n[a]=this.version,void 0!==this.args&&(n[o]=this.args),n},{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction",STATE_CHANGE:"stateChange"},MediaEventType:{LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},SupportedFeatures:{CONTAINER:"clid",VIDEO:"vlid"},VideoPosition:{PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},VideoPlayerState:{MINIMIZED:"minimized",COLLAPSED:"collapsed",NORMAL:"normal",EXPANDED:"expanded",FULLSCREEN:"fullscreen"},NativeViewKeys:{X:"x",LEFT:"left",Y:"y",TOP:"top",WIDTH:"width",HEIGHT:"height",AD_SESSION_ID:"adSessionId",IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",CLIPS_TO_BOUNDS:"clipsToBounds",CHILD_VIEWS:"childViews",END_X:"endX",END_Y:"endY",OBSTRUCTIONS:"obstructions",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),l=function(n){this.to=n,this.communicationType_=c.CommunicationType.NONE};function d(n,e){if(!e)throw Error("Value for "+n+" is undefined, null or blank.");if("string"!=typeof e&&!(e instanceof String))throw Error("Value for "+n+" is not a string.");if(""===e.trim())throw Error("Value for "+n+" is empty string.")}function f(n,e){if(null==e)throw Error("Value for "+n+" is undefined or null")}function p(n,e){if(null==e)throw Error(n+" must not be null or undefined.");if("number"!=typeof e||isNaN(e))throw Error("Value for "+n+" is not a number")}function m(n,e,t,i){if(p(n,e),e<t||i<e)throw Error("Value for "+n+" is outside the range ["+t+","+i+"]")}function x(n,e){return n&&(n[e]||(n[e]={}))}function n(n,e,t){(t=void 0===t?void 0===i?null:i:t)&&((n=n.split(".")).slice(0,n.length-1).reduce(x,t)[n[n.length-1]]=e)}function _(n,e,t,i){i=void 0===i?c.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",n),this.resourceUrl=n,this.vendorKey=e,this.verificationParameters=t,this.accessMode=i}function v(n,e){d("UniversalAdId.value",n),d("UniversalAdId.idRegistry",e),this.value=n,this.idRegistry=e}function h(n,e,t,i,r){t=void 0===t?null:t,i=void 0===i?null:i,r=void 0===r?null:r,f("Context.partner",n),this.partner=n,this.verificationScriptResources=e,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null,this.universalAdId=r}l.prototype.sendMessage=function(n,e){},l.prototype.handleMessage=function(n,e){this.onMessage&&this.onMessage(n,e)},l.prototype.serialize=function(n){return JSON.stringify(n)},l.prototype.deserialize=function(n){return JSON.parse(n)},l.prototype.isDirectCommunication=function(){return this.communicationType_===c.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},n("OmidSessionClient.Partner",function(n,e){d("Partner.name",n),d("Partner.version",e),this.name=n,this.version=e}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},n("OmidSessionClient.VerificationScriptResource",_),v.prototype.toSerialisedValue=function(){return this.value+"; "+this.idRegistry},n("OmidSessionClient.UniversalAdId",v),h.prototype.setVideoElement=function(n){f("Context.videoElement",n),this.videoElement=n},h.prototype.setSlotElement=function(n){f("Context.slotElement",n),this.slotElement=n},h.prototype.setServiceWindow=function(n){f("Context.serviceWindow",n),this.serviceWindow=n},n("OmidSessionClient.Context",h);var g={},E=(g.omidGlobal=function(){if(void 0!==e&&e)return e;if(void 0!==on&&on)return on;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var n=Function("return this")();if(n)return n;throw Error("Could not determine global object context.")}(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),y={sessionError:"reportError"},U=Object.keys(c.MediaEventType).map(function(n){return c.MediaEventType[n]}),F=["impressionOccurred"],S=function(n){n=void 0===n?g.omidGlobal:n,this.interfaceRoot_=n[E.ROOT]};function I(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random()|0;return n=("y"===n?3&e|8:e).toString(16)})}function A(){var n=u.getRestArguments.apply(0,arguments);V(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(n))))},function(){console.error.apply(console,u.arrayFromIterable(n))})}function V(n,e){"undefined"!=typeof jasmine&&jasmine?n():"undefined"!=typeof console&&console&&console.error&&e()}S.prototype.isSupported=function(){return null!=this.interfaceRoot_},S.prototype.sendMessage=function(n,e,t){if("registerSessionObserver"==n&&(t=[e]),e=this.interfaceRoot_,0<=F.indexOf(n=y[n]?y[n]:n)&&(e=e[E.AD_EVENTS]),!(e=(e=0<=U.indexOf(n)?e[E.MEDIA_EVENTS]:e)[n]))throw Error("Unrecognized method name: "+n+".");e.apply(null,u.arrayFromIterable(t))};var T="1.5.5-iab77",W=3;function b(n){return/\d+\.\d+\.\d+(-.*)?/.test(n)}function O(n,e){n=n.split("-")[0].split("."),e=e.split("-")[0].split(".");for(var t=0;t<W;t++){var i=parseInt(n[t],10),r=parseInt(e[t],10);if(r<i)break;if(i<r)return!1}return!0}var C="1.0.3";function j(n,e){return b(n)&&O(n,C)?e:JSON.stringify(e)}function B(n,e){return b(n)&&O(n,C)?e||[]:e&&"string"==typeof e?JSON.parse(e):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function G(n){return q(n,H.SESSION_SERVICE)}function q(n,e){return e+n}function M(n){return null!=n&&void 0!==n.top&&null!=n.top}function z(n){var e;if(n!==g.omidGlobal)try{if(void 0===n.location.hostname)return!0;""!==(e=n).x&&e.x}catch(n){return!0}return!1}function Y(n){return M(n=void 0===n&&"undefined"!=typeof window&&window?window:n)?n:g.omidGlobal}function K(n){return M(n)?n.top:g.omidGlobal}var D=function(n){l.call(this,n),this.communicationType_=c.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,l),D.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.handleExportedMessage(n.serialize(),this)},D.prototype.handleExportedMessage=function(n,e){s.isValidSerializedMessage(n)&&this.handleMessage(s.deserialize(n),e)},D.prototype.isCrossOrigin=function(){return!1},function(n,e){e=void 0===e?g.omidGlobal:e,l.call(this,e);var t=this;this.communicationType_=c.CommunicationType.POST_MESSAGE,n.addEventListener("message",function(n){var e;"object"==typeof n.data&&(e=n.data,s.isValidSerializedMessage(e))&&(e=s.deserialize(e),n.source)&&t.handleMessage(e,n.source)})}),N=(u.inherits(R,l),R.isCompatibleContext=function(n){return!!(n&&n.addEventListener&&n.postMessage)},R.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.postMessage(n.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||z(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(n){var e={};return e[c.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,e[c.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,e[n]}});function X(n,e){try{return n.frames&&!!n.frames[e]}catch(n){return!1}}function J(n,e){n.document.write('<iframe style="display:none" id="'+e+'" name="'+e+'" sandbox></iframe>')}N.isOmidPresent=function(e){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return X(e,n)})},N.getOmidEnvironment=function(n){for(var e=u.makeIterator(Object.values(c.Environment)),t=e.next();!t.done;t=e.next()){t=t.value;if(X(n,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(e,n){e.frames&&e.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return!!e.frames[n]})&&(null==e.document.body&&N.isMutationObserverAvailable_(e)?N.registerMutationObserver_(e,n):(n=N.getEnvironmentIframeName(n),e.document.body?(N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n)):(J(e,N.OMID_PRESENT_FRAME_NAME),J(e,n))))},N.appendPresenceIframe_=function(n,e){var t=n.document.createElement("iframe");t.id=e,t.name=e,t.style.display="none",t.sandbox="",n.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(n){return"MutationObserver"in n},N.registerMutationObserver_=function(e,t){var i=new MutationObserver(function(n){n.forEach(function(n){"BODY"===n.addedNodes[0].nodeName&&(n=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n),i.disconnect())})});i.observe(e.document.documentElement,{childList:!0})};var $=["omid","v1_SessionServiceCommunication"];function Q(n,e){return e.reduce(function(n,e){return n&&n[e]},n)}function Z(n,e,t,i){for(var r=(e=u.makeIterator(e)).next();!r.done;r=e.next())if(r=function(n,e,t,i){if(!z(e))try{var r=Q(e,t);if(r)return new D(r)}catch(n){}return i(e)?new R(n,e):null}(n,r.value,t,i))return r;return null}function nn(n,e,t){t=void 0===t?N.isOmidPresent:t;var i=[n,K(n)];return e&&i.unshift(e),Z(n,i,$,t)}function k(n,e,t){f("AdSession.context",n),this.adSessionId_=I(),this.context_=n,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=e||nn(Y(),i),this.sessionInterface_=t||new S,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(n.verificationScriptResources),this.sendSlotElement_(n.slotElement),this.sendVideoElement_(n.videoElement),this.sendContentUrl_(n.contentUrl),this.watchSessionEvents_()}function en(n,e,t,i){this.isSkippable=n,this.skipOffset=e,this.isAutoPlay=t,this.position=i}function P(n){f("AdEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerAdEvents(),this.adSession=n}catch(n){throw Error("AdSession already has an ad events instance registered")}}function w(n){f("MediaEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerMediaEvents(),this.adSession=n}catch(n){throw Error("AdSession already has a media events instance registered")}}function tn(t){var n=Y();new R(n).onMessage=function(n,e){n.method===c.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(e)}}k.prototype.getAdSessionId=function(){return this.adSessionId_},k.prototype.setCreativeType=function(n){if(n===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+c.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",n,this.adSessionId_),this.creativeType_=n},k.prototype.setImpressionType=function(n){if(n===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+c.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",n,this.adSessionId_),this.impressionType_=n},k.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},k.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},k.prototype.registerSessionObserver=function(n){this.sendMessage("registerSessionObserver",n,this.adSessionId_)},k.prototype.start=function(){var n={customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation};this.context_.universalAdId&&(n.universalAdId=this.context_.universalAdId.toSerialisedValue()),this.sendOneWayMessage("startSession",n,this.adSessionId_)},k.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},k.prototype.error=function(n,e){this.sendOneWayMessage("sessionError",n,e,this.adSessionId_)},k.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},k.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},k.prototype.sendOneWayMessage=function(n){var e=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[n,null].concat(u.arrayFromIterable(e)))},k.prototype.sendMessage=function(n,e){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(n,e,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(n,e,t)},k.prototype.sendInternalMessage_=function(n,e,t){var i=I();e&&(this.callbackMap_[i]=e),n=new s(i,G(n),T,j(T,t)),this.communication_.sendMessage(n)},k.prototype.handleInternalMessage_=function(n,e){e=n.method;var t,i=n.guid;n=n.args,"response"===e&&this.callbackMap_[i]&&(t=B(T,n),this.callbackMap_[i].apply(this,t)),"error"===e&&window.console&&A(n)},k.prototype.sendInterfaceMessage_=function(n,e,t){try{this.sessionInterface_.sendMessage(n,e,t)}catch(n){A("Failed to communicate with SessionInterface with error:"),A(n)}},k.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},k.prototype.impressionOccurred=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},k.prototype.creativeLoaded=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},k.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",T,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},k.prototype.injectVerificationScripts_=function(n){n&&(n=n.map(function(n){return n.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",n,this.adSessionId_))},k.prototype.sendSlotElement_=function(n){this.sendElement_(n,"setSlotElement")},k.prototype.sendVideoElement_=function(n){this.sendElement_(n,"setVideoElement")},k.prototype.sendElement_=function(n,e){n&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(e,n,this.adSessionId_):this.error(c.ErrorType.GENERIC,"Session Client "+e+" called when communication is cross-origin"))},k.prototype.sendContentUrl_=function(n){n&&this.sendOneWayMessage("setContentUrl",n,this.adSessionId_)},k.prototype.setElementBounds=function(n){f("AdSession.elementBounds",n),this.sendOneWayMessage("setElementBounds",n,this.adSessionId_)},k.prototype.watchSessionEvents_=function(){var e=this;this.registerSessionObserver(function(n){n.type===c.AdEventType.SESSION_START&&(e.isSessionRunning_=!0,e.creativeType_=n.data.creativeType,e.impressionType_=n.data.impressionType),n.type===c.AdEventType.SESSION_FINISH&&(e.isSessionRunning_=!1)})},n("OmidSessionClient.AdSession",k),en.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},P.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},P.prototype.loaded=function(n){n=void 0===n?null:n,this.adSession.creativeLoaded(),n=n?n.toJSON():null,this.adSession.sendOneWayMessage("loaded",n,this.adSessionId_)},n("OmidSessionClient.AdEvents",P),w.prototype.start=function(n,e){p("MediaEvents.start.duration",n),m("MediaEvents.start.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("start",n,e,this.adSessionId_)},w.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},w.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},w.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},w.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},w.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},w.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},w.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},w.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},w.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},w.prototype.volumeChange=function(n){m("MediaEvents.volumeChange.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("volumeChange",n,this.adSessionId_)},w.prototype.playerStateChange=function(n){f("MediaEvents.playerStateChange.playerState",n),this.adSession.sendOneWayMessage("playerStateChange",n,this.adSessionId_)},w.prototype.adUserInteraction=function(n){f("MediaEvents.adUserInteraction.interactionType",n),this.adSession.sendOneWayMessage("adUserInteraction",n,this.adSessionId_)},n("OmidSessionClient.MediaEvents",w),n("OmidSessionClient.OmidVersion",function(n,e){d("OmidVersion.semanticVersion",n),d("OmidVersion.apiLevel",e)}),n("OmidSessionClient.listenForServiceWindow",tn),n("OmidSessionClient.VastProperties",en);var L={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9,HUMAN:10}};function rn(n){for(var e=u.makeIterator(an.keys()),t=e.next();!t.done;t=e.next())for(var t=t.value,i=u.makeIterator(an.get(t)),r=i.next();!r.done;r=i.next())if(r.value.test(n))return t;return L.VerificationVendorId.OTHER}var an=new Map([[L.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[L.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[L.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[L.VerificationVendorId.NIELSEN,[]],[L.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[L.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[L.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]],[L.VerificationVendorId.HUMAN,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.script\.ac\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\/(2|ag|static)\/[a-zA-Z0-9.]*\/analytics.js.*$/]]]);n("OmidSessionClient.verificationVendorIdForScriptUrl",rn),n("OmidSessionClient.VerificationVendorId",L.VerificationVendorId),L.verificationVendorIdForScriptUrl=rn}var on="object"==typeof globalThis?globalThis:window,e={},t=void 0===on?this:on;if("object"==typeof(r=void 0===e?void 0:e)&&"string"!=typeof r.nodeName)n(t,r);else{var i,r={},a=["1.5.5-iab77"],o="default";for(i in a.push(o),n(t,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(t,i)&&Object.defineProperty(t,i,{value:{}}),a.forEach(function(n){var e;null==Object.getOwnPropertyDescriptor(t[i],n)&&(e=function n(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]=n(e[t]));return Object.freeze(e)}(r[i]),Object.defineProperty(t[i],n,{get:function(){return e},enumerable:!0}))}))}s.OmidSessionClient=e.OmidSessionClient}(),il("aws_mtsdk","1.14.0"),t={},n=self,e=function(){"use strict";var i={d:function(n,e){for(var t in e)i.o(e,t)&&!i.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}},p={},m=(i.d(p,{"default":function(){return Pn}}),1),h=2,g=4,E="[MT] ",A=function(n){return n[n["NONE"]=0]="NONE",n[n["ERROR"]=1]="ERROR",n[n["WARNING"]=2]="WARNING",n[n["INFO"]=3]="INFO",n[n["DEBUG"]=4]="DEBUG",n[n["VERBOSE"]=5]="VERBOSE",n}({}),T=h;function G(n,e,t,i){n<=T&&(t=E+t,void 0===i?e.call(console,t):e.call(console,t,i))}var b=console.error,O=console.warn,cn=(console.info,console.debug);function u(n,e){G(m,b,n,e)}function q(n,e){G(h,O,n,e)}function z(n,e){G(g,cn,n,e)}function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function a(n){var e;return null==(e="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:window)?void 0:e[n]}function _(n){if(n){if(Array.isArray(n))return n.slice();if("object"===t(n))return Object.assign({},n)}return null}function Y(n){if(n)try{return JSON.parse(JSON.stringify(n))}catch(n){u("Exception during deep-copy: ".concat(n),n)}return null}function C(n,e){if(null!=n)try{return new $c(n,e).toString()}catch(n){u("URL Exception: ".concat(n),n)}return null}function K(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i)for(var r=0,a=i-1;r<=a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o+1:a=o-1}return-1}function ln(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i){for(var r=0,a=i-1;r<a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o:a=o-1}if(0<r||0<=t(n,e[r]))return r}return-1}for(var o=[],n=0;n<256;n++)o.push((n+256).toString(16).substr(1).toLowerCase());var M=!(null==(e=a("crypto"))||!e.getRandomValues);M||q("crypto.getRandomValues() unavailable");var D=/P.*T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?/;var R="MediaTailor",N="1.0.0",k=[2,9],P="ad_start",w="ad_progress",L="ad_click",x="ad_can_skip",dn="ad_incoming",U="nonlinear_ad_start",F="nonlinear_ad_end",V="ad_tracking_info_response",W=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],s=null;function j(t){var n,i,e,r="nonceReq: ";return s?(n=null==(n=a("goog"))||null==(n=n.pal)?void 0:n.NonceRequest)?((i=new n).omidPartnerName=R,i.omidPartnerVersion=N,i.supportedApiFrameworks=k,W.forEach(function(n){var e=t[n];null!=e&&(i[n]=e)}),i.sessionId||(i.sessionId=function(){var n=new Uint8Array(16);if(M)crypto.getRandomValues(n);else for(var e=0;e<16;e++)n[e]=Math.floor(256*Math.random());return n[6]=15&n[6]|64,n[8]=63&n[8]|128,o[n[0]]+o[n[1]]+o[n[2]]+o[n[3]]+"-"+o[n[4]]+o[n[5]]+"-"+o[n[6]]+o[n[7]]+"-"+o[n[8]]+o[n[9]]+"-"+o[n[10]]+o[n[11]]+o[n[12]]+o[n[13]]+o[n[14]]+o[n[15]]}()),(e=null==(e=(n=s).loadNonceManager)?void 0:e.call(n,i))?z(r+"Request sent",i):u(r+"Request failed",i),e):(u(r+"Missing PAL SDK classes"),null):(u(r+"PAL isn't initialized"),null)}function fn(n){try{return JSON.parse(n)}catch(n){return q("JSON Parse Exception: ".concat(n),n),null}}function B(r,a,o,s,i){var u=new XMLHttpRequest,c=null==s?void 0:s.retryHeuristics,l=0,d=!1;function f(){if(!d)try{e=u,n=r,i=null==(t=s)?void 0:t.headers,e.open(n,a,!0),e.timeout=null!=(n=null==t?void 0:t.timeout)?n:0,i&&Object.keys(i).forEach(function(n){e.setRequestHeader(n,i[n])}),l++,u.send(o),z("XHR (".concat(r," ").concat(a,", #").concat(l,") request sent"),o)}catch(n){q("XHR Exception: ".concat(n),n)}var e,n,t,i}return u.onreadystatechange=function(){if(!d&&4===u.readyState){var n=u.status,e=u.responseText;if(z("XHR (".concat(a,") response received, status ").concat(n),e),n<200||299<n){var t=c?c(l,n,e):-1;if(0<=t)return setTimeout(f,t),void q("XHR (".concat(a,") failed (status ").concat(n,"), retry in ").concat(t," ms"),e)}i&&i(e,n,a)}},f(),{abort:function(){d=!0,u.abort(),z("XHR (".concat(a,") aborted"))}}}function pn(n,e,t){return B("GET",n,null,e,t)}function H(n,e,t,i){try{(t=_(t)||{}).headers=(o={"Content-Type":"application/json; charset=utf-8"},s=t.headers,o&&s?Object.assign(o,s):o),r=n,a=JSON.stringify(e),B("POST",r,a,t,function(n,e,t){200===e&&null!=n&&(n=fn(n)),i&&i(n,e,t)})}catch(n){q("JSON Encode Exception: ".concat(n),n)}var r,a,o,s}function mn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function X(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var i,r,a,o,s=[],u=!0,c=!1;try{if(a=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(i=a.call(t)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(n){c=!0,r=n}finally{try{if(!u&&null!=t["return"]&&(o=t["return"](),Object(o)!==o))return}finally{if(c)throw r}}return s}}(n,e)||function(n,e){var t;if(n)return"string"==typeof n?mn(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mn(n,e):void 0}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var e="impression",J="firstQuartile",$="midpoint",Q="thirdQuartile",Z="complete",r="creativeView",f=[],_n=(f[0]=[e],f[1]=["clickTracking"],f[2]=["loaded"],f[3]=["start",r],f[4]=[J],f[5]=[$],f[6]=[Q],f[7]=[Z],f[8]=["skip"],f[9]=["pause"],f[10]=["resume"],f[11]=["mute"],f[12]=["unmute"],f[13]=["fullscreen","playerExpand"],f[14]=["exitFullscreen","playerCollapse"],{});function vn(s,u,c){var l={},d=null;return{onAdLoad:function(n){d={},null!=(n=n.trackingEvents)&&n.forEach(function(n){d[n.eventType]=n})},onAdEnd:function(n){d=null},onAdTrackingEvent:function(n,e){var t=f[e];if(d&&1===n.playCount&&t)for(var i=t.length,r=0;r<i;r++){var a,o=t[r];s&&null!=(a=_n[o])&&a.noninteractive||!function(i,r){var n=null==r?void 0:r.beaconUrls;if(n)for(var e=n.length,t=0;t<e;t++){var a=null==(a=n[t])?void 0:a.trim();a&&(u?fetch(a,{mode:"no-cors"}):pn(a,l,function(n,e,t){c(i,r,t,e)}))}}(n,d[o])}}}}function hn(n,e){var t,i,r,a,o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(o)return i=!(t=!0),{s:function(){o=o.call(n)},n:function(){var n=o.next();return t=n.done,n},e:function(n){i=!0,r=n},f:function(){try{t||null==o["return"]||o["return"]()}finally{if(i)throw r}}};if(Array.isArray(n)||(o=function(n,e){var t;if(n)return"string"==typeof n?gn(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?gn(n,e):void 0}(n))||e&&n&&"number"==typeof n.length)return o&&(n=o),a=0,{s:e=function(){},n:function(){return a>=n.length?{done:!0}:{done:!1,value:n[a++]}},e:function(n){throw n},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}[e,"loaded","start",r,J,$,Q,Z].forEach(function(n){_n[n]={noninteractive:!0}});var nn="adData: ";function y(n){return n&&"object"===t(n)&&n}function en(n,e){if(!y(n))return null;for(var t=X(e,2)[1],i={},r=t.length,a=0;a<r;a++){var o=X(t[a],3),s=o[0],u=o[1],o=o[2],o=o[0](n[s],o);if(null!=o)i[s]=o;else if(!u)return z(nn+"Missing object field: ".concat(s),n),null}return i}function S(n){return n&&Array.isArray(n)?n:null}function I(n,e){if(!S(n))return null;for(var e=X(e,3),t=e[1],i=e[2],r=[],a=n.length,o=0;o<a;o++){var s=i[0](n[o],i);null!=s||t?r.push(s):z(nn+"Invalid array entry at: ".concat(o),n)}return r}function tn(n){return"number"==typeof n?n:null}function rn(n){return"string"==typeof n?n:null}var e=[tn],r=[rn],c=[function(n){return"boolean"==typeof n?n:null}],l=[en,[["creativeType",!0,r],["uri",!1,r]]],En=[en,[["content",!1,r],["type",!1,r]]],yn=[en,[["beaconUrls",!1,[I,!1,r]],["durationInSeconds",!0,e],["eventId",!0,r],["eventProgramDateTime",!0,r],["eventType",!1,r],["startTimeInSeconds",!0,e]]],Sn=[I,!1,[en,[["beaconUrls",!1,[I,!1,r]],["eventType",!1,r]]]],In=[en,[["adId",!0,r],["adParameters",!0,r],["adSystem",!0,r],["adTitle",!0,r],["adVerifications",!0,[I,!1,[en,[["executableResource",!0,[I,!1,[en,[["apiFramework",!0,r],["language",!0,r],["type",!0,r],["uri",!0,r]]]]],["javaScriptResource",!0,[I,!1,[en,[["apiFramework",!0,r],["browserOptional",!0,r],["uri",!0,r]]]]],["trackingEvents",!0,[I,!1,[en,[["event",!1,r],["uri",!1,r]]]]],["vendor",!0,r],["verificationParameters",!0,r]]]]],["icons",!0,[I,!1,[en,[["program",!0,r],["width",!0,r],["height",!0,r],["xPosition",!0,r],["yPosition",!0,r],["apiFramework",!0,r],["duration",!0,r],["offset",!0,r],["pxratio",!0,r],["staticResources",!0,[I,!1,l]],["iconClicks",!0,[en,[["iconClickThrough",!0,r],["iconClickFallbackImages",!0,[I,!1,[en,[["width",!0,r],["height",!0,r],["altText",!0,r],["staticResources",!0,[I,!1,l]]]]]]]]]]]]],["companionAds",!0,[I,!1,[en,[["adParameters",!0,r],["altText",!0,r],["attributes",!0,[en,[["adSlotId",!0,r],["apiFramework",!0,r],["assetHeight",!0,r],["assetWidth",!0,r],["expandedHeight",!0,r],["expandedWidth",!0,r],["height",!0,r],["id",!0,r],["pxratio",!0,r],["renderingMode",!0,r],["width",!0,r]]]],["companionClickThrough",!0,r],["companionClickTracking",!0,r],["htmlResource",!0,r],["iFrameResource",!0,r],["sequence",!0,r],["staticResource",!0,r],["trackingEvents",!0,[I,!1,[en,[["beaconUrls",!1,[I,!1,r]],["eventType",!1,r]]]]]]]]],["creativeId",!0,r],["creativeSequence",!0,r],["extensions",!0,[I,!1,En]],["trackingEvents",!0,[I,!1,yn]],["vastAdId",!0,r]]],An=[en,[["nonLinearAdList",!1,[I,!1,[en,[["durationInSeconds",!0,e],["adId",!0,r],["adParameters",!0,r],["adSystem",!0,r],["adTitle",!0,r],["creativeId",!0,r],["creativeAdId",!0,r],["creativeSequence",!0,r],["width",!0,r],["height",!0,r],["expandedWidth",!0,r],["expandedHeight",!0,r],["scalable",!0,c],["maintainAspectRatio",!0,c],["minSuggestedDuration",!0,r],["apiFramework",!0,r],["staticResource",!0,r],["staticResourceCreativeType",!0,r],["iFrameResource",!0,r],["htmlResource",!0,r],["clickThrough",!0,r],["clickTracking",!0,r],["clickTrackingId",!0,r]]]]],["extensions",!0,[I,!1,En]],["trackingEvents",!0,[I,!1,yn]]]],Tn=new DOMParser,bn=/\n|<!\[CDATA\[|\]\]>/g;function an(n){n=null==n?void 0:n.textContent;return null==n?null:n.replace(bn,"").trim()}function on(n,e,t){t&&(n[e]=t)}function sn(n,e){var t,i=hn(n.children);try{for(i.s();!(t=i.n()).done;){var r,a=t.value;null!=(r=e[a.tagName])&&r.call(e,a)}}catch(n){i.e(n)}finally{i.f()}}function On(n){var t=[];return sn(n,{IconClickFallbackImage:function(n){var e={};t.push(e),on(e,"width",n.getAttribute("width")),on(e,"height",n.getAttribute("height")),sn(n,{AltText:function(n){on(e,"altText",an(n))},StaticResource:function(n){on(e,"staticResource",an(n))}})}}),t}function Cn(n){return n&&new Date("1970-01-01T".concat(n,"Z")).getTime()/1e3}function Mn(n,a,v){var h,g,r;if(y(n))return h=rn(n.dashAvailabilityStartTime),null!=(g=S(n.avails))&&g.forEach(function(n){if(y(n)){var o=rn(n.availId);if(o){var s=tn(n.startTimeInSeconds),u=tn(n.durationInSeconds),c=(e=(e=rn(n.adMarkerDuration))&&D.exec(e))?3600*((i=e[1])?+i:0)+60*((i=e[2])?+i:0)+((i=e[3])?+i:0):null,l=I(n.adBreakTrackingEvents,Sn),d=((d=rn(n.availProgramDateTime))?new Date(d).getTime()/1e3:h?new Date(h).getTime()/1e3+s:0)||0,e=(E(!1,n,o,s,u,d,c,l),a[o]),t="",f=S(n.ads),i=(null!=f&&f.forEach(function(n){y(n)&&(t+="".concat(n.adId,",").concat(n.startTime,",").concat(n.duration,";"))}),!e||t!==e.digest);if(z(nn+"Avail ".concat(i?e?"!":"":"~").concat(o," ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),i){var p={},m=null==e?void 0:e.ads,_=null==f?void 0:f.length;if(null!=f&&f.forEach(function(n,e){var t,i,r,a;y(n)?(t=rn(n.adId))?null==(i=tn(n.startTimeInSeconds))?q(nn+"Invalid or missing ad start time",n):(p[t]={start:i,duration:n.duration},r=null,m&&(r=m[t],m[t]=null),a=!r||i!==r.start||n.duration!==r.duration,z(nn+"Ad ".concat(a?r?"!":"":"~").concat(t," ")+"(#".concat(e+1," of ").concat(_,") ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.adProgramDateTime,")"),n),a&&v(i,o,e,_,s,u,d,c,l,n,!1,!1,null==(t=r)?void 0:t.start)):q(nn+"Missing ad ID",n):q(nn+"Invalid ad object",f)}),m)for(var r in m){r=m[r];r&&v(0,o,0,0,s,u,d,c,l,null,!1,!1,r.start)}a[o]={digest:t,ads:p}}}else q(nn+"Missing avail ID",n)}else q(nn+"Invalid avail object",g)}),null!=(r=S(n.nonLinearAvails))&&r.forEach(function(n){var e,t,i;y(n)?(i=rn(n.availId),z(nn+"nonLinearAvail ".concat(i," (").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),e=tn(n.startTimeInSeconds),t=I(n.adBreakTrackingEvents,Sn),E(!0,n,i,e,null,i=((i=rn(n.availProgramDateTime))?new Date(i).getTime()/1e3:h?new Date(h).getTime()/1e3+e:0)||0,null,t)):q(nn+"Invalid nonLinearAvail object",r)}),(n=rn(n.nextToken))&&z(nn+'nextToken "'.concat(n,'"')),n;function E(n,e,t,i,r,a,o,s){e=null==(e=S(e.nonLinearAdsList))?void 0:e[0];e&&(y(e)?null==i?q(nn+"Invalid or missing nonlinear ad start time",e):(z(nn+"nonLinearAds",e),v(i,t,0,1,i,r,a,o,s,e,!0,n)):q(nn+"Invalid nonLinearAds object",e))}q(nn+"Invalid tracking-info response")}l=function(n){return n[n["AD_START"]=P]="AD_START",n[n["AD_END"]="ad_end"]="AD_END",n[n["AD_PROGRESS"]=w]="AD_PROGRESS",n[n["AD_CLICK"]=L]="AD_CLICK",n[n["AD_CAN_SKIP"]=x]="AD_CAN_SKIP",n[n["AD_INCOMING"]=dn]="AD_INCOMING",n[n["NONLINEAR_AD_START"]=U]="NONLINEAR_AD_START",n[n["NONLINEAR_AD_END"]=F]="NONLINEAR_AD_END",n[n["AD_TRACKING_INFO_RESPONSE"]=V]="AD_TRACKING_INFO_RESPONSE",n}({});function Dn(){var i=new Zc,a=null,r=null,o=-1,s=!1;function u(n,e){i.dispatchEvent(new nl(n,{detail:e}))}function c(n,e){var t=n.availDuration,i=n.inAvailStartOffset;return{toAdEnd:n.duration-e,toAvailEnd:null!=t&&null!=i?t-i-e:null,toSkipThreshold:0<=o?Math.max(0,o-e):null}}return{addEventListener:function(n,e,t){i.addEventListener(n,e,t)},removeEventListener:function(n,e,t){i.removeEventListener(n,e,t)},onTrackingInfoResponse:function(n){u(V,{failedAdTrackingInfoRequest:n})},onAdStart:function(n,e,t){var i,r;r=e,t=t,a={adData:Y(i=n),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:t+i.duration-r},o=n.skipOffset,s=!1,u(P,{adObject:a,adElapsedTime:e,adCountdown:c(n,e)})},onAdEnd:function(n){u("ad_end",{adObject:a}),a=null},onAdProgress:function(n,e,t){u(w,{adObject:a,adElapsedTime:e,adCountdown:c(n,e)}),!s&&0<=o&&o<=e&&(s=!0,u(x,{adObject:a}))},onAdClick:function(n){u(L,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart:function(n,e,t){r={adData:Y(n)},u(U,{nonLinearAdsObject:r,adElapsedTime:e})},onNonLinearAdsEnd:function(n){u(F,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}}var e=function(n){return n[n["START"]=0]="START",n[n["END"]=1]="END",n[n["PAUSE"]=2]="PAUSE",n[n["RESUME"]=3]="RESUME",n[n["MUTE"]=4]="MUTE",n[n["UNMUTE"]=5]="UNMUTE",n[n["FULLSCREEN"]=6]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=7]="EXIT_FULLSCREEN",n}({}),un=[],c=(un[0]="IMPRESSION",un[1]="CLICK_THROUGH",un[2]="LOADED",un[3]="START",un[4]="FIRST_QUARTILE",un[5]="MID_POINT",un[6]="THIRD_QUARTILE",un[7]="COMPLETE",un[8]="SKIP",un[9]="PAUSE",un[10]="RESUME",un[11]="MUTE",un[12]="UNMUTE",un[13]="FULLSCREEN",un[14]="EXIT_FULLSCREEN",function(n){return n[n["IMPRESSION"]=0]="IMPRESSION",n[n["CLICK_THROUGH"]=1]="CLICK_THROUGH",n[n["LOADED"]=2]="LOADED",n[n["START"]=3]="START",n[n["FIRST_QUARTILE"]=4]="FIRST_QUARTILE",n[n["MID_POINT"]=5]="MID_POINT",n[n["THIRD_QUARTILE"]=6]="THIRD_QUARTILE",n[n["COMPLETE"]=7]="COMPLETE",n[n["SKIP"]=8]="SKIP",n[n["PAUSE"]=9]="PAUSE",n[n["RESUME"]=10]="RESUME",n[n["MUTE"]=11]="MUTE",n[n["UNMUTE"]=12]="UNMUTE",n[n["FULLSCREEN"]=13]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=14]="EXIT_FULLSCREEN",n}({}));function Rn(a,e,S){var s,u="adTracking: ",I=function(n,e){return n-e.start},U=function(n,e){return n-e.startDate},t=function(n,e){return n.start-e.start},F={headers:{"Cache-Control":"no-cache, no-store"}},c=a?S.defaultTrackingRequestInterval||10:-1,V=null!=(n=S.incomingAdCountdownInterval)?n:5,n=S.adTrackingUpdateMode||"pagination",W="playhead"===n,j="pagination"===n,A=[],r={},T=[],b={},l=null,d=null,f=null,p=null,m=null,_=null,v=null,h=null,g=null,E=null,o=null,O=null,y=null,C=null,M=0,D=0,R=0,N=[],k=Dn();function P(n,e){for(var t=N.length,i=0;i<t;i++){var r,a=N[i];null!=(r=a[n])&&r.apply(a,e)}}function w(n,e){e=e||l,z(u+"Ad tracking event ".concat(un[n]),e),P("onAdTrackingEvent",[e,n])}function L(n,e){!n.startDate&&O&&(n.startDate=e+O);e=s;(s=!!n.startDate)!==e&&z(u+"Set adHasStartDate to ".concat(s))}function B(n,e){var E,y;200===e?(y=E=!1,o=Mn(n,r,function(n,e,t,i,r,a,o,s,u,c,l,d,f){var p,m,_,v,h,g;null!=r&&o&&(O=o-r),l?(l="".concat(e||n||0),!b[l]&&(p=n,o=o,m=e,_=u,d=d,m=(g=en(v=c,An))?g.nonLinearAdList.length?(h=g.nonLinearAdList.reduce(function(n,e){var t=e.durationInSeconds||0;return t<=0&&(t=Cn(e.minSuggestedDuration)||0),Math.max(n,t)},0)||5,Object.assign(g,{start:p,startDate:o,duration:h,availId:m,nonlinearAvail:d,adBreakTrackingEvents:_}),z(nn+"New NonLinearAdsData (".concat(h,"s @ ").concat(p,"s / ").concat(o,"s)"),g),g):(q(nn+"Empty nonLinearAdList",v),null):(q(nn+"Missing required fields for NonLinearAdsData",v),null))&&(L(m,n),b[l]=m,K(n,T,I)<0&&(T.push(m),y=!0),P("onNewNonLinearAds",[m]))):(d=null!=f?K(f,A,I):-1,(_=c&&function(t,n,e,i,r,a,o,s,u){var c=tn(u.durationInSeconds);if(null==c||c<=0)return q(nn+"Invalid or missing ad duration",u),null;var l=(l=rn(u.adProgramDateTime))&&new Date(l).getTime()/1e3,d=Cn(rn(u.skipOffset)),f=(d||0===d||(d=-1),en(u,In));if(!f)return q(nn+"Missing required fields for AdData",u),null;function p(n,e){var t=n.getElementsByTagName("JavaScriptResource"),i=n.getElementsByTagName("VerificationParameters"),n=n.getAttribute("vendor"),t=an(null==t?void 0:t[0]),i=an(null==i?void 0:i[0]);n&&t?(f.adVerifications||(f.adVerifications=[])).push({vendor:n,javaScriptResource:[{uri:t}],verificationParameters:i}):q(nn+"Invalid AdVerifications extension content",e)}null!=(u=f.extensions)&&u.forEach(function(n){if("AdVerifications"===n.type){var e=n.content;try{var t=null==(a=Tn.parseFromString(e,"application/xml"))?void 0:a.documentElement;if(t)if("Verification"===t.tagName)p(t,n);else{var i=t.getElementsByTagName("Verification");if(i)for(var r=0;r<i.length;r++)p(i[r],n)}}catch(n){q(nn+"Exception parsing AdVerifications extension: ".concat(e),n)}}else if("companion_about_this_ad"===n.type){var a="<root>"+n.content+"</root>";try{var o,s=null==(o=Tn.parseFromString(a,"application/xml"))?void 0:o.documentElement;s&&sn(s,{Icon:function(n){var e=f.icons||(f.icons=[]),t={};e.push(t),on(t,"program",n.getAttribute("program")),on(t,"width",n.getAttribute("width")),on(t,"height",n.getAttribute("height")),on(t,"xPosition",n.getAttribute("xPosition")),on(t,"yPosition",n.getAttribute("yPosition")),sn(n,{StaticResource:function(n){on(t,"staticResource",an(n))},IconClicks:function(n){var e={};t.iconClicks=e,sn(n,{IconClickThrough:function(n){on(e,"iconClickThrough",an(n))},IconClickFallbackImages:function(n){n=On(n);n.length&&(e.iconClickFallbackImages=n)}})}})}})}catch(n){q(nn+"Exception parsing AdChoices extension: ".concat(a),n)}}else if("IconClickFallbackImages"===n.type){t="<root>"+n.content+"</root>";try{var u,c=null==(u=Tn.parseFromString(t,"application/xml"))?void 0:u.documentElement;c&&sn(c,{IconClickFallbackImages:function(n){var e={},n=((f.icons||(f.icons=[])).push(e),on(e,"program",n.getAttribute("program")),On(n));n.length&&(e.iconClicks={iconClickFallbackImages:n})}})}catch(n){q(nn+"Exception parsing AdChoices extension: ".concat(t),n)}}});var m=[0,0,0,0];function _(n,e){e-=t;0<e&&e<c+.01&&(m[n]=e)}return Object.assign(f,{start:t,startDate:l||0,duration:c,skipOffset:d,availId:n,availAdIndex:e,availAdCount:i,availStart:r,availDuration:a,availMarkedDuration:o,adBreakTrackingEvents:s,inAvailStartOffset:null!=r?t-r:null,playCount:0,quartileEventOffsets:m}),f.videoClickThrough=null,f.trackingEvents=null==(u=f.trackingEvents)?void 0:u.filter(function(n){switch(n.eventType){case"clickThrough":var e=n.beaconUrls[0];return e&&(f.videoClickThrough=e),!1;case J:_(0,n.startTimeInSeconds);break;case $:_(1,n.startTimeInSeconds);break;case Q:_(2,n.startTimeInSeconds);break;case Z:_(3,n.startTimeInSeconds)}return!0}),z(nn+"New AdData (".concat(c,"s @ ").concat(t,"s / ").concat(l,")"),f),f}(n,e,t,i,r,a,s,u,c))?(L(_,n),0<=d&&(_.playCount=A[d].playCount,A.splice(d,1)),n!==f&&0<=(h=K(n,A,I))&&A.splice(h,1),A.push(_),E=!0,P("onNewAd",[_,0<=d])):0<=d&&(c||S.detectAdRemoval)&&(A.splice(d,1),E=!0))}),E&&(A.sort(t),d=f=null,p=null),y&&(T.sort(t),_=v=null,h=null),P("onTrackingInfoResponse",[!1])):(q(u+"Request failed, status ".concat(e),n),P("onTrackingInfoResponse",[!0])),g=null}function x(n,e){var t,i,r;a&&(t=[["tttt","".concat(Date.now())]],W&&t.push(["aws.playheadPositionInSeconds",""+Math.round(e&&O?e-O:n)]),j&&o&&t.push(["aws.nextToken",o]),null!=(e=g)&&e.abort(),n=t,e=new $c(e=a),r=new Qc(e.search),n.forEach(function(n){r.append(n[0],n[1])}),e.search="?"+r.toString(),t=e.toString(),i=B,g=pn(t,F,function(n,e,t){200===e&&null!=n&&(n=fn(n)),i&&i(n,e,t)}))}function H(n,e,t,i){var r,a,o=i?"startDate":"start",t=ln(t,e,i?U:I),i=0<=t?(a=(r=e[t])[o],t+1<e.length?e[t+1][o]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,e.length?e[0][o]:Number.MAX_VALUE);return z(u+"Update time range (".concat(a," - ").concat(i,"), ")+"".concat(n," ad index ").concat(t),r),[r,a,i]}function i(n){n&&N.indexOf(n)<0&&N.push(n)}return 0<=c&&x(0),i(k),i(vn(S.disableNoninteractiveClientSideBeaconing||"server"===(null==(n=S.sessionFeatures)?void 0:n.reportingMode),S.sendAdBeaconsInNoCorsMode&&"function"==typeof fetch,function(n,e,t,i){P("onAdBeaconResponse",[n,e,t,i])})),{updateAdTrackingInfo:function(n,e){var t;null==n?(x(null!=(t=y)?t:0,C),E=y):(null!=(t=g)&&t.abort(),B(n,200))},startUpdatingAdTrackingInfo:function(n){a?(c=n||10,E=null):q(u+"Missing 'trackingUrl'")},stopUpdatingAdTrackingInfo:function(){c=-1},onPlayheadUpdate:function(n,e){var t,i,r,a,o;null!=y&&y<n&&n<y+2.5&&(0<=c&&!g&&(null==E||Math.abs(n-E)>=c)&&(x(n,e),E=n),a=u+"onPlayheadUpdate(".concat(n,", ").concat(e,"), ")+"adHasStartDate => ".concat(s),G(5,cn,a,o),(a=(e=s?e:null)||n)<M||D+2.5<a?M=D=a:D<a&&(D=a),(null==d||a<d||f<=a)&&(o=X(H("linear",A,a,e),3),p=o[0],d=o[1],f=o[2]),o=l,r=a-d,(null==(t=l=p&&a<d+p.duration?p:null)?void 0:t.adId)===(null==o?void 0:o.adId)?l&&(z(u+"Ad progresses, time => ".concat(r)),P("onAdProgress",[l,r,n]),t=D-d,M<=R+d)&&R<t&&(i=R,R=t,(t=l.quartileEventOffsets[0])&&i<t&&t<=R&&w(4),(t=l.quartileEventOffsets[1])&&i<t&&t<=R&&w(5),t=l.quartileEventOffsets[2])&&i<t&&t<=R&&w(6):(o&&((i=o.quartileEventOffsets[3])&&i<R+2.5&&w(7,o),z(u+"Ad ends",o),P("onAdEnd",[o])),R=0,l&&(l.playCount++,e&&z(u+"PDT offset => player ".concat(e-n,", ")+"ad ".concat(l.startDate-l.start),l),z(u+"Ad loads",l),P("onAdLoad",[l]),w(2),z(u+"Ad starts, time => ".concat(r),l),P("onAdStart",[l,r,n]),w(3),w(0))),l||(t=f-a)<=V&&k.dispatchEvent(dn,{timeToNextAd:t}),(null==_||a<_||v<=a)&&(i=X(H("nonlinear",T,a,e),3),h=i[0],_=i[1],v=i[2]),o=m,r=a-_,(m=h&&a<_+h.duration?h:null)!==o)&&(o&&(z(u+"Nonlinear ad ends",o),P("onNonLinearAdsEnd",[o])),m)&&(e&&z(u+"PDT offset => player ".concat(e-n,", ")+"nonlinear ad ".concat(m.startDate-m.start),m),z(u+"Nonlinear ad starts, time => ".concat(r),m),P("onNonLinearAdsStart",[m,r,n])),y=n,C=e},onPlaybackRateUpdate:function(n){},onPlaybackEvent:function(n){switch(n){case 0:null!=e&&e.sendPlaybackStart();break;case 1:null!=e&&e.sendPlaybackEnd()}if(l)switch(n){case 2:w(9);break;case 3:w(10);break;case 4:w(11);break;case 5:w(12);break;case 6:w(13);break;case 7:w(14)}},onVideoClick:function(n){l&&(null!=e&&e.sendAdTouch(n),P("onAdClick",[l]))},onPlayerControlClick:function(n){l&&null!=e&&e.sendAdTouch(n)},onAdClickthrough:function(){l&&(null!=e&&e.sendAdClick(),w(1))},onAdSkip:function(){l&&w(8)},addAdObserver:i,removeAdObserver:function(n){n&&0<=(n=N.indexOf(n))&&N.splice(n,1)},getAllAds:function(){return A.map(Y)},getAllNonLinearAds:function(n){return n?Object.keys(b).map(function(n){return Y(b[n])}):T.map(Y)},addEventListener:function(n,e,t){k.addEventListener(n,e,t)},removeEventListener:function(n,e,t){k.removeEventListener(n,e,t)}}}var v=function(n){return n[n["INVALID_CONFIG"]=0]="INVALID_CONFIG",n[n["INVALID_INIT_RESPONSE"]=1]="INVALID_INIT_RESPONSE",n[n["INIT_DISRUPTED"]=2]="INIT_DISRUPTED",n[n["INIT_ERROR"]=3]="INIT_ERROR",n}({});function d(t,n,i,r){var a,e,o=null,s=t.trackingUrl,u=t.sessionInitUrl,c=t.sessionInitHeaders,l=null!=(e=t.sessionInitTimeout)?e:3e4,d=null!=(e=t.sessionInitMaxRetries)?e:8,f=t.palNonceManager||n,p=null!=(n=null==f||null==(e=f.getNonce)?void 0:e.call(f))?n:null,m={getPlaybackUrl:function(){return o},getTrackingUrl:function(){return s},getPalNonce:function(){return p},updateAdTrackingInfo:function(n,e){a.updateAdTrackingInfo(n,e)},startUpdatingAdTrackingInfo:function(n){a.startUpdatingAdTrackingInfo(n)},stopUpdatingAdTrackingInfo:function(){a.stopUpdatingAdTrackingInfo()},onPlayheadUpdate:function(n,e){a.onPlayheadUpdate(n,e)},onPlaybackRateUpdate:function(n){a.onPlaybackRateUpdate(n)},onPlaybackEvent:function(n){a.onPlaybackEvent(n)},onVideoClick:function(n){a.onVideoClick(n)},onPlayerControlClick:function(n){a.onPlayerControlClick(n)},onAdClickthrough:function(){a.onAdClickthrough()},onAdSkip:function(){a.onAdSkip()},addAdObserver:function(n){a.addAdObserver(n)},removeAdObserver:function(n){a.removeAdObserver(n)},getAllAds:function(){return a.getAllAds()},getAllNonLinearAds:function(n){return a.getAllNonLinearAds(n)},destroy:function(){},addEventListener:function(n,e,t){a.addEventListener(n,e,t)},removeEventListener:function(n,e,t){a.removeEventListener(n,e,t)}};u?(e=_(t.originParams)||{},(n=t.sessionFeatures)&&("off"===n.overlayAvails&&(e.overlayAvails="off"),"server"===n.reportingMode&&(e.reportingMode="server"),"on"===n.adSignaling&&(e.adSignaling={enabled:"true"}),Object.assign(e,n.extra||{})),(n=_(t.playerParams)||{}).device_sdk_info||(n.device_sdk_info=Pn.clientInfo),p&&(n.givn=p),e.playerParams=n,n={retryHeuristics:function(n,e,t){return(0==e||429==e||500<=e&&e<=599)&&n<=d?0==e?0:l:-1}},c&&(n.headers=c),l&&(n.timeout=l),z('createSession: Request sent to URL "'.concat(u,'"'),e),H(u,e,n,function(n,e){200===e?(o=C(null==n?void 0:n.manifestUrl,u))&&(s=C(null==n?void 0:n.trackingUrl,u))?(a=Rn(s,f,t),i(m,"Successful session response",n)):r(v.INVALID_INIT_RESPONSE,"Invalid session response"):0===e?r(v.INIT_DISRUPTED,"Disrupted session initialization"):r(v.INIT_ERROR,"Failed session initialization")})):(a=Rn(s,f,t),i(m,"Session initialized ".concat(s?"elsewhere":"without 'trackingUrl'")))}function Nn(e,i,r,a){var n,o="createSession: ";function t(n,e,t){z(o+e,t),i?i(n,null):r(n)}function s(n,e){var t={code:n,message:e};u(o+"(".concat(n,") ").concat(e)),i?i(null,t):a(t)}e?(n=e.palNonceRequestParams,e.trackingUrl||e.palNonceManager||!n?d(e,null,t,s):(n=j(n))?n.then(function(n){z(o+"NonceManager received",n),d(e,n,t,s)})["catch"](function(n){q(o+"Nonce request rejected",n),d(e,null,t,s)}):(q(o+"Unable to create a nonce request"),d(e,null,t,s))):s(v.INVALID_CONFIG,"Missing config")}var kn="1.14.0";console.debug("[MT] AWS Elemental MediaTailor SDK v".concat(kn));var Pn={initPal:function(n,e){var t="initPal: ";if(!n){if(!e)return u(t+"Missing consent settings"),!1;var i=null==(i=a("goog"))?void 0:i.pal,r=null==i?void 0:i.NonceLoader,i=null==i?void 0:i.ConsentSettings;if(!r||!i)return u(t+"Missing PAL SDK classes"),!1;i=new i;i.allowStorage=null!=(e=e.allowStorage)&&e,n=new r(i)}return s&&q(t+"Resetting NonceLoader"),s=n,!0},createSession:function(t,n){if(!n)return new Promise(function(n,e){Nn(t,null,n,e)});Nn(t,n,null,null)},PlaybackEvent:e,AdTrackingEvent:c,SessionUiEvent:l,setLogLevel:function(n){0<=n&&n<=5?T=n:console.warn(E+"Invalid log level: ".concat(n))},LogLevel:A,getSdkVersion:function(){return kn},clientInfo:"MTSDK v"+kn};return p["default"]},"object"==typeof t?t["mediatailor"]=e():n["mediatailor"]=e(),s.mediatailor=t.mediatailor,s)),Jc&&(module.exports=Jc.datazoom)}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datazoom/collector_shaka_mt_om",
3
- "version": "2.27.0",
3
+ "version": "2.28.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {