308 lines
1.8 MiB
JavaScript
308 lines
1.8 MiB
JavaScript
|
function g5(r,e){return function(){return r.apply(e,arguments)}}const{toString:QY}=Object.prototype,{getPrototypeOf:hC}=Object,v_=(r=>e=>{const t=QY.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),ba=r=>(r=r.toLowerCase(),e=>v_(e)===r),g_=r=>e=>typeof e===r,{isArray:mf}=Array,Hp=g_("undefined");function JY(r){return r!==null&&!Hp(r)&&r.constructor!==null&&!Hp(r.constructor)&&dn(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const m5=ba("ArrayBuffer");function eK(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&m5(r.buffer),e}const tK=g_("string"),dn=g_("function"),y5=g_("number"),m_=r=>r!==null&&typeof r=="object",rK=r=>r===!0||r===!1,ry=r=>{if(v_(r)!=="object")return!1;const e=hC(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},iK=ba("Date"),nK=ba("File"),aK=ba("Blob"),sK=ba("FileList"),oK=r=>m_(r)&&dn(r.pipe),lK=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||dn(r.append)&&((e=v_(r))==="formdata"||e==="object"&&dn(r.toString)&&r.toString()==="[object FormData]"))},uK=ba("URLSearchParams"),[cK,hK,fK,dK]=["ReadableStream","Request","Response","Headers"].map(ba),pK=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ov(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let i,n;if(typeof r!="object"&&(r=[r]),mf(r))for(i=0,n=r.length;i<n;i++)e.call(null,r[i],i,r);else{const a=t?Object.getOwnPropertyNames(r):Object.keys(r),s=a.length;let o;for(i=0;i<s;i++)o=a[i],e.call(null,r[o],o,r)}}function _5(r,e){e=e.toLowerCase();const t=Object.keys(r);let i=t.length,n;for(;i-- >0;)if(n=t[i],e===n.toLowerCase())return n;return null}const fu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,b5=r=>!Hp(r)&&r!==fu;function mx(){const{caseless:r}=b5(this)&&this||{},e={},t=(i,n)=>{const a=r&&_5(e,n)||n;ry(e[a])&&ry(i)?e[a]=mx(e[a],i):ry(i)?e[a]=mx({},i):mf(i)?e[a]=i.slice():e[a]=i};for(let i=0,n=arguments.length;i<n;i++)arguments[i]&&Ov(arguments[i],t);return e}const vK=(r,e,t,{allOwnKeys:i}={})=>(Ov(e,(n,a)=>{t&&dn(n)?r[a]=g5(n,t):r[a]=n},{allOwnKeys:i}),r),gK=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),mK=(r,e,t,i)=>{r.prototype=Object.create(e.prototype,i),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},yK=(r,e,t,i)=>{let n,a,s;const o={};if(e=e||{},r==null)return e;do{for(n=Object.getOwnPropertyNames(r),a=n.length;a-- >0;)s=n[a],(!i||i(s,r,e))&&!o[s]&&(e[s]=r[s],o[s]=!0);r=t!==!1&&hC(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},_K=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const i=r.indexOf(e,t);return i!==-1&&i===t},bK=r=>{if(!r)return null;if(mf(r))return r;let e=r.length;if(!y5(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},TK=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&hC(Uint8Array)),SK=(r,e)=>{const i=(r&&r[Symbol.iterator]).call(r);let n;for(;(n=i.next())&&!n.done;){const a=n.value;e.call(r,a[0],a[1])}},xK=(r,e)=>{let t;const i=[];for(;(t=r.exec(e))!==null;)i.push(t);return i},wK=ba("HTMLFormElement"),CK=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,i,n){return i.toUpperCase()+n}),BI=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),AK=ba("RegExp"),T5=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),i={};Ov(t,(n,a)=>{let s;(s=e(n,a,r))!==!1&&(i[a]=s||n)}),Object.defineProperties(r,i)},DK=r=>{T5(r,(e,t)=>{if(dn(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const i=r[t];if(dn(i)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},EK=(r,e)=>{const t={},i=n=>{n.forEach(a=>{t[a]=!0})};return mf(r)?i(r):i(String(r).split(e)),t},IK=()=>{},PK=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,rb="abcdefghijklmnopqrstuvwxyz",FI="0123456789",S5={DIGIT:FI,ALPHA:rb,ALPHA_DIGIT:rb+rb.toUpperCase()+FI},MK=(r=16,e=S5.ALPHA_DIGIT)=>{let
|
|||
|
`).forEach(function(s){n=s.indexOf(":"),t=s.substring(0,n).trim().toLowerCase(),i=s.substring(n+1).trim(),!(!t||e[t]&&JK[t])&&(t==="set-cookie"?e[t]?e[t].push(i):e[t]=[i]:e[t]=e[t]?e[t]+", "+i:i)}),e},GI=Symbol("internals");function id(r){return r&&String(r).trim().toLowerCase()}function iy(r){return r===!1||r==null?r:ne.isArray(r)?r.map(iy):String(r)}function tZ(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=t.exec(r);)e[i[1]]=i[2];return e}const rZ=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function ib(r,e,t,i,n){if(ne.isFunction(i))return i.call(this,e,t);if(n&&(e=t),!!ne.isString(e)){if(ne.isString(i))return e.indexOf(i)!==-1;if(ne.isRegExp(i))return i.test(e)}}function iZ(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i)}function nZ(r,e){const t=ne.toCamelCase(" "+e);["get","set","has"].forEach(i=>{Object.defineProperty(r,i+t,{value:function(n,a,s){return this[i].call(this,e,n,a,s)},configurable:!0})})}class Hi{constructor(e){e&&this.set(e)}set(e,t,i){const n=this;function a(o,l,u){const c=id(l);if(!c)throw new Error("header name must be a non-empty string");const h=ne.findKey(n,c);(!h||n[h]===void 0||u===!0||u===void 0&&n[h]!==!1)&&(n[h||l]=iy(o))}const s=(o,l)=>ne.forEach(o,(u,c)=>a(u,c,l));if(ne.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(ne.isString(e)&&(e=e.trim())&&!rZ(e))s(eZ(e),t);else if(ne.isHeaders(e))for(const[o,l]of e.entries())a(l,o,i);else e!=null&&a(t,e,i);return this}get(e,t){if(e=id(e),e){const i=ne.findKey(this,e);if(i){const n=this[i];if(!t)return n;if(t===!0)return tZ(n);if(ne.isFunction(t))return t.call(this,n,i);if(ne.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=id(e),e){const i=ne.findKey(this,e);return!!(i&&this[i]!==void 0&&(!t||ib(this,this[i],i,t)))}return!1}delete(e,t){const i=this;let n=!1;function a(s){if(s=id(s),s){const o=ne.findKey(i,s);o&&(!t||ib(i,i[o],o,t))&&(delete i[o],n=!0)}}return ne.isArray(e)?e.forEach(a):a(e),n}clear(e){const t=Object.keys(this);let i=t.length,n=!1;for(;i--;){const a=t[i];(!e||ib(this,this[a],a,e,!0))&&(delete this[a],n=!0)}return n}normalize(e){const t=this,i={};return ne.forEach(this,(n,a)=>{const s=ne.findKey(i,a);if(s){t[s]=iy(n),delete t[a];return}const o=e?iZ(a):String(a).trim();o!==a&&delete t[a],t[o]=iy(n),i[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ne.forEach(this,(i,n)=>{i!=null&&i!==!1&&(t[n]=e&&ne.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|||
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const i=new this(e);return t.forEach(n=>i.set(n)),i}static accessor(e){const i=(this[GI]=this[GI]={accessors:{}}).accessors,n=this.prototype;function a(s){const o=id(s);i[o]||(nZ(n,s),i[o]=!0)}return ne.isArray(e)?e.forEach(a):a(e),this}}Hi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ne.reduceDescriptors(Hi.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(i){this[t]=i}}});ne.freezeMethods(Hi);function nb(r,e){const t=this||Nv,i=e||t,n=Hi.from(i.headers);let a=i.data;return ne.forEach(r,function(o){a=o.call(t,a,n.normalize(),e?e.status:void 0)}),n.normalize(),a}function M5(r){return!!(r&&r.__CANCEL__)}function yf(r,e,t){at.call(this,r??"canceled",at.ERR_CANCELED,e,t),this.name="CanceledError"}ne.inherits(yf,at,{__CANCEL__:!0});function L5(r,e,t){const i=t.config.validateStatus;!t.status||!i||i(t.status)?r(t):e(new at("Request failed with status code "+t.status,[at.ERR_BAD_REQUEST,at.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function aZ(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function sZ(r,e){r=r||10;const t=new Array(r),i=new Array(r);let n=0,a=0,s;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=i[a];s||(s=u),t[n]=l,i[n]=u;let h=a,d=0;for(;h!==n;)d+=t[h++],h=h%r;if(n=(n+1)%r,n===a&&(a=(a+1)%r),u-s<e)return;const f=c&&u-c;return f?Math.round(d*1e3/f):void 0}}function oZ(r,e){let t=0,i=1e3/e,n,a;const s=(u,c=Date.now())=>{t=c,n=null,a&&(clearTimeout(a),a=null),r.apply(null,u)};return[(...u)=>{const c=Date.now(),h=c-t;h>=i?s(u,c):(n=u,a||(a=setTimeout(()=>{a=null,s(n)},i-h)))},()=>n&&s(n)]}const Ry=(r,e,t=3)=>{let i=0;const n=sZ(50,250);return oZ(a=>{const s=a.loaded,o=a.lengthComputable?a.total:void 0,l=s-i,u=n(l),c=s<=o;i=s;const h={loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-s)/u:void 0,event:a,lengthComputable:o!=null,[e?"download":"upload"]:!0};r(h)},t)},HI=(r,e)=>{const t=r!=null;return[i=>e[0]({lengthComputable:t,total:r,loaded:i}),e[1]]},$I=r=>(...e)=>ne.asap(()=>r(...e)),lZ=Gi.hasStandardBrowserEnv?function(){const e=Gi.navigator&&/(msie|trident)/i.test(Gi.navigator.userAgent),t=document.createElement("a");let i;function n(a){let s=a;return e&&(t.setAttribute("href",s),s=t.href),t.setAttribute("href",s),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return i=n(window.location.href),function(s){const o=ne.isString(s)?n(s):s;return o.protocol===i.protocol&&o.host===i.host}}():function(){return function(){return!0}}(),uZ=Gi.hasStandardBrowserEnv?{write(r,e,t,i,n,a){const s=[r+"="+encodeURIComponent(e)];ne.isNumber(t)&&s.push("expires="+new Date(t).toGMTString()),ne.isString(i)&&s.push("path="+i),ne.isString(n)&&s.push("domain="+n),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function cZ(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function hZ(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function k5(r,e){return r&&!cZ(e)?hZ(r,e):e}const WI=r=>r instanceof Hi?{...r}:r;function qu(r,e){e=e||{};const t={};function i(u,c,h){return ne.isPlainObject(u)&&ne.isPlainObject(c)?ne.merge.call({caseless:h},u,c):ne.isPlainObject(c)?ne.merge({},c):ne.isArray(c)?c.slice():c}function n(u,c,h){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return i(void 0,u,h)}else return i(u,c,h)}function a(u,c){if(!ne.isUndefined(c))return i(void 0,c)}function s(u,c){if(ne.isUndefined(c)){if(!ne.isUndefined(u))return i(void 0,u)}else return i(void 0,c)}function o(u,c,h){if(h in e)return i(u,c);if(h in r
|
|||
|
`+a.map(XI).join(`
|
|||
|
`):" "+XI(a[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return i},adapters:Tx};function ab(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new yf(null,r)}function YI(r){return ab(r),r.headers=Hi.from(r.headers),r.data=nb.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),B5.getAdapter(r.adapter||Nv.adapter)(r).then(function(i){return ab(r),i.data=nb.call(r,r.transformResponse,i),i.headers=Hi.from(i.headers),i},function(i){return M5(i)||(ab(r),i&&i.response&&(i.response.data=nb.call(r,r.transformResponse,i.response),i.response.headers=Hi.from(i.response.headers))),Promise.reject(i)})}const F5="1.7.7",pC={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{pC[r]=function(i){return typeof i===r||"a"+(e<1?"n ":" ")+r}});const KI={};pC.transitional=function(e,t,i){function n(a,s){return"[Axios v"+F5+"] Transitional option '"+a+"'"+s+(i?". "+i:"")}return(a,s,o)=>{if(e===!1)throw new at(n(s," has been removed"+(t?" in "+t:"")),at.ERR_DEPRECATED);return t&&!KI[s]&&(KI[s]=!0,console.warn(n(s," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(a,s,o):!0}};function wZ(r,e,t){if(typeof r!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);const i=Object.keys(r);let n=i.length;for(;n-- >0;){const a=i[n],s=e[a];if(s){const o=r[a],l=o===void 0||s(o,a,r);if(l!==!0)throw new at("option "+a+" must be "+l,at.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new at("Unknown option "+a,at.ERR_BAD_OPTION)}}const Sx={assertOptions:wZ,validators:pC},so=Sx.validators;class wu{constructor(e){this.defaults=e,this.interceptors={request:new zI,response:new zI}}async request(e,t){try{return await this._request(e,t)}catch(i){if(i instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const a=n.stack?n.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|||
|
`+a):i.stack=a}catch{}}throw i}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=qu(this.defaults,t);const{transitional:i,paramsSerializer:n,headers:a}=t;i!==void 0&&Sx.assertOptions(i,{silentJSONParsing:so.transitional(so.boolean),forcedJSONParsing:so.transitional(so.boolean),clarifyTimeoutError:so.transitional(so.boolean)},!1),n!=null&&(ne.isFunction(n)?t.paramsSerializer={serialize:n}:Sx.assertOptions(n,{encode:so.function,serialize:so.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=a&&ne.merge(a.common,a[t.method]);a&&ne.forEach(["delete","get","head","post","put","patch","common"],p=>{delete a[p]}),t.headers=Hi.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(t)===!1||(l=l&&v.synchronous,o.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let c,h=0,d;if(!l){const p=[YI.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,u),d=p.length,c=Promise.resolve(t);h<d;)c=c.then(p[h++],p[h++]);return c}d=o.length;let f=t;for(h=0;h<d;){const p=o[h++],v=o[h++];try{f=p(f)}catch(g){v.call(this,g);break}}try{c=YI.call(this,f)}catch(p){return Promise.reject(p)}for(h=0,d=u.length;h<d;)c=c.then(u[h++],u[h++]);return c}getUri(e){e=qu(this.defaults,e);const t=k5(e.baseURL,e.url);return E5(t,e.params,e.paramsSerializer)}}ne.forEach(["delete","get","head","options"],function(e){wu.prototype[e]=function(t,i){return this.request(qu(i||{},{method:e,url:t,data:(i||{}).data}))}});ne.forEach(["post","put","patch"],function(e){function t(i){return function(a,s,o){return this.request(qu(o||{},{method:e,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:s}))}}wu.prototype[e]=t(),wu.prototype[e+"Form"]=t(!0)});class vC{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(a){t=a});const i=this;this.promise.then(n=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](n);i._listeners=null}),this.promise.then=n=>{let a;const s=new Promise(o=>{i.subscribe(o),a=o}).then(n);return s.cancel=function(){i.unsubscribe(a)},s},e(function(a,s,o){i.reason||(i.reason=new yf(a,s,o),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=i=>{e.abort(i)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new vC(function(n){e=n}),cancel:e}}}function CZ(r){return function(t){return r.apply(null,t)}}function AZ(r){return ne.isObject(r)&&r.isAxiosError===!0}const xx={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticat
|
|||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BZ(r,e){if(r){if(typeof r=="string")return QI(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return QI(r,e)}}function QI(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}var FZ=function(){function r(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var e=r.prototype;return e.getIsEnabled=function(){return this.enabled_},e.enable=function(){this.enabled_=!0},e.disable=function(){this.enabled_=!1},e.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},e.addInterceptor=function(i,n){this.typeToInterceptorsMap_.has(i)||this.typeToInterceptorsMap_.set(i,new Set);var a=this.typeToInterceptorsMap_.get(i);return a.has(n)?!1:(a.add(n),!0)},e.removeInterceptor=function(i,n){var a=this.typeToInterceptorsMap_.get(i);return a&&a.has(n)?(a.delete(n),!0):!1},e.clearInterceptorsByType=function(i){var n=this.typeToInterceptorsMap_.get(i);return n?(this.typeToInterceptorsMap_.delete(i),this.typeToInterceptorsMap_.set(i,new Set),!0):!1},e.clear=function(){return this.typeToInterceptorsMap_.size?(this.typeToInterceptorsMap_=new Map,!0):!1},e.getForType=function(i){return this.typeToInterceptorsMap_.get(i)||new Set},e.execute=function(i,n){for(var a=this.getForType(i),s=NZ(a),o;!(o=s()).done;){var l=o.value;try{n=l(n)}catch{}}return n},r}(),UZ=FZ,VZ=function(){function r(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var e=r.prototype;return e.getIsEnabled=function(){return this.enabled_},e.enable=function(){this.enabled_=!0},e.disable=function(){this.enabled_=!1},e.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},e.getMaxAttempts=function(){return this.maxAttempts_},e.setMaxAttempts=function(i){this.maxAttempts_=i},e.getDelayFactor=function(){return this.delayFactor_},e.setDelayFactor=function(i){this.delayFactor_=i},e.getFuzzFactor=function(){return this.fuzzFactor_},e.setFuzzFactor=function(i){this.fuzzFactor_=i},e.getInitialDelay=function(){return this.initialDelay_},e.setInitialDelay=function(i){this.initialDelay_=i},e.createRetry=function(i){var n=i===void 0?{}:i,a=n.maxAttempts,s=n.delayFactor,o=n.fuzzFactor,l=n.initialDelay;return new zZ({maxAttempts:a||this.maxAttempts_,delayFactor:s||this.delayFactor_,fuzzFactor:o||this.fuzzFactor_,initialDelay:l||this.initialDelay_})},r}(),zZ=function(){function r(t){this.maxAttempts_=t.maxAttempts,this.delayFactor_=t.delayFactor,this.fuzzFactor_=t.fuzzFactor,this.currentDelay_=t.initialDelay,this.currentAttempt_=1}var e=r.prototype;return e.moveToNextAttempt=function(){this.currentAttempt_++;var i=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+i},e.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},e.getCurrentDelay=function(){return this.currentDelay_},e.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},e.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},e.getCurrentFuzzedDelay=function(){var i=this.getCurrentMinPossibleDelay(),n=this.getCurrentMaxPossibleDelay();return i+Math.random()*(n-i)},r}(),GZ=VZ,HZ=b_,$Z=function(e,t){return t===void 0&&(t=!1),function(i,n,a){if(i){e(i);return}if(n.statusCode>=400&&n.statusCode<=599){var s=a;if(t)if(HZ.TextDecoder){var o=WZ(n.headers&&n.headers["content-type"]);try{s=new TextDecoder(o).decode(a)}catch{}}else s=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:s});return}e(null,a)}};function WZ(r){return r===void 0&&(r=""),r.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),n=i[0],a=i[1];return n.trim()==="charset"?a.trim():e},"utf-8")}var qZ=$Z,G5=b_,jZ=LZ,XZ=kZ,H5=UZ,YZ=GZ;dr.httpHandler=qZ;dr.requestInterceptorsStorage=new H5;dr.responseInterceptorsStorag
|
|||
|
* @license
|
|||
|
* slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/>
|
|||
|
* Copyright (c) 2014 David Björklund
|
|||
|
* Available under the MIT license
|
|||
|
* <https://github.com/kesla/parse-headers/blob/master/LICENCE>
|
|||
|
*/var KZ=function(e){var t={};return e&&e.trim().split(`
|
|||
|
`).forEach(function(i){var n=i.indexOf(":"),a=i.slice(0,n).trim().toLowerCase(),s=i.slice(n+1).trim();typeof t[a]>"u"?t[a]=s:Array.isArray(t[a])?t[a].push(s):t[a]=[t[a],s]}),t};gC.exports=dr;gC.exports.default=dr;dr.XMLHttpRequest=G5.XMLHttpRequest||eQ;dr.XDomainRequest="withCredentials"in new dr.XMLHttpRequest?dr.XMLHttpRequest:G5.XDomainRequest;ZZ(["get","put","post","patch","head","delete"],function(r){dr[r==="delete"?"del":r]=function(e,t,i){return t=$5(e,t,i),t.method=r.toUpperCase(),mC(t)}});function ZZ(r,e){for(var t=0;t<r.length;t++)e(r[t])}function QZ(r){for(var e in r)if(r.hasOwnProperty(e))return!1;return!0}function $5(r,e,t){var i=r;return XZ(e)?(t=e,typeof r=="string"&&(i={uri:r})):i=jZ({},e,{uri:r}),i.callback=t,i}function dr(r,e,t){return e=$5(r,e,t),mC(e)}function mC(r){if(typeof r.callback>"u")throw new Error("callback argument missing");if(r.requestType&&dr.requestInterceptorsStorage.getIsEnabled()){var e={uri:r.uri||r.url,headers:r.headers||{},body:r.body,metadata:r.metadata||{},retry:r.retry,timeout:r.timeout},t=dr.requestInterceptorsStorage.execute(r.requestType,e);r.uri=t.uri,r.headers=t.headers,r.body=t.body,r.metadata=t.metadata,r.retry=t.retry,r.timeout=t.timeout}var i=!1,n=function(S,x,C){i||(i=!0,r.callback(S,x,C))};function a(){u.readyState===4&&!dr.responseInterceptorsStorage.getIsEnabled()&&setTimeout(l,0)}function s(){var b=void 0;if(u.response?b=u.response:b=u.responseText||JZ(u),m)try{b=JSON.parse(b)}catch{}return b}function o(b){if(clearTimeout(y),clearTimeout(r.retryTimeout),b instanceof Error||(b=new Error(""+(b||"Unknown XMLHttpRequest Error"))),b.statusCode=0,!h&&dr.retryManager.getIsEnabled()&&r.retry&&r.retry.shouldRetry()){r.retryTimeout=setTimeout(function(){r.retry.moveToNextAttempt(),r.xhr=u,mC(r)},r.retry.getCurrentFuzzedDelay());return}if(r.requestType&&dr.responseInterceptorsStorage.getIsEnabled()){var S={headers:_.headers||{},body:_.body,responseUrl:u.responseURL,responseType:u.responseType},x=dr.responseInterceptorsStorage.execute(r.requestType,S);_.body=x.body,_.headers=x.headers}return n(b,_)}function l(){if(!h){var b;clearTimeout(y),clearTimeout(r.retryTimeout),r.useXDR&&u.status===void 0?b=200:b=u.status===1223?204:u.status;var S=_,x=null;if(b!==0?(S={body:s(),statusCode:b,method:f,headers:{},url:d,rawRequest:u},u.getAllResponseHeaders&&(S.headers=KZ(u.getAllResponseHeaders()))):x=new Error("Internal XMLHttpRequest Error"),r.requestType&&dr.responseInterceptorsStorage.getIsEnabled()){var C={headers:S.headers||{},body:S.body,responseUrl:u.responseURL,responseType:u.responseType},D=dr.responseInterceptorsStorage.execute(r.requestType,C);S.body=D.body,S.headers=D.headers}return n(x,S,S.body)}}var u=r.xhr||null;u||(r.cors||r.useXDR?u=new dr.XDomainRequest:u=new dr.XMLHttpRequest);var c,h,d=u.url=r.uri||r.url,f=u.method=r.method||"GET",p=r.body||r.data,v=u.headers=r.headers||{},g=!!r.sync,m=!1,y,_={body:void 0,headers:{},statusCode:0,method:f,url:d,rawRequest:u};if("json"in r&&r.json!==!1&&(m=!0,v.accept||v.Accept||(v.Accept="application/json"),f!=="GET"&&f!=="HEAD"&&(v["content-type"]||v["Content-Type"]||(v["Content-Type"]="application/json"),p=JSON.stringify(r.json===!0?p:r.json))),u.onreadystatechange=a,u.onload=l,u.onerror=o,u.onprogress=function(){},u.onabort=function(){h=!0,clearTimeout(r.retryTimeout)},u.ontimeout=o,u.open(f,d,!g,r.username,r.password),g||(u.withCredentials=!!r.withCredentials),!g&&r.timeout>0&&(y=setTimeout(function(){if(!h){h=!0,u.abort("timeout");var b=new Error("XMLHttpRequest timeout");b.code="ETIMEDOUT",o(b)}},r.timeout)),u.setRequestHeader)for(c in v)v.hasOwnProperty(c)&&u.setRequestHeader(c,v[c]);else if(r.headers&&!QZ(r.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in r&&(u.responseType=r.responseType),"beforeSend"in r&&typeof r.beforeSend=="function"&&r.beforeSend(u),u.send(p||null),u}function JZ(r){try{if(r.responseType==="document")return r.responseXML;var e=r.responseXML&&r.responseXML.documentElement.nodeName==="parsererror";if(r.responseType===""&&!e)return r.responseXML}catch{}retur
|
|||
|
`;)++h;var d=c.substr(0,h);return c[h]==="\r"&&++h,c[h]===`
|
|||
|
`&&++h,e.buffer=c.substr(h),d}function i(c){var h=new dp;if($d(c,function(f,p){switch(f){case"id":h.set(f,p);break;case"width":h.percent(f,p);break;case"lines":h.integer(f,p);break;case"regionanchor":case"viewportanchor":var v=p.split(",");if(v.length!==2)break;var g=new dp;if(g.percent("x",v[0]),g.percent("y",v[1]),!g.has("x")||!g.has("y"))break;h.set(f+"X",g.get("x")),h.set(f+"Y",g.get("y"));break;case"scroll":h.alt(f,p,["up"]);break}},/=/,/\s/),h.has("id")){var d=new(e.vttjs.VTTRegion||e.window.VTTRegion);d.width=h.get("width",100),d.lines=h.get("lines",3),d.regionAnchorX=h.get("regionanchorX",0),d.regionAnchorY=h.get("regionanchorY",100),d.viewportAnchorX=h.get("viewportanchorX",0),d.viewportAnchorY=h.get("viewportanchorY",100),d.scroll=h.get("scroll",""),e.onregion&&e.onregion(d),e.regionList.push({id:h.get("id"),region:d})}}function n(c){var h=new dp;$d(c,function(d,f){switch(d){case"MPEGT":h.integer(d+"S",f);break;case"LOCA":h.set(d+"L",_C(f));break}},/[^\d]:/,/,/),e.ontimestampmap&&e.ontimestampmap({MPEGTS:h.get("MPEGTS"),LOCAL:h.get("LOCAL")})}function a(c){c.match(/X-TIMESTAMP-MAP/)?$d(c,function(h,d){switch(h){case"X-TIMESTAMP-MAP":n(d);break}},/=/):$d(c,function(h,d){switch(h){case"Region":i(d);break}},/:/)}try{var s;if(e.state==="INITIAL"){if(!/\r\n|\n/.test(e.buffer))return this;s=t();var o=s.match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new on(on.Errors.BadSignature);e.state="HEADER"}for(var l=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(l?l=!1:s=t(),e.state){case"HEADER":/:/.test(s)?a(s):s||(e.state="ID");continue;case"NOTE":s||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(s)){e.state="NOTE";break}if(!s)continue;e.cue=new(e.vttjs.VTTCue||e.window.VTTCue)(0,0,"");try{e.cue.align="center"}catch{e.cue.align="middle"}if(e.state="CUE",s.indexOf("-->")===-1){e.cue.id=s;continue}case"CUE":try{rQ(s,e.cue,e.regionList)}catch(c){e.reportOrThrowError(c),e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var u=s.indexOf("-->")!==-1;if(!s||u&&(l=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+=`
|
|||
|
`),e.cue.text+=s.replace(/\u2028/g,`
|
|||
|
`).replace(/u2029/g,`
|
|||
|
`);continue;case"BADCUE":s||(e.state="ID");continue}}}catch(c){e.reportOrThrowError(c),e.state==="CUETEXT"&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state=e.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var r=this;try{if(r.buffer+=r.decoder.decode(),(r.cue||r.state==="HEADER")&&(r.buffer+=`
|
|||
|
|
|||
|
`,r.parse()),r.state==="INITIAL")throw new on(on.Errors.BadSignature)}catch(e){r.reportOrThrowError(e)}return r.onflush&&r.onflush(),this}};var fQ=_f,dQ="auto",pQ={"":1,lr:1,rl:1},vQ={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function gQ(r){if(typeof r!="string")return!1;var e=pQ[r.toLowerCase()];return e?r.toLowerCase():!1}function ob(r){if(typeof r!="string")return!1;var e=vQ[r.toLowerCase()];return e?r.toLowerCase():!1}function X5(r,e,t){this.hasBeenReset=!1;var i="",n=!1,a=r,s=e,o=t,l=null,u="",c=!0,h="auto",d="start",f="auto",p="auto",v=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return i},set:function(m){i=""+m}},pauseOnExit:{enumerable:!0,get:function(){return n},set:function(m){n=!!m}},startTime:{enumerable:!0,get:function(){return a},set:function(m){if(typeof m!="number")throw new TypeError("Start time must be set to a number.");a=m,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(m){if(typeof m!="number")throw new TypeError("End time must be set to a number.");s=m,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(m){o=""+m,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(m){l=m,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(m){var y=gQ(m);if(y===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=y,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(m){c=!!m,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return h},set:function(m){if(typeof m!="number"&&m!==dQ)throw new SyntaxError("Line: an invalid number or illegal string was specified.");h=m,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return d},set:function(m){var y=ob(m);y?(d=y,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return f},set:function(m){if(m<0||m>100)throw new Error("Position must be between 0 and 100.");f=m,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return p},set:function(m){var y=ob(m);y?(p=y,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(m){if(m<0||m>100)throw new Error("Size must be between 0 and 100.");v=m,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(m){var y=ob(m);if(!y)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=y,this.hasBeenReset=!0}}}),this.displayState=void 0}X5.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var mQ=X5,yQ={"":!0,up:!0};function _Q(r){if(typeof r!="string")return!1;var e=yQ[r.toLowerCase()];return e?r.toLowerCase():!1}function nd(r){return typeof r=="number"&&r>=0&&r<=100}function bQ(){var r=100,e=3,t=0,i=100,n=0,a=100,s="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return r},set:function(o){if(!nd(o))throw new Error("Width must be between 0 and 100.");r=o}},lines:{enumerable:!0,get:function(){return e},set:function(o){if(typeof o!="number")throw new TypeError("Lines must be set to a number.");e=o}},regionAnchorY:{enumerable:!0,get:function(){return i},set:function(o){if(!nd(o))throw new Error("RegionAnchorX must be between 0 and 100.");i=o}},regionAnchorX:{enumerable:!0,get:function(){return t},set:function(o){if(!nd(o))throw new Error("RegionAnchorY must be between 0 and 100.");t=o}},viewportAnchorY:{enumerable:!0,get:function(){return a},set:function(o){if(!nd(o))throw new Error("ViewportAnchorY must be between 0 and 100.");a=o}},viewportAnchorX:{enumerable:!0,get:function(){return n},set:function(o){if(!nd(o))throw new Error("ViewportAnchorX must be between 0 and 100.");n=o}},scroll:{enumerable:!0,get:function(){return s},set:function(o){var l=_Q(o);l===!1?console.warn("Scroll: an invalid or illegal string was specified."):s=l}}})}var TQ=bQ,Fs=b_,sc=
|
|||
|
`);t>-1;t=this.buffer.indexOf(`
|
|||
|
`))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)}}const IQ=" ",lb=function(r){const e=/([0-9.]*)?@?([0-9.]*)?/.exec(r||""),t={};return e[1]&&(t.length=parseInt(e[1],10)),e[2]&&(t.offset=parseInt(e[2],10)),t},PQ=function(){const t="(?:"+"[^=]*"+")=(?:"+'"[^"]*"|[^,]*'+")";return new RegExp("(?:^|,)("+t+")")},fi=function(r){const e={};if(!r)return e;const t=r.split(PQ());let i=t.length,n;for(;i--;)t[i]!==""&&(n=/([^=]*)=(.*)/.exec(t[i]).slice(1),n[0]=n[0].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^\s+|\s+$/g,""),n[1]=n[1].replace(/^['"](.*)['"]$/g,"$1"),e[n[0]]=n[1]);return e},aP=r=>{const e=r.split("x"),t={};return e[0]&&(t.width=parseInt(e[0],10)),e[1]&&(t.height=parseInt(e[1],10)),t};class MQ extends bC{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,i;if(e=e.trim(),e.length===0)return;if(e[0]!=="#"){this.trigger("data",{type:"uri",uri:e});return}this.tagMappers.reduce((a,s)=>{const o=s(e);return o===e?a:a.concat([o])},[e]).forEach(a=>{for(let s=0;s<this.customParsers.length;s++)if(this.customParsers[s].call(this,a))return;if(a.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:a.slice(1)});return}if(a=a.replace("\r",""),t=/^#EXTM3U/.exec(a),t){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(a),t){i={type:"tag",tagType:"inf"},t[1]&&(i.duration=parseFloat(t[1])),t[2]&&(i.title=t[2]),this.trigger("data",i);return}if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(a),t){i={type:"tag",tagType:"targetduration"},t[1]&&(i.duration=parseInt(t[1],10)),this.trigger("data",i);return}if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(a),t){i={type:"tag",tagType:"version"},t[1]&&(i.version=parseInt(t[1],10)),this.trigger("data",i);return}if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(a),t){i={type:"tag",tagType:"media-sequence"},t[1]&&(i.number=parseInt(t[1],10)),this.trigger("data",i);return}if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(a),t){i={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(i.number=parseInt(t[1],10)),this.trigger("data",i);return}if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(a),t){i={type:"tag",tagType:"playlist-type"},t[1]&&(i.playlistType=t[1]),this.trigger("data",i);return}if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(a),t){i=ar(lb(t[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",i);return}if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(a),t){i={type:"tag",tagType:"allow-cache"},t[1]&&(i.allowed=!/NO/.test(t[1])),this.trigger("data",i);return}if(t=/^#EXT-X-MAP:(.*)$/.exec(a),t){if(i={type:"tag",tagType:"map"},t[1]){const s=fi(t[1]);s.URI&&(i.uri=s.URI),s.BYTERANGE&&(i.byterange=lb(s.BYTERANGE))}this.trigger("data",i);return}if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(a),t){i={type:"tag",tagType:"stream-inf"},t[1]&&(i.attributes=fi(t[1]),i.attributes.RESOLUTION&&(i.attributes.RESOLUTION=aP(i.attributes.RESOLUTION)),i.attributes.BANDWIDTH&&(i.attributes.BANDWIDTH=parseInt(i.attributes.BANDWIDTH,10)),i.attributes["FRAME-RATE"]&&(i.attributes["FRAME-RATE"]=parseFloat(i.attributes["FRAME-RATE"])),i.attributes["PROGRAM-ID"]&&(i.attributes["PROGRAM-ID"]=parseInt(i.attributes["PROGRAM-ID"],10))),this.trigger("data",i);return}if(t=/^#EXT-X-MEDIA:(.*)$/.exec(a),t){i={type:"tag",tagType:"media"},t[1]&&(i.attributes=fi(t[1])),this.trigger("data",i);return}if(t=/^#EXT-X-ENDLIST/.exec(a),t){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(t=/^#EXT-X-DISCONTINUITY/.exec(a),t){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(a),t){i={type:"tag",tagType:"program-date-time"},t[1]&&(i.dateTimeString=t[1],i.dateTimeObject=new Date(t[1])),this.trigger("data",i);return}if(t=/^#EXT-X-KEY:(.*)$/.exec(a),t){i={type:"tag",tagType:"key"},t[1]&&(i.attributes=fi(t[1]),i.attributes.IV&&(i.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(i.attributes.IV=i.attributes.IV.substring(2)),i.attributes.IV=i.attributes.IV.match(/.{8}/g),i.attributes.IV[0]=parseInt(i.attributes.IV[0],16),i.attributes.IV[1]=parseInt(i.attributes.IV[1],16),i.attributes.IV[2]=par
|
|||
|
`),this.manifest.dateRanges.length&&this.lastProgramDateTime===null&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),this.lastProgramDateTime=null,this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var Cu={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^/},RQ=["video","audio","text"],sP=["Video","Audio","Text"],K5=function(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(t,i,n){var a=("00"+Number(i).toString(16)).slice(-2),s=("00"+Number(n).toString(16)).slice(-2);return"avc1."+a+"00"+s})},ka=function(e){e===void 0&&(e="");var t=e.split(","),i=[];return t.forEach(function(n){n=n.trim();var a;RQ.forEach(function(s){var o=Cu[s].exec(n.toLowerCase());if(!(!o||o.length<=1)){a=s;var l=n.substring(0,o[1].length),u=n.replace(l,"");i.push({type:l,details:u,mediaType:s})}}),a||i.push({type:n,details:"",mediaType:"unknown"})}),i},OQ=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i=e.mediaGroups.AUDIO[t];if(!i)return null;for(var n in i){var a=i[n];if(a.default&&a.playlists)return ka(a.playlists[0].attributes.CODECS)}return null},Z5=function(e){return e===void 0&&(e=""),Cu.audio.test(e.trim().toLowerCase())},NQ=function(e){return e===void 0&&(e=""),Cu.text.test(e.trim().toLowerCase())},Uh=function(e){if(!(!e||typeof e!="string")){var t=e.toLowerCase().split(",").map(function(a){return K5(a.trim())}),i="video";t.length===1&&Z5(t[0])?i="audio":t.length===1&&NQ(t[0])&&(i="application");var n="mp4";return t.every(function(a){return Cu.mp4.test(a)})?n="mp4":t.every(function(a){return Cu.webm.test(a)})?n="webm":t.every(function(a){return Cu.ogg.test(a)})&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}},pp=function(e,t){return e===void 0&&(e=""),t===void 0&&(t=!1),H.MediaSource&&H.MediaSource.isTypeSupported&&H.MediaSource.isTypeSupported(Uh(e))||t&&H.ManagedMediaSource&&H.ManagedMediaSource.isTypeSupported&&H.ManagedMediaSource.isTypeSupported(Uh(e))||!1},cb=function(e){return e===void 0&&(e=""),e.toLowerCase().split(",").every(function(t){t=t.trim();for(var i=0;i<sP.length;i++){var n=sP[i];if(Cu["muxer"+n].test(t))return!0}return!1})},oP="mp4a.40.2",BQ="avc1.4d400d",FQ=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,UQ=/^application\/dash\+xml/i,Q5=function(e){return FQ.test(e)?"hls":UQ.test(e)?"dash":e==="application/vnd.videojs.vhs+json"?"vhs-json":null},VQ=function(e){return e.toString(2).length},zQ=function(e){return Math.ceil(VQ(e)/8)},J5=function(e){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},GQ=function(e){return J5(e)},$e=function(e){return e instanceof Uint8Array?e:(!Array.isArray(e)&&!GQ(e)&&!(e instanceof ArrayBuffer)&&(typeof e!="number"||typeof e=="number"&&e!==e?e=0:e=[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},Xr=H.BigInt||Number,Cx=[Xr("0x1"),Xr("0x100"),Xr("0x10000"),Xr("0x1000000"),Xr("0x100000000"),Xr("0x10000000000"),Xr("0x1000000000000"),Xr("0x100000000000000"),Xr("0x10000000000000000")];(function(){var r=new Uint16Array([65484]),e=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);return e[0]===255?"big":e[0]===204?"little":"unknown"})();var HQ=function(e,t){var i=t===void 0?{}:t,n=i.signed,a=n===void 0?!1:n,s=i.le,o=s===void 0?!1:s;e=$e(e);var l=o?"reduce":"reduceRight",u=e[l]?e[l]:Array.prototype[l],c=u.call(e,function(d,f,p){var v=o?p:Math.abs(p+1-e.length);return d+Xr(f)*Cx[v]},Xr(0));if(a){var h=Cx[e.length]/Xr(2)-Xr(1);c=Xr(c),c>h&&(c-=h,c-=h,c-=Xr(2))}return Number(c)},$Q=function(e,t){var i={},n=i.le,a=n===void 0?!1:n;(typeof e!="bigint"&&typeof e!="number"||typeof e=="number"&&e!==e)&&(e=0),e=Xr(e);for(var s=zQ(e),o=new Uint8Array(new ArrayBuffer(s)),l=0;l<s;l++){var u=
|
|||
|
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п"
|
|||
|
`).replace(/[\r\u0085\u2028]/g,`
|
|||
|
`)}function I4(r){this.options=r||{locator:{}}}I4.prototype.parseFromString=function(r,e){var t=this.options,i=new yJ,n=t.domBuilder||new zv,a=t.errorHandler,s=t.locator,o=t.xmlns||{},l=/\/x?html?$/.test(e),u=l?_P.HTML_ENTITIES:_P.XML_ENTITIES;s&&n.setDocumentLocator(s),i.errorHandler=_J(a,n,s),i.domBuilder=t.domBuilder||n,l&&(o[""]=bP.HTML),o.xml=o.xml||bP.XML;var c=t.normalizeLineEndings||E4;return r&&typeof r=="string"?i.parse(c(r),o,u):i.errorHandler.error("invalid doc source"),n.doc};function _J(r,e,t){if(!r){if(e instanceof zv)return e;r=e}var i={},n=r instanceof Function;t=t||{};function a(s){var o=r[s];!o&&n&&(o=r.length==2?function(l){r(s,l)}:r),i[s]=o&&function(l){o("[xmldom "+s+"] "+l+Ex(t))}||function(){}}return a("warning"),a("error"),a("fatalError"),i}function zv(){this.cdata=!1}function Dc(r,e){e.lineNumber=r.lineNumber,e.columnNumber=r.columnNumber}zv.prototype={startDocument:function(){this.doc=new gJ().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(r,e,t,i){var n=this.doc,a=n.createElementNS(r,t||e),s=i.length;Vg(this,a),this.currentElement=a,this.locator&&Dc(this.locator,a);for(var o=0;o<s;o++){var r=i.getURI(o),l=i.getValue(o),t=i.getQName(o),u=n.createAttributeNS(r,t);this.locator&&Dc(i.getLocator(o),u),u.value=u.nodeValue=l,a.setAttributeNode(u)}},endElement:function(r,e,t){var i=this.currentElement;i.tagName,this.currentElement=i.parentNode},startPrefixMapping:function(r,e){},endPrefixMapping:function(r){},processingInstruction:function(r,e){var t=this.doc.createProcessingInstruction(r,e);this.locator&&Dc(this.locator,t),Vg(this,t)},ignorableWhitespace:function(r,e,t){},characters:function(r,e,t){if(r=TP.apply(this,arguments),r){if(this.cdata)var i=this.doc.createCDATASection(r);else var i=this.doc.createTextNode(r);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(r)&&this.doc.appendChild(i),this.locator&&Dc(this.locator,i)}},skippedEntity:function(r){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(r){(this.locator=r)&&(r.lineNumber=0)},comment:function(r,e,t){r=TP.apply(this,arguments);var i=this.doc.createComment(r);this.locator&&Dc(this.locator,i),Vg(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(r,e,t){var i=this.doc.implementation;if(i&&i.createDocumentType){var n=i.createDocumentType(r,e,t);this.locator&&Dc(this.locator,n),Vg(this,n),this.doc.doctype=n}},warning:function(r){console.warn("[xmldom warning] "+r,Ex(this.locator))},error:function(r){console.error("[xmldom error] "+r,Ex(this.locator))},fatalError:function(r){throw new mJ(r,this.locator)}};function Ex(r){if(r)return`
|
|||
|
@`+(r.systemId||"")+"#[line:"+r.lineNumber+",col:"+r.columnNumber+"]"}function TP(r,e,t){return typeof r=="string"?r.substr(e,t):r.length>=e+t||e?new java.lang.String(r,e,t)+"":r}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(r){zv.prototype[r]=function(){return null}});function Vg(r,e){r.currentElement?r.currentElement.appendChild(e):r.doc.appendChild(e)}C_.__DOMHandler=zv;C_.normalizeLineEndings=E4;C_.DOMParser=I4;var bJ=C_.DOMParser;/*! @name mpd-parser @version 1.3.1 @license Apache-2.0 */const SP=r=>!!r&&typeof r=="object",zr=(...r)=>r.reduce((e,t)=>(typeof t!="object"||Object.keys(t).forEach(i=>{Array.isArray(e[i])&&Array.isArray(t[i])?e[i]=e[i].concat(t[i]):SP(e[i])&&SP(t[i])?e[i]=zr(e[i],t[i]):e[i]=t[i]}),e),{}),P4=r=>Object.keys(r).map(e=>r[e]),TJ=(r,e)=>{const t=[];for(let i=r;i<e;i++)t.push(i);return t},Hh=r=>r.reduce((e,t)=>e.concat(t),[]),M4=r=>{if(!r.length)return[];const e=[];for(let t=0;t<r.length;t++)e.push(r[t]);return e},SJ=(r,e)=>r.reduce((t,i,n)=>(i[e]&&t.push(n),t),[]),xJ=(r,e)=>P4(r.reduce((t,i)=>(i.forEach(n=>{t[e(n)]=n}),t),{}));var $h={INVALID_NUMBER_OF_PERIOD:"INVALID_NUMBER_OF_PERIOD",INVALID_NUMBER_OF_CONTENT_STEERING:"INVALID_NUMBER_OF_CONTENT_STEERING",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"};const jp=({baseUrl:r="",source:e="",range:t="",indexRange:i=""})=>{const n={uri:e,resolvedUri:S_(r||"",e)};if(t||i){const s=(t||i).split("-");let o=H.BigInt?H.BigInt(s[0]):parseInt(s[0],10),l=H.BigInt?H.BigInt(s[1]):parseInt(s[1],10);o<Number.MAX_SAFE_INTEGER&&typeof o=="bigint"&&(o=Number(o)),l<Number.MAX_SAFE_INTEGER&&typeof l=="bigint"&&(l=Number(l));let u;typeof l=="bigint"||typeof o=="bigint"?u=H.BigInt(l)-H.BigInt(o)+H.BigInt(1):u=l-o+1,typeof u=="bigint"&&u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),n.byterange={length:u,offset:o}}return n},wJ=r=>{let e;return typeof r.offset=="bigint"||typeof r.length=="bigint"?e=H.BigInt(r.offset)+H.BigInt(r.length)-H.BigInt(1):e=r.offset+r.length-1,`${r.offset}-${e}`},xP=r=>(r&&typeof r!="number"&&(r=parseInt(r,10)),isNaN(r)?null:r),CJ={static(r){const{duration:e,timescale:t=1,sourceDuration:i,periodDuration:n}=r,a=xP(r.endNumber),s=e/t;return typeof a=="number"?{start:0,end:a}:typeof n=="number"?{start:0,end:n/s}:{start:0,end:i/s}},dynamic(r){const{NOW:e,clientOffset:t,availabilityStartTime:i,timescale:n=1,duration:a,periodStart:s=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=r,u=xP(r.endNumber),c=(e+t)/1e3,h=i+s,f=c+o-h,p=Math.ceil(f*n/a),v=Math.floor((c-h-l)*n/a),g=Math.floor((c-h)*n/a);return{start:Math.max(0,v),end:typeof u=="number"?u:Math.min(p,g)}}},AJ=r=>e=>{const{duration:t,timescale:i=1,periodStart:n,startNumber:a=1}=r;return{number:a+e,duration:t/i,timeline:n,time:e*t}},MC=r=>{const{type:e,duration:t,timescale:i=1,periodDuration:n,sourceDuration:a}=r,{start:s,end:o}=CJ[e](r),l=TJ(s,o).map(AJ(r));if(e==="static"){const u=l.length-1,c=typeof n=="number"?n:a;l[u].duration=c-t/i*u}return l},L4=r=>{const{baseUrl:e,initialization:t={},sourceDuration:i,indexRange:n="",periodStart:a,presentationTime:s,number:o=0,duration:l}=r;if(!e)throw new Error($h.NO_BASE_URL);const u=jp({baseUrl:e,source:t.sourceURL,range:t.range}),c=jp({baseUrl:e,source:e,indexRange:n});if(c.map=u,l){const h=MC(r);h.length&&(c.duration=h[0].duration,c.timeline=h[0].timeline)}else i&&(c.duration=i,c.timeline=a);return c.presentationTime=s||a,c.number=o,[c]},LC=(r,e,t)=>{const i=r.sidx.map?r.sidx.map:null,n=r.sidx.duration,a=r.timeline||0,s=r.sidx.byterange,o=s.offset+s.length,l=e.timescale,u=e.references.filter(g=>g.referenceType!==1),c=[],h=r.endList?"static":"dynamic",d=r.sidx.timeline;let f=d,p=r.mediaSequence||0,v;typeof e.firstOffset=="bigint"?v=H.BigInt(o)+e.firstOffset:v=o+e.firstOffset;for(let g=0;g<u.lengt
|
|||
|
* @license
|
|||
|
* Video.js 8.18.1 <http://videojs.com/>
|
|||
|
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
|||
|
* Available under Apache License Version 2.0
|
|||
|
* <https://github.com/videojs/video.js/blob/main/LICENSE>
|
|||
|
*
|
|||
|
* Includes vtt.js <https://github.com/mozilla/vtt.js>
|
|||
|
* Available under Apache License Version 2.0
|
|||
|
* <https://github.com/mozilla/vtt.js/blob/main/LICENSE>
|
|||
|
*/var Mx="8.18.1";const Cs={},Yo=function(r,e){return Cs[r]=Cs[r]||[],e&&(Cs[r]=Cs[r].concat(e)),Cs[r]},Ree=function(r,e){Yo(r,e)},z4=function(r,e){const t=Yo(r).indexOf(e);return t<=-1?!1:(Cs[r]=Cs[r].slice(),Cs[r].splice(t,1),!0)},Oee=function(r,e){Yo(r,[].concat(e).map(t=>{const i=(...n)=>(z4(r,i),t(...n));return i}))},Hy={prefixed:!0},ny=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],kP=ny[0];let qd;for(let r=0;r<ny.length;r++)if(ny[r][1]in de){qd=ny[r];break}if(qd){for(let r=0;r<qd.length;r++)Hy[kP[r]]=qd[r];Hy.prefixed=qd[0]!==kP[0]}let Ri=[];const Nee=(r,e,t)=>(i,n,a)=>{const s=e.levels[n],o=new RegExp(`^(${s})$`);let l=r;if(i!=="log"&&a.unshift(i.toUpperCase()+":"),t&&(l=`%c${r}`,a.unshift(t)),a.unshift(l+":"),Ri){Ri.push([].concat(a));const c=Ri.length-1e3;Ri.splice(0,c>0?c:0)}if(!H.console)return;let u=H.console[i];!u&&i==="debug"&&(u=H.console.info||H.console.log),!(!u||!s||!o.test(i))&&u[Array.isArray(a)?"apply":"call"](H.console,a)};function Lx(r,e=":",t=""){let i="info",n;function a(...s){n("log",i,s)}return n=Nee(r,a,t),a.createLogger=(s,o,l)=>{const u=o!==void 0?o:e,c=l!==void 0?l:t,h=`${r} ${u} ${s}`;return Lx(h,u,c)},a.createNewLogger=(s,o,l)=>Lx(s,o,l),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},a.level=s=>{if(typeof s=="string"){if(!a.levels.hasOwnProperty(s))throw new Error(`"${s}" in not a valid log level`);i=s}return i},a.history=()=>Ri?[].concat(Ri):[],a.history.filter=s=>(Ri||[]).filter(o=>new RegExp(`.*${s}.*`).test(o[0])),a.history.clear=()=>{Ri&&(Ri.length=0)},a.history.disable=()=>{Ri!==null&&(Ri.length=0,Ri=null)},a.history.enable=()=>{Ri===null&&(Ri=[])},a.error=(...s)=>n("error",i,s),a.warn=(...s)=>n("warn",i,s),a.debug=(...s)=>n("debug",i,s),a}const pt=Lx("VIDEOJS"),G4=pt.createLogger,Bee=Object.prototype.toString,H4=function(r){return es(r)?Object.keys(r):[]};function bh(r,e){H4(r).forEach(t=>e(r[t],t))}function $4(r,e,t=0){return H4(r).reduce((i,n)=>e(i,r[n],n),t)}function es(r){return!!r&&typeof r=="object"}function qh(r){return es(r)&&Bee.call(r)==="[object Object]"&&r.constructor===Object}function Ut(...r){const e={};return r.forEach(t=>{t&&bh(t,(i,n)=>{if(!qh(i)){e[n]=i;return}qh(e[n])||(e[n]={}),e[n]=Ut(e[n],i)})}),e}function W4(r={}){const e=[];for(const t in r)if(r.hasOwnProperty(t)){const i=r[t];e.push(i)}return e}function I_(r,e,t,i=!0){const n=s=>Object.defineProperty(r,e,{value:s,enumerable:!0,writable:!0}),a={configurable:!0,enumerable:!0,get(){const s=t();return n(s),s}};return i&&(a.set=n),Object.defineProperty(r,e,a)}var Fee=Object.freeze({__proto__:null,each:bh,reduce:$4,isObject:es,isPlain:qh,merge:Ut,values:W4,defineLazyProperty:I_});let VC=!1,q4=null,ts=!1,j4,X4=!1,Th=!1,Sh=!1,rs=!1,zC=null,P_=null;const Uee=!!(H.cast&&H.cast.framework&&H.cast.framework.CastReceiverContext);let Y4=null,$y=!1,M_=!1,Wy=!1,L_=!1,qy=!1,jy=!1,Xy=!1;const Xp=!!(bf()&&("ontouchstart"in H||H.navigator.maxTouchPoints||H.DocumentTouch&&H.document instanceof H.DocumentTouch)),uo=H.navigator&&H.navigator.userAgentData;uo&&uo.platform&&uo.brands&&(ts=uo.platform==="Android",Th=!!uo.brands.find(r=>r.brand==="Microsoft Edge"),Sh=!!uo.brands.find(r=>r.brand==="Chromium"),rs=!Th&&Sh,zC=P_=(uo.brands.find(r=>r.brand==="Chromium")||{}).version||null,M_=uo.platform==="Windows");if(!Sh){const r=H.navigator&&H.navigator.userAgent||"";VC=/iPod/i.test(r),q4=function(){const e=r.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),ts=/Android/i.test(r),j4=function(){const e=r.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;const t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),X4=/Firefox/i.test(r),Th=/Edg/i.test(r),Sh=/Chrome/i.test(r)||/CriOS/i.test(r),rs=!Th&&Sh,zC=P_=function(){const e=r.match(/(
|
|||
|
<defs>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-play">
|
|||
|
<path d="M16 10v28l22-14z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-pause">
|
|||
|
<path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-audio">
|
|||
|
<path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-captions">
|
|||
|
<path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">
|
|||
|
<path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">
|
|||
|
<path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">
|
|||
|
<path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">
|
|||
|
<path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">
|
|||
|
<path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">
|
|||
|
<path d="M14 18v12h8l10 10V8L22 18h-8z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">
|
|||
|
<path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">
|
|||
|
<path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-spinner">
|
|||
|
<path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 24 24" id="vjs-icon-hd">
|
|||
|
<path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-chapters">
|
|||
|
<path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 40 40" id="vjs-icon-downloading">
|
|||
|
<path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-file-download">
|
|||
|
<path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">
|
|||
|
<path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">
|
|||
|
<path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-share">
|
|||
|
<path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-cog">
|
|||
|
<path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-square">
|
|||
|
<path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-circle">
|
|||
|
<circle cx="24" cy="24" r="20"></circle>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">
|
|||
|
<path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">
|
|||
|
<path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-cancel">
|
|||
|
<path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-replay">
|
|||
|
<path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-repeat">
|
|||
|
<path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">
|
|||
|
<path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">
|
|||
|
<path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">
|
|||
|
<path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">
|
|||
|
<path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">
|
|||
|
<path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">
|
|||
|
<path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">
|
|||
|
<g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-next-item">
|
|||
|
<path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">
|
|||
|
<path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">
|
|||
|
<path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-cast">
|
|||
|
<path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">
|
|||
|
<path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">
|
|||
|
<path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>
|
|||
|
<path fill="none" d="M-1-3h24v24H-1z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">
|
|||
|
<path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">
|
|||
|
<path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 1200 1227" id="vjs-icon-twitter">
|
|||
|
<path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z"/>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">
|
|||
|
<path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>
|
|||
|
</symbol>
|
|||
|
<symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">
|
|||
|
<path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>
|
|||
|
</symbol>
|
|||
|
</defs>
|
|||
|
</svg>`;const $P=qy?10009:jy?461:8,Ic={codes:{play:415,pause:19,ff:417,rw:412,back:$P},names:{415:"play",19:"pause",417:"ff",412:"rw",[$P]:"back"},isEventKey(r,e){return e=e.toLowerCase(),!!(this.names[r.keyCode]&&this.names[r.keyCode]===e)},getEventName(r){if(this.names[r.keyCode])return this.names[r.keyCode];if(this.codes[r.code]){const e=this.codes[r.code];return this.names[e]}return null}},WP=5;class xte extends bn{constructor(e){super(),this.player_=e,this.focusableComponents=[],this.isListening_=!1,this.isPaused_=!1,this.onKeyDown_=this.onKeyDown_.bind(this),this.lastFocusedComponent_=null}start(){this.isListening_||(this.player_.on("keydown",this.onKeyDown_),this.player_.on("modalKeydown",this.onKeyDown_),this.player_.on("loadedmetadata",()=>{this.focus(this.updateFocusableComponents()[0])}),this.player_.on("modalclose",()=>{this.refocusComponent()}),this.player_.on("focusin",this.handlePlayerFocus_.bind(this)),this.player_.on("focusout",this.handlePlayerBlur_.bind(this)),this.isListening_=!0,this.player_.errorDisplay&&this.player_.errorDisplay.on("aftermodalfill",()=>{this.updateFocusableComponents(),this.focusableComponents.length&&(this.focusableComponents.length>1?this.focusableComponents[1].focus():this.focusableComponents[0].focus())}))}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(e){const t=e.originalEvent?e.originalEvent:e;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(t.key)){if(this.isPaused_)return;t.preventDefault();const i=t.key.substring(5).toLowerCase();this.move(i)}else if(Ic.isEventKey(t,"play")||Ic.isEventKey(t,"pause")||Ic.isEventKey(t,"ff")||Ic.isEventKey(t,"rw")){t.preventDefault();const i=Ic.getEventName(t);this.performMediaAction_(i)}else Ic.isEventKey(t,"Back")&&e.target&&typeof e.target.closeable=="function"&&e.target.closeable()&&(t.preventDefault(),e.target.close())}performMediaAction_(e){if(this.player_)switch(e){case"play":this.player_.paused()&&this.player_.play();break;case"pause":this.player_.paused()||this.player_.pause();break;case"ff":this.userSeek_(this.player_.currentTime()+WP);break;case"rw":this.userSeek_(this.player_.currentTime()-WP);break}}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(e){const t=e.relatedTarget;let i=null;const n=this.getCurrentComponent(e.target);t&&(i=!!t.closest(".video-js"),t.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(!e.currentTarget.contains(e.relatedTarget)&&!i||!t)&&(n&&n.name()==="CloseButton"?this.refocusComponent():(this.pause(),n&&n.el()&&(this.lastFocusedComponent_=n)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const e=this.player_,t=[];function i(n){for(const a of n)a.hasOwnProperty("el_")&&a.getIsFocusable()&&a.getIsAvailableToBeFocused(a.el())&&t.push(a),a.hasOwnProperty("children_")&&a.children_.length>0&&i(a.children_)}return e.children_.forEach(n=>{if(n.hasOwnProperty("el_"))if(n.getIsFocusable&&n.getIsAvailableToBeFocused&&n.getIsFocusable()&&n.getIsAvailableToBeFocused(n.el())){t.push(n);return}else n.hasOwnProperty("children_")&&n.children_.length>0?i(n.children_):n.hasOwnProperty("items")&&n.items.length>0?i(n.items):this.findSuitableDOMChild(n)&&t.push(n);if(n.name_==="ErrorDisplay"&&n.opened_){const a=n.el_.querySelector(".vjs-errors-ok-button-container");a&&a.querySelectorAll("button").forEach((o,l)=>{t.push({name:()=>"ModalButton"+(l+1),el:()=>o,getPositions:()=>{const u=o.getBoundingClientRect(),c={x:u.x,y:u.y,width:u.width,height:u.height,top:u.top,right:u.right,bottom:u.bottom,left:u.left},h={x:u.left+u.width/2,y:u.top+u.height/2,width:0,height:0,top:u.top+u.height/2,right:u.left+u.width/2,bottom:u.top+u.height/2,left:u.left+u.width/2};return{boundingClientRect:c,center:h}},getIsAvailableToBeFocused:()=>!0,getIsFocusable:u=>!0,focus:()=>o.focus()})})}}),this.foc
|
|||
|
This may prevent text tracks from loading.`),this.restoreMetadataTracksInIOSNativePlayer_(),(Xp||L_)&&e.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),xe.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){Qte(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const i=()=>{t=[];for(let a=0;a<e.length;a++){const s=e[a];s.kind==="metadata"&&t.push({track:s,storedMode:s.mode})}};i(),e.addEventListener("change",i),this.on("dispose",()=>e.removeEventListener("change",i));const n=()=>{for(let a=0;a<t.length;a++){const s=t[a];s.track.mode==="disabled"&&s.track.mode!==s.storedMode&&(s.track.mode=s.storedMode)}e.removeEventListener("change",n)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",i),e.removeEventListener("change",n),e.addEventListener("change",n)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",i),e.addEventListener("change",i),e.removeEventListener("change",n)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const i=e.toLowerCase();this[`${i}TracksListeners_`]&&Object.keys(this[`${i}TracksListeners_`]).forEach(n=>{this.el()[`${i}Tracks`].removeEventListener(n,this[`${i}TracksListeners_`][n])}),this[`featuresNative${e}Tracks`]=!t,this[`${i}TracksListeners_`]=null,this.proxyNativeTracksForType_(i)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=$n[e],i=this.el()[t.getterName],n=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!i||!i.addEventListener)return;const a={change:o=>{const l={type:"change",target:n,currentTarget:n,srcElement:n};n.trigger(l),e==="text"&&this[Zh.remoteText.getterName]().trigger(l)},addtrack(o){n.addTrack(o.track)},removetrack(o){n.removeTrack(o.track)}},s=function(){const o=[];for(let l=0;l<n.length;l++){let u=!1;for(let c=0;c<i.length;c++)if(i[c]===n[l]){u=!0;break}u||o.push(n[l])}for(;o.length;)n.removeTrack(o.shift())};this[t.getterName+"Listeners_"]=a,Object.keys(a).forEach(o=>{const l=a[o];i.addEventListener(o,l),this.on("dispose",u=>i.removeEventListener(o,l))}),this.on("loadstart",s),this.on("dispose",o=>this.off("loadstart",s))}proxyNativeTracks_(){$n.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(e){const i=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(i,e),xe.disposeMediaElement(e),e=i}else{e=de.createElement("video");const i=this.options_.tag&&Co(this.options_.tag),n=Ut({},i);(!Xp||this.options_.nativeControlsForTouch!==!0)&&delete n.controls,eF(e,Object.assign(n,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&jh(e,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let i=0;i<t.length;i++){const n=t[i],a=this.options_[n];typeof a<"u"&&(a?jh(e,n,n):O_(e,n),e[n]=a)}return e}handleLateInit_(e){if(e.networkState===0||e.networkState===3)return;if(e.readyState===0){let i=!1;const n=function(){i=!0};this.on("loadstart",n);const a=function(){i||this.trigger("loadstart")};this.on("loadedmetadata",a),this.ready(function(){this.off("loadstart",n),this.off("loadedmetadata",a),i||this.trigger("loadstart")});return}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(i){this.trigger(i)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&k_?this.el_.fastSeek(e):this.el_.currentTime=e}catch(t){pt(t,"Video is not ready. (Video.js)")}}duration(){if(this.
|
|||
|
.${n} {
|
|||
|
width: ${e}px;
|
|||
|
height: ${t}px;
|
|||
|
}
|
|||
|
|
|||
|
.${n}.vjs-fluid:not(.vjs-audio-only-mode) {
|
|||
|
padding-top: ${s*100}%;
|
|||
|
}
|
|||
|
`)}loadTech_(e,t){this.tech_&&this.unloadTech_();const i=nr(e),n=e.charAt(0).toLowerCase()+e.slice(1);i!=="Html5"&&this.tag&&(it.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;let a=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(a=!1);const s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${n}_api`,playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset};_i.names.forEach(l=>{const u=_i[l];s[u.getterName]=this[u.privateName]}),Object.assign(s,this.options_[i]),Object.assign(s,this.options_[n]),Object.assign(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);const o=it.getTech(e);if(!o)throw new Error(`No Tech named '${i}' exists! '${i}' should be registered using videojs.registerTech()'`);this.tech_=new o(s),this.tech_.ready(Ht(this,this.handleTechReady_),!0),BP.jsonToTextTracks(this.textTracksJson_||[],this.tech_),r8.forEach(l=>{this.on(this.tech_,l,u=>this[`handleTech${nr(l)}_`](u))}),Object.keys(xb).forEach(l=>{this.on(this.tech_,l,u=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${xb[l]}_`].bind(this),event:u});return}this[`handleTech${xb[l]}_`](u)})}),this.on(this.tech_,"loadstart",l=>this.handleTechLoadStart_(l)),this.on(this.tech_,"sourceset",l=>this.handleTechSourceset_(l)),this.on(this.tech_,"waiting",l=>this.handleTechWaiting_(l)),this.on(this.tech_,"ended",l=>this.handleTechEnded_(l)),this.on(this.tech_,"seeking",l=>this.handleTechSeeking_(l)),this.on(this.tech_,"play",l=>this.handleTechPlay_(l)),this.on(this.tech_,"pause",l=>this.handleTechPause_(l)),this.on(this.tech_,"durationchange",l=>this.handleTechDurationChange_(l)),this.on(this.tech_,"fullscreenchange",(l,u)=>this.handleTechFullscreenChange_(l,u)),this.on(this.tech_,"fullscreenerror",(l,u)=>this.handleTechFullscreenError_(l,u)),this.on(this.tech_,"enterpictureinpicture",l=>this.handleTechEnterPictureInPicture_(l)),this.on(this.tech_,"leavepictureinpicture",l=>this.handleTechLeavePictureInPicture_(l)),this.on(this.tech_,"error",l=>this.handleTechError_(l)),this.on(this.tech_,"posterchange",l=>this.handleTechPosterChange_(l)),this.on(this.tech_,"textdata",l=>this.handleTechTextData_(l)),this.on(this.tech_,"ratechange",l=>this.handleTechRateChange_(l)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode!==this.el()&&(i!=="Html5"||!this.tag)&&kx(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){_i.names.forEach(e=>{const t=_i[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=BP.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return e===void 0&&pt.warn(`Using the tech directly can be dangerous. I hope you know what you're doing.
|
|||
|
See https://github.com/videojs/video.js/issues/2617 for more info.
|
|||
|
`),this.tech_}version(){return{"video.js":Mx}}addTechControlsListeners_(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)}removeTechControlsListeners_(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(this.autoplay()===!0&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||typeof e!="string")return;const t=()=>{const n=this.muted();this.muted(!0);const a=()=>{this.muted(n)};this.playTerminatedQueue_.push(a);const s=this.play();if(mp(s))return s.catch(o=>{throw a(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${o||""}`)})};let i;if(e==="any"&&!this.muted()?(i=this.play(),mp(i)&&(i=i.catch(t))):e==="muted"&&!this.muted()?i=t():i=this.play(),!!mp(i))return i.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})})}updateSourceCaches_(e=""){let t=e,i="";typeof t!="string"&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=Tte(this,t)),this.cache_.source=Ut({},e,{src:t,type:i});const n=this.cache_.sources.filter(l=>l.src&&l.src===t),a=[],s=this.$$("source"),o=[];for(let l=0;l<s.length;l++){const u=Co(s[l]);a.push(u),u.src&&u.src===t&&o.push(u.src)}o.length&&!n.length?this.cache_.sources=a:n.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=a=>this.updateSourceCaches_(a);const i=this.currentSource().src,n=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(n)&&(!this.lastSource_||this.lastSource_.tech!==n&&this.lastSource_.player!==i)&&(t=()=>{}),t(n),e.src||this.tech_.any(["sourceset","loadstart"],a=>{if(a.type==="sourceset")return;const s=this.techGet_("currentSrc");this.lastSource_.tech=s,this.updateSourceCaches_(s)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(e===void 0)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&this.cache_.lastPlaybackRate===0&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}handleTechSeeked_(){this.removeClass(
|
|||
|
.video-js {
|
|||
|
width: 300px;
|
|||
|
height: 150px;
|
|||
|
}
|
|||
|
|
|||
|
.vjs-fluid:not(.vjs-audio-only-mode) {
|
|||
|
padding-top: 56.25%
|
|||
|
}
|
|||
|
`)}}Ox(1,K);K.VERSION=Mx;K.options=Lr.prototype.options_;K.getPlayers=()=>Lr.players;K.getPlayer=r=>{const e=Lr.players;let t;if(typeof r=="string"){const i=n8(r),n=e[i];if(n)return n;t=Ko("#"+i)}else t=r;if(Tf(t)){const{player:i,playerId:n}=t;if(i||e[n])return i||e[n]}};K.getAllPlayers=()=>Object.keys(Lr.players).map(r=>Lr.players[r]).filter(Boolean);K.players=Lr.players;K.getComponent=ae.getComponent;K.registerComponent=(r,e)=>(it.isTech(e)&&pt.warn(`The ${r} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),ae.registerComponent.call(ae,r,e));K.getTech=it.getTech;K.registerTech=it.registerTech;K.use=cte;Object.defineProperty(K,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(K.middleware,"TERMINATOR",{value:Qy,writeable:!1,enumerable:!0});K.browser=K4;K.obj=Fee;K.mergeOptions=Ta(9,"videojs.mergeOptions","videojs.obj.merge",Ut);K.defineLazyProperty=Ta(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",I_);K.bind=Ta(9,"videojs.bind","native Function.prototype.bind",Ht);K.registerPlugin=$i.registerPlugin;K.deregisterPlugin=$i.deregisterPlugin;K.plugin=(r,e)=>(pt.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),$i.registerPlugin(r,e));K.getPlugins=$i.getPlugins;K.getPlugin=$i.getPlugin;K.getPluginVersion=$i.getPluginVersion;K.addLanguage=function(r,e){return r=(""+r).toLowerCase(),K.options.languages=Ut(K.options.languages,{[r]:e}),K.options.languages[r]};K.log=pt;K.createLogger=G4;K.time=Jee;K.createTimeRange=Ta(9,"videojs.createTimeRange","videojs.time.createTimeRanges",pa);K.createTimeRanges=Ta(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",pa);K.formatTime=Ta(9,"videojs.formatTime","videojs.time.formatTime",Xu);K.setFormatTime=Ta(9,"videojs.setFormatTime","videojs.time.setFormatTime",_F);K.resetFormatTime=Ta(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",bF);K.parseUrl=Ta(9,"videojs.parseUrl","videojs.url.parseUrl",XC);K.isCrossOrigin=Ta(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",z_);K.EventTarget=bn;K.any=$C;K.on=_n;K.one=U_;K.off=ni;K.trigger=Sf;K.xhr=W5;K.TextTrack=Hv;K.AudioTrack=wF;K.VideoTrack=CF;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(r=>{K[r]=function(){return pt.warn(`videojs.${r}() is deprecated; use videojs.dom.${r}() instead`),uF[r].apply(null,arguments)}});K.computedStyle=Ta(9,"videojs.computedStyle","videojs.dom.computedStyle",Yh);K.dom=uF;K.fn=jee;K.num=Mte;K.str=Zee;K.url=lte;K.Error=rre;/*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */class ire{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get(){return t.enabled_()},set(i){t.enabled_(i)}}),t}}class i0 extends K.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get(){return e.selectedIndex_}}),Object.defineProperty(e,"length",{get(){return e.levels_.length}}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const i=this.levels_.length;return t=new ire(e),""+i in this||Object.defineProperty(this,i,{get(){return this.levels_[i]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let i=0,n=this.length;i<n;i++)if(this[i]===e){t=this.levels_.splice(i,1)[0],this.selectedIndex_===i?this.selectedIndex_=-1:this.selectedIndex_>i&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,i=this.length;t<i;t++){const n=this[t];if(n.id===e)return n}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}i0.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};
|
|||
|
`;for(let t=0;t<r.length;t++){const i=r.start(t),n=r.end(t);e+=`${i} --> ${n}. Duration (${n-i})
|
|||
|
`}return e}const za=1/30,Ga=za*3,o8=function(r,e){const t=[];let i;if(r&&r.length)for(i=0;i<r.length;i++)e(r.start(i),r.end(i))&&t.push([r.start(i),r.end(i)]);return Kr(t)},hh=function(r,e){return o8(r,function(t,i){return t-Ga<=e&&i+Ga>=e})},$g=function(r,e){return o8(r,function(t){return t-za>=e})},sre=function(r){if(r.length<2)return Kr();const e=[];for(let t=1;t<r.length;t++){const i=r.end(t-1),n=r.start(t);e.push([i,n])}return Kr(e)},ore=function(r,e){let t=null,i=null,n=0;const a=[],s=[];if(!r||!r.length||!e||!e.length)return Kr();let o=r.length;for(;o--;)a.push({time:r.start(o),type:"start"}),a.push({time:r.end(o),type:"end"});for(o=e.length;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(a.sort(function(l,u){return l.time-u.time}),o=0;o<a.length;o++)a[o].type==="start"?(n++,n===2&&(t=a[o].time)):a[o].type==="end"&&(n--,n===1&&(i=a[o].time)),t!==null&&i!==null&&(s.push([t,i]),t=null,i=null);return Kr(s)},l8=r=>{const e=[];if(!r||!r.length)return"";for(let t=0;t<r.length;t++)e.push(r.start(t)+" => "+r.end(t));return e.join(", ")},lre=function(r,e,t=1){return((r.length?r.end(r.length-1):0)-e)/t},pu=r=>{const e=[];for(let t=0;t<r.length;t++)e.push({start:r.start(t),end:r.end(t)});return e},ure=function(r,e){if(r===e)return!1;if(!r&&e||!e&&r||r.length!==e.length)return!0;for(let t=0;t<r.length;t++)if(r.start(t)!==e.start(t)||r.end(t)!==e.end(t))return!0;return!1},wb=function(r){if(!(!r||!r.length||!r.end))return r.end(r.length-1)},fA=function(r,e){let t=0;if(!r||!r.length)return t;for(let i=0;i<r.length;i++){const n=r.start(i),a=r.end(i);if(!(e>a)){if(e>n&&e<=a){t+=a-e;continue}t+=a-n}}return t},dA=(r,e)=>{if(!e.preload)return e.duration;let t=0;return(e.parts||[]).forEach(function(i){t+=i.duration}),(e.preloadHints||[]).forEach(function(i){i.type==="PART"&&(t+=r.partTargetDuration)}),t},Gx=r=>(r.segments||[]).reduce((e,t,i)=>(t.parts?t.parts.forEach(function(n,a){e.push({duration:n.duration,segmentIndex:i,partIndex:a,part:n,segment:t})}):e.push({duration:t.duration,segmentIndex:i,partIndex:null,segment:t,part:null}),e),[]),u8=r=>{const e=r.segments&&r.segments.length&&r.segments[r.segments.length-1];return e&&e.parts||[]},c8=({preloadSegment:r})=>{if(!r)return;const{parts:e,preloadHints:t}=r;let i=(t||[]).reduce((n,a)=>n+(a.type==="PART"?1:0),0);return i+=e&&e.length?e.length:0,i},h8=(r,e)=>{if(e.endList)return 0;if(r&&r.suggestedPresentationDelay)return r.suggestedPresentationDelay;const t=u8(e).length>0;return t&&e.serverControl&&e.serverControl.partHoldBack?e.serverControl.partHoldBack:t&&e.partTargetDuration?e.partTargetDuration*3:e.serverControl&&e.serverControl.holdBack?e.serverControl.holdBack:e.targetDuration?e.targetDuration*3:0},cre=function(r,e){let t=0,i=e-r.mediaSequence,n=r.segments[i];if(n){if(typeof n.start<"u")return{result:n.start,precise:!0};if(typeof n.end<"u")return{result:n.end-n.duration,precise:!0}}for(;i--;){if(n=r.segments[i],typeof n.end<"u")return{result:t+n.end,precise:!0};if(t+=dA(r,n),typeof n.start<"u")return{result:t+n.start,precise:!0}}return{result:t,precise:!1}},hre=function(r,e){let t=0,i,n=e-r.mediaSequence;for(;n<r.segments.length;n++){if(i=r.segments[n],typeof i.start<"u")return{result:i.start-t,precise:!0};if(t+=dA(r,i),typeof i.end<"u")return{result:i.end-t,precise:!0}}return{result:-1,precise:!1}},f8=function(r,e,t){if(typeof e>"u"&&(e=r.mediaSequence+r.segments.length),e<r.mediaSequence)return 0;const i=cre(r,e);if(i.precise)return i.result;const n=hre(r,e);return n.precise?n.result:i.result+t},d8=function(r,e,t){if(!r)return 0;if(typeof t!="number"&&(t=0),typeof e>"u"){if(r.totalDuration)return r.totalDuration;if(!r.endList)return H.Infinity}return f8(r,e,t)},yp=function({defaultDuration:r,durationList:e,startIndex:t,endIndex:i}){let n=0;if(t>i&&([t,i]=[i,t]),t<0){for(let a=t;a<Math.min(0,i);a++)n+=r;t=0}for(let a=t;a<i;a++)n+=e[a].duration;return n},p8=function(r,e,t,i){if(!r||!r.segments)return null;if(r.endList)return d8(r);if(e===null)return null;e=e||0;let n=f8(r,r.mediaSequence+r.segments.length,e);return t&&(i=typeof i=="number"?i
|
|||
|
`;return i},Mre=({bytes:r})=>E8(r),Lre=r=>{let e="",t;for(t=0;t<r.length;t++)e+=Ere(r,t)+" ";return e};var kre=Object.freeze({__proto__:null,createTransferableMessage:A8,initSegmentId:a0,segmentKeyId:D8,hexDump:E8,tagDump:Mre,textRanges:Lre});const I8=.25,Rre=(r,e)=>{if(!e.dateTimeObject)return null;const t=e.videoTimingInfo.transmuxerPrependedSeconds,n=e.videoTimingInfo.transmuxedPresentationStart+t,a=r-n;return new Date(e.dateTimeObject.getTime()+a*1e3)},Ore=r=>r.transmuxedPresentationEnd-r.transmuxedPresentationStart-r.transmuxerPrependedSeconds,Nre=(r,e)=>{let t;try{t=new Date(r)}catch{return null}if(!e||!e.segments||e.segments.length===0)return null;let i=e.segments[0];if(t<new Date(i.dateTimeObject))return null;for(let l=0;l<e.segments.length-1;l++){i=e.segments[l];const u=new Date(e.segments[l+1].dateTimeObject);if(t<u)break}const n=e.segments[e.segments.length-1],a=n.dateTimeObject,s=n.videoTimingInfo?Ore(n.videoTimingInfo):n.duration+n.duration*I8,o=new Date(a.getTime()+s*1e3);return t>o?null:(t>new Date(a)&&(i=n),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:Vi.duration(e,e.mediaSequence+e.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})},Bre=(r,e)=>{if(!e||!e.segments||e.segments.length===0)return null;let t=0,i;for(let a=0;a<e.segments.length&&(i=e.segments[a],t=i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:t+i.duration,!(r<=t));a++);const n=e.segments[e.segments.length-1];if(n.videoTimingInfo&&n.videoTimingInfo.transmuxedPresentationEnd<r)return null;if(r>t){if(r>t+n.duration*I8)return null;i=n}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:t-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}},Fre=(r,e)=>{let t,i;try{t=new Date(r),i=new Date(e)}catch{}const n=t.getTime();return(i.getTime()-n)/1e3},Ure=r=>{if(!r.segments||r.segments.length===0)return!1;for(let e=0;e<r.segments.length;e++)if(!r.segments[e].dateTimeObject)return!1;return!0},Vre=({playlist:r,time:e=void 0,callback:t})=>{if(!t)throw new Error("getProgramTime: callback must be provided");if(!r||e===void 0)return t({message:"getProgramTime: playlist and time must be provided"});const i=Bre(e,r);if(!i)return t({message:"valid programTime was not found"});if(i.type==="estimate")return t({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const n={mediaSeconds:e},a=Rre(e,i.segment);return a&&(n.programDateTime=a.toISOString()),t(null,n)},P8=({programTime:r,playlist:e,retryCount:t=2,seekTo:i,pauseAfterSeek:n=!0,tech:a,callback:s})=>{if(!s)throw new Error("seekToProgramTime: callback must be provided");if(typeof r>"u"||!e||!i)return s({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!e.endList&&!a.hasStarted_)return s({message:"player must be playing a live stream to start buffering"});if(!Ure(e))return s({message:"programDateTime tags must be provided in the manifest "+e.resolvedUri});const o=Nre(r,e);if(!o)return s({message:`${r} was not found in the stream`});const l=o.segment,u=Fre(l.dateTimeObject,r);if(o.type==="estimate"){if(t===0)return s({message:`${r} is not buffered yet. Try again`});i(o.estimatedStart+u),a.one("seeked",()=>{P8({programTime:r,playlist:e,retryCount:t-1,seekTo:i,pauseAfterSeek:n,tech:a,callback:s})});return}const c=l.start+u,h=()=>s(null,a.currentTime());a.one("seeked",h),n&&a.pause(),i(c)},Cb=(r,e)=>{if(r.readyState===4)return e()},zre=(r,e,t,i)=>{let n=[],a,s=!1;const o=function(h,d,f,p){return d.abort(),s=!0,t(h,d,f,p)},l=function(h,d){if(s)return;if(h)return h.metadata=Iu({requestType:i,request:d,error:h}),o(h,d,"",n);const f=d.responseText.substring(n&&n.byteLength||0,d.responseText.length);if(n=WQ(n,e4(f,!0)),a=a||Wd(n),n.length<10||a&&n.length<a+2)return Cb(d,()=>o(h,d,"",n));const p=OC(n);return p==="ts"&&n.length<188?Cb(d,()=>o(h,d,"",n)):!p&&n.length<376?Cb(d,()=>o(h,d,"",n)):o(null,d,p,n)},c=e({uri:r,beforeSend(h){h.overrideMimeType("text/plain; charset=x-user-defined"),h.addEv
|
|||
|
browserWorkerPolyFill(self);
|
|||
|
`+r},R8=function(r){return r.toString().replace(/^function.+?{/,"").slice(0,-1)},Zre=k8(R8(function(){var r=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=function(){this.init=function(){var T={};this.on=function(w,E){T[w]||(T[w]=[]),T[w]=T[w].concat(E)},this.off=function(w,E){var A;return T[w]?(A=T[w].indexOf(E),T[w]=T[w].slice(),T[w].splice(A,1),A>-1):!1},this.trigger=function(w){var E,A,P,k;if(E=T[w],!!E)if(arguments.length===2)for(P=E.length,A=0;A<P;++A)E[A].call(this,arguments[1]);else{for(k=[],A=arguments.length,A=1;A<arguments.length;++A)k.push(arguments[A]);for(P=E.length,A=0;A<P;++A)E[A].apply(this,k)}},this.dispose=function(){T={}}}};e.prototype.pipe=function(T){return this.on("data",function(w){T.push(w)}),this.on("done",function(w){T.flush(w)}),this.on("partialdone",function(w){T.partialFlush(w)}),this.on("endedtimeline",function(w){T.endTimeline(w)}),this.on("reset",function(w){T.reset(w)}),T},e.prototype.push=function(T){this.trigger("data",T)},e.prototype.flush=function(T){this.trigger("done",T)},e.prototype.partialFlush=function(T){this.trigger("partialdone",T)},e.prototype.endTimeline=function(T){this.trigger("endedtimeline",T)},e.prototype.reset=function(T){this.trigger("reset",T)};var t=e,i=Math.pow(2,32),n=function(T){var w=new DataView(T.buffer,T.byteOffset,T.byteLength),E;return w.getBigUint64?(E=w.getBigUint64(0),E<Number.MAX_SAFE_INTEGER?Number(E):E):w.getUint32(0)*i+w.getUint32(4)},a={getUint64:n,MAX_UINT32:i},s=a.MAX_UINT32,o,l,u,c,h,d,f,p,v,g,m,y,_,b,S,x,C,D,I,M,L,N,O,B,F,U,$,q,Z,te,Q,se,he,ue,Ie,Oe;(function(){var T;if(O={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},!(typeof Uint8Array>"u")){for(T in O)O.hasOwnProperty(T)&&(O[T]=[T.charCodeAt(0),T.charCodeAt(1),T.charCodeAt(2),T.charCodeAt(3)]);B=new Uint8Array([105,115,111,109]),U=new Uint8Array([97,118,99,49]),F=new Uint8Array([0,0,0,1]),$=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),q=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),Z={video:$,audio:q},se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Q=new Uint8Array([0,0,0,0,0,0,0,0]),he=new Uint8Array([0,0,0,0,0,0,0,0]),ue=he,Ie=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Oe=he,te=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),o=function(T){var w=[],E=0,A,P,k;for(A=1;A<arguments.length;A++)w.push(arguments[A]);for(A=w.length;A--;)E+=w[A].byteLength;for(P=new Uint8Array(E+8),k=new DataView(P.buffer,P.byteOffset,P.byteLength),k.setUint32(0,P.byteLength),P.set(T,4),A=0,E=8;A<w.length;A++)P.set(w[A],E),E+=w[A].byteLength;return P},l=function(){return o(O.dinf,o(O.dref,se))},u=function(T){return o(O.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,T.audioobjecttype<<3|T.samplingfrequencyindex>>>1,T.samplingfrequencyindex<<7|T.channelcount<<3,6,1,2]))},c=function(){return o(O.ftyp,B,F,B,U)},x=function(T){return o(O.hdlr,Z[T])},h=function(T){return o(O.mdat,T)},S=function(T){var w=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,T.duration>>>24&255,T.duration>>>16&255,T.duration>>>8&255,T.duration&255,85,196,0,0]);return T.samplerate&&(w[12]=T.samplerate>>>24&255,w[13]=T.samplerate>>>16&255,w[14]=T.samplerate>>>8&255,w[15]=T.samplerate&255),o(O.mdhd,w)},b=function(T){return o(O.mdia,S(T),x(T.type),f(T))},d=function(T){return o(O.mfhd,new Uint8Array([0,0,0,0,(T&4278190080)>>24,(T&16711680)>>16,(T&65280)>>8,T&255]))},f=function(T){return o(O.minf,T.type==="video"?o(O.vmhd,te):o(O.smhd,Q),l(),D(T))},p=function(T,w){for(var E=[],A=w.length;A--;)E[A]=M(w[A]);return o.apply(null,[O.moof,d(T)].concat(E))},v=function(T){for(var w=T.length,E=[];w--;)E[w]=y(T[w]);return o.apply(null,[O.moov,m(4294967295)
|
|||
|
`)},Dr.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Dr.prototype.newLine=function(T){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(T),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Dr.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},Dr.prototype.addText=function(T){this.rows[this.rowIdx]+=T},Dr.prototype.backspace=function(){if(!this.isEmpty()){var T=this.rows[this.rowIdx];this.rows[this.rowIdx]=T.substr(0,T.length-1)}};var qr=function(T,w,E){this.serviceNum=T,this.text="",this.currentWindow=new Dr(-1),this.windows=[],this.stream=E,typeof w=="string"&&this.createTextDecoder(w)};qr.prototype.init=function(T,w){this.startPts=T;for(var E=0;E<8;E++)this.windows[E]=new Dr(E),typeof w=="function"&&(this.windows[E].beforeRowOverflow=w)},qr.prototype.setCurrentWindow=function(T){this.currentWindow=this.windows[T]},qr.prototype.createTextDecoder=function(T){if(typeof TextDecoder>"u")this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(T)}catch(w){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+T+" encoding. "+w})}};var ft=function(T){T=T||{},ft.prototype.init.call(this);var w=this,E=T.captionServices||{},A={},P;Object.keys(E).forEach(k=>{P=E[k],/^SERVICE/.test(k)&&(A[k]=P.encoding)}),this.serviceEncodings=A,this.current708Packet=null,this.services={},this.push=function(k){k.type===3?(w.new708Packet(),w.add708Bytes(k)):(w.current708Packet===null&&w.new708Packet(),w.add708Bytes(k))}};ft.prototype=new Ne,ft.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},ft.prototype.add708Bytes=function(T){var w=T.ccData,E=w>>>8,A=w&255;this.current708Packet.ptsVals.push(T.pts),this.current708Packet.data.push(E),this.current708Packet.data.push(A)},ft.prototype.push708Packet=function(){var T=this.current708Packet,w=T.data,E=null,A=null,P=0,k=w[P++];for(T.seq=k>>6,T.sizeCode=k&63;P<w.length;P++)k=w[P++],E=k>>5,A=k&31,E===7&&A>0&&(k=w[P++],E=k),this.pushServiceBlock(E,P,A),A>0&&(P+=A-1)},ft.prototype.pushServiceBlock=function(T,w,E){var A,P=w,k=this.current708Packet.data,V=this.services[T];for(V||(V=this.initService(T,P));P<w+E&&P<k.length;P++)A=k[P],ur(A)?P=this.handleText(P,V):A===24?P=this.multiByteCharacter(P,V):A===16?P=this.extendedCommands(P,V):128<=A&&A<=135?P=this.setCurrentWindow(P,V):152<=A&&A<=159?P=this.defineWindow(P,V):A===136?P=this.clearWindows(P,V):A===140?P=this.deleteWindows(P,V):A===137?P=this.displayWindows(P,V):A===138?P=this.hideWindows(P,V):A===139?P=this.toggleWindows(P,V):A===151?P=this.setWindowAttributes(P,V):A===144?P=this.setPenAttributes(P,V):A===145?P=this.setPenColor(P,V):A===146?P=this.setPenLocation(P,V):A===143?V=this.reset(P,V):A===8?V.currentWindow.backspace():A===12?V.currentWindow.clearText():A===13?V.currentWindow.pendingNewLine=!0:A===14?V.currentWindow.clearText():A===141&&P++},ft.prototype.extendedCommands=function(T,w){var E=this.current708Packet.data,A=E[++T];return ur(A)&&(T=this.handleText(T,w,{isExtended:!0})),T},ft.prototype.getPts=function(T){return this.current708Packet.ptsVals[Math.floor(T/2)]},ft.prototype.initService=function(T,w){var A="SERVICE"+T,E=this,A,P;return A in this.serviceEncodings&&(P=this.serviceEncodings[A]),this.services[T]=new qr(T,P,E),this.services[T].init(this.getPts(w),function(k){E.flushDisplayed(k,E.services[T])}),this.services[T]},ft.prototype.handleText=function(T,w,E){var A=E&&E.isExtended,P=E&&E.isMultiByte,k=this.current708Packet.data,V=A?4096:0,z=k[T],G=k[T+1],W=w.currentWindow,Y,ee;function Se(le){return le.map(je=>("0"+(je&255).toString(16)).slice(-2)).join("")}if(P?(ee=[z,G],T++):ee=[z],w.textDecoder_&&!A)Y=w.textDecoder_.decode(new Uint8Array(ee));else if(P){const le=Se(ee);Y=String.fromCharCode(parseInt(le,16))}else Y=Kt(V|z);re
|
|||
|
|
|||
|
`),this.pushCaption(w),w.startPts=T},ft.prototype.pushCaption=function(T){T.text!==""&&(this.trigger("data",{startPts:T.startPts,endPts:T.endPts,text:T.text,stream:"cc708_"+T.serviceNum}),T.text="",T.startPts=T.endPts)},ft.prototype.displayWindows=function(T,w){var E=this.current708Packet.data,A=E[++T],P=this.getPts(T);this.flushDisplayed(P,w);for(var k=0;k<8;k++)A&1<<k&&(w.windows[k].visible=1);return T},ft.prototype.hideWindows=function(T,w){var E=this.current708Packet.data,A=E[++T],P=this.getPts(T);this.flushDisplayed(P,w);for(var k=0;k<8;k++)A&1<<k&&(w.windows[k].visible=0);return T},ft.prototype.toggleWindows=function(T,w){var E=this.current708Packet.data,A=E[++T],P=this.getPts(T);this.flushDisplayed(P,w);for(var k=0;k<8;k++)A&1<<k&&(w.windows[k].visible^=1);return T},ft.prototype.clearWindows=function(T,w){var E=this.current708Packet.data,A=E[++T],P=this.getPts(T);this.flushDisplayed(P,w);for(var k=0;k<8;k++)A&1<<k&&w.windows[k].clearText();return T},ft.prototype.deleteWindows=function(T,w){var E=this.current708Packet.data,A=E[++T],P=this.getPts(T);this.flushDisplayed(P,w);for(var k=0;k<8;k++)A&1<<k&&w.windows[k].reset();return T},ft.prototype.setPenAttributes=function(T,w){var E=this.current708Packet.data,A=E[T],P=w.currentWindow.penAttr;return A=E[++T],P.textTag=(A&240)>>4,P.offset=(A&12)>>2,P.penSize=A&3,A=E[++T],P.italics=(A&128)>>7,P.underline=(A&64)>>6,P.edgeType=(A&56)>>3,P.fontStyle=A&7,T},ft.prototype.setPenColor=function(T,w){var E=this.current708Packet.data,A=E[T],P=w.currentWindow.penColor;return A=E[++T],P.fgOpacity=(A&192)>>6,P.fgRed=(A&48)>>4,P.fgGreen=(A&12)>>2,P.fgBlue=A&3,A=E[++T],P.bgOpacity=(A&192)>>6,P.bgRed=(A&48)>>4,P.bgGreen=(A&12)>>2,P.bgBlue=A&3,A=E[++T],P.edgeRed=(A&48)>>4,P.edgeGreen=(A&12)>>2,P.edgeBlue=A&3,T},ft.prototype.setPenLocation=function(T,w){var E=this.current708Packet.data,A=E[T],P=w.currentWindow.penLoc;return w.currentWindow.pendingNewLine=!0,A=E[++T],P.row=A&15,A=E[++T],P.column=A&63,T},ft.prototype.reset=function(T,w){var E=this.getPts(T);return this.flushDisplayed(E,w),this.initService(w.serviceNum,T)};var Er={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},zt=function(T){return T===null?"":(T=Er[T]||T,String.fromCharCode(T))},no=14,tn=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ml=function(){for(var T=[],w=no+1;w--;)T.push({text:"",indent:0,offset:0});return T},Wt=function(T,w){Wt.prototype.init.call(this),this.field_=T||0,this.dataChannel_=w||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(E){var A,P,k,V,z;if(A=E.ccData&32639,A===this.lastControlCode_){this.lastControlCode_=null;return}if((A&61440)===4096?this.lastControlCode_=A:A!==this.PADDING_&&(this.lastControlCode_=null),k=A>>>8,V=A&255,A!==this.PADDING_)if(A===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(A===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(E.pts),this.flushDisplayed(E.pts),P=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=P,this.startPts_=E.pts;else if(A===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(E.pts);else if(A===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(E.pts);else if(A===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(E.pts);else if(A===this.CARRIAGE_RETURN_)this.clearFormatting(E.pts),this.flushDisplayed(E.pts),this.shiftRowsUp_(),this.startPts_=E.pts;else
|
|||
|
currentTime: ${this.currentTime_()}
|
|||
|
bufferedEnd: ${wb(this.buffered_())}
|
|||
|
`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri){this.mediaIndex!==null&&(!e.endList&&typeof e.partTargetDuration=="number"?this.resetLoader():this.resyncLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}const s=e.mediaSequence-i.mediaSequence;if(this.logger_(`live window shift [${s}]`),this.mediaIndex!==null)if(this.mediaIndex-=s,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const o=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!o.parts||!o.parts.length||!o.parts[this.partIndex])){const l=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=l}}n&&(n.mediaIndex-=s,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(n.mediaIndex>=0&&(n.segment=e.segments[n.mediaIndex]),n.partIndex>=0&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}pause(){this.checkBufferTimeout_&&(H.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return this.checkBufferTimeout_===null}resetEverything(e){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.mediaSequenceSync_&&this.mediaSequenceSync_.resetAppendedStatus(),this.resyncLoader()}resyncLoader(){this.transmuxer_&&Ab.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const e=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;this.sourceType_==="hls"&&!e&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(e,t,i=()=>{},n=!1){if(t===1/0&&(t=this.duration_()),t<=e){this.logger_("skipping remove because end ${end} is <= start ${start}");return}if(!this.sourceUpdater_||!this.getMediaInfo_()){this.logger_("skipping remove because no source updater or starting media info");return}let a=1;const s=()=>{a--,a===0&&i()};(n||!this.audioDisabled_)&&(a++,this.sourceUpdater_.removeAudio(e,t,s)),(n||this.loaderType_==="main")&&(this.gopBuffer_=kie(this.gopBuffer_,e,t,this.timeMapping_),a++,this.sourceUpdater_.removeVideo(e,t,s));for(const o in this.inbandTextTracks_)jd(e,t,this.inbandTextTracks_[o]);jd(e,t,this.segmentMetadataTrack_),s()}monitorBuffer_(){this.checkBufferTimeout_&&H.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=H.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&H.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=H.setTimeout(this.monitorBufferTick_.bind(this),Nie)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const e=this.chooseNextRequest_();if(!e)return;const t={segmentInfo:au({type:this.loaderType_,segment:e})};this.trigger({type:"segmentselected",metadata:t}),typeof e.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e)}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,i=this.partIndex){if(!t||!this.mediaSource_)return!1;const n=typeof e=="number"&&t.segments[e],a=e+1===t.segments.length,s=!n||!n.parts||i+1===n.parts.length;return t.endList&&this.mediaSource_.readyState==="open"&&a&&s}chooseNextRequest_(){const e=this.buffered_(),t=wb(e)||0,i=fA(e,this.currentTime_()),n=!this.hasPlayed_()&&i>=1,a=i>=this.goalBufferLength_(),s=this.playlist_.segments;if(!s.length||n||a)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration
|
|||
|
For TargetTime: ${v}.
|
|||
|
CurrentTime: ${this.currentTime_()}
|
|||
|
BufferedEnd: ${t}
|
|||
|
Fetch At Buffer: ${this.fetchAtBuffer_}
|
|||
|
`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const g=this.getSyncInfoFromMediaSequenceSync_(v);if(!g){const m="No sync info found while using media sequence sync";return this.error({message:m,metadata:{errorType:K.Error.StreamingFailedToSelectNextSegment,error:new Error(m)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${g.start} --> ${g.end})`),d=g.segmentIndex,f=g.partIndex,p=g.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const g=Vi.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:v,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});d=g.segmentIndex,f=g.partIndex,p=g.startTime}o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${v}`:`currentTime ${v}`,o.mediaIndex=d,o.startOfSegment=p,o.partIndex=f,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${o.mediaIndex} `)}const l=s[o.mediaIndex];let u=l&&typeof o.partIndex=="number"&&l.parts&&l.parts[o.partIndex];if(!l||typeof o.partIndex=="number"&&!u)return null;typeof o.partIndex!="number"&&l.parts&&(o.partIndex=0,u=l.parts[0]);const c=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!i&&u&&!c&&!u.independent)if(o.partIndex===0){const d=s[o.mediaIndex-1],f=d.parts&&d.parts.length&&d.parts[d.parts.length-1];f&&f.independent&&(o.mediaIndex-=1,o.partIndex=d.parts.length-1,o.independent="previous segment")}else l.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const h=this.mediaSource_&&this.mediaSource_.readyState==="ended";return o.mediaIndex>=s.length-1&&h&&!this.seeking_()?null:(this.shouldForceTimestampOffsetAfterResync_&&(this.shouldForceTimestampOffsetAfterResync_=!1,o.forceTimestampOffset=!0,this.logger_("choose next request. Force timestamp offset after loader resync")),this.generateSegmentInfo_(o))}getSyncInfoFromMediaSequenceSync_(e){if(!this.mediaSequenceSync_)return null;const t=Math.max(e,this.mediaSequenceSync_.start);e!==t&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${e} to ${t}`);const i=this.mediaSequenceSync_.getSyncInfoForTime(t);if(!i)return null;if(!i.isAppended)return i;const n=this.mediaSequenceSync_.getSyncInfoForTime(i.end);return n?(n.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),n):null}generateSegmentInfo_(e){const{independent:t,playlist:i,mediaIndex:n,startOfSegment:a,isSyncRequest:s,partIndex:o,forceTimestampOffset:l,getMediaInfoForTime:u}=e,c=i.segments[n],h=typeof o=="number"&&c.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:h&&h.resolvedUri||c.resolvedUri,mediaIndex:n,partIndex:h?o:null,isSyncRequest:s,startOfSegment:a,playlist:i,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:h&&h.duration||c.duration,segment:c,part:h,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:t},f=typeof l<"u"?l:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:a,buffered:this.buffered_(),overrideCheck:f});const p=wb(this.sourceUpdater_.audioBuffered());return typeof p=="number"&&(d.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=Mie(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d}timestampOffsetForSegment_(e){return Uie(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.curr
|
|||
|
${$8(e.uri)}
|
|||
|
${Pc(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=pie({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:s,endedTimelineFn:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:o,level:l,stream:u})=>{this.logger_(`${Pc(e)} logged from transmuxer stream ${u} as a ${l}: ${o}`)},triggerSegmentEventFn:({type:o,segment:l,keyInfo:u,trackInfo:c,timingInfo:h})=>{const f={segmentInfo:au({segment:l})};u&&(f.keyInfo=u),c&&(f.trackInfo=c),h&&(f.timingInfo=h),this.trigger({type:o,metadata:f})}})}trimBackBuffer_(e){const t=Fie(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const t=e.segment,i=e.part,n=e.segment.key||e.segment.map&&e.segment.map.key,a=e.segment.map&&!e.segment.map.bytes,s={resolvedUri:i?i.resolvedUri:t.resolvedUri,byterange:i?i.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part,type:this.loaderType_,start:e.startOfSegment,duration:e.duration,isEncrypted:n,isMediaInitialization:a},o=e.playlist.segments[e.mediaIndex-1];if(o&&o.timeline===t.timeline&&(o.videoTimingInfo?s.baseStartTime=o.videoTimingInfo.transmuxedDecodeEnd:o.audioTimingInfo&&(s.baseStartTime=o.audioTimingInfo.transmuxedDecodeEnd)),t.key){const l=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);s.key=this.segmentKey(t.key),s.key.iv=l}return t.map&&(s.map=this.initSegmentForMap(t.map)),s}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){if(this.pendingSegment_.byteLength=t.bytesReceived,e<qg){this.logger_(`Ignoring segment's bandwidth because its duration of ${e} is less than the min to record ${qg}`);return}const i={bandwidthInfo:{from:this.bandwidth,to:t.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:i}),this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,i){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_||t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===Ha.ABORTED)return;if(this.pause(),e.code===Ha.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(e),this.trigger("error");return}const n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),n.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=Lie(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(n)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);t!==null&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){typeof e.start=="number"&&typeof e.end=="number"?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return e===null?!1:this.loaderType_==="main"&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset()}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:i,firstVideoFrameTimeForData:n,curre
|
|||
|
|
|||
|
`.split("").map(r=>r.charCodeAt(0)));class Xie extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Yie extends Zx{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Kr();const e=this.subtitlesTrack_.cues,t=e[0].startTime,i=e[e.length-1].startTime;return Kr([[t,i]])}initSegmentForMap(e,t=!1){if(!e)return null;const i=a0(e);let n=this.initSegments_[i];if(t&&!n&&e.bytes){const a=SM.byteLength+e.bytes.byteLength,s=new Uint8Array(a);s.set(e.bytes),s.set(SM,e.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:s}}return n||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return typeof e>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=e,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}remove(e,t){jd(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(this.syncController_.timestampOffsetForTimeline(e.timeline)===null){const t=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",t),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,i){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(t.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(e){e.code===Ha.TIMEOUT&&this.handleTimeout_(),e.code===Ha.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(e);return}const n=this.pendingSegment_;this.saveBandwidthRelatedStats_(n.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const a=n.segment;if(a.map&&(a.map.bytes=t.map.bytes),n.bytes=t.bytes,typeof H.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,i),()=>this.stopForError({message:"Error loading vtt.js"}));return}a.requested=!0;try{this.parseVTTCues_(n)}catch(s){this.stopForError({message:s.message,metadata:{errorType:K.Error.StreamingVttParserError,error:s}});return}if(this.updateTimeMapping_(n,this.syncController_.timelines[n.timeline],this.playlist_),n.cues.length?n.timingInfo={start:n.cues[0].startTime,end:n.cues[n.cues.length-1].endTime}:n.timingInfo={start:n.startOfSegment,end:n.startOfSegment+n.duration},n.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}n.byteLength=n.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,n.cues.forEach(s=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new H.VTTCue(s.startTime,s.endTime,s.text):s)}),Pie(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let t,i=!1;if(typeof H.WebVTT!="function")throw new Xie;typeof H.TextDecoder=="function"?t=new H.TextDecoder("utf8"):(t=H.WebVTT.StringDecoder(),i=!0);const n=new H.WebVTT.Parser(H,H.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},n.oncue=e.cues.push.bind(e.cues),n.ontimestampmap=s=>{e.timestampmap=s},n.onparsingerror=s=>{K.log.warn("Error encountered when parsing cues: "+s.message)},e.segment.map){
|
|||
|
`,s=i,o=t;this.start_=s,e.forEach((l,u)=>{const c=this.storage_.get(o),h=s,d=h+l.duration,f=!!(c&&c.segmentSyncInfo&&c.segmentSyncInfo.isAppended),p=new xM({start:h,end:d,appended:f,segmentIndex:u});l.syncInfo=p;let v=s;const g=(l.parts||[]).map((m,y)=>{const _=v,b=v+m.duration,S=!!(c&&c.partsSyncInfo&&c.partsSyncInfo[y]&&c.partsSyncInfo[y].isAppended),x=new xM({start:_,end:b,appended:S,segmentIndex:u,partIndex:y});return v=b,a+=`Media Sequence: ${o}.${y} | Range: ${_} --> ${b} | Appended: ${S}
|
|||
|
`,m.syncInfo=x,x});n.set(o,new Qie(p,g)),a+=`${$8(l.resolvedUri)} | Media Sequence: ${o} | Range: ${h} --> ${d} | Appended: ${f}
|
|||
|
`,o++,s=d}),this.end_=s,this.storage_=n,this.diagnostics_=a}calculateBaseTime_(e,t){return this.storage_.size?this.storage_.has(e)?this.storage_.get(e).segmentSyncInfo.start:t:0}isReliablePlaylist_(e,t){return e!=null&&Array.isArray(t)&&t.length}}class wM extends X8{constructor(e){super(),this.parent_=e}calculateBaseTime_(e,t){if(!this.storage_.size){const i=this.parent_.getSyncInfoForMediaSequence(e);return i?i.segmentSyncInfo.start:0}return super.calculateBaseTime_(e,t)}}const Jie=86400,Db=[{name:"VOD",run:(r,e,t,i,n)=>t!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(r,e,t,i,n,a)=>{const s=r.getMediaSequenceSync(a);if(!s||!s.isReliable)return null;const o=s.getSyncInfoForTime(n);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}},{name:"ProgramDateTime",run:(r,e,t,i,n)=>{if(!Object.keys(r.timelineToDatetimeMappings).length)return null;let a=null,s=null;const o=Gx(e);n=n||0;for(let l=0;l<o.length;l++){const u=e.endList||n===0?l:o.length-(l+1),c=o[u],h=c.segment,d=r.timelineToDatetimeMappings[h.timeline];if(!d||!h.dateTimeObject)continue;let p=h.dateTimeObject.getTime()/1e3+d;if(h.parts&&typeof c.partIndex=="number")for(let g=0;g<c.partIndex;g++)p+=h.parts[g].duration;const v=Math.abs(n-p);if(s!==null&&(v===0||s<v))break;s=v,a={time:p,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}return a}},{name:"Segment",run:(r,e,t,i,n)=>{let a=null,s=null;n=n||0;const o=Gx(e);for(let l=0;l<o.length;l++){const u=e.endList||n===0?l:o.length-(l+1),c=o[u],h=c.segment,d=c.part&&c.part.start||h&&h.start;if(h.timeline===i&&typeof d<"u"){const f=Math.abs(n-d);if(s!==null&&s<f)break;(!a||s===null||s>=f)&&(s=f,a={time:d,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return a}},{name:"Discontinuity",run:(r,e,t,i,n)=>{let a=null;if(n=n||0,e.discontinuityStarts&&e.discontinuityStarts.length){let s=null;for(let o=0;o<e.discontinuityStarts.length;o++){const l=e.discontinuityStarts[o],u=e.discontinuitySequence+o+1,c=r.discontinuities[u];if(c){const h=Math.abs(n-c.time);if(s!==null&&s<h)break;(!a||s===null||s>=h)&&(s=h,a={time:c.time,segmentIndex:l,partIndex:null})}}}return a}},{name:"Playlist",run:(r,e,t,i,n)=>e.syncInfo?{time:e.syncInfo.time,segmentIndex:e.syncInfo.mediaSequence-e.mediaSequence,partIndex:null}:null}];class ene extends K.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const t=new X8,i=new wM(t),n=new wM(t);this.mediaSequenceStorage_={main:t,audio:i,vtt:n},this.logger_=Kn("SyncController")}getMediaSequenceSync(e){return this.mediaSequenceStorage_[e]||null}getSyncPoint(e,t,i,n,a){if(t!==1/0)return Db.find(({name:l})=>l==="VOD").run(this,e,t);const s=this.runStrategies_(e,t,i,n,a);if(!s.length)return null;for(const o of s){const{syncPoint:l,strategy:u}=o,{segmentIndex:c,time:h}=l;if(c<0)continue;const d=e.segments[c],f=h,p=f+d.duration;if(this.logger_(`Strategy: ${u}. Current time: ${n}. selected segment: ${c}. Time: [${f} -> ${p}]}`),n>=f&&n<p)return this.logger_("Found sync point with exact match: ",l),l}return this.selectSyncPoint_(s,{key:"time",value:n})}getExpiredTime(e,t){if(!e||!e.segments)return null;const i=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!i.length)return null;const n=this.selectSyncPoint_(i,{key:"segmentIndex",value:0});return n.segmentIndex>0&&(n.time*=-1),Math.abs(n.time+yp({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:n.segmentIndex,endIndex:0}))}runStrategies_(e,t,i,n,a){const s=[];for(let o=0;o<Db.length;o++){const l=Db[o],u=l.run(this,e,t,i,n,a);u&&(u.strategy=l.name,s.push({strategy:l.name,syncPoint:u}))}return s}selectSyncPoint_(e,t){let i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),a=e[0].strategy;for(let s=1;s<e.length;s++){const o=Math.abs(e[s].syncPoint[t.key]-t.value);o<n&&(n=o,i=e[s].syncPoint,a=e[s].strategy)}return this.logger_(`syncPoint for [${t.key}: ${t.value}] chosen with strategy [${a}]: [time:${i.time}, segmentIndex:${i.segmentIndex}`+(typeof i.partIndex=="number"?`,partIndex:${i.partIndex}`:"")+"]"),i}saveExpi
|
|||
|
* GSAP 3.12.5
|
|||
|
* https://gsap.com
|
|||
|
*
|
|||
|
* @license Copyright 2008-2024, GreenSock. All rights reserved.
|
|||
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|||
|
* Club GSAP members, the agreement issued with that membership.
|
|||
|
* @author: Jack Doyle, jack@greensock.com
|
|||
|
*/var pn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Jh={duration:.5,overwrite:!1,delay:0},bA,si,Xt,zn=1e8,Gt=1/zn,ew=Math.PI*2,Wae=ew/4,qae=0,S7=Math.sqrt,jae=Math.cos,Xae=Math.sin,$r=function(e){return typeof e=="string"},or=function(e){return typeof e=="function"},Gs=function(e){return typeof e=="number"},TA=function(e){return typeof e>"u"},ns=function(e){return typeof e=="object"},Wi=function(e){return e!==!1},SA=function(){return typeof window<"u"},Kg=function(e){return or(e)||$r(e)},x7=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},oi=Array.isArray,tw=/(?:-?\.?\d|\.)+/gi,w7=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ph=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Mb=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,C7=/[+-]=-?[.\d]+/,A7=/[^,'"\[\]\s]+/gi,Yae=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Zt,Ra,rw,xA,Tn={},h0={},D7,E7=function(e){return(h0=Yu(e,Tn))&&Yi},wA=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},Qp=function(e,t){return!t&&console.warn(e)},I7=function(e,t){return e&&(Tn[e]=t)&&h0&&(h0[e]=t)||Tn},Jp=function(){return 0},Kae={suppressEvents:!0,isStart:!0,kill:!1},oy={suppressEvents:!0,kill:!1},Zae={suppressEvents:!0},CA={},Ho=[],iw={},P7,sn={},Lb={},zM=30,ly=[],AA="",DA=function(e){var t=e[0],i,n;if(ns(t)||or(t)||(e=[e]),!(i=(t._gsap||{}).harness)){for(n=ly.length;n--&&!ly[n].targetTest(t););i=ly[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new eG(e[n],i)))||e.splice(n,1);return e},Mu=function(e){return e._gsap||DA(Gn(e))[0]._gsap},M7=function(e,t,i){return(i=e[t])&&or(i)?e[t]():TA(i)&&e.getAttribute&&e.getAttribute(t)||i},qi=function(e,t){return(e=e.split(",")).forEach(t)||e},vr=function(e){return Math.round(e*1e5)/1e5||0},Vr=function(e){return Math.round(e*1e7)/1e7||0},Dh=function(e,t){var i=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),i==="+"?e+n:i==="-"?e-n:i==="*"?e*n:e/n},Qae=function(e,t){for(var i=t.length,n=0;e.indexOf(t[n])<0&&++n<i;);return n<i},f0=function(){var e=Ho.length,t=Ho.slice(0),i,n;for(iw={},Ho.length=0,i=0;i<e;i++)n=t[i],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},L7=function(e,t,i,n){Ho.length&&!si&&f0(),e.render(t,i,si&&t<0&&(e._initted||e._startAt)),Ho.length&&!si&&f0()},k7=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(A7).length<2?t:$r(e)?e.trim():e},R7=function(e){return e},Xn=function(e,t){for(var i in t)i in e||(e[i]=t[i]);return e},Jae=function(e){return function(t,i){for(var n in i)n in t||n==="duration"&&e||n==="ease"||(t[n]=i[n])}},Yu=function(e,t){for(var i in t)e[i]=t[i];return e},GM=function r(e,t){for(var i in t)i!=="__proto__"&&i!=="constructor"&&i!=="prototype"&&(e[i]=ns(t[i])?r(e[i]||(e[i]={}),t[i]):t[i]);return e},d0=function(e,t){var i={},n;for(n in e)n in t||(i[n]=e[n]);return i},Tp=function(e){var t=e.parent||Zt,i=e.keyframes?Jae(oi(e.keyframes)):Xn;if(Wi(e.inherit))for(;t;)i(e,t.vars.defaults),t=t.parent||t._dp;return e},ese=function(e,t){for(var i=e.length,n=i===t.length;n&&i--&&e[i]===t[i];);return i<0},O7=function(e,t,i,n,a){var s=e[n],o;if(a)for(o=t[a];s&&s[a]>o;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[i],e[i]=t),t._next?t._next._prev=t:e[n]=t,t._prev=s,t.parent=t._dp=e,t},q_=function(e,t,i,n){i===void 0&&(i="_first"),n===void 0&&(n="_last");var a=t._prev,s=t._next;a?a._next=s:e[i]===t&&(e[i]=s),s?s._prev=a:e[n]===t&&(e[n]=a),t._next=t._prev=t.parent=null},Zo=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Lu=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var i=e;i;)i._dirty=1,i=i.parent;return e},tse=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},nw=function(e,t,i,n){return e._startAt&&(si?e._startAt.revert(oy):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},rse=function r(e){return!e||e._ts&&r(e.parent)},HM=function(e){return e._repeat?ef(e._tTime,e=e.duration()+e._rDelay)*e:0},ef=function(e,t){var i=Math.floor(e/=t);return e&&i===e?i-1:i},p0=function(e,t){return(e-t._start)*t
|
|||
|
* CSSPlugin 3.12.5
|
|||
|
* https://gsap.com
|
|||
|
*
|
|||
|
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|||
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|||
|
* Club GSAP members, the agreement issued with that membership.
|
|||
|
* @author: Jack Doyle, jack@greensock.com
|
|||
|
*/var XM,Mo,Eh,kA,vu,YM,RA,Bse=function(){return typeof window<"u"},Hs={},Ql=180/Math.PI,Ih=Math.PI/180,Lc=Math.atan2,KM=1e8,OA=/([A-Z])/g,Fse=/(left|right|width|margin|padding|x)/i,Use=/[\s,\(]\S/,$a={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},hw=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},Vse=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},zse=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},Gse=function(e,t){var i=t.s+t.c*e;t.set(t.t,t.p,~~(i+(i<0?-.5:.5))+t.u,t)},uG=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},cG=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},Hse=function(e,t,i){return e.style[t]=i},$se=function(e,t,i){return e.style.setProperty(t,i)},Wse=function(e,t,i){return e._gsap[t]=i},qse=function(e,t,i){return e._gsap.scaleX=e._gsap.scaleY=i},jse=function(e,t,i,n,a){var s=e._gsap;s.scaleX=s.scaleY=i,s.renderTransform(a,s)},Xse=function(e,t,i,n,a){var s=e._gsap;s[t]=i,s.renderTransform(a,s)},Qt="transform",Xi=Qt+"Origin",Yse=function r(e,t){var i=this,n=this.target,a=n.style,s=n._gsap;if(e in Hs&&a){if(this.tfm=this.tfm||{},e!=="transform")e=$a[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return i.tfm[o]=xs(n,o)}):this.tfm[e]=s.x?s[e]:xs(n,e),e===Xi&&(this.tfm.zOrigin=s.zOrigin);else return $a.transform.split(",").forEach(function(o){return r.call(i,o,t)});if(this.props.indexOf(Qt)>=0)return;s.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(Xi,t,"")),e=Qt}(a||t)&&this.props.push(e,t,a[e])},hG=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Kse=function(){var e=this.props,t=this.target,i=t.style,n=t._gsap,a,s;for(a=0;a<e.length;a+=3)e[a+1]?t[e[a]]=e[a+2]:e[a+2]?i[e[a]]=e[a+2]:i.removeProperty(e[a].substr(0,2)==="--"?e[a]:e[a].replace(OA,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)n[s]=this.tfm[s];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),a=RA(),(!a||!a.isStart)&&!i[Qt]&&(hG(i),n.zOrigin&&i[Xi]&&(i[Xi]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},fG=function(e,t){var i={target:e,props:[],revert:Kse,save:Yse};return e._gsap||Yi.core.getCache(e),t&&t.split(",").forEach(function(n){return i.save(n)}),i},dG,fw=function(e,t){var i=Mo.createElementNS?Mo.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Mo.createElement(e);return i&&i.style?i:Mo.createElement(e)},Za=function r(e,t,i){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(OA,"-$1").toLowerCase())||n.getPropertyValue(t)||!i&&r(e,nf(t)||t,1)||""},ZM="O,Moz,ms,Ms,Webkit".split(","),nf=function(e,t,i){var n=t||vu,a=n.style,s=5;if(e in a&&!i)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(ZM[s]+e in a););return s<0?null:(s===3?"ms":s>=0?ZM[s]:"")+e},dw=function(){Bse()&&window.document&&(XM=window,Mo=XM.document,Eh=Mo.documentElement,vu=fw("div")||{style:{}},fw("div"),Qt=nf(Qt),Xi=Qt+"Origin",vu.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",dG=!!nf("perspective"),RA=Yi.core.reverting,kA=1)},Fb=function r(e){var t=fw("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,n=this.nextSibling,a=this.style.cssText,s;if(Eh.appendChild(t),t.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=r}catch{}else this._gsapBBox&&(s=this._gsapBBox());return i&&(n?i.insertBefore(this,n):i.appendChild(this)),Eh.removeChild(t),this.style.cssText=a,s},QM=function(e,t){for(var i=t.length;i--;)if(e.hasAttribute(t[i]))return e.getAttribute(t[i])},pG=function(e){var t;try{t=e.getBBox()}catch{t=Fb.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===Fb||(t=Fb.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+QM(e,["x","cx","x1"])||0,y:+QM(e,["y","cy","y1"])||0,width:0,height:0}:t},vG=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&pG(e))},Ku=function(e,t){if(t){var i=e.style,n;t in
|
|||
|
* matrix 3.12.5
|
|||
|
* https://gsap.com
|
|||
|
*
|
|||
|
* Copyright 2008-2024, GreenSock. All rights reserved.
|
|||
|
* Subject to the terms at https://gsap.com/standard-license or for
|
|||
|
* Club GSAP members, the agreement issued with that membership.
|
|||
|
* @author: Jack Doyle, jack@greensock.com
|
|||
|
*/var Ds,Ou,FA,Y_,Zd,cy,y0,wp,ca="transform",vw=ca+"Origin",bG,TG=function(e){var t=e.ownerDocument||e;for(!(ca in e.style)&&("msTransform"in e.style)&&(ca="msTransform",vw=ca+"Origin");t.parentNode&&(t=t.parentNode););if(Ou=window,y0=new Zu,t){Ds=t,FA=t.documentElement,Y_=t.body,wp=Ds.createElementNS("http://www.w3.org/2000/svg","g"),wp.style.transform="none";var i=t.createElement("div"),n=t.createElement("div"),a=t&&(t.body||t.firstElementChild);a&&a.appendChild&&(a.appendChild(i),i.appendChild(n),i.setAttribute("style","position:static;transform:translate3d(0,0,1px)"),bG=n.offsetParent!==i,a.removeChild(i))}return t},aoe=function(e){for(var t,i;e&&e!==Y_;)i=e._gsap,i&&i.uncache&&i.get(e,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),t?t.push(i):t=[i]),e=e.parentNode;return t},SG=[],xG=[],soe=function(){return Ou.pageYOffset||Ds.scrollTop||FA.scrollTop||Y_.scrollTop||0},ooe=function(){return Ou.pageXOffset||Ds.scrollLeft||FA.scrollLeft||Y_.scrollLeft||0},UA=function(e){return e.ownerSVGElement||((e.tagName+"").toLowerCase()==="svg"?e:null)},loe=function r(e){if(Ou.getComputedStyle(e).position==="fixed")return!0;if(e=e.parentNode,e&&e.nodeType===1)return r(e)},Vb=function r(e,t){if(e.parentNode&&(Ds||TG(e))){var i=UA(e),n=i?i.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a=i?t?"rect":"g":"div",s=t!==2?0:100,o=t===3?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",u=Ds.createElementNS?Ds.createElementNS(n.replace(/^https/,"http"),a):Ds.createElement(a);return t&&(i?(cy||(cy=r(e)),u.setAttribute("width",.01),u.setAttribute("height",.01),u.setAttribute("transform","translate("+s+","+o+")"),cy.appendChild(u)):(Zd||(Zd=r(e),Zd.style.cssText=l),u.style.cssText=l+"width:0.1px;height:0.1px;top:"+o+"px;left:"+s+"px",Zd.appendChild(u))),u}throw"Need document and parent."},uoe=function(e){for(var t=new Zu,i=0;i<e.numberOfItems;i++)t.multiply(e.getItem(i).matrix);return t},coe=function(e){var t=e.getCTM(),i;return t||(i=e.style[ca],e.style[ca]="none",e.appendChild(wp),t=wp.getCTM(),e.removeChild(wp),i?e.style[ca]=i:e.style.removeProperty(ca.replace(/([A-Z])/g,"-$1").toLowerCase())),t||y0.clone()},hoe=function(e,t){var i=UA(e),n=e===i,a=i?SG:xG,s=e.parentNode,o,l,u,c,h,d;if(e===Ou)return e;if(a.length||a.push(Vb(e,1),Vb(e,2),Vb(e,3)),o=i?cy:Zd,i)n?(u=coe(e),c=-u.e/u.a,h=-u.f/u.d,l=y0):e.getBBox?(u=e.getBBox(),l=e.transform?e.transform.baseVal:{},l=l.numberOfItems?l.numberOfItems>1?uoe(l):l.getItem(0).matrix:y0,c=l.a*u.x+l.c*u.y,h=l.b*u.x+l.d*u.y):(l=new Zu,c=h=0),(n?i:s).appendChild(o),o.setAttribute("transform","matrix("+l.a+","+l.b+","+l.c+","+l.d+","+(l.e+c)+","+(l.f+h)+")");else{if(c=h=0,bG)for(l=e.offsetParent,u=e;u&&(u=u.parentNode)&&u!==l&&u.parentNode;)(Ou.getComputedStyle(u)[ca]+"").length>4&&(c=u.offsetLeft,h=u.offsetTop,u=0);if(d=Ou.getComputedStyle(e),d.position!=="absolute"&&d.position!=="fixed")for(l=e.offsetParent;s&&s!==l;)c+=s.scrollLeft||0,h+=s.scrollTop||0,s=s.parentNode;u=o.style,u.top=e.offsetTop-h+"px",u.left=e.offsetLeft-c+"px",u[ca]=d[ca],u[vw]=d[vw],u.position=d.position==="fixed"?"fixed":"absolute",e.parentNode.appendChild(o)}return o},zb=function(e,t,i,n,a,s,o){return e.a=t,e.b=i,e.c=n,e.d=a,e.e=s,e.f=o,e},Zu=function(){function r(t,i,n,a,s,o){t===void 0&&(t=1),i===void 0&&(i=0),n===void 0&&(n=0),a===void 0&&(a=1),s===void 0&&(s=0),o===void 0&&(o=0),zb(this,t,i,n,a,s,o)}var e=r.prototype;return e.inverse=function(){var i=this.a,n=this.b,a=this.c,s=this.d,o=this.e,l=this.f,u=i*s-n*a||1e-10;return zb(this,s/u,-n/u,-a/u,i/u,(a*l-s*o)/u,-(i*l-n*o)/u)},e.multiply=function(i){var n=this.a,a=this.b,s=this.c,o=this.d,l=this.e,u=this.f,c=i.a,h=i.c,d=i.b,f=i.d,p=i.e,v=i.f;return zb(this,c*n+d*s,c*a+d*o,h*n+f*s,h*a+f*o,l+p*n+v*s,u+p*a+v*o)},e.clone=function(){return new r(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(i){var n=this.a,a=this.b,s=this.c,o=this.d,l=this.e,u=this.f;return n===i.a&&a===i.b&&s===i.c&&o===i.d&&l===i.e&&u===i.f},e.apply=function(i,n){n===void 0&&(n={});var a=
|
|||
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|||
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
purpose with or without fee is hereby granted.
|
|||
|
|
|||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|||
|
PERFORMANCE OF THIS SOFTWARE.
|
|||
|
***************************************************************************** */var Tw=function(r,e){return Tw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},Tw(r,e)};function j(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Tw(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Aoe=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),Doe=function(){function r(){this.browser=new Aoe,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return r}(),et=new Doe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(et.wxa=!0,et.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?et.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(et.node=!0,et.svgSupported=!0):Eoe(navigator.userAgent,et);function Eoe(r,e){var t=e.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(r);i&&(t.firefox=!0,t.version=i[1]),n&&(t.ie=!0,t.version=n[1]),a&&(t.edge=!0,t.version=a[1],t.newEdge=+a[1].split(".")[0]>18),s&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var o=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in o||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in o)&&!("OTransition"in o),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var zA=12,MG="sans-serif",Jo=zA+"px "+MG,Ioe=20,Poe=100,Moe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Loe(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var i=String.fromCharCode(t+32),n=(r.charCodeAt(t)-Ioe)/Poe;e[i]=n}return e}var koe=Loe(Moe),el={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,i){if(!r){var n=el.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==i&&(e=r.font=i||Jo),r.measureText(t);t=t||"",i=i||Jo;var a=/((?:\d+)?\.?\d*)px/.exec(i),s=a&&+a[1]||zA,o=0;if(i.indexOf("mono")>=0)o=s*t.length;else for(var l=0;l<t.length;l++){var u=koe[t[l]];o+=u==null?s:u*s}return{width:o}}}(),loadImage:function(r,e,t){var i=new Image;return i.onload=e,i.onerror=t,i.src=r,i}},LG=as(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),kG=as(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Df=Object.prototype.toString,K_=Array.prototype,Roe=K_.forEach,Ooe=K_.filter,GA=K_.slice,Noe=K_.map,pL=(function(){}).constructor,Jg=pL?pL.prototype:null,HA="__proto__",Boe=2311;function RG(){return Boe++}function $A(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function Ee(r){if(r==null||typeof r!="object")return r;var e=r,t=Df.call(r);if(t==="[object Array]"){if(!Dp(r)){e=[];for(var i=0,n=r.length;i<n;i++)e[i]=Ee(r[i])}}else if(kG[t]){if(!Dp(r)){var a=r.constructor;if(a.from)e=a.from(r);else{e=new a(r.length);for(var i=0,n=r.length;i<n;i++)e[i]=r[i]}}}else if(!LG[t]&&!Dp(r)&&!sf(r)){e={};for(var s in r)r.hasOwnProperty(s)&&s!==HA&&(e[s]=Ee(r[s]))}return e}function We(r,e,t){if(!De(e)||!De(r))return t?Ee(e):r;for(var i in e)if(e.hasOwnProperty(i)&&i!==HA){var n=r[i],a=e[i];De(a)&&De(n)&&!ie(a)&&!ie(n)&&!sf(a)&&!sf(n)&&!vL(
|
|||
|
`),a=n.length;if(a===1)return zL(n[0],e,t,i);for(var s=new qe(0,0,0,0),o=0;o<n.length;o++){var l=zL(n[o],e,t,i);o===0?s.copy(l):s.union(l)}return s}function ip(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function ah(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function t1(r){return mn("国",r)}function ya(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function I0(r,e,t){var i=e.position||"inside",n=e.distance!=null?e.distance:5,a=t.height,s=t.width,o=a/2,l=t.x,u=t.y,c="left",h="top";if(i instanceof Array)l+=ya(i[0],t.width),u+=ya(i[1],t.height),c=null,h=null;else switch(i){case"left":l-=n,u+=o,c="right",h="middle";break;case"right":l+=n+s,u+=o,h="middle";break;case"top":l+=s/2,u-=n,c="center",h="bottom";break;case"bottom":l+=s/2,u+=a+n,c="center";break;case"inside":l+=s/2,u+=o,c="center",h="middle";break;case"insideLeft":l+=n,u+=o,h="middle";break;case"insideRight":l+=s-n,u+=o,c="right",h="middle";break;case"insideTop":l+=s/2,u+=n,c="center";break;case"insideBottom":l+=s/2,u+=a-n,c="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=s-n,u+=n,c="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=s-n,u+=a-n,c="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=c,r.verticalAlign=h,r}var cT="__zr_normal__",hT=os.concat(["ignore"]),Xle=as(os,function(r,e){return r[e]=!0,r},{ignore:!1}),Fc={},Yle=new qe(0,0,0,0),r1=function(){function r(e){this.id=RG(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,i){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=t.innerTransformable,s=void 0,o=void 0,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(t),i.position!=null){var c=Yle;i.layoutRect?c.copy(i.layoutRect):c.copy(this.getBoundingRect()),n||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Fc,i,c):I0(Fc,i,c),a.x=Fc.x,a.y=Fc.y,s=Fc.align,o=Fc.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var d=void 0,f=void 0;h==="center"?(d=c.width*.5,f=c.height*.5):(d=ya(h[0],c.width),f=ya(h[1],c.height)),u=!0,a.originX=-a.x+d+(n?0:c.x),a.originY=-a.y+f+(n?0:c.y)}}i.rotation!=null&&(a.rotation=i.rotation);var p=i.offset;p&&(a.x+=p[0],a.y+=p[1],u||(a.originX=-p[0],a.originY=-p[1]));var v=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,y=void 0,_=void 0;v&&this.canBeInsideText()?(m=i.insideFill,y=i.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(y==null||y==="auto")&&(y=this.getInsideTextStroke(m),_=!0)):(m=i.outsideFill,y=i.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(y==null||y==="auto")&&(y=this.getOutsideStroke(m),_=!0)),m=m||"#000",(m!==g.fill||y!==g.stroke||_!==g.autoStroke||s!==g.align||o!==g.verticalAlign)&&(l=!0,g.fill=m,g.stroke=y,g.autoStroke=_,g.align=s,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=cn,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Hw:Gw},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),i=typeof t=="string"&&gn(t);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),s=0;s<3;s++)i[s]=i[s]*n+(a?0:255)*(1-n);return i[3]=1,Os(i,"rgba")},r.prototype.traverse=f
|
|||
|
* ZRender, a high performance 2d drawing library.
|
|||
|
*
|
|||
|
* Copyright (c) 2013, Baidu Inc.
|
|||
|
* All rights reserved.
|
|||
|
*
|
|||
|
* LICENSE
|
|||
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|||
|
*/var by={},l9={};function eue(r){delete l9[r]}function tue(r){if(!r)return!1;if(typeof r=="string")return A0(r,1)<zw;if(r.colorStops){for(var e=r.colorStops,t=0,i=e.length,n=0;n<i;n++)t+=A0(e[n].color,1);return t/=i,t<zw}return!1}var rue=function(){function r(e,t,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=t,this.id=e;var a=new mle,s=i.renderer||"canvas";by[s]||(s=rt(by)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var o=new by[s](t,a,i,e),l=i.ssr||o.ssrOnly;this.storage=a,this.painter=o;var u=!et.node&&!et.worker&&!l?new qle(o.getViewportRoot(),o.root):null,c=i.useCoarsePointer,h=c==null||c==="auto"?et.touchEventsSupported:!!c,d=44,f;h&&(f=Be(i.pointerSize,d)),this.handler=new VG(a,o,u,o.root,f),this.animation=new Ule({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=tue(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(e){var t,i=gh();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=gh();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},r.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,i){return this._disposed||this.handler.on(e,t,i),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof Le&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,eue(this.id))},r}();function GL(r,e){var t=new rue(RG(),r,e);return l9[t.id]=t,t}function iue(r,e){by[r]=e}var $w;function nue(r){if(typeof $w
|
|||
|
`);n=w9(e,t,i,n);for(var s=0,o=a.length;s<o;s++)a[s]=C9(a[s],n);return a.join(`
|
|||
|
`)}function w9(r,e,t,i){i=i||{};var n=J({},i);n.font=e,t=Be(t,"..."),n.maxIterations=Be(i.maxIterations,2);var a=n.minChar=Be(i.minChar,0);n.cnCharWidth=mn("国",e);var s=n.ascCharWidth=mn("a",e);n.placeholder=Be(i.placeholder,"");for(var o=r=Math.max(0,r-1),l=0;l<a&&o>=s;l++)o-=s;var u=mn(t,e);return u>o&&(t="",u=0),o=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=o,n.containerWidth=r,n}function C9(r,e){var t=e.containerWidth,i=e.font,n=e.contentWidth;if(!t)return"";var a=mn(r,i);if(a<=t)return r;for(var s=0;;s++){if(a<=n||s>=e.maxIterations){r+=e.ellipsis;break}var o=s===0?Vue(r,n,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(r.length*n/a):0;r=r.substr(0,o),a=mn(r,i)}return r===""&&(r=e.placeholder),r}function Vue(r,e,t,i){for(var n=0,a=0,s=r.length;a<s&&n<e;a++){var o=r.charCodeAt(a);n+=0<=o&&o<=127?t:i}return a}function zue(r,e){r!=null&&(r+="");var t=e.overflow,i=e.padding,n=e.font,a=t==="truncate",s=t1(n),o=Be(e.lineHeight,s),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,h;c!=null&&(t==="break"||t==="breakAll")?h=r?A9(r,e.font,c,t==="breakAll",0).lines:[]:h=r?r.split(`
|
|||
|
`):[];var d=h.length*o,f=Be(e.height,d);if(d>f&&u){var p=Math.floor(f/o);h=h.slice(0,p)}if(r&&a&&c!=null)for(var v=w9(c,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),g=0;g<h.length;g++)h[g]=C9(h[g],v);for(var m=f,y=0,g=0;g<h.length;g++)y=Math.max(mn(h[g],n),y);c==null&&(c=y);var _=y;return i&&(m+=i[0]+i[2],_+=i[1]+i[3],c+=i[1]+i[3]),l&&(_=c),{lines:h,height:f,outerWidth:_,outerHeight:m,lineHeight:o,calculatedLineHeight:s,contentWidth:y,contentHeight:d,width:c}}var Gue=function(){function r(){}return r}(),KL=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),Hue=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function $ue(r,e){var t=new Hue;if(r!=null&&(r+=""),!r)return t;for(var i=e.width,n=e.height,a=e.overflow,s=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,o=vT.lastIndex=0,l;(l=vT.exec(r))!=null;){var u=l.index;u>o&&gT(t,r.substring(o,u),e,s),gT(t,l[2],e,s,l[1]),o=vT.lastIndex}o<r.length&&gT(t,r.substring(o,r.length),e,s);var c=[],h=0,d=0,f=e.padding,p=a==="truncate",v=e.lineOverflow==="truncate";function g(q,Z,te){q.width=Z,q.lineHeight=te,h+=te,d=Math.max(d,Z)}e:for(var m=0;m<t.lines.length;m++){for(var y=t.lines[m],_=0,b=0,S=0;S<y.tokens.length;S++){var x=y.tokens[S],C=x.styleName&&e.rich[x.styleName]||{},D=x.textPadding=C.padding,I=D?D[1]+D[3]:0,M=x.font=C.font||e.font;x.contentHeight=t1(M);var L=Be(C.height,x.contentHeight);if(x.innerHeight=L,D&&(L+=D[0]+D[2]),x.height=L,x.lineHeight=Qa(C.lineHeight,e.lineHeight,L),x.align=C&&C.align||e.align,x.verticalAlign=C&&C.verticalAlign||"middle",v&&n!=null&&h+x.lineHeight>n){S>0?(y.tokens=y.tokens.slice(0,S),g(y,b,_),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m);break e}var N=C.width,O=N==null||N==="auto";if(typeof N=="string"&&N.charAt(N.length-1)==="%")x.percentWidth=N,c.push(x),x.contentWidth=mn(x.text,M);else{if(O){var B=C.backgroundColor,F=B&&B.image;F&&(F=Fue(F),n1(F)&&(x.width=Math.max(x.width,F.width*L/F.height)))}var U=p&&i!=null?i-b:null;U!=null&&U<x.width?!O||U<I?(x.text="",x.width=x.contentWidth=0):(x.text=Uue(x.text,U-I,M,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=mn(x.text,M)):x.contentWidth=mn(x.text,M)}x.width+=I,b+=x.width,C&&(_=Math.max(_,x.lineHeight))}g(y,b,_)}t.outerWidth=t.width=Be(i,d),t.outerHeight=t.height=Be(n,h),t.contentHeight=h,t.contentWidth=d,f&&(t.outerWidth+=f[1]+f[3],t.outerHeight+=f[0]+f[2]);for(var m=0;m<c.length;m++){var x=c[m],$=x.percentWidth;x.width=parseInt($,10)/100*t.width}return t}function gT(r,e,t,i,n){var a=e==="",s=n&&t.rich[n]||{},o=r.lines,l=s.font||t.font,u=!1,c,h;if(i){var d=s.padding,f=d?d[1]+d[3]:0;if(s.width!=null&&s.width!=="auto"){var p=ya(s.width,i.width)+f;o.length>0&&p+i.accumWidth>i.width&&(c=e.split(`
|
|||
|
`),u=!0),i.accumWidth=p}else{var v=A9(e,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=v.accumWidth+f,h=v.linesWidths,c=v.lines}}else c=e.split(`
|
|||
|
`);for(var g=0;g<c.length;g++){var m=c[g],y=new Gue;if(y.styleName=n,y.text=m,y.isLineHolder=!m&&!a,typeof s.width=="number"?y.width=s.width:y.width=h?h[g]:mn(m,l),!g&&!u){var _=(o[o.length-1]||(o[0]=new KL)).tokens,b=_.length;b===1&&_[0].isLineHolder?_[0]=y:(m||!b||a)&&_.push(y)}else o.push(new KL([y]))}}function Wue(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var que=as(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function jue(r){return Wue(r)?!!que[r]:!0}function A9(r,e,t,i,n){for(var a=[],s=[],o="",l="",u=0,c=0,h=0;h<r.length;h++){var d=r.charAt(h);if(d===`
|
|||
|
`){l&&(o+=l,c+=u),a.push(o),s.push(c),o="",l="",u=0,c=0;continue}var f=mn(d,e),p=i?!1:!jue(d);if(a.length?c+f>t:n+c+f>t){c?(o||l)&&(p?(o||(o=l,l="",u=0,c=u),a.push(o),s.push(c-u),l+=d,u+=f,o="",c=u):(l&&(o+=l,l="",u=0),a.push(o),s.push(c),o=d,c=f)):p?(a.push(l),s.push(u),l=d,u=f):(a.push(d),s.push(f));continue}c+=f,p?(l+=d,u+=f):(l&&(o+=l,l="",u=0),o+=d)}return!a.length&&!o&&(o=r,l="",u=0),l&&(o+=l),o&&(a.push(o),s.push(c)),a.length===1&&(c+=n),{accumWidth:c,lines:a,linesWidths:s}}var jw="__zr_style_"+Math.round(Math.random()*10),Uu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},a1={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Uu[jw]=!0;var ZL=["z","z2","invisible"],Xue=["invisible"],Yn=function(r){j(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var i=rt(t),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(t[a]):r.prototype.attrKV.call(this,a,t[a])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,i,n,a){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Yue(this,t,i)||s&&!s[0]&&!s[3])return!1;if(n&&this.__clipPaths){for(var o=0;o<this.__clipPaths.length;++o)if(this.__clipPaths[o].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,i){return this.rectContain(t,i)},e.prototype.traverse=function(t,i){t.call(i,this)},e.prototype.rectContain=function(t,i){var n=this.transformCoordToLocal(t,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,s=a.shadowBlur||0,o=a.shadowOffsetX||0,l=a.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new qe(0,0,0,0)),i?qe.applyTransform(t,n,i):t.copy(n),(s||o||l)&&(t.width+=s*2+Math.abs(o),t.height+=s*2+Math.abs(l),t.x=Math.min(t.x,t.x+o-s),t.y=Math.min(t.y,t.y+l-s));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new qe(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,i){t!=="style"?r.prototype.attrKV.call(this,t,i):this.style?this.setStyle(i):this.useStyle(i)},e.prototype.setStyle=function(t,i){return typeof t=="string"?this.style[t]=i:J(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=tp,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&tp)},e.prototype.styleUpdated=function(){this.__dirty&=~tp},e.prototype.createStyle=function(t){return Q_(Uu,t)},e.prototype.useStyle=function(t){t[jw]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[jw]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var i=this._normalState;t.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,i,ZL)},e.prototype._applyStateObj=function(t,i,n,a,s,o){r.prototype._applyStateObj.call(this,t,i,n,a,s,o);var l=!(i&&a),u;if(i&&i.style?s?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(s){var c=this.style
|
|||
|
`,`
|
|||
|
|
|||
|
`,`
|
|||
|
|
|||
|
|
|||
|
`];function Br(r,e){return e.type=r,e}function u2(r){return r.type==="section"}function YH(r){return u2(r)?Vfe:zfe}function KH(r){if(u2(r)){var e=0,t=r.blocks.length,i=t>1||t>0&&!r.noHeader;return R(r.blocks,function(n){var a=KH(n);a>=e&&(e=a+ +(i&&(!a||u2(n)&&!n.noHeader)))}),e}return 0}function Vfe(r,e,t,i){var n=e.noHeader,a=Gfe(KH(e)),s=[],o=e.blocks||[];Ai(!o||ie(o)),o=o||[];var l=r.orderMode;if(e.sortBlocks&&l){o=o.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(_e(u,l)){var c=new GH(u[l],null);o.sort(function(p,v){return c.evaluate(p.sortParam,v.sortParam)})}else l==="seriesDesc"&&o.reverse()}R(o,function(p,v){var g=e.valueFormatter,m=YH(p)(g?J(J({},r),{valueFormatter:g}):r,p,v>0?a.html:0,i);m!=null&&s.push(m)});var h=r.renderMode==="richText"?s.join(a.richText):c2(s.join(""),n?t:a.html);if(n)return h;var d=n2(e.header,"ordinal",r.useUTC),f=XH(i,r.renderMode).nameStyle;return r.renderMode==="richText"?ZH(r,d,f)+a.richText+h:c2('<div style="'+f+";"+jH+';">'+Bi(d)+"</div>"+h,t)}function zfe(r,e,t,i){var n=r.renderMode,a=e.noName,s=e.noValue,o=!e.markerType,l=e.name,u=r.useUTC,c=e.valueFormatter||r.valueFormatter||function(b){return b=ie(b)?b:[b],oe(b,function(S,x){return n2(S,ie(f)?f[x]:f,u)})};if(!(a&&s)){var h=o?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),d=a?"":n2(l,"ordinal",u),f=e.valueType,p=s?[]:c(e.value,e.dataIndex),v=!o||!a,g=!o&&a,m=XH(i,n),y=m.nameStyle,_=m.valueStyle;return n==="richText"?(o?"":h)+(a?"":ZH(r,d,y))+(s?"":Wfe(r,p,v,g,_)):c2((o?"":h)+(a?"":Hfe(d,!o,y))+(s?"":$fe(p,v,g,_)),t)}}function aR(r,e,t,i,n,a){if(r){var s=YH(r),o={useUTC:n,renderMode:t,orderMode:i,markupStyleCreator:e,valueFormatter:r.valueFormatter};return s(o,r,0,a)}}function Gfe(r){return{html:Ffe[r],richText:Ufe[r]}}function c2(r,e){var t='<div style="clear:both"></div>',i="margin: "+e+"px 0 0";return'<div style="'+i+";"+jH+';">'+r+t+"</div>"}function Hfe(r,e,t){var i=e?"margin-left:2px":"";return'<span style="'+t+";"+i+'">'+Bi(r)+"</span>"}function $fe(r,e,t,i){var n=t?"10px":"20px",a=e?"float:right;margin-left:"+n:"";return r=ie(r)?r:[r],'<span style="'+a+";"+i+'">'+oe(r,function(s){return Bi(s)}).join(" ")+"</span>"}function ZH(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function Wfe(r,e,t,i,n){var a=[n],s=i?10:20;return t&&a.push({padding:[0,0,0,s],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(ie(e)?e.join(" "):e,a)}function QH(r,e){var t=r.getData().getItemVisual(e,"style"),i=t[r.visualDrawType];return ic(i)}function JH(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var VT=function(){function r(){this.richTextStyles={},this._nextStyleNameId=p9()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,i){var n=i==="richText"?this._generateStyleName():null,a=Nhe({color:t,type:e,renderMode:i,markerId:n});return pe(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(e,t){var i={};ie(t)?R(t,function(a){return J(i,a)}):J(i,t);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+e+"}"},r}();function e$(r){var e=r.series,t=r.dataIndex,i=r.multipleSeries,n=e.getData(),a=n.mapDimensionsAll("defaultedTooltip"),s=a.length,o=e.getRawValue(t),l=ie(o),u=QH(e,t),c,h,d,f;if(s>1||l&&!s){var p=qfe(o,e,t,a,u);c=p.inlineValues,h=p.inlineValueTypes,d=p.blocks,f=p.inlineValues[0]}else if(s){var v=n.getDimensionInfo(a[0]);f=c=uf(n,t,a[0]),h=v.type}else f=c=l?o[0]:o;var g=tD(e),m=g&&e.name||"",y=n.getName(t),_=i?m:y;return Br("section",{header:m,noHeader:i||!g,sortParam:f,blocks:[Br("nameValue",{markerType:"item",markerColor:u,name:_,noName:!ha(_),value:c,valueType:h,dataIndex:t})].concat(d||[])})}function qfe(r,e,t,i,n){var a=e.getData(),s=as(r,function(h,d,f){var p=a.getDimensionInfo(f);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),o=[],l=[],u=[];i.length?R(i,function(h){c(uf(a,t,h),h)}):R(r,c);function c(h,d){var f=a.getDimensionInfo(d);!f||f.otherDims.tooltip===!1||(s?u.push(Br("nameValue",{markerType:"subIte
|
|||
|
`:"";function i(n){var a=n.children,s=n.tag,o=n.attrs,l=n.text;return Zve(s,o)+(s!=="style"?Bi(l):l||"")+(a?""+t+oe(a,function(u){return i(u)}).join(t)+t:"")+Qve(s)}return i(r)}function Jve(r,e,t){t=t||{};var i=t.newline?`
|
|||
|
`:"",n=" {"+i,a=i+"}",s=oe(rt(r),function(l){return l+n+oe(rt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(i)+a}).join(i),o=oe(rt(e),function(l){return"@keyframes "+l+n+oe(rt(e[l]),function(u){return u+n+oe(rt(e[l][u]),function(c){var h=e[l][u][c];return c==="d"&&(h='path("'+h+'")'),c+":"+h+";"}).join(i)+a}).join(i)+a}).join(i);return!s&&!o?"":["<![CDATA[",s,o,"]]>"].join(i)}function S2(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function tO(r,e,t,i){return Rr("svg","root",{width:r,height:e,xmlns:mW,"xmlns:xlink":yW,version:"1.1",baseProfile:"full",viewBox:i?"0 0 "+r+" "+e:!1},t)}var ege=0;function bW(){return ege++}var rO={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Jl="transform-origin";function tge(r,e,t){var i=J({},r.shape);J(i,e),r.buildPath(t,i);var n=new gW;return n.reset(t9(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function rge(r,e){var t=e.originX,i=e.originY;(t||i)&&(r[Jl]=t+"px "+i+"px")}var ige={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function TW(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function nge(r,e,t){var i=r.shape.paths,n={},a,s;if(R(i,function(l){var u=S2(t.zrId);u.animation=!0,I1(l,{},u,!0);var c=u.cssAnims,h=u.cssNodes,d=rt(c),f=d.length;if(f){s=d[f-1];var p=c[s];for(var v in p){var g=p[v];n[v]=n[v]||{d:""},n[v].d+=g.d||""}for(var m in h){var y=h[m].animation;y.indexOf(s)>=0&&(a=y)}}}),!!a){e.d=!1;var o=TW(n,t);return a.replace(s,o)}}function iO(r){return pe(r)?rO[r]?"cubic-bezier("+rO[r]+")":ZA(r)?r:"":""}function I1(r,e,t,i){var n=r.animators,a=n.length,s=[];if(r instanceof fD){var o=nge(r,e,t);if(o)s.push(o);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=n[u],h=[c.getMaxTime()/1e3+"s"],d=iO(c.getClip().easing),f=c.getDelay();d?h.push(d):h.push("linear"),f&&h.push(f/1e3+"s"),c.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(c)}function v(y){var _=y[1],b=_.length,S={},x={},C={},D="animation-timing-function";function I(me,ze,Pe){for(var ye=me.getTracks(),Me=me.getMaxTime(),_t=0;_t<ye.length;_t++){var Re=ye[_t];if(Re.needsAnimate()){var Ge=Re.keyframes,Pt=Re.propName;if(Pe&&(Pt=Pe(Pt)),Pt)for(var wt=0;wt<Ge.length;wt++){var At=Ge[wt],rr=Math.round(At.time/Me*100)+"%",ht=iO(At.easing),Ji=At.rawValue;(pe(Ji)||ut(Ji))&&(ze[rr]=ze[rr]||{},ze[rr][Pt]=At.rawValue,ht&&(ze[rr][D]=ht))}}}}for(var M=0;M<b;M++){var L=_[M],N=L.targetName;N?N==="shape"&&I(L,x):!i&&I(L,S)}for(var O in S){var B={};s9(B,r),J(B,S[O]);var F=r9(B),U=S[O][D];C[O]=F?{transform:F}:{},rge(C[O],B),U&&(C[O][D]=U)}var $,q=!0;for(var O in x){C[O]=C[O]||{};var Z=!$,U=x[O][D];Z&&($=new us);var te=$.len();$.reset(),C[O].d=tge(r,x[O],$);var Q=$.len();if(!Z&&te!==Q){q=!1;break}U&&(C[O][D]=U)}if(!q)for(var O in C)delete C[O].d;if(!i)for(var M=0;M<b;M++){var L=_[M],N=L.targetName;N==="style"&&I(L,C,function(ye){return ige[ye]})}for(var se=rt(C),he=!0,ue,M=1;M<se.length;M++){var Ie=se[M-1],Oe=se[M];if(C[Ie][Jl]!==C[Oe][Jl]){he=!1;break}ue=C[Ie][Jl]}if(he&&ue){for(var O in C)C[O][Jl]&&delete C[O][Jl];e[Jl]=ue}if(St(se,function(me){return rt(C[me]).length>0}).length){var Fe=TW(C,t);return Fe+" "+y[0]+" both"}}for(var g in l){var o=v(l[g]);o&&s.push(o)}if(s.length){var m=t.zrId+"-cls-"+bW();t.cssNodes["."+m]={animation:s.join(",")},e.class=m}}function age(r,e,t){if(!r.ignore)if(r.isSilent()){var i={"pointer-events":"none"};nO(
|
|||
|
`+g.message)}var n=new Le;n.add(i),n.isGeoSVGGraphicRoot=!0;var a=t.width,s=t.height,o=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,h=void 0,d=void 0;if(a!=null?(u=0,h=a):o&&(u=o.x,h=o.width),s!=null?(c=0,d=s):o&&(c=o.y,d=o.height),u==null||c==null){var f=i.getBoundingRect();u==null&&(u=f.x,h=f.width),c==null&&(c=f.y,d=f.height)}l=this._boundingRect=new qe(u,c,h,d)}if(o){var p=nq(o,l);i.scaleX=i.scaleY=p.scale,i.x=p.x,i.y=p.y}n.setClipPath(new st({shape:l.plain()}));var v=[];return R(t.named,function(g){Tye.get(g.svgNodeTagLower)!=null&&(v.push(g),xye(g.el))}),{root:n,boundingRect:l,named:v}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);return i||(i=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,i),i)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,i=t.get(e);i&&(t.removeKey(e),this._freedGraphics.push(i))},r}();function xye(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function wye(r){var e=[],t=be();return R(r,function(i){if(i.namedFrom==null){var n=new yve(i.name,i.el);e.push(n),t.set(i.name,n)}}),{regions:e,regionsMap:t}}var P2=[126,25],iN="南海诸岛",eu=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Kl=0;Kl<eu.length;Kl++)for(var jc=0;jc<eu[Kl].length;jc++)eu[Kl][jc][0]/=10.5,eu[Kl][jc][1]/=-10.5/.75,eu[Kl][jc][0]+=P2[0],eu[Kl][jc][1]+=P2[1];function Cye(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===iN)return;e.push(new eW(iN,oe(eu,function(i){return{type:"polygon",exterior:i}}),P2))}}var Aye={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Dye(r,e){if(r==="china"){var t=Aye[e.name];if(t){var i=e.getCenter();i[0]+=t[0]/10.5,i[1]+=-t[1]/(10.5/.75),e.setCenter(i)}}}var Eye=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Iye(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Eye[0]})}var Pye="name",Mye=function(){function r(e,t,i){this.type="geoJSON",this._parsedMap=be(),this._mapName=e,this._specialAreas=i,this._geoJSON=kye(t)}return r.prototype.load=function(e,t){t=t||Pye;var i=this._parsedMap.get(t);if(!i){var n=this._parseToRegions(t);i=this._parsedMap.set(t,{regions:n,boundingRect:Lye(n)})}var a=be(),s=[];return R(i.regions,function(o){var l=o.name;e&&_e(e,l)&&(o=o.cloneShallow(l=e[l])),s.push(o),a.set(l,o)}),{regions:s,boundingRect:i.boundingRect||new qe(0,0,0,0),regionsMap:a}},r.prototype._parseToRegions=function(e){var t=this._mapName,i=this._geoJSON,n;try{n=i?bve(i,e):[]}catch(a){throw new Error(`Invalid geoJson format
|
|||
|
`+a.message)}return Cye(t,n),R(n,function(a){var s=a.name;Dye(t,a),Iye(t,a);var o=this._specialAreas&&this._specialAreas[s];o&&a.transformTo(o.left,o.top,o.width,o.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function Lye(r){for(var e,t=0;t<r.length;t++){var i=r[t].getBoundingRect();e=e||i.clone(),e.union(i)}return e}function kye(r){return pe(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var kd=be();const Ks={registerMap:function(r,e,t){if(e.svg){var i=new Sye(r,e.svg);kd.set(r,i)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var i=new Mye(r,n,t);kd.set(r,i)}},getGeoResource:function(r){return kd.get(r)},getMapForUser:function(r){var e=kd.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var i=kd.get(r);if(i)return i.load(e,t)}};var iE=["rect","circle","line","ellipse","polygon","polyline","path"],Rye=be(iE),Oye=be(iE.concat(["g"])),Nye=be(iE.concat(["g"])),aq=ot();function Vm(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function nN(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var sq=function(){function r(e){var t=new Le;this.uid=Of("ec_map_draw"),this._controller=new pg(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new Le),t.add(this._svgGroup=new Le)}return r.prototype.draw=function(e,t,i,n,a){var s=e.mainType==="geo",o=e.getData&&e.getData();s&&t.eachComponent({mainType:"series",subType:"map"},function(m){!o&&m.getHostGeoModel()===e&&(o=m.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,h=l.getTransformInfo(),d=h.raw,f=h.roam,p=!u.childAt(0)||a;p?(c.x=f.x,c.y=f.y,c.scaleX=f.scaleX,c.scaleY=f.scaleY,c.dirty()):ct(c,f,e);var v=o&&o.getVisual("visualMeta")&&o.getVisual("visualMeta").length>0,g={api:i,geo:l,mapOrGeoModel:e,data:o,isVisualEncodedByVisualMap:v,isGeo:s,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,i),this._updateMapSelectHandler(e,u,i,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=be(),i=be(),n=this._regionsGroup,a=e.transformInfoRaw,s=e.mapOrGeoModel,o=e.data,l=e.geo.projection,u=l&&l.stream;function c(f,p){return p&&(f=p(f)),f&&[f[0]*a.scaleX+a.x,f[1]*a.scaleY+a.y]}function h(f){for(var p=[],v=!u&&l&&l.project,g=0;g<f.length;++g){var m=c(f[g],v);m&&p.push(m)}return p}function d(f){return{shape:{points:h(f)}}}n.removeAll(),R(e.geo.regions,function(f){var p=f.name,v=t.get(p),g=i.get(p)||{},m=g.dataIdx,y=g.regionModel;v||(v=t.set(p,new Le),n.add(v),m=o?o.indexOfName(p):null,y=e.isGeo?s.getRegionModel(p):o?o.getItemModel(m):null,i.set(p,{dataIdx:m,regionModel:y}));var _=[],b=[];R(f.geometries,function(C){if(C.type==="polygon"){var D=[C.exterior].concat(C.interiors||[]);u&&(D=cN(D,u)),R(D,function(M){_.push(new Ii(d(M)))})}else{var I=C.points;u&&(I=cN(I,u,!0)),R(I,function(M){b.push(new Pi(d(M)))})}});var S=c(f.getCenter(),l&&l.project);function x(C,D){if(C.length){var I=new fD({culling:!0,segmentIgnoreThreshold:1,shape:{paths:C}});v.add(I),aN(e,I,m,y),sN(e,I,p,y,s,m,S),D&&(nN(I),R(I.states,nN))}}x(_),x(b,!0)}),t.each(function(f,p){var v=i.get(p),g=v.dataIdx,m=v.regionModel;oN(e,f,p,m,s,g),lN(e,f,p,m,s),uN(e,f,p,m,s)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,i=e.transformInfoRaw;this._svgGroup.x=i.x,this._svgGroup.y=i.y,this._svgGroup.scaleX=i.scaleX,this._svgGroup.scaleY=i.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=be(),a=!1;R(this._svgGraphicRecord.named,function(s){var o=s.name,l=e.mapOrGeoModel,u=e.data,c=s.svgNodeTagLower,h=s.el,d=u?u.indexOfName(o):null,f=l.getRegionModel(o);if(Rye.get(c)!=null&&h instanceof Yn&&aN(e,h,d,f),h instanceof Yn&&(h.culling=!0),h.z2EmphasisLift=0,!s.namedFrom&&(Nye.get(c)!=null&&sN(e,h,o,f,l,d,null),oN(e,h,o,f,l,d),lN(e,h,o,f,l),Oye.get(c)!=null)){var p=uN(e,h,o,f,l);p==="self"&&(a=!0);var v=n.get(o)||n.s
|
|||
|
`))}),e.join(`
|
|||
|
|
|||
|
`+N1+`
|
|||
|
|
|||
|
`)}function Xxe(r){return oe(r,function(e){var t=e.getRawData(),i=[e.name],n=[];return t.each(t.dimensions,function(){for(var a=arguments.length,s=arguments[a-1],o=t.getName(s),l=0;l<a-1;l++)n[l]=arguments[l];i.push((o?o+gf:"")+n.join(gf))}),i.join(`
|
|||
|
`)}).join(`
|
|||
|
|
|||
|
`+N1+`
|
|||
|
|
|||
|
`)}function Yxe(r){var e=qxe(r);return{value:St([jxe(e.seriesGroupByCategoryAxis),Xxe(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
|||
|
|
|||
|
`+N1+`
|
|||
|
|
|||
|
`),meta:e.meta}}function o_(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Kxe(r){var e=r.slice(0,r.indexOf(`
|
|||
|
`));if(e.indexOf(gf)>=0)return!0}var Z2=new RegExp("["+gf+"]+","g");function Zxe(r){for(var e=r.split(/\n+/g),t=o_(e.shift()).split(Z2),i=[],n=oe(t,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var s=o_(e[a]).split(Z2);i.push(s.shift());for(var o=0;o<s.length;o++)n[o]&&(n[o].data[a]=s[o])}return{series:n,categories:i}}function Qxe(r){for(var e=r.split(/\n+/g),t=o_(e.shift()),i=[],n=0;n<e.length;n++){var a=o_(e[n]);if(a){var s=a.split(Z2),o="",l=void 0,u=!1;isNaN(s[0])?(u=!0,o=s[0],s=s.slice(1),i[n]={name:o,value:[]},l=i[n].value):l=i[n]=[];for(var c=0;c<s.length;c++)l.push(+s[c]);l.length===1&&(u?i[n].value=l[0]:i[n]=l[0])}}return{name:t,data:i}}function Jxe(r,e){var t=r.split(new RegExp(`
|
|||
|
*`+N1+`
|
|||
|
*`,"g")),i={series:[]};return R(t,function(n,a){if(Kxe(n)){var s=Zxe(n),o=e[a],l=o.axisDim+"Axis";o&&(i[l]=i[l]||[],i[l][o.axisIndex]={data:s.categories},i.series=i.series.concat(s.series))}else{var s=Qxe(n);i.series.push(s)}}),i}var ewe=function(r){j(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,i){setTimeout(function(){i.dispatchAction({type:"hideTip"})});var n=i.getDom(),a=this.model;this._dom&&n.removeChild(this._dom);var s=document.createElement("div");s.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",s.style.backgroundColor=a.get("backgroundColor")||"#fff";var o=document.createElement("h4"),l=a.get("lang")||[];o.innerHTML=l[0]||a.get("title"),o.style.cssText="margin:10px 20px",o.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var h=a.get("optionToContent"),d=a.get("contentToOption"),f=Yxe(t);if(we(h)){var p=h(i.getOption());pe(p)?u.innerHTML=p:sf(p)&&u.appendChild(p)}else{c.readOnly=a.get("readOnly");var v=c.style;v.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",v.color=a.get("textColor"),v.borderColor=a.get("textareaBorderColor"),v.backgroundColor=a.get("textareaColor"),c.value=f.value,u.appendChild(c)}var g=f.meta,m=document.createElement("div");m.style.cssText="position:absolute;bottom:5px;left:0;right:0";var y="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),b=document.createElement("div");y+=";background-color:"+a.get("buttonColor"),y+=";color:"+a.get("buttonTextColor");var S=this;function x(){n.removeChild(s),S._dom=null}Iw(_,"click",x),Iw(b,"click",function(){if(d==null&&h!=null||d!=null&&h==null){x();return}var C;try{we(d)?C=d(u,i.getOption()):C=Jxe(c.value,g)}catch(D){throw x(),new Error("Data view format error "+D)}C&&i.dispatchAction({type:"changeDataView",newOption:C}),x()}),_.innerHTML=l[1],b.innerHTML=l[2],b.style.cssText=_.style.cssText=y,!a.get("readOnly")&&m.appendChild(b),m.appendChild(_),s.appendChild(o),s.appendChild(u),s.appendChild(m),u.style.height=n.clientHeight-80+"px",n.appendChild(s),this._dom=s},e.prototype.remove=function(t,i){this._dom&&i.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,i){this.remove(t,i)},e.getDefaultOption=function(t){var i={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return i},e}(Fn);function twe(r,e){return oe(r,function(t,i){var n=e&&e[i];if(De(n)&&!ie(n)){var a=De(t)&&!ie(t);a||(t={value:t});var s=n.name!=null&&t.name==null;return t=Ce(t,n),s&&delete t.name,t}else return t})}hs({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];R(r.newOption.series,function(i){var n=e.getSeriesByName(i.name)[0];if(!n)t.push(J({type:"scatter"},i));else{var a=n.get("data");t.push({name:i.name,data:twe(i.data,a)})}}),e.mergeOption(Ce({series:t},r.newOption))});var Nj=R,Bj=ot();function rwe(r,e){var t=FE(r);Nj(e,function(i,n){for(var a=t.length-1;a>=0;a--){var s=t[a];if(s[n])break}if(a<0){var o=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(o){var l=o.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function iwe(r){var e=FE(r),t=e[e.length-1];e.length>1&&e.pop();var i={};return Nj(t,function(n,a){for(var s=e.length-1;s>=0;s--)if(n=e[s][a],n){i[a]=n;break}}),i}function nwe(r){Bj(r).snapshots=null}function awe(r){return FE(r).length}function FE(r){var e=Bj(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var swe=function(r){j(e,r);f
|
|||
|
|
|||
|
`:"<br/>",m=h.join(g);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(o,f,s[0],s[1],this._tooltipContent,u):this._showTooltipContent(o,m,u,Math.random()+"",s[0],s[1],f,null,d)})},e.prototype._showSeriesItemTooltip=function(t,i,n){var a=this._ecModel,s=ke(i),o=s.seriesIndex,l=a.getSeriesByIndex(o),u=s.dataModel||l,c=s.dataIndex,h=s.dataType,d=u.getData(h),f=this._renderMode,p=t.positionDefault,v=Bd([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=v.get("trigger");if(!(g!=null&&g!=="item")){var m=u.getDataParams(c,h),y=new VT;m.marker=y.makeTooltipMarker("item",ic(m.color),f);var _=Jk(u.formatTooltip(c,!1,h)),b=v.get("order"),S=v.get("valueFormatter"),x=_.frag,C=x?aR(S?J({valueFormatter:S},x):x,y,f,b,a.get("useUTC"),v.get("textStyle")):_.text,D="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,C,m,D,t.offsetX,t.offsetY,t.position,t.target,y)}),n({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,i,n){var a=this._renderMode==="html",s=ke(i),o=s.tooltipConfig,l=o.option||{},u=l.encodeHTMLContent;if(pe(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Ee(l),l.content=Bi(l.content));var h=[l],d=this._ecModel.getComponent(s.componentMainType,s.componentIndex);d&&h.push(d),h.push({formatter:l.content});var f=t.positionDefault,p=Bd(h,this._tooltipModel,f?{position:f}:null),v=p.get("content"),g=Math.random()+"",m=new VT;this._showOrMove(p,function(){var y=Ee(p.get("formatterParams")||{});this._showTooltipContent(p,v,y,g,t.offsetX,t.offsetY,t.position,i,m)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,i,n,a,s,o,l,u,c){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var d=t.get("formatter");l=l||t.get("position");var f=i,p=this._getNearestPoint([s,o],n,t.get("trigger"),t.get("borderColor")),v=p.color;if(d)if(pe(d)){var g=t.ecModel.get("useUTC"),m=ie(n)?n[0]:n,y=m&&m.axisType&&m.axisType.indexOf("time")>=0;f=d,y&&(f=p1(m.axisValue,f,g)),f=bH(f,n,!0)}else if(we(d)){var _=ge(function(b,S){b===this._ticket&&(h.setContent(S,c,t,v,l),this._updatePosition(t,l,s,o,h,n,u))},this);this._ticket=a,f=d(n,a,_)}else f=d;h.setContent(f,c,t,v,l),h.show(t,v),this._updatePosition(t,l,s,o,h,n,u)}},e.prototype._getNearestPoint=function(t,i,n,a){if(n==="axis"||ie(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ie(i))return{color:a||i.color||i.borderColor}},e.prototype._updatePosition=function(t,i,n,a,s,o,l){var u=this._api.getWidth(),c=this._api.getHeight();i=i||t.get("position");var h=s.getSize(),d=t.get("align"),f=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),we(i)&&(i=i([n,a],o,s.el,p,{viewSize:[u,c],contentSize:h.slice()})),ie(i))n=ce(i[0],u),a=ce(i[1],c);else if(De(i)){var v=i;v.width=h[0],v.height=h[1];var g=Ar(v,{width:u,height:c});n=g.x,a=g.y,d=null,f=null}else if(pe(i)&&l){var m=Lwe(i,p,h,t.get("borderWidth"));n=m[0],a=m[1]}else{var m=Pwe(n,a,s,u,c,d?null:20,f?null:20);n=m[0],a=m[1]}if(d&&(n-=pB(d)?h[0]/2:d==="right"?h[0]:0),f&&(a-=pB(f)?h[1]/2:f==="bottom"?h[1]:0),Fj(t)){var m=Mwe(n,a,s,u,c);n=m[0],a=m[1]}s.moveTo(n,a)},e.prototype._updateContentNotChangedOnAxis=function(t,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,s=!!n&&n.length===t.length;return s&&R(n,function(o,l){var u=o.dataByAxis||[],c=t[l]||{},h=c.dataByAxis||[];s=s&&u.length===h.length,s&&R(u,function(d,f){var p=h[f]||{},v=d.seriesDataIndices||[],g=p.seriesDataIndices||[];s=s&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&v.length===g.length,s&&R(v,function(m,y){var _=g[y];s=s&&m.seriesIndex===_.seriesIndex&&m.dataIndex===_.dataIndex}),a&&R(d.seriesDataIndices,function(m){var y=m.seriesIndex,_=i[y],b=a[y];_&&b&&b.data!==_.data&&(s=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=i,!!s},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hi
|
|||
|
`)){var g=new ty;g.newline=!0,u.add(g);return}var m=n.getSeriesByName(v)[0];if(!c.get(v))if(m){var y=m.getData(),_=y.getVisual("legendLineStyle")||{},b=y.getVisual("legendIcon"),S=y.getVisual("style"),x=this._createItem(m,v,p,f,i,t,_,S,b,h,a);x.on("click",Qc(kB,v,null,a,d)).on("mouseover",Qc(aC,m.name,null,a,d)).on("mouseout",Qc(sC,m.name,null,a,d)),n.ssr&&x.eachChild(function(C){var D=ke(C);D.seriesIndex=m.seriesIndex,D.dataIndex=p,D.ssrType="legend"}),c.set(v,!0)}else n.eachRawSeries(function(C){if(!c.get(v)&&C.legendVisualProvider){var D=C.legendVisualProvider;if(!D.containName(v))return;var I=D.indexOfName(v),M=D.getItemVisual(I,"style"),L=D.getItemVisual(I,"legendIcon"),N=gn(M.fill);N&&N[3]===0&&(N[3]=.2,M=J(J({},M),{fill:Os(N,"rgba")}));var O=this._createItem(C,v,p,f,i,t,{},M,L,h,a);O.on("click",Qc(kB,null,v,a,d)).on("mouseover",Qc(aC,null,v,a,d)).on("mouseout",Qc(sC,null,v,a,d)),n.ssr&&O.eachChild(function(B){var F=ke(B);F.seriesIndex=C.seriesIndex,F.dataIndex=p,F.ssrType="legend"}),c.set(v,!0)}},this)},this),s&&this._createSelector(s,i,a,o,l)},e.prototype._createSelector=function(t,i,n,a,s){var o=this.getSelectorGroup();nC(t,function(u){var c=u.type,h=new lt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});o.add(h);var d=i.getModel("selectorLabel"),f=i.getModel(["emphasis","selectorLabel"]);Jr(h,{normal:d,emphasis:f},{defaultText:u.title}),zu(h)})},e.prototype._createItem=function(t,i,n,a,s,o,l,u,c,h,d){var f=t.visualDrawType,p=s.get("itemWidth"),v=s.get("itemHeight"),g=s.isSelected(i),m=a.get("symbolRotate"),y=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var b=M2e(c,a,l,u,f,g,d),S=new ty,x=a.getModel("textStyle");if(we(t.getLegendIcon)&&(!_||_==="inherit"))S.add(t.getLegendIcon({itemWidth:p,itemHeight:v,icon:c,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var C=_==="inherit"&&t.getData().getVisual("symbol")?m==="inherit"?t.getData().getVisual("symbolRotate"):m:0;S.add(L2e({itemWidth:p,itemHeight:v,icon:c,iconRotate:C,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}))}var D=o==="left"?p+5:-5,I=o,M=s.get("formatter"),L=i;pe(M)&&M?L=M.replace("{name}",i??""):we(M)&&(L=M(i));var N=g?x.getTextColor():a.get("inactiveColor");S.add(new lt({style:kt(x,{text:L,x:D,y:v/2,fill:N,align:I,verticalAlign:"middle"},{inheritColor:N})}));var O=new st({shape:S.getBoundingRect(),style:{fill:"transparent"}}),B=a.getModel("tooltip");return B.get("show")&&kf({el:O,componentModel:s,itemName:i,itemTooltipOption:B.option}),S.add(O),S.eachChild(function(F){F.silent=!0}),O.silent=!h,this.getContentGroup().add(S),zu(S),S.__legendDataIndex=n,S},e.prototype.layoutInner=function(t,i,n,a,s,o){var l=this.getContentGroup(),u=this.getSelectorGroup();Hu(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var c=l.getBoundingRect(),h=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),s){Hu("horizontal",u,t.get("selectorItemGap",!0));var d=u.getBoundingRect(),f=[-d.x,-d.y],p=t.get("selectorButtonGap",!0),v=t.getOrient().index,g=v===0?"width":"height",m=v===0?"height":"width",y=v===0?"y":"x";o==="end"?f[v]+=c[g]+p:h[v]+=d[g]+p,f[1-v]+=c[m]/2-d[m]/2,u.x=f[0],u.y=f[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=c[g]+p+d[g],_[m]=Math.max(c[m],d[m]),_[y]=Math.min(0,d[y]+f[1-v]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}($t);function M2e(r,e,t,i,n,a,s){function o(g,m){g.lineWidth==="auto"&&(g.lineWidth=m.lineWidth>0?2:0),nC(g,function(y,_){g[_]==="inherit"&&(g[_]=m[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:cf(h,s),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[c]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:t).opacity),o(u,i);var d=e.getModel("lineStyle"),f=d.getLineStyle();if(o(f,t),u.fill==="auto"&&(u.fill=i.fill),u.s
|
|||
|
`||u==="")){var c=s.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&c:i[u]=c}})}),r==="allSelect"||r==="inverseSelect"?{selected:i}:{name:e.name,selected:i}}function R2e(r){r.registerAction("legendToggleSelect","legendselectchanged",Ue(Ud,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Ue(Ud,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Ue(Ud,"inverseSelect")),r.registerAction("legendSelect","legendselected",Ue(Ud,"select")),r.registerAction("legendUnSelect","legendunselected",Ue(Ud,"unSelect"))}function Yj(r){r.registerComponentModel(iC),r.registerComponentView(jj),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,k2e),r.registerSubTypeDefaulter("legend",function(){return"plain"}),R2e(r)}var O2e=function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,i,n){var a=Bf(t);r.prototype.init.call(this,t,i,n),RB(this,t,a)},e.prototype.mergeOption=function(t,i){r.prototype.mergeOption.call(this,t,i),RB(this,this.option,t)},e.type="legend.scroll",e.defaultOption=hl(iC.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),e}(iC);function RB(r,e,t){var i=r.getOrient(),n=[1,1];n[i.index]=0,il(e,t,{type:"box",ignoreSize:!!n})}var OB=Le,ox=["width","height"],lx=["x","y"],N2e=function(r){j(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new OB),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new OB)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,i,n,a,s,o,l){var u=this;r.prototype.renderInner.call(this,t,i,n,a,s,o,l);var c=this._controllerGroup,h=i.get("pageIconSize",!0),d=ie(h)?h:[h,h];p("pagePrev",0);var f=i.getModel("pageTextStyle");c.add(new lt({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(v,g){var m=v+"DataIndex",y=ig(i.get("pageIcons",!0)[i.getOrient().name][g],{onclick:ge(u._pageGo,u,m,i,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});y.name=v,c.add(y)}},e.prototype.layoutInner=function(t,i,n,a,s,o){var l=this.getSelectorGroup(),u=t.getOrient().index,c=ox[u],h=lx[u],d=ox[1-u],f=lx[1-u];s&&Hu("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),v=l.getBoundingRect(),g=[-v.x,-v.y],m=Ee(n);s&&(m[c]=n[c]-v[c]-p);var y=this._layoutContentAndController(t,a,m,u,c,d,f,h);if(s){if(o==="end")g[u]+=y[c]+p;else{var _=v[c]+p;g[u]-=_,y[h]-=_}y[c]+=v[c]+p,g[1-u]+=y[f]+y[d]/2-v[d]/2,y[d]=Math.max(y[d],v[d]),y[f]=Math.min(y[f],v[f]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return y},e.prototype._layoutContentAndController=function(t,i,n,a,s,o,l,u){var c=this.getContentGroup(),h=this._containerGroup,d=this._controllerGroup;Hu(t.get("orient"),c,t.get("itemGap"),a?n.width:null,a?null:n.height),Hu("horizontal",d,t.get("pageButtonItemGap",!0));var f=c.getBoundingRect(),p=d.getBoundingRect(),v=this._showController=f[s]>n[s],g=[-f.x,-f.y];i||(g[a]=c[u]);var m=[0,0],y=[-p.x,-p.y],_=Be(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(v){var b=t.get("pageButtonPosition",!0);b==="end"?y[a]+=n[s]-p[s]:m[a]+=p[s]+_}y[1-a]+=f[o]/2-p[o]/2,c.setPosition(g),h.setPosition(m),d.setPosition(y);var S={x:0,y:0};if(S[s]=v?n[s]:f[s],S[o]=Math.max(f[o],p[o]),S[l]=Math.min(0,p[l]+y[1-a]),h.__rectSize=n[s],v){var x={x:0,y:0};x[s]=Math.max(
|