vendor: 32,768 bytes, lines 1-85
1'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 2g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 3(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 40,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 5f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 6//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 7'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 8g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 9(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 100,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 11f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 12//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 13'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 14g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 15(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 160,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 17f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 18//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 19'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 20g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 21(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 220,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 23f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 24//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 25'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 26g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 27(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 280,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 29f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 30//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 31'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 32g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 33(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 340,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 35f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 36//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 37'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 38g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 39(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 400,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 41f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 42//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 43'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 44g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 45(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 460,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 47f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 48//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 49'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 50g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 51(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 520,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 53f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 54//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 55'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 56g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 57(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 580,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 59f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 60//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 61'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 62g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 63(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 640,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 65f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 66//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 67'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 68g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 69(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 700,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 71f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 72//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 73'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 74g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 75(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 760,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 77f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 78//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 79'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 80g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 81(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 820,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 83f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 84//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 85'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.cal
vendor: 14,815 bytes, lines 85-134
85l(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 86g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 87(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 880,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 89f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 90//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 91'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 92g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 93(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 940,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 95f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 96//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 97'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 98g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 99(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 1000,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 101f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 102//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 103'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 104g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 105(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 1060,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 107f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 108//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 109'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 110g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 111(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 1120,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 113f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 114//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 115'use strict';(function(r){function x(){}function y(){}var z=String.fromCharCode,v={}.toString,A=v.call(r.SharedArrayBuffer),B=v(),q=r.Uint8Array,t=q||Array,w=q?ArrayBuffer:t,C=w.isView||function(g){return g&&"length"in g},D=v.call(w.prototype);w=y.prototype;var E=r.TextEncoder,a=new (q?Uint16Array:t)(32);x.prototype.decode=function(g){if(!C(g)){var l=v.call(g);if(l!==D&&l!==A&&l!==B)throw TypeError("Failed to execute 'decode' on 'TextDecoder': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'"); 116g=q?new t(g):g||[]}for(var f=l="",b=0,c=g.length|0,u=c-32|0,e,d,h=0,p=0,m,k=0,n=-1;b<c;){for(e=b<=u?32:c-b|0;k<e;b=b+1|0,k=k+1|0){d=g[b]&255;switch(d>>4){case 15:m=g[b=b+1|0]&255;if(2!==m>>6||247<d){b=b-1|0;break}h=(d&7)<<6|m&63;p=5;d=256;case 14:m=g[b=b+1|0]&255,h<<=6,h|=(d&15)<<6|m&63,p=2===m>>6?p+4|0:24,d=d+256&768;case 13:case 12:m=g[b=b+1|0]&255,h<<=6,h|=(d&31)<<6|m&63,p=p+7|0,b<c&&2===m>>6&&h>>p&&1114112>h?(d=h,h=h-65536|0,0<=h&&(n=(h>>10)+55296|0,d=(h&1023)+56320|0,31>k?(a[k]=n,k=k+1|0,n=-1): 117(m=n,n=d,d=m))):(d>>=8,b=b-d-1|0,d=65533),h=p=0,e=b<=u?32:c-b|0;default:a[k]=d;continue;case 11:case 10:case 9:case 8:}a[k]=65533}f+=z(a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22],a[23],a[24],a[25],a[26],a[27],a[28],a[29],a[30],a[31]);32>k&&(f=f.slice(0,k-32|0));if(b<c){if(a[0]=n,k=~n>>>31,n=-1,f.length<l.length)continue}else-1!==n&&(f+=z(n));l+=f;f=""}return l};w.encode=function(g){g=void 0===g?"":""+g;var l=g.length| 1180,f=new t((l<<1)+8|0),b,c=0,u=!q;for(b=0;b<l;b=b+1|0,c=c+1|0){var e=g.charCodeAt(b)|0;if(127>=e)f[c]=e;else{if(2047>=e)f[c]=192|e>>6;else{a:{if(55296<=e)if(56319>=e){var d=g.charCodeAt(b=b+1|0)|0;if(56320<=d&&57343>=d){e=(e<<10)+d-56613888|0;if(65535<e){f[c]=240|e>>18;f[c=c+1|0]=128|e>>12&63;f[c=c+1|0]=128|e>>6&63;f[c=c+1|0]=128|e&63;continue}break a}e=65533}else 57343>=e&&(e=65533);!u&&b<<1<c&&b<<1<(c-7|0)&&(u=!0,d=new t(3*l),d.set(f),f=d)}f[c]=224|e>>12;f[c=c+1|0]=128|e>>6&63}f[c=c+1|0]=128|e&63}}return q? 119f.subarray(0,c):f.slice(0,c)};E||(r.TextDecoder=x,r.TextEncoder=y)})(""+void 0==typeof global?""+void 0==typeof self?this:self:global);//AnonyCo 120//# sourceMappingURL=https://cdn.jsdelivr.net/gh/AnonyCo/FastestSmallestTextEncoderDecoder/EncoderDecoderTogether.min.js.map 121/* 122 @license 123 Shaka Player 124 Copyright 2016 Google LLC 125 SPDX-License-Identifier: Apache-2.0 126*/ 127(function(){var innerGlobal=typeof window!="undefined"?window:global;var exportTo={};(function(window,global,module){/* 128 129 Copyright The Closure Library Authors. 130 SPDX-License-Identifier: Apache-2.0 131*/ 132var r;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a}; 133function ca(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var da=ca(this);function ea(a,b){if(b)a:{var c=da;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&ba(c,a,{configurable:!0,writable:!0,value:b})}} 134ea("Symbol",function(a){function b(f){if(this instanceof b)throw new TypeError("Symbol is not a constructor");return new c(d+(f||"")+"_"+e++,f)}function c(f,g){this.g=f;ba(this,"description",{configurable:!0,writable:!0,value:g})}
vendor: 7,183 bytes, lines 134-151
134if(a)return a;c.prototype.toString=function(){return this.g};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",e=0;return b}); 135ea("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=da[b[c]];"function"===typeof d&&"function"!=typeof d.prototype[a]&&ba(d.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(aa(this))}})}return a});function fa(a){a={next:a};a[Symbol.iterator]=function(){return this};return a} 136function t(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function w(a){if(!(a instanceof Array)){a=t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ha="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},ia; 137if("function"==typeof Object.setPrototypeOf)ia=Object.setPrototypeOf;else{var ja;a:{var ka={a:!0},la={};try{la.__proto__=ka;ja=la.a;break a}catch(a){}ja=!1}ia=ja?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ma=ia; 138function na(a,b){a.prototype=ha(b.prototype);a.prototype.constructor=a;if(ma)ma(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.ci=b.prototype}function oa(){this.o=!1;this.l=null;this.h=void 0;this.g=1;this.j=this.m=0;this.u=this.i=null}function pa(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0}oa.prototype.s=function(a){this.h=a}; 139function qa(a,b){a.i={Af:b,Lf:!0};a.g=a.m||a.j}oa.prototype.return=function(a){this.i={return:a};this.g=this.j};function C(a,b,c){a.g=c;return{value:b}}oa.prototype.A=function(a){this.g=a};function E(a){a.g=0}function ra(a,b,c){a.m=b;void 0!=c&&(a.j=c)}function sa(a,b){a.m=0;a.j=b||0}function ta(a,b,c){a.g=b;a.m=c||0}function ua(a,b){a.m=b||0;b=a.i.Af;a.i=null;return b}function va(a){a.u=[a.i];a.m=0;a.j=0} 140function wa(a,b){var c=a.u.splice(0)[0];(c=a.i=a.i||c)?c.Lf?a.g=a.m||a.j:void 0!=c.A&&a.j<c.A?(a.g=c.A,a.i=null):a.g=a.j:a.g=b}function xa(a){this.g=new oa;this.h=a}function ya(a,b){pa(a.g);var c=a.g.l;if(c)return za(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.g.return);a.g.return(b);return Aa(a)} 141function za(a,b,c,d){try{var e=b.call(a.g.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.g.o=!1,e;var f=e.value}catch(g){return a.g.l=null,qa(a.g,g),Aa(a)}a.g.l=null;d.call(a.g,f);return Aa(a)}function Aa(a){for(;a.g.g;)try{var b=a.h(a.g);if(b)return a.g.o=!1,{value:b.value,done:!1}}catch(c){a.g.h=void 0,qa(a.g,c)}a.g.o=!1;if(a.g.i){b=a.g.i;a.g.i=null;if(b.Lf)throw b.Af;return{value:b.return,done:!0}}return{value:void 0,done:!0}} 142function Ba(a){this.next=function(b){pa(a.g);a.g.l?b=za(a,a.g.l.next,b,a.g.s):(a.g.s(b),b=Aa(a));return b};this.throw=function(b){pa(a.g);a.g.l?b=za(a,a.g.l["throw"],b,a.g.s):(qa(a.g,b),b=Aa(a));return b};this.return=function(b){return ya(a,b)};this[Symbol.iterator]=function(){return this}}function Ca(a){function b(d){return a.next(d)}function c(d){return a.throw(d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})} 143function J(a){return Ca(new Ba(new xa(a)))}function Da(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b} 144ea("Promise",function(a){function b(g){this.h=0;this.i=void 0;this.g=[];this.o=!1;var h=this.j();try{g(h.resolve,h.reject)}catch(k){h.reject(k)}}function c(){this.g=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.h=function(g){if(null==this.g){this.g=[];var h=this;this.i(function(){h.l()})}this.g.push(g)};var e=da.setTimeout;c.prototype.i=function(g){e(g,0)};c.prototype.l=function(){for(;this.g&&this.g.length;){var g=this.g;this.g=[];for(var h=0;h<g.length;++h){var k= 145g[h];g[h]=null;try{k()}catch(l){this.j(l)}}}this.g=null};c.prototype.j=function(g){this.i(function(){throw g;})};b.prototype.j=function(){function g(l){return function(m){k||(k=!0,l.call(h,m))}}var h=this,k=!1;return{resolve:g(this.F),reject:g(this.l)}};b.prototype.F=function(g){if(g===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.H(g);else{a:switch(typeof g){case "object":var h=null!=g;break a;case "function":h=!0;break a;default:h=!1}h?this.C(g):this.m(g)}}; 146b.prototype.C=function(g){var h=void 0;try{h=g.then}catch(k){this.l(k);return}"function"==typeof h?this.J(h,g):this.m(g)};b.prototype.l=function(g){this.s(2,g)};b.prototype.m=function(g){this.s(1,g)};b.prototype.s=function(g,h){if(0!=this.h)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.h);this.h=g;this.i=h;2===this.h&&this.G();this.u()};b.prototype.G=function(){var g=this;e(function(){if(g.B()){var h=da.console;"undefined"!==typeof h&&h.error(g.i)}},1)};b.prototype.B= 147function(){if(this.o)return!1;var g=da.CustomEvent,h=da.Event,k=da.dispatchEvent;if("undefined"===typeof k)return!0;"function"===typeof g?g=new g("unhandledrejection",{cancelable:!0}):"function"===typeof h?g=new h("unhandledrejection",{cancelable:!0}):(g=da.document.createEvent("CustomEvent"),g.initCustomEvent("unhandledrejection",!1,!0,g));g.promise=this;g.reason=this.i;return k(g)};b.prototype.u=function(){if(null!=this.g){for(var g=0;g<this.g.length;++g)f.h(this.g[g]);this.g=null}};var f=new c; 148b.prototype.H=function(g){var h=this.j();g.ld(h.resolve,h.reject)};b.prototype.J=function(g,h){var k=this.j();try{g.call(h,k.resolve,k.reject)}catch(l){k.reject(l)}};b.prototype.then=function(g,h){function k(q,p){return"function"==typeof q?function(u){try{l(q(u))}catch(v){m(v)}}:p}var l,m,n=new b(function(q,p){l=q;m=p});this.ld(k(g,l),k(h,m));return n};b.prototype.catch=function(g){return this.then(void 0,g)};b.prototype.ld=function(g,h){function k(){switch(l.h){case 1:g(l.i);break;case 2:h(l.i); 149break;default:throw Error("Unexpected state: "+l.h);}}var l=this;null==this.g?f.h(k):this.g.push(k);this.o=!0};b.resolve=d;b.reject=function(g){return new b(function(h,k){k(g)})};b.race=function(g){return new b(function(h,k){for(var l=t(g),m=l.next();!m.done;m=l.next())d(m.value).ld(h,k)})};b.all=function(g){var h=t(g),k=h.next();return k.done?d([]):new b(function(l,m){function n(u){return function(v){q[u]=v;p--;0==p&&l(q)}}var q=[],p=0;do q.push(void 0),p++,d(k.value).ld(n(q.length-1),m),k=h.next(); 150while(!k.done)})};return b});function Ea(a,b){return Object.prototype.hasOwnProperty.call(a,b)} 151ea("WeakMap",function(a){function b(k){this.g=(h+=Math.random()+1).toString();if(k){k=t(k);for(var l;!(l=k.next()).done;)l=l.value,this.set(l[0],l[1])}}function c(){}function d(k){var l=typeof k;return"object"===l&&null!==k||"function"===l}function e(k){if(!Ea(k,g)){var l=new c;ba(k,g,{value:l})}}function f(k){var l=Object[k];l&&(Object[k]=function(m){if(m instanceof c)return m;Object.isExtensible(m)&&e(m);return l(m)})}if(function(){if(!a||!Object.seal)return!1;
vendor: 5,794 bytes, lines 151-165
151try{var k=Object.seal({}),l=Object.seal({}), 152m=new a([[k,2],[l,3]]);if(2!=m.get(k)||3!=m.get(l))return!1;m.delete(k);m.set(l,4);return!m.has(k)&&4==m.get(l)}catch(n){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();f("freeze");f("preventExtensions");f("seal");var h=0;b.prototype.set=function(k,l){if(!d(k))throw Error("Invalid WeakMap key");e(k);if(!Ea(k,g))throw Error("WeakMap key fail: "+k);k[g][this.g]=l;return this};b.prototype.get=function(k){return d(k)&&Ea(k,g)?k[g][this.g]:void 0};b.prototype.has=function(k){return d(k)&&Ea(k, 153g)&&Ea(k[g],this.g)};b.prototype.delete=function(k){return d(k)&&Ea(k,g)&&Ea(k[g],this.g)?delete k[g][this.g]:!1};return b}); 154ea("Map",function(a){function b(){var h={};return h.ob=h.next=h.head=h}function c(h,k){var l=h.g;return fa(function(){if(l){for(;l.head!=h.g;)l=l.ob;for(;l.next!=l.head;)return l=l.next,{done:!1,value:k(l)};l=null}return{done:!0,value:void 0}})}function d(h,k){var l=k&&typeof k;"object"==l||"function"==l?f.has(k)?l=f.get(k):(l=""+ ++g,f.set(k,l)):l="p_"+k;var m=h.h[l];if(m&&Ea(h.h,l))for(h=0;h<m.length;h++){var n=m[h];if(k!==k&&n.key!==n.key||k===n.key)return{id:l,list:m,index:h,entry:n}}return{id:l, 155list:m,index:-1,entry:void 0}}function e(h){this.h={};this.g=b();this.size=0;if(h){h=t(h);for(var k;!(k=h.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var h=Object.seal({x:4}),k=new a(t([[h,"s"]]));if("s"!=k.get(h)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var l=k.entries(),m=l.next();if(m.done||m.value[0]!=h||"s"!=m.value[1])return!1;m=l.next();return m.done||4!=m.value[0].x|| 156"t"!=m.value[1]||!l.next().done?!1:!0}catch(n){return!1}}())return a;var f=new WeakMap;e.prototype.set=function(h,k){h=0===h?0:h;var l=d(this,h);l.list||(l.list=this.h[l.id]=[]);l.entry?l.entry.value=k:(l.entry={next:this.g,ob:this.g.ob,head:this.g,key:h,value:k},l.list.push(l.entry),this.g.ob.next=l.entry,this.g.ob=l.entry,this.size++);return this};e.prototype.delete=function(h){h=d(this,h);return h.entry&&h.list?(h.list.splice(h.index,1),h.list.length||delete this.h[h.id],h.entry.ob.next=h.entry.next, 157h.entry.next.ob=h.entry.ob,h.entry.head=null,this.size--,!0):!1};e.prototype.clear=function(){this.h={};this.g=this.g.ob=b();this.size=0};e.prototype.has=function(h){return!!d(this,h).entry};e.prototype.get=function(h){return(h=d(this,h).entry)&&h.value};e.prototype.entries=function(){return c(this,function(h){return[h.key,h.value]})};e.prototype.keys=function(){return c(this,function(h){return h.key})};e.prototype.values=function(){return c(this,function(h){return h.value})};e.prototype.forEach= 158function(h,k){for(var l=this.entries(),m;!(m=l.next()).done;)m=m.value,h.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var g=0;return e}); 159ea("Set",function(a){function b(c){this.g=new Map;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.g.size}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var c=Object.seal({x:4}),d=new a(t([c]));if(!d.has(c)||1!=d.size||d.add(c)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=c||f.value[1]!=c)return!1;f=e.next();return f.done||f.value[0]==c||4!=f.value[0].x|| 160f.value[1]!=f.value[0]?!1:e.next().done}catch(g){return!1}}())return a;b.prototype.add=function(c){c=0===c?0:c;this.g.set(c,c);this.size=this.g.size;return this};b.prototype.delete=function(c){c=this.g.delete(c);this.size=this.g.size;return c};b.prototype.clear=function(){this.g.clear();this.size=0};b.prototype.has=function(c){return this.g.has(c)};b.prototype.entries=function(){return this.g.entries()};b.prototype.values=function(){return this.g.values()};b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]= 161b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.g.forEach(function(f){return c.call(d,f,f,e)})};return b});function Ga(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var f=c++;return{value:b(f,a[f]),done:!1}}d=!0;return{done:!0,value:void 0}}};e[Symbol.iterator]=function(){return e};return e}ea("Array.prototype.keys",function(a){return a?a:function(){return Ga(this,function(b){return b})}}); 162function Ha(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var f=a[e];if(b.call(c,f,e,a))return{Hf:e,v:f}}return{Hf:-1,v:void 0}}ea("Array.prototype.findIndex",function(a){return a?a:function(b,c){return Ha(this,b,c).Hf}});ea("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}}); 163ea("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var f=d[c];if(f===b||Object.is(f,b))return!0}return!1}});function Ia(a,b,c){if(null==a)throw new TypeError("The 'this' value for String.prototype."+c+" must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype."+c+" must not be a regular expression");return a+""} 164ea("String.prototype.includes",function(a){return a?a:function(b,c){return-1!==Ia(this,b,"includes").indexOf(b,c||0)}});ea("Array.prototype.find",function(a){return a?a:function(b,c){return Ha(this,b,c).v}});ea("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=Ia(this,b,"startsWith"),e=d.length,f=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var g=0;g<f&&c<e;)if(d[c++]!=b[g++])return!1;return g>=f}}); 165ea("WeakSet",function(a){function b(c){this.g=new WeakMap;if(c){c=t(c);for(var d;!(d=c.next()).done;)this.add(d.value)}}if(function(){if(!a||!Object.seal)return!1;
165try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(f){return!1}}())return a;b.prototype.add=function(c){this.g.set(c,!0);return this};b.prototype.has=function(c){return this.g.has(c)};b.prototype.delete=function(c){return this.g.delete(c)};return b}); 166ea("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(h){return h};var e=[],f="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof f){b=f.call(b);for(var g=0;!(f=b.next()).done;)e.push(c.call(d,f.value,g++))}else for(f=b.length,g=0;g<f;g++)e.push(c.call(d,b[g],g));return e}});var Ja="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)Ea(d,e)&&(a[e]=d[e])}return a}; 167ea("Object.assign",function(a){return a||Ja});ea("Array.prototype.values",function(a){return a?a:function(){return Ga(this,function(b,c){return c})}});ea("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;})})}});ea("Array.prototype.entries",function(a){return a?a:function(){return Ga(this,function(b,c){return[b,c]})}}); 168ea("String.prototype.repeat",function(a){return a?a:function(b){var c=Ia(this,null,"repeat");if(0>b||1342177279<b)throw new RangeError("Invalid count value");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});ea("Number.isNaN",function(a){return a?a:function(b){return"number"===typeof b&&isNaN(b)}});ea("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); 169ea("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push(b[d]);return c}});ea("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});ea("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});ea("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||Infinity===b||-Infinity===b||0===b)return b;var c=Math.floor(Math.abs(b));return 0>b?-c:c}}); 170ea("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)Ea(b,d)&&c.push([d,b[d]]);return c}});var Ka=this||self;function P(a,b){a=a.split(".");var c=Ka;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};/* 171 @license 172 Shaka Player 173 Copyright 2016 Google LLC 174 SPDX-License-Identifier: Apache-2.0 175*/ 176function Ma(){}function Na(){};function Oa(a){this.g=Math.exp(Math.log(.5)/a);this.i=this.h=0}Oa.prototype.sample=function(a,b){var c=Math.pow(this.g,a);b=b*(1-c)+c*this.h;isNaN(b)||(this.h=b,this.i+=a)};function Pa(a){return a.h/(1-Math.pow(a.g,a.i))};function Qa(){this.h=new Oa(2);this.j=new Oa(5);this.g=0;this.i=128E3;this.l=16E3}Qa.prototype.configure=function(a){this.i=a.minTotalBytes;this.l=a.minBytes;this.h.g=Math.exp(Math.log(.5)/a.fastHalfLife);this.j.g=Math.exp(Math.log(.5)/a.slowHalfLife)};Qa.prototype.sample=function(a,b){if(!(b<this.l)){var c=8E3*b/a;a/=1E3;this.g+=b;this.h.sample(a,c);this.j.sample(a,c)}};Qa.prototype.getBandwidthEstimate=function(a){return this.g<this.i?a:Math.min(Pa(this.h),Pa(this.j))};function Ra(){}function Sa(){}function Ta(){}function Ua(a){var b=Da.apply(1,arguments);Va.has(a)||(Va.add(a),Ta.apply(Ra,w(b)))}function Wa(){}function Xa(){}var Va=new Set;window.console&&(Ta=function(){return console.warn.apply(console,w(Da.apply(0,arguments)))},Sa=function(){console.error.apply(console,w(Da.apply(0,arguments)))});function $a(){this.g={}}r=$a.prototype;r.push=function(a,b){this.g.hasOwnProperty(a)?this.g[a].push(b):this.g[a]=[b]};r.get=function(a){return(a=this.g[a])?a.slice():null};r.remove=function(a,b){a in this.g&&(this.g[a]=this.g[a].filter(function(c){return c!=b}),0==this.g[a].length&&delete this.g[a])};r.forEach=function(a){for(var b in this.g)a(b,this.g[b])};r.size=function(){return Object.keys(this.g).length};r.keys=function(){return Object.keys(this.g)};function ab(){this.g=new $a}r=ab.prototype;r.release=function(){this.qb();this.g=null};r.D=function(a,b,c,d){this.g&&(a=new bb(a,b,c,d),this.g.push(b,a))};r.ka=function(a,b,c,d){function e(g){f.Cb(a,b,e);c(g)}var f=this;this.D(a,b,e,d)};r.Cb=function(a,b,c){if(this.g){var d=this.g.get(b)||[];d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,e.target!=a||c!=e.listener&&c||(e.Cb(),this.g.remove(b,e))}}; 177r.qb=function(){if(this.g){var a=this.g,b=[],c;for(c in a.g)b.push.apply(b,w(a.g[c]));a=t(b);for(b=a.next();!b.done;b=a.next())b.value.Cb();this.g.g={}}};P("shaka.util.EventManager",ab);ab.prototype.removeAll=ab.prototype.qb;ab.prototype.unlisten=ab.prototype.Cb;ab.prototype.listenOnce=ab.prototype.ka;ab.prototype.listen=ab.prototype.D;ab.prototype.release=ab.prototype.release;function bb(a,b,c,d){this.target=a;this.type=b;this.listener=c;this.g=cb(a,d);this.target.addEventListener(b,c,this.g)} 178bb.prototype.Cb=function(){this.target.removeEventListener(this.type,this.listener,this.g);this.listener=this.target=null;this.g=!1};function cb(a,b){if(void 0==b)return!1;if("boolean"==typeof b)return b;var c=new Set(["passive","capture"]);Object.keys(b).filter(function(d){return!c.has(d)});return eb(a)?b:b.capture||!1} 179function eb(a){var b=fb;if(void 0==b){b=!1;try{var c={},d={get:function(){b=!0;return!1}};Object.defineProperty(c,"passive",d);Object.defineProperty(c,"capture",d);d=function(){};a.addEventListener("test",d,c);a.removeEventListener("test",d,c)}catch(e){b=!1}fb=b}return b||!1}var fb=void 0;function gb(a){if(hb.has(a))return hb.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupp
179orted(a);hb.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),hb.set(a,b),b):!1}function ib(){return!!window.SourceBuffer&&!!SourceBuffer.prototype&&!!SourceBuffer.prototype.changeType}var hb=new Map;function jb(){}jb.prototype.extract=function(){};jb.prototype.decode=function(){return[]};jb.prototype.clear=function(){};jb.prototype.getStreams=function(){return[]};function kb(){}kb.prototype.init=function(){};kb.prototype.parse=function(){return[]};function lb(){}function mb(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(nb(a)==nb(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;var c=ob(a);b=ob(b);for(var d=0;d<a.byteLength;d++)if(c[d]!=b[d])return!1;return!0}function nb(a){return a instanceof ArrayBuffer?a:a.buffer}function rb(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer} 180function ob(a,b,c){c=void 0===c?Infinity:c;return sb(a,void 0===b?0:b,c,Uint8Array)}function tb(a,b,c){c=void 0===c?Infinity:c;return sb(a,void 0===b?0:b,c,Uint16Array)}function ub(a,b,c){c=void 0===c?Infinity:c;return sb(a,void 0===b?0:b,c,DataView)}function sb(a,b,c,d){var e=nb(a),f=1;"BYTES_PER_ELEMENT"in d&&(f=d.BYTES_PER_ELEMENT);var g=((a.byteOffset||0)+a.byteLength)/f;a=Math.floor(Math.max(0,Math.min(((a.byteOffset||0)+b)/f,g)));return new d(e,a,Math.floor(Math.min(a+Math.max(c,0),g))-a)} 181P("shaka.util.BufferUtils",lb);lb.toDataView=ub;lb.toUint16=tb;lb.toUint8=ob;lb.toArrayBuffer=rb;lb.equal=mb;function vb(){}vb.prototype.init=function(){};vb.prototype.i=function(){};vb.prototype.g=function(){};vb.prototype.j=function(){};P("shaka.media.IClosedCaptionParser",vb);function wb(a){this.l=new kb;if(a=yb[a.toLowerCase()])this.l=a();this.h=new jb;if(a=zb)this.h=a()}wb.prototype.init=function(a,b){void 0!==b&&b||(this.g(),this.l.init(a))};wb.prototype.i=function(a){a=this.l.parse(a);a=t(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=ob(b.packet);0<c.length&&this.h.extract(c,b.pts)}return this.h.decode()}; 182wb.prototype.g=function(){this.h.clear()};wb.prototype.j=function(){return this.h.getStreams()};P("shaka.media.ClosedCaptionParser",wb);wb.findDecoder=function(){return zb};wb.unregisterDecoder=function(){zb=null};wb.registerDecoder=function(a){zb=a};wb.findParser=function(a){return yb[a]};wb.unregisterParser=function(a){delete yb[a]};wb.registerParser=function(a,b){yb[a]=b};var yb={},zb=null;function Ab(a,b){return"number"===typeof a&&"number"===typeof b&&isNaN(a)&&isNaN(b)?!0:a===b}function Bb(a,b){b=a.indexOf(b);-1<b&&a.splice(b,1)}function Cb(a,b,c){c||(c=Ab);if(a.length!=b.length)return!1;b=b.slice();var d={};a=t(a);for(var e=a.next();!e.done;d={Ud:d.Ud},e=a.next()){d.Ud=e.value;e=b.findIndex(function(f){return function(g){return c(f.Ud,g)}}(d));if(-1==e)return!1;b[e]=b[b.length-1];b.pop()}return 0==b.length} 183function Db(a,b,c){c||(c=Ab);if(a.length!=b.length)return!1;for(var d=0;d<a.length;d++)if(!c(a[d],b[d]))return!1;return!0};function Eb(a,b,c){this.startTime=a;this.endTime=b;this.payload=c;this.region=new Fb;this.position=null;this.positionAlign=Gb;this.size=0;this.textAlign=Hb;this.direction=Ib;this.writingMode=Jb;this.lineInterpretation=Kb;this.line=null;this.lineHeight="";this.lineAlign=Lb;this.displayAlign=Mb;this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="";this.fontWeight=Nb;this.fontStyle=Rb;this.linePadding=this.letterSpacing=this.fontFamily="";this.opacity=1;this.textCombineUpright= 184"";this.textDecoration=[];this.textStrokeWidth=this.textStrokeColor=this.textShadow="";this.wrapLine=!0;this.id="";this.nestedCues=[];this.lineBreak=this.isContainer=!1;this.rubyTag=null;this.cellResolution={Ib:32,rows:15}}function Sb(a,b){a=new Eb(a,b,"");a.lineBreak=!0;return a}Eb.prototype.clone=function(){var a=new Eb(0,0,""),b;for(b in this)a[b]=this[b],a[b]&&a[b].constructor==Array&&(a[b]=a[b].slice());return a}; 185function Tb(a,b){if(a.startTime!=b.startTime||a.endTime!=b.endTime||a.payload!=b.payload)return!1;for(var c in a)if("startTime"!=c&&"endTime"!=c&&"payload"!=c)if("nestedCues"==c){if(!Db(a.nestedCues,b.nestedCues,Tb))return!1}else if("region"==c||"cellResolution"==c)for(var d in a[c]){if(a[c][d]!=b[c][d])return!1}else if(Array.isArray(a[c])){if(!Db(a[c],b[c]))return!1}else if(a[c]!=b[c])return!1;return!0}P("shaka.text.Cue",Eb);Eb.equal=Tb;Eb.prototype.clone=Eb.prototype.clone;var Gb="auto"; 186Eb.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:Gb};var Hb="center",Ub={LEFT:"left",RIGHT:"right",CENTER:Hb,START:"start",END:"end"};Eb.textAlign=Ub;var Mb="after",Vb={BEFORE:"before",CENTER:"center",AFTER:Mb};Eb.displayAlign=Vb;var Ib="ltr";Eb.direction={HORIZONTAL_LEFT_TO_RIGHT:Ib,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var Jb="horizontal-tb";Eb.writingMode={HORIZONTAL_TOP_TO_BOTTOM:Jb,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var Kb=0; 187Eb.lineInterpretation={LINE_NUMBER:Kb,PERCENTAGE:1};var Lb="start",Wb={CENTER:"center",START:Lb,END:"end"};Eb.lineAlign=Wb;var Xb={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Eb.defaultTextColor=Xb;var Yb={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};
187Eb.defaultTextBackgroundColor=Yb;var Nb=400;Eb.fontWeight={NORMAL:Nb,BOLD:700}; 188var Rb="normal",Zb={NORMAL:Rb,ITALIC:"italic",OBLIQUE:"oblique"};Eb.fontStyle=Zb;Eb.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"};function Fb(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=$b;this.scroll=ac}P("shaka.text.CueRegion",Fb);var $b=1;Fb.units={PX:0,PERCENTAGE:$b,LINES:2};var ac="";Fb.scrollMode={NONE:ac,UP:"up"};function bc(){}bc.prototype.destroy=function(){};function cc(a,b,c){dc[a.toLowerCase().split(";")[0]+"-"+c]={priority:c,Od:b}}function ec(a,b){for(var c=a.toLowerCase().split(";")[0],d=t([fc,gc,hc,ic]),e=d.next();!e.done;e=d.next())if(e=dc[c+"-"+e.value]){var f=e.Od(),g=f.isSupported(a,b);f.destroy();if(g)return e.Od}return null}P("shaka.transmuxer.TransmuxerEngine",bc);bc.findTransmuxer=ec;bc.unregisterTransmuxer=function(a,b){delete dc[a.toLowerCase().split(";")[0]+"-"+b]}; 189bc.registerTransmuxer=cc;bc.prototype.destroy=bc.prototype.destroy;var dc={},ic=1,hc=2,gc=3,fc=4;bc.PluginPriority={FALLBACK:ic,PREFERRED_SECONDARY:hc,PREFERRED:gc,APPLICATION:fc};/* 190 @license 191 Copyright 2008 The Closure Library Authors 192 SPDX-License-Identifier: Apache-2.0 193*/ 194var jc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* 195 @license 196 Copyright 2006 The Closure Library Authors 197 SPDX-License-Identifier: Apache-2.0 198*/ 199function kc(a){var b;a instanceof kc?(lc(this,a.Ya),this.Tb=a.Tb,nc(this,a.kb),oc(this,a.kc),this.Da=a.Da,pc(this,a.g.clone()),this.Jb=a.Jb):a&&(b=String(a).match(jc))?(lc(this,b[1]||"",!0),this.Tb=qc(b[2]||""),nc(this,b[3]||"",!0),oc(this,b[4]),this.Da=qc(b[5]||"",!0),pc(this,b[6]||"",!0),this.Jb=qc(b[7]||"")):this.g=new rc(null)}r=kc.prototype;r.Ya="";r.Tb="";r.kb="";r.kc=null;r.Da="";r.Jb=""; 200r.toString=function(){var a=[],b=this.Ya;b&&a.push(sc(b,tc,!0),":");if(b=this.kb){a.push("//");var c=this.Tb;c&&a.push(sc(c,tc,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.kc;null!=b&&a.push(":",String(b))}if(b=this.Da)this.kb&&"/"!=b.charAt(0)&&a.push("/"),a.push(sc(b,"/"==b.charAt(0)?uc:vc,!0));(b=this.g.toString())&&a.push("?",b);(b=this.Jb)&&a.push("#",sc(b,xc));return a.join("")}; 201r.resolve=function(a){var b=this.clone();"data"===b.Ya&&(b=new kc);var c=!!a.Ya;c?lc(b,a.Ya):c=!!a.Tb;c?b.Tb=a.Tb:c=!!a.kb;c?nc(b,a.kb):c=null!=a.kc;var d=a.Da;if(c)oc(b,a.kc);else if(c=!!a.Da){if("/"!=d.charAt(0))if(this.kb&&!this.Da)d="/"+d;else{var e=b.Da.lastIndexOf("/");-1!=e&&(d=b.Da.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):".."== 202h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Da=d:c=""!==a.g.toString();c?pc(b,a.g.clone()):c=!!a.Jb;c&&(b.Jb=a.Jb);return b};r.clone=function(){return new kc(this)};function lc(a,b,c){a.Ya=c?qc(b,!0):b;a.Ya&&(a.Ya=a.Ya.replace(/:$/,""))}function nc(a,b,c){a.kb=c?qc(b,!0):b}function oc(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.kc=b}else a.kc=null} 203function pc(a,b,c){b instanceof rc?a.g=b:(c||(b=sc(b,yc)),a.g=new rc(b))}function qc(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function sc(a,b,c){return null!=a?(a=encodeURI(a).replace(b,zc),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}function zc(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var tc=/[#\/\?@]/g,vc=/[#\?:]/g,uc=/[#\?]/g,yc=/[#\?@]/g,xc=/#/g;function rc(a){this.g=a||null} 204function Ac(a){if(!a.ua&&(a.ua={},a.Hc=0,a.g))for(var b=a.g.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}}r=rc.prototype;r.ua=null;r.Hc=null;function Bc(a){Ac(a);return a.Hc}r.add=function(a,b){Ac(this);this.g=null;var c=this.ua.hasOwnProperty(a)?this.ua[a]:null;c||(this.ua[a]=c=[]);c.push(b);this.Hc++;return this}; 205r.set=function(a,b){Ac(this);this.g=null;this.ua.hasOwnProperty(a)?this.ua[a]=[b]:this.add(a,b);return this};r.get=function(a){Ac(this);return this.ua[a]||[]};r.toString=function(){if(this.g)return this.g;if(!this.ua)return"";var a=[],b;for(b in this.ua)for(var c=encodeURIComponent(b),d=this.ua[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="="+encodeURIComponent(d[e]));a.push(f)}return this.g=a.join("&")}; 206r.clone=function(){var a=new rc;a.g=this.g;if(this.ua){var b={},c;for(c in this.ua)b[c]=this.ua[c].concat();a.ua=b;a.Hc=this.Hc}return a};function Q(a,b,c){var d=Da.apply(3,arguments);this.severity=a;this.category=b;this.code=c;this.data=d;this.handled=!1;this.message="Shaka Error "+this.code;if(Cc)try{throw Error(this.message||"Shaka Error");}catch(e){this.stack=e.stack}}Q.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")};P("shaka.util.Error",Q);var Cc=!0;Q.Severity={RECOVERABLE:1,CRITICAL:2};Q.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10}; 207Q.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,SEGMENT_MISSING:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVA
207LID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011, 208CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,CHAPTERS_TRACK_FAILED:2015,UNSUPPORTED_EXTERNAL_THUMBNAILS_URI:2017,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010, 209WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,MSS_MISSING_DATA_FOR_TRANSMUXING:3020,MSS_TRANSMUXING_CODEC_UNKNOWN:3021,MSS_TRANSMUXING_FAILED:3022,TRANSMUXING_NO_VIDEO_DATA:3023,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002, 210DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024, 211HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,NO_WEB_CRYPTO_API:4042,CANNOT_ADD_EXTERNAL_THUMBNAILS_TO_LIVE_STREAM:4045,MSS_INVALID_XML:4046, 212MSS_LIVE_CONTENT_NOT_SUPPORTED:4047,AES_128_INVALID_IV_LENGTH:4048,AES_128_INVALID_KEY_LENGTH:4049,DASH_CONFLICTING_AES_128:4050,DASH_UNSUPPORTED_AES_128:4051,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010, 213NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,MIN_HDCP_VERSION_NOT_MATCH:6018,ERROR_CHECKING_HDCP_VERSION:6019,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8E3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005, 214CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9E3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,INDEXED_DB_INIT_TIMED_OUT:9017,CS_IMA_SDK_MISSING:1E4, 215CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004,MT_AD_MANAGER_NOT_INITIALIZED:10005};function Dc(a,b){if(0==b.length)return a;if(1==a.length&&1==b.length){var c=new kc(a[0]);b=new kc(b[0]);return[c.resolve(b).toString()]}b=b.map(function(g){return new kc(g)});c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=new kc(d.value);for(var e=t(b),f=e.next();!f.done;f=e.next())c.push(d.resolve(f.value).toString())}return c} 216function Ec(a,b){return{keySystem:a,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioR
vendor: 10,696 bytes, lines 216-238
216obustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:b||[],keyIds:new Set}}function Fc(a,b){if(1==b.length)return b[0];a=Gc(a,b);if(null!=a)return a;throw new Q(2,4,4025,b);} 217function Gc(a,b){for(var c=t(Hc[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a==Ic?"":null}var Ic="text",Jc={$:"video",P:"audio",ha:Ic,ae:"image",Oh:"application"},Hc={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4$/,/^dts[cex]$/,/^iamf/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Kc(){}function Lc(a,b){var c=a;b&&!Oc.includes(a)&&(c+='; codecs="'+b+'"');return c}function Pc(a,b){b&&(a+='; codecs="'+b+'"');return a}function Qc(a,b,c){var d=Lc(a,b);b=Pc(a,b);ec(b)?(a=ec(b))?(a=a(),c=a.convertCodecs(c,b),a.destroy()):c=b:c="video/mp2t"!=a&&"audio"==c?d.replace("video","audio"):d;return c} 218function Rc(a,b,c){var d=[b];Sc.forEach(function(e,f){var g=a[f];"codecs"==f?Oc.includes(a.mimeType)||d.push('codecs="'+c+'"'):g&&d.push(e+'="'+g+'"')});"PQ"==a.hdr&&d.push('eotf="smpte2084"');return d.join(";")}function Tc(a){return a.split(";")[0].split("/")[1]} 219function Uc(a){var b=Vc(a);a=b[0];b=b[1].toLowerCase();switch(!0){case "mp4a"===a&&"69"===b:case "mp4a"===a&&"6b"===b:case "mp4a"===a&&"40.34"===b:return"mp3";case "mp4a"===a&&"66"===b:case "mp4a"===a&&"67"===b:case "mp4a"===a&&"68"===b:case "mp4a"===a&&"40.2"===b:case "mp4a"===a&&"40.02"===b:case "mp4a"===a&&"40.5"===b:case "mp4a"===a&&"40.05"===b:case "mp4a"===a&&"40.29"===b:case "mp4a"===a&&"40.42"===b:return"aac";case "mp4a"===a&&"a5"===b:return"ac-3";case "mp4a"===a&&"a6"===b:return"ec-3";case "mp4a"=== 220a&&"b2"===b:return"dtsx";case "mp4a"===a&&"a9"===b:return"dtsc";case "avc1"===a:case "avc3"===a:return"avc";case "hvc1"===a:case "hev1"===a:return"hevc";case "dvh1"===a:case "dvhe"===a:return"dovi"}return a}function Xc(a){var b=[];a=t(a.split(","));for(var c=a.next();!c.done;c=a.next())c=Vc(c.value),b.push(c[0]);return b.sort().join(",")}function Yc(a){return a.split(";")[0]} 221function Zc(a){a=a.split(/ *; */);a.shift();return(a=a.find(function(b){return b.startsWith("codecs=")}))?a.split("=")[1].replace(/^"|"$/g,""):""}function $c(a){return"application/x-mpegurl"===a||"application/vnd.apple.mpegurl"===a}function Vc(a){a=a.split(".");var b=a[0];a.shift();return[b,a.join(".")]}P("shaka.util.MimeUtils",Kc);Kc.getFullTypeWithAllCodecs=Pc;Kc.getFullType=Lc; 222var Sc=(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),Oc=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function ad(a){this.i=null;this.j=a;this.u=!1;this.l=this.s=0;this.m=Infinity;this.h=this.g=null;this.B="";this.o=new Map}function bd(a){return cd[a]?!0:"application/cea-608"==a||"application/cea-708"==a?!!zb:!1}ad.prototype.destroy=function(){this.j=this.i=null;this.o.clear();return Promise.resolve()}; 223function dd(a,b,c,d,e){var f,g,h,k;return J(function(l){if(1==l.g)return C(l,Promise.resolve(),2);if(!a.i||!a.j)return l.return();if(null==c||null==d)return a.i.parseInit(ob(b)),l.return();f=a.u?c:a.s;g={periodStart:a.s,segmentStart:c,segmentEnd:d,vttOffset:f};h=a.i.parseMedia(ob(b),g,e);k=h.filter(function(m){return m.startTime>=a.l&&m.startTime<a.m});a.j.append(k);null==a.g&&(a.g=Math.max(c,a.l));a.h=Math.min(d,a.m);E(l)})} 224ad.prototype.remove=function(a,b){var c=this;return J(function(d){if(1==d.g)return C(d,Promise.resolve(),2);!c.j||!c.j.remove(a,b)||null==c.g||b<=c.g||a>=c.h||(a<=c.g&&b>=c.h?c.g=c.h=null:a<=c.g&&b<c.h?c.g=b:a>c.g&&b>=c.h&&(c.h=a));E(d)})};function ed(a,b,c){a.l=b;a.m=c}function fd(a,b,c){a.B=b;if(b=a.o.get(b))for(var d=t(b.keys()),e=d.next();!e.done;e=d.next())(e=b.get(e.value).filter(function(f){return f.endTime<=c}))&&a.j.append(e)} 225function gd(a,b,c){b.startTime+=c;b.endTime+=c;b=t(b.nestedCues);for(var d=b.next();!d.done;d=b.next())gd(a,d.value,c)} 226function hd(a,b,c,d,e){var f=c+" "+d,g=new Map;b=t(b);for(var h=b.next();!h.done;h=b.next()){var k=h.value;h=k.stream;k=k.cue;g.has(h)||g.set(h,new Map);g.get(h).has(f)||g.get(h).set(f,[]);gd(a,k,e);k.startTime>=a.l&&k.startTime<a.m&&(g.get(h).get(f).push(k),h==a.B&&a.j.append([k]))}e=t(g.keys());for(f=e.next();!f.done;f=e.next())for(f=f.value,a.o.has(f)||a.o.set(f,new Map),b=t(g.get(f).keys()),h=b.next();!h.done;h=b.next())h=h.value,k=g.get(f).get(h),a.o.get(f).set(h,k);a.g=null==a.g?Math.max(c, 227a.l):Math.min(a.g,Math.max(c,a.l));a.h=Math.max(a.h,Math.min(d,a.m))}P("shaka.text.TextEngine",ad);ad.prototype.destroy=ad.prototype.destroy;ad.findParser=function(a){return cd[a]};ad.unregisterParser=function(a){delete cd[a]};ad.registerParser=function(a,b){cd[a]=b};var cd={};function id(a,b){return a.concat(b)}function jd(){}function kd(a){return null!=a};function ld(){}function md(a,b){a=nd(a);b=nd(b);return a.split("-")[0]==b.split("-")[0]}function od(a,b){a=nd(a);b=nd(b);a=a.split("-");b=b.split("-");return a[0]==b[0]&&1==a.length&&2==b.length}function pd(a,b){a=nd(a);b=nd(b);a=a.split("-");b=b.split("-");return 2==a.length&&2==b.length&&a[0]==b[0]} 228function nd(a){a=t(a.split("-x-"));var b=a.next().value;b=void 0===b?"":b;a=a.next().value;a=void 0===a?"":a;var c=t(b.split("-"));b=c.next().value;b=void 0===b?"":b;c=c.next().value;c=void 0===c?"":c;a=a?"x-"+a:"";b=b.toLowerCase();b=qd.get(b)||b;c=c.toUpperCase();return(c?b+"-"+c:b)+(a?"-"+a:"")}function rd(a,b){a=nd(a);b=nd(b);return b==a?4:od(b,a)?3:pd(b,a)?2:od(a,b)?1:0}function sd(a){var b=a.indexOf("-");a=0<=b?a.substring(0,b):a;a=a.toLowerCase();return a=qd.get(a)||a} 229function td(a){return a.language?nd(a.language):a.audio&&a.audio.language?nd(a.audio.language):a.video&&a.video.language?nd(a.video.language):"und"} 230function ud(a,b){a=nd(a);var c=new Set,d=t(b);for(b=d.next();!b.done;b=d.next())c.add(nd(b.value));d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,b==a)return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,od(b,a))return b;d=t(c);for(b=d.next();!b.done;b=d.next())if(b=b.value,pd(b,a))return b;c=t(c);for(b=c.next();!b.done;b=c.next())if(b=b.value,od(a,b))return b;return null}P("shaka.util.LanguageUtils",ld);ld.findClosestLocale=ud;ld.getLocaleForVariant=td; 231ld.getLocaleForText=function(a){return nd(a.language||"und")};ld.getBase=sd;ld.relatedness=rd;ld.areSiblings=function(a,b){var c=sd(a),d=sd(b);return a!=c&&b!=d&&c==d};ld.normalize=nd;ld.isSiblingOf=pd;ld.isParentOf=od;ld.areLanguageCompatible=md;ld.areLocaleCompatible=function(a,b){a=nd(a);b=nd(b);return a==b}; 232var qd=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze", 233"cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice", 234"is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao", 235"mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san", 236"sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie", 237"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function vd(a){function b(d){switch(typeof d){case "undefined":case "boolean":case "number":case "string":case "symbol":case "function":return d;default:if(!d||d.buffer instanceof ArrayBuffer)return d;if(c.has(d))return null;var e=d.constructor==Array;if(d.constructor!=Object&&!e)return null;c.add(d);var f=e?[]:{},g;for(g in d)f[g]=b(d[g]);e&&(f.length=d.length);return f}}var c=new WeakSet;return b(a)}function wd(a){var b={},c;for(c in a)b[c]=a[c];return b};function xd(a){this.h=a;this.g=null}xd.prototype.V=function(a){var b=this;this.stop();var c=!0,d=null;this.g=function(){window.clearTimeout(d);c=!1};d=window.setTimeout(function(){c&&b.h()},1E3*a);return this};xd.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function yd(a){this.h=a;this.g=null}yd.prototype.gf=function(){this.stop();this.h();return this};yd.prototype.V=function(a){var b=this;this.stop();this.g=(new xd(function(){b.h()})).V(a);return this};yd.prototype.Pa=function(a){var b=this;this.stop();this.g=(new xd(function(){b.g.V(a);b.h()})).V(a);return this};yd.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)};P("shaka.util.Timer",yd);yd.prototype.stop=yd.prototype.stop;yd.prototype.tickEvery=yd.prototype.Pa; 238yd.prototype.tickAfter=yd.prototype.V;yd.prototype.tickNow=yd.prototype.gf;function Dd(){var a=window.ManagedMediaSource||window.MediaSource;
238return a&&a.isTypeSupported?!0:!1}function Ed(a){return""!=Fd().canPlayType(a)}function Gd(){return navigator.userAgent.match(/Edge?\//)?!0:!1}function Hd(){return navigator.userAgent.match(/Edge\//)?!0:!1}function Id(){return Jd("Xbox One")}function Kd(){return Jd("Tizen")}function Ld(){return Jd("Tizen 3")}function Md(){return Jd("Tizen 2")}function Nd(){return Jd("Web0S")}function Od(){return Nd()&&38===Pd()} 239function Qd(){return Jd("CrKey")}function Pd(){if(!Jd("Chrome")||Hd())return null;var a=navigator.userAgent.match(/Chrome\/(\d+)/);return a?parseInt(a[1],10):null}function Rd(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!Kd()&&!Jd("PC=EOS")&&!Jd("PC=APL")&&!Jd("VirginMedia")&&!Jd("SOPOpenBrowser")&&!Sd()&&!Jd("AFT")&&!Jd("WPE")}function Sd(){return Jd("PlayStation 4")} 240function Td(){if(!Rd())return null;var a=navigator.userAgent.match(/Version\/(\d+)/);return a?parseInt(a[1],10):(a=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(a[1],10):null}function Jd(a){return(navigator.userAgent||"").includes(a)}function Fd(){if(Ud)return Ud;Vd||(Vd=new yd(function(){Ud=null}));(Ud=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Ud=document.createElement("video"));Vd.V(1);return Ud}var Vd=null,Ud=null;function Wd(){} 241function Xd(a,b,c,d){var e=a.variants;if(b.length||c.length)e=Yd(e,b,c);if(d.length){b=new $a;c=t(e);for(e=c.next();!e.done;e=c.next())e=e.value,b.push(String(e.video.width||0),e);var f=[];b.forEach(function(u,v){u=0;var x=[],z={};v=t(v);for(var y=v.next();!y.done;z={Ac:z.Ac},y=v.next())z.Ac=y.value,y=d.filter(function(B){return function(A){return B.Ac.decodingInfos[0][A]}}(z)).length,y>u?(u=y,x=[z.Ac]):y==u&&x.push(z.Ac);f.push.apply(f,w(x))});e=f}c=new Set;b=new Set;var g=t(e);for(e=g.next();!e.done;e= 242g.next())e=e.value,e.audio&&c.add(e.audio),e.video&&b.add(e.video);c=Array.from(c).sort(function(u,v){return u.bandwidth-v.bandwidth});var h=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;var k=g.language+(g.channelsCount||0)+(g.audioSamplingRate||0)+g.roles.join(",")+g.label+g.groupId+g.fastSwitching,l=e.get(k)||[];if(l.length){var m=l[l.length-1],n=Uc(m.codecs),q=Uc(g.codecs);n==q&&g.bandwidth>m.bandwidth&&(l.push(g),h.push(g.id))}else l.push(g),h.push(g.id);e.set(k,l)}c=Array.from(b).sort(function(u, 243v){return u.bandwidth&&v.bandwidth?u.bandwidth-v.bandwidth:u.width-v.width});b=ib();var p=[];e=new Map;c=t(c);for(g=c.next();!g.done;g=c.next()){g=g.value;k=Math.round(g.frameRate||0)+(g.hdr||"")+g.fastSwitching;l=e.get(k)||[];if(l.length){m=l[l.length-1];if(!b&&(n=Uc(m.codecs),q=Uc(g.codecs),n!==q))continue;g.width>m.width||g.height>m.height?(l.push(g),p.push(g.id)):g.width==m.width&&g.height==m.height&&(n=Uc(m.codecs),q=Uc(g.codecs),n==q&&g.bandwidth>m.bandwidth&&(l.push(g),p.push(g.id)))}else l.push(g), 244p.push(g.id);e.set(k,l)}a.variants=a.variants.filter(function(u){var v=u.audio;u=u.video;return v&&!h.includes(v.id)||u&&!p.includes(u.id)?!1:!0})} 245function Yd(a,b,c){var d={};b=t(b);for(var e=b.next();!e.done;d={$d:d.$d},e=b.next())if(d.$d=e.value,e=a.filter(function(f){return function(g){return g.video&&g.video.codecs.startsWith(f.$d)}}(d)),e.length){a=e;break}d={};c=t(c);for(b=c.next();!b.done;d={Td:d.Td},b=c.next())if(d.Td=b.value,b=a.filter(function(f){return function(g){return g.audio&&g.audio.codecs.startsWith(f.Td)}}(d)),b.length){a=b;break}return a}function Zd(a,b,c){a.variants=a.variants.filter(function(d){return $d(d,b,c)})} 246function $d(a,b,c){function d(f,g,h){return f>=g&&f<=h}var e=a.video;return e&&e.width&&e.height&&(!d(e.width,b.minWidth,Math.min(b.maxWidth,c.width))||!d(e.height,b.minHeight,Math.min(b.maxHeight,c.height))||!d(e.width*e.height,b.minPixels,b.maxPixels))||a&&a.video&&a.video.frameRate&&!d(a.video.frameRate,b.minFrameRate,b.maxFrameRate)||!d(a.bandwidth,b.minBandwidth,b.maxBandwidth)?!1:!0} 247function ae(a,b,c){var d=!1;a=t(a);for(var e=a.next();!e.done;e=a.next()){e=e.value;var f=e.allowedByApplication;e.allowedByApplication=$d(e,b,c);f!=e.allowedByApplication&&(d=!0)}return d}function be(a,b){return J(function(c){if(1==c.g)return C(c,ce(a,b,0<b.offlineSessionIds.length),2);de(b);return C(c,ee(b),0)})} 248function ce(a,b,c){var d,e;return J(function(f){if(1==f.g)return C(f,fe(b.variants,c,!1,[]),2);d=null;a&&(e=a.g)&&(d=e.keySystem);b.variants=b.variants.filter(function(g){var h=ge(g,d);if(!h){var k=[];g.audio&&k.push(he(g.audio));g.video&&k.push(he(g.video))}return h});E(f)})} 249function ge(a,b){var c=Id(),d=Jd("Firefox")&&Jd("Android"),e=a.video,f=e&&e.width||0,g=e&&e.height||0;if(c&&e&&(1920<f||1080<g)&&(e.codecs.includes("avc1.")||e.codecs.includes("avc3.")))return!1;if(e){c=ie(e.codecs);if(e.codecs.includes(",")){f=e.codecs.split(",");c=Fc("video",f);c=ie(c);f=Fc("audio",f);f=je(f,e.mimeType);g=Qc(e.mimeType,f,"audio");if(!gb(g))return!1;c=[c,f].join()}f=Qc(e.mimeType,c,"video");if(!gb(f))return!1;e.codecs=c}e=a.audio;if(d&&e&&e.encrypted&&e.codecs.toLowerCase().includes("opus"))return!1; 250if(e){d=je(e.codecs,e.mimeType);c=Qc(e.mimeType,d,"audio");if(!gb(c))return!1;e.codecs=d}return a.decodingInfos.some(function(h){return!h.supported||b&&(h=h.
250keySystemAccess)&&h.keySystem!=b?!1:!0})}function ke(a){var b=[];for(c in a)b.push(c);b.sort();var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=JSON.stringify(e);e=a[e];e instanceof Object?(e=ke(e),c.push(d+":"+e)):(e=JSON.stringify(e),c.push(d+":"+e))}return"{"+c.join(",")+"}"} 251function le(a,b){var c,d,e,f,g,h,k;return J(function(l){if(1==l.g){c=function(m,n){if(m){var q=wd(m);q.supported=m.supported&&n.supported;q.powerEfficient=m.powerEfficient&&n.powerEfficient;q.smooth=m.smooth&&n.smooth;n.keySystemAccess&&!q.keySystemAccess&&(q.keySystemAccess=n.keySystemAccess);return q}return n};d=null;e=[];f={};g=t(b);for(h=g.next();!h.done;f={oc:f.oc,pc:f.pc},h=g.next())k=h.value,f.pc=ke(k),f.oc=me,f.oc[f.pc]?d=c(d,f.oc[f.pc]):e.push(ne(k).then(function(m){return function(n){var q= 252null;n=t(n||[]);for(var p=n.next();!p.done;p=n.next())q=c(q,p.value);q&&(m.oc[m.pc]=q,d=c(d,q))}}(f)));return C(l,Promise.all(e),2)}d&&a.decodingInfos.push(d);E(l)})} 253function ne(a){var b=[""];a.video&&(b=Zc(a.video.contentType).split(","));var c=[""];a.audio&&(c=Zc(a.audio.contentType).split(","));var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;for(var f={},g=t(c),h=g.next();!h.done;f={Eb:f.Eb},h=g.next())h=h.value,f.Eb=vd(a),a.video&&(f.Eb.video.contentType=Lc(Yc(f.Eb.video.contentType),e)),a.audio&&(f.Eb.audio.contentType=Lc(Yc(f.Eb.audio.contentType),h)),d.push(new Promise(function(k){return function(l,m){navigator.mediaCapabilities.decodingInfo(k.Eb).then(function(n){l(n)}).catch(m)}}(f)))}return Promise.all(d).catch(function(){JSON.stringify(a); 254return null})} 255function fe(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A;return J(function(D){switch(D.g){case 1:if(e=a.some(function(F){return F.decodingInfos.length}))return D.return();f={};g=t(d);h=g.next();case 2:if(h.done){D.A(4);break}f.Vd=h.value;k=!1;l=t(a);m=l.next();case 5:if(m.done){D.A(7);break}n=m.value;q=oe(n,b,c).filter(function(F){return function(K){K=K[0];return(K.keySystemConfiguration&&K.keySystemConfiguration.keySystem)===F.Vd}}(f));p=t(q);u=p.next();case 8:if(u.done){D.A(10);break}v=u.value; 256return C(D,le(n,v),9);case 9:u=p.next();D.A(8);break;case 10:n.decodingInfos.length&&(k=!0);m=l.next();D.A(5);break;case 7:if(k)return D.return();f={Vd:f.Vd};h=g.next();D.A(2);break;case 4:x=t(a),m=x.next();case 12:if(m.done){D.A(0);break}z=m.value;y=oe(z,b,c).filter(function(F){F=F[0];F=F.keySystemConfiguration&&F.keySystemConfiguration.keySystem;return!F||!d.includes(F)});B=t(y);u=B.next();case 15:if(u.done){m=x.next();D.A(12);break}A=u.value;return C(D,le(z,A),16);case 16:u=B.next(),D.A(15)}})} 257function oe(a,b,c){var d=a.audio,e=a.video,f=[],g=[];if(e)for(var h=t(e.fullMimeTypes),k=h.next();!k.done;k=h.next()){k=k.value;var l=Zc(k);if(l.includes(",")&&!d){var m=l.split(","),n=Yc(k);l=Fc("video",m);m=Fc("audio",m);m=je(m,n);n=Qc(n,m,"audio");g.push({contentType:n,channels:2,bitrate:a.bandwidth||1,samplerate:1,spatialRendering:!1})}l=ie(l);k={contentType:Qc(Yc(k),l,"video"),width:e.width||64,height:e.height||64,bitrate:e.bandwidth||a.bandwidth||1,framerate:e.frameRate||1};if(e.hdr)switch(e.hdr){case "SDR":k.transferFunction= 258"srgb";break;case "PQ":k.transferFunction="pq";break;case "HLG":k.transferFunction="hlg"}f.push(k)}if(d)for(h=t(d.fullMimeTypes),k=h.next();!k.done;k=h.next())l=k.value,k=Yc(l),l=je(Zc(l),k),k=Qc(k,l,"audio"),g.push({contentType:k,channels:d.channelsCount||2,bitrate:d.bandwidth||a.bandwidth||1,samplerate:d.audioSamplingRate||1,spatialRendering:d.spatialAudio});h=[];0==f.length&&f.push(null);0==g.length&&g.push(null);f=t(f);for(k=f.next();!k.done;k=f.next())for(k=k.value,l=t(g),n=l.next();!n.done;n= 259l.next())n=n.value,m={type:c?"file":"media-source"},k&&(m.video=k),n&&(m.audio=n),h.push(m);g=(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[]);if(!g.length)return[h];a=[];c=new Map;g=t(g);for(var q=g.next();!q.done;q=g.next())f=q.value,c.get(f.keySystem)||c.set(f.keySystem,[]),c.get(f.keySystem).push(f);g=b?"required":"optional";b=b?["persistent-license"]:["temporary"];f=t(c.keys());for(k=f.next();!k.done;k=f.next()){k=k.value;l=[];n=t(h);for(m=n.next();!m.done;m=n.next()){m=Object.assign({}, 260m.value);var p=c.get(k),u={keySystem:k,initDataType:"cenc",persistentState:g,distinctiveIdentifier:"optional",sessionTypes:b};p=t(p);for(q=p.next();!q.done;q=p.next()){q=q.value;if(q.initData&&q.initData.length){for(var v=new Set,x=t(q.initData),z=x.next();!z.done;z=x.next())v.add(z.value.initDataType);u.initDataType=q.initData[0].initDataType}q.distinctiveIdentifierRequired&&(u.distinctiveIdentifier="required");q.persistentStateRequired&&(u.persistentState="required");q.sessionType&&(u.sessionTypes= 261[q.sessionType]);d&&(""!=q.audioRobustness?u.audio?u.audio.robustness=u.audio.robustness||q.audioRobustness:u.audio={robustness:q.audioRobustness}:u.audio||(u.audio={}));e&&(""!=q.videoRobustness?u.video?u.video.robustness=u.video.robustness||q.videoRobustness:u.video={robustness:q.videoRobustness}:u.video||(u.video={}))}m.keySystemConfiguration=u;l.push(m)}a.push(l)}return a} 262function je(a,b){return"flac"==a.toLowerCase()?Td()?"fLaC":"flac":"opus"===a.toLowerCase()?Td()?"mp4"==Tc(b)?"Opus":"opus":"opus":a}function ie(a){if(a.includes("avc1")){var b=a.split(".");if(3==b.length)return a=b.shift()+".",a+=parseInt(b.shift(),10).toString(16),a+=("000"+parseInt(b.shift(),10).toString(16)).slice(-4)}else if("vp9"==a)return"vp09.00.41.08";return a}function de(a){a.textStreams=a.textStreams.filter(function(b){b=Lc(b.mimeType,b.codecs);return bd(b)})} 263function ee(a){var b,c,d,e,f,g,h,k;return J(function(l){switch(l.g){case 1:b=[],c=t(a.imageStreams),d=c.next();case 2:if(d.done){l.A(4);break}e=d.value;f=e.mimeType;"application/mp4"==f&&"mjpg"==e.codecs&&(f="image/jpg");
263if(pe.has(f)){l.A(5);break}g=qe.get(f);if(!g){pe.set(f,!1);l.A(5);break}return C(l,re(g),7);case 7:h=l.h,pe.set(f,h);case 5:(k=pe.get(f))&&b.push(e);d=c.next();l.A(2);break;case 4:a.imageStreams=b,E(l)}})} 264function re(a){return new Promise(function(b){var c=new Image;c.src=a;"decode"in c?c.decode().then(function(){b(!0)}).catch(function(){b(!1)}):c.onload=c.onerror=function(){b(2===c.height)}})} 265function se(a){var b=a.audio,c=a.video,d=b?b.mimeType:null,e=c?c.mimeType:null,f=b?b.codecs:null,g=c?c.codecs:null,h=[];g&&h.push(g);f&&h.push(f);var k=[];c&&k.push(c.mimeType);b&&k.push(b.mimeType);k=k[0]||null;var l=[];b&&l.push(b.kind);c&&l.push(c.kind);l=l[0]||null;var m=new Set;if(b)for(var n=t(b.roles),q=n.next();!q.done;q=n.next())m.add(q.value);if(c)for(n=t(c.roles),q=n.next();!q.done;q=n.next())m.add(q.value);a={id:a.id,active:!1,type:"variant",bandwidth:a.bandwidth,language:a.language,label:null, 266kind:l,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:k,audioMimeType:d,videoMimeType:e,codecs:h.join(", "),audioCodec:f,videoCodec:g,primary:a.primary,roles:Array.from(m),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null}; 267c&&(a.videoId=c.id,a.originalVideoId=c.originalId,a.width=c.width||null,a.height=c.height||null,a.frameRate=c.frameRate||null,a.pixelAspectRatio=c.pixelAspectRatio||null,a.videoBandwidth=c.bandwidth||null,a.hdr=c.hdr||null,a.videoLayout=c.videoLayout||null);b&&(a.audioId=b.id,a.originalAudioId=b.originalId,a.channelsCount=b.channelsCount,a.audioSamplingRate=b.audioSamplingRate,a.audioBandwidth=b.bandwidth||null,a.spatialAudio=b.spatialAudio,a.label=b.label,a.audioR
vendor: 2,497 bytes, lines 267-274
267oles=b.roles,a.accessibilityPurpose= 268b.accessibilityPurpose,a.originalLanguage=b.originalLanguage);return a} 269function te(a){return{id:a.id,active:!1,type:Ic,bandwidth:0,language:a.language,label:a.label,kind:a.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null,primary:a.primary,roles:a.roles,audioRoles:null,forced:a.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null, 270originalVideoId:null,originalAudioId:null,originalTextId:a.originalId,originalImageId:null,accessibilityPurpose:a.accessibilityPurpose,originalLanguage:a.originalLanguage}} 271function ue(a){var b=a.width||null,c=a.height||null,d=null;a.segmentIndex&&(d=a.segmentIndex.get(0));var e=a.tilesLayout;d&&(e=d.tilesLayout||e);e&&null!=b&&(b/=Number(e.split("x")[0]));e&&null!=c&&(c/=Number(e.split("x")[1]));return{id:a.id,active:!1,type:"image",bandwidth:a.bandwidth||0,language:"",label:null,kind:null,width:b,height:c,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:a.mimeType,audioMimeType:null,videoMimeType:null,codecs:a.codecs||null,audioCodec:null,videoCodec:null, 272primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:e||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:a.originalId,accessibilityPurpose:null,originalLanguage:null}}function ve(a){a.__shaka_id||(a.__shaka_id=we++);return a.__shaka_id} 273function xe(a){var b=ye(a);b.active="disabled"!=a.mode;b.type="text";b.originalTextId=a.id;"captions"==a.kind&&(b.mimeType="unknown");"subtitles"==a.kind&&(b.mimeType="text/vtt");a.kind&&(b.roles=[a.kind]);"forced"==a.kind&&(b.forced=!0);return b}function Ae(a){var b=ye(a);b.active=a.enabled;b.type="variant";b.originalAudioId=a.id;"main"==a.kind&&(b.primary=!0);a.kind&&(b.roles=[a.kind],b.audioRoles=[a.kind],b.label=a.label);return b} 274function ye(a){var b=a.language;return{id:ve(a),active:!1,type:"",bandwidth:0,language:nd(b||"und"),label:a.label,kind:a.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioR
274oles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null, 275originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:b}}function Be(a){return a.allowedByApplication&&a.allowedByKeySystem&&0==a.disabledUntilTime}function Ce(a){return a.filter(function(b){return Be(b)})} 276function De(a,b,c,d){var e=a,f=a.filter(function(k){return k.primary});f.length&&(e=f);var g=e.length?e[0].language:"";e=e.filter(function(k){return k.language==g});if(b){var h=ud(nd(b),a.map(function(k){return k.language}));h&&(e=a.filter(function(k){return nd(k.language)==h}))}e=e.filter(function(k){return k.forced==d});if(c){if(a=Ee(e,c),a.length)return a}else if(a=e.filter(function(k){return 0==k.roles.length}),a.length)return a;a=e.map(function(k){return k.roles}).reduce(id,[]);return a.length? 277Ee(e,a[0]):e}function Ee(a,b){return a.filter(function(c){return c.roles.includes(b)})}function he(a){return"audio"==a.type?"type=audio codecs="+a.codecs+" bandwidth="+a.bandwidth+" channelsCount="+a.channelsCount+" audioSamplingRate="+a.audioSamplingRate:"video"==a.type?"type=video codecs="+a.codecs+" bandwidth="+a.bandwidth+" frameRate="+a.frameRate+" width="+a.width+" height="+a.height:"unexpected stream type"}P("shaka.util.StreamUtils",Wd);Wd.meetsRestrictions=$d; 278var me={},we=0,pe=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),qe=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Fe(){var a=this;this.s=null;this.o=!1;this.i=new Qa;this.F=new ab;navigator.connection&&navigator.connection.addEventListener&&this.F.D(navigator.connection,"change",function(){if(a.o&&a.g.useNetworkInformation){a.i=new Qa;a.g&&a.i.configure(a.g.advanced);var b=a.chooseVariant();b&&navigator.onLine&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}});this.m=[];this.B=1;this.G=!1;this.h=this.l=this.g=this.u=null;this.C=new yd(function(){if(a.g.restrictToElementSize){var b=a.chooseVariant(); 279b&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}});this.j=null}r=Fe.prototype;r.stop=function(){this.s=null;this.o=!1;this.m=[];this.B=1;this.l=this.u=null;this.h&&(this.h.disconnect(),this.h=null);this.C.stop();this.j=null};r.release=function(){this.F.release();this.C=null};r.init=function(a){this.s=a}; 280r.chooseVariant=function(a){a=void 0===a?!1:a;var b=Infinity,c=Infinity;this.g.restrictToScreenSize&&(c=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio,b=window.screen.height*c,c*=window.screen.width);if(this.h&&this.g.restrictToElementSize){var d=this.g.ignoreDevicePixelRatio?1:window.devicePixelRatio;b=Math.min(b,this.l.clientHeight*d);c=Math.min(c,this.l.clientWidth*d)}var e=this.m.filter(function(l){return!(l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching)});e.length||(e= 281this.m);d=e;a&&e.length!=this.m.length&&(d=this.m.filter(function(l){return l.audio&&l.audio.fastSwitching||l.video&&l.video.fastSwitching?!0:!1}));a=Ge(this,this.g.restrictions,d,Infinity,Infinity);if(Infinity!=b||Infinity!=c){a=He(a);a=t(a);for(e=a.next();!e.done;e=a.next())if(e=e.value,e.height>=b&&e.width>=c){b=e.height;c=e.width;break}a=Ge(this,this.g.restrictions,d,b,c)}b=this.getBandwidthEstimate();d.length&&!a.length&&(a=Ge(this,null,d,Infinity,Infinity),a=[a[0]]);c=a[0]||null;for(d=0;d<a.length;d++){e= 282a[d];for(var f=isNaN(this.B)?1:Math.abs(this.B),g=f*e.bandwidth/this.g.bandwidthDowngradeTarget,h={bandwidth:Infinity},k=d+1;k<a.length;k++)if(e.bandwidth!=a[k].bandwidth){h=a[k];break}f=f*h.bandwidth/this.g.bandwidthUpgradeTarget;b>=g&&b<=f&&c.bandwidth!=e.bandwidth&&(c=e)}this.u=Date.now();return c};r.enable=function(){this.o=!0};r.disable=function(){this.o=!1};r.segmentDownloaded=function(a,b,c){this.i.sample(a,b);c&&null!=this.u&&this.o&&Ie(this)}; 283r.trySuggestStreams=function(){null!=this.u&&this.o&&Ie(this)};r.getBandwidthEstimate=function(){var a=this.g.defaultBandwidthEstimate;navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(a=1E6*navigator.connection.downlink);a=this.i.getBandwidthEstimate(a);return this.j?this.j.getBandwidthEstimate(a):a};r.setVariants=function(a){this.m=a};r.playbackRateChanged=function(a){this.B=a}; 284r.setMediaElement=function(a){var b=this;this.l=a;this.h&&(this.h.disconnect(),this.h=null);this.l&&"ResizeObserver"in window&&(this.h=new ResizeObserver(function(){b.C.V(Je)}),this.h.observe(this.l))};r.setCmsdManager=function(a){this.j=a};r.configure=function(a){this.g=a;this.i&&this.g&&this.i.configure(this.g.advanced)}; 285function Ie(a){if(!a.G){var b=a.i;if(!(b.g>=b.i))return;a.G=!0}else if(Date.now()-a.u<1E3*a.g.switchInterval)return;b=a.chooseVariant();a.getBandwidthEstimate();b&&a.s(b,a.g.clearBufferSwitch,a.g.safeMarginSwitch)}function Ge(a,b,c,d,e){if(a.j){var f=a.j.Ef();f&&(c=c.filter(function(g){return g.bandwidth&&f?g.bandwidth<=f:!0}))}b&&(c=c.filter(function(g){return $d(g,b,{width:e,height:d})}));return c.sort(function(g,h){return g.bandwidth-h.bandwidth})} 286function He(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=c.value.video)&&c.height&&c.width&&b.push({height:c.height,width:c.width});return b.sort(function(d,e){return d.width-e.width})}P("shaka.abr.SimpleAbrManager",Fe);Fe.prototype.configure=Fe.prototype.configure;Fe.prototype.setCmsdManager=Fe.prototype.setCmsdManager;Fe.prototype.setMediaElement=Fe.prototype.setMediaElement;Fe.prototype.playbackRateChanged=Fe.prototype.playbackRateChanged;Fe.prototype.setVariants=Fe.prototype.setVariants; 287Fe.prototype.getBandwidthEstimate=Fe.prototype.getBandwidthEstimate;Fe.prototype.trySuggestStreams=Fe.prototype.trySuggestStreams;Fe.prototype.segmentDownloaded=Fe.prototype.segmentDownloaded;Fe.prototype.disable=Fe.prototype.disable;Fe.prototype.enable=Fe.prototype.enable;Fe.prototype.chooseVariant=Fe.prototype.chooseVariant;Fe.prototype.init=Fe.prototype.init;Fe.prototype.release=Fe.prototype.release;Fe.prototype.stop=Fe.prototype.stop;var Je=1;function Ke(a,b){this.g=a;this.h=b}Ke.prototype.toString=function(){return"v"+this.g+"."+this.h};function Le(a,b){var c=new Ke(5,0),d=Me,e=d.g,f=c.h-e.h;(0<(c.g-e.g||f)?d.i:d.h)(d.g,c,a,b)}function Ne(a,b,c,d){Ta([c,"has been deprecated and will be removed in",b,". We are currently at version",a,". Additional information:",d].join(" "))}function Oe(a,b,c,d){Sa([c,"has been deprecated and has been removed in",b,". We are now at version",a,". Additional information:",d].join(" "))}var Me=null;P("shaka.config.AutoShowText",{NEVER:0,ALWAYS:1,IF_PREFERRED_TEXT_LANGUAGE:2,IF_SUBTITLES_MAY_BE_NEEDED:3});P("shaka.config.CodecSwitchingStrategy",{Vh:"reload",mg:"smooth"});function Pe(a,b,c,d){c=void 0===c?!0:c;d=void 0===d?!1:d;this.h=a;this.g=new Set([a]);b=b||[];a=t(b);for(b=a.next();!b.done;b=a.next())this.add(b.value,c,d)}Pe.prototype.add=function(a,b,c){return Qe(this.h,a,void 0===b?!0:b,void 0===c?!1:c)?(this.g.add(a),!0):!1}; 288function Qe(a,b,c,d){var e;if(!(e=!!a.audio!=!!b.audio||!!a.video!=!!b.video||a.language!=b.language)&&(e=a.audio&&b.audio)){e=a.audio;var f=b.audio;e=!!((!e.channelsCount||!f.channelsCount||2<e.channelsCount||2<f.channelsCount)&&e.channelsCount!=f.channelsCount||c&&!Re(e,f)||!Se(e.roles,f.roles)||d&&e.groupId!==f.groupId)}!(d=e)&&(d=a.video&&b.video)&&(a=a.video,b=b.video,d=!((!c||Re(a,b))&&Se(a.roles,b.roles)));return d?!1:!0}Pe.prototype.values=function(){return this.g.values()}; 289function Re(a,b){if(a.mimeType!=b.mimeType)return!1;a=a.codecs.split(",").map(function(d){return Xc(d)});b=b.codecs.split(",").map(function(d){return Xc(d)});if(a.length!=b.length)return!1;a.sort();b.sort();for(var c=0;c<a.length;c++)if(a[c]!=b[c])return!1;return!0}
289function Se(a,b){a=new Set(a);b=new Set(b);a.delete("main");b.delete("main");if(a.size!=b.size)return!1;a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b.has(c.value))return!1;return!0};function Te(a,b,c){b=void 0===b?"reload":b;c=void 0===c?!1:c;this.i=a;this.h=b;this.g=c;this.j=new Ue(a.language,"",a.audio&&a.audio.channelsCount?a.audio.channelsCount:0,"",!1,"","","",b,c)}Te.prototype.create=function(a){var b=this,c="smooth"==this.h&&ib(),d=a.filter(function(e){return Qe(b.i,e,!c,b.g)});return d.length?new Pe(d[0],d,!c,this.g):this.j.create(a)}; 290function Ue(a,b,c,d,e,f,g,h,k,l){this.s=a;this.u=b;this.h=c;this.i=d;this.B=e;this.l=f;this.g=void 0===g?"":g;this.j=void 0===h?"":h;this.m=void 0===k?"reload":k;this.o=void 0===l?!1:l} 291Ue.prototype.create=function(a){var b=[];b=Ve(a,this.s);var c=a.filter(function(d){return d.primary});b=b.length?b:c.length?c:a;a=We(b,this.u);a.length&&(b=a);this.l&&(a=Xe(b,this.l),a.length&&(b=a));this.i&&(a=Ye(b,this.i),a.length&&(b=a));this.h&&(a=Ze(b,this.h),a.length&&(b=a));this.g&&(a=$e(b,this.g),a.length&&(b=a));this.j&&(a=af(b,this.j),a.length&&(b=a));a=bf(b,this.B);a.length&&(b=a);return new Pe(b[0],b,!("smooth"==this.m&&ib()),this.o)}; 292function Ve(a,b){b=nd(b);var c=ud(b,a.map(function(d){return td(d)}));return c?a.filter(function(d){return c==td(d)}):[]}function We(a,b){return a.filter(function(c){return c.audio?b?c.audio.roles.includes(b):0==c.audio.roles.length:!1})}function $e(a,b){return a.filter(function(c){return c.audio&&c.audio.label?c.audio.label.toLowerCase()==b.toLowerCase():!1})}function af(a,b){return a.filter(function(c){return c.video&&c.video.label?c.video.label.toLowerCase()==b.toLowerCase():!1})} 293function Ze(a,b){return a.filter(function(c){return c.audio&&c.audio.channelsCount&&c.audio.channelsCount!=b?!1:!0})}function Ye(a,b){"AUTO"==b&&(b=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");return a.filter(function(c){return c.video&&c.video.hdr&&c.video.hdr!=b?!1:!0})}function Xe(a,b){return a.filter(function(c){return c.video&&c.video.videoLayout&&c.video.videoLayout!=b?!1:!0})}function bf(a,b){return a.filter(function(c){return c.audio&&c.audio.spatialAudio!=b?!1:!0})};function cf(){this.g=df;this.h=(new Map).set(df,2).set(ef,1)}function ff(a,b,c){a.h.set(df,c).set(ef,b)}var ef=0,df=1;function gf(a,b){var c=hf();this.l=null==a.maxAttempts?c.maxAttempts:a.maxAttempts;this.j=null==a.baseDelay?c.baseDelay:a.baseDelay;this.o=null==a.fuzzFactor?c.fuzzFactor:a.fuzzFactor;this.m=null==a.backoffFactor?c.backoffFactor:a.backoffFactor;this.g=0;this.h=this.j;if(this.i=void 0===b?!1:b)this.g=1} 294function jf(a){var b,c;return J(function(d){if(1==d.g){if(a.g>=a.l)if(a.i)a.g=1,a.h=a.j;else throw new Q(2,7,1010);b=a.g;a.g++;if(0==b)return d.return();c=a.h*(1+(2*Math.random()-1)*a.o);return C(d,new Promise(function(e){(new yd(e)).V(c/1E3)}),2)}
vendor: 33,911 bytes, lines 294-364
294a.h*=a.m;E(d)})}function hf(){return{maxAttempts:2,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:3E4,stallTimeout:5E3,connectionTimeout:1E4}};function kf(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c}kf.prototype.resolve=function(){};kf.prototype.reject=function(){};function lf(a,b){this.promise=a;this.i=b;this.g=!1}function mf(a){return new lf(Promise.reject(a),function(){return Promise.resolve()})}function nf(){var a=Promise.reject(new Q(2,7,7001));a.catch(function(){});return new lf(a,function(){return Promise.resolve()})}function of(a){return new lf(Promise.resolve(a),function(){return Promise.resolve()})}function pf(a){return new lf(a,function(){return a.catch(function(){})})}lf.prototype.abort=function(){this.g=!0;return this.i()}; 295function qf(a){return new lf(Promise.all(a.map(function(b){return b.promise})),function(){return Promise.all(a.map(function(b){return b.abort()}))})}lf.prototype.finally=function(a){this.promise.then(function(){return a(!0)},function(){return a(!1)});return this}; 296lf.prototype.ma=function(a,b){function c(h){return function(k){if(e.g&&h)f.reject(g);else{var l=h?a:b;l?d=rf(l,k,f):(h?f.resolve:f.reject)(k)}}}function d(){f.reject(g);return e.abort()}var e=this,f=new kf,g=new Q(2,7,7001);this.promise.then(c(!0),c(!1));return new lf(f,function(){return d()})}; 297function rf(a,b,c){try{var d=a(b);if(d&&d.promise&&d.abort)return c.resolve(d.promise),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){},function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}}P("shaka.util.AbortableOperation",lf);lf.prototype.chain=lf.prototype.ma;lf.prototype["finally"]=lf.prototype.finally;lf.all=qf;lf.prototype.abort=lf.prototype.abort;lf.notAbortable=pf;lf.completed=of;lf.aborted=nf;lf.failed=mf;function sf(a,b){if(b)if(b instanceof Map)for(var c=t(b.keys()),d=c.next();!d.done;d=c.next())d=d.value,Object.defineProperty(this,d,{value:b.get(d),writable:!0,enumerable:!0});else for(c in b)Object.defineProperty(this,c,{value:b[c],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.g=!1} 298sf.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};sf.prototype.stopImmediatePropagation=function(){this.g=!0};sf.prototype.stopPropagation=function(){};P("shaka.util.FakeEvent",sf);function tf(){this.ga=new $a;this.Tf=this}tf.prototype.addEventListener=function(a,b){this.ga&&this.ga.push(a,b)};tf.prototype.removeEventListener=function(a,b){this.ga&&this.ga.remove(a,b)};tf.prototype.dispatchEvent=function(a){if(!this.ga)return!0;var b=this.ga.get(a.type)||[],c=this.ga.get("All");c&&(b=b.concat(c));b=t(b);for(c=b.next();!c.done;c=b.next()){c=c.value;a.target=this.Tf;a.currentTarget=this.Tf;try{c.handleEvent?c.handleEvent(a):c.call(this,a)}catch(d){}if(a.g)break}return a.defaultPrevented}; 299tf.prototype.release=function(){this.ga=null};function uf(){this.g=[]}function vf(a,b){a.g.push(b.finally(function(){Bb(a.g,b)}))}uf.prototype.destroy=function(){for(var a=[],b=t(this.g),c=b.next();!c.done;c=b.next())c=c.value,c.promise.catch(function(){}),a.push(c.abort());this.g=[];return Promise.all(a)};function wf(a,b,c,d,e){tf.call(this);this.i=!1;this.m=new uf;this.g=new Set;this.h=new Set;this.l=a||null;this.j=b||null;this.s=c||null;this.u=d||null;this.B=e||null;this.o=!1}na(wf,tf);r=wf.prototype;r.bf=function(a){this.o=a};function xf(a,b,c,d){c=c||yf;var e=zf[a];if(!e||c>=e.priority)zf[a]={priority:c,Od:b,sh:void 0===d?!1:d}}r.th=function(a){this.g.add(a)};r.Jh=function(a){this.g.delete(a)};r.tg=function(){this.g.clear()};r.uh=function(a){this.h.add(a)};r.Kh=function(a){this.h.delete(a)}; 300r.ug=function(){this.h.clear()};function Af(a,b,c){return{uris:a,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:b,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:void 0===c?null:c}}r.destroy=function(){this.i=!0;this.g.clear();this.h.clear();tf.prototype.release.call(this);return this.m.destroy()}; 301r.request=function(a,b,c){var d=this,e=new Bf;if(this.i){var f=Promise.reject(new Q(2,7,7001));f.catch(function(){});return new Cf(f,function(){return Promise.resolve()},e)}b.method=b.method||"GET";b.headers=b.headers||{};b.retryParameters=b.retryParameters?vd(b.retryParameters):hf();b.uris=vd(b.uris);f=Df(this,a,b,c);var g=f.ma(function(){return Ef(d,a,b,c,new gf(b.retryParameters,!1),0,null,e)}),h=g.ma(function(q){return Ff(d,a,q,c)}),k=Date.now(),l=0;f.promise.then(function(){l=Date.now()-k},function(){}); 302var m=0;g.promise.then(function(){m=Date.now()},function(){});var n=h.ma(function(q){var p=Date.now()-m,u=q.response;u.timeMs+=l;u.timeMs+=p;q.ah||!d.l||u.fromCache||"HEAD"==b.method||a!=If||d.l(u.timeMs,u.data.byteLength,Jf(c));return u},function(q){q&&(q.severity=2);throw q;});f=new Cf(n.promise,function(){return n.abort()},e);vf(this.m,f);return f}; 303function Df(a,b,c,d){function e(h){f=f.ma(function(){c.body&&(c.body=rb(c.body));return h(b,c,d)})}var f=of(void 0);a.u&&e(a.u);a=t(a.g);for(var g=a.next();!g.done;g=a.next())e(g.value);return f.ma(void 0,function(h){if(h instanceof Q&&7001==h.code)throw h;throw new Q(2,1,1006,h);})} 304function Ef(a,b,c,d,e,f,g,h){a.o&&(c.uris[f]=c.uris[f].replace("http://","https://"));0<f&&a.B&&a.B(b,d,c.uris[f],c.uris[f-1]);var k=new kc(c.uris[f]),l=k.Ya,m=!1;l||(l=location.protocol,l=l.slice(0,-1),lc(k,l),c.uris[f]=k.toString());l=l.toLowerCase();var n=(l=zf[l])?l.Od:null;if(!n)return mf(new Q(2,1,1E3,k));var q=l.sh,p=null,u=null,v=!1,x=!1,z;return pf(jf(e)).ma(function(){if(a.i)return nf();z=Date.now();var y=n(c.uris[f],c,b,function(D,F,K){p&&p.stop();u&&u.V(A/1E3);a.l&&b==If&&(a.l(D,F,Jf(d)), 305m=!0,h.g=K)},function(D){a.j&&a.j(D,c,b);x=!0});if(!q)return y;var B=c.retryParameters.connectionTimeout;B&&(p=new yd(function(){v=!0;y.abort()}),p.V(B/1E3));var A=c.retryParameters.stallTimeout;A&&(u=new yd(function(){v=!0;y.abort()}));return y}).ma(function(y){p&&p.stop();u&&u.stop();void 0==y.timeMs&&(y.timeMs=Date.now()-z);var B={response:y,ah:m};!x&&a.j&&a.j(y.headers,c,b);return B},function(y){p&&p.stop();u&&u.stop();if(a.s){var B=null,A=0;y instanceof Q&&(B=y,1001==y.code&&(A=y.data[1]));a.s(c, 306B,A,v)}if(a.i)return nf();v&&(y=new Q(1,1,1003,c.uris[f],b));if(y instanceof Q){if(7001==y.code)throw y;if(1010==y.code)throw g;if(1==y.severity)return B=(new Map).set("error",y),B=new sf("retry",B),a.dispatchEvent(B),f=(f+1)%c.uris.length,Ef(a,b,c,d,e,f,y,h)}throw y;})} 307function Ff(a,b,c,d){var e=of(void 0),f={};a=t(a.h);for(var g=a.next();!g.done;f={Xd:f.Xd},g=a.next())f.Xd=g.value,e=e.ma(function(h){return function(){var k=c.response;k.data&&(k.data=rb(k.data));return h.Xd(b,k,d)}}(f));return e.ma(function(){return c},function(h){var k=2;if(h instanceof Q){if(7001==h.code)throw h;k=h.severity}throw new Q(k,1,1007,h);})}function Jf(a){if(a){var b=a.segment;a=a.stream;if(b&&a&&a.fastSwitching&&b.Tc)return!1}return!0}P("shaka.net.NetworkingEngine",wf); 308wf.prototype.request=wf.prototype.request;wf.prototype.destroy=wf.prototype.destroy;wf.makeRequest=Af;wf.defaultRetryParameters=function(){return hf()};wf.prototype.clearAllResponseFilters=wf.prototype.ug;wf.prototype.unregisterResponseFilter=wf.prototype.Kh;wf.prototype.registerResponseFilter=wf.prototype.uh;wf.prototype.clearAllRequestFilters=wf.prototype.tg;wf.prototype.unregisterRequestFilter=wf.prototype.Jh;wf.prototype.registerRequestFilter=wf.prototype.th;wf.unregisterScheme=function(a){delete zf[a]}; 309wf.registerScheme=xf;wf.prototype.setForceHTTPS=wf.prototype.bf;function Bf(){this.g=0}wf.NumBytesRemainingClass=Bf;function Cf(a,b,c){lf.call(this,a,b);this.h=c}na(Cf,lf);wf.PendingRequest=Cf;var If=1;wf.RequestType={MANIFEST:0,SEGMENT:If,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8};wf.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5};var yf=3;wf.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:yf};var zf={};function Kf(a){this.g=!1;this.h=new kf;this.i=a}Kf.prototype.destroy=function(){var a=this;if(this.g)return this.h;this.g=!0;return this.i().then(function(){a.h.resolve()},function(){a.h.resolve()})};function Lf(a,b){if(a.g){if(b instanceof Q&&7003==b.code)throw b;throw new Q(2,7,7003,b);}};function Mf(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())c.push(b(d.value));return c}function Nf(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(!b(c.value))return!1;return!0};function Of(a){this.h=a;this.g=void 0}Of.prototype.value=function(){void 0==this.g&&(this.g=this.h());return this.g};function Pf(a){for(var b=new Map,c=t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b}function Qf(a){var b={};a.forEach(function(c,d){b[d]=c});return b};function Rf(){} 310function Sf(a){if(!a)return"";a=ob(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if(window.TextDecoder&&!Sd())return a=(new TextDecoder).decode(a),a.includes("\ufffd")&&Sa('Decoded string contains an "unknown character" codepoint. That probably means the UTF8 encoding was incorrect!'),a;for(var b="",c=0;c<a.length;++c){var d=65533;0==(a[c]&128)?d=a[c]:a.length>=c+2&&192==(a[c]&224)&&128==(a[c+1]&192)?(d=(a[c]&31)<<6|a[c+1]&63,c+=1):a.length>=c+3&&224==(a[c]&240)&&128==(a[c+1]&192)&&128== 311(a[c+2]&192)?(d=(a[c]&15)<<12|(a[c+1]&63)<<6|a[c+2]&63,c+=2):a.length>=c+4&&240==(a[c]&241)&&128==(a[c+1]&192)&&128==(a[c+2]&192)&&128==(a[c+3]&192)&&(d=(a[c]&7)<<18|(a[c+1]&63)<<12|(a[c+2]&63)<<6|a[c+3]&63,c+=3);if(65535>=d)b+=String.fromCharCode(d);else{d-=65536;var e=d&1023;b+=String.fromCharCode(55296+(d>>10));b+=String.fromCharCode(56320+e)}}return b} 312function Tf(a,b,c){if(!a)return"";if(!c&&0!=a.byteLength%2)throw new Q(2,2,2004);c=Math.floor(a.byteLength/2);var d=new Uint16Array(c);a=ub(a);for(var e=0;e<c;e++)d[e]=a.getUint16(2*e,b);return Uf(d)} 313function Vf(a){function b(d){return c.byteLength<=d||32<=c[d]&&126>=c[d]}if(!a)return"";var c=ob(a);if(239==c[0]&&187==c[1]&&191==c[2])return Sf(c);if(254==c[0]&&255==c[1])return Tf(c.subarray(2),!1);if(255==c[0]&&254==c[1])return Tf(c.subarray(2),!0);if(0==c[0]&&0==c[2])return Tf(a,!1);if(0==c[1]&&0==c[3])return Tf(a,!0);if(b(0)&&b(1)&&b(2)&&b(3))return Sf(a);throw new Q(2,2,2003);} 314function Wf(a){if(window.TextEncoder&&!Sd()){var b=new TextEncoder;return rb(b.encode(a))}a=encodeURIComponent(a);a=unescape(a);b=new Uint8Array(a.length);for(var c=0;c<a.length;c++)b[c]=a[c].charCodeAt(0);return rb(b)}function Xf(a,b){for(var c=new ArrayBuffer(2*a.length),d=new DataView(c),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c}function Uf(a){return Yf.value()(a)}P("shaka.util.StringUtils",Rf);Rf.resetFromCharCode=function(){Yf.g=void 0};Rf.toUTF16=Xf;Rf.toUTF8=Wf; 315Rf.fromBytesAutoDetect=Vf;Rf.fromUTF16=Tf;Rf.fromUTF8=Sf;var Yf=new Of(function(){function a(c){try{var d=new Uint8Array(c);return 0<String.fromCharCode.apply(null,d).length}catch(e){return!1}}for(var b={ub:65536};0<b.ub;b={ub:b.ub},b.ub/=2)if(a(b.ub))return function(c){return function(d){for(var e="",f=0;f<d.length;f+=c.ub)e+=String.fromCharCode.apply(null,d.subarray(f,f+c.ub));return e}}(b);return null});function Zf(a,b){this.h=ub(a);this.i=b==$f;this.g=0}r=Zf.prototype;r.da=function(){return this.g<this.h.byteLength};r.na=function(){return this.g};r.getLength=function(){return this.h.byteLength};r.ea=function(){try{var a=this.h.getUint8(this.g);this.g+=1;return a}catch(b){throw ag();}};r.va=function(){try{var a=this.h.getUint16(this.g,this.i);this.g+=2;return a}catch(b){throw ag();}};r.M=function(){try{var a=this.h.getUint32(this.g,this.i);this.g+=4;return a}catch(b){throw ag();}}; 316r.Vf=function(){try{var a=this.h.getInt32(this.g,this.i);this.g+=4;return a}catch(b){throw ag();}};r.lc=function(){try{if(this.i){var a=this.h.getUint32(this.g,!0);var b=this.h.getUint32(this.g+4,!0)}else b=this.h.getUint32(this.g,!1),a=this.h.getUint32(this.g+4,!1)}catch(c){throw ag();}if(2097151<b)throw new Q(2,3,3001);this.g+=8;return b*Math.pow(2,32)+a};r.pb=function(a){if(this.g+a>this.h.byteLength)throw ag();var b=ob(this.h,this.g,a);this.g+=a;return b}; 317r.skip=function(a){if(this.g+a>this.h.byteLength)throw ag();this.g+=a};r.Ah=function(a){if(this.g<a)throw ag();this.g-=a};r.seek=function(a){if(0>a||a>this.h.byteLength)throw ag();this.g=a};r.Vc=function(){for(var a=this.g;this.da()&&0!=this.h.getUint8(this.g);)this.g+=1;a=ob(this.h,a,this.g-a);this.g+=1;return Sf(a)};function ag(){return new Q(2,3,3E3)}P("shaka.util.DataViewReader",Zf);Zf.prototype.readTerminatedString=Zf.prototype.Vc;Zf.prototype.seek=Zf.prototype.seek;Zf.prototype.rewind=Zf.prototype.Ah; 318Zf.prototype.skip=Zf.prototype.skip;Zf.prototype.readBytes=Zf.prototype.pb;Zf.prototype.readUint64=Zf.prototype.lc;Zf.prototype.readInt32=Zf.prototype.Vf;Zf.prototype.readUint32=Zf.prototype.M;Zf.prototype.readUint16=Zf.prototype.va;Zf.prototype.readUint8=Zf.prototype.ea;Zf.prototype.getLength=Zf.prototype.getLength;Zf.prototype.getPosition=Zf.prototype.na;Zf.prototype.hasMoreData=Zf.prototype.da;var $f=1;Zf.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:$f};function bg(){this.i=[];this.h=[];this.g=!1}r=bg.prototype;r.box=function(a,b){a=cg(a);this.i[a]=dg;this.h[a]=b;return this};r.O=function(a,b){a=cg(a);this.i[a]=eg;this.h[a]=b;return this};r.stop=function(){this.g=!0};r.parse=function(a,b,c){a=new Zf(a,0);for(this.g=!1;a.da()&&!this.g;)this.jc(0,a,b,c)}; 319r.jc=function(a,b,c,d){var e=b.na();if(d&&e+8>b.getLength())this.g=!0;else{var f=b.M(),g=b.M(),h=fg(g),k=!1;switch(f){case 0:f=b.getLength()-e;break;case 1:if(d&&b.na()+8>b.getLength()){this.g=!0;return}f=b.lc();k=!0}var l=this.h[g];if(l){var m=null,n=null;if(this.i[g]==eg){if(d&&b.na()+4>b.getLength()){this.g=!0;return}n=b.M();m=n>>>24;n&=16777215}g=e+f;c&&g>b.getLength()&&(g=b.getLength());d&&g>b.getLength()?this.g=!0:(d=g-b.na(),b=0<d?b.pb(d):new Uint8Array(0),b=new Zf(b,0),l({name:h,parser:this, 320partialOkay:c||!1,version:m,flags:n,reader:b,size:f,start:e+a,has64BitSize:k}))}else b.skip(Math.min(e+f-b.na(),b.getLength()-b.na()))}};function gg(a){for(var b=hg(a);a.reader.da()&&!a.parser.g;)a.parser.jc(a.start+b,a.reader,a.partialOkay)}function ig(a){for(var b=hg(a),c=a.reader.M(),d=0;d<c&&(a.parser.jc(a.start+b,a.reader,a.partialOkay),!a.parser.g);d++);}function jg(a){var b=hg(a);for(a.reader.skip(78);a.reader.da()&&!a.parser.g;)a.parser.jc(a.start+b,a.reader,a.partialOkay)} 321function kg(a){var b=hg(a);a.reader.skip(8);var c=a.reader.va();a.reader.skip(6);2==c?a.reader.skip(48):a.reader.skip(12);for(1==c&&a.reader.skip(16);a.reader.da()&&!a.parser.g;)a.parser.jc(a.start+b,a.reader,a.partialOkay)}function lg(a){return function(b){a(b.reader.pb(b.reader.getLength()-b.reader.na()))}}function cg(a){var b=0;a=t(a);for(var c=a.next();!c.done;c=a.next())b=b<<8|c.value.charCodeAt(0);return b}function fg(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)} 322function hg(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)}P("shaka.util.Mp4Parser",bg);bg.headerSize=hg;bg.typeToString=fg;bg.allData=lg;bg.audioSampleEntry=kg;bg.visualSampleEntry=jg;bg.sampleDescription=ig;bg.children=gg;bg.prototype.parseNext=bg.prototype.jc;bg.prototype.parse=bg.prototype.parse;bg.prototype.stop=bg.prototype.stop;bg.prototype.fullBox=bg.prototype.O;bg.prototype.box=bg.prototype.box;var dg=0,eg=1;function mg(){}function ng(a){a=Uf(ob(a));return btoa(a)}function og(a,b){b=void 0==b?!0:b;a=ng(a).replace(/\+/g,"-").replace(/\//g,"_");return b?a:a.replace(/[=]*$/,"")}function pg(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b}function qg(a){for(var b=a.length/2,c=new Uint8Array(b),d=0;d<b;d++)c[d]=window.parseInt(a.substr(2*d,2),16);return c} 323function rg(a){var b=ob(a);a="";b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c=c.toString(16),1==c.length&&(c="0"+c),a+=c;return a}function sg(){for(var a=Da.apply(0,arguments),b=0,c=0;c<a.length;++c)b+=a[c].byteLength;b=new Uint8Array(b);for(var d=c=0;d<a.length;++d){var e=a[d];e instanceof Uint8Array?b.set(e,c):b.set(ob(e),c);c+=e.byteLength}return b}P("shaka.util.Uint8ArrayUtils",mg);mg.concat=sg;mg.toHex=rg;mg.fromHex=qg;mg.fromBase64=pg;mg.toBase64=og;mg.toStandardBase64=ng;function tg(a){var b=this;this.g=[];this.h=[];this.data=[];(new bg).box("moov",gg).box("moof",gg).O("pssh",function(c){if(!(1<c.version)){var d=ob(c.reader.h,-12,c.size);b.data.push(d);b.g.push(rg(c.reader.pb(16)));if(0<c.version){d=c.reader.M();for(var e=0;e<d;e++){var f=rg(c.reader.pb(16));b.h.push(f)}}}}).parse(a)} 324function ug(a,b,c,d){var e=a.length,f=b.length+16+e;0<d&&(f+=4+16*c.size);var g=new Uint8Array(f),h=ub(g),k=0;h.setUint32(k,f);k+=4;h.setUint32(k,1886614376);k+=4;1>d?h.setUint32(k,0):h.setUint32(k,16777216);k+=4;g.set(b,k);k+=b.length;if(0<d)for(h.setUint32(k,c.size),k+=4,b=t(c),c=b.next();!c.done;c=b.next())c=qg(c.value),g.set(c,k),k+=c.length;h.setUint32(k,e);g.set(a,k+4);return g};function vg(a,b){a=wg(a,b);return 1!=a.length?null:a[0]}function xg(a,b,c){a=yg(a,b,c);return 1!=a.length?null:a[0]}function wg(a,b){var c=[];a=t(a.childNodes);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.tagName==b&&c.push(d);return c}function zg(a){return Array.from(a.childNodes).filter(function(b){return b instanceof Element})} 325function yg(a,b,c){var d=[];a=t(a.childNodes);for(var e=a.next();!e.done;e=a.next())e=e.value,e instanceof Element&&e.localName==c&&e.namespaceURI==b&&d.push(e);return d}function Ag(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null}function Bg(a,b,c){b=t(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,a.hasAttributeNS(d,c))return a.getAttributeNS(d,c);return null}function Cg(a){return Array.from(a.childNodes).every(Dg)?a.textContent.trim():null} 326function Dg(a){return a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE}function Eg(a,b,c,d){d=void 0===d?null:d;var e=null;a=a.getAttribute(b);null!=a&&(e=c(a));return null==e?d:e}function Fg(a){if(!a)return null;/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(a)&&(a+="Z");a=Date.parse(a);return isNaN(a)?null:a/1E3} 327function Gg(a){if(!a)return null;a=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(a);if(!a)return null;a=31536E3*Number(a[1]||null)+2592E3*Number(a[2]||null)+86400*Number(a[3]||null)+3600*Number(a[4]||null)+60*Number(a[5]||null)+Number(a[6]||null);return isFinite(a)?a:null} 328function Hg(a){var b=/([0-9]+)-([0-9]+)/.exec(a);if(!b)return null;a=Number(b[1]);if(!isFinite(a))return null;b=Number(b[2]);return isFinite(b)?{start:a,end:b}:null}function Ig(a){a=Number(a);return 0===a%1?a:null}function Jg(a){a=Number(a);return 0===a%1&&0<a?a:null}function Kg(a){a=Number(a);return 0===a%1&&0<=a?a:null}function Lg(a){a=Number(a);return isNaN(a)?null:a}function Mg(a){return a?"true"===a.toLowerCase():!1} 329function Ng(a){var b;var c=(b=a.match(/^(\d+)\/(\d+)$/))?Number(b[1])/Number(b[2]):Number(a);return isNaN(c)?null:c} 330function Og(a,b){var c=new DOMParser,d=Pg.value()(a);a=null;try{a=c.parseFromString(d,"text/xml")}catch(e){return null}c=a.documentElement;if(!c||c.getElementsByTagName("parsererror").length||c.tagName!=b)return null;if(!("createNodeIterator"in document))return c;for(b=document.createNodeIterator(a,NodeFilter.SHOW_ALL);a=b.nextNode();)if(a instanceof HTMLElement||a instanceof SVGElement)return null;return c}function Qg(a,b){try{var c=Vf(a);return Og(c,b)}catch(d){return null}} 331var Pg=new Of(function(){if("undefined"!==typeof trustedTypes){var a=trustedTypes.createPolicy("shaka-player#xml",{createHTML:function(b){return b}});return function(b){return a.createHTML(b)}}return function(b){return b}});function Rg(a,b){var c=this;b=void 0===b?1:b;this.C=a;this.H=new Set;this.m=this.s=null;this.ga=this.ba=!1;this.J=0;this.g=null;this.B=new ab;this.i=new Map;this.u=new Map;this.l=new kf;this.h=null;this.o=function(d){2==d.severity&&c.l.reject(d);a.onError(d)};this.W=new Map;this.ca=new Map;this.K=new yd(function(){return Sg(c)});this.N=!1;this.L=[];this.U=!1;this.fa=(new yd(function(){Tg(c)})).Pa(b);this.l.catch(function(){});this.j=new Kf(function(){return Ug(c)});this.Y=!1;this.F=this.G=null} 332r=Rg.prototype;r.destroy=function(){return this.j.destroy()};function Ug(a){return J(function(b){switch(b.g){case 1:return a.B.release(),a.B=null,a.l.reject(),a.fa.stop(),a.fa=null,a.K.stop(),a.K=null,C(b,Vg(a),2);case 2:if(!a.m){b.A(3);break}ra(b,4);return C(b,a.m.setMediaKeys(null),6);case 6:ta(b,5);break;case 4:ua(b);case 5:a.m=null;case 3:a.g=null,a.H.clear(),a.s=null,a.u=new Map,a.h=null,a.o=function(){},a.C=null,a.Y=!1,a.G=null,E(b)}})}r.configure=function(a){this.h=a}; 333function Wg(a,b,c){a.ga=!0;a.u=new Map;a.N=c;return Xg(a,b)}function Yg(a,b,c){a.u=new Map;c=t(c);for(var d=c.next();!d.done;d=c.next())a.u.set(d.value,{initData:null,initDataType:null});c=t(a.h.persistentSessionsMetadata);for(d=c.next();!d.done;d=c.next())d=d.value,a.u.set(d.sessionId,{initData:d.initData,initDataType:d.initDataType});a.N=0<a.u.size;return Xg(a,b)} 334function Zg(a,b,c,d,e,f){var g=new Map;e={audioCapabilities:e,videoCapabilities:f,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:b};e.drmInfos=[{keySystem:b,licenseServerUri:c,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioRobustness:"",videoRobustness:"",serverCertificate:d,serverCertificateUri:"",initData:null,keyIds:null}];g.set(b,e);return $g(a,g,[])} 335function Xg(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y;return J(function(B){if(1==B.g){if(c=ah(a))for(d=t(b),e=d.next();!e.done;e=d.next())f=e.value,f.video&&(f.video.drmInfos=[c]),f.audio&&(f.audio.drmInfos=[c]);g=b.some(function(A){return A.video&&A.video.drmInfos.length||A.audio&&A.audio.drmInfos.length?!0:!1});g||(h=Pf(a.h.servers),bh(b,h));k=new Set;l=t(b);for(e=l.next();!e.done;e=l.next())for(m=e.value,n=ch(m),q=t(n),p=q.next();!p.done;p=q.next())u=p.value,k.add(u);v=t(k);for(p=v.next();!p.done;p= 336v.next())x=p.value,dh(x,Pf(a.h.servers),Pf(a.h.advanced||{}),a.h.keySystemsMapping);return C(B,fe(b,a.N,a.Y,a.h.preferredKeySystems),2)}z=g||Object.keys(a.h.servers).length;if(!z)return a.ba=!0,B.return(Promise.resolve());y=$g(a,void 0,b);return B.return(g?y:y.catch(function(){}))})} 337function eh(a){var b;return J(function(c){switch(c.g){case 1:if(a.m.mediaKeys)return c.return();if(!a.G){c.A(2);break}return C(c,a.G,3);case 3:return Lf(a.j),c.return();case 2:return ra(c,4),a.G=a.m.setMediaKeys(a.s),C(c,a.G,6);case 6:ta(c,5);break;case 4:b=ua(c),a.o(new Q(2,6,6003,b.message));case 5:Lf(a.j),E(c)}})}function fh(a,b){return J(function(c){if(1==c.g)return C(c,eh(a),2);gh(a,b.initDataType,ob(b.initData));E(c)})} 338r.Cc=function(a){var b=this;return J(function(c){if(1==c.g){if(!b.s)return b.B.ka(a,"encrypted",function(){b.o(new Q(2,6,6010))}),c.return();b.m=a;b.B.ka(b.m,"play",function(){for(var d=t(b.L),e=d.next();!e.done;e=d.next())hh(b,e.value);b.U=!0;b.L=[]});"webkitCurrentPlaybackTargetIsWireless"in b.m&&b.B.D(b.m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return Vg(b)});b.F=b.g?b.g.initData.find(function(d){return 0<d.initData.length})||null:null;return b.F||"com.apple.fps"!==b.g.keySystem|| 339b.u.size?C(c,eh(b),2):c.A(2)}ih(b).catch(function(){});b.F||b.u.size||b.h.parseInbandPsshEnabled||b.B.D(b.m,"encrypted",function(d){return fh(b,d)});E(c)})}; 340function jh(a){var b,c,d,e,f;return J(function(g){switch(g.g){case 1:if(!a.s||!a.g)return g.return();if(!a.g.serverCertificateUri||a.g.serverCertificate&&a.g.serverCertificate.length){g.A(2);break}b=Af([a.g.serverCertificateUri],a.h.retryParameters);ra(g,3);c=a.C.Qb.request(5,b);return C(g,c.promise,5);case 5:d=g.h;a.g.serverCertificate=ob(d.data);ta(g,4);break;case 3:throw e=ua(g),new Q(2,6,6017,e);case 4:if(a.j.g)return g.return();case 2:if(!a.g.serverCertificate||!a.g.serverCertificate.length)return g.return(); 341ra(g,6);return C(g,a.s.setServerCertificate(a.g.serverCertificate),8);case 8:ta(g,0);break;case 6:throw f=ua(g),new Q(2,6,6004,f.message);}})}function kh(a,b){var c,d,e;return J(function(f){if(1==f.g)return C(f,lh(a,b,{initData:null,initDataType:null}),2);if(3!=f.g){c=f.h;if(!c)return f.return();d=[];if(e=a.i.get(c))e.Qa=new kf,d.push(e.Qa);d.push(c.remove());return C(f,Promise.all(d),3)}a.i.delete(c);E(f)})} 342function ih(a){var b,c,d,e,f;return J(function(g){if(1==g.g){if(!a.u.size)return g.A(2);a.u.forEach(function(h,k){lh(a,k,h)});return C(g,a.l,3)}if(2!=g.g){b=a.g&&a.g.keyIds||new Set([]);if(0<b.size&&mh(a))return g.return(a.l);a.l=new kf;a.l.catch(function(){})}c=(a.g?a.g.initData:[])||[];d=t(c);for(e=d.next();!e.done;e=d.next())f=e.value,gh(a,f.initDataType,f.initData);nh(a)&&a.l.resolve();return g.return(a.l)})} 343function gh(a,b,c){if(c.length){var d=a.i.values();d=t(d);for(var e=d.next();!e.done;e=d.next())if(mb(c,e.value.initData)&&a.h.ignoreDuplicateInitData)return;0<a.i.size&&nh(a)&&(a.l.resolve(),a.l=new kf,a.l.catch(function(){}));ph(a,b,c,a.g.sessionType)}}function qh(a){return a?!!a.match(/^com\.(microsoft|chromecast)\.playready/):!1}function rh(a){a=a.i.keys();a=Mf(a,function(b){return b.sessionId});return Array.from(a)} 344r.ye=function(){var a=this,b=this.i.keys();b=Mf(b,function(c){var d=a.i.get(c);return{sessionId:c.sessionId,sessionType:d.type,initData:d.initData,initDataType:d.initDataType}});return Array.from(b)};r.Kc=function(){var a=Infinity,b=this.i.keys();b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,isNaN(c.expiration)||(a=Math.min(a,c.expiration));return a};r.ud=function(){return Qf(this.ca)}; 345function $g(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,x,z;return J(function(y){switch(y.g){case 1:d=new Map;if(c.length){e=sh(a,c,d);y.A(2);break}return C(y,th(a,b),3);case 3:e=y.h;case 2:f=e;if(!f)throw new Q(2,6,6001);Lf(a.j);ra(y,4);a.H.clear();g=f.getConfiguration();h=g.audioCapabilities||[];k=g.videoCapabilities||[];l=t(h);for(m=l.next();!m.done;m=l.next())n=m.value,a.H.add(n.contentType.toLowerCase());q=t(k);for(m=q.next();!m.done;m=q.next())p=m.value,a.H.add(p.contentType.toLowerCase());if(c.length){var B= 346f.keySystem;var A=d.get(f.keySystem);var D=[],F=[],K=[],H=[],I=new Set;uh(A,D,K,F,H,I);var G=a.N?"persistent-license":"temporary";B={keySystem:B,licenseServerUri:D[0],distinctiveIdentifierRequired:A[0].distinctiveIdentifierRequired,persistentStateRequired:A[0].persistentStateRequired,sessionType:A[0].sessionType||G,audioRobustness:A[0].audioRobustness||"",videoRobustness:A[0].videoRobustness||"",serverCertificate:K[0],serverCertificateUri:F[0],initData:H,keyIds:I};A=t(A);for(D=A.next();!D.done;D= 347A.next())D=D.value,D.distinctiveIdentifierRequired&&(B.distinctiveIdentifierRequired=D.distinctiveIdentifierRequired),D.persistentStateRequired&&(B.persistentStateRequired=D.persistentStateRequired);A=B}else A=f.keySystem,B=b.get(f.keySystem),D=[],F=[],K=[],H=[],I=new Set,uh(B.drmInfos,D,K,F,H,I),A={keySystem:A,licenseServerUri:D[0],distinctiveIdentifierRequired:"required"==B.distinctiveIdentifier,persistentStateRequired:"required"==B.persistentState,sessionType:B.sessionTypes[0]||"temporary",audioRobustness:(B.audioCapabilities? 348B.audioCapabilities[0].robustness:"")||"",videoRobustness:(B.videoCapabilities?B.videoCapabilities[0].robustness:"")||"",serverCertificate:K[0],serverCertificateUri:F[0],initData:H,keyIds:I};a.g=A;if(!a.g.licenseServerUri)throw new Q(2,6,6012,a.g.keySystem);return C(y,f.createMediaKeys(),6);case 6:u=y.h;Lf(a.j);a.s=u;if(!(""!=a.h.minHdcpVersion&&"getStatusForPolicy"in a.s)){y.A(7);break}ra(y,8);return C(y,a.s.getStatusForPolicy({minHdcpVersion:a.h.minHdcpVersion}),10);case 10:v=y.h;if("usable"!=v)throw new Q(2, 3496,6018);Lf(a.j);ta(y,7,4);break;case 8:x=ua(y,4);if(x instanceof Q)throw x;throw new Q(2,6,6019,x.message);case 7:return a.ba=!0,C(y,jh(a),11);case 11:Lf(a.j);ta(y,0);break;case 4:z=ua(y);Lf(a.j,z);a.g=null;a.H.clear();if(z instanceof Q)throw z;throw new Q(2,6,6002,z.message);}})} 350function sh(a,b,c){for(var d=t(b),e=d.next();!e.done;e=d.next()){var f=t(ch(e.value));for(e=f.next();!e.done;e=f.next())e=e.value,c.has(e.keySystem)||c.set(e.keySystem,[]),c.get(e.keySystem).push(e)}if(1==c.size&&c.has(""))throw new Q(2,6,6E3);d={};a=t(a.h.preferredKeySystems);for(e=a.next();!e.done;d={Wd:d.Wd},e=a.next())for(d.Wd=e.value,f=t(b),e=f.next();!e.done;e=f.next())if(e=e.value.decodingInfos.find(function(l){return function(m){return m.supported&&null!=m.keySystemAccess&&m.keySystemAccess.keySystem== 351l.Wd}}(d)))return e.keySystemAccess;a=t([!0,!1]);for(e=a.next();!e.done;e=a.next())for(d=e.value,f=t(b),e=f.next();!e.done;e=f.next()){var g=t(e.value.decodingInfos);for(e=g.next();!e.done;e=g.next()){var h=e.value;if(h.supported&&h.keySystemAccess){e=c.get(h.keySystemAccess.keySystem);var k=t(e);for(e=k.next();!e.done;e=k.next())if(!!e.value.licenseServerUri==d)return h.keySystemAccess}}}return null} 352function th(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,x;return J(function(z){switch(z.g){case 1:if(1==b.size&&b.has(""))throw new Q(2,6,6E3);d=t(b.values());for(e=d.next();!e.done;e=d.next())f=e.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;g=t(a.h.preferredKeySystems);h=g.next();case 2:if(h.done){z.A(4);break}k=h.value;if(!b.has(k)){z.A(3);break}l=b.get(k);ra(z,6);return C(z,navigator.requestMediaKeySystemAccess(k,[l]),8);case 8:return c= 353z.h,z.return(c);case 6:ua(z);case 7:Lf(a.j);case 3:h=g.next();z.A(2);break;case 4:m=t([!0,!1]),n=m.next();case 9:if(n.done){z.A(11);break}q=n.value;p=t(b.keys());h=p.next();case 12:if(h.done){n=m.next();z.A(9);break}u=h.value;v=b.get(u);x=v.drmInfos.some(function(y){return!!y.licenseServerUri});if(x!=q){z.A(13);break}ra(z,15);return C(z,navigator.requestMediaKeySystemAccess(u,[v]),17);case 17:return c=z.h,z.return(c);case 15:ua(z);case 16:Lf(a.j);case 13:h=p.next();z.A(12);break;case 11:return z.return(c)}})} 354function ah(a){a=Pf(a.h.clearKeys);if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=f;22!=g.length&&(g=og(qg(f),!1));f=e;22!=f.length&&(f=og(qg(e),!1));e={kty:"oct",kid:g,k:f};b.push(e);c.push(e.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:ob(Wf(d)),initDataType:"keyids"}];return{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"", 355videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:d,keyIds:new Set(c)}}function vh(a){nh(a)&&a.l.resolve()}function wh(a,b){(new yd(function(){b.loaded=!0;vh(a)})).V(xh)} 356function lh(a,b,c){var d,e,f,g,h,k,l;return J(function(m){switch(m.g){case 1:try{d=a.s.createSession("persistent-license")}catch(n){return e=new Q(2,6,6005,n.message),a.o(e),m.return(Promise.reject(e))}a.B.D(d,"message",function(n){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.U?a.L.push(n):hh(a,n)});a.B.D(d,"keystatuseschange",function(n){return yh(a,n)});f={initData:c.initData,initDataType:c.initDataType,loaded:!1,Re:Infinity,Qa:null,type:"persistent-license"};a.i.set(d,f);ra(m,2);return C(m, 357d.load(b),4);case 4:return g=m.h,Lf(a.j),g||(a.i.delete(d),h=a.h.persistentSessionOnlinePlayback?1:2,a.o(new Q(h,6,6013)),f.loaded=!0),wh(a,f),vh(a),m.return(d);case 2:k=ua(m),Lf(a.j,k),a.i.delete(d),l=a.h.persistentSessionOnlinePlayback?1:2,a.o(new Q(l,6,6005,k.message)),f.loaded=!0,vh(a);case 3:return m.return(Promise.resolve())}})} 358function ph(a,b,c,d){try{var e=a.s.createSession(d)}catch(f){a.o(new Q(2,6,6005,f.message));return}a.B.D(e,"message",function(f){a.m&&a.h.delayLicenseRequestUntilPlayed&&a.m.paused&&!a.U?a.L.push(f):hh(a,f)});a.B.D(e,"keystatuseschange",function(f){return yh(a,f)});a.i.set(e,{initData:c,initDataType:b,loaded:!1,Re:Infinity,Qa:null,type:d});try{c=a.h.initDataTransform(c,b,a.g)}catch(f){b=f;f instanceof Q||(b=new Q(2,6,6016,f));a.o(b);return}a.h.logLicenseExchange&&og(c);e.generateRequest(b,c).catch(function(f){if(!a.j.g){a.i.delete(e); 359var g=f.errorCode;if(g&&g.systemCode){var h=g.systemCode;0>h&&(h+=Math.pow(2,32));h="0x"+h.toString(16)}a.o(new Q(2,6,6006,f.message,f,h))}})} 360function hh(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u;J(function(v){switch(v.g){case 1:c=b.target;a.h.logLicenseExchange&&og(b.message);d=a.i.get(c);e=a.g.licenseServerUri;f=a.h.advanced[a.g.keySystem];"individualization-request"==b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);g=Af([e],a.h.retryParameters);g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType;g.sessionId=c.sessionId;g.drmInfo=a.g;d&&(g.initData=d.initData,g.initDataType=d.initDataType);if(qh(a.g.keySystem)){var x= 361Tf(g.body,!0,!0);if(x.includes("PlayReadyKeyMessage")){x=Og(x,"PlayReadyKeyMessage");for(var z=t(x.getElementsByTagName("HttpHeader")),y=z.next();!y.done;y=z.next())y=y.value,g.headers[y.getElementsByTagName("name")[0].textContent]=y.getElementsByTagName("value")[0].textContent;g.body=pg(x.getElementsByTagName("Challenge")[0].textContent)}else g.headers["Content-Type"]="text/xml; charset=utf-8"}h=Date.now();ra(v,2);l=a.C.Qb.request(2,g);return C(v,l.promise,4);case 4:k=v.h;ta(v,3);break;case 2:m= 362ua(v);if(a.j.g)return v.return();n=new Q(2,6,6007,m);1==a.i.size?(a.o(n),d&&d.Qa&&d.Qa.reject(n)):(d&&d.Qa&&d.Qa.reject(n),a.i.delete(c),nh(a)&&(a.l.resolve(),a.K.V(.1)));return v.return();case 3:if(a.j.g)return v.return();a.J+=(Date.now()-h)/1E3;a.h.logLicenseExchange&&og(k.data);ra(v,5);return C(v,c.update(k.data),7);case 7:ta(v,6);break;case 5:return q=ua(v),p=new Q(2,6,6008,q.message),a.o(p),d&&d.Qa&&d.Qa.reject(p),v.return();case 6:if(a.j.g)return v.return();u=new sf("drmsessionupdate");a.C.onEvent(u); 363d&&(d.Qa&&d.Qa.resolve(),wh(a,d));E(v)}})} 364function yh(a,b){b=b.target;var c=a.i.get(b),d=!1;
364b.keyStatuses.forEach(function(f,g){if("string"==typeof g){var h=g;g=f;f=h}if(qh(a.g.keySystem)&&16==g.byteLength&&(Gd()||Sd())){h=ub(g);var k=h.getUint32(0,!0),l=h.getUint16(4,!0),m=h.getUint16(6,!0);h.setUint32(0,k,!1);h.setUint16(4,l,!1);h.setUint16(6,m,!1)}"status-pending"!=f&&(c.loaded=!0);"expired"==f&&(d=!0);g=rg(g).slice(0,32);a.W.set(g,f)});var e=b.expiration-Date.now();(0>e||d&&1E3>e)&&c&&!c.Qa&&(a.i.delete(b),b.close().catch(function(){})); 365nh(a)&&(a.l.resolve(),a.K.V(zh))}function Sg(a){var b=a.W,c=a.ca;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.o(new Q(2,6,6014));a.C.Nd(Qf(c))} 366function Ah(){var a,b,c,d,e,f,g,h;return J(function(k){return 1==k.g?(a="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),b=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],c={initDataTypes:["cenc"],videoCapabilities:b},d={videoCapabilities:b,persistentState:"required",sessionTypes:["persistent-license"]},e=[d,c],f=new Map,g=function(l){var m,n, 367q;return J(function(p){switch(p.g){case 1:ra(p,2);if("org.w3.clearkey"===l&&Td())throw Error("Unsupported keySystem");return C(p,navigator.requestMediaKeySystemAccess(l,e),4);case 4:return m=p.h,q=(n=m.getConfiguration().sessionTypes)?n.includes("persistent-license"):!1,Ld()&&(q=!1),f.set(l,{persistentState:q}),C(p,m.createMediaKeys(),5);case 5:ta(p,0);break;case 2:ua(p),f.set(l,null),E(p)}})},h=a.map(function(l){return g(l)}),C(k,Promise.all(h),2)):k.return(Qf(f))})} 368function Bh(a){var b;return J(function(c){if(1==c.g)return b=new Promise(function(d,e){(new yd(e)).V(Ch)}),ra(c,2),C(c,Promise.race([Promise.all([a.close(),a.closed]),b]),4);if(2!=c.g)return ta(c,0);ua(c);E(c)})} 369function Vg(a){var b;return J(function(c){b=Array.from(a.i.entries());a.i.clear();return C(c,Promise.all(b.map(function(d){d=t(d);var e=d.next().value,f=d.next().value;return J(function(g){if(1==g.g)return ra(g,2),a.ga||a.u.has(e.sessionId)||"persistent-license"!==f.type||a.h.persistentSessionOnlinePlayback?C(g,Bh(e),5):C(g,e.remove(),5);if(2!=g.g)return ta(g,0);ua(g);E(g)})})),0)})}function Dh(a,b){return a.length&&b.length&&a!==b?0<Eh(a,b).length:!0} 370function Eh(a,b){if(!a.length)return b;if(!b.length)return a;var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;for(var e=t(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.keySystem==f.keySystem){e=new Map;for(var g=t((d.initData||[]).concat(f.initData||[])),h=g.next();!h.done;h=g.next())h=h.value,e.set(h.keyId,h);e=Array.from(e.values());g=d.keyIds&&f.keyIds?new Set([].concat(w(d.keyIds),w(f.keyIds))):d.keyIds||f.keyIds;c.push({keySystem:d.keySystem,licenseServerUri:d.licenseServerUri|| 371f.licenseServerUri,distinctiveIdentifierRequired:d.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:d.persistentStateRequired||f.persistentStateRequired,videoRobustness:d.videoRobustness||f.videoRobustness,audioRobustness:d.audioRobustness||f.audioRobustness,serverCertificate:d.serverCertificate||f.serverCertificate,serverCertificateUri:d.serverCertificateUri||f.serverCertificateUri,initData:e,keyIds:g});break}}return c} 372function ch(a){return(a.video?a.video.drmInfos:[]).concat(a.audio?a.audio.drmInfos:[])}function Tg(a){a.i.forEach(function(b,c){var d=b.Re,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Re=e)})}function nh(a){a=a.i.values();return Nf(a,function(b){return b.loaded})}function mh(a){for(var b=t(a.g&&a.g.keyIds||new Set([])),c=b.next();!c.done;c=b.next())if("usable"!==a.W.get(c.value))return!1;return!0} 373function bh(a,b){var c=[];b.forEach(function(d,e){c.push({keySystem:e,licenseServerUri:d,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})});a=t(a);for(b=a.next();!b.done;b=a.next())b=b.value,b.video&&(b.video.drmInfos=c),b.audio&&(b.audio.drmInfos=c)} 374function uh(a,b,c,d,e,f){var g={};a=t(a);for(var h=a.next();!h.done;g={Ca:g.Ca},h=a.next()){g.Ca=h.value;b.includes(g.Ca.licenseServerUri)||b.push(g.Ca.licenseServerUri);d.includes(g.Ca.serverCertificateUri)||d.push(g.Ca.serverCertificateUri);g.Ca.serverCertificate&&(c.some(function(m){return function(n){return mb(n,m.Ca.serverCertificate)}}(g))||c.push(g.Ca.serverCertificate));if(g.Ca.initData){h={};for(var k=t(g.Ca.initData),l=k.next();!l.done;h={dd:h.dd},l=k.next())h.dd=l.value,e.some(function(m){return function(n){var q= 375m.dd;return n.keyId&&n.keyId==q.keyId?!0:n.initDataType==q.initDataType&&mb(n.initData,q.initData)}}(h))||e.push(h.dd)}if(g.Ca.keyIds)for(h=t(g.Ca.keyIds),k=h.next();!k.done;k=h.next())f.add(k.value)}} 376function dh(a,b,c,d){var e=a.keySystem;
376if(e&&("org.w3.clearkey"!=e||!a.licenseServerUri)){b.size&&(b=b.get(e)||"",a.licenseServerUri=b);a.keyIds||(a.keyIds=new Set);if(c=c.get(e))a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness),a.audioRobustness||(a.audioRobustness=c.audioRobustness),a.serverCertificate||(a.serverCertificate= 377c.serverCertificate),c.sessionType&&(a.sessionType=c.sessionType),a.serverCertificateUri||(a.serverCertificateUri=c.serverCertificateUri);d[e]&&(a.keySystem=d[e]);window.cast&&window.cast.__platform__&&"com.microsoft.playready"==e&&(a.keySystem="com.chromecast.playready")}}var Ch=1,xh=5,zh=.5,Fh=new Of(function(){return rb(new Uint8Array([0]))});function Gh(){}function Hh(a,b){if(b){var c=Ih[b.toLowerCase()];if(c)return c}throw new Q(2,4,4E3,a,b);}P("shaka.media.ManifestParser",Gh);Gh.unregisterParserByMime=function(a){delete Ih[a]};Gh.registerParserByMime=function(a,b){Ih[a]=b};Gh.registerParserByExtension=function(){Le("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")};Gh.AccessibilityPurpose={Xh:"visually impaired",Rh:"hard of hearing"};var Ih={};function Jh(a){function b(){d=!0}function c(l){f.push(l);gg(l)}a=ob(a);var d=!1,e,f=[],g=[];(new bg).box("moov",c).box("trak",c).box("mdia",c).box("minf",c).box("stbl",c).O("stsd",function(l){e=l;f.push(l);ig(l)}).O("encv",b).O("enca",b).O("dvav",function(l){g.push({box:l,La:1701733238})}).O("dva1",function(l){g.push({box:l,La:1701733238})}).O("dvh1",function(l){g.push({box:l,La:1701733238})}).O("dvhe",function(l){g.push({box:l,La:1701733238})}).O("hev1",function(l){g.push({box:l,La:1701733238})}).O("hvc1", 378function(l){g.push({box:l,La:1701733238})}).O("avc1",function(l){g.push({box:l,La:1701733238})}).O("avc3",function(l){g.push({box:l,La:1701733238})}).O("ac-3",function(l){g.push({box:l,La:1701733217})}).O("ec-3",function(l){g.push({box:l,La:1701733217})}).O("ac-4",function(l){g.push({box:l,La:1701733217})}).O("mp4a",function(l){g.push({box:l,La:1701733217})}).parse(a);if(d)return a;if(0==g.length||!e)throw Xa(rg(a)),new Q(2,3,3019);g.reverse();for(var h=t(g),k=h.next();!k.done;k=h.next())k=k.value, 379a=Kh(a,e,k.box,f,k.La);return a} 380function Kh(a,b,c,d,e){var f=Lh.value(),g=a.subarray(c.start,c.start+c.size),h=ub(g),k=new Uint8Array(c.size+f.byteLength);k.set(g,0);g=ub(k);g.setUint32(4,e);k.set(f,c.size);e=h.getUint32(4);g.setUint32(c.size+16,e);Mh(k,0,k.byteLength);e=new Uint8Array(a.byteLength+k.byteLength);c=Id()?c.start:c.start+c.size;f=a.subarray(c);e.set(a.subarray(0,c));e.set(k,c);e.set(f,c+k.byteLength);a=t(d);for(d=a.next();!d.done;d=a.next())d=d.value,Mh(e,d.start,d.size+k.byteLength);k=ub(e,b.start);b=hg(b);a=k.getUint32(b); 381k.setUint32(b,a+1);return e}function Mh(a,b,c){a=ub(a,b);b=a.getUint32(0);0!=b&&(1==b?(a.setUint32(8,c>>32),a.setUint32(12,c&4294967295)):a.setUint32(0,c))}var Lh=new Of(function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])});function Nh(a,b,c,d,e,f,g){this.Z=a;this.Oa=b;this.sa=c;this.Ne=void 0===d?null:d;this.timescale=void 0===e?null:e;this.g=void 0===f?null:f;this.aes128Key=void 0===g?null:g;this.mimeType=this.codecs=null}Nh.prototype.dc=function(){return this.Oa};Nh.prototype.bc=function(){return this.sa};function Oh(a,b){return a===b?!0:a&&b?a.dc()==b.dc()&&a.bc()==b.bc()&&Db(a.Z().sort(),b.Z().sort())&&mb(a.g,b.g):a==b}P("shaka.media.InitSegmentReference",Nh);Nh.prototype.getEndByte=Nh.prototype.bc; 382Nh.prototype.getStartByte=Nh.prototype.dc; 383function Ph(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v){l=void 0===l?[]:l;p=void 0===p?Qh:p;this.startTime=a;this.j=this.endTime=b;this.F=c;this.Oa=d;this.sa=e;this.h=f;this.timestampOffset=g;this.appendWindowStart=h;this.appendWindowEnd=k;this.i=l;this.tilesLayout=void 0===m?"":m;this.C=void 0===n?null:n;this.g=void 0===q?null:q;this.status=p;this.o=!1;this.m=!0;this.s=!1;this.aes128Key=void 0===u?null:u;this.B=null;this.l=0;this.u=void 0===v?!1:v;this.Gd=this.Tc=!1;a=t(this.i);for(b=a.next();!b.done;b=a.next())b.value.Pf(); 384this.u&&this.i.length&&this.i[this.i.length-1].Of();this.mimeType=this.codecs=null}r=Ph.prototype;r.Z=function(){return this.F()};r.getStartTime=function(){return this.startTime};r.Gg=function(){return this.endTime};r.dc=function(){return this.Oa};r.bc=function(){return this.sa};r.Xg=function(){return this.tilesLayout};r.Wg=function(){return this.C};r.Mc=function(){return this.status};r.lh=function(){this.status=Rh};r.Me=function(){this.o=!0};r.hh=function(){return this.o}; 385r.Hd=function(){this.m=!1};r.eh=function(){return this.m};r.Pf=function(){this.Tc=!0};r.gh=function(){return this.Tc};r.Of=function(){this.Gd=!0};r.fh=function(){return this.Gd};r.Nf=function(){this.s=!0};r.bh=function(){return this.s};r.eg=function(a){this.B=a};r.Vg=function(){return this.B};r.offset=function(a){this.startTime+=a;this.endTime+=a;this.j+=a;for(var b=t(this.i),c=b.next();!c.done;c=b.next())c=c.value,c.startTime+=a,c.endTime+=a,c.j+=a}; 386r.ef=function(a){null==this.g?Sa("Sync attempted without sync time!"):(a=this.g-a-this.startTime,.001<=Math.abs(a)&&this.offset(a))};function Sh(a,b){a.h=b;a=t(a.i);for(var c=a.next();!c.done;c=a.next())Sh(c.value,b)}P("shaka.media.SegmentReference",Ph);Ph.prototype.syncAgainst=Ph.prototype.ef;Ph.prototype.offset=Ph.prototype.offset;Ph.prototype.getThumbnailSprite=Ph.prototype.Vg;Ph.prototype.setThumbnailSprite=Ph.prototype.eg;Ph.prototype.hasByterangeOptimization=Ph.prototype.bh; 387Ph.prototype.markAsByterangeOptimization=Ph.prototype.Nf;
vendor: 5,173 bytes, lines 387-403
387Ph.prototype.isLastPartial=Ph.prototype.fh;Ph.prototype.markAsLastPartial=Ph.prototype.Of;Ph.prototype.isPartial=Ph.prototype.gh;Ph.prototype.markAsPartial=Ph.prototype.Pf;Ph.prototype.isIndependent=Ph.prototype.eh;Ph.prototype.markAsNonIndependent=Ph.prototype.Hd;Ph.prototype.isPreload=Ph.prototype.hh;Ph.prototype.markAsPreload=Ph.prototype.Me;Ph.prototype.markAsUnavailable=Ph.prototype.lh;Ph.prototype.getStatus=Ph.prototype.Mc; 388Ph.prototype.getTileDuration=Ph.prototype.Wg;Ph.prototype.getTilesLayout=Ph.prototype.Xg;Ph.prototype.getEndByte=Ph.prototype.bc;Ph.prototype.getStartByte=Ph.prototype.dc;Ph.prototype.getEndTime=Ph.prototype.Gg;Ph.prototype.getStartTime=Ph.prototype.getStartTime;Ph.prototype.getUris=Ph.prototype.Z;var Qh=0,Rh=1;Ph.Status={Ph:Qh,Wh:Rh,Uh:2};function Th(a){return!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:a.length?a.end(a.length-1):null}function Uh(a,b){return!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0)||b>a.end(a.length-1)?!1:b>=a.start(0)}function Vh(a,b){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return 0;var c=0;a=t(Wh(a));for(var d=a.next();!d.done;d=a.next()){var e=d.value;d=e.start;e=e.end;e>b&&(c+=e-Math.max(d,b))}return c} 389function Xh(a,b,c){if(!a||!a.length||1==a.length&&1E-6>a.end(0)-a.start(0))return null;a=Wh(a).findIndex(function(d,e,f){return d.start>b&&(0==e||f[e-1].end-b<=c)});return 0<=a?a:null}function Wh(a){if(!a)return[];for(var b=[],c=0;c<a.length;c++)b.push({start:a.start(c),end:a.end(c)});return b};/* 390 @license 391 Shaka Player 392 Copyright 2022 Google LLC 393 SPDX-License-Identifier: Apache-2.0 394*/ 395function Yh(){}function Zh(a,b){return b+10<=a.length&&73===a[b]&&68===a[b+1]&&51===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function $h(a,b){return b+10<=a.length&&51===a[b]&&68===a[b+1]&&73===a[b+2]&&255>a[b+3]&&255>a[b+4]&&128>a[b+6]&&128>a[b+7]&&128>a[b+8]&&128>a[b+9]?!0:!1}function ai(a,b){var c=(a[b]&127)<<21;c|=(a[b+1]&127)<<14;c|=(a[b+2]&127)<<7;return c|=a[b+3]&127} 396function bi(a){var b={key:a.type,description:"",data:"",mimeType:null,pictureType:null};if("APIC"===a.type){if(2>a.size||3!==a.data[0])return null;var c=a.data.subarray(1).indexOf(0);if(-1===c)return null;var d=Sf(ob(a.data,1,c)),e=a.data[2+c],f=a.data.subarray(3+c).indexOf(0);if(-1===f)return null;var g=Sf(ob(a.data,3+c,f)),h;"--\x3e"===d?h=Sf(ob(a.data,4+c+f)):h=rb(a.data.subarray(4+c+f));b.mimeType=d;b.pictureType=e;b.description=g;b.data=h;return b}if("TXXX"===a.type){if(2>a.size||3!==a.data[0])return null; 397d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Sf(ob(a.data,1,d));a=Sf(ob(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("WXXX"===a.type){if(2>a.size||3!==a.data[0])return null;d=a.data.subarray(1).indexOf(0);if(-1===d)return null;c=Sf(ob(a.data,1,d));a=Sf(ob(a.data,2+d)).replace(/\0*$/,"");b.description=c;b.data=a;return b}if("PRIV"===a.type){if(2>a.size)return null;c=a.data.indexOf(0);if(-1===c)return null;c=Sf(ob(a.data,0,c));b.description=c;"com.apple.streaming.transportStreamTimestamp"== 398c?(c=a.data.subarray(c.length+1),a=c[3]&1,c=(c[4]<<23)+(c[5]<<15)+(c[6]<<7)+c[7],c/=45,a&&(c+=4.772185884E7),b.data=c):(a=rb(a.data.subarray(c.length+1)),b.data=a);return b}if("T"===a.type[0]){if(2>a.size||3!==a.data[0])return null;a=Sf(a.data.subarray(1)).replace(/\0*$/,"");b.data=a;return b}return"W"===a.type[0]?(a=Sf(a.data).replace(/\0*$/,""),b.data=a,b):a.data?(b.data=rb(a.data),b):null} 399function ci(a){for(var b=0,c=[];Zh(a,b);){var d=ai(a,b+6);a[b+5]>>6&1&&(b+=10);b+=10;for(d=b+d;b+10<d;){var e=a.subarray(b),f=ai(e,4);e={type:String.fromCharCode(e[0],e[1],e[2],e[3]),size:f,data:e.subarray(10,10+f)};(f=bi(e))&&c.push(f);b+=e.size+10}$h(a,b)&&(b+=10)}return c}function di(a,b){for(var c=b=void 0===b?0:b,d=0;Zh(a,b);)a[b+5]>>6&1&&(d+=10),d+=10,d+=ai(a,b+6),$h(a,b+10)&&(d+=10),b+=d;return 0<d?a.subarray(c,c+d):new Uint8Array([])}P("shaka.util.Id3Utils",Yh);Yh.getID3Data=di; 400Yh.getID3Frames=ci;function ei(a,b){var c=null,d=null,e=null,f=a.M();b&1&&(e=a.lc());b&2&&a.skip(4);b&8&&(c=a.M());b&16&&(d=a.M());return{trackId:f,yf:c,xg:d,Yh:e}}function fi(a,b){return 1==b?(b=a.M(),a=a.M(),{baseMediaDecodeTime:b*Math.pow(2,32)+a}):{baseMediaDecodeTime:a.M()}}function gi(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));b=a.M();a.skip(4);a=a.va();return{timescale:b,language:String.fromCharCode((a>>10)+96)+String.fromCharCode(((a&960)>>5)+96)+String.fromCharCode((a&31)+96)}} 401function hi(a,b,c){var d=a.M(),e=[],f=null;c&1&&(f=a.M());c&4&&a.skip(4);for(var g=0;g<d;g++){var h={Ye:null,sampleSize:null,Pd:null};c&256&&(h.Ye=a.M());c&512&&(h.sampleSize=a.M());c&1024&&a.skip(4);c&2048&&(h.Pd=0==b?a.M():a.Vf());e.push(h)}return{bi:d,Xf:e,wg:f}} 402function ii(a,b){1==b?(a.skip(8),a.skip(8)):(a.skip(4),a.skip(4));var c=a.M();1==b?a.skip(8):a.skip(4);a.skip(4);a.skip(8);a.skip(2);a.skip(2);a.skip(2);a.skip(2);a.skip(36);b=a.va()+a.va()/16;a=a.va()+a.va()/16;return{trackId:c,width:b,height:a}} 403function ji(a){for(var b="mp4a",c,d;a.da();){c=a.ea();for(var e=a.ea();e&128;)e=a.ea();if(3==c)a.va(),e=a.ea(),e&128&&a.va(),e&64&&a.skip(a.ea()),e&32&&a.va();else if(4==c)d=a.ea(),a.skip(12);else if(5==c)break}
403d&&(b+="."+this.g(d),5==c&&a.da()&&(c=a.ea(),d=(c&248)>>3,31===d&&a.da()&&(d=32+((c&7)<<3)+((a.ea()&224)>>5)),b+="."+d));return{ja:b}}function ki(a,b){a.skip(87);return{ja:b+"."+this.g(a.ea())+this.g(a.ea())+this.g(a.ea())}}function li(a){a=a.M();return{ja:fg(a)}};/* 404 405 Copyright Brightcove, Inc. 406 407 Licensed under the Apache License, Version 2.0 (the "License"); 408 you may not use this file except in compliance with the License. 409 You may obtain a copy of the License at 410 411 http://www.apache.org/licenses/LICENSE-2.0 412 413 Unless required by applicable law or agreed to in writing, software 414 distributed under the License is distributed on an "AS IS" BASIS, 415 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 416 See the License for the specific language governing permissions and 417 limitations under the License. 418*/ 419function mi(a,b){this.j=a;if(void 0===b?0:b){b=new Uint8Array(a.byteLength);for(var c=0,d=0;d<a.byteLength;d++)2<=d&&3==a[d]&&0==a[d-1]&&0==a[d-2]||(b[c]=a[d],c++);this.j=ob(b,0,c)}this.i=this.j.byteLength;this.g=this.h=0}function ni(a){var b=a.j.byteLength-a.i,c=new Uint8Array(4),d=Math.min(4,a.i);0!==d&&(c.set(a.j.subarray(b,b+d)),a.h=(new Zf(c,0)).M(),a.g=8*d,a.i-=d)}function oi(a,b){if(a.g<=b){b-=a.g;var c=Math.floor(b/8);b-=8*c;a.g-=c;ni(a)}a.h<<=b;a.g-=b} 420function pi(a,b){var c=Math.min(a.g,b),d=a.h>>>32-c;a.g-=c;0<a.g?a.h<<=c:0<a.i&&ni(a);c=b-c;return 0<c?d<<c|pi(a,c):d}function qi(a){var b;for(b=0;b<a.g;++b)if(0!==(a.h&2147483648>>>b))return a.h<<=b,a.g-=b,b;ni(a);return b+qi(a)}function ri(a){oi(a,1+qi(a))}function S(a){var b=qi(a);return pi(a,b+1)-1}function si(a){a=S(a);return 1&a?1+a>>>1:-1*(a>>>1)}function T(a){return 1===pi(a,1)}function ti(a){return pi(a,8)} 421function ui(a,b){for(var c=8,d=8,e=0;e<b;e++)0!==d&&(d=si(a),d=(c+d+256)%256),c=0===d?c:d}function vi(a){ti(a);S(a);return S(a)}P("shaka.util.ExpGolomb",mi);function wi(){this.F=null;this.G=!1;this.m=this.H=null;this.j=[];this.g=[];this.u=this.B=null;this.i=[];this.h=[];this.C=null;this.l=[];this.o=this.s=null}r=wi.prototype;r.clearData=function(){this.j=[];this.g=[];this.i=[];this.h=[];this.l=[]}; 422r.parse=function(a){if(564>a.length)return this;for(var b=Math.max(0,xi(a)),c=a.length-(a.length+b)%188,d=!1,e=b;e<c;e+=188)if(71==a[e]){var f=!!(a[e+1]&64),g=((a[e+1]&31)<<8)+a[e+2];if(1<(a[e+3]&48)>>4){var h=e+5+a[e+4];if(h==e+188)continue}else h=e+4;switch(g){case 0:f&&(h+=a[h]+1);this.F=(a[h+10]&31)<<8|a[h+11];break;case 17:case 8191:break;case this.F:f&&(h+=a[h]+1);f=a;g={audio:-1,video:-1,Dd:-1,audioCodec:"",videoCodec:""};var k=h+3+((f[h+1]&15)<<8|f[h+2])-4;for(h+=12+((f[h+10]&15)<<8|f[h+11]);h< 423k;){var l=(f[h+1]&31)<<8|f[h+2],m=(f[h+3]&15)<<8|f[h+4];switch(f[h]){case 6:if(0<m)for(var n=h+5,q=m;2<q;){var p=f[n+1]+2;switch(f[n]){case 5:var u=Uf(f.subarray(n+2,n+p));-1==g.audio&&"Opus"===u?(g.audio=l,g.audioCodec="opus"):-1==g.video&&"AV01"===u&&(g.video=l,g.videoCodec="av1");break;case 106:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 122:-1==g.audio&&(g.audio=l,g.audioCodec="ec3");break;case 124:-1==g.audio&&(g.audio=l,g.audioCodec="aac")}n+=p;q-=p}break;case 15:-1==g.audio&&(g.audio= 424l,g.audioCodec="aac");break;case 17:-1==g.audio&&(g.audio=l,g.audioCodec="aac-loas");break;case 21:-1==g.Dd&&(g.Dd=l);break;case 27:-1==g.video&&(g.video=l,g.videoCodec="avc");break;case 3:case 4:-1==g.audio&&(g.audio=l,g.audioCodec="mp3");break;case 36:-1==g.video&&(g.video=l,g.videoCodec="hvc");break;case 129:-1==g.audio&&(g.audio=l,g.audioCodec="ac3");break;case 132:case 135:-1==g.audio&&(g.audio=l,g.audioCodec="ec3")}h+=m+5}f=g;-1!=f.video&&(this.H=f.video,this.m=f.videoCodec);-1!=f.audio&&(this.B= 425f.audio,this.u=f.audioCodec);-1!=f.Dd&&(this.C=f.Dd);d&&!this.G&&(d=!1,e=b-188);this.G=!0;break;case this.H:h=a.subarray(h,e+188);f?this.j.push([h]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(h);break;case this.B:h=a.subarray(h,e+188);f?this.i.push([h]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(h);break;case this.C:h=a.subarray(h,e+188);f?this.l.push([h]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(h);break;default:d=!0}}return this}; 426function yi(a,b){if(1!==(b[0]<<16|b[1]<<8|b[2]))return null;var c={data:new Uint8Array(0),packetLength:b[4]<<8|b[5],pts:null,dts:null,nalus:[]};if(c.packetLength&&c.packetLength>b.byteLength-6)return null;var d=b[7];if(d&192){var e=536870912*(b[9]&14)+4194304*(b[10]&255)+16384*(b[11]&254)+128*(b[12]&255)+(b[13]&254)/2;null==a.s&&(a.s=e);c.pts=zi(e,a.s);a.s=c.pts;c.dts=c.pts;d&64&&(d=536870912*(b[14]&14)+4194304*(b[15]&255)+16384*(b[16]&254)+128*(b[17]&255)+(b[18]&254)/2,null==a.o&&(a.o=d),c.dts=zi(d, 427a.o));a.o=c.dts}a=b[8]+9;if(b.byteLength<=a)return null;c.data=b.subarray(a);return c}r.rh=function(a){Le("TsParser.parseAvcNalus","Please use parseNalus function instead.");return this.Ue(a)}; 428r.Ue=function(a,b,c){var d=a.pts?a.pts/9E4:null;a=a.data;var e=a.byteLength,f=1;"hvc"==this.m&&(f=2);for(var g=c||0,h=[],k=-1,l=0,m,n=0;n<e;++n){var q=a[n];if(q){if(2<=g&&1==q){b&&!h.length&&-1==k&&(q=n-(3<g?3:g),c&&0!=q&&(q=a.subarray(0,q),b.data=sg(b.data,q),b.fullData=sg(b.fullData,q)));0<=k?(g=n-((3<g?3:g)+1),h.push({data:a.subarray(k+f,g+1),fullData:a.subarray(k,g+1),type:l,time:d})):b&&!h.length&&(k=n-g,0<k&&(k=a.subarray(0,k),b.data=sg(b.data,k),b.fullData=sg(b.fullData,k)));if(n>=e-f)return h; 429n++;k=n;l="hvc"==this.m?a[n]>>1&63:a[n]&31}g=0}else g++;n>=e-1&&0<=k&&0<=g&&(m={data:a.subarray(k+f,e),fullData:a.subarray(k,e),type:l,time:d})}m&&h.push(m);!h.length&&b&&(b.data=sg(b.data,a),b.fullData=sg(b.fullData,a));return h};r.getMetadata=function(){for(var a=[],b=t(this.l),c=b.next();!c.done;c=b.next())c=sg.apply(mg,w(c.value)),(c=yi(this,c))&&a.push({cueTime:c.pts?c.pts/9E4:null,data:c.data,frames:ci(c.data),dts:c.dts,pts:c.pts});return a}; 430r.Kb=function(){if(this.i.length&&!this.h.length){for(var a=!1,b=t(this.i),c=b.next();!c.done;c=b.next()){var d=sg.apply(mg,w(c.value)),e=yi(this,d);c=this.h.length?this.h[this.h.length-1]:null;e&&null!=e.pts&&null!=e.dts&&(!c||c.pts!=e.pts&&c.dts!=e.dts)?(this.h.length&&e.dts<(c.dts||0)&&(a=!0),this.h.push(e)):this.h.length&&(d=e?e.data:d)&&(c=this.h.pop(),c.data=sg(c.data,d),this.h.push(c))}a&&(this.h=this.h.sort(function(f,g){var h=(f.pts||0)-(g.pts||0);return(f.dts||0)-(g.dts||0)||h}))}return this.h}; 431r.fc=function(a){a=void 0===a?!0:a;if(this.j.length&&!this.g.length){for(var b=!1,c=t(this.j),d=c.next();!d.done;d=c.next()){var e=sg.apply(mg,w(d.value)),f=yi(this,e);d=this.g.length?this.g[this.g.length-1]:null;f&&null!=f.pts&&null!=f.dts&&(!d||d.pts!=f.pts&&d.dts!=f.dts)?(this.g.length&&f.dts<(d.dts||0)&&(b=!0),this.g.push(f)):this.g.length&&(e=f?f.data:e)&&(d=this.g.pop(),d.data=sg(d.data,e),this.g.push(d))}if(a){var g;c=t(this.g);for(d=c.next();!d.done;d=c.next())d=d.value,d.nalus=this.Ue(d, 432g,void 0),d.nalus.length&&(g=d.nalus[d.nalus.length-1]);this.g=this.g.filter(function(h){return h.nalus.length})}b&&(this.g=this.g.sort(function(h,k){var l=(h.pts||0)-(k.pts||0);
vendor: 3,829 bytes, lines 432-439
432return(h.dts||0)-(k.dts||0)||l}))}return a?this.g:(a=this.g,this.g=[],a)};r.getStartTime=function(a){if("audio"==a){a=null;var b=this.Kb();b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4);return a}return"video"==a?(a=null,b=this.fc(!1),b.length&&(a=b[0],a=Math.min(a.dts,a.pts)/9E4),a):null}; 433r.Jc=function(){return{audio:this.u,video:this.m}};r.yd=function(){for(var a=[],b=t(this.fc()),c=b.next();!c.done;c=b.next())a.push.apply(a,w(c.value.nalus));return a};r.Zg=function(){Le("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var a=this.Be();return{height:a.height,width:a.width}};r.Be=function(){return"hvc"==this.m?Ai(this):Bi(this)}; 434function Bi(a){var b={height:null,width:null,ja:null};a=a.yd();if(!a.length)return b;a=a.find(function(q){return 7==q.type});if(!a)return b;a=new mi(a.data);var c=ti(a),d=ti(a),e=ti(a);ri(a);if(Ci.includes(c)){var f=S(a);3===f&&oi(a,1);ri(a);ri(a);oi(a,1);if(T(a)){f=3!==f?8:12;for(var g=0;g<f;g++)T(a)&&(6>g?ui(a,16):ui(a,64))}}ri(a);f=S(a);if(0===f)S(a);else if(1===f)for(oi(a,1),ri(a),ri(a),f=S(a),g=0;g<f;g++)ri(a);ri(a);oi(a,1);f=S(a);g=S(a);var h=pi(a,1);0===h&&oi(a,1);oi(a,1);var k=0,l=0,m=0,n= 4350;T(a)&&(k=S(a),l=S(a),m=S(a),n=S(a));b.height=String((2-h)*(g+1)*16-2*m-2*n);b.width=String(16*(f+1)-2*k-2*l);b.ja="avc1."+("0"+c.toString(16).toUpperCase()).slice(-2)+("0"+d.toString(16).toUpperCase()).slice(-2)+("0"+e.toString(16).toUpperCase()).slice(-2);return b} 436function Ai(a){var b={height:null,width:null,ja:null};a=a.yd();if(!a.length)return b;a=a.find(function(A){return 33==A.type});if(!a)return b;var c=new mi(a.fullData,!0);ti(c);ti(c);pi(c,4);var d=pi(c,3);T(c);var e=pi(c,2),f=pi(c,1),g=pi(c,5),h=pi(c,32);a=ti(c);for(var k=ti(c),l=ti(c),m=ti(c),n=ti(c),q=ti(c),p=ti(c),u=[],v=[],x=0;x<d;x++)u.push(T(c)),v.push(T(c));if(0<d)for(x=d;8>x;x++)pi(c,2);for(x=0;x<d;x++)u[x]&&pi(c,88),v[x]&&ti(c);S(c);d=S(c);3==d&&pi(c,1);u=S(c);v=S(c);var z=x=0,y=0,B=0;T(c)&& 437(x+=S(c),z+=S(c),y+=S(c),B+=S(c));b.width=String(u-(x+z)*(1===d||2===d?2:1));b.height=String(v-(y+B)*(1===d?2:1));c=function(A){for(var D=0,F=0;32>F;F++)D|=(A>>F&1)<<31-F;return D>>>0}(h);f=1==f?"H":"L";e="hvc1"+("."+["","A","B","C"][e]+g);e+="."+c.toString(16).toUpperCase();e+="."+f+p;q&&(e+="."+q.toString(16).toUpperCase());n&&(e+="."+n.toString(16).toUpperCase());m&&(e+="."+m.toString(16).toUpperCase());l&&(e+="."+l.toString(16).toUpperCase());k&&(e+="."+k.toString(16).toUpperCase());a&&(e+="."+ 438a.toString(16).toUpperCase());b.ja=e;return b}function zi(a,b){var c=1;for(a>b&&(c=-1);4294967296<Math.abs(b-a);)a+=8589934592*c;return a}function Di(a){return 0>xi(a)?!1:!0}function xi(a){for(var b=Math.min(1E3,a.length-564),c=0;c<b;){if(71==a[c]&&71==a[c+188]&&71==a[c+376])return c;c++}return-1}P("shaka.util.TsParser",wi);wi.syncOffset=xi;wi.probe=Di;wi.prototype.getVideoInfo=wi.prototype.Be;wi.prototype.getVideoResolution=wi.prototype.Zg;wi.prototype.getVideoNalus=wi.prototype.yd; 439wi.prototype.getCodecs=wi.prototype.Jc;wi.prototype.getStartTime=wi.prototype.getStartTime;wi.prototype.getVideoData=wi.prototype.fc;wi.prototype.getAudioData=wi.prototype.Kb;wi.prototype.getMetadata=wi.prototype.getMetadata;wi.prototype.parseNalus=wi.prototype.Ue;wi.prototype.parseAvcNalus=wi.prototype.rh;wi.prototype.parse=wi.prototype.parse;wi.prototype.clearData=wi.prototype.clearData;wi.Timescale=9E4;var Ci=[100,110,122,244,44,83,86,118,128,138,139,134];function Ei(a,b,c){this.g=null;this.o=-1;this.l=a;this.i=b;this.m=c;this.j=!1;a:{"undefined"===typeof libDPIModule&&Ta("Could not find LCEVC Library dependencies on this page");if("undefined"!==typeof LCEVCdec)this.h=LCEVCdec;else if("undefined"!==typeof LcevcDil)this.h=LcevcDil,this.j=!0,Le("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Ta("Could not find LCEVC Library on this page");a=!1;break a}
439"undefined"===typeof this.h.SupportObject?(Ta("Could not find LCEVC Library on this page"), 440a=!1):(this.h.SupportObject.SupportStatus||Ta(this.h.SupportObject.SupportError),a="undefined"!==typeof this.h&&"undefined"!==typeof libDPIModule&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}a&&!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 Fi(a){a.g&&a.i.classList.add("shaka-hidden")} 441Ei.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Gi(a,b,c){var d=Hi,e=Ii;switch(b.mimeType){case "video/webm":d=Ji;break;case "video/mp4":d=Ki}switch(c){case "DASH":e=Li;break;case "HLS":e=Mi}a.g&&(a.o=b.id,a.g.setLevelSwitching(b.id,!0),a.g.setContainerFormat(d),a.j||a.g.setStreamingFormat(e))}P("shaka.lcevc.Dec",Ei);Ei.prototype.release=Ei.prototype.release;var Hi=0,Ji=1,Ki=2,Mi=0,Li=1,Ii=-1;function Ni(a,b,c,d){var e=this;this.i=a;this.C=null;this.F=b;this.g={};this.G={};this.za={};this.h=null;this.ba=!1;this.Fa=c||function(){};this.U=d||null;this.j={};this.o=new ab;this.m={};this.H=null;this.L=new kf;this.N="";this.ca=!1;this.l=Oi(this,this.L);this.B=!1;this.J=new Kf(function(){return Pi(e)});this.u=!1;this.Y="UNKNOWN";this.ya=this.Aa=!1;this.ga=new kf;this.s=!1;this.fa=!0;this.K=this.W=null} 442function Oi(a,b){if(window.ManagedMediaSource){a.i.disableRemotePlayback=!0;var c=new ManagedMediaSource;a.o.D(c,"startstreaming",function(){a.fa=!0});a.o.D(c,"endstreaming",function(){a.fa=!1});a.o.ka(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.o.ka(a.i,"playing",function(){a.ca=!0});a.N=Qi(c);a.i.src=a.N;return c}c=new MediaSource;a.o.ka(c,"sourceopen",function(){URL.revokeObjectURL(a.N);b.resolve()});a.o.ka(a.i,"playing",function(){a.ca=!0});a.N=Qi(c);a.i.src=a.N;return c} 443function Ri(a,b){var c,d,e,f,g,h,k,l,m,n,q;return J(function(p){if(1==p.g)return a.createSegmentIndex?C(p,a.createSegmentIndex(),2):p.A(2);if(!a.segmentIndex)return p.return(!1);if(0==a.segmentIndex.mb())return p.return(!0);c=Jc;d=new Set;e=t(a.segmentIndex);for(f=e.next();!f.done;f=e.next())if(g=f.value,h=g.mimeType||a.mimeType||"",k=g.codecs||a.codecs||"",l=h+":"+k,!d.has(l))if(d.add(l),b==c.ha){if(m=Lc(h,k),!bd(m))return p.return(!1)}else if(b==c.$?k=ie(k):b==c.P&&(k=je(k,h)),n=Rc(a,h,k),q=Pc(h, 444k),!gb(n)&&!ec(q))return p.return(!1);return p.return(!0)})}r=Ni.prototype;r.destroy=function(){return this.J.destroy()}; 445function Pi(a){var b,c,d,e,f,g,h,k;return J(function(l){if(1==l.g){b=[];
445for(c in a.j)for(d=a.j[c],e=d[0],a.j[c]=d.slice(0,1),e&&b.push(e.p.catch(jd)),f=t(d.slice(1)),g=f.next();!g.done;g=f.next())h=g.value,h.p.reject(new Q(2,7,7003,void 0));a.h&&b.push(a.h.destroy());a.F&&b.push(a.F.destroy());for(k in a.m)b.push(a.m[k].destroy());return C(l,Promise.all(b),2)}a.o&&(a.o.release(),a.o=null);a.i&&(a.i.removeAttribute("src"),a.i.load(),a.i=null);a.C=null;a.l=null;a.h=null;a.F=null;a.g={};a.m={};a.H=null; 446a.j={};a.U=null;a.K=null;E(l)})}r.init=function(a,b,c,d){b=void 0===b?!1:b;c=void 0===c?"UNKNOWN":c;d=void 0===d?!1:d;var e=this,f,g,h,k,l;return J(function(m){switch(m.g){case 1:return f=Jc,C(m,e.L,2);case 2:e.u=b,e.Y=c,e.Aa=d,e.ya=!e.u&&"HLS"==e.Y&&!e.Aa,e.K=null,g=t(a.keys()),h=g.next();case 3:if(h.done){m.A(0);break}k=h.value;l=a.get(k);return C(m,Si(e,k,l,l.codecs),6);case 6:e.s?(e.j[f.P]=[],e.j[f.$]=[]):e.j[k]=[],h=g.next(),m.A(3)}})}; 447function Si(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v;return J(function(x){switch(x.g){case 1:return e=Jc,f=Ma,g=Na,C(x,Ri(c,b),2);case 2:g.call(f,x.h,"Type negotiation should happen before MediaSourceEngine.init!");h=Lc(c.mimeType,d);if(b==e.ha){Ti(a,h,a.u,c.external);x.A(0);break}k=a.C.forceTransmux;if(!gb(h)||!a.u&&Oc.includes(h))k=!0;l=Pc(c.mimeType,d);if(!k){x.A(4);break}m=Gc(e.P,(d||"").split(","));n=Gc(e.$,(d||"").split(","));if(!m||!n){x.A(5);break}a.s=!0;return C(x,Si(a,e.P,c,m),6);case 6:return C(x, 448Si(a,e.$,c,n),7);case 7:return x.return();case 5:if(q=ec(l))p=q(),a.m[b]=p,h=p.convertCodecs(b,l);case 4:u=h+a.C.sourceBufferExtraFeatures;Lf(a.J);try{v=a.l.addSourceBuffer(u)}catch(z){throw new Q(2,3,3015,z,"The mediaSource_ status was "+a.l.readyState+" expected 'open'");}a.u&&(v.mode=Ui);a.o.D(v,"error",function(){a.j[b][0].p.reject(new Q(2,3,3014,a.i.error?a.i.error.code:0))});a.o.D(v,"updateend",function(){return Vi(a,b)});a.g[b]=v;a.G[b]=h;a.za[b]=!!c.drmInfos.length;E(x)}})} 449r.configure=function(a){this.C=a};function Ti(a,b,c,d){a.h||(a.h=new ad(a.F));var e=a.h;d=d||a.ba;a=a.Y;"application/cea-608"==b||"application/cea-708"==b?e.i=null:(e.i=(0,cd[b])(),e.i.setSequenceMode?e.i.setSequenceMode(c):Ta('Text parsers should have a "setSequenceMode" method!'),e.i.setManifestType?e.i.setManifestType(a):Ta('Text parsers should have a "setManifestType" method!'),e.u=d)}function Wi(a){return a.B?!1:a.l?"ended"==a.l.readyState:!0} 450function Xi(a,b){a.B||!Object.keys(a.g).length?a=null:b==Ic?a=a.h.g:(a=Yi(a,b),a=!a||1==a.length&&1E-6>a.end(0)-a.start(0)?null:1==a.length&&0>a.start(0)?0:a.length?a.start(0):null);return a}function Zi(a,b){return a.B?null:b==Ic?a.h.h:Th(Yi(a,b))}function $i(a,b,c){if(a.B)return 0;if(b==Ic)return a=a.h,null==a.h||a.h<c?0:a.h-Math.max(c,a.g);a=Yi(a,b);return Vh(a,c)} 451r.lb=function(){var a={total:this.B?[]:Wh(this.i.buffered),audio:this.B?[]:Wh(Yi(this,"audio")),video:this.B?[]:Wh(Yi(this,"video")),text:[]};if(this.h){var b=this.h.g,c=this.h.h;null!=b&&null!=c&&a.text.push({start:b,end:c})}return a};function Yi(a,b){try{return a.g[b].buffered}catch(c){return null}} 452function aj(a,b,c,d,e,f){var g=null,h=ob(c);if(Oc.includes(e))f=ci(h),f.length&&d&&((b=f.find(function(n){return"com.apple.streaming.transportStreamTimestamp"===n.description}))&&b.data&&(g=Math.round(b.data)/1E3),a.Fa([{cueTime:d.startTime,data:h,frames:f,dts:d.startTime,pts:d.startTime}],0,d.endTime));else if(e.includes("/mp4")&&d&&0==d.timestampOffset&&d.h&&d.h.timescale){var k=d.h.timescale;if(!isNaN(k)){var l=0,m=!1;(new bg).box("moof",gg).box("traf",gg).O("tfdt",function(n){l=fi(n.reader,n.version).baseMediaDecodeTime/ 453k;m=!0;n.parser.stop()}).parse(c,!0);m&&(g=l)}}else e.includes("/mp4")||e.includes("/webm")||!Di(h)||(a.K?a.K.clearData():a.K=new wi,h=a.K.parse(h),b=h.getStartTime(b),null!=b&&(g=b),h=h.getMetadata(),h.length&&a.Fa(h,f,d?d.endTime:null));return g} 454function bj(a,b,c,d,e,f,g,h,k,l){g=void 0===g?!1:g;h=void 0===h?!1:h;k=void 0===k?!1:k;l=void 0===l?!1:l;var m,n,q,p,u,v,x,z,y,B,A;return J(function(D){switch(D.g){case 1:m=Jc;if(b!=m.ha){D.A(2);break}if(!a.u){D.A(3);break}return C(D,a.ga,4);case 4:n=D.h,a.h.s=n;case 3:return C(D,dd(a.h,c,d?d.startTime:null,d?d.endTime:null,d?d.Z()[0]:null),5);case 5:return D.return();case 2:if(l||!a.s){D.A(6);break}return C(D,bj(a,m.P,c,d,e,f,g,h,k,!0),7);case 7:return C(D,bj(a,m.$,c,d,e,f,g,h,k,!0),8);case 8:return D.return(); 455case 6:if(!a.g[b])return D.return();q=a.g[b].timestampOffset;p=a.G[b];a.m[b]&&(p=a.m[b].getOriginalMimeType());d&&(u=aj(a,b,c,d,p,q),null!=u&&(v=d.startTime-u,x=Math.abs(q-v),(.001<=x||g||h)&&(!k||0<v||!q)&&(q=v,a.ya&&(cj(a,b,function(){return dj(a,b)}),cj(a,b,function(){return ej(a,b,q)}))),z=b==m.$||!(m.$ in a.g),a.u&&z&&a.ga.resolve(q)));f&&b==m.$&&(a.h||Ti(a,"application/cea-608",a.u,!1),a.H||(y=p.split(";",1)[0],a.H=new wb(y)),d?(B=a.H.i(c),B.length&&hd(a.h,B,d.startTime,d.endTime,q)):a.H.init(c, 456h));if(!a.m[b]){D.A(9);break}return C(D,a.m[b].transmux(c,e,d,a.l.duration,b),10);case 10:c=D.h;case 9:return c=fj(a,c,d?d.startTime:null,b),d&&a.u&&b!=m.ha&&(g||h)&&(A=d.startTime,cj(a,b,function(){return dj(a,b)}),cj(a,b,function(){return ej(a,b,A)}
456)),C(D,cj(a,b,function(){var F=c;if("video"==b&&a.U){var K=a.U;K.g&&K.g.appendBuffer(F,"video",K.o,-q)}a.g[b].appendBuffer(F)}),11);case 11:E(D)}})}function gj(a,b){var c=Zi(a,"video")||0;fd(a.h,b,c)}function hj(a){a.h&&fd(a.h,"",0)} 457r.remove=function(a,b,c){var d=this,e;return J(function(f){return 1==f.g?(e=Jc,a==e.ha?C(f,d.h.remove(b,c),0):C(f,cj(d,a,function(){return ij(d,a,b,c)}),4)):d.s?C(f,cj(d,e.P,function(){return ij(d,e.P,b,c)}),0):f.A(0)})};function jj(a,b){var c;return J(function(d){return 1==d.g?(c=Jc,b==c.ha?a.h?C(d,a.h.remove(0,Infinity),0):d.return():C(d,cj(a,b,function(){return ij(a,b,0,a.l.duration)}),4)):a.s?C(d,cj(a,c.P,function(){return ij(a,c.P,0,a.l.duration)}),0):d.A(0)})} 458r.flush=function(a){var b=this,c;return J(function(d){return 1==d.g?(c=Jc,a==c.ha?d.return():C(d,cj(b,a,function(){b.i.currentTime-=.001;Vi(b,a)}),2)):b.s?C(d,cj(b,c.P,function(){var e=c.P;b.i.currentTime-=.001;Vi(b,e)}),0):d.A(0)})}; 459function kj(a,b,c,d,e,f,g,h,k){var l,m,n;return J(function(q){if(1==q.g){l=Jc;if(b==l.ha)return f||(a.h.s=c),ed(a.h,d,e),q.return();m=[];return C(q,lj(a,b,g,h,k),2)}n=q.h;n||(m.push(cj(a,b,function(){return dj(a,b)})),a.s&&m.push(cj(a,l.P,function(){return dj(a,l.P)})));f||(m.push(cj(a,b,function(){return ej(a,b,c)})),a.s&&m.push(cj(a,l.P,function(){return ej(a,l.P,c)})));m.push(cj(a,b,function(){a.g[b].appendWindowStart=0;a.g[b].appendWindowEnd=e;a.g[b].appendWindowStart=d;Vi(a,b)}));a.s&&m.push(cj(a, 460l.P,function(){var p=l.P;a.g[p].appendWindowStart=0;a.g[p].appendWindowEnd=e;a.g[p].appendWindowStart=d;Vi(a,p)}));return C(q,Promise.all(m),0)})}function mj(a,b,c){var d;return J(function(e){if(1==e.g){d=Jc;if(b==d.ha)return e.return();b==d.$&&(a.ga=new kf);cj(a,b,function(){return dj(a,b)});a.s&&cj(a,d.P,function(){return dj(a,d.P)});return C(e,cj(a,b,function(){return ej(a,b,c)}),2)}return a.s?C(e,cj(a,d.P,function(){return ej(a,d.P,c)}),0):e.A(0)})} 461r.endOfStream=function(a){var b=this;return J(function(c){return C(c,nj(b,function(){Wi(b)||"closed"===b.l.readyState||(a?b.l.endOfStream(a):b.l.endOfStream())}),0)})};r.fb=function(a){var b=this;return J(function(c){return C(c,nj(b,function(){if(a<b.l.duration)for(var d in b.g){var e={start:function(){},p:new kf};b.j[d].unshift(e)}b.l.duration=a;b.W=a}),0)})};r.getDuration=function(){return this.l.duration};function ij(a,b,c,d){d<=c?Vi(a,b):a.g[b].remove(c,d)} 462function dj(a,b){var c=a.g[b].appendWindowStart,d=a.g[b].appendWindowEnd;a.g[b].abort();a.g[b].appendWindowStart=c;a.g[b].appendWindowEnd=d;Vi(a,b)}function ej(a,b,c){0>c&&(c+=.001);a.g[b].timestampOffset=c;Vi(a,b)}function Vi(a,b){if(!a.B){var c=a.j[b][0];c&&(c.p.resolve(),oj(a,b))}}function cj(a,b,c){Lf(a.J);c={start:c,p:new kf};a.j[b].push(c);1==a.j[b].length&&pj(a,b);return c.p} 463function nj(a,b){var c,d,e,f,g,h,k;return J(function(l){switch(l.g){case 1:Lf(a.J);c=[];d={};for(e in a.g)d.tc=new kf,f={start:function(m){return function(){return m.tc.resolve()}}(d),p:d.tc},a.j[e].push(f),c.push(d.tc),1==a.j[e].length&&f.start(),d={tc:d.tc};ra(l,2);return C(l,Promise.all(c),4);case 4:ta(l,3);break;case 2:throw g=ua(l),g;case 3:return ra(l,5,6),C(l,b(),6);case 6:va(l);for(h in a.g)oj(a,h);wa(l,0);break;case 5:throw k=ua(l),new Q(2,3,3015,k,a.i.error||"No error in the media element"); 464}})}function oj(a,b){a.j[b].shift();pj(a,b)}function pj(a,b){var c=a.j[b][0];if(c)try{c.start()}catch(d){"QuotaExceededError"==d.name?c.p.reject(new Q(2,3,3017,b)):c.p.reject(new Q(2,3,3015,d,a.i.error||"No error in the media element")),oj(a,b)}}function fj(a,b,c,d){var e=a.za[d];a.C.insertFakeEncryptionInInit&&null==c&&e&&(Kd()||Id()||Jd("SOPOpenBrowser"))&&"mp4"==Tc(a.G[d])&&(b=Jh(b));return b} 465function qj(a,b,c,d){return cj(a,b,function(){b!==Ic&&(ib()&&(a.m[b]&&(a.m[b].destroy(),delete a.m[b]),d&&(a.m[b]=d),a.g[b].changeType(c+a.C.sourceBufferExtraFeatures),a.G[b]=c),Vi(a,b))})} 466function rj(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K,H,I;return J(function(G){switch(G.g){case 1:c=Jc;a.B=!0;a.s=!1;d=a.i.currentTime;e=a.i.autoplay;f=a.i.paused;a.ca&&(a.i.autoplay=!1);sa(G,2);a.o.qb();g=[];for(h in a.m)g.push(a.m[h].destroy());for(k in a.j)for(l=a.j[k],m=l[0],a.j[k]=l.slice(0,1),m&&g.push(m.p.cat
466ch(jd)),n=t(l.slice(1)),q=n.next();!q.done;q=n.next())p=q.value,p.p.reject(new Q(2,7,7003,void 0));for(u in a.g){v=a.g[u];try{a.l.removeSourceBuffer(v)}catch(M){}}return C(G, 467Promise.all(g),4);case 4:return a.m={},a.g={},x=a.l.duration,a.L=new kf,a.l=Oi(a,a.L),C(G,a.L,5);case 5:!isNaN(x)&&x?a.l.duration=x:!isNaN(a.W)&&a.W&&(a.l.duration=a.W),z=new kf,y=a.l.sourceBuffers,B=b.size,A=0,D=function(){A++;A===B&&(z.resolve(),a.o.Cb(y,"addsourcebuffer",D))},a.o.D(y,"addsourcebuffer",D),F=t(b.keys()),K=F.next();case 6:if(K.done)return a.i.currentTime=d,C(G,z,2);H=K.value;I=b.get(H);return C(G,Si(a,H,I,I.codecs),9);case 9:a.s?(a.j[c.P]=[],a.j[c.$]=[]):a.j[H]=[];K=F.next();G.A(6); 468break;case 2:va(G),a.B=!1,Lf(a.J),a.o.ka(a.i,"canplaythrough",function(){a.J.g||(a.i.autoplay=e,f||a.i.play())}),wa(G,0)}})}function sj(a,b){return nj(a,function(){return rj(a,b)})} 469function lj(a,b,c,d,e){var f,g,h,k,l,m,n,q,p,u,v,x,z,y,B;return J(function(A){if(1==A.g){f=Jc;if(b==f.ha)return A.return(!1);g=Xc(Zc(a.G[b]));h=Yc(a.G[b]);l=!1;m=Lc(c,d);n=a.C.forceTransmux;if(!gb(m)||!a.u&&Oc.includes(m))n=!0;n&&(q=Pc(c,d),p=ec(q))&&(k=p(),u=Gc(f.P,(d||"").split(",")),v=Gc(f.$,(d||"").split(",")),u&&v?(l=!0,x=v,b==f.P&&(x=u),m=k.convertCodecs(b,Pc(c,x))):m=k.convertCodecs(b,q));z=Xc(Zc(m));y=Yc(m);if(g===z&&h===y)return A.return(!1);B=!0;if(a.s||l&&k&&!a.m[b])B=!1;if(B&&"smooth"=== 470a.C.codecSwitchingStrategy&&ib())return C(A,qj(a,b,m,k),3);k&&k.destroy();return C(A,sj(a,e),3)}return A.return(!0)})}function tj(a,b,c,d){if(b==Ic)var e=!1;else{e=Xc(Zc(a.G[b]));var f=Yc(a.G[b]),g=Lc(c,d),h=a.C.forceTransmux;if(!gb(g)||!a.u&&Oc.includes(g))h=!0;c=Pc(c,d);h&&(h=ec(c))&&(h=h(),g=h.convertCodecs(b,c),h.destroy());b=Xc(Zc(g));g=Yc(g);e=e!==b||f!==g}return e?"smooth"!==a.C.codecSwitchingStrategy||!ib()||a.s:!1}var Qi=window.URL.createObjectURL,Ui="sequence";function uj(a,b,c){this.i=a;this.o=b;this.u=this.j=Infinity;this.g=1;this.h=this.l=null;this.s=0;this.F=!0;this.G=0;this.B=void 0===c?!0:c;this.H=0;this.m=!1;this.C=null}r=uj.prototype;r.getDuration=function(){return this.j};r.Ng=function(){return this.g};r.dg=function(a){this.i=a};r.fb=function(a){this.j=a};r.Qg=function(){return this.i};r.bg=function(a){this.s=a};r.$c=function(a){this.F=a};r.df=function(a){this.u=a};r.af=function(a){this.o=a};r.Fg=function(){return this.o}; 471r.Sf=function(a,b){if(0!=a.length){var c=a[a.length-1].end+b;this.Ld(a[0].start+b);this.g=a.reduce(function(d,e){return Math.max(d,e.end-e.start)},this.g);this.h=Math.max(this.h,c);null!=this.i&&this.B&&!this.m&&(this.i=(Date.now()+this.s)/1E3-this.h-this.g)}}; 472r.Sc=function(a){if(0!=a.length){var b=a[0].startTime,c=a[0].endTime,d=(Date.now()+this.s)/1E3;a=t(a);for(var e=a.next();!e.done;e=a.next())e=e.value,d<e.startTime||(b=Math.min(b,e.startTime),c=Math.max(c,e.endTime),this.g=Math.max(this.g,e.endTime-e.startTime));this.Ld(b);this.h=Math.max(this.h,c);null!=this.i&&this.B&&!this.m&&(this.i=d-this.h-this.g)}};r.Ke=function(){this.m=!0};r.ih=function(){return this.m};r.cg=function(a){this.C=a};r.Jg=function(){return this.C}; 473r.Ld=function(a){this.l=null==this.l?a:Math.min(this.l,a)};r.Pe=function(a){this.g=Math.max(this.g,a)};r.offset=function(a){null!=this.l&&(this.l+=a);null!=this.h&&(this.h+=a)};r.T=function(){return Infinity==this.j&&!this.F};r.Ob=function(){return Infinity!=this.j&&!this.F};r.bb=function(){return Math.max(this.G,this.xb()-this.u)};r.fg=function(a){this.G=a}; 474r.xb=function(){return this.T()||this.Ob()?Math.min(Math.max(0,(Date.now()+this.s)/1E3-this.g-this.i)+this.H,this.j):this.h?Math.min(this.h,this.j):this.j};r.Lc=function(a){var b=Math.max(this.l,this.G);return Infinity==this.u?Math.ceil(1E3*b)/1E3:Math.max(b,Math.min(this.xb()-this.u+a,this.ab()))};r.Mb=function(){return this.Lc(0)};r.ab=function(){return Math.max(0,this.xb()-(this.T()||this.Ob()?this.o:0))};r.ig=function(){return null==this.i||null!=this.h&&this.B?!1:!0}; 475r.ag=function(a){this.H=a};P("shaka.media.PresentationTimeline",uj);uj.prototype.setAvailabilityTimeOffset=uj.prototype.ag;uj.prototype.usingPresentationStartTime=uj.prototype.ig;uj.prototype.getSeekRangeEnd=uj.prototype.ab;uj.prototype.getSeekRangeStart=uj.prototype.Mb;uj.prototype.getSafeSeekRangeStart=uj.prototype.Lc;uj.prototype.getSegmentAvailabilityEnd=uj.prototype.xb;uj.prototype.setUserSeekStart=uj.prototype.fg;uj.prototype.getSegmentAvailabilityStart=uj.prototype.bb; 476uj.prototype.isInProgress=uj.prototype.Ob;uj.prototype.isLive=uj.prototype.T;uj.prototype.offset=uj.prototype.offset;uj.prototype.notifyMaxSegmentDuration=uj.prototype.Pe;uj.prototype.notifyMinSegmentStartTime=uj.prototype.Ld;uj.prototype.getInitialProgramDateTime=uj.prototype.Jg;uj.prototype.setInitialProgramDateTime=uj.prototype.cg;uj.prototype.isStartTimeLocked=uj.prototype.ih;uj.prototype.lockStartTime=uj.prototype.Ke;uj.prototype.notifySegments=uj.prototype.Sc;uj.prototype.notifyTimeRange=uj.prototype.Sf; 477uj.prototype.getDelay=uj.prototype.Fg;uj.prototype.setDelay=uj.prototype.af;uj.prototype.setSegmentAvailabilityDuration=uj.prototype.df;uj.prototype.setStatic=uj.prototype.$c;uj.prototype.setClockOffset=uj.prototype.bg;uj.prototype.getPresentationStartTime=uj.prototype.Qg;uj.prototype.setDuration=uj.prototype.fb;uj.prototype.setPresentationStartTime=uj.prototype.dg;uj.prototype.getMaxSegmentDuration=uj.prototype.Ng;uj.prototype.getDuration=uj.prototype.getDuration;function vj(a,b,c){this.j=c;this.l=a;this.s=wj(a);this.g=a.g.currentTime;this.m=Date.now()/1E3;this.h=!1;this.o=0;this.u=b;this.i=function(){}}vj.prototype.release=function(){this.j=this.l=null;this.i=function(){}};function xj(a,b){a.i=b}function yj(a){this.g=a}
477function wj(a){if(a.g.paused||0==a.g.playbackRate||0==a.g.buffered.length)var b=!1;else a:{b=a.g.currentTime;a=t(Wh(a.g.buffered));for(var c=a.next();!c.done;c=a.next())if(c=c.value,!(b<c.start-.1||b>c.end-.5)){b=!0;break a}b=!1}return b};function zj(a,b,c,d,e){var f=this;this.u=e;this.g=a;this.B=b;this.s=c;this.l=new ab;this.j=!1;this.F=a.readyState;this.C=this.i=0;this.h=d;this.o=!1;this.l.D(a,"waiting",function(){return Aj(f)});this.m=(new yd(function(){Aj(f)})).Pa(this.s.gapJumpTimerTime)}zj.prototype.release=function(){this.l&&(this.l.release(),this.l=null);null!=this.m&&(this.m.stop(),this.m=null);this.h&&(this.h.release(),this.h=null);this.g=this.B=this.u=null};zj.prototype.Se=function(){this.o=!0;Aj(this)}; 478function Aj(a){if(0!=a.g.readyState){if(a.g.seeking){if(!a.j)return}else a.j=!1;if(!a.g.paused||a.g.currentTime==a.i&&(a.g.autoplay||a.g.currentTime!=a.i)){a.g.readyState!=a.F&&(a.F=a.g.readyState);var b;if(!(b=!a.h)){b=a.h;var c=b.l,d=wj(c),e=c.g.currentTime,f=Date.now()/1E3;if(b.g!=e||b.s!=d)b.m=f,b.g=e,b.s=d,b.h=!1;e=f-b.m;if(d=e>=b.u&&d&&!b.h)b.i(b.g,e),b.h=!0,b.g=c.g.currentTime,b.o++,b.j(new sf("stalldetected"));b=!d}if(b&&(b=a.g.currentTime,c=a.g.buffered,d=Xh(c,b,a.s.gapDetectionThreshold), 479null!=d&&(0!=d||a.o))){e=c.start(d);if(Hd()||Id())e=Math.ceil(100*(e+.01))/100;e>=a.B.ab()||.001>e-b||(0!=d&&c.end(d-1),a.g.currentTime=e,b==a.i&&(a.i=e),a.C++,a.u(new sf("gapjumped")))}}}};function Bj(a,b,c,d){b==HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Cj.value().get(b),c.ka(a,b,d))}var Cj=new Of(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function Dj(a,b,c,d){var e=this;this.g=a;this.m=b;this.s=c;this.l=null;this.j=function(){null==e.l&&(e.l=d());return e.l};this.o=!1;this.h=new ab;this.i=new Ej(a);Bj(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){Fj(e,e.j())})}Dj.prototype.release=function(){this.h&&(this.h.release(),this.h=null);null!=this.i&&(this.i.release(),this.i=null);this.m=function(){};this.g=null};function Gj(a){return a.o?a.g.currentTime:a.j()} 480function Hj(a,b){0<a.g.readyState?Ij(a.i,b):Bj(a.g,HTMLMediaElement.HAVE_METADATA,a.h,function(){Fj(a,a.j())})}function Fj(a,b){.001>Math.abs(a.g.currentTime-b)?Jj(a):(a.h.ka(a.g,"seeking",function(){Jj(a)}),Ij(a.i,a.g.currentTime&&0!=a.g.currentTime?a.g.currentTime:b))}function Jj(a){a.o=!0;a.h.D(a.g,"seeking",function(){return a.m()});a.s(a.g.currentTime)} 481function Ej(a){var b=this;this.h=a;this.m=10;this.l=this.j=this.i=0;this.g=new yd(function(){0>=b.i?b.g.stop():b.h.currentTime!=b.j?b.g.stop():(b.h.currentTime=b.l,b.i--)})}Ej.prototype.release=function(){this.g&&(this.g.stop(),this.g=null);this.h=null};function Ij(a,b){a.j=a.h.currentTime;a.l=b;a.i=a.m;a.h.currentTime=b;a.g.Pa(.1)};function Kj(a){this.g=a;this.j=!1;this.h=null;this.i=new ab}r=Kj.prototype;r.be=function(){function a(){null==b.h||0==b.h?b.j=!0:(b.i.ka(b.g,"seeking",function(){b.j=!0}),b.g.currentTime=Math.max(0,b.g.currentTime+b.h))}var b=this;Bj(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,function(){a()})};r.release=function(){this.i&&(this.i.release(),this.i=null);this.g=null};r.ce=function(a){this.h=this.j?this.h:a};r.kd=function(){return(this.j?this.g.currentTime:this.h)||0};r.nf=function(){return 0}; 482r.mf=function(){return 0};r.Rf=function(){}; 483function Lj(a,b,c,d,e,f){var g=this;this.i=a;this.g=b.presentationTimeline;this.B=b.minBufferTime||0;this.l=c;this.u=e;this.s=null;this.o=Mj(a,c,f);this.j=new zj(a,b.presentationTimeline,c,this.o,f);this.h=new Dj(a,function(){a:{var h=g.j;h.j=!0;h.o=!1;var k=Gj(g.h);h=Nj(g,k);if(.001<Math.abs(h-k)&&(k=Date.now()/1E3,!g.s||g.s<k-1)){g.s=k;Hj(g.h,h);h=void 0;break a}g.u();h=void 0}return h},function(h){var k=g.j;k.g.seeking&&!k.j&&(k.j=!0,k.i=h)},function(){var h=d;null==h?h=Infinity>g.g.getDuration()? 484g.g.Mb():g.g.ab():0>h&&(h=g.g.ab()+h);return Oj(g,Pj(g,h))});this.m=new yd(function(){if(0!=g.i.readyState&&!g.i.paused){var h=Gj(g.h),k=g.g.Mb(),l=g.g.ab();3>l-k&&(k=l-3);h<k&&(h=Nj(g,h),g.i.currentTime=h)}})}r=Lj.prototype;r.be=function(){this.m.Pa(.25)};r.release=function(){this.h&&(this.h.release(),this.h=null);this.j&&(this.j.release(),this.j=null);this.m&&(this.m.stop(),this.m=null);this.i=this.h=this.g=this.l=null;this.u=function(){}};r.ce=function(a){Hj(this.h,a)}; 485r.kd=function(){var a=Gj(this.h);return 0<this.i.readyState&&!this.i.paused?Pj(this,a):a};r.nf=function(){return this.o?this.o.o:0};r.mf=function(){return this.j.C};r.Rf=function(){this.j.Se()};function Oj(a,b){var c=a.g.getDuration();return b>=c?c-a.l.durationBackoff:b} 486function Nj(a,b){var c=Math.max(a.B,a.l.rebufferingGoal),d=a.l.safeSeekOffset,e=a.g.Mb(),f=a.g.ab(),g=a.g.getDuration();3>f-e&&(e=f-3);var h=a.g.Lc(c),k=a.g.Lc(d);c=a.g.Lc(c+d);return b>=g?Oj(a,b):b>f?f:b<e?Uh(a.i.buffered,k)?k:c:b>=h||Uh(a.i.buffered,b)?b:c}function Pj(a,b){var c=a.g.Mb();if(b<c)return c;a=a.g.ab();return b>a?a:b} 487function Mj(a,b,c){if(!b.stallEnabled)return null;var d=b.stallSkip;b=new vj(new yj(a),b.stallThreshold,c);xj(b,function(){d?a.currentTime+=d:(a.pause(),a.play())});return b};function Qj(a){this.g=a;this.m=null;this.j=0;this.o=!1}r=Qj.prototype;r.mb=function(){return this.g.length};r.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)};r.mh=function(){this.o=!0};r.Zb=function(a){for(var b=t(this.g),c=b.next();!c.done;c=b.next())a(c.value)};r.find=function(a){for(var b=this.g.length-1,c=b;0<=c;--c){var d=this.g[c],e=c<b?this.g[c+1].startTime:d.endTime;if(a>=d.startTime&&a<e)return c+this.j}return this.g.length&&a<this.g[0].startTime?this.j:null};
488r.get=function(a){if(0==this.g.length)return null;a-=this.j;return 0>a||a>=this.g.length?null:this.g[a]};r.offset=function(a){if(!this.o)for(var b=t(this.g),c=b.next();!c.done;c=b.next())c.value.offset(a)};r.Jd=function(a){if(!this.o&&a.length){var b=Math.round(1E3*a[0].startTime)/1E3;this.g=this.g.filter(function(c){return Math.round(1E3*c.startTime)/1E3<b});this.g.push.apply(this.g,w(a))}}; 489r.Rc=function(a,b){var c=this;a=a.filter(function(d){return d.endTime>b&&(0==c.g.length||d.endTime>c.g[0].startTime)});this.Jd(a);this.Za(b)};r.Za=function(a){if(!this.o){var b=this.g.length;this.g=this.g.filter(function(c){return c.endTime>a});this.j+=b-this.g.length}}; 490r.Yb=function(a,b,c){c=void 0===c?!1:c;if(!this.o){for(;this.g.length;)if(this.g[this.g.length-1].startTime>=b)this.g.pop();else break;for(;this.g.length;)if(this.g[0].endTime<=a)this.g.shift(),c||this.j++;else break;0!=this.g.length&&(a=this.g[this.g.length-1],b=new Ph(a.startTime,b,a.F,a.Oa,a.sa,a.h,a.timestampOffset,a.appendWindowStart,a.appendWindowEnd,a.i,a.tilesLayout,a.C,a.g,a.status,a.aes128Key),b.mimeType=a.mimeType,b.codecs=a.codecs,b.l=a.l,this.g[this.g.length-1]=b)}}; 491r.Rd=function(a,b){var c=this;this.o||(this.m&&this.m.stop(),this.m=new yd(function(){var d=b();d?c.g.push.apply(c.g,w(d)):(c.m.stop(),c.m=null)}),this.m.Pa(a))};Qj.prototype[Symbol.iterator]=function(){return this.Lb(0)}; 492Qj.prototype.Lb=function(a){var b=this.find(a);if(null==b)return null;b--;var c=this.get(b+1),d=-1;if(c&&0<c.i.length)for(var e=c.i.length-1;0<=e;--e){var f=c.i[e];if(a>=f.startTime&&a<f.endTime){for(;e&&!f.m;)e--,f=c.i[e];if(!f.m)return Sa("No independent partial segment found!"),null;b++;d=e-1;break}}return new Rj(this,b,d)};function Sj(a,b,c){a=new Ph(a,a+b,function(){return c},0,null,null,a,a,a+b);return new Qj([a])}P("shaka.media.SegmentIndex",Qj);Qj.forSingleSegment=Sj; 493Qj.prototype.getIteratorForTime=Qj.prototype.Lb;Qj.prototype.updateEvery=Qj.prototype.Rd;Qj.prototype.fit=Qj.prototype.Yb;Qj.prototype.evict=Qj.prototype.Za;Qj.prototype.mergeAndEvict=Qj.prototype.Rc;Qj.prototype.offset=Qj.prototype.offset;Qj.prototype.get=Qj.prototype.get;Qj.prototype.find=Qj.prototype.find;Qj.prototype.markImmutable=Qj.prototype.mh;Qj.prototype.release=Qj.prototype.release;function Rj(a,b,c){this.i=a;this.g=b;this.h=c}Rj.prototype.vg=function(){return this.g}; 494Rj.prototype.current=function(){var a=this.i.get(this.g);a&&0<a.i.length&&a.u&&this.h>=a.i.length&&(this.g++,this.h=0,a=this.i.get(this.g));return a&&0<a.i.length?a.i[this.h]:a};Rj.prototype.next=function(){var a=this.i.get(this.g);a&&0<a.i.length?(this.h++,a.u&&this.h==a.i.length&&(this.g++,this.h=0)):(this.g++,this.h=0);a=this.current();return{value:a,done:!a}};P("shaka.media.SegmentIterator",Rj);Rj.prototype.next=Rj.prototype.next;Rj.prototype.current=Rj.prototype.current; 495Rj.prototype.currentPosition=Rj.prototype.vg;function Tj(){Qj.call(this,[]);this.h=[]}na(Tj,Qj);r=Tj.prototype;r.clone=function(){var a=new Tj;a.h=this.h.slice();return a};r.release=function(){for(var a=t(this.h),b=a.next();!b.done;b=a.next())b.value.release();this.h=[]};r.Zb=function(a){for(var b=t(this.h),c=b.next();!c.done;c=b.next())c.value.Zb(a)};r.find=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.find(a);if(null!=e)return e+b;b+=d.j+d.mb()}return null}; 496r.get=function(a){for(var b=0,c=t(this.h),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.get(a-b);if(e)return e;b+=d.j+d.mb()}return null};r.offset=function(){};r.Jd=function(){};r.Za=function(){};r.Rc=function(){};r.Yb=function(){};r.Rd=function(){};P("shaka.media.MetaSegmentIndex",Tj);Tj.prototype.updateEvery=Tj.prototype.Rd;Tj.prototype.fit=Tj.prototype.Yb;Tj.prototype.mergeAndEvict=Tj.prototype.Rc;Tj.prototype.evict=Tj.prototype.Za;Tj.prototype.merge=Tj.prototype.Jd;Tj.prototype.offset=Tj.prototype.offset; 497Tj.prototype.get=Tj.prototype.get;Tj.prototype.find=Tj.prototype.find;Tj.prototype.forEachTopLevelReference=Tj.prototype.Zb;Tj.prototype.release=Tj.prototype.release;function Uj(a){var b=this;this.g=a;this.j=!1;this.i=this.g.xd();this.h=new yd(function(){b.g.Qf(.25*b.i)})}Uj.prototype.release=function(){this.set(this.ac());this.h&&(this.h.stop(),this.h=null);this.g=null};Uj.prototype.set=function(a){this.i=a;Vj(this)};Uj.prototype.ac=function(){return this.g.ac()};function Vj(a){a.h.stop();var b=a.j?0:a.i;if(0<=b)try{a.g.xd()!=b&&a.g.cf(b);return}catch(c){}a.h.Pa(.25);0!=a.g.xd()&&a.g.cf(0)};function Wj(a){var b=this;this.h=a;this.g=new Set;this.i=(new yd(function(){Xj(b,!1)})).Pa(.25)}Wj.prototype.release=function(){this.i.stop();for(var a=t(this.g),b=a.next();!b.done;b=a.next())b.value.release();this.g.clear()};function Xj(a,b){for(var c=t(a.g),d=c.next();!d.done;d=c.next())d.value.j(a.h.currentTime,b)};function Yj(a){tf.call(this);this.g=new Map;this.h=a}na(Yj,tf);Yj.prototype.release=function(){this.g.clear();tf.prototype.release.call(this)};function Zj(a,b){var c=a.g.get(b);c||(c={Uc:[],wf:null,contentType:b},a.g.set(b,c));return c}function bk(a,b,c){var d=Zj(a,b.contentType);ck(a,d);a={Ne:b,position:c};d=d.Uc;b=d.findIndex(function(e){return e.position>=c});0<=b?d.splice(b,d[b].position==c?1:0,a):d.push(a)} 498Yj.prototype.j=function(a){for(var b=t(this.g.values()),c=b.next();!c.done;c=b.next()){c=c.value;a:{var d=c.Uc;for(var e=d.length-1;0<=e;e--){var f=d[e];if(f.position<=a){d=f.Ne;break a}}d=null}if(e=d)e=c.wf,e=!(e===d||e&&d&&e.bandwidth==d.bandwidth&&e.audioSamplingRate==d.audioSamplingRate&&e.codecs==d.codecs&&e.contentType==d.contentType&&e.frameRate==d.frameRate&&e.height==d.height&&e.mimeType==d.mimeType&&e.channelsCount==d.channelsCount&&e.pixelAspectRatio==d.pixelAspectRatio&&e.width==d.width); 499if(e)a:{e=a;f=d.contentType;if((f=this.h()[f])&&0<f.length){var g=f[f.length-1].end;if(e>=f[0].start&&e<g){e=!0;break a}}e=!1}e&&(c.wf=d,JSON.stringify(d),c=new sf("qualitychange",new Map([["quality",d],["position",a]])),this.dispatchEvent(c))}};function ck(a,b){if((a=a.h()[b.contentType])&&0<a.length){var c=a[0].start,d=a[a.length-1].end,e=b.Uc;b.Uc=e.filter(function(f,g){return f.position<=c&&g+1<e.length&&e[g+1].position<=c||f.position>=d?!1:!0})}else b.Uc=[]};function dk(a){tf.call(this);var b=this;this.g=new Set;this.i=a;this.h=(new yd(function(){for(var c=b.i(),d=t(b.g),e=d.next();!e.done;e=d.next())e=e.value,e.endTime<c.start&&(b.g.delete(e),e=new sf("regionremove",new Map([["region",e]])),b.dispatchEvent(e))})).Pa(2)}na(dk,tf);dk.prototype.release=function(){this.g.clear();this.h.stop();tf.prototype.release.call(this)};function ek(a,b){tf.call(this);var c=this;this.i=a;this.l=b;this.g=new Map;this.m=[{Vb:null,Ub:fk,Nb:function(d,e){return gk(c,"enter",d,e)}},{Vb:hk,Ub:fk,Nb:function(d,e){return gk(c,"enter",d,e)}},{Vb:ik,Ub:fk,Nb:function(d,e){return gk(c,"enter",d,e)}},{Vb:fk,Ub:hk,Nb:function(d,e){return gk(c,"exit",d,e)}},{Vb:fk,Ub:ik,Nb:function(d,e){return gk(c,"exit",d,e)}},{Vb:hk,Ub:ik,Nb:function(d,e){return gk(c,"skip",d,e)}},{Vb:ik,Ub:hk,Nb:function(d,e){return gk(c,"skip",d,e)}}];this.h=new ab;this.h.D(this.i, 500"regionremove",function(d){c.g.delete(d.region)})}na(ek,tf);ek.prototype.release=function(){this.i=null;this.g.clear();this.h.release();this.h=null;tf.prototype.release.call(this)};ek.prototype.j=function(a,b){if(!this.l||0!=a){this.l=!1;for(var c=t(this.i.g),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.g.get(d),f=a<d.startTime?hk:a>d.endTime?ik:fk;this.g.set(d,f);for(var g=t(this.m),h=g.next();!h.done;
500h=g.next())h=h.value,h.Vb==e&&h.Ub==f&&h.Nb(d,b)}}}; 501function gk(a,b,c,d){b=new sf(b,new Map([["region",c],["seeking",d]]));a.dispatchEvent(b)}var hk=1,fk=2,ik=3;function jk(a,b,c){this.i=a;this.h=b;this.j=0;this.l=c;this.g=new Map}function kk(a,b,c){c=void 0===c?!1:c;if(a.h.segmentIndex){var d=a.h.segmentIndex.Lb(Math.max(b.startTime,a.j));if(d){var e=b;c&&(e=d.next().value)&&e.startTime==b.startTime&&e.endTime==b.endTime&&(e=null);for(;a.g.size<a.i&&null!=e;){b=!0;e.o&&null!=e.sa&&(b=!1);2==e.Mc()&&(b=!1);b&&!a.g.has(e)&&(b=new lk(a.l),mk(b,e,a.h),a.g.set(e,b));a.j=e.startTime;if(a.h.fastSwitching&&e.Tc&&e.Gd)break;e=d.next().value}}}} 502function nk(a,b){if(a.h.segmentIndex&&a.g.size<a.i&&!a.g.has(b)){var c=new lk(a.l);mk(c,b,a.h);a.g.set(b,c)}}function ok(a){if(0!==a.g.size){for(var b=t(a.g.keys()),c=b.next();!c.done;c=b.next())(c=c.value)&&pk(a,c);a.j=0}}function qk(a,b){b&&b!==a.h&&(ok(a),a.h=b)}function pk(a,b){var c=a.g.get(b);a.g.delete(b);c&&c.abort()}function lk(a){this.i=a;this.g=this.h=null} 503function mk(a,b,c){var d=new Uint8Array(0);a.g=a.i(b,c,function(e){return J(function(f){if(1==f.g)return 0<d.byteLength?d=sg(d,e):d=e,a.h?C(f,a.h(d),3):f.A(0);d=new Uint8Array(0);E(f)})})}lk.prototype.abort=function(){this.g&&this.g.abort()};function rk(a,b,c,d,e){a=Af(a,d,e);if(0!=b||null!=c)a.headers.Range=c?"bytes="+b+"-"+c:"bytes="+b+"-";return a};function sk(a,b){var c=this;this.g=b;this.m=a;this.h=null;this.u=1;this.o=this.j=null;this.F=0;this.C=!1;this.i=new Map;this.B=!1;this.G=null;this.s=!1;this.l=new Kf(function(){return tk(c)});this.H=Date.now()/1E3}r=sk.prototype;r.destroy=function(){return this.l.destroy()};function tk(a){var b,c,d,e;return J(function(f){if(1==f.g){b=[];c=t(a.i.values());for(d=c.next();!d.done;d=c.next())e=d.value,uk(e),b.push(vk(e));return C(f,Promise.all(b),2)}a.i.clear();a.g=null;a.m=null;a.h=null;E(f)})} 504r.configure=function(a){this.h=a;this.G=new gf({maxAttempts:Math.max(a.retryParameters.maxAttempts,2),baseDelay:a.retryParameters.baseDelay,backoffFactor:a.retryParameters.backoffFactor,fuzzFactor:a.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0);for(var b=t(this.i.keys()),c=b.next();!c.done;c=b.next())if(c=this.i.get(c.value),c.oa){var d=c.oa,e=a.segmentPrefetchLimit;d.i=e;for(var f=Array.from(d.g.keys());f.length>e;){var g=f.pop();g&&pk(d,g)}0<a.segmentPrefetchLimit|| 505(c.oa=null)}else 0<a.segmentPrefetchLimit&&(c.oa=wk(this,c.stream))};r.start=function(){var a=this;return J(function(b){if(1==b.g)return C(b,xk(a),2);Lf(a.l);a.B=!0;E(b)})}; 506function yk(a,b){var c,d,e,f,g,h,k;J(function(l){switch(l.g){case 1:return c=Jc,a.F++,d=a.F,ra(l,2),C(l,jj(a.g.S,c.ha),4);case 4:ta(l,3);break;case 2:if(e=ua(l),a.g)a.g.onError(e);case 3:f=Lc(b.mimeType,b.codecs),Ti(a.g.S,f,a.m.sequenceMode,b.external),g=a.g.S.F,(h=g.isTextVisible()||a.h.alwaysStreamText)&&a.F==d&&(k=zk(a,b),a.i.set(c.ha,k),Ak(a,k,0)),E(l)}})}function Bk(a){var b=a.i.get(Ic);b&&(uk(b),vk(b).catch(function(){}),a.i.delete(Ic));a.o=null} 507function Ck(a,b){var c=a.i.get("video");if(c){var d=c.stream;if(d)if(b)(b=d.trickModeVideo)&&!c.Sb&&(Dk(a,b,!1,0,!1),c.Sb=d);else if(d=c.Sb)c.Sb=null,Dk(a,d,!0,0,!1)}}function Ek(a,b,c,d,e,f){c=void 0===c?!1:c;d=void 0===d?0:d;e=void 0===e?!1:e;f=void 0===f?!1:f;a.j=b;a.B&&(b.video&&Dk(a,b.video,c,d,e,f),b.audio&&Dk(a,b.audio,c,d,e,f))}function Fk(a,b){J(function(c){if(1==c.g)return a.o=b,a.B?b.segmentIndex?c.A(2):C(c,b.createSegmentIndex(),2):c.return();Dk(a,b,!0,0,!1);E(c)})} 508function Dk(a,b,c,d,e,f){var g=a.i.get(b.type);g||b.type!=Ic?g&&(g.Sb&&(b.trickModeVideo?(g.Sb=b,b=b.trickModeVideo):g.Sb=null),g.stream!=b||e)&&(g.oa&&qk(g.oa,b),b.type==Ic&&(e=Lc(b.mimeType,b.codecs),Ti(a.g.S,e,a.m.sequenceMode,b.external)),g.stream.closeSegmentIndex&&g.stream.closeSegmentIndex(),g.stream=b,g.X=null,g.pf=!!f,c&&(g.Fc?g.Sd=!0:g.Ea?(g.Db=!0,g.pd=d,g.Sd=!0):(uk(g),Gk(a,g,!0,d).catch(function(h){if(a.g)a.g.onError(h)}))),Hk(a,g).catch(function(h){if(a.g)a.g.onError(h)})):yk(a,b)} 509function Hk(a,b){var c,d;return J(function(e){if(1==e.g){if(!b.Ma)return e.return();c=b.stream;d=b.Ma;return c.segmentIndex?e.A(2):C(e,c.createSegmentIndex(),2)}if(b.Ma!=d||b.stream!=c)return e.return();var f=a.g.wd();var g=Zi(a.g.S,b.type),h=b.stream.segmentIndex.find(b.Ba?b.Ba.endTime:f),k=null==h?null:b.stream.segmentIndex.get(h);h=k?k.sa?k.sa-k.Oa:null:null;k&&!h&&(h=(k.endTime-k.getStartTime())*(b.stream.bandwidth||0)/8);h?((k=k.h)&&(h+=(k.sa?k.sa-k.Oa:null)||0),k=a.g.getBandwidthEstimate(), 510f=8*h/k<(g||0)-f-Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal)||b.Ma.h.g>h?!0:!1):f=!1;f&&b.Ma.abort();E(e)})} 511r.Xc=function(){if(this.g)for(var a=this.g.wd(),b=t(this.i.keys()),c=b.next();!c.done;c=b.next()){var d=c.value;c=this.i.get(d);var e=null;
511c.X&&(e=c.X.current());if(!e||e.startTime>a||e.endTime<a)c.X=null;e=this.g.S;e.B?e=!1:d==Ic?(e=e.h,e=null==e.g||null==e.h?!1:a>=e.g&&a<e.h):(e=Yi(e,d),e=Uh(e,a));e||((null!=Zi(this.g.S,d)||c.Ea)&&Ik(this,c),c.Ma&&(c.Ma.abort(),c.Ma=null),d===Ic&&(d=this.g.S,d.H&&d.H.g()),c.Xc=!0)}}; 512function Ik(a,b){b.Fc||b.Db||(b.Ea?(b.Db=!0,b.pd=0):null==Xi(a.g.S,b.type)?null==b.gb&&Ak(a,b,0):(uk(b),Gk(a,b,!1,0).catch(function(c){if(a.g)a.g.onError(c)})))} 513function xk(a){var b,c,d,e,f,g,h,k,l;return J(function(m){if(1==m.g){b=Jc;if(!a.j)throw new Q(2,5,5006);c=new Map;d=new Set;a.j.audio&&(c.set(b.P,a.j.audio),d.add(a.j.audio));a.j.video&&(c.set(b.$,a.j.video),d.add(a.j.video));a.o&&(c.set(b.ha,a.o),d.add(a.o));e=a.g.S;return C(m,e.init(c,a.m.sequenceMode,a.m.type,a.m.ignoreManifestTimestampsInSegmentsMode),2)}Lf(a.l);a.updateDuration();f=t(c.keys());for(g=f.next();!g.done;g=f.next())h=g.value,k=c.get(h),a.i.has(h)||(l=zk(a,k),a.i.set(h,l),Ak(a,l,0)); 514E(m)})}function zk(a,b){return{stream:b,type:b.type,X:null,oa:wk(a,b),Ba:null,zb:null,Ie:null,Ge:null,Fe:null,Sb:null,endOfStream:!1,Ea:!1,gb:null,Db:!1,pd:0,Sd:!1,Fc:!1,Xc:!0,We:!1,Oc:!1,Ma:null}}function wk(a,b){return"video"!==b.type&&"audio"!==b.type?null:0<a.h.segmentPrefetchLimit?new jk(a.h.segmentPrefetchLimit,b,function(c,d,e){return Jk(a,c,d,e)}):null}r.updateDuration=function(){var a=this.m.presentationTimeline.getDuration();Infinity>a?this.g.S.fb(a):this.g.S.fb(Math.pow(2,32))}; 515function Kk(a,b){var c,d,e,f,g;return J(function(h){switch(h.g){case 1:Lf(a.l);if(b.Ea||null==b.gb||b.Fc)return h.return();b.gb=null;if(!b.Db){h.A(2);break}return C(h,Gk(a,b,b.Sd,b.pd),3);case 3:return h.return();case 2:if(b.stream.segmentIndex){h.A(4);break}c=b.stream;return C(h,b.stream.createSegmentIndex(),5);case 5:if(c!=b.stream)return c.closeSegmentIndex&&c.closeSegmentIndex(),b.Ea||b.gb||Ak(a,b,0),h.return();case 4:ra(h,6);d=Lk(a,b);null!=d&&(Ak(a,b,d),b.Oc=!1);ta(h,7);break;case 6:return e= 516ua(h),C(h,Mk(a,b,e),8);case 8:return h.return();case 7:f=Array.from(a.i.values());if(!a.B||!f.every(function(k){return k.endOfStream})){h.A(0);break}return C(h,a.g.S.endOfStream(),10);case 10:Lf(a.l),g=a.g.S.getDuration(),0!=g&&g<a.m.presentationTimeline.getDuration()&&a.m.presentationTimeline.fb(g),E(h)}})} 517function Lk(a,b){if(Nk(b))return gj(a.g.S,b.stream.originalId||""),null;b.type==Ic&&hj(a.g.S);if(!a.g.S.fa&&b.type!=Ic)return a.h.updateIntervalSeconds/2;var c=a.g.wd(),d=b.Ba?b.Ba.endTime:c,e=$i(a.g.S,b.type,c),f=Math.max(1,Math.max(a.m.minBufferTime||0,a.h.rebufferingGoal,a.h.bufferingGoal)*a.u),g=a.m.presentationTimeline.getDuration()-d,h=Zi(a.g.S,b.type);if(1E-6>g&&h)return b.endOfStream=!0,"video"==b.type&&(a=a.i.get(Ic))&&Nk(a)&&(a.endOfStream=!0),null;b.endOfStream=!1;if(e>=f)return a.h.updateIntervalSeconds/ 5182;e=Ok(a,b,c,h);if(!e)return a.h.updateIntervalSeconds;f=Infinity;g=Array.from(a.i.values());g=t(g);for(h=g.next();!h.done;h=g.next())h=h.value,Nk(h)||h.X&&!h.X.current()||(f=Math.min(f,h.Ba?h.Ba.endTime:c));if(d>=f+a.m.presentationTimeline.g)return a.h.updateIntervalSeconds;b.oa&&b.X&&(d=e.h,!d||b.Ba&&Oh(d,b.zb)||nk(b.oa,d),kk(b.oa,e));Pk(a,b,c,e).catch(function(){});return null} 519function Ok(a,b,c,d){if(b.X)return b.X.current();if(b.Ba||d)return b.X=b.stream.segmentIndex.Lb(b.Ba?b.Ba.endTime:d),b.X&&b.X.next().value;a=a.h.inaccurateManifestTolerance;d=Math.max(c-a,0);var e=null;a&&(b.X=b.stream.segmentIndex.Lb(d),e=b.X&&b.X.next().value);e||(b.X=b.stream.segmentIndex.Lb(c),e=b.X&&b.X.next().value);return e} 520function Pk(a,b,c,d){var e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B;return J(function(A){switch(A.g){case 1:e=Jc;f=b.stream;g=b.X;b.Ea=!0;ra(A,2);if(2==d.Mc())throw new Q(1,1,1011);return C(A,Qk(a,b,d),4);case 4:Lf(a.l);if(a.s)return A.return();h="video/mp4"==f.mimeType||"audio/mp4"==f.mimeType;k=window.ReadableStream;if(a.h.lowLatencyMode&&k&&h&&("HLS"!=a.m.type||d.s))return n=new Uint8Array(0),p=q=!1,v=function(D){var F,K,H,I;return J(function(G){switch(G.g){case 1:if(q)return G.return();p=!0;Lf(a.l);if(a.s)return G.return(); 521ra(G,2);n=Rk(n,D);F=!1;K=0;(new bg).box("mdat",function(M){K=M.size+M.start;F=!0}).parse(n,!1,!0);if(!F){G.A(4);break}H=n.subarray(0,K);n=n.subarray(K);return C(G,Sk(a,b,c,f,d,H,!0),5);case 5:b.oa&&b.X&&kk(b.oa,d,!0);case 4:ta(G,0);break;case 2:u=I=ua(G),E(G)}})},C(A,Tk(a,b,d,v),9);l=Tk(a,b,d);return C(A,l,7);case 7:m=A.h;Lf(a.l);if(a.s)return A.return();Lf(a.l);return b.Db?(b.Ea=!1,Ak(a,b,0),A.return()):C(A,Sk(a,b,c,f,d,m),6);case 9:x=A.h;if(u)throw u;if(p){A.A(10);break}q=!0;Lf(a.l);return a.s? 522A.return():b.Db?(b.Ea=!1,Ak(a,b,0),A.return()):C(A,Sk(a,b,c,f,d,x),10);case 10:b.oa&&b.X&&kk(b.oa,d,!0);case 6:Lf(a.l);if(a.s)return A.return();b.Ba=d;g.next();b.Ea=!1;b.We=!1;z=a.g.S.lb();y=z[b.type];Wa(JSON.stringify(y));b.Db||a.g.Se(d,b.stream);Ak(a,b,0);ta(A,0);break;case 2:B=ua(A);Lf(a.l,B);if(a.s)return A.return();b.Ea=!1;if(7001==B.code)b.Ea=!1,uk(b),Ak(a,b,0),A.A(0);else if(b.type==e.ha&&a.h.ignoreTextStreamFailures)a.i.delete(e.ha),A.A(0);else if(3017==B.code)Uk(a,b,B),A.A(0);else return b.Oc=
523!0,B.severity=2,C(A,Mk(a,b,B),0)}})}function Vk(a,b,c){var d,e,f,g;return J(function(h){if(1==h.g)return d=b,d.cryptoKey?h.A(2):C(h,d.fetchKey(),3);e=d.iv;if(!e)for(e=ob(new ArrayBuffer(16)),f=d.firstMediaSequenceNumber+c,g=e.byteLength-1;0<=g;g--)e[g]=f&255,f>>=8;return h.return(window.crypto.subtle.decrypt({name:"AES-CBC",iv:e},d.cryptoKey,a))})}function Rk(a,b){var c=new Uint8Array(a.length+b.length);c.set(a);c.set(b,a.length);return c} 524function Uk(a,b,c){if(!Array.from(a.i.values()).some(function(e){return e!=b&&e.We})){if(0<a.h.maxDisabledTime&&a.g.qd(b.stream,a.h.maxDisabledTime))return;var d=Math.round(100*a.u);if(20<d)a.u-=.2;else if(4<d)a.u-=.04;else{b.Oc=!0;a.s=!0;a.g.onError(c);return}b.We=!0}Ak(a,b,4)} 525function Qk(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v;return J(function(x){switch(x.g){case 1:d=Jc;e=[];f=Math.max(0,c.appendWindowStart-.1);g=c.appendWindowEnd+.01;h=Xc(b.stream.codecs);k=Yc(b.stream.mimeType);l=c.timestampOffset;if(l==b.Ie&&f==b.Ge&&g==b.Fe&&h==b.He&&k==b.Mf){x.A(2);break}m=b.He&&b.Mf&&tj(a.g.S,b.type,k,h);if(!m){x.A(3);break}n=null;b.type===d.$?n=a.i.get(d.P):b.type===d.P&&(n=a.i.get(d.$));if(!n){x.A(3);break}return C(x,vk(n).catch(function(){}),5);case 5:n.zb=null,Ik(a,n);case 3:return q= 526function(){var z,y,B;return J(function(A){if(1==A.g)return z=new Map,a.j.audio&&z.set(d.P,a.j.audio),a.j.video&&z.set(d.$,a.j.video),ra(A,2),b.Ge=f,b.Fe=g,b.He=h,b.Mf=k,b.Ie=l,y=a.m.sequenceMode||"HLS"==a.m.type,C(A,kj(a.g.S,b.type,l,f,g,y,c.mimeType||b.stream.mimeType,c.codecs||b.stream.codecs,z),4);if(2!=A.g)return ta(A,0);B=ua(A);b.Ge=null;b.Fe=null;b.He=null;b.Ie=null;throw B;})},C(x,q(),2);case 2:return Oh(c.h,b.zb)||(b.zb=c.h,c.m&&c.h&&(p=Tk(a,b,c.h),u=function(){var z,y,B,A,D,F;return J(function(K){switch(K.g){case 1:return ra(K, 5272),C(K,p,4);case 4:return z=K.h,Lf(a.l),y=null,B=new Map,A=new bg,A.box("moov",gg).box("trak",gg).box("mdia",gg).O("mdhd",function(H){y=gi(H.reader,H.version).timescale}).box("hdlr",function(H){H=H.reader;H.skip(8);H=H.pb(4);var I=String.fromCharCode(H[0]);I+=String.fromCharCode(H[1]);I+=String.fromCharCode(H[2]);I+=String.fromCharCode(H[3]);switch(I){case "soun":B.set(d.P,y);break;case "vide":B.set(d.$,y)}y=null}).parse(z),B.has(b.type)?c.h.timescale=B.get(b.type):null!=y&&(c.h.timescale=y),D=b.stream.closedCaptions&& 5280<b.stream.closedCaptions.size,C(K,a.g.rf(b.type,z),5);case 5:return C(K,bj(a.g.S,b.type,z,null,b.stream,D),6);case 6:ta(K,0);break;case 2:throw F=ua(K),b.zb=null,F;}})},a.g.oh(c.startTime,c.h),e.push(u()))),a.m.sequenceMode&&(v=b.Ba?b.Ba.l:null,c.l!=v&&e.push(mj(a.g.S,b.type,c.startTime))),C(x,Promise.all(e),0)}})} 529function Sk(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h,k,l,m,n,q;return J(function(p){switch(p.g){case 1:h=d.closedCaptions&&0<d.closedCaptions.size;l=null!=d.emsgSchemeIdUris&&0<d.emsgSchemeIdUris.length||a.h.dispatchAllEmsgBoxes;m=a.h.parsePrftBox&&!a.C;if(l||m)k=new bg;l&&k.O("emsg",function(u){var v=d.emsgSchemeIdUris;if(0===u.version){var x=u.reader.Vc();var z=u.reader.Vc();var y=u.reader.M();var B=u.reader.M();var A=u.reader.M();var D=u.reader.M();var F=e.startTime+B/y}else y=u.reader.M(),F=u.reader.lc()/ 530y+e.timestampOffset,B=F-e.startTime,A=u.reader.M(),D=u.reader.M(),x=u.reader.Vc(),z=u.reader.Vc();u=u.reader.pb(u.reader.getLength()-u.reader.na());if(v&&v.includes(x)||a.h.dispatchAllEmsgBoxes)"urn:mpeg:dash:event:2012"==x?a.g.ph():(v=(new Map).set("detail",{startTime:F,endTime:F+A/y,schemeIdUri:x,value:z,timescale:y,presentationTimeDelta:B,eventDuration:A,id:D,messageData:u}),v=new sf("emsg",v),v.cancelable=!0,a.g.onEvent(v),v.defaultPrevented||"https://aomedia.org/emsg/ID3"!=x&&"https://developer.apple.com/streaming/emsg-id3"!= 531x||(x=ci(u),x.length&&e&&a.g.qh([{cueTime:e.startTime,data:u,frames:x,dts:e.startTime,pts:e.startTime}],0,e.endTime)))});m&&k.O("prft",function(u){if(!a.C&&e.h.timescale){var v=u.reader,x=u.version;v.M();u=v.M();var z=v.M();u=1E3*u+z/Math.pow(2,32)*1E3;0===x?v=v.M():(x=v.M(),v=v.M(),v=x*Math.pow(2,32)+v);u=(new Date((new Date(Date.UTC(1900,0,1,0,0,0))).getTime()+u)).getTime();v=(new Map).set("detail",{wallClockTime:u,programStartDate:new Date(u-v/e.h.timescale*1E3)});v=new sf("prft",v);a.g.onEvent(v); 532a.C=!0}});(l||m)&&k.parse(f);return C(p,Wk(a,b,c),2);case 2:return Lf(a.l),n=b.Xc,b.Xc=!1,q=b.pf,b.pf=!1,C(p,a.g.rf(b.type,f),3);case 3:return C(p,bj(a.g.S,b.type,f,e,d,h,n,q,g),4);case 4:Lf(a.l),E(p)}})}function Wk(a,b,c){var d,e,f,g;return J(function(h){if(1==h.g){d=Math.max(a.h.bufferBehind,a.m.presentationTimeline.g);e=Xi(a.g.S,b.type);if(null==e)return h.return();f=c-e;g=f-d;return 1>=g?h.return():C(h,a.g.S.remove(b.type,e,e+g),2)}Lf(a.l);E(h)})} 533function Nk(a){return a&&a.type==Ic&&("application/cea-608"==a.stream.mimeType||"application/cea-708"==a.stream.mimeType)} 534function Tk(a,b,c,d){var e,f,g,h,k;return J(function(l){switch(l.g){case 1:if(c instanceof Nh&&(e=c.g))return l.return(e);f=null;if(b.oa){var m=b.oa;if(m.g.has(c)){var n=m.g.get(c);d&&(n.h=d);m.g.delete(c);f=n.g}else f=null}f||(f=Jk(a,c,b.stream,d));g=0;b.X&&(g=b.X.g);b.Ma=f;return C(l,f.promise,2);case 2:h=l.h;b.Ma=null;k=h.data;if(!c.aes128Key){l.A(3);break}return C(l,Vk(k,c.aes128Key,g),4);case 4:k=l.h;case 3:return l.return(k)}})} 535function Jk(a,b,c,d){var e=b instanceof Ph?b:void 0,f=e?1:0;b=rk(b.Z(),b.Oa,b.sa,a.h.retryParameters,d);
vendor: 7,838 bytes, lines 535-555
535return a.g.Qb.request(If,b,{type:f,stream:c,segment:e})} 536function Gk(a,b,c,d){var e,f;return J(function(g){if(1==g.g)return b.Db=!1,b.Sd=!1,b.pd=0,b.Fc=!0,b.Ba=null,b.zb=null,b.X=null,b.oa&&ok(b.oa),d?(e=a.g.wd(),f=a.g.S.getDuration(),C(g,a.g.S.remove(b.type,e+d,f),3)):C(g,jj(a.g.S,b.type),4);if(3!=g.g)return Lf(a.l),c?C(g,a.g.S.flush(b.type),3):g.A(3);Lf(a.l);b.Fc=!1;b.endOfStream=!1;b.Ea||b.gb||Ak(a,b,0);E(g)})} 537function Ak(a,b,c){var d=b.type;if(d!=Ic||a.i.has(d))b.gb=(new xd(function(){var e;return J(function(f){if(1==f.g)return ra(f,2),C(f,Kk(a,b),4);if(2!=f.g)return ta(f,0);e=ua(f);if(a.g)a.g.onError(e);E(f)})})).V(c)}function uk(a){null!=a.gb&&(a.gb.stop(),a.gb=null)}function vk(a){return J(function(b){return a.Ma?C(b,a.Ma.abort(),0):b.A(0)})} 538function Mk(a,b,c){var d;return J(function(e){if(1==e.g)return C(e,jf(a.G),2);Lf(a.l);d=0===a.h.maxDisabledTime&&1011==c.code?1:a.h.maxDisabledTime;1===c.category&&0<d&&(c.handled=a.g.qd(b.stream,d),c.handled&&(c.severity=1));a.g.onError(c);c.handled||a.h.failureCallback(c);E(e)})} 539function Xk(a){var b,c,d,e,f,g;return J(function(h){if(1==h.g){b=Date.now()/1E3;c=a.h.minTimeBetweenRecoveries;if(!a.h.allowMediaSourceRecoveries||b-a.H<c)return h.return(!1);a.H=b;d=Jc;if(e=a.i.get(d.P))e.zb=null,Ik(a,e),vk(e).catch(function(){});if(f=a.i.get(d.$))f.zb=null,Ik(a,f),vk(f).catch(function(){});g=new Map;a.j.audio&&g.set(d.P,a.j.audio);a.j.video&&g.set(d.$,a.j.video);return C(h,sj(a.g.S,g),2)}return h.return(!0)})};function Yk(a,b,c){var d,e,f,g,h,k,l;return J(function(m){switch(m.g){case 1:var n=(new kc(a)).Da.split("/").pop().split(".");d=1==n.length?"":n.pop().toLowerCase();if(e=Zk[d])return m.return(e);f=0;g=Af([a],c);ra(m,2);g.method="HEAD";return C(m,b.request(f,g).promise,4);case 4:h=m.h;e=h.headers["content-type"];ta(m,3);break;case 2:k=ua(m);if(!k||1002!=k.code&&1001!=k.code){m.A(3);break}g.method="GET";return C(m,b.request(f,g).promise,6);case 6:l=m.h,e=l.headers["content-type"];case 3:return m.return(e? 540e.toLowerCase().split(";").shift():"")}})} 541var Zk={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",ism:"application/vnd.ms-sstr+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav",sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function $k(a,b){if(a.lineBreak)return"\n";if(a.nestedCues.length)return a.nestedCues.map(function(g){return $k(g,a)}).join("");var c=[],d=700<=a.fontWeight,e="italic"==a.fontStyle,f=a.textDecoration.includes("underline");d&&c.push(["b"]);e&&c.push(["i"]);f&&c.push(["u"]);e=a.color;""==e&&b&&(e=b.color);d="";(e=al(e))&&(d+="."+e);e=a.backgroundColor;""==e&&b&&(e=b.backgroundColor);(b=al(e))&&(d+=".bg_"+b);d&&c.push(["c",d]);return c.reduceRight(function(g,h){var k=t(h);h=k.next().value;k=k.next().value; 542return"<"+h+(void 0===k?"":k)+">"+g+"</"+h+">"},a.payload)} 543function al(a){a=a.toLowerCase();var b=a.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);b?a="#"+(parseInt(b[1],10)|256).toString(16).slice(1)+(parseInt(b[2],10)|256).toString(16).slice(1)+(parseInt(b[3],10)|256).toString(16).slice(1):a.startsWith("#")&&7<a.length&&(a=a.slice(0,7));switch(a){case "white":case "#fff":case "#ffffff":return"white";case "lime":case "#0f0":case "#00ff00":return"lime";case "cyan":case "#0ff":case "#00ffff":return"cyan";case "red":case "#f00":case "#ff0000":return"red"; 544case "yellow":case "#ff0":case "#ffff00":return"yellow";case "magenta":case "#f0f":case "#ff00ff":return"magenta";case "blue":case "#00f":case "#0000ff":return"blue";case "black":case "#000":case "#000000":return"black"}return null}function bl(a,b){var c=[];a=t(a);for(var d=a.next();!d.done;d=a.next())if(d=d.value,d.isContainer)c.push.apply(c,w(bl(d.nestedCues,d)));else{var e=d.clone();e.nestedCues=[];e.payload=$k(d,b);c.push(e)}return c};function cl(a,b){this.g=null;for(var c=t(Array.from(a.textTracks)),d=c.next();!d.done;d=c.next())d=d.value,d.mode="disabled",d.label==b&&(this.g=d);this.g||(this.g=a.addTextTrack("subtitles",b));this.g.mode="hidden"}r=cl.prototype;r.remove=function(a,b){if(!this.g)return!1;dl(this.g,function(c){return c.startTime<b&&c.endTime>a});return!0}; 545r.append=function(a){var b=bl(a),c=[];a=this.g.cues?Array.from(this.g.cues):[];var d={};b=t(b);for(var e=b.next();!e.done;d={Wb:d.Wb},e=b.next())d.Wb=e.value,a.some(function(f){return function(g){return g.startTime==f.Wb.startTime&&g.endTime==f.Wb.endTime&&g.text==f.Wb.payload?!0:!1}}(d))||(e=el(d.Wb))&&c.push(e);a=c.slice().sort(function(f,g){return f.startTime!=g.startTime?f.startTime-g.startTime:f.endTime!=g.endTime?f.endTime-g.startTime:"line"in VTTCue.prototype?c.indexOf(g)-c.indexOf(f):c.indexOf(f)- 546c.indexOf(g)});a=t(a);for(d=a.next();!d.done;d=a.next())this.g.addCue(d.value)};r.destroy=function(){this.g&&(dl(this.g,function(){return!0}),this.g.mode="disabled");this.g=null;return Promise.resolve()};r.isTextVisible=function(){return"showing"==this.g.mode};r.setTextVisibility=function(a){this.g.mode=a?"showing":"hidden"}; 547function el(a){if(a.startTime>=a.endTime)return null;var b=new VTTCue(a.startTime,a.endTime,a.payload);b.lineAlign=a.lineAlign;b.positionAlign=a.positionAlign;a.size&&(b.size=a.size);try{b.align=a.textAlign}catch(c){}"center"==a.textAlign&&"center"!=b.align&&(b.align="middle");"vertical-lr"==a.writingMode?b.vertical="lr":"vertical-rl"==a.writingMode&&(b.vertical="rl");1==a.lineInterpretation&&(b.snapToLines=!1);null!=a.line&&(b.line=a.line);null!=a.position&&(b.position=a.position);return b} 548function dl(a,b){var c=a.mode;a.mode="showing"==c?"showing":"hidden";for(var d=t(Array.from(a.cues)),e=d.next();!e.done;e=d.next())(e=e.value)&&b(e)&&a.removeCue(e);a.mode=c}P("shaka.text.SimpleTextDisplayer",cl);cl.prototype.setTextVisibility=cl.prototype.setTextVisibility;cl.prototype.isTextVisible=cl.prototype.isTextVisible;cl.prototype.destroy=cl.prototype.destroy;cl.prototype.append=cl.prototype.append;cl.prototype.remove=cl.prototype.remove;/* 549 @license 550 Shaka Player 551 Copyright 2023 Google LLC 552 SPDX-License-Identifier: Apache-2.0 553*/ 554function fl(){}r=fl.prototype;r.remove=function(){};r.append=function(){};r.destroy=function(){};r.isTextVisible=function(){return!1};r.setTextVisibility=function(){};P("shaka.text.StubTextDisplayer",fl);fl.prototype.setTextVisibility=fl.prototype.setTextVisibility;fl.prototype.isTextVisible=fl.prototype.isTextVisible;fl.prototype.destroy=fl.prototype.destroy;fl.prototype.append=fl.prototype.append;fl.prototype.remove=fl.prototype.remove;function gl(){}function hl(a){for(;a.firstChild;)a.removeChild(a.firstChild)}P("shaka.util.Dom",gl);gl.removeAllChildren=hl;function il(a,b){var c=this;this.m=!1;this.i=[];this.u=a;this.s=b;this.l=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.s.appendChild(this.g);this.C=(new yd(function(){c.u.paused||jl(c)})).Pa(.25);this.h=new Map;this.j=new ab;this.j.D(document,"fullscreenchange",function(){jl(c,!0)});this.j.D(this.u, 555"seeking",function(){jl(c,!0)});this.j.D(this.u,"resize",function(){var d=c.u,e=d.videoWidth;d=d.videoHeight;e&&d?c.l=e/d:c.l=null});this.o=null;"ResizeObserver"in window&&(this.o=new ResizeObserver(function(){jl(c,!0)}),this.o.observe(this.g));this.B=new Map}r=il.prototype;r.append=function(a){var b=[].concat(w(this.i)),c={};a=t(a);for(var d=a.next();!d.done;c={cd:c.cd},d=a.next())c.cd=d.value,b.some(function(e){return function(f){return Tb(f,e.cd)}}
555(c))||this.i.push(c.cd);jl(this)}; 556r.destroy=function(){if(!this.g)return Promise.resolve();this.s.removeChild(this.g);this.g=null;this.m=!1;this.i=[];this.C&&this.C.stop();this.h.clear();this.j&&(this.j.release(),this.j=null);this.o&&(this.o.disconnect(),this.o=null);return Promise.resolve()};r.remove=function(a,b){if(!this.g)return!1;var c=this.i.length;this.i=this.i.filter(function(d){return d.startTime<a||d.endTime>=b});jl(this,c>this.i.length);return!0};r.isTextVisible=function(){return this.m}; 557r.setTextVisibility=function(a){this.m=a};function kl(a,b){for(;null!=b;){if(b==a.g)return!0;b=b.parentElement}return!1} 558function ll(a,b,c,d,e){var f=!1,g=[],h=[];b=t(b);for(var k=b.next();!k.done;k=b.next()){k=k.value;e.push(k);var l=a.h.get(k),m=k.startTime<=d&&k.endTime>d,n=l?l.kg:null;l&&(g.push(l.ie),l.Rb&&g.push(l.Rb),m||(f=!0,a.h.delete(k),l=null));m&&(h.push(k),l?kl(a,n)||(f=!0):(ml(a,k,e),l=a.h.get(k),n=l.kg,f=!0));0<k.nestedCues.length&&n&&ll(a,k.nestedCues,n,d,e);e.pop()}if(f){d=t(g);for(e=d.next();!e.done;e=d.next())e=e.value,e.parentElement&&e.parentElement.removeChild(e);h.sort(function(q,p){return q.startTime!= 559p.startTime?q.startTime-p.startTime:q.endTime-p.endTime});h=t(h);for(k=h.next();!k.done;k=h.next())d=a.h.get(k.value),d.Rb?(d.Rb.contains(c)&&d.Rb.removeChild(c),c.appendChild(d.Rb),d.Rb.appendChild(d.ie)):c.appendChild(d.ie)}} 560function jl(a,b){if(a.g){var c=a.u.currentTime;if(!a.m||(void 0===b?0:b)){b=t(a.B.values());for(var d=b.next();!d.done;d=b.next())hl(d.value);hl(a.g);a.h.clear();a.B.clear()}if(a.m){b=new Map;d=t(a.h.keys());for(var e=d.next();!e.done;e=d.next())e=e.value,b.set(e,a.h.get(e));ll(a,a.i,a.g,c,[])}}} 561function ml(a,b,c){var d=1<c.length,e=d?"span":"div";b.lineBreak&&(e="br");b.rubyTag&&(e=b.rubyTag);d=!d&&0<b.nestedCues.length;var f=document.createElement(e);"br"!=e&&nl(a,f,b,c,d);c=null;if(b.region&&b.region.id){c=b.region;e=a.l===4/3?2.5:1.9;var g=c.id+"_"+c.width+"x"+c.height+(c.heightUnits==$b?"%":"px")+"-"+c.viewportAnchorX+"x"+c.viewportAnchorY+(c.viewportAnchorUnits==$b?"%":"px");if(a.B.has(g))c=a.B.get(g);else{var h=document.createElement("span"),k=c.heightUnits==$b?"%":"px",l=c.widthUnits== 562$b?"%":"px",m=c.viewportAnchorUnits==$b?"%":"px";h.id="shaka-text-region---"+g;h.classList.add("shaka-text-region");h.style.position="absolute";2===c.heightUnits&&2===c.widthUnits?(h.style.height=5.33*c.height+"%",h.style.width=c.width*e+"%"):(h.style.height=c.height+k,h.style.width=c.width+l);2===c.viewportAnchorUnits?(k=c.viewportAnchorY/75*100,l=c.viewportAnchorX/(a.l===4/3?160:210)*100,k-=c.regionAnchorY*c.height*5.33/100,l-=c.regionAnchorX*c.width*e/100,h.style.top=k+"%",h.style.left=l+"%"): 563(h.style.top=c.viewportAnchorY-c.regionAnchorY*c.height/100+m,h.style.left=c.viewportAnchorX-c.regionAnchorX*c.width/100+m);h.style.display="flex";h.style.flexDirection="column";h.style.alignItems="center";h.style.justifyContent="before"==b.displayAlign?"flex-start":"center"==b.displayAlign?"center":"flex-end";a.B.set(g,h);c=h}}e=f;d&&(e=document.createElement("span"),e.classList.add("shaka-text-wrapper"),e.style.backgroundColor=b.backgroundColor,e.style.lineHeight="normal",f.appendChild(e));a.h.set(b, 564{ie:f,kg:e,Rb:c})}function ol(a){var b=a.direction,c=a.positionAlign;a=a.textAlign;return c!==Gb?c:"left"===a||"start"===a&&b===Ib||"end"===a&&"rtl"===b?"line-left":"right"===a||"start"===a&&"rtl"===b||"end"===a&&b===Ib?"line-right":"center"} 565function nl(a,b,c,d,e){var f=b.style,g=0==c.nestedCues.length,h=1<d.length;f.whiteSpace="pre-wrap";var k=c.payload.replace(/\s+$/g,function(m){return"\u00a0".repeat(m.length)});f.webkitTextStrokeColor=c.textStrokeColor;f.webkitTextStrokeWidth=c.textStrokeWidth;f.color=c.color;f.direction=c.direction;f.opacity=c.opacity;f.paddingLeft=pl(c.linePadding,c,a.s);f.paddingRight=pl(c.linePadding,c,a.s);f.textCombineUpright=c.textCombineUpright;f.textShadow=c.textShadow;if(c.backgroundImage)f.backgroundImage= 566"url('"+c.backgroundImage+"')",f.backgroundRepeat="no-repeat",f.backgroundSize="contain",f.backgroundPosition="center",f.width="100%",f.height="100%";else{if(c.nestedCues.length)var l=b;else l=document.createElement("span"),b.appendChild(l);c.border&&(l.style.border=c.border);!e&&((b=ql(d,function(m){return m.backgroundColor}))?l.style.backgroundColor=b:k&&(l.style.backgroundColor="rgba(0, 0, 0, 0.8)"),b=ql(d,function(m){return m.fontFamily}))&&(l.style.fontFamily=b);k&&(l.textContent=k)}h&&!d[d.length-
vendor: 6,513 bytes, lines 567-581
5671].isContainer?f.display="inline":(f.display="flex",f.flexDirection="column",f.alignItems="center",f.justifyContent="before"==c.displayAlign?"flex-start":"center"==c.displayAlign?"center":"flex-end");g||(f.margin="0");f.fontFamily=c.fontFamily;f.fontWeight=c.fontWeight.toString();f.fontStyle=c.fontStyle;f.letterSpacing=c.letterSpacing;f.fontSize=pl(c.fontSize,c,a.s);d=c.line;null!=d&&(g=c.lineInterpretation,g==Kb&&(g=1,h=16,a.l&&1>a.l&&(h=32),d=0>d?100+d/h*100:d/h*100),1==g&&(f.position="absolute", 568c.writingMode==Jb?(f.width="100%",c.lineAlign==Lb?f.top=d+"%":"end"==c.lineAlign&&(f.bottom=100-d+"%")):"vertical-lr"==c.writingMode?(f.height="100%",c.lineAlign==Lb?f.left=d+"%":"end"==c.lineAlign&&(f.right=100-d+"%")):(f.height="100%",c.lineAlign==Lb?f.right=d+"%":"end"==c.lineAlign&&(f.left=100-d+"%"))));f.lineHeight=c.lineHeight;null!=c.position&&(c.writingMode==Jb?f.paddingLeft=c.position:f.paddingTop=c.position);a=ol(c);"line-left"==a?f.cssFloat="left":"line-right"==a&&(f.cssFloat="right"); 569f.textAlign=c.textAlign;f.textDecoration=c.textDecoration.join(" ");f.writingMode=c.writingMode;"writingMode"in document.documentElement.style&&f.writingMode==c.writingMode||(f.webkitWritingMode=c.writingMode);c.size&&(c.writingMode==Jb?f.width=c.size+"%":f.height=c.size+"%")} 570function pl(a,b,c){var d=(d=(new RegExp(/(\d*\.?\d+)([a-z]+|%+)/)).exec(a))?{value:Number(d[1]),unit:d[2]}:null;if(!d)return a;var e=d.value;switch(d.unit){case "%":return e/100*c.clientHeight/b.cellResolution.rows+"px";case "c":return c.clientHeight*e/b.cellResolution.rows+"px";default:return a}}function ql(a,b){for(var c=a.length-1;0<=c;c--){var d=b(a[c]);if(d||0===d)return d}return null}P("shaka.text.UITextDisplayer",il);il.prototype.setTextVisibility=il.prototype.setTextVisibility; 571il.prototype.isTextVisible=il.prototype.isTextVisible;il.prototype.remove=il.prototype.remove;il.prototype.destroy=il.prototype.destroy;il.prototype.append=il.prototype.append;function rl(a,b){function c(f){for(var g=f,h=t(b),k=h.next();!k.done;k=h.next())k=k.value,k.end&&k.start<f&&(g+=k.end-k.start);f=Math.floor(g/3600);h=Math.floor(g/60%60);k=Math.floor(g%60);g=Math.floor(1E3*g%1E3);return(10>f?"0":"")+f+":"+(10>h?"0":"")+h+":"+(10>k?"0":"")+k+"."+(100>g?10>g?"00":"0":"")+g}var d=bl(a);a="WEBVTT\n\n";d=t(d);for(var e=d.next();!e.done;e=d.next())e=e.value,a+=c(e.startTime)+" --\x3e "+c(e.endTime)+function(f){var g=[];switch(f.textAlign){case "left":g.push("align:left"); 572break;case "right":g.push("align:right");break;case Hb:g.push("align:middle");break;case "start":g.push("align:start");break;case "end":g.push("align:end")}switch(f.writingMode){case "vertical-lr":g.push("vertical:lr");break;case "vertical-rl":g.push("vertical:rl")}return g.length?" "+g.join(" "):""}(e)+"\n",a+=e.payload+"\n\n";return a}P("shaka.text.WebVttGenerator",function(){});function sl(a,b){this.h=a;this.g=b;this.m=void 0;this.i=!1;this.l=!0;this.j=!1}sl.prototype.configure=function(a){this.g=a}; 573function tl(a,b,c){try{if(!a.g.enabled)return b;var d=ul(a);a:{switch(c.toLowerCase()){case "audio/mp4":case "audio/webm":case "audio/ogg":case "audio/mpeg":case "audio/aac":case "audio/flac":case "audio/wav":var e=vl;break a;case "video/webm":case "video/mp4":case "video/mpeg":case "video/mp2t":e=wl;break a;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":e=xl;break a}e=void 0}d.ot=e;d.su= 574!0;var f=yl(d);return zl(b,f)}catch(g){return Ua("CMCD_SRC_ERROR","Could not generate src CMCD data.",g),b}}function ul(a){a.g.sessionId||(a.g.sessionId=window.crypto.randomUUID());return{v:1,sf:a.m,sid:a.g.sessionId,cid:a.g.contentId,mtp:a.h.getBandwidthEstimate()/1E3}} 575function Al(a,b,c){c=void 0===c?{}:c;var d=void 0===d?a.g.useHeaders:d;if(a.g.enabled){Object.assign(c,ul(a));c.pr=a.h.vd();var e=c.ot===Bl||c.ot===wl;a.j&&e&&(c.bs=!0,c.su=!0,a.j=!1);null==c.su&&(c.su=a.l);if(d)a=Cl(c),Object.keys(a).length&&Object.assign(b.headers,a);else{var f=yl(c);f&&(b.uris=b.uris.map(function(g){return zl(g,f)}))}}} 576function Dl(a){if(0===a.type)return El;if(a=a.stream){var b=a.type;if("video"==b)return a.codecs&&a.codecs.includes(",")?wl:Bl;if("audio"==b)return vl;if("text"==b)return"application/mp4"===a.mimeType?Fl:Gl}}function Hl(a,b){b=a.h.lb()[b];if(!b.length)return NaN;var c=a.h.getCurrentTime();return(a=b.find(function(d){return d.start<=c&&d.end>=c}))?1E3*(a.end-c):NaN} 577function Il(a,b){var c=a.h.yb();if(!c.length)return NaN;a=c[0];c=t(c);for(var d=c.next();!d.done;d=c.next())d=d.value,"variant"===d.type&&d.bandwidth>a.bandwidth&&(a=d);switch(b){case Bl:return a.videoBandwidth||NaN;case vl:return a.audioBandwidth||NaN;default:return a.bandwidth}} 578function yl(a){function b(n){return 100*c(n/100)}function c(n){return Math.round(n)}function d(n){return!Number.isNaN(n)&&null!=n&&""!==n&&!1!==n}var e=[],f={br:c,d:c,bl:b,dl:b,mtp:b,nor:function(n){return encodeURIComponent(n)},rtp:b,tb:c},g=Object.keys(a||{}).sort();g=t(g);for(var h=g.next();!h.done;h=g.next()){h=h.value;var k=a[h];if(d(k)&&("v"!==h||1!==k)&&("pr"!=h||1!==k)){var l=f[h];l&&(k=l(k));l=typeof k;var m=void 0;m="string"===l&&"ot"!==h&&"sf"!==h&&"st"!==h?h+"="+JSON.stringify(k):"boolean"=== 579l?h:"symbol"===l?h+"="+k.description:h+"="+k;e.push(m)}}return e.join(",")}function Cl(a){var b=Object.keys(a),c={},d=["Object","Request","Session","Status"],e=[{},{},{},{}],f={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3};b=t(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[null!=f[g]?f[g]:1][g]=a[g];for(a=0;a<e.length;a++)(f=yl(e[a]))&&(c["CMCD-"+d[a]]=f);return c} 580function zl(a,b){if(!b||a.includes("offline:"))return a;a=new kc(a);a.g.set("CMCD",b);return a.toString()}var xl="m",vl="a",Bl="v",wl="av",El="i",Gl="c",Fl="tt";P("shaka.util.CmcdManager.StreamingFormat",{DASH:"d",HLS:"h",mg:"s",OTHER:"o"});function Jl(a){this.h=a;this.g=null}r=Jl.prototype;r.configure=function(a){this.h=a};r.Ef=function(){return this.h.enabled&&this.h.applyMaximumSuggestedBitrate&&this.g&&this.g.has(Kl)?1E3*this.g.get(Kl):null};r.Df=function(){return this.h.enabled&&this.g&&this.g.has(Ll)?1E3*this.g.get(Ll):null};r.Rg=function(){return this.h.enabled&&this.g&&this.g.has(Ml)?this.g.get(Ml):null};r.Sg=function(){return this.h.enabled&&this.g&&this.g.has(Nl)?this.g.get(Nl):null}; 581r.getBandwidthEstimate=function(a){var b=this.Df();if(!b)return a;var c=this.h.estimatedThroughputWeightRatio;return 0<c&&1>=c?a*(1-c)+b*c:a};
581function Ol(a){return a?"false"===a.toLowerCase()?!1:/^[-0-9]/.test(a)?parseInt(a,10):a.replace(/["]+/g,""):!0}P("shaka.util.CmsdManager",Jl);Jl.prototype.getBandwidthEstimate=Jl.prototype.getBandwidthEstimate;Jl.prototype.getRoundTripTime=Jl.prototype.Sg;Jl.prototype.getResponseDelay=Jl.prototype.Rg;Jl.prototype.getEstimatedThroughput=Jl.prototype.Df; 582Jl.prototype.getMaxBitrate=Jl.prototype.Ef;var Ll="etp",Kl="mb",Ml="rd",Nl="rtt";function Pl(){} 583function Ql(a,b,c,d,e){var f=e in d,g=!0,h;for(h in b){var k=e+"."+h,l=f?d[e]:c[h];f||h in c?void 0===b[h]?void 0===l||f?delete a[h]:a[h]=vd(l):l.constructor==Object&&b[h]&&b[h].constructor==Object?(a[h]||(a[h]=vd(l)),k=Ql(a[h],b[h],l,d,k),g=g&&k):typeof b[h]!=typeof l||null==b[h]||"function"!=typeof b[h]&&b[h].constructor!=l.constructor?(Sa("Invalid config, wrong type for "+k),g=!1):("function"==typeof c[h]&&c[h].length!=b[h].length&&Ta("Unexpected number of arguments for "+k),a[h]=b[h]):(Sa("Invalid config, unrecognized key "+ 584k),g=!1)}return g}function Rl(a,b){for(var c={},d=c,e=0,f=0;;){e=a.indexOf(".",e);if(0>e)break;if(0==e||"\\"!=a[e-1])f=a.substring(f,e).replace(/\\\./g,"."),d[f]={},d=d[f],f=e+1;e+=1}d[a.substring(f).replace(/\\\./g,".")]=b;return c}function Sl(a,b){return a&&b}P("shaka.util.ConfigUtils",Pl);Pl.convertToConfigObject=Rl;Pl.mergeConfigObjects=Ql;function Tl(){this.g=null;this.h=[]}function Ul(a,b){return J(function(c){if(1==c.g)return a.g?C(c,new Promise(function(d){return a.h.push(d)}),2):c.A(2);a.g=b;E(c)})}Tl.prototype.release=function(){0<this.h.length?this.h.shift()():this.g=null};function Vl(){}function Wl(a){a=Vf(a);return(new kc(a)).kb}function Xl(a,b,c){function d(h){ub(f).setUint32(g,h.byteLength,!0);g+=4;f.set(ob(h),g);g+=h.byteLength}if(!c||!c.byteLength)throw new Q(2,6,6015);var e;"string"==typeof b?e=Xf(b,!0):e=b;a=Vf(a);a=Xf(a,!0);var f=new Uint8Array(12+a.byteLength+e.byteLength+c.byteLength),g=0;d(a);d(e);d(c);return f}function Yl(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Vf(a).split("skd://").pop();return Xl(a,c,b)} 585function Zl(a,b){2===a&&(b.headers["Content-Type"]="application/octet-stream")}P("shaka.util.FairPlayUtils",Vl);Vl.commonFairPlayResponse=function(a,b){if(2===a){try{var c=Sf(b.data)}catch(e){return}a=!1;c=c.trim();"<ckc>"===c.substr(0,5)&&"</ckc>"===c.substr(-6)&&(c=c.slice(5,-6),a=!0);try{var d=JSON.parse(c);d.ckc&&(c=d.ckc,a=!0);d.CkcMessage&&(c=d.CkcMessage,a=!0);d.License&&(c=d.License,a=!0)}catch(e){}a&&(b.data=rb(pg(c)))}};Vl.expressplayFairPlayRequest=function(a,b){Zl(a,b)}; 586Vl.conaxFairPlayRequest=function(a,b){Zl(a,b)};Vl.ezdrmFairPlayRequest=function(a,b){Zl(a,b)};Vl.verimatrixFairPlayRequest=function(a,b){2===a&&(a=ob(b.body),a=og(a),b.headers["Content-Type"]="application/x-www-form-urlencoded",b.body=Wf("spc="+a))};Vl.expressplayInitDataTransform=function(a,b,c){return Yl(a,b,c)}; 587Vl.conaxInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Vf(a).split("skd://").pop().split("?").shift();c=window.atob(c);var d=new ArrayBuffer(2*c.length);d=tb(d);for(var e=0,f=c.length;e<f;e++)d[e]=c.charCodeAt(e);return Xl(a,d,b)};Vl.ezdrmInitDataTransform=function(a,b,c){if("skd"!==b)return a;b=c.serverCertificate;c=Vf(a).split(";").pop();return Xl(a,c,b)};Vl.verimatrixInitDataTransform=function(a,b,c){return Yl(a,b,c)};Vl.initDataTransform=Xl; 588Vl.defaultGetContentId=Wl;Vl.isFairPlaySupported=function(){var a;return J(function(b){if(1==b.g)return a={initDataTypes:["cenc","sinf","skd"],videoCapabilities:[{contentType:'video/mp4; codecs="avc1.42E01E"'}]},ra(b,2),C(b,navigator.requestMediaKeySystemAccess("com.apple.fps",[a]),4);if(2!=b.g)return b.return(!0);ua(b);return b.return(!1)})};function $l(){} 589function am(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&(a=360);var b={retryParameters:hf(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(h,k,l){window.shakaMediaKeysPolyfill&&"skd"==k&&(k=l.serverCertificate,l=Wl(h),h=Xl(h,l,k));return h},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:Id(),minHdcpVersion:"", 590ignoreDuplicateInitData:!Md()},c="reload",d=!1;Md()||Ld()||Jd("Tizen 4")||Jd("Tizen 5")||Jd("Tizen 6")||Od()||Nd()&&53===Pd()||Nd()&&68===Pd()||!(!Qd()||Qd()&&Jd("Android")||Qd()&&Jd("Fuchsia"))||(navigator.userAgentData&&navigator.userAgentData.platform?"windows"==navigator.userAgentData.platform.toLowerCase():navigator.platform&&navigator.platform.toLowerCase().includes("windows"))&&Gd()||(c="smooth",d=!0);d={retryParameters:hf(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1, 591disableThumbnails:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,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", 592"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:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(h){return Sl([h],h)},sequenceMode:!1,enableAudioGroups:!1,multiTypeVariantsAllowed:d},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E", 593ignoreManifestProgramDateTime:!1,mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',useSafariBehaviorForLive:!0,liveSegmentsDelay:3,sequenceMode:Ld()||Md()||Od()||Sd()?!1:!0,ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,allowLowLatencyByteRangeOptimization:!0},mss:{manifestPreprocessor:function(h){return Sl([h],h)},sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}}; 594var e={retryParameters:hf(),failureCallback:function(h){return Sl([h])},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.5,gapJumpTimerTime:.25,durationBackoff:1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1,
595maxDisabledTime:30,parsePrftBox:!1,segmentPrefetchLimit:0,liveSync:!1,liveSyncMaxLatency:1,liveSyncPlaybackRate:1.1,liveSyncMinLatency:0,liveSyncMinPlaybackRate:1,allowMediaSourceRecoveries:!0,minTimeBetweenRecoveries:5};if(Nd()||Kd()||Qd()||Jd("Hisense")||Jd("VIDAA"))e.stallSkip=0;var f={trackSelectionCallback:function(h){return J(function(k){return k.return(h)})},downloadSizeCallback:function(h){var k;return J(function(l){if(1==l.g)return navigator.storage&&navigator.storage.estimate?C(l,navigator.storage.estimate(), 5963):l.return(!0);k=l.h;return l.return(k.usage+h<.95*k.quota)})},progressCallback:function(h,k){return Sl([h,k])},usePersistentLicense:!0,numberOfParallelDownloads:5},g={drm:b,manifest:d,streaming:e,mediaSource:{codecSwitchingStrategy:c,sourceBufferExtraFeatures:"",forceTransmux:!1,insertFakeEncryptionInInit:!0},offline:f,abrFactory:function(){return new Fe},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1E6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95, 597restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},advanced:{minTotalBytes:128E3,minBytes:16E3,fastHalfLife:2,slowHalfLife:5},restrictToElementSize:!1,restrictToScreenSize:!1,ignoreDevicePixelRatio:!1,clearBufferSwitch:!1,safeMarginSwitch:0},autoShowText:3,preferredAudioLanguage:"",preferredAudioLabel:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2, 598preferredVideoHdrLevel:"AUTO",preferredVideoLayout:"",preferredVideoLabel:"",preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferSpatialAudio:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:Infinity,minPixels:0,maxPixels:Infinity,minFrameRate:0,maxFrameRate:Infinity,minBandwidth:0,maxBandwidth:Infinity},playRangeStart:0,playRangeEnd:Infinity,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"", 599useHeaders:!1},cmsd:{enabled:!0,applyMaximumSuggestedBitrate:!0,estimatedThroughputWeightRatio:.5},lcevc:{enabled:!1,dynamicPerformanceScaling:!0,logLevel:0,drawLogo:!1},ads:{customPlayheadTracker:!1}};f.trackSelectionCallback=function(h){return J(function(k){return k.return(bm(h,g.preferredAudioLanguage,g.preferredVideoHdrLevel))})};return g} 600function cm(a,b,c){var d={".drm.keySystemsMapping":"",".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Ql(a,b,c||am(),d,"")} 601function bm(a,b,c){var d=c;"AUTO"==d&&(d=window.matchMedia("(color-gamut: p3)").matches?"PQ":"SDR");var e=a.filter(function(h){return"variant"!=h.type||h.hdr&&h.hdr!=d?!1:!0});c=[];var f=ud(b,e.map(function(h){return h.language}));f&&(c=e.filter(function(h){return nd(h.language)==f}));0==c.length&&(c=e.filter(function(h){return h.primary}));0==c.length&&(e.map(function(h){return h.language}),c=e);var g=c.filter(function(h){return h.height&&480>=h.height});g.length&&(g.sort(function(h,k){return k.height- 602h.height}),c=g.filter(function(h){return h.height==g[0].height}));b=[];c.length&&(e=Math.floor(c.length/2),c.sort(function(h,k){return h.bandwidth-k.bandwidth}),b.push(c[e]));a=t(a);for(c=a.next();!c.done;c=a.next())c=c.value,c.type!=Ic&&"image"!=c.type||b.push(c);return b}P("shaka.util.PlayerConfiguration",$l);$l.mergeConfigObjects=cm;$l.createDefault=am;function dm(){this.g=null;this.h=[]}function em(a,b){var c=0;a.g&&a.g.state==b&&(c+=a.g.duration);a=t(a.h);for(var d=a.next();!d.done;d=a.next())d=d.value,c+=d.state==b?d.duration:0;return c}function fm(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=t(a.h),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.g&&c.push(b(a.g));return c};function gm(){this.i=this.h=null;this.g=[]}function hm(a,b,c){a.i!=b&&(a.i=b,a.g.push({timestamp:Date.now()/1E3,id:b.id,type:"text",fromAdaptation:c,bandwidth:null}))};function im(){this.u=this.B=this.G=this.C=this.s=this.j=this.F=this.m=this.i=this.L=this.N=this.H=this.J=this.K=this.l=this.o=NaN;this.g=new dm;this.h=new gm};function U(a,b){tf.call(this);var c=this;this.l=jm;this.rd=this.g=null;this.ba=!1;this.zd=new ab;this.mc=new ab;this.m=new ab;this.Aa=new ab;this.C=this.F=this.s=this.H=null;this.Ed=0;this.W=new Tl;this.ca=this.fa=this.i=this.Fd=this.G=this.j=this.ya=this.K=this.Uf=this.Y=this.U=this.za=this.L=this.sd=this.J=this.Xb=null;this.ib=!1;this.Ee=this.o=null;this.Oe=1E9;this.Ic=[];this.N=NaN;this.h=km(this);this.Cd={width:Infinity,height:Infinity};this.u=null;this.Fa=new Ue(this.h.preferredAudioLanguage, 603this.h.preferredVariantRole,this.h.preferredAudioChannelCount,this.h.preferredVideoHdrLevel,this.h.preferSpatialAudio,this.h.preferredVideoLayout,this.h.preferredAudioLabel,this.h.preferredVideoLabel,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);this.hb=this.h.preferredTextLanguage;this.Ec=this.h.preferredTextRole;this.Dc=this.h.preferForcedSubs;this.Bc=[];b&&b(this);this.U=lm(this);this.Y=new Jl(this.h.cmsd);this.H=mm(this);this.H.bf(this.h.streaming.forceHTTPS); 604this.B=null;nm&&(this.B=nm(),this.B.configure(this.h.ads));this.zd.D(window,"online",function(){om(c);c.Xe()});this.td=new yd(function(){return pm(c)});a&&(Le("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.Cc(a,!0))}na(U,tf);function qm(a){null!=a.K&&(Fi(a.K),a.K.release(),a.K=null)} 605function rm(a,b){if(b.lcevc.enabled){var c=a.yb();c&&c[0]&&"video/mp2t"==c[0].videoMimeType&&(Gd()||Hd())&&(b.mediaSource.forceTransmux||Ta("LCEVC Warning: For MPEG-2 TS decoding the config.mediaSource.forceTransmux must be enabled."));qm(a);null==a.K&&(a.K=new Ei(a.g,a.Uf,b.lcevc),a.F&&(a.F.U=a.K))}else qm(a)}function sm(a,b){return new sf(a,b)}r=U.prototype; 606r.destroy=function(){var a=this,b;return J(function(c){switch(c.g){case 1:if(a.l==tm)return c.return();qm(a);b=a.detach();a.l=tm;return C(c,b,2);case 2:a.zd&&(a.zd.release(),a.zd=null);a.mc&&(a.mc.release(),a.mc=null);a.m&&(a.m.release(),a.m=null);a.Aa&&(a.Aa.release(),a.Aa=null);a.Ee=null;a.h=null;a.u=null;a.rd=null;a.U=null;a.Y=null;if(!a.H){c.A(3);break}return C(c,a.H.destroy(),4);case 4:a.H=null;case 3:a.o&&(a.o.release(),a.o=null),tf.prototype.release.call(a),E(c)}})}; 607function um(a,b){a.dispatchEvent(sm("onstatechange",(new Map).set("state",b)))} 608r.Cc=function(a,b){b=void 0===b?!0:b;var c=this,d,e;return J(function(f){switch(f.g){case 1:if(c.l==tm)throw new Q(2,7,7E3);if(!c.g||c.g==a){f.A(2);break}return C(f,c.detach(),2);case 2:return C(f,vm(c,"attach"),4);case 4:if(f.h)return f.return();ra(f,5,6);um(c,"attach");d=function(){var g=wm(c);g&&xm(c,g)};c.mc.D(a,"error",d);c.g=a;if(!b||!Dd()||c.F){f.A(6);break}return C(f,ym(c),6);case 6:va(f);c.W.release();wa(f,0);break;case 5:return e=ua(f),C(f,c.detach(),10);case 10:throw e;}})}; 609r.sg=function(a){this.Uf=a};r.detach=function(a){a=void 0===a?!1:a;var b=this;return J(function(c){if(1==c.g){if(b.l==tm)throw new Q(2,7,7E3);return C(c,b.Qd(!1,a),2)}if(3!=c.g)return C(c,vm(b,"detach"),3);if(c.h)return c.return();try{b.g&&(b.mc.qb(),b.g=null),um(b,"detach"),b.B&&!a&&b.B.release()}finally{b.W.release()}E(c)})};function vm(a,b){var c;return J(function(d){return 1==d.g?(c=++a.Ed,C(d,Ul(a.W,b),2)):c!=a.Ed?(a.W.release(),d.return(!0)):d.return(!1)})} 610r.Qd=function(a,b){a=void 0===a?!0:a;b=void 0===b?!1:b;var c=this,d,e,f,g,h,k,l,m,n;return J(function(q){switch(q.g){case 1:return c.l!=tm&&(c.l=jm),C(q,vm(c,"unload"),2);case 2:if(q.h)return q.return();sa(q,3);c.ib=!1;um(c,"unload");a&&!Dd()&&(a=!1);qm(c);d=c.Bc.map(function(p){return p()});c.Bc=[];return C(q,Promise.all(d),5);case 5:c.dispatchEvent(sm("unloading"));c.za&&(c.za.release(),c.za=null);c.g&&(c.m.qb(),c.Aa.qb());c.td.stop();
610c.Xb&&(c.Xb.release(),c.Xb=null);c.sd&&(c.sd.stop(),c.sd=null); 611if(!c.G){q.A(6);break}return C(q,c.G.stop(),7);case 7:c.G=null,c.Fd=null;case 6:if(!c.o){q.A(8);break}return C(q,c.o.stop(),8);case 8:if(!c.j){q.A(10);break}return C(q,c.j.destroy(),11);case 11:c.j=null;case 10:c.J&&(c.J.release(),c.J=null);c.C&&(c.C.release(),c.C=null);if(!c.F){q.A(12);break}return C(q,c.F.destroy(),13);case 13:c.F=null;case 12:if(c.B&&!b)c.B.onAssetUnload();c.Y&&(c.Y.g=null);c.g&&hl(c.g);if(!c.g||!c.g.src){q.A(14);break}return C(q,new Promise(function(p){return(new yd(p)).V(.1)}), 61215);case 15:c.g.removeAttribute("src"),c.g.load();case 14:if(!c.s){q.A(16);break}return C(q,c.s.destroy(),17);case 17:c.s=null;case 16:c.fa=null;c.L=null;if(c.i){e=t(c.i.variants);for(f=e.next();!f.done;f=e.next())for(g=f.value,h=t([g.audio,g.video]),k=h.next();!k.done;k=h.next())(l=k.value)&&l.segmentIndex&&l.segmentIndex.release();m=t(c.i.textStreams);for(k=m.next();!k.done;k=m.next())n=k.value,n.segmentIndex&&n.segmentIndex.release()}c.i=null;c.u=new im;c.Le=null;c.Ic=[];c.N=NaN;zm(c);case 3:va(q); 613c.W.release();wa(q,4);break;case 4:if(a&&Dd()&&!c.F)return C(q,ym(c),0);q.A(0)}})};r.Nh=function(a){this.ca=a}; 614r.load=function(a,b,c){b=void 0===b?null:b;var d=this,e,f,g,h,k,l;return J(function(m){switch(m.g){case 1:if(d.l==tm)throw new Q(2,7,7E3);return C(m,Ul(d.W,"load"),2);case 2:d.W.release();if(!d.g)throw new Q(2,7,7002);if(!d.fa){m.A(3);break}return C(m,d.Qd(!1),3);case 3:e=++d.Ed;f=function(){if(d.Ed!=e)throw new Q(2,7,7E3);};g=function(n,q){return J(function(p){switch(p.g){case 1:return sa(p,2),C(p,Ul(d.W,q),4);case 4:return f(),C(p,n(),5);case 5:f();case 2:va(p),d.W.release(),wa(p,0)}})};ra(m,5); 615d.ca=b;d.ib=!1;d.dispatchEvent(sm("loading"));h=Date.now()/1E3;d.u=new im;d.fa=a;if(c){m.A(7);break}return C(m,g(function(){return J(function(n){if(1==n.g)return C(n,Am(d),2);c=n.h;E(n)})},"guessMimeType_"),7);case 7:if(k=Bm(d,c))return C(m,g(function(){return J(function(n){return C(n,Cm(d,c),0)})},"initializeSrcEqualsDrmInner_"),16);if(d.F){m.A(11);break}return C(m,g(function(){return J(function(n){return C(n,ym(d),0)})},"initializeMediaSourceEngineInner_"),11);case 11:return C(m,g(function(){return J(function(n){return C(n, 616Dm(d,c),0)})},"parseManifestInner_"),13);case 13:return C(m,g(function(){return J(function(n){return C(n,Em(d),0)})},"initializeDrmInner_"),14);case 14:return C(m,g(function(){return J(function(n){return C(n,Fm(d,h),0)})},"loadInner_"),10);case 16:return C(m,g(function(){return J(function(n){return C(n,Gm(d,h,c),0)})},"srcEqualsInner_"),10);case 10:d.dispatchEvent(sm("loaded"));ta(m,0);break;case 5:l=ua(m);if(7E3==l.code){m.A(18);break}return C(m,d.Qd(!1),18);case 18:throw l;}})}; 617function Am(a){var b,c;return J(function(d){if(1==d.g)return b=a.h.manifest.retryParameters,C(d,Yk(a.fa,a.H,b),2);c=d.h;"application/x-mpegurl"==c&&Rd()&&(c="application/vnd.apple.mpegurl");return d.return(c)})}function Bm(a,b){if(!Dd())return!0;if(b){if(""==(a.g||Fd()).canPlayType(b))return!1;if(!(Dd()&&b in Ih))return!0;if($c(b)){if(a.h.streaming.preferNativeHls)return!0;if(Rd())return a.h.streaming.useNativeHlsOnSafari}}return!1} 618function ym(a){var b,c,d,e,f;return J(function(g){if(1==g.g)return um(a,"media-source"),b=a.h.textDisplayFactory,c=b(),a.Le=b,d=Hm(a.g,c,function(h,k,l){Im(a,h,k,l)},a.K),d.configure(a.h.mediaSource),e=a.h.manifest,f=e.segmentRelativeVttTiming,d.ba=f,C(g,d.L,2);a.F=d;E(g)})} 619function Dm(a,b){var c,d,e,f,g,h,k,l;return J(function(m){if(1==m.g)return c=a.H,um(a,"manifest-parser"),a.Fd=Hh(a.fa,b||null),a.G=a.Fd(),d=vd(a.h.manifest),a.g&&"AUDIO"===a.g.nodeName&&(d.disableVideo=!0),a.G.configure(d),a.za=new dk(function(){return a.Ab()}),a.za.addEventListener("regionadd",function(n){n=n.region;Jm(a,"timelineregionadded",n);if(a.B)a.B.onDashTimedMetadata(n)}),a.ya=null,a.h.streaming.observeQualityChanges&&(a.ya=new Yj(function(){return a.lb()}),a.ya.addEventListener("qualitychange", 620function(n){var q=n.quality;n=n.position;q=(new Map).set("mediaQuality",{bandwidth:q.bandwidth,audioSamplingRate:q.audioSamplingRate,codecs:q.codecs,contentType:q.contentType,frameRate:q.frameRate,height:q.he
620ight,mimeType:q.mimeType,channelsCount:q.channelsCount,pixelAspectRatio:q.pixelAspectRatio,width:q.width}).set("position",n);a.dispatchEvent(sm("mediaqualitychanged",q))})),e={networkingEngine:c,filter:function(n){return Km(a,n)},makeTextStreamsForClosedCaptions:function(n){return Lm(a,n)},onTimelineRegionAdded:function(n){var q= 621a.za;a:{var p=t(q.g);for(var u=p.next();!u.done;u=p.next())if(u=u.value,u.schemeIdUri==n.schemeIdUri&&u.id==n.id&&u.startTime==n.startTime&&u.endTime==n.endTime){p=u;break a}p=null}null==p&&(q.g.add(n),n=new sf("regionadd",new Map([["region",n]])),q.dispatchEvent(n))},onEvent:function(n){return a.dispatchEvent(n)},onError:function(n){return xm(a,n)},isLowLatencyMode:function(){return a.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return a.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){a.configure("streaming.lowLatencyMode", 622!0)},updateDuration:function(){a.j&&a.j.updateDuration()},newDrmInfo:function(n){var q=a.s?a.s.g:null;q&&a.s.s&&Mm(a,q.keySystem,n)},onManifestUpdated:function(){var n=(new Map).set("isLive",a.T());a.dispatchEvent(sm("manifestupdated",n));if(a.B)a.B.onManifestUpdated(a.T())},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()}},f=Date.now()/1E3,um(a,"manifest"),g=a,C(m,a.G.start(a.fa,e),2);g.i=m.h;h=sm("manifestparsed");a.dispatchEvent(h);if(0==a.i.variants.length)throw new Q(2,4,4036); 623Nm(a.i);k=Date.now()/1E3;l=k-f;a.u.F=l;E(m)})} 624function Em(a){var b,c,d,e;return J(function(f){return 1==f.g?(um(a,"drm-engine"),b=Date.now()/1E3,c=!0,a.s=Om(a,{Qb:a.H,onError:function(g){xm(a,g)},Nd:function(g){Pm(a,g)},onExpirationUpdated:function(g,h){Qm(a,g,h)},onEvent:function(g){a.dispatchEvent(g);"drmsessionupdate"==g.type&&c&&(c=!1,a.u.j=Date.now()/1E3-b,a.K&&Fi(a.K))}}),a.s.configure(a.h.drm),(d=ae(a.i.variants,a.h.restrictions,a.Cd))&&a.j&&Rm(a),e=Ce(a.i.variants),C(f,Yg(a.s,e,a.i.offlineSessionIds),2)):3!=f.g?C(f,a.s.Cc(a.g),3):C(f, 625Km(a,a.i),0)})} 626function Fm(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K;return J(function(H){switch(H.g){case 1:um(a,"load");c=a.g;a.J=new Uj({xd:function(){return c.playbackRate},ac:function(){return c.defaultPlaybackRate},cf:function(I){c.playbackRate=I},Qf:function(I){c.currentTime+=I}});d=function(){return Sm(a)};e=function(){return Tm(a)};a.m.D(c,"playing",d);a.m.D(c,"pause",d);a.m.D(c,"ended",d);a.m.D(c,"ratechange",e);rm(a,a.h);f=a.h.abrFactory;a.o&&a.Ee==f||(a.Ee=f,a.o=f(),"function"!=typeof a.o.setMediaElement&& 627(Le("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),a.o.setMediaElement=function(){}),"function"!=typeof a.o.setCmsdManager&&(Le("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),a.o.setCmsdManager=function(){}),"function"!=typeof a.o.trySuggestStreams&&(Le("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),a.o.trySuggestStreams=function(){}),a.o.configure(a.h.abr));a.Fa= 628new Ue(a.h.preferredAudioLanguage,a.h.preferredVariantRole,a.h.preferredAudioChannelCount,a.h.preferredVideoHdrLevel,a.h.preferSpatialAudio,a.h.preferredVideoLayout,a.h.preferredAudioLabel,a.h.preferredVideoLabel,a.h.mediaSource.codecSwitchingStrategy,a.h.manifest.dash.enableAudioGroups);a.hb=a.h.preferredTextLanguage;a.Ec=a.h.preferredTextRole;a.Dc=a.h.preferForcedSubs;Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.o.init(function(I,G,M){a.i&&a.j&&I!=a.j.j&&Vm(a,I,!0,void 0=== 629G?!1:G,void 0===M?0:M)});a.o.setMediaElement(c);a.o.setCmsdManager(a.Y);Xd(a.i,a.h.preferredVideoCodecs,a.h.preferredAudioCodecs,a.h.preferredDecodingAttributes);a.j=Wm(a);a.j.configure(a.h.streaming);a.l=Xm;c.textTracks&&a.m.D(c.textTracks,"addtrack",function(I){if(I.track)switch(I=I.track,I.kind){case "chapters":Ym(a,I)}});a.dispatchEvent(sm("streaming"));g=null;(h=a.j.j)||(g=Zm(a,!0));k=[];l=h||g;m=t([l.video,l.audio]);for(n=m.next();!n.done;n=m.next())(q=n.value)&&!q.segmentIndex&&k.push(q.createSegmentIndex()); 630if(!(0<k.length)){H.A(2);break}return C(H,Promise.all(k),2);case 2:if(a.G&&a.G.onInitialVariantChosen)a.G.onInitialVariantChosen(l);Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);p=function(I){a.C=$m(a,I);a.Xb=an(a,I);bn(a,c,Math.max(a.i.minBufferTime,a.h.streaming.rebufferingGoal))};a.h.streaming.startAtSegmentBoundary||p(a.ca);if(h){H.A(4);break}if(!a.h.streaming.startAtSegmentBoundary){H.A(5);break}u=a.i.presentationTimeline;v=a.ca||a.g.currentTime;x=u.Mb();z=u.ab();
630v<x?v=x:v> 631z&&(v=z);return C(H,cn(g,v),6);case 6:y=H.h,p(y);case 5:Vm(a,g,!0,!1,0);case 4:return a.C.be(),B=a.ec().find(function(I){return I.active}),B||((A=De(a.i.textStreams,a.hb,a.Ec,a.Dc)[0]||null)&&hm(a.u.h,A,!0),g&&(A?(g.audio&&dn(a,g.audio,A)&&(a.ba=!0),a.ba&&a.F.F.setTextVisibility(!0),en(a)):a.ba=!1),A&&(a.h.streaming.alwaysStreamText||a.De())&&Fk(a.j,A)),C(H,a.j.start(),7);case 7:a.h.abr.enabled&&(a.o.enable(),fn(a));Rm(a);gn(a);a.i.variants.some(function(I){return I.primary});(D=a.T())&&(a.h.streaming.liveSync|| 632a.i.serviceDescription)&&(F=function(){return hn(a)},a.m.D(c,"timeupdate",F));D||(K=function(){return jn(a)},a.m.D(c,"timeupdate",K),jn(a));if(a.B)a.B.onManifestUpdated(D);a.ib=!0;a.m.ka(c,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b});E(H)}})} 633function Cm(a,b){var c,d,e,f,g;return J(function(h){return 1==h.g?(c=Jc,d=Date.now()/1E3,e=!0,a.s=Om(a,{Qb:a.H,onError:function(k){xm(a,k)},Nd:function(k){Pm(a,k)},onExpirationUpdated:function(k,l){Qm(a,k,l)},onEvent:function(k){a.dispatchEvent(k);"drmsessionupdate"==k.type&&e&&(e=!1,a.u.j=Date.now()/1E3-d)}}),a.s.configure(a.h.drm),f={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},g={id:0,originalId:null, 634groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:b?Yc(b):"",codecs:b?Zc(b):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:c.$,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set},g.fullMimeTypes.add(Lc(g.mimeType,g.codecs)),b.startsWith("audio/")? 635(g.type=c.P,f.audio=g):f.video=g,a.s.Y=!0,C(h,Yg(a.s,[f],[]),2)):C(h,a.s.Cc(a.g),0)})} 636function Gm(a,b,c){var d,e,f,g,h,k,l,m,n,q;return J(function(p){if(1==p.g)return um(a,"src-equals"),d=a.g,a.C=new Kj(d),e=!1,a.Bc.push(function(){e=!0}),null!=a.ca&&a.C.ce(a.ca),a.J=new Uj({xd:function(){return d.playbackRate},ac:function(){return d.defaultPlaybackRate},cf:function(u){d.playbackRate=u},Qf:function(u){d.currentTime+=u}}),f=a.h.streaming.rebufferingGoal,bn(a,d,f),g=function(){return Sm(a)},h=function(){return Tm(a)},a.m.D(d,"playing",g),a.m.D(d,"pause",g),a.m.D(d,"ended",g),a.m.D(d, 637"ratechange",h),"none"!=d.preload&&a.m.ka(d,"loadedmetadata",function(){a.u.m=Date.now()/1E3-b}),d.audioTracks&&(a.m.D(d.audioTracks,"addtrack",function(){return Rm(a)}),a.m.D(d.audioTracks,"removetrack",function(){return Rm(a)}),a.m.D(d.audioTracks,"change",function(){return Rm(a)})),d.textTracks&&(a.m.D(d.textTracks,"addtrack",function(u){if(u.track)switch(u=u.track,u.kind){case "metadata":kn(a,u);break;case "chapters":Ym(a,u);break;default:Rm(a)}}),a.m.D(d.textTracks,"removetrack",function(){return Rm(a)}), 638a.m.D(d.textTracks,"change",function(){return Rm(a)})),d.src=tl(a.U,a.fa,c),(Kd()||Nd())&&d.load(),"none"!=d.preload&&!d.autoplay&&$c(c)&&Td()&&d.load(),a.l=ln,a.dispatchEvent(sm("streaming")),k=new kf,Bj(d,HTMLMediaElement.HAVE_METADATA,a.m,function(){a.C.be();k.resolve()}),Bj(d,HTMLMediaElement.HAVE_CURRENT_DATA,a.m,function(){var u;return J(function(v){if(1==v.g)return mn(a),u=nn(a),u.find(function(x){return"disabled"!=x.mode})?(0<u.length&&(a.ba=!0),v.A(2)):C(v,new Promise(function(x){a.m.ka(d.textTracks, 639"change",x);(new yd(x)).V(1)}),2);if(e)return v.return();on(a);E(v)})}),d.error?k.reject(wm(a)):"none"==d.preload&&(Ta('With <video preload="none">, 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.'),k.resolve()),a.m.ka(d,"error",function(){k.reject(wm(a))}),C(p,k,2);(l=a.T())&&a.h.streaming.liveSync&&(m=function(){return hn(a)},a.m.D(d,"timeupdate", 640m));l||(n=function(){return jn(a)},a.m.D(d,"timeupdate",n),jn(a));a.B&&(a.B.onManifestUpdated(l),l&&(q=a.Ab().end,a.m.D(d,"progress",function(){var u=a.Ab().end;
640q!=u&&(a.B.onManifestUpdated(a.T()),q=u)})));a.ib=!0;E(p)})}function mn(a){var b=a.h.preferredAudioLanguage;""!=b&&a.Yf(b,a.h.preferredVariantRole)}function on(a){var b=a.h.preferredTextLanguage;""!=b&&a.Zf(b,a.h.preferredTextRole,a.h.preferForcedSubs)} 641function kn(a,b){if("metadata"==b.kind){b.mode="hidden";a.m.D(b,"cuechange",function(){if(b.activeCues)for(var d=t(b.activeCues),e=d.next();!e.done;e=d.next())if(e=e.value,pn(a,e.startTime,e.endTime,e.type,e.value),a.B)a.B.onCueMetadataChange(e.value)});var c=(new yd(function(){var d=qn(a);d=t(d);for(var e=d.next();!e.done;e=d.next())e.value.mode="hidden"})).gf().V(.5);a.Bc.push(function(){c.stop()})}} 642function Im(a,b,c,d){b=t(b);for(var e=b.next();!e.done;e=b.next())if(e=e.value,e.data&&e.cueTime&&e.frames){var f=e.cueTime+c,g=d;g&&f>g&&(g=f);for(var h=t(e.frames),k=h.next();!k.done;k=h.next())pn(a,f,g,"org.id3",k.value);if(a.B)a.B.onHlsTimedMetadata(e,f)}}function pn(a,b,c,d,e){b=(new Map).set("startTime",b).set("endTime",c).set("metadataType",d).set("payload",e);a.dispatchEvent(sm("metadata",b))} 643function Ym(a,b){if(b&&"chapters"==b.kind){b.mode="hidden";var c=(new yd(function(){b.mode="hidden"})).gf().V(.5);a.Bc.push(function(){c.stop()})}}function Nm(a){function b(c){return c.video&&c.audio||c.video&&c.video.codecs.includes(",")}a.variants.some(b)&&(a.variants=a.variants.filter(b))}r.wh=function(){for(var a=this.W;a.g;)a.release()};function Om(a,b){return new Rg(b,a.h.drm.updateExpirationTime)} 644function mm(a){return new wf(function(b,c,d){a.o&&a.o.segmentDownloaded(b,c,d)},function(b,c,d){c=(new Map).set("headers",b).set("request",c).set("requestType",d);a.dispatchEvent(sm("downloadheadersreceived",c));if(a.Y&&(c=a.Y,c.h.enabled)){if(d=b["cmsd-static"])try{var e=new Map,f=d.split(",");for(d=0;d<f.length;d++){var g=f[d].split("=");e.set(g[0],Ol(g[1]))}}catch(n){}if(b=b["cmsd-dynamic"]){try{var h=new Map,k=b.split(";");for(b=1;b<k.length;b++){var l=k[b].split("=");h.set(l[0],Ol(l[1]))}var m= 645h}catch(n){m=null}m&&(c.g=m)}}},function(b,c,d,e){b=(new Map).set("request",b).set("error",c).set("httpResponseCode",d).set("aborted",e);a.dispatchEvent(sm("downloadfailed",b))},function(b,c,d){var e=a.U;d=void 0===d?{}:d;if(e.g.enabled)if("HEAD"===c.method)Al(e,c);else switch(b){case 0:try{if(e.g.enabled){if(d.type){a:{switch(d.type){case 4:var f="d";break a;case 3:case 2:f="h";break a;case 5:f="s";break a}f=void 0}e.m=f}Al(e,c,{ot:xl,su:!e.i})}}catch(m){Ua("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.", 646m)}break;case If:b=d;try{if(e.g.enabled){var g=b.segment;f=0;g&&(f=g.endTime-g.startTime);var h={d:1E3*f,st:e.h.T()?"l":"v"};h.ot=Dl(b);var k=h.ot===Bl||h.ot===vl||h.ot===wl||h.ot===Fl,l=b.stream;l&&(k&&(h.bl=Hl(e,l.type)),l.bandwidth&&(h.br=l.bandwidth/1E3));k&&h.ot!==Fl&&(h.tb=Il(e,h.ot)/1E3);Al(e,c,h)}}catch(m){Ua("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",m)}break;case 2:case 5:case 6:Al(e,c,{ot:"k"});break;case 4:Al(e,c,{ot:"o"})}},function(b,c,d,e){a.G&&a.G.banLocation&&a.G.banLocation(e)})} 647function $m(a,b){return new Lj(a.g,a.i,a.h.streaming,b,function(){a.Xb&&Xj(a.Xb,!0);a.j&&a.j.Xc();a.L&&rn(a)},function(c){return a.dispatchEvent(c)})} 648function an(a,b){b=new ek(a.za,a.T()||0<b);b.addEventListener("enter",function(d){Jm(a,"timelineregionenter",d.region)});b.addEventListener("exit",function(d){Jm(a,"timelineregionexit",d.region)});b.addEventListener("skip",function(d){var e=d.region;d.seeking||(Jm(a,"timelineregionenter",e),Jm(a,"timelineregionexit",e))});var c=new Wj(a.g);c.g.add(b);a.ya&&c.g.add(a.ya);return c} 649function bn(a,b,c){a.L=new cf;a.L.g=ef;ff(a.L,c,Math.min(.5,c/2));zm(a);a.sd=(new yd(function(){rn(a)})).Pa(.25);a.m.D(b,"waiting",function(){return rn(a)});a.m.D(b,"stalled",function(){return rn(a)});a.m.D(b,"canplaythrough",function(){return rn(a)});a.m.D(b,"progress",function(){return rn(a)})} 650function rn(a){switch(a.l){case ln:if(a.g.ended)var b=!0;else{var c=Th(a.g.buffered);b=null!=c&&c>=a.g.duration-1}break;case Xm:a:if(a.g.ended||Wi(a.F))b=!0;else{if(a.i.presentationTimeline.T()){c=a.i.presentationTimeline.xb();var d=Th(a.g.buffered);if(null!=d&&d>=c){b=!0;break a}}b=!1}break;default:b=!1}d=Vh(a.g.buffered,a.g.currentTime);c=a.L;var e=b,f=c.h.get(c.g);b=c.g;d=e||d>=f?df:ef;c.g=d;b!=d&&zm(a)}function Hm(a,b,c,d){return new Ni(a,b,c,d)} 651function lm(a){return new sl({getBandwidthEstimate:function(){return a.o?a.o.getBandwidthEstimate():NaN},lb:function(){return a.lb()},getCurrentTime:function(){return a.g?a.g.currentTime:0},vd:function(){return a.vd()},cc:function(){return a.cc()},yb:function(){return a.yb()},T:function(){return a.T()}},a.h.cmcd)} 652function Wm(a){return new sk(a.i,{wd:function(){return a.C?a.C.kd():0},getBandwidthEstimate:function(){return a.o.getBandwidthEstimate()},S:a.F,Qb:a.H,onError:function(b){return xm(a,b)},onEvent:function(b){return a.dispatchEvent(b)}
652,ph:function(){a.G&&a.G.update&&a.G.update()},Se:function(b,c){var d=b.startTime,e=b.endTime,f=c.type;if(a.C){a.C.Rf();var g=Xi(a.F,f);!a.T()&&a.g.paused&&null!=g&&0<g&&a.C.kd()<g&&a.C.ce(g)}rn(a);d=(new Map).set("start",d).set("end",e).set("contentType",f);a.dispatchEvent(sm("segmentappended", 653d));a.o&&c.fastSwitching&&b.Tc&&b.Gd&&a.o.trySuggestStreams()},oh:function(b,c){(c=c.Ne)&&a.ya&&bk(a.ya,c,b)},rf:function(b,c){var d=a.s;if(d.h.parseInbandPsshEnabled&&!d.F&&["audio","video"].includes(b)){c=new tg(ob(c));var e=0,f=t(c.data);for(b=f.next();!b.done;b=f.next())e+=b.value.length;if(0==e)d=Promise.resolve();else{e=new Uint8Array(e);f=0;c=t(c.data);for(b=c.next();!b.done;b=c.next())b=b.value,e.set(b,f),f+=b.length;gh(d,"cenc",e);d=d.l}}else d=Promise.resolve();return d},qh:function(b,c, 654d){Im(a,b,c,d)},qd:function(b,c){return a.qd(b,c)}})} 655r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Rl(a,b));a.streaming&&"forceTransmuxTS"in a.streaming&&(Le("streaming.forceTransmuxTS configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmuxTS,delete a.streaming.forceTransmuxTS);a.streaming&&"forceTransmux"in a.streaming&&(Le("streaming.forceTransmux configuration","Please Use mediaSource.forceTransmux instead."),a.mediaSource.mediaSource=a.streaming.forceTransmux,delete a.streaming.forceTransmux); 656a.streaming&&a.streaming.lowLatencyMode&&(void 0==a.streaming.inaccurateManifestTolerance&&(a.streaming.inaccurateManifestTolerance=0),void 0==a.streaming.rebufferingGoal&&(a.streaming.rebufferingGoal=.01),void 0==a.streaming.segmentPrefetchLimit&&(a.streaming.segmentPrefetchLimit=2),void 0==a.streaming.retryParameters&&(a.streaming.retryParameters={}),void 0==a.streaming.retryParameters.baseDelay&&(a.streaming.retryParameters.baseDelay=100),void 0==a.manifest&&(a.manifest={}),void 0==a.manifest.retryParameters&& 657(a.manifest.retryParameters={}),void 0==a.manifest.retryParameters.baseDelay&&(a.manifest.retryParameters.baseDelay=100),void 0==a.drm&&(a.drm={}),void 0==a.drm.retryParameters&&(a.drm.retryParameters={}),void 0==a.drm.retryParameters.baseDelay&&(a.drm.retryParameters.baseDelay=100));var c=cm(this.h,a,km(this));sn(this);return c}; 658function sn(a){if(a.G){var b=vd(a.h.manifest);a.g&&"AUDIO"===a.g.nodeName&&(b.disableVideo=!0);a.G.configure(b)}a.s&&a.s.configure(a.h.drm);if(a.j){a.j.configure(a.h.streaming);try{tn(a,a.i)}catch(f){xm(a,f)}a.o&&gn(a);b=a.j.j;!b||b.allowedByApplication&&b.allowedByKeySystem||un(a)}a.H&&a.H.bf(a.h.streaming.forceHTTPS);if(a.F&&(a.F.configure(a.h.mediaSource),a.F.ba=a.h.manifest.segmentRelativeVttTiming,b=a.h.textDisplayFactory,a.Le!=b)){var c=b(),d=a.F,e=d.F;d.F=c;e&&(c.setTextVisibility(e.isTextVisible()), 659e.destroy());d.h&&(d.h.j=c);a.Le=b;a.j&&(b=a.j,(c=b.i.get(Ic))&&Dk(b,c.stream,!0,0,!0))}a.o&&(a.o.configure(a.h.abr),a.h.abr.enabled?a.o.enable():a.o.disable(),fn(a));a.L&&(b=a.h.streaming.rebufferingGoal,a.i&&(b=Math.max(b,a.i.minBufferTime)),ff(a.L,b,Math.min(.5,b/2)));a.i&&Um(a.i.presentationTimeline,a.h.playRangeStart,a.h.playRangeEnd);a.B&&a.B.configure(a.h.ads);a.U&&a.U.configure(a.h.cmcd);a.Y&&a.Y.configure(a.h.cmsd)}r.getConfiguration=function(){var a=km(this);cm(a,this.h,km(this));return a}; 660r.Dg=function(){if(this.g){var a=this.g.buffered.length;a=a?this.g.buffered.end(a-1):0;var b=this.getConfiguration().streaming.bufferingGoal;b=Math.min(this.g.currentTime+b,this.Ab().end);if(a>=b)return 1;if(!(a<=this.g.currentTime)&&a<b)return(a-this.g.currentTime)/(b-this.g.currentTime)}return 0};r.zh=function(){for(var a in this.h)delete this.h[a];cm(this.h,km(this),km(this));sn(this)};r.Kg=function(){return this.l};r.ze=function(){return this.i?this.i.type:null};r.Og=function(){return this.g}; 661r.cc=function(){return this.H};r.Ag=function(){return this.fa};r.yg=function(){return this.B?this.B:null};r.T=function(){return this.i?this.i.presentationTimeline.T():this.g&&this.g.src?Infinity==this.g.duration:!1};r.Ob=function(){return this.i?this.i.presentationTimeline.Ob():!1};r.dh=function(){if(this.i){var a=this.i.variants;return a.length?!a[0].video:!1}return this.g&&this.g.src?this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight:!1}; 662r.Ab=function(){if(this.i){if(!this.ib&&"HLS"==this.i.type)return{start:0,end:0};var a=this.i.presentationTimeline;return{start:a.Mb(),end:a.ab()}}return this.g&&this.g.src&&(a=this.g.seekable,a.length)?{start:a.start(0),end:a.end(a.length-1)}:{start:0,end:0}};r.$g=function(){this.T()&&(this.g.currentTime=this.Ab().end)};r.keySystem=function(){var a=this.drmInfo();return a?a.keySystem:""};r.drmInfo=function(){return this.s?this.s.g:null};r.Kc=function(){return this.s?this.s.Kc():Infinity}; 663r.ye=function(){return this.s?this.s.ye():[]};r.ud=function(){return this.s?this.s.ud():{}};r.Kf=function(){return this.L?this.L.g==ef:!1};
663r.vd=function(){return this.g?this.J?this.J.i:1:0}; 664r.kf=function(a){var b=this;0==a?Ta("A trick play rate of 0 is unsupported!"):(this.Aa.qb(),this.g.paused&&this.g.play(),this.J.set(a),this.l==Xm&&(this.o.playbackRateChanged(a),Ck(this.j,1<Math.abs(a))),this.T()&&this.Aa.D(this.g,"timeupdate",function(){var c=b.g.currentTime,d=b.Ab(),e=b.h.streaming.safeSeekOffset;0<a?Math.floor(c)>=Math.floor(d.end)&&b.od():Math.floor(c)<=Math.floor(d.start+e)&&b.od()}))}; 665r.od=function(){var a=this.J.ac();this.l==ln&&this.J.set(a);this.l==Xm&&(this.J.set(a),this.o.playbackRateChanged(a),Ck(this.j,!1));this.Aa.qb()}; 666r.yb=function(){if(this.i){for(var a=this.j?this.j.j:null,b=[],c=0,d=t(this.i.variants),e=d.next();!e.done;e=d.next())if(e=e.value,Be(e)){var f=se(e);f.active=e==a;f.active||1==c||null==a||e.video!=a.video||e.audio!=a.audio||(f.active=!0);f.active&&c++;b.push(f)}return b}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map(function(g){return Ae(g)}):[]}; 667r.ec=function(){if(this.i){for(var a=this.j?this.j.o:null,b=[],c=t(this.i.textStreams),d=c.next();!d.done;d=c.next()){d=d.value;var e=te(d);e.active=d==a;b.push(e)}return b}return this.g&&this.g.src&&this.g.textTracks?nn(this).map(function(f){return xe(f)}):[]};r.Ig=function(){var a=this.Ic;this.i&&(a=this.i.imageStreams);return a.map(function(b){return ue(b)})}; 668r.zg=function(a){var b=this,c,d,e,f;return J(function(g){if(1==g.g){if(b.l!=Xm&&b.l!=ln)return g.return(null);c=b.Ic;b.i&&(c=b.i.imageStreams);return(d=c.find(function(h){return h.id==a}))?d.segmentIndex?g.A(2):C(g,d.createSegmentIndex(),2):g.return(null)}if(4!=g.g)return e=[],d.segmentIndex.Zb(function(h){var k=vn(h.tilesLayout||d.tilesLayout);if(k){k=k.rows*k.Ib;for(var l=h.j-h.startTime,m=0;m<k;m++)e.push(b.Gf(a,h.startTime+l*m/k))}}),C(g,Promise.all(e),4);f=g.h;return g.return(f.filter(function(h){return h}))})}; 669function vn(a){return a?(a=/(\d+)x(\d+)/.exec(a))?{Ib:parseInt(a[1],10),rows:parseInt(a[2],10)}:null:null} 670r.Gf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A;return J(function(D){if(1==D.g){if(c.l!=Xm&&c.l!=ln)return D.return(null);d=c.Ic;c.i&&(d=c.i.imageStreams);return(e=d.find(function(F){return F.id==a}))?e.segmentIndex?D.A(2):C(D,e.createSegmentIndex(),2):D.return(null)}f=e.segmentIndex.find(b);if(null==f)return D.return(null);g=e.segmentIndex.get(f);h=vn(g.tilesLayout||e.tilesLayout);if(!h)return D.return(null);k=e.width||0;l=e.height||0;m=k/h.Ib;n=l/h.rows;q=h.Ib*h.rows;p=g.j-g.startTime; 671u=g.C||p/q;v=g.startTime;z=x=0;1<q&&(y=Math.floor((b-g.startTime)/u),v=g.startTime+y*u,x=y%h.Ib*m,z=Math.floor(y/h.Ib)*n);B=!1;if(A=g.B)B=!0,n=A.height,x=A.positionX,z=A.positionY,m=A.width;return D.return({segment:g,imageHeight:l,imageWidth:k,height:n,positionX:x,positionY:z,startTime:v,duration:u,uris:g.Z(),width:m,sprite:B})})}; 672r.$f=function(a){if(this.i&&this.j){var b=this.i.textStreams.find(function(d){return d.id==a.id});b&&b!=this.j.o&&(hm(this.u.h,b,!1),Fk(this.j,b),wn(this),this.hb=b.language)}else if(this.g&&this.g.src&&this.g.textTracks){b=nn(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,ve(c)==a.id?c.mode=this.ba?"showing":"hidden":c.mode="disabled";wn(this)}}; 673r.$e=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?0:c;if(this.i&&this.j){this.h.abr.enabled&&Ta("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var d=this.i.variants.find(function(e){return e.id==a.id});d&&Be(d)&&(Vm(this,d,!1,b,c),this.Fa=new Te(d,this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),gn(this))}else if(this.g&&this.g.audioTracks)for(b= 674Array.from(this.g.audioTracks),b=t(b),c=b.next();!c.done;c=b.next())if(c=c.value,ve(c)==a.id){xn(this,c);break}};r.Cg=function(){return yn(this.yb())};r.Ug=function(){return yn(this.ec())};r.Bg=function(){return Array.from(zn(this.yb()))};r.Tg=function(){return Array.from(zn(this.ec()))}; 675r.Yf=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?0:d;if(this.i&&this.C){this.Fa=new Ue(a,b||"",c,"",!1,"","","",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups);a=function(g,h){return g.video||h.video?g.video&&h.video?Math.abs((g.video.height||0)-(h.video.height||0))+Math.abs((g.video.width||0)-(h.video.width||0)):Infinity:0};b=this.j.j;var e=this.Fa.create(this.i.variants);c=null;e=t(e.values());for(var f=e.next();!f.done;f=e.next())if(f=f.value,!c||a(c,b)>a(f, 676b))c=f;c?(a=se(c),this.$e(a,!0,d)):un(this)}else this.g&&this.g.audioTracks&&(d=De(this.yb(),a,b||"",!1)[0])&&this.$e(d)};r.Zf=function(a,b,c){c=void 0===c?!1:c;
676if(this.i&&this.C){if(this.hb=a,this.Ec=b||"",this.Dc=c,(a=De(this.i.textStreams,this.hb,this.Ec,this.Dc)[0]||null)&&a!=this.j.o&&(hm(this.u.h,a,!1),this.h.streaming.alwaysStreamText||this.De()))Fk(this.j,a),wn(this)}else(a=De(this.ec(),a,b||"",c)[0])&&this.$f(a)}; 677r.Fh=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(this.i&&this.C){for(var d=null,e=t(this.i.variants),f=e.next();!f.done;f=e.next())if(f=f.value,f.audio.label==a){d=f;break}null!=d&&(this.Fa=new Ue(d.language,"",0,"",!1,"",a,"",this.h.mediaSource.codecSwitchingStrategy,this.h.manifest.dash.enableAudioGroups),un(this,b,c))}else if(this.g&&this.g.audioTracks){c=Array.from(this.g.audioTracks);b=null;c=t(c);for(d=c.next();!d.done;d=c.next())d=d.value,d.label==a&&(b=d);b&&xn(this,b)}}; 678r.De=function(){var a=this.ba;return this.F&&this.l==Xm?this.F.F.isTextVisible():this.g&&this.g.src&&this.g.textTracks?nn(this).some(function(b){return"showing"==b.mode}):a};r.Cf=function(){return this.g&&this.g.src&&this.g.textTracks?An(this).map(function(a){return xe(a)}):[]}; 679r.Eg=function(a){if(!this.g||!this.g.src||!this.g.textTracks)return[];var b=nd(a),c=An(this).filter(function(h){return nd(h.language)==b});if(!c||!c.length)return[];a=[];var d=new Set;c=t(c);for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.cues){e=t(e.cues);for(var f=e.next();!f.done;f=e.next()){var g=f.value;(f=g.id)&&""!=f||(f=g.startTime+"-"+g.endTime+"-"+g.text);
vendor: 8,563 bytes, lines 679-699
679g={id:f,title:g.text,startTime:g.startTime,endTime:g.endTime};d.has(f)||(a.push(g),d.add(f))}}return a}; 680function nn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"!=b.kind&&"chapters"!=b.kind&&"Shaka Player TextTrack"!=b.label})}function qn(a){return Array.from(a.g.textTracks).filter(function(b){return"metadata"==b.kind})}function An(a){return Array.from(a.g.textTracks).filter(function(b){return"chapters"==b.kind})} 681r.Hh=function(a){a=!!a;if(this.ba!=a){this.ba=a;if(this.l==Xm)this.F.F.setTextVisibility(a),this.h.streaming.alwaysStreamText||(a?this.j.o||(a=De(this.i.textStreams,this.hb,this.Ec,this.Dc),0<a.length&&(Fk(this.j,a[0]),wn(this))):Bk(this.j));else if(this.g&&this.g.src&&this.g.textTracks){var b=nn(this);b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value,"disabled"!=c.mode&&(c.mode=a?"showing":"hidden")}en(this)}}; 682r.Pg=function(){if(!this.T())return null;if(this.C)var a=this.C.kd();else{if(null==this.ca)return new Date;a=this.ca}if(this.i){var b=this.i.presentationTimeline;return new Date(1E3*((b.C||b.i)+a))}return this.g&&this.g.getStartDate?(b=this.g.getStartDate(),isNaN(b.getTime())?null:new Date(b.getTime()+1E3*a)):null}; 683r.Ff=function(){if(!this.T())return null;if(this.i)return new Date(1E3*this.i.presentationTimeline.i);if(this.g&&this.g.getStartDate){var a=this.g.getStartDate();return isNaN(a.getTime())?null:a}return null};r.lb=function(){if(this.l==Xm)return this.F.lb();var a={total:[],audio:[],video:[],text:[]};this.l==ln&&(a.total=Wh(this.g.buffered));return a}; 684r.getStats=function(){if(this.l!=Xm&&this.l!=ln)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,stallsDetected:NaN,gapsJumped:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};Sm(this);var a=this.g,b=a.currentTime/a.duration;if(!isNaN(b)){var c=this.u;b= 685Math.round(100*b);c.i=isNaN(c.i)?b:Math.max(c.i,b)}this.C&&(this.u.L=this.C.mf(),this.u.N=this.C.nf());if(a.getVideoPlaybackQuality){c=a.getVideoPlaybackQuality();b=this.u;var d=Number(c.totalVideoFrames);b.K=Number(c.droppedVideoFrames);b.J=d;this.u.H=Number(c.corruptedVideoFrames)}this.s?(c=this.s,c=c.J?c.J:NaN):c=NaN;this.u.s=c;if(this.l==Xm){c=this.j.j;b=this.j.o;if(c){d=this.J?this.J.i:1;var e=d*c.bandwidth;b&&b.bandwidth&&(e+=d*b.bandwidth);this.u.B=e}c&&c.video&&(b=this.u,d=c.video.height|| 686NaN,b.o=c.video.width||NaN,b.l=d);this.T()&&(c=this.Ff().valueOf()+1E3*a.currentTime,this.u.C=(Date.now()-c)/1E3);this.i&&this.i.presentationTimeline&&(this.u.G=this.i.presentationTimeline.g);c=this.o.getBandwidthEstimate();this.u.u=c}this.l==ln&&(c=this.u,b=a.videoHeight||NaN,c.o=a.videoWidth||NaN,c.l=b);var f=this.u;a=f.o;c=f.l;b=f.B;d=f.J;e=f.K;var g=f.H,h=f.N,k=f.L,l=f.u,m=f.i,n=f.m,q=f.F,p=f.j,u=em(f.g,"playing"),v=em(f.g,"paused"),x=em(f.g,"buffering"),z=f.s,y=f.C,B=f.G,A=fm(f.g),D=[];f=t(f.h.g); 687for(var F=f.next();!F.done;F=f.next())F=F.value,D.push({timestamp:F.timestamp,id:F.id,type:F.type,fromAdaptation:F.fromAdaptation,bandwidth:F.bandwidth});return{width:a,height:c,streamBandwidth:b,decodedFrames:d,droppedFrames:e,corruptedFrames:g,stallsDetected:h,gapsJumped:k,estimatedBandwidth:l,completionPercent:m,loadLatency:n,manifestTimeSeconds:q,drmTimeSeconds:p,playTime:u,pauseTime:v,bufferingTime:x,licenseTime:z,liveLatency:y,maxSegmentDuration:B,stateHistory:A,switchHistory:D}}; 688r.pg=function(a,b,c,d,e,f,g){g=void 0===g?!1:g;var h=this,k,l,m,n,q,p,u,v,x,z,y,B;return J(function(A){switch(A.g){case 1:if(h.l!=Xm&&h.l!=ln)throw new Q(1,7,7004);"subtitles"!=c&&"captions"!=c&&Ta("Using a kind value different of `subtitles` or `captions` can cause unwanted issues.");if(d){A.A(2);break}return C(A,Bn(h,a),3);case 3:d=A.h;case 2:k=[];h.B&&(k=h.B.getCuePoints());if(h.l!=ln){A.A(4);break}g&&(c="forced");return C(A,Cn(h,a,b,c,d,f||"",k),5);case 5:l=nd(b);m=h.ec();if(n=m.find(function(D){return nd(D.language)== 689l&&D.label==(f||"")&&D.kind==c}))return Rm(h),A.return(n);throw new Q(1,2,2012);case 4:q=Jc;p=h.g.duration;h.i&&(p=h.i.presentationTimeline.getDuration());if(Infinity==p)throw new Q(1,4,4033);if(!k.length){A.A(6);break}return C(A,Dn(h,a,h.H,h.h.streaming.retryParameters),7);case 7:u=A.h,v=En(h,u,d,k),x=new Blob([v],{type:"text/vtt"}),a=Qi(x),d="text/vtt";case 6:z={id:h.Oe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Sj(0,p,[a]),mimeType:d||"", 690codecs:e||"",kind:c,encrypted:!1,drmInfos:[],keyIds:new Set,language:b,originalLanguage:b,label:f||null,type:q.ha,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!g,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Lc(d||"",e||"")])};y=Lc(z.mimeType,z.codecs);B=bd(y);if(!B)throw new Q(2,2,2014,d);h.i.textStreams.push(z);Rm(h);return A.return(te(z))}})}; 691r.qg=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y;return J(function(B){switch(B.g){case 1:if(c.l!=Xm&&c.l!=ln)throw new Q(1,7,7004);if(b){B.A(2);break}return C(B,Bn(c,a),3);case 3:b=B.h;case 2:if("text/vtt"!=b)throw new Q(1,2,2017,a);d=Jc;e=c.g.duration;c.i&&(e=c.i.presentationTimeline.getDuration());if(Infinity==e)throw new Q(1,4,4045);return C(B,Dn(c,a,c.H,c.h.streaming.retryParameters),4);case 4:f=B.h;g=cd[b];if(!g)throw new Q(2,2,2014,b);h=g();k={periodStart:0,segmentStart:0,segmentEnd:e, 692vttOffset:0};l=ob(f);m=h.parseMedia(l,k,a);n=[];q={};p=t(m);for(u=p.next();!u.done;q={xc:q.xc,Fb:q.Fb},u=p.next())q.Fb=u.value,q.xc=null,v=function(A){return function(){null==A.xc&&(A.xc=Dc([a],[A.Fb.payload]));return A.xc||[]}}(q),x=new Ph(q.Fb.startTime,q.Fb.endTime,v,0,null,null,0,0,Infinity),q.Fb.payload.includes("#xywh")&&(z=q.Fb.payload.split("#xywh=")[1].split(","),4===z.length&&x.eg({height:parseInt(z[3],10),positionX:parseInt(z[0],10),positionY:parseInt(z[1],10),width:parseInt(z[2],10)})), 693n.push(x);y={id:c.Oe++,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Qj(n),mimeType:b||"",codecs:"",kind:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:d.ae,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,tilesLayout:"1x1",accessibilityPurpose:null,external:!0,fastSwitching:!1,fullMimeTypes:new Set([Lc(b|| 694"","")])};c.l==ln?c.Ic.push(y):c.i.imageStreams.push(y);Rm(c);return B.return(ue(y))}})}; 695r.og=function(a,b,c){var d=this,e,f,g,h;return J(function(k){switch(k.g){case 1:if(d.l!=Xm&&d.l!=ln)throw new Q(1,7,7004);if(c){k.A(2);break}return C(k,Bn(d,a),3);case 3:c=k.h;case 2:return e=[],d.B&&(e=d.B.getCuePoints()),C(k,Cn(d,a,b,"chapters",c,"",e),4);case 4:f=k.h;g=d.Cf();h=g.find(function(l){return l.language==b});if(!h){k.A(5);break}return C(k,new Promise(function(l,m){d.m.ka(f,"load",l);d.m.ka(f,"error",function(){m(new Q(1,2,2015))})}),6);case 6:return Rm(d),k.return(h);case 5:throw new Q(1, 6962,2012);}})};function Bn(a,b){var c;return J(function(d){switch(d.g){case 1:return ra(d,2),C(d,Yk(b,a.H,a.h.streaming.retryParameters),4);case 4:c=d.h;ta(d,3);break;case 2:ua(d);case 3:if(c)return d.return(c);throw new Q(1,2,2011,b);}})} 697function Cn(a,b,c,d,e,f,g){var h,k,l,m;return J(function(n){if(1==n.g)return"text/vtt"!=e||g.length?C(n,Dn(a,b,a.H,a.h.streaming.retryParameters),3):n.A(2);2!=n.g&&(h=n.h,k=En(a,h,e,g),l=new Blob([k],{type:"text/vtt"}),b=Qi(l),e="text/vtt");m=document.createElement("track");var q=a.U,p=b;try{if(q.g.enabled){var u=ul(q);u.ot=Gl;u.su=!0;var v=yl(u);var x=zl(p,v)}else x=p}catch(z){Ua("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",z),x=p}m.src=x;m.label=f;m.kind=d;m.srclang=c;a.g.getAttribute("crossorigin")|| 698a.g.setAttribute("crossorigin","anonymous");a.g.appendChild(m);return n.return(m)})}function Dn(a,b,c,d){var e,f,g;return J(function(h){if(1==h.g){e=If;f=Af([b],d);f.method="GET";var k=a.U;try{k.g.enabled&&Al(k,f,{ot:Gl,su:!0})}catch(l){Ua("CMCD_TEXT_ERROR","Could not generate text CMCD data.",l)}return C(h,c.request(e,f).promise,2)}g=h.h;return h.return(g.data)})} 699function En(a,b,c,d){var e=cd[c];if(e)return c=e(),a={periodStart:0,segmentStart:0,segmentEnd:a.g.duration,vttOffset:0},b=ob(b),b=c.parseMedia(b,a,null),rl(b,d);throw new Q(2,2,2014,c);}r.Gh=function(a,b){this.Cd.width=a;this.Cd.height=b};
699r.Xe=function(a){if(this.l==Xm){var b=this.j;a=void 0===a?.1:a;if(b.l.g)b=!1;else if(b.s)b=!1;else{for(var c=t(b.i.values()),d=c.next();!d.done;d=c.next())d=d.value,!d.Oc||d.Ea||d.gb||(d.Oc=!1,Ak(b,d,a));b=!0}}else b=!1;return b}; 700r.Lg=function(){Ta("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees. It may change at any time! Please consider filing a feature request for whatever you use getManifest() for.");return this.i};r.Mg=function(){return this.Fd}; 701function km(a){var b=am();b.streaming.failureCallback=function(c){if(a.T()){var d=null;1001==c.code||1002==c.code?d=1:1003==c.code&&(d=.1);null!=d&&(c.severity=1,a.Xe(d))}};b.textDisplayFactory=function(){return a.rd?new il(a.g,a.rd):HTMLMediaElement.prototype.addTextTrack?new cl(a.g,"Shaka Player TextTrack"):new fl};return b}r.Ih=function(a){this.rd=a}; 702function Lm(a,b){for(var c=new Set,d=t(b.textStreams),e=d.next();!e.done;e=d.next())e=e.value,"application/cea-608"!=e.mimeType&&"application/cea-708"!=e.mimeType||c.add(e.originalId);d=t(b.variants);for(e=d.next();!e.done;e=d.next())if((e=e.value.video)&&e.closedCaptions)for(var f=t(e.closedCaptions.keys()),g=f.next();!g.done;g=f.next())if(g=g.value,!c.has(g)){var h=g.startsWith("CC")?"application/cea-608":"application/cea-708",k=new Tj,l=e.closedCaptions.get(g);h={id:a.Oe++,originalId:g,groupId:null, 703createSegmentIndex:function(){return Promise.resolve()},segmentIndex:k,mimeType:h,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:l,originalLanguage:l,label:null,type:Ic,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:e.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set([Lc(h,"")])};b.textStreams.push(h);c.add(g)}} 704function Km(a,b){return J(function(c){if(1==c.g)return C(c,Fn(a,b),2);tn(a,b);E(c)})}function Fn(a,b){return J(function(c){if(1==c.g)return C(c,be(a.s,b),2);if(!b.variants.some(Be))throw new Q(2,4,4032);E(c)})}function tn(a,b){if(a.l!=tm){ae(b.variants,a.h.restrictions,a.Cd)&&a.j&&Rm(a);var c=a.s?a.s.g:null;if(c&&a.s.s)for(var d=t(b.variants),e=d.next();!e.done;e=d.next())e=e.value,Mm(a,c.keySystem,e.video),Mm(a,c.keySystem,e.audio);Gn(a,b)}} 705function Mm(a,b,c){if(c){c=t(c.drmInfos);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.keySystem==b){d=t(d.initData||[]);for(var e=d.next();!e.done;e=d.next())e=e.value,gh(a.s,e.initDataType,e.initData)}}} 706function cn(a,b){var c,d,e,f,g;return J(function(h){if(1==h.g)return c=a.audio,d=a.video,e=function(k,l){var m,n,q;return J(function(p){if(1==p.g)return k?C(p,k.createSegmentIndex(),2):p.return(null);n=(m=k.segmentIndex.Lb(l))?m.next().value:null;if(!n)return p.return(null);q=n.startTime;return p.return(q)})},C(h,e(c,b),2);if(3!=h.g)return f=h.h,C(h,e(d,b),3);g=h.h;return null!=g&&null!=f?h.return(Math.max(g,f)):null!=g?h.return(g):null!=f?h.return(f):h.return(b)})} 707function zm(a){var b=a.Kf();if(a.u&&a.L&&a.C){var c=a.J;c.j=b;Vj(c);a.U&&(c=a.U,b||c.i||(c.i=!0),c.i&&b&&(c.j=!0),c.l=b);Sm(a)}b=(new Map).set("buffering",b);a.dispatchEvent(sm("buffering",b))}function Tm(a){var b=a.g.playbackRate;0!=b&&(a.J&&a.J.set(b),b=sm("ratechange"),a.dispatchEvent(b))} 708function Sm(a){if(a.u&&a.L){var b=a.u.g,c="playing";a.L.g==ef?c="buffering":a.g.paused?c="paused":a.g.ended&&(c="ended");var d=c;if(null==b.g)b.g={timestamp:Date.now()/1E3,state:d,duration:0},b=!0;else{var e=Date.now()/1E3;b.g.duration=e-b.g.timestamp;b.g.state==d?b=!1:(b.h.push(b.g),b.g={timestamp:e,state:d,duration:0},b=!0)}b&&(c=(new Map).set("newstate",c),a.dispatchEvent(sm("statechanged",c)))}} 709function hn(a){if(a.T()){var b=a.Ab();if(Number.isFinite(b.end)&&!(a.g.currentTime<b.start)){if(a.h.streaming.liveSync){var c=a.h.streaming.liveSyncMaxLatency;var d=a.h.streaming.liveSyncPlaybackRate}else a.i&&a.i.serviceDescription&&(c=a.i.serviceDescription.maxLatency||a.h.streaming.liveSyncMaxLatency,d=a.i.serviceDescription.maxPlaybackRate||a.h.streaming.liveSyncPlaybackRate);if(a.h.streaming.liveSync){var e=a.h.streaming.liveSyncMinLatency;var f=a.h.streaming.liveSyncMinPlaybackRate}else a.i&& 710a.i.serviceDescription&&(e=a.i.serviceDescription.minLatency||a.h.streaming.liveSyncMinLatency,f=a.i.serviceDescription.minPlaybackRate||a.h.streaming.liveSyncMinPlaybackRate);var g=a.g.playbackRate,h=b.end-a.g.currentTime,k=0;if(a.l==ln){var l=a.g.buffered;0<l.length&&(k=l.end(l.length-1),k=Math.max(d,k-b.end))}c&&d&&h-k>c?g!=d&&a.kf(d):e&&f&&h-k<e?g!=f&&a.kf(f):g!==a.J.ac()&&a.od()}}}
711function jn(a){if(a.g){var b=!1,c=a.g.currentTime/a.g.duration;isNaN(c)||(c=Math.round(100*c),isNaN(a.N)?(a.N=c,b=!0):(c=Math.max(a.N,c),a.N!=c&&(a.N=c,b=!0)));if(b){var d;0==a.N?d=sm("started"):25==a.N?d=sm("firstquartile"):50==a.N?d=sm("midpoint"):75==a.N?d=sm("thirdquartile"):100==a.N&&(d=sm("complete"));d&&a.dispatchEvent(d)}}}function gn(a){try{Gn(a,a.i)}catch(c){return xm(a,c),!1}var b=Ce(a.i.variants);b=a.Fa.create(b);a.o.setVariants(Array.from(b.values()));return!0} 712function Zm(a,b){b=void 0===b?!1:b;return gn(a)?a.o.chooseVariant(b):null} 713function pm(a){function b(g){var h="";g.video&&(h+="video:"+g.video.id);g.audio&&(h=h+(h?"&":"")+("audio:"+g.audio.id));return h}for(var c=Date.now()/1E3,d=!1,e=t(a.i.variants),f=e.next();!f.done;f=e.next())f=f.value,0<f.disabledUntilTime&&f.disabledUntilTime<=c&&(f.disabledUntilTime=0,d=!0,Xa("Re-enabled variant with "+b(f)));a.i.variants.every(function(g){return 0===g.disabledUntilTime})&&a.td.stop();d&&un(a,!0,void 0,!1,!1)} 714function un(a,b,c,d,e){b=void 0===b?!0:b;c=void 0===c?0:c;d=void 0===d?!1:d;e=void 0===e?!0:e;var f=Zm(a);f&&Vm(a,f,e,b,c,d)}function Vm(a,b,c,d,e,f){f=void 0===f?!1:f;var g=a.j.j;if(b==g)d&&Ek(a.j,b,d,e,!0);else{var h=a.u.h;h.h!=b&&(h.h=b,h.g.push({timestamp:Date.now()/1E3,id:b.id,type:"variant",fromAdaptation:c,bandwidth:b.bandwidth}));Ek(a.j,b,d,e,f,c);d=null;g&&(d=se(g));b=se(b);c?(c=(new Map).set("oldTrack",d).set("newTrack",b),a.K&&Gi(a.K,b,a.ze()),c=sm("adaptation",c),Hn(a,c)):In(a,d,b)}} 715function xn(a,b){var c=Array.from(a.g.audioTracks).find(function(d){return d.enabled});b.enabled=!0;b.id!==c.id&&(c.enabled=!1);c=Ae(c);b=Ae(b);In(a,c,b)}function dn(a,b,c){if(0==a.h.autoShowText)return!1;if(1==a.h.autoShowText)return!0;var d=nd(a.h.preferredTextLanguage);c=nd(c.language);if(2==a.h.autoShowText)return md(c,d);if(3==a.h.autoShowText)return a=nd(b.language),md(c,d)&&!md(a,c);Ta("Invalid autoShowText setting!");return!1}function Rm(a){var b=sm("trackschanged");Hn(a,b)} 716function In(a,b,c){b=(new Map).set("oldTrack",b).set("newTrack",c);a.K&&Gi(a.K,c,a.ze());c=sm("variantchanged",b);Hn(a,c)}function wn(a){var b=sm("textchanged");Hn(a,b)}function en(a){var b=sm("texttrackvisibility");Hn(a,b)}function fn(a){a.h.abr.enabled||om(a);var b=(new Map).set("newStatus",a.h.abr.enabled);Hn(a,sm("abrstatuschanged",b))}function om(a,b){b=void 0===b?!0:b;if(a.l==Xm){a.td.stop();for(var c=t(a.i.variants),d=c.next();!d.done;d=c.next())d.value.disabledUntilTime=0;b&&gn(a)}} 717r.qd=function(a,b){if(!this.h.abr.enabled||this.l===tm||!navigator.onLine)return!1;if(this.i.variants.some(function(f){return(f=f[a.type])&&f.id!==a.id?"audio"==a.type?a.language===f.language:!0:!1})){for(var c=t(this.i.variants),d=c.next();!d.done;d=c.next()){d=d.value;var e=d[a.type];e&&e.id===a.id&&(d.disabledUntilTime=Date.now()/1E3+b)}this.td.Pa(1);b=this.lb().video.reduce(function(f,g){return f+g.end-g.start}
717,0);un(this,!0,b,!0,!1);return!0}return!1}; 718function xm(a,b){var c,d,e;return J(function(f){switch(f.g){case 1:if(a.l==tm)return f.return();c=!0;if(!(a.ib&&a.i&&a.j)||3016!=b.code&&3014!=b.code&&3015!=b.code&&3018!=b.code){f.A(2);break}ra(f,3);return C(f,Xk(a.j),5);case 5:d=f.h;c=!d;ta(f,2);break;case 3:ua(f),c=!0;case 2:if(!c)return f.return();2===b.severity&&om(a,!1);e=sm("error",(new Map).set("detail",b));a.dispatchEvent(e);e.defaultPrevented&&(b.handled=!0);E(f)}})} 719function Jm(a,b,c){c=(new Map).set("detail",{schemeIdUri:c.schemeIdUri,value:c.value,startTime:c.startTime,endTime:c.endTime,id:c.id,eventElement:c.eventElement});a.dispatchEvent(sm(b,c))}function wm(a){if(!a.g.error)return null;var b=a.g.error.code;if(1==b)return null;var c=a.g.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new Q(2,3,3016,b,c,a.g.error.message)} 720function Pm(a,b){if(a.j){var c=sm("keystatuschanged");a.dispatchEvent(c);var d=Object.keys(b);c=1==d.length&&"00"==d[0];var e=!1;if(d.length){d=t(a.i.variants);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[];f.audio&&g.push(f.audio);f.video&&g.push(f.video);g=t(g);for(var h=g.next();!h.done;h=g.next()){var k=h.value;h=f.allowedByKeySystem;if(k.keyIds.size){f.allowedByKeySystem=!0;k=t(k.keyIds);for(var l=k.next();!l.done;l=k.next())if(l=l.value,(l=b[c?"00":l])||a.s.F)f.allowedByKeySystem= 721f.allowedByKeySystem&&!!l&&!Jn.includes(l)}h!=f.allowedByKeySystem&&(e=!0)}}}if(e&&(Rm(a),!gn(a)))return;(b=a.j.j)&&!b.allowedByKeySystem&&un(a)}}function Qm(a,b,c){if(a.G&&a.G.onExpirationUpdated)a.G.onExpirationUpdated(b,c);b=sm("expirationupdated");a.dispatchEvent(b)}function Um(a,b,c){0<b&&(a.T()||a.fg(b));b=a.getDuration();c<b&&(a.T()||a.fb(c))} 722function Gn(a,b){a=a.s?a.s.ud():{};var c=Object.keys(a);c=c.length&&"00"==c[0];var d=!1,e=!1,f=new Set,g=new Set;b=t(b.variants);for(var h=b.next();!h.done;h=b.next()){h=h.value;var k=[];h.audio&&k.push(h.audio);h.video&&k.push(h.video);k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.keyIds.size){l=t(l.keyIds);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=a[c?"00":m];n?Jn.includes(n)&&g.add(n):f.add(m)}}h.allowedByApplication?h.allowedByKeySystem&&(d=!0):e=!0}if(!d)throw a={hasAppRestrictions:e, 723missingKeys:Array.from(f),restrictedKeyStatuses:Array.from(g)},new Q(2,4,4012,a);}function Hn(a,b){J(function(c){if(1==c.g)return C(c,Promise.resolve(),2);a.l!=tm&&a.dispatchEvent(b);E(c)})}function zn(a){var b=new Set;a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c.language?b.add(nd(c.language)):b.add("und");return b} 724function yn(a){var b=new Map,c=new Map;a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e="und",f=[];d.language&&(e=nd(d.language));"variant"==d.type?f=d.audioRoles:f=d.roles;f&&f.length||(f=[""]);b.has(e)||b.set(e,new Set);f=t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,b.get(e).add(g),d.label&&(c.has(e)||c.set(e,new Map),c.get(e).set(g,d.label))}var h=[];b.forEach(function(k,l){k=t(k);for(var m=k.next();!m.done;m=k.next()){m=m.value;var n=null;c.has(l)&&c.get(l).has(m)&&(n=c.get(l).get(m)); 725h.push({language:l,role:m,label:n})}});return h}P("shaka.Player",U);U.prototype.setVideoContainer=U.prototype.Ih;U.prototype.getManifestParserFactory=U.prototype.Mg;U.prototype.getManifest=U.prototype.Lg;U.prototype.retryStreaming=U.prototype.Xe;U.prototype.setMaxHardwareResolution=U.prototype.Gh;U.prototype.addChaptersTrack=U.prototype.og;U.prototype.addThumbnailsTrack=U.prototype.qg;U.prototype.addTextTrackAsync=U.prototype.pg;U.prototype.getStats=U.prototype.getStats; 726U.prototype.getBufferedInfo=U.prototype.lb;U.prototype.getPresentationStartTimeAsDate=U.prototype.Ff;U.prototype.getPlayheadTimeAsDate=U.prototype.Pg;U.prototype.setTextTrackVisibility=U.prototype.Hh;U.prototype.getChapters=U.prototype.Eg;U.prototype.getChaptersTracks=U.prototype.Cf;U.prototype.isTextTrackVisible=U.prototype.De;U.prototype.selectVariantsByLabel=U.prototype.Fh;U.prototype.selectTextLanguage=U.prototype.Zf;U.prototype.selectAudioLanguage=U.prototype.Yf; 727U.prototype.getTextLanguages=U.prototype.Tg;U.prototype.getAudioLanguages=U.prototype.Bg;U.prototype.getTextLanguagesAndRoles=U.prototype.Ug;U.prototype.getAudioLanguagesAndRoles=U.prototype.Cg;U.prototype.selectVariantTrack=U.prototype.$e;U.prototype.selectTextTrack=U.prototype.$f;U.prototype.getThumbnails=U.prototype.Gf;U.prototype.getAllThumbnails=U.prototype.zg;U.prototype.getImageTracks=U.prototype.Ig;U.prototype.getTextTracks=U.prototype.ec;U.prototype.getVariantTracks=U.prototype.yb; 728U.prototype.cancelTrickPlay=U.prototype.od;U.prototype.trickPlay=U.prototype.kf;U.prototype.getPlaybackRate=U.prototype.vd;U.prototype.isBuffering=U.prototype.Kf;U.prototype.getKeyStatuses=U.prototype.ud;U.prototype.getActiveSessionsMetadata=U.prototype.ye;U.prototype.getExpiration=U.prototype.Kc;U.prototype.drmInfo=U.prototype.drmInfo;U.prototype.keySystem=U.prototype.keySystem;U.prototype.goToLive=U.prototype.$g;U.prototype.seekRange=U.prototype.Ab;U.prototype.isAudioOnly=U.prototype.dh; 729U.prototype.isInProgress=U.prototype.Ob;U.prototype.isLive=U.prototype.T;U.prototype.getAdManager=U.prototype.yg;U.prototype.getAssetUri=U.prototype.Ag;U.prototype.getNetworkingEngine=U.prototype.cc;U.prototype.getMediaElement=U.prototype.Og;U.prototype.getManifestType=U.prototype.ze;U.prototype.getLoadMode=U.prototype.Kg;U.prototype.resetConfiguration=U.prototype.zh;U.prototype.getBufferFullness=U.prototype.Dg;U.prototype.getConfiguration=U.prototype.getConfiguration;U.prototype.configure=U.prototype.configure; 730U.prototype.releaseAllMutexes=U.prototype.wh;U.prototype.load=U.prototype.load;U.prototype.updateStartTime=U.prototype.Nh;U.prototype.unload=U.prototype.Qd;U.prototype.detach=U.prototype.detach;U.prototype.attachCanvas=U.prototype.sg;U.prototype.attach=U.prototype.Cc; 731U.probeSupport=function(a){a=void 0===a?!0:a;var b,c,d,e,f,g;return J(function(h){if(1==h.g)return b={},a?C(h,Ah(),3):h.A(2);2!=h.g&&(b=h.h);var k={};if(Dd())for(var l in Ih)k[l]=!0;
731l=t(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]);for(var m=l.next();!m.done;m=l.next())m=m.value,k[m]=Dd()?!!Ih[m]:Ed(m);c=k;l='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",video/mp4; codecs="dvh1.20.01",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="ac-4",audio/mp4; codecs="opus",audio/mp4; codecs="flac",audio/mp4; codecs="dtsc",audio/mp4; codecs="dtse",audio/mp4; codecs="dtsx",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(w(Oc)); 732k={};l=t(l);for(m=l.next();!m.done;m=l.next()){m=m.value;k[m]=bd(m)?!0:Dd()?gb(m)||(ec(m)?!0:!1):Ed(m);var n=m.split(";")[0];k[n]=k[n]||k[m]}d=k;e={manifest:c,media:d,drm:b};f=Kn;for(g in f)e[g]=f[g]();return h.return(e)})}; 733U.isBrowserSupported=function(){window.Promise||Ta("A Promise implementation or polyfill is required");if(!(window.Promise&&window.Uint8Array&&Array.prototype.forEach)||Jd("Trident/"))return!1;var a=Td();return a&&9>a||!(window.MediaKeys&&window.navigator&&window.navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&window.MediaKeySystemAccess.prototype.getConfiguration)?!1:Dd()?!0:Ed("application/x-mpegurl")};U.setAdManagerFactory=function(a){nm=a}; 734U.registerSupportPlugin=function(a,b){Kn[a]=b};U.prototype.destroy=U.prototype.destroy;var tm=0,jm=1,Xm=2,ln=3;U.LoadMode={DESTROYED:tm,NOT_LOADED:jm,MEDIA_SOURCE:Xm,SRC_EQUALS:ln};U.version="v4.7.15";var Ln=["4","7"];Me=new function(a){this.g=a;this.i=Ne;this.h=Oe}(new Ke(Number(Ln[0]),Number(Ln[1])));var Jn=["output-restricted","internal-error"],Kn={},nm=null;function Mn(){this.h=[];this.j=this.i=this.g=0};function Nn(a,b,c){var d=this;this.g=a;this.h=b;this.j=c;this.i=!1;this.l=this.h.getVolume();this.m=new ab;this.m.D(this.h,google.ima.AdEvent.Type.PAUSED,function(){d.i=!0});this.m.D(this.h,google.ima.AdEvent.Type.RESUMED,function(){d.i=!1})}r=Nn.prototype;r.getDuration=function(){return this.g.getDuration()};r.getMinSuggestedDuration=function(){return this.g.getMinSuggestedDuration()};r.getRemainingTime=function(){return this.h.getRemainingTime()};r.isPaused=function(){return this.i}; 735r.isSkippable=function(){return 0<=this.g.getSkipTimeOffset()};r.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)};r.canSkipNow=function(){return this.h.getAdSkippableState()};r.skip=function(){return this.h.skip()};r.pause=function(){return this.h.pause()};r.play=function(){return this.h.resume()};r.getVolume=function(){return this.h.getVolume()};r.setVolume=function(a){this.j.volume=a;return this.h.setVolume(a)}; 736r.isMuted=function(){return 0==this.h.getVolume()};r.isLinear=function(){return this.g.isLinear()};r.resize=function(a,b){var c=!1,d=this.j;document.fullscreenEnabled?c=!!document.fullscreenElement:d.webkitSupportsFullscreen&&(c=d.webkitDisplayingFullscreen);this.h.resize(a,b,c?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)};r.setMuted=function(a){(this.j.muted=a)?(this.l=this.getVolume(),this.h.setVolume(0)):this.h.setVolume(this.l)}; 737r.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.g.getTitle()};r.getDescription=function(){return this.g.getDescription()};r.getVastMediaBitrate=function(){return this.g.getVastMediaBitrate()};r.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};r.getVastMediaWidth=function(){return this.g.getVastMediaWidth()}; 738r.getAdId=function(){return this.g.getAdId()};r.getCreativeAdId=function(){return this.g.getCreativeAdId()};r.getAdvertiserName=function(){return this.g.getAdvertiserName()};r.getMediaUrl=function(){return this.g.getMediaUrl()};r.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};r.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};r.release=function(){this.h=this.g=null};P("shaka.ads.ClientSideAd",Nn);Nn.prototype.release=Nn.prototype.release; 739Nn.prototype.getPodIndex=Nn.prototype.getPodIndex;Nn.prototype.getTimeOffset=Nn.prototype.getTimeOffset;Nn.prototype.getMediaUrl=Nn.prototype.getMediaUrl;Nn.prototype.getAdvertiserName=Nn.prototype.getAdvertiserName;Nn.prototype.getCreativeAdId=Nn.prototype.getCreativeAdId;Nn.prototype.getAdId=Nn.prototype.getAdId;Nn.prototype.getVastMediaWidth=Nn.prototype.getVastMediaWidth;Nn.prototype.getVastMediaHeight=Nn.prototype.getVastMediaHeight;Nn.prototype.getVastMediaBitrate=Nn.prototype.getVastMediaBitrate; 740Nn.prototype.getDescription=Nn.prototype.getDescription;Nn.prototype.getTitle=Nn.prototype.getTitle;Nn.prototype.getPositionInSequence=Nn.prototype.getPositionInSequence;Nn.prototype.getSequenceLength=Nn.prototype.getSequenceLength;Nn.prototype.setMuted=Nn.prototype.setMuted;Nn.prototype.resize=Nn.prototype.resize;Nn.prototype.isLinear=Nn.prototype.isLinear;Nn.prototype.isMuted=Nn.prototype.isMuted;Nn.prototype.setVolume=Nn.prototype.setVolume;Nn.prototype.getVolume=Nn.prototype.getVolume; 741Nn.prototype.play=Nn.prototype.play;Nn.prototype.pause=Nn.prototype.pause;Nn.prototype.skip=Nn.prototype.skip;Nn.prototype.canSkipNow=Nn.prototype.canSkipNow;Nn.prototype.getTimeUntilSkippable=Nn.prototype.getTimeUntilSkippable;Nn.prototype.isSkippable=Nn.prototype.isSkippable;Nn.prototype.isPaused=Nn.prototype.isPaused;Nn.prototype.getRemainingTime=Nn.prototype.getRemainingTime;Nn.prototype.getMinSuggestedDuration=Nn.prototype.getMinSuggestedDuration;Nn.prototype.getDuration=Nn.prototype.getDuration;function On(a,b,c,d,e){var f=this;this.o=a;this.i=b;this.F=!1;this.u=this.s=null;this.G=NaN;this.m=e;this.j=null;this.h=new ab;google.ima.settings.setLocale(c);google.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);this.C=new google.ima.AdDisplayContainer(this.o,this.i);this.C.initialize();this.l=new google.ima.AdsLoader(this.C);this.l.getSettings().setPlayerType("shaka-player");this.l.getSettings().setPlayerVersion("v4.7.15");this.g=null;this.B=d||new google.ima.AdsRenderingSettings;this.h.D(this.l, 742google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,function(g){Pn(f,g)});this.h.D(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,function(g){Qn(f,g)});this.h.D(this.i,"ended",function(){f.l.contentComplete()});this.h.ka(this.i,"play",function(){f.F=!0}
vendor: 2,627 bytes, lines 742-748
742)}On.prototype.configure=function(a){this.s=a};On.prototype.stop=function(){this.g&&this.g.stop();this.o&&hl(this.o)}; 743On.prototype.release=function(){this.stop();this.u&&this.u.disconnect();this.h&&this.h.release();this.g&&this.g.destroy();this.l.destroy();this.C.destroy()};function Qn(a,b){b.getError();b=(new Map).set("originalEvent",b);a.m(new sf("ad-error",b));Rn(a,null);a.m(new sf("ad-cue-points-changed",(new Map).set("cuepoints",[])))} 744function Pn(a,b){a.m(new sf("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.G)));if(a.s.customPlayheadTracker){var c={currentTime:a.i.currentTime};a.g=b.getAdsManager(c,a.B);a.i.muted?a.g.setVolume(0):a.g.setVolume(a.i.volume);a.h.D(a.i,"timeupdate",function(){a.i.duration&&(c.currentTime=a.i.currentTime)});a.h.D(a.i,"volumechange",function(){a.j&&(a.j.setVolume(a.i.volume),a.i.muted&&a.j.setMuted(!0))})}else a.g=b.getAdsManager(a.i,a.B);a.m(new sf("ima-ad-manager-loaded",(new Map).set("imaAdManager", 745a.g)));var d=a.g.getCuePoints();if(d.length){b=[];d=t(d);for(var e=d.next();!e.done;e=d.next())b.push({start:e.value,end:null});a.m(new sf("ad-cue-points-changed",(new Map).set("cuepoints",b)))}Sn(a);try{a.g.init(a.i.offsetWidth,a.i.offsetHeight,Tn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),a.h.D(a.i,"loadeddata",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Tn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),"ResizeObserver"in window?(a.u=new ResizeObserver(function(){a.g.resize(a.i.offsetWidth, 746a.i.offsetHeight,Tn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.u.observe(a.i)):a.h.D(document,"fullscreenchange",function(){a.g.resize(a.i.offsetWidth,a.i.offsetHeight,Tn(a)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)}),a.F?a.g.start():a.h.ka(a.i,"play",function(){a.F=!0;a.g.start()})}catch(f){Rn(a,null)}}function Tn(a){if(document.fullscreenEnabled)return!!document.fullscreenElement;a=a.i;return a.webkitSupportsFullscreen?a.webkitDisplayingFullscreen:!1} 747function Sn(a){function b(c,d){c=(new Map).set("originalEvent",c);a.m(new sf(d,c))}a.h.D(a.g,google.ima.AdErrorEvent.Type.AD_ERROR,function(c){Qn(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,function(c){Un(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.STARTED,function(c){Un(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.FIRST_QUARTILE,function(c){b(c,"ad-first-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.MIDPOINT,function(c){b(c,"ad-midpoint")});a.h.D(a.g,google.ima.AdEvent.Type.THIRD_QUARTILE, 748function(c){b(c,"ad-third-quartile")});a.h.D(a.g,google.ima.AdEvent.Type.COMPLETE,function(c){b(c,"ad-complete")}
vendor: 8,804 bytes, lines 748-767
748);a.h.D(a.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,function(c){Rn(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){Rn(a,c)});a.h.D(a.g,google.ima.AdEvent.Type.SKIPPED,function(c){b(c,"ad-skipped")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_CHANGED,function(c){b(c,"ad-volume-changed")});a.h.D(a.g,google.ima.AdEvent.Type.VOLUME_MUTED,function(c){b(c,"ad-muted")}); 749a.h.D(a.g,google.ima.AdEvent.Type.PAUSED,function(c){a.j&&(a.j.i=!0,b(c,"ad-paused"))});a.h.D(a.g,google.ima.AdEvent.Type.RESUMED,function(c){a.j&&(a.j.i=!1,b(c,"ad-resumed"))});a.h.D(a.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,function(c){a.j&&b(c,"ad-skip-state-changed")});a.h.D(a.g,google.ima.AdEvent.Type.CLICK,function(c){b(c,"ad-clicked")});a.h.D(a.g,google.ima.AdEvent.Type.AD_PROGRESS,function(c){b(c,"ad-progress")});a.h.D(a.g,google.ima.AdEvent.Type.AD_BUFFERING,function(c){b(c,"ad-buffering")}); 750a.h.D(a.g,google.ima.AdEvent.Type.IMPRESSION,function(c){b(c,"ad-impression")});a.h.D(a.g,google.ima.AdEvent.Type.DURATION_CHANGE,function(c){b(c,"ad-duration-changed")});a.h.D(a.g,google.ima.AdEvent.Type.USER_CLOSE,function(c){b(c,"ad-closed")});a.h.D(a.g,google.ima.AdEvent.Type.LOADED,function(c){b(c,"ad-loaded")});a.h.D(a.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,function(c){b(c,"all-ads-completed")});a.h.D(a.g,google.ima.AdEvent.Type.LINEAR_CHANGED,function(c){b(c,"ad-linear-changed")});a.h.D(a.g, 751google.ima.AdEvent.Type.AD_METADATA,function(c){b(c,"ad-metadata")});a.h.D(a.g,google.ima.AdEvent.Type.LOG,function(c){b(c,"ad-recoverable-error")});a.h.D(a.g,google.ima.AdEvent.Type.AD_BREAK_READY,function(c){b(c,"ad-break-ready")});a.h.D(a.g,google.ima.AdEvent.Type.INTERACTION,function(c){b(c,"ad-interaction")})} 752function Un(a,b){var c=b.getAd();c?(a.j=new Nn(c,a.g,a.i),b=(new Map).set("ad",a.j).set("sdkAdObject",c).set("originalEvent",b),a.m(new sf("ad-started",b)),a.j.isLinear()&&(a.o.setAttribute("ad-active","true"),a.s.customPlayheadTracker||a.i.pause(),a.i.muted?(b=a.j,b.l=a.i.volume,b.h.setVolume(0)):a.j.setVolume(a.i.volume))):Ta("The IMA SDK fired a "+b.type+" event with no associated ad. Unable to play ad!")} 753function Rn(a,b){a.m(new sf("ad-stopped",(new Map).set("originalEvent",b)));a.j&&a.j.isLinear()&&(a.o.removeAttribute("ad-active"),a.s.customPlayheadTracker||a.i.ended||a.i.play())};function V(a,b,c,d,e){this.h=a;this.g=e;this.i=b;this.j=c;this.l=d}r=V.prototype;r.getDuration=function(){return this.h.durationInSeconds};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.h.startTimeInSeconds+this.h.durationInSeconds-this.g.currentTime};r.isPaused=function(){return this.g.paused};r.isSkippable=function(){return this.h.skipOffset?!0:!1}; 754r.getTimeUntilSkippable=function(){if(!this.h.skipOffset)return this.getRemainingTime();var a=this.getRemainingTime()-this.h.skipOffset;return Math.max(a,0)};r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};r.skip=function(){this.g.currentTime+=this.getRemainingTime()};r.pause=function(){return this.g.pause()};r.play=function(){return this.g.play()};r.getVolume=function(){return this.g.volume};r.setVolume=function(a){this.g.volume=a};r.isMuted=function(){return this.g.muted}; 755r.isLinear=function(){return this.l};r.resize=function(){};r.setMuted=function(a){this.g.muted=a};r.getSequenceLength=function(){return this.j?this.j:1};r.getPositionInSequence=function(){return this.i?this.i:1};r.getTitle=function(){return this.h.adTitle};r.getDescription=function(){return""};r.getVastMediaBitrate=function(){return 0};r.getVastMediaHeight=function(){return 0};r.getVastMediaWidth=function(){return 0};r.getAdId=function(){return this.h.adId};r.getCreativeAdId=function(){return this.h.creativeId}; 756r.getAdvertiserName=function(){return""};r.getMediaUrl=function(){return null};r.getTimeOffset=function(){return 0};r.getPodIndex=function(){return 0};r.release=function(){this.j=this.i=this.g=this.h=null};P("shaka.ads.MediaTailorAd",V);V.prototype.release=V.prototype.release;V.prototype.getPodIndex=V.prototype.getPodIndex;V.prototype.getTimeOffset=V.prototype.getTimeOffset;V.prototype.getMediaUrl=V.prototype.getMediaUrl;V.prototype.getAdvertiserName=V.prototype.getAdvertiserName; 757V.prototype.getCreativeAdId=V.prototype.getCreativeAdId;V.prototype.getAdId=V.prototype.getAdId;V.prototype.getVastMediaWidth=V.prototype.getVastMediaWidth;V.prototype.getVastMediaHeight=V.prototype.getVastMediaHeight;V.prototype.getVastMediaBitrate=V.prototype.getVastMediaBitrate;V.prototype.getDescription=V.prototype.getDescription;V.prototype.getTitle=V.prototype.getTitle;V.prototype.getPositionInSequence=V.prototype.getPositionInSequence;V.prototype.getSequenceLength=V.prototype.getSequenceLength; 758V.prototype.setMuted=V.prototype.setMuted;V.prototype.resize=V.prototype.resize;V.prototype.isLinear=V.prototype.isLinear;V.prototype.isMuted=V.prototype.isMuted;V.prototype.setVolume=V.prototype.setVolume;V.prototype.getVolume=V.prototype.getVolume;V.prototype.play=V.prototype.play;V.prototype.pause=V.prototype.pause;V.prototype.skip=V.prototype.skip;V.prototype.canSkipNow=V.prototype.canSkipNow;V.prototype.getTimeUntilSkippable=V.prototype.getTimeUntilSkippable;V.prototype.isSkippable=V.prototype.isSkippable; 759V.prototype.isPaused=V.prototype.isPaused;V.prototype.getRemainingTime=V.prototype.getRemainingTime;V.prototype.getMinSuggestedDuration=V.prototype.getMinSuggestedDuration;V.prototype.getDuration=V.prototype.getDuration;function Vn(a,b,c,d){this.B=a;this.J=b;this.g=c;this.l=null;this.W=NaN;this.i=d;this.H=!1;this.u=null;this.j=[];this.L=[];this.K=this.C=this.h=null;this.F=new Map;this.m=[];this.s=[];this.N="";this.U=!0;this.G="";this.o=new ab}Vn.prototype.stop=function(){for(var a=t(this.m),b=a.next();!b.done;b=a.next())b=b.value,this.o.Cb(b.target,b.type,b.listener);Wn(this);this.m=[];this.s=[];this.N="";this.U=!0;this.G="";this.u=null;this.j=[];this.L=[];this.F.clear()}; 760Vn.prototype.release=function(){this.stop();this.o&&this.o.release()};Vn.prototype.onManifestUpdated=function(a){this.H=a;""!=this.N&&(Xn(this,this.N,this.U),this.U=!1)};Vn.prototype.getCuePoints=function(){for(var a=[],b=t(this.j),c=b.next();!c.done;c=b.next()){c=t(c.value.ads);for(var d=c.next();!d.done;d=c.next())d=d.value,a.push({start:d.startTimeInSeconds,end:d.startTimeInSeconds+d.durationInSeconds})}return a}; 761function Yn(a,b,c){var d,e,f,g,h,k,l,m,n,q,p;J(function(u){if(1==u.g)return d=Af([b],hf()),d.method="POST",c&&(e=JSON.stringify(c),d.body=Wf(e)),f=a.J.request(7,d),ra(u,2),C(u,f.promise,4);if(2!=u.g){g=u.h;h=Sf(g.data);k=JSON.parse(h);if(k.manifestUrl&&k.trackingUrl)l=new kc(b),m=new kc(k.trackingUrl),a.N=l.resolve(m).toString(),n=Date.now()/1E3,q=n-a.W,a.i(new sf("ads-loaded",(new Map).set("loadTime",q))),p=new kc(k.manifestUrl),a.l.resolve(l.resolve(p).toString()),a.l=null;else throw Error("Insufficient data from MediaTailor."); 762return ta(u,0)}ua(u);if(!a.G.length)return a.l.reject("MediaTailor request returned an error and there was no backup asset uri provided."),a.l=null,u.return();a.l.resolve(a.G);a.l=null;E(u)})} 763function Xn(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,x,z;J(function(y){if(1==y.g)return d=Af([b],hf()),e=a.J.request(7,d),ra(y,2),C(y,e.promise,4);if(2!=y.g){f=y.h;g=[];h=Sf(f.data);k=JSON.parse(h);if(0<k.avails.length){if(JSON.stringify(a.j)!=JSON.stringify(k.avails)){a.j=k.avails;l=t(a.j);for(m=l.next();!m.done;m=l.next())for(n=m.value,q=t(n.nonLinearAdsList),p=q.next();!p.done;p=q.next())for(u=p.value,v=t(u.nonLinearAdList),x=v.next();!x.done;x=v.next())z=x.value,Zn(a,z);g=a.getCuePoints();a.i(new sf("ad-cue-points-changed", 764(new Map).set("cuepoints",g)))}}else a.j.length&&a.i(new sf("ad-cue-points-changed",(new Map).set("cuepoints",g))),Wn(a),a.j=[];c&&(a.H||0<g.length)&&$n(a);return ta(y,0)}ua(y);E(y)})} 765function Zn(a,b){var c,d,e,f,g,h,k,l;J(function(m){if(1==m.g){if(!b.staticResource)return m.return();c=ao(b);if(d=a.F.get(c))return m.return();e=Af([b.staticResource],hf());f=a.J.request(7,e);ra(m,2);a.F.set(c,[]);return C(m,f.promise,4)}if(2!=m.g)return g=m.h,h=Sf(g.data),k=JSON.parse(h),l=k.apps,a.F.set(c,l),ta(m,0);ua(m);a.F.delete(c);E(m)})} 766function ao(a){return[a.adId,a.adParameters,a.adSystem,a.adTitle,a.creativeAdId,a.creativeId,a.creativeSequence,a.height,a.width,a.staticResource].join("")}function $n(a){bo(a);a.H||(co(a),a.o.D(a.g,"seeked",function(){co(a)}),a.o.D(a.g,"ended",function(){Wn(a)}));a.o.D(a.g,"timeupdate",function(){bo(a)})} 767function co(a){var b=a.g.currentTime;if(0!=b&&null==a.u){for(var c,d,e=t(a.j),f=e.next();!f.done;f=e.next()){f=f.value;for(var g=t(f.ads),h=g.next();!h.done;h=g.next())if(h=h.value,!d)h.startTimeInSeconds<b&&(d=h,c=f);else if(h.startTimeInSeconds<b&&h.startTimeInSeconds>d.startTimeInSeconds+d.durationInSeconds){d=h;c=f;break}}
vendor: 12,144 bytes, lines 767-792
767c&&d&&!a.L.includes(d.adId)&&(a.u=b,a.g.currentTime=c.startTimeInSeconds)}} 768function bo(a){if(a.g.duration&&(a.h||a.j.length)){var b=a.g.currentTime,c=!1;if(a.h){c=!0;var d=a.C,e=d.startTimeInSeconds+.5*d.durationInSeconds,f=d.startTimeInSeconds+.75*d.durationInSeconds;b>=d.startTimeInSeconds+.25*d.durationInSeconds&&!a.s.includes("firstQuartile")?(a.s.push("firstQuartile"),eo(a,"firstQuartile")):b>=e&&!a.s.includes("midpoint")?(a.s.push("midpoint"),eo(a,"midpoint")):b>=f&&!a.s.includes("thirdQuartile")&&(a.s.push("thirdQuartile"),eo(a,"thirdQuartile"));d=a.h.getRemainingTime(); 769e=a.h.getDuration();0<e&&(0>=d||d>e)&&Wn(a)}if(!a.h||!a.h.isLinear()){a:for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value;if(a.h&&a.h.isLinear())break;for(f=0;f<e.ads.length;f++){var g=e.ads[f],h=g.startTimeInSeconds+g.durationInSeconds;if(g.startTimeInSeconds<=b&&h>b){if(a.L.includes(g.adId)){if(a.g.ended)continue;a.g.currentTime=h;break a}Wn(a);a.K=e;a.h=new V(g,f+1,e.ads.length,!0,a.g);a.C=g;0===f&&eo(a,"breakStart");fo(a);break}}}if(!a.h)for(d=t(a.j),e=d.next();!e.done;e=d.next()){e=e.value; 770if(a.h)break;for(f=0;f<e.nonLinearAdsList.length;f++)if(g=e.nonLinearAdsList[f],g.nonLinearAdList.length){h=e.startTimeInSeconds;var k=a.F.get(ao(g.nonLinearAdList[0]));if(h<=b&&k&&k.length){Wn(a);h=a;k=t(k);for(var l=k.next();!l.done;l=k.next())if(l=l.value,l.data.source.length){var m=document.createElement("img");m.src=l.data.source[0].url;m.style.top=(l.placeholder.top||0)+"%";m.style.height=100-(l.placeholder.top||0)+"%";m.style.left=(l.placeholder.left||0)+"%";m.style.maxWidth=100-(l.placeholder.left|| 7710)+"%";m.style.objectFit="contain";m.style.position="absolute";h.B.appendChild(m)}a.K=e;a.h=new V(g,f+1,e.ads.length,!1,a.g);a.C=g;0===f&&eo(a,"breakStart");fo(a);break}}}c&&!a.h&&(b=a.g.currentTime,a.u&&a.u>b&&(a.g.currentTime=a.u),a.u=null)}}} 772function Wn(a){if(a.h){for(;a.B.lastChild;)a.B.removeChild(a.B.firstChild);a.H||a.L.push(a.C.adId);eo(a,"complete");for(var b=t(a.m),c=b.next();!c.done;c=b.next())c=c.value,a.o.Cb(c.target,c.type,c.listener);a.m=[];a.s=[];b=a.h.getPositionInSequence();c=a.h.getSequenceLength();b===c&&eo(a,"breakEnd");a.h=null;a.C=null;a.K=null}} 773function fo(a){var b=!1;a.g.paused?b=!0:(eo(a,"impression"),eo(a,"start"));a.m.push({target:a.g,type:"volumechange",listener:function(){a.g.muted&&eo(a,"mute")}});a.m.push({target:a.g,type:"volumechange",listener:function(){a.g.muted||eo(a,"unmute")}});a.m.push({target:a.g,type:"play",listener:function(){b?(eo(a,"impression"),eo(a,"start"),b=!1):eo(a,"resume")}});a.m.push({target:a.g,type:"pause",listener:function(){eo(a,"pause")}});for(var c=t(a.m),d=c.next();!d.done;d=c.next())d=d.value,a.o.D(d.target, 774d.type,d.listener)} 775function eo(a,b){var c=a.C.trackingEvents.find(function(e){return e.eventType==b});c||(c=a.K.adBreakTrackingEvents.find(function(e){return e.eventType==b}));if(c){c=t(c.beaconUrls);for(var d=c.next();!d.done;d=c.next())(d=d.value)&&""!=d&&(d=Af([d],hf()),d.method="POST",a.J.request(7,d))}switch(b){case "impression":a.i(new sf("ad-impression"));break;case "start":a.i(new sf("ad-started",(new Map).set("ad",a.h)));break;case "mute":a.i(new sf("ad-muted"));break;case "unmute":a.i(new sf("ad-volume-changed"));break; 776case "resume":a.i(new sf("ad-resumed"));break;case "pause":a.i(new sf("ad-paused"));break;case "firstQuartile":a.i(new sf("ad-first-quartile"));break;case "midpoint":a.i(new sf("ad-midpoint"));break;case "thirdQuartile":a.i(new sf("ad-third-quartile"));break;case "complete":a.i(new sf("ad-complete"));a.i(new sf("ad-stopped"));break;case "breakStart":a.B.setAttribute("ad-active","true");break;case "breakEnd":a.B.removeAttribute("ad-active")}};function go(a,b){this.g=a;this.i=null;this.h=b}r=go.prototype;r.getDuration=function(){return this.i?this.i.duration:-1};r.getMinSuggestedDuration=function(){return this.getDuration()};r.getRemainingTime=function(){return this.i?this.i.duration-this.i.currentTime:-1};r.isPaused=function(){return this.h.paused};r.isSkippable=function(){return this.g.isSkippable()};r.getTimeUntilSkippable=function(){var a=this.g.getSkipTimeOffset();a=this.getRemainingTime()-a;return Math.max(a,0)}; 777r.canSkipNow=function(){return 0==this.getTimeUntilSkippable()};r.skip=function(){this.h.currentTime+=this.getRemainingTime()};r.pause=function(){return this.h.pause()};r.play=function(){return this.h.play()};r.getVolume=function(){return this.h.volume};r.setVolume=function(a){this.h.volume=a};r.isMuted=function(){return this.h.muted};r.isLinear=function(){return!0};r.resize=function(){};r.setMuted=function(a){this.h.muted=a}; 778r.getSequenceLength=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getTotalAds()};r.getPositionInSequence=function(){var a=this.g.getAdPodInfo();return null==a?1:a.getAdPosition()};r.getTitle=function(){return this.g.getTitle()};r.getDescription=function(){return this.g.getDescription()};r.getVastMediaBitrate=function(){return 0};r.getVastMediaHeight=function(){return this.g.getVastMediaHeight()};r.getVastMediaWidth=function(){return this.g.getVastMediaWidth()};r.getAdId=function(){return this.g.getAdId()}; 779r.getCreativeAdId=function(){return this.g.getCreativeAdId()};r.getAdvertiserName=function(){return this.g.getAdvertiserName()};r.getMediaUrl=function(){return null};r.getTimeOffset=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getTimeOffset()};r.getPodIndex=function(){var a=this.g.getAdPodInfo();return null==a?0:a.getPodIndex()};r.release=function(){this.h=this.i=this.g=null};P("shaka.ads.ServerSideAd",go);go.prototype.release=go.prototype.release;go.prototype.getPodIndex=go.prototype.getPodIndex; 780go.prototype.getTimeOffset=go.prototype.getTimeOffset;go.prototype.getMediaUrl=go.prototype.getMediaUrl;go.prototype.getAdvertiserName=go.prototype.getAdvertiserName;go.prototype.getCreativeAdId=go.prototype.getCreativeAdId;go.prototype.getAdId=go.prototype.getAdId;go.prototype.getVastMediaWidth=go.prototype.getVastMediaWidth;go.prototype.getVastMediaHeight=go.prototype.getVastMediaHeight;go.prototype.getVastMediaBitrate=go.prototype.getVastMediaBitrate;go.prototype.getDescription=go.prototype.getDescription; 781go.prototype.getTitle=go.prototype.getTitle;go.prototype.getPositionInSequence=go.prototype.getPositionInSequence;go.prototype.getSequenceLength=go.prototype.getSequenceLength;go.prototype.setMuted=go.prototype.setMuted;go.prototype.resize=go.prototype.resize;go.prototype.isLinear=go.prototype.isLinear;go.prototype.isMuted=go.prototype.isMuted;go.prototype.setVolume=go.prototype.setVolume;go.prototype.getVolume=go.prototype.getVolume;go.prototype.play=go.prototype.play;go.prototype.pause=go.prototype.pause; 782go.prototype.skip=go.prototype.skip;go.prototype.canSkipNow=go.prototype.canSkipNow;go.prototype.getTimeUntilSkippable=go.prototype.getTimeUntilSkippable;go.prototype.isSkippable=go.prototype.isSkippable;go.prototype.isPaused=go.prototype.isPaused;go.prototype.getRemainingTime=go.prototype.getRemainingTime;go.prototype.getMinSuggestedDuration=go.prototype.getMinSuggestedDuration;go.prototype.getDuration=go.prototype.getDuration;function ho(a,b,c,d){var e=this;this.s=a;this.l=b;this.j=null;this.F=NaN;this.i=d;this.G=!1;this.u=this.m=this.o=null;this.B="";this.C=[];this.h=new ab;a=new google.ima.dai.api.UiSettings;a.setLocale(c);this.g=new google.ima.dai.api.StreamManager(this.l,this.s,a);this.i(new sf("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g)));this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,function(f){io(e,f)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,function(){e.B.length? 783e.j.resolve(e.B):e.j.reject("IMA Stream request returned an error and there was no backup asset uri provided.");e.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(f){f=f.getAd();e.m=new go(f,e.l);e.u&&(e.m.i=e.u);e.i(new sf("ad-started",(new Map).set("ad",e.m)));e.s.setAttribute("ad-active","true")});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,function(){e.s.removeAttribute("ad-active"); 784var f=e.l.currentTime;e.o&&e.o>f&&(e.l.currentTime=e.o,e.o=null)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,function(f){e.u=f.getStreamData().adProgressData;e.m&&(e.m.i=e.u)});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,function(){e.i(new sf("ad-first-quartile"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,function(){e.i(new sf("ad-midpoint"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,function(){e.i(new sf("ad-third-quartile"))}); 785this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,function(){e.i(new sf("ad-complete"));e.i(new sf("ad-stopped"));e.s.removeAttribute("ad-active");e.m=null});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,function(){e.i(new sf("ad-skipped"));e.i(new sf("ad-stopped"))});this.h.D(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,function(f){var g=f.getStreamData();f=[];g=t(g.cuepoints);for(var h=g.next();!h.done;h=g.next())h=h.value,f.push({start:h.start,end:h.end}); 786e.C=f;e.i(new sf("ad-cue-points-changed",(new Map).set("cuepoints",f)))})}r=ho.prototype;r.configure=function(){};r.stop=function(){this.B="";this.o=null;this.C=[]};r.release=function(){this.stop();this.h&&this.h.release()};r.onCueMetadataChange=function(a){if(a.key&&a.data){var b={};b[a.key]=a.data;this.g.onTimedMetadata(b)}};r.getCuePoints=function(){return this.C}; 787function io(a,b){a.i(new sf("ads-loaded",(new Map).set("loadTime",Date.now()/1E3-a.F)));b=b.getStreamData().url;a.j.resolve(b);a.j=null;a.G||a.h.D(a.l,"seeked",function(){var c=a.l.currentTime;if(0!=c){a.g.streamTimeForContentTime(c);var d=a.g.previousCuePointForStreamTime(c);d&&!d.played&&(a.o=c,a.l.currentTime=d.start)}})};function W(){tf.call(this);this.g=this.i=this.h=null;this.j=new Mn;this.m=navigator.language;this.l=null}na(W,tf);r=W.prototype;r.setLocale=function(a){this.m=a};r.configure=function(a){this.l=a;this.h&&this.h.configure(this.l);this.g&&this.g.configure(this.l)};r.initClientSide=function(a,b,c){var d=this;if(!window.google||!google.ima||!google.ima.AdsLoader)throw new Q(2,10,1E4);this.h&&this.h.release();this.h=new On(a,b,this.m,c,function(e){return jo(d,e)});this.h.configure(this.l)}; 788r.release=function(){this.h&&(this.h.release(),this.h=null);this.i&&(this.i.release(),this.i=null);this.g&&(this.g.release(),this.g=null);tf.prototype.release.call(this)};r.onAssetUnload=function(){this.h&&this.h.stop();this.i&&this.i.stop();this.g&&this.g.stop();this.dispatchEvent(new sf("ad-stopped"));this.j=new Mn};r.requestClientSideAds=function(a){if(!this.h)throw new Q(1,10,10001);var b=this.h;b.g&&b.g.destroy();b.l&&b.l.contentComplete();b.G=Date.now()/1E3;b.l.requestAds(a)}; 789r.updateClientSideAdsRenderingSettings=function(a){if(!this.h)throw new Q(1,10,10001);var b=this.h;b.B=a;b.g&&b.g.updateAdsRenderingSettings(b.B)};r.initMediaTailor=function(a,b,c){var d=this;this.i&&this.i.release();this.i=new Vn(a,b,c,function(e){return jo(d,e)})};r.requestMediaTailorStream=function(a,b,c){if(!this.i)throw new Q(1,10,10005);var d=this.i;c=void 0===c?"":c;d.l?a=Promise.reject(new Q(1,10,10004)):(d.l=new kf,Yn(d,a,b),d.G=c||"",d.W=Date.now()/1E3,a=d.l);return a}; 790r.initServerSide=function(a,b){var c=this;if(!window.google||!google.ima||!google.ima.dai)throw new Q(2,10,10002);this.g&&this.g.release();this.g=new ho(a,b,this.m,function(d){return jo(c,d)});this.g.configure(this.l)}; 791r.requestServerSideStream=function(a,b){b=void 0===b?"":b;if(!this.g)throw new Q(1,10,10003);a.adTagParameters||(a.adTagParameters={});var c=a.adTagParameters;(c.mpt||c.mpv)&&Ta('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 overriden.');a.adTagParameters.mpt="shaka-player";a.adTagParameters.mpv="v4.7.15";c=this.g;c.j?a=Promise.reject(new Q(1,10,10004)):(a instanceof google.ima.dai.api.LiveStreamRequest&& 792(c.G=!0),c.j=new kf,c.g.requestStream(a),c.B=b||"",c.F=Date.now()/1E3,a=c.j);return a};
vendor: 4,402 bytes, lines 792-800
792r.replaceServerSideAdTagParameters=function(a){if(!this.g)throw new Q(1,10,10003);(a.mpt||a.mpv)&&Ta('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 overriden.');a.mpt="Shaka Player";a.mpv="v4.7.15";this.g.g.replaceAdTagParameters(a)}; 793r.getServerSideCuePoints=function(){Le("AdManager.getServerSideCuePoints","Please use getCuePoints function.");return this.getCuePoints()};r.getCuePoints=function(){var a=[];this.g&&(a=a.concat(this.g.getCuePoints()));this.i&&(a=a.concat(this.i.getCuePoints()));return a};r.getStats=function(){var a=this.j;return{loadTimes:a.h,started:a.g,playedCompletely:a.i,skipped:a.j}};r.onManifestUpdated=function(a){if(this.i)this.i.onManifestUpdated(a)}; 794r.onDashTimedMetadata=function(a){if(this.g&&"urn:google:dai:2018"==a.schemeIdUri){var b=a.schemeIdUri,c=a.eventElement?a.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(b,c,a.startTime)}};r.onHlsTimedMetadata=function(a,b){this.g&&this.g.g.processMetadata("ID3",a.data,b)};r.onCueMetadataChange=function(a){if(this.g)this.g.onCueMetadataChange(a)}; 795function jo(a,b){if(b&&b.type)switch(b.type){case "ads-loaded":a.j.h.push(b.loadTime);break;case "ad-started":a.j.g++;break;case "ad-complete":a.j.i++;break;case "ad-skipped":a.j.j++}a.dispatchEvent(b)}P("shaka.ads.AdManager",W);W.prototype.onCueMetadataChange=W.prototype.onCueMetadataChange;W.prototype.onHlsTimedMetadata=W.prototype.onHlsTimedMetadata;W.prototype.onDashTimedMetadata=W.prototype.onDashTimedMetadata;W.prototype.onManifestUpdated=W.prototype.onManifestUpdated;W.prototype.getStats=W.prototype.getStats; 796W.prototype.getCuePoints=W.prototype.getCuePoints;W.prototype.getServerSideCuePoints=W.prototype.getServerSideCuePoints;W.prototype.replaceServerSideAdTagParameters=W.prototype.replaceServerSideAdTagParameters;W.prototype.requestServerSideStream=W.prototype.requestServerSideStream;W.prototype.initServerSide=W.prototype.initServerSide;W.prototype.requestMediaTailorStream=W.prototype.requestMediaTailorStream;W.prototype.initMediaTailor=W.prototype.initMediaTailor; 797W.prototype.updateClientSideAdsRenderingSettings=W.prototype.updateClientSideAdsRenderingSettings;W.prototype.requestClientSideAds=W.prototype.requestClientSideAds;W.prototype.onAssetUnload=W.prototype.onAssetUnload;W.prototype.release=W.prototype.release;W.prototype.initClientSide=W.prototype.initClientSide;W.prototype.configure=W.prototype.configure;W.prototype.setLocale=W.prototype.setLocale;W.ADS_LOADED="ads-loaded";W.AD_STARTED="ad-started";W.AD_FIRST_QUARTILE="ad-first-quartile"; 798W.AD_MIDPOINT="ad-midpoint";W.AD_THIRD_QUARTILE="ad-third-quartile";W.AD_COMPLETE="ad-complete";W.AD_STOPPED="ad-stopped";W.AD_SKIPPED="ad-skipped";W.AD_VOLUME_CHANGED="ad-volume-changed";W.AD_MUTED="ad-muted";W.AD_PAUSED="ad-paused";W.AD_RESUMED="ad-resumed";W.AD_SKIP_STATE_CHANGED="ad-skip-state-changed";W.CUEPOINTS_CHANGED="ad-cue-points-changed";W.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded";W.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded";W.AD_CLICKED="ad-clicked";W.AD_PROGRESS="ad-progress"; 799W.AD_BUFFERING="ad-buffering";W.AD_IMPRESSION="ad-impression";W.AD_DURATION_CHANGED="ad-duration-changed";W.AD_CLOSED="ad-closed";W.AD_LOADED="ad-loaded";W.ALL_ADS_COMPLETED="all-ads-completed";W.AD_LINEAR_CHANGED="ad-linear-changed";W.AD_METADATA="ad-metadata";W.AD_RECOVERABLE_ERROR="ad-recoverable-error";W.AD_ERROR="ad-error";W.AD_BREAK_READY="ad-break-ready";W.AD_INTERACTION="ad-interaction";nm=function(){return new W};function ko(a,b,c,d,e){if(d>=e)return null;for(var f=-1,g=-1,h=0;h<c.length;h++)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){f=h;break}for(h=c.length-1;0<=h;h--)if(c[h].some(function(A){return null!=A&&""!=A.g.trim()})){g=h;break}if(-1===f||-1===g)return null;for(var k=h=!1,l="white",m="black",n=lo(d,e,h,k,l,m);f<=g;f++){for(var q=c[f],p=-1,u=-1,v=0;v<q.length;v++)if(null!=q[v]&&""!==q[v].g.trim()){p=v;break}for(v=q.length-1;0<=v;v--)if(null!=q[v]&&""!==q[v].g.trim()){u=v;break}if(-1=== 800p||-1===u)q=mo(d,e),a.nestedCues.push(q);else{for(;p<=u;p++)if(v=q[p]){var x=v.l,z=v.i,y=v.j,B=v.h;if(x!=h||z!=k||y!=l||B!=m)n.payload&&a.nestedCues.push(n),n=lo(d,e,x,z,y,B),h=x,k=z,l=y,m=B;n.payload+=v.g}else n.payload+=" ";n.payload&&a.nestedCues.push(n);f!==g&&(n=mo(d,e),a.nestedCues.push(n));n=lo(d,e,h,k,l,m)}
800}return a.nestedCues.length?{cue:a,stream:b}:null} 801function lo(a,b,c,d,e,f){a=new Eb(a,b,"");c&&a.textDecoration.push("underline");d&&(a.fontStyle="italic");a.color=e;a.backgroundColor=f;return a}function mo(a,b){a=new Eb(a,b,"");a.lineBreak=!0;return a}function no(a,b,c,d,e){this.g=a;this.l=b;this.i=c;this.h=d;this.j=e};function oo(a,b){this.i=[];this.g=1;this.h=0;this.u=a;this.s=b;this.j=this.m=!1;this.l="white";this.o="black";po(this)}function qo(a,b,c){var d="CC"+((a.u<<1|a.s)+1),e=new Eb(b,c,"");e.lineInterpretation=1;var f=ro.get(a.g);f&&(e.line=f);return ko(e,d,a.i,b,c)}function po(a){so(a,0,15);a.g=1} 802function to(a,b,c){if(!(32>c||127<c)){var d="";switch(b){case uo:d=vo.has(c)?vo.get(c):String.fromCharCode(c);break;case wo:d=xo.get(c);break;case yo:a.i[a.g].pop();d=zo.get(c);break;case Ao:a.i[a.g].pop(),d=Bo.get(c)}d&&a.i[a.g].push(new no(d,a.m,a.j,a.o,a.l))}}function Co(a,b,c,d){if(!(0>c||0>b))if(b>=c)for(--d;0<=d;d--)a.i[b+d]=a.i[c+d].map(function(f){return f});else for(var e=0;e<d;e++)a.i[b+e]=a.i[c+e].map(function(f){return f})}function so(a,b,c){for(var d=0;d<=c;d++)a.i[b+d]=[]} 803var uo=0,wo=1,yo=2,Ao=3,vo=new Map([[39,"\u2019"],[42,"\u00e1"],[92,"\u00e9"],[92,"\u00e9"],[94,"\u00ed"],[95,"\u00f3"],[96,"\u00fa"],[123,"\u00e7"],[124,"\u00f7"],[125,"\u00d1"],[126,"\u00f1"],[127,"\u2588"]]),xo=new Map([[48,"\u00ae"],[49,"\u00b0"],[50,"\u00bd"],[51,"\u00bf"],[52,"\u2122"],[53,"\u00a2"],[54,"\u00a3"],[55,"\u266a"],[56,"\u00e0"],[57," "],[58,"\u00e8"],[59,"\u00e2"],[60,"\u00ea"],[61,"\u00ee"],[62,"\u00f4"],[63,"\u00fb"]]),zo=new Map([[32,"\u00c1"],[33,"\u00c9"],[34,"\u00d3"],[35, 804"\u00da"],[36,"\u00dc"],[37,"\u00fc"],[38,"\u2018"],[39,"\u00a1"],[40,"*"],[41,"'"],[42,"\u2500"],[43,"\u00a9"],[44,"\u2120"],[45,"\u00b7"],[46,"\u201c"],[47,"\u201d"],[48,"\u00c0"],[49,"\u00c2"],[50,"\u00c7"],[51,"\u00c8"],[52,"\u00ca"],[53,"\u00cb"],[54,"\u00eb"],[55,"\u00ce"],[56,"\u00cf"],[57,"\u00ef"],[58,"\u00d4"],[59,"\u00d9"],[60,"\u00f9"],[61,"\u00db"],[62,"\u00ab"],[63,"\u00bb"]]),Bo=new Map([[32,"\u00c3"],[33,"\u00e3"],[34,"\u00cd"],[35,"\u00cc"],[36,"\u00ec"],[37,"\u00d2"],[38,"\u00f2"], 805[39,"\u00d5"],[40,"\u00f5"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"\u00c4"],[49,"\u00e4"],[50,"\u00d6"],[51,"\u00f6"],[52,"\u00df"],[53,"\u00a5"],[54,"\u00a4"],[55,"\u2502"],[56,"\u00c5"],[57,"\u00e5"],[58,"\u00d8"],[59,"\u00f8"],[60,"\u250c"],[61,"\u2510"],[62,"\u2514"],[63,"\u2518"]]),ro=new Map([[1,10],[2,15.33],[3,20.66],[4,26],[5,31.33],[6,36.66],[7,42],[8,47.33],[9,52.66],[10,58],[11,63.33],[12,68.66],[13,74],[14,79.33],[15,84.66]]);function Do(a,b){this.h=Eo;this.o=new oo(a,b);this.i=new oo(a,b);this.g=this.j=new oo(a,b);this.l=0;this.m=null}function Fo(a,b,c){a.g=a.i;var d=a.g,e=null;a.h!==Go&&a.h!==Ho&&(e=qo(d,a.l,c),c=a.i,c.g=0<c.h?c.h:0,so(c,0,15),c=a.j,c.g=0<c.h?c.h:0,so(c,0,15),d.g=15);a.h=Go;d.h=b;return e}function Io(a){a.h=Jo;a.g=a.j;a.g.h=0}function Ko(a){Ua("Cea608DataChannel","CEA-608 text mode entered, but is unsupported");a.g=a.o;a.h=Ho} 806var Eo=0,Jo=1,Go=3,Ho=4,Lo="black green blue cyan red yellow magenta black".split(" "),Mo="white green blue cyan red yellow magenta white_italics".split(" ");function No(a,b){this.J=b;this.N=a;this.K=this.l=!1;this.m=this.o=this.G=this.L=this.H=0;this.F=Oo;this.i=[];this.g=this.h=this.j=0;this.C=this.u=!1;this.B="white";this.s="black";Po(this)}function Po(a){a.i=[];for(var b=0;16>b;b++)a.i.push(Qo())}function Qo(){for(var a=[],b=0;42>b;b++)a.push(null);return a}function Ro(a,b){So(a)&&(a.i[a.h][a.g]=new no(b,a.C,a.u,a.s,a.B),a.g++)}function So(a){var b=a.g<a.m&&0<=a.g;return a.h<a.o&&0<=a.h&&b}No.prototype.isVisible=function(){return this.l}; 807function To(a,b,c){var d=new Eb(a.j,b,"");d.textAlign=a.F===Uo?"left":a.F===Vo?"right":Hb;var e=d.region;a.J&&(e.id+="svc"+a.J);e.id+="win"+a.N;e.height=a.o;e.width=a.m;e.heightUnits=2;e.widthUnits=2;e.viewportAnchorX=a.H;e.viewportAnchorY=a.L;e.viewportAnchorUnits=a.K?$b:2;switch(a.G){case Wo:e.regionAnchorX=0;e.regionAnchorY=0;break;case Xo:e.regionAnchorX=50;e.regionAnchorY=0;break;case Yo:e.regionAnchorX=100;e.regionAnchorY=0;break;case Zo:e.regionAnchorX=0;e.regionAnchorY=50;break;case $o:e.regionAnchorX= 80850;e.regionAnchorY=50;break;case dp:e.regionAnchorX=100;e.regionAnchorY=50;break;case ep:e.regionAnchorX=0;e.regionAnchorY=100;break;case fp:e.regionAnchorX=50;e.regionAnchorY=100;break;case gp:e.regionAnchorX=100,e.regionAnchorY=100}if(c=ko(d,"svc"+c,a.i,a.j,b))a.j=b;return c}var Uo=0,Vo=1,Oo=2,Wo=0,Xo=1,Yo=2,Zo=3,$o=4,dp=5,ep=6,fp=7,gp=8;function hp(){this.i=[];this.h=null;this.g=0}function ip(a,b){3===b.type?(a.g=2*(b.value&63)-1,a.h=[]):a.h&&(0<a.g&&(a.h.push(b),a.g--),0===a.g&&(a.i.push(new jp(a.h)),a.h=null,a.g=0))}function jp(a){this.g=0;this.h=a}jp.prototype.da=function(){return this.g<this.h.length};jp.prototype.na=function(){return this.g};function kp(a){if(!a.da())throw new Q(2,2,3E3);return a.h[a.g++]}
vendor: 4,484 bytes, lines 808-818
808jp.prototype.skip=function(a){if(this.g+a>this.h.length)throw new Q(2,2,3E3);this.g+=a};function lp(a){this.i=a;this.h=[null,null,null,null,null,null,null,null];this.g=null} 809function mp(a,b,c,d){if(128<=c&&135>=c)d=c&7,a.h[d]&&(a.g=a.h[d]);else{if(136===c){c=kp(b).value;b=null;c=t(np(a,c));for(var e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=To(e,d,a.i)),Po(e);return b}if(137===c)for(b=kp(b).value,b=t(np(a,b)),c=b.next();!c.done;c=b.next())c=a.h[c.value],c.isVisible()||(c.j=d),c.l=!0;else{if(138===c){c=kp(b).value;b=null;c=t(np(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()&&(b=To(e,d,a.i)),e.l=!1;return b}if(139===c){c=kp(b).value; 810b=null;c=t(np(a,c));for(e=c.next();!e.done;e=c.next())e=a.h[e.value],e.isVisible()?b=To(e,d,a.i):e.j=d,e.l=!e.l;return b}if(140===c)return b=kp(b).value,op(a,b,d);if(143===c)return d=op(a,255,d),pp(a),d;if(144===c)b.skip(1),d=kp(b).value,a.g&&(a.g.u=0<(d&128),a.g.C=0<(d&64));else if(145===c)d=kp(b).value,c=kp(b).value,b.skip(1),a.g&&(b=qp((c&48)>>4,(c&12)>>2,c&3),a.g.B=qp((d&48)>>4,(d&12)>>2,d&3),a.g.s=b);else if(146===c)d=kp(b).value,b=kp(b).value,a.g&&(a=a.g,a.h=d&15,a.g=b&63);else if(151===c)b.skip(1), 811b.skip(1),d=kp(b).value,b.skip(1),a.g&&(a.g.F=d&3);else if(152<=c&&159>=c){c=(c&15)-8;e=null!==a.h[c];if(!e){var f=new No(c,a.i);f.j=d;a.h[c]=f}d=kp(b).value;f=kp(b).value;var g=kp(b).value,h=kp(b).value,k=kp(b).value;b=kp(b).value;e&&0===(b&7)||(b=a.h[c],b.h=0,b.g=0,b.C=!1,b.u=!1,b.B="white",b.s="black");b=a.h[c];b.l=0<(d&32);b.L=f&127;b.H=g;b.G=(h&240)>>4;b.K=0<(f&128);b.o=(h&15)+1;b.m=(k&63)+1;a.g=a.h[c]}}}return null} 812function np(a,b){for(var c=[],d=0;8>d;d++)1===(b&1)&&a.h[d]&&c.push(d),b>>=1;return c}function op(a,b,c){var d=null;b=t(np(a,b));for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=a.h[e];f.isVisible()&&(d=To(f,c,a.i));a.h[e]=null}return d}function pp(a){a.g=null;a.h=[null,null,null,null,null,null,null,null]}function qp(a,b,c){var d={0:0,1:0,2:1,3:1};a=d[a];b=d[b];c=d[c];return rp[a<<2|b<<1|c]} 813var sp=new Map([[32," "],[33,"\u00a0"],[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"]]),rp="black blue green cyan red magenta yellow white".split(" ");function tp(){this.h=[];this.g=[];this.i=new hp;this.l=0;this.m=new Map([["CC1",new Do(0,0)],["CC2",new Do(0,1)],["CC3",new Do(1,0)],["CC4",new Do(1,1)]]);this.s=this.o=0;this.j=new Map;this.B=!0;this.u=new Set;up(this)}tp.prototype.clear=function(){this.l=0;this.h=[];this.g=[];var a=this.i;a.i=[];a.h=[];a.g=0;up(this);a=t(this.j.values());for(var b=a.next();!b.done;b=a.next())pp(b.value)}; 814function up(a){a.o=0;a.s=0;for(var b=t(a.m.values()),c=b.next();!c.done;c=b.next())c=c.value,c.h=Eo,c.g=c.j,c.m=null,po(c.i),po(c.j),po(c.o);a.B=!0} 815tp.prototype.extract=function(a,b){if(this.B){for(var c=t(this.m.values()),d=c.next();!d.done;d=c.next())d.value.l=b;this.B=!1}a=new Zf(a,0);if(!(8>a.getLength())&&181===a.ea()&&49===a.va()&&1195456820===a.M()&&3===a.ea()&&(c=a.ea(),0!==(c&64)))for(c&=31,a.skip(1),d=0;d<c;d++){var e=a.ea(),f=(e&4)>>2,g=a.ea(),h=a.ea();f&&(e&=3,0===e||1===e?this.h.push({pts:b,type:e,Ga:g,jb:h,order:this.h.length}):(this.g.push({pts:b,type:e,value:g,order:this.g.length}),this.g.push({pts:b,type:2,value:h,order:this.g.length})))}}; 816tp.prototype.decode=function(){function a(e,f){return e.pts-f.pts||e.order-f.order}var b=[];this.h.sort(a);this.g.sort(a);for(var c=t(this.h),d=c.next();!d.done;d=c.next())(d=vp(this,d.value))&&b.push(d);c=t(this.g);for(d=c.next();!d.done;d=c.next())ip(this.i,d.value);c=t(this.i.i);for(d=c.next();!d.done;d=c.next())d=wp(this,d.value),b.push.apply(b,w(d));this.i.i=[];this.h=[];this.g=[];return b}; 817function vp(a,b){var c=b.type;if(16===(b.Ga&112)){var d=b.Ga>>3&1;0===c?a.o=d:a.s=d}d="CC"+((c<<1|(c?a.s:a.o))+1);c=a.m.get(d);if(255===b.Ga&&255===b.jb||!b.Ga&&!b.jb||!xp(b.Ga)||!xp(b.jb))return 45<=++a.l&&up(a),null;a.l=0;b.Ga&=127;b.jb&=127;var e=b.Ga;if(1<=e&&15>=e||!b.Ga&&!b.jb)return null;e=null;if(16===(b.Ga&112))a:{a.u.add(d),d=b.Ga;a=b.jb;if(c.m===(d<<8|a))c.m=null;else if(c.m=d<<8|a,16===(d&240)&&64===(a&192)){b=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(d&7)<<1|a>>5&1];var f=(a&30)>>1;d= 818"white";e=!1;7>f?d=Mo[f]:7===f&&(e=!0);a=1===(a&1);
818c.h!==Ho&&(f=c.g,c.h===Go&&b!==f.g&&(c=1+b-f.h,Co(f,c,1+f.g-f.h,f.h),so(f,0,c-1),so(f,b+1,15-b)),f.g=b,f.m=a,f.j=e,f.l=d,f.o="black")}else if(17===(d&247)&&32===(a&240))c.g.m=!1,c.g.j=!1,c.g.l="white",to(c.g,uo,32),d=!1,b=Mo[(a&14)>>1],"white_italics"===b&&(b="white",d=!0),c.g.m=1===(a&1),c.g.j=d,c.g.l=b;else if(16===(d&247)&&32===(a&240)||23===(d&247)&&45===(a&255))b="black",0===(d&7)&&(b=Lo[(a&14)>>1]),c.g.o=b;else if(17===(d&247)&&48===(a&240))to(c.g, 819wo,a);else if(18===(d&246)&&32===(a&224))to(c.g,d&1?Ao:yo,a);else if(20===(d&246)&&32===(a&240)){a=b.pts;d=null;switch(b.jb){case 32:Io(c);break;case 33:c=c.g;c.i[c.g].pop();break;case 37:d=Fo(c,2,a);break;case 38:d=Fo(c,3,a);break;case 39:d=Fo(c,4,a);break;case 40:to(c.g,uo,32);break;case 41:c.h=2;c.g=c.i;c.g.h=0;c.l=a;break;case 42:po(c.o);Ko(c);break;case 43:Ko(c);break;case 44:b=c.i;d=null;c.h!==Ho&&(d=qo(b,c.l,a));so(b,0,15);break;case 45:b=c.g;c.h!==Go?d=null:(d=qo(b,c.l,a),e=b.g-b.h+1,Co(b, 820e-1,e,b.h),so(b,0,e-1),so(b,b.g,15-b.g),c.l=a);break;case 46:so(c.j,0,15);break;case 47:b=null,c.h!==Ho&&(b=qo(c.i,c.l,a)),d=c.j,c.j=c.i,c.i=d,Io(c),c.l=a,d=b}e=d;break a}e=null}else a=b.jb,to(c.g,uo,b.Ga),to(c.g,uo,a);return e} 821function wp(a,b){var c=[];try{for(;b.da();){var d=kp(b).value,e=(d&224)>>5,f=d&31;7===e&&0!=f&&(e=kp(b).value&63);if(0!=e){a.u.add("svc"+e);a.j.has(e)||a.j.set(e,new lp(e));for(var g=a.j.get(e),h=b.na();b.na()-h<f;){e=b;var k=kp(e),l=k.value,m=k.pts;if(16===l){var n=kp(e);l=l<<16|n.value}if(0<=l&&31>=l){var q=m;if(g.g){var p=g.g;e=null;switch(l){case 8:!So(p)||0>=p.g&&0>=p.h||(0>=p.g?(p.g=p.m-1,p.h--):p.g--,p.i[p.h][p.g]=null);break;case 13:p.isVisible()&&(e=To(p,q,g.i));if(p.h+1>=p.o){q=p;for(var u= 8220,v=1;16>v;v++,u++)q.i[u]=q.i[v];for(v=0;1>v;v++,u++)q.i[u]=Qo()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(e=To(p,q,g.i));p.i[p.h]=Qo();p.g=0;break;case 12:p.isVisible()&&(e=To(p,q,g.i)),Po(p),q=p,q.h=0,q.g=0}var x=e}else x=null}else if(128<=l&&159>=l)x=mp(g,e,l,m);else{if(4096<=l&&4127>=l)q=l&255,8<=q&&15>=q?e.skip(1):16<=q&&23>=q?e.skip(2):24<=q&&31>=q&&e.skip(3);else if(4224<=l&&4255>=l)q=l&255,128<=q&&135>=q?e.skip(4):136<=q&&143>=q&&e.skip(5);else if(32<=l&&127>=l)e=l,g.g&&(127===e?Ro(g.g, 823"\u266a"):Ro(g.g,String.fromCharCode(e)));else if(160<=l&&255>=l)g.g&&Ro(g.g,String.fromCharCode(l));else if(4128<=l&&4223>=l){if(e=l&255,g.g)if(sp.has(e)){var z=sp.get(e);Ro(g.g,z)}else Ro(g.g,"_")}else 4256<=l&&4351>=l&&g.g&&(160!=(l&255)?Ro(g.g,"_"):Ro(g.g,"[CC]"));x=null}(e=x)&&c.push(e)}}}}catch(y){if(y instanceof Q&&3E3===y.code)Ua("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.");else throw y;}return c}function xp(a){for(var b=0;a;)b^=a&1,a>>=1;return 1===b} 824tp.prototype.getStreams=function(){return Array.from(this.u)};P("shaka.cea.CeaDecoder",tp);zb=function(){return new tp};function yp(a){for(var b=[],c=a,d=a=0;d<c.length;)2==a&&3==c[d]?(a=0,c=[].concat(w(c)),c.splice(d,1),c=new Uint8Array(c)):0==c[d]?a++:a=0,d++;a=c;for(d=0;d<a.length;){for(c=0;255==a[d];)c+=255,d++;c+=a[d++];for(var e=0;255==a[d];)e+=255,d++;e+=a[d++];4==c&&b.push(a.subarray(d,d+e));d+=e}return b};function zp(){this.j=new Map;this.i=this.h=0;this.g=Ap} 825zp.prototype.init=function(a){function b(f){f=f.name;f in Bp&&(c.g=Bp[f])}var c=this,d=[],e=[];(new bg).box("moov",gg).box("mvex",gg).O("trex",function(f){var g=f.reader;g.skip(4);g.skip(4);f=g.M();g=g.M();c.h=f;c.i=g}).box("trak",gg).O("tkhd",function(f){f=ii(f.reader,f.version);d.push(f.trackId)}).box("mdia",gg).O("mdhd",function(f){f=gi(f.reader,f.version);e.push(f.timescale)}).box("minf",gg).box("stbl",gg).O("stsd",ig).box("avc1",b).box("avc3",b).box("hev1",b).box("hvc1",b).box("dvh1",b).box("dvhe", 826b).box("encv",jg).box("sinf",gg).box("frma",function(f){f=li(f.reader).ja;
826f in Bp&&(c.g=Bp[f])}).parse(a,!0);if(!d.length||!e.length||d.length!=e.length)throw new Q(2,2,2010);this.g==Ap&&Ta("Unable to determine bitstream format for CEA parsing!");d.forEach(function(f,g){c.j.set(f,e[g])})}; 827zp.prototype.parse=function(a){var b=this;if(this.g==Ap)return[];var c=[],d=this.h,e=this.i,f=0,g=[],h=null,k=9E4;(new bg).box("moof",function(l){f=l.start;g=[];gg(l)}).box("traf",gg).O("trun",function(l){l=hi(l.reader,l.version,l.flags);g.push(l)}).O("tfhd",function(l){l=ei(l.reader,l.flags);d=l.yf||b.h;e=l.xg||b.i;l=l.trackId;b.j.has(l)&&(k=b.j.get(l))}).O("tfdt",function(l){h=fi(l.reader,l.version).baseMediaDecodeTime}).box("mdat",function(l){if(null===h)throw Ta("Unable to find base media decode time for CEA captions!"), 828new Q(2,2,2010);Cp(b,l.reader,h,k,d,e,f-l.start-8,g,c)}).parse(a,!1);return c}; 829function Cp(a,b,c,d,e,f,g,h,k){var l=0,m=f,n=h.map(function(u){return u.Xf});n=[].concat.apply([],w(n));n.length&&(m=n[0].sampleSize||f);for(b.skip(g+h[0].wg);b.da();){g=b.M();var q=b.ea(),p=null;p=!1;h=1;switch(a.g){case Dp:p=q&31;p=6==p;break;case Ep:h=2;b.skip(1);p=q>>1&63;p=39==p||40==p;break;default:return}if(p)for(q=0,l<n.length&&(q=n[l].Pd||0),q=(c+q)/d,h=t(yp(b.pb(g-h))),p=h.next();!p.done;p=h.next())k.push({packet:p.value,pts:q});else try{b.skip(g-h)}catch(u){break}m-=g+4;0==m&&(c=l<n.length? 830c+(n[l].Ye||e):c+e,l++,l<n.length?m=n[l].sampleSize||f:m=f)}}P("shaka.cea.Mp4CeaParser",zp);var Ap=0,Dp=1,Ep=2,Bp={avc1:Dp,avc3:Dp,hev1:Ep,hvc1:Ep,dvh1:Ep,dvhe:Ep};yb["video/mp4"]=function(){return new zp};function Fp(){this.g=null}Fp.prototype.init=function(){};Fp.prototype.parse=function(a){this.g?this.g.clearData():this.g=new wi;var b=[];a=ob(a);if(!Di(a))return b;a=this.g.parse(a);var c=a.Jc(),d=a.yd();a=[];switch(c.video){case "avc":a.push(6);break;case "hvc":a.push(39),a.push(40)}if(!a.length)return b;c=t(d);for(d=c.next();!d.done;d=c.next())if(d=d.value,a.includes(d.type)&&null!=d.time)for(var e=t(yp(d.data)),f=e.next();!f.done;f=e.next())b.push({packet:f.value,pts:d.time});return b}; 831P("shaka.cea.TsCeaParser",Fp);yb["video/mp2t"]=function(){return new Fp};function Gp(a,b,c){var d=Hp(a),e=null;a=[];var f=[],g=null,h=new Set(d.map(function(k){return k.keyId}));h.delete(null);if(1<h.size)throw new Q(2,4,4010);if(!b){f=d.filter(function(k){return"urn:mpeg:dash:sea:2012"==k.Wc});if(1<f.length)throw new Q(2,4,4050);f.length&&(g=Ip(f[0]));f=d.filter(function(k){return"urn:mpeg:dash:mp4protection:2011"==k.Wc?(e=k.init||e,!1):"urn:mpeg:dash:sea:2012"!=k.Wc});f.length&&(a=Jp(e,f,c,h),0==a.length&&(a=[Ec("",e)]))}if(d.length&&!g&&(b||!f.length))for(a=[],b=t(Object.values(c)), 832c=b.next();!c.done;c=b.next())c=c.value,"org.w3.clearkey"!=c&&a.push(Ec(c,e));if(h=Array.from(h)[0]||null)for(b=t(a),c=b.next();!c.done;c=b.next())for(c=t(c.value.initData),d=c.next();!d.done;d=c.next())d.value.keyId=h;return{xf:h,Zh:e,drmInfos:a,de:g,Bf:!0}} 833function Kp(a,b,c,d){var e=Gp(a,c,d);if(b.Bf){a=1==b.drmInfos.length&&!b.drmInfos[0].keySystem;c=0==e.drmInfos.length;if(0==b.drmInfos.length||a&&!c)b.drmInfos=e.drmInfos;b.Bf=!1}else if(0<e.drmInfos.length&&(b.drmInfos=b.drmInfos.filter(function(f){return e.drmInfos.some(function(g){return g.keySystem==f.keySystem})}),0==b.drmInfos.length))throw new Q(2,4,4008);return e.xf||b.xf} 834function Lp(a){var b=0,c=ub(a),d=c.getUint32(b,!0);if(d!=a.byteLength)return[];a:{a=b+6;for(b=[];a<c.byteLength-1;){d=c.getUint16(a,!0);a+=2;var e=c.getUint16(a,!0);a+=2;if(0!=(e&1)||e+a>c.byteLength){c=[];break a}var f=ob(c,a,e);b.push({type:d,value:f});a+=e}c=b}return c} 835function Mp(a){a=t(a.getElementsByTagName("DATA"));for(var b=a.next();!b.done;b=a.next()){b=t(b.value.childNodes);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c instanceof Element&&"LA_URL"==c.tagName)return c.textContent}return""} 836function Np(a){var b=xg(a.node,"https://dashif.org/CPS","Laurl");if(b&&b.textContent)return b.textContent;a=xg(a.node,"urn:microsoft:playready","pro");if(!a)return"";a=pg(a.textContent);a=Lp(a).filter(function(c){return c.type===Op})[0];if(!a)return"";a=Tf(a.value,!0);return(a=Og(a,"WRMHEADER"))?Mp(a):""} 837function Jp(a,b,c,d){var e=[];b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g=c[f.Wc];if(g){var h;if(h=xg(f.node,"urn:microsoft:playready","pro")){h=pg(h.textContent);var k=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);h=[{initData:ug(h,k,new Set,0),initDataType:"cenc",keyId:f.keyId}]}else h=null;k=null;if("urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e"===f.Wc)if(k=d,0==k.size)k=null;else{var l=new Uint8Array([16,119,239,236,192,178,77,2,172,227,60,30,82, 838226,251,75]),m=new Uint8Array([]);k=[{initData:ug(m,l,k,1),initDataType:"cenc",keyId:f.keyId}]}h=Ec(g,f.init||a||h||k);if(g=Pp.get(g))h.licenseServerUri=g(f);e.push(h)}}return e}function Hp(a){var b=[];a=t(a);for(var c=a.next();!c.done;c=a.next())(c=Qp(c.value))&&b.push(c);return b} 839function Qp(a){var b=a.getAttribute("schemeIdUri"),c=Ag(a,"urn:mpeg:cenc:2013","default_KID"),d=yg(a,"urn:mpeg:cenc:2013","pssh").map(Cg);if(!b)return null;b=b.toLowerCase();if(c&&(c=c.replace(/-/g,"").toLowerCase(),c.includes(" ")))throw new Q(2,4,4009);var e=[];try{e=d.map(function(f){return{initDataType:"cenc",initData:pg(f),keyId:null}})}catch(f){throw new Q(2,4,4007);}return{node:a,Wc:b,keyId:c,init:0<e.length?e:null}} 840function Ip(a){if(!window.crypto||!window.crypto.subtle)throw Ta("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new Q(2,4,4042);var b=xg(a.node,"urn:mpeg:dash:schema:sea:2012","SegmentEncryption");if(!b)throw new Q(2,4,4051);if("urn:mpeg:dash:sea:aes128-cbc:2013"!=b.getAttribute("schemeIdUri"))throw new Q(2,4,4051);b=xg(a.node,"urn:mpeg:dash:schema:sea:2012","CryptoPeriod");if(!b)throw new Q(2,4,4051);a=b.getAttribute("IV");b=b.getAttribute("keyUriTemplate"); 841if(!a||!b)throw new Q(2,4,4051);a=qg(a.substr(2));if(16!=a.byteLength)throw new Q(2,4,4048);return{jh:b,iv:a}} 842var Op=1,Pp=(new Map).set("com.widevine.alpha",function(a){var b=xg(a.node,"https://dashif.org/CPS","Laurl");return b&&b.textContent?b.textContent:(a=xg(a.node,"urn:microsoft","laurl"))?a.getAttribute("licenseUrl")||"":""}).set("com.microsoft.playready",Np).set("com.microsoft.playready.recommendation",Np).set("com.microsoft.playready.softw
842are",Np).set("com.microsoft.playready.hardware",Np).set("org.w3.clearkey",function(a){var b=xg(a.node,"https://dashif.org/CPS","Laurl");return b&&b.textContent? 843b.textContent:(a=xg(a.node,"http://dashif.org/guidelines/clearKey","Laurl"))&&"EME-1.0"===a.getAttribute("Lic_type")&&a.textContent?a.textContent:""});function Rp(a,b,c,d,e,f){var g={RepresentationID:b,Number:c,SubNumber:d,Bandwidth:e,Time:f};return a.replace(/\$(RepresentationID|Number|SubNumber|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,function(h,k,l,m){if("$$"==h)return"$";var n=g[k];if(null==n)return h;"RepresentationID"==k&&l&&(l=void 0);"Time"==k&&"bigint"!=typeof n&&(.2<=Math.abs(n-Math.round(n))&&Ta("Calculated $Time$ values must be close to integers"),n=Math.round(n));switch(m){case void 0:case "d":case "i":case "u":h=n.toString(); 844break;case "o":h=n.toString(8);break;case "x":h=n.toString(16);break;case "X":h=n.toString(16).toUpperCase();break;default:h=n.toString()}l=window.parseInt(l,10)||1;return Array(Math.max(0,l-h.length)+1).join("0")+h})} 845function Sp(a,b){var c=Tp(a,b,"timescale"),d=1;c&&(d=Jg(c)||1);var e=Tp(a,b,"duration");c=Jg(e||"");"image"==a.I.contentType&&(c=Lg(e||""));c&&(c/=d);var f=Tp(a,b,"startNumber");e=Number(Tp(a,b,"presentationTimeOffset"))||0;var g=Kg(f||"");if(null==f||null==g)g=1;var h=Up(a,b,"SegmentTimeline");b=null;if(h){b=d;a=a.aa.duration||Infinity;f=g;h=wg(h,"S");for(var k=[],l=-e,m=0;m<h.length;++m){var n=h[m],q=h[m+1],p=Eg(n,"t",Kg),u=Eg(n,"d",Kg),v=Eg(n,"r",Ig);n=Eg(n,"k",Ig)||0;null!=p&&(p-=e);if(!u)break; 846p=null!=p?p:l;v=v||0;if(0>v)if(q){q=Eg(q,"t",Kg);if(null==q)break;else if(p>=q)break;v=Math.ceil((q-p)/u)-1}else{if(Infinity==a)break;else if(p/b>=a)break;v=Math.ceil((a*b-p)/u)-1}0<k.length&&p!=l&&(k[k.length-1].end=p/b);for(q=0;q<=v;++q)l=p+u,k.push({start:p/b,end:l/b,Lh:p,cb:n,Eh:k.length+f}),p=l}b=k}return{timescale:d,wa:c,ad:g,rb:e/d||0,lf:e,timeline:b}}function Vp(a,b){return[b(a.I),b(a.la),b(a.qa)].filter(kd)} 847function Tp(a,b,c){b=Vp(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=d.value.getAttribute(c));d=b.next());return a}function Up(a,b,c){b=Vp(a,b);a=null;b=t(b);for(var d=b.next();!d.done&&!(a=vg(d.value,c));d=b.next());return a} 848function Wp(a,b,c,d,e,f){for(var g=Ag(a,"http://www.w3.org/1999/xlink","href"),h=Ag(a,"http://www.w3.org/1999/xlink","actuate")||"onRequest",k=t(Array.from(a.attributes)),l=k.next();!l.done;l=k.next())l=l.value,"http://www.w3.org/1999/xlink"==l.namespaceURI&&a.removeAttributeNS(l.namespaceURI,l.localName);if(5<=f)return mf(new Q(2,4,4028));if("onLoad"!=h)return mf(new Q(2,4,4027));var m=Dc([d],[g]);return e.request(0,Af(m,b)).ma(function(n){n=Qg(n.data,a.tagName);if(!n)return mf(new Q(2,4,4001,g)); 849for(;a.childNodes.length;)a.removeChild(a.childNodes[0]);for(;n.childNodes.length;){var q=n.childNodes[0];n.removeChild(q);a.appendChild(q)}n=t(Array.from(n.attributes));for(q=n.next();!q.done;q=n.next())a.setAttributeNode(q.value.cloneNode(!1));return Xp(a,b,c,m[0],e,f+1)})} 850function Xp(a,b,c,d,e,f){f=void 0===f?0:f;if(Ag(a,"http://www.w3.org/1999/xlink","href")){var g=Wp(a,b,c,d,e,f);c&&(g=g.ma(void 0,function(){return Xp(a,b,c,d,e,f)}));return g}g=[];for(var h=t(Array.from(a.childNodes)),k=h.next();!k.done;k=h.next())k=k.value,k instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Ag(k,"http://www.w3.org/1999/xlink","href")?a.removeChild(k):"SegmentTimeline"!=k.tagName&&g.pu
vendor: 4,720 bytes, lines 850-860
850sh(Xp(k,b,c,d,e,f)));return qf(g).ma(function(){return a})};function Yp(a,b,c,d,e,f,g){var h,k=(new bg).O("sidx",function(l){h=Zp(b,d,e,f,g,c,l)});a&&k.parse(a);if(h)return h;throw new Q(2,3,3004);} 851function Zp(a,b,c,d,e,f,g){var h=[];g.reader.skip(4);var k=g.reader.M();if(0==k)throw new Q(2,3,3005);if(0==g.version){var l=g.reader.M();var m=g.reader.M()}else l=g.reader.lc(),m=g.reader.lc();g.reader.skip(2);var n=g.reader.va();a=a+g.size+m;for(m=0;m<n;m++){var q=g.reader.M(),p=(q&2147483648)>>>31;q&=2147483647;var u=g.reader.M();g.reader.skip(4);if(1==p)throw new Q(2,3,3006);h.push(new Ph(l/k+c,(l+u)/k+c,function(){return f},a,a+q-1,b,c,d,e));l+=u;a+=q}g.parser.stop();return h};function $p(a){this.h=ub(a);this.g=new Zf(this.h,0)}$p.prototype.da=function(){return this.g.da()}; 852function aq(a){var b=bq(a);if(7<b.length)throw new Q(2,3,3002);var c=0;b=t(b);for(var d=b.next();!d.done;d=b.next())c=256*c+d.value;b=bq(a);a:{d=t(cq);for(var e=d.next();!e.done;e=d.next())if(mb(b,new Uint8Array(e.value))){d=!0;break a}d=!1}if(d)b=a.h.byteLength-a.g.na();else{if(8==b.length&&b[1]&224)throw new Q(2,3,3001);for(e=d=0;e<b.length;e++){var f=b[e];d=0==e?f&(1<<8-b.length)-1:256*d+f}b=d}b=a.g.na()+b<=a.h.byteLength?b:a.h.byteLength-a.g.na();d=ub(a.h,a.g.na(),b);a.g.skip(b);return new dq(c, 853d)}function bq(a){var b=a.g.na(),c=a.g.ea();if(0==c)throw new Q(2,3,3002);c=8-Math.floor(Math.log2(c));a.g.skip(c-1);return ob(a.h,b,c)}var cq=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function dq(a,b){this.id=a;this.g=b} 854function eq(a){if(8<a.g.byteLength)throw new Q(2,3,3002);if(8==a.g.byteLength&&a.g.getUint8(0)&224)throw new Q(2,3,3001);for(var b=0,c=0;c<a.g.byteLength;c++){var d=a.g.getUint8(c);b=256*b+d}return b};function fq(a,b,c,d,e,f,g,h,k){function l(){return e}var m=[];a=new $p(a.g);for(var n=null,q=null;a.da();){var p=aq(a);if(187==p.id){var u=gq(p);u&&(p=c*u.Mh,u=b+u.vh,null!=n&&m.push(new Ph(n+g,p+g,l,q,u-1,f,g,h,k)),n=p,q=u)}}null!=n&&m.push(new Ph(n+g,d+g,l,q,null,f,g,h,k));return m} 855function gq(a){var b=new $p(a.g);a=aq(b);if(179!=a.id)throw new Q(2,3,3013);a=eq(a);b=aq(b);if(183!=b.id)throw new Q(2,3,3012);b=new $p(b.g);for(var c=0;b.da();){var d=aq(b);if(241==d.id){c=eq(d);break}}return{Mh:a,vh:c}};function hq(a,b,c){b=Up(a,b,"Initialization");if(!b)return null;var d=a.I.$a(),e=b.getAttribute("sourceURL");e&&(d=Dc(d,[e]));e=0;var f=null;if(b=Eg(b,"range",Hg))e=b.start,f=b.end;c=new Nh(function(){return d},e,f,iq(a),null,null,c);c.codecs=a.I.codecs;c.mimeType=a.I.mimeType;return c} 856function jq(a,b,c){var d=Number(Tp(a,kq,"presentationTimeOffset"))||0,e=Tp(a,kq,"timescale"),f=1;e&&(f=Jg(e)||1);var g=d/f||0,h=hq(a,kq,c);lq(a,h);var k=wd(a);return{$b:function(){var l=Up(k,kq,"RepresentationIndex");var m=k.I.$a();l&&(l=l.getAttribute("sourceURL"))&&(m=Dc(m,[l]));l=mq(k);return nq(k,b,h,m,l.start,l.end,g)}}} 857function nq(a,b,c,d,e,f,g){var h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K,H;return J(function(I){if(1==I.g)return h=a.presentationTimeline,k=!a.wb||!a.aa.Ce,l=a.aa.start,m=a.aa.duration,n=a.I.mimeType.split("/")[1],q=b,p=null,u=[q(d,e,f,!1),"webm"==n?q(c.Z(),c.Oa,c.sa,!0):null],q=null,C(I,Promise.all(u),2);v=I.h;x=v[0];z=v[1]||null;y=null;B=l-g;A=l;D=m?l+m:Infinity;if("mp4"==n)var G=Yp(x,e,d,c,B,A,D);else{G=new $p(z);if(440786851!=aq(G).id)throw new Q(2,3,3008);var M=aq(G);if(408125543!=M.id)throw new Q(2, 8583,3009);G=M.g.byteOffset;M=new $p(M.g);for(var L=null;M.da();){var N=aq(M);if(357149030==N.id){L=N;break}}if(!L)throw new Q(2,3,3010);L=new $p(L.g);N=1E6;for(M=null;L.da();){var O=aq(L);if(2807729==O.id)N=eq(O);else if(17545==O.id)if(4==O.g.byteLength)M=O.g.getFloat32(0);else if(8==O.g.byteLength)M=O.g.getFloat64(0);else throw new Q(2,3,3003);}if(null==M)throw new Q(2,3,3011);L=N/1E9;M*=L;N=aq(new $p(x));if(475249515!=N.id)throw new Q(2,3,3007);G=fq(N,G,L,M,d,c,B,A,D)}y=G;F=t(y);for(K=F.next();!K.done;K= 859F.next())H=K.value,H.codecs=a.I.codecs,H.mimeType=a.I.mimeType;h.Sc(y);p=new Qj(y);k&&p.Yb(A,D,!0);return I.return(p)})}function kq(a){return a.Yc}function mq(a){var b=Up(a,kq,"RepresentationIndex");a=Tp(a,kq,"indexRange");a=Hg(a||"");b&&(a=Eg(b,"range",Hg,a));return a}function lq(a,b){oq(a,b);if(!mq(a))throw new Q(2,4,4002);}function oq(a,b){var c=a.I.mimeType.split("/")[1];if(a.I.contentType!=Ic&&"mp4"!=c&&"webm"!=c)throw new Q(2,4,4006);if("webm"==c&&!b)throw new Q(2,4,4005);} 860function iq(a){var b=a.I;return{bandwidth:a.bandwidth,audioSamplingRate:b.audioSamplingRate,codecs:b.codecs,contentType:b.contentType,frameRate:b.frameRate||null,height:b.height||null,mimeType:b.mimeType,channelsCount:b.Md,pixelAspectRatio:b.pixelAspectRatio||null,width:b.
860width||null}};function pq(a,b,c){var d=hq(a,qq,c),e=rq(a);if(!e.wa&&!e.timeline&&1<e.hc.length)throw new Q(2,4,4002);if(!e.wa&&!a.aa.duration&&!e.timeline&&1==e.hc.length)throw new Q(2,4,4002);if(e.timeline&&0==e.timeline.length)throw new Q(2,4,4002);var f=null,g=null;a.qa.id&&a.I.id&&(g=b[a.qa.id+","+a.I.id])&&(f=g.segmentIndex);var h=sq(a.aa.start,a.aa.duration,a.I.$a,e,d,c,a.I.mimeType,a.I.codecs);b=!f;f?f.Rc(h,a.presentationTimeline.bb()):f=new Qj(h);a.presentationTimeline.Sc(h);a.wb&&a.aa.Ce||f.Yb(a.aa.start, 861a.aa.duration?a.aa.start+a.aa.duration:Infinity,b);g&&(g.segmentIndex=f);return{$b:function(){f&&0!=f.mb()||f.Jd(h);return Promise.resolve(f)}}}function qq(a){return a.Bb}function rq(a){var b=tq(a);a=Sp(a,qq);var c=a.ad;0==c&&(c=1);var d=0;a.wa?d=a.wa*(c-1):a.timeline&&0<a.timeline.length&&(d=a.timeline[0].start);return{wa:a.wa,startTime:d,ad:c,rb:a.rb,timeline:a.timeline,hc:b}} 862function sq(a,b,c,d,e,f,g,h){var k=d.hc.length;d.timeline&&d.timeline.length!=d.hc.length&&(k=Math.min(d.timeline.length,d.hc.length));for(var l=a-d.rb,m=b?a+b:Infinity,n=[],q=d.startTime,p={},u=0;u<k;p={yc:p.yc,vc:p.vc},u++){p.vc=d.hc[u];var v=q;q=void 0;q=null!=d.wa?v+d.wa:d.timeline?d.timeline[u].end:v+b;p.yc=null;v=new Ph(a+v,a+q,function(x){return function(){null==x.yc&&(x.yc=Dc(c(),[x.vc.nh]));return x.yc}}(p),p.vc.start,p.vc.end,e,l,a,m,[],"",null,null,Qh,f);v.codecs=h;v.mimeType=g;n.push(v)}return n} 863function tq(a){return[a.I.Bb,a.la.Bb,a.qa.Bb].filter(kd).map(function(b){return wg(b,"SegmentURL")}).reduce(function(b,c){return 0<b.length?b:c}).map(function(b){b.getAttribute("indexRange")&&!a.Jf&&(a.Jf=!0);var c=b.getAttribute("media");b=Eg(b,"mediaRange",Hg,{start:0,end:null});return{nh:c,start:b.start,end:b.end}})};function uq(a,b,c,d,e,f,g){var h=vq(a,g),k=wq(a);xq(k);var l=wd(a);if(k.Pc)return oq(a,h),{$b:function(){var u=Rp(k.Pc,l.I.id,null,null,l.bandwidth||null,null);u=Dc(l.I.$a(),[u]);return nq(l,b,h,u,0,null,k.rb)}};if(k.wa)return d||"image"===a.la.contentType||(a.presentationTimeline.Pe(k.wa),a.presentationTimeline.Ld(a.aa.start)),{$b:function(){return yq(l,k,e,h,f,g)}};var m=null;d=d=null;a.qa.id&&a.I.id&&(d=a.qa.id+","+a.I.id,d=c[d])&&(m=d.segmentIndex);var n=a.aa.start,q=a.aa.duration?n+a.aa.duration: 864Infinity,p=!(a.wb&&a.aa.Ce);m?(c=m,zq(c,k,n,q,p,h),c.Za(a.presentationTimeline.bb())):m=new Aq(k,a.I.id,a.bandwidth,a.I.$a,n,q,h,p,g,a.I.Ze);k.timeline&&"image"!==a.la.contentType&&a.presentationTimeline.Sf(k.timeline,n);d&&a.wb&&(d.segmentIndex=m);return{$b:function(){m instanceof Aq&&0==m.mb()&&zq(m,k,n,q,p,h);return Promise.resolve(m)}}}function Bq(a){return a.Zc} 865function wq(a){var b=Sp(a,Bq),c=Tp(a,Bq,"media"),d=Tp(a,Bq,"index");return{wa:b.wa,timescale:b.timescale,ad:b.ad,rb:b.rb,lf:b.lf,timeline:b.timeline,ic:c,Pc:d,mimeType:a.I.mimeType,codecs:a.I.codecs}}function xq(a){var b=a.Pc?1:0;b+=a.timeline?1:0;b+=a.wa?1:0;if(0==b)throw new Q(2,4,4002);1!=b&&(a.Pc&&(a.timeline=null),a.wa=null);if(!a.Pc&&!a.ic)throw new Q(2,4,4002);} 866function yq(a,b,c,d,e,f){function g(M){var L=(M-u)*p,N=L+b.rb,O=L+m;L=O+p;var X=Math.min(L,k());O=new Ph(O,X,function(){var Y=N*v;"BigInt"in window&&Y>Number.MAX_SAFE_INTEGER&&(Y=BigInt(N)*BigInt(v));Y=Rp(x,y,M,null,z,Y);return Dc(B(),[Y])},0,null,d,A,m,k(),[],"",null,null,Qh,f);O.codecs=a.I.codecs;O.mimeType=a.I.mimeType;O.j=L;return O}function h(){var M=[Math.max(l.bb(),m),Math.min(l.xb(),k())].map(function(L){return L-m});M=[Math.ceil(M[0]/p),Math.ceil(M[1]/p)-1];a.I.vb&&M[1]++;return M.map(function(L){return L+ 867u})}function k(){var M=null!=n&&e[n]||q;return M?m+M:Infinity}var l=a.presentationTimeline,m=a.aa.start,n=a.qa.id,q=a.aa.duration,p=b.wa,u=b.ad,v=b.timescale,x=b.ic,z=a.bandwidth||null,y=a.I.id,B=a.I.$a,A=m-b.rb,D=h();c=a.wb?Math.max(D[0],D[1]-c+1):D[0];D=D[1];for(var F=[],K=c;K<=D;++K){var H=g(K);F.push(H)}var I=new Qj(F);F=l.xb()<k();K=l.T();if(F||K){var G=Math.max(c,D+1);c=p;a.I.vb&&(c=.1);I.Rd(c,function(){var M=l.bb();I.Za(M);var L=t(h());L.next();L=L.next().value;for(var N=[];G<=L;){var O=g(G); 868N.push(O);G++}return M>k()&&!N.length?null:N})}return Promise.resolve(I)}function vq(a,b){var c=Tp(a,Bq,"initialization");if(!c)return null;var d=a.I.id,e=a.bandwidth||null,f=a.I.$a;
868b=new Nh(function(){var g=Rp(c,d,null,null,e,null);return Dc(f(),[g])},0,null,iq(a),null,null,b);b.codecs=a.I.codecs;b.mimeType=a.I.mimeType;return b}function Aq(a,b,c,d,e,f,g,h,k,l){Qj.call(this,[]);this.h=a;this.F=b;this.B=c;this.C=d;this.i=e;this.l=f;this.s=g;this.u=k;this.G=l;h&&Cq(this)}na(Aq,Qj);r=Aq.prototype; 869r.mb=function(){return this.h?this.h.timeline.length:0};r.release=function(){Qj.prototype.release.call(this);this.h=null};r.Za=function(a){if(this.h){for(var b=0,c=this.h.timeline,d=0;d<c.length;d+=1)if(c[d].end+this.i<=a)b+=1;else break;0<b&&(this.h.timeline=c.slice(b),this.g.length>=b&&(this.g=this.g.slice(b)),this.j+=b,0===this.mb()&&this.release())}}; 870function zq(a,b,c,d,e,f){Dq(a,f);if(a.h){c=a.h.timeline;a.h.ic=b.ic;var g=c[c.length-1];b=b.timeline.filter(function(h){return h.start>=g.end});0<b.length&&a.h.timeline.push.apply(a.h.timeline,w(b));a.l!==d&&(a.l=d)}else a.h=b,a.i=c,a.l=d;e&&Cq(a)}function Dq(a,b){if(a.s!==b){a.s=b;a=t(a.g);for(var c=a.next();!c.done;c=a.next())(c=c.value)&&Sh(c,b)}}function Cq(a){if(!a.o){for(var b=a.h.timeline;b.length;)if(b[b.length-1].start>=a.l)b.pop();else break;a.Za(a.i)}} 871r.find=function(a){if(this.h&&this.h.timeline&&this.h.timeline.length&&a<this.h.timeline[0].start+this.i)return this.j;if(!this.h)return null;var b=this.h.timeline;if(a<this.i||a>=this.l)return null;for(var c=b.length-1,d=0;d<b.length;d++){var e=b[d],f=e.start+this.i;e=d<c?b[d+1].start+this.i:Infinity===this.l?e.end+this.i:this.l;if(a>=f&&a<e)return d+this.j}return null}; 872r.get=function(a){var b=this;a-=this.j;if(0>a||a>=this.mb()||!this.h)return null;var c=this.g[a];if(!c){var d=this.h.ic,e=this.h.timeline[a],f=e.Eh,g=this.h.lf+e.Lh;c=this.i-this.h.rb;var h=this.i+e.end,k=h;a===this.mb()-1&&Infinity!==this.l&&(k=this.l);for(var l=this.h.codecs,m=this.h.mimeType,n=[],q=(e.end-e.start)/e.cb,p={},u=0;u<e.cb;p={zc:p.zc,Zd:p.Zd},u++){var v=e.start+q*u,x=v+q;p.Zd=u+1;p.zc=null;v=new Ph(this.i+v,this.i+x,function(z){return function(){if(!b.h)return[];null==z.zc&&(z.zc=Eq(b.h.ic, 873b.F,f,b.B,g,z.Zd,b.C));return z.zc}}(p),0,null,this.s,c,this.i,this.l,[],"",null,null,Qh,this.u);v.codecs=l;v.mimeType=m;0==this.G?0<u&&v.Hd():0!=u%this.G&&v.Hd();n.push(v)}c=new Ph(this.i+e.start,k,function(){return 0<e.cb?[]:Eq(d,b.F,f,b.B,g,null,b.C)},0,null,this.s,c,this.i,this.l,n,"",null,null,Qh,this.u,0<e.cb);c.codecs=l;c.mimeType=m;c.j=h;this.g[a]=c}return c};function Eq(a,b,c,d,e,f,g){a=Rp(a,b,c,f,d||null,e);return Dc(g(),[a]).map(function(h){return h.toString()})};function Fq(a){this.o=null;this.u=a;this.G=new uf;this.j=[];this.h=null;this.m=[];this.B=null;this.F=[];this.C=300;this.l=new Map;this.i=new Map;this.g=null;this.s="UNKNOWN"}Fq.prototype.configure=function(a){this.o=a};Fq.prototype.destroy=function(){this.u=this.o=null;this.j=[];this.h=null;this.m=[];this.F=[];this.l.clear();null!=this.g&&(this.g.stop(),this.g=null);return this.G.destroy()};Fq.prototype.setManifestType=function(a){this.s=a}; 874function Gq(a,b){var c,d,e,f,g,h,k;return J(function(l){if(1==l.g)return c=Dc(a.j,[Hq(a,b)]),d=Af(c,a.o.retryParameters),e=a.u.networkingEngine.request(8,d),vf(a.G,e),ra(l,2),C(l,e.promise,4);if(2!=l.g)return f=l.h,g=Sf(f.data),h=JSON.parse(g),1==h.VERSION&&Iq(a,h,f.uri),ta(l,0);if((k=ua(l))&&7001==k.code)return l.return();null!=a.g&&(a.g.stop(),a.g=null);a.g=new yd(function(){Gq(a,b)});a.g.V(a.C);E(l)})} 875function Hq(a,b){if(!a.m.length)return b;b=new kc(b);var c=a.B||a.m[0],d=Math.round(a.u.getBandwidthEstimate()),e=b.g;"DASH"==a.s?(e.add("_DASH_pathway",c),e.add("_DASH_throughput",String(d))):"HLS"==a.s&&(e.add("_HLS_pathway",c),e.add("_HLS_throughput",String(d)));Bc(e)&&pc(b,e);return b.toString()}function Iq(a,b,c){null!=a.g&&(a.g.stop(),a.g=null);var d=b["RELOAD-URI"]||c;a.g=new yd(function(){Gq(a,d)});if(c=b.TTL)a.C=c;a.g.V(a.C);a.m=b["PATHWAY-PRIORITY"]||[];a.F=b["PATHWAY-CLONES"]||[]} 876function Jq(a,b,c,d){var e=a.l.get(b);e||(e=new Map);e.set(c,d);a.l.set(b,e)} 877function Kq(a,b,c){c=void 0===c?!1:c;b=a.l.get(b)||new Map;for(var d=[],e={},f=t(a.m),g=f.next();!g.done;e={Hb:e.Hb},g=f.next())if(e.Hb=g.value,g=b.get(e.Hb))d.push({Ve:e.Hb,location:g});else if(g=a.F.find(function(k){return function(l){return l.Sh==k.Hb}}(e))){var h=b.get(g["BASE-ID"]);h&&(g["URI-REPLACEMENT"].lg?(h=new kc(h),nc(h,g["URI-REPLACEMENT"].lg),d.push({Ve:e.Hb,location:h.toString()})):d.push({Ve:e.Hb,location:h}
vendor: 12,351 bytes, lines 877-907
877))}e=Date.now();f=t(a.i.keys());for(g=f.next();!g.done;g=f.next())g=g.value, 878h=a.i.get(g),e>h&&a.i.delete(g);d=d.filter(function(k){for(var l=t(a.i.keys()),m=l.next();!m.done;m=l.next())if(m.value.includes((new kc(k.location)).kb))return!1;return!0});d.length&&(a.B=d[0].Ve);d=d.map(function(k){return k.location});if(!d.length&&a.h)for(e=t(a.h.split(",")),g=e.next();!g.done;g=e.next())if(f=b.get(g.value))a.B=a.h,d.push(f);if(!d.length)for(b=t(b.values()),e=b.next();!e.done;e=b.next())d.push(e.value);return c?d:Dc(a.j,d)};function Lq(){this.j=[];this.h=[];this.g=[];this.l=[];this.i=[];this.m=!1;this.o=new Set}r=Lq.prototype;r.release=function(){for(var a=t(this.h.concat(this.g,this.l,this.i)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.h=[];this.g=[];this.l=[];this.i=[];this.j=[]};r.Yg=function(){return this.j};r.Ae=function(){return this.l.slice()};r.Hg=function(){return this.i}; 879function Mq(a,b){var c=[],d=[],e=[],f=[];a=t(a);for(var g=a.next();!g.done;g=a.next()){var h=g.value;g=new Map(h.audioStreams.map(function(n){return[Nq(n),n]}));var k=new Map(h.videoStreams.map(function(n){return[Oq(n),n]})),l=new Map(h.textStreams.map(function(n){return[Pq(n),n]}));h=new Map(h.imageStreams.map(function(n){return[Qq(n),n]}));if(b){var m=Rq(Ic);l.set(Pq(m),m);m=Rq("image");h.set(Qq(m),m)}c.push(g);d.push(k);e.push(l);f.push(h)}return{qf:c,jg:d,gg:e,If:f}} 880r.uf=function(a,b){var c=this,d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K,H,I,G,M,L,N,O,X;return J(function(Y){if(1==Y.g){d=Jc;if(!b&&1==a.length)return e=Mq(a,!1),f=e.qf,g=e.jg,h=e.gg,k=e.If,c.h=Array.from(f[0].values()),c.g=Array.from(g[0].values()),c.l=Array.from(h[0].values()),c.i=Array.from(k[0].values()),Y.A(2);l=-1;for(m=0;m<a.length;m++)n=a[m],c.o.has(n.id)||(c.o.add(n.id),-1==l&&(l=m));if(-1==l)return Y.return();q=Mq(a,!0);p=q.qf;u=q.jg;v=q.gg;x=q.If;return C(Y,Promise.all([Sq(c,c.h,p,l,Tq, 881Uq),Sq(c,c.g,u,l,Tq,Uq),Sq(c,c.l,v,l,Tq,Uq),Sq(c,c.i,x,l,Tq,Uq)]),2)}z=0;y=[];if(c.g.length&&c.h.length)for(H=t(c.h),I=H.next();!I.done;I=H.next())for(G=I.value,M=t(c.g),L=M.next();!L.done;L=M.next())N=L.value,O=Eh(G.drmInfos,N.drmInfos),G.drmInfos.length&&N.drmInfos.length&&!O.length||(X=z++,y.push({id:X,language:G.language,disabledUntilTime:0,primary:G.primary,audio:G,video:N,bandwidth:(G.bandwidth||0)+(N.bandwidth||0),drmInfos:O,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]})); 882else for(B=c.g.length?c.g:c.h,A=t(B),D=A.next();!D.done;D=A.next())F=D.value,K=z++,y.push({id:K,language:F.language,disabledUntilTime:0,primary:F.primary,audio:F.type==d.P?F:null,video:F.type==d.$?F:null,bandwidth:F.bandwidth||0,drmInfos:F.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});c.j=y;E(Y)})}; 883function Vq(a){var b,c,d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K,H,I,G,M,L,N,O;return J(function(X){switch(X.g){case 1:b=Jc;if(1==a.length)return X.return(a[0]);c=a.map(function(Y){return new Map(Y.filter(function(R){return R.type===b.P}).map(function(R){return[Nq(R),R]}))});d=a.map(function(Y){return new Map(Y.filter(function(R){return R.type===b.$}).map(function(R){return[Oq(R),R]}))});e=a.map(function(Y){return new Map(Y.filter(function(R){return R.type===b.ha}).map(function(R){return[Pq(R),R]}))}); 884f=a.map(function(Y){return new Map(Y.filter(function(R){return R.type===b.ae}).map(function(R){return[Qq(R),R]}))});g=t(e);for(h=g.next();!h.done;h=g.next())k=h.value,l=Wq(b.ha),k.set(Pq(l),l);m=t(f);for(n=m.next();!n.done;n=m.next())q=n.value,p=Wq(b.ae),q.set(Qq(p),p);u=new Lq;return C(X,Sq(u,[],c,0,Xq,Yq),2);case 2:return v=X.h,C(X,Sq(u,[],d,0,Xq,Yq),3);case 3:return x=X.h,C(X,Sq(u,[],e,0,Xq,Yq),4);case 4:return z=X.h,C(X,Sq(u,[],f,0,Xq,Yq),5);case 5:y=X.h;B=0;if(x.length&&v.length)for(H=t(v),I= 885H.next();!I.done;I=H.next())for(G=I.value,M=t(x),L=M.next();!L.done;L=M.next())N=L.value,O=B++,N.variantIds.push(O),G.variantIds.push(O);else for(A=x.concat(v),D=t(A),F=D.next();!F.done;F=D.next())K=F.value,K.variantIds=[B++];return X.return(x.concat(v).concat(z).concat(y))}})} 886function Sq(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K,H;return J(function(I){switch(I.g){case 1:g=[];for(h=0;h<d;h++)g.push(new Set);for(k=d;k<c.length;k++)g.push(new Set(c[k].values()));l=t(b);m=l.next();case 2:if(m.done){I.A(4);break}n=m.value;return C(I,Zq(a,n,c,d,f,g),5);case 5:q=I.h;if(!q)throw new Q(2,4,4037);m=l.next();I.A(2);break;case 4:p=t(g);for(u=p.next();!u.done;u=p.next())for(v=u.value,x=t(v),z=x.next();!z.done;z=x.next())y=z.value,(B=$q(a,y,c,e,f,g))&&b.push(B);A=t(g);for(u= 887A.next();!u.done;u=A.next())for(D=u.value,F={},K=t(D),z=K.next();!z.done;F={hd:F.hd},z=K.next())if(F.hd=z.value,!ar(F.hd)&&(H=b.some(function(G){return function(M){return br(a,G.hd,M)}}(F))))throw new Q(2,4,4037);return I.return(b)}})}function Zq(a,b,c,d,e,f){return J(function(g){if(1==g.g)return cr(a,c,b),b.matchedStreams?b.segmentIndex?C(g,dr(b,d),2):g.A(2):g.return(!1);er(b,d,e,f);return g.return(!0)})} 888function dr(a,b){var c,d,e,f,g,h,k;return J(function(l){if(1==l.g){c=[];d=a.matchedStreams;e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,c.push(g.createSegmentIndex()),g.trickModeVideo&&!g.trickModeVideo.segmentIndex&&c.push(g.trickModeVideo.createSegmentIndex());return C(l,Promise.all(c),2)}if(a.segmentIndex instanceof Tj)for(h=b;h<d.length;h++)k=d[h],k.segmentIndex&&a.segmentIndex.h.push(k.segmentIndex);E(l)})} 889function $q(a,b,c,d,e,f){if(ar(b))return null;var g=d(b);cr(a,c,g);g.createSegmentIndex&&(g.createSegmentIndex=function(){return J(function(h){if(g.segmentIndex)return h.A(0);g.segmentIndex=new Tj;return C(h,dr(g,0),0)})});if(!g.matchedStreams||!g.matchedStreams.length)return null;er(g,0,e,f);return g} 890function er(a,b,c,d){for(var e=a.matchedStreams;b<e.length;b++){var f=e[b];c(a,f);var g=!0;"audio"==a.type&&0==rd(a.language,f.language)&&(g=!1);if(g&&(d[b].delete(f),f.fullMimeTypes))for(f=t(f.fullMimeTypes.values()),g=f.next();!g.done;g=f.next())a.fullMimeTypes.add(g.value)}} 891function Tq(a){var b=Object.assign({},a);b.originalId=null;b.createSegmentIndex=function(){return Promise.resolve()};b.closeSegmentIndex=function(){b.segmentIndex&&(b.segmentIndex.release(),b.segmentIndex=null);if(b.matchedStreams)for(var c=t(b.matchedStreams),d=c.next();!d.done;d=c.next())d=d.value,d.segmentIndex&&(d.segmentIndex.release(),d.segmentIndex=null)};b.roles=b.roles.slice();b.segmentIndex=null;b.emsgSchemeIdUris=[];b.keyIds=new Set;b.closedCaptions=null;b.trickModeVideo=null;return b} 892function Xq(a){a=Object.assign({},a);a.roles=a.roles.slice();a.keyIds=new Set;a.segments=[];a.variantIds=[];a.closedCaptions=null;return a} 893function Uq(a,b){function c(g,h){g||(g=[]);h=t(h);for(var k=h.next();!k.done;k=h.next())k=k.value,g.includes(k)||g.push(k);return g}a.roles=c(a.roles,b.roles);b.emsgSchemeIdUris&&(a.emsgSchemeIdUris=c(a.emsgSchemeIdUris,b.emsgSchemeIdUris));for(var d=t(b.keyIds),e=d.next();!e.done;e=d.next())a.keyIds.add(e.value);null==a.originalId?a.originalId=b.originalId:a.originalId+=","+(b.originalId||"");d=Eh(a.drmInfos,b.drmInfos);if(b.drmInfos.length&&a.drmInfos.length&&!d.length)throw new Q(2,4,4038);a.drmInfos= 894d;a.encrypted=a.encrypted||b.encrypted;if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),d=t(b.closedCaptions),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.closedCaptions.set(e,f)}b.trickModeVideo?(a.trickModeVideo||(a.trickModeVideo=Tq(b.trickModeVideo),a.trickModeVideo.createSegmentIndex=function(){a.trickModeVideo.segmentIndex=a.segmentIndex.clone();return Promise.resolve()}),Uq(a.trickModeVideo,b.trickModeVideo)):a.trickModeVideo&&Uq(a.trickModeVideo, 895b)}function Yq(a,b){var c=a.roles;c||(c=[]);for(var d=t(b.roles),e=d.next();!e.done;e=d.next())e=e.value,c.includes(e)||c.push(e);a.roles=c;c=t(b.keyIds);for(d=c.next();!d.done;d=c.next())a.keyIds.add(d.value);a.encrypted=a.encrypted&&b.encrypted;a.segments.push.apply(a.segments,w(b.segments));if(b.closedCaptions)for(a.closedCaptions||(a.closedCaptions=new Map),b=t(b.closedCaptions),c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,a.closedCaptions.set(c,d)} 896function cr(a,b,c){var d=[];b=t(b);for(var e=b.next();!e.done;e=b.next()){e=fr(a,e.value,c);if(!e)return;d.push(e)}c.matchedStreams=d} 897function fr(a,b,c){var d=null,e=(0,{audio:Nq,video:Oq,text:Pq,image:Qq}[c.type])(c);if(b.has(e))d=b.get(e);else{e={audio:function(h,k){return br(a,h,k)},video:function(h,k){return br(a,h,k)},text:gr,image:hr}[c.type];var f={audio:ir,video:jr,text:kr,image:lr}[c.type];b=t(b.values());for(var g=b.next();!g.done;g=b.next())g=g.value,!e(c,g)||c.fastSwitching!=g.fastSwitching||d&&!f(c,d,g)||(d=g)}return d} 898function mr(a,b){function c(d){if(!nr.has(d)){var e=Uc(d);nr.set(d,e)}return nr.get(d)}return a.mimeType!=b.mimeType?!1:c(a.codecs)==c(b.codecs)}function br(a,b,c){return!mr(b,c)&&!a.m||b.drmInfos&&!Dh(b.drmInfos,c.drmInfos)?!1:!0}function gr(a,b){return b.language?a.forced!==b.forced||0==rd(a.language,b.language)||b.kind!=a.kind?!1:!0:!0}function hr(){return!0} 899function ir(a,b,c){var d=mr(a,b),e=mr(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=rd(a.language,b.language);e=rd(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length)return d=b.roles.filter(function(f){return a.roles.includes(f)}),e=c.roles.filter(function(f){return a.roles.includes(f)}),e.length>d.length?!0:e.length<d.length?!1:c.roles.length<b.roles.length;if(!c.roles.length&&b.roles.length)return!0; 900if(c.roles.length&&!b.roles.length)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;d=or(a.channelsCount,b.channelsCount,c.channelsCount);if(d==pr)return!0;if(d==qr)return!1;d=or(a.audioSamplingRate,b.audioSamplingRate,c.audioSamplingRate);return d==pr?!0:d==qr?!1:a.bandwidth&&rr(a.bandwidth,b.bandwidth,c.bandwidth)==pr?!0:!1} 901function jr(a,b,c){var d=mr(a,b),e=mr(a,c);if(d&&!e)return!1;if(!d&&e)return!0;d=or(a.width*a.height,b.width*b.height,c.width*c.height);if(d==pr)return!0;if(d==qr)return!1;if(a.frameRate){d=or(a.frameRate,b.frameRate,c.frameRate);if(d==pr)return!0;if(d==qr)return!1}return a.bandwidth&&rr(a.bandwidth,b.bandwidth,c.bandwidth)==pr?!0:!1} 902function kr(a,b,c){var d=rd(a.language,b.language),e=rd(a.language,c.language);if(e>d)return!0;if(e<d)return!1;if(!b.primary&&c.primary)return!0;if(b.primary&&!c.primary)return!1;if(b.label!==c.label){if(a.label===b.label)return!1;if(a.label===c.label)return!0}if(a.roles.length){d=b.roles.filter(function(f){return a.roles.includes(f)});e=c.roles.filter(function(f){return a.roles.includes(f)});if(e.length>d.length)return!0;if(e.length<d.length)return!1}else{if(!c.roles.length&&b.roles.length)return!0; 903if(c.roles.length&&!b.roles.length)return!1}return c.mimeType!=a.mimeType||c.codecs!=a.codecs||b.mimeType==a.mimeType&&b.codecs==a.codecs?!1:!0}function lr(a,b,c){return or(a.width*a.height,b.width*b.height,c.width*c.height)==pr?!0:!1} 904function Wq(a){return{id:0,originalId:"",groupId:null,primary:!1,type:a,mimeType:"",codecs:"",language:"",originalLanguage:null,label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,external:!1,fastSwitching:!1}} 905function Rq(a){return{id:0,originalId:"",groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Qj([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",originalLanguage:null,label:null,type:a,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set}} 906function or(a,b,c){if(b==a&&a!=c)return qr;if(c==a&&a!=b)return pr;if(b>a){if(c<=a||c-a<b-a)return pr;if(c-a>b-a)return qr}else{if(c>a)return qr;if(a-c<a-b)return pr;if(a-c>a-b)return qr}return sr}function rr(a,b,c){b=Math.abs(a-b);a=Math.abs(a-c);return a<b?pr:b<a?qr:sr}function ar(a){switch(a.type){case Ic:return!a.language;case "image":return!a.tilesLayout;default:return!1}} 907function Oq(a){return JSON.stringify([a.fastSwitching,a.width,a.frameRate,a.codecs,a.mimeType,a.label,a.roles,a.closedCaptions?Array.from(a.closedCaptions.entries()):null,a.bandwidth])}
907function Nq(a){return JSON.stringify([a.fastSwitching,a.channelsCount,a.language,a.bandwidth,a.label,a.codecs,a.mimeType,a.roles,a.audioSamplingRate,a.primary])}function Pq(a){return JSON.stringify([a.language,a.label,a.codecs,a.mimeType,a.bandwidth,a.roles])} 908function Qq(a){return JSON.stringify([a.width,a.codecs,a.mimeType])}P("shaka.util.PeriodCombiner",Lq);Lq.prototype.combinePeriods=Lq.prototype.uf;Lq.prototype.getImageStreams=Lq.prototype.Hg;Lq.prototype.getTextStreams=Lq.prototype.Ae;Lq.prototype.getVariants=Lq.prototype.Yg;var pr=1,sr=0,qr=-1,nr=new Map;function tr(){var a=this;this.i=this.g=null;this.o=[];this.j=null;this.J=1;this.m={};this.L={};this.l=new Lq;this.G=0;this.H=new Oa(5);this.F=new yd(function(){ur(a)});this.C=new uf;this.u=null;this.K=[];this.B=Infinity;this.s=!1;this.h=null}r=tr.prototype;r.configure=function(a){this.g=a;this.h&&this.h.configure(this.g);this.l&&(this.l.m=this.g.dash.multiTypeVariantsAllowed&&ib())}; 909r.start=function(a,b){var c=this,d;return J(function(e){if(1==e.g)return c.s=b.isLowLatencyMode(),c.o=[a],c.i=b,C(e,vr(c),2);d=e.h;c.i&&wr(c,d);if(!c.i)throw new Q(2,7,7001);return e.return(c.j)})};r.stop=function(){for(var a=t(Object.values(this.m)),b=a.next();!b.done;b=a.next())b=b.value,b.segmentIndex&&b.segmentIndex.release();this.l&&this.l.release();this.g=this.i=null;this.o=[];this.j=null;this.m={};this.l=null;null!=this.F&&(this.F.stop(),this.F=null);this.h&&this.h.destroy();return this.C.destroy()}; 910r.update=function(){var a=this,b;return J(function(c){if(1==c.g)return ra(c,2),C(c,vr(a),4);if(2!=c.g)return ta(c,0);b=ua(c);if(!a.i||!b)return c.return();a.i.onError(b);E(c)})};r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(a){if(this.j&&this.j.presentationTimeline.T()){var b=a.video||a.audio;if(b&&b.segmentIndex){a=this.j.presentationTimeline.xb();var c=b.segmentIndex.find(a);null!=c&&(b=b.segmentIndex.get(c))&&(this.G=b.endTime-a,wr(this,0))}}}; 911r.banLocation=function(a){this.h&&this.h.i.set(a,Date.now()+6E4)};function vr(a){var b,c,d,e,f,g,h;return J(function(k){if(1==k.g)return b=a.o,1<a.o.length&&a.h&&(c=Kq(a.h,"Location",!0),c.length&&(b=c)),d=Af(b,a.g.retryParameters),e=Date.now(),C(k,xr(a,d,0,{type:4}),2);if(3!=k.g){f=k.h;if(!a.i)return k.return(0);f.uri&&f.uri!=f.originalUri&&!a.o.includes(f.uri)&&a.o.unshift(f.uri);return C(k,yr(a,f.data,f.uri),3)}g=Date.now();h=(g-e)/1E3;a.H.sample(1,h);return k.return(h)})} 912function yr(a,b,c){var d,e,f,g,h;return J(function(k){if(1==k.g){d=Qg(b,"MPD");if(!d)throw new Q(2,4,4001,c);if(e=a.g.dash.disableXlinkProcessing)return k.return(zr(a,d,c));f=a.g.dash.xlinkFailGracefully;g=Xp(d,a.g.retryParameters,f,c,a.i.networkingEngine);vf(a.C,g);return C(k,g.promise,2)}h=k.h;return k.return(zr(a,h,c))})} 913function zr(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K,H,I,G,M,L,N,O,X,Y,R,La,Ya,pb,Ob,xb,Fa,Za,qb,Pb,Qb,db,zd,Wc,Ad,mc,Bd,oh,ze,Cd,wc,Mc,Gf,Hf,ap,ak,bp,cp;return J(function(Nc){switch(Nc.g){case 1:(d=a.g.dash.manifestPreprocessor)&&d(b);a.h&&a.h.l.clear();e=[c];f=[];g=new Map;h=wg(b,"Location");k=t(h);for(l=k.next();!l.done;l=k.next())if(m=l.value,n=m.getAttribute("serviceLocation"),q=Cg(m))p=Dc(e,[q])[0],n&&(a.h?Jq(a.h,"Location",n,p):g.set(n,p)),f.push(p);a.h?(u=Kq(a.h,"Location",!0), 9140<u.length&&(e=a.o=u)):f.length&&(e=a.o=f);v=Promise.resolve();if((x=vg(b,"ContentSteering"))&&a.i){z=x.getAttribute("defaultServiceLocation");if(a.h)a.h.j=e,a.h.h=z;else if(a.h=new Fq(a.i),a.h.configure(a.g),a.h.setManifestType("DASH"),a.h.j=e,a.h.h=z,y=Cg(x))(B=Eg(x,"queryBeforeStart",Mg,!1))?v=Gq(a.h,y):Gq(a.h,y);A=t(g.keys());for(D=A.next();!D.done;D=A.next())F=D.value,K=g.get(F),Jq(a.h,"Location",F,K)}H=wg(b,"BaseURL");G=!1;if(a.h)for(M=t(H),L=M.next();!L.done;L=M.next())N=L.value,O=N.getAttribute("serviceLocation"), 915X=Cg(N),O&&X&&(Jq(a.h,"BaseURL",O,X),G=!0);G&&a.h||(Y=H.map(Cg),I=Dc(e,Y));R=function(){return a.h&&G?Kq(a.h,"BaseURL"):I?I:[]};La=0;H&&H.length&&(La=Eg(H[0],"availabilityTimeOffset",Lg)||0);Ya=a.g.dash.ignoreMinBufferTime;pb=0;Ya||(pb=Eg(b,"minBufferTime",Gg)||0);a.G=Eg(b,"minimumUpdatePeriod",Gg,-1);Ob=Eg(b,"availabilityStartTime",Fg);xb=Eg(b,"timeShiftBufferDepth",Gg);Fa=a.g.dash.ignoreSuggestedPresentationDelay;Za=null;Fa||(Za=Eg(b,"suggestedPresentationDelay",Gg));qb=a.g.dash.ignoreMaxSegmentDuration; 916Pb=null;qb||(Pb=Eg(b,"maxSegmentDuration",Gg));Qb=b.getAttribute("type")||"static";if(a.j)for(db=a.j.presentationTimeline,zd=t(Object.values(a.m)),Wc=zd.next();!Wc.done;Wc=zd.next())Ad=Wc.value,Ad.segmentIndex&&Ad.segmentIndex.Za(db.bb());else mc=a.g.defaultPresentationDelay||1.5*pb,Bd=null!=Za?Za:mc,db=new uj(Ob,Bd,a.g.dash.autoCorrectDrift);db.$c("static"==Qb);(oh=db.T())&&!isNaN(a.g.availabilityWindowOverride)&&(xb=a.g.availabilityWindowOverride);null==xb&&(xb=Infinity);db.df(xb);ze=b.getAttribute("profiles")|| 917"";Cd={wb:"static"!=Qb,presentationTimeline:db,qa:null,aa:null,la:null,I:null,bandwidth:0,Jf:!1,vb:La,profiles:ze.split(",")};wc=Ar(a,Cd,R,b);Mc=wc.duration;Gf=wc.periods;"static"!=Qb&&wc.zf||db.fb(Mc||Infinity);a.B&&!a.s&&(Hf=a.i.isAutoLowLatencyMode())&&(a.i.enableLowLatencyMode(),a.s=a.i.isLowLatencyMode());a.s?db.ag(a.B):a.B&&Ta("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."); 918db.Pe(Pb||1);return C(Nc,a.l.uf(Gf,Cd.wb),2);case 2:return C(Nc,v,3);case 3:a.s&&(pb=0,ap=null!=Za?Za:a.g.defaultPresentationDelay,db.af(ap));if(a.j){a.j.variants=a.l.j;
918ak=a.l.Ae();0<ak.length&&(a.j.textStreams=ak);a.j.imageStreams=a.l.i;a.i.filter(a.j);Nc.A(4);break}a.j={presentationTimeline:db,variants:a.l.j,textStreams:a.l.Ae(),imageStreams:a.l.i,offlineSessionIds:[],minBufferTime:pb||0,sequenceMode:a.g.dash.sequenceMode,ignoreManifestTimestampsInSegmentsMode:!1,type:"DASH",serviceDescription:Br(b)}; 919if(!db.ig()){Nc.A(5);break}bp=wg(b,"UTCTiming");return C(Nc,Cr(a,R,bp),6);case 6:cp=Nc.h;if(!a.i)return Nc.return();db.bg(cp);case 5:db.Ke();case 4:a.i.makeTextStreamsForClosedCaptions(a.j),E(Nc)}})} 920function Br(a){a=vg(a,"ServiceDescription");if(!a)return null;var b=vg(a,"Latency"),c=vg(a,"PlaybackRate");if(b&&b.getAttribute("max")||c){a=b&&b.getAttribute("max")?parseInt(b.getAttribute("max"),10)/1E3:null;var d=c?parseFloat(c.getAttribute("max")):null;b=b&&b.getAttribute("min")?parseInt(b.getAttribute("min"),10)/1E3:null;c=c?parseFloat(c.getAttribute("min")):null;return{maxLatency:a,maxPlaybackRate:d,minLatency:b,minPlaybackRate:c}}return null} 921function Ar(a,b,c,d){var e=Eg(d,"mediaPresentationDuration",Gg),f=[],g=0;d=wg(d,"Period");for(var h=0;h<d.length;h++){var k=d[h],l=d[h+1],m=Eg(k,"start",Gg,g),n=k.id,q=Eg(k,"duration",Gg),p=null;if(l){var u=Eg(l,"start",Gg);null!=u&&(p=u-m)}else null!=e&&(p=e-m);null==p&&(p=q);if(!(null!==a.u&&null!==n&&null!==m&&m<a.u)||a.K.includes(n)||h+1==d.length){null!==m&&(null===a.u||m>a.u)&&(a.u=m);g=Dr(a,b,c,{start:m,duration:p,node:k,Ce:null==p||!l});f.push(g);b.qa.id&&p&&(a.L[b.qa.id]=p);if(null==p){g= 922null;break}g=m+p}}a.K=f.map(function(v){return v.id});return null!=e?{periods:f,duration:e,zf:!1}:{periods:f,duration:g,zf:!0}} 923function Dr(a,b,c,d){b.qa=Er(a,d.node,null,c);b.aa=d;b.qa.vb=b.vb;b.qa.id||(b.qa.id="__shaka_period_"+d.start);var e=wg(d.node,"EventStream");c=b.presentationTimeline.bb();e=t(e);for(var f=e.next();!f.done;f=e.next())Fr(a,d.start,d.duration,f.value,c);c=wg(d.node,"AdaptationSet").map(function(m){return Gr(a,b,m)}).filter(kd);if(b.wb){d=[];e=t(c);for(f=e.next();!f.done;f=e.next()){f=t(f.value.yh);for(var g=f.next();!g.done;g=f.next())d.push(g.value)}if(d.length!=(new Set(d)).size)throw new Q(2,4,4018); 924}d=c.filter(function(m){return!m.jf});c=c.filter(function(m){return m.jf});c=t(c);for(e=c.next();!e.done;e=c.next()){e=e.value;f=e.jf.split(" ");g=t(d);for(var h=g.next();!h.done;h=g.next()){var k=h.value;if(f.includes(k.id)){h={};k=t(k.streams);for(var l=k.next();!l.done;h={jd:h.jd},l=k.next())h.jd=l.value,h.jd.trickModeVideo=e.streams.find(function(m){return function(n){return Uc(m.jd.codecs)==Uc(n.codecs)}}(h))}}}c=Hr(a.g.disableAudio,d,"audio");e=Hr(a.g.disableVideo,d,"video");f=Hr(a.g.disableText, 925d,Ic);d=Hr(a.g.disableThumbnails,d,"image");if(0===e.length&&0===c.length)throw new Q(2,4,4004);return{id:b.qa.id,audioStreams:c,videoStreams:e,textStreams:f,imageStreams:d}}function Hr(a,b,c){return a||!b.length?[]:b.reduce(function(d,e){if(e.contentType!=c)return d;d.push.apply(d,w(e.streams));return d},[])} 926function Gr(a,b,c){function d(H){switch(H){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}b.la=Er(a,c,b.qa,null);var e=!1,f=wg(c,"Role"),g=f.map(function(H){return H.getAttribute("value")}).filter(kd),h=void 0,k=b.la.contentType==Ic;k&&(h="subtitle");f=t(f);for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=l.getAttribute("schemeIdUri");if(null==m||"urn:mpeg:dash:role:2011"==m)switch(l=l.getAttribute("value"),l){case "main":e=!0;break;case "caption":case "subtitle":h= 927l}}var n;m=wg(c,"EssentialProperty");f=null;var q=!1;l=!1;m=t(m);for(var p=m.next();!p.done;p=m.next()){p=p.value;var u=p.getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==u?f=p.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==u?n=d(parseInt(p.getAttribute("value"),10)):"urn:mpeg:mpegB:cicp:ColourPrimaries"!=u&&"urn:mpeg:mpegB:cicp:MatrixCoefficients"!=u&&("urn:mpeg:dash:ssr:2023"==u?q=!0:l=!0)}m=wg(c,"SupplementalProperty");m=t(m);for(p=m.next();!p.done;p= 928m.next())p=p.value,"urn:mpeg:mpegB:cicp:TransferCharacteristics"==p.getAttribute("schemeIdUri")&&(n=d(parseInt(p.getAttribute("value"),10)));m=wg(c,"Accessibility");var v=new Map,x;m=t(m);for(p=m.next();!p.done;p=m.next())if(u=p.value,p=u.getAttribute("schemeIdUri"),u=u.getAttribute("value"),"urn:scte:dash:cc:cea-608:2
928015"==p)if(p=1,null!=u){u=u.split(";");for(var z=t(u),y=z.next();!y.done;y=z.next()){var B=y.value,A=y=void 0;B.includes("=")?(B=B.split("="),y=B[0].startsWith("CC")?B[0]:"CC"+B[0], 929A=B[1]||"und"):(y="CC"+p,2==u.length?p+=2:p++,A=B);v.set(y,nd(A))}}else v.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==p)if(p=1,null!=u)for(u=t(u.split(";")),y=u.next();!y.done;y=u.next())y=y.value,B=z=void 0,y.includes("=")?(y=y.split("="),z="svc"+y[0],B=y[1].split(",")[0].split(":").pop()):(z="svc"+p,p++,B=y),v.set(z,nd(B));else v.set("svc1","und");else"urn:mpeg:dash:role:2011"==p?null!=u&&(g.push(u),"captions"==u&&(h="caption")):"urn:tva:metadata:cs:AudioPurposeCS:2007"==p&&("1"== 930u?x="visually impaired":"2"==u&&(x="hard of hearing"));if(l)return null;l=wg(c,"ContentProtection");var D=Gp(l,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI),F=nd(b.la.language||"und"),K=c.getAttribute("label");(l=wg(c,"Label"))&&l.length&&(l=l[0],l.textContent&&(K=l.textContent));l=wg(c,"Representation");c=l.map(function(H){if(H=Ir(a,b,D,h,F,K,e,g,v,H,x))H.hdr=H.hdr||n,H.fastSwitching=q;return H}).filter(function(H){return!!H});if(0==c.length){f="image"==b.la.contentType;if(a.g.dash.ignoreEmptyAdaptationSet|| 931k||f)return null;throw new Q(2,4,4003);}if(!b.la.contentType||"application"==b.la.contentType)for(b.la.contentType=Jr(c[0].mimeType,c[0].codecs),k=t(c),p=k.next();!p.done;p=k.next())p.value.type=b.la.contentType;k=b.la.id||"__fake__"+a.J++;m=t(c);for(p=m.next();!p.done;p=m.next()){p=p.value;u=t(D.drmInfos);for(z=u.next();!z.done;z=u.next())z=z.value,z.keyIds=z.keyIds&&p.keyIds?new Set([].concat(w(z.keyIds),w(p.keyIds))):z.keyIds||p.keyIds;a.g.dash.enableAudioGroups&&(p.groupId=k)}l=l.map(function(H){return H.getAttribute("id")}).filter(kd); 932return{id:k,contentType:b.la.contentType,language:F,$h:e,streams:c,drmInfos:D.drmInfos,jf:f,yh:l}} 933function Ir(a,b,c,d,e,f,g,h,k,l,m){b.I=Er(a,l,b.la,null);a.B=Math.min(a.B,b.I.vb);if(!Kr(b.I))return null;var n=b.aa.start;b.bandwidth=Eg(l,"bandwidth",Jg)||0;var q=b.I.contentType,p=q==Ic||"application"==q;q="image"==q;try{var u=void 0;if(c.de){var v=b.I.$a,x=Dc(v(),[c.de.jh]),z=Af(x,a.g.retryParameters);u={method:"AES-128",iv:c.de.iv,firstMediaSequenceNumber:0,fetchKey:function(){var I,G,M;return J(function(L){if(1==L.g)return C(L,xr(a,z,6),2);if(3!=L.g){I=L.h;if(!I.data||16!=I.data.byteLength)throw new Q(2, 9344,4049);G={name:"AES-CBC"};M=u;return C(L,window.crypto.subtle.importKey("raw",I.data,G,!0,["decrypt"]),3)}M.cryptoKey=L.h;u.fetchKey=void 0;E(L)})}}}v=function(I,G,M,L){return Lr(a,I,G,M,L)};if(b.I.Yc)var y=jq(b,v,u);else if(b.I.Bb)y=pq(b,a.m,u);else if(b.I.Zc)y=uq(b,v,a.m,!!a.j,a.g.dash.initialSegmentLimit,a.L,u);else{var B=b.aa.duration||0,A=b.I.$a;y={$b:function(){var I=Sj(n,B,A());I.Zb(function(G){G.mimeType=b.I.mimeType;G.codecs=b.I.codecs});return Promise.resolve(I)}}}}catch(I){if((p||q)&& 9354002==I.code)return null;throw I;}v=wg(l,"ContentProtection");v=Kp(v,c,a.g.dash.ignoreDrmInfo,a.g.dash.keySystemsByURI);v=new Set(v?[v]:[]);x=!1;wg(l,"SupplementalProperty").some(function(I){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==I.getAttribute("schemeIdUri")&&"JOC"==I.getAttribute("value")})&&(x=!0);var D=!1;p&&(D=h.includes("forced_subtitle")||h.includes("forced-subtitle"));var F;if(q&&((l=wg(l,"EssentialProperty").find(function(I){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(I.getAttribute("schemeIdUri"))}))&& 936(F=l.getAttribute("value")),!F))return null;var K;l=b.I.codecs;b.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(l.includes("hvc1.2.4.L153.B0")||l.includes("hev1.2.4.L153.B0"))&&(K="PQ");p=b.I.id?b.qa.id+","+b.I.id:"";var H=p&&a.m[p]?a.m[p]:{id:a.J++,originalId:b.I.id,groupId:null,createSegmentIndex:function(){return Promise.resolve()},closeSegmentIndex:function(){H.segmentIndex&&(H.segmentIndex.release(),H.segmentIndex=null)},segmentIndex:null,mimeType:b.I.mimeType, 937codecs:l,frameRate:b.I.frameRate,pixelAspectRatio:b.I.pixelAspectRatio,bandwidth:b.bandwidth,width:b.I.width,height:b.I.height,kind:d,encrypted:0<c.drmInfos.length,drmInfos:c.drmInfos,keyIds:v,language:e,originalLanguage:b.la.language,label:f,type:b.la.contentType,primary:g,trickModeVideo:null,emsgSchemeIdUris:b.I.emsgSchemeIdUris,roles:h,forced:D,channelsCount:b.I.Md,audioSamplingRate:b.I.audioSamplingRate,spatialAudio:x,closedCaptions:k,hdr:K,videoLayout:void 0,tilesLayout:F,accessibilityPurpose:m, 938external:!1,fastSwitching:!1,fullMimeTypes:new Set([Lc(b.I.mimeType,b.I.codecs)])};H.createSegmentIndex=function(){var I;return J(function(G){if(1==G.g){if(H.segmentIndex)return G.A(0);I=H;return C(G,y.$b(),3)}I.segmentIndex=G.h;E(G)})};p&&b.wb&&!a.m[p]&&(a.m[p]=H);return H} 939function ur(a){var b,c;J(function(d){switch(d.g){case 1:return b=0,ra(d,2),C(d,vr(a),4);case 4:b=d.h;ta(d,3);break;
939case 2:if(c=ua(d),a.i){if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(c),d.return();c.severity=1;a.i.onError(c)}case 3:if(!a.i)return d.return();a.i.onManifestUpdated();wr(a,b);E(d)}})}function wr(a,b){0>a.G||a.F.V(Math.max(a.G-b,Pa(a.H)))} 940function Er(a,b,c,d){c=c||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Md:null,audioSamplingRate:null,vb:0,Ze:0};d=d||c.$a;var e=b.getAttribute("id"),f=wg(b,"BaseURL"),g,h=!1;if(a.h)for(var k=t(f),l=k.next();!l.done;l=k.next()){var m=l.value;l=m.getAttribute("serviceLocation");m=Cg(m);l&&m&&(Jq(a.h,e,l,m),h=!0)}h&&a.h||(g=f.map(Cg));k=b.getAttribute("contentType")||c.contentType;l=b.getAttribute("mimeType")||c.mimeType;m=b.getAttribute("codecs")|| 941c.codecs;var n=Eg(b,"frameRate",Ng)||c.frameRate,q=b.getAttribute("sar")||c.pixelAspectRatio,p=Mr(wg(b,"InbandEventStream"),c.emsgSchemeIdUris),u=wg(b,"AudioChannelConfiguration");u=Nr(u)||c.Md;var v=Eg(b,"audioSamplingRate",Kg)||c.audioSamplingRate;k||(k=Jr(l,m));var x=vg(b,"SegmentBase"),z=vg(b,"SegmentTemplate"),y=x?Eg(x,"availabilityTimeOffset",Lg)||0:0,B=z?Eg(z,"availabilityTimeOffset",Lg)||0:0,A=f&&f.length?Eg(f[0],"availabilityTimeOffset",Lg)||0:0;y=c.vb+A+y+B;B=null;(A=vg(b,"SegmentSequenceProperties"))&& 942(A=vg(A,"SAP"))&&(B=Eg(A,"cadence",Ig));return{$a:function(){return Dc(d(),f.length?a.h&&h?Kq(a.h,e):g?g:[]:[])},Yc:x||c.Yc,Bb:vg(b,"SegmentList")||c.Bb,Zc:z||c.Zc,width:Eg(b,"width",Kg)||c.width,height:Eg(b,"height",Kg)||c.height,contentType:k,mimeType:l,codecs:m,frameRate:n,pixelAspectRatio:q,emsgSchemeIdUris:p,id:e,language:b.getAttribute("lang"),Md:u,audioSamplingRate:v,vb:y,Ze:B||c.Ze}} 943function Mr(a,b){b=b.slice();a=t(a);for(var c=a.next();!c.done;c=a.next())c=c.value.getAttribute("schemeIdUri"),b.includes(c)||b.push(c);return b} 944function Nr(a){a=t(a);for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(b=c.getAttribute("schemeIdUri"))if(c=c.getAttribute("value"))switch(b){case "urn:mpeg:dash:outputChannelPositionList:2012":return c.trim().split(/ +/).length;case "urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case "urn:dts:dash:audio_channel_configuration:2012":b=parseInt(c,10);if(!b)continue;return b;case "tag:dolby.com,2014:dash:audio_channel_configuration:2011":case "urn:dolby:dash:audio_channel_configuration:2011":b= 945parseInt(c,16);if(!b)continue;for(a=0;b;)b&1&&++a,b>>=1;return a;case "urn:mpeg:mpegB:cicp:ChannelConfiguration":if(b=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(c=parseInt(c,10))&&0<c&&c<b.length)return b[c]}}return null}function Kr(a){var b=a.Yc?1:0;b+=a.Bb?1:0;b+=a.Zc?1:0;if(0==b)return a.contentType==Ic||"application"==a.contentType?!0:!1;1!=b&&(a.Yc&&(a.Bb=null),a.Zc=null);return!0} 946function Or(a,b,c,d){var e,f,g,h,k,l;return J(function(m){if(1==m.g)return e=Dc(b(),[c]),f=Af(e,a.g.retryParameters),f.method=d,g=a.i.networkingEngine.request(4,f),vf(a.C,g),C(m,g.promise,2);h=m.h;if("HEAD"==d){if(!h.headers||!h.headers.date)return m.return(0);k=h.headers.date}else k=Sf(h.data);l=Date.parse(k);return isNaN(l)?m.return(0):m.return(l-Date.now())})} 947function Cr(a,b,c){var d,e,f,g,h,k,l,m;return J(function(n){switch(n.g){case 1:d=c.map(function(q){return{scheme:q.getAttribute("schemeIdUri"),value:q.getAttribute("value")}}),e=a.g.dash.clockSyncUri,!d.length&&e&&d.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:e}),f=t(d),g=f.next();case 2:if(g.done){n.A(4);break}h=g.value;ra(n,5);k=h.scheme;l=h.value;switch(k){case "urn:mpeg:dash:utc:http-head:2014":case "urn:mpeg:dash:utc:http-head:2012":return n.A(7);case "urn:mpeg:dash:utc:http-xsdate:2014":case "urn:mpeg:dash:utc:http-iso:2014":case "urn:mpeg:dash:utc:http-xsdate:2012":case "urn:mpeg:dash:utc:http-iso:2012":return n.A(8); 948case "urn:mpeg:dash:utc:direct:2014":case "urn:mpeg:dash:utc:direct:2012":return m=Date.parse(l),n.return(isNaN(m)?0:m-Date.now());case "urn:mpeg:dash:utc:http-ntp:2014":case "urn:mpeg:dash:utc:ntp:2014":case "urn:mpeg:dash:utc:sntp:2014":Ta("NTP UTCTiming scheme is not supported");break;default:Ta("Unrecognized scheme in UTCTiming element",k)}n.A(9);break;case 7:return C(n,Or(a,b,l,"HEAD"),10);case 10:return n.return(n.h);case 8:return C(n,Or(a,b,l,"GET"),11);case 11:return n.return(n.h);case 9:ta(n, 9493);break;case 5:ua(n);case 3:g=f.next();n.A(2);break;case 4:return Ta("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),n.return(0)}})} 950function Fr(a,b,c,d,e){var f=d.getAttribute("schemeIdUri")||"",g=d.getAttribute("value")||"",h=Eg(d,"timescale",Kg)||1;d=t(wg(d,"Event"));for(var k=d.next();!k.done;k=d.next()){k=k.value;var l=Eg(k,"presentationTime",Kg)||0,m=Eg(k,"duration",Kg)||0;l=l/h+b;m=l+m/h;null!=c&&(l=Math.min(l,b+c),m=Math.min(m,b+c));m<e||(k={schemeIdUri:f,value:g,startTime:l,endTime:m,id:k.getAttribute("id")||"",eventElement:k},a.i.onTimelineRegionAdded(k))}} 951function Lr(a,b,c,d,e){var f,g,h,k;return J(function(l){if(1==l.g)return f=If,g=e?0:1,h=rk(b,c,d,a.g.retryParameters),C(l,xr(a,h,f,{type:g}),2);k=l.h;return l.return(k.data)})}function Jr(a,b){b=Lc(a,b);return bd(b)?Ic:a.split("/")[0]}function xr(a,b,c,d){b=a.i.networkingEngine.request(c,b,d);vf(a.C,b);return b.promise}P("shaka.dash.DashParser",tr);
vendor: 7,600 bytes, lines 951-964
951Ih["application/dash+xml"]=function(){return new tr};Ih["video/vnd.mpeg.dash.mpd"]=function(){return new tr};function Pr(){}P("shaka.dependencies",Pr);Pr.has=function(a){return Qr.has(a)};Pr.add=function(a,b){if(!Rr[a])throw Error(a+" is not supported");a==Sr?Le("mux.js","mux.js is no longer used in Shaka Player."):Qr.set(a,function(){return b})};var Sr="muxjs",Rr={ai:Sr,ISOBoxer:"ISOBoxer"};Pr.Allowed=Rr;var Qr=new Map([["ISOBoxer",function(){return window.ISOBoxer}]]);function Tr(a,b,c){this.type=a;this.g=b;this.segments=c||null}function Ur(a,b,c,d){this.id=a;this.name=b;this.g=c;this.value=void 0===d?null:d}Ur.prototype.toString=function(a){function b(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)}var c="#"+this.name,d=this.g?this.g.filter(function(e){return a?!a.has(e.name):!0}).map(b):[];this.value&&d.unshift(this.value);0<d.length&&(c+=":"+d.join(","));return c}; 952function Vr(a){var b=(new Set).add("AUDIO").add("VIDEO").add("SUBTITLES").add("PATHWAY-ID").add("GROUP-ID").add("URI");return a.toString(b)}Ur.prototype.getAttribute=function(a){var b=this.g.filter(function(c){return c.name==a});return b.length?b[0]:null};function Z(a,b,c){return(a=a.getAttribute(b))?a.value:c||null}function Wr(a,b){a=a.getAttribute(b);if(!a)throw new Q(2,4,4023,b);return a.value}function Xr(a,b,c){c=void 0===c?[]:c;this.g=b;this.h=a;this.cb=c} 953function Yr(a,b){this.name=a;this.value=b};function Zr(a,b){return a.filter(function(c){return c.name==b})}function $r(a,b){return a.filter(function(c){return Wr(c,"TYPE")==b})}function as(a,b){a=t(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.name===b)return c;return null}function bs(a,b,c){c=void 0===c?0:c;return(a=as(a,b))?Number(a.value):c}function cs(a,b,c){return b?ds(a,[b],c):[]} 954function ds(a,b,c){if(!b.length)return[];b=Dc(a,b);a=[];b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=a,f=e.push;var g=d.value;if((d=c)&&d.size){g=String(g).replace(/%7B/g,"{").replace(/%7D/g,"}");var h=g.match(/{\$\w*}/g);if(h){h=t(h);for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=k.slice(2,k.length-1),m=d.get(l);if(m)g=g.replace(k,m);else throw new Q(2,4,4039,l);}}d=g}else d=g;f.call(e,d)}return a};function es(a){this.h=a||"";this.g=0}function fs(a){gs(a,/[ \t]+/gm)}function gs(a,b){b.lastIndex=a.g;b=b.exec(a.h);b=null==b?null:{position:b.index,length:b[0].length,results:b};if(a.g==a.h.length||null==b||b.position!=a.g)return null;a.g+=b.length;return b.results}function hs(a){return a.g==a.h.length?null:(a=gs(a,/[^ \t\n]*/gm))?a[0]:null};function is(){this.g=0} 955function js(a,b){b=Sf(b);b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim();var c=b.split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(c[0]))throw new Q(2,4,4015);b=0;for(var d=!0,e=t(c),f=e.next();!f.done;f=e.next())if(f=f.value,/^#(?!EXT)/m.test(f)||d)d=!1;else if(f=ks(a,f),--a.g,ls.includes(f.name)){b=1;break}else"EXT-X-STREAM-INF"==f.name&&(d=!0);e=[];d=!0;for(f=0;f<c.length;f++){var g=c[f],h=c[f+1];if(/^#(?!EXT)/m.test(g)||d)d=!1;else{g=ks(a,g);if(ms.includes(g.name)){if(1!=b)throw new Q(2,4,4017);g= 956c.splice(f,c.length-f);c=[];d=[];f=[];h=null;g=t(g);for(var k=g.next();!k.done;k=g.next())k=k.value,/^(#EXT)/.test(k)?(k=ks(a,k),ls.includes(k.name)?e.push(k):"EXT-X-MAP"==k.name?h=k:"EXT-X-PART"==k.name?f.push(k):"EXT-X-PRELOAD-HINT"==k.name?"PART"==Z(k,"TYPE")?f.push(k):"MAP"==Z(k,"TYPE")&&(k.name="EXT-X-MAP",h=k):d.push(k)):/^#(?!EXT)/m.test(k)||(k=k.trim(),h&&d.push(h),c.push(new Xr(k,d,f)),d=[],f=[]);f.length&&(h&&d.push(h),c.push(new Xr("",d,f)));return new Tr(b,e,c)}e.push(g);"EXT-X-STREAM-INF"== 957g.name&&(g.g.push(new Yr("URI",h)),d=!0)}}return new Tr(b,e)}function ks(a,b){a=a.g++;var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new Q(2,4,4016,b);b=c[1];var d=c[2];c=[];var e;if(d){d=new es(d);var f;(f=gs(d,/^([^,=]+)(?:,|$)/g))&&(e=f[1]);for(var g=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;f=gs(d,g);)c.push(new Yr(f[1],f[2]||f[3])),fs(d)}return new Ur(a,b,c,e)} 958var ls="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP EXT-X-PART-INF".split(" "),ms="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function ns(){}function os(a){try{var b=ps(a);return of({uri:a,originalUri:a,data:b.data,headers:{"content-type":b.contentType}})}catch(c){return mf(c)}} 959function ps(a){var b=a.split(":");if(2>b.length||"data"!=b[0])throw new Q(2,1,1004,a);b=b.slice(1).join(":").split(",");if(2>b.length)throw new Q(2,1,1004,a);var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"==b[b.length-1]&&(d=!0,b.pop());var e;d?e=pg(a):e=Wf(a);return{data:e,contentType:c}}P("shaka.net.DataUriPlugin",ns);ns.parse=os;xf("data",os);function qs(a){var b=Yc(a),c=b.split("/")[0];a=Zc(a);return{type:c,mimeType:b,codecs:a,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map}} 960function rs(a,b){function c(v){return d(v.name)}function d(v){v=v.toLowerCase();switch(v){case "avc1":case "avc3":e.push(v+".42E01E");g=!0;break;case "hev1":case "hvc1":e.push(v+".1.6.L93.90");g=!0;break;case "dvh1":case "dvhe":e.push(v+".05.04");g=!0;break;case "vp09":e.push(v+".00.10.08");g=!0;break;case "av01":e.push(v+".0.01M.08");g=!0;break;case "mp4a":e.push("mp4a.40.2");f=!0;break;case "ac-3":case "ec-3":case "opus":case "flac":e.push(v),f=!0}}var e=[],f=!1,g=!1,h=null,k=null,l=null,m=null, 961n=null;(new bg).box("moov",gg).box("trak",gg).O("tkhd",function(v){v=ii(v.reader,v.version);k=String(v.height);l=String(v.width)}).box("mdia",gg).O("mdhd",function(v){h=gi(v.reader,v.version).language}).box("minf",gg).box("stbl",gg).O("stsd",ig).box("mp4a",function(v){var x=v.reader;x.skip(6);x.skip(2);x.skip(8);var z=x.va();x.skip(2);x.skip(2);x.skip(2);x=x.va()+x.va()/65536;m=z;n=x;v.reader.da()?gg(v):c(v)}).box("esds",function(v){v=ji(v.reader);e.push(v.ja);f=!0}).box("ac-3",c).box("ec-3",c).box("opus", 962c).box("Opus",c).box("fLaC",c).box("avc1",function(v){v=ki(v.reader,v.name);e.push(v.ja);g=!0}).box("avc3",function(v){v=ki(v.reader,v.name);e.push(v.ja);g=!0}).box("hev1",c).box("hvc1",c).box("dvh1",c).box("dvhe",c).box("vp09",c).box("av01",c).box("enca",kg).box("encv",jg).box("sinf",gg).box("frma",function(v){v=li(v.reader).ja;d(v)}).parse(a||b,!0);if(!e.length)return null;var q=f&&!g,p=new Map;if(g){var u=new wb("video/mp4");a&&u.init(a);u.i(b);a=t(u.j());for(b=a.next();!b.done;b=a.next())b=b.value, 963p.set(b,b);u.g()}return{type:q?"audio":"video",mimeType:q?"audio/mp4":"video/mp4",codecs:ss(e).join(", "),language:h,height:k,width:l,channelCount:m,sampleRate:n,closedCaptions:p}}function ss(a){var b=new Set,c=[];a=t(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;var e=Xc(d);b.has(e)||(c.push(d),b.add(e))}return c};function ts(){var a=this;this.g=this.i=null;this.u=1;this.o=new Map;this.H=new Map;this.K=new Map;this.K.set("video",new Map);this.K.set("audio",new Map);this.K.set(Ic,new Map);this.K.set("image",new Map);this.Aa=new Set;this.h=new Map;this.l=null;this.Y="";this.ya=new is;this.J=-1;this.U=Infinity;this.ba=this.ib=!1;this.s=new yd(function(){us(a)});this.ca=vs;this.C=null;this.za=0;this.m=Infinity;this.ga=this.fa=this.L=0;this.N=new uf;this.F=new Map;this.G=new Map;this.W=new Map;this.hb=this.B=!1; 964this.Fa=new Oa(5);this.j=null}r=ts.prototype;r.configure=function(a){this.g=a;this.j&&this.j.configure(this.g)};r.start=function(a,b){var c=this,d;return J(function(e){return 1==e.g?(c.i=b,c.B=b.isLowLatencyMode(),C(e,ws(c,[a]),2)):3!=e.g?(d=e.h,
964c.Y=d.uri,C(e,xs(c,d.data,a),3)):e.return(c.C)})}; 965r.stop=function(){this.s&&(this.s.stop(),this.s=null);var a=[];this.N&&(a.push(this.N.destroy()),this.N=null);this.g=this.i=null;this.Aa.clear();this.C=null;this.h.clear();this.H.clear();this.G.clear();this.o.clear();this.W.clear();this.j&&this.j.destroy();return Promise.all(a)}; 966r.update=function(){var a=this,b,c,d,e,f,g,h,k,l;return J(function(m){if(1==m.g){if(!ys(a))return m.return();b=[];c=Array.from(a.h.values());a.m=Infinity;d=c.filter(function(n){return n.stream.segmentIndex});e=t(d);for(f=e.next();!f.done;f=e.next())g=f.value,b.push(zs(a,g));return C(m,Promise.all(b),2)}As(a,d.map(function(n){return n.stream}));h=d.some(function(n){return 0==n.Nc});d.length&&!h&&(k=Bs,Cs(a,k.ng),l=d.map(function(n){return n.nb}),a.l.fb(Math.min.apply(Math,w(l))),a.i.updateDuration()); 967h&&Ds(a);E(m)})};function Es(a,b){return ys(a)?a.K.get(b.type):b.Id} 968function zs(a,b){var c,d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K,H,I,G,M,L,N,O,X;return J(function(Y){if(1==Y.g){c=[];d=t(b.Z());for(e=d.next();!e.done;e=d.next())f=e.value,g=new kc(f),h=g.g,b.md&&(0<=b.Va&&h.add("_HLS_msn",String(b.Va)),0<=b.Wa&&h.add("_HLS_part",String(b.Wa))),b.nd&&h.add("_HLS_skip","YES"),Bc(h)&&pc(g,h),c.push(g.toString());return C(Y,ws(a,c,!0),2)}k=Y.h;if(!b.stream.segmentIndex)return Y.return();l=js(a.ya,k.data);if(1!=l.type)throw new Q(2,4,4017);m=k.uri;m==k.originalUri|| 969b.Z().includes(m)||b.Wf.push(m);n=Zr(l.g,"EXT-X-DEFINE");q=Fs(a,n,m);p=b.stream;u=Es(a,b);v=Gs(l,p.mimeType);x=v.keyIds;z=v.drmInfos;y=function(R,La){return R.size===La.size&&[].concat(w(R)).every(function(Ya){return La.has(Ya)})};y(p.keyIds,x)||(p.keyIds=x,p.drmInfos=z,a.i.newDrmInfo(p));B=Hs(a,l,p,u,q,b.Z);A=B.segments;if(D=B.bandwidth)p.bandwidth=D;p.segmentIndex.Rc(A,a.l.bb());A.length&&(F=bs(l.g,"EXT-X-MEDIA-SEQUENCE",0),H=(K=as(l.g,"EXT-X-SKIP"))?Number(Z(K,"SKIPPED-SEGMENTS")):0,I=Is(F,A), 970G=I.Va,M=I.Wa,b.Va=G+H,b.Wa=M,L=u.get(F),p.segmentIndex.Za(L));N=A[0];b.Pb=N.startTime;O=A[A.length-1];b.nb=O.endTime;if(X=as(l.g,"EXT-X-ENDLIST"))b.Nc=!0;Js(a,l);E(Y)})}r.onExpirationUpdated=function(){};r.onInitialVariantChosen=function(){};r.banLocation=function(a){this.j&&this.j.i.set(a,Date.now()+6E4)}; 971function Ks(a,b){for(var c=-1==a.J,d=t(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=e.stream.segmentIndex,g=Es(a,e);if(f=f.g[0]||null){g=t(g);for(var h=g.next();!h.done;h=g.next()){h=t(h.value);var k=h.next().value;if(h.next().value==f.startTime){c&&(a.J=Math.max(a.J,k));e.je=k;break}}}}if(!(0>a.J))for(b=t(b),e=b.next();!e.done;e=b.next())if(c=e.value,d=c.stream.segmentIndex)if(e=a.J-c.je,0<e&&(d.g.splice(0,e),d=d.g[0]||null))d=-d.startTime,c.stream.segmentIndex.offset(d),Ls(a,c,d)} 972function Ms(a,b){if(Infinity==a.U){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value.stream.segmentIndex.g[0]||null;null!=d&&null!=d.g&&(a.U=Math.min(a.U,d.g))}}b=a.U;if(Infinity!=b)for(d=t(a.h.values()),c=d.next();!c.done;c=d.next()){c=c.value;var e=c.stream.segmentIndex;if(null!=e){var f=e.g[0]||null;if(null==f.g)Sa("Missing EXT-X-PROGRAM-DATE-TIME for stream",c.Z(),"Expect AV sync issues!");else for(Ls(a,c,f.g-b-f.startTime),c=t(e),e=c.next();!e.done;e=c.next())e.value.ef(b)}}} 973function Ls(a,b,c){b.Pb+=c;b.nb+=c;a=Es(a,b);for(var d=t(a),e=d.next();!e.done;e=d.next()){var f=t(e.value);e=f.next().value;f=f.next().value;a.set(e,f+c)}b.Z()} 974function xs(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K,H,I,G,M,L,N,O,X,Y;return J(function(R){switch(R.g){case 1:d=js(a.ya,b);e=Zr(d.g,"EXT-X-DEFINE");f=[];g=[];h=[];if(1==d.type)return v=function(){return[c]},C(R,Ns(a,d,v),6);Os(a,e);k=Zr(d.g,"EXT-X-MEDIA");l=Zr(d.g,"EXT-X-STREAM-INF");m=Zr(d.g,"EXT-X-IMAGE-STREAM-INF");n=Zr(d.g,"EXT-X-I-FRAME-STREAM-INF");q=Zr(d.g,"EXT-X-SESSION-KEY");p=Zr(d.g,"EXT-X-SESSION-DATA");u=Zr(d.g,"EXT-X-CONTENT-STEERING");Ps(a,p);return C(R,Qs(a,u),4);case 4:return Rs(a, 975l),Ss(a,k),f=Ts(a,l,q,k),g=Us(a,k),C(R,Vs(a,m,n),5);case 5:h=R.h;R.A(3);break;case 6:return x=R.h,z=x.type,y=x.mimeType,B=x.codecs,A=x.language,D=x.height,F=x.width,K=x.channelCount,H=x.sampleRate,I=x.closedCaptions,C(R,Ws(a,a.u++,d,v,c,B,z,A,!0,"Media Playlist",K,I,null,!1,H,!1,y),7);
975case 7:G=R.h,a.h.set(c,G),"video"==z&&Xs(G.stream,F,D,null,null,null),f.push({id:0,language:nd(A||"und"),disabledUntilTime:0,primary:!0,audio:"audio"==z?G.stream:null,video:"video"==z?G.stream:null,bandwidth:G.stream.bandwidth|| 9760,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});case 3:if(!a.i)throw new Q(2,7,7001);a.l=new uj(null,0);a.l.$c(!0);1==d.type&&(ys(a)&&(Ys(a,d),M=a.m,a.s.V(M)),L=Array.from(a.h.values()),Zs(a,L),Ds(a));a.C={presentationTimeline:a.l,variants:f,textStreams:g,imageStreams:h,offlineSessionIds:[],minBufferTime:0,sequenceMode:a.g.hls.sequenceMode,ignoreManifestTimestampsInSegmentsMode:a.g.hls.ignoreManifestTimestampsInSegmentsMode,type:"HLS",serviceDescription:null};if(a.ba||!a.g.hls.disableCodecGuessing){R.A(8); 977break}N=[];O=t(a.C.variants);for(X=O.next();!X.done;X=O.next())Y=X.value,Y.audio&&""===Y.audio.codecs&&N.push(Y.audio.createSegmentIndex()),Y.video&&""===Y.video.codecs&&N.push(Y.video.createSegmentIndex());return C(R,Promise.all(N),8);case 8:a.i.makeTextStreamsForClosedCaptions(a.C),E(R)}})} 978function Ns(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K;return J(function(H){switch(H.g){case 1:d=qs(a.g.hls.mediaPlaylistFullMimeType);if(!b.segments.length)return H.return(d);e=b.segments[0];f=cs(c(),e.h);g=f[0];h=new kc(g);k=h.Da.split(".").pop();if(l=$s[k])return H.return(qs(l));m=If;n=null;q=at(a,b,e.g,c);a.W.clear();if(!q){H.A(2);break}p=rk(q.Z(),q.dc(),q.bc(),a.g.retryParameters);return C(H,bt(a,p,m,{type:0}),3);case 3:u=H.h,n=u.data;case 2:v=0;x=null;if(z=as(e.g,"EXT-X-BYTERANGE"))y= 979t(ct(null,z.value)),v=y.next().value,x=y.next().value;B=rk(f,v,x,a.g.retryParameters);return C(H,bt(a,B,m,{type:1}),4);case 4:A=H.h;(D=A.headers["content-type"])&&(D=D.split(";")[0].toLowerCase());if("ts"==k||"video/mp2t"==D){var I=A.data;var G=ob(I);G=(new wi).parse(G);var M=G.Jc();G=G.Be();var L=[],N=!1,O=!1;switch(M.audio){case "aac":case "aac-loas":L.push("mp4a.40.2");N=!0;break;case "mp3":L.push("mp4a.40.34");N=!0;break;case "ac3":L.push("ac-3");N=!0;break;case "ec3":L.push("ec-3");N=!0;break; 980case "opus":L.push("opus"),N=!0}switch(M.video){case "avc":G.ja?L.push(G.ja):L.push("avc1.42E01E");O=!0;break;case "hvc":G.ja?L.push(G.ja):L.push("hvc1.1.6.L93.90");O=!0;break;case "av1":L.push("av01.0.01M.08"),O=!0}if(L.length){M=N&&!O;N=new Map;if(O){O=new wb("video/mp2t");O.i(I);I=t(O.j());for(var X=I.next();!X.done;X=I.next())X=X.value,N.set(X,X);O.g()}G={type:M?"audio":"video",mimeType:"video/mp2t",codecs:L.join(", "),language:null,height:G.height,width:G.width,channelCount:null,sampleRate:null, 981closedCaptions:N}}else G=null;if(F=G)return H.return(F)}else if("mp4"==k||"cmfv"==k||"m4s"==k||"fmp4"==k||"video/mp4"==D||"audio/mp4"==D||"video/iso.segment"==D)if(K=rs(n,A.data))return H.return(K);return H.return(d)}})} 982function Ds(a){if(ys(a)){if(a.ca==dt){for(var b,c=b=Infinity,d=t(a.h.values()),e=d.next();!e.done;e=d.next())e=e.value,e.stream.segmentIndex&&"text"!=e.stream.type&&(b=Math.min(b,e.nb),c=Math.min(c,e.Pb));b-=c;a.g.hls.useSafariBehaviorForLive&&(b=a.l.o);isNaN(a.g.availabilityWindowOverride)||(b=a.g.availabilityWindowOverride);a.l.df(b)}if(!a.l.m)for(b=t(a.h.values()),c=b.next();!c.done;c=b.next())c=c.value,!c.stream.segmentIndex||"audio"!=c.type&&"video"!=c.type||(c=c.stream.segmentIndex.get(0))&& 983c.g&&a.l.cg(c.g)}else a.l.fb(et(a));a.l.Ke()}function Os(a,b){var c=(new kc(a.Y)).g;b=t(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Z(e,"NAME");var f=Z(e,"VALUE");e=Z(e,"QUERYPARAM");d&&f&&(a.o.has(d)||a.o.set(d,f));e&&(d=c.get(e)[0])&&!a.o.has(d)&&a.o.set(e,d)}} 984function Fs(a,b,c){c=(new kc(c)).g;var d=new Map;b=t(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value,g=Z(f,"NAME"),h=Z(f,"VALUE");e=Z(f,"QUERYPARAM");f=Z(f,"IMPORT");g&&h&&(d.has(g)||d.set(g,h));e&&(g=c.get(e)[0])&&!d.has(g)&&d.set(e,g);f&&(e=a.o.get(f))&&d.set(f,e)}return d} 985function Rs(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"AUDIO");c=Z(d,"VIDEO");var f=Z(d,"SUBTITLES");d=ft(a,d);if(f){var g=Gc(Ic,d);a.G.set(f,g);Bb(d,g)}e&&(f=Gc("audio",d),f||(f=a.g.hls.defaultAudioCodec),a.G.set(e,f));c&&(e=Gc("video",d),e||(e=a.g.hls.defaultVideoCodec),a.G.set(c,e))}} 986function Ps(a,b){b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"DATA-ID");c=Z(d,"URI");var f=Z(d,"LANGUAGE");d=Z(d,"VALUE");e=(new Map).set("id",e);c&&e.set("uri",cs([a.Y],c,a.o)[0]);f&&e.set("language",f);d&&e.set("value",d);c=new sf("sessiondata",e);if(a.i)a.i.onEvent(c)}} 987function Qs(a,b){var c,d,e,f,g,h;return J(function(k){if(!a.i||!a.g)return k.return();d=t(b);for(e=d.next();!e.done;e=d.next())if(f=e.value,g=Z(f,"PATHWAY-ID"),h=Z(f,"SERVER-URI"),g&&h){a.j=new Fq(a.i);
987a.j.configure(a.g);a.j.j=[a.Y];a.j.setManifestType("HLS");a.j.h=g;c=Gq(a.j,h);break}return C(k,c,0)})} 988function Us(a,b){var c=$r(b,"SUBTITLES");b=c.map(function(g){if(a.g.disableText)return null;try{return gt(a,[g],new Map).stream}catch(h){if(a.g.hls.ignoreTextStreamFailures)return null;throw h;}});c=t(c);for(var d=c.next();!d.done;d=c.next()){var e=Wr(d.value,"GROUP-ID");if(d=a.G.get(e))if(e=a.H.get(e)){e=t(e);for(var f=e.next();!f.done;f=e.next())f=f.value,f.stream.codecs=d,f.stream.mimeType=ht(Ic,d)||it(Ic),jt(f.stream)}}return b.filter(function(g){return g})} 989function jt(a){a.fullMimeTypes=new Set([Lc(a.mimeType,a.codecs)])} 990function Vs(a,b,c){var d,e;return J(function(f){if(1==f.g)return d=b.map(function(g){var h,k,l;return J(function(m){if(1==m.g){if(h=a.g.disableThumbnails)return m.return(null);ra(m,2);return C(m,kt(a,g),4)}if(2!=m.g)return k=m.h,m.return(k.stream);l=ua(m);if(a.g.hls.ignoreImageStreamFailures)return m.return(null);throw l;})}).concat(c.map(function(g){if(a.g.disableThumbnails)return null;try{var h=Wr(g,"URI"),k=Z(g,"CODECS")||"";if(a.h.has(h))var l=a.h.get(h);else{var m=Z(g,"LANGUAGE"),n=Z(g,"NAME"), 991q=Z(g,"CHARACTERISTICS"),p=lt(a,a.u++,[h],k,"image",m,!1,n,null,null,q,!1,null,!1),u=Z(g,"RESOLUTION"),v=t(u?u.split("x"):[null,null]),x=v.next().value,z=v.next().value;p.stream.width=Number(x)||void 0;p.stream.height=Number(z)||void 0;var y=Z(g,"BANDWIDTH");y&&(p.stream.bandwidth=Number(y));a.h.set(h,p);l=p}g=l;return"mjpg"!==g.stream.codecs?null:g.stream}catch(B){if(a.g.hls.ignoreImageStreamFailures)return null;throw B;}})),C(f,Promise.all(d),2);e=f.h;return f.return(e.filter(function(g){return g}))})} 992function mt(a,b,c){b=b.filter(function(h){var k=Z(h,"URI")||"";return"SUBTITLES"!=Z(h,"TYPE")&&""!=k});var d={};b=t(b);for(var e=b.next();!e.done;e=b.next()){e=e.value;var f=Vr(e);d[f]?d[f].push(e):d[f]=[e]}for(var g in d)gt(a,d[g],c)} 993function Ts(a,b,c,d){var e=[],f=new Set;if(0<c.length){c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Wr(g,"METHOD");if("NONE"!=h&&"AES-128"!=h&&(h=Z(g,"KEYFORMAT")||"identity",g=(h=nt[h])?h(g,""):null)){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}}c={};b=t(b);for(g=b.next();!g.done;g=b.next())g=g.value,h=Vr(g),c[h]?c[h].push(g):c[h]=[g];b=[];for(var l in c){k=c[l];var m=k[0];g=Z(m,"FRAME-RATE");h=Number(Z(m,"AVERAGE-BANDWIDTH"))||Number(Wr(m, 994"BANDWIDTH"));var n=Z(m,"RESOLUTION"),q=t(n?n.split("x"):[null,null]);n=q.next().value;q=q.next().value;var p=Z(m,"VIDEO-RANGE");(m=Z(m,"REQ-VIDEO-LAYOUT"))&&m.includes(",")&&(m=m.split(",").filter(function(u){return"CH-STEREO"==u||"CH-MONO"==u})[0]);m=m||"CH-MONO";k=ot(a,k,d,h);b.push.apply(b,w(pt(a,k.audio,k.video,h,n,q,g,p,m,e,f)))}return b.filter(function(u){return null!=u})} 995function ot(a,b,c,d){for(var e={audio:[],video:[]},f=new Map,g=[],h=!1,k=!1,l=t(b),m=l.next();!m.done;m=l.next()){var n=m.value;m=Z(n,"AUDIO");var q=Z(n,"VIDEO"),p=m||q;p&&(g.includes(p)||g.push(p),(n=Z(n,"PATHWAY-ID"))&&f.set(p,n),m?h=!0:q&&(k=!0))}g.length&&c.length&&(l=c.filter(function(x){return g.includes(Wr(x,"GROUP-ID"))}),mt(a,l,f));l=(f=g.sort().join(","))&&a.H.has(f)?a.H.get(f):[];h?e.audio.push.apply(e.audio,w(l)):k&&e.video.push.apply(e.video,w(l));m=!1;var u=b.map(function(x){return Wr(x, 996"URI")});k=e.audio.find(function(x){return x&&x.Z().find(function(z){return u.includes(z)})});h=ft(a,b[0]);q=Gc("video",h);(p=Gc("audio",h))&&!q?(k="audio",m=0<e.audio.length):!e.audio.length&&!e.video.length&&p&&q?(k="video",h=[[q,p].join()]):e.audio.length&&k?(k="audio",m=!0):k=e.video.length&&!e.audio.length?"audio":"video";if(!m){var v=n=p=q=m=null;!l.length&&(c=c.find(function(x){var z=Z(x,"URI")||"",y=Z(x,"TYPE");x=Wr(x,"GROUP-ID");return"SUBTITLES"!=y&&""==z&&g.includes(x)}))&&(m=Z(c,"LANGUAGE"), 997q=Z(c,"NAME"),p=qt(c),rt(c),n=Z(c,"CHARACTERISTICS"),v=st(c));a=tt(a,b,h,k,m,q,p,n,v);f&&(a.stream.groupId=f);l.length||(a.stream.bandwidth=d);e[a.stream.type]=[a]}return e} 998function ft(a,b){var c=Z(b,"CODECS")||"";a.ba=0<c.length;a.ba||a.g.hls.disableCodecGuessing||(b=[],a.g.disableVideo||b.push(a.g.hls.defaultVideoCodec),a.g.disableAudio||b.push(a.g.hls.defaultAudioCodec),c=b.join(","));a=new Set;b=[];c=t(c.split(/\s*,\s*/));for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=Xc(d);a.has(e)||(b.push(d),a.add(e))}return b}function qt(a){return(a=Z(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}function st(a){return(a=Z(a,"SAMPLE-RATE"))?parseInt(a,10):null} 999function rt(a){return(a=Z(a,"CHANNELS"))?a.includes("/JOC"):!1} 1000function pt(a,b,c,d,e,f,g,h,k,l,m){for(var n=t(c),q=n.next();!q.done;q=n.next())Xs(q.value.stream,e,f,g,h,k);e=a.g.disableAudio;if(!b.length||e)b=[null];e=a.g.disableVideo;if(!c.length||e)c=[null];e=[];b=t(b);for(f=b.next();!f.done;f=b.next())for(f=f.value,g=t(c),h=g.next();!h.done;h=g.next()){var p=h.value;if(h=f?f.stream:null)h.drmInfos=l,h.keyIds=m;if(k=p?p.stream:null)k.drmInfos=l,k.keyIds=m;n=f?f.stream.drmInfos:null;q=p?p.stream.drmInfos:null;p=p?p.Z().sort().join(","):"";var u=f?f.Z().sort().join(","): 1001"";p=p+" - "+u;h&&k&&!Dh(n,q)||a.Aa.has(p)||(h={id:a.u++,language:h?h.language:"und",disabledUntilTime:0,primary:!!h&&h.primary||!!k&&k.primary,audio:h,video:k,bandwidth:d,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.push(h),a.Aa.add(p))}return e} 1002function Ss(a,b){b=$r(b,"CLOSED-CAPTIONS");b=t(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value,e=Z(d,"LANGUAGE");c=nd(e||"und");e||(e=Z(d,"NAME"))&&(c=e);e=Wr(d,"GROUP-ID");d=Wr(d,"INSTREAM-ID").replace("SERVICE","svc");a.F.get(e)||a.F.set(e,new Map);a.F.get(e).set(d,c)}} 1003function gt(a,b,c){for(var d=[],e=[],f=new Map,g=t(b),h=g.next();!h.done;h=g.next()){var k=h.value;h=Wr(k,"URI");k=Wr(k,"GROUP-ID");d.push(h);e.push(k);f.set(k,h)}g=e.sort().join(",");h=b[0];b="";k=Wr(h,"TYPE").toLowerCase();"subtitles"==k&&(k=Ic);if(k==Ic)b=Z(h,"CODECS")||"";else{e=t(e);for(var l=e.next();!l.done;l=e.next())if(l=l.value,a.G.has(l)){b=a.G.get(l);break}}e=d.sort().join(",");if(a.h.has(e))return a.h.get(e);l=a.u++;if(a.j){f=t(f);for(var m=f.next();!m.done;m=f.next()){var n=t(m.value); 1004m=n.next().value;n=n.next().value;(m=c.get(m))&&Jq(a.j,l,m,n)}}c=Z(h,"LANGUAGE");f=Z(h,"NAME");m="YES"==Z(h,"DEFAULT");n="audio"==k?qt(h):null;var q="audio"==k?rt(h):!1,p=Z(h,"CHARACTERISTICS"),u="YES"==Z(h,"FORCED");h="audio"==k?st(h):null;d=lt(a,l,d,b,k,c,m,f,n,null,p,u,h,q);d.stream&&(d.stream.groupId=g);a.H.has(g)?a.H.get(g).push(d):a.H.set(g,[d]);a.h.set(e,d);return d} 1005function kt(a,b){var c,d,e,f,g,h,k,l,m,n;return J(function(q){if(1==q.g){c=Wr(b,"URI");d=Z(b,"CODECS","jpeg")||"";if(a.h.has(c))return q.return(a.h.get(c));e=Z(b,"LANGUAGE");f=Z(b,"NAME");g=Z(b,"CHARACTERISTICS");h=lt(a,a.u++,[c],d,"image",e,!1,f,null,null,g,!1,null,!1);return(k=Z(b,"RESOLUTION"))?C(q,h.stream.createSegmentIndex(),3):q.A(2)}2!=q.g&&(l=h.stream.segmentIndex.get(0),m=l.tilesLayout)&&(h.stream.width=Number(k.split("x")[0])*Number(m.split("x")[0]),h.stream.height=Number(k.split("x")[1])* 1006Number(m.split("x")[1]));if(n=Z(b,"BANDWIDTH"))h.stream.bandwidth=Number(n);a.h.set(c,h);
1006return q.return(h)})} 1007function tt(a,b,c,d,e,f,g,h,k){for(var l=a.u++,m=[],n=t(b),q=n.next();!q.done;q=n.next()){var p=q.value;q=Wr(p,"URI");p=Z(p,"PATHWAY-ID");a.j&&p&&Jq(a.j,l,p,q);m.push(q)}n=m.sort().join(",");if(a.h.has(n))return a.h.get(n);a:{b=Z(b[0],"CLOSED-CAPTIONS");if("video"==d){if(b&&"NONE"!=b){b=a.F.get(b);break a}if(!b&&a.F.size)for(b=t(a.F.keys()).next();!b.done;){b=a.F.get(b.value);break a}}b=null}c=Fc(d,c);d=lt(a,l,m,c,d,e,!1,f,g,b,h,!1,k,!1);a.h.set(n,d);return d} 1008function lt(a,b,c,d,e,f,g,h,k,l,m,n,q,p){function u(D){var F,K,H,I,G,M,L,N,O,X,Y,R,La,Ya,pb,Ob,xb;return J(function(Fa){switch(Fa.g){case 1:return F=y.Z(),C(Fa,ws(a,y.Z(),!0),2);case 2:K=Fa.h;if(D.aborted)return Fa.return();H=K.uri;H==K.originalUri||F.includes(H)||z.push(H);I=js(a.ya,K.data);G=void 0;if(a.ba||!a.g.hls.disableCodecGuessing){Fa.A(3);break}return C(Fa,Ns(a,I,v),4);case 4:M=Fa.h,G=M.mimeType,d=M.codecs;case 3:return L=ys(a),C(Fa,Ws(a,0,I,v,H,d,e,f,g,h,k,l,m,n,q,p,G),5);case 5:N=Fa.h; 1009if(D.aborted)return Fa.return();O=N.stream;ys(a)&&!L&&Ys(a,I);y.Pb=N.Pb;y.nb=N.nb;y.nd=N.nd;y.md=N.md;y.Nc=N.Nc;y.Id=N.Id;y.Va=N.Va;y.Wa=N.Wa;y.Je=!0;x.segmentIndex=O.segmentIndex;x.encrypted=O.encrypted;x.drmInfos=O.drmInfos;x.keyIds=O.keyIds;x.mimeType=O.mimeType;x.bandwidth=x.bandwidth||O.bandwidth;x.codecs=x.codecs||O.codecs;jt(x);x.drmInfos.length&&a.i.newDrmInfo(x);X=Jc;if(e==X.$||e==X.P)for(Y=t(a.h.values()),R=Y.next();!R.done;R=Y.next())La=R.value,La.Je||La.type!=e||(La.stream.mimeType=O.mimeType, 1010jt(La.stream));e==X.ha&&(Ya=O.segmentIndex.get(0))&&Ya.h&&(x.mimeType="application/mp4",jt(x));ut(a)&&(a.ib?Zs(a,[y]):(a.ib=!0,pb=Array.from(a.h.values()),Ob=pb.filter(function(Za){return Za.stream.segmentIndex}),Zs(a,Ob),Ds(a),xb=a.m,0<xb&&a.s.V(xb)));E(Fa)}})}function v(){return a.j&&1<c.length?Kq(a.j,b):z.concat(ds([a.Y],c,a.o))}var x=vt(a,d,e,f,g,h,k,l,m,n,q,p),z=[],y={stream:x,type:e,Wf:z,Z:v,Pb:0,nb:0,Id:new Map,nd:!1,md:!1,Nc:!1,je:-1,Va:-1,Wa:-1,Je:!1},B=null,A=new AbortController;x.createSegmentIndex= 1011function(){if(B)return B;A=new AbortController;return B=new Promise(function(D){D(u(A.signal))})};x.closeSegmentIndex=function(){B&&!x.segmentIndex&&A.abort();x.segmentIndex&&(x.segmentIndex.release(),x.segmentIndex=null);B=null};return y}function et(a){var b=Infinity;a=t(a.h.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.stream.segmentIndex&&"text"!=c.stream.type&&(b=Math.min(b,c.nb));return b} 1012function As(a,b){var c=[];b=t(b);for(var d=b.next();!d.done;d=b.next())d=d.value,d.segmentIndex&&d.segmentIndex.Zb(function(e){c.push(e)});a.l.Sc(c)}function Zs(a,b){if(!ys(a))for(var c=et(a),d=t(b),e=d.next();!e.done;e=d.next())e.value.stream.segmentIndex.Yb(0,c);As(a,b.map(function(f){return f.stream}));a.g.hls.ignoreManifestProgramDateTime?Ks(a,b):Ms(a,b)} 1013function ut(a){if(!a.C)return!1;var b=[],c=[];a=t(a.C.variants);for(var d=a.next();!d.done;d=a.next())d=d.value,d.video&&b.push(d.video),d.audio&&c.push(d.audio);return 0<b.length&&!b.some(function(e){return e.segmentIndex})||0<c.length&&!c.some(function(e){return e.segmentIndex})?!1:!0} 1014function Ws(a,b,c,d,e,f,g,h,k,l,m,n,q,p,u,v,x){var z,y,B,A,D,F,K,H,I,G,M,L,N,O,X,Y,R,La,Ya,pb,Ob,xb,Fa;return J(function(Za){if(1==Za.g){if(1!=c.type)throw new Q(2,4,4017);z=Zr(c.g,"EXT-X-DEFINE");y=Fs(a,z,e);var qb=as(c.g,"EXT-X-PLAYLIST-TYPE"),Pb=as(c.g,"EXT-X-ENDLIST");Pb=qb&&"VOD"==qb.value||Pb;qb=qb&&"EVENT"==qb.value&&!Pb;qb=!Pb&&!qb;Pb?Cs(a,vs):qb?Cs(a,dt):Cs(a,wt);ys(a)&&Js(a,c);return x?Za.A(2):C(Za,xt(a,g,f,c,y,d),3)}2!=Za.g&&(x=Za.h);B=Gs(c,x);A=B.drmInfos;D=B.keyIds;F=B.encrypted;K=B.rg; 1015if(F&&!A.length&&!K)throw new Q(2,4,4026);H=vt(a,f,g,h,k,l,m,n,q,p,u,v);H.encrypted=F;H.drmInfos=A;H.keyIds=D;H.mimeType=x;jt(H);I=ys(a)?a.K.get(g):new Map;G=Hs(a,c,H,I,y,d);M=G.segments;if(L=G.bandwidth)H.bandwidth=L;ys(a)&&Js(a,c);N=M[0].startTime;O=M[M.length-1];X=O.endTime;Y=new Qj(M);H.segmentIndex=Y;La=(R=as(c.g,"EXT-X-SERVER-CONTROL"))?null!=R.getAttribute("CAN-SKIP-UNTIL"):!1;Ya=R?null!=R.getAttribute("CAN-BLOCK-RELOAD"):!1;pb=bs(c.g,"EXT-X-MEDIA-SEQUENCE",0);Ob=Is(pb,M);xb=Ob.Va;Fa=Ob.Wa; 1016return Za.return({stream:H,type:g,Wf:[],Z:d,Pb:N,nb:X,nd:La,md:Ya,Nc:!1,je:-1,Va:xb,Wa:Fa,Id:I,Je:!1})})}function Is(a,b){a=a+b.length-1;var c=-1;if(!b.length)return a++,{Va:a,Wa:c};b=b[b.length-1];var d=b.i;if(!b.i.length)return a++,b.s&&(c=0),{Va:a,Wa:c};c=d.length-1;d[d.length-1].o||(a++,c=0);return{Va:a,Wa:c}} 1017function vt(a,b,c,d,e,f,g,h,k,l,m,n){var q=ht(c,b)||it(c),p=[];if(k){k=t(k.split(","));for(var u=k.next();!u.done;u=k.next())p.push(u.value)}k=void 0;u=null;c==Ic?k=p.includes("public.accessibility.transcribes-spoken-dialog")&&p.includes("public.accessibility.describes-music-and-sound")?"caption":"subtitle":p.includes("public.accessibility.describes-video")&&(u="visually impaired");p.length||"subtitle"!==k||p.push("subtitle");a={id:a.u++,originalId:f,groupId:null,createSegmentIndex:function(){return Promise.resolve()}, 1018segmentIndex:null,mimeType:q,codecs:b,kind:c==Ic?"subtitle":void 0,encrypted:!1,drmInfos:[],keyIds:new Set,language:nd(d||"und"),originalLanguage:d,label:f,type:c,primary:e,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:p,forced:l,channelsCount:g,audioSamplingRate:m,spatialAudio:n,closedCaptions:h,hdr:void 0,videoLayout:void 0,tilesLayout:void 0,accessibilityPurpose:u,external:!1,fastSwitching:!1,fullMimeTypes:new Set}; 1019jt(a);return a} 1020function Gs(a,b){var c=[];if(a.segments){a=t(a.segments);for(var d=a.next();!d.done;d=a.next())d=Zr(d.value.g,"EXT-X-KEY"),c.push.apply(c,w(d))}d=a=!1;var e=[],f=new Set;c=t(c);for(var g=c.next();!g.done;g=c.next()){g=g.value;var h=Wr(g,"METHOD");if("NONE"!=h)if(a=!0,"AES-128"==h)d=!0;else if(h=Z(g,"KEYFORMAT")||"identity",g=(h=nt[h])?h(g,b):null){if(g.keyIds){h=t(g.keyIds);for(var k=h.next();!k.done;k=h.next())f.add(k.value)}e.push(g)}}return{drmInfos:e,keyIds:f,encrypted:a,rg:d}} 1021function yt(a,b,c,d,e){if(!window.crypto||!window.crypto.subtle)throw Ta("Web Crypto API is not available to decrypt AES-128. (Web Crypto only exists in secure origins like https)"),new Q(2,4,4042);var f=0,g=Z(b,"IV","");if(g){var h=qg(g.substr(2));if(16!=h.byteLength)throw new Q(2,4,4048);}else f=bs(c.g,"EXT-X-MEDIA-SEQUENCE",0);var k={method:"AES-128",iv:h,firstMediaSequenceNumber:f,fetchKey:function(){var l,m,n,q,p;return J(function(u){if(1==u.g)return l=cs(d(),Wr(b,"URI"),e),m=Af(l,a.g.retryParameters), 1022C(u,bt(a,m,6),2);
vendor: 7,264 bytes, lines 1022-1040
1022if(3!=u.g){n=u.h;if(!n.data||16!=n.data.byteLength)throw new Q(2,4,4049);q={name:"AES-CBC"};p=k;return C(u,window.crypto.subtle.importKey("raw",n.data,q,!0,["decrypt"]),3)}p.cryptoKey=u.h;k.fetchKey=void 0;E(u)})}};return k} 1023function Js(a,b){var c=Infinity,d=b.segments;if(d.length)for(var e=d.length-1;0<=e;){var f=as(d[e].g,"EXTINF");if(f){c=Number(f.value.split(",")[0]);break}e--}d=as(b.g,"EXT-X-TARGETDURATION");if(!d)throw new Q(2,4,4024,"EXT-X-TARGETDURATION");d=Number(d.value);if(e=as(b.g,"EXT-X-PART-INF"))a.L=Number(Wr(e,"PART-TARGET"));b=as(b.g,"EXT-X-SERVER-CONTROL");a.B&&a.L?(a.m=a.hb?5*a.L<=c?Math.min(a.L,a.m):Math.min(c,a.m):Math.min(a.L,a.m),a.ga=b?Number(Wr(b,"PART-HOLD-BACK")):0):(a.m=Math.min(c,a.m),c=b? 1024b.getAttribute("HOLD-BACK"):null,a.fa=c?Number(c.value):0);a.za=Math.max(d,a.za)}function Ys(a,b){if(a.g.defaultPresentationDelay)b=a.g.defaultPresentationDelay;else if(a.ga)b=a.ga;else if(a.fa)b=a.fa;else{b=b.segments.length;var c=a.g.hls.liveSegmentsDelay;c>b-2&&(c=Math.max(1,b-2));b=a.za*c}a.l.dg(0);a.l.af(b);a.l.$c(!1)} 1025function at(a,b,c,d,e){var f=as(c,"EXT-X-MAP");if(!f)return null;var g=Wr(f,"URI"),h=cs(d(),g,e);g=[h.toString(),Z(f,"BYTERANGE","")].join("-");if(!a.W.has(g)){var k=void 0,l=null;c=t(c);for(var m=c.next();!m.done;m=c.next())m=m.value,"EXT-X-KEY"==m.name?"AES-128"==Wr(m,"METHOD")&&m.id<f.id&&(k=yt(a,m,b,d,e)):"EXT-X-BYTERANGE"==m.name&&m.id<f.id&&(l=m);b=zt(h,f,l,k);a.W.set(g,b)}return a.W.get(g)} 1026function zt(a,b,c,d){var e=0,f=null;b=Z(b,"BYTERANGE");!b&&c&&(b=c.value);b&&(e=b.split("@"),f=Number(e[0]),e=Number(e[1]),f=e+f-1,d&&(c=f+1-e,c%16&&(f+=16-c%16)));return new Nh(function(){return a},e,f,null,null,null,d)} 1027function At(a,b,c,d,e,f,g,h,k){var l=d.g,m=as(l,"EXTINF"),n=0,q=0,p=null;d.cb.length&&!a.B&&Ta("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var u=null;if(!a.g.hls.ignoreManifestProgramDateTime){var v=as(l,"EXT-X-PROGRAM-DATE-TIME");v&&v.value&&(u=Fg(v.value))}var x=Qh;as(l,"EXT-X-GAP")&&(x=2);if(!m){if(0==d.cb.length)throw new Q(2,4,4024,"EXTINF"); 1028if(!a.B)return null}var z=[];v=!1;var y=null,B=!1,A=!1;if(a.B&&d.cb.length){n=("video/mp4"==g.mimeType||"audio/mp4"==g.mimeType)&&window.ReadableStream&&a.g.hls.allowLowLatencyByteRangeOptimization;for(var D=u,F={},K=0;K<d.cb.length;F={wc:F.wc,fd:F.fd},K++){var H=d.cb[K],I=0==K?c:z[z.length-1],G=0==K?e:I.endTime,M=Number(Z(H,"DURATION"))||a.L;if(M){var L=G+M,N=0,O=null;"EXT-X-PRELOAD-HINT"==H.name?(N=(N=Z(H,"BYTERANGE-START"))?Number(N):0,(I=Z(H,"BYTERANGE-LENGTH"))?O=N+Number(I)-1:N&&(O=Number.MAX_SAFE_INTEGER)): 1029(N=Z(H,"BYTERANGE"),O=t(ct(I,N)),N=O.next().value,O=O.next().value);F.fd=Z(H,"URI");if(F.fd){I=Qh;"YES"==Z(H,"GAP")&&(I=2,B=!0);F.wc=null;var X=function(R){return function(){null==R.wc&&(R.wc=cs(h(),R.fd,f));return R.wc}}(F);n&&0<=N&&null!=O&&(y=X,v=!0);G=new Ph(G,L,X,N,O,b,0,0,Infinity,[],"",null,D,I,k);"EXT-X-PRELOAD-HINT"==H.name&&(G.Me(),A=!0);"YES"!=Z(H,"INDEPENDENT")&&0<K&&G.Hd();z.push(G);D&&(D+=M)}}}}if(m){m=Number(m.value.split(",")[0]);if(0==m)return null;n=e+m}else if(z.length)n=z[z.length- 10301].endTime;else return null;v&&(B||0!=z[0].Oa?(v=!1,y=null):z=[]);(m=as(l,"EXT-X-BYTERANGE"))?(p=t(ct(c,m.value)),q=p.next().value,p=p.next().value):z.length&&(q=z[0].Oa,p=z[z.length-1].sa);c="";m=null;"image"==g.type&&(c="1x1",g=as(l,"EXT-X-TILES"))&&(c=Wr(g,"LAYOUT"),(g=Z(g,"DURATION"))&&(m=Number(g)));var Y=null;b=new Ph(e,n,function(){if(y)return y();null==Y&&(Y=cs(h(),d.h,f));return Y||[]},q,p,b,0,0,Infinity,z,c,m,u,x,k,0<z.length&&!!d.h);v&&(a.hb=!0,b.Nf(),A&&b.Me());return b} 1031function ct(a,b){var c=0,d=null;b&&(c=b.split("@"),b=Number(c[0]),c=c[1]?Number(c[1]):a.sa+1,d=c+b-1);return[c,d]} 1032function Hs(a,b,c,d,e,f){var g=b.segments,h=void 0,k=bs(b.g,"EXT-X-DISCONTINUITY-SEQUENCE",0),l=bs(b.g,"EXT-X-MEDIA-SEQUENCE",0),m=as(b.g,"EXT-X-SKIP"),n=m?Number(Z(m,"SKIPPED-SEGMENTS")):0,q=l+n,p=0;ys(a)&&d.has(q)&&(p=d.get(q));0===p&&a.ca==dt&&0<d.size&&!d.has(q)&&(p=a.l.bb());var u=[],v=null;m=[];for(var x=0;x<g.length;x++){var z=g[x],y=0==x?p:v.endTime;q=l+n+x;as(z.g,"EXT-X-DISCONTINUITY")&&k++;var B=t(z.g);for(var A=B.next();!A.done;A=B.next())A=A.value,"EXT-X-KEY"==A.name&&("AES-128"==Wr(A, 1033"METHOD")?h=yt(a,A,b,f,e):h=void 0);d.set(q,y);B=at(a,b,z.g,f,e);!a.B&&a.i.isAutoLowLatencyMode()&&(a.i.enableLowLatencyMode(),a.B=a.i.isLowLatencyMode());if(y=At(a,B,v,z,y,e,c,f,h))(v=bs(z.g,"EXT-X-BITRATE"))?m.push({bitrate:v,duration:y.endTime-y.startTime}):m.length&&(v=m.pop(),v.duration+=y.endTime-y.startTime,m.push(v)),v=y,y.l=k,a.g.hls.ignoreManifestProgramDateTime&&null!=a.J&&q<a.J||u.push(y)}b=void 0;m.length&&(b=m.reduce(function(D,F){return D+F.duration},0),b=Math.round(m.reduce(function(D, 1034F){return D+F.bitrate*F.duration},0)/b*1E3));if(m=u.some(function(D){return null!=D.g}))for(c={},d=0;d<u.length;c={rc:c.rc,qc:c.qc,bd:c.bd,sb:c.sb,nc:c.nc},d++)if(c.sb=u[d],null==c.sb.g)for(c.qc=0,c.rc=d,e=function(D){return function(){var F=u[D.rc];if(F){if(null!=F.g)return F.g+D.qc;D.qc-=F.endTime-F.startTime;D.rc+=1}return null}}(c),c.nc=0,c.bd=d,f=function(D){return function(){var F=u[D.bd];if(F){F!=D.sb&&(D.nc+=F.endTime-F.startTime);if(null!=F.g)return F.g+D.nc;--D.bd}return null}}(c);null== 1035c.sb.g;)c.sb.g=f(),null==c.sb.g&&(c.sb.g=e());if(m)for(c=t(u),d=c.next();!d.done;d=c.next())for(e=d.value,d=e.g,e=t(e.i),f=e.next();!f.done;f=e.next())f=f.value,f.g=d,d+=f.endTime-f.startTime;a=a.U;if(m&&Infinity!=a)for(m=t(u),d=m.next();!d.done;d=m.next())d.value.ef(a);return{segments:u,bandwidth:b}} 1036function ht(a,b){if(a==Ic){if("vtt"==b||"wvtt"==b)return"text/vtt";if(b&&""!==b)return"application/mp4"}return"image"!=a||b&&"jpeg"!=b?"audio"==a&&"mp4a.40.34"==b?"audio/mpeg":"mjpg"==b?"application/mp4":null:"image/jpeg"}function it(a){return a==Ic?"text/vtt":Bt[a].mp4} 1037function xt(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,x,z,y;return J(function(B){switch(B.g){case 1:g=If;h=Math.trunc((d.segments.length-1)/2);k=cs(f(),d.segments[h].h,e);l=new kc(k[0]);m=l.Da.split(".").pop();n=Bt[b];if((q=n[m])||(q=$s[m])||(q=ht(b,c)))return B.return(q);u=1;v=Af(k,a.g.retryParameters);ra(B,2);v.method="HEAD";return C(B,bt(a,v,g,{type:u}),4);case 4:x=B.h;p=x.headers["content-type"];ta(B,3);break;case 2:z=ua(B);if(!z||1002!=z.code&&1001!=z.code){B.A(3);break}v.method="GET";return C(B, 1038bt(a,v,g,{type:u}),6);case 6:y=B.h,p=y.headers["content-type"];case 3:return p?B.return(p.split(";")[0]):B.return(it(b))}})}function Xs(a,b,c,d,e,f){a&&(a.width=Number(b)||void 0,a.height=Number(c)||void 0,a.frameRate=Number(d)||void 0,a.hdr=e||void 0,a.videoLayout=f||void 0)}function ws(a,b,c){return bt(a,Af(b,a.g.retryParameters),0,{type:c?2:3})} 1039function us(a){var b,c,d,e,f,g;J(function(h){switch(h.g){case 1:if(!a.i)return h.return();ra(h,2);b=Date.now();return C(h,a.update(),4);case 4:c=Date.now();ys(a)&&(d=(c-b)/1E3,a.Fa.sample(1,d),e=a.m,f=Math.max(0,e-Pa(a.Fa)),a.s.V(f));ta(h,3);break;case 2:g=ua(h);if(!a.i)return h.return();if(a.g.raiseFatalErrorOnManifestUpdateRequestFailure)return a.i.onError(g),h.return();g.severity=1;a.i.onError(g);a.s.V(.1);case 3:if(!a.i)return h.return();a.i.onManifestUpdated();E(h)}})} 1040function ys(a){return a.ca!=vs}
1040function Cs(a,b){a.ca=b;a.l&&a.l.$c(!ys(a));ys(a)||a.s.stop()}function bt(a,b,c,d){if(!a.N)throw new Q(2,7,7001);b=a.i.networkingEngine.request(c,b,d);vf(a.N,b);return b.promise}P("shaka.hls.HlsParser",ts); 1041var $s={aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},Bt={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",tsa:"video/mp2t"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t",tsv:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4", 1042vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},nt={"com.apple.streamingkeydelivery":function(a,b){if("video/mp2t"==b)throw new Q(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new Q(2,4,4041);return Ec("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0),keyId:null}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(a){var b=Wr(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null; 1043b=Wr(a,"URI");b=ps(b);b=ob(b.data);b=Ec("com.widevine.alpha",[{initDataType:"cenc",initData:b}]);if(a=Z(a,"KEYID"))b.keyIds=new Set([a.toLowerCase().substr(2)]);return b},"com.microsoft.playready":function(a){var b=Wr(a,"METHOD");if(!["SAMPLE-AES","SAMPLE-AES-CTR"].includes(b))return null;a=Wr(a,"URI");a=ps(a);a=ob(a.data);b=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);a=ug(a,b,new Set,0);return Ec("com.microsoft.playready",[{initDataType:"cenc",initData:a}])},identity:function(a, 1044b){if("video/mp2t"==b)throw new Q(2,4,4040);if(window.shakaMediaKeysPolyfill)throw new Q(2,4,4041);a=Wr(a,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(a)?Ec("org.w3.clearkey",null):null}},vs="VOD",wt="EVENT",dt="LIVE",Bs={ng:vs,Qh:wt,Th:dt};Ih["application/x-mpegurl"]=function(){return new ts};Ih["application/vnd.apple.mpegurl"]=function(){return new ts};function Ct(a,b,c,d,e,f){if(200<=c&&299>=c&&202!=c)return{uri:e||d,originalUri:d,data:b,status:c,headers:a,fromCache:!!a["x-shaka-from-cache"]};e=null;try{e=Vf(b)}catch(g){}throw new Q(401==c||403==c?2:1,1,1001,d,c,e,a,f);};function Dt(){}function Et(a,b,c,d,e){var f=new Ft;Pf(b.headers).forEach(function(l,m){f.append(m,l)});var g=new Gt,h={tf:!1,hg:!1};a=Ht(a,c,{body:b.body||void 0,headers:f,method:b.method,signal:g.signal,credentials:b.allowCrossSiteCredentials?"include":void 0},h,d,e,b.streamDataCallback);a=new lf(a,function(){h.tf=!0;g.abort();return Promise.resolve()});if(b=b.retryParameters.timeout){var k=new yd(function(){h.hg=!0;g.abort()});k.V(b/1E3);a.finally(function(){k.stop()})}return a} 1045function Ht(a,b,c,d,e,f,g){var h,k,l,m,n,q,p,u,v,x,z,y,B;return J(function(A){switch(A.g){case 1:return h=It,k=Jt,q=n=0,p=Date.now(),ra(A,2),C(A,h(a,c),4);case 4:l=A.h;f(Kt(l.headers));if("HEAD"==c.method){A.A(5);break}u=l.clone().body.getReader();x=(v=l.headers.get("Content-Length"))?parseInt(v,10):0;z=function(D){function F(){var K,H,I;return J(function(G){switch(G.g){case 1:return ra(G,2),C(G,u.read(),4);case 4:K=G.h;ta(G,3);break;case 2:return ua(G),G.return();case 3:if(K.done){G.A(5);break}n+= 1046K.value.byteLength;if(!g){G.A(5);break}return C(G,g(K.value),5);case 5:H=Date.now();if(100<H-p||K.done)I=K.done?0:x-n,e(H-p,n-q,I),q=n,p=H;K.done?D.close():(D.enqueue(K.value),F());E(G)}})}F()};new k({start:z});return C(A,l.arrayBuffer(),6);case 6:m=A.h;case 5:ta(A,3);break;case 2:y=ua(A);if(d.tf)throw new Q(1,1,7001,a,b);if(d.hg)throw new Q(1,1,1003,a,b);throw new Q(1,1,1002,a,y,b);case 3:return B=Kt(l.headers),A.return(Ct(B,m,l.status,a,l.url,b))}})} 1047function Kt(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b}function Lt(){if(window.ReadableStream)try{new ReadableStream({})}catch(a){return!1}else return!1;if(window.Response){if(!(new Response("")).body)return!1}else return!1;return!(!window.fetch||!window.AbortController)}P("shaka.net.HttpFetchPlugin",Dt);Dt.isSupported=Lt;Dt.parse=Et;var It=window.fetch,Gt=window.AbortController,Jt=window.ReadableStream,Ft=window.Headers; 1048Lt()&&(xf("http",Et,2,!0),xf("https",Et,2,!0),xf("blob",Et,2,!0));function Mt(){} 1049function Nt(a,b,c,d,e){var f=new Ot,g=Date.now(),h=0,k=new Promise(function(l,m){f.open(b.method,a,!0);f.responseType="arraybuffer";f.timeout=b.retryParameters.timeout;f.withCredentials=b.allowCrossSiteCredentials;f.onabort=function(){m(new Q(1,1,7001,a,c))};var n=!1;f.onreadystatechange=function(){if(2==f.readyState&&!n){var p=Pt(f);e(p);n=!0}};f.onload=function(p){var u=Pt(f),v=f.response;try{d(Date.now()-g,p.loaded-h,0);var x=Ct(u,v,f.status,a,f.responseURL,c);l(x)}catch(z){m(z)}};f.onerror=function(p){m(new Q(1, 10501,1002,a,p,c))};f.ontimeout=function(){m(new Q(1,1,1003,a,c))};f.onprogress=function(p){var u=Date.now();if(100<u-g||p.lengthComputable&&p.loaded==p.total)d(u-g,p.loaded-h,4==f.readyState?0:p.total-p.loaded),h=p.loaded,g=u};for(var q in b.headers)f.setRequestHeader(q.toLowerCase(),b.headers[q]);f.send(b.body)});return new lf(k,function(){f.abort();return Promise.resolve()})} 1051function Pt(a){var b=a.getAllResponseHeaders().trim().split("\r\n");a={};b=t(b);for(var c=b.next();!c.done;c=b.next())c=c.value.split(": "),a[c[0].toLowerCase()]=c.slice(1).join(": ");return a}P("shaka.net.HttpXHRPlugin",Mt);Mt.parse=Nt;var Ot=window.XMLHttpRequest;xf("http",Nt,1,!0);xf("https",Nt,1,!0);xf("blob",Nt,1,!0);function Qt(a,b,c,d){this.g=a;this.i=b;this.groupId=c;this.h=d}function Rt(a){return a.Z().map(function(b){return"{"+encodeURI(b)+"}"}).join("")+":"+a.Oa+":"+a.sa}function St(a,b){return rk(a.g.Z(),a.g.Oa,a.g.sa,b.streaming.retryParameters)};function Tt(){this.h=this.j=this.i=0;this.g=new Map;this.l=0}function Ut(a,b){a.i+=b;var c=a.l;a.l++;a.g.set(c,b);return c}Tt.prototype.close=function(a,b){if(this.g.has(a)){var c=this.g.get(a);this.g.delete(a);this.j+=c;this.h+=b}};function Vt(a){var b=this;this.o=a;this.j=new Map;this.i=new Kf(function(){return Wt(b).catch(function(){})});this.h=[];this.m=function(){};this.l=function(){};this.g=new Tt}Vt.prototype.destroy=function(){return this.i.destroy()};function Xt(a,b,c){a.m=b;a.l=c}function Wt(a){var b=a.h.map(function(c){return c()});a.h=[];return Promise.all(b)} 1052function Yt(a,b,c,d,e,f){Lf(a.i);var g=(a.j.get(b)||Promise.resolve()).then(function(){var h,k,l,m,n,q,p;return J(function(u){if(1==u.g)return C(u,Zt(a,c),2);h=u.h;if(a.i.g)throw new Q(2,9,7001);if(e)for(m in k=ob(h),l=new tg(k),l.data)n=Number(m),q=l.data[n],p=l.g[n],a.l(q,p);a.g.close(d,h.byteLength);var v=a.g;a.m(0==v.i?0:v.j/v.i,a.g.h);return u.return(f(h))})});a.j.set(b,g)}function $t(a){return J(function(b){return 1==b.g?C(b,Promise.all(a.j.values()),2):b.return(a.g.h)})} 1053function Zt(a,b){var c,d,e,f;return J(function(g){if(1==g.g)return c=If,d=a.o.request(c,b),e=function(){return d.abort()},a.h.push(e),C(g,d.promise,2);f=g.h;Bb(a.h,e);return g.return(f.data)})};function au(a,b){var c=this;this.i=a;this.h=a.objectStore(b);this.g=new kf;a.onabort=function(d){d.preventDefault();c.g.reject()};a.onerror=function(d){d.preventDefault();c.g.reject()};a.oncomplete=function(){c.g.resolve()}}au.prototype.abort=function(){var a=this;return J(function(b){if(1==b.g){try{a.i.abort()}catch(c){}ra(b,2);return C(b,a.g,4)}if(2!=b.g)return ta(b,0);ua(b);E(b)})}; 1054function bu(a,b){return new Promise(function(c,d){var e=a.h.openCursor();e.onerror=d;e.onsuccess=function(){var f;return J(function(g){if(1==g.g){if(null==e.result)return c(),g.return();f=e.result;return C(g,b(f.key,f.value,f),2)}f.continue();E(g)})}})}au.prototype.store=function(){return this.h};au.prototype.promise=function(){return this.g};function cu(a){this.h=a;this.g=[]}cu.prototype.destroy=function(){return Promise.all(this.g.map(function(a){return a.abort()}))};function du(a,b){return eu(a,b,"readwrite")}function eu(a,b,c){c=a.h.transaction([b],c);var d=new au(c,b);a.g.push(d);d.promise().then(function(){Bb(a.g,d)},function(){Bb(a.g,d)});return d};function fu(a,b,c){this.h=new cu(a);this.i=b;this.g=c}r=fu.prototype;r.destroy=function(){return this.h.destroy()};r.hasFixedKeySpace=function(){return!0};r.addSegments=function(){return gu(this.i)};r.removeSegments=function(a,b){return hu(this,this.i,a,b)};r.getSegments=function(a){var b=this,c;return J(function(d){if(1==d.g)return C(d,iu(b,b.i,a),2);c=d.h;return d.return(c.map(function(e){return b.vf(e)}))})};r.addManifests=function(){return gu(this.g)}; 1055r.updateManifest=function(){return Promise.reject(new Q(2,9,9016,"Cannot modify values in "+this.g))};function ju(a,b,c){a=du(a.h,a.g);var d=a.store();d.get(b).onsuccess=function(){d.put(c,b)};return a.promise()}r.updateManifestExpiration=function(a,b){var c=du(this.h,this.g),d=c.store(
vendor: 33,005 bytes, lines 1055-1128
1055);d.get(a).onsuccess=function(e){if(e=e.target.result)e.expiration=b,d.put(e,a)};return c.promise()};r.removeManifests=function(a,b){return hu(this,this.g,a,b)}; 1056r.getManifests=function(a){var b=this,c;return J(function(d){if(1==d.g)return C(d,iu(b,b.g,a),2);c=d.h;return d.return(Promise.all(c.map(function(e){return b.Gc(e)})))})};r.getAllManifests=function(){var a=this,b,c;return J(function(d){return 1==d.g?(b=eu(a.h,a.g,"readonly"),c=new Map,C(d,bu(b,function(e,f){var g;return J(function(h){if(1==h.g)return C(h,a.Gc(f),2);g=h.h;c.set(e,g);E(h)})}),2)):3!=d.g?C(d,b.promise(),3):d.return(c)})};r.vf=function(a){return a};r.Gc=function(a){return Promise.resolve(a)}; 1057function gu(a){return Promise.reject(new Q(2,9,9011,"Cannot add new value to "+a))}r.add=function(a,b){var c=this,d,e,f,g,h,k,l;return J(function(m){if(1==m.g){d=du(c.h,a);e=d.store();f=[];g={};h=t(b);for(k=h.next();!k.done;g={gd:g.gd},k=h.next())l=k.value,g.gd=e.add(l),g.gd.onsuccess=function(n){return function(){f.push(n.gd.result)}}(g);return C(m,d.promise(),2)}return m.return(f)})}; 1058function hu(a,b,c,d){a=du(a.h,b);b=a.store();var e={};c=t(c);for(var f=c.next();!f.done;e={ed:e.ed},f=c.next())e.ed=f.value,b.delete(e.ed).onsuccess=function(g){return function(){return d(g.ed)}}(e);return a.promise()} 1059function iu(a,b,c){var d,e,f,g,h,k,l;return J(function(m){if(1==m.g){d=eu(a.h,b,"readonly");e=d.store();f={};g=[];h={};k=t(c);for(l=k.next();!l.done;h={uc:h.uc,sc:h.sc},l=k.next())h.sc=l.value,h.uc=e.get(h.sc),h.uc.onsuccess=function(n){return function(){void 0==n.uc.result&&g.push(n.sc);f[n.sc]=n.uc.result}}(h);return C(m,d.promise(),2)}if(g.length)throw new Q(2,9,9012,"Could not find values for "+g);return m.return(c.map(function(n){return f[n]}))})};function ku(a){this.g=new cu(a)}ku.prototype.destroy=function(){return this.g.destroy()};ku.prototype.getAll=function(){var a=this,b,c;return J(function(d){return 1==d.g?(b=eu(a.g,"session-ids","readonly"),c=[],C(d,bu(b,function(e,f){c.push(f)}),2)):3!=d.g?C(d,b.promise(),3):d.return(c)})};ku.prototype.add=function(a){var b=du(this.g,"session-ids"),c=b.store();a=t(a);for(var d=a.next();!d.done;d=a.next())c.add(d.value);return b.promise()}; 1060ku.prototype.remove=function(a){var b=this,c;return J(function(d){return 1==d.g?(c=du(b.g,"session-ids"),C(d,bu(c,function(e,f,g){a.includes(f.sessionId)&&g.delete()}),2)):C(d,c.promise(),0)})};function lu(){this.g=new Map}lu.prototype.destroy=function(){for(var a=[],b=t(this.g.values()),c=b.next();!c.done;c=b.next())a.push(c.value.destroy());this.g.clear();return Promise.all(a)};lu.prototype.init=function(){var a=this;mu.forEach(function(e,f){(e=e())&&a.g.set(f,e)});for(var b=[],c=t(this.g.values()),d=c.next();!d.done;d=c.next())b.push(d.value.init());return Promise.all(b)}; 1061function nu(a){var b=null;a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){e.hasFixedKeySpace()||b||(b={path:{Ua:d,ra:f},ra:e})})});if(b)return b;throw new Q(2,9,9013,"Could not find a cell that supports add-operations");}function ou(a,b){a.g.forEach(function(c,d){c.getCells().forEach(function(e,f){b({Ua:d,ra:f},e)})})} 1062function pu(a,b,c){a=a.g.get(b);if(!a)throw new Q(2,9,9013,"Could not find mechanism with name "+b);b=a.getCells().get(c);if(!b)throw new Q(2,9,9013,"Could not find cell with name "+c);return b}function qu(a,b){a.g.forEach(function(c){b(c.getEmeSessionCell())})}function ru(a){var b=Array.from(a.g.keys());if(!b.length)throw new Q(2,9,9E3,"No supported storage mechanisms found");return a.g.get(b[0]).getEmeSessionCell()} 1063function su(a){var b,c,d;return J(function(e){return 1==e.g?(b=Array.from(a.g.values()),c=0<b.length,c||(d=mu,d.forEach(function(f){(f=f())&&b.push(f)})),C(e,Promise.all(b.map(function(f){return f.erase()})),2)):c?e.A(0):C(e,Promise.all(b.map(function(f){return f.destroy()})),0)})}function tu(a,b){mu.set(a,b)}P("shaka.offline.StorageMuxer",lu);lu.unregister=function(a){mu.delete(a)};lu.register=tu;lu.prototype.destroy=lu.prototype.destroy;var mu=new Map;function uu(){fu.apply(this,arguments)}na(uu,fu);uu.prototype.updateManifestExpiration=function(a,b){var c=this,d,e,f;return J(function(g){d=du(c.h,c.g);e=d.store();f=new kf;e.get(a).onsuccess=function(h){(h=h.target.result)?(h.expiration=b,e.put(h),f.resolve()):f.reject(new Q(2,9,9012,"Could not find values for "+a))};return C(g,Promise.all([d.promise(),f]),0)})}; 1064uu.prototype.Gc=function(a){var b,c,d,e,f,g;return J(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c)d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime,e=d-a.periods[c].startTime,f=vu(a.periods[c],e),b.push(f);return C(h,Vq(b),2)}g=h.h;return h.return({creationTime:0,originalManifestUri:a.originalManifestUri,duration:a.duration,size:a.size,expiration:null==a.expiration?Infinity:a.expiration,streams:g,sessionIds:a.sessionIds,drmInfo:a.drmInfo,appMetadata:a.appMetadata,sequenceMode:!1})})}; 1065function vu(a,b){wu(a);for(var c=t(a.streams),d=c.next();!d.done;d=c.next());return a.streams.map(function(e){return xu(e,a.startTime,b)})} 1066function xu(a,b,c){var d=a.initSegmentUri?yu(a.initSegmentUri):null,e=b+a.presentationTimeOffset,f=b+c;return{id:a.id,originalId:null,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:void 0,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,initSegmentKey:d,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(g){var h= 1067yu(g.uri);return{startTime:b+g.startTime,endTime:b+g.endTime,dataKey:h,initSegmentKey:d,appendWindowStart:b,appendWindowEnd:f,timestampOffset:e,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}}uu.prototype.vf=function(a){return{data:a.data}}; 1068function yu(a){var b;if((b=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(a))||(b=/^offline:segment\/([0-9]+)$/.exec(a)))return Number(b[1]);throw new Q(2,9,9004,"Could not parse uri "+a);} 1069function wu(a){var b=a.streams.filter(function(h){return"audio"==h.contentType});a=a.streams.filter(function(h){return"video"==h.contentType});if(!b.every(function(h){return h.variantIds})||!a.every(function(h){return h.variantIds})){for(var c=t(b),d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=t(a);for(d=c.next();!d.done;d=c.next())d.value.variantIds=[];c=0;if(a.length&&!b.length){var e=c++,f=t(a);for(d=f.next();!d.done;d=f.next())d.value.variantIds.push(e)}if(!a.length&&b.length)for(e=c++, 1070f=t(b),d=f.next();!d.done;d=f.next())d.value.variantIds.push(e);if(a.length&&b.length)for(b=t(b),d=b.next();!d.done;d=b.next())for(d=d.value,e=t(a),f=e.next();!f.done;f=e.next()){f=f.value;var g=c++;d.variantIds.push(g);f.variantIds.push(g)}}};function zu(){fu.apply(this,arguments)}na(zu,fu); 1071zu.prototype.Gc=function(a){var b,c,d,e,f,g;return J(function(h){if(1==h.g){b=[];for(c=0;c<a.periods.length;++c){d=c==a.periods.length-1?a.duration:a.periods[c+1].startTime;e=d-a.periods[c].startTime;for(var k=a.periods[c],l=[],m=t(k.streams),n=m.next();!n.done;n=m.next())n=n.value,0!=n.variantIds.length&&l.push(Au(n,k.startTime,k.startTime+e));f=l;b.push(f)}return C(h,Vq(b),2)}g=h.h;return h.return({appMetadata:a.appMetadata,creationTime:0,drmInfo:a.drmInfo,duration:a.duration,expiration:null==a.expiration? 1072Infinity:a.expiration,originalManifestUri:a.originalManifestUri,sessionIds:a.sessionIds,size:a.size,streams:g,sequenceMode:!1})})}; 1073function Au(a,b,c){return{id:a.id,originalId:a.originalId,groupId:null,primary:a.primary,type:a.contentType,mimeType:a.mimeType,codecs:a.codecs,frameRate:a.frameRate,pixelAspectRatio:a.pixelAspectRatio,hdr:void 0,videoLayout:void 0,kind:a.kind,language:a.language,originalLanguage:a.language||null,label:a.label,width:a.width,height:a.height,encrypted:a.encrypted,keyIds:new Set([a.keyId]),segments:a.segments.map(function(d){return{startTime:b+d.startTime,endTime:b+d.endTime,initSegmentKey:a.initSegmentKey, 1074appendWindowStart:b,appendWindowEnd:c,timestampOffset:b-a.presentationTimeOffset,dataKey:d.dataKey,tilesLayout:"",mimeType:null,codecs:null}}),variantIds:a.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0,external:!1,fastSwitching:!1}};function Bu(){fu.apply(this,arguments)}na(Bu,fu);r=Bu.prototype;r.hasFixedKeySpace=function(){return!1};r.addSegments=function(a){return this.add(this.i,a)};r.addManifests=function(a){return this.add(this.g,a)};r.updateManifest=function(a,b){return ju(this,a,b)};r.Gc=function(a){null==a.expiration&&(a.expiration=Infinity);return Promise.resolve(a)};function Cu(){this.m=this.j=this.i=this.h=this.g=this.l=null}r=Cu.prototype; 1075r.init=function(){var a=this,b=new kf,c=!1,d=new yd(function(){c=!0;b.reject(new Q(2,9,9017))});d.V(5);var e=window.indexedDB.open("shaka_offline_db",5);e.onsuccess=function(){if(!c){var f=e.result;a.l=f;var g=f.objectStoreNames;g=g.contains("manifest")&&g.contains("segment")?new uu(f,"segment","manifest"):null;a.g=g;g=f.objectStoreNames;g=g.contains("manifest-v2")&&g.contains("segment-v2")?new zu(f,"segment-v2","manifest-v2"):null;a.h=g;g=f.objectStoreNames;g=g.contains("manifest-v3")&&g.contains("segment-v3")? 1076new zu(f,"segment-v3","manifest-v3"):null;a.i=g;g=f.objectStoreNames;g=g.contains("manifest-v5")&&g.contains("segment-v5")?new Bu(f,"segment-v5","manifest-v5"):null;a.j=g;f=f.objectStoreNames.contains("session-ids")?new ku(f):null;a.m=f;d.stop();b.resolve()}};e.onupgradeneeded=function(){for(var f=e.result,g=t(["segment-v5","manifest-v5","session-ids"]),h=g.next();!h.done;h=g.next())h=h.value,f.objectStoreNames.contains(h)||f.createObjectStore(h,{autoIncrement:!0})};e.onerror=function(f){c||(b.reject(new Q(2, 10779,9001,e.error)),d.stop(),f.preventDefault())};return b};r.destroy=function(){var a=this;return J(function(b){switch(b.g){case 1:if(!a.g){b.A(2);break}return C(b,a.g.destroy(),2);case 2:if(!a.h){b.A(4);break}return C(b,a.h.destroy(),4);case 4:if(!a.i){b.A(6);break}return C(b,a.i.destroy(),6);case 6:if(!a.j){b.A(8);break}return C(b,a.j.destroy(),8);case 8:if(!a.m){b.A(10);break}return C(b,a.m.destroy(),10);case 10:a.l&&a.l.close(),E(b)}})}; 1078r.getCells=function(){var a=new Map;this.g&&a.set("v1",this.g);this.h&&a.set("v2",this.h);this.i&&a.set("v3",this.i);this.j&&a.set("v5",this.j);return a};r.getEmeSessionCell=function(){return this.m}; 1079r.erase=function(){var a=this;return J(function(b){switch(b.g){case 1:if(!a.g){b.A(2);break}return C(b,a.g.destroy(),2);case 2:if(!a.h){b.A(4);break}return C(b,a.h.destroy(),4);case 4:if(!a.i){b.A(6);break}return C(b,a.i.destroy(),6);case 6:if(!a.j){b.A(8);break}return C(b,a.j.destroy(),8);case 8:return a.l&&a.l.close(),C(b,Du(),10);case 10:return a.l=null,a.g=null,a.h=null,a.i=null,a.j=null,C(b,a.init(),0)}})}; 1080function Du(){var a=new kf,b=window.indexedDB.deleteDatabase("shaka_offline_db");b.onblocked=function(){};b.onsuccess=function(){a.resolve()};b.onerror=function(c){a.reject(new Q(2,9,9001,b.error));c.preventDefault()};return a}tu("idb",function(){return Qd()||Id()||!window.indexedDB?null:new Cu});function Eu(a,b,c,d){this.g=a;this.i=b;this.h=c;this.l=d;this.j=["offline:",a,"/",b,"/",c,"/",d].join("")}Eu.prototype.Ua=function(){return this.i};Eu.prototype.ra=function(){return this.h};Eu.prototype.key=function(){return this.l};Eu.prototype.toString=function(){return this.j}; 1081function Fu(a){a=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(a);if(null==a)return null;var b=a[1];if("manifest"!=b&&"segment"!=b)return null;var c=a[2];if(!c)return null;var d=a[3];return d&&null!=b?new Eu(b,c,d,Number(a[4])):null};function Gu(a,b){this.h=a;this.g=b} 1082function Hu(a,b){var c=new uj(null,0);c.fb(b.duration);var d=b.streams.filter(function(l){return"audio"==l.type}),e=b.streams.filter(function(l){return"video"==l.type});d=Iu(a,d,e,c);e=b.streams.filter(function(l){return l.type==Ic}).map(function(l){return Ju(a,l,c)});var f=b.streams.filter(function(l){return"image"==l.type}).map(function(l){return Ju(a,l,c)}),g=b.drmInfo?[b.drmInfo]:[];if(b.drmInfo)for(var h=t(d.values()),k=h.next();!k.done;k=h.next())k=k.value,k.audio&&k.audio.encrypted&&(k.audio.drmInfos= 1083g),k.video&&k.video.encrypted&&(k.video.drmInfos=g);return{presentationTimeline:c,minBufferTime:2,offlineSessionIds:b.sessionIds,variants:Array.from(d.values()),textStreams:e,imageStreams:f,sequenceMode:b.sequenceMode||!1,ignoreManifestTimestampsInSegmentsMode:!1,type:b.type||"UNKNOWN",serviceDescription:null}} 1084function Iu(a,b,c,d){for(var e=new Set,f=t(b),g=f.next();!g.done;g=f.next()){var h=t(g.value.variantIds);for(g=h.next();!g.done;g=h.next())e.add(g.value)}f=t(c);for(g=f.next();!g.done;g=f.next())for(h=t(g.value.variantIds),g=h.next();!g.done;g=h.next())e.add(g.value);f=new Map;e=t(e);for(g=e.next();!g.done;g=e.next())g=g.value,f.set(g,{id:g,language:"",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});b=t(b);for(e=b.next();!e.done;e= 1085b.next())for(e=e.value,g=Ju(a,e,d),h=t(e.variantIds),e=h.next();!e.done;e=h.next())e=f.get(e.value),e.language=g.language,e.primary=e.primary||g.primary,e.audio=g;c=t(c);for(b=c.next();!b.done;b=c.next())for(e=b.value,b=Ju(a,e,d),g=t(e.variantIds),e=g.next();!e.done;e=g.next())e=f.get(e.value),e.primary=e.primary||b.primary,e.video=b;return f} 1086function Ju(a,b,c){var d=b.segments.map(function(e){return Ku(a,e,b)});c.Sc(d);return{id:b.id,originalId:b.originalId,groupId:b.groupId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Qj(d),mimeType:b.mimeType,codecs:b.codecs,width:b.width||void 0,height:b.height||void 0,frameRate:b.frameRate,pixelAspectRatio:b.pixelAspectRatio,hdr:b.hdr,videoLayout:b.videoLayout,kind:b.kind,encrypted:b.encrypted,drmInfos:[],keyIds:b.keyIds,language:b.language,originalLanguage:b.originalLanguage|| 1087null,label:b.label,type:b.type,primary:b.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:b.roles,forced:b.forced,channelsCount:b.channelsCount,audioSamplingRate:b.audioSamplingRate,spatialAudio:b.spatialAudio,closedCaptions:b.closedCaptions,tilesLayout:b.tilesLayout,accessibilityPurpose:null,external:b.external,fastSwitching:b.fastSwitching,fullMimeTypes:new Set([Lc(b.mimeType,b.codecs)])}} 1088function Ku(a,b,c){var d=new Eu("segment",a.h,a.g,b.dataKey);a=new Ph(b.startTime,b.endTime,function(){return[d.toString()]},0,null,null!=b.initSegmentKey?Lu(a,b.initSegmentKey):null,b.timestampOffset,b.appendWindowStart,b.appendWindowEnd,[],b.tilesLayout||"");a.mimeType=b.mimeType||c.mimeType||"";a.codecs=b.codecs||c.codecs||"";return a}function Lu(a,b){var c=new Eu("segment",a.h,a.g,b);return new Nh(function(){return[c.toString()]},0,null)};function Mu(){this.g=null}r=Mu.prototype;r.configure=function(){}; 1089r.start=function(a,b){var c=this,d,e,f,g,h,k,l;return J(function(m){switch(m.g){case 1:d=Fu(a);c.g=d;if(null==d||"manifest"!=d.g)throw new Q(2,1,9004,a);e=new lu;sa(m,2);return C(m,e.init(),4);case 4:return C(m,pu(e,d.Ua(),d.ra()),5);case 5:return f=m.h,C(m,f.getManifests([d.key()]),6);case 6:return g=m.h,h=g[0],k=new Gu(d.Ua(),d.ra()),l=Hu(k,h),b.makeTextStreamsForClosedCaptions(l),m.return(l);case 2:return va(m),C(m,e.destroy(),7);case 7:wa(m,0)}})};r.stop=function(){return Promise.resolve()}; 1090r.update=function(){}; 1091r.onExpirationUpdated=function(a,b){var c=this,d,e,f,g,h,k,l;return J(function(m){switch(m.g){case 1:return d=c.g,e=new lu,ra(m,2,3),C(m,e.init(),5);case 5:return C(m,pu(e,d.Ua(),d.ra()),6);case 6:return f=m.h,C(m,f.getManifests([d.key()]),7);case 7:g=m.h;h=g[0];k=h.sessionIds.includes(a);l=void 0==h.expiration||h.expiration>b;if(!k||!l){m.A(3);break}return C(m,f.updateManifestExpiration(d.key(),b),3);case 3:return va(m),C(m,e.destroy(),10);case 10:wa(m,0);break;case 2:ua(m),m.A(3)}})}; 1092r.onInitialVariantChosen=function(){};r.banLocation=function(){};Ih["application/x-offline-manifest"]=function(){return new Mu};function Nu(){}function Ou(a){var b=Fu(a);b&&"manifest"==b.g?(a={uri:a,originalUri:a,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}},a=of(a)):a=b&&"segment"==b.g?Pu(b.key(),b):mf(new Q(2,1,9004,a));return a} 1093function Pu(a,b){var c=new lu;return of(void 0).ma(function(){return c.init()}).ma(function(){return pu(c,b.Ua(),b.ra())}).ma(function(d){return d.getSegments([b.key()])}).ma(function(d){return{uri:b,data:d[0].data,headers:{}}}).finally(function(){return c.destroy()})}P("shaka.offline.OfflineScheme",Nu);Nu.plugin=Ou;xf("offline",Ou);function Qu(a,b,c){var d,e,f,g,h,k;return J(function(l){switch(l.g){case 1:d=[];for(var m=[],n=t(c),q=n.next();!q.done;q=n.next()){q=q.value;for(var p=!1,u=t(m),v=u.next();!v.done;v=u.next())if(v=v.value,Ru(v.info,q)){v.sessionIds.push(q.sessionId);p=!0;break}p||m.push({info:q,sessionIds:[q.sessionId]})}e=t(m);f=e.next();case 2:if(f.done){l.A(4);break}g=f.value;h=Su(a,b,g);return C(l,h,5);case 5:k=l.h;d=d.concat(k);f=e.next();l.A(2);break;case 4:return l.return(d)}})} 1094function Su(a,b,c){var d,e;return J(function(f){switch(f.g){case 1:return d=new Rg({Qb:b,onError:function(){},Nd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),ra(f,2),d.configure(a),C(f,Zg(d,c.info.keySystem,c.info.licenseUri,c.info.serverCertificate,c.info.audioCapabilities,c.info.videoCapabilities),4);case 4:ta(f,3);break;case 2:return ua(f),C(f,d.destroy(),5);case 5:return f.return([]);case 3:return e=[],C(f,Promise.all(c.sessionIds.map(function(g){return J(function(h){if(1== 1095h.g)return ra(h,2),C(h,kh(d,g),4);if(2!=h.g)return e.push(g),ta(h,0);ua(h);E(h)})})),6);case 6:return C(f,d.destroy(),7);case 7:return f.return(e)}})}function Ru(a,b){function c(d,e){return d.robustness==e.robustness&&d.contentType==e.contentType}return a.keySystem==b.keySystem&&a.licenseUri==b.licenseUri&&Cb(a.audioCapabilities,b.audioCapabilities,c)&&Cb(a.videoCapabilities,b.videoCapabilities,c)};function Tu(a,b,c){var d=b.presentationTimeline.getDuration();b=Uu(b);return{offlineUri:null,originalManifestUri:a,duration:d,size:0,expiration:Infinity,tracks:b,appMetadata:c,isIncomplete:!1}}function Vu(a,b){var c=Hu(new Gu(a.Ua(),a.ra()),b),d=b.appMetadata||{};c=Uu(c);return{offlineUri:a.toString(),originalManifestUri:b.originalManifestUri,duration:b.duration,size:b.size,expiration:b.expiration,tracks:c,appMetadata:d,isIncomplete:b.isIncomplete||!1}} 1096function Uu(a){var b=[],c=Ce(a.variants);c=t(c);for(var d=c.next();!d.done;d=c.next())b.push(se(d.value));a=t(a.textStreams);for(c=a.next();!c.done;c=a.next())b.push(te(c.value));return b};function Wu(){this.g={}}function Xu(a,b){var c=b.audio,d=b.video;c&&!d&&(a.g[c.id]=c.bandwidth||b.bandwidth);!c&&d&&(a.g[d.id]=d.bandwidth||b.bandwidth);if(c&&d){var e=c.bandwidth||393216,f=d.bandwidth||b.bandwidth-e;0>=f&&(f=b.bandwidth);a.g[c.id]=e;a.g[d.id]=f}}function Yu(a,b){a.g[b.id]=b.bandwidth||2048}function Zu(a,b){a=a.g[b];null==a&&(a=0);return a};function $u(a){var b=this;if(a&&a.constructor!=U)throw new Q(2,9,9008);this.g=this.h=null;a?(this.h=a.h,this.g=a.cc()):(this.h=am(),this.g=new wf);this.i=[];this.j=[];var c=!a;this.l=new Kf(function(){var d,e,f,g,h;return J(function(k){switch(k.g){case 1:return C(k,Promise.all(b.j.map(function(l){return Wt(l)})),2);case 2:d=function(){};e=[];f=t(b.i);for(g=f.next();!g.done;g=f.next())h=g.value,e.push(h.then(d,d));return C(k,Promise.all(e),3);case 3:if(!c){k.A(4);break}return C(k,b.g.destroy(),4); 1097case 4:b.h=null,b.g=null,E(k)}})})}function av(){if(Dd())a:{var a=t(mu.values());for(var b=a.next();!b.done;b=a.next())if(b=b.value,b=b()){b.destroy();a=!0;break a}a=!1}else a=!1;return a}r=$u.prototype;r.destroy=function(){return this.l.destroy()};r.configure=function(a,b){2==arguments.length&&"string"==typeof a&&(a=Rl(a,b));return cm(this.h,a)};r.getConfiguration=function(){var a=am();cm(a,this.h,am());return a};r.cc=function(){return this.g}; 1098r.store=function(a,b,c){var d=this,e=this.getConfiguration(),f=new Vt(this.g);this.j.push(f);b=bv(this,a,b||{},function(){var g;return J(function(h){if(1==h.g)return c?h.A(2):C(h,Yk(a,d.g,e.manifest.retryParameters),3);2!=h.g&&(c=h.h);g=Hh(a,c||null);return h.return(g())})},e,f);b=new lf(b,function(){return Wt(f)});b.finally(function(){Bb(d.j,f)});return cv(this,b)}; 1099function bv(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,x,z,y,B;return J(function(A){switch(A.g){case 1:return dv(),h=g=null,k=new lu,n=m=l=null,ra(A,2,3),C(A,d(),5);case 5:return g=A.h,C(A,ev(a,b,g,e),6);case 6:q=A.h;fv(a);p=!q.presentationTimeline.T()&&!q.presentationTimeline.Ob();if(!p)throw new Q(2,9,9005,b);return C(A,gv(a,q,function(D){n=n||D},e),7);case 7:h=A.h;fv(a);if(n)throw n;return C(A,hv(q,h,e),8);case 8:return C(A,k.init(),9);case 9:return fv(a),C(A,nu(k),10);case 10:return l=A.h,fv(a),u=iv(h, 1100q,b,c,e,f),v=u.kh,x=u.hf,C(A,l.ra.addManifests([v]),11);case 11:z=A.h;fv(a);m=z[0];fv(a);if(n)throw n;return C(A,jv(a,x,m,v,f,e,l.ra,q,h),12);case 12:return fv(a),kv(q,v,h,e),C(A,l.ra.updateManifest(m,v),13);case 13:return fv(a),y=new Eu("manifest",l.path.Ua,l.path.ra,m),A.return(Vu(y,v));case 3:return va(A),C(A,k.destroy(),14);case 14:if(!g){A.A(15);break}return C(A,g.stop(),15);case 15:if(!h){A.A(17);break}return C(A,h.destroy(),17);case 17:wa(A,0);break;case 2:B=ua(A);if(null==m){A.A(19);break}return C(A, 1101lv(m),19);case 19:throw n||B;}})} 1102function jv(a,b,c,d,e,f,g,h,k){var l,m,n,q,p,u,v,x,z,y;return J(function(B){switch(B.g){case 1:l={};m=0;n=function(A,D){var F,K,H,I,G,M,L;return J(function(N){if(1==N.g){F={};K=t(A);for(H=K.next();!H.done;F={Gb:F.Gb},H=K.next())F.Gb=H.value,I=St(F.Gb,f),G=F.Gb.i,M=F.Gb.h,L=function(O){return function(X){var Y,R,La;return J(function(Ya){if(1==Ya.g)return C(Ya,g.addSegments([{data:X}]),2);Y=Ya.h;fv(a);R=O.Gb.g;La=Rt(R);l[La]=Y[0];m+=X.byteLength;E(Ya)})}}(F),Yt(e,F.Gb.groupId,I,G,M,L);return C(N,$t(e), 11032)}if(!D)return N.A(0);fv(a);kv(h,d,k,f);return C(N,g.updateManifest(c,d),0)})};q=!1;ra(B,2);if(!mv(h)||!q||nv(h)){B.A(4);break}return C(B,n(b.filter(function(A){return A.h}),!0),5);case 5:return fv(a),b=b.filter(function(A){return!A.h}),p=l,u=m,l={},m=0,C(B,ov(g,c,d,p,u,function(){return fv(a)}),6);case 6:fv(a);case 4:if(q){B.A(7);break}return C(B,n(b,!1),8);case 8:return fv(a),v=l,x=m,l={},m=0,C(B,ov(g,c,d,v,x,function(){return fv(a)}),9);case 9:fv(a);case 7:ta(B,0);break;case 2:return z=ua(B), 1104y=Object.values(l),C(B,g.removeSegments(y,function(){}),10);case 10:throw z;}})}function lv(a){var b,c,d,e;return J(function(f){switch(f.g){case 1:return b=new lu,C(f,b.init(),2);case 2:return C(f,nu(b),3);case 3:return c=f.h,d=new Eu("manifest",c.path.Ua,c.path.ra,a),C(f,b.destroy(),4);case 4:return e=new $u,C(f,e.remove(d.toString()),0)}})} 1105function ov(a,b,c,d,e,f){var g,h,k,l,m,n,q,p,u,v,x;return J(function(z){switch(z.g){case 1:g=!1;ra(z,2);h=!0;k=t(c.streams);for(l=k.next();!l.done;l=k.next())for(m=l.value,n=t(m.segments),q=n.next();!q.done;q=n.next())p=q.value,u=p.pendingSegmentRefId?d[p.pendingSegmentRefId]:null,null!=u&&(p.dataKey=u,p.pendingSegmentRefId=void 0),u=p.pendingInitSegmentRefId?d[p.pendingInitSegmentRefId]:null,null!=u&&(p.initSegmentKey=u,p.pendingInitSegmentRefId=void 0),p.pendingSegmentRefId&&(h=!1),p.pendingInitSegmentRefId&& 1106(h=!1);c.size+=e;h&&(c.isIncomplete=!1);return C(z,a.updateManifest(b,c),4);case 4:g=!0;f();ta(z,0);break;case 2:return v=ua(z),C(z,lv(b),5);case 5:if(g){z.A(6);break}x=Object.values(d);return C(z,a.removeSegments(x,function(){}),6);case 6:throw v;}})} 1107function hv(a,b,c){var d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B,A,D,F,K,H,I,G,M,L,N,O;return J(function(X){switch(X.g){case 1:return d={width:Infinity,height:Infinity},Zd(a,c.restrictions,d),C(X,ce(b,a,c.offline.usePersistentLicense),2);case 2:e=[];f=c.preferredDecodingAttributes;g=c.preferredVideoCodecs;h=c.preferredAudioCodecs;Xd(a,g,h,f);k=t(a.variants);for(l=k.next();!l.done;l=k.next())m=l.value,e.push(se(m));n=t(a.textStreams);for(q=n.next();!q.done;q=n.next())p=q.value,e.push(te(p));u=t(a.imageStreams); 1108for(v=u.next();!v.done;v=u.next())x=v.value,e.push(ue(x));return C(X,c.offline.trackSelectionCallback(e),3);case 3:z=X.h;y=a.presentationTimeline.getDuration();B=0;A=t(z);for(D=A.next();!D.done;D=A.next())F=D.value,K=F.bandwidth*y/8,B+=K;ra(X,4);return C(X,c.offline.downloadSizeCallback(B),6);case 6:H=X.h;if(!H)throw new Q(2,9,9014);ta(X,5);break;case 4:I=ua(X);if(I instanceof Q)throw I;throw new Q(2,9,9015);case 5:G=new Set;M=new Set;L=new Set;N=t(z);for(D=N.next();!D.done;D=N.next())O=D.value,"variant"== 1109O.type&&G.add(O.id),"text"==O.type&&M.add(O.id),"image"==O.type&&L.add(O.id);a.variants=a.variants.filter(function(Y){return G.has(Y.id)});a.textStreams=a.textStreams.filter(function(Y){return M.has(Y.id)});a.imageStreams=a.imageStreams.filter(function(Y){return L.has(Y.id)});pv(a);E(X)}})} 1110function iv(a,b,c,d,e,f){var g=Tu(c,b,d),h=e.offline.progressCallback;Xt(f,function(p,u){g.size=u;h(g,p)},function(p,u){k&&e.offline.usePersistentLicense&&l==u&&gh(a,"cenc",p)});var k=mv(b)&&!nv(b),l=null;k&&(l=qv.get(a.g.keySystem));for(var m=new Wu,n=t(b.textStreams),q=n.next();!q.done;q=n.next())m.g[q.value.id]=52;n=t(b.imageStreams);for(q=n.next();!q.done;q=n.next())Yu(m,q.value);q=t(b.variants);for(n=q.next();!n.done;n=q.next())Xu(m,n.value);m=rv(f,m,b,e);f=m.streams;m=m.hf;q=a.g;n=e.offline.usePersistentLicense; 1111q&&n&&(q.initData=[]);return{kh:{creationTime:Date.now(),originalManifestUri:c,duration:b.presentationTimeline.getDuration(),size:0,expiration:a.Kc(),streams:f,sessionIds:n?rh(a):[],drmInfo:q,appMetadata:d,isIncomplete:!0,sequenceMode:b.sequenceMode,type:b.type},hf:m}}function mv(a){return a.variants.some(function(b){var c=b.audio&&b.audio.encrypted;return b.video&&b.video.encrypted||c})} 1112function nv(a){return a.variants.some(function(b){return(b.video?b.video.drmInfos:[]).concat(b.audio?b.audio.drmInfos:[]).some(function(c){return c.initData&&c.initData.length})})}function kv(a,b,c,d){b.expiration=c.Kc();c=rh(c);b.sessionIds=d.offline.usePersistentLicense?c:[];if(mv(a)&&d.offline.usePersistentLicense&&!c.length)throw new Q(2,9,9007);}r.remove=function(a){return sv(this,tv(this,a))}; 1113function tv(a,b){var c,d,e,f,g,h;return J(function(k){switch(k.g){case 1:dv();c=Fu(b);if(null==c||"manifest"!=c.g)throw new Q(2,9,9004,b);d=c;e=new lu;sa(k,2);return C(k,e.init(),4);case 4:return C(k,pu(e,d.Ua(),d.ra()),5);case 5:return f=k.h,C(k,f.getManifests([d.key()]),6);case 6:return g=k.h,h=g[0],C(k,Promise.all([uv(a,h,e),vv(f,d,h)]),2);case 2:return va(k),C(k,e.destroy(),8);case 8:wa(k,0)}})} 1114function wv(a,b){for(var c=[],d=t(a.streams),e=d.next();!e.done;e=d.next())e=e.value,b&&"video"==e.type?c.push({contentType:Lc(e.mimeType,e.codecs),robustness:a.drmInfo.videoRobustness}):b||"audio"!=e.type||c.push({contentType:Lc(e.mimeType,e.codecs),robustness:a.drmInfo.audioRobustness});return c}function uv(a,b,c){return J(function(d){return C(d,xv(a.g,a.h.drm,c,b),0)})} 1115function vv(a,b,c){function d(){}var e=yv(c);Vu(b,c);return Promise.all([a.removeSegments(e,d),a.removeManifests([b.key()],d)])}r.xh=function(){return sv(this,zv(this))}; 1116function zv(a){var b,c,d,e,f,g,h,k,l,m;return J(function(n){switch(n.g){case 1:return dv(),b=a.g,c=a.h.drm,d=new lu,e=!1,sa(n,2),C(n,d.init(),4);case 4:f=[],qu(d,function(q){return f.push(q)}),g=t(f),h=g.next();case 5:if(h.done){n.A(2);break}k=h.value;return C(n,k.getAll(),8);case 8:return l=n.h,C(n,Qu(c,b,l),9);case 9:return m=n.h,C(n,k.remove(m),10);case 10:m.length!=l.length&&(e=!0);h=g.next();n.A(5);break;case 2:return va(n),C(n,d.destroy(),11);case 11:wa(n,3);break;case 3:return n.return(!e)}})} 1117r.list=function(){return sv(this,Av())};function Av(){var a,b,c;return J(function(d){switch(d.g){case 1:return dv(),a=[],b=new lu,sa(d,2),C(d,b.init(),4);case 4:return c=Promise.resolve(),ou(b,function(e,f){c=c.then(function(){var g;return J(function(h){if(1==h.g)return C(h,f.getAllManifests(),2);g=h.h;g.forEach(function(k,l){k=Vu(new Eu("manifest",e.Ua,e.ra,l),k);a.push(k)});E(h)})})}),C(d,c,2);case 2:return va(d),C(d,b.destroy(),6);case 6:wa(d,3);break;case 3:return d.return(a)}})} 1118function ev(a,b,c,d){var e,f,g,h,k;return J(function(l){if(1==l.g)return e=null,f=a.g,g={networkingEngine:f,filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(m){e=m},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){},updateDuration:function(){},newDrmInfo:function(){},onManifestUpdated:function(){},getBandwidthEstimate:function(){return d.abr.defaultBandwidthEstimate}}, 1119c.configure(d.manifest),fv(a),C(l,c.start(b,g),2);if(3!=l.g)return h=l.h,fv(a),k=Bv(h),C(l,Promise.all(Mf(k,function(m){return m.createSegmentIndex()})),3);fv(a);if(e)throw e;return l.return(h)})}function gv(a,b,c,d){var e;return J(function(f){return 1==f.g?(e=new Rg({Qb:a.g,onError:c,Nd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),e.configure(d.drm),C(f,Wg(e,b.variants,d.offline.usePersistentLicense),2)):3!=f.g?C(f,ih(e),3):f.return(e)})} 1120function rv(a,b,c,d){var e=new Map,f=Bv(c),g=new Map;f=t(f);for(var h=f.next();!h.done;h=f.next()){h=h.value;var k=Cv(a,b,c,h,d,e);g.set(h.id,k)}a=t(c.variants);for(b=a.next();!b.done;b=a.next())b=b.value,b.audio&&g.get(b.audio.id).variantIds.push(b.id),b.video&&g.get(b.video.id).variantIds.push(b.id);return{streams:Array.from(g.values()),hf:Array.from(e.values())}} 1121function Cv(a,b,c,d,e,f){var g={id:d.id,originalId:d.originalId,groupId:d.groupId,primary:d.primary,type:d.type,mimeType:d.mimeType,codecs:d.codecs,frameRate:d.frameRate,pixelAspectRatio:d.pixelAspectRatio,hdr:d.hdr,videoLayout:d.videoLayout,kind:d.kind,language:d.language,originalLanguage:d.originalLanguage,label:d.label,width:d.width||null,height:d.height||null,encrypted:d.encrypted,keyIds:d.keyIds,segments:[],variantIds:[],roles:d.roles,forced:d.forced,channelsCount:d.channelsCount,audioSamplingRate:d.audioSamplingRate, 1122spatialAudio:d.spatialAudio,closedCaptions:d.closedCaptions,tilesLayout:d.tilesLayout,external:d.external,fastSwitching:d.fastSwitching},h=e.offline.numberOfParallelDownloads,k=0;Dv(d,c.presentationTimeline.bb(),function(l){var m=Rt(l),n=void 0;if(!f.has(m)){var q=l.endTime-l.startTime;q=Zu(b,d.id)*q;q=Ut(a.g,q);f.set(m,new Qt(l,q,k,!1))}l.h&&(n=Rt(l.h),f.has(n)||(q=.5*Zu(b,d.id),q=Ut(a.g,q),f.set(n,new Qt(l.h,q,k,!0))));g.segments.push({pendingInitSegmentRefId:n,initSegmentKey:n?0:null,startTime:l.startTime, 1123endTime:l.endTime,appendWindowStart:l.appendWindowStart,appendWindowEnd:l.appendWindowEnd,timestampOffset:l.timestampOffset,tilesLayout:l.tilesLayout,pendingSegmentRefId:m,dataKey:0,mimeType:l.mimeType,codecs:l.codecs});k=(k+1)%h});return g}function Dv(a,b,c){b=a.segmentIndex.find(b);if(null!=b)for(var d=a.segmentIndex.get(b);d;)c(d),d=a.segmentIndex.get(++b)}function fv(a){if(a.l.g)throw new Q(2,9,7001);}function dv(){if(!av())throw new Q(2,9,9E3);} 1124function sv(a,b){return J(function(c){if(1==c.g)return a.i.push(b),sa(c,2),C(c,b,4);if(2!=c.g)return c.return(c.h);va(c);Bb(a.i,b);return wa(c,0)})}function cv(a,b){var c=b.promise;a.i.push(c);return b.finally(function(){Bb(a.i,c)})}function yv(a){var b=new Set;a=t(a.streams);for(var c=a.next();!c.done;c=a.next()){c=t(c.value.segments);for(var d=c.next();!d.done;d=c.next())d=d.value,null!=d.initSegmentKey&&b.add(d.initSegmentKey),b.add(d.dataKey)}return Array.from(b)} 1125function xv(a,b,c,d){var e,f,g;return J(function(h){if(1==h.g){if(!d.drmInfo)return h.return();e=ru(c);f=d.sessionIds.map(function(k){return{sessionId:k,keySystem:d.drmInfo.keySystem,licenseUri:d.drmInfo.licenseServerUri,serverCertificate:d.drmInfo.serverCertificate,audioCapabilities:wv(d,!1),videoCapabilities:wv(d,!0)}});return C(h,Qu(b,a,f),2)}return 3!=h.g?(g=h.h,C(h,e.remove(g),3)):C(h,e.add(f.filter(function(k){return!g.includes(k.sessionId)})),0)})} 1126function Bv(a){for(var b=new Set,c=t(a.textStreams),d=c.next();!d.done;d=c.next())b.add(d.value);c=t(a.imageStreams);for(d=c.next();!d.done;d=c.next())b.add(d.value);a=t(a.variants);for(c=a.next();!c.done;c=a.next())c=c.value,c.audio&&b.add(c.audio),c.video&&b.add(c.video);return b} 1127function pv(a){a.variants.map(function(f){return f.video});var b=new Set(a.variants.map(function(f){return f.audio}));a=a.textStreams;for(var c=t(b),d=c.next();!d.done;d=c.next()){d=t(b);for(var e=d.next();!e.done;e=d.next());}b=t(a);for(c=b.next();!c.done;c=b.next())for(c=t(a),d=c.next();!d.done;d=c.next());}P("shaka.offline.Storage",$u);$u.deleteAll=function(){var a;return J(function(b){return 1==b.g?(a=new lu,sa(b,2),C(b,su(a),2)):5!=b.g?(va(b),C(b,a.destroy(),5)):wa(b,0)})}; 1128$u.prototype.list=$u.prototype.list;$u.prototype.removeEmeSessions=$u.prototype.xh;$u.prototype.remove=$u.prototype.remove;$u.prototype.store=$u.prototype.store;$u.prototype.getNetworkingEngine=$u.prototype.cc;$u.prototype.getConfiguration=$u.prototype.getConfiguration;$u.prototype.configure=$u.prototype.configure;$u.prototype.destroy=$u.prototype.destroy;
1128$u.support=av; 1129var qv=(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.adobe.primetime","f239e769efa348509c16a903c6932efb"); 1130Kn.offline=av;function Ev(){}function Fv(a,b){a={priority:b||0,callback:a};for(b=0;b<Gv.length;b++)if(Gv[b].priority<a.priority){Gv.splice(b,0,a);return}Gv.push(a)}P("shaka.polyfill",Ev);Ev.register=Fv;Ev.installAll=function(){for(var a=t(Gv),b=a.next();!b.done;b=a.next()){b=b.value;try{b.callback()}catch(c){Ta("Error installing polyfill!",c)}}};var Gv=[];function Hv(){this.g=new Iv}function Jv(){window.AbortController||(window.AbortController=Hv,window.AbortSignal=Iv)}Hv.prototype.abort=function(a){var b=this.g;if(!b.h){b.h=!0;b.g=a;void 0===b.g&&(b.g=new DOMException("signal is aborted without reason","AbortError"));a=new sf("abort");if(b.onabort)b.onabort(a);b.dispatchEvent(a)}};da.Object.defineProperties(Hv.prototype,{signal:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Ev.AbortController=Hv;Hv.install=Jv; 1131function Iv(){tf.call(this);this.h=!1;this.g=void 0;this.onabort=null}na(Iv,tf);da.Object.defineProperties(Iv.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.h}},reason:{configurable:!0,enumerable:!0,get:function(){return this.g}}});Fv(Jv);function Kv(){}function Lv(){Mv()}Ev.EncryptionScheme=Kv;Kv.install=Lv;Fv(Lv,-2);function Nv(){}function Ov(){var a=!0;!Qd()||Qd()&&Jd("Android")||Qd()&&Jd("Fuchsia")||(a=!1);if(Rd()||Jd("PlayStation 5")||Sd()||Nd()||Kd()||Jd("PC=EOS")||Jd("Hisense")||Jd("VIDAA"))a=!1;a&&navigator.mediaCapabilities||(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Pv=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Qv)} 1132function Qv(a){var b,c,d,e,f,g,h,k,l,m,n,q,p,u,v,x,z,y,B;return J(function(A){switch(A.g){case 1:b={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:a};if(!a)return A.return(b);c=a.video;d=a.audio;if("media-source"==a.type){if(!Dd())return A.return(b);if(c){if(Qd())if(window.cast&&cast.__platform__&&cast.__platform__.canDisplayType){var D=c.contentType;c.width&&c.height&&(D+="; width="+c.width+"; height="+c.height);c.framerate&&(D+="; framerate="+c.framerate);"pq"===c.transferFunction&& 1133(D+="; eotf=smpte2084");if(D in Rv)var F=Rv[D];else F=cast.__platform__.canDisplayType(D),Rv[D]=F;e=F}else e=gb(c.contentType);else Kd()?(f=c.contentType,c.width&&c.height&&(f+="; width="+c.width,f+="; height="+c.height),c.framerate&&(f+="; framerate="+c.framerate),c.bitrate&&(f+="; bitrate="+c.bitrate),e=gb(f)):e=gb(c.contentType);if(!e)return A.return(b)}if(d&&(Qd()&&d.spatialRendering?(h=d.contentType+"; spatialRendering=true",g=gb(h)):g=gb(d.contentType),!g))return A.return(b)}else if("file"== 1134a.type){if(c&&(k=c.contentType,l=Ed(k),!l)||d&&(m=d.contentType,n=Ed(m),!n))return A.return(b)}else return A.return(b);if(!a.keySystemConfiguration)return b.supported=!0,A.return(Promise.resolve(b));q=a.keySystemConfiguration;p=[];u=[];q.audio&&(v={robustness:q.audio.robustness||"",contentType:a.audio.contentType},Kd()&&a.audio.contentType.includes('codecs="ac-3"')&&(v={robustness:v.robustness,contentType:'audio/mp4; codecs="ec-3"'}),p.push(v));q.video&&(x={robustness:q.video.robustness||"",contentType:a.video.contentType}, 1135u.push(x));z={initDataTypes:[q.initDataType],distinctiveIdentifier:q.distinctiveIdentifier,persistentState:q.persistentState,sessionTypes:q.sessionTypes};p.length&&(z.audioCapabilities=p);u.length&&(z.videoCapabilities=u);y=(a.video?a.video.contentType:"")+"#"+(a.audio?a.audio.contentType:"")+"#"+a.keySystemConfiguration.keySystem;ra(A,3);if(y in Sv){B=Sv[y];A.A(5);break}return C(A,navigator.requestMediaKeySystemAccess(q.keySystem,[z]),6);case 6:B=A.h,Sv[y]=B;case 5:ta(A,4);break;case 3:ua(A);case 4:B&& 1136(b.supported=!0,b.keySystemAccess=B);case 2:return A.return(b)}})}Ev.MediaCapabilities=Nv;Nv.install=Ov;var Pv=null;Nv.originalMcap=Pv;var Sv={};Nv.memoizedMediaKeySystemAccessRequests_=Sv;var Rv={};Nv.memoizedCanDisplayTypeRequests_=Rv;Fv(Ov,-1);function Tv(){}function Uv(){var a=Td();if(window.MediaSource||window.ManagedMediaSource)a?10>=a?window.MediaSource=null:12>=a?(Vv(),Wv()):15>=a&&Vv():(Md()||Ld()||Jd("Tizen 4"))&&Xv();(window.MediaSource||window.ManagedMediaSource)&&Yv();
vendor: 8,634 bytes, lines 1136-1155
1136window.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&Zv()} 1137function Vv(){var a=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var b=a.apply(this,Da.apply(0,arguments));b.abort=function(){};return b}}function Wv(){var a=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(b,c){return a.call(this,b,c-.001)}} 1138function Yv(){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"mp2t"!=Tc(c)&&a(c)};if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"mp2t"!=Tc(c)&&b(c)}}} 1139function Xv(){var a=MediaSource.isTypeSupported.bind(MediaSource);MediaSource.isTypeSupported=function(c){return"opus"!=Xc(c)&&a(c)};if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported.bind(ManagedMediaSource);window.ManagedMediaSource.isTypeSupported=function(c){return"opus"!=Xc(c)&&b(c)}}} 1140function Zv(){var a=MediaSource.isTypeSupported;Nd()||(MediaSource.isTypeSupported=function(b){var c=b.split(/ *; */),d=c.findIndex(function(g){return g.startsWith("codecs=")});if(0>d)return a(b);var e=c[d].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),f=e.findIndex(function(g){return g.startsWith("vp09")});0<=f&&(e[f]="vp9",c[d]='codecs="'+e.join(",")+'"',b=c.join("; "));return a(b)})}Ev.MediaSource=Tv;Tv.install=Uv;Fv(Uv);function $v(){}function aw(){window.MediaKeys&&(!MediaKeys.prototype.setServerCertificate||Ld()||Jd("Tizen 4")||Jd("Tizen 5.0")||Od())&&(MediaKeys.prototype.setServerCertificate=bw)}function bw(){return Promise.resolve(!1)}Ev.PatchedMediaKeysCert=$v;$v.install=aw;Fv(aw);function cw(){}function dw(){!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=ew,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=fw,window.MediaKeys=gw,window.MediaKeySystemAccess=hw,window.shakaMediaKeysPolyfill=!0)}function ew(){return Promise.reject(Error("The key system specified is not supported."))} 1141function fw(a){return null==a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}Ev.PatchedMediaKeysNop=cw;cw.install=dw;function gw(){throw new TypeError("Illegal constructor.");}gw.prototype.createSession=function(){};gw.prototype.setServerCertificate=function(){};gw.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")};function hw(){this.keySystem="";throw new TypeError("Illegal constructor.");}hw.prototype.getConfiguration=function(){}; 1142hw.prototype.createMediaKeys=function(){};Fv(dw,-10);function iw(){} 1143function jw(){if(!(!window.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if(HTMLMediaElement.prototype.webkitGenerateKeyRequest)kw="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=lw;delete HTMLMediaElement.prototype.mediaKeys;HTMLMediaElement.prototype.mediaKeys=null;HTMLMediaElement.prototype.setMediaKeys=mw;window.MediaKeys=nw;window.MediaKeySystemAccess=ow;window.shakaMediaKeysPolyfill=!0}} 1144function pw(a){var b=kw;return b?b+a.charAt(0).toUpperCase()+a.slice(1):a}function lw(a,b){try{var c=new ow(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}}function mw(a){var b=this.mediaKeys;b&&b!=a&&qw(b,null);delete this.mediaKeys;(this.mediaKeys=a)&&qw(a,this);return Promise.resolve()}Ev.PatchedMediaKeysWebkit=iw;iw.install=jw; 1145function ow(a,b){this.g=this.keySystem=a;var c=!1;"org.w3.clearkey"==a&&(this.g="webkit-org.w3.clearkey",c=!1);var d=!1;var e=document.getElementsByTagName("video");e=e.length?e[0]:document.createElement("video");b=t(b);for(var f=b.next();!f.done;f=b.next()){f=f.value;var g={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:f.initDataTypes,sessionTypes:["temporary"],label:f.label},h=!1;if(f.audioCapabilities)for(var k=t(f.audioCapabilities), 1146l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType.split(";")[0],this.g)&&(g.audioCapabilities.push(l),d=!0));if(f.videoCapabilities)for(k=t(f.videoCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(h=!0,e.canPlayType(l.contentType,this.g)&&(g.videoCapabilities.push(l),d=!0));h||(d=e.canPlayType("video/mp4",this.g)||e.canPlayType("video/webm",this.g));"required"==f.persistentState&&(c?(g.persistentState="required",g.sessionTypes=["persistent-license"]): 1147d=!1);if(d){this.h=g;return}}c="Unsupported keySystem";if("org.w3.clearkey"==a||"com.widevine.alpha"==a)c="None of the requested configurations were supported.";a=Error(c);a.name="NotSupportedError";a.code=DOMException.NOT_SUPPORTED_ERR;throw a;}ow.prototype.createMediaKeys=function(){var a=new nw(this.g);return Promise.resolve(a)};ow.prototype.getConfiguration=function(){return this.h};function nw(a){this.l=a;this.h=null;this.g=new ab;this.i=[];this.j=new Map} 1148function qw(a,b){a.h=b;a.g.qb();var c=kw;b&&(a.g.D(b,c+"needkey",function(d){var e=new CustomEvent("encrypted");e.initDataType="cenc";e.initData=rb(d.initData);a.h.dispatchEvent(e)}),a.g.D(b,c+"keymessage",function(d){var e=rw(a,d.sessionId);e&&(d=(new Map).set("messageType",void 0==e.keyStatuses.Mc()?"licenserequest":"licenserenewal").set("message",d.message),d=new sf("message",d),e.h&&(e.h.resolve(),e.h=null),e.dispatchEvent(d))}),a.g.D(b,c+"keyadded",function(d){if(d=rw(a,d.sessionId))sw(d,"usable"), 1149d.g&&d.g.resolve(),d.g=null}),a.g.D(b,c+"keyerror",function(d){var e=rw(a,d.sessionId);if(e){var f=Error("EME v0.1b key error"),g=d.errorCode;g.systemCode=d.systemCode;f.errorCode=g;!d.sessionId&&e.h?(45==d.systemCode&&(f.message="Unsupported session type."),e.h.reject(f),e.h=null):d.sessionId&&e.g?(e.g.reject(f),e.g=null):(f=d.systemCode,d.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?sw(e,"output-restricted"):1==f?sw(e,"expired"):sw(e,"internal-error"))}}))} 1150nw.prototype.createSession=function(a){a=a||"temporary";if("temporary"!=a&&"persistent-license"!=a)throw new TypeError("Session type "+a+" is unsupported on this platform.");var b=this.h||document.createElement("video");b.src||(b.src="about:blank");a=new tw(b,this.l,a);this.i.push(a);return a};nw.prototype.setServerCertificate=function(){return Promise.resolve(!1)};nw.prototype.getStatusForPolicy=function(){return Promise.resolve("usable")}; 1151function rw(a,b){var c=a.j.get(b);return c?c:(c=a.i.shift())?(c.sessionId=b,a.j.set(b,c),c):null}function tw(a,b,c){tf.call(this);this.j=a;this.m=!1;this.g=this.h=null;this.i=b;this.l=c;this.sessionId="";this.expiration=NaN;this.closed=new kf;this.keyStatuses=new uw}na(tw,tf); 1152function vw(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if("persistent-license"==a.l)if(c)var d=ob(Wf("LOAD_SESSION|"+c));else{var e=Wf("PERSISTENT|");d=sg(e,b)}else d=ob(b)}catch(g){return Promise.reject(g)}a.h=new kf;var f=pw("generateKeyRequest");try{a.j[f](a.i,d)}catch(g){if("InvalidStateError"!=g.name)return a.h=null,Promise.reject(g);(new yd(function(){try{a.j[f](a.i,d)}catch(h){a.h.reject(h),a.h=null}})).V(.01)}return a.h} 1153function ww(a,b,c){if(a.g)a.g.then(function(){return ww(a,b,c)}).catch(function(){return ww(a,b,c)});else{a.g=b;if("webkit-org.w3.clearkey"==a.i){var d=Sf(c);var e=JSON.parse(d);"oct"!=e.keys[0].kty&&(a.g.reject(Error("Response is not a valid JSON Web Key Set.")),a.g=null);d=pg(e.keys[0].k);e=pg(e.keys[0].kid)}else d=ob(c),e=null;var f=pw("addKey");try{a.j[f](a.i,d,e,a.sessionId)}catch(g){a.g.reject(g),a.g=null}}} 1154function sw(a,b){var c=a.keyStatuses;c.size=void 0==b?0:1;c.g=b;b=new sf("keystatuseschange");a.dispatchEvent(b)}r=tw.prototype;r.generateRequest=function(a,b){return vw(this,b,null)};r.load=function(a){return"persistent-license"==this.l?vw(this,null,a):Promise.reject(Error("Not a persistent session."))};r.update=function(a){var b=new kf;ww(this,b,a);return b}; 1155r.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=pw("cancelKeyRequest");try{this.j[a](this.i,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};r.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()};function uw(){this.size=0;this.g=void 0}r=uw.prototype;r.Mc=function(){return this.g};
1156r.forEach=function(a){this.g&&a(this.g,Fh.value())};r.get=function(a){if(this.has(a))return this.g};r.has=function(a){var b=Fh.value();return this.g&&mb(a,b)?!0:!1};r.entries=function(){};r.keys=function(){};r.values=function(){};var kw="";Fv(jw);function xw(){}function yw(){window.crypto&&("randomUUID"in window.crypto||(window.crypto.randomUUID=zw))}function zw(){var a=URL.createObjectURL(new Blob),b=a.toString();URL.revokeObjectURL(a);return b.substr(b.lastIndexOf("/")+1)}Ev.RandomUUID=xw;xw.install=yw;Fv(yw);function Aw(){}function Bw(){var a=Symbol.prototype;"description"in a||Object.defineProperty(a,"description",{get:Cw})}function Cw(){var a=/\((.*)\)/.exec(this.toString());return a?a[1]:void 0}Ev.Symbol=Aw;Aw.install=Bw;Fv(Bw);function Dw(){}function Ew(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&("webkitDroppedFrameCount"in a||Od())&&(a.getVideoPlaybackQuality=Fw)}}function Fw(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}Ev.VideoPlaybackQuality=Dw;Dw.install=Ew;Fv(Ew);function Gw(){}function Hw(){if(!window.VTTCue&&window.TextTrackCue){var a=null,b=TextTrackCue.length;if(3==b)a=Iw;else if(6==b)a=Jw;else{try{var c=!!Iw(1,2,"")}catch(d){c=!1}c&&(a=Iw)}a&&(window.VTTCue=function(d,e,f){return a(d,e,f)})}}function Iw(a,b,c){return new window.TextTrackCue(a,b,c)}function Jw(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)}Ev.VTTCue=Gw;Gw.install=Hw;Fv(Hw);function Kw(){}Kw.prototype.parseInit=function(){};Kw.prototype.setSequenceMode=function(){};Kw.prototype.setManifestType=function(){};Kw.prototype.parseMedia=function(a,b){var c=null,d=[];a=Sf(a).split(/\r?\n/);a=t(a);for(var e=a.next();!e.done;e=a.next())if((e=e.value)&&!/^\s+$/.test(e)&&(e=Lw.exec(e))){var f=Mw.exec(e[1]);f=60*parseInt(f[1],10)+parseFloat(f[2].replace(",","."));e=new Eb(f,b.segmentEnd?b.segmentEnd:f+2,e[2]);c&&(c.endTime=f,d.push(c));c=e}c&&d.push(c);return d}; 1157P("shaka.text.LrcTextParser",Kw);Kw.prototype.parseMedia=Kw.prototype.parseMedia;Kw.prototype.setManifestType=Kw.prototype.setManifestType;Kw.prototype.setSequenceMode=Kw.prototype.setSequenceMode;Kw.prototype.parseInit=Kw.prototype.parseInit;var Lw=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,Mw=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;cd["application/x-subtitle-lrc"]=function(){return new Kw};function Nw(){}Nw.prototype.parseInit=function(){};Nw.prototype.setSequenceMode=function(){};Nw.prototype.setManifestType=function(){}; 1158Nw.prototype.parseMedia=function(a,b,c){var d=Sf(a);a=[];if(""==d)return a;var e=Og(d,"tt");if(!e)throw new Q(2,2,2005,"Failed to parse TTML.");d=e.getElementsByTagName("body")[0];if(!d)return[];var f=Bg(e,Ow,"frameRate"),g=Bg(e,Ow,"subFrameRate"),h=Bg(e,Ow,"frameRateMultiplier"),k=Bg(e,Ow,"tickRate"),l=Bg(e,Ow,"cellResolution"),m=e.getAttribute("xml:space")||"default",n=Bg(e,Pw,"extent");if("default"!=m&&"preserve"!=m)throw new Q(2,2,2005,"Invalid xml:space value: "+m);m="default"==m;f=new Qw(f, 1159g,h,k);l=l?(l=/^(\d+) (\d+)$/.exec(l))?{Ib:parseInt(l[1],10),rows:parseInt(l[2],10)}:null:null;g=(g=e.getElementsByTagName("metadata")[0])?zg(g):[];h=Array.from(e.getElementsByTagName("style"));e=Array.from(e.getElementsByTagName("region"));k=[];for(var q=t(e),p=q.next();!p.done;p=q.next()){var u=p.value;p=new Fb;var v=u.getAttribute("xml:id");if(v){p.id=v;var x=null;n&&(x=Rw.exec(n)||Sw.exec(n));v=x?Number(x[1]):null;x=x?Number(x[2]):null;var z,y=Tw(u,h,"extent");if(y){var B=(z=Rw.exec(y))||Sw.exec(y); 1160null!=B&&(p.width=Number(B[1]),p.height=Number(B[2]),z||(null!=v&&(p.width=100*p.width/v),null!=x&&(p.height=100*p.height/x)),p.widthUnits=z||null!=v?$b:0,p.heightUnits=z||null!=x?$b:0)}if(u=Tw(u,h,"origin"))if(B=(z=Rw.exec(u))||Sw.exec(u),null!=B)p.viewportAnchorX=Number(B[1]),p.viewportAnchorY=Number(B[2]),z?y||(p.width=100-p.viewportAnchorX,p.widthUnits=$b,p.height=100-p.viewportAnchorY,p.heightUnits=$b):(null!=x&&(p.viewportAnchorY=100*p.viewportAnchorY/x),null!=v&&(p.viewportAnchorX=100*p.viewportAnchorX/ 1161v)),p.viewportAnchorUnits=z||null!=v?$b:0}else p=null;p&&k.push(p)}if(wg(d,"p").length)throw new Q(2,2,2001,"<p> can only be inside <div> in TTML");n=t(wg(d,"div"));for(q=n.next();!q.done;q=n.next())if(wg(q.value,"span").length)throw new Q(2,2,2001,"<span> can only be inside <p> in TTML");if(b=Uw(d,b,f,g,h,e,k,m,l,null,!1,c))b.backgroundColor||(b.backgroundColor="transparent"),a.push(b);return a}; 1162function Uw(a,b,c,d,e,f,g,h,k,l,m,n){var q=a.parentNode;if(a.nodeType==Node.COMMENT_NODE)return null;if(a.nodeType==Node.TEXT_NODE){if(!m)return null;var p=document.createElement("span");p.textContent=a.textContent}else p=a;for(var u=null,v=t(Vw),x=v.next();!x.done&&!(u=Ww(p,"backgroundImage",d,"#",x.value)[0]);x=v.next());v=null;var z=Bg(p,Vw,"backgroundImage");n&&z&&!z.startsWith("#")&&(x=new kc(n),z=new kc(z),(x=x.resolve(z).toString())&&
1162(v=x));if("p"==a.nodeName||u||v)m=!0;a=m;x="default"==(p.getAttribute("xml:space")|| 1163(h?"default":"preserve"));z=Array.from(p.childNodes).every(function(D){return D.nodeType==Node.TEXT_NODE});h=[];if(!z)for(var y=t(p.childNodes),B=y.next();!B.done;B=y.next())(B=Uw(B.value,b,c,d,e,f,g,x,k,p,m,n))&&h.push(B);d=null!=l;n=/\S/.test(p.textContent);B=p.hasAttribute("begin")||p.hasAttribute("end")||p.hasAttribute("dur");if(!(B||n||"br"==p.tagName||0!=h.length||d&&!x))return null;y=Xw(p,c);n=y.start;for(y=y.end;q&&q.nodeType==Node.ELEMENT_NODE&&"tt"!=q.tagName;)y=Yw(q,c,n,y),n=y.start,y= 1164y.end,q=q.parentNode;null==n&&(n=0);n+=b.periodStart;y=null==y?Infinity:y+b.periodStart;n=Math.max(n,b.segmentStart);y=Math.min(y,b.segmentEnd);if(!B&&0<h.length)for(n=Infinity,y=0,b=t(h),c=b.next();!c.done;c=b.next())c=c.value,n=Math.min(n,c.startTime),y=Math.max(y,c.endTime);if("br"==p.tagName)return e=new Eb(n,y,""),e.lineBreak=!0,e;b="";z&&(b=p.textContent,x&&(b=b.trim(),b=b.replace(/\s+/g," ")));b=new Eb(n,y,b);b.nestedCues=h;m||(b.isContainer=!0);k&&(b.cellResolution=k);k=Ww(p,"region",f,"")[0]; 1165if(p.hasAttribute("region")&&k&&k.getAttribute("xml:id")){var A=k.getAttribute("xml:id");b.region=g.filter(function(D){return D.id==A})[0]}g=k;l&&d&&!p.getAttribute("region")&&!p.getAttribute("style")&&(g=Ww(l,"region",f,"")[0]);Zw(b,p,g,u,v,e,a,0==h.length);return b} 1166function Zw(a,b,c,d,e,f,g,h){g=g||h;"rtl"==$w(b,c,f,"direction",g)&&(a.direction="rtl");h=$w(b,c,f,"writingMode",g);"tb"==h||"tblr"==h?a.writingMode="vertical-lr":"tbrl"==h?a.writingMode="vertical-rl":"rltb"==h||"rl"==h?a.direction="rtl":h&&(a.direction=Ib);(h=$w(b,c,f,"textAlign",!0))?(a.positionAlign=ax[h],a.lineAlign=bx[h],a.textAlign=Ub[h.toUpperCase()]):a.textAlign=Hb;if(h=$w(b,c,f,"displayAlign",!0))a.displayAlign=Vb[h.toUpperCase()];if(h=$w(b,c,f,"color",g))a.color=h;if(h=$w(b,c,f,"backgroundColor", 1167g))a.backgroundColor=h;if(h=$w(b,c,f,"border",g))a.border=h;if(h=$w(b,c,f,"fontFamily",g))switch(h){case "monospaceSerif":a.fontFamily="Courier New,Liberation Mono,Courier,monospace";break;case "proportionalSansSerif":a.fontFamily="Arial,Helvetica,Liberation Sans,sans-serif";break;case "sansSerif":a.fontFamily="sans-serif";break;case "monospaceSansSerif":a.fontFamily="Consolas,monospace";break;case "proportionalSerif":a.fontFamily="serif";break;default:a.fontFamily=h}(h=$w(b,c,f,"fontWeight",g))&& 1168"bold"==h&&(a.fontWeight=700);h=$w(b,c,f,"wrapOption",g);a.wrapLine=h&&"noWrap"==h?!1:!0;(h=$w(b,c,f,"lineHeight",g))&&h.match(cx)&&(a.lineHeight=h);(h=$w(b,c,f,"fontSize",g))&&(h.match(cx)||h.match(dx))&&(a.fontSize=h);if(h=$w(b,c,f,"fontStyle",g))a.fontStyle=Zb[h.toUpperCase()];d?(e=d.getAttribute("imageType")||d.getAttribute("imagetype"),h=d.getAttribute("encoding"),d=d.textContent.trim(),"PNG"==e&&"Base64"==h&&d&&(a.backgroundImage="data:image/png;base64,"+d)):e&&(a.backgroundImage=e);if(d=$w(b, 1169c,f,"textOutline",g))d=d.split(" "),d[0].match(cx)?a.textStrokeColor=a.color:(a.textStrokeColor=d[0],d.shift()),d[0]&&d[0].match(cx)?a.textStrokeWidth=d[0]:a.textStrokeColor="";(d=$w(b,c,f,"letterSpacing",g))&&d.match(cx)&&(a.letterSpacing=d);(d=$w(b,c,f,"linePadding",g))&&d.match(cx)&&(a.linePadding=d);if(d=$w(b,c,f,"opacity",g))a.opacity=parseFloat(d);(d=Tw(c,f,"textDecoration"))&&ex(a,d);(d=fx(b,f,"textDecoration"))&&ex(a,d);if(d=$w(b,c,f,"textCombine",g))a.textCombineUpright=d;switch($w(b,c,f, 1170"ruby",g)){case "container":a.rubyTag="ruby";break;case "text":a.rubyTag="rt"}} 1171function ex(a,b){b=t(b.split(" "));for(var c=b.next();!c.done;c=b.next())switch(c.value){case "underline":a.textDecoration.includes("underline")||a.textDecoration.push("underline");break;case "noUnderline":a.textDecoration.includes("underline")&&Bb(a.textDecoration,"underline");break;case "lineThrough":a.textDecoration.includes("lineThrough")||a.textDecoration.push("lineThrough");break;case "noLineThrough":a.textDecoration.includes("lineThrough")&&Bb(a.textDecoration,"lineThrough");break;case "overline":a.textDecoration.includes("overline")|| 1172a.textDecoration.push("overline");break;
1172case "noOverline":a.textDecoration.includes("overline")&&Bb(a.textDecoration,"overline")}}function $w(a,b,c,d,e){e=void 0===e?!0:e;return(a=fx(a,c,d))?a:e?Tw(b,c,d):null}function Tw(a,b,c){if(!a)return null;var d=Bg(a,Pw,c);return d?d:gx(a,b,c)}function fx(a,b,c){var d=Bg(a,Pw,c);return d?d:gx(a,b,c)} 1173function gx(a,b,c){a=Ww(a,"style",b,"");for(var d=null,e=0;e<a.length;e++){var f=Ag(a[e],"urn:ebu:tt:style",c);f||(f=Bg(a[e],Pw,c));f||(f=fx(a[e],b,c));f&&(d=f)}return d} 1174function Ww(a,b,c,d,e){var f=[];if(!a||1>c.length)return f;var g=a;for(a=null;g&&!(a=e?Ag(g,e,b):g.getAttribute(b))&&(g=g.parentNode,g instanceof Element););if(b=a)for(b=t(b.split(" ")),e=b.next();!e.done;e=b.next())for(e=e.value,a=t(c),g=a.next();!g.done;g=a.next())if(g=g.value,d+g.getAttribute("xml:id")==e){f.push(g);break}return f}function Yw(a,b,c,d){a=Xw(a,b);null==c?c=a.start:null!=a.start&&(c+=a.start);null==d?d=a.end:null!=a.start&&(d+=a.start);return{start:c,end:d}} 1175function Xw(a,b){var c=hx(a.getAttribute("begin"),b),d=hx(a.getAttribute("end"),b);a=hx(a.getAttribute("dur"),b);null==d&&null!=a&&(d=c+a);return{start:c,end:d}} 1176function hx(a,b){var c=null;if(ix.test(a)){a=ix.exec(a);c=Number(a[1]);var d=Number(a[2]),e=Number(a[3]),f=Number(a[4]);f+=(Number(a[5])||0)/b.h;e+=f/b.frameRate;c=e+60*d+3600*c}else if(jx.test(a))c=kx(jx,a);else if(lx.test(a))c=kx(lx,a);else if(mx.test(a))a=mx.exec(a),c=Number(a[1])/b.frameRate;else if(nx.test(a))a=nx.exec(a),c=Number(a[1])/b.g;else if(ox.test(a))c=kx(ox,a);else if(a)throw new Q(2,2,2001,"Could not parse cue time range in TTML");return c} 1177function kx(a,b){a=a.exec(b);return null==a||""==a[0]?null:(Number(a[4])||0)/1E3+(Number(a[3])||0)+60*(Number(a[2])||0)+3600*(Number(a[1])||0)}P("shaka.text.TtmlTextParser",Nw);Nw.prototype.parseMedia=Nw.prototype.parseMedia;Nw.prototype.setManifestType=Nw.prototype.setManifestType;Nw.prototype.setSequenceMode=Nw.prototype.setSequenceMode;Nw.prototype.parseInit=Nw.prototype.parseInit; 1178function Qw(a,b,c,d){this.frameRate=Number(a)||30;this.h=Number(b)||1;this.g=Number(d);0==this.g&&(this.g=a?this.frameRate*this.h:1);c&&(a=/^(\d+) (\d+)$/g.exec(c))&&(this.frameRate*=Number(a[1])/Number(a[2]))} 1179var Rw=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,dx=/^(\d{1,2}(?:\.\d+)?|100)%$/,cx=/^(\d+px|\d+em|\d*\.?\d+c)$/,Sw=/^(\d+)px (\d+)px$/,ix=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,jx=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,lx=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,mx=/^(\d*(?:\.\d*)?)f$/,nx=/^(\d*(?:\.\d*)?)t$/,ox=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),bx={left:Lb,center:"center",right:"end",start:Lb, 1180end:"end"},ax={left:"line-left",center:"center",right:"line-right"},Ow=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Pw=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Vw=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];cd["application/ttml+xml"]=function(){return new Nw};function px(){this.g=new Nw}px.prototype.parseInit=function(a){var b=!1;(new bg).box("moov",gg).box("trak",gg).box("mdia",gg).box("minf",gg).box("stbl",gg).O("stsd",ig).box("stpp",function(c){b=!0;c.parser.stop()}).parse(a);if(!b)throw new Q(2,2,2007);};px.prototype.setSequenceMode=function(){};px.prototype.setManifestType=function(){}; 1181px.prototype.parseMedia=function(a,b,c){var d=this,e=!1,f=[];(new bg).box("mdat",lg(function(g){e=!0;f=f.concat(d.g.parseMedia(g,b,c))})).parse(a,!1);if(!e)throw new Q(2,2,2007);return f};P("shaka.text.Mp4TtmlParser",px);px.prototype.parseMedia=px.prototype.parseMedia;px.prototype.setManifestType=px.prototype.setManifestType;px.prototype.setSequenceMode=px.prototype.setSequenceMode;px.prototype.parseInit=px.prototype.parseInit;cd['application/mp4; codecs="stpp"']=function(){return new px}; 1182cd['application/mp4; codecs="stpp.ttml"']=function(){return new px};cd['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new px};cd['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new px};function qx(){this.h=!1;this.g="UNKNOWN"}qx.prototype.parseInit=function(){};qx.prototype.setSequenceMode=function(a){this.h=a};qx.prototype.setManifestType=function(a){this.g=a}; 1183qx.prototype.parseMedia=function(a,b){a=Sf(a);a=a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");var c=a.split(/\n{2,}/m);
1183if(!/^WEBVTT($|[ \t\n])/m.test(c[0]))throw new Q(2,2,2E3);a=b.vttOffset;if(c[0].includes("X-TIMESTAMP-MAP")&&"HLS"==this.g)if(this.h){var d=c[0];a=d.match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m);d=d.match(/MPEGTS:(\d+)/m);if(!a||!d)throw new Q(2,2,2E3);a=rx(new es(a[1]));if(null==a)throw new Q(2,2,2E3);a=b.periodStart+Number(d[1])/9E4-a}else a=b.segmentStart;b=[];d=t(c[0].split("\n")); 1184for(var e=d.next();!e.done;e=d.next())if(e=e.value,/^Region:/.test(e)){e=new es(e);var f=new Fb;hs(e);fs(e);for(var g=hs(e);g;){var h=f,k=g;(g=/^id=(.*)$/.exec(k))?h.id=g[1]:(g=/^width=(\d{1,2}|100)%$/.exec(k))?h.width=Number(g[1]):(g=/^lines=(\d+)$/.exec(k))?(h.height=Number(g[1]),h.heightUnits=2):(g=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.regionAnchorX=Number(g[1]),h.regionAnchorY=Number(g[2])):(g=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(k))?(h.viewportAnchorX=Number(g[1]), 1185h.viewportAnchorY=Number(g[2])):/^scroll=up$/.exec(k)&&(h.scroll="up");fs(e);g=hs(e)}b.push(f)}d=new Map;sx(d);e=[];c=t(c.slice(1));for(f=c.next();!f.done;f=c.next()){f=f.value.split("\n");if((1!=f.length||f[0])&&!/^NOTE($|[ \t])/.test(f[0])&&"STYLE"==f[0]){h=[];g=-1;for(k=1;k<f.length;k++)f[k].includes("::cue")&&(h.push([]),g=h.length-1),-1!=g&&(h[g].push(f[k]),f[k].includes("}")&&(g=-1));h=t(h);for(g=h.next();!g.done;g=h.next()){var l=g.value;g="global";(k=l[0].match(/\((.*)\)/))&&(g=k.pop());k= 1186l.slice(1,-1);l[0].includes("}")&&(l=/\{(.*?)\}/.exec(l[0]))&&(k=l[1].split(";"));(l=d.get(g))||(l=new Eb(0,0,""));for(var m=!1,n=0;n<k.length;n++){var q=/^\s*([^:]+):\s*(.*)/.exec(k[n]);if(q){var p=q[2].trim().replace(";","");switch(q[1].trim()){case "background-color":case "background":m=!0;l.backgroundColor=p;break;case "color":m=!0;l.color=p;break;case "font-family":m=!0;l.fontFamily=p;break;case "font-size":m=!0;l.fontSize=p;break;case "font-weight":if(700<=parseInt(p,10)||"bold"==p)m=!0,l.fontWeight= 1187700;break;case "font-style":switch(p){case "normal":m=!0;l.fontStyle=Rb;break;case "italic":m=!0;l.fontStyle="italic";break;case "oblique":m=!0,l.fontStyle="oblique"}break;case "opacity":m=!0;l.opacity=parseFloat(p);break;case "text-combine-upright":m=!0;l.textCombineUpright=p;break;case "text-shadow":m=!0;l.textShadow=p;break;case "white-space":m=!0,l.wrapLine="noWrap"!=p}}}m&&d.set(g,l)}}m=a;if(1==f.length&&!f[0]||/^NOTE($|[ \t])/.test(f[0])||"STYLE"==f[0]||"REGION"==f[0])f=null;else if(h=null, 1188f[0].includes("--\x3e")||(h=f[0],f.splice(0,1)),g=new es(f[0]),k=rx(g),n=gs(g,/[ \t]+--\x3e[ \t]+/g),l=rx(g),null==k||null==n||null==l)Ta("Failed to parse VTT time code. Cue skipped:",h,f),f=null;else{k+=m;l+=m;f=f.slice(1).join("\n").trim();d.has("global")?(m=d.get("global").clone(),m.startTime=k,m.endTime=l,m.payload=""):m=new Eb(k,l,"");fs(g);for(k=hs(g);k;)tx(m,k,b),fs(g),k=hs(g);ux(f,m,d);null!=h&&(m.id=h);f=m}f&&e.push(f)}return e}; 1189function sx(a){for(var b=t(Object.entries(Xb)),c=b.next();!c.done;c=b.next()){var d=t(c.value);c=d.next().value;d=d.next().value;var e=new Eb(0,0,"");e.color=d;a.set("."+c,e)}b=t(Object.entries(Yb));for(c=b.next();!c.done;c=b.next())d=t(c.value),c=d.next().value,d=d.next().value,e=new Eb(0,0,""),e.backgroundColor=d,a.set("."+c,e)} 1190function ux(a,b,c){if(a.includes("<")){0===c.size&&sx(c);a:{for(var d=[],e=-1,f="",g=0;g<a.length;g++)if("/"===a[g]&&0<g&&"<"===a[g-1]){var h=a.indexOf(">",g);if(h<=g)break a;if((h=a.substring(g+1,h))&&"c"===h){var k=d.pop();k?k===h?(f+="/"+h+">",g+=h.length+1):k.startsWith("c.")?(g+=h.length+1,f+="/"+k+">"):f+=a[g]:f+=a[g]}else f+=a[g]}else"<"===a[g]?(e=g+1,"c"!=a[e]&&(e=-1)):">"===a[g]&&0<e&&(d.push(a.substr(e,g-e)),e=-1),f+=a[g];a=f}d=a;a=[];f=-1;for(e=0;e<d.length;e++)"<"===d[e]?f=e+1:">"===d[e]&& 11910<f&&(f=d.substr(f,e-f),f.match(vx)&&a.push(f),f=-1);a=t(a);for(e=a.next();!e.done;e=a.next())e=e.value,d=d.replace("<"+e+">",'<div time="'+e+'">'),d+="</div>";a=d;a:{e=a;f=[];g=-1;a="";d=!1;for(h=0;h<e.length;h++)if("/"===e[h]){k=e.indexOf(">",h);if(-1===k){a=e;break a}if((k=e.substring(h+1,k))&&"v"==k){d=!0;var l=null;f.length&&(l=f[f.length-1]);if(l){if(l===k)a+="/"+k+">";else{if(!l.startsWith("v")){a+=e[h];continue}a+="/"+l+">"}h+=k.length+1}else a+=e[h]}else a+=e[h]}else"<"===e[h]?(g=h+1,"v"!= 1192e[g]&&(g=-1)):">"===e[h]&&0<g&&(f.push(e.substr(g,h-g)),g=-1),a+=e[h];e=t(f);for(f=e.next();!f.done;f=e.next())f=f.value,g=f.replace(" ",".voice-"),a=a.replace("<"+f+">","<"+g+">"),a=a.replace("</"+f+">","</"+g+">"),d||(a+="</"+g+">")}if(d=Og("<span>"+a+"</span>","span")){d=d.childNodes;if(1==d.length&&(e=d[0],e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE)){b.payload=wx(a);return}a=t(d);for(d=a.next();!d.done;d=a.next())xx(d.value,b,c)}else b.payload=wx(a)}else b.payload=wx(a)} 1193function yx(a,b){return a&&0<a.length?a:b} 1194function xx(a,b,c){var d=b.clone();d.nestedCues=[];d.payload="";d.rubyTag="";d.line=null;d.region=new Fb;d.position=null;d.size=0;
1194if(a.nodeType===Node.ELEMENT_NODE&&a.nodeName)for(var e=t(a.nodeName.split(/(?=[ .])+/g)),f=e.next();!f.done;f=e.next()){var g=f=f.value;if(g.startsWith(".voice-")){var h=g.split("-").pop();g='v[voice="'+h+'"]';c.has(g)||(g="v[voice="+h+"]")}c.has(g)&&(g=c.get(g))&&(d.backgroundColor=yx(g.backgroundColor,d.backgroundColor),d.color=yx(g.color,d.color),d.fontFamily=yx(g.fontFamily, 1195d.fontFamily),d.fontSize=yx(g.fontSize,d.fontSize),d.textShadow=yx(g.textShadow,d.textShadow),d.fontWeight=g.fontWeight,d.fontStyle=g.fontStyle,d.opacity=g.opacity,d.rubyTag=g.rubyTag,d.textCombineUpright=g.textCombineUpright,d.wrapLine=g.wrapLine);switch(f){case "br":d=Sb(d.startTime,d.endTime);b.nestedCues.push(d);return;case "b":d.fontWeight=700;break;case "i":d.fontStyle="italic";break;case "u":d.textDecoration.push("underline");break;case "font":if(f=a.getAttribute("color"))d.color=f;break;case "div":f= 1196a.getAttribute("time");if(!f)break;if(f=rx(new es(f)))d.startTime=f;break;case "ruby":case "rp":case "rt":d.rubyTag=f}}e=a.childNodes;if(Dg(a)||1==e.length&&Dg(e[0]))for(e=!0,c=t(a.textContent.split("\n")),a=c.next();!a.done;a=c.next())a=a.value,e||(e=Sb(d.startTime,d.endTime),b.nestedCues.push(e)),0<a.length&&(e=d.clone(),e.payload=wx(a),b.nestedCues.push(e)),e=!1;else for(b.nestedCues.push(d),b=t(e),a=b.next();!a.done;a=b.next())xx(a.value,d,c)} 1197function tx(a,b,c){var d;if(d=/^align:(start|middle|center|end|left|right)$/.exec(b))b=d[1],"middle"==b?a.textAlign=Hb:a.textAlign=Ub[b.toUpperCase()];else if(d=/^vertical:(lr|rl)$/.exec(b))a.writingMode="lr"==d[1]?"vertical-lr":"vertical-rl";else if(d=/^size:([\d.]+)%$/.exec(b))a.size=Number(d[1]);else if(d=/^position:([\d.]+)%(?:,(line-left|line-right|middle|center|start|end|auto))?$/.exec(b))a.position=Number(d[1]),d[2]&&(b=d[2],a.positionAlign="line-left"==b||"start"==b?"line-left":"line-right"== 1198b||"end"==b?"line-right":"center"==b||"middle"==b?"center":Gb);else if(d=/^region:(.*)$/.exec(b)){if(b=zx(c,d[1]))a.region=b}else if(c=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=1,a.line=Number(c[1]),c[2]&&(a.lineAlign=Wb[c[2].toUpperCase()]);else if(c=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(b))a.lineInterpretation=Kb,a.line=Number(c[1]),c[2]&&(a.lineAlign=Wb[c[2].toUpperCase()])} 1199function zx(a,b){a=a.filter(function(c){return c.id==b});return a.length?a[0]:null}function rx(a){a=gs(a,vx);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)} 1200function wx(a){var b={"&":"&","<":"<",">":">",""":'"',"'":"'"," ":"\u00a0","‎":"\u200e","‏":"\u200f"},c=/&(?:amp|lt|gt|quot|#(0+)?39|nbsp|lrm|rlm);/g,d=RegExp(c.source);return a&&d.test(a)?a.replace(c,function(e){return b[e]||"'"}):a||""}P("shaka.text.VttTextParser",qx);qx.prototype.parseMedia=qx.prototype.parseMedia;qx.prototype.setManifestType=qx.prototype.setManifestType;qx.prototype.setSequenceMode=qx.prototype.setSequenceMode;qx.prototype.parseInit=qx.prototype.parseInit; 1201var vx=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;cd["text/vtt"]=function(){return new qx};cd['text/vtt; codecs="vtt"']=function(){return new qx};cd['text/vtt; codecs="wvtt"']=function(){return new qx};function Ax(){this.g=null}Ax.prototype.parseInit=function(a){var b=this,c=!1;(new bg).box("moov",gg).box("trak",gg).box("mdia",gg).O("mdhd",function(d){d=gi(d.reader,d.version);b.g=d.timescale}).box("minf",gg).box("stbl",gg).O("stsd",ig).box("wvtt",function(){c=!0}).parse(a);if(!this.g)throw new Q(2,2,2008);if(!c)throw new Q(2,2,2008);};Ax.prototype.setSequenceMode=function(){};Ax.prototype.setManifestType=function(){}; 1202Ax.prototype.parseMedia=function(a,b){if(!a.length)return[];if(!this.g)throw new Q(2,2,2008);var c=0,d=[],e,f=[],g=!1,h=!1,k=!1,l=null;(new bg).box("moof",gg).box("traf",gg).O("tfdt",function(B){g=!0;c=fi(B.reader,B.version).baseMediaDecodeTime}).O("tfhd",function(B){l=ei(B.reader,B.flags).yf}).O("trun",function(B){h=!0;d=hi(B.reader,B.version,B.flags).Xf}).box("mdat",lg(function(B){k=!0;e=B})).parse(a,!1);if(!k&&!g&&!h)throw new Q(2,2,2008);a=c;for(var m=new Zf(e,0),n=t(d),q=n.next();!q.done;q=n.next()){q= 1203q.value;var p=q.Ye||l,u=q.Pd?c+q.Pd:a;a=u+(p||0);var v=0;do{var x=m.M();v+=x;var z=m.M(),y=null;"vttc"==fg(z)?8<x&&(y=m.pb(x-8)):m.skip(x-8);p&&y&&(x=Bx(y,b.periodStart+u/this.g,b.periodStart+a/this.g),f.push(x))}while(q.sampleSize&&v<q.sampleSize)}return f.filter(kd)};function Bx(a,b,c){var d,e,f;(new bg).box("payl",lg(function(g){d=Sf(g)})).box("iden",lg(function(g){e=Sf(g)})).box("sttg",lg(function(g){f=Sf(g)})).parse(a);return d?Cx(d,e,f,b,c):null} 1204function Cx(a,b,c,d,e){d=new Eb(d,e,"");ux(a,d,new Map);b&&(d.id=b);if(c)for(a=new es(c),b=hs(a);b;)tx(d,b,[]),fs(a),b=hs(a);return d}P("shaka.text.Mp4VttParser",Ax);Ax.prototype.parseMedia=Ax.prototype.parseMedia;Ax.prototype.setManifestType=Ax.prototype.setManifestType;Ax.prototype.setSequenceMode=Ax.prototype.setSequenceMode;Ax.prototype.parseInit=Ax.prototype.parseInit;cd['application/mp4; codecs="wvtt"']=function(){return new Ax};function Dx(){}Dx.prototype.parseInit=function(){};Dx.prototype.setSequenceMode=function(){};Dx.prototype.setManifestType=function(){};Dx.prototype.parseMedia=function(a){var b=Sf(a).replace(/\r+/g,"");b=b.trim();a=[];if(""==b)return a;b=t(b.split("\n\n"));for(var c=b.next();!c.done;c=b.next()){c=c.value.split("\n");var d=new es(c[0]),e=Ex(d),f=gs(d,/,/g);d=Ex(d);if(null==e||null==f||null==d)throw new Q(2,2,2001,"Could not parse cue time range in SubViewer");a.push(new Eb(e,d,c.slice(1).join("\n").trim()))}return a}; 1205function Ex(a){a=gs(a,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g);if(null==a)return null;var b=Number(a[2]),c=Number(a[3]);return 59<b||59<c?null:Number(a[4])/1E3+c+60*b+3600*(Number(a[1])||0)}P("shaka.text.SbvTextParser",Dx);Dx.prototype.parseMedia=Dx.prototype.parseMedia;Dx.prototype.setManifestType=Dx.prototype.setManifestType;Dx.prototype.setSequenceMode=Dx.prototype.setSequenceMode;Dx.prototype.parseInit=Dx.prototype.parseInit;cd["text/x-subviewer"]=function(){return new Dx};function Fx(){this.g=new qx}
vendor: 27,896 bytes, lines 1205-1263
1205Fx.prototype.parseInit=function(){};Fx.prototype.setSequenceMode=function(){};Fx.prototype.setManifestType=function(){};Fx.prototype.parseMedia=function(a,b,c){a=Sf(a);a=Gx(a);a=ob(Wf(a));return this.g.parseMedia(a,b,c)}; 1206function Gx(a){var b="WEBVTT\n\n";if(""==a)return b;a=a.replace(/\r+/g,"");a=a.trim();a=t(a.split("\n\n"));for(var c=a.next();!c.done;c=a.next())c=c.value.split(/\n/),c[0].match(/\d+/)&&c.shift(),c[0]=c[0].replace(/,/g,"."),b+=c.join("\n").replace(/{b}/g,"<b>").replace(/{\/b}/g,"</b>").replace(/{i}/g,"<i>").replace(/{\/i}/g,"</i>").replace(/{u}/g,"<u>").replace(/{\/u}/g,"</u>")+"\n\n";return b}P("shaka.text.SrtTextParser",Fx);Fx.srt2webvtt=Gx;Fx.prototype.parseMedia=Fx.prototype.parseMedia; 1207Fx.prototype.setManifestType=Fx.prototype.setManifestType;Fx.prototype.setSequenceMode=Fx.prototype.setSequenceMode;Fx.prototype.parseInit=Fx.prototype.parseInit;cd["text/srt"]=function(){return new Fx};function Hx(){}Hx.prototype.parseInit=function(){};Hx.prototype.setSequenceMode=function(){};Hx.prototype.setManifestType=function(){}; 1208Hx.prototype.parseMedia=function(a){var b="",c="";a=Sf(a).split(/\r?\n\s*\r?\n/);a=t(a);for(var d=a.next();!d.done;d=a.next()){var e=Ix.exec(d.value);e&&(d=e[1],e=e[2],"V4 Styles"==d||"V4+ Styles"==d?b=e:"Events"==d&&(c=e))}a=[];d=null;b=t(b.split(/\r?\n/));for(var f=b.next();!f.done;f=b.next())if(e=f.value,!/^\s*;/.test(e)&&(f=Jx.exec(e)))if(e=f[1].trim(),f=f[2].trim(),"Format"==e)d=f.split(Kx);else if("Style"==e){e=f.split(Kx);f={};for(var g=0;g<d.length&&g<e.length;g++)f[d[g]]=e[g];a.push(f)}d= 1209[];b=null;e={};c=t(c.split(/\r?\n/));for(f=c.next();!f.done;e={Yd:e.Yd},f=c.next())if(f=f.value,!/^\s*;/.test(f)&&(g=Jx.exec(f)))if(f=g[1].trim(),g=g[2].trim(),"Format"==f)b=g.split(Kx);else if("Dialogue"==f){g=g.split(Kx);f={};for(var h=0;h<b.length&&h<g.length;h++)f[b[h]]=g[h];h=Lx(f.Start);var k=Lx(f.End);g=new Eb(h,k,g.slice(b.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}/g,""));e.Yd=f.Style;(f=a.find(function(l){return function(m){return m.Name==l.Yd}}(e)))&&Mx(g,f);d.push(g)}return d}; 1210function Mx(a,b){var c=b.Fontname;c&&(a.fontFamily=c);if(c=b.Fontsize)a.fontSize=c+"px";if(c=b.PrimaryColour)if(c=Nx(c))a.color=c;if(c=b.BackColour)if(c=Nx(c))a.backgroundColor=c;b.Bold&&(a.fontWeight=700);b.Italic&&(a.fontStyle="italic");b.Underline&&a.textDecoration.push("underline");if(c=b.Spacing)a.letterSpacing=c+"px";if(c=b.Alignment)switch(parseInt(c,10)){case 1:a.displayAlign=Mb;a.textAlign="start";break;case 2:a.displayAlign=Mb;a.textAlign=Hb;break;case 3:a.displayAlign=Mb;a.textAlign="end"; 1211break;case 5:a.displayAlign="before";a.textAlign="start";break;case 6:a.displayAlign="before";a.textAlign=Hb;break;case 7:a.displayAlign="before";a.textAlign="end";break;case 9:a.displayAlign="center";a.textAlign="start";break;case 10:a.displayAlign="center";a.textAlign=Hb;break;case 11:a.displayAlign="center",a.textAlign="end"}if(b=b.AlphaLevel)a.opacity=parseFloat(b)} 1212function Nx(a){a=parseInt(a.replace("&H",""),16);return 0<=a?"rgba("+(a&255)+","+(a>>8&255)+","+(a>>16&255)+","+(a>>24&255^255)/255+")":null}function Lx(a){a=Ox.exec(a);return 3600*(a[1]?parseInt(a[1].replace(":",""),10):0)+60*parseInt(a[2],10)+parseFloat(a[3])}P("shaka.text.SsaTextParser",Hx);Hx.prototype.parseMedia=Hx.prototype.parseMedia;Hx.prototype.setManifestType=Hx.prototype.setManifestType;Hx.prototype.setSequenceMode=Hx.prototype.setSequenceMode;Hx.prototype.parseInit=Hx.prototype.parseInit; 1213var Ix=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Jx=/^\s*([^:]+):\s*(.*)/,Kx=/\s*,\s*/,Ox=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;cd["text/x-ssa"]=function(){return new Hx};function Px(a,b){var c=a[b+1]&1?7:9;return b+c<=a.length&&(a=((a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5)-c,0<a)?{Bd:c,R:a}:null}function Qx(a,b){var c=[96E3,88200,64E3,48E3,44100,32E3,24E3,22050,16E3,12E3,11025,8E3,7350],d=(a[b+2]&60)>>>2;if(d>c.length-1)return null;var e=((a[b+2]&192)>>>6)+1,f=(a[b+2]&1)<<2;f|=(a[b+3]&192)>>>6;return{sampleRate:c[d],channelCount:f,ja:"mp4a.40."+e}} 1214function Rx(a,b){if(b+1<a.length&&255===a[b]&&240===(a[b+1]&246)){var c=a[b+1]&1?7:9;if(b+c>=a.length)return!1;var d=(a[b+3]&3)<<11|a[b+4]<<3|(a[b+5]&224)>>>5;if(d<=c)return!1;b+=d;return b===a.length||b+1<a.length&&255===a[b]&&240===(a[b+1]&246)}return!1} 1215function Sx(a,b){switch(a){case "mp4a.40.2":if(1===b)return new Uint8Array([0,200,0,128,35,128]);if(2===b)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===b)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144, 12162,0,178,0,32,8,224]);break;default:if(1===b)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===b||3===b)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null};function Tx(a){if(!Ux){Ux=!0;var b=new Uint8Array([105,115,111,109]),c=new Uint8Array([97,118,99,49]),d=new Uint8Array([0,0,0,1]);Vx=Wx("ftyp",b,d,b,c);b=Wx("dref",Xx);Yx=Wx("dinf",b)}this.g=a} 1217function Zx(a){for(var b=[],c=t(a.g),d=c.next();!d.done;d=c.next()){var e=b,f=e.push;var g=d.value;d=Wx;var h=g.id+1;var k=g.stream.width||0,l=g.stream.height||0;"audio"==g.type&&(l=k=0);var m=g.duration*g.timescale,n=Math.floor(m/($x+1));m=Math.floor(m%($x+1));h=new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(ay(h,4)),[0,0,0,0],w(ay(n,4)),w(ay(m,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],w(ay(k,2)),[0,0],w(ay(l, 12182)),[0,0]));h=Wx("tkhd",h);k=Wx;n=g.duration*g.timescale;l=Math.floor(n/($x+1));n=Math.floor(n%($x+1));m=g.stream.language;m=m.charCodeAt(0)-96<<10|m.charCodeAt(1)-96<<5|m.charCodeAt(2)-96;l=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(ay(g.timescale,4)),w(ay(l,4)),w(ay(n,4)),w(ay(m,2)),[0,0]));l=Wx("mdhd",l);n=g;m=new Uint8Array([]);switch(n.type){case "video":m=by;break;case "audio":m=cy}n=Wx("hdlr",m);a:{switch(g.type){case "video":g=Wx("minf",Wx("vmhd",dy),Yx,ey(g));break a; 1219case "audio":g=Wx("minf",Wx("smhd",fy),Yx,ey(g));break a}g=new Uint8Array([])}g=k("mdia",l,n,g);d=d("trak",h,g);f.call(e,d)}b=sg.apply(mg,w(b));f=a.g[0];c=Wx;d=f.duration*f.timescale;e=Math.floor(d/($x+1));d=Math.floor(d%($x+1));e=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3].concat(w(ay(f.timescale,4)),w(ay(e,4)),w(ay(d,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, 1220255]));e=Wx("mvhd",e);d=[];a=t(a.g);for(k=a.next();!k.done;k=a.next())g=d,h=g.push,k=new Uint8Array([0,0,0,0].concat(w(ay(k.value.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1])),k=Wx("trex",k),h.call(g,k);a=sg.apply(mg,w(d));a=Wx("mvex",a);d=[];if(f.encrypted){f=t(f.stream.drmInfos);for(g=f.next();!g.done;g=f.next())if(g=g.value,g.initData)for(g=t(g.initData),h=g.next();!h.done;h=g.next())d.push(h.value.initData);f=sg.apply(mg,w(d))}else f=new Uint8Array([]);a=c("moov",e,b,a,f);b=new Uint8Array(Vx.byteLength+ 1221a.byteLength);b.set(Vx);b.set(a,Vx.byteLength);return b} 1222function ey(a){var b=Wx,c=new Uint8Array([]);switch(a.type){case "video":if(a.codecs.includes("avc1")){c=a.stream.width||0;var d=a.stream.height||0;if(0<a.pa.byteLength)var e=Wx("avcC",a.pa);else{e=Wx;for(var f=7,g=[],h=[],k=0,l=0,m=0,n=0;n<a.Xa.length;n++){var q=gy(a.Xa[n]);switch(q[0]&31){case 7:g.push(q);f+=q.length+2;break;case 8:h.push(q),f+=q.length+2}}0<g.length&&(k=g[0][1],m=g[0][2],l=g[0][3]);f=new Uint8Array(f);n=0;f[n++]=1;f[n++]=k;f[n++]=m;f[n++]=l;f[n++]=255;f[n++]=224|g.length;for(k= 12230;k<g.length;k++)f[n++]=(g[k].length&65280)>>8,f[n++]=g[k].length&255,f.set(g[k],n),n+=g[k].length;f[n++]=h.length;for(g=0;g<h.length;g++)f[n++]=(h[g].length&65280)>>8,f[n++]=h[g].length&255,f.set(h[g],n),n+=h[g].length;e=e("avcC",f)}c=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(w(ay(c,2)),w(ay(d,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]));d="avc1";h=hy(a);g=new Uint8Array([]); 1224a.encrypted&&(g=iy(a),d="encv");c=Wx(d,c,e,h,g)}else a.codecs.includes("hvc1")&&(d=a.stream.width||0,e=a.stream.height||0,c=new Uint8Array([]),0<a.pa.byteLength&&(c=Wx("hvcC",a.pa)),d=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(w(ay(d,2)),w(ay(e,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])),e="hvc1",h=hy(a),g=new Uint8Array([]),a.encrypted&&(g=iy(a),e="encv"),c=Wx(e,d, 1225c,h,g));break;case "audio":if(a.codecs.includes("mp3"))a=Wx(".mp3",jy(a));else if(a.codecs.includes("ac-3"))c=Wx("dac3",a.ia),d="ac-3",e=new Uint8Array([]),a.encrypted&&(e=iy(a),d="enca"),a=Wx(d,jy(a),c,e);else if(a.codecs.includes("ec-3"))c=Wx("dec3",a.ia),d="ec-3",e=new Uint8Array([]),a.encrypted&&(e=iy(a),d="enca"),a=Wx(d,jy(a),c,e);else{if(0<a.ia.byteLength)c=Wx("esds",a.ia);else{c=Wx;d=a.id+1;e=a.stream.channelsCount||2;g=a.stream.audioSamplingRate||44100;k=Fc("audio",a.codecs.split(","));l= 1226{96E3:0,88200:1,64E3:2,48E3:3,44100:4,32E3:5,24E3:6,22050:7,16E3:8,12E3:9,11025:10,8E3:11,7350:12};h=l[g];if("mp4a.40.5"===k||"mp4a.40.29"===k)h=l[2*g];g=parseInt(k.split(".").pop(),10);d=new Uint8Array([0,0,0,0,3,25].concat(w(ay(d,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,g<<3|h>>>1,h<<7|e<<3,6,1,2]));c=c("esds",d)}d="mp4a";e=new Uint8Array([]);a.encrypted&&(e=iy(a),d="enca");a=Wx(d,jy(a),c,e)}c=a}a=Wx("stsd",ky,c);return b("stbl",a,Wx("stts",ly),Wx("stsc",my),Wx("stsz",ny),Wx("stco",oy))} 1227function hy(a){if(!a.ta&&!a.xa)return new Uint8Array([]);var b=a.xa;a=new Uint8Array([].concat(w(ay(a.ta,4)),w(ay(b,4))));return Wx("pasp",a)}function jy(a){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,a.stream.channelsCount||2,0,16,0,0,0,0].concat(w(ay(a.stream.audioSamplingRate||44100,2)),[0,0]))} 1228function iy(a){var b=Wx;var c=a.codecs.substring(0,a.codecs.indexOf("."));for(var d=0,e=0;e<c.length;e+=1)d|=c.charCodeAt(e)<<8*(c.length-e-1);c=new Uint8Array([].concat(w(ay(d,4))));c=Wx("frma",c);d=new Uint8Array([0,0,0,0,99,101,110,99,0,1,0,0]);d=Wx("schm",d);e=Wx;var f=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);a=t(a.stream.drmInfos);for(var g=a.next();!g.done;g=a.next())if((g=g.value)&&g.keyIds&&g.keyIds.size){g=t(g.keyIds);for(var h=g.next();!h.done;h=g.next())f=gy(h.value)}a=new Uint8Array([0, 12290,0,0,0,0,1,8]);f=Wx("tenc",a,f);return b("sinf",c,d,e("schi",f))} 1230function py(a){var b=[];a=t(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=b.push,e=d.apply;var f=Wx;var g=new Uint8Array([0,0,0,0].concat(w(ay(c.data?c.data.eb:0,4))));g=Wx("mfhd",g);var h;var k=c.data?c.data.Na:[];var l=new Uint8Array(4+k.length);for(h=0;h<k.length;h++){var m=k[h].flags;l[h+4]=m.Ia<<4|m.Ka<<2|m.Ja}k=Wx("sdtp",l);var n=k.length+92;l=Wx;h=new Uint8Array([0,0,0,58].concat(w(ay(c.id+1,4)),[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0]));h=Wx("tfhd",h);m=c.data?c.data.baseMediaDecodeTime: 12310;var q=Math.floor(m%($x+1));m=new Uint8Array([1,0,0,0].concat(w(ay(Math.floor(m/($x+1)),4)),w(ay(q,4))));m=Wx("tfdt",m);var p=n;n=c.data?c.data.Na:[];q=n.length;var u=12+16*q,v=new Uint8Array(u);p+=8+u;v.set(["video"===c.type?1:0,0,15,1].concat(w(ay(q,4)),w(ay(p,4))),0);for(p=0;p<q;p++){var x=n[p];u=ay(x.duration,4);var z=ay(x.size,4),y=x.flags;x=ay(x.Ra,4);v.set([].concat(w(u),w(z),[y.Sa<<2|y.Ia,y.Ka<<6|y.Ja<<4|y.Ta,y.Ha&61440,y.Ha&15],w(x)),12+16*p)}n=Wx("trun",v);k=l("traf",h,m,n,k);f=f("moof", 1232g,k);e.call(d,b,[f,qy(c)])}return sg.apply(mg,w(b))}function qy(a){a=(a.data?a.data.Na:[]).map(function(b){return b.data});a=sg.apply(mg,w(a));return Wx("mdat",a)}function ay(a,b){var c=[];for(--b;0<=b;b--)c.push(a>>8*b&255);return c}function gy(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length/2;c+=1)b[c]=parseInt(String(a[2*c]+a[2*c+1]),16);return b} 1233function Wx(a){var b=Da.apply(1,arguments),c=ry[a];c||(c=[a.charCodeAt(0),a.charCodeAt(1),a.charCodeAt(2),a.charCodeAt(3)],ry[a]=c);for(var d=8,e=b.length-1;0<=e;e--)d+=b[e].byteLength;e=new Uint8Array(d);e[0]=d>>24&255;e[1]=d>>16&255;e[2]=d>>8&255;e[3]=d&255;e.set(c,4);c=0;for(d=8;c<b.length;c++)e.set(b[c],d),d+=b[c].byteLength;return e} 1234var Ux=!1,$x=Math.pow(2,32)-1,ry={},by=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),cy=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),ly=new Uint8Array([0,0,0,0,0,0,0,0]),my=new Uint8Array([0,0,0,0,0,0,0,0]),oy=new Uint8Array([0,0,0,0,0,0,0,0]),ny=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),dy=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),fy=new Uint8Array([0, 12350,0,0,0,0,0,0]),ky=new Uint8Array([0,0,0,0,0,0,0,1]),Vx=new Uint8Array([]),Xx=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Yx=new Uint8Array([]);function sy(a){this.i=a;this.h=0;this.g=new Map}r=sy.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/aac"==a.toLowerCase().split(";")[0]?gb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/aac"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="'+(Zc(b)||"mp4a.40.2")+'"':b};r.getOriginalMimeType=function(){return this.i}; 1236r.transmux=function(a,b,c,d){for(var e=ob(a),f=di(e),g=f.length;g<e.length&&!Rx(e,g);g++);a=1E3*c.endTime;f=ci(f);f.length&&c&&(c=f.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(a=c.data);c=Qx(e,g);if(!c)return Promise.reject(new Q(2,3,3018));b.audioSamplingRate=c.sampleRate;b.channelsCount=c.channelCount;for(f=[];g<e.length;){var h=Px(e,g);if(!h)return Promise.reject(new Q(2,3,3018));var k=h.Bd+h.R;g+k<=e.length&&f.push({data:e.subarray(g+h.Bd,g+k),size:h.R, 1237duration:1024,Ra:0,flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:2,Ta:0}});g+=k}e=c.sampleRate;a=Math.floor(a*e/1E3);d={id:b.id,type:"audio",codecs:c.ja,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:e,duration:d,Xa:[],ia:new Uint8Array([]),pa:new Uint8Array([]),ta:0,xa:0,data:{eb:this.h,baseMediaDecodeTime:a,Na:f},stream:b};a=new Tx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Zx(a),this.g.set(b.id,d));b=py(a);this.h++;b=sg(d,b);return Promise.resolve(b)};P("shaka.transmuxer.AacTransmuxer",sy); 1238sy.prototype.transmux=sy.prototype.transmux;sy.prototype.getOriginalMimeType=sy.prototype.getOriginalMimeType;sy.prototype.convertCodecs=sy.prototype.convertCodecs;sy.prototype.isSupported=sy.prototype.isSupported;sy.prototype.destroy=sy.prototype.destroy;cc("audio/aac",function(){return new sy("audio/aac")},ic);function ty(a,b){if(b+8>a.length||11!==a[b]||119!==a[b+1])return null;var c=a[b+4]>>6;if(3<=c)return null;var d=a[b+4]&63,e=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, 12391024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][3*d+c];if(b+e>a.length)return null;var f=a[b+6]>>5,g=0;2===f?g+=2:(f&1&&1!==f&&(g+=2),f&4&&(g+=2));g=(a[b+6]<<8|a[b+7])>>12-g&1;var h=a[b+5]&7;a=new Uint8Array([c<<6|a[b+5]>>3<<1|h>>2,(h&3)<<6|f<<3|g<<2|d>>4,d<<4&224]);return{sampleRate:[48E3,44100,32E3][c],channelCount:[2,1,2,3,3,4,4,5][f]+g,ia:a,R:e}} 1240function uy(a,b){if(11===a[b]&&119===a[b+1]){var c=0,d=5;b+=d;for(var e,f;0<d;){f=a[b];var g=Math.min(d,8),h=8-g;e=4278190080>>>24+h<<h;e=(f&e)>>h;c=c?c<<g|e:e;b+=1;d-=g}if(16>c)return!0}return!1};function vy(a){this.i=a;this.h=0;this.g=new Map}r=vy.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/ac3"==a.toLowerCase().split(";")[0]?gb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/ac3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ac-3"':b};r.getOriginalMimeType=function(){return this.i}; 1241r.transmux=function(a,b,c,d){a=ob(a);for(var e=di(a),f=e.length;f<a.length&&!uy(a,f);f++);var g=1E3*c.endTime;e=ci(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=ty(a,f);if(!k)return Promise.reject(new Q(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ia;h.push({data:a.subarray(f,f+k.R),size:k.R,duration:1536,Ra:0,flags:{Sa:0, 1242Ka:0,Ja:0,Ha:0,Ia:2,Ta:0}});f+=k.R}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,Xa:[],ia:e,pa:new Uint8Array([]),ta:0,xa:0,data:{eb:this.h,baseMediaDecodeTime:a,Na:h},stream:b};a=new Tx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Zx(a),this.g.set(b.id,d));b=py(a);this.h++;b=sg(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ac3Transmuxer",vy);vy.prototype.transmux=vy.prototype.transmux; 1243vy.prototype.getOriginalMimeType=vy.prototype.getOriginalMimeType;vy.prototype.convertCodecs=vy.prototype.convertCodecs;vy.prototype.isSupported=vy.prototype.isSupported;vy.prototype.destroy=vy.prototype.destroy;cc("audio/ac3",function(){return new vy("audio/ac3")},ic);function wy(a,b){if(b+8>a.length||2935!==(a[b]<<8|a[b+1]<<0))return null;var c=new mi(a.subarray(b+2));oi(c,2);oi(c,3);var d=pi(c,11)+1<<1,e=pi(c,2);if(3==e){e=pi(c,2);e=[24E3,22060,16E3][e];var f=3}else e=[48E3,44100,32E3][e],f=pi(c,2);var g=pi(c,3),h=pi(c,1);c=pi(c,5);if(b+d>a.byteLength)return null;a=Math.floor(d*e/(16*[1,2,3,6][f]));a=new Uint8Array([(a&8160)>>5,(a&31)<<3,e<<6|c<<1|0,0|g<<1|h<<0,0]);return{sampleRate:e,channelCount:[2,1,2,3,3,4,4,5][g]+h,ia:a,R:d}};function xy(a){this.i=a;this.h=0;this.g=new Map}r=xy.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/ec3"==a.toLowerCase().split(";")[0]?gb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/ec3"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="ec-3"':b};r.getOriginalMimeType=function(){return this.i}; 1244r.transmux=function(a,b,c,d){a=ob(a);for(var e=di(a),f=e.length;f<a.length&&2935!==(a[f]<<8|a[f+1]<<0);f++);var g=1E3*c.endTime;e=ci(e);e.length&&c&&(c=e.find(function(l){return"com.apple.streaming.transportStreamTimestamp"===l.description}))&&(g=c.data);c=0;e=new Uint8Array([]);for(var h=[];f<a.length;){var k=wy(a,f);if(!k)return Promise.reject(new Q(2,3,3018));b.audioSamplingRate=k.sampleRate;b.channelsCount=k.channelCount;c=k.sampleRate;e=k.ia;h.push({data:a.subarray(f,f+k.R),size:k.R,duration:1536, 1245Ra:0,flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:2,Ta:0}});f+=k.R}a=Math.floor(g*c/1E3);d={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:c,duration:d,Xa:[],ia:e,pa:new Uint8Array([]),ta:0,xa:0,data:{eb:this.h,baseMediaDecodeTime:a,Na:h},stream:b};a=new Tx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Zx(a),this.g.set(b.id,d));b=py(a);this.h++;b=sg(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Ec3Transmuxer",xy);xy.prototype.transmux=xy.prototype.transmux; 1246xy.prototype.getOriginalMimeType=xy.prototype.getOriginalMimeType;xy.prototype.convertCodecs=xy.prototype.convertCodecs;xy.prototype.isSupported=xy.prototype.isSupported;xy.prototype.destroy=xy.prototype.destroy;cc("audio/ec3",function(){return new xy("audio/ec3")},ic);function yy(a){if(!a.length)return null;var b=a.find(function(v){return 7==v.type});a=a.find(function(v){return 8==v.type});if(!b||!a)return null;var c=new mi(b.data),d=ti(c);ti(c);ti(c);ri(c);if(zy.includes(d)&&(d=S(c),3===d&&oi(c,1),ri(c),ri(c),oi(c,1),T(c))){d=3!==d?8:12;for(var e=0;e<d;e++)T(c)&&(6>e?ui(c,16):ui(c,64))}ri(c);d=S(c);if(0===d)S(c);else if(1===d)for(oi(c,1),ri(c),ri(c),d=S(c),e=0;e<d;e++)ri(c);ri(c);oi(c,1);var f=S(c),g=S(c),h=pi(c,1);0===h&&oi(c,1);oi(c,1);var k=0,l=0,m=0,n=0;T(c)&& 1247(k=S(c),l=S(c),m=S(c),n=S(c));e=d=1;if(T(c)&&T(c)){var q=ti(c),p=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],u=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];0<q&&16>=q?(d=p[q-1],e=u[q-1]):255===q&&(d=pi(c,16),e=pi(c,16))}c=(2-h)*(g+1)*16-2*m-2*n;f=16*(f+1)-2*k-2*l;k=[];b=b.fullData;k.push(b.byteLength>>>8&255);k.push(b.byteLength&255);k=k.concat.apply(k,w(b));b=[];a=a.fullData;b.push(a.byteLength>>>8&255);b.push(a.byteLength&255);b=b.concat.apply(b,w(a));a=new Uint8Array([1,k[3],k[4],k[5],255, 1248225].concat(k,[1],b));return{height:c,width:f,pa:a,ta:d,xa:e}} 1249function Ay(a){var b=!1,c=[],d=a.find(function(k){return 7==k.type}),e=!1;a=t(a);for(var f=a.next();!f.done;f=a.next()){f=f.value;var g=!1;switch(f.type){case 1:g=e=!0;var h=f.data;d&&4<h.length&&(h=vi(new mi(h)),2===h||4===h||7===h||9===h)&&(b=!0);break;case 5:b=g=e=!0;break;case 6:g=!0;break;case 7:g=!0;break;case 8:g=!0;break;case 9:e=g=!0;break;case 12:g=!0;break;default:g=!1}e&&g&&(g=f.fullData.byteLength,h=new Uint8Array(4),h[0]=g>>24&255,h[1]=g>>16&255,h[2]=g>>8&255,h[3]=g&255,c.push(h),c.push(f.fullData))}return c.length? 1250{data:sg.apply(mg,w(c)),Qc:b}:null}var zy=[100,110,122,244,44,83,86,118,128,138,139,134];function By(a){if(!a.length)return null;var b=a.find(function(g){return 32==g.type}),c=a.find(function(g){return 33==g.type}),d=a.find(function(g){return 34==g.type});if(!b||!c||!d)return null;var e=Cy(b.fullData);a=Dy(c.fullData);var f=Ey(d.fullData);b=Fy(b.fullData,c.fullData,d.fullData,{Qe:e.Qe,ff:e.ff,we:a.we,xe:a.xe,qe:a.qe,ve:a.ve,re:a.re,se:a.se,te:a.te,ue:a.ue,ke:a.ke,le:a.le,me:a.me,ne:a.ne,oe:a.oe,pe:a.pe,he:a.he,Kd:a.Kd,ge:a.ge,fe:a.fe,ee:a.ee,Te:f.Te});return{height:a.height,width:a.width, 1251pa:b,ta:a.Dh,xa:a.Ch}}function Cy(a){var b=new mi(a,!0);ti(b);ti(b);pi(b,4);pi(b,2);pi(b,6);a=pi(b,3);b=T(b);return{Qe:a+1,ff:b}} 1252function Dy(a){a=new mi(a,!0);ti(a);ti(a);var b=0,c=0,d=0,e=0;pi(a,4);var f=pi(a,3);T(a);for(var g=pi(a,2),h=pi(a,1),k=pi(a,5),l=ti(a),m=ti(a),n=ti(a),q=ti(a),p=ti(a),u=ti(a),v=ti(a),x=ti(a),z=ti(a),y=ti(a),B=ti(a),A=[],D=[],F=0;F<f;F++)A.push(T(a)),D.push(T(a));if(0<f)for(F=f;8>F;F++)pi(a,2);for(F=0;F<f;F++)A[F]&&pi(a,88),D[F]&&ti(a);S(a);A=S(a);3==A&&pi(a,1);D=S(a);F=S(a);T(a)&&(b+=S(a),c+=S(a),d+=S(a),e+=S(a));var K=S(a),H=S(a),I=S(a);if(T(a))for(var G=0;G<=f;G++)S(a),S(a),S(a);else S(a),S(a), 1253S(a);S(a);S(a);S(a);S(a);S(a);S(a);if(T(a)&&T(a))for(G=0;4>G;G++)for(var M=0;M<(3===G?2:6);M++)if(T(a)){var L=Math.min(64,1<<4+(G<<1));1<G&&si(a);for(var N=0;N<L;N++)si(a)}else S(a);T(a);T(a);T(a)&&(ti(a),S(a),S(a),T(a));G=S(a);for(L=M=0;L<G;L++)if(N=!1,0!==L&&(N=T(a)),N){L===G&&S(a);T(a);S(a);for(var O=N=0;O<=M;O++){var X=T(a),Y=!1;X||(Y=T(a));(X||Y)&&N++}M=N}else{O=S(a);N=S(a);M=O+N;for(X=0;X<O;X++)S(a),T(a);for(O=0;O<N;O++)S(a),T(a)}if(T(a))for(G=S(a),M=0;M<G;M++){for(L=0;L<I+4;L++)pi(a,1);pi(a, 12541)}G=I=1;M=0;T(a);T(a);if(T(a)){T(a)&&(L=ti(a),N=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],O=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1],0<L&&16>=L?(I=N[L-1],G=O[L-1]):255===L&&(I=pi(a,16),G=pi(a,16)));T(a)&&T(a);T(a)&&(pi(a,3),T(a),T(a)&&(ti(a),ti(a),ti(a)));T(a)&&(S(a),S(a));T(a);T(a);T(a);if(L=T(a))S(a),S(a),S(a),S(a);if(T(a)&&(pi(a,32),pi(a,32),T(a)&&S(a),T(a))){O=!1;L=T(a);N=T(a);if(L||N){if(O=T(a))ti(a),pi(a,5),T(a),pi(a,5);pi(a,4);pi(a,4);O&&pi(a,4);pi(a,5);pi(a,5);pi(a,5)}for(X=0;X<= 1255f;X++){var R=!0;Y=1;T(a)||(R=T(a));var La=!1;R?S(a):La=T(a);La||(Y=S(a)+1);if(L){for(R=0;R<Y;R++)S(a),S(a),O&&(S(a),S(a));T(a)}if(N){for(R=0;R<Y;R++)S(a),S(a),O&&(S(a),S(a));T(a)}}}T(a)&&(T(a),T(a),T(a),M=S(a),S(a),S(a),S(a),S(a))}return{qe:B,we:g,xe:h,ve:k,re:l,se:m,te:n,ue:q,ke:p,le:u,me:v,ne:x,oe:z,pe:y,Kd:M,he:0,ge:A,fe:K,ee:H,width:D-(b+c)*(1===A||2===A?2:1),height:F-(d+e)*(1===A?2:1),Dh:I,Ch:G}} 1256function Ey(a){var b=new mi(a,!0);ti(b);ti(b);S(b);S(b);T(b);T(b);pi(b,3);T(b);T(b);S(b);S(b);si(b);T(b);T(b);T(b)&&S(b);si(b);si(b);T(b);T(b);T(b);T(b);a=T(b);b=T(b);var c=1;b&&a?c=0:b?c=3:a&&(c=2);return{Te:c}} 1257function Fy(a,b,c,d){var e=new Uint8Array(23+(5+a.byteLength)+(5+b.byteLength)+(5+c.byteLength));e[0]=1;e[1]=(d.we&3)<<6|(d.xe?1:0)<<5|d.ve&31;e[2]=d.re;e[3]=d.se;e[4]=d.te;e[5]=d.ue;e[6]=d.ke;e[7]=d.le;e[8]=d.me;e[9]=d.ne;e[10]=d.oe;e[11]=d.pe;e[12]=d.qe;e[13]=240|(d.Kd&3840)>>8;e[14]=d.Kd&255;e[15]=252|d.Te&3;e[16]=252|d.ge&3;e[17]=248|d.fe&7;e[18]=248|d.ee&7;e[19]=0;e[20]=0;e[21]=(d.he&3)<<6|(d.Qe&7)<<3|(d.ff?1:0)<<2|3;e[22]=3;e[23]=160;e[24]=0;e[25]=1;e[26]=(a.byteLength&65280)>>8;e[27]=(a.byteLength& 1258255)>>0;e.set(a,28);e[23+(5+a.byteLength)]=161;e[a.byteLength+29]=0;e[a.byteLength+30]=1;e[a.byteLength+31]=(b.byteLength&65280)>>8;e[a.byteLength+32]=(b.byteLength&255)>>0;e.set(b,a.byteLength+33);e[23+(a.byteLength+10+b.byteLength)]=162;e[a.byteLength+10+b.byteLength+24]=0;e[a.byteLength+10+b.byteLength+25]=1;e[a.byteLength+10+b.byteLength+26]=(c.byteLength&65280)>>8;e[a.byteLength+10+b.byteLength+27]=(c.byteLength&255)>>0;e.set(c,a.byteLength+10+b.byteLength+28);return e};function Gy(a,b){var c=a[b+1]>>3&3,d=a[b+1]>>1&3,e=a[b+2]>>4&15,f=a[b+2]>>2&3;if(1!==c&&0!==e&&15!==e&&3!==f){var g=a[b+3]>>6;e=1E3*Hy[14*(3===c?3-d:3===d?3:4)+e-1];f=Iy[3*(3===c?0:2===c?1:2)+f];c=Jy[c][d];var h=Ky[d],k=Math.floor(c*e/f+(a[b+2]>>1&1))*h,l=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);(l=l?parseInt(l[1],10):0)&&87>=l&&2===d&&224E3<=e&&0===g&&(a[b+3]|=128);return{sampleRate:f,channelCount:3===g?1:2,R:k,Bh:8*c*h}}return null} 1259function Ly(a,b){return 255===a[b]&&224===(a[b+1]&224)&&0!==(a[b+1]&6)}function My(a,b){if(b+1<a.length&&Ly(a,b)){var c=Gy(a,b),d=4;c&&c.R&&(d=c.R);b+=d;return b===a.length||b+1<a.length&&Ly(a,b)}return!1} 1260var Hy=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],Iy=[44100,48E3,32E3,22050,24E3,16E3,11025,12E3,8E3],Jy=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Ky=[0,1,1,4];function Ny(a){this.i=a;this.h=0;this.g=new Map}r=Ny.prototype;r.destroy=function(){this.g.clear()};r.isSupported=function(a){return"audio/mpeg"==a.toLowerCase().split(";")[0]?gb(this.convertCodecs("audio",a)):!1};r.convertCodecs=function(a,b){return"audio/mpeg"==b.toLowerCase().split(";")[0]?'audio/mp4; codecs="mp3"':b};r.getOriginalMimeType=function(){return this.i}; 1261r.transmux=function(a,b,c,d){c=ob(a);for(var e=di(c).length;e<c.length&&!My(c,e);e++);var f;for(a=[];e<c.length;){var g=Gy(c,e);if(!g)return Promise.reject(new Q(2,3,3018));f||(f=g);e+g.R<=c.length&&a.push({data:c.subarray(e,e+g.R),size:g.R,duration:1152,Ra:0,flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:2,Ta:0}});e+=g.R}if(!f)return Promise.reject(new Q(2,3,3018));c=9E4*f.Bh/f.sampleRate*this.h;d={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:f.sampleRate,duration:d,Xa:[], 1262ia:new Uint8Array([]),pa:new Uint8Array([]),ta:0,xa:0,data:{eb:this.h,baseMediaDecodeTime:c,Na:a},stream:b};f=new Tx([d]);this.g.has(b.id)?d=this.g.get(b.id):(d=Zx(f),this.g.set(b.id,d));b=py(f);this.h++;b=sg(d,b);return Promise.resolve(b)};P("shaka.transmuxer.Mp3Transmuxer",Ny);Ny.prototype.transmux=Ny.prototype.transmux;Ny.prototype.getOriginalMimeType=Ny.prototype.getOriginalMimeType;Ny.prototype.convertCodecs=Ny.prototype.convertCodecs;Ny.prototype.isSupported=Ny.prototype.isSupported; 1263Ny.prototype.destroy=Ny.prototype.destroy;cc("audio/mpeg",function(){return new Ny("audio/mpeg")},ic);function Oy(a){this.h=a;this.g=null}r=Oy.prototype;r.destroy=function(){};
1263r.isSupported=function(a){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var b=Zc(a).split(","),c=Gc("audio",b);b=Gc("video",b);return!c||b||"mp3"!=Uc(c)?!1:gb(this.convertCodecs("audio",a))};r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?"audio/mpeg":b};r.getOriginalMimeType=function(){return this.h}; 1264r.transmux=function(a,b,c,d,e){this.g?this.g.clearData():this.g=new wi;a=ob(a);a=this.g.parse(a);if("mp3"!=a.Jc().audio||"audio"!=e)return Promise.reject(new Q(2,3,3018));e=new Uint8Array([]);a=t(a.Kb());for(b=a.next();!b.done;b=a.next())if(b=b.value.data)for(c=0;c<b.length;)(d=Gy(b,c))?(c+d.R<=b.length&&(e=sg(e,b.subarray(c,c+d.R))),c+=d.R):c++;return Promise.resolve(e)};P("shaka.transmuxer.MpegTsTransmuxer",Oy);Oy.prototype.transmux=Oy.prototype.transmux;Oy.prototype.getOriginalMimeType=Oy.prototype.getOriginalMimeType; 1265Oy.prototype.convertCodecs=Oy.prototype.convertCodecs;Oy.prototype.isSupported=Oy.prototype.isSupported;Oy.prototype.destroy=Oy.prototype.destroy;cc("video/mp2t",function(){return new Oy("video/mp2t")},hc);function Py(a){this.l=a;this.g=0;this.i=new Map;this.h=this.j=null}r=Py.prototype;r.destroy=function(){this.i.clear();this.h&&this.h.destroy()}; 1266r.isSupported=function(a,b){if("video/mp2t"!=a.toLowerCase().split(";")[0])return!1;var c=a;b&&(c=this.convertCodecs(b,a));var d=Zc(c).split(",");c=Gc("audio",d);d=Gc("video",d);if(c&&(c=Uc(c),!Qy.includes(c))||d&&(c=Uc(d),!Ry.includes(c)))return!1;if(b)return gb(this.convertCodecs(b,a));b=this.convertCodecs("audio",a);a=this.convertCodecs("video",a);return gb(b)||gb(a)}; 1267r.convertCodecs=function(a,b){return"video/mp2t"==b.toLowerCase().split(";")[0]?(b=Zc(b).replace("mp4a.40.34","mp3").split(",").map(function(c){return je(c,"audio/mp4")}).map(ie).join(","),"audio"==a?'audio/mp4; codecs="'+b+'"':'video/mp4; codecs="'+b+'"'):b};r.getOriginalMimeType=function(){return this.l}; 1268r.transmux=function(a,b,c,d,e){var f=ob(a);if("audio"==e&&!Di(f)){for(var g=di(f),h=g.length;h<f.length;h++)if(My(f,h))return Promise.reject(new Q(2,3,3018));for(h=g.length;h<f.length;h++)if(Rx(f,h))return this.h||(this.h=new sy("audio/aac")),this.h.transmux(a,b,c,d,e);return Promise.reject(new Q(2,3,3018))}this.j?this.j.clearData():this.j=new wi;g=this.j.parse(f);a=[];var k=g.Jc();try{f=null;if("video"==e){switch(k.video){case "avc":var l=[],m=null,n=[],q=g.fc();if(!q.length)throw new Q(2,3,3023); 1269for(var p=0;p<q.length;p++){var u=q[p],v=u.nalus;n.push.apply(n,w(v));var x=Ay(v);if(x){null==m&&(m=u.dts);var z=void 0;z=p+1<q.length?(q[p+1].dts||0)-(u.dts||0):1<q.length?(u.dts||0)-(q[p-1].dts||0):9E4*(c.endTime-c.startTime);l.push({data:x.data,size:x.data.byteLength,duration:z,Ra:Math.round((u.pts||0)-(u.dts||0)),flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:x.Qc?2:1,Ta:x.Qc?0:1}})}}var y=yy(n);if(!y||null==m)throw new Q(2,3,3018);b.height=y.height;b.width=y.width;f={id:b.id,type:"video",codecs:"avc1",encrypted:b.encrypted&& 12700<b.drmInfos.length,timescale:9E4,duration:d,Xa:[],ia:new Uint8Array([]),pa:y.pa,ta:y.ta,xa:y.xa,data:{eb:this.g,baseMediaDecodeTime:m,Na:l},stream:b};break;case "hvc":q=[];u=null;v=[];l=g.fc();if(!l.length)throw new Q(2,3,3023);for(x=0;x<l.length;x++){m=l[x];n=m.nalus;v.push.apply(v,w(n));y=!1;var B=[],A=!1;p=t(n);for(z=p.next();!z.done;z=p.next()){var D=z.value;switch(D.type){case 1:case 0:var F=A=!0;break;case 19:case 20:case 21:y=F=A=!0;break;case 32:F=!0;break;case 33:F=!0;break;case 34:F=!0; 1271break;case 35:A=F=!0;break;case 39:case 40:F=!0;break;default:F=!1}if(A&&F){var K=D.fullData.byteLength,H=new Uint8Array(4);H[0]=K>>24&255;H[1]=K>>16&255;H[2]=K>>8&255;H[3]=K&255;B.push(H);B.push(D.fullData)}}var I=B.length?{data:sg.apply(mg,w(B)),Qc:y}:null;I&&(null==u&&null!=m.dts&&(u=m.dts),y=void 0,y=x+1<l.length?(l[x+1].dts||0)-(m.dts||0):1<l.length?(m.dts||0)-(l[x-1].dts||0):9E4*(c.endTime-c.startTime),q.push({data:I.data,size:I.data.byteLength,duration:y,Ra:Math.round((m.pts||0)-(m.dts||0)), 1272flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:I.Qc?2:1,Ta:I.Qc?0:1}}))}var G=By(v);if(!G||null==u)throw new Q(2,3,3018);b.height=G.height;b.width=G.width;f={id:b.id,type:"video",codecs:"hvc1",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:9E4,duration:d,Xa:[],ia:new Uint8Array([]),pa:G.pa,ta:G.ta,xa:G.xa,data:{eb:this.g,baseMediaDecodeTime:u,Na:q},stream:b}}f&&(a.push(f),f=null)}if("audio"==e){switch(k.audio){case "aac":for(var M=[],L=null,N=t(g.Kb()),O=N.next();!O.done;O=N.next()){var X=O.value,Y=X.data;if(Y){var R= 12730;h=Qx(Y,R);if(!h)throw new Q(2,3,3018);b.audioSamplingRate=h.sampleRate;b.channelsCount=h.channelCount;null==L&&null!==X.pts&&(L=X.pts);for(;R<Y.length;){var La=Px(Y,R);if(La){var Ya=La.Bd+La.R;R+Ya<=Y.length&&M.push({data:Y.subarray(R+La.Bd,R+Ya),size:La.R,duration:1024,Ra:0,flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:2,Ta:0}});R+=Ya}else R++}}}if(!h||null==L){if(!g.fc().length)throw new Q(2,3,3018);L=9E4*c.startTime;var pb=Gc("audio",b.codecs.split(","));if(!pb||!b.channelsCount||!b.audioSamplingRate)throw new Q(2,
12743,3018);h={sampleRate:b.audioSamplingRate,channelCount:b.channelsCount,ja:pb};var Ob=Sx(pb,b.channelsCount);if(!Ob)throw new Q(2,3,3018);var xb=L+9E4*(c.endTime-c.startTime);for(g=L;g<xb;)M.push({data:Ob,size:Ob.byteLength,duration:1024,Ra:0,flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:2,Ta:0}}),g+=1024/h.sampleRate*9E4}var Fa=h.sampleRate;g=L/9E4*Fa;f={id:b.id,type:"audio",codecs:h.ja,encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Fa,duration:d,Xa:[],ia:new Uint8Array([]),pa:new Uint8Array([]),ta:0,xa:0, 1275data:{eb:this.g,baseMediaDecodeTime:g,Na:M},stream:b};break;case "ac3":c=[];h=0;M=new Uint8Array([]);Fa=null;R=t(g.Kb());for(var Za=R.next();!Za.done;Za=R.next()){var qb=Za.value,Pb=qb.data;null==Fa&&null!==qb.pts&&(Fa=qb.pts);for(g=0;g<Pb.length;){var Qb=ty(Pb,g);Qb?(b.audioSamplingRate=Qb.sampleRate,b.channelsCount=Qb.channelCount,h=Qb.sampleRate,M=Qb.ia,c.push({data:Pb.subarray(g,g+Qb.R),size:Qb.R,duration:1536,Ra:0,flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:2,Ta:0}}),g+=Qb.R):g++}}if(0==h||0==M.byteLength|| 1276null==Fa)throw new Q(2,3,3018);g=Fa/9E4*h;f={id:b.id,type:"audio",codecs:"ac-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h,duration:d,Xa:[],ia:M,pa:new Uint8Array([]),ta:0,xa:0,data:{eb:this.g,baseMediaDecodeTime:g,Na:c},stream:b};break;case "ec3":c=[];h=0;L=new Uint8Array([]);Fa=null;for(var db=t(g.Kb()),zd=db.next();!zd.done;zd=db.next()){var Wc=zd.value,Ad=Wc.data;null==Fa&&null!==Wc.pts&&(Fa=Wc.pts);for(g=0;g<Ad.length;){var mc=wy(Ad,g);mc?(b.audioSamplingRate=mc.sampleRate,b.channelsCount= 1277mc.channelCount,h=mc.sampleRate,L=mc.ia,c.push({data:Ad.subarray(g,g+mc.R),size:mc.R,duration:1536,Ra:0,flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:2,Ta:0}}),g+=mc.R):g++}}if(0==h||0==L.byteLength||null==Fa)throw new Q(2,3,3018);g=Fa/9E4*h;f={id:b.id,type:"audio",codecs:"ec-3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:h,duration:d,Xa:[],ia:L,pa:new Uint8Array([]),ta:0,xa:0,data:{eb:this.g,baseMediaDecodeTime:g,Na:c},stream:b};break;case "mp3":c=[];var Bd;h=null;for(var oh=t(g.Kb()),ze=oh.next();!ze.done;ze= 1278oh.next()){var Cd=ze.value,wc=Cd.data;if(wc)for(null==h&&null!==Cd.pts&&(h=Cd.pts),g=0;g<wc.length;){var Mc=Gy(wc,g);Mc?(Bd||(Bd=Mc),g+Mc.R<=wc.length&&c.push({data:wc.subarray(g,g+Mc.R),size:Mc.R,duration:1152,Ra:0,flags:{Sa:0,Ka:0,Ja:0,Ha:0,Ia:2,Ta:0}}),g+=Mc.R):g++}}if(!Bd||null==h)throw new Q(2,3,3018);var Gf=Bd.sampleRate;g=h/9E4*Gf;f={id:b.id,type:"audio",codecs:"mp3",encrypted:b.encrypted&&0<b.drmInfos.length,timescale:Gf,duration:d,Xa:[],ia:new Uint8Array([]),pa:new Uint8Array([]),ta:0,xa:0, 1279data:{eb:this.g,baseMediaDecodeTime:g,Na:c},stream:b}}f&&a.push(f)}}catch(Hf){return Hf&&3023==Hf.code?Promise.resolve(new Uint8Array([])):Promise.reject(Hf)}if(!a.length)return Promise.reject(new Q(2,3,3018));a=new Tx(a);this.i.has(b.id)?d=this.i.get(b.id):(d=Zx(a),this.i.set(b.id,d));b=py(a);this.g++;b=sg(d,b);return Promise.resolve(b)};P("shaka.transmuxer.TsTransmuxer",Py);Py.prototype.transmux=Py.prototype.transmux;Py.prototype.getOriginalMimeType=Py.prototype.getOriginalMimeType; 1280Py.prototype.convertCodecs=Py.prototype.convertCodecs;Py.prototype.isSupported=Py.prototype.isSupported;Py.prototype.destroy=Py.prototype.destroy;var Qy=["aac","ac-3","ec-3","mp3"],Ry=["avc","hevc"];cc("video/mp2t",function(){return new Py("video/mp2t")},gc);/* 1281 @license 1282 EME Encryption Scheme Polyfill 1283 Copyright 2019 Google LLC 1284 SPDX-License-Identifier: Apache-2.0 1285*/ 1286function Sy(){}var Ty;function Uy(){Ty?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Ty=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=Vy):console.debug("EmeEncryptionSchemePolyfill: EME not found")} 1287function Vy(a,b){var c=this,d;return J(function(e){if(1==e.g)return console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess'),C(e,Ty.call(c,a,b),2);d=e.h;if(Wy(d))return console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Ty,e.return(d);console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support.");navigator.requestMediaKeySystemAccess=Xy;return e.return(Xy.call(c, 1288a,b))})} 1289function Xy(a,b){var c=this,d,e,f,g,h,k,l,m,n,q;return J(function(p){if(1==p.g){console.assert(c==navigator,'bad "this" for requestMediaKeySystemAccess');d=Yy(a);e=[];f=t(b);for(g=f.next();!g.done;g=f.next())h=g.value,k=Zy(h.videoCapabilities,d),l=Zy(h.audioCapabilities,d),h.videoCapabilities&&h.videoCapabilities.length&&!k.length||h.audioCapabilities&&h.audioCapabilities.length&&!l.length||(m=Object.assign({},h),m.videoCapabilities=k,m.audioCapabilities=l,e.push(m));if(!e.length)throw n=Error("Unsupported keySystem or supportedConfigurations."), 1290n.name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n;return C(p,Ty.call(c,a,e),2)}q=p.h;return p.return(new $y(q,d))})}function Zy(a,b){return a?a.filter(function(c){return!c.encryptionScheme||c.encryptionScheme==b}):a}P("EmeEncryptionSchemePolyfill",Sy);Sy.install=Uy;function az(){}var bz; 1291function cz(){bz?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(bz=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=dz):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")} 1292function dz(a){var b=this,c,d,e;return J(function(f){switch(f.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),C(f,bz.call(b,a),2);case 2:c=f.h;if(!a.keySystemConfiguration)return f.return(c);if((d=c.keySystemAccess)&&Wy(d))return console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=bz,f.return(c);console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."); 1293navigator.mediaCapabilities.decodingInfo=ez;if(d){f.A(3);break}e=c;return C(f,fz(a),4);case 4:return e.keySystemAccess=f.h,f.return(c);case 3:return f.return(ez.call(b,a))}})} 1294function ez(a){var b=this,c,d,e,f,g,h,k,l;return J(function(m){switch(m.g){case 1:return console.assert(b==navigator.mediaCapabilities,'bad "this" for decodingInfo'),c=null,a.keySystemConfiguration&&(d=a.keySystemConfiguration,e=d.keySystem,f=d.audio&&d.audio.encryptionScheme,g=d.video&&d.video.encryptionScheme,c=Yy(e),h={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:a}
1294,f&&f!=c||g&&g!=c)?m.return(h):C(m,bz.call(b,a),2);case 2:k=m.h;if(k.keySystemAccess){k.keySystemAccess= 1295new $y(k.keySystemAccess,c);m.A(3);break}if(!a.keySystemConfiguration){m.A(3);break}l=k;return C(m,fz(a),5);case 5:l.keySystemAccess=m.h;case 3:return m.return(k)}})} 1296function fz(a){var b,c;return J(function(d){if(1==d.g){var e=a.keySystemConfiguration,f=[],g=[];e.audio&&f.push({robustness:e.audio.robustness||"",contentType:a.audio.contentType});e.video&&g.push({robustness:e.video.robustness||"",contentType:a.video.contentType});e={initDataTypes:e.initDataType?[e.initDataType]:[],distinctiveIdentifier:e.distinctiveIdentifier,persistentState:e.persistentState,sessionTypes:e.sessionTypes};f.length&&(e.audioCapabilities=f);g.length&&(e.videoCapabilities=g);b=e;return C(d, 1297navigator.requestMediaKeySystemAccess(a.keySystemConfiguration.keySystem,[b]),2)}c=d.h;return d.return(c)})}P("McEncryptionSchemePolyfill",az);az.install=cz;function $y(a,b){this.h=a;this.g=b;this.keySystem=a.keySystem} 1298$y.prototype.getConfiguration=function(){var a=this.h.getConfiguration();if(a.videoCapabilities)for(var b=t(a.videoCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;if(a.audioCapabilities)for(b=t(a.audioCapabilities),c=b.next();!c.done;c=b.next())c.value.encryptionScheme=this.g;return a};$y.prototype.createMediaKeys=function(){return this.h.createMediaKeys()}; 1299function Yy(a){if(a.startsWith("com.widevine")||a.startsWith("com.microsoft")||a.startsWith("com.chromecast")||a.startsWith("com.adobe")||a.startsWith("org.w3"))return"cenc";if(a.startsWith("com.apple"))return"cbcs-1-9";console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",a,"Please contribute!");return null}function Wy(a){a=a.getConfiguration();var b=a.audioCapabilities&&a.audioCapabilities[0];return(a=a.videoCapabilities&&a.videoCapabilities[0]||b)&&void 0!==a.encryptionScheme?!0:!1} 1300function gz(){}function Mv(){Uy();cz()}P("EncryptionSchemePolyfills",gz);gz.install=Mv;"undefined"!==typeof module&&module.exports&&(module.exports=gz);}).call(exportTo,innerGlobal,innerGlobal,undefined);if(typeof exports!="undefined")for(var k in exportTo.shaka)exports[k]=exportTo.shaka[k];else if(typeof define=="function"&&define.amd)define(function(){return exportTo.shaka});else innerGlobal.shaka=exportTo.shaka})(); 1301 1302//# sourceMappingURL=shaka-player.ui.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.