PageSourceSearch

https://assets.geeksforgeeks.org/gfg-assets/_next/static/chunks/5068-5c18d008dce46e56.js

js geeksforgeeks.org collected 2026-09-24 07:57:59 UTC 122,334 bytes, 9 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5068],{60562:function(a,b,c){"use strict";c.d(b,{Au:function(){return j},G3:function(){return s},Ki:function(){return k},d3:function(){return p},hL:function(){return o},lx:function(){return r},qX:function(){return q},tm:function(){return n}});var d,e,f=c(58908),g=c.n(f),h=function(a,b){for(var c="";b--;)c+=a;return c},i=function(a){var b;return Math.ceil((b=a).toString(2).length/8)},j=function(a){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(a):a&&a.buffer instanceof ArrayBuffer},k=function(a){var b;return a instanceof Uint8Array?a:(!Array.isArray(a)&&!j(b=a)&&!(a instanceof ArrayBuffer)&&(a="number"!=typeof a||"number"==typeof a&&a!=a?0:[a]),new Uint8Array(a&&a.buffer||a,a&&a.byteOffset||0,a&&a.byteLength||0))},l=g().BigInt||Number,m=[l("0x1"),l("0x100"),l("0x10000"),l("0x1000000"),l("0x100000000"),l("0x10000000000"),l("0x1000000000000"),l("0x100000000000000"),l("0x10000000000000000")],n=(d=new Uint16Array([65484]),255===(e=new Uint8Array(d.buffer,d.byteOffset,d.byteLength))[0]||e[0],function(a,b){var c=void 0===b?{}:b,d=c.signed,e=c.le,f=void 0!==e&&e;a=k(a);var g=f?"reduce":"reduceRight",h=(a[g]?a[g]:Array.prototype[g]).call(a,function(b,c,d){var e=f?d:Math.abs(d+1-a.length);return b+l(c)*m[e]},l(0));if(void 0!==d&&d){var i=m[a.length]/l(2)-l(1);(h=l(h))>i&&(h-=i,h-=i,h-=l(2))}return Number(h)}),o=function(a,b){var c=(void 0===b?{}:b).le,d=void 0!==c&&c;("bigint"!=typeof a&&"number"!=typeof a||"number"==typeof a&&a!=a)&&(a=0),a=l(a);for(var e=i(a),f=new Uint8Array(new ArrayBuffer(e)),g=0;g<e;g++){var h=d?g:Math.abs(g+1-f.length);f[h]=Number(a/m[g]&l(255)),a<0&&(f[h]=Math.abs(~f[h]),f[h]-=0===g?1:2)}return f},p=function(a){if(!a)return"";a=Array.prototype.slice.call(a);var b=String.fromCharCode.apply(null,k(a));try{return decodeURIComponent(escape(b))}catch(c){}return b},q=function(a,b){if("string"!=typeof a&&a&&"function"==typeof a.toString&&(a=a.toString()),"string"!=typeof a)return new Uint8Array;b||(a=unescape(encodeURIComponent(a)));for(var c=new Uint8Array(a.length),d=0;d<a.length;d++)c[d]=a.charCodeAt(d);return c},r=function(){for(var a=arguments.length,b=Array(a),c=0;c<a;c++)b[c]=arguments[c];if((b=b.filter(function(a){return a&&(a.byteLength||a.length)&&"string"!=typeof a})).length<=1)return k(b[0]);var d=b.reduce(function(a,b,c){return a+(b.byteLength||b.length)},0),e=new Uint8Array(d),f=0;return b.forEach(function(a){a=k(a),e.set(a,f),f+=a.byteLength}),e},s=function(a,b,c){var d=void 0===c?{}:c,e=d.offset,f=void 0===e?0:e,g=d.mask,h=void 0===g?[]:g;a=k(a);var i=(b=k(b)).every?b.every:Array.prototype.every;return b.length&&a.length-f>=b.length&&i.call(b,function(b,c){return b===(h[c]?h[c]&a[f+c]:a[f+c])})}},92260:function(a,b,c){"use strict";c.d(b,{Hi:function(){return o},Jg:function(){return k},KL:function(){return l},"_5":function(){return m},kS:function(){return j},lA:function(){return p},p7:function(){return n},ws:function(){return i},xz:function(){return q}});var d=c(58908),e=c.n(d),f={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},g=["video","audio","text"],h=["Video","Audio","Text"],i=function(a){return a?a.replace(/avc1\.(\d+)\.(\d+)/i,function(a,b,c){var d=("00"+Number(b).toString(16)).slice(-2),e=("00"+Number(c).toString(16)).slice(-2);return"avc1."+d+"00"+e}):a},j=function(a){void 0===a&&(a="");var b=a.split(","),c=[];return b.forEach(function(a){var b;a=a.trim(),g.forEach(function(d){var e=f[d].exec(a.toLowerCase());if(e&&!(e.length<=1)){b=d;var g=a.substring(0,e[1].length),h=a.replace(g,"");c.push({type:g,details:h,mediaType:d})}}),b||c.push({type:a,details:"",mediaType:"unknown"})}),c},k=function(a,b){if(!a.mediaGroups.AUDIO||!b)return null;var c=a.mediaGroups.AUDIO[b];if(!c)return null;for(var d in c){var e=c[d];if(e.default&&e.playlists)return j(e.playlists[0].attributes.CODECS)}return null},l=function(a){return void 0===a&&(a=""),f.audio.test(a.trim().toLowerCase())}
1,m=function(a){if(a&&"string"==typeof a){var b,c=a.toLowerCase().split(",").map(function(a){return i(a.trim())}),d="video";1===c.length&&l(c[0])?d="audio":1===c.length&&(void 0===(b=c[0])&&(b=""),f.text.test(b.trim().toLowerCase()))&&(d="application");var e="mp4";return c.every(function(a){return f.mp4.test(a)})?e="mp4":c.every(function(a){return f.webm.test(a)})?e="webm":c.every(function(a){return f.ogg.test(a)})&&(e="ogg"),d+"/"+e+';codecs="'+a+'"'}},n=function(a){return void 0===a&&(a=""),e().MediaSource&&e().MediaSource.isTypeSupported&&e().MediaSource.isTypeSupported(m(a))||!1},o=function(a){return void 0===a&&(a=""),a.toLowerCase().split(",").every(function(a){a=a.trim();for(var b=0;b<h.length;b++)if(f["muxer"+h[b]].test(a))return!0;return!1})},p="mp4a.40.2",q="avc1.4d400d"},86185:function(a,b,c){"use strict";c.d(b,{Xm:function(){return D},cz:function(){return E}});var d,e=c(60562);new Uint8Array([79,112,117,115,72,101,97,100]);var f=function(a){return"string"==typeof a?(0,e.qX)(a):a},g=function(a){return Array.isArray(a)?a.map(function(a){return f(a)}):[f(a)]},h=function(a){a=(0,e.Ki)(a);for(var b=[],c=0;a.length>c;){var f=a[c],g=0,h=0,i=a[++h];for(h++;128&i;)g=(127&i)<<7,i=a[h],h++;g+=127&i;for(var j=0;j<d.length;j++){var k=d[j],l=k.id,m=k.parser;if(f===l){b.push(m(a.subarray(h,h+g)));break}}c+=g+h}return b};d=[{id:3,parser:function(a){var b={tag:3,id:a[0]<<8|a[1],flags:a[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&b.flags&&(b.dependsOnEsId=a[b.size]<<8|a[b.size+1],b.size+=2),64&b.flags){var c=a[b.size];b.url=(0,e.d3)(a.subarray(b.size+1,b.size+1+c)),b.size+=c}return 32&b.flags&&(b.ocrEsId=a[b.size]<<8|a[b.size+1],b.size+=2),b.descriptors=h(a.subarray(b.size))||[],b}},{id:4,parser:function(a){return{tag:4,oti:a[0],streamType:a[1],bufferSize:a[2]<<16|a[3]<<8|a[4],maxBitrate:a[5]<<24|a[6]<<16|a[7]<<8|a[8],avgBitrate:a[9]<<24|a[10]<<16|a[11]<<8|a[12],descriptors:h(a.subarray(13))}}},{id:5,parser:function(a){return{tag:5,bytes:a}}},{id:6,parser:function(a){return{tag:6,bytes:a}}}];var i=function a(b,c,d){void 0===d&&(d=!1),c=g(c),b=(0,e.Ki)(b);var f=[];if(!c.length)return f;for(var h=0;h<b.length;){var i=(b[h]<<24|b[h+1]<<16|b[h+2]<<8|b[h+3])>>>0,j=b.subarray(h+4,h+8);if(0===i)break;var k=h+i;if(k>b.length){if(d)break;k=b.length}var l=b.subarray(h+8,k);(0,e.G3)(j,c[0])&&(1===c.length?f.push(l):f.push.apply(f,a(l,c.slice(1),d))),h=k}return f},j=function(a,b){if(!(b=f(b)).length)return a.subarray(a.length);for(var c=0;c<a.length;){if(bytesMatch(a.subarray(c,c+b.length),b)){var d=(a[c-4]<<24|a[c-3]<<16|a[c-2]<<8|a[c-1])>>>0,e=d>1?c+d:a.byteLength;return a.subarray(c+4,e)}c++}return a.subarray(a.length)},k=function(a,b,c){void 0===b&&(b=4),void 0===c&&(c=function(a){return bytesToNumber(a)});var d=[];if(!a||!a.length)return d;for(var e=bytesToNumber(a.subarray(4,8)),f=8;e;f+=b,e--)d.push(c(a.subarray(f,f+b)));return d},l={EBML:(0,e.Ki)([26,69,223,163]),DocType:(0,e.Ki)([66,130]),Segment:(0,e.Ki)([24,83,128,103]),SegmentInfo:(0,e.Ki)([21,73,169,102]),Tracks:(0,e.Ki)([22,84,174,107]),Track:(0,e.Ki)([174]),TrackNumber:(0,e.Ki)([215]),DefaultDuration:(0,e.Ki)([35,227,131]),TrackEntry:(0,e.Ki)([174]),TrackType:(0,e.Ki)([131]),FlagDefault:(0,e.Ki)([136]),CodecID:(0,e.Ki)([134]),CodecPrivate:(0,e.Ki)([99,162]),VideoTrack:(0,e.Ki)([224]),AudioTrack:(0,e.Ki)([225]),Cluster:(0,e.Ki)([31,67,182,117]),Timestamp:(0,e.Ki)([231]),TimestampScale:(0,e.Ki)([42,215,177]),BlockGroup:(0,e.Ki)([160]),BlockDuration:(0,e.Ki)([155]),Block:(0,e.Ki)([161]),SimpleBlock:(0,e.Ki)([163])},m=[128,64,32,16,8,4,2,1],n=function(a){for(var b=1,c=0;c<m.length&&!(a&m[c]);c++)b++;return b},o=function(a,b,c,d){void 0===c&&(c=!0),void 0===d&&(d=!1);var f=n(a[b]),g=a.subarray(b,b+f);return c&&(g=Array.prototype.slice.call(a,b,b+f),g[0]^=m[f-1]),{length:f,value:(0,e.tm)(g,{signed:d}),bytes:g}},p=function a(b){return"string"==typeof b?b.match(/.{1,2}/g).map(function(b){return a(b)}):"number"==typeof b?(0,e.hL)(b):b},q=function a(b,c,d){if(d>=c.length)return c.length;var f=o(c,d,!1);if((0,e.G3)(b.bytes,f.bytes))return d;var g=o(c,d+f.length);return a(b,c,d+g.length+g.value+f.length)},r=function a(b,c){c=Array.isArray(d=c)?d.map(function(a){return p(a)}):[p(d)],b=(0,e.Ki)(b);var d,f=[];if(!c.length)return f;for(var g=0;g<b.length;){var h=o(b,g,!1),i=o(b,g+h.length),j=g+h.length+i.length;127===i.value&&(i.value=q(h,b,j),i.value!==b.length&&(i.value-=j));var k=j+i.value>b.length?b.length:j+i.value,l=b.subarray(j,k);(0,e.G3)(c[0],h.bytes)&&(1===c.length?f.push(l):f=f.concat(a(l,c.slice(1))));var m=h.length+i.length+l.length;g+=m}return f},s=function(a){for(var b=0,c={};b<a.length;){var d=127&a[b],e=a[b+1],f=void 0;f=1===e?a[b+2]:a.subarray(b+2,b+2+e),1===d?c.profile=f:2===d?c.level=f:3===d?c.bitDepth=f:4===d?c.chromaSubsampling=f:c[d]=f,b+=2+e}return c},t=c(68925),u=(0,e.Ki)([0,0,0,1]),v=(0,e.Ki)([0,0,1]),w=(0,e.Ki)([0,0,3]),x=function(a){for(var b=[],c=1;c<a.length-2;)(0,e.G3)(a.subarray(c,c+3),w)&&(b.push(c+2),c++),c++;if(0===b.length)return a;var d=a.length-b.length,f=new Uint8Array(d),g=0;for(c=0;c<d;g++,c++)g===b[0]&&(g++,b.shift()),f[c]=a[g];return f},y=function(a,b,c,d){void 0===d&&(d=1/0),a=(0,e.Ki)(a),c=[].concat(c);for(var f,g=0,h=0;g<a.length&&(h<d||f);){var i=void 0;if((0,e.G3)(a.subarray(g),u)?i=4:(0,e.G3)(a.subarray(g),v)&&(i=3),!i){g++;continue}if(h++,f)return x(a.subarray(f,g));var j=void 0;"h264"===b?j=31&a[g+i]:"h265"===b&&(j=a[g+i]>>1&63),-1!==c.indexOf(j)&&(f=g+i),g+=i+("h264"===b?1:2)}return a.subarray(0,0)},z={webm:(0,e.Ki)([119,101,98,109]),matroska:(0,e.Ki)([109,97,116,114,111,115,107,97]),flac:(0,e.Ki)([102,76,97,67]),ogg:(0,e.Ki)([79,103,103,83]),ac3:(0,e.Ki)([11,119]),riff:(0,e.Ki)([82,73,70,70]),avi:(0,e.Ki)([65,86,73]),wav:(0,e.Ki)([87,65,86,69]),"3gp":(0,e.Ki)([102,116,121,112,51,103]),mp4:(0,e.Ki)([102,116,121,112]),fmp4:(0,e.Ki)([115,116,121,112]),mov:(0,e.Ki)([102,116,121,112,113,116]),moov:(0,e.Ki)([109,111,111,118]),moof:(0,e.Ki)([109,111,111,102])},A={aac:function(a){var b=(0,t.c)(a);return(0,e.G3)(a,[255,16],{offset:b,mask:[255,22]})},mp3:function(a){var b=(0,t.c)(a);return(0,e.G3)(a,[255,2],{offset:b,mask:[255,6]})},webm:function(a){var b=r(a,[l.EBML,l.DocType])[0];return(0,e.G3)(b,z.webm)},mkv:function(a){var b=r(a,[l.EBML,l.DocType])[0];return(0,e.G3)(b,z.matroska)}
1,mp4:function(a){return!(A["3gp"](a)||A.mov(a))&&(!!((0,e.G3)(a,z.mp4,{offset:4})||(0,e.G3)(a,z.fmp4,{offset:4})||(0,e.G3)(a,z.moof,{offset:4})||(0,e.G3)(a,z.moov,{offset:4}))||void 0)},mov:function(a){return(0,e.G3)(a,z.mov,{offset:4})},"3gp":function(a){return(0,e.G3)(a,z["3gp"],{offset:4})},ac3:function(a){var b=(0,t.c)(a);return(0,e.G3)(a,z.ac3,{offset:b})},ts:function(a){if(a.length<189&&a.length>=1)return 71===a[0];for(var b=0;b+188<a.length&&b<188;){if(71===a[b]&&71===a[b+188])return!0;b+=1}return!1},flac:function(a){var b=(0,t.c)(a);return(0,e.G3)(a,z.flac,{offset:b})},ogg:function(a){return(0,e.G3)(a,z.ogg)},avi:function(a){return(0,e.G3)(a,z.riff)&&(0,e.G3)(a,z.avi,{offset:8})},wav:function(a){return(0,e.G3)(a,z.riff)&&(0,e.G3)(a,z.wav,{offset:8})},h264:function(a){var b,c,d;return y(b=a,"h264",7,3).length},h265:function(a){var b,c,d;return(c=[32,33],y(b=a,"h265",c,3)).length}},B=Object.keys(A).filter(function(a){return"ts"!==a&&"h264"!==a&&"h265"!==a}).concat(["ts","h264","h265"]);B.forEach(function(a){var b=A[a];A[a]=function(a){return b((0,e.Ki)(a))}});var C=A,D=function(a){a=(0,e.Ki)(a);for(var b=0;b<B.length;b++){var c=B[b];if(C[c](a))return c}return""},E=function(a){return i(a,["moof"]).length>0}},36722:function(a,b,c){"use strict";c.d(b,{Z:function(){return g}});var d=c(58908),e=c.n(d),f=c(48764).lW;function g(a){for(var b,c=(b=a,e().atob?e().atob(b):f.from(b,"base64").toString("binary")),d=new Uint8Array(c.length),g=0;g<c.length;g++)d[g]=c.charCodeAt(g);return d}},68925:function(a,b,c){"use strict";c.d(b,{c:function(){return g}});var d=c(60562),e=(0,d.Ki)([73,68,51]),f=function(a,b){void 0===b&&(b=0);var c=(a=(0,d.Ki)(a))[b+5],e=a[b+6]<<21|a[b+7]<<14|a[b+8]<<7|a[b+9];return(16&c)>>4?e+20:e+10},g=function a(b,c){return(void 0===c&&(c=0),(b=(0,d.Ki)(b)).length-c<10||!(0,d.G3)(b,e,{offset:c}))?c:(c+=f(b,c),a(b,c))}},8485:function(a,b,c){"use strict";c.d(b,{t:function(){return f}});var d=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,e=/^application\/dash\+xml/i,f=function(a){return d.test(a)?"hls":e.test(a)?"dash":"application/vnd.videojs.vhs+json"===a?"vhs-json":null}},80779:function(a,b,c){"use strict";var d=c(49945),e=c.n(d),f=c(58908),g=c.n(f),h="http://example.com",i=function(a,b){if(/^[a-z]+:/i.test(b))return b;/^data:/.test(a)&&(a=g().location&&g().location.href||"");var c="function"==typeof g().URL,d=/^\/\//.test(a),f=!g().location&&!/\/\//i.test(a);if(c?a=new(g()).URL(a,g().location||h):/\/\//i.test(a)||(a=e().buildAbsoluteURL(g().location&&g().location.href||"",a)),c){var i=new URL(b,a);return f?i.href.slice(h.length):d?i.href.slice(i.protocol.length):i.href}return e().buildAbsoluteURL(a,b)};b.Z=i},13490:function(a,b,c){"use strict";var d=c(58908),e=function(a,b){return void 0===b&&(b=!1),function(c,e,g){if(c){a(c);return}if(e.statusCode>=400&&e.statusCode<=599){var h=g;if(b){if(d.TextDecoder){var i=f(e.headers&&e.headers["content-type"]);try{h=new TextDecoder(i).decode(g)}catch(j){}}else h=String.fromCharCode.apply(null,new Uint8Array(g))}a({cause:h});return}a(null,g)}};function f(a){return void 0===a&&(a=""),a.toLowerCase().split(";").reduce(function(a,b){var c=b.split("="),d=c[0],e=c[1];return"charset"===d.trim()?e.trim():a},"utf-8")}a.exports=e},9603:function(a,b,c){"use strict";var d=c(58908),e=c(10434),f=c(27376);i.httpHandler=c(13490);/**
2 * @license
3 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
4 * Copyright (c) 2014 David Björklund
5 * Available under the MIT license
6 * <https://github.com/kesla/parse-headers/blob/master/LICENCE>
7 */ var g=function(a){var b={};return a&&a.trim().split("\n").forEach(function(a){var c=a.indexOf(":"),d=a.slice(0,c).trim().toLowerCase(),e=a.slice(c+1).trim();void 0===b[d]?b[d]=e:Array.isArray(b[d])?b[d].push(e):b[d]=[b[d],e]}),b};function h(a,b,c){var d=a;return f(b)?(c=b,"string"==typeof a&&(d={uri:a})):d=e({},b,{uri:a}),d.callback=c,d}function i(a,b,c){return j(b=h(a,b,c))}function j(a){if(void 0===a.callback)throw Error("callback argument missing");var b,c,d,e=!1,f=function(b,c,d){e||(e=!0,a.callback(b,c,d))};function h(a){return clearTimeout(d),a instanceof Error||(a=Error(""+(a||"Unknown XMLHttpRequest Error"))),a.statusCode=0,f(a,s)}function j(){if(!c){clearTimeout(d);var b,e=s,h=null;return 0!==(b=a.useXDR&& void 0===l.status?200:1223===l.status?204:l.status)?(e={body:function(){var a=void 0;if(a=l.response?l.response:l.responseText||k(l),r)try{a=JSON.parse(a)}catch(b){}return a}(),statusCode:b,method:n,headers:{},url:m,rawRequest:l},l.getAllResponseHeaders&&(e.headers=g(l.getAllResponseHeaders()))):h=Error("Internal XMLHttpRequest Error"),f(h,e,e.body)}}var l=a.xhr||null;l||(l=a.cors||a.useXDR?new i.XDomainRequest:new i.XMLHttpRequest);var m=l.url=a.uri||a.url,n=l.method=a.method||"GET",o=a.body||a.data,p=l.headers=a.headers||{},q=!!a.sync,r=!1,s={body:void 0,headers:{},statusCode:0,method:n,url:m,rawRequest:l};if("json"in a&& !1!==a.json&&(r=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==n&&"HEAD"!==n&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),o=JSON.stringify(!0===a.json?o:a.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(j,0)},l.onload=j,l.onerror=h,l.onprogress=function(){},l.onabort=function(){c=!0},l.ontimeout=h,l.open(n,m,!q,a.username,a.password),q||(l.withCredentials=!!a.withCredentials),!q&&a.timeout>0&&(d=setTimeout(function(){if(!c){c=!0,l.abort("timeout");var a=Error("XMLHttpRequest timeout");
vendor: 5,173 bytes, line 7
7a.code="ETIMEDOUT",h(a)}},a.timeout)),l.setRequestHeader)for(b in p)p.hasOwnProperty(b)&&l.setRequestHeader(b,p[b]);else if(a.headers&&!function(a){for(var b in a)if(a.hasOwnProperty(b))return!1;return!0}(a.headers))throw Error("Headers cannot be set on an XDomainRequest object");return"responseType"in a&&(l.responseType=a.responseType),"beforeSend"in a&&"function"==typeof a.beforeSend&&a.beforeSend(l),l.send(o||null),l}function k(a){try{if("document"===a.responseType)return a.responseXML;var b=a.responseXML&&"parsererror"===a.responseXML.documentElement.nodeName;if(""===a.responseType&&!b)return a.responseXML}catch(c){}return null}a.exports=i,a.exports.default=i,i.XMLHttpRequest=d.XMLHttpRequest||function(){},i.XDomainRequest="withCredentials"in new i.XMLHttpRequest?i.XMLHttpRequest:d.XDomainRequest,function(a,b){for(var c=0;c<a.length;c++)b(a[c])}(["get","put","post","patch","head","delete"],function(a){i["delete"===a?"del":a]=function(b,c,d){return(c=h(b,c,d)).method=a.toUpperCase(),j(c)}})},72167:function(a,b){"use strict";function c(a,b){return void 0===b&&(b=Object),b&&"function"==typeof b.freeze?b.freeze(a):a}var d=c({HTML:"text/html",isHTML:function(a){return a===d.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),e=c({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(a){return a===e.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});b.find=function(a,b,c){if(void 0===c&&(c=Array.prototype),a&&"function"==typeof c.find)return c.find.call(a,b);for(var d=0;d<a.length;d++)if(Object.prototype.hasOwnProperty.call(a,d)){var e=a[d];if(b.call(void 0,e,d,a))return e}},b.freeze=c,b.MIME_TYPE=d,b.NAMESPACE=e},86129:function(a,b,c){var d=c(72167),e=c(41146),f=c(31045),g=c(76925),h=e.DOMImplementation,i=d.NAMESPACE,j=g.ParseError,k=g.XMLReader;function l(a){this.options=a||{locator:{}}}function m(){this.cdata=!1}function n(a,b){b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber}function o(a){if(a)return"\n@"+(a.systemId||"")+"#[line:"+a.lineNumber+",col:"+a.columnNumber+"]"}function p(a,b,c){return"string"==typeof a?a.substr(b,c):a.length>=b+c||b?new java.lang.String(a,b,c)+"":a}function q(a,b){a.currentElement?a.currentElement.appendChild(b):a.doc.appendChild(b)}l.prototype.parseFromString=function(a,b){var c=this.options,d=new k,e=c.domBuilder||new m,g=c.errorHandler,h=c.locator,j=c.xmlns||{},l=/\/x?html?$/.test(b),n=l?f.HTML_ENTITIES:f.XML_ENTITIES;return h&&e.setDocumentLocator(h),d.errorHandler=function a(b,c,d){if(!b){if(c instanceof m)return c;b=c}var e={},f=b instanceof Function;function g(a){var c=b[a];!c&&f&&(c=2==b.length?function(c){b(a,c)}:b),e[a]=c&&function(b){c("[xmldom "+a+"]	"+b+o(d))}||function(){}}return d=d||{},g("warning"),g("error"),g("fatalError"),e}(g,e,h),d.domBuilder=c.domBuilder||e,l&&(j[""]=i.HTML),j.xml=j.xml||i.XML,a&&"string"==typeof a?d.parse(a,j,n):d.errorHandler.error("invalid doc source"),e.doc},m.prototype={startDocument:function(){this.doc=new h().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(a,b,c,d){var e=this.doc,f=e.createElementNS(a,c||b),g=d.length;q(this,f),this.currentElement=f,this.locator&&n(this.locator,f);for(var h=0;h<g;h++){var a=d.getURI(h),i=d.getValue(h),c=d.getQName(h),j=e.createAttributeNS(a,c);this.locator&&n(d.getLocator(h),j),j.value=j.nodeValue=i,f.setAttributeNode(j)}},endElement:function(a,b,c){var d=this.currentElement;d.tagName,this.currentElement=d.parentNode},startPrefixMapping:function(a,b){},endPrefixMapping:function(a){},processingInstruction:function(a,b){var c=this.doc.createProcessingInstruction(a,b);this.locator&&n(this.locator,c),q(this,c)},ignorableWhitespace:function(a,b,c){},characters:function(a,b,c){if(a=p.apply(this,arguments)){if(this.cdata)var d=this.doc.createCDATASection(a);else var d=this.doc.createTextNode(a);this.currentElement?this.currentElement.appendChild(d):/^\s*$/.test(a)&&this.doc.appendChild(d),this.locator&&n(this.locator,d)}},skippedEntity:function(a){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(a){(this.locator=a)&&(a.lineNumber=0)},comment:function(a,b,c){a=p.apply(this,arguments);var d=this.doc.createComment(a);this.locator&&n(this.locator,d),q(this,d)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(a,b,c){var d=this.doc.implementation;if(d&&d.createDocumentType){var e=d.createDocumentType(a,b,c);this.locator&&n(this.locator,e),q(this,e),this.doc.doctype=e}},warning:function(a){console.warn("[xmldom warning]	"+a,o(this.locator))},error:function(a){console.error("[xmldom error]	"+a,o(this.locator))},fatalError:function(a){throw new j(a,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(a){m.prototype[a]=function(){return null}}),b.DOMParser=l,e.DOMImplementation,e.XMLSerializer},41146:function(a,b,c){var d=c(72167),e=d.find,f=d.NAMESPACE;
7function g(a){return""!==a}function h(a,b){return a.hasOwnProperty(b)||(a[b]=!0),a}function i(a){var b;return a?Object.keys(((b=a)?b.split(/[\t\n\f\r ]+/).filter(g):[]).reduce(h,{})):[]}function j(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}function k(a,b){var c=a.prototype;if(!(c instanceof b)){function d(){}d.prototype=b.prototype,j(c,d=new d),a.prototype=c=d}c.constructor!=a&&("function"!=typeof a&&console.error("unknown Class:"+a),c.constructor=a)}var l={},m=l.ELEMENT_NODE=1,n=l.ATTRIBUTE_NODE=2,o=l.TEXT_NODE=3,p=l.CDATA_SECTION_NODE=4,q=l.ENTITY_REFERENCE_NODE=5,r=l.ENTITY_NODE=6,s=l.PROCESSING_INSTRUCTION_NODE=7,t=l.COMMENT_NODE=8,u=l.DOCUMENT_NODE=9,v=l.DOCUMENT_TYPE_NODE=10,w=l.DOCUMENT_FRAGMENT_NODE=11,x=l.NOTATION_NODE=12,y={},z={};y.INDEX_SIZE_ERR=(z[1]="Index size error",1),y.DOMSTRING_SIZE_ERR=(z[2]="DOMString size error",2);var A=y.HIERARCHY_REQUEST_ERR=(z[3]="Hierarchy request error",3);y.WRONG_DOCUMENT_ERR=(z[4]="Wrong document",4),y.INVALID_CHARACTER_ERR=(z[5]="Invalid character",5),y.NO_DATA_ALLOWED_ERR=(z[6]="No data allowed",6),y.NO_MODIFICATION_ALLOWED_ERR=(z[7]="No modification allowed",7);var B=y.NOT_FOUND_ERR=(z[8]="Not found",8);y.NOT_SUPPORTED_ERR=(z[9]="Not supported",9);var C=y.INUSE_ATTRIBUTE_ERR=(z[10]="Attribute in use",10);function D(a,b){if(b instanceof Error)var c=b;else c=this,Error.call(this,z[a]),this.message=z[a],Error.captureStackTrace&&Error.captureStackTrace(this,D);return c.code=a,b&&(this.message=this.message+": "+b),c}function E(){}function F(a,b){this._node=a,this._refresh=b,G(this)}function G(a){var b=a._node._inc||a._node.ownerDocument._inc;if(a._inc!=b){var c=a._refresh(a._node);at(a,"length",c.length),j(c,a),a._inc=b}}function H(){}function I(a,b){for(var c=a.length;c--;)if(a[c]===b)return c}function J(a,b,c,d){if(d?b[I(b,d)]=c:b[b.length++]=c,a){c.ownerElement=a;var e=a.ownerDocument;e&&(d&&R(e,a,d),Q(e,a,c))}}function K(a,b,c){var d=I(b,c);if(d>=0){for(var e=b.length-1;d<e;)b[d]=b[++d];if(b.length=e,a){var f=a.ownerDocument;f&&(R(f,a,c),c.ownerElement=null)}}else throw new D(B,Error(a.tagName+"@"+c))}function L(){}function M(){}function N(a){return"<"==a&&"&lt;"||">"==a&&"&gt;"||"&"==a&&"&amp;"||'"'==a&&"&quot;"||"&#"+a.charCodeAt()+";"}function O(a,b){if(b(a))return!0;if(a=a.firstChild)do if(O(a,b))return!0;while(a=a.nextSibling)}function P(){this.ownerDocument=this}function Q(a,b,c){a&&a._inc++,c.namespaceURI===f.XMLNS&&(b._nsMap[c.prefix?c.localName:""]=c.value)}function R(a,b,c,d){a&&a._inc++,c.namespaceURI===f.XMLNS&&delete b._nsMap[c.prefix?c.localName:""]}function S(a,b,c){if(a&&a._inc){a._inc++;var d=b.childNodes;if(c)d[d.length++]=c;else{for(var e=b.firstChild,f=0;e;)d[f++]=e,e=e.nextSibling;d.length=f,delete d[d.length]}}}function T(a,b){var c=b.previousSibling,d=b.nextSibling;return c?c.nextSibling=d:a.firstChild=d,d?d.previousSibling=c:a.lastChild=c,b.parentNode=null,b.previousSibling=null,b.nextSibling=null,S(a.ownerDocument,a),b}function U(a){return a&&a.nodeType===M.DOCUMENT_TYPE_NODE}function V(a){return a&&a.nodeType===M.ELEMENT_NODE}function W(a){return a&&a.nodeType===M.TEXT_NODE}function X(a,b){var c=a.childNodes||[];if(e(c,V)||U(b))return!1;var d=e(c,U);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function Y(a,b){var c=a.childNodes||[];if(e(c,function(a){return V(a)&&a!==b}))return!1;var d=e(c,U);return!(b&&d&&c.indexOf(d)>c.indexOf(b))}function Z(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===M.DOCUMENT_FRAGMENT_NODE){var g=f.filter(V);if(g.length>1||e(f,W))throw new D(A,"More than one element or text in fragment");if(1===g.length&&!X(a,c))throw new D(A,"Element in fragment can not be inserted before doctype")}if(V(b)&&!X(a,c))throw new D(A,"Only one element can be added and only after doctype");if(U(b)){if(e(d,U))throw new D(A,"Only one doctype is allowed");var h=e(d,V);if(c&&d.indexOf(h)<d.indexOf(c))throw new D(A,"Doctype can only be inserted before an element");if(!c&&h)throw new D(A,"Doctype can not be appended since element is present")}}function $(a,b,c){var d=a.childNodes||[],f=b.childNodes||[];if(b.nodeType===M.DOCUMENT_FRAGMENT_NODE){var g=f.filter(V);if(g.length>1||e(f,W))throw new D(A,"More than one element or text in fragment");
7if(1===g.length&&!Y(a,c))throw new D(A,"Element in fragment can not be inserted before doctype")}if(V(b)&&!Y(a,c))throw new D(A,"Only one element can be added and only after doctype");if(U(b)){if(e(d,function(a){return U(a)&&a!==c}))throw new D(A,"Only one doctype is allowed");var h=e(d,V);if(c&&d.indexOf(h)<d.indexOf(c))throw new D(A,"Doctype can only be inserted before an element")}}function _(a,b,c,d){!function(a,b,c){var d,e;if(!(d=a)||d.nodeType!==M.DOCUMENT_NODE&&d.nodeType!==M.DOCUMENT_FRAGMENT_NODE&&d.nodeType!==M.ELEMENT_NODE)throw new D(A,"Unexpected parent node type "+a.nodeType);if(c&&c.parentNode!==a)throw new D(B,"child not in parent");if(!((e=b)&&(V(e)||W(e)||U(e)||e.nodeType===M.DOCUMENT_FRAGMENT_NODE||e.nodeType===M.COMMENT_NODE||e.nodeType===M.PROCESSING_INSTRUCTION_NODE))||U(b)&&a.nodeType!==M.DOCUMENT_NODE)throw new D(A,"Unexpected node type "+b.nodeType+" for parent node type "+a.nodeType)}(a,b,c),a.nodeType===M.DOCUMENT_NODE&&(d||Z)(a,b,c);var e=b.parentNode;if(e&&e.removeChild(b),b.nodeType===w){var f=b.firstChild;if(null==f)return b;var g=b.lastChild}else f=g=b;var h=c?c.previousSibling:a.lastChild;f.previousSibling=h,g.nextSibling=c,h?h.nextSibling=f:a.firstChild=f,null==c?a.lastChild=g:c.previousSibling=g;do f.parentNode=a;while(f!==g&&(f=f.nextSibling));return S(a.ownerDocument||a,a),b.nodeType==w&&(b.firstChild=b.lastChild=null),b}function aa(){this._nsMap={}}function ab(){}function ac(){}function ad(){}function ae(){}function af(){}function ag(){}function ah(){}function ai(){}function aj(){}function ak(){}function al(){}function am(){}function an(a,b){var c=[],d=9==this.nodeType&&this.documentElement||this,e=d.prefix,f=d.namespaceURI;if(f&&null==e){var e=d.lookupPrefix(f);if(null==e)var g=[{namespace:f,prefix:null}]}return aq(this,c,a,b,g),c.join("")}function ao(a,b,c){var d=a.prefix||"",e=a.namespaceURI;if(!e||"xml"===d&&e===f.XML||e===f.XMLNS)return!1;for(var g=c.length;g--;){var h=c[g];if(h.prefix===d)return h.namespace!==e}return!0}
vendor: 12,190 bytes, line 7
7function ap(a,b,c){a.push(" ",b,'="',c.replace(/[<&"]/g,N),'"')}function aq(a,b,c,d,e){if(e||(e=[]),d){if(!(a=d(a)))return;if("string"==typeof a){b.push(a);return}}switch(a.nodeType){case m:var g,h=a.attributes,i=h.length,j=a.firstChild,k=a.tagName;c=f.isHTML(a.namespaceURI)||c;var l=k;if(!c&&!a.prefix&&a.namespaceURI){for(var r=0;r<h.length;r++)if("xmlns"===h.item(r).name){g=h.item(r).value;break}if(!g)for(var x=e.length-1;x>=0;x--){var y=e[x];if(""===y.prefix&&y.namespace===a.namespaceURI){g=y.namespace;break}}if(g!==a.namespaceURI)for(var x=e.length-1;x>=0;x--){var y=e[x];if(y.namespace===a.namespaceURI){y.prefix&&(l=y.prefix+":"+k);break}}}b.push("<",l);for(var z=0;z<i;z++){var A=h.item(z);"xmlns"==A.prefix?e.push({prefix:A.localName,namespace:A.value}):"xmlns"==A.nodeName&&e.push({prefix:"",namespace:A.value})}for(var z=0;z<i;z++){var A=h.item(z);if(ao(A,c,e)){var B=A.prefix||"",C=A.namespaceURI;ap(b,B?"xmlns:"+B:"xmlns",C),e.push({prefix:B,namespace:C})}aq(A,b,c,d,e)}if(k===l&&ao(a,c,e)){var B=a.prefix||"",C=a.namespaceURI;ap(b,B?"xmlns:"+B:"xmlns",C),e.push({prefix:B,namespace:C})}if(j||c&&!/^(?:meta|link|img|br|hr|input)$/i.test(k)){if(b.push(">"),c&&/^script$/i.test(k))for(;j;)j.data?b.push(j.data):aq(j,b,c,d,e.slice()),j=j.nextSibling;else for(;j;)aq(j,b,c,d,e.slice()),j=j.nextSibling;b.push("</",l,">")}else b.push("/>");return;case u:case w:for(var j=a.firstChild;j;)aq(j,b,c,d,e.slice()),j=j.nextSibling;return;case n:return ap(b,a.name,a.value);case o:return b.push(a.data.replace(/[<&]/g,N).replace(/]]>/g,"]]&gt;"));case p:return b.push("<![CDATA[",a.data,"]]>");case t:return b.push("<!--",a.data,"-->");case v:var D=a.publicId,E=a.systemId;if(b.push("<!DOCTYPE ",a.name),D)b.push(" PUBLIC ",D),E&&"."!=E&&b.push(" ",E),b.push(">");else if(E&&"."!=E)b.push(" SYSTEM ",E,">");else{var F=a.internalSubset;F&&b.push(" [",F,"]"),b.push(">")}return;case s:return b.push("<?",a.target," ",a.data,"?>");case q:return b.push("&",a.nodeName,";");default:b.push("??",a.nodeName)}}function ar(a,b,c){var d;switch(b.nodeType){case m:(d=b.cloneNode(!1)).ownerDocument=a;case w:break;case n:c=!0}if(d||(d=b.cloneNode(!1)),d.ownerDocument=a,d.parentNode=null,c)for(var e=b.firstChild;e;)d.appendChild(ar(a,e,c)),e=e.nextSibling;return d}function as(a,b,c){var d=new b.constructor;for(var e in b)if(Object.prototype.hasOwnProperty.call(b,e)){var f=b[e];"object"!=typeof f&&f!=d[e]&&(d[e]=f)}switch(b.childNodes&&(d.childNodes=new E),d.ownerDocument=a,d.nodeType){case m:var g=b.attributes,h=d.attributes=new H,i=g.length;h._ownerElement=d;for(var j=0;j<i;j++)d.setAttributeNode(as(a,g.item(j),!0));break;case n:c=!0}if(c)for(var k=b.firstChild;k;)d.appendChild(as(a,k,c)),k=k.nextSibling;return d}function at(a,b,c){a[b]=c}y.INVALID_STATE_ERR=(z[11]="Invalid state",11),y.SYNTAX_ERR=(z[12]="Syntax error",12),y.INVALID_MODIFICATION_ERR=(z[13]="Invalid modification",13),y.NAMESPACE_ERR=(z[14]="Invalid namespace",14),y.INVALID_ACCESS_ERR=(z[15]="Invalid access",15),D.prototype=Error.prototype,j(y,D),E.prototype={length:0,item:function(a){return this[a]||null},toString:function(a,b){for(var c=[],d=0;d<this.length;d++)aq(this[d],c,a,b);return c.join("")},filter:function(a){return Array.prototype.filter.call(this,a)},indexOf:function(a){return Array.prototype.indexOf.call(this,a)}},F.prototype.item=function(a){return G(this),this[a]},k(F,E),H.prototype={length:0,item:E.prototype.item,getNamedItem:function(a){for(var b=this.length;b--;){var c=this[b];if(c.nodeName==a)return c}},setNamedItem:function(a){var b=a.ownerElement;if(b&&b!=this._ownerElement)throw new D(C);var c=this.getNamedItem(a.nodeName);return J(this._ownerElement,this,a,c),c},setNamedItemNS:function(a){var b,c=a.ownerElement;if(c&&c!=this._ownerElement)throw new D(C);return b=this.getNamedItemNS(a.namespaceURI,a.localName),J(this._ownerElement,this,a,b),b},removeNamedItem:function(a){var b=this.getNamedItem(a);return K(this._ownerElement,this,b),b},removeNamedItemNS:function(a,b){var c=this.getNamedItemNS(a,b);return K(this._ownerElement,this,c),c},getNamedItemNS:function(a,b){for(var c=this.length;c--;){var d=this[c];if(d.localName==b&&d.namespaceURI==a)return d}return null}},L.prototype={hasFeature:function(a,b){return!0},createDocument:function(a,b,c){var d=new P;if(d.implementation=this,d.childNodes=new E,d.doctype=c||null,c&&d.appendChild(c),b){var e=d.createElementNS(a,b);d.appendChild(e)}return d},createDocumentType:function(a,b,c){var d=new ag;return d.name=a,d.nodeName=a,d.publicId=b||"",d.systemId=c||"",d}},M.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(a,b){return _(this,a,b)},replaceChild:function(a,b){_(this,a,b,$),b&&this.removeChild(b)},removeChild:function(a){return T(this,a)},appendChild:function(a){return this.insertBefore(a,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(a){return as(this.ownerDocument||this,this,a)},normalize:function(){for(var a=this.firstChild;a;){var b=a.nextSibling;b&&b.nodeType==o&&a.nodeType==o?(this.removeChild(b),a.appendData(b.data)):(a.normalize(),a=b)}},isSupported:function(a,b){return this.ownerDocument.implementation.hasFeature(a,b)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(a){for(var b=this;b;){var c=b._nsMap;if(c){for(var d in c)if(Object.prototype.hasOwnProperty.call(c,d)&&c[d]===a)return d}b=b.nodeType==n?b.ownerDocument:b.parentNode}return null},lookupNamespaceURI:function(a){for(var b=this;b;){var c=b._nsMap;if(c&&a in c&&Object.prototype.hasOwnProperty.call(c,a))return c[a];b=b.nodeType==n?b.ownerDocument:b.parentNode}return null},isDefaultNamespace:function(a){return null==this.lookupPrefix(a)}},j(l,M),j(l,M.prototype),P.prototype={nodeName:"#document",nodeType:u,doctype:null,documentElement:null,_inc:1,insertBefore:function(a,b){if(a.nodeType==w){for(var c=a.firstChild;c;){var d=c.nextSibling;this.insertBefore(c,b),c=d}return a}return _(this,a,b),a.ownerDocument=this,null===this.documentElement&&a.nodeType===m&&(this.documentElement=a),a},removeChild:function(a){return this.documentElement==a&&(this.documentElement=null),T(this,a)},replaceChild:function(a,b){_(this,a,b,$),a.ownerDocument=this,b&&this.removeChild(b),V(a)&&(this.documentElement=a)},importNode:function(a,b){return ar(this,a,b)},getElementById:function(a){var b=null;return O(this.documentElement,function(c){if(c.nodeType==m&&c.getAttribute("id")==a)return b=c,!0}),b},getElementsByClassName:function(a){var b=i(a);return new F(this,function(c){var d=[];return b.length>0&&O(c.documentElement,function(e){if(e!==c&&e.nodeType===m){var f=e.getAttribute("class");if(f){var g=a===f;if(!g){var h,j=i(f);g=b.every((h=j,function(a){return h&& -1!==h.indexOf(a)}))}g&&d.push(e)}}}),d})},createElement:function(a){var b=new aa;return b.ownerDocument=this,b.nodeName=a,b.tagName=a,b.localName=a,b.childNodes=new E,(b.attributes=new H)._ownerElement=b,b},createDocumentFragment:function(){var a=new ak;return a.ownerDocument=this,a.childNodes=new E,a},createTextNode:function(a){var b=new ad;return b.ownerDocument=this,b.appendData(a),b},createComment:function(a){var b=new ae;return b.ownerDocument=this,b.appendData(a),b},createCDATASection:function(a){var b=new af;return b.ownerDocument=this,b.appendData(a),b},createProcessingInstruction:function(a,b){var c=new al;return c.ownerDocument=this,c.tagName=c.target=a,c.nodeValue=c.data=b,c},createAttribute:function(a){var b=new ab;return b.ownerDocument=this,b.name=a,b.nodeName=a,b.localName=a,b.specified=!0,b},createEntityReference:function(a){var b=new aj;return b.ownerDocument=this,b.nodeName=a,b},createElementNS:function(a,b){var c=new aa,d=b.split(":"),e=c.attributes=new H;return c.childNodes=new E,c.ownerDocument=this,c.nodeName=b,c.tagName=b,c.namespaceURI=a,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,e._ownerElement=c,c},createAttributeNS:function(a,b){var c=new ab,d=b.split(":");return c.ownerDocument=this,c.nodeName=b,c.name=b,c.namespaceURI=a,c.specified=!0,2==d.length?(c.prefix=d[0],c.localName=d[1]):c.localName=b,c}},k(P,M),aa.prototype={nodeType:m,hasAttribute:function(a){return null!=this.getAttributeNode(a)},getAttribute:function(a){var b=this.getAttributeNode(a);return b&&b.value||""},getAttributeNode:function(a){return this.attributes.getNamedItem(a)},setAttribute:function(a,b){var c=this.ownerDocument.createAttribute(a);c.value=c.nodeValue=""+b,this.setAttributeNode(c)},removeAttribute:function(a){var b=this.getAttributeNode(a);b&&this.removeAttributeNode(b)},appendChild:function(a){var b,c;return a.nodeType===w?this.insertBefore(a,null):(b=this,(c=a).parentNode&&c.parentNode.removeChild(c),c.parentNode=b,c.previousSibling=b.lastChild,c.nextSibling=null,c.previousSibling?c.previousSibling.nextSibling=c:b.firstChild=c,b.lastChild=c,S(b.ownerDocument,b,c),c)},setAttributeNode:function(a){return this.attributes.setNamedItem(a)},setAttributeNodeNS:function(a){return this.attributes.setNamedItemNS(a)},removeAttributeNode:function(a){return this.attributes.removeNamedItem(a.nodeName)},removeAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);c&&this.removeAttributeNode(c)},hasAttributeNS:function(a,b){return null!=this.getAttributeNodeNS(a,b)},getAttributeNS:function(a,b){var c=this.getAttributeNodeNS(a,b);return c&&c.value||""},setAttributeNS:function(a,b,c){var d=this.ownerDocument.createAttributeNS(a,b);d.value=d.nodeValue=""+c,this.setAttributeNode(d)},getAttributeNodeNS:function(a,b){return this.attributes.getNamedItemNS(a,b)},getElementsByTagName:function(a){return new F(this,function(b){var c=[];return O(b,function(d){d!==b&&d.nodeType==m&&("*"===a||d.tagName==a)&&c.push(d)}),c})},getElementsByTagNameNS:function(a,b){return new F(this,function(c){var d=[];return O(c,function(e){e!==c&&e.nodeType===m&&("*"===a||e.namespaceURI===a)&&("*"===b||e.localName==b)&&d.push(e)}),d})}},P.prototype.getElementsByTagName=aa.prototype.getElementsByTagName,P.prototype.getElementsByTagNameNS=aa.prototype.getElementsByTagNameNS,k(aa,M),ab.prototype.nodeType=n,k(ab,M),ac.prototype={data:"",substringData:function(a,b){return this.data.substring(a,a+b)},appendData:function(a){a=this.data+a,this.nodeValue=this.data=a,this.length=a.length},insertData:function(a,b){this.replaceData(a,0,b)},appendChild:function(a){throw Error(z[A])},deleteData:function(a,b){this.replaceData(a,b,"")},replaceData:function(a,b,c){var d;c=this.data.substring(0,a)+c+this.data.substring(a+b),this.nodeValue=this.data=c,this.length=c.length}},k(ac,M),ad.prototype={nodeName:"#text",nodeType:o,splitText:function(a){var b=this.data,c=b.substring(a);b=b.substring(0,a),this.data=this.nodeValue=b,this.length=b.length;var d=this.ownerDocument.createTextNode(c);return this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling),d}},k(ad,ac),ae.prototype={nodeName:"#comment",nodeType:t},k(ae,ac),af.prototype={nodeName:"#cdata-section",nodeType:p},k(af,ac),ag.prototype.nodeType=v,k(ag,M),ah.prototype.nodeType=x,k(ah,M),ai.prototype.nodeType=r,k(ai,M),aj.prototype.nodeType=q,k(aj,M),ak.prototype.nodeName="#document-fragment",ak.prototype.nodeType=w,k(ak,M),al.prototype.nodeType=s,k(al,M),am.prototype.serializeToString=function(a,b,c){return an.call(a,b,c)},M.prototype.toString=an;try{if(Object.defineProperty){function au(a){switch(a.nodeType){case m:case w:var b=[];for(a=a.firstChild;a;)7!==a.nodeType&&8!==a.nodeType&&b.push(au(a)),a=a.nextSibling;return b.join("");default:return a.nodeValue}}Object.defineProperty(F.prototype,"length",{get:function(){return G(this),this.$$length}}),Object.defineProperty(M.prototype,"textContent",{get:function(){return au(this)},set:function(a){switch(this.nodeType){case m:case w:for(;this.firstChild;)this.removeChild(this.firstChild);(a||String(a))&&this.appendChild(this.ownerDocument.createTextNode(a));break;default:this.data=a,this.value=a,this.nodeValue=a}}}),at=function(a,b,c){a["$$"+b]=c}}}catch(av){}b.DocumentType=ag,b.DOMException=D,b.DOMImplementation=L,b.Element=aa,b.Node=M,b.NodeList=E,b.XMLSerializer
7=am},31045:function(a,b,c){var d=c(72167).freeze;b.XML_ENTITIES=d({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),b.HTML_ENTITIES=d({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",times:"\xd7",divide:"\xf7",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub
7:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",euro:"€",trade:"™",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),b.entityMap=b.HTML_ENTITIES},3969:function(a,b,c){var d=c(41146);d.DOMImplementation,d.XMLSerializer,b.DOMParser=c(86129).DOMParser},76925:function(a,b,c){var d=c(72167).NAMESPACE,e=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,f=RegExp("[\\-\\.0-9"+e.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),g=RegExp("^"+e.source+f.source+"*(?::"+e.source+f.source+"*)?$");function h(a,b){this.message=a,this.locator=b,Error.captureStackTrace&&Error.captureStackTrace(this,h)}function i(){}function j(a,b){return b.lineNumber=a.lineNumber,b.columnNumber=a.columnNumber,b}function k(a,b,c,e,f,g){function h(a,b,d){c.attributeNames.hasOwnProperty(a)&&g.fatalError("Attribute "+a+" redefined"),c.addValue(a,b,d)}for(var i,j,k=++b,l=0;;){var m=a.charAt(k);switch(m){case"=":if(1===l)i=a.slice(b,k),l=3;else if(2===l)l=3;else throw Error("attribute equal must after attrName");break;case"'":case'"':if(3===l||1===l){if(1===l&&(g.warning('attribute value must after "="'),i=a.slice(b,k)),b=k+1,(k=a.indexOf(m,b))>0)h(i,j=a.slice(b,k).replace(/&#?\w+;/g,f),b-1),l=5;else throw Error("attribute value no end '"+m+"' match")}else if(4==l)h(i,j=a.slice(b,k).replace(/&#?\w+;/g,f),b),g.warning('attribute "'+i+'" missed start quot('+m+")!!"),b=k+1,l=5;else throw Error('attribute value must after "="');break;case"/":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:l=7,c.closed=!0;case 4:case 1:case 2:break;default:throw Error("attribute invalid close char('/')")}break;case"":return g.error("unexpected end of input"),0==l&&c.setTagName(a.slice(b,k)),k;case">":switch(l){case 0:c.setTagName(a.slice(b,k));case 5:case 6:case 7:break;case 4:case 1:"/"===(j=a.slice(b,k)).slice(-1)&&(c.closed=!0,j=j.slice(0,-1));case 2:2===l&&(j=i),4==l?(g.warning('attribute "'+j+'" missed quot(")!'),h(i,j.replace(/&#?\w+;/g,f),b)):(d.isHTML(e[""])&&j.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+j+'" missed value!! "'+j+'" instead!!'),h(j,j,b));break;case 3:throw Error("attribute value missed!!")}return k;case"\x80":m=" ";default:if(m<=" ")switch(l){case 0:c.setTagName(a.slice(b,k)),l=6;break;case 1:i=a.slice(b,k),l=2;break;case 4:var j=a.slice(b,k).replace(/&#?\w+;/g,f);g.warning('attribute "'+j+'" missed quot(")!!'),h(i,j,b);case 5:l=6}else switch(l){case 2:c.tagName,d.isHTML(e[""])&&i.match(/^(?:disabled|checked|selected)$/i)||g.warning('attribute "'+i+'" missed value!! "'+i+'" instead2!!'),h(i,i,b),b=k,l=1;break;case 5:g.warning('attribute space is required"'+i+'"!!');case 6:l=1,b=k;break;case 3:l=4,b=k;break;case 7:throw Error("elements closed character '/' and '>' must be connected to")}}k++}}function l(a,b,c){for(var e=a.tagName,f=null,g=a.length;g--;){var h=a[g],i=h.qName,j=h.value,k=i.indexOf(":");if(k>0)var l=h.prefix=i.slice(0,k),m=i.slice(k+1),n="xmlns"===l&&m;else m=i,l=null,n="xmlns"===i&&"";h.localName=m,!1!==n&&(null==f&&(f={},o(c,c={})),c[n]=f[n]=j,h.uri=d.XMLNS,b.startPrefixMapping(n,j))}for(var g=a.length;g--;){var l=(h=a[g]).prefix;l&&("xml"===l&&(h.uri=d.XML),"xmlns"!==l&&(h.uri=c[l||""]))}var k=e.indexOf(":");k>0?(l=a.prefix=e.slice(0,k),m=a.localName=e.slice(k+1)):(l=null,m=a.localName=e);var p=a.uri=c[l||""];if(b.startElement(p,m,e,a),!a.closed)return a.currentNSMap=c,a.localNSMap=f,!0;if(b.endElement(p,m,e),f)for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&b.endPrefixMapping(l)}function m(a,b,c,d,e){if(/^(?:script|textarea)$/i.test(c)){var f=a.indexOf("</"+c+">",b),g=a.substring(b+1,f);
7if(/[&<]/.test(g))return/^script$/i.test(c)?(e.characters(g,0,g.length),f):(g=g.replace(/&#?\w+;/g,d),e.characters(g,0,g.length),f)}return b+1}function n(a,b,c,d){var e=d[c];return null==e&&((e=a.lastIndexOf("</"+c+">"))<b&&(e=a.lastIndexOf("</"+c)),d[c]=e),e<b}function o(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c])}function p(a,b,c,d){var e;if("-"===a.charAt(b+2)){if("-"===a.charAt(b+3)){var f=a.indexOf("-->",b+4);if(f>b)return c.comment(a,b+4,f-b-4),f+3;d.error("Unclosed comment")}}else{if("CDATA["==a.substr(b+3,6)){var f=a.indexOf("]]>",b+9);return c.startCDATA(),c.characters(a,b+9,f-b-9),c.endCDATA(),f+3}var g=s(a,b),h=g.length;if(h>1&&/!doctype/i.test(g[0][0])){var i=g[1][0],j=!1,k=!1;h>3&&(/^public$/i.test(g[2][0])?(j=g[3][0],k=h>4&&g[4][0]):/^system$/i.test(g[2][0])&&(k=g[3][0]));var l=g[h-1];return c.startDTD(i,j,k),c.endDTD(),l.index+l[0].length}}return -1}function q(a,b,c){var d=a.indexOf("?>",b);if(d){var e=a.substring(b,d).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(e)return e[0].length,c.processingInstruction(e[1],e[2]),d+2}return -1}function r(){this.attributeNames={}}function s(a,b){var c,d=[],e=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(e.lastIndex=b,e.exec(a);c=e.exec(a);)if(d.push(c),c[1])return d}h.prototype=Error(),h.prototype.name=h.name,i.prototype={parse:function(a,b,c){var e=this.domBuilder;e.startDocument(),o(b,b={}),function a(b,c,e,f,g){function i(a){var b=a.slice(1,-1);return b in e?e[b]:"#"===b.charAt(0)?function(a){if(!(a>65535))return String.fromCharCode(a);var b=55296+((a-=65536)>>10),c=56320+(1023&a);return String.fromCharCode(b,c)}(parseInt(b.substr(1).replace("x","0x"))):(g.error("entity not found:"+a),a)}function o(a){if(a>z){var c=b.substring(z,a).replace(/&#?\w+;/g,i);w&&s(z),f.characters(c,0,a-z),z=a}}function s(a,c){for(;a>=u&&(c=v.exec(b));)u=(t=c.index)+c[0].length,w.lineNumber++;w.columnNumber=a-t+1}for(var t=0,u=0,v=/.*(?:\r\n?|\n)|.*$/g,w=f.locator,x=[{currentNSMap:c}],y={},z=0;;){try{var A=b.indexOf("<",z);if(A<0){if(!b.substr(z).match(/^\s*$/)){var B=f.doc,C=B.createTextNode(b.substr(z));B.appendChild(C),f.currentElement=C}return}switch(A>z&&o(A),b.charAt(A+1)){case"/":var D=b.indexOf(">",A+3),E=b.substring(A+2,D).replace(/[ \t\n\r]+$/g,""),F=x.pop();D<0?(E=b.substring(A+2).replace(/[\s<].*/,""),g.error("end tag name: "+E+" is not complete:"+F.tagName),D=A+1+E.length):E.match(/\s</)&&(E=E.replace(/[\s<].*/,""),g.error("end tag name: "+E+" maybe not complete"),D=A+1+E.length);var G=F.localNSMap,H=F.tagName==E;if(H||F.tagName&&F.tagName.toLowerCase()==E.toLowerCase()){if(f.endElement(F.uri,F.localName,E),G)for(var I in G)Object.prototype.hasOwnProperty.call(G,I)&&f.endPrefixMapping(I);H||g.fatalError("end tag name: "+E+" is not match the current start tagName:"+F.tagName)}else x.push(F);D++;break;case"?":w&&s(A),D=q(b,A,f);break;case"!":w&&s(A),D=p(b,A,f,g);break;default:w&&s(A);var J=new r,K=x[x.length-1].currentNSMap,D=k(b,A,J,K,i,g),L=J.length;if(!J.closed&&n(b,D,J.tagName,y)&&(J.closed=!0,e.nbsp||g.warning("unclosed xml attribute")),w&&L){for(var M=j(w,{}),N=0;N<L;N++){var O=J[N];s(O.offset),O.locator=j(w,{})}f.locator=M,l(J,f,K)&&x.push(J),f.locator=w}else l(J,f,K)&&x.push(J);d.isHTML(J.uri)&&!J.closed?D=m(b,D,J.tagName,i,f):D++}}catch(P){if(P instanceof h)throw P;g.error("element parse error: "+P),D=-1}D>z?z=D:o(Math.max(A,z)+1)}}(a,b,c,e,this.errorHandler),e.endDocument()}},r.prototype={setTagName:function(a){if(!g.test(a))throw Error("invalid tagName:"+a);this.tagName=a},addValue:function(a,b,c){if(!g.test(a))throw Error("invalid attribute:"+a);this.attributeNames[a]=this.length,this[this.length++]={qName:a,value:b,offset:c}},length:0,getLocalName:function(a){return this[a].localName},getLocator:function(a){return this[a].locator},getQName:function(a){return this[a].qName},getURI:function(a){return this[a].uri},getValue:function(a){return this[a].value}},b.XMLReader=i,b.ParseError=h},89144:function(a,b,c){var d,e=void 0!==c.g?c.g:"undefined"!=typeof window?window:{},f=c(25893);"undefined"!=typeof document?d=document:(d=e["__GLOBAL_DOCUMENT_CACHE@4"])||(d=e["__GLOBAL_DOCUMENT_CACHE@4"]=f),a.exports=d},58908:function(a,b,c){var d;d="undefined"!=typeof window?window:void 0!==c.g?c.g:"undefined"!=typeof self?self:{},a.exports=d}
7,27376:function(a){a.exports=function(a){if(!a)return!1;var c=b.call(a);return"[object Function]"===c||"function"==typeof a&&"[object RegExp]"!==c||"undefined"!=typeof window&&(a===window.setTimeout||a===window.alert||a===window.confirm||a===window.prompt)};var b=Object.prototype.toString},27537:function(a,b){function c(a){if(a&&"object"==typeof a){var b=a.which||a.keyCode||a.charCode;b&&(a=b)}if("number"==typeof a)return g[a];var c=String(a),f=d[c.toLowerCase()];if(f)return f;var f=e[c.toLowerCase()];return f||(1===c.length?c.charCodeAt(0):void 0)}c.isEventKey=function(a,b){if(a&&"object"==typeof a){var c=a.which||a.keyCode||a.charCode;if(null==c)return!1;if("string"==typeof b){var f=d[b.toLowerCase()];if(f)return f===c;var f=e[b.toLowerCase()];if(f)return f===c}else if("number"==typeof b)return b===c;return!1}};var d=(b=a.exports=c).code=b.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},e=b.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};/*!
8 * Programatically add the following
9 */ for(f=97;f<123;f++)d[String.fromCharCode(f)]=f-32;for(var f=48;f<58;f++)d[f-48]=f;for(f=1;f<13;f++)d["f"+f]=f+111;for(f=0;f<10;f++)d["numpad "+f]=f+96;var g=b.names=b.title={};for(f in d)g[d[f]]=f;for(var h in e)d[h]=e[h]},9323:function(a,b,c){"use strict";c.d(b,{"_b":function(){return q}});var d=c(94578),e=function(){function a(){this.listeners={}}var b=a.prototype;return b.on=function(a,b){this.listeners[a]||(this.listeners[a]=[]),this.listeners[a].push(b)},b.off=function(a,b){if(!this.listeners[a])return!1;var c=this.listeners[a].indexOf(b);return this.listeners[a]=this.listeners[a].slice(0),this.listeners[a].splice(c,1),c> -1},b.trigger=function(a){var b=this.listeners[a];if(b){if(2===arguments.length)for(var c=b.length,d=0;d<c;++d)b[d].call(this,arguments[1]);else for(var e=Array.prototype.slice.call(arguments,1),f=b.length,g=0;g<f;++g)b[g].apply(this,e)}},b.dispose=function(){this.listeners={}},b.pipe=function(a){this.on("data",function(b){a.push(b)})},a}(),f=c(87462),g=c(97326),h=c(36722),i=function(a){function b(){var b;return(b=a.call(this)||this).buffer="",b}return(0,d.Z)(b,a),b.prototype.push=function(a){var b;for(this.buffer+=a,b=this.buffer.indexOf("\n");b> -1;b=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,b)),this.buffer=this.buffer.substring(b+1)},b}(e),j=function(a){var b=/([0-9.]*)?@?([0-9.]*)?/.exec(a||""),c={};return b[1]&&(c.length=parseInt(b[1],10)),b[2]&&(c.offset=parseInt(b[2],10)),c},k=function(){return RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')},l=function(a){for(var b,c=a.split(k()),d={},e=c.length;e--;)""!==c[e]&&((b=/([^=]*)=(.*)/.exec(c[e]).slice(1))[0]=b[0].replace(/^\s+|\s+$/g,""),b[1]=b[1].replace(/^\s+|\s+$/g,""),b[1]=b[1].replace(/^['"](.*)['"]$/g,"$1"),d[b[0]]=b[1]);return d},m=function(a){function b(){var b;return(b=a.call(this)||this).customParsers=[],b.tagMappers=[],b}(0,d.Z)(b,a);var c=b.prototype;return c.push=function(a){var b,c,d=this;if(0!==(a=a.trim()).length){if("#"!==a[0]){this.trigger("data",{type:"uri",uri:a});return}this.tagMappers.reduce(function(b,c){var d=c(a);return d===a?b:b.concat([d])},[a]).forEach(function(a){for(var e=0;e<d.customParsers.length;e++)if(d.customParsers[e].call(d,a))return;if(0!==a.indexOf("#EXT")){d.trigger("data",{type:"comment",text:a.slice(1)});return}if(a=a.replace("\r",""),b=/^#EXTM3U/.exec(a)){d.trigger("data",{type:"tag",tagType:"m3u"});return}if(b=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(a)){c={type:"tag",tagType:"inf"},b[1]&&(c.duration=parseFloat(b[1])),b[2]&&(c.title=b[2]),d.trigger("data",c);return}if(b=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(a)){c={type:"tag",tagType:"targetduration"},b[1]&&(c.duration=parseInt(b[1],10)),d.trigger("data",c);return}if(b=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(a)){c={type:"tag",tagType:"version"},b[1]&&(c.version=parseInt(b[1],10)),d.trigger("data",c);return}if(b=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(a)){c={type:"tag",tagType:"media-sequence"},b[1]&&(c.number=parseInt(b[1],10)),d.trigger("data",c);return}if(b=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(a)){c={type:"tag",tagType:"discontinuity-sequence"},b[1]&&(c.number=parseInt(b[1],10)),d.trigger("data",c);return}if(b=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(a)){c={type:"tag",tagType:"playlist-type"},b[1]&&(c.playlistType=b[1]),d.trigger("data",c);return}if(b=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(a)){c=(0,f.Z)(j(b[1]),{type:"tag",tagType:"byterange"}),d.trigger("data",c);return}if(b=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(a)){c={type:"tag",tagType:"allow-cache"},b[1]&&(c.allowed=!/NO/.test(b[1])),d.trigger("data",c);return}if(b=/^#EXT-X-MAP:?(.*)$/.exec(a)){if(c={type:"tag",tagType:"map"},b[1]){var g=l(b[1]);
9g.URI&&(c.uri=g.URI),g.BYTERANGE&&(c.byterange=j(g.BYTERANGE))}d.trigger("data",c);return}if(b=/^#EXT-X-STREAM-INF:?(.*)$/.exec(a)){if(c={type:"tag",tagType:"stream-inf"},b[1]){if(c.attributes=l(b[1]),c.attributes.RESOLUTION){var h=c.attributes.RESOLUTION.split("x"),i={};h[0]&&(i.width=parseInt(h[0],10)),h[1]&&(i.height=parseInt(h[1],10)),c.attributes.RESOLUTION=i}c.attributes.BANDWIDTH&&(c.attributes.BANDWIDTH=parseInt(c.attributes.BANDWIDTH,10)),c.attributes["PROGRAM-ID"]&&(c.attributes["PROGRAM-ID"]=parseInt(c.attributes["PROGRAM-ID"],10))}d.trigger("data",c);return}if(b=/^#EXT-X-MEDIA:?(.*)$/.exec(a)){c={type:"tag",tagType:"media"},b[1]&&(c.attributes=l(b[1])),d.trigger("data",c);return}if(b=/^#EXT-X-ENDLIST/.exec(a)){d.trigger("data",{type:"tag",tagType:"endlist"});return}if(b=/^#EXT-X-DISCONTINUITY/.exec(a)){d.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(b=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(a)){c={type:"tag",tagType:"program-date-time"},b[1]&&(c.dateTimeString=b[1],c.dateTimeObject=new Date(b[1])),d.trigger("data",c);return}if(b=/^#EXT-X-KEY:?(.*)$/.exec(a)){c={type:"tag",tagType:"key"},b[1]&&(c.attributes=l(b[1]),c.attributes.IV&&("0x"===c.attributes.IV.substring(0,2).toLowerCase()&&(c.attributes.IV=c.attributes.IV.substring(2)),c.attributes.IV=c.attributes.IV.match(/.{8}/g),c.attributes.IV[0]=parseInt(c.attributes.IV[0],16),c.attributes.IV[1]=parseInt(c.attributes.IV[1],16),c.attributes.IV[2]=parseInt(c.attributes.IV[2],16),c.attributes.IV[3]=parseInt(c.attributes.IV[3],16),c.attributes.IV=new Uint32Array(c.attributes.IV))),d.trigger("data",c);return}if(b=/^#EXT-X-START:?(.*)$/.exec(a)){c={type:"tag",tagType:"start"},b[1]&&(c.attributes=l(b[1]),c.attributes["TIME-OFFSET"]=parseFloat(c.attributes["TIME-OFFSET"]),c.attributes.PRECISE=/YES/.test(c.attributes.PRECISE)),d.trigger("data",c);return}if(b=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(a)){c={type:"tag",tagType:"cue-out-cont"},b[1]?c.data=b[1]:c.data="",d.trigger("data",c);return}if(b=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(a)){c={type:"tag",tagType:"cue-out"},b[1]?c.data=b[1]:c.data="",d.trigger("data",c);return}if(b=/^#EXT-X-CUE-IN:?(.*)?$/.exec(a)){c={type:"tag",tagType:"cue-in"},b[1]?c.data=b[1]:c.data="",d.trigger("data",c);return}if((b=/^#EXT-X-SKIP:(.*)$/.exec(a))&&b[1]){(c={type:"tag",tagType:"skip"}).attributes=l(b[1]),c.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(c.attributes["SKIPPED-SEGMENTS"]=parseInt(c.attributes["SKIPPED-SEGMENTS"],10)),c.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(c.attributes["RECENTLY-REMOVED-DATERANGES"]=c.attributes["RECENTLY-REMOVED-DATERANGES"].split("	")),d.trigger("data",c);return}if((b=/^#EXT-X-PART:(.*)$/.exec(a))&&b[1]){(c={type:"tag",tagType:"part"}).attributes=l(b[1]),["DURATION"].forEach(function(a){c.attributes.hasOwnProperty(a)&&(c.attributes[a]=parseFloat(c.attributes[a]))}),["INDEPENDENT","GAP"].forEach(function(a){c.attributes.hasOwnProperty(a)&&(c.attributes[a]=/YES/.test(c.attributes[a]))}),c.attributes.hasOwnProperty("BYTERANGE")&&(c.attributes.byterange=j(c.attributes.BYTERANGE)),d.trigger("data",c);return}if((b=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(a))&&b[1]){(c={type:"tag",tagType:"server-control"}).attributes=l(b[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(a){c.attributes.hasOwnProperty(a)&&(c.attributes[a]=parseFloat(c.attributes[a]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(a){c.attributes.hasOwnProperty(a)&&(c.attributes[a]=/YES/.test(c.attributes[a]))}),d.trigger("data",c);return}if((b=/^#EXT-X-PART-INF:(.*)$/.exec(a))&&b[1]){(c={type:"tag",tagType:"part-inf"}).attributes=l(b[1]),["PART-TARGET"].forEach(function(a){c.attributes.hasOwnProperty(a)&&(c.attributes[a]=parseFloat(c.attributes[a]))}),d.trigger("data",c);return}if((b=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(a))&&b[1]){(c={type:"tag",tagType:"preload-hint"}).attributes=l(b[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(a){if(c.attributes.hasOwnProperty(a)){c.attributes[a]=parseInt(c.attributes[a],10);var b="BYTERANGE-LENGTH"===a?"length":"offset";c.attributes.byterange=c.attributes.byterange||{},c.attributes.byterange[b]=c.attributes[a],delete c.attributes[a]}}),d.trigger("data",c);return}if((b=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(a))&&b[1]){(c={type:"tag",tagType:"rendition-report"}).attributes=l(b[1]),["LAST-MSN","LAST-PART"].forEach(function(a){c.attributes.hasOwnProperty(a)&&(c.attributes[a]=parseInt(c.attributes[a],10))}),d.trigger("data",c);return}d.trigger("data",{type:"tag",data:a.slice(4)})})}},c.addParser=function(a){var b=this,c=a.expression,d=a.customType,e=a.dataParser,f=a.segment;"function"!=typeof e&&(e=function(a){return a}
9),this.customParsers.push(function(a){if(c.exec(a))return b.trigger("data",{type:"custom",data:e(a),customType:d,segment:f}),!0})},c.addTagMapper=function(a){var b=a.expression,c=a.map,d=function(a){return b.test(a)?c(a):a};this.tagMappers.push(d)},b}(e),n=function(a){return a.toLowerCase().replace(/-(\w)/g,function(a){return a[1].toUpperCase()})},o=function(a){var b={};return Object.keys(a).forEach(function(c){b[n(c)]=a[c]}),b},p=function(a){var b=a.serverControl,c=a.targetDuration,d=a.partTargetDuration;if(b){var e="#EXT-X-SERVER-CONTROL",f="holdBack",g="partHoldBack",h=c&&3*c,i=d&&2*d;c&&!b.hasOwnProperty(f)&&(b[f]=h,this.trigger("info",{message:e+" defaulting HOLD-BACK to targetDuration * 3 ("+h+")."})),h&&b[f]<h&&(this.trigger("warn",{message:e+" clamping HOLD-BACK ("+b[f]+") to targetDuration * 3 ("+h+")"}),b[f]=h),d&&!b.hasOwnProperty(g)&&(b[g]=3*d,this.trigger("info",{message:e+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+b[g]+")."})),d&&b[g]<i&&(this.trigger("warn",{message:e+" clamping PART-HOLD-BACK ("+b[g]+") to partTargetDuration * 2 ("+i+")."}),b[g]=i)}},q=function(a){function b(){(b=a.call(this)||this).lineStream=new i,b.parseStream=new m,b.lineStream.pipe(b.parseStream);var b,c,d,e=(0,g.Z)(b),j=[],k={},l=!1,n=function(){},q={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},r=0;b.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var s=0,t=0;return b.on("end",function(){!k.uri&&(k.parts||k.preloadHints)&&(!k.map&&c&&(k.map=c),!k.key&&d&&(k.key=d),k.timeline||"number"!=typeof r||(k.timeline=r),b.manifest.preloadSegment=k)}),b.parseStream.on("data",function(a){var b,g;({tag:function(){(({version:function(){a.version&&(this.manifest.version=a.version)},"allow-cache":function(){this.manifest.allowCache=a.allowed,"allowed"in a||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var b={};"length"in a&&(k.byterange=b,b.length=a.length,"offset"in a||(a.offset=s)),"offset"in a&&(k.byterange=b,b.offset=a.offset),s=b.offset+b.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),a.duration>0&&(k.duration=a.duration),0===a.duration&&(k.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=j},key:function(){if(!a.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if("NONE"===a.attributes.METHOD){d=null;return}if(!a.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if("com.apple.streamingkeydelivery"===a.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:a.attributes};return}if("com.microsoft.playready"===a.attributes.KEYFORMAT){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:a.attributes.URI};return}if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===a.attributes.KEYFORMAT){if(-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(a.attributes.METHOD)){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if("SAMPLE-AES-CENC"===a.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==a.attributes.URI.substring(0,23)){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(a.attributes.KEYID&&"0x"===a.attributes.KEYID.substring(0,2))){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:a.attributes.KEYFORMAT,keyId:a.attributes.KEYID.substring(2)},pssh:(0,h.Z)(a.attributes.URI.split(",")[1])};return}a.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),d={method:a.attributes.METHOD||"AES-128",uri:a.attributes.URI},void 0!==a.attributes.IV&&(d.iv=a.attributes.IV)},"media-sequence":function(){if(!isFinite(a.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+a.number});return}this.manifest.mediaSequence=a.number},"discontinuity-sequence":function(){if(!isFinite(a.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+a.number});return}this.manifest.discontinuitySequence=a.number,r=a.number},"playlist-type":function(){if(!/VOD|EVENT/.test(a.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+a.playlist});return}this.manifest.playlistType=a.playlistType},map:function(){c={}
9,a.uri&&(c.uri=a.uri),a.byterange&&(c.byterange=a.byterange),d&&(c.key=d)},"stream-inf":function(){if(this.manifest.playlists=j,this.manifest.mediaGroups=this.manifest.mediaGroups||q,!a.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}k.attributes||(k.attributes={}),(0,f.Z)(k.attributes,a.attributes)},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||q,!(a.attributes&&a.attributes.TYPE&&a.attributes["GROUP-ID"]&&a.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}var c=this.manifest.mediaGroups[a.attributes.TYPE];c[a.attributes["GROUP-ID"]]=c[a.attributes["GROUP-ID"]]||{},b=c[a.attributes["GROUP-ID"]],(g={default:/yes/i.test(a.attributes.DEFAULT)}).default?g.autoselect=!0:g.autoselect=/yes/i.test(a.attributes.AUTOSELECT),a.attributes.LANGUAGE&&(g.language=a.attributes.LANGUAGE),a.attributes.URI&&(g.uri=a.attributes.URI),a.attributes["INSTREAM-ID"]&&(g.instreamId=a.attributes["INSTREAM-ID"]),a.attributes.CHARACTERISTICS&&(g.characteristics=a.attributes.CHARACTERISTICS),a.attributes.FORCED&&(g.forced=/yes/i.test(a.attributes.FORCED)),b[a.attributes.NAME]=g},discontinuity:function(){r+=1,k.discontinuity=!0,this.manifest.discontinuityStarts.push(j.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=a.dateTimeString,this.manifest.dateTimeObject=a.dateTimeObject),k.dateTimeString=a.dateTimeString,k.dateTimeObject=a.dateTimeObject},targetduration:function(){if(!isFinite(a.duration)||a.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+a.duration});return}this.manifest.targetDuration=a.duration,p.call(this,this.manifest)},start:function(){if(!a.attributes||isNaN(a.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:a.attributes["TIME-OFFSET"],precise:a.attributes.PRECISE}},"cue-out":function(){k.cueOut=a.data},"cue-out-cont":function(){k.cueOutCont=a.data},"cue-in":function(){k.cueIn=a.data},skip:function(){this.manifest.skip=o(a.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",a.attributes,["SKIPPED-SEGMENTS"])},part:function(){var b=this;l=!0;var c=this.manifest.segments.length,d=o(a.attributes);k.parts=k.parts||[],k.parts.push(d),d.byterange&&(d.byterange.hasOwnProperty("offset")||(d.byterange.offset=t),t=d.byterange.offset+d.byterange.length);var e=k.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+e+" for segment #"+c,a.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach(function(a,c){a.hasOwnProperty("lastPart")||b.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+c+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var b=this.manifest.serverControl=o(a.attributes);b.hasOwnProperty("canBlockReload")||(b.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),p.call(this,this.manifest),b.canSkipDateranges&&!b.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var b=this.manifest.segments.length,c=o(a.attributes),d=c.type&&"PART"===c.type;k.preloadHints=k.preloadHints||[],k.preloadHints.push(c),c.byterange&&!c.byterange.hasOwnProperty("offset")&&(c.byterange.offset=d?t:0,d&&(t=c.byterange.offset+c.byterange.length));var e=k.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+e+" for segment #"+b,a.attributes,["TYPE","URI"]),c.type)for(var f=0;f<k.preloadHints.length-1;f++){var g=k.preloadHints[f];g.type&&g.type===c.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+e+" for segment #"+b+" has the same TYPE "+c.type+" as preload hint #"+f})}},"rendition-report":function(){var b=o(a.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(b);
9var c=this.manifest.renditionReports.length-1,d=["LAST-MSN","URI"];l&&d.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+c,a.attributes,d)},"part-inf":function(){this.manifest.partInf=o(a.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",a.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),p.call(this,this.manifest)}})[a.tagType]||n).call(e)},uri:function(){k.uri=a.uri,j.push(k),!this.manifest.targetDuration||"duration"in k||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),k.duration=this.manifest.targetDuration),d&&(k.key=d),k.timeline=r,c&&(k.map=c),t=0,k={}},comment:function(){},custom:function(){a.segment?(k.custom=k.custom||{},k.custom[a.customType]=a.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[a.customType]=a.data)}})[a.type].call(e)}),b}(0,d.Z)(b,a);var c=b.prototype;return c.warnOnMissingAttributes_=function(a,b,c){var d=[];c.forEach(function(a){b.hasOwnProperty(a)||d.push(a)}),d.length&&this.trigger("warn",{message:a+" lacks required attribute(s): "+d.join(", ")})},c.push=function(a){this.lineStream.push(a)},c.end=function(){this.lineStream.push("\n"),this.trigger("end")},c.addParser=function(a){this.parseStream.addParser(a)},c.addTagMapper=function(a){this.parseStream.addTagMapper(a)},b}(e)},12955:function(a,b,c){"use strict";c.d(b,{jp:function(){return x},mm:function(){return G},Qc:function(){return an},LG:function(){return ao}});var d=c(80779),e=c(58908),f=c.n(e),g=function(a,b,c){b.forEach(function(b){for(var d in a.mediaGroups[b])for(var e in a.mediaGroups[b][d])c(a.mediaGroups[b][d][e],b,d,e)})},h=c(36722),i=c(3969),j=function(a){return!!a&&"object"==typeof a},k=function a(){for(var b=arguments.length,c=Array(b),d=0;d<b;d++)c[d]=arguments[d];return c.reduce(function(b,c){return"object"!=typeof c||Object.keys(c).forEach(function(d){Array.isArray(b[d])&&Array.isArray(c[d])?b[d]=b[d].concat(c[d]):j(b[d])&&j(c[d])?b[d]=a(b[d],c[d]):b[d]=c[d]}),b},{})},l=function(a){return Object.keys(a).map(function(b){return a[b]})},m=function(a,b){for(var c=[],d=a;d<b;d++)c.push(d);return c},n=function(a){return a.reduce(function(a,b){return a.concat(b)},[])},o=function(a){if(!a.length)return[];for(var b=[],c=0;c<a.length;c++)b.push(a[c]);return b},p=function(a,b){for(var c=0;c<a.length;c++)if(b(a[c]))return c;return -1},q={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",DASH_EMPTY_MANIFEST:"DASH_EMPTY_MANIFEST",DASH_INVALID_XML:"DASH_INVALID_XML",NO_BASE_URL:"NO_BASE_URL",MISSING_SEGMENT_INFORMATION:"MISSING_SEGMENT_INFORMATION",SEGMENT_TIME_UNSPECIFIED:"SEGMENT_TIME_UNSPECIFIED",UNSUPPORTED_UTC_TIMING_SCHEME:"UNSUPPORTED_UTC_TIMING_SCHEME"},r=function(a){var b=a.baseUrl,c=a.source,e=void 0===c?"":c,g=a.range,h=void 0===g?"":g,i=a.indexRange,j=void 0===i?"":i,k={uri:e,resolvedUri:(0,d.Z)((void 0===b?"":b)||"",e)};if(h||j){var l,m=(h||j).split("-"),n=f().BigInt?f().BigInt(m[0]):parseInt(m[0],10),o=f().BigInt?f().BigInt(m[1]):parseInt(m[1],10);n<Number.MAX_SAFE_INTEGER&&"bigint"==typeof n&&(n=Number(n)),o<Number.MAX_SAFE_INTEGER&&"bigint"==typeof o&&(o=Number(o)),"bigint"==typeof(l="bigint"==typeof o||"bigint"==typeof n?f().BigInt(o)-f().BigInt(n)+f().BigInt(1):o-n+1)&&l<Number.MAX_SAFE_INTEGER&&(l=Number(l)),k.byterange={length:l,offset:n}}return k},s=function(a){var b;return b="bigint"==typeof a.offset||"bigint"==typeof a.length?f().BigInt(a.offset)+f().BigInt(a.length)-f().BigInt(1):a.offset+a.length-1,a.offset+"-"+b},t=function(a){return(a&&"number"!=typeof a&&(a=parseInt(a,10)),isNaN(a))?null:a},u={static:function(a){var b=a.duration,c=a.timescale,d=a.sourceDuration,e=a.periodDuration,f=t(a.endNumber),g=b/(void 0===c?1:c);return"number"==typeof f?{start:0,end:f}:"number"==typeof e?{start:0,end:e/g}:{start:0,end:d/g}},dynamic:function(a){var b=a.NOW,c=a.clientOffset,d=a.availabilityStartTime,e=a.timescale,f=void 0===e?1:e,g=a.duration,h=a.periodStart,i=a.minimumUpdatePeriod,j=a.timeShiftBufferDepth,k=t(a.endNumber),l=(b+c)/1e3,m=d+(void 0===h?0:h);return{start:Math.max(0,Math.floor((l-m-(void 0===j?1/0:j))*f/g)),end:"number"==typeof k?k:Math.min(Math.ceil((l+(void 0===i?0:i)-m)*f/g),Math.floor((l-m)*f/g))}}},v=function(a){var b,c=a.type,d=a.duration,e=a.timescale,f=a.periodDuration,g=a.sourceDuration,h=u[c](a),i=h.start,j=h.end,k=m(i,j).map((b=a,function(a){var c=b.duration,d=b.timescale,e=b.periodStart,f=b.startNumber;return{number:(void 0===f?1:f)+a,duration:c/(void 0===d?1:d),timeline:e,time:a*c}}));if("static"===c){var l=k.length-1,n="number"==typeof f?f:g;k[l].duration=n-d/(void 0===e?1:e)*l}return k},w=function(a){var b=a.baseUrl,c=a.initialization,d=void 0===c?{}
9:c,e=a.sourceDuration,f=a.indexRange,g=a.periodStart,h=a.presentationTime,i=a.number,j=a.duration;if(!b)throw Error(q.NO_BASE_URL);var k=r({baseUrl:b,source:d.sourceURL,range:d.range}),l=r({baseUrl:b,source:b,indexRange:void 0===f?"":f});if(l.map=k,j){var m=v(a);m.length&&(l.duration=m[0].duration,l.timeline=m[0].timeline)}else e&&(l.duration=e,l.timeline=g);return l.presentationTime=h||g,l.number=void 0===i?0:i,[l]},x=function(a,b,c){var d,e=a.sidx.map?a.sidx.map:null,g=a.sidx.duration,h=a.timeline||0,i=a.sidx.byterange,j=i.offset+i.length,k=b.timescale,l=b.references.filter(function(a){return 1!==a.referenceType}),m=[],n=a.endList?"static":"dynamic",o=a.sidx.timeline,p=o,q=a.mediaSequence||0;d="bigint"==typeof b.firstOffset?f().BigInt(j)+b.firstOffset:j+b.firstOffset;for(var r=0;r<l.length;r++){var s=b.references[r],t=s.referencedSize,u=s.subsegmentDuration,v=void 0;v="bigint"==typeof d?d+f().BigInt(t)-f().BigInt(1):d+t-1;var x=d+"-"+v,y={baseUrl:c,timescale:k,timeline:h,periodStart:o,presentationTime:p,number:q,duration:u,sourceDuration:g,indexRange:x,type:n},z=w(y)[0];e&&(z.map=e),m.push(z),"bigint"==typeof d?d+=f().BigInt(t):d+=t,p+=u/k,q++}return a.segments=m,a},y=["AUDIO","SUBTITLES"],z=1/60,A=function(a){return(function(a,b){return l(a.reduce(function(a,c){return c.forEach(function(c){a[b(c)]=c}),a},{}))})(a,function(a){return a.timeline}).sort(function(a,b){return a.timeline>b.timeline?1:-1})},B=function(a,b){for(var c=0;c<a.length;c++)if(a[c].attributes.NAME===b)return a[c];return null},C=function(a){var b=[];return g(a,y,function(a,c,d,e){b=b.concat(a.playlists||[])}),b},D=function(a){var b=a.playlist,c=a.mediaSequence;b.mediaSequence=c,b.segments.forEach(function(a,c){a.number=b.mediaSequence+c})},E=function(a){var b=a.oldPlaylists,c=a.newPlaylists,d=a.timelineStarts;c.forEach(function(a){a.discontinuitySequence=p(d,function(b){return b.timeline===a.timeline});var c=B(b,a.attributes.NAME);if(c&&!a.sidx){var e=a.segments[0],f=p(c.segments,function(a){return Math.abs(a.presentationTime-e.presentationTime)<z});if(-1===f){D({playlist:a,mediaSequence:c.mediaSequence+c.segments.length}),a.segments[0].discontinuity=!0,a.discontinuityStarts.unshift(0),(!c.segments.length&&a.timeline>c.timeline||c.segments.length&&a.timeline>c.segments[c.segments.length-1].timeline)&&a.discontinuitySequence--;return}c.segments[f].discontinuity&&!e.discontinuity&&(e.discontinuity=!0,a.discontinuityStarts.unshift(0),a.discontinuitySequence--),D({playlist:a,mediaSequence:c.segments[f].number})}})},F=function(a){var b=a.oldManifest,c=a.newManifest,d=b.playlists.concat(C(b)),e=c.playlists.concat(C(c));return c.timelineStarts=A([b.timelineStarts,c.timelineStarts]),E({oldPlaylists:d,newPlaylists:e,timelineStarts:c.timelineStarts}),c},G=function(a){return a&&a.uri+"-"+s(a.byterange)},H=function(a){return l(a.reduce(function(a,b){var c,d=b.attributes.id+(b.attributes.lang||"");return a[d]?(b.segments&&(b.segments[0]&&(b.segments[0].discontinuity=!0),(c=a[d].segments).push.apply(c,b.segments)),b.attributes.contentProtection&&(a[d].attributes.contentProtection=b.attributes.contentProtection)):(a[d]=b,a[d].attributes.timelineStarts=[]),a[d].attributes.timelineStarts.push({start:b.attributes.periodStart,timeline:b.attributes.periodStart}),a},{})).map(function(a){var b,c;return a.discontinuityStarts=(b=a.segments||[],c="discontinuity",b.reduce(function(a,b,d){return b[c]&&a.push(d),a},[])),a})},I=function(a,b){var c=G(a.sidx),d=c&&b[c]&&b[c].sidx;return d&&x(a,d,a.sidx.resolvedUri),a},J=function(a,b){if(void 0===b&&(b={}),!Object.keys(b).length)return a;for(var c in a)a[c]=I(a[c],b);return a},K=function(a,b){var c,d=a.attributes,e=a.segments,f=a.sidx,g=a.mediaSequence,h=a.discontinuitySequence,i=a.discontinuityStarts,j={attributes:((c={NAME:d.id,BANDWIDTH:d.bandwidth,CODECS:d.codecs})["PROGRAM-ID"]=1,c),uri:"",endList:"static"===d.type,timeline:d.periodStart,resolvedUri:"",targetDuration:d.duration,discontinuitySequence:h,discontinuityStarts:i,timelineStarts:d.timelineStarts,mediaSequence:g,segments:e};return d.contentProtection&&(j.contentProtection=d.contentProtection),f&&(j.sidx=f),b&&(j.attributes.AUDIO="audio",j.attributes.SUBTITLES="subs"),j},L=function(a){var b,c=a.attributes,d=a.segments,e=a.mediaSequence,f=a.discontinuityStarts,g=a.discontinuitySequence;void 0===d&&(d=[{uri:c.baseUrl,timeline:c.periodStart,resolvedUri:c.baseUrl||"",duration:c.sourceDuration,number:0}],c.duration=c.sourceDuration);var h=((b={NAME:c.id,BANDWIDTH:c.bandwidth})["PROGRAM-ID"]=1,b);return c.codecs&&(h.CODECS=c.codecs),{attributes:h,uri:"",endList:"static"===c.type,timeline:c.periodStart,resolvedUri:c.baseUrl||"",targetDuration:c.duration,timelineStarts:c.timelineStarts,discontinuityStarts:f,discontinuitySequence:g,mediaSequence:e,segments:d}},M=function(a,b,c){void 0===b&&(b={}),void 0===c&&(c=!1);var d,e=a.reduce(function(a,e){var f=e.attributes.role&&e.attributes.role.value||"",g=e.attributes.lang||"",h=e.attributes.label||"main";if(g&&!e.attributes.label){var i=f?" ("+f+")":"";h=""+e.attributes.lang+i}a[h]||(a[h]={language:g,autoselect:!0,default:"main"===f,playlists:[],uri:""});var j=I(K(e,c),b);return a[h].playlists.push(j),void 0===d&&"main"===f&&((d=e).default=!0),a},{});if(!d){var f=Object.keys(e)[0];e[f].default=!0}return e},N=function(a){var b,c=a.attributes,d=a.segments,e=a.sidx,f=a.discontinuityStarts,g={attributes:((b={NAME:c.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:c.width,height:c.height},CODECS:c.codecs,BANDWIDTH:c.bandwidth})["PROGRAM-ID"]=1,b),uri:"",endList:"static"===c.type,timeline:c.periodStart,resolvedUri:"",targetDuration:c.duration,discontinuityStarts:f,timelineStarts:c.timelineStarts,segments:d};return c.contentProtection&&(g.contentProtection=c.contentProtection),e&&(g.sidx=e),g},O=function(a){var b=a.attributes;return"video/mp4"===b.mimeType||"video/webm"===b.mimeType||"video"===b.contentType},P=function(a){var b=a.attributes;return"audio/mp4"===b.mimeType||"audio/webm"===b.mimeType||"audio"===b.contentType},Q=function(a){var b=a.attributes;return"text/vtt"===b.mimeType||"text"===b.contentType},R=function(a,b){a.forEach(function(a){a.mediaSequence=0,a.discontinuitySequence=p(b,function(b){return b.timeline===a.timeline}
9),a.segments&&a.segments.forEach(function(a,b){a.number=b})})},S=function(a){return a?Object.keys(a).reduce(function(b,c){var d=a[c];return b.concat(d.playlists)},[]):[]},T=function(a){var b,c,d=a.dashPlaylists,e=a.locations,f=a.sidxMapping,g=void 0===f?{}:f,h=a.previousManifest;if(!d.length)return{};var i=d[0].attributes,j=i.sourceDuration,k=i.type,l=i.suggestedPresentationDelay,m=i.minimumUpdatePeriod,n=H(d.filter(O)).map(N),o=H(d.filter(P)),p=H(d.filter(Q)),q=d.map(function(a){return a.attributes.captionServices}).filter(Boolean),r={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((c={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},c.SUBTITLES={},c),uri:"",duration:j,playlists:J(n,g)};m>=0&&(r.minimumUpdatePeriod=1e3*m),e&&(r.locations=e),"dynamic"===k&&(r.suggestedPresentationDelay=l);var s,t,u=0===r.playlists.length,v=o.length?M(o,g,u):null,w=p.length?(s=p,void 0===(t=g)&&(t={}),s.reduce(function(a,b){var c=b.attributes.lang||"text";return a[c]||(a[c]={language:c,default:!1,autoselect:!1,playlists:[],uri:""}),a[c].playlists.push(I(L(b),t)),a},{})):null,x=n.concat(S(v),S(w)),y=x.map(function(a){return a.timelineStarts});return r.timelineStarts=A(y),R(x,r.timelineStarts),v&&(r.mediaGroups.AUDIO.audio=v),w&&(r.mediaGroups.SUBTITLES.subs=w),q.length&&(r.mediaGroups["CLOSED-CAPTIONS"].cc=(b=q).reduce(function(a,b){return b&&b.forEach(function(b){var c=b.channel,d=b.language;a[d]={autoselect:!1,default:!1,instreamId:c,language:d},b.hasOwnProperty("aspectRatio")&&(a[d].aspectRatio=b.aspectRatio),b.hasOwnProperty("easyReader")&&(a[d].easyReader=b.easyReader),b.hasOwnProperty("3D")&&(a[d]["3D"]=b["3D"])}),a},{})),h?F({oldManifest:h,newManifest:r}):r},U=function(a,b,c){var d=a.NOW,e=a.clientOffset,f=a.availabilityStartTime,g=a.timescale,h=a.periodStart,i=a.minimumUpdatePeriod;return Math.ceil((((d+e)/1e3+(void 0===i?0:i)-(f+(void 0===h?0:h)))*(void 0===g?1:g)-b)/c)},V=function(a,b){for(var c=a.type,d=a.minimumUpdatePeriod,e=void 0===d?0:d,f=a.media,g=void 0===f?"":f,h=a.sourceDuration,i=a.timescale,j=void 0===i?1:i,k=a.startNumber,l=void 0===k?1:k,m=a.periodStart,n=[],o=-1,p=0;p<b.length;p++){var q=b[p],r=q.d,s=q.r||0,t=q.t||0;o<0&&(o=t),t&&t>o&&(o=t);var u=void 0;if(s<0){var v=p+1;u=v===b.length?"dynamic"===c&&e>0&&g.indexOf("$Number$")>0?U(a,o,r):(h*j-o)/r:(b[v].t-o)/r}else u=s+1;for(var w=l+n.length+u,x=l+n.length;x<w;)n.push({number:x,duration:r/j,time:o,timeline:m}),o+=r,x++}return n},W=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,X=function(a,b){var c;return a.replace(W,(c=b,function(a,b,d,e){if("$$"===a)return"$";if(void 0===c[b])return a;var f=""+c[b];return"RepresentationID"===b?f:(e=d?parseInt(e,10):1,f.length>=e)?f:""+Array(e-f.length+1).join("0")+f}))},Y=function(a,b){var c,e,f={RepresentationID:a.id,Bandwidth:a.bandwidth||0},g=a.initialization,h=void 0===g?{sourceURL:"",range:""}:g,i=r({baseUrl:a.baseUrl,source:X(h.sourceURL,f),range:h.range});return(c=a,e=b,c.duration||e?c.duration?v(c):V(c,e):[{number:c.startNumber||1,duration:c.sourceDuration,time:0,timeline:c.periodStart}]).map(function(b){f.Number=b.number,f.Time=b.time;var c=X(a.media||"",f),e=a.timescale||1,g=a.presentationTimeOffset||0,h=a.periodStart+(b.time-g)/e,j={uri:c,timeline:b.timeline,duration:b.duration,resolvedUri:(0,d.Z)(a.baseUrl||"",c),map:i,number:b.number,presentationTime:h};return j})},Z=function(a,b){var c=a.baseUrl,d=a.initialization,e=void 0===d?{}:d,f=r({baseUrl:c,source:e.sourceURL,range:e.range}),g=r({baseUrl:c,source:b.media,range:b.mediaRange});return g.map=f,g},$=function(a,b){var c,d=a.duration,e=a.segmentUrls,f=a.periodStart;if(!d&&!b||d&&b)throw Error(q.SEGMENT_TIME_UNSPECIFIED);var g=(void 0===e?[]:e).map(function(b){return Z(a,b)});return d&&(c=v(a)),b&&(c=V(a,b)),c.map(function(b,c){if(g[c]){var d=g[c],e=a.timescale||1,h=a.presentationTimeOffset||0;return d.timeline=b.timeline,d.duration=b.duration,d.number=b.number,d.presentationTime=f+(b.time-h)/e,d}}).filter(function(a){return a})},_=function(a){var b,c,d=a.attributes,e=a.segmentInfo;e.template?(c=Y,b=k(d,e.template)):e.base?(c=w,b=k(d,e.base)):e.list&&(c=$,b=k(d,e.list));var f={attributes:d};if(!c)return f;var g=c(b,e.segmentTimeline);if(b.duration){var h=b,i=h.duration,j=h.timescale,l=void 0===j?1:j;b.duration=i/l}else g.length?b.duration=g.reduce(function(a,b){return Math.max(a,Math.ceil(b.duration))},0):b.duration=0;
9return f.attributes=b,f.segments=g,e.base&&b.indexRange&&(f.sidx=g[0],f.segments=[]),f},aa=function(a,b){return o(a.childNodes).filter(function(a){return a.tagName===b})},ab=function(a){return a.textContent.trim()},ac=function(a){var b=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(a);if(!b)return 0;var c=b.slice(1),d=c[0],e=c[1],f=c[2],g=c[3],h=c[4],i=c[5];return 31536e3*parseFloat(d||0)+2592e3*parseFloat(e||0)+86400*parseFloat(f||0)+3600*parseFloat(g||0)+60*parseFloat(h||0)+parseFloat(i||0)},ad={mediaPresentationDuration:function(a){return ac(a)},availabilityStartTime:function(a){var b;return b=a,/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(b)&&(b+="Z"),Date.parse(b)/1e3},minimumUpdatePeriod:function(a){return ac(a)},suggestedPresentationDelay:function(a){return ac(a)},type:function(a){return a},timeShiftBufferDepth:function(a){return ac(a)},start:function(a){return ac(a)},width:function(a){return parseInt(a,10)},height:function(a){return parseInt(a,10)},bandwidth:function(a){return parseInt(a,10)},startNumber:function(a){return parseInt(a,10)},timescale:function(a){return parseInt(a,10)},presentationTimeOffset:function(a){return parseInt(a,10)},duration:function(a){var b=parseInt(a,10);return isNaN(b)?ac(a):b},d:function(a){return parseInt(a,10)},t:function(a){return parseInt(a,10)},r:function(a){return parseInt(a,10)},DEFAULT:function(a){return a}},ae=function(a){return a&&a.attributes?o(a.attributes).reduce(function(a,b){var c=ad[b.name]||ad.DEFAULT;return a[b.name]=c(b.value),a},{}):{}},af={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},ag=function(a,b){return b.length?n(a.map(function(a){return b.map(function(b){return(0,d.Z)(a,ab(b))})})):a},ah=function(a){var b=aa(a,"SegmentTemplate")[0],c=aa(a,"SegmentList")[0],d=c&&aa(c,"SegmentURL").map(function(a){return k({tag:"SegmentURL"},ae(a))}),e=aa(a,"SegmentBase")[0],f=c||b,g=f&&aa(f,"SegmentTimeline")[0],h=c||e||b,i=h&&aa(h,"Initialization")[0],j=b&&ae(b);j&&i?j.initialization=i&&ae(i):j&&j.initialization&&(j.initialization={sourceURL:j.initialization});var l={template:j,segmentTimeline:g&&aa(g,"S").map(function(a){return ae(a)}),list:c&&k(ae(c),{segmentUrls:d,initialization:ae(i)}),base:e&&k(ae(e),{initialization:ae(i)})};return Object.keys(l).forEach(function(a){l[a]||delete l[a]}),l},ai=function(a){return"urn:scte:dash:cc:cea-608:2015"===a.schemeIdUri?("string"!=typeof a.value?[]:a.value.split(";")).map(function(a){if(c=a,/^CC\d=/.test(a)){var b,c,d=a.split("=");b=d[0],c=d[1]}else/^CC\d$/.test(a)&&(b=a);return{channel:b,language:c}}):"urn:scte:dash:cc:cea-708:2015"===a.schemeIdUri?("string"!=typeof a.value?[]:a.value.split(";")).map(function(a){var b={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(a)){var c=a.split("="),d=c[0],e=c[1],f=void 0===e?"":e;b.channel=d,b.language=a,f.split(",").forEach(function(a){var c=a.split(":"),d=c[0],e=c[1];"lang"===d?b.language=e:"er"===d?b.easyReader=Number(e):"war"===d?b.aspectRatio=Number(e):"3D"===d&&(b["3D"]=Number(e))})}else b.language=a;return b.channel&&(b.channel="SERVICE"+b.channel),b}):void 0},aj=function(a){var b=a.attributes,c=a.priorPeriodAttributes,d=a.mpdType;return"number"==typeof b.start?b.start:c&&"number"==typeof c.start&&"number"==typeof c.duration?c.start+c.duration:c||"static"!==d?null:0},ak=function(a,b){void 0===b&&(b={});var c=b,d=c.manifestUri,e=c.NOW,f=void 0===e?Date.now():e,g=c.clientOffset,i=aa(a,"Period");if(!i.length)throw Error(q.INVALID_NUMBER_OF_PERIOD);var j=aa(a,"Location"),l=ae(a),m=ag([void 0===d?"":d],aa(a,"BaseURL"));l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=f,l.clientOffset=void 0===g?0:g,j.length&&(l.locations=j.map(ab));var o,p,r=[];return i.forEach(function(a,b){var c=ae(a),d=r[b-1];c.start=aj({attributes:c,priorPeriodAttributes:d?d.attributes:null,mpdType:l.type}),r.push({node:a,attributes:c})}),{locations:l.locations,representationInfo:n(r.map((o=l,p=m,function(a,b){var c=ag(p,aa(a.node,"BaseURL")),d=k(o,{periodStart:a.attributes.start});"number"==typeof a.attributes.duration&&(d.periodDuration=a.attributes.duration);var e,f,g,i=aa(a.node,"AdaptationSet"),j=ah(a.node);return n(i.map((e=d,f=c,g=j,function(a){var b=ae(a),c=ag(f,aa(a,"BaseURL")),d=aa(a,"Role")[0],i={role:ae(d)},j=k(e,b,i),l=aa(a,"Accessibility")[0],m=ai(ae(l));m&&(j=k(j,{captionServices:m}));var o=aa(a,"Label")[0];o&&o.childNodes.length&&(j=k(j,{label:o.childNodes[0].nodeValue.trim()}));var p,q=(p=aa(a,"ContentProtection")).reduce(function(a,b){var c=ae(b);c.schemeIdUri&&(c.schemeIdUri=c.schemeIdUri.toLowerCase());var d=af[c.schemeIdUri];if(d){a[d]={attributes:c};
9var e=aa(b,"cenc:pssh")[0];if(e){var f=ab(e);a[d].pssh=f&&(0,h.Z)(f)}}return a},{});Object.keys(q).length&&(j=k(j,{contentProtection:q}));var r,s,t,u=ah(a),v=aa(a,"Representation"),w=k(g,u);return n(v.map((r=j,s=c,t=w,function(a){var b=aa(a,"BaseURL"),c=ag(s,b),d=k(r,ae(a)),e=ah(a);return c.map(function(a){return{segmentInfo:k(t,e),attributes:k(d,{baseUrl:a})}})})))})))})))}},al=function(a){if(""===a)throw Error(q.DASH_EMPTY_MANIFEST);var b,c,d=new i.DOMParser;try{c=(b=d.parseFromString(a,"application/xml"))&&"MPD"===b.documentElement.tagName?b.documentElement:null}catch(e){}if(!c||c&&c.getElementsByTagName("parsererror").length>0)throw Error(q.DASH_INVALID_XML);return c},am=function(a){var b=aa(a,"UTCTiming")[0];if(!b)return null;var c=ae(b);switch(c.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":c.method="HEAD";break;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":c.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":c.method="DIRECT",c.value=Date.parse(c.value);break;default:throw Error(q.UNSUPPORTED_UTC_TIMING_SCHEME)}return c},an=function(a,b){void 0===b&&(b={});var c,d=ak(al(a),b),e=(c=d.representationInfo).map(_);return T({dashPlaylists:e,locations:d.locations,sidxMapping:b.sidxMapping,previousManifest:b.previousManifest})},ao=function(a){return am(al(a))}},84221:function(a,b,c){var d=c(46894).getUint64,e=function(a){var b=new DataView(a.buffer,a.byteOffset,a.byteLength),c={version:a[0],flags:new Uint8Array(a.subarray(1,4)),references:[],referenceId:b.getUint32(4),timescale:b.getUint32(8)},e=12;0===c.version?(c.earliestPresentationTime=b.getUint32(e),c.firstOffset=b.getUint32(e+4),e+=8):(c.earliestPresentationTime=d(a.subarray(e)),c.firstOffset=d(a.subarray(e+8)),e+=16),e+=2;var f=b.getUint16(e);for(e+=2;f>0;e+=12,f--)c.references.push({referenceType:(128&a[e])>>>7,referencedSize:2147483647&b.getUint32(e),subsegmentDuration:b.getUint32(e+4),startsWithSap:!!(128&a[e+8]),sapType:(112&a[e+8])>>>4,sapDeltaTime:268435455&b.getUint32(e+8)});return c};a.exports=e},51489:function(a){var b,c,d,e,f,g,h;b=function(a){return 9e4*a},c=function(a,b){return a*b},d=function(a){return a/9e4},e=function(a,b){return a/b},f=function(a,c){return b(e(a,c))},g=function(a,b){return c(d(a),b)},h=function(a,b,c){return d(c?a:a-b)},a.exports={ONE_SECOND_IN_TS:9e4,secondsToVideoTs:b,secondsToAudioTs:c,videoTsToSeconds:d,audioTsToSeconds:e,audioTsToVideoTs:f,videoTsToAudioTs:g,metadataTsToSeconds:h}},46894:function(a){var b=function(a){var b,c=new DataView(a.buffer,a.byteOffset,a.byteLength);return c.getBigUint64?(b=c.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(b):b:4294967296*c.getUint32(0)+c.getUint32(4)};a.exports={getUint64:b,MAX_UINT32:4294967296}},93512:function(){},75974:function(a){a.exports=function(a,b){var c,d=null;try{c=JSON.parse(a,b)}catch(e){d=e}return[d,c]}},49945:function(a){var b,c,d,e,f,g;c=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,d=/^(?=([^\/?#]*))\1([^]*)$/,e=/(?:\/|^)\.(?=\/)/g,f=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,g={buildAbsoluteURL:function(a,b,c){if(c=c||{},a=a.trim(),!(b=b.trim())){if(!c.alwaysNormalize)return a;var e=g.parseURL(a);if(!e)throw Error("Error trying to parse base URL.");return e.path=g.normalizePath(e.path),g.buildURLFromParts(e)}var f=g.parseURL(b);if(!f)throw Error("Error trying to parse relative URL.");if(f.scheme)return c.alwaysNormalize?(f.path=g.normalizePath(f.path),g.buildURLFromParts(f)):b;var h=g.parseURL(a);if(!h)throw Error("Error trying to parse base URL.");if(!h.netLoc&&h.path&&"/"!==h.path[0]){var i=d.exec(h.path);h.netLoc=i[1],h.path=i[2]}h.netLoc&&!h.path&&(h.path="/");var j={scheme:h.scheme,netLoc:f.netLoc,path:null,params:f.params,query:f.query,fragment:f.fragment};if(!f.netLoc&&(j.netLoc=h.netLoc,"/"!==f.path[0])){if(f.path){var k=h.path,l=k.substring(0,k.lastIndexOf("/")+1)+f.path;j.path=g.normalizePath(l)}else j.path=h.path,f.params||(j.params=h.params,f.query||(j.query=h.query
9))}return null===j.path&&(j.path=c.alwaysNormalize?g.normalizePath(f.path):f.path),g.buildURLFromParts(j)},parseURL:function(a){var b=c.exec(a);return b?{scheme:b[1]||"",netLoc:b[2]||"",path:b[3]||"",params:b[4]||"",query:b[5]||"",fragment:b[6]||""}:null},normalizePath:function(a){for(a=a.split("").reverse().join("").replace(e,"");a.length!==(a=a.replace(f,"")).length;);return a.split("").reverse().join("")},buildURLFromParts:function(a){return a.scheme+a.netLoc+a.path+a.params+a.query+a.fragment}},a.exports=g},78984:function(a,b,c){!function(b,d){a.exports=d(c(85215))}(this,function(a){"use strict";function b(a){if(void 0===a)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return a}a=a&&a.hasOwnProperty("default")?a.default:a;var c=function(a){var b=this;return b.id=a.id,b.label=b.id,b.width=a.width,b.height=a.height,b.bitrate=a.bandwidth,b.frameRate=a.frameRate,b.enabled_=a.enabled,Object.defineProperty(b,"enabled",{get:function(){return b.enabled_()},set:function(a){b.enabled_(a)}}),b},d=function(a){function d(){var c,d=b(b(c=a.call(this)||this));return d.levels_=[],d.selectedIndex_=-1,Object.defineProperty(d,"selectedIndex",{get:function(){return d.selectedIndex_}}),Object.defineProperty(d,"length",{get:function(){return d.levels_.length}}),d||b(c)}e=d,f=a,e.prototype=Object.create(f.prototype),e.prototype.constructor=e,e.__proto__=f;var e,f,g=d.prototype;return g.addQualityLevel=function(a){var b=this.getQualityLevelById(a.id);if(b)return b;var d=this.levels_.length;return b=new c(a),""+d in this||Object.defineProperty(this,d,{get:function(){return this.levels_[d]}}),this.levels_.push(b),this.trigger({qualityLevel:b,type:"addqualitylevel"}),b},g.removeQualityLevel=function(a){for(var b=null,c=0,d=this.length;c<d;c++)if(this[c]===a){b=this.levels_.splice(c,1)[0],this.selectedIndex_===c?this.selectedIndex_=-1:this.selectedIndex_>c&&this.selectedIndex_--;break}return b&&this.trigger({qualityLevel:a,type:"removequalitylevel"}),b},g.getQualityLevelById=function(a){for(var b=0,c=this.length;b<c;b++){var d=this[b];if(d.id===a)return d}return null},g.dispose=function(){this.selectedIndex_=-1,this.levels_.length=0},d}(a.EventTarget);for(var e in d.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"},d.prototype.allowedEvents_)d.prototype["on"+e]=null;var f="2.2.1",g=a.registerPlugin||a.plugin,h=function(a,b){var c=a.qualityLevels,e=new d,g=function b(){e.dispose(),a.qualityLevels=c,a.off("dispose",b)};return a.on("dispose",g),a.qualityLevels=function(){return e},a.qualityLevels.VERSION=f,e},i=function(b){return h(this,a.mergeOptions({},b))};return g("qualityLevels",i),i.VERSION=f,i})},97612:function(a,b,c){!function(b,d){a.exports=d(c(85215))}(this,function(a){"use strict";a=a&&a.hasOwnProperty("default")?a.default:a;var b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&"function"==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a};function c(a){this.value=a}function d(a){var b,d;function e(b,d){try{var g=a[b](d),h=g.value;h instanceof c?Promise.resolve(h.value).then(function(a){e("next",a)},function(a){e("throw",a)}):f(g.done?"return":"normal",g.value)}catch(i){f("throw",i)}}function f(a,c){switch(a){case"return":b.resolve({value:c,done:!0});break;case"throw":b.reject(c);break;default:b.resolve({value:c,done:!1})}(b=b.next)?e(b.key,b.arg):d=null}this._invoke=function(a,c){return new Promise(function(f,g){var h={key:a,arg:c,resolve:f,reject:g,next:null};d?d=d.next=h:(b=d=h,e(a,c))})},"function"!=typeof a.return&&(this.return=void 0)}"function"==typeof Symbol&&Symbol.asyncIterator&&(d.prototype[Symbol.asyncIterator]=function(){return this}),d.prototype.next=function(a){return this._invoke("next",a)},d.prototype.throw=function(a){return this._invoke("throw",a)},d.prototype.return=function(a){return this._invoke("return",a)};var e=function(a,b){if(!(a instanceof b))throw TypeError("Cannot call a class as a function")},f=function(a,b){if("function"!=typeof b&&null!==b)throw TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)},g=function(a,b){if(!a)throw ReferenceError("this hasn't been initialised - super() hasn't been called");
9return b&&("object"==typeof b||"function"==typeof b)?b:a},h=a.getComponent("MenuButton"),i=a.getComponent("Menu"),j=a.getComponent("Component"),k=a.dom,l=function(a){function b(c){return e(this,b),g(this,a.call(this,c,{title:c.localize("Quality"),name:"QualityButton"}))}return f(b,a),b.prototype.createItems=function(){return[]},b.prototype.createMenu=function(){var a=new i(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var b,c=k.createEl("li",{className:"vjs-menu-title",innerHTML:"string"!=typeof(b=this.options_.title)?b:b.charAt(0).toUpperCase()+b.slice(1),tabIndex:-1}),d=new j(this.player_,{el:c});this.hideThreshold_+=1,a.addItem(d)}if(this.items=this.createItems(),this.items)for(var e=0;e<this.items.length;e++)a.addItem(this.items[e]);return a},b}(h),m=function(a){function b(c,d,f,h){e(this,b);var i=g(this,a.call(this,c,{label:d.label,selectable:!0,selected:d.selected||!1}));return i.item=d,i.qualityButton=f,i.plugin=h,i}return f(b,a),b.prototype.handleClick=function(){for(var a=0;a<this.qualityButton.items.length;
9++a)this.qualityButton.items[a].selected(!1);this.plugin.setQuality(this.item.value),this.selected(!0)},b}(a.getComponent("MenuItem")),n={},o=a.registerPlugin||a.plugin,p=function(){function a(b,c){e(this,a),this.player=b,this.config=c,this.player.qualityLevels&&this.getHls()&&(this.createQualityButton(),this.bindPlayerEvents())}return a.prototype.getHls=function(){return this.player.tech({IWillNotUseThisInPlugins:!0}).hls},a.prototype.bindPlayerEvents=function(){this.player.qualityLevels().on("addqualitylevel",this.onAddQualityLevel.bind(this))},a.prototype.createQualityButton=function(){var a=this.player;this._qualityButton=new l(a);var b=a.controlBar.children().length-2,c=a.controlBar.addChild(this._qualityButton,{componentClass:"qualitySelector"},this.config.placementIndex||b);if(c.addClass("vjs-quality-selector"),this.config.displayCurrentQuality)this.setButtonInnerText("auto");else{var d=" "+(this.config.vjsIconClass||"vjs-icon-hd");c.menuButton_.$(".vjs-icon-placeholder").className+=d}c.removeClass("vjs-hidden")},a.prototype.setButtonInnerText=function(a){this._qualityButton.menuButton_.$(".vjs-icon-placeholder").innerHTML=a},a.prototype.getQualityMenuItem=function(a){var b=this.player;return new m(b,a,this._qualityButton,this)},a.prototype.onAddQualityLevel=function(){for(var a=this,c=this.player,d=c.qualityLevels().levels_||[],e=[],f=function(b){if(!e.filter(function(a){return a.item&&a.item.value===d[b].height}).length){var c=a.getQualityMenuItem.call(a,{label:d[b].height+"p",value:d[b].height});e.push(c)}},g=0;g<d.length;++g)f(g);e.sort(function(a,c){return(void 0===a?"undefined":b(a))!=="object"||(void 0===c?"undefined":b(c))!=="object"||a.item.value<c.item.value?-1:a.item.value>c.item.value?1:0}),e.push(this.getQualityMenuItem.call(this,{label:c.localize("Auto"),value:"auto",selected:!0})),this._qualityButton&&(this._qualityButton.createItems=function(){return e},this._qualityButton.update())},a.prototype.setQuality=function(a){var b=this.player.qualityLevels();this._currentQuality=a,this.config.displayCurrentQuality&&this.setButtonInnerText("auto"===a?a:a+"p");for(var c=0;c<b.length;++c){var d=b[c];d.enabled=d.height===a||"auto"===a}this._qualityButton.unpressButton()},a.prototype.getCurrentQuality=function(){return this._currentQuality||"auto"},a}(),q=function(a,b){a.addClass("vjs-hls-quality-selector"),a.hlsQualitySelector=new p(a,b)},r=function(b){var c=this;this.ready(function(){q(c,a.mergeOptions(n,b))})};return o("hlsQualitySelector",r),r.VERSION="1.1.4",r})},13407:function(a,b,c){var d=c(58908),e=a.exports={WebVTT:c(63706),VTTCue:c(22230),VTTRegion:c(13710)};d.vttjs=e,d.WebVTT=e.WebVTT;var f=e.VTTCue,g=e.VTTRegion,h=d.VTTCue,i=d.VTTRegion;e.shim=function(){d.VTTCue=f,d.VTTRegion=g},e.restore=function(){d.VTTCue=h,d.VTTRegion=i},d.VTTCue||e.shim()},63706:function(a,b,c){var d=c(89144),e=Object.create||function(){function a(){}return function(b){if(1!==arguments.length)throw Error("Object.create shim only accepts one parameter.");return a.prototype=b,new a}}();function f(a,b){this.name="ParsingError",this.code=a.code,this.message=b||a.message}function g(a){function b(a,b,c,d){return(0|a)*3600+(0|b)*60+(0|c)+(0|d)/1e3}var c=a.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return c?c[3]?b(c[1],c[2],c[3].replace(":",""),c[4]):c[1]>59?b(c[1],c[2],0,c[4]):b(0,c[1],c[2],c[4]):null}function h(){this.values=e(null)}function i(a,b,c,d){var e=d?a.split(d):[a];for(var f in e){if("string"==typeof e[f]){var g=e[f].split(c);if(2===g.length){var h=g[0].trim(),i=g[1].trim();b(h,i)}}}}function j(a,b,c){var d=a;function e(){var b=g(a);if(null===b)throw new f(f.Errors.BadTimeStamp,"Malformed timestamp: "+d);return a=a.replace(/^[^\sa-zA-Z-]+/,""),b}function j(){a=a.replace(/^\s+/,"")}if(j(),b.startTime=e(),j(),"-->"!==a.substr(0,3))throw new f(f.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+d);a=a.substr(3),j(),b.endTime=e(),j(),function(a,b){var d=new h;i(a,function(a,b){switch(a){case"region":for(var e=c.length-1;e>=0;e--)if(c[e].id===b){d.set(a,c[e].region);break}break;case"vertical":d.alt(a,b,["rl","lr"]);break;case"line":var f=b.split(","),g=f[0];d.integer(a,g),d.percent(a,g)&&d.set("snapToLines",!1),d.alt(a,g,["auto"]),2===f.length&&d.alt("lineAlign",f[1],["start","center","end"]);break;case"position":f=b.split(","),d.percent(a,f[0]),2===f.length&&d.alt("positionAlign",f[1],["start","center","end"]);break;case"size":d.percent(a,b);break;case"align":d.alt(a,b,["start","center","end","left","right"])}},/:/,/\s/),b.region=d.get("region",null),b.vertical=d.get("vertical","");try{b.line=d.get("line","auto")}catch(e){}b.lineAlign=d.get("lineAlign","start"),b.snapToLines=d.get("snapToLines",!0),b.size=d.get("size",100);try{b.align=d.get("align","center")}catch(f){b.align=d.get("align","middle")}try{b.position=d.get("position","auto")}catch(g){b.position=d.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},b.align)}b.positionAlign=d.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},b.align)}(a,b)}f.prototype=e(Error.prototype),f.prototype.constructor=f,f.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},h.prototype={set:function(a,b){this.get(a)||""===b||(this.values[a]=b)},get:function(a,b,c){return c?this.has(a)?this.values[a]:b[c]:this.has(a)?this.values[a]:b},has:function(a){return a in this.values},alt:function(a,b,c){for(var d=0;d<c.length;++d)if(b===c[d]){this.set(a,b);break}},integer:function(a,b){/^-?\d+$/.test(b)&&this.set(a,parseInt(b,10))},percent:function(a,b){return!!(b.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(b=parseFloat(b))>=0&&b<=100)&&(this.set(a,b),!0)}};var k=d.createElement&&d.createElement("textarea"),l={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},m={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},n={v:"title",lang:"lang"},o={rt:"ruby"};function p(a,b){function c(){if(!b)return null;var a,c=b.match(/^([^<]*)(<[^>
9]*>?)?/);return a=c[1]?c[1]:c[2],b=b.substr(a.length),a}function d(a){return k.innerHTML=a,a=k.textContent,k.textContent="",a}function e(a,b){return!o[b.localName]||o[b.localName]===a.localName}function f(b,c){var d=l[b];if(!d)return null;var e=a.document.createElement(d),f=n[b];return f&&c&&(e[f]=c.trim()),e}for(var h,i=a.document.createElement("div"),j=i,p=[];null!==(h=c());){if("<"===h[0]){if("/"===h[1]){p.length&&p[p.length-1]===h.substr(2).replace(">","")&&(p.pop(),j=j.parentNode);continue}var q,r=g(h.substr(1,h.length-2));if(r){q=a.document.createProcessingInstruction("timestamp",r),j.appendChild(q);continue}var s=h.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!s||!(q=f(s[1],s[3]))||!e(j,q))continue;if(s[2]){var t=s[2].split(".");t.forEach(function(a){var b=/^bg_/.test(a),c=b?a.slice(3):a;if(m.hasOwnProperty(c)){var d=b?"background-color":"color",e=m[c];q.style[d]=e}}),q.className=t.join(" ")}p.push(s[1]),j.appendChild(q),j=q;continue}j.appendChild(a.document.createTextNode(d(h)))}return i}var q=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function r(a){for(var b=0;b<q.length;b++){var c=q[b];if(a>=c[0]&&a<=c[1])return!0}return!1}function s(){}function t(a,b,c){s.call(this),this.cue=b,this.cueDiv=p(a,b.text);var d={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===b.vertical?"horizontal-tb":"lr"===b.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(d,this.cueDiv),this.div=a.document.createElement("div"),d={direction:function(a){var b,c=[],d="";if(!a||!a.childNodes)return"ltr";function e(a,b){for(var c=b.childNodes.length-1;c>=0;c--)a.push(b.childNodes[c])}function f(a){if(!a||!a.length)return null;var b=a.pop(),c=b.textContent||b.innerText;if(c){var d=c.match(/^.*(\n|\r)/);return d?(a.length=0,d[0]):c}return"ruby"===b.tagName?f(a):b.childNodes?(e(a,b),f(a)):void 0}for(e(c,a);d=f(c);)for(var g=0;g<d.length;g++)if(r(d.charCodeAt(g)))return"rtl";return"ltr"}(this.cueDiv),writingMode:""===b.vertical?"horizontal-tb":"lr"===b.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===b.align?"center":b.align,font:c.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(d),this.div.appendChild(this.cueDiv);var e=0;switch(b.positionAlign){case"start":e=b.position;break;case"center":e=b.position-b.size/2;break;case"end":e=b.position-b.size}""===b.vertical?this.applyStyles({left:this.formatStyle(e,"%"),width:this.formatStyle(b.size,"%")}):this.applyStyles({top:this.formatStyle(e,"%"),height:this.formatStyle(b.size,"%")}),this.move=function(a){this.applyStyles({top:this.formatStyle(a.top,"px"),bottom:this.formatStyle(a.bottom,"px"),left:this.formatStyle(a.left,"px"),right:this.formatStyle(a.right,"px"),height:this.formatStyle(a.height,"px"),width:this.formatStyle(a.width,"px")}
9)}}function u(a){var b,c,d,e;if(a.div){c=a.div.offsetHeight,d=a.div.offsetWidth,e=a.div.offsetTop;var f=(f=a.div.childNodes)&&(f=f[0])&&f.getClientRects&&f.getClientRects();a=a.div.getBoundingClientRect(),b=f?Math.max(f[0]&&f[0].height||0,a.height/f.length):0}this.left=a.left,this.right=a.right,this.top=a.top||e,this.height=a.height||c,this.bottom=a.bottom||e+(a.height||c),this.width=a.width||d,this.lineHeight=void 0!==b?b:a.lineHeight}function v(a,b,c,d){var e=new u(b),f=b.cue,g=function(a){if("number"==typeof a.line&&(a.snapToLines||a.line>=0&&a.line<=100))return a.line;if(!a.track||!a.track.textTrackList||!a.track.textTrackList.mediaElement)return -1;for(var b=a.track,c=b.textTrackList,d=0,e=0;e<c.length&&c[e]!==b;e++)"showing"===c[e].mode&&d++;return -1* ++d}(f),h=[];if(f.snapToLines){switch(f.vertical){case"":h=["+y","-y"],i="height";break;case"rl":h=["+x","-x"],i="width";break;case"lr":h=["-x","+x"],i="width"}var i,j=e.lineHeight,k=j*Math.round(g),l=c[i]+j,m=h[0];Math.abs(k)>l&&(k=k<0?-1:1,k*=Math.ceil(l/j)*j),g<0&&(k+=""===f.vertical?c.height:c.width,h=h.reverse()),e.move(m,k)}else{var n=e.lineHeight/c.height*100;switch(f.lineAlign){case"center":g-=n/2;break;case"end":g-=n}switch(f.vertical){case"":b.applyStyles({top:b.formatStyle(g,"%")});break;case"rl":b.applyStyles({left:b.formatStyle(g,"%")});break;case"lr":b.applyStyles({right:b.formatStyle(g,"%")})}h=["+y","-x","+x","-y"],e=new u(b)}var o=function(a,b){for(var e,f=new u(a),g=1,h=0;h<b.length;h++){for(;a.overlapsOppositeAxis(c,b[h])||a.within(c)&&a.overlapsAny(d);)a.move(b[h]);if(a.within(c))return a;var i=a.intersectPercentage(c);g>i&&(e=new u(a),g=i),a=new u(f)}return e||f}(e,h);b.move(o.toCSSCompatValues(c))}function w(){}s.prototype.applyStyles=function(a,b){for(var c in b=b||this.div,a)a.hasOwnProperty(c)&&(b.style[c]=a[c])},s.prototype.formatStyle=function(a,b){return 0===a?0:a+b},t.prototype=e(s.prototype),t.prototype.constructor=t,u.prototype.move=function(a,b){switch(b=void 0!==b?b:this.lineHeight,a){case"+x":this.left+=b,this.right+=b;break;case"-x":this.left-=b,this.right-=b;break;case"+y":this.top+=b,this.bottom+=b;break;case"-y":this.top-=b,this.bottom-=b}},u.prototype.overlaps=function(a){return this.left<a.right&&this.right>a.left&&this.top<a.bottom&&this.bottom>a.top},u.prototype.overlapsAny=function(a){for(var b=0;b<a.length;b++)if(this.overlaps(a[b]))return!0;return!1},u.prototype.within=function(a){return this.top>=a.top&&this.bottom<=a.bottom&&this.left>=a.left&&this.right<=a.right},u.prototype.overlapsOppositeAxis=function(a,b){switch(b){case"+x":return this.left<a.left;case"-x":return this.right>a.right;case"+y":return this.top<a.top;case"-y":return this.bottom>a.bottom}},u.prototype.intersectPercentage=function(a){var b=Math.max(0,Math.min(this.right,a.right)-Math.max(this.left,a.left)),c=Math.max(0,Math.min(this.bottom,a.bottom)-Math.max(this.top,a.top));return b*c/(this.height*this.width)},u.prototype.toCSSCompatValues=function(a){return{top:this.top-a.top,bottom:a.bottom-this.bottom,left:this.left-a.left,right:a.right-this.right,height:this.height,width:this.width}},u.getSimpleBoxPosition=function(a){var b=a.div?a.div.offsetHeight:a.tagName?a.offsetHeight:0,c=a.div?a.div.offsetWidth:a.tagName?a.offsetWidth:0,d=a.div?a.div.offsetTop:a.tagName?a.offsetTop:0;a=a.div?a.div.getBoundingClientRect():a.tagName?a.getBoundingClientRect():a;var e={left:a.left,right:a.right,top:a.top||d,height:a.height||b,bottom:a.bottom||d+(a.height||b),width:a.width||c};return e},w.StringDecoder=function(){return{decode:function(a){if(!a)return"";if("string"!=typeof a)throw Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(a))}}},w.convertCueToDOMTree=function(a,b){return a&&b?p(a,b):null},w.processCues=function(a,b,c){if(!a||!b||!c)return null;for(;c.firstChild;)c.removeChild(c.firstChild);var d=a.document.createElement("div");if(d.style.position="absolute",d.style.left="0",d.style.right="0",d.style.top="0",d.style.bottom="0",d.style.margin="1.5%",c.appendChild(d),!function(a){for(var b=0;b<a.length;b++)if(a[b].hasBeenReset||!a[b].displayState)return!0;return!1}(b)){for(var e=0;e<b.length;e++)d.appendChild(b[e].displayState);return}var f=[],g=u.getSimpleBoxPosition(d),h={font:Math.round(5*g.height)/100+"px sans-serif"};!function(){for(var c,e,i=0;i<b.length;i++)e=b[i],c=new t(a,e,h),d.appendChild(c.div),v(a,c,g,f),e.displayState=c.div,f.push(u.getSimpleBoxPosition(c))}()},w.Parser=function(a,b,c){c||(c=b,b={}),b||(b={}),this.window=a,this.vttjs=b,this.state="INITIAL",this.buffer="",this.decoder=c||new TextDecoder("utf8"),this.regionList=[]}
9,w.Parser.prototype={reportOrThrowError:function(a){if(a instanceof f)this.onparsingerror&&this.onparsingerror(a);else throw a},parse:function(a){var b=this;function c(){for(var a=b.buffer,c=0;c<a.length&&"\r"!==a[c]&&"\n"!==a[c];)++c;var d=a.substr(0,c);return"\r"===a[c]&& ++c,"\n"===a[c]&& ++c,b.buffer=a.substr(c),d}function d(a){a.match(/X-TIMESTAMP-MAP/)?i(a,function(a,c){if("X-TIMESTAMP-MAP"===a){var d,e;d=c,e=new h,i(d,function(a,b){switch(a){case"MPEGT":e.integer(a+"S",b);break;case"LOCA":e.set(a+"L",g(b))}},/[^\d]:/,/,/),b.ontimestampmap&&b.ontimestampmap({MPEGTS:e.get("MPEGTS"),LOCAL:e.get("LOCAL")})}},/=/):i(a,function(a,c){"Region"===a&&!function(a){var c=new h;if(i(a,function(a,b){switch(a){case"id":c.set(a,b);break;case"width":c.percent(a,b);break;case"lines":c.integer(a,b);break;case"regionanchor":case"viewportanchor":var d=b.split(",");if(2!==d.length)break;var e=new h;if(e.percent("x",d[0]),e.percent("y",d[1]),!e.has("x")||!e.has("y"))break;c.set(a+"X",e.get("x")),c.set(a+"Y",e.get("y"));break;case"scroll":c.alt(a,b,["up"])}},/=/,/\s/),c.has("id")){var d=new(b.vttjs.VTTRegion||b.window.VTTRegion);d.width=c.get("width",100),d.lines=c.get("lines",3),d.regionAnchorX=c.get("regionanchorX",0),d.regionAnchorY=c.get("regionanchorY",100),d.viewportAnchorX=c.get("viewportanchorX",0),d.viewportAnchorY=c.get("viewportanchorY",100),d.scroll=c.get("scroll",""),b.onregion&&b.onregion(d),b.regionList.push({id:c.get("id"),region:d})}}(c)},/:/)}a&&(b.buffer+=b.decoder.decode(a,{stream:!0}));try{if("INITIAL"===b.state){if(!/\r\n|\n/.test(b.buffer))return this;var e,k=(e=c()).match(/^WEBVTT([ \t].*)?$/);if(!k||!k[0])throw new f(f.Errors.BadSignature);b.state="HEADER"}for(var l=!1;b.buffer&&/\r\n|\n/.test(b.buffer);)switch(l?l=!1:e=c(),b.state){case"HEADER":/:/.test(e)?d(e):e||(b.state="ID");continue;case"NOTE":e||(b.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(e)){b.state="NOTE";break}if(!e)continue;b.cue=new(b.vttjs.VTTCue||b.window.VTTCue)(0,0,"");try{b.cue.align="center"}catch(m){b.cue.align="middle"}if(b.state="CUE",-1===e.indexOf("-->")){b.cue.id=e;continue}case"CUE":try{j(e,b.cue,b.regionList)}catch(n){b.reportOrThrowError(n),b.cue=null,b.state="BADCUE";continue}b.state="CUETEXT";continue;case"CUETEXT":var o=-1!==e.indexOf("-->");if(!e||o&&(l=!0)){b.oncue&&b.oncue(b.cue),b.cue=null,b.state="ID";continue}b.cue.text&&(b.cue.text+="\n"),b.cue.text+=e.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":e||(b.state="ID");continue}}catch(p){b.reportOrThrowError(p),"CUETEXT"===b.state&&b.cue&&b.oncue&&b.oncue(b.cue),b.cue=null,b.state="INITIAL"===b.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var a=this;try{if(a.buffer+=a.decoder.decode(),(a.cue||"HEADER"===a.state)&&(a.buffer+="\n\n",a.parse()),"INITIAL"===a.state)throw new f(f.Errors.BadSignature)}catch(b){a.reportOrThrowError(b)}return a.onflush&&a.onflush(),this}},a.exports=w},22230:function(a){var b={"":1,lr:1,rl:1},c={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function d(a){return"string"==typeof a&& !!c[a.toLowerCase()]&&a.toLowerCase()}function e(a,c,e){this.hasBeenReset=!1;var f="",g=!1,h=a,i=c,j=e,k=null,l="",m=!0,n="auto",o="start",p="auto",q="auto",r=100,s="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return f},set:function(a){f=""+a}},pauseOnExit:{enumerable:!0,get:function(){return g},set:function(a){g=!!a}},startTime:{enumerable:!0,get:function(){return h},set:function(a){if("number"!=typeof a)throw TypeError("Start time must be set to a number.");h=a,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return i},set:function(a){if("number"!=typeof a)throw TypeError("End time must be set to a number.");i=a,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return j},set:function(a){j=""+a,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return k},set:function(a){k=a,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(a){var c,d=(c=a,"string"==typeof c&& !!b[c.toLowerCase()]&&c.toLowerCase());
9if(!1===d)throw SyntaxError("Vertical: an invalid or illegal direction string was specified.");l=d,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return m},set:function(a){m=!!a,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return n},set:function(a){if("number"!=typeof a&&"auto"!==a)throw SyntaxError("Line: an invalid number or illegal string was specified.");n=a,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return o},set:function(a){var b=d(a);b?(o=b,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return p},set:function(a){if(a<0||a>100)throw Error("Position must be between 0 and 100.");p=a,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return q},set:function(a){var b=d(a);b?(q=b,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return r},set:function(a){if(a<0||a>100)throw Error("Size must be between 0 and 100.");r=a,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return s},set:function(a){var b=d(a);if(!b)throw SyntaxError("align: an invalid or illegal alignment string was specified.");s=b,this.hasBeenReset=!0}}}),this.displayState=void 0}e.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},a.exports=e},13710:function(a){var b={"":!0,up:!0};function c(a){return"number"==typeof a&&a>=0&&a<=100}a.exports=function(){var a=100,d=3,e=0,f=100,g=0,h=100,i="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return a}
9,set:function(b){if(!c(b))throw Error("Width must be between 0 and 100.");a=b}},lines:{enumerable:!0,get:function(){return d},set:function(a){if("number"!=typeof a)throw TypeError("Lines must be set to a number.");d=a}},regionAnchorY:{enumerable:!0,get:function(){return f},set:function(a){if(!c(a))throw Error("RegionAnchorX must be between 0 and 100.");f=a}},regionAnchorX:{enumerable:!0,get:function(){return e},set:function(a){if(!c(a))throw Error("RegionAnchorY must be between 0 and 100.");e=a}},viewportAnchorY:{enumerable:!0,get:function(){return h},set:function(a){if(!c(a))throw Error("ViewportAnchorY must be between 0 and 100.");h=a}},viewportAnchorX:{enumerable:!0,get:function(){return g},set:function(a){if(!c(a))throw Error("ViewportAnchorX must be between 0 and 100.");g=a}},scroll:{enumerable:!0,get:function(){return i},set:function(a){var c,d=(c=a,"string"==typeof c&& !!b[c.toLowerCase()]&&c.toLowerCase());!1===d?console.warn("Scroll: an invalid or illegal string was specified."):i=d}}})}},10434:function(a){function b(){return a.exports=b=Object.assign?Object.assign.bind():function(a){for(var b=1;b<arguments.length;b++){var c=arguments[b];for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}return a},a.exports.__esModule=!0,a.exports.default=a.exports,b.apply(this,arguments)}a.exports=b,a.exports.__esModule=!0,a.exports.default=a.exports},5647:function(a,b,c){"use strict";c.d(b,{Z:function(){return f}});var d=c(89611),e=c(78814);function f(a,b,c){if((0,e.Z)())return Reflect.construct.apply(null,arguments);var f=[null];f.push.apply(f,b);var g=new(a.bind.apply(a,f));return c&&(0,d.Z)(g,c.prototype),g}},94578:function(a,b,c){"use strict";c.d(b,{Z:function(){return e}});var d=c(89611);function e(a,b){a.prototype=Object.create(b.prototype),a.prototype.constructor=a,(0,d.Z)(a,b)}},78814:function(a,b,c){"use strict";function d(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(b){}return(d=function(){return!!a})()}c.d(b,{Z:function(){return d}})}}])

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.