mirror of
https://github.com/ProudMuBai/GoFilm.git
synced 2026-03-12 17:07:31 +08:00
290 lines
1.7 MiB
290 lines
1.7 MiB
var iL=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var _ke=iL((kr,Ar)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/**
|
||
* @vue/shared v3.4.31
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**//*! #__NO_SIDE_EFFECTS__ */function M_(e,t){const n=new Set(e.split(","));return t?s=>n.has(s.toLowerCase()):s=>n.has(s)}const $n={},Au=[],sn=()=>{},aL=()=>!1,yg=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),$_=e=>e.startsWith("onUpdate:"),Zn=Object.assign,L_=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},oL=Object.prototype.hasOwnProperty,jt=(e,t)=>oL.call(e,t),Ye=Array.isArray,Iu=e=>th(e)==="[object Map]",Cc=e=>th(e)==="[object Set]",_o=e=>th(e)==="[object Date]",pt=e=>typeof e=="function",ht=e=>typeof e=="string",Wi=e=>typeof e=="symbol",Pt=e=>e!==null&&typeof e=="object",ff=e=>(Pt(e)||pt(e))&&pt(e.then)&&pt(e.catch),zA=Object.prototype.toString,th=e=>zA.call(e),Lp=e=>th(e).slice(8,-1),pm=e=>th(e)==="[object Object]",B_=e=>ht(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vd=M_(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),bg=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},lL=/-(\w)/g,Kr=bg(e=>e.replace(lL,(t,n)=>n?n.toUpperCase():"")),uL=/\B([A-Z])/g,$o=bg(e=>e.replace(uL,"-$1").toLowerCase()),nh=bg(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ud=bg(e=>e?`on${nh(e)}`:""),wo=(e,t)=>!Object.is(e,t),Bp=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},jA=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},mm=e=>{const t=parseFloat(e);return isNaN(t)?e:t},cL=e=>{const t=ht(e)?Number(e):NaN;return isNaN(t)?e:t};let rT;const qA=()=>rT||(rT=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function st(e){if(Ye(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ht(s)?pL(s):st(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(ht(e)||Pt(e))return e}const dL=/;(?![^(]*\))/g,fL=/:([^]+)/,hL=/\/\*[^]*?\*\//g;function pL(e){const t={};return e.replace(hL,"").split(dL).forEach(n=>{if(n){const s=n.split(fL);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function M(e){let t="";if(ht(e))t=e;else if(Ye(e))for(let n=0;n<e.length;n++){const s=M(e[n]);s&&(t+=s+" ")}else if(Pt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function di(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ht(t)&&(e.class=M(t)),n&&(e.style=st(n)),e}const mL="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",gL=M_(mL);function WA(e){return!!e||e===""}function vL(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Il(e[s],t[s]);return n}function Il(e,t){if(e===t)return!0;let n=_o(e),s=_o(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Wi(e),s=Wi(t),n||s)return e===t;if(n=Ye(e),s=Ye(t),n||s)return n&&s?vL(e,t):!1;if(n=Pt(e),s=Pt(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const a in e){const o=e.hasOwnProperty(a),l=t.hasOwnProperty(a);if(o&&!l||!o&&l||!Il(e[a],t[a]))return!1}}return String(e)===String(t)}function F_(e,t){return e.findIndex(n=>Il(n,t))}const KA=e=>!!(e&&e.__v_isRef===!0),ce=e=>ht(e)?e:e==null?"":Ye(e)||Pt(e)&&(e.toString===zA||!pt(e.toString))?KA(e)?ce(e.value):JSON.stringify(e,GA,2):String(e),GA=(e,t)=>KA(t)?GA(e,t.value):Iu(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[o0(s,i)+" =>"]=r,n),{})}:Cc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>o0(n))}:Wi(t)?o0(t):Pt(t)&&!Ye(t)&&!pm(t)?String(t):t,o0=(e,t="")=>{var n;return Wi(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
* @vue/reactivity v3.4.31
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Tr;class YA{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Tr,!t&&Tr&&(this.index=(Tr.scopes||(Tr.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Tr;try{return Tr=this,t()}finally{Tr=n}}}on(){Tr=this}off(){Tr=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function yL(e){return new YA(e)}function bL(e,t=Tr){t&&t.active&&t.effects.push(e)}function XA(){return Tr}function QA(e){Tr&&Tr.cleanups.push(e)}let yl;class V_{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,bL(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Lo();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(_L(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Bo()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=po,n=yl;try{return po=!0,yl=this,this._runnings++,iT(this),this.fn()}finally{aT(this),this._runnings--,yl=n,po=t}}stop(){this.active&&(iT(this),aT(this),this.onStop&&this.onStop(),this.active=!1)}}function _L(e){return e.value}function iT(e){e._trackId++,e._depsLength=0}function aT(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)JA(e.deps[t],e);e.deps.length=e._depsLength}}function JA(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let po=!0,Cy=0;const ZA=[];function Lo(){ZA.push(po),po=!1}function Bo(){const e=ZA.pop();po=e===void 0?!0:e}function U_(){Cy++}function H_(){for(Cy--;!Cy&&Ey.length;)Ey.shift()()}function e4(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&JA(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Ey=[];function t4(e,t,n){U_();for(const s of e.keys()){let r;s._dirtyLevel<t&&(r??(r=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(r??(r=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&Ey.push(s.scheduler)))}H_()}const n4=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},gm=new WeakMap,bl=Symbol(""),xy=Symbol("");function dr(e,t,n){if(po&&yl){let s=gm.get(e);s||gm.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=n4(()=>s.delete(n))),e4(yl,r)}}function Sa(e,t,n,s,r,i){const a=gm.get(e);if(!a)return;let o=[];if(t==="clear")o=[...a.values()];else if(n==="length"&&Ye(e)){const l=Number(s);a.forEach((u,c)=>{(c==="length"||!Wi(c)&&c>=l)&&o.push(u)})}else switch(n!==void 0&&o.push(a.get(n)),t){case"add":Ye(e)?B_(n)&&o.push(a.get("length")):(o.push(a.get(bl)),Iu(e)&&o.push(a.get(xy)));break;case"delete":Ye(e)||(o.push(a.get(bl)),Iu(e)&&o.push(a.get(xy)));break;case"set":Iu(e)&&o.push(a.get(bl));break}U_();for(const l of o)l&&t4(l,4);H_()}function wL(e,t){const n=gm.get(e);return n&&n.get(t)}const SL=M_("__proto__,__v_isRef,__isVue"),s4=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Wi)),oT=TL();function TL(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=on(this);for(let i=0,a=this.length;i<a;i++)dr(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(on)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Lo(),U_();const s=on(this)[t].apply(this,n);return H_(),Bo(),s}}),e}function CL(e){Wi(e)||(e=String(e));const t=on(this);return dr(t,"has",e),t.hasOwnProperty(e)}class r4{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?LL:l4:i?o4:a4).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const a=Ye(t);if(!r){if(a&&jt(oT,n))return Reflect.get(oT,n,s);if(n==="hasOwnProperty")return CL}const o=Reflect.get(t,n,s);return(Wi(n)?s4.has(n):SL(n))||(r||dr(t,"get",n),i)?o:yn(o)?a&&B_(n)?o:o.value:Pt(o)?r?Ul(o):Ct(o):o}}class i4 extends r4{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const l=hf(i);if(!vm(s)&&!hf(s)&&(i=on(i),s=on(s)),!Ye(t)&&yn(i)&&!yn(s))return l?!1:(i.value=s,!0)}const a=Ye(t)&&B_(n)?Number(n)<t.length:jt(t,n),o=Reflect.set(t,n,s,r);return t===on(r)&&(a?wo(s,i)&&Sa(t,"set",n,s):Sa(t,"add",n,s)),o}deleteProperty(t,n){const s=jt(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Sa(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Wi(n)||!s4.has(n))&&dr(t,"has",n),s}ownKeys(t){return dr(t,"iterate",Ye(t)?"length":bl),Reflect.ownKeys(t)}}class EL extends r4{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const xL=new i4,kL=new EL,AL=new i4(!0),z_=e=>e,_g=e=>Reflect.getPrototypeOf(e);function tp(e,t,n=!1,s=!1){e=e.__v_raw;const r=on(e),i=on(t);n||(wo(t,i)&&dr(r,"get",t),dr(r,"get",i));const{has:a}=_g(r),o=s?z_:n?K_:pf;if(a.call(r,t))return o(e.get(t));if(a.call(r,i))return o(e.get(i));e!==r&&e.get(t)}function np(e,t=!1){const n=this.__v_raw,s=on(n),r=on(e);return t||(wo(e,r)&&dr(s,"has",e),dr(s,"has",r)),e===r?n.has(e):n.has(e)||n.has(r)}function sp(e,t=!1){return e=e.__v_raw,!t&&dr(on(e),"iterate",bl),Reflect.get(e,"size",e)}function lT(e){e=on(e);const t=on(this);return _g(t).has.call(t,e)||(t.add(e),Sa(t,"add",e,e)),this}function uT(e,t){t=on(t);const n=on(this),{has:s,get:r}=_g(n);let i=s.call(n,e);i||(e=on(e),i=s.call(n,e));const a=r.call(n,e);return n.set(e,t),i?wo(t,a)&&Sa(n,"set",e,t):Sa(n,"add",e,t),this}function cT(e){const t=on(this),{has:n,get:s}=_g(t);let r=n.call(t,e);r||(e=on(e),r=n.call(t,e)),s&&s.call(t,e);const i=t.delete(e);return r&&Sa(t,"delete",e,void 0),i}function dT(){const e=on(this),t=e.size!==0,n=e.clear();return t&&Sa(e,"clear",void 0,void 0),n}function rp(e,t){return function(s,r){const i=this,a=i.__v_raw,o=on(a),l=t?z_:e?K_:pf;return!e&&dr(o,"iterate",bl),a.forEach((u,c)=>s.call(r,l(u),l(c),i))}}function ip(e,t,n){return function(...s){const r=this.__v_raw,i=on(r),a=Iu(i),o=e==="entries"||e===Symbol.iterator&&a,l=e==="keys"&&a,u=r[e](...s),c=n?z_:t?K_:pf;return!t&&dr(i,"iterate",l?xy:bl),{next(){const{value:f,done:h}=u.next();return h?{value:f,done:h}:{value:o?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function qa(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function IL(){const e={get(i){return tp(this,i)},get size(){return sp(this)},has:np,add:lT,set:uT,delete:cT,clear:dT,forEach:rp(!1,!1)},t={get(i){return tp(this,i,!1,!0)},get size(){return sp(this)},has:np,add:lT,set:uT,delete:cT,clear:dT,forEach:rp(!1,!0)},n={get(i){return tp(this,i,!0)},get size(){return sp(this,!0)},has(i){return np.call(this,i,!0)},add:qa("add"),set:qa("set"),delete:qa("delete"),clear:qa("clear"),forEach:rp(!0,!1)},s={get(i){return tp(this,i,!0,!0)},get size(){return sp(this,!0)},has(i){return np.call(this,i,!0)},add:qa("add"),set:qa("set"),delete:qa("delete"),clear:qa("clear"),forEach:rp(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=ip(i,!1,!1),n[i]=ip(i,!0,!1),t[i]=ip(i,!1,!0),s[i]=ip(i,!0,!0)}),[e,n,t,s]}const[DL,OL,PL,RL]=IL();function j_(e,t){const n=t?e?RL:PL:e?OL:DL;return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(jt(n,r)&&r in s?n:s,r,i)}const NL={get:j_(!1,!1)},ML={get:j_(!1,!0)},$L={get:j_(!0,!1)},a4=new WeakMap,o4=new WeakMap,l4=new WeakMap,LL=new WeakMap;function BL(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function FL(e){return e.__v_skip||!Object.isExtensible(e)?0:BL(Lp(e))}function Ct(e){return hf(e)?e:W_(e,!1,xL,NL,a4)}function q_(e){return W_(e,!1,AL,ML,o4)}function Ul(e){return W_(e,!0,kL,$L,l4)}function W_(e,t,n,s,r){if(!Pt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=FL(e);if(a===0)return e;const o=new Proxy(e,a===2?s:n);return r.set(e,o),o}function Hd(e){return hf(e)?Hd(e.__v_raw):!!(e&&e.__v_isReactive)}function hf(e){return!!(e&&e.__v_isReadonly)}function vm(e){return!!(e&&e.__v_isShallow)}function u4(e){return e?!!e.__v_raw:!1}function on(e){const t=e&&e.__v_raw;return t?on(t):e}function mo(e){return Object.isExtensible(e)&&jA(e,"__v_skip",!0),e}const pf=e=>Pt(e)?Ct(e):e,K_=e=>Pt(e)?Ul(e):e;class c4{constructor(t,n,s,r){this.getter=t,this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new V_(()=>t(this._value),()=>zd(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=on(this);return(!t._cacheable||t.effect.dirty)&&wo(t._value,t._value=t.effect.run())&&zd(t,4),G_(t),t.effect._dirtyLevel>=2&&zd(t,2),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function VL(e,t,n=!1){let s,r;const i=pt(e);return i?(s=e,r=sn):(s=e.get,r=e.set),new c4(s,r,i||!r,n)}function G_(e){var t;po&&yl&&(e=on(e),e4(yl,(t=e.dep)!=null?t:e.dep=n4(()=>e.dep=void 0,e instanceof c4?e:void 0)))}function zd(e,t=4,n,s){e=on(e);const r=e.dep;r&&t4(r,t)}function yn(e){return!!(e&&e.__v_isRef===!0)}function q(e){return d4(e,!1)}function hn(e){return d4(e,!0)}function d4(e,t){return yn(e)?e:new UL(e,t)}class UL{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:on(t),this._value=n?t:pf(t)}get value(){return G_(this),this._value}set value(t){const n=this.__v_isShallow||vm(t)||hf(t);t=n?t:on(t),wo(t,this._rawValue)&&(this._rawValue,this._rawValue=t,this._value=n?t:pf(t),zd(this,4))}}function d(e){return yn(e)?e.value:e}const HL={get:(e,t,n)=>d(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return yn(r)&&!yn(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function f4(e){return Hd(e)?e:new Proxy(e,HL)}class zL{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>G_(this),()=>zd(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function jL(e){return new zL(e)}function cs(e){const t=Ye(e)?new Array(e.length):{};for(const n in e)t[n]=h4(e,n);return t}class qL{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return wL(on(this._object),this._key)}}class WL{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function nn(e,t,n){return yn(e)?e:pt(e)?new WL(e):Pt(e)&&arguments.length>1?h4(e,t,n):q(e)}function h4(e,t,n){const s=e[t];return yn(s)?s:new qL(e,t,n)}/**
|
||
* @vue/runtime-core v3.4.31
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function go(e,t,n,s){try{return s?e(...s):e()}catch(r){wg(r,t,n)}}function Hr(e,t,n,s){if(pt(e)){const r=go(e,t,n,s);return r&&ff(r)&&r.catch(i=>{wg(i,t,n)}),r}if(Ye(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Hr(e[i],t,n,s));return r}}function wg(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const a=t.proxy,o=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const u=i.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,a,o)===!1)return}i=i.parent}const l=t.appContext.config.errorHandler;if(l){Lo(),go(l,null,10,[e,a,o]),Bo();return}}KL(e,n,r,s)}function KL(e,t,n,s=!0){console.error(e)}let mf=!1,ky=!1;const Is=[];let $i=0;const Du=[];let so=null,il=0;const p4=Promise.resolve();let Y_=null;function it(e){const t=Y_||p4;return e?t.then(this?e.bind(this):e):t}function GL(e){let t=$i+1,n=Is.length;for(;t<n;){const s=t+n>>>1,r=Is[s],i=gf(r);i<e||i===e&&r.pre?t=s+1:n=s}return t}function X_(e){(!Is.length||!Is.includes(e,mf&&e.allowRecurse?$i+1:$i))&&(e.id==null?Is.push(e):Is.splice(GL(e.id),0,e),m4())}function m4(){!mf&&!ky&&(ky=!0,Y_=p4.then(v4))}function YL(e){const t=Is.indexOf(e);t>$i&&Is.splice(t,1)}function XL(e){Ye(e)?Du.push(...e):(!so||!so.includes(e,e.allowRecurse?il+1:il))&&Du.push(e),m4()}function fT(e,t,n=mf?$i+1:0){for(;n<Is.length;n++){const s=Is[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;Is.splice(n,1),n--,s()}}}function g4(e){if(Du.length){const t=[...new Set(Du)].sort((n,s)=>gf(n)-gf(s));if(Du.length=0,so){so.push(...t);return}for(so=t,il=0;il<so.length;il++){const n=so[il];n.active!==!1&&n()}so=null,il=0}}const gf=e=>e.id==null?1/0:e.id,QL=(e,t)=>{const n=gf(e)-gf(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function v4(e){ky=!1,mf=!0,Is.sort(QL);const t=sn;try{for($i=0;$i<Is.length;$i++){const n=Is[$i];n&&n.active!==!1&&go(n,null,14)}}finally{$i=0,Is.length=0,g4(),mf=!1,Y_=null,(Is.length||Du.length)&&v4()}}function JL(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||$n;let r=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in s){const c=`${a==="modelValue"?"model":a}Modifiers`,{number:f,trim:h}=s[c]||$n;h&&(r=n.map(m=>ht(m)?m.trim():m)),f&&(r=n.map(mm))}let o,l=s[o=Ud(t)]||s[o=Ud(Kr(t))];!l&&i&&(l=s[o=Ud($o(t))]),l&&Hr(l,e,6,r);const u=s[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Hr(u,e,6,r)}}function y4(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let a={},o=!1;if(!pt(e)){const l=u=>{const c=y4(u,t,!0);c&&(o=!0,Zn(a,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!i&&!o?(Pt(e)&&s.set(e,null),null):(Ye(i)?i.forEach(l=>a[l]=null):Zn(a,i),Pt(e)&&s.set(e,a),a)}function Sg(e,t){return!e||!yg(t)?!1:(t=t.slice(2).replace(/Once$/,""),jt(e,t[0].toLowerCase()+t.slice(1))||jt(e,$o(t))||jt(e,t))}let gs=null,Tg=null;function ym(e){const t=gs;return gs=e,Tg=e&&e.type.__scopeId||null,t}function Ms(e){Tg=e}function $s(){Tg=null}function P(e,t=gs,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&kT(-1);const i=ym(t);let a;try{a=e(...r)}finally{ym(i),s._d&&kT(1)}return a};return s._n=!0,s._c=!0,s._d=!0,s}function l0(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:a,attrs:o,emit:l,render:u,renderCache:c,props:f,data:h,setupState:m,ctx:g,inheritAttrs:p}=e,v=ym(e);let y,_;try{if(n.shapeFlag&4){const T=r||s,S=T;y=Ni(u.call(S,T,c,f,m,h,g)),_=o}else{const T=t;y=Ni(T.length>1?T(f,{attrs:o,slots:a,emit:l}):T(f,null)),_=t.props?o:ZL(o)}}catch(T){Gd.length=0,wg(T,e,1),y=E(ps)}let b=y;if(_&&p!==!1){const T=Object.keys(_),{shapeFlag:S}=b;T.length&&S&7&&(i&&T.some($_)&&(_=e5(_,i)),b=Ea(b,_,!1,!0))}return n.dirs&&(b=Ea(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),y=b,ym(v),y}const ZL=e=>{let t;for(const n in e)(n==="class"||n==="style"||yg(n))&&((t||(t={}))[n]=e[n]);return t},e5=(e,t)=>{const n={};for(const s in e)(!$_(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function t5(e,t,n){const{props:s,children:r,component:i}=e,{props:a,children:o,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?hT(s,a,u):!!a;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(a[h]!==s[h]&&!Sg(u,h))return!0}}}else return(r||o)&&(!o||!o.$stable)?!0:s===a?!1:s?a?hT(s,a,u):!0:!!a;return!1}function hT(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(t[i]!==e[i]&&!Sg(n,i))return!0}return!1}function n5({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Q_="components",s5="directives";function Dt(e,t){return J_(Q_,e,!0,t)||e}const b4=Symbol.for("v-ndc");function Rt(e){return ht(e)?J_(Q_,e,!1)||e:e||b4}function Cg(e){return J_(s5,e)}function J_(e,t,n=!0,s=!1){const r=gs||Ts;if(r){const i=r.type;if(e===Q_){const o=W5(i,!1);if(o&&(o===t||o===Kr(t)||o===nh(Kr(t))))return i}const a=pT(r[e]||i[e],t)||pT(r.appContext[e],t);return!a&&s?i:a}}function pT(e,t){return e&&(e[t]||e[Kr(t)]||e[nh(Kr(t))])}const r5=e=>e.__isSuspense;function i5(e,t){t&&t.pendingBranch?Ye(e)?t.effects.push(...e):t.effects.push(e):XL(e)}function Eg(e,t,n=Ts,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Lo();const o=sh(n),l=Hr(t,n,e,a);return o(),Bo(),l});return s?r.unshift(i):r.push(i),i}}const Ra=e=>(t,n=Ts)=>{(!kg||e==="sp")&&Eg(e,(...s)=>t(...s),n)},Hl=Ra("bm"),gt=Ra("m"),_4=Ra("bu"),Na=Ra("u"),un=Ra("bum"),Fo=Ra("um"),a5=Ra("sp"),o5=Ra("rtg"),l5=Ra("rtc");function u5(e,t=Ts){Eg("ec",e,t)}function yt(e,t){if(gs===null)return e;const n=Ag(gs),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,a,o,l=$n]=t[r];i&&(pt(i)&&(i={mounted:i,updated:i}),i.deep&&uo(a),s.push({dir:i,instance:n,value:a,oldValue:void 0,arg:o,modifiers:l}))}return e}function Qo(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let a=0;a<r.length;a++){const o=r[a];i&&(o.oldValue=i[a].value);let l=o.dir[s];l&&(Lo(),Hr(l,n,8,[e.el,o,e,t]),Bo())}}function bt(e,t,n,s){let r;const i=n&&n[s];if(Ye(e)||ht(e)){r=new Array(e.length);for(let a=0,o=e.length;a<o;a++)r[a]=t(e[a],a,void 0,i&&i[a])}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,i&&i[a])}else if(Pt(e))if(e[Symbol.iterator])r=Array.from(e,(a,o)=>t(a,o,void 0,i&&i[o]));else{const a=Object.keys(e);r=new Array(a.length);for(let o=0,l=a.length;o<l;o++){const u=a[o];r[o]=t(e[u],u,o,i&&i[o])}}else r=[];return n&&(n[s]=r),r}function Gr(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(Ye(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.key?(...r)=>{const i=s.fn(...r);return i&&(i.key=s.key),i}:s.fn)}return e}/*! #__NO_SIDE_EFFECTS__ */function J(e,t){return pt(e)?(()=>Zn({name:e.name},t,{setup:e}))():e}const jd=e=>!!e.type.__asyncLoader;function fe(e,t,n={},s,r){if(gs.isCE||gs.parent&&jd(gs.parent)&&gs.parent.isCE)return t!=="default"&&(n.name=t),E("slot",n,s&&s());let i=e[t];i&&i._c&&(i._d=!1),x();const a=i&&w4(i(n)),o=de(Ke,{key:n.key||a&&a.key||`_${t}`},a||(s?s():[]),a&&e._===1?64:-2);return!r&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),i&&i._c&&(i._d=!0),o}function w4(e){return e.some(t=>Cn(t)?!(t.type===ps||t.type===Ke&&!w4(t.children)):!0)?e:null}function c5(e,t){const n={};for(const s in e)n[t&&/[A-Z]/.test(s)?`on:${s}`:Ud(s)]=e[s];return n}const Ay=e=>e?q4(e)?Ag(e):Ay(e.parent):null,qd=Zn(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Ay(e.parent),$root:e=>Ay(e.root),$emit:e=>e.emit,$options:e=>Z_(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,X_(e.update)}),$nextTick:e=>e.n||(e.n=it.bind(e.proxy)),$watch:e=>D5.bind(e)}),u0=(e,t)=>e!==$n&&!e.__isScriptSetup&&jt(e,t),d5={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:a,type:o,appContext:l}=e;let u;if(t[0]!=="$"){const m=a[t];if(m!==void 0)switch(m){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(u0(s,t))return a[t]=1,s[t];if(r!==$n&&jt(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&jt(u,t))return a[t]=3,i[t];if(n!==$n&&jt(n,t))return a[t]=4,n[t];Iy&&(a[t]=0)}}const c=qd[t];let f,h;if(c)return t==="$attrs"&&dr(e.attrs,"get",""),c(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(n!==$n&&jt(n,t))return a[t]=4,n[t];if(h=l.config.globalProperties,jt(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return u0(r,t)?(r[t]=n,!0):s!==$n&&jt(s,t)?(s[t]=n,!0):jt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:i}},a){let o;return!!n[a]||e!==$n&&jt(e,a)||u0(t,a)||(o=i[0])&&jt(o,a)||jt(s,a)||jt(qd,a)||jt(r.config.globalProperties,a)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:jt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function os(){return S4().slots}function zl(){return S4().attrs}function S4(){const e=Ot();return e.setupContext||(e.setupContext=K4(e))}function mT(e){return Ye(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Iy=!0;function f5(e){const t=Z_(e),n=e.proxy,s=e.ctx;Iy=!1,t.beforeCreate&&gT(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:o,provide:l,inject:u,created:c,beforeMount:f,mounted:h,beforeUpdate:m,updated:g,activated:p,deactivated:v,beforeDestroy:y,beforeUnmount:_,destroyed:b,unmounted:T,render:S,renderTracked:C,renderTriggered:D,errorCaptured:N,serverPrefetch:$,expose:L,inheritAttrs:z,components:U,directives:W,filters:K}=t;if(u&&h5(u,s,null),a)for(const Q in a){const Y=a[Q];pt(Y)&&(s[Q]=Y.bind(n))}if(r){const Q=r.call(n,n);Pt(Q)&&(e.data=Ct(Q))}if(Iy=!0,i)for(const Q in i){const Y=i[Q],F=pt(Y)?Y.bind(n,n):pt(Y.get)?Y.get.bind(n,n):sn,H=!pt(Y)&&pt(Y.set)?Y.set.bind(n):sn,Z=k({get:F,set:H});Object.defineProperty(s,Q,{enumerable:!0,configurable:!0,get:()=>Z.value,set:se=>Z.value=se})}if(o)for(const Q in o)T4(o[Q],s,n,Q);if(l){const Q=pt(l)?l.call(n):l;Reflect.ownKeys(Q).forEach(Y=>{Mt(Y,Q[Y])})}c&&gT(c,e,"c");function B(Q,Y){Ye(Y)?Y.forEach(F=>Q(F.bind(n))):Y&&Q(Y.bind(n))}if(B(Hl,f),B(gt,h),B(_4,m),B(Na,g),B(s1,p),B(M4,v),B(u5,N),B(l5,C),B(o5,D),B(un,_),B(Fo,T),B(a5,$),Ye(L))if(L.length){const Q=e.exposed||(e.exposed={});L.forEach(Y=>{Object.defineProperty(Q,Y,{get:()=>n[Y],set:F=>n[Y]=F})})}else e.exposed||(e.exposed={});S&&e.render===sn&&(e.render=S),z!=null&&(e.inheritAttrs=z),U&&(e.components=U),W&&(e.directives=W)}function h5(e,t,n=sn){Ye(e)&&(e=Dy(e));for(const s in e){const r=e[s];let i;Pt(r)?"default"in r?i=Xe(r.from||s,r.default,!0):i=Xe(r.from||s):i=Xe(r),yn(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[s]=i}}function gT(e,t,n){Hr(Ye(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function T4(e,t,n,s){const r=s.includes(".")?N4(n,s):()=>n[s];if(ht(e)){const i=t[e];pt(i)&&xe(r,i)}else if(pt(e))xe(r,e.bind(n));else if(Pt(e))if(Ye(e))e.forEach(i=>T4(i,t,n,s));else{const i=pt(e.handler)?e.handler.bind(n):t[e.handler];pt(i)&&xe(r,i,e)}}function Z_(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,o=i.get(t);let l;return o?l=o:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(u=>bm(l,u,a,!0)),bm(l,t,a)),Pt(t)&&i.set(t,l),l}function bm(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&bm(e,i,n,!0),r&&r.forEach(a=>bm(e,a,n,!0));for(const a in t)if(!(s&&a==="expose")){const o=p5[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const p5={data:vT,props:yT,emits:yT,methods:Dd,computed:Dd,beforeCreate:zs,created:zs,beforeMount:zs,mounted:zs,beforeUpdate:zs,updated:zs,beforeDestroy:zs,beforeUnmount:zs,destroyed:zs,unmounted:zs,activated:zs,deactivated:zs,errorCaptured:zs,serverPrefetch:zs,components:Dd,directives:Dd,watch:g5,provide:vT,inject:m5};function vT(e,t){return t?e?function(){return Zn(pt(e)?e.call(this,this):e,pt(t)?t.call(this,this):t)}:t:e}function m5(e,t){return Dd(Dy(e),Dy(t))}function Dy(e){if(Ye(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function zs(e,t){return e?[...new Set([].concat(e,t))]:t}function Dd(e,t){return e?Zn(Object.create(null),e,t):t}function yT(e,t){return e?Ye(e)&&Ye(t)?[...new Set([...e,...t])]:Zn(Object.create(null),mT(e),mT(t??{})):t}function g5(e,t){if(!e)return t;if(!t)return e;const n=Zn(Object.create(null),e);for(const s in t)n[s]=zs(e[s],t[s]);return n}function C4(){return{app:null,config:{isNativeTag:aL,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let v5=0;function y5(e,t){return function(s,r=null){pt(s)||(s=Zn({},s)),r!=null&&!Pt(r)&&(r=null);const i=C4(),a=new WeakSet;let o=!1;const l=i.app={_uid:v5++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:G5,get config(){return i.config},set config(u){},use(u,...c){return a.has(u)||(u&&pt(u.install)?(a.add(u),u.install(l,...c)):pt(u)&&(a.add(u),u(l,...c))),l},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),l},component(u,c){return c?(i.components[u]=c,l):i.components[u]},directive(u,c){return c?(i.directives[u]=c,l):i.directives[u]},mount(u,c,f){if(!o){const h=E(s,r);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),c&&t?t(h,u):e(h,u,f),o=!0,l._container=u,u.__vue_app__=l,Ag(h.component)}},unmount(){o&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return i.provides[u]=c,l},runWithContext(u){const c=Wd;Wd=l;try{return u()}finally{Wd=c}}};return l}}let Wd=null;function Mt(e,t){if(Ts){let n=Ts.provides;const s=Ts.parent&&Ts.parent.provides;s===n&&(n=Ts.provides=Object.create(s)),n[e]=t}}function Xe(e,t,n=!1){const s=Ts||gs;if(s||Wd){const r=s?s.parent==null?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:Wd._context.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&pt(t)?t.call(s&&s.proxy):t}}const E4={},x4=()=>Object.create(E4),k4=e=>Object.getPrototypeOf(e)===E4;function b5(e,t,n,s=!1){const r={},i=x4();e.propsDefaults=Object.create(null),A4(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=s?r:q_(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function _5(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,o=on(r),[l]=e.propsOptions;let u=!1;if((s||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(Sg(e.emitsOptions,h))continue;const m=t[h];if(l)if(jt(i,h))m!==i[h]&&(i[h]=m,u=!0);else{const g=Kr(h);r[g]=Oy(l,o,g,m,e,!1)}else m!==i[h]&&(i[h]=m,u=!0)}}}else{A4(e,t,r,i)&&(u=!0);let c;for(const f in o)(!t||!jt(t,f)&&((c=$o(f))===f||!jt(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(r[f]=Oy(l,o,f,void 0,e,!0)):delete r[f]);if(i!==o)for(const f in i)(!t||!jt(t,f))&&(delete i[f],u=!0)}u&&Sa(e.attrs,"set","")}function A4(e,t,n,s){const[r,i]=e.propsOptions;let a=!1,o;if(t)for(let l in t){if(Vd(l))continue;const u=t[l];let c;r&&jt(r,c=Kr(l))?!i||!i.includes(c)?n[c]=u:(o||(o={}))[c]=u:Sg(e.emitsOptions,l)||(!(l in s)||u!==s[l])&&(s[l]=u,a=!0)}if(i){const l=on(n),u=o||$n;for(let c=0;c<i.length;c++){const f=i[c];n[f]=Oy(r,l,f,u[f],e,!jt(u,f))}}return a}function Oy(e,t,n,s,r,i){const a=e[n];if(a!=null){const o=jt(a,"default");if(o&&s===void 0){const l=a.default;if(a.type!==Function&&!a.skipFactory&&pt(l)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const c=sh(r);s=u[n]=l.call(null,t),c()}}else s=l}a[0]&&(i&&!o?s=!1:a[1]&&(s===""||s===$o(n))&&(s=!0))}return s}function I4(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const i=e.props,a={},o=[];let l=!1;if(!pt(e)){const c=f=>{l=!0;const[h,m]=I4(f,t,!0);Zn(a,h),m&&o.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!l)return Pt(e)&&s.set(e,Au),Au;if(Ye(i))for(let c=0;c<i.length;c++){const f=Kr(i[c]);bT(f)&&(a[f]=$n)}else if(i)for(const c in i){const f=Kr(c);if(bT(f)){const h=i[c],m=a[f]=Ye(h)||pt(h)?{type:h}:Zn({},h);if(m){const g=ST(Boolean,m.type),p=ST(String,m.type);m[0]=g>-1,m[1]=p<0||g<p,(g>-1||jt(m,"default"))&&o.push(f)}}}const u=[a,o];return Pt(e)&&s.set(e,u),u}function bT(e){return e[0]!=="$"&&!Vd(e)}function _T(e){return e===null?"null":typeof e=="function"?e.name||"":typeof e=="object"&&e.constructor&&e.constructor.name||""}function wT(e,t){return _T(e)===_T(t)}function ST(e,t){return Ye(t)?t.findIndex(n=>wT(n,e)):pt(t)&&wT(t,e)?0:-1}const D4=e=>e[0]==="_"||e==="$stable",e1=e=>Ye(e)?e.map(Ni):[Ni(e)],w5=(e,t,n)=>{if(t._n)return t;const s=P((...r)=>e1(t(...r)),n);return s._c=!1,s},O4=(e,t,n)=>{const s=e._ctx;for(const r in e){if(D4(r))continue;const i=e[r];if(pt(i))t[r]=w5(r,i,s);else if(i!=null){const a=e1(i);t[r]=()=>a}}},P4=(e,t)=>{const n=e1(t);e.slots.default=()=>n},S5=(e,t)=>{const n=e.slots=x4();if(e.vnode.shapeFlag&32){const s=t._;s?(Zn(n,t),jA(n,"_",s,!0)):O4(t,n)}else t&&P4(e,t)},T5=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,a=$n;if(s.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:(Zn(r,t),!n&&o===1&&delete r._):(i=!t.$stable,O4(t,r)),a=t}else t&&(P4(e,t),a={default:1});if(i)for(const o in r)!D4(o)&&a[o]==null&&delete r[o]};function Py(e,t,n,s,r=!1){if(Ye(e)){e.forEach((h,m)=>Py(h,t&&(Ye(t)?t[m]:t),n,s,r));return}if(jd(s)&&!r)return;const i=s.shapeFlag&4?Ag(s.component):s.el,a=r?null:i,{i:o,r:l}=e,u=t&&t.r,c=o.refs===$n?o.refs={}:o.refs,f=o.setupState;if(u!=null&&u!==l&&(ht(u)?(c[u]=null,jt(f,u)&&(f[u]=null)):yn(u)&&(u.value=null)),pt(l))go(l,o,12,[a,c]);else{const h=ht(l),m=yn(l);if(h||m){const g=()=>{if(e.f){const p=h?jt(f,l)?f[l]:c[l]:l.value;r?Ye(p)&&L_(p,i):Ye(p)?p.includes(i)||p.push(i):h?(c[l]=[i],jt(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else h?(c[l]=a,jt(f,l)&&(f[l]=a)):m&&(l.value=a,e.k&&(c[e.k]=a))};a?(g.id=-1,tr(g,n)):g()}}}const tr=i5;function C5(e){return E5(e)}function E5(e,t){const n=qA();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:a,createText:o,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:h,setScopeId:m=sn,insertStaticContent:g}=e,p=(ee,re,Se,Le=null,_e=null,ke=null,Be=void 0,Ie=null,ze=!!re.dynamicChildren)=>{if(ee===re)return;ee&&!al(ee,re)&&(Le=te(ee),se(ee,_e,ke,!0),ee=null),re.patchFlag===-2&&(ze=!1,re.dynamicChildren=null);const{type:Ve,ref:Ze,shapeFlag:je}=re;switch(Ve){case Ec:v(ee,re,Se,Le);break;case ps:y(ee,re,Se,Le);break;case Fp:ee==null&&_(re,Se,Le,Be);break;case Ke:U(ee,re,Se,Le,_e,ke,Be,Ie,ze);break;default:je&1?S(ee,re,Se,Le,_e,ke,Be,Ie,ze):je&6?W(ee,re,Se,Le,_e,ke,Be,Ie,ze):(je&64||je&128)&&Ve.process(ee,re,Se,Le,_e,ke,Be,Ie,ze,Oe)}Ze!=null&&_e&&Py(Ze,ee&&ee.ref,ke,re||ee,!re)},v=(ee,re,Se,Le)=>{if(ee==null)s(re.el=o(re.children),Se,Le);else{const _e=re.el=ee.el;re.children!==ee.children&&u(_e,re.children)}},y=(ee,re,Se,Le)=>{ee==null?s(re.el=l(re.children||""),Se,Le):re.el=ee.el},_=(ee,re,Se,Le)=>{[ee.el,ee.anchor]=g(ee.children,re,Se,Le,ee.el,ee.anchor)},b=({el:ee,anchor:re},Se,Le)=>{let _e;for(;ee&&ee!==re;)_e=h(ee),s(ee,Se,Le),ee=_e;s(re,Se,Le)},T=({el:ee,anchor:re})=>{let Se;for(;ee&&ee!==re;)Se=h(ee),r(ee),ee=Se;r(re)},S=(ee,re,Se,Le,_e,ke,Be,Ie,ze)=>{re.type==="svg"?Be="svg":re.type==="math"&&(Be="mathml"),ee==null?C(re,Se,Le,_e,ke,Be,Ie,ze):$(ee,re,_e,ke,Be,Ie,ze)},C=(ee,re,Se,Le,_e,ke,Be,Ie)=>{let ze,Ve;const{props:Ze,shapeFlag:je,transition:Ae,dirs:nt}=ee;if(ze=ee.el=a(ee.type,ke,Ze&&Ze.is,Ze),je&8?c(ze,ee.children):je&16&&N(ee.children,ze,null,Le,_e,c0(ee,ke),Be,Ie),nt&&Qo(ee,null,Le,"created"),D(ze,ee,ee.scopeId,Be,Le),Ze){for(const xt in Ze)xt!=="value"&&!Vd(xt)&&i(ze,xt,null,Ze[xt],ke,ee.children,Le,_e,Ee);"value"in Ze&&i(ze,"value",null,Ze.value,ke),(Ve=Ze.onVnodeBeforeMount)&&Pi(Ve,Le,ee)}nt&&Qo(ee,null,Le,"beforeMount");const _t=x5(_e,Ae);_t&&Ae.beforeEnter(ze),s(ze,re,Se),((Ve=Ze&&Ze.onVnodeMounted)||_t||nt)&&tr(()=>{Ve&&Pi(Ve,Le,ee),_t&&Ae.enter(ze),nt&&Qo(ee,null,Le,"mounted")},_e)},D=(ee,re,Se,Le,_e)=>{if(Se&&m(ee,Se),Le)for(let ke=0;ke<Le.length;ke++)m(ee,Le[ke]);if(_e){let ke=_e.subTree;if(re===ke){const Be=_e.vnode;D(ee,Be,Be.scopeId,Be.slotScopeIds,_e.parent)}}},N=(ee,re,Se,Le,_e,ke,Be,Ie,ze=0)=>{for(let Ve=ze;Ve<ee.length;Ve++){const Ze=ee[Ve]=Ie?io(ee[Ve]):Ni(ee[Ve]);p(null,Ze,re,Se,Le,_e,ke,Be,Ie)}},$=(ee,re,Se,Le,_e,ke,Be)=>{const Ie=re.el=ee.el;let{patchFlag:ze,dynamicChildren:Ve,dirs:Ze}=re;ze|=ee.patchFlag&16;const je=ee.props||$n,Ae=re.props||$n;let nt;if(Se&&Jo(Se,!1),(nt=Ae.onVnodeBeforeUpdate)&&Pi(nt,Se,re,ee),Ze&&Qo(re,ee,Se,"beforeUpdate"),Se&&Jo(Se,!0),Ve?L(ee.dynamicChildren,Ve,Ie,Se,Le,c0(re,_e),ke):Be||Y(ee,re,Ie,null,Se,Le,c0(re,_e),ke,!1),ze>0){if(ze&16)z(Ie,re,je,Ae,Se,Le,_e);else if(ze&2&&je.class!==Ae.class&&i(Ie,"class",null,Ae.class,_e),ze&4&&i(Ie,"style",je.style,Ae.style,_e),ze&8){const _t=re.dynamicProps;for(let xt=0;xt<_t.length;xt++){const It=_t[xt],Kt=je[It],pn=Ae[It];(pn!==Kt||It==="value")&&i(Ie,It,Kt,pn,_e,ee.children,Se,Le,Ee)}}ze&1&&ee.children!==re.children&&c(Ie,re.children)}else!Be&&Ve==null&&z(Ie,re,je,Ae,Se,Le,_e);((nt=Ae.onVnodeUpdated)||Ze)&&tr(()=>{nt&&Pi(nt,Se,re,ee),Ze&&Qo(re,ee,Se,"updated")},Le)},L=(ee,re,Se,Le,_e,ke,Be)=>{for(let Ie=0;Ie<re.length;Ie++){const ze=ee[Ie],Ve=re[Ie],Ze=ze.el&&(ze.type===Ke||!al(ze,Ve)||ze.shapeFlag&70)?f(ze.el):Se;p(ze,Ve,Ze,null,Le,_e,ke,Be,!0)}},z=(ee,re,Se,Le,_e,ke,Be)=>{if(Se!==Le){if(Se!==$n)for(const Ie in Se)!Vd(Ie)&&!(Ie in Le)&&i(ee,Ie,Se[Ie],null,Be,re.children,_e,ke,Ee);for(const Ie in Le){if(Vd(Ie))continue;const ze=Le[Ie],Ve=Se[Ie];ze!==Ve&&Ie!=="value"&&i(ee,Ie,Ve,ze,Be,re.children,_e,ke,Ee)}"value"in Le&&i(ee,"value",Se.value,Le.value,Be)}},U=(ee,re,Se,Le,_e,ke,Be,Ie,ze)=>{const Ve=re.el=ee?ee.el:o(""),Ze=re.anchor=ee?ee.anchor:o("");let{patchFlag:je,dynamicChildren:Ae,slotScopeIds:nt}=re;nt&&(Ie=Ie?Ie.concat(nt):nt),ee==null?(s(Ve,Se,Le),s(Ze,Se,Le),N(re.children||[],Se,Ze,_e,ke,Be,Ie,ze)):je>0&&je&64&&Ae&&ee.dynamicChildren?(L(ee.dynamicChildren,Ae,Se,_e,ke,Be,Ie),(re.key!=null||_e&&re===_e.subTree)&&t1(ee,re,!0)):Y(ee,re,Se,Ze,_e,ke,Be,Ie,ze)},W=(ee,re,Se,Le,_e,ke,Be,Ie,ze)=>{re.slotScopeIds=Ie,ee==null?re.shapeFlag&512?_e.ctx.activate(re,Se,Le,Be,ze):K(re,Se,Le,_e,ke,Be,ze):X(ee,re,ze)},K=(ee,re,Se,Le,_e,ke,Be)=>{const Ie=ee.component=H5(ee,Le,_e);if(xg(ee)&&(Ie.ctx.renderer=Oe),z5(Ie),Ie.asyncDep){if(_e&&_e.registerDep(Ie,B,Be),!ee.el){const ze=Ie.subTree=E(ps);y(null,ze,re,Se)}}else B(Ie,ee,re,Se,_e,ke,Be)},X=(ee,re,Se)=>{const Le=re.component=ee.component;if(t5(ee,re,Se))if(Le.asyncDep&&!Le.asyncResolved){Q(Le,re,Se);return}else Le.next=re,YL(Le.update),Le.effect.dirty=!0,Le.update();else re.el=ee.el,Le.vnode=re},B=(ee,re,Se,Le,_e,ke,Be)=>{const Ie=()=>{if(ee.isMounted){let{next:Ze,bu:je,u:Ae,parent:nt,vnode:_t}=ee;{const be=R4(ee);if(be){Ze&&(Ze.el=_t.el,Q(ee,Ze,Be)),be.asyncDep.then(()=>{ee.isUnmounted||Ie()});return}}let xt=Ze,It;Jo(ee,!1),Ze?(Ze.el=_t.el,Q(ee,Ze,Be)):Ze=_t,je&&Bp(je),(It=Ze.props&&Ze.props.onVnodeBeforeUpdate)&&Pi(It,nt,Ze,_t),Jo(ee,!0);const Kt=l0(ee),pn=ee.subTree;ee.subTree=Kt,p(pn,Kt,f(pn.el),te(pn),ee,_e,ke),Ze.el=Kt.el,xt===null&&n5(ee,Kt.el),Ae&&tr(Ae,_e),(It=Ze.props&&Ze.props.onVnodeUpdated)&&tr(()=>Pi(It,nt,Ze,_t),_e)}else{let Ze;const{el:je,props:Ae}=re,{bm:nt,m:_t,parent:xt}=ee,It=jd(re);if(Jo(ee,!1),nt&&Bp(nt),!It&&(Ze=Ae&&Ae.onVnodeBeforeMount)&&Pi(Ze,xt,re),Jo(ee,!0),je&&ve){const Kt=()=>{ee.subTree=l0(ee),ve(je,ee.subTree,ee,_e,null)};It?re.type.__asyncLoader().then(()=>!ee.isUnmounted&&Kt()):Kt()}else{const Kt=ee.subTree=l0(ee);p(null,Kt,Se,Le,ee,_e,ke),re.el=Kt.el}if(_t&&tr(_t,_e),!It&&(Ze=Ae&&Ae.onVnodeMounted)){const Kt=re;tr(()=>Pi(Ze,xt,Kt),_e)}(re.shapeFlag&256||xt&&jd(xt.vnode)&&xt.vnode.shapeFlag&256)&&ee.a&&tr(ee.a,_e),ee.isMounted=!0,re=Se=Le=null}},ze=ee.effect=new V_(Ie,sn,()=>X_(Ve),ee.scope),Ve=ee.update=()=>{ze.dirty&&ze.run()};Ve.id=ee.uid,Jo(ee,!0),Ve()},Q=(ee,re,Se)=>{re.component=ee;const Le=ee.vnode.props;ee.vnode=re,ee.next=null,_5(ee,re.props,Le,Se),T5(ee,re.children,Se),Lo(),fT(ee),Bo()},Y=(ee,re,Se,Le,_e,ke,Be,Ie,ze=!1)=>{const Ve=ee&&ee.children,Ze=ee?ee.shapeFlag:0,je=re.children,{patchFlag:Ae,shapeFlag:nt}=re;if(Ae>0){if(Ae&128){H(Ve,je,Se,Le,_e,ke,Be,Ie,ze);return}else if(Ae&256){F(Ve,je,Se,Le,_e,ke,Be,Ie,ze);return}}nt&8?(Ze&16&&Ee(Ve,_e,ke),je!==Ve&&c(Se,je)):Ze&16?nt&16?H(Ve,je,Se,Le,_e,ke,Be,Ie,ze):Ee(Ve,_e,ke,!0):(Ze&8&&c(Se,""),nt&16&&N(je,Se,Le,_e,ke,Be,Ie,ze))},F=(ee,re,Se,Le,_e,ke,Be,Ie,ze)=>{ee=ee||Au,re=re||Au;const Ve=ee.length,Ze=re.length,je=Math.min(Ve,Ze);let Ae;for(Ae=0;Ae<je;Ae++){const nt=re[Ae]=ze?io(re[Ae]):Ni(re[Ae]);p(ee[Ae],nt,Se,null,_e,ke,Be,Ie,ze)}Ve>Ze?Ee(ee,_e,ke,!0,!1,je):N(re,Se,Le,_e,ke,Be,Ie,ze,je)},H=(ee,re,Se,Le,_e,ke,Be,Ie,ze)=>{let Ve=0;const Ze=re.length;let je=ee.length-1,Ae=Ze-1;for(;Ve<=je&&Ve<=Ae;){const nt=ee[Ve],_t=re[Ve]=ze?io(re[Ve]):Ni(re[Ve]);if(al(nt,_t))p(nt,_t,Se,null,_e,ke,Be,Ie,ze);else break;Ve++}for(;Ve<=je&&Ve<=Ae;){const nt=ee[je],_t=re[Ae]=ze?io(re[Ae]):Ni(re[Ae]);if(al(nt,_t))p(nt,_t,Se,null,_e,ke,Be,Ie,ze);else break;je--,Ae--}if(Ve>je){if(Ve<=Ae){const nt=Ae+1,_t=nt<Ze?re[nt].el:Le;for(;Ve<=Ae;)p(null,re[Ve]=ze?io(re[Ve]):Ni(re[Ve]),Se,_t,_e,ke,Be,Ie,ze),Ve++}}else if(Ve>Ae)for(;Ve<=je;)se(ee[Ve],_e,ke,!0),Ve++;else{const nt=Ve,_t=Ve,xt=new Map;for(Ve=_t;Ve<=Ae;Ve++){const Me=re[Ve]=ze?io(re[Ve]):Ni(re[Ve]);Me.key!=null&&xt.set(Me.key,Ve)}let It,Kt=0;const pn=Ae-_t+1;let be=!1,et=0;const le=new Array(pn);for(Ve=0;Ve<pn;Ve++)le[Ve]=0;for(Ve=nt;Ve<=je;Ve++){const Me=ee[Ve];if(Kt>=pn){se(Me,_e,ke,!0);continue}let vt;if(Me.key!=null)vt=xt.get(Me.key);else for(It=_t;It<=Ae;It++)if(le[It-_t]===0&&al(Me,re[It])){vt=It;break}vt===void 0?se(Me,_e,ke,!0):(le[vt-_t]=Ve+1,vt>=et?et=vt:be=!0,p(Me,re[vt],Se,null,_e,ke,Be,Ie,ze),Kt++)}const Ne=be?k5(le):Au;for(It=Ne.length-1,Ve=pn-1;Ve>=0;Ve--){const Me=_t+Ve,vt=re[Me],qt=Me+1<Ze?re[Me+1].el:Le;le[Ve]===0?p(null,vt,Se,qt,_e,ke,Be,Ie,ze):be&&(It<0||Ve!==Ne[It]?Z(vt,Se,qt,2):It--)}}},Z=(ee,re,Se,Le,_e=null)=>{const{el:ke,type:Be,transition:Ie,children:ze,shapeFlag:Ve}=ee;if(Ve&6){Z(ee.component.subTree,re,Se,Le);return}if(Ve&128){ee.suspense.move(re,Se,Le);return}if(Ve&64){Be.move(ee,re,Se,Oe);return}if(Be===Ke){s(ke,re,Se);for(let je=0;je<ze.length;je++)Z(ze[je],re,Se,Le);s(ee.anchor,re,Se);return}if(Be===Fp){b(ee,re,Se);return}if(Le!==2&&Ve&1&&Ie)if(Le===0)Ie.beforeEnter(ke),s(ke,re,Se),tr(()=>Ie.enter(ke),_e);else{const{leave:je,delayLeave:Ae,afterLeave:nt}=Ie,_t=()=>s(ke,re,Se),xt=()=>{je(ke,()=>{_t(),nt&&nt()})};Ae?Ae(ke,_t,xt):xt()}else s(ke,re,Se)},se=(ee,re,Se,Le=!1,_e=!1)=>{const{type:ke,props:Be,ref:Ie,children:ze,dynamicChildren:Ve,shapeFlag:Ze,patchFlag:je,dirs:Ae,memoIndex:nt}=ee;if(je===-2&&(_e=!1),Ie!=null&&Py(Ie,null,Se,ee,!0),nt!=null&&(re.renderCache[nt]=void 0),Ze&256){re.ctx.deactivate(ee);return}const _t=Ze&1&&Ae,xt=!jd(ee);let It;if(xt&&(It=Be&&Be.onVnodeBeforeUnmount)&&Pi(It,re,ee),Ze&6)De(ee.component,Se,Le);else{if(Ze&128){ee.suspense.unmount(Se,Le);return}_t&&Qo(ee,null,re,"beforeUnmount"),Ze&64?ee.type.remove(ee,re,Se,Oe,Le):Ve&&(ke!==Ke||je>0&&je&64)?Ee(Ve,re,Se,!1,!0):(ke===Ke&&je&384||!_e&&Ze&16)&&Ee(ze,re,Se),Le&&ne(ee)}(xt&&(It=Be&&Be.onVnodeUnmounted)||_t)&&tr(()=>{It&&Pi(It,re,ee),_t&&Qo(ee,null,re,"unmounted")},Se)},ne=ee=>{const{type:re,el:Se,anchor:Le,transition:_e}=ee;if(re===Ke){we(Se,Le);return}if(re===Fp){T(ee);return}const ke=()=>{r(Se),_e&&!_e.persisted&&_e.afterLeave&&_e.afterLeave()};if(ee.shapeFlag&1&&_e&&!_e.persisted){const{leave:Be,delayLeave:Ie}=_e,ze=()=>Be(Se,ke);Ie?Ie(ee.el,ke,ze):ze()}else ke()},we=(ee,re)=>{let Se;for(;ee!==re;)Se=h(ee),r(ee),ee=Se;r(re)},De=(ee,re,Se)=>{const{bum:Le,scope:_e,update:ke,subTree:Be,um:Ie,m:ze,a:Ve}=ee;TT(ze),TT(Ve),Le&&Bp(Le),_e.stop(),ke&&(ke.active=!1,se(Be,ee,re,Se)),Ie&&tr(Ie,re),tr(()=>{ee.isUnmounted=!0},re),re&&re.pendingBranch&&!re.isUnmounted&&ee.asyncDep&&!ee.asyncResolved&&ee.suspenseId===re.pendingId&&(re.deps--,re.deps===0&&re.resolve())},Ee=(ee,re,Se,Le=!1,_e=!1,ke=0)=>{for(let Be=ke;Be<ee.length;Be++)se(ee[Be],re,Se,Le,_e)},te=ee=>ee.shapeFlag&6?te(ee.component.subTree):ee.shapeFlag&128?ee.suspense.next():h(ee.anchor||ee.el);let ge=!1;const pe=(ee,re,Se)=>{ee==null?re._vnode&&se(re._vnode,null,null,!0):p(re._vnode||null,ee,re,null,null,null,Se),ge||(ge=!0,fT(),g4(),ge=!1),re._vnode=ee},Oe={p,um:se,m:Z,r:ne,mt:K,mc:N,pc:Y,pbc:L,n:te,o:e};let Pe,ve;return t&&([Pe,ve]=t(Oe)),{render:pe,hydrate:Pe,createApp:y5(pe,Pe)}}function c0({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Jo({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function x5(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function t1(e,t,n=!1){const s=e.children,r=t.children;if(Ye(s)&&Ye(r))for(let i=0;i<s.length;i++){const a=s[i];let o=r[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=r[i]=io(r[i]),o.el=a.el),!n&&o.patchFlag!==-2&&t1(a,o)),o.type===Ec&&(o.el=a.el)}}function k5(e){const t=e.slice(),n=[0];let s,r,i,a,o;const l=e.length;for(s=0;s<l;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(i=0,a=n.length-1;i<a;)o=i+a>>1,e[n[o]]<u?i=o+1:a=o;u<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,a=n[i-1];i-- >0;)n[i]=a,a=t[a];return n}function R4(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:R4(t)}function TT(e){if(e)for(let t=0;t<e.length;t++)e[t].active=!1}const A5=Symbol.for("v-scx"),I5=()=>Xe(A5);function vs(e,t){return n1(e,null,t)}const ap={};function xe(e,t,n){return n1(e,t,n)}function n1(e,t,{immediate:n,deep:s,flush:r,once:i,onTrack:a,onTrigger:o}=$n){if(t&&i){const C=t;t=(...D)=>{C(...D),S()}}const l=Ts,u=C=>s===!0?C:uo(C,s===!1?1:void 0);let c,f=!1,h=!1;if(yn(e)?(c=()=>e.value,f=vm(e)):Hd(e)?(c=()=>u(e),f=!0):Ye(e)?(h=!0,f=e.some(C=>Hd(C)||vm(C)),c=()=>e.map(C=>{if(yn(C))return C.value;if(Hd(C))return u(C);if(pt(C))return go(C,l,2)})):pt(e)?t?c=()=>go(e,l,2):c=()=>(m&&m(),Hr(e,l,3,[g])):c=sn,t&&s){const C=c;c=()=>uo(C())}let m,g=C=>{m=b.onStop=()=>{go(C,l,4),m=b.onStop=void 0}},p;if(kg)if(g=sn,t?n&&Hr(t,l,3,[c(),h?[]:void 0,g]):c(),r==="sync"){const C=I5();p=C.__watcherHandles||(C.__watcherHandles=[])}else return sn;let v=h?new Array(e.length).fill(ap):ap;const y=()=>{if(!(!b.active||!b.dirty))if(t){const C=b.run();(s||f||(h?C.some((D,N)=>wo(D,v[N])):wo(C,v)))&&(m&&m(),Hr(t,l,3,[C,v===ap?void 0:h&&v[0]===ap?[]:v,g]),v=C)}else b.run()};y.allowRecurse=!!t;let _;r==="sync"?_=y:r==="post"?_=()=>tr(y,l&&l.suspense):(y.pre=!0,l&&(y.id=l.uid),_=()=>X_(y));const b=new V_(c,sn,_),T=XA(),S=()=>{b.stop(),T&&L_(T.effects,b)};return t?n?y():v=b.run():r==="post"?tr(b.run.bind(b),l&&l.suspense):b.run(),p&&p.push(S),S}function D5(e,t,n){const s=this.proxy,r=ht(e)?e.includes(".")?N4(s,e):()=>s[e]:e.bind(s,s);let i;pt(t)?i=t:(i=t.handler,n=t);const a=sh(this),o=n1(r,i.bind(s),n);return a(),o}function N4(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function uo(e,t=1/0,n){if(t<=0||!Pt(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,yn(e))uo(e.value,t,n);else if(Ye(e))for(let s=0;s<e.length;s++)uo(e[s],t,n);else if(Cc(e)||Iu(e))e.forEach(s=>{uo(s,t,n)});else if(pm(e)){for(const s in e)uo(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&uo(e[s],t,n)}return e}const xg=e=>e.type.__isKeepAlive;function s1(e,t){$4(e,"a",t)}function M4(e,t){$4(e,"da",t)}function $4(e,t,n=Ts){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Eg(t,s,n),n){let r=n.parent;for(;r&&r.parent;)xg(r.parent.vnode)&&O5(s,t,n,r),r=r.parent}}function O5(e,t,n,s){const r=Eg(t,e,s,!0);Fo(()=>{L_(s[t],r)},n)}const ro=Symbol("_leaveCb"),op=Symbol("_enterCb");function L4(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return gt(()=>{e.isMounted=!0}),un(()=>{e.isUnmounting=!0}),e}const Mr=[Function,Array],B4={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mr,onEnter:Mr,onAfterEnter:Mr,onEnterCancelled:Mr,onBeforeLeave:Mr,onLeave:Mr,onAfterLeave:Mr,onLeaveCancelled:Mr,onBeforeAppear:Mr,onAppear:Mr,onAfterAppear:Mr,onAppearCancelled:Mr},F4=e=>{const t=e.subTree;return t.component?F4(t.component):t},P5={name:"BaseTransition",props:B4,setup(e,{slots:t}){const n=Ot(),s=L4();return()=>{const r=t.default&&r1(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const h of r)if(h.type!==ps){i=h;break}}const a=on(e),{mode:o}=a;if(s.isLeaving)return d0(i);const l=CT(i);if(!l)return d0(i);let u=vf(l,a,s,n,h=>u=h);qu(l,u);const c=n.subTree,f=c&&CT(c);if(f&&f.type!==ps&&!al(l,f)&&F4(n).type!==ps){const h=vf(f,a,s,n);if(qu(f,h),o==="out-in"&&l.type!==ps)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},d0(i);o==="in-out"&&l.type!==ps&&(h.delayLeave=(m,g,p)=>{const v=V4(s,f);v[String(f.key)]=f,m[ro]=()=>{g(),m[ro]=void 0,delete u.delayedLeave},u.delayedLeave=p})}return i}}},R5=P5;function V4(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function vf(e,t,n,s,r){const{appear:i,mode:a,persisted:o=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:m,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:v,onAppear:y,onAfterAppear:_,onAppearCancelled:b}=t,T=String(e.key),S=V4(n,e),C=($,L)=>{$&&Hr($,s,9,L)},D=($,L)=>{const z=L[1];C($,L),Ye($)?$.every(U=>U.length<=1)&&z():$.length<=1&&z()},N={mode:a,persisted:o,beforeEnter($){let L=l;if(!n.isMounted)if(i)L=v||l;else return;$[ro]&&$[ro](!0);const z=S[T];z&&al(e,z)&&z.el[ro]&&z.el[ro](),C(L,[$])},enter($){let L=u,z=c,U=f;if(!n.isMounted)if(i)L=y||u,z=_||c,U=b||f;else return;let W=!1;const K=$[op]=X=>{W||(W=!0,X?C(U,[$]):C(z,[$]),N.delayedLeave&&N.delayedLeave(),$[op]=void 0)};L?D(L,[$,K]):K()},leave($,L){const z=String(e.key);if($[op]&&$[op](!0),n.isUnmounting)return L();C(h,[$]);let U=!1;const W=$[ro]=K=>{U||(U=!0,L(),K?C(p,[$]):C(g,[$]),$[ro]=void 0,S[z]===e&&delete S[z])};S[z]=e,m?D(m,[$,W]):W()},clone($){const L=vf($,t,n,s,r);return r&&r(L),L}};return N}function d0(e){if(xg(e))return e=Ea(e),e.children=null,e}function CT(e){if(!xg(e))return e;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&pt(n.default))return n.default()}}function qu(e,t){e.shapeFlag&6&&e.component?qu(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function r1(e,t=!1,n){let s=[],r=0;for(let i=0;i<e.length;i++){let a=e[i];const o=n==null?a.key:String(n)+String(a.key!=null?a.key:i);a.type===Ke?(a.patchFlag&128&&r++,s=s.concat(r1(a.children,t,o))):(t||a.type!==ps)&&s.push(o!=null?Ea(a,{key:o}):a)}if(r>1)for(let i=0;i<s.length;i++)s[i].patchFlag=-2;return s}const N5=e=>e.__isTeleport,Kd=e=>e&&(e.disabled||e.disabled===""),ET=e=>typeof SVGElement<"u"&&e instanceof SVGElement,xT=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ry=(e,t)=>{const n=e&&e.to;return ht(n)?t?t(n):null:n},M5={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,i,a,o,l,u){const{mc:c,pc:f,pbc:h,o:{insert:m,querySelector:g,createText:p,createComment:v}}=u,y=Kd(t.props);let{shapeFlag:_,children:b,dynamicChildren:T}=t;if(e==null){const S=t.el=p(""),C=t.anchor=p("");m(S,n,s),m(C,n,s);const D=t.target=Ry(t.props,g),N=t.targetAnchor=p("");D&&(m(N,D),a==="svg"||ET(D)?a="svg":(a==="mathml"||xT(D))&&(a="mathml"));const $=(L,z)=>{_&16&&c(b,L,z,r,i,a,o,l)};y?$(n,C):D&&$(D,N)}else{t.el=e.el;const S=t.anchor=e.anchor,C=t.target=e.target,D=t.targetAnchor=e.targetAnchor,N=Kd(e.props),$=N?n:C,L=N?S:D;if(a==="svg"||ET(C)?a="svg":(a==="mathml"||xT(C))&&(a="mathml"),T?(h(e.dynamicChildren,T,$,r,i,a,o),t1(e,t,!0)):l||f(e,t,$,L,r,i,a,o,!1),y)N?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):lp(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const z=t.target=Ry(t.props,g);z&&lp(t,z,null,u,0)}else N&&lp(t,C,D,u,1)}U4(t)},remove(e,t,n,{um:s,o:{remove:r}},i){const{shapeFlag:a,children:o,anchor:l,targetAnchor:u,target:c,props:f}=e;if(c&&r(u),i&&r(l),a&16){const h=i||!Kd(f);for(let m=0;m<o.length;m++){const g=o[m];s(g,t,n,h,!!g.dynamicChildren)}}},move:lp,hydrate:$5};function lp(e,t,n,{o:{insert:s},m:r},i=2){i===0&&s(e.targetAnchor,t,n);const{el:a,anchor:o,shapeFlag:l,children:u,props:c}=e,f=i===2;if(f&&s(a,t,n),(!f||Kd(c))&&l&16)for(let h=0;h<u.length;h++)r(u[h],t,n,2);f&&s(o,t,n)}function $5(e,t,n,s,r,i,{o:{nextSibling:a,parentNode:o,querySelector:l}},u){const c=t.target=Ry(t.props,l);if(c){const f=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Kd(t.props))t.anchor=u(a(e),t,o(e),n,s,r,i),t.targetAnchor=f;else{t.anchor=a(e);let h=f;for(;h;)if(h=a(h),h&&h.nodeType===8&&h.data==="teleport anchor"){t.targetAnchor=h,c._lpa=t.targetAnchor&&a(t.targetAnchor);break}u(f,t,c,n,s,r,i)}U4(t)}return t.anchor&&a(t.anchor)}const L5=M5;function U4(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n&&n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}const Ke=Symbol.for("v-fgt"),Ec=Symbol.for("v-txt"),ps=Symbol.for("v-cmt"),Fp=Symbol.for("v-stc"),Gd=[];let fi=null;function x(e=!1){Gd.push(fi=e?null:[])}function B5(){Gd.pop(),fi=Gd[Gd.length-1]||null}let yf=1;function kT(e){yf+=e}function H4(e){return e.dynamicChildren=yf>0?fi||Au:null,B5(),yf>0&&fi&&fi.push(e),e}function j(e,t,n,s,r,i){return H4(O(e,t,n,s,r,i,!0))}function de(e,t,n,s,r){return H4(E(e,t,n,s,r,!0))}function Cn(e){return e?e.__v_isVNode===!0:!1}function al(e,t){return e.type===t.type&&e.key===t.key}const z4=({key:e})=>e??null,Vp=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ht(e)||yn(e)||pt(e)?{i:gs,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,s=0,r=null,i=e===Ke?0:1,a=!1,o=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&z4(t),ref:t&&Vp(t),scopeId:Tg,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:gs};return o?(i1(l,n),i&128&&e.normalize(l)):n&&(l.shapeFlag|=ht(n)?8:16),yf>0&&!a&&fi&&(l.patchFlag>0||i&6)&&l.patchFlag!==32&&fi.push(l),l}const E=F5;function F5(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===b4)&&(e=ps),Cn(e)){const o=Ea(e,t,!0);return n&&i1(o,n),yf>0&&!i&&fi&&(o.shapeFlag&6?fi[fi.indexOf(e)]=o:fi.push(o)),o.patchFlag=-2,o}if(K5(e)&&(e=e.__vccOpts),t){t=So(t);let{class:o,style:l}=t;o&&!ht(o)&&(t.class=M(o)),Pt(l)&&(u4(l)&&!Ye(l)&&(l=Zn({},l)),t.style=st(l))}const a=ht(e)?1:r5(e)?128:N5(e)?64:Pt(e)?4:pt(e)?2:0;return O(e,t,n,s,r,a,i,!0)}function So(e){return e?u4(e)||k4(e)?Zn({},e):e:null}function Ea(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:a,children:o,transition:l}=e,u=t?Nt(r||{},t):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&z4(u),ref:t&&t.ref?n&&i?Ye(i)?i.concat(Vp(t)):[i,Vp(t)]:Vp(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ke?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ea(e.ssContent),ssFallback:e.ssFallback&&Ea(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&qu(c,l.clone(c)),c}function Te(e=" ",t=0){return E(Ec,null,e,t)}function j4(e,t){const n=E(Fp,null,e);return n.staticCount=t,n}function ae(e="",t=!1){return t?(x(),de(ps,null,e)):E(ps,null,e)}function Ni(e){return e==null||typeof e=="boolean"?E(ps):Ye(e)?E(Ke,null,e.slice()):typeof e=="object"?io(e):E(Ec,null,String(e))}function io(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ea(e)}function i1(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Ye(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),i1(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!k4(t)?t._ctx=gs:r===3&&gs&&(gs.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else pt(t)?(t={default:t,_ctx:gs},n=32):(t=String(t),s&64?(n=16,t=[Te(t)]):n=8);e.children=t,e.shapeFlag|=n}function Nt(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=M([t.class,s.class]));else if(r==="style")t.style=st([t.style,s.style]);else if(yg(r)){const i=t[r],a=s[r];a&&i!==a&&!(Ye(i)&&i.includes(a))&&(t[r]=i?[].concat(i,a):a)}else r!==""&&(t[r]=s[r])}return t}function Pi(e,t,n,s=null){Hr(e,t,7,[n,s])}const V5=C4();let U5=0;function H5(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||V5,i={uid:U5++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new YA(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:I4(s,r),emitsOptions:y4(s,r),emit:null,emitted:null,propsDefaults:$n,inheritAttrs:s.inheritAttrs,ctx:$n,data:$n,props:$n,attrs:$n,slots:$n,refs:$n,setupState:$n,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=JL.bind(null,i),e.ce&&e.ce(i),i}let Ts=null;const Ot=()=>Ts||gs;let _m,Ny;{const e=qA(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(a=>a(i)):r[0](i)}};_m=t("__VUE_INSTANCE_SETTERS__",n=>Ts=n),Ny=t("__VUE_SSR_SETTERS__",n=>kg=n)}const sh=e=>{const t=Ts;return _m(e),e.scope.on(),()=>{e.scope.off(),_m(t)}},AT=()=>{Ts&&Ts.scope.off(),_m(null)};function q4(e){return e.vnode.shapeFlag&4}let kg=!1;function z5(e,t=!1){t&&Ny(t);const{props:n,children:s}=e.vnode,r=q4(e);b5(e,n,r,t),S5(e,s);const i=r?j5(e,t):void 0;return t&&Ny(!1),i}function j5(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,d5);const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?K4(e):null,i=sh(e);Lo();const a=go(s,e,0,[e.props,r]);if(Bo(),i(),ff(a)){if(a.then(AT,AT),t)return a.then(o=>{IT(e,o,t)}).catch(o=>{wg(o,e,0)});e.asyncDep=a}else IT(e,a,t)}else W4(e,t)}function IT(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Pt(t)&&(e.setupState=f4(t)),W4(e,n)}let DT;function W4(e,t,n){const s=e.type;if(!e.render){if(!t&&DT&&!s.render){const r=s.template||Z_(e).template;if(r){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:o,compilerOptions:l}=s,u=Zn(Zn({isCustomElement:i,delimiters:o},a),l);s.render=DT(r,u)}}e.render=s.render||sn}{const r=sh(e);Lo();try{f5(e)}finally{Bo(),r()}}}const q5={get(e,t){return dr(e,"get",""),e[t]}};function K4(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,q5),slots:e.slots,emit:e.emit,expose:t}}function Ag(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(f4(mo(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in qd)return qd[n](e)},has(t,n){return n in t||n in qd}})):e.proxy}function W5(e,t=!0){return pt(e)?e.displayName||e.name:e.name||t&&e.__name}function K5(e){return pt(e)&&"__vccOpts"in e}const k=(e,t)=>VL(e,t,kg);function ot(e,t,n){const s=arguments.length;return s===2?Pt(t)&&!Ye(t)?Cn(t)?E(e,null,[t]):E(e,t):E(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Cn(n)&&(n=[n]),E(e,t,n))}const G5="3.4.31",Y5=sn;/**
|
||
* @vue/runtime-dom v3.4.31
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const X5="http://www.w3.org/2000/svg",Q5="http://www.w3.org/1998/Math/MathML",ga=typeof document<"u"?document:null,OT=ga&&ga.createElement("template"),J5={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ga.createElementNS(X5,e):t==="mathml"?ga.createElementNS(Q5,e):n?ga.createElement(e,{is:n}):ga.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ga.createTextNode(e),createComment:e=>ga.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ga.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const a=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{OT.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const o=OT.content;if(s==="svg"||s==="mathml"){const l=o.firstChild;for(;l.firstChild;)o.appendChild(l.firstChild);o.removeChild(l)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Wa="transition",fd="animation",Wu=Symbol("_vtc"),Wn=(e,{slots:t})=>ot(R5,Y4(e),t);Wn.displayName="Transition";const G4={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Z5=Wn.props=Zn({},B4,G4),Zo=(e,t=[])=>{Ye(e)?e.forEach(n=>n(...t)):e&&e(...t)},PT=e=>e?Ye(e)?e.some(t=>t.length>1):e.length>1:!1;function Y4(e){const t={};for(const U in e)U in G4||(t[U]=e[U]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:c=o,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,g=eB(r),p=g&&g[0],v=g&&g[1],{onBeforeEnter:y,onEnter:_,onEnterCancelled:b,onLeave:T,onLeaveCancelled:S,onBeforeAppear:C=y,onAppear:D=_,onAppearCancelled:N=b}=t,$=(U,W,K)=>{Za(U,W?c:o),Za(U,W?u:a),K&&K()},L=(U,W)=>{U._isLeaving=!1,Za(U,f),Za(U,m),Za(U,h),W&&W()},z=U=>(W,K)=>{const X=U?D:_,B=()=>$(W,U,K);Zo(X,[W,B]),RT(()=>{Za(W,U?l:i),ma(W,U?c:o),PT(X)||NT(W,s,p,B)})};return Zn(t,{onBeforeEnter(U){Zo(y,[U]),ma(U,i),ma(U,a)},onBeforeAppear(U){Zo(C,[U]),ma(U,l),ma(U,u)},onEnter:z(!1),onAppear:z(!0),onLeave(U,W){U._isLeaving=!0;const K=()=>L(U,W);ma(U,f),ma(U,h),Q4(),RT(()=>{U._isLeaving&&(Za(U,f),ma(U,m),PT(T)||NT(U,s,v,K))}),Zo(T,[U,K])},onEnterCancelled(U){$(U,!1),Zo(b,[U])},onAppearCancelled(U){$(U,!0),Zo(N,[U])},onLeaveCancelled(U){L(U),Zo(S,[U])}})}function eB(e){if(e==null)return null;if(Pt(e))return[f0(e.enter),f0(e.leave)];{const t=f0(e);return[t,t]}}function f0(e){return cL(e)}function ma(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Wu]||(e[Wu]=new Set)).add(t)}function Za(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Wu];n&&(n.delete(t),n.size||(e[Wu]=void 0))}function RT(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let tB=0;function NT(e,t,n,s){const r=e._endId=++tB,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:a,timeout:o,propCount:l}=X4(e,t);if(!a)return s();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,h),i()},h=m=>{m.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},o+1),e.addEventListener(u,h)}function X4(e,t){const n=window.getComputedStyle(e),s=g=>(n[g]||"").split(", "),r=s(`${Wa}Delay`),i=s(`${Wa}Duration`),a=MT(r,i),o=s(`${fd}Delay`),l=s(`${fd}Duration`),u=MT(o,l);let c=null,f=0,h=0;t===Wa?a>0&&(c=Wa,f=a,h=i.length):t===fd?u>0&&(c=fd,f=u,h=l.length):(f=Math.max(a,u),c=f>0?a>u?Wa:fd:null,h=c?c===Wa?i.length:l.length:0);const m=c===Wa&&/\b(transform|all)(,|$)/.test(s(`${Wa}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:m}}function MT(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>$T(n)+$T(e[s])))}function $T(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Q4(){return document.body.offsetHeight}function nB(e,t,n){const s=e[Wu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const wm=Symbol("_vod"),J4=Symbol("_vsh"),Bt={beforeMount(e,{value:t},{transition:n}){e[wm]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):hd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),hd(e,!0),s.enter(e)):s.leave(e,()=>{hd(e,!1)}):hd(e,t))},beforeUnmount(e,{value:t}){hd(e,t)}};function hd(e,t){e.style.display=t?e[wm]:"none",e[J4]=!t}const sB=Symbol(""),rB=/(^|;)\s*display\s*:/;function iB(e,t,n){const s=e.style,r=ht(n);let i=!1;if(n&&!r){if(t)if(ht(t))for(const a of t.split(";")){const o=a.slice(0,a.indexOf(":")).trim();n[o]==null&&Up(s,o,"")}else for(const a in t)n[a]==null&&Up(s,a,"");for(const a in n)a==="display"&&(i=!0),Up(s,a,n[a])}else if(r){if(t!==n){const a=s[sB];a&&(n+=";"+a),s.cssText=n,i=rB.test(n)}}else t&&e.removeAttribute("style");wm in e&&(e[wm]=i?s.display:"",e[J4]&&(s.display="none"))}const LT=/\s*!important$/;function Up(e,t,n){if(Ye(n))n.forEach(s=>Up(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=aB(e,t);LT.test(n)?e.setProperty($o(s),n.replace(LT,""),"important"):e[s]=n}}const BT=["Webkit","Moz","ms"],h0={};function aB(e,t){const n=h0[t];if(n)return n;let s=Kr(t);if(s!=="filter"&&s in e)return h0[t]=s;s=nh(s);for(let r=0;r<BT.length;r++){const i=BT[r]+s;if(i in e)return h0[t]=i}return t}const FT="http://www.w3.org/1999/xlink";function VT(e,t,n,s,r,i=gL(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(FT,t.slice(6,t.length)):e.setAttributeNS(FT,t,n):n==null||i&&!WA(n)?e.removeAttribute(t):e.setAttribute(t,i?"":Wi(n)?String(n):n)}function oB(e,t,n,s,r,i,a){if(t==="innerHTML"||t==="textContent"){s&&a(s,r,i),e[t]=n??"";return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const u=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?"":String(n);(u!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let l=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=WA(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function ya(e,t,n,s){e.addEventListener(t,n,s)}function lB(e,t,n,s){e.removeEventListener(t,n,s)}const UT=Symbol("_vei");function uB(e,t,n,s,r=null){const i=e[UT]||(e[UT]={}),a=i[t];if(s&&a)a.value=s;else{const[o,l]=cB(t);if(s){const u=i[t]=hB(s,r);ya(e,o,u,l)}else a&&(lB(e,o,a,l),i[t]=void 0)}}const HT=/(?:Once|Passive|Capture)$/;function cB(e){let t;if(HT.test(e)){t={};let s;for(;s=e.match(HT);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$o(e.slice(2)),t]}let p0=0;const dB=Promise.resolve(),fB=()=>p0||(dB.then(()=>p0=0),p0=Date.now());function hB(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Hr(pB(s,n.value),t,5,[s])};return n.value=e,n.attached=fB(),n}function pB(e,t){if(Ye(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const zT=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,mB=(e,t,n,s,r,i,a,o,l)=>{const u=r==="svg";t==="class"?nB(e,s,u):t==="style"?iB(e,n,s):yg(t)?$_(t)||uB(e,t,n,s,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gB(e,t,s,u))?(oB(e,t,s,i,a,o,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&VT(e,t,s,u,a,t!=="value")):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),VT(e,t,s,u))};function gB(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&zT(t)&&pt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return zT(t)&&ht(n)?!1:t in e}const Z4=new WeakMap,e3=new WeakMap,Sm=Symbol("_moveCb"),jT=Symbol("_enterCb"),t3={name:"TransitionGroup",props:Zn({},Z5,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Ot(),s=L4();let r,i;return Na(()=>{if(!r.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!wB(r[0].el,n.vnode.el,a))return;r.forEach(yB),r.forEach(bB);const o=r.filter(_B);Q4(),o.forEach(l=>{const u=l.el,c=u.style;ma(u,a),c.transform=c.webkitTransform=c.transitionDuration="";const f=u[Sm]=h=>{h&&h.target!==u||(!h||/transform$/.test(h.propertyName))&&(u.removeEventListener("transitionend",f),u[Sm]=null,Za(u,a))};u.addEventListener("transitionend",f)})}),()=>{const a=on(e),o=Y4(a);let l=a.tag||Ke;if(r=[],i)for(let u=0;u<i.length;u++){const c=i[u];c.el&&c.el instanceof Element&&(r.push(c),qu(c,vf(c,o,s,n)),Z4.set(c,c.el.getBoundingClientRect()))}i=t.default?r1(t.default()):[];for(let u=0;u<i.length;u++){const c=i[u];c.key!=null&&qu(c,vf(c,o,s,n))}return E(l,null,i)}}},vB=e=>delete e.mode;t3.props;const n3=t3;function yB(e){const t=e.el;t[Sm]&&t[Sm](),t[jT]&&t[jT]()}function bB(e){e3.set(e,e.el.getBoundingClientRect())}function _B(e){const t=Z4.get(e),n=e3.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${s}px,${r}px)`,i.transitionDuration="0s",e}}function wB(e,t,n){const s=e.cloneNode(),r=e[Wu];r&&r.forEach(o=>{o.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(o=>o&&s.classList.add(o)),s.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(s);const{hasTransform:a}=X4(s);return i.removeChild(s),a}const To=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ye(t)?n=>Bp(t,n):t};function SB(e){e.target.composing=!0}function qT(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zr=Symbol("_assign"),xa={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[zr]=To(r);const i=s||r.props&&r.props.type==="number";ya(e,t?"change":"input",a=>{if(a.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=mm(o)),e[zr](o)}),n&&ya(e,"change",()=>{e.value=e.value.trim()}),t||(ya(e,"compositionstart",SB),ya(e,"compositionend",qT),ya(e,"change",qT))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},a){if(e[zr]=To(a),e.composing)return;const o=(i||e.type==="number")&&!/^0\d/.test(e.value)?mm(e.value):e.value,l=t??"";o!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===l)||(e.value=l))}},bf={deep:!0,created(e,t,n){e[zr]=To(n),ya(e,"change",()=>{const s=e._modelValue,r=Ku(e),i=e.checked,a=e[zr];if(Ye(s)){const o=F_(s,r),l=o!==-1;if(i&&!l)a(s.concat(r));else if(!i&&l){const u=[...s];u.splice(o,1),a(u)}}else if(Cc(s)){const o=new Set(s);i?o.add(r):o.delete(r),a(o)}else a(s3(e,i))})},mounted:WT,beforeUpdate(e,t,n){e[zr]=To(n),WT(e,t,n)}};function WT(e,{value:t,oldValue:n},s){e._modelValue=t,Ye(t)?e.checked=F_(t,s.props.value)>-1:Cc(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Il(t,s3(e,!0)))}const a1={created(e,{value:t},n){e.checked=Il(t,n.props.value),e[zr]=To(n),ya(e,"change",()=>{e[zr](Ku(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[zr]=To(s),t!==n&&(e.checked=Il(t,s.props.value))}},TB={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=Cc(t);ya(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>n?mm(Ku(a)):Ku(a));e[zr](e.multiple?r?new Set(i):i:i[0]),e._assigning=!0,it(()=>{e._assigning=!1})}),e[zr]=To(s)},mounted(e,{value:t,modifiers:{number:n}}){KT(e,t)},beforeUpdate(e,t,n){e[zr]=To(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||KT(e,t)}};function KT(e,t,n){const s=e.multiple,r=Ye(t);if(!(s&&!r&&!Cc(t))){for(let i=0,a=e.options.length;i<a;i++){const o=e.options[i],l=Ku(o);if(s)if(r){const u=typeof l;u==="string"||u==="number"?o.selected=t.some(c=>String(c)===String(l)):o.selected=F_(t,l)>-1}else o.selected=t.has(l);else if(Il(Ku(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ku(e){return"_value"in e?e._value:e.value}function s3(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const CB={created(e,t,n){up(e,t,n,null,"created")},mounted(e,t,n){up(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){up(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){up(e,t,n,s,"updated")}};function EB(e,t){switch(e){case"SELECT":return TB;case"TEXTAREA":return xa;default:switch(t){case"checkbox":return bf;case"radio":return a1;default:return xa}}}function up(e,t,n,s,r){const a=EB(e.tagName,n.props&&n.props.type)[r];a&&a(e,t,n,s)}const xB=["ctrl","shift","alt","meta"],kB={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>xB.some(n=>e[`${n}Key`]&&!t.includes(n))},ft=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...i)=>{for(let a=0;a<t.length;a++){const o=kB[t[a]];if(o&&o(r,t))return}return e(r,...i)})},AB={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},rn=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const i=$o(r.key);if(t.some(a=>a===i||AB[a]===i))return e(r)})},IB=Zn({patchProp:mB},J5);let GT;function r3(){return GT||(GT=C5(IB))}const Co=(...e)=>{r3().render(...e)},Ig=(...e)=>{const t=r3().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=OB(s);if(!r)return;const i=t._component;!pt(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,DB(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t};function DB(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function OB(e){return ht(e)?document.querySelector(e):e}const PB='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',RB=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,YT=e=>Array.from(e.querySelectorAll(PB)).filter(t=>NB(t)&&RB(t)),NB=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},Hp=function(e,t,...n){let s;t.includes("mouse")||t.includes("click")?s="MouseEvents":t.includes("key")?s="KeyboardEvent":s="HTMLEvents";const r=document.createEvent(s);return r.initEvent(t,...n),e.dispatchEvent(r),e},i3=e=>!e.getAttribute("aria-owns"),a3=(e,t,n)=>{const{parentNode:s}=e;if(!s)return null;const r=s.querySelectorAll(n),i=Array.prototype.indexOf.call(r,e);return r[i+t]||null},zp=e=>{e&&(e.focus(),!i3(e)&&e.click())},On=(e,t,{checkForDefaultPrevented:n=!0}={})=>r=>{const i=e==null?void 0:e(r);if(n===!1||!i)return t==null?void 0:t(r)},XT=e=>t=>t.pointerType==="mouse"?e(t):void 0;var MB=Object.defineProperty,$B=Object.defineProperties,LB=Object.getOwnPropertyDescriptors,QT=Object.getOwnPropertySymbols,BB=Object.prototype.hasOwnProperty,FB=Object.prototype.propertyIsEnumerable,JT=(e,t,n)=>t in e?MB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,VB=(e,t)=>{for(var n in t||(t={}))BB.call(t,n)&&JT(e,n,t[n]);if(QT)for(var n of QT(t))FB.call(t,n)&&JT(e,n,t[n]);return e},UB=(e,t)=>$B(e,LB(t));function ZT(e,t){var n;const s=hn();return vs(()=>{s.value=e()},UB(VB({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),Ul(s)}var eC;const Ht=typeof window<"u",HB=e=>typeof e<"u",My=e=>typeof e=="function",zB=e=>typeof e=="string",Gu=()=>{},$y=Ht&&((eC=window==null?void 0:window.navigator)==null?void 0:eC.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Eo(e){return typeof e=="function"?e():d(e)}function o3(e,t){function n(...s){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,s),{fn:t,thisArg:this,args:s})).then(r).catch(i)})}return n}function jB(e,t={}){let n,s,r=Gu;const i=o=>{clearTimeout(o),r(),r=Gu};return o=>{const l=Eo(e),u=Eo(t.maxWait);return n&&i(n),l<=0||u!==void 0&&u<=0?(s&&(i(s),s=null),Promise.resolve(o())):new Promise((c,f)=>{r=t.rejectOnCancel?f:c,u&&!s&&(s=setTimeout(()=>{n&&i(n),s=null,c(o())},u)),n=setTimeout(()=>{s&&i(s),s=null,c(o())},l)})}}function qB(e,t=!0,n=!0,s=!1){let r=0,i,a=!0,o=Gu,l;const u=()=>{i&&(clearTimeout(i),i=void 0,o(),o=Gu)};return f=>{const h=Eo(e),m=Date.now()-r,g=()=>l=f();return u(),h<=0?(r=Date.now(),g()):(m>h&&(n||!a)?(r=Date.now(),g()):t&&(l=new Promise((p,v)=>{o=s?v:p,i=setTimeout(()=>{r=Date.now(),a=!0,p(g()),u()},Math.max(0,h-m))})),!n&&!i&&(i=setTimeout(()=>a=!0,h)),a=!1,l)}}function WB(e){return e}function KB(e,t){let n,s,r;const i=q(!0),a=()=>{i.value=!0,r()};xe(e,a,{flush:"sync"});const o=My(t)?t:t.get,l=My(t)?void 0:t.set,u=jL((c,f)=>(s=c,r=f,{get(){return i.value&&(n=o(),i.value=!1),s(),n},set(h){l==null||l(h)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function rh(e){return XA()?(QA(e),!0):!1}function GB(e,t=200,n={}){return o3(jB(t,n),e)}function YB(e,t=200,n={}){const s=q(e.value),r=GB(()=>{s.value=e.value},t,n);return xe(e,()=>r()),s}function l3(e,t=200,n=!1,s=!0,r=!1){return o3(qB(t,n,s,r),e)}function o1(e,t=!0){Ot()?gt(e):t?e():it(e)}function Dl(e,t,n={}){const{immediate:s=!0}=n,r=q(!1);let i=null;function a(){i&&(clearTimeout(i),i=null)}function o(){r.value=!1,a()}function l(...u){a(),r.value=!0,i=setTimeout(()=>{r.value=!1,i=null,e(...u)},Eo(t))}return s&&(r.value=!0,Ht&&l()),rh(o),{isPending:Ul(r),start:l,stop:o}}function ar(e){var t;const n=Eo(e);return(t=n==null?void 0:n.$el)!=null?t:n}const Vo=Ht?window:void 0,XB=Ht?window.document:void 0;function an(...e){let t,n,s,r;if(zB(e[0])||Array.isArray(e[0])?([n,s,r]=e,t=Vo):[t,n,s,r]=e,!t)return Gu;Array.isArray(n)||(n=[n]),Array.isArray(s)||(s=[s]);const i=[],a=()=>{i.forEach(c=>c()),i.length=0},o=(c,f,h,m)=>(c.addEventListener(f,h,m),()=>c.removeEventListener(f,h,m)),l=xe(()=>[ar(t),Eo(r)],([c,f])=>{a(),c&&i.push(...n.flatMap(h=>s.map(m=>o(c,h,m,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return rh(u),u}let tC=!1;function l1(e,t,n={}){const{window:s=Vo,ignore:r=[],capture:i=!0,detectIframe:a=!1}=n;if(!s)return;$y&&!tC&&(tC=!0,Array.from(s.document.body.children).forEach(h=>h.addEventListener("click",Gu)));let o=!0;const l=h=>r.some(m=>{if(typeof m=="string")return Array.from(s.document.querySelectorAll(m)).some(g=>g===h.target||h.composedPath().includes(g));{const g=ar(m);return g&&(h.target===g||h.composedPath().includes(g))}}),c=[an(s,"click",h=>{const m=ar(e);if(!(!m||m===h.target||h.composedPath().includes(m))){if(h.detail===0&&(o=!l(h)),!o){o=!0;return}t(h)}},{passive:!0,capture:i}),an(s,"pointerdown",h=>{const m=ar(e);m&&(o=!h.composedPath().includes(m)&&!l(h))},{passive:!0}),a&&an(s,"blur",h=>{var m;const g=ar(e);((m=s.document.activeElement)==null?void 0:m.tagName)==="IFRAME"&&!(g!=null&&g.contains(s.document.activeElement))&&t(h)})].filter(Boolean);return()=>c.forEach(h=>h())}function QB(e={}){var t;const{window:n=Vo}=e,s=(t=e.document)!=null?t:n==null?void 0:n.document,r=KB(()=>null,()=>s==null?void 0:s.activeElement);return n&&(an(n,"blur",i=>{i.relatedTarget===null&&r.trigger()},!0),an(n,"focus",r.trigger,!0)),r}function u3(e,t=!1){const n=q(),s=()=>n.value=!!e();return s(),o1(s,t),n}function JB(e){return JSON.parse(JSON.stringify(e))}const nC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sC="__vueuse_ssr_handlers__";nC[sC]=nC[sC]||{};function ZB(e,t,{window:n=Vo,initialValue:s=""}={}){const r=q(s),i=k(()=>{var a;return ar(t)||((a=n==null?void 0:n.document)==null?void 0:a.documentElement)});return xe([i,()=>Eo(e)],([a,o])=>{var l;if(a&&n){const u=(l=n.getComputedStyle(a).getPropertyValue(o))==null?void 0:l.trim();r.value=u||s}},{immediate:!0}),xe(r,a=>{var o;(o=i.value)!=null&&o.style&&i.value.style.setProperty(Eo(e),a)}),r}function eF({document:e=XB}={}){if(!e)return q("visible");const t=q(e.visibilityState);return an(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var rC=Object.getOwnPropertySymbols,tF=Object.prototype.hasOwnProperty,nF=Object.prototype.propertyIsEnumerable,sF=(e,t)=>{var n={};for(var s in e)tF.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&rC)for(var s of rC(e))t.indexOf(s)<0&&nF.call(e,s)&&(n[s]=e[s]);return n};function Sn(e,t,n={}){const s=n,{window:r=Vo}=s,i=sF(s,["window"]);let a;const o=u3(()=>r&&"ResizeObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},u=xe(()=>ar(e),f=>{l(),o.value&&r&&f&&(a=new ResizeObserver(t),a.observe(f,i))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return rh(c),{isSupported:o,stop:c}}function iC(e,t={}){const{reset:n=!0,windowResize:s=!0,windowScroll:r=!0,immediate:i=!0}=t,a=q(0),o=q(0),l=q(0),u=q(0),c=q(0),f=q(0),h=q(0),m=q(0);function g(){const p=ar(e);if(!p){n&&(a.value=0,o.value=0,l.value=0,u.value=0,c.value=0,f.value=0,h.value=0,m.value=0);return}const v=p.getBoundingClientRect();a.value=v.height,o.value=v.bottom,l.value=v.left,u.value=v.right,c.value=v.top,f.value=v.width,h.value=v.x,m.value=v.y}return Sn(e,g),xe(()=>ar(e),p=>!p&&g()),r&&an("scroll",g,{capture:!0,passive:!0}),s&&an("resize",g,{passive:!0}),o1(()=>{i&&g()}),{height:a,bottom:o,left:l,right:u,top:c,width:f,x:h,y:m,update:g}}var aC=Object.getOwnPropertySymbols,rF=Object.prototype.hasOwnProperty,iF=Object.prototype.propertyIsEnumerable,aF=(e,t)=>{var n={};for(var s in e)rF.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&aC)for(var s of aC(e))t.indexOf(s)<0&&iF.call(e,s)&&(n[s]=e[s]);return n};function c3(e,t,n={}){const s=n,{window:r=Vo}=s,i=aF(s,["window"]);let a;const o=u3(()=>r&&"MutationObserver"in r),l=()=>{a&&(a.disconnect(),a=void 0)},u=xe(()=>ar(e),f=>{l(),o.value&&r&&f&&(a=new MutationObserver(t),a.observe(f,i))},{immediate:!0}),c=()=>{l(),u()};return rh(c),{isSupported:o,stop:c}}var oC;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(oC||(oC={}));var oF=Object.defineProperty,lC=Object.getOwnPropertySymbols,lF=Object.prototype.hasOwnProperty,uF=Object.prototype.propertyIsEnumerable,uC=(e,t,n)=>t in e?oF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,cF=(e,t)=>{for(var n in t||(t={}))lF.call(t,n)&&uC(e,n,t[n]);if(lC)for(var n of lC(t))uF.call(t,n)&&uC(e,n,t[n]);return e};const dF={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};cF({linear:WB},dF);function d3(e,t,n,s={}){var r,i,a;const{clone:o=!1,passive:l=!1,eventName:u,deep:c=!1,defaultValue:f}=s,h=Ot(),m=n||(h==null?void 0:h.emit)||((r=h==null?void 0:h.$emit)==null?void 0:r.bind(h))||((a=(i=h==null?void 0:h.proxy)==null?void 0:i.$emit)==null?void 0:a.bind(h==null?void 0:h.proxy));let g=u;t||(t="modelValue"),g=u||g||`update:${t.toString()}`;const p=y=>o?My(o)?o(y):JB(y):y,v=()=>HB(e[t])?p(e[t]):f;if(l){const y=v(),_=q(y);return xe(()=>e[t],b=>_.value=p(b)),xe(_,b=>{(b!==e[t]||c)&&m(g,b)},{deep:c}),_}else return k({get(){return v()},set(y){m(g,y)}})}function fF({window:e=Vo}={}){if(!e)return q(!1);const t=q(e.document.hasFocus());return an(e,"blur",()=>{t.value=!1}),an(e,"focus",()=>{t.value=!0}),t}function hF(e={}){const{window:t=Vo,initialWidth:n=1/0,initialHeight:s=1/0,listenOrientation:r=!0,includeScrollbar:i=!0}=e,a=q(n),o=q(s),l=()=>{t&&(i?(a.value=t.innerWidth,o.value=t.innerHeight):(a.value=t.document.documentElement.clientWidth,o.value=t.document.documentElement.clientHeight))};return l(),o1(l),an("resize",l,{passive:!0}),r&&an("orientationchange",l,{passive:!0}),{width:a,height:o}}const u1=()=>Ht&&/firefox/i.test(window.navigator.userAgent),pF=(e,t)=>{if(!Ht||!e||!t)return!1;const n=e.getBoundingClientRect();let s;return t instanceof Element?s=t.getBoundingClientRect():s={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<s.bottom&&n.bottom>s.top&&n.right>s.left&&n.left<s.right},cC=e=>{let t=0,n=e;for(;n;)t+=n.offsetTop,n=n.offsetParent;return t},Ly=(e,t)=>Math.abs(cC(e)-cC(t)),c1=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}};function mF(e,t,n,s){const r=n-t;return e/=s/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}var gF=typeof global=="object"&&global&&global.Object===Object&&global;const f3=gF;var vF=typeof self=="object"&&self&&self.Object===Object&&self,yF=f3||vF||Function("return this")();const Ei=yF;var bF=Ei.Symbol;const Yr=bF;var h3=Object.prototype,_F=h3.hasOwnProperty,wF=h3.toString,pd=Yr?Yr.toStringTag:void 0;function SF(e){var t=_F.call(e,pd),n=e[pd];try{e[pd]=void 0;var s=!0}catch{}var r=wF.call(e);return s&&(t?e[pd]=n:delete e[pd]),r}var TF=Object.prototype,CF=TF.toString;function EF(e){return CF.call(e)}var xF="[object Null]",kF="[object Undefined]",dC=Yr?Yr.toStringTag:void 0;function jl(e){return e==null?e===void 0?kF:xF:dC&&dC in Object(e)?SF(e):EF(e)}function Ki(e){return e!=null&&typeof e=="object"}var AF="[object Symbol]";function Dg(e){return typeof e=="symbol"||Ki(e)&&jl(e)==AF}function d1(e,t){for(var n=-1,s=e==null?0:e.length,r=Array(s);++n<s;)r[n]=t(e[n],n,e);return r}var IF=Array.isArray;const Js=IF;var DF=1/0,fC=Yr?Yr.prototype:void 0,hC=fC?fC.toString:void 0;function p3(e){if(typeof e=="string")return e;if(Js(e))return d1(e,p3)+"";if(Dg(e))return hC?hC.call(e):"";var t=e+"";return t=="0"&&1/e==-DF?"-0":t}var OF=/\s/;function PF(e){for(var t=e.length;t--&&OF.test(e.charAt(t)););return t}var RF=/^\s+/;function NF(e){return e&&e.slice(0,PF(e)+1).replace(RF,"")}function Zs(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var pC=0/0,MF=/^[-+]0x[0-9a-f]+$/i,$F=/^0b[01]+$/i,LF=/^0o[0-7]+$/i,BF=parseInt;function By(e){if(typeof e=="number")return e;if(Dg(e))return pC;if(Zs(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Zs(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=NF(e);var n=$F.test(e);return n||LF.test(e)?BF(e.slice(2),n?2:8):MF.test(e)?pC:+e}var mC=1/0,FF=17976931348623157e292;function VF(e){if(!e)return e===0?e:0;if(e=By(e),e===mC||e===-mC){var t=e<0?-1:1;return t*FF}return e===e?e:0}function UF(e){var t=VF(e),n=t%1;return t===t?n?t-n:t:0}function f1(e){return e}var HF="[object AsyncFunction]",zF="[object Function]",jF="[object GeneratorFunction]",qF="[object Proxy]";function h1(e){if(!Zs(e))return!1;var t=jl(e);return t==zF||t==jF||t==HF||t==qF}var WF=Ei["__core-js_shared__"];const m0=WF;var gC=function(){var e=/[^.]+$/.exec(m0&&m0.keys&&m0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function KF(e){return!!gC&&gC in e}var GF=Function.prototype,YF=GF.toString;function ql(e){if(e!=null){try{return YF.call(e)}catch{}try{return e+""}catch{}}return""}var XF=/[\\^$.*+?()[\]{}|]/g,QF=/^\[object .+?Constructor\]$/,JF=Function.prototype,ZF=Object.prototype,eV=JF.toString,tV=ZF.hasOwnProperty,nV=RegExp("^"+eV.call(tV).replace(XF,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sV(e){if(!Zs(e)||KF(e))return!1;var t=h1(e)?nV:QF;return t.test(ql(e))}function rV(e,t){return e==null?void 0:e[t]}function Wl(e,t){var n=rV(e,t);return sV(n)?n:void 0}var iV=Wl(Ei,"WeakMap");const Fy=iV;var vC=Object.create,aV=function(){function e(){}return function(t){if(!Zs(t))return{};if(vC)return vC(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const oV=aV;function lV(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function uV(){}function m3(e,t){var n=-1,s=e.length;for(t||(t=Array(s));++n<s;)t[n]=e[n];return t}var cV=800,dV=16,fV=Date.now;function hV(e){var t=0,n=0;return function(){var s=fV(),r=dV-(s-n);if(n=s,r>0){if(++t>=cV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function pV(e){return function(){return e}}var mV=function(){try{var e=Wl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Tm=mV;var gV=Tm?function(e,t){return Tm(e,"toString",{configurable:!0,enumerable:!1,value:pV(t),writable:!0})}:f1;const vV=gV;var yV=hV(vV);const g3=yV;function bV(e,t){for(var n=-1,s=e==null?0:e.length;++n<s&&t(e[n],n,e)!==!1;);return e}function v3(e,t,n,s){for(var r=e.length,i=n+(s?1:-1);s?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function _V(e){return e!==e}function wV(e,t,n){for(var s=n-1,r=e.length;++s<r;)if(e[s]===t)return s;return-1}function SV(e,t,n){return t===t?wV(e,t,n):v3(e,_V,n)}function TV(e,t){var n=e==null?0:e.length;return!!n&&SV(e,t,0)>-1}var CV=9007199254740991,EV=/^(?:0|[1-9]\d*)$/;function Og(e,t){var n=typeof e;return t=t??CV,!!t&&(n=="number"||n!="symbol"&&EV.test(e))&&e>-1&&e%1==0&&e<t}function p1(e,t,n){t=="__proto__"&&Tm?Tm(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ih(e,t){return e===t||e!==e&&t!==t}var xV=Object.prototype,kV=xV.hasOwnProperty;function m1(e,t,n){var s=e[t];(!(kV.call(e,t)&&ih(s,n))||n===void 0&&!(t in e))&&p1(e,t,n)}function xc(e,t,n,s){var r=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var o=t[i],l=s?s(n[o],e[o],o,n,e):void 0;l===void 0&&(l=e[o]),r?p1(n,o,l):m1(n,o,l)}return n}var yC=Math.max;function y3(e,t,n){return t=yC(t===void 0?e.length-1:t,0),function(){for(var s=arguments,r=-1,i=yC(s.length-t,0),a=Array(i);++r<i;)a[r]=s[t+r];r=-1;for(var o=Array(t+1);++r<t;)o[r]=s[r];return o[t]=n(a),lV(e,this,o)}}function b3(e,t){return g3(y3(e,t,f1),e+"")}var AV=9007199254740991;function g1(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=AV}function kc(e){return e!=null&&g1(e.length)&&!h1(e)}function IV(e,t,n){if(!Zs(n))return!1;var s=typeof t;return(s=="number"?kc(n)&&Og(t,n.length):s=="string"&&t in n)?ih(n[t],e):!1}function DV(e){return b3(function(t,n){var s=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,a&&IV(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++s<r;){var o=n[s];o&&e(t,o,s,i)}return t})}var OV=Object.prototype;function v1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||OV;return e===n}function PV(e,t){for(var n=-1,s=Array(e);++n<e;)s[n]=t(n);return s}var RV="[object Arguments]";function bC(e){return Ki(e)&&jl(e)==RV}var _3=Object.prototype,NV=_3.hasOwnProperty,MV=_3.propertyIsEnumerable,$V=bC(function(){return arguments}())?bC:function(e){return Ki(e)&&NV.call(e,"callee")&&!MV.call(e,"callee")};const _f=$V;function LV(){return!1}var w3=typeof kr=="object"&&kr&&!kr.nodeType&&kr,_C=w3&&typeof Ar=="object"&&Ar&&!Ar.nodeType&&Ar,BV=_C&&_C.exports===w3,wC=BV?Ei.Buffer:void 0,FV=wC?wC.isBuffer:void 0,VV=FV||LV;const wf=VV;var UV="[object Arguments]",HV="[object Array]",zV="[object Boolean]",jV="[object Date]",qV="[object Error]",WV="[object Function]",KV="[object Map]",GV="[object Number]",YV="[object Object]",XV="[object RegExp]",QV="[object Set]",JV="[object String]",ZV="[object WeakMap]",e9="[object ArrayBuffer]",t9="[object DataView]",n9="[object Float32Array]",s9="[object Float64Array]",r9="[object Int8Array]",i9="[object Int16Array]",a9="[object Int32Array]",o9="[object Uint8Array]",l9="[object Uint8ClampedArray]",u9="[object Uint16Array]",c9="[object Uint32Array]",Mn={};Mn[n9]=Mn[s9]=Mn[r9]=Mn[i9]=Mn[a9]=Mn[o9]=Mn[l9]=Mn[u9]=Mn[c9]=!0;Mn[UV]=Mn[HV]=Mn[e9]=Mn[zV]=Mn[t9]=Mn[jV]=Mn[qV]=Mn[WV]=Mn[KV]=Mn[GV]=Mn[YV]=Mn[XV]=Mn[QV]=Mn[JV]=Mn[ZV]=!1;function d9(e){return Ki(e)&&g1(e.length)&&!!Mn[jl(e)]}function y1(e){return function(t){return e(t)}}var S3=typeof kr=="object"&&kr&&!kr.nodeType&&kr,Yd=S3&&typeof Ar=="object"&&Ar&&!Ar.nodeType&&Ar,f9=Yd&&Yd.exports===S3,g0=f9&&f3.process,h9=function(){try{var e=Yd&&Yd.require&&Yd.require("util").types;return e||g0&&g0.binding&&g0.binding("util")}catch{}}();const Yu=h9;var SC=Yu&&Yu.isTypedArray,p9=SC?y1(SC):d9;const b1=p9;var m9=Object.prototype,g9=m9.hasOwnProperty;function T3(e,t){var n=Js(e),s=!n&&_f(e),r=!n&&!s&&wf(e),i=!n&&!s&&!r&&b1(e),a=n||s||r||i,o=a?PV(e.length,String):[],l=o.length;for(var u in e)(t||g9.call(e,u))&&!(a&&(u=="length"||r&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Og(u,l)))&&o.push(u);return o}function C3(e,t){return function(n){return e(t(n))}}var v9=C3(Object.keys,Object);const y9=v9;var b9=Object.prototype,_9=b9.hasOwnProperty;function w9(e){if(!v1(e))return y9(e);var t=[];for(var n in Object(e))_9.call(e,n)&&n!="constructor"&&t.push(n);return t}function ah(e){return kc(e)?T3(e):w9(e)}function S9(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var T9=Object.prototype,C9=T9.hasOwnProperty;function E9(e){if(!Zs(e))return S9(e);var t=v1(e),n=[];for(var s in e)s=="constructor"&&(t||!C9.call(e,s))||n.push(s);return n}function oh(e){return kc(e)?T3(e,!0):E9(e)}var x9=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k9=/^\w*$/;function _1(e,t){if(Js(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Dg(e)?!0:k9.test(e)||!x9.test(e)||t!=null&&e in Object(t)}var A9=Wl(Object,"create");const Sf=A9;function I9(){this.__data__=Sf?Sf(null):{},this.size=0}function D9(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var O9="__lodash_hash_undefined__",P9=Object.prototype,R9=P9.hasOwnProperty;function N9(e){var t=this.__data__;if(Sf){var n=t[e];return n===O9?void 0:n}return R9.call(t,e)?t[e]:void 0}var M9=Object.prototype,$9=M9.hasOwnProperty;function L9(e){var t=this.__data__;return Sf?t[e]!==void 0:$9.call(t,e)}var B9="__lodash_hash_undefined__";function F9(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Sf&&t===void 0?B9:t,this}function Ol(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}Ol.prototype.clear=I9;Ol.prototype.delete=D9;Ol.prototype.get=N9;Ol.prototype.has=L9;Ol.prototype.set=F9;function V9(){this.__data__=[],this.size=0}function Pg(e,t){for(var n=e.length;n--;)if(ih(e[n][0],t))return n;return-1}var U9=Array.prototype,H9=U9.splice;function z9(e){var t=this.__data__,n=Pg(t,e);if(n<0)return!1;var s=t.length-1;return n==s?t.pop():H9.call(t,n,1),--this.size,!0}function j9(e){var t=this.__data__,n=Pg(t,e);return n<0?void 0:t[n][1]}function q9(e){return Pg(this.__data__,e)>-1}function W9(e,t){var n=this.__data__,s=Pg(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}function Ma(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}Ma.prototype.clear=V9;Ma.prototype.delete=z9;Ma.prototype.get=j9;Ma.prototype.has=q9;Ma.prototype.set=W9;var K9=Wl(Ei,"Map");const Tf=K9;function G9(){this.size=0,this.__data__={hash:new Ol,map:new(Tf||Ma),string:new Ol}}function Y9(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Rg(e,t){var n=e.__data__;return Y9(t)?n[typeof t=="string"?"string":"hash"]:n.map}function X9(e){var t=Rg(this,e).delete(e);return this.size-=t?1:0,t}function Q9(e){return Rg(this,e).get(e)}function J9(e){return Rg(this,e).has(e)}function Z9(e,t){var n=Rg(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}function $a(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var s=e[t];this.set(s[0],s[1])}}$a.prototype.clear=G9;$a.prototype.delete=X9;$a.prototype.get=Q9;$a.prototype.has=J9;$a.prototype.set=Z9;var e7="Expected a function";function Ng(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(e7);var n=function(){var s=arguments,r=t?t.apply(this,s):s[0],i=n.cache;if(i.has(r))return i.get(r);var a=e.apply(this,s);return n.cache=i.set(r,a)||i,a};return n.cache=new(Ng.Cache||$a),n}Ng.Cache=$a;var t7=500;function n7(e){var t=Ng(e,function(s){return n.size===t7&&n.clear(),s}),n=t.cache;return t}var s7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r7=/\\(\\)?/g,i7=n7(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(s7,function(n,s,r,i){t.push(r?i.replace(r7,"$1"):s||n)}),t});const a7=i7;function o7(e){return e==null?"":p3(e)}function Ac(e,t){return Js(e)?e:_1(e,t)?[e]:a7(o7(e))}var l7=1/0;function Ic(e){if(typeof e=="string"||Dg(e))return e;var t=e+"";return t=="0"&&1/e==-l7?"-0":t}function Mg(e,t){t=Ac(t,e);for(var n=0,s=t.length;e!=null&&n<s;)e=e[Ic(t[n++])];return n&&n==s?e:void 0}function Ln(e,t,n){var s=e==null?void 0:Mg(e,t);return s===void 0?n:s}function w1(e,t){for(var n=-1,s=t.length,r=e.length;++n<s;)e[r+n]=t[n];return e}var TC=Yr?Yr.isConcatSpreadable:void 0;function u7(e){return Js(e)||_f(e)||!!(TC&&e&&e[TC])}function lh(e,t,n,s,r){var i=-1,a=e.length;for(n||(n=u7),r||(r=[]);++i<a;){var o=e[i];t>0&&n(o)?t>1?lh(o,t-1,n,s,r):w1(r,o):s||(r[r.length]=o)}return r}function E3(e){var t=e==null?0:e.length;return t?lh(e,1):[]}function x3(e){return g3(y3(e,void 0,E3),e+"")}var c7=C3(Object.getPrototypeOf,Object);const S1=c7;var d7="[object Object]",f7=Function.prototype,h7=Object.prototype,k3=f7.toString,p7=h7.hasOwnProperty,m7=k3.call(Object);function A3(e){if(!Ki(e)||jl(e)!=d7)return!1;var t=S1(e);if(t===null)return!0;var n=p7.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&k3.call(n)==m7}function g7(e,t,n){var s=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(r);++s<r;)i[s]=e[s+t];return i}function Ds(){if(!arguments.length)return[];var e=arguments[0];return Js(e)?e:[e]}function v7(){this.__data__=new Ma,this.size=0}function y7(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function b7(e){return this.__data__.get(e)}function _7(e){return this.__data__.has(e)}var w7=200;function S7(e,t){var n=this.__data__;if(n instanceof Ma){var s=n.__data__;if(!Tf||s.length<w7-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new $a(s)}return n.set(e,t),this.size=n.size,this}function mi(e){var t=this.__data__=new Ma(e);this.size=t.size}mi.prototype.clear=v7;mi.prototype.delete=y7;mi.prototype.get=b7;mi.prototype.has=_7;mi.prototype.set=S7;function T7(e,t){return e&&xc(t,ah(t),e)}function C7(e,t){return e&&xc(t,oh(t),e)}var I3=typeof kr=="object"&&kr&&!kr.nodeType&&kr,CC=I3&&typeof Ar=="object"&&Ar&&!Ar.nodeType&&Ar,E7=CC&&CC.exports===I3,EC=E7?Ei.Buffer:void 0,xC=EC?EC.allocUnsafe:void 0;function D3(e,t){if(t)return e.slice();var n=e.length,s=xC?xC(n):new e.constructor(n);return e.copy(s),s}function x7(e,t){for(var n=-1,s=e==null?0:e.length,r=0,i=[];++n<s;){var a=e[n];t(a,n,e)&&(i[r++]=a)}return i}function O3(){return[]}var k7=Object.prototype,A7=k7.propertyIsEnumerable,kC=Object.getOwnPropertySymbols,I7=kC?function(e){return e==null?[]:(e=Object(e),x7(kC(e),function(t){return A7.call(e,t)}))}:O3;const T1=I7;function D7(e,t){return xc(e,T1(e),t)}var O7=Object.getOwnPropertySymbols,P7=O7?function(e){for(var t=[];e;)w1(t,T1(e)),e=S1(e);return t}:O3;const P3=P7;function R7(e,t){return xc(e,P3(e),t)}function R3(e,t,n){var s=t(e);return Js(e)?s:w1(s,n(e))}function Vy(e){return R3(e,ah,T1)}function N3(e){return R3(e,oh,P3)}var N7=Wl(Ei,"DataView");const Uy=N7;var M7=Wl(Ei,"Promise");const Hy=M7;var $7=Wl(Ei,"Set");const Ou=$7;var AC="[object Map]",L7="[object Object]",IC="[object Promise]",DC="[object Set]",OC="[object WeakMap]",PC="[object DataView]",B7=ql(Uy),F7=ql(Tf),V7=ql(Hy),U7=ql(Ou),H7=ql(Fy),sl=jl;(Uy&&sl(new Uy(new ArrayBuffer(1)))!=PC||Tf&&sl(new Tf)!=AC||Hy&&sl(Hy.resolve())!=IC||Ou&&sl(new Ou)!=DC||Fy&&sl(new Fy)!=OC)&&(sl=function(e){var t=jl(e),n=t==L7?e.constructor:void 0,s=n?ql(n):"";if(s)switch(s){case B7:return PC;case F7:return AC;case V7:return IC;case U7:return DC;case H7:return OC}return t});const Cf=sl;var z7=Object.prototype,j7=z7.hasOwnProperty;function q7(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&j7.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var W7=Ei.Uint8Array;const Cm=W7;function C1(e){var t=new e.constructor(e.byteLength);return new Cm(t).set(new Cm(e)),t}function K7(e,t){var n=t?C1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var G7=/\w*$/;function Y7(e){var t=new e.constructor(e.source,G7.exec(e));return t.lastIndex=e.lastIndex,t}var RC=Yr?Yr.prototype:void 0,NC=RC?RC.valueOf:void 0;function X7(e){return NC?Object(NC.call(e)):{}}function M3(e,t){var n=t?C1(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Q7="[object Boolean]",J7="[object Date]",Z7="[object Map]",eU="[object Number]",tU="[object RegExp]",nU="[object Set]",sU="[object String]",rU="[object Symbol]",iU="[object ArrayBuffer]",aU="[object DataView]",oU="[object Float32Array]",lU="[object Float64Array]",uU="[object Int8Array]",cU="[object Int16Array]",dU="[object Int32Array]",fU="[object Uint8Array]",hU="[object Uint8ClampedArray]",pU="[object Uint16Array]",mU="[object Uint32Array]";function gU(e,t,n){var s=e.constructor;switch(t){case iU:return C1(e);case Q7:case J7:return new s(+e);case aU:return K7(e,n);case oU:case lU:case uU:case cU:case dU:case fU:case hU:case pU:case mU:return M3(e,n);case Z7:return new s;case eU:case sU:return new s(e);case tU:return Y7(e);case nU:return new s;case rU:return X7(e)}}function $3(e){return typeof e.constructor=="function"&&!v1(e)?oV(S1(e)):{}}var vU="[object Map]";function yU(e){return Ki(e)&&Cf(e)==vU}var MC=Yu&&Yu.isMap,bU=MC?y1(MC):yU;const _U=bU;var wU="[object Set]";function SU(e){return Ki(e)&&Cf(e)==wU}var $C=Yu&&Yu.isSet,TU=$C?y1($C):SU;const CU=TU;var EU=1,xU=2,kU=4,L3="[object Arguments]",AU="[object Array]",IU="[object Boolean]",DU="[object Date]",OU="[object Error]",B3="[object Function]",PU="[object GeneratorFunction]",RU="[object Map]",NU="[object Number]",F3="[object Object]",MU="[object RegExp]",$U="[object Set]",LU="[object String]",BU="[object Symbol]",FU="[object WeakMap]",VU="[object ArrayBuffer]",UU="[object DataView]",HU="[object Float32Array]",zU="[object Float64Array]",jU="[object Int8Array]",qU="[object Int16Array]",WU="[object Int32Array]",KU="[object Uint8Array]",GU="[object Uint8ClampedArray]",YU="[object Uint16Array]",XU="[object Uint32Array]",Dn={};Dn[L3]=Dn[AU]=Dn[VU]=Dn[UU]=Dn[IU]=Dn[DU]=Dn[HU]=Dn[zU]=Dn[jU]=Dn[qU]=Dn[WU]=Dn[RU]=Dn[NU]=Dn[F3]=Dn[MU]=Dn[$U]=Dn[LU]=Dn[BU]=Dn[KU]=Dn[GU]=Dn[YU]=Dn[XU]=!0;Dn[OU]=Dn[B3]=Dn[FU]=!1;function Pu(e,t,n,s,r,i){var a,o=t&EU,l=t&xU,u=t&kU;if(n&&(a=r?n(e,s,r,i):n(e)),a!==void 0)return a;if(!Zs(e))return e;var c=Js(e);if(c){if(a=q7(e),!o)return m3(e,a)}else{var f=Cf(e),h=f==B3||f==PU;if(wf(e))return D3(e,o);if(f==F3||f==L3||h&&!r){if(a=l||h?{}:$3(e),!o)return l?R7(e,C7(a,e)):D7(e,T7(a,e))}else{if(!Dn[f])return r?e:{};a=gU(e,f,o)}}i||(i=new mi);var m=i.get(e);if(m)return m;i.set(e,a),CU(e)?e.forEach(function(v){a.add(Pu(v,t,n,v,e,i))}):_U(e)&&e.forEach(function(v,y){a.set(y,Pu(v,t,n,y,e,i))});var g=u?l?N3:Vy:l?oh:ah,p=c?void 0:g(e);return bV(p||e,function(v,y){p&&(y=v,v=e[y]),m1(a,y,Pu(v,t,n,y,e,i))}),a}var QU=4;function LC(e){return Pu(e,QU)}var JU=1,ZU=4;function Em(e){return Pu(e,JU|ZU)}var eH="__lodash_hash_undefined__";function tH(e){return this.__data__.set(e,eH),this}function nH(e){return this.__data__.has(e)}function Ef(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new $a;++t<n;)this.add(e[t])}Ef.prototype.add=Ef.prototype.push=tH;Ef.prototype.has=nH;function sH(e,t){for(var n=-1,s=e==null?0:e.length;++n<s;)if(t(e[n],n,e))return!0;return!1}function V3(e,t){return e.has(t)}var rH=1,iH=2;function U3(e,t,n,s,r,i){var a=n&rH,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var u=i.get(e),c=i.get(t);if(u&&c)return u==t&&c==e;var f=-1,h=!0,m=n&iH?new Ef:void 0;for(i.set(e,t),i.set(t,e);++f<o;){var g=e[f],p=t[f];if(s)var v=a?s(p,g,f,t,e,i):s(g,p,f,e,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(m){if(!sH(t,function(y,_){if(!V3(m,_)&&(g===y||r(g,y,n,s,i)))return m.push(_)})){h=!1;break}}else if(!(g===p||r(g,p,n,s,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function aH(e){var t=-1,n=Array(e.size);return e.forEach(function(s,r){n[++t]=[r,s]}),n}function E1(e){var t=-1,n=Array(e.size);return e.forEach(function(s){n[++t]=s}),n}var oH=1,lH=2,uH="[object Boolean]",cH="[object Date]",dH="[object Error]",fH="[object Map]",hH="[object Number]",pH="[object RegExp]",mH="[object Set]",gH="[object String]",vH="[object Symbol]",yH="[object ArrayBuffer]",bH="[object DataView]",BC=Yr?Yr.prototype:void 0,v0=BC?BC.valueOf:void 0;function _H(e,t,n,s,r,i,a){switch(n){case bH:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case yH:return!(e.byteLength!=t.byteLength||!i(new Cm(e),new Cm(t)));case uH:case cH:case hH:return ih(+e,+t);case dH:return e.name==t.name&&e.message==t.message;case pH:case gH:return e==t+"";case fH:var o=aH;case mH:var l=s&oH;if(o||(o=E1),e.size!=t.size&&!l)return!1;var u=a.get(e);if(u)return u==t;s|=lH,a.set(e,t);var c=U3(o(e),o(t),s,r,i,a);return a.delete(e),c;case vH:if(v0)return v0.call(e)==v0.call(t)}return!1}var wH=1,SH=Object.prototype,TH=SH.hasOwnProperty;function CH(e,t,n,s,r,i){var a=n&wH,o=Vy(e),l=o.length,u=Vy(t),c=u.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var h=o[f];if(!(a?h in t:TH.call(t,h)))return!1}var m=i.get(e),g=i.get(t);if(m&&g)return m==t&&g==e;var p=!0;i.set(e,t),i.set(t,e);for(var v=a;++f<l;){h=o[f];var y=e[h],_=t[h];if(s)var b=a?s(_,y,h,t,e,i):s(y,_,h,e,t,i);if(!(b===void 0?y===_||r(y,_,n,s,i):b)){p=!1;break}v||(v=h=="constructor")}if(p&&!v){var T=e.constructor,S=t.constructor;T!=S&&"constructor"in e&&"constructor"in t&&!(typeof T=="function"&&T instanceof T&&typeof S=="function"&&S instanceof S)&&(p=!1)}return i.delete(e),i.delete(t),p}var EH=1,FC="[object Arguments]",VC="[object Array]",cp="[object Object]",xH=Object.prototype,UC=xH.hasOwnProperty;function kH(e,t,n,s,r,i){var a=Js(e),o=Js(t),l=a?VC:Cf(e),u=o?VC:Cf(t);l=l==FC?cp:l,u=u==FC?cp:u;var c=l==cp,f=u==cp,h=l==u;if(h&&wf(e)){if(!wf(t))return!1;a=!0,c=!1}if(h&&!c)return i||(i=new mi),a||b1(e)?U3(e,t,n,s,r,i):_H(e,t,l,n,s,r,i);if(!(n&EH)){var m=c&&UC.call(e,"__wrapped__"),g=f&&UC.call(t,"__wrapped__");if(m||g){var p=m?e.value():e,v=g?t.value():t;return i||(i=new mi),r(p,v,n,s,i)}}return h?(i||(i=new mi),CH(e,t,n,s,r,i)):!1}function $g(e,t,n,s,r){return e===t?!0:e==null||t==null||!Ki(e)&&!Ki(t)?e!==e&&t!==t:kH(e,t,n,s,$g,r)}var AH=1,IH=2;function DH(e,t,n,s){var r=n.length,i=r,a=!s;if(e==null)return!i;for(e=Object(e);r--;){var o=n[r];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++r<i;){o=n[r];var l=o[0],u=e[l],c=o[1];if(a&&o[2]){if(u===void 0&&!(l in e))return!1}else{var f=new mi;if(s)var h=s(u,c,l,e,t,f);if(!(h===void 0?$g(c,u,AH|IH,s,f):h))return!1}}return!0}function H3(e){return e===e&&!Zs(e)}function OH(e){for(var t=ah(e),n=t.length;n--;){var s=t[n],r=e[s];t[n]=[s,r,H3(r)]}return t}function z3(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function PH(e){var t=OH(e);return t.length==1&&t[0][2]?z3(t[0][0],t[0][1]):function(n){return n===e||DH(n,e,t)}}function RH(e,t){return e!=null&&t in Object(e)}function NH(e,t,n){t=Ac(t,e);for(var s=-1,r=t.length,i=!1;++s<r;){var a=Ic(t[s]);if(!(i=e!=null&&n(e,a)))break;e=e[a]}return i||++s!=r?i:(r=e==null?0:e.length,!!r&&g1(r)&&Og(a,r)&&(Js(e)||_f(e)))}function j3(e,t){return e!=null&&NH(e,t,RH)}var MH=1,$H=2;function LH(e,t){return _1(e)&&H3(t)?z3(Ic(e),t):function(n){var s=Ln(n,e);return s===void 0&&s===t?j3(n,e):$g(t,s,MH|$H)}}function BH(e){return function(t){return t==null?void 0:t[e]}}function FH(e){return function(t){return Mg(t,e)}}function VH(e){return _1(e)?BH(Ic(e)):FH(e)}function q3(e){return typeof e=="function"?e:e==null?f1:typeof e=="object"?Js(e)?LH(e[0],e[1]):PH(e):VH(e)}function UH(e){return function(t,n,s){for(var r=-1,i=Object(t),a=s(t),o=a.length;o--;){var l=a[e?o:++r];if(n(i[l],l,i)===!1)break}return t}}var HH=UH();const W3=HH;function zH(e,t){return e&&W3(e,t,ah)}function jH(e,t){return function(n,s){if(n==null)return n;if(!kc(n))return e(n,s);for(var r=n.length,i=t?r:-1,a=Object(n);(t?i--:++i<r)&&s(a[i],i,a)!==!1;);return n}}var qH=jH(zH);const WH=qH;var KH=function(){return Ei.Date.now()};const y0=KH;var GH="Expected a function",YH=Math.max,XH=Math.min;function fr(e,t,n){var s,r,i,a,o,l,u=0,c=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(GH);t=By(t)||0,Zs(n)&&(c=!!n.leading,f="maxWait"in n,i=f?YH(By(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function m(C){var D=s,N=r;return s=r=void 0,u=C,a=e.apply(N,D),a}function g(C){return u=C,o=setTimeout(y,t),c?m(C):a}function p(C){var D=C-l,N=C-u,$=t-D;return f?XH($,i-N):$}function v(C){var D=C-l,N=C-u;return l===void 0||D>=t||D<0||f&&N>=i}function y(){var C=y0();if(v(C))return _(C);o=setTimeout(y,p(C))}function _(C){return o=void 0,h&&s?m(C):(s=r=void 0,a)}function b(){o!==void 0&&clearTimeout(o),u=0,s=l=r=o=void 0}function T(){return o===void 0?a:_(y0())}function S(){var C=y0(),D=v(C);if(s=arguments,r=this,l=C,D){if(o===void 0)return g(l);if(f)return clearTimeout(o),o=setTimeout(y,t),m(l)}return o===void 0&&(o=setTimeout(y,t)),a}return S.cancel=b,S.flush=T,S}function zy(e,t,n){(n!==void 0&&!ih(e[t],n)||n===void 0&&!(t in e))&&p1(e,t,n)}function K3(e){return Ki(e)&&kc(e)}function jy(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function QH(e){return xc(e,oh(e))}function JH(e,t,n,s,r,i,a){var o=jy(e,n),l=jy(t,n),u=a.get(l);if(u){zy(e,n,u);return}var c=i?i(o,l,n+"",e,t,a):void 0,f=c===void 0;if(f){var h=Js(l),m=!h&&wf(l),g=!h&&!m&&b1(l);c=l,h||m||g?Js(o)?c=o:K3(o)?c=m3(o):m?(f=!1,c=D3(l,!0)):g?(f=!1,c=M3(l,!0)):c=[]:A3(l)||_f(l)?(c=o,_f(o)?c=QH(o):(!Zs(o)||h1(o))&&(c=$3(l))):f=!1}f&&(a.set(l,c),r(c,l,s,i,a),a.delete(l)),zy(e,n,c)}function G3(e,t,n,s,r){e!==t&&W3(t,function(i,a){if(r||(r=new mi),Zs(i))JH(e,t,a,n,G3,s,r);else{var o=s?s(jy(e,a),i,a+"",e,t,r):void 0;o===void 0&&(o=i),zy(e,a,o)}},oh)}function ZH(e,t,n){for(var s=-1,r=e==null?0:e.length;++s<r;)if(n(t,e[s]))return!0;return!1}function ez(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var tz=Math.max,nz=Math.min;function Y3(e,t,n){var s=e==null?0:e.length;if(!s)return-1;var r=s-1;return n!==void 0&&(r=UF(n),r=n<0?tz(s+r,0):nz(r,s-1)),v3(e,q3(t),r,!0)}function sz(e,t){var n=-1,s=kc(e)?Array(e.length):[];return WH(e,function(r,i,a){s[++n]=t(r,i,a)}),s}function rz(e,t){var n=Js(e)?d1:sz;return n(e,q3(t))}function iz(e,t){return lh(rz(e,t),1)}var az=1/0;function oz(e){var t=e==null?0:e.length;return t?lh(e,az):[]}function xf(e){for(var t=-1,n=e==null?0:e.length,s={};++t<n;){var r=e[t];s[r[0]]=r[1]}return s}function lz(e,t){return t.length<2?e:Mg(e,g7(t,0,-1))}function Ps(e,t){return $g(e,t)}function rs(e){return e==null}function X3(e){return e===void 0}var uz=DV(function(e,t,n){G3(e,t,n)});const cz=uz;function dz(e,t){return t=Ac(t,e),e=lz(e,t),e==null||delete e[Ic(ez(t))]}function fz(e){return A3(e)?void 0:e}var hz=1,pz=2,mz=4,gz=x3(function(e,t){var n={};if(e==null)return n;var s=!1;t=d1(t,function(i){return i=Ac(i,e),s||(s=i.length>1),i}),xc(e,N3(e),n),s&&(n=Pu(n,hz|pz|mz,fz));for(var r=t.length;r--;)dz(n,t[r]);return n});const vz=gz;function Q3(e,t,n,s){if(!Zs(e))return e;t=Ac(t,e);for(var r=-1,i=t.length,a=i-1,o=e;o!=null&&++r<i;){var l=Ic(t[r]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return e;if(r!=a){var c=o[l];u=s?s(c,l,o):void 0,u===void 0&&(u=Zs(c)?c:Og(t[r+1])?[]:{})}m1(o,l,u),o=o[l]}return e}function yz(e,t,n){for(var s=-1,r=t.length,i={};++s<r;){var a=t[s],o=Mg(e,a);n(o,a)&&Q3(i,Ac(a,e),o)}return i}function bz(e,t){return yz(e,t,function(n,s){return j3(e,s)})}var _z=x3(function(e,t){return e==null?{}:bz(e,t)});const hi=_z;function wz(e,t,n){return e==null?e:Q3(e,t,n)}var Sz="Expected a function";function _l(e,t,n){var s=!0,r=!0;if(typeof e!="function")throw new TypeError(Sz);return Zs(n)&&(s="leading"in n?!!n.leading:s,r="trailing"in n?!!n.trailing:r),fr(e,t,{leading:s,maxWait:t,trailing:r})}var Tz=1/0,Cz=Ou&&1/E1(new Ou([,-0]))[1]==Tz?function(e){return new Ou(e)}:uV;const Ez=Cz;var xz=200;function kz(e,t,n){var s=-1,r=TV,i=e.length,a=!0,o=[],l=o;if(n)a=!1,r=ZH;else if(i>=xz){var u=t?null:Ez(e);if(u)return E1(u);a=!1,r=V3,l=new Ef}else l=t?[]:o;e:for(;++s<i;){var c=e[s],f=t?t(c):c;if(c=n||c!==0?c:0,a&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),o.push(c)}else r(l,f,n)||(l!==o&&l.push(f),o.push(c))}return o}var Az=b3(function(e){return kz(lh(e,1,K3,!0))});const b0=Az,An=e=>e===void 0,In=e=>typeof e=="boolean",ut=e=>typeof e=="number",Cr=e=>!e&&e!==0||Ye(e)&&e.length===0||Pt(e)&&!Object.keys(e).length,Ir=e=>typeof Element>"u"?!1:e instanceof Element,Pl=e=>rs(e),Iz=e=>ht(e)?!Number.isNaN(Number(e)):!1,Lg=e=>e===window,xo=e=>Ht?window.requestAnimationFrame(e):setTimeout(e,16),Rl=e=>Ht?window.cancelAnimationFrame(e):clearTimeout(e),x1=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Li=e=>nh(e),Xu=e=>Object.keys(e),Dz=e=>Object.entries(e),jp=(e,t,n)=>({get value(){return Ln(e,t,n)},set value(s){wz(e,t,s)}});class Oz extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function es(e,t){throw new Oz(`[${e}] ${t}`)}const J3=(e="")=>e.split(" ").filter(t=>!!t.trim()),or=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Vr=(e,t)=>{!e||!t.trim()||e.classList.add(...J3(t))},Rs=(e,t)=>{!e||!t.trim()||e.classList.remove(...J3(t))},co=(e,t)=>{var n;if(!Ht||!e||!t)return"";let s=Kr(t);s==="float"&&(s="cssFloat");try{const r=e.style[s];if(r)return r;const i=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return i?i[s]:""}catch{return e.style[s]}};function Nn(e,t="px"){if(!e)return"";if(ut(e)||Iz(e))return`${e}${t}`;if(ht(e))return e}const Pz=(e,t)=>{if(!Ht)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],s=co(e,n);return["scroll","auto","overlay"].some(r=>s.includes(r))},k1=(e,t)=>{if(!Ht)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(Pz(n,t))return n;n=n.parentNode}return n};let dp;const Z3=e=>{var t;if(!Ht)return 0;if(dp!==void 0)return dp;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const s=n.offsetWidth;n.style.overflow="scroll";const r=document.createElement("div");r.style.width="100%",n.appendChild(r);const i=r.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),dp=s-i,dp};function A1(e,t){if(!Ht)return;if(!t){e.scrollTop=0;return}const n=[];let s=t.offsetParent;for(;s!==null&&e!==s&&e.contains(s);)n.push(s),s=s.offsetParent;const r=t.offsetTop+n.reduce((l,u)=>l+u.offsetTop,0),i=r+t.offsetHeight,a=e.scrollTop,o=a+e.clientHeight;r<a?e.scrollTop=r:i>o&&(e.scrollTop=i-e.clientHeight)}function Rz(e,t,n,s,r){const i=Date.now();let a;const o=()=>{const u=Date.now()-i,c=mF(u>s?s:u,t,n,s);Lg(e)?e.scrollTo(window.pageXOffset,c):e.scrollTop=c,u<s?a=xo(o):typeof r=="function"&&r()};return o(),()=>{a&&Rl(a)}}const HC=(e,t)=>Lg(t)?e.ownerDocument.documentElement:t,zC=e=>Lg(e)?window.scrollY:e.scrollTop,fp=e=>{if(!Ht||e==="")return null;if(ht(e))try{return document.querySelector(e)}catch{return null}return e};/*! Element Plus Icons Vue v2.3.1 */var Nz=J({name:"Aim",__name:"aim",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),O("path",{fill:"currentColor",d:"M512 96a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V128a32 32 0 0 1 32-32m0 576a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V704a32 32 0 0 1 32-32M96 512a32 32 0 0 1 32-32h192a32 32 0 0 1 0 64H128a32 32 0 0 1-32-32m576 0a32 32 0 0 1 32-32h192a32 32 0 1 1 0 64H704a32 32 0 0 1-32-32"})]))}}),Mz=Nz,$z=J({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),sa=$z,Lz=J({name:"ArrowLeftBold",__name:"arrow-left-bold",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M685.248 104.704a64 64 0 0 1 0 90.496L368.448 512l316.8 316.8a64 64 0 0 1-90.496 90.496L232.704 557.248a64 64 0 0 1 0-90.496l362.048-362.048a64 64 0 0 1 90.496 0z"})]))}}),eI=Lz,Bz=J({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"})]))}}),ko=Bz,Fz=J({name:"ArrowRightBold",__name:"arrow-right-bold",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M338.752 104.704a64 64 0 0 0 0 90.496l316.8 316.8-316.8 316.8a64 64 0 0 0 90.496 90.496l362.048-362.048a64 64 0 0 0 0-90.496L429.248 104.704a64 64 0 0 0-90.496 0z"})]))}}),tI=Fz,Vz=J({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),Gs=Vz,Uz=J({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),Bg=Uz,Hz=J({name:"Back",__name:"back",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),O("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),zz=Hz,jz=J({name:"BellFilled",__name:"bell-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M640 832a128 128 0 0 1-256 0zm192-64H134.4a38.4 38.4 0 0 1 0-76.8H192V448c0-154.88 110.08-284.16 256.32-313.6a64 64 0 1 1 127.36 0A320.128 320.128 0 0 1 832 448v243.2h57.6a38.4 38.4 0 0 1 0 76.8z"})]))}}),qz=jz,Wz=J({name:"Calendar",__name:"calendar",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64m0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64"})]))}}),Kz=Wz,Gz=J({name:"CaretRight",__name:"caret-right",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),Fg=Gz,Yz=J({name:"CaretTop",__name:"caret-top",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"})]))}}),Xz=Yz,Qz=J({name:"Check",__name:"check",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),uh=Qz,Jz=J({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),Zz=Jz,ej=J({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),O("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),I1=ej,tj=J({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),D1=tj,nj=J({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),O("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),Uo=nj,sj=J({name:"CirclePlus",__name:"circle-plus",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M352 480h320a32 32 0 1 1 0 64H352a32 32 0 0 1 0-64"}),O("path",{fill:"currentColor",d:"M480 672V352a32 32 0 1 1 64 0v320a32 32 0 0 1-64 0"}),O("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),nI=sj,rj=J({name:"Clock",__name:"clock",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),O("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"}),O("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32"})]))}}),O1=rj,ij=J({name:"Close",__name:"close",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),_i=ij,aj=J({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"})]))}}),Ao=aj,oj=J({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"})]))}}),Io=oj,lj=J({name:"DeleteFilled",__name:"delete-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M352 192V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64H96a32 32 0 0 1 0-64zm64 0h192v-64H416zM192 960a32 32 0 0 1-32-32V256h704v672a32 32 0 0 1-32 32zm224-192a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32m192 0a32 32 0 0 0 32-32V416a32 32 0 0 0-64 0v320a32 32 0 0 0 32 32"})]))}}),uj=lj,cj=J({name:"Delete",__name:"delete",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Kl=cj,dj=J({name:"Discount",__name:"discount",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M224 704h576V318.336L552.512 115.84a64 64 0 0 0-81.024 0L224 318.336zm0 64v128h576V768zM593.024 66.304l259.2 212.096A32 32 0 0 1 864 303.168V928a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V303.168a32 32 0 0 1 11.712-24.768l259.2-212.096a128 128 0 0 1 162.112 0"}),O("path",{fill:"currentColor",d:"M512 448a64 64 0 1 0 0-128 64 64 0 0 0 0 128m0 64a128 128 0 1 1 0-256 128 128 0 0 1 0 256"})]))}}),fj=dj,hj=J({name:"Document",__name:"document",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),pj=hj,mj=J({name:"Edit",__name:"edit",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M832 512a32 32 0 1 1 64 0v352a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h352a32 32 0 0 1 0 64H192v640h640z"}),O("path",{fill:"currentColor",d:"m469.952 554.24 52.8-7.552L847.104 222.4a32 32 0 1 0-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 0 1 0 135.808l-331.84 331.84a32 32 0 0 1-18.112 9.088L436.8 623.68a32 32 0 0 1-36.224-36.224l15.104-105.6a32 32 0 0 1 9.024-18.112l331.904-331.84a96 96 0 0 1 135.744 0z"})]))}}),ch=mj,gj=J({name:"Film",__name:"film",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"}),O("path",{fill:"currentColor",d:"M320 288V128h64v352h256V128h64v160h160v64H704v128h160v64H704v128h160v64H704v160h-64V544H384v352h-64V736H128v-64h192V544H128v-64h192V352H128v-64z"})]))}}),vj=gj,yj=J({name:"FolderOpened",__name:"folder-opened",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896"})]))}}),bj=yj,_j=J({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),wj=_j,Sj=J({name:"Hide",__name:"hide",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),O("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),Tj=Sj,Cj=J({name:"HomeFilled",__name:"home-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 128 128 447.936V896h255.936V640H640v256h255.936V447.936z"})]))}}),Ej=Cj,xj=J({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),P1=xj,kj=J({name:"Link",__name:"link",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),Aj=kj,Ij=J({name:"Loading",__name:"loading",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),Gi=Ij,Dj=J({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),Oj=Dj,Pj=J({name:"Minus",__name:"minus",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),Rj=Pj,Nj=J({name:"Moon",__name:"moon",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"})]))}}),Mj=Nj,$j=J({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),qy=$j,Lj=J({name:"More",__name:"more",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),Bj=Lj,Fj=J({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Vj=Fj,Uj=J({name:"Plus",__name:"plus",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),R1=Uj,Hj=J({name:"Promotion",__name:"promotion",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"m64 448 832-320-128 704-446.08-243.328L832 192 242.816 545.472zm256 512V657.024L512 768z"})]))}}),N1=Hj,zj=J({name:"QuestionFilled",__name:"question-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"})]))}}),jj=zj,qj=J({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),sI=qj,Wj=J({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"})]))}}),rI=Wj,Kj=J({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118M512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412M512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512"})]))}}),Gj=Kj,Yj=J({name:"Search",__name:"search",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),kf=Yj,Xj=J({name:"SortDown",__name:"sort-down",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0"})]))}}),Qj=Xj,Jj=J({name:"SortUp",__name:"sort-up",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248"})]))}}),Zj=Jj,eq=J({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"})]))}}),hp=eq,tq=J({name:"Star",__name:"star",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),nq=tq,sq=J({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),iI=sq,rq=J({name:"Sunny",__name:"sunny",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"})]))}}),iq=rq,aq=J({name:"SwitchButton",__name:"switch-button",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M352 159.872V230.4a352 352 0 1 0 320 0v-70.528A416.128 416.128 0 0 1 512 960a416 416 0 0 1-160-800.128z"}),O("path",{fill:"currentColor",d:"M512 64q32 0 32 32v320q0 32-32 32t-32-32V96q0-32 32-32"})]))}}),oq=aq,lq=J({name:"TakeawayBox",__name:"takeaway-box",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M832 384H192v448h640zM96 320h832V128H96zm800 64v480a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V384H64a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32h896a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zM416 512h192a32 32 0 0 1 0 64H416a32 32 0 0 1 0-64"})]))}}),uq=lq,cq=J({name:"Timer",__name:"timer",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 896a320 320 0 1 0 0-640 320 320 0 0 0 0 640m0 64a384 384 0 1 1 0-768 384 384 0 0 1 0 768"}),O("path",{fill:"currentColor",d:"M512 320a32 32 0 0 1 32 32l-.512 224a32 32 0 1 1-64 0L480 352a32 32 0 0 1 32-32"}),O("path",{fill:"currentColor",d:"M448 576a64 64 0 1 0 128 0 64 64 0 1 0-128 0m96-448v128h-64V128h-96a32 32 0 0 1 0-64h256a32 32 0 1 1 0 64z"})]))}}),dq=cq,fq=J({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.808 239.808 0 0 1 512 192a239.872 239.872 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),pp=fq,hq=J({name:"VideoCamera",__name:"video-camera",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M704 768V256H128v512zm64-416 192-96v512l-192-96v128a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V224a32 32 0 0 1 32-32h640a32 32 0 0 1 32 32zm0 71.552v176.896l128 64V359.552zM192 320h192v64H192z"})]))}}),pq=hq,mq=J({name:"View",__name:"view",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),gq=mq,vq=J({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Vg=vq,yq=J({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),M1=yq,bq=J({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(x(),j("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[O("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),_q=bq;const aI="__epPropKey",oe=e=>e,wq=e=>Pt(e)&&!!e[aI],xi=(e,t)=>{if(!Pt(e)||wq(e))return e;const{values:n,required:s,default:r,type:i,validator:a}=e,l={type:i,required:!!s,validator:n||a?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),jt(e,"default")&&f.push(r),c||(c=f.includes(u))),a&&(c||(c=a(u))),!c&&f.length>0){const h=[...new Set(f)].map(m=>JSON.stringify(m)).join(", ");Y5(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${h}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[aI]:!0};return jt(e,"default")&&(l.default=r),l},Fe=e=>xf(Object.entries(e).map(([t,n])=>[t,xi(n,t)])),ln=oe([String,Object,Function]),$1={Close:_i},L1={Close:_i,SuccessFilled:iI,InfoFilled:P1,WarningFilled:Vg,CircleCloseFilled:D1},Do={success:iI,warning:Vg,error:D1,info:P1},B1={validating:Gi,success:I1,error:Uo},Tt=(e,t)=>{if(e.install=n=>{for(const s of[e,...Object.values(t??{})])n.component(s.name,s)},t)for(const[n,s]of Object.entries(t))e[n]=s;return e},oI=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),Sq=(e,t)=>(e.install=n=>{n.directive(t,e)},e),kn=e=>(e.install=sn,e),Ug=(...e)=>t=>{e.forEach(n=>{pt(n)?n(t):n.value=t})},at={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Tq=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],_0=["sun","mon","tue","wed","thu","fri","sat"],At="update:modelValue",gn="change",Ys="input",jC=Symbol("INSTALLED_KEY"),ra=["","default","small","large"],lI=e=>["",...ra].includes(e);var Br=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Br||{});function Wy(e){return Cn(e)&&e.type===Ke}function Cq(e){return Cn(e)&&e.type===ps}function Eq(e){return Cn(e)&&!Wy(e)&&!Cq(e)}const xq=e=>{if(!Cn(e))return{};const t=e.props||{},n=(Cn(e.type)?e.type.props:void 0)||{},s={};return Object.keys(n).forEach(r=>{jt(n[r],"default")&&(s[r]=n[r].default)}),Object.keys(t).forEach(r=>{s[Kr(r)]=t[r]}),s},kq=e=>{if(!Ye(e)||e.length>1)throw new Error("expect to receive a single Vue element child");return e[0]},vo=e=>{const t=Ye(e)?e:[e],n=[];return t.forEach(s=>{var r;Ye(s)?n.push(...vo(s)):Cn(s)&&Ye(s.children)?n.push(...vo(s.children)):(n.push(s),Cn(s)&&((r=s.component)!=null&&r.subTree)&&n.push(...vo(s.component.subTree)))}),n},qC=e=>[...new Set(e)],qs=e=>!e&&e!==0?[]:Array.isArray(e)?e:[e],Aq=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),xn=e=>e;function Iq(e){let t=0;const n=(...s)=>{t&&Rl(t),t=xo(()=>{e(...s),t=0})};return n.cancel=()=>{Rl(t),t=0},n}const Dq=["class","style"],Oq=/^on[A-Z]/,F1=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,s=k(()=>((n==null?void 0:n.value)||[]).concat(Dq)),r=Ot();return k(r?()=>{var i;return xf(Object.entries((i=r.proxy)==null?void 0:i.$attrs).filter(([a])=>!s.value.includes(a)&&!(t&&Oq.test(a))))}:()=>({}))},yo=({from:e,replacement:t,scope:n,version:s,ref:r,type:i="API"},a)=>{xe(()=>d(a),o=>{},{immediate:!0})},uI=(e,t,n,s)=>{let r={offsetX:0,offsetY:0};const i=u=>{const c=u.clientX,f=u.clientY,{offsetX:h,offsetY:m}=r,g=e.value.getBoundingClientRect(),p=g.left,v=g.top,y=g.width,_=g.height,b=document.documentElement.clientWidth,T=document.documentElement.clientHeight,S=-p+h,C=-v+m,D=b-p-y+h,N=T-v-_+m,$=z=>{let U=h+z.clientX-c,W=m+z.clientY-f;s!=null&&s.value||(U=Math.min(Math.max(U,S),D),W=Math.min(Math.max(W,C),N)),r={offsetX:U,offsetY:W},e.value&&(e.value.style.transform=`translate(${Nn(U)}, ${Nn(W)})`)},L=()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",L)};document.addEventListener("mousemove",$),document.addEventListener("mouseup",L)},a=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},o=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)},l=()=>{r={offsetX:0,offsetY:0},e.value&&(e.value.style.transform="none")};return gt(()=>{vs(()=>{n.value?a():o()})}),un(()=>{o()}),{resetPosition:l}};var Pq={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Rq=e=>(t,n)=>Nq(t,n,d(e)),Nq=(e,t,n)=>Ln(n,e,e).replace(/\{(\w+)\}/g,(s,r)=>{var i;return`${(i=t==null?void 0:t[r])!=null?i:`{${r}}`}`}),Mq=e=>{const t=k(()=>d(e).name),n=yn(e)?e:q(e);return{lang:t,locale:n,t:Rq(e)}},cI=Symbol("localeContextKey"),zt=e=>{const t=e||Xe(cI,q());return Mq(k(()=>t.value||Pq))},Xd="el",$q="is-",el=(e,t,n,s,r)=>{let i=`${e}-${t}`;return n&&(i+=`-${n}`),s&&(i+=`__${s}`),r&&(i+=`--${r}`),i},dI=Symbol("namespaceContextKey"),V1=e=>{const t=e||(Ot()?Xe(dI,q(Xd)):q(Xd));return k(()=>d(t)||Xd)},Re=(e,t)=>{const n=V1(t);return{namespace:n,b:(p="")=>el(n.value,e,p,"",""),e:p=>p?el(n.value,e,"",p,""):"",m:p=>p?el(n.value,e,"","",p):"",be:(p,v)=>p&&v?el(n.value,e,p,v,""):"",em:(p,v)=>p&&v?el(n.value,e,"",p,v):"",bm:(p,v)=>p&&v?el(n.value,e,p,"",v):"",bem:(p,v,y)=>p&&v&&y?el(n.value,e,p,v,y):"",is:(p,...v)=>{const y=v.length>=1?v[0]:!0;return p&&y?`${$q}${p}`:""},cssVar:p=>{const v={};for(const y in p)p[y]&&(v[`--${n.value}-${y}`]=p[y]);return v},cssVarName:p=>`--${n.value}-${p}`,cssVarBlock:p=>{const v={};for(const y in p)p[y]&&(v[`--${n.value}-${e}-${y}`]=p[y]);return v},cssVarBlockName:p=>`--${n.value}-${e}-${p}`}},U1=(e,t={})=>{yn(e)||es("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||Re("popup"),s=k(()=>n.bm("parent","hidden"));if(!Ht||or(document.body,s.value))return;let r=0,i=!1,a="0";const o=()=>{setTimeout(()=>{typeof document>"u"||(Rs(document==null?void 0:document.body,s.value),i&&document&&(document.body.style.width=a))},200)};xe(e,l=>{if(!l){o();return}i=!or(document.body,s.value),i&&(a=document.body.style.width),r=Z3(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=co(document.body,"overflowY");r>0&&(u||c==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),Vr(document.body,s.value)}),QA(()=>o())},Lq=xi({type:oe(Boolean),default:null}),Bq=xi({type:oe(Function)}),fI=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,s=[t],r={[e]:Lq,[n]:Bq};return{useModelToggle:({indicator:a,toggleReason:o,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const h=Ot(),{emit:m}=h,g=h.props,p=k(()=>pt(g[n])),v=k(()=>g[e]===null),y=D=>{a.value!==!0&&(a.value=!0,o&&(o.value=D),pt(c)&&c(D))},_=D=>{a.value!==!1&&(a.value=!1,o&&(o.value=D),pt(f)&&f(D))},b=D=>{if(g.disabled===!0||pt(u)&&!u())return;const N=p.value&&Ht;N&&m(t,!0),(v.value||!N)&&y(D)},T=D=>{if(g.disabled===!0||!Ht)return;const N=p.value&&Ht;N&&m(t,!1),(v.value||!N)&&_(D)},S=D=>{In(D)&&(g.disabled&&D?p.value&&m(t,!1):a.value!==D&&(D?y():_()))},C=()=>{a.value?T():b()};return xe(()=>g[e],S),l&&h.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...h.proxy.$route}),()=>{l.value&&a.value&&T()}),gt(()=>{S(g[e])}),{hide:T,show:b,toggle:C,hasUpdateHandler:p}},useModelToggleProps:r,useModelToggleEmits:s}};fI("modelValue");const hI=e=>{const t=Ot();return k(()=>{var n,s;return(s=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:s[e]})};var lr="top",Xr="bottom",Qr="right",ur="left",H1="auto",dh=[lr,Xr,Qr,ur],Qu="start",Af="end",Fq="clippingParents",pI="viewport",md="popper",Vq="reference",WC=dh.reduce(function(e,t){return e.concat([t+"-"+Qu,t+"-"+Af])},[]),La=[].concat(dh,[H1]).reduce(function(e,t){return e.concat([t,t+"-"+Qu,t+"-"+Af])},[]),Uq="beforeRead",Hq="read",zq="afterRead",jq="beforeMain",qq="main",Wq="afterMain",Kq="beforeWrite",Gq="write",Yq="afterWrite",Xq=[Uq,Hq,zq,jq,qq,Wq,Kq,Gq,Yq];function Yi(e){return e?(e.nodeName||"").toLowerCase():null}function ki(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ju(e){var t=ki(e).Element;return e instanceof t||e instanceof Element}function jr(e){var t=ki(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function z1(e){if(typeof ShadowRoot>"u")return!1;var t=ki(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Qq(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var s=t.styles[n]||{},r=t.attributes[n]||{},i=t.elements[n];!jr(i)||!Yi(i)||(Object.assign(i.style,s),Object.keys(r).forEach(function(a){var o=r[a];o===!1?i.removeAttribute(a):i.setAttribute(a,o===!0?"":o)}))})}function Jq(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(s){var r=t.elements[s],i=t.attributes[s]||{},a=Object.keys(t.styles.hasOwnProperty(s)?t.styles[s]:n[s]),o=a.reduce(function(l,u){return l[u]="",l},{});!jr(r)||!Yi(r)||(Object.assign(r.style,o),Object.keys(i).forEach(function(l){r.removeAttribute(l)}))})}}var mI={name:"applyStyles",enabled:!0,phase:"write",fn:Qq,effect:Jq,requires:["computeStyles"]};function zi(e){return e.split("-")[0]}var wl=Math.max,xm=Math.min,Zu=Math.round;function ec(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),s=1,r=1;if(jr(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(s=Zu(n.width)/a||1),i>0&&(r=Zu(n.height)/i||1)}return{width:n.width/s,height:n.height/r,top:n.top/r,right:n.right/s,bottom:n.bottom/r,left:n.left/s,x:n.left/s,y:n.top/r}}function j1(e){var t=ec(e),n=e.offsetWidth,s=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-s)<=1&&(s=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:s}}function gI(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&z1(n)){var s=t;do{if(s&&e.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function ka(e){return ki(e).getComputedStyle(e)}function Zq(e){return["table","td","th"].indexOf(Yi(e))>=0}function Ho(e){return((Ju(e)?e.ownerDocument:e.document)||window.document).documentElement}function Hg(e){return Yi(e)==="html"?e:e.assignedSlot||e.parentNode||(z1(e)?e.host:null)||Ho(e)}function KC(e){return!jr(e)||ka(e).position==="fixed"?null:e.offsetParent}function eW(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&jr(e)){var s=ka(e);if(s.position==="fixed")return null}var r=Hg(e);for(z1(r)&&(r=r.host);jr(r)&&["html","body"].indexOf(Yi(r))<0;){var i=ka(r);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return r;r=r.parentNode}return null}function fh(e){for(var t=ki(e),n=KC(e);n&&Zq(n)&&ka(n).position==="static";)n=KC(n);return n&&(Yi(n)==="html"||Yi(n)==="body"&&ka(n).position==="static")?t:n||eW(e)||t}function q1(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qd(e,t,n){return wl(e,xm(t,n))}function tW(e,t,n){var s=Qd(e,t,n);return s>n?n:s}function vI(){return{top:0,right:0,bottom:0,left:0}}function yI(e){return Object.assign({},vI(),e)}function bI(e,t){return t.reduce(function(n,s){return n[s]=e,n},{})}var nW=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,yI(typeof e!="number"?e:bI(e,dh))};function sW(e){var t,n=e.state,s=e.name,r=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,o=zi(n.placement),l=q1(o),u=[ur,Qr].indexOf(o)>=0,c=u?"height":"width";if(!(!i||!a)){var f=nW(r.padding,n),h=j1(i),m=l==="y"?lr:ur,g=l==="y"?Xr:Qr,p=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],v=a[l]-n.rects.reference[l],y=fh(i),_=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,b=p/2-v/2,T=f[m],S=_-h[c]-f[g],C=_/2-h[c]/2+b,D=Qd(T,C,S),N=l;n.modifiersData[s]=(t={},t[N]=D,t.centerOffset=D-C,t)}}function rW(e){var t=e.state,n=e.options,s=n.element,r=s===void 0?"[data-popper-arrow]":s;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||!gI(t.elements.popper,r)||(t.elements.arrow=r))}var iW={name:"arrow",enabled:!0,phase:"main",fn:sW,effect:rW,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tc(e){return e.split("-")[1]}var aW={top:"auto",right:"auto",bottom:"auto",left:"auto"};function oW(e){var t=e.x,n=e.y,s=window,r=s.devicePixelRatio||1;return{x:Zu(t*r)/r||0,y:Zu(n*r)/r||0}}function GC(e){var t,n=e.popper,s=e.popperRect,r=e.placement,i=e.variation,a=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,h=a.x,m=h===void 0?0:h,g=a.y,p=g===void 0?0:g,v=typeof c=="function"?c({x:m,y:p}):{x:m,y:p};m=v.x,p=v.y;var y=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),b=ur,T=lr,S=window;if(u){var C=fh(n),D="clientHeight",N="clientWidth";if(C===ki(n)&&(C=Ho(n),ka(C).position!=="static"&&o==="absolute"&&(D="scrollHeight",N="scrollWidth")),C=C,r===lr||(r===ur||r===Qr)&&i===Af){T=Xr;var $=f&&C===S&&S.visualViewport?S.visualViewport.height:C[D];p-=$-s.height,p*=l?1:-1}if(r===ur||(r===lr||r===Xr)&&i===Af){b=Qr;var L=f&&C===S&&S.visualViewport?S.visualViewport.width:C[N];m-=L-s.width,m*=l?1:-1}}var z=Object.assign({position:o},u&&aW),U=c===!0?oW({x:m,y:p}):{x:m,y:p};if(m=U.x,p=U.y,l){var W;return Object.assign({},z,(W={},W[T]=_?"0":"",W[b]=y?"0":"",W.transform=(S.devicePixelRatio||1)<=1?"translate("+m+"px, "+p+"px)":"translate3d("+m+"px, "+p+"px, 0)",W))}return Object.assign({},z,(t={},t[T]=_?p+"px":"",t[b]=y?m+"px":"",t.transform="",t))}function lW(e){var t=e.state,n=e.options,s=n.gpuAcceleration,r=s===void 0?!0:s,i=n.adaptive,a=i===void 0?!0:i,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:zi(t.placement),variation:tc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,GC(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,GC(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var _I={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:lW,data:{}},mp={passive:!0};function uW(e){var t=e.state,n=e.instance,s=e.options,r=s.scroll,i=r===void 0?!0:r,a=s.resize,o=a===void 0?!0:a,l=ki(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach(function(c){c.addEventListener("scroll",n.update,mp)}),o&&l.addEventListener("resize",n.update,mp),function(){i&&u.forEach(function(c){c.removeEventListener("scroll",n.update,mp)}),o&&l.removeEventListener("resize",n.update,mp)}}var wI={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:uW,data:{}},cW={left:"right",right:"left",bottom:"top",top:"bottom"};function qp(e){return e.replace(/left|right|bottom|top/g,function(t){return cW[t]})}var dW={start:"end",end:"start"};function YC(e){return e.replace(/start|end/g,function(t){return dW[t]})}function W1(e){var t=ki(e),n=t.pageXOffset,s=t.pageYOffset;return{scrollLeft:n,scrollTop:s}}function K1(e){return ec(Ho(e)).left+W1(e).scrollLeft}function fW(e){var t=ki(e),n=Ho(e),s=t.visualViewport,r=n.clientWidth,i=n.clientHeight,a=0,o=0;return s&&(r=s.width,i=s.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=s.offsetLeft,o=s.offsetTop)),{width:r,height:i,x:a+K1(e),y:o}}function hW(e){var t,n=Ho(e),s=W1(e),r=(t=e.ownerDocument)==null?void 0:t.body,i=wl(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=wl(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-s.scrollLeft+K1(e),l=-s.scrollTop;return ka(r||n).direction==="rtl"&&(o+=wl(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:l}}function G1(e){var t=ka(e),n=t.overflow,s=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+s)}function SI(e){return["html","body","#document"].indexOf(Yi(e))>=0?e.ownerDocument.body:jr(e)&&G1(e)?e:SI(Hg(e))}function Jd(e,t){var n;t===void 0&&(t=[]);var s=SI(e),r=s===((n=e.ownerDocument)==null?void 0:n.body),i=ki(s),a=r?[i].concat(i.visualViewport||[],G1(s)?s:[]):s,o=t.concat(a);return r?o:o.concat(Jd(Hg(a)))}function Ky(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pW(e){var t=ec(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function XC(e,t){return t===pI?Ky(fW(e)):Ju(t)?pW(t):Ky(hW(Ho(e)))}function mW(e){var t=Jd(Hg(e)),n=["absolute","fixed"].indexOf(ka(e).position)>=0,s=n&&jr(e)?fh(e):e;return Ju(s)?t.filter(function(r){return Ju(r)&&gI(r,s)&&Yi(r)!=="body"}):[]}function gW(e,t,n){var s=t==="clippingParents"?mW(e):[].concat(t),r=[].concat(s,[n]),i=r[0],a=r.reduce(function(o,l){var u=XC(e,l);return o.top=wl(u.top,o.top),o.right=xm(u.right,o.right),o.bottom=xm(u.bottom,o.bottom),o.left=wl(u.left,o.left),o},XC(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function TI(e){var t=e.reference,n=e.element,s=e.placement,r=s?zi(s):null,i=s?tc(s):null,a=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(r){case lr:l={x:a,y:t.y-n.height};break;case Xr:l={x:a,y:t.y+t.height};break;case Qr:l={x:t.x+t.width,y:o};break;case ur:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=r?q1(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(i){case Qu:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Af:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function If(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=s===void 0?e.placement:s,i=n.boundary,a=i===void 0?Fq:i,o=n.rootBoundary,l=o===void 0?pI:o,u=n.elementContext,c=u===void 0?md:u,f=n.altBoundary,h=f===void 0?!1:f,m=n.padding,g=m===void 0?0:m,p=yI(typeof g!="number"?g:bI(g,dh)),v=c===md?Vq:md,y=e.rects.popper,_=e.elements[h?v:c],b=gW(Ju(_)?_:_.contextElement||Ho(e.elements.popper),a,l),T=ec(e.elements.reference),S=TI({reference:T,element:y,strategy:"absolute",placement:r}),C=Ky(Object.assign({},y,S)),D=c===md?C:T,N={top:b.top-D.top+p.top,bottom:D.bottom-b.bottom+p.bottom,left:b.left-D.left+p.left,right:D.right-b.right+p.right},$=e.modifiersData.offset;if(c===md&&$){var L=$[r];Object.keys(N).forEach(function(z){var U=[Qr,Xr].indexOf(z)>=0?1:-1,W=[lr,Xr].indexOf(z)>=0?"y":"x";N[z]+=L[W]*U})}return N}function vW(e,t){t===void 0&&(t={});var n=t,s=n.placement,r=n.boundary,i=n.rootBoundary,a=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?La:l,c=tc(s),f=c?o?WC:WC.filter(function(g){return tc(g)===c}):dh,h=f.filter(function(g){return u.indexOf(g)>=0});h.length===0&&(h=f);var m=h.reduce(function(g,p){return g[p]=If(e,{placement:p,boundary:r,rootBoundary:i,padding:a})[zi(p)],g},{});return Object.keys(m).sort(function(g,p){return m[g]-m[p]})}function yW(e){if(zi(e)===H1)return[];var t=qp(e);return[YC(e),t,YC(t)]}function bW(e){var t=e.state,n=e.options,s=e.name;if(!t.modifiersData[s]._skip){for(var r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,o=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,m=n.flipVariations,g=m===void 0?!0:m,p=n.allowedAutoPlacements,v=t.options.placement,y=zi(v),_=y===v,b=l||(_||!g?[qp(v)]:yW(v)),T=[v].concat(b).reduce(function(we,De){return we.concat(zi(De)===H1?vW(t,{placement:De,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:p}):De)},[]),S=t.rects.reference,C=t.rects.popper,D=new Map,N=!0,$=T[0],L=0;L<T.length;L++){var z=T[L],U=zi(z),W=tc(z)===Qu,K=[lr,Xr].indexOf(U)>=0,X=K?"width":"height",B=If(t,{placement:z,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),Q=K?W?Qr:ur:W?Xr:lr;S[X]>C[X]&&(Q=qp(Q));var Y=qp(Q),F=[];if(i&&F.push(B[U]<=0),o&&F.push(B[Q]<=0,B[Y]<=0),F.every(function(we){return we})){$=z,N=!1;break}D.set(z,F)}if(N)for(var H=g?3:1,Z=function(we){var De=T.find(function(Ee){var te=D.get(Ee);if(te)return te.slice(0,we).every(function(ge){return ge})});if(De)return $=De,"break"},se=H;se>0;se--){var ne=Z(se);if(ne==="break")break}t.placement!==$&&(t.modifiersData[s]._skip=!0,t.placement=$,t.reset=!0)}}var _W={name:"flip",enabled:!0,phase:"main",fn:bW,requiresIfExists:["offset"],data:{_skip:!1}};function QC(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function JC(e){return[lr,Qr,Xr,ur].some(function(t){return e[t]>=0})}function wW(e){var t=e.state,n=e.name,s=t.rects.reference,r=t.rects.popper,i=t.modifiersData.preventOverflow,a=If(t,{elementContext:"reference"}),o=If(t,{altBoundary:!0}),l=QC(a,s),u=QC(o,r,i),c=JC(l),f=JC(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var SW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:wW};function TW(e,t,n){var s=zi(e),r=[ur,lr].indexOf(s)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],o=i[1];return a=a||0,o=(o||0)*r,[ur,Qr].indexOf(s)>=0?{x:o,y:a}:{x:a,y:o}}function CW(e){var t=e.state,n=e.options,s=e.name,r=n.offset,i=r===void 0?[0,0]:r,a=La.reduce(function(c,f){return c[f]=TW(f,t.rects,i),c},{}),o=a[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[s]=a}var EW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:CW};function xW(e){var t=e.state,n=e.name;t.modifiersData[n]=TI({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var CI={name:"popperOffsets",enabled:!0,phase:"read",fn:xW,data:{}};function kW(e){return e==="x"?"y":"x"}function AW(e){var t=e.state,n=e.options,s=e.name,r=n.mainAxis,i=r===void 0?!0:r,a=n.altAxis,o=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,m=h===void 0?!0:h,g=n.tetherOffset,p=g===void 0?0:g,v=If(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=zi(t.placement),_=tc(t.placement),b=!_,T=q1(y),S=kW(T),C=t.modifiersData.popperOffsets,D=t.rects.reference,N=t.rects.popper,$=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,L=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(C){if(i){var W,K=T==="y"?lr:ur,X=T==="y"?Xr:Qr,B=T==="y"?"height":"width",Q=C[T],Y=Q+v[K],F=Q-v[X],H=m?-N[B]/2:0,Z=_===Qu?D[B]:N[B],se=_===Qu?-N[B]:-D[B],ne=t.elements.arrow,we=m&&ne?j1(ne):{width:0,height:0},De=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vI(),Ee=De[K],te=De[X],ge=Qd(0,D[B],we[B]),pe=b?D[B]/2-H-ge-Ee-L.mainAxis:Z-ge-Ee-L.mainAxis,Oe=b?-D[B]/2+H+ge+te+L.mainAxis:se+ge+te+L.mainAxis,Pe=t.elements.arrow&&fh(t.elements.arrow),ve=Pe?T==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,ee=(W=z==null?void 0:z[T])!=null?W:0,re=Q+pe-ee-ve,Se=Q+Oe-ee,Le=Qd(m?xm(Y,re):Y,Q,m?wl(F,Se):F);C[T]=Le,U[T]=Le-Q}if(o){var _e,ke=T==="x"?lr:ur,Be=T==="x"?Xr:Qr,Ie=C[S],ze=S==="y"?"height":"width",Ve=Ie+v[ke],Ze=Ie-v[Be],je=[lr,ur].indexOf(y)!==-1,Ae=(_e=z==null?void 0:z[S])!=null?_e:0,nt=je?Ve:Ie-D[ze]-N[ze]-Ae+L.altAxis,_t=je?Ie+D[ze]+N[ze]-Ae-L.altAxis:Ze,xt=m&&je?tW(nt,Ie,_t):Qd(m?nt:Ve,Ie,m?_t:Ze);C[S]=xt,U[S]=xt-Ie}t.modifiersData[s]=U}}var IW={name:"preventOverflow",enabled:!0,phase:"main",fn:AW,requiresIfExists:["offset"]};function DW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function OW(e){return e===ki(e)||!jr(e)?W1(e):DW(e)}function PW(e){var t=e.getBoundingClientRect(),n=Zu(t.width)/e.offsetWidth||1,s=Zu(t.height)/e.offsetHeight||1;return n!==1||s!==1}function RW(e,t,n){n===void 0&&(n=!1);var s=jr(t),r=jr(t)&&PW(t),i=Ho(t),a=ec(e,r),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(s||!s&&!n)&&((Yi(t)!=="body"||G1(i))&&(o=OW(t)),jr(t)?(l=ec(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=K1(i))),{x:a.left+o.scrollLeft-l.x,y:a.top+o.scrollTop-l.y,width:a.width,height:a.height}}function NW(e){var t=new Map,n=new Set,s=[];e.forEach(function(i){t.set(i.name,i)});function r(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&r(l)}}),s.push(i)}return e.forEach(function(i){n.has(i.name)||r(i)}),s}function MW(e){var t=NW(e);return Xq.reduce(function(n,s){return n.concat(t.filter(function(r){return r.phase===s}))},[])}function $W(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function LW(e){var t=e.reduce(function(n,s){var r=n[s.name];return n[s.name]=r?Object.assign({},r,s,{options:Object.assign({},r.options,s.options),data:Object.assign({},r.data,s.data)}):s,n},{});return Object.keys(t).map(function(n){return t[n]})}var ZC={placement:"bottom",modifiers:[],strategy:"absolute"};function eE(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Y1(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,s=n===void 0?[]:n,r=t.defaultOptions,i=r===void 0?ZC:r;return function(a,o,l){l===void 0&&(l=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ZC,i),modifiersData:{},elements:{reference:a,popper:o},attributes:{},styles:{}},c=[],f=!1,h={state:u,setOptions:function(p){var v=typeof p=="function"?p(u.options):p;g(),u.options=Object.assign({},i,u.options,v),u.scrollParents={reference:Ju(a)?Jd(a):a.contextElement?Jd(a.contextElement):[],popper:Jd(o)};var y=MW(LW([].concat(s,u.options.modifiers)));return u.orderedModifiers=y.filter(function(_){return _.enabled}),m(),h.update()},forceUpdate:function(){if(!f){var p=u.elements,v=p.reference,y=p.popper;if(eE(v,y)){u.rects={reference:RW(v,fh(y),u.options.strategy==="fixed"),popper:j1(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(N){return u.modifiersData[N.name]=Object.assign({},N.data)});for(var _=0;_<u.orderedModifiers.length;_++){if(u.reset===!0){u.reset=!1,_=-1;continue}var b=u.orderedModifiers[_],T=b.fn,S=b.options,C=S===void 0?{}:S,D=b.name;typeof T=="function"&&(u=T({state:u,options:C,name:D,instance:h})||u)}}}},update:$W(function(){return new Promise(function(p){h.forceUpdate(),p(u)})}),destroy:function(){g(),f=!0}};if(!eE(a,o))return h;h.setOptions(l).then(function(p){!f&&l.onFirstUpdate&&l.onFirstUpdate(p)});function m(){u.orderedModifiers.forEach(function(p){var v=p.name,y=p.options,_=y===void 0?{}:y,b=p.effect;if(typeof b=="function"){var T=b({state:u,name:v,instance:h,options:_}),S=function(){};c.push(T||S)}})}function g(){c.forEach(function(p){return p()}),c=[]}return h}}Y1();var BW=[wI,CI,_I,mI];Y1({defaultModifiers:BW});var FW=[wI,CI,_I,mI,EW,_W,IW,iW,SW],VW=Y1({defaultModifiers:FW});const UW=(e,t,n={})=>{const s={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=HW(l);Object.assign(a.value,u)},requires:["computeStyles"]},r=k(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=d(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],s,{name:"applyStyles",enabled:!1}]}}),i=hn(),a=q({styles:{popper:{position:d(r).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),o=()=>{i.value&&(i.value.destroy(),i.value=void 0)};return xe(r,l=>{const u=d(i);u&&u.setOptions(l)},{deep:!0}),xe([e,t],([l,u])=>{o(),!(!l||!u)&&(i.value=VW(l,u,d(r)))}),un(()=>{o()}),{state:k(()=>{var l;return{...((l=d(i))==null?void 0:l.state)||{}}}),styles:k(()=>d(a).styles),attributes:k(()=>d(a).attributes),update:()=>{var l;return(l=d(i))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=d(i))==null?void 0:l.forceUpdate()},instanceRef:k(()=>d(i))}};function HW(e){const t=Object.keys(e.elements),n=xf(t.map(r=>[r,e.styles[r]||{}])),s=xf(t.map(r=>[r,e.attributes[r]]));return{styles:n,attributes:s}}const X1=e=>{if(!e)return{onClick:sn,onMousedown:sn,onMouseup:sn};let t=!1,n=!1;return{onClick:a=>{t&&n&&e(a),t=n=!1},onMousedown:a=>{t=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}},zW=(e,t=0)=>{if(t===0)return e;const n=q(!1);let s=null;const r=()=>{s&&clearTimeout(s),s=setTimeout(()=>{n.value=e.value},t)};return gt(r),xe(()=>e.value,i=>{i?r():n.value=i}),n};function tE(){let e;const t=(s,r)=>{n(),e=window.setTimeout(s,r)},n=()=>window.clearTimeout(e);return rh(()=>n()),{registerTimeout:t,cancelTimeout:n}}const nE={prefix:Math.floor(Math.random()*1e4),current:0},jW=Symbol("elIdInjection"),Q1=()=>Ot()?Xe(jW,nE):nE,ys=e=>{const t=Q1(),n=V1();return k(()=>d(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let gu=[];const sE=e=>{const t=e;t.key===at.esc&&gu.forEach(n=>n(t))},qW=e=>{gt(()=>{gu.length===0&&document.addEventListener("keydown",sE),Ht&&gu.push(e)}),un(()=>{gu=gu.filter(t=>t!==e),gu.length===0&&Ht&&document.removeEventListener("keydown",sE)})},EI=()=>{const e=V1(),t=Q1(),n=k(()=>`${e.value}-popper-container-${t.prefix}`),s=k(()=>`#${n.value}`);return{id:n,selector:s}},WW=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},KW=()=>{const{id:e,selector:t}=EI();return Hl(()=>{Ht&&(document.body.querySelector(t.value)||WW(e.value))}),{id:e,selector:t}},GW=Fe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),YW=({showAfter:e,hideAfter:t,autoClose:n,open:s,close:r})=>{const{registerTimeout:i}=tE(),{registerTimeout:a,cancelTimeout:o}=tE();return{onOpen:c=>{i(()=>{s(c);const f=d(n);ut(f)&&f>0&&a(()=>{r(c)},f)},d(e))},onClose:c=>{o(),i(()=>{r(c)},d(t))}}},xI=Symbol("elForwardRef"),XW=e=>{Mt(xI,{setForwardRef:n=>{e.value=n}})},QW=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),rE={current:0},iE=q(0),kI=2e3,aE=Symbol("elZIndexContextKey"),AI=Symbol("zIndexContextKey"),Dc=e=>{const t=Ot()?Xe(aE,rE):rE,n=e||(Ot()?Xe(AI,void 0):void 0),s=k(()=>{const a=d(n);return ut(a)?a:kI}),r=k(()=>s.value+iE.value),i=()=>(t.current++,iE.value=t.current,r.value);return!Ht&&Xe(aE),{initialZIndex:s,currentZIndex:r,nextZIndex:i}},nc=Math.min,Sl=Math.max,km=Math.round,gp=Math.floor,Oo=e=>({x:e,y:e}),JW={left:"right",right:"left",bottom:"top",top:"bottom"},ZW={start:"end",end:"start"};function Gy(e,t,n){return Sl(e,nc(t,n))}function hh(e,t){return typeof e=="function"?e(t):e}function Nl(e){return e.split("-")[0]}function ph(e){return e.split("-")[1]}function II(e){return e==="x"?"y":"x"}function J1(e){return e==="y"?"height":"width"}function sc(e){return["top","bottom"].includes(Nl(e))?"y":"x"}function Z1(e){return II(sc(e))}function eK(e,t,n){n===void 0&&(n=!1);const s=ph(e),r=Z1(e),i=J1(r);let a=r==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Am(a)),[a,Am(a)]}function tK(e){const t=Am(e);return[Yy(e),t,Yy(t)]}function Yy(e){return e.replace(/start|end/g,t=>ZW[t])}function nK(e,t,n){const s=["left","right"],r=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:s:t?s:r;case"left":case"right":return t?i:a;default:return[]}}function sK(e,t,n,s){const r=ph(e);let i=nK(Nl(e),n==="start",s);return r&&(i=i.map(a=>a+"-"+r),t&&(i=i.concat(i.map(Yy)))),i}function Am(e){return e.replace(/left|right|bottom|top/g,t=>JW[t])}function rK(e){return{top:0,right:0,bottom:0,left:0,...e}}function DI(e){return typeof e!="number"?rK(e):{top:e,right:e,bottom:e,left:e}}function Im(e){const{x:t,y:n,width:s,height:r}=e;return{width:s,height:r,top:n,left:t,right:t+s,bottom:n+r,x:t,y:n}}function oE(e,t,n){let{reference:s,floating:r}=e;const i=sc(t),a=Z1(t),o=J1(a),l=Nl(t),u=i==="y",c=s.x+s.width/2-r.width/2,f=s.y+s.height/2-r.height/2,h=s[o]/2-r[o]/2;let m;switch(l){case"top":m={x:c,y:s.y-r.height};break;case"bottom":m={x:c,y:s.y+s.height};break;case"right":m={x:s.x+s.width,y:f};break;case"left":m={x:s.x-r.width,y:f};break;default:m={x:s.x,y:s.y}}switch(ph(t)){case"start":m[a]-=h*(n&&u?-1:1);break;case"end":m[a]+=h*(n&&u?-1:1);break}return m}const iK=async(e,t,n)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:a}=n,o=i.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:f}=oE(u,s,l),h=s,m={},g=0;for(let p=0;p<o.length;p++){const{name:v,fn:y}=o[p],{x:_,y:b,data:T,reset:S}=await y({x:c,y:f,initialPlacement:s,placement:h,strategy:r,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});c=_??c,f=b??f,m={...m,[v]:{...m[v],...T}},S&&g<=50&&(g++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(u=S.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:c,y:f}=oE(u,h,l)),p=-1)}return{x:c,y:f,placement:h,strategy:r,middlewareData:m}};async function e2(e,t){var n;t===void 0&&(t={});const{x:s,y:r,platform:i,rects:a,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=hh(t,e),g=DI(m),v=o[h?f==="floating"?"reference":"floating":f],y=Im(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(v)))==null||n?v:v.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),_=f==="floating"?{x:s,y:r,width:a.floating.width,height:a.floating.height}:a.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),T=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},S=Im(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:_,offsetParent:b,strategy:l}):_);return{top:(y.top-S.top+g.top)/T.y,bottom:(S.bottom-y.bottom+g.bottom)/T.y,left:(y.left-S.left+g.left)/T.x,right:(S.right-y.right+g.right)/T.x}}const aK=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:r,rects:i,platform:a,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=hh(e,t)||{};if(u==null)return{};const f=DI(c),h={x:n,y:s},m=Z1(r),g=J1(m),p=await a.getDimensions(u),v=m==="y",y=v?"top":"left",_=v?"bottom":"right",b=v?"clientHeight":"clientWidth",T=i.reference[g]+i.reference[m]-h[m]-i.floating[g],S=h[m]-i.reference[m],C=await(a.getOffsetParent==null?void 0:a.getOffsetParent(u));let D=C?C[b]:0;(!D||!await(a.isElement==null?void 0:a.isElement(C)))&&(D=o.floating[b]||i.floating[g]);const N=T/2-S/2,$=D/2-p[g]/2-1,L=nc(f[y],$),z=nc(f[_],$),U=L,W=D-p[g]-z,K=D/2-p[g]/2+N,X=Gy(U,K,W),B=!l.arrow&&ph(r)!=null&&K!==X&&i.reference[g]/2-(K<U?L:z)-p[g]/2<0,Q=B?K<U?K-U:K-W:0;return{[m]:h[m]+Q,data:{[m]:X,centerOffset:K-X-Q,...B&&{alignmentOffset:Q}},reset:B}}}),oK=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:p=!0,...v}=hh(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const y=Nl(r),_=sc(o),b=Nl(o)===o,T=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=h||(b||!p?[Am(o)]:tK(o)),C=g!=="none";!h&&C&&S.push(...sK(o,p,g,T));const D=[o,...S],N=await e2(t,v),$=[];let L=((s=i.flip)==null?void 0:s.overflows)||[];if(c&&$.push(N[y]),f){const K=eK(r,a,T);$.push(N[K[0]],N[K[1]])}if(L=[...L,{placement:r,overflows:$}],!$.every(K=>K<=0)){var z,U;const K=(((z=i.flip)==null?void 0:z.index)||0)+1,X=D[K];if(X)return{data:{index:K,overflows:L},reset:{placement:X}};let B=(U=L.filter(Q=>Q.overflows[0]<=0).sort((Q,Y)=>Q.overflows[1]-Y.overflows[1])[0])==null?void 0:U.placement;if(!B)switch(m){case"bestFit":{var W;const Q=(W=L.filter(Y=>{if(C){const F=sc(Y.placement);return F===_||F==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(F=>F>0).reduce((F,H)=>F+H,0)]).sort((Y,F)=>Y[1]-F[1])[0])==null?void 0:W[0];Q&&(B=Q);break}case"initialPlacement":B=o;break}if(r!==B)return{reset:{placement:B}}}return{}}}};async function lK(e,t){const{placement:n,platform:s,elements:r}=e,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),a=Nl(n),o=ph(n),l=sc(n)==="y",u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,f=hh(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof g=="number"&&(m=o==="end"?g*-1:g),l?{x:m*c,y:h*u}:{x:h*u,y:m*c}}const uK=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:r,y:i,placement:a,middlewareData:o}=t,l=await lK(t,e);return a===((n=o.offset)==null?void 0:n.placement)&&(s=o.arrow)!=null&&s.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},cK=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:r}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:o={fn:v=>{let{x:y,y:_}=v;return{x:y,y:_}}},...l}=hh(e,t),u={x:n,y:s},c=await e2(t,l),f=sc(Nl(r)),h=II(f);let m=u[h],g=u[f];if(i){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",_=m+c[v],b=m-c[y];m=Gy(_,m,b)}if(a){const v=f==="y"?"top":"left",y=f==="y"?"bottom":"right",_=g+c[v],b=g-c[y];g=Gy(_,g,b)}const p=o.fn({...t,[h]:m,[f]:g});return{...p,data:{x:p.x-n,y:p.y-s,enabled:{[h]:i,[f]:a}}}}}};function zg(){return typeof window<"u"}function Oc(e){return OI(e)?(e.nodeName||"").toLowerCase():"#document"}function Dr(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ia(e){var t;return(t=(OI(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function OI(e){return zg()?e instanceof Node||e instanceof Dr(e).Node:!1}function wi(e){return zg()?e instanceof Element||e instanceof Dr(e).Element:!1}function Xi(e){return zg()?e instanceof HTMLElement||e instanceof Dr(e).HTMLElement:!1}function lE(e){return!zg()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dr(e).ShadowRoot}function mh(e){const{overflow:t,overflowX:n,overflowY:s,display:r}=Si(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(r)}function dK(e){return["table","td","th"].includes(Oc(e))}function jg(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function t2(e){const t=n2(),n=wi(e)?Si(e):e;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(n.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(n.contain||"").includes(s))}function fK(e){let t=Po(e);for(;Xi(t)&&!rc(t);){if(t2(t))return t;if(jg(t))return null;t=Po(t)}return null}function n2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function rc(e){return["html","body","#document"].includes(Oc(e))}function Si(e){return Dr(e).getComputedStyle(e)}function qg(e){return wi(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Po(e){if(Oc(e)==="html")return e;const t=e.assignedSlot||e.parentNode||lE(e)&&e.host||ia(e);return lE(t)?t.host:t}function PI(e){const t=Po(e);return rc(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xi(t)&&mh(t)?t:PI(t)}function Df(e,t,n){var s;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=PI(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),a=Dr(r);if(i){const o=Xy(a);return t.concat(a,a.visualViewport||[],mh(r)?r:[],o&&n?Df(o):[])}return t.concat(r,Df(r,[],n))}function Xy(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function RI(e){const t=Si(e);let n=parseFloat(t.width)||0,s=parseFloat(t.height)||0;const r=Xi(e),i=r?e.offsetWidth:n,a=r?e.offsetHeight:s,o=km(n)!==i||km(s)!==a;return o&&(n=i,s=a),{width:n,height:s,$:o}}function s2(e){return wi(e)?e:e.contextElement}function Ru(e){const t=s2(e);if(!Xi(t))return Oo(1);const n=t.getBoundingClientRect(),{width:s,height:r,$:i}=RI(t);let a=(i?km(n.width):n.width)/s,o=(i?km(n.height):n.height)/r;return(!a||!Number.isFinite(a))&&(a=1),(!o||!Number.isFinite(o))&&(o=1),{x:a,y:o}}const hK=Oo(0);function NI(e){const t=Dr(e);return!n2()||!t.visualViewport?hK:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function pK(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Dr(e)?!1:t}function Ml(e,t,n,s){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=s2(e);let a=Oo(1);t&&(s?wi(s)&&(a=Ru(s)):a=Ru(e));const o=pK(i,n,s)?NI(i):Oo(0);let l=(r.left+o.x)/a.x,u=(r.top+o.y)/a.y,c=r.width/a.x,f=r.height/a.y;if(i){const h=Dr(i),m=s&&wi(s)?Dr(s):s;let g=h,p=Xy(g);for(;p&&s&&m!==g;){const v=Ru(p),y=p.getBoundingClientRect(),_=Si(p),b=y.left+(p.clientLeft+parseFloat(_.paddingLeft))*v.x,T=y.top+(p.clientTop+parseFloat(_.paddingTop))*v.y;l*=v.x,u*=v.y,c*=v.x,f*=v.y,l+=b,u+=T,g=Dr(p),p=Xy(g)}}return Im({width:c,height:f,x:l,y:u})}function mK(e){let{elements:t,rect:n,offsetParent:s,strategy:r}=e;const i=r==="fixed",a=ia(s),o=t?jg(t.floating):!1;if(s===a||o&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Oo(1);const c=Oo(0),f=Xi(s);if((f||!f&&!i)&&((Oc(s)!=="body"||mh(a))&&(l=qg(s)),Xi(s))){const h=Ml(s);u=Ru(s),c.x=h.x+s.clientLeft,c.y=h.y+s.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x,y:n.y*u.y-l.scrollTop*u.y+c.y}}function gK(e){return Array.from(e.getClientRects())}function Qy(e,t){const n=qg(e).scrollLeft;return t?t.left+n:Ml(ia(e)).left+n}function vK(e){const t=ia(e),n=qg(e),s=e.ownerDocument.body,r=Sl(t.scrollWidth,t.clientWidth,s.scrollWidth,s.clientWidth),i=Sl(t.scrollHeight,t.clientHeight,s.scrollHeight,s.clientHeight);let a=-n.scrollLeft+Qy(e);const o=-n.scrollTop;return Si(s).direction==="rtl"&&(a+=Sl(t.clientWidth,s.clientWidth)-r),{width:r,height:i,x:a,y:o}}function yK(e,t){const n=Dr(e),s=ia(e),r=n.visualViewport;let i=s.clientWidth,a=s.clientHeight,o=0,l=0;if(r){i=r.width,a=r.height;const u=n2();(!u||u&&t==="fixed")&&(o=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:o,y:l}}function bK(e,t){const n=Ml(e,!0,t==="fixed"),s=n.top+e.clientTop,r=n.left+e.clientLeft,i=Xi(e)?Ru(e):Oo(1),a=e.clientWidth*i.x,o=e.clientHeight*i.y,l=r*i.x,u=s*i.y;return{width:a,height:o,x:l,y:u}}function uE(e,t,n){let s;if(t==="viewport")s=yK(e,n);else if(t==="document")s=vK(ia(e));else if(wi(t))s=bK(t,n);else{const r=NI(e);s={...t,x:t.x-r.x,y:t.y-r.y}}return Im(s)}function MI(e,t){const n=Po(e);return n===t||!wi(n)||rc(n)?!1:Si(n).position==="fixed"||MI(n,t)}function _K(e,t){const n=t.get(e);if(n)return n;let s=Df(e,[],!1).filter(o=>wi(o)&&Oc(o)!=="body"),r=null;const i=Si(e).position==="fixed";let a=i?Po(e):e;for(;wi(a)&&!rc(a);){const o=Si(a),l=t2(a);!l&&o.position==="fixed"&&(r=null),(i?!l&&!r:!l&&o.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||mh(a)&&!l&&MI(e,a))?s=s.filter(c=>c!==a):r=o,a=Po(a)}return t.set(e,s),s}function wK(e){let{element:t,boundary:n,rootBoundary:s,strategy:r}=e;const a=[...n==="clippingAncestors"?jg(t)?[]:_K(t,this._c):[].concat(n),s],o=a[0],l=a.reduce((u,c)=>{const f=uE(t,c,r);return u.top=Sl(f.top,u.top),u.right=nc(f.right,u.right),u.bottom=nc(f.bottom,u.bottom),u.left=Sl(f.left,u.left),u},uE(t,o,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function SK(e){const{width:t,height:n}=RI(e);return{width:t,height:n}}function TK(e,t,n){const s=Xi(t),r=ia(t),i=n==="fixed",a=Ml(e,!0,i,t);let o={scrollLeft:0,scrollTop:0};const l=Oo(0);if(s||!s&&!i)if((Oc(t)!=="body"||mh(r))&&(o=qg(t)),s){const m=Ml(t,!0,i,t);l.x=m.x+t.clientLeft,l.y=m.y+t.clientTop}else r&&(l.x=Qy(r));let u=0,c=0;if(r&&!s&&!i){const m=r.getBoundingClientRect();c=m.top+o.scrollTop,u=m.left+o.scrollLeft-Qy(r,m)}const f=a.left+o.scrollLeft-l.x-u,h=a.top+o.scrollTop-l.y-c;return{x:f,y:h,width:a.width,height:a.height}}function w0(e){return Si(e).position==="static"}function cE(e,t){if(!Xi(e)||Si(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ia(e)===n&&(n=n.ownerDocument.body),n}function $I(e,t){const n=Dr(e);if(jg(e))return n;if(!Xi(e)){let r=Po(e);for(;r&&!rc(r);){if(wi(r)&&!w0(r))return r;r=Po(r)}return n}let s=cE(e,t);for(;s&&dK(s)&&w0(s);)s=cE(s,t);return s&&rc(s)&&w0(s)&&!t2(s)?n:s||fK(e)||n}const CK=async function(e){const t=this.getOffsetParent||$I,n=this.getDimensions,s=await n(e.floating);return{reference:TK(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function EK(e){return Si(e).direction==="rtl"}const xK={convertOffsetParentRelativeRectToViewportRelativeRect:mK,getDocumentElement:ia,getClippingRect:wK,getOffsetParent:$I,getElementRects:CK,getClientRects:gK,getDimensions:SK,getScale:Ru,isElement:wi,isRTL:EK};function kK(e,t){let n=null,s;const r=ia(e);function i(){var o;clearTimeout(s),(o=n)==null||o.disconnect(),n=null}function a(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),i();const{left:u,top:c,width:f,height:h}=e.getBoundingClientRect();if(o||t(),!f||!h)return;const m=gp(c),g=gp(r.clientWidth-(u+f)),p=gp(r.clientHeight-(c+h)),v=gp(u),_={rootMargin:-m+"px "+-g+"px "+-p+"px "+-v+"px",threshold:Sl(0,nc(1,l))||1};let b=!0;function T(S){const C=S[0].intersectionRatio;if(C!==l){if(!b)return a();C?a(!1,C):s=setTimeout(()=>{a(!1,1e-7)},1e3)}b=!1}try{n=new IntersectionObserver(T,{..._,root:r.ownerDocument})}catch{n=new IntersectionObserver(T,_)}n.observe(e)}return a(!0),i}function AK(e,t,n,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=s,u=s2(e),c=r||i?[...u?Df(u):[],...Df(t)]:[];c.forEach(y=>{r&&y.addEventListener("scroll",n,{passive:!0}),i&&y.addEventListener("resize",n)});const f=u&&o?kK(u,n):null;let h=-1,m=null;a&&(m=new ResizeObserver(y=>{let[_]=y;_&&_.target===u&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var b;(b=m)==null||b.observe(t)})),n()}),u&&!l&&m.observe(u),m.observe(t));let g,p=l?Ml(e):null;l&&v();function v(){const y=Ml(e);p&&(y.x!==p.x||y.y!==p.y||y.width!==p.width||y.height!==p.height)&&n(),p=y,g=requestAnimationFrame(v)}return n(),()=>{var y;c.forEach(_=>{r&&_.removeEventListener("scroll",n),i&&_.removeEventListener("resize",n)}),f==null||f(),(y=m)==null||y.disconnect(),m=null,l&&cancelAnimationFrame(g)}}const IK=e2,LI=uK,DK=cK,OK=oK,BI=aK,FI=(e,t,n)=>{const s=new Map,r={platform:xK,...n},i={...r.platform,_c:s};return iK(e,t,{...r,platform:i})};Fe({});const PK=e=>{if(!Ht)return;if(!e)return e;const t=ar(e);return t||(yn(e)?t:e)},RK=({middleware:e,placement:t,strategy:n})=>{const s=q(),r=q(),i=q(),a=q(),o=q({}),l={x:i,y:a,placement:t,strategy:n,middlewareData:o},u=async()=>{if(!Ht)return;const c=PK(s),f=ar(r);if(!c||!f)return;const h=await FI(c,f,{placement:d(t),strategy:d(n),middleware:d(e)});Xu(l).forEach(m=>{l[m].value=h[m]})};return gt(()=>{vs(()=>{u()})}),{...l,update:u,referenceRef:s,contentRef:r}},NK=({arrowRef:e,padding:t})=>({name:"arrow",options:{element:e,padding:t},fn(n){const s=d(e);return s?BI({element:s,padding:t}).fn(n):{}}});function MK(e){let t;function n(){if(e.value==null)return;const{selectionStart:r,selectionEnd:i,value:a}=e.value;if(r==null||i==null)return;const o=a.slice(0,Math.max(0,r)),l=a.slice(Math.max(0,i));t={selectionStart:r,selectionEnd:i,value:a,beforeTxt:o,afterTxt:l}}function s(){if(e.value==null||t==null)return;const{value:r}=e.value,{beforeTxt:i,afterTxt:a,selectionStart:o}=t;if(i==null||a==null||o==null)return;let l=r.length;if(r.endsWith(a))l=r.length-a.length;else if(r.startsWith(i))l=i.length;else{const u=i[o-1],c=r.indexOf(u,o-1);c!==-1&&(l=c+1)}e.value.setSelectionRange(l,l)}return[n,s]}const $K=(e,t,n)=>vo(e.subTree).filter(i=>{var a;return Cn(i)&&((a=i.type)==null?void 0:a.name)===t&&!!i.component}).map(i=>i.component.uid).map(i=>n[i]).filter(i=>!!i),r2=(e,t)=>{const n={},s=hn([]);return{children:s,addChild:a=>{n[a.uid]=a,s.value=$K(e,t,n)},removeChild:a=>{delete n[a],s.value=s.value.filter(o=>o.uid!==a)}}},ts=xi({type:String,values:ra,required:!1}),VI=Symbol("size"),UI=()=>{const e=Xe(VI,{});return k(()=>d(e.size)||"")};function gh(e,{beforeFocus:t,afterFocus:n,beforeBlur:s,afterBlur:r}={}){const i=Ot(),{emit:a}=i,o=hn(),l=q(!1),u=h=>{pt(t)&&t(h)||l.value||(l.value=!0,a("focus",h),n==null||n())},c=h=>{var m;pt(s)&&s(h)||h.relatedTarget&&((m=o.value)!=null&&m.contains(h.relatedTarget))||(l.value=!1,a("blur",h),r==null||r())},f=()=>{var h,m;(h=o.value)!=null&&h.contains(document.activeElement)&&o.value!==document.activeElement||(m=e.value)==null||m.focus()};return xe(o,h=>{h&&h.setAttribute("tabindex","-1")}),an(o,"focus",u,!0),an(o,"blur",c,!0),an(o,"click",f,!0),{isFocused:l,wrapperRef:o,handleFocus:u,handleBlur:c}}function Wg({afterComposition:e,emit:t}){const n=q(!1),s=o=>{t==null||t("compositionstart",o),n.value=!0},r=o=>{var l;t==null||t("compositionupdate",o);const u=(l=o.target)==null?void 0:l.value,c=u[u.length-1]||"";n.value=!Aq(c)},i=o=>{t==null||t("compositionend",o),n.value&&(n.value=!1,it(()=>e(o)))};return{isComposing:n,handleComposition:o=>{o.type==="compositionend"?i(o):r(o)},handleCompositionStart:s,handleCompositionUpdate:r,handleCompositionEnd:i}}const HI=Symbol("emptyValuesContextKey"),LK=["",void 0,null],BK=void 0,Pc=Fe({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>pt(e)?!e():!e}}),Kg=(e,t)=>{const n=Ot()?Xe(HI,q({})):q({}),s=k(()=>e.emptyValues||n.value.emptyValues||LK),r=k(()=>pt(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:pt(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:BK),i=a=>s.value.includes(a);return s.value.includes(r.value),{emptyValues:s,valueOnClear:r,isEmptyValue:i}},FK=Fe({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),_s=e=>hi(FK,e),zI=Symbol(),Dm=q();function Gg(e,t=void 0){const n=Ot()?Xe(zI,Dm):Dm;return e?k(()=>{var s,r;return(r=(s=n.value)==null?void 0:s[e])!=null?r:t}):n}function Yg(e,t){const n=Gg(),s=Re(e,k(()=>{var o;return((o=n.value)==null?void 0:o.namespace)||Xd})),r=zt(k(()=>{var o;return(o=n.value)==null?void 0:o.locale})),i=Dc(k(()=>{var o;return((o=n.value)==null?void 0:o.zIndex)||kI})),a=k(()=>{var o;return d(t)||((o=n.value)==null?void 0:o.size)||""});return i2(k(()=>d(n)||{})),{ns:s,locale:r,zIndex:i,size:a}}const i2=(e,t,n=!1)=>{var s;const r=!!Ot(),i=r?Gg():void 0,a=(s=t==null?void 0:t.provide)!=null?s:r?Mt:void 0;if(!a)return;const o=k(()=>{const l=d(e);return i!=null&&i.value?VK(i.value,l):l});return a(zI,o),a(cI,k(()=>o.value.locale)),a(dI,k(()=>o.value.namespace)),a(AI,k(()=>o.value.zIndex)),a(VI,{size:k(()=>o.value.size||"")}),a(HI,k(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(n||!Dm.value)&&(Dm.value=o.value),o},VK=(e,t)=>{const n=[...new Set([...Xu(e),...Xu(t)])],s={};for(const r of n)s[r]=t[r]!==void 0?t[r]:e[r];return s},UK=Fe({a11y:{type:Boolean,default:!0},locale:{type:oe(Object)},size:ts,button:{type:oe(Object)},experimentalFeatures:{type:oe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:oe(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Pc}),li={},HK=J({name:"ElConfigProvider",props:UK,setup(e,{slots:t}){xe(()=>e.message,s=>{Object.assign(li,s??{})},{immediate:!0,deep:!0});const n=i2(e);return()=>fe(t,"default",{config:n==null?void 0:n.value})}}),jI=Tt(HK),zK="2.8.6",jK=(e=[])=>({version:zK,install:(n,s)=>{n[jC]||(n[jC]=!0,e.forEach(r=>n.use(r)),s&&i2(s,n,!0))}}),qK=Fe({zIndex:{type:oe([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),WK={scroll:({scrollTop:e,fixed:t})=>ut(e)&&In(t),[gn]:e=>In(e)};var Ue=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};const qI="ElAffix",KK=J({name:qI}),GK=J({...KK,props:qK,emits:WK,setup(e,{expose:t,emit:n}){const s=e,r=Re("affix"),i=hn(),a=hn(),o=hn(),{height:l}=hF(),{height:u,width:c,top:f,bottom:h,update:m}=iC(a,{windowScroll:!1}),g=iC(i),p=q(!1),v=q(0),y=q(0),_=k(()=>({height:p.value?`${u.value}px`:"",width:p.value?`${c.value}px`:""})),b=k(()=>{if(!p.value)return{};const C=s.offset?Nn(s.offset):0;return{height:`${u.value}px`,width:`${c.value}px`,top:s.position==="top"?C:"",bottom:s.position==="bottom"?C:"",transform:y.value?`translateY(${y.value}px)`:"",zIndex:s.zIndex}}),T=()=>{if(!o.value)return;v.value=o.value instanceof Window?document.documentElement.scrollTop:o.value.scrollTop||0;const{position:C,target:D,offset:N}=s,$=N+u.value;if(C==="top")if(D){const L=g.bottom.value-$;p.value=N>f.value&&g.bottom.value>0,y.value=L<0?L:0}else p.value=N>f.value;else if(D){const L=l.value-g.top.value-$;p.value=l.value-N<h.value&&l.value>g.top.value,y.value=L<0?-L:0}else p.value=l.value-N<h.value},S=()=>{m(),n("scroll",{scrollTop:v.value,fixed:p.value})};return xe(p,C=>n("change",C)),gt(()=>{var C;s.target?(i.value=(C=document.querySelector(s.target))!=null?C:void 0,i.value||es(qI,`Target does not exist: ${s.target}`)):i.value=document.documentElement,o.value=k1(a.value,!0),m()}),an(o,"scroll",S),vs(T),t({update:T,updateRoot:m}),(C,D)=>(x(),j("div",{ref_key:"root",ref:a,class:M(d(r).b()),style:st(d(_))},[O("div",{class:M({[d(r).m("fixed")]:p.value}),style:st(d(b))},[fe(C.$slots,"default")],6)],6))}});var YK=Ue(GK,[["__file","affix.vue"]]);const XK=Tt(YK),QK=Fe({size:{type:oe([Number,String])},color:{type:String}}),JK=J({name:"ElIcon",inheritAttrs:!1}),ZK=J({...JK,props:QK,setup(e){const t=e,n=Re("icon"),s=k(()=>{const{size:r,color:i}=t;return!r&&!i?{}:{fontSize:An(r)?void 0:Nn(r),"--color":i}});return(r,i)=>(x(),j("i",Nt({class:d(n).b(),style:d(s)},r.$attrs),[fe(r.$slots,"default")],16))}});var eG=Ue(ZK,[["__file","icon.vue"]]);const tt=Tt(eG),tG=["light","dark"],nG=Fe({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:Xu(Do),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:tG,default:"light"}}),sG={close:e=>e instanceof MouseEvent},rG=J({name:"ElAlert"}),iG=J({...rG,props:nG,emits:sG,setup(e,{emit:t}){const n=e,{Close:s}=L1,r=os(),i=Re("alert"),a=q(!0),o=k(()=>Do[n.type]),l=k(()=>[i.e("icon"),{[i.is("big")]:!!n.description||!!r.default}]),u=k(()=>({"with-description":n.description||r.default})),c=f=>{a.value=!1,t("close",f)};return(f,h)=>(x(),de(Wn,{name:d(i).b("fade"),persisted:""},{default:P(()=>[yt(O("div",{class:M([d(i).b(),d(i).m(f.type),d(i).is("center",f.center),d(i).is(f.effect)]),role:"alert"},[f.showIcon&&d(o)?(x(),de(d(tt),{key:0,class:M(d(l))},{default:P(()=>[(x(),de(Rt(d(o))))]),_:1},8,["class"])):ae("v-if",!0),O("div",{class:M(d(i).e("content"))},[f.title||f.$slots.title?(x(),j("span",{key:0,class:M([d(i).e("title"),d(u)])},[fe(f.$slots,"title",{},()=>[Te(ce(f.title),1)])],2)):ae("v-if",!0),f.$slots.default||f.description?(x(),j("p",{key:1,class:M(d(i).e("description"))},[fe(f.$slots,"default",{},()=>[Te(ce(f.description),1)])],2)):ae("v-if",!0),f.closable?(x(),j(Ke,{key:2},[f.closeText?(x(),j("div",{key:0,class:M([d(i).e("close-btn"),d(i).is("customed")]),onClick:c},ce(f.closeText),3)):(x(),de(d(tt),{key:1,class:M(d(i).e("close-btn")),onClick:c},{default:P(()=>[E(d(s))]),_:1},8,["class"]))],64)):ae("v-if",!0)],2)],2),[[Bt,a.value]])]),_:3},8,["name"]))}});var aG=Ue(iG,[["__file","alert.vue"]]);const oG=Tt(aG),Gl=Symbol("formContextKey"),Qi=Symbol("formItemContextKey"),Kn=(e,t={})=>{const n=q(void 0),s=t.prop?n:hI("size"),r=t.global?n:UI(),i=t.form?{size:void 0}:Xe(Gl,void 0),a=t.formItem?{size:void 0}:Xe(Qi,void 0);return k(()=>s.value||d(e)||(a==null?void 0:a.size)||(i==null?void 0:i.size)||r.value||"")},Ls=e=>{const t=hI("disabled"),n=Xe(Gl,void 0);return k(()=>t.value||d(e)||(n==null?void 0:n.disabled)||!1)},Bs=()=>{const e=Xe(Gl,void 0),t=Xe(Qi,void 0);return{form:e,formItem:t}},Ai=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:s})=>{n||(n=q(!1)),s||(s=q(!1));const r=q();let i;const a=k(()=>{var o;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((o=t.inputIds)==null?void 0:o.length)<=1)});return gt(()=>{i=xe([nn(e,"id"),n],([o,l])=>{const u=o??(l?void 0:ys().value);u!==r.value&&(t!=null&&t.removeInputId&&(r.value&&t.removeInputId(r.value),!(s!=null&&s.value)&&!l&&u&&t.addInputId(u)),r.value=u)},{immediate:!0})}),Fo(()=>{i&&i(),t!=null&&t.removeInputId&&r.value&&t.removeInputId(r.value)}),{isLabeledByFormItem:a,inputId:r}},lG=Fe({size:{type:String,values:ra},disabled:Boolean}),uG=Fe({...lG,model:Object,rules:{type:oe(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),cG={validate:(e,t,n)=>(Ye(e)||ht(e))&&In(t)&&ht(n)};function dG(){const e=q([]),t=k(()=>{if(!e.value.length)return"0";const i=Math.max(...e.value);return i?`${i}px`:""});function n(i){const a=e.value.indexOf(i);return a===-1&&t.value,a}function s(i,a){if(i&&a){const o=n(a);e.value.splice(o,1,i)}else i&&e.value.push(i)}function r(i){const a=n(i);a>-1&&e.value.splice(a,1)}return{autoLabelWidth:t,registerLabelWidth:s,deregisterLabelWidth:r}}const vp=(e,t)=>{const n=Ds(t);return n.length>0?e.filter(s=>s.prop&&n.includes(s.prop)):e},fG="ElForm",hG=J({name:fG}),pG=J({...hG,props:uG,emits:cG,setup(e,{expose:t,emit:n}){const s=e,r=[],i=Kn(),a=Re("form"),o=k(()=>{const{labelPosition:b,inline:T}=s;return[a.b(),a.m(i.value||"default"),{[a.m(`label-${b}`)]:b,[a.m("inline")]:T}]}),l=b=>r.find(T=>T.prop===b),u=b=>{r.push(b)},c=b=>{b.prop&&r.splice(r.indexOf(b),1)},f=(b=[])=>{s.model&&vp(r,b).forEach(T=>T.resetField())},h=(b=[])=>{vp(r,b).forEach(T=>T.clearValidate())},m=k(()=>!!s.model),g=b=>{if(r.length===0)return[];const T=vp(r,b);return T.length?T:[]},p=async b=>y(void 0,b),v=async(b=[])=>{if(!m.value)return!1;const T=g(b);if(T.length===0)return!0;let S={};for(const C of T)try{await C.validate("")}catch(D){S={...S,...D}}return Object.keys(S).length===0?!0:Promise.reject(S)},y=async(b=[],T)=>{const S=!pt(T);try{const C=await v(b);return C===!0&&await(T==null?void 0:T(C)),C}catch(C){if(C instanceof Error)throw C;const D=C;return s.scrollToError&&_(Object.keys(D)[0]),await(T==null?void 0:T(!1,D)),S&&Promise.reject(D)}},_=b=>{var T;const S=vp(r,b)[0];S&&((T=S.$el)==null||T.scrollIntoView(s.scrollIntoViewOptions))};return xe(()=>s.rules,()=>{s.validateOnRuleChange&&p().catch(b=>void 0)},{deep:!0}),Mt(Gl,Ct({...cs(s),emit:n,resetFields:f,clearValidate:h,validateField:y,getField:l,addField:u,removeField:c,...dG()})),t({validate:p,validateField:y,resetFields:f,clearValidate:h,scrollToField:_,fields:r}),(b,T)=>(x(),j("form",{class:M(d(o))},[fe(b.$slots,"default")],2))}});var mG=Ue(pG,[["__file","form.vue"]]);function cl(){return cl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},cl.apply(this,arguments)}function gG(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Of(e,t)}function Jy(e){return Jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jy(e)}function Of(e,t){return Of=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,r){return s.__proto__=r,s},Of(e,t)}function vG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Wp(e,t,n){return vG()?Wp=Reflect.construct.bind():Wp=function(r,i,a){var o=[null];o.push.apply(o,i);var l=Function.bind.apply(r,o),u=new l;return a&&Of(u,a.prototype),u},Wp.apply(null,arguments)}function yG(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Zy(e){var t=typeof Map=="function"?new Map:void 0;return Zy=function(s){if(s===null||!yG(s))return s;if(typeof s!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(s))return t.get(s);t.set(s,r)}function r(){return Wp(s,arguments,Jy(this).constructor)}return r.prototype=Object.create(s.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Of(r,s)},Zy(e)}var bG=/%[sdj%]/g,_G=function(){};typeof process<"u"&&process.env;function eb(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var s=n.field;t[s]=t[s]||[],t[s].push(n)}),t}function xr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];var r=0,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(bG,function(o){if(o==="%%")return"%";if(r>=i)return o;switch(o){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch{return"[Circular]"}break;default:return o}});return a}return e}function wG(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ds(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||wG(t)&&typeof e=="string"&&!e)}function SG(e,t,n){var s=[],r=0,i=e.length;function a(o){s.push.apply(s,o||[]),r++,r===i&&n(s)}e.forEach(function(o){t(o,a)})}function dE(e,t,n){var s=0,r=e.length;function i(a){if(a&&a.length){n(a);return}var o=s;s=s+1,o<r?t(e[o],i):n([])}i([])}function TG(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var fE=function(e){gG(t,e);function t(n,s){var r;return r=e.call(this,"Async Validation Error")||this,r.errors=n,r.fields=s,r}return t}(Zy(Error));function CG(e,t,n,s,r){if(t.first){var i=new Promise(function(h,m){var g=function(y){return s(y),y.length?m(new fE(y,eb(y))):h(r)},p=TG(e);dE(p,n,g)});return i.catch(function(h){return h}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),l=o.length,u=0,c=[],f=new Promise(function(h,m){var g=function(v){if(c.push.apply(c,v),u++,u===l)return s(c),c.length?m(new fE(c,eb(c))):h(r)};o.length||(s(c),h(r)),o.forEach(function(p){var v=e[p];a.indexOf(p)!==-1?dE(v,n,g):SG(v,n,g)})});return f.catch(function(h){return h}),f}function EG(e){return!!(e&&e.message!==void 0)}function xG(e,t){for(var n=e,s=0;s<t.length;s++){if(n==null)return n;n=n[t[s]]}return n}function hE(e,t){return function(n){var s;return e.fullFields?s=xG(t,e.fullFields):s=t[n.field||e.fullField],EG(n)?(n.field=n.field||e.fullField,n.fieldValue=s,n):{message:typeof n=="function"?n():n,fieldValue:s,field:n.field||e.fullField}}}function pE(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var s=t[n];typeof s=="object"&&typeof e[n]=="object"?e[n]=cl({},e[n],s):e[n]=s}}return e}var WI=function(t,n,s,r,i,a){t.required&&(!s.hasOwnProperty(t.field)||ds(n,a||t.type))&&r.push(xr(i.messages.required,t.fullField))},kG=function(t,n,s,r,i){(/^\s+$/.test(n)||n==="")&&r.push(xr(i.messages.whitespace,t.fullField))},yp,AG=function(){if(yp)return yp;var e="[a-fA-F\\d:]",t=function(T){return T&&T.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",s="[a-fA-F\\d]{1,4}",r=(`
|
||
(?:
|
||
(?:`+s+":){7}(?:"+s+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
||
(?:`+s+":){6}(?:"+n+"|:"+s+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
||
(?:`+s+":){5}(?::"+n+"|(?::"+s+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
||
(?:`+s+":){4}(?:(?::"+s+"){0,1}:"+n+"|(?::"+s+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
||
(?:`+s+":){3}(?:(?::"+s+"){0,2}:"+n+"|(?::"+s+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
||
(?:`+s+":){2}(?:(?::"+s+"){0,3}:"+n+"|(?::"+s+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
||
(?:`+s+":){1}(?:(?::"+s+"){0,4}:"+n+"|(?::"+s+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
||
(?::(?:(?::`+s+"){0,5}:"+n+"|(?::"+s+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
||
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
||
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+n+"$)|(?:^"+r+"$)"),a=new RegExp("^"+n+"$"),o=new RegExp("^"+r+"$"),l=function(T){return T&&T.exact?i:new RegExp("(?:"+t(T)+n+t(T)+")|(?:"+t(T)+r+t(T)+")","g")};l.v4=function(b){return b&&b.exact?a:new RegExp(""+t(b)+n+t(b),"g")},l.v6=function(b){return b&&b.exact?o:new RegExp(""+t(b)+r+t(b),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,h=l.v6().source,m="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",p="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",v="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',_="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+h+"|"+m+g+p+")"+v+y;return yp=new RegExp("(?:^"+_+"$)","i"),yp},mE={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Od={integer:function(t){return Od.number(t)&&parseInt(t,10)===t},float:function(t){return Od.number(t)&&!Od.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Od.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(mE.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(AG())},hex:function(t){return typeof t=="string"&&!!t.match(mE.hex)}},IG=function(t,n,s,r,i){if(t.required&&n===void 0){WI(t,n,s,r,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;a.indexOf(o)>-1?Od[o](n)||r.push(xr(i.messages.types[o],t.fullField,t.type)):o&&typeof n!==t.type&&r.push(xr(i.messages.types[o],t.fullField,t.type))},DG=function(t,n,s,r,i){var a=typeof t.len=="number",o=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,h=typeof n=="number",m=typeof n=="string",g=Array.isArray(n);if(h?f="number":m?f="string":g&&(f="array"),!f)return!1;g&&(c=n.length),m&&(c=n.replace(u,"_").length),a?c!==t.len&&r.push(xr(i.messages[f].len,t.fullField,t.len)):o&&!l&&c<t.min?r.push(xr(i.messages[f].min,t.fullField,t.min)):l&&!o&&c>t.max?r.push(xr(i.messages[f].max,t.fullField,t.max)):o&&l&&(c<t.min||c>t.max)&&r.push(xr(i.messages[f].range,t.fullField,t.min,t.max))},su="enum",OG=function(t,n,s,r,i){t[su]=Array.isArray(t[su])?t[su]:[],t[su].indexOf(n)===-1&&r.push(xr(i.messages[su],t.fullField,t[su].join(", ")))},PG=function(t,n,s,r,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||r.push(xr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||r.push(xr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},fn={required:WI,whitespace:kG,type:IG,range:DG,enum:OG,pattern:PG},RG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n,"string")&&!t.required)return s();fn.required(t,n,r,a,i,"string"),ds(n,"string")||(fn.type(t,n,r,a,i),fn.range(t,n,r,a,i),fn.pattern(t,n,r,a,i),t.whitespace===!0&&fn.whitespace(t,n,r,a,i))}s(a)},NG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n)&&!t.required)return s();fn.required(t,n,r,a,i),n!==void 0&&fn.type(t,n,r,a,i)}s(a)},MG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(n===""&&(n=void 0),ds(n)&&!t.required)return s();fn.required(t,n,r,a,i),n!==void 0&&(fn.type(t,n,r,a,i),fn.range(t,n,r,a,i))}s(a)},$G=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n)&&!t.required)return s();fn.required(t,n,r,a,i),n!==void 0&&fn.type(t,n,r,a,i)}s(a)},LG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n)&&!t.required)return s();fn.required(t,n,r,a,i),ds(n)||fn.type(t,n,r,a,i)}s(a)},BG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n)&&!t.required)return s();fn.required(t,n,r,a,i),n!==void 0&&(fn.type(t,n,r,a,i),fn.range(t,n,r,a,i))}s(a)},FG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n)&&!t.required)return s();fn.required(t,n,r,a,i),n!==void 0&&(fn.type(t,n,r,a,i),fn.range(t,n,r,a,i))}s(a)},VG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(n==null&&!t.required)return s();fn.required(t,n,r,a,i,"array"),n!=null&&(fn.type(t,n,r,a,i),fn.range(t,n,r,a,i))}s(a)},UG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n)&&!t.required)return s();fn.required(t,n,r,a,i),n!==void 0&&fn.type(t,n,r,a,i)}s(a)},HG="enum",zG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n)&&!t.required)return s();fn.required(t,n,r,a,i),n!==void 0&&fn[HG](t,n,r,a,i)}s(a)},jG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n,"string")&&!t.required)return s();fn.required(t,n,r,a,i),ds(n,"string")||fn.pattern(t,n,r,a,i)}s(a)},qG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n,"date")&&!t.required)return s();if(fn.required(t,n,r,a,i),!ds(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),fn.type(t,l,r,a,i),l&&fn.range(t,l.getTime(),r,a,i)}}s(a)},WG=function(t,n,s,r,i){var a=[],o=Array.isArray(n)?"array":typeof n;fn.required(t,n,r,a,i,o),s(a)},S0=function(t,n,s,r,i){var a=t.type,o=[],l=t.required||!t.required&&r.hasOwnProperty(t.field);if(l){if(ds(n,a)&&!t.required)return s();fn.required(t,n,r,o,i,a),ds(n,a)||fn.type(t,n,r,o,i)}s(o)},KG=function(t,n,s,r,i){var a=[],o=t.required||!t.required&&r.hasOwnProperty(t.field);if(o){if(ds(n)&&!t.required)return s();fn.required(t,n,r,a,i)}s(a)},Zd={string:RG,method:NG,number:MG,boolean:$G,regexp:LG,integer:BG,float:FG,array:VG,object:UG,enum:zG,pattern:jG,date:qG,url:S0,hex:S0,email:S0,required:WG,any:KG};function tb(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var nb=tb(),vh=function(){function e(n){this.rules=null,this._messages=nb,this.define(n)}var t=e.prototype;return t.define=function(s){var r=this;if(!s)throw new Error("Cannot configure a schema with no rules");if(typeof s!="object"||Array.isArray(s))throw new Error("Rules must be an object");this.rules={},Object.keys(s).forEach(function(i){var a=s[i];r.rules[i]=Array.isArray(a)?a:[a]})},t.messages=function(s){return s&&(this._messages=pE(tb(),s)),this._messages},t.validate=function(s,r,i){var a=this;r===void 0&&(r={}),i===void 0&&(i=function(){});var o=s,l=r,u=i;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,o),Promise.resolve(o);function c(p){var v=[],y={};function _(T){if(Array.isArray(T)){var S;v=(S=v).concat.apply(S,T)}else v.push(T)}for(var b=0;b<p.length;b++)_(p[b]);v.length?(y=eb(v),u(v,y)):u(null,o)}if(l.messages){var f=this.messages();f===nb&&(f=tb()),pE(f,l.messages),l.messages=f}else l.messages=this.messages();var h={},m=l.keys||Object.keys(this.rules);m.forEach(function(p){var v=a.rules[p],y=o[p];v.forEach(function(_){var b=_;typeof b.transform=="function"&&(o===s&&(o=cl({},o)),y=o[p]=b.transform(y)),typeof b=="function"?b={validator:b}:b=cl({},b),b.validator=a.getValidationMethod(b),b.validator&&(b.field=p,b.fullField=b.fullField||p,b.type=a.getType(b),h[p]=h[p]||[],h[p].push({rule:b,value:y,source:o,field:p}))})});var g={};return CG(h,l,function(p,v){var y=p.rule,_=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");_=_&&(y.required||!y.required&&p.value),y.field=p.field;function b(C,D){return cl({},D,{fullField:y.fullField+"."+C,fullFields:y.fullFields?[].concat(y.fullFields,[C]):[C]})}function T(C){C===void 0&&(C=[]);var D=Array.isArray(C)?C:[C];!l.suppressWarning&&D.length&&e.warning("async-validator:",D),D.length&&y.message!==void 0&&(D=[].concat(y.message));var N=D.map(hE(y,o));if(l.first&&N.length)return g[y.field]=1,v(N);if(!_)v(N);else{if(y.required&&!p.value)return y.message!==void 0?N=[].concat(y.message).map(hE(y,o)):l.error&&(N=[l.error(y,xr(l.messages.required,y.field))]),v(N);var $={};y.defaultField&&Object.keys(p.value).map(function(U){$[U]=y.defaultField}),$=cl({},$,p.rule.fields);var L={};Object.keys($).forEach(function(U){var W=$[U],K=Array.isArray(W)?W:[W];L[U]=K.map(b.bind(null,U))});var z=new e(L);z.messages(l.messages),p.rule.options&&(p.rule.options.messages=l.messages,p.rule.options.error=l.error),z.validate(p.value,p.rule.options||l,function(U){var W=[];N&&N.length&&W.push.apply(W,N),U&&U.length&&W.push.apply(W,U),v(W.length?W:null)})}}var S;if(y.asyncValidator)S=y.asyncValidator(y,p.value,T,p.source,l);else if(y.validator){try{S=y.validator(y,p.value,T,p.source,l)}catch(C){console.error==null||console.error(C),l.suppressValidatorError||setTimeout(function(){throw C},0),T(C.message)}S===!0?T():S===!1?T(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):S instanceof Array?T(S):S instanceof Error&&T(S.message)}S&&S.then&&S.then(function(){return T()},function(C){return T(C)})},function(p){c(p)},o)},t.getType=function(s){if(s.type===void 0&&s.pattern instanceof RegExp&&(s.type="pattern"),typeof s.validator!="function"&&s.type&&!Zd.hasOwnProperty(s.type))throw new Error(xr("Unknown rule type %s",s.type));return s.type||"string"},t.getValidationMethod=function(s){if(typeof s.validator=="function")return s.validator;var r=Object.keys(s),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?Zd.required:Zd[this.getType(s)]||void 0},e}();vh.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Zd[t]=n};vh.warning=_G;vh.messages=nb;vh.validators=Zd;const GG=["","error","validating","success"],YG=Fe({label:String,labelWidth:{type:[String,Number],default:""},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:oe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:oe([Object,Array])},error:String,validateStatus:{type:String,values:GG},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:ra}}),gE="ElLabelWrap";var XG=J({name:gE,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Xe(Gl,void 0),s=Xe(Qi);s||es(gE,"usage: <el-form-item><label-wrap /></el-form-item>");const r=Re("form"),i=q(),a=q(0),o=()=>{var c;if((c=i.value)!=null&&c.firstElementChild){const f=window.getComputedStyle(i.value.firstElementChild).width;return Math.ceil(Number.parseFloat(f))}else return 0},l=(c="update")=>{it(()=>{t.default&&e.isAutoWidth&&(c==="update"?a.value=o():c==="remove"&&(n==null||n.deregisterLabelWidth(a.value)))})},u=()=>l("update");return gt(()=>{u()}),un(()=>{l("remove")}),Na(()=>u()),xe(a,(c,f)=>{e.updateAll&&(n==null||n.registerLabelWidth(c,f))}),Sn(k(()=>{var c,f;return(f=(c=i.value)==null?void 0:c.firstElementChild)!=null?f:null}),u),()=>{var c,f;if(!t)return null;const{isAutoWidth:h}=e;if(h){const m=n==null?void 0:n.autoLabelWidth,g=s==null?void 0:s.hasLabel,p={};if(g&&m&&m!=="auto"){const v=Math.max(0,Number.parseInt(m,10)-a.value),_=(s.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";v&&(p[_]=`${v}px`)}return E("div",{ref:i,class:[r.be("item","label-wrap")],style:p},[(c=t.default)==null?void 0:c.call(t)])}else return E(Ke,{ref:i},[(f=t.default)==null?void 0:f.call(t)])}}});const QG=J({name:"ElFormItem"}),JG=J({...QG,props:YG,setup(e,{expose:t}){const n=e,s=os(),r=Xe(Gl,void 0),i=Xe(Qi,void 0),a=Kn(void 0,{formItem:!1}),o=Re("form-item"),l=ys().value,u=q([]),c=q(""),f=YB(c,100),h=q(""),m=q();let g,p=!1;const v=k(()=>n.labelPosition||(r==null?void 0:r.labelPosition)),y=k(()=>{if(v.value==="top")return{};const ge=Nn(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return ge?{width:ge}:{}}),_=k(()=>{if(v.value==="top"||r!=null&&r.inline)return{};if(!n.label&&!n.labelWidth&&L)return{};const ge=Nn(n.labelWidth||(r==null?void 0:r.labelWidth)||"");return!n.label&&!s.label?{marginLeft:ge}:{}}),b=k(()=>[o.b(),o.m(a.value),o.is("error",c.value==="error"),o.is("validating",c.value==="validating"),o.is("success",c.value==="success"),o.is("required",X.value||n.required),o.is("no-asterisk",r==null?void 0:r.hideRequiredAsterisk),(r==null?void 0:r.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[o.m("feedback")]:r==null?void 0:r.statusIcon,[o.m(`label-${v.value}`)]:v.value}]),T=k(()=>In(n.inlineMessage)?n.inlineMessage:(r==null?void 0:r.inlineMessage)||!1),S=k(()=>[o.e("error"),{[o.em("error","inline")]:T.value}]),C=k(()=>n.prop?ht(n.prop)?n.prop:n.prop.join("."):""),D=k(()=>!!(n.label||s.label)),N=k(()=>n.for||(u.value.length===1?u.value[0]:void 0)),$=k(()=>!N.value&&D.value),L=!!i,z=k(()=>{const ge=r==null?void 0:r.model;if(!(!ge||!n.prop))return jp(ge,n.prop).value}),U=k(()=>{const{required:ge}=n,pe=[];n.rules&&pe.push(...Ds(n.rules));const Oe=r==null?void 0:r.rules;if(Oe&&n.prop){const Pe=jp(Oe,n.prop).value;Pe&&pe.push(...Ds(Pe))}if(ge!==void 0){const Pe=pe.map((ve,ee)=>[ve,ee]).filter(([ve])=>Object.keys(ve).includes("required"));if(Pe.length>0)for(const[ve,ee]of Pe)ve.required!==ge&&(pe[ee]={...ve,required:ge});else pe.push({required:ge})}return pe}),W=k(()=>U.value.length>0),K=ge=>U.value.filter(Oe=>!Oe.trigger||!ge?!0:Array.isArray(Oe.trigger)?Oe.trigger.includes(ge):Oe.trigger===ge).map(({trigger:Oe,...Pe})=>Pe),X=k(()=>U.value.some(ge=>ge.required)),B=k(()=>{var ge;return f.value==="error"&&n.showMessage&&((ge=r==null?void 0:r.showMessage)!=null?ge:!0)}),Q=k(()=>`${n.label||""}${(r==null?void 0:r.labelSuffix)||""}`),Y=ge=>{c.value=ge},F=ge=>{var pe,Oe;const{errors:Pe,fields:ve}=ge;(!Pe||!ve)&&console.error(ge),Y("error"),h.value=Pe?(Oe=(pe=Pe==null?void 0:Pe[0])==null?void 0:pe.message)!=null?Oe:`${n.prop} is required`:"",r==null||r.emit("validate",n.prop,!1,h.value)},H=()=>{Y("success"),r==null||r.emit("validate",n.prop,!0,"")},Z=async ge=>{const pe=C.value;return new vh({[pe]:ge}).validate({[pe]:z.value},{firstFields:!0}).then(()=>(H(),!0)).catch(Pe=>(F(Pe),Promise.reject(Pe)))},se=async(ge,pe)=>{if(p||!n.prop)return!1;const Oe=pt(pe);if(!W.value)return pe==null||pe(!1),!1;const Pe=K(ge);return Pe.length===0?(pe==null||pe(!0),!0):(Y("validating"),Z(Pe).then(()=>(pe==null||pe(!0),!0)).catch(ve=>{const{fields:ee}=ve;return pe==null||pe(!1,ee),Oe?!1:Promise.reject(ee)}))},ne=()=>{Y(""),h.value="",p=!1},we=async()=>{const ge=r==null?void 0:r.model;if(!ge||!n.prop)return;const pe=jp(ge,n.prop);p=!0,pe.value=LC(g),await it(),ne(),p=!1},De=ge=>{u.value.includes(ge)||u.value.push(ge)},Ee=ge=>{u.value=u.value.filter(pe=>pe!==ge)};xe(()=>n.error,ge=>{h.value=ge||"",Y(ge?"error":"")},{immediate:!0}),xe(()=>n.validateStatus,ge=>Y(ge||""));const te=Ct({...cs(n),$el:m,size:a,validateState:c,labelId:l,inputIds:u,isGroup:$,hasLabel:D,fieldValue:z,addInputId:De,removeInputId:Ee,resetField:we,clearValidate:ne,validate:se});return Mt(Qi,te),gt(()=>{n.prop&&(r==null||r.addField(te),g=LC(z.value))}),un(()=>{r==null||r.removeField(te)}),t({size:a,validateMessage:h,validateState:c,validate:se,clearValidate:ne,resetField:we}),(ge,pe)=>{var Oe;return x(),j("div",{ref_key:"formItemRef",ref:m,class:M(d(b)),role:d($)?"group":void 0,"aria-labelledby":d($)?d(l):void 0},[E(d(XG),{"is-auto-width":d(y).width==="auto","update-all":((Oe=d(r))==null?void 0:Oe.labelWidth)==="auto"},{default:P(()=>[d(D)?(x(),de(Rt(d(N)?"label":"div"),{key:0,id:d(l),for:d(N),class:M(d(o).e("label")),style:st(d(y))},{default:P(()=>[fe(ge.$slots,"label",{label:d(Q)},()=>[Te(ce(d(Q)),1)])]),_:3},8,["id","for","class","style"])):ae("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),O("div",{class:M(d(o).e("content")),style:st(d(_))},[fe(ge.$slots,"default"),E(n3,{name:`${d(o).namespace.value}-zoom-in-top`},{default:P(()=>[d(B)?fe(ge.$slots,"error",{key:0,error:h.value},()=>[O("div",{class:M(d(S))},ce(h.value),3)]):ae("v-if",!0)]),_:3},8,["name"])],6)],10,["role","aria-labelledby"])}}});var KI=Ue(JG,[["__file","form-item.vue"]]);const Ba=Tt(mG,{FormItem:KI}),Fa=kn(KI);let ai;const ZG=`
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
${u1()?"":"overflow:hidden !important;"}
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
`,eY=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function tY(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),s=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),r=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:eY.map(a=>`${a}:${t.getPropertyValue(a)}`).join(";"),paddingSize:s,borderSize:r,boxSizing:n}}function vE(e,t=1,n){var s;ai||(ai=document.createElement("textarea"),document.body.appendChild(ai));const{paddingSize:r,borderSize:i,boxSizing:a,contextStyle:o}=tY(e);ai.setAttribute("style",`${o};${ZG}`),ai.value=e.value||e.placeholder||"";let l=ai.scrollHeight;const u={};a==="border-box"?l=l+i:a==="content-box"&&(l=l-r),ai.value="";const c=ai.scrollHeight-r;if(ut(t)){let f=c*t;a==="border-box"&&(f=f+r+i),l=Math.max(f,l),u.minHeight=`${f}px`}if(ut(n)){let f=c*n;a==="border-box"&&(f=f+r+i),l=Math.min(f,l)}return u.height=`${l}px`,(s=ai.parentNode)==null||s.removeChild(ai),ai=void 0,u}const a2=Fe({id:{type:String,default:void 0},size:ts,disabled:Boolean,modelValue:{type:oe([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:oe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,showPassword:Boolean,showWordLimit:Boolean,suffixIcon:{type:ln},prefixIcon:{type:ln},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:oe([Object,Array,String]),default:()=>xn({})},autofocus:Boolean,rows:{type:Number,default:2},..._s(["ariaLabel"])}),nY={[At]:e=>ht(e),input:e=>ht(e),change:e=>ht(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},sY=J({name:"ElInput",inheritAttrs:!1}),rY=J({...sY,props:a2,emits:nY,setup(e,{expose:t,emit:n}){const s=e,r=zl(),i=os(),a=k(()=>{const Ae={};return s.containerRole==="combobox"&&(Ae["aria-haspopup"]=r["aria-haspopup"],Ae["aria-owns"]=r["aria-owns"],Ae["aria-expanded"]=r["aria-expanded"]),Ae}),o=k(()=>[s.type==="textarea"?v.b():p.b(),p.m(m.value),p.is("disabled",g.value),p.is("exceed",ne.value),{[p.b("group")]:i.prepend||i.append,[p.m("prefix")]:i.prefix||s.prefixIcon,[p.m("suffix")]:i.suffix||s.suffixIcon||s.clearable||s.showPassword,[p.bm("suffix","password-clear")]:F.value&&H.value,[p.b("hidden")]:s.type==="hidden"},r.class]),l=k(()=>[p.e("wrapper"),p.is("focus",$.value)]),u=F1({excludeKeys:k(()=>Object.keys(a.value))}),{form:c,formItem:f}=Bs(),{inputId:h}=Ai(s,{formItemContext:f}),m=Kn(),g=Ls(),p=Re("input"),v=Re("textarea"),y=hn(),_=hn(),b=q(!1),T=q(!1),S=q(),C=hn(s.inputStyle),D=k(()=>y.value||_.value),{wrapperRef:N,isFocused:$,handleFocus:L,handleBlur:z}=gh(D,{beforeFocus(){return g.value},afterBlur(){var Ae;s.validateEvent&&((Ae=f==null?void 0:f.validate)==null||Ae.call(f,"blur").catch(nt=>void 0))}}),U=k(()=>{var Ae;return(Ae=c==null?void 0:c.statusIcon)!=null?Ae:!1}),W=k(()=>(f==null?void 0:f.validateState)||""),K=k(()=>W.value&&B1[W.value]),X=k(()=>T.value?gq:Tj),B=k(()=>[r.style]),Q=k(()=>[s.inputStyle,C.value,{resize:s.resize}]),Y=k(()=>rs(s.modelValue)?"":String(s.modelValue)),F=k(()=>s.clearable&&!g.value&&!s.readonly&&!!Y.value&&($.value||b.value)),H=k(()=>s.showPassword&&!g.value&&!!Y.value&&(!!Y.value||$.value)),Z=k(()=>s.showWordLimit&&!!s.maxlength&&(s.type==="text"||s.type==="textarea")&&!g.value&&!s.readonly&&!s.showPassword),se=k(()=>Y.value.length),ne=k(()=>!!Z.value&&se.value>Number(s.maxlength)),we=k(()=>!!i.suffix||!!s.suffixIcon||F.value||s.showPassword||Z.value||!!W.value&&U.value),[De,Ee]=MK(y);Sn(_,Ae=>{if(pe(),!Z.value||s.resize!=="both")return;const nt=Ae[0],{width:_t}=nt.contentRect;S.value={right:`calc(100% - ${_t+15+6}px)`}});const te=()=>{const{type:Ae,autosize:nt}=s;if(!(!Ht||Ae!=="textarea"||!_.value))if(nt){const _t=Pt(nt)?nt.minRows:void 0,xt=Pt(nt)?nt.maxRows:void 0,It=vE(_.value,_t,xt);C.value={overflowY:"hidden",...It},it(()=>{_.value.offsetHeight,C.value=It})}else C.value={minHeight:vE(_.value).minHeight}},pe=(Ae=>{let nt=!1;return()=>{var _t;if(nt||!s.autosize)return;((_t=_.value)==null?void 0:_t.offsetParent)===null||(Ae(),nt=!0)}})(te),Oe=()=>{const Ae=D.value,nt=s.formatter?s.formatter(Y.value):Y.value;!Ae||Ae.value===nt||(Ae.value=nt)},Pe=async Ae=>{De();let{value:nt}=Ae.target;if(s.formatter&&(nt=s.parser?s.parser(nt):nt),!ee.value){if(nt===Y.value){Oe();return}n(At,nt),n("input",nt),await it(),Oe(),Ee()}},ve=Ae=>{n("change",Ae.target.value)},{isComposing:ee,handleCompositionStart:re,handleCompositionUpdate:Se,handleCompositionEnd:Le}=Wg({emit:n,afterComposition:Pe}),_e=()=>{T.value=!T.value,ke()},ke=async()=>{var Ae;await it(),(Ae=D.value)==null||Ae.focus()},Be=()=>{var Ae;return(Ae=D.value)==null?void 0:Ae.blur()},Ie=Ae=>{b.value=!1,n("mouseleave",Ae)},ze=Ae=>{b.value=!0,n("mouseenter",Ae)},Ve=Ae=>{n("keydown",Ae)},Ze=()=>{var Ae;(Ae=D.value)==null||Ae.select()},je=()=>{n(At,""),n("change",""),n("clear"),n("input","")};return xe(()=>s.modelValue,()=>{var Ae;it(()=>te()),s.validateEvent&&((Ae=f==null?void 0:f.validate)==null||Ae.call(f,"change").catch(nt=>void 0))}),xe(Y,()=>Oe()),xe(()=>s.type,async()=>{await it(),Oe(),te()}),gt(()=>{!s.formatter&&s.parser,Oe(),it(te)}),t({input:y,textarea:_,ref:D,textareaStyle:Q,autosize:nn(s,"autosize"),isComposing:ee,focus:ke,blur:Be,select:Ze,clear:je,resizeTextarea:te}),(Ae,nt)=>(x(),j("div",Nt(d(a),{class:[d(o),{[d(p).bm("group","append")]:Ae.$slots.append,[d(p).bm("group","prepend")]:Ae.$slots.prepend}],style:d(B),role:Ae.containerRole,onMouseenter:ze,onMouseleave:Ie}),[ae(" input "),Ae.type!=="textarea"?(x(),j(Ke,{key:0},[ae(" prepend slot "),Ae.$slots.prepend?(x(),j("div",{key:0,class:M(d(p).be("group","prepend"))},[fe(Ae.$slots,"prepend")],2)):ae("v-if",!0),O("div",{ref_key:"wrapperRef",ref:N,class:M(d(l))},[ae(" prefix slot "),Ae.$slots.prefix||Ae.prefixIcon?(x(),j("span",{key:0,class:M(d(p).e("prefix"))},[O("span",{class:M(d(p).e("prefix-inner"))},[fe(Ae.$slots,"prefix"),Ae.prefixIcon?(x(),de(d(tt),{key:0,class:M(d(p).e("icon"))},{default:P(()=>[(x(),de(Rt(Ae.prefixIcon)))]),_:1},8,["class"])):ae("v-if",!0)],2)],2)):ae("v-if",!0),O("input",Nt({id:d(h),ref_key:"input",ref:y,class:d(p).e("inner")},d(u),{minlength:Ae.minlength,maxlength:Ae.maxlength,type:Ae.showPassword?T.value?"text":"password":Ae.type,disabled:d(g),readonly:Ae.readonly,autocomplete:Ae.autocomplete,tabindex:Ae.tabindex,"aria-label":Ae.ariaLabel,placeholder:Ae.placeholder,style:Ae.inputStyle,form:Ae.form,autofocus:Ae.autofocus,onCompositionstart:d(re),onCompositionupdate:d(Se),onCompositionend:d(Le),onInput:Pe,onChange:ve,onKeydown:Ve}),null,16,["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","onCompositionstart","onCompositionupdate","onCompositionend"]),ae(" suffix slot "),d(we)?(x(),j("span",{key:1,class:M(d(p).e("suffix"))},[O("span",{class:M(d(p).e("suffix-inner"))},[!d(F)||!d(H)||!d(Z)?(x(),j(Ke,{key:0},[fe(Ae.$slots,"suffix"),Ae.suffixIcon?(x(),de(d(tt),{key:0,class:M(d(p).e("icon"))},{default:P(()=>[(x(),de(Rt(Ae.suffixIcon)))]),_:1},8,["class"])):ae("v-if",!0)],64)):ae("v-if",!0),d(F)?(x(),de(d(tt),{key:1,class:M([d(p).e("icon"),d(p).e("clear")]),onMousedown:ft(d(sn),["prevent"]),onClick:je},{default:P(()=>[E(d(Uo))]),_:1},8,["class","onMousedown"])):ae("v-if",!0),d(H)?(x(),de(d(tt),{key:2,class:M([d(p).e("icon"),d(p).e("password")]),onClick:_e},{default:P(()=>[(x(),de(Rt(d(X))))]),_:1},8,["class"])):ae("v-if",!0),d(Z)?(x(),j("span",{key:3,class:M(d(p).e("count"))},[O("span",{class:M(d(p).e("count-inner"))},ce(d(se))+" / "+ce(Ae.maxlength),3)],2)):ae("v-if",!0),d(W)&&d(K)&&d(U)?(x(),de(d(tt),{key:4,class:M([d(p).e("icon"),d(p).e("validateIcon"),d(p).is("loading",d(W)==="validating")])},{default:P(()=>[(x(),de(Rt(d(K))))]),_:1},8,["class"])):ae("v-if",!0)],2)],2)):ae("v-if",!0)],2),ae(" append slot "),Ae.$slots.append?(x(),j("div",{key:1,class:M(d(p).be("group","append"))},[fe(Ae.$slots,"append")],2)):ae("v-if",!0)],64)):(x(),j(Ke,{key:1},[ae(" textarea "),O("textarea",Nt({id:d(h),ref_key:"textarea",ref:_,class:[d(v).e("inner"),d(p).is("focus",d($))]},d(u),{minlength:Ae.minlength,maxlength:Ae.maxlength,tabindex:Ae.tabindex,disabled:d(g),readonly:Ae.readonly,autocomplete:Ae.autocomplete,style:d(Q),"aria-label":Ae.ariaLabel,placeholder:Ae.placeholder,form:Ae.form,autofocus:Ae.autofocus,rows:Ae.rows,onCompositionstart:d(re),onCompositionupdate:d(Se),onCompositionend:d(Le),onInput:Pe,onFocus:d(L),onBlur:d(z),onChange:ve,onKeydown:Ve}),null,16,["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","onCompositionstart","onCompositionupdate","onCompositionend","onFocus","onBlur"]),d(Z)?(x(),j("span",{key:0,style:st(S.value),class:M(d(p).e("count"))},ce(d(se))+" / "+ce(Ae.maxlength),7)):ae("v-if",!0)],64))],16,["role"]))}});var iY=Ue(rY,[["__file","input.vue"]]);const Un=Tt(iY),ru=4,GI={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},aY=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),o2=Symbol("scrollbarContextKey"),oY=Fe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),lY="Thumb",uY=J({__name:"thumb",props:oY,setup(e){const t=e,n=Xe(o2),s=Re("scrollbar");n||es(lY,"can not inject scrollbar context");const r=q(),i=q(),a=q({}),o=q(!1);let l=!1,u=!1,c=Ht?document.onselectstart:null;const f=k(()=>GI[t.vertical?"vertical":"horizontal"]),h=k(()=>aY({size:t.size,move:t.move,bar:f.value})),m=k(()=>r.value[f.value.offset]**2/n.wrapElement[f.value.scrollSize]/t.ratio/i.value[f.value.offset]),g=C=>{var D;if(C.stopPropagation(),C.ctrlKey||[1,2].includes(C.button))return;(D=window.getSelection())==null||D.removeAllRanges(),v(C);const N=C.currentTarget;N&&(a.value[f.value.axis]=N[f.value.offset]-(C[f.value.client]-N.getBoundingClientRect()[f.value.direction]))},p=C=>{if(!i.value||!r.value||!n.wrapElement)return;const D=Math.abs(C.target.getBoundingClientRect()[f.value.direction]-C[f.value.client]),N=i.value[f.value.offset]/2,$=(D-N)*100*m.value/r.value[f.value.offset];n.wrapElement[f.value.scroll]=$*n.wrapElement[f.value.scrollSize]/100},v=C=>{C.stopImmediatePropagation(),l=!0,document.addEventListener("mousemove",y),document.addEventListener("mouseup",_),c=document.onselectstart,document.onselectstart=()=>!1},y=C=>{if(!r.value||!i.value||l===!1)return;const D=a.value[f.value.axis];if(!D)return;const N=(r.value.getBoundingClientRect()[f.value.direction]-C[f.value.client])*-1,$=i.value[f.value.offset]-D,L=(N-$)*100*m.value/r.value[f.value.offset];n.wrapElement[f.value.scroll]=L*n.wrapElement[f.value.scrollSize]/100},_=()=>{l=!1,a.value[f.value.axis]=0,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",_),S(),u&&(o.value=!1)},b=()=>{u=!1,o.value=!!t.size},T=()=>{u=!0,o.value=l};un(()=>{S(),document.removeEventListener("mouseup",_)});const S=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return an(nn(n,"scrollbarElement"),"mousemove",b),an(nn(n,"scrollbarElement"),"mouseleave",T),(C,D)=>(x(),de(Wn,{name:d(s).b("fade"),persisted:""},{default:P(()=>[yt(O("div",{ref_key:"instance",ref:r,class:M([d(s).e("bar"),d(s).is(d(f).key)]),onMousedown:p},[O("div",{ref_key:"thumb",ref:i,class:M(d(s).e("thumb")),style:st(d(h)),onMousedown:g},null,38)],34),[[Bt,C.always||o.value]])]),_:1},8,["name"]))}});var yE=Ue(uY,[["__file","thumb.vue"]]);const cY=Fe({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),dY=J({__name:"bar",props:cY,setup(e,{expose:t}){const n=e,s=Xe(o2),r=q(0),i=q(0),a=q(""),o=q(""),l=q(1),u=q(1);return t({handleScroll:h=>{if(h){const m=h.offsetHeight-ru,g=h.offsetWidth-ru;i.value=h.scrollTop*100/m*l.value,r.value=h.scrollLeft*100/g*u.value}},update:()=>{const h=s==null?void 0:s.wrapElement;if(!h)return;const m=h.offsetHeight-ru,g=h.offsetWidth-ru,p=m**2/h.scrollHeight,v=g**2/h.scrollWidth,y=Math.max(p,n.minSize),_=Math.max(v,n.minSize);l.value=p/(m-p)/(y/(m-y)),u.value=v/(g-v)/(_/(g-_)),o.value=y+ru<m?`${y}px`:"",a.value=_+ru<g?`${_}px`:""}}),(h,m)=>(x(),j(Ke,null,[E(yE,{move:r.value,ratio:u.value,size:a.value,always:h.always},null,8,["move","ratio","size","always"]),E(yE,{move:i.value,ratio:l.value,size:o.value,vertical:"",always:h.always},null,8,["move","ratio","size","always"])],64))}});var fY=Ue(dY,[["__file","bar.vue"]]);const hY=Fe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:oe([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,..._s(["ariaLabel","ariaOrientation"])}),pY={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ut)},mY="ElScrollbar",gY=J({name:mY}),vY=J({...gY,props:hY,emits:pY,setup(e,{expose:t,emit:n}){const s=e,r=Re("scrollbar");let i,a,o=0,l=0;const u=q(),c=q(),f=q(),h=q(),m=k(()=>{const S={};return s.height&&(S.height=Nn(s.height)),s.maxHeight&&(S.maxHeight=Nn(s.maxHeight)),[s.wrapStyle,S]}),g=k(()=>[s.wrapClass,r.e("wrap"),{[r.em("wrap","hidden-default")]:!s.native}]),p=k(()=>[r.e("view"),s.viewClass]),v=()=>{var S;c.value&&((S=h.value)==null||S.handleScroll(c.value),o=c.value.scrollTop,l=c.value.scrollLeft,n("scroll",{scrollTop:c.value.scrollTop,scrollLeft:c.value.scrollLeft}))};function y(S,C){Pt(S)?c.value.scrollTo(S):ut(S)&&ut(C)&&c.value.scrollTo(S,C)}const _=S=>{ut(S)&&(c.value.scrollTop=S)},b=S=>{ut(S)&&(c.value.scrollLeft=S)},T=()=>{var S;(S=h.value)==null||S.update()};return xe(()=>s.noresize,S=>{S?(i==null||i(),a==null||a()):({stop:i}=Sn(f,T),a=an("resize",T))},{immediate:!0}),xe(()=>[s.maxHeight,s.height],()=>{s.native||it(()=>{var S;T(),c.value&&((S=h.value)==null||S.handleScroll(c.value))})}),Mt(o2,Ct({scrollbarElement:u,wrapElement:c})),s1(()=>{c.value&&(c.value.scrollTop=o,c.value.scrollLeft=l)}),gt(()=>{s.native||it(()=>{T()})}),Na(()=>T()),t({wrapRef:c,update:T,scrollTo:y,setScrollTop:_,setScrollLeft:b,handleScroll:v}),(S,C)=>(x(),j("div",{ref_key:"scrollbarRef",ref:u,class:M(d(r).b())},[O("div",{ref_key:"wrapRef",ref:c,class:M(d(g)),style:st(d(m)),tabindex:S.tabindex,onScroll:v},[(x(),de(Rt(S.tag),{id:S.id,ref_key:"resizeRef",ref:f,class:M(d(p)),style:st(S.viewStyle),role:S.role,"aria-label":S.ariaLabel,"aria-orientation":S.ariaOrientation},{default:P(()=>[fe(S.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,["tabindex"]),S.native?ae("v-if",!0):(x(),de(fY,{key:0,ref_key:"barRef",ref:h,always:S.always,"min-size":S.minSize},null,8,["always","min-size"]))],2))}});var yY=Ue(vY,[["__file","scrollbar.vue"]]);const aa=Tt(yY),l2=Symbol("popper"),YI=Symbol("popperContent"),bY=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],XI=Fe({role:{type:String,values:bY,default:"tooltip"}}),_Y=J({name:"ElPopper",inheritAttrs:!1}),wY=J({..._Y,props:XI,setup(e,{expose:t}){const n=e,s=q(),r=q(),i=q(),a=q(),o=k(()=>n.role),l={triggerRef:s,popperInstanceRef:r,contentRef:i,referenceRef:a,role:o};return t(l),Mt(l2,l),(u,c)=>fe(u.$slots,"default")}});var SY=Ue(wY,[["__file","popper.vue"]]);const QI=Fe({arrowOffset:{type:Number,default:5}}),TY=J({name:"ElPopperArrow",inheritAttrs:!1}),CY=J({...TY,props:QI,setup(e,{expose:t}){const n=e,s=Re("popper"),{arrowOffset:r,arrowRef:i,arrowStyle:a}=Xe(YI,void 0);return xe(()=>n.arrowOffset,o=>{r.value=o}),un(()=>{i.value=void 0}),t({arrowRef:i}),(o,l)=>(x(),j("span",{ref_key:"arrowRef",ref:i,class:M(d(s).e("arrow")),style:st(d(a)),"data-popper-arrow":""},null,6))}});var EY=Ue(CY,[["__file","arrow.vue"]]);const xY="ElOnlyChild",JI=J({name:xY,setup(e,{slots:t,attrs:n}){var s;const r=Xe(xI),i=QW((s=r==null?void 0:r.setForwardRef)!=null?s:sn);return()=>{var a;const o=(a=t.default)==null?void 0:a.call(t,n);if(!o||o.length>1)return null;const l=ZI(o);return l?yt(Ea(l,n),[[i]]):null}}});function ZI(e){if(!e)return null;const t=e;for(const n of t){if(Pt(n))switch(n.type){case ps:continue;case Ec:case"svg":return bE(n);case Ke:return ZI(n.children);default:return n}return bE(n)}return null}function bE(e){const t=Re("only-child");return E("span",{class:t.e("content")},[e])}const eD=Fe({virtualRef:{type:oe(Object)},virtualTriggering:Boolean,onMouseenter:{type:oe(Function)},onMouseleave:{type:oe(Function)},onClick:{type:oe(Function)},onKeydown:{type:oe(Function)},onFocus:{type:oe(Function)},onBlur:{type:oe(Function)},onContextmenu:{type:oe(Function)},id:String,open:Boolean}),kY=J({name:"ElPopperTrigger",inheritAttrs:!1}),AY=J({...kY,props:eD,setup(e,{expose:t}){const n=e,{role:s,triggerRef:r}=Xe(l2,void 0);XW(r);const i=k(()=>o.value?n.id:void 0),a=k(()=>{if(s&&s.value==="tooltip")return n.open&&n.id?n.id:void 0}),o=k(()=>{if(s&&s.value!=="tooltip")return s.value}),l=k(()=>o.value?`${n.open}`:void 0);let u;const c=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return gt(()=>{xe(()=>n.virtualRef,f=>{f&&(r.value=ar(f))},{immediate:!0}),xe(r,(f,h)=>{u==null||u(),u=void 0,Ir(f)&&(c.forEach(m=>{var g;const p=n[m];p&&(f.addEventListener(m.slice(2).toLowerCase(),p),(g=h==null?void 0:h.removeEventListener)==null||g.call(h,m.slice(2).toLowerCase(),p))}),u=xe([i,a,o,l],m=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((g,p)=>{rs(m[p])?f.removeAttribute(g):f.setAttribute(g,m[p])})},{immediate:!0})),Ir(h)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(m=>h.removeAttribute(m))},{immediate:!0})}),un(()=>{if(u==null||u(),u=void 0,r.value&&Ir(r.value)){const f=r.value;c.forEach(h=>{const m=n[h];m&&f.removeEventListener(h.slice(2).toLowerCase(),m)}),r.value=void 0}}),t({triggerRef:r}),(f,h)=>f.virtualTriggering?ae("v-if",!0):(x(),de(d(JI),Nt({key:0},f.$attrs,{"aria-controls":d(i),"aria-describedby":d(a),"aria-expanded":d(l),"aria-haspopup":d(o)}),{default:P(()=>[fe(f.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var IY=Ue(AY,[["__file","trigger.vue"]]);const T0="focus-trap.focus-after-trapped",C0="focus-trap.focus-after-released",DY="focus-trap.focusout-prevented",_E={cancelable:!0,bubbles:!1},OY={cancelable:!0,bubbles:!1},wE="focusAfterTrapped",SE="focusAfterReleased",u2=Symbol("elFocusTrap"),c2=q(),Xg=q(0),d2=q(0);let bp=0;const tD=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const r=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||r?NodeFilter.FILTER_SKIP:s.tabIndex>=0||s===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},TE=(e,t)=>{for(const n of e)if(!PY(n,t))return n},PY=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},RY=e=>{const t=tD(e),n=TE(t,e),s=TE(t.reverse(),e);return[n,s]},NY=e=>e instanceof HTMLInputElement&&"select"in e,eo=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),d2.value=window.performance.now(),e!==n&&NY(e)&&t&&e.select()}};function CE(e,t){const n=[...e],s=e.indexOf(t);return s!==-1&&n.splice(s,1),n}const MY=()=>{let e=[];return{push:s=>{const r=e[0];r&&s!==r&&r.pause(),e=CE(e,s),e.unshift(s)},remove:s=>{var r,i;e=CE(e,s),(i=(r=e[0])==null?void 0:r.resume)==null||i.call(r)}}},$Y=(e,t=!1)=>{const n=document.activeElement;for(const s of e)if(eo(s,t),document.activeElement!==n)return},EE=MY(),LY=()=>Xg.value>d2.value,_p=()=>{c2.value="pointer",Xg.value=window.performance.now()},xE=()=>{c2.value="keyboard",Xg.value=window.performance.now()},BY=()=>(gt(()=>{bp===0&&(document.addEventListener("mousedown",_p),document.addEventListener("touchstart",_p),document.addEventListener("keydown",xE)),bp++}),un(()=>{bp--,bp<=0&&(document.removeEventListener("mousedown",_p),document.removeEventListener("touchstart",_p),document.removeEventListener("keydown",xE))}),{focusReason:c2,lastUserFocusTimestamp:Xg,lastAutomatedFocusTimestamp:d2}),wp=e=>new CustomEvent(DY,{...OY,detail:e}),FY=J({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[wE,SE,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=q();let s,r;const{focusReason:i}=BY();qW(g=>{e.trapped&&!a.paused&&t("release-requested",g)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},o=g=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:p,altKey:v,ctrlKey:y,metaKey:_,currentTarget:b,shiftKey:T}=g,{loop:S}=e,C=p===at.tab&&!v&&!y&&!_,D=document.activeElement;if(C&&D){const N=b,[$,L]=RY(N);if($&&L){if(!T&&D===L){const U=wp({focusReason:i.value});t("focusout-prevented",U),U.defaultPrevented||(g.preventDefault(),S&&eo($,!0))}else if(T&&[$,N].includes(D)){const U=wp({focusReason:i.value});t("focusout-prevented",U),U.defaultPrevented||(g.preventDefault(),S&&eo(L,!0))}}else if(D===N){const U=wp({focusReason:i.value});t("focusout-prevented",U),U.defaultPrevented||g.preventDefault()}}};Mt(u2,{focusTrapRef:n,onKeydown:o}),xe(()=>e.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),xe([n],([g],[p])=>{g&&(g.addEventListener("keydown",o),g.addEventListener("focusin",c),g.addEventListener("focusout",f)),p&&(p.removeEventListener("keydown",o),p.removeEventListener("focusin",c),p.removeEventListener("focusout",f))});const l=g=>{t(wE,g)},u=g=>t(SE,g),c=g=>{const p=d(n);if(!p)return;const v=g.target,y=g.relatedTarget,_=v&&p.contains(v);e.trapped||y&&p.contains(y)||(s=y),_&&t("focusin",g),!a.paused&&e.trapped&&(_?r=v:eo(r,!0))},f=g=>{const p=d(n);if(!(a.paused||!p))if(e.trapped){const v=g.relatedTarget;!rs(v)&&!p.contains(v)&&setTimeout(()=>{if(!a.paused&&e.trapped){const y=wp({focusReason:i.value});t("focusout-prevented",y),y.defaultPrevented||eo(r,!0)}},0)}else{const v=g.target;v&&p.contains(v)||t("focusout",g)}};async function h(){await it();const g=d(n);if(g){EE.push(a);const p=g.contains(document.activeElement)?s:document.activeElement;if(s=p,!g.contains(p)){const y=new Event(T0,_E);g.addEventListener(T0,l),g.dispatchEvent(y),y.defaultPrevented||it(()=>{let _=e.focusStartEl;ht(_)||(eo(_),document.activeElement!==_&&(_="first")),_==="first"&&$Y(tD(g),!0),(document.activeElement===p||_==="container")&&eo(g)})}}}function m(){const g=d(n);if(g){g.removeEventListener(T0,l);const p=new CustomEvent(C0,{..._E,detail:{focusReason:i.value}});g.addEventListener(C0,u),g.dispatchEvent(p),!p.defaultPrevented&&(i.value=="keyboard"||!LY()||g.contains(document.activeElement))&&eo(s??document.body),g.removeEventListener(C0,u),EE.remove(a)}}return gt(()=>{e.trapped&&h(),xe(()=>e.trapped,g=>{g?h():m()})}),un(()=>{e.trapped&&m(),n.value&&(n.value.removeEventListener("keydown",o),n.value.removeEventListener("focusin",c),n.value.removeEventListener("focusout",f),n.value=void 0)}),{onKeydown:o}}});function VY(e,t,n,s,r,i){return fe(e.$slots,"default",{handleKeydown:e.onKeydown})}var yh=Ue(FY,[["render",VY],["__file","focus-trap.vue"]]);const UY=["fixed","absolute"],HY=Fe({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:oe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:La,default:"bottom"},popperOptions:{type:oe(Object),default:()=>({})},strategy:{type:String,values:UY,default:"absolute"}}),nD=Fe({...HY,id:String,style:{type:oe([String,Array,Object])},className:{type:oe([String,Array,Object])},effect:{type:oe(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:oe([String,Array,Object])},popperStyle:{type:oe([String,Array,Object])},referenceEl:{type:oe(Object)},triggerTargetEl:{type:oe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,..._s(["ariaLabel"])}),zY={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},jY=(e,t=[])=>{const{placement:n,strategy:s,popperOptions:r}=e,i={placement:n,strategy:s,...r,modifiers:[...WY(e),...t]};return KY(i,r==null?void 0:r.modifiers),i},qY=e=>{if(Ht)return ar(e)};function WY(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:s}=e;return[{name:"offset",options:{offset:[0,t??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:s}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function KY(e,t){t&&(e.modifiers=[...e.modifiers,...t??[]])}const GY=0,YY=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:s,role:r}=Xe(l2,void 0),i=q(),a=q(),o=k(()=>({name:"eventListeners",enabled:!!e.visible})),l=k(()=>{var y;const _=d(i),b=(y=d(a))!=null?y:GY;return{name:"arrow",enabled:!X3(_),options:{element:_,padding:b}}}),u=k(()=>({onFirstUpdate:()=>{g()},...jY(e,[d(l),d(o)])})),c=k(()=>qY(e.referenceEl)||d(s)),{attributes:f,state:h,styles:m,update:g,forceUpdate:p,instanceRef:v}=UW(c,n,u);return xe(v,y=>t.value=y),gt(()=>{xe(()=>{var y;return(y=d(c))==null?void 0:y.getBoundingClientRect()},()=>{g()})}),{attributes:f,arrowRef:i,contentRef:n,instanceRef:v,state:h,styles:m,role:r,forceUpdate:p,update:g}},XY=(e,{attributes:t,styles:n,role:s})=>{const{nextZIndex:r}=Dc(),i=Re("popper"),a=k(()=>d(t).popper),o=q(ut(e.zIndex)?e.zIndex:r()),l=k(()=>[i.b(),i.is("pure",e.pure),i.is(e.effect),e.popperClass]),u=k(()=>[{zIndex:d(o)},d(n).popper,e.popperStyle||{}]),c=k(()=>s.value==="dialog"?"false":void 0),f=k(()=>d(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:o,updateZIndex:()=>{o.value=ut(e.zIndex)?e.zIndex:r()}}},QY=(e,t)=>{const n=q(!1),s=q();return{focusStartRef:s,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(s.value="first",t("blur"))},onFocusAfterTrapped:()=>{t("focus")},onFocusInTrap:u=>{e.visible&&!n.value&&(u.target&&(s.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{e.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,t("close")}}},JY=J({name:"ElPopperContent"}),ZY=J({...JY,props:nD,emits:zY,setup(e,{expose:t,emit:n}){const s=e,{focusStartRef:r,trapped:i,onFocusAfterReleased:a,onFocusAfterTrapped:o,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=QY(s,n),{attributes:f,arrowRef:h,contentRef:m,styles:g,instanceRef:p,role:v,update:y}=YY(s),{ariaModal:_,arrowStyle:b,contentAttrs:T,contentClass:S,contentStyle:C,updateZIndex:D}=XY(s,{styles:g,attributes:f,role:v}),N=Xe(Qi,void 0),$=q();Mt(YI,{arrowStyle:b,arrowRef:h,arrowOffset:$}),N&&Mt(Qi,{...N,addInputId:sn,removeInputId:sn});let L;const z=(W=!0)=>{y(),W&&D()},U=()=>{z(!1),s.visible&&s.focusOnShow?i.value=!0:s.visible===!1&&(i.value=!1)};return gt(()=>{xe(()=>s.triggerTargetEl,(W,K)=>{L==null||L(),L=void 0;const X=d(W||m.value),B=d(K||m.value);Ir(X)&&(L=xe([v,()=>s.ariaLabel,_,()=>s.id],Q=>{["role","aria-label","aria-modal","id"].forEach((Y,F)=>{rs(Q[F])?X.removeAttribute(Y):X.setAttribute(Y,Q[F])})},{immediate:!0})),B!==X&&Ir(B)&&["role","aria-label","aria-modal","id"].forEach(Q=>{B.removeAttribute(Q)})},{immediate:!0}),xe(()=>s.visible,U,{immediate:!0})}),un(()=>{L==null||L(),L=void 0}),t({popperContentRef:m,popperInstanceRef:p,updatePopper:z,contentStyle:C}),(W,K)=>(x(),j("div",Nt({ref_key:"contentRef",ref:m},d(T),{style:d(C),class:d(S),tabindex:"-1",onMouseenter:X=>W.$emit("mouseenter",X),onMouseleave:X=>W.$emit("mouseleave",X)}),[E(d(yh),{trapped:d(i),"trap-on-focus-in":!0,"focus-trap-el":d(m),"focus-start-el":d(r),onFocusAfterTrapped:d(o),onFocusAfterReleased:d(a),onFocusin:d(l),onFocusoutPrevented:d(u),onReleaseRequested:d(c)},{default:P(()=>[fe(W.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16,["onMouseenter","onMouseleave"]))}});var eX=Ue(ZY,[["__file","content.vue"]]);const sD=Tt(SY),Qg=Symbol("elTooltip"),us=Fe({...GW,...nD,appendTo:{type:oe([String,Object])},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:oe(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,..._s(["ariaLabel"])}),Pf=Fe({...eD,disabled:Boolean,trigger:{type:oe([String,Array]),default:"hover"},triggerKeys:{type:oe(Array),default:()=>[at.enter,at.space]}}),{useModelToggleProps:tX,useModelToggleEmits:nX,useModelToggle:sX}=fI("visible"),rX=Fe({...XI,...tX,...us,...Pf,...QI,showArrow:{type:Boolean,default:!0}}),iX=[...nX,"before-show","before-hide","show","hide","open","close"],aX=(e,t)=>Ye(e)?e.includes(t):e===t,iu=(e,t,n)=>s=>{aX(d(e),t)&&n(s)},oX=J({name:"ElTooltipTrigger"}),lX=J({...oX,props:Pf,setup(e,{expose:t}){const n=e,s=Re("tooltip"),{controlled:r,id:i,open:a,onOpen:o,onClose:l,onToggle:u}=Xe(Qg,void 0),c=q(null),f=()=>{if(d(r)||n.disabled)return!0},h=nn(n,"trigger"),m=On(f,iu(h,"hover",o)),g=On(f,iu(h,"hover",l)),p=On(f,iu(h,"click",T=>{T.button===0&&u(T)})),v=On(f,iu(h,"focus",o)),y=On(f,iu(h,"focus",l)),_=On(f,iu(h,"contextmenu",T=>{T.preventDefault(),u(T)})),b=On(f,T=>{const{code:S}=T;n.triggerKeys.includes(S)&&(T.preventDefault(),u(T))});return t({triggerRef:c}),(T,S)=>(x(),de(d(IY),{id:d(i),"virtual-ref":T.virtualRef,open:d(a),"virtual-triggering":T.virtualTriggering,class:M(d(s).e("trigger")),onBlur:d(y),onClick:d(p),onContextmenu:d(_),onFocus:d(v),onMouseenter:d(m),onMouseleave:d(g),onKeydown:d(b)},{default:P(()=>[fe(T.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var uX=Ue(lX,[["__file","trigger.vue"]]);const cX=Fe({to:{type:oe([String,Object]),required:!0},disabled:Boolean}),dX=J({__name:"teleport",props:cX,setup(e){return(t,n)=>t.disabled?fe(t.$slots,"default",{key:0}):(x(),de(L5,{key:1,to:t.to},[fe(t.$slots,"default")],8,["to"]))}});var fX=Ue(dX,[["__file","teleport.vue"]]);const Rc=Tt(fX),hX=J({name:"ElTooltipContent",inheritAttrs:!1}),pX=J({...hX,props:us,setup(e,{expose:t}){const n=e,{selector:s}=EI(),r=Re("tooltip"),i=q(null);let a;const{controlled:o,id:l,open:u,trigger:c,onClose:f,onOpen:h,onShow:m,onHide:g,onBeforeShow:p,onBeforeHide:v}=Xe(Qg,void 0),y=k(()=>n.transition||`${r.namespace.value}-fade-in-linear`),_=k(()=>n.persistent);un(()=>{a==null||a()});const b=k(()=>d(_)?!0:d(u)),T=k(()=>n.disabled?!1:d(u)),S=k(()=>n.appendTo||s.value),C=k(()=>{var B;return(B=n.style)!=null?B:{}}),D=q(!0),N=()=>{g(),D.value=!0},$=()=>{if(d(o))return!0},L=On($,()=>{n.enterable&&d(c)==="hover"&&h()}),z=On($,()=>{d(c)==="hover"&&f()}),U=()=>{var B,Q;(Q=(B=i.value)==null?void 0:B.updatePopper)==null||Q.call(B),p==null||p()},W=()=>{v==null||v()},K=()=>{m(),a=l1(k(()=>{var B;return(B=i.value)==null?void 0:B.popperContentRef}),()=>{if(d(o))return;d(c)!=="hover"&&f()})},X=()=>{n.virtualTriggering||f()};return xe(()=>d(u),B=>{B?D.value=!1:a==null||a()},{flush:"post"}),xe(()=>n.content,()=>{var B,Q;(Q=(B=i.value)==null?void 0:B.updatePopper)==null||Q.call(B)}),t({contentRef:i}),(B,Q)=>(x(),de(d(Rc),{disabled:!B.teleported,to:d(S)},{default:P(()=>[E(Wn,{name:d(y),onAfterLeave:N,onBeforeEnter:U,onAfterEnter:K,onBeforeLeave:W},{default:P(()=>[d(b)?yt((x(),de(d(eX),Nt({key:0,id:d(l),ref_key:"contentRef",ref:i},B.$attrs,{"aria-label":B.ariaLabel,"aria-hidden":D.value,"boundaries-padding":B.boundariesPadding,"fallback-placements":B.fallbackPlacements,"gpu-acceleration":B.gpuAcceleration,offset:B.offset,placement:B.placement,"popper-options":B.popperOptions,strategy:B.strategy,effect:B.effect,enterable:B.enterable,pure:B.pure,"popper-class":B.popperClass,"popper-style":[B.popperStyle,d(C)],"reference-el":B.referenceEl,"trigger-target-el":B.triggerTargetEl,visible:d(T),"z-index":B.zIndex,onMouseenter:d(L),onMouseleave:d(z),onBlur:X,onClose:d(f)}),{default:P(()=>[fe(B.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[Bt,d(T)]]):ae("v-if",!0)]),_:3},8,["name"])]),_:3},8,["disabled","to"]))}});var mX=Ue(pX,[["__file","content.vue"]]);const gX=J({name:"ElTooltip"}),vX=J({...gX,props:rX,emits:iX,setup(e,{expose:t,emit:n}){const s=e;KW();const r=ys(),i=q(),a=q(),o=()=>{var y;const _=d(i);_&&((y=_.popperInstanceRef)==null||y.update())},l=q(!1),u=q(),{show:c,hide:f,hasUpdateHandler:h}=sX({indicator:l,toggleReason:u}),{onOpen:m,onClose:g}=YW({showAfter:nn(s,"showAfter"),hideAfter:nn(s,"hideAfter"),autoClose:nn(s,"autoClose"),open:c,close:f}),p=k(()=>In(s.visible)&&!h.value);Mt(Qg,{controlled:p,id:r,open:Ul(l),trigger:nn(s,"trigger"),onOpen:y=>{m(y)},onClose:y=>{g(y)},onToggle:y=>{d(l)?g(y):m(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:o}),xe(()=>s.disabled,y=>{y&&l.value&&(l.value=!1)});const v=y=>{var _,b;const T=(b=(_=a.value)==null?void 0:_.contentRef)==null?void 0:b.popperContentRef,S=(y==null?void 0:y.relatedTarget)||document.activeElement;return T&&T.contains(S)};return M4(()=>l.value&&f()),t({popperRef:i,contentRef:a,isFocusInsideContent:v,updatePopper:o,onOpen:m,onClose:g,hide:f}),(y,_)=>(x(),de(d(sD),{ref_key:"popperRef",ref:i,role:y.role},{default:P(()=>[E(uX,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:P(()=>[y.$slots.default?fe(y.$slots,"default",{key:0}):ae("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),E(mX,{ref_key:"contentRef",ref:a,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:P(()=>[fe(y.$slots,"content",{},()=>[y.rawContent?(x(),j("span",{key:0,innerHTML:y.content},null,8,["innerHTML"])):(x(),j("span",{key:1},ce(y.content),1))]),y.showArrow?(x(),de(d(EY),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):ae("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var yX=Ue(vX,[["__file","tooltip.vue"]]);const is=Tt(yX),bX=Fe({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:oe(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:oe([Function,Array]),default:sn},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},teleported:us.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String,..._s(["ariaLabel"])}),_X={[At]:e=>ht(e),[Ys]:e=>ht(e),[gn]:e=>ht(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,select:e=>Pt(e)},rD="ElAutocomplete",wX=J({name:rD,inheritAttrs:!1}),SX=J({...wX,props:bX,emits:_X,setup(e,{expose:t,emit:n}){const s=e,r=F1(),i=zl(),a=Ls(),o=Re("autocomplete"),l=q(),u=q(),c=q(),f=q();let h=!1,m=!1;const g=q([]),p=q(-1),v=q(""),y=q(!1),_=q(!1),b=q(!1),T=ys(),S=k(()=>i.style),C=k(()=>(g.value.length>0||b.value)&&y.value),D=k(()=>!s.hideLoading&&b.value),N=k(()=>l.value?Array.from(l.value.$el.querySelectorAll("input")):[]),$=()=>{C.value&&(v.value=`${l.value.$el.offsetWidth}px`)},L=()=>{p.value=-1},z=async te=>{if(_.value)return;const ge=pe=>{b.value=!1,!_.value&&(Ye(pe)?(g.value=pe,p.value=s.highlightFirstItem?0:-1):es(rD,"autocomplete suggestions must be an array"))};if(b.value=!0,Ye(s.fetchSuggestions))ge(s.fetchSuggestions);else{const pe=await s.fetchSuggestions(te,ge);Ye(pe)&&ge(pe)}},U=fr(z,s.debounce),W=te=>{const ge=!!te;if(n(Ys,te),n(At,te),_.value=!1,y.value||(y.value=ge),!s.triggerOnFocus&&!te){_.value=!0,g.value=[];return}U(te)},K=te=>{var ge;a.value||(((ge=te.target)==null?void 0:ge.tagName)!=="INPUT"||N.value.includes(document.activeElement))&&(y.value=!0)},X=te=>{n(gn,te)},B=te=>{m?m=!1:(y.value=!0,n("focus",te),s.triggerOnFocus&&!h&&U(String(s.modelValue)))},Q=te=>{setTimeout(()=>{var ge;if((ge=c.value)!=null&&ge.isFocusInsideContent()){m=!0;return}y.value&&Z(),n("blur",te)})},Y=()=>{y.value=!1,n(At,""),n("clear")},F=async()=>{C.value&&p.value>=0&&p.value<g.value.length?we(g.value[p.value]):s.selectWhenUnmatched&&(n("select",{value:s.modelValue}),g.value=[],p.value=-1)},H=te=>{C.value&&(te.preventDefault(),te.stopPropagation(),Z())},Z=()=>{y.value=!1},se=()=>{var te;(te=l.value)==null||te.focus()},ne=()=>{var te;(te=l.value)==null||te.blur()},we=async te=>{n(Ys,te[s.valueKey]),n(At,te[s.valueKey]),n("select",te),g.value=[],p.value=-1},De=te=>{if(!C.value||b.value)return;if(te<0){p.value=-1;return}te>=g.value.length&&(te=g.value.length-1);const ge=u.value.querySelector(`.${o.be("suggestion","wrap")}`),Oe=ge.querySelectorAll(`.${o.be("suggestion","list")} li`)[te],Pe=ge.scrollTop,{offsetTop:ve,scrollHeight:ee}=Oe;ve+ee>Pe+ge.clientHeight&&(ge.scrollTop+=ee),ve<Pe&&(ge.scrollTop-=ee),p.value=te,l.value.ref.setAttribute("aria-activedescendant",`${T.value}-item-${p.value}`)},Ee=l1(f,()=>{C.value&&Z()});return un(()=>{Ee==null||Ee()}),gt(()=>{l.value.ref.setAttribute("role","textbox"),l.value.ref.setAttribute("aria-autocomplete","list"),l.value.ref.setAttribute("aria-controls","id"),l.value.ref.setAttribute("aria-activedescendant",`${T.value}-item-${p.value}`),h=l.value.ref.hasAttribute("readonly")}),t({highlightedIndex:p,activated:y,loading:b,inputRef:l,popperRef:c,suggestions:g,handleSelect:we,handleKeyEnter:F,focus:se,blur:ne,close:Z,highlight:De,getData:z}),(te,ge)=>(x(),de(d(is),{ref_key:"popperRef",ref:c,visible:d(C),placement:te.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[d(o).e("popper"),te.popperClass],teleported:te.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${d(o).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:$,onHide:L},{content:P(()=>[O("div",{ref_key:"regionRef",ref:u,class:M([d(o).b("suggestion"),d(o).is("loading",d(D))]),style:st({[te.fitInputWidth?"width":"minWidth"]:v.value,outline:"none"}),role:"region"},[E(d(aa),{id:d(T),tag:"ul","wrap-class":d(o).be("suggestion","wrap"),"view-class":d(o).be("suggestion","list"),role:"listbox"},{default:P(()=>[d(D)?(x(),j("li",{key:0},[fe(te.$slots,"loading",{},()=>[E(d(tt),{class:M(d(o).is("loading"))},{default:P(()=>[E(d(Gi))]),_:1},8,["class"])])])):(x(!0),j(Ke,{key:1},bt(g.value,(pe,Oe)=>(x(),j("li",{id:`${d(T)}-item-${Oe}`,key:Oe,class:M({highlighted:p.value===Oe}),role:"option","aria-selected":p.value===Oe,onClick:Pe=>we(pe)},[fe(te.$slots,"default",{item:pe},()=>[Te(ce(pe[te.valueKey]),1)])],10,["id","aria-selected","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:P(()=>[O("div",{ref_key:"listboxRef",ref:f,class:M([d(o).b(),te.$attrs.class]),style:st(d(S)),role:"combobox","aria-haspopup":"listbox","aria-expanded":d(C),"aria-owns":d(T)},[E(d(Un),Nt({ref_key:"inputRef",ref:l},d(r),{clearable:te.clearable,disabled:d(a),name:te.name,"model-value":te.modelValue,"aria-label":te.ariaLabel,onInput:W,onChange:X,onFocus:B,onBlur:Q,onClear:Y,onKeydown:[rn(ft(pe=>De(p.value-1),["prevent"]),["up"]),rn(ft(pe=>De(p.value+1),["prevent"]),["down"]),rn(F,["enter"]),rn(Z,["tab"]),rn(H,["esc"])],onMousedown:K}),Gr({_:2},[te.$slots.prepend?{name:"prepend",fn:P(()=>[fe(te.$slots,"prepend")])}:void 0,te.$slots.append?{name:"append",fn:P(()=>[fe(te.$slots,"append")])}:void 0,te.$slots.prefix?{name:"prefix",fn:P(()=>[fe(te.$slots,"prefix")])}:void 0,te.$slots.suffix?{name:"suffix",fn:P(()=>[fe(te.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","aria-label","onKeydown"])],14,["aria-expanded","aria-owns"])]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var TX=Ue(SX,[["__file","autocomplete.vue"]]);const CX=Tt(TX),EX=Fe({size:{type:[Number,String],values:ra,default:"",validator:e=>ut(e)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:ln},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:oe(String),default:"cover"}}),xX={error:e=>e instanceof Event},kX=J({name:"ElAvatar"}),AX=J({...kX,props:EX,emits:xX,setup(e,{emit:t}){const n=e,s=Re("avatar"),r=q(!1),i=k(()=>{const{size:u,icon:c,shape:f}=n,h=[s.b()];return ht(u)&&h.push(s.m(u)),c&&h.push(s.m("icon")),f&&h.push(s.m(f)),h}),a=k(()=>{const{size:u}=n;return ut(u)?s.cssVarBlock({size:Nn(u)||""}):void 0}),o=k(()=>({objectFit:n.fit}));xe(()=>n.src,()=>r.value=!1);function l(u){r.value=!0,t("error",u)}return(u,c)=>(x(),j("span",{class:M(d(i)),style:st(d(a))},[(u.src||u.srcSet)&&!r.value?(x(),j("img",{key:0,src:u.src,alt:u.alt,srcset:u.srcSet,style:st(d(o)),onError:l},null,44,["src","alt","srcset"])):u.icon?(x(),de(d(tt),{key:1},{default:P(()=>[(x(),de(Rt(u.icon)))]),_:1})):fe(u.$slots,"default",{key:2})],6))}});var IX=Ue(AX,[["__file","avatar.vue"]]);const f2=Tt(IX),DX={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},OX={click:e=>e instanceof MouseEvent},PX=(e,t,n)=>{const s=hn(),r=hn(),i=q(!1),a=()=>{s.value&&(i.value=s.value.scrollTop>=e.visibilityHeight)},o=u=>{var c;(c=s.value)==null||c.scrollTo({top:0,behavior:"smooth"}),t("click",u)},l=l3(a,300,!0);return an(r,"scroll",l),gt(()=>{var u;r.value=document,s.value=document.documentElement,e.target&&(s.value=(u=document.querySelector(e.target))!=null?u:void 0,s.value||es(n,`target does not exist: ${e.target}`),r.value=s.value),a()}),{visible:i,handleClick:o}},iD="ElBacktop",RX=J({name:iD}),NX=J({...RX,props:DX,emits:OX,setup(e,{emit:t}){const n=e,s=Re("backtop"),{handleClick:r,visible:i}=PX(n,t,iD),a=k(()=>({right:`${n.right}px`,bottom:`${n.bottom}px`}));return(o,l)=>(x(),de(Wn,{name:`${d(s).namespace.value}-fade-in`},{default:P(()=>[d(i)?(x(),j("div",{key:0,style:st(d(a)),class:M(d(s).b()),onClick:ft(d(r),["stop"])},[fe(o.$slots,"default",{},()=>[E(d(tt),{class:M(d(s).e("icon"))},{default:P(()=>[E(d(Xz))]),_:1},8,["class"])])],14,["onClick"])):ae("v-if",!0)]),_:3},8,["name"]))}});var MX=Ue(NX,[["__file","backtop.vue"]]);const $X=Tt(MX),LX=Fe({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:oe([String,Object,Array])},offset:{type:oe(Array),default:[0,0]},badgeClass:{type:String}}),BX=J({name:"ElBadge"}),FX=J({...BX,props:LX,setup(e,{expose:t}){const n=e,s=Re("badge"),r=k(()=>n.isDot?"":ut(n.value)&&ut(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),i=k(()=>{var a,o,l,u,c;return[{backgroundColor:n.color,marginRight:Nn(-((o=(a=n.offset)==null?void 0:a[0])!=null?o:0)),marginTop:Nn((u=(l=n.offset)==null?void 0:l[1])!=null?u:0)},(c=n.badgeStyle)!=null?c:{}]});return t({content:r}),(a,o)=>(x(),j("div",{class:M(d(s).b())},[fe(a.$slots,"default"),E(Wn,{name:`${d(s).namespace.value}-zoom-in-center`,persisted:""},{default:P(()=>[yt(O("sup",{class:M([d(s).e("content"),d(s).em("content",a.type),d(s).is("fixed",!!a.$slots.default),d(s).is("dot",a.isDot),d(s).is("hide-zero",!a.showZero&&n.value===0),a.badgeClass]),style:st(d(i)),textContent:ce(d(r))},null,14,["textContent"]),[[Bt,!a.hidden&&(d(r)||a.isDot)]])]),_:1},8,["name"])],2))}});var VX=Ue(FX,[["__file","badge.vue"]]);const aD=Tt(VX),oD=Symbol("breadcrumbKey"),UX=Fe({separator:{type:String,default:"/"},separatorIcon:{type:ln}}),HX=J({name:"ElBreadcrumb"}),zX=J({...HX,props:UX,setup(e){const t=e,{t:n}=zt(),s=Re("breadcrumb"),r=q();return Mt(oD,t),gt(()=>{const i=r.value.querySelectorAll(`.${s.e("item")}`);i.length&&i[i.length-1].setAttribute("aria-current","page")}),(i,a)=>(x(),j("div",{ref_key:"breadcrumb",ref:r,class:M(d(s).b()),"aria-label":d(n)("el.breadcrumb.label"),role:"navigation"},[fe(i.$slots,"default")],10,["aria-label"]))}});var jX=Ue(zX,[["__file","breadcrumb.vue"]]);const qX=Fe({to:{type:oe([String,Object]),default:""},replace:Boolean}),WX=J({name:"ElBreadcrumbItem"}),KX=J({...WX,props:qX,setup(e){const t=e,n=Ot(),s=Xe(oD,void 0),r=Re("breadcrumb"),i=n.appContext.config.globalProperties.$router,a=q(),o=()=>{!t.to||!i||(t.replace?i.replace(t.to):i.push(t.to))};return(l,u)=>{var c,f;return x(),j("span",{class:M(d(r).e("item"))},[O("span",{ref_key:"link",ref:a,class:M([d(r).e("inner"),d(r).is("link",!!l.to)]),role:"link",onClick:o},[fe(l.$slots,"default")],2),(c=d(s))!=null&&c.separatorIcon?(x(),de(d(tt),{key:0,class:M(d(r).e("separator"))},{default:P(()=>[(x(),de(Rt(d(s).separatorIcon)))]),_:1},8,["class"])):(x(),j("span",{key:1,class:M(d(r).e("separator")),role:"presentation"},ce((f=d(s))==null?void 0:f.separator),3))],2)}}});var lD=Ue(KX,[["__file","breadcrumb-item.vue"]]);const GX=Tt(jX,{BreadcrumbItem:lD}),YX=kn(lD),uD=Symbol("buttonGroupContextKey"),XX=(e,t)=>{yo({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},k(()=>e.type==="text"));const n=Xe(uD,void 0),s=Gg("button"),{form:r}=Bs(),i=Kn(k(()=>n==null?void 0:n.size)),a=Ls(),o=q(),l=os(),u=k(()=>e.type||(n==null?void 0:n.type)||""),c=k(()=>{var g,p,v;return(v=(p=e.autoInsertSpace)!=null?p:(g=s.value)==null?void 0:g.autoInsertSpace)!=null?v:!1}),f=k(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=k(()=>{var g;const p=(g=l.default)==null?void 0:g.call(l);if(c.value&&(p==null?void 0:p.length)===1){const v=p[0];if((v==null?void 0:v.type)===Ec){const y=v.children;return/^\p{Unified_Ideograph}{2}$/u.test(y.trim())}}return!1});return{_disabled:a,_size:i,_type:u,_ref:o,_props:f,shouldAddSpace:h,handleClick:g=>{if(a.value||e.loading){g.stopPropagation();return}e.nativeType==="reset"&&(r==null||r.resetFields()),t("click",g)}}},sb=["default","primary","success","warning","info","danger","text",""],QX=["button","submit","reset"],rb=Fe({size:ts,disabled:Boolean,type:{type:String,values:sb,default:""},icon:{type:ln},nativeType:{type:String,values:QX,default:"button"},loading:Boolean,loadingIcon:{type:ln,default:()=>Gi},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:oe([String,Object]),default:"button"}}),JX={click:e=>e instanceof MouseEvent};function Es(e,t){ZX(e)&&(e="100%");var n=eQ(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Sp(e){return Math.min(1,Math.max(0,e))}function ZX(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function eQ(e){return typeof e=="string"&&e.indexOf("%")!==-1}function cD(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Tp(e){return e<=1?"".concat(Number(e)*100,"%"):e}function dl(e){return e.length===1?"0"+e:String(e)}function tQ(e,t,n){return{r:Es(e,255)*255,g:Es(t,255)*255,b:Es(n,255)*255}}function kE(e,t,n){e=Es(e,255),t=Es(t,255),n=Es(n,255);var s=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=0,o=(s+r)/2;if(s===r)a=0,i=0;else{var l=s-r;switch(a=o>.5?l/(2-s-r):l/(s+r),s){case e:i=(t-n)/l+(t<n?6:0);break;case t:i=(n-e)/l+2;break;case n:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,l:o}}function E0(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nQ(e,t,n){var s,r,i;if(e=Es(e,360),t=Es(t,100),n=Es(n,100),t===0)r=n,i=n,s=n;else{var a=n<.5?n*(1+t):n+t-n*t,o=2*n-a;s=E0(o,a,e+1/3),r=E0(o,a,e),i=E0(o,a,e-1/3)}return{r:s*255,g:r*255,b:i*255}}function AE(e,t,n){e=Es(e,255),t=Es(t,255),n=Es(n,255);var s=Math.max(e,t,n),r=Math.min(e,t,n),i=0,a=s,o=s-r,l=s===0?0:o/s;if(s===r)i=0;else{switch(s){case e:i=(t-n)/o+(t<n?6:0);break;case t:i=(n-e)/o+2;break;case n:i=(e-t)/o+4;break}i/=6}return{h:i,s:l,v:a}}function sQ(e,t,n){e=Es(e,360)*6,t=Es(t,100),n=Es(n,100);var s=Math.floor(e),r=e-s,i=n*(1-t),a=n*(1-r*t),o=n*(1-(1-r)*t),l=s%6,u=[n,a,i,i,o,n][l],c=[o,n,n,a,i,i][l],f=[i,i,o,n,n,a][l];return{r:u*255,g:c*255,b:f*255}}function IE(e,t,n,s){var r=[dl(Math.round(e).toString(16)),dl(Math.round(t).toString(16)),dl(Math.round(n).toString(16))];return s&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function rQ(e,t,n,s,r){var i=[dl(Math.round(e).toString(16)),dl(Math.round(t).toString(16)),dl(Math.round(n).toString(16)),dl(iQ(s))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function iQ(e){return Math.round(parseFloat(e)*255).toString(16)}function DE(e){return Sr(e)/255}function Sr(e){return parseInt(e,16)}function aQ(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var ib={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function oQ(e){var t={r:0,g:0,b:0},n=1,s=null,r=null,i=null,a=!1,o=!1;return typeof e=="string"&&(e=cQ(e)),typeof e=="object"&&(fa(e.r)&&fa(e.g)&&fa(e.b)?(t=tQ(e.r,e.g,e.b),a=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):fa(e.h)&&fa(e.s)&&fa(e.v)?(s=Tp(e.s),r=Tp(e.v),t=sQ(e.h,s,r),a=!0,o="hsv"):fa(e.h)&&fa(e.s)&&fa(e.l)&&(s=Tp(e.s),i=Tp(e.l),t=nQ(e.h,s,i),a=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=cD(n),{ok:a,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var lQ="[-\\+]?\\d+%?",uQ="[-\\+]?\\d*\\.\\d+%?",fo="(?:".concat(uQ,")|(?:").concat(lQ,")"),x0="[\\s|\\(]+(".concat(fo,")[,|\\s]+(").concat(fo,")[,|\\s]+(").concat(fo,")\\s*\\)?"),k0="[\\s|\\(]+(".concat(fo,")[,|\\s]+(").concat(fo,")[,|\\s]+(").concat(fo,")[,|\\s]+(").concat(fo,")\\s*\\)?"),oi={CSS_UNIT:new RegExp(fo),rgb:new RegExp("rgb"+x0),rgba:new RegExp("rgba"+k0),hsl:new RegExp("hsl"+x0),hsla:new RegExp("hsla"+k0),hsv:new RegExp("hsv"+x0),hsva:new RegExp("hsva"+k0),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function cQ(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(ib[e])e=ib[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=oi.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=oi.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=oi.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=oi.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=oi.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=oi.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=oi.hex8.exec(e),n?{r:Sr(n[1]),g:Sr(n[2]),b:Sr(n[3]),a:DE(n[4]),format:t?"name":"hex8"}:(n=oi.hex6.exec(e),n?{r:Sr(n[1]),g:Sr(n[2]),b:Sr(n[3]),format:t?"name":"hex"}:(n=oi.hex4.exec(e),n?{r:Sr(n[1]+n[1]),g:Sr(n[2]+n[2]),b:Sr(n[3]+n[3]),a:DE(n[4]+n[4]),format:t?"name":"hex8"}:(n=oi.hex3.exec(e),n?{r:Sr(n[1]+n[1]),g:Sr(n[2]+n[2]),b:Sr(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function fa(e){return!!oi.CSS_UNIT.exec(String(e))}var dD=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var s;if(t instanceof e)return t;typeof t=="number"&&(t=aQ(t)),this.originalInput=t;var r=oQ(t);this.originalInput=t,this.r=r.r,this.g=r.g,this.b=r.b,this.a=r.a,this.roundA=Math.round(100*this.a)/100,this.format=(s=n.format)!==null&&s!==void 0?s:r.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=r.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,s,r,i=t.r/255,a=t.g/255,o=t.b/255;return i<=.03928?n=i/12.92:n=Math.pow((i+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.055)/1.055,2.4),.2126*n+.7152*s+.0722*r},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=cD(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=AE(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=AE(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),r=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(s,"%, ").concat(r,"%)"):"hsva(".concat(n,", ").concat(s,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=kE(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=kE(this.r,this.g,this.b),n=Math.round(t.h*360),s=Math.round(t.s*100),r=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(s,"%, ").concat(r,"%)"):"hsla(".concat(n,", ").concat(s,"%, ").concat(r,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),IE(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),rQ(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),s=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(s,")"):"rgba(".concat(t,", ").concat(n,", ").concat(s,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(Es(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(Es(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+IE(this.r,this.g,this.b,!1),n=0,s=Object.entries(ib);n<s.length;n++){var r=s[n],i=r[0],a=r[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var n=!!t;t=t??this.format;var s=!1,r=this.a<1&&this.a>=0,i=!n&&r&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(s=this.toRgbString()),t==="prgb"&&(s=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(s=this.toHexString()),t==="hex3"&&(s=this.toHexString(!0)),t==="hex4"&&(s=this.toHex8String(!0)),t==="hex8"&&(s=this.toHex8String()),t==="name"&&(s=this.toName()),t==="hsl"&&(s=this.toHslString()),t==="hsv"&&(s=this.toHsvString()),s||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Sp(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Sp(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Sp(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Sp(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),s=(n.h+t)%360;return n.h=s<0?360+s:s,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var s=this.toRgb(),r=new e(t).toRgb(),i=n/100,a={r:(r.r-s.r)*i+s.r,g:(r.g-s.g)*i+s.g,b:(r.b-s.b)*i+s.b,a:(r.a-s.a)*i+s.a};return new e(a)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var s=this.toHsl(),r=360/n,i=[this];for(s.h=(s.h-(r*t>>1)+720)%360;--t;)s.h=(s.h+r)%360,i.push(new e(s));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),s=n.h,r=n.s,i=n.v,a=[],o=1/t;t--;)a.push(new e({h:s,s:r,v:i})),i=(i+o)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),s=new e(t).toRgb(),r=n.a+s.a*(1-n.a);return new e({r:(n.r*n.a+s.r*s.a*(1-n.a))/r,g:(n.g*n.a+s.g*s.a*(1-n.a))/r,b:(n.b*n.a+s.b*s.a*(1-n.a))/r,a:r})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),s=n.h,r=[this],i=360/t,a=1;a<t;a++)r.push(new e({h:(s+a*i)%360,s:n.s,l:n.l}));return r},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Ka(e,t=20){return e.mix("#141414",t).toString()}function dQ(e){const t=Ls(),n=Re("button");return k(()=>{let s={},r=e.color;if(r){const i=r.match(/var\((.*?)\)/);i&&(r=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const a=new dD(r),o=e.dark?a.tint(20).toString():Ka(a,20);if(e.plain)s=n.cssVarBlock({"bg-color":e.dark?Ka(a,90):a.tint(90).toString(),"text-color":r,"border-color":e.dark?Ka(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":r,"hover-border-color":r,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(s[n.cssVarBlockName("disabled-bg-color")]=e.dark?Ka(a,90):a.tint(90).toString(),s[n.cssVarBlockName("disabled-text-color")]=e.dark?Ka(a,50):a.tint(50).toString(),s[n.cssVarBlockName("disabled-border-color")]=e.dark?Ka(a,80):a.tint(80).toString());else{const l=e.dark?Ka(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(s=n.cssVarBlock({"bg-color":r,"text-color":u,"border-color":r,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":o,"active-border-color":o}),t.value){const c=e.dark?Ka(a,50):a.tint(50).toString();s[n.cssVarBlockName("disabled-bg-color")]=c,s[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,s[n.cssVarBlockName("disabled-border-color")]=c}}}return s})}const fQ=J({name:"ElButton"}),hQ=J({...fQ,props:rb,emits:JX,setup(e,{expose:t,emit:n}){const s=e,r=dQ(s),i=Re("button"),{_ref:a,_size:o,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:h}=XX(s,n),m=k(()=>[i.b(),i.m(l.value),i.m(o.value),i.is("disabled",u.value),i.is("loading",s.loading),i.is("plain",s.plain),i.is("round",s.round),i.is("circle",s.circle),i.is("text",s.text),i.is("link",s.link),i.is("has-bg",s.bg)]);return t({ref:a,size:o,type:l,disabled:u,shouldAddSpace:f}),(g,p)=>(x(),de(Rt(g.tag),Nt({ref_key:"_ref",ref:a},d(c),{class:d(m),style:d(r),onClick:d(h)}),{default:P(()=>[g.loading?(x(),j(Ke,{key:0},[g.$slots.loading?fe(g.$slots,"loading",{key:0}):(x(),de(d(tt),{key:1,class:M(d(i).is("loading"))},{default:P(()=>[(x(),de(Rt(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(x(),de(d(tt),{key:1},{default:P(()=>[g.icon?(x(),de(Rt(g.icon),{key:0})):fe(g.$slots,"icon",{key:1})]),_:3})):ae("v-if",!0),g.$slots.default?(x(),j("span",{key:2,class:M({[d(i).em("text","expand")]:d(f)})},[fe(g.$slots,"default")],2)):ae("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var pQ=Ue(hQ,[["__file","button.vue"]]);const mQ={size:rb.size,type:rb.type},gQ=J({name:"ElButtonGroup"}),vQ=J({...gQ,props:mQ,setup(e){const t=e;Mt(uD,Ct({size:nn(t,"size"),type:nn(t,"type")}));const n=Re("button");return(s,r)=>(x(),j("div",{class:M(d(n).b("group"))},[fe(s.$slots,"default")],2))}});var fD=Ue(vQ,[["__file","button-group.vue"]]);const mn=Tt(pQ,{ButtonGroup:fD}),hD=kn(fD);var hr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pD(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function s(){return this instanceof s?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var r=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,r.get?r:{enumerable:!0,get:function(){return e[s]}})}),n}var mD={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(hr,function(){var n=1e3,s=6e4,r=36e5,i="millisecond",a="second",o="minute",l="hour",u="day",c="week",f="month",h="quarter",m="year",g="date",p="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(K){var X=["th","st","nd","rd"],B=K%100;return"["+K+(X[(B-20)%10]||X[B]||X[0])+"]"}},b=function(K,X,B){var Q=String(K);return!Q||Q.length>=X?K:""+Array(X+1-Q.length).join(B)+K},T={s:b,z:function(K){var X=-K.utcOffset(),B=Math.abs(X),Q=Math.floor(B/60),Y=B%60;return(X<=0?"+":"-")+b(Q,2,"0")+":"+b(Y,2,"0")},m:function K(X,B){if(X.date()<B.date())return-K(B,X);var Q=12*(B.year()-X.year())+(B.month()-X.month()),Y=X.clone().add(Q,f),F=B-Y<0,H=X.clone().add(Q+(F?-1:1),f);return+(-(Q+(B-Y)/(F?Y-H:H-Y))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:f,y:m,w:c,d:u,D:g,h:l,m:o,s:a,ms:i,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},S="en",C={};C[S]=_;var D="$isDayjsObject",N=function(K){return K instanceof U||!(!K||!K[D])},$=function K(X,B,Q){var Y;if(!X)return S;if(typeof X=="string"){var F=X.toLowerCase();C[F]&&(Y=F),B&&(C[F]=B,Y=F);var H=X.split("-");if(!Y&&H.length>1)return K(H[0])}else{var Z=X.name;C[Z]=X,Y=Z}return!Q&&Y&&(S=Y),Y||!Q&&S},L=function(K,X){if(N(K))return K.clone();var B=typeof X=="object"?X:{};return B.date=K,B.args=arguments,new U(B)},z=T;z.l=$,z.i=N,z.w=function(K,X){return L(K,{locale:X.$L,utc:X.$u,x:X.$x,$offset:X.$offset})};var U=function(){function K(B){this.$L=$(B.locale,null,!0),this.parse(B),this.$x=this.$x||B.x||{},this[D]=!0}var X=K.prototype;return X.parse=function(B){this.$d=function(Q){var Y=Q.date,F=Q.utc;if(Y===null)return new Date(NaN);if(z.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var H=Y.match(v);if(H){var Z=H[2]-1||0,se=(H[7]||"0").substring(0,3);return F?new Date(Date.UTC(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,se)):new Date(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,se)}}return new Date(Y)}(B),this.init()},X.init=function(){var B=this.$d;this.$y=B.getFullYear(),this.$M=B.getMonth(),this.$D=B.getDate(),this.$W=B.getDay(),this.$H=B.getHours(),this.$m=B.getMinutes(),this.$s=B.getSeconds(),this.$ms=B.getMilliseconds()},X.$utils=function(){return z},X.isValid=function(){return this.$d.toString()!==p},X.isSame=function(B,Q){var Y=L(B);return this.startOf(Q)<=Y&&Y<=this.endOf(Q)},X.isAfter=function(B,Q){return L(B)<this.startOf(Q)},X.isBefore=function(B,Q){return this.endOf(Q)<L(B)},X.$g=function(B,Q,Y){return z.u(B)?this[Q]:this.set(Y,B)},X.unix=function(){return Math.floor(this.valueOf()/1e3)},X.valueOf=function(){return this.$d.getTime()},X.startOf=function(B,Q){var Y=this,F=!!z.u(Q)||Q,H=z.p(B),Z=function(pe,Oe){var Pe=z.w(Y.$u?Date.UTC(Y.$y,Oe,pe):new Date(Y.$y,Oe,pe),Y);return F?Pe:Pe.endOf(u)},se=function(pe,Oe){return z.w(Y.toDate()[pe].apply(Y.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(Oe)),Y)},ne=this.$W,we=this.$M,De=this.$D,Ee="set"+(this.$u?"UTC":"");switch(H){case m:return F?Z(1,0):Z(31,11);case f:return F?Z(1,we):Z(0,we+1);case c:var te=this.$locale().weekStart||0,ge=(ne<te?ne+7:ne)-te;return Z(F?De-ge:De+(6-ge),we);case u:case g:return se(Ee+"Hours",0);case l:return se(Ee+"Minutes",1);case o:return se(Ee+"Seconds",2);case a:return se(Ee+"Milliseconds",3);default:return this.clone()}},X.endOf=function(B){return this.startOf(B,!1)},X.$set=function(B,Q){var Y,F=z.p(B),H="set"+(this.$u?"UTC":""),Z=(Y={},Y[u]=H+"Date",Y[g]=H+"Date",Y[f]=H+"Month",Y[m]=H+"FullYear",Y[l]=H+"Hours",Y[o]=H+"Minutes",Y[a]=H+"Seconds",Y[i]=H+"Milliseconds",Y)[F],se=F===u?this.$D+(Q-this.$W):Q;if(F===f||F===m){var ne=this.clone().set(g,1);ne.$d[Z](se),ne.init(),this.$d=ne.set(g,Math.min(this.$D,ne.daysInMonth())).$d}else Z&&this.$d[Z](se);return this.init(),this},X.set=function(B,Q){return this.clone().$set(B,Q)},X.get=function(B){return this[z.p(B)]()},X.add=function(B,Q){var Y,F=this;B=Number(B);var H=z.p(Q),Z=function(we){var De=L(F);return z.w(De.date(De.date()+Math.round(we*B)),F)};if(H===f)return this.set(f,this.$M+B);if(H===m)return this.set(m,this.$y+B);if(H===u)return Z(1);if(H===c)return Z(7);var se=(Y={},Y[o]=s,Y[l]=r,Y[a]=n,Y)[H]||1,ne=this.$d.getTime()+B*se;return z.w(ne,this)},X.subtract=function(B,Q){return this.add(-1*B,Q)},X.format=function(B){var Q=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||p;var F=B||"YYYY-MM-DDTHH:mm:ssZ",H=z.z(this),Z=this.$H,se=this.$m,ne=this.$M,we=Y.weekdays,De=Y.months,Ee=Y.meridiem,te=function(Oe,Pe,ve,ee){return Oe&&(Oe[Pe]||Oe(Q,F))||ve[Pe].slice(0,ee)},ge=function(Oe){return z.s(Z%12||12,Oe,"0")},pe=Ee||function(Oe,Pe,ve){var ee=Oe<12?"AM":"PM";return ve?ee.toLowerCase():ee};return F.replace(y,function(Oe,Pe){return Pe||function(ve){switch(ve){case"YY":return String(Q.$y).slice(-2);case"YYYY":return z.s(Q.$y,4,"0");case"M":return ne+1;case"MM":return z.s(ne+1,2,"0");case"MMM":return te(Y.monthsShort,ne,De,3);case"MMMM":return te(De,ne);case"D":return Q.$D;case"DD":return z.s(Q.$D,2,"0");case"d":return String(Q.$W);case"dd":return te(Y.weekdaysMin,Q.$W,we,2);case"ddd":return te(Y.weekdaysShort,Q.$W,we,3);case"dddd":return we[Q.$W];case"H":return String(Z);case"HH":return z.s(Z,2,"0");case"h":return ge(1);case"hh":return ge(2);case"a":return pe(Z,se,!0);case"A":return pe(Z,se,!1);case"m":return String(se);case"mm":return z.s(se,2,"0");case"s":return String(Q.$s);case"ss":return z.s(Q.$s,2,"0");case"SSS":return z.s(Q.$ms,3,"0");case"Z":return H}return null}(Oe)||H.replace(":","")})},X.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},X.diff=function(B,Q,Y){var F,H=this,Z=z.p(Q),se=L(B),ne=(se.utcOffset()-this.utcOffset())*s,we=this-se,De=function(){return z.m(H,se)};switch(Z){case m:F=De()/12;break;case f:F=De();break;case h:F=De()/3;break;case c:F=(we-ne)/6048e5;break;case u:F=(we-ne)/864e5;break;case l:F=we/r;break;case o:F=we/s;break;case a:F=we/n;break;default:F=we}return Y?F:z.a(F)},X.daysInMonth=function(){return this.endOf(f).$D},X.$locale=function(){return C[this.$L]},X.locale=function(B,Q){if(!B)return this.$L;var Y=this.clone(),F=$(B,Q,!0);return F&&(Y.$L=F),Y},X.clone=function(){return z.w(this.$d,this)},X.toDate=function(){return new Date(this.valueOf())},X.toJSON=function(){return this.isValid()?this.toISOString():null},X.toISOString=function(){return this.$d.toISOString()},X.toString=function(){return this.$d.toUTCString()},K}(),W=U.prototype;return L.prototype=W,[["$ms",i],["$s",a],["$m",o],["$H",l],["$W",u],["$M",f],["$y",m],["$D",g]].forEach(function(K){W[K[1]]=function(X){return this.$g(X,K[0],K[1])}}),L.extend=function(K,X){return K.$i||(K(X,U,L),K.$i=!0),L},L.locale=$,L.isDayjs=N,L.unix=function(K){return L(1e3*K)},L.en=C[S],L.Ls=C,L.p={},L})})(mD);var yQ=mD.exports;const St=xs(yQ);var gD={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(hr,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},s=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d/,i=/\d\d/,a=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},u=function(v){return(v=+v)+(v>68?1900:2e3)},c=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var _=y.match(/([+-]|\d\d)/g),b=60*_[1]+(+_[2]||0);return b===0?0:_[0]==="+"?-b:b}(v)}],h=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},m=function(v,y){var _,b=l.meridiem;if(b){for(var T=1;T<=24;T+=1)if(v.indexOf(b(T,0,y))>-1){_=T>12;break}}else _=v===(y?"pm":"PM");return _},g={A:[o,function(v){this.afternoon=m(v,!1)}],a:[o,function(v){this.afternoon=m(v,!0)}],Q:[r,function(v){this.month=3*(v-1)+1}],S:[r,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,c("seconds")],ss:[a,c("seconds")],m:[a,c("minutes")],mm:[a,c("minutes")],H:[a,c("hours")],h:[a,c("hours")],HH:[a,c("hours")],hh:[a,c("hours")],D:[a,c("day")],DD:[i,c("day")],Do:[o,function(v){var y=l.ordinal,_=v.match(/\d+/);if(this.day=_[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===v&&(this.day=b)}],w:[a,c("week")],ww:[i,c("week")],M:[a,c("month")],MM:[i,c("month")],MMM:[o,function(v){var y=h("months"),_=(h("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(v)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[o,function(v){var y=h("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,c("year")],YY:[i,function(v){this.year=u(v)}],YYYY:[/\d{4}/,c("year")],Z:f,ZZ:f};function p(v){var y,_;y=v,_=l&&l.formats;for(var b=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(L,z,U){var W=U&&U.toUpperCase();return z||_[U]||n[U]||_[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,X,B){return X||B.slice(1)})})).match(s),T=b.length,S=0;S<T;S+=1){var C=b[S],D=g[C],N=D&&D[0],$=D&&D[1];b[S]=$?{regex:N,parser:$}:C.replace(/^\[|\]$/g,"")}return function(L){for(var z={},U=0,W=0;U<T;U+=1){var K=b[U];if(typeof K=="string")W+=K.length;else{var X=K.regex,B=K.parser,Q=L.slice(W),Y=X.exec(Q)[0];B.call(z,Y),L=L.replace(Y,"")}}return function(F){var H=F.afternoon;if(H!==void 0){var Z=F.hours;H?Z<12&&(F.hours+=12):Z===12&&(F.hours=0),delete F.afternoon}}(z),z}}return function(v,y,_){_.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var b=y.prototype,T=b.parse;b.parse=function(S){var C=S.date,D=S.utc,N=S.args;this.$u=D;var $=N[1];if(typeof $=="string"){var L=N[2]===!0,z=N[3]===!0,U=L||z,W=N[2];z&&(W=N[2]),l=this.$locale(),!L&&W&&(l=_.Ls[W]),this.$d=function(Q,Y,F,H){try{if(["x","X"].indexOf(Y)>-1)return new Date((Y==="X"?1e3:1)*Q);var Z=p(Y)(Q),se=Z.year,ne=Z.month,we=Z.day,De=Z.hours,Ee=Z.minutes,te=Z.seconds,ge=Z.milliseconds,pe=Z.zone,Oe=Z.week,Pe=new Date,ve=we||(se||ne?1:Pe.getDate()),ee=se||Pe.getFullYear(),re=0;se&&!ne||(re=ne>0?ne-1:Pe.getMonth());var Se,Le=De||0,_e=Ee||0,ke=te||0,Be=ge||0;return pe?new Date(Date.UTC(ee,re,ve,Le,_e,ke,Be+60*pe.offset*1e3)):F?new Date(Date.UTC(ee,re,ve,Le,_e,ke,Be)):(Se=new Date(ee,re,ve,Le,_e,ke,Be),Oe&&(Se=H(Se).week(Oe).toDate()),Se)}catch{return new Date("")}}(C,$,D,_),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),U&&C!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var K=$.length,X=1;X<=K;X+=1){N[1]=$[X-1];var B=_.apply(this,N);if(B.isValid()){this.$d=B.$d,this.$L=B.$L,this.init();break}X===K&&(this.$d=new Date(""))}else T.call(this,S)}}})})(gD);var bQ=gD.exports;const h2=xs(bQ),OE=["hours","minutes","seconds"],ab="HH:mm:ss",vu="YYYY-MM-DD",_Q={date:vu,dates:vu,week:"gggg[w]ww",year:"YYYY",years:"YYYY",month:"YYYY-MM",months:"YYYY-MM",datetime:`${vu} ${ab}`,monthrange:"YYYY-MM",yearrange:"YYYY",daterange:vu,datetimerange:`${vu} ${ab}`},A0=(e,t)=>[e>0?e-1:void 0,e,e<t?e+1:void 0],bo=e=>Array.from(Array.from({length:e}).keys()),vD=e=>e.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),yD=e=>e.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),PE=function(e,t){const n=_o(e),s=_o(t);return n&&s?e.getTime()===t.getTime():!n&&!s?e===t:!1},RE=function(e,t){const n=Ye(e),s=Ye(t);return n&&s?e.length!==t.length?!1:e.every((r,i)=>PE(r,t[i])):!n&&!s?PE(e,t):!1},NE=function(e,t,n){const s=Cr(t)||t==="x"?St(e).locale(n):St(e,t).locale(n);return s.isValid()?s:void 0},ME=function(e,t,n){return Cr(t)?e:t==="x"?+e:St(e).locale(n).format(t)},I0=(e,t)=>{var n;const s=[],r=t==null?void 0:t();for(let i=0;i<e;i++)s.push((n=r==null?void 0:r.includes(i))!=null?n:!1);return s},bD=Fe({disabledHours:{type:oe(Function)},disabledMinutes:{type:oe(Function)},disabledSeconds:{type:oe(Function)}}),_D=Fe({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),p2=Fe({id:{type:oe([Array,String])},name:{type:oe([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,dateFormat:String,timeFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:oe([String,Object]),default:Uo},editable:{type:Boolean,default:!0},prefixIcon:{type:oe([String,Object]),default:""},size:ts,readonly:Boolean,disabled:Boolean,placeholder:{type:String,default:""},popperOptions:{type:oe(Object),default:()=>({})},modelValue:{type:oe([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:oe([Date,Array])},defaultTime:{type:oe([Date,Array])},isRange:Boolean,...bD,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:Boolean,tabindex:{type:oe([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean,placement:{type:oe(String),values:La,default:"bottom"},fallbackPlacements:{type:oe(Array),default:["bottom","top","right","left"]},...Pc,..._s(["ariaLabel"])}),wQ=J({name:"Picker"}),SQ=J({...wQ,props:p2,emits:["update:modelValue","change","focus","blur","clear","calendar-change","panel-change","visible-change","keydown"],setup(e,{expose:t,emit:n}){const s=e,r=zl(),{lang:i}=zt(),a=Re("date"),o=Re("input"),l=Re("range"),{form:u,formItem:c}=Bs(),f=Xe("ElPopperOptions",{}),{valueOnClear:h}=Kg(s,null),m=q(),g=q(),p=q(!1),v=q(!1),y=q(null);let _=!1,b=!1;const T=k(()=>[a.b("editor"),a.bm("editor",s.type),o.e("wrapper"),a.is("disabled",ne.value),a.is("active",p.value),l.b("editor"),Ie?l.bm("editor",Ie.value):"",r.class]),S=k(()=>[o.e("icon"),l.e("close-icon"),ve.value?"":l.e("close-icon--hidden")]);xe(p,Ce=>{Ce?it(()=>{Ce&&(y.value=s.modelValue)}):(je.value=null,it(()=>{C(s.modelValue)}))});const C=(Ce,mt)=>{(mt||!RE(Ce,y.value))&&(n("change",Ce),s.validateEvent&&(c==null||c.validate("change").catch(Vt=>void 0)))},D=Ce=>{if(!RE(s.modelValue,Ce)){let mt;Ye(Ce)?mt=Ce.map(Vt=>ME(Vt,s.valueFormat,i.value)):Ce&&(mt=ME(Ce,s.valueFormat,i.value)),n("update:modelValue",Ce&&mt,i.value)}},N=Ce=>{n("keydown",Ce)},$=k(()=>{if(g.value){const Ce=Be.value?g.value:g.value.$el;return Array.from(Ce.querySelectorAll("input"))}return[]}),L=(Ce,mt,Vt)=>{const Qt=$.value;Qt.length&&(!Vt||Vt==="min"?(Qt[0].setSelectionRange(Ce,mt),Qt[0].focus()):Vt==="max"&&(Qt[1].setSelectionRange(Ce,mt),Qt[1].focus()))},z=()=>{F(!0,!0),it(()=>{b=!1})},U=(Ce="",mt=!1)=>{mt||(b=!0),p.value=mt;let Vt;Ye(Ce)?Vt=Ce.map(Qt=>Qt.toDate()):Vt=Ce&&Ce.toDate(),je.value=null,D(Vt)},W=()=>{v.value=!0},K=()=>{n("visible-change",!0)},X=Ce=>{(Ce==null?void 0:Ce.key)===at.esc&&F(!0,!0)},B=()=>{v.value=!1,p.value=!1,b=!1,n("visible-change",!1)},Q=()=>{p.value=!0},Y=()=>{p.value=!1},F=(Ce=!0,mt=!1)=>{b=mt;const[Vt,Qt]=d($);let Wt=Vt;!Ce&&Be.value&&(Wt=Qt),Wt&&Wt.focus()},H=Ce=>{s.readonly||ne.value||p.value||b||(p.value=!0,n("focus",Ce))};let Z;const se=Ce=>{const mt=async()=>{setTimeout(()=>{var Vt;Z===mt&&(!((Vt=m.value)!=null&&Vt.isFocusInsideContent()&&!_)&&$.value.filter(Qt=>Qt.contains(document.activeElement)).length===0&&(Ae(),p.value=!1,n("blur",Ce),s.validateEvent&&(c==null||c.validate("blur").catch(Qt=>void 0))),_=!1)},0)};Z=mt,mt()},ne=k(()=>s.disabled||(u==null?void 0:u.disabled)),we=k(()=>{let Ce;if(re.value?Ne.value.getDefaultValue&&(Ce=Ne.value.getDefaultValue()):Ye(s.modelValue)?Ce=s.modelValue.map(mt=>NE(mt,s.valueFormat,i.value)):Ce=NE(s.modelValue,s.valueFormat,i.value),Ne.value.getRangeAvailableTime){const mt=Ne.value.getRangeAvailableTime(Ce);Ps(mt,Ce)||(Ce=mt,re.value||D(Ye(Ce)?Ce.map(Vt=>Vt.toDate()):Ce.toDate()))}return Ye(Ce)&&Ce.some(mt=>!mt)&&(Ce=[]),Ce}),De=k(()=>{if(!Ne.value.panelReady)return"";const Ce=_t(we.value);return Ye(je.value)?[je.value[0]||Ce&&Ce[0]||"",je.value[1]||Ce&&Ce[1]||""]:je.value!==null?je.value:!te.value&&re.value||!p.value&&re.value?"":Ce?ge.value||pe.value||Oe.value?Ce.join(", "):Ce:""}),Ee=k(()=>s.type.includes("time")),te=k(()=>s.type.startsWith("time")),ge=k(()=>s.type==="dates"),pe=k(()=>s.type==="months"),Oe=k(()=>s.type==="years"),Pe=k(()=>s.prefixIcon||(Ee.value?O1:Kz)),ve=q(!1),ee=Ce=>{s.readonly||ne.value||(ve.value&&(Ce.stopPropagation(),z(),Ne.value.handleClear?Ne.value.handleClear():D(h.value),C(h.value,!0),ve.value=!1,B()),n("clear"))},re=k(()=>{const{modelValue:Ce}=s;return!Ce||Ye(Ce)&&!Ce.filter(Boolean).length}),Se=async Ce=>{var mt;s.readonly||ne.value||(((mt=Ce.target)==null?void 0:mt.tagName)!=="INPUT"||$.value.includes(document.activeElement))&&(p.value=!0)},Le=()=>{s.readonly||ne.value||!re.value&&s.clearable&&(ve.value=!0)},_e=()=>{ve.value=!1},ke=Ce=>{var mt;s.readonly||ne.value||(((mt=Ce.touches[0].target)==null?void 0:mt.tagName)!=="INPUT"||$.value.includes(document.activeElement))&&(p.value=!0)},Be=k(()=>s.type.includes("range")),Ie=Kn(),ze=k(()=>{var Ce,mt;return(mt=(Ce=d(m))==null?void 0:Ce.popperRef)==null?void 0:mt.contentRef}),Ve=k(()=>{var Ce;return d(Be)?d(g):(Ce=d(g))==null?void 0:Ce.$el}),Ze=l1(Ve,Ce=>{const mt=d(ze),Vt=d(Ve);mt&&(Ce.target===mt||Ce.composedPath().includes(mt))||Ce.target===Vt||Ce.composedPath().includes(Vt)||(p.value=!1)});un(()=>{Ze==null||Ze()});const je=q(null),Ae=()=>{if(je.value){const Ce=nt(De.value);Ce&&xt(Ce)&&(D(Ye(Ce)?Ce.map(mt=>mt.toDate()):Ce.toDate()),je.value=null)}je.value===""&&(D(h.value),C(h.value),je.value=null)},nt=Ce=>Ce?Ne.value.parseUserInput(Ce):null,_t=Ce=>Ce?Ne.value.formatToString(Ce):null,xt=Ce=>Ne.value.isValidValue(Ce),It=async Ce=>{if(s.readonly||ne.value)return;const{code:mt}=Ce;if(N(Ce),mt===at.esc){p.value===!0&&(p.value=!1,Ce.preventDefault(),Ce.stopPropagation());return}if(mt===at.down&&(Ne.value.handleFocusPicker&&(Ce.preventDefault(),Ce.stopPropagation()),p.value===!1&&(p.value=!0,await it()),Ne.value.handleFocusPicker)){Ne.value.handleFocusPicker();return}if(mt===at.tab){_=!0;return}if(mt===at.enter||mt===at.numpadEnter){(je.value===null||je.value===""||xt(nt(De.value)))&&(Ae(),p.value=!1),Ce.stopPropagation();return}if(je.value){Ce.stopPropagation();return}Ne.value.handleKeydownInput&&Ne.value.handleKeydownInput(Ce)},Kt=Ce=>{je.value=Ce,p.value||(p.value=!0)},pn=Ce=>{const mt=Ce.target;je.value?je.value=[mt.value,je.value[1]]:je.value=[mt.value,null]},be=Ce=>{const mt=Ce.target;je.value?je.value=[je.value[0],mt.value]:je.value=[null,mt.value]},et=()=>{var Ce;const mt=je.value,Vt=nt(mt&&mt[0]),Qt=d(we);if(Vt&&Vt.isValid()){je.value=[_t(Vt),((Ce=De.value)==null?void 0:Ce[1])||null];const Wt=[Vt,Qt&&(Qt[1]||null)];xt(Wt)&&(D(Wt),je.value=null)}},le=()=>{var Ce;const mt=d(je),Vt=nt(mt&&mt[1]),Qt=d(we);if(Vt&&Vt.isValid()){je.value=[((Ce=d(De))==null?void 0:Ce[0])||null,_t(Vt)];const Wt=[Qt&&Qt[0],Vt];xt(Wt)&&(D(Wt),je.value=null)}},Ne=q({}),Me=Ce=>{Ne.value[Ce[0]]=Ce[1],Ne.value.panelReady=!0},vt=Ce=>{n("calendar-change",Ce)},qt=(Ce,mt,Vt)=>{n("panel-change",Ce,mt,Vt)};return Mt("EP_PICKER_BASE",{props:s}),t({focus:F,handleFocusInput:H,handleBlurInput:se,handleOpen:Q,handleClose:Y,onPick:U}),(Ce,mt)=>(x(),de(d(is),Nt({ref_key:"refPopper",ref:m,visible:p.value,effect:"light",pure:"",trigger:"click"},Ce.$attrs,{role:"dialog",teleported:"",transition:`${d(a).namespace.value}-zoom-in-top`,"popper-class":[`${d(a).namespace.value}-picker__popper`,Ce.popperClass],"popper-options":d(f),"fallback-placements":Ce.fallbackPlacements,"gpu-acceleration":!1,placement:Ce.placement,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:W,onShow:K,onHide:B}),{default:P(()=>[d(Be)?(x(),j("div",{key:1,ref_key:"inputRef",ref:g,class:M(d(T)),style:st(Ce.$attrs.style),onClick:H,onMouseenter:Le,onMouseleave:_e,onTouchstartPassive:ke,onKeydown:It},[d(Pe)?(x(),de(d(tt),{key:0,class:M([d(o).e("icon"),d(l).e("icon")]),onMousedown:ft(Se,["prevent"]),onTouchstartPassive:ke},{default:P(()=>[(x(),de(Rt(d(Pe))))]),_:1},8,["class","onMousedown"])):ae("v-if",!0),O("input",{id:Ce.id&&Ce.id[0],autocomplete:"off",name:Ce.name&&Ce.name[0],placeholder:Ce.startPlaceholder,value:d(De)&&d(De)[0],disabled:d(ne),readonly:!Ce.editable||Ce.readonly,class:M(d(l).b("input")),onMousedown:Se,onInput:pn,onChange:et,onFocus:H,onBlur:se},null,42,["id","name","placeholder","value","disabled","readonly"]),fe(Ce.$slots,"range-separator",{},()=>[O("span",{class:M(d(l).b("separator"))},ce(Ce.rangeSeparator),3)]),O("input",{id:Ce.id&&Ce.id[1],autocomplete:"off",name:Ce.name&&Ce.name[1],placeholder:Ce.endPlaceholder,value:d(De)&&d(De)[1],disabled:d(ne),readonly:!Ce.editable||Ce.readonly,class:M(d(l).b("input")),onMousedown:Se,onFocus:H,onBlur:se,onInput:be,onChange:le},null,42,["id","name","placeholder","value","disabled","readonly"]),Ce.clearIcon?(x(),de(d(tt),{key:1,class:M(d(S)),onClick:ee},{default:P(()=>[(x(),de(Rt(Ce.clearIcon)))]),_:1},8,["class"])):ae("v-if",!0)],38)):(x(),de(d(Un),{key:0,id:Ce.id,ref_key:"inputRef",ref:g,"container-role":"combobox","model-value":d(De),name:Ce.name,size:d(Ie),disabled:d(ne),placeholder:Ce.placeholder,class:M([d(a).b("editor"),d(a).bm("editor",Ce.type),Ce.$attrs.class]),style:st(Ce.$attrs.style),readonly:!Ce.editable||Ce.readonly||d(ge)||d(pe)||d(Oe)||Ce.type==="week","aria-label":Ce.ariaLabel,tabindex:Ce.tabindex,"validate-event":!1,onInput:Kt,onFocus:H,onBlur:se,onKeydown:It,onChange:Ae,onMousedown:Se,onMouseenter:Le,onMouseleave:_e,onTouchstartPassive:ke,onClick:ft(()=>{},["stop"])},{prefix:P(()=>[d(Pe)?(x(),de(d(tt),{key:0,class:M(d(o).e("icon")),onMousedown:ft(Se,["prevent"]),onTouchstartPassive:ke},{default:P(()=>[(x(),de(Rt(d(Pe))))]),_:1},8,["class","onMousedown"])):ae("v-if",!0)]),suffix:P(()=>[ve.value&&Ce.clearIcon?(x(),de(d(tt),{key:0,class:M(`${d(o).e("icon")} clear-icon`),onClick:ft(ee,["stop"])},{default:P(()=>[(x(),de(Rt(Ce.clearIcon)))]),_:1},8,["class","onClick"])):ae("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","aria-label","tabindex","onKeydown","onClick"]))]),content:P(()=>[fe(Ce.$slots,"default",{visible:p.value,actualVisible:v.value,parsedValue:d(we),format:Ce.format,dateFormat:Ce.dateFormat,timeFormat:Ce.timeFormat,unlinkPanels:Ce.unlinkPanels,type:Ce.type,defaultValue:Ce.defaultValue,onPick:U,onSelectRange:L,onSetPickerOption:Me,onCalendarChange:vt,onPanelChange:qt,onKeydown:X,onMousedown:ft(()=>{},["stop"])})]),_:3},16,["visible","transition","popper-class","popper-options","fallback-placements","placement"]))}});var wD=Ue(SQ,[["__file","picker.vue"]]);const TQ=Fe({..._D,datetimeRole:String,parsedValue:{type:oe(Object)}}),SD=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const s=(a,o,l,u)=>{const c={hour:e,minute:t,second:n};let f=a;return["hour","minute","second"].forEach(h=>{if(c[h]){let m;const g=c[h];switch(h){case"minute":{m=g(f.hour(),o,u);break}case"second":{m=g(f.hour(),f.minute(),o,u);break}default:{m=g(o,u);break}}if(m!=null&&m.length&&!m.includes(f[h]())){const p=l?0:m.length-1;f=f[h](m[p])}}}),f},r={};return{timePickerOptions:r,getAvailableTime:s,onSetOption:([a,o])=>{r[a]=o}}},D0=e=>{const t=(s,r)=>s||r,n=s=>s!==!0;return e.map(t).filter(n)},TD=(e,t,n)=>({getHoursList:(a,o)=>I0(24,e&&(()=>e==null?void 0:e(a,o))),getMinutesList:(a,o,l)=>I0(60,t&&(()=>t==null?void 0:t(a,o,l))),getSecondsList:(a,o,l,u)=>I0(60,n&&(()=>n==null?void 0:n(a,o,l,u)))}),CD=(e,t,n)=>{const{getHoursList:s,getMinutesList:r,getSecondsList:i}=TD(e,t,n);return{getAvailableHours:(u,c)=>D0(s(u,c)),getAvailableMinutes:(u,c,f)=>D0(r(u,c,f)),getAvailableSeconds:(u,c,f,h)=>D0(i(u,c,f,h))}},ED=e=>{const t=q(e.parsedValue);return xe(()=>e.visible,n=>{n||(t.value=e.parsedValue)}),t},to=new Map;if(Ht){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of to.values())for(const{documentHandler:s}of n)s(t,e);e=void 0}})}function $E(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Ir(t.arg)&&n.push(t.arg),function(s,r){const i=t.instance.popperRef,a=s.target,o=r==null?void 0:r.target,l=!t||!t.instance,u=!a||!o,c=e.contains(a)||e.contains(o),f=e===a,h=n.length&&n.some(g=>g==null?void 0:g.contains(a))||n.length&&n.includes(o),m=i&&(i.contains(a)||i.contains(o));l||u||c||f||h||m||t.value(s,r)}}const Aa={beforeMount(e,t){to.has(e)||to.set(e,[]),to.get(e).push({documentHandler:$E(e,t),bindingFn:t.value})},updated(e,t){to.has(e)||to.set(e,[]);const n=to.get(e),s=n.findIndex(i=>i.bindingFn===t.oldValue),r={documentHandler:$E(e,t),bindingFn:t.value};s>=0?n.splice(s,1,r):n.push(r)},unmounted(e){to.delete(e)}},CQ=100,EQ=600,Om={beforeMount(e,t){const n=t.value,{interval:s=CQ,delay:r=EQ}=pt(n)?{}:n;let i,a;const o=()=>pt(n)?n():n.handler(),l=()=>{a&&(clearTimeout(a),a=void 0),i&&(clearInterval(i),i=void 0)};e.addEventListener("mousedown",u=>{u.button===0&&(l(),o(),document.addEventListener("mouseup",()=>l(),{once:!0}),a=setTimeout(()=>{i=setInterval(()=>{o()},s)},r))})}},ob="_trap-focus-children",fl=[],LE=e=>{if(fl.length===0)return;const t=fl[fl.length-1][ob];if(t.length>0&&e.code===at.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,s=e.target===t[0],r=e.target===t[t.length-1];s&&n&&(e.preventDefault(),t[t.length-1].focus()),r&&!n&&(e.preventDefault(),t[0].focus())}},xQ={beforeMount(e){e[ob]=YT(e),fl.push(e),fl.length<=1&&document.addEventListener("keydown",LE)},updated(e){it(()=>{e[ob]=YT(e)})},unmounted(){fl.shift(),fl.length===0&&document.removeEventListener("keydown",LE)}};var BE=!1,ol,lb,ub,Kp,Gp,xD,Yp,cb,db,fb,kD,hb,pb,AD,ID;function er(){if(!BE){BE=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(hb=/\b(iPhone|iP[ao]d)/.exec(e),pb=/\b(iP[ao]d)/.exec(e),fb=/Android/i.exec(e),AD=/FBAN\/\w+;/i.exec(e),ID=/Mobile/i.exec(e),kD=!!/Win64/.exec(e),t){ol=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN,ol&&document&&document.documentMode&&(ol=document.documentMode);var s=/(?:Trident\/(\d+.\d+))/.exec(e);xD=s?parseFloat(s[1])+4:ol,lb=t[2]?parseFloat(t[2]):NaN,ub=t[3]?parseFloat(t[3]):NaN,Kp=t[4]?parseFloat(t[4]):NaN,Kp?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),Gp=t&&t[1]?parseFloat(t[1]):NaN):Gp=NaN}else ol=lb=ub=Gp=Kp=NaN;if(n){if(n[1]){var r=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);Yp=r?parseFloat(r[1].replace("_",".")):!0}else Yp=!1;cb=!!n[2],db=!!n[3]}else Yp=cb=db=!1}}var mb={ie:function(){return er()||ol},ieCompatibilityMode:function(){return er()||xD>ol},ie64:function(){return mb.ie()&&kD},firefox:function(){return er()||lb},opera:function(){return er()||ub},webkit:function(){return er()||Kp},safari:function(){return mb.webkit()},chrome:function(){return er()||Gp},windows:function(){return er()||cb},osx:function(){return er()||Yp},linux:function(){return er()||db},iphone:function(){return er()||hb},mobile:function(){return er()||hb||pb||fb||ID},nativeApp:function(){return er()||AD},android:function(){return er()||fb},ipad:function(){return er()||pb}},kQ=mb,Cp=!!(typeof window<"u"&&window.document&&window.document.createElement),AQ={canUseDOM:Cp,canUseWorkers:typeof Worker<"u",canUseEventListeners:Cp&&!!(window.addEventListener||window.attachEvent),canUseViewport:Cp&&!!window.screen,isInWorker:!Cp},DD=AQ,OD;DD.canUseDOM&&(OD=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function IQ(e,t){if(!DD.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,s=n in document;if(!s){var r=document.createElement("div");r.setAttribute(n,"return;"),s=typeof r[n]=="function"}return!s&&OD&&e==="wheel"&&(s=document.implementation.hasFeature("Events.wheel","3.0")),s}var DQ=IQ,FE=10,VE=40,UE=800;function PD(e){var t=0,n=0,s=0,r=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),s=t*FE,r=n*FE,"deltaY"in e&&(r=e.deltaY),"deltaX"in e&&(s=e.deltaX),(s||r)&&e.deltaMode&&(e.deltaMode==1?(s*=VE,r*=VE):(s*=UE,r*=UE)),s&&!t&&(t=s<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:t,spinY:n,pixelX:s,pixelY:r}}PD.getEventType=function(){return kQ.firefox()?"DOMMouseScroll":DQ("wheel")?"wheel":"mousewheel"};var OQ=PD;/**
|
||
* Checks if an event is supported in the current execution environment.
|
||
*
|
||
* NOTE: This will not work correctly for non-generic events such as `change`,
|
||
* `reset`, `load`, `error`, and `select`.
|
||
*
|
||
* Borrows from Modernizr.
|
||
*
|
||
* @param {string} eventNameSuffix Event name, e.g. "click".
|
||
* @param {?boolean} capture Check if the capture phase is supported.
|
||
* @return {boolean} True if the event is supported.
|
||
* @internal
|
||
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
||
*/const PQ=function(e,t){if(e&&e.addEventListener){const n=function(s){const r=OQ(s);t&&Reflect.apply(t,this,[s,r])};e.addEventListener("wheel",n,{passive:!0})}},RQ={beforeMount(e,t){PQ(e,t.value)}},NQ=Fe({role:{type:String,required:!0},spinnerDate:{type:oe(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:oe(String),default:""},...bD}),MQ=J({__name:"basic-time-spinner",props:NQ,emits:["change","select-range","set-option"],setup(e,{emit:t}){const n=e,s=Re("time"),{getHoursList:r,getMinutesList:i,getSecondsList:a}=TD(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let o=!1;const l=q(),u=q(),c=q(),f=q(),h={hours:u,minutes:c,seconds:f},m=k(()=>n.showSeconds?OE:OE.slice(0,2)),g=k(()=>{const{spinnerDate:F}=n,H=F.hour(),Z=F.minute(),se=F.second();return{hours:H,minutes:Z,seconds:se}}),p=k(()=>{const{hours:F,minutes:H}=d(g);return{hours:r(n.role),minutes:i(F,n.role),seconds:a(F,H,n.role)}}),v=k(()=>{const{hours:F,minutes:H,seconds:Z}=d(g);return{hours:A0(F,23),minutes:A0(H,59),seconds:A0(Z,59)}}),y=fr(F=>{o=!1,T(F)},200),_=F=>{if(!!!n.amPmMode)return"";const Z=n.amPmMode==="A";let se=F<12?" am":" pm";return Z&&(se=se.toUpperCase()),se},b=F=>{let H;switch(F){case"hours":H=[0,2];break;case"minutes":H=[3,5];break;case"seconds":H=[6,8];break}const[Z,se]=H;t("select-range",Z,se),l.value=F},T=F=>{D(F,d(g)[F])},S=()=>{T("hours"),T("minutes"),T("seconds")},C=F=>F.querySelector(`.${s.namespace.value}-scrollbar__wrap`),D=(F,H)=>{if(n.arrowControl)return;const Z=d(h[F]);Z&&Z.$el&&(C(Z.$el).scrollTop=Math.max(0,H*N(F)))},N=F=>{const H=d(h[F]),Z=H==null?void 0:H.$el.querySelector("li");return Z&&Number.parseFloat(co(Z,"height"))||0},$=()=>{z(1)},L=()=>{z(-1)},z=F=>{l.value||b("hours");const H=l.value,Z=d(g)[H],se=l.value==="hours"?24:60,ne=U(H,Z,F,se);W(H,ne),D(H,ne),it(()=>b(H))},U=(F,H,Z,se)=>{let ne=(H+Z+se)%se;const we=d(p)[F];for(;we[ne]&&ne!==H;)ne=(ne+Z+se)%se;return ne},W=(F,H)=>{if(d(p)[F][H])return;const{hours:ne,minutes:we,seconds:De}=d(g);let Ee;switch(F){case"hours":Ee=n.spinnerDate.hour(H).minute(we).second(De);break;case"minutes":Ee=n.spinnerDate.hour(ne).minute(H).second(De);break;case"seconds":Ee=n.spinnerDate.hour(ne).minute(we).second(H);break}t("change",Ee)},K=(F,{value:H,disabled:Z})=>{Z||(W(F,H),b(F),D(F,H))},X=F=>{o=!0,y(F);const H=Math.min(Math.round((C(d(h[F]).$el).scrollTop-(B(F)*.5-10)/N(F)+3)/N(F)),F==="hours"?23:59);W(F,H)},B=F=>d(h[F]).$el.offsetHeight,Q=()=>{const F=H=>{const Z=d(h[H]);Z&&Z.$el&&(C(Z.$el).onscroll=()=>{X(H)})};F("hours"),F("minutes"),F("seconds")};gt(()=>{it(()=>{!n.arrowControl&&Q(),S(),n.role==="start"&&b("hours")})});const Y=(F,H)=>{h[H].value=F};return t("set-option",[`${n.role}_scrollDown`,z]),t("set-option",[`${n.role}_emitSelectRange`,b]),xe(()=>n.spinnerDate,()=>{o||S()}),(F,H)=>(x(),j("div",{class:M([d(s).b("spinner"),{"has-seconds":F.showSeconds}])},[F.arrowControl?ae("v-if",!0):(x(!0),j(Ke,{key:0},bt(d(m),Z=>(x(),de(d(aa),{key:Z,ref_for:!0,ref:se=>Y(se,Z),class:M(d(s).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":d(s).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:se=>b(Z),onMousemove:se=>T(Z)},{default:P(()=>[(x(!0),j(Ke,null,bt(d(p)[Z],(se,ne)=>(x(),j("li",{key:ne,class:M([d(s).be("spinner","item"),d(s).is("active",ne===d(g)[Z]),d(s).is("disabled",se)]),onClick:we=>K(Z,{value:ne,disabled:se})},[Z==="hours"?(x(),j(Ke,{key:0},[Te(ce(("0"+(F.amPmMode?ne%12||12:ne)).slice(-2))+ce(_(ne)),1)],64)):(x(),j(Ke,{key:1},[Te(ce(("0"+ne).slice(-2)),1)],64))],10,["onClick"]))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),F.arrowControl?(x(!0),j(Ke,{key:1},bt(d(m),Z=>(x(),j("div",{key:Z,class:M([d(s).be("spinner","wrapper"),d(s).is("arrow")]),onMouseenter:se=>b(Z)},[yt((x(),de(d(tt),{class:M(["arrow-up",d(s).be("spinner","arrow")])},{default:P(()=>[E(d(Bg))]),_:1},8,["class"])),[[d(Om),L]]),yt((x(),de(d(tt),{class:M(["arrow-down",d(s).be("spinner","arrow")])},{default:P(()=>[E(d(sa))]),_:1},8,["class"])),[[d(Om),$]]),O("ul",{class:M(d(s).be("spinner","list"))},[(x(!0),j(Ke,null,bt(d(v)[Z],(se,ne)=>(x(),j("li",{key:ne,class:M([d(s).be("spinner","item"),d(s).is("active",se===d(g)[Z]),d(s).is("disabled",d(p)[Z][se])])},[typeof se=="number"?(x(),j(Ke,{key:0},[Z==="hours"?(x(),j(Ke,{key:0},[Te(ce(("0"+(F.amPmMode?se%12||12:se)).slice(-2))+ce(_(se)),1)],64)):(x(),j(Ke,{key:1},[Te(ce(("0"+se).slice(-2)),1)],64))],64)):ae("v-if",!0)],2))),128))],2)],42,["onMouseenter"]))),128)):ae("v-if",!0)],2))}});var gb=Ue(MQ,[["__file","basic-time-spinner.vue"]]);const $Q=J({__name:"panel-time-pick",props:TQ,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=Xe("EP_PICKER_BASE"),{arrowControl:r,disabledHours:i,disabledMinutes:a,disabledSeconds:o,defaultValue:l}=s.props,{getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}=CD(i,a,o),h=Re("time"),{t:m,lang:g}=zt(),p=q([0,2]),v=ED(n),y=k(()=>An(n.actualVisible)?`${h.namespace.value}-zoom-in-top`:""),_=k(()=>n.format.includes("ss")),b=k(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),T=Y=>{const F=St(Y).locale(g.value),H=K(F);return F.isSame(H)},S=()=>{t("pick",v.value,!1)},C=(Y=!1,F=!1)=>{F||t("pick",n.parsedValue,Y)},D=Y=>{if(!n.visible)return;const F=K(Y).millisecond(0);t("pick",F,!0)},N=(Y,F)=>{t("select-range",Y,F),p.value=[Y,F]},$=Y=>{const F=[0,3].concat(_.value?[6]:[]),H=["hours","minutes"].concat(_.value?["seconds"]:[]),se=(F.indexOf(p.value[0])+Y+F.length)%F.length;z.start_emitSelectRange(H[se])},L=Y=>{const F=Y.code,{left:H,right:Z,up:se,down:ne}=at;if([H,Z].includes(F)){$(F===H?-1:1),Y.preventDefault();return}if([se,ne].includes(F)){const we=F===se?-1:1;z.start_scrollDown(we),Y.preventDefault();return}},{timePickerOptions:z,onSetOption:U,getAvailableTime:W}=SD({getAvailableHours:u,getAvailableMinutes:c,getAvailableSeconds:f}),K=Y=>W(Y,n.datetimeRole||"",!0),X=Y=>Y?St(Y,n.format).locale(g.value):null,B=Y=>Y?Y.format(n.format):null,Q=()=>St(l).locale(g.value);return t("set-picker-option",["isValidValue",T]),t("set-picker-option",["formatToString",B]),t("set-picker-option",["parseUserInput",X]),t("set-picker-option",["handleKeydownInput",L]),t("set-picker-option",["getRangeAvailableTime",K]),t("set-picker-option",["getDefaultValue",Q]),(Y,F)=>(x(),de(Wn,{name:d(y)},{default:P(()=>[Y.actualVisible||Y.visible?(x(),j("div",{key:0,class:M(d(h).b("panel"))},[O("div",{class:M([d(h).be("panel","content"),{"has-seconds":d(_)}])},[E(gb,{ref:"spinner",role:Y.datetimeRole||"start","arrow-control":d(r),"show-seconds":d(_),"am-pm-mode":d(b),"spinner-date":Y.parsedValue,"disabled-hours":d(i),"disabled-minutes":d(a),"disabled-seconds":d(o),onChange:D,onSetOption:d(U),onSelectRange:N},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),O("div",{class:M(d(h).be("panel","footer"))},[O("button",{type:"button",class:M([d(h).be("panel","btn"),"cancel"]),onClick:S},ce(d(m)("el.datepicker.cancel")),3),O("button",{type:"button",class:M([d(h).be("panel","btn"),"confirm"]),onClick:H=>C()},ce(d(m)("el.datepicker.confirm")),11,["onClick"])],2)],2)):ae("v-if",!0)]),_:1},8,["name"]))}});var Pm=Ue($Q,[["__file","panel-time-pick.vue"]]);const LQ=Fe({..._D,parsedValue:{type:oe(Array)}}),BQ=J({__name:"panel-time-range",props:LQ,emits:["pick","select-range","set-picker-option"],setup(e,{emit:t}){const n=e,s=(Pe,ve)=>{const ee=[];for(let re=Pe;re<=ve;re++)ee.push(re);return ee},{t:r,lang:i}=zt(),a=Re("time"),o=Re("picker"),l=Xe("EP_PICKER_BASE"),{arrowControl:u,disabledHours:c,disabledMinutes:f,disabledSeconds:h,defaultValue:m}=l.props,g=k(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),T.value?"has-seconds":""]),p=k(()=>[a.be("range-picker","body"),a.be("panel","content"),a.is("arrow",u),T.value?"has-seconds":""]),v=k(()=>n.parsedValue[0]),y=k(()=>n.parsedValue[1]),_=ED(n),b=()=>{t("pick",_.value,!1)},T=k(()=>n.format.includes("ss")),S=k(()=>n.format.includes("A")?"A":n.format.includes("a")?"a":""),C=(Pe=!1)=>{t("pick",[v.value,y.value],Pe)},D=Pe=>{L(Pe.millisecond(0),y.value)},N=Pe=>{L(v.value,Pe.millisecond(0))},$=Pe=>{const ve=Pe.map(re=>St(re).locale(i.value)),ee=Z(ve);return ve[0].isSame(ee[0])&&ve[1].isSame(ee[1])},L=(Pe,ve)=>{t("pick",[Pe,ve],!0)},z=k(()=>v.value>y.value),U=q([0,2]),W=(Pe,ve)=>{t("select-range",Pe,ve,"min"),U.value=[Pe,ve]},K=k(()=>T.value?11:8),X=(Pe,ve)=>{t("select-range",Pe,ve,"max");const ee=d(K);U.value=[Pe+ee,ve+ee]},B=Pe=>{const ve=T.value?[0,3,6,11,14,17]:[0,3,8,11],ee=["hours","minutes"].concat(T.value?["seconds"]:[]),Se=(ve.indexOf(U.value[0])+Pe+ve.length)%ve.length,Le=ve.length/2;Se<Le?De.start_emitSelectRange(ee[Se]):De.end_emitSelectRange(ee[Se-Le])},Q=Pe=>{const ve=Pe.code,{left:ee,right:re,up:Se,down:Le}=at;if([ee,re].includes(ve)){B(ve===ee?-1:1),Pe.preventDefault();return}if([Se,Le].includes(ve)){const _e=ve===Se?-1:1,ke=U.value[0]<K.value?"start":"end";De[`${ke}_scrollDown`](_e),Pe.preventDefault();return}},Y=(Pe,ve)=>{const ee=c?c(Pe):[],re=Pe==="start",Le=(ve||(re?y.value:v.value)).hour(),_e=re?s(Le+1,23):s(0,Le-1);return b0(ee,_e)},F=(Pe,ve,ee)=>{const re=f?f(Pe,ve):[],Se=ve==="start",Le=ee||(Se?y.value:v.value),_e=Le.hour();if(Pe!==_e)return re;const ke=Le.minute(),Be=Se?s(ke+1,59):s(0,ke-1);return b0(re,Be)},H=(Pe,ve,ee,re)=>{const Se=h?h(Pe,ve,ee):[],Le=ee==="start",_e=re||(Le?y.value:v.value),ke=_e.hour(),Be=_e.minute();if(Pe!==ke||ve!==Be)return Se;const Ie=_e.second(),ze=Le?s(Ie+1,59):s(0,Ie-1);return b0(Se,ze)},Z=([Pe,ve])=>[Ee(Pe,"start",!0,ve),Ee(ve,"end",!1,Pe)],{getAvailableHours:se,getAvailableMinutes:ne,getAvailableSeconds:we}=CD(Y,F,H),{timePickerOptions:De,getAvailableTime:Ee,onSetOption:te}=SD({getAvailableHours:se,getAvailableMinutes:ne,getAvailableSeconds:we}),ge=Pe=>Pe?Ye(Pe)?Pe.map(ve=>St(ve,n.format).locale(i.value)):St(Pe,n.format).locale(i.value):null,pe=Pe=>Pe?Ye(Pe)?Pe.map(ve=>ve.format(n.format)):Pe.format(n.format):null,Oe=()=>{if(Ye(m))return m.map(ve=>St(ve).locale(i.value));const Pe=St(m).locale(i.value);return[Pe,Pe.add(60,"m")]};return t("set-picker-option",["formatToString",pe]),t("set-picker-option",["parseUserInput",ge]),t("set-picker-option",["isValidValue",$]),t("set-picker-option",["handleKeydownInput",Q]),t("set-picker-option",["getDefaultValue",Oe]),t("set-picker-option",["getRangeAvailableTime",Z]),(Pe,ve)=>Pe.actualVisible?(x(),j("div",{key:0,class:M([d(a).b("range-picker"),d(o).b("panel")])},[O("div",{class:M(d(a).be("range-picker","content"))},[O("div",{class:M(d(a).be("range-picker","cell"))},[O("div",{class:M(d(a).be("range-picker","header"))},ce(d(r)("el.datepicker.startTime")),3),O("div",{class:M(d(g))},[E(gb,{ref:"minSpinner",role:"start","show-seconds":d(T),"am-pm-mode":d(S),"arrow-control":d(u),"spinner-date":d(v),"disabled-hours":Y,"disabled-minutes":F,"disabled-seconds":H,onChange:D,onSetOption:d(te),onSelectRange:W},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),O("div",{class:M(d(a).be("range-picker","cell"))},[O("div",{class:M(d(a).be("range-picker","header"))},ce(d(r)("el.datepicker.endTime")),3),O("div",{class:M(d(p))},[E(gb,{ref:"maxSpinner",role:"end","show-seconds":d(T),"am-pm-mode":d(S),"arrow-control":d(u),"spinner-date":d(y),"disabled-hours":Y,"disabled-minutes":F,"disabled-seconds":H,onChange:N,onSetOption:d(te),onSelectRange:X},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),O("div",{class:M(d(a).be("panel","footer"))},[O("button",{type:"button",class:M([d(a).be("panel","btn"),"cancel"]),onClick:ee=>b()},ce(d(r)("el.datepicker.cancel")),11,["onClick"]),O("button",{type:"button",class:M([d(a).be("panel","btn"),"confirm"]),disabled:d(z),onClick:ee=>C()},ce(d(r)("el.datepicker.confirm")),11,["disabled","onClick"])],2)],2)):ae("v-if",!0)}});var FQ=Ue(BQ,[["__file","panel-time-range.vue"]]);St.extend(h2);var VQ=J({name:"ElTimePicker",install:null,props:{...p2,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,t){const n=q(),[s,r]=e.isRange?["timerange",FQ]:["time",Pm],i=a=>t.emit("update:modelValue",a);return Mt("ElPopperOptions",e.popperOptions),t.expose({focus:a=>{var o;(o=n.value)==null||o.handleFocusInput(a)},blur:a=>{var o;(o=n.value)==null||o.handleBlurInput(a)},handleOpen:()=>{var a;(a=n.value)==null||a.handleOpen()},handleClose:()=>{var a;(a=n.value)==null||a.handleClose()}}),()=>{var a;const o=(a=e.format)!=null?a:ab;return E(wD,Nt(e,{ref:n,type:s,format:o,"onUpdate:modelValue":i}),{default:l=>E(r,l,null)})}}});const UQ=Tt(VQ),HQ=(e,t)=>{const n=e.subtract(1,"month").endOf("month").date();return bo(t).map((s,r)=>n-(t-r-1))},zQ=e=>{const t=e.daysInMonth();return bo(t).map((n,s)=>s+1)},jQ=e=>bo(e.length/7).map(t=>{const n=t*7;return e.slice(n,n+7)}),qQ=Fe({selectedDay:{type:oe(Object)},range:{type:oe(Array)},date:{type:oe(Object),required:!0},hideHeader:{type:Boolean}}),WQ={pick:e=>Pt(e)};var RD={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(hr,function(){return function(n,s,r){var i=s.prototype,a=function(f){return f&&(f.indexOf?f:f.s)},o=function(f,h,m,g,p){var v=f.name?f:f.$locale(),y=a(v[h]),_=a(v[m]),b=y||_.map(function(S){return S.slice(0,g)});if(!p)return b;var T=v.weekStart;return b.map(function(S,C){return b[(C+(T||0))%7]})},l=function(){return r.Ls[r.locale()]},u=function(f,h){return f.formats[h]||function(m){return m.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,p,v){return p||v.slice(1)})}(f.formats[h.toUpperCase()])},c=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):o(f,"months")},monthsShort:function(h){return h?h.format("MMM"):o(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):o(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):o(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):o(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return c.bind(this)()},r.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(h){return u(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},r.months=function(){return o(l(),"months")},r.monthsShort=function(){return o(l(),"monthsShort","months",3)},r.weekdays=function(f){return o(l(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return o(l(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return o(l(),"weekdaysMin","weekdays",2,f)}}})})(RD);var KQ=RD.exports;const ND=xs(KQ),GQ=(e,t)=>{St.extend(ND);const n=St.localeData().firstDayOfWeek(),{t:s,lang:r}=zt(),i=St().locale(r.value),a=k(()=>!!e.range&&!!e.range.length),o=k(()=>{let h=[];if(a.value){const[m,g]=e.range,p=bo(g.date()-m.date()+1).map(_=>({text:m.date()+_,type:"current"}));let v=p.length%7;v=v===0?0:7-v;const y=bo(v).map((_,b)=>({text:b+1,type:"next"}));h=p.concat(y)}else{const m=e.date.startOf("month").day(),g=HQ(e.date,(m-n+7)%7).map(_=>({text:_,type:"prev"})),p=zQ(e.date).map(_=>({text:_,type:"current"}));h=[...g,...p];const v=7-(h.length%7||7),y=bo(v).map((_,b)=>({text:b+1,type:"next"}));h=h.concat(y)}return jQ(h)}),l=k(()=>{const h=n;return h===0?_0.map(m=>s(`el.datepicker.weeks.${m}`)):_0.slice(h).concat(_0.slice(0,h)).map(m=>s(`el.datepicker.weeks.${m}`))}),u=(h,m)=>{switch(m){case"prev":return e.date.startOf("month").subtract(1,"month").date(h);case"next":return e.date.startOf("month").add(1,"month").date(h);case"current":return e.date.date(h)}};return{now:i,isInRange:a,rows:o,weekDays:l,getFormattedDate:u,handlePickDay:({text:h,type:m})=>{const g=u(h,m);t("pick",g)},getSlotData:({text:h,type:m})=>{const g=u(h,m);return{isSelected:g.isSame(e.selectedDay),type:`${m}-month`,day:g.format("YYYY-MM-DD"),date:g.toDate()}}}},YQ=J({name:"DateTable"}),XQ=J({...YQ,props:qQ,emits:WQ,setup(e,{expose:t,emit:n}){const s=e,{isInRange:r,now:i,rows:a,weekDays:o,getFormattedDate:l,handlePickDay:u,getSlotData:c}=GQ(s,n),f=Re("calendar-table"),h=Re("calendar-day"),m=({text:g,type:p})=>{const v=[p];if(p==="current"){const y=l(g,p);y.isSame(s.selectedDay,"day")&&v.push(h.is("selected")),y.isSame(i,"day")&&v.push(h.is("today"))}return v};return t({getFormattedDate:l}),(g,p)=>(x(),j("table",{class:M([d(f).b(),d(f).is("range",d(r))]),cellspacing:"0",cellpadding:"0"},[g.hideHeader?ae("v-if",!0):(x(),j("thead",{key:0},[(x(!0),j(Ke,null,bt(d(o),v=>(x(),j("th",{key:v},ce(v),1))),128))])),O("tbody",null,[(x(!0),j(Ke,null,bt(d(a),(v,y)=>(x(),j("tr",{key:y,class:M({[d(f).e("row")]:!0,[d(f).em("row","hide-border")]:y===0&&g.hideHeader})},[(x(!0),j(Ke,null,bt(v,(_,b)=>(x(),j("td",{key:b,class:M(m(_)),onClick:T=>d(u)(_)},[O("div",{class:M(d(h).b())},[fe(g.$slots,"date-cell",{data:d(c)(_)},()=>[O("span",null,ce(_.text),1)])],2)],10,["onClick"]))),128))],2))),128))])],2))}});var HE=Ue(XQ,[["__file","date-table.vue"]]);const QQ=(e,t)=>{const n=e.endOf("month"),s=t.startOf("month"),i=n.isSame(s,"week")?s.add(1,"week"):s;return[[e,n],[i.startOf("week"),t]]},JQ=(e,t)=>{const n=e.endOf("month"),s=e.add(1,"month").startOf("month"),r=n.isSame(s,"week")?s.add(1,"week"):s,i=r.endOf("month"),a=t.startOf("month"),o=i.isSame(a,"week")?a.add(1,"week"):a;return[[e,n],[r.startOf("week"),i],[o.startOf("week"),t]]},ZQ=(e,t,n)=>{const{lang:s}=zt(),r=q(),i=St().locale(s.value),a=k({get(){return e.modelValue?l.value:r.value},set(v){if(!v)return;r.value=v;const y=v.toDate();t(Ys,y),t(At,y)}}),o=k(()=>{if(!e.range||!Ye(e.range)||e.range.length!==2||e.range.some(b=>!_o(b)))return[];const v=e.range.map(b=>St(b).locale(s.value)),[y,_]=v;return y.isAfter(_)?[]:y.isSame(_,"month")?m(y,_):y.add(1,"month").month()!==_.month()?[]:m(y,_)}),l=k(()=>e.modelValue?St(e.modelValue).locale(s.value):a.value||(o.value.length?o.value[0][0]:i)),u=k(()=>l.value.subtract(1,"month").date(1)),c=k(()=>l.value.add(1,"month").date(1)),f=k(()=>l.value.subtract(1,"year").date(1)),h=k(()=>l.value.add(1,"year").date(1)),m=(v,y)=>{const _=v.startOf("week"),b=y.endOf("week"),T=_.get("month"),S=b.get("month");return T===S?[[_,b]]:(T+1)%12===S?QQ(_,b):T+2===S||(T+1)%11===S?JQ(_,b):[]},g=v=>{a.value=v};return{calculateValidatedDateRange:m,date:l,realSelectedDay:a,pickDay:g,selectDate:v=>{const _={"prev-month":u.value,"next-month":c.value,"prev-year":f.value,"next-year":h.value,today:i}[v];_.isSame(l.value,"day")||g(_)},validatedRange:o}},eJ=e=>Ye(e)&&e.length===2&&e.every(t=>_o(t)),tJ=Fe({modelValue:{type:Date},range:{type:oe(Array),validator:eJ}}),nJ={[At]:e=>_o(e),[Ys]:e=>_o(e)},sJ="ElCalendar",rJ=J({name:sJ}),iJ=J({...rJ,props:tJ,emits:nJ,setup(e,{expose:t,emit:n}){const s=e,r=Re("calendar"),{calculateValidatedDateRange:i,date:a,pickDay:o,realSelectedDay:l,selectDate:u,validatedRange:c}=ZQ(s,n),{t:f}=zt(),h=k(()=>{const m=`el.datepicker.month${a.value.format("M")}`;return`${a.value.year()} ${f("el.datepicker.year")} ${f(m)}`});return t({selectedDay:l,pickDay:o,selectDate:u,calculateValidatedDateRange:i}),(m,g)=>(x(),j("div",{class:M(d(r).b())},[O("div",{class:M(d(r).e("header"))},[fe(m.$slots,"header",{date:d(h)},()=>[O("div",{class:M(d(r).e("title"))},ce(d(h)),3),d(c).length===0?(x(),j("div",{key:0,class:M(d(r).e("button-group"))},[E(d(hD),null,{default:P(()=>[E(d(mn),{size:"small",onClick:p=>d(u)("prev-month")},{default:P(()=>[Te(ce(d(f)("el.datepicker.prevMonth")),1)]),_:1},8,["onClick"]),E(d(mn),{size:"small",onClick:p=>d(u)("today")},{default:P(()=>[Te(ce(d(f)("el.datepicker.today")),1)]),_:1},8,["onClick"]),E(d(mn),{size:"small",onClick:p=>d(u)("next-month")},{default:P(()=>[Te(ce(d(f)("el.datepicker.nextMonth")),1)]),_:1},8,["onClick"])]),_:1})],2)):ae("v-if",!0)])],2),d(c).length===0?(x(),j("div",{key:0,class:M(d(r).e("body"))},[E(HE,{date:d(a),"selected-day":d(l),onPick:d(o)},Gr({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:P(p=>[fe(m.$slots,"date-cell",di(So(p)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(x(),j("div",{key:1,class:M(d(r).e("body"))},[(x(!0),j(Ke,null,bt(d(c),(p,v)=>(x(),de(HE,{key:v,date:p[0],"selected-day":d(l),range:p,"hide-header":v!==0,onPick:d(o)},Gr({_:2},[m.$slots["date-cell"]?{name:"date-cell",fn:P(y=>[fe(m.$slots,"date-cell",di(So(y)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var aJ=Ue(iJ,[["__file","calendar.vue"]]);const oJ=Tt(aJ),lJ=Fe({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:oe([String,Object,Array]),default:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),uJ=J({name:"ElCard"}),cJ=J({...uJ,props:lJ,setup(e){const t=Re("card");return(n,s)=>(x(),j("div",{class:M([d(t).b(),d(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(x(),j("div",{key:0,class:M(d(t).e("header"))},[fe(n.$slots,"header",{},()=>[Te(ce(n.header),1)])],2)):ae("v-if",!0),O("div",{class:M([d(t).e("body"),n.bodyClass]),style:st(n.bodyStyle)},[fe(n.$slots,"default")],6),n.$slots.footer||n.footer?(x(),j("div",{key:1,class:M(d(t).e("footer"))},[fe(n.$slots,"footer",{},()=>[Te(ce(n.footer),1)])],2)):ae("v-if",!0)],2))}});var dJ=Ue(cJ,[["__file","card.vue"]]);const fJ=Tt(dJ),hJ=Fe({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),pJ={change:(e,t)=>[e,t].every(ut)},MD=Symbol("carouselContextKey"),vb="ElCarouselItem",zE=300,mJ=(e,t,n)=>{const{children:s,addChild:r,removeChild:i}=r2(Ot(),vb),a=os(),o=q(-1),l=q(null),u=q(!1),c=q(),f=q(0),h=q(!0),m=q(!0),g=q(!1),p=k(()=>e.arrow!=="never"&&!d(_)),v=k(()=>s.value.some(Ee=>Ee.props.label.toString().length>0)),y=k(()=>e.type==="card"),_=k(()=>e.direction==="vertical"),b=k(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),T=_l(Ee=>{L(Ee)},zE,{trailing:!0}),S=_l(Ee=>{F(Ee)},zE),C=Ee=>h.value?o.value<=1?Ee<=1:Ee>1:!0;function D(){l.value&&(clearInterval(l.value),l.value=null)}function N(){e.interval<=0||!e.autoplay||l.value||(l.value=setInterval(()=>$(),e.interval))}const $=()=>{m.value||(g.value=!0),m.value=!1,o.value<s.value.length-1?o.value=o.value+1:e.loop?o.value=0:g.value=!1};function L(Ee){if(m.value||(g.value=!0),m.value=!1,ht(Ee)){const pe=s.value.filter(Oe=>Oe.props.name===Ee);pe.length>0&&(Ee=s.value.indexOf(pe[0]))}if(Ee=Number(Ee),Number.isNaN(Ee)||Ee!==Math.floor(Ee))return;const te=s.value.length,ge=o.value;Ee<0?o.value=e.loop?te-1:0:Ee>=te?o.value=e.loop?0:te-1:o.value=Ee,ge===o.value&&z(ge),se()}function z(Ee){s.value.forEach((te,ge)=>{te.translateItem(ge,o.value,Ee)})}function U(Ee,te){var ge,pe,Oe,Pe;const ve=d(s),ee=ve.length;if(ee===0||!Ee.states.inStage)return!1;const re=te+1,Se=te-1,Le=ee-1,_e=ve[Le].states.active,ke=ve[0].states.active,Be=(pe=(ge=ve[re])==null?void 0:ge.states)==null?void 0:pe.active,Ie=(Pe=(Oe=ve[Se])==null?void 0:Oe.states)==null?void 0:Pe.active;return te===Le&&ke||Be?"left":te===0&&_e||Ie?"right":!1}function W(){u.value=!0,e.pauseOnHover&&D()}function K(){u.value=!1,N()}function X(){g.value=!1}function B(Ee){d(_)||s.value.forEach((te,ge)=>{Ee===U(te,ge)&&(te.states.hover=!0)})}function Q(){d(_)||s.value.forEach(Ee=>{Ee.states.hover=!1})}function Y(Ee){Ee!==o.value&&(m.value||(g.value=!0)),o.value=Ee}function F(Ee){e.trigger==="hover"&&Ee!==o.value&&(o.value=Ee,m.value||(g.value=!0))}function H(){L(o.value-1)}function Z(){L(o.value+1)}function se(){D(),e.pauseOnHover||N()}function ne(Ee){e.height==="auto"&&(f.value=Ee)}function we(){var Ee;const te=(Ee=a.default)==null?void 0:Ee.call(a);if(!te)return null;const pe=vo(te).filter(Oe=>Cn(Oe)&&Oe.type.name===vb);return(pe==null?void 0:pe.length)===2&&e.loop&&!y.value?(h.value=!0,pe):(h.value=!1,null)}xe(()=>o.value,(Ee,te)=>{z(te),h.value&&(Ee=Ee%2,te=te%2),te>-1&&t("change",Ee,te)}),xe(()=>e.autoplay,Ee=>{Ee?N():D()}),xe(()=>e.loop,()=>{L(o.value)}),xe(()=>e.interval,()=>{se()});const De=hn();return gt(()=>{xe(()=>s.value,()=>{s.value.length>0&&L(e.initialIndex)},{immediate:!0}),De.value=Sn(c.value,()=>{z()}),N()}),un(()=>{D(),c.value&&De.value&&De.value.stop()}),Mt(MD,{root:c,isCardType:y,isVertical:_,items:s,loop:e.loop,cardScale:e.cardScale,addItem:r,removeItem:i,setActiveItem:L,setContainerHeight:ne}),{root:c,activeIndex:o,arrowDisplay:p,hasLabel:v,hover:u,isCardType:y,isTransitioning:g,items:s,isVertical:_,containerStyle:b,isItemsTwoLength:h,handleButtonEnter:B,handleTransitionEnd:X,handleButtonLeave:Q,handleIndicatorClick:Y,handleMouseEnter:W,handleMouseLeave:K,setActiveItem:L,prev:H,next:Z,PlaceholderItem:we,isTwoLengthShow:C,throttledArrowClick:T,throttledIndicatorHover:S}},gJ="ElCarousel",vJ=J({name:gJ}),yJ=J({...vJ,props:hJ,emits:pJ,setup(e,{expose:t,emit:n}){const s=e,{root:r,activeIndex:i,arrowDisplay:a,hasLabel:o,hover:l,isCardType:u,items:c,isVertical:f,containerStyle:h,handleButtonEnter:m,handleButtonLeave:g,isTransitioning:p,handleIndicatorClick:v,handleMouseEnter:y,handleMouseLeave:_,handleTransitionEnd:b,setActiveItem:T,prev:S,next:C,PlaceholderItem:D,isTwoLengthShow:N,throttledArrowClick:$,throttledIndicatorHover:L}=mJ(s,n),z=Re("carousel"),{t:U}=zt(),W=k(()=>{const B=[z.b(),z.m(s.direction)];return d(u)&&B.push(z.m("card")),B}),K=k(()=>{const B=[z.e("container")];return s.motionBlur&&d(p)&&c.value.length>1&&B.push(d(f)?`${z.namespace.value}-transitioning-vertical`:`${z.namespace.value}-transitioning`),B}),X=k(()=>{const B=[z.e("indicators"),z.em("indicators",s.direction)];return d(o)&&B.push(z.em("indicators","labels")),s.indicatorPosition==="outside"&&B.push(z.em("indicators","outside")),d(f)&&B.push(z.em("indicators","right")),B});return t({activeIndex:i,setActiveItem:T,prev:S,next:C}),(B,Q)=>(x(),j("div",{ref_key:"root",ref:r,class:M(d(W)),onMouseenter:ft(d(y),["stop"]),onMouseleave:ft(d(_),["stop"])},[d(a)?(x(),de(Wn,{key:0,name:"carousel-arrow-left",persisted:""},{default:P(()=>[yt(O("button",{type:"button",class:M([d(z).e("arrow"),d(z).em("arrow","left")]),"aria-label":d(U)("el.carousel.leftArrow"),onMouseenter:Y=>d(m)("left"),onMouseleave:d(g),onClick:ft(Y=>d($)(d(i)-1),["stop"])},[E(d(tt),null,{default:P(()=>[E(d(ko))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[Bt,(B.arrow==="always"||d(l))&&(s.loop||d(i)>0)]])]),_:1})):ae("v-if",!0),d(a)?(x(),de(Wn,{key:1,name:"carousel-arrow-right",persisted:""},{default:P(()=>[yt(O("button",{type:"button",class:M([d(z).e("arrow"),d(z).em("arrow","right")]),"aria-label":d(U)("el.carousel.rightArrow"),onMouseenter:Y=>d(m)("right"),onMouseleave:d(g),onClick:ft(Y=>d($)(d(i)+1),["stop"])},[E(d(tt),null,{default:P(()=>[E(d(Gs))]),_:1})],42,["aria-label","onMouseenter","onMouseleave","onClick"]),[[Bt,(B.arrow==="always"||d(l))&&(s.loop||d(i)<d(c).length-1)]])]),_:1})):ae("v-if",!0),O("div",{class:M(d(K)),style:st(d(h)),onTransitionend:d(b)},[E(d(D)),fe(B.$slots,"default")],46,["onTransitionend"]),B.indicatorPosition!=="none"?(x(),j("ul",{key:2,class:M(d(X))},[(x(!0),j(Ke,null,bt(d(c),(Y,F)=>yt((x(),j("li",{key:F,class:M([d(z).e("indicator"),d(z).em("indicator",B.direction),d(z).is("active",F===d(i))]),onMouseenter:H=>d(L)(F),onClick:ft(H=>d(v)(F),["stop"])},[O("button",{class:M(d(z).e("button")),"aria-label":d(U)("el.carousel.indicator",{index:F+1})},[d(o)?(x(),j("span",{key:0},ce(Y.props.label),1)):ae("v-if",!0)],10,["aria-label"])],42,["onMouseenter","onClick"])),[[Bt,d(N)(F)]])),128))],2)):ae("v-if",!0),s.motionBlur?(x(),j("svg",{key:3,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},[O("defs",null,[O("filter",{id:"elCarouselHorizontal"},[O("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),O("filter",{id:"elCarouselVertical"},[O("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])])])):ae("v-if",!0)],42,["onMouseenter","onMouseleave"]))}});var bJ=Ue(yJ,[["__file","carousel.vue"]]);const _J=Fe({name:{type:String,default:""},label:{type:[String,Number],default:""}}),wJ=e=>{const t=Xe(MD),n=Ot(),s=q(),r=q(!1),i=q(0),a=q(1),o=q(!1),l=q(!1),u=q(!1),c=q(!1),{isCardType:f,isVertical:h,cardScale:m}=t;function g(b,T,S){const C=S-1,D=T-1,N=T+1,$=S/2;return T===0&&b===C?-1:T===C&&b===0?S:b<D&&T-b>=$?S+1:b>N&&b-T>=$?-2:b}function p(b,T){var S,C;const D=d(h)?((S=t.root.value)==null?void 0:S.offsetHeight)||0:((C=t.root.value)==null?void 0:C.offsetWidth)||0;return u.value?D*((2-m)*(b-T)+1)/4:b<T?-(1+m)*D/4:(3+m)*D/4}function v(b,T,S){const C=t.root.value;return C?((S?C.offsetHeight:C.offsetWidth)||0)*(b-T):0}const y=(b,T,S)=>{var C;const D=d(f),N=(C=t.items.value.length)!=null?C:Number.NaN,$=b===T;!D&&!An(S)&&(c.value=$||b===S),!$&&N>2&&t.loop&&(b=g(b,T,N));const L=d(h);o.value=$,D?(u.value=Math.round(Math.abs(b-T))<=1,i.value=p(b,T),a.value=d(o)?1:m):i.value=v(b,T,L),l.value=!0,$&&s.value&&t.setContainerHeight(s.value.offsetHeight)};function _(){if(t&&d(f)){const b=t.items.value.findIndex(({uid:T})=>T===n.uid);t.setActiveItem(b)}}return gt(()=>{t.addItem({props:e,states:Ct({hover:r,translate:i,scale:a,active:o,ready:l,inStage:u,animating:c}),uid:n.uid,translateItem:y})}),Fo(()=>{t.removeItem(n.uid)}),{carouselItemRef:s,active:o,animating:c,hover:r,inStage:u,isVertical:h,translate:i,isCardType:f,scale:a,ready:l,handleItemClick:_}},SJ=J({name:vb}),TJ=J({...SJ,props:_J,setup(e){const t=e,n=Re("carousel"),{carouselItemRef:s,active:r,animating:i,hover:a,inStage:o,isVertical:l,translate:u,isCardType:c,scale:f,ready:h,handleItemClick:m}=wJ(t),g=k(()=>[n.e("item"),n.is("active",r.value),n.is("in-stage",o.value),n.is("hover",a.value),n.is("animating",i.value),{[n.em("item","card")]:c.value,[n.em("item","card-vertical")]:c.value&&l.value}]),p=k(()=>{const y=`${`translate${d(l)?"Y":"X"}`}(${d(u)}px)`,_=`scale(${d(f)})`;return{transform:[y,_].join(" ")}});return(v,y)=>yt((x(),j("div",{ref_key:"carouselItemRef",ref:s,class:M(d(g)),style:st(d(p)),onClick:d(m)},[d(c)?yt((x(),j("div",{key:0,class:M(d(n).e("mask"))},null,2)),[[Bt,!d(r)]]):ae("v-if",!0),fe(v.$slots,"default")],14,["onClick"])),[[Bt,d(h)]])}});var $D=Ue(TJ,[["__file","carousel-item.vue"]]);const LD=Tt(bJ,{CarouselItem:$D}),BD=kn($D),FD={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},border:Boolean,size:ts,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},..._s(["ariaControls"])},VD={[At]:e=>ht(e)||ut(e)||In(e),change:e=>ht(e)||ut(e)||In(e)},Nc=Symbol("checkboxGroupContextKey"),CJ=({model:e,isChecked:t})=>{const n=Xe(Nc,void 0),s=k(()=>{var i,a;const o=(i=n==null?void 0:n.max)==null?void 0:i.value,l=(a=n==null?void 0:n.min)==null?void 0:a.value;return!An(o)&&e.value.length>=o&&!t.value||!An(l)&&e.value.length<=l&&t.value});return{isDisabled:Ls(k(()=>(n==null?void 0:n.disabled.value)||s.value)),isLimitDisabled:s}},EJ=(e,{model:t,isLimitExceeded:n,hasOwnLabel:s,isDisabled:r,isLabeledByFormItem:i})=>{const a=Xe(Nc,void 0),{formItem:o}=Bs(),{emit:l}=Ot();function u(g){var p,v,y,_;return[!0,e.trueValue,e.trueLabel].includes(g)?(v=(p=e.trueValue)!=null?p:e.trueLabel)!=null?v:!0:(_=(y=e.falseValue)!=null?y:e.falseLabel)!=null?_:!1}function c(g,p){l("change",u(g),p)}function f(g){if(n.value)return;const p=g.target;l("change",u(p.checked),g)}async function h(g){n.value||!s.value&&!r.value&&i.value&&(g.composedPath().some(y=>y.tagName==="LABEL")||(t.value=u([!1,e.falseValue,e.falseLabel].includes(t.value)),await it(),c(t.value,g)))}const m=k(()=>(a==null?void 0:a.validateEvent)||e.validateEvent);return xe(()=>e.modelValue,()=>{m.value&&(o==null||o.validate("change").catch(g=>void 0))}),{handleChange:f,onClickRoot:h}},xJ=e=>{const t=q(!1),{emit:n}=Ot(),s=Xe(Nc,void 0),r=k(()=>An(s)===!1),i=q(!1),a=k({get(){var o,l;return r.value?(o=s==null?void 0:s.modelValue)==null?void 0:o.value:(l=e.modelValue)!=null?l:t.value},set(o){var l,u;r.value&&Ye(o)?(i.value=((l=s==null?void 0:s.max)==null?void 0:l.value)!==void 0&&o.length>(s==null?void 0:s.max.value)&&o.length>a.value.length,i.value===!1&&((u=s==null?void 0:s.changeEvent)==null||u.call(s,o))):(n(At,o),t.value=o)}});return{model:a,isGroup:r,isLimitExceeded:i}},kJ=(e,t,{model:n})=>{const s=Xe(Nc,void 0),r=q(!1),i=k(()=>Pl(e.value)?e.label:e.value),a=k(()=>{const c=n.value;return In(c)?c:Ye(c)?Pt(i.value)?c.map(on).some(f=>Ps(f,i.value)):c.map(on).includes(i.value):c!=null?c===e.trueValue||c===e.trueLabel:!!c}),o=Kn(k(()=>{var c;return(c=s==null?void 0:s.size)==null?void 0:c.value}),{prop:!0}),l=Kn(k(()=>{var c;return(c=s==null?void 0:s.size)==null?void 0:c.value})),u=k(()=>!!t.default||!Pl(i.value));return{checkboxButtonSize:o,isChecked:a,isFocused:r,checkboxSize:l,hasOwnLabel:u,actualValue:i}},UD=(e,t)=>{const{formItem:n}=Bs(),{model:s,isGroup:r,isLimitExceeded:i}=xJ(e),{isFocused:a,isChecked:o,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:f}=kJ(e,t,{model:s}),{isDisabled:h}=CJ({model:s,isChecked:o}),{inputId:m,isLabeledByFormItem:g}=Ai(e,{formItemContext:n,disableIdGeneration:c,disableIdManagement:r}),{handleChange:p,onClickRoot:v}=EJ(e,{model:s,isLimitExceeded:i,hasOwnLabel:c,isDisabled:h,isLabeledByFormItem:g});return(()=>{function _(){var b,T;Ye(s.value)&&!s.value.includes(f.value)?s.value.push(f.value):s.value=(T=(b=e.trueValue)!=null?b:e.trueLabel)!=null?T:!0}e.checked&&_()})(),yo({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k(()=>r.value&&Pl(e.value))),yo({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k(()=>!!e.trueLabel)),yo({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},k(()=>!!e.falseLabel)),{inputId:m,isLabeledByFormItem:g,isChecked:o,isDisabled:h,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:s,actualValue:f,handleChange:p,onClickRoot:v}},AJ=J({name:"ElCheckbox"}),IJ=J({...AJ,props:FD,emits:VD,setup(e){const t=e,n=os(),{inputId:s,isLabeledByFormItem:r,isChecked:i,isDisabled:a,isFocused:o,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:f,handleChange:h,onClickRoot:m}=UD(t,n),g=Re("checkbox"),p=k(()=>[g.b(),g.m(l.value),g.is("disabled",a.value),g.is("bordered",t.border),g.is("checked",i.value)]),v=k(()=>[g.e("input"),g.is("disabled",a.value),g.is("checked",i.value),g.is("indeterminate",t.indeterminate),g.is("focus",o.value)]);return(y,_)=>(x(),de(Rt(!d(u)&&d(r)?"span":"label"),{class:M(d(p)),"aria-controls":y.indeterminate?y.ariaControls:null,onClick:d(m)},{default:P(()=>{var b,T,S,C;return[O("span",{class:M(d(v))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?yt((x(),j("input",{key:0,id:d(s),"onUpdate:modelValue":D=>yn(c)?c.value=D:null,class:M(d(g).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:d(a),"true-value":(T=(b=y.trueValue)!=null?b:y.trueLabel)!=null?T:!0,"false-value":(C=(S=y.falseValue)!=null?S:y.falseLabel)!=null?C:!1,onChange:d(h),onFocus:D=>o.value=!0,onBlur:D=>o.value=!1,onClick:ft(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[bf,d(c)]]):yt((x(),j("input",{key:1,id:d(s),"onUpdate:modelValue":D=>yn(c)?c.value=D:null,class:M(d(g).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:d(a),value:d(f),name:y.name,tabindex:y.tabindex,onChange:d(h),onFocus:D=>o.value=!0,onBlur:D=>o.value=!1,onClick:ft(()=>{},["stop"])},null,42,["id","onUpdate:modelValue","indeterminate","disabled","value","name","tabindex","onChange","onFocus","onBlur","onClick"])),[[bf,d(c)]]),O("span",{class:M(d(g).e("inner"))},null,2)],2),d(u)?(x(),j("span",{key:0,class:M(d(g).e("label"))},[fe(y.$slots,"default"),y.$slots.default?ae("v-if",!0):(x(),j(Ke,{key:0},[Te(ce(y.label),1)],64))],2)):ae("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var DJ=Ue(IJ,[["__file","checkbox.vue"]]);const OJ=J({name:"ElCheckboxButton"}),PJ=J({...OJ,props:FD,emits:VD,setup(e){const t=e,n=os(),{isFocused:s,isChecked:r,isDisabled:i,checkboxButtonSize:a,model:o,actualValue:l,handleChange:u}=UD(t,n),c=Xe(Nc,void 0),f=Re("checkbox"),h=k(()=>{var g,p,v,y;const _=(p=(g=c==null?void 0:c.fill)==null?void 0:g.value)!=null?p:"";return{backgroundColor:_,borderColor:_,color:(y=(v=c==null?void 0:c.textColor)==null?void 0:v.value)!=null?y:"",boxShadow:_?`-1px 0 0 0 ${_}`:void 0}}),m=k(()=>[f.b("button"),f.bm("button",a.value),f.is("disabled",i.value),f.is("checked",r.value),f.is("focus",s.value)]);return(g,p)=>{var v,y,_,b;return x(),j("label",{class:M(d(m))},[g.trueValue||g.falseValue||g.trueLabel||g.falseLabel?yt((x(),j("input",{key:0,"onUpdate:modelValue":T=>yn(o)?o.value=T:null,class:M(d(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:d(i),"true-value":(y=(v=g.trueValue)!=null?v:g.trueLabel)!=null?y:!0,"false-value":(b=(_=g.falseValue)!=null?_:g.falseLabel)!=null?b:!1,onChange:d(u),onFocus:T=>s.value=!0,onBlur:T=>s.value=!1,onClick:ft(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","true-value","false-value","onChange","onFocus","onBlur","onClick"])),[[bf,d(o)]]):yt((x(),j("input",{key:1,"onUpdate:modelValue":T=>yn(o)?o.value=T:null,class:M(d(f).be("button","original")),type:"checkbox",name:g.name,tabindex:g.tabindex,disabled:d(i),value:d(l),onChange:d(u),onFocus:T=>s.value=!0,onBlur:T=>s.value=!1,onClick:ft(()=>{},["stop"])},null,42,["onUpdate:modelValue","name","tabindex","disabled","value","onChange","onFocus","onBlur","onClick"])),[[bf,d(o)]]),g.$slots.default||g.label?(x(),j("span",{key:2,class:M(d(f).be("button","inner")),style:st(d(r)?d(h):void 0)},[fe(g.$slots,"default",{},()=>[Te(ce(g.label),1)])],6)):ae("v-if",!0)],2)}}});var HD=Ue(PJ,[["__file","checkbox-button.vue"]]);const RJ=Fe({modelValue:{type:oe(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:ts,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},..._s(["ariaLabel"])}),NJ={[At]:e=>Ye(e),change:e=>Ye(e)},MJ=J({name:"ElCheckboxGroup"}),$J=J({...MJ,props:RJ,emits:NJ,setup(e,{emit:t}){const n=e,s=Re("checkbox"),{formItem:r}=Bs(),{inputId:i,isLabeledByFormItem:a}=Ai(n,{formItemContext:r}),o=async u=>{t(At,u),await it(),t("change",u)},l=k({get(){return n.modelValue},set(u){o(u)}});return Mt(Nc,{...hi(cs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:o}),xe(()=>n.modelValue,()=>{n.validateEvent&&(r==null||r.validate("change").catch(u=>void 0))}),(u,c)=>{var f;return x(),de(Rt(u.tag),{id:d(i),class:M(d(s).b("group")),role:"group","aria-label":d(a)?void 0:u.ariaLabel||"checkbox-group","aria-labelledby":d(a)?(f=d(r))==null?void 0:f.labelId:void 0},{default:P(()=>[fe(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var zD=Ue($J,[["__file","checkbox-group.vue"]]);const Jr=Tt(DJ,{CheckboxButton:HD,CheckboxGroup:zD}),LJ=kn(HD),jD=kn(zD),qD=Fe({modelValue:{type:[String,Number,Boolean],default:void 0},size:ts,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),BJ=Fe({...qD,border:Boolean}),WD={[At]:e=>ht(e)||ut(e)||In(e),[gn]:e=>ht(e)||ut(e)||In(e)},KD=Symbol("radioGroupKey"),GD=(e,t)=>{const n=q(),s=Xe(KD,void 0),r=k(()=>!!s),i=k(()=>Pl(e.value)?e.label:e.value),a=k({get(){return r.value?s.modelValue:e.modelValue},set(f){r.value?s.changeEvent(f):t&&t(At,f),n.value.checked=e.modelValue===i.value}}),o=Kn(k(()=>s==null?void 0:s.size)),l=Ls(k(()=>s==null?void 0:s.disabled)),u=q(!1),c=k(()=>l.value||r.value&&a.value!==i.value?-1:0);return yo({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},k(()=>r.value&&Pl(e.value))),{radioRef:n,isGroup:r,radioGroup:s,focus:u,size:o,disabled:l,tabIndex:c,modelValue:a,actualValue:i}},FJ=J({name:"ElRadio"}),VJ=J({...FJ,props:BJ,emits:WD,setup(e,{emit:t}){const n=e,s=Re("radio"),{radioRef:r,radioGroup:i,focus:a,size:o,disabled:l,modelValue:u,actualValue:c}=GD(n,t);function f(){it(()=>t("change",u.value))}return(h,m)=>{var g;return x(),j("label",{class:M([d(s).b(),d(s).is("disabled",d(l)),d(s).is("focus",d(a)),d(s).is("bordered",h.border),d(s).is("checked",d(u)===d(c)),d(s).m(d(o))])},[O("span",{class:M([d(s).e("input"),d(s).is("disabled",d(l)),d(s).is("checked",d(u)===d(c))])},[yt(O("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":p=>yn(u)?u.value=p:null,class:M(d(s).e("original")),value:d(c),name:h.name||((g=d(i))==null?void 0:g.name),disabled:d(l),checked:d(u)===d(c),type:"radio",onFocus:p=>a.value=!0,onBlur:p=>a.value=!1,onChange:f,onClick:ft(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","checked","onFocus","onBlur","onClick"]),[[a1,d(u)]]),O("span",{class:M(d(s).e("inner"))},null,2)],2),O("span",{class:M(d(s).e("label")),onKeydown:ft(()=>{},["stop"])},[fe(h.$slots,"default",{},()=>[Te(ce(h.label),1)])],42,["onKeydown"])],2)}}});var UJ=Ue(VJ,[["__file","radio.vue"]]);const HJ=Fe({...qD}),zJ=J({name:"ElRadioButton"}),jJ=J({...zJ,props:HJ,setup(e){const t=e,n=Re("radio"),{radioRef:s,focus:r,size:i,disabled:a,modelValue:o,radioGroup:l,actualValue:u}=GD(t),c=k(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(f,h)=>{var m;return x(),j("label",{class:M([d(n).b("button"),d(n).is("active",d(o)===d(u)),d(n).is("disabled",d(a)),d(n).is("focus",d(r)),d(n).bm("button",d(i))])},[yt(O("input",{ref_key:"radioRef",ref:s,"onUpdate:modelValue":g=>yn(o)?o.value=g:null,class:M(d(n).be("button","original-radio")),value:d(u),type:"radio",name:f.name||((m=d(l))==null?void 0:m.name),disabled:d(a),onFocus:g=>r.value=!0,onBlur:g=>r.value=!1,onClick:ft(()=>{},["stop"])},null,42,["onUpdate:modelValue","value","name","disabled","onFocus","onBlur","onClick"]),[[a1,d(o)]]),O("span",{class:M(d(n).be("button","inner")),style:st(d(o)===d(u)?d(c):{}),onKeydown:ft(()=>{},["stop"])},[fe(f.$slots,"default",{},()=>[Te(ce(f.label),1)])],46,["onKeydown"])],2)}}});var YD=Ue(jJ,[["__file","radio-button.vue"]]);const qJ=Fe({id:{type:String,default:void 0},size:ts,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},..._s(["ariaLabel"])}),WJ=WD,KJ=J({name:"ElRadioGroup"}),GJ=J({...KJ,props:qJ,emits:WJ,setup(e,{emit:t}){const n=e,s=Re("radio"),r=ys(),i=q(),{formItem:a}=Bs(),{inputId:o,isLabeledByFormItem:l}=Ai(n,{formItemContext:a}),u=f=>{t(At,f),it(()=>t("change",f))};gt(()=>{const f=i.value.querySelectorAll("[type=radio]"),h=f[0];!Array.from(f).some(m=>m.checked)&&h&&(h.tabIndex=0)});const c=k(()=>n.name||r.value);return Mt(KD,Ct({...cs(n),changeEvent:u,name:c})),xe(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(f=>void 0))}),(f,h)=>(x(),j("div",{id:d(o),ref_key:"radioGroupRef",ref:i,class:M(d(s).b("group")),role:"radiogroup","aria-label":d(l)?void 0:f.ariaLabel||"radio-group","aria-labelledby":d(l)?d(a).labelId:void 0},[fe(f.$slots,"default")],10,["id","aria-label","aria-labelledby"]))}});var XD=Ue(GJ,[["__file","radio-group.vue"]]);const Jg=Tt(UJ,{RadioButton:YD,RadioGroup:XD}),m2=kn(XD),YJ=kn(YD);var XJ=J({name:"NodeContent",setup(){return{ns:Re("cascader-node")}},render(){const{ns:e}=this,{node:t,panel:n}=this.$parent,{data:s,label:r}=t,{renderLabelFn:i}=n;return ot("span",{class:e.e("label")},i?i({node:t,data:s}):r)}});const g2=Symbol(),QJ=J({name:"ElCascaderNode",components:{ElCheckbox:Jr,ElRadio:Jg,NodeContent:XJ,ElIcon:tt,Check:uh,Loading:Gi,ArrowRight:Gs},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup(e,{emit:t}){const n=Xe(g2),s=Re("cascader-node"),r=k(()=>n.isHoverMenu),i=k(()=>n.config.multiple),a=k(()=>n.config.checkStrictly),o=k(()=>{var C;return(C=n.checkedNodes[0])==null?void 0:C.uid}),l=k(()=>e.node.isDisabled),u=k(()=>e.node.isLeaf),c=k(()=>a.value&&!u.value||!l.value),f=k(()=>m(n.expandingNode)),h=k(()=>a.value&&n.checkedNodes.some(m)),m=C=>{var D;const{level:N,uid:$}=e.node;return((D=C==null?void 0:C.pathNodes[N-1])==null?void 0:D.uid)===$},g=()=>{f.value||n.expandNode(e.node)},p=C=>{const{node:D}=e;C!==D.checked&&n.handleCheckChange(D,C)},v=()=>{n.lazyLoad(e.node,()=>{u.value||g()})},y=C=>{r.value&&(_(),!u.value&&t("expand",C))},_=()=>{const{node:C}=e;!c.value||C.loading||(C.loaded?g():v())},b=()=>{r.value&&!u.value||(u.value&&!l.value&&!a.value&&!i.value?S(!0):_())},T=C=>{a.value?(p(C),e.node.loaded&&g()):S(C)},S=C=>{e.node.loaded?(p(C),!a.value&&g()):v()};return{panel:n,isHoverMenu:r,multiple:i,checkStrictly:a,checkedNodeId:o,isDisabled:l,isLeaf:u,expandable:c,inExpandingPath:f,inCheckedPath:h,ns:s,handleHoverExpand:y,handleExpand:_,handleClick:b,handleCheck:S,handleSelectCheck:T}}});function JJ(e,t,n,s,r,i){const a=Dt("el-checkbox"),o=Dt("el-radio"),l=Dt("check"),u=Dt("el-icon"),c=Dt("node-content"),f=Dt("loading"),h=Dt("arrow-right");return x(),j("li",{id:`${e.menuId}-${e.node.uid}`,role:"menuitem","aria-haspopup":!e.isLeaf,"aria-owns":e.isLeaf?null:e.menuId,"aria-expanded":e.inExpandingPath,tabindex:e.expandable?-1:void 0,class:M([e.ns.b(),e.ns.is("selectable",e.checkStrictly),e.ns.is("active",e.node.checked),e.ns.is("disabled",!e.expandable),e.inExpandingPath&&"in-active-path",e.inCheckedPath&&"in-checked-path"]),onMouseenter:e.handleHoverExpand,onFocus:e.handleHoverExpand,onClick:e.handleClick},[ae(" prefix "),e.multiple?(x(),de(a,{key:0,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:e.isDisabled,onClick:ft(()=>{},["stop"]),"onUpdate:modelValue":e.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onClick","onUpdate:modelValue"])):e.checkStrictly?(x(),de(o,{key:1,"model-value":e.checkedNodeId,label:e.node.uid,disabled:e.isDisabled,"onUpdate:modelValue":e.handleSelectCheck,onClick:ft(()=>{},["stop"])},{default:P(()=>[ae(`
|
||
Add an empty element to avoid render label,
|
||
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
|
||
`),O("span")]),_:1},8,["model-value","label","disabled","onUpdate:modelValue","onClick"])):e.isLeaf&&e.node.checked?(x(),de(u,{key:2,class:M(e.ns.e("prefix"))},{default:P(()=>[E(l)]),_:1},8,["class"])):ae("v-if",!0),ae(" content "),E(c),ae(" postfix "),e.isLeaf?ae("v-if",!0):(x(),j(Ke,{key:3},[e.node.loading?(x(),de(u,{key:0,class:M([e.ns.is("loading"),e.ns.e("postfix")])},{default:P(()=>[E(f)]),_:1},8,["class"])):(x(),de(u,{key:1,class:M(["arrow-right",e.ns.e("postfix")])},{default:P(()=>[E(h)]),_:1},8,["class"]))],64))],42,["id","aria-haspopup","aria-owns","aria-expanded","tabindex","onMouseenter","onFocus","onClick"])}var ZJ=Ue(QJ,[["render",JJ],["__file","node.vue"]]);const eZ=J({name:"ElCascaderMenu",components:{Loading:Gi,ElIcon:tt,ElScrollbar:aa,ElCascaderNode:ZJ},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(e){const t=Ot(),n=Re("cascader-menu"),{t:s}=zt(),r=ys();let i=null,a=null;const o=Xe(g2),l=q(null),u=k(()=>!e.nodes.length),c=k(()=>!o.initialLoaded),f=k(()=>`${r.value}-${e.index}`),h=v=>{i=v.target},m=v=>{if(!(!o.isHoverMenu||!i||!l.value))if(i.contains(v.target)){g();const y=t.vnode.el,{left:_}=y.getBoundingClientRect(),{offsetWidth:b,offsetHeight:T}=y,S=v.clientX-_,C=i.offsetTop,D=C+i.offsetHeight;l.value.innerHTML=`
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${S} ${C} L${b} 0 V${C} Z" />
|
||
<path style="pointer-events: auto;" fill="transparent" d="M${S} ${D} L${b} ${T} V${D} Z" />
|
||
`}else a||(a=window.setTimeout(p,o.config.hoverThreshold))},g=()=>{a&&(clearTimeout(a),a=null)},p=()=>{l.value&&(l.value.innerHTML="",g())};return{ns:n,panel:o,hoverZone:l,isEmpty:u,isLoading:c,menuId:f,t:s,handleExpand:h,handleMouseMove:m,clearHoverZone:p}}});function tZ(e,t,n,s,r,i){const a=Dt("el-cascader-node"),o=Dt("loading"),l=Dt("el-icon"),u=Dt("el-scrollbar");return x(),de(u,{key:e.menuId,tag:"ul",role:"menu",class:M(e.ns.b()),"wrap-class":e.ns.e("wrap"),"view-class":[e.ns.e("list"),e.ns.is("empty",e.isEmpty)],onMousemove:e.handleMouseMove,onMouseleave:e.clearHoverZone},{default:P(()=>{var c;return[(x(!0),j(Ke,null,bt(e.nodes,f=>(x(),de(a,{key:f.uid,node:f,"menu-id":e.menuId,onExpand:e.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),e.isLoading?(x(),j("div",{key:0,class:M(e.ns.e("empty-text"))},[E(l,{size:"14",class:M(e.ns.is("loading"))},{default:P(()=>[E(o)]),_:1},8,["class"]),Te(" "+ce(e.t("el.cascader.loading")),1)],2)):e.isEmpty?(x(),j("div",{key:1,class:M(e.ns.e("empty-text"))},[fe(e.$slots,"empty",{},()=>[Te(ce(e.t("el.cascader.noData")),1)])],2)):(c=e.panel)!=null&&c.isHoverMenu?(x(),j("svg",{key:2,ref:"hoverZone",class:M(e.ns.e("hover-zone"))},null,2)):ae("v-if",!0)]}),_:3},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var nZ=Ue(eZ,[["render",tZ],["__file","menu.vue"]]);let sZ=0;const rZ=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};let yb=class bb{constructor(t,n,s,r=!1){this.data=t,this.config=n,this.parent=s,this.root=r,this.uid=sZ++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:i,label:a,children:o}=n,l=t[o],u=rZ(this);this.level=r?0:s?s.level+1:1,this.value=t[i],this.label=t[a],this.pathNodes=u,this.pathValues=u.map(c=>c.value),this.pathLabels=u.map(c=>c.label),this.childrenData=l,this.children=(l||[]).map(c=>new bb(c,n,this)),this.loaded=!n.lazy||this.isLeaf||!Cr(l)}get isDisabled(){const{data:t,parent:n,config:s}=this,{disabled:r,checkStrictly:i}=s;return(pt(r)?r(t,this):!!t[r])||!i&&(n==null?void 0:n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:s,loaded:r}=this,{lazy:i,leaf:a}=n,o=pt(a)?a(t,this):t[a];return An(o)?i&&!r?!1:!(Array.isArray(s)&&s.length):!!o}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:s}=this,r=new bb(t,this.config,this);return Array.isArray(n)?n.push(t):this.childrenData=[t],s.push(r),r}calcText(t,n){const s=t?this.pathLabels.join(n):this.label;return this.text=s,s}broadcast(t,...n){const s=`onParent${Li(t)}`;this.children.forEach(r=>{r&&(r.broadcast(t,...n),r[s]&&r[s](...n))})}emit(t,...n){const{parent:s}=this,r=`onChild${Li(t)}`;s&&(s[r]&&s[r](...n),s.emit(t,...n))}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(r=>!r.isDisabled),s=n.length?n.every(r=>r.checked):!1;this.setCheckState(s)}setCheckState(t){const n=this.children.length,s=this.children.reduce((r,i)=>{const a=i.checked?1:i.indeterminate?.5:0;return r+a},0);this.checked=this.loaded&&this.children.filter(r=>!r.isDisabled).every(r=>r.loaded&&r.checked)&&t,this.indeterminate=this.loaded&&s!==n&&s>0}doCheck(t){if(this.checked===t)return;const{checkStrictly:n,multiple:s}=this.config;n||!s?this.checked=t:(this.broadcast("check",t),this.setCheckState(t),this.emit("check"))}};const _b=(e,t)=>e.reduce((n,s)=>(s.isLeaf?n.push(s):(!t&&n.push(s),n=n.concat(_b(s.children,t))),n),[]);class jE{constructor(t,n){this.config=n;const s=(t||[]).map(r=>new yb(r,this.config));this.nodes=s,this.allNodes=_b(s,!1),this.leafNodes=_b(s,!0)}getNodes(){return this.nodes}getFlattedNodes(t){return t?this.leafNodes:this.allNodes}appendNode(t,n){const s=n?n.appendChild(t):new yb(t,this.config);n||this.nodes.push(s),this.allNodes.push(s),s.isLeaf&&this.leafNodes.push(s)}appendNodes(t,n){t.forEach(s=>this.appendNode(s,n))}getNodeByValue(t,n=!1){return!t&&t!==0?null:this.getFlattedNodes(n).find(r=>Ps(r.value,t)||Ps(r.pathValues,t))||null}getSameNode(t){return t&&this.getFlattedNodes(!1).find(({value:s,level:r})=>Ps(t.value,s)&&t.level===r)||null}}const QD=Fe({modelValue:{type:oe([Number,String,Array])},options:{type:oe(Array),default:()=>[]},props:{type:oe(Object),default:()=>({})}}),iZ={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:sn,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},aZ=e=>k(()=>({...iZ,...e.props})),qE=e=>{if(!e)return 0;const t=e.id.split("-");return Number(t[t.length-2])},oZ=e=>{if(!e)return;const t=e.querySelector("input");t?t.click():i3(e)&&e.click()},lZ=(e,t)=>{const n=t.slice(0),s=n.map(i=>i.uid),r=e.reduce((i,a)=>{const o=s.indexOf(a.uid);return o>-1&&(i.push(a),n.splice(o,1),s.splice(o,1)),i},[]);return r.push(...n),r},uZ=J({name:"ElCascaderPanel",components:{ElCascaderMenu:nZ},props:{...QD,border:{type:Boolean,default:!0},renderLabel:Function},emits:[At,gn,"close","expand-change"],setup(e,{emit:t,slots:n}){let s=!1;const r=Re("cascader"),i=aZ(e);let a=null;const o=q(!0),l=q([]),u=q(null),c=q([]),f=q(null),h=q([]),m=k(()=>i.value.expandTrigger==="hover"),g=k(()=>e.renderLabel||n.default),p=()=>{const{options:U}=e,W=i.value;s=!1,a=new jE(U,W),c.value=[a.getNodes()],W.lazy&&Cr(e.options)?(o.value=!1,v(void 0,K=>{K&&(a=new jE(K,W),c.value=[a.getNodes()]),o.value=!0,N(!1,!0)})):N(!1,!0)},v=(U,W)=>{const K=i.value;U=U||new yb({},K,void 0,!0),U.loading=!0;const X=B=>{const Q=U,Y=Q.root?null:Q;B&&(a==null||a.appendNodes(B,Y)),Q.loading=!1,Q.loaded=!0,Q.childrenData=Q.childrenData||[],W&&W(B)};K.lazyLoad(U,X)},y=(U,W)=>{var K;const{level:X}=U,B=c.value.slice(0,X);let Q;U.isLeaf?Q=U.pathNodes[X-2]:(Q=U,B.push(U.children)),((K=f.value)==null?void 0:K.uid)!==(Q==null?void 0:Q.uid)&&(f.value=U,c.value=B,!W&&t("expand-change",(U==null?void 0:U.pathValues)||[]))},_=(U,W,K=!0)=>{const{checkStrictly:X,multiple:B}=i.value,Q=h.value[0];s=!0,!B&&(Q==null||Q.doCheck(!1)),U.doCheck(W),D(),K&&!B&&!X&&t("close"),!K&&!B&&!X&&b(U)},b=U=>{U&&(U=U.parent,b(U),U&&y(U))},T=U=>a==null?void 0:a.getFlattedNodes(U),S=U=>{var W;return(W=T(U))==null?void 0:W.filter(K=>K.checked!==!1)},C=()=>{h.value.forEach(U=>U.doCheck(!1)),D(),c.value=c.value.slice(0,1),f.value=null,t("expand-change",[])},D=()=>{var U;const{checkStrictly:W,multiple:K}=i.value,X=h.value,B=S(!W),Q=lZ(X,B),Y=Q.map(F=>F.valueByOption);h.value=Q,u.value=K?Y:(U=Y[0])!=null?U:null},N=(U=!1,W=!1)=>{const{modelValue:K}=e,{lazy:X,multiple:B,checkStrictly:Q}=i.value,Y=!Q;if(!(!o.value||s||!W&&Ps(K,u.value)))if(X&&!U){const H=qC(oz(qs(K))).map(Z=>a==null?void 0:a.getNodeByValue(Z)).filter(Z=>!!Z&&!Z.loaded&&!Z.loading);H.length?H.forEach(Z=>{v(Z,()=>N(!1,W))}):N(!0,W)}else{const F=B?qs(K):[K],H=qC(F.map(Z=>a==null?void 0:a.getNodeByValue(Z,Y)));$(H,W),u.value=Em(K)}},$=(U,W=!0)=>{const{checkStrictly:K}=i.value,X=h.value,B=U.filter(F=>!!F&&(K||F.isLeaf)),Q=a==null?void 0:a.getSameNode(f.value),Y=W&&Q||B[0];Y?Y.pathNodes.forEach(F=>y(F,!0)):f.value=null,X.forEach(F=>F.doCheck(!1)),Ct(B).forEach(F=>F.doCheck(!0)),h.value=B,it(L)},L=()=>{Ht&&l.value.forEach(U=>{const W=U==null?void 0:U.$el;if(W){const K=W.querySelector(`.${r.namespace.value}-scrollbar__wrap`),X=W.querySelector(`.${r.b("node")}.${r.is("active")}`)||W.querySelector(`.${r.b("node")}.in-active-path`);A1(K,X)}})},z=U=>{const W=U.target,{code:K}=U;switch(K){case at.up:case at.down:{U.preventDefault();const X=K===at.up?-1:1;zp(a3(W,X,`.${r.b("node")}[tabindex="-1"]`));break}case at.left:{U.preventDefault();const X=l.value[qE(W)-1],B=X==null?void 0:X.$el.querySelector(`.${r.b("node")}[aria-expanded="true"]`);zp(B);break}case at.right:{U.preventDefault();const X=l.value[qE(W)+1],B=X==null?void 0:X.$el.querySelector(`.${r.b("node")}[tabindex="-1"]`);zp(B);break}case at.enter:oZ(W);break}};return Mt(g2,Ct({config:i,expandingNode:f,checkedNodes:h,isHoverMenu:m,initialLoaded:o,renderLabelFn:g,lazyLoad:v,expandNode:y,handleCheckChange:_})),xe([i,()=>e.options],p,{deep:!0,immediate:!0}),xe(()=>e.modelValue,()=>{s=!1,N()},{deep:!0}),xe(()=>u.value,U=>{Ps(U,e.modelValue)||(t(At,U),t(gn,U))}),_4(()=>l.value=[]),gt(()=>!Cr(e.modelValue)&&N()),{ns:r,menuList:l,menus:c,checkedNodes:h,handleKeyDown:z,handleCheckChange:_,getFlattedNodes:T,getCheckedNodes:S,clearCheckedNodes:C,calculateCheckedValue:D,scrollToExpandingNode:L}}});function cZ(e,t,n,s,r,i){const a=Dt("el-cascader-menu");return x(),j("div",{class:M([e.ns.b("panel"),e.ns.is("bordered",e.border)]),onKeydown:e.handleKeyDown},[(x(!0),j(Ke,null,bt(e.menus,(o,l)=>(x(),de(a,{key:l,ref_for:!0,ref:u=>e.menuList[l]=u,index:l,nodes:[...o]},{empty:P(()=>[fe(e.$slots,"empty")]),_:2},1032,["index","nodes"]))),128))],42,["onKeydown"])}var dZ=Ue(uZ,[["render",cZ],["__file","index.vue"]]);const JD=Tt(dZ),$l=Fe({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:ra},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),fZ={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},hZ=J({name:"ElTag"}),pZ=J({...hZ,props:$l,emits:fZ,setup(e,{emit:t}){const n=e,s=Kn(),r=Re("tag"),i=k(()=>{const{type:u,hit:c,effect:f,closable:h,round:m}=n;return[r.b(),r.is("closable",h),r.m(u||"primary"),r.m(s.value),r.m(f),r.is("hit",c),r.is("round",m)]}),a=u=>{t("close",u)},o=u=>{t("click",u)},l=u=>{u.component.subTree.component.bum=null};return(u,c)=>u.disableTransitions?(x(),j("span",{key:0,class:M(d(i)),style:st({backgroundColor:u.color}),onClick:o},[O("span",{class:M(d(r).e("content"))},[fe(u.$slots,"default")],2),u.closable?(x(),de(d(tt),{key:0,class:M(d(r).e("close")),onClick:ft(a,["stop"])},{default:P(()=>[E(d(_i))]),_:1},8,["class","onClick"])):ae("v-if",!0)],6)):(x(),de(Wn,{key:1,name:`${d(r).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:l},{default:P(()=>[O("span",{class:M(d(i)),style:st({backgroundColor:u.color}),onClick:o},[O("span",{class:M(d(r).e("content"))},[fe(u.$slots,"default")],2),u.closable?(x(),de(d(tt),{key:0,class:M(d(r).e("close")),onClick:ft(a,["stop"])},{default:P(()=>[E(d(_i))]),_:1},8,["class","onClick"])):ae("v-if",!0)],6)]),_:3},8,["name"]))}});var mZ=Ue(pZ,[["__file","tag.vue"]]);const Ji=Tt(mZ),gZ=Fe({...QD,size:ts,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:oe(Function),default:(e,t)=>e.text.includes(t)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:oe(Function),default:()=>!0},placement:{type:oe(String),values:La,default:"bottom-start"},fallbackPlacements:{type:oe(Array),default:["bottom-start","bottom","top-start","top","right","left"]},popperClass:{type:String,default:""},teleported:us.teleported,tagType:{...$l.type,default:"info"},tagEffect:{...$l.effect,default:"light"},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...Pc}),vZ={[At]:e=>!0,[gn]:e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,visibleChange:e=>In(e),expandChange:e=>!!e,removeTag:e=>!!e},yZ="ElCascader",bZ=J({name:yZ}),_Z=J({...bZ,props:gZ,emits:vZ,setup(e,{expose:t,emit:n}){const s=e,r={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:le})=>{const{modifiersData:Ne,placement:Me}=le;["right","left","bottom","top"].includes(Me)||(Ne.arrow.x=35)},requires:["arrow"]}]},i=zl();let a=0,o=0;const l=Re("cascader"),u=Re("input"),{t:c}=zt(),{form:f,formItem:h}=Bs(),{valueOnClear:m}=Kg(s),{isComposing:g,handleComposition:p}=Wg({afterComposition(le){var Ne;const Me=(Ne=le.target)==null?void 0:Ne.value;be(Me)}}),v=q(null),y=q(null),_=q(null),b=q(null),T=q(null),S=q(!1),C=q(!1),D=q(!1),N=q(!1),$=q(""),L=q(""),z=q([]),U=q([]),W=q([]),K=k(()=>i.style),X=k(()=>s.disabled||(f==null?void 0:f.disabled)),B=k(()=>s.placeholder||c("el.cascader.placeholder")),Q=k(()=>L.value||z.value.length>0||g.value?"":B.value),Y=Kn(),F=k(()=>["small"].includes(Y.value)?"small":"default"),H=k(()=>!!s.props.multiple),Z=k(()=>!s.filterable||H.value),se=k(()=>H.value?L.value:$.value),ne=k(()=>{var le;return((le=b.value)==null?void 0:le.checkedNodes)||[]}),we=k(()=>!s.clearable||X.value||D.value||!C.value?!1:!!ne.value.length),De=k(()=>{const{showAllLevels:le,separator:Ne}=s,Me=ne.value;return Me.length?H.value?"":Me[0].calcText(le,Ne):""}),Ee=k(()=>(h==null?void 0:h.validateState)||""),te=k({get(){return Em(s.modelValue)},set(le){const Ne=le??m.value;n(At,Ne),n(gn,Ne),s.validateEvent&&(h==null||h.validate("change").catch(Me=>void 0))}}),ge=k(()=>[l.b(),l.m(Y.value),l.is("disabled",X.value),i.class]),pe=k(()=>[u.e("icon"),"icon-arrow-down",l.is("reverse",S.value)]),Oe=k(()=>l.is("focus",S.value||N.value)),Pe=k(()=>{var le,Ne;return(Ne=(le=v.value)==null?void 0:le.popperRef)==null?void 0:Ne.contentRef}),ve=le=>{var Ne,Me,vt;X.value||(le=le??!S.value,le!==S.value&&(S.value=le,(Me=(Ne=y.value)==null?void 0:Ne.input)==null||Me.setAttribute("aria-expanded",`${le}`),le?(ee(),it((vt=b.value)==null?void 0:vt.scrollToExpandingNode)):s.filterable&&Ae(),n("visibleChange",le)))},ee=()=>{it(()=>{var le;(le=v.value)==null||le.updatePopper()})},re=()=>{D.value=!1},Se=le=>{const{showAllLevels:Ne,separator:Me}=s;return{node:le,key:le.uid,text:le.calcText(Ne,Me),hitState:!1,closable:!X.value&&!le.isDisabled,isCollapseTag:!1}},Le=le=>{var Ne;const Me=le.node;Me.doCheck(!1),(Ne=b.value)==null||Ne.calculateCheckedValue(),n("removeTag",Me.valueByOption)},_e=()=>{if(!H.value)return;const le=ne.value,Ne=[],Me=[];if(le.forEach(vt=>Me.push(Se(vt))),U.value=Me,le.length){le.slice(0,s.maxCollapseTags).forEach(Ce=>Ne.push(Se(Ce)));const vt=le.slice(s.maxCollapseTags),qt=vt.length;qt&&(s.collapseTags?Ne.push({key:-1,text:`+ ${qt}`,closable:!1,isCollapseTag:!0}):vt.forEach(Ce=>Ne.push(Se(Ce))))}z.value=Ne},ke=()=>{var le,Ne;const{filterMethod:Me,showAllLevels:vt,separator:qt}=s,Ce=(Ne=(le=b.value)==null?void 0:le.getFlattedNodes(!s.props.checkStrictly))==null?void 0:Ne.filter(mt=>mt.isDisabled?!1:(mt.calcText(vt,qt),Me(mt,se.value)));H.value&&(z.value.forEach(mt=>{mt.hitState=!1}),U.value.forEach(mt=>{mt.hitState=!1})),D.value=!0,W.value=Ce,ee()},Be=()=>{var le;let Ne;D.value&&T.value?Ne=T.value.$el.querySelector(`.${l.e("suggestion-item")}`):Ne=(le=b.value)==null?void 0:le.$el.querySelector(`.${l.b("node")}[tabindex="-1"]`),Ne&&(Ne.focus(),!D.value&&Ne.click())},Ie=()=>{var le,Ne;const Me=(le=y.value)==null?void 0:le.input,vt=_.value,qt=(Ne=T.value)==null?void 0:Ne.$el;if(!(!Ht||!Me)){if(qt){const Ce=qt.querySelector(`.${l.e("suggestion-list")}`);Ce.style.minWidth=`${Me.offsetWidth}px`}if(vt){const{offsetHeight:Ce}=vt,mt=z.value.length>0?`${Math.max(Ce+6,a)}px`:`${a}px`;Me.style.height=mt,ee()}}},ze=le=>{var Ne;return(Ne=b.value)==null?void 0:Ne.getCheckedNodes(le)},Ve=le=>{ee(),n("expandChange",le)},Ze=le=>{if(!g.value)switch(le.code){case at.enter:ve();break;case at.down:ve(!0),it(Be),le.preventDefault();break;case at.esc:S.value===!0&&(le.preventDefault(),le.stopPropagation(),ve(!1));break;case at.tab:ve(!1);break}},je=()=>{var le;(le=b.value)==null||le.clearCheckedNodes(),!S.value&&s.filterable&&Ae(),ve(!1),n("clear")},Ae=()=>{const{value:le}=De;$.value=le,L.value=le},nt=le=>{var Ne,Me;const{checked:vt}=le;H.value?(Ne=b.value)==null||Ne.handleCheckChange(le,!vt,!1):(!vt&&((Me=b.value)==null||Me.handleCheckChange(le,!0,!1)),ve(!1))},_t=le=>{const Ne=le.target,{code:Me}=le;switch(Me){case at.up:case at.down:{const vt=Me===at.up?-1:1;zp(a3(Ne,vt,`.${l.e("suggestion-item")}[tabindex="-1"]`));break}case at.enter:Ne.click();break}},xt=()=>{const le=z.value,Ne=le[le.length-1];o=L.value?0:o+1,!(!Ne||!o||s.collapseTags&&le.length>1)&&(Ne.hitState?Le(Ne):Ne.hitState=!0)},It=le=>{const Ne=le.target,Me=l.e("search-input");Ne.className===Me&&(N.value=!0),n("focus",le)},Kt=le=>{N.value=!1,n("blur",le)},pn=fr(()=>{const{value:le}=se;if(!le)return;const Ne=s.beforeFilter(le);ff(Ne)?Ne.then(ke).catch(()=>{}):Ne!==!1?ke():re()},s.debounce),be=(le,Ne)=>{!S.value&&ve(!0),!(Ne!=null&&Ne.isComposing)&&(le?pn():re())},et=le=>Number.parseFloat(ZB(u.cssVarName("input-height"),le).value)-2;return xe(D,ee),xe([ne,X,()=>s.collapseTags],_e),xe(z,()=>{it(()=>Ie())}),xe(Y,async()=>{await it();const le=y.value.input;a=et(le)||a,Ie()}),xe(De,Ae,{immediate:!0}),gt(()=>{const le=y.value.input,Ne=et(le);a=le.offsetHeight||Ne,Sn(le,Ie)}),t({getCheckedNodes:ze,cascaderPanelRef:b,togglePopperVisible:ve,contentRef:Pe,presentText:De}),(le,Ne)=>(x(),de(d(is),{ref_key:"tooltipRef",ref:v,visible:S.value,teleported:le.teleported,"popper-class":[d(l).e("dropdown"),le.popperClass],"popper-options":r,"fallback-placements":le.fallbackPlacements,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:le.placement,transition:`${d(l).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:le.persistent,onHide:re},{default:P(()=>[yt((x(),j("div",{class:M(d(ge)),style:st(d(K)),onClick:()=>ve(d(Z)?void 0:!0),onKeydown:Ze,onMouseenter:Me=>C.value=!0,onMouseleave:Me=>C.value=!1},[E(d(Un),{ref_key:"input",ref:y,modelValue:$.value,"onUpdate:modelValue":Me=>$.value=Me,placeholder:d(Q),readonly:d(Z),disabled:d(X),"validate-event":!1,size:d(Y),class:M(d(Oe)),tabindex:d(H)&&le.filterable&&!d(X)?-1:void 0,onCompositionstart:d(p),onCompositionupdate:d(p),onCompositionend:d(p),onFocus:It,onBlur:Kt,onInput:be},{suffix:P(()=>[d(we)?(x(),de(d(tt),{key:"clear",class:M([d(u).e("icon"),"icon-circle-close"]),onClick:ft(je,["stop"])},{default:P(()=>[E(d(Uo))]),_:1},8,["class","onClick"])):(x(),de(d(tt),{key:"arrow-down",class:M(d(pe)),onClick:ft(Me=>ve(),["stop"])},{default:P(()=>[E(d(sa))]),_:1},8,["class","onClick"]))]),_:1},8,["modelValue","onUpdate:modelValue","placeholder","readonly","disabled","size","class","tabindex","onCompositionstart","onCompositionupdate","onCompositionend"]),d(H)?(x(),j("div",{key:0,ref_key:"tagWrapper",ref:_,class:M([d(l).e("tags"),d(l).is("validate",!!d(Ee))])},[(x(!0),j(Ke,null,bt(z.value,Me=>(x(),de(d(Ji),{key:Me.key,type:le.tagType,size:d(F),effect:le.tagEffect,hit:Me.hitState,closable:Me.closable,"disable-transitions":"",onClose:vt=>Le(Me)},{default:P(()=>[Me.isCollapseTag===!1?(x(),j("span",{key:0},ce(Me.text),1)):(x(),de(d(is),{key:1,disabled:S.value||!le.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:P(()=>[O("span",null,ce(Me.text),1)]),content:P(()=>[O("div",{class:M(d(l).e("collapse-tags"))},[(x(!0),j(Ke,null,bt(U.value.slice(le.maxCollapseTags),(vt,qt)=>(x(),j("div",{key:qt,class:M(d(l).e("collapse-tag"))},[(x(),de(d(Ji),{key:vt.key,class:"in-tooltip",type:le.tagType,size:d(F),effect:le.tagEffect,hit:vt.hitState,closable:vt.closable,"disable-transitions":"",onClose:Ce=>Le(vt)},{default:P(()=>[O("span",null,ce(vt.text),1)]),_:2},1032,["type","size","effect","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","effect","hit","closable","onClose"]))),128)),le.filterable&&!d(X)?yt((x(),j("input",{key:0,"onUpdate:modelValue":Me=>L.value=Me,type:"text",class:M(d(l).e("search-input")),placeholder:d(De)?"":d(B),onInput:Me=>be(L.value,Me),onClick:ft(Me=>ve(!0),["stop"]),onKeydown:rn(xt,["delete"]),onCompositionstart:d(p),onCompositionupdate:d(p),onCompositionend:d(p),onFocus:It,onBlur:Kt},null,42,["onUpdate:modelValue","placeholder","onInput","onClick","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend"])),[[xa,L.value]]):ae("v-if",!0)],2)):ae("v-if",!0)],46,["onClick","onMouseenter","onMouseleave"])),[[d(Aa),()=>ve(!1),d(Pe)]])]),content:P(()=>[yt(E(d(JD),{ref_key:"cascaderPanelRef",ref:b,modelValue:d(te),"onUpdate:modelValue":Me=>yn(te)?te.value=Me:null,options:le.options,props:s.props,border:!1,"render-label":le.$slots.default,onExpandChange:Ve,onClose:Me=>le.$nextTick(()=>ve(!1))},{empty:P(()=>[fe(le.$slots,"empty")]),_:3},8,["modelValue","onUpdate:modelValue","options","props","render-label","onClose"]),[[Bt,!D.value]]),le.filterable?yt((x(),de(d(aa),{key:0,ref_key:"suggestionPanel",ref:T,tag:"ul",class:M(d(l).e("suggestion-panel")),"view-class":d(l).e("suggestion-list"),onKeydown:_t},{default:P(()=>[W.value.length?(x(!0),j(Ke,{key:0},bt(W.value,Me=>(x(),j("li",{key:Me.uid,class:M([d(l).e("suggestion-item"),d(l).is("checked",Me.checked)]),tabindex:-1,onClick:vt=>nt(Me)},[O("span",null,ce(Me.text),1),Me.checked?(x(),de(d(tt),{key:0},{default:P(()=>[E(d(uh))]),_:1})):ae("v-if",!0)],10,["onClick"]))),128)):fe(le.$slots,"empty",{key:1},()=>[O("li",{class:M(d(l).e("empty-text"))},ce(d(c)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[Bt,D.value]]):ae("v-if",!0)]),_:3},8,["visible","teleported","popper-class","fallback-placements","placement","transition","persistent"]))}});var wZ=Ue(_Z,[["__file","cascader.vue"]]);const SZ=Tt(wZ),TZ=Fe({checked:Boolean,disabled:Boolean,type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"}}),CZ={"update:checked":e=>In(e),[gn]:e=>In(e)},EZ=J({name:"ElCheckTag"}),xZ=J({...EZ,props:TZ,emits:CZ,setup(e,{emit:t}){const n=e,s=Re("check-tag"),r=k(()=>n.disabled),i=k(()=>[s.b(),s.is("checked",n.checked),s.is("disabled",r.value),s.m(n.type||"primary")]),a=()=>{if(r.value)return;const o=!n.checked;t(gn,o),t("update:checked",o)};return(o,l)=>(x(),j("span",{class:M(d(i)),onClick:a},[fe(o.$slots,"default")],2))}});var kZ=Ue(xZ,[["__file","check-tag.vue"]]);const AZ=Tt(kZ),ZD=Symbol("rowContextKey"),IZ=["start","center","end","space-around","space-between","space-evenly"],DZ=["top","middle","bottom"],OZ=Fe({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:IZ,default:"start"},align:{type:String,values:DZ}}),PZ=J({name:"ElRow"}),RZ=J({...PZ,props:OZ,setup(e){const t=e,n=Re("row"),s=k(()=>t.gutter);Mt(ZD,{gutter:s});const r=k(()=>{const a={};return t.gutter&&(a.marginRight=a.marginLeft=`-${t.gutter/2}px`),a}),i=k(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(a,o)=>(x(),de(Rt(a.tag),{class:M(d(i)),style:st(d(r))},{default:P(()=>[fe(a.$slots,"default")]),_:3},8,["class","style"]))}});var NZ=Ue(RZ,[["__file","row.vue"]]);const e8=Tt(NZ),MZ=Fe({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:oe([Number,Object]),default:()=>xn({})},sm:{type:oe([Number,Object]),default:()=>xn({})},md:{type:oe([Number,Object]),default:()=>xn({})},lg:{type:oe([Number,Object]),default:()=>xn({})},xl:{type:oe([Number,Object]),default:()=>xn({})}}),$Z=J({name:"ElCol"}),LZ=J({...$Z,props:MZ,setup(e){const t=e,{gutter:n}=Xe(ZD,{gutter:k(()=>0)}),s=Re("col"),r=k(()=>{const a={};return n.value&&(a.paddingLeft=a.paddingRight=`${n.value/2}px`),a}),i=k(()=>{const a=[];return["span","offset","pull","push"].forEach(u=>{const c=t[u];ut(c)&&(u==="span"?a.push(s.b(`${t[u]}`)):c>0&&a.push(s.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{ut(t[u])?a.push(s.b(`${u}-${t[u]}`)):Pt(t[u])&&Object.entries(t[u]).forEach(([c,f])=>{a.push(c!=="span"?s.b(`${u}-${c}-${f}`):s.b(`${u}-${f}`))})}),n.value&&a.push(s.is("guttered")),[s.b(),a]});return(a,o)=>(x(),de(Rt(a.tag),{class:M(d(i)),style:st(d(r))},{default:P(()=>[fe(a.$slots,"default")]),_:3},8,["class","style"]))}});var BZ=Ue(LZ,[["__file","col.vue"]]);const t8=Tt(BZ),WE=e=>ut(e)||ht(e)||Ye(e),FZ=Fe({accordion:Boolean,modelValue:{type:oe([Array,String,Number]),default:()=>xn([])}}),VZ={[At]:WE,[gn]:WE},n8=Symbol("collapseContextKey"),UZ=(e,t)=>{const n=q(Ds(e.modelValue)),s=i=>{n.value=i;const a=e.accordion?n.value[0]:n.value;t(At,a),t(gn,a)},r=i=>{if(e.accordion)s([n.value[0]===i?"":i]);else{const a=[...n.value],o=a.indexOf(i);o>-1?a.splice(o,1):a.push(i),s(a)}};return xe(()=>e.modelValue,()=>n.value=Ds(e.modelValue),{deep:!0}),Mt(n8,{activeNames:n,handleItemClick:r}),{activeNames:n,setActiveNames:s}},HZ=()=>{const e=Re("collapse");return{rootKls:k(()=>e.b())}},zZ=J({name:"ElCollapse"}),jZ=J({...zZ,props:FZ,emits:VZ,setup(e,{expose:t,emit:n}){const s=e,{activeNames:r,setActiveNames:i}=UZ(s,n),{rootKls:a}=HZ();return t({activeNames:r,setActiveNames:i}),(o,l)=>(x(),j("div",{class:M(d(a))},[fe(o.$slots,"default")],2))}});var qZ=Ue(jZ,[["__file","collapse.vue"]]);const WZ=J({name:"ElCollapseTransition"}),KZ=J({...WZ,setup(e){const t=Re("collapse-transition"),n=r=>{r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom},s={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.height&&(r.dataset.elExistsHeight=r.style.height),r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){requestAnimationFrame(()=>{r.dataset.oldOverflow=r.style.overflow,r.dataset.elExistsHeight?r.style.maxHeight=r.dataset.elExistsHeight:r.scrollHeight!==0?r.style.maxHeight=`${r.scrollHeight}px`:r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom,r.style.overflow="hidden"})},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},enterCancelled(r){n(r)},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){n(r)},leaveCancelled(r){n(r)}};return(r,i)=>(x(),de(Wn,Nt({name:d(t).b()},c5(s)),{default:P(()=>[fe(r.$slots,"default")]),_:3},16,["name"]))}});var GZ=Ue(KZ,[["__file","collapse-transition.vue"]]);const bh=Tt(GZ),YZ=Fe({title:{type:String,default:""},name:{type:oe([String,Number]),default:void 0},icon:{type:ln,default:Gs},disabled:Boolean}),XZ=e=>{const t=Xe(n8),{namespace:n}=Re("collapse"),s=q(!1),r=q(!1),i=Q1(),a=k(()=>i.current++),o=k(()=>{var h;return(h=e.name)!=null?h:`${n.value}-id-${i.prefix}-${d(a)}`}),l=k(()=>t==null?void 0:t.activeNames.value.includes(d(o)));return{focusing:s,id:a,isActive:l,handleFocus:()=>{setTimeout(()=>{r.value?r.value=!1:s.value=!0},50)},handleHeaderClick:()=>{e.disabled||(t==null||t.handleItemClick(d(o)),s.value=!1,r.value=!0)},handleEnterClick:()=>{t==null||t.handleItemClick(d(o))}}},QZ=(e,{focusing:t,isActive:n,id:s})=>{const r=Re("collapse"),i=k(()=>[r.b("item"),r.is("active",d(n)),r.is("disabled",e.disabled)]),a=k(()=>[r.be("item","header"),r.is("active",d(n)),{focusing:d(t)&&!e.disabled}]),o=k(()=>[r.be("item","arrow"),r.is("active",d(n))]),l=k(()=>r.be("item","wrap")),u=k(()=>r.be("item","content")),c=k(()=>r.b(`content-${d(s)}`)),f=k(()=>r.b(`head-${d(s)}`));return{arrowKls:o,headKls:a,rootKls:i,itemWrapperKls:l,itemContentKls:u,scopedContentId:c,scopedHeadId:f}},JZ=J({name:"ElCollapseItem"}),ZZ=J({...JZ,props:YZ,setup(e,{expose:t}){const n=e,{focusing:s,id:r,isActive:i,handleFocus:a,handleHeaderClick:o,handleEnterClick:l}=XZ(n),{arrowKls:u,headKls:c,rootKls:f,itemWrapperKls:h,itemContentKls:m,scopedContentId:g,scopedHeadId:p}=QZ(n,{focusing:s,isActive:i,id:r});return t({isActive:i}),(v,y)=>(x(),j("div",{class:M(d(f))},[O("button",{id:d(p),class:M(d(c)),"aria-expanded":d(i),"aria-controls":d(g),"aria-describedby":d(g),tabindex:v.disabled?-1:0,type:"button",onClick:d(o),onKeydown:rn(ft(d(l),["stop","prevent"]),["space","enter"]),onFocus:d(a),onBlur:_=>s.value=!1},[fe(v.$slots,"title",{},()=>[Te(ce(v.title),1)]),fe(v.$slots,"icon",{isActive:d(i)},()=>[E(d(tt),{class:M(d(u))},{default:P(()=>[(x(),de(Rt(v.icon)))]),_:1},8,["class"])])],42,["id","aria-expanded","aria-controls","aria-describedby","tabindex","onClick","onKeydown","onFocus","onBlur"]),E(d(bh),null,{default:P(()=>[yt(O("div",{id:d(g),role:"region",class:M(d(h)),"aria-hidden":!d(i),"aria-labelledby":d(p)},[O("div",{class:M(d(m))},[fe(v.$slots,"default")],2)],10,["id","aria-hidden","aria-labelledby"]),[[Bt,d(i)]])]),_:3})],2))}});var s8=Ue(ZZ,[["__file","collapse-item.vue"]]);const eee=Tt(qZ,{CollapseItem:s8}),tee=kn(s8),nee=Fe({color:{type:oe(Object),required:!0},vertical:{type:Boolean,default:!1}});let O0=!1;function Rf(e,t){if(!Ht)return;const n=function(i){var a;(a=t.drag)==null||a.call(t,i)},s=function(i){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",s),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",s),document.onselectstart=null,document.ondragstart=null,O0=!1,(a=t.end)==null||a.call(t,i)},r=function(i){var a;O0||(i.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",s),document.addEventListener("touchmove",n),document.addEventListener("touchend",s),O0=!0,(a=t.start)==null||a.call(t,i))};e.addEventListener("mousedown",r),e.addEventListener("touchstart",r,{passive:!1})}const see=e=>{const t=Ot(),{t:n}=zt(),s=hn(),r=hn(),i=k(()=>e.color.get("alpha")),a=k(()=>n("el.colorpicker.alphaLabel"));function o(f){var h;f.target!==s.value&&l(f),(h=s.value)==null||h.focus()}function l(f){if(!r.value||!s.value)return;const m=t.vnode.el.getBoundingClientRect(),{clientX:g,clientY:p}=c1(f);if(e.vertical){let v=p-m.top;v=Math.max(s.value.offsetHeight/2,v),v=Math.min(v,m.height-s.value.offsetHeight/2),e.color.set("alpha",Math.round((v-s.value.offsetHeight/2)/(m.height-s.value.offsetHeight)*100))}else{let v=g-m.left;v=Math.max(s.value.offsetWidth/2,v),v=Math.min(v,m.width-s.value.offsetWidth/2),e.color.set("alpha",Math.round((v-s.value.offsetWidth/2)/(m.width-s.value.offsetWidth)*100))}}function u(f){const{code:h,shiftKey:m}=f,g=m?10:1;switch(h){case at.left:case at.down:f.preventDefault(),f.stopPropagation(),c(-g);break;case at.right:case at.up:f.preventDefault(),f.stopPropagation(),c(g);break}}function c(f){let h=i.value+f;h=h<0?0:h>100?100:h,e.color.set("alpha",h)}return{thumb:s,bar:r,alpha:i,alphaLabel:a,handleDrag:l,handleClick:o,handleKeydown:u}},ree=(e,{bar:t,thumb:n,handleDrag:s})=>{const r=Ot(),i=Re("color-alpha-slider"),a=q(0),o=q(0),l=q();function u(){if(!n.value||e.vertical)return 0;const _=r.vnode.el,b=e.color.get("alpha");return _?Math.round(b*(_.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const _=r.vnode.el;if(!e.vertical)return 0;const b=e.color.get("alpha");return _?Math.round(b*(_.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(e.color&&e.color.value){const{r:_,g:b,b:T}=e.color.toRgb();return`linear-gradient(to right, rgba(${_}, ${b}, ${T}, 0) 0%, rgba(${_}, ${b}, ${T}, 1) 100%)`}return""}function h(){a.value=u(),o.value=c(),l.value=f()}gt(()=>{if(!t.value||!n.value)return;const _={drag:b=>{s(b)},end:b=>{s(b)}};Rf(t.value,_),Rf(n.value,_),h()}),xe(()=>e.color.get("alpha"),()=>h()),xe(()=>e.color.value,()=>h());const m=k(()=>[i.b(),i.is("vertical",e.vertical)]),g=k(()=>i.e("bar")),p=k(()=>i.e("thumb")),v=k(()=>({background:l.value})),y=k(()=>({left:Nn(a.value),top:Nn(o.value)}));return{rootKls:m,barKls:g,barStyle:v,thumbKls:p,thumbStyle:y,update:h}},iee="ElColorAlphaSlider",aee=J({name:iee}),oee=J({...aee,props:nee,setup(e,{expose:t}){const n=e,{alpha:s,alphaLabel:r,bar:i,thumb:a,handleDrag:o,handleClick:l,handleKeydown:u}=see(n),{rootKls:c,barKls:f,barStyle:h,thumbKls:m,thumbStyle:g,update:p}=ree(n,{bar:i,thumb:a,handleDrag:o});return t({update:p,bar:i,thumb:a}),(v,y)=>(x(),j("div",{class:M(d(c))},[O("div",{ref_key:"bar",ref:i,class:M(d(f)),style:st(d(h)),onClick:d(l)},null,14,["onClick"]),O("div",{ref_key:"thumb",ref:a,class:M(d(m)),style:st(d(g)),"aria-label":d(r),"aria-valuenow":d(s),"aria-orientation":v.vertical?"vertical":"horizontal","aria-valuemin":"0","aria-valuemax":"100",role:"slider",tabindex:"0",onKeydown:d(u)},null,46,["aria-label","aria-valuenow","aria-orientation","onKeydown"])],2))}});var lee=Ue(oee,[["__file","alpha-slider.vue"]]);const uee=J({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Re("color-hue-slider"),n=Ot(),s=q(),r=q(),i=q(0),a=q(0),o=k(()=>e.color.get("hue"));xe(()=>o.value,()=>{h()});function l(m){m.target!==s.value&&u(m)}function u(m){if(!r.value||!s.value)return;const p=n.vnode.el.getBoundingClientRect(),{clientX:v,clientY:y}=c1(m);let _;if(e.vertical){let b=y-p.top;b=Math.min(b,p.height-s.value.offsetHeight/2),b=Math.max(s.value.offsetHeight/2,b),_=Math.round((b-s.value.offsetHeight/2)/(p.height-s.value.offsetHeight)*360)}else{let b=v-p.left;b=Math.min(b,p.width-s.value.offsetWidth/2),b=Math.max(s.value.offsetWidth/2,b),_=Math.round((b-s.value.offsetWidth/2)/(p.width-s.value.offsetWidth)*360)}e.color.set("hue",_)}function c(){if(!s.value)return 0;const m=n.vnode.el;if(e.vertical)return 0;const g=e.color.get("hue");return m?Math.round(g*(m.offsetWidth-s.value.offsetWidth/2)/360):0}function f(){if(!s.value)return 0;const m=n.vnode.el;if(!e.vertical)return 0;const g=e.color.get("hue");return m?Math.round(g*(m.offsetHeight-s.value.offsetHeight/2)/360):0}function h(){i.value=c(),a.value=f()}return gt(()=>{if(!r.value||!s.value)return;const m={drag:g=>{u(g)},end:g=>{u(g)}};Rf(r.value,m),Rf(s.value,m),h()}),{bar:r,thumb:s,thumbLeft:i,thumbTop:a,hueValue:o,handleClick:l,update:h,ns:t}}});function cee(e,t,n,s,r,i){return x(),j("div",{class:M([e.ns.b(),e.ns.is("vertical",e.vertical)])},[O("div",{ref:"bar",class:M(e.ns.e("bar")),onClick:e.handleClick},null,10,["onClick"]),O("div",{ref:"thumb",class:M(e.ns.e("thumb")),style:st({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var dee=Ue(uee,[["render",cee],["__file","hue-slider.vue"]]);const fee=Fe({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:ts,popperClass:{type:String,default:""},tabindex:{type:[String,Number],default:0},teleported:us.teleported,predefine:{type:oe(Array)},validateEvent:{type:Boolean,default:!0},..._s(["ariaLabel"])}),hee={[At]:e=>ht(e)||rs(e),[gn]:e=>ht(e)||rs(e),activeChange:e=>ht(e)||rs(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},r8=Symbol("colorPickerContextKey"),KE=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},pee=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},mee=function(e){return typeof e=="string"&&e.includes("%")},Nu=function(e,t){pee(e)&&(e="100%");const n=mee(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},GE={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Xp=e=>{e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${GE[t]||t}${GE[n]||n}`},YE=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Xp(e)}${Xp(t)}${Xp(n)}`},P0={A:10,B:11,C:12,D:13,E:14,F:15},tl=function(e){return e.length===2?(P0[e[0].toUpperCase()]||+e[0])*16+(P0[e[1].toUpperCase()]||+e[1]):P0[e[1].toUpperCase()]||+e[1]},gee=function(e,t,n){t=t/100,n=n/100;let s=t;const r=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,s*=r<=1?r:2-r;const i=(n+t)/2,a=n===0?2*s/(r+s):2*t/(n+t);return{h:e,s:a*100,v:i*100}},XE=(e,t,n)=>{e=Nu(e,255),t=Nu(t,255),n=Nu(n,255);const s=Math.max(e,t,n),r=Math.min(e,t,n);let i;const a=s,o=s-r,l=s===0?0:o/s;if(s===r)i=0;else{switch(s){case e:{i=(t-n)/o+(t<n?6:0);break}case t:{i=(n-e)/o+2;break}case n:{i=(e-t)/o+4;break}}i/=6}return{h:i*360,s:l*100,v:a*100}},gd=function(e,t,n){e=Nu(e,360)*6,t=Nu(t,100),n=Nu(n,100);const s=Math.floor(e),r=e-s,i=n*(1-t),a=n*(1-r*t),o=n*(1-(1-r)*t),l=s%6,u=[n,a,i,i,o,n][l],c=[o,n,n,a,i,i][l],f=[i,i,o,n,n,a][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};class ef{constructor(t={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in t)jt(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const s in t)jt(t,s)&&this.set(s,t[s]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return gd(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(s,r,i)=>{this._hue=Math.max(0,Math.min(360,s)),this._saturation=Math.max(0,Math.min(100,r)),this._value=Math.max(0,Math.min(100,i)),this.doOnChange()};if(t.includes("hsl")){const s=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,i)=>i>2?Number.parseFloat(r):Number.parseInt(r,10));if(s.length===4?this._alpha=Number.parseFloat(s[3])*100:s.length===3&&(this._alpha=100),s.length>=3){const{h:r,s:i,v:a}=gee(s[0],s[1],s[2]);n(r,i,a)}}else if(t.includes("hsv")){const s=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,i)=>i>2?Number.parseFloat(r):Number.parseInt(r,10));s.length===4?this._alpha=Number.parseFloat(s[3])*100:s.length===3&&(this._alpha=100),s.length>=3&&n(s[0],s[1],s[2])}else if(t.includes("rgb")){const s=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(r=>r!=="").map((r,i)=>i>2?Number.parseFloat(r):Number.parseInt(r,10));if(s.length===4?this._alpha=Number.parseFloat(s[3])*100:s.length===3&&(this._alpha=100),s.length>=3){const{h:r,s:i,v:a}=XE(s[0],s[1],s[2]);n(r,i,a)}}else if(t.includes("#")){const s=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(s))return;let r,i,a;s.length===3?(r=tl(s[0]+s[0]),i=tl(s[1]+s[1]),a=tl(s[2]+s[2])):(s.length===6||s.length===8)&&(r=tl(s.slice(0,2)),i=tl(s.slice(2,4)),a=tl(s.slice(4,6))),s.length===8?this._alpha=tl(s.slice(6))/255*100:(s.length===3||s.length===6)&&(this._alpha=100);const{h:o,s:l,v:u}=XE(r,i,a);n(o,l,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:s,_alpha:r,format:i}=this;if(this.enableAlpha)switch(i){case"hsl":{const a=KE(t,n/100,s/100);this.value=`hsla(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(s)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${YE(gd(t,n,s))}${Xp(r*255/100)}`;break}default:{const{r:a,g:o,b:l}=gd(t,n,s);this.value=`rgba(${a}, ${o}, ${l}, ${this.get("alpha")/100})`}}else switch(i){case"hsl":{const a=KE(t,n/100,s/100);this.value=`hsl(${t}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(s)}%)`;break}case"rgb":{const{r:a,g:o,b:l}=gd(t,n,s);this.value=`rgb(${a}, ${o}, ${l})`;break}default:this.value=YE(gd(t,n,s))}}}const vee=J({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(e){const t=Re("color-predefine"),{currentColor:n}=Xe(r8),s=q(i(e.colors,e.color));xe(()=>n.value,a=>{const o=new ef;o.fromString(a),s.value.forEach(l=>{l.selected=o.compare(l)})}),vs(()=>{s.value=i(e.colors,e.color)});function r(a){e.color.fromString(e.colors[a])}function i(a,o){return a.map(l=>{const u=new ef;return u.enableAlpha=e.enableAlpha,u.format="rgba",u.fromString(l),u.selected=u.value===o.value,u})}return{rgbaColors:s,handleSelect:r,ns:t}}});function yee(e,t,n,s,r,i){return x(),j("div",{class:M(e.ns.b())},[O("div",{class:M(e.ns.e("colors"))},[(x(!0),j(Ke,null,bt(e.rgbaColors,(a,o)=>(x(),j("div",{key:e.colors[o],class:M([e.ns.e("color-selector"),e.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:l=>e.handleSelect(o)},[O("div",{style:st({backgroundColor:a.value})},null,4)],10,["onClick"]))),128))],2)],2)}var bee=Ue(vee,[["render",yee],["__file","predefine.vue"]]);const _ee=J({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Re("color-svpanel"),n=Ot(),s=q(0),r=q(0),i=q("hsl(0, 100%, 50%)"),a=k(()=>{const u=e.color.get("hue"),c=e.color.get("value");return{hue:u,value:c}});function o(){const u=e.color.get("saturation"),c=e.color.get("value"),f=n.vnode.el,{clientWidth:h,clientHeight:m}=f;r.value=u*h/100,s.value=(100-c)*m/100,i.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:h,clientY:m}=c1(u);let g=h-f.left,p=m-f.top;g=Math.max(0,g),g=Math.min(g,f.width),p=Math.max(0,p),p=Math.min(p,f.height),r.value=g,s.value=p,e.color.set({saturation:g/f.width*100,value:100-p/f.height*100})}return xe(()=>a.value,()=>{o()}),gt(()=>{Rf(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),o()}),{cursorTop:s,cursorLeft:r,background:i,colorValue:a,handleDrag:l,update:o,ns:t}}});function wee(e,t,n,s,r,i){return x(),j("div",{class:M(e.ns.b()),style:st({backgroundColor:e.background})},[O("div",{class:M(e.ns.e("white"))},null,2),O("div",{class:M(e.ns.e("black"))},null,2),O("div",{class:M(e.ns.e("cursor")),style:st({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},[O("div")],6)],6)}var See=Ue(_ee,[["render",wee],["__file","sv-panel.vue"]]);const Tee=J({name:"ElColorPicker"}),Cee=J({...Tee,props:fee,emits:hee,setup(e,{expose:t,emit:n}){const s=e,{t:r}=zt(),i=Re("color"),{formItem:a}=Bs(),o=Kn(),l=Ls(),{inputId:u,isLabeledByFormItem:c}=Ai(s,{formItemContext:a}),f=q(),h=q(),m=q(),g=q(),p=q(),v=q(),{isFocused:y,handleFocus:_,handleBlur:b}=gh(p,{beforeFocus(){return l.value},beforeBlur(pe){var Oe;return(Oe=g.value)==null?void 0:Oe.isFocusInsideContent(pe)},afterBlur(){X(!1),F()}});let T=!0;const S=Ct(new ef({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue})),C=q(!1),D=q(!1),N=q(""),$=k(()=>!s.modelValue&&!D.value?"transparent":K(S,s.showAlpha)),L=k(()=>!s.modelValue&&!D.value?"":S.value),z=k(()=>c.value?void 0:s.ariaLabel||r("el.colorpicker.defaultLabel")),U=k(()=>c.value?a==null?void 0:a.labelId:void 0),W=k(()=>[i.b("picker"),i.is("disabled",l.value),i.bm("picker",o.value),i.is("focused",y.value)]);function K(pe,Oe){if(!(pe instanceof ef))throw new TypeError("color should be instance of _color Class");const{r:Pe,g:ve,b:ee}=pe.toRgb();return Oe?`rgba(${Pe}, ${ve}, ${ee}, ${pe.get("alpha")/100})`:`rgb(${Pe}, ${ve}, ${ee})`}function X(pe){C.value=pe}const B=fr(X,100,{leading:!0});function Q(){l.value||X(!0)}function Y(){B(!1),F()}function F(){it(()=>{s.modelValue?S.fromString(s.modelValue):(S.value="",it(()=>{D.value=!1}))})}function H(){l.value||B(!C.value)}function Z(){S.fromString(N.value)}function se(){const pe=S.value;n(At,pe),n("change",pe),s.validateEvent&&(a==null||a.validate("change").catch(Oe=>void 0)),B(!1),it(()=>{const Oe=new ef({enableAlpha:s.showAlpha,format:s.colorFormat||"",value:s.modelValue});S.compare(Oe)||F()})}function ne(){B(!1),n(At,null),n("change",null),s.modelValue!==null&&s.validateEvent&&(a==null||a.validate("change").catch(pe=>void 0)),F()}function we(){C.value&&(Y(),y.value&&te())}function De(pe){pe.preventDefault(),pe.stopPropagation(),X(!1),F()}function Ee(pe){switch(pe.code){case at.enter:case at.space:pe.preventDefault(),pe.stopPropagation(),Q(),v.value.focus();break;case at.esc:De(pe);break}}function te(){p.value.focus()}function ge(){p.value.blur()}return gt(()=>{s.modelValue&&(N.value=L.value)}),xe(()=>s.modelValue,pe=>{pe?pe&&pe!==S.value&&(T=!1,S.fromString(pe)):D.value=!1}),xe(()=>[s.colorFormat,s.showAlpha],()=>{S.enableAlpha=s.showAlpha,S.format=s.colorFormat||S.format,S.doOnChange(),n(At,S.value)}),xe(()=>L.value,pe=>{N.value=pe,T&&n("activeChange",pe),T=!0}),xe(()=>S.value,()=>{!s.modelValue&&!D.value&&(D.value=!0)}),xe(()=>C.value,()=>{it(()=>{var pe,Oe,Pe;(pe=f.value)==null||pe.update(),(Oe=h.value)==null||Oe.update(),(Pe=m.value)==null||Pe.update()})}),Mt(r8,{currentColor:L}),t({color:S,show:Q,hide:Y,focus:te,blur:ge}),(pe,Oe)=>(x(),de(d(is),{ref_key:"popper",ref:g,visible:C.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[d(i).be("picker","panel"),d(i).b("dropdown"),pe.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:pe.teleported,transition:`${d(i).namespace.value}-zoom-in-top`,persistent:"",onHide:Pe=>X(!1)},{content:P(()=>[yt((x(),j("div",{onKeydown:rn(De,["esc"])},[O("div",{class:M(d(i).be("dropdown","main-wrapper"))},[E(dee,{ref_key:"hue",ref:f,class:"hue-slider",color:d(S),vertical:""},null,8,["color"]),E(See,{ref_key:"sv",ref:h,color:d(S)},null,8,["color"])],2),pe.showAlpha?(x(),de(lee,{key:0,ref_key:"alpha",ref:m,color:d(S)},null,8,["color"])):ae("v-if",!0),pe.predefine?(x(),de(bee,{key:1,ref:"predefine","enable-alpha":pe.showAlpha,color:d(S),colors:pe.predefine},null,8,["enable-alpha","color","colors"])):ae("v-if",!0),O("div",{class:M(d(i).be("dropdown","btns"))},[O("span",{class:M(d(i).be("dropdown","value"))},[E(d(Un),{ref_key:"inputRef",ref:v,modelValue:N.value,"onUpdate:modelValue":Pe=>N.value=Pe,"validate-event":!1,size:"small",onKeyup:rn(Z,["enter"]),onBlur:Z},null,8,["modelValue","onUpdate:modelValue","onKeyup"])],2),E(d(mn),{class:M(d(i).be("dropdown","link-btn")),text:"",size:"small",onClick:ne},{default:P(()=>[Te(ce(d(r)("el.colorpicker.clear")),1)]),_:1},8,["class"]),E(d(mn),{plain:"",size:"small",class:M(d(i).be("dropdown","btn")),onClick:se},{default:P(()=>[Te(ce(d(r)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,["onKeydown"])),[[d(Aa),we]])]),default:P(()=>[O("div",Nt({id:d(u),ref_key:"triggerRef",ref:p},pe.$attrs,{class:d(W),role:"button","aria-label":d(z),"aria-labelledby":d(U),"aria-description":d(r)("el.colorpicker.description",{color:pe.modelValue||""}),"aria-disabled":d(l),tabindex:d(l)?-1:pe.tabindex,onKeydown:Ee,onFocus:d(_),onBlur:d(b)}),[d(l)?(x(),j("div",{key:0,class:M(d(i).be("picker","mask"))},null,2)):ae("v-if",!0),O("div",{class:M(d(i).be("picker","trigger")),onClick:H},[O("span",{class:M([d(i).be("picker","color"),d(i).is("alpha",pe.showAlpha)])},[O("span",{class:M(d(i).be("picker","color-inner")),style:st({backgroundColor:d($)})},[yt(E(d(tt),{class:M([d(i).be("picker","icon"),d(i).is("icon-arrow-down")])},{default:P(()=>[E(d(sa))]),_:1},8,["class"]),[[Bt,pe.modelValue||D.value]]),yt(E(d(tt),{class:M([d(i).be("picker","empty"),d(i).is("icon-close")])},{default:P(()=>[E(d(_i))]),_:1},8,["class"]),[[Bt,!pe.modelValue&&!D.value]])],6)],2)],2)],16,["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex","onFocus","onBlur"])]),_:1},8,["visible","popper-class","teleported","transition","onHide"]))}});var Eee=Ue(Cee,[["__file","color-picker.vue"]]);const xee=Tt(Eee),kee=J({name:"ElContainer"}),Aee=J({...kee,props:{direction:{type:String}},setup(e){const t=e,n=os(),s=Re("container"),r=k(()=>t.direction==="vertical"?!0:t.direction==="horizontal"?!1:n&&n.default?n.default().some(a=>{const o=a.type.name;return o==="ElHeader"||o==="ElFooter"}):!1);return(i,a)=>(x(),j("section",{class:M([d(s).b(),d(s).is("vertical",d(r))])},[fe(i.$slots,"default")],2))}});var Iee=Ue(Aee,[["__file","container.vue"]]);const Dee=J({name:"ElAside"}),Oee=J({...Dee,props:{width:{type:String,default:null}},setup(e){const t=e,n=Re("aside"),s=k(()=>t.width?n.cssVarBlock({width:t.width}):{});return(r,i)=>(x(),j("aside",{class:M(d(n).b()),style:st(d(s))},[fe(r.$slots,"default")],6))}});var i8=Ue(Oee,[["__file","aside.vue"]]);const Pee=J({name:"ElFooter"}),Ree=J({...Pee,props:{height:{type:String,default:null}},setup(e){const t=e,n=Re("footer"),s=k(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(x(),j("footer",{class:M(d(n).b()),style:st(d(s))},[fe(r.$slots,"default")],6))}});var a8=Ue(Ree,[["__file","footer.vue"]]);const Nee=J({name:"ElHeader"}),Mee=J({...Nee,props:{height:{type:String,default:null}},setup(e){const t=e,n=Re("header"),s=k(()=>t.height?n.cssVarBlock({height:t.height}):{});return(r,i)=>(x(),j("header",{class:M(d(n).b()),style:st(d(s))},[fe(r.$slots,"default")],6))}});var o8=Ue(Mee,[["__file","header.vue"]]);const $ee=J({name:"ElMain"}),Lee=J({...$ee,setup(e){const t=Re("main");return(n,s)=>(x(),j("main",{class:M(d(t).b())},[fe(n.$slots,"default")],2))}});var l8=Ue(Lee,[["__file","main.vue"]]);const v2=Tt(Iee,{Aside:i8,Footer:a8,Header:o8,Main:l8}),u8=kn(i8),c8=kn(a8),y2=kn(o8),b2=kn(l8);var d8={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(hr,function(){return function(n,s){var r=s.prototype,i=r.format;r.format=function(a){var o=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),c=(a||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(f){switch(f){case"Q":return Math.ceil((o.$M+1)/3);case"Do":return l.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return l.ordinal(o.week(),"W");case"w":case"ww":return u.s(o.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(o.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(o.$H===0?24:o.$H),f==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1e3);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return f}});return i.bind(this)(c)}}})})(d8);var Bee=d8.exports;const Fee=xs(Bee);var f8={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(hr,function(){var n="week",s="year";return function(r,i,a){var o=i.prototype;o.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=a(this).startOf(s).add(1,s).date(u),f=a(this).endOf(n);if(c.isBefore(f))return 1}var h=a(this).startOf(s).date(u).startOf(n).subtract(1,"millisecond"),m=this.diff(h,n,!0);return m<0?a(this).startOf("week").week():Math.ceil(m)},o.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(f8);var Vee=f8.exports;const Uee=xs(Vee);var h8={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(hr,function(){return function(n,s){s.prototype.weekYear=function(){var r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}})})(h8);var Hee=h8.exports;const zee=xs(Hee);var p8={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(hr,function(){return function(n,s,r){s.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}})})(p8);var jee=p8.exports;const qee=xs(jee);var m8={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(hr,function(){return function(n,s){s.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}})})(m8);var Wee=m8.exports;const Kee=xs(Wee);var g8={exports:{}};(function(e,t){(function(n,s){e.exports=s()})(hr,function(){return function(n,s){s.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}})})(g8);var Gee=g8.exports;const Yee=xs(Gee),Zg=Symbol(),Xee=Fe({...p2,type:{type:oe(String),default:"date"}}),Qee=["date","dates","year","years","month","months","week","range"],_2=Fe({disabledDate:{type:oe(Function)},date:{type:oe(Object),required:!0},minDate:{type:oe(Object)},maxDate:{type:oe(Object)},parsedValue:{type:oe([Object,Array])},rangeState:{type:oe(Object),default:()=>({endDate:null,selecting:!1})}}),v8=Fe({type:{type:oe(String),required:!0,values:Tq},dateFormat:String,timeFormat:String}),w2=Fe({unlinkPanels:Boolean,parsedValue:{type:oe(Array)}}),S2=e=>({type:String,values:Qee,default:e}),Jee=Fe({...v8,parsedValue:{type:oe([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),ic=e=>{if(!Ye(e))return!1;const[t,n]=e;return St.isDayjs(t)&&St.isDayjs(n)&&t.isSameOrBefore(n)},T2=(e,{lang:t,unit:n,unlinkPanels:s})=>{let r;if(Ye(e)){let[i,a]=e.map(o=>St(o).locale(t));return s||(a=i.add(1,n)),[i,a]}else e?r=St(e):r=St();return r=r.locale(t),[r,r.add(1,n)]},Zee=(e,t,{columnIndexOffset:n,startDate:s,nextEndDate:r,now:i,unit:a,relativeDateGetter:o,setCellMetadata:l,setRowMetadata:u})=>{for(let c=0;c<e.row;c++){const f=t[c];for(let h=0;h<e.column;h++){let m=f[h+n];m||(m={row:c,column:h,type:"normal",inRange:!1,start:!1,end:!1});const g=c*e.column+h,p=o(g);m.dayjs=p,m.date=p.toDate(),m.timestamp=p.valueOf(),m.type="normal",m.inRange=!!(s&&p.isSameOrAfter(s,a)&&r&&p.isSameOrBefore(r,a))||!!(s&&p.isSameOrBefore(s,a)&&r&&p.isSameOrAfter(r,a)),s!=null&&s.isSameOrAfter(r)?(m.start=!!r&&p.isSame(r,a),m.end=s&&p.isSame(s,a)):(m.start=!!s&&p.isSame(s,a),m.end=!!r&&p.isSame(r,a)),p.isSame(i,a)&&(m.type="today"),l==null||l(m,{rowIndex:c,columnIndex:h}),f[h+n]=m}u==null||u(f)}},Rm=(e,t,n)=>{const s=St().locale(n).startOf("month").month(t).year(e),r=s.daysInMonth();return bo(r).map(i=>s.add(i,"day").toDate())},Nf=(e,t,n,s)=>{const r=St().year(e).month(t).startOf("month"),i=Rm(e,t,n).find(a=>!(s!=null&&s(a)));return i?St(i).locale(n):r.locale(n)},wb=(e,t,n)=>{const s=e.year();if(!(n!=null&&n(e.toDate())))return e.locale(t);const r=e.month();if(!Rm(s,r,t).every(n))return Nf(s,r,t,n);for(let i=0;i<12;i++)if(!Rm(s,i,t).every(n))return Nf(s,i,t,n);return e},ete=Fe({..._2,cellClassName:{type:oe(Function)},showWeekNumber:Boolean,selectionMode:S2("date")}),tte=["changerange","pick","select"],Sb=(e="")=>["normal","today"].includes(e),nte=(e,t)=>{const{lang:n}=zt(),s=q(),r=q(),i=q(),a=q(),o=q([[],[],[],[],[],[]]);let l=!1;const u=e.date.$locale().weekStart||7,c=e.date.locale("en").localeData().weekdaysShort().map(F=>F.toLowerCase()),f=k(()=>u>3?7-u:-u),h=k(()=>{const F=e.date.startOf("month");return F.subtract(F.day()||7,"day")}),m=k(()=>c.concat(c).slice(u,u+7)),g=k(()=>E3(d(T)).some(F=>F.isCurrent)),p=k(()=>{const F=e.date.startOf("month"),H=F.day()||7,Z=F.daysInMonth(),se=F.subtract(1,"month").daysInMonth();return{startOfMonthDay:H,dateCountOfMonth:Z,dateCountOfLastMonth:se}}),v=k(()=>e.selectionMode==="dates"?qs(e.parsedValue):[]),y=(F,{count:H,rowIndex:Z,columnIndex:se})=>{const{startOfMonthDay:ne,dateCountOfMonth:we,dateCountOfLastMonth:De}=d(p),Ee=d(f);if(Z>=0&&Z<=1){const te=ne+Ee<0?7+ne+Ee:ne+Ee;if(se+Z*7>=te)return F.text=H,!0;F.text=De-(te-se%7)+1+Z*7,F.type="prev-month"}else return H<=we?F.text=H:(F.text=H-we,F.type="next-month"),!0;return!1},_=(F,{columnIndex:H,rowIndex:Z},se)=>{const{disabledDate:ne,cellClassName:we}=e,De=d(v),Ee=y(F,{count:se,rowIndex:Z,columnIndex:H}),te=F.dayjs.toDate();return F.selected=De.find(ge=>ge.isSame(F.dayjs,"day")),F.isSelected=!!F.selected,F.isCurrent=C(F),F.disabled=ne==null?void 0:ne(te),F.customClass=we==null?void 0:we(te),Ee},b=F=>{if(e.selectionMode==="week"){const[H,Z]=e.showWeekNumber?[1,7]:[0,6],se=Y(F[H+1]);F[H].inRange=se,F[H].start=se,F[Z].inRange=se,F[Z].end=se}},T=k(()=>{const{minDate:F,maxDate:H,rangeState:Z,showWeekNumber:se}=e,ne=d(f),we=d(o),De="day";let Ee=1;if(se)for(let te=0;te<6;te++)we[te][0]||(we[te][0]={type:"week",text:d(h).add(te*7+1,De).week()});return Zee({row:6,column:7},we,{startDate:F,columnIndexOffset:se?1:0,nextEndDate:Z.endDate||H||Z.selecting&&F||null,now:St().locale(d(n)).startOf(De),unit:De,relativeDateGetter:te=>d(h).add(te-ne,De),setCellMetadata:(...te)=>{_(...te,Ee)&&(Ee+=1)},setRowMetadata:b}),we});xe(()=>e.date,async()=>{var F;(F=d(s))!=null&&F.contains(document.activeElement)&&(await it(),await S())});const S=async()=>{var F;return(F=d(r))==null?void 0:F.focus()},C=F=>e.selectionMode==="date"&&Sb(F.type)&&D(F,e.parsedValue),D=(F,H)=>H?St(H).locale(d(n)).isSame(e.date.date(Number(F.text)),"day"):!1,N=(F,H)=>{const Z=F*7+(H-(e.showWeekNumber?1:0))-d(f);return d(h).add(Z,"day")},$=F=>{var H;if(!e.rangeState.selecting)return;let Z=F.target;if(Z.tagName==="SPAN"&&(Z=(H=Z.parentNode)==null?void 0:H.parentNode),Z.tagName==="DIV"&&(Z=Z.parentNode),Z.tagName!=="TD")return;const se=Z.parentNode.rowIndex-1,ne=Z.cellIndex;d(T)[se][ne].disabled||(se!==d(i)||ne!==d(a))&&(i.value=se,a.value=ne,t("changerange",{selecting:!0,endDate:N(se,ne)}))},L=F=>!d(g)&&(F==null?void 0:F.text)===1&&F.type==="normal"||F.isCurrent,z=F=>{l||d(g)||e.selectionMode!=="date"||Q(F,!0)},U=F=>{F.target.closest("td")&&(l=!0)},W=F=>{F.target.closest("td")&&(l=!1)},K=F=>{!e.rangeState.selecting||!e.minDate?(t("pick",{minDate:F,maxDate:null}),t("select",!0)):(F>=e.minDate?t("pick",{minDate:e.minDate,maxDate:F}):t("pick",{minDate:F,maxDate:e.minDate}),t("select",!1))},X=F=>{const H=F.week(),Z=`${F.year()}w${H}`;t("pick",{year:F.year(),week:H,value:Z,date:F.startOf("week")})},B=(F,H)=>{const Z=H?qs(e.parsedValue).filter(se=>(se==null?void 0:se.valueOf())!==F.valueOf()):qs(e.parsedValue).concat([F]);t("pick",Z)},Q=(F,H=!1)=>{const Z=F.target.closest("td");if(!Z)return;const se=Z.parentNode.rowIndex-1,ne=Z.cellIndex,we=d(T)[se][ne];if(we.disabled||we.type==="week")return;const De=N(se,ne);switch(e.selectionMode){case"range":{K(De);break}case"date":{t("pick",De,H);break}case"week":{X(De);break}case"dates":{B(De,!!we.selected);break}}},Y=F=>{if(e.selectionMode!=="week")return!1;let H=e.date.startOf("day");if(F.type==="prev-month"&&(H=H.subtract(1,"month")),F.type==="next-month"&&(H=H.add(1,"month")),H=H.date(Number.parseInt(F.text,10)),e.parsedValue&&!Array.isArray(e.parsedValue)){const Z=(e.parsedValue.day()-u+7)%7-1;return e.parsedValue.subtract(Z,"day").isSame(H,"day")}return!1};return{WEEKS:m,rows:T,tbodyRef:s,currentCellRef:r,focus:S,isCurrent:C,isWeekActive:Y,isSelectedCell:L,handlePickDate:Q,handleMouseUp:W,handleMouseDown:U,handleMouseMove:$,handleFocus:z}},ste=(e,{isCurrent:t,isWeekActive:n})=>{const s=Re("date-table"),{t:r}=zt(),i=k(()=>[s.b(),{"is-week-mode":e.selectionMode==="week"}]),a=k(()=>r("el.datepicker.dateTablePrompt")),o=k(()=>r("el.datepicker.week"));return{tableKls:i,tableLabel:a,weekLabel:o,getCellClasses:c=>{const f=[];return Sb(c.type)&&!c.disabled?(f.push("available"),c.type==="today"&&f.push("today")):f.push(c.type),t(c)&&f.push("current"),c.inRange&&(Sb(c.type)||e.selectionMode==="week")&&(f.push("in-range"),c.start&&f.push("start-date"),c.end&&f.push("end-date")),c.disabled&&f.push("disabled"),c.selected&&f.push("selected"),c.customClass&&f.push(c.customClass),f.join(" ")},getRowKls:c=>[s.e("row"),{current:n(c)}],t:r}},rte=Fe({cell:{type:oe(Object)}});var C2=J({name:"ElDatePickerCell",props:rte,setup(e){const t=Re("date-table-cell"),{slots:n}=Xe(Zg);return()=>{const{cell:s}=e;return fe(n,"default",{...s},()=>{var r;return[E("div",{class:t.b()},[E("span",{class:t.e("text")},[(r=s==null?void 0:s.renderText)!=null?r:s==null?void 0:s.text])])]})}}});const ite=J({__name:"basic-date-table",props:ete,emits:tte,setup(e,{expose:t,emit:n}){const s=e,{WEEKS:r,rows:i,tbodyRef:a,currentCellRef:o,focus:l,isCurrent:u,isWeekActive:c,isSelectedCell:f,handlePickDate:h,handleMouseUp:m,handleMouseDown:g,handleMouseMove:p,handleFocus:v}=nte(s,n),{tableLabel:y,tableKls:_,weekLabel:b,getCellClasses:T,getRowKls:S,t:C}=ste(s,{isCurrent:u,isWeekActive:c});return t({focus:l}),(D,N)=>(x(),j("table",{"aria-label":d(y),class:M(d(_)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:d(h),onMousemove:d(p),onMousedown:ft(d(g),["prevent"]),onMouseup:d(m)},[O("tbody",{ref_key:"tbodyRef",ref:a},[O("tr",null,[D.showWeekNumber?(x(),j("th",{key:0,scope:"col"},ce(d(b)),1)):ae("v-if",!0),(x(!0),j(Ke,null,bt(d(r),($,L)=>(x(),j("th",{key:L,"aria-label":d(C)("el.datepicker.weeksFull."+$),scope:"col"},ce(d(C)("el.datepicker.weeks."+$)),9,["aria-label"]))),128))]),(x(!0),j(Ke,null,bt(d(i),($,L)=>(x(),j("tr",{key:L,class:M(d(S)($[1]))},[(x(!0),j(Ke,null,bt($,(z,U)=>(x(),j("td",{key:`${L}.${U}`,ref_for:!0,ref:W=>d(f)(z)&&(o.value=W),class:M(d(T)(z)),"aria-current":z.isCurrent?"date":void 0,"aria-selected":z.isCurrent,tabindex:d(f)(z)?0:-1,onFocus:d(v)},[E(d(C2),{cell:z},null,8,["cell"])],42,["aria-current","aria-selected","tabindex","onFocus"]))),128))],2))),128))],512)],42,["aria-label","onClick","onMousemove","onMousedown","onMouseup"]))}});var Tb=Ue(ite,[["__file","basic-date-table.vue"]]);const ate=Fe({..._2,selectionMode:S2("month")}),ote=J({__name:"basic-month-table",props:ate,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,r=Re("month-table"),{t:i,lang:a}=zt(),o=q(),l=q(),u=q(s.date.locale("en").localeData().monthsShort().map(b=>b.toLowerCase())),c=q([[],[],[]]),f=q(),h=q(),m=k(()=>{var b,T;const S=c.value,C=St().locale(a.value).startOf("month");for(let D=0;D<3;D++){const N=S[D];for(let $=0;$<4;$++){const L=N[$]||(N[$]={row:D,column:$,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});L.type="normal";const z=D*4+$,U=s.date.startOf("year").month(z),W=s.rangeState.endDate||s.maxDate||s.rangeState.selecting&&s.minDate||null;L.inRange=!!(s.minDate&&U.isSameOrAfter(s.minDate,"month")&&W&&U.isSameOrBefore(W,"month"))||!!(s.minDate&&U.isSameOrBefore(s.minDate,"month")&&W&&U.isSameOrAfter(W,"month")),(b=s.minDate)!=null&&b.isSameOrAfter(W)?(L.start=!!(W&&U.isSame(W,"month")),L.end=s.minDate&&U.isSame(s.minDate,"month")):(L.start=!!(s.minDate&&U.isSame(s.minDate,"month")),L.end=!!(W&&U.isSame(W,"month"))),C.isSame(U)&&(L.type="today"),L.text=z,L.disabled=((T=s.disabledDate)==null?void 0:T.call(s,U.toDate()))||!1}}return S}),g=()=>{var b;(b=l.value)==null||b.focus()},p=b=>{const T={},S=s.date.year(),C=new Date,D=b.text;return T.disabled=s.disabledDate?Rm(S,D,a.value).every(s.disabledDate):!1,T.current=qs(s.parsedValue).findIndex(N=>St.isDayjs(N)&&N.year()===S&&N.month()===D)>=0,T.today=C.getFullYear()===S&&C.getMonth()===D,b.inRange&&(T["in-range"]=!0,b.start&&(T["start-date"]=!0),b.end&&(T["end-date"]=!0)),T},v=b=>{const T=s.date.year(),S=b.text;return qs(s.date).findIndex(C=>C.year()===T&&C.month()===S)>=0},y=b=>{var T;if(!s.rangeState.selecting)return;let S=b.target;if(S.tagName==="SPAN"&&(S=(T=S.parentNode)==null?void 0:T.parentNode),S.tagName==="DIV"&&(S=S.parentNode),S.tagName!=="TD")return;const C=S.parentNode.rowIndex,D=S.cellIndex;m.value[C][D].disabled||(C!==f.value||D!==h.value)&&(f.value=C,h.value=D,n("changerange",{selecting:!0,endDate:s.date.startOf("year").month(C*4+D)}))},_=b=>{var T;const S=(T=b.target)==null?void 0:T.closest("td");if((S==null?void 0:S.tagName)!=="TD"||or(S,"disabled"))return;const C=S.cellIndex,N=S.parentNode.rowIndex*4+C,$=s.date.startOf("year").month(N);if(s.selectionMode==="months"){if(b.type==="keydown"){n("pick",qs(s.parsedValue),!1);return}const L=Nf(s.date.year(),N,a.value,s.disabledDate),z=or(S,"current")?qs(s.parsedValue).filter(U=>(U==null?void 0:U.month())!==L.month()):qs(s.parsedValue).concat([St(L)]);n("pick",z)}else s.selectionMode==="range"?s.rangeState.selecting?(s.minDate&&$>=s.minDate?n("pick",{minDate:s.minDate,maxDate:$}):n("pick",{minDate:$,maxDate:s.minDate}),n("select",!1)):(n("pick",{minDate:$,maxDate:null}),n("select",!0)):n("pick",N)};return xe(()=>s.date,async()=>{var b,T;(b=o.value)!=null&&b.contains(document.activeElement)&&(await it(),(T=l.value)==null||T.focus())}),t({focus:g}),(b,T)=>(x(),j("table",{role:"grid","aria-label":d(i)("el.datepicker.monthTablePrompt"),class:M(d(r).b()),onClick:_,onMousemove:y},[O("tbody",{ref_key:"tbodyRef",ref:o},[(x(!0),j(Ke,null,bt(d(m),(S,C)=>(x(),j("tr",{key:C},[(x(!0),j(Ke,null,bt(S,(D,N)=>(x(),j("td",{key:N,ref_for:!0,ref:$=>v(D)&&(l.value=$),class:M(p(D)),"aria-selected":`${v(D)}`,"aria-label":d(i)(`el.datepicker.month${+D.text+1}`),tabindex:v(D)?0:-1,onKeydown:[rn(ft(_,["prevent","stop"]),["space"]),rn(ft(_,["prevent","stop"]),["enter"])]},[E(d(C2),{cell:{...D,renderText:d(i)("el.datepicker.months."+u.value[D.text])}},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var Cb=Ue(ote,[["__file","basic-month-table.vue"]]);const lte=Fe({..._2,selectionMode:S2("year")}),ute=J({__name:"basic-year-table",props:lte,emits:["changerange","pick","select"],setup(e,{expose:t,emit:n}){const s=e,r=(T,S)=>{const C=St(String(T)).locale(S).startOf("year"),N=C.endOf("year").dayOfYear();return bo(N).map($=>C.add($,"day").toDate())},i=Re("year-table"),{t:a,lang:o}=zt(),l=q(),u=q(),c=k(()=>Math.floor(s.date.year()/10)*10),f=q([[],[],[]]),h=q(),m=q(),g=k(()=>{var T;const S=f.value,C=St().locale(o.value).startOf("year");for(let D=0;D<3;D++){const N=S[D];for(let $=0;$<4&&!(D*4+$>=10);$++){let L=N[$];L||(L={row:D,column:$,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1}),L.type="normal";const z=D*4+$+c.value,U=St().year(z),W=s.rangeState.endDate||s.maxDate||s.rangeState.selecting&&s.minDate||null;L.inRange=!!(s.minDate&&U.isSameOrAfter(s.minDate,"year")&&W&&U.isSameOrBefore(W,"year"))||!!(s.minDate&&U.isSameOrBefore(s.minDate,"year")&&W&&U.isSameOrAfter(W,"year")),(T=s.minDate)!=null&&T.isSameOrAfter(W)?(L.start=!!(W&&U.isSame(W,"year")),L.end=!!(s.minDate&&U.isSame(s.minDate,"year"))):(L.start=!!(s.minDate&&U.isSame(s.minDate,"year")),L.end=!!(W&&U.isSame(W,"year"))),C.isSame(U)&&(L.type="today"),L.text=z;const X=U.toDate();L.disabled=s.disabledDate&&s.disabledDate(X)||!1,N[$]=L}}return S}),p=()=>{var T;(T=u.value)==null||T.focus()},v=T=>{const S={},C=St().locale(o.value),D=T.text;return S.disabled=s.disabledDate?r(D,o.value).every(s.disabledDate):!1,S.today=C.year()===D,S.current=qs(s.parsedValue).findIndex(N=>N.year()===D)>=0,T.inRange&&(S["in-range"]=!0,T.start&&(S["start-date"]=!0),T.end&&(S["end-date"]=!0)),S},y=T=>{const S=T.text;return qs(s.date).findIndex(C=>C.year()===S)>=0},_=T=>{var S;const C=(S=T.target)==null?void 0:S.closest("td");if(!C||!C.textContent||or(C,"disabled"))return;const D=C.cellIndex,$=C.parentNode.rowIndex*4+D+c.value,L=St().year($);if(s.selectionMode==="range")s.rangeState.selecting?(s.minDate&&L>=s.minDate?n("pick",{minDate:s.minDate,maxDate:L}):n("pick",{minDate:L,maxDate:s.minDate}),n("select",!1)):(n("pick",{minDate:L,maxDate:null}),n("select",!0));else if(s.selectionMode==="years"){if(T.type==="keydown"){n("pick",qs(s.parsedValue),!1);return}const z=wb(L.startOf("year"),o.value,s.disabledDate),U=or(C,"current")?qs(s.parsedValue).filter(W=>(W==null?void 0:W.year())!==$):qs(s.parsedValue).concat([z]);n("pick",U)}else n("pick",$)},b=T=>{var S;if(!s.rangeState.selecting)return;const C=(S=T.target)==null?void 0:S.closest("td");if(!C)return;const D=C.parentNode.rowIndex,N=C.cellIndex;g.value[D][N].disabled||(D!==h.value||N!==m.value)&&(h.value=D,m.value=N,n("changerange",{selecting:!0,endDate:St().year(c.value).add(D*4+N,"year")}))};return xe(()=>s.date,async()=>{var T,S;(T=l.value)!=null&&T.contains(document.activeElement)&&(await it(),(S=u.value)==null||S.focus())}),t({focus:p}),(T,S)=>(x(),j("table",{role:"grid","aria-label":d(a)("el.datepicker.yearTablePrompt"),class:M(d(i).b()),onClick:_,onMousemove:b},[O("tbody",{ref_key:"tbodyRef",ref:l},[(x(!0),j(Ke,null,bt(d(g),(C,D)=>(x(),j("tr",{key:D},[(x(!0),j(Ke,null,bt(C,(N,$)=>(x(),j("td",{key:`${D}_${$}`,ref_for:!0,ref:L=>y(N)&&(u.value=L),class:M(["available",v(N)]),"aria-selected":y(N),"aria-label":String(N.text),tabindex:y(N)?0:-1,onKeydown:[rn(ft(_,["prevent","stop"]),["space"]),rn(ft(_,["prevent","stop"]),["enter"])]},[E(d(C2),{cell:N},null,8,["cell"])],42,["aria-selected","aria-label","tabindex","onKeydown"]))),128))]))),128))],512)],42,["aria-label"]))}});var Eb=Ue(ute,[["__file","basic-year-table.vue"]]);const cte=J({__name:"panel-date-pick",props:Jee,emits:["pick","set-picker-option","panel-change"],setup(e,{emit:t}){const n=e,s=(be,et,le)=>!0,r=Re("picker-panel"),i=Re("date-picker"),a=zl(),o=os(),{t:l,lang:u}=zt(),c=Xe("EP_PICKER_BASE"),f=Xe(Qg),{shortcuts:h,disabledDate:m,cellClassName:g,defaultTime:p}=c.props,v=nn(c.props,"defaultValue"),y=q(),_=q(St().locale(u.value)),b=q(!1);let T=!1;const S=k(()=>St(p).locale(u.value)),C=k(()=>_.value.month()),D=k(()=>_.value.year()),N=q([]),$=q(null),L=q(null),z=be=>N.value.length>0?s(be,N.value,n.format||"HH:mm:ss"):!0,U=be=>p&&!Se.value&&!b.value&&!T?S.value.year(be.year()).month(be.month()).date(be.date()):te.value?be.millisecond(0):be.startOf("day"),W=(be,...et)=>{if(!be)t("pick",be,...et);else if(Ye(be)){const le=be.map(U);t("pick",le,...et)}else t("pick",U(be),...et);$.value=null,L.value=null,b.value=!1,T=!1},K=async(be,et)=>{if(H.value==="date"){be=be;let le=n.parsedValue?n.parsedValue.year(be.year()).month(be.month()).date(be.date()):be;z(le)||(le=N.value[0][0].year(be.year()).month(be.month()).date(be.date())),_.value=le,W(le,te.value||et),n.type==="datetime"&&(await it(),xt())}else H.value==="week"?W(be.date):H.value==="dates"&&W(be,!0)},X=be=>{const et=be?"add":"subtract";_.value=_.value[et](1,"month"),pn("month")},B=be=>{const et=_.value,le=be?"add":"subtract";_.value=Q.value==="year"?et[le](10,"year"):et[le](1,"year"),pn("year")},Q=q("date"),Y=k(()=>{const be=l("el.datepicker.year");if(Q.value==="year"){const et=Math.floor(D.value/10)*10;return be?`${et} ${be} - ${et+9} ${be}`:`${et} - ${et+9}`}return`${D.value} ${be}`}),F=be=>{const et=pt(be.value)?be.value():be.value;if(et){T=!0,W(St(et).locale(u.value));return}be.onClick&&be.onClick({attrs:a,slots:o,emit:t})},H=k(()=>{const{type:be}=n;return["week","month","months","year","years","dates"].includes(be)?be:"date"}),Z=k(()=>H.value==="dates"||H.value==="months"||H.value==="years"),se=k(()=>H.value==="date"?Q.value:H.value),ne=k(()=>!!h.length),we=async(be,et)=>{H.value==="month"?(_.value=Nf(_.value.year(),be,u.value,m),W(_.value,!1)):H.value==="months"?W(be,et??!0):(_.value=Nf(_.value.year(),be,u.value,m),Q.value="date",["month","year","date","week"].includes(H.value)&&(W(_.value,!0),await it(),xt())),pn("month")},De=async(be,et)=>{if(H.value==="year"){const le=_.value.startOf("year").year(be);_.value=wb(le,u.value,m),W(_.value,!1)}else if(H.value==="years")W(be,et??!0);else{const le=_.value.year(be);_.value=wb(le,u.value,m),Q.value="month",["month","year","date","week"].includes(H.value)&&(W(_.value,!0),await it(),xt())}pn("year")},Ee=async be=>{Q.value=be,await it(),xt()},te=k(()=>n.type==="datetime"||n.type==="datetimerange"),ge=k(()=>{const be=te.value||H.value==="dates",et=H.value==="years",le=H.value==="months",Ne=Q.value==="date",Me=Q.value==="year",vt=Q.value==="month";return be&&Ne||et&&Me||le&&vt}),pe=k(()=>m?n.parsedValue?Ye(n.parsedValue)?m(n.parsedValue[0].toDate()):m(n.parsedValue.toDate()):!0:!1),Oe=()=>{if(Z.value)W(n.parsedValue);else{let be=n.parsedValue;if(!be){const et=St(p).locale(u.value),le=_t();be=et.year(le.year()).month(le.month()).date(le.date())}_.value=be,W(be)}},Pe=k(()=>m?m(St().locale(u.value).toDate()):!1),ve=()=>{const et=St().locale(u.value).toDate();b.value=!0,(!m||!m(et))&&z(et)&&(_.value=St().locale(u.value),W(_.value))},ee=k(()=>n.timeFormat||yD(n.format)),re=k(()=>n.dateFormat||vD(n.format)),Se=k(()=>{if(L.value)return L.value;if(!(!n.parsedValue&&!v.value))return(n.parsedValue||_.value).format(ee.value)}),Le=k(()=>{if($.value)return $.value;if(!(!n.parsedValue&&!v.value))return(n.parsedValue||_.value).format(re.value)}),_e=q(!1),ke=()=>{_e.value=!0},Be=()=>{_e.value=!1},Ie=be=>({hour:be.hour(),minute:be.minute(),second:be.second(),year:be.year(),month:be.month(),date:be.date()}),ze=(be,et,le)=>{const{hour:Ne,minute:Me,second:vt}=Ie(be),qt=n.parsedValue?n.parsedValue.hour(Ne).minute(Me).second(vt):be;_.value=qt,W(_.value,!0),le||(_e.value=et)},Ve=be=>{const et=St(be,ee.value).locale(u.value);if(et.isValid()&&z(et)){const{year:le,month:Ne,date:Me}=Ie(_.value);_.value=et.year(le).month(Ne).date(Me),L.value=null,_e.value=!1,W(_.value,!0)}},Ze=be=>{const et=St(be,re.value).locale(u.value);if(et.isValid()){if(m&&m(et.toDate()))return;const{hour:le,minute:Ne,second:Me}=Ie(_.value);_.value=et.hour(le).minute(Ne).second(Me),$.value=null,W(_.value,!0)}},je=be=>St.isDayjs(be)&&be.isValid()&&(m?!m(be.toDate()):!0),Ae=be=>Ye(be)?be.map(et=>et.format(n.format)):be.format(n.format),nt=be=>St(be,n.format).locale(u.value),_t=()=>{const be=St(v.value).locale(u.value);if(!v.value){const et=S.value;return St().hour(et.hour()).minute(et.minute()).second(et.second()).locale(u.value)}return be},xt=async()=>{var be;["week","month","year","date"].includes(H.value)&&((be=y.value)==null||be.focus(),H.value==="week"&&Kt(at.down))},It=be=>{const{code:et}=be;[at.up,at.down,at.left,at.right,at.home,at.end,at.pageUp,at.pageDown].includes(et)&&(Kt(et),be.stopPropagation(),be.preventDefault()),[at.enter,at.space,at.numpadEnter].includes(et)&&$.value===null&&L.value===null&&(be.preventDefault(),W(_.value,!1))},Kt=be=>{var et;const{up:le,down:Ne,left:Me,right:vt,home:qt,end:Ce,pageUp:mt,pageDown:Vt}=at,Qt={year:{[le]:-4,[Ne]:4,[Me]:-1,[vt]:1,offset:(en,ws)=>en.setFullYear(en.getFullYear()+ws)},month:{[le]:-4,[Ne]:4,[Me]:-1,[vt]:1,offset:(en,ws)=>en.setMonth(en.getMonth()+ws)},week:{[le]:-1,[Ne]:1,[Me]:-1,[vt]:1,offset:(en,ws)=>en.setDate(en.getDate()+ws*7)},date:{[le]:-7,[Ne]:7,[Me]:-1,[vt]:1,[qt]:en=>-en.getDay(),[Ce]:en=>-en.getDay()+6,[mt]:en=>-new Date(en.getFullYear(),en.getMonth(),0).getDate(),[Vt]:en=>new Date(en.getFullYear(),en.getMonth()+1,0).getDate(),offset:(en,ws)=>en.setDate(en.getDate()+ws)}},Wt=_.value.toDate();for(;Math.abs(_.value.diff(Wt,"year",!0))<1;){const en=Qt[se.value];if(!en)return;if(en.offset(Wt,pt(en[be])?en[be](Wt):(et=en[be])!=null?et:0),m&&m(Wt))break;const ws=St(Wt).locale(u.value);_.value=ws,t("pick",ws,!0);break}},pn=be=>{t("panel-change",_.value.toDate(),be,Q.value)};return xe(()=>H.value,be=>{if(["month","year"].includes(be)){Q.value=be;return}else if(be==="years"){Q.value="year";return}else if(be==="months"){Q.value="month";return}Q.value="date"},{immediate:!0}),xe(()=>Q.value,()=>{f==null||f.updatePopper()}),xe(()=>v.value,be=>{be&&(_.value=_t())},{immediate:!0}),xe(()=>n.parsedValue,be=>{if(be){if(Z.value||Array.isArray(be))return;_.value=be}else _.value=_t()},{immediate:!0}),t("set-picker-option",["isValidValue",je]),t("set-picker-option",["formatToString",Ae]),t("set-picker-option",["parseUserInput",nt]),t("set-picker-option",["handleFocusPicker",xt]),(be,et)=>(x(),j("div",{class:M([d(r).b(),d(i).b(),{"has-sidebar":be.$slots.sidebar||d(ne),"has-time":d(te)}])},[O("div",{class:M(d(r).e("body-wrapper"))},[fe(be.$slots,"sidebar",{class:M(d(r).e("sidebar"))}),d(ne)?(x(),j("div",{key:0,class:M(d(r).e("sidebar"))},[(x(!0),j(Ke,null,bt(d(h),(le,Ne)=>(x(),j("button",{key:Ne,type:"button",class:M(d(r).e("shortcut")),onClick:Me=>F(le)},ce(le.text),11,["onClick"]))),128))],2)):ae("v-if",!0),O("div",{class:M(d(r).e("body"))},[d(te)?(x(),j("div",{key:0,class:M(d(i).e("time-header"))},[O("span",{class:M(d(i).e("editor-wrap"))},[E(d(Un),{placeholder:d(l)("el.datepicker.selectDate"),"model-value":d(Le),size:"small","validate-event":!1,onInput:le=>$.value=le,onChange:Ze},null,8,["placeholder","model-value","onInput"])],2),yt((x(),j("span",{class:M(d(i).e("editor-wrap"))},[E(d(Un),{placeholder:d(l)("el.datepicker.selectTime"),"model-value":d(Se),size:"small","validate-event":!1,onFocus:ke,onInput:le=>L.value=le,onChange:Ve},null,8,["placeholder","model-value","onInput"]),E(d(Pm),{visible:_e.value,format:d(ee),"parsed-value":_.value,onPick:ze},null,8,["visible","format","parsed-value"])],2)),[[d(Aa),Be]])],2)):ae("v-if",!0),yt(O("div",{class:M([d(i).e("header"),(Q.value==="year"||Q.value==="month")&&d(i).e("header--bordered")])},[O("span",{class:M(d(i).e("prev-btn"))},[O("button",{type:"button","aria-label":d(l)("el.datepicker.prevYear"),class:M(["d-arrow-left",d(r).e("icon-btn")]),onClick:le=>B(!1)},[fe(be.$slots,"prev-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Ao))]),_:1})])],10,["aria-label","onClick"]),yt(O("button",{type:"button","aria-label":d(l)("el.datepicker.prevMonth"),class:M([d(r).e("icon-btn"),"arrow-left"]),onClick:le=>X(!1)},[fe(be.$slots,"prev-month",{},()=>[E(d(tt),null,{default:P(()=>[E(d(ko))]),_:1})])],10,["aria-label","onClick"]),[[Bt,Q.value==="date"]])],2),O("span",{role:"button",class:M(d(i).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:rn(le=>Ee("year"),["enter"]),onClick:le=>Ee("year")},ce(d(Y)),43,["onKeydown","onClick"]),yt(O("span",{role:"button","aria-live":"polite",tabindex:"0",class:M([d(i).e("header-label"),{active:Q.value==="month"}]),onKeydown:rn(le=>Ee("month"),["enter"]),onClick:le=>Ee("month")},ce(d(l)(`el.datepicker.month${d(C)+1}`)),43,["onKeydown","onClick"]),[[Bt,Q.value==="date"]]),O("span",{class:M(d(i).e("next-btn"))},[yt(O("button",{type:"button","aria-label":d(l)("el.datepicker.nextMonth"),class:M([d(r).e("icon-btn"),"arrow-right"]),onClick:le=>X(!0)},[fe(be.$slots,"next-month",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Gs))]),_:1})])],10,["aria-label","onClick"]),[[Bt,Q.value==="date"]]),O("button",{type:"button","aria-label":d(l)("el.datepicker.nextYear"),class:M([d(r).e("icon-btn"),"d-arrow-right"]),onClick:le=>B(!0)},[fe(be.$slots,"next-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Io))]),_:1})])],10,["aria-label","onClick"])],2)],2),[[Bt,Q.value!=="time"]]),O("div",{class:M(d(r).e("content")),onKeydown:It},[Q.value==="date"?(x(),de(Tb,{key:0,ref_key:"currentViewRef",ref:y,"selection-mode":d(H),date:_.value,"parsed-value":be.parsedValue,"disabled-date":d(m),"cell-class-name":d(g),onPick:K},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):ae("v-if",!0),Q.value==="year"?(x(),de(Eb,{key:1,ref_key:"currentViewRef",ref:y,"selection-mode":d(H),date:_.value,"disabled-date":d(m),"parsed-value":be.parsedValue,onPick:De},null,8,["selection-mode","date","disabled-date","parsed-value"])):ae("v-if",!0),Q.value==="month"?(x(),de(Cb,{key:2,ref_key:"currentViewRef",ref:y,"selection-mode":d(H),date:_.value,"parsed-value":be.parsedValue,"disabled-date":d(m),onPick:we},null,8,["selection-mode","date","parsed-value","disabled-date"])):ae("v-if",!0)],34)],2)],2),yt(O("div",{class:M(d(r).e("footer"))},[yt(E(d(mn),{text:"",size:"small",class:M(d(r).e("link-btn")),disabled:d(Pe),onClick:ve},{default:P(()=>[Te(ce(d(l)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[Bt,!d(Z)]]),E(d(mn),{plain:"",size:"small",class:M(d(r).e("link-btn")),disabled:d(pe),onClick:Oe},{default:P(()=>[Te(ce(d(l)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[Bt,d(ge)]])],2))}});var dte=Ue(cte,[["__file","panel-date-pick.vue"]]);const fte=Fe({...v8,...w2,visible:Boolean}),y8=e=>{const{emit:t}=Ot(),n=zl(),s=os();return i=>{const a=pt(i.value)?i.value():i.value;if(a){t("pick",[St(a[0]).locale(e.value),St(a[1]).locale(e.value)]);return}i.onClick&&i.onClick({attrs:n,slots:s,emit:t})}},b8=(e,{defaultValue:t,leftDate:n,rightDate:s,unit:r,onParsedValueChanged:i})=>{const{emit:a}=Ot(),{pickerNs:o}=Xe(Zg),l=Re("date-range-picker"),{t:u,lang:c}=zt(),f=y8(c),h=q(),m=q(),g=q({endDate:null,selecting:!1}),p=T=>{g.value=T},v=(T=!1)=>{const S=d(h),C=d(m);ic([S,C])&&a("pick",[S,C],T)},y=T=>{g.value.selecting=T,T||(g.value.endDate=null)},_=T=>{if(Ye(T)&&T.length===2){const[S,C]=T;h.value=S,n.value=S,m.value=C,i(d(h),d(m))}else b()},b=()=>{const[T,S]=T2(d(t),{lang:d(c),unit:r,unlinkPanels:e.unlinkPanels});h.value=void 0,m.value=void 0,n.value=T,s.value=S};return xe(t,T=>{T&&b()},{immediate:!0}),xe(()=>e.parsedValue,_,{immediate:!0}),{minDate:h,maxDate:m,rangeState:g,lang:c,ppNs:o,drpNs:l,handleChangeRange:p,handleRangeConfirm:v,handleShortcutClick:f,onSelect:y,onReset:_,t:u}},Ep="month",hte=J({__name:"panel-date-range",props:fte,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(e,{emit:t}){const n=e,s=Xe("EP_PICKER_BASE"),{disabledDate:r,cellClassName:i,defaultTime:a,clearable:o}=s.props,l=nn(s.props,"format"),u=nn(s.props,"shortcuts"),c=nn(s.props,"defaultValue"),{lang:f}=zt(),h=q(St().locale(f.value)),m=q(St().locale(f.value).add(1,Ep)),{minDate:g,maxDate:p,rangeState:v,ppNs:y,drpNs:_,handleChangeRange:b,handleRangeConfirm:T,handleShortcutClick:S,onSelect:C,onReset:D,t:N}=b8(n,{defaultValue:c,leftDate:h,rightDate:m,unit:Ep,onParsedValueChanged:et});xe(()=>n.visible,le=>{!le&&v.value.selecting&&(D(n.parsedValue),C(!1))});const $=q({min:null,max:null}),L=q({min:null,max:null}),z=k(()=>`${h.value.year()} ${N("el.datepicker.year")} ${N(`el.datepicker.month${h.value.month()+1}`)}`),U=k(()=>`${m.value.year()} ${N("el.datepicker.year")} ${N(`el.datepicker.month${m.value.month()+1}`)}`),W=k(()=>h.value.year()),K=k(()=>h.value.month()),X=k(()=>m.value.year()),B=k(()=>m.value.month()),Q=k(()=>!!u.value.length),Y=k(()=>$.value.min!==null?$.value.min:g.value?g.value.format(ne.value):""),F=k(()=>$.value.max!==null?$.value.max:p.value||g.value?(p.value||g.value).format(ne.value):""),H=k(()=>L.value.min!==null?L.value.min:g.value?g.value.format(se.value):""),Z=k(()=>L.value.max!==null?L.value.max:p.value||g.value?(p.value||g.value).format(se.value):""),se=k(()=>n.timeFormat||yD(l.value)),ne=k(()=>n.dateFormat||vD(l.value)),we=le=>ic(le)&&(r?!r(le[0].toDate())&&!r(le[1].toDate()):!0),De=()=>{h.value=h.value.subtract(1,"year"),n.unlinkPanels||(m.value=h.value.add(1,"month")),ee("year")},Ee=()=>{h.value=h.value.subtract(1,"month"),n.unlinkPanels||(m.value=h.value.add(1,"month")),ee("month")},te=()=>{n.unlinkPanels?m.value=m.value.add(1,"year"):(h.value=h.value.add(1,"year"),m.value=h.value.add(1,"month")),ee("year")},ge=()=>{n.unlinkPanels?m.value=m.value.add(1,"month"):(h.value=h.value.add(1,"month"),m.value=h.value.add(1,"month")),ee("month")},pe=()=>{h.value=h.value.add(1,"year"),ee("year")},Oe=()=>{h.value=h.value.add(1,"month"),ee("month")},Pe=()=>{m.value=m.value.subtract(1,"year"),ee("year")},ve=()=>{m.value=m.value.subtract(1,"month"),ee("month")},ee=le=>{t("panel-change",[h.value.toDate(),m.value.toDate()],le)},re=k(()=>{const le=(K.value+1)%12,Ne=K.value+1>=12?1:0;return n.unlinkPanels&&new Date(W.value+Ne,le)<new Date(X.value,B.value)}),Se=k(()=>n.unlinkPanels&&X.value*12+B.value-(W.value*12+K.value+1)>=12),Le=k(()=>!(g.value&&p.value&&!v.value.selecting&&ic([g.value,p.value]))),_e=k(()=>n.type==="datetime"||n.type==="datetimerange"),ke=(le,Ne)=>{if(le)return a?St(a[Ne]||a).locale(f.value).year(le.year()).month(le.month()).date(le.date()):le},Be=(le,Ne=!0)=>{const Me=le.minDate,vt=le.maxDate,qt=ke(Me,0),Ce=ke(vt,1);p.value===Ce&&g.value===qt||(t("calendar-change",[Me.toDate(),vt&&vt.toDate()]),p.value=Ce,g.value=qt,!(!Ne||_e.value)&&T())},Ie=q(!1),ze=q(!1),Ve=()=>{Ie.value=!1},Ze=()=>{ze.value=!1},je=(le,Ne)=>{$.value[Ne]=le;const Me=St(le,ne.value).locale(f.value);if(Me.isValid()){if(r&&r(Me.toDate()))return;Ne==="min"?(h.value=Me,g.value=(g.value||h.value).year(Me.year()).month(Me.month()).date(Me.date()),!n.unlinkPanels&&(!p.value||p.value.isBefore(g.value))&&(m.value=Me.add(1,"month"),p.value=g.value.add(1,"month"))):(m.value=Me,p.value=(p.value||m.value).year(Me.year()).month(Me.month()).date(Me.date()),!n.unlinkPanels&&(!g.value||g.value.isAfter(p.value))&&(h.value=Me.subtract(1,"month"),g.value=p.value.subtract(1,"month")))}},Ae=(le,Ne)=>{$.value[Ne]=null},nt=(le,Ne)=>{L.value[Ne]=le;const Me=St(le,se.value).locale(f.value);Me.isValid()&&(Ne==="min"?(Ie.value=!0,g.value=(g.value||h.value).hour(Me.hour()).minute(Me.minute()).second(Me.second())):(ze.value=!0,p.value=(p.value||m.value).hour(Me.hour()).minute(Me.minute()).second(Me.second()),m.value=p.value))},_t=(le,Ne)=>{L.value[Ne]=null,Ne==="min"?(h.value=g.value,Ie.value=!1,(!p.value||p.value.isBefore(g.value))&&(p.value=g.value)):(m.value=p.value,ze.value=!1,p.value&&p.value.isBefore(g.value)&&(g.value=p.value))},xt=(le,Ne,Me)=>{L.value.min||(le&&(h.value=le,g.value=(g.value||h.value).hour(le.hour()).minute(le.minute()).second(le.second())),Me||(Ie.value=Ne),(!p.value||p.value.isBefore(g.value))&&(p.value=g.value,m.value=le))},It=(le,Ne,Me)=>{L.value.max||(le&&(m.value=le,p.value=(p.value||m.value).hour(le.hour()).minute(le.minute()).second(le.second())),Me||(ze.value=Ne),p.value&&p.value.isBefore(g.value)&&(g.value=p.value))},Kt=()=>{h.value=T2(d(c),{lang:d(f),unit:"month",unlinkPanels:n.unlinkPanels})[0],m.value=h.value.add(1,"month"),p.value=void 0,g.value=void 0,t("pick",null)},pn=le=>Ye(le)?le.map(Ne=>Ne.format(l.value)):le.format(l.value),be=le=>Ye(le)?le.map(Ne=>St(Ne,l.value).locale(f.value)):St(le,l.value).locale(f.value);function et(le,Ne){if(n.unlinkPanels&&Ne){const Me=(le==null?void 0:le.year())||0,vt=(le==null?void 0:le.month())||0,qt=Ne.year(),Ce=Ne.month();m.value=Me===qt&&vt===Ce?Ne.add(1,Ep):Ne}else m.value=h.value.add(1,Ep),Ne&&(m.value=m.value.hour(Ne.hour()).minute(Ne.minute()).second(Ne.second()))}return t("set-picker-option",["isValidValue",we]),t("set-picker-option",["parseUserInput",be]),t("set-picker-option",["formatToString",pn]),t("set-picker-option",["handleClear",Kt]),(le,Ne)=>(x(),j("div",{class:M([d(y).b(),d(_).b(),{"has-sidebar":le.$slots.sidebar||d(Q),"has-time":d(_e)}])},[O("div",{class:M(d(y).e("body-wrapper"))},[fe(le.$slots,"sidebar",{class:M(d(y).e("sidebar"))}),d(Q)?(x(),j("div",{key:0,class:M(d(y).e("sidebar"))},[(x(!0),j(Ke,null,bt(d(u),(Me,vt)=>(x(),j("button",{key:vt,type:"button",class:M(d(y).e("shortcut")),onClick:qt=>d(S)(Me)},ce(Me.text),11,["onClick"]))),128))],2)):ae("v-if",!0),O("div",{class:M(d(y).e("body"))},[d(_e)?(x(),j("div",{key:0,class:M(d(_).e("time-header"))},[O("span",{class:M(d(_).e("editors-wrap"))},[O("span",{class:M(d(_).e("time-picker-wrap"))},[E(d(Un),{size:"small",disabled:d(v).selecting,placeholder:d(N)("el.datepicker.startDate"),class:M(d(_).e("editor")),"model-value":d(Y),"validate-event":!1,onInput:Me=>je(Me,"min"),onChange:Me=>Ae(Me,"min")},null,8,["disabled","placeholder","class","model-value","onInput","onChange"])],2),yt((x(),j("span",{class:M(d(_).e("time-picker-wrap"))},[E(d(Un),{size:"small",class:M(d(_).e("editor")),disabled:d(v).selecting,placeholder:d(N)("el.datepicker.startTime"),"model-value":d(H),"validate-event":!1,onFocus:Me=>Ie.value=!0,onInput:Me=>nt(Me,"min"),onChange:Me=>_t(Me,"min")},null,8,["class","disabled","placeholder","model-value","onFocus","onInput","onChange"]),E(d(Pm),{visible:Ie.value,format:d(se),"datetime-role":"start","parsed-value":h.value,onPick:xt},null,8,["visible","format","parsed-value"])],2)),[[d(Aa),Ve]])],2),O("span",null,[E(d(tt),null,{default:P(()=>[E(d(Gs))]),_:1})]),O("span",{class:M([d(_).e("editors-wrap"),"is-right"])},[O("span",{class:M(d(_).e("time-picker-wrap"))},[E(d(Un),{size:"small",class:M(d(_).e("editor")),disabled:d(v).selecting,placeholder:d(N)("el.datepicker.endDate"),"model-value":d(F),readonly:!d(g),"validate-event":!1,onInput:Me=>je(Me,"max"),onChange:Me=>Ae(Me,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onInput","onChange"])],2),yt((x(),j("span",{class:M(d(_).e("time-picker-wrap"))},[E(d(Un),{size:"small",class:M(d(_).e("editor")),disabled:d(v).selecting,placeholder:d(N)("el.datepicker.endTime"),"model-value":d(Z),readonly:!d(g),"validate-event":!1,onFocus:Me=>d(g)&&(ze.value=!0),onInput:Me=>nt(Me,"max"),onChange:Me=>_t(Me,"max")},null,8,["class","disabled","placeholder","model-value","readonly","onFocus","onInput","onChange"]),E(d(Pm),{"datetime-role":"end",visible:ze.value,format:d(se),"parsed-value":m.value,onPick:It},null,8,["visible","format","parsed-value"])],2)),[[d(Aa),Ze]])],2)],2)):ae("v-if",!0),O("div",{class:M([[d(y).e("content"),d(_).e("content")],"is-left"])},[O("div",{class:M(d(_).e("header"))},[O("button",{type:"button",class:M([d(y).e("icon-btn"),"d-arrow-left"]),"aria-label":d(N)("el.datepicker.prevYear"),onClick:De},[fe(le.$slots,"prev-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Ao))]),_:1})])],10,["aria-label"]),O("button",{type:"button",class:M([d(y).e("icon-btn"),"arrow-left"]),"aria-label":d(N)("el.datepicker.prevMonth"),onClick:Ee},[fe(le.$slots,"prev-month",{},()=>[E(d(tt),null,{default:P(()=>[E(d(ko))]),_:1})])],10,["aria-label"]),le.unlinkPanels?(x(),j("button",{key:0,type:"button",disabled:!d(Se),class:M([[d(y).e("icon-btn"),{"is-disabled":!d(Se)}],"d-arrow-right"]),"aria-label":d(N)("el.datepicker.nextYear"),onClick:pe},[fe(le.$slots,"next-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Io))]),_:1})])],10,["disabled","aria-label"])):ae("v-if",!0),le.unlinkPanels?(x(),j("button",{key:1,type:"button",disabled:!d(re),class:M([[d(y).e("icon-btn"),{"is-disabled":!d(re)}],"arrow-right"]),"aria-label":d(N)("el.datepicker.nextMonth"),onClick:Oe},[fe(le.$slots,"next-month",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Gs))]),_:1})])],10,["disabled","aria-label"])):ae("v-if",!0),O("div",null,ce(d(z)),1)],2),E(Tb,{"selection-mode":"range",date:h.value,"min-date":d(g),"max-date":d(p),"range-state":d(v),"disabled-date":d(r),"cell-class-name":d(i),onChangerange:d(b),onPick:Be,onSelect:d(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),O("div",{class:M([[d(y).e("content"),d(_).e("content")],"is-right"])},[O("div",{class:M(d(_).e("header"))},[le.unlinkPanels?(x(),j("button",{key:0,type:"button",disabled:!d(Se),class:M([[d(y).e("icon-btn"),{"is-disabled":!d(Se)}],"d-arrow-left"]),"aria-label":d(N)("el.datepicker.prevYear"),onClick:Pe},[fe(le.$slots,"prev-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Ao))]),_:1})])],10,["disabled","aria-label"])):ae("v-if",!0),le.unlinkPanels?(x(),j("button",{key:1,type:"button",disabled:!d(re),class:M([[d(y).e("icon-btn"),{"is-disabled":!d(re)}],"arrow-left"]),"aria-label":d(N)("el.datepicker.prevMonth"),onClick:ve},[fe(le.$slots,"prev-month",{},()=>[E(d(tt),null,{default:P(()=>[E(d(ko))]),_:1})])],10,["disabled","aria-label"])):ae("v-if",!0),O("button",{type:"button","aria-label":d(N)("el.datepicker.nextYear"),class:M([d(y).e("icon-btn"),"d-arrow-right"]),onClick:te},[fe(le.$slots,"next-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Io))]),_:1})])],10,["aria-label"]),O("button",{type:"button",class:M([d(y).e("icon-btn"),"arrow-right"]),"aria-label":d(N)("el.datepicker.nextMonth"),onClick:ge},[fe(le.$slots,"next-month",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Gs))]),_:1})])],10,["aria-label"]),O("div",null,ce(d(U)),1)],2),E(Tb,{"selection-mode":"range",date:m.value,"min-date":d(g),"max-date":d(p),"range-state":d(v),"disabled-date":d(r),"cell-class-name":d(i),onChangerange:d(b),onPick:Be,onSelect:d(C)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),d(_e)?(x(),j("div",{key:0,class:M(d(y).e("footer"))},[d(o)?(x(),de(d(mn),{key:0,text:"",size:"small",class:M(d(y).e("link-btn")),onClick:Kt},{default:P(()=>[Te(ce(d(N)("el.datepicker.clear")),1)]),_:1},8,["class"])):ae("v-if",!0),E(d(mn),{plain:"",size:"small",class:M(d(y).e("link-btn")),disabled:d(Le),onClick:Me=>d(T)(!1)},{default:P(()=>[Te(ce(d(N)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled","onClick"])],2)):ae("v-if",!0)],2))}});var pte=Ue(hte,[["__file","panel-date-range.vue"]]);const mte=Fe({...w2}),gte=["pick","set-picker-option","calendar-change"],vte=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const{t:s}=zt(),r=()=>{t.value=t.value.subtract(1,"year"),e.value||(n.value=n.value.subtract(1,"year"))},i=()=>{e.value||(t.value=t.value.add(1,"year")),n.value=n.value.add(1,"year")},a=()=>{t.value=t.value.add(1,"year")},o=()=>{n.value=n.value.subtract(1,"year")},l=k(()=>`${t.value.year()} ${s("el.datepicker.year")}`),u=k(()=>`${n.value.year()} ${s("el.datepicker.year")}`),c=k(()=>t.value.year()),f=k(()=>n.value.year()===t.value.year()?t.value.year()+1:n.value.year());return{leftPrevYear:r,rightNextYear:i,leftNextYear:a,rightPrevYear:o,leftLabel:l,rightLabel:u,leftYear:c,rightYear:f}},xp="year",yte=J({name:"DatePickerMonthRange"}),bte=J({...yte,props:mte,emits:gte,setup(e,{emit:t}){const n=e,{lang:s}=zt(),r=Xe("EP_PICKER_BASE"),{shortcuts:i,disabledDate:a}=r.props,o=nn(r.props,"format"),l=nn(r.props,"defaultValue"),u=q(St().locale(s.value)),c=q(St().locale(s.value).add(1,xp)),{minDate:f,maxDate:h,rangeState:m,ppNs:g,drpNs:p,handleChangeRange:v,handleRangeConfirm:y,handleShortcutClick:_,onSelect:b}=b8(n,{defaultValue:l,leftDate:u,rightDate:c,unit:xp,onParsedValueChanged:Y}),T=k(()=>!!i.length),{leftPrevYear:S,rightNextYear:C,leftNextYear:D,rightPrevYear:N,leftLabel:$,rightLabel:L,leftYear:z,rightYear:U}=vte({unlinkPanels:nn(n,"unlinkPanels"),leftDate:u,rightDate:c}),W=k(()=>n.unlinkPanels&&U.value>z.value+1),K=(F,H=!0)=>{const Z=F.minDate,se=F.maxDate;h.value===se&&f.value===Z||(t("calendar-change",[Z.toDate(),se&&se.toDate()]),h.value=se,f.value=Z,H&&y())},X=()=>{u.value=T2(d(l),{lang:d(s),unit:"year",unlinkPanels:n.unlinkPanels})[0],c.value=u.value.add(1,"year"),t("pick",null)},B=F=>Ye(F)?F.map(H=>H.format(o.value)):F.format(o.value),Q=F=>Ye(F)?F.map(H=>St(H,o.value).locale(s.value)):St(F,o.value).locale(s.value);function Y(F,H){if(n.unlinkPanels&&H){const Z=(F==null?void 0:F.year())||0,se=H.year();c.value=Z===se?H.add(1,xp):H}else c.value=u.value.add(1,xp)}return t("set-picker-option",["isValidValue",ic]),t("set-picker-option",["formatToString",B]),t("set-picker-option",["parseUserInput",Q]),t("set-picker-option",["handleClear",X]),(F,H)=>(x(),j("div",{class:M([d(g).b(),d(p).b(),{"has-sidebar":!!F.$slots.sidebar||d(T)}])},[O("div",{class:M(d(g).e("body-wrapper"))},[fe(F.$slots,"sidebar",{class:M(d(g).e("sidebar"))}),d(T)?(x(),j("div",{key:0,class:M(d(g).e("sidebar"))},[(x(!0),j(Ke,null,bt(d(i),(Z,se)=>(x(),j("button",{key:se,type:"button",class:M(d(g).e("shortcut")),onClick:ne=>d(_)(Z)},ce(Z.text),11,["onClick"]))),128))],2)):ae("v-if",!0),O("div",{class:M(d(g).e("body"))},[O("div",{class:M([[d(g).e("content"),d(p).e("content")],"is-left"])},[O("div",{class:M(d(p).e("header"))},[O("button",{type:"button",class:M([d(g).e("icon-btn"),"d-arrow-left"]),onClick:d(S)},[fe(F.$slots,"prev-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Ao))]),_:1})])],10,["onClick"]),F.unlinkPanels?(x(),j("button",{key:0,type:"button",disabled:!d(W),class:M([[d(g).e("icon-btn"),{[d(g).is("disabled")]:!d(W)}],"d-arrow-right"]),onClick:d(D)},[fe(F.$slots,"next-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Io))]),_:1})])],10,["disabled","onClick"])):ae("v-if",!0),O("div",null,ce(d($)),1)],2),E(Cb,{"selection-mode":"range",date:u.value,"min-date":d(f),"max-date":d(h),"range-state":d(m),"disabled-date":d(a),onChangerange:d(v),onPick:K,onSelect:d(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),O("div",{class:M([[d(g).e("content"),d(p).e("content")],"is-right"])},[O("div",{class:M(d(p).e("header"))},[F.unlinkPanels?(x(),j("button",{key:0,type:"button",disabled:!d(W),class:M([[d(g).e("icon-btn"),{"is-disabled":!d(W)}],"d-arrow-left"]),onClick:d(N)},[fe(F.$slots,"prev-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Ao))]),_:1})])],10,["disabled","onClick"])):ae("v-if",!0),O("button",{type:"button",class:M([d(g).e("icon-btn"),"d-arrow-right"]),onClick:d(C)},[fe(F.$slots,"next-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Io))]),_:1})])],10,["onClick"]),O("div",null,ce(d(L)),1)],2),E(Cb,{"selection-mode":"range",date:c.value,"min-date":d(f),"max-date":d(h),"range-state":d(m),"disabled-date":d(a),onChangerange:d(v),onPick:K,onSelect:d(b)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var _te=Ue(bte,[["__file","panel-month-range.vue"]]);const wte=Fe({...w2}),Ste=["pick","set-picker-option","calendar-change"],Tte=({unlinkPanels:e,leftDate:t,rightDate:n})=>{const s=()=>{t.value=t.value.subtract(10,"year"),e.value||(n.value=n.value.subtract(10,"year"))},r=()=>{e.value||(t.value=t.value.add(10,"year")),n.value=n.value.add(10,"year")},i=()=>{t.value=t.value.add(10,"year")},a=()=>{n.value=n.value.subtract(10,"year")},o=k(()=>{const f=Math.floor(t.value.year()/10)*10;return`${f}-${f+9}`}),l=k(()=>{const f=Math.floor(n.value.year()/10)*10;return`${f}-${f+9}`}),u=k(()=>Math.floor(t.value.year()/10)*10+9),c=k(()=>Math.floor(n.value.year()/10)*10);return{leftPrevYear:s,rightNextYear:r,leftNextYear:i,rightPrevYear:a,leftLabel:o,rightLabel:l,leftYear:u,rightYear:c}},QE="year",Cte=J({name:"DatePickerYearRange"}),Ete=J({...Cte,props:wte,emits:Ste,setup(e,{emit:t}){const n=e,{lang:s}=zt(),r=q(St().locale(s.value)),i=q(r.value.add(10,"year")),{pickerNs:a}=Xe(Zg),o=Re("date-range-picker"),l=k(()=>!!K.length),u=k(()=>[a.b(),o.b(),{"has-sidebar":!!os().sidebar||l.value}]),c=k(()=>({content:[a.e("content"),o.e("content"),"is-left"],arrowLeftBtn:[a.e("icon-btn"),"d-arrow-left"],arrowRightBtn:[a.e("icon-btn"),{[a.is("disabled")]:!S.value},"d-arrow-right"]})),f=k(()=>({content:[a.e("content"),o.e("content"),"is-right"],arrowLeftBtn:[a.e("icon-btn"),{"is-disabled":!S.value},"d-arrow-left"],arrowRightBtn:[a.e("icon-btn"),"d-arrow-right"]})),h=y8(s),{leftPrevYear:m,rightNextYear:g,leftNextYear:p,rightPrevYear:v,leftLabel:y,rightLabel:_,leftYear:b,rightYear:T}=Tte({unlinkPanels:nn(n,"unlinkPanels"),leftDate:r,rightDate:i}),S=k(()=>n.unlinkPanels&&T.value>b.value+1),C=q(),D=q(),N=q({endDate:null,selecting:!1}),$=ne=>{N.value=ne},L=(ne,we=!0)=>{const De=ne.minDate,Ee=ne.maxDate;D.value===Ee&&C.value===De||(t("calendar-change",[De.toDate(),Ee&&Ee.toDate()]),D.value=Ee,C.value=De,we&&z())},z=(ne=!1)=>{ic([C.value,D.value])&&t("pick",[C.value,D.value],ne)},U=ne=>{N.value.selecting=ne,ne||(N.value.endDate=null)},W=Xe("EP_PICKER_BASE"),{shortcuts:K,disabledDate:X}=W.props,B=nn(W.props,"format"),Q=nn(W.props,"defaultValue"),Y=()=>{let ne;if(Ye(Q.value)){const we=St(Q.value[0]);let De=St(Q.value[1]);return n.unlinkPanels||(De=we.add(10,QE)),[we,De]}else Q.value?ne=St(Q.value):ne=St();return ne=ne.locale(s.value),[ne,ne.add(10,QE)]};xe(()=>Q.value,ne=>{if(ne){const we=Y();r.value=we[0],i.value=we[1]}},{immediate:!0}),xe(()=>n.parsedValue,ne=>{if(ne&&ne.length===2)if(C.value=ne[0],D.value=ne[1],r.value=C.value,n.unlinkPanels&&D.value){const we=C.value.year(),De=D.value.year();i.value=we===De?D.value.add(10,"year"):D.value}else i.value=r.value.add(10,"year");else{const we=Y();C.value=void 0,D.value=void 0,r.value=we[0],i.value=we[1]}},{immediate:!0});const F=ne=>Ye(ne)?ne.map(we=>St(we,B.value).locale(s.value)):St(ne,B.value).locale(s.value),H=ne=>Ye(ne)?ne.map(we=>we.format(B.value)):ne.format(B.value),Z=ne=>ic(ne)&&(X?!X(ne[0].toDate())&&!X(ne[1].toDate()):!0),se=()=>{const ne=Y();r.value=ne[0],i.value=ne[1],D.value=void 0,C.value=void 0,t("pick",null)};return t("set-picker-option",["isValidValue",Z]),t("set-picker-option",["parseUserInput",F]),t("set-picker-option",["formatToString",H]),t("set-picker-option",["handleClear",se]),(ne,we)=>(x(),j("div",{class:M(d(u))},[O("div",{class:M(d(a).e("body-wrapper"))},[fe(ne.$slots,"sidebar",{class:M(d(a).e("sidebar"))}),d(l)?(x(),j("div",{key:0,class:M(d(a).e("sidebar"))},[(x(!0),j(Ke,null,bt(d(K),(De,Ee)=>(x(),j("button",{key:Ee,type:"button",class:M(d(a).e("shortcut")),onClick:te=>d(h)(De)},ce(De.text),11,["onClick"]))),128))],2)):ae("v-if",!0),O("div",{class:M(d(a).e("body"))},[O("div",{class:M(d(c).content)},[O("div",{class:M(d(o).e("header"))},[O("button",{type:"button",class:M(d(c).arrowLeftBtn),onClick:d(m)},[fe(ne.$slots,"prev-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Ao))]),_:1})])],10,["onClick"]),ne.unlinkPanels?(x(),j("button",{key:0,type:"button",disabled:!d(S),class:M(d(c).arrowRightBtn),onClick:d(p)},[fe(ne.$slots,"next-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Io))]),_:1})])],10,["disabled","onClick"])):ae("v-if",!0),O("div",null,ce(d(y)),1)],2),E(Eb,{"selection-mode":"range",date:r.value,"min-date":C.value,"max-date":D.value,"range-state":N.value,"disabled-date":d(X),onChangerange:$,onPick:L,onSelect:U},null,8,["date","min-date","max-date","range-state","disabled-date"])],2),O("div",{class:M(d(f).content)},[O("div",{class:M(d(o).e("header"))},[ne.unlinkPanels?(x(),j("button",{key:0,type:"button",disabled:!d(S),class:M(d(f).arrowLeftBtn),onClick:d(v)},[fe(ne.$slots,"prev-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Ao))]),_:1})])],10,["disabled","onClick"])):ae("v-if",!0),O("button",{type:"button",class:M(d(f).arrowRightBtn),onClick:d(g)},[fe(ne.$slots,"next-year",{},()=>[E(d(tt),null,{default:P(()=>[E(d(Io))]),_:1})])],10,["onClick"]),O("div",null,ce(d(_)),1)],2),E(Eb,{"selection-mode":"range",date:i.value,"min-date":C.value,"max-date":D.value,"range-state":N.value,"disabled-date":d(X),onChangerange:$,onPick:L,onSelect:U},null,8,["date","min-date","max-date","range-state","disabled-date"])],2)],2)],2)],2))}});var xte=Ue(Ete,[["__file","panel-year-range.vue"]]);const kte=function(e){switch(e){case"daterange":case"datetimerange":return pte;case"monthrange":return _te;case"yearrange":return xte;default:return dte}};St.extend(ND);St.extend(Fee);St.extend(h2);St.extend(Uee);St.extend(zee);St.extend(qee);St.extend(Kee);St.extend(Yee);var Ate=J({name:"ElDatePicker",install:null,props:Xee,emits:["update:modelValue"],setup(e,{expose:t,emit:n,slots:s}){const r=Re("picker-panel");Mt("ElPopperOptions",Ct(nn(e,"popperOptions"))),Mt(Zg,{slots:s,pickerNs:r});const i=q();t({focus:(l=!0)=>{var u;(u=i.value)==null||u.focus(l)},handleOpen:()=>{var l;(l=i.value)==null||l.handleOpen()},handleClose:()=>{var l;(l=i.value)==null||l.handleClose()}});const o=l=>{n("update:modelValue",l)};return()=>{var l;const u=(l=e.format)!=null?l:_Q[e.type]||vu,c=kte(e.type);return E(wD,Nt(e,{format:u,type:e.type,ref:i,"onUpdate:modelValue":o}),{default:f=>E(c,f,{"prev-month":s["prev-month"],"next-month":s["next-month"],"prev-year":s["prev-year"],"next-year":s["next-year"]}),"range-separator":s["range-separator"]})}}});const _8=Tt(Ate),E2=Symbol("elDescriptions");var vd=J({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String,default:"td"},type:{type:String}},setup(){return{descriptions:Xe(E2,{})}},render(){var e;const t=xq(this.cell),n=(((e=this.cell)==null?void 0:e.dirs)||[]).map(v=>{const{dir:y,arg:_,modifiers:b,value:T}=v;return[y,T,_,b]}),{border:s,direction:r}=this.descriptions,i=r==="vertical",a=()=>{var v,y,_;return((_=(y=(v=this.cell)==null?void 0:v.children)==null?void 0:y.label)==null?void 0:_.call(y))||t.label},o=()=>{var v,y,_;return(_=(y=(v=this.cell)==null?void 0:v.children)==null?void 0:y.default)==null?void 0:_.call(y)},l=t.span,u=t.rowspan,c=t.align?`is-${t.align}`:"",f=t.labelAlign?`is-${t.labelAlign}`:c,h=t.className,m=t.labelClassName,g={width:Nn(t.width),minWidth:Nn(t.minWidth)},p=Re("descriptions");switch(this.type){case"label":return yt(ot(this.tag,{style:g,class:[p.e("cell"),p.e("label"),p.is("bordered-label",s),p.is("vertical-label",i),f,m],colSpan:i?l:1,rowspan:i?1:u},a()),n);case"content":return yt(ot(this.tag,{style:g,class:[p.e("cell"),p.e("content"),p.is("bordered-content",s),p.is("vertical-content",i),c,h],colSpan:i?l:l*2-1,rowspan:i?u*2-1:u},o()),n);default:{const v=a();return yt(ot("td",{style:g,class:[p.e("cell"),c],colSpan:l,rowspan:u},[rs(v)?void 0:ot("span",{class:[p.e("label"),m]},v),ot("span",{class:[p.e("content"),h]},o())]),n)}}}});const Ite=Fe({row:{type:oe(Array),default:()=>[]}}),Dte=J({name:"ElDescriptionsRow"}),Ote=J({...Dte,props:Ite,setup(e){const t=Xe(E2,{});return(n,s)=>d(t).direction==="vertical"?(x(),j(Ke,{key:0},[O("tr",null,[(x(!0),j(Ke,null,bt(n.row,(r,i)=>(x(),de(d(vd),{key:`tr1-${i}`,cell:r,tag:"th",type:"label"},null,8,["cell"]))),128))]),O("tr",null,[(x(!0),j(Ke,null,bt(n.row,(r,i)=>(x(),de(d(vd),{key:`tr2-${i}`,cell:r,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(x(),j("tr",{key:1},[(x(!0),j(Ke,null,bt(n.row,(r,i)=>(x(),j(Ke,{key:`tr3-${i}`},[d(t).border?(x(),j(Ke,{key:0},[E(d(vd),{cell:r,tag:"td",type:"label"},null,8,["cell"]),E(d(vd),{cell:r,tag:"td",type:"content"},null,8,["cell"])],64)):(x(),de(d(vd),{key:1,cell:r,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var Pte=Ue(Ote,[["__file","descriptions-row.vue"]]);const Rte=Fe({border:Boolean,column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:ts,title:{type:String,default:""},extra:{type:String,default:""}}),Nte=J({name:"ElDescriptions"}),Mte=J({...Nte,props:Rte,setup(e){const t=e,n=Re("descriptions"),s=Kn(),r=os();Mt(E2,t);const i=k(()=>[n.b(),n.m(s.value)]),a=(l,u,c,f=!1)=>(l.props||(l.props={}),u>c&&(l.props.span=c),f&&(l.props.span=u),l),o=()=>{if(!r.default)return[];const l=vo(r.default()).filter(g=>{var p;return((p=g==null?void 0:g.type)==null?void 0:p.name)==="ElDescriptionsItem"}),u=[];let c=[],f=t.column,h=0;const m=[];return l.forEach((g,p)=>{var v,y,_;const b=((v=g.props)==null?void 0:v.span)||1,T=((y=g.props)==null?void 0:y.rowspan)||1,S=u.length;if(m[S]||(m[S]=0),T>1)for(let C=1;C<T;C++)m[_=S+C]||(m[_]=0),m[S+C]++,h++;if(m[S]>0&&(f-=m[S],m[S]=0),p<l.length-1&&(h+=b>f?f:b),p===l.length-1){const C=t.column-h%t.column;c.push(a(g,C,f,!0)),u.push(c);return}b<f?(f-=b,c.push(g)):(c.push(a(g,b,f)),u.push(c),f=t.column,c=[])}),u};return(l,u)=>(x(),j("div",{class:M(d(i))},[l.title||l.extra||l.$slots.title||l.$slots.extra?(x(),j("div",{key:0,class:M(d(n).e("header"))},[O("div",{class:M(d(n).e("title"))},[fe(l.$slots,"title",{},()=>[Te(ce(l.title),1)])],2),O("div",{class:M(d(n).e("extra"))},[fe(l.$slots,"extra",{},()=>[Te(ce(l.extra),1)])],2)],2)):ae("v-if",!0),O("div",{class:M(d(n).e("body"))},[O("table",{class:M([d(n).e("table"),d(n).is("bordered",l.border)])},[O("tbody",null,[(x(!0),j(Ke,null,bt(o(),(c,f)=>(x(),de(Pte,{key:f,row:c},null,8,["row"]))),128))])],2)],2)],2))}});var $te=Ue(Mte,[["__file","description.vue"]]);const Lte=Fe({label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}),w8=J({name:"ElDescriptionsItem",props:Lte}),Bte=Tt($te,{DescriptionsItem:w8}),Fte=kn(w8),Vte=Fe({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:oe([String,Array,Object])},zIndex:{type:oe([String,Number])}}),Ute={click:e=>e instanceof MouseEvent},Hte="overlay";var zte=J({name:"ElOverlay",props:Vte,emits:Ute,setup(e,{slots:t,emit:n}){const s=Re(Hte),r=l=>{n("click",l)},{onClick:i,onMousedown:a,onMouseup:o}=X1(e.customMaskEvent?void 0:r);return()=>e.mask?E("div",{class:[s.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:o},[fe(t,"default")],Br.STYLE|Br.CLASS|Br.PROPS,["onClick","onMouseup","onMousedown"]):ot("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[fe(t,"default")])}});const x2=zte,S8=Symbol("dialogInjectionKey"),T8=Fe({center:Boolean,alignCenter:Boolean,closeIcon:{type:ln},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),jte={close:()=>!0},qte=J({name:"ElDialogContent"}),Wte=J({...qte,props:T8,emits:jte,setup(e,{expose:t}){const n=e,{t:s}=zt(),{Close:r}=$1,{dialogRef:i,headerRef:a,bodyId:o,ns:l,style:u}=Xe(S8),{focusTrapRef:c}=Xe(u2),f=k(()=>[l.b(),l.is("fullscreen",n.fullscreen),l.is("draggable",n.draggable),l.is("align-center",n.alignCenter),{[l.m("center")]:n.center}]),h=Ug(c,i),m=k(()=>n.draggable),g=k(()=>n.overflow),{resetPosition:p}=uI(i,a,m,g);return t({resetPosition:p}),(v,y)=>(x(),j("div",{ref:d(h),class:M(d(f)),style:st(d(u)),tabindex:"-1"},[O("header",{ref_key:"headerRef",ref:a,class:M([d(l).e("header"),{"show-close":v.showClose}])},[fe(v.$slots,"header",{},()=>[O("span",{role:"heading","aria-level":v.ariaLevel,class:M(d(l).e("title"))},ce(v.title),11,["aria-level"])]),v.showClose?(x(),j("button",{key:0,"aria-label":d(s)("el.dialog.close"),class:M(d(l).e("headerbtn")),type:"button",onClick:_=>v.$emit("close")},[E(d(tt),{class:M(d(l).e("close"))},{default:P(()=>[(x(),de(Rt(v.closeIcon||d(r))))]),_:1},8,["class"])],10,["aria-label","onClick"])):ae("v-if",!0)],2),O("div",{id:d(o),class:M(d(l).e("body"))},[fe(v.$slots,"default")],10,["id"]),v.$slots.footer?(x(),j("footer",{key:0,class:M(d(l).e("footer"))},[fe(v.$slots,"footer")],2)):ae("v-if",!0)],6))}});var Kte=Ue(Wte,[["__file","dialog-content.vue"]]);const C8=Fe({...T8,appendToBody:Boolean,appendTo:{type:oe([String,Object]),default:"body"},beforeClose:{type:oe(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"}}),E8={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[At]:e=>In(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},x8=(e,t)=>{var n;const r=Ot().emit,{nextZIndex:i}=Dc();let a="";const o=ys(),l=ys(),u=q(!1),c=q(!1),f=q(!1),h=q((n=e.zIndex)!=null?n:i());let m,g;const p=Gg("namespace",Xd),v=k(()=>{const X={},B=`--${p.value}-dialog`;return e.fullscreen||(e.top&&(X[`${B}-margin-top`]=e.top),e.width&&(X[`${B}-width`]=Nn(e.width))),X}),y=k(()=>e.alignCenter?{display:"flex"}:{});function _(){r("opened")}function b(){r("closed"),r(At,!1),e.destroyOnClose&&(f.value=!1)}function T(){r("close")}function S(){g==null||g(),m==null||m(),e.openDelay&&e.openDelay>0?{stop:m}=Dl(()=>$(),e.openDelay):$()}function C(){m==null||m(),g==null||g(),e.closeDelay&&e.closeDelay>0?{stop:g}=Dl(()=>L(),e.closeDelay):L()}function D(){function X(B){B||(c.value=!0,u.value=!1)}e.beforeClose?e.beforeClose(X):C()}function N(){e.closeOnClickModal&&D()}function $(){Ht&&(u.value=!0)}function L(){u.value=!1}function z(){r("openAutoFocus")}function U(){r("closeAutoFocus")}function W(X){var B;((B=X.detail)==null?void 0:B.focusReason)==="pointer"&&X.preventDefault()}e.lockScroll&&U1(u);function K(){e.closeOnPressEscape&&D()}return xe(()=>e.modelValue,X=>{X?(c.value=!1,S(),f.value=!0,h.value=X3(e.zIndex)?i():h.value++,it(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):u.value&&C()}),xe(()=>e.fullscreen,X=>{t.value&&(X?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),gt(()=>{e.modelValue&&(u.value=!0,f.value=!0,S())}),{afterEnter:_,afterLeave:b,beforeLeave:T,handleClose:D,onModalClick:N,close:C,doClose:L,onOpenAutoFocus:z,onCloseAutoFocus:U,onCloseRequested:K,onFocusoutPrevented:W,titleId:o,bodyId:l,closed:c,style:v,overlayDialogStyle:y,rendered:f,visible:u,zIndex:h}},Gte=J({name:"ElDialog",inheritAttrs:!1}),Yte=J({...Gte,props:C8,emits:E8,setup(e,{expose:t}){const n=e,s=os();yo({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},k(()=>!!s.title));const r=Re("dialog"),i=q(),a=q(),o=q(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:h,rendered:m,zIndex:g,afterEnter:p,afterLeave:v,beforeLeave:y,handleClose:_,onModalClick:b,onOpenAutoFocus:T,onCloseAutoFocus:S,onCloseRequested:C,onFocusoutPrevented:D}=x8(n,i);Mt(S8,{dialogRef:i,headerRef:a,bodyId:c,ns:r,rendered:m,style:f});const N=X1(b),$=k(()=>n.draggable&&!n.fullscreen);return t({visible:l,dialogContentRef:o,resetPosition:()=>{var z;(z=o.value)==null||z.resetPosition()}}),(z,U)=>(x(),de(d(Rc),{to:z.appendTo,disabled:z.appendTo!=="body"?!1:!z.appendToBody},{default:P(()=>[E(Wn,{name:"dialog-fade",onAfterEnter:d(p),onAfterLeave:d(v),onBeforeLeave:d(y),persisted:""},{default:P(()=>[yt(E(d(x2),{"custom-mask-event":"",mask:z.modal,"overlay-class":z.modalClass,"z-index":d(g)},{default:P(()=>[O("div",{role:"dialog","aria-modal":"true","aria-label":z.title||void 0,"aria-labelledby":z.title?void 0:d(u),"aria-describedby":d(c),class:M(`${d(r).namespace.value}-overlay-dialog`),style:st(d(h)),onClick:d(N).onClick,onMousedown:d(N).onMousedown,onMouseup:d(N).onMouseup},[E(d(yh),{loop:"",trapped:d(l),"focus-start-el":"container",onFocusAfterTrapped:d(T),onFocusAfterReleased:d(S),onFocusoutPrevented:d(D),onReleaseRequested:d(C)},{default:P(()=>[d(m)?(x(),de(Kte,Nt({key:0,ref_key:"dialogContentRef",ref:o},z.$attrs,{center:z.center,"align-center":z.alignCenter,"close-icon":z.closeIcon,draggable:d($),overflow:z.overflow,fullscreen:z.fullscreen,"show-close":z.showClose,title:z.title,"aria-level":z.headerAriaLevel,onClose:d(_)}),Gr({header:P(()=>[z.$slots.title?fe(z.$slots,"title",{key:1}):fe(z.$slots,"header",{key:0,close:d(_),titleId:d(u),titleClass:d(r).e("title")})]),default:P(()=>[fe(z.$slots,"default")]),_:2},[z.$slots.footer?{name:"footer",fn:P(()=>[fe(z.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):ae("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,["aria-label","aria-labelledby","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["mask","overlay-class","z-index"]),[[Bt,d(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var Xte=Ue(Yte,[["__file","dialog.vue"]]);const Mc=Tt(Xte),Qte=Fe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:oe(String),default:"solid"}}),Jte=J({name:"ElDivider"}),Zte=J({...Jte,props:Qte,setup(e){const t=e,n=Re("divider"),s=k(()=>n.cssVar({"border-style":t.borderStyle}));return(r,i)=>(x(),j("div",{class:M([d(n).b(),d(n).m(r.direction)]),style:st(d(s)),role:"separator"},[r.$slots.default&&r.direction!=="vertical"?(x(),j("div",{key:0,class:M([d(n).e("text"),d(n).is(r.contentPosition)])},[fe(r.$slots,"default")],2)):ae("v-if",!0)],6))}});var ene=Ue(Zte,[["__file","divider.vue"]]);const k8=Tt(ene),tne=Fe({...C8,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0},headerAriaLevel:{type:String,default:"2"}}),nne=E8,sne=J({name:"ElDrawer",inheritAttrs:!1}),rne=J({...sne,props:tne,emits:nne,setup(e,{expose:t}){const n=e,s=os();yo({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},k(()=>!!s.title));const r=q(),i=q(),a=Re("drawer"),{t:o}=zt(),{afterEnter:l,afterLeave:u,beforeLeave:c,visible:f,rendered:h,titleId:m,bodyId:g,zIndex:p,onModalClick:v,onOpenAutoFocus:y,onCloseAutoFocus:_,onFocusoutPrevented:b,onCloseRequested:T,handleClose:S}=x8(n,r),C=k(()=>n.direction==="rtl"||n.direction==="ltr"),D=k(()=>Nn(n.size));return t({handleClose:S,afterEnter:l,afterLeave:u}),(N,$)=>(x(),de(d(Rc),{to:N.appendTo,disabled:N.appendTo!=="body"?!1:!N.appendToBody},{default:P(()=>[E(Wn,{name:d(a).b("fade"),onAfterEnter:d(l),onAfterLeave:d(u),onBeforeLeave:d(c),persisted:""},{default:P(()=>[yt(E(d(x2),{mask:N.modal,"overlay-class":N.modalClass,"z-index":d(p),onClick:d(v)},{default:P(()=>[E(d(yh),{loop:"",trapped:d(f),"focus-trap-el":r.value,"focus-start-el":i.value,onFocusAfterTrapped:d(y),onFocusAfterReleased:d(_),onFocusoutPrevented:d(b),onReleaseRequested:d(T)},{default:P(()=>[O("div",Nt({ref_key:"drawerRef",ref:r,"aria-modal":"true","aria-label":N.title||void 0,"aria-labelledby":N.title?void 0:d(m),"aria-describedby":d(g)},N.$attrs,{class:[d(a).b(),N.direction,d(f)&&"open"],style:d(C)?"width: "+d(D):"height: "+d(D),role:"dialog",onClick:ft(()=>{},["stop"])}),[O("span",{ref_key:"focusStartRef",ref:i,class:M(d(a).e("sr-focus")),tabindex:"-1"},null,2),N.withHeader?(x(),j("header",{key:0,class:M(d(a).e("header"))},[N.$slots.title?fe(N.$slots,"title",{key:1},()=>[ae(" DEPRECATED SLOT ")]):fe(N.$slots,"header",{key:0,close:d(S),titleId:d(m),titleClass:d(a).e("title")},()=>[N.$slots.title?ae("v-if",!0):(x(),j("span",{key:0,id:d(m),role:"heading","aria-level":N.headerAriaLevel,class:M(d(a).e("title"))},ce(N.title),11,["id","aria-level"]))]),N.showClose?(x(),j("button",{key:2,"aria-label":d(o)("el.drawer.close"),class:M(d(a).e("close-btn")),type:"button",onClick:d(S)},[E(d(tt),{class:M(d(a).e("close"))},{default:P(()=>[E(d(_i))]),_:1},8,["class"])],10,["aria-label","onClick"])):ae("v-if",!0)],2)):ae("v-if",!0),d(h)?(x(),j("div",{key:1,id:d(g),class:M(d(a).e("body"))},[fe(N.$slots,"default")],10,["id"])):ae("v-if",!0),N.$slots.footer?(x(),j("div",{key:2,class:M(d(a).e("footer"))},[fe(N.$slots,"footer")],2)):ae("v-if",!0)],16,["aria-label","aria-labelledby","aria-describedby","onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[Bt,d(f)]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])]),_:3},8,["to","disabled"]))}});var ine=Ue(rne,[["__file","drawer.vue"]]);const ane=Tt(ine),one=J({inheritAttrs:!1});function lne(e,t,n,s,r,i){return fe(e.$slots,"default")}var une=Ue(one,[["render",lne],["__file","collection.vue"]]);const cne=J({name:"ElCollectionItem",inheritAttrs:!1});function dne(e,t,n,s,r,i){return fe(e.$slots,"default")}var fne=Ue(cne,[["render",dne],["__file","collection-item.vue"]]);const A8="data-el-collection-item",I8=e=>{const t=`El${e}Collection`,n=`${t}Item`,s=Symbol(t),r=Symbol(n),i={...une,name:t,setup(){const o=q(null),l=new Map;Mt(s,{itemMap:l,getItems:()=>{const c=d(o);if(!c)return[];const f=Array.from(c.querySelectorAll(`[${A8}]`));return[...l.values()].sort((m,g)=>f.indexOf(m.ref)-f.indexOf(g.ref))},collectionRef:o})}},a={...fne,name:n,setup(o,{attrs:l}){const u=q(null),c=Xe(s,void 0);Mt(r,{collectionItemRef:u}),gt(()=>{const f=d(u);f&&c.itemMap.set(f,{ref:f,...l})}),un(()=>{const f=d(u);c.itemMap.delete(f)})}};return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:r,ElCollection:i,ElCollectionItem:a}},hne=Fe({style:{type:oe([String,Array,Object])},currentTabId:{type:oe(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:oe(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:pne,ElCollectionItem:mne,COLLECTION_INJECTION_KEY:k2,COLLECTION_ITEM_INJECTION_KEY:gne}=I8("RovingFocusGroup"),A2=Symbol("elRovingFocusGroup"),D8=Symbol("elRovingFocusGroupItem"),vne={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},yne=(e,t)=>{if(t!=="rtl")return e;switch(e){case at.right:return at.left;case at.left:return at.right;default:return e}},bne=(e,t,n)=>{const s=yne(e.key,n);if(!(t==="vertical"&&[at.left,at.right].includes(s))&&!(t==="horizontal"&&[at.up,at.down].includes(s)))return vne[s]},_ne=(e,t)=>e.map((n,s)=>e[(s+t)%e.length]),I2=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},JE="currentTabIdChange",ZE="rovingFocusGroup.entryFocus",wne={bubbles:!1,cancelable:!0},Sne=J({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:hne,emits:[JE,"entryFocus"],setup(e,{emit:t}){var n;const s=q((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),r=q(!1),i=q(!1),a=q(null),{getItems:o}=Xe(k2,void 0),l=k(()=>[{outline:"none"},e.style]),u=p=>{t(JE,p)},c=()=>{r.value=!0},f=On(p=>{var v;(v=e.onMousedown)==null||v.call(e,p)},()=>{i.value=!0}),h=On(p=>{var v;(v=e.onFocus)==null||v.call(e,p)},p=>{const v=!d(i),{target:y,currentTarget:_}=p;if(y===_&&v&&!d(r)){const b=new Event(ZE,wne);if(_==null||_.dispatchEvent(b),!b.defaultPrevented){const T=o().filter($=>$.focusable),S=T.find($=>$.active),C=T.find($=>$.id===d(s)),N=[S,C,...T].filter(Boolean).map($=>$.ref);I2(N)}}i.value=!1}),m=On(p=>{var v;(v=e.onBlur)==null||v.call(e,p)},()=>{r.value=!1}),g=(...p)=>{t("entryFocus",...p)};Mt(A2,{currentTabbedId:Ul(s),loop:nn(e,"loop"),tabIndex:k(()=>d(r)?-1:0),rovingFocusGroupRef:a,rovingFocusGroupRootStyle:l,orientation:nn(e,"orientation"),dir:nn(e,"dir"),onItemFocus:u,onItemShiftTab:c,onBlur:m,onFocus:h,onMousedown:f}),xe(()=>e.currentTabId,p=>{s.value=p??null}),an(a,ZE,g)}});function Tne(e,t,n,s,r,i){return fe(e.$slots,"default")}var Cne=Ue(Sne,[["render",Tne],["__file","roving-focus-group-impl.vue"]]);const Ene=J({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:pne,ElRovingFocusGroupImpl:Cne}});function xne(e,t,n,s,r,i){const a=Dt("el-roving-focus-group-impl"),o=Dt("el-focus-group-collection");return x(),de(o,null,{default:P(()=>[E(a,di(So(e.$attrs)),{default:P(()=>[fe(e.$slots,"default")]),_:3},16)]),_:3})}var kne=Ue(Ene,[["render",xne],["__file","roving-focus-group.vue"]]);const Ane=J({components:{ElRovingFocusCollectionItem:mne},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:s,onItemFocus:r,onItemShiftTab:i}=Xe(A2,void 0),{getItems:a}=Xe(k2,void 0),o=ys(),l=q(null),u=On(m=>{t("mousedown",m)},m=>{e.focusable?r(d(o)):m.preventDefault()}),c=On(m=>{t("focus",m)},()=>{r(d(o))}),f=On(m=>{t("keydown",m)},m=>{const{key:g,shiftKey:p,target:v,currentTarget:y}=m;if(g===at.tab&&p){i();return}if(v!==y)return;const _=bne(m);if(_){m.preventDefault();let T=a().filter(S=>S.focusable).map(S=>S.ref);switch(_){case"last":{T.reverse();break}case"prev":case"next":{_==="prev"&&T.reverse();const S=T.indexOf(y);T=s.value?_ne(T,S+1):T.slice(S+1);break}}it(()=>{I2(T)})}}),h=k(()=>n.value===d(o));return Mt(D8,{rovingFocusGroupItemRef:l,tabIndex:k(()=>d(h)?0:-1),handleMousedown:u,handleFocus:c,handleKeydown:f}),{id:o,handleKeydown:f,handleFocus:c,handleMousedown:u}}});function Ine(e,t,n,s,r,i){const a=Dt("el-roving-focus-collection-item");return x(),de(a,{id:e.id,focusable:e.focusable,active:e.active},{default:P(()=>[fe(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var Dne=Ue(Ane,[["render",Ine],["__file","roving-focus-item.vue"]]);const Qp=Fe({trigger:Pf.trigger,effect:{...us.effect,default:"light"},type:{type:oe(String)},placement:{type:oe(String),default:"bottom"},popperOptions:{type:oe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:oe([Number,String]),default:0},maxHeight:{type:oe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:oe(Object)},teleported:us.teleported}),O8=Fe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:ln}}),One=Fe({onKeydown:{type:oe(Function)}}),Pne=[at.down,at.pageDown,at.home],P8=[at.up,at.pageUp,at.end],Rne=[...Pne,...P8],{ElCollection:Nne,ElCollectionItem:Mne,COLLECTION_INJECTION_KEY:$ne,COLLECTION_ITEM_INJECTION_KEY:Lne}=I8("Dropdown"),ev=Symbol("elDropdown"),{ButtonGroup:Bne}=mn,Fne=J({name:"ElDropdown",components:{ElButton:mn,ElButtonGroup:Bne,ElScrollbar:aa,ElDropdownCollection:Nne,ElTooltip:is,ElRovingFocusGroup:kne,ElOnlyChild:JI,ElIcon:tt,ArrowDown:sa},props:Qp,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=Ot(),s=Re("dropdown"),{t:r}=zt(),i=q(),a=q(),o=q(null),l=q(null),u=q(null),c=q(null),f=q(!1),h=[at.enter,at.space,at.down],m=k(()=>({maxHeight:Nn(e.maxHeight)})),g=k(()=>[s.m(S.value)]),p=k(()=>Ds(e.trigger)),v=ys().value,y=k(()=>e.id||v);xe([i,p],([Q,Y],[F])=>{var H,Z,se;(H=F==null?void 0:F.$el)!=null&&H.removeEventListener&&F.$el.removeEventListener("pointerenter",D),(Z=Q==null?void 0:Q.$el)!=null&&Z.removeEventListener&&Q.$el.removeEventListener("pointerenter",D),(se=Q==null?void 0:Q.$el)!=null&&se.addEventListener&&Y.includes("hover")&&Q.$el.addEventListener("pointerenter",D)},{immediate:!0}),un(()=>{var Q,Y;(Y=(Q=i.value)==null?void 0:Q.$el)!=null&&Y.removeEventListener&&i.value.$el.removeEventListener("pointerenter",D)});function _(){b()}function b(){var Q;(Q=o.value)==null||Q.onClose()}function T(){var Q;(Q=o.value)==null||Q.onOpen()}const S=Kn();function C(...Q){t("command",...Q)}function D(){var Q,Y;(Y=(Q=i.value)==null?void 0:Q.$el)==null||Y.focus()}function N(){}function $(){const Q=d(l);p.value.includes("hover")&&(Q==null||Q.focus()),c.value=null}function L(Q){c.value=Q}function z(Q){f.value||(Q.preventDefault(),Q.stopImmediatePropagation())}function U(){t("visible-change",!0)}function W(Q){(Q==null?void 0:Q.type)==="keydown"&&l.value.focus()}function K(){t("visible-change",!1)}return Mt(ev,{contentRef:l,role:k(()=>e.role),triggerId:y,isUsingKeyboard:f,onItemEnter:N,onItemLeave:$}),Mt("elDropdown",{instance:n,dropdownSize:S,handleClick:_,commandHandler:C,trigger:nn(e,"trigger"),hideOnClick:nn(e,"hideOnClick")}),{t:r,ns:s,scrollbar:u,wrapStyle:m,dropdownTriggerKls:g,dropdownSize:S,triggerId:y,triggerKeys:h,currentTabId:c,handleCurrentTabIdChange:L,handlerMainButtonClick:Q=>{t("click",Q)},handleEntryFocus:z,handleClose:b,handleOpen:T,handleBeforeShowTooltip:U,handleShowTooltip:W,handleBeforeHideTooltip:K,onFocusAfterTrapped:Q=>{var Y,F;Q.preventDefault(),(F=(Y=l.value)==null?void 0:Y.focus)==null||F.call(Y,{preventScroll:!0})},popperRef:o,contentRef:l,triggeringElementRef:i,referenceElementRef:a}}});function Vne(e,t,n,s,r,i){var a;const o=Dt("el-dropdown-collection"),l=Dt("el-roving-focus-group"),u=Dt("el-scrollbar"),c=Dt("el-only-child"),f=Dt("el-tooltip"),h=Dt("el-button"),m=Dt("arrow-down"),g=Dt("el-icon"),p=Dt("el-button-group");return x(),j("div",{class:M([e.ns.b(),e.ns.is("disabled",e.disabled)])},[E(f,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(a=e.referenceElementRef)==null?void 0:a.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},Gr({content:P(()=>[E(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:P(()=>[E(l,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:P(()=>[E(o,null,{default:P(()=>[fe(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:P(()=>[E(c,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:P(()=>[fe(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(x(),de(p,{key:0},{default:P(()=>[E(h,Nt({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:P(()=>[fe(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),E(h,Nt({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:P(()=>[E(g,{class:M(e.ns.e("icon"))},{default:P(()=>[E(m)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):ae("v-if",!0)],2)}var Une=Ue(Fne,[["render",Vne],["__file","dropdown.vue"]]);const Hne=J({name:"DropdownItemImpl",components:{ElIcon:tt},props:O8,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Re("dropdown"),{role:s}=Xe(ev,void 0),{collectionItemRef:r}=Xe(Lne,void 0),{collectionItemRef:i}=Xe(gne,void 0),{rovingFocusGroupItemRef:a,tabIndex:o,handleFocus:l,handleKeydown:u,handleMousedown:c}=Xe(D8,void 0),f=Ug(r,i,a),h=k(()=>s.value==="menu"?"menuitem":s.value==="navigation"?"link":"button"),m=On(g=>{const{code:p}=g;if(p===at.enter||p===at.space)return g.preventDefault(),g.stopImmediatePropagation(),t("clickimpl",g),!0},u);return{ns:n,itemRef:f,dataset:{[A8]:""},role:h,tabIndex:o,handleFocus:l,handleKeydown:m,handleMousedown:c}}});function zne(e,t,n,s,r,i){const a=Dt("el-icon");return x(),j(Ke,null,[e.divided?(x(),j("li",{key:0,role:"separator",class:M(e.ns.bem("menu","item","divided"))},null,2)):ae("v-if",!0),O("li",Nt({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:o=>e.$emit("clickimpl",o),onFocus:e.handleFocus,onKeydown:ft(e.handleKeydown,["self"]),onMousedown:e.handleMousedown,onPointermove:o=>e.$emit("pointermove",o),onPointerleave:o=>e.$emit("pointerleave",o)}),[e.icon?(x(),de(a,{key:0},{default:P(()=>[(x(),de(Rt(e.icon)))]),_:1})):ae("v-if",!0),fe(e.$slots,"default")],16,["aria-disabled","tabindex","role","onClick","onFocus","onKeydown","onMousedown","onPointermove","onPointerleave"])],64)}var jne=Ue(Hne,[["render",zne],["__file","dropdown-item-impl.vue"]]);const R8=()=>{const e=Xe("elDropdown",{}),t=k(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},qne=J({name:"ElDropdownItem",components:{ElDropdownCollectionItem:Mne,ElRovingFocusItem:Dne,ElDropdownItemImpl:jne},inheritAttrs:!1,props:O8,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:s}=R8(),r=Ot(),i=q(null),a=k(()=>{var m,g;return(g=(m=d(i))==null?void 0:m.textContent)!=null?g:""}),{onItemEnter:o,onItemLeave:l}=Xe(ev,void 0),u=On(m=>(t("pointermove",m),m.defaultPrevented),XT(m=>{if(e.disabled){l(m);return}const g=m.currentTarget;g===document.activeElement||g.contains(document.activeElement)||(o(m),m.defaultPrevented||g==null||g.focus())})),c=On(m=>(t("pointerleave",m),m.defaultPrevented),XT(l)),f=On(m=>{if(!e.disabled)return t("click",m),m.type!=="keydown"&&m.defaultPrevented},m=>{var g,p,v;if(e.disabled){m.stopImmediatePropagation();return}(g=s==null?void 0:s.hideOnClick)!=null&&g.value&&((p=s.handleClick)==null||p.call(s)),(v=s.commandHandler)==null||v.call(s,e.command,r,m)}),h=k(()=>({...e,...n}));return{handleClick:f,handlePointerMove:u,handlePointerLeave:c,textContent:a,propsAndAttrs:h}}});function Wne(e,t,n,s,r,i){var a;const o=Dt("el-dropdown-item-impl"),l=Dt("el-roving-focus-item"),u=Dt("el-dropdown-collection-item");return x(),de(u,{disabled:e.disabled,"text-value":(a=e.textValue)!=null?a:e.textContent},{default:P(()=>[E(l,{focusable:!e.disabled},{default:P(()=>[E(o,Nt(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:P(()=>[fe(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var N8=Ue(qne,[["render",Wne],["__file","dropdown-item.vue"]]);const Kne=J({name:"ElDropdownMenu",props:One,setup(e){const t=Re("dropdown"),{_elDropdownSize:n}=R8(),s=n.value,{focusTrapRef:r,onKeydown:i}=Xe(u2,void 0),{contentRef:a,role:o,triggerId:l}=Xe(ev,void 0),{collectionRef:u,getItems:c}=Xe($ne,void 0),{rovingFocusGroupRef:f,rovingFocusGroupRootStyle:h,tabIndex:m,onBlur:g,onFocus:p,onMousedown:v}=Xe(A2,void 0),{collectionRef:y}=Xe(k2,void 0),_=k(()=>[t.b("menu"),t.bm("menu",s==null?void 0:s.value)]),b=Ug(a,u,r,f,y),T=On(C=>{var D;(D=e.onKeydown)==null||D.call(e,C)},C=>{const{currentTarget:D,code:N,target:$}=C;if(D.contains($),at.tab===N&&C.stopImmediatePropagation(),C.preventDefault(),$!==d(a)||!Rne.includes(N))return;const z=c().filter(U=>!U.disabled).map(U=>U.ref);P8.includes(N)&&z.reverse(),I2(z)});return{size:s,rovingFocusGroupRootStyle:h,tabIndex:m,dropdownKls:_,role:o,triggerId:l,dropdownListWrapperRef:b,handleKeydown:C=>{T(C),i(C)},onBlur:g,onFocus:p,onMousedown:v}}});function Gne(e,t,n,s,r,i){return x(),j("ul",{ref:e.dropdownListWrapperRef,class:M(e.dropdownKls),style:st(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:e.onBlur,onFocus:e.onFocus,onKeydown:ft(e.handleKeydown,["self"]),onMousedown:ft(e.onMousedown,["self"])},[fe(e.$slots,"default")],46,["role","aria-labelledby","onBlur","onFocus","onKeydown","onMousedown"])}var M8=Ue(Kne,[["render",Gne],["__file","dropdown-menu.vue"]]);const $8=Tt(Une,{DropdownItem:N8,DropdownMenu:M8}),L8=kn(N8),B8=kn(M8),Yne=J({name:"ImgEmpty"}),Xne=J({...Yne,setup(e){const t=Re("empty"),n=ys();return(s,r)=>(x(),j("svg",{viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[O("defs",null,[O("linearGradient",{id:`linearGradient-1-${d(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[O("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),O("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),O("linearGradient",{id:`linearGradient-2-${d(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[O("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,["stop-color"]),O("stop",{"stop-color":`var(${d(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,["stop-color"])],8,["id"]),O("rect",{id:`path-3-${d(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,["id"])]),O("g",{id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[O("g",{id:"B-type",transform:"translate(-1268.000000, -535.000000)"},[O("g",{id:"Group-2",transform:"translate(1268.000000, 535.000000)"},[O("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${d(t).cssVarBlockName("fill-color-3")})`},null,8,["fill"]),O("polygon",{id:"Rectangle-Copy-14",fill:`var(${d(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,["fill"]),O("g",{id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},[O("polygon",{id:"Rectangle-Copy-10",fill:`var(${d(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,["fill"]),O("polygon",{id:"Rectangle-Copy-11",fill:`var(${d(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,["fill"]),O("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${d(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,["fill"]),O("polygon",{id:"Rectangle-Copy-13",fill:`var(${d(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,["fill"])]),O("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${d(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,["fill"]),O("g",{id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},[O("use",{id:"Mask",fill:`var(${d(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${d(n)}`},null,8,["fill","xlink:href"]),O("polygon",{id:"Rectangle-Copy",fill:`var(${d(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${d(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,["fill","mask"])]),O("polygon",{id:"Rectangle-Copy-18",fill:`var(${d(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,["fill"])])])])]))}});var Qne=Ue(Xne,[["__file","img-empty.vue"]]);const Jne=Fe({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),Zne=J({name:"ElEmpty"}),ese=J({...Zne,props:Jne,setup(e){const t=e,{t:n}=zt(),s=Re("empty"),r=k(()=>t.description||n("el.table.emptyText")),i=k(()=>({width:Nn(t.imageSize)}));return(a,o)=>(x(),j("div",{class:M(d(s).b())},[O("div",{class:M(d(s).e("image")),style:st(d(i))},[a.image?(x(),j("img",{key:0,src:a.image,ondragstart:"return false"},null,8,["src"])):fe(a.$slots,"image",{key:1},()=>[E(Qne)])],6),O("div",{class:M(d(s).e("description"))},[a.$slots.description?fe(a.$slots,"description",{key:0}):(x(),j("p",{key:1},ce(d(r)),1))],2),a.$slots.default?(x(),j("div",{key:0,class:M(d(s).e("bottom"))},[fe(a.$slots,"default")],2)):ae("v-if",!0)],2))}});var tse=Ue(ese,[["__file","empty.vue"]]);const $c=Tt(tse),nse=Fe({urlList:{type:oe(Array),default:()=>xn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:oe(String)}}),sse={close:()=>!0,switch:e=>ut(e),rotate:e=>ut(e)},rse=J({name:"ElImageViewer"}),ise=J({...rse,props:nse,emits:sse,setup(e,{expose:t,emit:n}){var s;const r=e,i={CONTAIN:{name:"contain",icon:mo(wj)},ORIGINAL:{name:"original",icon:mo(Gj)}},{t:a}=zt(),o=Re("image-viewer"),{nextZIndex:l}=Dc(),u=q(),c=q([]),f=yL(),h=q(!0),m=q(r.initialIndex),g=hn(i.CONTAIN),p=q({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),v=q((s=r.zIndex)!=null?s:l()),y=k(()=>{const{urlList:H}=r;return H.length<=1}),_=k(()=>m.value===0),b=k(()=>m.value===r.urlList.length-1),T=k(()=>r.urlList[m.value]),S=k(()=>[o.e("btn"),o.e("prev"),o.is("disabled",!r.infinite&&_.value)]),C=k(()=>[o.e("btn"),o.e("next"),o.is("disabled",!r.infinite&&b.value)]),D=k(()=>{const{scale:H,deg:Z,offsetX:se,offsetY:ne,enableTransition:we}=p.value;let De=se/H,Ee=ne/H;const te=Z*Math.PI/180,ge=Math.cos(te),pe=Math.sin(te);De=De*ge+Ee*pe,Ee=Ee*ge-se/H*pe;const Oe={transform:`scale(${H}) rotate(${Z}deg) translate(${De}px, ${Ee}px)`,transition:we?"transform .3s":""};return g.value.name===i.CONTAIN.name&&(Oe.maxWidth=Oe.maxHeight="100%"),Oe});function N(){L(),n("close")}function $(){const H=_l(se=>{switch(se.code){case at.esc:r.closeOnPressEscape&&N();break;case at.space:X();break;case at.left:Q();break;case at.up:F("zoomIn");break;case at.right:Y();break;case at.down:F("zoomOut");break}}),Z=_l(se=>{const ne=se.deltaY||se.deltaX;F(ne<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});f.run(()=>{an(document,"keydown",H),an(document,"wheel",Z)})}function L(){f.stop()}function z(){h.value=!1}function U(H){h.value=!1,H.target.alt=a("el.image.error")}function W(H){if(h.value||H.button!==0||!u.value)return;p.value.enableTransition=!1;const{offsetX:Z,offsetY:se}=p.value,ne=H.pageX,we=H.pageY,De=_l(te=>{p.value={...p.value,offsetX:Z+te.pageX-ne,offsetY:se+te.pageY-we}}),Ee=an(document,"mousemove",De);an(document,"mouseup",()=>{Ee()}),H.preventDefault()}function K(){p.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function X(){if(h.value)return;const H=Xu(i),Z=Object.values(i),se=g.value.name,we=(Z.findIndex(De=>De.name===se)+1)%H.length;g.value=i[H[we]],K()}function B(H){const Z=r.urlList.length;m.value=(H+Z)%Z}function Q(){_.value&&!r.infinite||B(m.value-1)}function Y(){b.value&&!r.infinite||B(m.value+1)}function F(H,Z={}){if(h.value)return;const{minScale:se,maxScale:ne}=r,{zoomRate:we,rotateDeg:De,enableTransition:Ee}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...Z};switch(H){case"zoomOut":p.value.scale>se&&(p.value.scale=Number.parseFloat((p.value.scale/we).toFixed(3)));break;case"zoomIn":p.value.scale<ne&&(p.value.scale=Number.parseFloat((p.value.scale*we).toFixed(3)));break;case"clockwise":p.value.deg+=De,n("rotate",p.value.deg);break;case"anticlockwise":p.value.deg-=De,n("rotate",p.value.deg);break}p.value.enableTransition=Ee}return xe(T,()=>{it(()=>{const H=c.value[0];H!=null&&H.complete||(h.value=!0)})}),xe(m,H=>{K(),n("switch",H)}),gt(()=>{var H,Z;$(),(Z=(H=u.value)==null?void 0:H.focus)==null||Z.call(H)}),t({setActiveItem:B}),(H,Z)=>(x(),de(d(Rc),{to:"body",disabled:!H.teleported},{default:P(()=>[E(Wn,{name:"viewer-fade",appear:""},{default:P(()=>[O("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:M(d(o).e("wrapper")),style:st({zIndex:v.value})},[O("div",{class:M(d(o).e("mask")),onClick:ft(se=>H.hideOnClickModal&&N(),["self"])},null,10,["onClick"]),ae(" CLOSE "),O("span",{class:M([d(o).e("btn"),d(o).e("close")]),onClick:N},[E(d(tt),null,{default:P(()=>[E(d(_i))]),_:1})],2),ae(" ARROW "),d(y)?ae("v-if",!0):(x(),j(Ke,{key:0},[O("span",{class:M(d(S)),onClick:Q},[E(d(tt),null,{default:P(()=>[E(d(ko))]),_:1})],2),O("span",{class:M(d(C)),onClick:Y},[E(d(tt),null,{default:P(()=>[E(d(Gs))]),_:1})],2)],64)),ae(" ACTIONS "),O("div",{class:M([d(o).e("btn"),d(o).e("actions")])},[O("div",{class:M(d(o).e("actions__inner"))},[E(d(tt),{onClick:se=>F("zoomOut")},{default:P(()=>[E(d(_q))]),_:1},8,["onClick"]),E(d(tt),{onClick:se=>F("zoomIn")},{default:P(()=>[E(d(M1))]),_:1},8,["onClick"]),O("i",{class:M(d(o).e("actions__divider"))},null,2),E(d(tt),{onClick:X},{default:P(()=>[(x(),de(Rt(d(g).icon)))]),_:1}),O("i",{class:M(d(o).e("actions__divider"))},null,2),E(d(tt),{onClick:se=>F("anticlockwise")},{default:P(()=>[E(d(sI))]),_:1},8,["onClick"]),E(d(tt),{onClick:se=>F("clockwise")},{default:P(()=>[E(d(rI))]),_:1},8,["onClick"])],2)],2),ae(" CANVAS "),O("div",{class:M(d(o).e("canvas"))},[(x(!0),j(Ke,null,bt(H.urlList,(se,ne)=>yt((x(),j("img",{ref_for:!0,ref:we=>c.value[ne]=we,key:se,src:se,style:st(d(D)),class:M(d(o).e("img")),crossorigin:H.crossorigin,onLoad:z,onError:U,onMousedown:W},null,46,["src","crossorigin"])),[[Bt,ne===m.value]])),128))],2),fe(H.$slots,"default")],6)]),_:3})]),_:3},8,["disabled"]))}});var ase=Ue(ise,[["__file","image-viewer.vue"]]);const D2=Tt(ase),ose=Fe({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:oe([String,Object])},previewSrcList:{type:oe(Array),default:()=>xn([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},crossorigin:{type:oe(String)}}),lse={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>ut(e),close:()=>!0,show:()=>!0},use=J({name:"ElImage",inheritAttrs:!1}),cse=J({...use,props:ose,emits:lse,setup(e,{emit:t}){const n=e;let s="";const{t:r}=zt(),i=Re("image"),a=zl(),o=k(()=>xf(Object.entries(a).filter(([Y])=>/^(data-|on[A-Z])/i.test(Y)||["id","style"].includes(Y)))),l=F1({excludeListeners:!0,excludeKeys:k(()=>Object.keys(o.value))}),u=q(),c=q(!1),f=q(!0),h=q(!1),m=q(),g=q(),p=Ht&&"loading"in HTMLImageElement.prototype;let v,y;const _=k(()=>[i.e("inner"),T.value&&i.e("preview"),f.value&&i.is("loading")]),b=k(()=>{const{fit:Y}=n;return Ht&&Y?{objectFit:Y}:{}}),T=k(()=>{const{previewSrcList:Y}=n;return Array.isArray(Y)&&Y.length>0}),S=k(()=>{const{previewSrcList:Y,initialIndex:F}=n;let H=F;return F>Y.length-1&&(H=0),H}),C=k(()=>n.loading==="eager"?!1:!p&&n.loading==="lazy"||n.lazy),D=()=>{Ht&&(f.value=!0,c.value=!1,u.value=n.src)};function N(Y){f.value=!1,c.value=!1,t("load",Y)}function $(Y){f.value=!1,c.value=!0,t("error",Y)}function L(){pF(m.value,g.value)&&(D(),W())}const z=l3(L,200,!0);async function U(){var Y;if(!Ht)return;await it();const{scrollContainer:F}=n;Ir(F)?g.value=F:ht(F)&&F!==""?g.value=(Y=document.querySelector(F))!=null?Y:void 0:m.value&&(g.value=k1(m.value)),g.value&&(v=an(g,"scroll",z),setTimeout(()=>L(),100))}function W(){!Ht||!g.value||!z||(v==null||v(),g.value=void 0)}function K(Y){if(Y.ctrlKey){if(Y.deltaY<0)return Y.preventDefault(),!1;if(Y.deltaY>0)return Y.preventDefault(),!1}}function X(){T.value&&(y=an("wheel",K,{passive:!1}),s=document.body.style.overflow,document.body.style.overflow="hidden",h.value=!0,t("show"))}function B(){y==null||y(),document.body.style.overflow=s,h.value=!1,t("close")}function Q(Y){t("switch",Y)}return xe(()=>n.src,()=>{C.value?(f.value=!0,c.value=!1,W(),U()):D()}),gt(()=>{C.value?U():D()}),(Y,F)=>(x(),j("div",Nt({ref_key:"container",ref:m},d(o),{class:[d(i).b(),Y.$attrs.class]}),[c.value?fe(Y.$slots,"error",{key:0},()=>[O("div",{class:M(d(i).e("error"))},ce(d(r)("el.image.error")),3)]):(x(),j(Ke,{key:1},[u.value!==void 0?(x(),j("img",Nt({key:0},d(l),{src:u.value,loading:Y.loading,style:d(b),class:d(_),crossorigin:Y.crossorigin,onClick:X,onLoad:N,onError:$}),null,16,["src","loading","crossorigin"])):ae("v-if",!0),f.value?(x(),j("div",{key:1,class:M(d(i).e("wrapper"))},[fe(Y.$slots,"placeholder",{},()=>[O("div",{class:M(d(i).e("placeholder"))},null,2)])],2)):ae("v-if",!0)],64)),d(T)?(x(),j(Ke,{key:2},[h.value?(x(),de(d(D2),{key:0,"z-index":Y.zIndex,"initial-index":d(S),infinite:Y.infinite,"zoom-rate":Y.zoomRate,"min-scale":Y.minScale,"max-scale":Y.maxScale,"url-list":Y.previewSrcList,crossorigin:Y.crossorigin,"hide-on-click-modal":Y.hideOnClickModal,teleported:Y.previewTeleported,"close-on-press-escape":Y.closeOnPressEscape,onClose:B,onSwitch:Q},{default:P(()=>[Y.$slots.viewer?(x(),j("div",{key:0},[fe(Y.$slots,"viewer")])):ae("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","url-list","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):ae("v-if",!0)],64)):ae("v-if",!0)],16))}});var dse=Ue(cse,[["__file","image.vue"]]);const tv=Tt(dse),fse=Fe({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:ts,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||ut(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},..._s(["ariaLabel"])}),hse={[gn]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Ys]:e=>ut(e)||rs(e),[At]:e=>ut(e)||rs(e)},pse=J({name:"ElInputNumber"}),mse=J({...pse,props:fse,emits:hse,setup(e,{expose:t,emit:n}){const s=e,{t:r}=zt(),i=Re("input-number"),a=q(),o=Ct({currentValue:s.modelValue,userInput:null}),{formItem:l}=Bs(),u=k(()=>ut(s.modelValue)&&s.modelValue<=s.min),c=k(()=>ut(s.modelValue)&&s.modelValue>=s.max),f=k(()=>{const X=y(s.step);return An(s.precision)?Math.max(y(s.modelValue),X):(X>s.precision,s.precision)}),h=k(()=>s.controls&&s.controlsPosition==="right"),m=Kn(),g=Ls(),p=k(()=>{if(o.userInput!==null)return o.userInput;let X=o.currentValue;if(rs(X))return"";if(ut(X)){if(Number.isNaN(X))return"";An(s.precision)||(X=X.toFixed(s.precision))}return X}),v=(X,B)=>{if(An(B)&&(B=f.value),B===0)return Math.round(X);let Q=String(X);const Y=Q.indexOf(".");if(Y===-1||!Q.replace(".","").split("")[Y+B])return X;const Z=Q.length;return Q.charAt(Z-1)==="5"&&(Q=`${Q.slice(0,Math.max(0,Z-1))}6`),Number.parseFloat(Number(Q).toFixed(B))},y=X=>{if(rs(X))return 0;const B=X.toString(),Q=B.indexOf(".");let Y=0;return Q!==-1&&(Y=B.length-Q-1),Y},_=(X,B=1)=>ut(X)?v(X+s.step*B):o.currentValue,b=()=>{if(s.readonly||g.value||c.value)return;const X=Number(p.value)||0,B=_(X);C(B),n(Ys,o.currentValue),W()},T=()=>{if(s.readonly||g.value||u.value)return;const X=Number(p.value)||0,B=_(X,-1);C(B),n(Ys,o.currentValue),W()},S=(X,B)=>{const{max:Q,min:Y,step:F,precision:H,stepStrictly:Z,valueOnClear:se}=s;Q<Y&&es("InputNumber","min should not be greater than max.");let ne=Number(X);if(rs(X)||Number.isNaN(ne))return null;if(X===""){if(se===null)return null;ne=ht(se)?{min:Y,max:Q}[se]:se}return Z&&(ne=v(Math.round(ne/F)*F,H),ne!==X&&B&&n(At,ne)),An(H)||(ne=v(ne,H)),(ne>Q||ne<Y)&&(ne=ne>Q?Q:Y,B&&n(At,ne)),ne},C=(X,B=!0)=>{var Q;const Y=o.currentValue,F=S(X);if(!B){n(At,F);return}Y===F&&X||(o.userInput=null,n(At,F),Y!==F&&n(gn,F,Y),s.validateEvent&&((Q=l==null?void 0:l.validate)==null||Q.call(l,"change").catch(H=>void 0)),o.currentValue=F)},D=X=>{o.userInput=X;const B=X===""?null:Number(X);n(Ys,B),C(B,!1)},N=X=>{const B=X!==""?Number(X):"";(ut(B)&&!Number.isNaN(B)||X==="")&&C(B),W(),o.userInput=null},$=()=>{var X,B;(B=(X=a.value)==null?void 0:X.focus)==null||B.call(X)},L=()=>{var X,B;(B=(X=a.value)==null?void 0:X.blur)==null||B.call(X)},z=X=>{n("focus",X)},U=X=>{var B;o.userInput=null,n("blur",X),s.validateEvent&&((B=l==null?void 0:l.validate)==null||B.call(l,"blur").catch(Q=>void 0))},W=()=>{o.currentValue!==s.modelValue&&(o.currentValue=s.modelValue)},K=X=>{document.activeElement===X.target&&X.preventDefault()};return xe(()=>s.modelValue,(X,B)=>{const Q=S(X,!0);o.userInput===null&&Q!==B&&(o.currentValue=Q)},{immediate:!0}),gt(()=>{var X;const{min:B,max:Q,modelValue:Y}=s,F=(X=a.value)==null?void 0:X.input;if(F.setAttribute("role","spinbutton"),Number.isFinite(Q)?F.setAttribute("aria-valuemax",String(Q)):F.removeAttribute("aria-valuemax"),Number.isFinite(B)?F.setAttribute("aria-valuemin",String(B)):F.removeAttribute("aria-valuemin"),F.setAttribute("aria-valuenow",o.currentValue||o.currentValue===0?String(o.currentValue):""),F.setAttribute("aria-disabled",String(g.value)),!ut(Y)&&Y!=null){let H=Number(Y);Number.isNaN(H)&&(H=null),n(At,H)}F.addEventListener("wheel",K,{passive:!1})}),Na(()=>{var X,B;const Q=(X=a.value)==null?void 0:X.input;Q==null||Q.setAttribute("aria-valuenow",`${(B=o.currentValue)!=null?B:""}`)}),t({focus:$,blur:L}),(X,B)=>(x(),j("div",{class:M([d(i).b(),d(i).m(d(m)),d(i).is("disabled",d(g)),d(i).is("without-controls",!X.controls),d(i).is("controls-right",d(h))]),onDragstart:ft(()=>{},["prevent"])},[X.controls?yt((x(),j("span",{key:0,role:"button","aria-label":d(r)("el.inputNumber.decrease"),class:M([d(i).e("decrease"),d(i).is("disabled",d(u))]),onKeydown:rn(T,["enter"])},[fe(X.$slots,"decrease-icon",{},()=>[E(d(tt),null,{default:P(()=>[d(h)?(x(),de(d(sa),{key:0})):(x(),de(d(Rj),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[d(Om),T]]):ae("v-if",!0),X.controls?yt((x(),j("span",{key:1,role:"button","aria-label":d(r)("el.inputNumber.increase"),class:M([d(i).e("increase"),d(i).is("disabled",d(c))]),onKeydown:rn(b,["enter"])},[fe(X.$slots,"increase-icon",{},()=>[E(d(tt),null,{default:P(()=>[d(h)?(x(),de(d(Bg),{key:0})):(x(),de(d(R1),{key:1}))]),_:1})])],42,["aria-label","onKeydown"])),[[d(Om),b]]):ae("v-if",!0),E(d(Un),{id:X.id,ref_key:"input",ref:a,type:"number",step:X.step,"model-value":d(p),placeholder:X.placeholder,readonly:X.readonly,disabled:d(g),size:d(m),max:X.max,min:X.min,name:X.name,"aria-label":X.ariaLabel,"validate-event":!1,onKeydown:[rn(ft(b,["prevent"]),["up"]),rn(ft(T,["prevent"]),["down"])],onBlur:U,onFocus:z,onInput:D,onChange:N},Gr({_:2},[X.$slots.prefix?{name:"prefix",fn:P(()=>[fe(X.$slots,"prefix")])}:void 0,X.$slots.suffix?{name:"suffix",fn:P(()=>[fe(X.$slots,"suffix")])}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","onKeydown"])],42,["onDragstart"]))}});var gse=Ue(mse,[["__file","input-number.vue"]]);const _h=Tt(gse),vse=Fe({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:ln}}),yse={click:e=>e instanceof MouseEvent},bse=J({name:"ElLink"}),_se=J({...bse,props:vse,emits:yse,setup(e,{emit:t}){const n=e,s=Re("link"),r=k(()=>[s.b(),s.m(n.type),s.is("disabled",n.disabled),s.is("underline",n.underline&&!n.disabled)]);function i(a){n.disabled||t("click",a)}return(a,o)=>(x(),j("a",{class:M(d(r)),href:a.disabled||!a.href?void 0:a.href,target:a.disabled||!a.href?void 0:a.target,onClick:i},[a.icon?(x(),de(d(tt),{key:0},{default:P(()=>[(x(),de(Rt(a.icon)))]),_:1})):ae("v-if",!0),a.$slots.default?(x(),j("span",{key:1,class:M(d(s).e("inner"))},[fe(a.$slots,"default")],2)):ae("v-if",!0),a.$slots.icon?fe(a.$slots,"icon",{key:2}):ae("v-if",!0)],10,["href","target"]))}});var wse=Ue(_se,[["__file","link.vue"]]);const F8=Tt(wse);let Sse=class{constructor(t,n){this.parent=t,this.domNode=n,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",s=>{let r=!1;switch(s.code){case at.down:{this.gotoSubIndex(this.subIndex+1),r=!0;break}case at.up:{this.gotoSubIndex(this.subIndex-1),r=!0;break}case at.tab:{Hp(t,"mouseleave");break}case at.enter:case at.space:{r=!0,s.currentTarget.click();break}}return r&&(s.preventDefault(),s.stopPropagation()),!1})})}},Tse=class{constructor(t,n){this.domNode=t,this.submenu=null,this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new Sse(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case at.down:{Hp(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case at.up:{Hp(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case at.tab:{Hp(t.currentTarget,"mouseleave");break}case at.enter:case at.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}},Cse=class{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(s=>{s.nodeType===1&&new Tse(s,t)})}};const Ese=J({name:"ElMenuCollapseTransition",setup(){const e=Re("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,s){Vr(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",s()},onAfterEnter(n){Rs(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),or(n,e.m("collapse"))?(Rs(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Vr(n,e.m("collapse"))):(Vr(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Rs(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Vr(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function xse(e,t,n,s,r,i){return x(),de(Wn,Nt({mode:"out-in"},e.listeners),{default:P(()=>[fe(e.$slots,"default")]),_:3},16)}var kse=Ue(Ese,[["render",xse],["__file","menu-collapse-transition.vue"]]);function V8(e,t){const n=k(()=>{let r=e.parent;const i=[t.value];for(;r.type.name!=="ElMenu";)r.props.index&&i.unshift(r.props.index),r=r.parent;return i});return{parentMenu:k(()=>{let r=e.parent;for(;r&&!["ElMenu","ElSubMenu"].includes(r.type.name);)r=r.parent;return r}),indexPath:n}}function Ase(e){return k(()=>{const n=e.backgroundColor;return n?new dD(n).shade(20).toString():""})}const U8=(e,t)=>{const n=Re("menu");return k(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Ase(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},Ise=Fe({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:ln},expandOpenIcon:{type:ln},collapseCloseIcon:{type:ln},collapseOpenIcon:{type:ln}}),R0="ElSubMenu";var O2=J({name:R0,props:Ise,setup(e,{slots:t,expose:n}){const s=Ot(),{indexPath:r,parentMenu:i}=V8(s,k(()=>e.index)),a=Re("menu"),o=Re("sub-menu"),l=Xe("rootMenu");l||es(R0,"can not inject root menu");const u=Xe(`subMenu:${i.value.uid}`);u||es(R0,"can not inject sub menu");const c=q({}),f=q({});let h;const m=q(!1),g=q(),p=q(null),v=k(()=>N.value==="horizontal"&&_.value?"bottom-start":"right-start"),y=k(()=>N.value==="horizontal"&&_.value||N.value==="vertical"&&!l.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?C.value?e.expandOpenIcon:e.expandCloseIcon:sa:e.collapseCloseIcon&&e.collapseOpenIcon?C.value?e.collapseOpenIcon:e.collapseCloseIcon:Gs),_=k(()=>u.level===0),b=k(()=>{const H=e.teleported;return H===void 0?_.value:H}),T=k(()=>l.props.collapse?`${a.namespace.value}-zoom-in-left`:`${a.namespace.value}-zoom-in-top`),S=k(()=>N.value==="horizontal"&&_.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),C=k(()=>l.openedMenus.includes(e.index)),D=k(()=>{let H=!1;return Object.values(c.value).forEach(Z=>{Z.active&&(H=!0)}),Object.values(f.value).forEach(Z=>{Z.active&&(H=!0)}),H}),N=k(()=>l.props.mode),$=Ct({index:e.index,indexPath:r,active:D}),L=U8(l.props,u.level+1),z=k(()=>{var H;return(H=e.popperOffset)!=null?H:l.props.popperOffset}),U=k(()=>{var H;return(H=e.popperClass)!=null?H:l.props.popperClass}),W=k(()=>{var H;return(H=e.showTimeout)!=null?H:l.props.showTimeout}),K=k(()=>{var H;return(H=e.hideTimeout)!=null?H:l.props.hideTimeout}),X=()=>{var H,Z,se;return(se=(Z=(H=p.value)==null?void 0:H.popperRef)==null?void 0:Z.popperInstanceRef)==null?void 0:se.destroy()},B=H=>{H||X()},Q=()=>{l.props.menuTrigger==="hover"&&l.props.mode==="horizontal"||l.props.collapse&&l.props.mode==="vertical"||e.disabled||l.handleSubMenuClick({index:e.index,indexPath:r.value,active:D.value})},Y=(H,Z=W.value)=>{var se;if(H.type!=="focus"){if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"||e.disabled){u.mouseInChild.value=!0;return}u.mouseInChild.value=!0,h==null||h(),{stop:h}=Dl(()=>{l.openMenu(e.index,r.value)},Z),b.value&&((se=i.value.vnode.el)==null||se.dispatchEvent(new MouseEvent("mouseenter")))}},F=(H=!1)=>{var Z;if(l.props.menuTrigger==="click"&&l.props.mode==="horizontal"||!l.props.collapse&&l.props.mode==="vertical"){u.mouseInChild.value=!1;return}h==null||h(),u.mouseInChild.value=!1,{stop:h}=Dl(()=>!m.value&&l.closeMenu(e.index,r.value),K.value),b.value&&H&&((Z=u.handleMouseleave)==null||Z.call(u,!0))};xe(()=>l.props.collapse,H=>B(!!H));{const H=se=>{f.value[se.index]=se},Z=se=>{delete f.value[se.index]};Mt(`subMenu:${s.uid}`,{addSubMenu:H,removeSubMenu:Z,handleMouseleave:F,mouseInChild:m,level:u.level+1})}return n({opened:C}),gt(()=>{l.addSubMenu($),u.addSubMenu($)}),un(()=>{u.removeSubMenu($),l.removeSubMenu($)}),()=>{var H;const Z=[(H=t.title)==null?void 0:H.call(t),ot(tt,{class:o.e("icon-arrow"),style:{transform:C.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&l.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>ht(y.value)?ot(s.appContext.components[y.value]):ot(y.value)})],se=l.isMenuPopup?ot(is,{ref:p,visible:C.value,effect:"light",pure:!0,offset:z.value,showArrow:!1,persistent:!0,popperClass:U.value,placement:v.value,teleported:b.value,fallbackPlacements:S.value,transition:T.value,gpuAcceleration:!1},{content:()=>{var ne;return ot("div",{class:[a.m(N.value),a.m("popup-container"),U.value],onMouseenter:we=>Y(we,100),onMouseleave:()=>F(!0),onFocus:we=>Y(we,100)},[ot("ul",{class:[a.b(),a.m("popup"),a.m(`popup-${v.value}`)],style:L.value},[(ne=t.default)==null?void 0:ne.call(t)])])},default:()=>ot("div",{class:o.e("title"),onClick:Q},Z)}):ot(Ke,{},[ot("div",{class:o.e("title"),ref:g,onClick:Q},Z),ot(bh,{},{default:()=>{var ne;return yt(ot("ul",{role:"menu",class:[a.b(),a.m("inline")],style:L.value},[(ne=t.default)==null?void 0:ne.call(t)]),[[Bt,C.value]])}})]);return ot("li",{class:[o.b(),o.is("active",D.value),o.is("opened",C.value),o.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:C.value,onMouseenter:Y,onMouseleave:()=>F(),onFocus:Y},[se])}}});const Dse=Fe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:oe(Array),default:()=>xn([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:ln,default:()=>Bj},popperEffect:{type:oe(String),default:"dark"},popperClass:String,showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300}}),N0=e=>Array.isArray(e)&&e.every(t=>ht(t)),Ose={close:(e,t)=>ht(e)&&N0(t),open:(e,t)=>ht(e)&&N0(t),select:(e,t,n,s)=>ht(e)&&N0(t)&&Pt(n)&&(s===void 0||s instanceof Promise)};var Pse=J({name:"ElMenu",props:Dse,emits:Ose,setup(e,{emit:t,slots:n,expose:s}){const r=Ot(),i=r.appContext.config.globalProperties.$router,a=q(),o=Re("menu"),l=Re("sub-menu"),u=q(-1),c=q(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),f=q(e.defaultActive),h=q({}),m=q({}),g=k(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),p=()=>{const X=f.value&&h.value[f.value];if(!X||e.mode==="horizontal"||e.collapse)return;X.indexPath.forEach(Q=>{const Y=m.value[Q];Y&&v(Q,Y.indexPath)})},v=(X,B)=>{c.value.includes(X)||(e.uniqueOpened&&(c.value=c.value.filter(Q=>B.includes(Q))),c.value.push(X),t("open",X,B))},y=X=>{const B=c.value.indexOf(X);B!==-1&&c.value.splice(B,1)},_=(X,B)=>{y(X),t("close",X,B)},b=({index:X,indexPath:B})=>{c.value.includes(X)?_(X,B):v(X,B)},T=X=>{(e.mode==="horizontal"||e.collapse)&&(c.value=[]);const{index:B,indexPath:Q}=X;if(!(rs(B)||rs(Q)))if(e.router&&i){const Y=X.route||B,F=i.push(Y).then(H=>(H||(f.value=B),H));t("select",B,Q,{index:B,indexPath:Q,route:Y},F)}else f.value=B,t("select",B,Q,{index:B,indexPath:Q})},S=X=>{const B=h.value,Q=B[X]||f.value&&B[f.value]||B[e.defaultActive];Q?f.value=Q.index:f.value=X},C=X=>{const B=getComputedStyle(X),Q=Number.parseInt(B.marginLeft,10),Y=Number.parseInt(B.marginRight,10);return X.offsetWidth+Q+Y||0},D=()=>{var X,B;if(!a.value)return-1;const Q=Array.from((B=(X=a.value)==null?void 0:X.childNodes)!=null?B:[]).filter(De=>De.nodeName!=="#comment"&&(De.nodeName!=="#text"||De.nodeValue)),Y=64,F=getComputedStyle(a.value),H=Number.parseInt(F.paddingLeft,10),Z=Number.parseInt(F.paddingRight,10),se=a.value.clientWidth-H-Z;let ne=0,we=0;return Q.forEach((De,Ee)=>{ne+=C(De),ne<=se-Y&&(we=Ee+1)}),we===Q.length?-1:we},N=X=>m.value[X].indexPath,$=(X,B=33.34)=>{let Q;return()=>{Q&&clearTimeout(Q),Q=setTimeout(()=>{X()},B)}};let L=!0;const z=()=>{if(u.value===D())return;const X=()=>{u.value=-1,it(()=>{u.value=D()})};L?X():$(X)(),L=!1};xe(()=>e.defaultActive,X=>{h.value[X]||(f.value=""),S(X)}),xe(()=>e.collapse,X=>{X&&(c.value=[])}),xe(h.value,p);let U;vs(()=>{e.mode==="horizontal"&&e.ellipsis?U=Sn(a,z).stop:U==null||U()});const W=q(!1);{const X=F=>{m.value[F.index]=F},B=F=>{delete m.value[F.index]};Mt("rootMenu",Ct({props:e,openedMenus:c,items:h,subMenus:m,activeIndex:f,isMenuPopup:g,addMenuItem:F=>{h.value[F.index]=F},removeMenuItem:F=>{delete h.value[F.index]},addSubMenu:X,removeSubMenu:B,openMenu:v,closeMenu:_,handleMenuItemClick:T,handleSubMenuClick:b})),Mt(`subMenu:${r.uid}`,{addSubMenu:X,removeSubMenu:B,mouseInChild:W,level:0})}gt(()=>{e.mode==="horizontal"&&new Cse(r.vnode.el,o.namespace.value)}),s({open:B=>{const{indexPath:Q}=m.value[B];Q.forEach(Y=>v(Y,Q))},close:y,handleResize:z});const K=U8(e,0);return()=>{var X,B;let Q=(B=(X=n.default)==null?void 0:X.call(n))!=null?B:[];const Y=[];if(e.mode==="horizontal"&&a.value){const Z=vo(Q),se=u.value===-1?Z:Z.slice(0,u.value),ne=u.value===-1?[]:Z.slice(u.value);ne!=null&&ne.length&&e.ellipsis&&(Q=se,Y.push(ot(O2,{index:"sub-menu-more",class:l.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>ot(tt,{class:l.e("icon-more")},{default:()=>ot(e.ellipsisIcon)}),default:()=>ne})))}const F=e.closeOnClickOutside?[[Aa,()=>{c.value.length&&(W.value||(c.value.forEach(Z=>t("close",Z,N(Z))),c.value=[]))}]]:[],H=yt(ot("ul",{key:String(e.collapse),role:"menubar",ref:a,style:K.value,class:{[o.b()]:!0,[o.m(e.mode)]:!0,[o.m("collapse")]:e.collapse}},[...Q,...Y]),F);return e.collapseTransition&&e.mode==="vertical"?ot(kse,()=>H):H}}});const Rse=Fe({index:{type:oe([String,null]),default:null},route:{type:oe([String,Object])},disabled:Boolean}),Nse={click:e=>ht(e.index)&&Array.isArray(e.indexPath)},M0="ElMenuItem",Mse=J({name:M0,components:{ElTooltip:is},props:Rse,emits:Nse,setup(e,{emit:t}){const n=Ot(),s=Xe("rootMenu"),r=Re("menu"),i=Re("menu-item");s||es(M0,"can not inject root menu");const{parentMenu:a,indexPath:o}=V8(n,nn(e,"index")),l=Xe(`subMenu:${a.value.uid}`);l||es(M0,"can not inject sub menu");const u=k(()=>e.index===s.activeIndex),c=Ct({index:e.index,indexPath:o,active:u}),f=()=>{e.disabled||(s.handleMenuItemClick({index:e.index,indexPath:o.value,route:e.route}),t("click",c))};return gt(()=>{l.addSubMenu(c),s.addMenuItem(c)}),un(()=>{l.removeSubMenu(c),s.removeMenuItem(c)}),{parentMenu:a,rootMenu:s,active:u,nsMenu:r,nsMenuItem:i,handleClick:f}}});function $se(e,t,n,s,r,i){const a=Dt("el-tooltip");return x(),j("li",{class:M([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:e.handleClick},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(x(),de(a,{key:0,effect:e.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:P(()=>[fe(e.$slots,"title")]),default:P(()=>[O("div",{class:M(e.nsMenu.be("tooltip","trigger"))},[fe(e.$slots,"default")],2)]),_:3},8,["effect"])):(x(),j(Ke,{key:1},[fe(e.$slots,"default"),fe(e.$slots,"title")],64))],10,["onClick"])}var H8=Ue(Mse,[["render",$se],["__file","menu-item.vue"]]);const Lse={title:String},Bse="ElMenuItemGroup",Fse=J({name:Bse,props:Lse,setup(){return{ns:Re("menu-item-group")}}});function Vse(e,t,n,s,r,i){return x(),j("li",{class:M(e.ns.b())},[O("div",{class:M(e.ns.e("title"))},[e.$slots.title?fe(e.$slots,"title",{key:1}):(x(),j(Ke,{key:0},[Te(ce(e.title),1)],64))],2),O("ul",null,[fe(e.$slots,"default")])],2)}var z8=Ue(Fse,[["render",Vse],["__file","menu-item-group.vue"]]);const j8=Tt(Pse,{MenuItem:H8,MenuItemGroup:z8,SubMenu:O2}),q8=kn(H8),Use=kn(z8),W8=kn(O2),Hse=Fe({icon:{type:ln,default:()=>zz},title:String,content:{type:String,default:""}}),zse={back:()=>!0},jse=J({name:"ElPageHeader"}),qse=J({...jse,props:Hse,emits:zse,setup(e,{emit:t}){const n=os(),{t:s}=zt(),r=Re("page-header"),i=k(()=>[r.b(),{[r.m("has-breadcrumb")]:!!n.breadcrumb,[r.m("has-extra")]:!!n.extra,[r.is("contentful")]:!!n.default}]);function a(){t("back")}return(o,l)=>(x(),j("div",{class:M(d(i))},[o.$slots.breadcrumb?(x(),j("div",{key:0,class:M(d(r).e("breadcrumb"))},[fe(o.$slots,"breadcrumb")],2)):ae("v-if",!0),O("div",{class:M(d(r).e("header"))},[O("div",{class:M(d(r).e("left"))},[O("div",{class:M(d(r).e("back")),role:"button",tabindex:"0",onClick:a},[o.icon||o.$slots.icon?(x(),j("div",{key:0,"aria-label":o.title||d(s)("el.pageHeader.title"),class:M(d(r).e("icon"))},[fe(o.$slots,"icon",{},()=>[o.icon?(x(),de(d(tt),{key:0},{default:P(()=>[(x(),de(Rt(o.icon)))]),_:1})):ae("v-if",!0)])],10,["aria-label"])):ae("v-if",!0),O("div",{class:M(d(r).e("title"))},[fe(o.$slots,"title",{},()=>[Te(ce(o.title||d(s)("el.pageHeader.title")),1)])],2)],2),E(d(k8),{direction:"vertical"}),O("div",{class:M(d(r).e("content"))},[fe(o.$slots,"content",{},()=>[Te(ce(o.content),1)])],2)],2),o.$slots.extra?(x(),j("div",{key:0,class:M(d(r).e("extra"))},[fe(o.$slots,"extra")],2)):ae("v-if",!0)],2),o.$slots.default?(x(),j("div",{key:1,class:M(d(r).e("main"))},[fe(o.$slots,"default")],2)):ae("v-if",!0)],2))}});var Wse=Ue(qse,[["__file","page-header.vue"]]);const Kse=Tt(Wse),K8=Symbol("elPaginationKey"),Gse=Fe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:ln}}),Yse={click:e=>e instanceof MouseEvent},Xse=J({name:"ElPaginationPrev"}),Qse=J({...Xse,props:Gse,emits:Yse,setup(e){const t=e,{t:n}=zt(),s=k(()=>t.disabled||t.currentPage<=1);return(r,i)=>(x(),j("button",{type:"button",class:"btn-prev",disabled:d(s),"aria-label":r.prevText||d(n)("el.pagination.prev"),"aria-disabled":d(s),onClick:a=>r.$emit("click",a)},[r.prevText?(x(),j("span",{key:0},ce(r.prevText),1)):(x(),de(d(tt),{key:1},{default:P(()=>[(x(),de(Rt(r.prevIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var Jse=Ue(Qse,[["__file","prev.vue"]]);const Zse=Fe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:ln}}),ere=J({name:"ElPaginationNext"}),tre=J({...ere,props:Zse,emits:["click"],setup(e){const t=e,{t:n}=zt(),s=k(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(x(),j("button",{type:"button",class:"btn-next",disabled:d(s),"aria-label":r.nextText||d(n)("el.pagination.next"),"aria-disabled":d(s),onClick:a=>r.$emit("click",a)},[r.nextText?(x(),j("span",{key:0},ce(r.nextText),1)):(x(),de(d(tt),{key:1},{default:P(()=>[(x(),de(Rt(r.nextIcon)))]),_:1}))],8,["disabled","aria-label","aria-disabled","onClick"]))}});var nre=Ue(tre,[["__file","next.vue"]]);const G8=Symbol("ElSelectGroup"),Lc=Symbol("ElSelect");function sre(e,t){const n=Xe(Lc),s=Xe(G8,{disabled:!1}),r=k(()=>c(Ds(n.props.modelValue),e.value)),i=k(()=>{var m;if(n.props.multiple){const g=Ds((m=n.props.modelValue)!=null?m:[]);return!r.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=k(()=>e.label||(Pt(e.value)?"":e.value)),o=k(()=>e.value||e.label||""),l=k(()=>e.disabled||t.groupDisabled||i.value),u=Ot(),c=(m=[],g)=>{if(Pt(e.value)){const p=n.props.valueKey;return m&&m.some(v=>on(Ln(v,p))===Ln(g,p))}else return m&&m.includes(g)},f=()=>{!e.disabled&&!s.disabled&&(n.states.hoveringIndex=n.optionsArray.indexOf(u.proxy))},h=m=>{const g=new RegExp(x1(m),"i");t.visible=g.test(a.value)||e.created};return xe(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),xe(()=>e.value,(m,g)=>{const{remote:p,valueKey:v}=n.props;if(m!==g&&(n.onOptionDestroy(g,u.proxy),n.onOptionCreate(u.proxy)),!e.created&&!p){if(v&&Pt(m)&&Pt(g)&&m[v]===g[v])return;n.setSelected()}}),xe(()=>s.disabled,()=>{t.groupDisabled=s.disabled},{immediate:!0}),{select:n,currentLabel:a,currentValue:o,itemSelected:r,isDisabled:l,hoverItem:f,updateOption:h}}const rre=J({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(e){const t=Re("select"),n=ys(),s=k(()=>[t.be("dropdown","item"),t.is("disabled",d(o)),t.is("selected",d(a)),t.is("hovering",d(h))]),r=Ct({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:i,itemSelected:a,isDisabled:o,select:l,hoverItem:u,updateOption:c}=sre(e,r),{visible:f,hover:h}=cs(r),m=Ot().proxy;l.onOptionCreate(m),un(()=>{const p=m.value,{selected:v}=l.states,_=(l.props.multiple?v:[v]).some(b=>b.value===m.value);it(()=>{l.states.cachedOptions.get(p)===m&&!_&&l.states.cachedOptions.delete(p)}),l.onOptionDestroy(p,m)});function g(){o.value||l.handleOptionSelect(m)}return{ns:t,id:n,containerKls:s,currentLabel:i,itemSelected:a,isDisabled:o,select:l,hoverItem:u,updateOption:c,visible:f,hover:h,selectOptionClick:g,states:r}}});function ire(e,t,n,s,r,i){return yt((x(),j("li",{id:e.id,class:M(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMouseenter:e.hoverItem,onClick:ft(e.selectOptionClick,["stop"])},[fe(e.$slots,"default",{},()=>[O("span",null,ce(e.currentLabel),1)])],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"])),[[Bt,e.visible]])}var P2=Ue(rre,[["render",ire],["__file","option.vue"]]);const are=J({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Xe(Lc),t=Re("select"),n=k(()=>e.props.popperClass),s=k(()=>e.props.multiple),r=k(()=>e.props.fitInputWidth),i=q("");function a(){var o;i.value=`${(o=e.selectRef)==null?void 0:o.offsetWidth}px`}return gt(()=>{a(),Sn(e.selectRef,a)}),{ns:t,minWidth:i,popperClass:n,isMultiple:s,isFitInputWidth:r}}});function ore(e,t,n,s,r,i){return x(),j("div",{class:M([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:st({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(x(),j("div",{key:0,class:M(e.ns.be("dropdown","header"))},[fe(e.$slots,"header")],2)):ae("v-if",!0),fe(e.$slots,"default"),e.$slots.footer?(x(),j("div",{key:1,class:M(e.ns.be("dropdown","footer"))},[fe(e.$slots,"footer")],2)):ae("v-if",!0)],6)}var lre=Ue(are,[["render",ore],["__file","select-dropdown.vue"]]);const ure=11,cre=(e,t)=>{const{t:n}=zt(),s=ys(),r=Re("select"),i=Re("input"),a=Ct({inputValue:"",options:new Map,cachedOptions:new Map,disabledOptions:new Map,optionValues:[],selected:[],selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),o=q(null),l=q(null),u=q(null),c=q(null),f=q(null),h=q(null),m=q(null),g=q(null),p=q(null),v=q(null),y=q(null),_=q(null),{isComposing:b,handleCompositionStart:T,handleCompositionUpdate:S,handleCompositionEnd:C}=Wg({afterComposition:qe=>xt(qe)}),{wrapperRef:D,isFocused:N,handleBlur:$}=gh(f,{beforeFocus(){return Q.value},afterFocus(){e.automaticDropdown&&!L.value&&(L.value=!0,a.menuVisibleOnFocus=!0)},beforeBlur(qe){var ct,Jt;return((ct=u.value)==null?void 0:ct.isFocusInsideContent(qe))||((Jt=c.value)==null?void 0:Jt.isFocusInsideContent(qe))},afterBlur(){L.value=!1,a.menuVisibleOnFocus=!1}}),L=q(!1),z=q(),{form:U,formItem:W}=Bs(),{inputId:K}=Ai(e,{formItemContext:W}),{valueOnClear:X,isEmptyValue:B}=Kg(e),Q=k(()=>e.disabled||(U==null?void 0:U.disabled)),Y=k(()=>Ye(e.modelValue)?e.modelValue.length>0:!B(e.modelValue)),F=k(()=>e.clearable&&!Q.value&&a.inputHovering&&Y.value),H=k(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),Z=k(()=>r.is("reverse",H.value&&L.value)),se=k(()=>(W==null?void 0:W.validateState)||""),ne=k(()=>B1[se.value]),we=k(()=>e.remote?300:0),De=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!a.inputValue&&a.options.size===0?!1:e.filterable&&a.inputValue&&a.options.size>0&&Ee.value===0?e.noMatchText||n("el.select.noMatch"):a.options.size===0?e.noDataText||n("el.select.noData"):null),Ee=k(()=>te.value.filter(qe=>qe.visible).length),te=k(()=>{const qe=Array.from(a.options.values()),ct=[];return a.optionValues.forEach(Jt=>{const Lt=qe.findIndex(gr=>gr.value===Jt);Lt>-1&&ct.push(qe[Lt])}),ct.length>=qe.length?ct:qe}),ge=k(()=>Array.from(a.cachedOptions.values())),pe=k(()=>{const qe=te.value.filter(ct=>!ct.created).some(ct=>ct.currentLabel===a.inputValue);return e.filterable&&e.allowCreate&&a.inputValue!==""&&!qe}),Oe=()=>{e.filterable&&pt(e.filterMethod)||e.filterable&&e.remote&&pt(e.remoteMethod)||te.value.forEach(qe=>{var ct;(ct=qe.updateOption)==null||ct.call(qe,a.inputValue)})},Pe=Kn(),ve=k(()=>["small"].includes(Pe.value)?"small":"default"),ee=k({get(){return L.value&&De.value!==!1},set(qe){L.value=qe}}),re=k(()=>{if(e.multiple&&!An(e.modelValue))return Ds(e.modelValue).length===0&&!a.inputValue;const qe=Ye(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||An(qe)?!a.inputValue:!0}),Se=k(()=>{var qe;const ct=(qe=e.placeholder)!=null?qe:n("el.select.placeholder");return e.multiple||!Y.value?ct:a.selectedLabel}),Le=k(()=>$y?null:"mouseenter");xe(()=>e.modelValue,(qe,ct)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(a.inputValue="",_e("")),Be(),!Ps(qe,ct)&&e.validateEvent&&(W==null||W.validate("change").catch(Jt=>void 0))},{flush:"post",deep:!0}),xe(()=>L.value,qe=>{qe?_e(a.inputValue):(a.inputValue="",a.previousQuery=null,a.isBeforeHide=!0),t("visible-change",qe)}),xe(()=>a.options.entries(),()=>{var qe;if(!Ht)return;const ct=((qe=o.value)==null?void 0:qe.querySelectorAll("input"))||[];(!e.filterable&&!e.defaultFirstOption&&!An(e.modelValue)||!Array.from(ct).includes(document.activeElement))&&Be(),e.defaultFirstOption&&(e.filterable||e.remote)&&Ee.value&&ke()},{flush:"post"}),xe(()=>a.hoveringIndex,qe=>{ut(qe)&&qe>-1?z.value=te.value[qe]||{}:z.value={},te.value.forEach(ct=>{ct.hover=z.value===ct})}),vs(()=>{a.isBeforeHide||Oe()});const _e=qe=>{a.previousQuery===qe||b.value||(a.previousQuery=qe,e.filterable&&pt(e.filterMethod)?e.filterMethod(qe):e.filterable&&e.remote&&pt(e.remoteMethod)&&e.remoteMethod(qe),e.defaultFirstOption&&(e.filterable||e.remote)&&Ee.value?it(ke):it(ze))},ke=()=>{const qe=te.value.filter(Lt=>Lt.visible&&!Lt.disabled&&!Lt.states.groupDisabled),ct=qe.find(Lt=>Lt.created),Jt=qe[0];a.hoveringIndex=Me(te.value,ct||Jt)},Be=()=>{if(e.multiple)a.selectedLabel="";else{const ct=Ye(e.modelValue)?e.modelValue[0]:e.modelValue,Jt=Ie(ct);a.selectedLabel=Jt.currentLabel,a.selected=[Jt];return}const qe=[];An(e.modelValue)||Ds(e.modelValue).forEach(ct=>{qe.push(Ie(ct))}),a.selected=qe},Ie=qe=>{let ct;const Jt=Lp(qe).toLowerCase()==="object",Lt=Lp(qe).toLowerCase()==="null",gr=Lp(qe).toLowerCase()==="undefined";for(let yr=a.cachedOptions.size-1;yr>=0;yr--){const ns=ge.value[yr];if(Jt?Ln(ns.value,e.valueKey)===Ln(qe,e.valueKey):ns.value===qe){ct={value:qe,currentLabel:ns.currentLabel,get isDisabled(){return ns.isDisabled}};break}}if(ct)return ct;const vr=Jt?qe.label:!Lt&&!gr?qe:"";return{value:qe,currentLabel:vr}},ze=()=>{a.hoveringIndex=te.value.findIndex(qe=>a.selected.some(ct=>Ua(ct)===Ua(qe)))},Ve=()=>{a.selectionWidth=l.value.getBoundingClientRect().width},Ze=()=>{a.calculatorWidth=h.value.getBoundingClientRect().width},je=()=>{a.collapseItemWidth=y.value.getBoundingClientRect().width},Ae=()=>{var qe,ct;(ct=(qe=u.value)==null?void 0:qe.updatePopper)==null||ct.call(qe)},nt=()=>{var qe,ct;(ct=(qe=c.value)==null?void 0:qe.updatePopper)==null||ct.call(qe)},_t=()=>{a.inputValue.length>0&&!L.value&&(L.value=!0),_e(a.inputValue)},xt=qe=>{if(a.inputValue=qe.target.value,e.remote)It();else return _t()},It=fr(()=>{_t()},we.value),Kt=qe=>{Ps(e.modelValue,qe)||t(gn,qe)},pn=qe=>Y3(qe,ct=>!a.disabledOptions.has(ct)),be=qe=>{if(e.multiple&&qe.code!==at.delete&&qe.target.value.length<=0){const ct=Ds(e.modelValue).slice(),Jt=pn(ct);if(Jt<0)return;const Lt=ct[Jt];ct.splice(Jt,1),t(At,ct),Kt(ct),t("remove-tag",Lt)}},et=(qe,ct)=>{const Jt=a.selected.indexOf(ct);if(Jt>-1&&!Q.value){const Lt=Ds(e.modelValue).slice();Lt.splice(Jt,1),t(At,Lt),Kt(Lt),t("remove-tag",ct.value)}qe.stopPropagation(),Qt()},le=qe=>{qe.stopPropagation();const ct=e.multiple?[]:X.value;if(e.multiple)for(const Jt of a.selected)Jt.isDisabled&&ct.push(Jt.value);t(At,ct),Kt(ct),a.hoveringIndex=-1,L.value=!1,t("clear"),Qt()},Ne=qe=>{var ct;if(e.multiple){const Jt=Ds((ct=e.modelValue)!=null?ct:[]).slice(),Lt=Me(Jt,qe.value);Lt>-1?Jt.splice(Lt,1):(e.multipleLimit<=0||Jt.length<e.multipleLimit)&&Jt.push(qe.value),t(At,Jt),Kt(Jt),qe.created&&_e(""),e.filterable&&!e.reserveKeyword&&(a.inputValue="")}else t(At,qe.value),Kt(qe.value),L.value=!1;Qt(),!L.value&&it(()=>{vt(qe)})},Me=(qe=[],ct)=>{if(!Pt(ct))return qe.indexOf(ct);const Jt=e.valueKey;let Lt=-1;return qe.some((gr,vr)=>on(Ln(gr,Jt))===Ln(ct,Jt)?(Lt=vr,!0):!1),Lt},vt=qe=>{var ct,Jt,Lt,gr,vr;const si=Ye(qe)?qe[0]:qe;let yr=null;if(si!=null&&si.value){const ns=te.value.filter(vn=>vn.value===si.value);ns.length>0&&(yr=ns[0].$el)}if(u.value&&yr){const ns=(gr=(Lt=(Jt=(ct=u.value)==null?void 0:ct.popperRef)==null?void 0:Jt.contentRef)==null?void 0:Lt.querySelector)==null?void 0:gr.call(Lt,`.${r.be("dropdown","wrap")}`);ns&&A1(ns,yr)}(vr=_.value)==null||vr.handleScroll()},qt=qe=>{a.options.set(qe.value,qe),a.cachedOptions.set(qe.value,qe),qe.disabled&&a.disabledOptions.set(qe.value,qe)},Ce=(qe,ct)=>{a.options.get(qe)===ct&&a.options.delete(qe)},mt=k(()=>{var qe,ct;return(ct=(qe=u.value)==null?void 0:qe.popperRef)==null?void 0:ct.contentRef}),Vt=()=>{a.isBeforeHide=!1,it(()=>vt(a.selected))},Qt=()=>{var qe;(qe=f.value)==null||qe.focus()},Wt=()=>{var qe;if(L.value){L.value=!1,it(()=>{var ct;return(ct=f.value)==null?void 0:ct.blur()});return}(qe=f.value)==null||qe.blur()},en=qe=>{le(qe)},ws=qe=>{if(L.value=!1,N.value){const ct=new FocusEvent("focus",qe);it(()=>$(ct))}},qo=()=>{a.inputValue.length>0?a.inputValue="":L.value=!1},Ql=()=>{Q.value||($y&&(a.inputHovering=!0),a.menuVisibleOnFocus?a.menuVisibleOnFocus=!1:L.value=!L.value)},Wo=()=>{L.value?te.value[a.hoveringIndex]&&Ne(te.value[a.hoveringIndex]):Ql()},Ua=qe=>Pt(qe.value)?Ln(qe.value,e.valueKey):qe.value,Jl=k(()=>te.value.filter(qe=>qe.visible).every(qe=>qe.disabled)),Qc=k(()=>e.multiple?e.collapseTags?a.selected.slice(0,e.maxCollapseTags):a.selected:[]),ca=k(()=>e.multiple?e.collapseTags?a.selected.slice(e.maxCollapseTags):[]:[]),Ha=qe=>{if(!L.value){L.value=!0;return}if(!(a.options.size===0||a.filteredOptionsCount===0||b.value)&&!Jl.value){qe==="next"?(a.hoveringIndex++,a.hoveringIndex===a.options.size&&(a.hoveringIndex=0)):qe==="prev"&&(a.hoveringIndex--,a.hoveringIndex<0&&(a.hoveringIndex=a.options.size-1));const ct=te.value[a.hoveringIndex];(ct.disabled===!0||ct.states.groupDisabled===!0||!ct.visible)&&Ha(qe),it(()=>vt(z.value))}},za=()=>{if(!l.value)return 0;const qe=window.getComputedStyle(l.value);return Number.parseFloat(qe.gap||"6px")},fs=k(()=>{const qe=za();return{maxWidth:`${y.value&&e.maxCollapseTags===1?a.selectionWidth-a.collapseItemWidth-qe:a.selectionWidth}px`}}),Jc=k(()=>({maxWidth:`${a.selectionWidth}px`})),Zc=k(()=>({width:`${Math.max(a.calculatorWidth,ure)}px`}));return Sn(l,Ve),Sn(h,Ze),Sn(p,Ae),Sn(D,Ae),Sn(v,nt),Sn(y,je),gt(()=>{Be()}),{inputId:K,contentId:s,nsSelect:r,nsInput:i,states:a,isFocused:N,expanded:L,optionsArray:te,hoverOption:z,selectSize:Pe,filteredOptionsCount:Ee,resetCalculatorWidth:Ze,updateTooltip:Ae,updateTagTooltip:nt,debouncedOnInputChange:It,onInput:xt,deletePrevTag:be,deleteTag:et,deleteSelected:le,handleOptionSelect:Ne,scrollToOption:vt,hasModelValue:Y,shouldShowPlaceholder:re,currentPlaceholder:Se,mouseEnterEventName:Le,showClose:F,iconComponent:H,iconReverse:Z,validateState:se,validateIcon:ne,showNewOption:pe,updateOptions:Oe,collapseTagSize:ve,setSelected:Be,selectDisabled:Q,emptyText:De,handleCompositionStart:T,handleCompositionUpdate:S,handleCompositionEnd:C,onOptionCreate:qt,onOptionDestroy:Ce,handleMenuEnter:Vt,focus:Qt,blur:Wt,handleClearClick:en,handleClickOutside:ws,handleEsc:qo,toggleMenu:Ql,selectOption:Wo,getValueKey:Ua,navigateOptions:Ha,dropdownMenuVisible:ee,showTagList:Qc,collapseTagList:ca,tagStyle:fs,collapseTagStyle:Jc,inputStyle:Zc,popperRef:mt,inputRef:f,tooltipRef:u,tagTooltipRef:c,calculatorRef:h,prefixRef:m,suffixRef:g,selectRef:o,wrapperRef:D,selectionRef:l,scrollbarRef:_,menuRef:p,tagMenuRef:v,collapseItemRef:y}};var dre=J({name:"ElOptions",setup(e,{slots:t}){const n=Xe(Lc);let s=[];return()=>{var r,i;const a=(r=t.default)==null?void 0:r.call(t),o=[];function l(u){Ye(u)&&u.forEach(c=>{var f,h,m,g;const p=(f=(c==null?void 0:c.type)||{})==null?void 0:f.name;p==="ElOptionGroup"?l(!ht(c.children)&&!Ye(c.children)&&pt((h=c.children)==null?void 0:h.default)?(m=c.children)==null?void 0:m.default():c.children):p==="ElOption"?o.push((g=c.props)==null?void 0:g.value):Ye(c.children)&&l(c.children)})}return a.length&&l((i=a[0])==null?void 0:i.children),Ps(o,s)||(s=o,n&&(n.states.optionValues=o)),a}}});const fre=Fe({name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:ts,effect:{type:oe(String),default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:oe(Object),default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},teleported:us.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:ln,default:Uo},fitInputWidth:Boolean,suffixIcon:{type:ln,default:sa},tagType:{...$l.type,default:"info"},tagEffect:{...$l.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,placement:{type:oe(String),values:La,default:"bottom-start"},fallbackPlacements:{type:oe(Array),default:["bottom-start","top-start","right","left"]},appendTo:String,...Pc,..._s(["ariaLabel"])}),ex="ElSelect",hre=J({name:ex,componentName:ex,components:{ElSelectMenu:lre,ElOption:P2,ElOptions:dre,ElTag:Ji,ElScrollbar:aa,ElTooltip:is,ElIcon:tt},directives:{ClickOutside:Aa},props:fre,emits:[At,gn,"remove-tag","clear","visible-change","focus","blur"],setup(e,{emit:t}){const n=k(()=>{const{modelValue:a,multiple:o}=e,l=o?[]:void 0;return Ye(a)?o?a:l:o?l:a}),s=Ct({...cs(e),modelValue:n}),r=cre(s,t);Mt(Lc,Ct({props:s,states:r.states,optionsArray:r.optionsArray,handleOptionSelect:r.handleOptionSelect,onOptionCreate:r.onOptionCreate,onOptionDestroy:r.onOptionDestroy,selectRef:r.selectRef,setSelected:r.setSelected}));const i=k(()=>e.multiple?r.states.selected.map(a=>a.currentLabel):r.states.selectedLabel);return{...r,modelValue:n,selectedLabel:i}}});function pre(e,t,n,s,r,i){const a=Dt("el-tag"),o=Dt("el-tooltip"),l=Dt("el-icon"),u=Dt("el-option"),c=Dt("el-options"),f=Dt("el-scrollbar"),h=Dt("el-select-menu"),m=Cg("click-outside");return yt((x(),j("div",{ref:"selectRef",class:M([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),[Ud(e.mouseEnterEventName)]:g=>e.states.inputHovering=!0,onMouseleave:g=>e.states.inputHovering=!1},[E(o,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,onBeforeShow:e.handleMenuEnter,onHide:g=>e.states.isBeforeHide=!1},{default:P(()=>{var g;return[O("div",{ref:"wrapperRef",class:M([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:ft(e.toggleMenu,["prevent"])},[e.$slots.prefix?(x(),j("div",{key:0,ref:"prefixRef",class:M(e.nsSelect.e("prefix"))},[fe(e.$slots,"prefix")],2)):ae("v-if",!0),O("div",{ref:"selectionRef",class:M([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?fe(e.$slots,"tag",{key:0},()=>[(x(!0),j(Ke,null,bt(e.showTagList,p=>(x(),j("div",{key:e.getValueKey(p),class:M(e.nsSelect.e("selected-item"))},[E(a,{closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:st(e.tagStyle),onClose:v=>e.deleteTag(v,p)},{default:P(()=>[O("span",{class:M(e.nsSelect.e("tags-text"))},[fe(e.$slots,"label",{label:p.currentLabel,value:p.value},()=>[Te(ce(p.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(x(),de(o,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:P(()=>[O("div",{ref:"collapseItemRef",class:M(e.nsSelect.e("selected-item"))},[E(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:st(e.collapseTagStyle)},{default:P(()=>[O("span",{class:M(e.nsSelect.e("tags-text"))}," + "+ce(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:P(()=>[O("div",{ref:"tagMenuRef",class:M(e.nsSelect.e("selection"))},[(x(!0),j(Ke,null,bt(e.collapseTagList,p=>(x(),j("div",{key:e.getValueKey(p),class:M(e.nsSelect.e("selected-item"))},[E(a,{class:"in-tooltip",closable:!e.selectDisabled&&!p.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:v=>e.deleteTag(v,p)},{default:P(()=>[O("span",{class:M(e.nsSelect.e("tags-text"))},[fe(e.$slots,"label",{label:p.currentLabel,value:p.value},()=>[Te(ce(p.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):ae("v-if",!0)]):ae("v-if",!0),e.selectDisabled?ae("v-if",!0):(x(),j("div",{key:1,class:M([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[yt(O("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":p=>e.states.inputValue=p,type:"text",name:e.name,class:M([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:st(e.inputStyle),role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((g=e.hoverOption)==null?void 0:g.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:[rn(ft(p=>e.navigateOptions("next"),["stop","prevent"]),["down"]),rn(ft(p=>e.navigateOptions("prev"),["stop","prevent"]),["up"]),rn(ft(e.handleEsc,["stop","prevent"]),["esc"]),rn(ft(e.selectOption,["stop","prevent"]),["enter"]),rn(ft(e.deletePrevTag,["stop"]),["delete"])],onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onInput:e.onInput,onClick:ft(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","name","disabled","autocomplete","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label","onKeydown","onCompositionstart","onCompositionupdate","onCompositionend","onInput","onClick"]),[[xa,e.states.inputValue]]),e.filterable?(x(),j("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:M(e.nsSelect.e("input-calculator")),textContent:ce(e.states.inputValue)},null,10,["textContent"])):ae("v-if",!0)],2)),e.shouldShowPlaceholder?(x(),j("div",{key:2,class:M([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?fe(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[O("span",null,ce(e.currentPlaceholder),1)]):(x(),j("span",{key:1},ce(e.currentPlaceholder),1))],2)):ae("v-if",!0)],2),O("div",{ref:"suffixRef",class:M(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClose?(x(),de(l,{key:0,class:M([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:P(()=>[(x(),de(Rt(e.iconComponent)))]),_:1},8,["class"])):ae("v-if",!0),e.showClose&&e.clearIcon?(x(),de(l,{key:1,class:M([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:P(()=>[(x(),de(Rt(e.clearIcon)))]),_:1},8,["class","onClick"])):ae("v-if",!0),e.validateState&&e.validateIcon?(x(),de(l,{key:2,class:M([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:P(()=>[(x(),de(Rt(e.validateIcon)))]),_:1},8,["class"])):ae("v-if",!0)],2)],10,["onClick"])]}),content:P(()=>[E(h,{ref:"menuRef"},{default:P(()=>[e.$slots.header?(x(),j("div",{key:0,class:M(e.nsSelect.be("dropdown","header")),onClick:ft(()=>{},["stop"])},[fe(e.$slots,"header")],10,["onClick"])):ae("v-if",!0),yt(E(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:M([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical"},{default:P(()=>[e.showNewOption?(x(),de(u,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ae("v-if",!0),E(c,null,{default:P(()=>[fe(e.$slots,"default")]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label"]),[[Bt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(x(),j("div",{key:1,class:M(e.nsSelect.be("dropdown","loading"))},[fe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(x(),j("div",{key:2,class:M(e.nsSelect.be("dropdown","empty"))},[fe(e.$slots,"empty",{},()=>[O("span",null,ce(e.emptyText),1)])],2)):ae("v-if",!0),e.$slots.footer?(x(),j("div",{key:3,class:M(e.nsSelect.be("dropdown","footer")),onClick:ft(()=>{},["stop"])},[fe(e.$slots,"footer")],10,["onClick"])):ae("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-options","fallback-placements","effect","transition","persistent","append-to","onBeforeShow","onHide"])],16,["onMouseleave"])),[[m,e.handleClickOutside,e.popperRef]])}var mre=Ue(hre,[["render",pre],["__file","select.vue"]]);const gre=J({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=Re("select"),n=q(null),s=Ot(),r=q([]);Mt(G8,Ct({...cs(e)}));const i=k(()=>r.value.some(u=>u.visible===!0)),a=u=>{var c,f;return((c=u.type)==null?void 0:c.name)==="ElOption"&&!!((f=u.component)!=null&&f.proxy)},o=u=>{const c=Ds(u),f=[];return c.forEach(h=>{var m,g;a(h)?f.push(h.component.proxy):(m=h.children)!=null&&m.length?f.push(...o(h.children)):(g=h.component)!=null&&g.subTree&&f.push(...o(h.component.subTree))}),f},l=()=>{r.value=o(s.subTree)};return gt(()=>{l()}),c3(n,l,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:i,ns:t}}});function vre(e,t,n,s,r,i){return yt((x(),j("ul",{ref:"groupRef",class:M(e.ns.be("group","wrap"))},[O("li",{class:M(e.ns.be("group","title"))},ce(e.label),3),O("li",null,[O("ul",{class:M(e.ns.b("group"))},[fe(e.$slots,"default")],2)])],2)),[[Bt,e.visible]])}var Y8=Ue(gre,[["render",vre],["__file","option-group.vue"]]);const Ti=Tt(mre,{Option:P2,OptionGroup:Y8}),Ro=kn(P2),yre=kn(Y8),R2=()=>Xe(K8,{}),bre=Fe({pageSize:{type:Number,required:!0},pageSizes:{type:oe(Array),default:()=>xn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,teleported:Boolean,size:{type:String,values:ra},appendSizeTo:String}),_re=J({name:"ElPaginationSizes"}),wre=J({..._re,props:bre,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:s}=zt(),r=Re("pagination"),i=R2(),a=q(n.pageSize);xe(()=>n.pageSizes,(u,c)=>{if(!Ps(u,c)&&Array.isArray(u)){const f=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",f)}}),xe(()=>n.pageSize,u=>{a.value=u});const o=k(()=>n.pageSizes);function l(u){var c;u!==a.value&&(a.value=u,(c=i.handleSizeChange)==null||c.call(i,Number(u)))}return(u,c)=>(x(),j("span",{class:M(d(r).e("sizes"))},[E(d(Ti),{"model-value":a.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,teleported:u.teleported,"validate-event":!1,"append-to":u.appendSizeTo,onChange:l},{default:P(()=>[(x(!0),j(Ke,null,bt(d(o),f=>(x(),de(d(Ro),{key:f,value:f,label:f+d(s)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported","append-to"])],2))}});var Sre=Ue(wre,[["__file","sizes.vue"]]);const Tre=Fe({size:{type:String,values:ra}}),Cre=J({name:"ElPaginationJumper"}),Ere=J({...Cre,props:Tre,setup(e){const{t}=zt(),n=Re("pagination"),{pageCount:s,disabled:r,currentPage:i,changeEvent:a}=R2(),o=q(),l=k(()=>{var f;return(f=o.value)!=null?f:i==null?void 0:i.value});function u(f){o.value=f?+f:""}function c(f){f=Math.trunc(+f),a==null||a(f),o.value=void 0}return(f,h)=>(x(),j("span",{class:M(d(n).e("jump")),disabled:d(r)},[O("span",{class:M([d(n).e("goto")])},ce(d(t)("el.pagination.goto")),3),E(d(Un),{size:f.size,class:M([d(n).e("editor"),d(n).is("in-pagination")]),min:1,max:d(s),disabled:d(r),"model-value":d(l),"validate-event":!1,"aria-label":d(t)("el.pagination.page"),type:"number","onUpdate:modelValue":u,onChange:c},null,8,["size","class","max","disabled","model-value","aria-label"]),O("span",{class:M([d(n).e("classifier")])},ce(d(t)("el.pagination.pageClassifier")),3)],10,["disabled"]))}});var xre=Ue(Ere,[["__file","jumper.vue"]]);const kre=Fe({total:{type:Number,default:1e3}}),Are=J({name:"ElPaginationTotal"}),Ire=J({...Are,props:kre,setup(e){const{t}=zt(),n=Re("pagination"),{disabled:s}=R2();return(r,i)=>(x(),j("span",{class:M(d(n).e("total")),disabled:d(s)},ce(d(t)("el.pagination.total",{total:r.total})),11,["disabled"]))}});var Dre=Ue(Ire,[["__file","total.vue"]]);const Ore=Fe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),Pre=J({name:"ElPaginationPager"}),Rre=J({...Pre,props:Ore,emits:["change"],setup(e,{emit:t}){const n=e,s=Re("pager"),r=Re("icon"),{t:i}=zt(),a=q(!1),o=q(!1),l=q(!1),u=q(!1),c=q(!1),f=q(!1),h=k(()=>{const T=n.pagerCount,S=(T-1)/2,C=Number(n.currentPage),D=Number(n.pageCount);let N=!1,$=!1;D>T&&(C>T-S&&(N=!0),C<D-S&&($=!0));const L=[];if(N&&!$){const z=D-(T-2);for(let U=z;U<D;U++)L.push(U)}else if(!N&&$)for(let z=2;z<T;z++)L.push(z);else if(N&&$){const z=Math.floor(T/2)-1;for(let U=C-z;U<=C+z;U++)L.push(U)}else for(let z=2;z<D;z++)L.push(z);return L}),m=k(()=>["more","btn-quickprev",r.b(),s.is("disabled",n.disabled)]),g=k(()=>["more","btn-quicknext",r.b(),s.is("disabled",n.disabled)]),p=k(()=>n.disabled?-1:0);vs(()=>{const T=(n.pagerCount-1)/2;a.value=!1,o.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-T&&(a.value=!0),n.currentPage<n.pageCount-T&&(o.value=!0))});function v(T=!1){n.disabled||(T?l.value=!0:u.value=!0)}function y(T=!1){T?c.value=!0:f.value=!0}function _(T){const S=T.target;if(S.tagName.toLowerCase()==="li"&&Array.from(S.classList).includes("number")){const C=Number(S.textContent);C!==n.currentPage&&t("change",C)}else S.tagName.toLowerCase()==="li"&&Array.from(S.classList).includes("more")&&b(T)}function b(T){const S=T.target;if(S.tagName.toLowerCase()==="ul"||n.disabled)return;let C=Number(S.textContent);const D=n.pageCount,N=n.currentPage,$=n.pagerCount-2;S.className.includes("more")&&(S.className.includes("quickprev")?C=N-$:S.className.includes("quicknext")&&(C=N+$)),Number.isNaN(+C)||(C<1&&(C=1),C>D&&(C=D)),C!==N&&t("change",C)}return(T,S)=>(x(),j("ul",{class:M(d(s).b()),onClick:b,onKeyup:rn(_,["enter"])},[T.pageCount>0?(x(),j("li",{key:0,class:M([[d(s).is("active",T.currentPage===1),d(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===1,"aria-label":d(i)("el.pagination.currentPage",{pager:1}),tabindex:d(p)}," 1 ",10,["aria-current","aria-label","tabindex"])):ae("v-if",!0),a.value?(x(),j("li",{key:1,class:M(d(m)),tabindex:d(p),"aria-label":d(i)("el.pagination.prevPages",{pager:T.pagerCount-2}),onMouseenter:C=>v(!0),onMouseleave:C=>l.value=!1,onFocus:C=>y(!0),onBlur:C=>c.value=!1},[(l.value||c.value)&&!T.disabled?(x(),de(d(Ao),{key:0})):(x(),de(d(qy),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):ae("v-if",!0),(x(!0),j(Ke,null,bt(d(h),C=>(x(),j("li",{key:C,class:M([[d(s).is("active",T.currentPage===C),d(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===C,"aria-label":d(i)("el.pagination.currentPage",{pager:C}),tabindex:d(p)},ce(C),11,["aria-current","aria-label","tabindex"]))),128)),o.value?(x(),j("li",{key:2,class:M(d(g)),tabindex:d(p),"aria-label":d(i)("el.pagination.nextPages",{pager:T.pagerCount-2}),onMouseenter:C=>v(),onMouseleave:C=>u.value=!1,onFocus:C=>y(),onBlur:C=>f.value=!1},[(u.value||f.value)&&!T.disabled?(x(),de(d(Io),{key:0})):(x(),de(d(qy),{key:1}))],42,["tabindex","aria-label","onMouseenter","onMouseleave","onFocus","onBlur"])):ae("v-if",!0),T.pageCount>1?(x(),j("li",{key:3,class:M([[d(s).is("active",T.currentPage===T.pageCount),d(s).is("disabled",T.disabled)],"number"]),"aria-current":T.currentPage===T.pageCount,"aria-label":d(i)("el.pagination.currentPage",{pager:T.pageCount}),tabindex:d(p)},ce(T.pageCount),11,["aria-current","aria-label","tabindex"])):ae("v-if",!0)],42,["onKeyup"]))}});var Nre=Ue(Rre,[["__file","pager.vue"]]);const Us=e=>typeof e!="number",Mre=Fe({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>ut(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:oe(Array),default:()=>xn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:ln,default:()=>ko},nextText:{type:String,default:""},nextIcon:{type:ln,default:()=>Gs},teleported:{type:Boolean,default:!0},small:Boolean,size:ts,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),$re={"update:current-page":e=>ut(e),"update:page-size":e=>ut(e),"size-change":e=>ut(e),change:(e,t)=>ut(e)&&ut(t),"current-change":e=>ut(e),"prev-click":e=>ut(e),"next-click":e=>ut(e)},tx="ElPagination";var Lre=J({name:tx,props:Mre,emits:$re,setup(e,{emit:t,slots:n}){const{t:s}=zt(),r=Re("pagination"),i=Ot().vnode.props||{},a=UI(),o=k(()=>{var S;return e.small?"small":(S=e.size)!=null?S:a.value});yo({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},k(()=>!!e.small));const l="onUpdate:currentPage"in i||"onUpdate:current-page"in i||"onCurrentChange"in i,u="onUpdate:pageSize"in i||"onUpdate:page-size"in i||"onSizeChange"in i,c=k(()=>{if(Us(e.total)&&Us(e.pageCount)||!Us(e.currentPage)&&!l)return!1;if(e.layout.includes("sizes")){if(Us(e.pageCount)){if(!Us(e.total)&&!Us(e.pageSize)&&!u)return!1}else if(!u)return!1}return!0}),f=q(Us(e.defaultPageSize)?10:e.defaultPageSize),h=q(Us(e.defaultCurrentPage)?1:e.defaultCurrentPage),m=k({get(){return Us(e.pageSize)?f.value:e.pageSize},set(S){Us(e.pageSize)&&(f.value=S),u&&(t("update:page-size",S),t("size-change",S))}}),g=k(()=>{let S=0;return Us(e.pageCount)?Us(e.total)||(S=Math.max(1,Math.ceil(e.total/m.value))):S=e.pageCount,S}),p=k({get(){return Us(e.currentPage)?h.value:e.currentPage},set(S){let C=S;S<1?C=1:S>g.value&&(C=g.value),Us(e.currentPage)&&(h.value=C),l&&(t("update:current-page",C),t("current-change",C))}});xe(g,S=>{p.value>S&&(p.value=S)}),xe([p,m],S=>{t("change",...S)},{flush:"post"});function v(S){p.value=S}function y(S){m.value=S;const C=g.value;p.value>C&&(p.value=C)}function _(){e.disabled||(p.value-=1,t("prev-click",p.value))}function b(){e.disabled||(p.value+=1,t("next-click",p.value))}function T(S,C){S&&(S.props||(S.props={}),S.props.class=[S.props.class,C].join(" "))}return Mt(K8,{pageCount:g,disabled:k(()=>e.disabled),currentPage:p,changeEvent:v,handleSizeChange:y}),()=>{var S,C;if(!c.value)return s("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&g.value<=1)return null;const D=[],N=[],$=ot("div",{class:r.e("rightwrapper")},N),L={prev:ot(Jse,{disabled:e.disabled,currentPage:p.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:_}),jumper:ot(xre,{size:o.value}),pager:ot(Nre,{currentPage:p.value,pageCount:g.value,pagerCount:e.pagerCount,onChange:v,disabled:e.disabled}),next:ot(nre,{disabled:e.disabled,currentPage:p.value,pageCount:g.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:ot(Sre,{pageSize:m.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,teleported:e.teleported,size:o.value,appendSizeTo:e.appendSizeTo}),slot:(C=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?C:null,total:ot(Dre,{total:Us(e.total)?0:e.total})},z=e.layout.split(",").map(W=>W.trim());let U=!1;return z.forEach(W=>{if(W==="->"){U=!0;return}U?N.push(L[W]):D.push(L[W])}),T(D[0],r.is("first")),T(D[D.length-1],r.is("last")),U&&N.length>0&&(T(N[0],r.is("first")),T(N[N.length-1],r.is("last")),D.push($)),ot("div",{class:[r.b(),r.is("background",e.background),r.m(o.value)]},D)}}});const wh=Tt(Lre),Bre=Fe({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:sb,default:"primary"},cancelButtonType:{type:String,values:sb,default:"text"},icon:{type:ln,default:()=>jj},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:us.teleported,persistent:us.persistent,width:{type:[String,Number],default:150}}),Fre={confirm:e=>e instanceof MouseEvent,cancel:e=>e instanceof MouseEvent},Vre=J({name:"ElPopconfirm"}),Ure=J({...Vre,props:Bre,emits:Fre,setup(e,{emit:t}){const n=e,{t:s}=zt(),r=Re("popconfirm"),i=q(),a=()=>{var h,m;(m=(h=i.value)==null?void 0:h.onClose)==null||m.call(h)},o=k(()=>({width:Nn(n.width)})),l=h=>{t("confirm",h),a()},u=h=>{t("cancel",h),a()},c=k(()=>n.confirmButtonText||s("el.popconfirm.confirmButtonText")),f=k(()=>n.cancelButtonText||s("el.popconfirm.cancelButtonText"));return(h,m)=>(x(),de(d(is),Nt({ref_key:"tooltipRef",ref:i,trigger:"click",effect:"light"},h.$attrs,{"popper-class":`${d(r).namespace.value}-popover`,"popper-style":d(o),teleported:h.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":h.hideAfter,persistent:h.persistent}),{content:P(()=>[O("div",{class:M(d(r).b())},[O("div",{class:M(d(r).e("main"))},[!h.hideIcon&&h.icon?(x(),de(d(tt),{key:0,class:M(d(r).e("icon")),style:st({color:h.iconColor})},{default:P(()=>[(x(),de(Rt(h.icon)))]),_:1},8,["class","style"])):ae("v-if",!0),Te(" "+ce(h.title),1)],2),O("div",{class:M(d(r).e("action"))},[fe(h.$slots,"actions",{confirm:l,cancel:u},()=>[E(d(mn),{size:"small",type:h.cancelButtonType==="text"?"":h.cancelButtonType,text:h.cancelButtonType==="text",onClick:u},{default:P(()=>[Te(ce(d(f)),1)]),_:1},8,["type","text"]),E(d(mn),{size:"small",type:h.confirmButtonType==="text"?"":h.confirmButtonType,text:h.confirmButtonType==="text",onClick:l},{default:P(()=>[Te(ce(d(c)),1)]),_:1},8,["type","text"])])],2)],2)]),default:P(()=>[h.$slots.reference?fe(h.$slots,"reference",{key:0}):ae("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Hre=Ue(Ure,[["__file","popconfirm.vue"]]);const zre=Tt(Hre),jre=Fe({trigger:Pf.trigger,placement:Qp.placement,disabled:Pf.disabled,visible:us.visible,transition:us.transition,popperOptions:Qp.popperOptions,tabindex:Qp.tabindex,content:us.content,popperStyle:us.popperStyle,popperClass:us.popperClass,enterable:{...us.enterable,default:!0},effect:{...us.effect,default:"light"},teleported:us.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),qre={"update:visible":e=>In(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Wre="onUpdate:visible",Kre=J({name:"ElPopover"}),Gre=J({...Kre,props:jre,emits:qre,setup(e,{expose:t,emit:n}){const s=e,r=k(()=>s[Wre]),i=Re("popover"),a=q(),o=k(()=>{var v;return(v=d(a))==null?void 0:v.popperRef}),l=k(()=>[{width:Nn(s.width)},s.popperStyle]),u=k(()=>[i.b(),s.popperClass,{[i.m("plain")]:!!s.content}]),c=k(()=>s.transition===`${i.namespace.value}-fade-in-linear`),f=()=>{var v;(v=a.value)==null||v.hide()},h=()=>{n("before-enter")},m=()=>{n("before-leave")},g=()=>{n("after-enter")},p=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:o,hide:f}),(v,y)=>(x(),de(d(is),Nt({ref_key:"tooltipRef",ref:a},v.$attrs,{trigger:v.trigger,placement:v.placement,disabled:v.disabled,visible:v.visible,transition:v.transition,"popper-options":v.popperOptions,tabindex:v.tabindex,content:v.content,offset:v.offset,"show-after":v.showAfter,"hide-after":v.hideAfter,"auto-close":v.autoClose,"show-arrow":v.showArrow,"aria-label":v.title,effect:v.effect,enterable:v.enterable,"popper-class":d(u),"popper-style":d(l),teleported:v.teleported,persistent:v.persistent,"gpu-acceleration":d(c),"onUpdate:visible":d(r),onBeforeShow:h,onBeforeHide:m,onShow:g,onHide:p}),{content:P(()=>[v.title?(x(),j("div",{key:0,class:M(d(i).e("title")),role:"title"},ce(v.title),3)):ae("v-if",!0),fe(v.$slots,"default",{},()=>[Te(ce(v.content),1)])]),default:P(()=>[v.$slots.reference?fe(v.$slots,"reference",{key:0}):ae("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Yre=Ue(Gre,[["__file","popover.vue"]]);const nx=(e,t)=>{const n=t.arg||t.value,s=n==null?void 0:n.popperRef;s&&(s.triggerRef=e)};var Xre={mounted(e,t){nx(e,t)},updated(e,t){nx(e,t)}};const Qre="popover",X8=Sq(Xre,Qre),Jre=Tt(Yre,{directive:X8}),Zre=Fe({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:oe(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:oe([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:oe(Function),default:e=>`${e}%`}}),eie=J({name:"ElProgress"}),tie=J({...eie,props:Zre,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},s=Re("progress"),r=k(()=>{const b={width:`${t.percentage}%`,animationDuration:`${t.duration}s`},T=_(t.percentage);return T.includes("gradient")?b.background=T:b.backgroundColor=T,b}),i=k(()=>(t.strokeWidth/t.width*100).toFixed(1)),a=k(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(i.value)/2}`,10):0),o=k(()=>{const b=a.value,T=t.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${T?"":"-"}${b}
|
||
a ${b} ${b} 0 1 1 0 ${T?"-":""}${b*2}
|
||
a ${b} ${b} 0 1 1 0 ${T?"":"-"}${b*2}
|
||
`}),l=k(()=>2*Math.PI*a.value),u=k(()=>t.type==="dashboard"?.75:1),c=k(()=>`${-1*l.value*(1-u.value)/2}px`),f=k(()=>({strokeDasharray:`${l.value*u.value}px, ${l.value}px`,strokeDashoffset:c.value})),h=k(()=>({strokeDasharray:`${l.value*u.value*(t.percentage/100)}px, ${l.value}px`,strokeDashoffset:c.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),m=k(()=>{let b;return t.color?b=_(t.percentage):b=n[t.status]||n.default,b}),g=k(()=>t.status==="warning"?Vg:t.type==="line"?t.status==="success"?I1:Uo:t.status==="success"?uh:_i),p=k(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),v=k(()=>t.format(t.percentage));function y(b){const T=100/b.length;return b.map((C,D)=>ht(C)?{color:C,percentage:(D+1)*T}:C).sort((C,D)=>C.percentage-D.percentage)}const _=b=>{var T;const{color:S}=t;if(pt(S))return S(b);if(ht(S))return S;{const C=y(S);for(const D of C)if(D.percentage>b)return D.color;return(T=C[C.length-1])==null?void 0:T.color}};return(b,T)=>(x(),j("div",{class:M([d(s).b(),d(s).m(b.type),d(s).is(b.status),{[d(s).m("without-text")]:!b.showText,[d(s).m("text-inside")]:b.textInside}]),role:"progressbar","aria-valuenow":b.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[b.type==="line"?(x(),j("div",{key:0,class:M(d(s).b("bar"))},[O("div",{class:M(d(s).be("bar","outer")),style:st({height:`${b.strokeWidth}px`})},[O("div",{class:M([d(s).be("bar","inner"),{[d(s).bem("bar","inner","indeterminate")]:b.indeterminate},{[d(s).bem("bar","inner","striped")]:b.striped},{[d(s).bem("bar","inner","striped-flow")]:b.stripedFlow}]),style:st(d(r))},[(b.showText||b.$slots.default)&&b.textInside?(x(),j("div",{key:0,class:M(d(s).be("bar","innerText"))},[fe(b.$slots,"default",{percentage:b.percentage},()=>[O("span",null,ce(d(v)),1)])],2)):ae("v-if",!0)],6)],6)],2)):(x(),j("div",{key:1,class:M(d(s).b("circle")),style:st({height:`${b.width}px`,width:`${b.width}px`})},[(x(),j("svg",{viewBox:"0 0 100 100"},[O("path",{class:M(d(s).be("circle","track")),d:d(o),stroke:`var(${d(s).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":b.strokeLinecap,"stroke-width":d(i),fill:"none",style:st(d(f))},null,14,["d","stroke","stroke-linecap","stroke-width"]),O("path",{class:M(d(s).be("circle","path")),d:d(o),stroke:d(m),fill:"none",opacity:b.percentage?1:0,"stroke-linecap":b.strokeLinecap,"stroke-width":d(i),style:st(d(h))},null,14,["d","stroke","opacity","stroke-linecap","stroke-width"])]))],6)),(b.showText||b.$slots.default)&&!b.textInside?(x(),j("div",{key:2,class:M(d(s).e("text")),style:st({fontSize:`${d(p)}px`})},[fe(b.$slots,"default",{percentage:b.percentage},()=>[b.status?(x(),de(d(tt),{key:1},{default:P(()=>[(x(),de(Rt(d(g))))]),_:1})):(x(),j("span",{key:0},ce(d(v)),1))])],6)):ae("v-if",!0)],10,["aria-valuenow"]))}});var nie=Ue(tie,[["__file","progress.vue"]]);const Q8=Tt(nie),sie=Fe({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:oe([Array,Object]),default:()=>xn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:oe([Array,Object]),default:()=>[hp,hp,hp]},voidIcon:{type:ln,default:()=>nq},disabledVoidIcon:{type:ln,default:()=>hp},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:oe(Array),default:()=>xn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:ts,clearable:Boolean,..._s(["ariaLabel"])}),rie={[gn]:e=>ut(e),[At]:e=>ut(e)},iie=J({name:"ElRate"}),aie=J({...iie,props:sie,emits:rie,setup(e,{expose:t,emit:n}){const s=e;function r(B,Q){const Y=Z=>Pt(Z),F=Object.keys(Q).map(Z=>+Z).filter(Z=>{const se=Q[Z];return(Y(se)?se.excluded:!1)?B<Z:B<=Z}).sort((Z,se)=>Z-se),H=Q[F[0]];return Y(H)&&H.value||H}const i=Xe(Gl,void 0),a=Xe(Qi,void 0),o=Kn(),l=Re("rate"),{inputId:u,isLabeledByFormItem:c}=Ai(s,{formItemContext:a}),f=q(s.modelValue),h=q(-1),m=q(!0),g=k(()=>[l.b(),l.m(o.value)]),p=k(()=>s.disabled||(i==null?void 0:i.disabled)),v=k(()=>l.cssVarBlock({"void-color":s.voidColor,"disabled-void-color":s.disabledVoidColor,"fill-color":T.value})),y=k(()=>{let B="";return s.showScore?B=s.scoreTemplate.replace(/\{\s*value\s*\}/,p.value?`${s.modelValue}`:`${f.value}`):s.showText&&(B=s.texts[Math.ceil(f.value)-1]),B}),_=k(()=>s.modelValue*100-Math.floor(s.modelValue)*100),b=k(()=>Ye(s.colors)?{[s.lowThreshold]:s.colors[0],[s.highThreshold]:{value:s.colors[1],excluded:!0},[s.max]:s.colors[2]}:s.colors),T=k(()=>{const B=r(f.value,b.value);return Pt(B)?"":B}),S=k(()=>{let B="";return p.value?B=`${_.value}%`:s.allowHalf&&(B="50%"),{color:T.value,width:B}}),C=k(()=>{let B=Ye(s.icons)?[...s.icons]:{...s.icons};return B=mo(B),Ye(B)?{[s.lowThreshold]:B[0],[s.highThreshold]:{value:B[1],excluded:!0},[s.max]:B[2]}:B}),D=k(()=>r(s.modelValue,C.value)),N=k(()=>p.value?ht(s.disabledVoidIcon)?s.disabledVoidIcon:mo(s.disabledVoidIcon):ht(s.voidIcon)?s.voidIcon:mo(s.voidIcon)),$=k(()=>r(f.value,C.value));function L(B){const Q=p.value&&_.value>0&&B-1<s.modelValue&&B>s.modelValue,Y=s.allowHalf&&m.value&&B-.5<=f.value&&B>f.value;return Q||Y}function z(B){s.clearable&&B===s.modelValue&&(B=0),n(At,B),s.modelValue!==B&&n("change",B)}function U(B){p.value||(s.allowHalf&&m.value?z(f.value):z(B))}function W(B){if(p.value)return;let Q=f.value;const Y=B.code;return Y===at.up||Y===at.right?(s.allowHalf?Q+=.5:Q+=1,B.stopPropagation(),B.preventDefault()):(Y===at.left||Y===at.down)&&(s.allowHalf?Q-=.5:Q-=1,B.stopPropagation(),B.preventDefault()),Q=Q<0?0:Q,Q=Q>s.max?s.max:Q,n(At,Q),n("change",Q),Q}function K(B,Q){if(!p.value){if(s.allowHalf&&Q){let Y=Q.target;or(Y,l.e("item"))&&(Y=Y.querySelector(`.${l.e("icon")}`)),(Y.clientWidth===0||or(Y,l.e("decimal")))&&(Y=Y.parentNode),m.value=Q.offsetX*2<=Y.clientWidth,f.value=m.value?B-.5:B}else f.value=B;h.value=B}}function X(){p.value||(s.allowHalf&&(m.value=s.modelValue!==Math.floor(s.modelValue)),f.value=s.modelValue,h.value=-1)}return xe(()=>s.modelValue,B=>{f.value=B,m.value=s.modelValue!==Math.floor(s.modelValue)}),s.modelValue||n(At,0),t({setCurrentValue:K,resetCurrentValue:X}),(B,Q)=>{var Y;return x(),j("div",{id:d(u),class:M([d(g),d(l).is("disabled",d(p))]),role:"slider","aria-label":d(c)?void 0:B.ariaLabel||"rating","aria-labelledby":d(c)?(Y=d(a))==null?void 0:Y.labelId:void 0,"aria-valuenow":f.value,"aria-valuetext":d(y)||void 0,"aria-valuemin":"0","aria-valuemax":B.max,tabindex:"0",style:st(d(v)),onKeydown:W},[(x(!0),j(Ke,null,bt(B.max,(F,H)=>(x(),j("span",{key:H,class:M(d(l).e("item")),onMousemove:Z=>K(F,Z),onMouseleave:X,onClick:Z=>U(F)},[E(d(tt),{class:M([d(l).e("icon"),{hover:h.value===F},d(l).is("active",F<=f.value)])},{default:P(()=>[L(F)?ae("v-if",!0):(x(),j(Ke,{key:0},[yt((x(),de(Rt(d($)),null,null,512)),[[Bt,F<=f.value]]),yt((x(),de(Rt(d(N)),null,null,512)),[[Bt,!(F<=f.value)]])],64)),L(F)?(x(),j(Ke,{key:1},[(x(),de(Rt(d(N)),{class:M([d(l).em("decimal","box")])},null,8,["class"])),E(d(tt),{style:st(d(S)),class:M([d(l).e("icon"),d(l).e("decimal")])},{default:P(()=>[(x(),de(Rt(d(D))))]),_:1},8,["style","class"])],64)):ae("v-if",!0)]),_:2},1032,["class"])],42,["onMousemove","onClick"]))),128)),B.showText||B.showScore?(x(),j("span",{key:0,class:M(d(l).e("text")),style:st({color:B.textColor})},ce(d(y)),7)):ae("v-if",!0)],46,["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"])}}});var oie=Ue(aie,[["__file","rate.vue"]]);const lie=Tt(oie),wu={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},sx={[wu.success]:Zz,[wu.warning]:Vg,[wu.error]:D1,[wu.info]:P1},uie=Fe({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),cie=J({name:"ElResult"}),die=J({...cie,props:uie,setup(e){const t=e,n=Re("result"),s=k(()=>{const r=t.icon,i=r&&wu[r]?wu[r]:"icon-info",a=sx[i]||sx["icon-info"];return{class:i,component:a}});return(r,i)=>(x(),j("div",{class:M(d(n).b())},[O("div",{class:M(d(n).e("icon"))},[fe(r.$slots,"icon",{},()=>[d(s).component?(x(),de(Rt(d(s).component),{key:0,class:M(d(s).class)},null,8,["class"])):ae("v-if",!0)])],2),r.title||r.$slots.title?(x(),j("div",{key:0,class:M(d(n).e("title"))},[fe(r.$slots,"title",{},()=>[O("p",null,ce(r.title),1)])],2)):ae("v-if",!0),r.subTitle||r.$slots["sub-title"]?(x(),j("div",{key:1,class:M(d(n).e("subtitle"))},[fe(r.$slots,"sub-title",{},()=>[O("p",null,ce(r.subTitle),1)])],2)):ae("v-if",!0),r.$slots.extra?(x(),j("div",{key:2,class:M(d(n).e("extra"))},[fe(r.$slots,"extra")],2)):ae("v-if",!0)],2))}});var fie=Ue(die,[["__file","result.vue"]]);const hie=Tt(fie);var rx=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function pie(e,t){return!!(e===t||rx(e)&&rx(t))}function mie(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!pie(e[n],t[n]))return!1;return!0}function gie(e,t){t===void 0&&(t=mie);var n=null;function s(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var a=e.apply(this,r);return n={lastResult:a,lastArgs:r,lastThis:this},a}return s.clear=function(){n=null},s}const J8=()=>{const t=Ot().proxy.$props;return k(()=>{const n=(s,r,i)=>({});return t.perfMode?Ng(n):gie(n)})},xb=50,Nm="itemRendered",Mm="scroll",Su="forward",$m="backward",Ur="auto",nv="smart",Mf="start",Bi="center",$f="end",ac="horizontal",N2="vertical",vie="ltr",Mu="rtl",Lf="negative",M2="positive-ascending",$2="positive-descending",yie={[ac]:"left",[N2]:"top"},bie=20,_ie={[ac]:"deltaX",[N2]:"deltaY"},wie=({atEndEdge:e,atStartEdge:t,layout:n},s)=>{let r,i=0;const a=l=>l<0&&t.value||l>0&&e.value;return{hasReachedEdge:a,onWheel:l=>{Rl(r);const u=l[_ie[n.value]];a(i)&&a(i+u)||(i+=u,u1()||l.preventDefault(),r=xo(()=>{s(i),i=0}))}}},kb=xi({type:oe([Number,Function]),required:!0}),Ab=xi({type:Number}),Ib=xi({type:Number,default:2}),Sie=xi({type:String,values:["ltr","rtl"],default:"ltr"}),Db=xi({type:Number,default:0}),Lm=xi({type:Number,required:!0}),Z8=xi({type:String,values:["horizontal","vertical"],default:N2}),eO=Fe({className:{type:String,default:""},containerElement:{type:oe([String,Object]),default:"div"},data:{type:oe(Array),default:()=>xn([])},direction:Sie,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:oe([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),tO=Fe({cache:Ib,estimatedItemSize:Ab,layout:Z8,initScrollOffset:Db,total:Lm,itemSize:kb,...eO}),Ob={type:Number,default:6},nO={type:Number,default:0},sO={type:Number,default:2},Tl=Fe({columnCache:Ib,columnWidth:kb,estimatedColumnWidth:Ab,estimatedRowHeight:Ab,initScrollLeft:Db,initScrollTop:Db,itemKey:{type:oe(Function),default:({columnIndex:e,rowIndex:t})=>`${t}:${e}`},rowCache:Ib,rowHeight:kb,totalColumn:Lm,totalRow:Lm,hScrollbarSize:Ob,vScrollbarSize:Ob,scrollbarStartGap:nO,scrollbarEndGap:sO,role:String,...eO}),rO=Fe({alwaysOn:Boolean,class:String,layout:Z8,total:Lm,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize:Ob,startGap:nO,endGap:sO,visible:Boolean}),hl=(e,t)=>e<t?Su:$m,Bf=e=>e===vie||e===Mu||e===ac,ix=e=>e===Mu;let au=null;function Bm(e=!1){if(au===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const s=document.createElement("div"),r=s.style;return r.width="100px",r.height="100px",t.appendChild(s),document.body.appendChild(t),t.scrollLeft>0?au=$2:(t.scrollLeft=1,t.scrollLeft===0?au=Lf:au=M2),document.body.removeChild(t),au}return au}function Tie({move:e,size:t,bar:n},s){const r={},i=`translate${n.axis}(${e}px)`;return r[n.size]=t,r.transform=i,r.msTransform=i,r.webkitTransform=i,s==="horizontal"?r.height="100%":r.width="100%",r}const Pb=J({name:"ElVirtualScrollBar",props:rO,emits:["scroll","start-move","stop-move"],setup(e,{emit:t}){const n=k(()=>e.startGap+e.endGap),s=Re("virtual-scrollbar"),r=Re("scrollbar"),i=q(),a=q();let o=null,l=null;const u=Ct({isDragging:!1,traveled:0}),c=k(()=>GI[e.layout]),f=k(()=>e.clientSize-d(n)),h=k(()=>({position:"absolute",width:`${ac===e.layout?f.value:e.scrollbarSize}px`,height:`${ac===e.layout?e.scrollbarSize:f.value}px`,[yie[e.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),m=k(()=>{const C=e.ratio,D=e.clientSize;if(C>=100)return Number.POSITIVE_INFINITY;if(C>=50)return C*D/100;const N=D/3;return Math.floor(Math.min(Math.max(C*D,bie),N))}),g=k(()=>{if(!Number.isFinite(m.value))return{display:"none"};const C=`${m.value}px`;return Tie({bar:c.value,size:C,move:u.traveled},e.layout)}),p=k(()=>Math.floor(e.clientSize-m.value-d(n))),v=()=>{window.addEventListener("mousemove",T),window.addEventListener("mouseup",b);const C=d(a);C&&(l=document.onselectstart,document.onselectstart=()=>!1,C.addEventListener("touchmove",T,{passive:!0}),C.addEventListener("touchend",b))},y=()=>{window.removeEventListener("mousemove",T),window.removeEventListener("mouseup",b),document.onselectstart=l,l=null;const C=d(a);C&&(C.removeEventListener("touchmove",T),C.removeEventListener("touchend",b))},_=C=>{C.stopImmediatePropagation(),!(C.ctrlKey||[1,2].includes(C.button))&&(u.isDragging=!0,u[c.value.axis]=C.currentTarget[c.value.offset]-(C[c.value.client]-C.currentTarget.getBoundingClientRect()[c.value.direction]),t("start-move"),v())},b=()=>{u.isDragging=!1,u[c.value.axis]=0,t("stop-move"),y()},T=C=>{const{isDragging:D}=u;if(!D||!a.value||!i.value)return;const N=u[c.value.axis];if(!N)return;Rl(o);const $=(i.value.getBoundingClientRect()[c.value.direction]-C[c.value.client])*-1,L=a.value[c.value.offset]-N,z=$-L;o=xo(()=>{u.traveled=Math.max(e.startGap,Math.min(z,p.value)),t("scroll",z,p.value)})},S=C=>{const D=Math.abs(C.target.getBoundingClientRect()[c.value.direction]-C[c.value.client]),N=a.value[c.value.offset]/2,$=D-N;u.traveled=Math.max(0,Math.min($,p.value)),t("scroll",$,p.value)};return xe(()=>e.scrollFrom,C=>{u.isDragging||(u.traveled=Math.ceil(C*p.value))}),un(()=>{y()}),()=>ot("div",{role:"presentation",ref:i,class:[s.b(),e.class,(e.alwaysOn||u.isDragging)&&"always-on"],style:h.value,onMousedown:ft(S,["stop","prevent"]),onTouchstartPrevent:_},ot("div",{ref:a,class:r.e("thumb"),style:g.value,onMousedown:_},[]))}}),iO=({name:e,getOffset:t,getItemSize:n,getItemOffset:s,getEstimatedTotalSize:r,getStartIndexForOffset:i,getStopIndexForStartIndex:a,initCache:o,clearCache:l,validateProps:u})=>J({name:e??"ElVirtualList",props:tO,emits:[Nm,Mm],setup(c,{emit:f,expose:h}){u(c);const m=Ot(),g=Re("vl"),p=q(o(c,m)),v=J8(),y=q(),_=q(),b=q(),T=q({isScrolling:!1,scrollDir:"forward",scrollOffset:ut(c.initScrollOffset)?c.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:c.scrollbarAlwaysOn}),S=k(()=>{const{total:ne,cache:we}=c,{isScrolling:De,scrollDir:Ee,scrollOffset:te}=d(T);if(ne===0)return[0,0,0,0];const ge=i(c,te,d(p)),pe=a(c,ge,te,d(p)),Oe=!De||Ee===$m?Math.max(1,we):1,Pe=!De||Ee===Su?Math.max(1,we):1;return[Math.max(0,ge-Oe),Math.max(0,Math.min(ne-1,pe+Pe)),ge,pe]}),C=k(()=>r(c,d(p))),D=k(()=>Bf(c.layout)),N=k(()=>[{position:"relative",[`overflow-${D.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:c.direction,height:ut(c.height)?`${c.height}px`:c.height,width:ut(c.width)?`${c.width}px`:c.width},c.style]),$=k(()=>{const ne=d(C),we=d(D);return{height:we?"100%":`${ne}px`,pointerEvents:d(T).isScrolling?"none":void 0,width:we?`${ne}px`:"100%"}}),L=k(()=>D.value?c.width:c.height),{onWheel:z}=wie({atStartEdge:k(()=>T.value.scrollOffset<=0),atEndEdge:k(()=>T.value.scrollOffset>=C.value),layout:k(()=>c.layout)},ne=>{var we,De;(De=(we=b.value).onMouseUp)==null||De.call(we),Q(Math.min(T.value.scrollOffset+ne,C.value-L.value))});an(y,"wheel",z,{passive:!1});const U=()=>{const{total:ne}=c;if(ne>0){const[te,ge,pe,Oe]=d(S);f(Nm,te,ge,pe,Oe)}const{scrollDir:we,scrollOffset:De,updateRequested:Ee}=d(T);f(Mm,we,De,Ee)},W=ne=>{const{clientHeight:we,scrollHeight:De,scrollTop:Ee}=ne.currentTarget,te=d(T);if(te.scrollOffset===Ee)return;const ge=Math.max(0,Math.min(Ee,De-we));T.value={...te,isScrolling:!0,scrollDir:hl(te.scrollOffset,ge),scrollOffset:ge,updateRequested:!1},it(H)},K=ne=>{const{clientWidth:we,scrollLeft:De,scrollWidth:Ee}=ne.currentTarget,te=d(T);if(te.scrollOffset===De)return;const{direction:ge}=c;let pe=De;if(ge===Mu)switch(Bm()){case Lf:{pe=-De;break}case $2:{pe=Ee-we-De;break}}pe=Math.max(0,Math.min(pe,Ee-we)),T.value={...te,isScrolling:!0,scrollDir:hl(te.scrollOffset,pe),scrollOffset:pe,updateRequested:!1},it(H)},X=ne=>{d(D)?K(ne):W(ne),U()},B=(ne,we)=>{const De=(C.value-L.value)/we*ne;Q(Math.min(C.value-L.value,De))},Q=ne=>{ne=Math.max(ne,0),ne!==d(T).scrollOffset&&(T.value={...d(T),scrollOffset:ne,scrollDir:hl(d(T).scrollOffset,ne),updateRequested:!0},it(H))},Y=(ne,we=Ur)=>{const{scrollOffset:De}=d(T);ne=Math.max(0,Math.min(ne,c.total-1)),Q(t(c,ne,we,De,d(p)))},F=ne=>{const{direction:we,itemSize:De,layout:Ee}=c,te=v.value(l&&De,l&&Ee,l&&we);let ge;if(jt(te,String(ne)))ge=te[ne];else{const pe=s(c,ne,d(p)),Oe=n(c,ne,d(p)),Pe=d(D),ve=we===Mu,ee=Pe?pe:0;te[ne]=ge={position:"absolute",left:ve?void 0:`${ee}px`,right:ve?`${ee}px`:void 0,top:Pe?0:`${pe}px`,height:Pe?"100%":`${Oe}px`,width:Pe?`${Oe}px`:"100%"}}return ge},H=()=>{T.value.isScrolling=!1,it(()=>{v.value(-1,null,null)})},Z=()=>{const ne=y.value;ne&&(ne.scrollTop=0)};gt(()=>{if(!Ht)return;const{initScrollOffset:ne}=c,we=d(y);ut(ne)&&we&&(d(D)?we.scrollLeft=ne:we.scrollTop=ne),U()}),Na(()=>{const{direction:ne,layout:we}=c,{scrollOffset:De,updateRequested:Ee}=d(T),te=d(y);if(Ee&&te)if(we===ac)if(ne===Mu)switch(Bm()){case Lf:{te.scrollLeft=-De;break}case M2:{te.scrollLeft=De;break}default:{const{clientWidth:ge,scrollWidth:pe}=te;te.scrollLeft=pe-ge-De;break}}else te.scrollLeft=De;else te.scrollTop=De}),s1(()=>{d(y).scrollTop=d(T).scrollOffset});const se={ns:g,clientSize:L,estimatedTotalSize:C,windowStyle:N,windowRef:y,innerRef:_,innerStyle:$,itemsToRender:S,scrollbarRef:b,states:T,getItemStyle:F,onScroll:X,onScrollbarScroll:B,onWheel:z,scrollTo:Q,scrollToItem:Y,resetScrollTop:Z};return h({windowRef:y,innerRef:_,getItemStyleCache:v,scrollTo:Q,scrollToItem:Y,resetScrollTop:Z,states:T}),se},render(c){var f;const{$slots:h,className:m,clientSize:g,containerElement:p,data:v,getItemStyle:y,innerElement:_,itemsToRender:b,innerStyle:T,layout:S,total:C,onScroll:D,onScrollbarScroll:N,states:$,useIsScrolling:L,windowStyle:z,ns:U}=c,[W,K]=b,X=Rt(p),B=Rt(_),Q=[];if(C>0)for(let Z=W;Z<=K;Z++)Q.push(ot(Ke,{key:Z},(f=h.default)==null?void 0:f.call(h,{data:v,index:Z,isScrolling:L?$.isScrolling:void 0,style:y(Z)})));const Y=[ot(B,{style:T,ref:"innerRef"},ht(B)?Q:{default:()=>Q})],F=ot(Pb,{ref:"scrollbarRef",clientSize:g,layout:S,onScroll:N,ratio:g*100/this.estimatedTotalSize,scrollFrom:$.scrollOffset/(this.estimatedTotalSize-g),total:C}),H=ot(X,{class:[U.e("window"),m],style:z,onScroll:D,ref:"windowRef",key:0},ht(X)?[Y]:{default:()=>[Y]});return ot("div",{key:0,class:[U.e("wrapper"),$.scrollbarAlwaysOn?"always-on":""]},[H,F])}}),aO=iO({name:"ElFixedSizeList",getItemOffset:({itemSize:e},t)=>t*e,getItemSize:({itemSize:e})=>e,getEstimatedTotalSize:({total:e,itemSize:t})=>t*e,getOffset:({height:e,total:t,itemSize:n,layout:s,width:r},i,a,o)=>{const l=Bf(s)?r:e,u=Math.max(0,t*n-l),c=Math.min(u,i*n),f=Math.max(0,(i+1)*n-l);switch(a===nv&&(o>=f-l&&o<=c+l?a=Ur:a=Bi),a){case Mf:return c;case $f:return f;case Bi:{const h=Math.round(f+(c-f)/2);return h<Math.ceil(l/2)?0:h>u+Math.floor(l/2)?u:h}case Ur:default:return o>=f&&o<=c?o:o<f?f:c}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:s,width:r},i,a)=>{const o=i*n,l=Bf(s)?r:e,u=Math.ceil((l+a-o)/n);return Math.max(0,Math.min(t-1,i+u-1))},initCache(){},clearCache:!0,validateProps(){}}),Tu=(e,t,n)=>{const{itemSize:s}=e,{items:r,lastVisitedIndex:i}=n;if(t>i){let a=0;if(i>=0){const o=r[i];a=o.offset+o.size}for(let o=i+1;o<=t;o++){const l=s(o);r[o]={offset:a,size:l},a+=l}n.lastVisitedIndex=t}return r[t]},Cie=(e,t,n)=>{const{items:s,lastVisitedIndex:r}=t;return(r>0?s[r].offset:0)>=n?oO(e,t,0,r,n):Eie(e,t,Math.max(0,r),n)},oO=(e,t,n,s,r)=>{for(;n<=s;){const i=n+Math.floor((s-n)/2),a=Tu(e,i,t).offset;if(a===r)return i;a<r?n=i+1:a>r&&(s=i-1)}return Math.max(0,n-1)},Eie=(e,t,n,s)=>{const{total:r}=e;let i=1;for(;n<r&&Tu(e,n,t).offset<s;)n+=i,i*=2;return oO(e,t,Math.floor(n/2),Math.min(n,r-1),s)},ax=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:s})=>{let r=0;if(s>=e&&(s=e-1),s>=0){const o=t[s];r=o.offset+o.size}const a=(e-s-1)*n;return r+a},xie=iO({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>Tu(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:ax,getOffset:(e,t,n,s,r)=>{const{height:i,layout:a,width:o}=e,l=Bf(a)?o:i,u=Tu(e,t,r),c=ax(e,r),f=Math.max(0,Math.min(c-l,u.offset)),h=Math.max(0,u.offset-l+u.size);switch(n===nv&&(s>=h-l&&s<=f+l?n=Ur:n=Bi),n){case Mf:return f;case $f:return h;case Bi:return Math.round(h+(f-h)/2);case Ur:default:return s>=h&&s<=f?s:s<h?h:f}},getStartIndexForOffset:(e,t,n)=>Cie(e,n,t),getStopIndexForStartIndex:(e,t,n,s)=>{const{height:r,total:i,layout:a,width:o}=e,l=Bf(a)?o:r,u=Tu(e,t,s),c=n+l;let f=u.offset+u.size,h=t;for(;h<i-1&&f<c;)h++,f+=Tu(e,h,s).size;return h},initCache({estimatedItemSize:e=xb},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(s,r=!0)=>{var i,a;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,s-1),(i=t.exposed)==null||i.getItemStyleCache(-1),r&&((a=t.proxy)==null||a.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{}}),kie=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:s},r)=>{let i=null,a=0,o=0;const l=(c,f)=>{const h=c<=0&&t.value||c>=0&&e.value,m=f<=0&&s.value||f>=0&&n.value;return h&&m};return{hasReachedEdge:l,onWheel:c=>{Rl(i);let f=c.deltaX,h=c.deltaY;Math.abs(f)>Math.abs(h)?h=0:f=0,c.shiftKey&&h!==0&&(f=h,h=0),!(l(a,o)&&l(a+f,o+h))&&(a+=f,o+=h,c.preventDefault(),i=xo(()=>{r(a,o),a=0,o=0}))}}},lO=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:s,getColumnStopIndexForStartIndex:r,getEstimatedTotalHeight:i,getEstimatedTotalWidth:a,getColumnOffset:o,getRowOffset:l,getRowPosition:u,getRowStartIndexForOffset:c,getRowStopIndexForStartIndex:f,initCache:h,injectToInstance:m,validateProps:g})=>J({name:e??"ElVirtualList",props:Tl,emits:[Nm,Mm],setup(p,{emit:v,expose:y,slots:_}){const b=Re("vl");g(p);const T=Ot(),S=q(h(p,T));m==null||m(T,S);const C=q(),D=q(),N=q(),$=q(null),L=q({isScrolling:!1,scrollLeft:ut(p.initScrollLeft)?p.initScrollLeft:0,scrollTop:ut(p.initScrollTop)?p.initScrollTop:0,updateRequested:!1,xAxisScrollDir:Su,yAxisScrollDir:Su}),z=J8(),U=k(()=>Number.parseInt(`${p.height}`,10)),W=k(()=>Number.parseInt(`${p.width}`,10)),K=k(()=>{const{totalColumn:_e,totalRow:ke,columnCache:Be}=p,{isScrolling:Ie,xAxisScrollDir:ze,scrollLeft:Ve}=d(L);if(_e===0||ke===0)return[0,0,0,0];const Ze=s(p,Ve,d(S)),je=r(p,Ze,Ve,d(S)),Ae=!Ie||ze===$m?Math.max(1,Be):1,nt=!Ie||ze===Su?Math.max(1,Be):1;return[Math.max(0,Ze-Ae),Math.max(0,Math.min(_e-1,je+nt)),Ze,je]}),X=k(()=>{const{totalColumn:_e,totalRow:ke,rowCache:Be}=p,{isScrolling:Ie,yAxisScrollDir:ze,scrollTop:Ve}=d(L);if(_e===0||ke===0)return[0,0,0,0];const Ze=c(p,Ve,d(S)),je=f(p,Ze,Ve,d(S)),Ae=!Ie||ze===$m?Math.max(1,Be):1,nt=!Ie||ze===Su?Math.max(1,Be):1;return[Math.max(0,Ze-Ae),Math.max(0,Math.min(ke-1,je+nt)),Ze,je]}),B=k(()=>i(p,d(S))),Q=k(()=>a(p,d(S))),Y=k(()=>{var _e;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:p.direction,height:ut(p.height)?`${p.height}px`:p.height,width:ut(p.width)?`${p.width}px`:p.width},(_e=p.style)!=null?_e:{}]}),F=k(()=>{const _e=`${d(Q)}px`;return{height:`${d(B)}px`,pointerEvents:d(L).isScrolling?"none":void 0,width:_e}}),H=()=>{const{totalColumn:_e,totalRow:ke}=p;if(_e>0&&ke>0){const[je,Ae,nt,_t]=d(K),[xt,It,Kt,pn]=d(X);v(Nm,{columnCacheStart:je,columnCacheEnd:Ae,rowCacheStart:xt,rowCacheEnd:It,columnVisibleStart:nt,columnVisibleEnd:_t,rowVisibleStart:Kt,rowVisibleEnd:pn})}const{scrollLeft:Be,scrollTop:Ie,updateRequested:ze,xAxisScrollDir:Ve,yAxisScrollDir:Ze}=d(L);v(Mm,{xAxisScrollDir:Ve,scrollLeft:Be,yAxisScrollDir:Ze,scrollTop:Ie,updateRequested:ze})},Z=_e=>{const{clientHeight:ke,clientWidth:Be,scrollHeight:Ie,scrollLeft:ze,scrollTop:Ve,scrollWidth:Ze}=_e.currentTarget,je=d(L);if(je.scrollTop===Ve&&je.scrollLeft===ze)return;let Ae=ze;if(ix(p.direction))switch(Bm()){case Lf:Ae=-ze;break;case $2:Ae=Ze-Be-ze;break}L.value={...je,isScrolling:!0,scrollLeft:Ae,scrollTop:Math.max(0,Math.min(Ve,Ie-ke)),updateRequested:!0,xAxisScrollDir:hl(je.scrollLeft,Ae),yAxisScrollDir:hl(je.scrollTop,Ve)},it(()=>ge()),pe(),H()},se=(_e,ke)=>{const Be=d(U),Ie=(B.value-Be)/ke*_e;De({scrollTop:Math.min(B.value-Be,Ie)})},ne=(_e,ke)=>{const Be=d(W),Ie=(Q.value-Be)/ke*_e;De({scrollLeft:Math.min(Q.value-Be,Ie)})},{onWheel:we}=kie({atXStartEdge:k(()=>L.value.scrollLeft<=0),atXEndEdge:k(()=>L.value.scrollLeft>=Q.value-d(W)),atYStartEdge:k(()=>L.value.scrollTop<=0),atYEndEdge:k(()=>L.value.scrollTop>=B.value-d(U))},(_e,ke)=>{var Be,Ie,ze,Ve;(Ie=(Be=D.value)==null?void 0:Be.onMouseUp)==null||Ie.call(Be),(Ve=(ze=N.value)==null?void 0:ze.onMouseUp)==null||Ve.call(ze);const Ze=d(W),je=d(U);De({scrollLeft:Math.min(L.value.scrollLeft+_e,Q.value-Ze),scrollTop:Math.min(L.value.scrollTop+ke,B.value-je)})});an(C,"wheel",we,{passive:!1});const De=({scrollLeft:_e=L.value.scrollLeft,scrollTop:ke=L.value.scrollTop})=>{_e=Math.max(_e,0),ke=Math.max(ke,0);const Be=d(L);ke===Be.scrollTop&&_e===Be.scrollLeft||(L.value={...Be,xAxisScrollDir:hl(Be.scrollLeft,_e),yAxisScrollDir:hl(Be.scrollTop,ke),scrollLeft:_e,scrollTop:ke,updateRequested:!0},it(()=>ge()),pe(),H())},Ee=(_e=0,ke=0,Be=Ur)=>{const Ie=d(L);ke=Math.max(0,Math.min(ke,p.totalColumn-1)),_e=Math.max(0,Math.min(_e,p.totalRow-1));const ze=Z3(b.namespace.value),Ve=d(S),Ze=i(p,Ve),je=a(p,Ve);De({scrollLeft:o(p,ke,Be,Ie.scrollLeft,Ve,je>p.width?ze:0),scrollTop:l(p,_e,Be,Ie.scrollTop,Ve,Ze>p.height?ze:0)})},te=(_e,ke)=>{const{columnWidth:Be,direction:Ie,rowHeight:ze}=p,Ve=z.value(t&&Be,t&&ze,t&&Ie),Ze=`${_e},${ke}`;if(jt(Ve,Ze))return Ve[Ze];{const[,je]=n(p,ke,d(S)),Ae=d(S),nt=ix(Ie),[_t,xt]=u(p,_e,Ae),[It]=n(p,ke,Ae);return Ve[Ze]={position:"absolute",left:nt?void 0:`${je}px`,right:nt?`${je}px`:void 0,top:`${xt}px`,height:`${_t}px`,width:`${It}px`},Ve[Ze]}},ge=()=>{L.value.isScrolling=!1,it(()=>{z.value(-1,null,null)})};gt(()=>{if(!Ht)return;const{initScrollLeft:_e,initScrollTop:ke}=p,Be=d(C);Be&&(ut(_e)&&(Be.scrollLeft=_e),ut(ke)&&(Be.scrollTop=ke)),H()});const pe=()=>{const{direction:_e}=p,{scrollLeft:ke,scrollTop:Be,updateRequested:Ie}=d(L),ze=d(C);if(Ie&&ze){if(_e===Mu)switch(Bm()){case Lf:{ze.scrollLeft=-ke;break}case M2:{ze.scrollLeft=ke;break}default:{const{clientWidth:Ve,scrollWidth:Ze}=ze;ze.scrollLeft=Ze-Ve-ke;break}}else ze.scrollLeft=Math.max(0,ke);ze.scrollTop=Math.max(0,Be)}},{resetAfterColumnIndex:Oe,resetAfterRowIndex:Pe,resetAfter:ve}=T.proxy;y({windowRef:C,innerRef:$,getItemStyleCache:z,scrollTo:De,scrollToItem:Ee,states:L,resetAfterColumnIndex:Oe,resetAfterRowIndex:Pe,resetAfter:ve});const ee=()=>{const{scrollbarAlwaysOn:_e,scrollbarStartGap:ke,scrollbarEndGap:Be,totalColumn:Ie,totalRow:ze}=p,Ve=d(W),Ze=d(U),je=d(Q),Ae=d(B),{scrollLeft:nt,scrollTop:_t}=d(L),xt=ot(Pb,{ref:D,alwaysOn:_e,startGap:ke,endGap:Be,class:b.e("horizontal"),clientSize:Ve,layout:"horizontal",onScroll:ne,ratio:Ve*100/je,scrollFrom:nt/(je-Ve),total:ze,visible:!0}),It=ot(Pb,{ref:N,alwaysOn:_e,startGap:ke,endGap:Be,class:b.e("vertical"),clientSize:Ze,layout:"vertical",onScroll:se,ratio:Ze*100/Ae,scrollFrom:_t/(Ae-Ze),total:Ie,visible:!0});return{horizontalScrollbar:xt,verticalScrollbar:It}},re=()=>{var _e;const[ke,Be]=d(K),[Ie,ze]=d(X),{data:Ve,totalColumn:Ze,totalRow:je,useIsScrolling:Ae,itemKey:nt}=p,_t=[];if(je>0&&Ze>0)for(let xt=Ie;xt<=ze;xt++)for(let It=ke;It<=Be;It++){const Kt=nt({columnIndex:It,data:Ve,rowIndex:xt});_t.push(ot(Ke,{key:Kt},(_e=_.default)==null?void 0:_e.call(_,{columnIndex:It,data:Ve,isScrolling:Ae?d(L).isScrolling:void 0,style:te(xt,It),rowIndex:xt})))}return _t},Se=()=>{const _e=Rt(p.innerElement),ke=re();return[ot(_e,{style:d(F),ref:$},ht(_e)?ke:{default:()=>ke})]};return()=>{const _e=Rt(p.containerElement),{horizontalScrollbar:ke,verticalScrollbar:Be}=ee(),Ie=Se();return ot("div",{key:0,class:b.e("wrapper"),role:p.role},[ot(_e,{class:p.className,style:d(Y),onScroll:Z,ref:C},ht(_e)?Ie:{default:()=>Ie}),ke,Be])}}}),Aie=lO({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:e},t)=>[e,t*e],getRowPosition:({rowHeight:e},t)=>[e,t*e],getEstimatedTotalHeight:({totalRow:e,rowHeight:t})=>t*e,getEstimatedTotalWidth:({totalColumn:e,columnWidth:t})=>t*e,getColumnOffset:({totalColumn:e,columnWidth:t,width:n},s,r,i,a,o)=>{n=Number(n);const l=Math.max(0,e*t-n),u=Math.min(l,s*t),c=Math.max(0,s*t-n+o+t);switch(r==="smart"&&(i>=c-n&&i<=u+n?r=Ur:r=Bi),r){case Mf:return u;case $f:return c;case Bi:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(n/2)?0:f>l+Math.floor(n/2)?l:f}case Ur:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getRowOffset:({rowHeight:e,height:t,totalRow:n},s,r,i,a,o)=>{t=Number(t);const l=Math.max(0,n*e-t),u=Math.min(l,s*e),c=Math.max(0,s*e-t+o+e);switch(r===nv&&(i>=c-t&&i<=u+t?r=Ur:r=Bi),r){case Mf:return u;case $f:return c;case Bi:{const f=Math.round(c+(u-c)/2);return f<Math.ceil(t/2)?0:f>l+Math.floor(t/2)?l:f}case Ur:default:return i>=c&&i<=u?i:c>u||i<c?c:u}},getColumnStartIndexForOffset:({columnWidth:e,totalColumn:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getColumnStopIndexForStartIndex:({columnWidth:e,totalColumn:t,width:n},s,r)=>{const i=s*e,a=Math.ceil((n+r-i)/e);return Math.max(0,Math.min(t-1,s+a-1))},getRowStartIndexForOffset:({rowHeight:e,totalRow:t},n)=>Math.max(0,Math.min(t-1,Math.floor(n/e))),getRowStopIndexForStartIndex:({rowHeight:e,totalRow:t,height:n},s,r)=>{const i=s*e,a=Math.ceil((n+r-i)/e);return Math.max(0,Math.min(t-1,s+a-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:e,rowHeight:t})=>{}}),{max:Fm,min:uO,floor:cO}=Math,Iie={column:"columnWidth",row:"rowHeight"},Rb={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},va=(e,t,n,s)=>{const[r,i,a]=[n[s],e[Iie[s]],n[Rb[s]]];if(t>a){let o=0;if(a>=0){const l=r[a];o=l.offset+l.size}for(let l=a+1;l<=t;l++){const u=i(l);r[l]={offset:o,size:u},o+=u}n[Rb[s]]=t}return r[t]},dO=(e,t,n,s,r,i)=>{for(;n<=s;){const a=n+cO((s-n)/2),o=va(e,a,t,i).offset;if(o===r)return a;o<r?n=a+1:s=a-1}return Fm(0,n-1)},Die=(e,t,n,s,r)=>{const i=r==="column"?e.totalColumn:e.totalRow;let a=1;for(;n<i&&va(e,n,t,r).offset<s;)n+=a,a*=2;return dO(e,t,cO(n/2),uO(n,i-1),s,r)},ox=(e,t,n,s)=>{const[r,i]=[t[s],t[Rb[s]]];return(i>0?r[i].offset:0)>=n?dO(e,t,0,i,n,s):Die(e,t,Fm(0,i),n,s)},fO=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:s})=>{let r=0;if(n>=e&&(n=e-1),n>=0){const o=s[n];r=o.offset+o.size}const a=(e-n-1)*t;return r+a},hO=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:s})=>{let r=0;if(s>e&&(s=e-1),s>=0){const o=t[s];r=o.offset+o.size}const a=(e-s-1)*n;return r+a},Oie={column:hO,row:fO},lx=(e,t,n,s,r,i,a)=>{const[o,l]=[i==="row"?e.height:e.width,Oie[i]],u=va(e,t,r,i),c=l(e,r),f=Fm(0,uO(c-o,u.offset)),h=Fm(0,u.offset-o+a+u.size);switch(n===nv&&(s>=h-o&&s<=f+o?n=Ur:n=Bi),n){case Mf:return f;case $f:return h;case Bi:return Math.round(h+(f-h)/2);case Ur:default:return s>=h&&s<=f?s:h>f||s<h?h:f}},Pie=lO({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const s=va(e,t,n,"column");return[s.size,s.offset]},getRowPosition:(e,t,n)=>{const s=va(e,t,n,"row");return[s.size,s.offset]},getColumnOffset:(e,t,n,s,r,i)=>lx(e,t,n,s,r,"column",i),getRowOffset:(e,t,n,s,r,i)=>lx(e,t,n,s,r,"row",i),getColumnStartIndexForOffset:(e,t,n)=>ox(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,s)=>{const r=va(e,t,s,"column"),i=n+e.width;let a=r.offset+r.size,o=t;for(;o<e.totalColumn-1&&a<i;)o++,a+=va(e,t,s,"column").size;return o},getEstimatedTotalHeight:fO,getEstimatedTotalWidth:hO,getRowStartIndexForOffset:(e,t,n)=>ox(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,s)=>{const{totalRow:r,height:i}=e,a=va(e,t,s,"row"),o=n+i;let l=a.size+a.offset,u=t;for(;u<r-1&&l<o;)u++,l+=va(e,u,s,"row").size;return u},injectToInstance:(e,t)=>{const n=({columnIndex:i,rowIndex:a},o)=>{var l,u;o=An(o)?!0:o,ut(i)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,i-1)),ut(a)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,a-1)),(l=e.exposed)==null||l.getItemStyleCache.value(-1,null,null),o&&((u=e.proxy)==null||u.$forceUpdate())},s=(i,a)=>{n({columnIndex:i},a)},r=(i,a)=>{n({rowIndex:i},a)};Object.assign(e.proxy,{resetAfterColumnIndex:s,resetAfterRowIndex:r,resetAfter:n})},initCache:({estimatedColumnWidth:e=xb,estimatedRowHeight:t=xb})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{}}),Rie=J({props:{item:{type:Object,required:!0},style:{type:Object},height:Number},setup(){return{ns:Re("select")}}});function Nie(e,t,n,s,r,i){return x(),j("div",{class:M(e.ns.be("group","title")),style:st({...e.style,lineHeight:`${e.height}px`})},ce(e.item.label),7)}var Mie=Ue(Rie,[["render",Nie],["__file","group-item.vue"]]);function $ie(e,{emit:t}){return{hoverItem:()=>{e.disabled||t("hover",e.index)},selectOptionClick:()=>{e.disabled||t("select",e.item,e.index)}}}const pO={label:"label",value:"value",disabled:"disabled",options:"options"};function sv(e){const t=k(()=>({...pO,...e.props}));return{aliasProps:t,getLabel:a=>Ln(a,t.value.label),getValue:a=>Ln(a,t.value.value),getDisabled:a=>Ln(a,t.value.disabled),getOptions:a=>Ln(a,t.value.options)}}const Lie=Fe({allowCreate:Boolean,autocomplete:{type:oe(String),default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:ln,default:Uo},effect:{type:oe(String),default:"light"},collapseTags:Boolean,collapseTagsTooltip:Boolean,maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:274},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,modelValue:{type:oe([Array,String,Number,Boolean,Object])},multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:oe(Array),required:!0},placeholder:{type:String},teleported:us.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:oe(Object),default:()=>({})},remote:Boolean,size:ts,props:{type:oe(Object),default:()=>pO},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:Boolean,validateEvent:{type:Boolean,default:!0},placement:{type:oe(String),values:La,default:"bottom-start"},fallbackPlacements:{type:oe(Array),default:["bottom-start","top-start","right","left"]},tagType:{...$l.type,default:"info"},tagEffect:{...$l.effect,default:"light"},...Pc,..._s(["ariaLabel"])}),Bie=Fe({data:Array,disabled:Boolean,hovering:Boolean,item:{type:oe(Object),required:!0},index:Number,style:Object,selected:Boolean,created:Boolean}),Fie={[At]:e=>!0,[gn]:e=>!0,"remove-tag":e=>!0,"visible-change":e=>!0,focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},Vie={hover:e=>ut(e),select:(e,t)=>!0},L2=Symbol("ElSelectV2Injection"),Uie=J({props:Bie,emits:Vie,setup(e,{emit:t}){const n=Xe(L2),s=Re("select"),{hoverItem:r,selectOptionClick:i}=$ie(e,{emit:t}),{getLabel:a}=sv(n.props);return{ns:s,hoverItem:r,selectOptionClick:i,getLabel:a}}});function Hie(e,t,n,s,r,i){return x(),j("li",{"aria-selected":e.selected,style:st(e.style),class:M([e.ns.be("dropdown","item"),e.ns.is("selected",e.selected),e.ns.is("disabled",e.disabled),e.ns.is("created",e.created),e.ns.is("hovering",e.hovering)]),onMouseenter:e.hoverItem,onClick:ft(e.selectOptionClick,["stop"])},[fe(e.$slots,"default",{item:e.item,index:e.index,disabled:e.disabled},()=>[O("span",null,ce(e.getLabel(e.item)),1)])],46,["aria-selected","onMouseenter","onClick"])}var zie=Ue(Uie,[["render",Hie],["__file","option-item.vue"]]);const jie={loading:Boolean,data:{type:Array,required:!0},hoveringIndex:Number,width:Number};var qie=J({name:"ElSelectDropdown",props:jie,setup(e,{slots:t,expose:n}){const s=Xe(L2),r=Re("select"),{getLabel:i,getValue:a,getDisabled:o}=sv(s.props),l=q([]),u=q(),c=k(()=>e.data.length);xe(()=>c.value,()=>{var z,U;(U=(z=s.tooltipRef.value).updatePopper)==null||U.call(z)});const f=k(()=>An(s.props.estimatedOptionHeight)),h=k(()=>f.value?{itemSize:s.props.itemHeight}:{estimatedSize:s.props.estimatedOptionHeight,itemSize:z=>l.value[z]}),m=(z=[],U)=>{const{props:{valueKey:W}}=s;return Pt(U)?z&&z.some(K=>on(Ln(K,W))===Ln(U,W)):z.includes(U)},g=(z,U)=>{if(Pt(U)){const{valueKey:W}=s.props;return Ln(z,W)===Ln(U,W)}else return z===U},p=(z,U)=>s.props.multiple?m(z,a(U)):g(z,a(U)),v=(z,U)=>{const{disabled:W,multiple:K,multipleLimit:X}=s.props;return W||!U&&(K?X>0&&z.length>=X:!1)},y=z=>e.hoveringIndex===z;n({listRef:u,isSized:f,isItemDisabled:v,isItemHovering:y,isItemSelected:p,scrollToItem:z=>{const U=u.value;U&&U.scrollToItem(z)},resetScrollTop:()=>{const z=u.value;z&&z.resetScrollTop()}});const S=z=>{const{index:U,data:W,style:K}=z,X=d(f),{itemSize:B,estimatedSize:Q}=d(h),{modelValue:Y}=s.props,{onSelect:F,onHover:H}=s,Z=W[U];if(Z.type==="Group")return E(Mie,{item:Z,style:K,height:X?B:Q},null);const se=p(Y,Z),ne=v(Y,se),we=y(U);return E(zie,Nt(z,{selected:se,disabled:o(Z)||ne,created:!!Z.created,hovering:we,item:Z,onSelect:F,onHover:H}),{default:De=>{var Ee;return((Ee=t.default)==null?void 0:Ee.call(t,De))||E("span",null,[i(Z)])}})},{onKeyboardNavigate:C,onKeyboardSelect:D}=s,N=()=>{C("forward")},$=()=>{C("backward")},L=z=>{const{code:U}=z,{tab:W,esc:K,down:X,up:B,enter:Q}=at;switch(U!==W&&(z.preventDefault(),z.stopPropagation()),U){case W:case K:break;case X:{N();break}case B:{$();break}case Q:{D();break}}};return()=>{var z,U,W,K;const{data:X,width:B}=e,{height:Q,multiple:Y,scrollbarAlwaysOn:F}=s.props,H=d(f)?aO:xie;return E("div",{class:[r.b("dropdown"),r.is("multiple",Y)],style:{width:`${B}px`}},[(z=t.header)==null?void 0:z.call(t),((U=t.loading)==null?void 0:U.call(t))||((W=t.empty)==null?void 0:W.call(t))||E(H,Nt({ref:u},d(h),{className:r.be("dropdown","list"),scrollbarAlwaysOn:F,data:X,height:Q,width:B,total:X.length,onKeydown:L}),{default:Z=>E(S,Z,null)}),(K=t.footer)==null?void 0:K.call(t)])}}});function Wie(e,t){const{aliasProps:n,getLabel:s,getValue:r}=sv(e),i=q(0),a=q(),o=k(()=>e.allowCreate&&e.filterable);function l(m){const g=p=>s(p)===m;return e.options&&e.options.some(g)||t.createdOptions.some(g)}function u(m){o.value&&(e.multiple&&m.created?i.value++:a.value=m)}function c(m){if(o.value)if(m&&m.length>0){if(l(m))return;const g={[n.value.value]:m,[n.value.label]:m,created:!0,[n.value.disabled]:!1};t.createdOptions.length>=i.value?t.createdOptions[i.value]=g:t.createdOptions.push(g)}else if(e.multiple)t.createdOptions.length=i.value;else{const g=a.value;t.createdOptions.length=0,g&&g.created&&t.createdOptions.push(g)}}function f(m){if(!o.value||!m||!m.created||m.created&&e.reserveKeyword&&t.inputValue===s(m))return;const g=t.createdOptions.findIndex(p=>r(p)===r(m));~g&&(t.createdOptions.splice(g,1),i.value--)}function h(){o.value&&(t.createdOptions.length=0,i.value=0)}return{createNewOption:c,removeNewOption:f,selectNewOption:u,clearAllNewOption:h}}const Kie=11,Gie=(e,t)=>{const{t:n}=zt(),s=Re("select"),r=Re("input"),{form:i,formItem:a}=Bs(),{inputId:o}=Ai(e,{formItemContext:a}),{aliasProps:l,getLabel:u,getValue:c,getDisabled:f,getOptions:h}=sv(e),{valueOnClear:m,isEmptyValue:g}=Kg(e),p=Ct({inputValue:"",cachedOptions:[],createdOptions:[],hoveringIndex:-1,inputHovering:!1,selectionWidth:0,calculatorWidth:0,collapseItemWidth:0,previousQuery:null,previousValue:void 0,selectedLabel:"",menuVisibleOnFocus:!1,isBeforeHide:!1}),v=q(-1),y=q(),_=q(),b=q(),T=q(),S=q(),C=q(),D=q(),N=q(),$=q(),L=q(),z=q(),{isComposing:U,handleCompositionStart:W,handleCompositionEnd:K,handleCompositionUpdate:X}=Wg({afterComposition:Ge=>gr(Ge)}),{wrapperRef:B,isFocused:Q,handleBlur:Y}=gh(S,{beforeFocus(){return se.value},afterFocus(){e.automaticDropdown&&!Z.value&&(Z.value=!0,p.menuVisibleOnFocus=!0)},beforeBlur(Ge){var wt,$t;return((wt=b.value)==null?void 0:wt.isFocusInsideContent(Ge))||(($t=T.value)==null?void 0:$t.isFocusInsideContent(Ge))},afterBlur(){Z.value=!1,p.menuVisibleOnFocus=!1}}),F=q([]),H=q([]),Z=q(!1),se=k(()=>e.disabled||(i==null?void 0:i.disabled)),ne=k(()=>{const Ge=H.value.length*e.itemHeight;return Ge>e.height?e.height:Ge}),we=k(()=>e.multiple?Ye(e.modelValue)&&e.modelValue.length>0:!g(e.modelValue)),De=k(()=>e.clearable&&!se.value&&p.inputHovering&&we.value),Ee=k(()=>e.remote&&e.filterable?"":sa),te=k(()=>Ee.value&&s.is("reverse",Z.value)),ge=k(()=>(a==null?void 0:a.validateState)||""),pe=k(()=>{if(ge.value)return B1[ge.value]}),Oe=k(()=>e.remote?300:0),Pe=k(()=>e.loading?e.loadingText||n("el.select.loading"):e.remote&&!p.inputValue&&F.value.length===0?!1:e.filterable&&p.inputValue&&F.value.length>0&&H.value.length===0?e.noMatchText||n("el.select.noMatch"):F.value.length===0?e.noDataText||n("el.select.noData"):null),ve=Ge=>{const wt=$t=>{if(e.filterable&&pt(e.filterMethod)||e.filterable&&e.remote&&pt(e.remoteMethod))return!0;const Gt=new RegExp(x1(Ge),"i");return Ge?Gt.test(u($t)||""):!0};return e.loading?[]:[...p.createdOptions,...e.options].reduce(($t,Gt)=>{const ks=h(Gt);if(Ye(ks)){const Rr=ks.filter(wt);Rr.length>0&&$t.push({label:u(Gt),type:"Group"},...Rr)}else(e.remote||wt(Gt))&&$t.push(Gt);return $t},[])},ee=()=>{F.value=ve(""),H.value=ve(p.inputValue)},re=k(()=>{const Ge=new Map;return F.value.forEach((wt,$t)=>{Ge.set(Wt(c(wt)),{option:wt,index:$t})}),Ge}),Se=k(()=>{const Ge=new Map;return H.value.forEach((wt,$t)=>{Ge.set(Wt(c(wt)),{option:wt,index:$t})}),Ge}),Le=k(()=>H.value.every(Ge=>f(Ge))),_e=Kn(),ke=k(()=>_e.value==="small"?"small":"default"),Be=()=>{var Ge;v.value=((Ge=y.value)==null?void 0:Ge.offsetWidth)||200},Ie=()=>{if(!_.value)return 0;const Ge=window.getComputedStyle(_.value);return Number.parseFloat(Ge.gap||"6px")},ze=k(()=>{const Ge=Ie();return{maxWidth:`${z.value&&e.maxCollapseTags===1?p.selectionWidth-p.collapseItemWidth-Ge:p.selectionWidth}px`}}),Ve=k(()=>({maxWidth:`${p.selectionWidth}px`})),Ze=k(()=>({width:`${Math.max(p.calculatorWidth,Kie)}px`})),je=k(()=>Ye(e.modelValue)?e.modelValue.length===0&&!p.inputValue:e.filterable?!p.inputValue:!0),Ae=k(()=>{var Ge;const wt=(Ge=e.placeholder)!=null?Ge:n("el.select.placeholder");return e.multiple||!we.value?wt:p.selectedLabel}),nt=k(()=>{var Ge,wt;return(wt=(Ge=b.value)==null?void 0:Ge.popperRef)==null?void 0:wt.contentRef}),_t=k(()=>{if(e.multiple){const Ge=e.modelValue.length;if(e.modelValue.length>0&&Se.value.has(e.modelValue[Ge-1])){const{index:wt}=Se.value.get(e.modelValue[Ge-1]);return wt}}else if(e.modelValue&&Se.value.has(e.modelValue)){const{index:Ge}=Se.value.get(e.modelValue);return Ge}return-1}),xt=k({get(){return Z.value&&Pe.value!==!1},set(Ge){Z.value=Ge}}),It=k(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(0,e.maxCollapseTags):p.cachedOptions:[]),Kt=k(()=>e.multiple?e.collapseTags?p.cachedOptions.slice(e.maxCollapseTags):[]:[]),{createNewOption:pn,removeNewOption:be,selectNewOption:et,clearAllNewOption:le}=Wie(e,p),Ne=()=>{se.value||(p.menuVisibleOnFocus?p.menuVisibleOnFocus=!1:Z.value=!Z.value)},Me=()=>{p.inputValue.length>0&&!Z.value&&(Z.value=!0),pn(p.inputValue),qt(p.inputValue)},vt=fr(Me,Oe.value),qt=Ge=>{p.previousQuery===Ge||U.value||(p.previousQuery=Ge,e.filterable&&pt(e.filterMethod)?e.filterMethod(Ge):e.filterable&&e.remote&&pt(e.remoteMethod)&&e.remoteMethod(Ge),e.defaultFirstOption&&(e.filterable||e.remote)&&H.value.length?it(Ce):it(Lt))},Ce=()=>{const Ge=H.value.filter(Gt=>!Gt.disabled&&Gt.type!=="Group"),wt=Ge.find(Gt=>Gt.created),$t=Ge[0];p.hoveringIndex=Qt(H.value,wt||$t)},mt=Ge=>{Ps(e.modelValue,Ge)||t(gn,Ge)},Vt=Ge=>{t(At,Ge),mt(Ge),p.previousValue=e.multiple?String(Ge):Ge},Qt=(Ge=[],wt)=>{if(!Pt(wt))return Ge.indexOf(wt);const $t=e.valueKey;let Gt=-1;return Ge.some((ks,Rr)=>Ln(ks,$t)===Ln(wt,$t)?(Gt=Rr,!0):!1),Gt},Wt=Ge=>Pt(Ge)?Ln(Ge,e.valueKey):Ge,en=()=>{Be()},ws=()=>{p.selectionWidth=_.value.getBoundingClientRect().width},qo=()=>{p.calculatorWidth=C.value.getBoundingClientRect().width},Ql=()=>{p.collapseItemWidth=z.value.getBoundingClientRect().width},Wo=()=>{var Ge,wt;(wt=(Ge=b.value)==null?void 0:Ge.updatePopper)==null||wt.call(Ge)},Ua=()=>{var Ge,wt;(wt=(Ge=T.value)==null?void 0:Ge.updatePopper)==null||wt.call(Ge)},Jl=Ge=>{if(e.multiple){let wt=e.modelValue.slice();const $t=Qt(wt,c(Ge));$t>-1?(wt=[...wt.slice(0,$t),...wt.slice($t+1)],p.cachedOptions.splice($t,1),be(Ge)):(e.multipleLimit<=0||wt.length<e.multipleLimit)&&(wt=[...wt,c(Ge)],p.cachedOptions.push(Ge),et(Ge)),Vt(wt),Ge.created&&qt(""),e.filterable&&!e.reserveKeyword&&(p.inputValue="")}else p.selectedLabel=u(Ge),Vt(c(Ge)),Z.value=!1,et(Ge),Ge.created||le();ca()},Qc=(Ge,wt)=>{let $t=e.modelValue.slice();const Gt=Qt($t,c(wt));Gt>-1&&!se.value&&($t=[...e.modelValue.slice(0,Gt),...e.modelValue.slice(Gt+1)],p.cachedOptions.splice(Gt,1),Vt($t),t("remove-tag",c(wt)),be(wt)),Ge.stopPropagation(),ca()},ca=()=>{var Ge;(Ge=S.value)==null||Ge.focus()},Ha=()=>{var Ge;if(Z.value){Z.value=!1,it(()=>{var wt;return(wt=S.value)==null?void 0:wt.blur()});return}(Ge=S.value)==null||Ge.blur()},za=()=>{p.inputValue.length>0?p.inputValue="":Z.value=!1},fs=Ge=>Y3(Ge,wt=>!p.cachedOptions.some($t=>c($t)===wt&&f($t))),Jc=Ge=>{if(e.multiple&&Ge.code!==at.delete&&p.inputValue.length===0){Ge.preventDefault();const wt=e.modelValue.slice(),$t=fs(wt);if($t<0)return;const Gt=wt[$t];wt.splice($t,1);const ks=p.cachedOptions[$t];p.cachedOptions.splice($t,1),be(ks),Vt(wt),t("remove-tag",Gt)}},Zc=()=>{let Ge;Ye(e.modelValue)?Ge=[]:Ge=m.value,e.multiple?p.cachedOptions=[]:p.selectedLabel="",Z.value=!1,Vt(Ge),t("clear"),le(),ca()},qe=(Ge,wt=void 0)=>{const $t=H.value;if(!["forward","backward"].includes(Ge)||se.value||$t.length<=0||Le.value||U.value)return;if(!Z.value)return Ne();wt===void 0&&(wt=p.hoveringIndex);let Gt=-1;Ge==="forward"?(Gt=wt+1,Gt>=$t.length&&(Gt=0)):Ge==="backward"&&(Gt=wt-1,(Gt<0||Gt>=$t.length)&&(Gt=$t.length-1));const ks=$t[Gt];if(f(ks)||ks.type==="Group")return qe(Ge,Gt);p.hoveringIndex=Gt,yr(Gt)},ct=()=>{if(Z.value)~p.hoveringIndex&&H.value[p.hoveringIndex]&&Jl(H.value[p.hoveringIndex]);else return Ne()},Jt=Ge=>{p.hoveringIndex=Ge??-1},Lt=()=>{e.multiple?p.hoveringIndex=H.value.findIndex(Ge=>e.modelValue.some(wt=>Wt(wt)===Wt(Ge))):p.hoveringIndex=H.value.findIndex(Ge=>Wt(Ge)===Wt(e.modelValue))},gr=Ge=>{if(p.inputValue=Ge.target.value,e.remote)vt();else return Me()},vr=Ge=>{if(Z.value=!1,Q.value){const wt=new FocusEvent("focus",Ge);Y(wt)}},si=()=>(p.isBeforeHide=!1,it(()=>{~_t.value&&yr(p.hoveringIndex)})),yr=Ge=>{$.value.scrollToItem(Ge)},ns=(Ge,wt)=>{const $t=Wt(Ge);if(re.value.has($t)){const{option:Gt}=re.value.get($t);return Gt}if(wt&&wt.length){const Gt=wt.find(ks=>Wt(c(ks))===$t);if(Gt)return Gt}return{[l.value.value]:Ge,[l.value.label]:Ge}},vn=(Ge=!1)=>{if(e.multiple)if(e.modelValue.length>0){const wt=p.cachedOptions.slice();p.cachedOptions.length=0,p.previousValue=e.modelValue.toString();for(const $t of e.modelValue){const Gt=ns($t,wt);p.cachedOptions.push(Gt)}}else p.cachedOptions=[],p.previousValue=void 0;else if(we.value){p.previousValue=e.modelValue;const wt=H.value,$t=wt.findIndex(Gt=>Wt(c(Gt))===Wt(e.modelValue));~$t?p.selectedLabel=u(wt[$t]):(!p.selectedLabel||Ge)&&(p.selectedLabel=Wt(e.modelValue))}else p.selectedLabel="",p.previousValue=void 0;le(),Be()};return xe(Z,Ge=>{Ge?qt(""):(p.inputValue="",p.previousQuery=null,p.isBeforeHide=!0,pn("")),t("visible-change",Ge)}),xe(()=>e.modelValue,(Ge,wt)=>{var $t;(!Ge||e.multiple&&Ge.toString()!==p.previousValue||!e.multiple&&Wt(Ge)!==Wt(p.previousValue))&&vn(!0),!Ps(Ge,wt)&&e.validateEvent&&(($t=a==null?void 0:a.validate)==null||$t.call(a,"change").catch(Gt=>void 0))},{deep:!0}),xe(()=>e.options,()=>{const Ge=S.value;(!Ge||Ge&&document.activeElement!==Ge)&&vn()},{deep:!0,flush:"post"}),xe(()=>H.value,()=>$.value&&it($.value.resetScrollTop)),vs(()=>{p.isBeforeHide||ee()}),vs(()=>{const{valueKey:Ge,options:wt}=e,$t=new Map;for(const Gt of wt){const ks=c(Gt);let Rr=ks;if(Pt(Rr)&&(Rr=Ln(ks,Ge)),$t.get(Rr))break;$t.set(Rr,!0)}}),gt(()=>{vn()}),Sn(y,en),Sn(_,ws),Sn(C,qo),Sn($,Wo),Sn(B,Wo),Sn(L,Ua),Sn(z,Ql),{inputId:o,collapseTagSize:ke,currentPlaceholder:Ae,expanded:Z,emptyText:Pe,popupHeight:ne,debounce:Oe,allOptions:F,filteredOptions:H,iconComponent:Ee,iconReverse:te,tagStyle:ze,collapseTagStyle:Ve,inputStyle:Ze,popperSize:v,dropdownMenuVisible:xt,hasModelValue:we,shouldShowPlaceholder:je,selectDisabled:se,selectSize:_e,showClearBtn:De,states:p,isFocused:Q,nsSelect:s,nsInput:r,calculatorRef:C,inputRef:S,menuRef:$,tagMenuRef:L,tooltipRef:b,tagTooltipRef:T,selectRef:y,wrapperRef:B,selectionRef:_,prefixRef:D,suffixRef:N,collapseItemRef:z,popperRef:nt,validateState:ge,validateIcon:pe,showTagList:It,collapseTagList:Kt,debouncedOnInputChange:vt,deleteTag:Qc,getLabel:u,getValue:c,getDisabled:f,getValueKey:Wt,handleClear:Zc,handleClickOutside:vr,handleDel:Jc,handleEsc:za,focus:ca,blur:Ha,handleMenuEnter:si,handleResize:en,resetSelectionWidth:ws,resetCalculatorWidth:qo,updateTooltip:Wo,updateTagTooltip:Ua,updateOptions:ee,toggleMenu:Ne,scrollTo:yr,onInput:gr,onKeyboardNavigate:qe,onKeyboardSelect:ct,onSelect:Jl,onHover:Jt,handleCompositionStart:W,handleCompositionEnd:K,handleCompositionUpdate:X}},Yie=J({name:"ElSelectV2",components:{ElSelectMenu:qie,ElTag:Ji,ElTooltip:is,ElIcon:tt},directives:{ClickOutside:Aa},props:Lie,emits:Fie,setup(e,{emit:t}){const n=k(()=>{const{modelValue:i,multiple:a}=e,o=a?[]:void 0;return Ye(i)?a?i:o:a?o:i}),s=Gie(Ct({...cs(e),modelValue:n}),t);Mt(L2,{props:Ct({...cs(e),height:s.popupHeight,modelValue:n}),expanded:s.expanded,tooltipRef:s.tooltipRef,onSelect:s.onSelect,onHover:s.onHover,onKeyboardNavigate:s.onKeyboardNavigate,onKeyboardSelect:s.onKeyboardSelect});const r=k(()=>e.multiple?s.states.cachedOptions.map(i=>i.label):s.states.selectedLabel);return{...s,modelValue:n,selectedLabel:r}}});function Xie(e,t,n,s,r,i){const a=Dt("el-tag"),o=Dt("el-tooltip"),l=Dt("el-icon"),u=Dt("el-select-menu"),c=Cg("click-outside");return yt((x(),j("div",{ref:"selectRef",class:M([e.nsSelect.b(),e.nsSelect.m(e.selectSize)]),onMouseenter:f=>e.states.inputHovering=!0,onMouseleave:f=>e.states.inputHovering=!1},[E(o,{ref:"tooltipRef",visible:e.dropdownMenuVisible,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,placement:e.placement,pure:"",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,trigger:"click",persistent:e.persistent,onBeforeShow:e.handleMenuEnter,onHide:f=>e.states.isBeforeHide=!1},{default:P(()=>[O("div",{ref:"wrapperRef",class:M([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:ft(e.toggleMenu,["prevent"])},[e.$slots.prefix?(x(),j("div",{key:0,ref:"prefixRef",class:M(e.nsSelect.e("prefix"))},[fe(e.$slots,"prefix")],2)):ae("v-if",!0),O("div",{ref:"selectionRef",class:M([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.modelValue.length)])},[e.multiple?fe(e.$slots,"tag",{key:0},()=>[(x(!0),j(Ke,null,bt(e.showTagList,f=>(x(),j("div",{key:e.getValueKey(e.getValue(f)),class:M(e.nsSelect.e("selected-item"))},[E(a,{closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:st(e.tagStyle),onClose:h=>e.deleteTag(h,f)},{default:P(()=>[O("span",{class:M(e.nsSelect.e("tags-text"))},[fe(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[Te(ce(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.modelValue.length>e.maxCollapseTags?(x(),de(o,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:P(()=>[O("div",{ref:"collapseItemRef",class:M(e.nsSelect.e("selected-item"))},[E(a,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,style:st(e.collapseTagStyle),"disable-transitions":""},{default:P(()=>[O("span",{class:M(e.nsSelect.e("tags-text"))}," + "+ce(e.modelValue.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:P(()=>[O("div",{ref:"tagMenuRef",class:M(e.nsSelect.e("selection"))},[(x(!0),j(Ke,null,bt(e.collapseTagList,f=>(x(),j("div",{key:e.getValueKey(e.getValue(f)),class:M(e.nsSelect.e("selected-item"))},[E(a,{class:"in-tooltip",closable:!e.selectDisabled&&!e.getDisabled(f),size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:h=>e.deleteTag(h,f)},{default:P(()=>[O("span",{class:M(e.nsSelect.e("tags-text"))},[fe(e.$slots,"label",{label:e.getLabel(f),value:e.getValue(f)},()=>[Te(ce(e.getLabel(f)),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","effect","teleported"])):ae("v-if",!0)]):ae("v-if",!0),e.selectDisabled?ae("v-if",!0):(x(),j("div",{key:1,class:M([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable)])},[yt(O("input",{id:e.inputId,ref:"inputRef","onUpdate:modelValue":f=>e.states.inputValue=f,style:st(e.inputStyle),autocomplete:e.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":e.expanded,"aria-label":e.ariaLabel,class:M([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,role:"combobox",readonly:!e.filterable,spellcheck:"false",type:"text",name:e.name,onInput:e.onInput,onCompositionstart:e.handleCompositionStart,onCompositionupdate:e.handleCompositionUpdate,onCompositionend:e.handleCompositionEnd,onKeydown:[rn(ft(f=>e.onKeyboardNavigate("backward"),["stop","prevent"]),["up"]),rn(ft(f=>e.onKeyboardNavigate("forward"),["stop","prevent"]),["down"]),rn(ft(e.onKeyboardSelect,["stop","prevent"]),["enter"]),rn(ft(e.handleEsc,["stop","prevent"]),["esc"]),rn(ft(e.handleDel,["stop"]),["delete"])],onClick:ft(e.toggleMenu,["stop"])},null,46,["id","onUpdate:modelValue","autocomplete","aria-expanded","aria-label","disabled","readonly","name","onInput","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown","onClick"]),[[xa,e.states.inputValue]]),e.filterable?(x(),j("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:M(e.nsSelect.e("input-calculator")),textContent:ce(e.states.inputValue)},null,10,["textContent"])):ae("v-if",!0)],2)),e.shouldShowPlaceholder?(x(),j("div",{key:2,class:M([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?fe(e.$slots,"label",{key:0,label:e.currentPlaceholder,value:e.modelValue},()=>[O("span",null,ce(e.currentPlaceholder),1)]):(x(),j("span",{key:1},ce(e.currentPlaceholder),1))],2)):ae("v-if",!0)],2),O("div",{ref:"suffixRef",class:M(e.nsSelect.e("suffix"))},[e.iconComponent?yt((x(),de(l,{key:0,class:M([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.iconReverse])},{default:P(()=>[(x(),de(Rt(e.iconComponent)))]),_:1},8,["class"])),[[Bt,!e.showClearBtn]]):ae("v-if",!0),e.showClearBtn&&e.clearIcon?(x(),de(l,{key:1,class:M([e.nsSelect.e("caret"),e.nsInput.e("icon"),e.nsSelect.e("clear")]),onClick:ft(e.handleClear,["prevent","stop"])},{default:P(()=>[(x(),de(Rt(e.clearIcon)))]),_:1},8,["class","onClick"])):ae("v-if",!0),e.validateState&&e.validateIcon?(x(),de(l,{key:2,class:M([e.nsInput.e("icon"),e.nsInput.e("validateIcon")])},{default:P(()=>[(x(),de(Rt(e.validateIcon)))]),_:1},8,["class"])):ae("v-if",!0)],2)],10,["onClick"])]),content:P(()=>[E(u,{ref:"menuRef",data:e.filteredOptions,width:e.popperSize,"hovering-index":e.states.hoveringIndex,"scrollbar-always-on":e.scrollbarAlwaysOn},Gr({default:P(f=>[fe(e.$slots,"default",di(So(f)))]),_:2},[e.$slots.header?{name:"header",fn:P(()=>[O("div",{class:M(e.nsSelect.be("dropdown","header"))},[fe(e.$slots,"header")],2)])}:void 0,e.$slots.loading&&e.loading?{name:"loading",fn:P(()=>[O("div",{class:M(e.nsSelect.be("dropdown","loading"))},[fe(e.$slots,"loading")],2)])}:e.loading||e.filteredOptions.length===0?{name:"empty",fn:P(()=>[O("div",{class:M(e.nsSelect.be("dropdown","empty"))},[fe(e.$slots,"empty",{},()=>[O("span",null,ce(e.emptyText),1)])],2)])}:void 0,e.$slots.footer?{name:"footer",fn:P(()=>[O("div",{class:M(e.nsSelect.be("dropdown","footer"))},[fe(e.$slots,"footer")],2)])}:void 0]),1032,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","fallback-placements","effect","placement","transition","persistent","onBeforeShow","onHide"])],42,["onMouseenter","onMouseleave"])),[[c,e.handleClickOutside,e.popperRef]])}var Qie=Ue(Yie,[["render",Xie],["__file","select.vue"]]);const mO=Tt(Qie),Jie=Fe({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),Zie=Fe({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),eae=J({name:"ElSkeletonItem"}),tae=J({...eae,props:Zie,setup(e){const t=Re("skeleton");return(n,s)=>(x(),j("div",{class:M([d(t).e("item"),d(t).e(n.variant)])},[n.variant==="image"?(x(),de(d(Vj),{key:0})):ae("v-if",!0)],2))}});var Vm=Ue(tae,[["__file","skeleton-item.vue"]]);const nae=J({name:"ElSkeleton"}),sae=J({...nae,props:Jie,setup(e,{expose:t}){const n=e,s=Re("skeleton"),r=zW(nn(n,"loading"),n.throttle);return t({uiLoading:r}),(i,a)=>d(r)?(x(),j("div",Nt({key:0,class:[d(s).b(),d(s).is("animated",i.animated)]},i.$attrs),[(x(!0),j(Ke,null,bt(i.count,o=>(x(),j(Ke,{key:o},[i.loading?fe(i.$slots,"template",{key:o},()=>[E(Vm,{class:M(d(s).is("first")),variant:"p"},null,8,["class"]),(x(!0),j(Ke,null,bt(i.rows,l=>(x(),de(Vm,{key:l,class:M([d(s).e("paragraph"),d(s).is("last",l===i.rows&&i.rows>1)]),variant:"p"},null,8,["class"]))),128))]):ae("v-if",!0)],64))),128))],16)):fe(i.$slots,"default",di(Nt({key:1},i.$attrs)))}});var rae=Ue(sae,[["__file","skeleton.vue"]]);const iae=Tt(rae,{SkeletonItem:Vm}),aae=kn(Vm),gO=Symbol("sliderContextKey"),oae=Fe({modelValue:{type:oe([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:ts,inputSize:ts,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:oe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:oe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:La,default:"top"},marks:{type:oe(Object)},validateEvent:{type:Boolean,default:!0},..._s(["ariaLabel"])}),$0=e=>ut(e)||Ye(e)&&e.every(ut),lae={[At]:$0,[Ys]:$0,[gn]:$0},uae=(e,t,n)=>{const s=q();return gt(async()=>{e.range?(Array.isArray(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),an(window,"resize",n),await it(),n()}),{sliderWrapper:s}},cae=e=>k(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,s)=>n-s).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),dae=(e,t,n)=>{const{form:s,formItem:r}=Bs(),i=hn(),a=q(),o=q(),l={firstButton:a,secondButton:o},u=k(()=>e.disabled||(s==null?void 0:s.disabled)||!1),c=k(()=>Math.min(t.firstValue,t.secondValue)),f=k(()=>Math.max(t.firstValue,t.secondValue)),h=k(()=>e.range?`${100*(f.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),m=k(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),g=k(()=>e.vertical?{height:e.height}:{}),p=k(()=>e.vertical?{height:h.value,bottom:m.value}:{width:h.value,left:m.value}),v=()=>{i.value&&(t.sliderSize=i.value[`client${e.vertical?"Height":"Width"}`])},y=U=>{const W=e.min+U*(e.max-e.min)/100;if(!e.range)return a;let K;return Math.abs(c.value-W)<Math.abs(f.value-W)?K=t.firstValue<t.secondValue?"firstButton":"secondButton":K=t.firstValue>t.secondValue?"firstButton":"secondButton",l[K]},_=U=>{const W=y(U);return W.value.setPosition(U),W},b=U=>{t.firstValue=U??e.min,S(e.range?[c.value,f.value]:U??e.min)},T=U=>{t.secondValue=U,e.range&&S([c.value,f.value])},S=U=>{n(At,U),n(Ys,U)},C=async()=>{await it(),n(gn,e.range?[c.value,f.value]:e.modelValue)},D=U=>{var W,K,X,B,Q,Y;if(u.value||t.dragging)return;v();let F=0;if(e.vertical){const H=(X=(K=(W=U.touches)==null?void 0:W.item(0))==null?void 0:K.clientY)!=null?X:U.clientY;F=(i.value.getBoundingClientRect().bottom-H)/t.sliderSize*100}else{const H=(Y=(Q=(B=U.touches)==null?void 0:B.item(0))==null?void 0:Q.clientX)!=null?Y:U.clientX,Z=i.value.getBoundingClientRect().left;F=(H-Z)/t.sliderSize*100}if(!(F<0||F>100))return _(F)};return{elFormItem:r,slider:i,firstButton:a,secondButton:o,sliderDisabled:u,minValue:c,maxValue:f,runwayStyle:g,barStyle:p,resetSize:v,setPosition:_,emitChange:C,onSliderWrapperPrevent:U=>{var W,K;((W=l.firstButton.value)!=null&&W.dragging||(K=l.secondButton.value)!=null&&K.dragging)&&U.preventDefault()},onSliderClick:U=>{D(U)&&C()},onSliderDown:async U=>{const W=D(U);W&&(await it(),W.value.onButtonDown(U))},onSliderMarkerDown:U=>{u.value||t.dragging||_(U)},setFirstValue:b,setSecondValue:T}},{left:fae,down:hae,right:pae,up:mae,home:gae,end:vae,pageUp:yae,pageDown:bae}=at,_ae=(e,t,n)=>{const s=q(),r=q(!1),i=k(()=>t.value instanceof Function),a=k(()=>i.value&&t.value(e.modelValue)||e.modelValue),o=fr(()=>{n.value&&(r.value=!0)},50),l=fr(()=>{n.value&&(r.value=!1)},50);return{tooltip:s,tooltipVisible:r,formatValue:a,displayTooltip:o,hideTooltip:l}},wae=(e,t,n)=>{const{disabled:s,min:r,max:i,step:a,showTooltip:o,precision:l,sliderSize:u,formatTooltip:c,emitChange:f,resetSize:h,updateDragging:m}=Xe(gO),{tooltip:g,tooltipVisible:p,formatValue:v,displayTooltip:y,hideTooltip:_}=_ae(e,c,o),b=q(),T=k(()=>`${(e.modelValue-r.value)/(i.value-r.value)*100}%`),S=k(()=>e.vertical?{bottom:T.value}:{left:T.value}),C=()=>{t.hovering=!0,y()},D=()=>{t.hovering=!1,t.dragging||_()},N=se=>{s.value||(se.preventDefault(),Y(se),window.addEventListener("mousemove",F),window.addEventListener("touchmove",F),window.addEventListener("mouseup",H),window.addEventListener("touchend",H),window.addEventListener("contextmenu",H),b.value.focus())},$=se=>{s.value||(t.newPosition=Number.parseFloat(T.value)+se/(i.value-r.value)*100,Z(t.newPosition),f())},L=()=>{$(-a.value)},z=()=>{$(a.value)},U=()=>{$(-a.value*4)},W=()=>{$(a.value*4)},K=()=>{s.value||(Z(0),f())},X=()=>{s.value||(Z(100),f())},B=se=>{let ne=!0;[fae,hae].includes(se.key)?L():[pae,mae].includes(se.key)?z():se.key===gae?K():se.key===vae?X():se.key===bae?U():se.key===yae?W():ne=!1,ne&&se.preventDefault()},Q=se=>{let ne,we;return se.type.startsWith("touch")?(we=se.touches[0].clientY,ne=se.touches[0].clientX):(we=se.clientY,ne=se.clientX),{clientX:ne,clientY:we}},Y=se=>{t.dragging=!0,t.isClick=!0;const{clientX:ne,clientY:we}=Q(se);e.vertical?t.startY=we:t.startX=ne,t.startPosition=Number.parseFloat(T.value),t.newPosition=t.startPosition},F=se=>{if(t.dragging){t.isClick=!1,y(),h();let ne;const{clientX:we,clientY:De}=Q(se);e.vertical?(t.currentY=De,ne=(t.startY-t.currentY)/u.value*100):(t.currentX=we,ne=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+ne,Z(t.newPosition)}},H=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||_(),t.isClick||Z(t.newPosition),f()},0),window.removeEventListener("mousemove",F),window.removeEventListener("touchmove",F),window.removeEventListener("mouseup",H),window.removeEventListener("touchend",H),window.removeEventListener("contextmenu",H))},Z=async se=>{if(se===null||Number.isNaN(+se))return;se<0?se=0:se>100&&(se=100);const ne=100/((i.value-r.value)/a.value);let De=Math.round(se/ne)*ne*(i.value-r.value)*.01+r.value;De=Number.parseFloat(De.toFixed(l.value)),De!==e.modelValue&&n(At,De),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await it(),t.dragging&&y(),g.value.updatePopper()};return xe(()=>t.dragging,se=>{m(se)}),an(b,"touchstart",N,{passive:!1}),{disabled:s,button:b,tooltip:g,tooltipVisible:p,showTooltip:o,wrapperStyle:S,formatValue:v,handleMouseEnter:C,handleMouseLeave:D,onButtonDown:N,onKeyDown:B,setPosition:Z}},Sae=(e,t,n,s)=>({stops:k(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const a=(e.max-e.min)/e.step,o=100*e.step/(e.max-e.min),l=Array.from({length:a-1}).map((u,c)=>(c+1)*o);return e.range?l.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(s.value-e.min)/(e.max-e.min)):l.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:a=>e.vertical?{bottom:`${a}%`}:{left:`${a}%`}}),Tae=(e,t,n,s,r,i)=>{const a=u=>{r(At,u),r(Ys,u)},o=()=>e.range?![n.value,s.value].every((u,c)=>u===t.oldValue[c]):e.modelValue!==t.oldValue,l=()=>{var u,c;e.min>e.max&&es("Slider","min should not be greater than max.");const f=e.modelValue;e.range&&Array.isArray(f)?f[1]<e.min?a([e.min,e.min]):f[0]>e.max?a([e.max,e.max]):f[0]<e.min?a([e.min,f[1]]):f[1]>e.max?a([f[0],e.max]):(t.firstValue=f[0],t.secondValue=f[1],o()&&(e.validateEvent&&((u=i==null?void 0:i.validate)==null||u.call(i,"change").catch(h=>void 0)),t.oldValue=f.slice())):!e.range&&typeof f=="number"&&!Number.isNaN(f)&&(f<e.min?a(e.min):f>e.max?a(e.max):(t.firstValue=f,o()&&(e.validateEvent&&((c=i==null?void 0:i.validate)==null||c.call(i,"change").catch(h=>void 0)),t.oldValue=f)))};l(),xe(()=>t.dragging,u=>{u||l()}),xe(()=>e.modelValue,(u,c)=>{t.dragging||Array.isArray(u)&&Array.isArray(c)&&u.every((f,h)=>f===c[h])&&t.firstValue===u[0]&&t.secondValue===u[1]||l()},{deep:!0}),xe(()=>[e.min,e.max],()=>{l()})},Cae=Fe({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:La,default:"top"}}),Eae={[At]:e=>ut(e)},xae=J({name:"ElSliderButton"}),kae=J({...xae,props:Cae,emits:Eae,setup(e,{expose:t,emit:n}){const s=e,r=Re("slider"),i=Ct({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:s.modelValue}),{disabled:a,button:o,tooltip:l,showTooltip:u,tooltipVisible:c,wrapperStyle:f,formatValue:h,handleMouseEnter:m,handleMouseLeave:g,onButtonDown:p,onKeyDown:v,setPosition:y}=wae(s,i,n),{hovering:_,dragging:b}=cs(i);return t({onButtonDown:p,onKeyDown:v,setPosition:y,hovering:_,dragging:b}),(T,S)=>(x(),j("div",{ref_key:"button",ref:o,class:M([d(r).e("button-wrapper"),{hover:d(_),dragging:d(b)}]),style:st(d(f)),tabindex:d(a)?-1:0,onMouseenter:d(m),onMouseleave:d(g),onMousedown:d(p),onFocus:d(m),onBlur:d(g),onKeydown:d(v)},[E(d(is),{ref_key:"tooltip",ref:l,visible:d(c),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!d(u),persistent:""},{content:P(()=>[O("span",null,ce(d(h)),1)]),default:P(()=>[O("div",{class:M([d(r).e("button"),{hover:d(_),dragging:d(b)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,["tabindex","onMouseenter","onMouseleave","onMousedown","onFocus","onBlur","onKeydown"]))}});var ux=Ue(kae,[["__file","button.vue"]]);const Aae=Fe({mark:{type:oe([String,Object]),default:void 0}});var Iae=J({name:"ElSliderMarker",props:Aae,setup(e){const t=Re("slider"),n=k(()=>ht(e.mark)?e.mark:e.mark.label),s=k(()=>ht(e.mark)?void 0:e.mark.style);return()=>ot("div",{class:t.e("marks-text"),style:s.value},n.value)}});const Dae=J({name:"ElSlider"}),Oae=J({...Dae,props:oae,emits:lae,setup(e,{expose:t,emit:n}){const s=e,r=Re("slider"),{t:i}=zt(),a=Ct({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:o,slider:l,firstButton:u,secondButton:c,sliderDisabled:f,minValue:h,maxValue:m,runwayStyle:g,barStyle:p,resetSize:v,emitChange:y,onSliderWrapperPrevent:_,onSliderClick:b,onSliderDown:T,onSliderMarkerDown:S,setFirstValue:C,setSecondValue:D}=dae(s,a,n),{stops:N,getStopStyle:$}=Sae(s,a,h,m),{inputId:L,isLabeledByFormItem:z}=Ai(s,{formItemContext:o}),U=Kn(),W=k(()=>s.inputSize||U.value),K=k(()=>s.ariaLabel||i("el.slider.defaultLabel",{min:s.min,max:s.max})),X=k(()=>s.range?s.rangeStartLabel||i("el.slider.defaultRangeStartLabel"):K.value),B=k(()=>s.formatValueText?s.formatValueText(ne.value):`${ne.value}`),Q=k(()=>s.rangeEndLabel||i("el.slider.defaultRangeEndLabel")),Y=k(()=>s.formatValueText?s.formatValueText(we.value):`${we.value}`),F=k(()=>[r.b(),r.m(U.value),r.is("vertical",s.vertical),{[r.m("with-input")]:s.showInput}]),H=cae(s);Tae(s,a,h,m,n,o);const Z=k(()=>{const te=[s.min,s.max,s.step].map(ge=>{const pe=`${ge}`.split(".")[1];return pe?pe.length:0});return Math.max.apply(null,te)}),{sliderWrapper:se}=uae(s,a,v),{firstValue:ne,secondValue:we,sliderSize:De}=cs(a),Ee=te=>{a.dragging=te};return an(se,"touchstart",_,{passive:!1}),an(se,"touchmove",_,{passive:!1}),Mt(gO,{...cs(s),sliderSize:De,disabled:f,precision:Z,emitChange:y,resetSize:v,updateDragging:Ee}),t({onSliderClick:b}),(te,ge)=>{var pe,Oe;return x(),j("div",{id:te.range?d(L):void 0,ref_key:"sliderWrapper",ref:se,class:M(d(F)),role:te.range?"group":void 0,"aria-label":te.range&&!d(z)?d(K):void 0,"aria-labelledby":te.range&&d(z)?(pe=d(o))==null?void 0:pe.labelId:void 0},[O("div",{ref_key:"slider",ref:l,class:M([d(r).e("runway"),{"show-input":te.showInput&&!te.range},d(r).is("disabled",d(f))]),style:st(d(g)),onMousedown:d(T),onTouchstartPassive:d(T)},[O("div",{class:M(d(r).e("bar")),style:st(d(p))},null,6),E(ux,{id:te.range?void 0:d(L),ref_key:"firstButton",ref:u,"model-value":d(ne),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":te.range||!d(z)?d(X):void 0,"aria-labelledby":!te.range&&d(z)?(Oe=d(o))==null?void 0:Oe.labelId:void 0,"aria-valuemin":te.min,"aria-valuemax":te.range?d(we):te.max,"aria-valuenow":d(ne),"aria-valuetext":d(B),"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":d(f),"onUpdate:modelValue":d(C)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),te.range?(x(),de(ux,{key:0,ref_key:"secondButton",ref:c,"model-value":d(we),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":d(Q),"aria-valuemin":d(ne),"aria-valuemax":te.max,"aria-valuenow":d(we),"aria-valuetext":d(Y),"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":d(f),"onUpdate:modelValue":d(D)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ae("v-if",!0),te.showStops?(x(),j("div",{key:1},[(x(!0),j(Ke,null,bt(d(N),(Pe,ve)=>(x(),j("div",{key:ve,class:M(d(r).e("stop")),style:st(d($)(Pe))},null,6))),128))])):ae("v-if",!0),d(H).length>0?(x(),j(Ke,{key:2},[O("div",null,[(x(!0),j(Ke,null,bt(d(H),(Pe,ve)=>(x(),j("div",{key:ve,style:st(d($)(Pe.position)),class:M([d(r).e("stop"),d(r).e("marks-stop")])},null,6))),128))]),O("div",{class:M(d(r).e("marks"))},[(x(!0),j(Ke,null,bt(d(H),(Pe,ve)=>(x(),de(d(Iae),{key:ve,mark:Pe.mark,style:st(d($)(Pe.position)),onMousedown:ft(ee=>d(S)(Pe.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):ae("v-if",!0)],46,["onMousedown","onTouchstartPassive"]),te.showInput&&!te.range?(x(),de(d(_h),{key:0,ref:"input","model-value":d(ne),class:M(d(r).e("input")),step:te.step,disabled:d(f),controls:te.showInputControls,min:te.min,max:te.max,precision:d(Z),debounce:te.debounce,size:d(W),"onUpdate:modelValue":d(C),onChange:d(y)},null,8,["model-value","class","step","disabled","controls","min","max","precision","debounce","size","onUpdate:modelValue","onChange"])):ae("v-if",!0)],10,["id","role","aria-label","aria-labelledby"])}}});var Pae=Ue(Oae,[["__file","slider.vue"]]);const Rae=Tt(Pae),Nae=Fe({prefixCls:{type:String}}),cx=J({name:"ElSpaceItem",props:Nae,setup(e,{slots:t}){const n=Re("space"),s=k(()=>`${e.prefixCls||n.b()}__item`);return()=>ot("div",{class:s.value},fe(t,"default"))}}),dx={small:8,default:12,large:16};function Mae(e){const t=Re("space"),n=k(()=>[t.b(),t.m(e.direction),e.class]),s=q(0),r=q(0),i=k(()=>{const o=e.wrap||e.fill?{flexWrap:"wrap"}:{},l={alignItems:e.alignment},u={rowGap:`${r.value}px`,columnGap:`${s.value}px`};return[o,l,u,e.style]}),a=k(()=>e.fill?{flexGrow:1,minWidth:`${e.fillRatio}%`}:{});return vs(()=>{const{size:o="small",wrap:l,direction:u,fill:c}=e;if(Ye(o)){const[f=0,h=0]=o;s.value=f,r.value=h}else{let f;ut(o)?f=o:f=dx[o||"small"]||dx.small,(l||c)&&u==="horizontal"?s.value=r.value=f:u==="horizontal"?(s.value=f,r.value=0):(r.value=f,s.value=0)}}),{classes:n,containerStyle:i,itemStyle:a}}const $ae=Fe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:oe([String,Object,Array]),default:""},style:{type:oe([String,Array,Object]),default:""},alignment:{type:oe(String),default:"center"},prefixCls:{type:String},spacer:{type:oe([Object,String,Number,Array]),default:null,validator:e=>Cn(e)||ut(e)||ht(e)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:ra,validator:e=>ut(e)||Ye(e)&&e.length===2&&e.every(ut)}}),Lae=J({name:"ElSpace",props:$ae,setup(e,{slots:t}){const{classes:n,containerStyle:s,itemStyle:r}=Mae(e);function i(a,o="",l=[]){const{prefixCls:u}=e;return a.forEach((c,f)=>{Wy(c)?Ye(c.children)&&c.children.forEach((h,m)=>{Wy(h)&&Ye(h.children)?i(h.children,`${o+m}-`,l):l.push(E(cx,{style:r.value,prefixCls:u,key:`nested-${o+m}`},{default:()=>[h]},Br.PROPS|Br.STYLE,["style","prefixCls"]))}):Eq(c)&&l.push(E(cx,{style:r.value,prefixCls:u,key:`LoopKey${o+f}`},{default:()=>[c]},Br.PROPS|Br.STYLE,["style","prefixCls"]))}),l}return()=>{var a;const{spacer:o,direction:l}=e,u=fe(t,"default",{key:0},()=>[]);if(((a=u.children)!=null?a:[]).length===0)return null;if(Ye(u.children)){let c=i(u.children);if(o){const f=c.length-1;c=c.reduce((h,m,g)=>{const p=[...h,m];return g!==f&&p.push(E("span",{style:[r.value,l==="vertical"?"width: 100%":null],key:g},[Cn(o)?o:Te(o,Br.TEXT)],Br.STYLE)),p},[])}return E("div",{class:n.value,style:s.value},c,Br.STYLE|Br.CLASS)}return u.children}}}),Bae=Tt(Lae),Fae=Fe({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:oe([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:oe([String,Object,Array])}}),Vae=J({name:"ElStatistic"}),Uae=J({...Vae,props:Fae,setup(e,{expose:t}){const n=e,s=Re("statistic"),r=k(()=>{const{value:i,formatter:a,precision:o,decimalSeparator:l,groupSeparator:u}=n;if(pt(a))return a(i);if(!ut(i)||Number.isNaN(i))return i;let[c,f=""]=String(i).split(".");return f=f.padEnd(o,"0").slice(0,o>0?o:0),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,u),[c,f].join(f?l:"")});return t({displayValue:r}),(i,a)=>(x(),j("div",{class:M(d(s).b())},[i.$slots.title||i.title?(x(),j("div",{key:0,class:M(d(s).e("head"))},[fe(i.$slots,"title",{},()=>[Te(ce(i.title),1)])],2)):ae("v-if",!0),O("div",{class:M(d(s).e("content"))},[i.$slots.prefix||i.prefix?(x(),j("div",{key:0,class:M(d(s).e("prefix"))},[fe(i.$slots,"prefix",{},()=>[O("span",null,ce(i.prefix),1)])],2)):ae("v-if",!0),O("span",{class:M(d(s).e("number")),style:st(i.valueStyle)},ce(d(r)),7),i.$slots.suffix||i.suffix?(x(),j("div",{key:1,class:M(d(s).e("suffix"))},[fe(i.$slots,"suffix",{},()=>[O("span",null,ce(i.suffix),1)])],2)):ae("v-if",!0)],2)],2))}});var Hae=Ue(Uae,[["__file","statistic.vue"]]);const vO=Tt(Hae),zae=Fe({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:oe([Number,Object]),default:0},valueStyle:{type:oe([String,Object,Array])}}),jae={finish:()=>!0,[gn]:e=>ut(e)},qae=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],fx=e=>ut(e)?new Date(e).getTime():e.valueOf(),hx=(e,t)=>{let n=e;const s=/\[([^\]]*)]/g;return qae.reduce((i,[a,o])=>{const l=new RegExp(`${a}+(?![^\\[\\]]*\\])`,"g");if(l.test(i)){const u=Math.floor(n/o);return n-=u*o,i.replace(l,c=>String(u).padStart(c.length,"0"))}return i},t).replace(s,"$1")},Wae=J({name:"ElCountdown"}),Kae=J({...Wae,props:zae,emits:jae,setup(e,{expose:t,emit:n}){const s=e;let r;const i=q(0),a=k(()=>hx(i.value,s.format)),o=c=>hx(c,s.format),l=()=>{r&&(Rl(r),r=void 0)},u=()=>{const c=fx(s.value),f=()=>{let h=c-Date.now();n("change",h),h<=0?(h=0,l(),n("finish")):r=xo(f),i.value=h};r=xo(f)};return gt(()=>{i.value=fx(s.value)-Date.now(),xe(()=>[s.value,s.format],()=>{l(),u()},{immediate:!0})}),un(()=>{l()}),t({displayValue:a}),(c,f)=>(x(),de(d(vO),{value:i.value,title:c.title,prefix:c.prefix,suffix:c.suffix,"value-style":c.valueStyle,formatter:o},Gr({_:2},[bt(c.$slots,(h,m)=>({name:m,fn:P(()=>[fe(c.$slots,m)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Gae=Ue(Kae,[["__file","countdown.vue"]]);const Yae=Tt(Gae),Xae=Fe({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),Qae={[gn]:(e,t)=>[e,t].every(ut)},Jae=J({name:"ElSteps"}),Zae=J({...Jae,props:Xae,emits:Qae,setup(e,{emit:t}){const n=e,s=Re("steps"),{children:r,addChild:i,removeChild:a}=r2(Ot(),"ElStep");return xe(r,()=>{r.value.forEach((o,l)=>{o.setIndex(l)})}),Mt("ElSteps",{props:n,steps:r,addStep:i,removeStep:a}),xe(()=>n.active,(o,l)=>{t(gn,o,l)}),(o,l)=>(x(),j("div",{class:M([d(s).b(),d(s).m(o.simple?"simple":o.direction)])},[fe(o.$slots,"default")],2))}});var eoe=Ue(Zae,[["__file","steps.vue"]]);const toe=Fe({title:{type:String,default:""},icon:{type:ln},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),noe=J({name:"ElStep"}),soe=J({...noe,props:toe,setup(e){const t=e,n=Re("step"),s=q(-1),r=q({}),i=q(""),a=Xe("ElSteps"),o=Ot();gt(()=>{xe([()=>a.props.active,()=>a.props.processStatus,()=>a.props.finishStatus],([C])=>{T(C)},{immediate:!0})}),un(()=>{a.removeStep(S.uid)});const l=k(()=>t.status||i.value),u=k(()=>{const C=a.steps.value[s.value-1];return C?C.currentStatus:"wait"}),c=k(()=>a.props.alignCenter),f=k(()=>a.props.direction==="vertical"),h=k(()=>a.props.simple),m=k(()=>a.steps.value.length),g=k(()=>{var C;return((C=a.steps.value[m.value-1])==null?void 0:C.uid)===(o==null?void 0:o.uid)}),p=k(()=>h.value?"":a.props.space),v=k(()=>[n.b(),n.is(h.value?"simple":a.props.direction),n.is("flex",g.value&&!p.value&&!c.value),n.is("center",c.value&&!f.value&&!h.value)]),y=k(()=>{const C={flexBasis:ut(p.value)?`${p.value}px`:p.value?p.value:`${100/(m.value-(c.value?0:1))}%`};return f.value||g.value&&(C.maxWidth=`${100/m.value}%`),C}),_=C=>{s.value=C},b=C=>{const D=C==="wait",N={transitionDelay:`${D?"-":""}${150*s.value}ms`},$=C===a.props.processStatus||D?0:100;N.borderWidth=$&&!h.value?"1px":0,N[a.props.direction==="vertical"?"height":"width"]=`${$}%`,r.value=N},T=C=>{C>s.value?i.value=a.props.finishStatus:C===s.value&&u.value!=="error"?i.value=a.props.processStatus:i.value="wait";const D=a.steps.value[s.value-1];D&&D.calcProgress(i.value)},S=Ct({uid:o.uid,currentStatus:l,setIndex:_,calcProgress:b});return a.addStep(S),(C,D)=>(x(),j("div",{style:st(d(y)),class:M(d(v))},[ae(" icon & line "),O("div",{class:M([d(n).e("head"),d(n).is(d(l))])},[d(h)?ae("v-if",!0):(x(),j("div",{key:0,class:M(d(n).e("line"))},[O("i",{class:M(d(n).e("line-inner")),style:st(r.value)},null,6)],2)),O("div",{class:M([d(n).e("icon"),d(n).is(C.icon||C.$slots.icon?"icon":"text")])},[fe(C.$slots,"icon",{},()=>[C.icon?(x(),de(d(tt),{key:0,class:M(d(n).e("icon-inner"))},{default:P(()=>[(x(),de(Rt(C.icon)))]),_:1},8,["class"])):d(l)==="success"?(x(),de(d(tt),{key:1,class:M([d(n).e("icon-inner"),d(n).is("status")])},{default:P(()=>[E(d(uh))]),_:1},8,["class"])):d(l)==="error"?(x(),de(d(tt),{key:2,class:M([d(n).e("icon-inner"),d(n).is("status")])},{default:P(()=>[E(d(_i))]),_:1},8,["class"])):d(h)?ae("v-if",!0):(x(),j("div",{key:3,class:M(d(n).e("icon-inner"))},ce(s.value+1),3))])],2)],2),ae(" title & description "),O("div",{class:M(d(n).e("main"))},[O("div",{class:M([d(n).e("title"),d(n).is(d(l))])},[fe(C.$slots,"title",{},()=>[Te(ce(C.title),1)])],2),d(h)?(x(),j("div",{key:0,class:M(d(n).e("arrow"))},null,2)):(x(),j("div",{key:1,class:M([d(n).e("description"),d(n).is(d(l))])},[fe(C.$slots,"description",{},()=>[Te(ce(C.description),1)])],2))],2)],6))}});var yO=Ue(soe,[["__file","item.vue"]]);const roe=Tt(eoe,{Step:yO}),ioe=kn(yO),aoe=Fe({modelValue:{type:[Boolean,String,Number],default:!1},disabled:Boolean,loading:Boolean,size:{type:String,validator:lI},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:ln},activeActionIcon:{type:ln},activeIcon:{type:ln},inactiveIcon:{type:ln},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:oe(Function)},id:String,tabindex:{type:[String,Number]},..._s(["ariaLabel"])}),ooe={[At]:e=>In(e)||ht(e)||ut(e),[gn]:e=>In(e)||ht(e)||ut(e),[Ys]:e=>In(e)||ht(e)||ut(e)},bO="ElSwitch",loe=J({name:bO}),uoe=J({...loe,props:aoe,emits:ooe,setup(e,{expose:t,emit:n}){const s=e,{formItem:r}=Bs(),i=Kn(),a=Re("switch"),{inputId:o}=Ai(s,{formItemContext:r}),l=Ls(k(()=>s.loading)),u=q(s.modelValue!==!1),c=q(),f=q(),h=k(()=>[a.b(),a.m(i.value),a.is("disabled",l.value),a.is("checked",y.value)]),m=k(()=>[a.e("label"),a.em("label","left"),a.is("active",!y.value)]),g=k(()=>[a.e("label"),a.em("label","right"),a.is("active",y.value)]),p=k(()=>({width:Nn(s.width)}));xe(()=>s.modelValue,()=>{u.value=!0});const v=k(()=>u.value?s.modelValue:!1),y=k(()=>v.value===s.activeValue);[s.activeValue,s.inactiveValue].includes(v.value)||(n(At,s.inactiveValue),n(gn,s.inactiveValue),n(Ys,s.inactiveValue)),xe(y,S=>{var C;c.value.checked=S,s.validateEvent&&((C=r==null?void 0:r.validate)==null||C.call(r,"change").catch(D=>void 0))});const _=()=>{const S=y.value?s.inactiveValue:s.activeValue;n(At,S),n(gn,S),n(Ys,S),it(()=>{c.value.checked=y.value})},b=()=>{if(l.value)return;const{beforeChange:S}=s;if(!S){_();return}const C=S();[ff(C),In(C)].includes(!0)||es(bO,"beforeChange must return type `Promise<boolean>` or `boolean`"),ff(C)?C.then(N=>{N&&_()}).catch(N=>{}):C&&_()},T=()=>{var S,C;(C=(S=c.value)==null?void 0:S.focus)==null||C.call(S)};return gt(()=>{c.value.checked=y.value}),t({focus:T,checked:y}),(S,C)=>(x(),j("div",{class:M(d(h)),onClick:ft(b,["prevent"])},[O("input",{id:d(o),ref_key:"input",ref:c,class:M(d(a).e("input")),type:"checkbox",role:"switch","aria-checked":d(y),"aria-disabled":d(l),"aria-label":S.ariaLabel,name:S.name,"true-value":S.activeValue,"false-value":S.inactiveValue,disabled:d(l),tabindex:S.tabindex,onChange:_,onKeydown:rn(b,["enter"])},null,42,["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex","onKeydown"]),!S.inlinePrompt&&(S.inactiveIcon||S.inactiveText)?(x(),j("span",{key:0,class:M(d(m))},[S.inactiveIcon?(x(),de(d(tt),{key:0},{default:P(()=>[(x(),de(Rt(S.inactiveIcon)))]),_:1})):ae("v-if",!0),!S.inactiveIcon&&S.inactiveText?(x(),j("span",{key:1,"aria-hidden":d(y)},ce(S.inactiveText),9,["aria-hidden"])):ae("v-if",!0)],2)):ae("v-if",!0),O("span",{ref_key:"core",ref:f,class:M(d(a).e("core")),style:st(d(p))},[S.inlinePrompt?(x(),j("div",{key:0,class:M(d(a).e("inner"))},[S.activeIcon||S.inactiveIcon?(x(),de(d(tt),{key:0,class:M(d(a).is("icon"))},{default:P(()=>[(x(),de(Rt(d(y)?S.activeIcon:S.inactiveIcon)))]),_:1},8,["class"])):S.activeText||S.inactiveText?(x(),j("span",{key:1,class:M(d(a).is("text")),"aria-hidden":!d(y)},ce(d(y)?S.activeText:S.inactiveText),11,["aria-hidden"])):ae("v-if",!0)],2)):ae("v-if",!0),O("div",{class:M(d(a).e("action"))},[S.loading?(x(),de(d(tt),{key:0,class:M(d(a).is("loading"))},{default:P(()=>[E(d(Gi))]),_:1},8,["class"])):d(y)?fe(S.$slots,"active-action",{key:1},()=>[S.activeActionIcon?(x(),de(d(tt),{key:0},{default:P(()=>[(x(),de(Rt(S.activeActionIcon)))]),_:1})):ae("v-if",!0)]):d(y)?ae("v-if",!0):fe(S.$slots,"inactive-action",{key:2},()=>[S.inactiveActionIcon?(x(),de(d(tt),{key:0},{default:P(()=>[(x(),de(Rt(S.inactiveActionIcon)))]),_:1})):ae("v-if",!0)])],2)],6),!S.inlinePrompt&&(S.activeIcon||S.activeText)?(x(),j("span",{key:1,class:M(d(g))},[S.activeIcon?(x(),de(d(tt),{key:0},{default:P(()=>[(x(),de(Rt(S.activeIcon)))]),_:1})):ae("v-if",!0),!S.activeIcon&&S.activeText?(x(),j("span",{key:1,"aria-hidden":!d(y)},ce(S.activeText),9,["aria-hidden"])):ae("v-if",!0)],2)):ae("v-if",!0)],10,["onClick"]))}});var coe=Ue(uoe,[["__file","switch.vue"]]);const Sh=Tt(coe),L0=function(e){var t;return(t=e.target)==null?void 0:t.closest("td")},doe=function(e,t,n,s,r){if(!t&&!s&&(!r||Array.isArray(r)&&!r.length))return e;typeof n=="string"?n=n==="descending"?-1:1:n=n&&n<0?-1:1;const i=s?null:function(o,l){return r?(Array.isArray(r)||(r=[r]),r.map(u=>typeof u=="string"?Ln(o,u):u(o,l,e))):(t!=="$key"&&Pt(o)&&"$value"in o&&(o=o.$value),[Pt(o)?Ln(o,t):o])},a=function(o,l){if(s)return s(o.value,l.value);for(let u=0,c=o.key.length;u<c;u++){if(o.key[u]<l.key[u])return-1;if(o.key[u]>l.key[u])return 1}return 0};return e.map((o,l)=>({value:o,index:l,key:i?i(o,l):null})).sort((o,l)=>{let u=a(o,l);return u||(u=o.index-l.index),u*+n}).map(o=>o.value)},_O=function(e,t){let n=null;return e.columns.forEach(s=>{s.id===t&&(n=s)}),n},foe=function(e,t){let n=null;for(let s=0;s<e.columns.length;s++){const r=e.columns[s];if(r.columnKey===t){n=r;break}}return n||es("ElTable",`No column matching with column-key: ${t}`),n},px=function(e,t,n){const s=(t.className||"").match(new RegExp(`${n}-table_[^\\s]+`,"gm"));return s?_O(e,s[0]):null},Os=(e,t)=>{if(!e)throw new Error("Row is required when get row identity");if(typeof t=="string"){if(!t.includes("."))return`${e[t]}`;const n=t.split(".");let s=e;for(const r of n)s=s[r];return`${s}`}else if(typeof t=="function")return t.call(null,e)},pl=function(e,t){const n={};return(e||[]).forEach((s,r)=>{n[Os(s,t)]={row:s,index:r}}),n};function hoe(e,t){const n={};let s;for(s in e)n[s]=e[s];for(s in t)if(jt(t,s)){const r=t[s];typeof r<"u"&&(n[s]=r)}return n}function B2(e){return e===""||e!==void 0&&(e=Number.parseInt(e,10),Number.isNaN(e)&&(e="")),e}function wO(e){return e===""||e!==void 0&&(e=B2(e),Number.isNaN(e)&&(e=80)),e}function poe(e){return typeof e=="number"?e:typeof e=="string"?/^\d+(?:px)?$/.test(e)?Number.parseInt(e,10):e:null}function moe(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...s)=>t(n(...s)))}function Um(e,t,n,s,r,i){let a=i??0,o=!1;const l=e.indexOf(t),u=l!==-1,c=r==null?void 0:r.call(null,t,i),f=m=>{m==="add"?e.push(t):e.splice(l,1),o=!0},h=m=>{let g=0;const p=(s==null?void 0:s.children)&&m[s.children];return p&&Ye(p)&&(g+=p.length,p.forEach(v=>{g+=h(v)})),g};return(!r||c)&&(In(n)?n&&!u?f("add"):!n&&u&&f("remove"):f(u?"remove":"add")),!(s!=null&&s.checkStrictly)&&(s!=null&&s.children)&&Ye(t[s.children])&&t[s.children].forEach(m=>{Um(e,m,n??!u,s,r,a+1),a+=h(m)+1}),o}function goe(e,t,n="children",s="hasChildren"){const r=a=>!(Array.isArray(a)&&a.length);function i(a,o,l){t(a,o,l),o.forEach(u=>{if(u[s]){t(u,null,l+1);return}const c=u[n];r(c)||i(u,c,l+1)})}e.forEach(a=>{if(a[s]){t(a,null,0);return}const o=a[n];r(o)||i(a,o,0)})}let Lr=null;function voe(e,t,n,s){if((Lr==null?void 0:Lr.trigger)===n)return;Lr==null||Lr();const r=s==null?void 0:s.refs.tableWrapper,i=r==null?void 0:r.dataset.prefix,a={strategy:"fixed",...e.popperOptions},o=E(is,{content:t,virtualTriggering:!0,virtualRef:n,appendTo:r,placement:"top",transition:"none",offset:0,hideAfter:0,...e,popperOptions:a,onHide:()=>{Lr==null||Lr()}});o.appContext={...s.appContext,...s};const l=document.createElement("div");Co(o,l),o.component.exposed.onOpen();const u=r==null?void 0:r.querySelector(`.${i}-scrollbar__wrap`);Lr=()=>{Co(null,l),u==null||u.removeEventListener("scroll",Lr),Lr=null},Lr.trigger=n,u==null||u.addEventListener("scroll",Lr)}function SO(e){return e.children?iz(e.children,SO):[e]}function mx(e,t){return e+t.colSpan}const TO=(e,t,n,s)=>{let r=0,i=e;const a=n.states.columns.value;if(s){const l=SO(s[e]);r=a.slice(0,a.indexOf(l[0])).reduce(mx,0),i=r+l.reduce(mx,0)-1}else r=e;let o;switch(t){case"left":i<n.states.fixedLeafColumnsLength.value&&(o="left");break;case"right":r>=a.length-n.states.rightFixedLeafColumnsLength.value&&(o="right");break;default:i<n.states.fixedLeafColumnsLength.value?o="left":r>=a.length-n.states.rightFixedLeafColumnsLength.value&&(o="right")}return o?{direction:o,start:r,after:i}:{}},F2=(e,t,n,s,r,i=0)=>{const a=[],{direction:o,start:l,after:u}=TO(t,n,s,r);if(o){const c=o==="left";a.push(`${e}-fixed-column--${o}`),c&&u+i===s.states.fixedLeafColumnsLength.value-1?a.push("is-last-column"):!c&&l-i===s.states.columns.value.length-s.states.rightFixedLeafColumnsLength.value&&a.push("is-first-column")}return a};function gx(e,t){return e+(t.realWidth===null||Number.isNaN(t.realWidth)?Number(t.width):t.realWidth)}const V2=(e,t,n,s)=>{const{direction:r,start:i=0,after:a=0}=TO(e,t,n,s);if(!r)return;const o={},l=r==="left",u=n.states.columns.value;return l?o.left=u.slice(0,i).reduce(gx,0):o.right=u.slice(a+1).reverse().reduce(gx,0),o},oc=(e,t)=>{e&&(Number.isNaN(e[t])||(e[t]=`${e[t]}px`))};function yoe(e){const t=Ot(),n=q(!1),s=q([]);return{updateExpandRows:()=>{const l=e.data.value||[],u=e.rowKey.value;if(n.value)s.value=l.slice();else if(u){const c=pl(s.value,u);s.value=l.reduce((f,h)=>{const m=Os(h,u);return c[m]&&f.push(h),f},[])}else s.value=[]},toggleRowExpansion:(l,u)=>{Um(s.value,l,u)&&t.emit("expand-change",l,s.value.slice())},setExpandRowKeys:l=>{t.store.assertRowKey();const u=e.data.value||[],c=e.rowKey.value,f=pl(u,c);s.value=l.reduce((h,m)=>{const g=f[m];return g&&h.push(g.row),h},[])},isRowExpanded:l=>{const u=e.rowKey.value;return u?!!pl(s.value,u)[Os(l,u)]:s.value.includes(l)},states:{expandRows:s,defaultExpandAll:n}}}function boe(e){const t=Ot(),n=q(null),s=q(null),r=u=>{t.store.assertRowKey(),n.value=u,a(u)},i=()=>{n.value=null},a=u=>{const{data:c,rowKey:f}=e;let h=null;f.value&&(h=(d(c)||[]).find(m=>Os(m,f.value)===u)),s.value=h,t.emit("current-change",s.value,null)};return{setCurrentRowKey:r,restoreCurrentRowKey:i,setCurrentRowByKey:a,updateCurrentRow:u=>{const c=s.value;if(u&&u!==c){s.value=u,t.emit("current-change",s.value,c);return}!u&&c&&(s.value=null,t.emit("current-change",null,c))},updateCurrentRowData:()=>{const u=e.rowKey.value,c=e.data.value||[],f=s.value;if(!c.includes(f)&&f){if(u){const h=Os(f,u);a(h)}else s.value=null;s.value===null&&t.emit("current-change",null,f)}else n.value&&(a(n.value),i())},states:{_currentRowKey:n,currentRow:s}}}function _oe(e){const t=q([]),n=q({}),s=q(16),r=q(!1),i=q({}),a=q("hasChildren"),o=q("children"),l=q(!1),u=Ot(),c=k(()=>{if(!e.rowKey.value)return{};const b=e.data.value||[];return h(b)}),f=k(()=>{const b=e.rowKey.value,T=Object.keys(i.value),S={};return T.length&&T.forEach(C=>{if(i.value[C].length){const D={children:[]};i.value[C].forEach(N=>{const $=Os(N,b);D.children.push($),N[a.value]&&!S[$]&&(S[$]={children:[]})}),S[C]=D}}),S}),h=b=>{const T=e.rowKey.value,S={};return goe(b,(C,D,N)=>{const $=Os(C,T);Array.isArray(D)?S[$]={children:D.map(L=>Os(L,T)),level:N}:r.value&&(S[$]={children:[],lazy:!0,level:N})},o.value,a.value),S},m=(b=!1,T=(S=>(S=u.store)==null?void 0:S.states.defaultExpandAll.value)())=>{var S;const C=c.value,D=f.value,N=Object.keys(C),$={};if(N.length){const L=d(n),z=[],U=(K,X)=>{if(b)return t.value?T||t.value.includes(X):!!(T||K!=null&&K.expanded);{const B=T||t.value&&t.value.includes(X);return!!(K!=null&&K.expanded||B)}};N.forEach(K=>{const X=L[K],B={...C[K]};if(B.expanded=U(X,K),B.lazy){const{loaded:Q=!1,loading:Y=!1}=X||{};B.loaded=!!Q,B.loading=!!Y,z.push(K)}$[K]=B});const W=Object.keys(D);r.value&&W.length&&z.length&&W.forEach(K=>{const X=L[K],B=D[K].children;if(z.includes(K)){if($[K].children.length!==0)throw new Error("[ElTable]children must be an empty array.");$[K].children=B}else{const{loaded:Q=!1,loading:Y=!1}=X||{};$[K]={lazy:!0,loaded:!!Q,loading:!!Y,expanded:U(X,K),children:B,level:""}}})}n.value=$,(S=u.store)==null||S.updateTableScrollY()};xe(()=>t.value,()=>{m(!0)}),xe(()=>c.value,()=>{m()}),xe(()=>f.value,()=>{m()});const g=b=>{t.value=b,m()},p=(b,T)=>{u.store.assertRowKey();const S=e.rowKey.value,C=Os(b,S),D=C&&n.value[C];if(C&&D&&"expanded"in D){const N=D.expanded;T=typeof T>"u"?!D.expanded:T,n.value[C].expanded=T,N!==T&&u.emit("expand-change",b,T),u.store.updateTableScrollY()}},v=b=>{u.store.assertRowKey();const T=e.rowKey.value,S=Os(b,T),C=n.value[S];r.value&&C&&"loaded"in C&&!C.loaded?y(b,S,C):p(b,void 0)},y=(b,T,S)=>{const{load:C}=u.props;C&&!n.value[T].loaded&&(n.value[T].loading=!0,C(b,S,D=>{if(!Array.isArray(D))throw new TypeError("[ElTable] data must be an array");n.value[T].loading=!1,n.value[T].loaded=!0,n.value[T].expanded=!0,D.length&&(i.value[T]=D),u.emit("expand-change",b,!0)}))};return{loadData:y,loadOrToggle:v,toggleTreeExpansion:p,updateTreeExpandKeys:g,updateTreeData:m,updateKeyChildren:(b,T)=>{const{lazy:S,rowKey:C}=u.props;if(S){if(!C)throw new Error("[Table] rowKey is required in updateKeyChild");i.value[b]&&(i.value[b]=T)}},normalize:h,states:{expandRowKeys:t,treeData:n,indent:s,lazy:r,lazyTreeNodeMap:i,lazyColumnIdentifier:a,childrenColumnName:o,checkStrictly:l}}}const woe=(e,t)=>{const n=t.sortingColumn;return!n||typeof n.sortable=="string"?e:doe(e,t.sortProp,t.sortOrder,n.sortMethod,n.sortBy)},Jp=e=>{const t=[];return e.forEach(n=>{n.children&&n.children.length>0?t.push.apply(t,Jp(n.children)):t.push(n)}),t};function Soe(){var e;const t=Ot(),{size:n}=cs((e=t.proxy)==null?void 0:e.$props),s=q(null),r=q([]),i=q([]),a=q(!1),o=q([]),l=q([]),u=q([]),c=q([]),f=q([]),h=q([]),m=q([]),g=q([]),p=[],v=q(0),y=q(0),_=q(0),b=q(!1),T=q([]),S=q(!1),C=q(!1),D=q(null),N=q({}),$=q(null),L=q(null),z=q(null),U=q(null),W=q(null);xe(r,()=>t.state&&Y(!1),{deep:!0});const K=()=>{if(!s.value)throw new Error("[ElTable] prop row-key is required")},X=be=>{var et;(et=be.children)==null||et.forEach(le=>{le.fixed=be.fixed,X(le)})};let B;const Q=()=>{o.value.forEach(Me=>{X(Me)}),c.value=o.value.filter(Me=>Me.fixed===!0||Me.fixed==="left"),f.value=o.value.filter(Me=>Me.fixed==="right"),An(B)&&o.value[0]&&o.value[0].type==="selection"&&(B=!!o.value[0].fixed),c.value.length>0&&o.value[0]&&o.value[0].type==="selection"&&(o.value[0].fixed?c.value.some(vt=>vt.type!=="selection")?B=void 0:(o.value[0].fixed=B,B||c.value.shift()):(o.value[0].fixed=!0,c.value.unshift(o.value[0])));const be=o.value.filter(Me=>!Me.fixed);l.value=[].concat(c.value).concat(be).concat(f.value);const et=Jp(be),le=Jp(c.value),Ne=Jp(f.value);v.value=et.length,y.value=le.length,_.value=Ne.length,u.value=[].concat(le).concat(et).concat(Ne),a.value=c.value.length>0||f.value.length>0},Y=(be,et=!1)=>{be&&Q(),et?t.state.doLayout():t.state.debouncedUpdateLayout()},F=be=>T.value.some(et=>Ps(et,be)),H=()=>{b.value=!1;const be=T.value;T.value=[],be.length&&t.emit("selection-change",[])},Z=()=>{let be;if(s.value){be=[];const et=pl(T.value,s.value),le=pl(r.value,s.value);for(const Ne in et)jt(et,Ne)&&!le[Ne]&&be.push(et[Ne].row)}else be=T.value.filter(et=>!r.value.includes(et));if(be.length){const et=T.value.filter(le=>!be.includes(le));T.value=et,t.emit("selection-change",et.slice())}},se=()=>(T.value||[]).slice(),ne=(be,et,le=!0,Ne=!1)=>{var Me,vt,qt,Ce;const mt={children:(vt=(Me=t==null?void 0:t.store)==null?void 0:Me.states)==null?void 0:vt.childrenColumnName.value,checkStrictly:(Ce=(qt=t==null?void 0:t.store)==null?void 0:qt.states)==null?void 0:Ce.checkStrictly.value};if(Um(T.value,be,et,mt,Ne?void 0:D.value)){const Qt=(T.value||[]).slice();le&&t.emit("select",Qt,be),t.emit("selection-change",Qt)}},we=()=>{var be,et;const le=C.value?!b.value:!(b.value||T.value.length);b.value=le;let Ne=!1,Me=0;const vt=(et=(be=t==null?void 0:t.store)==null?void 0:be.states)==null?void 0:et.rowKey.value,{childrenColumnName:qt}=t.store.states,Ce={children:qt.value,checkStrictly:!1};r.value.forEach((mt,Vt)=>{const Qt=Vt+Me;Um(T.value,mt,le,Ce,D.value,Qt)&&(Ne=!0),Me+=te(Os(mt,vt))}),Ne&&t.emit("selection-change",T.value?T.value.slice():[]),t.emit("select-all",(T.value||[]).slice())},De=()=>{const be=pl(T.value,s.value);r.value.forEach(et=>{const le=Os(et,s.value),Ne=be[le];Ne&&(T.value[Ne.index]=et)})},Ee=()=>{var be;if(((be=r.value)==null?void 0:be.length)===0){b.value=!1;return}const{childrenColumnName:et}=t.store.states,le=s.value?pl(T.value,s.value):void 0;let Ne=0,Me=0;const vt=mt=>le?!!le[Os(mt,s.value)]:T.value.includes(mt),qt=mt=>{var Vt;for(const Qt of mt){const Wt=D.value&&D.value.call(null,Qt,Ne);if(vt(Qt))Me++;else if(!D.value||Wt)return!1;if(Ne++,(Vt=Qt[et.value])!=null&&Vt.length&&!qt(Qt[et.value]))return!1}return!0},Ce=qt(r.value||[]);b.value=Me===0?!1:Ce},te=be=>{var et;if(!t||!t.store)return 0;const{treeData:le}=t.store.states;let Ne=0;const Me=(et=le.value[be])==null?void 0:et.children;return Me&&(Ne+=Me.length,Me.forEach(vt=>{Ne+=te(vt)})),Ne},ge=(be,et)=>{Array.isArray(be)||(be=[be]);const le={};return be.forEach(Ne=>{N.value[Ne.id]=et,le[Ne.columnKey||Ne.id]=et}),le},pe=(be,et,le)=>{L.value&&L.value!==be&&(L.value.order=null),L.value=be,z.value=et,U.value=le},Oe=()=>{let be=d(i);Object.keys(N.value).forEach(et=>{const le=N.value[et];if(!le||le.length===0)return;const Ne=_O({columns:u.value},et);Ne&&Ne.filterMethod&&(be=be.filter(Me=>le.some(vt=>Ne.filterMethod.call(null,vt,Me,Ne))))}),$.value=be},Pe=()=>{r.value=woe($.value,{sortingColumn:L.value,sortProp:z.value,sortOrder:U.value})},ve=(be=void 0)=>{be&&be.filter||Oe(),Pe()},ee=be=>{const{tableHeaderRef:et}=t.refs;if(!et)return;const le=Object.assign({},et.filterPanels),Ne=Object.keys(le);if(Ne.length)if(typeof be=="string"&&(be=[be]),Array.isArray(be)){const Me=be.map(vt=>foe({columns:u.value},vt));Ne.forEach(vt=>{const qt=Me.find(Ce=>Ce.id===vt);qt&&(qt.filteredValue=[])}),t.store.commit("filterChange",{column:Me,values:[],silent:!0,multi:!0})}else Ne.forEach(Me=>{const vt=u.value.find(qt=>qt.id===Me);vt&&(vt.filteredValue=[])}),N.value={},t.store.commit("filterChange",{column:{},values:[],silent:!0})},re=()=>{L.value&&(pe(null,null,null),t.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Se,toggleRowExpansion:Le,updateExpandRows:_e,states:ke,isRowExpanded:Be}=yoe({data:r,rowKey:s}),{updateTreeExpandKeys:Ie,toggleTreeExpansion:ze,updateTreeData:Ve,updateKeyChildren:Ze,loadOrToggle:je,states:Ae}=_oe({data:r,rowKey:s}),{updateCurrentRowData:nt,updateCurrentRow:_t,setCurrentRowKey:xt,states:It}=boe({data:r,rowKey:s});return{assertRowKey:K,updateColumns:Q,scheduleLayout:Y,isSelected:F,clearSelection:H,cleanSelection:Z,getSelectionRows:se,toggleRowSelection:ne,_toggleAllSelection:we,toggleAllSelection:null,updateSelectionByRowKey:De,updateAllSelected:Ee,updateFilters:ge,updateCurrentRow:_t,updateSort:pe,execFilter:Oe,execSort:Pe,execQuery:ve,clearFilter:ee,clearSort:re,toggleRowExpansion:Le,setExpandRowKeysAdapter:be=>{Se(be),Ie(be)},setCurrentRowKey:xt,toggleRowExpansionAdapter:(be,et)=>{u.value.some(({type:Ne})=>Ne==="expand")?Le(be,et):ze(be,et)},isRowExpanded:Be,updateExpandRows:_e,updateCurrentRowData:nt,loadOrToggle:je,updateTreeData:Ve,updateKeyChildren:Ze,states:{tableSize:n,rowKey:s,data:r,_data:i,isComplex:a,_columns:o,originColumns:l,columns:u,fixedColumns:c,rightFixedColumns:f,leafColumns:h,fixedLeafColumns:m,rightFixedLeafColumns:g,updateOrderFns:p,leafColumnsLength:v,fixedLeafColumnsLength:y,rightFixedLeafColumnsLength:_,isAllSelected:b,selection:T,reserveSelection:S,selectOnIndeterminate:C,selectable:D,filters:N,filteredData:$,sortingColumn:L,sortProp:z,sortOrder:U,hoverRow:W,...ke,...Ae,...It}}}function Nb(e,t){return e.map(n=>{var s;return n.id===t.id?t:((s=n.children)!=null&&s.length&&(n.children=Nb(n.children,t)),n)})}function Mb(e){e.forEach(t=>{var n,s;t.no=(n=t.getColumnIndex)==null?void 0:n.call(t),(s=t.children)!=null&&s.length&&Mb(t.children)}),e.sort((t,n)=>t.no-n.no)}function Toe(){const e=Ot(),t=Soe();return{ns:Re("table"),...t,mutations:{setData(a,o){const l=d(a._data)!==o;a.data.value=o,a._data.value=o,e.store.execQuery(),e.store.updateCurrentRowData(),e.store.updateExpandRows(),e.store.updateTreeData(e.store.states.defaultExpandAll.value),d(a.reserveSelection)?(e.store.assertRowKey(),e.store.updateSelectionByRowKey()):l?e.store.clearSelection():e.store.cleanSelection(),e.store.updateAllSelected(),e.$ready&&e.store.scheduleLayout()},insertColumn(a,o,l,u){const c=d(a._columns);let f=[];l?(l&&!l.children&&(l.children=[]),l.children.push(o),f=Nb(c,l)):(c.push(o),f=c),Mb(f),a._columns.value=f,a.updateOrderFns.push(u),o.type==="selection"&&(a.selectable.value=o.selectable,a.reserveSelection.value=o.reserveSelection),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},updateColumnOrder(a,o){var l;((l=o.getColumnIndex)==null?void 0:l.call(o))!==o.no&&(Mb(a._columns.value),e.$ready&&e.store.updateColumns())},removeColumn(a,o,l,u){const c=d(a._columns)||[];if(l)l.children.splice(l.children.findIndex(h=>h.id===o.id),1),it(()=>{var h;((h=l.children)==null?void 0:h.length)===0&&delete l.children}),a._columns.value=Nb(c,l);else{const h=c.indexOf(o);h>-1&&(c.splice(h,1),a._columns.value=c)}const f=a.updateOrderFns.indexOf(u);f>-1&&a.updateOrderFns.splice(f,1),e.$ready&&(e.store.updateColumns(),e.store.scheduleLayout())},sort(a,o){const{prop:l,order:u,init:c}=o;if(l){const f=d(a.columns).find(h=>h.property===l);f&&(f.order=u,e.store.updateSort(f,l,u),e.store.commit("changeSortCondition",{init:c}))}},changeSortCondition(a,o){const{sortingColumn:l,sortProp:u,sortOrder:c}=a,f=d(l),h=d(u),m=d(c);m===null&&(a.sortingColumn.value=null,a.sortProp.value=null);const g={filter:!0};e.store.execQuery(g),(!o||!(o.silent||o.init))&&e.emit("sort-change",{column:f,prop:h,order:m}),e.store.updateTableScrollY()},filterChange(a,o){const{column:l,values:u,silent:c}=o,f=e.store.updateFilters(l,u);e.store.execQuery(),c||e.emit("filter-change",f),e.store.updateTableScrollY()},toggleAllSelection(){e.store.toggleAllSelection()},rowSelectedChanged(a,o){e.store.toggleRowSelection(o),e.store.updateAllSelected()},setHoverRow(a,o){a.hoverRow.value=o},setCurrentRow(a,o){e.store.updateCurrentRow(o)}},commit:function(a,...o){const l=e.store.mutations;if(l[a])l[a].apply(e,[e.store.states].concat(o));else throw new Error(`Action not found: ${a}`)},updateTableScrollY:function(){it(()=>e.layout.updateScrollY.apply(e.layout))}}}const tf={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data","treeProps.hasChildren":{key:"lazyColumnIdentifier",default:"hasChildren"},"treeProps.children":{key:"childrenColumnName",default:"children"},"treeProps.checkStrictly":{key:"checkStrictly",default:!1}};function Coe(e,t){if(!e)throw new Error("Table is required.");const n=Toe();return n.toggleAllSelection=fr(n._toggleAllSelection,10),Object.keys(tf).forEach(s=>{CO(EO(t,s),s,n)}),Eoe(n,t),n}function Eoe(e,t){Object.keys(tf).forEach(n=>{xe(()=>EO(t,n),s=>{CO(s,n,e)})})}function CO(e,t,n){let s=e,r=tf[t];typeof tf[t]=="object"&&(r=r.key,s=s||tf[t].default),n.states[r].value=s}function EO(e,t){if(t.includes(".")){const n=t.split(".");let s=e;return n.forEach(r=>{s=s[r]}),s}else return e[t]}class xoe{constructor(t){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=q(null),this.scrollX=q(!1),this.scrollY=q(!1),this.bodyWidth=q(null),this.fixedWidth=q(null),this.rightFixedWidth=q(null),this.gutterWidth=0;for(const n in t)jt(t,n)&&(yn(this[n])?this[n].value=t[n]:this[n]=t[n]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const n=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(n!=null&&n.wrapRef)){let s=!0;const r=this.scrollY.value;return s=n.wrapRef.scrollHeight>n.wrapRef.clientHeight,this.scrollY.value=s,r!==s}return!1}setHeight(t,n="height"){if(!Ht)return;const s=this.table.vnode.el;if(t=poe(t),this.height.value=Number(t),!s&&(t||t===0))return it(()=>this.setHeight(t,n));typeof t=="number"?(s.style[n]=`${t}px`,this.updateElsHeight()):typeof t=="string"&&(s.style[n]=t,this.updateElsHeight())}setMaxHeight(t){this.setHeight(t,"max-height")}getFlattenColumns(){const t=[];return this.table.store.states.columns.value.forEach(s=>{s.isColumnGroup?t.push.apply(t,s.columns):t.push(s)}),t}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(t){if(!t)return!0;let n=t;for(;n.tagName!=="DIV";){if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}updateColumnsWidth(){if(!Ht)return;const t=this.fit,n=this.table.vnode.el.clientWidth;let s=0;const r=this.getFlattenColumns(),i=r.filter(l=>typeof l.width!="number");if(r.forEach(l=>{typeof l.width=="number"&&l.realWidth&&(l.realWidth=null)}),i.length>0&&t){if(r.forEach(l=>{s+=Number(l.width||l.minWidth||80)}),s<=n){this.scrollX.value=!1;const l=n-s;if(i.length===1)i[0].realWidth=Number(i[0].minWidth||80)+l;else{const u=i.reduce((h,m)=>h+Number(m.minWidth||80),0),c=l/u;let f=0;i.forEach((h,m)=>{if(m===0)return;const g=Math.floor(Number(h.minWidth||80)*c);f+=g,h.realWidth=Number(h.minWidth||80)+g}),i[0].realWidth=Number(i[0].minWidth||80)+l-f}}else this.scrollX.value=!0,i.forEach(l=>{l.realWidth=Number(l.minWidth)});this.bodyWidth.value=Math.max(s,n),this.table.state.resizeState.value.width=this.bodyWidth.value}else r.forEach(l=>{!l.width&&!l.minWidth?l.realWidth=80:l.realWidth=Number(l.width||l.minWidth),s+=l.realWidth}),this.scrollX.value=s>n,this.bodyWidth.value=s;const a=this.store.states.fixedColumns.value;if(a.length>0){let l=0;a.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.fixedWidth.value=l}const o=this.store.states.rightFixedColumns.value;if(o.length>0){let l=0;o.forEach(u=>{l+=Number(u.realWidth||u.width)}),this.rightFixedWidth.value=l}this.notifyObservers("columns")}addObserver(t){this.observers.push(t)}removeObserver(t){const n=this.observers.indexOf(t);n!==-1&&this.observers.splice(n,1)}notifyObservers(t){this.observers.forEach(s=>{var r,i;switch(t){case"columns":(r=s.state)==null||r.onColumnsChange(this);break;case"scrollable":(i=s.state)==null||i.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${t}.`)}})}}const{CheckboxGroup:koe}=Jr,Aoe=J({name:"ElTableFilterPanel",components:{ElCheckbox:Jr,ElCheckboxGroup:koe,ElScrollbar:aa,ElTooltip:is,ElIcon:tt,ArrowDown:sa,ArrowUp:Bg},directives:{ClickOutside:Aa},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function},appendTo:{type:String}},setup(e){const t=Ot(),{t:n}=zt(),s=Re("table-filter"),r=t==null?void 0:t.parent;r.filterPanels.value[e.column.id]||(r.filterPanels.value[e.column.id]=t);const i=q(!1),a=q(null),o=k(()=>e.column&&e.column.filters),l=k(()=>e.column.filterClassName?`${s.b()} ${e.column.filterClassName}`:s.b()),u=k({get:()=>{var S;return(((S=e.column)==null?void 0:S.filteredValue)||[])[0]},set:S=>{c.value&&(typeof S<"u"&&S!==null?c.value.splice(0,1,S):c.value.splice(0,1))}}),c=k({get(){return e.column?e.column.filteredValue||[]:[]},set(S){e.column&&e.upDataColumn("filteredValue",S)}}),f=k(()=>e.column?e.column.filterMultiple:!0),h=S=>S.value===u.value,m=()=>{i.value=!1},g=S=>{S.stopPropagation(),i.value=!i.value},p=()=>{i.value=!1},v=()=>{b(c.value),m()},y=()=>{c.value=[],b(c.value),m()},_=S=>{u.value=S,b(typeof S<"u"&&S!==null?c.value:[]),m()},b=S=>{e.store.commit("filterChange",{column:e.column,values:S}),e.store.updateAllSelected()};xe(i,S=>{e.column&&e.upDataColumn("filterOpened",S)},{immediate:!0});const T=k(()=>{var S,C;return(C=(S=a.value)==null?void 0:S.popperRef)==null?void 0:C.contentRef});return{tooltipVisible:i,multiple:f,filterClassName:l,filteredValue:c,filterValue:u,filters:o,handleConfirm:v,handleReset:y,handleSelect:_,isActive:h,t:n,ns:s,showFilterPanel:g,hideFilterPanel:p,popperPaneRef:T,tooltip:a}}});function Ioe(e,t,n,s,r,i){const a=Dt("el-checkbox"),o=Dt("el-checkbox-group"),l=Dt("el-scrollbar"),u=Dt("arrow-up"),c=Dt("arrow-down"),f=Dt("el-icon"),h=Dt("el-tooltip"),m=Cg("click-outside");return x(),de(h,{ref:"tooltip",visible:e.tooltipVisible,offset:0,placement:e.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":e.filterClassName,persistent:"","append-to":e.appendTo},{content:P(()=>[e.multiple?(x(),j("div",{key:0},[O("div",{class:M(e.ns.e("content"))},[E(l,{"wrap-class":e.ns.e("wrap")},{default:P(()=>[E(o,{modelValue:e.filteredValue,"onUpdate:modelValue":g=>e.filteredValue=g,class:M(e.ns.e("checkbox-group"))},{default:P(()=>[(x(!0),j(Ke,null,bt(e.filters,g=>(x(),de(a,{key:g.value,value:g.value},{default:P(()=>[Te(ce(g.text),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"])]),_:1},8,["wrap-class"])],2),O("div",{class:M(e.ns.e("bottom"))},[O("button",{class:M({[e.ns.is("disabled")]:e.filteredValue.length===0}),disabled:e.filteredValue.length===0,type:"button",onClick:e.handleConfirm},ce(e.t("el.table.confirmFilter")),11,["disabled","onClick"]),O("button",{type:"button",onClick:e.handleReset},ce(e.t("el.table.resetFilter")),9,["onClick"])],2)])):(x(),j("ul",{key:1,class:M(e.ns.e("list"))},[O("li",{class:M([e.ns.e("list-item"),{[e.ns.is("active")]:e.filterValue===void 0||e.filterValue===null}]),onClick:g=>e.handleSelect(null)},ce(e.t("el.table.clearFilter")),11,["onClick"]),(x(!0),j(Ke,null,bt(e.filters,g=>(x(),j("li",{key:g.value,class:M([e.ns.e("list-item"),e.ns.is("active",e.isActive(g))]),label:g.value,onClick:p=>e.handleSelect(g.value)},ce(g.text),11,["label","onClick"]))),128))],2))]),default:P(()=>[yt((x(),j("span",{class:M([`${e.ns.namespace.value}-table__column-filter-trigger`,`${e.ns.namespace.value}-none-outline`]),onClick:e.showFilterPanel},[E(f,null,{default:P(()=>[fe(e.$slots,"filter-icon",{},()=>[e.column.filterOpened?(x(),de(u,{key:0})):(x(),de(c,{key:1}))])]),_:3})],10,["onClick"])),[[m,e.hideFilterPanel,e.popperPaneRef]])]),_:3},8,["visible","placement","popper-class","append-to"])}var Doe=Ue(Aoe,[["render",Ioe],["__file","filter-panel.vue"]]);function xO(e){const t=Ot();Hl(()=>{n.value.addObserver(t)}),gt(()=>{s(n.value),r(n.value)}),Na(()=>{s(n.value),r(n.value)}),Fo(()=>{n.value.removeObserver(t)});const n=k(()=>{const i=e.layout;if(!i)throw new Error("Can not find table layout.");return i}),s=i=>{var a;const o=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col"))||[];if(!o.length)return;const l=i.getFlattenColumns(),u={};l.forEach(c=>{u[c.id]=c});for(let c=0,f=o.length;c<f;c++){const h=o[c],m=h.getAttribute("name"),g=u[m];g&&h.setAttribute("width",g.realWidth||g.width)}},r=i=>{var a,o;const l=((a=e.vnode.el)==null?void 0:a.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let c=0,f=l.length;c<f;c++)l[c].setAttribute("width",i.scrollY.value?i.gutterWidth:"0");const u=((o=e.vnode.el)==null?void 0:o.querySelectorAll("th.gutter"))||[];for(let c=0,f=u.length;c<f;c++){const h=u[c];h.style.width=i.scrollY.value?`${i.gutterWidth}px`:"0",h.style.display=i.scrollY.value?"":"none"}};return{tableLayout:n.value,onColumnsChange:s,onScrollableChange:r}}const oa=Symbol("ElTable");function Ooe(e,t){const n=Ot(),s=Xe(oa),r=p=>{p.stopPropagation()},i=(p,v)=>{!v.filters&&v.sortable?g(p,v,!1):v.filterable&&!v.sortable&&r(p),s==null||s.emit("header-click",v,p)},a=(p,v)=>{s==null||s.emit("header-contextmenu",v,p)},o=q(null),l=q(!1),u=q({}),c=(p,v)=>{if(Ht&&!(v.children&&v.children.length>0)&&o.value&&e.border){l.value=!0;const y=s;t("set-drag-visible",!0);const b=(y==null?void 0:y.vnode.el).getBoundingClientRect().left,T=n.vnode.el.querySelector(`th.${v.id}`),S=T.getBoundingClientRect(),C=S.left-b+30;Vr(T,"noclick"),u.value={startMouseLeft:p.clientX,startLeft:S.right-b,startColumnLeft:S.left-b,tableLeft:b};const D=y==null?void 0:y.refs.resizeProxy;D.style.left=`${u.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const N=L=>{const z=L.clientX-u.value.startMouseLeft,U=u.value.startLeft+z;D.style.left=`${Math.max(C,U)}px`},$=()=>{if(l.value){const{startColumnLeft:L,startLeft:z}=u.value,W=Number.parseInt(D.style.left,10)-L;v.width=v.realWidth=W,y==null||y.emit("header-dragend",v.width,z-L,v,p),requestAnimationFrame(()=>{e.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",l.value=!1,o.value=null,u.value={},t("set-drag-visible",!1)}document.removeEventListener("mousemove",N),document.removeEventListener("mouseup",$),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{Rs(T,"noclick")},0)};document.addEventListener("mousemove",N),document.addEventListener("mouseup",$)}},f=(p,v)=>{var y;if(v.children&&v.children.length>0)return;const _=p.target;if(!Ir(_))return;const b=_==null?void 0:_.closest("th");if(!(!v||!v.resizable||!b)&&!l.value&&e.border){const T=b.getBoundingClientRect(),S=document.body.style,C=((y=b.parentNode)==null?void 0:y.lastElementChild)===b;T.width>12&&T.right-p.pageX<8&&!C?(S.cursor="col-resize",or(b,"is-sortable")&&(b.style.cursor="col-resize"),o.value=v):l.value||(S.cursor="",or(b,"is-sortable")&&(b.style.cursor="pointer"),o.value=null)}},h=()=>{Ht&&(document.body.style.cursor="")},m=({order:p,sortOrders:v})=>{if(p==="")return v[0];const y=v.indexOf(p||null);return v[y>v.length-2?0:y+1]},g=(p,v,y)=>{var _;p.stopPropagation();const b=v.order===y?null:y||m(v),T=(_=p.target)==null?void 0:_.closest("th");if(T&&or(T,"noclick")){Rs(T,"noclick");return}if(!v.sortable)return;const S=p.currentTarget;if(["ascending","descending"].some(L=>or(S,L)&&!v.sortOrders.includes(L)))return;const C=e.store.states;let D=C.sortProp.value,N;const $=C.sortingColumn.value;($!==v||$===v&&$.order===null)&&($&&($.order=null),C.sortingColumn.value=v,D=v.property),b?N=v.order=b:N=v.order=null,C.sortProp.value=D,C.sortOrder.value=N,s==null||s.store.commit("changeSortCondition")};return{handleHeaderClick:i,handleHeaderContextMenu:a,handleMouseDown:c,handleMouseMove:f,handleMouseOut:h,handleSortClick:g,handleFilterClick:r}}function Poe(e){const t=Xe(oa),n=Re("table");return{getHeaderRowStyle:o=>{const l=t==null?void 0:t.props.headerRowStyle;return typeof l=="function"?l.call(null,{rowIndex:o}):l},getHeaderRowClass:o=>{const l=[],u=t==null?void 0:t.props.headerRowClassName;return typeof u=="string"?l.push(u):typeof u=="function"&&l.push(u.call(null,{rowIndex:o})),l.join(" ")},getHeaderCellStyle:(o,l,u,c)=>{var f;let h=(f=t==null?void 0:t.props.headerCellStyle)!=null?f:{};typeof h=="function"&&(h=h.call(null,{rowIndex:o,columnIndex:l,row:u,column:c}));const m=V2(l,c.fixed,e.store,u);return oc(m,"left"),oc(m,"right"),Object.assign({},h,m)},getHeaderCellClass:(o,l,u,c)=>{const f=F2(n.b(),l,c.fixed,e.store,u),h=[c.id,c.order,c.headerAlign,c.className,c.labelClassName,...f];c.children||h.push("is-leaf"),c.sortable&&h.push("is-sortable");const m=t==null?void 0:t.props.headerCellClassName;return typeof m=="string"?h.push(m):typeof m=="function"&&h.push(m.call(null,{rowIndex:o,columnIndex:l,row:u,column:c})),h.push(n.e("cell")),h.filter(g=>!!g).join(" ")}}}const kO=e=>{const t=[];return e.forEach(n=>{n.children?(t.push(n),t.push.apply(t,kO(n.children))):t.push(n)}),t},AO=e=>{let t=1;const n=(i,a)=>{if(a&&(i.level=a.level+1,t<i.level&&(t=i.level)),i.children){let o=0;i.children.forEach(l=>{n(l,i),o+=l.colSpan}),i.colSpan=o}else i.colSpan=1};e.forEach(i=>{i.level=1,n(i,void 0)});const s=[];for(let i=0;i<t;i++)s.push([]);return kO(e).forEach(i=>{i.children?(i.rowSpan=1,i.children.forEach(a=>a.isSubColumn=!0)):i.rowSpan=t-i.level+1,s[i.level-1].push(i)}),s};function Roe(e){const t=Xe(oa),n=k(()=>AO(e.store.states.originColumns.value));return{isGroup:k(()=>{const i=n.value.length>1;return i&&t&&(t.state.isGroup.value=!0),i}),toggleAllSelection:i=>{i.stopPropagation(),t==null||t.store.commit("toggleAllSelection")},columnRows:n}}var Noe=J({name:"ElTableHeader",components:{ElCheckbox:Jr},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})},appendFilterPanelTo:{type:String}},setup(e,{emit:t}){const n=Ot(),s=Xe(oa),r=Re("table"),i=q({}),{onColumnsChange:a,onScrollableChange:o}=xO(s);gt(async()=>{await it(),await it();const{prop:C,order:D}=e.defaultSort;s==null||s.store.commit("sort",{prop:C,order:D,init:!0})});const{handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:h,handleSortClick:m,handleFilterClick:g}=Ooe(e,t),{getHeaderRowStyle:p,getHeaderRowClass:v,getHeaderCellStyle:y,getHeaderCellClass:_}=Poe(e),{isGroup:b,toggleAllSelection:T,columnRows:S}=Roe(e);return n.state={onColumnsChange:a,onScrollableChange:o},n.filterPanels=i,{ns:r,filterPanels:i,onColumnsChange:a,onScrollableChange:o,columnRows:S,getHeaderRowClass:v,getHeaderRowStyle:p,getHeaderCellClass:_,getHeaderCellStyle:y,handleHeaderClick:l,handleHeaderContextMenu:u,handleMouseDown:c,handleMouseMove:f,handleMouseOut:h,handleSortClick:m,handleFilterClick:g,isGroup:b,toggleAllSelection:T}},render(){const{ns:e,isGroup:t,columnRows:n,getHeaderCellStyle:s,getHeaderCellClass:r,getHeaderRowClass:i,getHeaderRowStyle:a,handleHeaderClick:o,handleHeaderContextMenu:l,handleMouseDown:u,handleMouseMove:c,handleSortClick:f,handleMouseOut:h,store:m,$parent:g}=this;let p=1;return ot("thead",{class:{[e.is("group")]:t}},n.map((v,y)=>ot("tr",{class:i(y),key:y,style:a(y)},v.map((_,b)=>(_.rowSpan>p&&(p=_.rowSpan),ot("th",{class:r(y,b,v,_),colspan:_.colSpan,key:`${_.id}-thead`,rowspan:_.rowSpan,style:s(y,b,v,_),onClick:T=>{T.currentTarget.classList.contains("noclick")||o(T,_)},onContextmenu:T=>l(T,_),onMousedown:T=>u(T,_),onMousemove:T=>c(T,_),onMouseout:h},[ot("div",{class:["cell",_.filteredValue&&_.filteredValue.length>0?"highlight":""]},[_.renderHeader?_.renderHeader({column:_,$index:b,store:m,_self:g}):_.label,_.sortable&&ot("span",{onClick:T=>f(T,_),class:"caret-wrapper"},[ot("i",{onClick:T=>f(T,_,"ascending"),class:"sort-caret ascending"}),ot("i",{onClick:T=>f(T,_,"descending"),class:"sort-caret descending"})]),_.filterable&&ot(Doe,{store:m,placement:_.filterPlacement||"bottom-start",appendTo:g.appendFilterPanelTo,column:_,upDataColumn:(T,S)=>{_[T]=S}},{"filter-icon":()=>_.renderFilterIcon?_.renderFilterIcon({filterOpened:_.filterOpened}):null})])]))))))}});function B0(e,t,n=.03){return e-t>n}function Moe(e){const t=Xe(oa),n=q(""),s=q(ot("div")),r=(g,p,v)=>{var y;const _=t,b=L0(g);let T;const S=(y=_==null?void 0:_.vnode.el)==null?void 0:y.dataset.prefix;b&&(T=px({columns:e.store.states.columns.value},b,S),T&&(_==null||_.emit(`cell-${v}`,p,T,b,g))),_==null||_.emit(`row-${v}`,p,T,g)},i=(g,p)=>{r(g,p,"dblclick")},a=(g,p)=>{e.store.commit("setCurrentRow",p),r(g,p,"click")},o=(g,p)=>{r(g,p,"contextmenu")},l=fr(g=>{e.store.commit("setHoverRow",g)},30),u=fr(()=>{e.store.commit("setHoverRow",null)},30),c=g=>{const p=window.getComputedStyle(g,null),v=Number.parseInt(p.paddingLeft,10)||0,y=Number.parseInt(p.paddingRight,10)||0,_=Number.parseInt(p.paddingTop,10)||0,b=Number.parseInt(p.paddingBottom,10)||0;return{left:v,right:y,top:_,bottom:b}},f=(g,p,v)=>{let y=p.target.parentNode;for(;g>1&&(y=y==null?void 0:y.nextSibling,!(!y||y.nodeName!=="TR"));)v(y,"hover-row hover-fixed-row"),g--};return{handleDoubleClick:i,handleClick:a,handleContextMenu:o,handleMouseEnter:l,handleMouseLeave:u,handleCellMouseEnter:(g,p,v)=>{var y;const _=t,b=L0(g),T=(y=_==null?void 0:_.vnode.el)==null?void 0:y.dataset.prefix;if(b){const Q=px({columns:e.store.states.columns.value},b,T);b.rowSpan>1&&f(b.rowSpan,g,Vr);const Y=_.hoverState={cell:b,column:Q,row:p};_==null||_.emit("cell-mouse-enter",Y.row,Y.column,Y.cell,g)}if(!v)return;const S=g.target.querySelector(".cell");if(!(or(S,`${T}-tooltip`)&&S.childNodes.length))return;const C=document.createRange();C.setStart(S,0),C.setEnd(S,S.childNodes.length);const{width:D,height:N}=C.getBoundingClientRect(),{width:$,height:L}=S.getBoundingClientRect(),{top:z,left:U,right:W,bottom:K}=c(S),X=U+W,B=z+K;(B0(D+X,$)||B0(N+B,L)||B0(S.scrollWidth,$))&&voe(v,b.innerText||b.textContent,b,_)},handleCellMouseLeave:g=>{const p=L0(g);if(!p)return;p.rowSpan>1&&f(p.rowSpan,g,Rs);const v=t==null?void 0:t.hoverState;t==null||t.emit("cell-mouse-leave",v==null?void 0:v.row,v==null?void 0:v.column,v==null?void 0:v.cell,g)},tooltipContent:n,tooltipTrigger:s}}function $oe(e){const t=Xe(oa),n=Re("table");return{getRowStyle:(u,c)=>{const f=t==null?void 0:t.props.rowStyle;return typeof f=="function"?f.call(null,{row:u,rowIndex:c}):f||null},getRowClass:(u,c)=>{const f=[n.e("row")];t!=null&&t.props.highlightCurrentRow&&u===e.store.states.currentRow.value&&f.push("current-row"),e.stripe&&c%2===1&&f.push(n.em("row","striped"));const h=t==null?void 0:t.props.rowClassName;return typeof h=="string"?f.push(h):typeof h=="function"&&f.push(h.call(null,{row:u,rowIndex:c})),f},getCellStyle:(u,c,f,h)=>{const m=t==null?void 0:t.props.cellStyle;let g=m??{};typeof m=="function"&&(g=m.call(null,{rowIndex:u,columnIndex:c,row:f,column:h}));const p=V2(c,e==null?void 0:e.fixed,e.store);return oc(p,"left"),oc(p,"right"),Object.assign({},g,p)},getCellClass:(u,c,f,h,m)=>{const g=F2(n.b(),c,e==null?void 0:e.fixed,e.store,void 0,m),p=[h.id,h.align,h.className,...g],v=t==null?void 0:t.props.cellClassName;return typeof v=="string"?p.push(v):typeof v=="function"&&p.push(v.call(null,{rowIndex:u,columnIndex:c,row:f,column:h})),p.push(n.e("cell")),p.filter(y=>!!y).join(" ")},getSpan:(u,c,f,h)=>{let m=1,g=1;const p=t==null?void 0:t.props.spanMethod;if(typeof p=="function"){const v=p({row:u,column:c,rowIndex:f,columnIndex:h});Array.isArray(v)?(m=v[0],g=v[1]):typeof v=="object"&&(m=v.rowspan,g=v.colspan)}return{rowspan:m,colspan:g}},getColspanRealWidth:(u,c,f)=>{if(c<1)return u[f].realWidth;const h=u.map(({realWidth:m,width:g})=>m||g).slice(f,f+c);return Number(h.reduce((m,g)=>Number(m)+Number(g),-1))}}}const Loe=J({name:"TableTdWrapper"}),Boe=J({...Loe,props:{colspan:{type:Number,default:1},rowspan:{type:Number,default:1}},setup(e){return(t,n)=>(x(),j("td",{colspan:e.colspan,rowspan:e.rowspan},[fe(t.$slots,"default")],8,["colspan","rowspan"]))}});var Foe=Ue(Boe,[["__file","td-wrapper.vue"]]);function Voe(e){const t=Xe(oa),n=Re("table"),{handleDoubleClick:s,handleClick:r,handleContextMenu:i,handleMouseEnter:a,handleMouseLeave:o,handleCellMouseEnter:l,handleCellMouseLeave:u,tooltipContent:c,tooltipTrigger:f}=Moe(e),{getRowStyle:h,getRowClass:m,getCellStyle:g,getCellClass:p,getSpan:v,getColspanRealWidth:y}=$oe(e),_=k(()=>e.store.states.columns.value.findIndex(({type:D})=>D==="default")),b=(D,N)=>{const $=t.props.rowKey;return $?Os(D,$):N},T=(D,N,$,L=!1)=>{const{tooltipEffect:z,tooltipOptions:U,store:W}=e,{indent:K,columns:X}=W.states,B=m(D,N);let Q=!0;return $&&(B.push(n.em("row",`level-${$.level}`)),Q=$.display),ot("tr",{style:[Q?null:{display:"none"},h(D,N)],class:B,key:b(D,N),onDblclick:F=>s(F,D),onClick:F=>r(F,D),onContextmenu:F=>i(F,D),onMouseenter:()=>a(N),onMouseleave:o},X.value.map((F,H)=>{const{rowspan:Z,colspan:se}=v(D,F,N,H);if(!Z||!se)return null;const ne=Object.assign({},F);ne.realWidth=y(X.value,se,H);const we={store:e.store,_self:e.context||t,column:ne,row:D,$index:N,cellIndex:H,expanded:L};H===_.value&&$&&(we.treeNode={indent:$.level*K.value,level:$.level},typeof $.expanded=="boolean"&&(we.treeNode.expanded=$.expanded,"loading"in $&&(we.treeNode.loading=$.loading),"noLazyChildren"in $&&(we.treeNode.noLazyChildren=$.noLazyChildren)));const De=`${b(D,N)},${H}`,Ee=ne.columnKey||ne.rawColumnKey||"",te=F.showOverflowTooltip&&cz({effect:z},U,F.showOverflowTooltip);return ot(Foe,{style:g(N,H,D,F),class:p(N,H,D,F,se-1),key:`${Ee}${De}`,rowspan:Z,colspan:se,onMouseenter:ge=>l(ge,D,te),onMouseleave:u},{default:()=>S(H,F,we)})}))},S=(D,N,$)=>N.renderCell($);return{wrappedRowRender:(D,N)=>{const $=e.store,{isRowExpanded:L,assertRowKey:z}=$,{treeData:U,lazyTreeNodeMap:W,childrenColumnName:K,rowKey:X}=$.states,B=$.states.columns.value;if(B.some(({type:Y})=>Y==="expand")){const Y=L(D),F=T(D,N,void 0,Y),H=t.renderExpanded;return Y?H?[[F,ot("tr",{key:`expanded-row__${F.key}`},[ot("td",{colspan:B.length,class:`${n.e("cell")} ${n.e("expanded-cell")}`},[H({row:D,$index:N,store:$,expanded:Y})])])]]:(console.error("[Element Error]renderExpanded is required."),F):[[F]]}else if(Object.keys(U.value).length){z();const Y=Os(D,X.value);let F=U.value[Y],H=null;F&&(H={expanded:F.expanded,level:F.level,display:!0},typeof F.lazy=="boolean"&&(typeof F.loaded=="boolean"&&F.loaded&&(H.noLazyChildren=!(F.children&&F.children.length)),H.loading=F.loading));const Z=[T(D,N,H)];if(F){let se=0;const ne=(De,Ee)=>{De&&De.length&&Ee&&De.forEach(te=>{const ge={display:Ee.display&&Ee.expanded,level:Ee.level+1,expanded:!1,noLazyChildren:!1,loading:!1},pe=Os(te,X.value);if(pe==null)throw new Error("For nested data item, row-key is required.");if(F={...U.value[pe]},F&&(ge.expanded=F.expanded,F.level=F.level||ge.level,F.display=!!(F.expanded&&ge.display),typeof F.lazy=="boolean"&&(typeof F.loaded=="boolean"&&F.loaded&&(ge.noLazyChildren=!(F.children&&F.children.length)),ge.loading=F.loading)),se++,Z.push(T(te,N+se,ge)),F){const Oe=W.value[pe]||te[K.value];ne(Oe,F)}})};F.display=!0;const we=W.value[Y]||D[K.value];ne(we,F)}return Z}else return T(D,N,void 0)},tooltipContent:c,tooltipTrigger:f}}const Uoe={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var Hoe=J({name:"ElTableBody",props:Uoe,setup(e){const t=Ot(),n=Xe(oa),s=Re("table"),{wrappedRowRender:r,tooltipContent:i,tooltipTrigger:a}=Voe(e),{onColumnsChange:o,onScrollableChange:l}=xO(n),u=[];return xe(e.store.states.hoverRow,(c,f)=>{var h;const m=t==null?void 0:t.vnode.el,g=Array.from((m==null?void 0:m.children)||[]).filter(y=>y==null?void 0:y.classList.contains(`${s.e("row")}`));let p=c;const v=(h=g[p])==null?void 0:h.childNodes;if(v!=null&&v.length){let y=0;Array.from(v).reduce((b,T,S)=>{var C,D;return((C=v[S])==null?void 0:C.colSpan)>1&&(y=(D=v[S])==null?void 0:D.colSpan),T.nodeName!=="TD"&&y===0&&b.push(S),y>0&&y--,b},[]).forEach(b=>{var T;for(p=c;p>0;){const S=(T=g[p-1])==null?void 0:T.childNodes;if(S[b]&&S[b].nodeName==="TD"&&S[b].rowSpan>1){Vr(S[b],"hover-cell"),u.push(S[b]);break}p--}})}else u.forEach(y=>Rs(y,"hover-cell")),u.length=0;!e.store.states.isComplex.value||!Ht||xo(()=>{const y=g[f],_=g[c];y&&!y.classList.contains("hover-fixed-row")&&Rs(y,"hover-row"),_&&Vr(_,"hover-row")})}),Fo(()=>{var c;(c=Lr)==null||c()}),{ns:s,onColumnsChange:o,onScrollableChange:l,wrappedRowRender:r,tooltipContent:i,tooltipTrigger:a}},render(){const{wrappedRowRender:e,store:t}=this,n=t.states.data.value||[];return ot("tbody",{tabIndex:-1},[n.reduce((s,r)=>s.concat(e(r,s.length)),[])])}});function zoe(){const e=Xe(oa),t=e==null?void 0:e.store,n=k(()=>t.states.fixedLeafColumnsLength.value),s=k(()=>t.states.rightFixedColumns.value.length),r=k(()=>t.states.columns.value.length),i=k(()=>t.states.fixedColumns.value.length),a=k(()=>t.states.rightFixedColumns.value.length);return{leftFixedLeafCount:n,rightFixedLeafCount:s,columnsCount:r,leftFixedCount:i,rightFixedCount:a,columns:t.states.columns}}function joe(e){const{columns:t}=zoe(),n=Re("table");return{getCellClasses:(i,a)=>{const o=i[a],l=[n.e("cell"),o.id,o.align,o.labelClassName,...F2(n.b(),a,o.fixed,e.store)];return o.className&&l.push(o.className),o.children||l.push(n.is("leaf")),l},getCellStyles:(i,a)=>{const o=V2(a,i.fixed,e.store);return oc(o,"left"),oc(o,"right"),o},columns:t}}var qoe=J({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup(e){const{getCellClasses:t,getCellStyles:n,columns:s}=joe(e);return{ns:Re("table"),getCellClasses:t,getCellStyles:n,columns:s}},render(){const{columns:e,getCellStyles:t,getCellClasses:n,summaryMethod:s,sumText:r}=this,i=this.store.states.data.value;let a=[];return s?a=s({columns:e,data:i}):e.forEach((o,l)=>{if(l===0){a[l]=r;return}const u=i.map(m=>Number(m[o.property])),c=[];let f=!0;u.forEach(m=>{if(!Number.isNaN(+m)){f=!1;const g=`${m}`.split(".")[1];c.push(g?g.length:0)}});const h=Math.max.apply(null,c);f?a[l]="":a[l]=u.reduce((m,g)=>{const p=Number(g);return Number.isNaN(+p)?m:Number.parseFloat((m+g).toFixed(Math.min(h,20)))},0)}),ot(ot("tfoot",[ot("tr",{},[...e.map((o,l)=>ot("td",{key:l,colspan:o.colSpan,rowspan:o.rowSpan,class:n(e,l),style:t(o,l)},[ot("div",{class:["cell",o.labelClassName]},[a[l]])]))])]))}});function Woe(e){return{setCurrentRow:f=>{e.commit("setCurrentRow",f)},getSelectionRows:()=>e.getSelectionRows(),toggleRowSelection:(f,h,m=!0)=>{e.toggleRowSelection(f,h,!1,m),e.updateAllSelected()},clearSelection:()=>{e.clearSelection()},clearFilter:f=>{e.clearFilter(f)},toggleAllSelection:()=>{e.commit("toggleAllSelection")},toggleRowExpansion:(f,h)=>{e.toggleRowExpansionAdapter(f,h)},clearSort:()=>{e.clearSort()},sort:(f,h)=>{e.commit("sort",{prop:f,order:h})},updateKeyChildren:(f,h)=>{e.updateKeyChildren(f,h)}}}function Koe(e,t,n,s){const r=q(!1),i=q(null),a=q(!1),o=F=>{a.value=F},l=q({width:null,height:null,headerHeight:null}),u=q(!1),c={display:"inline-block",verticalAlign:"middle"},f=q(),h=q(0),m=q(0),g=q(0),p=q(0),v=q(0);vs(()=>{t.setHeight(e.height)}),vs(()=>{t.setMaxHeight(e.maxHeight)}),xe(()=>[e.currentRowKey,n.states.rowKey],([F,H])=>{!d(H)||!d(F)||n.setCurrentRowKey(`${F}`)},{immediate:!0}),xe(()=>e.data,F=>{s.store.commit("setData",F)},{immediate:!0,deep:!0}),vs(()=>{e.expandRowKeys&&n.setExpandRowKeysAdapter(e.expandRowKeys)});const y=()=>{s.store.commit("setHoverRow",null),s.hoverState&&(s.hoverState=null)},_=(F,H)=>{const{pixelX:Z,pixelY:se}=H;Math.abs(Z)>=Math.abs(se)&&(s.refs.bodyWrapper.scrollLeft+=H.pixelX/5)},b=k(()=>e.height||e.maxHeight||n.states.fixedColumns.value.length>0||n.states.rightFixedColumns.value.length>0),T=k(()=>({width:t.bodyWidth.value?`${t.bodyWidth.value}px`:""})),S=()=>{b.value&&t.updateElsHeight(),t.updateColumnsWidth(),requestAnimationFrame($)};gt(async()=>{await it(),n.updateColumns(),L(),requestAnimationFrame(S);const F=s.vnode.el,H=s.refs.headerWrapper;e.flexible&&F&&F.parentElement&&(F.parentElement.style.minWidth="0"),l.value={width:f.value=F.offsetWidth,height:F.offsetHeight,headerHeight:e.showHeader&&H?H.offsetHeight:null},n.states.columns.value.forEach(Z=>{Z.filteredValue&&Z.filteredValue.length&&s.store.commit("filterChange",{column:Z,values:Z.filteredValue,silent:!0})}),s.$ready=!0});const C=(F,H)=>{if(!F)return;const Z=Array.from(F.classList).filter(se=>!se.startsWith("is-scrolling-"));Z.push(t.scrollX.value?H:"is-scrolling-none"),F.className=Z.join(" ")},D=F=>{const{tableWrapper:H}=s.refs;C(H,F)},N=F=>{const{tableWrapper:H}=s.refs;return!!(H&&H.classList.contains(F))},$=function(){if(!s.refs.scrollBarRef)return;if(!t.scrollX.value){const Ee="is-scrolling-none";N(Ee)||D(Ee);return}const F=s.refs.scrollBarRef.wrapRef;if(!F)return;const{scrollLeft:H,offsetWidth:Z,scrollWidth:se}=F,{headerWrapper:ne,footerWrapper:we}=s.refs;ne&&(ne.scrollLeft=H),we&&(we.scrollLeft=H);const De=se-Z-1;H>=De?D("is-scrolling-right"):D(H===0?"is-scrolling-left":"is-scrolling-middle")},L=()=>{s.refs.scrollBarRef&&(s.refs.scrollBarRef.wrapRef&&an(s.refs.scrollBarRef.wrapRef,"scroll",$,{passive:!0}),e.fit?Sn(s.vnode.el,z):an(window,"resize",z),Sn(s.refs.bodyWrapper,()=>{var F,H;z(),(H=(F=s.refs)==null?void 0:F.scrollBarRef)==null||H.update()}))},z=()=>{var F,H,Z,se;const ne=s.vnode.el;if(!s.$ready||!ne)return;let we=!1;const{width:De,height:Ee,headerHeight:te}=l.value,ge=f.value=ne.offsetWidth;De!==ge&&(we=!0);const pe=ne.offsetHeight;(e.height||b.value)&&Ee!==pe&&(we=!0);const Oe=e.tableLayout==="fixed"?s.refs.headerWrapper:(F=s.refs.tableHeaderRef)==null?void 0:F.$el;e.showHeader&&(Oe==null?void 0:Oe.offsetHeight)!==te&&(we=!0),h.value=((H=s.refs.tableWrapper)==null?void 0:H.scrollHeight)||0,g.value=(Oe==null?void 0:Oe.scrollHeight)||0,p.value=((Z=s.refs.footerWrapper)==null?void 0:Z.offsetHeight)||0,v.value=((se=s.refs.appendWrapper)==null?void 0:se.offsetHeight)||0,m.value=h.value-g.value-p.value-v.value,we&&(l.value={width:ge,height:pe,headerHeight:e.showHeader&&(Oe==null?void 0:Oe.offsetHeight)||0},S())},U=Kn(),W=k(()=>{const{bodyWidth:F,scrollY:H,gutterWidth:Z}=t;return F.value?`${F.value-(H.value?Z:0)}px`:""}),K=k(()=>e.maxHeight?"fixed":e.tableLayout),X=k(()=>{if(e.data&&e.data.length)return null;let F="100%";e.height&&m.value&&(F=`${m.value}px`);const H=f.value;return{width:H?`${H}px`:"",height:F}}),B=k(()=>e.height?{height:Number.isNaN(Number(e.height))?e.height:`${e.height}px`}:e.maxHeight?{maxHeight:Number.isNaN(Number(e.maxHeight))?e.maxHeight:`${e.maxHeight}px`}:{}),Q=k(()=>e.height?{height:"100%"}:e.maxHeight?Number.isNaN(Number(e.maxHeight))?{maxHeight:`calc(${e.maxHeight} - ${g.value+p.value}px)`}:{maxHeight:`${e.maxHeight-g.value-p.value}px`}:{});return{isHidden:r,renderExpanded:i,setDragVisible:o,isGroup:u,handleMouseLeave:y,handleHeaderFooterMousewheel:_,tableSize:U,emptyBlockStyle:X,handleFixedMousewheel:(F,H)=>{const Z=s.refs.bodyWrapper;if(Math.abs(H.spinY)>0){const se=Z.scrollTop;H.pixelY<0&&se!==0&&F.preventDefault(),H.pixelY>0&&Z.scrollHeight-Z.clientHeight>se&&F.preventDefault(),Z.scrollTop+=Math.ceil(H.pixelY/5)}else Z.scrollLeft+=Math.ceil(H.pixelX/5)},resizeProxyVisible:a,bodyWidth:W,resizeState:l,doLayout:S,tableBodyStyles:T,tableLayout:K,scrollbarViewStyle:c,tableInnerStyle:B,scrollbarStyle:Q}}function Goe(e){const t=q(),n=()=>{const r=e.vnode.el.querySelector(".hidden-columns"),i={childList:!0,subtree:!0},a=e.store.states.updateOrderFns;t.value=new MutationObserver(()=>{a.forEach(o=>o())}),t.value.observe(r,i)};gt(()=>{n()}),Fo(()=>{var s;(s=t.value)==null||s.disconnect()})}var Yoe={data:{type:Array,default:()=>[]},size:ts,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0}};function IO(e){const t=e.tableLayout==="auto";let n=e.columns||[];t&&n.every(r=>r.width===void 0)&&(n=[]);const s=r=>{const i={key:`${e.tableLayout}_${r.id}`,style:{},name:void 0};return t?i.style={width:`${r.width}px`}:i.name=r.id,i};return ot("colgroup",{},n.map(r=>ot("col",s(r))))}IO.props=["columns","tableLayout"];const Xoe=()=>{const e=q(),t=(i,a)=>{const o=e.value;o&&o.scrollTo(i,a)},n=(i,a)=>{const o=e.value;o&&ut(a)&&["Top","Left"].includes(i)&&o[`setScroll${i}`](a)};return{scrollBarRef:e,scrollTo:t,setScrollTop:i=>n("Top",i),setScrollLeft:i=>n("Left",i)}};let Qoe=1;const Joe=J({name:"ElTable",directives:{Mousewheel:RQ},components:{TableHeader:Noe,TableBody:Hoe,TableFooter:qoe,ElScrollbar:aa,hColgroup:IO},props:Yoe,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup(e){const{t}=zt(),n=Re("table"),s=Ot();Mt(oa,s);const r=Coe(s,e);s.store=r;const i=new xoe({store:s.store,table:s,fit:e.fit,showHeader:e.showHeader});s.layout=i;const a=k(()=>(r.states.data.value||[]).length===0),{setCurrentRow:o,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:g,sort:p,updateKeyChildren:v}=Woe(r),{isHidden:y,renderExpanded:_,setDragVisible:b,isGroup:T,handleMouseLeave:S,handleHeaderFooterMousewheel:C,tableSize:D,emptyBlockStyle:N,handleFixedMousewheel:$,resizeProxyVisible:L,bodyWidth:z,resizeState:U,doLayout:W,tableBodyStyles:K,tableLayout:X,scrollbarViewStyle:B,tableInnerStyle:Q,scrollbarStyle:Y}=Koe(e,i,r,s),{scrollBarRef:F,scrollTo:H,setScrollLeft:Z,setScrollTop:se}=Xoe(),ne=fr(W,50),we=`${n.namespace.value}-table_${Qoe++}`;s.tableId=we,s.state={isGroup:T,resizeState:U,doLayout:W,debouncedUpdateLayout:ne};const De=k(()=>{var ge;return(ge=e.sumText)!=null?ge:t("el.table.sumText")}),Ee=k(()=>{var ge;return(ge=e.emptyText)!=null?ge:t("el.table.emptyText")}),te=k(()=>AO(r.states.originColumns.value)[0]);return Goe(s),un(()=>{ne.cancel()}),{ns:n,layout:i,store:r,columns:te,handleHeaderFooterMousewheel:C,handleMouseLeave:S,tableId:we,tableSize:D,isHidden:y,isEmpty:a,renderExpanded:_,resizeProxyVisible:L,resizeState:U,isGroup:T,bodyWidth:z,tableBodyStyles:K,emptyBlockStyle:N,debouncedUpdateLayout:ne,handleFixedMousewheel:$,setCurrentRow:o,getSelectionRows:l,toggleRowSelection:u,clearSelection:c,clearFilter:f,toggleAllSelection:h,toggleRowExpansion:m,clearSort:g,doLayout:W,sort:p,updateKeyChildren:v,t,setDragVisible:b,context:s,computedSumText:De,computedEmptyText:Ee,tableLayout:X,scrollbarViewStyle:B,tableInnerStyle:Q,scrollbarStyle:Y,scrollBarRef:F,scrollTo:H,setScrollLeft:Z,setScrollTop:se}}});function Zoe(e,t,n,s,r,i){const a=Dt("hColgroup"),o=Dt("table-header"),l=Dt("table-body"),u=Dt("table-footer"),c=Dt("el-scrollbar"),f=Cg("mousewheel");return x(),j("div",{ref:"tableWrapper",class:M([{[e.ns.m("fit")]:e.fit,[e.ns.m("striped")]:e.stripe,[e.ns.m("border")]:e.border||e.isGroup,[e.ns.m("hidden")]:e.isHidden,[e.ns.m("group")]:e.isGroup,[e.ns.m("fluid-height")]:e.maxHeight,[e.ns.m("scrollable-x")]:e.layout.scrollX.value,[e.ns.m("scrollable-y")]:e.layout.scrollY.value,[e.ns.m("enable-row-hover")]:!e.store.states.isComplex.value,[e.ns.m("enable-row-transition")]:(e.store.states.data.value||[]).length!==0&&(e.store.states.data.value||[]).length<100,"has-footer":e.showSummary},e.ns.m(e.tableSize),e.className,e.ns.b(),e.ns.m(`layout-${e.tableLayout}`)]),style:st(e.style),"data-prefix":e.ns.namespace.value,onMouseleave:e.handleMouseLeave},[O("div",{class:M(e.ns.e("inner-wrapper")),style:st(e.tableInnerStyle)},[O("div",{ref:"hiddenColumns",class:"hidden-columns"},[fe(e.$slots,"default")],512),e.showHeader&&e.tableLayout==="fixed"?yt((x(),j("div",{key:0,ref:"headerWrapper",class:M(e.ns.e("header-wrapper"))},[O("table",{ref:"tableHeader",class:M(e.ns.e("header")),style:st(e.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[E(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),E(o,{ref:"tableHeaderRef",border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["border","default-sort","store","append-filter-panel-to","onSetDragVisible"])],6)],2)),[[f,e.handleHeaderFooterMousewheel]]):ae("v-if",!0),O("div",{ref:"bodyWrapper",class:M(e.ns.e("body-wrapper"))},[E(c,{ref:"scrollBarRef","view-style":e.scrollbarViewStyle,"wrap-style":e.scrollbarStyle,always:e.scrollbarAlwaysOn,tabindex:e.scrollbarTabindex},{default:P(()=>[O("table",{ref:"tableBody",class:M(e.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:st({width:e.bodyWidth,tableLayout:e.tableLayout})},[E(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),e.showHeader&&e.tableLayout==="auto"?(x(),de(o,{key:0,ref:"tableHeaderRef",class:M(e.ns.e("body-header")),border:e.border,"default-sort":e.defaultSort,store:e.store,"append-filter-panel-to":e.appendFilterPanelTo,onSetDragVisible:e.setDragVisible},null,8,["class","border","default-sort","store","append-filter-panel-to","onSetDragVisible"])):ae("v-if",!0),E(l,{context:e.context,highlight:e.highlightCurrentRow,"row-class-name":e.rowClassName,"tooltip-effect":e.tooltipEffect,"tooltip-options":e.tooltipOptions,"row-style":e.rowStyle,store:e.store,stripe:e.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"]),e.showSummary&&e.tableLayout==="auto"?(x(),de(u,{key:1,class:M(e.ns.e("body-footer")),border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["class","border","default-sort","store","sum-text","summary-method"])):ae("v-if",!0)],6),e.isEmpty?(x(),j("div",{key:0,ref:"emptyBlock",style:st(e.emptyBlockStyle),class:M(e.ns.e("empty-block"))},[O("span",{class:M(e.ns.e("empty-text"))},[fe(e.$slots,"empty",{},()=>[Te(ce(e.computedEmptyText),1)])],2)],6)):ae("v-if",!0),e.$slots.append?(x(),j("div",{key:1,ref:"appendWrapper",class:M(e.ns.e("append-wrapper"))},[fe(e.$slots,"append")],2)):ae("v-if",!0)]),_:3},8,["view-style","wrap-style","always","tabindex"])],2),e.showSummary&&e.tableLayout==="fixed"?yt((x(),j("div",{key:1,ref:"footerWrapper",class:M(e.ns.e("footer-wrapper"))},[O("table",{class:M(e.ns.e("footer")),cellspacing:"0",cellpadding:"0",border:"0",style:st(e.tableBodyStyles)},[E(a,{columns:e.store.states.columns.value,"table-layout":e.tableLayout},null,8,["columns","table-layout"]),E(u,{border:e.border,"default-sort":e.defaultSort,store:e.store,"sum-text":e.computedSumText,"summary-method":e.summaryMethod},null,8,["border","default-sort","store","sum-text","summary-method"])],6)],2)),[[Bt,!e.isEmpty],[f,e.handleHeaderFooterMousewheel]]):ae("v-if",!0),e.border||e.isGroup?(x(),j("div",{key:2,class:M(e.ns.e("border-left-patch"))},null,2)):ae("v-if",!0)],6),yt(O("div",{ref:"resizeProxy",class:M(e.ns.e("column-resize-proxy"))},null,2),[[Bt,e.resizeProxyVisible]])],46,["data-prefix","onMouseleave"])}var ele=Ue(Joe,[["render",Zoe],["__file","table.vue"]]);const tle={selection:"table-column--selection",expand:"table__expand-column"},nle={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},sle=e=>tle[e]||"",rle={selection:{renderHeader({store:e,column:t}){function n(){return e.states.data.value&&e.states.data.value.length===0}return ot(Jr,{disabled:n(),size:e.states.tableSize.value,indeterminate:e.states.selection.value.length>0&&!e.states.isAllSelected.value,"onUpdate:modelValue":e.toggleAllSelection,modelValue:e.states.isAllSelected.value,ariaLabel:t.label})},renderCell({row:e,column:t,store:n,$index:s}){return ot(Jr,{disabled:t.selectable?!t.selectable.call(null,e,s):!1,size:n.states.tableSize.value,onChange:()=>{n.commit("rowSelectedChanged",e)},onClick:r=>r.stopPropagation(),modelValue:n.isSelected(e),ariaLabel:t.label})},sortable:!1,resizable:!1},index:{renderHeader({column:e}){return e.label||"#"},renderCell({column:e,$index:t}){let n=t+1;const s=e.index;return typeof s=="number"?n=t+s:typeof s=="function"&&(n=s(t)),ot("div",{},[n])},sortable:!1},expand:{renderHeader({column:e}){return e.label||""},renderCell({row:e,store:t,expanded:n}){const{ns:s}=t,r=[s.e("expand-icon")];return n&&r.push(s.em("expand-icon","expanded")),ot("div",{class:r,onClick:function(a){a.stopPropagation(),t.toggleRowExpansion(e)}},{default:()=>[ot(tt,null,{default:()=>[ot(Gs)]})]})},sortable:!1,resizable:!1}};function ile({row:e,column:t,$index:n}){var s;const r=t.property,i=r&&jp(e,r).value;return t&&t.formatter?t.formatter(e,t,i,n):((s=i==null?void 0:i.toString)==null?void 0:s.call(i))||""}function ale({row:e,treeNode:t,store:n},s=!1){const{ns:r}=n;if(!t)return s?[ot("span",{class:r.e("placeholder")})]:null;const i=[],a=function(o){o.stopPropagation(),!t.loading&&n.loadOrToggle(e)};if(t.indent&&i.push(ot("span",{class:r.e("indent"),style:{"padding-left":`${t.indent}px`}})),typeof t.expanded=="boolean"&&!t.noLazyChildren){const o=[r.e("expand-icon"),t.expanded?r.em("expand-icon","expanded"):""];let l=Gs;t.loading&&(l=Gi),i.push(ot("div",{class:o,onClick:a},{default:()=>[ot(tt,{class:{[r.is("loading")]:t.loading}},{default:()=>[ot(l)]})]}))}else i.push(ot("span",{class:r.e("placeholder")}));return i}function vx(e,t){return e.reduce((n,s)=>(n[s]=s,n),t)}function ole(e,t){const n=Ot();return{registerComplexWatchers:()=>{const i=["fixed"],a={realWidth:"width",realMinWidth:"minWidth"},o=vx(i,a);Object.keys(o).forEach(l=>{const u=a[l];jt(t,u)&&xe(()=>t[u],c=>{let f=c;u==="width"&&l==="realWidth"&&(f=B2(c)),u==="minWidth"&&l==="realMinWidth"&&(f=wO(c)),n.columnConfig.value[u]=f,n.columnConfig.value[l]=f;const h=u==="fixed";e.value.store.scheduleLayout(h)})})},registerNormalWatchers:()=>{const i=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","filterClassName","showOverflowTooltip"],a={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},o=vx(i,a);Object.keys(o).forEach(l=>{const u=a[l];jt(t,u)&&xe(()=>t[u],c=>{n.columnConfig.value[l]=c})})}}}function lle(e,t,n){const s=Ot(),r=q(""),i=q(!1),a=q(),o=q(),l=Re("table");vs(()=>{a.value=e.align?`is-${e.align}`:null,a.value}),vs(()=>{o.value=e.headerAlign?`is-${e.headerAlign}`:a.value,o.value});const u=k(()=>{let T=s.vnode.vParent||s.parent;for(;T&&!T.tableId&&!T.columnId;)T=T.vnode.vParent||T.parent;return T}),c=k(()=>{const{store:T}=s.parent;if(!T)return!1;const{treeData:S}=T.states,C=S.value;return C&&Object.keys(C).length>0}),f=q(B2(e.width)),h=q(wO(e.minWidth)),m=T=>(f.value&&(T.width=f.value),h.value&&(T.minWidth=h.value),!f.value&&h.value&&(T.width=void 0),T.minWidth||(T.minWidth=80),T.realWidth=Number(T.width===void 0?T.minWidth:T.width),T),g=T=>{const S=T.type,C=rle[S]||{};Object.keys(C).forEach(N=>{const $=C[N];N!=="className"&&$!==void 0&&(T[N]=$)});const D=sle(S);if(D){const N=`${d(l.namespace)}-${D}`;T.className=T.className?`${T.className} ${N}`:N}return T},p=T=>{Array.isArray(T)?T.forEach(C=>S(C)):S(T);function S(C){var D;((D=C==null?void 0:C.type)==null?void 0:D.name)==="ElTableColumn"&&(C.vParent=s)}};return{columnId:r,realAlign:a,isSubColumn:i,realHeaderAlign:o,columnOrTableParent:u,setColumnWidth:m,setColumnForcedProps:g,setColumnRenders:T=>{e.renderHeader||T.type!=="selection"&&(T.renderHeader=C=>(s.columnConfig.value.label,fe(t,"header",C,()=>[T.label]))),t["filter-icon"]&&(T.renderFilterIcon=C=>fe(t,"filter-icon",C));let S=T.renderCell;return T.type==="expand"?(T.renderCell=C=>ot("div",{class:"cell"},[S(C)]),n.value.renderExpanded=C=>t.default?t.default(C):t.default):(S=S||ile,T.renderCell=C=>{let D=null;if(t.default){const W=t.default(C);D=W.some(K=>K.type!==ps)?W:S(C)}else D=S(C);const{columns:N}=n.value.store.states,$=N.value.findIndex(W=>W.type==="default"),L=c.value&&C.cellIndex===$,z=ale(C,L),U={class:"cell",style:{}};return T.showOverflowTooltip&&(U.class=`${U.class} ${d(l.namespace)}-tooltip`,U.style={width:`${(C.column.realWidth||Number(C.column.width))-1}px`}),p(D),ot("div",U,[z,D])}),T},getPropsData:(...T)=>T.reduce((S,C)=>(Array.isArray(C)&&C.forEach(D=>{S[D]=e[D]}),S),{}),getColumnElIndex:(T,S)=>Array.prototype.indexOf.call(T,S),updateColumnOrder:()=>{n.value.store.commit("updateColumnOrder",s.columnConfig.value)}}}var ule={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:{type:[Boolean,Object],default:void 0},fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},filterClassName:String,index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:e=>e.every(t=>["ascending","descending",null].includes(t))}};let cle=1;var DO=J({name:"ElTableColumn",components:{ElCheckbox:Jr},props:ule,setup(e,{slots:t}){const n=Ot(),s=q({}),r=k(()=>{let b=n.parent;for(;b&&!b.tableId;)b=b.parent;return b}),{registerNormalWatchers:i,registerComplexWatchers:a}=ole(r,e),{columnId:o,isSubColumn:l,realHeaderAlign:u,columnOrTableParent:c,setColumnWidth:f,setColumnForcedProps:h,setColumnRenders:m,getPropsData:g,getColumnElIndex:p,realAlign:v,updateColumnOrder:y}=lle(e,t,r),_=c.value;o.value=`${_.tableId||_.columnId}_column_${cle++}`,Hl(()=>{l.value=r.value!==_;const b=e.type||"default",T=e.sortable===""?!0:e.sortable,S=An(e.showOverflowTooltip)?_.props.showOverflowTooltip:e.showOverflowTooltip,C={...nle[b],id:o.value,type:b,property:e.prop||e.property,align:v,headerAlign:u,showOverflowTooltip:S,filterable:e.filters||e.filterMethod,filteredValue:[],filterPlacement:"",filterClassName:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:T,index:e.index,rawColumnKey:n.vnode.key};let z=g(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement","filterClassName"]);z=hoe(C,z),z=moe(m,f,h)(z),s.value=z,i(),a()}),gt(()=>{var b;const T=c.value,S=l.value?T.vnode.el.children:(b=T.refs.hiddenColumns)==null?void 0:b.children,C=()=>p(S||[],n.vnode.el);s.value.getColumnIndex=C,C()>-1&&r.value.store.commit("insertColumn",s.value,l.value?T.columnConfig.value:null,y)}),un(()=>{const b=s.value.getColumnIndex;(b?b():-1)>-1&&r.value.store.commit("removeColumn",s.value,l.value?_.columnConfig.value:null,y)}),n.columnId=o.value,n.columnConfig=s},render(){var e,t,n;try{const s=(t=(e=this.$slots).default)==null?void 0:t.call(e,{row:{},column:{},$index:-1}),r=[];if(Array.isArray(s))for(const a of s)((n=a.type)==null?void 0:n.name)==="ElTableColumn"||a.shapeFlag&2?r.push(a):a.type===Ke&&Array.isArray(a.children)&&a.children.forEach(o=>{(o==null?void 0:o.patchFlag)!==1024&&!ht(o==null?void 0:o.children)&&r.push(o)});return ot("div",r)}catch{return ot("div",[])}}});const Bc=Tt(ele,{TableColumn:DO}),Fc=kn(DO);var Ff=(e=>(e.ASC="asc",e.DESC="desc",e))(Ff||{}),Vf=(e=>(e.CENTER="center",e.RIGHT="right",e))(Vf||{}),OO=(e=>(e.LEFT="left",e.RIGHT="right",e))(OO||{});const $b={asc:"desc",desc:"asc"},Uf=Symbol("placeholder"),dle=(e,t,n)=>{var s;const r={flexGrow:0,flexShrink:0,...n?{}:{flexGrow:e.flexGrow||0,flexShrink:e.flexShrink||1}};n||(r.flexShrink=1);const i={...(s=e.style)!=null?s:{},...r,flexBasis:"auto",width:e.width};return t||(e.maxWidth&&(i.maxWidth=e.maxWidth),e.minWidth&&(i.minWidth=e.minWidth)),i};function fle(e,t,n){const s=k(()=>d(t).map((v,y)=>{var _,b;return{...v,key:(b=(_=v.key)!=null?_:v.dataKey)!=null?b:y}})),r=k(()=>d(s).filter(v=>!v.hidden)),i=k(()=>d(r).filter(v=>v.fixed==="left"||v.fixed===!0)),a=k(()=>d(r).filter(v=>v.fixed==="right")),o=k(()=>d(r).filter(v=>!v.fixed)),l=k(()=>{const v=[];return d(i).forEach(y=>{v.push({...y,placeholderSign:Uf})}),d(o).forEach(y=>{v.push(y)}),d(a).forEach(y=>{v.push({...y,placeholderSign:Uf})}),v}),u=k(()=>d(i).length||d(a).length),c=k(()=>d(s).reduce((v,y)=>(v[y.key]=dle(y,d(n),e.fixed),v),{})),f=k(()=>d(r).reduce((v,y)=>v+y.width,0)),h=v=>d(s).find(y=>y.key===v),m=v=>d(c)[v],g=(v,y)=>{v.width=y};function p(v){var y;const{key:_}=v.currentTarget.dataset;if(!_)return;const{sortState:b,sortBy:T}=e;let S=Ff.ASC;Pt(b)?S=$b[b[_]]:S=$b[T.order],(y=e.onColumnSort)==null||y.call(e,{column:h(_),key:_,order:S})}return{columns:s,columnsStyles:c,columnsTotalWidth:f,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,hasFixedColumns:u,mainColumns:l,normalColumns:o,visibleColumns:r,getColumn:h,getColumnStyle:m,updateColumnWidth:g,onColumnSorted:p}}const hle=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:r})=>{const i=q({scrollLeft:0,scrollTop:0});function a(m){var g,p,v;const{scrollTop:y}=m;(g=t.value)==null||g.scrollTo(m),(p=n.value)==null||p.scrollToTop(y),(v=s.value)==null||v.scrollToTop(y)}function o(m){i.value=m,a(m)}function l(m){i.value.scrollTop=m,a(d(i))}function u(m){var g,p;i.value.scrollLeft=m,(p=(g=t.value)==null?void 0:g.scrollTo)==null||p.call(g,d(i))}function c(m){var g;o(m),(g=e.onScroll)==null||g.call(e,m)}function f({scrollTop:m}){const{scrollTop:g}=d(i);m!==g&&l(m)}function h(m,g="auto"){var p;(p=t.value)==null||p.scrollToRow(m,g)}return xe(()=>d(i).scrollTop,(m,g)=>{m>g&&r()}),{scrollPos:i,scrollTo:o,scrollToLeft:u,scrollToTop:l,scrollToRow:h,onScroll:c,onVerticalScroll:f}},ple=(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:r,ns:i,isScrolling:a})=>{const o=Ot(),{emit:l}=o,u=hn(!1),c=q(e.defaultExpandedRowKeys||[]),f=q(-1),h=hn(null),m=q({}),g=q({}),p=hn({}),v=hn({}),y=hn({}),_=k(()=>ut(e.estimatedRowHeight));function b(L){var z;(z=e.onRowsRendered)==null||z.call(e,L),L.rowCacheEnd>d(f)&&(f.value=L.rowCacheEnd)}function T({hovered:L,rowKey:z}){if(a.value)return;r.vnode.el.querySelectorAll(`[rowkey="${String(z)}"]`).forEach(K=>{L?K.classList.add(i.is("hovered")):K.classList.remove(i.is("hovered"))})}function S({expanded:L,rowData:z,rowIndex:U,rowKey:W}){var K,X;const B=[...d(c)],Q=B.indexOf(W);L?Q===-1&&B.push(W):Q>-1&&B.splice(Q,1),c.value=B,l("update:expandedRowKeys",B),(K=e.onRowExpand)==null||K.call(e,{expanded:L,rowData:z,rowIndex:U,rowKey:W}),(X=e.onExpandedRowsChange)==null||X.call(e,B)}const C=fr(()=>{var L,z,U,W;u.value=!0,m.value={...d(m),...d(g)},D(d(h),!1),g.value={},h.value=null,(L=t.value)==null||L.forceUpdate(),(z=n.value)==null||z.forceUpdate(),(U=s.value)==null||U.forceUpdate(),(W=o.proxy)==null||W.$forceUpdate(),u.value=!1},0);function D(L,z=!1){d(_)&&[t,n,s].forEach(U=>{const W=d(U);W&&W.resetAfterRowIndex(L,z)})}function N(L,z,U){const W=d(h);(W===null||W>U)&&(h.value=U),g.value[L]=z}function $({rowKey:L,height:z,rowIndex:U},W){W?W===OO.RIGHT?y.value[L]=z:p.value[L]=z:v.value[L]=z;const K=Math.max(...[p,y,v].map(X=>X.value[L]||0));d(m)[L]!==K&&(N(L,K,U),C())}return{expandedRowKeys:c,lastRenderedRowIndex:f,isDynamic:_,isResetting:u,rowHeights:m,resetAfterIndex:D,onRowExpanded:S,onRowHovered:T,onRowsRendered:b,onRowHeightChange:$}},mle=(e,{expandedRowKeys:t,lastRenderedRowIndex:n,resetAfterIndex:s})=>{const r=q({}),i=k(()=>{const o={},{data:l,rowKey:u}=e,c=d(t);if(!c||!c.length)return l;const f=[],h=new Set;c.forEach(g=>h.add(g));let m=l.slice();for(m.forEach(g=>o[g[u]]=0);m.length>0;){const g=m.shift();f.push(g),h.has(g[u])&&Array.isArray(g.children)&&g.children.length>0&&(m=[...g.children,...m],g.children.forEach(p=>o[p[u]]=o[g[u]]+1))}return r.value=o,f}),a=k(()=>{const{data:o,expandColumnKey:l}=e;return l?d(i):o});return xe(a,(o,l)=>{o!==l&&(n.value=-1,s(0,!0))}),{data:a,depthMap:r}},gle=(e,t)=>e+t,Zp=e=>Ye(e)?e.reduce(gle,0):e,Ll=(e,t,n={})=>pt(e)?e(t):e??n,ho=e=>(["width","maxWidth","minWidth","height"].forEach(t=>{e[t]=Nn(e[t])}),e),PO=e=>Cn(e)?t=>ot(e,t):e,vle=(e,{columnsTotalWidth:t,data:n,fixedColumnsOnLeft:s,fixedColumnsOnRight:r})=>{const i=k(()=>{const{fixed:b,width:T,vScrollbarSize:S}=e,C=T-S;return b?Math.max(Math.round(d(t)),C):C}),a=k(()=>d(i)+e.vScrollbarSize),o=k(()=>{const{height:b=0,maxHeight:T=0,footerHeight:S,hScrollbarSize:C}=e;if(T>0){const D=d(g),N=d(l),L=d(m)+D+N+C;return Math.min(L,T-S)}return b-S}),l=k(()=>{const{rowHeight:b,estimatedRowHeight:T}=e,S=d(n);return ut(T)?S.length*T:S.length*b}),u=k(()=>{const{maxHeight:b}=e,T=d(o);if(ut(b)&&b>0)return T;const S=d(l)+d(m)+d(g);return Math.min(T,S)}),c=b=>b.width,f=k(()=>Zp(d(s).map(c))),h=k(()=>Zp(d(r).map(c))),m=k(()=>Zp(e.headerHeight)),g=k(()=>{var b;return(((b=e.fixedData)==null?void 0:b.length)||0)*e.rowHeight}),p=k(()=>d(o)-d(m)-d(g)),v=k(()=>{const{style:b={},height:T,width:S}=e;return ho({...b,height:T,width:S})}),y=k(()=>ho({height:e.footerHeight})),_=k(()=>({top:Nn(d(m)),bottom:Nn(e.footerHeight),width:Nn(e.width)}));return{bodyWidth:i,fixedTableHeight:u,mainTableHeight:o,leftTableWidth:f,rightTableWidth:h,headerWidth:a,rowsHeight:l,windowHeight:p,footerHeight:y,emptyStyle:_,rootStyle:v,headerHeight:m}},yle=e=>{const t=q(),n=q(0),s=q(0);let r;return gt(()=>{r=Sn(t,([i])=>{const{width:a,height:o}=i.contentRect,{paddingLeft:l,paddingRight:u,paddingTop:c,paddingBottom:f}=getComputedStyle(i.target),h=Number.parseInt(l)||0,m=Number.parseInt(u)||0,g=Number.parseInt(c)||0,p=Number.parseInt(f)||0;n.value=a-h-m,s.value=o-g-p}).stop}),un(()=>{r==null||r()}),xe([n,s],([i,a])=>{var o;(o=e.onResize)==null||o.call(e,{width:i,height:a})}),{sizer:t,width:n,height:s}};function ble(e){const t=q(),n=q(),s=q(),{columns:r,columnsStyles:i,columnsTotalWidth:a,fixedColumnsOnLeft:o,fixedColumnsOnRight:l,hasFixedColumns:u,mainColumns:c,onColumnSorted:f}=fle(e,nn(e,"columns"),nn(e,"fixed")),{scrollTo:h,scrollToLeft:m,scrollToTop:g,scrollToRow:p,onScroll:v,onVerticalScroll:y,scrollPos:_}=hle(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,onMaybeEndReached:ee}),b=Re("table-v2"),T=Ot(),S=hn(!1),{expandedRowKeys:C,lastRenderedRowIndex:D,isDynamic:N,isResetting:$,rowHeights:L,resetAfterIndex:z,onRowExpanded:U,onRowHeightChange:W,onRowHovered:K,onRowsRendered:X}=ple(e,{mainTableRef:t,leftTableRef:n,rightTableRef:s,tableInstance:T,ns:b,isScrolling:S}),{data:B,depthMap:Q}=mle(e,{expandedRowKeys:C,lastRenderedRowIndex:D,resetAfterIndex:z}),{bodyWidth:Y,fixedTableHeight:F,mainTableHeight:H,leftTableWidth:Z,rightTableWidth:se,headerWidth:ne,rowsHeight:we,windowHeight:De,footerHeight:Ee,emptyStyle:te,rootStyle:ge,headerHeight:pe}=vle(e,{columnsTotalWidth:a,data:B,fixedColumnsOnLeft:o,fixedColumnsOnRight:l}),Oe=q(),Pe=k(()=>{const re=d(B).length===0;return Ye(e.fixedData)?e.fixedData.length===0&&re:re});function ve(re){const{estimatedRowHeight:Se,rowHeight:Le,rowKey:_e}=e;return Se?d(L)[d(B)[re][_e]]||Se:Le}function ee(){const{onEndReached:re}=e;if(!re)return;const{scrollTop:Se}=d(_),Le=d(we),_e=d(De),ke=Le-(Se+_e)+e.hScrollbarSize;d(D)>=0&&Le===Se+d(H)-d(pe)&&re(ke)}return xe(()=>e.expandedRowKeys,re=>C.value=re,{deep:!0}),{columns:r,containerRef:Oe,mainTableRef:t,leftTableRef:n,rightTableRef:s,isDynamic:N,isResetting:$,isScrolling:S,hasFixedColumns:u,columnsStyles:i,columnsTotalWidth:a,data:B,expandedRowKeys:C,depthMap:Q,fixedColumnsOnLeft:o,fixedColumnsOnRight:l,mainColumns:c,bodyWidth:Y,emptyStyle:te,rootStyle:ge,headerWidth:ne,footerHeight:Ee,mainTableHeight:H,fixedTableHeight:F,leftTableWidth:Z,rightTableWidth:se,showEmpty:Pe,getRowHeight:ve,onColumnSorted:f,onRowHovered:K,onRowExpanded:U,onRowsRendered:X,onRowHeightChange:W,scrollTo:h,scrollToLeft:m,scrollToTop:g,scrollToRow:p,onScroll:v,onVerticalScroll:y}}const U2=Symbol("tableV2"),RO=String,Th={type:oe(Array),required:!0},H2={type:oe(Array)},NO={...H2,required:!0},_le=String,yx={type:oe(Array),default:()=>xn([])},ll={type:Number,required:!0},MO={type:oe([String,Number,Symbol]),default:"id"},bx={type:oe(Object)},ml=Fe({class:String,columns:Th,columnsStyles:{type:oe(Object),required:!0},depth:Number,expandColumnKey:_le,estimatedRowHeight:{...Tl.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:oe(Function)},onRowHover:{type:oe(Function)},onRowHeightChange:{type:oe(Function)},rowData:{type:oe(Object),required:!0},rowEventHandlers:{type:oe(Object)},rowIndex:{type:Number,required:!0},rowKey:MO,style:{type:oe(Object)}}),F0={type:Number,required:!0},z2=Fe({class:String,columns:Th,fixedHeaderData:{type:oe(Array)},headerData:{type:oe(Array),required:!0},headerHeight:{type:oe([Number,Array]),default:50},rowWidth:F0,rowHeight:{type:Number,default:50},height:F0,width:F0}),em=Fe({columns:Th,data:NO,fixedData:H2,estimatedRowHeight:ml.estimatedRowHeight,width:ll,height:ll,headerWidth:ll,headerHeight:z2.headerHeight,bodyWidth:ll,rowHeight:ll,cache:tO.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:Tl.scrollbarAlwaysOn,scrollbarStartGap:Tl.scrollbarStartGap,scrollbarEndGap:Tl.scrollbarEndGap,class:RO,style:bx,containerStyle:bx,getRowHeight:{type:oe(Function),required:!0},rowKey:ml.rowKey,onRowsRendered:{type:oe(Function)},onScroll:{type:oe(Function)}}),wle=Fe({cache:em.cache,estimatedRowHeight:ml.estimatedRowHeight,rowKey:MO,headerClass:{type:oe([String,Function])},headerProps:{type:oe([Object,Function])},headerCellProps:{type:oe([Object,Function])},headerHeight:z2.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:oe([String,Function])},rowProps:{type:oe([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:oe([Object,Function])},columns:Th,data:NO,dataGetter:{type:oe(Function)},fixedData:H2,expandColumnKey:ml.expandColumnKey,expandedRowKeys:yx,defaultExpandedRowKeys:yx,class:RO,fixed:Boolean,style:{type:oe(Object)},width:ll,height:ll,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:Tl.hScrollbarSize,vScrollbarSize:Tl.vScrollbarSize,scrollbarAlwaysOn:rO.alwaysOn,sortBy:{type:oe(Object),default:()=>({})},sortState:{type:oe(Object),default:void 0},onColumnSort:{type:oe(Function)},onExpandedRowsChange:{type:oe(Function)},onEndReached:{type:oe(Function)},onRowExpand:ml.onRowExpand,onScroll:em.onScroll,onRowsRendered:em.onRowsRendered,rowEventHandlers:ml.rowEventHandlers}),j2=(e,{slots:t})=>{var n;const{cellData:s,style:r}=e,i=((n=s==null?void 0:s.toString)==null?void 0:n.call(s))||"",a=fe(t,"default",e,()=>[i]);return E("div",{class:e.class,title:i,style:r},[a])};j2.displayName="ElTableV2Cell";j2.inheritAttrs=!1;const q2=(e,{slots:t})=>fe(t,"default",e,()=>{var n,s;return[E("div",{class:e.class,title:(n=e.column)==null?void 0:n.title},[(s=e.column)==null?void 0:s.title])]});q2.displayName="ElTableV2HeaderCell";q2.inheritAttrs=!1;const Sle=Fe({class:String,columns:Th,columnsStyles:{type:oe(Object),required:!0},headerIndex:Number,style:{type:oe(Object)}}),Tle=J({name:"ElTableV2HeaderRow",props:Sle,setup(e,{slots:t}){return()=>{const{columns:n,columnsStyles:s,headerIndex:r,style:i}=e;let a=n.map((o,l)=>t.cell({columns:n,column:o,columnIndex:l,headerIndex:r,style:s[o.key]}));return t.header&&(a=t.header({cells:a.map(o=>Ye(o)&&o.length===1?o[0]:o),columns:n,headerIndex:r})),E("div",{class:e.class,style:i,role:"row"},[a])}}}),Cle="ElTableV2Header",Ele=J({name:Cle,props:z2,setup(e,{slots:t,expose:n}){const s=Re("table-v2"),r=q(),i=k(()=>ho({width:e.width,height:e.height})),a=k(()=>ho({width:e.rowWidth,height:e.height})),o=k(()=>Ds(d(e.headerHeight))),l=f=>{const h=d(r);it(()=>{h!=null&&h.scroll&&h.scroll({left:f})})},u=()=>{const f=s.e("fixed-header-row"),{columns:h,fixedHeaderData:m,rowHeight:g}=e;return m==null?void 0:m.map((p,v)=>{var y;const _=ho({height:g,width:"100%"});return(y=t.fixed)==null?void 0:y.call(t,{class:f,columns:h,rowData:p,rowIndex:-(v+1),style:_})})},c=()=>{const f=s.e("dynamic-header-row"),{columns:h}=e;return d(o).map((m,g)=>{var p;const v=ho({width:"100%",height:m});return(p=t.dynamic)==null?void 0:p.call(t,{class:f,columns:h,headerIndex:g,style:v})})};return n({scrollToLeft:l}),()=>{if(!(e.height<=0))return E("div",{ref:r,class:e.class,style:d(i),role:"rowgroup"},[E("div",{style:d(a),class:s.e("header")},[c(),u()])])}}}),xle=e=>{const{isScrolling:t}=Xe(U2),n=q(!1),s=q(),r=k(()=>ut(e.estimatedRowHeight)&&e.rowIndex>=0),i=(l=!1)=>{const u=d(s);if(!u)return;const{columns:c,onRowHeightChange:f,rowKey:h,rowIndex:m,style:g}=e,{height:p}=u.getBoundingClientRect();n.value=!0,it(()=>{if(l||p!==Number.parseInt(g.height)){const v=c[0],y=(v==null?void 0:v.placeholderSign)===Uf;f==null||f({rowKey:h,height:p,rowIndex:m},v&&!y&&v.fixed)}})},a=k(()=>{const{rowData:l,rowIndex:u,rowKey:c,onRowHover:f}=e,h=e.rowEventHandlers||{},m={};return Object.entries(h).forEach(([g,p])=>{pt(p)&&(m[g]=v=>{p({event:v,rowData:l,rowIndex:u,rowKey:c})})}),f&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:g,hovered:p})=>{const v=m[g];m[g]=y=>{f({event:y,hovered:p,rowData:l,rowIndex:u,rowKey:c}),v==null||v(y)}}),m}),o=l=>{const{onRowExpand:u,rowData:c,rowIndex:f,rowKey:h}=e;u==null||u({expanded:l,rowData:c,rowIndex:f,rowKey:h})};return gt(()=>{d(r)&&i(!0)}),{isScrolling:t,measurable:r,measured:n,rowRef:s,eventHandlers:a,onExpand:o}},kle="ElTableV2TableRow",Ale=J({name:kle,props:ml,setup(e,{expose:t,slots:n,attrs:s}){const{eventHandlers:r,isScrolling:i,measurable:a,measured:o,rowRef:l,onExpand:u}=xle(e);return t({onExpand:u}),()=>{const{columns:c,columnsStyles:f,expandColumnKey:h,depth:m,rowData:g,rowIndex:p,style:v}=e;let y=c.map((_,b)=>{const T=Ye(g.children)&&g.children.length>0&&_.key===h;return n.cell({column:_,columns:c,columnIndex:b,depth:m,style:f[_.key],rowData:g,rowIndex:p,isScrolling:d(i),expandIconProps:T?{rowData:g,rowIndex:p,onExpand:u}:void 0})});if(n.row&&(y=n.row({cells:y.map(_=>Ye(_)&&_.length===1?_[0]:_),style:v,columns:c,depth:m,rowData:g,rowIndex:p,isScrolling:d(i)})),d(a)){const{height:_,...b}=v||{},T=d(o);return E("div",Nt({ref:l,class:e.class,style:T?v:b,role:"row"},s,d(r)),[y])}return E("div",Nt(s,{ref:l,class:e.class,style:v,role:"row"},d(r)),[y])}}}),Ile=e=>{const{sortOrder:t}=e;return E(tt,{size:14,class:e.class},{default:()=>[t===Ff.ASC?E(Zj,null,null):E(Qj,null,null)]})},Dle=e=>{const{expanded:t,expandable:n,onExpand:s,style:r,size:i}=e,a={onClick:n?()=>s(!t):void 0,class:e.class};return E(tt,Nt(a,{size:i,style:r}),{default:()=>[E(Gs,null,null)]})},Ole="ElTableV2Grid",Ple=e=>{const t=q(),n=q(),s=k(()=>{const{data:p,rowHeight:v,estimatedRowHeight:y}=e;if(!y)return p.length*v}),r=k(()=>{const{fixedData:p,rowHeight:v}=e;return((p==null?void 0:p.length)||0)*v}),i=k(()=>Zp(e.headerHeight)),a=k(()=>{const{height:p}=e;return Math.max(0,p-d(i)-d(r))}),o=k(()=>d(i)+d(r)>0),l=({data:p,rowIndex:v})=>p[v][e.rowKey];function u({rowCacheStart:p,rowCacheEnd:v,rowVisibleStart:y,rowVisibleEnd:_}){var b;(b=e.onRowsRendered)==null||b.call(e,{rowCacheStart:p,rowCacheEnd:v,rowVisibleStart:y,rowVisibleEnd:_})}function c(p,v){var y;(y=n.value)==null||y.resetAfterRowIndex(p,v)}function f(p,v){const y=d(t),_=d(n);Pt(p)?(y==null||y.scrollToLeft(p.scrollLeft),_==null||_.scrollTo(p)):(y==null||y.scrollToLeft(p),_==null||_.scrollTo({scrollLeft:p,scrollTop:v}))}function h(p){var v;(v=d(n))==null||v.scrollTo({scrollTop:p})}function m(p,v){var y;(y=d(n))==null||y.scrollToItem(p,1,v)}function g(){var p,v;(p=d(n))==null||p.$forceUpdate(),(v=d(t))==null||v.$forceUpdate()}return{bodyRef:n,forceUpdate:g,fixedRowHeight:r,gridHeight:a,hasHeader:o,headerHeight:i,headerRef:t,totalHeight:s,itemKey:l,onItemRendered:u,resetAfterRowIndex:c,scrollTo:f,scrollToTop:h,scrollToRow:m}},W2=J({name:Ole,props:em,setup(e,{slots:t,expose:n}){const{ns:s}=Xe(U2),{bodyRef:r,fixedRowHeight:i,gridHeight:a,hasHeader:o,headerRef:l,headerHeight:u,totalHeight:c,forceUpdate:f,itemKey:h,onItemRendered:m,resetAfterRowIndex:g,scrollTo:p,scrollToTop:v,scrollToRow:y}=Ple(e);n({forceUpdate:f,totalHeight:c,scrollTo:p,scrollToTop:v,scrollToRow:y,resetAfterRowIndex:g});const _=()=>e.bodyWidth;return()=>{const{cache:b,columns:T,data:S,fixedData:C,useIsScrolling:D,scrollbarAlwaysOn:N,scrollbarEndGap:$,scrollbarStartGap:L,style:z,rowHeight:U,bodyWidth:W,estimatedRowHeight:K,headerWidth:X,height:B,width:Q,getRowHeight:Y,onScroll:F}=e,H=ut(K),Z=H?Pie:Aie,se=d(u);return E("div",{role:"table",class:[s.e("table"),e.class],style:z},[E(Z,{ref:r,data:S,useIsScrolling:D,itemKey:h,columnCache:0,columnWidth:H?_:W,totalColumn:1,totalRow:S.length,rowCache:b,rowHeight:H?Y:U,width:Q,height:d(a),class:s.e("body"),role:"rowgroup",scrollbarStartGap:L,scrollbarEndGap:$,scrollbarAlwaysOn:N,onScroll:F,onItemRendered:m,perfMode:!1},{default:ne=>{var we;const De=S[ne.rowIndex];return(we=t.row)==null?void 0:we.call(t,{...ne,columns:T,rowData:De})}}),d(o)&&E(Ele,{ref:l,class:s.e("header-wrapper"),columns:T,headerData:S,headerHeight:e.headerHeight,fixedHeaderData:C,rowWidth:X,rowHeight:U,width:Q,height:Math.min(se+d(i),B)},{dynamic:t.header,fixed:t.row})])}}});function Rle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Cn(e)}const Nle=(e,{slots:t})=>{const{mainTableRef:n,...s}=e;return E(W2,Nt({ref:n},s),Rle(t)?t:{default:()=>[t]})};function Mle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Cn(e)}const $le=(e,{slots:t})=>{if(!e.columns.length)return;const{leftTableRef:n,...s}=e;return E(W2,Nt({ref:n},s),Mle(t)?t:{default:()=>[t]})};function Lle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Cn(e)}const Ble=(e,{slots:t})=>{if(!e.columns.length)return;const{rightTableRef:n,...s}=e;return E(W2,Nt({ref:n},s),Lle(t)?t:{default:()=>[t]})};function Fle(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Cn(e)}const Vle=(e,{slots:t})=>{const{columns:n,columnsStyles:s,depthMap:r,expandColumnKey:i,expandedRowKeys:a,estimatedRowHeight:o,hasFixedColumns:l,rowData:u,rowIndex:c,style:f,isScrolling:h,rowProps:m,rowClass:g,rowKey:p,rowEventHandlers:v,ns:y,onRowHovered:_,onRowExpanded:b}=e,T=Ll(g,{columns:n,rowData:u,rowIndex:c},""),S=Ll(m,{columns:n,rowData:u,rowIndex:c}),C=u[p],D=r[C]||0,N=!!i,$=c<0,L=[y.e("row"),T,{[y.e(`row-depth-${D}`)]:N&&c>=0,[y.is("expanded")]:N&&a.includes(C),[y.is("fixed")]:!D&&$,[y.is("customized")]:!!t.row}],z=l?_:void 0,U={...S,columns:n,columnsStyles:s,class:L,depth:D,expandColumnKey:i,estimatedRowHeight:$?void 0:o,isScrolling:h,rowIndex:c,rowData:u,rowKey:C,rowEventHandlers:v,style:f};return E(Ale,Nt(U,{onRowExpand:b,onMouseenter:X=>{z==null||z({hovered:!0,rowKey:C,event:X,rowData:u,rowIndex:c})},onMouseleave:X=>{z==null||z({hovered:!1,rowKey:C,event:X,rowData:u,rowIndex:c})},rowkey:C}),Fle(t)?t:{default:()=>[t]})},Lb=({columns:e,column:t,columnIndex:n,depth:s,expandIconProps:r,isScrolling:i,rowData:a,rowIndex:o,style:l,expandedRowKeys:u,ns:c,cellProps:f,expandColumnKey:h,indentSize:m,iconSize:g,rowKey:p},{slots:v})=>{const y=ho(l);if(t.placeholderSign===Uf)return E("div",{class:c.em("row-cell","placeholder"),style:y},null);const{cellRenderer:_,dataKey:b,dataGetter:T}=t,S=pt(T)?T({columns:e,column:t,columnIndex:n,rowData:a,rowIndex:o}):Ln(a,b??""),C=Ll(f,{cellData:S,columns:e,column:t,columnIndex:n,rowIndex:o,rowData:a}),D={class:c.e("cell-text"),columns:e,column:t,columnIndex:n,cellData:S,isScrolling:i,rowData:a,rowIndex:o},N=PO(_),$=N?N(D):fe(v,"default",D,()=>[E(j2,D,null)]),L=[c.e("row-cell"),t.class,t.align===Vf.CENTER&&c.is("align-center"),t.align===Vf.RIGHT&&c.is("align-right")],z=o>=0&&h&&t.key===h,U=o>=0&&u.includes(a[p]);let W;const K=`margin-inline-start: ${s*m}px;`;return z&&(Pt(r)?W=E(Dle,Nt(r,{class:[c.e("expand-icon"),c.is("expanded",U)],size:g,expanded:U,style:K,expandable:!0}),null):W=E("div",{style:[K,`width: ${g}px; height: ${g}px;`].join(" ")},null)),E("div",Nt({class:L,style:y},C,{role:"cell"}),[W,$])};Lb.inheritAttrs=!1;function Ule(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Cn(e)}const Hle=({columns:e,columnsStyles:t,headerIndex:n,style:s,headerClass:r,headerProps:i,ns:a},{slots:o})=>{const l={columns:e,headerIndex:n},u=[a.e("header-row"),Ll(r,l,""),{[a.is("customized")]:!!o.header}],c={...Ll(i,l),columnsStyles:t,class:u,columns:e,headerIndex:n,style:s};return E(Tle,c,Ule(o)?o:{default:()=>[o]})},_x=(e,{slots:t})=>{const{column:n,ns:s,style:r,onColumnSorted:i}=e,a=ho(r);if(n.placeholderSign===Uf)return E("div",{class:s.em("header-row-cell","placeholder"),style:a},null);const{headerCellRenderer:o,headerClass:l,sortable:u}=n,c={...e,class:s.e("header-cell-text")},f=PO(o),h=f?f(c):fe(t,"default",c,()=>[E(q2,c,null)]),{sortBy:m,sortState:g,headerCellProps:p}=e;let v,y;if(g){const T=g[n.key];v=!!$b[T],y=v?T:Ff.ASC}else v=n.key===m.key,y=v?m.order:Ff.ASC;const _=[s.e("header-cell"),Ll(l,e,""),n.align===Vf.CENTER&&s.is("align-center"),n.align===Vf.RIGHT&&s.is("align-right"),u&&s.is("sortable")],b={...Ll(p,e),onClick:n.sortable?i:void 0,class:_,style:a,"data-key":n.key};return E("div",Nt(b,{role:"columnheader"}),[h,u&&E(Ile,{class:[s.e("sort-icon"),v&&s.is("sorting")],sortOrder:y},null)])},$O=(e,{slots:t})=>{var n;return E("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};$O.displayName="ElTableV2Footer";const LO=(e,{slots:t})=>{const n=fe(t,"default",{},()=>[E($c,null,null)]);return E("div",{class:e.class,style:e.style},[n])};LO.displayName="ElTableV2Empty";const BO=(e,{slots:t})=>{var n;return E("div",{class:e.class,style:e.style},[(n=t.default)==null?void 0:n.call(t)])};BO.displayName="ElTableV2Overlay";function yd(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Cn(e)}const zle="ElTableV2",jle=J({name:zle,props:wle,setup(e,{slots:t,expose:n}){const s=Re("table-v2"),{columnsStyles:r,fixedColumnsOnLeft:i,fixedColumnsOnRight:a,mainColumns:o,mainTableHeight:l,fixedTableHeight:u,leftTableWidth:c,rightTableWidth:f,data:h,depthMap:m,expandedRowKeys:g,hasFixedColumns:p,mainTableRef:v,leftTableRef:y,rightTableRef:_,isDynamic:b,isResetting:T,isScrolling:S,bodyWidth:C,emptyStyle:D,rootStyle:N,headerWidth:$,footerHeight:L,showEmpty:z,scrollTo:U,scrollToLeft:W,scrollToTop:K,scrollToRow:X,getRowHeight:B,onColumnSorted:Q,onRowHeightChange:Y,onRowHovered:F,onRowExpanded:H,onRowsRendered:Z,onScroll:se,onVerticalScroll:ne}=ble(e);return n({scrollTo:U,scrollToLeft:W,scrollToTop:K,scrollToRow:X}),Mt(U2,{ns:s,isResetting:T,isScrolling:S}),()=>{const{cache:we,cellProps:De,estimatedRowHeight:Ee,expandColumnKey:te,fixedData:ge,headerHeight:pe,headerClass:Oe,headerProps:Pe,headerCellProps:ve,sortBy:ee,sortState:re,rowHeight:Se,rowClass:Le,rowEventHandlers:_e,rowKey:ke,rowProps:Be,scrollbarAlwaysOn:Ie,indentSize:ze,iconSize:Ve,useIsScrolling:Ze,vScrollbarSize:je,width:Ae}=e,nt=d(h),_t={cache:we,class:s.e("main"),columns:d(o),data:nt,fixedData:ge,estimatedRowHeight:Ee,bodyWidth:d(C)+je,headerHeight:pe,headerWidth:d($),height:d(l),mainTableRef:v,rowKey:ke,rowHeight:Se,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:je,useIsScrolling:Ze,width:Ae,getRowHeight:B,onRowsRendered:Z,onScroll:se},xt=d(c),It=d(u),Kt={cache:we,class:s.e("left"),columns:d(i),data:nt,estimatedRowHeight:Ee,leftTableRef:y,rowHeight:Se,bodyWidth:xt,headerWidth:xt,headerHeight:pe,height:It,rowKey:ke,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:je,useIsScrolling:Ze,width:xt,getRowHeight:B,onScroll:ne},be=d(f)+je,et={cache:we,class:s.e("right"),columns:d(a),data:nt,estimatedRowHeight:Ee,rightTableRef:_,rowHeight:Se,bodyWidth:be,headerWidth:be,headerHeight:pe,height:It,rowKey:ke,scrollbarAlwaysOn:Ie,scrollbarStartGap:2,scrollbarEndGap:je,width:be,style:`--${d(s.namespace)}-table-scrollbar-size: ${je}px`,useIsScrolling:Ze,getRowHeight:B,onScroll:ne},le=d(r),Ne={ns:s,depthMap:d(m),columnsStyles:le,expandColumnKey:te,expandedRowKeys:d(g),estimatedRowHeight:Ee,hasFixedColumns:d(p),rowProps:Be,rowClass:Le,rowKey:ke,rowEventHandlers:_e,onRowHovered:F,onRowExpanded:H,onRowHeightChange:Y},Me={cellProps:De,expandColumnKey:te,indentSize:ze,iconSize:Ve,rowKey:ke,expandedRowKeys:d(g),ns:s},vt={ns:s,headerClass:Oe,headerProps:Pe,columnsStyles:le},qt={ns:s,sortBy:ee,sortState:re,headerCellProps:ve,onColumnSorted:Q},Ce={row:Qt=>E(Vle,Nt(Qt,Ne),{row:t.row,cell:Wt=>{let en;return t.cell?E(Lb,Nt(Wt,Me,{style:le[Wt.column.key]}),yd(en=t.cell(Wt))?en:{default:()=>[en]}):E(Lb,Nt(Wt,Me,{style:le[Wt.column.key]}),null)}}),header:Qt=>E(Hle,Nt(Qt,vt),{header:t.header,cell:Wt=>{let en;return t["header-cell"]?E(_x,Nt(Wt,qt,{style:le[Wt.column.key]}),yd(en=t["header-cell"](Wt))?en:{default:()=>[en]}):E(_x,Nt(Wt,qt,{style:le[Wt.column.key]}),null)}})},mt=[e.class,s.b(),s.e("root"),{[s.is("dynamic")]:d(b)}],Vt={class:s.e("footer"),style:d(L)};return E("div",{class:mt,style:d(N)},[E(Nle,_t,yd(Ce)?Ce:{default:()=>[Ce]}),E($le,Kt,yd(Ce)?Ce:{default:()=>[Ce]}),E(Ble,et,yd(Ce)?Ce:{default:()=>[Ce]}),t.footer&&E($O,Vt,{default:t.footer}),d(z)&&E(LO,{class:s.e("empty"),style:d(D)},{default:t.empty}),t.overlay&&E(BO,{class:s.e("overlay")},{default:t.overlay})])}}}),qle=Fe({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:oe(Function)}}),Wle=J({name:"ElAutoResizer",props:qle,setup(e,{slots:t}){const n=Re("auto-resizer"),{height:s,width:r,sizer:i}=yle(e),a={width:"100%",height:"100%"};return()=>{var o;return E("div",{ref:i,class:n.b(),style:a},[(o=t.default)==null?void 0:o.call(t,{height:s.value,width:r.value})])}}}),Kle=Tt(jle),Gle=Tt(Wle),rv=Symbol("tabsRootContextKey"),Yle=Fe({tabs:{type:oe(Array),default:()=>xn([])}}),FO="ElTabBar",Xle=J({name:FO}),Qle=J({...Xle,props:Yle,setup(e,{expose:t}){const n=e,s=Ot(),r=Xe(rv);r||es(FO,"<el-tabs><el-tab-bar /></el-tabs>");const i=Re("tabs"),a=q(),o=q(),l=()=>{let m=0,g=0;const p=["top","bottom"].includes(r.props.tabPosition)?"width":"height",v=p==="width"?"x":"y",y=v==="x"?"left":"top";return n.tabs.every(_=>{var b,T;const S=(T=(b=s.parent)==null?void 0:b.refs)==null?void 0:T[`tab-${_.uid}`];if(!S)return!1;if(!_.active)return!0;m=S[`offset${Li(y)}`],g=S[`client${Li(p)}`];const C=window.getComputedStyle(S);return p==="width"&&(g-=Number.parseFloat(C.paddingLeft)+Number.parseFloat(C.paddingRight),m+=Number.parseFloat(C.paddingLeft)),!1}),{[p]:`${g}px`,transform:`translate${Li(v)}(${m}px)`}},u=()=>o.value=l(),c=[],f=()=>{var m;c.forEach(p=>p.stop()),c.length=0;const g=(m=s.parent)==null?void 0:m.refs;if(g){for(const p in g)if(p.startsWith("tab-")){const v=g[p];v&&c.push(Sn(v,u))}}};xe(()=>n.tabs,async()=>{await it(),u(),f()},{immediate:!0});const h=Sn(a,()=>u());return un(()=>{c.forEach(m=>m.stop()),c.length=0,h.stop()}),t({ref:a,update:u}),(m,g)=>(x(),j("div",{ref_key:"barRef",ref:a,class:M([d(i).e("active-bar"),d(i).is(d(r).props.tabPosition)]),style:st(o.value)},null,6))}});var Jle=Ue(Qle,[["__file","tab-bar.vue"]]);const Zle=Fe({panes:{type:oe(Array),default:()=>xn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),eue={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},wx="ElTabNav",tue=J({name:wx,props:Zle,emits:eue,setup(e,{expose:t,emit:n}){const s=Xe(rv);s||es(wx,"<el-tabs><tab-nav /></el-tabs>");const r=Re("tabs"),i=eF(),a=fF(),o=q(),l=q(),u=q(),c=q(),f=q(!1),h=q(0),m=q(!1),g=q(!0),p=k(()=>["top","bottom"].includes(s.props.tabPosition)?"width":"height"),v=k(()=>({transform:`translate${p.value==="width"?"X":"Y"}(-${h.value}px)`})),y=()=>{if(!o.value)return;const N=o.value[`offset${Li(p.value)}`],$=h.value;if(!$)return;const L=$>N?$-N:0;h.value=L},_=()=>{if(!o.value||!l.value)return;const N=l.value[`offset${Li(p.value)}`],$=o.value[`offset${Li(p.value)}`],L=h.value;if(N-L<=$)return;const z=N-L>$*2?L+$:N-$;h.value=z},b=async()=>{const N=l.value;if(!f.value||!u.value||!o.value||!N)return;await it();const $=u.value.querySelector(".is-active");if(!$)return;const L=o.value,z=["top","bottom"].includes(s.props.tabPosition),U=$.getBoundingClientRect(),W=L.getBoundingClientRect(),K=z?N.offsetWidth-W.width:N.offsetHeight-W.height,X=h.value;let B=X;z?(U.left<W.left&&(B=X-(W.left-U.left)),U.right>W.right&&(B=X+U.right-W.right)):(U.top<W.top&&(B=X-(W.top-U.top)),U.bottom>W.bottom&&(B=X+(U.bottom-W.bottom))),B=Math.max(B,0),h.value=Math.min(B,K)},T=()=>{var N;if(!l.value||!o.value)return;e.stretch&&((N=c.value)==null||N.update());const $=l.value[`offset${Li(p.value)}`],L=o.value[`offset${Li(p.value)}`],z=h.value;L<$?(f.value=f.value||{},f.value.prev=z,f.value.next=z+L<$,$-z<L&&(h.value=$-L)):(f.value=!1,z>0&&(h.value=0))},S=N=>{const $=N.code,{up:L,down:z,left:U,right:W}=at;if(![L,z,U,W].includes($))return;const K=Array.from(N.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),X=K.indexOf(N.target);let B;$===U||$===L?X===0?B=K.length-1:B=X-1:X<K.length-1?B=X+1:B=0,K[B].focus({preventScroll:!0}),K[B].click(),C()},C=()=>{g.value&&(m.value=!0)},D=()=>m.value=!1;return xe(i,N=>{N==="hidden"?g.value=!1:N==="visible"&&setTimeout(()=>g.value=!0,50)}),xe(a,N=>{N?setTimeout(()=>g.value=!0,50):g.value=!1}),Sn(u,T),gt(()=>setTimeout(()=>b(),0)),Na(()=>T()),t({scrollToActiveTab:b,removeFocus:D}),()=>{const N=f.value?[E("span",{class:[r.e("nav-prev"),r.is("disabled",!f.value.prev)],onClick:y},[E(tt,null,{default:()=>[E(ko,null,null)]})]),E("span",{class:[r.e("nav-next"),r.is("disabled",!f.value.next)],onClick:_},[E(tt,null,{default:()=>[E(Gs,null,null)]})])]:null,$=e.panes.map((L,z)=>{var U,W,K,X;const B=L.uid,Q=L.props.disabled,Y=(W=(U=L.props.name)!=null?U:L.index)!=null?W:`${z}`,F=!Q&&(L.isClosable||e.editable);L.index=`${z}`;const H=F?E(tt,{class:"is-icon-close",onClick:ne=>n("tabRemove",L,ne)},{default:()=>[E(_i,null,null)]}):null,Z=((X=(K=L.slots).label)==null?void 0:X.call(K))||L.props.label,se=!Q&&L.active?0:-1;return E("div",{ref:`tab-${B}`,class:[r.e("item"),r.is(s.props.tabPosition),r.is("active",L.active),r.is("disabled",Q),r.is("closable",F),r.is("focus",m.value)],id:`tab-${Y}`,key:`tab-${B}`,"aria-controls":`pane-${Y}`,role:"tab","aria-selected":L.active,tabindex:se,onFocus:()=>C(),onBlur:()=>D(),onClick:ne=>{D(),n("tabClick",L,Y,ne)},onKeydown:ne=>{F&&(ne.code===at.delete||ne.code===at.backspace)&&n("tabRemove",L,ne)}},[Z,H])});return E("div",{ref:u,class:[r.e("nav-wrap"),r.is("scrollable",!!f.value),r.is(s.props.tabPosition)]},[N,E("div",{class:r.e("nav-scroll"),ref:o},[E("div",{class:[r.e("nav"),r.is(s.props.tabPosition),r.is("stretch",e.stretch&&["top","bottom"].includes(s.props.tabPosition))],ref:l,style:v.value,role:"tablist",onKeydown:S},[e.type?null:E(Jle,{ref:c,tabs:[...e.panes]},null),$])])])}}}),nue=Fe({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:oe(Function),default:()=>!0},stretch:Boolean}),V0=e=>ht(e)||ut(e),sue={[At]:e=>V0(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>V0(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>V0(e),tabAdd:()=>!0},rue=J({name:"ElTabs",props:nue,emits:sue,setup(e,{emit:t,slots:n,expose:s}){var r;const i=Re("tabs"),a=k(()=>["left","right"].includes(e.tabPosition)),{children:o,addChild:l,removeChild:u}=r2(Ot(),"ElTabPane"),c=q(),f=q((r=e.modelValue)!=null?r:"0"),h=async(y,_=!1)=>{var b,T,S;if(!(f.value===y||An(y)))try{await((b=e.beforeLeave)==null?void 0:b.call(e,y,f.value))!==!1&&(f.value=y,_&&(t(At,y),t("tabChange",y)),(S=(T=c.value)==null?void 0:T.removeFocus)==null||S.call(T))}catch{}},m=(y,_,b)=>{y.props.disabled||(h(_,!0),t("tabClick",y,b))},g=(y,_)=>{y.props.disabled||An(y.props.name)||(_.stopPropagation(),t("edit",y.props.name,"remove"),t("tabRemove",y.props.name))},p=()=>{t("edit",void 0,"add"),t("tabAdd")};xe(()=>e.modelValue,y=>h(y)),xe(f,async()=>{var y;await it(),(y=c.value)==null||y.scrollToActiveTab()}),Mt(rv,{props:e,currentName:f,registerPane:y=>{o.value.push(y)},sortPane:l,unregisterPane:u}),s({currentName:f});const v=({render:y})=>y();return()=>{const y=n["add-icon"],_=e.editable||e.addable?E("div",{class:[i.e("new-tab"),a.value&&i.e("new-tab-vertical")],tabindex:"0",onClick:p,onKeydown:S=>{S.code===at.enter&&p()}},[y?fe(n,"add-icon"):E(tt,{class:i.is("icon-plus")},{default:()=>[E(R1,null,null)]})]):null,b=E("div",{class:[i.e("header"),a.value&&i.e("header-vertical"),i.is(e.tabPosition)]},[E(v,{render:()=>{const S=o.value.some(C=>C.slots.label);return E(tue,{ref:c,currentName:f.value,editable:e.editable,type:e.type,panes:o.value,stretch:e.stretch,onTabClick:m,onTabRemove:g},{$stable:!S})}},null),_]),T=E("div",{class:i.e("content")},[fe(n,"default")]);return E("div",{class:[i.b(),i.m(e.tabPosition),{[i.m("card")]:e.type==="card",[i.m("border-card")]:e.type==="border-card"}]},[T,b])}}}),iue=Fe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),VO="ElTabPane",aue=J({name:VO}),oue=J({...aue,props:iue,setup(e){const t=e,n=Ot(),s=os(),r=Xe(rv);r||es(VO,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const i=Re("tab-pane"),a=q(),o=k(()=>t.closable||r.props.closable),l=ZT(()=>{var m;return r.currentName.value===((m=t.name)!=null?m:a.value)}),u=q(l.value),c=k(()=>{var m;return(m=t.name)!=null?m:a.value}),f=ZT(()=>!t.lazy||u.value||l.value);xe(l,m=>{m&&(u.value=!0)});const h=Ct({uid:n.uid,slots:s,props:t,paneName:c,active:l,index:a,isClosable:o});return r.registerPane(h),gt(()=>{r.sortPane(h)}),Fo(()=>{r.unregisterPane(h.uid)}),(m,g)=>d(f)?yt((x(),j("div",{key:0,id:`pane-${d(c)}`,class:M(d(i).b()),role:"tabpanel","aria-hidden":!d(l),"aria-labelledby":`tab-${d(c)}`},[fe(m.$slots,"default")],10,["id","aria-hidden","aria-labelledby"])),[[Bt,d(l)]]):ae("v-if",!0)}});var UO=Ue(oue,[["__file","tab-pane.vue"]]);const lue=Tt(rue,{TabPane:UO}),uue=kn(UO),cue=Fe({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:ra,default:""},truncated:Boolean,lineClamp:{type:[String,Number]},tag:{type:String,default:"span"}}),due=J({name:"ElText"}),fue=J({...due,props:cue,setup(e){const t=e,n=Kn(),s=Re("text"),r=k(()=>[s.b(),s.m(t.type),s.m(n.value),s.is("truncated",t.truncated),s.is("line-clamp",!An(t.lineClamp))]);return(i,a)=>(x(),de(Rt(i.tag),{class:M(d(r)),style:st({"-webkit-line-clamp":i.lineClamp})},{default:P(()=>[fe(i.$slots,"default")]),_:3},8,["class","style"]))}});var hue=Ue(fue,[["__file","text.vue"]]);const pue=Tt(hue),mue=Fe({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:oe(String),default:"light"},clearable:{type:Boolean,default:!0},size:ts,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:oe([String,Object]),default:()=>O1},clearIcon:{type:oe([String,Object]),default:()=>Uo},...Pc}),ba=e=>{const t=(e||"").split(":");if(t.length>=2){let n=Number.parseInt(t[0],10);const s=Number.parseInt(t[1],10),r=e.toUpperCase();return r.includes("AM")&&n===12?n=0:r.includes("PM")&&n!==12&&(n+=12),{hours:n,minutes:s}}return null},U0=(e,t)=>{const n=ba(e);if(!n)return-1;const s=ba(t);if(!s)return-1;const r=n.minutes+n.hours*60,i=s.minutes+s.hours*60;return r===i?0:r>i?1:-1},Sx=e=>`${e}`.padStart(2,"0"),yu=e=>`${Sx(e.hours)}:${Sx(e.minutes)}`,gue=(e,t)=>{const n=ba(e);if(!n)return"";const s=ba(t);if(!s)return"";const r={hours:n.hours,minutes:n.minutes};return r.minutes+=s.minutes,r.hours+=s.hours,r.hours+=Math.floor(r.minutes/60),r.minutes=r.minutes%60,yu(r)},vue=J({name:"ElTimeSelect"}),yue=J({...vue,props:mue,emits:["change","blur","focus","clear","update:modelValue"],setup(e,{expose:t}){const n=e;St.extend(h2);const{Option:s}=Ti,r=Re("input"),i=q(),a=Ls(),{lang:o}=zt(),l=k(()=>n.modelValue),u=k(()=>{const y=ba(n.start);return y?yu(y):null}),c=k(()=>{const y=ba(n.end);return y?yu(y):null}),f=k(()=>{const y=ba(n.step);return y?yu(y):null}),h=k(()=>{const y=ba(n.minTime||"");return y?yu(y):null}),m=k(()=>{const y=ba(n.maxTime||"");return y?yu(y):null}),g=k(()=>{const y=[];if(n.start&&n.end&&n.step){let _=u.value,b;for(;_&&c.value&&U0(_,c.value)<=0;)b=St(_,"HH:mm").locale(o.value).format(n.format),y.push({value:b,disabled:U0(_,h.value||"-1:-1")<=0||U0(_,m.value||"100:100")>=0}),_=gue(_,f.value)}return y});return t({blur:()=>{var y,_;(_=(y=i.value)==null?void 0:y.blur)==null||_.call(y)},focus:()=>{var y,_;(_=(y=i.value)==null?void 0:y.focus)==null||_.call(y)}}),(y,_)=>(x(),de(d(Ti),{ref_key:"select",ref:i,"model-value":d(l),disabled:d(a),clearable:y.clearable,"clear-icon":y.clearIcon,size:y.size,effect:y.effect,placeholder:y.placeholder,"default-first-option":"",filterable:y.editable,"empty-values":y.emptyValues,"value-on-clear":y.valueOnClear,"onUpdate:modelValue":b=>y.$emit("update:modelValue",b),onChange:b=>y.$emit("change",b),onBlur:b=>y.$emit("blur",b),onFocus:b=>y.$emit("focus",b),onClear:()=>y.$emit("clear")},{prefix:P(()=>[y.prefixIcon?(x(),de(d(tt),{key:0,class:M(d(r).e("prefix-icon"))},{default:P(()=>[(x(),de(Rt(y.prefixIcon)))]),_:1},8,["class"])):ae("v-if",!0)]),default:P(()=>[(x(!0),j(Ke,null,bt(d(g),b=>(x(),de(d(s),{key:b.value,label:b.value,value:b.value,disabled:b.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable","empty-values","value-on-clear","onUpdate:modelValue","onChange","onBlur","onFocus","onClear"]))}});var bue=Ue(yue,[["__file","time-select.vue"]]);const _ue=Tt(bue),wue=J({name:"ElTimeline",setup(e,{slots:t}){const n=Re("timeline");return Mt("timeline",t),()=>ot("ul",{class:[n.b()]},[fe(t,"default")])}}),Sue=Fe({timestamp:{type:String,default:""},hideTimestamp:Boolean,center:Boolean,placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:ln},hollow:Boolean}),Tue=J({name:"ElTimelineItem"}),Cue=J({...Tue,props:Sue,setup(e){const t=e,n=Re("timeline-item"),s=k(()=>[n.e("node"),n.em("node",t.size||""),n.em("node",t.type||""),n.is("hollow",t.hollow)]);return(r,i)=>(x(),j("li",{class:M([d(n).b(),{[d(n).e("center")]:r.center}])},[O("div",{class:M(d(n).e("tail"))},null,2),r.$slots.dot?ae("v-if",!0):(x(),j("div",{key:0,class:M(d(s)),style:st({backgroundColor:r.color})},[r.icon?(x(),de(d(tt),{key:0,class:M(d(n).e("icon"))},{default:P(()=>[(x(),de(Rt(r.icon)))]),_:1},8,["class"])):ae("v-if",!0)],6)),r.$slots.dot?(x(),j("div",{key:1,class:M(d(n).e("dot"))},[fe(r.$slots,"dot")],2)):ae("v-if",!0),O("div",{class:M(d(n).e("wrapper"))},[!r.hideTimestamp&&r.placement==="top"?(x(),j("div",{key:0,class:M([d(n).e("timestamp"),d(n).is("top")])},ce(r.timestamp),3)):ae("v-if",!0),O("div",{class:M(d(n).e("content"))},[fe(r.$slots,"default")],2),!r.hideTimestamp&&r.placement==="bottom"?(x(),j("div",{key:1,class:M([d(n).e("timestamp"),d(n).is("bottom")])},ce(r.timestamp),3)):ae("v-if",!0)],2)],2))}});var HO=Ue(Cue,[["__file","timeline-item.vue"]]);const Eue=Tt(wue,{TimelineItem:HO}),xue=kn(HO),zO=Fe({nowrap:Boolean});var jO=(e=>(e.top="top",e.bottom="bottom",e.left="left",e.right="right",e))(jO||{});const kue=Object.values(jO),K2=Fe({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:oe(Object),default:null}}),Aue=Fe({side:{type:oe(String),values:kue,required:!0}}),Iue=["absolute","fixed"],Due=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],G2=Fe({arrowPadding:{type:oe(Number),default:5},effect:{type:oe(String),default:"light"},contentClass:String,placement:{type:oe(String),values:Due,default:"bottom"},reference:{type:oe(Object),default:null},offset:{type:Number,default:8},strategy:{type:oe(String),values:Iue,default:"absolute"},showArrow:Boolean,..._s(["ariaLabel"])}),Y2=Fe({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:oe(Function)},"onUpdate:open":{type:oe(Function)}}),ou={type:oe(Function)},X2=Fe({onBlur:ou,onClick:ou,onFocus:ou,onMouseDown:ou,onMouseEnter:ou,onMouseLeave:ou}),Oue=Fe({...Y2,...K2,...X2,...G2,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:oe(Object),default:null},teleported:Boolean,to:{type:oe(String),default:"body"}}),iv=Symbol("tooltipV2"),qO=Symbol("tooltipV2Content"),H0="tooltip_v2.open",Pue=J({name:"ElTooltipV2Root"}),Rue=J({...Pue,props:Y2,setup(e,{expose:t}){const n=e,s=q(n.defaultOpen),r=q(null),i=k({get:()=>Pl(n.open)?s.value:n.open,set:v=>{var y;s.value=v,(y=n["onUpdate:open"])==null||y.call(n,v)}}),a=k(()=>ut(n.delayDuration)&&n.delayDuration>0),{start:o,stop:l}=Dl(()=>{i.value=!0},k(()=>n.delayDuration),{immediate:!1}),u=Re("tooltip-v2"),c=ys(),f=()=>{l(),i.value=!0},h=()=>{d(a)?o():f()},m=f,g=()=>{l(),i.value=!1};return xe(i,v=>{var y;v&&(document.dispatchEvent(new CustomEvent(H0)),m()),(y=n.onOpenChange)==null||y.call(n,v)}),gt(()=>{document.addEventListener(H0,g)}),un(()=>{l(),document.removeEventListener(H0,g)}),Mt(iv,{contentId:c,triggerRef:r,ns:u,onClose:g,onDelayOpen:h,onOpen:m}),t({onOpen:m,onClose:g}),(v,y)=>fe(v.$slots,"default",{open:d(i)})}});var Nue=Ue(Rue,[["__file","root.vue"]]);const Mue=J({name:"ElTooltipV2Arrow"}),$ue=J({...Mue,props:{...K2,...Aue},setup(e){const t=e,{ns:n}=Xe(iv),{arrowRef:s}=Xe(qO),r=k(()=>{const{style:i,width:a,height:o}=t,l=n.namespace.value;return{[`--${l}-tooltip-v2-arrow-width`]:`${a}px`,[`--${l}-tooltip-v2-arrow-height`]:`${o}px`,[`--${l}-tooltip-v2-arrow-border-width`]:`${a/2}px`,[`--${l}-tooltip-v2-arrow-cover-width`]:a/2-1,...i||{}}});return(i,a)=>(x(),j("span",{ref_key:"arrowRef",ref:s,style:st(d(r)),class:M(d(n).e("arrow"))},null,6))}});var Tx=Ue($ue,[["__file","arrow.vue"]]);const Lue=Fe({style:{type:oe([String,Object,Array]),default:()=>({})}}),Bue=J({name:"ElVisuallyHidden"}),Fue=J({...Bue,props:Lue,setup(e){const t=e,n=k(()=>[t.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(s,r)=>(x(),j("span",Nt(s.$attrs,{style:d(n)}),[fe(s.$slots,"default")],16))}});var Vue=Ue(Fue,[["__file","visual-hidden.vue"]]);const Uue=J({name:"ElTooltipV2Content"}),Hue=J({...Uue,props:{...G2,...zO},setup(e){const t=e,{triggerRef:n,contentId:s}=Xe(iv),r=q(t.placement),i=q(t.strategy),a=q(null),{referenceRef:o,contentRef:l,middlewareData:u,x:c,y:f,update:h}=RK({placement:r,strategy:i,middleware:k(()=>{const b=[LI(t.offset)];return t.showArrow&&b.push(NK({arrowRef:a})),b})}),m=Dc().nextZIndex(),g=Re("tooltip-v2"),p=k(()=>r.value.split("-")[0]),v=k(()=>({position:d(i),top:`${d(f)||0}px`,left:`${d(c)||0}px`,zIndex:m})),y=k(()=>{if(!t.showArrow)return{};const{arrow:b}=d(u);return{[`--${g.namespace.value}-tooltip-v2-arrow-x`]:`${b==null?void 0:b.x}px`||"",[`--${g.namespace.value}-tooltip-v2-arrow-y`]:`${b==null?void 0:b.y}px`||""}}),_=k(()=>[g.e("content"),g.is("dark",t.effect==="dark"),g.is(d(i)),t.contentClass]);return xe(a,()=>h()),xe(()=>t.placement,b=>r.value=b),gt(()=>{xe(()=>t.reference||n.value,b=>{o.value=b||void 0},{immediate:!0})}),Mt(qO,{arrowRef:a}),(b,T)=>(x(),j("div",{ref_key:"contentRef",ref:l,style:st(d(v)),"data-tooltip-v2-root":""},[b.nowrap?ae("v-if",!0):(x(),j("div",{key:0,"data-side":d(p),class:M(d(_))},[fe(b.$slots,"default",{contentStyle:d(v),contentClass:d(_)}),E(d(Vue),{id:d(s),role:"tooltip"},{default:P(()=>[b.ariaLabel?(x(),j(Ke,{key:0},[Te(ce(b.ariaLabel),1)],64)):fe(b.$slots,"default",{key:1})]),_:3},8,["id"]),fe(b.$slots,"arrow",{style:st(d(y)),side:d(p)})],10,["data-side"]))],4))}});var Cx=Ue(Hue,[["__file","content.vue"]]);const zue=Fe({setRef:{type:oe(Function),required:!0},onlyChild:Boolean});var jue=J({props:zue,setup(e,{slots:t}){const n=q(),s=Ug(n,r=>{r?e.setRef(r.nextElementSibling):e.setRef(null)});return()=>{var r;const[i]=((r=t.default)==null?void 0:r.call(t))||[],a=e.onlyChild?kq(i.children):i.children;return E(Ke,{ref:s},[a])}}});const que=J({name:"ElTooltipV2Trigger"}),Wue=J({...que,props:{...zO,...X2},setup(e){const t=e,{onClose:n,onOpen:s,onDelayOpen:r,triggerRef:i,contentId:a}=Xe(iv);let o=!1;const l=_=>{i.value=_},u=()=>{o=!1},c=On(t.onMouseEnter,r),f=On(t.onMouseLeave,n),h=On(t.onMouseDown,()=>{n(),o=!0,document.addEventListener("mouseup",u,{once:!0})}),m=On(t.onFocus,()=>{o||s()}),g=On(t.onBlur,n),p=On(t.onClick,_=>{_.detail===0&&n()}),v={blur:g,click:p,focus:m,mousedown:h,mouseenter:c,mouseleave:f},y=(_,b,T)=>{_&&Object.entries(b).forEach(([S,C])=>{_[T](S,C)})};return xe(i,(_,b)=>{y(_,v,"addEventListener"),y(b,v,"removeEventListener"),_&&_.setAttribute("aria-describedby",a.value)}),un(()=>{y(i.value,v,"removeEventListener"),document.removeEventListener("mouseup",u)}),(_,b)=>_.nowrap?(x(),de(d(jue),{key:0,"set-ref":l,"only-child":""},{default:P(()=>[fe(_.$slots,"default")]),_:3})):(x(),j("button",Nt({key:1,ref_key:"triggerRef",ref:i},_.$attrs),[fe(_.$slots,"default")],16))}});var Kue=Ue(Wue,[["__file","trigger.vue"]]);const Gue=J({name:"ElTooltipV2"}),Yue=J({...Gue,props:Oue,setup(e){const n=cs(e),s=Ct(hi(n,Object.keys(K2))),r=Ct(hi(n,Object.keys(G2))),i=Ct(hi(n,Object.keys(Y2))),a=Ct(hi(n,Object.keys(X2)));return(o,l)=>(x(),de(Nue,di(So(i)),{default:P(({open:u})=>[E(Kue,Nt(a,{nowrap:""}),{default:P(()=>[fe(o.$slots,"trigger")]),_:3},16),E(d(Rc),{to:o.to,disabled:!o.teleported},{default:P(()=>[o.fullTransition?(x(),de(Wn,di(Nt({key:0},o.transitionProps)),{default:P(()=>[o.alwaysOn||u?(x(),de(Cx,di(Nt({key:0},r)),{arrow:P(({style:c,side:f})=>[o.showArrow?(x(),de(Tx,Nt({key:0},s,{style:c,side:f}),null,16,["style","side"])):ae("v-if",!0)]),default:P(()=>[fe(o.$slots,"default")]),_:3},16)):ae("v-if",!0)]),_:2},1040)):(x(),j(Ke,{key:1},[o.alwaysOn||u?(x(),de(Cx,di(Nt({key:0},r)),{arrow:P(({style:c,side:f})=>[o.showArrow?(x(),de(Tx,Nt({key:0},s,{style:c,side:f}),null,16,["style","side"])):ae("v-if",!0)]),default:P(()=>[fe(o.$slots,"default")]),_:3},16)):ae("v-if",!0)],64))]),_:2},1032,["to","disabled"])]),_:3},16))}});var Xue=Ue(Yue,[["__file","tooltip.vue"]]);const Que=Tt(Xue),WO="left-check-change",KO="right-check-change",bu=Fe({data:{type:oe(Array),default:()=>[]},titles:{type:oe(Array),default:()=>[]},buttonTexts:{type:oe(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:oe(Function)},leftDefaultChecked:{type:oe(Array),default:()=>[]},rightDefaultChecked:{type:oe(Array),default:()=>[]},renderContent:{type:oe(Function)},modelValue:{type:oe(Array),default:()=>[]},format:{type:oe(Object),default:()=>({})},filterable:Boolean,props:{type:oe(Object),default:()=>xn({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),Bb=(e,t)=>[e,t].every(Ye)||Ye(e)&&rs(t),Jue={[gn]:(e,t,n)=>[e,n].every(Ye)&&["left","right"].includes(t),[At]:e=>Ye(e),[WO]:Bb,[KO]:Bb},Fb="checked-change",Zue=Fe({data:bu.data,optionRender:{type:oe(Function)},placeholder:String,title:String,filterable:Boolean,format:bu.format,filterMethod:bu.filterMethod,defaultChecked:bu.leftDefaultChecked,props:bu.props}),ece={[Fb]:Bb},Ch=e=>{const t={label:"label",key:"key",disabled:"disabled"};return k(()=>({...t,...e.props}))},tce=(e,t,n)=>{const s=Ch(e),r=k(()=>e.data.filter(c=>pt(e.filterMethod)?e.filterMethod(t.query,c):String(c[s.value.label]||c[s.value.key]).toLowerCase().includes(t.query.toLowerCase()))),i=k(()=>r.value.filter(c=>!c[s.value.disabled])),a=k(()=>{const c=t.checked.length,f=e.data.length,{noChecked:h,hasChecked:m}=e.format;return h&&m?c>0?m.replace(/\${checked}/g,c.toString()).replace(/\${total}/g,f.toString()):h.replace(/\${total}/g,f.toString()):`${c}/${f}`}),o=k(()=>{const c=t.checked.length;return c>0&&c<i.value.length}),l=()=>{const c=i.value.map(f=>f[s.value.key]);t.allChecked=c.length>0&&c.every(f=>t.checked.includes(f))},u=c=>{t.checked=c?i.value.map(f=>f[s.value.key]):[]};return xe(()=>t.checked,(c,f)=>{if(l(),t.checkChangeByUser){const h=c.concat(f).filter(m=>!c.includes(m)||!f.includes(m));n(Fb,c,h)}else n(Fb,c),t.checkChangeByUser=!0}),xe(i,()=>{l()}),xe(()=>e.data,()=>{const c=[],f=r.value.map(h=>h[s.value.key]);t.checked.forEach(h=>{f.includes(h)&&c.push(h)}),t.checkChangeByUser=!1,t.checked=c}),xe(()=>e.defaultChecked,(c,f)=>{if(f&&c.length===f.length&&c.every(g=>f.includes(g)))return;const h=[],m=i.value.map(g=>g[s.value.key]);c.forEach(g=>{m.includes(g)&&h.push(g)}),t.checkChangeByUser=!1,t.checked=h},{immediate:!0}),{filteredData:r,checkableData:i,checkedSummary:a,isIndeterminate:o,updateAllChecked:l,handleAllCheckedChange:u}},nce=(e,t)=>({onSourceCheckedChange:(r,i)=>{e.leftChecked=r,i&&t(WO,r,i)},onTargetCheckedChange:(r,i)=>{e.rightChecked=r,i&&t(KO,r,i)}}),sce=e=>{const t=Ch(e),n=k(()=>e.data.reduce((i,a)=>(i[a[t.value.key]]=a)&&i,{})),s=k(()=>e.data.filter(i=>!e.modelValue.includes(i[t.value.key]))),r=k(()=>e.targetOrder==="original"?e.data.filter(i=>e.modelValue.includes(i[t.value.key])):e.modelValue.reduce((i,a)=>{const o=n.value[a];return o&&i.push(o),i},[]));return{sourceData:s,targetData:r}},rce=(e,t,n)=>{const s=Ch(e),r=(o,l,u)=>{n(At,o),n(gn,o,l,u)};return{addToLeft:()=>{const o=e.modelValue.slice();t.rightChecked.forEach(l=>{const u=o.indexOf(l);u>-1&&o.splice(u,1)}),r(o,"left",t.rightChecked)},addToRight:()=>{let o=e.modelValue.slice();const l=e.data.filter(u=>{const c=u[s.value.key];return t.leftChecked.includes(c)&&!e.modelValue.includes(c)}).map(u=>u[s.value.key]);o=e.targetOrder==="unshift"?l.concat(o):o.concat(l),e.targetOrder==="original"&&(o=e.data.filter(u=>o.includes(u[s.value.key])).map(u=>u[s.value.key])),r(o,"right",t.leftChecked)}}},ice=J({name:"ElTransferPanel"}),ace=J({...ice,props:Zue,emits:ece,setup(e,{expose:t,emit:n}){const s=e,r=os(),i=({option:b})=>b,{t:a}=zt(),o=Re("transfer"),l=Ct({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),u=Ch(s),{filteredData:c,checkedSummary:f,isIndeterminate:h,handleAllCheckedChange:m}=tce(s,l,n),g=k(()=>!Cr(l.query)&&Cr(c.value)),p=k(()=>!Cr(r.default()[0].children)),{checked:v,allChecked:y,query:_}=cs(l);return t({query:_}),(b,T)=>(x(),j("div",{class:M(d(o).b("panel"))},[O("p",{class:M(d(o).be("panel","header"))},[E(d(Jr),{modelValue:d(y),"onUpdate:modelValue":S=>yn(y)?y.value=S:null,indeterminate:d(h),"validate-event":!1,onChange:d(m)},{default:P(()=>[Te(ce(b.title)+" ",1),O("span",null,ce(d(f)),1)]),_:1},8,["modelValue","onUpdate:modelValue","indeterminate","onChange"])],2),O("div",{class:M([d(o).be("panel","body"),d(o).is("with-footer",d(p))])},[b.filterable?(x(),de(d(Un),{key:0,modelValue:d(_),"onUpdate:modelValue":S=>yn(_)?_.value=S:null,class:M(d(o).be("panel","filter")),size:"default",placeholder:b.placeholder,"prefix-icon":d(kf),clearable:"","validate-event":!1},null,8,["modelValue","onUpdate:modelValue","class","placeholder","prefix-icon"])):ae("v-if",!0),yt(E(d(jD),{modelValue:d(v),"onUpdate:modelValue":S=>yn(v)?v.value=S:null,"validate-event":!1,class:M([d(o).is("filterable",b.filterable),d(o).be("panel","list")])},{default:P(()=>[(x(!0),j(Ke,null,bt(d(c),S=>(x(),de(d(Jr),{key:S[d(u).key],class:M(d(o).be("panel","item")),value:S[d(u).key],disabled:S[d(u).disabled],"validate-event":!1},{default:P(()=>{var C;return[E(i,{option:(C=b.optionRender)==null?void 0:C.call(b,S)},null,8,["option"])]}),_:2},1032,["class","value","disabled"]))),128))]),_:1},8,["modelValue","onUpdate:modelValue","class"]),[[Bt,!d(g)&&!d(Cr)(b.data)]]),yt(O("p",{class:M(d(o).be("panel","empty"))},ce(d(g)?d(a)("el.transfer.noMatch"):d(a)("el.transfer.noData")),3),[[Bt,d(g)||d(Cr)(b.data)]])],2),d(p)?(x(),j("p",{key:0,class:M(d(o).be("panel","footer"))},[fe(b.$slots,"default")],2)):ae("v-if",!0)],2))}});var Ex=Ue(ace,[["__file","transfer-panel.vue"]]);const oce=J({name:"ElTransfer"}),lce=J({...oce,props:bu,emits:Jue,setup(e,{expose:t,emit:n}){const s=e,r=os(),{t:i}=zt(),a=Re("transfer"),{formItem:o}=Bs(),l=Ct({leftChecked:[],rightChecked:[]}),u=Ch(s),{sourceData:c,targetData:f}=sce(s),{onSourceCheckedChange:h,onTargetCheckedChange:m}=nce(l,n),{addToLeft:g,addToRight:p}=rce(s,l,n),v=q(),y=q(),_=N=>{switch(N){case"left":v.value.query="";break;case"right":y.value.query="";break}},b=k(()=>s.buttonTexts.length===2),T=k(()=>s.titles[0]||i("el.transfer.titles.0")),S=k(()=>s.titles[1]||i("el.transfer.titles.1")),C=k(()=>s.filterPlaceholder||i("el.transfer.filterPlaceholder"));xe(()=>s.modelValue,()=>{var N;s.validateEvent&&((N=o==null?void 0:o.validate)==null||N.call(o,"change").catch($=>void 0))});const D=k(()=>N=>{var $;if(s.renderContent)return s.renderContent(ot,N);const L=((($=r.default)==null?void 0:$.call(r,{option:N}))||[]).filter(z=>z.type!==ps);return L.length?L:ot("span",N[u.value.label]||N[u.value.key])});return t({clearQuery:_,leftPanel:v,rightPanel:y}),(N,$)=>(x(),j("div",{class:M(d(a).b())},[E(Ex,{ref_key:"leftPanel",ref:v,data:d(c),"option-render":d(D),placeholder:d(C),title:d(T),filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,"default-checked":N.leftDefaultChecked,props:s.props,onCheckedChange:d(h)},{default:P(()=>[fe(N.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),O("div",{class:M(d(a).e("buttons"))},[E(d(mn),{type:"primary",class:M([d(a).e("button"),d(a).is("with-texts",d(b))]),disabled:d(Cr)(l.rightChecked),onClick:d(g)},{default:P(()=>[E(d(tt),null,{default:P(()=>[E(d(ko))]),_:1}),d(An)(N.buttonTexts[0])?ae("v-if",!0):(x(),j("span",{key:0},ce(N.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),E(d(mn),{type:"primary",class:M([d(a).e("button"),d(a).is("with-texts",d(b))]),disabled:d(Cr)(l.leftChecked),onClick:d(p)},{default:P(()=>[d(An)(N.buttonTexts[1])?ae("v-if",!0):(x(),j("span",{key:0},ce(N.buttonTexts[1]),1)),E(d(tt),null,{default:P(()=>[E(d(Gs))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),E(Ex,{ref_key:"rightPanel",ref:y,data:d(f),"option-render":d(D),placeholder:d(C),filterable:N.filterable,format:N.format,"filter-method":N.filterMethod,title:d(S),"default-checked":N.rightDefaultChecked,props:s.props,onCheckedChange:d(m)},{default:P(()=>[fe(N.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var uce=Ue(lce,[["__file","transfer.vue"]]);const cce=Tt(uce),$u="$treeNodeId",xx=function(e,t){!t||t[$u]||Object.defineProperty(t,$u,{value:e.id,enumerable:!1,configurable:!1,writable:!1})},Q2=function(e,t){return e?t[e]:t[$u]},Vb=(e,t,n)=>{const s=e.value.currentNode;n();const r=e.value.currentNode;s!==r&&t("current-change",r?r.data:null,r)},Ub=e=>{let t=!0,n=!0,s=!0;for(let r=0,i=e.length;r<i;r++){const a=e[r];(a.checked!==!0||a.indeterminate)&&(t=!1,a.disabled||(s=!1)),(a.checked!==!1||a.indeterminate)&&(n=!1)}return{all:t,none:n,allWithoutDisable:s,half:!t&&!n}},Pd=function(e){if(e.childNodes.length===0||e.loading)return;const{all:t,none:n,half:s}=Ub(e.childNodes);t?(e.checked=!0,e.indeterminate=!1):s?(e.checked=!1,e.indeterminate=!0):n&&(e.checked=!1,e.indeterminate=!1);const r=e.parent;!r||r.level===0||e.store.checkStrictly||Pd(r)},kp=function(e,t){const n=e.store.props,s=e.data||{},r=n[t];if(typeof r=="function")return r(s,e);if(typeof r=="string")return s[r];if(typeof r>"u"){const i=s[t];return i===void 0?"":i}};let dce=0,Hb=class tm{constructor(t){this.id=dce++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in t)jt(t,n)&&(this[n]=t[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const t=this.store;if(!t)throw new Error("[Node]store is required!");t.registerNode(this);const n=t.props;if(n&&typeof n.isLeaf<"u"){const i=kp(this,"isLeaf");typeof i=="boolean"&&(this.isLeafByUser=i)}if(t.lazy!==!0&&this.data?(this.setData(this.data),t.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&t.lazy&&t.defaultExpandAll&&!this.isLeafByUser&&this.expand(),Array.isArray(this.data)||xx(this,this.data),!this.data)return;const s=t.defaultExpandedKeys,r=t.key;r&&s&&s.includes(this.key)&&this.expand(null,t.autoExpandParent),r&&t.currentNodeKey!==void 0&&this.key===t.currentNodeKey&&(t.currentNode=this,t.currentNode.isCurrent=!0),t.lazy&&t._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(t){Array.isArray(t)||xx(this,t),this.data=t,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=kp(this,"children")||[];for(let s=0,r=n.length;s<r;s++)this.insertChild({data:n[s]})}get label(){return kp(this,"label")}get key(){const t=this.store.key;return this.data?this.data[t]:null}get disabled(){return kp(this,"disabled")}get nextSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return t.childNodes[n+1]}return null}get previousSibling(){const t=this.parent;if(t){const n=t.childNodes.indexOf(this);if(n>-1)return n>0?t.childNodes[n-1]:null}return null}contains(t,n=!0){return(this.childNodes||[]).some(s=>s===t||n&&s.contains(t))}remove(){const t=this.parent;t&&t.removeChild(this)}insertChild(t,n,s){if(!t)throw new Error("InsertChild error: child is required.");if(!(t instanceof tm)){if(!s){const r=this.getChildren(!0);r.includes(t.data)||(typeof n>"u"||n<0?r.push(t.data):r.splice(n,0,t.data))}Object.assign(t,{parent:this,store:this.store}),t=Ct(new tm(t)),t instanceof tm&&t.initialize()}t.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(t):this.childNodes.splice(n,0,t),this.updateLeafState()}insertBefore(t,n){let s;n&&(s=this.childNodes.indexOf(n)),this.insertChild(t,s)}insertAfter(t,n){let s;n&&(s=this.childNodes.indexOf(n),s!==-1&&(s+=1)),this.insertChild(t,s)}removeChild(t){const n=this.getChildren()||[],s=n.indexOf(t.data);s>-1&&n.splice(s,1);const r=this.childNodes.indexOf(t);r>-1&&(this.store&&this.store.deregisterNode(t),t.parent=null,this.childNodes.splice(r,1)),this.updateLeafState()}removeChildByData(t){let n=null;for(let s=0;s<this.childNodes.length;s++)if(this.childNodes[s].data===t){n=this.childNodes[s];break}n&&this.removeChild(n)}expand(t,n){const s=()=>{if(n){let r=this.parent;for(;r.level>0;)r.expanded=!0,r=r.parent}this.expanded=!0,t&&t(),this.childNodes.forEach(r=>{r.canFocus=!0})};this.shouldLoadData()?this.loadData(r=>{Array.isArray(r)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||Pd(this),s())}):s()}doCreateChildren(t,n={}){t.forEach(s=>{this.insertChild(Object.assign({data:s},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(t=>{t.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const t=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!t||t.length===0;return}this.isLeaf=!1}setChecked(t,n,s,r){if(this.indeterminate=t==="half",this.checked=t===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:o}=Ub(this.childNodes);!this.isLeaf&&!a&&o&&(this.checked=!1,t=!1);const l=()=>{if(n){const u=this.childNodes;for(let h=0,m=u.length;h<m;h++){const g=u[h];r=r||t!==!1;const p=g.disabled?g.checked:r;g.setChecked(p,n,!0,r)}const{half:c,all:f}=Ub(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),Pd(this)},{checked:t!==!1});return}else l()}const i=this.parent;!i||i.level===0||s||Pd(i)}getChildren(t=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const s=this.store.props;let r="children";return s&&(r=s.children||"children"),n[r]===void 0&&(n[r]=null),t&&!n[r]&&(n[r]=[]),n[r]}updateChildren(){const t=this.getChildren()||[],n=this.childNodes.map(i=>i.data),s={},r=[];t.forEach((i,a)=>{const o=i[$u];!!o&&n.findIndex(u=>u[$u]===o)>=0?s[o]={index:a,data:i}:r.push({index:a,data:i})}),this.store.lazy||n.forEach(i=>{s[i[$u]]||this.removeChildByData(i)}),r.forEach(({index:i,data:a})=>{this.insertChild({data:a},i)}),this.updateLeafState()}loadData(t,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const s=i=>{this.childNodes=[],this.doCreateChildren(i,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),t&&t.call(this,i)},r=()=>{this.loading=!1};this.store.load(this,s,r)}else t&&t.call(this)}eachNode(t){const n=[this];for(;n.length;){const s=n.shift();n.unshift(...s.childNodes),t(s)}}reInitChecked(){this.store.checkStrictly||Pd(this)}};class fce{constructor(t){this.currentNode=null,this.currentNodeKey=null;for(const n in t)jt(t,n)&&(this[n]=t[n]);this.nodesMap={}}initialize(){if(this.root=new Hb({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const t=this.load;t(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(t){const n=this.filterNodeMethod,s=this.lazy,r=function(i){const a=i.root?i.root.childNodes:i.childNodes;if(a.forEach(o=>{o.visible=n.call(o,t,o.data,o),r(o)}),!i.visible&&a.length){let o=!0;o=!a.some(l=>l.visible),i.root?i.root.visible=o===!1:i.visible=o===!1}t&&i.visible&&!i.isLeaf&&(!s||i.loaded)&&i.expand()};r(this)}setData(t){t!==this.root.data?(this.nodesMap={},this.root.setData(t),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(t){if(t instanceof Hb)return t;const n=Pt(t)?Q2(this.key,t):t;return this.nodesMap[n]||null}insertBefore(t,n){const s=this.getNode(n);s.parent.insertBefore({data:t},s)}insertAfter(t,n){const s=this.getNode(n);s.parent.insertAfter({data:t},s)}remove(t){const n=this.getNode(t);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(t,n){const s=Pl(n)?this.root:this.getNode(n);s&&s.insertChild({data:t})}_initDefaultCheckedNodes(){const t=this.defaultCheckedKeys||[],n=this.nodesMap;t.forEach(s=>{const r=n[s];r&&r.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(t){(this.defaultCheckedKeys||[]).includes(t.key)&&t.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(t){t!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=t,this._initDefaultCheckedNodes())}registerNode(t){const n=this.key;!t||!t.data||(n?t.key!==void 0&&(this.nodesMap[t.key]=t):this.nodesMap[t.id]=t)}deregisterNode(t){!this.key||!t||!t.data||(t.childNodes.forEach(s=>{this.deregisterNode(s)}),delete this.nodesMap[t.key])}getCheckedNodes(t=!1,n=!1){const s=[],r=function(i){(i.root?i.root.childNodes:i.childNodes).forEach(o=>{(o.checked||n&&o.indeterminate)&&(!t||t&&o.isLeaf)&&s.push(o.data),r(o)})};return r(this),s}getCheckedKeys(t=!1){return this.getCheckedNodes(t).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const t=[],n=function(s){(s.root?s.root.childNodes:s.childNodes).forEach(i=>{i.indeterminate&&t.push(i.data),n(i)})};return n(this),t}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(t=>(t||{})[this.key])}_getAllNodes(){const t=[],n=this.nodesMap;for(const s in n)jt(n,s)&&t.push(n[s]);return t}updateChildren(t,n){const s=this.nodesMap[t];if(!s)return;const r=s.childNodes;for(let i=r.length-1;i>=0;i--){const a=r[i];this.remove(a.data)}for(let i=0,a=n.length;i<a;i++){const o=n[i];this.append(o,s.data)}}_setCheckedKeys(t,n=!1,s){const r=this._getAllNodes().sort((l,u)=>l.level-u.level),i=Object.create(null),a=Object.keys(s);r.forEach(l=>l.setChecked(!1,!1));const o=l=>{l.childNodes.forEach(u=>{var c;i[u.data[t]]=!0,(c=u.childNodes)!=null&&c.length&&o(u)})};for(let l=0,u=r.length;l<u;l++){const c=r[l],f=c.data[t].toString();if(!a.includes(f)){c.checked&&!i[f]&&c.setChecked(!1,!1);continue}if(c.childNodes.length&&o(c),c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const m=function(g){g.childNodes.forEach(v=>{v.isLeaf||v.setChecked(!1,!1),m(v)})};m(c)}}}setCheckedNodes(t,n=!1){const s=this.key,r={};t.forEach(i=>{r[(i||{})[s]]=!0}),this._setCheckedKeys(s,n,r)}setCheckedKeys(t,n=!1){this.defaultCheckedKeys=t;const s=this.key,r={};t.forEach(i=>{r[i]=!0}),this._setCheckedKeys(s,n,r)}setDefaultExpandedKeys(t){t=t||[],this.defaultExpandedKeys=t,t.forEach(n=>{const s=this.getNode(n);s&&s.expand(null,this.autoExpandParent)})}setChecked(t,n,s){const r=this.getNode(t);r&&r.setChecked(!!n,s)}getCurrentNode(){return this.currentNode}setCurrentNode(t){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=t,this.currentNode.isCurrent=!0}setUserCurrentNode(t,n=!0){const s=t[this.key],r=this.nodesMap[s];this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(t,n=!0){if(t==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const s=this.getNode(t);s&&(this.setCurrentNode(s),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const hce=J({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(e){const t=Re("tree"),n=Xe("NodeInstance"),s=Xe("RootTree");return()=>{const r=e.node,{data:i,store:a}=r;return e.renderContent?e.renderContent(ot,{_self:n,node:r,data:i,store:a}):fe(s.ctx.slots,"default",{node:r,data:i},()=>[ot("span",{class:t.be("node","label")},[r.label])])}}});var pce=Ue(hce,[["__file","tree-node-content.vue"]]);function GO(e){const t=Xe("TreeNodeMap",null),n={treeNodeExpand:s=>{e.node!==s&&e.node.collapse()},children:[]};return t&&t.children.push(n),Mt("TreeNodeMap",n),{broadcastExpanded:s=>{if(e.accordion)for(const r of n.children)r.treeNodeExpand(s)}}}const YO=Symbol("dragEvents");function mce({props:e,ctx:t,el$:n,dropIndicator$:s,store:r}){const i=Re("tree"),a=q({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return Mt(YO,{treeNodeDragStart:({event:c,treeNode:f})=>{if(typeof e.allowDrag=="function"&&!e.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=f,t.emit("node-drag-start",f.node,c)},treeNodeDragOver:({event:c,treeNode:f})=>{const h=f,m=a.value.dropNode;m&&m.node.id!==h.node.id&&Rs(m.$el,i.is("drop-inner"));const g=a.value.draggingNode;if(!g||!h)return;let p=!0,v=!0,y=!0,_=!0;typeof e.allowDrop=="function"&&(p=e.allowDrop(g.node,h.node,"prev"),_=v=e.allowDrop(g.node,h.node,"inner"),y=e.allowDrop(g.node,h.node,"next")),c.dataTransfer.dropEffect=v||p||y?"move":"none",(p||v||y)&&(m==null?void 0:m.node.id)!==h.node.id&&(m&&t.emit("node-drag-leave",g.node,m.node,c),t.emit("node-drag-enter",g.node,h.node,c)),p||v||y?a.value.dropNode=h:a.value.dropNode=null,h.node.nextSibling===g.node&&(y=!1),h.node.previousSibling===g.node&&(p=!1),h.node.contains(g.node,!1)&&(v=!1),(g.node===h.node||g.node.contains(h.node))&&(p=!1,v=!1,y=!1);const b=h.$el.querySelector(`.${i.be("node","content")}`).getBoundingClientRect(),T=n.value.getBoundingClientRect();let S;const C=p?v?.25:y?.45:1:-1,D=y?v?.75:p?.55:0:1;let N=-9999;const $=c.clientY-b.top;$<b.height*C?S="before":$>b.height*D?S="after":v?S="inner":S="none";const L=h.$el.querySelector(`.${i.be("node","expand-icon")}`).getBoundingClientRect(),z=s.value;S==="before"?N=L.top-T.top:S==="after"&&(N=L.bottom-T.top),z.style.top=`${N}px`,z.style.left=`${L.right-T.left}px`,S==="inner"?Vr(h.$el,i.is("drop-inner")):Rs(h.$el,i.is("drop-inner")),a.value.showDropIndicator=S==="before"||S==="after",a.value.allowDrop=a.value.showDropIndicator||_,a.value.dropType=S,t.emit("node-drag-over",g.node,h.node,c)},treeNodeDragEnd:c=>{const{draggingNode:f,dropType:h,dropNode:m}=a.value;if(c.preventDefault(),c.dataTransfer&&(c.dataTransfer.dropEffect="move"),f&&m){const g={data:f.node.data};h!=="none"&&f.node.remove(),h==="before"?m.node.parent.insertBefore(g,m.node):h==="after"?m.node.parent.insertAfter(g,m.node):h==="inner"&&m.node.insertChild(g),h!=="none"&&(r.value.registerNode(g),r.value.key&&f.node.eachNode(p=>{var v;(v=r.value.nodesMap[p.data[r.value.key]])==null||v.setChecked(p.checked,!r.value.checkStrictly)})),Rs(m.$el,i.is("drop-inner")),t.emit("node-drag-end",f.node,m.node,h,c),h!=="none"&&t.emit("node-drop",f.node,m.node,h,c)}f&&!m&&t.emit("node-drag-end",f.node,null,h,c),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0}}),{dragState:a}}const gce=J({name:"ElTreeNode",components:{ElCollapseTransition:bh,ElCheckbox:Jr,NodeContent:pce,ElIcon:tt,Loading:Gi},props:{node:{type:Hb,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(e,t){const n=Re("tree"),{broadcastExpanded:s}=GO(e),r=Xe("RootTree"),i=q(!1),a=q(!1),o=q(null),l=q(null),u=q(null),c=Xe(YO),f=Ot();Mt("NodeInstance",f),e.node.expanded&&(i.value=!0,a.value=!0);const h=r.props.props.children||"children";xe(()=>{const $=e.node.data[h];return $&&[...$]},()=>{e.node.updateChildren()}),xe(()=>e.node.indeterminate,$=>{p(e.node.checked,$)}),xe(()=>e.node.checked,$=>{p($,e.node.indeterminate)}),xe(()=>e.node.childNodes.length,()=>e.node.reInitChecked()),xe(()=>e.node.expanded,$=>{it(()=>i.value=$),$&&(a.value=!0)});const m=$=>Q2(r.props.nodeKey,$.data),g=$=>{const L=e.props.class;if(!L)return{};let z;if(pt(L)){const{data:U}=$;z=L(U,$)}else z=L;return ht(z)?{[z]:!0}:z},p=($,L)=>{(o.value!==$||l.value!==L)&&r.ctx.emit("check-change",e.node.data,$,L),o.value=$,l.value=L},v=$=>{Vb(r.store,r.ctx.emit,()=>r.store.value.setCurrentNode(e.node)),r.currentNode.value=e.node,r.props.expandOnClickNode&&_(),r.props.checkOnClickNode&&!e.node.disabled&&b(null,{target:{checked:!e.node.checked}}),r.ctx.emit("node-click",e.node.data,e.node,f,$)},y=$=>{r.instance.vnode.props.onNodeContextmenu&&($.stopPropagation(),$.preventDefault()),r.ctx.emit("node-contextmenu",$,e.node.data,e.node,f)},_=()=>{e.node.isLeaf||(i.value?(r.ctx.emit("node-collapse",e.node.data,e.node,f),e.node.collapse()):e.node.expand(()=>{t.emit("node-expand",e.node.data,e.node,f)}))},b=($,L)=>{e.node.setChecked(L.target.checked,!r.props.checkStrictly),it(()=>{const z=r.store.value;r.ctx.emit("check",e.node.data,{checkedNodes:z.getCheckedNodes(),checkedKeys:z.getCheckedKeys(),halfCheckedNodes:z.getHalfCheckedNodes(),halfCheckedKeys:z.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:r,expanded:i,childNodeRendered:a,oldChecked:o,oldIndeterminate:l,getNodeKey:m,getNodeClass:g,handleSelectChange:p,handleClick:v,handleContextMenu:y,handleExpandIconClick:_,handleCheckChange:b,handleChildNodeExpand:($,L,z)=>{s(L),r.ctx.emit("node-expand",$,L,z)},handleDragStart:$=>{r.props.draggable&&c.treeNodeDragStart({event:$,treeNode:e})},handleDragOver:$=>{$.preventDefault(),r.props.draggable&&c.treeNodeDragOver({event:$,treeNode:{$el:u.value,node:e.node}})},handleDrop:$=>{$.preventDefault()},handleDragEnd:$=>{r.props.draggable&&c.treeNodeDragEnd($)},CaretRight:Fg}}});function vce(e,t,n,s,r,i){const a=Dt("el-icon"),o=Dt("el-checkbox"),l=Dt("loading"),u=Dt("node-content"),c=Dt("el-tree-node"),f=Dt("el-collapse-transition");return yt((x(),j("div",{ref:"node$",class:M([e.ns.b("node"),e.ns.is("expanded",e.expanded),e.ns.is("current",e.node.isCurrent),e.ns.is("hidden",!e.node.visible),e.ns.is("focusable",!e.node.disabled),e.ns.is("checked",!e.node.disabled&&e.node.checked),e.getNodeClass(e.node)]),role:"treeitem",tabindex:"-1","aria-expanded":e.expanded,"aria-disabled":e.node.disabled,"aria-checked":e.node.checked,draggable:e.tree.props.draggable,"data-key":e.getNodeKey(e.node),onClick:ft(e.handleClick,["stop"]),onContextmenu:e.handleContextMenu,onDragstart:ft(e.handleDragStart,["stop"]),onDragover:ft(e.handleDragOver,["stop"]),onDragend:ft(e.handleDragEnd,["stop"]),onDrop:ft(e.handleDrop,["stop"])},[O("div",{class:M(e.ns.be("node","content")),style:st({paddingLeft:(e.node.level-1)*e.tree.props.indent+"px"})},[e.tree.props.icon||e.CaretRight?(x(),de(a,{key:0,class:M([e.ns.be("node","expand-icon"),e.ns.is("leaf",e.node.isLeaf),{expanded:!e.node.isLeaf&&e.expanded}]),onClick:ft(e.handleExpandIconClick,["stop"])},{default:P(()=>[(x(),de(Rt(e.tree.props.icon||e.CaretRight)))]),_:1},8,["class","onClick"])):ae("v-if",!0),e.showCheckbox?(x(),de(o,{key:1,"model-value":e.node.checked,indeterminate:e.node.indeterminate,disabled:!!e.node.disabled,onClick:ft(()=>{},["stop"]),onChange:e.handleCheckChange},null,8,["model-value","indeterminate","disabled","onClick","onChange"])):ae("v-if",!0),e.node.loading?(x(),de(a,{key:2,class:M([e.ns.be("node","loading-icon"),e.ns.is("loading")])},{default:P(()=>[E(l)]),_:1},8,["class"])):ae("v-if",!0),E(u,{node:e.node,"render-content":e.renderContent},null,8,["node","render-content"])],6),E(f,null,{default:P(()=>[!e.renderAfterExpand||e.childNodeRendered?yt((x(),j("div",{key:0,class:M(e.ns.be("node","children")),role:"group","aria-expanded":e.expanded},[(x(!0),j(Ke,null,bt(e.node.childNodes,h=>(x(),de(c,{key:e.getNodeKey(h),"render-content":e.renderContent,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,node:h,accordion:e.accordion,props:e.props,onNodeExpand:e.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,["aria-expanded"])),[[Bt,e.expanded]]):ae("v-if",!0)]),_:1})],42,["aria-expanded","aria-disabled","aria-checked","draggable","data-key","onClick","onContextmenu","onDragstart","onDragover","onDragend","onDrop"])),[[Bt,e.node.visible]])}var yce=Ue(gce,[["render",vce],["__file","tree-node.vue"]]);function bce({el$:e},t){const n=Re("tree"),s=hn([]),r=hn([]);gt(()=>{a()}),Na(()=>{s.value=Array.from(e.value.querySelectorAll("[role=treeitem]")),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"))}),xe(r,o=>{o.forEach(l=>{l.setAttribute("tabindex","-1")})}),an(e,"keydown",o=>{const l=o.target;if(!l.className.includes(n.b("node")))return;const u=o.code;s.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=s.value.indexOf(l);let f;if([at.up,at.down].includes(u)){if(o.preventDefault(),u===at.up){f=c===-1?0:c!==0?c-1:s.value.length-1;const m=f;for(;!t.value.getNode(s.value[f].dataset.key).canFocus;){if(f--,f===m){f=-1;break}f<0&&(f=s.value.length-1)}}else{f=c===-1?0:c<s.value.length-1?c+1:0;const m=f;for(;!t.value.getNode(s.value[f].dataset.key).canFocus;){if(f++,f===m){f=-1;break}f>=s.value.length&&(f=0)}}f!==-1&&s.value[f].focus()}[at.left,at.right].includes(u)&&(o.preventDefault(),l.click());const h=l.querySelector('[type="checkbox"]');[at.enter,at.space].includes(u)&&h&&(o.preventDefault(),h.click())});const a=()=>{var o;s.value=Array.from(e.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),r.value=Array.from(e.value.querySelectorAll("input[type=checkbox]"));const l=e.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(o=s.value[0])==null||o.setAttribute("tabindex","0")}}const _ce=J({name:"ElTree",components:{ElTreeNode:yce},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:ln}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(e,t){const{t:n}=zt(),s=Re("tree"),r=Xe(Lc,null),i=q(new fce({key:e.nodeKey,data:e.data,lazy:e.lazy,props:e.props,load:e.load,currentNodeKey:e.currentNodeKey,checkStrictly:e.checkStrictly,checkDescendants:e.checkDescendants,defaultCheckedKeys:e.defaultCheckedKeys,defaultExpandedKeys:e.defaultExpandedKeys,autoExpandParent:e.autoExpandParent,defaultExpandAll:e.defaultExpandAll,filterNodeMethod:e.filterNodeMethod}));i.value.initialize();const a=q(i.value.root),o=q(null),l=q(null),u=q(null),{broadcastExpanded:c}=GO(e),{dragState:f}=mce({props:e,ctx:t,el$:l,dropIndicator$:u,store:i});bce({el$:l},i);const h=k(()=>{const{childNodes:Y}=a.value,F=r?r.hasFilteredOptions!==0:!1;return(!Y||Y.length===0||Y.every(({visible:H})=>!H))&&!F});xe(()=>e.currentNodeKey,Y=>{i.value.setCurrentNodeKey(Y)}),xe(()=>e.defaultCheckedKeys,Y=>{i.value.setDefaultCheckedKey(Y)}),xe(()=>e.defaultExpandedKeys,Y=>{i.value.setDefaultExpandedKeys(Y)}),xe(()=>e.data,Y=>{i.value.setData(Y)},{deep:!0}),xe(()=>e.checkStrictly,Y=>{i.value.checkStrictly=Y});const m=Y=>{if(!e.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");i.value.filter(Y)},g=Y=>Q2(e.nodeKey,Y.data),p=Y=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const F=i.value.getNode(Y);if(!F)return[];const H=[F.data];let Z=F.parent;for(;Z&&Z!==a.value;)H.push(Z.data),Z=Z.parent;return H.reverse()},v=(Y,F)=>i.value.getCheckedNodes(Y,F),y=Y=>i.value.getCheckedKeys(Y),_=()=>{const Y=i.value.getCurrentNode();return Y?Y.data:null},b=()=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const Y=_();return Y?Y[e.nodeKey]:null},T=(Y,F)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");i.value.setCheckedNodes(Y,F)},S=(Y,F)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");i.value.setCheckedKeys(Y,F)},C=(Y,F,H)=>{i.value.setChecked(Y,F,H)},D=()=>i.value.getHalfCheckedNodes(),N=()=>i.value.getHalfCheckedKeys(),$=(Y,F=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");Vb(i,t.emit,()=>{c(Y),i.value.setUserCurrentNode(Y,F)})},L=(Y,F=!0)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");Vb(i,t.emit,()=>{c(),i.value.setCurrentNodeKey(Y,F)})},z=Y=>i.value.getNode(Y),U=Y=>{i.value.remove(Y)},W=(Y,F)=>{i.value.append(Y,F)},K=(Y,F)=>{i.value.insertBefore(Y,F)},X=(Y,F)=>{i.value.insertAfter(Y,F)},B=(Y,F,H)=>{c(F),t.emit("node-expand",Y,F,H)},Q=(Y,F)=>{if(!e.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");i.value.updateChildren(Y,F)};return Mt("RootTree",{ctx:t,props:e,store:i,root:a,currentNode:o,instance:Ot()}),Mt(Qi,void 0),{ns:s,store:i,root:a,currentNode:o,dragState:f,el$:l,dropIndicator$:u,isEmpty:h,filter:m,getNodeKey:g,getNodePath:p,getCheckedNodes:v,getCheckedKeys:y,getCurrentNode:_,getCurrentKey:b,setCheckedNodes:T,setCheckedKeys:S,setChecked:C,getHalfCheckedNodes:D,getHalfCheckedKeys:N,setCurrentNode:$,setCurrentKey:L,t:n,getNode:z,remove:U,append:W,insertBefore:K,insertAfter:X,handleNodeExpand:B,updateKeyChildren:Q}}});function wce(e,t,n,s,r,i){const a=Dt("el-tree-node");return x(),j("div",{ref:"el$",class:M([e.ns.b(),e.ns.is("dragging",!!e.dragState.draggingNode),e.ns.is("drop-not-allow",!e.dragState.allowDrop),e.ns.is("drop-inner",e.dragState.dropType==="inner"),{[e.ns.m("highlight-current")]:e.highlightCurrent}]),role:"tree"},[(x(!0),j(Ke,null,bt(e.root.childNodes,o=>(x(),de(a,{key:e.getNodeKey(o),node:o,props:e.props,accordion:e.accordion,"render-after-expand":e.renderAfterExpand,"show-checkbox":e.showCheckbox,"render-content":e.renderContent,onNodeExpand:e.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),e.isEmpty?(x(),j("div",{key:0,class:M(e.ns.e("empty-block"))},[fe(e.$slots,"empty",{},()=>{var o;return[O("span",{class:M(e.ns.e("empty-text"))},ce((o=e.emptyText)!=null?o:e.t("el.tree.emptyText")),3)]})],2)):ae("v-if",!0),yt(O("div",{ref:"dropIndicator$",class:M(e.ns.e("drop-indicator"))},null,2),[[Bt,e.dragState.showDropIndicator]])],2)}var Sce=Ue(_ce,[["render",wce],["__file","tree.vue"]]);const Hm=Tt(Sce),Tce=(e,{attrs:t,emit:n},{select:s,tree:r,key:i})=>{const a=Re("tree-select");return xe(()=>e.data,()=>{e.filterable&&it(()=>{var l,u;(u=r.value)==null||u.filter((l=s.value)==null?void 0:l.states.inputValue)})},{flush:"post"}),{...hi(cs(e),Object.keys(Ti.props)),...t,"onUpdate:modelValue":l=>n(At,l),valueKey:i,popperClass:k(()=>{const l=[a.e("popper")];return e.popperClass&&l.push(e.popperClass),l.join(" ")}),filterMethod:(l="")=>{var u;e.filterMethod?e.filterMethod(l):e.remoteMethod?e.remoteMethod(l):(u=r.value)==null||u.filter(l)}}},Cce=J({extends:Ro,setup(e,t){const n=Ro.setup(e,t);delete n.selectOptionClick;const s=Ot().proxy;return it(()=>{n.select.states.cachedOptions.get(s.value)||n.select.onOptionCreate(s)}),xe(()=>t.attrs.visible,r=>{n.states.visible=r},{immediate:!0}),n},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function zb(e){return e||e===0}function J2(e){return Array.isArray(e)&&e.length}function lu(e){return Array.isArray(e)?e:zb(e)?[e]:[]}function nm(e,t,n,s,r){for(let i=0;i<e.length;i++){const a=e[i];if(t(a,i,e,r))return s?s(a,i,e,r):a;{const o=n(a);if(J2(o)){const l=nm(o,t,n,s,a);if(l)return l}}}}function sm(e,t,n,s){for(let r=0;r<e.length;r++){const i=e[r];t(i,r,e,s);const a=n(i);J2(a)&&sm(a,t,n,i)}}const Ece=(e,{attrs:t,slots:n,emit:s},{select:r,tree:i,key:a})=>{xe(()=>e.modelValue,()=>{e.showCheckbox&&it(()=>{const h=i.value;h&&!Ps(h.getCheckedKeys(),lu(e.modelValue))&&h.setCheckedKeys(lu(e.modelValue))})},{immediate:!0,deep:!0});const o=k(()=>({value:a.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...e.props})),l=(h,m)=>{var g;const p=o.value[h];return pt(p)?p(m,(g=i.value)==null?void 0:g.getNode(l("value",m))):m[p]},u=lu(e.modelValue).map(h=>nm(e.data||[],m=>l("value",m)===h,m=>l("children",m),(m,g,p,v)=>v&&l("value",v))).filter(h=>zb(h)),c=k(()=>{if(!e.renderAfterExpand&&!e.lazy)return[];const h=[];return sm(e.data.concat(e.cacheData),m=>{const g=l("value",m);h.push({value:g,currentLabel:l("label",m),isDisabled:l("disabled",m)})},m=>l("children",m)),h}),f=()=>{var h;return(h=i.value)==null?void 0:h.getCheckedKeys().filter(m=>{var g;const p=(g=i.value)==null?void 0:g.getNode(m);return!rs(p)&&Cr(p.childNodes)})};return{...hi(cs(e),Object.keys(Hm.props)),...t,nodeKey:a,expandOnClickNode:k(()=>!e.checkStrictly&&e.expandOnClickNode),defaultExpandedKeys:k(()=>e.defaultExpandedKeys?e.defaultExpandedKeys.concat(u):u),renderContent:(h,{node:m,data:g,store:p})=>h(Cce,{value:l("value",g),label:l("label",g),disabled:l("disabled",g),visible:m.visible},e.renderContent?()=>e.renderContent(h,{node:m,data:g,store:p}):n.default?()=>n.default({node:m,data:g,store:p}):void 0),filterNodeMethod:(h,m,g)=>e.filterNodeMethod?e.filterNodeMethod(h,m,g):h?new RegExp(x1(h),"i").test(l("label",m)||""):!0,onNodeClick:(h,m,g)=>{var p,v,y,_;if((p=t.onNodeClick)==null||p.call(t,h,m,g),!(e.showCheckbox&&e.checkOnClickNode)){if(!e.showCheckbox&&(e.checkStrictly||m.isLeaf)){if(!l("disabled",h)){const b=(v=r.value)==null?void 0:v.states.options.get(l("value",h));(y=r.value)==null||y.handleOptionSelect(b)}}else e.expandOnClickNode&&g.proxy.handleExpandIconClick();(_=r.value)==null||_.focus()}},onCheck:(h,m)=>{var g;if(!e.showCheckbox)return;const p=l("value",h),v={};sm([i.value.store.root],T=>v[T.key]=T,T=>T.childNodes);const y=m.checkedKeys,_=e.multiple?lu(e.modelValue).filter(T=>!(T in v)&&!y.includes(T)):[],b=_.concat(y);if(e.checkStrictly)s(At,e.multiple?b:b.includes(p)?p:void 0);else if(e.multiple){const T=f();s(At,_.concat(T))}else{const T=nm([h],D=>!J2(l("children",D))&&!l("disabled",D),D=>l("children",D)),S=T?l("value",T):void 0,C=zb(e.modelValue)&&!!nm([h],D=>l("value",D)===e.modelValue,D=>l("children",D));s(At,S===e.modelValue||C?void 0:S)}it(()=>{var T;const S=lu(e.modelValue);i.value.setCheckedKeys(S),(T=t.onCheck)==null||T.call(t,h,{checkedKeys:i.value.getCheckedKeys(),checkedNodes:i.value.getCheckedNodes(),halfCheckedKeys:i.value.getHalfCheckedKeys(),halfCheckedNodes:i.value.getHalfCheckedNodes()})}),(g=r.value)==null||g.focus()},onNodeExpand:(h,m,g)=>{var p;(p=t.onNodeExpand)==null||p.call(t,h,m,g),it(()=>{if(!e.checkStrictly&&e.lazy&&e.multiple&&m.checked){const v={},y=i.value.getCheckedKeys();sm([i.value.store.root],T=>v[T.key]=T,T=>T.childNodes);const _=lu(e.modelValue).filter(T=>!(T in v)&&!y.includes(T)),b=f();s(At,_.concat(b))}})},cacheOptions:c}};var xce=J({props:{data:{type:Array,default:()=>[]}},setup(e){const t=Xe(Lc);return xe(()=>e.data,()=>{var n;e.data.forEach(r=>{t.states.cachedOptions.has(r.value)||t.states.cachedOptions.set(r.value,r)});const s=((n=t.selectRef)==null?void 0:n.querySelectorAll("input"))||[];Ht&&!Array.from(s).includes(document.activeElement)&&t.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const kce=J({name:"ElTreeSelect",inheritAttrs:!1,props:{...Ti.props,...Hm.props,cacheData:{type:Array,default:()=>[]}},setup(e,t){const{slots:n,expose:s}=t,r=q(),i=q(),a=k(()=>e.nodeKey||e.valueKey||"value"),o=Tce(e,t,{select:r,tree:i,key:a}),{cacheOptions:l,...u}=Ece(e,t,{select:r,tree:i,key:a}),c=Ct({});return s(c),gt(()=>{Object.assign(c,{...hi(i.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...hi(r.value,["focus","blur"])})}),()=>ot(Ti,Ct({...o,ref:f=>r.value=f}),{...n,default:()=>[ot(xce,{data:l.value}),ot(Hm,Ct({...u,ref:f=>i.value=f}))]})}});var Ace=Ue(kce,[["__file","tree-select.vue"]]);const Ice=Tt(Ace),Z2=Symbol(),Dce={key:-1,level:-1,data:{}};var Rd=(e=>(e.KEY="id",e.LABEL="label",e.CHILDREN="children",e.DISABLED="disabled",e))(Rd||{}),jb=(e=>(e.ADD="add",e.DELETE="delete",e))(jb||{});const XO={type:Number,default:26},Oce=Fe({data:{type:oe(Array),default:()=>xn([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:oe(Object),default:()=>xn({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:oe(Array),default:()=>xn([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:oe(Array),default:()=>xn([])},indent:{type:Number,default:16},itemSize:XO,icon:{type:ln},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:oe([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:oe(Function)},perfMode:{type:Boolean,default:!0}}),Pce=Fe({node:{type:oe(Object),default:()=>xn(Dce)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize:XO}),Rce=Fe({node:{type:oe(Object),required:!0}}),QO="node-click",JO="node-drop",ZO="node-expand",eP="node-collapse",tP="current-change",nP="check",sP="check-change",rP="node-contextmenu",Nce={[QO]:(e,t,n)=>e&&t&&n,[JO]:(e,t,n)=>e&&t&&n,[ZO]:(e,t)=>e&&t,[eP]:(e,t)=>e&&t,[tP]:(e,t)=>e&&t,[nP]:(e,t)=>e&&t,[sP]:(e,t)=>e&&typeof t=="boolean",[rP]:(e,t,n)=>e&&t&&n},Mce={click:(e,t)=>!!(e&&t),drop:(e,t)=>!!(e&&t),toggle:e=>!!e,check:(e,t)=>e&&typeof t=="boolean"};function $ce(e,t){const n=q(new Set),s=q(new Set),{emit:r}=Ot();xe([()=>t.value,()=>e.defaultCheckedKeys],()=>it(()=>{_(e.defaultCheckedKeys)}),{immediate:!0});const i=()=>{if(!t.value||!e.showCheckbox||e.checkStrictly)return;const{levelTreeNodeMap:b,maxLevel:T}=t.value,S=n.value,C=new Set;for(let D=T-1;D>=1;--D){const N=b.get(D);N&&N.forEach($=>{const L=$.children;if(L){let z=!0,U=!1;for(const W of L){const K=W.key;if(S.has(K))U=!0;else if(C.has(K)){z=!1,U=!0;break}else z=!1}z?S.add($.key):U?(C.add($.key),S.delete($.key)):(S.delete($.key),C.delete($.key))}})}s.value=C},a=b=>n.value.has(b.key),o=b=>s.value.has(b.key),l=(b,T,S=!0)=>{const C=n.value,D=(N,$)=>{C[$?jb.ADD:jb.DELETE](N.key);const L=N.children;!e.checkStrictly&&L&&L.forEach(z=>{z.disabled||D(z,$)})};D(b,T),i(),S&&u(b,T)},u=(b,T)=>{const{checkedNodes:S,checkedKeys:C}=g(),{halfCheckedNodes:D,halfCheckedKeys:N}=p();r(nP,b.data,{checkedKeys:C,checkedNodes:S,halfCheckedKeys:N,halfCheckedNodes:D}),r(sP,b.data,T)};function c(b=!1){return g(b).checkedKeys}function f(b=!1){return g(b).checkedNodes}function h(){return p().halfCheckedKeys}function m(){return p().halfCheckedNodes}function g(b=!1){const T=[],S=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:C}=t.value;n.value.forEach(D=>{const N=C.get(D);N&&(!b||b&&N.isLeaf)&&(S.push(D),T.push(N.data))})}return{checkedKeys:S,checkedNodes:T}}function p(){const b=[],T=[];if(t!=null&&t.value&&e.showCheckbox){const{treeNodeMap:S}=t.value;s.value.forEach(C=>{const D=S.get(C);D&&(T.push(C),b.push(D.data))})}return{halfCheckedNodes:b,halfCheckedKeys:T}}function v(b){n.value.clear(),s.value.clear(),it(()=>{_(b)})}function y(b,T){if(t!=null&&t.value&&e.showCheckbox){const S=t.value.treeNodeMap.get(b);S&&l(S,T,!1)}}function _(b){if(t!=null&&t.value){const{treeNodeMap:T}=t.value;if(e.showCheckbox&&T&&b)for(const S of b){const C=T.get(S);C&&!a(C)&&l(C,!0,!1)}}}return{updateCheckedKeys:i,toggleCheckbox:l,isChecked:a,isIndeterminate:o,getCheckedKeys:c,getCheckedNodes:f,getHalfCheckedKeys:h,getHalfCheckedNodes:m,setChecked:y,setCheckedKeys:v}}function Lce(e,t){const n=q(new Set([])),s=q(new Set([])),r=k(()=>pt(e.filterMethod));function i(o){var l;if(!r.value)return;const u=new Set,c=s.value,f=n.value,h=[],m=((l=t.value)==null?void 0:l.treeNodes)||[],g=e.filterMethod;f.clear();function p(v){v.forEach(y=>{h.push(y),g!=null&&g(o,y.data)?h.forEach(b=>{u.add(b.key)}):y.isLeaf&&f.add(y.key);const _=y.children;if(_&&p(_),!y.isLeaf){if(!u.has(y.key))f.add(y.key);else if(_){let b=!0;for(const T of _)if(!f.has(T.key)){b=!1;break}b?c.add(y.key):c.delete(y.key)}}h.pop()})}return p(m),u}function a(o){return s.value.has(o.key)}return{hiddenExpandIconKeySet:s,hiddenNodeKeySet:n,doFilter:i,isForceHiddenExpandIcon:a}}function Bce(e,t){const n=q(new Set(e.defaultExpandedKeys)),s=q(),r=hn(),i=q();xe(()=>e.currentNodeKey,ve=>{s.value=ve},{immediate:!0}),xe(()=>e.data,ve=>{ge(ve)},{immediate:!0});const{isIndeterminate:a,isChecked:o,toggleCheckbox:l,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g}=$ce(e,r),{doFilter:p,hiddenNodeKeySet:v,isForceHiddenExpandIcon:y}=Lce(e,r),_=k(()=>{var ve;return((ve=e.props)==null?void 0:ve.value)||Rd.KEY}),b=k(()=>{var ve;return((ve=e.props)==null?void 0:ve.children)||Rd.CHILDREN}),T=k(()=>{var ve;return((ve=e.props)==null?void 0:ve.disabled)||Rd.DISABLED}),S=k(()=>{var ve;return((ve=e.props)==null?void 0:ve.label)||Rd.LABEL}),C=k(()=>{var ve;const ee=n.value,re=v.value,Se=[],Le=((ve=r.value)==null?void 0:ve.treeNodes)||[],_e=[];for(let ke=Le.length-1;ke>=0;--ke)_e.push(Le[ke]);for(;_e.length;){const ke=_e.pop();if(!re.has(ke.key)&&(Se.push(ke),ke.children&&ee.has(ke.key)))for(let Be=ke.children.length-1;Be>=0;--Be)_e.push(ke.children[Be])}return Se}),D=k(()=>C.value.length>0);function N(ve){const ee=new Map,re=new Map;let Se=1;function Le(ke,Be=1,Ie=void 0){var ze;const Ve=[];for(const Ze of ke){const je=z(Ze),Ae={level:Be,key:je,data:Ze};Ae.label=W(Ze),Ae.parent=Ie;const nt=L(Ze);Ae.disabled=U(Ze),Ae.isLeaf=!nt||nt.length===0,nt&&nt.length&&(Ae.children=Le(nt,Be+1,Ae)),Ve.push(Ae),ee.set(je,Ae),re.has(Be)||re.set(Be,[]),(ze=re.get(Be))==null||ze.push(Ae)}return Be>Se&&(Se=Be),Ve}const _e=Le(ve);return{treeNodeMap:ee,levelTreeNodeMap:re,maxLevel:Se,treeNodes:_e}}function $(ve){const ee=p(ve);ee&&(n.value=ee)}function L(ve){return ve[b.value]}function z(ve){return ve?ve[_.value]:""}function U(ve){return ve[T.value]}function W(ve){return ve[S.value]}function K(ve){n.value.has(ve.key)?Z(ve):H(ve)}function X(ve){const ee=new Set,re=r.value.treeNodeMap;ve.forEach(Se=>{let Le=re.get(Se);for(;Le&&!ee.has(Le.key);)ee.add(Le.key),Le=Le.parent}),n.value=ee}function B(ve,ee){t(QO,ve.data,ve,ee),Y(ve),e.expandOnClickNode&&K(ve),e.showCheckbox&&e.checkOnClickNode&&!ve.disabled&&l(ve,!o(ve),!0)}function Q(ve,ee){t(JO,ve.data,ve,ee)}function Y(ve){we(ve)||(s.value=ve.key,t(tP,ve.data,ve))}function F(ve,ee){l(ve,ee)}function H(ve){const ee=n.value;if(r.value&&e.accordion){const{treeNodeMap:re}=r.value;ee.forEach(Se=>{const Le=re.get(Se);ve&&ve.level===(Le==null?void 0:Le.level)&&ee.delete(Se)})}ee.add(ve.key),t(ZO,ve.data,ve)}function Z(ve){n.value.delete(ve.key),t(eP,ve.data,ve)}function se(ve){return n.value.has(ve.key)}function ne(ve){return!!ve.disabled}function we(ve){const ee=s.value;return ee!==void 0&&ee===ve.key}function De(){var ve,ee;if(s.value)return(ee=(ve=r.value)==null?void 0:ve.treeNodeMap.get(s.value))==null?void 0:ee.data}function Ee(){return s.value}function te(ve){s.value=ve}function ge(ve){it(()=>r.value=N(ve))}function pe(ve){var ee;const re=Pt(ve)?z(ve):ve;return(ee=r.value)==null?void 0:ee.treeNodeMap.get(re)}function Oe(ve,ee="auto"){const re=pe(ve);re&&i.value&&i.value.scrollToItem(C.value.indexOf(re),ee)}function Pe(ve){var ee;(ee=i.value)==null||ee.scrollTo(ve)}return{tree:r,flattenTree:C,isNotEmpty:D,listRef:i,getKey:z,getChildren:L,toggleExpand:K,toggleCheckbox:l,isExpanded:se,isChecked:o,isIndeterminate:a,isDisabled:ne,isCurrent:we,isForceHiddenExpandIcon:y,handleNodeClick:B,handleNodeDrop:Q,handleNodeCheck:F,getCurrentNode:De,getCurrentKey:Ee,setCurrentKey:te,getCheckedKeys:u,getCheckedNodes:c,getHalfCheckedKeys:f,getHalfCheckedNodes:h,setChecked:m,setCheckedKeys:g,filter:$,setData:ge,getNode:pe,expandNode:H,collapseNode:Z,setExpandedKeys:X,scrollToNode:Oe,scrollTo:Pe}}var Fce=J({name:"ElTreeNodeContent",props:Rce,setup(e){const t=Xe(Z2),n=Re("tree");return()=>{const s=e.node,{data:r}=s;return t!=null&&t.ctx.slots.default?t.ctx.slots.default({node:s,data:r}):ot("span",{class:n.be("node","label")},[s==null?void 0:s.label])}}});const Vce=J({name:"ElTreeNode"}),Uce=J({...Vce,props:Pce,emits:Mce,setup(e,{emit:t}){const n=e,s=Xe(Z2),r=Re("tree"),i=k(()=>{var h;return(h=s==null?void 0:s.props.indent)!=null?h:16}),a=k(()=>{var h;return(h=s==null?void 0:s.props.icon)!=null?h:Fg}),o=h=>{t("click",n.node,h)},l=h=>{t("drop",n.node,h)},u=()=>{t("toggle",n.node)},c=h=>{t("check",n.node,h)},f=h=>{var m,g,p,v;(p=(g=(m=s==null?void 0:s.instance)==null?void 0:m.vnode)==null?void 0:g.props)!=null&&p.onNodeContextmenu&&(h.stopPropagation(),h.preventDefault()),s==null||s.ctx.emit(rP,h,(v=n.node)==null?void 0:v.data,n.node)};return(h,m)=>{var g,p,v;return x(),j("div",{ref:"node$",class:M([d(r).b("node"),d(r).is("expanded",h.expanded),d(r).is("current",h.current),d(r).is("focusable",!h.disabled),d(r).is("checked",!h.disabled&&h.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":h.expanded,"aria-disabled":h.disabled,"aria-checked":h.checked,"data-key":(g=h.node)==null?void 0:g.key,onClick:ft(o,["stop"]),onContextmenu:f,onDragover:ft(()=>{},["prevent"]),onDragenter:ft(()=>{},["prevent"]),onDrop:ft(l,["stop"])},[O("div",{class:M(d(r).be("node","content")),style:st({paddingLeft:`${(h.node.level-1)*d(i)}px`,height:h.itemSize+"px"})},[d(a)?(x(),de(d(tt),{key:0,class:M([d(r).is("leaf",!!((p=h.node)!=null&&p.isLeaf)),d(r).is("hidden",h.hiddenExpandIcon),{expanded:!((v=h.node)!=null&&v.isLeaf)&&h.expanded},d(r).be("node","expand-icon")]),onClick:ft(u,["stop"])},{default:P(()=>[(x(),de(Rt(d(a))))]),_:1},8,["class","onClick"])):ae("v-if",!0),h.showCheckbox?(x(),de(d(Jr),{key:1,"model-value":h.checked,indeterminate:h.indeterminate,disabled:h.disabled,onChange:c,onClick:ft(()=>{},["stop"])},null,8,["model-value","indeterminate","disabled","onClick"])):ae("v-if",!0),E(d(Fce),{node:h.node},null,8,["node"])],6)],42,["aria-expanded","aria-disabled","aria-checked","data-key","onClick","onDragover","onDragenter","onDrop"])}}});var Hce=Ue(Uce,[["__file","tree-node.vue"]]);const zce=J({name:"ElTreeV2"}),jce=J({...zce,props:Oce,emits:Nce,setup(e,{expose:t,emit:n}){const s=e,r=os(),i=k(()=>s.itemSize);Mt(Z2,{ctx:{emit:n,slots:r},props:s,instance:Ot()}),Mt(Qi,void 0);const{t:a}=zt(),o=Re("tree"),{flattenTree:l,isNotEmpty:u,listRef:c,toggleExpand:f,isExpanded:h,isIndeterminate:m,isChecked:g,isDisabled:p,isCurrent:v,isForceHiddenExpandIcon:y,handleNodeClick:_,handleNodeDrop:b,handleNodeCheck:T,toggleCheckbox:S,getCurrentNode:C,getCurrentKey:D,setCurrentKey:N,getCheckedKeys:$,getCheckedNodes:L,getHalfCheckedKeys:z,getHalfCheckedNodes:U,setChecked:W,setCheckedKeys:K,filter:X,setData:B,getNode:Q,expandNode:Y,collapseNode:F,setExpandedKeys:H,scrollToNode:Z,scrollTo:se}=Bce(s,n);return t({toggleCheckbox:S,getCurrentNode:C,getCurrentKey:D,setCurrentKey:N,getCheckedKeys:$,getCheckedNodes:L,getHalfCheckedKeys:z,getHalfCheckedNodes:U,setChecked:W,setCheckedKeys:K,filter:X,setData:B,getNode:Q,expandNode:Y,collapseNode:F,setExpandedKeys:H,scrollToNode:Z,scrollTo:se}),(ne,we)=>{var De;return x(),j("div",{class:M([d(o).b(),{[d(o).m("highlight-current")]:ne.highlightCurrent}]),role:"tree"},[d(u)?(x(),de(d(aO),{key:0,ref_key:"listRef",ref:c,"class-name":d(o).b("virtual-list"),data:d(l),total:d(l).length,height:ne.height,"item-size":d(i),"perf-mode":ne.perfMode},{default:P(({data:Ee,index:te,style:ge})=>[(x(),de(Hce,{key:Ee[te].key,style:st(ge),node:Ee[te],expanded:d(h)(Ee[te]),"show-checkbox":ne.showCheckbox,checked:d(g)(Ee[te]),indeterminate:d(m)(Ee[te]),"item-size":d(i),disabled:d(p)(Ee[te]),current:d(v)(Ee[te]),"hidden-expand-icon":d(y)(Ee[te]),onClick:d(_),onToggle:d(f),onCheck:d(T),onDrop:d(b)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck","onDrop"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(x(),j("div",{key:1,class:M(d(o).e("empty-block"))},[O("span",{class:M(d(o).e("empty-text"))},ce((De=ne.emptyText)!=null?De:d(a)("el.tree.emptyText")),3)],2))],2)}}});var qce=Ue(jce,[["__file","tree.vue"]]);const Wce=Tt(qce),iP=Symbol("uploadContextKey"),Kce="ElUpload";class Gce extends Error{constructor(t,n,s,r){super(t),this.name="UploadAjaxError",this.status=n,this.method=s,this.url=r}}function kx(e,t,n){let s;return n.response?s=`${n.response.error||n.response}`:n.responseText?s=`${n.responseText}`:s=`fail to ${t.method} ${e} ${n.status}`,new Gce(s,n.status,t.method,e)}function Yce(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Xce=e=>{typeof XMLHttpRequest>"u"&&es(Kce,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",i=>{const a=i;a.percent=i.total>0?i.loaded/i.total*100:0,e.onProgress(a)});const s=new FormData;if(e.data)for(const[i,a]of Object.entries(e.data))Ye(a)&&a.length?s.append(i,...a):s.append(i,a);s.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(kx(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(kx(n,e,t));e.onSuccess(Yce(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const r=e.headers||{};if(r instanceof Headers)r.forEach((i,a)=>t.setRequestHeader(a,i));else for(const[i,a]of Object.entries(r))rs(a)||t.setRequestHeader(i,String(a));return t.send(s),t},aP=["text","picture","picture-card"];let Qce=1;const qb=()=>Date.now()+Qce++,oP=Fe({action:{type:String,default:"#"},headers:{type:oe(Object)},method:{type:String,default:"post"},data:{type:oe([Object,Function,Promise]),default:()=>xn({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:oe(Array),default:()=>xn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:aP,default:"text"},httpRequest:{type:oe(Function),default:Xce},disabled:Boolean,limit:Number}),Jce=Fe({...oP,beforeUpload:{type:oe(Function),default:sn},beforeRemove:{type:oe(Function)},onRemove:{type:oe(Function),default:sn},onChange:{type:oe(Function),default:sn},onPreview:{type:oe(Function),default:sn},onSuccess:{type:oe(Function),default:sn},onProgress:{type:oe(Function),default:sn},onError:{type:oe(Function),default:sn},onExceed:{type:oe(Function),default:sn},crossorigin:{type:oe(String)}}),Zce=Fe({files:{type:oe(Array),default:()=>xn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:oe(Function),default:sn},listType:{type:String,values:aP,default:"text"},crossorigin:{type:oe(String)}}),ede={remove:e=>!!e},tde=J({name:"ElUploadList"}),nde=J({...tde,props:Zce,emits:ede,setup(e,{emit:t}){const n=e,{t:s}=zt(),r=Re("upload"),i=Re("icon"),a=Re("list"),o=Ls(),l=q(!1),u=k(()=>[r.b("list"),r.bm("list",n.listType),r.is("disabled",n.disabled)]),c=f=>{t("remove",f)};return(f,h)=>(x(),de(n3,{tag:"ul",class:M(d(u)),name:d(a).b()},{default:P(()=>[(x(!0),j(Ke,null,bt(f.files,(m,g)=>(x(),j("li",{key:m.uid||m.name,class:M([d(r).be("list","item"),d(r).is(m.status),{focusing:l.value}]),tabindex:"0",onKeydown:rn(p=>!d(o)&&c(m),["delete"]),onFocus:p=>l.value=!0,onBlur:p=>l.value=!1,onClick:p=>l.value=!1},[fe(f.$slots,"default",{file:m,index:g},()=>[f.listType==="picture"||m.status!=="uploading"&&f.listType==="picture-card"?(x(),j("img",{key:0,class:M(d(r).be("list","item-thumbnail")),src:m.url,crossorigin:f.crossorigin,alt:""},null,10,["src","crossorigin"])):ae("v-if",!0),m.status==="uploading"||f.listType!=="picture-card"?(x(),j("div",{key:1,class:M(d(r).be("list","item-info"))},[O("a",{class:M(d(r).be("list","item-name")),onClick:ft(p=>f.handlePreview(m),["prevent"])},[E(d(tt),{class:M(d(i).m("document"))},{default:P(()=>[E(d(pj))]),_:1},8,["class"]),O("span",{class:M(d(r).be("list","item-file-name")),title:m.name},ce(m.name),11,["title"])],10,["onClick"]),m.status==="uploading"?(x(),de(d(Q8),{key:0,type:f.listType==="picture-card"?"circle":"line","stroke-width":f.listType==="picture-card"?6:2,percentage:Number(m.percentage),style:st(f.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ae("v-if",!0)],2)):ae("v-if",!0),O("label",{class:M(d(r).be("list","item-status-label"))},[f.listType==="text"?(x(),de(d(tt),{key:0,class:M([d(i).m("upload-success"),d(i).m("circle-check")])},{default:P(()=>[E(d(I1))]),_:1},8,["class"])):["picture-card","picture"].includes(f.listType)?(x(),de(d(tt),{key:1,class:M([d(i).m("upload-success"),d(i).m("check")])},{default:P(()=>[E(d(uh))]),_:1},8,["class"])):ae("v-if",!0)],2),d(o)?ae("v-if",!0):(x(),de(d(tt),{key:2,class:M(d(i).m("close")),onClick:p=>c(m)},{default:P(()=>[E(d(_i))]),_:2},1032,["class","onClick"])),ae(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ae(" This is a bug which needs to be fixed "),ae(" TODO: Fix the incorrect navigation interaction "),d(o)?ae("v-if",!0):(x(),j("i",{key:3,class:M(d(i).m("close-tip"))},ce(d(s)("el.upload.deleteTip")),3)),f.listType==="picture-card"?(x(),j("span",{key:4,class:M(d(r).be("list","item-actions"))},[O("span",{class:M(d(r).be("list","item-preview")),onClick:p=>f.handlePreview(m)},[E(d(tt),{class:M(d(i).m("zoom-in"))},{default:P(()=>[E(d(M1))]),_:1},8,["class"])],10,["onClick"]),d(o)?ae("v-if",!0):(x(),j("span",{key:0,class:M(d(r).be("list","item-delete")),onClick:p=>c(m)},[E(d(tt),{class:M(d(i).m("delete"))},{default:P(()=>[E(d(Kl))]),_:1},8,["class"])],10,["onClick"]))],2)):ae("v-if",!0)])],42,["onKeydown","onFocus","onBlur","onClick"]))),128)),fe(f.$slots,"append")]),_:3},8,["class","name"]))}});var Ax=Ue(nde,[["__file","upload-list.vue"]]);const sde=Fe({disabled:{type:Boolean,default:!1}}),rde={file:e=>Ye(e)},lP="ElUploadDrag",ide=J({name:lP}),ade=J({...ide,props:sde,emits:rde,setup(e,{emit:t}){Xe(iP)||es(lP,"usage: <el-upload><el-upload-dragger /></el-upload>");const s=Re("upload"),r=q(!1),i=Ls(),a=l=>{if(i.value)return;r.value=!1,l.stopPropagation();const u=Array.from(l.dataTransfer.files);t("file",u)},o=()=>{i.value||(r.value=!0)};return(l,u)=>(x(),j("div",{class:M([d(s).b("dragger"),d(s).is("dragover",r.value)]),onDrop:ft(a,["prevent"]),onDragover:ft(o,["prevent"]),onDragleave:ft(c=>r.value=!1,["prevent"])},[fe(l.$slots,"default")],42,["onDrop","onDragover","onDragleave"]))}});var ode=Ue(ade,[["__file","upload-dragger.vue"]]);const lde=Fe({...oP,beforeUpload:{type:oe(Function),default:sn},onRemove:{type:oe(Function),default:sn},onStart:{type:oe(Function),default:sn},onSuccess:{type:oe(Function),default:sn},onProgress:{type:oe(Function),default:sn},onError:{type:oe(Function),default:sn},onExceed:{type:oe(Function),default:sn}}),ude=J({name:"ElUploadContent",inheritAttrs:!1}),cde=J({...ude,props:lde,setup(e,{expose:t}){const n=e,s=Re("upload"),r=Ls(),i=hn({}),a=hn(),o=p=>{if(p.length===0)return;const{autoUpload:v,limit:y,fileList:_,multiple:b,onStart:T,onExceed:S}=n;if(y&&_.length+p.length>y){S(p,_);return}b||(p=p.slice(0,1));for(const C of p){const D=C;D.uid=qb(),T(D),v&&l(D)}},l=async p=>{if(a.value.value="",!n.beforeUpload)return c(p);let v,y={};try{const b=n.data,T=n.beforeUpload(p);y=pm(n.data)?Em(n.data):n.data,v=await T,pm(n.data)&&Ps(b,y)&&(y=Em(n.data))}catch{v=!1}if(v===!1){n.onRemove(p);return}let _=p;v instanceof Blob&&(v instanceof File?_=v:_=new File([v],p.name,{type:p.type})),c(Object.assign(_,{uid:p.uid}),y)},u=async(p,v)=>pt(p)?p(v):p,c=async(p,v)=>{const{headers:y,data:_,method:b,withCredentials:T,name:S,action:C,onProgress:D,onSuccess:N,onError:$,httpRequest:L}=n;try{v=await u(v??_,p)}catch{n.onRemove(p);return}const{uid:z}=p,U={headers:y||{},withCredentials:T,file:p,data:v,method:b,filename:S,action:C,onProgress:K=>{D(K,p)},onSuccess:K=>{N(K,p),delete i.value[z]},onError:K=>{$(K,p),delete i.value[z]}},W=L(U);i.value[z]=W,W instanceof Promise&&W.then(U.onSuccess,U.onError)},f=p=>{const v=p.target.files;v&&o(Array.from(v))},h=()=>{r.value||(a.value.value="",a.value.click())},m=()=>{h()};return t({abort:p=>{Dz(i.value).filter(p?([y])=>String(p.uid)===y:()=>!0).forEach(([y,_])=>{_ instanceof XMLHttpRequest&&_.abort(),delete i.value[y]})},upload:l}),(p,v)=>(x(),j("div",{class:M([d(s).b(),d(s).m(p.listType),d(s).is("drag",p.drag),d(s).is("disabled",d(r))]),tabindex:d(r)?"-1":"0",onClick:h,onKeydown:rn(ft(m,["self"]),["enter","space"])},[p.drag?(x(),de(ode,{key:0,disabled:d(r),onFile:o},{default:P(()=>[fe(p.$slots,"default")]),_:3},8,["disabled"])):fe(p.$slots,"default",{key:1}),O("input",{ref_key:"inputRef",ref:a,class:M(d(s).e("input")),name:p.name,disabled:d(r),multiple:p.multiple,accept:p.accept,type:"file",onChange:f,onClick:ft(()=>{},["stop"])},null,42,["name","disabled","multiple","accept","onClick"])],42,["tabindex","onKeydown"]))}});var Ix=Ue(cde,[["__file","upload-content.vue"]]);const Dx="ElUpload",Ox=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},dde=(e,t)=>{const n=d3(e,"fileList",void 0,{passive:!0}),s=m=>n.value.find(g=>g.uid===m.uid);function r(m){var g;(g=t.value)==null||g.abort(m)}function i(m=["ready","uploading","success","fail"]){n.value=n.value.filter(g=>!m.includes(g.status))}function a(m){n.value=n.value.filter(g=>g!==m)}const o=(m,g)=>{const p=s(g);p&&(console.error(m),p.status="fail",a(p),e.onError(m,p,n.value),e.onChange(p,n.value))},l=(m,g)=>{const p=s(g);p&&(e.onProgress(m,p,n.value),p.status="uploading",p.percentage=Math.round(m.percent))},u=(m,g)=>{const p=s(g);p&&(p.status="success",p.response=m,e.onSuccess(m,p,n.value),e.onChange(p,n.value))},c=m=>{rs(m.uid)&&(m.uid=qb());const g={name:m.name,percentage:0,status:"ready",size:m.size,raw:m,uid:m.uid};if(e.listType==="picture-card"||e.listType==="picture")try{g.url=URL.createObjectURL(m)}catch(p){p.message,e.onError(p,g,n.value)}n.value=[...n.value,g],e.onChange(g,n.value)},f=async m=>{const g=m instanceof File?s(m):m;g||es(Dx,"file to be removed not found");const p=v=>{r(v),a(v),e.onRemove(v,n.value),Ox(v)};e.beforeRemove?await e.beforeRemove(g,n.value)!==!1&&p(g):p(g)};function h(){n.value.filter(({status:m})=>m==="ready").forEach(({raw:m})=>{var g;return m&&((g=t.value)==null?void 0:g.upload(m))})}return xe(()=>e.listType,m=>{m!=="picture-card"&&m!=="picture"||(n.value=n.value.map(g=>{const{raw:p,url:v}=g;if(!v&&p)try{g.url=URL.createObjectURL(p)}catch(y){e.onError(y,g,n.value)}return g}))}),xe(n,m=>{for(const g of m)g.uid||(g.uid=qb()),g.status||(g.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:r,clearFiles:i,handleError:o,handleProgress:l,handleStart:c,handleSuccess:u,handleRemove:f,submit:h,revokeFileObjectURL:Ox}},fde=J({name:"ElUpload"}),hde=J({...fde,props:Jce,setup(e,{expose:t}){const n=e,s=Ls(),r=hn(),{abort:i,submit:a,clearFiles:o,uploadFiles:l,handleStart:u,handleError:c,handleRemove:f,handleSuccess:h,handleProgress:m,revokeFileObjectURL:g}=dde(n,r),p=k(()=>n.listType==="picture-card"),v=k(()=>({...n,fileList:l.value,onStart:u,onProgress:m,onSuccess:h,onError:c,onRemove:f}));return un(()=>{l.value.forEach(g)}),Mt(iP,{accept:nn(n,"accept")}),t({abort:i,submit:a,clearFiles:o,handleStart:u,handleRemove:f}),(y,_)=>(x(),j("div",null,[d(p)&&y.showFileList?(x(),de(Ax,{key:0,disabled:d(s),"list-type":y.listType,files:d(l),crossorigin:y.crossorigin,"handle-preview":y.onPreview,onRemove:d(f)},Gr({append:P(()=>[E(Ix,Nt({ref_key:"uploadRef",ref:r},d(v)),{default:P(()=>[y.$slots.trigger?fe(y.$slots,"trigger",{key:0}):ae("v-if",!0),!y.$slots.trigger&&y.$slots.default?fe(y.$slots,"default",{key:1}):ae("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:P(({file:b,index:T})=>[fe(y.$slots,"file",{file:b,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ae("v-if",!0),!d(p)||d(p)&&!y.showFileList?(x(),de(Ix,Nt({key:1,ref_key:"uploadRef",ref:r},d(v)),{default:P(()=>[y.$slots.trigger?fe(y.$slots,"trigger",{key:0}):ae("v-if",!0),!y.$slots.trigger&&y.$slots.default?fe(y.$slots,"default",{key:1}):ae("v-if",!0)]),_:3},16)):ae("v-if",!0),y.$slots.trigger?fe(y.$slots,"default",{key:2}):ae("v-if",!0),fe(y.$slots,"tip"),!d(p)&&y.showFileList?(x(),de(Ax,{key:3,disabled:d(s),"list-type":y.listType,files:d(l),crossorigin:y.crossorigin,"handle-preview":y.onPreview,onRemove:d(f)},Gr({_:2},[y.$slots.file?{name:"default",fn:P(({file:b,index:T})=>[fe(y.$slots,"file",{file:b,index:T})])}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ae("v-if",!0)]))}});var pde=Ue(hde,[["__file","upload.vue"]]);const av=Tt(pde),mde=Fe({zIndex:{type:Number,default:9},rotate:{type:Number,default:-22},width:Number,height:Number,image:String,content:{type:oe([String,Array]),default:"Element Plus"},font:{type:oe(Object)},gap:{type:oe(Array),default:()=>[100,100]},offset:{type:oe(Array)}});function gde(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}function vde(e){return Object.keys(e).map(t=>`${gde(t)}: ${e[t]};`).join(" ")}function yde(){return window.devicePixelRatio||1}const bde=(e,t)=>{let n=!1;return e.removedNodes.length&&t&&(n=Array.from(e.removedNodes).includes(t)),e.type==="attributes"&&e.target===t&&(n=!0),n},uP=3;function z0(e,t,n=1){const s=document.createElement("canvas"),r=s.getContext("2d"),i=e*n,a=t*n;return s.setAttribute("width",`${i}px`),s.setAttribute("height",`${a}px`),r.save(),[r,s,i,a]}function _de(){function e(t,n,s,r,i,a,o,l){const[u,c,f,h]=z0(r,i,s);if(t instanceof HTMLImageElement)u.drawImage(t,0,0,f,h);else{const{color:Z,fontSize:se,fontStyle:ne,fontWeight:we,fontFamily:De,textAlign:Ee,textBaseline:te}=a,ge=Number(se)*s;u.font=`${ne} normal ${we} ${ge}px/${i}px ${De}`,u.fillStyle=Z,u.textAlign=Ee,u.textBaseline=te;const pe=Array.isArray(t)?t:[t];pe==null||pe.forEach((Oe,Pe)=>{u.fillText(Oe??"",f/2,Pe*(ge+uP*s))})}const m=Math.PI/180*Number(n),g=Math.max(r,i),[p,v,y]=z0(g,g,s);p.translate(y/2,y/2),p.rotate(m),f>0&&h>0&&p.drawImage(c,-f/2,-h/2);function _(Z,se){const ne=Z*Math.cos(m)-se*Math.sin(m),we=Z*Math.sin(m)+se*Math.cos(m);return[ne,we]}let b=0,T=0,S=0,C=0;const D=f/2,N=h/2;[[0-D,0-N],[0+D,0-N],[0+D,0+N],[0-D,0+N]].forEach(([Z,se])=>{const[ne,we]=_(Z,se);b=Math.min(b,ne),T=Math.max(T,ne),S=Math.min(S,we),C=Math.max(C,we)});const L=b+y/2,z=S+y/2,U=T-b,W=C-S,K=o*s,X=l*s,B=(U+K)*2,Q=W+X,[Y,F]=z0(B,Q);function H(Z=0,se=0){Y.drawImage(v,L,z,U,W,Z,se,U,W)}return H(),H(U+K,-W/2-X/2),H(U+K,+W/2+X/2),[F.toDataURL(),B/s,Q/s]}return e}const wde=J({name:"ElWatermark"}),Sde=J({...wde,props:mde,setup(e){const t=e,n={position:"relative"},s=k(()=>{var L,z;return(z=(L=t.font)==null?void 0:L.color)!=null?z:"rgba(0,0,0,.15)"}),r=k(()=>{var L,z;return(z=(L=t.font)==null?void 0:L.fontSize)!=null?z:16}),i=k(()=>{var L,z;return(z=(L=t.font)==null?void 0:L.fontWeight)!=null?z:"normal"}),a=k(()=>{var L,z;return(z=(L=t.font)==null?void 0:L.fontStyle)!=null?z:"normal"}),o=k(()=>{var L,z;return(z=(L=t.font)==null?void 0:L.fontFamily)!=null?z:"sans-serif"}),l=k(()=>{var L,z;return(z=(L=t.font)==null?void 0:L.textAlign)!=null?z:"center"}),u=k(()=>{var L,z;return(z=(L=t.font)==null?void 0:L.textBaseline)!=null?z:"hanging"}),c=k(()=>t.gap[0]),f=k(()=>t.gap[1]),h=k(()=>c.value/2),m=k(()=>f.value/2),g=k(()=>{var L,z;return(z=(L=t.offset)==null?void 0:L[0])!=null?z:h.value}),p=k(()=>{var L,z;return(z=(L=t.offset)==null?void 0:L[1])!=null?z:m.value}),v=()=>{const L={zIndex:t.zIndex,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let z=g.value-h.value,U=p.value-m.value;return z>0&&(L.left=`${z}px`,L.width=`calc(100% - ${z}px)`,z=0),U>0&&(L.top=`${U}px`,L.height=`calc(100% - ${U}px)`,U=0),L.backgroundPosition=`${z}px ${U}px`,L},y=hn(null),_=hn(),b=q(!1),T=()=>{_.value&&(_.value.remove(),_.value=void 0)},S=(L,z)=>{var U;y.value&&_.value&&(b.value=!0,_.value.setAttribute("style",vde({...v(),backgroundImage:`url('${L}')`,backgroundSize:`${Math.floor(z)}px`})),(U=y.value)==null||U.append(_.value),setTimeout(()=>{b.value=!1}))},C=L=>{let z=120,U=64;const W=t.image,K=t.content,X=t.width,B=t.height;if(!W&&L.measureText){L.font=`${Number(r.value)}px ${o.value}`;const Q=Array.isArray(K)?K:[K],Y=Q.map(F=>{const H=L.measureText(F);return[H.width,H.fontBoundingBoxAscent!==void 0?H.fontBoundingBoxAscent+H.fontBoundingBoxDescent:H.actualBoundingBoxAscent+H.actualBoundingBoxDescent]});z=Math.ceil(Math.max(...Y.map(F=>F[0]))),U=Math.ceil(Math.max(...Y.map(F=>F[1])))*Q.length+(Q.length-1)*uP}return[X??z,B??U]},D=_de(),N=()=>{const z=document.createElement("canvas").getContext("2d"),U=t.image,W=t.content,K=t.rotate;if(z){_.value||(_.value=document.createElement("div"));const X=yde(),[B,Q]=C(z),Y=F=>{const[H,Z]=D(F||"",K,X,B,Q,{color:s.value,fontSize:r.value,fontStyle:a.value,fontWeight:i.value,fontFamily:o.value,textAlign:l.value,textBaseline:u.value},c.value,f.value);S(H,Z)};if(U){const F=new Image;F.onload=()=>{Y(F)},F.onerror=()=>{Y(W)},F.crossOrigin="anonymous",F.referrerPolicy="no-referrer",F.src=U}else Y(W)}};return gt(()=>{N()}),xe(()=>t,()=>{N()},{deep:!0,flush:"post"}),un(()=>{T()}),c3(y,L=>{b.value||L.forEach(z=>{bde(z,_.value)&&(T(),N())})},{attributes:!0,subtree:!0,childList:!0}),(L,z)=>(x(),j("div",{ref_key:"containerRef",ref:y,style:st([n])},[fe(L.$slots,"default")],4))}});var Tde=Ue(Sde,[["__file","watermark.vue"]]);const Cde=Tt(Tde),Ede=Fe({zIndex:{type:Number,default:1001},visible:Boolean,fill:{type:String,default:"rgba(0,0,0,0.5)"},pos:{type:oe(Object)},targetAreaClickable:{type:Boolean,default:!0}}),xde=(e,t,n,s,r)=>{const i=q(null),a=()=>{let f;return ht(e.value)?f=document.querySelector(e.value):pt(e.value)?f=e.value():f=e.value,f},o=()=>{const f=a();if(!f||!t.value){i.value=null;return}!kde(f)&&t.value&&f.scrollIntoView(r.value);const{left:h,top:m,width:g,height:p}=f.getBoundingClientRect();i.value={left:h,top:m,width:g,height:p,radius:0}};gt(()=>{xe([t,e],()=>{o()},{immediate:!0}),window.addEventListener("resize",o)}),un(()=>{window.removeEventListener("resize",o)});const l=f=>{var h;return(h=Ye(n.value.offset)?n.value.offset[f]:n.value.offset)!=null?h:6},u=k(()=>{var f;if(!i.value)return i.value;const h=l(0),m=l(1),g=((f=n.value)==null?void 0:f.radius)||2;return{left:i.value.left-h,top:i.value.top-m,width:i.value.width+h*2,height:i.value.height+m*2,radius:g}}),c=k(()=>{const f=a();return!s.value||!f||!window.DOMRect?f||void 0:{getBoundingClientRect(){var h,m,g,p;return window.DOMRect.fromRect({width:((h=u.value)==null?void 0:h.width)||0,height:((m=u.value)==null?void 0:m.height)||0,x:((g=u.value)==null?void 0:g.left)||0,y:((p=u.value)==null?void 0:p.top)||0})}}});return{mergedPosInfo:u,triggerTarget:c}},ov=Symbol("ElTour");function kde(e){const t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,{top:s,right:r,bottom:i,left:a}=e.getBoundingClientRect();return s>=0&&a>=0&&r<=t&&i<=n}const Ade=(e,t,n,s,r,i,a,o)=>{const l=q(),u=q(),c=q({}),f={x:l,y:u,placement:s,strategy:r,middlewareData:c},h=k(()=>{const y=[LI(d(i)),OK(),DK(),Ide()];return d(o)&&d(n)&&y.push(BI({element:d(n)})),y}),m=async()=>{if(!Ht)return;const y=d(e),_=d(t);if(!y||!_)return;const b=await FI(y,_,{placement:d(s),strategy:d(r),middleware:d(h)});Xu(f).forEach(T=>{f[T].value=b[T]})},g=k(()=>{if(!d(e))return{position:"fixed",top:"50%",left:"50%",transform:"translate3d(-50%, -50%, 0)",maxWidth:"100vw",zIndex:d(a)};const{overflow:y}=d(c);return{position:d(r),zIndex:d(a),top:d(u)!=null?`${d(u)}px`:"",left:d(l)!=null?`${d(l)}px`:"",maxWidth:y!=null&&y.maxWidth?`${y==null?void 0:y.maxWidth}px`:""}}),p=k(()=>{if(!d(o))return{};const{arrow:y}=d(c);return{left:(y==null?void 0:y.x)!=null?`${y==null?void 0:y.x}px`:"",top:(y==null?void 0:y.y)!=null?`${y==null?void 0:y.y}px`:""}});let v;return gt(()=>{const y=d(e),_=d(t);y&&_&&(v=AK(y,_,m)),vs(()=>{m()})}),un(()=>{v&&v()}),{update:m,contentStyle:g,arrowStyle:p}},Ide=()=>({name:"overflow",async fn(e){const t=await IK(e);let n=0;return t.left>0&&(n=t.left),t.right>0&&(n=t.right),{data:{maxWidth:e.rects.floating.width-n}}}}),Dde=J({name:"ElTourMask",inheritAttrs:!1}),Ode=J({...Dde,props:Ede,setup(e){const t=e,{ns:n}=Xe(ov),s=k(()=>{var o,l;return(l=(o=t.pos)==null?void 0:o.radius)!=null?l:2}),r=k(()=>{const o=s.value,l=`a${o},${o} 0 0 1`;return{topRight:`${l} ${o},${o}`,bottomRight:`${l} ${-o},${o}`,bottomLeft:`${l} ${-o},${-o}`,topLeft:`${l} ${o},${-o}`}}),i=k(()=>{const o=window.innerWidth,l=window.innerHeight,u=r.value,c=`M${o},0 L0,0 L0,${l} L${o},${l} L${o},0 Z`,f=s.value;return t.pos?`${c} M${t.pos.left+f},${t.pos.top} h${t.pos.width-f*2} ${u.topRight} v${t.pos.height-f*2} ${u.bottomRight} h${-t.pos.width+f*2} ${u.bottomLeft} v${-t.pos.height+f*2} ${u.topLeft} z`:c}),a=k(()=>({fill:t.fill,pointerEvents:"auto",cursor:"auto"}));return U1(nn(t,"visible"),{ns:n}),(o,l)=>o.visible?(x(),j("div",Nt({key:0,class:d(n).e("mask"),style:{position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:o.zIndex,pointerEvents:o.pos&&o.targetAreaClickable?"none":"auto"}},o.$attrs),[(x(),j("svg",{style:{width:"100%",height:"100%"}},[O("path",{class:M(d(n).e("hollow")),style:st(d(a)),d:d(i)},null,14,["d"])]))],16)):ae("v-if",!0)}});var Pde=Ue(Ode,[["__file","mask.vue"]]);const Rde=["absolute","fixed"],Nde=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],ew=Fe({placement:{type:oe(String),values:Nde,default:"bottom"},reference:{type:oe(Object),default:null},strategy:{type:oe(String),values:Rde,default:"absolute"},offset:{type:Number,default:10},showArrow:Boolean,zIndex:{type:Number,default:2001}}),Mde={close:()=>!0},$de=J({name:"ElTourContent"}),Lde=J({...$de,props:ew,emits:Mde,setup(e,{emit:t}){const n=e,s=q(n.placement),r=q(n.strategy),i=q(null),a=q(null);xe(()=>n.placement,()=>{s.value=n.placement});const{contentStyle:o,arrowStyle:l}=Ade(nn(n,"reference"),i,a,s,r,nn(n,"offset"),nn(n,"zIndex"),nn(n,"showArrow")),u=k(()=>s.value.split("-")[0]),{ns:c}=Xe(ov),f=()=>{t("close")},h=m=>{m.detail.focusReason==="pointer"&&m.preventDefault()};return(m,g)=>(x(),j("div",{ref_key:"contentRef",ref:i,style:st(d(o)),class:M(d(c).e("content")),"data-side":d(u),tabindex:"-1"},[E(d(yh),{loop:"",trapped:"","focus-start-el":"container","focus-trap-el":i.value||void 0,onReleaseRequested:f,onFocusoutPrevented:h},{default:P(()=>[fe(m.$slots,"default")]),_:3},8,["focus-trap-el"]),m.showArrow?(x(),j("span",{key:0,ref_key:"arrowRef",ref:a,style:st(d(l)),class:M(d(c).e("arrow"))},null,6)):ae("v-if",!0)],14,["data-side"]))}});var Bde=Ue(Lde,[["__file","content.vue"]]),Fde=J({name:"ElTourSteps",props:{current:{type:Number,default:0}},emits:["update-total"],setup(e,{slots:t,emit:n}){let s=0;return()=>{var r,i;const a=(r=t.default)==null?void 0:r.call(t),o=[];let l=0;function u(c){Ye(c)&&c.forEach(f=>{var h;((h=(f==null?void 0:f.type)||{})==null?void 0:h.name)==="ElTourStep"&&(o.push(f),l+=1)})}return a.length&&u(vo((i=a[0])==null?void 0:i.children)),s!==l&&(s=l,n("update-total",l)),o.length?o[e.current]:null}}});const Vde=Fe({modelValue:Boolean,current:{type:Number,default:0},showArrow:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeIcon:{type:ln},placement:ew.placement,contentStyle:{type:oe([Object])},mask:{type:oe([Boolean,Object]),default:!0},gap:{type:oe(Object),default:()=>({offset:6,radius:2})},zIndex:{type:Number},scrollIntoViewOptions:{type:oe([Boolean,Object]),default:()=>({block:"center"})},type:{type:oe(String)},appendTo:{type:oe([String,Object]),default:"body"},closeOnPressEscape:{type:Boolean,default:!0},targetAreaClickable:{type:Boolean,default:!0}}),Ude={[At]:e=>In(e),"update:current":e=>ut(e),close:e=>ut(e),finish:()=>!0,change:e=>ut(e)},Hde=J({name:"ElTour"}),zde=J({...Hde,props:Vde,emits:Ude,setup(e,{emit:t}){const n=e,s=Re("tour"),r=q(0),i=q(),a=d3(n,"current",t,{passive:!0}),o=k(()=>{var $;return($=i.value)==null?void 0:$.target}),l=k(()=>[s.b(),v.value==="primary"?s.m("primary"):""]),u=k(()=>{var $;return(($=i.value)==null?void 0:$.placement)||n.placement}),c=k(()=>{var $,L;return(L=($=i.value)==null?void 0:$.contentStyle)!=null?L:n.contentStyle}),f=k(()=>{var $,L;return(L=($=i.value)==null?void 0:$.mask)!=null?L:n.mask}),h=k(()=>!!f.value&&n.modelValue),m=k(()=>In(f.value)?void 0:f.value),g=k(()=>{var $,L;return!!o.value&&((L=($=i.value)==null?void 0:$.showArrow)!=null?L:n.showArrow)}),p=k(()=>{var $,L;return(L=($=i.value)==null?void 0:$.scrollIntoViewOptions)!=null?L:n.scrollIntoViewOptions}),v=k(()=>{var $,L;return(L=($=i.value)==null?void 0:$.type)!=null?L:n.type}),{nextZIndex:y}=Dc(),_=y(),b=k(()=>{var $;return($=n.zIndex)!=null?$:_}),{mergedPosInfo:T,triggerTarget:S}=xde(o,nn(n,"modelValue"),nn(n,"gap"),f,p);xe(()=>n.modelValue,$=>{$||(a.value=0)});const C=()=>{n.closeOnPressEscape&&(t("update:modelValue",!1),t("close",a.value))},D=$=>{r.value=$},N=os();return Mt(ov,{currentStep:i,current:a,total:r,showClose:nn(n,"showClose"),closeIcon:nn(n,"closeIcon"),mergedType:v,ns:s,slots:N,updateModelValue($){t("update:modelValue",$)},onClose(){t("close",a.value)},onFinish(){t("finish")},onChange(){t("change",a.value)}}),($,L)=>(x(),j(Ke,null,[E(d(Rc),{to:$.appendTo},{default:P(()=>{var z,U;return[O("div",Nt({class:d(l)},$.$attrs),[E(Pde,{visible:d(h),fill:(z=d(m))==null?void 0:z.color,style:st((U=d(m))==null?void 0:U.style),pos:d(T),"z-index":d(b),"target-area-clickable":$.targetAreaClickable},null,8,["visible","fill","style","pos","z-index","target-area-clickable"]),$.modelValue?(x(),de(Bde,{key:d(a),reference:d(S),placement:d(u),"show-arrow":d(g),"z-index":d(b),style:st(d(c)),onClose:C},{default:P(()=>[E(d(Fde),{current:d(a),onUpdateTotal:D},{default:P(()=>[fe($.$slots,"default")]),_:3},8,["current"])]),_:3},8,["reference","placement","show-arrow","z-index","style"])):ae("v-if",!0)],16)]}),_:3},8,["to"]),ae(" just for IDE "),ae("v-if",!0)],64))}});var jde=Ue(zde,[["__file","tour.vue"]]);const qde=Fe({target:{type:oe([String,Object,Function])},title:String,description:String,showClose:{type:Boolean,default:void 0},closeIcon:{type:ln},showArrow:{type:Boolean,default:void 0},placement:ew.placement,mask:{type:oe([Boolean,Object]),default:void 0},contentStyle:{type:oe([Object])},prevButtonProps:{type:oe(Object)},nextButtonProps:{type:oe(Object)},scrollIntoViewOptions:{type:oe([Boolean,Object]),default:void 0},type:{type:oe(String)}}),Wde={close:()=>!0},Kde=J({name:"ElTourStep"}),Gde=J({...Kde,props:qde,emits:Wde,setup(e,{emit:t}){const n=e,{Close:s}=$1,{t:r}=zt(),{currentStep:i,current:a,total:o,showClose:l,closeIcon:u,mergedType:c,ns:f,slots:h,updateModelValue:m,onClose:g,onFinish:p,onChange:v}=Xe(ov);xe(n,N=>{i.value=N},{immediate:!0});const y=k(()=>{var N;return(N=n.showClose)!=null?N:l.value}),_=k(()=>{var N,$;return($=(N=n.closeIcon)!=null?N:u.value)!=null?$:s}),b=N=>{if(N)return vz(N,["children","onClick"])},T=()=>{var N,$;a.value-=1,(N=n.prevButtonProps)!=null&&N.onClick&&(($=n.prevButtonProps)==null||$.onClick()),v()},S=()=>{var N;a.value>=o.value-1?C():a.value+=1,(N=n.nextButtonProps)!=null&&N.onClick&&n.nextButtonProps.onClick(),v()},C=()=>{D(),p()},D=()=>{m(!1),g(),t("close")};return(N,$)=>(x(),j(Ke,null,[d(y)?(x(),j("button",{key:0,"aria-label":"Close",class:M(d(f).e("closebtn")),type:"button",onClick:D},[E(d(tt),{class:M(d(f).e("close"))},{default:P(()=>[(x(),de(Rt(d(_))))]),_:1},8,["class"])],2)):ae("v-if",!0),O("header",{class:M([d(f).e("header"),{"show-close":d(l)}])},[fe(N.$slots,"header",{},()=>[O("span",{role:"heading",class:M(d(f).e("title"))},ce(N.title),3)])],2),O("div",{class:M(d(f).e("body"))},[fe(N.$slots,"default",{},()=>[O("span",null,ce(N.description),1)])],2),O("footer",{class:M(d(f).e("footer"))},[O("div",{class:M(d(f).b("indicators"))},[d(h).indicators?(x(),de(Rt(d(h).indicators),{key:0,current:d(a),total:d(o)},null,8,["current","total"])):(x(!0),j(Ke,{key:1},bt(d(o),(L,z)=>(x(),j("span",{key:L,class:M([d(f).b("indicator"),z===d(a)?"is-active":""])},null,2))),128))],2),O("div",{class:M(d(f).b("buttons"))},[d(a)>0?(x(),de(d(mn),Nt({key:0,size:"small",type:d(c)},b(N.prevButtonProps),{onClick:T}),{default:P(()=>{var L,z;return[Te(ce((z=(L=N.prevButtonProps)==null?void 0:L.children)!=null?z:d(r)("el.tour.previous")),1)]}),_:1},16,["type"])):ae("v-if",!0),d(a)<=d(o)-1?(x(),de(d(mn),Nt({key:1,size:"small",type:d(c)==="primary"?"default":"primary"},b(N.nextButtonProps),{onClick:S}),{default:P(()=>{var L,z;return[Te(ce((z=(L=N.nextButtonProps)==null?void 0:L.children)!=null?z:d(a)===d(o)-1?d(r)("el.tour.finish"):d(r)("el.tour.next")),1)]}),_:1},16,["type"])):ae("v-if",!0)],2)],2)],64))}});var cP=Ue(Gde,[["__file","step.vue"]]);const Yde=Tt(jde,{TourStep:cP}),Xde=kn(cP),Qde=Fe({container:{type:oe([String,Object])},offset:{type:Number,default:0},bound:{type:Number,default:15},duration:{type:Number,default:300},marker:{type:Boolean,default:!0},type:{type:oe(String),default:"default"},direction:{type:oe(String),default:"vertical"}}),Jde={change:e=>ht(e),click:(e,t)=>e instanceof MouseEvent&&(ht(t)||An(t))},dP=Symbol("anchor"),Zde=J({name:"ElAnchor"}),efe=J({...Zde,props:Qde,emits:Jde,setup(e,{expose:t,emit:n}){const s=e,r=q(""),i=q(null),a=q(null),o=q(),l={};let u=!1,c=0;const f=Re("anchor"),h=k(()=>[f.b(),s.type==="underline"?f.m("underline"):"",f.m(s.direction)]),m=N=>{l[N.href]=N.el},g=N=>{delete l[N]},p=N=>{r.value!==N&&(r.value=N,n("change",N))};let v=null;const y=N=>{if(!o.value)return;const $=fp(N);if(!$)return;v&&v(),u=!0;const L=HC($,o.value),z=Ly($,L),U=L.scrollHeight-L.clientHeight,W=Math.min(z-s.offset,U);v=Rz(o.value,c,W,s.duration,()=>{setTimeout(()=>{u=!1},20)})},_=N=>{N&&(p(N),y(N))},b=(N,$)=>{n("click",N,$),_($)},T=Iq(()=>{o.value&&(c=zC(o.value));const N=S();u||An(N)||p(N)}),S=()=>{if(!o.value)return;const N=zC(o.value),$=[];for(const L of Object.keys(l)){const z=fp(L);if(!z)continue;const U=HC(z,o.value),W=Ly(z,U);$.push({top:W-s.offset-s.bound,href:L})}$.sort((L,z)=>L.top-z.top);for(let L=0;L<$.length;L++){const z=$[L],U=$[L+1];if(L===0&&N===0)return"";if(z.top<=N&&(!U||U.top>N))return z.href}},C=()=>{const N=fp(s.container);!N||Lg(N)?o.value=window:o.value=N};an(o,"scroll",T);const D=k(()=>{if(!i.value||!a.value||!r.value)return{};const N=l[r.value];if(!N)return{};const $=i.value.getBoundingClientRect(),L=a.value.getBoundingClientRect(),z=N.getBoundingClientRect();return s.direction==="horizontal"?{left:`${z.left-$.left}px`,width:`${z.width}px`,opacity:1}:{top:`${z.top-$.top+(z.height-L.height)/2}px`,opacity:1}});return gt(()=>{C();const N=decodeURIComponent(window.location.hash);fp(N)?_(N):T()}),xe(()=>s.container,()=>{C()}),Mt(dP,{ns:f,direction:s.direction,currentAnchor:r,addLink:m,removeLink:g,handleClick:b}),t({scrollTo:_}),(N,$)=>(x(),j("div",{ref_key:"anchorRef",ref:i,class:M(d(h))},[N.marker?(x(),j("div",{key:0,ref_key:"markerRef",ref:a,class:M(d(f).e("marker")),style:st(d(D))},null,6)):ae("v-if",!0),O("div",{class:M(d(f).e("list"))},[fe(N.$slots,"default")],2)],2))}});var tfe=Ue(efe,[["__file","anchor.vue"]]);const nfe=Fe({title:String,href:String}),sfe=J({name:"ElAnchorLink"}),rfe=J({...sfe,props:nfe,setup(e){const t=e,n=q(null),{ns:s,direction:r,currentAnchor:i,addLink:a,removeLink:o,handleClick:l}=Xe(dP),u=k(()=>[s.e("link"),s.is("active",i.value===t.href)]),c=f=>{l(f,t.href)};return xe(()=>t.href,(f,h)=>{it(()=>{h&&o(h),f&&a({href:f,el:n.value})})}),gt(()=>{const{href:f}=t;f&&a({href:f,el:n.value})}),un(()=>{const{href:f}=t;f&&o(f)}),(f,h)=>(x(),j("div",{class:M(d(s).e("item"))},[O("a",{ref_key:"linkRef",ref:n,class:M(d(u)),href:f.href,onClick:c},[fe(f.$slots,"default",{},()=>[Te(ce(f.title),1)])],10,["href"]),f.$slots["sub-link"]&&d(r)==="vertical"?(x(),j("div",{key:0,class:M(d(s).e("list"))},[fe(f.$slots,"sub-link")],2)):ae("v-if",!0)],2))}});var fP=Ue(rfe,[["__file","anchor-link.vue"]]);const ife=Tt(tfe,{AnchorLink:fP}),afe=kn(fP),ofe=Fe({options:{type:oe(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},block:Boolean,size:ts,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,..._s(["ariaLabel"])}),lfe={[At]:e=>ht(e)||ut(e)||In(e),[gn]:e=>ht(e)||ut(e)||In(e)},ufe=J({name:"ElSegmented"}),cfe=J({...ufe,props:ofe,emits:lfe,setup(e,{emit:t}){const n=e,s=Re("segmented"),r=ys(),i=Kn(),a=Ls(),{formItem:o}=Bs(),{inputId:l,isLabeledByFormItem:u}=Ai(n,{formItemContext:o}),c=q(null),f=QB(),h=Ct({isInit:!1,width:0,translateX:0,focusVisible:!1}),m=$=>{const L=g($);t(At,L),t(gn,L)},g=$=>Pt($)?$.value:$,p=$=>Pt($)?$.label:$,v=$=>!!(a.value||Pt($)&&$.disabled),y=$=>n.modelValue===g($),_=$=>n.options.find(L=>g(L)===$),b=$=>[s.e("item"),s.is("selected",y($)),s.is("disabled",v($))],T=()=>{if(!c.value)return;const $=c.value.querySelector(".is-selected"),L=c.value.querySelector(".is-selected input");if(!$||!L){h.width=0,h.translateX=0,h.focusVisible=!1;return}const z=$.getBoundingClientRect();h.isInit=!0,h.width=z.width,h.translateX=$.offsetLeft;try{h.focusVisible=L.matches(":focus-visible")}catch{}},S=k(()=>[s.b(),s.m(i.value),s.is("block",n.block)]),C=k(()=>({width:`${h.width}px`,transform:`translateX(${h.translateX}px)`,display:h.isInit?"block":"none"})),D=k(()=>[s.e("item-selected"),s.is("disabled",v(_(n.modelValue))),s.is("focus-visible",h.focusVisible)]),N=k(()=>n.name||r.value);return Sn(c,T),xe(f,T),xe(()=>n.modelValue,()=>{var $;T(),n.validateEvent&&(($=o==null?void 0:o.validate)==null||$.call(o,"change").catch(L=>void 0))},{flush:"post"}),($,L)=>$.options.length?(x(),j("div",{key:0,id:d(l),ref_key:"segmentedRef",ref:c,class:M(d(S)),role:"radiogroup","aria-label":d(u)?void 0:$.ariaLabel||"segmented","aria-labelledby":d(u)?d(o).labelId:void 0},[O("div",{class:M(d(s).e("group"))},[O("div",{style:st(d(C)),class:M(d(D))},null,6),(x(!0),j(Ke,null,bt($.options,(z,U)=>(x(),j("label",{key:U,class:M(b(z))},[O("input",{class:M(d(s).e("item-input")),type:"radio",name:d(N),disabled:v(z),checked:y(z),onChange:W=>m(z)},null,42,["name","disabled","checked","onChange"]),O("div",{class:M(d(s).e("item-label"))},[fe($.$slots,"default",{item:z},()=>[Te(ce(p(z)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):ae("v-if",!0)}});var dfe=Ue(cfe,[["__file","segmented.vue"]]);const ffe=Tt(dfe),hfe=(e,t)=>{const n=e.toLowerCase();return(t.label||t.value).toLowerCase().includes(n)},pfe=(e,t,n)=>{const{selectionEnd:s}=e;if(s===null)return;const r=e.value,i=Ds(t);let a=-1,o;for(let l=s-1;l>=0;--l){const u=r[l];if(u===n||u===`
|
||
`||u==="\r"){a=l;continue}if(i.includes(u)){const c=a===-1?s:a;o={pattern:r.slice(l+1,c),start:l+1,end:c,prefix:u,prefixIndex:l,splitIndex:a,selectionEnd:s};break}}return o},mfe=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,s=e.selectionEnd!==null?e.selectionEnd:0,r=t.useSelectionEnd?s:n,i=["direction","boxSizing","width","height","overflowX","overflowY","borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth","borderStyle","paddingTop","paddingRight","paddingBottom","paddingLeft","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","lineHeight","fontFamily","textAlign","textTransform","textIndent","textDecoration","letterSpacing","wordSpacing","tabSize","MozTabSize"];if(t.debug){const h=document.querySelector("#input-textarea-caret-position-mirror-div");h!=null&&h.parentNode&&h.parentNode.removeChild(h)}const a=document.createElement("div");a.id="input-textarea-caret-position-mirror-div",document.body.appendChild(a);const o=a.style,l=window.getComputedStyle(e),u=e.nodeName==="INPUT";o.whiteSpace=u?"nowrap":"pre-wrap",u||(o.wordWrap="break-word"),o.position="absolute",t.debug||(o.visibility="hidden"),i.forEach(h=>{if(u&&h==="lineHeight")if(l.boxSizing==="border-box"){const m=Number.parseInt(l.height),g=Number.parseInt(l.paddingTop)+Number.parseInt(l.paddingBottom)+Number.parseInt(l.borderTopWidth)+Number.parseInt(l.borderBottomWidth),p=g+Number.parseInt(l.lineHeight);m>p?o.lineHeight=`${m-g}px`:m===p?o.lineHeight=l.lineHeight:o.lineHeight="0"}else o.lineHeight=l.height;else o[h]=l[h]}),u1()?e.scrollHeight>Number.parseInt(l.height)&&(o.overflowY="scroll"):o.overflow="hidden",a.textContent=e.value.slice(0,Math.max(0,r)),u&&a.textContent&&(a.textContent=a.textContent.replace(/\s/g," "));const c=document.createElement("span");c.textContent=e.value.slice(Math.max(0,r))||".",c.style.position="relative",c.style.left=`${-e.scrollLeft}px`,c.style.top=`${-e.scrollTop}px`,a.appendChild(c);const f={top:c.offsetTop+Number.parseInt(l.borderTopWidth),left:c.offsetLeft+Number.parseInt(l.borderLeftWidth),height:Number.parseInt(l.fontSize)*1.5};return t.debug?c.style.backgroundColor="#aaa":document.body.removeChild(a),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},gfe=Fe({...a2,options:{type:oe(Array),default:()=>[]},prefix:{type:oe([String,Array]),default:"@",validator:e=>ht(e)?e.length===1:e.every(t=>ht(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:oe([Boolean,Function]),default:()=>hfe,validator:e=>e===!1?!0:pt(e)},placement:{type:oe(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:oe(Function)},modelValue:String,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:oe(Object),default:()=>({})}}),vfe={[At]:e=>ht(e),search:(e,t)=>ht(e)&&ht(t),select:(e,t)=>ht(e.value)&&ht(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},yfe=Fe({options:{type:oe(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),bfe={select:e=>ht(e.value)},_fe=J({name:"ElMentionDropdown"}),wfe=J({..._fe,props:yfe,emits:bfe,setup(e,{expose:t,emit:n}){const s=e,r=Re("mention"),{t:i}=zt(),a=q(-1),o=q(),l=q(),u=q(),c=(b,T)=>[r.be("dropdown","item"),r.is("hovering",a.value===T),r.is("disabled",b.disabled||s.disabled)],f=b=>{b.disabled||s.disabled||n("select",b)},h=b=>{a.value=b},m=k(()=>s.disabled||s.options.every(b=>b.disabled)),g=k(()=>s.options[a.value]),p=()=>{g.value&&n("select",g.value)},v=b=>{const{options:T}=s;if(T.length===0||m.value)return;b==="next"?(a.value++,a.value===T.length&&(a.value=0)):b==="prev"&&(a.value--,a.value<0&&(a.value=T.length-1));const S=T[a.value];if(S.disabled){v(b);return}it(()=>y(S))},y=b=>{var T,S,C,D;const{options:N}=s,$=N.findIndex(z=>z.value===b.value),L=(T=l.value)==null?void 0:T[$];if(L){const z=(C=(S=u.value)==null?void 0:S.querySelector)==null?void 0:C.call(S,`.${r.be("dropdown","wrap")}`);z&&A1(z,L)}(D=o.value)==null||D.handleScroll()};return xe(()=>s.options,()=>{m.value||s.options.length===0?a.value=-1:a.value=0},{immediate:!0}),t({hoveringIndex:a,navigateOptions:v,selectHoverOption:p,hoverOption:g}),(b,T)=>(x(),j("div",{ref_key:"dropdownRef",ref:u,class:M(d(r).b("dropdown"))},[b.$slots.header?(x(),j("div",{key:0,class:M(d(r).be("dropdown","header"))},[fe(b.$slots,"header")],2)):ae("v-if",!0),yt(E(d(aa),{id:b.contentId,ref_key:"scrollbarRef",ref:o,tag:"ul","wrap-class":d(r).be("dropdown","wrap"),"view-class":d(r).be("dropdown","list"),role:"listbox","aria-label":b.ariaLabel,"aria-orientation":"vertical"},{default:P(()=>[(x(!0),j(Ke,null,bt(b.options,(S,C)=>(x(),j("li",{id:`${b.contentId}-${C}`,ref_for:!0,ref_key:"optionRefs",ref:l,key:S.value,class:M(c(S,C)),role:"option","aria-disabled":S.disabled||b.disabled||void 0,"aria-selected":a.value===C,onMouseenter:D=>h(C),onClick:ft(D=>f(S),["stop"])},[fe(b.$slots,"label",{item:S,index:C},()=>{var D;return[O("span",null,ce((D=S.label)!=null?D:S.value),1)]})],42,["id","aria-disabled","aria-selected","onMouseenter","onClick"]))),128))]),_:3},8,["id","wrap-class","view-class","aria-label"]),[[Bt,b.options.length>0&&!b.loading]]),b.loading?(x(),j("div",{key:1,class:M(d(r).be("dropdown","loading"))},[fe(b.$slots,"loading",{},()=>[Te(ce(d(i)("el.mention.loading")),1)])],2)):ae("v-if",!0),b.$slots.footer?(x(),j("div",{key:2,class:M(d(r).be("dropdown","footer"))},[fe(b.$slots,"footer")],2)):ae("v-if",!0)],2))}});var Sfe=Ue(wfe,[["__file","mention-dropdown.vue"]]);const Tfe=J({name:"ElMention",inheritAttrs:!1}),Cfe=J({...Tfe,props:gfe,emits:vfe,setup(e,{expose:t,emit:n}){const s=e,r=k(()=>hi(s,Object.keys(a2))),i=Re("mention"),a=Ls(),o=ys(),l=q(),u=q(),c=q(),f=q(!1),h=q(),m=q(),g=k(()=>s.showArrow?s.placement:`${s.placement}-start`),p=k(()=>s.showArrow?["bottom","top"]:["bottom-start","top-start"]),v=k(()=>{const{filterOption:U,options:W}=s;return!m.value||!U?W:W.filter(K=>U(m.value.pattern,K))}),y=k(()=>f.value&&(!!v.value.length||s.loading)),_=k(()=>{var U;return`${o.value}-${(U=c.value)==null?void 0:U.hoveringIndex}`}),b=U=>{n("update:modelValue",U),$()},T=U=>{var W,K,X,B;if("key"in U&&!((W=l.value)!=null&&W.isComposing)){if(["ArrowLeft","ArrowRight"].includes(U.key))$();else if(["ArrowUp","ArrowDown"].includes(U.key)){if(!f.value)return;U.preventDefault();const Q=U.key==="ArrowUp"?"prev":"next";(K=c.value)==null||K.navigateOptions(Q)}else if(["Enter"].includes(U.key)){if(!f.value)return;U.preventDefault(),(X=c.value)!=null&&X.hoverOption?(B=c.value)==null||B.selectHoverOption():f.value=!1}else if(["Escape"].includes(U.key)){if(!f.value)return;U.preventDefault(),f.value=!1}else if(["Backspace"].includes(U.key)&&s.whole&&m.value){const{splitIndex:Q,selectionEnd:Y,pattern:F,prefixIndex:H,prefix:Z}=m.value,se=N();if(!se)return;const ne=se.value,we=s.options.find(Ee=>Ee.value===F);if((pt(s.checkIsWhole)?s.checkIsWhole(F,Z):we)&&Q!==-1&&Q+1===Y){U.preventDefault();const Ee=ne.slice(0,H)+ne.slice(Q+1);n(At,Ee);const te=H;it(()=>{se.selectionStart=te,se.selectionEnd=te,z()})}}}},{wrapperRef:S}=gh(l,{beforeFocus(){return a.value},afterFocus(){$()},beforeBlur(U){var W;return(W=u.value)==null?void 0:W.isFocusInsideContent(U)},afterBlur(){f.value=!1}}),C=()=>{$()},D=U=>{if(!m.value)return;const W=N();if(!W)return;const K=W.value,{split:X}=s,B=K.slice(m.value.end),Q=B.startsWith(X),Y=`${U.value}${Q?"":X}`,F=K.slice(0,m.value.start)+Y+B;n(At,F),n("select",U,m.value.prefix);const H=m.value.start+Y.length+(Q?1:0);it(()=>{W.selectionStart=H,W.selectionEnd=H,W.focus(),z()})},N=()=>{var U,W;return s.type==="textarea"?(U=l.value)==null?void 0:U.textarea:(W=l.value)==null?void 0:W.input},$=()=>{setTimeout(()=>{L(),z(),it(()=>{var U;return(U=u.value)==null?void 0:U.updatePopper()})},0)},L=()=>{const U=N();if(!U)return;const W=mfe(U),K=U.getBoundingClientRect(),X=l.value.$el.getBoundingClientRect();h.value={position:"absolute",width:0,height:`${W.height}px`,left:`${W.left+K.left-X.left}px`,top:`${W.top+K.top-X.top}px`}},z=()=>{const U=N();if(document.activeElement!==U){f.value=!1;return}const{prefix:W,split:K}=s;if(m.value=pfe(U,W,K),m.value&&m.value.splitIndex===-1){f.value=!0,n("search",m.value.pattern,m.value.prefix);return}f.value=!1};return t({input:l,tooltip:u,dropdownVisible:y}),(U,W)=>(x(),j("div",{ref_key:"wrapperRef",ref:S,class:M(d(i).b())},[E(d(Un),Nt(Nt(d(r),U.$attrs),{ref_key:"elInputRef",ref:l,"model-value":U.modelValue,disabled:d(a),role:d(y)?"combobox":void 0,"aria-activedescendant":d(y)?d(_)||"":void 0,"aria-controls":d(y)?d(o):void 0,"aria-expanded":d(y)||void 0,"aria-label":U.ariaLabel,"aria-autocomplete":d(y)?"none":void 0,"aria-haspopup":d(y)?"listbox":void 0,onInput:b,onKeydown:T,onMousedown:C}),Gr({_:2},[bt(U.$slots,(K,X)=>({name:X,fn:P(B=>[fe(U.$slots,X,di(So(B)))])}))]),1040,["model-value","disabled","role","aria-activedescendant","aria-controls","aria-expanded","aria-label","aria-autocomplete","aria-haspopup"]),E(d(is),{ref_key:"tooltipRef",ref:u,visible:d(y),"popper-class":[d(i).e("popper"),U.popperClass],"popper-options":U.popperOptions,placement:d(g),"fallback-placements":d(p),effect:"light",pure:"",offset:U.offset,"show-arrow":U.showArrow},{default:P(()=>[O("div",{style:st(h.value)},null,4)]),content:P(()=>{var K;return[E(Sfe,{ref_key:"dropdownRef",ref:c,options:d(v),disabled:d(a),loading:U.loading,"content-id":d(o),"aria-label":U.ariaLabel,onSelect:D,onClick:ft((K=l.value)==null?void 0:K.focus,["stop"])},Gr({_:2},[bt(U.$slots,(X,B)=>({name:B,fn:P(Q=>[fe(U.$slots,B,di(So(Q)))])}))]),1032,["options","disabled","loading","content-id","aria-label","onClick"])]}),_:3},8,["visible","popper-class","popper-options","placement","fallback-placements","offset","show-arrow"])],2))}});var Efe=Ue(Cfe,[["__file","mention.vue"]]);const xfe=Tt(Efe);var kfe=[XK,oG,CX,Gle,f2,$X,aD,GX,YX,mn,hD,oJ,fJ,LD,BD,SZ,JD,AZ,Jr,LJ,jD,t8,eee,tee,bh,xee,jI,v2,u8,c8,y2,b2,_8,Bte,Fte,Mc,k8,ane,$8,L8,B8,$c,Ba,Fa,tt,tv,D2,Un,_h,F8,j8,q8,Use,W8,Kse,wh,zre,Jre,sD,Q8,Jg,YJ,m2,lie,hie,e8,aa,Ti,Ro,yre,mO,iae,aae,Rae,Bae,vO,Yae,roe,ioe,Sh,Bc,Fc,Kle,lue,uue,Ji,pue,UQ,_ue,Eue,xue,is,Que,cce,Hm,Ice,Wce,av,Cde,Yde,Xde,ife,afe,ffe,xfe];const Fr="ElInfiniteScroll",Afe=50,Ife=200,Dfe=0,Ofe={delay:{type:Number,default:Ife},distance:{type:Number,default:Dfe},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},tw=(e,t)=>Object.entries(Ofe).reduce((n,[s,r])=>{var i,a;const{type:o,default:l}=r,u=e.getAttribute(`infinite-scroll-${s}`);let c=(a=(i=t[u])!=null?i:u)!=null?a:l;return c=c==="false"?!1:c,c=o(c),n[s]=Number.isNaN(c)?l:c,n},{}),hP=e=>{const{observer:t}=e[Fr];t&&(t.disconnect(),delete e[Fr].observer)},Pfe=(e,t)=>{const{container:n,containerEl:s,instance:r,observer:i,lastScrollTop:a}=e[Fr],{disabled:o,distance:l}=tw(e,r),{clientHeight:u,scrollHeight:c,scrollTop:f}=s,h=f-a;if(e[Fr].lastScrollTop=f,i||o||h<0)return;let m=!1;if(n===e)m=c-(u+f)<=l;else{const{clientTop:g,scrollHeight:p}=e,v=Ly(e,s);m=f+u>=v+g+p-l}m&&t.call(r)};function j0(e,t){const{containerEl:n,instance:s}=e[Fr],{disabled:r}=tw(e,s);r||n.clientHeight===0||(n.scrollHeight<=n.clientHeight?t.call(s):hP(e))}const Rfe={async mounted(e,t){const{instance:n,value:s}=t;pt(s)||es(Fr,"'v-infinite-scroll' binding value must be a function"),await it();const{delay:r,immediate:i}=tw(e,n),a=k1(e,!0),o=a===window?document.documentElement:a,l=_l(Pfe.bind(null,e,s),r);if(a){if(e[Fr]={instance:n,container:a,containerEl:o,delay:r,cb:s,onScroll:l,lastScrollTop:o.scrollTop},i){const u=new MutationObserver(_l(j0.bind(null,e,s),Afe));e[Fr].observer=u,u.observe(e,{childList:!0,subtree:!0}),j0(e,s)}a.addEventListener("scroll",l)}},unmounted(e){if(!e[Fr])return;const{container:t,onScroll:n}=e[Fr];t==null||t.removeEventListener("scroll",n),hP(e)},async updated(e){if(!e[Fr])await it();else{const{containerEl:t,cb:n,observer:s}=e[Fr];t.clientHeight&&s&&j0(e,n)}}},Wb=Rfe;Wb.install=e=>{e.directive("InfiniteScroll",Wb)};const Nfe=Wb;function Mfe(e){let t;const n=q(!1),s=Ct({...e,originalPosition:"",originalOverflow:"",visible:!1});function r(h){s.text=h}function i(){const h=s.parent,m=f.ns;if(!h.vLoadingAddClassList){let g=h.getAttribute("loading-number");g=Number.parseInt(g)-1,g?h.setAttribute("loading-number",g.toString()):(Rs(h,m.bm("parent","relative")),h.removeAttribute("loading-number")),Rs(h,m.bm("parent","hidden"))}a(),c.unmount()}function a(){var h,m;(m=(h=f.$el)==null?void 0:h.parentNode)==null||m.removeChild(f.$el)}function o(){var h;e.beforeClose&&!e.beforeClose()||(n.value=!0,clearTimeout(t),t=setTimeout(l,400),s.visible=!1,(h=e.closed)==null||h.call(e))}function l(){if(!n.value)return;const h=s.parent;n.value=!1,h.vLoadingAddClassList=void 0,i()}const c=Ig(J({name:"ElLoading",setup(h,{expose:m}){const{ns:g,zIndex:p}=Yg("loading");return m({ns:g,zIndex:p}),()=>{const v=s.spinner||s.svg,y=ot("svg",{class:"circular",viewBox:s.svgViewBox?s.svgViewBox:"0 0 50 50",...v?{innerHTML:v}:{}},[ot("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),_=s.text?ot("p",{class:g.b("text")},[s.text]):void 0;return ot(Wn,{name:g.b("fade"),onAfterLeave:l},{default:P(()=>[yt(E("div",{style:{backgroundColor:s.background||""},class:[g.b("mask"),s.customClass,s.fullscreen?"is-fullscreen":""]},[ot("div",{class:g.b("spinner")},[y,_])]),[[Bt,s.visible]])])})}}})),f=c.mount(document.createElement("div"));return{...cs(s),setText:r,removeElLoadingChild:a,close:o,handleAfterLeave:l,vm:f,get $el(){return f.$el}}}let Ap;const Kb=function(e={}){if(!Ht)return;const t=$fe(e);if(t.fullscreen&&Ap)return Ap;const n=Mfe({...t,closed:()=>{var r;(r=t.closed)==null||r.call(t),t.fullscreen&&(Ap=void 0)}});Lfe(t,t.parent,n),Px(t,t.parent,n),t.parent.vLoadingAddClassList=()=>Px(t,t.parent,n);let s=t.parent.getAttribute("loading-number");return s?s=`${Number.parseInt(s)+1}`:s="1",t.parent.setAttribute("loading-number",s),t.parent.appendChild(n.$el),it(()=>n.visible.value=t.visible),t.fullscreen&&(Ap=n),n},$fe=e=>{var t,n,s,r;let i;return ht(e.target)?i=(t=document.querySelector(e.target))!=null?t:document.body:i=e.target||document.body,{parent:i===document.body||e.body?document.body:i,background:e.background||"",svg:e.svg||"",svgViewBox:e.svgViewBox||"",spinner:e.spinner||!1,text:e.text||"",fullscreen:i===document.body&&((n=e.fullscreen)!=null?n:!0),lock:(s=e.lock)!=null?s:!1,customClass:e.customClass||"",visible:(r=e.visible)!=null?r:!0,beforeClose:e.beforeClose,closed:e.closed,target:i}},Lfe=async(e,t,n)=>{const{nextZIndex:s}=n.vm.zIndex||n.vm._.exposed.zIndex,r={};if(e.fullscreen)n.originalPosition.value=co(document.body,"position"),n.originalOverflow.value=co(document.body,"overflow"),r.zIndex=s();else if(e.parent===document.body){n.originalPosition.value=co(document.body,"position"),await it();for(const i of["top","left"]){const a=i==="top"?"scrollTop":"scrollLeft";r[i]=`${e.target.getBoundingClientRect()[i]+document.body[a]+document.documentElement[a]-Number.parseInt(co(document.body,`margin-${i}`),10)}px`}for(const i of["height","width"])r[i]=`${e.target.getBoundingClientRect()[i]}px`}else n.originalPosition.value=co(t,"position");for(const[i,a]of Object.entries(r))n.$el.style[i]=a},Px=(e,t,n)=>{const s=n.vm.ns||n.vm._.exposed.ns;["absolute","fixed","sticky"].includes(n.originalPosition.value)?Rs(t,s.bm("parent","relative")):Vr(t,s.bm("parent","relative")),e.fullscreen&&e.lock?Vr(t,s.bm("parent","hidden")):Rs(t,s.bm("parent","hidden"))},rm=Symbol("ElLoading"),Rx=(e,t)=>{var n,s,r,i;const a=t.instance,o=h=>Pt(t.value)?t.value[h]:void 0,l=h=>{const m=ht(h)&&(a==null?void 0:a[h])||h;return m&&q(m)},u=h=>l(o(h)||e.getAttribute(`element-loading-${$o(h)}`)),c=(n=o("fullscreen"))!=null?n:t.modifiers.fullscreen,f={text:u("text"),svg:u("svg"),svgViewBox:u("svgViewBox"),spinner:u("spinner"),background:u("background"),customClass:u("customClass"),fullscreen:c,target:(s=o("target"))!=null?s:c?void 0:e,body:(r=o("body"))!=null?r:t.modifiers.body,lock:(i=o("lock"))!=null?i:t.modifiers.lock};e[rm]={options:f,instance:Kb(f)}},Bfe=(e,t)=>{for(const n of Object.keys(t))yn(t[n])&&(t[n].value=e[n])},Nx={mounted(e,t){t.value&&Rx(e,t)},updated(e,t){const n=e[rm];t.oldValue!==t.value&&(t.value&&!t.oldValue?Rx(e,t):t.value&&t.oldValue?Pt(t.value)&&Bfe(t.value,n.options):n==null||n.instance.close())},unmounted(e){var t;(t=e[rm])==null||t.instance.close(),e[rm]=null}},Ffe={install(e){e.directive("loading",Nx),e.config.globalProperties.$loading=Kb},directive:Nx,service:Kb},pP=["success","info","warning","error"],As=xn({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:Ht?document.body:void 0}),Vfe=Fe({customClass:{type:String,default:As.customClass},center:{type:Boolean,default:As.center},dangerouslyUseHTMLString:{type:Boolean,default:As.dangerouslyUseHTMLString},duration:{type:Number,default:As.duration},icon:{type:ln,default:As.icon},id:{type:String,default:As.id},message:{type:oe([String,Object,Function]),default:As.message},onClose:{type:oe(Function),default:As.onClose},showClose:{type:Boolean,default:As.showClose},type:{type:String,values:pP,default:As.type},plain:{type:Boolean,default:As.plain},offset:{type:Number,default:As.offset},zIndex:{type:Number,default:As.zIndex},grouping:{type:Boolean,default:As.grouping},repeatNum:{type:Number,default:As.repeatNum}}),Ufe={destroy:()=>!0},pi=q_([]),Hfe=e=>{const t=pi.findIndex(r=>r.id===e),n=pi[t];let s;return t>0&&(s=pi[t-1]),{current:n,prev:s}},zfe=e=>{const{prev:t}=Hfe(e);return t?t.vm.exposed.bottom.value:0},jfe=(e,t)=>pi.findIndex(s=>s.id===e)>0?16:t,qfe=J({name:"ElMessage"}),Wfe=J({...qfe,props:Vfe,emits:Ufe,setup(e,{expose:t}){const n=e,{Close:s}=L1,{ns:r,zIndex:i}=Yg("message"),{currentZIndex:a,nextZIndex:o}=i,l=q(),u=q(!1),c=q(0);let f;const h=k(()=>n.type?n.type==="error"?"danger":n.type:"info"),m=k(()=>{const D=n.type;return{[r.bm("icon",D)]:D&&Do[D]}}),g=k(()=>n.icon||Do[n.type]||""),p=k(()=>zfe(n.id)),v=k(()=>jfe(n.id,n.offset)+p.value),y=k(()=>c.value+v.value),_=k(()=>({top:`${v.value}px`,zIndex:a.value}));function b(){n.duration!==0&&({stop:f}=Dl(()=>{S()},n.duration))}function T(){f==null||f()}function S(){u.value=!1}function C({code:D}){D===at.esc&&S()}return gt(()=>{b(),o(),u.value=!0}),xe(()=>n.repeatNum,()=>{T(),b()}),an(document,"keydown",C),Sn(l,()=>{c.value=l.value.getBoundingClientRect().height}),t({visible:u,bottom:y,close:S}),(D,N)=>(x(),de(Wn,{name:d(r).b("fade"),onBeforeLeave:D.onClose,onAfterLeave:$=>D.$emit("destroy"),persisted:""},{default:P(()=>[yt(O("div",{id:D.id,ref_key:"messageRef",ref:l,class:M([d(r).b(),{[d(r).m(D.type)]:D.type},d(r).is("center",D.center),d(r).is("closable",D.showClose),d(r).is("plain",D.plain),D.customClass]),style:st(d(_)),role:"alert",onMouseenter:T,onMouseleave:b},[D.repeatNum>1?(x(),de(d(aD),{key:0,value:D.repeatNum,type:d(h),class:M(d(r).e("badge"))},null,8,["value","type","class"])):ae("v-if",!0),d(g)?(x(),de(d(tt),{key:1,class:M([d(r).e("icon"),d(m)])},{default:P(()=>[(x(),de(Rt(d(g))))]),_:1},8,["class"])):ae("v-if",!0),fe(D.$slots,"default",{},()=>[D.dangerouslyUseHTMLString?(x(),j(Ke,{key:1},[ae(" Caution here, message could've been compromised, never use user's input as message "),O("p",{class:M(d(r).e("content")),innerHTML:D.message},null,10,["innerHTML"])],2112)):(x(),j("p",{key:0,class:M(d(r).e("content"))},ce(D.message),3))]),D.showClose?(x(),de(d(tt),{key:2,class:M(d(r).e("closeBtn")),onClick:ft(S,["stop"])},{default:P(()=>[E(d(s))]),_:1},8,["class","onClick"])):ae("v-if",!0)],46,["id"]),[[Bt,u.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var Kfe=Ue(Wfe,[["__file","message.vue"]]);let Gfe=1;const mP=e=>{const t=!e||ht(e)||Cn(e)||pt(e)?{message:e}:e,n={...As,...t};if(!n.appendTo)n.appendTo=document.body;else if(ht(n.appendTo)){let s=document.querySelector(n.appendTo);Ir(s)||(s=document.body),n.appendTo=s}return In(li.grouping)&&!n.grouping&&(n.grouping=li.grouping),ut(li.duration)&&n.duration===3e3&&(n.duration=li.duration),ut(li.offset)&&n.offset===16&&(n.offset=li.offset),In(li.showClose)&&!n.showClose&&(n.showClose=li.showClose),n},Yfe=e=>{const t=pi.indexOf(e);if(t===-1)return;pi.splice(t,1);const{handler:n}=e;n.close()},Xfe=({appendTo:e,...t},n)=>{const s=`message_${Gfe++}`,r=t.onClose,i=document.createElement("div"),a={...t,id:s,onClose:()=>{r==null||r(),Yfe(c)},onDestroy:()=>{Co(null,i)}},o=E(Kfe,a,pt(a.message)||Cn(a.message)?{default:pt(a.message)?a.message:()=>a.message}:null);o.appContext=n||lc._context,Co(o,i),e.appendChild(i.firstElementChild);const l=o.component,c={id:s,vnode:o,vm:l,handler:{close:()=>{l.exposed.visible.value=!1}},props:o.component.props};return c},lc=(e={},t)=>{if(!Ht)return{close:()=>{}};const n=mP(e);if(n.grouping&&pi.length){const r=pi.find(({vnode:i})=>{var a;return((a=i.props)==null?void 0:a.message)===n.message});if(r)return r.props.repeatNum+=1,r.props.type=n.type,r.handler}if(ut(li.max)&&pi.length>=li.max)return{close:()=>{}};const s=Xfe(n,t);return pi.push(s),s.handler};pP.forEach(e=>{lc[e]=(t={},n)=>{const s=mP(t);return lc({...s,type:e},n)}});function Qfe(e){for(const t of pi)(!e||e===t.props.type)&&t.handler.close()}lc.closeAll=Qfe;lc._context=null;const lt=oI(lc,"$message"),Jfe=J({name:"ElMessageBox",directives:{TrapFocus:xQ},components:{ElButton:mn,ElFocusTrap:yh,ElInput:Un,ElOverlay:x2,ElIcon:tt,...L1},inheritAttrs:!1,props:{buttonSize:{type:String,validator:lI},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:s,ns:r,size:i}=Yg("message-box",k(()=>e.buttonSize)),{t:a}=n,{nextZIndex:o}=s,l=q(!1),u=Ct({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:mo(Gi),cancelButtonLoadingIcon:mo(Gi),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:o()}),c=k(()=>{const B=u.type;return{[r.bm("icon",B)]:B&&Do[B]}}),f=ys(),h=ys(),m=k(()=>u.icon||Do[u.type]||""),g=k(()=>!!u.message),p=q(),v=q(),y=q(),_=q(),b=q(),T=k(()=>u.confirmButtonClass);xe(()=>u.inputValue,async B=>{await it(),e.boxType==="prompt"&&B!==null&&U()},{immediate:!0}),xe(()=>l.value,B=>{var Q,Y;B&&(e.boxType!=="prompt"&&(u.autofocus?y.value=(Y=(Q=b.value)==null?void 0:Q.$el)!=null?Y:p.value:y.value=p.value),u.zIndex=o()),e.boxType==="prompt"&&(B?it().then(()=>{var F;_.value&&_.value.$el&&(u.autofocus?y.value=(F=W())!=null?F:p.value:y.value=p.value)}):(u.editorErrorMessage="",u.validateError=!1))});const S=k(()=>e.draggable),C=k(()=>e.overflow);uI(p,v,S,C),gt(async()=>{await it(),e.closeOnHashChange&&window.addEventListener("hashchange",D)}),un(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",D)});function D(){l.value&&(l.value=!1,it(()=>{u.action&&t("action",u.action)}))}const N=()=>{e.closeOnClickModal&&z(u.distinguishCancelAndClose?"close":"cancel")},$=X1(N),L=B=>{if(u.inputType!=="textarea")return B.preventDefault(),z("confirm")},z=B=>{var Q;e.boxType==="prompt"&&B==="confirm"&&!U()||(u.action=B,u.beforeClose?(Q=u.beforeClose)==null||Q.call(u,B,u,D):D())},U=()=>{if(e.boxType==="prompt"){const B=u.inputPattern;if(B&&!B.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;const Q=u.inputValidator;if(typeof Q=="function"){const Y=Q(u.inputValue);if(Y===!1)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=!0,!1;if(typeof Y=="string")return u.editorErrorMessage=Y,u.validateError=!0,!1}}return u.editorErrorMessage="",u.validateError=!1,!0},W=()=>{const B=_.value.$refs;return B.input||B.textarea},K=()=>{z("close")},X=()=>{e.closeOnPressEscape&&K()};return e.lockScroll&&U1(l),{...cs(u),ns:r,overlayEvent:$,visible:l,hasMessage:g,typeClass:c,contentId:f,inputId:h,btnSize:i,iconComponent:m,confirmButtonClasses:T,rootRef:p,focusStartRef:y,headerRef:v,inputRef:_,confirmRef:b,doClose:D,handleClose:K,onCloseRequested:X,handleWrapperClick:N,handleInputEnter:L,handleAction:z,t:a}}});function Zfe(e,t,n,s,r,i){const a=Dt("el-icon"),o=Dt("close"),l=Dt("el-input"),u=Dt("el-button"),c=Dt("el-focus-trap"),f=Dt("el-overlay");return x(),de(Wn,{name:"fade-in-linear",onAfterLeave:h=>e.$emit("vanish"),persisted:""},{default:P(()=>[yt(E(f,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:P(()=>[O("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:M(`${e.ns.namespace.value}-overlay-message-box`),onClick:e.overlayEvent.onClick,onMousedown:e.overlayEvent.onMousedown,onMouseup:e.overlayEvent.onMouseup},[E(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:P(()=>[O("div",{ref:"rootRef",class:M([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:st(e.customStyle),tabindex:"-1",onClick:ft(()=>{},["stop"])},[e.title!==null&&e.title!==void 0?(x(),j("div",{key:0,ref:"headerRef",class:M([e.ns.e("header"),{"show-close":e.showClose}])},[O("div",{class:M(e.ns.e("title"))},[e.iconComponent&&e.center?(x(),de(a,{key:0,class:M([e.ns.e("status"),e.typeClass])},{default:P(()=>[(x(),de(Rt(e.iconComponent)))]),_:1},8,["class"])):ae("v-if",!0),O("span",null,ce(e.title),1)],2),e.showClose?(x(),j("button",{key:0,type:"button",class:M(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),onKeydown:rn(ft(h=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"])},[E(a,{class:M(e.ns.e("close"))},{default:P(()=>[E(o)]),_:1},8,["class"])],42,["aria-label","onClick","onKeydown"])):ae("v-if",!0)],2)):ae("v-if",!0),O("div",{id:e.contentId,class:M(e.ns.e("content"))},[O("div",{class:M(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(x(),de(a,{key:0,class:M([e.ns.e("status"),e.typeClass])},{default:P(()=>[(x(),de(Rt(e.iconComponent)))]),_:1},8,["class"])):ae("v-if",!0),e.hasMessage?(x(),j("div",{key:1,class:M(e.ns.e("message"))},[fe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(x(),de(Rt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(x(),de(Rt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:P(()=>[Te(ce(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ae("v-if",!0)],2),yt(O("div",{class:M(e.ns.e("input"))},[E(l,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":h=>e.inputValue=h,type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:M({invalid:e.validateError}),onKeydown:rn(e.handleInputEnter,["enter"])},null,8,["id","modelValue","onUpdate:modelValue","type","placeholder","aria-invalid","class","onKeydown"]),O("div",{class:M(e.ns.e("errormsg")),style:st({visibility:e.editorErrorMessage?"visible":"hidden"})},ce(e.editorErrorMessage),7)],2),[[Bt,e.showInput]])],10,["id"]),O("div",{class:M(e.ns.e("btns"))},[e.showCancelButton?(x(),de(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:M([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:h=>e.handleAction("cancel"),onKeydown:rn(ft(h=>e.handleAction("cancel"),["prevent"]),["enter"])},{default:P(()=>[Te(ce(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size","onClick","onKeydown"])):ae("v-if",!0),yt(E(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:M([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:h=>e.handleAction("confirm"),onKeydown:rn(ft(h=>e.handleAction("confirm"),["prevent"]),["enter"])},{default:P(()=>[Te(ce(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size","onClick","onKeydown"]),[[Bt,e.showConfirmButton]])],2)],14,["onClick"])]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,["aria-label","aria-describedby","onClick","onMousedown","onMouseup"])]),_:3},8,["z-index","overlay-class","mask"]),[[Bt,e.visible]])]),_:3},8,["onAfterLeave"])}var ehe=Ue(Jfe,[["render",Zfe],["__file","index.vue"]]);const Hf=new Map,the=e=>{let t=document.body;return e.appendTo&&(ht(e.appendTo)&&(t=document.querySelector(e.appendTo)),Ir(e.appendTo)&&(t=e.appendTo),Ir(t)||(t=document.body)),t},nhe=(e,t,n=null)=>{const s=E(ehe,e,pt(e.message)||Cn(e.message)?{default:pt(e.message)?e.message:()=>e.message}:null);return s.appContext=n,Co(s,t),the(e).appendChild(t.firstElementChild),s.component},she=()=>document.createElement("div"),rhe=(e,t)=>{const n=she();e.onVanish=()=>{Co(null,n),Hf.delete(r)},e.onAction=i=>{const a=Hf.get(r);let o;e.showInput?o={value:r.inputValue,action:i}:o=i,e.callback?e.callback(o,s.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(o)};const s=nhe(e,n,t),r=s.proxy;for(const i in e)jt(e,i)&&!jt(r.$props,i)&&(r[i]=e[i]);return r.visible=!0,r};function Vc(e,t=null){if(!Ht)return Promise.reject();let n;return ht(e)||Cn(e)?e={message:e}:n=e.callback,new Promise((s,r)=>{const i=rhe(e,t??Vc._context);Hf.set(i,{options:e,callback:n,resolve:s,reject:r})})}const ihe=["alert","confirm","prompt"],ahe={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};ihe.forEach(e=>{Vc[e]=ohe(e)});function ohe(e){return(t,n,s,r)=>{let i="";return Pt(n)?(s=n,i=""):An(n)?i="":i=n,Vc(Object.assign({title:i,message:t,type:"",...ahe[e]},s,{boxType:e}),r)}}Vc.close=()=>{Hf.forEach((e,t)=>{t.doClose()}),Hf.clear()};Vc._context=null;const no=Vc;no.install=e=>{no._context=e._context,e.config.globalProperties.$msgbox=no,e.config.globalProperties.$messageBox=no,e.config.globalProperties.$alert=no.alert,e.config.globalProperties.$confirm=no.confirm,e.config.globalProperties.$prompt=no.prompt};const lhe=no,gP=["success","info","warning","error"],uhe=Fe({customClass:{type:String,default:""},dangerouslyUseHTMLString:Boolean,duration:{type:Number,default:4500},icon:{type:ln},id:{type:String,default:""},message:{type:oe([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:oe(Function),default:()=>{}},onClose:{type:oe(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...gP,""],default:""},zIndex:Number}),che={destroy:()=>!0},dhe=J({name:"ElNotification"}),fhe=J({...dhe,props:uhe,emits:che,setup(e,{expose:t}){const n=e,{ns:s,zIndex:r}=Yg("notification"),{nextZIndex:i,currentZIndex:a}=r,{Close:o}=$1,l=q(!1);let u;const c=k(()=>{const b=n.type;return b&&Do[n.type]?s.m(b):""}),f=k(()=>n.type&&Do[n.type]||n.icon),h=k(()=>n.position.endsWith("right")?"right":"left"),m=k(()=>n.position.startsWith("top")?"top":"bottom"),g=k(()=>{var b;return{[m.value]:`${n.offset}px`,zIndex:(b=n.zIndex)!=null?b:a.value}});function p(){n.duration>0&&({stop:u}=Dl(()=>{l.value&&y()},n.duration))}function v(){u==null||u()}function y(){l.value=!1}function _({code:b}){b===at.delete||b===at.backspace?v():b===at.esc?l.value&&y():p()}return gt(()=>{p(),i(),l.value=!0}),an(document,"keydown",_),t({visible:l,close:y}),(b,T)=>(x(),de(Wn,{name:d(s).b("fade"),onBeforeLeave:b.onClose,onAfterLeave:S=>b.$emit("destroy"),persisted:""},{default:P(()=>[yt(O("div",{id:b.id,class:M([d(s).b(),b.customClass,d(h)]),style:st(d(g)),role:"alert",onMouseenter:v,onMouseleave:p,onClick:b.onClick},[d(f)?(x(),de(d(tt),{key:0,class:M([d(s).e("icon"),d(c)])},{default:P(()=>[(x(),de(Rt(d(f))))]),_:1},8,["class"])):ae("v-if",!0),O("div",{class:M(d(s).e("group"))},[O("h2",{class:M(d(s).e("title")),textContent:ce(b.title)},null,10,["textContent"]),yt(O("div",{class:M(d(s).e("content")),style:st(b.title?void 0:{margin:0})},[fe(b.$slots,"default",{},()=>[b.dangerouslyUseHTMLString?(x(),j(Ke,{key:1},[ae(" Caution here, message could've been compromised, never use user's input as message "),O("p",{innerHTML:b.message},null,8,["innerHTML"])],2112)):(x(),j("p",{key:0},ce(b.message),1))])],6),[[Bt,b.message]]),b.showClose?(x(),de(d(tt),{key:0,class:M(d(s).e("closeBtn")),onClick:ft(y,["stop"])},{default:P(()=>[E(d(o))]),_:1},8,["class","onClick"])):ae("v-if",!0)],2)],46,["id","onClick"]),[[Bt,l.value]])]),_:3},8,["name","onBeforeLeave","onAfterLeave"]))}});var hhe=Ue(fhe,[["__file","notification.vue"]]);const zm={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},Gb=16;let phe=1;const uc=function(e={},t=null){if(!Ht)return{close:()=>{}};(typeof e=="string"||Cn(e))&&(e={message:e});const n=e.position||"top-right";let s=e.offset||0;zm[n].forEach(({vm:c})=>{var f;s+=(((f=c.el)==null?void 0:f.offsetHeight)||0)+Gb}),s+=Gb;const r=`notification_${phe++}`,i=e.onClose,a={...e,offset:s,id:r,onClose:()=>{mhe(r,n,i)}};let o=document.body;Ir(e.appendTo)?o=e.appendTo:ht(e.appendTo)&&(o=document.querySelector(e.appendTo)),Ir(o)||(o=document.body);const l=document.createElement("div"),u=E(hhe,a,Cn(a.message)?{default:()=>a.message}:null);return u.appContext=t??uc._context,u.props.onDestroy=()=>{Co(null,l)},Co(u,l),zm[n].push({vm:u}),o.appendChild(l.firstElementChild),{close:()=>{u.component.exposed.visible.value=!1}}};gP.forEach(e=>{uc[e]=(t={})=>((typeof t=="string"||Cn(t))&&(t={message:t}),uc({...t,type:e}))});function mhe(e,t,n){const s=zm[t],r=s.findIndex(({vm:u})=>{var c;return((c=u.component)==null?void 0:c.props.id)===e});if(r===-1)return;const{vm:i}=s[r];if(!i)return;n==null||n(i);const a=i.el.offsetHeight,o=t.split("-")[0];s.splice(r,1);const l=s.length;if(!(l<1))for(let u=r;u<l;u++){const{el:c,component:f}=s[u].vm,h=Number.parseInt(c.style[o],10)-a-Gb;f.props.offset=h}}function ghe(){for(const e of Object.values(zm))e.forEach(({vm:t})=>{t.component.exposed.visible.value=!1})}uc.closeAll=ghe;uc._context=null;const vhe=oI(uc,"$notify");var yhe=[Nfe,Ffe,lt,lhe,vhe,X8],bhe=jK([...kfe,...yhe]);const _he={class:"util"},whe=J({__name:"Util",setup(e){const t=Ct({show:!1,darkTheme:!0});gt(()=>{n(localStorage.getItem("theme")+"")});const n=s=>{switch(s){case"top":if(document.documentElement.scrollTop>0){const i=setInterval(()=>{document.documentElement.scrollTop-=10,document.documentElement.scrollTop===0&&clearInterval(i)},5)}break;case"light":t.darkTheme=!1,localStorage.setItem("theme","light"),document.getElementsByClassName("main")[0].style.background="linear-gradient(45deg, #356697, rgb(105, 68, 140), rgb(151, 109, 133), rgb(92 104 149))";break;case"dark":t.darkTheme=!0,localStorage.setItem("theme","dark"),document.getElementsByClassName("main")[0].style.background="#16161a";break;case"more":t.show=!t.show;break}};return(s,r)=>{const i=tt,a=bh;return x(),j("div",_he,[E(a,null,{default:P(()=>[yt(O("div",null,[O("a",{href:"javascript:;",onClick:r[0]||(r[0]=o=>n("top"))},[E(i,null,{default:P(()=>[E(d(Bg))]),_:1})]),t.darkTheme?(x(),j("a",{key:0,href:"javascript:;",onClick:r[1]||(r[1]=o=>n("light"))},[E(i,null,{default:P(()=>[E(d(iq))]),_:1})])):ae("",!0),t.darkTheme?ae("",!0):(x(),j("a",{key:1,href:"javascript:;",onClick:r[2]||(r[2]=o=>n("dark"))},[E(i,null,{default:P(()=>[E(d(Mj))]),_:1})])),O("a",{href:"/custom/player",onClick:r[3]||(r[3]=o=>n("dark"))},[E(i,null,{default:P(()=>[E(d(pq))]),_:1})])],512),[[Bt,t.show]])]),_:1}),O("a",{href:"javascript:;",onClick:r[4]||(r[4]=o=>n("more")),class:"more"},[E(i,null,{default:P(()=>[E(d(qy))]),_:1})])])}}}),En=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},She=En(whe,[["__scopeId","data-v-66b1aa59"]]);var vP={exports:{}};/*! Element Plus v2.8.6 */(function(e,t){(function(n,s){e.exports=s()})(hr,function(){var n={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};return n})})(vP);var The=vP.exports;const Che=xs(The),Ehe={class:"main"},xhe=J({__name:"App",setup(e){return(t,n)=>{const s=Dt("router-view"),r=jI;return x(),de(r,{locale:d(Che)},{default:P(()=>[O("div",Ehe,[E(s),E(She)])]),_:1},8,["locale"])}}});/*!
|
||
* vue-router v4.4.0
|
||
* (c) 2024 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const _u=typeof document<"u";function khe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const wn=Object.assign;function q0(e,t){const n={};for(const s in t){const r=t[s];n[s]=Ci(r)?r.map(e):e(r)}return n}const nf=()=>{},Ci=Array.isArray,yP=/#/g,Ahe=/&/g,Ihe=/\//g,Dhe=/=/g,Ohe=/\?/g,bP=/\+/g,Phe=/%5B/g,Rhe=/%5D/g,_P=/%5E/g,Nhe=/%60/g,wP=/%7B/g,Mhe=/%7C/g,SP=/%7D/g,$he=/%20/g;function nw(e){return encodeURI(""+e).replace(Mhe,"|").replace(Phe,"[").replace(Rhe,"]")}function Lhe(e){return nw(e).replace(wP,"{").replace(SP,"}").replace(_P,"^")}function Yb(e){return nw(e).replace(bP,"%2B").replace($he,"+").replace(yP,"%23").replace(Ahe,"%26").replace(Nhe,"`").replace(wP,"{").replace(SP,"}").replace(_P,"^")}function Bhe(e){return Yb(e).replace(Dhe,"%3D")}function Fhe(e){return nw(e).replace(yP,"%23").replace(Ohe,"%3F")}function Vhe(e){return e==null?"":Fhe(e).replace(Ihe,"%2F")}function zf(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const Uhe=/\/$/,Hhe=e=>e.replace(Uhe,"");function W0(e,t,n="/"){let s,r={},i="",a="";const o=t.indexOf("#");let l=t.indexOf("?");return o<l&&o>=0&&(l=-1),l>-1&&(s=t.slice(0,l),i=t.slice(l+1,o>-1?o:t.length),r=e(i)),o>-1&&(s=s||t.slice(0,o),a=t.slice(o,t.length)),s=Whe(s??t,n),{fullPath:s+(i&&"?")+i+a,path:s,query:r,hash:zf(a)}}function zhe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Mx(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function jhe(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&cc(t.matched[s],n.matched[r])&&TP(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function cc(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function TP(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!qhe(e[n],t[n]))return!1;return!0}function qhe(e,t){return Ci(e)?$x(e,t):Ci(t)?$x(t,e):e===t}function $x(e,t){return Ci(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function Whe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let i=n.length-1,a,o;for(a=0;a<s.length;a++)if(o=s[a],o!==".")if(o==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+s.slice(a).join("/")}const Ga={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var jf;(function(e){e.pop="pop",e.push="push"})(jf||(jf={}));var sf;(function(e){e.back="back",e.forward="forward",e.unknown=""})(sf||(sf={}));function Khe(e){if(!e)if(_u){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Hhe(e)}const Ghe=/^[^#]+#/;function Yhe(e,t){return e.replace(Ghe,"#")+t}function Xhe(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const lv=()=>({left:window.scrollX,top:window.scrollY});function Qhe(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=Xhe(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Lx(e,t){return(history.state?history.state.position-t:-1)+e}const Xb=new Map;function Jhe(e,t){Xb.set(e,t)}function Zhe(e){const t=Xb.get(e);return Xb.delete(e),t}let epe=()=>location.protocol+"//"+location.host;function CP(e,t){const{pathname:n,search:s,hash:r}=t,i=e.indexOf("#");if(i>-1){let o=r.includes(e.slice(i))?e.slice(i).length:1,l=r.slice(o);return l[0]!=="/"&&(l="/"+l),Mx(l,"")}return Mx(n,e)+s+r}function tpe(e,t,n,s){let r=[],i=[],a=null;const o=({state:h})=>{const m=CP(e,location),g=n.value,p=t.value;let v=0;if(h){if(n.value=m,t.value=h,a&&a===g){a=null;return}v=p?h.position-p.position:0}else s(m);r.forEach(y=>{y(n.value,g,{delta:v,type:jf.pop,direction:v?v>0?sf.forward:sf.back:sf.unknown})})};function l(){a=n.value}function u(h){r.push(h);const m=()=>{const g=r.indexOf(h);g>-1&&r.splice(g,1)};return i.push(m),m}function c(){const{history:h}=window;h.state&&h.replaceState(wn({},h.state,{scroll:lv()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:f}}function Bx(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?lv():null}}function npe(e){const{history:t,location:n}=window,s={value:CP(e,n)},r={value:t.state};r.value||i(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(l,u,c){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:epe()+e+l;try{t[c?"replaceState":"pushState"](u,"",h),r.value=u}catch(m){console.error(m),n[c?"replace":"assign"](h)}}function a(l,u){const c=wn({},t.state,Bx(r.value.back,l,r.value.forward,!0),u,{position:r.value.position});i(l,c,!0),s.value=l}function o(l,u){const c=wn({},r.value,t.state,{forward:l,scroll:lv()});i(c.current,c,!0);const f=wn({},Bx(s.value,l,null),{position:c.position+1},u);i(l,f,!1),s.value=l}return{location:s,state:r,push:o,replace:a}}function spe(e){e=Khe(e);const t=npe(e),n=tpe(e,t.state,t.location,t.replace);function s(i,a=!0){a||n.pauseListeners(),history.go(i)}const r=wn({location:"",base:e,go:s,createHref:Yhe.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function rpe(e){return typeof e=="string"||e&&typeof e=="object"}function EP(e){return typeof e=="string"||typeof e=="symbol"}const xP=Symbol("");var Fx;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Fx||(Fx={}));function dc(e,t){return wn(new Error,{type:e,[xP]:!0},t)}function ha(e,t){return e instanceof Error&&xP in e&&(t==null||!!(e.type&t))}const Vx="[^/]+?",ipe={sensitive:!1,strict:!1,start:!0,end:!0},ape=/[.+*?^${}()[\]/\\]/g;function ope(e,t){const n=wn({},ipe,t),s=[];let r=n.start?"^":"";const i=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let f=0;f<u.length;f++){const h=u[f];let m=40+(n.sensitive?.25:0);if(h.type===0)f||(r+="/"),r+=h.value.replace(ape,"\\$&"),m+=40;else if(h.type===1){const{value:g,repeatable:p,optional:v,regexp:y}=h;i.push({name:g,repeatable:p,optional:v});const _=y||Vx;if(_!==Vx){m+=10;try{new RegExp(`(${_})`)}catch(T){throw new Error(`Invalid custom RegExp for param "${g}" (${_}): `+T.message)}}let b=p?`((?:${_})(?:/(?:${_}))*)`:`(${_})`;f||(b=v&&u.length<2?`(?:/${b})`:"/"+b),v&&(b+="?"),r+=b,m+=20,v&&(m+=-8),p&&(m+=-20),_===".*"&&(m+=-50)}c.push(m)}s.push(c)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const a=new RegExp(r,n.sensitive?"":"i");function o(u){const c=u.match(a),f={};if(!c)return null;for(let h=1;h<c.length;h++){const m=c[h]||"",g=i[h-1];f[g.name]=m&&g.repeatable?m.split("/"):m}return f}function l(u){let c="",f=!1;for(const h of e){(!f||!c.endsWith("/"))&&(c+="/"),f=!1;for(const m of h)if(m.type===0)c+=m.value;else if(m.type===1){const{value:g,repeatable:p,optional:v}=m,y=g in u?u[g]:"";if(Ci(y)&&!p)throw new Error(`Provided param "${g}" is an array but it is not repeatable (* or + modifiers)`);const _=Ci(y)?y.join("/"):y;if(!_)if(v)h.length<2&&(c.endsWith("/")?c=c.slice(0,-1):f=!0);else throw new Error(`Missing required param "${g}"`);c+=_}}return c||"/"}return{re:a,score:s,keys:i,parse:o,stringify:l}}function lpe(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function kP(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const i=lpe(s[n],r[n]);if(i)return i;n++}if(Math.abs(r.length-s.length)===1){if(Ux(s))return 1;if(Ux(r))return-1}return r.length-s.length}function Ux(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const upe={type:0,value:""},cpe=/[a-zA-Z0-9_]/;function dpe(e){if(!e)return[[]];if(e==="/")return[[upe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${u}": ${m}`)}let n=0,s=n;const r=[];let i;function a(){i&&r.push(i),i=[]}let o=0,l,u="",c="";function f(){u&&(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=l}for(;o<e.length;){if(l=e[o++],l==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:l==="/"?(u&&f(),a()):l===":"?(f(),n=1):h();break;case 4:h(),n=s;break;case 1:l==="("?n=2:cpe.test(l)?h():(f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&o--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:f(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&o--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),r}function fpe(e,t,n){const s=ope(dpe(e.path),n),r=wn(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function hpe(e,t){const n=[],s=new Map;t=jx({strict:!1,end:!0,sensitive:!1},t);function r(f){return s.get(f)}function i(f,h,m){const g=!m,p=ppe(f);p.aliasOf=m&&m.record;const v=jx(t,f),y=[p];if("alias"in f){const T=typeof f.alias=="string"?[f.alias]:f.alias;for(const S of T)y.push(wn({},p,{components:m?m.record.components:p.components,path:S,aliasOf:m?m.record:p}))}let _,b;for(const T of y){const{path:S}=T;if(h&&S[0]!=="/"){const C=h.record.path,D=C[C.length-1]==="/"?"":"/";T.path=h.record.path+(S&&D+S)}if(_=fpe(T,h,v),m?m.alias.push(_):(b=b||_,b!==_&&b.alias.push(_),g&&f.name&&!zx(_)&&a(f.name)),AP(_)&&l(_),p.children){const C=p.children;for(let D=0;D<C.length;D++)i(C[D],_,m&&m.children[D])}m=m||_}return b?()=>{a(b)}:nf}function a(f){if(EP(f)){const h=s.get(f);h&&(s.delete(f),n.splice(n.indexOf(h),1),h.children.forEach(a),h.alias.forEach(a))}else{const h=n.indexOf(f);h>-1&&(n.splice(h,1),f.record.name&&s.delete(f.record.name),f.children.forEach(a),f.alias.forEach(a))}}function o(){return n}function l(f){const h=vpe(f,n);n.splice(h,0,f),f.record.name&&!zx(f)&&s.set(f.record.name,f)}function u(f,h){let m,g={},p,v;if("name"in f&&f.name){if(m=s.get(f.name),!m)throw dc(1,{location:f});v=m.record.name,g=wn(Hx(h.params,m.keys.filter(b=>!b.optional).concat(m.parent?m.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),f.params&&Hx(f.params,m.keys.map(b=>b.name))),p=m.stringify(g)}else if(f.path!=null)p=f.path,m=n.find(b=>b.re.test(p)),m&&(g=m.parse(p),v=m.record.name);else{if(m=h.name?s.get(h.name):n.find(b=>b.re.test(h.path)),!m)throw dc(1,{location:f,currentLocation:h});v=m.record.name,g=wn({},h.params,f.params),p=m.stringify(g)}const y=[];let _=m;for(;_;)y.unshift(_.record),_=_.parent;return{name:v,path:p,params:g,matched:y,meta:gpe(y)}}e.forEach(f=>i(f));function c(){n.length=0,s.clear()}return{addRoute:i,resolve:u,removeRoute:a,clearRoutes:c,getRoutes:o,getRecordMatcher:r}}function Hx(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function ppe(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:mpe(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function mpe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function zx(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gpe(e){return e.reduce((t,n)=>wn(t,n.meta),{})}function jx(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function vpe(e,t){let n=0,s=t.length;for(;n!==s;){const i=n+s>>1;kP(e,t[i])<0?s=i:n=i+1}const r=ype(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function ype(e){let t=e;for(;t=t.parent;)if(AP(t)&&kP(e,t)===0)return t}function AP({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function bpe(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const i=s[r].replace(bP," "),a=i.indexOf("="),o=zf(a<0?i:i.slice(0,a)),l=a<0?null:zf(i.slice(a+1));if(o in t){let u=t[o];Ci(u)||(u=t[o]=[u]),u.push(l)}else t[o]=l}return t}function qx(e){let t="";for(let n in e){const s=e[n];if(n=Bhe(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Ci(s)?s.map(i=>i&&Yb(i)):[s&&Yb(s)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function _pe(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Ci(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const wpe=Symbol(""),Wx=Symbol(""),uv=Symbol(""),sw=Symbol(""),Qb=Symbol("");function bd(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function ao(e,t,n,s,r,i=a=>a()){const a=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((o,l)=>{const u=h=>{h===!1?l(dc(4,{from:n,to:t})):h instanceof Error?l(h):rpe(h)?l(dc(2,{from:t,to:h})):(a&&s.enterCallbacks[r]===a&&typeof h=="function"&&a.push(h),o())},c=i(()=>e.call(s&&s.instances[r],t,n,u));let f=Promise.resolve(c);e.length<3&&(f=f.then(u)),f.catch(h=>l(h))})}function K0(e,t,n,s,r=i=>i()){const i=[];for(const a of e)for(const o in a.components){let l=a.components[o];if(!(t!=="beforeRouteEnter"&&!a.instances[o]))if(Spe(l)){const c=(l.__vccOpts||l)[t];c&&i.push(ao(c,n,s,a,o,r))}else{let u=l();i.push(()=>u.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${o}" at "${a.path}"`));const f=khe(c)?c.default:c;a.components[o]=f;const m=(f.__vccOpts||f)[t];return m&&ao(m,n,s,a,o,r)()}))}}return i}function Spe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Kx(e){const t=Xe(uv),n=Xe(sw),s=k(()=>{const l=d(e.to);return t.resolve(l)}),r=k(()=>{const{matched:l}=s.value,{length:u}=l,c=l[u-1],f=n.matched;if(!c||!f.length)return-1;const h=f.findIndex(cc.bind(null,c));if(h>-1)return h;const m=Gx(l[u-2]);return u>1&&Gx(c)===m&&f[f.length-1].path!==m?f.findIndex(cc.bind(null,l[u-2])):h}),i=k(()=>r.value>-1&&xpe(n.params,s.value.params)),a=k(()=>r.value>-1&&r.value===n.matched.length-1&&TP(n.params,s.value.params));function o(l={}){return Epe(l)?t[d(e.replace)?"replace":"push"](d(e.to)).catch(nf):Promise.resolve()}return{route:s,href:k(()=>s.value.href),isActive:i,isExactActive:a,navigate:o}}const Tpe=J({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Kx,setup(e,{slots:t}){const n=Ct(Kx(e)),{options:s}=Xe(uv),r=k(()=>({[Yx(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Yx(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:ot("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},i)}}}),Cpe=Tpe;function Epe(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function xpe(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Ci(r)||r.length!==s.length||s.some((i,a)=>i!==r[a]))return!1}return!0}function Gx(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Yx=(e,t,n)=>e??t??n,kpe=J({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Xe(Qb),r=k(()=>e.route||s.value),i=Xe(Wx,0),a=k(()=>{let u=d(i);const{matched:c}=r.value;let f;for(;(f=c[u])&&!f.components;)u++;return u}),o=k(()=>r.value.matched[a.value]);Mt(Wx,k(()=>a.value+1)),Mt(wpe,o),Mt(Qb,r);const l=q();return xe(()=>[l.value,o.value,e.name],([u,c,f],[h,m,g])=>{c&&(c.instances[f]=u,m&&m!==c&&u&&u===h&&(c.leaveGuards.size||(c.leaveGuards=m.leaveGuards),c.updateGuards.size||(c.updateGuards=m.updateGuards))),u&&c&&(!m||!cc(c,m)||!h)&&(c.enterCallbacks[f]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=r.value,c=e.name,f=o.value,h=f&&f.components[c];if(!h)return Xx(n.default,{Component:h,route:u});const m=f.props[c],g=m?m===!0?u.params:typeof m=="function"?m(u):m:null,v=ot(h,wn({},g,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:l}));return Xx(n.default,{Component:v,route:u})||v}}});function Xx(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Ape=kpe;function Ipe(e){const t=hpe(e.routes,e),n=e.parseQuery||bpe,s=e.stringifyQuery||qx,r=e.history,i=bd(),a=bd(),o=bd(),l=hn(Ga);let u=Ga;_u&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=q0.bind(null,te=>""+te),f=q0.bind(null,Vhe),h=q0.bind(null,zf);function m(te,ge){let pe,Oe;return EP(te)?(pe=t.getRecordMatcher(te),Oe=ge):Oe=te,t.addRoute(Oe,pe)}function g(te){const ge=t.getRecordMatcher(te);ge&&t.removeRoute(ge)}function p(){return t.getRoutes().map(te=>te.record)}function v(te){return!!t.getRecordMatcher(te)}function y(te,ge){if(ge=wn({},ge||l.value),typeof te=="string"){const re=W0(n,te,ge.path),Se=t.resolve({path:re.path},ge),Le=r.createHref(re.fullPath);return wn(re,Se,{params:h(Se.params),hash:zf(re.hash),redirectedFrom:void 0,href:Le})}let pe;if(te.path!=null)pe=wn({},te,{path:W0(n,te.path,ge.path).path});else{const re=wn({},te.params);for(const Se in re)re[Se]==null&&delete re[Se];pe=wn({},te,{params:f(re)}),ge.params=f(ge.params)}const Oe=t.resolve(pe,ge),Pe=te.hash||"";Oe.params=c(h(Oe.params));const ve=zhe(s,wn({},te,{hash:Lhe(Pe),path:Oe.path})),ee=r.createHref(ve);return wn({fullPath:ve,hash:Pe,query:s===qx?_pe(te.query):te.query||{}},Oe,{redirectedFrom:void 0,href:ee})}function _(te){return typeof te=="string"?W0(n,te,l.value.path):wn({},te)}function b(te,ge){if(u!==te)return dc(8,{from:ge,to:te})}function T(te){return D(te)}function S(te){return T(wn(_(te),{replace:!0}))}function C(te){const ge=te.matched[te.matched.length-1];if(ge&&ge.redirect){const{redirect:pe}=ge;let Oe=typeof pe=="function"?pe(te):pe;return typeof Oe=="string"&&(Oe=Oe.includes("?")||Oe.includes("#")?Oe=_(Oe):{path:Oe},Oe.params={}),wn({query:te.query,hash:te.hash,params:Oe.path!=null?{}:te.params},Oe)}}function D(te,ge){const pe=u=y(te),Oe=l.value,Pe=te.state,ve=te.force,ee=te.replace===!0,re=C(pe);if(re)return D(wn(_(re),{state:typeof re=="object"?wn({},Pe,re.state):Pe,force:ve,replace:ee}),ge||pe);const Se=pe;Se.redirectedFrom=ge;let Le;return!ve&&jhe(s,Oe,pe)&&(Le=dc(16,{to:Se,from:Oe}),Z(Oe,Oe,!0,!1)),(Le?Promise.resolve(Le):L(Se,Oe)).catch(_e=>ha(_e)?ha(_e,2)?_e:H(_e):Y(_e,Se,Oe)).then(_e=>{if(_e){if(ha(_e,2))return D(wn({replace:ee},_(_e.to),{state:typeof _e.to=="object"?wn({},Pe,_e.to.state):Pe,force:ve}),ge||Se)}else _e=U(Se,Oe,!0,ee,Pe);return z(Se,Oe,_e),_e})}function N(te,ge){const pe=b(te,ge);return pe?Promise.reject(pe):Promise.resolve()}function $(te){const ge=we.values().next().value;return ge&&typeof ge.runWithContext=="function"?ge.runWithContext(te):te()}function L(te,ge){let pe;const[Oe,Pe,ve]=Dpe(te,ge);pe=K0(Oe.reverse(),"beforeRouteLeave",te,ge);for(const re of Oe)re.leaveGuards.forEach(Se=>{pe.push(ao(Se,te,ge))});const ee=N.bind(null,te,ge);return pe.push(ee),Ee(pe).then(()=>{pe=[];for(const re of i.list())pe.push(ao(re,te,ge));return pe.push(ee),Ee(pe)}).then(()=>{pe=K0(Pe,"beforeRouteUpdate",te,ge);for(const re of Pe)re.updateGuards.forEach(Se=>{pe.push(ao(Se,te,ge))});return pe.push(ee),Ee(pe)}).then(()=>{pe=[];for(const re of ve)if(re.beforeEnter)if(Ci(re.beforeEnter))for(const Se of re.beforeEnter)pe.push(ao(Se,te,ge));else pe.push(ao(re.beforeEnter,te,ge));return pe.push(ee),Ee(pe)}).then(()=>(te.matched.forEach(re=>re.enterCallbacks={}),pe=K0(ve,"beforeRouteEnter",te,ge,$),pe.push(ee),Ee(pe))).then(()=>{pe=[];for(const re of a.list())pe.push(ao(re,te,ge));return pe.push(ee),Ee(pe)}).catch(re=>ha(re,8)?re:Promise.reject(re))}function z(te,ge,pe){o.list().forEach(Oe=>$(()=>Oe(te,ge,pe)))}function U(te,ge,pe,Oe,Pe){const ve=b(te,ge);if(ve)return ve;const ee=ge===Ga,re=_u?history.state:{};pe&&(Oe||ee?r.replace(te.fullPath,wn({scroll:ee&&re&&re.scroll},Pe)):r.push(te.fullPath,Pe)),l.value=te,Z(te,ge,pe,ee),H()}let W;function K(){W||(W=r.listen((te,ge,pe)=>{if(!De.listening)return;const Oe=y(te),Pe=C(Oe);if(Pe){D(wn(Pe,{replace:!0}),Oe).catch(nf);return}u=Oe;const ve=l.value;_u&&Jhe(Lx(ve.fullPath,pe.delta),lv()),L(Oe,ve).catch(ee=>ha(ee,12)?ee:ha(ee,2)?(D(ee.to,Oe).then(re=>{ha(re,20)&&!pe.delta&&pe.type===jf.pop&&r.go(-1,!1)}).catch(nf),Promise.reject()):(pe.delta&&r.go(-pe.delta,!1),Y(ee,Oe,ve))).then(ee=>{ee=ee||U(Oe,ve,!1),ee&&(pe.delta&&!ha(ee,8)?r.go(-pe.delta,!1):pe.type===jf.pop&&ha(ee,20)&&r.go(-1,!1)),z(Oe,ve,ee)}).catch(nf)}))}let X=bd(),B=bd(),Q;function Y(te,ge,pe){H(te);const Oe=B.list();return Oe.length?Oe.forEach(Pe=>Pe(te,ge,pe)):console.error(te),Promise.reject(te)}function F(){return Q&&l.value!==Ga?Promise.resolve():new Promise((te,ge)=>{X.add([te,ge])})}function H(te){return Q||(Q=!te,K(),X.list().forEach(([ge,pe])=>te?pe(te):ge()),X.reset()),te}function Z(te,ge,pe,Oe){const{scrollBehavior:Pe}=e;if(!_u||!Pe)return Promise.resolve();const ve=!pe&&Zhe(Lx(te.fullPath,0))||(Oe||!pe)&&history.state&&history.state.scroll||null;return it().then(()=>Pe(te,ge,ve)).then(ee=>ee&&Qhe(ee)).catch(ee=>Y(ee,te,ge))}const se=te=>r.go(te);let ne;const we=new Set,De={currentRoute:l,listening:!0,addRoute:m,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:v,getRoutes:p,resolve:y,options:e,push:T,replace:S,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:i.add,beforeResolve:a.add,afterEach:o.add,onError:B.add,isReady:F,install(te){const ge=this;te.component("RouterLink",Cpe),te.component("RouterView",Ape),te.config.globalProperties.$router=ge,Object.defineProperty(te.config.globalProperties,"$route",{enumerable:!0,get:()=>d(l)}),_u&&!ne&&l.value===Ga&&(ne=!0,T(r.location).catch(Pe=>{}));const pe={};for(const Pe in Ga)Object.defineProperty(pe,Pe,{get:()=>l.value[Pe],enumerable:!0});te.provide(uv,ge),te.provide(sw,q_(pe)),te.provide(Qb,l);const Oe=te.unmount;we.add(te),te.unmount=function(){we.delete(te),we.size<1&&(u=Ga,W&&W(),W=null,l.value=Ga,ne=!1,Q=!1),Oe()}}};function Ee(te){return te.reduce((ge,pe)=>ge.then(()=>$(pe)),Promise.resolve())}return De}function Dpe(e,t){const n=[],s=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const o=t.matched[a];o&&(e.matched.find(u=>cc(u,o))?s.push(o):n.push(o));const l=e.matched[a];l&&(t.matched.find(u=>cc(u,l))||r.push(l))}return[n,s,r]}function la(){return Xe(uv)}function Ope(e){return Xe(sw)}function IP(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ppe}=Object.prototype,{getPrototypeOf:rw}=Object,cv=(e=>t=>{const n=Ppe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ii=e=>(e=e.toLowerCase(),t=>cv(t)===e),dv=e=>t=>typeof t===e,{isArray:Uc}=Array,qf=dv("undefined");function Rpe(e){return e!==null&&!qf(e)&&e.constructor!==null&&!qf(e.constructor)&&qr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const DP=Ii("ArrayBuffer");function Npe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&DP(e.buffer),t}const Mpe=dv("string"),qr=dv("function"),OP=dv("number"),fv=e=>e!==null&&typeof e=="object",$pe=e=>e===!0||e===!1,im=e=>{if(cv(e)!=="object")return!1;const t=rw(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Lpe=Ii("Date"),Bpe=Ii("File"),Fpe=Ii("Blob"),Vpe=Ii("FileList"),Upe=e=>fv(e)&&qr(e.pipe),Hpe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||qr(e.append)&&((t=cv(e))==="formdata"||t==="object"&&qr(e.toString)&&e.toString()==="[object FormData]"))},zpe=Ii("URLSearchParams"),[jpe,qpe,Wpe,Kpe]=["ReadableStream","Request","Response","Headers"].map(Ii),Gpe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Eh(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let s,r;if(typeof e!="object"&&(e=[e]),Uc(e))for(s=0,r=e.length;s<r;s++)t.call(null,e[s],s,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(s=0;s<a;s++)o=i[s],t.call(null,e[o],o,e)}}function PP(e,t){t=t.toLowerCase();const n=Object.keys(e);let s=n.length,r;for(;s-- >0;)if(r=n[s],t===r.toLowerCase())return r;return null}const RP=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),NP=e=>!qf(e)&&e!==RP;function Jb(){const{caseless:e}=NP(this)&&this||{},t={},n=(s,r)=>{const i=e&&PP(t,r)||r;im(t[i])&&im(s)?t[i]=Jb(t[i],s):im(s)?t[i]=Jb({},s):Uc(s)?t[i]=s.slice():t[i]=s};for(let s=0,r=arguments.length;s<r;s++)arguments[s]&&Eh(arguments[s],n);return t}const Ype=(e,t,n,{allOwnKeys:s}={})=>(Eh(t,(r,i)=>{n&&qr(r)?e[i]=IP(r,n):e[i]=r},{allOwnKeys:s}),e),Xpe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Qpe=(e,t,n,s)=>{e.prototype=Object.create(t.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Jpe=(e,t,n,s)=>{let r,i,a;const o={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)a=r[i],(!s||s(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=n!==!1&&rw(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Zpe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const s=e.indexOf(t,n);return s!==-1&&s===n},eme=e=>{if(!e)return null;if(Uc(e))return e;let t=e.length;if(!OP(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},tme=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&rw(Uint8Array)),nme=(e,t)=>{const s=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=s.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},sme=(e,t)=>{let n;const s=[];for(;(n=e.exec(t))!==null;)s.push(n);return s},rme=Ii("HTMLFormElement"),ime=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,s,r){return s.toUpperCase()+r}),Qx=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ame=Ii("RegExp"),MP=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),s={};Eh(n,(r,i)=>{let a;(a=t(r,i,e))!==!1&&(s[i]=a||r)}),Object.defineProperties(e,s)},ome=e=>{MP(e,(t,n)=>{if(qr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const s=e[n];if(qr(s)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},lme=(e,t)=>{const n={},s=r=>{r.forEach(i=>{n[i]=!0})};return Uc(e)?s(e):s(String(e).split(t)),n},ume=()=>{},cme=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,G0="abcdefghijklmnopqrstuvwxyz",Jx="0123456789",$P={DIGIT:Jx,ALPHA:G0,ALPHA_DIGIT:G0+G0.toUpperCase()+Jx},dme=(e=16,t=$P.ALPHA_DIGIT)=>{let n="";const{length:s}=t;for(;e--;)n+=t[Math.random()*s|0];return n};function fme(e){return!!(e&&qr(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const hme=e=>{const t=new Array(10),n=(s,r)=>{if(fv(s)){if(t.indexOf(s)>=0)return;if(!("toJSON"in s)){t[r]=s;const i=Uc(s)?[]:{};return Eh(s,(a,o)=>{const l=n(a,r+1);!qf(l)&&(i[o]=l)}),t[r]=void 0,i}}return s};return n(e,0)},pme=Ii("AsyncFunction"),mme=e=>e&&(fv(e)||qr(e))&&qr(e.then)&&qr(e.catch),Je={isArray:Uc,isArrayBuffer:DP,isBuffer:Rpe,isFormData:Hpe,isArrayBufferView:Npe,isString:Mpe,isNumber:OP,isBoolean:$pe,isObject:fv,isPlainObject:im,isReadableStream:jpe,isRequest:qpe,isResponse:Wpe,isHeaders:Kpe,isUndefined:qf,isDate:Lpe,isFile:Bpe,isBlob:Fpe,isRegExp:ame,isFunction:qr,isStream:Upe,isURLSearchParams:zpe,isTypedArray:tme,isFileList:Vpe,forEach:Eh,merge:Jb,extend:Ype,trim:Gpe,stripBOM:Xpe,inherits:Qpe,toFlatObject:Jpe,kindOf:cv,kindOfTest:Ii,endsWith:Zpe,toArray:eme,forEachEntry:nme,matchAll:sme,isHTMLForm:rme,hasOwnProperty:Qx,hasOwnProp:Qx,reduceDescriptors:MP,freezeMethods:ome,toObjectSet:lme,toCamelCase:ime,noop:ume,toFiniteNumber:cme,findKey:PP,global:RP,isContextDefined:NP,ALPHABET:$P,generateString:dme,isSpecCompliantForm:fme,toJSONObject:hme,isAsyncFn:pme,isThenable:mme};function tn(e,t,n,s,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),s&&(this.request=s),r&&(this.response=r)}Je.inherits(tn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Je.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const LP=tn.prototype,BP={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{BP[e]={value:e}});Object.defineProperties(tn,BP);Object.defineProperty(LP,"isAxiosError",{value:!0});tn.from=(e,t,n,s,r,i)=>{const a=Object.create(LP);return Je.toFlatObject(e,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),tn.call(a,e.message,t,n,s,r),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const gme=null;function Zb(e){return Je.isPlainObject(e)||Je.isArray(e)}function FP(e){return Je.endsWith(e,"[]")?e.slice(0,-2):e}function Zx(e,t,n){return e?e.concat(t).map(function(r,i){return r=FP(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function vme(e){return Je.isArray(e)&&!e.some(Zb)}const yme=Je.toFlatObject(Je,{},null,function(t){return/^is[A-Z]/.test(t)});function hv(e,t,n){if(!Je.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Je.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,v){return!Je.isUndefined(v[p])});const s=n.metaTokens,r=n.visitor||c,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Je.isSpecCompliantForm(t);if(!Je.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(Je.isDate(g))return g.toISOString();if(!l&&Je.isBlob(g))throw new tn("Blob is not supported. Use a Buffer instead.");return Je.isArrayBuffer(g)||Je.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,p,v){let y=g;if(g&&!v&&typeof g=="object"){if(Je.endsWith(p,"{}"))p=s?p:p.slice(0,-2),g=JSON.stringify(g);else if(Je.isArray(g)&&vme(g)||(Je.isFileList(g)||Je.endsWith(p,"[]"))&&(y=Je.toArray(g)))return p=FP(p),y.forEach(function(b,T){!(Je.isUndefined(b)||b===null)&&t.append(a===!0?Zx([p],T,i):a===null?p:p+"[]",u(b))}),!1}return Zb(g)?!0:(t.append(Zx(v,p,i),u(g)),!1)}const f=[],h=Object.assign(yme,{defaultVisitor:c,convertValue:u,isVisitable:Zb});function m(g,p){if(!Je.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));f.push(g),Je.forEach(g,function(y,_){(!(Je.isUndefined(y)||y===null)&&r.call(t,y,Je.isString(_)?_.trim():_,p,h))===!0&&m(y,p?p.concat(_):[_])}),f.pop()}}if(!Je.isObject(e))throw new TypeError("data must be an object");return m(e),t}function ek(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return t[s]})}function iw(e,t){this._pairs=[],e&&hv(e,this,t)}const VP=iw.prototype;VP.append=function(t,n){this._pairs.push([t,n])};VP.toString=function(t){const n=t?function(s){return t.call(this,s,ek)}:ek;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function bme(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function UP(e,t,n){if(!t)return e;const s=n&&n.encode||bme,r=n&&n.serialize;let i;if(r?i=r(t,n):i=Je.isURLSearchParams(t)?t.toString():new iw(t,n).toString(s),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _me{constructor(){this.handlers=[]}use(t,n,s){return this.handlers.push({fulfilled:t,rejected:n,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Je.forEach(this.handlers,function(s){s!==null&&t(s)})}}const tk=_me,HP={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},wme=typeof URLSearchParams<"u"?URLSearchParams:iw,Sme=typeof FormData<"u"?FormData:null,Tme=typeof Blob<"u"?Blob:null,Cme={isBrowser:!0,classes:{URLSearchParams:wme,FormData:Sme,Blob:Tme},protocols:["http","https","file","blob","url","data"]},aw=typeof window<"u"&&typeof document<"u",Eme=(e=>aw&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),xme=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),kme=aw&&window.location.href||"http://localhost",Ame=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:aw,hasStandardBrowserEnv:Eme,hasStandardBrowserWebWorkerEnv:xme,origin:kme},Symbol.toStringTag,{value:"Module"})),gi={...Ame,...Cme};function Ime(e,t){return hv(e,new gi.classes.URLSearchParams,Object.assign({visitor:function(n,s,r,i){return gi.isNode&&Je.isBuffer(n)?(this.append(s,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Dme(e){return Je.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Ome(e){const t={},n=Object.keys(e);let s;const r=n.length;let i;for(s=0;s<r;s++)i=n[s],t[i]=e[i];return t}function zP(e){function t(n,s,r,i){let a=n[i++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=i>=n.length;return a=!a&&Je.isArray(r)?r.length:a,l?(Je.hasOwnProp(r,a)?r[a]=[r[a],s]:r[a]=s,!o):((!r[a]||!Je.isObject(r[a]))&&(r[a]=[]),t(n,s,r[a],i)&&Je.isArray(r[a])&&(r[a]=Ome(r[a])),!o)}if(Je.isFormData(e)&&Je.isFunction(e.entries)){const n={};return Je.forEachEntry(e,(s,r)=>{t(Dme(s),r,n,0)}),n}return null}function Pme(e,t,n){if(Je.isString(e))try{return(t||JSON.parse)(e),Je.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}const ow={transitional:HP,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const s=n.getContentType()||"",r=s.indexOf("application/json")>-1,i=Je.isObject(t);if(i&&Je.isHTMLForm(t)&&(t=new FormData(t)),Je.isFormData(t))return r?JSON.stringify(zP(t)):t;if(Je.isArrayBuffer(t)||Je.isBuffer(t)||Je.isStream(t)||Je.isFile(t)||Je.isBlob(t)||Je.isReadableStream(t))return t;if(Je.isArrayBufferView(t))return t.buffer;if(Je.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return Ime(t,this.formSerializer).toString();if((o=Je.isFileList(t))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return hv(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||r?(n.setContentType("application/json",!1),Pme(t)):t}],transformResponse:[function(t){const n=this.transitional||ow.transitional,s=n&&n.forcedJSONParsing,r=this.responseType==="json";if(Je.isResponse(t)||Je.isReadableStream(t))return t;if(t&&Je.isString(t)&&(s&&!this.responseType||r)){const a=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?tn.from(o,tn.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:gi.classes.FormData,Blob:gi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Je.forEach(["delete","get","head","post","put","patch"],e=>{ow.headers[e]={}});const lw=ow,Rme=Je.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Nme=e=>{const t={};let n,s,r;return e&&e.split(`
|
||
`).forEach(function(a){r=a.indexOf(":"),n=a.substring(0,r).trim().toLowerCase(),s=a.substring(r+1).trim(),!(!n||t[n]&&Rme[n])&&(n==="set-cookie"?t[n]?t[n].push(s):t[n]=[s]:t[n]=t[n]?t[n]+", "+s:s)}),t},nk=Symbol("internals");function _d(e){return e&&String(e).trim().toLowerCase()}function am(e){return e===!1||e==null?e:Je.isArray(e)?e.map(am):String(e)}function Mme(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=n.exec(e);)t[s[1]]=s[2];return t}const $me=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Y0(e,t,n,s,r){if(Je.isFunction(s))return s.call(this,t,n);if(r&&(t=n),!!Je.isString(t)){if(Je.isString(s))return t.indexOf(s)!==-1;if(Je.isRegExp(s))return s.test(t)}}function Lme(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,s)=>n.toUpperCase()+s)}function Bme(e,t){const n=Je.toCamelCase(" "+t);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+n,{value:function(r,i,a){return this[s].call(this,t,r,i,a)},configurable:!0})})}class pv{constructor(t){t&&this.set(t)}set(t,n,s){const r=this;function i(o,l,u){const c=_d(l);if(!c)throw new Error("header name must be a non-empty string");const f=Je.findKey(r,c);(!f||r[f]===void 0||u===!0||u===void 0&&r[f]!==!1)&&(r[f||l]=am(o))}const a=(o,l)=>Je.forEach(o,(u,c)=>i(u,c,l));if(Je.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Je.isString(t)&&(t=t.trim())&&!$me(t))a(Nme(t),n);else if(Je.isHeaders(t))for(const[o,l]of t.entries())i(l,o,s);else t!=null&&i(n,t,s);return this}get(t,n){if(t=_d(t),t){const s=Je.findKey(this,t);if(s){const r=this[s];if(!n)return r;if(n===!0)return Mme(r);if(Je.isFunction(n))return n.call(this,r,s);if(Je.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=_d(t),t){const s=Je.findKey(this,t);return!!(s&&this[s]!==void 0&&(!n||Y0(this,this[s],s,n)))}return!1}delete(t,n){const s=this;let r=!1;function i(a){if(a=_d(a),a){const o=Je.findKey(s,a);o&&(!n||Y0(s,s[o],o,n))&&(delete s[o],r=!0)}}return Je.isArray(t)?t.forEach(i):i(t),r}clear(t){const n=Object.keys(this);let s=n.length,r=!1;for(;s--;){const i=n[s];(!t||Y0(this,this[i],i,t,!0))&&(delete this[i],r=!0)}return r}normalize(t){const n=this,s={};return Je.forEach(this,(r,i)=>{const a=Je.findKey(s,i);if(a){n[a]=am(r),delete n[i];return}const o=t?Lme(i):String(i).trim();o!==i&&delete n[i],n[o]=am(r),s[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Je.forEach(this,(s,r)=>{s!=null&&s!==!1&&(n[r]=t&&Je.isArray(s)?s.join(", "):s)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
||
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const s=new this(t);return n.forEach(r=>s.set(r)),s}static accessor(t){const s=(this[nk]=this[nk]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=_d(a);s[o]||(Bme(r,a),s[o]=!0)}return Je.isArray(t)?t.forEach(i):i(t),this}}pv.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Je.reduceDescriptors(pv.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(s){this[n]=s}}});Je.freezeMethods(pv);const vi=pv;function X0(e,t){const n=this||lw,s=t||n,r=vi.from(s.headers);let i=s.data;return Je.forEach(e,function(o){i=o.call(n,i,r.normalize(),t?t.status:void 0)}),r.normalize(),i}function jP(e){return!!(e&&e.__CANCEL__)}function Hc(e,t,n){tn.call(this,e??"canceled",tn.ERR_CANCELED,t,n),this.name="CanceledError"}Je.inherits(Hc,tn,{__CANCEL__:!0});function qP(e,t,n){const s=n.config.validateStatus;!n.status||!s||s(n.status)?e(n):t(new tn("Request failed with status code "+n.status,[tn.ERR_BAD_REQUEST,tn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Fme(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Vme(e,t){e=e||10;const n=new Array(e),s=new Array(e);let r=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=s[i];a||(a=u),n[r]=l,s[r]=u;let f=i,h=0;for(;f!==r;)h+=n[f++],f=f%e;if(r=(r+1)%e,r===i&&(i=(i+1)%e),u-a<t)return;const m=c&&u-c;return m?Math.round(h*1e3/m):void 0}}function Ume(e,t){let n=0;const s=1e3/t;let r=null;return function(){const a=this===!0,o=Date.now();if(a||o-n>s)return r&&(clearTimeout(r),r=null),n=o,e.apply(null,arguments);r||(r=setTimeout(()=>(r=null,n=Date.now(),e.apply(null,arguments)),s-(o-n)))}}const jm=(e,t,n=3)=>{let s=0;const r=Vme(50,250);return Ume(i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-s,u=r(l),c=a<=o;s=a;const f={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&c?(o-a)/u:void 0,event:i,lengthComputable:o!=null};f[t?"download":"upload"]=!0,e(f)},n)},Hme=gi.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let s;function r(i){let a=i;return t&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=r(window.location.href),function(a){const o=Je.isString(a)?r(a):a;return o.protocol===s.protocol&&o.host===s.host}}():function(){return function(){return!0}}(),zme=gi.hasStandardBrowserEnv?{write(e,t,n,s,r,i){const a=[e+"="+encodeURIComponent(t)];Je.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Je.isString(s)&&a.push("path="+s),Je.isString(r)&&a.push("domain="+r),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function jme(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function qme(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function WP(e,t){return e&&!jme(t)?qme(e,t):t}const sk=e=>e instanceof vi?{...e}:e;function Bl(e,t){t=t||{};const n={};function s(u,c,f){return Je.isPlainObject(u)&&Je.isPlainObject(c)?Je.merge.call({caseless:f},u,c):Je.isPlainObject(c)?Je.merge({},c):Je.isArray(c)?c.slice():c}function r(u,c,f){if(Je.isUndefined(c)){if(!Je.isUndefined(u))return s(void 0,u,f)}else return s(u,c,f)}function i(u,c){if(!Je.isUndefined(c))return s(void 0,c)}function a(u,c){if(Je.isUndefined(c)){if(!Je.isUndefined(u))return s(void 0,u)}else return s(void 0,c)}function o(u,c,f){if(f in t)return s(u,c);if(f in e)return s(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(u,c)=>r(sk(u),sk(c),!0)};return Je.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||r,h=f(e[c],t[c],c);Je.isUndefined(h)&&f!==o||(n[c]=h)}),n}const KP=e=>{const t=Bl({},e);let{data:n,withXSRFToken:s,xsrfHeaderName:r,xsrfCookieName:i,headers:a,auth:o}=t;t.headers=a=vi.from(a),t.url=UP(WP(t.baseURL,t.url),e.params,e.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(Je.isFormData(n)){if(gi.hasStandardBrowserEnv||gi.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];a.setContentType([u||"multipart/form-data",...c].join("; "))}}if(gi.hasStandardBrowserEnv&&(s&&Je.isFunction(s)&&(s=s(t)),s||s!==!1&&Hme(t.url))){const u=r&&i&&zme.read(i);u&&a.set(r,u)}return t},Wme=typeof XMLHttpRequest<"u",Kme=Wme&&function(e){return new Promise(function(n,s){const r=KP(e);let i=r.data;const a=vi.from(r.headers).normalize();let{responseType:o}=r,l;function u(){r.cancelToken&&r.cancelToken.unsubscribe(l),r.signal&&r.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function f(){if(!c)return;const m=vi.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),p={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:m,config:e,request:c};qP(function(y){n(y),u()},function(y){s(y),u()},p),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(s(new tn("Request aborted",tn.ECONNABORTED,r,c)),c=null)},c.onerror=function(){s(new tn("Network Error",tn.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let g=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const p=r.transitional||HP;r.timeoutErrorMessage&&(g=r.timeoutErrorMessage),s(new tn(g,p.clarifyTimeoutError?tn.ETIMEDOUT:tn.ECONNABORTED,r,c)),c=null},i===void 0&&a.setContentType(null),"setRequestHeader"in c&&Je.forEach(a.toJSON(),function(g,p){c.setRequestHeader(p,g)}),Je.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),o&&o!=="json"&&(c.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&c.addEventListener("progress",jm(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",jm(r.onUploadProgress)),(r.cancelToken||r.signal)&&(l=m=>{c&&(s(!m||m.type?new Hc(null,e,c):m),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(l),r.signal&&(r.signal.aborted?l():r.signal.addEventListener("abort",l)));const h=Fme(r.url);if(h&&gi.protocols.indexOf(h)===-1){s(new tn("Unsupported protocol "+h+":",tn.ERR_BAD_REQUEST,e));return}c.send(i||null)})},Gme=(e,t)=>{let n=new AbortController,s;const r=function(l){if(!s){s=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof tn?u:new Hc(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{r(new tn(`timeout ${t} of ms exceeded`,tn.ETIMEDOUT))},t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",r):l.unsubscribe(r))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",r));const{signal:o}=n;return o.unsubscribe=a,[o,()=>{i&&clearTimeout(i),i=null}]},Yme=Gme,Xme=function*(e,t){let n=e.byteLength;if(!t||n<t){yield e;return}let s=0,r;for(;s<n;)r=s+t,yield e.slice(s,r),s=r},Qme=async function*(e,t,n){for await(const s of e)yield*Xme(ArrayBuffer.isView(s)?s:await n(String(s)),t)},rk=(e,t,n,s,r)=>{const i=Qme(e,t,r);let a=0;return new ReadableStream({type:"bytes",async pull(o){const{done:l,value:u}=await i.next();if(l){o.close(),s();return}let c=u.byteLength;n&&n(a+=c),o.enqueue(new Uint8Array(u))},cancel(o){return s(o),i.return()}},{highWaterMark:2})},ik=(e,t)=>{const n=e!=null;return s=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:s}))},mv=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",GP=mv&&typeof ReadableStream=="function",e_=mv&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Jme=GP&&(()=>{let e=!1;const t=new Request(gi.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),ak=64*1024,t_=GP&&!!(()=>{try{return Je.isReadableStream(new Response("").body)}catch{}})(),qm={stream:t_&&(e=>e.body)};mv&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!qm[t]&&(qm[t]=Je.isFunction(e[t])?n=>n[t]():(n,s)=>{throw new tn(`Response type '${t}' is not supported`,tn.ERR_NOT_SUPPORT,s)})})})(new Response);const Zme=async e=>{if(e==null)return 0;if(Je.isBlob(e))return e.size;if(Je.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(Je.isArrayBufferView(e))return e.byteLength;if(Je.isURLSearchParams(e)&&(e=e+""),Je.isString(e))return(await e_(e)).byteLength},ege=async(e,t)=>{const n=Je.toFiniteNumber(e.getContentLength());return n??Zme(t)},tge=mv&&(async e=>{let{url:t,method:n,data:s,signal:r,cancelToken:i,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=KP(e);u=u?(u+"").toLowerCase():"text";let[m,g]=r||i||a?Yme([r,i],a):[],p,v;const y=()=>{!p&&setTimeout(()=>{m&&m.unsubscribe()}),p=!0};let _;try{if(l&&Jme&&n!=="get"&&n!=="head"&&(_=await ege(c,s))!==0){let C=new Request(t,{method:"POST",body:s,duplex:"half"}),D;Je.isFormData(s)&&(D=C.headers.get("content-type"))&&c.setContentType(D),C.body&&(s=rk(C.body,ak,ik(_,jm(l)),null,e_))}Je.isString(f)||(f=f?"cors":"omit"),v=new Request(t,{...h,signal:m,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:s,duplex:"half",withCredentials:f});let b=await fetch(v);const T=t_&&(u==="stream"||u==="response");if(t_&&(o||T)){const C={};["status","statusText","headers"].forEach(N=>{C[N]=b[N]});const D=Je.toFiniteNumber(b.headers.get("content-length"));b=new Response(rk(b.body,ak,o&&ik(D,jm(o,!0)),T&&y,e_),C)}u=u||"text";let S=await qm[Je.findKey(qm,u)||"text"](b,e);return!T&&y(),g&&g(),await new Promise((C,D)=>{qP(C,D,{data:S,headers:vi.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:v})})}catch(b){throw y(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new tn("Network Error",tn.ERR_NETWORK,e,v),{cause:b.cause||b}):tn.from(b,b&&b.code,e,v)}}),n_={http:gme,xhr:Kme,fetch:tge};Je.forEach(n_,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const ok=e=>`- ${e}`,nge=e=>Je.isFunction(e)||e===null||e===!1,YP={getAdapter:e=>{e=Je.isArray(e)?e:[e];const{length:t}=e;let n,s;const r={};for(let i=0;i<t;i++){n=e[i];let a;if(s=n,!nge(n)&&(s=n_[(a=String(n)).toLowerCase()],s===void 0))throw new tn(`Unknown adapter '${a}'`);if(s)break;r[a||"#"+i]=s}if(!s){const i=Object.entries(r).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
|
||
`+i.map(ok).join(`
|
||
`):" "+ok(i[0]):"as no adapter specified";throw new tn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:n_};function Q0(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Hc(null,e)}function lk(e){return Q0(e),e.headers=vi.from(e.headers),e.data=X0.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),YP.getAdapter(e.adapter||lw.adapter)(e).then(function(s){return Q0(e),s.data=X0.call(e,e.transformResponse,s),s.headers=vi.from(s.headers),s},function(s){return jP(s)||(Q0(e),s&&s.response&&(s.response.data=X0.call(e,e.transformResponse,s.response),s.response.headers=vi.from(s.response.headers))),Promise.reject(s)})}const XP="1.7.2",uw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uw[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});const uk={};uw.transitional=function(t,n,s){function r(i,a){return"[Axios v"+XP+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,o)=>{if(t===!1)throw new tn(r(a," has been removed"+(n?" in "+n:"")),tn.ERR_DEPRECATED);return n&&!uk[a]&&(uk[a]=!0,console.warn(r(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,o):!0}};function sge(e,t,n){if(typeof e!="object")throw new tn("options must be an object",tn.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let r=s.length;for(;r-- >0;){const i=s[r],a=t[i];if(a){const o=e[i],l=o===void 0||a(o,i,e);if(l!==!0)throw new tn("option "+i+" must be "+l,tn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new tn("Unknown option "+i,tn.ERR_BAD_OPTION)}}const s_={assertOptions:sge,validators:uw},Ya=s_.validators;class Wm{constructor(t){this.defaults=t,this.interceptors={request:new tk,response:new tk}}async request(t,n){try{return await this._request(t,n)}catch(s){if(s instanceof Error){let r;Error.captureStackTrace?Error.captureStackTrace(r={}):r=new Error;const i=r.stack?r.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
|
||
`+i):s.stack=i}catch{}}throw s}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Bl(this.defaults,n);const{transitional:s,paramsSerializer:r,headers:i}=n;s!==void 0&&s_.assertOptions(s,{silentJSONParsing:Ya.transitional(Ya.boolean),forcedJSONParsing:Ya.transitional(Ya.boolean),clarifyTimeoutError:Ya.transitional(Ya.boolean)},!1),r!=null&&(Je.isFunction(r)?n.paramsSerializer={serialize:r}:s_.assertOptions(r,{encode:Ya.function,serialize:Ya.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Je.merge(i.common,i[n.method]);i&&Je.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=vi.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(l=l&&p.synchronous,o.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,f=0,h;if(!l){const g=[lk.bind(this),void 0];for(g.unshift.apply(g,o),g.push.apply(g,u),h=g.length,c=Promise.resolve(n);f<h;)c=c.then(g[f++],g[f++]);return c}h=o.length;let m=n;for(f=0;f<h;){const g=o[f++],p=o[f++];try{m=g(m)}catch(v){p.call(this,v);break}}try{c=lk.call(this,m)}catch(g){return Promise.reject(g)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(t){t=Bl(this.defaults,t);const n=WP(t.baseURL,t.url);return UP(n,t.params,t.paramsSerializer)}}Je.forEach(["delete","get","head","options"],function(t){Wm.prototype[t]=function(n,s){return this.request(Bl(s||{},{method:t,url:n,data:(s||{}).data}))}});Je.forEach(["post","put","patch"],function(t){function n(s){return function(i,a,o){return this.request(Bl(o||{},{method:t,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}Wm.prototype[t]=n(),Wm.prototype[t+"Form"]=n(!0)});const om=Wm;class cw{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const s=this;this.promise.then(r=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](r);s._listeners=null}),this.promise.then=r=>{let i;const a=new Promise(o=>{s.subscribe(o),i=o}).then(r);return a.cancel=function(){s.unsubscribe(i)},a},t(function(i,a,o){s.reason||(s.reason=new Hc(i,a,o),n(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new cw(function(r){t=r}),cancel:t}}}const rge=cw;function ige(e){return function(n){return e.apply(null,n)}}function age(e){return Je.isObject(e)&&e.isAxiosError===!0}const r_={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,NetworkAuthenticationRequired:511};Object.entries(r_).forEach(([e,t])=>{r_[t]=e});const oge=r_;function QP(e){const t=new om(e),n=IP(om.prototype.request,t);return Je.extend(n,om.prototype,t,{allOwnKeys:!0}),Je.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return QP(Bl(e,r))},n}const as=QP(lw);as.Axios=om;as.CanceledError=Hc;as.CancelToken=rge;as.isCancel=jP;as.VERSION=XP;as.toFormData=hv;as.AxiosError=tn;as.Cancel=as.CanceledError;as.all=function(t){return Promise.all(t)};as.spread=ige;as.isAxiosError=age;as.mergeConfig=Bl;as.AxiosHeaders=vi;as.formToJSON=e=>zP(Je.isHTMLForm(e)?new FormData(e):e);as.getAdapter=YP.getAdapter;as.HttpStatusCode=oge;as.default=as;const lge=as,uge={class:"loader"},cge=j4('<div class="loader-container" data-v-f4c312d6><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div><div class="dot" data-v-f4c312d6></div></div>',1),dge=[cge],fge=J({__name:"Loading",props:{msg:{}},setup(e){return(t,n)=>yt((x(),j("div",uge,dge,512)),[[Bt,e.msg.show]])}}),hge=En(fge,[["__scopeId","data-v-f4c312d6"]]),lm=Ct({show:!1,title:"拼命加载中..."}),pge=Ig(hge,{msg:lm}).mount(document.createElement("div")),J0={start(e){lm.show=!0,lm.title=e,document.body.appendChild(pge.$el),document.body.style.overflow="hidden"},close(){lm.show=!1,document.body.style.overflow="auto"}},mge=e=>{const t={key:"auth-token",value:e};localStorage.setItem("auth",JSON.stringify(t))},JP=()=>JSON.parse(localStorage.getItem("auth")),gge=()=>{localStorage.removeItem("auth")};let wd=0;const ZP=e=>new Promise((t,n)=>{const s=lge.create({baseURL:"/api",timeout:8e4});s.interceptors.request.use(r=>{wd++,J0.start("");let i=JP();return i&&i.value.length>0&&(r.headers[i.key]=i.value),r},r=>Promise.reject(r)),s.interceptors.response.use(r=>{wd--,wd==0&&J0.close();let i=r.headers["new-token"];return i&&i.length>0&&mge(i),r.data},r=>(wd--,wd==0&&J0.close(),r.response.status==401?(gS.replace("/login"),lt.error(r.response.data.msg)):r.response.status==403?lt.error("无访问权限!!!"):lt.error("服务器繁忙,请稍后再试"),Promise.reject(r))),s(e).then(r=>{t(r)}).catch(r=>{n(r)})}),cn=(e,t)=>ZP({url:e,method:"get",params:t}),Qn=(e,t)=>ZP({url:e,method:"post",data:t}),ui={FILM_HISTORY:"filmHistory"},ci={setCookie(e,t,n=30){let s=new Date;s.setTime(s.getTime()+n*24*60*60*1e3);let r="expires="+s.toUTCString();document.cookie=e+"="+encodeURIComponent(t)+"; "+r+": path=/"},getCookie(e){let t=document.cookie.split("; ");for(let n=0;n<t.length;n++){let[s,r]=t[n].split("=");if(s==e)return decodeURIComponent(r)}return""},clearCookie(e){let t=new Date;t.setTime(-1);let n="expires="+t.toUTCString();document.cookie=e+"=''; "+n}},gv=e=>(Ms("data-v-a8630ab5"),e=e(),$s(),e),vge={class:"header"},yge={class:"nav_left"},bge={href:"/",class:"site"},_ge={class:"search_group"},wge={class:"nav_right"},Sge={class:"nav_link"},Tge=gv(()=>O("a",{href:"/"},"首页",-1)),Cge=["href"],Ege=["href"],xge=gv(()=>O("b",{style:{"font-size":"22px"},class:"iconfont icon-history"},null,-1)),kge=[xge],Age={key:0,class:"dropdown-container"},Ige={class:"history-h"},Dge=gv(()=>O("b",{class:"iconfont icon-record history-h-icon"},null,-1)),Oge=gv(()=>O("span",{class:"history-h-title"},"历史观看记录",-1)),Pge={key:0,class:"history-c"},Rge=["href"],Nge={class:"history-c-item-t"},Mge={class:"history-c-item-e"},$ge={href:"/search",class:"hidden-md-and-up"},Lge=J({__name:"Header",setup(e){const t=q(""),n=Ct({historyFlag:!1,historyList:[{}],nav:Array,site:Object}),s=l=>{if(n.historyFlag=l,l){let u=ci.getCookie(ui.FILM_HISTORY)?JSON.parse(ci.getCookie(ui.FILM_HISTORY)):null,c=[];if(u){for(let f in u)c.push(u[f]);c.sort((f,h)=>h.timeStamp-f.timeStamp)}n.historyList=c}},r=()=>{ci.clearCookie(ui.FILM_HISTORY),n.historyList=[]};la();const i=()=>{if(t.value.length<=0){lt.error({message:"请先输入影片名称关键字再进行搜索",duration:1500});return}location.href=`/search?search=${t.value}`},a=Ct({cartoon:{},film:{},tv:{},variety:{}}),o=()=>{cn("/config/basic").then(l=>{l.code===0?n.site=l.data:lt.error({message:l.msg})})};return gt(()=>{cn("/navCategory").then(l=>{l.code===0?n.nav=l.data:lt.error({message:"导航分类信息获取失败",duration:1e3})}),o()}),(l,u)=>{const c=mn,f=$c,h=tt;return x(),j("div",vge,[O("div",yge,[O("a",bge,ce(n.site.siteName),1),O("div",_ge,[yt(O("input",{"onUpdate:modelValue":u[0]||(u[0]=m=>t.value=m),onKeydown:u[1]||(u[1]=m=>{m.keyCode==13&&i()}),placeholder:"搜索 动漫,剧集,电影 ",class:"search"},null,544),[[xa,t.value]]),E(c,{onClick:i,icon:d(kf)},null,8,["icon"])])]),O("div",wge,[O("div",Sge,[Tge,(x(!0),j(Ke,null,bt(n.nav,m=>(x(),j("a",{href:`/filmClassify?Pid=${m.id}`},ce(m.name),9,Cge))),256))]),O("div",{class:"history-link hidden-md-and-down",onMouseenter:u[2]||(u[2]=m=>s(!0)),onMouseleave:u[3]||(u[3]=m=>s(!1))},[O("a",{href:`/filmClassify?Pid=${a.variety.id}`},kge,8,Ege),E(Wn,{name:"fade-slide",duration:"300"},{default:P(()=>[n.historyFlag?(x(),j("div",Age,[O("div",Ige,[Dge,Oge,n.historyList.length>0?(x(),j("a",{key:0,class:"iconfont icon-clear1 history-del",onClick:r})):ae("",!0)]),n.historyList.length>0?(x(),j("div",Pge,[(x(!0),j(Ke,null,bt(n.historyList,m=>(x(),j("a",{href:m.link,class:"history-c-item"},[O("span",Nge,ce(m.name),1),O("span",Mge,ce(m.episode),1)],8,Rge))),256))])):(x(),de(f,{key:1,style:{padding:"10px 0"},description:"暂无观看记录"}))])):ae("",!0)]),_:1})],32),O("a",$ge,[E(h,{style:{"font-size":"18px"}},{default:P(()=>[E(d(kf))]),_:1})])])])}}}),Bge=En(Lge,[["__scopeId","data-v-a8630ab5"]]),Fge=e=>(Ms("data-v-78d3b7e0"),e=e(),$s(),e),Vge={class:"custom-footer"},Uge={key:0,class:"nav-bottom"},Hge=j4('<a href="/" data-v-78d3b7e0><b class="iconfont icon-ziyuan" data-v-78d3b7e0></b>首页</a><a href="javascript:void(0)" data-v-78d3b7e0><b class="iconfont icon-gengxin" data-v-78d3b7e0></b>更新</a><a href="/history" data-v-78d3b7e0><b class="iconfont icon-lishi" data-v-78d3b7e0></b>历史</a><a href="javascript:void(0)" data-v-78d3b7e0><b class="iconfont icon-shoucang2" data-v-78d3b7e0></b>收藏</a><a href="javascript:void(0)" data-v-78d3b7e0><b class="iconfont icon-ziyuan-copy" data-v-78d3b7e0></b>我的</a>',5),zge=[Hge],jge=Fge(()=>O("p",null,"本站所有内容均来自互联网分享站点所提供的公开引用资源,未提供资源上传、存储服务。",-1)),qge=J({__name:"Footer",setup(e){const t=Xe("global");return(n,s)=>(x(),j("div",Vge,[d(t).isMobile?(x(),j("div",Uge,zge)):ae("",!0),jge]))}}),Wge=En(qge,[["__scopeId","data-v-78d3b7e0"]]),Kge=J({__name:"IndexHome",setup(e){const t=navigator.userAgent.toLowerCase();let n=/Mobile|Tablet|Android|iPhone|iPad|iPod|BlackBerry|webOS|Windows Phone|SymbianOS|IEMobile|Opera Mini/i.test(t);return Mt("global",{isMobile:n}),(s,r)=>{const i=y2,a=Dt("router-view"),o=b2,l=c8,u=v2;return x(),de(u,null,{default:P(()=>[E(i,null,{default:P(()=>[E(Bge)]),_:1}),E(o,null,{default:P(()=>[E(a)]),_:1}),E(l,null,{default:P(()=>[E(Wge)]),_:1})]),_:1})}}}),Gge=En(Kge,[["__scopeId","data-v-32a398cc"]]),Yge={key:0,class:"c_content"},Xge={key:0,class:"hidden-md-and-up"},Qge=["href"],Jge={class:"tag_group"},Zge={class:"cus_tag"},eve={class:"cus_tag"},tve={class:"cus_tag"},nve={class:"cus_remark hidden-md-and-up"},sve=["src","alt"],rve=["href"],ive={class:"cus_remark hidden-md-and-down"},ave={key:1,class:"film-card-inner"},ove={class:"film-card-front"},lve=["href"],uve={class:"tag_group"},cve={class:"cus_tag"},dve={class:"cus_tag"},fve={class:"cus_tag"},hve={class:"cus_remark hidden-md-and-up"},pve=["src","alt"],mve=["onClick"],gve={class:"card-title"},vve={class:"card-blurb"},yve=["href"],bve=J({__name:"FilmList",props:{list:Array,col:Number},setup(e){const t=e,n=Ct({col:0,list:Array,width:0}),s=Xe("global"),r=a=>{a.target.style.display="none"},i=a=>{location.href=`/filmDetail?link=${a}`};return vs(()=>{const a=navigator.userAgent.toLowerCase();let o=/mobile|android|iphone|ipad|phone/i.test(a),l=o?3:t.col?t.col:0,u=t.list,c=u.length;if(n.width=o?31:Math.floor(100/l),c%l!=0)for(let f=0;f<l-c%l;f++){let h={...u[0]};h.id=-99,u.push(h)}n.list=u}),(a,o)=>{const l=mn,u=$c;return n.list?(x(),j("div",Yge,[n.list.length>0?(x(!0),j(Ke,{key:0},bt(n.list,c=>{var f,h;return x(),j("div",{class:"item film-card",style:st({width:`calc(${n.width-1}%)`})},[c.id!=-99&&d(s).isMobile?(x(),j("div",Xge,[O("a",{href:`/filmDetail?link=${c.id}`,class:"default_image link_content"},[O("div",Jge,[O("span",Zge,ce(c.year?c.year.slice(0,4):"未知"),1),O("span",eve,ce(c.cName),1),O("span",tve,ce(c.area.split(",")[0]),1)]),O("span",nve,ce(c.remarks),1),O("img",{src:c.picture,alt:(f=c.name)==null?void 0:f.split("[")[0],onError:r},null,40,sve)],8,Qge),O("a",{href:`/filmDetail?link=${c.id}`,class:"content_text_tag"},ce(c.name.split("[")[0]),9,rve),O("span",ive,ce(c.remarks),1)])):ae("",!0),d(s).isMobile?ae("",!0):(x(),j("div",ave,[O("div",ove,[O("a",{href:`/filmDetail?link=${c.id}`,class:"link_content"},[O("div",uve,[O("span",cve,ce(c.year?c.year.slice(0,4):"未知"),1),O("span",dve,ce(c.cName),1),O("span",fve,ce(c.area.split(",")[0]),1)]),O("span",hve,ce(c.remarks),1),O("img",{src:c.picture,alt:(h=c.name)==null?void 0:h.split("[")[0],onError:r},null,40,pve)],8,lve)]),O("div",{class:"film-card-back",onClick:m=>i(c.id)},[O("p",gve,ce(c.name),1),yt(O("p",{class:"card-blurb"},ce(c.blurb),513),[[Bt,c.blurb!=""]]),yt(O("p",vve," 暂无简介 ",512),[[Bt,c.blurb==""]]),E(l,{class:"card-detail",icon:d(fj),color:"#626aef",plain:"",round:"",onClick:m=>i(c.id)},{default:P(()=>[Te("详情")]),_:2},1032,["icon","onClick"])],8,mve)])),d(s).isMobile?ae("",!0):(x(),j("a",{key:2,href:`/filmDetail?link=${c.id}`,class:"content_text_tag hidden-sm-and-down"},ce(c.name.split("[")[0]),9,yve))],4)}),256)):ae("",!0),n.list.length<=0?(x(),de(u,{key:1,style:{padding:"10px 0",margin:"0 auto"},description:"暂无相关数据"})):ae("",!0)])):ae("",!0)}}}),Lu=En(bve,[["__scopeId","data-v-1f297049"]]),_ve={class:"container"},wve={class:"carousel-title"},Sve={class:"preview"},Tve={class:"carousel-tags"},Cve={class:"carousel-title"},Eve={class:"content_item"},xve=["href"],kve={key:0,class:"nav_ul"},Ave={key:0,class:"nav_category"},Ive=["href"],Dve={class:"nav_category"},Ove=["href"],Pve={class:"hot_title"},Rve={class:"content_right_item"},Nve=["href"],Mve={class:"top_item"},$ve=J({__name:"Home",setup(e){const t=Ct({info:{},banner:{current:{},touch:{index:0,star:0,end:0}}}),n=la(),s=Xe("global"),r=u=>{t.banner.current=t.info.banners[u]},i=()=>{t.banner.current.mid&&n.push("/filmDetail?link="+t.banner.current.mid)},a=q(),o=u=>{t.banner.touch.star=u.changedTouches[0].pageX},l=u=>{var f,h;t.banner.touch.end=u.changedTouches[0].pageX;let c=t.banner.touch.end-t.banner.touch.star;c>=50?(f=a.value)==null||f.prev():c<=-50&&((h=a.value)==null||h.next())};return Hl(()=>{cn("/index").then(u=>{u.code==0?(t.info=u.data,t.banner.current=t.info.banners[0]):lt.error({message:u.msg})})}),(u,c)=>{const f=tv,h=BD,m=LD,g=t8,p=e8;return x(),j("div",_ve,[d(s).isMobile?(x(),j("div",{key:0,class:"banner_wrap",onTouchstart:o,onTouchend:l,onClick:i},[E(m,{modelValue:t.banner.current,"onUpdate:modelValue":c[0]||(c[0]=v=>t.banner.current=v),ref_key:"wrap",ref:a,"pause-on-hover":!1,interval:5e3,trigger:"hover",height:"200px",arrow:"never",onChange:r},{default:P(()=>[(x(!0),j(Ke,null,bt(t.info.banners,v=>(x(),de(h,{key:v},{default:P(()=>[E(f,{style:{width:"100%",height:"100%"},src:v.poster,fit:"fill"},null,8,["src"]),O("p",wve,ce(v.name),1)]),_:2},1024))),128))]),_:1},8,["modelValue"])],32)):ae("",!0),d(s).isMobile?ae("",!0):(x(),j("div",{key:1,class:"banner",style:st({background:`url(${t.banner.current.poster})`,backgroundRepeat:"no-repeat",backgroundSize:"cover"}),onClick:i},[O("div",Sve,[E(m,{onChange:r,interval:5e3,height:"240px",arrow:"always"},{default:P(()=>[(x(!0),j(Ke,null,bt(t.info.banners,v=>(x(),de(h,{key:v.id},{default:P(()=>[E(f,{style:{width:"60%",height:"80%","border-radius":"5px"},src:v.picture,fit:"contain"},null,8,["src"]),O("div",Tve,[O("span",null,ce(v.year),1),O("span",null,ce(v.cName),1)]),O("p",Cve,ce(v.name),1)]),_:2},1024))),128))]),_:1})])],4)),(x(!0),j(Ke,null,bt(t.info.content,v=>(x(),j("div",Eve,[v.nav.show?(x(),j(Ke,{key:0},[E(p,{class:"row-bg cus_nav",justify:"space-between"},{default:P(()=>[E(g,{span:12,class:"title"},{default:P(()=>[O("span",{class:M(`iconfont ${v.nav.name.search("电影")!=-1?"icon-film":v.nav.name.search("剧")!=-1?"icon-tv":v.nav.name.search("动漫")!=-1?"icon-cartoon":"icon-variety"}`),style:{color:"#79bbff","font-size":"32px","margin-right":"10px","line-height":"130%"}},null,2),O("a",{href:`/filmClassify?Pid=${v.nav.id}`},ce(v.nav.name),9,xve)]),_:2},1024),E(g,{span:12},{default:P(()=>[d(s).isMobile?ae("",!0):(x(),j("ul",kve,[(x(!0),j(Ke,null,bt(v.nav.children,(y,_)=>(x(),j(Ke,null,[y.show&&_<6?(x(),j("li",Ave,[O("a",{href:`/filmClassifySearch?Pid=${y.pid}&Category=${y.id}`},ce(y.name),9,Ive)])):ae("",!0)],64))),256)),O("li",Dve,[O("a",{href:`/filmClassify?Pid=${v.nav.id}`},"更多 >",8,Ove)])]))]),_:2},1024)]),_:2},1024),E(p,{class:"cus_content"},{default:P(()=>[E(g,{md:24,lg:20,xl:20,class:"cus_content"},{default:P(()=>[v.movies?(x(),de(Lu,{key:0,col:6,list:v.movies.slice(0,12)},null,8,["list"])):ae("",!0)]),_:2},1024),d(s).isMobile?ae("",!0):(x(),de(g,{key:0,md:0,lg:4,xl:4,class:"content_right hidden-sm-and-down"},{default:P(()=>[O("h3",Pve,"🔥热播"+ce(v.nav.name),1),(x(!0),j(Ke,null,bt(v.hot.slice(0,12),(y,_)=>(x(),j("div",Rve,[O("a",{href:`/filmDetail?link=${y.mid}`},[O("b",Mve,ce(_+1+"."),1),O("span",null,ce(y.name),1)],8,Nve)]))),256))]),_:2},1024))]),_:2},1024)],64)):ae("",!0)]))),256))])}}}),Lve=En($ve,[["__scopeId","data-v-16de324d"]]),Bve=e=>(Ms("data-v-7fb740c1"),e=e(),$s(),e),Fve={class:"relate_container"},Vve=Bve(()=>O("p",{class:"title"},"相关推荐",-1)),Uve=J({__name:"RelateList",props:{relateList:Array},setup(e){return(t,n)=>(x(),j("div",Fve,[Vve,E(Lu,{col:7,list:e.relateList},null,8,["list"])]))}}),eR=En(Uve,[["__scopeId","data-v-7fb740c1"]]),ti=e=>(Ms("data-v-d51f8599"),e=e(),$s(),e),Hve={class:"film"},zve={class:"hidden-sm-and-up"},jve={class:"title_mt"},qve={class:"title_mt_right"},Wve={class:"tags"},Kve={style:{margin:"2px 0"}},Gve=ti(()=>O("span",null,"导演:",-1)),Yve=ti(()=>O("span",null,"主演:",-1)),Xve=ti(()=>O("span",null,"上映:",-1)),Qve=ti(()=>O("span",null,"地区:",-1)),Jve={key:0},Zve=ti(()=>O("span",null,"连载:",-1)),e0e={class:"mt_content"},t0e=["innerHTML"],n0e={class:"title hidden-sm-and-down"},s0e={class:"tags"},r0e={class:"t_c"},i0e=["href"],a0e={key:0},o0e=ti(()=>O("span",null,"导演:",-1)),l0e=ti(()=>O("span",null,"主演:",-1)),u0e=ti(()=>O("span",null,"上映:",-1)),c0e={key:0},d0e=ti(()=>O("span",null,"连载:",-1)),f0e=ti(()=>O("span",null,"评分:",-1)),h0e={id:"score"},p0e={class:"cus_wap"},m0e=ti(()=>O("p",{style:{"min-width":"40px"}},[O("span",null,"剧情:")],-1)),g0e=["innerHTML"],v0e={class:"play-module"},y0e={class:"play-module-item"},b0e={class:"module-heading"},_0e=ti(()=>O("p",{class:"play-module-title"},"播放列表",-1)),w0e={class:"play-tab-group"},S0e=["onClick"],T0e={class:"play-list"},C0e={class:"play-list-item"},E0e=["onClick"],x0e={class:"correlation"},k0e=J({__name:"FilmDetails",setup(e){const t=la(),n=Ct({detail:{id:"",cid:"",pid:"",name:"",picture:"",playFrom:[],DownFrom:"",playList:[[]],downloadList:"",descriptor:{subTitle:"",cName:"",enName:"",initial:"",classTag:"",actor:"",director:"",writer:"",blurb:"",remarks:"",releaseDate:"",area:"",language:"",year:"",state:"",updateTime:"",addTime:"",dbId:"",dbScore:"",hits:"",content:""},list:[]},relate:[],loading:!1,currentTabId:""}),s=u=>{let c="";return u.split(",").forEach((f,h)=>{h<3&&(c+=`${f} `)}),c.trimEnd()},r=u=>{n.currentTabId=u},i=u=>{t.push({path:"/play",query:{id:`${t.currentRoute.value.query.link}`,...u}})},a=q({state:!1,text:"展开"}),o=q(),l=u=>{if(u){a.value={state:!u,text:"展开"},o.value.style.webkitLineClamp=2;return}a.value={state:!u,text:"收起"},o.value.style.webkitLineClamp=8};return Hl(()=>{let u=t.currentRoute.value.query.link;cn("/filmDetail",{id:u}).then(c=>{c.code===0?(n.detail=c.data.detail,n.detail.name=n.detail.name.replace(/(~.*~)/g,""),n.detail.descriptor.content=n.detail.descriptor.content.replace(/(&.*;)|( )|( )|(\n)|(<[^>]+>)/g,""),n.relate=c.data.relate,n.detail.descriptor.actor=s(n.detail.descriptor.actor),n.detail.descriptor.director=s(n.detail.descriptor.director),n.currentTabId=c.data.detail.list[0].id,n.loading=!0):lt({type:"error",dangerouslyUseHTMLString:!0,message:c.msg})})}),(u,c)=>{const f=tt,h=mn;return yt((x(),j("div",Hve,[O("div",zve,[O("div",jve,[O("a",{class:"picture_mt",href:"",style:st({backgroundImage:`url('${n.detail.picture}')`})},null,4),O("div",qve,[O("h3",null,ce(n.detail.name),1),O("ul",Wve,[O("li",Kve,ce(n.detail.descriptor.classTag?`${n.detail.descriptor.classTag}`.replaceAll(","," | "):"未知"),1)]),O("p",null,[Gve,Te(" "+ce(n.detail.descriptor.director),1)]),O("p",null,[Yve,Te(" "+ce(s(n.detail.descriptor.actor)),1)]),O("p",null,[Xve,Te(" "+ce(n.detail.descriptor.releaseDate),1)]),O("p",null,[Qve,Te(" "+ce(n.detail.descriptor.area),1)]),n.detail.descriptor.remarks?(x(),j("p",Jve,[Zve,Te(ce(n.detail.descriptor.remarks),1)])):ae("",!0)])]),O("div",e0e,[O("p",{innerHTML:`${n.detail.descriptor.content}`.replaceAll(" ","")},null,8,t0e)])]),O("div",n0e,[O("a",{class:"picture",href:"",style:st({backgroundImage:`url('${n.detail.picture}')`})},null,4),O("h2",null,ce(n.detail.name),1),O("ul",s0e,[O("li",r0e,[O("a",{href:`/filmClassifySearch?Pid=${n.detail.pid}&Category=${n.detail.cid}`},[E(f,null,{default:P(()=>[E(d(N1))]),_:1}),Te(" "+ce(n.detail.descriptor.cName),1)],8,i0e)]),n.detail.descriptor.classTag?(x(),j("li",a0e,ce(`${n.detail.descriptor.classTag}`.replaceAll(","," ")),1)):ae("",!0),O("li",null,ce(n.detail.descriptor.year),1),O("li",null,ce(n.detail.descriptor.area),1)]),O("p",null,[o0e,Te(" "+ce(n.detail.descriptor.director),1)]),O("p",null,[l0e,Te(" "+ce(n.detail.descriptor.actor),1)]),O("p",null,[u0e,Te(" "+ce(n.detail.descriptor.releaseDate),1)]),n.detail.descriptor.remarks?(x(),j("p",c0e,[d0e,Te(ce(n.detail.descriptor.remarks),1)])):ae("",!0),O("p",null,[f0e,O("b",h0e,ce(n.detail.descriptor.dbScore),1)]),O("div",p0e,[m0e,O("p",{ref_key:"textContent",ref:o,class:"text_content"},[`${n.detail.descriptor.content}`.length>140?(x(),de(h,{key:0,class:"multi_text",style:{color:"#a574b7"},onClick:c[0]||(c[0]=m=>l(a.value.state)),link:""},{default:P(()=>[Te(ce(a.value.text),1)]),_:1})):ae("",!0),O("span",{class:"cus_info",innerHTML:n.detail.descriptor.content},null,8,g0e)],512)]),O("p",null,[E(h,{type:"warning",class:"player",size:"large",onClick:c[1]||(c[1]=m=>i({episode:0,source:n.detail.list[0].id})),round:""},{default:P(()=>[E(f,null,{default:P(()=>[E(d(Fg))]),_:1}),Te(" 立即播放 ")]),_:1})])]),O("div",v0e,[O("div",y0e,[O("div",b0e,[_0e,O("div",w0e,[(x(!0),j(Ke,null,bt(n.detail.list,m=>(x(),j("a",{href:"javascript:;",class:M(`play-tab-item ${n.currentTabId==m.id?"tab-active":""}`),onClick:g=>r(m.id)},ce(m.name),11,S0e))),256))])]),O("div",T0e,[(x(!0),j(Ke,null,bt(n.detail.list,m=>yt((x(),j("div",C0e,[(x(!0),j(Ke,null,bt(m.linkList,(g,p)=>(x(),j("a",{class:"play-link",href:"javascript:;",onClick:v=>i({source:m.id,episode:p})},ce(g.episode),9,E0e))),256))],512)),[[Bt,n.currentTabId==m.id]])),256))])])]),O("div",x0e,[E(eR,{"relate-list":n.relate},null,8,["relate-list"])])],512)),[[Bt,n.loading]])}}}),A0e=En(k0e,[["__scopeId","data-v-d51f8599"]]),tR="/assets/play-bb9c8990.png";var Nd;typeof window<"u"?Nd=window:typeof hr<"u"?Nd=hr:typeof self<"u"?Nd=self:Nd={};var vv=Nd;const me=xs(vv),I0e={},D0e=Object.freeze(Object.defineProperty({__proto__:null,default:I0e},Symbol.toStringTag,{value:"Module"})),O0e=pD(D0e);var ck=typeof hr<"u"?hr:typeof window<"u"?window:{},P0e=O0e,Md;typeof document<"u"?Md=document:(Md=ck["__GLOBAL_DOCUMENT_CACHE@4"],Md||(Md=ck["__GLOBAL_DOCUMENT_CACHE@4"]=P0e));var nR=Md;const dt=xs(nR);var R0e=N0e;function N0e(e,t){var n,s=null;try{n=JSON.parse(e,t)}catch(r){s=r}return[s,n]}const M0e=xs(R0e);var dw={exports:{}};function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},qn.apply(null,arguments)}const $0e=Object.freeze(Object.defineProperty({__proto__:null,get default(){return qn}},Symbol.toStringTag,{value:"Module"})),L0e=pD($0e);var B0e=V0e,F0e=Object.prototype.toString;function V0e(e){if(!e)return!1;var t=F0e.call(e);return t==="[object Function]"||typeof e=="function"&&t!=="[object RegExp]"||typeof window<"u"&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)}function U0e(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=H0e(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H0e(e,t){if(e){if(typeof e=="string")return dk(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dk(e,t)}}function dk(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}var z0e=function(){function e(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},t.addInterceptor=function(s,r){this.typeToInterceptorsMap_.has(s)||this.typeToInterceptorsMap_.set(s,new Set);var i=this.typeToInterceptorsMap_.get(s);return i.has(r)?!1:(i.add(r),!0)},t.removeInterceptor=function(s,r){var i=this.typeToInterceptorsMap_.get(s);return i&&i.has(r)?(i.delete(r),!0):!1},t.clearInterceptorsByType=function(s){var r=this.typeToInterceptorsMap_.get(s);return r?(this.typeToInterceptorsMap_.delete(s),this.typeToInterceptorsMap_.set(s,new Set),!0):!1},t.clear=function(){return this.typeToInterceptorsMap_.size?(this.typeToInterceptorsMap_=new Map,!0):!1},t.getForType=function(s){return this.typeToInterceptorsMap_.get(s)||new Set},t.execute=function(s,r){for(var i=this.getForType(s),a=U0e(i),o;!(o=a()).done;){var l=o.value;try{r=l(r)}catch{}}return r},e}(),j0e=z0e,q0e=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var t=e.prototype;return t.getIsEnabled=function(){return this.enabled_},t.enable=function(){this.enabled_=!0},t.disable=function(){this.enabled_=!1},t.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},t.getMaxAttempts=function(){return this.maxAttempts_},t.setMaxAttempts=function(s){this.maxAttempts_=s},t.getDelayFactor=function(){return this.delayFactor_},t.setDelayFactor=function(s){this.delayFactor_=s},t.getFuzzFactor=function(){return this.fuzzFactor_},t.setFuzzFactor=function(s){this.fuzzFactor_=s},t.getInitialDelay=function(){return this.initialDelay_},t.setInitialDelay=function(s){this.initialDelay_=s},t.createRetry=function(s){var r=s===void 0?{}:s,i=r.maxAttempts,a=r.delayFactor,o=r.fuzzFactor,l=r.initialDelay;return new W0e({maxAttempts:i||this.maxAttempts_,delayFactor:a||this.delayFactor_,fuzzFactor:o||this.fuzzFactor_,initialDelay:l||this.initialDelay_})},e}(),W0e=function(){function e(n){this.maxAttempts_=n.maxAttempts,this.delayFactor_=n.delayFactor,this.fuzzFactor_=n.fuzzFactor,this.currentDelay_=n.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var s=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+s},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var s=this.getCurrentMinPossibleDelay(),r=this.getCurrentMaxPossibleDelay();return s+Math.random()*(r-s)},e}(),K0e=q0e,G0e=vv,Y0e=function(t,n){return n===void 0&&(n=!1),function(s,r,i){if(s){t(s);return}if(r.statusCode>=400&&r.statusCode<=599){var a=i;if(n)if(G0e.TextDecoder){var o=X0e(r.headers&&r.headers["content-type"]);try{a=new TextDecoder(o).decode(i)}catch{}}else a=String.fromCharCode.apply(null,new Uint8Array(i));t({cause:a});return}t(null,i)}};function X0e(e){return e===void 0&&(e=""),e.toLowerCase().split(";").reduce(function(t,n){var s=n.split("="),r=s[0],i=s[1];return r.trim()==="charset"?i.trim():t},"utf-8")}var Q0e=Y0e,sR=vv,J0e=L0e,Z0e=B0e,rR=j0e,eye=K0e;Xn.httpHandler=Q0e;Xn.requestInterceptorsStorage=new rR;Xn.responseInterceptorsStorage=new rR;Xn.retryManager=new eye;/**
|
||
* @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 tye=function(t){var n={};return t&&t.trim().split(`
|
||
`).forEach(function(s){var r=s.indexOf(":"),i=s.slice(0,r).trim().toLowerCase(),a=s.slice(r+1).trim();typeof n[i]>"u"?n[i]=a:Array.isArray(n[i])?n[i].push(a):n[i]=[n[i],a]}),n};dw.exports=Xn;dw.exports.default=Xn;Xn.XMLHttpRequest=sR.XMLHttpRequest||iye;Xn.XDomainRequest="withCredentials"in new Xn.XMLHttpRequest?Xn.XMLHttpRequest:sR.XDomainRequest;nye(["get","put","post","patch","head","delete"],function(e){Xn[e==="delete"?"del":e]=function(t,n,s){return n=iR(t,n,s),n.method=e.toUpperCase(),fw(n)}});function nye(e,t){for(var n=0;n<e.length;n++)t(e[n])}function sye(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}function iR(e,t,n){var s=e;return Z0e(t)?(n=t,typeof e=="string"&&(s={uri:e})):s=J0e({},t,{uri:e}),s.callback=n,s}function Xn(e,t,n){return t=iR(e,t,n),fw(t)}function fw(e){if(typeof e.callback>"u")throw new Error("callback argument missing");if(e.requestType&&Xn.requestInterceptorsStorage.getIsEnabled()){var t={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},n=Xn.requestInterceptorsStorage.execute(e.requestType,t);e.uri=n.uri,e.headers=n.headers,e.body=n.body,e.metadata=n.metadata,e.retry=n.retry,e.timeout=n.timeout}var s=!1,r=function(S,C,D){s||(s=!0,e.callback(S,C,D))};function i(){u.readyState===4&&!Xn.responseInterceptorsStorage.getIsEnabled()&&setTimeout(l,0)}function a(){var T=void 0;if(u.response?T=u.response:T=u.responseText||rye(u),y)try{T=JSON.parse(T)}catch{}return T}function o(T){if(clearTimeout(_),clearTimeout(e.retryTimeout),T instanceof Error||(T=new Error(""+(T||"Unknown XMLHttpRequest Error"))),T.statusCode=0,!f&&Xn.retryManager.getIsEnabled()&&e.retry&&e.retry.shouldRetry()){e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=u,fw(e)},e.retry.getCurrentFuzzedDelay());return}if(e.requestType&&Xn.responseInterceptorsStorage.getIsEnabled()){var S={headers:b.headers||{},body:b.body,responseUrl:u.responseURL,responseType:u.responseType},C=Xn.responseInterceptorsStorage.execute(e.requestType,S);b.body=C.body,b.headers=C.headers}return r(T,b)}function l(){if(!f){var T;clearTimeout(_),clearTimeout(e.retryTimeout),e.useXDR&&u.status===void 0?T=200:T=u.status===1223?204:u.status;var S=b,C=null;if(T!==0?(S={body:a(),statusCode:T,method:m,headers:{},url:h,rawRequest:u},u.getAllResponseHeaders&&(S.headers=tye(u.getAllResponseHeaders()))):C=new Error("Internal XMLHttpRequest Error"),e.requestType&&Xn.responseInterceptorsStorage.getIsEnabled()){var D={headers:S.headers||{},body:S.body,responseUrl:u.responseURL,responseType:u.responseType},N=Xn.responseInterceptorsStorage.execute(e.requestType,D);S.body=N.body,S.headers=N.headers}return r(C,S,S.body)}}var u=e.xhr||null;u||(e.cors||e.useXDR?u=new Xn.XDomainRequest:u=new Xn.XMLHttpRequest);var c,f,h=u.url=e.uri||e.url,m=u.method=e.method||"GET",g=e.body||e.data,p=u.headers=e.headers||{},v=!!e.sync,y=!1,_,b={body:void 0,headers:{},statusCode:0,method:m,url:h,rawRequest:u};if("json"in e&&e.json!==!1&&(y=!0,p.accept||p.Accept||(p.Accept="application/json"),m!=="GET"&&m!=="HEAD"&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),g=JSON.stringify(e.json===!0?g:e.json))),u.onreadystatechange=i,u.onload=l,u.onerror=o,u.onprogress=function(){},u.onabort=function(){f=!0,clearTimeout(e.retryTimeout)},u.ontimeout=o,u.open(m,h,!v,e.username,e.password),v||(u.withCredentials=!!e.withCredentials),!v&&e.timeout>0&&(_=setTimeout(function(){if(!f){f=!0,u.abort("timeout");var T=new Error("XMLHttpRequest timeout");T.code="ETIMEDOUT",o(T)}},e.timeout)),u.setRequestHeader)for(c in p)p.hasOwnProperty(c)&&u.setRequestHeader(c,p[c]);else if(e.headers&&!sye(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(u.responseType=e.responseType),"beforeSend"in e&&typeof e.beforeSend=="function"&&e.beforeSend(u),u.send(g||null),u}function rye(e){try{if(e.responseType==="document")return e.responseXML;var t=e.responseXML&&e.responseXML.documentElement.nodeName==="parsererror";if(e.responseType===""&&!t)return e.responseXML}catch{}return null}function iye(){}var aye=dw.exports;const aR=xs(aye);var oR={exports:{}},fk=nR,hw=Object.create||function(){function e(){}return function(t){if(arguments.length!==1)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function Er(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}Er.prototype=hw(Error.prototype);Er.prototype.constructor=Er;Er.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}};function pw(e){function t(s,r,i,a){return(s|0)*3600+(r|0)*60+(i|0)+(a|0)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function rf(){this.values=hw(null)}rf.prototype={set:function(e,t){!this.get(e)&&t!==""&&(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var s=0;s<n.length;++s)if(t===n[s]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t),t>=0&&t<=100)?(this.set(e,t),!0):!1}};function $d(e,t,n,s){var r=s?e.split(s):[e];for(var i in r)if(typeof r[i]=="string"){var a=r[i].split(n);if(a.length===2){var o=a[0].trim(),l=a[1].trim();t(o,l)}}}function oye(e,t,n){var s=e;function r(){var o=pw(e);if(o===null)throw new Er(Er.Errors.BadTimeStamp,"Malformed timestamp: "+s);return e=e.replace(/^[^\sa-zA-Z-]+/,""),o}function i(o,l){var u=new rf;$d(o,function(c,f){switch(c){case"region":for(var h=n.length-1;h>=0;h--)if(n[h].id===f){u.set(c,n[h].region);break}break;case"vertical":u.alt(c,f,["rl","lr"]);break;case"line":var m=f.split(","),g=m[0];u.integer(c,g),u.percent(c,g)&&u.set("snapToLines",!1),u.alt(c,g,["auto"]),m.length===2&&u.alt("lineAlign",m[1],["start","center","end"]);break;case"position":m=f.split(","),u.percent(c,m[0]),m.length===2&&u.alt("positionAlign",m[1],["start","center","end"]);break;case"size":u.percent(c,f);break;case"align":u.alt(c,f,["start","center","end","left","right"]);break}},/:/,/\s/),l.region=u.get("region",null),l.vertical=u.get("vertical","");try{l.line=u.get("line","auto")}catch{}l.lineAlign=u.get("lineAlign","start"),l.snapToLines=u.get("snapToLines",!0),l.size=u.get("size",100);try{l.align=u.get("align","center")}catch{l.align=u.get("align","middle")}try{l.position=u.get("position","auto")}catch{l.position=u.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},l.align)}l.positionAlign=u.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},l.align)}function a(){e=e.replace(/^\s+/,"")}if(a(),t.startTime=r(),a(),e.substr(0,3)!=="-->")throw new Er(Er.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+s);e=e.substr(3),a(),t.endTime=r(),a(),i(e,t)}var Z0=fk.createElement&&fk.createElement("textarea"),lye={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},hk={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},uye={v:"title",lang:"lang"},pk={rt:"ruby"};function lR(e,t){function n(){if(!t)return null;function g(v){return t=t.substr(v.length),v}var p=t.match(/^([^<]*)(<[^>]*>?)?/);return g(p[1]?p[1]:p[2])}function s(g){return Z0.innerHTML=g,g=Z0.textContent,Z0.textContent="",g}function r(g,p){return!pk[p.localName]||pk[p.localName]===g.localName}function i(g,p){var v=lye[g];if(!v)return null;var y=e.document.createElement(v),_=uye[g];return _&&p&&(y[_]=p.trim()),y}for(var a=e.document.createElement("div"),o=a,l,u=[];(l=n())!==null;){if(l[0]==="<"){if(l[1]==="/"){u.length&&u[u.length-1]===l.substr(2).replace(">","")&&(u.pop(),o=o.parentNode);continue}var c=pw(l.substr(1,l.length-2)),f;if(c){f=e.document.createProcessingInstruction("timestamp",c),o.appendChild(f);continue}var h=l.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!h||(f=i(h[1],h[3]),!f)||!r(o,f))continue;if(h[2]){var m=h[2].split(".");m.forEach(function(g){var p=/^bg_/.test(g),v=p?g.slice(3):g;if(hk.hasOwnProperty(v)){var y=p?"background-color":"color",_=hk[v];f.style[y]=_}}),f.className=m.join(" ")}u.push(h[1]),o.appendChild(f),o=f;continue}o.appendChild(e.document.createTextNode(s(l)))}return a}var mk=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function cye(e){for(var t=0;t<mk.length;t++){var n=mk[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function dye(e){var t=[],n="",s;if(!e||!e.childNodes)return"ltr";function r(o,l){for(var u=l.childNodes.length-1;u>=0;u--)o.push(l.childNodes[u])}function i(o){if(!o||!o.length)return null;var l=o.pop(),u=l.textContent||l.innerText;if(u){var c=u.match(/^.*(\n|\r)/);return c?(o.length=0,c[0]):u}if(l.tagName==="ruby")return i(o);if(l.childNodes)return r(o,l),i(o)}for(r(t,e);n=i(t);)for(var a=0;a<n.length;a++)if(s=n.charCodeAt(a),cye(s))return"rtl";return"ltr"}function fye(e){if(typeof e.line=="number"&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,s=0,r=0;r<n.length&&n[r]!==t;r++)n[r].mode==="showing"&&s++;return++s*-1}function yv(){}yv.prototype.applyStyles=function(e,t){t=t||this.div;for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n])};yv.prototype.formatStyle=function(e,t){return e===0?0:e+t};function Km(e,t,n){yv.call(this),this.cue=t,this.cueDiv=lR(e,t.text);var s={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(s,this.cueDiv),this.div=e.document.createElement("div"),s={direction:dye(this.cueDiv),writingMode:t.vertical===""?"horizontal-tb":t.vertical==="lr"?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:t.align==="middle"?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(s),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":r=t.position-t.size;break}t.vertical===""?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(i){this.applyStyles({top:this.formatStyle(i.top,"px"),bottom:this.formatStyle(i.bottom,"px"),left:this.formatStyle(i.left,"px"),right:this.formatStyle(i.right,"px"),height:this.formatStyle(i.height,"px"),width:this.formatStyle(i.width,"px")})}}Km.prototype=hw(yv.prototype);Km.prototype.constructor=Km;function Ws(e){var t,n,s,r;if(e.div){n=e.div.offsetHeight,s=e.div.offsetWidth,r=e.div.offsetTop;var i=(i=e.div.childNodes)&&(i=i[0])&&i.getClientRects&&i.getClientRects();e=e.div.getBoundingClientRect(),t=i?Math.max(i[0]&&i[0].height||0,e.height/i.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||s,this.lineHeight=t!==void 0?t:e.lineHeight}Ws.prototype.move=function(e,t){switch(t=t!==void 0?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t;break}};Ws.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top};Ws.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1};Ws.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right};Ws.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}};Ws.prototype.intersectPercentage=function(e){var t=Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left)),n=Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top)),s=t*n;return s/(this.height*this.width)};Ws.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}};Ws.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,s=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e;var r={left:e.left,right:e.right,top:e.top||s,height:e.height||t,bottom:e.bottom||s+(e.height||t),width:e.width||n};return r};function hye(e,t,n,s){function r(v,y){for(var _,b=new Ws(v),T=1,S=0;S<y.length;S++){for(;v.overlapsOppositeAxis(n,y[S])||v.within(n)&&v.overlapsAny(s);)v.move(y[S]);if(v.within(n))return v;var C=v.intersectPercentage(n);T>C&&(_=new Ws(v),T=C),v=new Ws(b)}return _||b}var i=new Ws(t),a=t.cue,o=fye(a),l=[];if(a.snapToLines){var u;switch(a.vertical){case"":l=["+y","-y"],u="height";break;case"rl":l=["+x","-x"],u="width";break;case"lr":l=["-x","+x"],u="width";break}var c=i.lineHeight,f=c*Math.round(o),h=n[u]+c,m=l[0];Math.abs(f)>h&&(f=f<0?-1:1,f*=Math.ceil(h/c)*c),o<0&&(f+=a.vertical===""?n.height:n.width,l=l.reverse()),i.move(m,f)}else{var g=i.lineHeight/n.height*100;switch(a.lineAlign){case"center":o-=g/2;break;case"end":o-=g;break}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")});break}l=["+y","-x","+x","-y"],i=new Ws(t)}var p=r(i,l);t.move(p.toCSSCompatValues(n))}function zc(){}zc.StringDecoder=function(){return{decode:function(e){if(!e)return"";if(typeof e!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}};zc.convertCueToDOMTree=function(e,t){return!e||!t?null:lR(e,t)};var pye=.05,mye="sans-serif",gye="1.5%";zc.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var s=e.document.createElement("div");s.style.position="absolute",s.style.left="0",s.style.right="0",s.style.top="0",s.style.bottom="0",s.style.margin=gye,n.appendChild(s);function r(c){for(var f=0;f<c.length;f++)if(c[f].hasBeenReset||!c[f].displayState)return!0;return!1}if(!r(t)){for(var i=0;i<t.length;i++)s.appendChild(t[i].displayState);return}var a=[],o=Ws.getSimpleBoxPosition(s),l=Math.round(o.height*pye*100)/100,u={font:l+"px "+mye};(function(){for(var c,f,h=0;h<t.length;h++)f=t[h],c=new Km(e,f,u),s.appendChild(c.div),hye(e,c,o,a),f.displayState=c.div,a.push(Ws.getSimpleBoxPosition(c))})()};zc.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]};zc.Parser.prototype={reportOrThrowError:function(e){if(e instanceof Er)this.onparsingerror&&this.onparsingerror(e);else throw e},parse:function(e){var t=this;e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));function n(){for(var c=t.buffer,f=0;f<c.length&&c[f]!=="\r"&&c[f]!==`
|
||
`;)++f;var h=c.substr(0,f);return c[f]==="\r"&&++f,c[f]===`
|
||
`&&++f,t.buffer=c.substr(f),h}function s(c){var f=new rf;if($d(c,function(m,g){switch(m){case"id":f.set(m,g);break;case"width":f.percent(m,g);break;case"lines":f.integer(m,g);break;case"regionanchor":case"viewportanchor":var p=g.split(",");if(p.length!==2)break;var v=new rf;if(v.percent("x",p[0]),v.percent("y",p[1]),!v.has("x")||!v.has("y"))break;f.set(m+"X",v.get("x")),f.set(m+"Y",v.get("y"));break;case"scroll":f.alt(m,g,["up"]);break}},/=/,/\s/),f.has("id")){var h=new(t.vttjs.VTTRegion||t.window.VTTRegion);h.width=f.get("width",100),h.lines=f.get("lines",3),h.regionAnchorX=f.get("regionanchorX",0),h.regionAnchorY=f.get("regionanchorY",100),h.viewportAnchorX=f.get("viewportanchorX",0),h.viewportAnchorY=f.get("viewportanchorY",100),h.scroll=f.get("scroll",""),t.onregion&&t.onregion(h),t.regionList.push({id:f.get("id"),region:h})}}function r(c){var f=new rf;$d(c,function(h,m){switch(h){case"MPEGT":f.integer(h+"S",m);break;case"LOCA":f.set(h+"L",pw(m));break}},/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:f.get("MPEGTS"),LOCAL:f.get("LOCAL")})}function i(c){c.match(/X-TIMESTAMP-MAP/)?$d(c,function(f,h){switch(f){case"X-TIMESTAMP-MAP":r(h);break}},/=/):$d(c,function(f,h){switch(f){case"Region":s(h);break}},/:/)}try{var a;if(t.state==="INITIAL"){if(!/\r\n|\n/.test(t.buffer))return this;a=n();var o=a.match(/^WEBVTT([ \t].*)?$/);if(!o||!o[0])throw new Er(Er.Errors.BadSignature);t.state="HEADER"}for(var l=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(l?l=!1:a=n(),t.state){case"HEADER":/:/.test(a)?i(a):a||(t.state="ID");continue;case"NOTE":a||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(a)){t.state="NOTE";break}if(!a)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch{t.cue.align="middle"}if(t.state="CUE",a.indexOf("-->")===-1){t.cue.id=a;continue}case"CUE":try{oye(a,t.cue,t.regionList)}catch(c){t.reportOrThrowError(c),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var u=a.indexOf("-->")!==-1;if(!a||u&&(l=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+=`
|
||
`),t.cue.text+=a.replace(/\u2028/g,`
|
||
`).replace(/u2029/g,`
|
||
`);continue;case"BADCUE":a||(t.state="ID");continue}}}catch(c){t.reportOrThrowError(c),t.state==="CUETEXT"&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state=t.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||e.state==="HEADER")&&(e.buffer+=`
|
||
|
||
`,e.parse()),e.state==="INITIAL")throw new Er(Er.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}};var vye=zc,yye="auto",bye={"":1,lr:1,rl:1},_ye={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function wye(e){if(typeof e!="string")return!1;var t=bye[e.toLowerCase()];return t?e.toLowerCase():!1}function ey(e){if(typeof e!="string")return!1;var t=_ye[e.toLowerCase()];return t?e.toLowerCase():!1}function uR(e,t,n){this.hasBeenReset=!1;var s="",r=!1,i=e,a=t,o=n,l=null,u="",c=!0,f="auto",h="start",m="auto",g="auto",p=100,v="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(y){s=""+y}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(y){r=!!y}},startTime:{enumerable:!0,get:function(){return i},set:function(y){if(typeof y!="number")throw new TypeError("Start time must be set to a number.");i=y,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number")throw new TypeError("End time must be set to a number.");a=y,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(y){o=""+y,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(y){l=y,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return u},set:function(y){var _=wye(y);if(_===!1)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");u=_,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(y){c=!!y,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(y){if(typeof y!="number"&&y!==yye)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=y,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(y){var _=ey(y);_?(h=_,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(y){if(y<0||y>100)throw new Error("Position must be between 0 and 100.");m=y,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(y){var _=ey(y);_?(g=_,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return p},set:function(y){if(y<0||y>100)throw new Error("Size must be between 0 and 100.");p=y,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return v},set:function(y){var _=ey(y);if(!_)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");v=_,this.hasBeenReset=!0}}}),this.displayState=void 0}uR.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Sye=uR,Tye={"":!0,up:!0};function Cye(e){if(typeof e!="string")return!1;var t=Tye[e.toLowerCase()];return t?e.toLowerCase():!1}function Sd(e){return typeof e=="number"&&e>=0&&e<=100}function Eye(){var e=100,t=3,n=0,s=100,r=0,i=100,a="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(o){if(!Sd(o))throw new Error("Width must be between 0 and 100.");e=o}},lines:{enumerable:!0,get:function(){return t},set:function(o){if(typeof o!="number")throw new TypeError("Lines must be set to a number.");t=o}},regionAnchorY:{enumerable:!0,get:function(){return s},set:function(o){if(!Sd(o))throw new Error("RegionAnchorX must be between 0 and 100.");s=o}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(o){if(!Sd(o))throw new Error("RegionAnchorY must be between 0 and 100.");n=o}},viewportAnchorY:{enumerable:!0,get:function(){return i},set:function(o){if(!Sd(o))throw new Error("ViewportAnchorY must be between 0 and 100.");i=o}},viewportAnchorX:{enumerable:!0,get:function(){return r},set:function(o){if(!Sd(o))throw new Error("ViewportAnchorX must be between 0 and 100.");r=o}},scroll:{enumerable:!0,get:function(){return a},set:function(o){var l=Cye(o);l===!1?console.warn("Scroll: an invalid or illegal string was specified."):a=l}}})}var xye=Eye,Ia=vv,Yl=oR.exports={WebVTT:vye,VTTCue:Sye,VTTRegion:xye};Ia.vttjs=Yl;Ia.WebVTT=Yl.WebVTT;var kye=Yl.VTTCue,Aye=Yl.VTTRegion,Iye=Ia.VTTCue,Dye=Ia.VTTRegion;Yl.shim=function(){Ia.VTTCue=kye,Ia.VTTRegion=Aye};Yl.restore=function(){Ia.VTTCue=Iye,Ia.VTTRegion=Dye};Ia.VTTCue||Yl.shim();var Oye=oR.exports;const gk=xs(Oye);var cR={exports:{}};(function(e,t){(function(n){var s=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,r=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(l,u,c){if(c=c||{},l=l.trim(),u=u.trim(),!u){if(!c.alwaysNormalize)return l;var f=o.parseURL(l);if(!f)throw new Error("Error trying to parse base URL.");return f.path=o.normalizePath(f.path),o.buildURLFromParts(f)}var h=o.parseURL(u);if(!h)throw new Error("Error trying to parse relative URL.");if(h.scheme)return c.alwaysNormalize?(h.path=o.normalizePath(h.path),o.buildURLFromParts(h)):u;var m=o.parseURL(l);if(!m)throw new Error("Error trying to parse base URL.");if(!m.netLoc&&m.path&&m.path[0]!=="/"){var g=r.exec(m.path);m.netLoc=g[1],m.path=g[2]}m.netLoc&&!m.path&&(m.path="/");var p={scheme:m.scheme,netLoc:h.netLoc,path:null,params:h.params,query:h.query,fragment:h.fragment};if(!h.netLoc&&(p.netLoc=m.netLoc,h.path[0]!=="/"))if(!h.path)p.path=m.path,h.params||(p.params=m.params,h.query||(p.query=m.query));else{var v=m.path,y=v.substring(0,v.lastIndexOf("/")+1)+h.path;p.path=o.normalizePath(y)}return p.path===null&&(p.path=c.alwaysNormalize?o.normalizePath(h.path):h.path),o.buildURLFromParts(p)},parseURL:function(l){var u=s.exec(l);return u?{scheme:u[1]||"",netLoc:u[2]||"",path:u[3]||"",params:u[4]||"",query:u[5]||"",fragment:u[6]||""}:null},normalizePath:function(l){for(l=l.split("").reverse().join("").replace(i,"");l.length!==(l=l.replace(a,"")).length;);return l.split("").reverse().join("")},buildURLFromParts:function(l){return l.scheme+l.netLoc+l.path+l.params+l.query+l.fragment}};e.exports=o})()})(cR);var Pye=cR.exports;const vk=xs(Pye);var yk="http://example.com",bv=function(t,n){if(/^[a-z]+:/i.test(n))return n;/^data:/.test(t)&&(t=me.location&&me.location.href||"");var s=typeof me.URL=="function",r=/^\/\//.test(t),i=!me.location&&!/\/\//i.test(t);if(s?t=new me.URL(t,me.location||yk):/\/\//i.test(t)||(t=vk.buildAbsoluteURL(me.location&&me.location.href||"",t)),s){var a=new URL(n,t);return i?a.href.slice(yk.length):r?a.href.slice(a.protocol.length):a.href}return vk.buildAbsoluteURL(t,n)},mw=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(s,r){this.listeners[s]||(this.listeners[s]=[]),this.listeners[s].push(r)},t.off=function(s,r){if(!this.listeners[s])return!1;var i=this.listeners[s].indexOf(r);return this.listeners[s]=this.listeners[s].slice(0),this.listeners[s].splice(i,1),i>-1},t.trigger=function(s){var r=this.listeners[s];if(r)if(arguments.length===2)for(var i=r.length,a=0;a<i;++a)r[a].call(this,arguments[1]);else for(var o=Array.prototype.slice.call(arguments,1),l=r.length,u=0;u<l;++u)r[u].apply(this,o)},t.dispose=function(){this.listeners={}},t.pipe=function(s){this.on("data",function(r){s.push(r)})},e}(),Rye=function(t){return me.atob?me.atob(t):Buffer.from(t,"base64").toString("binary")};function Nye(e){for(var t=Rye(e),n=new Uint8Array(t.length),s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}/*! @name m3u8-parser @version 7.1.0 @license Apache-2.0 */class Mye extends mw{constructor(){super(),this.buffer=""}push(t){let n;for(this.buffer+=t,n=this.buffer.indexOf(`
|
||
`);n>-1;n=this.buffer.indexOf(`
|
||
`))this.trigger("data",this.buffer.substring(0,n)),this.buffer=this.buffer.substring(n+1)}}const $ye=String.fromCharCode(9),ty=function(e){const t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},Lye=function(){const e="[^=]*",t='"[^"]*"|[^,]*',n="(?:"+e+")=(?:"+t+")";return new RegExp("(?:^|,)("+n+")")},br=function(e){const t={};if(!e)return t;const n=e.split(Lye());let s=n.length,r;for(;s--;)n[s]!==""&&(r=/([^=]*)=(.*)/.exec(n[s]).slice(1),r[0]=r[0].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^\s+|\s+$/g,""),r[1]=r[1].replace(/^['"](.*)['"]$/g,"$1"),t[r[0]]=r[1]);return t};class Bye extends mw{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(t){let n,s;if(t=t.trim(),t.length===0)return;if(t[0]!=="#"){this.trigger("data",{type:"uri",uri:t});return}this.tagMappers.reduce((i,a)=>{const o=a(t);return o===t?i:i.concat([o])},[t]).forEach(i=>{for(let a=0;a<this.customParsers.length;a++)if(this.customParsers[a].call(this,i))return;if(i.indexOf("#EXT")!==0){this.trigger("data",{type:"comment",text:i.slice(1)});return}if(i=i.replace("\r",""),n=/^#EXTM3U/.exec(i),n){this.trigger("data",{type:"tag",tagType:"m3u"});return}if(n=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(i),n){s={type:"tag",tagType:"inf"},n[1]&&(s.duration=parseFloat(n[1])),n[2]&&(s.title=n[2]),this.trigger("data",s);return}if(n=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(i),n){s={type:"tag",tagType:"targetduration"},n[1]&&(s.duration=parseInt(n[1],10)),this.trigger("data",s);return}if(n=/^#EXT-X-VERSION:([0-9.]*)?/.exec(i),n){s={type:"tag",tagType:"version"},n[1]&&(s.version=parseInt(n[1],10)),this.trigger("data",s);return}if(n=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(i),n){s={type:"tag",tagType:"media-sequence"},n[1]&&(s.number=parseInt(n[1],10)),this.trigger("data",s);return}if(n=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(i),n){s={type:"tag",tagType:"discontinuity-sequence"},n[1]&&(s.number=parseInt(n[1],10)),this.trigger("data",s);return}if(n=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(i),n){s={type:"tag",tagType:"playlist-type"},n[1]&&(s.playlistType=n[1]),this.trigger("data",s);return}if(n=/^#EXT-X-BYTERANGE:(.*)?$/.exec(i),n){s=qn(ty(n[1]),{type:"tag",tagType:"byterange"}),this.trigger("data",s);return}if(n=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(i),n){s={type:"tag",tagType:"allow-cache"},n[1]&&(s.allowed=!/NO/.test(n[1])),this.trigger("data",s);return}if(n=/^#EXT-X-MAP:(.*)$/.exec(i),n){if(s={type:"tag",tagType:"map"},n[1]){const a=br(n[1]);a.URI&&(s.uri=a.URI),a.BYTERANGE&&(s.byterange=ty(a.BYTERANGE))}this.trigger("data",s);return}if(n=/^#EXT-X-STREAM-INF:(.*)$/.exec(i),n){if(s={type:"tag",tagType:"stream-inf"},n[1]){if(s.attributes=br(n[1]),s.attributes.RESOLUTION){const a=s.attributes.RESOLUTION.split("x"),o={};a[0]&&(o.width=parseInt(a[0],10)),a[1]&&(o.height=parseInt(a[1],10)),s.attributes.RESOLUTION=o}s.attributes.BANDWIDTH&&(s.attributes.BANDWIDTH=parseInt(s.attributes.BANDWIDTH,10)),s.attributes["FRAME-RATE"]&&(s.attributes["FRAME-RATE"]=parseFloat(s.attributes["FRAME-RATE"])),s.attributes["PROGRAM-ID"]&&(s.attributes["PROGRAM-ID"]=parseInt(s.attributes["PROGRAM-ID"],10))}this.trigger("data",s);return}if(n=/^#EXT-X-MEDIA:(.*)$/.exec(i),n){s={type:"tag",tagType:"media"},n[1]&&(s.attributes=br(n[1])),this.trigger("data",s);return}if(n=/^#EXT-X-ENDLIST/.exec(i),n){this.trigger("data",{type:"tag",tagType:"endlist"});return}if(n=/^#EXT-X-DISCONTINUITY/.exec(i),n){this.trigger("data",{type:"tag",tagType:"discontinuity"});return}if(n=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(i),n){s={type:"tag",tagType:"program-date-time"},n[1]&&(s.dateTimeString=n[1],s.dateTimeObject=new Date(n[1])),this.trigger("data",s);return}if(n=/^#EXT-X-KEY:(.*)$/.exec(i),n){s={type:"tag",tagType:"key"},n[1]&&(s.attributes=br(n[1]),s.attributes.IV&&(s.attributes.IV.substring(0,2).toLowerCase()==="0x"&&(s.attributes.IV=s.attributes.IV.substring(2)),s.attributes.IV=s.attributes.IV.match(/.{8}/g),s.attributes.IV[0]=parseInt(s.attributes.IV[0],16),s.attributes.IV[1]=parseInt(s.attributes.IV[1],16),s.attributes.IV[2]=parseInt(s.attributes.IV[2],16),s.attributes.IV[3]=parseInt(s.attributes.IV[3],16),s.attributes.IV=new Uint32Array(s.attributes.IV))),this.trigger("data",s);return}if(n=/^#EXT-X-START:(.*)$/.exec(i),n){s={type:"tag",tagType:"start"},n[1]&&(s.attributes=br(n[1]),s.attributes["TIME-OFFSET"]=parseFloat(s.attributes["TIME-OFFSET"]),s.attributes.PRECISE=/YES/.test(s.attributes.PRECISE)),this.trigger("data",s);return}if(n=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(i),n){s={type:"tag",tagType:"cue-out-cont"},n[1]?s.data=n[1]:s.data="",this.trigger("data",s);return}if(n=/^#EXT-X-CUE-OUT:(.*)?$/.exec(i),n){s={type:"tag",tagType:"cue-out"},n[1]?s.data=n[1]:s.data="",this.trigger("data",s);return}if(n=/^#EXT-X-CUE-IN:(.*)?$/.exec(i),n){s={type:"tag",tagType:"cue-in"},n[1]?s.data=n[1]:s.data="",this.trigger("data",s);return}if(n=/^#EXT-X-SKIP:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"skip"},s.attributes=br(n[1]),s.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(s.attributes["SKIPPED-SEGMENTS"]=parseInt(s.attributes["SKIPPED-SEGMENTS"],10)),s.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(s.attributes["RECENTLY-REMOVED-DATERANGES"]=s.attributes["RECENTLY-REMOVED-DATERANGES"].split($ye)),this.trigger("data",s);return}if(n=/^#EXT-X-PART:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"part"},s.attributes=br(n[1]),["DURATION"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=parseFloat(s.attributes[a]))}),["INDEPENDENT","GAP"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=/YES/.test(s.attributes[a]))}),s.attributes.hasOwnProperty("BYTERANGE")&&(s.attributes.byterange=ty(s.attributes.BYTERANGE)),this.trigger("data",s);return}if(n=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"server-control"},s.attributes=br(n[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=parseFloat(s.attributes[a]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=/YES/.test(s.attributes[a]))}),this.trigger("data",s);return}if(n=/^#EXT-X-PART-INF:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"part-inf"},s.attributes=br(n[1]),["PART-TARGET"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=parseFloat(s.attributes[a]))}),this.trigger("data",s);return}if(n=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"preload-hint"},s.attributes=br(n[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(a){if(s.attributes.hasOwnProperty(a)){s.attributes[a]=parseInt(s.attributes[a],10);const o=a==="BYTERANGE-LENGTH"?"length":"offset";s.attributes.byterange=s.attributes.byterange||{},s.attributes.byterange[o]=s.attributes[a],delete s.attributes[a]}}),this.trigger("data",s);return}if(n=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"rendition-report"},s.attributes=br(n[1]),["LAST-MSN","LAST-PART"].forEach(function(a){s.attributes.hasOwnProperty(a)&&(s.attributes[a]=parseInt(s.attributes[a],10))}),this.trigger("data",s);return}if(n=/^#EXT-X-DATERANGE:(.*)$/.exec(i),n&&n[1]){s={type:"tag",tagType:"daterange"},s.attributes=br(n[1]),["ID","CLASS"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=String(s.attributes[o]))}),["START-DATE","END-DATE"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=new Date(s.attributes[o]))}),["DURATION","PLANNED-DURATION"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=parseFloat(s.attributes[o]))}),["END-ON-NEXT"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=/YES/i.test(s.attributes[o]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(o){s.attributes.hasOwnProperty(o)&&(s.attributes[o]=s.attributes[o].toString(16))});const a=/^X-([A-Z]+-)+[A-Z]+$/;for(const o in s.attributes){if(!a.test(o))continue;const l=/[0-9A-Fa-f]{6}/g.test(s.attributes[o]),u=/^\d+(\.\d+)?$/.test(s.attributes[o]);s.attributes[o]=l?s.attributes[o].toString(16):u?parseFloat(s.attributes[o]):String(s.attributes[o])}this.trigger("data",s);return}if(n=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(i),n){this.trigger("data",{type:"tag",tagType:"independent-segments"});return}if(n=/^#EXT-X-CONTENT-STEERING:(.*)$/.exec(i),n){s={type:"tag",tagType:"content-steering"},s.attributes=br(n[1]),this.trigger("data",s);return}this.trigger("data",{type:"tag",data:i.slice(4)})})}addParser({expression:t,customType:n,dataParser:s,segment:r}){typeof s!="function"&&(s=i=>i),this.customParsers.push(i=>{if(t.exec(i))return this.trigger("data",{type:"custom",data:s(i),customType:n,segment:r}),!0})}addTagMapper({expression:t,map:n}){const s=r=>t.test(r)?n(r):r;this.tagMappers.push(s)}}const Fye=e=>e.toLowerCase().replace(/-(\w)/g,t=>t[1].toUpperCase()),Xa=function(e){const t={};return Object.keys(e).forEach(function(n){t[Fye(n)]=e[n]}),t},ny=function(e){const{serverControl:t,targetDuration:n,partTargetDuration:s}=e;if(!t)return;const r="#EXT-X-SERVER-CONTROL",i="holdBack",a="partHoldBack",o=n&&n*3,l=s&&s*2;n&&!t.hasOwnProperty(i)&&(t[i]=o,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${o}).`})),o&&t[i]<o&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${t[i]}) to targetDuration * 3 (${o})`}),t[i]=o),s&&!t.hasOwnProperty(a)&&(t[a]=s*3,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[a]}).`})),s&&t[a]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${t[a]}) to partTargetDuration * 2 (${l}).`}),t[a]=l)};class Vye extends mw{constructor(){super(),this.lineStream=new Mye,this.parseStream=new Bye,this.lineStream.pipe(this.parseStream),this.lastProgramDateTime=null;const t=this,n=[];let s={},r,i,a=!1;const o=function(){},l={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},u="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed";let c=0;this.manifest={allowCache:!0,discontinuityStarts:[],dateRanges:[],segments:[]};let f=0,h=0;const m={};this.on("end",()=>{s.uri||!s.parts&&!s.preloadHints||(!s.map&&r&&(s.map=r),!s.key&&i&&(s.key=i),!s.timeline&&typeof c=="number"&&(s.timeline=c),this.manifest.preloadSegment=s)}),this.parseStream.on("data",function(g){let p,v;({tag(){({version(){g.version&&(this.manifest.version=g.version)},"allow-cache"(){this.manifest.allowCache=g.allowed,"allowed"in g||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const y={};"length"in g&&(s.byterange=y,y.length=g.length,"offset"in g||(g.offset=f)),"offset"in g&&(s.byterange=y,y.offset=g.offset),f=y.offset+y.length},endlist(){this.manifest.endList=!0},inf(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),g.title&&(s.title=g.title),g.duration>0&&(s.duration=g.duration),g.duration===0&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=n},key(){if(!g.attributes){this.trigger("warn",{message:"ignoring key declaration without attribute list"});return}if(g.attributes.METHOD==="NONE"){i=null;return}if(!g.attributes.URI){this.trigger("warn",{message:"ignoring key declaration without URI"});return}if(g.attributes.KEYFORMAT==="com.apple.streamingkeydelivery"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:g.attributes};return}if(g.attributes.KEYFORMAT==="com.microsoft.playready"){this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.microsoft.playready"]={uri:g.attributes.URI};return}if(g.attributes.KEYFORMAT===u){if(["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(g.attributes.METHOD)===-1){this.trigger("warn",{message:"invalid key method provided for Widevine"});return}if(g.attributes.METHOD==="SAMPLE-AES-CENC"&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),g.attributes.URI.substring(0,23)!=="data:text/plain;base64,"){this.trigger("warn",{message:"invalid key URI provided for Widevine"});return}if(!(g.attributes.KEYID&&g.attributes.KEYID.substring(0,2)==="0x")){this.trigger("warn",{message:"invalid key ID provided for Widevine"});return}this.manifest.contentProtection=this.manifest.contentProtection||{},this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:g.attributes.KEYFORMAT,keyId:g.attributes.KEYID.substring(2)},pssh:Nye(g.attributes.URI.split(",")[1])};return}g.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:g.attributes.METHOD||"AES-128",uri:g.attributes.URI},typeof g.attributes.IV<"u"&&(i.iv=g.attributes.IV)},"media-sequence"(){if(!isFinite(g.number)){this.trigger("warn",{message:"ignoring invalid media sequence: "+g.number});return}this.manifest.mediaSequence=g.number},"discontinuity-sequence"(){if(!isFinite(g.number)){this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+g.number});return}this.manifest.discontinuitySequence=g.number,c=g.number},"playlist-type"(){if(!/VOD|EVENT/.test(g.playlistType)){this.trigger("warn",{message:"ignoring unknown playlist type: "+g.playlist});return}this.manifest.playlistType=g.playlistType},map(){r={},g.uri&&(r.uri=g.uri),g.byterange&&(r.byterange=g.byterange),i&&(r.key=i)},"stream-inf"(){if(this.manifest.playlists=n,this.manifest.mediaGroups=this.manifest.mediaGroups||l,!g.attributes){this.trigger("warn",{message:"ignoring empty stream-inf attributes"});return}s.attributes||(s.attributes={}),qn(s.attributes,g.attributes)},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||l,!(g.attributes&&g.attributes.TYPE&&g.attributes["GROUP-ID"]&&g.attributes.NAME)){this.trigger("warn",{message:"ignoring incomplete or missing media group"});return}const y=this.manifest.mediaGroups[g.attributes.TYPE];y[g.attributes["GROUP-ID"]]=y[g.attributes["GROUP-ID"]]||{},p=y[g.attributes["GROUP-ID"]],v={default:/yes/i.test(g.attributes.DEFAULT)},v.default?v.autoselect=!0:v.autoselect=/yes/i.test(g.attributes.AUTOSELECT),g.attributes.LANGUAGE&&(v.language=g.attributes.LANGUAGE),g.attributes.URI&&(v.uri=g.attributes.URI),g.attributes["INSTREAM-ID"]&&(v.instreamId=g.attributes["INSTREAM-ID"]),g.attributes.CHARACTERISTICS&&(v.characteristics=g.attributes.CHARACTERISTICS),g.attributes.FORCED&&(v.forced=/yes/i.test(g.attributes.FORCED)),p[g.attributes.NAME]=v},discontinuity(){c+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(n.length)},"program-date-time"(){typeof this.manifest.dateTimeString>"u"&&(this.manifest.dateTimeString=g.dateTimeString,this.manifest.dateTimeObject=g.dateTimeObject),s.dateTimeString=g.dateTimeString,s.dateTimeObject=g.dateTimeObject;const{lastProgramDateTime:y}=this;this.lastProgramDateTime=new Date(g.dateTimeString).getTime(),y===null&&this.manifest.segments.reduceRight((_,b)=>(b.programDateTime=_-b.duration*1e3,b.programDateTime),this.lastProgramDateTime)},targetduration(){if(!isFinite(g.duration)||g.duration<0){this.trigger("warn",{message:"ignoring invalid target duration: "+g.duration});return}this.manifest.targetDuration=g.duration,ny.call(this,this.manifest)},start(){if(!g.attributes||isNaN(g.attributes["TIME-OFFSET"])){this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"});return}this.manifest.start={timeOffset:g.attributes["TIME-OFFSET"],precise:g.attributes.PRECISE}},"cue-out"(){s.cueOut=g.data},"cue-out-cont"(){s.cueOutCont=g.data},"cue-in"(){s.cueIn=g.data},skip(){this.manifest.skip=Xa(g.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",g.attributes,["SKIPPED-SEGMENTS"])},part(){a=!0;const y=this.manifest.segments.length,_=Xa(g.attributes);s.parts=s.parts||[],s.parts.push(_),_.byterange&&(_.byterange.hasOwnProperty("offset")||(_.byterange.offset=h),h=_.byterange.offset+_.byterange.length);const b=s.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${b} for segment #${y}`,g.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((T,S)=>{T.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${S} lacks required attribute(s): LAST-PART`})})},"server-control"(){const y=this.manifest.serverControl=Xa(g.attributes);y.hasOwnProperty("canBlockReload")||(y.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),ny.call(this,this.manifest),y.canSkipDateranges&&!y.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const y=this.manifest.segments.length,_=Xa(g.attributes),b=_.type&&_.type==="PART";s.preloadHints=s.preloadHints||[],s.preloadHints.push(_),_.byterange&&(_.byterange.hasOwnProperty("offset")||(_.byterange.offset=b?h:0,b&&(h=_.byterange.offset+_.byterange.length)));const T=s.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${T} for segment #${y}`,g.attributes,["TYPE","URI"]),!!_.type)for(let S=0;S<s.preloadHints.length-1;S++){const C=s.preloadHints[S];C.type&&C.type===_.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${T} for segment #${y} has the same TYPE ${_.type} as preload hint #${S}`})}},"rendition-report"(){const y=Xa(g.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(y);const _=this.manifest.renditionReports.length-1,b=["LAST-MSN","URI"];a&&b.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${_}`,g.attributes,b)},"part-inf"(){this.manifest.partInf=Xa(g.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",g.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),ny.call(this,this.manifest)},daterange(){this.manifest.dateRanges.push(Xa(g.attributes));const y=this.manifest.dateRanges.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${y}`,g.attributes,["ID","START-DATE"]);const _=this.manifest.dateRanges[y];_.endDate&&_.startDate&&new Date(_.endDate)<new Date(_.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),_.duration&&_.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),_.plannedDuration&&_.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const b=!!_.endOnNext;if(b&&!_.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),b&&(_.duration||_.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),_.duration&&_.endDate){const S=_.startDate.getTime()+_.duration*1e3;this.manifest.dateRanges[y].endDate=new Date(S)}if(!m[_.id])m[_.id]=_;else{for(const S in m[_.id])if(_[S]&&JSON.stringify(m[_.id][S])!==JSON.stringify(_[S])){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes values"});break}const T=this.manifest.dateRanges.findIndex(S=>S.id===_.id);this.manifest.dateRanges[T]=qn(this.manifest.dateRanges[T],_),m[_.id]=qn(m[_.id],_),this.manifest.dateRanges.pop()}},"independent-segments"(){this.manifest.independentSegments=!0},"content-steering"(){this.manifest.contentSteering=Xa(g.attributes),this.warnOnMissingAttributes_("#EXT-X-CONTENT-STEERING",g.attributes,["SERVER-URI"])}}[g.tagType]||o).call(t)},uri(){s.uri=g.uri,n.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),i&&(s.key=i),s.timeline=c,r&&(s.map=r),h=0,this.lastProgramDateTime!==null&&(s.programDateTime=this.lastProgramDateTime,this.lastProgramDateTime+=s.duration*1e3),s={}},comment(){},custom(){g.segment?(s.custom=s.custom||{},s.custom[g.customType]=g.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[g.customType]=g.data)}})[g.type].call(t)})}warnOnMissingAttributes_(t,n,s){const r=[];s.forEach(function(i){n.hasOwnProperty(i)||r.push(i)}),r.length&&this.trigger("warn",{message:`${t} lacks required attribute(s): ${r.join(", ")}`})}push(t){this.lineStream.push(t)}end(){this.lineStream.push(`
|
||
`),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(t){this.parseStream.addParser(t)}addTagMapper(t){this.parseStream.addTagMapper(t)}}var Cl={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^/},Uye=["video","audio","text"],bk=["Video","Audio","Text"],dR=function(t){return t&&t.replace(/avc1\.(\d+)\.(\d+)/i,function(n,s,r){var i=("00"+Number(s).toString(16)).slice(-2),a=("00"+Number(r).toString(16)).slice(-2);return"avc1."+i+"00"+a})},Ri=function(t){t===void 0&&(t="");var n=t.split(","),s=[];return n.forEach(function(r){r=r.trim();var i;Uye.forEach(function(a){var o=Cl[a].exec(r.toLowerCase());if(!(!o||o.length<=1)){i=a;var l=r.substring(0,o[1].length),u=r.replace(l,"");s.push({type:l,details:u,mediaType:a})}}),i||s.push({type:r,details:"",mediaType:"unknown"})}),s},Hye=function(t,n){if(!t.mediaGroups.AUDIO||!n)return null;var s=t.mediaGroups.AUDIO[n];if(!s)return null;for(var r in s){var i=s[r];if(i.default&&i.playlists)return Ri(i.playlists[0].attributes.CODECS)}return null},fR=function(t){return t===void 0&&(t=""),Cl.audio.test(t.trim().toLowerCase())},zye=function(t){return t===void 0&&(t=""),Cl.text.test(t.trim().toLowerCase())},Wf=function(t){if(!(!t||typeof t!="string")){var n=t.toLowerCase().split(",").map(function(i){return dR(i.trim())}),s="video";n.length===1&&fR(n[0])?s="audio":n.length===1&&zye(n[0])&&(s="application");var r="mp4";return n.every(function(i){return Cl.mp4.test(i)})?r="mp4":n.every(function(i){return Cl.webm.test(i)})?r="webm":n.every(function(i){return Cl.ogg.test(i)})&&(r="ogg"),s+"/"+r+';codecs="'+t+'"'}},um=function(t){return t===void 0&&(t=""),me.MediaSource&&me.MediaSource.isTypeSupported&&me.MediaSource.isTypeSupported(Wf(t))||!1},sy=function(t){return t===void 0&&(t=""),t.toLowerCase().split(",").every(function(n){n=n.trim();for(var s=0;s<bk.length;s++){var r=bk[s];if(Cl["muxer"+r].test(n))return!0}return!1})},_k="mp4a.40.2",jye="avc1.4d400d",qye=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Wye=/^application\/dash\+xml/i,hR=function(t){return qye.test(t)?"hls":Wye.test(t)?"dash":t==="application/vnd.videojs.vhs+json"?"vhs-json":null},Kye=function(t){return t.toString(2).length},Gye=function(t){return Math.ceil(Kye(t)/8)},pR=function(t){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer},Yye=function(t){return pR(t)},Ft=function(t){return t instanceof Uint8Array?t:(!Array.isArray(t)&&!Yye(t)&&!(t instanceof ArrayBuffer)&&(typeof t!="number"||typeof t=="number"&&t!==t?t=0:t=[t]),new Uint8Array(t&&t.buffer||t,t&&t.byteOffset||0,t&&t.byteLength||0))},Ss=me.BigInt||Number,i_=[Ss("0x1"),Ss("0x100"),Ss("0x10000"),Ss("0x1000000"),Ss("0x100000000"),Ss("0x10000000000"),Ss("0x1000000000000"),Ss("0x100000000000000"),Ss("0x10000000000000000")];(function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);return t[0]===255?"big":t[0]===204?"little":"unknown"})();var Xye=function(t,n){var s=n===void 0?{}:n,r=s.signed,i=r===void 0?!1:r,a=s.le,o=a===void 0?!1:a;t=Ft(t);var l=o?"reduce":"reduceRight",u=t[l]?t[l]:Array.prototype[l],c=u.call(t,function(h,m,g){var p=o?g:Math.abs(g+1-t.length);return h+Ss(m)*i_[p]},Ss(0));if(i){var f=i_[t.length]/Ss(2)-Ss(1);c=Ss(c),c>f&&(c-=f,c-=f,c-=Ss(2))}return Number(c)},Qye=function(t,n){var s=n===void 0?{}:n,r=s.le,i=r===void 0?!1:r;(typeof t!="bigint"&&typeof t!="number"||typeof t=="number"&&t!==t)&&(t=0),t=Ss(t);for(var a=Gye(t),o=new Uint8Array(new ArrayBuffer(a)),l=0;l<a;l++){var u=i?l:Math.abs(l+1-o.length);o[u]=Number(t/i_[l]&Ss(255)),t<0&&(o[u]=Math.abs(~o[u]),o[u]-=l===0?1:2)}return o},mR=function(t,n){if(typeof t!="string"&&t&&typeof t.toString=="function"&&(t=t.toString()),typeof t!="string")return new Uint8Array;n||(t=unescape(encodeURIComponent(t)));for(var s=new Uint8Array(t.length),r=0;r<t.length;r++)s[r]=t.charCodeAt(r);return s},Jye=function(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];if(n=n.filter(function(o){return o&&(o.byteLength||o.length)&&typeof o!="string"}),n.length<=1)return Ft(n[0]);var r=n.reduce(function(o,l,u){return o+(l.byteLength||l.length)},0),i=new Uint8Array(r),a=0;return n.forEach(function(o){o=Ft(o),i.set(o,a),a+=o.byteLength}),i},Fn=function(t,n,s){var r=s===void 0?{}:s,i=r.offset,a=i===void 0?0:i,o=r.mask,l=o===void 0?[]:o;t=Ft(t),n=Ft(n);var u=n.every?n.every:Array.prototype.every;return n.length&&t.length-a>=n.length&&u.call(n,function(c,f){var h=l[f]?l[f]&t[a+f]:t[a+f];return c===h})},Zye=function(t,n,s){n.forEach(function(r){for(var i in t.mediaGroups[r])for(var a in t.mediaGroups[r][i]){var o=t.mediaGroups[r][i][a];s(o,r,i,a)}})},ebe=function(t){return me.atob?me.atob(t):Buffer.from(t,"base64").toString("binary")};function tbe(e){for(var t=ebe(e),n=new Uint8Array(t.length),s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}var zo={},Va={};function nbe(e,t,n){if(n===void 0&&(n=Array.prototype),e&&typeof n.find=="function")return n.find.call(e,t);for(var s=0;s<e.length;s++)if(Object.prototype.hasOwnProperty.call(e,s)){var r=e[s];if(t.call(void 0,r,s,e))return r}}function gw(e,t){return t===void 0&&(t=Object),t&&typeof t.freeze=="function"?t.freeze(e):e}function sbe(e,t){if(e===null||typeof e!="object")throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}var gR=gw({HTML:"text/html",isHTML:function(e){return e===gR.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),vR=gw({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===vR.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});Va.assign=sbe;Va.find=nbe;Va.freeze=gw;Va.MIME_TYPE=gR;Va.NAMESPACE=vR;var yR=Va,ji=yR.find,Kf=yR.NAMESPACE;function rbe(e){return e!==""}function ibe(e){return e?e.split(/[\t\n\f\r ]+/).filter(rbe):[]}function abe(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function wk(e){if(!e)return[];var t=ibe(e);return Object.keys(t.reduce(abe,{}))}function obe(e){return function(t){return e&&e.indexOf(t)!==-1}}function xh(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function pr(e,t){var n=e.prototype;if(!(n instanceof t)){let r=function(){};var s=r;r.prototype=t.prototype,r=new r,xh(n,r),e.prototype=n=r}n.constructor!=e&&(typeof e!="function"&&console.error("unknown Class:"+e),n.constructor=e)}var mr={},yi=mr.ELEMENT_NODE=1,fc=mr.ATTRIBUTE_NODE=2,Gm=mr.TEXT_NODE=3,bR=mr.CDATA_SECTION_NODE=4,_R=mr.ENTITY_REFERENCE_NODE=5,lbe=mr.ENTITY_NODE=6,wR=mr.PROCESSING_INSTRUCTION_NODE=7,SR=mr.COMMENT_NODE=8,TR=mr.DOCUMENT_NODE=9,CR=mr.DOCUMENT_TYPE_NODE=10,Da=mr.DOCUMENT_FRAGMENT_NODE=11,ube=mr.NOTATION_NODE=12,Fs={},bs={};Fs.INDEX_SIZE_ERR=(bs[1]="Index size error",1);Fs.DOMSTRING_SIZE_ERR=(bs[2]="DOMString size error",2);var sr=Fs.HIERARCHY_REQUEST_ERR=(bs[3]="Hierarchy request error",3);Fs.WRONG_DOCUMENT_ERR=(bs[4]="Wrong document",4);Fs.INVALID_CHARACTER_ERR=(bs[5]="Invalid character",5);Fs.NO_DATA_ALLOWED_ERR=(bs[6]="No data allowed",6);Fs.NO_MODIFICATION_ALLOWED_ERR=(bs[7]="No modification allowed",7);var ER=Fs.NOT_FOUND_ERR=(bs[8]="Not found",8);Fs.NOT_SUPPORTED_ERR=(bs[9]="Not supported",9);var Sk=Fs.INUSE_ATTRIBUTE_ERR=(bs[10]="Attribute in use",10);Fs.INVALID_STATE_ERR=(bs[11]="Invalid state",11);Fs.SYNTAX_ERR=(bs[12]="Syntax error",12);Fs.INVALID_MODIFICATION_ERR=(bs[13]="Invalid modification",13);Fs.NAMESPACE_ERR=(bs[14]="Invalid namespace",14);Fs.INVALID_ACCESS_ERR=(bs[15]="Invalid access",15);function Jn(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,bs[e]),this.message=bs[e],Error.captureStackTrace&&Error.captureStackTrace(this,Jn);return n.code=e,t&&(this.message=this.message+": "+t),n}Jn.prototype=Error.prototype;xh(Fs,Jn);function Ta(){}Ta.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],s=0;s<this.length;s++)Cu(this[s],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}};function hc(e,t){this._node=e,this._refresh=t,vw(this)}function vw(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(LR(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var s=n.length;s in e;s++)Object.prototype.hasOwnProperty.call(e,s)&&delete e[s];xh(n,e),e._inc=t}}hc.prototype.item=function(e){return vw(this),this[e]||null};pr(hc,Ta);function Ym(){}function xR(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function Tk(e,t,n,s){if(s?t[xR(t,s)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(s&&IR(r,e,s),cbe(r,e,n))}}function Ck(e,t,n){var s=xR(t,n);if(s>=0){for(var r=t.length-1;s<r;)t[s]=t[++s];if(t.length=r,e){var i=e.ownerDocument;i&&(IR(i,e,n),n.ownerElement=null)}}else throw new Jn(ER,new Error(e.tagName+"@"+n))}Ym.prototype={length:0,item:Ta.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new Jn(Sk);var n=this.getNamedItem(e.nodeName);return Tk(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t=e.ownerElement,n;if(t&&t!=this._ownerElement)throw new Jn(Sk);return n=this.getNamedItemNS(e.namespaceURI,e.localName),Tk(this._ownerElement,this,e,n),n},removeNamedItem:function(e){var t=this.getNamedItem(e);return Ck(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return Ck(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var s=this[n];if(s.localName==t&&s.namespaceURI==e)return s}return null}};function kR(){}kR.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var s=new kh;if(s.implementation=this,s.childNodes=new Ta,s.doctype=n||null,n&&s.appendChild(n),t){var r=s.createElementNS(e,t);s.appendChild(r)}return s},createDocumentType:function(e,t,n){var s=new _v;return s.name=e,s.nodeName=e,s.publicId=t||"",s.systemId=n||"",s}};function Tn(){}Tn.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Xm(this,e,t)},replaceChild:function(e,t){Xm(this,e,t,OR),t&&this.removeChild(t)},removeChild:function(e){return DR(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e){return a_(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==Gm&&e.nodeType==Gm?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n){for(var s in n)if(Object.prototype.hasOwnProperty.call(n,s)&&n[s]===e)return s}t=t.nodeType==fc?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==fc?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){var t=this.lookupPrefix(e);return t==null}};function AR(e){return e=="<"&&"<"||e==">"&&">"||e=="&"&&"&"||e=='"'&&"""||"&#"+e.charCodeAt()+";"}xh(mr,Tn);xh(mr,Tn.prototype);function Gf(e,t){if(t(e))return!0;if(e=e.firstChild)do if(Gf(e,t))return!0;while(e=e.nextSibling)}function kh(){this.ownerDocument=this}function cbe(e,t,n){e&&e._inc++;var s=n.namespaceURI;s===Kf.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}function IR(e,t,n,s){e&&e._inc++;var r=n.namespaceURI;r===Kf.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function yw(e,t,n){if(e&&e._inc){e._inc++;var s=t.childNodes;if(n)s[s.length++]=n;else{for(var r=t.firstChild,i=0;r;)s[i++]=r,r=r.nextSibling;s.length=i,delete s[s.length]}}}function DR(e,t){var n=t.previousSibling,s=t.nextSibling;return n?n.nextSibling=s:e.firstChild=s,s?s.previousSibling=n:e.lastChild=n,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,yw(e.ownerDocument,e),t}function dbe(e){return e&&(e.nodeType===Tn.DOCUMENT_NODE||e.nodeType===Tn.DOCUMENT_FRAGMENT_NODE||e.nodeType===Tn.ELEMENT_NODE)}function fbe(e){return e&&(qi(e)||bw(e)||Oa(e)||e.nodeType===Tn.DOCUMENT_FRAGMENT_NODE||e.nodeType===Tn.COMMENT_NODE||e.nodeType===Tn.PROCESSING_INSTRUCTION_NODE)}function Oa(e){return e&&e.nodeType===Tn.DOCUMENT_TYPE_NODE}function qi(e){return e&&e.nodeType===Tn.ELEMENT_NODE}function bw(e){return e&&e.nodeType===Tn.TEXT_NODE}function Ek(e,t){var n=e.childNodes||[];if(ji(n,qi)||Oa(t))return!1;var s=ji(n,Oa);return!(t&&s&&n.indexOf(s)>n.indexOf(t))}function xk(e,t){var n=e.childNodes||[];function s(i){return qi(i)&&i!==t}if(ji(n,s))return!1;var r=ji(n,Oa);return!(t&&r&&n.indexOf(r)>n.indexOf(t))}function hbe(e,t,n){if(!dbe(e))throw new Jn(sr,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new Jn(ER,"child not in parent");if(!fbe(t)||Oa(t)&&e.nodeType!==Tn.DOCUMENT_NODE)throw new Jn(sr,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)}function pbe(e,t,n){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===Tn.DOCUMENT_FRAGMENT_NODE){var i=r.filter(qi);if(i.length>1||ji(r,bw))throw new Jn(sr,"More than one element or text in fragment");if(i.length===1&&!Ek(e,n))throw new Jn(sr,"Element in fragment can not be inserted before doctype")}if(qi(t)&&!Ek(e,n))throw new Jn(sr,"Only one element can be added and only after doctype");if(Oa(t)){if(ji(s,Oa))throw new Jn(sr,"Only one doctype is allowed");var a=ji(s,qi);if(n&&s.indexOf(a)<s.indexOf(n))throw new Jn(sr,"Doctype can only be inserted before an element");if(!n&&a)throw new Jn(sr,"Doctype can not be appended since element is present")}}function OR(e,t,n){var s=e.childNodes||[],r=t.childNodes||[];if(t.nodeType===Tn.DOCUMENT_FRAGMENT_NODE){var i=r.filter(qi);if(i.length>1||ji(r,bw))throw new Jn(sr,"More than one element or text in fragment");if(i.length===1&&!xk(e,n))throw new Jn(sr,"Element in fragment can not be inserted before doctype")}if(qi(t)&&!xk(e,n))throw new Jn(sr,"Only one element can be added and only after doctype");if(Oa(t)){let l=function(u){return Oa(u)&&u!==n};var o=l;if(ji(s,l))throw new Jn(sr,"Only one doctype is allowed");var a=ji(s,qi);if(n&&s.indexOf(a)<s.indexOf(n))throw new Jn(sr,"Doctype can only be inserted before an element")}}function Xm(e,t,n,s){hbe(e,t,n),e.nodeType===Tn.DOCUMENT_NODE&&(s||pbe)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===Da){var i=t.firstChild;if(i==null)return t;var a=t.lastChild}else i=a=t;var o=n?n.previousSibling:e.lastChild;i.previousSibling=o,a.nextSibling=n,o?o.nextSibling=i:e.firstChild=i,n==null?e.lastChild=a:n.previousSibling=a;do i.parentNode=e;while(i!==a&&(i=i.nextSibling));return yw(e.ownerDocument||e,e),t.nodeType==Da&&(t.firstChild=t.lastChild=null),t}function mbe(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,yw(e.ownerDocument,e,t),t}kh.prototype={nodeName:"#document",nodeType:TR,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==Da){for(var n=e.firstChild;n;){var s=n.nextSibling;this.insertBefore(n,t),n=s}return e}return Xm(this,e,t),e.ownerDocument=this,this.documentElement===null&&e.nodeType===yi&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),DR(this,e)},replaceChild:function(e,t){Xm(this,e,t,OR),e.ownerDocument=this,t&&this.removeChild(t),qi(e)&&(this.documentElement=e)},importNode:function(e,t){return $R(this,e,t)},getElementById:function(e){var t=null;return Gf(this.documentElement,function(n){if(n.nodeType==yi&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=wk(e);return new hc(this,function(n){var s=[];return t.length>0&&Gf(n.documentElement,function(r){if(r!==n&&r.nodeType===yi){var i=r.getAttribute("class");if(i){var a=e===i;if(!a){var o=wk(i);a=t.every(obe(o))}a&&s.push(r)}}}),s})},createElement:function(e){var t=new Fl;t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new Ta;var n=t.attributes=new Ym;return n._ownerElement=t,t},createDocumentFragment:function(){var e=new wv;return e.ownerDocument=this,e.childNodes=new Ta,e},createTextNode:function(e){var t=new _w;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ww;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new Sw;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Cw;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new Qm;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Tw;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new Fl,s=t.split(":"),r=n.attributes=new Ym;return n.childNodes=new Ta,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,s.length==2?(n.prefix=s[0],n.localName=s[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new Qm,s=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,s.length==2?(n.prefix=s[0],n.localName=s[1]):n.localName=t,n}};pr(kh,Tn);function Fl(){this._nsMap={}}Fl.prototype={nodeType:yi,hasAttribute:function(e){return this.getAttributeNode(e)!=null},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===Da?this.insertBefore(e,null):mbe(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return this.getAttributeNodeNS(e,t)!=null},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var s=this.ownerDocument.createAttributeNS(e,t);s.value=s.nodeValue=""+n,this.setAttributeNode(s)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new hc(this,function(t){var n=[];return Gf(t,function(s){s!==t&&s.nodeType==yi&&(e==="*"||s.tagName==e)&&n.push(s)}),n})},getElementsByTagNameNS:function(e,t){return new hc(this,function(n){var s=[];return Gf(n,function(r){r!==n&&r.nodeType===yi&&(e==="*"||r.namespaceURI===e)&&(t==="*"||r.localName==t)&&s.push(r)}),s})}};kh.prototype.getElementsByTagName=Fl.prototype.getElementsByTagName;kh.prototype.getElementsByTagNameNS=Fl.prototype.getElementsByTagNameNS;pr(Fl,Tn);function Qm(){}Qm.prototype.nodeType=fc;pr(Qm,Tn);function Ah(){}Ah.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(bs[sr])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){var s=this.data.substring(0,e),r=this.data.substring(e+t);n=s+n+r,this.nodeValue=this.data=n,this.length=n.length}};pr(Ah,Tn);function _w(){}_w.prototype={nodeName:"#text",nodeType:Gm,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var s=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(s,this.nextSibling),s}};pr(_w,Ah);function ww(){}ww.prototype={nodeName:"#comment",nodeType:SR};pr(ww,Ah);function Sw(){}Sw.prototype={nodeName:"#cdata-section",nodeType:bR};pr(Sw,Ah);function _v(){}_v.prototype.nodeType=CR;pr(_v,Tn);function PR(){}PR.prototype.nodeType=ube;pr(PR,Tn);function RR(){}RR.prototype.nodeType=lbe;pr(RR,Tn);function Tw(){}Tw.prototype.nodeType=_R;pr(Tw,Tn);function wv(){}wv.prototype.nodeName="#document-fragment";wv.prototype.nodeType=Da;pr(wv,Tn);function Cw(){}Cw.prototype.nodeType=wR;pr(Cw,Tn);function NR(){}NR.prototype.serializeToString=function(e,t,n){return MR.call(e,t,n)};Tn.prototype.toString=MR;function MR(e,t){var n=[],s=this.nodeType==9&&this.documentElement||this,r=s.prefix,i=s.namespaceURI;if(i&&r==null){var r=s.lookupPrefix(i);if(r==null)var a=[{namespace:i,prefix:null}]}return Cu(this,n,e,t,a),n.join("")}function kk(e,t,n){var s=e.prefix||"",r=e.namespaceURI;if(!r||s==="xml"&&r===Kf.XML||r===Kf.XMLNS)return!1;for(var i=n.length;i--;){var a=n[i];if(a.prefix===s)return a.namespace!==r}return!0}function ry(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,AR),'"')}function Cu(e,t,n,s,r){if(r||(r=[]),s)if(e=s(e),e){if(typeof e=="string"){t.push(e);return}}else return;switch(e.nodeType){case yi:var i=e.attributes,a=i.length,y=e.firstChild,o=e.tagName;n=Kf.isHTML(e.namespaceURI)||n;var l=o;if(!n&&!e.prefix&&e.namespaceURI){for(var u,c=0;c<i.length;c++)if(i.item(c).name==="xmlns"){u=i.item(c).value;break}if(!u)for(var f=r.length-1;f>=0;f--){var h=r[f];if(h.prefix===""&&h.namespace===e.namespaceURI){u=h.namespace;break}}if(u!==e.namespaceURI)for(var f=r.length-1;f>=0;f--){var h=r[f];if(h.namespace===e.namespaceURI){h.prefix&&(l=h.prefix+":"+o);break}}}t.push("<",l);for(var m=0;m<a;m++){var g=i.item(m);g.prefix=="xmlns"?r.push({prefix:g.localName,namespace:g.value}):g.nodeName=="xmlns"&&r.push({prefix:"",namespace:g.value})}for(var m=0;m<a;m++){var g=i.item(m);if(kk(g,n,r)){var p=g.prefix||"",v=g.namespaceURI;ry(t,p?"xmlns:"+p:"xmlns",v),r.push({prefix:p,namespace:v})}Cu(g,t,n,s,r)}if(o===l&&kk(e,n,r)){var p=e.prefix||"",v=e.namespaceURI;ry(t,p?"xmlns:"+p:"xmlns",v),r.push({prefix:p,namespace:v})}if(y||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(o)){if(t.push(">"),n&&/^script$/i.test(o))for(;y;)y.data?t.push(y.data):Cu(y,t,n,s,r.slice()),y=y.nextSibling;else for(;y;)Cu(y,t,n,s,r.slice()),y=y.nextSibling;t.push("</",l,">")}else t.push("/>");return;case TR:case Da:for(var y=e.firstChild;y;)Cu(y,t,n,s,r.slice()),y=y.nextSibling;return;case fc:return ry(t,e.name,e.value);case Gm:return t.push(e.data.replace(/[<&>]/g,AR));case bR:return t.push("<![CDATA[",e.data,"]]>");case SR:return t.push("<!--",e.data,"-->");case CR:var _=e.publicId,b=e.systemId;if(t.push("<!DOCTYPE ",e.name),_)t.push(" PUBLIC ",_),b&&b!="."&&t.push(" ",b),t.push(">");else if(b&&b!=".")t.push(" SYSTEM ",b,">");else{var T=e.internalSubset;T&&t.push(" [",T,"]"),t.push(">")}return;case wR:return t.push("<?",e.target," ",e.data,"?>");case _R:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function $R(e,t,n){var s;switch(t.nodeType){case yi:s=t.cloneNode(!1),s.ownerDocument=e;case Da:break;case fc:n=!0;break}if(s||(s=t.cloneNode(!1)),s.ownerDocument=e,s.parentNode=null,n)for(var r=t.firstChild;r;)s.appendChild($R(e,r,n)),r=r.nextSibling;return s}function a_(e,t,n){var s=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];typeof i!="object"&&i!=s[r]&&(s[r]=i)}switch(t.childNodes&&(s.childNodes=new Ta),s.ownerDocument=e,s.nodeType){case yi:var a=t.attributes,o=s.attributes=new Ym,l=a.length;o._ownerElement=s;for(var u=0;u<l;u++)s.setAttributeNode(a_(e,a.item(u),!0));break;case fc:n=!0}if(n)for(var c=t.firstChild;c;)s.appendChild(a_(e,c,n)),c=c.nextSibling;return s}function LR(e,t,n){e[t]=n}try{if(Object.defineProperty){let e=function(t){switch(t.nodeType){case yi:case Da:var n=[];for(t=t.firstChild;t;)t.nodeType!==7&&t.nodeType!==8&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}};var Eke=e;Object.defineProperty(hc.prototype,"length",{get:function(){return vw(this),this.$$length}}),Object.defineProperty(Tn.prototype,"textContent",{get:function(){return e(this)},set:function(t){switch(this.nodeType){case yi:case Da:for(;this.firstChild;)this.removeChild(this.firstChild);(t||String(t))&&this.appendChild(this.ownerDocument.createTextNode(t));break;default:this.data=t,this.value=t,this.nodeValue=t}}}),LR=function(t,n,s){t["$$"+n]=s}}}catch{}zo.DocumentType=_v;zo.DOMException=Jn;zo.DOMImplementation=kR;zo.Element=Fl;zo.Node=Tn;zo.NodeList=Ta;zo.XMLSerializer=NR;var Sv={},BR={};(function(e){var t=Va.freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
||
`,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:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES})(BR);var Ew={},Yf=Va.NAMESPACE,o_=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Ak=new RegExp("[\\-\\.0-9"+o_.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Ik=new RegExp("^"+o_.source+Ak.source+"*(?::"+o_.source+Ak.source+"*)?$"),Td=0,Qa=1,uu=2,Cd=3,cu=4,du=5,Ed=6,Ip=7;function pc(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,pc)}pc.prototype=new Error;pc.prototype.name=pc.name;function FR(){}FR.prototype={parse:function(e,t,n){var s=this.domBuilder;s.startDocument(),VR(t,t={}),gbe(e,t,n,s,this.errorHandler),s.endDocument()}};function gbe(e,t,n,s,r){function i(B){if(B>65535){B-=65536;var Q=55296+(B>>10),Y=56320+(B&1023);return String.fromCharCode(Q,Y)}else return String.fromCharCode(B)}function a(B){var Q=B.slice(1,-1);return Object.hasOwnProperty.call(n,Q)?n[Q]:Q.charAt(0)==="#"?i(parseInt(Q.substr(1).replace("x","0x"))):(r.error("entity not found:"+B),B)}function o(B){if(B>p){var Q=e.substring(p,B).replace(/&#?\w+;/g,a);h&&l(p),s.characters(Q,0,B-p),p=B}}function l(B,Q){for(;B>=c&&(Q=f.exec(e));)u=Q.index,c=u+Q[0].length,h.lineNumber++;h.columnNumber=B-u+1}for(var u=0,c=0,f=/.*(?:\r\n?|\n)|.*$/g,h=s.locator,m=[{currentNSMap:t}],g={},p=0;;){try{var v=e.indexOf("<",p);if(v<0){if(!e.substr(p).match(/^\s*$/)){var y=s.doc,_=y.createTextNode(e.substr(p));y.appendChild(_),s.currentElement=_}return}switch(v>p&&o(v),e.charAt(v+1)){case"/":var z=e.indexOf(">",v+3),b=e.substring(v+2,z).replace(/[ \t\n\r]+$/g,""),T=m.pop();z<0?(b=e.substring(v+2).replace(/[\s<].*/,""),r.error("end tag name: "+b+" is not complete:"+T.tagName),z=v+1+b.length):b.match(/\s</)&&(b=b.replace(/[\s<].*/,""),r.error("end tag name: "+b+" maybe not complete"),z=v+1+b.length);var S=T.localNSMap,C=T.tagName==b,D=C||T.tagName&&T.tagName.toLowerCase()==b.toLowerCase();if(D){if(s.endElement(T.uri,T.localName,b),S)for(var N in S)Object.prototype.hasOwnProperty.call(S,N)&&s.endPrefixMapping(N);C||r.fatalError("end tag name: "+b+" is not match the current start tagName:"+T.tagName)}else m.push(T);z++;break;case"?":h&&l(v),z=wbe(e,v,s);break;case"!":h&&l(v),z=_be(e,v,s,r);break;default:h&&l(v);var $=new UR,L=m[m.length-1].currentNSMap,z=vbe(e,v,$,L,a,r),U=$.length;if(!$.closed&&bbe(e,z,$.tagName,g)&&($.closed=!0,n.nbsp||r.warning("unclosed xml attribute")),h&&U){for(var W=Dk(h,{}),K=0;K<U;K++){var X=$[K];l(X.offset),X.locator=Dk(h,{})}s.locator=W,Ok($,s,L)&&m.push($),s.locator=h}else Ok($,s,L)&&m.push($);Yf.isHTML($.uri)&&!$.closed?z=ybe(e,z,$.tagName,a,s):z++}}catch(B){if(B instanceof pc)throw B;r.error("element parse error: "+B),z=-1}z>p?p=z:o(Math.max(v,p)+1)}}function Dk(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function vbe(e,t,n,s,r,i){function a(h,m,g){n.attributeNames.hasOwnProperty(h)&&i.fatalError("Attribute "+h+" redefined"),n.addValue(h,m.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,r),g)}for(var o,l,u=++t,c=Td;;){var f=e.charAt(u);switch(f){case"=":if(c===Qa)o=e.slice(t,u),c=Cd;else if(c===uu)c=Cd;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(c===Cd||c===Qa)if(c===Qa&&(i.warning('attribute value must after "="'),o=e.slice(t,u)),t=u+1,u=e.indexOf(f,t),u>0)l=e.slice(t,u),a(o,l,t-1),c=du;else throw new Error("attribute value no end '"+f+"' match");else if(c==cu)l=e.slice(t,u),a(o,l,t),i.warning('attribute "'+o+'" missed start quot('+f+")!!"),t=u+1,c=du;else throw new Error('attribute value must after "="');break;case"/":switch(c){case Td:n.setTagName(e.slice(t,u));case du:case Ed:case Ip:c=Ip,n.closed=!0;case cu:case Qa:break;case uu:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return i.error("unexpected end of input"),c==Td&&n.setTagName(e.slice(t,u)),u;case">":switch(c){case Td:n.setTagName(e.slice(t,u));case du:case Ed:case Ip:break;case cu:case Qa:l=e.slice(t,u),l.slice(-1)==="/"&&(n.closed=!0,l=l.slice(0,-1));case uu:c===uu&&(l=o),c==cu?(i.warning('attribute "'+l+'" missed quot(")!'),a(o,l,t)):((!Yf.isHTML(s[""])||!l.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),a(l,l,t));break;case Cd:throw new Error("attribute value missed!!")}return u;case"":f=" ";default:if(f<=" ")switch(c){case Td:n.setTagName(e.slice(t,u)),c=Ed;break;case Qa:o=e.slice(t,u),c=uu;break;case cu:var l=e.slice(t,u);i.warning('attribute "'+l+'" missed quot(")!!'),a(o,l,t);case du:c=Ed;break}else switch(c){case uu:n.tagName,(!Yf.isHTML(s[""])||!o.match(/^(?:disabled|checked|selected)$/i))&&i.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),a(o,o,t),t=u,c=Qa;break;case du:i.warning('attribute space is required"'+o+'"!!');case Ed:c=Qa,t=u;break;case Cd:c=cu,t=u;break;case Ip:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function Ok(e,t,n){for(var s=e.tagName,r=null,f=e.length;f--;){var i=e[f],a=i.qName,o=i.value,h=a.indexOf(":");if(h>0)var l=i.prefix=a.slice(0,h),u=a.slice(h+1),c=l==="xmlns"&&u;else u=a,l=null,c=a==="xmlns"&&"";i.localName=u,c!==!1&&(r==null&&(r={},VR(n,n={})),n[c]=r[c]=o,i.uri=Yf.XMLNS,t.startPrefixMapping(c,o))}for(var f=e.length;f--;){i=e[f];var l=i.prefix;l&&(l==="xml"&&(i.uri=Yf.XML),l!=="xmlns"&&(i.uri=n[l||""]))}var h=s.indexOf(":");h>0?(l=e.prefix=s.slice(0,h),u=e.localName=s.slice(h+1)):(l=null,u=e.localName=s);var m=e.uri=n[l||""];if(t.startElement(m,u,s,e),e.closed){if(t.endElement(m,u,s),r)for(l in r)Object.prototype.hasOwnProperty.call(r,l)&&t.endPrefixMapping(l)}else return e.currentNSMap=n,e.localNSMap=r,!0}function ybe(e,t,n,s,r){if(/^(?:script|textarea)$/i.test(n)){var i=e.indexOf("</"+n+">",t),a=e.substring(t+1,i);if(/[&<]/.test(a))return/^script$/i.test(n)?(r.characters(a,0,a.length),i):(a=a.replace(/&#?\w+;/g,s),r.characters(a,0,a.length),i)}return t+1}function bbe(e,t,n,s){var r=s[n];return r==null&&(r=e.lastIndexOf("</"+n+">"),r<t&&(r=e.lastIndexOf("</"+n)),s[n]=r),r<t}function VR(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function _be(e,t,n,s){var r=e.charAt(t+2);switch(r){case"-":if(e.charAt(t+3)==="-"){var i=e.indexOf("-->",t+4);return i>t?(n.comment(e,t+4,i-t-4),i+3):(s.error("Unclosed comment"),-1)}else return-1;default:if(e.substr(t+3,6)=="CDATA["){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var a=Sbe(e,t),o=a.length;if(o>1&&/!doctype/i.test(a[0][0])){var l=a[1][0],u=!1,c=!1;o>3&&(/^public$/i.test(a[2][0])?(u=a[3][0],c=o>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var f=a[o-1];return n.startDTD(l,u,c),n.endDTD(),f.index+f[0].length}}return-1}function wbe(e,t,n){var s=e.indexOf("?>",t);if(s){var r=e.substring(t,s).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),s+2):-1}return-1}function UR(){this.attributeNames={}}UR.prototype={setTagName:function(e){if(!Ik.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!Ik.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};function Sbe(e,t){var n,s=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(s.push(n),n[1])return s}Ew.XMLReader=FR;Ew.ParseError=pc;var Tbe=Va,Cbe=zo,Pk=BR,HR=Ew,Ebe=Cbe.DOMImplementation,Rk=Tbe.NAMESPACE,xbe=HR.ParseError,kbe=HR.XMLReader;function zR(e){return e.replace(/\r[\n\u0085]/g,`
|
||
`).replace(/[\r\u0085\u2028]/g,`
|
||
`)}function jR(e){this.options=e||{locator:{}}}jR.prototype.parseFromString=function(e,t){var n=this.options,s=new kbe,r=n.domBuilder||new Ih,i=n.errorHandler,a=n.locator,o=n.xmlns||{},l=/\/x?html?$/.test(t),u=l?Pk.HTML_ENTITIES:Pk.XML_ENTITIES;a&&r.setDocumentLocator(a),s.errorHandler=Abe(i,r,a),s.domBuilder=n.domBuilder||r,l&&(o[""]=Rk.HTML),o.xml=o.xml||Rk.XML;var c=n.normalizeLineEndings||zR;return e&&typeof e=="string"?s.parse(c(e),o,u):s.errorHandler.error("invalid doc source"),r.doc};function Abe(e,t,n){if(!e){if(t instanceof Ih)return t;e=t}var s={},r=e instanceof Function;n=n||{};function i(a){var o=e[a];!o&&r&&(o=e.length==2?function(l){e(a,l)}:e),s[a]=o&&function(l){o("[xmldom "+a+"] "+l+l_(n))}||function(){}}return i("warning"),i("error"),i("fatalError"),s}function Ih(){this.cdata=!1}function fu(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}Ih.prototype={startDocument:function(){this.doc=new Ebe().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,s){var r=this.doc,i=r.createElementNS(e,n||t),a=s.length;Dp(this,i),this.currentElement=i,this.locator&&fu(this.locator,i);for(var o=0;o<a;o++){var e=s.getURI(o),l=s.getValue(o),n=s.getQName(o),u=r.createAttributeNS(e,n);this.locator&&fu(s.getLocator(o),u),u.value=u.nodeValue=l,i.setAttributeNode(u)}},endElement:function(e,t,n){var s=this.currentElement;s.tagName,this.currentElement=s.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&fu(this.locator,n),Dp(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=Nk.apply(this,arguments),e){if(this.cdata)var s=this.doc.createCDATASection(e);else var s=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(s):/^\s*$/.test(e)&&this.doc.appendChild(s),this.locator&&fu(this.locator,s)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=Nk.apply(this,arguments);var s=this.doc.createComment(e);this.locator&&fu(this.locator,s),Dp(this,s)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var s=this.doc.implementation;if(s&&s.createDocumentType){var r=s.createDocumentType(e,t,n);this.locator&&fu(this.locator,r),Dp(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning] "+e,l_(this.locator))},error:function(e){console.error("[xmldom error] "+e,l_(this.locator))},fatalError:function(e){throw new xbe(e,this.locator)}};function l_(e){if(e)return`
|
||
@`+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function Nk(e,t,n){return typeof e=="string"?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){Ih.prototype[e]=function(){return null}});function Dp(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}Sv.__DOMHandler=Ih;Sv.normalizeLineEndings=zR;Sv.DOMParser=jR;var Ibe=Sv.DOMParser;/*! @name mpd-parser @version 1.3.0 @license Apache-2.0 */const Mk=e=>!!e&&typeof e=="object",ms=(...e)=>e.reduce((t,n)=>(typeof n!="object"||Object.keys(n).forEach(s=>{Array.isArray(t[s])&&Array.isArray(n[s])?t[s]=t[s].concat(n[s]):Mk(t[s])&&Mk(n[s])?t[s]=ms(t[s],n[s]):t[s]=n[s]}),t),{}),qR=e=>Object.keys(e).map(t=>e[t]),Dbe=(e,t)=>{const n=[];for(let s=e;s<t;s++)n.push(s);return n},mc=e=>e.reduce((t,n)=>t.concat(n),[]),WR=e=>{if(!e.length)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t},Obe=(e,t)=>e.reduce((n,s,r)=>(s[t]&&n.push(r),n),[]),Pbe=(e,t)=>qR(e.reduce((n,s)=>(s.forEach(r=>{n[t(r)]=r}),n),{}));var gc={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 Xf=({baseUrl:e="",source:t="",range:n="",indexRange:s=""})=>{const r={uri:t,resolvedUri:bv(e||"",t)};if(n||s){const a=(n||s).split("-");let o=me.BigInt?me.BigInt(a[0]):parseInt(a[0],10),l=me.BigInt?me.BigInt(a[1]):parseInt(a[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=me.BigInt(l)-me.BigInt(o)+me.BigInt(1):u=l-o+1,typeof u=="bigint"&&u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),r.byterange={length:u,offset:o}}return r},Rbe=e=>{let t;return typeof e.offset=="bigint"||typeof e.length=="bigint"?t=me.BigInt(e.offset)+me.BigInt(e.length)-me.BigInt(1):t=e.offset+e.length-1,`${e.offset}-${t}`},$k=e=>(e&&typeof e!="number"&&(e=parseInt(e,10)),isNaN(e)?null:e),Nbe={static(e){const{duration:t,timescale:n=1,sourceDuration:s,periodDuration:r}=e,i=$k(e.endNumber),a=t/n;return typeof i=="number"?{start:0,end:i}:typeof r=="number"?{start:0,end:r/a}:{start:0,end:s/a}},dynamic(e){const{NOW:t,clientOffset:n,availabilityStartTime:s,timescale:r=1,duration:i,periodStart:a=0,minimumUpdatePeriod:o=0,timeShiftBufferDepth:l=1/0}=e,u=$k(e.endNumber),c=(t+n)/1e3,f=s+a,m=c+o-f,g=Math.ceil(m*r/i),p=Math.floor((c-f-l)*r/i),v=Math.floor((c-f)*r/i);return{start:Math.max(0,p),end:typeof u=="number"?u:Math.min(g,v)}}},Mbe=e=>t=>{const{duration:n,timescale:s=1,periodStart:r,startNumber:i=1}=e;return{number:i+t,duration:n/s,timeline:r,time:t*n}},xw=e=>{const{type:t,duration:n,timescale:s=1,periodDuration:r,sourceDuration:i}=e,{start:a,end:o}=Nbe[t](e),l=Dbe(a,o).map(Mbe(e));if(t==="static"){const u=l.length-1,c=typeof r=="number"?r:i;l[u].duration=c-n/s*u}return l},KR=e=>{const{baseUrl:t,initialization:n={},sourceDuration:s,indexRange:r="",periodStart:i,presentationTime:a,number:o=0,duration:l}=e;if(!t)throw new Error(gc.NO_BASE_URL);const u=Xf({baseUrl:t,source:n.sourceURL,range:n.range}),c=Xf({baseUrl:t,source:t,indexRange:r});if(c.map=u,l){const f=xw(e);f.length&&(c.duration=f[0].duration,c.timeline=f[0].timeline)}else s&&(c.duration=s,c.timeline=i);return c.presentationTime=a||i,c.number=o,[c]},kw=(e,t,n)=>{const s=e.sidx.map?e.sidx.map:null,r=e.sidx.duration,i=e.timeline||0,a=e.sidx.byterange,o=a.offset+a.length,l=t.timescale,u=t.references.filter(v=>v.referenceType!==1),c=[],f=e.endList?"static":"dynamic",h=e.sidx.timeline;let m=h,g=e.mediaSequence||0,p;typeof t.firstOffset=="bigint"?p=me.BigInt(o)+t.firstOffset:p=o+t.firstOffset;for(let v=0;v<u.length;v++){const y=t.references[v],_=y.referencedSize,b=y.subsegmentDuration;let T;typeof p=="bigint"?T=p+me.BigInt(_)-me.BigInt(1):T=p+_-1;const S=`${p}-${T}`,D=KR({baseUrl:n,timescale:l,timeline:i,periodStart:h,presentationTime:m,number:g,duration:b,sourceDuration:r,indexRange:S,type:f})[0];s&&(D.map=s),c.push(D),typeof p=="bigint"?p+=me.BigInt(_):p+=_,m+=b/l,g++}return e.segments=c,e},$be=["AUDIO","SUBTITLES"],Lbe=1/60,GR=e=>Pbe(e,({timeline:t})=>t).sort((t,n)=>t.timeline>n.timeline?1:-1),Bbe=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null},Lk=e=>{let t=[];return Zye(e,$be,(n,s,r,i)=>{t=t.concat(n.playlists||[])}),t},Bk=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((n,s)=>{n.number=e.mediaSequence+s})},Fbe=({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach(s=>{s.discontinuitySequence=n.findIndex(function({timeline:l}){return l===s.timeline});const r=Bbe(e,s.attributes.NAME);if(!r||s.sidx)return;const i=s.segments[0],a=r.segments.findIndex(function(l){return Math.abs(l.presentationTime-i.presentationTime)<Lbe});if(a===-1){Bk({playlist:s,mediaSequence:r.mediaSequence+r.segments.length}),s.segments[0].discontinuity=!0,s.discontinuityStarts.unshift(0),(!r.segments.length&&s.timeline>r.timeline||r.segments.length&&s.timeline>r.segments[r.segments.length-1].timeline)&&s.discontinuitySequence--;return}r.segments[a].discontinuity&&!i.discontinuity&&(i.discontinuity=!0,s.discontinuityStarts.unshift(0),s.discontinuitySequence--),Bk({playlist:s,mediaSequence:r.segments[a].number})})},Vbe=({oldManifest:e,newManifest:t})=>{const n=e.playlists.concat(Lk(e)),s=t.playlists.concat(Lk(t));return t.timelineStarts=GR([e.timelineStarts,t.timelineStarts]),Fbe({oldPlaylists:n,newPlaylists:s,timelineStarts:t.timelineStarts}),t},Tv=e=>e&&e.uri+"-"+Rbe(e.byterange),iy=e=>{const t=e.reduce(function(s,r){return s[r.attributes.baseUrl]||(s[r.attributes.baseUrl]=[]),s[r.attributes.baseUrl].push(r),s},{});let n=[];return Object.values(t).forEach(s=>{const r=qR(s.reduce((i,a)=>{const o=a.attributes.id+(a.attributes.lang||"");return i[o]?(a.segments&&(a.segments[0]&&(a.segments[0].discontinuity=!0),i[o].segments.push(...a.segments)),a.attributes.contentProtection&&(i[o].attributes.contentProtection=a.attributes.contentProtection)):(i[o]=a,i[o].attributes.timelineStarts=[]),i[o].attributes.timelineStarts.push({start:a.attributes.periodStart,timeline:a.attributes.periodStart}),i},{}));n=n.concat(r)}),n.map(s=>(s.discontinuityStarts=Obe(s.segments||[],"discontinuity"),s))},Aw=(e,t)=>{const n=Tv(e.sidx),s=n&&t[n]&&t[n].sidx;return s&&kw(e,s,e.sidx.resolvedUri),e},Ube=(e,t={})=>{if(!Object.keys(t).length)return e;for(const n in e)e[n]=Aw(e[n],t);return e},Hbe=({attributes:e,segments:t,sidx:n,mediaSequence:s,discontinuitySequence:r,discontinuityStarts:i},a)=>{const o={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:i,timelineStarts:e.timelineStarts,mediaSequence:s,segments:t};return e.contentProtection&&(o.contentProtection=e.contentProtection),e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),n&&(o.sidx=n),a&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o},zbe=({attributes:e,segments:t,mediaSequence:n,discontinuityStarts:s,discontinuitySequence:r})=>{typeof t>"u"&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const i={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(i.CODECS=e.codecs);const a={attributes:i,uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:s,discontinuitySequence:r,mediaSequence:n,segments:t};return e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),a},jbe=(e,t={},n=!1)=>{let s;const r=e.reduce((i,a)=>{const o=a.attributes.role&&a.attributes.role.value||"",l=a.attributes.lang||"";let u=a.attributes.label||"main";if(l&&!a.attributes.label){const f=o?` (${o})`:"";u=`${a.attributes.lang}${f}`}i[u]||(i[u]={language:l,autoselect:!0,default:o==="main",playlists:[],uri:""});const c=Aw(Hbe(a,n),t);return i[u].playlists.push(c),typeof s>"u"&&o==="main"&&(s=a,s.default=!0),i},{});if(!s){const i=Object.keys(r)[0];r[i].default=!0}return r},qbe=(e,t={})=>e.reduce((n,s)=>{const r=s.attributes.label||s.attributes.lang||"text";return n[r]||(n[r]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),n[r].playlists.push(Aw(zbe(s),t)),n},{}),Wbe=e=>e.reduce((t,n)=>(n&&n.forEach(s=>{const{channel:r,language:i}=s;t[i]={autoselect:!1,default:!1,instreamId:r,language:i},s.hasOwnProperty("aspectRatio")&&(t[i].aspectRatio=s.aspectRatio),s.hasOwnProperty("easyReader")&&(t[i].easyReader=s.easyReader),s.hasOwnProperty("3D")&&(t[i]["3D"]=s["3D"])}),t),{}),Kbe=({attributes:e,segments:t,sidx:n,discontinuityStarts:s})=>{const r={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:e.type==="static",timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:s,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(r.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(r.contentProtection=e.contentProtection),e.serviceLocation&&(r.attributes.serviceLocation=e.serviceLocation),n&&(r.sidx=n),r},Gbe=({attributes:e})=>e.mimeType==="video/mp4"||e.mimeType==="video/webm"||e.contentType==="video",Ybe=({attributes:e})=>e.mimeType==="audio/mp4"||e.mimeType==="audio/webm"||e.contentType==="audio",Xbe=({attributes:e})=>e.mimeType==="text/vtt"||e.contentType==="text",Qbe=(e,t)=>{e.forEach(n=>{n.mediaSequence=0,n.discontinuitySequence=t.findIndex(function({timeline:s}){return s===n.timeline}),n.segments&&n.segments.forEach((s,r)=>{s.number=r})})},Fk=e=>e?Object.keys(e).reduce((t,n)=>{const s=e[n];return t.concat(s.playlists)},[]):[],Jbe=({dashPlaylists:e,locations:t,contentSteering:n,sidxMapping:s={},previousManifest:r,eventStream:i})=>{if(!e.length)return{};const{sourceDuration:a,type:o,suggestedPresentationDelay:l,minimumUpdatePeriod:u}=e[0].attributes,c=iy(e.filter(Gbe)).map(Kbe),f=iy(e.filter(Ybe)),h=iy(e.filter(Xbe)),m=e.map(T=>T.attributes.captionServices).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:a,playlists:Ube(c,s)};u>=0&&(g.minimumUpdatePeriod=u*1e3),t&&(g.locations=t),n&&(g.contentSteering=n),o==="dynamic"&&(g.suggestedPresentationDelay=l),i&&i.length>0&&(g.eventStream=i);const p=g.playlists.length===0,v=f.length?jbe(f,s,p):null,y=h.length?qbe(h,s):null,_=c.concat(Fk(v),Fk(y)),b=_.map(({timelineStarts:T})=>T);return g.timelineStarts=GR(b),Qbe(_,g.timelineStarts),v&&(g.mediaGroups.AUDIO.audio=v),y&&(g.mediaGroups.SUBTITLES.subs=y),m.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=Wbe(m)),r?Vbe({oldManifest:r,newManifest:g}):g},Zbe=(e,t,n)=>{const{NOW:s,clientOffset:r,availabilityStartTime:i,timescale:a=1,periodStart:o=0,minimumUpdatePeriod:l=0}=e,u=(s+r)/1e3,c=i+o,h=u+l-c;return Math.ceil((h*a-t)/n)},YR=(e,t)=>{const{type:n,minimumUpdatePeriod:s=0,media:r="",sourceDuration:i,timescale:a=1,startNumber:o=1,periodStart:l}=e,u=[];let c=-1;for(let f=0;f<t.length;f++){const h=t[f],m=h.d,g=h.r||0,p=h.t||0;c<0&&(c=p),p&&p>c&&(c=p);let v;if(g<0){const b=f+1;b===t.length?n==="dynamic"&&s>0&&r.indexOf("$Number$")>0?v=Zbe(e,c,m):v=(i*a-c)/m:v=(t[b].t-c)/m}else v=g+1;const y=o+u.length+v;let _=o+u.length;for(;_<y;)u.push({number:_,duration:m/a,time:c,timeline:l}),c+=m,_++}return u},e_e=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,t_e=e=>(t,n,s,r)=>{if(t==="$$")return"$";if(typeof e[n]>"u")return t;const i=""+e[n];return n==="RepresentationID"||(s?r=parseInt(r,10):r=1,i.length>=r)?i:`${new Array(r-i.length+1).join("0")}${i}`},Vk=(e,t)=>e.replace(e_e,t_e(t)),n_e=(e,t)=>!e.duration&&!t?[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]:e.duration?xw(e):YR(e,t),s_e=(e,t)=>{const n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:s={sourceURL:"",range:""}}=e,r=Xf({baseUrl:e.baseUrl,source:Vk(s.sourceURL,n),range:s.range});return n_e(e,t).map(a=>{n.Number=a.number,n.Time=a.time;const o=Vk(e.media||"",n),l=e.timescale||1,u=e.presentationTimeOffset||0,c=e.periodStart+(a.time-u)/l;return{uri:o,timeline:a.timeline,duration:a.duration,resolvedUri:bv(e.baseUrl||"",o),map:r,number:a.number,presentationTime:c}})},r_e=(e,t)=>{const{baseUrl:n,initialization:s={}}=e,r=Xf({baseUrl:n,source:s.sourceURL,range:s.range}),i=Xf({baseUrl:n,source:t.media,range:t.mediaRange});return i.map=r,i},i_e=(e,t)=>{const{duration:n,segmentUrls:s=[],periodStart:r}=e;if(!n&&!t||n&&t)throw new Error(gc.SEGMENT_TIME_UNSPECIFIED);const i=s.map(l=>r_e(e,l));let a;return n&&(a=xw(e)),t&&(a=YR(e,t)),a.map((l,u)=>{if(i[u]){const c=i[u],f=e.timescale||1,h=e.presentationTimeOffset||0;return c.timeline=l.timeline,c.duration=l.duration,c.number=l.number,c.presentationTime=r+(l.time-h)/f,c}}).filter(l=>l)},a_e=({attributes:e,segmentInfo:t})=>{let n,s;t.template?(s=s_e,n=ms(e,t.template)):t.base?(s=KR,n=ms(e,t.base)):t.list&&(s=i_e,n=ms(e,t.list));const r={attributes:e};if(!s)return r;const i=s(n,t.segmentTimeline);if(n.duration){const{duration:a,timescale:o=1}=n;n.duration=a/o}else i.length?n.duration=i.reduce((a,o)=>Math.max(a,Math.ceil(o.duration)),0):n.duration=0;return r.attributes=n,r.segments=i,t.base&&n.indexRange&&(r.sidx=i[0],r.segments=[]),r},o_e=e=>e.map(a_e),Vn=(e,t)=>WR(e.childNodes).filter(({tagName:n})=>n===t),Dh=e=>e.textContent.trim(),l_e=e=>parseFloat(e.split("/").reduce((t,n)=>t/n)),hu=e=>{const o=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!o)return 0;const[l,u,c,f,h,m]=o.slice(1);return parseFloat(l||0)*31536e3+parseFloat(u||0)*2592e3+parseFloat(c||0)*86400+parseFloat(f||0)*3600+parseFloat(h||0)*60+parseFloat(m||0)},u_e=e=>(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),Date.parse(e)),Uk={mediaPresentationDuration(e){return hu(e)},availabilityStartTime(e){return u_e(e)/1e3},minimumUpdatePeriod(e){return hu(e)},suggestedPresentationDelay(e){return hu(e)},type(e){return e},timeShiftBufferDepth(e){return hu(e)},start(e){return hu(e)},width(e){return parseInt(e,10)},height(e){return parseInt(e,10)},bandwidth(e){return parseInt(e,10)},frameRate(e){return l_e(e)},startNumber(e){return parseInt(e,10)},timescale(e){return parseInt(e,10)},presentationTimeOffset(e){return parseInt(e,10)},duration(e){const t=parseInt(e,10);return isNaN(t)?hu(e):t},d(e){return parseInt(e,10)},t(e){return parseInt(e,10)},r(e){return parseInt(e,10)},presentationTime(e){return parseInt(e,10)},DEFAULT(e){return e}},ss=e=>e&&e.attributes?WR(e.attributes).reduce((t,n)=>{const s=Uk[n.name]||Uk.DEFAULT;return t[n.name]=s(n.value),t},{}):{},c_e={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime","urn:mpeg:dash:mp4protection:2011":"mp4protection"},Cv=(e,t)=>t.length?mc(e.map(function(n){return t.map(function(s){const r=Dh(s),i=bv(n.baseUrl,r),a=ms(ss(s),{baseUrl:i});return i!==r&&!a.serviceLocation&&n.serviceLocation&&(a.serviceLocation=n.serviceLocation),a})})):e,Iw=e=>{const t=Vn(e,"SegmentTemplate")[0],n=Vn(e,"SegmentList")[0],s=n&&Vn(n,"SegmentURL").map(f=>ms({tag:"SegmentURL"},ss(f))),r=Vn(e,"SegmentBase")[0],i=n||t,a=i&&Vn(i,"SegmentTimeline")[0],o=n||r||t,l=o&&Vn(o,"Initialization")[0],u=t&&ss(t);u&&l?u.initialization=l&&ss(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const c={template:u,segmentTimeline:a&&Vn(a,"S").map(f=>ss(f)),list:n&&ms(ss(n),{segmentUrls:s,initialization:ss(l)}),base:r&&ms(ss(r),{initialization:ss(l)})};return Object.keys(c).forEach(f=>{c[f]||delete c[f]}),c},d_e=(e,t,n)=>s=>{const r=Vn(s,"BaseURL"),i=Cv(t,r),a=ms(e,ss(s)),o=Iw(s);return i.map(l=>({segmentInfo:ms(n,o),attributes:ms(a,l)}))},f_e=e=>e.reduce((t,n)=>{const s=ss(n);s.schemeIdUri&&(s.schemeIdUri=s.schemeIdUri.toLowerCase());const r=c_e[s.schemeIdUri];if(r){t[r]={attributes:s};const i=Vn(n,"cenc:pssh")[0];if(i){const a=Dh(i);t[r].pssh=a&&tbe(a)}}return t},{}),h_e=e=>{if(e.schemeIdUri==="urn:scte:dash:cc:cea-608:2015")return(typeof e.value!="string"?[]:e.value.split(";")).map(n=>{let s,r;return r=n,/^CC\d=/.test(n)?[s,r]=n.split("="):/^CC\d$/.test(n)&&(s=n),{channel:s,language:r}});if(e.schemeIdUri==="urn:scte:dash:cc:cea-708:2015")return(typeof e.value!="string"?[]:e.value.split(";")).map(n=>{const s={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(n)){const[r,i=""]=n.split("=");s.channel=r,s.language=n,i.split(",").forEach(a=>{const[o,l]=a.split(":");o==="lang"?s.language=l:o==="er"?s.easyReader=Number(l):o==="war"?s.aspectRatio=Number(l):o==="3D"&&(s["3D"]=Number(l))})}else s.language=n;return s.channel&&(s.channel="SERVICE"+s.channel),s})},p_e=e=>mc(Vn(e.node,"EventStream").map(t=>{const n=ss(t),s=n.schemeIdUri;return Vn(t,"Event").map(r=>{const i=ss(r),a=i.presentationTime||0,o=n.timescale||1,l=i.duration||0,u=a/o+e.attributes.start;return{schemeIdUri:s,value:n.value,id:i.id,start:u,end:u+l/o,messageData:Dh(r)||i.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),m_e=(e,t,n)=>s=>{const r=ss(s),i=Cv(t,Vn(s,"BaseURL")),a=Vn(s,"Role")[0],o={role:ss(a)};let l=ms(e,r,o);const u=Vn(s,"Accessibility")[0],c=h_e(ss(u));c&&(l=ms(l,{captionServices:c}));const f=Vn(s,"Label")[0];if(f&&f.childNodes.length){const v=f.childNodes[0].nodeValue.trim();l=ms(l,{label:v})}const h=f_e(Vn(s,"ContentProtection"));Object.keys(h).length&&(l=ms(l,{contentProtection:h}));const m=Iw(s),g=Vn(s,"Representation"),p=ms(n,m);return mc(g.map(d_e(l,i,p)))},g_e=(e,t)=>(n,s)=>{const r=Cv(t,Vn(n.node,"BaseURL")),i=ms(e,{periodStart:n.attributes.start});typeof n.attributes.duration=="number"&&(i.periodDuration=n.attributes.duration);const a=Vn(n.node,"AdaptationSet"),o=Iw(n.node);return mc(a.map(m_e(i,r,o)))},v_e=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const n=ms({serverURL:Dh(e[0])},ss(e[0]));return n.queryBeforeStart=n.queryBeforeStart==="true",n},y_e=({attributes:e,priorPeriodAttributes:t,mpdType:n})=>typeof e.start=="number"?e.start:t&&typeof t.start=="number"&&typeof t.duration=="number"?t.start+t.duration:!t&&n==="static"?0:null,b_e=(e,t={})=>{const{manifestUri:n="",NOW:s=Date.now(),clientOffset:r=0,eventHandler:i=function(){}}=t,a=Vn(e,"Period");if(!a.length)throw new Error(gc.INVALID_NUMBER_OF_PERIOD);const o=Vn(e,"Location"),l=ss(e),u=Cv([{baseUrl:n}],Vn(e,"BaseURL")),c=Vn(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=s,l.clientOffset=r,o.length&&(l.locations=o.map(Dh));const f=[];return a.forEach((h,m)=>{const g=ss(h),p=f[m-1];g.start=y_e({attributes:g,priorPeriodAttributes:p?p.attributes:null,mpdType:l.type}),f.push({node:h,attributes:g})}),{locations:l.locations,contentSteeringInfo:v_e(c,i),representationInfo:mc(f.map(g_e(l,u))),eventStream:mc(f.map(p_e))}},XR=e=>{if(e==="")throw new Error(gc.DASH_EMPTY_MANIFEST);const t=new Ibe;let n,s;try{n=t.parseFromString(e,"application/xml"),s=n&&n.documentElement.tagName==="MPD"?n.documentElement:null}catch{}if(!s||s&&s.getElementsByTagName("parsererror").length>0)throw new Error(gc.DASH_INVALID_XML);return s},__e=e=>{const t=Vn(e,"UTCTiming")[0];if(!t)return null;const n=ss(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(gc.UNSUPPORTED_UTC_TIMING_SCHEME)}return n},w_e=(e,t={})=>{const n=b_e(XR(e),t),s=o_e(n.representationInfo);return Jbe({dashPlaylists:s,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})},S_e=e=>__e(XR(e));var QR=Math.pow(2,32),T_e=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n;return t.getBigUint64?(n=t.getBigUint64(0),n<Number.MAX_SAFE_INTEGER?Number(n):n):t.getUint32(0)*QR+t.getUint32(4)},C_e={getUint64:T_e,MAX_UINT32:QR},Hk=C_e.getUint64,E_e=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},s=12;n.version===0?(n.earliestPresentationTime=t.getUint32(s),n.firstOffset=t.getUint32(s+4),s+=8):(n.earliestPresentationTime=Hk(e.subarray(s)),n.firstOffset=Hk(e.subarray(s+8)),s+=16),s+=2;var r=t.getUint16(s);for(s+=2;r>0;s+=12,r--)n.references.push({referenceType:(e[s]&128)>>>7,referencedSize:t.getUint32(s)&2147483647,subsegmentDuration:t.getUint32(s+4),startsWithSap:!!(e[s+8]&128),sapType:(e[s+8]&112)>>>4,sapDeltaTime:t.getUint32(s+8)&268435455});return n},x_e=E_e;const k_e=xs(x_e);var A_e=Ft([73,68,51]),I_e=function(t,n){n===void 0&&(n=0),t=Ft(t);var s=t[n+5],r=t[n+6]<<21|t[n+7]<<14|t[n+8]<<7|t[n+9],i=(s&16)>>4;return i?r+20:r+10},Ld=function e(t,n){return n===void 0&&(n=0),t=Ft(t),t.length-n<10||!Fn(t,A_e,{offset:n})?n:(n+=I_e(t,n),e(t,n))},zk=function(t){return typeof t=="string"?mR(t):t},D_e=function(t){return Array.isArray(t)?t.map(function(n){return zk(n)}):[zk(t)]},O_e=function e(t,n,s){s===void 0&&(s=!1),n=D_e(n),t=Ft(t);var r=[];if(!n.length)return r;for(var i=0;i<t.length;){var a=(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3])>>>0,o=t.subarray(i+4,i+8);if(a===0)break;var l=i+a;if(l>t.length){if(s)break;l=t.length}var u=t.subarray(i+8,l);Fn(o,n[0])&&(n.length===1?r.push(u):r.push.apply(r,e(u,n.slice(1),s))),i=l}return r},Op={EBML:Ft([26,69,223,163]),DocType:Ft([66,130]),Segment:Ft([24,83,128,103]),SegmentInfo:Ft([21,73,169,102]),Tracks:Ft([22,84,174,107]),Track:Ft([174]),TrackNumber:Ft([215]),DefaultDuration:Ft([35,227,131]),TrackEntry:Ft([174]),TrackType:Ft([131]),FlagDefault:Ft([136]),CodecID:Ft([134]),CodecPrivate:Ft([99,162]),VideoTrack:Ft([224]),AudioTrack:Ft([225]),Cluster:Ft([31,67,182,117]),Timestamp:Ft([231]),TimestampScale:Ft([42,215,177]),BlockGroup:Ft([160]),BlockDuration:Ft([155]),Block:Ft([161]),SimpleBlock:Ft([163])},u_=[128,64,32,16,8,4,2,1],P_e=function(t){for(var n=1,s=0;s<u_.length&&!(t&u_[s]);s++)n++;return n},Jm=function(t,n,s,r){s===void 0&&(s=!0),r===void 0&&(r=!1);var i=P_e(t[n]),a=t.subarray(n,n+i);return s&&(a=Array.prototype.slice.call(t,n,n+i),a[0]^=u_[i-1]),{length:i,value:Xye(a,{signed:r}),bytes:a}},jk=function e(t){return typeof t=="string"?t.match(/.{1,2}/g).map(function(n){return e(n)}):typeof t=="number"?Qye(t):t},R_e=function(t){return Array.isArray(t)?t.map(function(n){return jk(n)}):[jk(t)]},N_e=function e(t,n,s){if(s>=n.length)return n.length;var r=Jm(n,s,!1);if(Fn(t.bytes,r.bytes))return s;var i=Jm(n,s+r.length);return e(t,n,s+i.length+i.value+r.length)},qk=function e(t,n){n=R_e(n),t=Ft(t);var s=[];if(!n.length)return s;for(var r=0;r<t.length;){var i=Jm(t,r,!1),a=Jm(t,r+i.length),o=r+i.length+a.length;a.value===127&&(a.value=N_e(i,t,o),a.value!==t.length&&(a.value-=o));var l=o+a.value>t.length?t.length:o+a.value,u=t.subarray(o,l);Fn(n[0],i.bytes)&&(n.length===1?s.push(u):s=s.concat(e(u,n.slice(1))));var c=i.length+a.length+u.length;r+=c}return s},M_e=Ft([0,0,0,1]),$_e=Ft([0,0,1]),L_e=Ft([0,0,3]),B_e=function(t){for(var n=[],s=1;s<t.length-2;)Fn(t.subarray(s,s+3),L_e)&&(n.push(s+2),s++),s++;if(n.length===0)return t;var r=t.length-n.length,i=new Uint8Array(r),a=0;for(s=0;s<r;a++,s++)a===n[0]&&(a++,n.shift()),i[s]=t[a];return i},JR=function(t,n,s,r){r===void 0&&(r=1/0),t=Ft(t),s=[].concat(s);for(var i=0,a,o=0;i<t.length&&(o<r||a);){var l=void 0;if(Fn(t.subarray(i),M_e)?l=4:Fn(t.subarray(i),$_e)&&(l=3),!l){i++;continue}if(o++,a)return B_e(t.subarray(a,i));var u=void 0;n==="h264"?u=t[i+l]&31:n==="h265"&&(u=t[i+l]>>1&63),s.indexOf(u)!==-1&&(a=i+l),i+=l+(n==="h264"?1:2)}return t.subarray(0,0)},F_e=function(t,n,s){return JR(t,"h264",n,s)},V_e=function(t,n,s){return JR(t,"h265",n,s)},Hs={webm:Ft([119,101,98,109]),matroska:Ft([109,97,116,114,111,115,107,97]),flac:Ft([102,76,97,67]),ogg:Ft([79,103,103,83]),ac3:Ft([11,119]),riff:Ft([82,73,70,70]),avi:Ft([65,86,73]),wav:Ft([87,65,86,69]),"3gp":Ft([102,116,121,112,51,103]),mp4:Ft([102,116,121,112]),fmp4:Ft([115,116,121,112]),mov:Ft([102,116,121,112,113,116]),moov:Ft([109,111,111,118]),moof:Ft([109,111,111,102])},vc={aac:function(t){var n=Ld(t);return Fn(t,[255,16],{offset:n,mask:[255,22]})},mp3:function(t){var n=Ld(t);return Fn(t,[255,2],{offset:n,mask:[255,6]})},webm:function(t){var n=qk(t,[Op.EBML,Op.DocType])[0];return Fn(n,Hs.webm)},mkv:function(t){var n=qk(t,[Op.EBML,Op.DocType])[0];return Fn(n,Hs.matroska)},mp4:function(t){if(vc["3gp"](t)||vc.mov(t))return!1;if(Fn(t,Hs.mp4,{offset:4})||Fn(t,Hs.fmp4,{offset:4})||Fn(t,Hs.moof,{offset:4})||Fn(t,Hs.moov,{offset:4}))return!0},mov:function(t){return Fn(t,Hs.mov,{offset:4})},"3gp":function(t){return Fn(t,Hs["3gp"],{offset:4})},ac3:function(t){var n=Ld(t);return Fn(t,Hs.ac3,{offset:n})},ts:function(t){if(t.length<189&&t.length>=1)return t[0]===71;for(var n=0;n+188<t.length&&n<188;){if(t[n]===71&&t[n+188]===71)return!0;n+=1}return!1},flac:function(t){var n=Ld(t);return Fn(t,Hs.flac,{offset:n})},ogg:function(t){return Fn(t,Hs.ogg)},avi:function(t){return Fn(t,Hs.riff)&&Fn(t,Hs.avi,{offset:8})},wav:function(t){return Fn(t,Hs.riff)&&Fn(t,Hs.wav,{offset:8})},h264:function(t){return F_e(t,7,3).length},h265:function(t){return V_e(t,[32,33],3).length}},c_=Object.keys(vc).filter(function(e){return e!=="ts"&&e!=="h264"&&e!=="h265"}).concat(["ts","h264","h265"]);c_.forEach(function(e){var t=vc[e];vc[e]=function(n){return t(Ft(n))}});var U_e=vc,Dw=function(t){t=Ft(t);for(var n=0;n<c_.length;n++){var s=c_[n];if(U_e[s](t))return s}return""},H_e=function(t){return O_e(t,["moof"]).length>0},Ow=9e4,Pw,Rw,Ev,Nw,ZR,eN,tN;Pw=function(e){return e*Ow};Rw=function(e,t){return e*t};Ev=function(e){return e/Ow};Nw=function(e,t){return e/t};ZR=function(e,t){return Pw(Nw(e,t))};eN=function(e,t){return Rw(Ev(e),t)};tN=function(e,t,n){return Ev(n?e:e-t)};var gl={ONE_SECOND_IN_TS:Ow,secondsToVideoTs:Pw,secondsToAudioTs:Rw,videoTsToSeconds:Ev,audioTsToSeconds:Nw,audioTsToVideoTs:ZR,videoTsToAudioTs:eN,metadataTsToSeconds:tN};/**
|
||
* @license
|
||
* Video.js 8.16.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 d_="8.16.1";const _a={},No=function(e,t){return _a[e]=_a[e]||[],t&&(_a[e]=_a[e].concat(t)),_a[e]},z_e=function(e,t){No(e,t)},nN=function(e,t){const n=No(e).indexOf(t);return n<=-1?!1:(_a[e]=_a[e].slice(),_a[e].splice(n,1),!0)},j_e=function(e,t){No(e,[].concat(t).map(n=>{const s=(...r)=>(nN(e,s),n(...r));return s}))},Zm={prefixed:!0},cm=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],Wk=cm[0];let Bd;for(let e=0;e<cm.length;e++)if(cm[e][1]in dt){Bd=cm[e];break}if(Bd){for(let e=0;e<Bd.length;e++)Zm[Wk[e]]=Bd[e];Zm.prefixed=Bd[0]!==Wk[0]}let nr=[];const q_e=(e,t,n)=>(s,r,i)=>{const a=t.levels[r],o=new RegExp(`^(${a})$`);let l=e;if(s!=="log"&&i.unshift(s.toUpperCase()+":"),n&&(l=`%c${e}`,i.unshift(n)),i.unshift(l+":"),nr){nr.push([].concat(i));const c=nr.length-1e3;nr.splice(0,c>0?c:0)}if(!me.console)return;let u=me.console[s];!u&&s==="debug"&&(u=me.console.info||me.console.log),!(!u||!a||!o.test(s))&&u[Array.isArray(i)?"apply":"call"](me.console,i)};function f_(e,t=":",n=""){let s="info",r;function i(...a){r("log",s,a)}return r=q_e(e,i,n),i.createLogger=(a,o,l)=>{const u=o!==void 0?o:t,c=l!==void 0?l:n,f=`${e} ${u} ${a}`;return f_(f,u,c)},i.createNewLogger=(a,o,l)=>f_(a,o,l),i.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:s},i.level=a=>{if(typeof a=="string"){if(!i.levels.hasOwnProperty(a))throw new Error(`"${a}" in not a valid log level`);s=a}return s},i.history=()=>nr?[].concat(nr):[],i.history.filter=a=>(nr||[]).filter(o=>new RegExp(`.*${a}.*`).test(o[0])),i.history.clear=()=>{nr&&(nr.length=0)},i.history.disable=()=>{nr!==null&&(nr.length=0,nr=null)},i.history.enable=()=>{nr===null&&(nr=[])},i.error=(...a)=>r("error",s,a),i.warn=(...a)=>r("warn",s,a),i.debug=(...a)=>r("debug",s,a),i}const dn=f_("VIDEOJS"),sN=dn.createLogger,W_e=Object.prototype.toString,rN=function(e){return Zi(e)?Object.keys(e):[]};function Bu(e,t){rN(e).forEach(n=>t(e[n],n))}function iN(e,t,n=0){return rN(e).reduce((s,r)=>t(s,e[r],r),n)}function Zi(e){return!!e&&typeof e=="object"}function yc(e){return Zi(e)&&W_e.call(e)==="[object Object]"&&e.constructor===Object}function Pn(...e){const t={};return e.forEach(n=>{n&&Bu(n,(s,r)=>{if(!yc(s)){t[r]=s;return}yc(t[r])||(t[r]={}),t[r]=Pn(t[r],s)})}),t}function aN(e={}){const t=[];for(const n in e)if(e.hasOwnProperty(n)){const s=e[n];t.push(s)}return t}function xv(e,t,n,s=!0){const r=a=>Object.defineProperty(e,t,{value:a,enumerable:!0,writable:!0}),i={configurable:!0,enumerable:!0,get(){const a=n();return r(a),a}};return s&&(i.set=r),Object.defineProperty(e,t,i)}var K_e=Object.freeze({__proto__:null,each:Bu,reduce:iN,isObject:Zi,isPlain:yc,merge:Pn,values:aN,defineLazyProperty:xv});let Mw=!1,oN=null,ea=!1,lN,uN=!1,Fu=!1,Vu=!1,ta=!1,$w=null,kv=null;const G_e=!!(me.cast&&me.cast.framework&&me.cast.framework.CastReceiverContext);let cN=null,eg=!1,Av=!1,tg=!1,Iv=!1,ng=!1,sg=!1,h_=!1;const Qf=!!(jc()&&("ontouchstart"in me||me.navigator.maxTouchPoints||me.DocumentTouch&&me.document instanceof me.DocumentTouch)),Ja=me.navigator&&me.navigator.userAgentData;Ja&&Ja.platform&&Ja.brands&&(ea=Ja.platform==="Android",Fu=!!Ja.brands.find(e=>e.brand==="Microsoft Edge"),Vu=!!Ja.brands.find(e=>e.brand==="Chromium"),ta=!Fu&&Vu,$w=kv=(Ja.brands.find(e=>e.brand==="Chromium")||{}).version||null,Av=Ja.platform==="Windows");if(!Vu){const e=me.navigator&&me.navigator.userAgent||"";Mw=/iPod/i.test(e),oN=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),ea=/Android/i.test(e),lN=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const n=t[1]&&parseFloat(t[1]),s=t[2]&&parseFloat(t[2]);return n&&s?parseFloat(t[1]+"."+t[2]):n||null}(),uN=/Firefox/i.test(e),Fu=/Edg/i.test(e),Vu=/Chrome/i.test(e)||/CriOS/i.test(e),ta=!Fu&&Vu,$w=kv=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),cN=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let n=t&&parseFloat(t[1]);return!n&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(n=11),n}(),ng=/Tizen/i.test(e),sg=/Web0S/i.test(e),h_=ng||sg,eg=/Safari/i.test(e)&&!ta&&!ea&&!Fu&&!h_,Av=/Windows/i.test(e),tg=/iPad/i.test(e)||eg&&Qf&&!/iPhone/i.test(e),Iv=/iPhone/i.test(e)&&!tg}const Xs=Iv||tg||Mw,Dv=(eg||Xs)&&!ta;var dN=Object.freeze({__proto__:null,get IS_IPOD(){return Mw},get IOS_VERSION(){return oN},get IS_ANDROID(){return ea},get ANDROID_VERSION(){return lN},get IS_FIREFOX(){return uN},get IS_EDGE(){return Fu},get IS_CHROMIUM(){return Vu},get IS_CHROME(){return ta},get CHROMIUM_VERSION(){return $w},get CHROME_VERSION(){return kv},IS_CHROMECAST_RECEIVER:G_e,get IE_VERSION(){return cN},get IS_SAFARI(){return eg},get IS_WINDOWS(){return Av},get IS_IPAD(){return tg},get IS_IPHONE(){return Iv},get IS_TIZEN(){return ng},get IS_WEBOS(){return sg},get IS_SMART_TV(){return h_},TOUCH_ENABLED:Qf,IS_IOS:Xs,IS_ANY_SAFARI:Dv});function Kk(e){return typeof e=="string"&&!!e.trim()}function Y_e(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function jc(){return dt===me.document}function qc(e){return Zi(e)&&e.nodeType===1}function fN(){try{return me.parent!==me.self}catch{return!0}}function hN(e){return function(t,n){if(!Kk(t))return dt[e](null);Kk(n)&&(n=dt.querySelector(n));const s=qc(n)?n:dt;return s[e]&&s[e](t)}}function Yt(e="div",t={},n={},s){const r=dt.createElement(e);return Object.getOwnPropertyNames(t).forEach(function(i){const a=t[i];i==="textContent"?jo(r,a):(r[i]!==a||i==="tabIndex")&&(r[i]=a)}),Object.getOwnPropertyNames(n).forEach(function(i){r.setAttribute(i,n[i])}),s&&Lw(r,s),r}function jo(e,t){return typeof e.textContent>"u"?e.innerText=t:e.textContent=t,e}function p_(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function af(e,t){return Y_e(t),e.classList.contains(t)}function El(e,...t){return e.classList.add(...t.reduce((n,s)=>n.concat(s.split(/\s+/)),[])),e}function Ov(e,...t){return e?(e.classList.remove(...t.reduce((n,s)=>n.concat(s.split(/\s+/)),[])),e):(dn.warn("removeClass was called with an element that doesn't exist"),null)}function pN(e,t,n){return typeof n=="function"&&(n=n(e,t)),typeof n!="boolean"&&(n=void 0),t.split(/\s+/).forEach(s=>e.classList.toggle(s,n)),e}function mN(e,t){Object.getOwnPropertyNames(t).forEach(function(n){const s=t[n];s===null||typeof s>"u"||s===!1?e.removeAttribute(n):e.setAttribute(n,s===!0?"":s)})}function oo(e){const t={},n=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const s=e.attributes;for(let r=s.length-1;r>=0;r--){const i=s[r].name;let a=s[r].value;n.includes(i)&&(a=a!==null),t[i]=a}}return t}function gN(e,t){return e.getAttribute(t)}function bc(e,t,n){e.setAttribute(t,n)}function Pv(e,t){e.removeAttribute(t)}function vN(){dt.body.focus(),dt.onselectstart=function(){return!1}}function yN(){dt.onselectstart=function(){return!0}}function _c(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(s=>{t[s]!==void 0&&(n[s]=t[s])}),n.height||(n.height=parseFloat(wc(e,"height"))),n.width||(n.width=parseFloat(wc(e,"width"))),n}}function Jf(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,n=e.offsetHeight;let s=0,r=0;for(;e.offsetParent&&e!==dt[Zm.fullscreenElement];)s+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:s,top:r,width:t,height:n}}function Rv(e,t){const n={x:0,y:0};if(Xs){let c=e;for(;c&&c.nodeName.toLowerCase()!=="html";){const f=wc(c,"transform");if(/^matrix/.test(f)){const h=f.slice(7,-1).split(/,\s/).map(Number);n.x+=h[4],n.y+=h[5]}else if(/^matrix3d/.test(f)){const h=f.slice(9,-1).split(/,\s/).map(Number);n.x+=h[12],n.y+=h[13]}if(c.assignedSlot&&c.assignedSlot.parentElement&&me.WebKitCSSMatrix){const h=me.getComputedStyle(c.assignedSlot.parentElement).transform,m=new me.WebKitCSSMatrix(h);n.x+=m.m41,n.y+=m.m42}c=c.parentNode||c.host}}const s={},r=Jf(t.target),i=Jf(e),a=i.width,o=i.height;let l=t.offsetY-(i.top-r.top),u=t.offsetX-(i.left-r.left);return t.changedTouches&&(u=t.changedTouches[0].pageX-i.left,l=t.changedTouches[0].pageY+i.top,Xs&&(u-=n.x,l-=n.y)),s.y=1-Math.max(0,Math.min(1,l/o)),s.x=Math.max(0,Math.min(1,u/a)),s}function bN(e){return Zi(e)&&e.nodeType===3}function Nv(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function _N(e){return typeof e=="function"&&(e=e()),(Array.isArray(e)?e:[e]).map(t=>{if(typeof t=="function"&&(t=t()),qc(t)||bN(t))return t;if(typeof t=="string"&&/\S/.test(t))return dt.createTextNode(t)}).filter(t=>t)}function Lw(e,t){return _N(t).forEach(n=>e.appendChild(n)),e}function wN(e,t){return Lw(Nv(e),t)}function Zf(e){return e.button===void 0&&e.buttons===void 0||e.button===0&&e.buttons===void 0||e.type==="mouseup"&&e.button===0&&e.buttons===0||e.type==="mousedown"&&e.button===0&&e.buttons===0?!0:!(e.button!==0||e.buttons!==1)}const Mo=hN("querySelector"),SN=hN("querySelectorAll");function wc(e,t){if(!e||!t)return"";if(typeof me.getComputedStyle=="function"){let n;try{n=me.getComputedStyle(e)}catch{return""}return n?n.getPropertyValue(t)||n[t]:""}return""}function TN(e){[...dt.styleSheets].forEach(t=>{try{const n=[...t.cssRules].map(r=>r.cssText).join(""),s=dt.createElement("style");s.textContent=n,e.document.head.appendChild(s)}catch{const s=dt.createElement("link");s.rel="stylesheet",s.type=t.type,s.media=t.media.mediaText,s.href=t.href,e.document.head.appendChild(s)}})}var CN=Object.freeze({__proto__:null,isReal:jc,isEl:qc,isInFrame:fN,createEl:Yt,textContent:jo,prependTo:p_,hasClass:af,addClass:El,removeClass:Ov,toggleClass:pN,setAttributes:mN,getAttributes:oo,getAttribute:gN,setAttribute:bc,removeAttribute:Pv,blockTextSelection:vN,unblockTextSelection:yN,getBoundingClientRect:_c,findPosition:Jf,getPointerPosition:Rv,isTextNode:bN,emptyEl:Nv,normalizeContent:_N,appendContent:Lw,insertContent:wN,isSingleLeftClick:Zf,$:Mo,$$:SN,computedStyle:wc,copyStyleSheetsToWindow:TN});let EN=!1,m_;const X_e=function(){if(m_.options.autoSetup===!1)return;const e=Array.prototype.slice.call(dt.getElementsByTagName("video")),t=Array.prototype.slice.call(dt.getElementsByTagName("audio")),n=Array.prototype.slice.call(dt.getElementsByTagName("video-js")),s=e.concat(t,n);if(s&&s.length>0)for(let r=0,i=s.length;r<i;r++){const a=s[r];if(a&&a.getAttribute)a.player===void 0&&a.getAttribute("data-setup")!==null&&m_(a);else{g_(1);break}}else EN||g_(1)};function g_(e,t){jc()&&(t&&(m_=t),me.setTimeout(X_e,e))}function v_(){EN=!0,me.removeEventListener("load",v_)}jc()&&(dt.readyState==="complete"?v_():me.addEventListener("load",v_));const xN=function(e){const t=dt.createElement("style");return t.className=e,t},kN=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var Ks=new WeakMap;const Q_e=3;let J_e=Q_e;function Zr(){return J_e++}function Gk(e,t){if(!Ks.has(e))return;const n=Ks.get(e);n.handlers[t].length===0&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),Object.getOwnPropertyNames(n).length===0&&Ks.delete(e)}function Bw(e,t,n,s){n.forEach(function(r){e(t,r,s)})}function Mv(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const s=e||me.event;e={};const r=["layerX","layerY","keyLocation","path","webkitMovementX","webkitMovementY","mozPressure","mozInputSource"];for(const i in s)r.includes(i)||i==="returnValue"&&s.preventDefault||(e[i]=s[i]);if(e.target||(e.target=e.srcElement||dt),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,e.clientX!==null&&e.clientX!==void 0){const i=dt.documentElement,a=dt.body;e.pageX=e.clientX+(i&&i.scrollLeft||a&&a.scrollLeft||0)-(i&&i.clientLeft||a&&a.clientLeft||0),e.pageY=e.clientY+(i&&i.scrollTop||a&&a.scrollTop||0)-(i&&i.clientTop||a&&a.clientTop||0)}e.which=e.charCode||e.keyCode,e.button!==null&&e.button!==void 0&&(e.button=e.button&1?0:e.button&4?1:e.button&2?2:0)}return e.fixed_=!0,e}let Pp;const Z_e=function(){if(typeof Pp!="boolean"){Pp=!1;try{const e=Object.defineProperty({},"passive",{get(){Pp=!0}});me.addEventListener("test",null,e),me.removeEventListener("test",null,e)}catch{}}return Pp},e1e=["touchstart","touchmove"];function Or(e,t,n){if(Array.isArray(t))return Bw(Or,e,t,n);Ks.has(e)||Ks.set(e,{});const s=Ks.get(e);if(s.handlers||(s.handlers={}),s.handlers[t]||(s.handlers[t]=[]),n.guid||(n.guid=Zr()),s.handlers[t].push(n),s.dispatcher||(s.disabled=!1,s.dispatcher=function(r,i){if(s.disabled)return;r=Mv(r);const a=s.handlers[r.type];if(a){const o=a.slice(0);for(let l=0,u=o.length;l<u&&!r.isImmediatePropagationStopped();l++)try{o[l].call(e,r,i)}catch(c){dn.error(c)}}}),s.handlers[t].length===1)if(e.addEventListener){let r=!1;Z_e()&&e1e.indexOf(t)>-1&&(r={passive:!0}),e.addEventListener(t,s.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,s.dispatcher)}function Ns(e,t,n){if(!Ks.has(e))return;const s=Ks.get(e);if(!s.handlers)return;if(Array.isArray(t))return Bw(Ns,e,t,n);const r=function(a,o){s.handlers[o]=[],Gk(a,o)};if(t===void 0){for(const a in s.handlers)Object.prototype.hasOwnProperty.call(s.handlers||{},a)&&r(e,a);return}const i=s.handlers[t];if(i){if(!n){r(e,t);return}if(n.guid)for(let a=0;a<i.length;a++)i[a].guid===n.guid&&i.splice(a--,1);Gk(e,t)}}function Wc(e,t,n){const s=Ks.has(e)?Ks.get(e):{},r=e.parentNode||e.ownerDocument;if(typeof t=="string"?t={type:t,target:e}:t.target||(t.target=e),t=Mv(t),s.dispatcher&&s.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&t.bubbles===!0)Wc.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){Ks.has(t.target)||Ks.set(t.target,{});const i=Ks.get(t.target);t.target[t.type]&&(i.disabled=!0,typeof t.target[t.type]=="function"&&t.target[t.type](),i.disabled=!1)}return!t.defaultPrevented}function $v(e,t,n){if(Array.isArray(t))return Bw($v,e,t,n);const s=function(){Ns(e,t,s),n.apply(this,arguments)};s.guid=n.guid=n.guid||Zr(),Or(e,t,s)}function Fw(e,t,n){const s=function(){Ns(e,t,s),n.apply(this,arguments)};s.guid=n.guid=n.guid||Zr(),Or(e,t,s)}var t1e=Object.freeze({__proto__:null,fixEvent:Mv,on:Or,off:Ns,trigger:Wc,one:$v,any:Fw});const ei=30,Rn=function(e,t,n){t.guid||(t.guid=Zr());const s=t.bind(e);return s.guid=n?n+"_"+t.guid:t.guid,s},na=function(e,t){let n=me.performance.now();return function(...r){const i=me.performance.now();i-n>=t&&(e(...r),n=i)}},AN=function(e,t,n,s=me){let r;const i=()=>{s.clearTimeout(r),r=null},a=function(){const o=this,l=arguments;let u=function(){r=null,u=null,n||e.apply(o,l)};!r&&n&&e.apply(o,l),s.clearTimeout(r),r=s.setTimeout(u,t)};return a.cancel=i,a};var n1e=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:ei,bind_:Rn,throttle:na,debounce:AN});let xd;class Pr{on(t,n){const s=this.addEventListener;this.addEventListener=()=>{},Or(this,t,n),this.addEventListener=s}off(t,n){Ns(this,t,n)}one(t,n){const s=this.addEventListener;this.addEventListener=()=>{},$v(this,t,n),this.addEventListener=s}any(t,n){const s=this.addEventListener;this.addEventListener=()=>{},Fw(this,t,n),this.addEventListener=s}trigger(t){const n=t.type||t;typeof t=="string"&&(t={type:n}),t=Mv(t),this.allowedEvents_[n]&&this["on"+n]&&this["on"+n](t),Wc(this,t)}queueTrigger(t){xd||(xd=new Map);const n=t.type||t;let s=xd.get(this);s||(s=new Map,xd.set(this,s));const r=s.get(n);s.delete(n),me.clearTimeout(r);const i=me.setTimeout(()=>{s.delete(n),s.size===0&&(s=null,xd.delete(this)),this.trigger(t)},0);s.set(n,i)}}Pr.prototype.allowedEvents_={};Pr.prototype.addEventListener=Pr.prototype.on;Pr.prototype.removeEventListener=Pr.prototype.off;Pr.prototype.dispatchEvent=Pr.prototype.trigger;const Lv=e=>typeof e.name=="function"?e.name():typeof e.name=="string"?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e,Ca=e=>e instanceof Pr||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>typeof e[t]=="function"),s1e=(e,t)=>{Ca(e)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))},y_=e=>typeof e=="string"&&/\S/.test(e)||Array.isArray(e)&&!!e.length,rg=(e,t,n)=>{if(!e||!e.nodeName&&!Ca(e))throw new Error(`Invalid target for ${Lv(t)}#${n}; must be a DOM node or evented object.`)},IN=(e,t,n)=>{if(!y_(e))throw new Error(`Invalid event type for ${Lv(t)}#${n}; must be a non-empty string or array.`)},DN=(e,t,n)=>{if(typeof e!="function")throw new Error(`Invalid listener for ${Lv(t)}#${n}; must be a function.`)},ay=(e,t,n)=>{const s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let r,i,a;return s?(r=e.eventBusEl_,t.length>=3&&t.shift(),[i,a]=t):[r,i,a]=t,rg(r,e,n),IN(i,e,n),DN(a,e,n),a=Rn(e,a),{isTargetingSelf:s,target:r,type:i,listener:a}},nl=(e,t,n,s)=>{rg(e,e,t),e.nodeName?t1e[t](e,n,s):e[t](n,s)},r1e={on(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=ay(this,e,"on");if(nl(n,"on",s,r),!t){const i=()=>this.off(n,s,r);i.guid=r.guid;const a=()=>this.off("dispose",i);a.guid=r.guid,nl(this,"on","dispose",i),nl(n,"on","dispose",a)}},one(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=ay(this,e,"one");if(t)nl(n,"one",s,r);else{const i=(...a)=>{this.off(n,s,i),r.apply(null,a)};i.guid=r.guid,nl(n,"one",s,i)}},any(...e){const{isTargetingSelf:t,target:n,type:s,listener:r}=ay(this,e,"any");if(t)nl(n,"any",s,r);else{const i=(...a)=>{this.off(n,s,i),r.apply(null,a)};i.guid=r.guid,nl(n,"any",s,i)}},off(e,t,n){if(!e||y_(e))Ns(this.eventBusEl_,e,t);else{const s=e,r=t;rg(s,this,"off"),IN(r,this,"off"),DN(n,this,"off"),n=Rn(this,n),this.off("dispose",n),s.nodeName?(Ns(s,r,n),Ns(s,"dispose",n)):Ca(s)&&(s.off(r,n),s.off("dispose",n))}},trigger(e,t){rg(this.eventBusEl_,this,"trigger");const n=e&&typeof e!="string"?e.type:e;if(!y_(n))throw new Error(`Invalid event type for ${Lv(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return Wc(this.eventBusEl_,e,t)}};function Vw(e,t={}){const{eventBusKey:n}=t;if(n){if(!e[n].nodeName)throw new Error(`The eventBusKey "${n}" does not refer to an element.`);e.eventBusEl_=e[n]}else e.eventBusEl_=Yt("span",{className:"vjs-event-bus"});return Object.assign(e,r1e),e.eventedCallbacks&&e.eventedCallbacks.forEach(s=>{s()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(s){s&&Ks.has(s)&&Ks.delete(s)}),me.setTimeout(()=>{e.eventBusEl_=null},0)}),e}const i1e={state:{},setState(e){typeof e=="function"&&(e=e());let t;return Bu(e,(n,s)=>{this.state[s]!==n&&(t=t||{},t[s]={from:this.state[s],to:n}),this.state[s]=n}),t&&Ca(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function ON(e,t){return Object.assign(e,i1e),e.state=Object.assign({},e.state,t),typeof e.handleStateChanged=="function"&&Ca(e)&&e.on("statechanged",e.handleStateChanged),e}const of=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toLowerCase())},jn=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toUpperCase())},PN=function(e,t){return jn(e)===jn(t)};var a1e=Object.freeze({__proto__:null,toLowerCase:of,toTitleCase:jn,titleCaseEquals:PN});class Qe{constructor(t,n,s){if(!t&&this.play?this.player_=t=this:this.player_=t,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Pn({},this.options_),n=this.options_=Pn(this.options_,n),this.id_=n.id||n.el&&n.el.id,!this.id_){const r=t&&t.id&&t.id()||"no_player";this.id_=`${r}_component_${Zr()}`}this.name_=n.name||null,n.el?this.el_=n.el:n.createEl!==!1&&(this.el_=this.createEl()),n.className&&this.el_&&n.className.split(" ").forEach(r=>this.addClass(r)),["on","off","one","any","trigger"].forEach(r=>{this[r]=void 0}),n.evented!==!1&&(Vw(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),ON(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,n.initChildren!==!1&&this.initChildren(),this.ready(s),n.reportTouchActivity!==!1&&this.enableTouchActivity()}on(t,n){}off(t,n){}one(t,n){}any(t,n){}trigger(t,n){}dispose(t={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let n=this.children_.length-1;n>=0;n--)this.children_[n].dispose&&this.children_[n].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&(t.restoreEl?this.el_.parentNode.replaceChild(t.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return!!this.isDisposed_}player(){return this.player_}options(t){return t?(this.options_=Pn(this.options_,t),this.options_):this.options_}el(){return this.el_}createEl(t,n,s){return Yt(t,n,s)}localize(t,n,s=t){const r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),a=i&&i[r],o=r&&r.split("-")[0],l=i&&i[o];let u=s;return a&&a[t]?u=a[t]:l&&l[t]&&(u=l[t]),n&&(u=u.replace(/\{(\d+)\}/g,function(c,f){const h=n[f-1];let m=h;return typeof h>"u"&&(m=c),m})),u}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(t){return this.childIndex_[t]}getChild(t){if(t)return this.childNameIndex_[t]}getDescendant(...t){t=t.reduce((s,r)=>s.concat(r),[]);let n=this;for(let s=0;s<t.length;s++)if(n=n.getChild(t[s]),!n||!n.getChild)return;return n}setIcon(t,n=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const s="http://www.w3.org/2000/svg",r=Yt("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),i=dt.createElementNS(s,"svg");i.setAttributeNS(null,"viewBox","0 0 512 512");const a=dt.createElementNS(s,"use");return i.appendChild(a),a.setAttributeNS(null,"href",`#vjs-icon-${t}`),r.appendChild(i),this.iconIsSet_?n.replaceChild(r,n.querySelector(".vjs-icon-placeholder")):n.appendChild(r),this.iconIsSet_=!0,r}addChild(t,n={},s=this.children_.length){let r,i;if(typeof t=="string"){i=jn(t);const a=n.componentClass||i;n.name=i;const o=Qe.getComponent(a);if(!o)throw new Error(`Component ${a} does not exist`);if(typeof o!="function")return null;r=new o(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(s,0,r),r.parentComponent_=this,typeof r.id=="function"&&(this.childIndex_[r.id()]=r),i=i||r.name&&jn(r.name()),i&&(this.childNameIndex_[i]=r,this.childNameIndex_[of(i)]=r),typeof r.el=="function"&&r.el()){let a=null;this.children_[s+1]&&(this.children_[s+1].el_?a=this.children_[s+1].el_:qc(this.children_[s+1])&&(a=this.children_[s+1])),this.contentEl().insertBefore(r.el(),a)}return r}removeChild(t){if(typeof t=="string"&&(t=this.getChild(t)),!t||!this.children_)return;let n=!1;for(let r=this.children_.length-1;r>=0;r--)if(this.children_[r]===t){n=!0,this.children_.splice(r,1);break}if(!n)return;t.parentComponent_=null,this.childIndex_[t.id()]=null,this.childNameIndex_[jn(t.name())]=null,this.childNameIndex_[of(t.name())]=null;const s=t.el();s&&s.parentNode===this.contentEl()&&this.contentEl().removeChild(t.el())}initChildren(){const t=this.options_.children;if(t){const n=this.options_,s=a=>{const o=a.name;let l=a.opts;if(n[o]!==void 0&&(l=n[o]),l===!1)return;l===!0&&(l={}),l.playerOptions=this.options_.playerOptions;const u=this.addChild(o,l);u&&(this[o]=u)};let r;const i=Qe.getComponent("Tech");Array.isArray(t)?r=t:r=Object.keys(t),r.concat(Object.keys(this.options_).filter(function(a){return!r.some(function(o){return typeof o=="string"?a===o:a===o.name})})).map(a=>{let o,l;return typeof a=="string"?(o=a,l=t[o]||this.options_[o]||{}):(o=a.name,l=a),{name:o,opts:l}}).filter(a=>{const o=Qe.getComponent(a.opts.componentClass||jn(a.name));return o&&!i.isTech(o)}).forEach(s)}}buildCSSClass(){return""}ready(t,n=!1){if(t){if(!this.isReady_){this.readyQueue_=this.readyQueue_||[],this.readyQueue_.push(t);return}n?t.call(this):this.setTimeout(t,1)}}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const t=this.readyQueue_;this.readyQueue_=[],t&&t.length>0&&t.forEach(function(n){n.call(this)},this),this.trigger("ready")},1)}$(t,n){return Mo(t,n||this.contentEl())}$$(t,n){return SN(t,n||this.contentEl())}hasClass(t){return af(this.el_,t)}addClass(...t){El(this.el_,...t)}removeClass(...t){Ov(this.el_,...t)}toggleClass(t,n){pN(this.el_,t,n)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(t){return gN(this.el_,t)}setAttribute(t,n){bc(this.el_,t,n)}removeAttribute(t){Pv(this.el_,t)}width(t,n){return this.dimension("width",t,n)}height(t,n){return this.dimension("height",t,n)}dimensions(t,n){this.width(t,!0),this.height(n)}dimension(t,n,s){if(n!==void 0){(n===null||n!==n)&&(n=0),(""+n).indexOf("%")!==-1||(""+n).indexOf("px")!==-1?this.el_.style[t]=n:n==="auto"?this.el_.style[t]="":this.el_.style[t]=n+"px",s||this.trigger("componentresize");return}if(!this.el_)return 0;const r=this.el_.style[t],i=r.indexOf("px");return parseInt(i!==-1?r.slice(0,i):this.el_["offset"+jn(t)],10)}currentDimension(t){let n=0;if(t!=="width"&&t!=="height")throw new Error("currentDimension only accepts width or height value");if(n=wc(this.el_,t),n=parseFloat(n),n===0||isNaN(n)){const s=`offset${jn(t)}`;n=this.el_[s]}return n}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}getPositions(){const t=this.el_.getBoundingClientRect(),n={x:t.x,y:t.y,width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left},s={x:t.left+t.width/2,y:t.top+t.height/2,width:0,height:0,top:t.top+t.height/2,right:t.left+t.width/2,bottom:t.top+t.height/2,left:t.left+t.width/2};return{boundingClientRect:n,center:s}}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(t){this.player_&&(t.key!=="Tab"&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled)&&t.stopPropagation(),this.player_.handleKeyDown(t))}handleKeyPress(t){this.handleKeyDown(t)}emitTapEvents(){let t=0,n=null;const s=10,r=200;let i;this.on("touchstart",function(o){o.touches.length===1&&(n={pageX:o.touches[0].pageX,pageY:o.touches[0].pageY},t=me.performance.now(),i=!0)}),this.on("touchmove",function(o){if(o.touches.length>1)i=!1;else if(n){const l=o.touches[0].pageX-n.pageX,u=o.touches[0].pageY-n.pageY;Math.sqrt(l*l+u*u)>s&&(i=!1)}});const a=function(){i=!1};this.on("touchleave",a),this.on("touchcancel",a),this.on("touchend",function(o){n=null,i===!0&&me.performance.now()-t<r&&(o.preventDefault(),this.trigger("tap"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const t=Rn(this.player(),this.player().reportUserActivity);let n;this.on("touchstart",function(){t(),this.clearInterval(n),n=this.setInterval(t,250)});const s=function(r){t(),this.clearInterval(n)};this.on("touchmove",t),this.on("touchend",s),this.on("touchcancel",s)}setTimeout(t,n){var s;return t=Rn(this,t),this.clearTimersOnDispose_(),s=me.setTimeout(()=>{this.setTimeoutIds_.has(s)&&this.setTimeoutIds_.delete(s),t()},n),this.setTimeoutIds_.add(s),s}clearTimeout(t){return this.setTimeoutIds_.has(t)&&(this.setTimeoutIds_.delete(t),me.clearTimeout(t)),t}setInterval(t,n){t=Rn(this,t),this.clearTimersOnDispose_();const s=me.setInterval(t,n);return this.setIntervalIds_.add(s),s}clearInterval(t){return this.setIntervalIds_.has(t)&&(this.setIntervalIds_.delete(t),me.clearInterval(t)),t}requestAnimationFrame(t){this.clearTimersOnDispose_();var n;return t=Rn(this,t),n=me.requestAnimationFrame(()=>{this.rafIds_.has(n)&&this.rafIds_.delete(n),t()}),this.rafIds_.add(n),n}requestNamedAnimationFrame(t,n){if(this.namedRafs_.has(t))return;this.clearTimersOnDispose_(),n=Rn(this,n);const s=this.requestAnimationFrame(()=>{n(),this.namedRafs_.has(t)&&this.namedRafs_.delete(t)});return this.namedRafs_.set(t,s),t}cancelNamedAnimationFrame(t){this.namedRafs_.has(t)&&(this.cancelAnimationFrame(this.namedRafs_.get(t)),this.namedRafs_.delete(t))}cancelAnimationFrame(t){return this.rafIds_.has(t)&&(this.rafIds_.delete(t),me.cancelAnimationFrame(t)),t}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach(([t,n])=>{this[t].forEach((s,r)=>this[n](r))}),this.clearingTimersOnDispose_=!1}))}getIsDisabled(){return!!this.el_.disabled}getIsExpresslyInert(){return this.el_.inert&&!this.el_.ownerDocument.documentElement.inert}getIsFocusable(t){return(t||this.el_).tabIndex>=0&&!(this.getIsDisabled()||this.getIsExpresslyInert())}getIsAvailableToBeFocused(t){function n(i){const a=me.getComputedStyle(i,null),o=a.getPropertyValue("visibility");return a.getPropertyValue("display")!=="none"&&!["hidden","collapse"].includes(o)}function s(i){return!(!n(i.parentElement)||!n(i)||i.style.opacity==="0"||me.getComputedStyle(i).height==="0px"||me.getComputedStyle(i).width==="0px")}function r(i){if(i.offsetWidth+i.offsetHeight+i.getBoundingClientRect().height+i.getBoundingClientRect().width===0)return!1;const a={x:i.getBoundingClientRect().left+i.offsetWidth/2,y:i.getBoundingClientRect().top+i.offsetHeight/2};if(a.x<0||a.x>(dt.documentElement.clientWidth||me.innerWidth)||a.y<0||a.y>(dt.documentElement.clientHeight||me.innerHeight))return!1;let o=dt.elementFromPoint(a.x,a.y);for(;o;){if(o===i)return!0;if(o.parentNode)o=o.parentNode;else return!1}}return t||(t=this.el()),!!(r(t)&&s(t)&&(!t.parentElement||t.tabIndex>=0))}static registerComponent(t,n){if(typeof t!="string"||!t)throw new Error(`Illegal component name, "${t}"; must be a non-empty string.`);const s=Qe.getComponent("Tech"),r=s&&s.isTech(n),i=Qe===n||Qe.prototype.isPrototypeOf(n.prototype);if(r||!i){let o;throw r?o="techs must be registered using Tech.registerTech()":o="must be a Component subclass",new Error(`Illegal component, "${t}"; ${o}.`)}t=jn(t),Qe.components_||(Qe.components_={});const a=Qe.getComponent("Player");if(t==="Player"&&a&&a.players){const o=a.players,l=Object.keys(o);if(o&&l.length>0&&l.map(u=>o[u]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return Qe.components_[t]=n,Qe.components_[of(t)]=n,n}static getComponent(t){if(!(!t||!Qe.components_))return Qe.components_[t]}}Qe.registerComponent("Component",Qe);function o1e(e,t,n){if(typeof t!="number"||t<0||t>n)throw new Error(`Failed to execute '${e}' on 'TimeRanges': The index provided (${t}) is non-numeric or out of bounds (0-${n}).`)}function Yk(e,t,n,s){return o1e(e,s,n.length-1),n[s][t]}function oy(e){let t;return e===void 0||e.length===0?t={length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:t={length:e.length,start:Yk.bind(null,"start",0,e),end:Yk.bind(null,"end",1,e)},me.Symbol&&me.Symbol.iterator&&(t[me.Symbol.iterator]=()=>(e||[]).values()),t}function bi(e,t){return Array.isArray(e)?oy(e):e===void 0||t===void 0?oy():oy([[e,t]])}const RN=function(e,t){e=e<0?0:e;let n=Math.floor(e%60),s=Math.floor(e/60%60),r=Math.floor(e/3600);const i=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=s=n="-"),r=r>0||a>0?r+":":"",s=((r||i>=10)&&s<10?"0"+s:s)+":",n=n<10?"0"+n:n,r+s+n};let Uw=RN;function NN(e){Uw=e}function MN(){Uw=RN}function Vl(e,t=e){return Uw(e,t)}var l1e=Object.freeze({__proto__:null,createTimeRanges:bi,createTimeRange:bi,setFormatTime:NN,resetFormatTime:MN,formatTime:Vl});function $N(e,t){let n=0,s,r;if(!t)return 0;(!e||!e.length)&&(e=bi(0,0));for(let i=0;i<e.length;i++)s=e.start(i),r=e.end(i),r>t&&(r=t),n+=r-s;return n/t}function zn(e){if(e instanceof zn)return e;typeof e=="number"?this.code=e:typeof e=="string"?this.message=e:Zi(e)&&(typeof e.code=="number"&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=zn.defaultMessages[this.code]||"")}zn.prototype.code=0;zn.prototype.message="";zn.prototype.status=null;zn.prototype.metadata=null;zn.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"];zn.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};zn.MEDIA_ERR_CUSTOM=0;zn.prototype.MEDIA_ERR_CUSTOM=0;zn.MEDIA_ERR_ABORTED=1;zn.prototype.MEDIA_ERR_ABORTED=1;zn.MEDIA_ERR_NETWORK=2;zn.prototype.MEDIA_ERR_NETWORK=2;zn.MEDIA_ERR_DECODE=3;zn.prototype.MEDIA_ERR_DECODE=3;zn.MEDIA_ERR_SRC_NOT_SUPPORTED=4;zn.prototype.MEDIA_ERR_SRC_NOT_SUPPORTED=4;zn.MEDIA_ERR_ENCRYPTED=5;zn.prototype.MEDIA_ERR_ENCRYPTED=5;function lf(e){return e!=null&&typeof e.then=="function"}function Fi(e){lf(e)&&e.then(null,t=>{})}const b_=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((n,s,r)=>(e[s]&&(n[s]=e[s]),n),{cues:e.cues&&Array.prototype.map.call(e.cues,function(n){return{startTime:n.startTime,endTime:n.endTime,text:n.text,id:n.id}})})},u1e=function(e){const t=e.$$("track"),n=Array.prototype.map.call(t,r=>r.track);return Array.prototype.map.call(t,function(r){const i=b_(r.track);return r.src&&(i.src=r.src),i}).concat(Array.prototype.filter.call(e.textTracks(),function(r){return n.indexOf(r)===-1}).map(b_))},c1e=function(e,t){return e.forEach(function(n){const s=t.addRemoteTextTrack(n).track;!n.src&&n.cues&&n.cues.forEach(r=>s.addCue(r))}),t.textTracks()};var Xk={textTracksToJson:u1e,jsonToTextTracks:c1e,trackToJson_:b_};const ly="vjs-modal-dialog";class Kc extends Qe{constructor(t,n){super(t,n),this.handleKeyDown_=s=>this.handleKeyDown(s),this.close_=s=>this.close(s),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=Yt("div",{className:`${ly}-content`},{role:"document"}),this.descEl_=Yt("p",{className:`${ly}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),jo(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog","aria-live":"polite"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${ly} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let t=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(t+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),t}open(){if(this.opened_){this.options_.fillAlways&&this.fill();return}const t=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!t.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&t.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=t.controls(),t.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}opened(t){return typeof t=="boolean"&&this[t?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const t=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&t.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&t.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger({type:"modalclose",bubbles:!0}),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}closeable(t){if(typeof t=="boolean"){const n=this.closeable_=!!t;let s=this.getChild("closeButton");if(n&&!s){const r=this.contentEl_;this.contentEl_=this.el_,s=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(s,"close",this.close_)}!n&&s&&(this.off(s,"close",this.close_),this.removeChild(s),s.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(t){const n=this.contentEl(),s=n.parentNode,r=n.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,s.removeChild(n),this.empty(),wN(n,t),this.trigger("modalfill"),r?s.insertBefore(n,r):s.appendChild(n);const i=this.getChild("closeButton");i&&s.appendChild(i.el_)}empty(){this.trigger("beforemodalempty"),Nv(this.contentEl()),this.trigger("modalempty")}content(t){return typeof t<"u"&&(this.content_=t),this.content_}conditionalFocus_(){const t=dt.activeElement,n=this.player_.el_;this.previouslyActiveEl_=null,(n.contains(t)||n===t)&&(this.previouslyActiveEl_=t,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(t){if(this.trigger({type:"modalKeydown",originalEvent:t,target:this,bubbles:!0}),t.stopPropagation(),t.key==="Escape"&&this.closeable()){t.preventDefault(),this.close();return}if(t.key!=="Tab")return;const n=this.focusableEls_(),s=this.el_.querySelector(":focus");let r;for(let i=0;i<n.length;i++)if(s===n[i]){r=i;break}dt.activeElement===this.el_&&(r=0),t.shiftKey&&r===0?(n[n.length-1].focus(),t.preventDefault()):!t.shiftKey&&r===n.length-1&&(n[0].focus(),t.preventDefault())}focusableEls_(){const t=this.el_.querySelectorAll("*");return Array.prototype.filter.call(t,n=>(n instanceof me.HTMLAnchorElement||n instanceof me.HTMLAreaElement)&&n.hasAttribute("href")||(n instanceof me.HTMLInputElement||n instanceof me.HTMLSelectElement||n instanceof me.HTMLTextAreaElement||n instanceof me.HTMLButtonElement)&&!n.hasAttribute("disabled")||n instanceof me.HTMLIFrameElement||n instanceof me.HTMLObjectElement||n instanceof me.HTMLEmbedElement||n.hasAttribute("tabindex")&&n.getAttribute("tabindex")!==-1||n.hasAttribute("contenteditable"))}}Kc.prototype.options_={pauseOnOpen:!0,temporary:!0};Qe.registerComponent("ModalDialog",Kc);class Sc extends Pr{constructor(t=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let n=0;n<t.length;n++)this.addTrack(t[n])}addTrack(t){const n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get(){return this.tracks_[n]}}),this.tracks_.indexOf(t)===-1&&(this.tracks_.push(t),this.trigger({track:t,type:"addtrack",target:this})),t.labelchange_=()=>{this.trigger({track:t,type:"labelchange",target:this})},Ca(t)&&t.addEventListener("labelchange",t.labelchange_)}removeTrack(t){let n;for(let s=0,r=this.length;s<r;s++)if(this[s]===t){n=this[s],n.off&&n.off(),this.tracks_.splice(s,1);break}n&&this.trigger({track:n,type:"removetrack",target:this})}getTrackById(t){let n=null;for(let s=0,r=this.length;s<r;s++){const i=this[s];if(i.id===t){n=i;break}}return n}}Sc.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const e in Sc.prototype.allowedEvents_)Sc.prototype["on"+e]=null;const uy=function(e,t){for(let n=0;n<e.length;n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].enabled=!1)};class d1e extends Sc{constructor(t=[]){for(let n=t.length-1;n>=0;n--)if(t[n].enabled){uy(t,t[n]);break}super(t),this.changing_=!1}addTrack(t){t.enabled&&uy(this,t),super.addTrack(t),t.addEventListener&&(t.enabledChange_=()=>{this.changing_||(this.changing_=!0,uy(this,t),this.changing_=!1,this.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))}removeTrack(t){super.removeTrack(t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)}}const cy=function(e,t){for(let n=0;n<e.length;n++)!Object.keys(e[n]).length||t.id===e[n].id||(e[n].selected=!1)};class f1e extends Sc{constructor(t=[]){for(let n=t.length-1;n>=0;n--)if(t[n].selected){cy(t,t[n]);break}super(t),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let n=0;n<this.length;n++)if(this[n].selected)return n;return-1},set(){}})}addTrack(t){t.selected&&cy(this,t),super.addTrack(t),t.addEventListener&&(t.selectedChange_=()=>{this.changing_||(this.changing_=!0,cy(this,t),this.changing_=!1,this.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))}removeTrack(t){super.removeTrack(t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)}}class LN extends Sc{addTrack(t){super.addTrack(t),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),t.addEventListener("modechange",this.queueChange_),["metadata","chapters"].indexOf(t.kind)===-1&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(t){super.removeTrack(t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class h1e{constructor(t=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let n=0,s=t.length;n<s;n++)this.addTrackElement_(t[n])}addTrackElement_(t){const n=this.trackElements_.length;""+n in this||Object.defineProperty(this,n,{get(){return this.trackElements_[n]}}),this.trackElements_.indexOf(t)===-1&&this.trackElements_.push(t)}getTrackElementByTrack_(t){let n;for(let s=0,r=this.trackElements_.length;s<r;s++)if(t===this.trackElements_[s].track){n=this.trackElements_[s];break}return n}removeTrackElement_(t){for(let n=0,s=this.trackElements_.length;n<s;n++)if(t===this.trackElements_[n]){this.trackElements_[n].track&&typeof this.trackElements_[n].track.off=="function"&&this.trackElements_[n].track.off(),typeof this.trackElements_[n].off=="function"&&this.trackElements_[n].off(),this.trackElements_.splice(n,1);break}}}class ig{constructor(t){ig.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(t){const n=this.length||0;let s=0;const r=t.length;this.cues_=t,this.length_=t.length;const i=function(a){""+a in this||Object.defineProperty(this,""+a,{get(){return this.cues_[a]}})};if(n<r)for(s=n;s<r;s++)i.call(this,s)}getCueById(t){let n=null;for(let s=0,r=this.length;s<r;s++){const i=this[s];if(i.id===t){n=i;break}}return n}}const p1e={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},m1e={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},g1e={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Qk={disabled:"disabled",hidden:"hidden",showing:"showing"};class Hw extends Pr{constructor(t={}){super();const n={id:t.id||"vjs_track_"+Zr(),kind:t.kind||"",language:t.language||""};let s=t.label||"";for(const r in n)Object.defineProperty(this,r,{get(){return n[r]},set(){}});Object.defineProperty(this,"label",{get(){return s},set(r){r!==s&&(s=r,this.trigger("labelchange"))}})}}const zw=function(e){return new URL(e,dt.baseURI)},BN=function(e){return new URL(e,dt.baseURI).href},jw=function(e){if(typeof e=="string"){const n=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(n)return n.pop().toLowerCase()}return""},Bv=function(e,t=me.location){return zw(e).origin!==t.origin};var v1e=Object.freeze({__proto__:null,parseUrl:zw,getAbsoluteURL:BN,getFileExtension:jw,isCrossOrigin:Bv});const Jk=function(e,t){const n=new me.WebVTT.Parser(me,me.vttjs,me.WebVTT.StringDecoder()),s=[];n.oncue=function(r){t.addCue(r)},n.onparsingerror=function(r){s.push(r)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),s.length>0&&(me.console&&me.console.groupCollapsed&&me.console.groupCollapsed(`Text Track parsing errors for ${t.src}`),s.forEach(r=>dn.error(r)),me.console&&me.console.groupEnd&&me.console.groupEnd()),n.flush()},Zk=function(e,t){const n={uri:e},s=Bv(e);s&&(n.cors=s);const r=t.tech_.crossOrigin()==="use-credentials";r&&(n.withCredentials=r),aR(n,Rn(this,function(i,a,o){if(i)return dn.error(i,a);t.loaded_=!0,typeof me.WebVTT!="function"?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],l=>{if(l.type==="vttjserror"){dn.error(`vttjs failed to load, stopping trying to process ${t.src}`);return}return Jk(o,t)}):Jk(o,t)}))};class Oh extends Hw{constructor(t={}){if(!t.tech)throw new Error("A tech was not provided.");const n=Pn(t,{kind:g1e[t.kind]||"subtitles",language:t.language||t.srclang||""});let s=Qk[n.mode]||"disabled";const r=n.default;(n.kind==="metadata"||n.kind==="chapters")&&(s="hidden"),super(n),this.tech_=n.tech,this.cues_=[],this.activeCues_=[],this.preload_=this.tech_.preloadTextTracks!==!1;const i=new ig(this.cues_),a=new ig(this.activeCues_);let o=!1;this.timeupdateHandler=Rn(this,function(u={}){if(!this.tech_.isDisposed()){if(!this.tech_.isReady_){u.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler));return}this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1),u.type!=="timeupdate"&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}});const l=()=>{this.stopTracking()};this.tech_.one("dispose",l),s!=="disabled"&&this.startTracking(),Object.defineProperties(this,{default:{get(){return r},set(){}},mode:{get(){return s},set(u){Qk[u]&&s!==u&&(s=u,!this.preload_&&s!=="disabled"&&this.cues.length===0&&Zk(this.src,this),this.stopTracking(),s!=="disabled"&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?i:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(this.cues.length===0)return a;const u=this.tech_.currentTime(),c=[];for(let f=0,h=this.cues.length;f<h;f++){const m=this.cues[f];m.startTime<=u&&m.endTime>=u&&c.push(m)}if(o=!1,c.length!==this.activeCues_.length)o=!0;else for(let f=0;f<c.length;f++)this.activeCues_.indexOf(c[f])===-1&&(o=!0);return this.activeCues_=c,a.setCues_(this.activeCues_),a},set(){}}}),n.src?(this.src=n.src,this.preload_||(this.loaded_=!0),(this.preload_||n.kind!=="subtitles"&&n.kind!=="captions")&&Zk(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(t){let n=t;if(!("getCueAsHTML"in n)){n=new me.vttjs.VTTCue(t.startTime,t.endTime,t.text);for(const r in t)r in n||(n[r]=t[r]);n.id=t.id,n.originalCue_=t}const s=this.tech_.textTracks();for(let r=0;r<s.length;r++)s[r]!==this&&s[r].removeCue(n);this.cues_.push(n),this.cues.setCues_(this.cues_)}removeCue(t){let n=this.cues_.length;for(;n--;){const s=this.cues_[n];if(s===t||s.originalCue_&&s.originalCue_===t){this.cues_.splice(n,1),this.cues.setCues_(this.cues_);break}}}}Oh.prototype.allowedEvents_={cuechange:"cuechange"};class FN extends Hw{constructor(t={}){const n=Pn(t,{kind:m1e[t.kind]||""});super(n);let s=!1;Object.defineProperty(this,"enabled",{get(){return s},set(r){typeof r!="boolean"||r===s||(s=r,this.trigger("enabledchange"))}}),n.enabled&&(this.enabled=n.enabled),this.loaded_=!0}}class VN extends Hw{constructor(t={}){const n=Pn(t,{kind:p1e[t.kind]||""});super(n);let s=!1;Object.defineProperty(this,"selected",{get(){return s},set(r){typeof r!="boolean"||r===s||(s=r,this.trigger("selectedchange"))}}),n.selected&&(this.selected=n.selected)}}class Pa extends Pr{constructor(t={}){super();let n;const s=new Oh(t);this.kind=s.kind,this.src=s.src,this.srclang=s.language,this.label=s.label,this.default=s.default,Object.defineProperties(this,{readyState:{get(){return n}},track:{get(){return s}}}),n=Pa.NONE,s.addEventListener("loadeddata",()=>{n=Pa.LOADED,this.trigger({type:"load",target:this})})}}Pa.prototype.allowedEvents_={load:"load"};Pa.NONE=0;Pa.LOADING=1;Pa.LOADED=2;Pa.ERROR=3;const Wr={audio:{ListClass:d1e,TrackClass:FN,capitalName:"Audio"},video:{ListClass:f1e,TrackClass:VN,capitalName:"Video"},text:{ListClass:LN,TrackClass:Oh,capitalName:"Text"}};Object.keys(Wr).forEach(function(e){Wr[e].getterName=`${e}Tracks`,Wr[e].privateName=`${e}Tracks_`});const Tc={remoteText:{ListClass:LN,TrackClass:Oh,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:h1e,TrackClass:Pa,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},js=Object.assign({},Wr,Tc);Tc.names=Object.keys(Tc);Wr.names=Object.keys(Wr);js.names=[].concat(Tc.names).concat(Wr.names);function y1e(e,t,n,s,r={}){const i=e.textTracks();r.kind=t,n&&(r.label=n),s&&(r.language=s),r.tech=e;const a=new js.text.TrackClass(r);return i.addTrack(a),a}class Zt extends Qe{constructor(t={},n=function(){}){t.reportTouchActivity=!1,super(null,t,n),this.onDurationChange_=s=>this.onDurationChange(s),this.trackProgress_=s=>this.trackProgress(s),this.trackCurrentTime_=s=>this.trackCurrentTime(s),this.stopTrackingCurrentTime_=s=>this.stopTrackingCurrentTime(s),this.disposeSourceHandler_=s=>this.disposeSourceHandler(s),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),js.names.forEach(s=>{const r=js[s];t&&t[r.getterName]&&(this[r.privateName]=t[r.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(s=>{t[`native${s}Tracks`]===!1&&(this[`featuresNative${s}Tracks`]=!1)}),t.nativeCaptions===!1||t.nativeTextTracks===!1?this.featuresNativeTextTracks=!1:(t.nativeCaptions===!0||t.nativeTextTracks===!0)&&(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=t.preloadTextTracks!==!1,this.autoRemoteTextTracks_=new js.text.ListClass,this.initTrackListeners(),t.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(t){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(t),1)),this.trigger({src:t,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(t){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Rn(this,function(){const n=this.bufferedPercent();this.bufferedPercent_!==n&&this.trigger("progress"),this.bufferedPercent_=n,n===1&&this.stopTrackingProgress()}),500)}onDurationChange(t){this.duration_=this.duration()}buffered(){return bi(0,0)}bufferedPercent(){return $N(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(Wr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}clearTracks(t){t=[].concat(t),t.forEach(n=>{const s=this[`${n}Tracks`]()||[];let r=s.length;for(;r--;){const i=s[r];n==="text"&&this.removeRemoteTextTrack(i),s.removeTrack(i)}})}cleanupAutoTextTracks(){const t=this.autoRemoteTextTracks_||[];let n=t.length;for(;n--;){const s=t[n];this.removeRemoteTextTrack(s)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(t){return t!==void 0&&(this.error_=new zn(t),this.trigger("error")),this.error_}played(){return this.hasStarted_?bi(0,0):bi()}play(){}setScrubbing(t){}scrubbing(){}setCurrentTime(t){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){Wr.names.forEach(t=>{const n=Wr[t],s=()=>{this.trigger(`${t}trackchange`)},r=this[n.getterName]();r.addEventListener("removetrack",s),r.addEventListener("addtrack",s),this.on("dispose",()=>{r.removeEventListener("removetrack",s),r.removeEventListener("addtrack",s)})})}addWebVttScript_(){if(!me.WebVTT)if(dt.body.contains(this.el())){if(!this.options_["vtt.js"]&&yc(gk)&&Object.keys(gk).length>0){this.trigger("vttjsloaded");return}const t=dt.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=()=>{this.trigger("vttjsloaded")},t.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{t.onload=null,t.onerror=null}),me.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const t=this.textTracks(),n=this.remoteTextTracks(),s=o=>t.addTrack(o.track),r=o=>t.removeTrack(o.track);n.on("addtrack",s),n.on("removetrack",r),this.addWebVttScript_();const i=()=>this.trigger("texttrackchange"),a=()=>{i();for(let o=0;o<t.length;o++){const l=t[o];l.removeEventListener("cuechange",i),l.mode==="showing"&&l.addEventListener("cuechange",i)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",function(){n.off("addtrack",s),n.off("removetrack",r),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(let o=0;o<t.length;o++)t[o].removeEventListener("cuechange",i)})}addTextTrack(t,n,s){if(!t)throw new Error("TextTrack kind is required but was not provided");return y1e(this,t,n,s)}createRemoteTextTrack(t){const n=Pn(t,{tech:this});return new Tc.remoteTextEl.TrackClass(n)}addRemoteTextTrack(t={},n){const s=this.createRemoteTextTrack(t);return typeof n!="boolean"&&(n=!1),this.remoteTextTrackEls().addTrackElement_(s),this.remoteTextTracks().addTrack(s.track),n===!1&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(s.track)),s}removeRemoteTextTrack(t){const n=this.remoteTextTrackEls().getTrackElementByTrack_(t);this.remoteTextTrackEls().removeTrackElement_(n),this.remoteTextTracks().removeTrack(t),this.autoRemoteTextTracks_.removeTrack(t)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(t){const n=Zr();return!this.isReady_||this.paused()?(this.queuedHanders_.add(n),this.one("playing",()=>{this.queuedHanders_.has(n)&&(this.queuedHanders_.delete(n),t())})):this.requestNamedAnimationFrame(n,t),n}cancelVideoFrameCallback(t){this.queuedHanders_.has(t)?this.queuedHanders_.delete(t):this.cancelNamedAnimationFrame(t)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(t){}overrideNativeVideoTracks(t){}canPlayType(t){return""}static canPlayType(t){return""}static canPlaySource(t,n){return Zt.canPlayType(t.type)}static isTech(t){return t.prototype instanceof Zt||t instanceof Zt||t===Zt}static registerTech(t,n){if(Zt.techs_||(Zt.techs_={}),!Zt.isTech(n))throw new Error(`Tech ${t} must be a Tech`);if(!Zt.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!Zt.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return t=jn(t),Zt.techs_[t]=n,Zt.techs_[of(t)]=n,t!=="Tech"&&Zt.defaultTechOrder_.push(t),n}static getTech(t){if(t){if(Zt.techs_&&Zt.techs_[t])return Zt.techs_[t];if(t=jn(t),me&&me.videojs&&me.videojs[t])return dn.warn(`The ${t} tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)`),me.videojs[t]}}}js.names.forEach(function(e){const t=js[e];Zt.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}});Zt.prototype.featuresVolumeControl=!0;Zt.prototype.featuresMuteControl=!0;Zt.prototype.featuresFullscreenResize=!1;Zt.prototype.featuresPlaybackRate=!1;Zt.prototype.featuresProgressEvents=!1;Zt.prototype.featuresSourceset=!1;Zt.prototype.featuresTimeupdateEvents=!1;Zt.prototype.featuresNativeTextTracks=!1;Zt.prototype.featuresVideoFrameCallback=!1;Zt.withSourceHandlers=function(e){e.registerSourceHandler=function(n,s){let r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),s===void 0&&(s=r.length),r.splice(s,0,n)},e.canPlayType=function(n){const s=e.sourceHandlers||[];let r;for(let i=0;i<s.length;i++)if(r=s[i].canPlayType(n),r)return r;return""},e.selectSourceHandler=function(n,s){const r=e.sourceHandlers||[];let i;for(let a=0;a<r.length;a++)if(i=r[a].canHandleSource(n,s),i)return r[a];return null},e.canPlaySource=function(n,s){const r=e.selectSourceHandler(n,s);return r?r.canHandleSource(n,s):""},["seekable","seeking","duration"].forEach(function(n){const s=this[n];typeof s=="function"&&(this[n]=function(){return this.sourceHandler_&&this.sourceHandler_[n]?this.sourceHandler_[n].apply(this.sourceHandler_,arguments):s.apply(this,arguments)})},e.prototype),e.prototype.setSource=function(n){let s=e.selectSourceHandler(n,this.options_);s||(e.nativeSourceHandler?s=e.nativeSourceHandler:dn.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),s!==e.nativeSourceHandler&&(this.currentSource_=n),this.sourceHandler_=s.handleSource(n,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}};Qe.registerComponent("Tech",Zt);Zt.registerTech("Tech",Zt);Zt.defaultTechOrder_=[];const xl={},__={},ag={};function b1e(e,t){xl[e]=xl[e]||[],xl[e].push(t)}function _1e(e,t,n){e.setTimeout(()=>rl(t,xl[t.type],n,e),1)}function w1e(e,t){e.forEach(n=>n.setTech&&n.setTech(t))}function S1e(e,t,n){return e.reduceRight(qw(n),t[n]())}function T1e(e,t,n,s){return t[n](e.reduce(qw(n),s))}function eA(e,t,n,s=null){const r="call"+jn(n),i=e.reduce(qw(r),s),a=i===ag,o=a?null:t[n](i);return x1e(e,n,o,a),o}const C1e={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},E1e={setCurrentTime:1,setMuted:1,setVolume:1},tA={play:1,pause:1};function qw(e){return(t,n)=>t===ag?ag:n[e]?n[e](t):t}function x1e(e,t,n,s){for(let r=e.length-1;r>=0;r--){const i=e[r];i[t]&&i[t](s,n)}}function k1e(e){__[e.id()]=null}function A1e(e,t){const n=__[e.id()];let s=null;if(n==null)return s=t(e),__[e.id()]=[[t,s]],s;for(let r=0;r<n.length;r++){const[i,a]=n[r];i===t&&(s=a)}return s===null&&(s=t(e),n.push([t,s])),s}function rl(e={},t=[],n,s,r=[],i=!1){const[a,...o]=t;if(typeof a=="string")rl(e,xl[a],n,s,r,i);else if(a){const l=A1e(s,a);if(!l.setSource)return r.push(l),rl(e,o,n,s,r,i);l.setSource(Object.assign({},e),function(u,c){if(u)return rl(e,o,n,s,r,i);r.push(l),rl(c,e.type===c.type?o:xl[c.type],n,s,r,i)})}else o.length?rl(e,o,n,s,r,i):i?n(e,r):rl(e,xl["*"],n,s,r,!0)}const I1e={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},og=function(e=""){const t=jw(e);return I1e[t.toLowerCase()]||""},D1e=(e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const n=e.cache_.sources.filter(r=>r.src===t);if(n.length)return n[0].type;const s=e.$$("source");for(let r=0;r<s.length;r++){const i=s[r];if(i.type&&i.src&&i.src===t)return i.type}return og(t)},UN=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(n){n=UN(n),Array.isArray(n)?t=t.concat(n):Zi(n)&&t.push(n)}),e=t}else typeof e=="string"&&e.trim()?e=[nA({src:e})]:Zi(e)&&typeof e.src=="string"&&e.src&&e.src.trim()?e=[nA(e)]:e=[];return e};function nA(e){if(!e.type){const t=og(e.src);t&&(e.type=t)}return e}var O1e=`<svg xmlns="http://www.w3.org/2000/svg">
|
||
<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 sA=ng?10009:sg?461:8,pu={codes:{play:415,pause:19,ff:417,rw:412,back:sA},names:{415:"play",19:"pause",417:"ff",412:"rw",[sA]:"back"},isEventKey(e,t){return t=t.toLowerCase(),!!(this.names[e.keyCode]&&this.names[e.keyCode]===t)},getEventName(e){if(this.names[e.keyCode])return this.names[e.keyCode];if(this.codes[e.code]){const t=this.codes[e.code];return this.names[t]}return null}},rA=5;class P1e extends Pr{constructor(t){super(),this.player_=t,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)}stop(){this.player_.off("keydown",this.onKeyDown_),this.isListening_=!1}onKeyDown_(t){const n=t.originalEvent?t.originalEvent:t;if(["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(n.key)){if(this.isPaused_)return;n.preventDefault();const s=n.key.substring(5).toLowerCase();this.move(s)}else if(pu.isEventKey(n,"play")||pu.isEventKey(n,"pause")||pu.isEventKey(n,"ff")||pu.isEventKey(n,"rw")){n.preventDefault();const s=pu.getEventName(n);this.performMediaAction_(s)}else pu.isEventKey(n,"Back")&&t.target&&t.target.closeable()&&(n.preventDefault(),t.target.close())}performMediaAction_(t){if(this.player_)switch(t){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()+rA);break;case"rw":this.userSeek_(this.player_.currentTime()-rA);break}}userSeek_(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)}pause(){this.isPaused_=!0}resume(){this.isPaused_=!1}handlePlayerBlur_(t){const n=t.relatedTarget;let s=null;const r=this.getCurrentComponent(t.target);n&&(s=!!n.closest(".video-js"),n.classList.contains("vjs-text-track-settings")&&!this.isPaused_&&this.searchForTrackSelect_()),(!t.currentTarget.contains(t.relatedTarget)&&!s||!n)&&(r.name()==="CloseButton"?this.refocusComponent():(this.pause(),r&&r.el()&&(this.lastFocusedComponent_=r)))}handlePlayerFocus_(){this.getCurrentComponent()&&this.getCurrentComponent().getIsFocusable()&&this.resume()}updateFocusableComponents(){const t=this.player_,n=[];function s(r){for(const i of r)i.hasOwnProperty("el_")&&i.getIsFocusable()&&i.getIsAvailableToBeFocused(i.el())&&n.push(i),i.hasOwnProperty("children_")&&i.children_.length>0&&s(i.children_)}return t.children_.forEach(r=>{if(r.hasOwnProperty("el_"))if(r.getIsFocusable&&r.getIsAvailableToBeFocused&&r.getIsFocusable()&&r.getIsAvailableToBeFocused(r.el())){n.push(r);return}else r.hasOwnProperty("children_")&&r.children_.length>0?s(r.children_):r.hasOwnProperty("items")&&r.items.length>0?s(r.items):this.findSuitableDOMChild(r)&&n.push(r)}),this.focusableComponents=n,this.focusableComponents}findSuitableDOMChild(t){function n(s){if(t.getIsFocusable(s)&&t.getIsAvailableToBeFocused(s))return s;for(let r=0;r<s.children.length;r++){const i=s.children[r],a=n(i);if(a)return a}return null}return n(t.el())}getCurrentComponent(t){this.updateFocusableComponents();const n=t||document.activeElement;if(this.focusableComponents.length){for(const s of this.focusableComponents)if(s.el()===n)return s}}add(t){const n=[...this.focusableComponents];t.hasOwnProperty("el_")&&t.getIsFocusable()&&t.getIsAvailableToBeFocused(t.el())&&n.push(t),this.focusableComponents=n,this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents})}remove(t){for(let n=0;n<this.focusableComponents.length;n++)if(this.focusableComponents[n].name()===t.name()){this.focusableComponents.splice(n,1),this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents});return}}clear(){this.focusableComponents.length>0&&(this.focusableComponents=[],this.trigger({type:"focusableComponentsChanged",focusableComponents:this.focusableComponents}))}move(t){const n=this.getCurrentComponent();if(!n)return;const s=n.getPositions(),r=this.focusableComponents.filter(a=>a!==n&&this.isInDirection_(s.boundingClientRect,a.getPositions().boundingClientRect,t)),i=this.findBestCandidate_(s.center,r,t);i?this.focus(i):this.trigger({type:"endOfFocusableComponents",direction:t,focusedComponent:n})}findBestCandidate_(t,n,s){let r=1/0,i=null;for(const a of n){const o=a.getPositions().center,l=this.calculateDistance_(t,o,s);l<r&&(r=l,i=a)}return i}isInDirection_(t,n,s){switch(s){case"right":return n.left>=t.right;case"left":return n.right<=t.left;case"down":return n.top>=t.bottom;case"up":return n.bottom<=t.top;default:return!1}}refocusComponent(){if(this.lastFocusedComponent_){this.player_.userActive()||this.player_.userActive(!0),this.updateFocusableComponents();for(let t=0;t<this.focusableComponents.length;t++)if(this.focusableComponents[t].name()===this.lastFocusedComponent_.name()){this.focus(this.focusableComponents[t]);return}}else this.focus(this.updateFocusableComponents()[0])}focus(t){t.getIsAvailableToBeFocused(t.el())?t.focus():this.findSuitableDOMChild(t)&&this.findSuitableDOMChild(t).focus()}calculateDistance_(t,n,s){const r=Math.abs(t.x-n.x),i=Math.abs(t.y-n.y);let a;switch(s){case"right":case"left":a=r+i*100;break;case"up":a=i*2+r*.5;break;case"down":a=i*5+r;break;default:a=r+i}return a}searchForTrackSelect_(){const t=this;for(const n of t.updateFocusableComponents())if(n.constructor.name==="TextTrackSelect"){t.focus(n);break}}}class R1e extends Qe{constructor(t,n,s){const r=Pn({createEl:!1},n);if(super(t,r,s),!n.playerOptions.sources||n.playerOptions.sources.length===0)for(let i=0,a=n.playerOptions.techOrder;i<a.length;i++){const o=jn(a[i]);let l=Zt.getTech(o);if(o||(l=Qe.getComponent(o)),l&&l.isSupported()){t.loadTech_(o);break}}else t.src(n.playerOptions.sources)}}Qe.registerComponent("MediaLoader",R1e);class Fv extends Qe{constructor(t,n){super(t,n),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=s=>this.handleMouseOver(s),this.handleMouseOut_=s=>this.handleMouseOut(s),this.handleClick_=s=>this.handleClick(s),this.handleKeyDown_=s=>this.handleKeyDown(s),this.emitTapEvents(),this.enable()}createEl(t="div",n={},s={}){n=Object.assign({className:this.buildCSSClass(),tabIndex:0},n),t==="button"&&dn.error(`Creating a ClickableComponent with an HTML element of ${t} is not supported; use a Button instead.`),s=Object.assign({role:"button"},s),this.tabIndex_=n.tabIndex;const r=Yt(t,n,s);return this.player_.options_.experimentalSvgIcons||r.appendChild(Yt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(t){return this.controlTextEl_=Yt("span",{className:"vjs-control-text"},{"aria-live":"polite"}),t&&t.appendChild(this.controlTextEl_),this.controlText(this.controlText_,t),this.controlTextEl_}controlText(t,n=this.el()){if(t===void 0)return this.controlText_||"Need Text";const s=this.localize(t);this.controlText_=t,jo(this.controlTextEl_,s),!this.nonIconControl&&!this.player_.options_.noUITitleAttributes&&n.setAttribute("title",s)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),typeof this.tabIndex_<"u"&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))}disable(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),typeof this.tabIndex_<"u"&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(t){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(t){t.key===" "||t.key==="Enter"?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):super.handleKeyDown(t)}}Qe.registerComponent("ClickableComponent",Fv);class w_ extends Fv{constructor(t,n){super(t,n),this.update(),this.update_=s=>this.update(s),t.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return Yt("div",{className:"vjs-poster"})}crossOrigin(t){if(typeof t>"u")return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;if(t!==null&&t!=="anonymous"&&t!=="use-credentials"){this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${t}"`);return}this.$("img")&&(this.$("img").crossOrigin=t)}update(t){const n=this.player().poster();this.setSrc(n),n?this.show():this.hide()}setSrc(t){if(!t){this.el_.textContent="";return}this.$("img")||this.el_.appendChild(Yt("picture",{className:"vjs-poster",tabIndex:-1},{},Yt("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=t}handleClick(t){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?Fi(this.player_.play()):this.player_.pause())}}w_.prototype.crossorigin=w_.prototype.crossOrigin;Qe.registerComponent("PosterImage",w_);const $r="#222",iA="#ccc",N1e={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function dy(e,t){let n;if(e.length===4)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else if(e.length===7)n=e.slice(1);else throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function kd(e,t,n){try{e.style[t]=n}catch{return}}function aA(e){return e?`${e}px`:""}class M1e extends Qe{constructor(t,n,s){super(t,n,s);const r=a=>this.updateDisplay(a),i=a=>{this.updateDisplayOverlay(),this.updateDisplay(a)};t.on("loadstart",a=>this.toggleDisplay(a)),t.on("texttrackchange",r),t.on("loadedmetadata",a=>{this.updateDisplayOverlay(),this.preselectTrack(a)}),t.ready(Rn(this,function(){if(t.tech_&&t.tech_.featuresNativeTextTracks){this.hide();return}t.on("fullscreenchange",i),t.on("playerresize",i);const a=me.screen.orientation||me,o=me.screen.orientation?"change":"orientationchange";a.addEventListener(o,i),t.on("dispose",()=>a.removeEventListener(o,i));const l=this.options_.playerOptions.tracks||[];for(let u=0;u<l.length;u++)this.player_.addRemoteTextTrack(l[u],!0);this.preselectTrack()}))}preselectTrack(){const t={captions:1,subtitles:1},n=this.player_.textTracks(),s=this.player_.cache_.selectedLanguage;let r,i,a;for(let o=0;o<n.length;o++){const l=n[o];s&&s.enabled&&s.language&&s.language===l.language&&l.kind in t?l.kind===s.kind?a=l:a||(a=l):s&&!s.enabled?(a=null,r=null,i=null):l.default&&(l.kind==="descriptions"&&!r?r=l:l.kind in t&&!i&&(i=l))}a?a.mode="showing":i?i.mode="showing":r&&(r.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){typeof me.WebVTT=="function"&&me.WebVTT.processCues(me,[],this.el_)}updateDisplay(){const t=this.player_.textTracks(),n=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),n){const a=[];for(let o=0;o<t.length;++o){const l=t[o];l.mode==="showing"&&a.push(l)}this.updateForTrack(a);return}let s=null,r=null,i=t.length;for(;i--;){const a=t[i];a.mode==="showing"&&(a.kind==="descriptions"?s=a:r=a)}r?(this.getAttribute("aria-live")!=="off"&&this.setAttribute("aria-live","off"),this.updateForTrack(r)):s&&(this.getAttribute("aria-live")!=="assertive"&&this.setAttribute("aria-live","assertive"),this.updateForTrack(s))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!me.CSS.supports("inset-inline: 10px"))return;const t=this.player_.currentWidth(),n=this.player_.currentHeight(),s=t/n,r=this.player_.videoWidth()/this.player_.videoHeight();let i=0,a=0;Math.abs(s-r)>.1&&(s>r?i=Math.round((t-n*r)/2):a=Math.round((n-t/r)/2)),kd(this.el_,"insetInline",aA(i)),kd(this.el_,"insetBlock",aA(a))}updateDisplayState(t){const n=this.player_.textTrackSettings.getValues(),s=t.activeCues;let r=s.length;for(;r--;){const i=s[r];if(!i)continue;const a=i.displayState;if(n.color&&(a.firstChild.style.color=n.color),n.textOpacity&&kd(a.firstChild,"color",dy(n.color||"#fff",n.textOpacity)),n.backgroundColor&&(a.firstChild.style.backgroundColor=n.backgroundColor),n.backgroundOpacity&&kd(a.firstChild,"backgroundColor",dy(n.backgroundColor||"#000",n.backgroundOpacity)),n.windowColor&&(n.windowOpacity?kd(a,"backgroundColor",dy(n.windowColor,n.windowOpacity)):a.style.backgroundColor=n.windowColor),n.edgeStyle&&(n.edgeStyle==="dropshadow"?a.firstChild.style.textShadow=`2px 2px 3px ${$r}, 2px 2px 4px ${$r}, 2px 2px 5px ${$r}`:n.edgeStyle==="raised"?a.firstChild.style.textShadow=`1px 1px ${$r}, 2px 2px ${$r}, 3px 3px ${$r}`:n.edgeStyle==="depressed"?a.firstChild.style.textShadow=`1px 1px ${iA}, 0 1px ${iA}, -1px -1px ${$r}, 0 -1px ${$r}`:n.edgeStyle==="uniform"&&(a.firstChild.style.textShadow=`0 0 4px ${$r}, 0 0 4px ${$r}, 0 0 4px ${$r}, 0 0 4px ${$r}`)),n.fontPercent&&n.fontPercent!==1){const o=me.parseFloat(a.style.fontSize);a.style.fontSize=o*n.fontPercent+"px",a.style.height="auto",a.style.top="auto"}n.fontFamily&&n.fontFamily!=="default"&&(n.fontFamily==="small-caps"?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=N1e[n.fontFamily])}}updateForTrack(t){if(Array.isArray(t)||(t=[t]),typeof me.WebVTT!="function"||t.every(s=>!s.activeCues))return;const n=[];for(let s=0;s<t.length;++s){const r=t[s];for(let i=0;i<r.activeCues.length;++i)n.push(r.activeCues[i])}me.WebVTT.processCues(me,n,this.el_);for(let s=0;s<t.length;++s){const r=t[s];for(let i=0;i<r.activeCues.length;++i){const a=r.activeCues[i].displayState;El(a,"vjs-text-track-cue","vjs-text-track-cue-"+(r.language?r.language:s)),r.language&&bc(a,"lang",r.language)}this.player_.textTrackSettings&&this.updateDisplayState(r)}}}Qe.registerComponent("TextTrackDisplay",M1e);class $1e extends Qe{createEl(){const t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),s=Yt("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(s),r}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}}Qe.registerComponent("LoadingSpinner",$1e);class Qs extends Fv{createEl(t,n={},s={}){t="button",n=Object.assign({className:this.buildCSSClass()},n),s=Object.assign({type:"button"},s);const r=Yt(t,n,s);return this.player_.options_.experimentalSvgIcons||r.appendChild(Yt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(r),r}addChild(t,n={}){const s=this.constructor.name;return dn.warn(`Adding an actionable (user controllable) child to a Button (${s}) is not supported; use a ClickableComponent instead.`),Qe.prototype.addChild.call(this,t,n)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(t){if(t.key===" "||t.key==="Enter"){t.stopPropagation();return}super.handleKeyDown(t)}}Qe.registerComponent("Button",Qs);class HN extends Qs{constructor(t,n){super(t,n),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",s=>this.handleMouseDown(s))}buildCSSClass(){return"vjs-big-play-button"}handleClick(t){const n=this.player_.play();if(this.mouseused_&&"clientX"in t&&"clientY"in t){Fi(n),this.player_.tech(!0)&&this.player_.tech(!0).focus();return}const s=this.player_.getChild("controlBar"),r=s&&s.getChild("playToggle");if(!r){this.player_.tech(!0).focus();return}const i=()=>r.focus();lf(n)?n.then(i,()=>{}):this.setTimeout(i,1)}handleKeyDown(t){this.mouseused_=!1,super.handleKeyDown(t)}handleMouseDown(t){this.mouseused_=!0}}HN.prototype.controlText_="Play Video";Qe.registerComponent("BigPlayButton",HN);class L1e extends Qs{constructor(t,n){super(t,n),this.setIcon("cancel"),this.controlText(n&&n.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(t){this.trigger({type:"close",bubbles:!1})}handleKeyDown(t){t.key==="Escape"?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):super.handleKeyDown(t)}}Qe.registerComponent("CloseButton",L1e);class zN extends Qs{constructor(t,n={}){super(t,n),n.replay=n.replay===void 0||n.replay,this.setIcon("play"),this.on(t,"play",s=>this.handlePlay(s)),this.on(t,"pause",s=>this.handlePause(s)),n.replay&&this.on(t,"ended",s=>this.handleEnded(s))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(t){this.player_.paused()?Fi(this.player_.play()):this.player_.pause()}handleSeeked(t){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(t):this.handlePlay(t)}handlePlay(t){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(t){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(t){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",n=>this.handleSeeked(n))}}zN.prototype.controlText_="Play";Qe.registerComponent("PlayToggle",zN);class Gc extends Qe{constructor(t,n){super(t,n),this.on(t,["timeupdate","ended","seeking"],s=>this.update(s)),this.updateTextNode_()}createEl(){const t=this.buildCSSClass(),n=super.createEl("div",{className:`${t} vjs-time-control vjs-control`}),s=Yt("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)} `},{role:"presentation"});return n.appendChild(s),this.contentEl_=Yt("span",{className:`${t}-display`},{role:"presentation"}),n.appendChild(this.contentEl_),n}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}update(t){!this.player_.options_.enableSmoothSeeking&&t.type==="seeking"||this.updateContent(t)}updateTextNode_(t=0){t=Vl(t),this.formattedTime_!==t&&(this.formattedTime_=t,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let n=this.textNode_;n&&this.contentEl_.firstChild!==n&&(n=null,dn.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=dt.createTextNode(this.formattedTime_),this.textNode_&&(n?this.contentEl_.replaceChild(this.textNode_,n):this.contentEl_.appendChild(this.textNode_))}))}updateContent(t){}}Gc.prototype.labelText_="Time";Gc.prototype.controlText_="Time";Qe.registerComponent("TimeDisplay",Gc);class Ww extends Gc{buildCSSClass(){return"vjs-current-time"}updateContent(t){let n;this.player_.ended()?n=this.player_.duration():n=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(n)}}Ww.prototype.labelText_="Current Time";Ww.prototype.controlText_="Current Time";Qe.registerComponent("CurrentTimeDisplay",Ww);class Kw extends Gc{constructor(t,n){super(t,n);const s=r=>this.updateContent(r);this.on(t,"durationchange",s),this.on(t,"loadstart",s),this.on(t,"loadedmetadata",s)}buildCSSClass(){return"vjs-duration"}updateContent(t){const n=this.player_.duration();this.updateTextNode_(n)}}Kw.prototype.labelText_="Duration";Kw.prototype.controlText_="Duration";Qe.registerComponent("DurationDisplay",Kw);class B1e extends Qe{createEl(){const t=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=super.createEl("div"),s=super.createEl("span",{textContent:"/"});return n.appendChild(s),t.appendChild(n),t}}Qe.registerComponent("TimeDivider",B1e);class Gw extends Gc{constructor(t,n){super(t,n),this.on(t,"durationchange",s=>this.updateContent(s))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const t=super.createEl();return this.options_.displayNegative!==!1&&t.insertBefore(Yt("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t}updateContent(t){if(typeof this.player_.duration()!="number")return;let n;this.player_.ended()?n=0:this.player_.remainingTimeDisplay?n=this.player_.remainingTimeDisplay():n=this.player_.remainingTime(),this.updateTextNode_(n)}}Gw.prototype.labelText_="Remaining Time";Gw.prototype.controlText_="Remaining Time";Qe.registerComponent("RemainingTimeDisplay",Gw);class F1e extends Qe{constructor(t,n){super(t,n),this.updateShowing(),this.on(this.player(),"durationchange",s=>this.updateShowing(s))}createEl(){const t=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Yt("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(Yt("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")} `})),this.contentEl_.appendChild(dt.createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,super.dispose()}updateShowing(t){this.player().duration()===1/0?this.show():this.hide()}}Qe.registerComponent("LiveDisplay",F1e);class jN extends Qs{constructor(t,n){super(t,n),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=s=>this.updateLiveEdgeStatus(s),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const t=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",t),this.textEl_=Yt("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t}updateLiveEdgeStatus(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}jN.prototype.controlText_="Seek to live, currently playing live";Qe.registerComponent("SeekToLive",jN);function Ph(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))}var V1e=Object.freeze({__proto__:null,clamp:Ph});class Yw extends Qe{constructor(t,n){super(t,n),this.handleMouseDown_=s=>this.handleMouseDown(s),this.handleMouseUp_=s=>this.handleMouseUp(s),this.handleKeyDown_=s=>this.handleKeyDown(s),this.handleClick_=s=>this.handleClick(s),this.handleMouseMove_=s=>this.handleMouseMove(s),this.update_=s=>this.update(s),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)}disable(){if(!this.enabled())return;const t=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}createEl(t,n={},s={}){return n.className=n.className+" vjs-slider",n=Object.assign({tabIndex:0},n),s=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},s),super.createEl(t,n,s)}handleMouseDown(t){const n=this.bar.el_.ownerDocument;t.type==="mousedown"&&t.preventDefault(),t.type==="touchstart"&&!ta&&t.preventDefault(),vN(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(n,"mousemove",this.handleMouseMove_),this.on(n,"mouseup",this.handleMouseUp_),this.on(n,"touchmove",this.handleMouseMove_),this.on(n,"touchend",this.handleMouseUp_),this.handleMouseMove(t,!0)}handleMouseMove(t){}handleMouseUp(t){const n=this.bar.el_.ownerDocument;yN(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(n,"mousemove",this.handleMouseMove_),this.off(n,"mouseup",this.handleMouseUp_),this.off(n,"touchmove",this.handleMouseMove_),this.off(n,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",()=>{const n=this.vertical()?"height":"width";this.bar.el().style[n]=(t*100).toFixed(2)+"%"})),t}getProgress(){return Number(Ph(this.getPercent(),0,1).toFixed(4))}calculateDistance(t){const n=Rv(this.el_,t);return this.vertical()?n.y:n.x}handleKeyDown(t){const n=this.options_.playerOptions.spatialNavigation,s=n&&n.enabled,r=n&&n.horizontalSeek;s?r&&t.key==="ArrowLeft"||!r&&t.key==="ArrowDown"?(t.preventDefault(),t.stopPropagation(),this.stepBack()):r&&t.key==="ArrowRight"||!r&&t.key==="ArrowUp"?(t.preventDefault(),t.stopPropagation(),this.stepForward()):super.handleKeyDown(t):t.key==="ArrowLeft"||t.key==="ArrowDown"?(t.preventDefault(),t.stopPropagation(),this.stepBack()):t.key==="ArrowUp"||t.key==="ArrowRight"?(t.preventDefault(),t.stopPropagation(),this.stepForward()):super.handleKeyDown(t)}handleClick(t){t.stopPropagation(),t.preventDefault()}vertical(t){if(t===void 0)return this.vertical_||!1;this.vertical_=!!t,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}Qe.registerComponent("Slider",Yw);const fy=(e,t)=>Ph(e/t*100,0,100).toFixed(2)+"%";class U1e extends Qe{constructor(t,n){super(t,n),this.partEls_=[],this.on(t,"progress",s=>this.update(s))}createEl(){const t=super.createEl("div",{className:"vjs-load-progress"}),n=Yt("span",{className:"vjs-control-text"}),s=Yt("span",{textContent:this.localize("Loaded")}),r=dt.createTextNode(": ");return this.percentageEl_=Yt("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(s),n.appendChild(r),n.appendChild(this.percentageEl_),t}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(t){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const n=this.player_.liveTracker,s=this.player_.buffered(),r=n&&n.isLive()?n.seekableEnd():this.player_.duration(),i=this.player_.bufferedEnd(),a=this.partEls_,o=fy(i,r);this.percent_!==o&&(this.el_.style.width=o,jo(this.percentageEl_,o),this.percent_=o);for(let l=0;l<s.length;l++){const u=s.start(l),c=s.end(l);let f=a[l];f||(f=this.el_.appendChild(Yt()),a[l]=f),!(f.dataset.start===u&&f.dataset.end===c)&&(f.dataset.start=u,f.dataset.end=c,f.style.left=fy(u,i),f.style.width=fy(c-u,i))}for(let l=a.length;l>s.length;l--)this.el_.removeChild(a[l-1]);a.length=s.length})}}Qe.registerComponent("LoadProgressBar",U1e);class H1e extends Qe{constructor(t,n){super(t,n),this.update=na(Rn(this,this.update),ei)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(t,n,s){const r=Jf(this.el_),i=_c(this.player_.el()),a=t.width*n;if(!i||!r)return;let o=t.left-i.left+a,l=t.width-a+(i.right-t.right);l||(l=t.width-a,o=a);let u=r.width/2;o<u?u+=u-o:l<u&&(u=l),u<0?u=0:u>r.width&&(u=r.width),u=Math.round(u),this.el_.style.right=`-${u}px`,this.write(s)}write(t){jo(this.el_,t)}updateTime(t,n,s,r){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let i;const a=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const o=this.player_.liveTracker.liveWindow(),l=o-n*o;i=(l<1?"":"-")+Vl(l,o)}else i=Vl(s,a);this.update(t,n,i),r&&r()})}}Qe.registerComponent("TimeTooltip",H1e);class Xw extends Qe{constructor(t,n){super(t,n),this.setIcon("circle"),this.update=na(Rn(this,this.update),ei)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(t,n){const s=this.getChild("timeTooltip");if(!s)return;const r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();s.updateTime(t,n,r)}}Xw.prototype.options_={children:[]};!Xs&&!ea&&Xw.prototype.options_.children.push("timeTooltip");Qe.registerComponent("PlayProgressBar",Xw);class qN extends Qe{constructor(t,n){super(t,n),this.update=na(Rn(this,this.update),ei)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(t,n){const s=n*this.player_.duration();this.getChild("timeTooltip").updateTime(t,n,s,()=>{this.el_.style.left=`${t.width*n}px`})}}qN.prototype.options_={children:["timeTooltip"]};Qe.registerComponent("MouseTimeDisplay",qN);const Rp=5,oA=12;class Qw extends Yw{constructor(t,n){super(t,n),this.setEventHandlers_()}setEventHandlers_(){this.update_=Rn(this,this.update),this.update=na(this.update_,ei),this.on(this.player_,["durationchange","timeupdate"],this.update),this.on(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=t=>this.enableInterval_(t),this.disableIntervalHandler_=t=>this.disableInterval_(t),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in dt&&"visibilityState"in dt&&this.on(dt,"visibilitychange",this.toggleVisibility_)}toggleVisibility_(t){dt.visibilityState==="hidden"?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(t)):(!this.player_.ended()&&!this.player_.paused()&&this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,ei))}disableInterval_(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&t&&t.type!=="ended"||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(t){if(dt.visibilityState==="hidden")return;const n=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const s=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),r=this.player_.liveTracker;let i=this.player_.duration();r&&r.isLive()&&(i=this.player_.liveTracker.liveCurrentTime()),this.percent_!==n&&(this.el_.setAttribute("aria-valuenow",(n*100).toFixed(2)),this.percent_=n),(this.currentTime_!==s||this.duration_!==i)&&(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[Vl(s,i),Vl(i,i)],"{1} of {2}")),this.currentTime_=s,this.duration_=i),this.bar&&this.bar.update(_c(this.el()),this.getProgress())}),n}userSeek_(t){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(t)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const t=this.getCurrentTime_();let n;const s=this.player_.liveTracker;return s&&s.isLive()?(n=(t-s.seekableStart())/s.liveWindow(),s.atLiveEdge()&&(n=1)):n=t/this.player_.duration(),n}handleMouseDown(t){Zf(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(t))}handleMouseMove(t,n=!1){if(!Zf(t)||isNaN(this.player_.duration()))return;!n&&!this.player_.scrubbing()&&this.player_.scrubbing(!0);let s;const r=this.calculateDistance(t),i=this.player_.liveTracker;if(!i||!i.isLive())s=r*this.player_.duration(),s===this.player_.duration()&&(s=s-.1);else{if(r>=.99){i.seekToLiveEdge();return}const a=i.seekableStart(),o=i.liveCurrentTime();if(s=a+r*i.liveWindow(),s>=o&&(s=o),s<=a&&(s=a+.1),s===1/0)return}this.userSeek_(s),this.player_.options_.enableSmoothSeeking&&this.update()}enable(){super.enable();const t=this.getChild("mouseTimeDisplay");t&&t.show()}disable(){super.disable();const t=this.getChild("mouseTimeDisplay");t&&t.hide()}handleMouseUp(t){super.handleMouseUp(t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Fi(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+Rp)}stepBack(){this.userSeek_(this.player_.currentTime()-Rp)}handleAction(t){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(t){const n=this.player_.liveTracker;if(t.key===" "||t.key==="Enter")t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(t.key==="Home")t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(t.key==="End")t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(t.key)){t.preventDefault(),t.stopPropagation();const s=parseInt(t.key,10)*.1;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*s):this.userSeek_(this.player_.duration()*s)}else t.key==="PageDown"?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-Rp*oA)):t.key==="PageUp"?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+Rp*oA)):super.handleKeyDown(t)}dispose(){this.disableInterval_(),this.off(this.player_,["durationchange","timeupdate"],this.update),this.off(this.player_,["ended"],this.update_),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in dt&&"visibilityState"in dt&&this.off(dt,"visibilitychange",this.toggleVisibility_),super.dispose()}}Qw.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"};!Xs&&!ea&&Qw.prototype.options_.children.splice(1,0,"mouseTimeDisplay");Qe.registerComponent("SeekBar",Qw);class WN extends Qe{constructor(t,n){super(t,n),this.handleMouseMove=na(Rn(this,this.handleMouseMove),ei),this.throttledHandleMouseSeek=na(Rn(this,this.handleMouseSeek),ei),this.handleMouseUpHandler_=s=>this.handleMouseUp(s),this.handleMouseDownHandler_=s=>this.handleMouseDown(s),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(t){const n=this.getChild("seekBar");if(!n)return;const s=n.getChild("playProgressBar"),r=n.getChild("mouseTimeDisplay");if(!s&&!r)return;const i=n.el(),a=Jf(i);let o=Rv(i,t).x;o=Ph(o,0,1),r&&r.update(a,o),s&&s.update(a,n.getProgress())}handleMouseSeek(t){const n=this.getChild("seekBar");n&&n.handleMouseMove(t)}enabled(){return this.enabled_}disable(){if(this.children().forEach(t=>t.disable&&t.disable()),!!this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){const t=this.getChild("seekBar");this.player_.scrubbing(!1),t.videoWasPlaying&&Fi(this.player_.play())}}enable(){this.children().forEach(t=>t.enable&&t.enable()),!this.enabled()&&(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)}removeListenersAddedOnMousedownAndTouchstart(){const t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)}handleMouseDown(t){const n=this.el_.ownerDocument,s=this.getChild("seekBar");s&&s.handleMouseDown(t),this.on(n,"mousemove",this.throttledHandleMouseSeek),this.on(n,"touchmove",this.throttledHandleMouseSeek),this.on(n,"mouseup",this.handleMouseUpHandler_),this.on(n,"touchend",this.handleMouseUpHandler_)}handleMouseUp(t){const n=this.getChild("seekBar");n&&n.handleMouseUp(t),this.removeListenersAddedOnMousedownAndTouchstart()}}WN.prototype.options_={children:["seekBar"]};Qe.registerComponent("ProgressControl",WN);class KN extends Qs{constructor(t,n){super(t,n),this.setIcon("picture-in-picture-enter"),this.on(t,["enterpictureinpicture","leavepictureinpicture"],s=>this.handlePictureInPictureChange(s)),this.on(t,["disablepictureinpicturechanged","loadedmetadata"],s=>this.handlePictureInPictureEnabledChange(s)),this.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){if(!(this.player_.currentType().substring(0,5)==="audio"||this.player_.audioPosterMode()||this.player_.audioOnlyMode())){this.show();return}this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()}handlePictureInPictureEnabledChange(){dt.pictureInPictureEnabled&&this.player_.disablePictureInPicture()===!1||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in me?this.enable():this.disable()}handlePictureInPictureChange(t){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(t){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){typeof dt.exitPictureInPicture=="function"&&super.show()}}KN.prototype.controlText_="Picture-in-Picture";Qe.registerComponent("PictureInPictureToggle",KN);class GN extends Qs{constructor(t,n){super(t,n),this.setIcon("fullscreen-enter"),this.on(t,"fullscreenchange",s=>this.handleFullscreenChange(s)),dt[t.fsApi_.fullscreenEnabled]===!1&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(t){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(t){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}GN.prototype.controlText_="Fullscreen";Qe.registerComponent("FullscreenToggle",GN);const z1e=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})};class j1e extends Qe{createEl(){const t=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",t),t.appendChild(super.createEl("span",{className:"vjs-control-text"})),t}}Qe.registerComponent("VolumeLevel",j1e);class q1e extends Qe{constructor(t,n){super(t,n),this.update=na(Rn(this,this.update),ei)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(t,n,s,r){if(!s){const i=_c(this.el_),a=_c(this.player_.el()),o=t.width*n;if(!a||!i)return;const l=t.left-a.left+o,u=t.width-o+(a.right-t.right);let c=i.width/2;l<c?c+=c-l:u<c&&(c=u),c<0?c=0:c>i.width&&(c=i.width),this.el_.style.right=`-${c}px`}this.write(`${r}%`)}write(t){jo(this.el_,t)}updateVolume(t,n,s,r,i){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(t,n,s,r.toFixed(0)),i&&i()})}}Qe.registerComponent("VolumeLevelTooltip",q1e);class YN extends Qe{constructor(t,n){super(t,n),this.update=na(Rn(this,this.update),ei)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(t,n,s){const r=100*n;this.getChild("volumeLevelTooltip").updateVolume(t,n,s,r,()=>{s?this.el_.style.bottom=`${t.height*n}px`:this.el_.style.left=`${t.width*n}px`})}}YN.prototype.options_={children:["volumeLevelTooltip"]};Qe.registerComponent("MouseVolumeLevelDisplay",YN);class Vv extends Yw{constructor(t,n){super(t,n),this.on("slideractive",s=>this.updateLastVolume_(s)),this.on(t,"volumechange",s=>this.updateARIAAttributes(s)),t.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(t){Zf(t)&&super.handleMouseDown(t)}handleMouseMove(t){const n=this.getChild("mouseVolumeLevelDisplay");if(n){const s=this.el(),r=_c(s),i=this.vertical();let a=Rv(s,t);a=i?a.y:a.x,a=Ph(a,0,1),n.update(r,a,i)}Zf(t)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(t)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(t){const n=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",n),this.el_.setAttribute("aria-valuetext",n+"%")}volumeAsPercentage_(){return Math.round(this.player_.volume()*100)}updateLastVolume_(){const t=this.player_.volume();this.one("sliderinactive",()=>{this.player_.volume()===0&&this.player_.lastVolume_(t)})}}Vv.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"};!Xs&&!ea&&Vv.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay");Vv.prototype.playerEvent="volumechange";Qe.registerComponent("VolumeBar",Vv);class XN extends Qe{constructor(t,n={}){n.vertical=n.vertical||!1,(typeof n.volumeBar>"u"||yc(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),super(t,n),z1e(this,t),this.throttledHandleMouseMove=na(Rn(this,this.handleMouseMove),ei),this.handleMouseUpHandler_=s=>this.handleMouseUp(s),this.on("mousedown",s=>this.handleMouseDown(s)),this.on("touchstart",s=>this.handleMouseDown(s)),this.on("mousemove",s=>this.handleMouseMove(s)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${t}`})}handleMouseDown(t){const n=this.el_.ownerDocument;this.on(n,"mousemove",this.throttledHandleMouseMove),this.on(n,"touchmove",this.throttledHandleMouseMove),this.on(n,"mouseup",this.handleMouseUpHandler_),this.on(n,"touchend",this.handleMouseUpHandler_)}handleMouseUp(t){const n=this.el_.ownerDocument;this.off(n,"mousemove",this.throttledHandleMouseMove),this.off(n,"touchmove",this.throttledHandleMouseMove),this.off(n,"mouseup",this.handleMouseUpHandler_),this.off(n,"touchend",this.handleMouseUpHandler_)}handleMouseMove(t){this.volumeBar.handleMouseMove(t)}}XN.prototype.options_={children:["volumeBar"]};Qe.registerComponent("VolumeControl",XN);const W1e=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")})};class QN extends Qs{constructor(t,n){super(t,n),W1e(this,t),this.on(t,["loadstart","volumechange"],s=>this.update(s))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(t){const n=this.player_.volume(),s=this.player_.lastVolume_();if(n===0){const r=s<.1?.1:s;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(t){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const t=this.player_.volume();let n=3;this.setIcon("volume-high"),Xs&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),t===0||this.player_.muted()?(this.setIcon("volume-mute"),n=0):t<.33?(this.setIcon("volume-low"),n=1):t<.67&&(this.setIcon("volume-medium"),n=2),Ov(this.el_,[0,1,2,3].reduce((s,r)=>s+`${r?" ":""}vjs-vol-${r}`,"")),El(this.el_,`vjs-vol-${n}`)}updateControlText_(){const n=this.player_.muted()||this.player_.volume()===0?"Unmute":"Mute";this.controlText()!==n&&this.controlText(n)}}QN.prototype.controlText_="Mute";Qe.registerComponent("MuteToggle",QN);class JN extends Qe{constructor(t,n={}){typeof n.inline<"u"?n.inline=n.inline:n.inline=!0,(typeof n.volumeControl>"u"||yc(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),super(t,n),this.handleKeyPressHandler_=s=>this.handleKeyPress(s),this.on(t,["loadstart"],s=>this.volumePanelState_(s)),this.on(this.muteToggle,"keyup",s=>this.handleKeyPress(s)),this.on(this.volumeControl,"keyup",s=>this.handleVolumeControlKeyUp(s)),this.on("keydown",s=>this.handleKeyPress(s)),this.on("mouseover",s=>this.handleMouseOver(s)),this.on("mouseout",s=>this.handleMouseOut(s)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")}createEl(){let t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${t}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(t){t.key==="Escape"&&this.muteToggle.focus()}handleMouseOver(t){this.addClass("vjs-hover"),Or(dt,"keyup",this.handleKeyPressHandler_)}handleMouseOut(t){this.removeClass("vjs-hover"),Ns(dt,"keyup",this.handleKeyPressHandler_)}handleKeyPress(t){t.key==="Escape"&&this.handleMouseOut()}}JN.prototype.options_={children:["muteToggle","volumeControl"]};Qe.registerComponent("VolumePanel",JN);class ZN extends Qs{constructor(t,n){super(t,n),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime.toLocaleString(t.language())])),this.show()):this.hide()}getSkipForwardTime(){const t=this.options_.playerOptions;return t.controlBar&&t.controlBar.skipButtons&&t.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(t){if(isNaN(this.player_.duration()))return;const n=this.player_.currentTime(),s=this.player_.liveTracker,r=s&&s.isLive()?s.seekableEnd():this.player_.duration();let i;n+this.skipTime<=r?i=n+this.skipTime:i=r,this.player_.currentTime(i)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}}ZN.prototype.controlText_="Skip Forward";Qe.registerComponent("SkipForward",ZN);class eM extends Qs{constructor(t,n){super(t,n),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime.toLocaleString(t.language())])),this.show()):this.hide()}getSkipBackwardTime(){const t=this.options_.playerOptions;return t.controlBar&&t.controlBar.skipButtons&&t.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(t){const n=this.player_.currentTime(),s=this.player_.liveTracker,r=s&&s.isLive()&&s.seekableStart();let i;r&&n-this.skipTime<=r?i=r:n>=this.skipTime?i=n-this.skipTime:i=0,this.player_.currentTime(i)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}eM.prototype.controlText_="Skip Backward";Qe.registerComponent("SkipBackward",eM);class tM extends Qe{constructor(t,n){super(t,n),n&&(this.menuButton_=n.menuButton),this.focusedChild_=-1,this.on("keydown",s=>this.handleKeyDown(s)),this.boundHandleBlur_=s=>this.handleBlur(s),this.boundHandleTapClick_=s=>this.handleTapClick(s)}addEventListenerForItem(t){t instanceof Qe&&(this.on(t,"blur",this.boundHandleBlur_),this.on(t,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(t){t instanceof Qe&&(this.off(t,"blur",this.boundHandleBlur_),this.off(t,["tap","click"],this.boundHandleTapClick_))}removeChild(t){typeof t=="string"&&(t=this.getChild(t)),this.removeEventListenerForItem(t),super.removeChild(t)}addItem(t){const n=this.addChild(t);n&&this.addEventListenerForItem(n)}createEl(){const t=this.options_.contentElType||"ul";this.contentEl_=Yt(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const n=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Or(n,"click",function(s){s.preventDefault(),s.stopImmediatePropagation()}),n}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(t){const n=t.relatedTarget||dt.activeElement;if(!this.children().some(s=>s.el()===n)){const s=this.menuButton_;s&&s.buttonPressed_&&n!==s.el().firstChild&&s.unpressButton()}}handleTapClick(t){if(this.menuButton_){this.menuButton_.unpressButton();const n=this.children();if(!Array.isArray(n))return;const s=n.filter(r=>r.el()===t.target)[0];if(!s)return;s.name()!=="CaptionSettingsMenuItem"&&this.menuButton_.focus()}}handleKeyDown(t){t.key==="ArrowLeft"||t.key==="ArrowDown"?(t.preventDefault(),t.stopPropagation(),this.stepForward()):(t.key==="ArrowRight"||t.key==="ArrowUp")&&(t.preventDefault(),t.stopPropagation(),this.stepBack())}stepForward(){let t=0;this.focusedChild_!==void 0&&(t=this.focusedChild_+1),this.focus(t)}stepBack(){let t=0;this.focusedChild_!==void 0&&(t=this.focusedChild_-1),this.focus(t)}focus(t=0){const n=this.children().slice();n.length&&n[0].hasClass("vjs-menu-title")&&n.shift(),n.length>0&&(t<0?t=0:t>=n.length&&(t=n.length-1),this.focusedChild_=t,n[t].el_.focus())}}Qe.registerComponent("Menu",tM);class Jw extends Qe{constructor(t,n={}){super(t,n),this.menuButton_=new Qs(t,n),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const s=Qs.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+s,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const r=i=>this.handleClick(i);this.handleMenuKeyUp_=i=>this.handleMenuKeyUp(i),this.on(this.menuButton_,"tap",r),this.on(this.menuButton_,"click",r),this.on(this.menuButton_,"keydown",i=>this.handleKeyDown(i)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),Or(dt,"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",i=>this.handleMouseLeave(i)),this.on("keydown",i=>this.handleSubmenuKeyDown(i))}update(){const t=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=t,this.addChild(t),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))}createMenu(){const t=new tM(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const n=Yt("li",{className:"vjs-menu-title",textContent:jn(this.options_.title),tabIndex:-1}),s=new Qe(this.player_,{el:n});t.addItem(s)}if(this.items=this.createItems(),this.items)for(let n=0;n<this.items.length;n++)t.addItem(this.items[n]);return t}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(t){super.setIcon(t,this.menuButton_.el_)}buildWrapperCSSClass(){let t="vjs-menu-button";this.options_.inline===!0?t+="-inline":t+="-popup";const n=Qs.prototype.buildCSSClass();return`vjs-menu-button ${t} ${n} ${super.buildCSSClass()}`}buildCSSClass(){let t="vjs-menu-button";return this.options_.inline===!0?t+="-inline":t+="-popup",`vjs-menu-button ${t} ${super.buildCSSClass()}`}controlText(t,n=this.menuButton_.el()){return this.menuButton_.controlText(t,n)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(t){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(t){this.removeClass("vjs-hover"),Ns(dt,"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(t){t.key==="Esc"||t.key==="Tab"?(this.buttonPressed_&&this.unpressButton(),!t.key==="Tab"&&(t.preventDefault(),this.menuButton_.focus())):(t.key==="Up"||t.key==="Down"&&!(this.player_.options_.playerOptions.spatialNavigation&&this.player_.options_.playerOptions.spatialNavigation.enabled))&&(this.buttonPressed_||(t.preventDefault(),this.pressButton()))}handleMenuKeyUp(t){(t.key==="Esc"||t.key==="Tab")&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(t){this.handleSubmenuKeyDown(t)}handleSubmenuKeyDown(t){(t.key==="Esc"||t.key==="Tab")&&(this.buttonPressed_&&this.unpressButton(),!t.key==="Tab"&&(t.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Xs&&fN())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}Qe.registerComponent("MenuButton",Jw);class Zw extends Jw{constructor(t,n){const s=n.tracks;if(super(t,n),this.items.length<=1&&this.hide(),!s)return;const r=Rn(this,this.update);s.addEventListener("removetrack",r),s.addEventListener("addtrack",r),s.addEventListener("labelchange",r),this.player_.on("ready",r),this.player_.on("dispose",function(){s.removeEventListener("removetrack",r),s.removeEventListener("addtrack",r),s.removeEventListener("labelchange",r)})}}Qe.registerComponent("TrackButton",Zw);class Rh extends Fv{constructor(t,n){super(t,n),this.selectable=n.selectable,this.isSelected_=n.selected||!1,this.multiSelectable=n.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(t,n,s){this.nonIconControl=!0;const r=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},n),s),i=Yt("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?r.appendChild(i):r.replaceChild(i,r.querySelector(".vjs-icon-placeholder")),r}handleKeyDown(t){["Tab","Escape","ArrowUp","ArrowLeft","ArrowRight","ArrowDown"].includes(t.key)||super.handleKeyDown(t)}handleClick(t){this.selected(!0)}selected(t){this.selectable&&(t?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))}}Qe.registerComponent("MenuItem",Rh);class Nh extends Rh{constructor(t,n){const s=n.track,r=t.textTracks();n.label=s.label||s.language||"Unknown",n.selected=s.mode==="showing",super(t,n),this.track=s,this.kinds=(n.kinds||[n.kind||this.track.kind]).filter(Boolean);const i=(...o)=>{this.handleTracksChange.apply(this,o)},a=(...o)=>{this.handleSelectedLanguageChange.apply(this,o)};if(t.on(["loadstart","texttrackchange"],i),r.addEventListener("change",i),r.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){t.off(["loadstart","texttrackchange"],i),r.removeEventListener("change",i),r.removeEventListener("selectedlanguagechange",a)}),r.onchange===void 0){let o;this.on(["tap","click"],function(){if(typeof me.Event!="object")try{o=new me.Event("change")}catch{}o||(o=dt.createEvent("Event"),o.initEvent("change",!0,!0)),r.dispatchEvent(o)})}this.handleTracksChange()}handleClick(t){const n=this.track,s=this.player_.textTracks();if(super.handleClick(t),!!s)for(let r=0;r<s.length;r++){const i=s[r];this.kinds.indexOf(i.kind)!==-1&&(i===n?i.mode!=="showing"&&(i.mode="showing"):i.mode!=="disabled"&&(i.mode="disabled"))}}handleTracksChange(t){const n=this.track.mode==="showing";n!==this.isSelected_&&this.selected(n)}handleSelectedLanguageChange(t){if(this.track.mode==="showing"){const n=this.player_.cache_.selectedLanguage;if(n&&n.enabled&&n.language===this.track.language&&n.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}Qe.registerComponent("TextTrackMenuItem",Nh);class nM extends Nh{constructor(t,n){n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,super(t,n)}handleTracksChange(t){const n=this.player().textTracks();let s=!0;for(let r=0,i=n.length;r<i;r++){const a=n[r];if(this.options_.kinds.indexOf(a.kind)>-1&&a.mode==="showing"){s=!1;break}}s!==this.isSelected_&&this.selected(s)}handleSelectedLanguageChange(t){const n=this.player().textTracks();let s=!0;for(let r=0,i=n.length;r<i;r++){const a=n[r];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&a.mode==="showing"){s=!1;break}}s&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}Qe.registerComponent("OffTextTrackMenuItem",nM);class Yc extends Zw{constructor(t,n={}){n.tracks=t.textTracks(),super(t,n)}createItems(t=[],n=Nh){let s;this.label_&&(s=`${this.label_} off`),t.push(new nM(this.player_,{kinds:this.kinds_,kind:this.kind_,label:s})),this.hideThreshold_+=1;const r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let i=0;i<r.length;i++){const a=r[i];if(this.kinds_.indexOf(a.kind)>-1){const o=new n(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});o.addClass(`vjs-${a.kind}-menu-item`),t.push(o)}}return t}}Qe.registerComponent("TextTrackButton",Yc);class sM extends Rh{constructor(t,n){const s=n.track,r=n.cue,i=t.currentTime();n.selectable=!0,n.multiSelectable=!1,n.label=r.text,n.selected=r.startTime<=i&&i<r.endTime,super(t,n),this.track=s,this.cue=r}handleClick(t){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}Qe.registerComponent("ChaptersTrackMenuItem",sM);class eS extends Yc{constructor(t,n,s){super(t,n,s),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(r=>{r.selected(this.track_.activeCues[0]===r.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(t){if(t&&t.track&&t.track.kind!=="chapters")return;const n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),super.update()):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&super.update()}setTrack(t){if(this.track_!==t){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=t,this.track_){this.track_.mode="hidden";const n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const t=this.player_.textTracks()||[];for(let n=t.length-1;n>=0;n--){const s=t[n];if(s.kind===this.kind_)return s}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(jn(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const t=[];if(!this.track_)return t;const n=this.track_.cues;if(!n)return t;for(let s=0,r=n.length;s<r;s++){const i=n[s],a=new sM(this.player_,{track:this.track_,cue:i});t.push(a)}return t}}eS.prototype.kind_="chapters";eS.prototype.controlText_="Chapters";Qe.registerComponent("ChaptersButton",eS);class tS extends Yc{constructor(t,n,s){super(t,n,s),this.setIcon("audio-description");const r=t.textTracks(),i=Rn(this,this.handleTracksChange);r.addEventListener("change",i),this.on("dispose",function(){r.removeEventListener("change",i)})}handleTracksChange(t){const n=this.player().textTracks();let s=!1;for(let r=0,i=n.length;r<i;r++){const a=n[r];if(a.kind!==this.kind_&&a.mode==="showing"){s=!0;break}}s?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}tS.prototype.kind_="descriptions";tS.prototype.controlText_="Descriptions";Qe.registerComponent("DescriptionsButton",tS);class nS extends Yc{constructor(t,n,s){super(t,n,s),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}nS.prototype.kind_="subtitles";nS.prototype.controlText_="Subtitles";Qe.registerComponent("SubtitlesButton",nS);class sS extends Nh{constructor(t,n){n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",super(t,n),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+n.kind+" settings dialog")}handleClick(t){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}Qe.registerComponent("CaptionSettingsMenuItem",sS);class rS extends Yc{constructor(t,n,s){super(t,n,s),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const t=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(t.push(new sS(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(t)}}rS.prototype.kind_="captions";rS.prototype.controlText_="Captions";Qe.registerComponent("CaptionsButton",rS);class rM extends Nh{createEl(t,n,s){const r=super.createEl(t,n,s),i=r.querySelector(".vjs-menu-item-text");return this.options_.track.kind==="captions"&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",r):i.appendChild(Yt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Yt("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),r}}Qe.registerComponent("SubsCapsMenuItem",rM);class iS extends Yc{constructor(t,n={}){super(t,n),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(jn(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let t=[];return!(this.player().tech_&&this.player().tech_.featuresNativeTextTracks)&&this.player().getChild("textTrackSettings")&&(t.push(new sS(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=super.createItems(t,rM),t}}iS.prototype.kinds_=["captions","subtitles"];iS.prototype.controlText_="Subtitles";Qe.registerComponent("SubsCapsButton",iS);class iM extends Rh{constructor(t,n){const s=n.track,r=t.audioTracks();n.label=s.label||s.language||"Unknown",n.selected=s.enabled,super(t,n),this.track=s,this.addClass(`vjs-${s.kind}-menu-item`);const i=(...a)=>{this.handleTracksChange.apply(this,a)};r.addEventListener("change",i),this.on("dispose",()=>{r.removeEventListener("change",i)})}createEl(t,n,s){const r=super.createEl(t,n,s),i=r.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(i.appendChild(Yt("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(Yt("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r}handleClick(t){if(super.handleClick(t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const n=this.player_.audioTracks();for(let s=0;s<n.length;s++){const r=n[s];r!==this.track&&(r.enabled=r===this.track)}}}handleTracksChange(t){this.selected(this.track.enabled)}}Qe.registerComponent("AudioTrackMenuItem",iM);class aM extends Zw{constructor(t,n={}){n.tracks=t.audioTracks(),super(t,n),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(t=[]){this.hideThreshold_=1;const n=this.player_.audioTracks();for(let s=0;s<n.length;s++){const r=n[s];t.push(new iM(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return t}}aM.prototype.controlText_="Audio Track";Qe.registerComponent("AudioTrackButton",aM);class aS extends Rh{constructor(t,n){const s=n.rate,r=parseFloat(s,10);n.label=s,n.selected=r===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,super(t,n),this.label=s,this.rate=r,this.on(t,"ratechange",i=>this.update(i))}handleClick(t){super.handleClick(),this.player().playbackRate(this.rate)}update(t){this.selected(this.player().playbackRate()===this.rate)}}aS.prototype.contentElType="button";Qe.registerComponent("PlaybackRateMenuItem",aS);class oM extends Jw{constructor(t,n){super(t,n),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(t,"loadstart",s=>this.updateVisibility(s)),this.on(t,"ratechange",s=>this.updateLabel(s)),this.on(t,"playbackrateschange",s=>this.handlePlaybackRateschange(s))}createEl(){const t=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=Yt("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const t=this.playbackRates(),n=[];for(let s=t.length-1;s>=0;s--)n.push(new aS(this.player(),{rate:t[s]+"x"}));return n}handlePlaybackRateschange(t){this.update()}playbackRates(){const t=this.player();return t.playbackRates&&t.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(t){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(t){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}oM.prototype.controlText_="Playback Rate";Qe.registerComponent("PlaybackRateMenuButton",oM);class lM extends Qe{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(t="div",n={},s={}){return n.className||(n.className=this.buildCSSClass()),super.createEl(t,n,s)}}Qe.registerComponent("Spacer",lM);class K1e extends lM{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:" "})}}Qe.registerComponent("CustomControlSpacer",K1e);class uM extends Qe{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}uM.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]};Qe.registerComponent("ControlBar",uM);class cM extends Kc{constructor(t,n){super(t,n),this.on(t,"error",s=>{this.open(s)})}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const t=this.player().error();return t?this.localize(t.message):""}}cM.prototype.options_=Object.assign({},Kc.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0});Qe.registerComponent("ErrorDisplay",cM);class dM extends Qe{constructor(t,n={}){super(t,n),this.el_.setAttribute("aria-labelledby",this.selectLabelledbyIds)}createEl(){return this.selectLabelledbyIds=[this.options_.legendId,this.options_.labelId].join(" ").trim(),Yt("select",{id:this.options_.id},{},this.options_.SelectOptions.map(n=>{const s=(this.options_.labelId?this.options_.labelId:`vjs-track-option-${Zr()}`)+"-"+n[1].replace(/\W+/g,""),r=Yt("option",{id:s,value:this.localize(n[0]),textContent:n[1]});return r.setAttribute("aria-labelledby",`${this.selectLabelledbyIds} ${s}`),r}))}}Qe.registerComponent("TextTrackSelect",dM);class kl extends Qe{constructor(t,n={}){super(t,n);const s=Yt("legend",{textContent:this.localize(this.options_.legendText),id:this.options_.legendId});this.el().appendChild(s);const r=this.options_.selects;for(const i of r){const a=this.options_.selectConfigs[i],o=a.className,l=a.id.replace("%s",this.options_.id_);let u=null;const c=`vjs_select_${Zr()}`;if(this.options_.type==="colors"){u=Yt("span",{className:o});const h=Yt("label",{id:l,className:"vjs-label",textContent:a.label});h.setAttribute("for",c),u.appendChild(h)}const f=new dM(t,{SelectOptions:a.options,legendId:this.options_.legendId,id:c,labelId:l});this.addChild(f),this.options_.type==="colors"&&(u.appendChild(f.el()),this.el().appendChild(u))}}createEl(){return Yt("fieldset",{className:this.options_.className})}}Qe.registerComponent("TextTrackFieldset",kl);class fM extends Qe{constructor(t,n={}){super(t,n);const s=this.options_.textTrackComponentid,r=new kl(t,{id_:s,legendId:`captions-text-legend-${s}`,legendText:this.localize("Text"),className:"vjs-fg vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(r);const i=new kl(t,{id_:s,legendId:`captions-background-${s}`,legendText:this.localize("Text Background"),className:"vjs-bg vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(i);const a=new kl(t,{id_:s,legendId:`captions-window-${s}`,legendText:this.localize("Caption Area Background"),className:"vjs-window vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"colors"});this.addChild(a)}createEl(){return Yt("div",{className:"vjs-track-settings-colors"})}}Qe.registerComponent("TextTrackSettingsColors",fM);class hM extends Qe{constructor(t,n={}){super(t,n);const s=this.options_.textTrackComponentid,r=new kl(t,{id_:s,legendId:`captions-font-size-${s}`,legendText:"Font Size",className:"vjs-font-percent vjs-track-setting",selects:this.options_.fieldSets[0],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(r);const i=new kl(t,{id_:s,legendId:`captions-edge-style-${s}`,legendText:this.localize("Text Edge Style"),className:"vjs-edge-style vjs-track-setting",selects:this.options_.fieldSets[1],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(i);const a=new kl(t,{id_:s,legendId:`captions-font-family-${s}`,legendText:this.localize("Font Family"),className:"vjs-font-family vjs-track-setting",selects:this.options_.fieldSets[2],selectConfigs:this.options_.selectConfigs,type:"font"});this.addChild(a)}createEl(){return Yt("div",{className:"vjs-track-settings-font"})}}Qe.registerComponent("TextTrackSettingsFont",hM);class pM extends Qe{constructor(t,n={}){super(t,n);const s=this.localize("restore all settings to the default values"),r=new Qs(t,{controlText:s,className:"vjs-default-button"});r.el().classList.remove("vjs-control","vjs-button"),r.el().textContent=this.localize("Reset"),this.addChild(r);const i=new Qs(t,{controlText:s,className:"vjs-done-button"});i.el().classList.remove("vjs-control","vjs-button"),i.el().textContent=this.localize("Done"),this.addChild(i)}createEl(){return Yt("div",{className:"vjs-track-settings-controls"})}}Qe.registerComponent("TrackSettingsControls",pM);const hy="vjs-text-track-settings",lA=["#000","Black"],uA=["#00F","Blue"],cA=["#0FF","Cyan"],dA=["#0F0","Green"],fA=["#F0F","Magenta"],hA=["#F00","Red"],pA=["#FFF","White"],mA=["#FF0","Yellow"],py=["1","Opaque"],my=["0.5","Semi-Transparent"],gA=["0","Transparent"],lo={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[lA,pA,hA,dA,uA,mA,fA,cA],className:"vjs-bg-color"},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[py,my,gA],className:"vjs-bg-opacity vjs-opacity"},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[pA,lA,hA,dA,uA,mA,fA,cA],className:"vjs-text-color"},edgeStyle:{selector:".vjs-edge-style > select",id:"",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:e=>e==="1.00"?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[py,my],className:"vjs-text-opacity vjs-opacity"},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color",className:"vjs-window-color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Opacity",options:[gA,my,py],className:"vjs-window-opacity vjs-opacity"}};lo.windowColor.options=lo.backgroundColor.options;function mM(e,t){if(t&&(e=t(e)),e&&e!=="none")return e}function G1e(e,t){const n=e.options[e.options.selectedIndex].value;return mM(n,t)}function Y1e(e,t,n){if(t){for(let s=0;s<e.options.length;s++)if(mM(e.options[s].value,n)===t){e.selectedIndex=s;break}}}class X1e extends Kc{constructor(t,n){n.temporary=!1,super(t,n),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.renderModalComponents(t),this.endDialog=Yt("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),n.persistTextTrackSettings===void 0&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.bindFunctionsToSelectsAndButtons(),this.options_.persistTextTrackSettings&&this.restoreSettings()}renderModalComponents(t){const n=new fM(t,{textTrackComponentid:this.id_,selectConfigs:lo,fieldSets:[["color","textOpacity"],["backgroundColor","backgroundOpacity"],["windowColor","windowOpacity"]]});this.addChild(n);const s=new hM(t,{textTrackComponentid:this.id_,selectConfigs:lo,fieldSets:[["fontPercent"],["edgeStyle"],["fontFamily"]]});this.addChild(s);const r=new pM(t);this.addChild(r)}bindFunctionsToSelectsAndButtons(){this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),Bu(lo,t=>{this.on(this.$(t.selector),"change",this.updateDisplay)})}dispose(){this.endDialog=null,super.dispose()}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return iN(lo,(t,n,s)=>{const r=G1e(this.$(n.selector),n.parser);return r!==void 0&&(t[s]=r),t},{})}setValues(t){Bu(lo,(n,s)=>{Y1e(this.$(n.selector),t[s],n.parser)})}setDefaults(){Bu(lo,t=>{const n=t.hasOwnProperty("default")?t.default:0;this.$(t.selector).selectedIndex=n})}restoreSettings(){let t;try{t=JSON.parse(me.localStorage.getItem(hy))}catch(n){dn.warn(n)}t&&this.setValues(t)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const t=this.getValues();try{Object.keys(t).length?me.localStorage.setItem(hy,JSON.stringify(t)):me.localStorage.removeItem(hy)}catch(n){dn.warn(n)}}updateDisplay(){const t=this.player_.getChild("textTrackDisplay");t&&t.updateDisplay()}handleLanguagechange(){this.fill(),this.renderModalComponents(this.player_),this.bindFunctionsToSelectsAndButtons()}}Qe.registerComponent("TextTrackSettings",X1e);class Q1e extends Qe{constructor(t,n){let s=n.ResizeObserver||me.ResizeObserver;n.ResizeObserver===null&&(s=!1);const r=Pn({createEl:!s,reportTouchActivity:!1},n);super(t,r),this.ResizeObserver=n.ResizeObserver||me.ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=AN(()=>{this.resizeHandler()},100,!1,this),s?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(t.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const i=this.debouncedHandler_;let a=this.unloadListener_=function(){Ns(this,"resize",i),Ns(this,"unload",a),a=null};Or(this.el_.contentWindow,"unload",a),Or(this.el_.contentWindow,"resize",i)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){!this.player_||!this.player_.trigger||this.player_.trigger("playerresize")}dispose(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,super.dispose()}}Qe.registerComponent("ResizeManager",Q1e);const J1e={trackingThreshold:20,liveTolerance:15};class Z1e extends Qe{constructor(t,n){const s=Pn(J1e,n,{createEl:!1});super(t,s),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=r=>this.handlePlay(r),this.handleFirstTimeupdate_=r=>this.handleFirstTimeupdate(r),this.handleSeeked_=r=>this.handleSeeked(r),this.seekToLiveEdge_=r=>this.seekToLiveEdge(r),this.reset_(),this.on(this.player_,"durationchange",r=>this.handleDurationchange(r)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const t=this.player_.seekable();if(!t||!t.length)return;const n=Number(me.performance.now().toFixed(4)),s=this.lastTime_===-1?0:(n-this.lastTime_)/1e3;this.lastTime_=n,this.pastSeekEnd_=this.pastSeekEnd()+s;const r=this.liveCurrentTime(),i=this.player_.currentTime();let a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-i)>this.options_.liveTolerance;(!this.timeupdateSeen_||r===1/0)&&(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,ei),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const t=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&t>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const t=this.player_.seekable(),n=[];let s=t?t.length:0;for(;s--;)n.push(t.end(s));return n.length?n.sort()[n.length-1]:1/0}seekableStart(){const t=this.player_.seekable(),n=[];let s=t?t.length:0;for(;s--;)n.push(t.start(s));return n.length?n.sort()[0]:0}liveWindow(){const t=this.liveCurrentTime();return t===1/0?0:t-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const t=this.seekableEnd();return this.lastSeekEnd_!==-1&&t!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=t,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return typeof this.trackingInterval_=="number"}seekToLiveEdge(){this.seekedBehindLive_=!1,!this.atLiveEdge()&&(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}Qe.registerComponent("LiveTracker",Z1e);class e2e extends Qe{constructor(t,n){super(t,n),this.on("statechanged",s=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:Yt("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${Zr()}`}),description:Yt("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${Zr()}`})},Yt("div",{className:"vjs-title-bar"},{},aN(this.els))}updateDom_(){const t=this.player_.tech_,n=t&&t.el_,s={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(r=>{const i=this.state[r],a=this.els[r],o=s[r];Nv(a),i&&jo(a,i),n&&(n.removeAttribute(o),i&&n.setAttribute(o,a.id))}),this.state.title||this.state.description?this.show():this.hide()}update(t){this.setState(t)}dispose(){const t=this.player_.tech_,n=t&&t.el_;n&&(n.removeAttribute("aria-labelledby"),n.removeAttribute("aria-describedby")),super.dispose(),this.els=null}}Qe.registerComponent("TitleBar",e2e);const S_=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const n=e.$$("source"),s=[];let r="";if(!n.length)return!1;for(let i=0;i<n.length;i++){const a=n[i].src;a&&s.indexOf(a)===-1&&s.push(a)}return s.length?(s.length===1&&(r=s[0]),e.triggerSourceset(r),!0):!1},t2e=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=dt.createElement(this.nodeName.toLowerCase());t.innerHTML=e;const n=dt.createDocumentFragment();for(;t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",me.Element.prototype.appendChild.call(this,n),this.innerHTML}}),gM=(e,t)=>{let n={};for(let s=0;s<e.length&&(n=Object.getOwnPropertyDescriptor(e[s],t),!(n&&n.set&&n.get));s++);return n.enumerable=!0,n.configurable=!0,n},n2e=e=>gM([e.el(),me.HTMLMediaElement.prototype,me.Element.prototype,t2e],"innerHTML"),vA=function(e){const t=e.el();if(t.resetSourceWatch_)return;const n={},s=n2e(e),r=i=>(...a)=>{const o=i.apply(t,a);return S_(e),o};["append","appendChild","insertAdjacentHTML"].forEach(i=>{t[i]&&(n[i]=t[i],t[i]=r(n[i]))}),Object.defineProperty(t,"innerHTML",Pn(s,{set:r(s.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(n).forEach(i=>{t[i]=n[i]}),Object.defineProperty(t,"innerHTML",s)},e.one("sourceset",t.resetSourceWatch_)},s2e=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?BN(me.Element.prototype.getAttribute.call(this,"src")):""},set(e){return me.Element.prototype.setAttribute.call(this,"src",e),e}}),r2e=e=>gM([e.el(),me.HTMLMediaElement.prototype,s2e],"src"),i2e=function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const n=r2e(e),s=t.setAttribute,r=t.load;Object.defineProperty(t,"src",Pn(n,{set:i=>{const a=n.set.call(t,i);return e.triggerSourceset(t.src),a}})),t.setAttribute=(i,a)=>{const o=s.call(t,i,a);return/src/i.test(i)&&e.triggerSourceset(t.src),o},t.load=()=>{const i=r.call(t);return S_(e)||(e.triggerSourceset(""),vA(e)),i},t.currentSrc?e.triggerSourceset(t.currentSrc):S_(e)||vA(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=r,t.setAttribute=s,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}};class kt extends Zt{constructor(t,n){super(t,n);const s=t.source;let r=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&this.el_.tagName==="VIDEO",s&&(this.el_.currentSrc!==s.src||t.tag&&t.tag.initNetworkState_===3)?this.setSource(s):this.handleLateInit_(this.el_),t.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const i=this.el_.childNodes;let a=i.length;const o=[];for(;a--;){const l=i[a];l.nodeName.toLowerCase()==="track"&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(l),this.remoteTextTracks().addTrack(l.track),this.textTracks().addTrack(l.track),!r&&!this.el_.hasAttribute("crossorigin")&&Bv(l.src)&&(r=!0)):o.push(l))}for(let l=0;l<o.length;l++)this.el_.removeChild(o[l])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&r&&dn.warn(`Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.
|
||
This may prevent text tracks from loading.`),this.restoreMetadataTracksInIOSNativePlayer_(),(Qf||Iv)&&t.nativeControlsForTouch===!0&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),kt.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){i2e(this)}restoreMetadataTracksInIOSNativePlayer_(){const t=this.textTracks();let n;const s=()=>{n=[];for(let i=0;i<t.length;i++){const a=t[i];a.kind==="metadata"&&n.push({track:a,storedMode:a.mode})}};s(),t.addEventListener("change",s),this.on("dispose",()=>t.removeEventListener("change",s));const r=()=>{for(let i=0;i<n.length;i++){const a=n[i];a.track.mode==="disabled"&&a.track.mode!==a.storedMode&&(a.track.mode=a.storedMode)}t.removeEventListener("change",r)};this.on("webkitbeginfullscreen",()=>{t.removeEventListener("change",s),t.removeEventListener("change",r),t.addEventListener("change",r)}),this.on("webkitendfullscreen",()=>{t.removeEventListener("change",s),t.addEventListener("change",s),t.removeEventListener("change",r)})}overrideNative_(t,n){if(n!==this[`featuresNative${t}Tracks`])return;const s=t.toLowerCase();this[`${s}TracksListeners_`]&&Object.keys(this[`${s}TracksListeners_`]).forEach(r=>{this.el()[`${s}Tracks`].removeEventListener(r,this[`${s}TracksListeners_`][r])}),this[`featuresNative${t}Tracks`]=!n,this[`${s}TracksListeners_`]=null,this.proxyNativeTracksForType_(s)}overrideNativeAudioTracks(t){this.overrideNative_("Audio",t)}overrideNativeVideoTracks(t){this.overrideNative_("Video",t)}proxyNativeTracksForType_(t){const n=Wr[t],s=this.el()[n.getterName],r=this[n.getterName]();if(!this[`featuresNative${n.capitalName}Tracks`]||!s||!s.addEventListener)return;const i={change:o=>{const l={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(l),t==="text"&&this[Tc.remoteText.getterName]().trigger(l)},addtrack(o){r.addTrack(o.track)},removetrack(o){r.removeTrack(o.track)}},a=function(){const o=[];for(let l=0;l<r.length;l++){let u=!1;for(let c=0;c<s.length;c++)if(s[c]===r[l]){u=!0;break}u||o.push(r[l])}for(;o.length;)r.removeTrack(o.shift())};this[n.getterName+"Listeners_"]=i,Object.keys(i).forEach(o=>{const l=i[o];s.addEventListener(o,l),this.on("dispose",u=>s.removeEventListener(o,l))}),this.on("loadstart",a),this.on("dispose",o=>this.off("loadstart",a))}proxyNativeTracks_(){Wr.names.forEach(t=>{this.proxyNativeTracksForType_(t)})}createEl(){let t=this.options_.tag;if(!t||!(this.options_.playerElIngest||this.movingMediaElementInDOM)){if(t){const s=t.cloneNode(!0);t.parentNode&&t.parentNode.insertBefore(s,t),kt.disposeMediaElement(t),t=s}else{t=dt.createElement("video");const s=this.options_.tag&&oo(this.options_.tag),r=Pn({},s);(!Qf||this.options_.nativeControlsForTouch!==!0)&&delete r.controls,mN(t,Object.assign(r,{id:this.options_.techId,class:"vjs-tech"}))}t.playerId=this.options_.playerId}typeof this.options_.preload<"u"&&bc(t,"preload",this.options_.preload),this.options_.disablePictureInPicture!==void 0&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);const n=["loop","muted","playsinline","autoplay"];for(let s=0;s<n.length;s++){const r=n[s],i=this.options_[r];typeof i<"u"&&(i?bc(t,r,r):Pv(t,r),t[r]=i)}return t}handleLateInit_(t){if(t.networkState===0||t.networkState===3)return;if(t.readyState===0){let s=!1;const r=function(){s=!0};this.on("loadstart",r);const i=function(){s||this.trigger("loadstart")};this.on("loadedmetadata",i),this.ready(function(){this.off("loadstart",r),this.off("loadedmetadata",i),s||this.trigger("loadstart")});return}const n=["loadstart"];n.push("loadedmetadata"),t.readyState>=2&&n.push("loadeddata"),t.readyState>=3&&n.push("canplay"),t.readyState>=4&&n.push("canplaythrough"),this.ready(function(){n.forEach(function(s){this.trigger(s)},this)})}setScrubbing(t){this.isScrubbing_=t}scrubbing(){return this.isScrubbing_}setCurrentTime(t){try{this.isScrubbing_&&this.el_.fastSeek&&Dv?this.el_.fastSeek(t):this.el_.currentTime=t}catch(n){dn(n,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&ea&&ta&&this.el_.currentTime===0){const t=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",t))};return this.on("timeupdate",t),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&this.el_.webkitPresentationMode!=="picture-in-picture"&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",()=>{this.off("webkitbeginfullscreen",n),this.off("webkitendfullscreen",t)})}supportsFullScreen(){return typeof this.el_.webkitEnterFullScreen=="function"}enterFullScreen(){const t=this.el_;if(t.paused&&t.networkState<=t.HAVE_METADATA)Fi(this.el_.play()),this.setTimeout(function(){t.pause();try{t.webkitEnterFullScreen()}catch(n){this.trigger("fullscreenerror",n)}},0);else try{t.webkitEnterFullScreen()}catch(n){this.trigger("fullscreenerror",n)}}exitFullScreen(){if(!this.el_.webkitDisplayingFullscreen){this.trigger("fullscreenerror",new Error("The video is not fullscreen"));return}this.el_.webkitExitFullScreen()}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(t){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(t):super.requestVideoFrameCallback(t)}cancelVideoFrameCallback(t){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(t):super.cancelVideoFrameCallback(t)}src(t){if(t===void 0)return this.el_.src;this.setSrc(t)}reset(){kt.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(t){this.el_.controls=!!t}addTextTrack(t,n,s){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,s):super.addTextTrack(t,n,s)}createRemoteTextTrack(t){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(t);const n=dt.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n}addRemoteTextTrack(t,n){const s=super.addRemoteTextTrack(t,n);return this.featuresNativeTextTracks&&this.el().appendChild(s),s}removeRemoteTextTrack(t){if(super.removeRemoteTextTrack(t),this.featuresNativeTextTracks){const n=this.$$("track");let s=n.length;for(;s--;)(t===n[s]||t===n[s].track)&&this.el().removeChild(n[s])}}getVideoPlaybackQuality(){if(typeof this.el().getVideoPlaybackQuality=="function")return this.el().getVideoPlaybackQuality();const t={};return typeof this.el().webkitDroppedFrameCount<"u"&&typeof this.el().webkitDecodedFrameCount<"u"&&(t.droppedVideoFrames=this.el().webkitDroppedFrameCount,t.totalVideoFrames=this.el().webkitDecodedFrameCount),me.performance&&(t.creationTime=me.performance.now()),t}}xv(kt,"TEST_VID",function(){if(!jc())return;const e=dt.createElement("video"),t=dt.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e});kt.isSupported=function(){try{kt.TEST_VID.volume=.5}catch{return!1}return!!(kt.TEST_VID&&kt.TEST_VID.canPlayType)};kt.canPlayType=function(e){return kt.TEST_VID.canPlayType(e)};kt.canPlaySource=function(e,t){return kt.canPlayType(e.type)};kt.canControlVolume=function(){try{const e=kt.TEST_VID.volume;kt.TEST_VID.volume=e/2+.1;const t=e!==kt.TEST_VID.volume;return t&&Xs?(me.setTimeout(()=>{kt&&kt.prototype&&(kt.prototype.featuresVolumeControl=e!==kt.TEST_VID.volume)}),!1):t}catch{return!1}};kt.canMuteVolume=function(){try{const e=kt.TEST_VID.muted;return kt.TEST_VID.muted=!e,kt.TEST_VID.muted?bc(kt.TEST_VID,"muted","muted"):Pv(kt.TEST_VID,"muted","muted"),e!==kt.TEST_VID.muted}catch{return!1}};kt.canControlPlaybackRate=function(){if(ea&&ta&&kv<58)return!1;try{const e=kt.TEST_VID.playbackRate;return kt.TEST_VID.playbackRate=e/2+.1,e!==kt.TEST_VID.playbackRate}catch{return!1}};kt.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(dt.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(dt.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(dt.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(dt.createElement("audio"),"innerHTML",{get:e,set:e})}catch{return!1}return!0};kt.supportsNativeTextTracks=function(){return Dv||Xs&&ta};kt.supportsNativeVideoTracks=function(){return!!(kt.TEST_VID&&kt.TEST_VID.videoTracks)};kt.supportsNativeAudioTracks=function(){return!!(kt.TEST_VID&&kt.TEST_VID.audioTracks)};kt.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"];[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function([e,t]){xv(kt.prototype,e,()=>kt[t](),!0)});kt.prototype.featuresVolumeControl=kt.canControlVolume();kt.prototype.movingMediaElementInDOM=!Xs;kt.prototype.featuresFullscreenResize=!0;kt.prototype.featuresProgressEvents=!0;kt.prototype.featuresTimeupdateEvents=!0;kt.prototype.featuresVideoFrameCallback=!!(kt.TEST_VID&&kt.TEST_VID.requestVideoFrameCallback);kt.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch{}}()}};kt.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let n=t.length;for(;n--;)e.removeChild(t[n]);e.removeAttribute("src"),typeof e.load=="function"&&function(){try{e.load()}catch{}}()};["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){kt.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}});["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){kt.prototype["set"+jn(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}});["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){kt.prototype[e]=function(){return this.el_[e]}});["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){kt.prototype["set"+jn(e)]=function(t){this.el_[e]=t}});["pause","load","play"].forEach(function(e){kt.prototype[e]=function(){return this.el_[e]()}});Zt.withSourceHandlers(kt);kt.nativeSourceHandler={};kt.nativeSourceHandler.canPlayType=function(e){try{return kt.TEST_VID.canPlayType(e)}catch{return""}};kt.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return kt.nativeSourceHandler.canPlayType(e.type);if(e.src){const n=jw(e.src);return kt.nativeSourceHandler.canPlayType(`video/${n}`)}return""};kt.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)};kt.nativeSourceHandler.dispose=function(){};kt.registerSourceHandler(kt.nativeSourceHandler);Zt.registerTech("Html5",kt);const vM=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],gy={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},T_=["tiny","xsmall","small","medium","large","xlarge","huge"],dm={};T_.forEach(e=>{const t=e.charAt(0)==="x"?`x-${e.substring(1)}`:e;dm[e]=`vjs-layout-${t}`});const a2e={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class Bn extends Qe{constructor(t,n,s){if(t.id=t.id||n.id||`vjs_video_${Zr()}`,n=Object.assign(Bn.getTagSettings(t),n),n.initChildren=!1,n.createEl=!1,n.evented=!1,n.reportTouchActivity=!1,!n.language){const a=t.closest("[lang]");a&&(n.language=a.getAttribute("lang"))}if(super(null,n,s),this.boundDocumentFullscreenChange_=a=>this.documentFullscreenChange_(a),this.boundFullWindowOnEscKey_=a=>this.fullWindowOnEscKey(a),this.boundUpdateStyleEl_=a=>this.updateStyleEl_(a),this.boundApplyInitTime_=a=>this.applyInitTime_(a),this.boundUpdateCurrentBreakpoint_=a=>this.updateCurrentBreakpoint_(a),this.boundHandleTechClick_=a=>this.handleTechClick_(a),this.boundHandleTechDoubleClick_=a=>this.handleTechDoubleClick_(a),this.boundHandleTechTouchStart_=a=>this.handleTechTouchStart_(a),this.boundHandleTechTouchMove_=a=>this.handleTechTouchMove_(a),this.boundHandleTechTouchEnd_=a=>this.handleTechTouchEnd_(a),this.boundHandleTechTap_=a=>this.handleTechTap_(a),this.boundUpdatePlayerHeightOnAudioOnlyMode_=a=>this.updatePlayerHeightOnAudioOnlyMode_(a),this.isFullscreen_=!1,this.log=sN(this.id_),this.fsApi_=Zm,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={controlBarHeight:null,playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(this.tag=t,this.tagAttributes=t&&oo(t),this.language(this.options_.language),n.languages){const a={};Object.getOwnPropertyNames(n.languages).forEach(function(o){a[o.toLowerCase()]=n.languages[o]}),this.languages_=a}else this.languages_=Bn.prototype.options_.languages;this.resetCache_(),this.poster_=n.poster||"",this.controls_=!!n.controls,t.controls=!1,t.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],t.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),n.plugins&&Object.keys(n.plugins).forEach(a=>{if(typeof this[a]!="function")throw new Error(`plugin "${a}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),Vw(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(Or(dt,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const r=Pn(this.options_);if(n.plugins&&Object.keys(n.plugins).forEach(a=>{this[a](n.plugins[a])}),n.debug&&this.debug(!0),this.options_.playerOptions=r,this.middleware_=[],this.playbackRates(n.playbackRates),n.experimentalSvgIcons){const o=new me.DOMParser().parseFromString(O1e,"image/svg+xml");if(o.querySelector("parsererror"))dn.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const u=o.documentElement;u.style.display="none",this.el_.appendChild(u),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio(t.nodeName.toLowerCase()==="audio"),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),n.spatialNavigation&&n.spatialNavigation.enabled&&(this.spatialNavigation=new P1e(this),this.addClass("vjs-spatial-navigation-enabled")),Qf&&this.addClass("vjs-touch-enabled"),Xs||this.addClass("vjs-workinghover"),Bn.players[this.id_]=this;const i=d_.split(".")[0];this.addClass(`vjs-v${i}`),this.userActive(!0),this.reportUserActivity(),this.one("play",a=>this.listenForUserActivity_(a)),this.on("keydown",a=>this.handleKeyDown(a)),this.on("languagechange",a=>this.handleLanguagechange(a)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),Ns(dt,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ns(dt,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),Bn.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),k1e(this),js.names.forEach(t=>{const n=js[t],s=this[n.getterName]();s&&s.off&&s.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let t=this.tag,n,s=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const r=this.tag.tagName.toLowerCase()==="video-js";s?n=this.el_=t.parentNode:r||(n=this.el_=super.createEl("div"));const i=oo(t);if(r){for(n=this.el_=t,t=this.tag=dt.createElement("video");n.children.length;)t.appendChild(n.firstChild);af(n,"video-js")||El(n,"video-js"),n.appendChild(t),s=this.playerElIngest_=n,Object.keys(n).forEach(l=>{try{t[l]=n[l]}catch{}})}t.setAttribute("tabindex","-1"),i.tabindex="-1",ta&&Av&&(t.setAttribute("role","application"),i.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in i&&delete i.width,"height"in i&&delete i.height,Object.getOwnPropertyNames(i).forEach(function(l){r&&l==="class"||n.setAttribute(l,i[l]),r&&t.setAttribute(l,i[l])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=n.player=this,this.addClass("vjs-paused");const a=["IS_SMART_TV","IS_TIZEN","IS_WEBOS","IS_ANDROID","IS_IPAD","IS_IPHONE","IS_CHROMECAST_RECEIVER"].filter(l=>dN[l]).map(l=>"vjs-device-"+l.substring(3).toLowerCase().replace(/\_/g,"-"));if(this.addClass(...a),me.VIDEOJS_NO_DYNAMIC_STYLE!==!0){this.styleEl_=xN("vjs-styles-dimensions");const l=Mo(".vjs-styles-defaults"),u=Mo("head");u.insertBefore(this.styleEl_,l?l.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);const o=t.getElementsByTagName("a");for(let l=0;l<o.length;l++){const u=o.item(l);El(u,"vjs-hidden"),u.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!s&&t.parentNode.insertBefore(n,t),p_(t,n),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=n,n}crossOrigin(t){if(typeof t>"u")return this.techGet_("crossOrigin");if(t!==null&&t!=="anonymous"&&t!=="use-credentials"){dn.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${t}"`);return}this.techCall_("setCrossOrigin",t),this.posterImage&&this.posterImage.crossOrigin(t)}width(t){return this.dimension("width",t)}height(t){return this.dimension("height",t)}dimension(t,n){const s=t+"_";if(n===void 0)return this[s]||0;if(n===""||n==="auto"){this[s]=void 0,this.updateStyleEl_();return}const r=parseFloat(n);if(isNaN(r)){dn.error(`Improper value "${n}" supplied for for ${t}`);return}this[s]=r,this.updateStyleEl_()}fluid(t){if(t===void 0)return!!this.fluid_;this.fluid_=!!t,Ca(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),t?(this.addClass("vjs-fluid"),this.fill(!1),s1e(this,()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)})):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(t){if(t===void 0)return!!this.fill_;this.fill_=!!t,t?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(t){if(t===void 0)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(t))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=t,this.fluid(!0),this.updateStyleEl_()}updateStyleEl_(){if(me.VIDEOJS_NO_DYNAMIC_STYLE===!0){const o=typeof this.width_=="number"?this.width_:this.options_.width,l=typeof this.height_=="number"?this.height_:this.options_.height,u=this.tech_&&this.tech_.el();u&&(o>=0&&(u.width=o),l>=0&&(u.height=l));return}let t,n,s,r;this.aspectRatio_!==void 0&&this.aspectRatio_!=="auto"?s=this.aspectRatio_:this.videoWidth()>0?s=this.videoWidth()+":"+this.videoHeight():s="16:9";const i=s.split(":"),a=i[1]/i[0];this.width_!==void 0?t=this.width_:this.height_!==void 0?t=this.height_/a:t=this.videoWidth()||300,this.height_!==void 0?n=this.height_:n=t*a,/^[^a-zA-Z]/.test(this.id())?r="dimensions-"+this.id():r=this.id()+"-dimensions",this.addClass(r),kN(this.styleEl_,`
|
||
.${r} {
|
||
width: ${t}px;
|
||
height: ${n}px;
|
||
}
|
||
|
||
.${r}.vjs-fluid:not(.vjs-audio-only-mode) {
|
||
padding-top: ${a*100}%;
|
||
}
|
||
`)}loadTech_(t,n){this.tech_&&this.unloadTech_();const s=jn(t),r=t.charAt(0).toLowerCase()+t.slice(1);s!=="Html5"&&this.tag&&(Zt.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=s,this.isReady_=!1;let i=this.autoplay();(typeof this.autoplay()=="string"||this.autoplay()===!0&&this.options_.normalizeAutoplay)&&(i=!1);const a={source:n,autoplay:i,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${r}_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};js.names.forEach(l=>{const u=js[l];a[u.getterName]=this[u.privateName]}),Object.assign(a,this.options_[s]),Object.assign(a,this.options_[r]),Object.assign(a,this.options_[t.toLowerCase()]),this.tag&&(a.tag=this.tag),n&&n.src===this.cache_.src&&this.cache_.currentTime>0&&(a.startTime=this.cache_.currentTime);const o=Zt.getTech(t);if(!o)throw new Error(`No Tech named '${s}' exists! '${s}' should be registered using videojs.registerTech()'`);this.tech_=new o(a),this.tech_.ready(Rn(this,this.handleTechReady_),!0),Xk.jsonToTextTracks(this.textTracksJson_||[],this.tech_),vM.forEach(l=>{this.on(this.tech_,l,u=>this[`handleTech${jn(l)}_`](u))}),Object.keys(gy).forEach(l=>{this.on(this.tech_,l,u=>{if(this.tech_.playbackRate()===0&&this.tech_.seeking()){this.queuedCallbacks_.push({callback:this[`handleTech${gy[l]}_`].bind(this),event:u});return}this[`handleTech${gy[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()&&(s!=="Html5"||!this.tag)&&p_(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){js.names.forEach(t=>{const n=js[t];this[n.privateName]=this[n.getterName]()}),this.textTracksJson_=Xk.textTracksToJson(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(t){return t===void 0&&dn.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":d_}}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_(t){if(!this.tech_||typeof t!="string")return;const n=()=>{const r=this.muted();this.muted(!0);const i=()=>{this.muted(r)};this.playTerminatedQueue_.push(i);const a=this.play();if(lf(a))return a.catch(o=>{throw i(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${o||""}`)})};let s;if(t==="any"&&!this.muted()?(s=this.play(),lf(s)&&(s=s.catch(n))):t==="muted"&&!this.muted()?s=n():s=this.play(),!!lf(s))return s.then(()=>{this.trigger({type:"autoplay-success",autoplay:t})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:t})})}updateSourceCaches_(t=""){let n=t,s="";typeof n!="string"&&(n=t.src,s=t.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],n&&!s&&(s=D1e(this,n)),this.cache_.source=Pn({},t,{src:n,type:s});const r=this.cache_.sources.filter(l=>l.src&&l.src===n),i=[],a=this.$$("source"),o=[];for(let l=0;l<a.length;l++){const u=oo(a[l]);i.push(u),u.src&&u.src===n&&o.push(u.src)}o.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=n}handleTechSourceset_(t){if(!this.changingSrc_){let n=i=>this.updateSourceCaches_(i);const s=this.currentSource().src,r=t.src;s&&!/^blob:/.test(s)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==s)&&(n=()=>{}),n(r),t.src||this.tech_.any(["sourceset","loadstart"],i=>{if(i.type==="sourceset")return;const a=this.techGet_("currentSrc");this.lastSource_.tech=a,this.updateSourceCaches_(a)})}this.lastSource_={player:this.currentSource().src,tech:t.src},this.trigger({src:t.src,type:"sourceset"})}hasStarted(t){if(t===void 0)return this.hasStarted_;t!==this.hasStarted_&&(this.hasStarted_=t,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(t=>t.callback(t.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const t=this.currentTime(),n=()=>{t!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",n))};this.on("timeupdate",n)}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("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(t){this.controls_&&(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.click===void 0||this.options_.userActions.click!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.click=="function"?this.options_.userActions.click.call(this,t):this.paused()?Fi(this.play()):this.pause())}handleTechDoubleClick_(t){if(!this.controls_)return;Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),s=>s.contains(t.target))||(this.options_===void 0||this.options_.userActions===void 0||this.options_.userActions.doubleClick===void 0||this.options_.userActions.doubleClick!==!1)&&(this.options_!==void 0&&this.options_.userActions!==void 0&&typeof this.options_.userActions.doubleClick=="function"?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen())}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(t){t.cancelable&&t.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(t){const n=t.target.player;if(n&&n!==this)return;const s=this.el();let r=dt[this.fsApi_.fullscreenElement]===s;!r&&s.matches&&(r=s.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}handleTechFullscreenChange_(t,n){n&&(n.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(n.isFullscreen))}handleTechFullscreenError_(t,n){this.trigger("fullscreenerror",n)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(t){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(t){this.isInPictureInPicture(!1)}handleTechError_(){const t=this.tech_.error();t&&this.error(t)}handleTechTextData_(){let t=null;arguments.length>1&&(t=arguments[1]),this.trigger("textdata",t)}getCache(){return this.cache_}resetCache_(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}}techCall_(t,n){this.ready(function(){if(t in E1e)return T1e(this.middleware_,this.tech_,t,n);if(t in tA)return eA(this.middleware_,this.tech_,t,n);try{this.tech_&&this.tech_[t](n)}catch(s){throw dn(s),s}},!0)}techGet_(t){if(!(!this.tech_||!this.tech_.isReady_)){if(t in C1e)return S1e(this.middleware_,this.tech_,t);if(t in tA)return eA(this.middleware_,this.tech_,t);try{return this.tech_[t]()}catch(n){throw this.tech_[t]===void 0?(dn(`Video.js: ${t} method not defined for ${this.techName_} playback technology.`,n),n):n.name==="TypeError"?(dn(`Video.js: ${t} unavailable on ${this.techName_} playback technology element.`,n),this.tech_.isReady_=!1,n):(dn(n),n)}}}play(){return new Promise(t=>{this.play_(t)})}play_(t=Fi){this.playCallbacks_.push(t);const n=!!(!this.changingSrc_&&(this.src()||this.currentSrc())),s=!!(Dv||Xs);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n){this.waitToPlay_=a=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),!n&&s&&this.load();return}const r=this.techGet_("play");s&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),r===null?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)}runPlayTerminatedQueue_(){const t=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],t.forEach(function(n){n()})}runPlayCallbacks_(t){const n=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],n.forEach(function(s){s(t)})}pause(){this.techCall_("pause")}paused(){return this.techGet_("paused")!==!1}played(){return this.techGet_("played")||bi(0,0)}scrubbing(t){if(typeof t>"u")return this.scrubbing_;this.scrubbing_=!!t,this.techCall_("setScrubbing",this.scrubbing_),t?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")}currentTime(t){if(t===void 0)return this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime;if(t<0&&(t=0),!this.isReady_||this.changingSrc_||!this.tech_||!this.tech_.isReady_){this.cache_.initTime=t,this.off("canplay",this.boundApplyInitTime_),this.one("canplay",this.boundApplyInitTime_);return}this.techCall_("setCurrentTime",t),this.cache_.initTime=0,isFinite(t)&&(this.cache_.currentTime=Number(t))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(t){if(t===void 0)return this.cache_.duration!==void 0?this.cache_.duration:NaN;t=parseFloat(t),t<0&&(t=1/0),t!==this.cache_.duration&&(this.cache_.duration=t,t===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(t)||this.trigger("durationchange"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let t=this.techGet_("buffered");return(!t||!t.length)&&(t=bi(0,0)),t}seekable(){let t=this.techGet_("seekable");return(!t||!t.length)&&(t=bi(0,0)),t}seeking(){return this.techGet_("seeking")}ended(){return this.techGet_("ended")}networkState(){return this.techGet_("networkState")}readyState(){return this.techGet_("readyState")}bufferedPercent(){return $N(this.buffered(),this.duration())}bufferedEnd(){const t=this.buffered(),n=this.duration();let s=t.end(t.length-1);return s>n&&(s=n),s}volume(t){let n;if(t!==void 0){n=Math.max(0,Math.min(1,t)),this.cache_.volume=n,this.techCall_("setVolume",n),n>0&&this.lastVolume_(n);return}return n=parseFloat(this.techGet_("volume")),isNaN(n)?1:n}muted(t){if(t!==void 0){this.techCall_("setMuted",t);return}return this.techGet_("muted")||!1}defaultMuted(t){return t!==void 0&&this.techCall_("setDefaultMuted",t),this.techGet_("defaultMuted")||!1}lastVolume_(t){if(t!==void 0&&t!==0){this.cache_.lastVolume=t;return}return this.cache_.lastVolume}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(t){if(t!==void 0){const n=this.isFullscreen_;this.isFullscreen_=!!t,this.isFullscreen_!==n&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_();return}return this.isFullscreen_}requestFullscreen(t){this.isInPictureInPicture()&&this.exitPictureInPicture();const n=this;return new Promise((s,r)=>{function i(){n.off("fullscreenerror",o),n.off("fullscreenchange",a)}function a(){i(),s()}function o(u,c){i(),r(c)}n.one("fullscreenchange",a),n.one("fullscreenerror",o);const l=n.requestFullscreenHelper_(t);l&&(l.then(i,i),l.then(s,r))})}requestFullscreenHelper_(t){let n;if(this.fsApi_.prefixed||(n=this.options_.fullscreen&&this.options_.fullscreen.options||{},t!==void 0&&(n=t)),this.fsApi_.requestFullscreen){const s=this.el_[this.fsApi_.requestFullscreen](n);return s&&s.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),s}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const t=this;return new Promise((n,s)=>{function r(){t.off("fullscreenerror",a),t.off("fullscreenchange",i)}function i(){r(),n()}function a(l,u){r(),s(u)}t.one("fullscreenchange",i),t.one("fullscreenerror",a);const o=t.exitFullscreenHelper_();o&&(o.then(r,r),o.then(n,s))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const t=dt[this.fsApi_.exitFullscreen]();return t&&Fi(t.then(()=>this.isFullscreen(!1))),t}else this.tech_.supportsFullScreen()&&!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=dt.documentElement.style.overflow,Or(dt,"keydown",this.boundFullWindowOnEscKey_),dt.documentElement.style.overflow="hidden",El(dt.body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(t){t.key==="Escape"&&this.isFullscreen()===!0&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,Ns(dt,"keydown",this.boundFullWindowOnEscKey_),dt.documentElement.style.overflow=this.docOrigOverflow,Ov(dt.body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(t){if(t===void 0)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",t),this.options_.disablePictureInPicture=t,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(t){if(t!==void 0){this.isInPictureInPicture_=!!t,this.togglePictureInPictureClass_();return}return!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&me.documentPictureInPicture){const t=dt.createElement(this.el().tagName);return t.classList=this.el().classList,t.classList.add("vjs-pip-container"),this.posterImage&&t.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&t.appendChild(this.titleBar.el().cloneNode(!0)),t.appendChild(Yt("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),me.documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(n=>(TN(n),this.el_.parentNode.insertBefore(t,this.el_),n.document.body.appendChild(this.el_),n.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger({type:"enterpictureinpicture",pipWindow:n}),n.addEventListener("pagehide",s=>{const r=s.target.querySelector(".video-js");t.parentNode.replaceChild(r,t),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),n))}return"pictureInPictureEnabled"in dt&&this.disablePictureInPicture()===!1?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){if(me.documentPictureInPicture&&me.documentPictureInPicture.window)return me.documentPictureInPicture.window.close(),Promise.resolve();if("pictureInPictureEnabled"in dt)return dt.exitPictureInPicture()}handleKeyDown(t){const{userActions:n}=this.options_;!n||!n.hotkeys||(r=>{const i=r.tagName.toLowerCase();if(r.isContentEditable)return!0;const a=["button","checkbox","hidden","radio","reset","submit"];return i==="input"?a.indexOf(r.type)===-1:["textarea"].indexOf(i)!==-1})(this.el_.ownerDocument.activeElement)||(typeof n.hotkeys=="function"?n.hotkeys.call(this,t):this.handleHotkeys(t))}handleHotkeys(t){const n=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:s=a=>t.key.toLowerCase()==="f",muteKey:r=a=>t.key.toLowerCase()==="m",playPauseKey:i=a=>t.key.toLowerCase()==="k"||t.key.toLowerCase()===" "}=n;if(s.call(this,t)){t.preventDefault(),t.stopPropagation();const a=Qe.getComponent("FullscreenToggle");dt[this.fsApi_.fullscreenEnabled]!==!1&&a.prototype.handleClick.call(this,t)}else r.call(this,t)?(t.preventDefault(),t.stopPropagation(),Qe.getComponent("MuteToggle").prototype.handleClick.call(this,t)):i.call(this,t)&&(t.preventDefault(),t.stopPropagation(),Qe.getComponent("PlayToggle").prototype.handleClick.call(this,t))}canPlayType(t){let n;for(let s=0,r=this.options_.techOrder;s<r.length;s++){const i=r[s];let a=Zt.getTech(i);if(a||(a=Qe.getComponent(i)),!a){dn.error(`The "${i}" tech is undefined. Skipped browser support check for that tech.`);continue}if(a.isSupported()&&(n=a.canPlayType(t),n))return n}return""}selectSource(t){const n=this.options_.techOrder.map(o=>[o,Zt.getTech(o)]).filter(([o,l])=>l?l.isSupported():(dn.error(`The "${o}" tech is undefined. Skipped browser support check for that tech.`),!1)),s=function(o,l,u){let c;return o.some(f=>l.some(h=>{if(c=u(f,h),c)return!0})),c};let r;const i=o=>(l,u)=>o(u,l),a=([o,l],u)=>{if(l.canPlaySource(u,this.options_[o.toLowerCase()]))return{source:u,tech:o}};return this.options_.sourceOrder?r=s(t,n,i(a)):r=s(n,t,a),r||!1}handleSrc_(t,n){if(typeof t>"u")return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const s=UN(t);if(!s.length){this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0);return}if(this.changingSrc_=!0,n||(this.cache_.sources=s),this.updateSourceCaches_(s[0]),_1e(this,s[0],(r,i)=>{if(this.middleware_=i,n||(this.cache_.sources=s),this.updateSourceCaches_(r),this.src_(r)){if(s.length>1)return this.handleSrc_(s.slice(1));this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),this.triggerReady();return}w1e(i,this.tech_)}),s.length>1){const r=()=>{this.error(null),this.handleSrc_(s.slice(1),!0)},i=()=>{this.off("error",r)};this.one("error",r),this.one("playing",i),this.resetRetryOnError_=()=>{this.off("error",r),this.off("playing",i)}}}src(t){return this.handleSrc_(t,!1)}src_(t){const n=this.selectSource([t]);return n?PN(n.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",t):this.techCall_("src",t.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(n.tech,n.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1):!0}load(){if(this.tech_&&this.tech_.vhs){this.src(this.currentSource());return}this.techCall_("load")}reset(){if(this.paused())this.doReset_();else{const t=this.play();Fi(t.then(()=>this.doReset_()))}}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),this.error(null),this.titleBar&&this.titleBar.update({title:void 0,description:void 0}),Ca(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:t,durationDisplay:n,progressControl:s,remainingTimeDisplay:r}=this.controlBar||{},{seekBar:i}=s||{};t&&t.updateContent(),n&&n.updateContent(),r&&r.updateContent(),i&&(i.update(),i.loadProgressBar&&i.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const t=this.currentSource(),n=[];return Object.keys(t).length!==0&&n.push(t),this.cache_.sources||n}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(t){if(t!==void 0){this.techCall_("setPreload",t),this.options_.preload=t;return}return this.techGet_("preload")}autoplay(t){if(t===void 0)return this.options_.autoplay||!1;let n;typeof t=="string"&&/(any|play|muted)/.test(t)||t===!0&&this.options_.normalizeAutoplay?(this.options_.autoplay=t,this.manualAutoplay_(typeof t=="string"?t:"play"),n=!1):t?this.options_.autoplay=!0:this.options_.autoplay=!1,n=typeof n>"u"?this.options_.autoplay:n,this.tech_&&this.techCall_("setAutoplay",n)}playsinline(t){return t!==void 0&&(this.techCall_("setPlaysinline",t),this.options_.playsinline=t),this.techGet_("playsinline")}loop(t){if(t!==void 0){this.techCall_("setLoop",t),this.options_.loop=t;return}return this.techGet_("loop")}poster(t){if(t===void 0)return this.poster_;t||(t=""),t!==this.poster_&&(this.poster_=t,this.techCall_("setPoster",t),this.isPosterFromTech_=!1,this.trigger("posterchange"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const t=this.tech_.poster()||"";t!==this.poster_&&(this.poster_=t,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(t){if(t===void 0)return!!this.controls_;t=!!t,this.controls_!==t&&(this.controls_=t,this.usingNativeControls()&&this.techCall_("setControls",t),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(t){if(t===void 0)return!!this.usingNativeControls_;t=!!t,this.usingNativeControls_!==t&&(this.usingNativeControls_=t,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))}error(t){if(t===void 0)return this.error_||null;if(No("beforeerror").forEach(n=>{const s=n(this,t);if(!(Zi(s)&&!Array.isArray(s)||typeof s=="string"||typeof s=="number"||s===null)){this.log.error("please return a value that MediaError expects in beforeerror hooks");return}t=s}),this.options_.suppressNotSupportedError&&t&&t.code===4){const n=function(){this.error(t)};this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),this.one("loadstart",function(){this.off(["click","touchstart"],n)});return}if(t===null){this.error_=null,this.removeClass("vjs-error"),this.errorDisplay&&this.errorDisplay.close();return}this.error_=new zn(t),this.addClass("vjs-error"),dn.error(`(CODE:${this.error_.code} ${zn.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),No("error").forEach(n=>n(this,this.error_))}reportUserActivity(t){this.userActivity_=!0}userActive(t){if(t===void 0)return this.userActive_;if(t=!!t,t!==this.userActive_){if(this.userActive_=t,this.userActive_){this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),this.trigger("useractive");return}this.tech_&&this.tech_.one("mousemove",function(n){n.stopPropagation(),n.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}}listenForUserActivity_(){let t,n,s;const r=Rn(this,this.reportUserActivity),i=function(f){(f.screenX!==n||f.screenY!==s)&&(n=f.screenX,s=f.screenY,r())},a=function(){r(),this.clearInterval(t),t=this.setInterval(r,250)},o=function(f){r(),this.clearInterval(t)};this.on("mousedown",a),this.on("mousemove",i),this.on("mouseup",o),this.on("mouseleave",o);const l=this.getChild("controlBar");l&&!Xs&&!ea&&(l.on("mouseenter",function(f){this.player().options_.inactivityTimeout!==0&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),l.on("mouseleave",function(f){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r);let u;const c=function(){if(!this.userActivity_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(u);const f=this.options_.inactivityTimeout;f<=0||(u=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},f))};this.setInterval(c,250)}playbackRate(t){if(t!==void 0){this.techCall_("setPlaybackRate",t);return}return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1}defaultPlaybackRate(t){return t!==void 0?this.techCall_("setDefaultPlaybackRate",t):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(t){if(t!==void 0){this.isAudio_=!!t;return}return!!this.isAudio_}updatePlayerHeightOnAudioOnlyMode_(){const t=this.getChild("ControlBar");!t||this.audioOnlyCache_.controlBarHeight===t.currentHeight()||(this.audioOnlyCache_.controlBarHeight=t.currentHeight(),this.height(this.audioOnlyCache_.controlBarHeight))}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const t=this.children(),n=this.getChild("ControlBar"),s=n&&n.currentHeight();t.forEach(r=>{r!==n&&r.el_&&!r.hasClass("vjs-hidden")&&(r.hide(),this.audioOnlyCache_.hiddenChildren.push(r))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.audioOnlyCache_.controlBarHeight=s,this.on("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.height(s),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.off("playerresize",this.boundUpdatePlayerHeightOnAudioOnlyMode_),this.audioOnlyCache_.hiddenChildren.forEach(t=>t.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(t){if(typeof t!="boolean"||t===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=t,t){const n=[];return this.isInPictureInPicture()&&n.push(this.exitPictureInPicture()),this.isFullscreen()&&n.push(this.exitFullscreen()),this.audioPosterMode()&&n.push(this.audioPosterMode(!1)),Promise.all(n).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(t){return typeof t!="boolean"||t===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=t,t?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(t,n,s){if(this.tech_)return this.tech_.addTextTrack(t,n,s)}addRemoteTextTrack(t,n){if(this.tech_)return this.tech_.addRemoteTextTrack(t,n)}removeRemoteTextTrack(t={}){let{track:n}=t;if(n||(n=t),this.tech_)return this.tech_.removeRemoteTextTrack(n)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(t){if(t===void 0)return this.language_;this.language_!==String(t).toLowerCase()&&(this.language_=String(t).toLowerCase(),Ca(this)&&this.trigger("languagechange"))}languages(){return Pn(Bn.prototype.options_.languages,this.languages_)}toJSON(){const t=Pn(this.options_),n=t.tracks;t.tracks=[];for(let s=0;s<n.length;s++){let r=n[s];r=Pn(r),r.player=void 0,t.tracks[s]=r}return t}createModal(t,n){n=n||{},n.content=t||"";const s=new Kc(this,n);return this.addChild(s),s.on("dispose",()=>{this.removeChild(s)}),s.open(),s}updateCurrentBreakpoint_(){if(!this.responsive())return;const t=this.currentBreakpoint(),n=this.currentWidth();for(let s=0;s<T_.length;s++){const r=T_[s],i=this.breakpoints_[r];if(n<=i){if(t===r)return;t&&this.removeClass(dm[t]),this.addClass(dm[r]),this.breakpoint_=r;break}}}removeCurrentBreakpoint_(){const t=this.currentBreakpointClass();this.breakpoint_="",t&&this.removeClass(t)}breakpoints(t){return t===void 0?Object.assign(this.breakpoints_):(this.breakpoint_="",this.breakpoints_=Object.assign({},a2e,t),this.updateCurrentBreakpoint_(),Object.assign(this.breakpoints_))}responsive(t){if(t===void 0)return this.responsive_;t=!!t;const n=this.responsive_;if(t!==n)return this.responsive_=t,t?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),t}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return dm[this.breakpoint_]||""}loadMedia(t,n){if(!t||typeof t!="object")return;const s=this.crossOrigin();this.reset(),this.cache_.media=Pn(t);const{artist:r,artwork:i,description:a,poster:o,src:l,textTracks:u,title:c}=this.cache_.media;!i&&o&&(this.cache_.media.artwork=[{src:o,type:og(o)}]),s&&this.crossOrigin(s),l&&this.src(l),o&&this.poster(o),Array.isArray(u)&&u.forEach(f=>this.addRemoteTextTrack(f,!1)),this.titleBar&&this.titleBar.update({title:c,description:a||r||""}),this.ready(n)}getMedia(){if(!this.cache_.media){const t=this.poster(),n=this.currentSources(),s=Array.prototype.map.call(this.remoteTextTracks(),i=>({kind:i.kind,label:i.label,language:i.language,src:i.src})),r={src:n,textTracks:s};return t&&(r.poster=t,r.artwork=[{src:r.poster,type:og(r.poster)}]),r}return Pn(this.cache_.media)}static getTagSettings(t){const n={sources:[],tracks:[]},s=oo(t),r=s["data-setup"];if(af(t,"vjs-fill")&&(s.fill=!0),af(t,"vjs-fluid")&&(s.fluid=!0),r!==null){const[i,a]=M0e(r||"{}");i&&dn.error(i),Object.assign(s,a)}if(Object.assign(n,s),t.hasChildNodes()){const i=t.childNodes;for(let a=0,o=i.length;a<o;a++){const l=i[a],u=l.nodeName.toLowerCase();u==="source"?n.sources.push(oo(l)):u==="track"&&n.tracks.push(oo(l))}}return n}debug(t){if(t===void 0)return this.debugEnabled_;t?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)}playbackRates(t){if(t===void 0)return this.cache_.playbackRates;Array.isArray(t)&&t.every(n=>typeof n=="number")&&(this.cache_.playbackRates=t,this.trigger("playbackrateschange"))}}js.names.forEach(function(e){const t=js[e];Bn.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}});Bn.prototype.crossorigin=Bn.prototype.crossOrigin;Bn.players={};const Ad=me.navigator;Bn.prototype.options_={techOrder:Zt.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Ad&&(Ad.languages&&Ad.languages[0]||Ad.userLanguage||Ad.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1,spatialNavigation:{enabled:!1,horizontalSeek:!1},enableSmoothSeeking:!1};vM.forEach(function(e){Bn.prototype[`handleTech${jn(e)}_`]=function(){return this.trigger(e)}});Qe.registerComponent("Player",Bn);const lg="plugin",Uu="activePlugins_",Eu={},ug=e=>Eu.hasOwnProperty(e),fm=e=>ug(e)?Eu[e]:void 0,yM=(e,t)=>{e[Uu]=e[Uu]||{},e[Uu][t]=!0},cg=(e,t,n)=>{const s=(n?"before":"")+"pluginsetup";e.trigger(s,t),e.trigger(s+":"+t.name,t)},o2e=function(e,t){const n=function(){cg(this,{name:e,plugin:t,instance:null},!0);const s=t.apply(this,arguments);return yM(this,e),cg(this,{name:e,plugin:t,instance:s}),s};return Object.keys(t).forEach(function(s){n[s]=t[s]}),n},yA=(e,t)=>(t.prototype.name=e,function(...n){cg(this,{name:e,plugin:t,instance:null},!0);const s=new t(this,...n);return this[e]=()=>s,cg(this,s.getEventHash()),s});class cr{constructor(t){if(this.constructor===cr)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),Vw(this),delete this.trigger,ON(this,this.constructor.defaultState),yM(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(t={}){return t.name=this.name,t.plugin=this.constructor,t.instance=this,t}trigger(t,n={}){return Wc(this.eventBusEl_,t,this.getEventHash(n))}handleStateChanged(t){}dispose(){const{name:t,player:n}=this;this.trigger("dispose"),this.off(),n.off("dispose",this.dispose),n[Uu][t]=!1,this.player=this.state=null,n[t]=yA(t,Eu[t])}static isBasic(t){const n=typeof t=="string"?fm(t):t;return typeof n=="function"&&!cr.prototype.isPrototypeOf(n.prototype)}static registerPlugin(t,n){if(typeof t!="string")throw new Error(`Illegal plugin name, "${t}", must be a string, was ${typeof t}.`);if(ug(t))dn.warn(`A plugin named "${t}" already exists. You may want to avoid re-registering plugins!`);else if(Bn.prototype.hasOwnProperty(t))throw new Error(`Illegal plugin name, "${t}", cannot share a name with an existing player method!`);if(typeof n!="function")throw new Error(`Illegal plugin for "${t}", must be a function, was ${typeof n}.`);return Eu[t]=n,t!==lg&&(cr.isBasic(n)?Bn.prototype[t]=o2e(t,n):Bn.prototype[t]=yA(t,n)),n}static deregisterPlugin(t){if(t===lg)throw new Error("Cannot de-register base plugin.");ug(t)&&(delete Eu[t],delete Bn.prototype[t])}static getPlugins(t=Object.keys(Eu)){let n;return t.forEach(s=>{const r=fm(s);r&&(n=n||{},n[s]=r)}),n}static getPluginVersion(t){const n=fm(t);return n&&n.VERSION||""}}cr.getPlugin=fm;cr.BASE_PLUGIN_NAME=lg;cr.registerPlugin(lg,cr);Bn.prototype.usingPlugin=function(e){return!!this[Uu]&&this[Uu][e]===!0};Bn.prototype.hasPlugin=function(e){return!!ug(e)};function l2e(e,t){let n=!1;return function(...s){return n||dn.warn(e),n=!0,t.apply(this,s)}}function Di(e,t,n,s){return l2e(`${t} is deprecated and will be removed in ${e}.0; please use ${n} instead.`,s)}var u2e={NetworkBadStatus:"networkbadstatus",NetworkRequestFailed:"networkrequestfailed",NetworkRequestAborted:"networkrequestaborted",NetworkRequestTimeout:"networkrequesttimeout",NetworkBodyParserFailed:"networkbodyparserfailed",StreamingHlsPlaylistParserError:"streaminghlsplaylistparsererror",StreamingDashManifestParserError:"streamingdashmanifestparsererror",StreamingContentSteeringParserError:"streamingcontentsteeringparsererror",StreamingVttParserError:"streamingvttparsererror",StreamingFailedToSelectNextSegment:"streamingfailedtoselectnextsegment",StreamingFailedToDecryptSegment:"streamingfailedtodecryptsegment",StreamingFailedToTransmuxSegment:"streamingfailedtotransmuxsegment",StreamingFailedToAppendSegment:"streamingfailedtoappendsegment",StreamingCodecsChangeError:"streamingcodecschangeerror"};const bM=e=>e.indexOf("#")===0?e.slice(1):e;function He(e,t,n){let s=He.getPlayer(e);if(s)return t&&dn.warn(`Player "${e}" is already initialised. Options will not be applied.`),n&&s.ready(n),s;const r=typeof e=="string"?Mo("#"+bM(e)):e;if(!qc(r))throw new TypeError("The element or ID supplied is not valid. (videojs)");const a=("getRootNode"in r?r.getRootNode()instanceof me.ShadowRoot:!1)?r.getRootNode():r.ownerDocument.body;(!r.ownerDocument.defaultView||!a.contains(r))&&dn.warn("The element supplied is not included in the DOM"),t=t||{},t.restoreEl===!0&&(t.restoreEl=(r.parentNode&&r.parentNode.hasAttribute&&r.parentNode.hasAttribute("data-vjs-player")?r.parentNode:r).cloneNode(!0)),No("beforesetup").forEach(l=>{const u=l(r,Pn(t));if(!Zi(u)||Array.isArray(u)){dn.error("please return an object in beforesetup hooks");return}t=Pn(t,u)});const o=Qe.getComponent("Player");return s=new o(r,t,n),No("setup").forEach(l=>l(s)),s}He.hooks_=_a;He.hooks=No;He.hook=z_e;He.hookOnce=j_e;He.removeHook=nN;if(me.VIDEOJS_NO_DYNAMIC_STYLE!==!0&&jc()){let e=Mo(".vjs-styles-defaults");if(!e){e=xN("vjs-styles-defaults");const t=Mo("head");t&&t.insertBefore(e,t.firstChild),kN(e,`
|
||
.video-js {
|
||
width: 300px;
|
||
height: 150px;
|
||
}
|
||
|
||
.vjs-fluid:not(.vjs-audio-only-mode) {
|
||
padding-top: 56.25%
|
||
}
|
||
`)}}g_(1,He);He.VERSION=d_;He.options=Bn.prototype.options_;He.getPlayers=()=>Bn.players;He.getPlayer=e=>{const t=Bn.players;let n;if(typeof e=="string"){const s=bM(e),r=t[s];if(r)return r;n=Mo("#"+s)}else n=e;if(qc(n)){const{player:s,playerId:r}=n;if(s||t[r])return s||t[r]}};He.getAllPlayers=()=>Object.keys(Bn.players).map(e=>Bn.players[e]).filter(Boolean);He.players=Bn.players;He.getComponent=Qe.getComponent;He.registerComponent=(e,t)=>(Zt.isTech(t)&&dn.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),Qe.registerComponent.call(Qe,e,t));He.getTech=Zt.getTech;He.registerTech=Zt.registerTech;He.use=b1e;Object.defineProperty(He,"middleware",{value:{},writeable:!1,enumerable:!0});Object.defineProperty(He.middleware,"TERMINATOR",{value:ag,writeable:!1,enumerable:!0});He.browser=dN;He.obj=K_e;He.mergeOptions=Di(9,"videojs.mergeOptions","videojs.obj.merge",Pn);He.defineLazyProperty=Di(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",xv);He.bind=Di(9,"videojs.bind","native Function.prototype.bind",Rn);He.registerPlugin=cr.registerPlugin;He.deregisterPlugin=cr.deregisterPlugin;He.plugin=(e,t)=>(dn.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),cr.registerPlugin(e,t));He.getPlugins=cr.getPlugins;He.getPlugin=cr.getPlugin;He.getPluginVersion=cr.getPluginVersion;He.addLanguage=function(e,t){return e=(""+e).toLowerCase(),He.options.languages=Pn(He.options.languages,{[e]:t}),He.options.languages[e]};He.log=dn;He.createLogger=sN;He.time=l1e;He.createTimeRange=Di(9,"videojs.createTimeRange","videojs.time.createTimeRanges",bi);He.createTimeRanges=Di(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",bi);He.formatTime=Di(9,"videojs.formatTime","videojs.time.formatTime",Vl);He.setFormatTime=Di(9,"videojs.setFormatTime","videojs.time.setFormatTime",NN);He.resetFormatTime=Di(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",MN);He.parseUrl=Di(9,"videojs.parseUrl","videojs.url.parseUrl",zw);He.isCrossOrigin=Di(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",Bv);He.EventTarget=Pr;He.any=Fw;He.on=Or;He.one=$v;He.off=Ns;He.trigger=Wc;He.xhr=aR;He.TextTrack=Oh;He.AudioTrack=FN;He.VideoTrack=VN;["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e=>{He[e]=function(){return dn.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),CN[e].apply(null,arguments)}});He.computedStyle=Di(9,"videojs.computedStyle","videojs.dom.computedStyle",wc);He.dom=CN;He.fn=n1e;He.num=V1e;He.str=a1e;He.url=v1e;He.Error=u2e;/*! @name videojs-contrib-quality-levels @version 4.1.0 @license Apache-2.0 */class c2e{constructor(t){let n=this;return n.id=t.id,n.label=n.id,n.width=t.width,n.height=t.height,n.bitrate=t.bandwidth,n.frameRate=t.frameRate,n.enabled_=t.enabled,Object.defineProperty(n,"enabled",{get(){return n.enabled_()},set(s){n.enabled_(s)}}),n}}class dg extends He.EventTarget{constructor(){super();let t=this;return t.levels_=[],t.selectedIndex_=-1,Object.defineProperty(t,"selectedIndex",{get(){return t.selectedIndex_}}),Object.defineProperty(t,"length",{get(){return t.levels_.length}}),t[Symbol.iterator]=()=>t.levels_.values(),t}addQualityLevel(t){let n=this.getQualityLevelById(t.id);if(n)return n;const s=this.levels_.length;return n=new c2e(t),""+s in this||Object.defineProperty(this,s,{get(){return this.levels_[s]}}),this.levels_.push(n),this.trigger({qualityLevel:n,type:"addqualitylevel"}),n}removeQualityLevel(t){let n=null;for(let s=0,r=this.length;s<r;s++)if(this[s]===t){n=this.levels_.splice(s,1)[0],this.selectedIndex_===s?this.selectedIndex_=-1:this.selectedIndex_>s&&this.selectedIndex_--;break}return n&&this.trigger({qualityLevel:t,type:"removequalitylevel"}),n}getQualityLevelById(t){for(let n=0,s=this.length;n<s;n++){const r=this[n];if(r.id===t)return r}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}dg.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const e in dg.prototype.allowedEvents_)dg.prototype["on"+e]=null;var _M="4.1.0";const d2e=function(e,t){const n=e.qualityLevels,s=new dg,r=function(){s.dispose(),e.qualityLevels=n,e.off("dispose",r)};return e.on("dispose",r),e.qualityLevels=()=>s,e.qualityLevels.VERSION=_M,s},wM=function(e){return d2e(this,He.obj.merge({},e))};He.registerPlugin("qualityLevels",wM);wM.VERSION=_M;/*! @name @videojs/http-streaming @version 3.13.1 @license Apache-2.0 */const rr=bv,fg=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,ni=e=>He.log.debug?He.log.debug.bind(He,"VHS:",`${e} >`):function(){};function bn(...e){const t=He.obj||He;return(t.merge||t.mergeOptions).apply(t,e)}function Cs(...e){const t=He.time||He;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}function f2e(e){if(e.length===0)return"Buffered Ranges are empty";let t=`Buffered Ranges:
|
||
`;for(let n=0;n<e.length;n++){const s=e.start(n),r=e.end(n);t+=`${s} --> ${r}. Duration (${r-s})
|
||
`}return t}const Vi=1/30,Ui=Vi*3,SM=function(e,t){const n=[];let s;if(e&&e.length)for(s=0;s<e.length;s++)t(e.start(s),e.end(s))&&n.push([e.start(s),e.end(s)]);return Cs(n)},xu=function(e,t){return SM(e,function(n,s){return n-Ui<=t&&s+Ui>=t})},Np=function(e,t){return SM(e,function(n){return n-Vi>=t})},h2e=function(e){if(e.length<2)return Cs();const t=[];for(let n=1;n<e.length;n++){const s=e.end(n-1),r=e.start(n);t.push([s,r])}return Cs(t)},p2e=function(e,t){let n=null,s=null,r=0;const i=[],a=[];if(!e||!e.length||!t||!t.length)return Cs();let o=e.length;for(;o--;)i.push({time:e.start(o),type:"start"}),i.push({time:e.end(o),type:"end"});for(o=t.length;o--;)i.push({time:t.start(o),type:"start"}),i.push({time:t.end(o),type:"end"});for(i.sort(function(l,u){return l.time-u.time}),o=0;o<i.length;o++)i[o].type==="start"?(r++,r===2&&(n=i[o].time)):i[o].type==="end"&&(r--,r===1&&(s=i[o].time)),n!==null&&s!==null&&(a.push([n,s]),n=null,s=null);return Cs(a)},TM=e=>{const t=[];if(!e||!e.length)return"";for(let n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},m2e=function(e,t,n=1){return((e.length?e.end(e.length-1):0)-t)/n},vl=e=>{const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},g2e=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e||e.length!==t.length)return!0;for(let n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1},vy=function(e){if(!(!e||!e.length||!e.end))return e.end(e.length-1)},oS=function(e,t){let n=0;if(!e||!e.length)return n;for(let s=0;s<e.length;s++){const r=e.start(s),i=e.end(s);if(!(t>i)){if(t>r&&t<=i){n+=i-t;continue}n+=i-r}}return n},lS=(e,t)=>{if(!t.preload)return t.duration;let n=0;return(t.parts||[]).forEach(function(s){n+=s.duration}),(t.preloadHints||[]).forEach(function(s){s.type==="PART"&&(n+=e.partTargetDuration)}),n},C_=e=>(e.segments||[]).reduce((t,n,s)=>(n.parts?n.parts.forEach(function(r,i){t.push({duration:r.duration,segmentIndex:s,partIndex:i,part:r,segment:n})}):t.push({duration:n.duration,segmentIndex:s,partIndex:null,segment:n,part:null}),t),[]),CM=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},EM=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:n}=e;let s=(n||[]).reduce((r,i)=>r+(i.type==="PART"?1:0),0);return s+=t&&t.length?t.length:0,s},xM=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const n=CM(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?t.partTargetDuration*3:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?t.targetDuration*3:0},v2e=function(e,t){let n=0,s=t-e.mediaSequence,r=e.segments[s];if(r){if(typeof r.start<"u")return{result:r.start,precise:!0};if(typeof r.end<"u")return{result:r.end-r.duration,precise:!0}}for(;s--;){if(r=e.segments[s],typeof r.end<"u")return{result:n+r.end,precise:!0};if(n+=lS(e,r),typeof r.start<"u")return{result:n+r.start,precise:!0}}return{result:n,precise:!1}},y2e=function(e,t){let n=0,s,r=t-e.mediaSequence;for(;r<e.segments.length;r++){if(s=e.segments[r],typeof s.start<"u")return{result:s.start-n,precise:!0};if(n+=lS(e,s),typeof s.end<"u")return{result:s.end-n,precise:!0}}return{result:-1,precise:!1}},kM=function(e,t,n){if(typeof t>"u"&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const s=v2e(e,t);if(s.precise)return s.result;const r=y2e(e,t);return r.precise?r.result:s.result+n},AM=function(e,t,n){if(!e)return 0;if(typeof n!="number"&&(n=0),typeof t>"u"){if(e.totalDuration)return e.totalDuration;if(!e.endList)return me.Infinity}return kM(e,t,n)},uf=function({defaultDuration:e,durationList:t,startIndex:n,endIndex:s}){let r=0;if(n>s&&([n,s]=[s,n]),n<0){for(let i=n;i<Math.min(0,s);i++)r+=e;n=0}for(let i=n;i<s;i++)r+=t[i].duration;return r},IM=function(e,t,n,s){if(!e||!e.segments)return null;if(e.endList)return AM(e);if(t===null)return null;t=t||0;let r=kM(e,e.mediaSequence+e.segments.length,t);return n&&(s=typeof s=="number"?s:xM(null,e),r-=s),Math.max(0,r)},b2e=function(e,t,n){const r=t||0;let i=IM(e,t,!0,n);return i===null?Cs():(i<r&&(i=r),Cs(r,i))},_2e=function({playlist:e,currentTime:t,startingSegmentIndex:n,startingPartIndex:s,startTime:r,exactManifestTimings:i}){let a=t-r;const o=C_(e);let l=0;for(let u=0;u<o.length;u++){const c=o[u];if(n===c.segmentIndex&&!(typeof s=="number"&&typeof c.partIndex=="number"&&s!==c.partIndex)){l=u;break}}if(a<0){if(l>0)for(let u=l-1;u>=0;u--){const c=o[u];if(a+=c.duration,i){if(a<0)continue}else if(a+Vi<=0)continue;return{partIndex:c.partIndex,segmentIndex:c.segmentIndex,startTime:r-uf({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:u})}}return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t}}if(l<0){for(let u=l;u<0;u++)if(a-=e.targetDuration,a<0)return{partIndex:o[0]&&o[0].partIndex||null,segmentIndex:o[0]&&o[0].segmentIndex||0,startTime:t};l=0}for(let u=l;u<o.length;u++){const c=o[u];a-=c.duration;const f=c.duration>Vi,h=a===0,m=f&&a+Vi>=0;if(!((h||m)&&u!==o.length-1)){if(i){if(a>0)continue}else if(a-Vi>=0)continue;return{partIndex:c.partIndex,segmentIndex:c.segmentIndex,startTime:r+uf({defaultDuration:e.targetDuration,durationList:o,startIndex:l,endIndex:u})}}}return{segmentIndex:o[o.length-1].segmentIndex,partIndex:o[o.length-1].partIndex,startTime:t}},DM=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},uS=function(e){return e.excludeUntil&&e.excludeUntil===1/0},Uv=function(e){const t=DM(e);return!e.disabled&&!t},w2e=function(e){return e.disabled},S2e=function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},OM=function(e,t){return t.attributes&&t.attributes[e]},T2e=function(e,t,n,s=0){return OM("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-s*8)/t:NaN},E_=(e,t)=>{if(e.playlists.length===1)return!0;const n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return e.playlists.filter(s=>Uv(s)?(s.attributes.BANDWIDTH||0)<n:!1).length===0},cS=(e,t)=>!e&&!t||!e&&t||e&&!t?!1:!!(e===t||e.id&&t.id&&e.id===t.id||e.resolvedUri&&t.resolvedUri&&e.resolvedUri===t.resolvedUri||e.uri&&t.uri&&e.uri===t.uri),bA=function(e,t){const n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let s=!1;for(const r in n){for(const i in n[r])if(s=t(n[r][i]),s)break;if(s)break}return!!s},Mh=e=>{if(!e||!e.playlists||!e.playlists.length)return bA(e,n=>n.playlists&&n.playlists.length||n.uri);for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t],s=n.attributes&&n.attributes.CODECS;if(!(s&&s.split(",").every(i=>fR(i))||bA(e,i=>cS(n,i))))return!1}return!0};var ir={liveEdgeDelay:xM,duration:AM,seekable:b2e,getMediaInfoForTime:_2e,isEnabled:Uv,isDisabled:w2e,isExcluded:DM,isIncompatible:uS,playlistEnd:IM,isAes:S2e,hasAttribute:OM,estimateSegmentRequestTime:T2e,isLowestEnabledRendition:E_,isAudioOnly:Mh,playlistMatch:cS,segmentDurationWithParts:lS};const{log:PM}=He,Hu=(e,t)=>`${e}-${t}`,RM=(e,t,n)=>`placeholder-uri-${e}-${t}-${n}`,C2e=({onwarn:e,oninfo:t,manifestString:n,customTagParsers:s=[],customTagMappers:r=[],llhls:i})=>{const a=new Vye;e&&a.on("warn",e),t&&a.on("info",t),s.forEach(u=>a.addParser(u)),r.forEach(u=>a.addTagMapper(u)),a.push(n),a.end();const o=a.manifest;if(i||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(u){o.hasOwnProperty(u)&&delete o[u]}),o.segments&&o.segments.forEach(function(u){["parts","preloadHints"].forEach(function(c){u.hasOwnProperty(c)&&delete u[c]})})),!o.targetDuration){let u=10;o.segments&&o.segments.length&&(u=o.segments.reduce((c,f)=>Math.max(c,f.duration),0)),e&&e({message:`manifest has no targetDuration defaulting to ${u}`}),o.targetDuration=u}const l=CM(o);if(l.length&&!o.partTargetDuration){const u=l.reduce((c,f)=>Math.max(c,f.duration),0);e&&(e({message:`manifest has no partTargetDuration defaulting to ${u}`}),PM.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=u}return o},Xc=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(n=>{if(e.mediaGroups[n])for(const s in e.mediaGroups[n])for(const r in e.mediaGroups[n][s]){const i=e.mediaGroups[n][s][r];t(i,n,s,r)}})},NM=({playlist:e,uri:t,id:n})=>{e.id=n,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},E2e=e=>{let t=e.playlists.length;for(;t--;){const n=e.playlists[t];NM({playlist:n,id:Hu(t,n.uri)}),n.resolvedUri=rr(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||PM.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}},x2e=e=>{Xc(e,t=>{t.uri&&(t.resolvedUri=rr(e.uri,t.uri))})},k2e=(e,t)=>{const n=Hu(0,t),s={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:me.location.href,resolvedUri:me.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return s.playlists[n]=s.playlists[0],s.playlists[t]=s.playlists[0],s},MM=(e,t,n=RM)=>{e.uri=t;for(let r=0;r<e.playlists.length;r++)if(!e.playlists[r].uri){const i=`placeholder-uri-${r}`;e.playlists[r].uri=i}const s=Mh(e);Xc(e,(r,i,a,o)=>{if(!r.playlists||!r.playlists.length){if(s&&i==="AUDIO"&&!r.uri)for(let l=0;l<e.playlists.length;l++){const u=e.playlists[l];if(u.attributes&&u.attributes.AUDIO&&u.attributes.AUDIO===a)return}r.playlists=[qn({},r)]}r.playlists.forEach(function(l,u){const c=n(i,a,o,l),f=Hu(u,c);l.uri?l.resolvedUri=l.resolvedUri||rr(e.uri,l.uri):(l.uri=u===0?c:f,l.resolvedUri=l.uri),l.id=l.id||f,l.attributes=l.attributes||{},e.playlists[l.id]=l,e.playlists[l.uri]=l})}),E2e(e),x2e(e)};class _A{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(t=[]){if(this.offset_!==null||!t.length)return;const[n]=t;n.programDateTime!==void 0&&(this.offset_=n.programDateTime/1e3)}setPendingDateRanges(t=[]){if(!t.length)return;const[n]=t,s=n.startDate.getTime();this.trimProcessedDateRanges_(s),this.pendingDateRanges_=t.reduce((r,i)=>(r.set(i.id,i),r),new Map)}processDateRange(t){this.pendingDateRanges_.delete(t.id),this.processedDateRanges_.set(t.id,t)}getDateRangesToProcess(){if(this.offset_===null)return[];const t={},n=[];this.pendingDateRanges_.forEach((s,r)=>{if(!this.processedDateRanges_.has(r)&&(s.startTime=s.startDate.getTime()/1e3-this.offset_,s.processDateRange=()=>this.processDateRange(s),n.push(s),!!s.class))if(t[s.class]){const i=t[s.class].push(s);s.classListIndex=i-1}else t[s.class]=[s],s.classListIndex=0});for(const s of n){const r=t[s.class]||[];s.endDate?s.endTime=s.endDate.getTime()/1e3-this.offset_:s.endOnNext&&r[s.classListIndex+1]?s.endTime=r[s.classListIndex+1].startTime:s.duration?s.endTime=s.startTime+s.duration:s.plannedDuration?s.endTime=s.startTime+s.plannedDuration:s.endTime=s.startTime}return n}trimProcessedDateRanges_(t){new Map(this.processedDateRanges_).forEach((s,r)=>{s.startDate.getTime()<t&&this.processedDateRanges_.delete(r)})}}const $M=22,Al=({requestType:e,request:t,error:n,parseFailure:s})=>{const r=t.status<200||t.status>299,i=t.status>=400&&t.status<=499,a={uri:t.uri,requestType:e},o=r&&!i||s;if(n&&i)a.error=qn({},n),a.errorType=He.Error.NetworkRequestFailed;else if(t.aborted)a.errorType=He.Error.NetworkRequestAborted;else if(t.timedout)a.erroType=He.Error.NetworkRequestTimeout;else if(o){const l=s?He.Error.NetworkBodyParserFailed:He.Error.NetworkBadStatus;a.errorType=l,a.status=t.status,a.headers=t.headers}return a},{EventTarget:A2e}=He,I2e=(e,t)=>{if(t.endList||!t.serverControl)return e;const n={};if(t.serverControl.canBlockReload){const{preloadSegment:s}=t;let r=t.mediaSequence+t.segments.length;if(s){const i=s.parts||[],a=EM(t)-1;a>-1&&a!==i.length-1&&(n._HLS_part=a),(a>-1||i.length)&&r--}n._HLS_msn=r}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){const s=new me.URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(r){n.hasOwnProperty(r)&&s.searchParams.set(r,n[r])}),e=s.toString()}return e},D2e=(e,t)=>{if(!e)return t;const n=bn(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(let s=0;s<t.parts.length;s++)e.parts&&e.parts[s]&&(n.parts[s]=bn(e.parts[s],t.parts[s]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},O2e=(e,t,n)=>{const s=e.slice(),r=t.slice();n=n||0;const i=[];let a;for(let o=0;o<r.length;o++){const l=s[o+n],u=r[o];l?(a=l.map||a,i.push(D2e(l,u))):(a&&!u.map&&(u.map=a),i.push(u))}return i},LM=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=rr(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=rr(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=rr(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=rr(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(n=>{n.resolvedUri||(n.resolvedUri=rr(t,n.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(n=>{n.resolvedUri||(n.resolvedUri=rr(t,n.uri))})},BM=function(e){const t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints){for(let s=0;s<n.preloadHints.length;s++)if(n.preloadHints[s].type==="MAP")return t}n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},FM=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,x_=(e,t,n=FM)=>{const s=bn(e,{}),r=s.playlists[t.id];if(!r||n(r,t))return null;t.segments=BM(t);const i=bn(r,t);if(i.preloadSegment&&!t.preloadSegment&&delete i.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(let a=0;a<t.skip.skippedSegments;a++)t.segments.unshift({skipped:!0})}i.segments=O2e(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}i.segments.forEach(a=>{LM(a,i.resolvedUri)});for(let a=0;a<s.playlists.length;a++)s.playlists[a].id===t.id&&(s.playlists[a]=i);return s.playlists[t.id]=i,s.playlists[t.uri]=i,Xc(e,(a,o,l,u)=>{if(a.playlists)for(let c=0;c<a.playlists.length;c++)t.id===a.playlists[c].id&&(a.playlists[c]=i)}),s},k_=(e,t)=>{const n=e.segments||[],s=n[n.length-1],r=s&&s.parts&&s.parts[s.parts.length-1],i=r&&r.duration||s&&s.duration;return t&&i?i*1e3:(e.partTargetDuration||e.targetDuration||10)*500},wA=(e,t,n)=>{if(!e)return;const s=[];return e.forEach(r=>{if(!r.attributes)return;const{BANDWIDTH:i,RESOLUTION:a,CODECS:o}=r.attributes;s.push({id:r.id,bandwidth:i,resolution:a,codecs:o})}),{type:t,isLive:n,renditions:s}};class ku extends A2e{constructor(t,n,s={}){if(super(),!t)throw new Error("A non-empty playlist URL or object is required");this.logger_=ni("PlaylistLoader");const{withCredentials:r=!1}=s;this.src=t,this.vhs_=n,this.withCredentials=r,this.addDateRangesToTextTrack_=s.addDateRangesToTextTrack;const i=n.options_;this.customTagParsers=i&&i.customTagParsers||[],this.customTagMappers=i&&i.customTagMappers||[],this.llhls=i&&i.llhls,this.dateRangesStorage_=new _A,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const t=this.media();if(!t)return;this.dateRangesStorage_.setOffset(t.segments),this.dateRangesStorage_.setPendingDateRanges(t.dateRanges);const n=this.dateRangesStorage_.getDateRangesToProcess();!n.length||!this.addDateRangesToTextTrack_||this.addDateRangesToTextTrack_(n)}handleMediaupdatetimeout_(){if(this.state!=="HAVE_METADATA")return;const t=this.media();let n=rr(this.main.uri,t.uri);this.llhls&&(n=I2e(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials,requestType:"hls-playlist"},(s,r)=>{if(this.request){if(s)return this.playlistRequestError(this.request,this.media(),"HAVE_METADATA");this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})}})}playlistRequestError(t,n,s){const{uri:r,id:i}=n;this.request=null,s&&(this.state=s),this.error={playlist:this.main.playlists[i],status:t.status,message:`HLS playlist request error at URL: ${r}.`,responseText:t.responseText,code:t.status>=500?4:2,metadata:Al({requestType:t.requestType,request:t,error:t.error})},this.trigger("error")}parseManifest_({url:t,manifestString:n}){try{return C2e({onwarn:({message:s})=>this.logger_(`m3u8-parser warn for ${t}: ${s}`),oninfo:({message:s})=>this.logger_(`m3u8-parser info for ${t}: ${s}`),manifestString:n,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}catch(s){this.error=s,this.error.metadata={errorType:He.Error.StreamingHlsPlaylistParserError,error:s}}}haveMetadata({playlistString:t,playlistObject:n,url:s,id:r}){this.request=null,this.state="HAVE_METADATA";const i={playlistInfo:{type:"media",uri:s}};this.trigger({type:"playlistparsestart",metadata:i});const a=n||this.parseManifest_({url:s,manifestString:t});a.lastRequest=Date.now(),NM({playlist:a,uri:s,id:r});const o=x_(this.main,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,o?(this.main=o,this.media_=this.main.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(k_(this.media(),!!o)),i.parsedPlaylist=wA(this.main.playlists,i.playlistInfo.type,!this.media_.endList),this.trigger({type:"playlistparsecomplete",metadata:i}),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),me.clearTimeout(this.mediaUpdateTimeout),me.clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new _A,this.off()}stopRequest(){if(this.request){const t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}media(t,n){if(!t)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);if(typeof t=="string"){if(!this.main.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.main.playlists[t]}if(me.clearTimeout(this.finalRenditionTimeout),n){const o=(t.partTargetDuration||t.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=me.setTimeout(this.media.bind(this,t,!1),o);return}const s=this.state,r=!this.media_||t.id!==this.media_.id,i=this.main.playlists[t.id];if(i&&i.endList||t.endList&&t.segments.length){this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=t,r&&(this.trigger("mediachanging"),s==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange"));return}if(this.updateMediaUpdateTimeout_(k_(t,!0)),!r)return;if(this.state="SWITCHING_MEDIA",this.request){if(t.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=t;const a={playlistInfo:{type:"media",uri:t.uri}};this.trigger({type:"playlistrequeststart",metadata:a}),this.request=this.vhs_.xhr({uri:t.resolvedUri,withCredentials:this.withCredentials,requestType:"hls-playlist"},(o,l)=>{if(this.request){if(t.lastRequest=Date.now(),t.resolvedUri=fg(t.resolvedUri,l),o)return this.playlistRequestError(this.request,t,s);this.trigger({type:"playlistrequestcomplete",metadata:a}),this.haveMetadata({playlistString:l.responseText,url:t.uri,id:t.id}),s==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}pause(){this.mediaUpdateTimeout&&(me.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),this.state==="HAVE_NOTHING"&&(this.started=!1),this.state==="SWITCHING_MEDIA"?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MAIN_MANIFEST":this.state==="HAVE_CURRENT_METADATA"&&(this.state="HAVE_METADATA")}load(t){this.mediaUpdateTimeout&&(me.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const n=this.media();if(t){const s=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=me.setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},s);return}if(!this.started){this.start();return}n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist")}updateMediaUpdateTimeout_(t){this.mediaUpdateTimeout&&(me.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),!(!this.media()||this.media().endList)&&(this.mediaUpdateTimeout=me.setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(t)},t))}start(){if(this.started=!0,typeof this.src=="object"){this.src.uri||(this.src.uri=me.location.href),this.src.resolvedUri=this.src.uri,setTimeout(()=>{this.setupInitialPlaylist(this.src)},0);return}const t={playlistInfo:{type:"multivariant",uri:this.src}};this.trigger({type:"playlistrequeststart",metadata:t}),this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials,requestType:"hls-playlist"},(n,s)=>{if(!this.request)return;if(this.request=null,n)return this.error={status:s.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:s.responseText,code:2,metadata:Al({requestType:s.requestType,request:s,error:n})},this.state==="HAVE_NOTHING"&&(this.started=!1),this.trigger("error");this.trigger({type:"playlistrequestcomplete",metadata:t}),this.src=fg(this.src,s),this.trigger({type:"playlistparsestart",metadata:t});const r=this.parseManifest_({manifestString:s.responseText,url:this.src});t.parsedPlaylist=wA(r.playlists,t.playlistInfo.type,!1),this.trigger({type:"playlistparsecomplete",metadata:t}),this.setupInitialPlaylist(r)})}srcUri(){return typeof this.src=="string"?this.src:this.src.uri}setupInitialPlaylist(t){if(this.state="HAVE_MAIN_MANIFEST",t.playlists){this.main=t,MM(this.main,this.srcUri()),t.playlists.forEach(s=>{s.segments=BM(s),s.segments.forEach(r=>{LM(r,s.resolvedUri)})}),this.trigger("loadedplaylist"),this.request||this.media(this.main.playlists[0]);return}const n=this.srcUri()||me.location.href;this.main=k2e(t,n),this.haveMetadata({playlistObject:t,url:n,id:this.main.playlists[0].id}),this.trigger("loadedmetadata")}updateOrDeleteClone(t,n){const s=this.main,r=t.ID;let i=s.playlists.length;for(;i--;){const a=s.playlists[i];if(a.attributes["PATHWAY-ID"]===r){const o=a.resolvedUri,l=a.id;if(n){const u=this.createCloneURI_(a.resolvedUri,t),c=Hu(r,u),f=this.createCloneAttributes_(r,a.attributes),h=this.createClonePlaylist_(a,c,t,f);s.playlists[i]=h,s.playlists[c]=h,s.playlists[u]=h}else s.playlists.splice(i,1);delete s.playlists[l],delete s.playlists[o]}}this.updateOrDeleteCloneMedia(t,n)}updateOrDeleteCloneMedia(t,n){const s=this.main,r=t.ID;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(i=>{if(!(!s.mediaGroups[i]||!s.mediaGroups[i][r])){for(const a in s.mediaGroups[i])if(a===r){for(const o in s.mediaGroups[i][a])s.mediaGroups[i][a][o].playlists.forEach((u,c)=>{const f=s.playlists[u.id],h=f.id,m=f.resolvedUri;delete s.playlists[h],delete s.playlists[m]});delete s.mediaGroups[i][a]}}}),n&&this.createClonedMediaGroups_(t)}addClonePathway(t,n={}){const s=this.main,r=s.playlists.length,i=this.createCloneURI_(n.resolvedUri,t),a=Hu(t.ID,i),o=this.createCloneAttributes_(t.ID,n.attributes),l=this.createClonePlaylist_(n,a,t,o);s.playlists[r]=l,s.playlists[a]=l,s.playlists[i]=l,this.createClonedMediaGroups_(t)}createClonedMediaGroups_(t){const n=t.ID,s=t["BASE-ID"],r=this.main;["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(i=>{if(!(!r.mediaGroups[i]||r.mediaGroups[i][n]))for(const a in r.mediaGroups[i]){if(a===s)r.mediaGroups[i][n]={};else continue;for(const o in r.mediaGroups[i][a]){const l=r.mediaGroups[i][a][o];r.mediaGroups[i][n][o]=qn({},l);const u=r.mediaGroups[i][n][o],c=this.createCloneURI_(l.resolvedUri,t);u.resolvedUri=c,u.uri=c,u.playlists=[],l.playlists.forEach((f,h)=>{const m=r.playlists[f.id],g=RM(i,n,o),p=Hu(n,g);if(m&&!r.playlists[p]){const v=this.createClonePlaylist_(m,p,t),y=v.resolvedUri;r.playlists[p]=v,r.playlists[y]=v}u.playlists[h]=this.createClonePlaylist_(f,p,t)})}}})}createClonePlaylist_(t,n,s,r){const i=this.createCloneURI_(t.resolvedUri,s),a={resolvedUri:i,uri:i,id:n};return t.segments&&(a.segments=[]),r&&(a.attributes=r),bn(t,a)}createCloneURI_(t,n){const s=new URL(t);s.hostname=n["URI-REPLACEMENT"].HOST;const r=n["URI-REPLACEMENT"].PARAMS;for(const i of Object.keys(r))s.searchParams.set(i,r[i]);return s.href}createCloneAttributes_(t,n){const s={"PATHWAY-ID":t};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(r=>{n[r]&&(s[r]=t)}),s}getKeyIdSet(t){if(t.contentProtection){const n=new Set;for(const s in t.contentProtection){const r=t.contentProtection[s].attributes.keyId;r&&n.add(r.toLowerCase())}return n}}}const A_=function(e,t,n,s){const r=e.responseType==="arraybuffer"?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&t.code==="ETIMEDOUT"&&(e.timedout=!0),!t&&!e.aborted&&n.statusCode!==200&&n.statusCode!==206&&n.statusCode!==0&&(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),s(t,e)},P2e=(e,t)=>{if(!e||!e.size)return;let n=t;return e.forEach(s=>{n=s(n)}),n},R2e=(e,t,n,s)=>{!e||!e.size||e.forEach(r=>{r(t,n,s)})},VM=function(){const e=function t(n,s){n=bn({timeout:45e3},n);const r=t.beforeRequest||He.Vhs.xhr.beforeRequest,i=t._requestCallbackSet||He.Vhs.xhr._requestCallbackSet||new Set,a=t._responseCallbackSet||He.Vhs.xhr._responseCallbackSet;r&&typeof r=="function"&&(He.log.warn("beforeRequest is deprecated, use onRequest instead."),i.add(r));const o=He.Vhs.xhr.original===!0?He.xhr:He.Vhs.xhr,l=P2e(i,n);i.delete(r);const u=o(l||n,function(f,h){return R2e(a,u,f,h),A_(u,f,h,s)}),c=u.abort;return u.abort=function(){return u.aborted=!0,c.apply(u,arguments)},u.uri=n.uri,u.requestType=n.requestType,u.requestTime=Date.now(),u};return e.original=!0,e},N2e=function(e){let t;const n=e.offset;return typeof e.offset=="bigint"||typeof e.length=="bigint"?t=me.BigInt(e.offset)+me.BigInt(e.length)-me.BigInt(1):t=e.offset+e.length-1,"bytes="+n+"-"+t},I_=function(e){const t={};return e.byterange&&(t.Range=N2e(e.byterange)),t},M2e=function(e,t){return e.start(t)+"-"+e.end(t)},$2e=function(e,t){const n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},L2e=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},UM=function(e){const t={};return Object.keys(e).forEach(n=>{const s=e[n];pR(s)?t[n]={bytes:s.buffer,byteOffset:s.byteOffset,byteLength:s.byteLength}:t[n]=s}),t},hg=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},HM=function(e){return e.resolvedUri},zM=e=>{const t=Array.prototype.slice.call(e),n=16;let s="",r,i;for(let a=0;a<t.length/n;a++)r=t.slice(a*n,a*n+n).map($2e).join(""),i=t.slice(a*n,a*n+n).map(L2e).join(""),s+=r+" "+i+`
|
||
`;return s},B2e=({bytes:e})=>zM(e),F2e=e=>{let t="",n;for(n=0;n<e.length;n++)t+=M2e(e,n)+" ";return t};var V2e=Object.freeze({__proto__:null,createTransferableMessage:UM,initSegmentId:hg,segmentKeyId:HM,hexDump:zM,tagDump:B2e,textRanges:F2e});const jM=.25,U2e=(e,t)=>{if(!t.dateTimeObject)return null;const n=t.videoTimingInfo.transmuxerPrependedSeconds,r=t.videoTimingInfo.transmuxedPresentationStart+n,i=e-r;return new Date(t.dateTimeObject.getTime()+i*1e3)},H2e=e=>e.transmuxedPresentationEnd-e.transmuxedPresentationStart-e.transmuxerPrependedSeconds,z2e=(e,t)=>{let n;try{n=new Date(e)}catch{return null}if(!t||!t.segments||t.segments.length===0)return null;let s=t.segments[0];if(n<new Date(s.dateTimeObject))return null;for(let l=0;l<t.segments.length-1;l++){s=t.segments[l];const u=new Date(t.segments[l+1].dateTimeObject);if(n<u)break}const r=t.segments[t.segments.length-1],i=r.dateTimeObject,a=r.videoTimingInfo?H2e(r.videoTimingInfo):r.duration+r.duration*jM,o=new Date(i.getTime()+a*1e3);return n>o?null:(n>new Date(i)&&(s=r),{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:ir.duration(t,t.mediaSequence+t.segments.indexOf(s)),type:s.videoTimingInfo?"accurate":"estimate"})},j2e=(e,t)=>{if(!t||!t.segments||t.segments.length===0)return null;let n=0,s;for(let i=0;i<t.segments.length&&(s=t.segments[i],n=s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationEnd:n+s.duration,!(e<=n));i++);const r=t.segments[t.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>n){if(e>n+r.duration*jM)return null;s=r}return{segment:s,estimatedStart:s.videoTimingInfo?s.videoTimingInfo.transmuxedPresentationStart:n-s.duration,type:s.videoTimingInfo?"accurate":"estimate"}},q2e=(e,t)=>{let n,s;try{n=new Date(e),s=new Date(t)}catch{}const r=n.getTime();return(s.getTime()-r)/1e3},W2e=e=>{if(!e.segments||e.segments.length===0)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0},K2e=({playlist:e,time:t=void 0,callback:n})=>{if(!n)throw new Error("getProgramTime: callback must be provided");if(!e||t===void 0)return n({message:"getProgramTime: playlist and time must be provided"});const s=j2e(t,e);if(!s)return n({message:"valid programTime was not found"});if(s.type==="estimate")return n({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:s.estimatedStart});const r={mediaSeconds:t},i=U2e(t,s.segment);return i&&(r.programDateTime=i.toISOString()),n(null,r)},qM=({programTime:e,playlist:t,retryCount:n=2,seekTo:s,pauseAfterSeek:r=!0,tech:i,callback:a})=>{if(!a)throw new Error("seekToProgramTime: callback must be provided");if(typeof e>"u"||!t||!s)return a({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!i.hasStarted_)return a({message:"player must be playing a live stream to start buffering"});if(!W2e(t))return a({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const o=z2e(e,t);if(!o)return a({message:`${e} was not found in the stream`});const l=o.segment,u=q2e(l.dateTimeObject,e);if(o.type==="estimate"){if(n===0)return a({message:`${e} is not buffered yet. Try again`});s(o.estimatedStart+u),i.one("seeked",()=>{qM({programTime:e,playlist:t,retryCount:n-1,seekTo:s,pauseAfterSeek:r,tech:i,callback:a})});return}const c=l.start+u,f=()=>a(null,i.currentTime());i.one("seeked",f),r&&i.pause(),s(c)},yy=(e,t)=>{if(e.readyState===4)return t()},G2e=(e,t,n,s)=>{let r=[],i,a=!1;const o=function(f,h,m,g){return h.abort(),a=!0,n(f,h,m,g)},l=function(f,h){if(a)return;if(f)return f.metadata=Al({requestType:s,request:h,error:f}),o(f,h,"",r);const m=h.responseText.substring(r&&r.byteLength||0,h.responseText.length);if(r=Jye(r,mR(m,!0)),i=i||Ld(r),r.length<10||i&&r.length<i+2)return yy(h,()=>o(f,h,"",r));const g=Dw(r);return g==="ts"&&r.length<188?yy(h,()=>o(f,h,"",r)):!g&&r.length<376?yy(h,()=>o(f,h,"",r)):o(null,h,g,r)},c=t({uri:e,beforeSend(f){f.overrideMimeType("text/plain; charset=x-user-defined"),f.addEventListener("progress",function({total:h,loaded:m}){return A_(f,null,{statusCode:f.status},l)})}},function(f,h){return A_(c,f,h,l)});return c},{EventTarget:Y2e}=He,SA=function(e,t){if(!FM(e,t)||e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx||e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(let n=0;n<e.segments.length;n++){const s=e.segments[n],r=t.segments[n];if(s.uri!==r.uri)return!1;if(!s.byterange&&!r.byterange)continue;const i=s.byterange,a=r.byterange;if(i&&!a||!i&&a||i.offset!==a.offset||i.length!==a.length)return!1}return!0},X2e=(e,t,n,s)=>{const r=s.attributes.NAME||n;return`placeholder-uri-${e}-${t}-${r}`},Q2e=({mainXml:e,srcUrl:t,clientOffset:n,sidxMapping:s,previousManifest:r})=>{const i=w_e(e,{manifestUri:t,clientOffset:n,sidxMapping:s,previousManifest:r});return MM(i,t,X2e),i},J2e=(e,t)=>{Xc(e,(n,s,r,i)=>{i in t.mediaGroups[s][r]||delete e.mediaGroups[s][r][i]})},Z2e=(e,t,n)=>{let s=!0,r=bn(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let i=0;i<t.playlists.length;i++){const a=t.playlists[i];if(a.sidx){const l=Tv(a.sidx);n&&n[l]&&n[l].sidx&&kw(a,n[l].sidx,a.sidx.resolvedUri)}const o=x_(r,a,SA);o&&(r=o,s=!1)}return Xc(t,(i,a,o,l)=>{if(i.playlists&&i.playlists.length){const u=i.playlists[0].id,c=x_(r,i.playlists[0],SA);c&&(r=c,l in r.mediaGroups[a][o]||(r.mediaGroups[a][o][l]=i),r.mediaGroups[a][o][l].playlists[0]=r.playlists[u],s=!1)}}),J2e(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(s=!1),s?null:r},ewe=(e,t)=>(!e.map&&!t.map||!!(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length,TA=(e,t)=>{const n={};for(const s in e){const i=e[s].sidx;if(i){const a=Tv(i);if(!t[a])break;const o=t[a].sidxInfo;ewe(o,i)&&(n[a]=t[a])}}return n},twe=(e,t)=>{let s=TA(e.playlists,t);return Xc(e,(r,i,a,o)=>{if(r.playlists&&r.playlists.length){const l=r.playlists;s=bn(s,TA(l,t))}}),s};class D_ extends Y2e{constructor(t,n,s={},r){super(),this.mainPlaylistLoader_=r||this,r||(this.isMain_=!0);const{withCredentials:i=!1}=s;if(this.vhs_=n,this.withCredentials=i,this.addMetadataToTextTrack=s.addMetadataToTextTrack,!t)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=ni("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=t,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=t}requestErrored_(t,n,s){if(!this.request)return!0;if(this.request=null,t)return this.error=typeof t=="object"&&!(t instanceof Error)?t:{status:n.status,message:"DASH request error at URL: "+n.uri,response:n.response,code:2,metadata:t.metadata},s&&(this.state=s),this.trigger("error"),!0}addSidxSegments_(t,n,s){const r=t.sidx&&Tv(t.sidx);if(!t.sidx||!r||this.mainPlaylistLoader_.sidxMapping_[r]){this.mediaRequest_=me.setTimeout(()=>s(!1),0);return}const i=fg(t.sidx.resolvedUri),a=(l,u)=>{if(this.requestErrored_(l,u,n))return;const c=this.mainPlaylistLoader_.sidxMapping_,{requestType:f}=u;let h;try{h=k_e(Ft(u.response).subarray(8))}catch(m){m.metadata=Al({requestType:f,request:u,parseFailure:!0}),this.requestErrored_(m,u,n);return}return c[r]={sidxInfo:t.sidx,sidx:h},kw(t,h,t.sidx.resolvedUri),s(!0)},o="dash-sidx";this.request=G2e(i,this.vhs_.xhr,(l,u,c,f)=>{if(l)return a(l,u);if(!c||c!=="mp4"){const g=c||"unknown";return a({status:u.status,message:`Unsupported ${g} container type for sidx segment at URL: ${i}`,response:"",playlist:t,internal:!0,playlistExclusionDuration:1/0,code:2},u)}const{offset:h,length:m}=t.sidx.byterange;if(f.length>=m+h)return a(l,{response:f.subarray(h,h+m),status:u.status,uri:u.uri});this.request=this.vhs_.xhr({uri:i,responseType:"arraybuffer",requestType:"dash-sidx",headers:I_({byterange:t.sidx.byterange})},a)},o)}dispose(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},me.clearTimeout(this.minimumUpdatePeriodTimeout_),me.clearTimeout(this.mediaRequest_),me.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const t=this.request;this.request=null,t.onreadystatechange=null,t.abort()}}media(t){if(!t)return this.media_;if(this.state==="HAVE_NOTHING")throw new Error("Cannot switch media playlist from "+this.state);const n=this.state;if(typeof t=="string"){if(!this.mainPlaylistLoader_.main.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.mainPlaylistLoader_.main.playlists[t]}const s=!this.media_||t.id!==this.media_.id;if(s&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList){this.state="HAVE_METADATA",this.media_=t,s&&(this.trigger("mediachanging"),this.trigger("mediachange"));return}s&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,n,r=>{this.haveMetadata({startingState:n,playlist:t})}))}haveMetadata({startingState:t,playlist:n}){this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),t==="HAVE_MAIN_MANIFEST"?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),me.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(me.clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),this.state==="HAVE_NOTHING"&&(this.started=!1)}load(t){me.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const n=this.media();if(t){const s=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=me.setTimeout(()=>this.load(),s);return}if(!this.started){this.start();return}n&&!n.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist")}start(){if(this.started=!0,!this.isMain_){this.mediaRequest_=me.setTimeout(()=>this.haveMain_(),0);return}this.requestMain_((t,n)=>{this.haveMain_(),!this.hasPendingRequest()&&!this.media_&&this.media(this.mainPlaylistLoader_.main.playlists[0])})}requestMain_(t){const n={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestrequeststart",metadata:n}),this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials,requestType:"dash-manifest"},(s,r)=>{if(s){const{requestType:a}=r;s.metadata=Al({requestType:a,request:r,error:s})}if(this.requestErrored_(s,r)){this.state==="HAVE_NOTHING"&&(this.started=!1);return}this.trigger({type:"manifestrequestcomplete",metadata:n});const i=r.responseText!==this.mainPlaylistLoader_.mainXml_;if(this.mainPlaylistLoader_.mainXml_=r.responseText,r.responseHeaders&&r.responseHeaders.date?this.mainLoaded_=Date.parse(r.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=fg(this.mainPlaylistLoader_.srcUrl,r),i){this.handleMain_(),this.syncClientServerClock_(()=>t(r,i));return}return t(r,i)})}syncClientServerClock_(t){const n=S_e(this.mainPlaylistLoader_.mainXml_);if(n===null)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),t();if(n.method==="DIRECT")return this.mainPlaylistLoader_.clientOffset_=n.value-Date.now(),t();this.request=this.vhs_.xhr({uri:rr(this.mainPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials,requestType:"dash-clock-sync"},(s,r)=>{if(!this.request)return;if(s){const{requestType:a}=r;return this.error.metadata=Al({requestType:a,request:r,error:s}),this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),t()}let i;n.method==="HEAD"?!r.responseHeaders||!r.responseHeaders.date?i=this.mainLoaded_:i=Date.parse(r.responseHeaders.date):i=Date.parse(r.responseText),this.mainPlaylistLoader_.clientOffset_=i-Date.now(),t()})}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const t=this.mainPlaylistLoader_.main,n={manifestInfo:{uri:this.mainPlaylistLoader_.srcUrl}};this.trigger({type:"manifestparsestart",metadata:n});let s;try{s=Q2e({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:t})}catch(i){this.error=i,this.error.metadata={errorType:He.Error.StreamingDashManifestParserError,error:i},this.trigger("error")}t&&(s=Z2e(t,s,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=s||t;const r=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];if(r&&r!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=r),(!t||s&&s.minimumUpdatePeriod!==t.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(s),s){const{duration:i,endList:a}=s,o=[];s.playlists.forEach(u=>{o.push({id:u.id,bandwidth:u.attributes.BANDWIDTH,resolution:u.attributes.RESOLUTION,codecs:u.attributes.CODECS})});const l={duration:i,isLive:!a,renditions:o};n.parsedManifest=l,this.trigger({type:"manifestparsecomplete",metadata:n})}return!!s}updateMinimumUpdatePeriodTimeout_(){const t=this.mainPlaylistLoader_;t.createMupOnMedia_&&(t.off("loadedmetadata",t.createMupOnMedia_),t.createMupOnMedia_=null),t.minimumUpdatePeriodTimeout_&&(me.clearTimeout(t.minimumUpdatePeriodTimeout_),t.minimumUpdatePeriodTimeout_=null);let n=t.main&&t.main.minimumUpdatePeriod;if(n===0&&(t.media()?n=t.media().targetDuration*1e3:(t.createMupOnMedia_=t.updateMinimumUpdatePeriodTimeout_,t.one("loadedmetadata",t.createMupOnMedia_))),typeof n!="number"||n<=0){n<0&&this.logger_(`found invalid minimumUpdatePeriod of ${n}, not setting a timeout`);return}this.createMUPTimeout_(n)}createMUPTimeout_(t){const n=this.mainPlaylistLoader_;n.minimumUpdatePeriodTimeout_=me.setTimeout(()=>{n.minimumUpdatePeriodTimeout_=null,n.trigger("minimumUpdatePeriod"),n.createMUPTimeout_(t)},t)}refreshXml_(){this.requestMain_((t,n)=>{n&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=twe(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,s=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(t){if(!t)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const n=this.mainPlaylistLoader_.main.playlists,s=!this.media_||this.media_!==n[t];if(s?this.media_=n[t]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const r=()=>{this.media().endList||(this.mediaUpdateTimeout=me.setTimeout(()=>{this.trigger("mediaupdatetimeout"),r()},k_(this.media(),!!s)))};r()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(t){if(t&&this.mainPlaylistLoader_.main.eventStream){const n=this.mainPlaylistLoader_.main.eventStream.map(s=>({cueTime:s.start,frames:[{data:s.messageData}]}));this.addMetadataToTextTrack("EventStream",n,this.mainPlaylistLoader_.main.duration)}}getKeyIdSet(t){if(t.contentProtection){const n=new Set;for(const s in t.contentProtection){const r=t.contentProtection[s].attributes["cenc:default_KID"];r&&n.add(r.replace(/-/g,"").toLowerCase())}return n}}}var hs={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30};const nwe=e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer},WM=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},swe=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch{const n=new BlobBuilder;return n.append(e),URL.createObjectURL(n.getBlob())}},KM=function(e){return function(){const t=swe(e),n=WM(new Worker(t));n.objURL=t;const s=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),s.call(this)},n}},GM=function(e){return`var browserWorkerPolyFill = ${WM.toString()};
|
||
browserWorkerPolyFill(self);
|
||
`+e},YM=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},rwe=GM(YM(function(){var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=function(){this.init=function(){var w={};this.on=function(A,R){w[A]||(w[A]=[]),w[A]=w[A].concat(R)},this.off=function(A,R){var I;return w[A]?(I=w[A].indexOf(R),w[A]=w[A].slice(),w[A].splice(I,1),I>-1):!1},this.trigger=function(A){var R,I,V,G;if(R=w[A],!!R)if(arguments.length===2)for(V=R.length,I=0;I<V;++I)R[I].call(this,arguments[1]);else{for(G=[],I=arguments.length,I=1;I<arguments.length;++I)G.push(arguments[I]);for(V=R.length,I=0;I<V;++I)R[I].apply(this,G)}},this.dispose=function(){w={}}}};t.prototype.pipe=function(w){return this.on("data",function(A){w.push(A)}),this.on("done",function(A){w.flush(A)}),this.on("partialdone",function(A){w.partialFlush(A)}),this.on("endedtimeline",function(A){w.endTimeline(A)}),this.on("reset",function(A){w.reset(A)}),w},t.prototype.push=function(w){this.trigger("data",w)},t.prototype.flush=function(w){this.trigger("done",w)},t.prototype.partialFlush=function(w){this.trigger("partialdone",w)},t.prototype.endTimeline=function(w){this.trigger("endedtimeline",w)},t.prototype.reset=function(w){this.trigger("reset",w)};var n=t,s=Math.pow(2,32),r=function(w){var A=new DataView(w.buffer,w.byteOffset,w.byteLength),R;return A.getBigUint64?(R=A.getBigUint64(0),R<Number.MAX_SAFE_INTEGER?Number(R):R):A.getUint32(0)*s+A.getUint32(4)},i={getUint64:r,MAX_UINT32:s},a=i.MAX_UINT32,o,l,u,c,f,h,m,g,p,v,y,_,b,T,S,C,D,N,$,L,z,U,W,K,X,B,Q,Y,F,H,Z,se,ne,we,De,Ee;(function(){var w;if(W={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(w in W)W.hasOwnProperty(w)&&(W[w]=[w.charCodeAt(0),w.charCodeAt(1),w.charCodeAt(2),w.charCodeAt(3)]);K=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),B=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),X=new Uint8Array([0,0,0,1]),Q=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]),Y=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]),F={video:Q,audio:Y},se=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Z=new Uint8Array([0,0,0,0,0,0,0,0]),ne=new Uint8Array([0,0,0,0,0,0,0,0]),we=ne,De=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ee=ne,H=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}})(),o=function(w){var A=[],R=0,I,V,G;for(I=1;I<arguments.length;I++)A.push(arguments[I]);for(I=A.length;I--;)R+=A[I].byteLength;for(V=new Uint8Array(R+8),G=new DataView(V.buffer,V.byteOffset,V.byteLength),G.setUint32(0,V.byteLength),V.set(w,4),I=0,R=8;I<A.length;I++)V.set(A[I],R),R+=A[I].byteLength;return V},l=function(){return o(W.dinf,o(W.dref,se))},u=function(w){return o(W.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,w.audioobjecttype<<3|w.samplingfrequencyindex>>>1,w.samplingfrequencyindex<<7|w.channelcount<<3,6,1,2]))},c=function(){return o(W.ftyp,K,X,K,B)},C=function(w){return o(W.hdlr,F[w])},f=function(w){return o(W.mdat,w)},S=function(w){var A=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,w.duration>>>24&255,w.duration>>>16&255,w.duration>>>8&255,w.duration&255,85,196,0,0]);return w.samplerate&&(A[12]=w.samplerate>>>24&255,A[13]=w.samplerate>>>16&255,A[14]=w.samplerate>>>8&255,A[15]=w.samplerate&255),o(W.mdhd,A)},T=function(w){return o(W.mdia,S(w),C(w.type),m(w))},h=function(w){return o(W.mfhd,new Uint8Array([0,0,0,0,(w&4278190080)>>24,(w&16711680)>>16,(w&65280)>>8,w&255]))},m=function(w){return o(W.minf,w.type==="video"?o(W.vmhd,H):o(W.smhd,Z),l(),N(w))},g=function(w,A){for(var R=[],I=A.length;I--;)R[I]=L(A[I]);return o.apply(null,[W.moof,h(w)].concat(R))},p=function(w){for(var A=w.length,R=[];A--;)R[A]=_(w[A]);return o.apply(null,[W.moov,y(4294967295)].concat(R).concat(v(w)))},v=function(w){for(var A=w.length,R=[];A--;)R[A]=z(w[A]);return o.apply(null,[W.mvex].concat(R))},y=function(w){var A=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(w&4278190080)>>24,(w&16711680)>>16,(w&65280)>>8,w&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return o(W.mvhd,A)},D=function(w){var A=w.samples||[],R=new Uint8Array(4+A.length),I,V;for(V=0;V<A.length;V++)I=A[V].flags,R[V+4]=I.dependsOn<<4|I.isDependedOn<<2|I.hasRedundancy;return o(W.sdtp,R)},N=function(w){return o(W.stbl,$(w),o(W.stts,Ee),o(W.stsc,we),o(W.stsz,De),o(W.stco,ne))},function(){var w,A;$=function(R){return o(W.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),R.type==="video"?w(R):A(R))},w=function(R){var I=R.sps||[],V=R.pps||[],G=[],ie=[],ue,he;for(ue=0;ue<I.length;ue++)G.push((I[ue].byteLength&65280)>>>8),G.push(I[ue].byteLength&255),G=G.concat(Array.prototype.slice.call(I[ue]));for(ue=0;ue<V.length;ue++)ie.push((V[ue].byteLength&65280)>>>8),ie.push(V[ue].byteLength&255),ie=ie.concat(Array.prototype.slice.call(V[ue]));if(he=[W.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(R.width&65280)>>8,R.width&255,(R.height&65280)>>8,R.height&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o(W.avcC,new Uint8Array([1,R.profileIdc,R.profileCompatibility,R.levelIdc,255].concat([I.length],G,[V.length],ie))),o(W.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],R.sarRatio){var ye=R.sarRatio[0],$e=R.sarRatio[1];he.push(o(W.pasp,new Uint8Array([(ye&4278190080)>>24,(ye&16711680)>>16,(ye&65280)>>8,ye&255,($e&4278190080)>>24,($e&16711680)>>16,($e&65280)>>8,$e&255])))}return o.apply(null,he)},A=function(R){return o(W.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(R.channelcount&65280)>>8,R.channelcount&255,(R.samplesize&65280)>>8,R.samplesize&255,0,0,0,0,(R.samplerate&65280)>>8,R.samplerate&255,0,0]),u(R))}}(),b=function(w){var A=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(w.id&4278190080)>>24,(w.id&16711680)>>16,(w.id&65280)>>8,w.id&255,0,0,0,0,(w.duration&4278190080)>>24,(w.duration&16711680)>>16,(w.duration&65280)>>8,w.duration&255,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(w.width&65280)>>8,w.width&255,0,0,(w.height&65280)>>8,w.height&255,0,0]);return o(W.tkhd,A)},L=function(w){var A,R,I,V,G,ie,ue;return A=o(W.tfhd,new Uint8Array([0,0,0,58,(w.id&4278190080)>>24,(w.id&16711680)>>16,(w.id&65280)>>8,w.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),ie=Math.floor(w.baseMediaDecodeTime/a),ue=Math.floor(w.baseMediaDecodeTime%a),R=o(W.tfdt,new Uint8Array([1,0,0,0,ie>>>24&255,ie>>>16&255,ie>>>8&255,ie&255,ue>>>24&255,ue>>>16&255,ue>>>8&255,ue&255])),G=32+20+8+16+8+8,w.type==="audio"?(I=U(w,G),o(W.traf,A,R,I)):(V=D(w),I=U(w,V.length+G),o(W.traf,A,R,I,V))},_=function(w){return w.duration=w.duration||4294967295,o(W.trak,b(w),T(w))},z=function(w){var A=new Uint8Array([0,0,0,0,(w.id&4278190080)>>24,(w.id&16711680)>>16,(w.id&65280)>>8,w.id&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return w.type!=="video"&&(A[A.length-1]=0),o(W.trex,A)},function(){var w,A,R;R=function(I,V){var G=0,ie=0,ue=0,he=0;return I.length&&(I[0].duration!==void 0&&(G=1),I[0].size!==void 0&&(ie=2),I[0].flags!==void 0&&(ue=4),I[0].compositionTimeOffset!==void 0&&(he=8)),[0,0,G|ie|ue|he,1,(I.length&4278190080)>>>24,(I.length&16711680)>>>16,(I.length&65280)>>>8,I.length&255,(V&4278190080)>>>24,(V&16711680)>>>16,(V&65280)>>>8,V&255]},A=function(I,V){var G,ie,ue,he,ye,$e;for(he=I.samples||[],V+=8+12+16*he.length,ue=R(he,V),ie=new Uint8Array(ue.length+he.length*16),ie.set(ue),G=ue.length,$e=0;$e<he.length;$e++)ye=he[$e],ie[G++]=(ye.duration&4278190080)>>>24,ie[G++]=(ye.duration&16711680)>>>16,ie[G++]=(ye.duration&65280)>>>8,ie[G++]=ye.duration&255,ie[G++]=(ye.size&4278190080)>>>24,ie[G++]=(ye.size&16711680)>>>16,ie[G++]=(ye.size&65280)>>>8,ie[G++]=ye.size&255,ie[G++]=ye.flags.isLeading<<2|ye.flags.dependsOn,ie[G++]=ye.flags.isDependedOn<<6|ye.flags.hasRedundancy<<4|ye.flags.paddingValue<<1|ye.flags.isNonSyncSample,ie[G++]=ye.flags.degradationPriority&61440,ie[G++]=ye.flags.degradationPriority&15,ie[G++]=(ye.compositionTimeOffset&4278190080)>>>24,ie[G++]=(ye.compositionTimeOffset&16711680)>>>16,ie[G++]=(ye.compositionTimeOffset&65280)>>>8,ie[G++]=ye.compositionTimeOffset&255;return o(W.trun,ie)},w=function(I,V){var G,ie,ue,he,ye,$e;for(he=I.samples||[],V+=8+12+8*he.length,ue=R(he,V),G=new Uint8Array(ue.length+he.length*8),G.set(ue),ie=ue.length,$e=0;$e<he.length;$e++)ye=he[$e],G[ie++]=(ye.duration&4278190080)>>>24,G[ie++]=(ye.duration&16711680)>>>16,G[ie++]=(ye.duration&65280)>>>8,G[ie++]=ye.duration&255,G[ie++]=(ye.size&4278190080)>>>24,G[ie++]=(ye.size&16711680)>>>16,G[ie++]=(ye.size&65280)>>>8,G[ie++]=ye.size&255;return o(W.trun,G)},U=function(I,V){return I.type==="audio"?w(I,V):A(I,V)}}();var te={ftyp:c,mdat:f,moof:g,moov:p,initSegment:function(w){var A=c(),R=p(w),I;return I=new Uint8Array(A.byteLength+R.byteLength),I.set(A),I.set(R,A.byteLength),I}},ge=function(w){var A,R,I=[],V=[];for(V.byteLength=0,V.nalCount=0,V.duration=0,I.byteLength=0,A=0;A<w.length;A++)R=w[A],R.nalUnitType==="access_unit_delimiter_rbsp"?(I.length&&(I.duration=R.dts-I.dts,V.byteLength+=I.byteLength,V.nalCount+=I.length,V.duration+=I.duration,V.push(I)),I=[R],I.byteLength=R.data.byteLength,I.pts=R.pts,I.dts=R.dts):(R.nalUnitType==="slice_layer_without_partitioning_rbsp_idr"&&(I.keyFrame=!0),I.duration=R.dts-I.dts,I.byteLength+=R.data.byteLength,I.push(R));return V.length&&(!I.duration||I.duration<=0)&&(I.duration=V[V.length-1].duration),V.byteLength+=I.byteLength,V.nalCount+=I.length,V.duration+=I.duration,V.push(I),V},pe=function(w){var A,R,I=[],V=[];for(I.byteLength=0,I.nalCount=0,I.duration=0,I.pts=w[0].pts,I.dts=w[0].dts,V.byteLength=0,V.nalCount=0,V.duration=0,V.pts=w[0].pts,V.dts=w[0].dts,A=0;A<w.length;A++)R=w[A],R.keyFrame?(I.length&&(V.push(I),V.byteLength+=I.byteLength,V.nalCount+=I.nalCount,V.duration+=I.duration),I=[R],I.nalCount=R.length,I.byteLength=R.byteLength,I.pts=R.pts,I.dts=R.dts,I.duration=R.duration):(I.duration+=R.duration,I.nalCount+=R.length,I.byteLength+=R.byteLength,I.push(R));return V.length&&I.duration<=0&&(I.duration=V[V.length-1].duration),V.byteLength+=I.byteLength,V.nalCount+=I.nalCount,V.duration+=I.duration,V.push(I),V},Oe=function(w){var A;return!w[0][0].keyFrame&&w.length>1&&(A=w.shift(),w.byteLength-=A.byteLength,w.nalCount-=A.nalCount,w[0][0].dts=A.dts,w[0][0].pts=A.pts,w[0][0].duration+=A.duration),w},Pe=function(){return{size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}}},ve=function(w,A){var R=Pe();return R.dataOffset=A,R.compositionTimeOffset=w.pts-w.dts,R.duration=w.duration,R.size=4*w.length,R.size+=w.byteLength,w.keyFrame&&(R.flags.dependsOn=2,R.flags.isNonSyncSample=0),R},ee=function(w,A){var R,I,V,G,ie,ue=A||0,he=[];for(R=0;R<w.length;R++)for(G=w[R],I=0;I<G.length;I++)ie=G[I],V=ve(ie,ue),ue+=V.size,he.push(V);return he},re=function(w){var A,R,I,V,G,ie,ue=0,he=w.byteLength,ye=w.nalCount,$e=he+4*ye,We=new Uint8Array($e),Et=new DataView(We.buffer);for(A=0;A<w.length;A++)for(V=w[A],R=0;R<V.length;R++)for(G=V[R],I=0;I<G.length;I++)ie=G[I],Et.setUint32(ue,ie.data.byteLength),ue+=4,We.set(ie.data,ue),ue+=ie.data.byteLength;return We},Se=function(w,A){var R,I=A||0,V=[];return R=ve(w,I),V.push(R),V},Le=function(w){var A,R,I=0,V=w.byteLength,G=w.length,ie=V+4*G,ue=new Uint8Array(ie),he=new DataView(ue.buffer);for(A=0;A<w.length;A++)R=w[A],he.setUint32(I,R.data.byteLength),I+=4,ue.set(R.data,I),I+=R.data.byteLength;return ue},_e={groupNalsIntoFrames:ge,groupFramesIntoGops:pe,extendFirstKeyFrame:Oe,generateSampleTable:ee,concatenateNalData:re,generateSampleTableForFrame:Se,concatenateNalDataForFrame:Le},ke=[33,16,5,32,164,27],Be=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],Ie=function(w){for(var A=[];w--;)A.push(0);return A},ze=function(w){return Object.keys(w).reduce(function(A,R){return A[R]=new Uint8Array(w[R].reduce(function(I,V){return I.concat(V)},[])),A},{})},Ve,Ze=function(){if(!Ve){var w={96e3:[ke,[227,64],Ie(154),[56]],88200:[ke,[231],Ie(170),[56]],64e3:[ke,[248,192],Ie(240),[56]],48e3:[ke,[255,192],Ie(268),[55,148,128],Ie(54),[112]],44100:[ke,[255,192],Ie(268),[55,163,128],Ie(84),[112]],32e3:[ke,[255,192],Ie(268),[55,234],Ie(226),[112]],24e3:[ke,[255,192],Ie(268),[55,255,128],Ie(268),[111,112],Ie(126),[224]],16e3:[ke,[255,192],Ie(268),[55,255,128],Ie(268),[111,255],Ie(269),[223,108],Ie(195),[1,192]],12e3:[Be,Ie(268),[3,127,248],Ie(268),[6,255,240],Ie(268),[13,255,224],Ie(268),[27,253,128],Ie(259),[56]],11025:[Be,Ie(268),[3,127,248],Ie(268),[6,255,240],Ie(268),[13,255,224],Ie(268),[27,255,192],Ie(268),[55,175,128],Ie(108),[112]],8e3:[Be,Ie(268),[3,121,16],Ie(47),[7]]};Ve=ze(w)}return Ve},je=9e4,Ae,nt,_t,xt,It,Kt,pn;Ae=function(w){return w*je},nt=function(w,A){return w*A},_t=function(w){return w/je},xt=function(w,A){return w/A},It=function(w,A){return Ae(xt(w,A))},Kt=function(w,A){return nt(_t(w),A)},pn=function(w,A,R){return _t(R?w:w-A)};var be={ONE_SECOND_IN_TS:je,secondsToVideoTs:Ae,secondsToAudioTs:nt,videoTsToSeconds:_t,audioTsToSeconds:xt,audioTsToVideoTs:It,videoTsToAudioTs:Kt,metadataTsToSeconds:pn},et=Ze,le=be,Ne=function(w){var A,R,I=0;for(A=0;A<w.length;A++)R=w[A],I+=R.data.byteLength;return I},Me=function(w,A,R,I){var V,G=0,ie=0,ue=0,he=0,ye,$e,We;if(A.length&&(V=le.audioTsToVideoTs(w.baseMediaDecodeTime,w.samplerate),G=Math.ceil(le.ONE_SECOND_IN_TS/(w.samplerate/1024)),R&&I&&(ie=V-Math.max(R,I),ue=Math.floor(ie/G),he=ue*G),!(ue<1||he>le.ONE_SECOND_IN_TS/2))){for(ye=et()[w.samplerate],ye||(ye=A[0].data),$e=0;$e<ue;$e++)We=A[0],A.splice(0,0,{data:ye,dts:We.dts-G,pts:We.pts-G});return w.baseMediaDecodeTime-=Math.floor(le.videoTsToAudioTs(he,w.samplerate)),he}},vt=function(w,A,R){return A.minSegmentDts>=R?w:(A.minSegmentDts=1/0,w.filter(function(I){return I.dts>=R?(A.minSegmentDts=Math.min(A.minSegmentDts,I.dts),A.minSegmentPts=A.minSegmentDts,!0):!1}))},qt=function(w){var A,R,I=[];for(A=0;A<w.length;A++)R=w[A],I.push({size:R.data.byteLength,duration:1024});return I},Ce=function(w){var A,R,I=0,V=new Uint8Array(Ne(w));for(A=0;A<w.length;A++)R=w[A],V.set(R.data,I),I+=R.data.byteLength;return V},mt={prefixWithSilence:Me,trimAdtsFramesByEarliestDts:vt,generateSampleTable:qt,concatenateFrameData:Ce},Vt=be.ONE_SECOND_IN_TS,Qt=function(w,A){typeof A.pts=="number"&&(w.timelineStartInfo.pts===void 0&&(w.timelineStartInfo.pts=A.pts),w.minSegmentPts===void 0?w.minSegmentPts=A.pts:w.minSegmentPts=Math.min(w.minSegmentPts,A.pts),w.maxSegmentPts===void 0?w.maxSegmentPts=A.pts:w.maxSegmentPts=Math.max(w.maxSegmentPts,A.pts)),typeof A.dts=="number"&&(w.timelineStartInfo.dts===void 0&&(w.timelineStartInfo.dts=A.dts),w.minSegmentDts===void 0?w.minSegmentDts=A.dts:w.minSegmentDts=Math.min(w.minSegmentDts,A.dts),w.maxSegmentDts===void 0?w.maxSegmentDts=A.dts:w.maxSegmentDts=Math.max(w.maxSegmentDts,A.dts))},Wt=function(w){delete w.minSegmentDts,delete w.maxSegmentDts,delete w.minSegmentPts,delete w.maxSegmentPts},en=function(w,A){var R,I,V=w.minSegmentDts;return A||(V-=w.timelineStartInfo.dts),R=w.timelineStartInfo.baseMediaDecodeTime,R+=V,R=Math.max(0,R),w.type==="audio"&&(I=w.samplerate/Vt,R*=I,R=Math.floor(R)),R},ws={clearDtsInfo:Wt,calculateTrackBaseMediaDecodeTime:en,collectDtsInfo:Qt},qo=4,Ql=128,Wo=function(w){for(var A=0,R={payloadType:-1,payloadSize:0},I=0,V=0;A<w.byteLength&&w[A]!==Ql;){for(;w[A]===255;)I+=255,A++;for(I+=w[A++];w[A]===255;)V+=255,A++;if(V+=w[A++],!R.payload&&I===qo){var G=String.fromCharCode(w[A+3],w[A+4],w[A+5],w[A+6]);if(G==="GA94"){R.payloadType=I,R.payloadSize=V,R.payload=w.subarray(A,A+V);break}else R.payload=void 0}A+=V,I=0,V=0}return R},Ua=function(w){return w.payload[0]!==181||(w.payload[1]<<8|w.payload[2])!==49||String.fromCharCode(w.payload[3],w.payload[4],w.payload[5],w.payload[6])!=="GA94"||w.payload[7]!==3?null:w.payload.subarray(8,w.payload.length-1)},Jl=function(w,A){var R=[],I,V,G,ie;if(!(A[0]&64))return R;for(V=A[0]&31,I=0;I<V;I++)G=I*3,ie={type:A[G+2]&3,pts:w},A[G+2]&4&&(ie.ccData=A[G+3]<<8|A[G+4],R.push(ie));return R},Qc=function(w){for(var A=w.byteLength,R=[],I=1,V,G;I<A-2;)w[I]===0&&w[I+1]===0&&w[I+2]===3?(R.push(I+2),I+=2):I++;if(R.length===0)return w;V=A-R.length,G=new Uint8Array(V);var ie=0;for(I=0;I<V;ie++,I++)ie===R[0]&&(ie++,R.shift()),G[I]=w[ie];return G},ca={parseSei:Wo,parseUserData:Ua,parseCaptionPackets:Jl,discardEmulationPreventionBytes:Qc,USER_DATA_REGISTERED_ITU_T_T35:qo},Ha=n,za=ca,fs=function(w){w=w||{},fs.prototype.init.call(this),this.parse708captions_=typeof w.parse708captions=="boolean"?w.parse708captions:!0,this.captionPackets_=[],this.ccStreams_=[new vn(0,0),new vn(0,1),new vn(1,0),new vn(1,1)],this.parse708captions_&&(this.cc708Stream_=new Lt({captionServices:w.captionServices})),this.reset(),this.ccStreams_.forEach(function(A){A.on("data",this.trigger.bind(this,"data")),A.on("partialdone",this.trigger.bind(this,"partialdone")),A.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};fs.prototype=new Ha,fs.prototype.push=function(w){var A,R,I;if(w.nalUnitType==="sei_rbsp"&&(A=za.parseSei(w.escapedRBSP),!!A.payload&&A.payloadType===za.USER_DATA_REGISTERED_ITU_T_T35&&(R=za.parseUserData(A),!!R))){if(w.dts<this.latestDts_){this.ignoreNextEqualDts_=!0;return}else if(w.dts===this.latestDts_&&this.ignoreNextEqualDts_){this.numSameDts_--,this.numSameDts_||(this.ignoreNextEqualDts_=!1);return}I=za.parseCaptionPackets(w.pts,R),this.captionPackets_=this.captionPackets_.concat(I),this.latestDts_!==w.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=w.dts}},fs.prototype.flushCCStreams=function(w){this.ccStreams_.forEach(function(A){return w==="flush"?A.flush():A.partialFlush()},this)},fs.prototype.flushStream=function(w){if(!this.captionPackets_.length){this.flushCCStreams(w);return}this.captionPackets_.forEach(function(A,R){A.presortIndex=R}),this.captionPackets_.sort(function(A,R){return A.pts===R.pts?A.presortIndex-R.presortIndex:A.pts-R.pts}),this.captionPackets_.forEach(function(A){A.type<2?this.dispatchCea608Packet(A):this.dispatchCea708Packet(A)},this),this.captionPackets_.length=0,this.flushCCStreams(w)},fs.prototype.flush=function(){return this.flushStream("flush")},fs.prototype.partialFlush=function(){return this.flushStream("partialFlush")},fs.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(w){w.reset()})},fs.prototype.dispatchCea608Packet=function(w){this.setsTextOrXDSActive(w)?this.activeCea608Channel_[w.type]=null:this.setsChannel1Active(w)?this.activeCea608Channel_[w.type]=0:this.setsChannel2Active(w)&&(this.activeCea608Channel_[w.type]=1),this.activeCea608Channel_[w.type]!==null&&this.ccStreams_[(w.type<<1)+this.activeCea608Channel_[w.type]].push(w)},fs.prototype.setsChannel1Active=function(w){return(w.ccData&30720)===4096},fs.prototype.setsChannel2Active=function(w){return(w.ccData&30720)===6144},fs.prototype.setsTextOrXDSActive=function(w){return(w.ccData&28928)===256||(w.ccData&30974)===4138||(w.ccData&30974)===6186},fs.prototype.dispatchCea708Packet=function(w){this.parse708captions_&&this.cc708Stream_.push(w)};var Jc={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Zc=function(w){var A=Jc[w]||w;return w&4096&&w===A?"":String.fromCharCode(A)},qe=function(w){return 32<=w&&w<=127||160<=w&&w<=255},ct=function(w){this.windowNum=w,this.reset()};ct.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},ct.prototype.getText=function(){return this.rows.join(`
|
||
`)},ct.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},ct.prototype.newLine=function(w){for(this.rows.length>=this.virtualRowCount&&typeof this.beforeRowOverflow=="function"&&this.beforeRowOverflow(w),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},ct.prototype.isEmpty=function(){return this.rows.length===0?!0:this.rows.length===1?this.rows[0]==="":!1},ct.prototype.addText=function(w){this.rows[this.rowIdx]+=w},ct.prototype.backspace=function(){if(!this.isEmpty()){var w=this.rows[this.rowIdx];this.rows[this.rowIdx]=w.substr(0,w.length-1)}};var Jt=function(w,A,R){this.serviceNum=w,this.text="",this.currentWindow=new ct(-1),this.windows=[],this.stream=R,typeof A=="string"&&this.createTextDecoder(A)};Jt.prototype.init=function(w,A){this.startPts=w;for(var R=0;R<8;R++)this.windows[R]=new ct(R),typeof A=="function"&&(this.windows[R].beforeRowOverflow=A)},Jt.prototype.setCurrentWindow=function(w){this.currentWindow=this.windows[w]},Jt.prototype.createTextDecoder=function(w){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(w)}catch(A){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+w+" encoding. "+A})}};var Lt=function(w){w=w||{},Lt.prototype.init.call(this);var A=this,R=w.captionServices||{},I={},V;Object.keys(R).forEach(G=>{V=R[G],/^SERVICE/.test(G)&&(I[G]=V.encoding)}),this.serviceEncodings=I,this.current708Packet=null,this.services={},this.push=function(G){G.type===3?(A.new708Packet(),A.add708Bytes(G)):(A.current708Packet===null&&A.new708Packet(),A.add708Bytes(G))}};Lt.prototype=new Ha,Lt.prototype.new708Packet=function(){this.current708Packet!==null&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Lt.prototype.add708Bytes=function(w){var A=w.ccData,R=A>>>8,I=A&255;this.current708Packet.ptsVals.push(w.pts),this.current708Packet.data.push(R),this.current708Packet.data.push(I)},Lt.prototype.push708Packet=function(){var w=this.current708Packet,A=w.data,R=null,I=null,V=0,G=A[V++];for(w.seq=G>>6,w.sizeCode=G&63;V<A.length;V++)G=A[V++],R=G>>5,I=G&31,R===7&&I>0&&(G=A[V++],R=G),this.pushServiceBlock(R,V,I),I>0&&(V+=I-1)},Lt.prototype.pushServiceBlock=function(w,A,R){var I,V=A,G=this.current708Packet.data,ie=this.services[w];for(ie||(ie=this.initService(w,V));V<A+R&&V<G.length;V++)I=G[V],qe(I)?V=this.handleText(V,ie):I===24?V=this.multiByteCharacter(V,ie):I===16?V=this.extendedCommands(V,ie):128<=I&&I<=135?V=this.setCurrentWindow(V,ie):152<=I&&I<=159?V=this.defineWindow(V,ie):I===136?V=this.clearWindows(V,ie):I===140?V=this.deleteWindows(V,ie):I===137?V=this.displayWindows(V,ie):I===138?V=this.hideWindows(V,ie):I===139?V=this.toggleWindows(V,ie):I===151?V=this.setWindowAttributes(V,ie):I===144?V=this.setPenAttributes(V,ie):I===145?V=this.setPenColor(V,ie):I===146?V=this.setPenLocation(V,ie):I===143?ie=this.reset(V,ie):I===8?ie.currentWindow.backspace():I===12?ie.currentWindow.clearText():I===13?ie.currentWindow.pendingNewLine=!0:I===14?ie.currentWindow.clearText():I===141&&V++},Lt.prototype.extendedCommands=function(w,A){var R=this.current708Packet.data,I=R[++w];return qe(I)&&(w=this.handleText(w,A,{isExtended:!0})),w},Lt.prototype.getPts=function(w){return this.current708Packet.ptsVals[Math.floor(w/2)]},Lt.prototype.initService=function(w,A){var I="SERVICE"+w,R=this,I,V;return I in this.serviceEncodings&&(V=this.serviceEncodings[I]),this.services[w]=new Jt(w,V,R),this.services[w].init(this.getPts(A),function(G){R.flushDisplayed(G,R.services[w])}),this.services[w]},Lt.prototype.handleText=function(w,A,R){var I=R&&R.isExtended,V=R&&R.isMultiByte,G=this.current708Packet.data,ie=I?4096:0,ue=G[w],he=G[w+1],ye=A.currentWindow,$e,We;function Et(rt){return rt.map(Ut=>("0"+(Ut&255).toString(16)).slice(-2)).join("")}if(V?(We=[ue,he],w++):We=[ue],A.textDecoder_&&!I)$e=A.textDecoder_.decode(new Uint8Array(We));else if(V){const rt=Et(We);$e=String.fromCharCode(parseInt(rt,16))}else $e=Zc(ie|ue);return ye.pendingNewLine&&!ye.isEmpty()&&ye.newLine(this.getPts(w)),ye.pendingNewLine=!1,ye.addText($e),w},Lt.prototype.multiByteCharacter=function(w,A){var R=this.current708Packet.data,I=R[w+1],V=R[w+2];return qe(I)&&qe(V)&&(w=this.handleText(++w,A,{isMultiByte:!0})),w},Lt.prototype.setCurrentWindow=function(w,A){var R=this.current708Packet.data,I=R[w],V=I&7;return A.setCurrentWindow(V),w},Lt.prototype.defineWindow=function(w,A){var R=this.current708Packet.data,I=R[w],V=I&7;A.setCurrentWindow(V);var G=A.currentWindow;return I=R[++w],G.visible=(I&32)>>5,G.rowLock=(I&16)>>4,G.columnLock=(I&8)>>3,G.priority=I&7,I=R[++w],G.relativePositioning=(I&128)>>7,G.anchorVertical=I&127,I=R[++w],G.anchorHorizontal=I,I=R[++w],G.anchorPoint=(I&240)>>4,G.rowCount=I&15,I=R[++w],G.columnCount=I&63,I=R[++w],G.windowStyle=(I&56)>>3,G.penStyle=I&7,G.virtualRowCount=G.rowCount+1,w},Lt.prototype.setWindowAttributes=function(w,A){var R=this.current708Packet.data,I=R[w],V=A.currentWindow.winAttr;return I=R[++w],V.fillOpacity=(I&192)>>6,V.fillRed=(I&48)>>4,V.fillGreen=(I&12)>>2,V.fillBlue=I&3,I=R[++w],V.borderType=(I&192)>>6,V.borderRed=(I&48)>>4,V.borderGreen=(I&12)>>2,V.borderBlue=I&3,I=R[++w],V.borderType+=(I&128)>>5,V.wordWrap=(I&64)>>6,V.printDirection=(I&48)>>4,V.scrollDirection=(I&12)>>2,V.justify=I&3,I=R[++w],V.effectSpeed=(I&240)>>4,V.effectDirection=(I&12)>>2,V.displayEffect=I&3,w},Lt.prototype.flushDisplayed=function(w,A){for(var R=[],I=0;I<8;I++)A.windows[I].visible&&!A.windows[I].isEmpty()&&R.push(A.windows[I].getText());A.endPts=w,A.text=R.join(`
|
||
|
||
`),this.pushCaption(A),A.startPts=w},Lt.prototype.pushCaption=function(w){w.text!==""&&(this.trigger("data",{startPts:w.startPts,endPts:w.endPts,text:w.text,stream:"cc708_"+w.serviceNum}),w.text="",w.startPts=w.endPts)},Lt.prototype.displayWindows=function(w,A){var R=this.current708Packet.data,I=R[++w],V=this.getPts(w);this.flushDisplayed(V,A);for(var G=0;G<8;G++)I&1<<G&&(A.windows[G].visible=1);return w},Lt.prototype.hideWindows=function(w,A){var R=this.current708Packet.data,I=R[++w],V=this.getPts(w);this.flushDisplayed(V,A);for(var G=0;G<8;G++)I&1<<G&&(A.windows[G].visible=0);return w},Lt.prototype.toggleWindows=function(w,A){var R=this.current708Packet.data,I=R[++w],V=this.getPts(w);this.flushDisplayed(V,A);for(var G=0;G<8;G++)I&1<<G&&(A.windows[G].visible^=1);return w},Lt.prototype.clearWindows=function(w,A){var R=this.current708Packet.data,I=R[++w],V=this.getPts(w);this.flushDisplayed(V,A);for(var G=0;G<8;G++)I&1<<G&&A.windows[G].clearText();return w},Lt.prototype.deleteWindows=function(w,A){var R=this.current708Packet.data,I=R[++w],V=this.getPts(w);this.flushDisplayed(V,A);for(var G=0;G<8;G++)I&1<<G&&A.windows[G].reset();return w},Lt.prototype.setPenAttributes=function(w,A){var R=this.current708Packet.data,I=R[w],V=A.currentWindow.penAttr;return I=R[++w],V.textTag=(I&240)>>4,V.offset=(I&12)>>2,V.penSize=I&3,I=R[++w],V.italics=(I&128)>>7,V.underline=(I&64)>>6,V.edgeType=(I&56)>>3,V.fontStyle=I&7,w},Lt.prototype.setPenColor=function(w,A){var R=this.current708Packet.data,I=R[w],V=A.currentWindow.penColor;return I=R[++w],V.fgOpacity=(I&192)>>6,V.fgRed=(I&48)>>4,V.fgGreen=(I&12)>>2,V.fgBlue=I&3,I=R[++w],V.bgOpacity=(I&192)>>6,V.bgRed=(I&48)>>4,V.bgGreen=(I&12)>>2,V.bgBlue=I&3,I=R[++w],V.edgeRed=(I&48)>>4,V.edgeGreen=(I&12)>>2,V.edgeBlue=I&3,w},Lt.prototype.setPenLocation=function(w,A){var R=this.current708Packet.data,I=R[w],V=A.currentWindow.penLoc;return A.currentWindow.pendingNewLine=!0,I=R[++w],V.row=I&15,I=R[++w],V.column=I&63,w},Lt.prototype.reset=function(w,A){var R=this.getPts(w);return this.flushDisplayed(R,A),this.initService(A.serviceNum,w)};var gr={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},vr=function(w){return w===null?"":(w=gr[w]||w,String.fromCharCode(w))},si=14,yr=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ns=function(){for(var w=[],A=si+1;A--;)w.push({text:"",indent:0,offset:0});return w},vn=function(w,A){vn.prototype.init.call(this),this.field_=w||0,this.dataChannel_=A||0,this.name_="CC"+((this.field_<<1|this.dataChannel_)+1),this.setConstants(),this.reset(),this.push=function(R){var I,V,G,ie,ue;if(I=R.ccData&32639,I===this.lastControlCode_){this.lastControlCode_=null;return}if((I&61440)===4096?this.lastControlCode_=I:I!==this.PADDING_&&(this.lastControlCode_=null),G=I>>>8,ie=I&255,I!==this.PADDING_)if(I===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(I===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(R.pts),this.flushDisplayed(R.pts),V=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=V,this.startPts_=R.pts;else if(I===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(R.pts);else if(I===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(R.pts);else if(I===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(R.pts);else if(I===this.CARRIAGE_RETURN_)this.clearFormatting(R.pts),this.flushDisplayed(R.pts),this.shiftRowsUp_(),this.startPts_=R.pts;else if(I===this.BACKSPACE_)this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(I===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(R.pts),this.displayed_=ns();else if(I===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ns();else if(I===this.RESUME_DIRECT_CAPTIONING_)this.mode_!=="paintOn"&&(this.flushDisplayed(R.pts),this.displayed_=ns()),this.mode_="paintOn",this.startPts_=R.pts;else if(this.isSpecialCharacter(G,ie))G=(G&3)<<8,ue=vr(G|ie),this[this.mode_](R.pts,ue),this.column_++;else if(this.isExtCharacter(G,ie))this.mode_==="popOn"?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),G=(G&3)<<8,ue=vr(G|ie),this[this.mode_](R.pts,ue),this.column_++;else if(this.isMidRowCode(G,ie))this.clearFormatting(R.pts),this[this.mode_](R.pts," "),this.column_++,(ie&14)===14&&this.addFormatting(R.pts,["i"]),(ie&1)===1&&this.addFormatting(R.pts,["u"]);else if(this.isOffsetControlCode(G,ie)){const ye=ie&3;this.nonDisplayed_[this.row_].offset=ye,this.column_+=ye}else if(this.isPAC(G,ie)){var he=yr.indexOf(I&7968);if(this.mode_==="rollUp"&&(he-this.rollUpRows_+1<0&&(he=this.rollUpRows_-1),this.setRollUp(R.pts,he)),he!==this.row_&&he>=0&&he<=14&&(this.clearFormatting(R.pts),this.row_=he),ie&1&&this.formatting_.indexOf("u")===-1&&this.addFormatting(R.pts,["u"]),(I&16)===16){const ye=(I&14)>>1;this.column_=ye*4,this.nonDisplayed_[this.row_].indent+=ye}this.isColorPAC(ie)&&(ie&14)===14&&this.addFormatting(R.pts,["i"])}else this.isNormalChar(G)&&(ie===0&&(ie=null),ue=vr(G),ue+=vr(ie),this[this.mode_](R.pts,ue),this.column_+=ue.length)}};vn.prototype=new Ha,vn.prototype.flushDisplayed=function(w){const A=I=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+I+"."})},R=[];this.displayed_.forEach((I,V)=>{if(I&&I.text&&I.text.length){try{I.text=I.text.trim()}catch{A(V)}I.text.length&&R.push({text:I.text,line:V+1,position:10+Math.min(70,I.indent*10)+I.offset*2.5})}else I==null&&A(V)}),R.length&&this.trigger("data",{startPts:this.startPts_,endPts:w,content:R,stream:this.name_})},vn.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ns(),this.nonDisplayed_=ns(),this.lastControlCode_=null,this.column_=0,this.row_=si,this.rollUpRows_=2,this.formatting_=[]},vn.prototype.setConstants=function(){this.dataChannel_===0?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):this.dataChannel_===1&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=this.CONTROL_|32,this.END_OF_CAPTION_=this.CONTROL_|47,this.ROLL_UP_2_ROWS_=this.CONTROL_|37,this.ROLL_UP_3_ROWS_=this.CONTROL_|38,this.ROLL_UP_4_ROWS_=this.CONTROL_|39,this.CARRIAGE_RETURN_=this.CONTROL_|45,this.RESUME_DIRECT_CAPTIONING_=this.CONTROL_|41,this.BACKSPACE_=this.CONTROL_|33,this.ERASE_DISPLAYED_MEMORY_=this.CONTROL_|44,this.ERASE_NON_DISPLAYED_MEMORY_=this.CONTROL_|46},vn.prototype.isSpecialCharacter=function(w,A){return w===this.EXT_&&A>=48&&A<=63},vn.prototype.isExtCharacter=function(w,A){return(w===this.EXT_+1||w===this.EXT_+2)&&A>=32&&A<=63},vn.prototype.isMidRowCode=function(w,A){return w===this.EXT_&&A>=32&&A<=47},vn.prototype.isOffsetControlCode=function(w,A){return w===this.OFFSET_&&A>=33&&A<=35},vn.prototype.isPAC=function(w,A){return w>=this.BASE_&&w<this.BASE_+8&&A>=64&&A<=127},vn.prototype.isColorPAC=function(w){return w>=64&&w<=79||w>=96&&w<=127},vn.prototype.isNormalChar=function(w){return w>=32&&w<=127},vn.prototype.setRollUp=function(w,A){if(this.mode_!=="rollUp"&&(this.row_=si,this.mode_="rollUp",this.flushDisplayed(w),this.nonDisplayed_=ns(),this.displayed_=ns()),A!==void 0&&A!==this.row_)for(var R=0;R<this.rollUpRows_;R++)this.displayed_[A-R]=this.displayed_[this.row_-R],this.displayed_[this.row_-R]={text:"",indent:0,offset:0};A===void 0&&(A=this.row_),this.topRow_=A-this.rollUpRows_+1},vn.prototype.addFormatting=function(w,A){this.formatting_=this.formatting_.concat(A);var R=A.reduce(function(I,V){return I+"<"+V+">"},"");this[this.mode_](w,R)},vn.prototype.clearFormatting=function(w){if(this.formatting_.length){var A=this.formatting_.reverse().reduce(function(R,I){return R+"</"+I+">"},"");this.formatting_=[],this[this.mode_](w,A)}},vn.prototype.popOn=function(w,A){var R=this.nonDisplayed_[this.row_].text;R+=A,this.nonDisplayed_[this.row_].text=R},vn.prototype.rollUp=function(w,A){var R=this.displayed_[this.row_].text;R+=A,this.displayed_[this.row_].text=R},vn.prototype.shiftRowsUp_=function(){var w;for(w=0;w<this.topRow_;w++)this.displayed_[w]={text:"",indent:0,offset:0};for(w=this.row_+1;w<si+1;w++)this.displayed_[w]={text:"",indent:0,offset:0};for(w=this.topRow_;w<this.row_;w++)this.displayed_[w]=this.displayed_[w+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},vn.prototype.paintOn=function(w,A){var R=this.displayed_[this.row_].text;R+=A,this.displayed_[this.row_].text=R};var Ge={CaptionStream:fs,Cea608Stream:vn,Cea708Stream:Lt},wt={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},$t=n,Gt=8589934592,ks=4294967296,Rr="shared",jv=function(w,A){var R=1;for(w>A&&(R=-1);Math.abs(A-w)>ks;)w+=R*Gt;return w},qv=function(w){var A,R;qv.prototype.init.call(this),this.type_=w||Rr,this.push=function(I){if(I.type==="metadata"){this.trigger("data",I);return}this.type_!==Rr&&I.type!==this.type_||(R===void 0&&(R=I.dts),I.dts=jv(I.dts,R),I.pts=jv(I.pts,R),A=I.dts,this.trigger("data",I))},this.flush=function(){R=A,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){R=void 0,A=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};qv.prototype=new $t;var yS={TimestampRolloverStream:qv,handleRollover:jv},A$=(w,A,R)=>{if(!w)return-1;for(var I=R;I<w.length;I++)if(w[I]===A)return I;return-1},I$={typedArrayIndexOf:A$},Bh=I$.typedArrayIndexOf,Fh={Iso88591:0,Utf16:1,Utf16be:2,Utf8:3},bS=function(w,A,R){var I,V="";for(I=A;I<R;I++)V+="%"+("00"+w[I].toString(16)).slice(-2);return V},ed=function(w,A,R){return decodeURIComponent(bS(w,A,R))},td=function(w,A,R){return unescape(bS(w,A,R))},nd=function(w){return w[0]<<21|w[1]<<14|w[2]<<7|w[3]},sd={APIC:function(w){var A=1,R,I,V="-->";w.data[0]===Fh.Utf8&&(R=Bh(w.data,0,A),!(R<0)&&(w.mimeType=td(w.data,A,R),A=R+1,w.pictureType=w.data[A],A++,I=Bh(w.data,0,A),!(I<0)&&(w.description=ed(w.data,A,I),A=I+1,w.mimeType===V?w.url=td(w.data,A,w.data.length):w.pictureData=w.data.subarray(A,w.data.length))))},"T*":function(w){w.data[0]===Fh.Utf8&&(w.value=ed(w.data,1,w.data.length).replace(/\0*$/,""),w.values=w.value.split("\0"))},TXXX:function(w){var A;w.data[0]===Fh.Utf8&&(A=Bh(w.data,0,1),A!==-1&&(w.description=ed(w.data,1,A),w.value=ed(w.data,A+1,w.data.length).replace(/\0*$/,""),w.data=w.value))},"W*":function(w){w.url=td(w.data,0,w.data.length).replace(/\0.*$/,"")},WXXX:function(w){var A;w.data[0]===Fh.Utf8&&(A=Bh(w.data,0,1),A!==-1&&(w.description=ed(w.data,1,A),w.url=td(w.data,A+1,w.data.length).replace(/\0.*$/,"")))},PRIV:function(w){var A;for(A=0;A<w.data.length;A++)if(w.data[A]===0){w.owner=td(w.data,0,A);break}w.privateData=w.data.subarray(A+1),w.data=w.privateData}},D$=function(w){var A,R,I=10,V=0,G=[];if(!(w.length<10||w[0]!=="I".charCodeAt(0)||w[1]!=="D".charCodeAt(0)||w[2]!=="3".charCodeAt(0))){V=nd(w.subarray(6,10)),V+=10;var ie=w[5]&64;ie&&(I+=4,I+=nd(w.subarray(10,14)),V-=nd(w.subarray(16,20)));do{if(A=nd(w.subarray(I+4,I+8)),A<1)break;R=String.fromCharCode(w[I],w[I+1],w[I+2],w[I+3]);var ue={id:R,data:w.subarray(I+10,I+A+10)};ue.key=ue.id,sd[ue.id]?sd[ue.id](ue):ue.id[0]==="T"?sd["T*"](ue):ue.id[0]==="W"&&sd["W*"](ue),G.push(ue),I+=10,I+=A}while(I<V);return G}},_S={parseId3Frames:D$,parseSyncSafeInteger:nd,frameParsers:sd},O$=n,P$=wt,ja=_S,Vh;Vh=function(w){var A={descriptor:w&&w.descriptor},R=0,I=[],V=0,G;if(Vh.prototype.init.call(this),this.dispatchType=P$.METADATA_STREAM_TYPE.toString(16),A.descriptor)for(G=0;G<A.descriptor.length;G++)this.dispatchType+=("00"+A.descriptor[G].toString(16)).slice(-2);this.push=function(ie){var ue,he,ye,$e,We,Et;if(ie.type==="timed-metadata"){if(ie.dataAlignmentIndicator&&(V=0,I.length=0),I.length===0&&(ie.data.length<10||ie.data[0]!=="I".charCodeAt(0)||ie.data[1]!=="D".charCodeAt(0)||ie.data[2]!=="3".charCodeAt(0))){this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});return}if(I.push(ie),V+=ie.data.byteLength,I.length===1&&(R=ja.parseSyncSafeInteger(ie.data.subarray(6,10)),R+=10),!(V<R)){for(ue={data:new Uint8Array(R),frames:[],pts:I[0].pts,dts:I[0].dts},We=0;We<R;)ue.data.set(I[0].data.subarray(0,R-We),We),We+=I[0].data.byteLength,V-=I[0].data.byteLength,I.shift();he=10,ue.data[5]&64&&(he+=4,he+=ja.parseSyncSafeInteger(ue.data.subarray(10,14)),R-=ja.parseSyncSafeInteger(ue.data.subarray(16,20)));do{if(ye=ja.parseSyncSafeInteger(ue.data.subarray(he+4,he+8)),ye<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if(Et=String.fromCharCode(ue.data[he],ue.data[he+1],ue.data[he+2],ue.data[he+3]),$e={id:Et,data:ue.data.subarray(he+10,he+ye+10)},$e.key=$e.id,ja.frameParsers[$e.id]?ja.frameParsers[$e.id]($e):$e.id[0]==="T"?ja.frameParsers["T*"]($e):$e.id[0]==="W"&&ja.frameParsers["W*"]($e),$e.owner==="com.apple.streaming.transportStreamTimestamp"){var rt=$e.data,Ut=(rt[3]&1)<<30|rt[4]<<22|rt[5]<<14|rt[6]<<6|rt[7]>>>2;Ut*=4,Ut+=rt[7]&3,$e.timeStamp=Ut,ue.pts===void 0&&ue.dts===void 0&&(ue.pts=$e.timeStamp,ue.dts=$e.timeStamp),this.trigger("timestamp",$e)}ue.frames.push($e),he+=10,he+=ye}while(he<R);this.trigger("data",ue)}}}},Vh.prototype=new O$;var R$=Vh,Wv=n,Kv=Ge,ri=wt,N$=yS.TimestampRolloverStream,Uh,rd,Hh,Zl=188,Gv=71;Uh=function(){var w=new Uint8Array(Zl),A=0;Uh.prototype.init.call(this),this.push=function(R){var I=0,V=Zl,G;for(A?(G=new Uint8Array(R.byteLength+A),G.set(w.subarray(0,A)),G.set(R,A),A=0):G=R;V<G.byteLength;){if(G[I]===Gv&&G[V]===Gv){this.trigger("data",G.subarray(I,V)),I+=Zl,V+=Zl;continue}I++,V++}I<G.byteLength&&(w.set(G.subarray(I),0),A=G.byteLength-I)},this.flush=function(){A===Zl&&w[0]===Gv&&(this.trigger("data",w),A=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){A=0,this.trigger("reset")}},Uh.prototype=new Wv,rd=function(){var w,A,R,I;rd.prototype.init.call(this),I=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,w=function(V,G){var ie=0;G.payloadUnitStartIndicator&&(ie+=V[ie]+1),G.type==="pat"?A(V.subarray(ie),G):R(V.subarray(ie),G)},A=function(V,G){G.section_number=V[7],G.last_section_number=V[8],I.pmtPid=(V[10]&31)<<8|V[11],G.pmtPid=I.pmtPid},R=function(V,G){var ie,ue,he,ye;if(V[5]&1){for(I.programMapTable={video:null,audio:null,"timed-metadata":{}},ie=(V[1]&15)<<8|V[2],ue=3+ie-4,he=(V[10]&15)<<8|V[11],ye=12+he;ye<ue;){var $e=V[ye],We=(V[ye+1]&31)<<8|V[ye+2];$e===ri.H264_STREAM_TYPE&&I.programMapTable.video===null?I.programMapTable.video=We:$e===ri.ADTS_STREAM_TYPE&&I.programMapTable.audio===null?I.programMapTable.audio=We:$e===ri.METADATA_STREAM_TYPE&&(I.programMapTable["timed-metadata"][We]=$e),ye+=((V[ye+3]&15)<<8|V[ye+4])+5}G.programMapTable=I.programMapTable}},this.push=function(V){var G={},ie=4;if(G.payloadUnitStartIndicator=!!(V[1]&64),G.pid=V[1]&31,G.pid<<=8,G.pid|=V[2],(V[3]&48)>>>4>1&&(ie+=V[ie]+1),G.pid===0)G.type="pat",w(V.subarray(ie),G),this.trigger("data",G);else if(G.pid===this.pmtPid)for(G.type="pmt",w(V.subarray(ie),G),this.trigger("data",G);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else this.programMapTable===void 0?this.packetsWaitingForPmt.push([V,ie,G]):this.processPes_(V,ie,G)},this.processPes_=function(V,G,ie){ie.pid===this.programMapTable.video?ie.streamType=ri.H264_STREAM_TYPE:ie.pid===this.programMapTable.audio?ie.streamType=ri.ADTS_STREAM_TYPE:ie.streamType=this.programMapTable["timed-metadata"][ie.pid],ie.type="pes",ie.data=V.subarray(G),this.trigger("data",ie)}},rd.prototype=new Wv,rd.STREAM_TYPES={h264:27,adts:15},Hh=function(){var w=this,A=!1,R={data:[],size:0},I={data:[],size:0},V={data:[],size:0},G,ie=function(he,ye){var $e;const We=he[0]<<16|he[1]<<8|he[2];ye.data=new Uint8Array,We===1&&(ye.packetLength=6+(he[4]<<8|he[5]),ye.dataAlignmentIndicator=(he[6]&4)!==0,$e=he[7],$e&192&&(ye.pts=(he[9]&14)<<27|(he[10]&255)<<20|(he[11]&254)<<12|(he[12]&255)<<5|(he[13]&254)>>>3,ye.pts*=4,ye.pts+=(he[13]&6)>>>1,ye.dts=ye.pts,$e&64&&(ye.dts=(he[14]&14)<<27|(he[15]&255)<<20|(he[16]&254)<<12|(he[17]&255)<<5|(he[18]&254)>>>3,ye.dts*=4,ye.dts+=(he[18]&6)>>>1)),ye.data=he.subarray(9+he[8]))},ue=function(he,ye,$e){var We=new Uint8Array(he.size),Et={type:ye},rt=0,Ut=0,Xt=!1,ls;if(!(!he.data.length||he.size<9)){for(Et.trackId=he.data[0].pid,rt=0;rt<he.data.length;rt++)ls=he.data[rt],We.set(ls.data,Ut),Ut+=ls.data.byteLength;ie(We,Et),Xt=ye==="video"||Et.packetLength<=he.size,($e||Xt)&&(he.size=0,he.data.length=0),Xt&&w.trigger("data",Et)}};Hh.prototype.init.call(this),this.push=function(he){({pat:function(){},pes:function(){var ye,$e;switch(he.streamType){case ri.H264_STREAM_TYPE:ye=R,$e="video";break;case ri.ADTS_STREAM_TYPE:ye=I,$e="audio";break;case ri.METADATA_STREAM_TYPE:ye=V,$e="timed-metadata";break;default:return}he.payloadUnitStartIndicator&&ue(ye,$e,!0),ye.data.push(he),ye.size+=he.data.byteLength},pmt:function(){var ye={type:"metadata",tracks:[]};G=he.programMapTable,G.video!==null&&ye.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+G.video,codec:"avc",type:"video"}),G.audio!==null&&ye.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+G.audio,codec:"adts",type:"audio"}),A=!0,w.trigger("data",ye)}})[he.type]()},this.reset=function(){R.size=0,R.data.length=0,I.size=0,I.data.length=0,this.trigger("reset")},this.flushStreams_=function(){ue(R,"video"),ue(I,"audio"),ue(V,"timed-metadata")},this.flush=function(){if(!A&&G){var he={type:"metadata",tracks:[]};G.video!==null&&he.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+G.video,codec:"avc",type:"video"}),G.audio!==null&&he.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+G.audio,codec:"adts",type:"audio"}),w.trigger("data",he)}A=!1,this.flushStreams_(),this.trigger("done")}},Hh.prototype=new Wv;var wS={PAT_PID:0,MP2T_PACKET_LENGTH:Zl,TransportPacketStream:Uh,TransportParseStream:rd,ElementaryStream:Hh,TimestampRolloverStream:N$,CaptionStream:Kv.CaptionStream,Cea608Stream:Kv.Cea608Stream,Cea708Stream:Kv.Cea708Stream,MetadataStream:R$};for(var Yv in ri)ri.hasOwnProperty(Yv)&&(wS[Yv]=ri[Yv]);var M$=wS,$$=n,L$=be.ONE_SECOND_IN_TS,zh,SS=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];zh=function(w){var A,R=0;zh.prototype.init.call(this),this.skipWarn_=function(I,V){this.trigger("log",{level:"warn",message:`adts skiping bytes ${I} to ${V} in frame ${R} outside syncword`})},this.push=function(I){var V=0,G,ie,ue,he,ye;if(w||(R=0),I.type==="audio"){A&&A.length?(ue=A,A=new Uint8Array(ue.byteLength+I.data.byteLength),A.set(ue),A.set(I.data,ue.byteLength)):A=I.data;for(var $e;V+7<A.length;){if(A[V]!==255||(A[V+1]&246)!==240){typeof $e!="number"&&($e=V),V++;continue}if(typeof $e=="number"&&(this.skipWarn_($e,V),$e=null),ie=(~A[V+1]&1)*2,G=(A[V+3]&3)<<11|A[V+4]<<3|(A[V+5]&224)>>5,he=((A[V+6]&3)+1)*1024,ye=he*L$/SS[(A[V+2]&60)>>>2],A.byteLength-V<G)break;this.trigger("data",{pts:I.pts+R*ye,dts:I.dts+R*ye,sampleCount:he,audioobjecttype:(A[V+2]>>>6&3)+1,channelcount:(A[V+2]&1)<<2|(A[V+3]&192)>>>6,samplerate:SS[(A[V+2]&60)>>>2],samplingfrequencyindex:(A[V+2]&60)>>>2,samplesize:16,data:A.subarray(V+7+ie,V+G)}),R++,V+=G}typeof $e=="number"&&(this.skipWarn_($e,V),$e=null),A=A.subarray(V)}},this.flush=function(){R=0,this.trigger("done")},this.reset=function(){A=void 0,this.trigger("reset")},this.endTimeline=function(){A=void 0,this.trigger("endedtimeline")}},zh.prototype=new $$;var B$=zh,TS;TS=function(w){var A=w.byteLength,R=0,I=0;this.length=function(){return 8*A},this.bitsAvailable=function(){return 8*A+I},this.loadWord=function(){var V=w.byteLength-A,G=new Uint8Array(4),ie=Math.min(4,A);if(ie===0)throw new Error("no bytes available");G.set(w.subarray(V,V+ie)),R=new DataView(G.buffer).getUint32(0),I=ie*8,A-=ie},this.skipBits=function(V){var G;I>V?(R<<=V,I-=V):(V-=I,G=Math.floor(V/8),V-=G*8,A-=G,this.loadWord(),R<<=V,I-=V)},this.readBits=function(V){var G=Math.min(I,V),ie=R>>>32-G;return I-=G,I>0?R<<=G:A>0&&this.loadWord(),G=V-G,G>0?ie<<G|this.readBits(G):ie},this.skipLeadingZeros=function(){var V;for(V=0;V<I;++V)if(R&2147483648>>>V)return R<<=V,I-=V,V;return this.loadWord(),V+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var V=this.skipLeadingZeros();return this.readBits(V+1)-1},this.readExpGolomb=function(){var V=this.readUnsignedExpGolomb();return 1&V?1+V>>>1:-1*(V>>>1)},this.readBoolean=function(){return this.readBits(1)===1},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};var F$=TS,CS=n,V$=F$,jh,id,ES;id=function(){var w=0,A,R;id.prototype.init.call(this),this.push=function(I){var V;R?(V=new Uint8Array(R.byteLength+I.data.byteLength),V.set(R),V.set(I.data,R.byteLength),R=V):R=I.data;for(var G=R.byteLength;w<G-3;w++)if(R[w+2]===1){A=w+5;break}for(;A<G;)switch(R[A]){case 0:if(R[A-1]!==0){A+=2;break}else if(R[A-2]!==0){A++;break}w+3!==A-2&&this.trigger("data",R.subarray(w+3,A-2));do A++;while(R[A]!==1&&A<G);w=A-2,A+=3;break;case 1:if(R[A-1]!==0||R[A-2]!==0){A+=3;break}this.trigger("data",R.subarray(w+3,A-2)),w=A-2,A+=3;break;default:A+=3;break}R=R.subarray(w),A-=w,w=0},this.reset=function(){R=null,w=0,this.trigger("reset")},this.flush=function(){R&&R.byteLength>3&&this.trigger("data",R.subarray(w+3)),R=null,w=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},id.prototype=new CS,ES={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},jh=function(){var w=new id,A,R,I,V,G,ie,ue;jh.prototype.init.call(this),A=this,this.push=function(he){he.type==="video"&&(R=he.trackId,I=he.pts,V=he.dts,w.push(he))},w.on("data",function(he){var ye={trackId:R,pts:I,dts:V,data:he,nalUnitTypeCode:he[0]&31};switch(ye.nalUnitTypeCode){case 5:ye.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:ye.nalUnitType="sei_rbsp",ye.escapedRBSP=G(he.subarray(1));break;case 7:ye.nalUnitType="seq_parameter_set_rbsp",ye.escapedRBSP=G(he.subarray(1)),ye.config=ie(ye.escapedRBSP);break;case 8:ye.nalUnitType="pic_parameter_set_rbsp";break;case 9:ye.nalUnitType="access_unit_delimiter_rbsp";break}A.trigger("data",ye)}),w.on("done",function(){A.trigger("done")}),w.on("partialdone",function(){A.trigger("partialdone")}),w.on("reset",function(){A.trigger("reset")}),w.on("endedtimeline",function(){A.trigger("endedtimeline")}),this.flush=function(){w.flush()},this.partialFlush=function(){w.partialFlush()},this.reset=function(){w.reset()},this.endTimeline=function(){w.endTimeline()},ue=function(he,ye){var $e=8,We=8,Et,rt;for(Et=0;Et<he;Et++)We!==0&&(rt=ye.readExpGolomb(),We=($e+rt+256)%256),$e=We===0?$e:We},G=function(he){for(var ye=he.byteLength,$e=[],We=1,Et,rt;We<ye-2;)he[We]===0&&he[We+1]===0&&he[We+2]===3?($e.push(We+2),We+=2):We++;if($e.length===0)return he;Et=ye-$e.length,rt=new Uint8Array(Et);var Ut=0;for(We=0;We<Et;Ut++,We++)Ut===$e[0]&&(Ut++,$e.shift()),rt[We]=he[Ut];return rt},ie=function(he){var ye=0,$e=0,We=0,Et=0,rt,Ut,Xt,ls,Nr,Yo,ZS,eT,tT,a0,nT,Yn=[1,1],sT,Xo;if(rt=new V$(he),Ut=rt.readUnsignedByte(),ls=rt.readUnsignedByte(),Xt=rt.readUnsignedByte(),rt.skipUnsignedExpGolomb(),ES[Ut]&&(Nr=rt.readUnsignedExpGolomb(),Nr===3&&rt.skipBits(1),rt.skipUnsignedExpGolomb(),rt.skipUnsignedExpGolomb(),rt.skipBits(1),rt.readBoolean()))for(nT=Nr!==3?8:12,Xo=0;Xo<nT;Xo++)rt.readBoolean()&&(Xo<6?ue(16,rt):ue(64,rt));if(rt.skipUnsignedExpGolomb(),Yo=rt.readUnsignedExpGolomb(),Yo===0)rt.readUnsignedExpGolomb();else if(Yo===1)for(rt.skipBits(1),rt.skipExpGolomb(),rt.skipExpGolomb(),ZS=rt.readUnsignedExpGolomb(),Xo=0;Xo<ZS;Xo++)rt.skipExpGolomb();if(rt.skipUnsignedExpGolomb(),rt.skipBits(1),eT=rt.readUnsignedExpGolomb(),tT=rt.readUnsignedExpGolomb(),a0=rt.readBits(1),a0===0&&rt.skipBits(1),rt.skipBits(1),rt.readBoolean()&&(ye=rt.readUnsignedExpGolomb(),$e=rt.readUnsignedExpGolomb(),We=rt.readUnsignedExpGolomb(),Et=rt.readUnsignedExpGolomb()),rt.readBoolean()&&rt.readBoolean()){switch(sT=rt.readUnsignedByte(),sT){case 1:Yn=[1,1];break;case 2:Yn=[12,11];break;case 3:Yn=[10,11];break;case 4:Yn=[16,11];break;case 5:Yn=[40,33];break;case 6:Yn=[24,11];break;case 7:Yn=[20,11];break;case 8:Yn=[32,11];break;case 9:Yn=[80,33];break;case 10:Yn=[18,11];break;case 11:Yn=[15,11];break;case 12:Yn=[64,33];break;case 13:Yn=[160,99];break;case 14:Yn=[4,3];break;case 15:Yn=[3,2];break;case 16:Yn=[2,1];break;case 255:{Yn=[rt.readUnsignedByte()<<8|rt.readUnsignedByte(),rt.readUnsignedByte()<<8|rt.readUnsignedByte()];break}}Yn&&Yn[0]/Yn[1]}return{profileIdc:Ut,levelIdc:Xt,profileCompatibility:ls,width:(eT+1)*16-ye*2-$e*2,height:(2-a0)*(tT+1)*16-We*2-Et*2,sarRatio:Yn}}},jh.prototype=new CS;var U$={H264Stream:jh,NalByteStream:id},H$=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],xS=function(w,A){var R=w[A+6]<<21|w[A+7]<<14|w[A+8]<<7|w[A+9],I=w[A+5],V=(I&16)>>4;return R=R>=0?R:0,V?R+20:R+10},kS=function(w,A){return w.length-A<10||w[A]!=="I".charCodeAt(0)||w[A+1]!=="D".charCodeAt(0)||w[A+2]!=="3".charCodeAt(0)?A:(A+=xS(w,A),kS(w,A))},z$=function(w){var A=kS(w,0);return w.length>=A+2&&(w[A]&255)===255&&(w[A+1]&240)===240&&(w[A+1]&22)===16},AS=function(w){return w[0]<<21|w[1]<<14|w[2]<<7|w[3]},j$=function(w,A,R){var I,V="";for(I=A;I<R;I++)V+="%"+("00"+w[I].toString(16)).slice(-2);return V},q$=function(w,A,R){return unescape(j$(w,A,R))},W$=function(w,A){var R=(w[A+5]&224)>>5,I=w[A+4]<<3,V=w[A+3]&6144;return V|I|R},K$=function(w,A){return w[A]==="I".charCodeAt(0)&&w[A+1]==="D".charCodeAt(0)&&w[A+2]==="3".charCodeAt(0)?"timed-metadata":w[A]&!0&&(w[A+1]&240)===240?"audio":null},G$=function(w){for(var A=0;A+5<w.length;){if(w[A]!==255||(w[A+1]&246)!==240){A++;continue}return H$[(w[A+2]&60)>>>2]}return null},Y$=function(w){var A,R,I,V;A=10,w[5]&64&&(A+=4,A+=AS(w.subarray(10,14)));do{if(R=AS(w.subarray(A+4,A+8)),R<1)return null;if(V=String.fromCharCode(w[A],w[A+1],w[A+2],w[A+3]),V==="PRIV"){I=w.subarray(A+10,A+R+10);for(var G=0;G<I.byteLength;G++)if(I[G]===0){var ie=q$(I,0,G);if(ie==="com.apple.streaming.transportStreamTimestamp"){var ue=I.subarray(G+1),he=(ue[3]&1)<<30|ue[4]<<22|ue[5]<<14|ue[6]<<6|ue[7]>>>2;return he*=4,he+=ue[7]&3,he}break}}A+=10,A+=R}while(A<w.byteLength);return null},Xv={isLikelyAacData:z$,parseId3TagSize:xS,parseAdtsSize:W$,parseType:K$,parseSampleRate:G$,parseAacTimestamp:Y$},X$=n,IS=Xv,qh;qh=function(){var w=new Uint8Array,A=0;qh.prototype.init.call(this),this.setTimestamp=function(R){A=R},this.push=function(R){var I=0,V=0,G,ie,ue,he;for(w.length?(he=w.length,w=new Uint8Array(R.byteLength+he),w.set(w.subarray(0,he)),w.set(R,he)):w=R;w.length-V>=3;){if(w[V]==="I".charCodeAt(0)&&w[V+1]==="D".charCodeAt(0)&&w[V+2]==="3".charCodeAt(0)){if(w.length-V<10||(I=IS.parseId3TagSize(w,V),V+I>w.length))break;ie={type:"timed-metadata",data:w.subarray(V,V+I)},this.trigger("data",ie),V+=I;continue}else if((w[V]&255)===255&&(w[V+1]&240)===240){if(w.length-V<7||(I=IS.parseAdtsSize(w,V),V+I>w.length))break;ue={type:"audio",data:w.subarray(V,V+I),pts:A,dts:A},this.trigger("data",ue),V+=I;continue}V++}G=w.length-V,G>0?w=w.subarray(V):w=new Uint8Array},this.reset=function(){w=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){w=new Uint8Array,this.trigger("endedtimeline")}},qh.prototype=new X$;var Q$=qh,J$=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Z$=J$,e6=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],t6=e6,Wh=n,ad=te,od=_e,Kh=mt,ii=ws,da=M$,Gh=be,DS=B$,n6=U$.H264Stream,s6=Q$,r6=Xv.isLikelyAacData,i6=be.ONE_SECOND_IN_TS,Qv=Z$,Jv=t6,ld,eu,Yh,Ko,a6=function(w,A){A.stream=w,this.trigger("log",A)},OS=function(w,A){for(var R=Object.keys(A),I=0;I<R.length;I++){var V=R[I];V==="headOfPipeline"||!A[V].on||A[V].on("log",a6.bind(w,V))}},PS=function(w,A){var R;if(w.length!==A.length)return!1;for(R=0;R<w.length;R++)if(w[R]!==A[R])return!1;return!0},Zv=function(w,A,R,I,V,G){var ie=R-A,ue=I-A,he=V-R;return{start:{dts:w,pts:w+ie},end:{dts:w+ue,pts:w+he},prependedContentDuration:G,baseMediaDecodeTime:w}};eu=function(w,A){var R=[],I,V=0,G=0,ie=1/0;A=A||{},I=A.firstSequenceNumber||0,eu.prototype.init.call(this),this.push=function(ue){ii.collectDtsInfo(w,ue),w&&Qv.forEach(function(he){w[he]=ue[he]}),R.push(ue)},this.setEarliestDts=function(ue){V=ue},this.setVideoBaseMediaDecodeTime=function(ue){ie=ue},this.setAudioAppendStart=function(ue){G=ue},this.flush=function(){var ue,he,ye,$e,We,Et,rt;if(R.length===0){this.trigger("done","AudioSegmentStream");return}ue=Kh.trimAdtsFramesByEarliestDts(R,w,V),w.baseMediaDecodeTime=ii.calculateTrackBaseMediaDecodeTime(w,A.keepOriginalTimestamps),rt=Kh.prefixWithSilence(w,ue,G,ie),w.samples=Kh.generateSampleTable(ue),ye=ad.mdat(Kh.concatenateFrameData(ue)),R=[],he=ad.moof(I,[w]),$e=new Uint8Array(he.byteLength+ye.byteLength),I++,$e.set(he),$e.set(ye,he.byteLength),ii.clearDtsInfo(w),We=Math.ceil(i6*1024/w.samplerate),ue.length&&(Et=ue.length*We,this.trigger("segmentTimingInfo",Zv(Gh.audioTsToVideoTs(w.baseMediaDecodeTime,w.samplerate),ue[0].dts,ue[0].pts,ue[0].dts+Et,ue[0].pts+Et,rt||0)),this.trigger("timingInfo",{start:ue[0].pts,end:ue[0].pts+Et})),this.trigger("data",{track:w,boxes:$e}),this.trigger("done","AudioSegmentStream")},this.reset=function(){ii.clearDtsInfo(w),R=[],this.trigger("reset")}},eu.prototype=new Wh,ld=function(w,A){var R,I=[],V=[],G,ie;A=A||{},R=A.firstSequenceNumber||0,ld.prototype.init.call(this),delete w.minPTS,this.gopCache_=[],this.push=function(ue){ii.collectDtsInfo(w,ue),ue.nalUnitType==="seq_parameter_set_rbsp"&&!G&&(G=ue.config,w.sps=[ue.data],Jv.forEach(function(he){w[he]=G[he]},this)),ue.nalUnitType==="pic_parameter_set_rbsp"&&!ie&&(ie=ue.data,w.pps=[ue.data]),I.push(ue)},this.flush=function(){for(var ue,he,ye,$e,We,Et,rt=0,Ut,Xt;I.length&&I[0].nalUnitType!=="access_unit_delimiter_rbsp";)I.shift();if(I.length===0){this.resetStream_(),this.trigger("done","VideoSegmentStream");return}if(ue=od.groupNalsIntoFrames(I),ye=od.groupFramesIntoGops(ue),ye[0][0].keyFrame||(he=this.getGopForFusion_(I[0],w),he?(rt=he.duration,ye.unshift(he),ye.byteLength+=he.byteLength,ye.nalCount+=he.nalCount,ye.pts=he.pts,ye.dts=he.dts,ye.duration+=he.duration):ye=od.extendFirstKeyFrame(ye)),V.length){var ls;if(A.alignGopsAtEnd?ls=this.alignGopsAtEnd_(ye):ls=this.alignGopsAtStart_(ye),!ls){this.gopCache_.unshift({gop:ye.pop(),pps:w.pps,sps:w.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),I=[],this.resetStream_(),this.trigger("done","VideoSegmentStream");return}ii.clearDtsInfo(w),ye=ls}ii.collectDtsInfo(w,ye),w.samples=od.generateSampleTable(ye),We=ad.mdat(od.concatenateNalData(ye)),w.baseMediaDecodeTime=ii.calculateTrackBaseMediaDecodeTime(w,A.keepOriginalTimestamps),this.trigger("processedGopsInfo",ye.map(function(Nr){return{pts:Nr.pts,dts:Nr.dts,byteLength:Nr.byteLength}})),Ut=ye[0],Xt=ye[ye.length-1],this.trigger("segmentTimingInfo",Zv(w.baseMediaDecodeTime,Ut.dts,Ut.pts,Xt.dts+Xt.duration,Xt.pts+Xt.duration,rt)),this.trigger("timingInfo",{start:ye[0].pts,end:ye[ye.length-1].pts+ye[ye.length-1].duration}),this.gopCache_.unshift({gop:ye.pop(),pps:w.pps,sps:w.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),I=[],this.trigger("baseMediaDecodeTime",w.baseMediaDecodeTime),this.trigger("timelineStartInfo",w.timelineStartInfo),$e=ad.moof(R,[w]),Et=new Uint8Array($e.byteLength+We.byteLength),R++,Et.set($e),Et.set(We,$e.byteLength),this.trigger("data",{track:w,boxes:Et}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),I=[],this.gopCache_.length=0,V.length=0,this.trigger("reset")},this.resetStream_=function(){ii.clearDtsInfo(w),G=void 0,ie=void 0},this.getGopForFusion_=function(ue){var he=45e3,ye=1e4,$e=1/0,We,Et,rt,Ut,Xt;for(Xt=0;Xt<this.gopCache_.length;Xt++)Ut=this.gopCache_[Xt],rt=Ut.gop,!(!(w.pps&&PS(w.pps[0],Ut.pps[0]))||!(w.sps&&PS(w.sps[0],Ut.sps[0])))&&(rt.dts<w.timelineStartInfo.dts||(We=ue.dts-rt.dts-rt.duration,We>=-ye&&We<=he&&(!Et||$e>We)&&(Et=Ut,$e=We)));return Et?Et.gop:null},this.alignGopsAtStart_=function(ue){var he,ye,$e,We,Et,rt,Ut,Xt;for(Et=ue.byteLength,rt=ue.nalCount,Ut=ue.duration,he=ye=0;he<V.length&&ye<ue.length&&($e=V[he],We=ue[ye],$e.pts!==We.pts);){if(We.pts>$e.pts){he++;continue}ye++,Et-=We.byteLength,rt-=We.nalCount,Ut-=We.duration}return ye===0?ue:ye===ue.length?null:(Xt=ue.slice(ye),Xt.byteLength=Et,Xt.duration=Ut,Xt.nalCount=rt,Xt.pts=Xt[0].pts,Xt.dts=Xt[0].dts,Xt)},this.alignGopsAtEnd_=function(ue){var he,ye,$e,We,Et,rt;for(he=V.length-1,ye=ue.length-1,Et=null,rt=!1;he>=0&&ye>=0;){if($e=V[he],We=ue[ye],$e.pts===We.pts){rt=!0;break}if($e.pts>We.pts){he--;continue}he===V.length-1&&(Et=ye),ye--}if(!rt&&Et===null)return null;var Ut;if(rt?Ut=ye:Ut=Et,Ut===0)return ue;var Xt=ue.slice(Ut),ls=Xt.reduce(function(Nr,Yo){return Nr.byteLength+=Yo.byteLength,Nr.duration+=Yo.duration,Nr.nalCount+=Yo.nalCount,Nr},{byteLength:0,duration:0,nalCount:0});return Xt.byteLength=ls.byteLength,Xt.duration=ls.duration,Xt.nalCount=ls.nalCount,Xt.pts=Xt[0].pts,Xt.dts=Xt[0].dts,Xt},this.alignGopsWith=function(ue){V=ue}},ld.prototype=new Wh,Ko=function(w,A){this.numberOfTracks=0,this.metadataStream=A,w=w||{},typeof w.remux<"u"?this.remuxTracks=!!w.remux:this.remuxTracks=!0,typeof w.keepOriginalTimestamps=="boolean"?this.keepOriginalTimestamps=w.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Ko.prototype.init.call(this),this.push=function(R){if(R.content||R.text)return this.pendingCaptions.push(R);if(R.frames)return this.pendingMetadata.push(R);this.pendingTracks.push(R.track),this.pendingBytes+=R.boxes.byteLength,R.track.type==="video"&&(this.videoTrack=R.track,this.pendingBoxes.push(R.boxes)),R.track.type==="audio"&&(this.audioTrack=R.track,this.pendingBoxes.unshift(R.boxes))}},Ko.prototype=new Wh,Ko.prototype.flush=function(w){var A=0,R={captions:[],captionStreams:{},metadata:[],info:{}},I,V,G,ie=0,ue;if(this.pendingTracks.length<this.numberOfTracks){if(w!=="VideoSegmentStream"&&w!=="AudioSegmentStream")return;if(this.remuxTracks)return;if(this.pendingTracks.length===0){this.emittedTracks++,this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0);return}}if(this.videoTrack?(ie=this.videoTrack.timelineStartInfo.pts,Jv.forEach(function(he){R.info[he]=this.videoTrack[he]},this)):this.audioTrack&&(ie=this.audioTrack.timelineStartInfo.pts,Qv.forEach(function(he){R.info[he]=this.audioTrack[he]},this)),this.videoTrack||this.audioTrack){for(this.pendingTracks.length===1?R.type=this.pendingTracks[0].type:R.type="combined",this.emittedTracks+=this.pendingTracks.length,G=ad.initSegment(this.pendingTracks),R.initSegment=new Uint8Array(G.byteLength),R.initSegment.set(G),R.data=new Uint8Array(this.pendingBytes),ue=0;ue<this.pendingBoxes.length;ue++)R.data.set(this.pendingBoxes[ue],A),A+=this.pendingBoxes[ue].byteLength;for(ue=0;ue<this.pendingCaptions.length;ue++)I=this.pendingCaptions[ue],I.startTime=Gh.metadataTsToSeconds(I.startPts,ie,this.keepOriginalTimestamps),I.endTime=Gh.metadataTsToSeconds(I.endPts,ie,this.keepOriginalTimestamps),R.captionStreams[I.stream]=!0,R.captions.push(I);for(ue=0;ue<this.pendingMetadata.length;ue++)V=this.pendingMetadata[ue],V.cueTime=Gh.metadataTsToSeconds(V.pts,ie,this.keepOriginalTimestamps),R.metadata.push(V);for(R.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",R),ue=0;ue<R.captions.length;ue++)I=R.captions[ue],this.trigger("caption",I);for(ue=0;ue<R.metadata.length;ue++)V=R.metadata[ue],this.trigger("id3Frame",V)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Ko.prototype.setRemux=function(w){this.remuxTracks=w},Yh=function(w){var A=this,R=!0,I,V;Yh.prototype.init.call(this),w=w||{},this.baseMediaDecodeTime=w.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var G={};this.transmuxPipeline_=G,G.type="aac",G.metadataStream=new da.MetadataStream,G.aacStream=new s6,G.audioTimestampRolloverStream=new da.TimestampRolloverStream("audio"),G.timedMetadataTimestampRolloverStream=new da.TimestampRolloverStream("timed-metadata"),G.adtsStream=new DS,G.coalesceStream=new Ko(w,G.metadataStream),G.headOfPipeline=G.aacStream,G.aacStream.pipe(G.audioTimestampRolloverStream).pipe(G.adtsStream),G.aacStream.pipe(G.timedMetadataTimestampRolloverStream).pipe(G.metadataStream).pipe(G.coalesceStream),G.metadataStream.on("timestamp",function(ie){G.aacStream.setTimestamp(ie.timeStamp)}),G.aacStream.on("data",function(ie){ie.type!=="timed-metadata"&&ie.type!=="audio"||G.audioSegmentStream||(V=V||{timelineStartInfo:{baseMediaDecodeTime:A.baseMediaDecodeTime},codec:"adts",type:"audio"},G.coalesceStream.numberOfTracks++,G.audioSegmentStream=new eu(V,w),G.audioSegmentStream.on("log",A.getLogTrigger_("audioSegmentStream")),G.audioSegmentStream.on("timingInfo",A.trigger.bind(A,"audioTimingInfo")),G.adtsStream.pipe(G.audioSegmentStream).pipe(G.coalesceStream),A.trigger("trackinfo",{hasAudio:!!V,hasVideo:!!I}))}),G.coalesceStream.on("data",this.trigger.bind(this,"data")),G.coalesceStream.on("done",this.trigger.bind(this,"done")),OS(this,G)},this.setupTsPipeline=function(){var G={};this.transmuxPipeline_=G,G.type="ts",G.metadataStream=new da.MetadataStream,G.packetStream=new da.TransportPacketStream,G.parseStream=new da.TransportParseStream,G.elementaryStream=new da.ElementaryStream,G.timestampRolloverStream=new da.TimestampRolloverStream,G.adtsStream=new DS,G.h264Stream=new n6,G.captionStream=new da.CaptionStream(w),G.coalesceStream=new Ko(w,G.metadataStream),G.headOfPipeline=G.packetStream,G.packetStream.pipe(G.parseStream).pipe(G.elementaryStream).pipe(G.timestampRolloverStream),G.timestampRolloverStream.pipe(G.h264Stream),G.timestampRolloverStream.pipe(G.adtsStream),G.timestampRolloverStream.pipe(G.metadataStream).pipe(G.coalesceStream),G.h264Stream.pipe(G.captionStream).pipe(G.coalesceStream),G.elementaryStream.on("data",function(ie){var ue;if(ie.type==="metadata"){for(ue=ie.tracks.length;ue--;)!I&&ie.tracks[ue].type==="video"?(I=ie.tracks[ue],I.timelineStartInfo.baseMediaDecodeTime=A.baseMediaDecodeTime):!V&&ie.tracks[ue].type==="audio"&&(V=ie.tracks[ue],V.timelineStartInfo.baseMediaDecodeTime=A.baseMediaDecodeTime);I&&!G.videoSegmentStream&&(G.coalesceStream.numberOfTracks++,G.videoSegmentStream=new ld(I,w),G.videoSegmentStream.on("log",A.getLogTrigger_("videoSegmentStream")),G.videoSegmentStream.on("timelineStartInfo",function(he){V&&!w.keepOriginalTimestamps&&(V.timelineStartInfo=he,G.audioSegmentStream.setEarliestDts(he.dts-A.baseMediaDecodeTime))}),G.videoSegmentStream.on("processedGopsInfo",A.trigger.bind(A,"gopInfo")),G.videoSegmentStream.on("segmentTimingInfo",A.trigger.bind(A,"videoSegmentTimingInfo")),G.videoSegmentStream.on("baseMediaDecodeTime",function(he){V&&G.audioSegmentStream.setVideoBaseMediaDecodeTime(he)}),G.videoSegmentStream.on("timingInfo",A.trigger.bind(A,"videoTimingInfo")),G.h264Stream.pipe(G.videoSegmentStream).pipe(G.coalesceStream)),V&&!G.audioSegmentStream&&(G.coalesceStream.numberOfTracks++,G.audioSegmentStream=new eu(V,w),G.audioSegmentStream.on("log",A.getLogTrigger_("audioSegmentStream")),G.audioSegmentStream.on("timingInfo",A.trigger.bind(A,"audioTimingInfo")),G.audioSegmentStream.on("segmentTimingInfo",A.trigger.bind(A,"audioSegmentTimingInfo")),G.adtsStream.pipe(G.audioSegmentStream).pipe(G.coalesceStream)),A.trigger("trackinfo",{hasAudio:!!V,hasVideo:!!I})}}),G.coalesceStream.on("data",this.trigger.bind(this,"data")),G.coalesceStream.on("id3Frame",function(ie){ie.dispatchType=G.metadataStream.dispatchType,A.trigger("id3Frame",ie)}),G.coalesceStream.on("caption",this.trigger.bind(this,"caption")),G.coalesceStream.on("done",this.trigger.bind(this,"done")),OS(this,G)},this.setBaseMediaDecodeTime=function(G){var ie=this.transmuxPipeline_;w.keepOriginalTimestamps||(this.baseMediaDecodeTime=G),V&&(V.timelineStartInfo.dts=void 0,V.timelineStartInfo.pts=void 0,ii.clearDtsInfo(V),ie.audioTimestampRolloverStream&&ie.audioTimestampRolloverStream.discontinuity()),I&&(ie.videoSegmentStream&&(ie.videoSegmentStream.gopCache_=[]),I.timelineStartInfo.dts=void 0,I.timelineStartInfo.pts=void 0,ii.clearDtsInfo(I),ie.captionStream.reset()),ie.timestampRolloverStream&&ie.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(G){V&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(G)},this.setRemux=function(G){var ie=this.transmuxPipeline_;w.remux=G,ie&&ie.coalesceStream&&ie.coalesceStream.setRemux(G)},this.alignGopsWith=function(G){I&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(G)},this.getLogTrigger_=function(G){var ie=this;return function(ue){ue.stream=G,ie.trigger("log",ue)}},this.push=function(G){if(R){var ie=r6(G);ie&&this.transmuxPipeline_.type!=="aac"?this.setupAacPipeline():!ie&&this.transmuxPipeline_.type!=="ts"&&this.setupTsPipeline(),R=!1}this.transmuxPipeline_.headOfPipeline.push(G)},this.flush=function(){R=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},Yh.prototype=new Wh;var o6={Transmuxer:Yh,VideoSegmentStream:ld,AudioSegmentStream:eu,AUDIO_PROPERTIES:Qv,VIDEO_PROPERTIES:Jv,generateSegmentTimingInfo:Zv},l6=function(w){return w>>>0},u6=function(w){return("00"+w.toString(16)).slice(-2)},Xh={toUnsigned:l6,toHexString:u6},c6=function(w){var A="";return A+=String.fromCharCode(w[0]),A+=String.fromCharCode(w[1]),A+=String.fromCharCode(w[2]),A+=String.fromCharCode(w[3]),A},RS=c6,d6=Xh.toUnsigned,f6=RS,NS=function(w,A){var R=[],I,V,G,ie,ue;if(!A.length)return null;for(I=0;I<w.byteLength;)V=d6(w[I]<<24|w[I+1]<<16|w[I+2]<<8|w[I+3]),G=f6(w.subarray(I+4,I+8)),ie=V>1?I+V:w.byteLength,G===A[0]&&(A.length===1?R.push(w.subarray(I+8,ie)):(ue=NS(w.subarray(I+8,ie),A.slice(1)),ue.length&&(R=R.concat(ue)))),I=ie;return R},MS=NS,h6=Xh.toUnsigned,p6=i.getUint64,m6=function(w){var A={version:w[0],flags:new Uint8Array(w.subarray(1,4))};return A.version===1?A.baseMediaDecodeTime=p6(w.subarray(4)):A.baseMediaDecodeTime=h6(w[4]<<24|w[5]<<16|w[6]<<8|w[7]),A},$S=m6,g6=function(w){return{isLeading:(w[0]&12)>>>2,dependsOn:w[0]&3,isDependedOn:(w[1]&192)>>>6,hasRedundancy:(w[1]&48)>>>4,paddingValue:(w[1]&14)>>>1,isNonSyncSample:w[1]&1,degradationPriority:w[2]<<8|w[3]}},v6=g6,LS=v6,y6=function(w){var A={version:w[0],flags:new Uint8Array(w.subarray(1,4)),samples:[]},R=new DataView(w.buffer,w.byteOffset,w.byteLength),I=A.flags[2]&1,V=A.flags[2]&4,G=A.flags[1]&1,ie=A.flags[1]&2,ue=A.flags[1]&4,he=A.flags[1]&8,ye=R.getUint32(4),$e=8,We;for(I&&(A.dataOffset=R.getInt32($e),$e+=4),V&&ye&&(We={flags:LS(w.subarray($e,$e+4))},$e+=4,G&&(We.duration=R.getUint32($e),$e+=4),ie&&(We.size=R.getUint32($e),$e+=4),he&&(A.version===1?We.compositionTimeOffset=R.getInt32($e):We.compositionTimeOffset=R.getUint32($e),$e+=4),A.samples.push(We),ye--);ye--;)We={},G&&(We.duration=R.getUint32($e),$e+=4),ie&&(We.size=R.getUint32($e),$e+=4),ue&&(We.flags=LS(w.subarray($e,$e+4)),$e+=4),he&&(A.version===1?We.compositionTimeOffset=R.getInt32($e):We.compositionTimeOffset=R.getUint32($e),$e+=4),A.samples.push(We);return A},BS=y6,b6=function(w){var A=new DataView(w.buffer,w.byteOffset,w.byteLength),R={version:w[0],flags:new Uint8Array(w.subarray(1,4)),trackId:A.getUint32(4)},I=R.flags[2]&1,V=R.flags[2]&2,G=R.flags[2]&8,ie=R.flags[2]&16,ue=R.flags[2]&32,he=R.flags[0]&65536,ye=R.flags[0]&131072,$e;return $e=8,I&&($e+=4,R.baseDataOffset=A.getUint32(12),$e+=4),V&&(R.sampleDescriptionIndex=A.getUint32($e),$e+=4),G&&(R.defaultSampleDuration=A.getUint32($e),$e+=4),ie&&(R.defaultSampleSize=A.getUint32($e),$e+=4),ue&&(R.defaultSampleFlags=A.getUint32($e)),he&&(R.durationIsEmpty=!0),!I&&ye&&(R.baseDataOffsetIsMoof=!0),R},FS=b6,ud;typeof window<"u"?ud=window:typeof e<"u"?ud=e:typeof self<"u"?ud=self:ud={};var VS=ud,_6=ca.discardEmulationPreventionBytes,w6=Ge.CaptionStream,cd=MS,S6=$S,T6=BS,C6=FS,US=VS,E6=function(w,A){for(var R=w,I=0;I<A.length;I++){var V=A[I];if(R<V.size)return V;R-=V.size}return null},x6=function(w,A,R){var I=new DataView(w.buffer,w.byteOffset,w.byteLength),V={logs:[],seiNals:[]},G,ie,ue,he;for(ie=0;ie+4<w.length;ie+=ue)if(ue=I.getUint32(ie),ie+=4,!(ue<=0))switch(w[ie]&31){case 6:var ye=w.subarray(ie+1,ie+1+ue),$e=E6(ie,A);if(G={nalUnitType:"sei_rbsp",size:ue,data:ye,escapedRBSP:_6(ye),trackId:R},$e)G.pts=$e.pts,G.dts=$e.dts,he=$e;else if(he)G.pts=he.pts,G.dts=he.dts;else{V.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+ie+" for trackId "+R+". See mux.js#223."});break}V.seiNals.push(G);break}return V},k6=function(w,A,R){var I=A,V=R.defaultSampleDuration||0,G=R.defaultSampleSize||0,ie=R.trackId,ue=[];return w.forEach(function(he){var ye=T6(he),$e=ye.samples;$e.forEach(function(We){We.duration===void 0&&(We.duration=V),We.size===void 0&&(We.size=G),We.trackId=ie,We.dts=I,We.compositionTimeOffset===void 0&&(We.compositionTimeOffset=0),typeof I=="bigint"?(We.pts=I+US.BigInt(We.compositionTimeOffset),I+=US.BigInt(We.duration)):(We.pts=I+We.compositionTimeOffset,I+=We.duration)}),ue=ue.concat($e)}),ue},A6=function(w,A){var R=cd(w,["moof","traf"]),I=cd(w,["mdat"]),V={},G=[];return I.forEach(function(ie,ue){var he=R[ue];G.push({mdat:ie,traf:he})}),G.forEach(function(ie){var ue=ie.mdat,he=ie.traf,ye=cd(he,["tfhd"]),$e=C6(ye[0]),We=$e.trackId,Et=cd(he,["tfdt"]),rt=Et.length>0?S6(Et[0]).baseMediaDecodeTime:0,Ut=cd(he,["trun"]),Xt,ls;A===We&&Ut.length>0&&(Xt=k6(Ut,rt,$e),ls=x6(ue,Xt,We),V[We]||(V[We]={seiNals:[],logs:[]}),V[We].seiNals=V[We].seiNals.concat(ls.seiNals),V[We].logs=V[We].logs.concat(ls.logs))}),V},I6=function(w,A,R){var I;if(A===null)return null;I=A6(w,A);var V=I[A]||{};return{seiNals:V.seiNals,logs:V.logs,timescale:R}},D6=function(){var w=!1,A,R,I,V,G,ie;this.isInitialized=function(){return w},this.init=function(ue){A=new w6,w=!0,ie=ue?ue.isPartial:!1,A.on("data",function(he){he.startTime=he.startPts/V,he.endTime=he.endPts/V,G.captions.push(he),G.captionStreams[he.stream]=!0}),A.on("log",function(he){G.logs.push(he)})},this.isNewInit=function(ue,he){return ue&&ue.length===0||he&&typeof he=="object"&&Object.keys(he).length===0?!1:I!==ue[0]||V!==he[I]},this.parse=function(ue,he,ye){var $e;if(this.isInitialized()){if(!he||!ye)return null;if(this.isNewInit(he,ye))I=he[0],V=ye[I];else if(I===null||!V)return R.push(ue),null}else return null;for(;R.length>0;){var We=R.shift();this.parse(We,he,ye)}return $e=I6(ue,I,V),$e&&$e.logs&&(G.logs=G.logs.concat($e.logs)),$e===null||!$e.seiNals?G.logs.length?{logs:G.logs,captions:[],captionStreams:[]}:null:(this.pushNals($e.seiNals),this.flushStream(),G)},this.pushNals=function(ue){if(!this.isInitialized()||!ue||ue.length===0)return null;ue.forEach(function(he){A.push(he)})},this.flushStream=function(){if(!this.isInitialized())return null;ie?A.partialFlush():A.flush()},this.clearParsedCaptions=function(){G.captions=[],G.captionStreams={},G.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;A.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){R=[],I=null,V=null,G?this.clearParsedCaptions():G={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},O6=D6,P6=function(w){for(var A=0,R=String.fromCharCode(w[A]),I="";R!=="\0";)I+=R,A++,R=String.fromCharCode(w[A]);return I+=R,I},R6={uint8ToCString:P6},Qh=R6.uint8ToCString,N6=i.getUint64,M6=function(w){var A=4,R=w[0],I,V,G,ie,ue,he,ye,$e;if(R===0){I=Qh(w.subarray(A)),A+=I.length,V=Qh(w.subarray(A)),A+=V.length;var We=new DataView(w.buffer);G=We.getUint32(A),A+=4,ue=We.getUint32(A),A+=4,he=We.getUint32(A),A+=4,ye=We.getUint32(A),A+=4}else if(R===1){var We=new DataView(w.buffer);G=We.getUint32(A),A+=4,ie=N6(w.subarray(A)),A+=8,he=We.getUint32(A),A+=4,ye=We.getUint32(A),A+=4,I=Qh(w.subarray(A)),A+=I.length,V=Qh(w.subarray(A)),A+=V.length}$e=new Uint8Array(w.subarray(A,w.byteLength));var Et={scheme_id_uri:I,value:V,timescale:G||1,presentation_time:ie,presentation_time_delta:ue,event_duration:he,id:ye,message_data:$e};return L6(R,Et)?Et:void 0},$6=function(w,A,R,I){return w||w===0?w/A:I+R/A},L6=function(w,A){var R=A.scheme_id_uri!=="\0",I=w===0&&HS(A.presentation_time_delta)&&R,V=w===1&&HS(A.presentation_time)&&R;return!(w>1)&&I||V},HS=function(w){return w!==void 0||w!==null},B6={parseEmsgBox:M6,scaleTime:$6},Jh=Xh.toUnsigned,dd=Xh.toHexString,Gn=MS,tu=RS,e0=B6,F6=FS,V6=BS,U6=$S,H6=i.getUint64,zS,jS,qS,WS,KS,t0,GS,n0=VS,z6=_S.parseId3Frames;zS=function(w){var A={},R=Gn(w,["moov","trak"]);return R.reduce(function(I,V){var G,ie,ue,he,ye;return G=Gn(V,["tkhd"])[0],!G||(ie=G[0],ue=ie===0?12:20,he=Jh(G[ue]<<24|G[ue+1]<<16|G[ue+2]<<8|G[ue+3]),ye=Gn(V,["mdia","mdhd"])[0],!ye)?null:(ie=ye[0],ue=ie===0?12:20,I[he]=Jh(ye[ue]<<24|ye[ue+1]<<16|ye[ue+2]<<8|ye[ue+3]),I)},A)},jS=function(w,A){var R;R=Gn(A,["moof","traf"]);var I=R.reduce(function(V,G){var ie=Gn(G,["tfhd"])[0],ue=Jh(ie[4]<<24|ie[5]<<16|ie[6]<<8|ie[7]),he=w[ue]||9e4,ye=Gn(G,["tfdt"])[0],$e=new DataView(ye.buffer,ye.byteOffset,ye.byteLength),We;ye[0]===1?We=H6(ye.subarray(4,12)):We=$e.getUint32(4);let Et;return typeof We=="bigint"?Et=We/n0.BigInt(he):typeof We=="number"&&!isNaN(We)&&(Et=We/he),Et<Number.MAX_SAFE_INTEGER&&(Et=Number(Et)),Et<V&&(V=Et),V},1/0);return typeof I=="bigint"||isFinite(I)?I:0},qS=function(w,A){var R=Gn(A,["moof","traf"]),I=0,V=0,G;if(R&&R.length){var ie=Gn(R[0],["tfhd"])[0],ue=Gn(R[0],["trun"])[0],he=Gn(R[0],["tfdt"])[0];if(ie){var ye=F6(ie);G=ye.trackId}if(he){var $e=U6(he);I=$e.baseMediaDecodeTime}if(ue){var We=V6(ue);We.samples&&We.samples.length&&(V=We.samples[0].compositionTimeOffset||0)}}var Et=w[G]||9e4;typeof I=="bigint"&&(V=n0.BigInt(V),Et=n0.BigInt(Et));var rt=(I+V)/Et;return typeof rt=="bigint"&&rt<Number.MAX_SAFE_INTEGER&&(rt=Number(rt)),rt},WS=function(w){var A=Gn(w,["moov","trak"]),R=[];return A.forEach(function(I){var V=Gn(I,["mdia","hdlr"]),G=Gn(I,["tkhd"]);V.forEach(function(ie,ue){var he=tu(ie.subarray(8,12)),ye=G[ue],$e,We,Et;he==="vide"&&($e=new DataView(ye.buffer,ye.byteOffset,ye.byteLength),We=$e.getUint8(0),Et=We===0?$e.getUint32(12):$e.getUint32(20),R.push(Et))})}),R},t0=function(w){var A=w[0],R=A===0?12:20;return Jh(w[R]<<24|w[R+1]<<16|w[R+2]<<8|w[R+3])},KS=function(w){var A=Gn(w,["moov","trak"]),R=[];return A.forEach(function(I){var V={},G=Gn(I,["tkhd"])[0],ie,ue;G&&(ie=new DataView(G.buffer,G.byteOffset,G.byteLength),ue=ie.getUint8(0),V.id=ue===0?ie.getUint32(12):ie.getUint32(20));var he=Gn(I,["mdia","hdlr"])[0];if(he){var ye=tu(he.subarray(8,12));ye==="vide"?V.type="video":ye==="soun"?V.type="audio":V.type=ye}var $e=Gn(I,["mdia","minf","stbl","stsd"])[0];if($e){var We=$e.subarray(8);V.codec=tu(We.subarray(4,8));var Et=Gn(We,[V.codec])[0],rt,Ut;Et&&(/^[asm]vc[1-9]$/i.test(V.codec)?(rt=Et.subarray(78),Ut=tu(rt.subarray(4,8)),Ut==="avcC"&&rt.length>11?(V.codec+=".",V.codec+=dd(rt[9]),V.codec+=dd(rt[10]),V.codec+=dd(rt[11])):V.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(V.codec)?(rt=Et.subarray(28),Ut=tu(rt.subarray(4,8)),Ut==="esds"&&rt.length>20&&rt[19]!==0?(V.codec+="."+dd(rt[19]),V.codec+="."+dd(rt[20]>>>2&63).replace(/^0/,"")):V.codec="mp4a.40.2"):V.codec=V.codec.toLowerCase())}var Xt=Gn(I,["mdia","mdhd"])[0];Xt&&(V.timescale=t0(Xt)),R.push(V)}),R},GS=function(w,A=0){var R=Gn(w,["emsg"]);return R.map(I=>{var V=e0.parseEmsgBox(new Uint8Array(I)),G=z6(V.message_data);return{cueTime:e0.scaleTime(V.presentation_time,V.timescale,V.presentation_time_delta,A),duration:e0.scaleTime(V.event_duration,V.timescale),frames:G}})};var s0={findBox:Gn,parseType:tu,timescale:zS,startTime:jS,compositionStartTime:qS,videoTrackIds:WS,tracks:KS,getTimescaleFromMediaHeader:t0,getEmsgID3:GS},r0=wt,YS=function(w){var A=w[1]&31;return A<<=8,A|=w[2],A},Zh=function(w){return!!(w[1]&64)},ep=function(w){var A=0;return(w[3]&48)>>>4>1&&(A+=w[4]+1),A},j6=function(w,A){var R=YS(w);return R===0?"pat":R===A?"pmt":A?"pes":null},q6=function(w){var A=Zh(w),R=4+ep(w);return A&&(R+=w[R]+1),(w[R+10]&31)<<8|w[R+11]},W6=function(w){var A={},R=Zh(w),I=4+ep(w);if(R&&(I+=w[I]+1),!!(w[I+5]&1)){var V,G,ie;V=(w[I+1]&15)<<8|w[I+2],G=3+V-4,ie=(w[I+10]&15)<<8|w[I+11];for(var ue=12+ie;ue<G;){var he=I+ue;A[(w[he+1]&31)<<8|w[he+2]]=w[he],ue+=((w[he+3]&15)<<8|w[he+4])+5}return A}},K6=function(w,A){var R=YS(w),I=A[R];switch(I){case r0.H264_STREAM_TYPE:return"video";case r0.ADTS_STREAM_TYPE:return"audio";case r0.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},G6=function(w){var A=Zh(w);if(!A)return null;var R=4+ep(w);if(R>=w.byteLength)return null;var I=null,V;return V=w[R+7],V&192&&(I={},I.pts=(w[R+9]&14)<<27|(w[R+10]&255)<<20|(w[R+11]&254)<<12|(w[R+12]&255)<<5|(w[R+13]&254)>>>3,I.pts*=4,I.pts+=(w[R+13]&6)>>>1,I.dts=I.pts,V&64&&(I.dts=(w[R+14]&14)<<27|(w[R+15]&255)<<20|(w[R+16]&254)<<12|(w[R+17]&255)<<5|(w[R+18]&254)>>>3,I.dts*=4,I.dts+=(w[R+18]&6)>>>1)),I},i0=function(w){switch(w){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},Y6=function(w){for(var A=4+ep(w),R=w.subarray(A),I=0,V=0,G=!1,ie;V<R.byteLength-3;V++)if(R[V+2]===1){I=V+5;break}for(;I<R.byteLength;)switch(R[I]){case 0:if(R[I-1]!==0){I+=2;break}else if(R[I-2]!==0){I++;break}V+3!==I-2&&(ie=i0(R[V+3]&31),ie==="slice_layer_without_partitioning_rbsp_idr"&&(G=!0));do I++;while(R[I]!==1&&I<R.length);V=I-2,I+=3;break;case 1:if(R[I-1]!==0||R[I-2]!==0){I+=3;break}ie=i0(R[V+3]&31),ie==="slice_layer_without_partitioning_rbsp_idr"&&(G=!0),V=I-2,I+=3;break;default:I+=3;break}return R=R.subarray(V),I-=V,V=0,R&&R.byteLength>3&&(ie=i0(R[V+3]&31),ie==="slice_layer_without_partitioning_rbsp_idr"&&(G=!0)),G},X6={parseType:j6,parsePat:q6,parsePmt:W6,parsePayloadUnitStartIndicator:Zh,parsePesType:K6,parsePesTime:G6,videoPacketContainsKeyFrame:Y6},XS=wt,nu=yS.handleRollover,_n={};_n.ts=X6,_n.aac=Xv;var Go=be.ONE_SECOND_IN_TS,Vs=188,Oi=71,Q6=function(w,A){for(var R=0,I=Vs,V,G;I<w.byteLength;){if(w[R]===Oi&&w[I]===Oi){switch(V=w.subarray(R,I),G=_n.ts.parseType(V,A.pid),G){case"pat":A.pid=_n.ts.parsePat(V);break;case"pmt":var ie=_n.ts.parsePmt(V);A.table=A.table||{},Object.keys(ie).forEach(function(ue){A.table[ue]=ie[ue]});break}R+=Vs,I+=Vs;continue}R++,I++}},QS=function(w,A,R){for(var I=0,V=Vs,G,ie,ue,he,ye,$e=!1;V<=w.byteLength;){if(w[I]===Oi&&(w[V]===Oi||V===w.byteLength)){switch(G=w.subarray(I,V),ie=_n.ts.parseType(G,A.pid),ie){case"pes":ue=_n.ts.parsePesType(G,A.table),he=_n.ts.parsePayloadUnitStartIndicator(G),ue==="audio"&&he&&(ye=_n.ts.parsePesTime(G),ye&&(ye.type="audio",R.audio.push(ye),$e=!0));break}if($e)break;I+=Vs,V+=Vs;continue}I++,V++}for(V=w.byteLength,I=V-Vs,$e=!1;I>=0;){if(w[I]===Oi&&(w[V]===Oi||V===w.byteLength)){switch(G=w.subarray(I,V),ie=_n.ts.parseType(G,A.pid),ie){case"pes":ue=_n.ts.parsePesType(G,A.table),he=_n.ts.parsePayloadUnitStartIndicator(G),ue==="audio"&&he&&(ye=_n.ts.parsePesTime(G),ye&&(ye.type="audio",R.audio.push(ye),$e=!0));break}if($e)break;I-=Vs,V-=Vs;continue}I--,V--}},J6=function(w,A,R){for(var I=0,V=Vs,G,ie,ue,he,ye,$e,We,Et,rt=!1,Ut={data:[],size:0};V<w.byteLength;){if(w[I]===Oi&&w[V]===Oi){switch(G=w.subarray(I,V),ie=_n.ts.parseType(G,A.pid),ie){case"pes":if(ue=_n.ts.parsePesType(G,A.table),he=_n.ts.parsePayloadUnitStartIndicator(G),ue==="video"&&(he&&!rt&&(ye=_n.ts.parsePesTime(G),ye&&(ye.type="video",R.video.push(ye),rt=!0)),!R.firstKeyFrame)){if(he&&Ut.size!==0){for($e=new Uint8Array(Ut.size),We=0;Ut.data.length;)Et=Ut.data.shift(),$e.set(Et,We),We+=Et.byteLength;if(_n.ts.videoPacketContainsKeyFrame($e)){var Xt=_n.ts.parsePesTime($e);Xt?(R.firstKeyFrame=Xt,R.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}Ut.size=0}Ut.data.push(G),Ut.size+=G.byteLength}break}if(rt&&R.firstKeyFrame)break;I+=Vs,V+=Vs;continue}I++,V++}for(V=w.byteLength,I=V-Vs,rt=!1;I>=0;){if(w[I]===Oi&&w[V]===Oi){switch(G=w.subarray(I,V),ie=_n.ts.parseType(G,A.pid),ie){case"pes":ue=_n.ts.parsePesType(G,A.table),he=_n.ts.parsePayloadUnitStartIndicator(G),ue==="video"&&he&&(ye=_n.ts.parsePesTime(G),ye&&(ye.type="video",R.video.push(ye),rt=!0));break}if(rt)break;I-=Vs,V-=Vs;continue}I--,V--}},Z6=function(w,A){if(w.audio&&w.audio.length){var R=A;(typeof R>"u"||isNaN(R))&&(R=w.audio[0].dts),w.audio.forEach(function(G){G.dts=nu(G.dts,R),G.pts=nu(G.pts,R),G.dtsTime=G.dts/Go,G.ptsTime=G.pts/Go})}if(w.video&&w.video.length){var I=A;if((typeof I>"u"||isNaN(I))&&(I=w.video[0].dts),w.video.forEach(function(G){G.dts=nu(G.dts,I),G.pts=nu(G.pts,I),G.dtsTime=G.dts/Go,G.ptsTime=G.pts/Go}),w.firstKeyFrame){var V=w.firstKeyFrame;V.dts=nu(V.dts,I),V.pts=nu(V.pts,I),V.dtsTime=V.dts/Go,V.ptsTime=V.pts/Go}}},eL=function(w){for(var A=!1,R=0,I=null,V=null,G=0,ie=0,ue;w.length-ie>=3;){var he=_n.aac.parseType(w,ie);switch(he){case"timed-metadata":if(w.length-ie<10){A=!0;break}if(G=_n.aac.parseId3TagSize(w,ie),G>w.length){A=!0;break}V===null&&(ue=w.subarray(ie,ie+G),V=_n.aac.parseAacTimestamp(ue)),ie+=G;break;case"audio":if(w.length-ie<7){A=!0;break}if(G=_n.aac.parseAdtsSize(w,ie),G>w.length){A=!0;break}I===null&&(ue=w.subarray(ie,ie+G),I=_n.aac.parseSampleRate(ue)),R++,ie+=G;break;default:ie++;break}if(A)return null}if(I===null||V===null)return null;var ye=Go/I,$e={audio:[{type:"audio",dts:V,pts:V},{type:"audio",dts:V+R*1024*ye,pts:V+R*1024*ye}]};return $e},tL=function(w){var A={pid:null,table:null},R={};Q6(w,A);for(var I in A.table)if(A.table.hasOwnProperty(I)){var V=A.table[I];switch(V){case XS.H264_STREAM_TYPE:R.video=[],J6(w,A,R),R.video.length===0&&delete R.video;break;case XS.ADTS_STREAM_TYPE:R.audio=[],QS(w,A,R),R.audio.length===0&&delete R.audio;break}}return R},nL=function(w,A){var R=_n.aac.isLikelyAacData(w),I;return R?I=eL(w):I=tL(w),!I||!I.audio&&!I.video?null:(Z6(I,A),I)},sL={inspect:nL,parseAudioPes_:QS};const rL=function(w,A){A.on("data",function(R){const I=R.initSegment;R.initSegment={data:I.buffer,byteOffset:I.byteOffset,byteLength:I.byteLength};const V=R.data;R.data=V.buffer,w.postMessage({action:"data",segment:R,byteOffset:V.byteOffset,byteLength:V.byteLength},[R.data])}),A.on("done",function(R){w.postMessage({action:"done"})}),A.on("gopInfo",function(R){w.postMessage({action:"gopInfo",gopInfo:R})}),A.on("videoSegmentTimingInfo",function(R){const I={start:{decode:be.videoTsToSeconds(R.start.dts),presentation:be.videoTsToSeconds(R.start.pts)},end:{decode:be.videoTsToSeconds(R.end.dts),presentation:be.videoTsToSeconds(R.end.pts)},baseMediaDecodeTime:be.videoTsToSeconds(R.baseMediaDecodeTime)};R.prependedContentDuration&&(I.prependedContentDuration=be.videoTsToSeconds(R.prependedContentDuration)),w.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:I})}),A.on("audioSegmentTimingInfo",function(R){const I={start:{decode:be.videoTsToSeconds(R.start.dts),presentation:be.videoTsToSeconds(R.start.pts)},end:{decode:be.videoTsToSeconds(R.end.dts),presentation:be.videoTsToSeconds(R.end.pts)},baseMediaDecodeTime:be.videoTsToSeconds(R.baseMediaDecodeTime)};R.prependedContentDuration&&(I.prependedContentDuration=be.videoTsToSeconds(R.prependedContentDuration)),w.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:I})}),A.on("id3Frame",function(R){w.postMessage({action:"id3Frame",id3Frame:R})}),A.on("caption",function(R){w.postMessage({action:"caption",caption:R})}),A.on("trackinfo",function(R){w.postMessage({action:"trackinfo",trackInfo:R})}),A.on("audioTimingInfo",function(R){w.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:be.videoTsToSeconds(R.start),end:be.videoTsToSeconds(R.end)}})}),A.on("videoTimingInfo",function(R){w.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:be.videoTsToSeconds(R.start),end:be.videoTsToSeconds(R.end)}})}),A.on("log",function(R){w.postMessage({action:"log",log:R})})};class JS{constructor(A,R){this.options=R||{},this.self=A,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new o6.Transmuxer(this.options),rL(this.self,this.transmuxer)}pushMp4Captions(A){this.captionParser||(this.captionParser=new O6,this.captionParser.init());const R=new Uint8Array(A.data,A.byteOffset,A.byteLength),I=this.captionParser.parse(R,A.trackIds,A.timescales);this.self.postMessage({action:"mp4Captions",captions:I&&I.captions||[],logs:I&&I.logs||[],data:R.buffer},[R.buffer])}probeMp4StartTime({timescales:A,data:R}){const I=s0.startTime(A,R);this.self.postMessage({action:"probeMp4StartTime",startTime:I,data:R},[R.buffer])}probeMp4Tracks({data:A}){const R=s0.tracks(A);this.self.postMessage({action:"probeMp4Tracks",tracks:R,data:A},[A.buffer])}probeEmsgID3({data:A,offset:R}){const I=s0.getEmsgID3(A,R);this.self.postMessage({action:"probeEmsgID3",id3Frames:I,emsgData:A},[A.buffer])}probeTs({data:A,baseStartTime:R}){const I=typeof R=="number"&&!isNaN(R)?R*be.ONE_SECOND_IN_TS:void 0,V=sL.inspect(A,I);let G=null;V&&(G={hasVideo:V.video&&V.video.length===2||!1,hasAudio:V.audio&&V.audio.length===2||!1},G.hasVideo&&(G.videoStart=V.video[0].ptsTime),G.hasAudio&&(G.audioStart=V.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:G,data:A},[A.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(A){const R=new Uint8Array(A.data,A.byteOffset,A.byteLength);this.transmuxer.push(R)}reset(){this.transmuxer.reset()}setTimestampOffset(A){const R=A.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(be.secondsToVideoTs(R)))}setAudioAppendStart(A){this.transmuxer.setAudioAppendStart(Math.ceil(be.secondsToVideoTs(A.appendStart)))}setRemux(A){this.transmuxer.setRemux(A.remux)}flush(A){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(A){this.transmuxer.alignGopsWith(A.gopsToAlignWith.slice())}}self.onmessage=function(w){if(w.data.action==="init"&&w.data.options){this.messageHandlers=new JS(self,w.data.options);return}this.messageHandlers||(this.messageHandlers=new JS(self)),w.data&&w.data.action&&w.data.action!=="init"&&this.messageHandlers[w.data.action]&&this.messageHandlers[w.data.action](w.data)}}));var iwe=KM(rwe);const awe=(e,t,n)=>{const{type:s,initSegment:r,captions:i,captionStreams:a,metadata:o,videoFrameDtsTime:l,videoFramePtsTime:u}=e.data.segment;t.buffer.push({captions:i,captionStreams:a,metadata:o});const c=e.data.segment.boxes||{data:e.data.segment.data},f={type:s,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};typeof l<"u"&&(f.videoFrameDtsTime=l),typeof u<"u"&&(f.videoFramePtsTime=u),n(f)},owe=({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)},lwe=(e,t)=>{t.gopInfo=e.data.gopInfo},XM=e=>{const{transmuxer:t,bytes:n,audioAppendStart:s,gopsToAlignWith:r,remux:i,onData:a,onTrackInfo:o,onAudioTimingInfo:l,onVideoTimingInfo:u,onVideoSegmentTimingInfo:c,onAudioSegmentTimingInfo:f,onId3:h,onCaptions:m,onDone:g,onEndedTimeline:p,onTransmuxerLog:v,isEndOfTimeline:y,segment:_,triggerSegmentEventFn:b}=e,T={buffer:[]};let S=y;const C=N=>{t.currentTransmux===e&&(N.data.action==="data"&&awe(N,T,a),N.data.action==="trackinfo"&&o(N.data.trackInfo),N.data.action==="gopInfo"&&lwe(N,T),N.data.action==="audioTimingInfo"&&l(N.data.audioTimingInfo),N.data.action==="videoTimingInfo"&&u(N.data.videoTimingInfo),N.data.action==="videoSegmentTimingInfo"&&c(N.data.videoSegmentTimingInfo),N.data.action==="audioSegmentTimingInfo"&&f(N.data.audioSegmentTimingInfo),N.data.action==="id3Frame"&&h([N.data.id3Frame],N.data.id3Frame.dispatchType),N.data.action==="caption"&&m(N.data.caption),N.data.action==="endedtimeline"&&(S=!1,p()),N.data.action==="log"&&v(N.data.log),N.data.type==="transmuxed"&&(S||(t.onmessage=null,owe({transmuxedData:T,callback:g}),QM(t))))},D=()=>{const N={message:"Received an error message from the transmuxer worker",metadata:{errorType:He.Error.StreamingFailedToTransmuxSegment,segmentInfo:ul({segment:_})}};g(null,N)};if(t.onmessage=C,t.onerror=D,s&&t.postMessage({action:"setAudioAppendStart",appendStart:s}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),typeof i<"u"&&t.postMessage({action:"setRemux",remux:i}),n.byteLength){const N=n instanceof ArrayBuffer?n:n.buffer,$=n instanceof ArrayBuffer?0:n.byteOffset;b({type:"segmenttransmuxingstart",segment:_}),t.postMessage({action:"push",data:N,byteOffset:$,byteLength:n.byteLength},[N])}y&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},QM=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),typeof e.currentTransmux=="function"?e.currentTransmux():XM(e.currentTransmux))},CA=(e,t)=>{e.postMessage({action:t}),QM(e)},JM=(e,t)=>{if(!t.currentTransmux){t.currentTransmux=e,CA(t,e);return}t.transmuxQueue.push(CA.bind(null,t,e))},uwe=e=>{JM("reset",e)},cwe=e=>{JM("endTimeline",e)},ZM=e=>{if(!e.transmuxer.currentTransmux){e.transmuxer.currentTransmux=e,XM(e);return}e.transmuxer.transmuxQueue.push(e)},dwe=e=>{const t=new iwe;t.currentTransmux=null,t.transmuxQueue=[];const n=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)),t.postMessage({action:"init",options:e}),t};var by={reset:uwe,endTimeline:cwe,transmux:ZM,createTransmuxer:dwe};const cf=function(e){const t=e.transmuxer,n=e.endAction||e.action,s=e.callback,r=qn({},e,{endAction:null,transmuxer:null,callback:null}),i=a=>{a.data.action===n&&(t.removeEventListener("message",i),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),s(a.data))};if(t.addEventListener("message",i),e.data){const a=e.data instanceof ArrayBuffer;r.byteOffset=a?0:e.data.byteOffset,r.byteLength=e.data.byteLength;const o=[a?e.data:e.data.buffer];t.postMessage(r,o)}else t.postMessage(r)},Hi={FAILURE:2,TIMEOUT:-101,ABORTED:-102},O_=e=>{e.forEach(t=>{t.abort()})},fwe=e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}),hwe=e=>{const t=e.target,s={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return s.bytesReceived=e.loaded,s.bandwidth=Math.floor(s.bytesReceived/s.roundTripTime*8*1e3),s},dS=(e,t)=>{const{requestType:n}=t,s=Al({requestType:n,request:t,error:e});return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Hi.TIMEOUT,xhr:t,metadata:s}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:Hi.ABORTED,xhr:t,metadata:s}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Hi.FAILURE,xhr:t,metadata:s}:t.responseType==="arraybuffer"&&t.response.byteLength===0?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:Hi.FAILURE,xhr:t,metadata:s}:null},EA=(e,t,n,s)=>(r,i)=>{const a=i.response,o=dS(r,i);if(o)return n(o,e);if(a.byteLength!==16)return n({status:i.status,message:"Invalid HLS key at URL: "+i.uri,code:Hi.FAILURE,xhr:i},e);const l=new DataView(a),u=new Uint32Array([l.getUint32(0),l.getUint32(4),l.getUint32(8),l.getUint32(12)]);for(let f=0;f<t.length;f++)t[f].bytes=u;const c={uri:i.uri};return s({type:"segmentkeyloadcomplete",segment:e,keyInfo:c}),n(null,e)},e$=(e,t)=>{const n=Dw(e.map.bytes);if(n!=="mp4"){const s=e.map.resolvedUri||e.map.uri,r=n||"unknown";return t({internal:!0,message:`Found unsupported ${r} container for initialization segment at URL: ${s}`,code:Hi.FAILURE,metadata:{mediaType:r}})}cf({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:s,data:r})=>(e.map.bytes=r,s.forEach(function(i){e.map.tracks=e.map.tracks||{},!e.map.tracks[i.type]&&(e.map.tracks[i.type]=i,typeof i.id=="number"&&i.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[i.id]=i.timescale))}),t(null))})},pwe=({segment:e,finishProcessingFn:t,triggerSegmentEventFn:n})=>(s,r)=>{const i=dS(s,r);if(i)return t(i,e);const a=new Uint8Array(r.response);if(n({type:"segmentloaded",segment:e}),e.map.key)return e.map.encryptedBytes=a,t(null,e);e.map.bytes=a,e$(e,function(o){if(o)return o.xhr=r,o.status=r.status,t(o,e);t(null,e)})},mwe=({segment:e,finishProcessingFn:t,responseType:n,triggerSegmentEventFn:s})=>(r,i)=>{const a=dS(r,i);if(a)return t(a,e);s({type:"segmentloaded",segment:e});const o=n==="arraybuffer"||!i.responseText?i.response:nwe(i.responseText.substring(e.lastReachedChar||0));return e.stats=fwe(i),e.key?e.encryptedBytes=new Uint8Array(o):e.bytes=new Uint8Array(o),t(null,e)},gwe=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:m})=>{const g=e.map&&e.map.tracks||{},p=!!(g.audio&&g.video);let v=s.bind(null,e,"audio","start");const y=s.bind(null,e,"audio","end");let _=s.bind(null,e,"video","start");const b=s.bind(null,e,"video","end"),T=()=>ZM({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:p,onData:S=>{S.type=S.type==="combined"?"video":S.type,c(e,S)},onTrackInfo:S=>{n&&(p&&(S.isMuxed=!0),n(e,S))},onAudioTimingInfo:S=>{v&&typeof S.start<"u"&&(v(S.start),v=null),y&&typeof S.end<"u"&&y(S.end)},onVideoTimingInfo:S=>{_&&typeof S.start<"u"&&(_(S.start),_=null),b&&typeof S.end<"u"&&b(S.end)},onVideoSegmentTimingInfo:S=>{const C={pts:{start:S.start.presentation,end:S.end.presentation},dts:{start:S.start.decode,end:S.end.decode}};m({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:C}),r(S)},onAudioSegmentTimingInfo:S=>{const C={pts:{start:S.start.pts,end:S.end.pts},dts:{start:S.start.dts,end:S.end.dts}};m({type:"segmenttransmuxingtiminginfoavailable",segment:e,timingInfo:C}),i(S)},onId3:(S,C)=>{a(e,S,C)},onCaptions:S=>{o(e,[S])},isEndOfTimeline:l,onEndedTimeline:()=>{u()},onTransmuxerLog:h,onDone:(S,C)=>{f&&(S.type=S.type==="combined"?"video":S.type,m({type:"segmenttransmuxingcomplete",segment:e}),f(C,e,S))},segment:e,triggerSegmentEventFn:m});cf({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:S=>{e.bytes=t=S.data;const C=S.result;C&&(n(e,{hasAudio:C.hasAudio,hasVideo:C.hasVideo,isMuxed:p}),n=null),T()}})},t$=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:m})=>{let g=new Uint8Array(t);if(H_e(g)){e.isFmp4=!0;const{tracks:p}=e.map,v={isFmp4:!0,hasVideo:!!p.video,hasAudio:!!p.audio};p.audio&&p.audio.codec&&p.audio.codec!=="enca"&&(v.audioCodec=p.audio.codec),p.video&&p.video.codec&&p.video.codec!=="encv"&&(v.videoCodec=p.video.codec),p.video&&p.audio&&(v.isMuxed=!0),n(e,v);const y=(_,b)=>{c(e,{data:g,type:v.hasAudio&&!v.isMuxed?"audio":"video"}),b&&b.length&&a(e,b),_&&_.length&&o(e,_),f(null,e,{})};cf({action:"probeMp4StartTime",timescales:e.map.timescales,data:g,transmuxer:e.transmuxer,callback:({data:_,startTime:b})=>{t=_.buffer,e.bytes=g=_,v.hasAudio&&!v.isMuxed&&s(e,"audio","start",b),v.hasVideo&&s(e,"video","start",b),cf({action:"probeEmsgID3",data:g,transmuxer:e.transmuxer,offset:b,callback:({emsgData:T,id3Frames:S})=>{if(t=T.buffer,e.bytes=g=T,!p.video||!T.byteLength||!e.transmuxer){y(void 0,S);return}cf({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:g,timescales:e.map.timescales,trackIds:[p.video.id],callback:C=>{t=C.data.buffer,e.bytes=g=C.data,C.logs.forEach(function(D){h(bn(D,{stream:"mp4CaptionParser"}))}),y(C.captions,S)}})}})}});return}if(!e.transmuxer){f(null,e,{});return}if(typeof e.container>"u"&&(e.container=Dw(g)),e.container!=="ts"&&e.container!=="aac"){n(e,{hasAudio:!1,hasVideo:!1}),f(null,e,{});return}gwe({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:m})},n$=function({id:e,key:t,encryptedBytes:n,decryptionWorker:s,segment:r,doneFn:i},a){const o=u=>{if(u.data.source===e){s.removeEventListener("message",o);const c=u.data.decrypted;a(new Uint8Array(c.bytes,c.byteOffset,c.byteLength))}};s.onerror=()=>{const u="An error occurred in the decryption worker",c=ul({segment:r}),f={message:u,metadata:{error:new Error(u),errorType:He.Error.StreamingFailedToDecryptSegment,segmentInfo:c,keyInfo:{uri:r.key.resolvedUri||r.map.key.resolvedUri}}};i(f,r)},s.addEventListener("message",o);let l;t.bytes.slice?l=t.bytes.slice():l=new Uint32Array(Array.prototype.slice.call(t.bytes)),s.postMessage(UM({source:e,encrypted:n,key:l,iv:t.iv}),[n.buffer,l.buffer])},vwe=({decryptionWorker:e,segment:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:m})=>{m({type:"segmentdecryptionstart"}),n$({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e,segment:t,doneFn:f},g=>{t.bytes=g,m({type:"segmentdecryptioncomplete",segment:t}),t$({segment:t,bytes:t.bytes,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:m})})},ywe=({activeXhrs:e,decryptionWorker:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:m})=>{let g=0,p=!1;return(v,y)=>{if(!p){if(v)return p=!0,O_(e),f(v,y);if(g+=1,g===e.length){const _=function(){if(y.encryptedBytes)return vwe({decryptionWorker:t,segment:y,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:m});t$({segment:y,bytes:y.bytes,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:f,onTransmuxerLog:h,triggerSegmentEventFn:m})};if(y.endOfAllRequests=Date.now(),y.map&&y.map.encryptedBytes&&!y.map.bytes)return m({type:"segmentdecryptionstart",segment:y}),n$({decryptionWorker:t,id:y.requestId+"-init",encryptedBytes:y.map.encryptedBytes,key:y.map.key,segment:y,doneFn:f},b=>{y.map.bytes=b,m({type:"segmentdecryptioncomplete",segment:y}),e$(y,T=>{if(T)return O_(e),f(T,y);_()})});_()}}}},bwe=({loadendState:e,abortFn:t})=>n=>{n.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)},_we=({segment:e,progressFn:t,trackInfoFn:n,timingInfoFn:s,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:i,id3Fn:a,captionsFn:o,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c})=>f=>{if(!f.target.aborted)return e.stats=bn(e.stats,hwe(f)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(f,e)},wwe=({xhr:e,xhrOptions:t,decryptionWorker:n,segment:s,abortFn:r,progressFn:i,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:m,dataFn:g,doneFn:p,onTransmuxerLog:v,triggerSegmentEventFn:y})=>{const _=[],b=ywe({activeXhrs:_,decryptionWorker:n,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:m,dataFn:g,doneFn:p,onTransmuxerLog:v,triggerSegmentEventFn:y});if(s.key&&!s.key.bytes){const N=[s.key];s.map&&!s.map.bytes&&s.map.key&&s.map.key.resolvedUri===s.key.resolvedUri&&N.push(s.map.key);const $=bn(t,{uri:s.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),L=EA(s,N,b,y),z={uri:s.key.resolvedUri};y({type:"segmentkeyloadstart",segment:s,keyInfo:z});const U=e($,L);_.push(U)}if(s.map&&!s.map.bytes){if(s.map.key&&(!s.key||s.key.resolvedUri!==s.map.key.resolvedUri)){const U=bn(t,{uri:s.map.key.resolvedUri,responseType:"arraybuffer",requestType:"segment-key"}),W=EA(s,[s.map.key],b,y),K={uri:s.map.key.resolvedUri};y({type:"segmentkeyloadstart",segment:s,keyInfo:K});const X=e(U,W);_.push(X)}const $=bn(t,{uri:s.map.resolvedUri,responseType:"arraybuffer",headers:I_(s.map),requestType:"segment-media-initialization"}),L=pwe({segment:s,finishProcessingFn:b,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:s});const z=e($,L);_.push(z)}const T=bn(t,{uri:s.part&&s.part.resolvedUri||s.resolvedUri,responseType:"arraybuffer",headers:I_(s),requestType:"segment"}),S=mwe({segment:s,finishProcessingFn:b,responseType:T.responseType,triggerSegmentEventFn:y});y({type:"segmentloadstart",segment:s});const C=e(T,S);C.addEventListener("progress",_we({segment:s,progressFn:i,trackInfoFn:a,timingInfoFn:o,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:f,isEndOfTimeline:h,endedTimelineFn:m,dataFn:g})),_.push(C);const D={};return _.forEach(N=>{N.addEventListener("loadend",bwe({loadendState:D,abortFn:r}))}),()=>O_(_)},Swe=ni("CodecUtils"),Twe=function(e){const t=e.attributes||{};if(t.CODECS)return Ri(t.CODECS)},s$=(e,t)=>{const n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},Cwe=(e,t)=>{if(!s$(e,t))return!0;const n=t.attributes||{},s=e.mediaGroups.AUDIO[n.AUDIO];for(const r in s)if(!s[r].uri&&!s[r].playlists)return!0;return!1},pg=function(e){const t={};return e.forEach(({mediaType:n,type:s,details:r})=>{t[n]=t[n]||[],t[n].push(dR(`${s}${r}`))}),Object.keys(t).forEach(function(n){if(t[n].length>1){Swe(`multiple ${n} codecs found as attributes: ${t[n].join(", ")}. Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs.`),t[n]=null;return}t[n]=t[n][0]}),t},xA=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},df=function(e,t){const n=t.attributes||{},s=pg(Twe(t)||[]);if(s$(e,t)&&!s.audio&&!Cwe(e,t)){const r=pg(Hye(e,n.AUDIO)||[]);r.audio&&(s.audio=r.audio)}return s},Mp=ni("PlaylistSelector"),kA=function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},mg=function(e,t){if(!e)return"";const n=me.getComputedStyle(e);return n?n[t]:""},zu=function(e,t){const n=e.slice();e.sort(function(s,r){const i=t(s,r);return i===0?n.indexOf(s)-n.indexOf(r):i})},fS=function(e,t){let n,s;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||me.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(s=t.attributes.BANDWIDTH),s=s||me.Number.MAX_VALUE,n-s},Ewe=function(e,t){let n,s;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||me.Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(s=t.attributes.RESOLUTION.width),s=s||me.Number.MAX_VALUE,n===s&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-s};let r$=function(e,t,n,s,r,i){if(!e)return;const a={bandwidth:t,width:n,height:s,limitRenditionByPlayerDimensions:r};let o=e.playlists;ir.isAudioOnly(e)&&(o=i.getAudioTrackPlaylists_(),a.audioOnly=!0);let l=o.map(S=>{let C;const D=S.attributes&&S.attributes.RESOLUTION&&S.attributes.RESOLUTION.width,N=S.attributes&&S.attributes.RESOLUTION&&S.attributes.RESOLUTION.height;return C=S.attributes&&S.attributes.BANDWIDTH,C=C||me.Number.MAX_VALUE,{bandwidth:C,width:D,height:N,playlist:S}});zu(l,(S,C)=>S.bandwidth-C.bandwidth),l=l.filter(S=>!ir.isIncompatible(S.playlist));let u=l.filter(S=>ir.isEnabled(S.playlist));u.length||(u=l.filter(S=>!ir.isDisabled(S.playlist)));const c=u.filter(S=>S.bandwidth*hs.BANDWIDTH_VARIANCE<t);let f=c[c.length-1];const h=c.filter(S=>S.bandwidth===f.bandwidth)[0];if(r===!1){const S=h||u[0]||l[0];if(S&&S.playlist){let C="sortedPlaylistReps";return h&&(C="bandwidthBestRep"),u[0]&&(C="enabledPlaylistReps"),Mp(`choosing ${kA(S)} using ${C} with options`,a),S.playlist}return Mp("could not choose a playlist with options",a),null}const m=c.filter(S=>S.width&&S.height);zu(m,(S,C)=>S.width-C.width);const g=m.filter(S=>S.width===n&&S.height===s);f=g[g.length-1];const p=g.filter(S=>S.bandwidth===f.bandwidth)[0];let v,y,_;p||(v=m.filter(S=>S.width>n||S.height>s),y=v.filter(S=>S.width===v[0].width&&S.height===v[0].height),f=y[y.length-1],_=y.filter(S=>S.bandwidth===f.bandwidth)[0]);let b;if(i.leastPixelDiffSelector){const S=m.map(C=>(C.pixelDiff=Math.abs(C.width-n)+Math.abs(C.height-s),C));zu(S,(C,D)=>C.pixelDiff===D.pixelDiff?D.bandwidth-C.bandwidth:C.pixelDiff-D.pixelDiff),b=S[0]}const T=b||_||p||h||u[0]||l[0];if(T&&T.playlist){let S="sortedPlaylistReps";return b?S="leastPixelDiffRep":_?S="resolutionPlusOneRep":p?S="resolutionBestRep":h?S="bandwidthBestRep":u[0]&&(S="enabledPlaylistReps"),Mp(`choosing ${kA(T)} using ${S} with options`,a),T.playlist}return Mp("could not choose a playlist with options",a),null};const AA=function(){let e=this.useDevicePixelRatio&&me.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(e=this.customPixelRatio),r$(this.playlists.main,this.systemBandwidth,parseInt(mg(this.tech_.el(),"width"),10)*e,parseInt(mg(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},xwe=function(e){let t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){let s=this.useDevicePixelRatio&&me.devicePixelRatio||1;return isNaN(this.customPixelRatio)||(s=this.customPixelRatio),t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),r$(this.playlists.main,t,parseInt(mg(this.tech_.el(),"width"),10)*s,parseInt(mg(this.tech_.el(),"height"),10)*s,this.limitRenditionByPlayerDimensions,this.playlistController_)}},kwe=function(e){const{main:t,currentTime:n,bandwidth:s,duration:r,segmentDuration:i,timeUntilRebuffer:a,currentTimeline:o,syncController:l}=e,u=t.playlists.filter(g=>!ir.isIncompatible(g));let c=u.filter(ir.isEnabled);c.length||(c=u.filter(g=>!ir.isDisabled(g)));const h=c.filter(ir.hasAttribute.bind(null,"BANDWIDTH")).map(g=>{const v=l.getSyncPoint(g,r,o,n)?1:2,_=ir.estimateSegmentRequestTime(i,s,g)*v-a;return{playlist:g,rebufferingImpact:_}}),m=h.filter(g=>g.rebufferingImpact<=0);return zu(m,(g,p)=>fS(p.playlist,g.playlist)),m.length?m[0]:(zu(h,(g,p)=>g.rebufferingImpact-p.rebufferingImpact),h[0]||null)},Awe=function(){const e=this.playlists.main.playlists.filter(ir.isEnabled);return zu(e,(n,s)=>fS(n,s)),e.filter(n=>!!df(this.playlists.main,n).video)[0]||null},Iwe=e=>{let t=0,n;return e.bytes&&(n=new Uint8Array(e.bytes),e.segments.forEach(s=>{n.set(s,t),t+=s.byteLength})),n};function i$(e){try{return new URL(e).pathname.split("/").slice(-2).join("/")}catch{return""}}const Dwe=function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"});let s=n;/^cc708_/.test(n)&&(s="SERVICE"+n.split("_")[1]);const r=t.textTracks().getTrackById(s);if(r)e[n]=r;else{const i=t.options_.vhs&&t.options_.vhs.captionServices||{};let a=n,o=n,l=!1;const u=i[s];u&&(a=u.label,o=u.language,l=u.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:s,default:l,label:a,language:o},!1).track}}},Owe=function({inbandTextTracks:e,captionArray:t,timestampOffset:n}){if(!t)return;const s=me.WebKitDataCue||me.VTTCue;t.forEach(r=>{const i=r.stream;r.content?r.content.forEach(a=>{const o=new s(r.startTime+n,r.endTime+n,a.text);o.line=a.line,o.align="left",o.position=a.position,o.positionAlign="line-left",e[i].addCue(o)}):e[i].addCue(new s(r.startTime+n,r.endTime+n,r.text))})},Pwe=function(e){Object.defineProperties(e.frame,{id:{get(){return He.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get(){return He.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get(){return He.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})},Rwe=({inbandTextTracks:e,metadataArray:t,timestampOffset:n,videoDuration:s})=>{if(!t)return;const r=me.WebKitDataCue||me.VTTCue,i=e.metadataTrack_;if(!i||(t.forEach(c=>{const f=c.cueTime+n;typeof f!="number"||me.isNaN(f)||f<0||!(f<1/0)||!c.frames||!c.frames.length||c.frames.forEach(h=>{const m=new r(f,f,h.value||h.url||h.data||"");m.frame=h,m.value=h,Pwe(m),i.addCue(m)})}),!i.cues||!i.cues.length))return;const a=i.cues,o=[];for(let c=0;c<a.length;c++)a[c]&&o.push(a[c]);const l=o.reduce((c,f)=>{const h=c[f.startTime]||[];return h.push(f),c[f.startTime]=h,c},{}),u=Object.keys(l).sort((c,f)=>Number(c)-Number(f));u.forEach((c,f)=>{const h=l[c],m=isFinite(s)?s:c,g=Number(u[f+1])||m;h.forEach(p=>{p.endTime=g})})},Nwe={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"},Mwe=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),$we=({inbandTextTracks:e,dateRanges:t})=>{const n=e.metadataTrack_;if(!n)return;const s=me.WebKitDataCue||me.VTTCue;t.forEach(r=>{for(const i of Object.keys(r)){if(Mwe.has(i))continue;const a=new s(r.startTime,r.endTime,"");a.id=r.id,a.type="com.apple.quicktime.HLS",a.value={key:Nwe[i],data:r[i]},(i==="scte35Out"||i==="scte35In")&&(a.value.data=new Uint8Array(a.value.data.match(/[\da-f]{2}/gi)).buffer),n.addCue(a)}r.processDateRange()})},IA=(e,t,n)=>{e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,He.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},Fd=function(e,t,n){let s,r;if(n&&n.cues)for(s=n.cues.length;s--;)r=n.cues[s],r.startTime>=e&&r.endTime<=t&&n.removeCue(r)},Lwe=function(e){const t=e.cues;if(!t)return;const n={};for(let s=t.length-1;s>=0;s--){const r=t[s],i=`${r.startTime}-${r.endTime}-${r.text}`;n[i]?e.removeCue(r):n[i]=r}},Bwe=(e,t,n)=>{if(typeof t>"u"||t===null||!e.length)return[];const s=Math.ceil((t-n+3)*gl.ONE_SECOND_IN_TS);let r;for(r=0;r<e.length&&!(e[r].pts>s);r++);return e.slice(r)},Fwe=(e,t,n)=>{if(!t.length)return e;if(n)return t.slice();const s=t[0].pts;let r=0;for(r;r<e.length&&!(e[r].pts>=s);r++);return e.slice(0,r).concat(t)},Vwe=(e,t,n,s)=>{const r=Math.ceil((t-s)*gl.ONE_SECOND_IN_TS),i=Math.ceil((n-s)*gl.ONE_SECOND_IN_TS),a=e.slice();let o=e.length;for(;o--&&!(e[o].pts<=i););if(o===-1)return a;let l=o+1;for(;l--&&!(e[l].pts<=r););return l=Math.max(l,0),a.splice(l,o-l+1),a},Uwe=function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;const n=Object.keys(e).sort(),s=Object.keys(t).sort();if(n.length!==s.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(i!==s[r]||e[i]!==t[i])return!1}return!0},Hwe=function(e,t,n){t=t||[];const s=[];let r=0;for(let i=0;i<t.length;i++){const a=t[i];if(e===a.timeline&&(s.push(i),r+=a.duration,r>n))return i}return s.length===0?0:s[s.length-1]},Id=1,zwe=500,DA=e=>typeof e=="number"&&isFinite(e),$p=1/60,jwe=(e,t,n)=>e!=="main"||!t||!n?null:!n.hasAudio&&!n.hasVideo?"Neither audio nor video found in segment.":t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null,qwe=(e,t,n)=>{let s=t-hs.BACK_BUFFER_LENGTH;e.length&&(s=Math.max(s,e.start(0)));const r=t-n;return Math.min(r,s)},mu=e=>{const{startOfSegment:t,duration:n,segment:s,part:r,playlist:{mediaSequence:i,id:a,segments:o=[]},mediaIndex:l,partIndex:u,timeline:c}=e,f=o.length-1;let h="mediaIndex/partIndex increment";e.getMediaInfoForTime?h=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(h="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(h+=` with independent ${e.independent}`);const m=typeof u=="number",g=e.segment.uri?"segment":"pre-segment",p=m?EM({preloadSegment:s})-1:0;return`${g} [${i+l}/${i+f}]`+(m?` part [${u}/${p}]`:"")+` segment start/end [${s.start} => ${s.end}]`+(m?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${t}] duration [${n}] timeline [${c}] selected by [${h}] playlist [${a}]`},OA=e=>`${e}TimingInfo`,Wwe=({segmentTimeline:e,currentTimeline:t,startOfSegment:n,buffered:s,overrideCheck:r})=>!r&&e===t?null:e<t?n:s.length?s.end(s.length-1):n,PA=({timelineChangeController:e,currentTimeline:t,segmentTimeline:n,loaderType:s,audioDisabled:r})=>{if(t===n)return!1;if(s==="audio"){const i=e.lastTimelineChange({type:"main"});return!i||i.to!==n}if(s==="main"&&r){const i=e.pendingTimelineChange({type:"audio"});return!(i&&i.to===n)}return!1},Kwe=e=>{let t=0;return["video","audio"].forEach(function(n){const s=e[`${n}TimingInfo`];if(!s)return;const{start:r,end:i}=s;let a;typeof r=="bigint"||typeof i=="bigint"?a=me.BigInt(i)-me.BigInt(r):typeof r=="number"&&typeof i=="number"&&(a=i-r),typeof a<"u"&&a>t&&(t=a)}),typeof t=="bigint"&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t},RA=({segmentDuration:e,maxDuration:t})=>e?Math.round(e)>t+Vi:!1,Gwe=(e,t)=>{if(t!=="hls")return null;const n=Kwe({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;const s=e.playlist.targetDuration,r=RA({segmentDuration:n,maxDuration:s*2}),i=RA({segmentDuration:n,maxDuration:s}),a=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${n} when the reported duration is ${e.duration} and the target duration is ${s}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return r||i?{severity:r?"warn":"info",message:a}:null},ul=({type:e,segment:t})=>{if(!t)return;const n=!!(t.key||t.map&&t.map.ke),s=!!(t.map&&!t.map.bytes),r=t.startOfSegment===void 0?t.start:t.startOfSegment;return{type:e||t.type,uri:t.resolvedUri||t.uri,start:r,duration:t.duration,isEncrypted:n,isMediaInitialization:s}};class P_ extends He.EventTarget{constructor(t,n={}){if(super(),!t)throw new TypeError("Initialization settings are required");if(typeof t.currentTime!="function")throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=t.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=t.hasPlayed,this.currentTime_=t.currentTime,this.seekable_=t.seekable,this.seeking_=t.seeking,this.duration_=t.duration,this.mediaSource_=t.mediaSource,this.vhs_=t.vhs,this.loaderType_=t.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=t.segmentMetadataTrack,this.goalBufferLength_=t.goalBufferLength,this.sourceType_=t.sourceType,this.sourceUpdater_=t.sourceUpdater,this.inbandTextTracks_=t.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=t.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=t.parse708captions,this.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,this.captionServices_=t.captionServices,this.exactManifestTimings=t.exactManifestTimings,this.addMetadataToTextTrack=t.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.shouldForceTimestampOffsetAfterResync_=!1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=t.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=t.decrypter,this.syncController_=t.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.logger_=ni(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(s){s!==this.state_&&(this.logger_(`${this.state_} -> ${s}`),this.state_=s,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.sourceUpdater_.on("codecschange",s=>{this.trigger(qn({type:"codecschange"},s))}),this.loaderType_==="main"&&this.timelineChangeController_.on("pendingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),this.loaderType_==="audio"&&this.timelineChangeController_.on("timelinechange",s=>{this.trigger(qn({type:"timelinechange"},s)),this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}get mediaSequenceSync_(){return this.syncController_.getMediaSequenceSync(this.loaderType_)}createTransmuxer_(){return by.createTransmuxer({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&me.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()}setAudio(t){this.audioDisabled_=!t,t?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){if(this.state!=="WAITING"){this.pendingSegment_&&(this.pendingSegment_=null);return}this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()}abort_(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,me.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null}checkForAbort_(t){return this.state==="APPENDING"&&!this.pendingSegment_?(this.state="READY",!0):!this.pendingSegment_||this.pendingSegment_.requestId!==t}error(t){return typeof t<"u"&&(this.logger_("error occurred:",t),this.error_=t),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&by.reset(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const t=this.getMediaInfo_();if(!this.sourceUpdater_||!t)return Cs();if(this.loaderType_==="main"){const{hasAudio:n,hasVideo:s,isMuxed:r}=t;if(s&&n&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(s)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(t,n=!1){if(!t)return null;const s=hg(t);let r=this.initSegments_[s];return n&&!r&&t.bytes&&(this.initSegments_[s]=r={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:t.bytes,tracks:t.tracks,timescales:t.timescales}),r||t}segmentKey(t,n=!1){if(!t)return null;const s=HM(t);let r=this.keyCache_[s];this.cacheEncryptionKeys_&&n&&!r&&t.bytes&&(this.keyCache_[s]=r={resolvedUri:t.resolvedUri,bytes:t.bytes});const i={resolvedUri:(r||t).resolvedUri};return r&&(i.bytes=r.bytes),i}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){if(this.monitorBuffer_(),!!this.playlist_){if(this.state==="INIT"&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||this.state!=="READY"&&this.state!=="INIT"||(this.state="READY")}}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(t,n={}){if(!t)return;const s=this.playlist_,r=this.pendingSegment_;this.playlist_=t,this.xhrOptions_=n,this.state==="INIT"&&(t.syncInfo={mediaSequence:t.mediaSequence,time:0},this.loaderType_==="main"&&this.syncController_.setDateTimeMappingForStart(t));let i=null;if(s&&(s.id?i=s.id:s.uri&&(i=s.uri)),this.logger_(`playlist update [${i} => ${t.id||t.uri}]`),this.mediaSequenceSync_&&(this.mediaSequenceSync_.update(t,this.currentTime_()),this.logger_(`Playlist update:
|
||
currentTime: ${this.currentTime_()}
|
||
bufferedEnd: ${vy(this.buffered_())}
|
||
`,this.mediaSequenceSync_.diagnostics)),this.trigger("syncinfoupdate"),this.state==="INIT"&&this.couldBeginLoading_())return this.init_();if(!s||s.uri!==t.uri){this.mediaIndex!==null&&(!t.endList&&typeof t.partTargetDuration=="number"?this.resetLoader():this.resyncLoader()),this.currentMediaInfo_=void 0,this.trigger("playlistupdate");return}const a=t.mediaSequence-s.mediaSequence;if(this.logger_(`live window shift [${a}]`),this.mediaIndex!==null)if(this.mediaIndex-=a,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}}r&&(r.mediaIndex-=a,r.mediaIndex<0?(r.mediaIndex=null,r.partIndex=null):(r.mediaIndex>=0&&(r.segment=t.segments[r.mediaIndex]),r.partIndex>=0&&r.segment.parts&&(r.part=r.segment.parts[r.partIndex]))),this.syncController_.saveExpiredSegmentInfo(s,t)}pause(){this.checkBufferTimeout_&&(me.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return this.checkBufferTimeout_===null}resetEverything(t){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,t),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_&&by.reset(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1;const t=this.currentMediaInfo_&&this.currentMediaInfo_.isFmp4;this.sourceType_==="hls"&&!t&&(this.shouldForceTimestampOffsetAfterResync_=!0),this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}remove(t,n,s=()=>{},r=!1){if(n===1/0&&(n=this.duration_()),n<=t){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 i=1;const a=()=>{i--,i===0&&s()};(r||!this.audioDisabled_)&&(i++,this.sourceUpdater_.removeAudio(t,n,a)),(r||this.loaderType_==="main")&&(this.gopBuffer_=Vwe(this.gopBuffer_,t,n,this.timeMapping_),i++,this.sourceUpdater_.removeVideo(t,n,a));for(const o in this.inbandTextTracks_)Fd(t,n,this.inbandTextTracks_[o]);Fd(t,n,this.segmentMetadataTrack_),a()}monitorBuffer_(){this.checkBufferTimeout_&&me.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=me.setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){this.state==="READY"&&this.fillBuffer_(),this.checkBufferTimeout_&&me.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=me.setTimeout(this.monitorBufferTick_.bind(this),zwe)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const t=this.chooseNextRequest_();if(!t)return;const n={segmentInfo:ul({type:this.loaderType_,segment:t})};this.trigger({type:"segmentselected",metadata:n}),typeof t.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline})),this.loadSegment_(t)}isEndOfStream_(t=this.mediaIndex,n=this.playlist_,s=this.partIndex){if(!n||!this.mediaSource_)return!1;const r=typeof t=="number"&&n.segments[t],i=t+1===n.segments.length,a=!r||!r.parts||s+1===r.parts.length;return n.endList&&this.mediaSource_.readyState==="open"&&i&&a}chooseNextRequest_(){const t=this.buffered_(),n=vy(t)||0,s=oS(t,this.currentTime_()),r=!this.hasPlayed_()&&s>=1,i=s>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||r||i)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_(),this.loaderType_);const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:!this.syncPoint_};if(o.isSyncRequest)o.mediaIndex=Hwe(this.currentTimeline_,a,n),this.logger_(`choose next request. Can not find sync point. Fallback to media Index: ${o.mediaIndex}`);else if(this.mediaIndex!==null){const h=a[this.mediaIndex],m=typeof this.partIndex=="number"?this.partIndex:-1;o.startOfSegment=h.end?h.end:n,h.parts&&h.parts[m+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=m+1):o.mediaIndex=this.mediaIndex+1}else{let h,m,g;const p=this.fetchAtBuffer_?n:this.currentTime_();if(this.mediaSequenceSync_&&this.logger_(`chooseNextRequest_ request after Quality Switch:
|
||
For TargetTime: ${p}.
|
||
CurrentTime: ${this.currentTime_()}
|
||
BufferedEnd: ${n}
|
||
Fetch At Buffer: ${this.fetchAtBuffer_}
|
||
`,this.mediaSequenceSync_.diagnostics),this.mediaSequenceSync_&&this.mediaSequenceSync_.isReliable){const v=this.getSyncInfoFromMediaSequenceSync_(p);if(!v){const y="No sync info found while using media sequence sync";return this.error({message:y,metadata:{errorType:He.Error.StreamingFailedToSelectNextSegment,error:new Error(y)}}),this.logger_("chooseNextRequest_ - no sync info found using media sequence sync"),null}this.logger_(`chooseNextRequest_ mediaSequence syncInfo (${v.start} --> ${v.end})`),h=v.segmentIndex,m=v.partIndex,g=v.start}else{this.logger_("chooseNextRequest_ - fallback to a regular segment selection algorithm, based on a syncPoint.");const v=ir.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:p,startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});h=v.segmentIndex,m=v.partIndex,g=v.startTime}o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${p}`:`currentTime ${p}`,o.mediaIndex=h,o.startOfSegment=g,o.partIndex=m,this.logger_(`choose next request. Playlist switched and we have a sync point. Media Index: ${o.mediaIndex} `)}const l=a[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(!s&&u&&!c&&!u.independent)if(o.partIndex===0){const h=a[o.mediaIndex-1],m=h.parts&&h.parts.length&&h.parts[h.parts.length-1];m&&m.independent&&(o.mediaIndex-=1,o.partIndex=h.parts.length-1,o.independent="previous segment")}else l.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const f=this.mediaSource_&&this.mediaSource_.readyState==="ended";return o.mediaIndex>=a.length-1&&f&&!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_(t){if(!this.mediaSequenceSync_)return null;const n=Math.max(t,this.mediaSequenceSync_.start);t!==n&&this.logger_(`getSyncInfoFromMediaSequenceSync_. Pulled target time from ${t} to ${n}`);const s=this.mediaSequenceSync_.getSyncInfoForTime(n);if(!s)return null;if(!s.isAppended)return s;const r=this.mediaSequenceSync_.getSyncInfoForTime(s.end);return r?(r.isAppended&&this.logger_("getSyncInfoFromMediaSequenceSync_: We encounter unexpected scenario where next media sequence sync info is also appended!"),r):null}generateSegmentInfo_(t){const{independent:n,playlist:s,mediaIndex:r,startOfSegment:i,isSyncRequest:a,partIndex:o,forceTimestampOffset:l,getMediaInfoForTime:u}=t,c=s.segments[r],f=typeof o=="number"&&c.parts[o],h={requestId:"segment-loader-"+Math.random(),uri:f&&f.resolvedUri||c.resolvedUri,mediaIndex:r,partIndex:f?o:null,isSyncRequest:a,startOfSegment:i,playlist:s,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:f&&f.duration||c.duration,segment:c,part:f,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:u,independent:n},m=typeof l<"u"?l:this.isPendingTimestampOffset_;h.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:i,buffered:this.buffered_(),overrideCheck:m});const g=vy(this.sourceUpdater_.audioBuffered());return typeof g=="number"&&(h.audioAppendStart=g-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(h.gopsToAlignWith=Bwe(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),h}timestampOffsetForSegment_(t){return Wwe(t)}earlyAbortWhenNeeded_(t){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH||Date.now()-(t.firstBytesReceivedAt||Date.now())<1e3)return;const n=this.currentTime_(),s=t.bandwidth,r=this.pendingSegment_.duration,i=ir.estimateSegmentRequestTime(r,s,this.playlist_,t.bytesReceived),a=m2e(this.buffered_(),n,this.vhs_.tech_.playbackRate())-1;if(i<=a)return;const o=kwe({main:this.vhs_.playlists.main,currentTime:n,bandwidth:s,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const u=i-a-o.rebufferingImpact;let c=.5;a<=Vi&&(c=1),!(!o.playlist||o.playlist.uri===this.playlist_.uri||u<c)&&(this.bandwidth=o.playlist.attributes.BANDWIDTH*hs.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(t){this.logger_(`Aborting ${mu(t)}`),this.mediaRequestsAborted+=1}handleProgress_(t,n){this.earlyAbortWhenNeeded_(n.stats),!this.checkForAbort_(n.requestId)&&this.trigger("progress")}handleTrackInfo_(t,n){const{hasAudio:s,hasVideo:r}=n,i={segmentInfo:ul({type:this.loaderType_,segment:t}),trackInfo:{hasAudio:s,hasVideo:r}};this.trigger({type:"segmenttransmuxingtrackinfoavailable",metadata:i}),this.earlyAbortWhenNeeded_(t.stats),!this.checkForAbort_(t.requestId)&&(this.checkForIllegalMediaSwitch(n)||(n=n||{},Uwe(this.currentMediaInfo_,n)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=n,this.currentMediaInfo_=n,this.logger_("trackinfo update",n),this.trigger("trackinfo")),!this.checkForAbort_(t.requestId)&&(this.pendingSegment_.trackInfo=n,this.hasEnoughInfoToAppend_()&&this.processCallQueue_())))}handleTimingInfo_(t,n,s,r){if(this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId))return;const i=this.pendingSegment_,a=OA(n);i[a]=i[a]||{},i[a][s]=r,this.logger_(`timinginfo: ${n} - ${s} - ${r}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(t,n){if(this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId))return;if(n.length===0){this.logger_("SegmentLoader received no captions from a caption event");return}if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,t,n));return}const r=this.sourceUpdater_.videoTimestampOffset()===null?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),i={};n.forEach(a=>{i[a.stream]=i[a.stream]||{startTime:1/0,captions:[],endTime:0};const o=i[a.stream];o.startTime=Math.min(o.startTime,a.startTime+r),o.endTime=Math.max(o.endTime,a.endTime+r),o.captions.push(a)}),Object.keys(i).forEach(a=>{const{startTime:o,endTime:l,captions:u}=i[a],c=this.inbandTextTracks_;this.logger_(`adding cues from ${o} -> ${l} for ${a}`),Dwe(c,this.vhs_.tech_,a),Fd(o,l,c[a]),Owe({captionArray:u,inbandTextTracks:c,timestampOffset:r})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(t,n,s){if(this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId))return;if(!this.pendingSegment_.hasAppendedData_){this.metadataQueue_.id3.push(this.handleId3_.bind(this,t,n,s));return}this.addMetadataToTextTrack(s,n,this.duration_())}processMetadataQueue_(){this.metadataQueue_.id3.forEach(t=>t()),this.metadataQueue_.caption.forEach(t=>t()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const t=this.callQueue_;this.callQueue_=[],t.forEach(n=>n())}processLoadQueue_(){const t=this.loadQueue_;this.loadQueue_=[],t.forEach(n=>n())}hasEnoughInfoToLoad_(){if(this.loaderType_!=="audio")return!0;const t=this.pendingSegment_;return t?this.getCurrentMediaInfo_()?!PA({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}):!0:!1}getCurrentMediaInfo_(t=this.pendingSegment_){return t&&t.trackInfo||this.currentMediaInfo_}getMediaInfo_(t=this.pendingSegment_){return this.getCurrentMediaInfo_(t)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready()||this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const t=this.pendingSegment_,n=this.getCurrentMediaInfo_();if(!t||!n)return!1;const{hasAudio:s,hasVideo:r,isMuxed:i}=n;return!(r&&!t.videoTimingInfo||s&&!this.audioDisabled_&&!i&&!t.audioTimingInfo||PA({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:t.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(t,n){if(this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_()){this.callQueue_.push(this.handleData_.bind(this,t,n));return}const s=this.pendingSegment_;if(this.setTimeMapping_(s.timeline),this.updateMediaSecondsLoaded_(s.part||s.segment),this.mediaSource_.readyState!=="closed"){if(t.map&&(t.map=this.initSegmentForMap(t.map,!0),s.segment.map=t.map),t.key&&this.segmentKey(t.key,!0),s.isFmp4=t.isFmp4,s.timingInfo=s.timingInfo||{},s.isFmp4)this.trigger("fmp4"),s.timingInfo.start=s[OA(n.type)].start;else{const r=this.getCurrentMediaInfo_(),i=this.loaderType_==="main"&&r&&r.hasVideo;let a;i&&(a=s.videoTimingInfo.start),s.timingInfo.start=this.trueSegmentStart_({currentStart:s.timingInfo.start,playlist:s.playlist,mediaIndex:s.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:i,firstVideoFrameTimeForData:a,videoTimingInfo:s.videoTimingInfo,audioTimingInfo:s.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(s,n.type),this.updateSourceBufferTimestampOffset_(s),s.isSyncRequest){this.updateTimingInfoEnd_(s),this.syncController_.saveSegmentTimingInfo({segmentInfo:s,shouldSaveTimelineMapping:this.loaderType_==="main"});const r=this.chooseNextRequest_();if(r.mediaIndex!==s.mediaIndex||r.partIndex!==s.partIndex){this.logger_("sync segment was incorrect, not appending");return}this.logger_("sync segment was correct, appending")}s.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(s,n)}}updateAppendInitSegmentStatus(t,n){this.loaderType_==="main"&&typeof t.timestampOffset=="number"&&!t.changedTimestampOffset&&(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[n]!==t.playlist&&(this.appendInitSegment_[n]=!0)}getInitSegmentAndUpdateState_({type:t,initSegment:n,map:s,playlist:r}){if(s){const i=hg(s);if(this.activeInitSegmentId_===i)return null;n=this.initSegmentForMap(s,!0).bytes,this.activeInitSegmentId_=i}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null}handleQuotaExceededError_({segmentInfo:t,type:n,bytes:s},r){const i=this.sourceUpdater_.audioBuffered(),a=this.sourceUpdater_.videoBuffered();i.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+vl(i).join(", ")),a.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+vl(a).join(", "));const o=i.length?i.start(0):0,l=i.length?i.end(i.length-1):0,u=a.length?a.start(0):0,c=a.length?a.end(a.length-1):0;if(l-o<=Id&&c-u<=Id){this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${s.byteLength}, audio buffer: ${vl(i).join(", ")}, video buffer: ${vl(a).join(", ")}, `),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),this.trigger("error");return}this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:t,type:n,bytes:s}));const h=this.currentTime_()-Id;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${h}`),this.remove(0,h,()=>{this.logger_(`On QUOTA_EXCEEDED_ERR, retrying append in ${Id}s`),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=me.setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},Id*1e3)},!0)}handleAppendError_({segmentInfo:t,type:n,bytes:s},r){if(r){if(r.code===$M){this.handleQuotaExceededError_({segmentInfo:t,type:n,bytes:s});return}this.logger_("Received non QUOTA_EXCEEDED_ERR on append",r),this.error({message:`${n} append of ${s.length}b failed for segment #${t.mediaIndex} in playlist ${t.playlist.id}`,metadata:{errorType:He.Error.StreamingFailedToAppendSegment}}),this.trigger("appenderror")}}appendToSourceBuffer_({segmentInfo:t,type:n,initSegment:s,data:r,bytes:i}){if(!i){const o=[r];let l=r.byteLength;s&&(o.unshift(s),l+=s.byteLength),i=Iwe({bytes:l,segments:o})}const a={segmentInfo:ul({type:this.loaderType_,segment:t})};this.trigger({type:"segmentappendstart",metadata:a}),this.sourceUpdater_.appendBuffer({segmentInfo:t,type:n,bytes:i},this.handleAppendError_.bind(this,{segmentInfo:t,type:n,bytes:i}))}handleSegmentTimingInfo_(t,n,s){if(!this.pendingSegment_||n!==this.pendingSegment_.requestId)return;const r=this.pendingSegment_.segment,i=`${t}TimingInfo`;r[i]||(r[i]={}),r[i].transmuxerPrependedSeconds=s.prependedContentDuration||0,r[i].transmuxedPresentationStart=s.start.presentation,r[i].transmuxedDecodeStart=s.start.decode,r[i].transmuxedPresentationEnd=s.end.presentation,r[i].transmuxedDecodeEnd=s.end.decode,r[i].baseMediaDecodeTime=s.baseMediaDecodeTime}appendData_(t,n){const{type:s,data:r}=n;if(!r||!r.byteLength||s==="audio"&&this.audioDisabled_)return;const i=this.getInitSegmentAndUpdateState_({type:s,initSegment:n.initSegment,playlist:t.playlist,map:t.isFmp4?t.segment.map:null});this.appendToSourceBuffer_({segmentInfo:t,type:s,initSegment:i,data:r})}loadSegment_(t){if(this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),typeof t.timestampOffset=="number"&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),!this.hasEnoughInfoToLoad_()){this.loadQueue_.push(()=>{const n=qn({},t,{forceTimestampOffset:!0});qn(t,this.generateSegmentInfo_(n)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(t)});return}this.updateTransmuxerAndRequestSegment_(t)}updateTransmuxerAndRequestSegment_(t){this.shouldUpdateTransmuxerTimestampOffset_(t.timestampOffset)&&(this.gopBuffer_.length=0,t.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:t.timestampOffset}));const n=this.createSimplifiedSegmentObj_(t),s=this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex),r=this.mediaIndex!==null,i=t.timeline!==this.currentTimeline_&&t.timeline>0,a=s||r&&i;this.logger_(`Requesting
|
||
${i$(t.uri)}
|
||
${mu(t)}`),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),t.abortRequests=wwe({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,t),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",t.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",t.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,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_(`${mu(t)} logged from transmuxer stream ${u} as a ${l}: ${o}`)},triggerSegmentEventFn:({type:o,segment:l,keyInfo:u,trackInfo:c,timingInfo:f})=>{const m={segmentInfo:ul({segment:l})};u&&(m.keyInfo=u),c&&(m.trackInfo=c),f&&(m.timingInfo=f),this.trigger({type:o,metadata:m})}})}trimBackBuffer_(t){const n=qwe(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);n>0&&this.remove(0,n)}createSimplifiedSegmentObj_(t){const n=t.segment,s=t.part,r=t.segment.key||t.segment.map&&t.segment.map.key,i=t.segment.map&&!t.segment.map.bytes,a={resolvedUri:s?s.resolvedUri:n.resolvedUri,byterange:s?s.byterange:n.byterange,requestId:t.requestId,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,part:t.part,type:this.loaderType_,start:t.startOfSegment,duration:t.duration,isEncrypted:r,isMediaInitialization:i},o=t.playlist.segments[t.mediaIndex-1];if(o&&o.timeline===n.timeline&&(o.videoTimingInfo?a.baseStartTime=o.videoTimingInfo.transmuxedDecodeEnd:o.audioTimingInfo&&(a.baseStartTime=o.audioTimingInfo.transmuxedDecodeEnd)),n.key){const l=n.key.iv||new Uint32Array([0,0,0,t.mediaIndex+t.playlist.mediaSequence]);a.key=this.segmentKey(n.key),a.key.iv=l}return n.map&&(a.map=this.initSegmentForMap(n.map)),a}saveTransferStats_(t){this.mediaRequests+=1,t&&(this.mediaBytesTransferred+=t.bytesReceived,this.mediaTransferDuration+=t.roundTripTime)}saveBandwidthRelatedStats_(t,n){if(this.pendingSegment_.byteLength=n.bytesReceived,t<$p){this.logger_(`Ignoring segment's bandwidth because its duration of ${t} is less than the min to record ${$p}`);return}const s={bandwidthInfo:{from:this.bandwidth,to:n.bandwidth}};this.trigger({type:"bandwidthupdated",metadata:s}),this.bandwidth=n.bandwidth,this.roundTrip=n.roundTripTime}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(t,n,s){if(this.callQueue_.length){this.callQueue_.push(this.segmentRequestFinished_.bind(this,t,n,s));return}if(this.saveTransferStats_(n.stats),!this.pendingSegment_||n.requestId!==this.pendingSegment_.requestId)return;if(t){if(this.pendingSegment_=null,this.state="READY",t.code===Hi.ABORTED)return;if(this.pause(),t.code===Hi.TIMEOUT){this.handleTimeout_();return}this.mediaRequestsErrored+=1,this.error(t),this.trigger("error");return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,n.stats),r.endOfAllRequests=n.endOfAllRequests,s.gopInfo&&(this.gopBuffer_=Fwe(this.gopBuffer_,s.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(r)}setTimeMapping_(t){const n=this.syncController_.mappingForTimeline(t);n!==null&&(this.timeMapping_=n)}updateMediaSecondsLoaded_(t){typeof t.start=="number"&&typeof t.end=="number"?this.mediaSecondsLoaded+=t.end-t.start:this.mediaSecondsLoaded+=t.duration}shouldUpdateTransmuxerTimestampOffset_(t){return t===null?!1:this.loaderType_==="main"&&t!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&t!==this.sourceUpdater_.audioTimestampOffset()}trueSegmentStart_({currentStart:t,playlist:n,mediaIndex:s,firstVideoFrameTimeForData:r,currentVideoTimestampOffset:i,useVideoTimingInfo:a,videoTimingInfo:o,audioTimingInfo:l}){if(typeof t<"u")return t;if(!a)return l.start;const u=n.segments[s-1];return s===0||!u||typeof u.start>"u"||u.end!==r+i?r:o.start}waitForAppendsToComplete_(t){const n=this.getCurrentMediaInfo_(t);if(!n){this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),this.trigger("error");return}const{hasAudio:s,hasVideo:r,isMuxed:i}=n,a=this.loaderType_==="main"&&r,o=!this.audioDisabled_&&s&&!i;if(t.waitingOnAppends=0,!t.hasAppendedData_){!t.timingInfo&&typeof t.timestampOffset=="number"&&(this.isPendingTimestampOffset_=!0),t.timingInfo={start:0},t.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(t),this.processMetadataQueue_()),this.checkAppendsDone_(t);return}a&&t.waitingOnAppends++,o&&t.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,t)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,t))}checkAppendsDone_(t){this.checkForAbort_(t.requestId)||(t.waitingOnAppends--,t.waitingOnAppends===0&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(t){const n=jwe(this.loaderType_,this.getCurrentMediaInfo_(),t);return n?(this.error({message:n,playlistExclusionDuration:1/0}),this.trigger("error"),!0):!1}updateSourceBufferTimestampOffset_(t){if(t.timestampOffset===null||typeof t.timingInfo.start!="number"||t.changedTimestampOffset||this.loaderType_!=="main")return;let n=!1;t.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:t.segment.videoTimingInfo,audioTimingInfo:t.segment.audioTimingInfo,timingInfo:t.timingInfo}),t.changedTimestampOffset=!0,t.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(t.timestampOffset),n=!0),t.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(t.timestampOffset),n=!0),n&&this.trigger("timestampoffset")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:t,audioTimingInfo:n,timingInfo:s}){return this.useDtsForTimestampOffset_?t&&typeof t.transmuxedDecodeStart=="number"?t.transmuxedDecodeStart:n&&typeof n.transmuxedDecodeStart=="number"?n.transmuxedDecodeStart:s.start:s.start}updateTimingInfoEnd_(t){t.timingInfo=t.timingInfo||{};const n=this.getMediaInfo_(),r=this.loaderType_==="main"&&n&&n.hasVideo&&t.videoTimingInfo?t.videoTimingInfo:t.audioTimingInfo;r&&(t.timingInfo.end=typeof r.end=="number"?r.end:r.start+t.duration)}handleAppendsDone_(){if(this.pendingSegment_){const l={segmentInfo:ul({type:this.loaderType_,segment:this.pendingSegment_})};this.trigger({type:"appendsdone",metadata:l})}if(!this.pendingSegment_){this.state="READY",this.paused()||this.monitorBuffer_();return}const t=this.pendingSegment_;t.part&&t.part.syncInfo?t.part.syncInfo.markAppended():t.segment.syncInfo&&t.segment.syncInfo.markAppended(),this.updateTimingInfoEnd_(t),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:this.loaderType_==="main"});const n=Gwe(t,this.sourceType_);if(n&&(n.severity==="warn"?He.log.warn(n.message):this.logger_(n.message)),this.recordThroughput_(t),this.pendingSegment_=null,this.state="READY",t.isSyncRequest&&(this.trigger("syncinfoupdate"),!t.hasAppendedData_)){this.logger_(`Throwing away un-appended sync request ${mu(t)}`);return}this.logger_(`Appended ${mu(t)}`),this.addSegmentMetadataCue_(t),this.fetchAtBuffer_=!0,this.currentTimeline_!==t.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),this.loaderType_==="main"&&!this.audioDisabled_&&this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:t.timeline})),this.currentTimeline_=t.timeline,this.trigger("syncinfoupdate");const s=t.segment,r=t.part,i=s.end&&this.currentTime_()-s.end>t.playlist.targetDuration*3,a=r&&r.end&&this.currentTime_()-r.end>t.playlist.partTargetDuration*3;if(i||a){this.logger_(`bad ${i?"segment":"part"} ${mu(t)}`),this.resetEverything();return}this.mediaIndex!==null&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=t.mediaIndex,this.partIndex=t.partIndex,this.isEndOfStream_(t.mediaIndex,t.playlist,t.partIndex)&&this.endOfStream(),this.trigger("appended"),t.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(t){if(t.duration<$p){this.logger_(`Ignoring segment's throughput because its duration of ${t.duration} is less than the min to record ${$p}`);return}const n=this.throughput.rate,s=Date.now()-t.endOfAllRequests+1,r=Math.floor(t.byteLength/s*8*1e3);this.throughput.rate+=(r-n)/++this.throughput.count}addSegmentMetadataCue_(t){if(!this.segmentMetadataTrack_)return;const n=t.segment,s=n.start,r=n.end;if(!DA(s)||!DA(r))return;Fd(s,r,this.segmentMetadataTrack_);const i=me.WebKitDataCue||me.VTTCue,a={custom:n.custom,dateTimeObject:n.dateTimeObject,dateTimeString:n.dateTimeString,programDateTime:n.programDateTime,bandwidth:t.playlist.attributes.BANDWIDTH,resolution:t.playlist.attributes.RESOLUTION,codecs:t.playlist.attributes.CODECS,byteLength:t.byteLength,uri:t.uri,timeline:t.timeline,playlist:t.playlist.id,start:s,end:r},o=JSON.stringify(a),l=new i(s,r,o);l.value=a,this.segmentMetadataTrack_.addCue(l)}}function wa(){}const a$=function(e){return typeof e!="string"?e:e.replace(/./,t=>t.toUpperCase())},Ywe=["video","audio"],R_=(e,t)=>{const n=t[`${e}Buffer`];return n&&n.updating||t.queuePending[e]},Xwe=(e,t)=>{for(let n=0;n<t.length;n++){const s=t[n];if(s.type==="mediaSource")return null;if(s.type===e)return n}return null},ju=(e,t)=>{if(t.queue.length===0)return;let n=0,s=t.queue[n];if(s.type==="mediaSource"){!t.updating()&&t.mediaSource.readyState!=="closed"&&(t.queue.shift(),s.action(t),s.doneFn&&s.doneFn(),ju("audio",t),ju("video",t));return}if(e!=="mediaSource"&&!(!t.ready()||t.mediaSource.readyState==="closed"||R_(e,t))){if(s.type!==e){if(n=Xwe(e,t.queue),n===null)return;s=t.queue[n]}if(t.queue.splice(n,1),t.queuePending[e]=s,s.action(e,t),!s.doneFn){t.queuePending[e]=null,ju(e,t);return}}},o$=(e,t)=>{const n=t[`${e}Buffer`],s=a$(e);n&&(n.removeEventListener("updateend",t[`on${s}UpdateEnd_`]),n.removeEventListener("error",t[`on${s}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},Mi=(e,t)=>e&&t&&Array.prototype.indexOf.call(e.sourceBuffers,t)!==-1,_r={appendBuffer:(e,t,n)=>(s,r)=>{const i=r[`${s}Buffer`];if(Mi(r.mediaSource,i)){r.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${s}Buffer`);try{i.appendBuffer(e)}catch(a){r.logger_(`Error with code ${a.code} `+(a.code===$M?"(QUOTA_EXCEEDED_ERR) ":"")+`when appending segment ${t.mediaIndex} to ${s}Buffer`),r.queuePending[s]=null,n(a)}}},remove:(e,t)=>(n,s)=>{const r=s[`${n}Buffer`];if(Mi(s.mediaSource,r)){s.logger_(`Removing ${e} to ${t} from ${n}Buffer`);try{r.remove(e,t)}catch{s.logger_(`Remove ${e} to ${t} from ${n}Buffer failed`)}}},timestampOffset:e=>(t,n)=>{const s=n[`${t}Buffer`];Mi(n.mediaSource,s)&&(n.logger_(`Setting ${t}timestampOffset to ${e}`),s.timestampOffset=e)},callback:e=>(t,n)=>{e()},endOfStream:e=>t=>{if(t.mediaSource.readyState==="open"){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(n){He.log.warn("Failed to call media source endOfStream",n)}}},duration:e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(n){He.log.warn("Failed to set media source duration",n)}},abort:()=>(e,t)=>{if(t.mediaSource.readyState!=="open")return;const n=t[`${e}Buffer`];if(Mi(t.mediaSource,n)){t.logger_(`calling abort on ${e}Buffer`);try{n.abort()}catch(s){He.log.warn(`Failed to abort on ${e}Buffer`,s)}}},addSourceBuffer:(e,t)=>n=>{const s=a$(e),r=Wf(t);n.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const i=n.mediaSource.addSourceBuffer(r);i.addEventListener("updateend",n[`on${s}UpdateEnd_`]),i.addEventListener("error",n[`on${s}Error_`]),n.codecs[e]=t,n[`${e}Buffer`]=i},removeSourceBuffer:e=>t=>{const n=t[`${e}Buffer`];if(o$(e,t),!!Mi(t.mediaSource,n)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(n)}catch(s){He.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,s)}}},changeType:e=>(t,n)=>{const s=n[`${t}Buffer`],r=Wf(e);if(!Mi(n.mediaSource,s))return;const i=e.substring(0,e.indexOf(".")),a=n.codecs[t];if(a.substring(0,a.indexOf("."))===i)return;const l={codecsChangeInfo:{from:a,to:e}};n.trigger({type:"codecschange",metadata:l}),n.logger_(`changing ${t}Buffer codec from ${a} to ${e}`);try{s.changeType(r),n.codecs[t]=e}catch(u){l.errorType=He.Error.StreamingCodecsChangeError,l.error=u,u.metadata=l,n.error_=u,n.trigger("error"),He.log.warn(`Failed to changeType on ${t}Buffer`,u)}}},wr=({type:e,sourceUpdater:t,action:n,doneFn:s,name:r})=>{t.queue.push({type:e,action:n,doneFn:s,name:r}),ju(e,t)},NA=(e,t)=>n=>{const s=t[`${e}Buffered`](),r=f2e(s);if(t.logger_(`received "updateend" event for ${e} Source Buffer: `,r),t.queuePending[e]){const i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[`${e}Error_`])}ju(e,t)};class l$ extends He.EventTarget{constructor(t){super(),this.mediaSource=t,this.sourceopenListener_=()=>ju("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=ni("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=NA("video",this),this.onAudioUpdateEnd_=NA("audio",this),this.onVideoError_=n=>{this.videoError_=n},this.onAudioError_=n=>{this.audioError_=n},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(t){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(t),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(t,n){wr({type:"mediaSource",sourceUpdater:this,action:_r.addSourceBuffer(t,n),name:"addSourceBuffer"})}abort(t){wr({type:t,sourceUpdater:this,action:_r.abort(t),name:"abort"})}removeSourceBuffer(t){if(!this.canRemoveSourceBuffer()){He.log.error("removeSourceBuffer is not supported!");return}wr({type:"mediaSource",sourceUpdater:this,action:_r.removeSourceBuffer(t),name:"removeSourceBuffer"})}canRemoveSourceBuffer(){return!He.browser.IS_FIREFOX&&me.MediaSource&&me.MediaSource.prototype&&typeof me.MediaSource.prototype.removeSourceBuffer=="function"}static canChangeType(){return me.SourceBuffer&&me.SourceBuffer.prototype&&typeof me.SourceBuffer.prototype.changeType=="function"}canChangeType(){return this.constructor.canChangeType()}changeType(t,n){if(!this.canChangeType()){He.log.error("changeType is not supported!");return}wr({type:t,sourceUpdater:this,action:_r.changeType(n),name:"changeType"})}addOrChangeSourceBuffers(t){if(!t||typeof t!="object"||Object.keys(t).length===0)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(t).forEach(n=>{const s=t[n];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(n,s);this.canChangeType()&&this.changeType(n,s)})}appendBuffer(t,n){const{segmentInfo:s,type:r,bytes:i}=t;if(this.processedAppend_=!0,r==="audio"&&this.videoBuffer&&!this.videoAppendQueued_){this.delayedAudioAppendQueue_.push([t,n]),this.logger_(`delayed audio append of ${i.length} until video append`);return}const a=n;if(wr({type:r,sourceUpdater:this,action:_r.appendBuffer(i,s||{mediaIndex:-1},a),doneFn:n,name:"appendBuffer"}),r==="video"){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const o=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${o.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,o.forEach(l=>{this.appendBuffer.apply(this,l)})}}audioBuffered(){return Mi(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Cs()}videoBuffered(){return Mi(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Cs()}buffered(){const t=Mi(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,n=Mi(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return n&&!t?this.audioBuffered():t&&!n?this.videoBuffered():p2e(this.audioBuffered(),this.videoBuffered())}setDuration(t,n=wa){wr({type:"mediaSource",sourceUpdater:this,action:_r.duration(t),name:"duration",doneFn:n})}endOfStream(t=null,n=wa){typeof t!="string"&&(t=void 0),wr({type:"mediaSource",sourceUpdater:this,action:_r.endOfStream(t),name:"endOfStream",doneFn:n})}removeAudio(t,n,s=wa){if(!this.audioBuffered().length||this.audioBuffered().end(0)===0){s();return}wr({type:"audio",sourceUpdater:this,action:_r.remove(t,n),doneFn:s,name:"remove"})}removeVideo(t,n,s=wa){if(!this.videoBuffered().length||this.videoBuffered().end(0)===0){s();return}wr({type:"video",sourceUpdater:this,action:_r.remove(t,n),doneFn:s,name:"remove"})}updating(){return!!(R_("audio",this)||R_("video",this))}audioTimestampOffset(t){return typeof t<"u"&&this.audioBuffer&&this.audioTimestampOffset_!==t&&(wr({type:"audio",sourceUpdater:this,action:_r.timestampOffset(t),name:"timestampOffset"}),this.audioTimestampOffset_=t),this.audioTimestampOffset_}videoTimestampOffset(t){return typeof t<"u"&&this.videoBuffer&&this.videoTimestampOffset!==t&&(wr({type:"video",sourceUpdater:this,action:_r.timestampOffset(t),name:"timestampOffset"}),this.videoTimestampOffset_=t),this.videoTimestampOffset_}audioQueueCallback(t){this.audioBuffer&&wr({type:"audio",sourceUpdater:this,action:_r.callback(t),name:"callback"})}videoQueueCallback(t){this.videoBuffer&&wr({type:"video",sourceUpdater:this,action:_r.callback(t),name:"callback"})}dispose(){this.trigger("dispose"),Ywe.forEach(t=>{this.abort(t),this.canRemoveSourceBuffer()?this.removeSourceBuffer(t):this[`${t}QueueCallback`](()=>o$(t,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const MA=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),Qwe=e=>{const t=new Uint8Array(e);return Array.from(t).map(n=>n.toString(16).padStart(2,"0")).join("")},$A=new Uint8Array(`
|
||
|
||
`.split("").map(e=>e.charCodeAt(0)));class Jwe extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class Zwe extends P_{constructor(t,n={}){super(t,n),this.mediaSource_=null,this.subtitlesTrack_=null,this.featuresNativeTextTracks_=t.featuresNativeTextTracks,this.loadVttJs=t.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return Cs();const t=this.subtitlesTrack_.cues,n=t[0].startTime,s=t[t.length-1].startTime;return Cs([[n,s]])}initSegmentForMap(t,n=!1){if(!t)return null;const s=hg(t);let r=this.initSegments_[s];if(n&&!r&&t.bytes){const i=$A.byteLength+t.bytes.byteLength,a=new Uint8Array(i);a.set(t.bytes),a.set($A,t.bytes.byteLength),this.initSegments_[s]=r={resolvedUri:t.resolvedUri,byterange:t.byterange,bytes:a}}return r||t}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(t){return typeof t>"u"?this.subtitlesTrack_:(this.subtitlesTrack_=t,this.state==="INIT"&&this.couldBeginLoading_()&&this.init_(),this.subtitlesTrack_)}remove(t,n){Fd(t,n,this.subtitlesTrack_)}fillBuffer_(){const t=this.chooseNextRequest_();if(t){if(this.syncController_.timestampOffsetForTimeline(t.timeline)===null){const n=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};this.syncController_.one("timestampoffset",n),this.state="WAITING_ON_TIMELINE";return}this.loadSegment_(t)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(t){for(;t&&t.segment.empty;){if(t.mediaIndex+1>=t.playlist.segments.length){t=null;break}t=this.generateSegmentInfo_({playlist:t.playlist,mediaIndex:t.mediaIndex+1,startOfSegment:t.startOfSegment+t.duration,isSyncRequest:t.isSyncRequest})}return t}stopForError(t){this.error(t),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(t,n,s){if(!this.subtitlesTrack_){this.state="READY";return}if(this.saveTransferStats_(n.stats),!this.pendingSegment_){this.state="READY",this.mediaRequestsAborted+=1;return}if(t){t.code===Hi.TIMEOUT&&this.handleTimeout_(),t.code===Hi.ABORTED?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,this.stopForError(t);return}const r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,n.stats),n.key&&this.segmentKey(n.key,!0),this.state="APPENDING",this.trigger("appending");const i=r.segment;if(i.map&&(i.map.bytes=n.map.bytes),r.bytes=n.bytes,typeof me.WebVTT!="function"&&typeof this.loadVttJs=="function"){this.state="WAITING_ON_VTTJS",this.loadVttJs().then(()=>this.segmentRequestFinished_(t,n,s),()=>this.stopForError({message:"Error loading vtt.js"}));return}i.requested=!0;try{this.parseVTTCues_(r)}catch(a){this.stopForError({message:a.message,metadata:{errorType:He.Error.StreamingVttParserError,error:a}});return}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest){this.trigger("syncinfoupdate"),this.pendingSegment_=null,this.state="READY";return}r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=i.duration,r.cues.forEach(a=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new me.VTTCue(a.startTime,a.endTime,a.text):a)}),Lwe(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(t){let n,s=!1;if(typeof me.WebVTT!="function")throw new Jwe;typeof me.TextDecoder=="function"?n=new me.TextDecoder("utf8"):(n=me.WebVTT.StringDecoder(),s=!0);const r=new me.WebVTT.Parser(me,me.vttjs,n);if(t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=t.cues.push.bind(t.cues),r.ontimestampmap=a=>{t.timestampmap=a},r.onparsingerror=a=>{He.log.warn("Error encountered when parsing cues: "+a.message)},t.segment.map){let a=t.segment.map.bytes;s&&(a=MA(a)),r.parse(a)}let i=t.bytes;s&&(i=MA(i)),r.parse(i),r.flush()}updateTimeMapping_(t,n,s){const r=t.segment;if(!n)return;if(!t.cues.length){r.empty=!0;return}const{MPEGTS:i,LOCAL:a}=t.timestampmap,l=i/gl.ONE_SECOND_IN_TS-a+n.mapping;if(t.cues.forEach(u=>{const c=u.endTime-u.startTime,f=i===0?u.startTime+l:this.handleRollover_(u.startTime+l,n.time);u.startTime=Math.max(f,0),u.endTime=Math.max(f+c,0)}),!s.syncInfo){const u=t.cues[0].startTime,c=t.cues[t.cues.length-1].startTime;s.syncInfo={mediaSequence:s.mediaSequence+t.mediaIndex,time:Math.min(u,c-r.duration)}}}handleRollover_(t,n){if(n===null)return t;let s=t*gl.ONE_SECOND_IN_TS;const r=n*gl.ONE_SECOND_IN_TS;let i;for(r<s?i=-8589934592:i=8589934592;Math.abs(s-r)>4294967296;)s+=i;return s/gl.ONE_SECOND_IN_TS}}const eSe=function(e,t){const n=e.cues;for(let s=0;s<n.length;s++){const r=n[s];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},tSe=function(e,t,n=0){if(!e.segments)return;let s=n,r;for(let i=0;i<e.segments.length;i++){const a=e.segments[i];if(r||(r=eSe(t,s+a.duration/2)),r){if("cueIn"in a){r.endTime=s,r.adEndTime=s,s+=a.duration,r=null;continue}if(s<r.endTime){s+=a.duration;continue}r.endTime+=a.duration}else if("cueOut"in a&&(r=new me.VTTCue(s,s+a.duration,a.cueOut),r.adStartTime=s,r.adEndTime=s+parseFloat(a.cueOut),t.addCue(r)),"cueOutCont"in a){const[o,l]=a.cueOutCont.split("/").map(parseFloat);r=new me.VTTCue(s,s+a.duration,""),r.adStartTime=s-o,r.adEndTime=r.adStartTime+l,t.addCue(r)}s+=a.duration}};class LA{constructor({start:t,end:n,segmentIndex:s,partIndex:r=null,appended:i=!1}){this.start_=t,this.end_=n,this.segmentIndex_=s,this.partIndex_=r,this.appended_=i}isInRange(t){return t>=this.start&&t<this.end}markAppended(){this.appended_=!0}resetAppendedStatus(){this.appended_=!1}get isAppended(){return this.appended_}get start(){return this.start_}get end(){return this.end_}get segmentIndex(){return this.segmentIndex_}get partIndex(){return this.partIndex_}}class nSe{constructor(t,n=[]){this.segmentSyncInfo_=t,this.partsSyncInfo_=n}get segmentSyncInfo(){return this.segmentSyncInfo_}get partsSyncInfo(){return this.partsSyncInfo_}get hasPartsSyncInfo(){return this.partsSyncInfo_.length>0}resetAppendStatus(){this.segmentSyncInfo_.resetAppendedStatus(),this.partsSyncInfo_.forEach(t=>t.resetAppendedStatus())}}class u${constructor(){this.storage_=new Map,this.diagnostics_="",this.isReliable_=!1,this.start_=-1/0,this.end_=1/0}get start(){return this.start_}get end(){return this.end_}get diagnostics(){return this.diagnostics_}get isReliable(){return this.isReliable_}resetAppendedStatus(){this.storage_.forEach(t=>t.resetAppendStatus())}update(t,n){const{mediaSequence:s,segments:r}=t;if(this.isReliable_=this.isReliablePlaylist_(s,r),!!this.isReliable_)return this.updateStorage_(r,s,this.calculateBaseTime_(s,n))}getSyncInfoForTime(t){for(const{segmentSyncInfo:n,partsSyncInfo:s}of this.storage_.values())if(s.length){for(const r of s)if(r.isInRange(t))return r}else if(n.isInRange(t))return n;return null}getSyncInfoForMediaSequence(t){return this.storage_.get(t)}updateStorage_(t,n,s){const r=new Map;let i=`
|
||
`,a=s,o=n;this.start_=a,t.forEach((l,u)=>{const c=this.storage_.get(o),f=a,h=f+l.duration,m=!!(c&&c.segmentSyncInfo&&c.segmentSyncInfo.isAppended),g=new LA({start:f,end:h,appended:m,segmentIndex:u});l.syncInfo=g;let p=a;const v=(l.parts||[]).map((y,_)=>{const b=p,T=p+y.duration,S=!!(c&&c.partsSyncInfo&&c.partsSyncInfo[_]&&c.partsSyncInfo[_].isAppended),C=new LA({start:b,end:T,appended:S,segmentIndex:u,partIndex:_});return p=T,i+=`Media Sequence: ${o}.${_} | Range: ${b} --> ${T} | Appended: ${S}
|
||
`,y.syncInfo=C,C});r.set(o,new nSe(g,v)),i+=`${i$(l.resolvedUri)} | Media Sequence: ${o} | Range: ${f} --> ${h} | Appended: ${m}
|
||
`,o++,a=h}),this.end_=a,this.storage_=r,this.diagnostics_=i}calculateBaseTime_(t,n){return this.storage_.size?this.storage_.has(t)?this.storage_.get(t).segmentSyncInfo.start:n:0}isReliablePlaylist_(t,n){return t!=null&&Array.isArray(n)&&n.length}}class BA extends u${constructor(t){super(),this.parent_=t}calculateBaseTime_(t,n){if(!this.storage_.size){const s=this.parent_.getSyncInfoForMediaSequence(t);return s?s.segmentSyncInfo.start:0}return super.calculateBaseTime_(t,n)}}const sSe=86400,_y=[{name:"VOD",run:(e,t,n,s,r)=>n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"MediaSequence",run:(e,t,n,s,r,i)=>{const a=e.getMediaSequenceSync(i);if(!a||!a.isReliable)return null;const o=a.getSyncInfoForTime(r);return o?{time:o.start,partIndex:o.partIndex,segmentIndex:o.segmentIndex}:null}},{name:"ProgramDateTime",run:(e,t,n,s,r)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let i=null,a=null;const o=C_(t);r=r||0;for(let l=0;l<o.length;l++){const u=t.endList||r===0?l:o.length-(l+1),c=o[u],f=c.segment,h=e.timelineToDatetimeMappings[f.timeline];if(!h||!f.dateTimeObject)continue;let g=f.dateTimeObject.getTime()/1e3+h;if(f.parts&&typeof c.partIndex=="number")for(let v=0;v<c.partIndex;v++)g+=f.parts[v].duration;const p=Math.abs(r-g);if(a!==null&&(p===0||a<p))break;a=p,i={time:g,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}return i}},{name:"Segment",run:(e,t,n,s,r)=>{let i=null,a=null;r=r||0;const o=C_(t);for(let l=0;l<o.length;l++){const u=t.endList||r===0?l:o.length-(l+1),c=o[u],f=c.segment,h=c.part&&c.part.start||f&&f.start;if(f.timeline===s&&typeof h<"u"){const m=Math.abs(r-h);if(a!==null&&a<m)break;(!i||a===null||a>=m)&&(a=m,i={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return i}},{name:"Discontinuity",run:(e,t,n,s,r)=>{let i=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length){let a=null;for(let o=0;o<t.discontinuityStarts.length;o++){const l=t.discontinuityStarts[o],u=t.discontinuitySequence+o+1,c=e.discontinuities[u];if(c){const f=Math.abs(r-c.time);if(a!==null&&a<f)break;(!i||a===null||a>=f)&&(a=f,i={time:c.time,segmentIndex:l,partIndex:null})}}}return i}},{name:"Playlist",run:(e,t,n,s,r)=>t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}];class rSe extends He.EventTarget{constructor(t={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={};const n=new u$,s=new BA(n),r=new BA(n);this.mediaSequenceStorage_={main:n,audio:s,vtt:r},this.logger_=ni("SyncController")}getMediaSequenceSync(t){return this.mediaSequenceStorage_[t]||null}getSyncPoint(t,n,s,r,i){if(n!==1/0)return _y.find(({name:l})=>l==="VOD").run(this,t,n);const a=this.runStrategies_(t,n,s,r,i);if(!a.length)return null;for(const o of a){const{syncPoint:l,strategy:u}=o,{segmentIndex:c,time:f}=l;if(c<0)continue;const h=t.segments[c],m=f,g=m+h.duration;if(this.logger_(`Strategy: ${u}. Current time: ${r}. selected segment: ${c}. Time: [${m} -> ${g}]}`),r>=m&&r<g)return this.logger_("Found sync point with exact match: ",l),l}return this.selectSyncPoint_(a,{key:"time",value:r})}getExpiredTime(t,n){if(!t||!t.segments)return null;const s=this.runStrategies_(t,n,t.discontinuitySequence,0);if(!s.length)return null;const r=this.selectSyncPoint_(s,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+uf({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:r.segmentIndex,endIndex:0}))}runStrategies_(t,n,s,r,i){const a=[];for(let o=0;o<_y.length;o++){const l=_y[o],u=l.run(this,t,n,s,r,i);u&&(u.strategy=l.name,a.push({strategy:l.name,syncPoint:u}))}return a}selectSyncPoint_(t,n){let s=t[0].syncPoint,r=Math.abs(t[0].syncPoint[n.key]-n.value),i=t[0].strategy;for(let a=1;a<t.length;a++){const o=Math.abs(t[a].syncPoint[n.key]-n.value);o<r&&(r=o,s=t[a].syncPoint,i=t[a].strategy)}return this.logger_(`syncPoint for [${n.key}: ${n.value}] chosen with strategy [${i}]: [time:${s.time}, segmentIndex:${s.segmentIndex}`+(typeof s.partIndex=="number"?`,partIndex:${s.partIndex}`:"")+"]"),s}saveExpiredSegmentInfo(t,n){const s=n.mediaSequence-t.mediaSequence;if(s>sSe){He.log.warn(`Not saving expired segment info. Media sequence gap ${s} is too large.`);return}for(let r=s-1;r>=0;r--){const i=t.segments[r];if(i&&typeof i.start<"u"){n.syncInfo={mediaSequence:t.mediaSequence+r,time:i.start},this.logger_(`playlist refresh sync: [time:${n.syncInfo.time}, mediaSequence: ${n.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(t){if(this.timelineToDatetimeMappings={},t.segments&&t.segments.length&&t.segments[0].dateTimeObject){const n=t.segments[0],s=n.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[n.timeline]=-s}}saveSegmentTimingInfo({segmentInfo:t,shouldSaveTimelineMapping:n}){const s=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;s&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));const i=r.dateTimeObject;r.discontinuity&&n&&i&&(this.timelineToDatetimeMappings[r.timeline]=-(i.getTime()/1e3))}timestampOffsetForTimeline(t){return typeof this.timelines[t]>"u"?null:this.timelines[t].time}mappingForTimeline(t){return typeof this.timelines[t]>"u"?null:this.timelines[t].mapping}calculateSegmentTimeMapping_(t,n,s){const r=t.segment,i=t.part;let a=this.timelines[t.timeline],o,l;if(typeof t.timestampOffset=="number")a={time:t.startOfSegment,mapping:t.startOfSegment-n.start},s&&(this.timelines[t.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${t.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),o=t.startOfSegment,l=n.end+a.mapping;else if(a)o=n.start+a.mapping,l=n.end+a.mapping;else return!1;return i&&(i.start=o,i.end=l),(!r.start||o<r.start)&&(r.start=o),r.end=l,!0}saveDiscontinuitySyncInfo_(t){const n=t.playlist,s=t.segment;if(s.discontinuity)this.discontinuities[s.timeline]={time:s.start,accuracy:0};else if(n.discontinuityStarts&&n.discontinuityStarts.length)for(let r=0;r<n.discontinuityStarts.length;r++){const i=n.discontinuityStarts[r],a=n.discontinuitySequence+r+1,o=i-t.mediaIndex,l=Math.abs(o);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>l){let u;o<0?u=s.start-uf({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:t.mediaIndex,endIndex:i}):u=s.end+uf({defaultDuration:n.targetDuration,durationList:n.segments,startIndex:t.mediaIndex+1,endIndex:i}),this.discontinuities[a]={time:u,accuracy:l}}}}dispose(){this.trigger("dispose"),this.off()}}class iSe extends He.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(t){this.pendingTimelineChanges_[t]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:t,from:n,to:s}){return typeof n=="number"&&typeof s=="number"&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:s},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]}lastTimelineChange({type:t,from:n,to:s}){if(typeof n=="number"&&typeof s=="number"){this.lastTimelineChanges_[t]={type:t,from:n,to:s},delete this.pendingTimelineChanges_[t];const r={timelineChangeInfo:{from:n,to:s}};this.trigger({type:"timelinechange",metadata:r})}return this.lastTimelineChanges_[t]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const aSe=GM(YM(function(){var e=function(){function p(){this.listeners={}}var v=p.prototype;return v.on=function(_,b){this.listeners[_]||(this.listeners[_]=[]),this.listeners[_].push(b)},v.off=function(_,b){if(!this.listeners[_])return!1;var T=this.listeners[_].indexOf(b);return this.listeners[_]=this.listeners[_].slice(0),this.listeners[_].splice(T,1),T>-1},v.trigger=function(_){var b=this.listeners[_];if(b)if(arguments.length===2)for(var T=b.length,S=0;S<T;++S)b[S].call(this,arguments[1]);else for(var C=Array.prototype.slice.call(arguments,1),D=b.length,N=0;N<D;++N)b[N].apply(this,C)},v.dispose=function(){this.listeners={}},v.pipe=function(_){this.on("data",function(b){_.push(b)})},p}();/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */function t(p){return p.subarray(0,p.byteLength-p[p.byteLength-1])}/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */const n=function(){const p=[[[],[],[],[],[]],[[],[],[],[],[]]],v=p[0],y=p[1],_=v[4],b=y[4];let T,S,C;const D=[],N=[];let $,L,z,U,W,K;for(T=0;T<256;T++)N[(D[T]=T<<1^(T>>7)*283)^T]=T;for(S=C=0;!_[S];S^=$||1,C=N[C]||1)for(U=C^C<<1^C<<2^C<<3^C<<4,U=U>>8^U&255^99,_[S]=U,b[U]=S,z=D[L=D[$=D[S]]],K=z*16843009^L*65537^$*257^S*16843008,W=D[U]*257^U*16843008,T=0;T<4;T++)v[T][S]=W=W<<24^W>>>8,y[T][U]=K=K<<24^K>>>8;for(T=0;T<5;T++)v[T]=v[T].slice(0),y[T]=y[T].slice(0);return p};let s=null;class r{constructor(v){s||(s=n()),this._tables=[[s[0][0].slice(),s[0][1].slice(),s[0][2].slice(),s[0][3].slice(),s[0][4].slice()],[s[1][0].slice(),s[1][1].slice(),s[1][2].slice(),s[1][3].slice(),s[1][4].slice()]];let y,_,b;const T=this._tables[0][4],S=this._tables[1],C=v.length;let D=1;if(C!==4&&C!==6&&C!==8)throw new Error("Invalid aes key size");const N=v.slice(0),$=[];for(this._key=[N,$],y=C;y<4*C+28;y++)b=N[y-1],(y%C===0||C===8&&y%C===4)&&(b=T[b>>>24]<<24^T[b>>16&255]<<16^T[b>>8&255]<<8^T[b&255],y%C===0&&(b=b<<8^b>>>24^D<<24,D=D<<1^(D>>7)*283)),N[y]=N[y-C]^b;for(_=0;y;_++,y--)b=N[_&3?y:y-4],y<=4||_<4?$[_]=b:$[_]=S[0][T[b>>>24]]^S[1][T[b>>16&255]]^S[2][T[b>>8&255]]^S[3][T[b&255]]}decrypt(v,y,_,b,T,S){const C=this._key[1];let D=v^C[0],N=b^C[1],$=_^C[2],L=y^C[3],z,U,W;const K=C.length/4-2;let X,B=4;const Q=this._tables[1],Y=Q[0],F=Q[1],H=Q[2],Z=Q[3],se=Q[4];for(X=0;X<K;X++)z=Y[D>>>24]^F[N>>16&255]^H[$>>8&255]^Z[L&255]^C[B],U=Y[N>>>24]^F[$>>16&255]^H[L>>8&255]^Z[D&255]^C[B+1],W=Y[$>>>24]^F[L>>16&255]^H[D>>8&255]^Z[N&255]^C[B+2],L=Y[L>>>24]^F[D>>16&255]^H[N>>8&255]^Z[$&255]^C[B+3],B+=4,D=z,N=U,$=W;for(X=0;X<4;X++)T[(3&-X)+S]=se[D>>>24]<<24^se[N>>16&255]<<16^se[$>>8&255]<<8^se[L&255]^C[B++],z=D,D=N,N=$,$=L,L=z}}class i extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(v){this.jobs.push(v),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const a=function(p){return p<<24|(p&65280)<<8|(p&16711680)>>8|p>>>24},o=function(p,v,y){const _=new Int32Array(p.buffer,p.byteOffset,p.byteLength>>2),b=new r(Array.prototype.slice.call(v)),T=new Uint8Array(p.byteLength),S=new Int32Array(T.buffer);let C,D,N,$,L,z,U,W,K;for(C=y[0],D=y[1],N=y[2],$=y[3],K=0;K<_.length;K+=4)L=a(_[K]),z=a(_[K+1]),U=a(_[K+2]),W=a(_[K+3]),b.decrypt(L,z,U,W,S,K),S[K]=a(S[K]^C),S[K+1]=a(S[K+1]^D),S[K+2]=a(S[K+2]^N),S[K+3]=a(S[K+3]^$),C=L,D=z,N=U,$=W;return T};class l{constructor(v,y,_,b){const T=l.STEP,S=new Int32Array(v.buffer),C=new Uint8Array(v.byteLength);let D=0;for(this.asyncStream_=new i,this.asyncStream_.push(this.decryptChunk_(S.subarray(D,D+T),y,_,C)),D=T;D<S.length;D+=T)_=new Uint32Array([a(S[D-4]),a(S[D-3]),a(S[D-2]),a(S[D-1])]),this.asyncStream_.push(this.decryptChunk_(S.subarray(D,D+T),y,_,C));this.asyncStream_.push(function(){b(null,t(C))})}static get STEP(){return 32e3}decryptChunk_(v,y,_,b){return function(){const T=o(v,y,_);b.set(T,v.byteOffset)}}}var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c;typeof window<"u"?c=window:typeof u<"u"?c=u:typeof self<"u"?c=self:c={};var f=c,h=function(v){return ArrayBuffer.isView==="function"?ArrayBuffer.isView(v):v&&v.buffer instanceof ArrayBuffer},m=f.BigInt||Number;m("0x1"),m("0x100"),m("0x10000"),m("0x1000000"),m("0x100000000"),m("0x10000000000"),m("0x1000000000000"),m("0x100000000000000"),m("0x10000000000000000"),function(){var p=new Uint16Array([65484]),v=new Uint8Array(p.buffer,p.byteOffset,p.byteLength);return v[0]===255?"big":v[0]===204?"little":"unknown"}();const g=function(p){const v={};return Object.keys(p).forEach(y=>{const _=p[y];h(_)?v[y]={bytes:_.buffer,byteOffset:_.byteOffset,byteLength:_.byteLength}:v[y]=_}),v};self.onmessage=function(p){const v=p.data,y=new Uint8Array(v.encrypted.bytes,v.encrypted.byteOffset,v.encrypted.byteLength),_=new Uint32Array(v.key.bytes,v.key.byteOffset,v.key.byteLength/4),b=new Uint32Array(v.iv.bytes,v.iv.byteOffset,v.iv.byteLength/4);new l(y,_,b,function(T,S){self.postMessage(g({source:v.source,decrypted:S}),[S.buffer])})}}));var oSe=KM(aSe);const lSe=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},c$=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},N_=(e,t)=>{t.activePlaylistLoader=e,e.load()},uSe=(e,t)=>()=>{const{segmentLoaders:{[e]:n,main:s},mediaTypes:{[e]:r}}=t,i=r.activeTrack(),a=r.getActiveGroup(),o=r.activePlaylistLoader,l=r.lastGroup_;if(!(a&&l&&a.id===l.id)&&(r.lastGroup_=a,r.lastTrack_=i,c$(n,r),!(!a||a.isMainPlaylist))){if(!a.playlistLoader){o&&s.resetEverything();return}n.resyncLoader(),N_(a.playlistLoader,r)}},cSe=(e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:s}}=t;s.lastGroup_=null,n.abort(),n.pause()},dSe=(e,t)=>()=>{const{mainPlaylistLoader:n,segmentLoaders:{[e]:s,main:r},mediaTypes:{[e]:i}}=t,a=i.activeTrack(),o=i.getActiveGroup(),l=i.activePlaylistLoader,u=i.lastTrack_;if(!(u&&a&&u.id===a.id)&&(i.lastGroup_=o,i.lastTrack_=a,c$(s,i),!!o)){if(o.isMainPlaylist){if(!a||!u||a.id===u.id)return;const c=t.vhs.playlistController_,f=c.selectPlaylist();if(c.media()===f)return;i.logger_(`track change. Switching main audio from ${u.id} to ${a.id}`),n.pause(),r.resetEverything(),c.fastQualityChange_(f);return}if(e==="AUDIO"){if(!o.playlistLoader){r.setAudio(!0),r.resetEverything();return}s.setAudio(!0),r.setAudio(!1)}if(l===o.playlistLoader){N_(o.playlistLoader,i);return}s.track&&s.track(a),s.resetEverything(),N_(o.playlistLoader,i)}},gg={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:n},excludePlaylist:s}=t,r=n.activeTrack(),i=n.activeGroup(),a=(i.filter(l=>l.default)[0]||i[0]).id,o=n.tracks[a];if(r===o){s({error:{message:"Problem encountered loading the default audio track."}});return}He.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const l in n.tracks)n.tracks[l].enabled=n.tracks[l]===o;n.onTrackChanged()},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:n}}=t;He.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const s=n.activeTrack();s&&(s.mode="disabled"),n.onTrackChanged()}},FA={AUDIO:(e,t,n)=>{if(!t)return;const{tech:s,requestOptions:r,segmentLoaders:{[e]:i}}=n;t.on("loadedmetadata",()=>{const a=t.media();i.playlist(a,r),(!s.paused()||a.endList&&s.preload()!=="none")&&i.load()}),t.on("loadedplaylist",()=>{i.playlist(t.media(),r),s.paused()||i.load()}),t.on("error",gg[e](e,n))},SUBTITLES:(e,t,n)=>{const{tech:s,requestOptions:r,segmentLoaders:{[e]:i},mediaTypes:{[e]:a}}=n;t.on("loadedmetadata",()=>{const o=t.media();i.playlist(o,r),i.track(a.activeTrack()),(!s.paused()||o.endList&&s.preload()!=="none")&&i.load()}),t.on("loadedplaylist",()=>{i.playlist(t.media(),r),s.paused()||i.load()}),t.on("error",gg[e](e,n))}},fSe={AUDIO:(e,t)=>{const{vhs:n,sourceType:s,segmentLoaders:{[e]:r},requestOptions:i,main:{mediaGroups:a},mediaTypes:{[e]:{groups:o,tracks:l,logger_:u}},mainPlaylistLoader:c}=t,f=Mh(c.main);(!a[e]||Object.keys(a[e]).length===0)&&(a[e]={main:{default:{default:!0}}},f&&(a[e].main.default.playlists=c.main.playlists));for(const h in a[e]){o[h]||(o[h]=[]);for(const m in a[e][h]){let g=a[e][h][m],p;if(f?(u(`AUDIO group '${h}' label '${m}' is a main playlist`),g.isMainPlaylist=!0,p=null):s==="vhs-json"&&g.playlists?p=new ku(g.playlists[0],n,i):g.resolvedUri?p=new ku(g.resolvedUri,n,i):g.playlists&&s==="dash"?p=new D_(g.playlists[0],n,i,c):p=null,g=bn({id:m,playlistLoader:p},g),FA[e](e,g.playlistLoader,t),o[h].push(g),typeof l[m]>"u"){const v=new He.AudioTrack({id:m,kind:lSe(g),enabled:!1,language:g.language,default:g.default,label:m});l[m]=v}}}r.on("error",gg[e](e,t))},SUBTITLES:(e,t)=>{const{tech:n,vhs:s,sourceType:r,segmentLoaders:{[e]:i},requestOptions:a,main:{mediaGroups:o},mediaTypes:{[e]:{groups:l,tracks:u}},mainPlaylistLoader:c}=t;for(const f in o[e]){l[f]||(l[f]=[]);for(const h in o[e][f]){if(!s.options_.useForcedSubtitles&&o[e][f][h].forced)continue;let m=o[e][f][h],g;if(r==="hls")g=new ku(m.resolvedUri,s,a);else if(r==="dash"){if(!m.playlists.filter(v=>v.excludeUntil!==1/0).length)return;g=new D_(m.playlists[0],s,a,c)}else r==="vhs-json"&&(g=new ku(m.playlists?m.playlists[0]:m.resolvedUri,s,a));if(m=bn({id:h,playlistLoader:g},m),FA[e](e,m.playlistLoader,t),l[f].push(m),typeof u[h]>"u"){const p=n.addRemoteTextTrack({id:h,kind:"subtitles",default:m.default&&m.autoselect,language:m.language,label:h},!1).track;u[h]=p}}}i.on("error",gg[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:n,main:{mediaGroups:s},mediaTypes:{[e]:{groups:r,tracks:i}}}=t;for(const a in s[e]){r[a]||(r[a]=[]);for(const o in s[e][a]){const l=s[e][a][o];if(!/^(?:CC|SERVICE)/.test(l.instreamId))continue;const u=n.options_.vhs&&n.options_.vhs.captionServices||{};let c={label:o,language:l.language,instreamId:l.instreamId,default:l.default&&l.autoselect};if(u[c.instreamId]&&(c=bn(c,u[c.instreamId])),c.default===void 0&&delete c.default,r[a].push(bn({id:o},l)),typeof i[o]>"u"){const f=n.addRemoteTextTrack({id:c.instreamId,kind:"captions",default:c.default,language:c.language,label:c.label},!1).track;i[o]=f}}}}},d$=(e,t)=>{for(let n=0;n<e.length;n++)if(cS(t,e[n])||e[n].playlists&&d$(e[n].playlists,t))return!0;return!1},hSe=(e,t)=>n=>{const{mainPlaylistLoader:s,mediaTypes:{[e]:{groups:r}}}=t,i=s.media();if(!i)return null;let a=null;i.attributes[e]&&(a=r[i.attributes[e]]);const o=Object.keys(r);if(!a)if(e==="AUDIO"&&o.length>1&&Mh(t.main))for(let l=0;l<o.length;l++){const u=r[o[l]];if(d$(u,i)){a=u;break}}else r.main?a=r.main:o.length===1&&(a=r[o[0]]);return typeof n>"u"?a:n===null||!a?null:a.filter(l=>l.id===n.id)[0]||null},pSe={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const s in n)if(n[s].enabled)return n[s];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const s in n)if(n[s].mode==="showing"||n[s].mode==="hidden")return n[s];return null}},mSe=(e,{mediaTypes:t})=>()=>{const n=t[e].activeTrack();return n?t[e].activeGroup(n):null},gSe=e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(u=>{fSe[u](u,e)});const{mediaTypes:t,mainPlaylistLoader:n,tech:s,vhs:r,segmentLoaders:{["AUDIO"]:i,main:a}}=e;["AUDIO","SUBTITLES"].forEach(u=>{t[u].activeGroup=hSe(u,e),t[u].activeTrack=pSe[u](u,e),t[u].onGroupChanged=uSe(u,e),t[u].onGroupChanging=cSe(u,e),t[u].onTrackChanged=dSe(u,e),t[u].getActiveGroup=mSe(u,e)});const o=t.AUDIO.activeGroup();if(o){const u=(o.filter(f=>f.default)[0]||o[0]).id;t.AUDIO.tracks[u].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(a.setAudio(!1),i.setAudio(!0)):a.setAudio(!0)}n.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(u=>t[u].onGroupChanged())}),n.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(u=>t[u].onGroupChanging())});const l=()=>{t.AUDIO.onTrackChanged(),s.trigger({type:"usage",name:"vhs-audio-change"})};s.audioTracks().addEventListener("change",l),s.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",()=>{s.audioTracks().removeEventListener("change",l),s.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),s.clearTracks("audio");for(const u in t.AUDIO.tracks)s.audioTracks().addTrack(t.AUDIO.tracks[u])},vSe=()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:wa,activeTrack:wa,getActiveGroup:wa,onGroupChanged:wa,onTrackChanged:wa,lastTrack_:null,logger_:ni(`MediaGroups[${t}]`)}}),e};class VA{constructor(){this.priority_=[],this.pathwayClones_=new Map}set version(t){t===1&&(this.version_=t)}set ttl(t){this.ttl_=t||300}set reloadUri(t){t&&(this.reloadUri_=rr(this.reloadUri_,t))}set priority(t){t&&t.length&&(this.priority_=t)}set pathwayClones(t){t&&t.length&&(this.pathwayClones_=new Map(t.map(n=>[n.ID,n])))}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}get pathwayClones(){return this.pathwayClones_}}class ySe extends He.EventTarget{constructor(t,n){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=!1,this.availablePathways_=new Set,this.steeringManifest=new VA,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.currentPathwayClones=new Map,this.nextPathwayClones=new Map,this.excludedSteeringManifestURLs=new Set,this.logger_=ni("Content Steering"),this.xhr_=t,this.getBandwidth_=n}assignTagProperties(t,n){this.manifestType_=n.serverUri?"HLS":"DASH";const s=n.serverUri||n.serverURL;if(!s){this.logger_(`steering manifest URL is ${s}, cannot request steering manifest.`),this.trigger("error");return}if(s.startsWith("data:")){this.decodeDataUriManifest_(s.substring(s.indexOf(",")+1));return}this.steeringManifest.reloadUri=rr(t,s),this.defaultPathway=n.pathwayId||n.defaultServiceLocation,this.queryBeforeStart=n.queryBeforeStart,this.proxyServerUrl_=n.proxyServerURL,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering")}requestSteeringManifest(t){const n=this.steeringManifest.reloadUri;if(!n)return;const s=t?n:this.getRequestURI(n);if(!s){this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),this.dispose();return}const r={contentSteeringInfo:{uri:s}};this.trigger({type:"contentsteeringloadstart",metadata:r}),this.request_=this.xhr_({uri:s,requestType:"content-steering-manifest"},(i,a)=>{if(i){if(a.status===410){this.logger_(`manifest request 410 ${i}.`),this.logger_(`There will be no more content steering requests to ${s} this session.`),this.excludedSteeringManifestURLs.add(s);return}if(a.status===429){const u=a.responseHeaders["retry-after"];this.logger_(`manifest request 429 ${i}.`),this.logger_(`content steering will retry in ${u} seconds.`),this.startTTLTimeout_(parseInt(u,10));return}this.logger_(`manifest failed to load ${i}.`),this.startTTLTimeout_();return}this.trigger({type:"contentsteeringloadcomplete",metadata:r});let o;try{o=JSON.parse(this.request_.responseText)}catch(u){const c={errorType:He.Error.StreamingContentSteeringParserError,error:u};this.trigger({type:"error",metadata:c})}this.assignSteeringProperties_(o);const l={contentSteeringInfo:r.contentSteeringInfo,contentSteeringManifest:{version:this.steeringManifest.version,reloadUri:this.steeringManifest.reloadUri,priority:this.steeringManifest.priority}};this.trigger({type:"contentsteeringparsed",metadata:l}),this.startTTLTimeout_()})}setProxyServerUrl_(t){const n=new me.URL(t),s=new me.URL(this.proxyServerUrl_);return s.searchParams.set("url",encodeURI(n.toString())),this.setSteeringParams_(s.toString())}decodeDataUriManifest_(t){const n=JSON.parse(me.atob(t));this.assignSteeringProperties_(n)}setSteeringParams_(t){const n=new me.URL(t),s=this.getPathway(),r=this.getBandwidth_();if(s){const i=`_${this.manifestType_}_pathway`;n.searchParams.set(i,s)}if(r){const i=`_${this.manifestType_}_throughput`;n.searchParams.set(i,r)}return n.toString()}assignSteeringProperties_(t){if(this.steeringManifest.version=t.VERSION,!this.steeringManifest.version){this.logger_(`manifest version is ${t.VERSION}, which is not supported.`),this.trigger("error");return}this.steeringManifest.ttl=t.TTL,this.steeringManifest.reloadUri=t["RELOAD-URI"],this.steeringManifest.priority=t["PATHWAY-PRIORITY"]||t["SERVICE-LOCATION-PRIORITY"],this.steeringManifest.pathwayClones=t["PATHWAY-CLONES"],this.nextPathwayClones=this.steeringManifest.pathwayClones,this.availablePathways_.size||(this.logger_("There are no available pathways for content steering. Ending content steering."),this.trigger("error"),this.dispose());const s=(r=>{for(const i of r)if(this.availablePathways_.has(i))return i;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==s&&(this.currentPathway=s,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(t){if(!t)return null;const n=r=>this.excludedSteeringManifestURLs.has(r);if(this.proxyServerUrl_){const r=this.setProxyServerUrl_(t);if(!n(r))return r}const s=this.setSteeringParams_(t);return n(s)?null:s}startTTLTimeout_(t=this.steeringManifest.ttl){const n=t*1e3;this.ttlTimeout_=me.setTimeout(()=>{this.requestSteeringManifest()},n)}clearTTLTimeout_(){me.clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.steeringManifest=new VA}addAvailablePathway(t){t&&this.availablePathways_.add(t)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(t){return this.availablePathways_.delete(t)}didDASHTagChange(t,n){return!n&&this.steeringManifest.reloadUri||n&&(rr(t,n.serverURL)!==this.steeringManifest.reloadUri||n.defaultServiceLocation!==this.defaultPathway||n.queryBeforeStart!==this.queryBeforeStart||n.proxyServerURL!==this.proxyServerUrl_)}getAvailablePathways(){return this.availablePathways_}}const bSe=10;let pa;const _Se=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],wSe=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},SSe=function({currentPlaylist:e,buffered:t,currentTime:n,nextPlaylist:s,bufferLowWaterLine:r,bufferHighWaterLine:i,duration:a,bufferBasedABR:o,log:l}){if(!s)return He.log.warn("We received no playlist to switch to. Please check your stream."),!1;const u=`allowing switch ${e&&e.id||"null"} -> ${s.id}`;if(!e)return l(`${u} as current playlist is not set`),!0;if(s.id===e.id)return!1;const c=!!xu(t,n).length;if(!e.endList)return!c&&typeof e.partTargetDuration=="number"?(l(`not ${u} as current playlist is live llhls, but currentTime isn't in buffered.`),!1):(l(`${u} as current playlist is live`),!0);const f=oS(t,n),h=o?hs.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:hs.MAX_BUFFER_LOW_WATER_LINE;if(a<h)return l(`${u} as duration < max low water line (${a} < ${h})`),!0;const m=s.attributes.BANDWIDTH,g=e.attributes.BANDWIDTH;if(m<g&&(!o||f<i)){let p=`${u} as next bandwidth < current bandwidth (${m} < ${g})`;return o&&(p+=` and forwardBuffer < bufferHighWaterLine (${f} < ${i})`),l(p),!0}if((!o||m>g)&&f>=r){let p=`${u} as forwardBuffer >= bufferLowWaterLine (${f} >= ${r})`;return o&&(p+=` and next bandwidth > current bandwidth (${m} > ${g})`),l(p),!0}return l(`not ${u} as no switching criteria met`),!1};class TSe extends He.EventTarget{constructor(t){super();const{src:n,withCredentials:s,tech:r,bandwidth:i,externVhs:a,useCueTags:o,playlistExclusionDuration:l,enableLowInitialPlaylist:u,sourceType:c,cacheEncryptionKeys:f,bufferBasedABR:h,leastPixelDiffSelector:m,captionServices:g}=t;if(!n)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:p}=t;(p===null||typeof p>"u")&&(p=1/0),pa=a,this.bufferBasedABR=!!h,this.leastPixelDiffSelector=!!m,this.withCredentials=s,this.tech_=r,this.vhs_=r.vhs,this.player_=t.player_,this.sourceType_=c,this.useCueTags_=o,this.playlistExclusionDuration=l,this.maxPlaylistRetries=p,this.enableLowInitialPlaylist=u,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:s,maxPlaylistRetries:p,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=vSe(),this.mediaSource=new me.MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=Cs(),this.hasPlayed_=!1,this.syncController_=new rSe(t),this.segmentMetadataTrack_=r.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new oSe,this.sourceUpdater_=new l$(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new iSe,this.keyStatusMap_=new Map;const v={vhs:this.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:g,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:i,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:f,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:t.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_=this.sourceType_==="dash"?new D_(n,this.vhs_,bn(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new ku(n,this.vhs_,bn(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new P_(bn(v,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),t),this.audioSegmentLoader_=new P_(bn(v,{loaderType:"audio"}),t),this.subtitleSegmentLoader_=new Zwe(bn(v,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((b,T)=>{function S(){r.off("vttjserror",C),b()}function C(){r.off("vttjsloaded",S),T()}r.one("vttjsloaded",S),r.one("vttjserror",C),r.addWebVttScript_()})}),t);const y=()=>this.mainSegmentLoader_.bandwidth;this.contentSteeringController_=new ySe(this.vhs_.xhr,y),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),_Se.forEach(b=>{this[b+"_"]=wSe.bind(this,b)}),this.logger_=ni("pc"),this.triggeredFmp4Usage=!1,this.tech_.preload()==="none"?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const _=this.tech_.preload()==="none"?"play":"loadstart";this.tech_.one(_,()=>{const b=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-b,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const t=this.mainAppendsToLoadedData_(),n=this.audioAppendsToLoadedData_();return t===-1||n===-1?-1:t+n}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(t="abr"){const n=this.selectPlaylist();n&&this.shouldSwitchToMedia_(n)&&this.switchMedia_(n,t)}switchMedia_(t,n,s){const r=this.media(),i=r&&(r.id||r.uri),a=t&&(t.id||t.uri);if(i&&i!==a){this.logger_(`switch media ${i} -> ${a} from ${n}`);const o={renditionInfo:{id:a,bandwidth:t.attributes.BANDWIDTH,resolution:t.attributes.RESOLUTION,codecs:t.attributes.CODECS},cause:n};this.trigger({type:"renditionselected",metadata:o}),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${n}`})}this.mainPlaylistLoader_.media(t,s)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{const n=this.mediaTypes_[t],s=n?n.activeGroup():null,r=this.contentSteeringController_.getPathway();if(s&&r){const a=(s.length?s[0].playlists:s.playlists).filter(o=>o.attributes.serviceLocation===r);a.length&&this.mediaTypes_[t].activePlaylistLoader.media(a[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=me.setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(me.clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const t=this.main(),n=t&&t.playlists||[];if(!t||!t.mediaGroups||!t.mediaGroups.AUDIO)return n;const s=t.mediaGroups.AUDIO,r=Object.keys(s);let i;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{const o=s.main||r.length&&s[r[0]];for(const l in o)if(o[l].default){i={label:l};break}}if(!i)return n;const a=[];for(const o in s)if(s[o][i.label]){const l=s[o][i.label];if(l.playlists&&l.playlists.length)a.push.apply(a,l.playlists);else if(l.uri)a.push(l);else if(t.playlists.length)for(let u=0;u<t.playlists.length;u++){const c=t.playlists[u];c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===o&&a.push(c)}}return a.length?a:n}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const n=this.mainPlaylistLoader_.media(),s=n.targetDuration*1.5*1e3;E_(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=s,n.endList&&this.tech_.preload()!=="none"&&(this.mainSegmentLoader_.playlist(n,this.requestOptions_),this.mainSegmentLoader_.load()),gSe({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),n),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let n=this.mainPlaylistLoader_.media();if(!n){this.attachContentSteeringListeners_(),this.initContentSteeringController_(),this.excludeUnsupportedVariants_();let s;if(this.enableLowInitialPlaylist&&(s=this.selectInitialPlaylist()),s||(s=this.selectPlaylist()),!s||!this.shouldSwitchToMedia_(s)||(this.initialMedia_=s,this.switchMedia_(this.initialMedia_,"initial"),!(this.sourceType_==="vhs-json"&&this.initialMedia_.segments)))return;n=this.initialMedia_}this.handleUpdatedMediaPlaylist(n)}),this.mainPlaylistLoader_.on("error",()=>{const n=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:n.playlist,error:n})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const n=this.mainPlaylistLoader_.media(),s=n.targetDuration*1.5*1e3;E_(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=s,this.sourceType_==="dash"&&this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(n,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_?this.runFastQualitySwitch_():this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const n=this.mainPlaylistLoader_.media();if(n.lastExcludeReason_==="playlist-unchanged")return;this.stuckAtPlaylistEnd_(n)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})}),["manifestrequeststart","manifestrequestcomplete","manifestparsestart","manifestparsecomplete","playlistrequeststart","playlistrequestcomplete","playlistparsestart","playlistparsecomplete","renditiondisabled","renditionenabled"].forEach(n=>{this.mainPlaylistLoader_.on(n,s=>{this.player_.trigger(qn({},s))})})}handleUpdatedMediaPlaylist(t){this.useCueTags_&&this.updateAdCues_(t),this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.playlist(t,this.requestOptions_),this.waitingForFastQualityPlaylistReceived_&&this.runFastQualitySwitch_(),this.updateDuration(!t.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())}triggerPresenceUsage_(t,n){const s=t.mediaGroups||{};let r=!0;const i=Object.keys(s.AUDIO);for(const a in s.AUDIO)for(const o in s.AUDIO[a])s.AUDIO[a][o].uri||(r=!1);r&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(s.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),pa.Playlist.isAes(n)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),i.length&&Object.keys(s.AUDIO[i[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(t){const n=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pendingMedia_,s=this.tech_.currentTime(),r=this.bufferLowWaterLine(),i=this.bufferHighWaterLine(),a=this.tech_.buffered();return SSe({buffered:a,currentTime:s,currentPlaylist:n,nextPlaylist:t,bufferLowWaterLine:r,bufferHighWaterLine:i,duration:this.duration(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const s=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:s.playlist,error:s})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",s=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:bSe}))});const t=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const s=this.getCodecsOrExclude_();s&&this.sourceUpdater_.addOrChangeSourceBuffers(s)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()}),["segmentselected","segmentloadstart","segmentloaded","segmentkeyloadstart","segmentkeyloadcomplete","segmentdecryptionstart","segmentdecryptioncomplete","segmenttransmuxingstart","segmenttransmuxingcomplete","segmenttransmuxingtrackinfoavailable","segmenttransmuxingtiminginfoavailable","segmentappendstart","appendsdone","bandwidthupdated","timelinechange","codecschange"].forEach(s=>{this.mainSegmentLoader_.on(s,r=>{this.player_.trigger(qn({},r))}),this.audioSegmentLoader_.on(s,r=>{this.player_.trigger(qn({},r))}),this.subtitleSegmentLoader_.on(s,r=>{this.player_.trigger(qn({},r))})})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(t=this.selectPlaylist()){if(t&&t===this.mainPlaylistLoader_.media()){this.logger_("skipping fastQualityChange because new media is same as old");return}this.switchMedia_(t,"fast-quality"),this.waitingForFastQualityPlaylistReceived_=!0}runFastQualitySwitch_(){this.waitingForFastQualityPlaylistReceived_=!1,this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(()=>{this.tech_.setCurrentTime(this.tech_.currentTime())})}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const t=this.tech_.seekable();if(this.tech_.duration()===1/0&&this.tech_.currentTime()<t.start(0))return this.tech_.setCurrentTime(t.end(t.length-1))}setupFirstPlay(){const t=this.mainPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList||t.start){const n=this.seekable();if(!n.length)return!1;const s=n.end(0);let r=s;if(t.start){const i=t.start.timeOffset;i<0?r=Math.max(s+i,n.start(0)):r=Math.min(s,i)}this.trigger("firstplay"),this.tech_.setCurrentTime(r)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const t=this.tech_.play();typeof t<"u"&&typeof t.then=="function"&&t.then(null,n=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const t=this.inbandTextTracks_.metadataTrack_.cues;if(!t||!t.length)return;const n=this.duration();t[t.length-1].endTime=isNaN(n)||Math.abs(n)===1/0?Number.MAX_VALUE:n}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let t=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const n=this.mainSegmentLoader_.getCurrentMediaInfo_();!n||n.hasVideo?t=t&&this.audioSegmentLoader_.ended_:t=this.audioSegmentLoader_.ended_}t&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(t){if(!this.seekable().length)return!1;const s=this.syncController_.getExpiredTime(t,this.duration());if(s===null)return!1;const r=pa.Playlist.playlistEnd(t,s),i=this.tech_.currentTime(),a=this.tech_.buffered();if(!a.length)return r-i<=Ui;const o=a.end(a.length-1);return o-i<=Ui&&r-o<=Ui}excludePlaylist({playlistToExclude:t=this.mainPlaylistLoader_.media(),error:n={},playlistExclusionDuration:s}){if(t=t||this.mainPlaylistLoader_.media(),s=s||n.playlistExclusionDuration||this.playlistExclusionDuration,!t){this.error=n,this.mediaSource.readyState!=="open"?this.trigger("error"):this.sourceUpdater_.endOfStream("network");return}t.playlistErrors_++;const r=this.mainPlaylistLoader_.main.playlists,i=r.filter(Uv),a=i.length===1&&i[0]===t;if(r.length===1&&s!==1/0)return He.log.warn(`Problem encountered with playlist ${t.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(a);if(a){if(this.main().contentSteering){const g=this.pathwayAttribute_(t),p=this.contentSteeringController_.steeringManifest.ttl*1e3;this.contentSteeringController_.excludePathway(g),this.excludeThenChangePathway_(),setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(g)},p);return}let m=!1;r.forEach(g=>{if(g===t)return;const p=g.excludeUntil;typeof p<"u"&&p!==1/0&&(m=!0,delete g.excludeUntil)}),m&&(He.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let o;t.playlistErrors_>this.maxPlaylistRetries?o=1/0:o=Date.now()+s*1e3,t.excludeUntil=o,n.reason&&(t.lastExcludeReason_=n.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const l=this.selectPlaylist();if(!l){this.error="Playback cannot continue. No available working or supported playlists.",this.trigger("error");return}const u=n.internal?this.logger_:He.log.warn,c=n.message?" "+n.message:"";u(`${n.internal?"Internal problem":"Problem"} encountered with playlist ${t.id}.${c} Switching to playlist ${l.id}.`),l.attributes.AUDIO!==t.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==t.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const f=l.targetDuration/2*1e3||5*1e3,h=typeof l.lastRequest=="number"&&Date.now()-l.lastRequest<=f;return this.switchMedia_(l,"exclude",a||h)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(t,n){const s=[],r=t==="all";(r||t==="main")&&s.push(this.mainPlaylistLoader_);const i=[];(r||t==="audio")&&i.push("AUDIO"),(r||t==="subtitle")&&(i.push("CLOSED-CAPTIONS"),i.push("SUBTITLES")),i.forEach(a=>{const o=this.mediaTypes_[a]&&this.mediaTypes_[a].activePlaylistLoader;o&&s.push(o)}),["main","audio","subtitle"].forEach(a=>{const o=this[`${a}SegmentLoader_`];o&&(t===a||t==="all")&&s.push(o)}),s.forEach(a=>n.forEach(o=>{typeof a[o]=="function"&&a[o]()}))}setCurrentTime(t){const n=xu(this.tech_.buffered(),t);if(!(this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media())||!this.mainPlaylistLoader_.media().segments)return 0;if(n&&n.length)return t;this.mainSegmentLoader_.pause(),this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.pause(),this.audioSegmentLoader_.resetEverything()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.pause(),this.subtitleSegmentLoader_.resetEverything()),this.load()}duration(){if(!this.mainPlaylistLoader_)return 0;const t=this.mainPlaylistLoader_.media();return t?t.endList?this.mediaSource?this.mediaSource.duration:pa.Playlist.duration(t):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let t;if(!this.mainPlaylistLoader_)return;let n=this.mainPlaylistLoader_.media();if(!n)return;let s=this.syncController_.getExpiredTime(n,this.duration());if(s===null)return;const r=this.mainPlaylistLoader_.main,i=pa.Playlist.seekable(n,s,pa.Playlist.liveEdgeDelay(r,n));if(i.length===0||this.mediaTypes_.AUDIO.activePlaylistLoader&&(n=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),s=this.syncController_.getExpiredTime(n,this.duration()),s===null||(t=pa.Playlist.seekable(n,s,pa.Playlist.liveEdgeDelay(r,n)),t.length===0)))return;let a,o;if(this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),o=this.seekable_.start(0)),t?t.start(0)>i.end(0)||i.start(0)>t.end(0)?this.seekable_=i:this.seekable_=Cs([[t.start(0)>i.start(0)?t.start(0):i.start(0),t.end(0)<i.end(0)?t.end(0):i.end(0)]]):this.seekable_=i,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===o)return;this.logger_(`seekable updated [${TM(this.seekable_)}]`);const l={seekableRanges:this.seekable_};this.trigger({type:"seekablerangeschanged",metadata:l}),this.tech_.trigger("seekablechanged")}updateDuration(t){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),this.mediaSource.readyState!=="open"){this.updateDuration_=this.updateDuration.bind(this,t),this.mediaSource.addEventListener("sourceopen",this.updateDuration_);return}if(t){const r=this.seekable();if(!r.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<r.end(r.length-1))&&this.sourceUpdater_.setDuration(r.end(r.length-1));return}const n=this.tech_.buffered();let s=pa.Playlist.duration(this.mainPlaylistLoader_.media());n.length>0&&(s=Math.max(s,n.end(n.length-1))),this.mediaSource.duration!==s&&this.sourceUpdater_.setDuration(s)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.keyStatusMap_.clear(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(t=>{const n=this.mediaTypes_[t].groups;for(const s in n)n[s].forEach(r=>{r.playlistLoader&&r.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const t=!!this.mediaTypes_.AUDIO.activePlaylistLoader,n=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),s=t?!!this.audioSegmentLoader_.getCurrentMediaInfo_():!0;return!(!n||!s)}getCodecsOrExclude_(){const t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},n=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();t.video=t.main;const s=df(this.main(),n),r={},i=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(r.video=s.video||t.main.videoCodec||jye),t.main.isMuxed&&(r.video+=`,${s.audio||t.main.audioCodec||_k}`),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||i)&&(r.audio=s.audio||t.main.audioCodec||t.audio.audioCodec||_k,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),!r.audio&&!r.video){this.excludePlaylist({playlistToExclude:n,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});return}const a=(u,c)=>u?um(c):sy(c),o={};let l;if(["video","audio"].forEach(function(u){if(r.hasOwnProperty(u)&&!a(t[u].isFmp4,r[u])){const c=t[u].isFmp4?"browser":"muxer";o[c]=o[c]||[],o[c].push(r[u]),u==="audio"&&(l=c)}}),i&&l&&n.attributes.AUDIO){const u=n.attributes.AUDIO;this.main().playlists.forEach(c=>{(c.attributes&&c.attributes.AUDIO)===u&&c!==n&&(c.excludeUntil=1/0)}),this.logger_(`excluding audio group ${u} as ${l} does not support codec(s): "${r.audio}"`)}if(Object.keys(o).length){const u=Object.keys(o).reduce((c,f)=>(c&&(c+=", "),c+=`${f} does not support codec(s): "${o[f].join(",")}"`,c),"")+".";this.excludePlaylist({playlistToExclude:n,error:{internal:!0,message:u},playlistExclusionDuration:1/0});return}if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const u=[];if(["video","audio"].forEach(c=>{const f=(Ri(this.sourceUpdater_.codecs[c]||"")[0]||{}).type,h=(Ri(r[c]||"")[0]||{}).type;f&&h&&f.toLowerCase()!==h.toLowerCase()&&u.push(`"${this.sourceUpdater_.codecs[c]}" -> "${r[c]}"`)}),u.length){this.excludePlaylist({playlistToExclude:n,error:{message:`Codec switching not supported: ${u.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0});return}}return r}tryToCreateSourceBuffers_(){if(this.mediaSource.readyState!=="open"||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_())return;const t=this.getCodecsOrExclude_();if(!t)return;this.sourceUpdater_.createSourceBuffers(t);const n=[t.video,t.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(n)}excludeUnsupportedVariants_(){const t=this.main().playlists,n=[];Object.keys(t).forEach(s=>{const r=t[s];if(n.indexOf(r.id)!==-1)return;n.push(r.id);const i=df(this.main,r),a=[];i.audio&&!sy(i.audio)&&!um(i.audio)&&a.push(`audio codec ${i.audio}`),i.video&&!sy(i.video)&&!um(i.video)&&a.push(`video codec ${i.video}`),i.text&&i.text==="stpp.ttml.im1t"&&a.push(`text codec ${i.text}`),a.length&&(r.excludeUntil=1/0,this.logger_(`excluding ${r.id} for unsupported: ${a.join(", ")}`))})}excludeIncompatibleVariants_(t){const n=[],s=this.main().playlists,r=pg(Ri(t)),i=xA(r),a=r.video&&Ri(r.video)[0]||null,o=r.audio&&Ri(r.audio)[0]||null;Object.keys(s).forEach(l=>{const u=s[l];if(n.indexOf(u.id)!==-1||u.excludeUntil===1/0)return;n.push(u.id);const c=[],f=df(this.mainPlaylistLoader_.main,u),h=xA(f);if(!(!f.audio&&!f.video)){if(h!==i&&c.push(`codec count "${h}" !== "${i}"`),!this.sourceUpdater_.canChangeType()){const m=f.video&&Ri(f.video)[0]||null,g=f.audio&&Ri(f.audio)[0]||null;m&&a&&m.type.toLowerCase()!==a.type.toLowerCase()&&c.push(`video codec "${m.type}" !== "${a.type}"`),g&&o&&g.type.toLowerCase()!==o.type.toLowerCase()&&c.push(`audio codec "${g.type}" !== "${o.type}"`)}c.length&&(u.excludeUntil=1/0,this.logger_(`excluding ${u.id}: ${c.join(" && ")}`))}})}updateAdCues_(t){let n=0;const s=this.seekable();s.length&&(n=s.start(0)),tSe(t,this.cueTagsTrack_,n)}goalBufferLength(){const t=this.tech_.currentTime(),n=hs.GOAL_BUFFER_LENGTH,s=hs.GOAL_BUFFER_LENGTH_RATE,r=Math.max(n,hs.MAX_GOAL_BUFFER_LENGTH);return Math.min(n+t*s,r)}bufferLowWaterLine(){const t=this.tech_.currentTime(),n=hs.BUFFER_LOW_WATER_LINE,s=hs.BUFFER_LOW_WATER_LINE_RATE,r=Math.max(n,hs.MAX_BUFFER_LOW_WATER_LINE),i=Math.max(n,hs.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(n+t*s,this.bufferBasedABR?i:r)}bufferHighWaterLine(){return hs.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(t){IA(this.inbandTextTracks_,"com.apple.streaming",this.tech_),$we({inbandTextTracks:this.inbandTextTracks_,dateRanges:t})}addMetadataToTextTrack(t,n,s){const r=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();IA(this.inbandTextTracks_,t,this.tech_),Rwe({inbandTextTracks:this.inbandTextTracks_,metadataArray:n,timestampOffset:r,videoDuration:s})}pathwayAttribute_(t){return t.attributes["PATHWAY-ID"]||t.attributes.serviceLocation}initContentSteeringController_(){const t=this.main();if(t.contentSteering){for(const n of t.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(n));if(this.contentSteeringController_.assignTagProperties(t.uri,t.contentSteering),this.contentSteeringController_.queryBeforeStart){this.contentSteeringController_.requestSteeringManifest(!0);return}this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}}resetContentSteeringController_(){this.contentSteeringController_.clearAvailablePathways(),this.contentSteeringController_.dispose(),this.initContentSteeringController_()}attachContentSteeringListeners_(){this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),["contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"].forEach(n=>{this.contentSteeringController_.on(n,s=>{this.trigger(qn({},s))})}),this.sourceType_==="dash"&&this.mainPlaylistLoader_.on("loadedplaylist",()=>{const n=this.main();(this.contentSteeringController_.didDASHTagChange(n.uri,n.contentSteering)||(()=>{const i=this.contentSteeringController_.getAvailablePathways(),a=[];for(const o of n.playlists){const l=o.attributes.serviceLocation;if(l&&(a.push(l),!i.has(l)))return!0}return!!(!a.length&&i.size)})())&&this.resetContentSteeringController_()})}excludeThenChangePathway_(){const t=this.contentSteeringController_.getPathway();if(!t)return;this.handlePathwayClones_();const s=this.main().playlists,r=new Set;let i=!1;Object.keys(s).forEach(a=>{const o=s[a],l=this.pathwayAttribute_(o),u=l&&t!==l;o.excludeUntil===1/0&&o.lastExcludeReason_==="content-steering"&&!u&&(delete o.excludeUntil,delete o.lastExcludeReason_,i=!0);const f=!o.excludeUntil&&o.excludeUntil!==1/0;!r.has(o.id)&&u&&f&&(r.add(o.id),o.excludeUntil=1/0,o.lastExcludeReason_="content-steering",this.logger_(`excluding ${o.id} for ${o.lastExcludeReason_}`))}),this.contentSteeringController_.manifestType_==="DASH"&&Object.keys(this.mediaTypes_).forEach(a=>{const o=this.mediaTypes_[a];if(o.activePlaylistLoader){const l=o.activePlaylistLoader.media_;l&&l.attributes.serviceLocation!==t&&(i=!0)}}),i&&this.changeSegmentPathway_()}handlePathwayClones_(){const n=this.main().playlists,s=this.contentSteeringController_.currentPathwayClones,r=this.contentSteeringController_.nextPathwayClones;if(s&&s.size||r&&r.size){for(const[a,o]of s.entries())r.get(a)||(this.mainPlaylistLoader_.updateOrDeleteClone(o),this.contentSteeringController_.excludePathway(a));for(const[a,o]of r.entries()){const l=s.get(a);if(!l){n.filter(c=>c.attributes["PATHWAY-ID"]===o["BASE-ID"]).forEach(c=>{this.mainPlaylistLoader_.addClonePathway(o,c)}),this.contentSteeringController_.addAvailablePathway(a);continue}this.equalPathwayClones_(l,o)||(this.mainPlaylistLoader_.updateOrDeleteClone(o,!0),this.contentSteeringController_.addAvailablePathway(a))}this.contentSteeringController_.currentPathwayClones=new Map(JSON.parse(JSON.stringify([...r])))}}equalPathwayClones_(t,n){if(t["BASE-ID"]!==n["BASE-ID"]||t.ID!==n.ID||t["URI-REPLACEMENT"].HOST!==n["URI-REPLACEMENT"].HOST)return!1;const s=t["URI-REPLACEMENT"].PARAMS,r=n["URI-REPLACEMENT"].PARAMS;for(const i in s)if(s[i]!==r[i])return!1;for(const i in r)if(s[i]!==r[i])return!1;return!0}changeSegmentPathway_(){const t=this.selectPlaylist();this.pauseLoading(),this.contentSteeringController_.manifestType_==="DASH"&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(t,"content-steering")}excludeNonUsablePlaylistsByKeyId_(){if(!this.mainPlaylistLoader_||!this.mainPlaylistLoader_.main)return;let t=0;const n="non-usable";this.mainPlaylistLoader_.main.playlists.forEach(s=>{const r=this.mainPlaylistLoader_.getKeyIdSet(s);!r||!r.size||r.forEach(i=>{const a="usable",o=this.keyStatusMap_.has(i)&&this.keyStatusMap_.get(i)===a,l=s.lastExcludeReason_===n&&s.excludeUntil===1/0;o?o&&l&&(delete s.excludeUntil,delete s.lastExcludeReason_,this.logger_(`enabling playlist ${s.id} because key ID ${i} is ${a}`)):(s.excludeUntil!==1/0&&s.lastExcludeReason_!==n&&(s.excludeUntil=1/0,s.lastExcludeReason_=n,this.logger_(`excluding playlist ${s.id} because the key ID ${i} doesn't exist in the keyStatusMap or is not ${a}`)),t++)})}),t>=this.mainPlaylistLoader_.main.playlists.length&&this.mainPlaylistLoader_.main.playlists.forEach(s=>{const r=s&&s.attributes&&s.attributes.RESOLUTION&&s.attributes.RESOLUTION.height<720,i=s.excludeUntil===1/0&&s.lastExcludeReason_===n;r&&i&&(delete s.excludeUntil,He.log.warn(`enabling non-HD playlist ${s.id} because all playlists were excluded due to ${n} key IDs`))})}addKeyStatus_(t,n){const i=(typeof t=="string"?t:Qwe(t)).slice(0,32).toLowerCase();this.logger_(`KeyStatus '${n}' with key ID ${i} added to the keyStatusMap`),this.keyStatusMap_.set(i,n)}updatePlaylistByKeyStatus(t,n){this.addKeyStatus_(t,n),this.waitingForFastQualityPlaylistReceived_||this.excludeNonUsableThenChangePlaylist_(),this.mainPlaylistLoader_.off("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this)),this.mainPlaylistLoader_.on("loadedplaylist",this.excludeNonUsableThenChangePlaylist_.bind(this))}excludeNonUsableThenChangePlaylist_(){this.excludeNonUsablePlaylistsByKeyId_(),this.fastQualityChange_()}}const CSe=(e,t,n)=>s=>{const r=e.main.playlists[t],i=uS(r),a=Uv(r);if(typeof s>"u")return a;s?delete r.disabled:r.disabled=!0;const o={renditionInfo:{id:t,bandwidth:r.attributes.BANDWIDTH,resolution:r.attributes.RESOLUTION,codecs:r.attributes.CODECS},cause:"fast-quality"};return s!==a&&!i&&(n(r),s?e.trigger({type:"renditionenabled",metadata:o}):e.trigger({type:"renditiondisabled",metadata:o})),s};class ESe{constructor(t,n,s){const{playlistController_:r}=t,i=r.fastQualityChange_.bind(r);if(n.attributes){const a=n.attributes.RESOLUTION;this.width=a&&a.width,this.height=a&&a.height,this.bandwidth=n.attributes.BANDWIDTH,this.frameRate=n.attributes["FRAME-RATE"]}this.codecs=df(r.main(),n),this.playlist=n,this.id=s,this.enabled=CSe(t.playlists,n.id,i)}}const xSe=function(e){e.representations=()=>{const t=e.playlistController_.main(),n=Mh(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(s=>!uS(s)).map((s,r)=>new ESe(e,s,s.id)):[]}},UA=["seeking","seeked","pause","playing","error"];class kSe extends He.EventTarget{constructor(t){super(),this.playlistController_=t.playlistController,this.tech_=t.tech,this.seekable=t.seekable,this.allowSeeksWithinUnsafeLiveWindow=t.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=t.liveRangeSafeTimeDelta,this.media=t.media,this.playedRanges_=[],this.consecutiveUpdates=0,this.lastRecordedTime=null,this.checkCurrentTimeTimeout_=null,this.logger_=ni("PlaybackWatcher"),this.logger_("initialize");const n=()=>this.monitorCurrentTime_(),s=()=>this.monitorCurrentTime_(),r=()=>this.techWaiting_(),i=()=>this.resetTimeUpdate_(),a=this.playlistController_,o=["main","subtitle","audio"],l={};o.forEach(c=>{l[c]={reset:()=>this.resetSegmentDownloads_(c),updateend:()=>this.checkSegmentDownloads_(c)},a[`${c}SegmentLoader_`].on("appendsdone",l[c].updateend),a[`${c}SegmentLoader_`].on("playlistupdate",l[c].reset),this.tech_.on(["seeked","seeking"],l[c].reset)});const u=c=>{["main","audio"].forEach(f=>{a[`${f}SegmentLoader_`][c]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=()=>u("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",r),this.tech_.on(UA,i),this.tech_.on("canplay",s),this.tech_.one("play",n),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",r),this.tech_.off(UA,i),this.tech_.off("canplay",s),this.tech_.off("play",n),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),o.forEach(c=>{a[`${c}SegmentLoader_`].off("appendsdone",l[c].updateend),a[`${c}SegmentLoader_`].off("playlistupdate",l[c].reset),this.tech_.off(["seeked","seeking"],l[c].reset)}),this.checkCurrentTimeTimeout_&&me.clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&me.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=me.setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(t){const n=this.playlistController_[`${t}SegmentLoader_`];this[`${t}StalledDownloads_`]>0&&this.logger_(`resetting possible stalled download count for ${t} loader`),this[`${t}StalledDownloads_`]=0,this[`${t}Buffered_`]=n.buffered_()}checkSegmentDownloads_(t){const n=this.playlistController_,s=n[`${t}SegmentLoader_`],r=s.buffered_(),i=g2e(this[`${t}Buffered_`],r);if(this[`${t}Buffered_`]=r,i){const a={bufferedRanges:r};n.trigger({type:"bufferedrangeschanged",metadata:a}),this.resetSegmentDownloads_(t);return}this[`${t}StalledDownloads_`]++,this.logger_(`found #${this[`${t}StalledDownloads_`]} ${t} appends that did not increase buffer (possible stalled download)`,{playlistId:s.playlist_&&s.playlist_.id,buffered:vl(r)}),!(this[`${t}StalledDownloads_`]<10)&&(this.logger_(`${t} loader stalled download exclusion`),this.resetSegmentDownloads_(t),this.tech_.trigger({type:"usage",name:`vhs-${t}-download-exclusion`}),t!=="subtitle"&&n.excludePlaylist({error:{message:`Excessive ${t} segment downloading detected.`},playlistExclusionDuration:1/0}))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const t=this.tech_.currentTime(),n=this.tech_.buffered();if(this.lastRecordedTime===t&&(!n.length||t+Ui>=n.end(n.length-1)))return this.techWaiting_();if(this.consecutiveUpdates>=5&&t===this.lastRecordedTime)this.consecutiveUpdates++,this.waiting_();else if(t===this.lastRecordedTime)this.consecutiveUpdates++;else{this.playedRanges_.push(Cs([this.lastRecordedTime,t]));const s={playedRanges:this.playedRanges_};this.playlistController_.trigger({type:"playedrangeschanged",metadata:s}),this.consecutiveUpdates=0,this.lastRecordedTime=t}}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const n=this.seekable(),s=this.tech_.currentTime(),r=this.afterSeekableWindow_(n,s,this.media(),this.allowSeeksWithinUnsafeLiveWindow);let i;if(r&&(i=n.end(n.length-1)),this.beforeSeekableWindow_(n,s)){const g=n.start(0);i=g+(g===n.end(0)?0:Ui)}if(typeof i<"u")return this.logger_(`Trying to seek outside of seekable at time ${s} with seekable range ${TM(n)}. Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0;const a=this.playlistController_.sourceUpdater_,o=this.tech_.buffered(),l=a.audioBuffer?a.audioBuffered():null,u=a.videoBuffer?a.videoBuffered():null,c=this.media(),f=c.partTargetDuration?c.partTargetDuration:(c.targetDuration-Vi)*2,h=[l,u];for(let g=0;g<h.length;g++){if(!h[g])continue;if(oS(h[g],s)<f)return!1}const m=Np(o,s);return m.length===0?!1:(i=m.start(0)+Ui,this.logger_(`Buffered region starts (${m.start(0)}) just beyond seek point (${s}). Seeking to ${i}.`),this.tech_.setCurrentTime(i),!0)}waiting_(){if(this.techWaiting_())return;const t=this.tech_.currentTime(),n=this.tech_.buffered(),s=xu(n,t);if(s.length&&t+3<=s.end(0)){this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.logger_(`Stopped at ${t} while inside a buffered region [${s.start(0)} -> ${s.end(0)}]. Attempting to resume playback by seeking to the current time.`),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"});return}}techWaiting_(){const t=this.seekable(),n=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(t,n)){const o=t.end(t.length-1);return this.logger_(`Fell out of live window at time ${n}. Seeking to live point (seekable end) ${o}`),this.resetTimeUpdate_(),this.tech_.setCurrentTime(o),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const s=this.tech_.vhs.playlistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:s.audioBuffered(),videoBuffered:s.videoBuffered(),currentTime:n}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const a=Np(r,n);return a.length>0?(this.logger_(`Stopped at ${n} and seeking to ${a.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(n),!0):!1}afterSeekableWindow_(t,n,s,r=!1){if(!t.length)return!1;let i=t.end(t.length-1)+Ui;const a=!s.endList,o=typeof s.partTargetDuration=="number";return a&&(o||r)&&(i=t.end(t.length-1)+s.targetDuration*3),n>i}beforeSeekableWindow_(t,n){return!!(t.length&&t.start(0)>0&&n<t.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:t,audioBuffered:n,currentTime:s}){if(!t)return;let r;if(t.length&&n.length){const i=xu(t,s-3),a=xu(t,s),o=xu(n,s);o.length&&!a.length&&i.length&&(r={start:i.end(0),end:o.end(0)})}else Np(t,s).length||(r=this.gapFromVideoUnderflow_(t,s));return r?(this.logger_(`Encountered a gap in video from ${r.start} to ${r.end}. Seeking to current time ${s}`),!0):!1}skipTheGap_(t){const n=this.tech_.buffered(),s=this.tech_.currentTime(),r=Np(n,s);if(this.resetTimeUpdate_(),r.length===0||s!==t)return;this.logger_("skipTheGap_:","currentTime:",s,"scheduled currentTime:",t,"nextRange start:",r.start(0)),this.tech_.setCurrentTime(r.start(0)+Vi);const i={gapInfo:{from:s,to:r.start(0)}};this.playlistController_.trigger({type:"gapjumped",metadata:i}),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"})}gapFromVideoUnderflow_(t,n){const s=h2e(t);for(let r=0;r<s.length;r++){const i=s.start(r),a=s.end(r);if(n-i<4&&n-i>2)return{start:i,end:a}}return null}}const ASe={errorInterval:30,getSource(e){const n=this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource();return e(n)}},f$=function(e,t){let n=0,s=0;const r=bn(ASe,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const i=function(){s&&e.currentTime(s)},a=function(c){c!=null&&(s=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",i),e.src(c),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},o=function(){if(Date.now()-n<r.errorInterval*1e3){e.trigger({type:"usage",name:"vhs-error-reload-canceled"});return}if(!r.getSource||typeof r.getSource!="function"){He.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!");return}return n=Date.now(),r.getSource.call(e,a)},l=function(){e.off("loadedmetadata",i),e.off("error",o),e.off("dispose",l)},u=function(c){l(),f$(e,c)};e.on("error",o),e.on("dispose",l),e.reloadSourceOnError=u},ISe=function(e){f$(this,e)};var h$="3.13.1",DSe="7.0.3",OSe="1.3.0",PSe="7.1.0",RSe="4.0.1";const Hn={PlaylistLoader:ku,Playlist:ir,utils:V2e,STANDARD_PLAYLIST_SELECTOR:AA,INITIAL_PLAYLIST_SELECTOR:Awe,lastBandwidthSelector:AA,movingAverageBandwidthSelector:xwe,comparePlaylistBandwidth:fS,comparePlaylistResolution:Ewe,xhr:VM()};Object.keys(hs).forEach(e=>{Object.defineProperty(Hn,e,{get(){return He.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),hs[e]},set(t){if(He.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),typeof t!="number"||t<0){He.log.warn(`value of Vhs.${e} must be greater than or equal to 0`);return}hs[e]=t}})});const p$="videojs-vhs",m$=function(e,t){const n=t.media();let s=-1;for(let r=0;r<e.length;r++)if(e[r].id===n.id){s=r;break}e.selectedIndex_=s,e.trigger({selectedIndex:s,type:"change"})},NSe=function(e,t){t.representations().forEach(n=>{e.addQualityLevel(n)}),m$(e,t.playlists)};Hn.canPlaySource=function(){return He.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const MSe=(e,t,n)=>{if(!e)return e;let s={};t&&t.attributes&&t.attributes.CODECS&&(s=pg(Ri(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(s.audio=n.attributes.CODECS);const r=Wf(s.video),i=Wf(s.audio),a={};for(const o in e)a[o]={},i&&(a[o].audioContentType=i),r&&(a[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(a[o].pssh=t.contentProtection[o].pssh),typeof e[o]=="string"&&(a[o].url=e[o]);return bn(e,a)},$Se=(e,t)=>e.reduce((n,s)=>{if(!s.contentProtection)return n;const r=t.reduce((i,a)=>{const o=s.contentProtection[a];return o&&o.pssh&&(i[a]={pssh:o.pssh}),i},{});return Object.keys(r).length&&n.push(r),n},[]),LSe=({player:e,sourceKeySystems:t,audioMedia:n,mainPlaylists:s})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=n?s.concat([n]):s,i=$Se(r,Object.keys(t)),a=[],o=[];return i.forEach(l=>{o.push(new Promise((u,c)=>{e.tech_.one("keysessioncreated",u)})),a.push(new Promise((u,c)=>{e.eme.initializeMediaKeys({keySystems:l},f=>{if(f){c(f);return}u()})}))}),Promise.race([Promise.all(a),Promise.race(o)])},BSe=({player:e,sourceKeySystems:t,media:n,audioMedia:s})=>{const r=MSe(t,n,s);return r?(e.currentSource().keySystems=r,r&&!e.eme?(He.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1):!0):!1},g$=()=>{if(!me.localStorage)return null;const e=me.localStorage.getItem(p$);if(!e)return null;try{return JSON.parse(e)}catch{return null}},FSe=e=>{if(!me.localStorage)return!1;let t=g$();t=t?bn(t,e):e;try{me.localStorage.setItem(p$,JSON.stringify(t))}catch{return!1}return t},VSe=e=>e.toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")===0?JSON.parse(e.substring(e.indexOf(",")+1)):e,v$=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},y$=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},b$=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},_$=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};Hn.supportsNativeHls=function(){if(!dt||!dt.createElement)return!1;const e=dt.createElement("video");return He.getTech("Html5").isSupported()?["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(n){return/maybe|probably/i.test(e.canPlayType(n))}):!1}();Hn.supportsNativeDash=function(){return!dt||!dt.createElement||!He.getTech("Html5").isSupported()?!1:/maybe|probably/i.test(dt.createElement("video").canPlayType("application/dash+xml"))}();Hn.supportsTypeNatively=e=>e==="hls"?Hn.supportsNativeHls:e==="dash"?Hn.supportsNativeDash:!1;Hn.isSupported=function(){return He.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};Hn.xhr.onRequest=function(e){v$(Hn.xhr,e)};Hn.xhr.onResponse=function(e){y$(Hn.xhr,e)};Hn.xhr.offRequest=function(e){b$(Hn.xhr,e)};Hn.xhr.offResponse=function(e){_$(Hn.xhr,e)};const USe=He.getComponent("Component");class w$ extends USe{constructor(t,n,s){if(super(n,s.vhs),typeof s.initialBandwidth=="number"&&(this.options_.bandwidth=s.initialBandwidth),this.logger_=ni("VhsHandler"),n.options_&&n.options_.playerId){const r=He.getPlayer(n.options_.playerId);this.player_=r}if(this.tech_=n,this.source_=t,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(dt,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],r=>{const i=dt.fullscreenElement||dt.webkitFullscreenElement||dt.mozFullScreenElement||dt.msFullscreenElement;i&&i.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){if(this.ignoreNextSeekingEvent_){this.ignoreNextSeekingEvent_=!1;return}this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(t={}){if(this.options_=bn(this.options_,t),this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions!==!1,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=typeof this.source_.useBandwidthFromLocalStorage<"u"?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=this.options_.llhls!==!1,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,typeof this.options_.playlistExclusionDuration!="number"&&(this.options_.playlistExclusionDuration=60),typeof this.options_.bandwidth!="number"&&this.options_.useBandwidthFromLocalStorage){const s=g$();s&&s.bandwidth&&(this.options_.bandwidth=s.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),s&&s.throughput&&(this.options_.throughput=s.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}typeof this.options_.bandwidth!="number"&&(this.options_.bandwidth=hs.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===hs.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","customPixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","exactManifestTimings","leastPixelDiffSelector"].forEach(s=>{typeof this.source_[s]<"u"&&(this.options_[s]=this.source_[s])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio;const n=this.options_.customPixelRatio;typeof n=="number"&&n>=0&&(this.customPixelRatio=n)}setOptions(t={}){this.setOptions_(t)}src(t,n){if(!t)return;this.setOptions_(),this.options_.src=VSe(this.source_.src),this.options_.tech=this.tech_,this.options_.externVhs=Hn,this.options_.sourceType=hR(n),this.options_.seekTo=i=>{this.tech_.setCurrentTime(i)},this.options_.player_=this.player_,this.playlistController_=new TSe(this.options_);const s=bn({liveRangeSafeTimeDelta:Ui},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new kSe(s),this.attachStreamingEventListeners_(),this.playlistController_.on("error",()=>{const i=He.players[this.tech_.options_.playerId];let a=this.playlistController_.error;typeof a=="object"&&!a.code?a.code=3:typeof a=="string"&&(a={message:a,code:3}),i.error(a)});const r=this.options_.bufferBasedABR?Hn.movingAverageBandwidthSelector(.55):Hn.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):r.bind(this),this.playlistController_.selectInitialPlaylist=Hn.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(i){this.playlistController_.selectPlaylist=i.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(i){this.playlistController_.mainSegmentLoader_.throughput.rate=i,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let i=this.playlistController_.mainSegmentLoader_.bandwidth;const a=me.navigator.connection||me.navigator.mozConnection||me.navigator.webkitConnection,o=1e7;if(this.options_.useNetworkInformationApi&&a){const l=a.downlink*1e3*1e3;l>=o&&i>=o?i=Math.max(i,l):i=l}return i},set(i){this.playlistController_.mainSegmentLoader_.bandwidth=i,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const i=1/(this.bandwidth||1);let a;return this.throughput>0?a=1/this.throughput:a=0,Math.floor(1/(i+a))},set(){He.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>vl(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>vl(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&FSe({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{xSe(this)}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=me.URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),LSe({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(n=>{this.logger_("error while creating EME key session",n),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const t=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=BSe({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});if(this.player_.tech_.on("keystatuschange",s=>{this.playlistController_.updatePlaylistByKeyStatus(s.keyId,s.status)}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),!n){this.playlistController_.sourceUpdater_.initializedEme();return}this.createKeySessions_()}setupQualityLevels_(){const t=He.players[this.tech_.options_.playerId];!t||!t.qualityLevels||this.qualityLevels_||(this.qualityLevels_=t.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{NSe(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{m$(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":h$,"mux.js":DSe,"mpd-parser":OSe,"m3u8-parser":PSe,"aes-decrypter":RSe}}version(){return this.constructor.version()}canChangeType(){return l$.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(t){this.playlistController_.setCurrentTime(t)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&me.URL.revokeObjectURL&&(me.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(t,n){return K2e({playlist:this.playlistController_.media(),time:t,callback:n})}seekToProgramTime(t,n,s=!0,r=2){return qM({programTime:t,playlist:this.playlistController_.media(),retryCount:r,pauseAfterSeek:s,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:n})}setupXhrHooks_(){this.xhr.onRequest=t=>{v$(this.xhr,t)},this.xhr.onResponse=t=>{y$(this.xhr,t)},this.xhr.offRequest=t=>{b$(this.xhr,t)},this.xhr.offResponse=t=>{_$(this.xhr,t)},this.player_.trigger("xhr-hooks-ready")}attachStreamingEventListeners_(){const t=["seekablerangeschanged","bufferedrangeschanged","contentsteeringloadstart","contentsteeringloadcomplete","contentsteeringparsed"],n=["gapjumped","playedrangeschanged"];t.forEach(s=>{this.playlistController_.on(s,r=>{this.player_.trigger(qn({},r))})}),n.forEach(s=>{this.playbackWatcher_.on(s,r=>{this.player_.trigger(qn({},r))})})}}const vg={name:"videojs-http-streaming",VERSION:h$,canHandleSource(e,t={}){const n=bn(He.options,t);return vg.canPlayType(e.type,n)},handleSource(e,t,n={}){const s=bn(He.options,n);return t.vhs=new w$(e,t,s),t.vhs.xhr=VM(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const n=hR(e);if(!n)return"";const s=vg.getOverrideNative(t);return!Hn.supportsTypeNatively(n)||s?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,n=!(He.browser.IS_ANY_SAFARI||He.browser.IS_IOS),{overrideNative:s=n}=t;return s}},HSe=()=>um("avc1.4d400d,mp4a.40.2");HSe()&&He.getTech("Html5").registerSourceHandler(vg,0);He.VhsHandler=w$;He.VhsSourceHandler=vg;He.Vhs=Hn;He.use||He.registerComponent("Vhs",Hn);He.options.vhs=He.options.vhs||{};(!He.getPlugin||!He.getPlugin("reloadSourceOnError"))&&He.registerPlugin("reloadSourceOnError",ISe);function wy(e,t){var n={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function"){var r=0;for(s=Object.getOwnPropertySymbols(e);r<s.length;r++)t.indexOf(s[r])<0&&Object.prototype.propertyIsEnumerable.call(e,s[r])&&(n[s[r]]=e[s[r]])}return n}var zSe={src:{type:String,onChange:function(e,t){return e.src(t)}},width:{type:Number,onChange:function(e,t){return e.width(t)},onEvent:function(e,t){e.on(["playerresize","resize"],function(){return t(e.width())})}},height:{type:Number,onChange:function(e,t){return e.height(t)},onEvent:function(e,t){e.on(["playerresize","resize"],function(){return t(e.height())})}},preload:{type:String,onChange:function(e,t){return e.preload(t)}},loop:{type:Boolean,onChange:function(e,t){return e.loop(t)}},muted:{type:Boolean,onChange:function(e,t){return e.muted(t)},onEvent:function(e,t){return e.on("volumechange",function(){return t(e.muted())})}},poster:{type:String,onChange:function(e,t){return e.poster(t)},onEvent:function(e,t){return e.on("posterchange",function(){return t(e.poster())})}},controls:{type:Boolean,onChange:function(e,t){return e.controls(t)},onEvent:function(e,t){e.on("controlsenabled",function(){return t(!0)}),e.on("controlsdisabled",function(){return t(!1)})}},autoplay:{type:[Boolean,String],onChange:function(e,t){return e.autoplay(t)}},crossorigin:{type:String,onChange:function(e,t){return e.crossOrigin(t)}},crossOrigin:{type:String,onChange:function(e,t){return e.crossOrigin(t)}},playsinline:{type:Boolean,onChange:function(e,t){return e.playsinline(t)}},playsInline:{type:Boolean,onChange:function(e,t){return e.playsinline(t)}}},jSe={id:{type:String},sources:{type:Array,onChange:function(e,t){return e.src(t)}},tracks:{type:Array,onChange:function(e,t){for(var n=e.remoteTextTracks(),s=(n==null?void 0:n.length)||0;s--;)e.removeRemoteTextTrack(n[s]);e.ready(function(){t.forEach(function(r){return e.addRemoteTextTrack(r,!1)})})}},textTrackSettings:{type:Object,onChange:function(e,t){return e.textTrackSettings.options(t)}},language:{type:String,onChange:function(e,t){return e.language(t)},onEvent:function(e,t){return e.on("languagechange",function(){return t(e.language())})}},languages:{type:Object},playbackRates:{type:Array,onChange:function(e,t){return e.playbackRates(t??[])},onEvent:function(e,t){e.on("playbackrateschange",function(){return t(e.playbackRates())})}},audioOnlyMode:{type:Boolean,onChange:function(e,t){return e.audioOnlyMode(t)}},audioPosterMode:{type:Boolean,onChange:function(e,t){return e.audioPosterMode(t)}},responsive:{type:Boolean,onChange:function(e,t){return e.responsive(t)}},breakpoints:{type:Object,onChange:function(e,t){return e.breakpoints(t)}},fluid:{type:Boolean,onChange:function(e,t){return e.fluid(t)}},fill:{type:Boolean,onChange:function(e,t){return e.fill(t)}},aspectRatio:{type:String,onChange:function(e,t){return e.aspectRatio(t)}},fullscreen:{type:Object},liveui:{type:Boolean},liveTracker:{type:Object},disablePictureInPicture:{type:Boolean,onChange:function(e,t){return e.disablePictureInPicture(t)}},notSupportedMessage:{type:String},normalizeAutoplay:{type:Boolean},noUITitleAttributes:{type:Boolean},preferFullWindow:{type:Boolean},suppressNotSupportedError:{type:Boolean},techCanOverridePoster:{type:Boolean},reportTouchActivity:{type:Boolean},techOrder:{type:Array},inactivityTimeout:{type:Number},userActions:{type:Object},plugins:{type:Object},restoreEl:{type:[Boolean,Object]},"vtt.js":{type:String}},qSe={children:{type:[Array,Object]},controlBar:{type:Object,onChange:function(e,t){return e.controlBar.options(t)}}},WSe={html5:{type:Object}},KSe={volume:{type:Number,onChange:function(e,t){return e.volume(t)},onEvent:function(e,t){return e.on("volumechange",function(){return t(e.volume())})}},playbackRate:{type:Number,onChange:function(e,t){e.playbackRate(t),e.defaultPlaybackRate(t)},onEvent:function(e,t){e.on("ratechange",function(){t(e.playbackRate())})}},options:{type:Object}},eh=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},zSe),jSe),qSe),WSe),KSe),hS=Object.keys(eh),S$=Object.assign(Object.assign(Object.assign(Object.assign({},{loadstart:"onLoadStart",suspend:"onSuspend",abort:"onAbort",error:"onError",emptied:"onEmptied",stalled:"onStalled",loadedmetadata:"onLoadedMetadata",loadeddata:"onLoadedData",canplay:"onCanPlay",canplaythrough:"onCanPlayThrough",playing:"onPlaying",waiting:"onWaiting",seeking:"onSeeking",seeked:"onSeeked",ended:"onEnded",durationchange:"onDurationChange",timeupdate:"onTimeUpdate",progress:"onProgress",play:"onPlay",pause:"onpause",ratechange:"onRateChange",resize:"onResize",volumechange:"onVolumeChange"}),{posterchange:"onPosterChange",languagechange:"onLanguageChange",fullscreenchange:"onFullscreenChange",playbackrateschange:"onPlaybackRatesChange",controlsdisabled:"onControlsDisabled",controlsenabled:"onControlsEnabled",enterFullWindow:"onEnterFullWindow",exitFullWindow:"onExitFullWindow",enterpictureinpicture:"onEnterPictureInPicture",leavepictureinpicture:"onLeavePictureInPicture",sourceset:"onSourceSet",texttrackchange:"onTextTrackChange",textdata:"onTextData",useractive:"onUserActive",userinactive:"onUserInactive",usingcustomcontrols:"onUsingCustomControls",usingnativecontrols:"onUsingNativeControls",dispose:"onDispose"}),{beforepluginsetup:"onBeforePluginSetup",pluginsetup:"onPluginSetup"}),{componentresize:"onComponentResize",playerresize:"onPlayerResize",ready:"onReady",tap:"onTap"}),T$=Object.keys(S$);Object.values(S$);var Sy=function(e){var t,n=e==null?void 0:e.trim().replace(/\s+/g," ");return n&&(t=n.split(" "))!==null&&t!==void 0?t:[]},Ty={src:{getter:function(e){return e.src()}},currentSrc:{getter:function(e){return e.currentSrc()}},currentSource:{getter:function(e){return e.currentSource()}},width:{events:["resize","playerresize"],getter:function(e){return e.width()}},height:{events:["resize","playerresize"],getter:function(e){return e.height()}},currentWidth:{events:["resize","playerresize"],getter:function(e){return e.currentWidth()}},currentHeight:{events:["resize","playerresize"],getter:function(e){return e.currentHeight()}},videoWidth:{events:["resize","playerresize"],getter:function(e){return e.videoWidth()}},videoHeight:{events:["resize","playerresize"],getter:function(e){return e.videoHeight()}},controls:{events:["controlsdisabled","controlsenabled"],getter:function(e){return e.controls()}},volume:{events:["volumechange"],getter:function(e){return e.volume()}},muted:{events:["volumechange"],getter:function(e){return e.muted()}},poster:{events:["posterchange"],getter:function(e){return e.poster()}},seeking:{events:["seeking"],getter:function(e){return e.seeking()}},paused:{events:["pause","play","playing"],getter:function(e){return e.paused()}},ended:{events:["ended","play"],getter:function(e){return e.ended()}},currentTime:{events:["timeupdate"],getter:function(e){return e.currentTime()}},duration:{events:["durationchange"],getter:function(e){return e.duration()}},playbackRate:{events:["ratechange"],getter:function(e){return e.playbackRate()}},playbackRates:{events:["playbackrateschange"],getter:function(e){return e.playbackRates()}},isFullscreen:{events:["fullscreenchange"],getter:function(e){return e.isFullscreen()}},isInPictureInPicture:{events:["enterpictureinpicture","leavepictureinpicture"],getter:function(e){return e.isInPictureInPicture()}},isLive:{getter:function(e){var t;return(t=e.liveTracker)===null||t===void 0?void 0:t.isLive()}},language:{events:["languagechange"],getter:function(e){return e.language()}},userActive:{events:["useractive","userinactive"],getter:function(e){return e.userActive()}},readyState:{events:["loadeddata"],getter:function(e){return e.readyState()}},networkState:{events:["loadeddata","error"],getter:function(e){return e.networkState()}},error:{events:["loadeddata","error"],getter:function(e){return e.error()}},buffered:{events:["progress"],getter:function(e){return e.buffered()}},bufferedPercent:{events:["progress"],getter:function(e){return e.bufferedPercent()}},played:{events:["timeupdate"],getter:function(e){return e.played()}},seekable:{events:["progress","seeked"],getter:function(e){return e.seekable()}},audioTracks:{getter:function(e){var t;return(t=e.audioTracks)===null||t===void 0?void 0:t.call(e)}},videoTracks:{getter:function(e){var t;return(t=e.videoTracks)===null||t===void 0?void 0:t.call(e)}},textTracks:{getter:function(e){var t;return(t=e.textTracks)===null||t===void 0?void 0:t.call(e)}}},C$=hS.filter(function(e){return!!eh[e].onEvent}),E$=function(e){return"update:"+e},GSe=T$.concat(C$.map(E$)),YSe=hS.reduce(function(e,t){var n,s=eh[t],r=Array.isArray(s.type)?s.type:[s.type],i=Object.assign({},s);return r.includes(Boolean)&&(i.default=void 0),Object.assign(Object.assign({},e),((n={})[t]=i,n))},{}),XSe=J({name:"VueVideoPlayer",props:Object.assign(Object.assign({},YSe),{class:[String,Object,Array]}),emits:GSe.concat(["mounted"],["unmounted"]),setup:function(e,t){var n=on(e),s=n.class,r=wy(n,["class"]),i=hn(!1),a=hn(null),o=hn(null),l=k(function(){return o.value?o.value.player:null}),u=q(null),c=k(function(){return u.value?Ul(u.value):null});return gt(function(){var f,h=function(m){var g,p=m.props,v=m.element,y=m.className,_=m.onEvent,b=p.options;b===void 0&&(b={});var T=wy(p,["options"]),S={};Object.keys(T).forEach(function(W){var K=T[W];K!==void 0&&(S[W]=K)});var C=Object.assign(Object.assign({},S),b),D=C.volume,N=C.playbackRate,$=wy(C,["volume","playbackRate"]),L=Object.assign(Object.assign({},$),{playsinline:(g=$.playsinline)!==null&&g!==void 0?g:$.playsInline}),z=He(v,L,function(){var W=this;T$.forEach(function(K){W.on(K,function(X){_(K,X)})}),$.src&&!$.sources&&this.src($.src),D&&Number.isFinite(D)&&this.volume(D),N&&Number.isFinite(N)&&(this.defaultPlaybackRate(N),setTimeout(function(){W.playbackRate(N)},0))});y&&Sy(y).map(function(W){return z.addClass(W)});var U=function(W){var K;(K=z.options)===null||K===void 0||K.call(z,W??{})};return{player:z,dispose:function(){return z.dispose()},updateClassNames:function(W,K){Sy(W).map(function(X){return z.removeClass(X)}),Sy(K).map(function(X){return z.addClass(X)})},updateOptions:U,updatePropOption:function(W,K){var X,B,Q;U(((X={})[W]=K,X)),(Q=(B=eh[W])===null||B===void 0?void 0:B.onChange)===null||Q===void 0||Q.call(B,z,K)}}}({element:a.value,props:r,onEvent:t.emit});f={player:h.player,onEvent:t.emit},C$.forEach(function(m){var g,p;(p=(g=eh[m])===null||g===void 0?void 0:g.onEvent)===null||p===void 0||p.call(g,f.player,function(v){f.onEvent(E$(m),v)})}),xe(function(){return e.class},function(m,g){var p=M(g),v=M(m);h.updateClassNames(p,v)},{immediate:!0}),xe(function(){return e.options},function(m){return h.updateOptions(m??{})},{deep:!0}),hS.filter(function(m){return m!=="options"}).forEach(function(m){xe(function(){return e[m]},function(g){return h.updatePropOption(m,g)},{deep:!0})}),function(m,g){var p=Object.keys(Ty),v=p.reduce(function(_,b){var T;return Object.assign(Object.assign({},_),((T={})[b]=Ty[b].getter(m),T))},{playing:!1,waiting:!1}),y=function(_,b){v[_]=b,g.onUpdate(_,b,Object.assign({},v))};m.on(["pause","ended"],function(){y("playing",!1)}),m.on(["play","playing"],function(){y("playing",!0)}),m.on("waiting",function(){y("waiting",!0);var _=m.currentTime(),b=function(){_!==m.currentTime()&&(y("waiting",!1),m.off("timeupdate",b))};m.on("timeupdate",b)}),p.forEach(function(_){var b,T=Ty[_];m.on(["loadstart","loadedmetadata"].concat((b=T.events)!==null&&b!==void 0?b:[]),function(){y(_,T.getter(m))})}),g.onInit(Object.assign({},v))}(h.player,{onInit:function(m){u.value=m},onUpdate:function(m,g){u.value&&(u.value[m]=g)}}),o.value=h,i.value=!0,t.emit("mounted",{video:a.value,player:l.value,state:c.value})}),un(function(){o.value&&(o.value.dispose(),o.value=null,u.value=null,t.emit("unmounted"))}),function(){var f,h;return ot("div",{"data-vjs-player":"",class:M(s)},[ot("video",{class:["video-js","v-video-player"],ref:a}),i.value&&((h=(f=t.slots).default)===null||h===void 0?void 0:h.call(f,{video:a.value,player:l.value,state:c.value}))])}}}),x$=XSe;const hm={dateFormat(e,t="YYYY-mm-dd HH:MM:SS"){let n=new Date(e);const s={"Y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"H+":n.getHours().toString(),"M+":n.getMinutes().toString(),"S+":n.getSeconds().toString()};for(let r in s){let i=new RegExp("("+r+")").exec(t);i&&(t=t.replace(i[1],i[1].length==1?s[r]:s[r].padStart(i[1].length,"0")))}return t},secondToTime(e){const t=Math.floor(e/3600),n=Math.floor(e%3600/60),s=Math.floor(e%60);let r="";return r=t<10?`0${t}`:`${t}`,r+=n<10?`:0${n}`:`:${n}`,r+=s<10?`:0${s}`:`:${s}`,r}},$h=e=>(Ms("data-v-cb8884b4"),e=e(),$s(),e),QSe={class:"player_area"},JSe={class:"player_p"},ZSe={class:"current_play_info"},eTe={class:"play_info_left"},tTe={class:"current_play_title"},nTe=["href"],sTe={class:"tags"},rTe=["href"],iTe={class:"hidden-sm-and-down"},aTe={class:"hidden-sm-and-down"},oTe={class:"play_info_right"},lTe={class:"play-module"},uTe={class:"play-module-item"},cTe={class:"module-heading"},dTe=$h(()=>O("p",{class:"play-module-title"},"播放列表",-1)),fTe={class:"play-tab-group"},hTe=["onClick"],pTe={class:"play-list"},mTe={class:"play-list-item"},gTe=["onClick"],vTe={key:0,class:"loading-wave"},yTe=$h(()=>O("div",{class:"loading-bar"},null,-1)),bTe=$h(()=>O("div",{class:"loading-bar"},null,-1)),_Te=$h(()=>O("div",{class:"loading-bar"},null,-1)),wTe=$h(()=>O("div",{class:"loading-bar"},null,-1)),STe=[yTe,bTe,_Te,wTe],TTe={key:1,class:"loading-wave"},CTe={class:"correlation"},ETe=J({__name:"Play",setup(e){const t=p=>{n.currentTabId=p},n=Ct({loading:!1,detail:{id:"",cid:"",pid:"",name:"",picture:"",playFrom:[],DownFrom:"",playList:[[]],downloadList:"",descriptor:{subTitle:"",cName:"",enName:"",initial:"",classTag:"",actor:"",director:"",writer:"",blurb:"",remarks:"",releaseDate:"",area:"",language:"",year:"",state:"",updateTime:"",addTime:"",dbId:"",dbScore:"",hits:"",content:""},list:[]},current:{index:0,episode:"",link:""},relate:[],currentTabId:"",autoplay:!0,options:{title:"",src:"",volume:.6,currentTime:50}}),s=k(()=>{let p=!1;return n.detail.list.forEach(v=>{n.currentTabId==v.id&&(p=n.current.index!=v.linkList.length-1)}),p}),r=la(),i=Xe("global"),a=p=>{n.detail.list.forEach(v=>{if(v.id==p.sourceId){let y=v.linkList[p.episodeIndex];n.current={index:p.episodeIndex,episode:y.episode,link:y.link},n.options.src=y.link,n.options.title=n.detail.name+" "+y.episode,n.currentTabId=p.sourceId}})},o=p=>{switch(p.preventDefault(),p.keyCode){case 32:p.target.paused?p.target.play():p.target.pause();break;case 37:p.target.currentTime=p.target.currentTime-5<0?0:p.target.currentTime-5;break;case 39:p.target.currentTime=p.target.currentTime+5>p.target.duration?p.target.duration:p.target.currentTime+5;break;case 38:n.options.volume=n.options.volume+.05>1?1:n.options.volume+.05;break;case 40:n.options.volume=n.options.volume-.05<0?0:n.options.volume-.05;break}},l=()=>{n.autoplay&&u()},u=()=>{s.value&&(a({sourceId:n.currentTabId,episodeIndex:n.current.index+1,target:""}),n.autoplay&&setTimeout(()=>{document.getElementsByTagName("video")[0].play()},1e3))},c=p=>{let v=document.getElementsByTagName("video")[0];v.focus();const y=document.createEvent("HTMLEvents");y.initEvent("keydown",!0,!1),y.keyCode=p,v.dispatchEvent(y)},f=p=>{let v=document.getElementsByClassName("vjs-button");for(let y of v)y.addEventListener("keydown",function(_){_.preventDefault(),c(_.keyCode)})},h=p=>{f()},m=p=>{let v=r.currentRoute.value.query.currentTime;v&&p.target.player.currentTime(v)},g=()=>{if(n.options.src.length>0){let p=document.getElementsByTagName("video")[0],v=ci.getCookie(ui.FILM_HISTORY)?JSON.parse(ci.getCookie(ui.FILM_HISTORY)):{},y=`/play?id=${n.detail.id}&source=${n.currentTabId}&episode=${n.current.index}¤tTime=${p.currentTime}`,_=new Date().getTime(),b=hm.dateFormat(_),T=`${hm.secondToTime(p.currentTime)} / ${hm.secondToTime(p.duration)}`;v[n.detail.id]={id:n.detail.id,name:n.detail.name,picture:n.detail.picture,episode:n.current.episode,time:b,timeStamp:_,source:n.currentTabId,link:y,currentTime:p.currentTime,duration:p.duration,progress:T,devices:i.isMobile},ci.setCookie(ui.FILM_HISTORY,JSON.stringify(v))}};return window.addEventListener("beforeunload",g),Hl(()=>{let p=r.currentRoute.value.query;cn("/filmPlayInfo",{id:p.id,playFrom:p.source,episode:p.episode}).then(v=>{v.code===0?(n.detail=v.data.detail,n.current={index:v.data.currentEpisode,...v.data.current},n.relate=v.data.relate,n.options.src=n.current.link,n.currentTabId=v.data.currentPlayFrom,n.loading=!0):lt.error({message:v.msg})})}),(p,v)=>{const y=tt;return yt((x(),j("div",QSe,[O("div",JSe,[E(d(x$),{onMounted:h,src:n.options.src,poster:d(tR),controls:"",onReady:m,onEnded:l,loop:!1,onKeydown:o,bufferedPercent:30,volume:n.options.volume,crossorigin:"anonymous",playsinline:"",class:"video-player","playback-rates":[.5,1,1.5,2]},null,8,["src","poster","volume"])]),O("div",ZSe,[O("div",eTe,[O("h3",tTe,[O("a",{href:`/filmDetail?link=${n.detail.id}`},ce(n.detail.name),9,nTe),Te(ce(n.current.episode),1)]),O("div",sTe,[O("a",{href:`/filmClassifySearch?Pid=${n.detail.pid}&Category=${n.detail.cid}`},[E(y,null,{default:P(()=>[E(d(N1))]),_:1}),Te(" "+ce(n.detail.descriptor.cName),1)],8,rTe),O("span",null,ce(n.detail.descriptor.classTag?n.detail.descriptor.classTag.replaceAll(",","/"):"未知"),1),O("span",iTe,ce(n.detail.descriptor.year),1),O("span",aTe,ce(n.detail.descriptor.area),1)])]),O("div",oTe,[O("a",{href:"javascript:;",class:M(`iconfont icon-play1 ${n.autoplay?"p_r_active":""}`),onClick:v[0]||(v[0]=()=>{n.autoplay=!n.autoplay})},null,2),yt(O("a",{href:"javascript:;",class:"iconfont icon-iov-next",onClick:u},null,512),[[Bt,s.value]])])]),O("div",lTe,[O("div",uTe,[O("div",cTe,[dTe,O("div",fTe,[(x(!0),j(Ke,null,bt(n.detail.list,_=>(x(),j("a",{href:"javascript:;",class:M(`play-tab-item ${n.currentTabId==_.id?"tab-active":""}`),onClick:b=>t(_.id)},ce(_.name),11,hTe))),256))])]),O("div",pTe,[(x(!0),j(Ke,null,bt(n.detail.list,_=>yt((x(),j("div",mTe,[(x(!0),j(Ke,null,bt(_.linkList,(b,T)=>(x(),j("a",{class:M(`play-link ${b.link==n.current.link?"play-link-active":""}`),href:"javascript:;",onClick:S=>a({sourceId:_.id,episodeIndex:T,target:this})},[Te(ce(b.episode)+" ",1),b.link==n.current.link?(x(),j("div",vTe,STe)):(x(),j("div",TTe))],10,gTe))),256))],512)),[[Bt,n.currentTabId==_.id]])),256))])])]),O("div",CTe,[E(eR,{relateList:n.relate},null,8,["relateList"])])],512)),[[Bt,n.loading]])}}}),xTe=En(ETe,[["__scopeId","data-v-cb8884b4"]]),pS=e=>(Ms("data-v-31fa3f00"),e=e(),$s(),e),kTe={class:"container"},ATe={class:"search_group"},ITe={key:0,class:"search_res"},DTe={class:"title"},OTe={class:"content"},PTe={class:"film_item"},RTe=["href"],NTe={class:"film_intro"},MTe={class:"tags"},$Te={class:"tag_c"},LTe=pS(()=>O("em",null,"导演:",-1)),BTe=pS(()=>O("em",null,"主演:",-1)),FTe={class:"blurb"},VTe=pS(()=>O("em",null,"剧情:",-1)),UTe={class:"pagination_container"},HTe=J({__name:"SearchFilm",setup(e){const t=la(),n=Ope(),s=Ct({list:[],page:{current:0},oldSearch:"",search:""});xe([n],(l,u)=>{a(t.currentRoute.value.query.search,t.currentRoute.value.query.current)});const r=l=>{location.href=`/play?id=${l}&episode=0&source=0`},i=()=>{if(s.search.length<=0){lt.error({message:"搜索信息不能为空",duration:1e3});return}location.href=location.href=`/search?search=${s.search}`},a=(l,u)=>{cn("/searchFilm",{keyword:l,current:u}).then(c=>{c.code==0?(s.list=c.data.list,s.page=c.data.page,s.oldSearch=l):lt.warning({message:c.msg,duration:1e3})})};gt(()=>{t.currentRoute.value.query.search!=null&&a(t.currentRoute.value.query.search+"",t.currentRoute.value.query.current)});const o=l=>{let u=t.currentRoute.value.query;location.href=`/search?search=${u.search}¤t=${l}`};return(l,u)=>{const c=mn,f=wh,h=$c;return x(),j(Ke,null,[O("div",kTe,[O("div",ATe,[yt(O("input",{"onUpdate:modelValue":u[0]||(u[0]=m=>s.search=m),onKeydown:u[1]||(u[1]=m=>{m.keyCode==13&&i()}),placeholder:"输入关键字搜索 动漫,剧集,电影 ",class:"search"},null,544),[[xa,s.search]]),E(c,{onClick:i,icon:d(kf),style:{}},null,8,["icon"])]),s.list&&s.list.length>0?(x(),j("div",ITe,[O("div",DTe,[O("h2",null,ce(s.oldSearch),1),O("p",null,"共找到"+ce(s.page.total)+'部与"'+ce(s.oldSearch)+'"相关的影视作品',1)]),O("div",OTe,[(x(!0),j(Ke,null,bt(s.list,m=>(x(),j("div",PTe,[O("a",{href:`/filmDetail?link=${m.id}`,style:st({backgroundImage:`url('${m.picture}')`})},null,12,RTe),O("div",NTe,[O("h3",null,ce(m.name),1),O("p",MTe,[O("span",$Te,ce(m.cName),1),O("span",null,ce(m.year),1),O("span",null,ce(m.area),1)]),O("p",null,[LTe,Te(ce(m.director),1)]),O("p",null,[BTe,Te(ce(m.actor),1)]),O("p",FTe,[VTe,Te(ce(m.blurb.replaceAll(" ","")),1)]),E(c,{icon:d(Fg),onClick:g=>r(m.id)},{default:P(()=>[Te("立即播放")]),_:2},1032,["icon","onClick"])])]))),256))]),O("div",UTe,[E(f,{background:"",layout:"prev, pager, next","current-page":s.page.current,"onUpdate:currentPage":u[2]||(u[2]=m=>s.page.current=m),onCurrentChange:o,"pager-count":5,"page-size":s.page.pageSize,total:s.page.total,"prev-icon":d(eI),"next-icon":d(tI),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])):ae("",!0)]),s.oldSearch!=""&&(!s.list||s.list.length==0)?(x(),de(h,{key:0,description:"未查询到对应影片"})):ae("",!0)],64)}}}),zTe=En(HTe,[["__scopeId","data-v-31fa3f00"]]),jTe="/assets/404-b813c94a.png",qTe=e=>(Ms("data-v-148e0a5e"),e=e(),$s(),e),WTe={class:"container"},KTe=["src"],GTe=qTe(()=>O("p",{class:"warning-txt"},"你好像走错地方了哦!!!",-1)),YTe={class:"btn-group"},XTe=J({__name:"Error404",setup(e){const t=la(),n=s=>{switch(s){case"home":t.push("/");break;case"back":t.go(-1);break}};return(s,r)=>(x(),j("div",WTe,[ae("",!0),O("img",{src:d(jTe),alt:"404",class:"notfound-img"},null,8,KTe),GTe,O("div",YTe,[O("button",{onClick:r[2]||(r[2]=i=>n("home"))},"主页"),O("button",{onClick:r[3]||(r[3]=i=>n("back"))},"返回")])]))}}),QTe=En(XTe,[["__scopeId","data-v-148e0a5e"]]),k$=e=>(Ms("data-v-3e60ba97"),e=e(),$s(),e),JTe={key:0,class:"container"},ZTe={class:"title"},eCe=["href"],tCe=k$(()=>O("span",{class:"line"},null,-1)),nCe=["href"],sCe={class:"t_container"},rCe={class:"t_item"},iCe={class:"t_title"},aCe=k$(()=>O("b",{class:"iconfont icon-triangle"},null,-1)),oCe={class:"tag_group"},lCe=["onClick"],uCe={class:"pagination_container"},cCe=J({__name:"FilmClassifySearch",setup(e){const t=Ct({title:{},list:[],search:{sortList:[],titles:[],tags:[]},page:{current:0},searchParams:{Pid:"",Category:"",Plot:"",Area:"",Language:"",Year:"",Sort:""}}),n=la(),s=o=>{i()},r=(o,l)=>{t.searchParams[o]=l,t.page.current=1,i()},i=()=>{let o="";for(let l in t.searchParams){let u=t.searchParams[l];u!=""&&(o+=`&${l}=${u}`)}location.href="/filmClassifySearch?"+o.slice(1)+`¤t=${t.page.current}`},a=()=>{let o=n.currentRoute.value.query;cn("/filmClassifySearch",{...o}).then(l=>{l.code===0?(t.title=l.data.title,t.list=l.data.list,t.page=l.data.page,t.search=l.data.search,t.searchParams=l.data.params):lt.error({message:"影片搜索结果异常,请稍后刷新重试",duration:1e3})})};return gt(()=>{a()}),(o,l)=>{const u=wh;return t.title.name?(x(),j("div",JTe,[O("div",ZTe,[O("a",{href:`/filmClassify?Pid=${t.title.id}`},ce(t.title.name),9,eCe),tCe,O("a",{href:`/filmClassifySearch?Pid=${t.title.id}`,class:"h_active"},ce(`${t.title.name}库`),9,nCe)]),O("div",sCe,[(x(!0),j(Ke,null,bt(t.search.sortList,c=>(x(),j("div",rCe,[O("div",iCe,[Te(ce(t.search.titles[c])+" ",1),aCe]),O("div",oCe,[(x(!0),j(Ke,null,bt(t.search.tags[c],f=>(x(),j("a",{href:"javascript:void(false)",class:M(`tag ${f.Value===t.searchParams[c]?"t_active":""}`),onClick:h=>r(c,f.Value)},ce(f.Name),11,lCe))),256))])]))),256))]),E(Lu,{col:7,list:t.list},null,8,["list"]),O("div",uCe,[E(u,{background:"",layout:"prev, pager, next","current-page":t.page.current,"onUpdate:currentPage":l[0]||(l[0]=c=>t.page.current=c),onCurrentChange:s,"pager-count":5,"page-size":t.page.pageSize,total:t.page.total,"prev-icon":d(eI),"next-icon":d(tI),"hide-on-single-page":"",class:"pagination"},null,8,["current-page","page-size","total","prev-icon","next-icon"])])])):ae("",!0)}}}),dCe=En(cCe,[["__scopeId","data-v-3e60ba97"]]),Xl=e=>(Ms("data-v-bcb171db"),e=e(),$s(),e),fCe={key:0,class:"container"},hCe={class:"title"},pCe=["href"],mCe=Xl(()=>O("span",{class:"line"},null,-1)),gCe=["href"],vCe={class:"content"},yCe={class:"news"},bCe={class:"c_nav"},_Ce=Xl(()=>O("span",{class:"c_nav_text silver"},"最新上映",-1)),wCe=["href"],SCe=Xl(()=>O("b",{class:"iconfont icon-more"},null,-1)),TCe={class:"news"},CCe={class:"c_nav"},ECe=Xl(()=>O("span",{class:"c_nav_text silver"},"排行榜",-1)),xCe=["href"],kCe=Xl(()=>O("b",{class:"iconfont icon-more"},null,-1)),ACe={class:"news"},ICe={class:"c_nav"},DCe=Xl(()=>O("span",{class:"c_nav_text silver"},"最近更新",-1)),OCe=["href"],PCe=Xl(()=>O("b",{class:"iconfont icon-more"},null,-1)),RCe=J({__name:"FilmClassify",setup(e){const t=Ct({title:{},content:{news:[],top:[],recent:[]}}),n=la(),s=()=>{let r=n.currentRoute.value.query;cn("/filmClassify",{Pid:r.Pid}).then(i=>{i.code===0?(t.title=i.data.title,t.content=i.data.content):lt.error({message:i.msg,duration:1e3})})};return gt(()=>{s()}),(r,i)=>t.content.news.length>0?(x(),j("div",fCe,[O("div",hCe,[O("a",{href:`/filmClassify?Pid=${t.title.id}`,class:"h_active"},ce(t.title.name),9,pCe),mCe,O("a",{href:`/filmClassifySearch?Pid=${t.title.id}`},ce(`${t.title.name}库`),9,gCe)]),O("div",vCe,[O("div",yCe,[O("div",bCe,[_Ce,O("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=release_stamp`,class:"c_nav_more"},[Te("更多"),SCe],8,wCe)]),E(Lu,{col:7,list:t.content.news},null,8,["list"])]),O("div",TCe,[O("div",CCe,[ECe,O("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=hits`,class:"c_nav_more"},[Te("更多"),kCe],8,xCe)]),E(Lu,{col:7,list:t.content.top},null,8,["list"])]),O("div",ACe,[O("div",ICe,[DCe,O("a",{href:`/filmClassifySearch?Pid=${t.title.id}&Sort=update_stamp`,class:"c_nav_more"},[Te("更多"),PCe],8,OCe)]),E(Lu,{col:7,list:t.content.recent},null,8,["list"])])])])):ae("",!0)}}),NCe=En(RCe,[["__scopeId","data-v-bcb171db"]]),MCe=e=>(Ms("data-v-5d6b8cb4"),e=e(),$s(),e),$Ce={class:"container"},LCe=MCe(()=>O("h3",null,"管理后台首页, 不知道放点啥, 先空着",-1)),BCe=[LCe],FCe=J({__name:"Index",setup(e){return gt(()=>{cn("/manage/index").then(t=>{t.code==0?lt.success({message:t.msg}):lt.error({message:t.msg})})}),(t,n)=>(x(),j("div",$Ce,BCe))}}),VCe=En(FCe,[["__scopeId","data-v-5d6b8cb4"]]),mS=e=>(Ms("data-v-2e64a78d"),e=e(),$s(),e),UCe={class:"container"},HCe={class:"container-form"},zCe={class:"cus-form"},jCe=mS(()=>O("h2",{class:"form-title"},"GoFilm Manage",-1)),qCe={class:"cus-form-item"},WCe=mS(()=>O("i",{class:"cus-item-icon iconfont icon-account"},null,-1)),KCe={class:"cus-form-item"},GCe=mS(()=>O("i",{class:"cus-item-icon iconfont icon-password"},null,-1)),YCe=["type"],XCe=J({__name:"Login",setup(e){const t=Ct({userName:"",password:"",pwdIsShow:!1}),n=la(),s=()=>{Qn("/login",{userName:t.userName,password:t.password}).then(r=>{r.code===0?n.push("/manage/index"):lt.error({message:r.msg})})};return(r,i)=>{const a=mn;return x(),j("div",UCe,[ae("",!0),O("div",HCe,[O("form",zCe,[jCe,O("div",qCe,[yt(O("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=o=>t.userName=o),placeholder:"用户名 / 邮箱",class:"cus-input"},null,512),[[xa,t.userName]]),WCe]),O("div",KCe,[GCe,yt(O("input",{type:`${t.pwdIsShow?"text":"password"}`,"onUpdate:modelValue":i[1]||(i[1]=o=>t.password=o),placeholder:"密码",class:"cus-input",onKeydown:rn(s,["enter"])},null,40,YCe),[[CB,t.password]]),O("i",{class:M(`cus-pwd iconfont ${t.pwdIsShow?"icon-eye2":"icon-eye"}`),onClick:i[2]||(i[2]=o=>t.pwdIsShow=!t.pwdIsShow)},null,2)]),E(a,{"native-type":"button",type:"primary",size:"large",color:"#9b49e7",round:"",onClick:s},{default:P(()=>[Te("登录")]),_:1}),E(a,{"native-type":"button",disabled:"",type:"primary",size:"large",color:"#9b49e7",round:""},{default:P(()=>[Te("注册")]),_:1})])])])}}}),QCe=En(XCe,[["__scopeId","data-v-2e64a78d"]]),Hv=e=>(Ms("data-v-988e81de"),e=e(),$s(),e),JCe={class:"header_container"},ZCe={class:"left"},eEe=Hv(()=>O("h3",null,"后台管理中心",-1)),tEe={class:"right"},nEe={class:"dropdown_user"},sEe=Hv(()=>O("em",{class:"iconfont icon-user-info"},null,-1)),rEe=Hv(()=>O("em",{class:"iconfont icon-change-pwd2"},null,-1)),iEe=Hv(()=>O("em",{class:"iconfont icon-logout"},null,-1)),aEe={class:"dialog-footer"},oEe="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[$@$!%*?&])[A-Za-z\\d$@$!%*?&]{8,12}$",lEe=J({__name:"ManageHeader",setup(e){const t=la(),n=Ct({userInfo:{id:Number,userName:String,email:String,gender:Number,nickName:String,avatar:String,status:Number}}),s=Xe("collapse"),r=Ct({changePwd:!1}),i=Ct({changePwd:{password:"",newPassword:"",confirmPassword:""},type:{password:!1,newPassword:!1,confirmPassword:!1}}),l=Ct({password:[{required:!0,message:"原始密码信息不能为空",trigger:"blur"}],newPassword:[{required:!0,validator:(m,g,p)=>{g===""?p(new Error("新密码不能为空")):g.match(oEe)||p(new Error("密码必须为8-12位且包含大小写字母数字和特殊字符")),p()},trigger:"blur"}],confirmPassword:[{required:!0,validator:(m,g,p)=>{g===""?p(new Error("确认密码不能为空")):i.changePwd.newPassword!==""&&i.changePwd.newPassword!=i.changePwd.confirmPassword&&p(new Error("新密码与确认密码不一致")),p()},trigger:"blur"}]}),u=()=>{Qn("/changePassword",{password:i.changePwd.password,newPassword:i.changePwd.newPassword}).then(m=>{m.code===0?(i.changePwd={password:"",newPassword:"",confirmPassword:""},r.changePwd=!1,lt.success({message:m.msg})):lt.error({message:m.msg})})},c=()=>{r.changePwd=!1,i.changePwd={password:"",newPassword:"",confirmPassword:""}},f=()=>{cn("/logout").then(m=>{m.code===0?(gge(),t.push("/login")):lt.error({message:m.msg})})},h=()=>{cn("/manage/user/info").then(m=>{m.code===0?(m.data.avatar=m.data.avatar=="empty"?"https://s2.loli.net/2023/12/05/O2SEiUcMx5aWlv4.jpg":m.data.avatar,n.userInfo=m.data):lt.error({message:m.msg})})};return gt(()=>{h()}),(m,g)=>{const p=f2,v=tt,y=L8,_=B8,b=$8,T=Un,S=Fa,C=Ba,D=mn,N=Mc;return x(),j("div",JCe,[O("div",ZCe,[O("a",{href:"javascript:;",onClick:g[0]||(g[0]=(...$)=>d(s).changeCollapse&&d(s).changeCollapse(...$)),class:M(`iconfont ${d(s).collapse.value?"icon-unfold":"icon-fold"}`)},null,2),eEe]),O("div",tEe,[E(b,{placement:"bottom"},{dropdown:P(()=>[E(_,null,{default:P(()=>[E(y,{command:"a"},{default:P(()=>[sEe,Te("个人信息")]),_:1}),E(y,{command:"a",onClick:g[1]||(g[1]=$=>r.changePwd=!0)},{default:P(()=>[rEe,Te("修改密码 ")]),_:1}),E(y,{command:"e",divided:"",onClick:f},{default:P(()=>[iEe,Te("退出登录 ")]),_:1})]),_:1})]),default:P(()=>[O("div",nEe,[E(p,{class:"avatar",size:35,src:n.userInfo.avatar.toString(),alt:"admin"},null,8,["src"]),O("span",null,ce(n.userInfo.nickName),1),E(v,{class:"el-icon--right"},{default:P(()=>[E(d(sa))]),_:1})])]),_:1})]),E(N,{modelValue:r.changePwd,"onUpdate:modelValue":g[8]||(g[8]=$=>r.changePwd=$),width:"480px",title:"用户密码修改"},{footer:P(()=>[O("span",aEe,[E(D,{color:"#9b49e7",onClick:u},{default:P(()=>[Te("确认")]),_:1}),E(D,{onClick:c},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(C,{model:i.changePwd,rules:l,"label-width":"80px"},{default:P(()=>[E(S,{label:"原始密码",prop:"password"},{default:P(()=>[E(T,{modelValue:i.changePwd.password,"onUpdate:modelValue":g[2]||(g[2]=$=>i.changePwd.password=$),type:i.type.password?"text":"password"},null,8,["modelValue","type"]),O("i",{class:M(`cus-pwd iconfont ${i.type.password?"icon-eye2":"icon-eye"}`),onClick:g[3]||(g[3]=$=>i.type.password=!i.type.password)},null,2)]),_:1}),E(S,{label:"新密码",prop:"newPassword"},{default:P(()=>[E(T,{modelValue:i.changePwd.newPassword,"onUpdate:modelValue":g[4]||(g[4]=$=>i.changePwd.newPassword=$),type:i.type.newPassword?"text":"password"},null,8,["modelValue","type"]),O("i",{class:M(`cus-pwd iconfont ${i.type.newPassword?"icon-eye2":"icon-eye"}`),onClick:g[5]||(g[5]=$=>i.type.newPassword=!i.type.newPassword)},null,2)]),_:1}),E(S,{label:"确认密码",prop:"confirmPassword"},{default:P(()=>[E(T,{modelValue:i.changePwd.confirmPassword,"onUpdate:modelValue":g[6]||(g[6]=$=>i.changePwd.confirmPassword=$),type:i.type.confirmPassword?"text":"password"},null,8,["modelValue","type"]),O("i",{class:M(`cus-pwd iconfont ${i.type.confirmPassword?"icon-eye2":"icon-eye"}`),onClick:g[7]||(g[7]=$=>i.type.confirmPassword=!i.type.confirmPassword)},null,2)]),_:1})]),_:1},8,["model","rules"])]),_:1},8,["modelValue"])])}}}),uEe=En(lEe,[["__scopeId","data-v-988e81de"]]),Lh=e=>(Ms("data-v-8e63264c"),e=e(),$s(),e),cEe={class:"site_name"},dEe=Lh(()=>O("span",null,"网站管理",-1)),fEe=Lh(()=>O("span",null,"采集管理",-1)),hEe=Lh(()=>O("span",null,"定时任务",-1)),pEe=Lh(()=>O("span",null,"影片管理",-1)),mEe=Lh(()=>O("span",null,"文件管理",-1)),gEe=J({__name:"Sidebar",setup(e){const t=Xe("collapse"),n=Ct({site:{siteName:String,logo:String}}),s=()=>{window.open("/index")},r=()=>{cn("/manage/config/basic").then(i=>{i.code==0?n.site=i.data:lt.error({message:i.msg})})};return gt(()=>{r()}),(i,a)=>{const o=f2,l=q8,u=tt,c=W8,f=j8;return x(),j("div",null,[E(f,{"default-active":"2",class:"side-nav",router:"",collapse:d(t).collapse.value},{default:P(()=>[E(l,{index:"",onClick:s},{title:P(()=>[O("b",cEe,ce(n.site.siteName),1)]),default:P(()=>[E(o,{class:"logo",size:30,src:n.site.logo.toString(),alt:"GoFilm"},null,8,["src"])]),_:1}),E(c,{index:"/manage/index"},{title:P(()=>[E(u,null,{default:P(()=>[E(d(Ej))]),_:1}),dEe]),default:P(()=>[E(l,{index:"/manage/system/webSite"},{default:P(()=>[Te("站点管理")]),_:1}),E(l,{index:"/manage/system/banners"},{default:P(()=>[Te("海报管理")]),_:1})]),_:1}),E(c,{index:"/manage/collect"},{title:P(()=>[E(u,null,{default:P(()=>[E(d(Oj))]),_:1}),fEe]),default:P(()=>[E(l,{index:"/manage/collect/index"},{default:P(()=>[Te("影视采集")]),_:1})]),_:1}),E(c,{index:"/manage/cron"},{title:P(()=>[E(u,null,{default:P(()=>[E(d(dq))]),_:1}),hEe]),default:P(()=>[E(l,{index:"/manage/cron/index"},{default:P(()=>[Te("任务管理")]),_:1})]),_:1}),E(c,{index:"/manage/film"},{title:P(()=>[E(u,null,{default:P(()=>[E(d(vj))]),_:1}),pEe]),default:P(()=>[E(l,{index:"/manage/film/class"},{default:P(()=>[Te("影视分类")]),_:1}),E(l,{index:"/manage/film"},{default:P(()=>[Te("影视信息")]),_:1}),E(l,{index:"/manage/film/add"},{default:P(()=>[Te("影片添加")]),_:1}),E(l,{index:"/manage/film/detail"},{default:P(()=>[Te("视频详情")]),_:1})]),_:1}),E(c,{index:"/manage/file"},{title:P(()=>[E(u,null,{default:P(()=>[E(d(bj))]),_:1}),mEe]),default:P(()=>[E(l,{index:"/manage/file/upload"},{default:P(()=>[Te("文件上传")]),_:1}),E(l,{index:"/manage/file/gallery"},{default:P(()=>[Te("图库管理")]),_:1})]),_:1})]),_:1},8,["collapse"])])}}}),vEe=En(gEe,[["__scopeId","data-v-8e63264c"]]),yEe={class:"container"},bEe=J({__name:"ManageHome",setup(e){const t=q(!1);return Mt("collapse",{collapse:t,changeCollapse:()=>{t.value=!t.value}}),(s,r)=>{const i=u8,a=y2,o=Dt("router-view"),l=b2,u=v2;return x(),j("div",yEe,[E(u,null,{default:P(()=>[E(i,{width:t.value?"auto":"190px",class:"side"},{default:P(()=>[E(vEe)]),_:1},8,["width"]),E(u,null,{default:P(()=>[E(a,{class:"header"},{default:P(()=>[E(uEe)]),_:1}),E(l,{class:"view"},{default:P(()=>[E(o)]),_:1})]),_:1})]),_:1})])}}}),_Ee=En(bEe,[["__scopeId","data-v-da813000"]]),wEe={class:"container"},SEe={class:"cus_util"},TEe={class:"dialog-footer"},CEe={class:"dialog-footer"},EEe={class:"dialog-footer"},xEe={class:"dialog-footer"},kEe={class:"dialog-footer"},AEe=J({__name:"CollectManage",setup(e){const t=Ct({siteList:[],collectDuration:[{time:24,label:"采集今日"},{time:168,label:"采集本周"},{time:-1,label:"采集全部"}],password:""}),n=Ct({addV:!1,editV:!1,batchV:!1,clear:!1,reCollect:!1}),s=Ct({add:{name:"",uri:"",resultModel:0,grade:1,collectType:0,syncPictures:!1,state:!1,interval:0},edit:{id:"",name:"",uri:"",resultModel:0,grade:1,collectType:0,syncPictures:!1,state:!1,interval:0},batch:{ids:[],time:0},options:[]}),r=()=>{n.batchV=!0,cn("/manage/collect/options").then(_=>{_.code===0?s.options=_.data:lt.error({message:_.msg})})},i=()=>{Qn("/manage/spider/start",{ids:s.batch.ids,time:s.batch.time,batch:!0}).then(_=>{_.code===0?(lt.success({message:_.msg}),g(),p()):lt.error({message:_.msg})})},a=_=>{Qn("/manage/spider/start",{id:_.id,time:_.cd,batch:!1}).then(b=>{b.code===0?(lt.success({message:b.msg}),p()):lt.error({message:b.msg})})},o=_=>{switch(_){case 0:s.add.syncPictures=s.add.syncPictures&&s.add.grade==0;break;case 1:s.edit.syncPictures=s.edit.syncPictures&&s.edit.grade==0;break}},l=()=>{Qn("/manage/collect/add",s.add).then(_=>{_.code===0?(lt.success({message:_.msg}),g(),p()):lt.error({message:_.msg})})},u=_=>{Qn("/manage/collect/test",_).then(b=>{b.code===0?lt.success({message:b.msg}):lt.error({message:b.msg})})},c=_=>{cn("/manage/collect/find",{id:_}).then(b=>{b.code===0?s.edit=b.data:lt.error({message:b.msg})}),n.editV=!0},f=_=>{Qn("/manage/collect/change",{id:_.id,state:_.state,syncPictures:_.syncPictures}).then(b=>{b.code===0?(lt.success({message:b.msg}),p()):lt.error({message:b.msg})})},h=_=>{Qn("/manage/collect/update",_).then(b=>{b.code===0?(lt.success({message:b.msg}),n.editV=!1,p()):lt.error({message:b.msg})})},m=_=>{cn("/manage/collect/del",{id:_}).then(b=>{b.code===0?(lt.success({message:b.msg}),p()):lt.error({message:b.msg})})},g=()=>{n.addV=!1,n.editV=!1,n.batchV=!1,s.add={name:"",uri:"",resultModel:0,grade:1,collectType:0,syncPictures:!1,state:!1,interval:0}},p=()=>{cn("/manage/collect/list").then(_=>{_.code===0?t.siteList=_.data.map(b=>{switch(b.collectType){case 0:b.collectTypeText="视频";break;case 1:b.collectTypeText="文章";break;case 2:b.collectTypeText="演员";break;case 3:b.collectTypeText="角色";break;case 4:b.collectTypeText="网站";break}return b.cd=24,b}):lt.error({message:_.msg})})},v=()=>{if(t.password.length<=0){lt.error({message:"操作失败, 密钥信息缺失"});return}cn("/manage/spider/clear",{password:t.password}).then(_=>{_.code===0?lt.success({message:_.msg}):lt.error({message:_.msg}),n.clear=!1,t.password=""})},y=()=>{if(t.password.length<=0){lt.error({message:"操作失败, 密钥信息缺失"});return}cn("/manage/spider/zero",{password:t.password}).then(_=>{_.code===0?lt.success({message:_.msg}):lt.error({message:_.msg}),n.reCollect=!1,t.password=""})};return gt(()=>{p()}),(_,b)=>{const T=Fc,S=Ji,C=F8,D=Sh,N=Ro,$=Ti,L=mn,z=Bc,U=Un,W=Fa,K=_h,X=is,B=Jg,Q=m2,Y=Ba,F=Mc;return x(),j("div",wEe,[E(z,{data:t.siteList,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:P(()=>[E(T,{prop:"name",label:"资源名称"}),E(T,{prop:"resultModel",align:"center",label:"数据类型"},{default:P(H=>[E(S,{"disable-transitions":""},{default:P(()=>[Te(ce(H.row.resultModel==0?"JSON":"XML"),1)]),_:2},1024)]),_:1}),E(T,{prop:"collectType",align:"center",label:"资源类型"},{default:P(H=>[E(S,{"disable-transitions":""},{default:P(()=>[Te(ce(H.row.collectTypeText),1)]),_:2},1024)]),_:1}),E(T,{prop:"uri",label:"资源站"},{default:P(H=>[E(C,{href:H.row.uri,target:"_blank"},{default:P(()=>[Te(ce(H.row.uri),1)]),_:2},1032,["href"])]),_:1}),E(T,{prop:"syncPictures",align:"center",label:"同步图片"},{default:P(H=>[E(D,{onChange:Z=>f(H.row),disabled:H.row.grade==1,modelValue:H.row.syncPictures,"onUpdate:modelValue":Z=>H.row.syncPictures=Z,"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["onChange","disabled","modelValue","onUpdate:modelValue"])]),_:1}),E(T,{prop:"state",align:"center",label:"是否启用"},{default:P(H=>[E(D,{onChange:Z=>f(H.row),modelValue:H.row.state,"onUpdate:modelValue":Z=>H.row.state=Z,"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["onChange","modelValue","onUpdate:modelValue"])]),_:1}),E(T,{prop:"grade",align:"center",label:"站点权重"},{default:P(H=>[E(S,{"disable-transitions":"",type:`${H.row.grade==0?"success":"info"}`},{default:P(()=>[Te(ce(H.row.grade==0?"采集主站":"附属站点"),1)]),_:2},1032,["type"])]),_:1}),E(T,{prop:"grade",align:"center",label:"采集间隔"},{default:P(H=>[E(S,{"disable-transitions":"",type:"success"},{default:P(()=>[Te(ce(H.row.interval>0?`${H.row.interval} ms`:"无限制"),1)]),_:2},1024)]),_:1}),E(T,{label:"采集方式"},{default:P(H=>[E($,{modelValue:H.row.cd,"onUpdate:modelValue":Z=>H.row.cd=Z,class:"m-2",placeholder:"Select",size:"small"},{default:P(()=>[(x(!0),j(Ke,null,bt(t.collectDuration,Z=>(x(),de(N,{key:Z.time,label:Z.label,value:Z.time},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),E(T,{label:"操作",align:"center"},{default:P(H=>[E(L,{type:"success",icon:d(oq),plain:"",circle:"",onClick:Z=>a(H.row)},null,8,["icon","onClick"]),E(L,{type:"primary",icon:d(ch),plain:"",circle:"",onClick:Z=>c(H.row.id)},null,8,["icon","onClick"]),E(L,{type:"danger",icon:d(Kl),plain:"",circle:"",onClick:Z=>m(H.row.id)},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),O("div",SEe,[E(L,{color:"#9b49e7",icon:d(nI),onClick:b[0]||(b[0]=H=>n.addV=!0)},{default:P(()=>[Te("添加采集站")]),_:1},8,["icon"]),E(L,{color:"#d942bf",onClick:r,icon:d(N1)},{default:P(()=>[Te("一键采集")]),_:1},8,["icon"]),E(L,{type:"danger",icon:d(uj),onClick:b[1]||(b[1]=H=>n.clear=!0)},{default:P(()=>[Te("RemoveAll")]),_:1},8,["icon"]),E(L,{type:"primary",icon:d(qz),onClick:b[2]||(b[2]=H=>n.reCollect=!0)},{default:P(()=>[Te("AutoCollect")]),_:1},8,["icon"])]),E(F,{modelValue:n.addV,"onUpdate:modelValue":b[15]||(b[15]=H=>n.addV=H),title:"添加采集站点"},{footer:P(()=>[O("span",TEe,[E(L,{color:"#cf48be",onClick:b[13]||(b[13]=H=>u(s.add))},{default:P(()=>[Te("测试")]),_:1}),E(L,{color:"#9b49e7",onClick:l},{default:P(()=>[Te("添加")]),_:1}),E(L,{onClick:b[14]||(b[14]=H=>n.addV=!1)},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(Y,{model:s.add},{default:P(()=>[E(W,{label:"资源名称"},{default:P(()=>[E(U,{modelValue:s.add.name,"onUpdate:modelValue":b[3]||(b[3]=H=>s.add.name=H),placeholder:"自定义资源名称(禁用汉字)"},null,8,["modelValue"])]),_:1}),E(W,{label:"接口地址"},{default:P(()=>[E(U,{modelValue:s.add.uri,"onUpdate:modelValue":b[4]||(b[4]=H=>s.add.uri=H),placeholder:"资源采集链接,本站只采集综合资源或m3u8资源"},null,8,["modelValue"])]),_:1}),E(W,{label:"间隔时长"},{default:P(()=>[E(X,{class:"box-item",effect:"dark",content:"单次采集请求的时间间隔, 单位/ms",placement:"top"},{default:P(()=>[E(K,{modelValue:s.add.interval,"onUpdate:modelValue":b[5]||(b[5]=H=>s.add.interval=H),min:0,step:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),E(W,{label:"接口类型"},{default:P(()=>[E(Q,{modelValue:s.add.resultModel,"onUpdate:modelValue":b[6]||(b[6]=H=>s.add.resultModel=H)},{default:P(()=>[E(B,{label:0},{default:P(()=>[Te("JSON")]),_:1}),E(B,{disabled:"",label:1},{default:P(()=>[Te("XML")]),_:1})]),_:1},8,["modelValue"])]),_:1}),E(W,{label:"资源类型"},{default:P(()=>[E(Q,{fill:"#9b49e7",modelValue:s.add.collectType,"onUpdate:modelValue":b[7]||(b[7]=H=>s.add.collectType=H)},{default:P(()=>[E(B,{fill:"#9b49e7",label:0},{default:P(()=>[Te("视频")]),_:1}),E(B,{disabled:"",label:1},{default:P(()=>[Te("文章")]),_:1}),E(B,{disabled:"",label:2},{default:P(()=>[Te("演员")]),_:1}),E(B,{disabled:"",label:3},{default:P(()=>[Te("角色")]),_:1}),E(B,{disabled:"",label:4},{default:P(()=>[Te("网站")]),_:1})]),_:1},8,["modelValue"])]),_:1}),E(W,{label:"站点权重"},{default:P(()=>[E(Q,{onChange:b[8]||(b[8]=H=>o(0)),fill:"#9b49e7",modelValue:s.add.grade,"onUpdate:modelValue":b[9]||(b[9]=H=>s.add.grade=H)},{default:P(()=>[E(B,{label:0},{default:P(()=>[Te("主站点")]),_:1}),E(B,{label:1},{default:P(()=>[Te("附属站点")]),_:1})]),_:1},8,["modelValue"])]),_:1}),E(W,{label:"图片同步"},{default:P(()=>[E(D,{modelValue:s.add.syncPictures,"onUpdate:modelValue":b[10]||(b[10]=H=>s.add.syncPictures=H),onChange:b[11]||(b[11]=H=>o(0)),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),E(W,{label:"是否启用"},{default:P(()=>[E(D,{modelValue:s.add.state,"onUpdate:modelValue":b[12]||(b[12]=H=>s.add.state=H),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(F,{modelValue:n.editV,"onUpdate:modelValue":b[29]||(b[29]=H=>n.editV=H),title:"修改资源站信息"},{footer:P(()=>[O("span",CEe,[E(L,{color:"#cf48be",onClick:b[26]||(b[26]=H=>u(s.edit))},{default:P(()=>[Te("测试")]),_:1}),E(L,{color:"#9b49e7",onClick:b[27]||(b[27]=H=>h(s.edit))},{default:P(()=>[Te("更新")]),_:1}),E(L,{onClick:b[28]||(b[28]=H=>n.editV=!1)},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(Y,{model:s.edit},{default:P(()=>[E(W,{label:"资源名称"},{default:P(()=>[E(U,{modelValue:s.edit.name,"onUpdate:modelValue":b[16]||(b[16]=H=>s.edit.name=H),placeholder:"自定义资源名称(禁用汉字)"},null,8,["modelValue"])]),_:1}),E(W,{label:"接口地址"},{default:P(()=>[E(U,{modelValue:s.edit.uri,"onUpdate:modelValue":b[17]||(b[17]=H=>s.edit.uri=H),placeholder:"资源采集链接,本站只采集综合资源或m3u8资源"},null,8,["modelValue"])]),_:1}),E(W,{label:"间隔时长"},{default:P(()=>[E(X,{class:"box-item",effect:"dark",content:"单次采集请求的时间间隔, 单位/ms",placement:"top"},{default:P(()=>[E(K,{modelValue:s.edit.interval,"onUpdate:modelValue":b[18]||(b[18]=H=>s.edit.interval=H),min:0,step:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),E(W,{label:"接口类型"},{default:P(()=>[E(Q,{modelValue:s.edit.resultModel,"onUpdate:modelValue":b[19]||(b[19]=H=>s.edit.resultModel=H)},{default:P(()=>[E(B,{label:0},{default:P(()=>[Te("JSON")]),_:1}),E(B,{disabled:"",label:1},{default:P(()=>[Te("XML")]),_:1})]),_:1},8,["modelValue"])]),_:1}),E(W,{label:"资源类型"},{default:P(()=>[E(Q,{fill:"#9b49e7",modelValue:s.edit.collectType,"onUpdate:modelValue":b[20]||(b[20]=H=>s.edit.collectType=H)},{default:P(()=>[E(B,{fill:"#9b49e7",label:0},{default:P(()=>[Te("视频")]),_:1}),E(B,{disabled:"",label:1},{default:P(()=>[Te("文章")]),_:1}),E(B,{disabled:"",label:2},{default:P(()=>[Te("演员")]),_:1}),E(B,{disabled:"",label:3},{default:P(()=>[Te("角色")]),_:1}),E(B,{disabled:"",label:4},{default:P(()=>[Te("网站")]),_:1})]),_:1},8,["modelValue"])]),_:1}),E(W,{label:"站点权重"},{default:P(()=>[E(Q,{fill:"#9b49e7",onChange:b[21]||(b[21]=H=>o(1)),modelValue:s.edit.grade,"onUpdate:modelValue":b[22]||(b[22]=H=>s.edit.grade=H)},{default:P(()=>[E(B,{label:0},{default:P(()=>[Te("主站点")]),_:1}),E(B,{label:1},{default:P(()=>[Te("附属站点")]),_:1})]),_:1},8,["modelValue"])]),_:1}),E(W,{label:"图片同步"},{default:P(()=>[E(D,{modelValue:s.edit.syncPictures,"onUpdate:modelValue":b[23]||(b[23]=H=>s.edit.syncPictures=H),onChange:b[24]||(b[24]=H=>o(1)),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),E(W,{label:"是否启用"},{default:P(()=>[E(D,{modelValue:s.edit.state,"onUpdate:modelValue":b[25]||(b[25]=H=>s.edit.state=H),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(F,{modelValue:n.batchV,"onUpdate:modelValue":b[32]||(b[32]=H=>n.batchV=H),width:"450px",title:"多资源站一键采集"},{footer:P(()=>[O("span",EEe,[E(L,{color:"#9b49e7",onClick:i},{default:P(()=>[Te("确认执行")]),_:1}),E(L,{onClick:g},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(Y,{model:s.batch},{default:P(()=>[E(W,{label:"执行站点"},{default:P(()=>[E($,{modelValue:s.batch.ids,"onUpdate:modelValue":b[30]||(b[30]=H=>s.batch.ids=H),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:P(()=>[(x(!0),j(Ke,null,bt(s.options,H=>(x(),de(N,{key:H.id,label:H.name,value:H.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(W,{label:"采集时长"},{default:P(()=>[E(X,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:P(()=>[E(K,{modelValue:s.batch.time,"onUpdate:modelValue":b[31]||(b[31]=H=>s.batch.time=H),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(F,{modelValue:n.clear,"onUpdate:modelValue":b[35]||(b[35]=H=>n.clear=H),title:"是否清除所有影视数据 ?",width:"500"},{footer:P(()=>[O("div",xEe,[E(L,{onClick:b[34]||(b[34]=H=>n.clear=!1)},{default:P(()=>[Te("取消")]),_:1}),E(L,{type:"primary",onClick:v},{default:P(()=>[Te("确认执行")]),_:1})])]),default:P(()=>[E(Y,{model:s},{default:P(()=>[E(W,{label:"确认密码"},{default:P(()=>[E(U,{modelValue:t.password,"onUpdate:modelValue":b[33]||(b[33]=H=>t.password=H),type:"password",placeholder:"请输入账户密码并开确认执行",autocomplete:"off","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(F,{modelValue:n.reCollect,"onUpdate:modelValue":b[38]||(b[38]=H=>n.reCollect=H),title:"是否清除影片数据并重新采集 ?",width:"500"},{footer:P(()=>[O("div",kEe,[E(L,{onClick:b[37]||(b[37]=H=>n.reCollect=!1)},{default:P(()=>[Te("取消")]),_:1}),E(L,{type:"primary",onClick:y},{default:P(()=>[Te("确认执行")]),_:1})])]),default:P(()=>[E(Y,{model:s},{default:P(()=>[E(W,{label:"确认密码"},{default:P(()=>[E(U,{modelValue:t.password,"onUpdate:modelValue":b[36]||(b[36]=H=>t.password=H),type:"password",placeholder:"请输入账户密码并开确认执行",autocomplete:"off","show-password":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),IEe=e=>(Ms("data-v-3c90743b"),e=e(),$s(),e),DEe={class:"container"},OEe=IEe(()=>O("h2",{class:"title"},"网站基础参数配置",-1)),PEe={class:"content"},REe=J({__name:"SiteConfig",setup(e){const t=Ct({site:{siteName:"",domain:"",logo:"",keyword:"",describe:"",state:!0,hint:""}}),n=()=>{Qn("/manage/config/basic/update",t.site).then(r=>{r.code===0?(lt.success({message:r.msg}),s()):lt.error({message:r.msg})})},s=()=>{cn("/manage/config/basic").then(r=>{r.code===0?t.site=r.data:lt.error({message:r.msg})})};return gt(()=>{s()}),(r,i)=>{const a=Un,o=Fa,l=Sh,u=mn,c=Ba;return x(),j("div",DEe,[OEe,O("div",PEe,[E(c,{size:"large",model:t.site,"label-width":"120px"},{default:P(()=>[E(o,{label:"网站名称"},{default:P(()=>[E(a,{modelValue:t.site.siteName,"onUpdate:modelValue":i[0]||(i[0]=f=>t.site.siteName=f)},null,8,["modelValue"])]),_:1}),E(o,{label:"网站域名"},{default:P(()=>[E(a,{modelValue:t.site.domain,"onUpdate:modelValue":i[1]||(i[1]=f=>t.site.domain=f)},null,8,["modelValue"])]),_:1}),E(o,{label:"网站Logo"},{default:P(()=>[E(a,{modelValue:t.site.logo,"onUpdate:modelValue":i[2]||(i[2]=f=>t.site.logo=f)},null,8,["modelValue"])]),_:1}),E(o,{label:"搜索关键字"},{default:P(()=>[E(a,{modelValue:t.site.keyword,"onUpdate:modelValue":i[3]||(i[3]=f=>t.site.keyword=f)},null,8,["modelValue"])]),_:1}),E(o,{label:"网站描述"},{default:P(()=>[E(a,{modelValue:t.site.describe,"onUpdate:modelValue":i[4]||(i[4]=f=>t.site.describe=f)},null,8,["modelValue"])]),_:1}),E(o,{label:"网站状态"},{default:P(()=>[E(l,{modelValue:t.site.state,"onUpdate:modelValue":i[5]||(i[5]=f=>t.site.state=f),"inline-prompt":"","active-text":"开启","inactive-text":"关闭"},null,8,["modelValue"])]),_:1}),E(o,{label:"维护提示"},{default:P(()=>[E(a,{modelValue:t.site.hint,"onUpdate:modelValue":i[6]||(i[6]=f=>t.site.hint=f)},null,8,["modelValue"])]),_:1}),E(o,null,{default:P(()=>[E(u,{color:"#9b49e7",onClick:n},{default:P(()=>[Te("更新")]),_:1}),E(u,{onClick:s},{default:P(()=>[Te("重置")]),_:1})]),_:1})]),_:1},8,["model"])])])}}}),NEe=En(REe,[["__scopeId","data-v-3c90743b"]]),MEe={class:"container"},$Ee={class:"cus_util"},LEe={class:"dialog-footer"},BEe={class:"dialog-footer"},FEe=J({__name:"CronManage",setup(e){const t=Ct({taskList:[]}),n=Ct({addV:!1,editV:!1}),s=Ct({add:{spec:"",remark:"",model:1,ids:[],time:0,state:!1},options:[],edit:{id:"",cid:"",spec:"",remark:"",model:1,ids:[],time:0,state:!1}}),r=()=>{Qn("/manage/cron/add",s.add).then(m=>{m.code===0?(lt.success({message:m.msg}),a(),h()):lt.error({message:m.msg})})},i=()=>{Qn("/manage/cron/update",{id:s.edit.id,ids:s.edit.ids,time:s.edit.time,state:s.edit.state,remark:s.edit.remark}).then(m=>{m.code===0?(lt.success({message:m.msg}),a(),h()):lt.error({message:m.msg})})},a=()=>{n.addV=!1,n.editV=!1,s.add={spec:"",remark:"",model:1,ids:[],time:0,state:!1},s.edit={id:"",cid:"",spec:"",remark:"",model:1,ids:[],time:0,state:!1}},o=()=>{n.addV=!0,f()},l=m=>{cn("/manage/cron/del",{id:m}).then(g=>{g.code===0?(lt.success({message:g.msg}),h()):lt.error({message:g.msg})})},u=(m,g)=>{Qn("/manage/cron/change",{id:m,state:g}).then(p=>{p.code===0?(lt.success({message:p.msg}),h()):lt.error({message:p.msg})})},c=m=>{n.editV=!0,f(),cn("/manage/cron/find",{id:m}).then(g=>{g.code===0?s.edit=g.data:lt.error({message:g.msg})})},f=()=>{cn("/manage/collect/options").then(m=>{m.code===0?s.options=m.data:lt.error({message:m.msg})})},h=()=>{cn("/manage/cron/list").then(m=>{m.code===0?t.taskList=m.data:(t.taskList=[],lt.warning({message:m.msg}))})};return gt(()=>{h()}),(m,g)=>{const p=Ji,v=Fc,y=Sh,_=mn,b=Bc,T=Un,S=Fa,C=Jg,D=is,N=m2,$=Ro,L=Ti,z=_h,U=Ba,W=Mc;return x(),j("div",MEe,[E(b,{data:t.taskList,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:P(()=>[E(v,{prop:"id",label:"任务ID"},{default:P(K=>[E(p,{"disable-transitions":""},{default:P(()=>[Te(ce(K.row.id),1)]),_:2},1024)]),_:1}),E(v,{prop:"remark",label:"任务描述"}),E(v,{prop:"model",align:"center",label:"任务类型"},{default:P(K=>[E(p,{"disable-transitions":""},{default:P(()=>[Te(ce(K.row.model==0?"自动更新":"自定义任务"),1)]),_:2},1024)]),_:1}),E(v,{prop:"state",align:"center",label:"是否启用"},{default:P(K=>[E(y,{modelValue:K.row.state,"onUpdate:modelValue":X=>K.row.state=X,onChange:X=>u(K.row.id,K.row.state),"inline-prompt":"","active-text":"启用","inactive-text":"禁用"},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:1}),E(v,{prop:"preV",align:"center",label:"上次执行时间"},{default:P(K=>[E(p,{type:"success","disable-transitions":""},{default:P(()=>[Te(ce(K.row.preV),1)]),_:2},1024)]),_:1}),E(v,{prop:"next",align:"center",label:"下次执行时间"},{default:P(K=>[E(p,{type:"warning","disable-transitions":""},{default:P(()=>[Te(ce(K.row.next),1)]),_:2},1024)]),_:1}),E(v,{label:"操作",align:"center"},{default:P(K=>[E(_,{type:"primary",icon:d(ch),plain:"",circle:"",onClick:X=>c(K.row.id)},null,8,["icon","onClick"]),E(_,{type:"danger",icon:d(Kl),plain:"",circle:"",onClick:X=>l(K.row.id)},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),O("div",$Ee,[E(_,{color:"#9b49e7",icon:d(O1),onClick:o},{default:P(()=>[Te("创建定时任务")]),_:1},8,["icon"])]),E(W,{modelValue:n.addV,"onUpdate:modelValue":g[6]||(g[6]=K=>n.addV=K),title:"创建定时任务"},{footer:P(()=>[O("span",LEe,[E(_,{color:"#9b49e7",onClick:r},{default:P(()=>[Te("添加")]),_:1}),E(_,{onClick:a},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(U,{model:s.add},{default:P(()=>[E(S,{label:"任务周期"},{default:P(()=>[E(T,{modelValue:s.add.spec,"onUpdate:modelValue":g[0]||(g[0]=K=>s.add.spec=K),placeholder:"定时任务Cron表达式 (例: [0 */20 * * * ?] 每20分钟执行一次)"},null,8,["modelValue"])]),_:1}),E(S,{label:"任务描述"},{default:P(()=>[E(T,{modelValue:s.add.remark,"onUpdate:modelValue":g[1]||(g[1]=K=>s.add.remark=K),placeholder:"定时任务描述信息"},null,8,["modelValue"])]),_:1}),E(S,{label:"任务类型"},{default:P(()=>[E(N,{fill:"#9b49e7",modelValue:s.add.model,"onUpdate:modelValue":g[2]||(g[2]=K=>s.add.model=K)},{default:P(()=>[E(D,{class:"box-item",effect:"dark",content:"执行所有已启用站点的采集任务",placement:"top"},{default:P(()=>[E(C,{label:0},{default:P(()=>[Te("自动更新")]),_:1})]),_:1}),E(D,{class:"box-item",effect:"dark",content:"只执行指定站点的采集任务",placement:"top"},{default:P(()=>[E(C,{label:1},{default:P(()=>[Te("自定义更新")]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),s.add.model==1?(x(),de(S,{key:0,label:"资源绑定"},{default:P(()=>[E(L,{modelValue:s.add.ids,"onUpdate:modelValue":g[3]||(g[3]=K=>s.add.ids=K),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:P(()=>[(x(!0),j(Ke,null,bt(s.options,K=>(x(),de($,{key:K.id,label:K.name,value:K.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):ae("",!0),E(S,{label:"采集时长"},{default:P(()=>[E(D,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:P(()=>[E(z,{modelValue:s.add.time,"onUpdate:modelValue":g[4]||(g[4]=K=>s.add.time=K),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),E(S,{label:"任务状态"},{default:P(()=>[E(y,{modelValue:s.add.state,"onUpdate:modelValue":g[5]||(g[5]=K=>s.add.state=K),"inline-prompt":"","active-text":"开启","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"]),E(W,{modelValue:n.editV,"onUpdate:modelValue":g[11]||(g[11]=K=>n.editV=K),title:"创建定时任务"},{footer:P(()=>[O("span",BEe,[E(_,{color:"#9b49e7",onClick:i},{default:P(()=>[Te("更新")]),_:1}),E(_,{onClick:a},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(U,{model:s.edit},{default:P(()=>[E(S,{label:"任务标识"},{default:P(()=>[E(p,{type:"success","disable-transitions":""},{default:P(()=>[Te(ce(s.edit.id),1)]),_:1})]),_:1}),E(S,{label:"任务描述"},{default:P(()=>[E(T,{modelValue:s.edit.remark,"onUpdate:modelValue":g[7]||(g[7]=K=>s.edit.remark=K),placeholder:"定时任务描述信息"},null,8,["modelValue"])]),_:1}),E(S,{label:"任务周期"},{default:P(()=>[E(p,{"disable-transitions":""},{default:P(()=>[Te(ce(s.edit.spec),1)]),_:1})]),_:1}),E(S,{label:"任务类型"},{default:P(()=>[E(p,{"disable-transitions":""},{default:P(()=>[Te(ce(s.edit.model==0?"自动更新":"自定义更新"),1)]),_:1})]),_:1}),s.edit.model==1?(x(),de(S,{key:0,label:"资源绑定"},{default:P(()=>[E(L,{modelValue:s.edit.ids,"onUpdate:modelValue":g[8]||(g[8]=K=>s.edit.ids=K),multiple:"","collapse-tags":"","collapse-tags-tooltip":"",placeholder:"Select",style:{width:"240px"}},{default:P(()=>[(x(!0),j(Ke,null,bt(s.options,K=>(x(),de($,{key:K.id,label:K.name,value:K.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):ae("",!0),E(S,{label:"采集时长"},{default:P(()=>[E(D,{class:"box-item",effect:"dark",content:"采集最近x小时更新的影片,负数则默认采集所有资源",placement:"top"},{default:P(()=>[E(z,{modelValue:s.edit.time,"onUpdate:modelValue":g[9]||(g[9]=K=>s.edit.time=K),step:1,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1}),E(S,{label:"任务状态"},{default:P(()=>[E(y,{modelValue:s.edit.state,"onUpdate:modelValue":g[10]||(g[10]=K=>s.edit.state=K),"inline-prompt":"","active-text":"开启","inactive-text":"禁用"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),VEe=En(FEe,[["__scopeId","data-v-3e0c505d"]]),UEe={},HEe=O("h2",{style:{color:"#8e48b4"}},"功能开发中, 请关注后续更新",-1),zEe=[HEe];function jEe(e,t){return x(),j("div",null,zEe)}const HA=En(UEe,[["render",jEe]]),qEe={class:"container"},WEe={class:"cus_util"},KEe={class:"dialog-footer"},GEe=J({__name:"FilmClass",setup(e){const t=Ct({classTree:[]}),n=Ct({editV:!1,editForm:{id:-99,pid:-99,name:"",show:!0,children:[]}}),s=c=>{cn("/manage/film/class/del",{id:c}).then(f=>{f.code===0?(u(),lt.success({message:f.msg})):lt.error({message:f.msg})})},r=c=>{n.editV=!0,cn("/manage/film/class/find",{id:c}).then(f=>{f.code===0?n.editForm=f.data:lt.error({message:f.msg})})},i=()=>{let{id:c,name:f,show:h}=n.editForm;Qn("/manage/film/class/update",{id:c,name:f,show:h}).then(m=>{m.code===0?(n.editV=!1,u(),lt.success({message:m.msg})):lt.error({message:m.msg})})},a=(c,f)=>{Qn("/manage/film/class/update",{id:c,show:f}).then(h=>{h.code===0?(n.editV=!1,u(),lt.success({message:h.msg})):lt.error({message:h.msg})})},o=()=>{n.editForm={id:-99,pid:-99,name:"",show:!0,children:[]}},l=()=>{cn("/manage/spider/class/cover").then(c=>{c.code===0?lt.success({message:c.msg}):lt.error({message:c.msg})})},u=()=>{cn("/manage/film/class/tree").then(c=>{c.code===0?t.classTree=c.data.children:lt.error({message:c.msg})})};return gt(()=>{u()}),(c,f)=>{const h=Ji,m=Fc,g=Sh,p=mn,v=Bc,y=Un,_=Fa,b=Ba,T=Mc;return x(),j("div",qEe,[E(v,{data:t.classTree,style:{width:"100%"},border:"",size:"default","table-layout":"auto","max-height":"calc(90vh - 20px)","row-key":"id","row-class-name":"cus-tr"},{default:P(()=>[E(m,{prop:"name",label:"分类名称"},{default:P(S=>[E(h,{type:S.row.pid==0?"success":"warning","disable-transitions":""},{default:P(()=>[Te(ce(S.row.name),1)]),_:2},1032,["type"])]),_:1}),E(m,{prop:"show",align:"center",label:"是否展示"},{default:P(S=>[S.row.pid==0?(x(),de(g,{key:0,modelValue:S.row.show,"onUpdate:modelValue":C=>S.row.show=C,"inline-prompt":"","active-text":"展示","inactive-text":"隐藏",onChange:C=>a(S.row.id,S.row.show)},null,8,["modelValue","onUpdate:modelValue","onChange"])):(x(),de(g,{key:1,modelValue:S.row.show,"onUpdate:modelValue":C=>S.row.show=C,"inline-prompt":"","active-text":"屏蔽","inactive-text":"恢复",onChange:C=>a(S.row.id,S.row.show)},null,8,["modelValue","onUpdate:modelValue","onChange"]))]),_:1}),E(m,{label:"操作",align:"center"},{default:P(S=>[E(p,{type:"primary",icon:d(ch),onClick:C=>r(S.row.id),plain:"",circle:""},null,8,["icon","onClick"]),E(p,{type:"danger",icon:d(Kl),onClick:C=>s(S.row.id),plain:"",circle:""},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),O("div",WEe,[E(p,{color:"#9b49e7",icon:d(sI),onClick:l},{default:P(()=>[Te("重置分类信息")]),_:1},8,["icon"])]),E(T,{modelValue:n.editV,"onUpdate:modelValue":f[3]||(f[3]=S=>n.editV=S),onClose:o,width:"480px",title:"更新分类信息"},{footer:P(()=>[O("span",KEe,[E(p,{color:"#9b49e7",onClick:i},{default:P(()=>[Te("更新")]),_:1}),E(p,{onClick:f[2]||(f[2]=S=>n.editV=!1)},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(b,{model:n.editForm},{default:P(()=>[E(_,{label:"分类名称"},{default:P(()=>[E(y,{modelValue:n.editForm.name,"onUpdate:modelValue":f[0]||(f[0]=S=>n.editForm.name=S),placeholder:"分类名称,用于首页导航展示"},null,8,["modelValue"])]),_:1}),E(_,{label:"分类层级"},{default:P(()=>[E(h,{type:n.editForm.pid==0?"success":"warning","disable-transitions":""},{default:P(()=>[Te(ce(n.editForm.pid==0?"一级分类":"二级分类"),1)]),_:1},8,["type"])]),_:1}),E(_,{label:"是否展示"},{default:P(()=>[E(g,{modelValue:n.editForm.show,"onUpdate:modelValue":f[1]||(f[1]=S=>n.editForm.show=S),"inline-prompt":"","active-text":"展示","inactive-text":"隐藏"},null,8,["modelValue"])]),_:1}),n.editForm.children?(x(),de(_,{key:0,class:"class_sub",label:"拓展分类"},{default:P(()=>[(x(!0),j(Ke,null,bt(n.editForm.children,S=>(x(),de(h,{class:"class_sub_tag",type:"warning","disable-transitions":""},{default:P(()=>[Te(ce(S.name),1)]),_:2},1024))),256))]),_:1})):ae("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])])}}}),YEe=En(GEe,[["__scopeId","data-v-851447aa"]]),XEe={class:"container"},QEe={class:"params_form"},JEe={class:"content"},ZEe={style:{color:"#8b40ff"}},exe={class:"pagination"},txe=J({__name:"Film",setup(e){const t=Ct({list:[],page:{current:1,pageCount:0,pageSize:10,total:0},params:{name:"",pid:0,cid:0,plot:"",area:"",language:"",year:"",remarks:"",beginTime:"",endTime:""},options:{class:[{id:0,pid:-1,name:"",show:!0}],Plot:[],Area:[],Language:[],year:[],remarks:[]},dateGroup:[],classId:0});let n={};const s=u=>{for(let c=0;c<t.options.class.length;c++)if(t.options.class[c].id==u){let f=t.options.class[c];if(f.pid<=0){t.params.pid=f.id,t.params.cid=0;return}else if(f.pid==t.params.pid){t.params.pid=f.pid,t.params.cid=f.id;return}t.params.pid=f.pid,t.params.cid=f.id;let h=f.pid==0?n[f.id]:n[f.pid];h?(t.options.Plot=h.Plot,t.options.Area=h.Area,t.options.Language=h.Language):(t.options.Plot=[],t.options.Area=[],t.options.Language=[]),t.params.plot="",t.params.area="",t.params.language=""}},r=u=>(t.page.current-1)*t.page.pageSize+u+1,i=()=>{let u=t.params;t.dateGroup&&t.dateGroup.length==2?(u.beginTime=t.dateGroup[0],u.endTime=t.dateGroup[1]):(u.beginTime="",u.endTime=""),o()},a=u=>{cn("/manage/spider/update/single",{ids:u}).then(c=>{c.code===0?lt.success({message:c.msg}):lt.error({message:c.msg})})},o=()=>{let{current:u,pageSize:c}=t.page,f=t.params;cn("/manage/film/search/list",{...f,current:u,pageSize:c}).then(h=>{h.code===0?(t.list=h.data.list?h.data.list.map(m=>(m.year=m.year<=0?"未知":m.year,m.score=m.score==0?"暂无":m.score,m)):[],t.page=h.data.params.paging,t.options.class=h.data.options.class,t.options.remarks=h.data.options.remarks,t.options.year=h.data.options.year,n=h.data.options.tags):lt.error({message:h.msg})})};gt(()=>{o()});const l=u=>{cn("/manage/film/search/del",{id:u}).then(c=>{c.code===0?(lt.success({message:c.msg}),o()):lt.error({message:c.msg})})};return(u,c)=>{const f=Un,h=Fa,m=Ro,g=Ti,p=_8,v=mn,y=Ba,_=Fc,b=Ji,T=Bc,S=wh;return x(),j("div",XEe,[O("div",QEe,[E(y,{model:t.params,class:"cus_form"},{default:P(()=>[E(h,null,{default:P(()=>[E(f,{modelValue:t.params.name,"onUpdate:modelValue":c[0]||(c[0]=C=>t.params.name=C),style:{display:"inline-block","text-align":"left"},placeholder:"片名搜素","suffix-icon":d(kf)},null,8,["modelValue","suffix-icon"])]),_:1}),E(h,null,{default:P(()=>[E(g,{modelValue:t.classId,"onUpdate:modelValue":c[1]||(c[1]=C=>t.classId=C),onChange:s,placeholder:"影片分类"},{default:P(()=>[(x(!0),j(Ke,null,bt(t.options.class,C=>(x(),de(m,{key:C.id,label:C.name,value:C.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(h,null,{default:P(()=>[E(g,{modelValue:t.params.plot,"onUpdate:modelValue":c[2]||(c[2]=C=>t.params.plot=C),placeholder:"剧情筛选"},{default:P(()=>[(x(!0),j(Ke,null,bt(t.options.Plot,C=>(x(),de(m,{key:C.Value,label:C.Name,value:C.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(h,null,{default:P(()=>[E(g,{modelValue:t.params.area,"onUpdate:modelValue":c[3]||(c[3]=C=>t.params.area=C),placeholder:"地区筛选"},{default:P(()=>[(x(!0),j(Ke,null,bt(t.options.Area,C=>(x(),de(m,{key:C.Value,label:C.Name,value:C.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(h,null,{default:P(()=>[E(g,{modelValue:t.params.language,"onUpdate:modelValue":c[4]||(c[4]=C=>t.params.language=C),placeholder:"语言筛选"},{default:P(()=>[(x(!0),j(Ke,null,bt(t.options.Language,C=>(x(),de(m,{key:C.Value,label:C.Name,value:C.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(h,null,{default:P(()=>[E(g,{modelValue:t.params.year,"onUpdate:modelValue":c[5]||(c[5]=C=>t.params.year=C),placeholder:"上映年份"},{default:P(()=>[(x(!0),j(Ke,null,bt(t.options.year,C=>(x(),de(m,{key:C.Value,label:C.Name,value:C.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(h,null,{default:P(()=>[E(g,{modelValue:t.params.remarks,"onUpdate:modelValue":c[6]||(c[6]=C=>t.params.remarks=C),placeholder:"更新状态"},{default:P(()=>[(x(!0),j(Ke,null,bt(t.options.remarks,C=>(x(),de(m,{key:C.Value,label:C.Name,value:C.Value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(h,null,{default:P(()=>[E(p,{modelValue:t.dateGroup,"onUpdate:modelValue":c[7]||(c[7]=C=>t.dateGroup=C),"value-format":"YYYY-MM-DD HH:mm:ss",type:"datetimerange","start-placeholder":"起始时间","end-placeholder":"终止时间"},null,8,["modelValue"])]),_:1}),E(h,null,{default:P(()=>[E(v,{type:"primary",onClick:i},{default:P(()=>[Te("查询")]),_:1})]),_:1})]),_:1},8,["model"])]),O("div",JEe,[E(T,{data:t.list,style:{width:"100%"},border:"",size:"default","table-layout":"auto","max-height":"calc(68vh - 20px)","row-key":"id","row-class-name":"cus-tr"},{default:P(()=>[E(_,{type:"index","min-width":"50px",align:"left",label:"序号"},{default:P(C=>[O("span",ZEe,ce(r(C.$index)),1)]),_:1}),E(_,{prop:"mid",align:"center",label:"影片ID"},{default:P(C=>[E(b,{type:"success","disable-transitions":""},{default:P(()=>[Te(ce(C.row.mid),1)]),_:2},1024)]),_:1}),E(_,{prop:"name",align:"left",label:"影片名称","show-overflow-tooltip":"","class-name":"col_name"}),E(_,{prop:"cName",align:"center",label:"所属分类"},{default:P(C=>[E(b,{type:"warning","disable-transitions":""},{default:P(()=>[Te(ce(C.row.cName),1)]),_:2},1024)]),_:1}),E(_,{prop:"year",align:"center",label:"年份"},{default:P(C=>[E(b,{type:"warning","disable-transitions":""},{default:P(()=>[Te(ce(C.row.year),1)]),_:2},1024)]),_:1}),E(_,{sortable:"",prop:"score",align:"center",label:"评分"},{default:P(C=>[E(b,{type:"success","disable-transitions":""},{default:P(()=>[Te(ce(C.row.score),1)]),_:2},1024)]),_:1}),E(_,{sortable:"",prop:"hits",align:"center",label:"热度"},{default:P(C=>[E(b,{type:"danger","disable-transitions":""},{default:P(()=>[Te("🔥"+ce(C.row.hits),1)]),_:2},1024)]),_:1}),E(_,{prop:"remarks",align:"center",label:"更新状态"},{default:P(C=>[(C.row.remarks+"").indexOf("更新")!=-1?(x(),de(b,{key:0,type:"warning"},{default:P(()=>[Te(ce(C.row.remarks),1)]),_:2},1024)):(x(),de(b,{key:1,type:"success"},{default:P(()=>[Te(ce(C.row.remarks),1)]),_:2},1024))]),_:1}),E(_,{sortable:"",prop:"updateStamp",align:"center",label:"更新时间"},{default:P(C=>[E(b,{type:"success","disable-transitions":""},{default:P(()=>[Te(ce(d(hm).dateFormat(C.row.updateStamp*1e3)),1)]),_:2},1024)]),_:1}),E(_,{label:"操作",align:"center","min-width":"100px"},{default:P(C=>[E(v,{type:"success",icon:d(Mz),onClick:c[8]||(c[8]=()=>{}),plain:"",circle:""},null,8,["icon"]),E(v,{type:"success",icon:d(rI),onClick:D=>a(C.row.mid),plain:"",circle:""},null,8,["icon","onClick"]),E(v,{type:"primary",icon:d(ch),onClick:c[9]||(c[9]=()=>{}),plain:"",circle:""},null,8,["icon"]),E(v,{type:"danger",icon:d(Kl),onClick:D=>l(C.row.ID),plain:"",circle:""},null,8,["icon","onClick"])]),_:1})]),_:1},8,["data"]),O("div",exe,[E(S,{"page-sizes":[10,20,50,100,500],background:"",layout:"prev, pager, next, sizes, total, jumper",total:t.page.total,"page-size":t.page.pageSize,"onUpdate:pageSize":c[10]||(c[10]=C=>t.page.pageSize=C),"current-page":t.page.current,"onUpdate:currentPage":c[11]||(c[11]=C=>t.page.current=C),onChange:o,"hide-on-single-page":""},null,8,["total","page-size","current-page"])])])])}}}),nxe=En(txe,[["__scopeId","data-v-032262ae"]]),sxe=J({__name:"ImageViewer",props:{options:{type:Object,default:{list:Array,currentLink:String,show:Boolean}},remove:{type:Function,default:null}},setup(e){const t=e,n=Ct({show:!1,list:[{link:""}],zIndex:2e3,initialIndex:0,infinite:!0,hideOnClickModal:!1});return gt(()=>{var s;n.list=t.options.list,n.list.forEach((r,i)=>{r==t.options.currentLink&&(n.initialIndex=i)}),n.show=(s=t.options)==null?void 0:s.show}),xe([n],()=>{!n.show&&t.remove()}),(s,r)=>{const i=D2;return n.show?(x(),de(i,{key:0,urlList:n.list,"z-index":n.zIndex,"initial-index":n.initialIndex,infinite:n.infinite,hideOnClickModal:n.hideOnClickModal,onClose:r[0]||(r[0]=a=>n.show=!1)},null,8,["urlList","z-index","initial-index","infinite","hideOnClickModal"])):ae("",!0)}}}),rxe=e=>{e.show=!0;const t=document.createElement("div");document.body.appendChild(t);const n=Ig(sxe,{options:e,remove(){n.unmount(),document.body.removeChild(t)}});return n.mount(t)},ixe={class:"container"},axe={class:"content"},oxe={class:"el-upload-list__item-actions"},lxe=["onClick"],uxe=["onClick"],cxe={class:"pagination"},dxe=J({__name:"FileUpload",setup(e){const t=Ct({photoWall:[],page:{current:1,pageSize:39,pageNumber:0,total:0},imgList:[""]}),n=a=>{let o=a.file,l=new FormData;l.append("file",o),Qn("/manage/file/upload",l).then(u=>{u.code===0?(lt.success({message:u.msg}),s()):lt.error({message:u.msg})})},s=()=>{cn("/manage/file/list",{current:t.page.current}).then(a=>{a.code===0?(t.photoWall=a.data.list,t.page=a.data.page):lt.error({message:a.msg})})};gt(()=>{s()});const r=a=>{cn("/manage/file/del",{id:a.ID}).then(o=>{o.code===0?(s(),lt.success({message:o.msg})):lt.error({message:o.msg})})},i=a=>{let o=t.photoWall.map(l=>l.link);rxe({list:o,currentLink:a.link})};return(a,o)=>{const l=tv,u=tt,c=av,f=wh;return x(),j("div",ixe,[O("div",axe,[E(c,{"file-list":t.photoWall,"onUpdate:fileList":o[0]||(o[0]=h=>t.photoWall=h),action:"#","list-type":"picture-card","http-request":n},{file:P(({file:h})=>[E(l,{class:"el-upload-list__item-thumbnail",style:{width:"100%",height:"100%"},src:h.link,fit:"cover"},null,8,["src"]),O("span",oxe,[O("span",{class:"el-upload-list__item-preview",onClick:m=>i(h)},[E(u,null,{default:P(()=>[E(d(M1))]),_:1})],8,lxe),ae("",!0),O("span",{class:"el-upload-list__item-delete",onClick:m=>r(h)},[E(u,null,{default:P(()=>[E(d(Kl))]),_:1})],8,uxe)])]),default:P(()=>[E(u,null,{default:P(()=>[E(d(R1))]),_:1})]),_:1},8,["file-list"]),O("div",cxe,[E(f,{background:"",layout:"prev, pager, next",total:t.page.total,"page-size":t.page.pageSize,"onUpdate:pageSize":o[1]||(o[1]=h=>t.page.pageSize=h),"current-page":t.page.current,"onUpdate:currentPage":o[2]||(o[2]=h=>t.page.current=h),onChange:s,"hide-on-single-page":""},null,8,["total","page-size","current-page"])])])])}}}),fxe=En(dxe,[["__scopeId","data-v-a9066a0b"]]),zv=e=>(Ms("data-v-ef79630f"),e=e(),$s(),e),hxe={class:"container"},pxe=zv(()=>O("h2",{style:{"text-align":"start"}},"添加影片",-1)),mxe=zv(()=>O("div",{class:"el-input-group__prepend",style:{border:"1px solid #dcdfe6","border-right":"none","border-radius":"3px",height:"32px"}},"影片分类: ",-1)),gxe=zv(()=>O("span",{class:"el-input-group__prepend cus_label"},"剧情简介: ",-1)),vxe=zv(()=>O("span",{class:"el-input-group__prepend cus_label"},"播放地址: ",-1)),yxe=J({__name:"FilmAdd",setup(e){const t={id:0,cid:0,pid:0,name:"",picture:"",subTitle:"",cName:"",enName:"",initial:"",classTag:"",actor:"",director:"",writer:"",blurb:"",content:"",remarks:"",releaseDate:"",area:"",lang:"",year:"",state:"",updateTime:"",addTime:"",dbId:0,dbScore:"",hits:0,playForm:"",playLink:""},n=Ct({form:t,options:{category:[{id:0,name:"分类名称",pid:0}]}}),s=a=>{let o=a.file,l=new FormData;l.append("file",o),Qn("/manage/file/upload",l).then(u=>{u.code===0?(lt.success({message:u.msg}),n.form.picture=u.data):lt.error({message:u.msg})})},r=a=>{n.options.category.forEach(o=>{o.id==a&&(n.form.cid=o.id,n.form.pid=o.pid,n.form.cName=o.name)})},i=()=>{let a=n.form;a.dbId=a.dbId-0,a.hits=a.hits-0,Qn("/manage/film/add",{...n.form}).then(o=>{o.code===0?(lt.success({message:o.msg}),n.form=t):lt.error({message:o.msg})})};return gt(()=>{cn("/manage/film/class/tree").then(a=>{if(a.code===0){let o=[{id:0,name:"分类名称",pid:0}];o.pop(),a.data.children.forEach(l=>{l.children&&l.children.length>0&&(o=[...o,...l.children])}),n.options.category=o}else lt.error({message:a.msg})})}),(a,o)=>{const l=Ro,u=Ti,c=Fa,f=Un,h=mn,m=av,g=Ba;return x(),j("div",hxe,[pxe,E(g,{model:n.form,class:"film_add_form"},{default:P(()=>[E(c,null,{default:P(()=>[mxe,E(u,{modelValue:n.currentClass,"onUpdate:modelValue":o[0]||(o[0]=p=>n.currentClass=p),style:{width:"calc(100% - 103px)"},onChange:r,placeholder:"影片分类选择"},{default:P(()=>[(x(!0),j(Ke,null,bt(n.options.category,p=>(x(),de(l,{key:p.id,label:p.name,value:p.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.name,"onUpdate:modelValue":o[1]||(o[1]=p=>n.form.name=p),placeholder:"请输入影片名称",clearable:""},{prepend:P(()=>[Te("影片名称: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.subTitle,"onUpdate:modelValue":o[2]||(o[2]=p=>n.form.subTitle=p),placeholder:"影片别名, 可留空",clearable:""},{prepend:P(()=>[Te("影片别名: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.initial,"onUpdate:modelValue":o[3]||(o[3]=p=>n.form.initial=p),placeholder:"影片检索首字母, 大写",clearable:""},{prepend:P(()=>[Te("首字母: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.classTag,"onUpdate:modelValue":o[4]||(o[4]=p=>n.form.classTag=p),placeholder:"影片剧情标签(多标签以逗号分隔): 奇幻,校园,爱情",clearable:""},{prepend:P(()=>[Te("剧情Tag: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.director,"onUpdate:modelValue":o[5]||(o[5]=p=>n.form.director=p),placeholder:"导演名, 多个名称以逗号进行分隔",clearable:""},{prepend:P(()=>[Te("导演: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.actor,"onUpdate:modelValue":o[6]||(o[6]=p=>n.form.actor=p),placeholder:"主演名, 多个名称以逗号进行分隔",clearable:""},{prepend:P(()=>[Te("主演: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.writer,"onUpdate:modelValue":o[7]||(o[7]=p=>n.form.writer=p),placeholder:"作者名, 多个名称以逗号进行分隔",clearable:""},{prepend:P(()=>[Te("作者: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.remarks,"onUpdate:modelValue":o[8]||(o[8]=p=>n.form.remarks=p),placeholder:"影片更新进度信息, 完结, HD, 更新至xx集",clearable:""},{prepend:P(()=>[Te("更新状态: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.releaseDate,"onUpdate:modelValue":o[9]||(o[9]=p=>n.form.releaseDate=p),placeholder:"影片上映时间: YYYY-MM-DD",clearable:""},{prepend:P(()=>[Te("上映时间: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.area,"onUpdate:modelValue":o[10]||(o[10]=p=>n.form.area=p),placeholder:"影片来源地区信息",clearable:""},{prepend:P(()=>[Te("地区: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.lang,"onUpdate:modelValue":o[11]||(o[11]=p=>n.form.lang=p),placeholder:"影片语言信息",clearable:""},{prepend:P(()=>[Te("语言: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.year,"onUpdate:modelValue":o[12]||(o[12]=p=>n.form.year=p),placeholder:"影片上映年份信息: YYYY",clearable:""},{prepend:P(()=>[Te("年份: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.state,"onUpdate:modelValue":o[13]||(o[13]=p=>n.form.state=p),placeholder:" 影片状态: 正片 | 预告片",clearable:""},{prepend:P(()=>[Te("影片状态: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.dbId,"onUpdate:modelValue":o[14]||(o[14]=p=>n.form.dbId=p),placeholder:"豆瓣ID",clearable:""},{prepend:P(()=>[Te("豆瓣Id: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.dbScore,"onUpdate:modelValue":o[15]||(o[15]=p=>n.form.dbScore=p),placeholder:"豆瓣评分",clearable:""},{prepend:P(()=>[Te("豆瓣评分: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.hits,"onUpdate:modelValue":o[16]||(o[16]=p=>n.form.hits=p),placeholder:"影片热度(播放数)",clearable:""},{prepend:P(()=>[Te("影片热度: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.picture,"onUpdate:modelValue":o[17]||(o[17]=p=>n.form.picture=p),placeholder:"输入图片URL链接或点击上传到服务器并自动生成URL连接信息)",clearable:""},{prepend:P(()=>[Te("影片海报: ")]),append:P(()=>[E(m,{class:"upload-demo","show-file-list":!1,action:"#","http-request":s},{default:P(()=>[E(h,{type:"primary"},{default:P(()=>[Te("上传图片")]),_:1})]),_:1})]),_:1},8,["modelValue"])]),_:1}),E(c,null,{default:P(()=>[E(f,{modelValue:n.form.playForm,"onUpdate:modelValue":o[18]||(o[18]=p=>n.form.playForm=p),placeholder:"影片播放资源来源: xxXm3u8",clearable:""},{prepend:P(()=>[Te("播放来源: ")]),_:1},8,["modelValue"])]),_:1}),E(c,null,{label:P(()=>[gxe]),default:P(()=>[E(f,{modelValue:n.form.content,"onUpdate:modelValue":o[19]||(o[19]=p=>n.form.content=p),autosize:{minRows:2,maxRows:5},type:"textarea",placeholder:"影片剧情描述信息"},null,8,["modelValue"])]),_:1}),E(c,{label:"播放地址:"},{label:P(()=>[vxe]),default:P(()=>[E(f,{modelValue:n.form.playLink,"onUpdate:modelValue":o[20]||(o[20]=p=>n.form.playLink=p),autosize:{minRows:2,maxRows:5},type:"textarea",placeholder:`影片播放地址信息:
|
||
格式: 第01集$https://xxx/xxx/index.m3u8#第02集$https://xxx/xxx/index.m3u8`},null,8,["modelValue"])]),_:1}),E(c,{class:"form_btn"},{default:P(()=>[E(h,{type:"primary",onClick:i},{default:P(()=>[Te("添加影片")]),_:1}),E(h,null,{default:P(()=>[Te("清空信息")]),_:1})]),_:1})]),_:1},8,["model"])])}}}),bxe=En(yxe,[["__scopeId","data-v-ef79630f"]]),_xe={class:"container"},wxe={class:"player_header"},Sxe={class:"player_link"},Txe={class:"player_area"},Cxe=J({__name:"CustomPlay",setup(e){const t=Ct({link:"",options:{title:"",src:"",volume:.6,currentTime:50}}),n=o=>{switch(o.preventDefault(),o.keyCode){case 32:o.target.paused?o.target.play():o.target.pause();break;case 37:o.target.currentTime=o.target.currentTime-5<0?0:o.target.currentTime-5;break;case 39:o.target.currentTime=o.target.currentTime+5>o.target.duration?o.target.duration:o.target.currentTime+5;break;case 38:t.options.volume=t.options.volume+.05>1?1:t.options.volume+.05;break;case 40:t.options.volume=t.options.volume-.05<0?0:t.options.volume-.05;break}},s=o=>{let l=document.getElementsByTagName("video")[0];l.focus();const u=document.createEvent("HTMLEvents");u.initEvent("keydown",!0,!1),u.keyCode=o,l.dispatchEvent(u)},r=o=>{let l=document.getElementsByClassName("vjs-button");for(let u of l)u.addEventListener("keydown",function(c){c.preventDefault(),s(c.keyCode)})},i=o=>{r()},a=()=>{if(!/(^http[s]?:\/\/[^\s]+\.m3u8$)|(^http[s]?:\/\/[^\s]+\.mp4$)/.test(t.link)){lt.error({message:"视频链接格式异常, 请输入正确的播放链接!!!"});return}t.options.src=t.link,document.getElementsByTagName("video")[0].play()};return(o,l)=>(x(),j("div",_xe,[O("div",wxe,[O("div",Sxe,[yt(O("input",{type:"text","onUpdate:modelValue":l[0]||(l[0]=u=>t.link=u),onKeyup:rn(a,["enter"]),placeholder:"请输入视频播放地址, mp4 或 m3u8 格式",class:"cus-input"},null,544),[[xa,t.link]]),O("button",{class:"iconfont icon-play",onClick:a})])]),O("div",Txe,[E(d(x$),{onMounted:i,src:t.options.src,poster:d(tR),controls:"",loop:!1,onKeydown:n,bufferedPercent:30,volume:t.options.volume,crossorigin:"anonymous",playsinline:"",class:"video-player","playback-rates":[.5,1,1.5,2]},null,8,["src","poster","volume"])])]))}}),Exe=En(Cxe,[["__scopeId","data-v-ec46972d"]]),ua=e=>(Ms("data-v-e03faad4"),e=e(),$s(),e),xxe=ua(()=>O("h2",{style:{color:"#8e48b4"}},"首页横幅管理界面",-1)),kxe={class:"cus_util"},Axe={class:"dialog-footer"},Ixe={class:"film_view"},Dxe={class:"film_intro"},Oxe={class:"tags"},Pxe={class:"tag_c"},Rxe=ua(()=>O("em",null,"导演:",-1)),Nxe=ua(()=>O("em",null,"主演:",-1)),Mxe={class:"blurb"},$xe=ua(()=>O("em",null,"剧情:",-1)),Lxe={class:"dialog-footer"},Bxe={class:"dialog-footer"},Fxe={class:"film_view"},Vxe={class:"film_intro"},Uxe={class:"tags"},Hxe={class:"tag_c"},zxe=ua(()=>O("em",null,"导演:",-1)),jxe=ua(()=>O("em",null,"主演:",-1)),qxe={class:"blurb"},Wxe=ua(()=>O("em",null,"剧情:",-1)),Kxe={class:"dialog-footer"},Gxe={class:"film_view"},Yxe=["href"],Xxe={class:"film_intro"},Qxe={class:"tags"},Jxe={class:"tag_c"},Zxe=ua(()=>O("em",null,"导演:",-1)),eke=ua(()=>O("em",null,"主演:",-1)),tke={class:"blurb"},nke=ua(()=>O("em",null,"剧情:",-1)),ske={class:"dialog-footer"},rke=J({__name:"Banners",setup(e){const t=Ct({banners:[],banner:{id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},loading:!1,FilmId:"",film:{},options:[{}],dialogV:{addV:!1,editV:!1,bindV:!1,addBindV:!1,editBindV:!1}}),n=()=>{t.banner={id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},t.dialogV.addV=!0},s=()=>{t.banner.mid=t.film.id,t.banner.name=t.film.name,t.banner.cName=t.film.cName,t.banner.picture=t.film.picture,t.banner.year=parseInt(t.film.year),t.banner.remark=t.film.remarks,t.dialogV.addBindV=!1,t.dialogV.editBindV=!1,lt.success({message:"影片信息绑定成功!!!"})},r=()=>{Qn("/manage/banner/add",t.banner).then(p=>{p.code===0?(lt.success({message:p.msg}),t.banner={id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},t.dialogV.addV=!1,g()):lt.error({message:p.msg})})},i=p=>{t.banner=p,t.dialogV.editV=!0},a=()=>{Qn("/manage/banner/update",t.banner).then(p=>{p.code===0?(lt.success({message:p.msg}),t.banner={id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},t.dialogV.editV=!1,g()):lt.error({message:p.msg})})},o=p=>{t.banner=p,t.dialogV.bindV=!0},l=p=>{p&&(t.loading=!0,setTimeout(()=>{t.loading=!1,cn("/searchFilm",{keyword:p,current:0}).then(v=>{v.code==0?t.options=v.data.list:(lt.warning({message:v.msg,duration:1e3}),t.options=[])})},1500))},u=p=>{t.options.forEach(v=>{v.id==p&&(t.film=v)})},c=()=>{t.banner.mid=t.film.id,t.banner.name=t.film.name,t.banner.cName=t.film.cName,t.banner.picture=t.film.picture,t.banner.year=parseInt(t.film.year),t.banner.remark=t.film.remarks,Qn("/manage/banner/update",t.banner).then(p=>{p.code===0?(lt.success({message:p.msg}),t.banner={id:"",mid:0,name:"",cName:"",poster:"",picture:"",year:0,remark:"",sort:0},t.dialogV.bindV=!1,g()):lt.error({message:p.msg})})},f=p=>{cn("/manage/banner/del",{id:p.id}).then(v=>{v.code===0?(lt.success({message:v.msg}),g()):lt.error({message:v.msg})})},h=()=>{cn("/cache/del").then(p=>{p.code==0?lt.success({message:p.msg}):lt.error({message:p.msg})})},m=p=>{let v=p.file,y=new FormData;y.append("file",v),Qn("/manage/file/upload",y).then(_=>{if(_.code===0){switch(p.data.type){case 0:t.banner.poster=_.data;break;case 1:t.banner.picture=_.data;break}lt.success({message:_.msg})}else lt.error({message:_.msg})})},g=()=>{cn("/manage/banner/list").then(p=>{p.code===0?t.banners=p.data:lt.error({message:p.msg})})};return gt(()=>{g()}),(p,v)=>{const y=Fc,_=Ji,b=tv,T=mn,S=is,C=Bc,D=Un,N=Fa,$=av,L=_h,z=Ba,U=mO,W=Mc;return x(),j(Ke,null,[xxe,E(C,{data:t.banners,style:{width:"100%"},border:"",size:"default","row-class-name":"cus-tr","table-layout":"auto"},{default:P(()=>[E(y,{prop:"name",label:"影片名称"}),E(y,{prop:"collectType",align:"center",label:"影片类型"},{default:P(K=>[E(_,{type:"warning"},{default:P(()=>[Te(ce(K.row.cName),1)]),_:2},1024)]),_:1}),E(y,{prop:"collectType",align:"center",label:"上映年份"},{default:P(K=>[E(_,{type:"warning"},{default:P(()=>[Te(ce(K.row.year),1)]),_:2},1024)]),_:1}),E(y,{prop:"collectType",align:"center",label:"影片海报"},{default:P(K=>[E(b,{style:{width:"180px",height:"80px"},src:K.row.poster,"preview-src-list":[K.row.poster],"preview-teleported":"",fit:"contain"},null,8,["src","preview-src-list"])]),_:1}),E(y,{prop:"collectType",align:"center",label:"影片封面"},{default:P(K=>[E(b,{style:{width:"60px",height:"80px"},src:K.row.picture,"preview-src-list":[K.row.picture],"preview-teleported":"",fit:"cover"},null,8,["src","preview-src-list"])]),_:1}),E(y,{prop:"collectType",align:"center",label:"排序"},{default:P(K=>[E(_,{"disable-transitions":""},{default:P(()=>[Te(ce(K.row.sort),1)]),_:2},1024)]),_:1}),E(y,{prop:"resultModel",align:"center",label:"连载状态"},{default:P(K=>[(K.row.remarks+"").search("更新")==-1?(x(),de(_,{key:0,type:"success"},{default:P(()=>[Te(ce(K.row.remark),1)]),_:2},1024)):(x(),de(_,{key:1,type:"primary"},{default:P(()=>[Te(ce(K.row.remark),1)]),_:2},1024))]),_:1}),E(y,{label:"操作",align:"center"},{default:P(K=>[E(S,{content:"绑定影片信息",placement:"top"},{default:P(()=>[E(T,{type:"success",icon:d(Aj),plain:"",circle:"",onClick:X=>o(K.row)},null,8,["icon","onClick"])]),_:2},1024),E(S,{content:"修改海报信息",placement:"top"},{default:P(()=>[E(T,{type:"primary",icon:d(ch),plain:"",circle:"",onClick:X=>i(K.row)},null,8,["icon","onClick"])]),_:2},1024),E(S,{content:"删除海报信息",placement:"top"},{default:P(()=>[E(T,{type:"danger",icon:d(Kl),plain:"",circle:"",onClick:X=>f(K.row)},null,8,["icon","onClick"])]),_:2},1024)]),_:1})]),_:1},8,["data"]),O("div",kxe,[E(T,{color:"#9b49e7",icon:d(nI),onClick:n},{default:P(()=>[Te("添加海报")]),_:1},8,["icon"]),E(T,{type:"danger",icon:d(uq),onClick:h},{default:P(()=>[Te("清除缓存")]),_:1},8,["icon"])]),E(W,{modelValue:t.dialogV.addV,"onUpdate:modelValue":v[13]||(v[13]=K=>t.dialogV.addV=K),width:"680px",title:"添加海报"},{footer:P(()=>[O("span",Axe,[E(T,{color:"#cf48be",onClick:v[8]||(v[8]=K=>t.dialogV.addBindV=!0)},{default:P(()=>[Te("绑定影片")]),_:1}),E(T,{color:"#9b49e7",onClick:r},{default:P(()=>[Te("确认添加")]),_:1}),E(T,{onClick:v[9]||(v[9]=K=>t.dialogV.addV=!1)},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(z,{model:t.banner},{default:P(()=>[E(N,{label:"影片ID "},{default:P(()=>[E(D,{modelValue:t.banner.mid,"onUpdate:modelValue":v[0]||(v[0]=K=>t.banner.mid=K),placeholder:"影片唯一ID"},null,8,["modelValue"])]),_:1}),E(N,{label:"影片名称"},{default:P(()=>[E(D,{modelValue:t.banner.name,"onUpdate:modelValue":v[1]||(v[1]=K=>t.banner.name=K),placeholder:"影片名称"},null,8,["modelValue"])]),_:1}),E(N,{label:"影片分类"},{default:P(()=>[E(D,{modelValue:t.banner.cName,"onUpdate:modelValue":v[2]||(v[2]=K=>t.banner.cName=K),placeholder:"影片所属分类"},null,8,["modelValue"])]),_:1}),E(N,{label:"影片海报"},{default:P(()=>[E(D,{modelValue:t.banner.poster,"onUpdate:modelValue":v[3]||(v[3]=K=>t.banner.poster=K),placeholder:"影片海报访问URL",class:"upload_input"},null,8,["modelValue"]),E($,{"show-file-list":!1,action:"#","http-request":m,data:{type:0},class:"upload"},{default:P(()=>[E(T,{color:"#626aef",round:"",plain:"",icon:d(pp),class:"upload_btn"},{default:P(()=>[Te("Upload")]),_:1},8,["icon"])]),_:1})]),_:1}),E(N,{label:"影片封面"},{default:P(()=>[E(D,{modelValue:t.banner.picture,"onUpdate:modelValue":v[4]||(v[4]=K=>t.banner.picture=K),placeholder:"影片封面访问URL",class:"upload_input"},null,8,["modelValue"]),E($,{"show-file-list":!1,action:"#","http-request":m,data:{type:1},class:"upload"},{default:P(()=>[E(T,{color:"#626aef",round:"",plain:"",icon:d(pp),class:"upload_btn"},{default:P(()=>[Te("Upload")]),_:1},8,["icon"])]),_:1})]),_:1}),E(N,{label:"更新状态"},{default:P(()=>[E(D,{modelValue:t.banner.remark,"onUpdate:modelValue":v[5]||(v[5]=K=>t.banner.remark=K),placeholder:"影片更新状态"},null,8,["modelValue"])]),_:1}),E(N,{label:"上映年份"},{default:P(()=>[E(L,{modelValue:t.banner.year,"onUpdate:modelValue":v[6]||(v[6]=K=>t.banner.year=K),min:0,step:1,max:2100,"step-strictly":""},null,8,["modelValue"])]),_:1}),E(N,{label:"排序分值"},{default:P(()=>[E(L,{modelValue:t.banner.sort,"onUpdate:modelValue":v[7]||(v[7]=K=>t.banner.sort=K),min:-100,step:1,max:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),E(W,{modelValue:t.dialogV.addBindV,"onUpdate:modelValue":v[12]||(v[12]=K=>t.dialogV.addBindV=K),width:"620px",title:"绑定影片","align-center":""},{footer:P(()=>[O("span",Lxe,[E(T,{color:"#9b49e7",onClick:s},{default:P(()=>[Te("确认绑定")]),_:1}),E(T,{onClick:v[11]||(v[11]=K=>t.dialogV.addBindV=!1)},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(z,{model:t.banner},{default:P(()=>[E(N,{label:"搜索影片"},{default:P(()=>[E(U,{modelValue:t.FilmId,"onUpdate:modelValue":v[10]||(v[10]=K=>t.FilmId=K),filterable:"",props:{label:"name",value:"id"},remote:"","remote-method":l,clearable:"",options:t.options,loading:t.loading,placeholder:"请输入需要绑定的影片名称",onChange:u},null,8,["modelValue","options","loading"])]),_:1}),t.film.id?(x(),de(N,{key:0},{default:P(()=>[O("div",Ixe,[O("a",{href:"javascript:void(0);",style:st({backgroundImage:`url('${t.film.picture}')`})},null,4),O("div",Dxe,[O("h3",null,ce(t.film.name),1),O("p",Oxe,[O("span",Pxe,ce(t.film.cName),1),O("span",null,ce(t.film.year),1),O("span",null,ce(t.film.area),1)]),O("p",null,[Rxe,Te(ce(t.film.director),1)]),O("p",null,[Nxe,Te(ce(t.film.actor),1)]),O("p",Mxe,[$xe,Te(ce((t.film.blurb+"").replaceAll(" ","")),1)])])])]),_:1})):ae("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),E(W,{modelValue:t.dialogV.editV,"onUpdate:modelValue":v[27]||(v[27]=K=>t.dialogV.editV=K),width:"680px",title:"修改海报信息"},{footer:P(()=>[O("span",Bxe,[E(T,{color:"#cf48be",onClick:v[22]||(v[22]=K=>t.dialogV.editBindV=!0)},{default:P(()=>[Te("绑定影片")]),_:1}),E(T,{color:"#9b49e7",onClick:a},{default:P(()=>[Te("保存")]),_:1}),E(T,{onClick:v[23]||(v[23]=K=>t.dialogV.editV=!1)},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(z,{model:t.banner},{default:P(()=>[E(N,{label:"影片ID "},{default:P(()=>[E(D,{modelValue:t.banner.mid,"onUpdate:modelValue":v[14]||(v[14]=K=>t.banner.mid=K),placeholder:"影片唯一ID"},null,8,["modelValue"])]),_:1}),E(N,{label:"影片名称"},{default:P(()=>[E(D,{modelValue:t.banner.name,"onUpdate:modelValue":v[15]||(v[15]=K=>t.banner.name=K),placeholder:"影片名称"},null,8,["modelValue"])]),_:1}),E(N,{label:"影片分类"},{default:P(()=>[E(D,{modelValue:t.banner.cName,"onUpdate:modelValue":v[16]||(v[16]=K=>t.banner.cName=K),placeholder:"影片所属分类"},null,8,["modelValue"])]),_:1}),E(N,{label:"影片海报"},{default:P(()=>[E(D,{modelValue:t.banner.poster,"onUpdate:modelValue":v[17]||(v[17]=K=>t.banner.poster=K),placeholder:"影片海报访问URL",class:"upload_input"},null,8,["modelValue"]),E($,{"show-file-list":!1,action:"#","http-request":m,data:{type:0},class:"upload"},{default:P(()=>[E(T,{color:"#626aef",round:"",plain:"",icon:d(pp),class:"upload_btn"},{default:P(()=>[Te("Upload")]),_:1},8,["icon"])]),_:1})]),_:1}),E(N,{label:"影片封面"},{default:P(()=>[E(D,{modelValue:t.banner.picture,"onUpdate:modelValue":v[18]||(v[18]=K=>t.banner.picture=K),placeholder:"影片封面访问URL",class:"upload_input"},null,8,["modelValue"]),E($,{"show-file-list":!1,action:"#","http-request":m,data:{type:1},class:"upload"},{default:P(()=>[E(T,{color:"#626aef",round:"",plain:"",icon:d(pp),class:"upload_btn"},{default:P(()=>[Te("Upload")]),_:1},8,["icon"])]),_:1})]),_:1}),E(N,{label:"更新状态"},{default:P(()=>[E(D,{modelValue:t.banner.remark,"onUpdate:modelValue":v[19]||(v[19]=K=>t.banner.remark=K),placeholder:"影片更新状态"},null,8,["modelValue"])]),_:1}),E(N,{label:"上映年份"},{default:P(()=>[E(L,{modelValue:t.banner.year,"onUpdate:modelValue":v[20]||(v[20]=K=>t.banner.year=K),min:0,step:1,max:2100,"step-strictly":""},null,8,["modelValue"])]),_:1}),E(N,{label:"排序分值"},{default:P(()=>[E(L,{modelValue:t.banner.sort,"onUpdate:modelValue":v[21]||(v[21]=K=>t.banner.sort=K),min:-100,step:1,max:100,"step-strictly":""},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),E(W,{modelValue:t.dialogV.editBindV,"onUpdate:modelValue":v[26]||(v[26]=K=>t.dialogV.editBindV=K),width:"620px",title:"绑定影片","align-center":""},{footer:P(()=>[O("span",Kxe,[E(T,{color:"#9b49e7",onClick:s},{default:P(()=>[Te("确认绑定")]),_:1}),E(T,{onClick:v[25]||(v[25]=K=>t.dialogV.addBindV=!1)},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(z,{model:t.banner},{default:P(()=>[E(N,{label:"搜索影片"},{default:P(()=>[E(U,{modelValue:t.FilmId,"onUpdate:modelValue":v[24]||(v[24]=K=>t.FilmId=K),filterable:"",props:{label:"name",value:"id"},remote:"","remote-method":l,clearable:"",options:t.options,loading:t.loading,placeholder:"请输入需要绑定的影片名称",onChange:u},null,8,["modelValue","options","loading"])]),_:1}),t.film.id?(x(),de(N,{key:0},{default:P(()=>[O("div",Fxe,[O("a",{href:"javascript:void(0);",style:st({backgroundImage:`url('${t.film.picture}')`})},null,4),O("div",Vxe,[O("h3",null,ce(t.film.name),1),O("p",Uxe,[O("span",Hxe,ce(t.film.cName),1),O("span",null,ce(t.film.year),1),O("span",null,ce(t.film.area),1)]),O("p",null,[zxe,Te(ce(t.film.director),1)]),O("p",null,[jxe,Te(ce(t.film.actor),1)]),O("p",qxe,[Wxe,Te(ce((t.film.blurb+"").replaceAll(" ","")),1)])])])]),_:1})):ae("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])]),_:1},8,["modelValue"]),E(W,{modelValue:t.dialogV.bindV,"onUpdate:modelValue":v[30]||(v[30]=K=>t.dialogV.bindV=K),width:"680px",title:"绑定影片"},{footer:P(()=>[O("span",ske,[E(T,{color:"#9b49e7",onClick:c},{default:P(()=>[Te("确认绑定")]),_:1}),E(T,{onClick:v[29]||(v[29]=K=>t.dialogV.bindV=!1)},{default:P(()=>[Te("取消")]),_:1})])]),default:P(()=>[E(z,{model:t.banner},{default:P(()=>[E(N,{label:"搜索影片"},{default:P(()=>[E(U,{modelValue:t.FilmId,"onUpdate:modelValue":v[28]||(v[28]=K=>t.FilmId=K),filterable:"",props:{label:"name",value:"id"},remote:"","remote-method":l,clearable:"",options:t.options,loading:t.loading,placeholder:"请输入需要绑定的影片名称",onChange:u},null,8,["modelValue","options","loading"])]),_:1}),t.film.id?(x(),de(N,{key:0},{default:P(()=>[O("div",Gxe,[O("a",{href:`/filmDetail?link=${t.film.id}`,style:st({backgroundImage:`url('${t.film.picture}')`})},null,12,Yxe),O("div",Xxe,[O("h3",null,ce(t.film.name),1),O("p",Qxe,[O("span",Jxe,ce(t.film.cName),1),O("span",null,ce(t.film.year),1),O("span",null,ce(t.film.area),1)]),O("p",null,[Zxe,Te(ce(t.film.director),1)]),O("p",null,[eke,Te(ce(t.film.actor),1)]),O("p",tke,[nke,Te(ce((t.film.blurb+"").replaceAll(" ","")),1)])])])]),_:1})):ae("",!0)]),_:1},8,["model"])]),_:1},8,["modelValue"])],64)}}}),ike=En(rke,[["__scopeId","data-v-e03faad4"]]),ake={key:0,class:"container"},oke={class:"card"},lke={class:"card-left"},uke=["href"],cke={class:"card-right"},dke={class:"card-title"},fke={class:"card-content"},hke={class:"card-episode"},pke={class:"card-time"},mke={class:"card-episode"},gke=["onClick"],vke=J({__name:"FilmHistory",setup(e){const t=Ct({historyList:[{}]}),n=Xe("global"),s=i=>{console.log(i);let a=ci.getCookie(ui.FILM_HISTORY)?JSON.parse(ci.getCookie(ui.FILM_HISTORY)):null;delete a[i],ci.setCookie(ui.FILM_HISTORY,JSON.stringify(a)),r()},r=()=>{let i=ci.getCookie(ui.FILM_HISTORY)?JSON.parse(ci.getCookie(ui.FILM_HISTORY)):null,a=[];if(i){for(let o in i)a.push(i[o]);a.sort((o,l)=>l.timeStamp-o.timeStamp)}t.historyList=a};return gt(()=>{r()}),(i,a)=>{const o=$c;return d(n).isMobile?(x(),j("div",ake,[(x(!0),j(Ke,null,bt(t.historyList,l=>(x(),j("div",oke,[O("div",lke,[O("a",{class:"card-link",href:l.link,style:st({backgroundImage:`url(${l.picture})`})},null,12,uke)]),O("div",cke,[O("h5",dke,ce(l.name),1),O("div",fke,[O("p",hke,ce(`已观看: ${l.progress}`),1),O("p",pke,[O("b",{class:M(`iconfont ${l.devices?"icon-mobile":"icon-pc1"}`)},null,2),Te(ce(l.time),1)]),O("p",mke,ce(l.episode),1)])]),O("a",{onClick:u=>s(l.id),class:"iconfont icon-cancel1"},null,8,gke)]))),256)),t.historyList&&t.historyList.length<=0?(x(),de(o,{key:0,style:{padding:"10px 0"},description:"暂无观看记录"})):ae("",!0)])):ae("",!0)}}}),yke=En(vke,[["__scopeId","data-v-82fc2d75"]]),bke=[{path:"/",component:Gge,redirect:"/index",children:[{path:"index",component:Lve},{path:"filmDetail",component:A0e},{path:"play",component:xTe},{path:"search",component:zTe},{path:"filmClassify",component:NCe},{path:"filmClassifySearch",component:dCe},{path:"/custom/player",component:Exe},{path:"/history",component:yke}]},{path:"/login",component:QCe},{path:"/manage",component:_Ee,redirect:"/manage/index",children:[{path:"index",component:VCe},{path:"collect/index",component:AEe},{path:"system/webSite",component:NEe},{path:"system/banners",component:ike},{path:"cron/index",component:VEe},{path:"file/upload",component:fxe},{path:"file/gallery",component:HA},{path:"film",component:nxe},{path:"film/class",component:YEe},{path:"film/add",component:bxe},{path:"film/detail",component:HA}]},{path:"/:pathMatch(.*)*",component:QTe}],gS=Ipe({history:spe(),routes:bke});gS.beforeEach((e,t,n)=>{let s=new RegExp(/^\/manage\//).test(e.path),r=JP();s&&!r?n("/login"):n()});const vS=Ig(xhe);vS.use(bhe);vS.use(gS);vS.mount("#app")});export default _ke();
|